From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2D869385E444; Wed, 8 Jul 2020 09:41:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2D869385E444 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1594201303; bh=sMC3YukSnCYst7+DvZw323Mwr39rOkyxvPcbL/qxLeY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ACHXkUPPmy7/i04ULygq3sHIQIghM8ajoE+ti77ZiX+QxUoeSmCnQyF6I/NpWPv+2 t3GegQjDLf9ZrKU4V4kpwmbOc+gVHZNE7FBzp0j5wsY0B5I7CZjRQVrhQjHF82jFbj /AcmfSDEl2b4xj9IRxDDO/ATYUB6rOHOZ73P/p9g= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/96109] gcc.dg/vect/slp-47.c etc. FAIL Date: Wed, 08 Jul 2020 09:41:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jul 2020 09:41:43 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96109 --- Comment #3 from Richard Biener --- OK, it's indeed wrong which means we'd fall through the checks that prevent SPARC from vectorizing here but then we'll create an unaligned access anyway (because VMAT_STRIDED_SLP is too lazy to figure out appropriate alignment). We're also assuming element alignment there. static double x[1024], y[1024]; void __attribute__((noipa)) foo () { for (int i =3D 0; i < 511; ++i) { x[2*i] =3D y[1022 - 2*i - 1]; x[2*i+1] =3D y[1022 - 2*i]; } } int main() { for (int i =3D 0; i < 1024; ++i) x[i] =3D 0, y[i] =3D i; foo (); for (int i =3D 0; i < 1022; ++i) if (x[i] !=3D y[1022 - (i^1)]) __builtin_abort (); if (x[1022] !=3D 0 || x[1023] !=3D 0) __builtin_abort (); return 0; }=