https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101058
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Though, when this *punpckwd define_insn_and_split handles all possible constant permutations for V2HImode, shouldn't ix86_vectorize_vec_perm_const say so: case E_V2HImode: if (!TARGET_SSE2) return false; + /* All implementable with *punpckwd. */ + if (d.testing_p) + return true; break; ?