https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101668
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> --- Created attachment 53031 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53031&action=edit patch This works now - the support for enhanced vec_perm_const is still not complete on trunk (it claims all is OK ...) so it will ICE for testcases that would require this. But lowpart extracts and concats (untested) should work. I'll extend coverage once the dependences are on trunk. For the testcase at hand we now generate bar_s32_s64: .LFB0: .cfi_startproc vpmovsxdq %ymm0, %zmm0 vmovdqa64 %zmm0, (%rdi) ret with AVX512.