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/13827] (a & b) != (c & b) should be transformed to ((a^c) & b) !=0



------- Comment #4 from sayle at gcc dot gnu dot org  2006-11-12 18:41 -------
Subject: Bug 13827

Author: sayle
Date: Sun Nov 12 18:41:31 2006
New Revision: 118727

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

        PR tree-optimization/13827
        * fold-const.c (fold_binary) <EQ_EXPR, NE_EXPR>: Fold (X&C) op (Y&C)
        as ((X^Y)&C) op 0.

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


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


-- 


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


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