Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / xop-pcmov.c
blob552e444284068e32b98682f26037b19c0ad2ba1b
1 /* Test that the compiler properly optimizes conditional floating point moves
2 into the pcmov instruction on XOP systems. */
4 /* { dg-do compile { target { ! ia32 } } } */
5 /* { dg-options "-O2 -mxop" } */
7 extern void exit (int);
9 double dbl_test (double a, double b, double c, double d)
11 return (a > b) ? c : d;
14 double dbl_a = 1, dbl_b = 2, dbl_c = 3, dbl_d = 4, dbl_e;
16 int main()
18 dbl_e = dbl_test (dbl_a, dbl_b, dbl_c, dbl_d);
19 exit (0);
22 /* { dg-final { scan-assembler "vpcmov" } } */