* Conditional move instruction (CMOV)
@ 1994-12-02 15:03 connors daniel a
1994-12-02 22:27 ` Hein RMS van den Heuvel
0 siblings, 1 reply; 2+ messages in thread
From: connors daniel a @ 1994-12-02 15:03 UTC (permalink / raw)
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.
Does anyone have an idea, I've tried every optimization level on gcc, cc.
Maybe these results are published somewhere?
Dan Connors
--
-------------------------------------
Dan Connors
Graduate Student - University of Illinois
Computer Engineering Department
-------------------------------------
HOME: OFFICE:
601 E. White 325 Everitt
Apt #A22
Champaign, IL 61820
217-398-9013 333-4344
-------------------------------------
Support your TA Union
Our motto, "Less students, More Pay"
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Conditional move instruction (CMOV)
1994-12-02 15:03 Conditional move instruction (CMOV) connors daniel a
@ 1994-12-02 22:27 ` Hein RMS van den Heuvel
0 siblings, 0 replies; 2+ messages in thread
From: Hein RMS van den Heuvel @ 1994-12-02 22:27 UTC (permalink / raw)
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." +--------------------------------------+
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1994-12-02 22:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-12-02 15:03 Conditional move instruction (CMOV) connors daniel a
1994-12-02 22:27 ` Hein RMS van den Heuvel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox