Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: vandenheuvel@eps.enet.dec.com (Hein RMS van den Heuvel)
Subject: Re: Conditional move instruction (CMOV)
Date: 2 DEC 94 17:27:55	[thread overview]
Message-ID: <3bo7gj$c26@jac.zko.dec.com> (raw)
In-Reply-To: 3bnd09$i0t@vixen.cso.uiuc.edu


In article <3bnd09$i0t@vixen.cso.uiuc.edu>, dconnors@cehpx13.cen.uiuc.edu (connors daniel a) writes...
>I have access to a DEC Alpha station, and have been running some SPEC
>benchmarks.  I wanted to see how often the CMOV (integer or floating pt)
>instruction was invoked in any of the SPEC benchmarks.
> 
>I've tried unsuccessfully to get the CMOV instruction to be used by 
>the compiler.  I have even wrote code which I think would be the ideal
>C construction for the CMOV.

Probably not overly helpfull, but the following little bit of C smaple
will at least make the DEC C compiler generate a  CMOVne :

int test(int a)
{
int b;
b = 1;
if (a==123) b=2;
return b;
}

TEST::                                             ; 000001
         XOR     a, 123, R16                       ; 000005
         MOV     1, R0        
         CMOVEQ  R16, 2, R0   
         RET     R26                               ; 000006

Regards,         		+--------------------------------------+
Hein van den Heuvel, Digital.	| All opinions expressed are mine, and |
  "Makers of VMS and other	| may not reflect those of my employer |
   fine Operating Systems."	+--------------------------------------+


      reply	other threads:[~1994-12-02 22:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-12-02 15:03 Conditional move instruction (CMOV) connors daniel a
1994-12-02 22:27 ` Hein RMS van den Heuvel [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox