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/36133] GCC creates suboptimal ASM : Code includes unneeded TST instructions



------- Comment #10 from ams at gcc dot gnu dot org  2008-11-19 11:25 -------
Subject: Bug 36133

Author: ams
Date: Wed Nov 19 11:23:28 2008
New Revision: 141999

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141999
Log:
2008-11-19  Andrew Stubbs  <ams@codesourcery.com>

        gcc/
        PR target/36133
        * config/m68k/m68k.h (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY): New defines.
        * config/m68k/m68k.c (notice_update_cc): Set cc_status properly for
        shift instructions.
        * config/m68k/m68k.md: Adjust all conditional branches that use the
        carry and overflow flags so they understand CC_OVERFLOW_UNUSABLE.

        gcc/testsuite/
        PR target/36133
        * gcc.target/m68k/pr36133.c: New test.


Added:
    trunk/gcc/testsuite/gcc.target/m68k/pr36133.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/m68k/m68k.c
    trunk/gcc/config/m68k/m68k.h
    trunk/gcc/config/m68k/m68k.md
    trunk/gcc/testsuite/ChangeLog


-- 


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


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