tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise information for ranges...
authorRichard Guenther <rguenther@suse.de>
Tue, 9 Aug 2011 14:03:10 +0000 (14:03 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 9 Aug 2011 14:03:10 +0000 (14:03 +0000)
commit4001900fb3dd67c055a9350244fd4a644c6d7c7a
tree65bbb1ea81207fe1b61b32ed9e44238c8a15c344
parentcd812873753fafce7590211420a116534461689f
tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise information for ranges with only negative values.

2011-08-09  Richard Guenther  <rguenther@suse.de>

* tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
information for ranges with only negative values.
(extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
BIT_AND_EXPR handling to handle ranges with negative values.

* gcc.dg/tree-ssa/vrp57.c: Disable CCP.
* gcc.dg/tree-ssa/vrp60.c: New testcase.
* gcc.dg/tree-ssa/vrp61.c: Likewise.
* gcc.dg/tree-ssa/vrp62.c: Likewise.

From-SVN: r177597
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/vrp57.c
gcc/testsuite/gcc.dg/tree-ssa/vrp60.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/vrp61.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/vrp62.c [new file with mode: 0644]
gcc/tree-vrp.c