2014-12-15 Richard Biener <rguenther@suse.de>
PR middle-end/64295
* match.pd (X / CST -> X * (1 / CST): Use const_binop instead of
fold_binary to compute the constant to multiply with.
* gcc.dg/pr64295.c: New testcase.
From-SVN: r218748
+2014-12-15 Richard Biener <rguenther@suse.de>
+
+ PR middle-end/64295
+ * match.pd (X / CST -> X * (1 / CST): Use const_binop instead of
+ fold_binary to compute the constant to multiply with.
+
2014-12-15 Richard Biener <rguenther@suse.de>
PR middle-end/64246
(if (flag_reciprocal_math
&& !real_zerop (@1))
(with
- { tree tem = fold_binary (RDIV_EXPR, type, build_one_cst (type), @1); }
+ { tree tem = const_binop (RDIV_EXPR, type, build_one_cst (type), @1); }
(if (tem)
(mult @0 { tem; } ))))
(if (cst != COMPLEX_CST)
+2014-12-15 Richard Biener <rguenther@suse.de>
+
+ PR middle-end/64295
+ * gcc.dg/pr64295.c: New testcase.
+
2014-12-15 Richard Biener <rguenther@suse.de>
PR middle-end/64246
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O -frounding-math -funsafe-math-optimizations" } */
+
+double
+f (double g)
+{
+ return g / 3;
+}