avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base register if not marked dead/unused, before return.

* config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
	register if not marked dead/unused, before return.

From-SVN: r223647
This commit is contained in:
Pitchumani Sivanupandi 2015-05-25 16:43:05 +00:00 committed by Denis Chertykov
parent 9677ef526d
commit 9e46366d37
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
* config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
register if not marked dead/unused, before return.
2015-05-22 Jan Hubicka <hubicka@ucw.cz>
PR lto/66180

View File

@ -4379,9 +4379,9 @@ avr_out_load_psi_reg_no_disp_tiny (rtx_insn *insn, rtx *op, int *plen)
}
else
{
return avr_asm_len ("ld %A0,%1+" CR_TAB
"ld %B0,%1+" CR_TAB
"ld %C0,%1", op, plen, -3);
avr_asm_len ("ld %A0,%1+" CR_TAB
"ld %B0,%1+" CR_TAB
"ld %C0,%1", op, plen, -3);
if (reg_dest != reg_base - 2 &&
!reg_unused_after (insn, base))