https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82778

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 42502
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42502&action=edit
gcc8-pr82778.patch

The following untested patch ought to fix it.
recog_memoized doesn't handle the important part insn_invalid_p does:
/* After reload, verify that all constraints are satisfied.  */
so it happily created an instruction that is wrong after reload.

I still wonder if the patch shouldn't be reverted or at least if the changes
can't be limited to targets that would benefit from that (perhaps target hook
to signal it needs it)?

Reply via email to