fold-const.c (build_range_check): Optimize (c>=1) && (c<=127) into the equivalent...
authorRoger Sayle <roger@eyesopen.com>
Fri, 10 May 2002 22:24:13 +0000 (22:24 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Fri, 10 May 2002 22:24:13 +0000 (22:24 +0000)
commitdbfb1116b34897645d29db19c7557348cd69d21b
tree8a995b794b7a305a3fea68fbd495596f5a3b2c15
parent79a497cd1dd6b3f6b0d9195bdbff2eb13c8919dd
fold-const.c (build_range_check): Optimize (c>=1) && (c<=127) into the equivalent (signed char)c > 0.

* fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
into the equivalent (signed char)c > 0.

* gcc.c-torture/execute/20020510-1.c: New test case.

From-SVN: r53373
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20020510-1.c [new file with mode: 0644]