From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16408 invoked by alias); 14 Feb 2015 09:22:26 -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 16373 invoked by uid 48); 14 Feb 2015 09:22:23 -0000 From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/65063] New: gcc.dg/vect/vect-double-reduc-6.c FAILs with -O3 -fno-tree-loop-ivcanon -fno-tree-vectorize Date: Sat, 14 Feb 2015 09:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: 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-02/txt/msg01587.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65063 Bug ID: 65063 Summary: gcc.dg/vect/vect-double-reduc-6.c FAILs with -O3 -fno-tree-loop-ivcanon -fno-tree-vectorize Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Created attachment 34754 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34754&action=edit reduced testcase Output (on reduced testcase): $ gcc -Wall -W testcase.c -O3 -fno-tree-loop-ivcanon -fno-tree-vectorize $ ./a.out Aborted The assembly code shows: ... mov DWORD PTR out[rip], 0 # out, mov DWORD PTR out[rip+4], 16 # out, mov DWORD PTR out[rip+8], 256 # out, mov DWORD PTR out[rip+12], 16384 # out, call abort # out[] = {0, 16, 256, 16384} but should be out[] = {0, 16, 256, 4096} (gdb) p in $1 = {{0, 0, 0, 0}, {1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}, {2, 2, 2, 2}, {2, 2, 2, 2}, {2, 2, 2, 2}, {3, 3, 3, 3}} (gdb) p out $2 = {0, 16, 256, 16384} in[] looks fine, also in the assembly The first dump where "16384" appears is 191r.cse1. This might be the same as PR63593. Tested revisions: r220676 - fail