http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52760
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-03-29 09:33:31 UTC --- Created attachment 27028 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27028 gcc48-pr52760.patch Untested fix. Using VCE here is undesriable, on big-endian it turns the shift count 8 into 0 (because vector element type is unsigned short, not int as the type of op). Generally, the type of the rhs2 of a shift/rotate is unrelated to the lhs/rhs1 types.