re PR target/61055 ([avr] wrong test instruction after increment with -O1)
commitb846980537e3d2f272c461fac6777c6d991aeb67
authorGeorg-Johann Lay <avr@gjlay.de>
Fri, 9 May 2014 11:20:43 +0000 (9 11:20 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Fri, 9 May 2014 11:20:43 +0000 (9 11:20 +0000)
tree23cd01570b81a57b568a9a032d48643a350cc98f
parenteac3e079667d0a56f2ba84469a764407f3aee2a9
re PR target/61055 ([avr] wrong test instruction after increment with -O1)

gcc/config/avr
PR target/61055
* config/avr/avr.md (cc): Add new attribute set_vzn.
(addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, 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 and ADD+ADC set cc0 to CC_CLOBBER.

gcc/testsuite/
PR target/61055
* gcc.target/avr/torture/pr61055.c: New test.

From-SVN: r210267
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]