diff options
author | Georg-Johann Lay <avr@gjlay.de> | 2014-05-09 11:20:43 +0000 |
---|---|---|
committer | Georg-Johann Lay <gjl@gcc.gnu.org> | 2014-05-09 11:20:43 +0000 |
commit | b846980537e3d2f272c461fac6777c6d991aeb67 (patch) | |
tree | 23cd01570b81a57b568a9a032d48643a350cc98f /gcc/cfgexpand.c | |
parent | eac3e079667d0a56f2ba84469a764407f3aee2a9 (diff) | |
download | gcc-b846980537e3d2f272c461fac6777c6d991aeb67.zip gcc-b846980537e3d2f272c461fac6777c6d991aeb67.tar.gz gcc-b846980537e3d2f272c461fac6777c6d991aeb67.tar.bz2 |
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
Diffstat (limited to 'gcc/cfgexpand.c')
0 files changed, 0 insertions, 0 deletions