* g++.dg/other/i386-2.C (dg-options): Add -mavx512pf.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / xop-pcmov2.c
blob6b6bd216915b295e0bf422192a2679fe597714c4
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 float flt_test (float a, float b, float c, float d)
11 return (a > b) ? c : d;
14 float flt_a = 1, flt_b = 2, flt_c = 3, flt_d = 4, flt_e;
16 int main()
18 flt_e = flt_test (flt_a, flt_b, flt_c, flt_d);
19 exit (0);
22 /* { dg-final { scan-assembler "vpcmov" } } */