1 /* Check that only the fcmp/gt instruction is generated when specifying
2    -ffinite-math-only (implicit -mno-ieee).  */
3 /* { dg-do compile { target "sh*-*-*" } } */
4 /* { dg-options "-O1 -ffinite-math-only" } */
5 /* { dg-skip-if "" { "sh*-*-*" } { "-m1" "-m2" "-m3" "-m4al" "*nofpu" "-m4-340*" "-m4-400*" "-m4-500*" "-m5*" } { "" } }  */
6 /* { dg-final { scan-assembler-not "fcmp/eq" } } */
7 /* { dg-final { scan-assembler-times "fcmp/gt" 4 } } */
8 
9 int
test_00(float a,float b)10 test_00 (float a, float b)
11 {
12   return a <= b;
13 }
14 
15 int
test_01(float a,float b)16 test_01 (float a, float b)
17 {
18   return a >= b;
19 }
20 
21 int
test_02(double a,double b)22 test_02 (double a, double b)
23 {
24   return a <= b;
25 }
26 
27 int
test_03(double a,double b)28 test_03 (double a, double b)
29 {
30   return a >= b;
31 }
32 
33