From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18651 invoked by alias); 13 Aug 2008 09:55:27 -0000 Received: (qmail 15699 invoked by uid 48); 13 Aug 2008 09:54:07 -0000 Date: Wed, 13 Aug 2008 09:55:00 -0000 Message-ID: <20080813095407.15698.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/37102] [4.3/4.4 Regression] possible integer codegen bug In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-08/txt/msg00988.txt.bz2 ------- Comment #2 from rguenth at gcc dot gnu dot org 2008-08-13 09:54 ------- Testcase failing with -O3 but not with -O3 -fno-unswitch-loops: extern void abort (void); unsigned int g_24; unsigned int g_37 = 1; unsigned int g_225 = 0; void __attribute__((noinline)) foo (int x) { if (x != 5) abort (); } int main () { unsigned int l_289; for (l_289 = 1; l_289 < 5; l_289 += 1) { if (g_225) { g_24 = g_37; } } g_24 = g_37; unsigned int context = g_24 << 1; do { if (context) context = (context << 1) ^ 1; } while (0); foo (context); return 0; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37102