fold-const.c (fold_comparison): Fold comparisons like (x * 1000 < 0) to (x < 0).
authorRobert Kennedy <jimbob@google.com>
Wed, 10 Jan 2007 21:07:38 +0000 (21:07 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 10 Jan 2007 21:07:38 +0000 (21:07 +0000)
commit6b074ef6a052a19061eba1d2305c74277429d9bd
treebc31606a9a7b434c624657d340d54a055fe20619
parentee3202e1498c32d3119bcfd52af318585fb3dd72
fold-const.c (fold_comparison): Fold comparisons like (x * 1000 < 0) to (x < 0).

./: * fold-const.c (fold_comparison): Fold comparisons like (x *
1000 < 0) to (x < 0).
testsuite/:
* gcc.dg/fold-compare-2.c: New test case for fold_comparison.

From-SVN: r120649
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fold-compare-2.c [new file with mode: 0644]