http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57051
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-05-03 13:57:52 UTC --- Author: jakub Date: Fri May 3 13:16:13 2013 New Revision: 198580 URL: http://gcc.gnu.org/viewcvs?rev=198580&root=gcc&view=rev Log: Backported from mainline 2013-04-26 Jakub Jelinek <ja...@redhat.com> PR tree-optimization/57051 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR and VEC_RSHIFT_EXPR if shift count is a multiple of element bitsize. 2013-04-12 Marc Glisse <marc.gli...@inria.fr> * fold-const.c (fold_binary_loc): Call const_binop also for mixed vector-scalar operations. Modified: branches/gcc-4_8-branch/gcc/ChangeLog branches/gcc-4_8-branch/gcc/fold-const.c The testcase should now no longer regress, keeping open for Richard's SCEV investigation.