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 tree-optimization/15458] Combine ~ and ^.



------- Comment #7 from sayle at gcc dot gnu dot org  2006-10-29 17:51 -------
Subject: Bug 15458

Author: sayle
Date: Sun Oct 29 17:51:07 2006
New Revision: 118152

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118152
Log:

        PR tree-optimization/15458
        * fold-const.c (fold_binary): Optimize ~X ^ C as X ^ ~C, where C
        is a constant.

        * gcc.dg/fold-xornot-1.c: New test case.


Added:
    trunk/gcc/testsuite/gcc.dg/fold-xornot-1.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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