blob: 1cb66f5c379fba2fcb1d48f334dd4363ab22a95e [file] [log] [blame]
/* { dg-do run { target i?86-*-* } } */
/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */
/* { 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;
}