re PR target/52261 ([avr] Add support for AVR Xmega cores)

PR target/52261
	* config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
	to test for unusedness in st X addressing.

From-SVN: r184559
This commit is contained in:
Georg-Johann Lay 2012-02-24 16:26:35 +00:00 committed by Georg-Johann Lay
parent 7d78d5a600
commit 39e73abcec
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2012-02-24 Georg-Johann Lay <avr@gjlay.de>
PR target/52261
* config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
to test for unusedness in st X addressing.
2012-02-24 Richard Guenther <rguenther@suse.de>
PR middle-end/52361

View File

@ -4019,8 +4019,8 @@ avr_out_movhi_mr_r_xmega (rtx insn, rtx op[], int *plen)
else
avr_asm_len ("st X+,%A1" CR_TAB
"st X,%B1", op, plen, -2);
return reg_unused_after (insn, src)
return reg_unused_after (insn, base)
? ""
: avr_asm_len ("sbiw r26,1", op, plen, 1);
}