https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61010
--- Comment #13 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Tue Sep 9 13:17:51 2014 New Revision: 215073 URL: https://gcc.gnu.org/viewcvs?rev=215073&root=gcc&view=rev Log: 2014-09-09 Richard Biener <rguent...@suse.de> Backport from mainline 2014-05-05 Richard Biener <rguent...@suse.de> PR middle-end/61010 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing X & CST away from a CST that is the mask of a mode. * gcc.dg/torture/pr61010.c: New testcase. 2014-05-28 Richard Biener <rguent...@suse.de> PR middle-end/61045 * fold-const.c (fold_comparison): When folding X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure the sign of the remaining constant operand stays the same. * gcc.dg/pr61045.c: New testcase. 2014-08-11 Richard Biener <rguent...@suse.de> PR tree-optimization/62075 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly handle uses in patterns. * gcc.dg/vect/pr62075.c: New testcase. Added: branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/pr61045.c branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/torture/pr61010.c branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/vect/pr62075.c Modified: branches/gcc-4_8-branch/gcc/ChangeLog branches/gcc-4_8-branch/gcc/fold-const.c branches/gcc-4_8-branch/gcc/testsuite/ChangeLog branches/gcc-4_8-branch/gcc/tree-vect-slp.c