re PR target/81305 ([avr] avrtiny uses LDS for SREG in ISR routines which is out...
authorGeorg-Johann Lay <avr@gjlay.de>
Wed, 5 Jul 2017 12:28:19 +0000 (12:28 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Wed, 5 Jul 2017 12:28:19 +0000 (12:28 +0000)
commit5c4feb2d1a0b504f24bb340b2406983955248abd
treeece651266df57e7f951b40165360f0a45669177b
parenta8745cc231e043dc9e455ea2a5897d30c14fd95a
re PR target/81305 ([avr] avrtiny uses LDS for SREG in ISR routines which is out of range of LDS.)

gcc/
PR target/81305
* config/avr/avr.c (avr_out_movhi_mr_r_xmega) [CONSTANT_ADDRESS_P]:
Don't depend on "optimize > 0".
(out_movhi_r_mr, out_movqi_mr_r): Same.
(out_movhi_mr_r, out_movqi_r_mr): Same.
(avr_address_cost) [CONSTANT_ADDRESS_P]: Don't depend cost for
io_address_operand on "optimize > 0".
* testsuite/gcc.target/avr/torture/isr-01-simple.c: New test.
* testsuite/gcc.target/avr/torture/isr-02-call.c: New test.
* testsuite/gcc.target/avr/torture/isr-03-fixed.c: New test.

From-SVN: r249995
gcc/ChangeLog
gcc/config/avr/avr.c
gcc/testsuite/gcc.target/avr/torture/isr-01-simple.c [new file with mode: 0644]
gcc/testsuite/gcc.target/avr/torture/isr-02-call.c [new file with mode: 0644]
gcc/testsuite/gcc.target/avr/torture/isr-03-fixed.c [new file with mode: 0644]