https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93720
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 47853 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47853&action=edit A better version This attached patch is generalized version of the vec_perm to insert. We don't need need patterns in the .md file as there are already enough to do the correct thing. Yes we still have the extra mov, but that seems to be a register allocator issue. I have not looked into it further.