https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121501
--- Comment #6 from Richard Sandiford <rsandifo at gcc dot gnu.org> --- Created attachment 62099 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62099&action=edit Candidate patch This seems to be caused by missing modes on if_then_else rtxes in some P9 patterns. Could you try the attached patch?