From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 86505386C5B1; Thu, 15 Feb 2024 18:53:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 86505386C5B1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708023199; bh=UjFnS3JKPJhQjJOC6Hz4V9T6HcAjieItgosZqpBtUpg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=dUDBxr/0OcBd1nq3htGevp4GLtI6UBxI9OSZdECTsHvKo4i14RgB/mDZIRbN9tj0f yzbNOCKGCZ+fmXM+zujl39rXA3CHf/bgtU8YbhznqKE0+8tgMNfyL4paCVkwMYRIIq 330bxjIsimwk7oHPQhxtYjCzP8tQ+vJ62pVf70vA= From: "tnfchris at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/111156] [14 Regression] aarch64 aarch64/sve/mask_struct_store_4.c failures Date: Thu, 15 Feb 2024 18:53:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: testsuite-fail, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: tnfchris at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111156 --- Comment #21 from Tamar Christina --- (In reply to Richard Biener from comment #18) > diff --git a/gcc/tree-vect-slp.cc b/gcc/tree-vect-slp.cc > index 7cf9504398c..8deeecfd4aa 100644 > --- a/gcc/tree-vect-slp.cc > +++ b/gcc/tree-vect-slp.cc > @@ -1280,8 +1280,11 @@ vect_build_slp_tree_1 (vec_info *vinfo, unsigned c= har > *swap, > && rhs_code.is_tree_code () > && (TREE_CODE_CLASS (tree_code (first_stmt_code)) > =3D=3D tcc_comparison) > - && (swap_tree_comparison (tree_code (first_stmt_code)) > - =3D=3D tree_code (rhs_code))) > + && ((swap_tree_comparison (tree_code (first_stmt_code= )) > + =3D=3D tree_code (rhs_code)) > + || ((TREE_CODE_CLASS (tree_code (alt_stmt_code)) > + =3D=3D tcc_comparison) > + && rhs_code =3D=3D alt_stmt_code))) > && !(STMT_VINFO_GROUPED_ACCESS (stmt_info) > && (first_stmt_code =3D=3D ARRAY_REF > || first_stmt_code =3D=3D BIT_FIELD_REF >=20 > should get you SLP but: >=20 > t.c:8:26: note: =3D=3D=3D vect_slp_analyze_operations =3D=3D=3D > t.c:8:26: note: =3D=3D> examining statement: pretmp_29 =3D *_28; > t.c:8:26: missed: unsupported load permutation > t.c:10:30: missed: not vectorized: relevant stmt not supported: pretmp_= 29 > =3D *_28; >=20 > t.c:8:26: note: op template: pretmp_29 =3D *_28; > t.c:8:26: note: stmt 0 pretmp_29 =3D *_28; > t.c:8:26: note: stmt 1 pretmp_29 =3D *_28; > t.c:8:26: note: load permutation { 0 0 } hmm with that applied I get: sve-mis.c:8:26: note: =3D=3D> examining statement: pretmp_29 =3D *_28; sve-mis.c:8:26: note: Vectorizing an unaligned access. sve-mis.c:8:26: note: vect_model_load_cost: unaligned supported by hardwa= re. sve-mis.c:8:26: note: vect_model_load_cost: inside_cost =3D 1, prologue_c= ost =3D 0 . but it bails out at: sve-mis.c:8:26: missed: Not using elementwise accesses due to variable vectorization factor. sve-mis.c:10:25: missed: not vectorized: relevant stmt not supported: .MASK_STORE (_5, 8B, _27, pretmp_29); sve-mis.c:8:26: missed: bad operation or unsupported loop bound. for me=