https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77714
Bernd Edlinger <edlinger at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2016-09-24 Ever confirmed|0 |1 --- Comment #2 from Bernd Edlinger <edlinger at gcc dot gnu.org> --- Maybe you can try this: Index: lra-eliminations.c =================================================================== --- lra-eliminations.c (revision 240437) +++ lra-eliminations.c (working copy) @@ -973,11 +973,11 @@ up. */ validate_change (insn, &SET_SRC (old_set), src, 1); validate_change (insn, &SET_DEST (old_set), - ep->from_rtx, 1); + ep->to_rtx, 1); if (! apply_change_group ()) { SET_SRC (old_set) = src; - SET_DEST (old_set) = ep->from_rtx; + SET_DEST (old_set) = ep->to_rtx; } lra_update_insn_recog_data (insn); /* Add offset note for future updates. */