https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101046
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 51005 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51005&action=edit gcc12-pr101046.patch Untested fix. For ops that have different mode of the arguments from the result mode, subtarget obviously can't be used.