From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6283 invoked by alias); 16 May 2013 07:53:03 -0000 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 Received: (qmail 6188 invoked by uid 48); 16 May 2013 07:52:57 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/57300] [4.8/4.9 Regression] statement in expression miscompiled at -O3 in 32-bit mode Date: Thu, 16 May 2013 07:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 4.8.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.1 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc version target_milestone short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-05/txt/msg01081.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57300 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org Version|4.9.0 |4.8.1 Target Milestone|--- |4.8.1 Summary|statement in expression |[4.8/4.9 Regression] |miscompiled at -O3 in |statement in expression |32-bit mode |miscompiled at -O3 in | |32-bit mode --- Comment #1 from Jakub Jelinek --- /* PR rtl-optimization/57300 */ /* { dg-do run } */ /* { dg-options "-O3" } */ /* { dg-additional-options "-msse2" { target sse2_runtime } } */ extern void abort (void); int a, b, d[10]; long long c; int main () { int e; for (e = 0; e < 10; e++) d[e] = 1; if (d[0]) c = a = (b == 0 || 1 % b); if (a != 1) abort (); return 0; } (note, -msse needed, without it it doesn't reproduce). Started with LRA merge, but looks very much PR57281 related.