1 /* Copyright (C) 2003 Free Software Foundation.
3 Check that constant folding of mathematical expressions doesn't
6 Written by Roger Sayle, 3rd August 2003. */
9 /* { dg-options "-O2 -ffast-math" } */
11 extern void link_error(void);
52 if (3.0*x + 5.0*x != 8.0*x)
54 if (3.0*x + 5.0*x != x*8.0)
56 if (x*3.0 + 5.0*x != 8.0*x)
58 if (x*3.0 + 5.0*x != x*8.0)
60 if (3.0*x + x*5.0 != 8.0*x)
62 if (3.0*x + x*5.0 != x*8.0)
64 if (x*3.0 + x*5.0 != 8.0*x)
66 if (x*3.0 + x*5.0 != x*8.0)