PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / cmov7.c
blobe648fed8b2a2c5e8ebb8590389057875bfc09807
1 /* PR middle-end/33187 */
3 /* { dg-do compile } */
4 /* { dg-skip-if "" { *-*-* } { "-march=*" } { "-march=k8" } } */
5 /* { dg-options "-O2 -ffast-math -march=k8 -mbranch-cost=5 -mfpmath=387" } */
6 /* { dg-final { scan-assembler "fcmov" } } */
8 /* compress_float_constant generates load + float_extend
9 sequence which combine pass failed to combine into
10 (set (reg:DF) (float_extend:DF (mem:SF (symbol_ref...)))). */
12 double
13 foo (double __x)
15 return __x >= 1.0 ? 0.0 : -1.0;