Merged with mainline at revision 128810.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / cmov7.c
blobb5d50d7cbcf39529c0d3e89e73ed011538d699c9
1 /* PR middle-end/33187 */
3 /* { dg-do compile } */
4 /* { dg-options "-O2 -march=k8 -ffast-math -mfpmath=387" } */
5 /* { dg-final { scan-assembler "fcmov" } } */
7 /* compress_float_constant generates load + float_extend
8 sequence which combine pass failed to combine into
9 (set (reg:DF) (float_extend:DF (mem:SF (symbol_ref...)))). */
11 double
12 sgn (double __x)
14 return __x >= 0.0 ? 1.0 : -1.0;