re PR middle-end/27743 (Wrong code for ((unsigned) ((a) >> 2)) >> 15)
authorRichard Guenther <rguenther@suse.de>
Thu, 25 May 2006 12:39:52 +0000 (12:39 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 25 May 2006 12:39:52 +0000 (12:39 +0000)
commit2d60e929a169691cc5b5ac520364a9002af0c7cd
tree668a674da46ef3465f8087dae52ea497879ab501
parent466a0c362fe022607a2cd05803988f952116d581
re PR middle-end/27743 (Wrong code for ((unsigned) ((a) >> 2)) >> 15)

2006-05-25  Richard Guenther  <rguenther@suse.de>

PR middle-end/27743
* fold-const.c (fold_binary): Do not look at the stripped
op0 for (a OP c1) OP c2 to a OP (c1+c2) shift optimization.

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

From-SVN: r114112
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr27743.c [new file with mode: 0644]