re PR rtl-optimization/68217 (Wrong constant folding)
authorKugan Vivekanandarajah <kuganv@linaro.org>
Fri, 29 Jul 2016 00:35:23 +0000 (00:35 +0000)
committerKugan Vivekanandarajah <kugan@gcc.gnu.org>
Fri, 29 Jul 2016 00:35:23 +0000 (00:35 +0000)
commit883b6d4e1b1c826007d12b4685b4e7b0fffc5347
tree19f8f9d123989dcab239ef62675ca3ca7bd10f0a
parent257490974f36d660237ea0f6809b9c8b7f2b1461
re PR rtl-optimization/68217 (Wrong constant folding)

gcc/ChangeLog:

2016-07-29  Kugan Vivekanandarajah  <kuganv@linaro.org>

PR middle-end/68217
* tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
& sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].

gcc/testsuite/ChangeLog:

2016-07-29  Kugan Vivekanandarajah  <kuganv@linaro.org>

PR middle-end/68217
* gcc.dg/pr68217.c: New test.

From-SVN: r238846
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr68217.c [new file with mode: 0644]
gcc/tree-vrp.c