2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / 387-ficom-1.c
blob325698854a94beb313dd1a856d0f071f182ca1fb
1 /* { dg-do compile } */
2 /* { dg-require-effective-target ia32 } */
3 /* { dg-skip-if "" { *-*-* } { "-march=*" } { "-march=i386" } } */
4 /* { dg-options "-O2 -march=i386 -ffast-math -masm=att" } */
6 extern short s;
8 int test_f_s (short x)
10 return (float)x > s;
13 int test_d_s (short x)
15 return (double)x < s;
18 int test_ld_s (short x)
20 return (long double)x == s;
23 extern int i;
25 int test_f_i (int x)
27 return (float)i >= x;
30 int test_d_i (int x)
32 return (double)i <= x;
35 int test_ld_i (int x)
37 return (long double)i != x;
40 /* { dg-final { scan-assembler-times "ficomp\[s\t\]" 3 } } */
41 /* { dg-final { scan-assembler-times "ficompl" 3 } } */