From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 103383 invoked by alias); 7 Oct 2015 15:28:46 -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 103316 invoked by uid 48); 7 Oct 2015 15:28:43 -0000 From: "su at cs dot ucdavis.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/67828] [6 Regression] wrong code at -O3 on x86_64-linux-gnu Date: Wed, 07 Oct 2015 15:28: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: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: su at cs dot ucdavis.edu X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: aoliva at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: 2015-10/txt/msg00519.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67828 --- Comment #6 from Zhendong Su --- Below is another testcase that I believe exposes the same issue: --------------------------------------- int a = 2, b = 1, c = 1; int fn1 () { int d; for (; a; a--) { for (d = 0; d < 4; d++) { int k; if (c < 1) if (k) c = 0; if (b) continue; return 0; } b = !1; } return 0; } int main () { fn1 (); if (a != 1) __builtin_abort (); return 0; }