Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.c-torture / execute / ieee / compare-fp-2.c
blob1f78a435a925283109aa847500df3f5b77d84878
1 /* Copyright (C) 2004 Free Software Foundation.
3 Ensure that the composite comparison optimization doesn't misfire
4 and attempt to combine an integer comparison with a floating-point one.
6 Written by Paolo Bonzini, 26th May 2004. */
8 extern void abort (void);
10 int
11 foo (double x, double y)
13 /* If miscompiled the following may become false. */
14 return (x > y) && ((int)x == (int)y);
17 int
18 main ()
20 if (! foo (1.3,1.0))
21 abort ();
22 return 0;