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

--- Comment #410 from Kazumoto Kojima <kkojima at gcc dot gnu.org> ---
Created attachment 59432
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59432&action=edit
a trial patch for c#404

It's difficult to see what is going on, because the test case is too huge. 
Looking at the postmortem debug, it seems that reload failed with f - r reg
move generated by LRA, perhaps in starvation of registers including fpu regs
and fpul.  That case might require reloading with memories which isn't handled
by the current movsf logic for LRA.

The patch falls back to movsf_ie for f - r moves when lra_in_progress is true.
Tested with c/c++ testsuite on devel/sh-lra.

Reply via email to