re PR tree-optimization/54027 (possible mis-optimization of signed left shift in...
authorRichard Guenther <rguenther@suse.de>
Fri, 10 Aug 2012 08:33:57 +0000 (08:33 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 10 Aug 2012 08:33:57 +0000 (08:33 +0000)
commita28729836a7f1993a17eeca53a0165c31406b581
tree43053999250c5d3d6737bf5f2ad532a3798eb474
parent70b5e7dc7356529b557b613c7dee032c9d89d035
re PR tree-optimization/54027 (possible mis-optimization of signed left shift in c89 mode)

2012-08-10  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/54027
* tree-vrp.c (extract_range_from_binary_expr_1): Merge RSHIFT_EXPR
and LSHIFT_EXPR handling, force -fwrapv for the multiplication used
to handle LSHIFT_EXPR with a constant.

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

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