re PR tree-optimization/66894 (wrong code at -Os and above on x86_64-linux-gnu)
authorRichard Biener <rguenther@suse.de>
Thu, 16 Jul 2015 11:27:34 +0000 (11:27 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 16 Jul 2015 11:27:34 +0000 (11:27 +0000)
commitef3b59ace9400afc4beba51f7ca91a1dfcc3ca38
treea442c599fd189235da985453491c9d264689e929
parentfb0b291494898e922f9b8def65da1702d2ae756e
re PR tree-optimization/66894 (wrong code at -Os and above on x86_64-linux-gnu)

2015-07-16  Richard Biener  <rguenther@suse.de>

PR tree-optimization/66894
* tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
about deriving NE_EXPR from truncated values.

* gcc.dg/torture/pr66894.c: New testcase.

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