This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/27743] [4.1 Regression] Wrong code for ((unsigned) ((a) >> 2)) >> 15
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 May 2006 09:53:14 -0000
- Subject: [Bug middle-end/27743] [4.1 Regression] Wrong code for ((unsigned) ((a) >> 2)) >> 15
- References: <bug-27743-11275@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from rguenth at gcc dot gnu dot org 2006-05-26 09:53 -------
Subject: Bug 27743
Author: rguenth
Date: Fri May 26 09:53:01 2006
New Revision: 114128
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114128
Log:
2006-05-26 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.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/torture/pr27743.c
- copied unchanged from r114112,
trunk/gcc/testsuite/gcc.dg/torture/pr27743.c
Modified:
branches/gcc-4_1-branch/gcc/ChangeLog
branches/gcc-4_1-branch/gcc/fold-const.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27743