From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CC356385DC11; Tue, 31 Mar 2020 14:14:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CC356385DC11 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1585664043; bh=xQhlFcdPPDMXTbO19krf+kBINXtgX+eVp8TwGi4CRrQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=It3JeWbQzMGNLPdNg5lRAVcA7d9F6sIP+vewgY4Z+qzZE+gYYux6KPqwuzxhqRP53 zyYXDWPpULeUWJoEzUnWr2vYnNJOCzJ7YuqxjuQpKFgv3p6phTTsyTRr23PUHCcgK0 XBA5bFwfxVtWjZyC3o7AXJhQISmKcHC9ArGjigu0= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/94398] ICE: in vectorizable_load, at tree-vect-stmts.c:9173 Date: Tue, 31 Mar 2020 14:14:03 +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: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: 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: 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: Tue, 31 Mar 2020 14:14:03 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94398 --- Comment #5 from CVS Commits --- The master branch has been updated by Richard Sandiford : https://gcc.gnu.org/g:f14b41d27124601284347a10d496362c8b4b8e1c commit r10-7481-gf14b41d27124601284347a10d496362c8b4b8e1c Author: Felix Yang Date: Tue Mar 31 16:41:56 2020 +0800 vect: ICE: in vectorizable_load, at tree-vect-stmts.c:9173 [PR94398] In the testcase for PR94398, we're trying to compute: alignment_support_scheme =3D vect_supportable_dr_alignment (first_dr_info, false); gcc_assert (alignment_support_scheme); even for VMAT_GATHER_SCATTER, which always accesses individual elements. Here we should set alignment_support_scheme to dr_unaligned_supported the gather/scatter case instead of calling vect_supportable_dr_alignmen= t. 2020-03-31 Felix Yang gcc/ PR tree-optimization/94398 * tree-vect-stmts.c (vectorizable_store): Instead of calling vect_supportable_dr_alignment, set alignment_support_scheme to dr_unaligned_supported for gather-scatter accesses. (vectorizable_load): Likewise. gcc/testsuite/ PR tree-optimization/94398 * gcc.target/aarch64/pr94398.c: New test.=