This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/61055] [avr] wrong test instruction after increment with -O1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61055

--- Comment #4 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Author: gjl
Date: Fri May  9 11:29:58 2014
New Revision: 210269

URL: http://gcc.gnu.org/viewcvs?rev=210269&root=gcc&view=rev
Log:
gcc/
    Backport from 2014-05-09 trunk r210267
    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/
    Backport from 2014-05-09 trunk r210267
    PR target/61055
    * gcc.target/avr/torture/pr61055.c: New test.


Added:
    branches/gcc-4_8-branch/gcc/testsuite/gcc.target/avr/torture/pr61055.c
Modified:
    branches/gcc-4_8-branch/gcc/ChangeLog
    branches/gcc-4_8-branch/gcc/config/avr/avr.c
    branches/gcc-4_8-branch/gcc/config/avr/avr.md
    branches/gcc-4_8-branch/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]