aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/sh/pr33135-3.c
blob: c5b9274d66b30aaf51308dc2cd77bfe7f51a497b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* Check that fcmp/eq and fcmp/gt instructions are generated when specifying
   -ffinite-math-only and -mieee.  */
/* { dg-do compile { target { any_fpu } } }  */
/* { dg-options "-O1 -ffinite-math-only -mieee" } */
/* { dg-final { scan-assembler-times "fcmp/eq" 4 } } */
/* { dg-final { scan-assembler-times "fcmp/gt" 4 } } */

int
test_00 (float a, float b)
{
  return a <= b;
}

int
test_01 (float a, float b)
{
  return a >= b;
}

int
test_02 (double a, double b)
{
  return a <= b;
}

int
test_03 (double a, double b)
{
  return a >= b;
}