]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR target/61055 ([avr] wrong test instruction after increment with -O1)
authorGeorg-Johann Lay <avr@gjlay.de>
Fri, 9 May 2014 11:34:46 +0000 (11:34 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Fri, 9 May 2014 11:34:46 +0000 (11:34 +0000)
commit1eaf9276cbab21777ebe2569c90ee403bb477e1f
tree17eefc0d200558ec27ef7c0457b924dcd7052549
parent856853f1f3d784591f348b4a2ace975684229bd3
backport: re PR target/61055 ([avr] wrong test instruction after increment with -O1)

gcc/
Backport from 2014-05-09 trunk r210267
PR target/61055
* config/avr/avr.md (cc): Add new attribute set_vzn.
(addqi3, negqi2) [cc]:
Set cc insn attribute to set_vzn instead of set_zn for alternatives
with INC, DEC or NEG.
* config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
(avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
INC, DEC set cc0 to CC_CLOBBER.

gcc/testsuite/
Backport from 2014-05-09 trunk r210267
PR target/61055
* gcc.target/avr/torture/pr61055.c: New test.

From-SVN: r210270
gcc/ChangeLog
gcc/config/avr/avr.c
gcc/config/avr/avr.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/avr/torture/pr61055.c [new file with mode: 0644]