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/44072] Use 'add r0, 1' to replace 'cmp r0, -1' in thumb2



------- Comment #2 from rearnsha at gcc dot gnu dot org  2010-06-19 23:00 -------
Subject: Bug 44072

Author: rearnsha
Date: Sat Jun 19 23:00:31 2010
New Revision: 161040

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=161040
Log:
        PR target/44072
        * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
        immediate.
        * constraints.md (Pw, Px): New constraints.
        * thumb2.md (cmpsi2_addneg peephole2): New peepholes.

        * gcc.target/arm/thumb2-cmpneg2add-1.c: New test.
        * gcc.target/arm/thumb2-cmpneg2add-2.c: New test.

Added:
    trunk/gcc/testsuite/gcc.target/arm/thumb2-cmpneg2add-1.c
    trunk/gcc/testsuite/gcc.target/arm/thumb2-cmpneg2add-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/arm/arm.md
    trunk/gcc/config/arm/constraints.md
    trunk/gcc/config/arm/thumb2.md
    trunk/gcc/testsuite/ChangeLog


-- 


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


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