2015-07-06 Richard Biener <rguenther@suse.de>
PR middle-end/66759
* match.pd: Add missing constraint of y to REAL_CST in
REAL_CST - x CMP y to y - CST CMP x simplification.
* gcc.dg/torture/pr66759.c: New testcase.
From-SVN: r225449
+2015-07-06 Richard Biener <rguenther@suse.de>
+
+ PR middle-end/66759
+ * match.pd: Add missing constraint of y to REAL_CST in
+ REAL_CST - x CMP y to y - CST CMP x simplification.
+
2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
PR tree-optimization/66757
floating-point types only if -fassociative-math is set. */
(if (flag_associative_math)
(simplify
- (cmp (minus REAL_CST@0 @1) @2)
+ (cmp (minus REAL_CST@0 @1) REAL_CST@2)
(with { tree tem = const_binop (MINUS_EXPR, TREE_TYPE (@1), @0, @2); }
(if (!TREE_OVERFLOW (tem))
(cmp { tem; } @1)))))
+2015-07-06 Richard Biener <rguenther@suse.de>
+
+ PR middle-end/66759
+ * gcc.dg/torture/pr66759.c: New testcase.
+
2015-07-06 Andre Vehreschild <vehre@gmx.de>
PR fortran/58586
--- /dev/null
+/* { dg-do compile } */
+/* { dg-additional-options "-ffast-math" } */
+
+int a, b;
+float c;
+int fn2();
+void fn1()
+{
+ if (fn2() <= 1. - c)
+ b = a;
+}