aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/991230-1.c
blob: 76b1b8e98842c4f06957f60c78b7ba4bc5d65520 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* { dg-do run { target i?86-*-* } } */
/* { dg-options "-O -ffast-math -mtune=i486" } */

/* Test that floating point greater-than tests are compiled correctly with
   -ffast-math.  */

extern void abort (void);

static int gt (double a, double b)
{
  if (a > b)
    return 4;
  return 0;
}

static double zero = 0.0;

int main ()
{
  if (gt (zero, zero))
    abort ();
  return 0;
}