re PR tree-optimization/63641 (Invalid shift leads to incorrect code on 32-bit system)
authorJakub Jelinek <jakub@redhat.com>
Sat, 25 Oct 2014 20:21:47 +0000 (22:21 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 25 Oct 2014 20:21:47 +0000 (22:21 +0200)
commit46a547083ac283bfea3406980a58f1f17b90c5c3
treebe8c1c5907e40185f6fcf7140f52f1d62ac08896
parent608b9c889efe2b27282ced89114d07e7e9b013ad
re PR tree-optimization/63641 (Invalid shift leads to incorrect code on 32-bit system)

PR tree-optimization/63641
* tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high
to low + prec - 1 - clz (mask) instead of low + prec - clz (mask).

* gcc.c-torture/execute/pr63641.c: New test.

From-SVN: r216693
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr63641.c [new file with mode: 0644]
gcc/tree-ssa-reassoc.c