https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119103
--- Comment #13 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Niklas Haas from comment #12) > Out of curiosity, is there a work-around that I could use to get current > versions of GCC to compile the right thing, but without breaking > cross-platform compatibility? > > I did try replacing the assertion by "x[i] << (amount & 0xF)" but the vector > version of the code at least still compiles down to vpslld. I don't see a way to get the vpsllw with an unpatched compiler.