http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57051
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-04-24 10:44:13 UTC --- Created attachment 29928 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29928 gcc49-pr57051.patch It isn't that hard to fold VEC_RSHIFT_EXPR, at least for the cases where the shift count is a multiple of element bitsize (the only case where GCC actually ever emits VEC_RSHIFT_EXPR right now). Untested (beyond checking this is folded into store of 450 again).