2017-08-28 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / sh / pr33135-4.c
blob0c5ff1c001c5149697f1f6e4b5d23990512657ad
1 /* Check that only the fcmp/gt instruction is generated when specifying
2 -fno-finite-math-only and -mno-ieee. */
3 /* { dg-do compile { target { any_fpu } } } */
4 /* { dg-options "-O1 -fno-finite-math-only -mno-ieee" } */
5 /* { dg-final { scan-assembler-not "fcmp/eq" } } */
6 /* { dg-final { scan-assembler-times "fcmp/gt" 4 } } */
8 int
9 test_00 (float a, float b)
11 return a <= b;
14 int
15 test_01 (float a, float b)
17 return a >= b;
20 int
21 test_02 (double a, double b)
23 return a <= b;
26 int
27 test_03 (double a, double b)
29 return a >= b;