https://gcc.gnu.org/bugzilla/show_bug.cgi?id=129223
--- Comment #2 from Drea Pinski <pinskia at gcc dot gnu.org> --- Created attachment 66368 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=66368&action=edit Patch which seems to do the job I have no way to test this patch but this seems to do the job. You can improve the patch slightly if needed, that is instead of the emit_move_insn, you could just use operands[2]/operands[3] directly for sel1/sel2.
