OSDN Git Service

* fold-const.c (fold): Transform (c1 - x) cmp c2, where cmp is a
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Apr 2003 20:16:58 +0000 (20:16 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Apr 2003 20:16:58 +0000 (20:16 +0000)
commitedc21ba8088e0e485b3bdccaba28005747e2ba61
treea3d2d13cfa04d1656aee06fd96e6f08bdbc67e20
parent6419e9ffc71872b1286b807082d907e644e84122
* fold-const.c (fold):  Transform (c1 - x) cmp c2, where cmp is a
comparison operation and c1/c2 are floating point constants into
x swap(cmp) (c1 - c2).

* gcc.dg/20030414-2.c: New test case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65584 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20030414-2.c [new file with mode: 0644]