From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23309 invoked by alias); 13 Jan 2014 13:47:05 -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 23271 invoked by uid 48); 13 Jan 2014 13:47:02 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/59594] [4.9 Regression] wrong code (by tree vectorizer) at -O3 on x86_64-linux-gnu Date: Mon, 13 Jan 2014 13:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.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: 2014-01/txt/msg01355.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59594 --- Comment #3 from H.J. Lu --- (In reply to Jakub Jelinek from comment #2) > (In reply to H.J. Lu from comment #1) > > It is caused by r204062. > > That is only a part of the story, this testcase seems to be interesting. > > Starting with r204062 until r204560 this has been broken because of an ldist > bug. > r204561 fixed that again and the testcase worked until r206147. > r206148 (aka negative step vectorization support) started to ICE on this. > With r206178 it stopped ICEing and works again with -O3 -mtune=generic, not > sure if that has been intentional to change the generic tuning with that > patch. H.J.? There was a typo in r206178 and was fixed by r206180: http://gcc.gnu.org/git/?p=gcc.git;a=commit;h=ff385162ee38caf3100ba4a0f682241c3b0d681d Can you try r206180 on this? > Anyway, with -O3 -mtune=core-avx2 e.g. r206178 still ICEs and r206179 (which > fixed the ICE) starts the miscompilation.