2018-02-09 Sebastian Perta <sebastian.perta@renesas.com>
[official-gcc.git] / gcc / testsuite / gcc.target / sh / pr33135-1.c
bloba6e88387d6f7418aa4251fb0564df5a03714768e
1 /* Check that fcmp/eq and fcmp/gt instructions are generated by default
2 (implicit -mieee). */
3 /* { dg-do compile { target { any_fpu } } } */
4 /* { dg-options "-O1" } */
5 /* { dg-final { scan-assembler-times "fcmp/eq" 4 } } */
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;