http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52932
--- Comment #8 from Uros Bizjak <ubizjak at gmail dot com> 2012-04-12 17:10:31 UTC --- (In reply to comment #5) > Uros, I've slightly updated your patch: idx and vector were intermixed. The same cure should be applied to vpermd insn. Fortunately, this allowed us to vectorize vpermps and vpermd patterns. Please also note that avx2-vpermd-2.c test also had switched operands to _mm256_permutevar8x32_epi32.