re PR c/11449 (ICE in invert_truthvalue called on AND operation)
authorKazu Hirata <kazu@gcc.gnu.org>
Thu, 10 Jul 2003 12:40:10 +0000 (12:40 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Thu, 10 Jul 2003 12:40:10 +0000 (12:40 +0000)
commitc87d821bd4efac92a032809b16b2951221b7a55b
treea8e19967fdd99d0fc53016195487b80ac8f20ece
parentbcda12f4f4110d1376d822112c9c00d6287471a6
re PR c/11449 (ICE in invert_truthvalue called on AND operation)

PR c/11449
* fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
of HOST_WIDE_INT.
(fold_single_bit_test): If sign_bit_p() fails, assume that the
bit being tested is not a sign bit.

PR c/11449
* gcc.c-torture/compile/20030707-1.c: New.
* config/h8300/h8300.md (a peephole2): New.

From-SVN: r69184
gcc/fold-const.c
gcc/testsuite/gcc.c-torture/compile/20030707-1.c [new file with mode: 0644]