URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [xop-pcmov2.c] - Rev 848
Go to most recent revision | Compare with Previous | Blame | View Log
/* Test that the compiler properly optimizes conditional floating point moves into the pcmov instruction on XOP systems. */ /* { dg-do compile { target { ! { ia32 } } } } */ /* { dg-options "-O2 -mxop" } */ extern void exit (int); float flt_test (float a, float b, float c, float d) { return (a > b) ? c : d; } float flt_a = 1, flt_b = 2, flt_c = 3, flt_d = 4, flt_e; int main() { flt_e = flt_test (flt_a, flt_b, flt_c, flt_d); exit (0); } /* { dg-final { scan-assembler "vpcmov" } } */
Go to most recent revision | Compare with Previous | Blame | View Log