1 /* Copyright (C) 2002 Free Software Foundation.
3 Test for correctness of floating point comparisons.
5 Written by Roger Sayle, 3rd June 2002. */
8 /* { dg-options "-O2 -ffast-math" } */
10 extern void abort (void);
12 int test1 (double x
, int ok
)
22 int test1f (float x
, int ok
)
24 if ((x
- 1.0f
) > 0.0f
)
32 int test2 (double x
, int ok
)
42 int test2f (float x
, int ok
)
44 if ((x
+ 1.0f
) < 0.0f
)