2005-07-02 Andrew Pinski <pinskia@physics.uc.edu>
commitc2352383db0c8915d77c42f4994c9d849e15d462
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 2 Jul 2005 16:24:31 +0000 (2 16:24 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 2 Jul 2005 16:24:31 +0000 (2 16:24 +0000)
tree6727f44f38b7555600e9d6975c1b06de203f7e6f
parent8fc27ba7e2e3e435f50014196e38af2a964f3350
2005-07-02  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/14490
        * fold-const.c (fold_binary): Handle the return value of
        fold_to_nonsharp_ineq_using_bound if we get back the same operand back.
        Implement "X +- C1 CMP C2" folding to "X CMP C2 -+ C1".

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101535 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/gcc.dg/20050702-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr14490-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr14490-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr14490-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr14490-4.c [new file with mode: 0644]