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 middle-end/26898] Fold does not fold signed + CST1 CMP signed + CST2



------- Comment #6 from rguenth at gcc dot gnu dot org  2006-10-21 13:21 -------
Subject: Bug 26898

Author: rguenth
Date: Sat Oct 21 13:21:06 2006
New Revision: 117931

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117931
Log:
2006-10-21  Richard Guenther  <rguenther@suse.de>

        PR middle-end/26898
        * fold-const.c (fold_comparison): Fold signed comparisons
        of the form X +- C1 CMP Y +- C2.

        * gcc.dg/torture/pr26898-1.c: New testcase.
        * gcc.dg/torture/pr26898-2.c: Likewise.

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr26898-1.c
    trunk/gcc/testsuite/gcc.dg/torture/pr26898-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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