re PR tree-optimization/20922 (missed always false conditional)
authorJames A. Morrison <phython@gcc.gnu.org>
Mon, 18 Apr 2005 15:18:21 +0000 (15:18 +0000)
committerJames A. Morrison <phython@gcc.gnu.org>
Mon, 18 Apr 2005 15:18:21 +0000 (15:18 +0000)
commit0eeb03e6fb26e4602a421d74a4c5e76b8e46605d
tree9a986aa5b5fe42c3e7cb2e30a5bd0d19a609233d
parent8f6c5889021fd7fdba2505d1b7fe51e2e59316cb
re PR tree-optimization/20922 (missed always false conditional)

2005-04-18  James A. Morrison  <phython@gcc.gnu.org>

        PR tree-optimization/20922
        * fold-const.c (fold_binary): Fold X - c > X and X + c < X to false.
        Fold X + c >= X and fold X - c <= X to true.

From-SVN: r98321
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr20922-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr20922-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr20922-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr20922-4.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr20922-5.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr20922-6.c [new file with mode: 0644]