From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 483753861878; Thu, 15 Feb 2024 10:57:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 483753861878 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707994643; bh=lfasJWqAryQxjHB98R1txAJaDXSc63z3sSG7QHTOKnY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XId4j+BVQUIC6tAvtmB2hgYKKXimdyI3E0hZmhb8nNO+kwMTOyDNvDQL7gv6FeFgt z3nXiq4OFcsm7RfedRmliySNC1Jl+3x1gYQXC1Yz4ipbVxp6YL8n3fNRcO6CZVurcR AtR98QILVNmV/4pxpeEzD6eNoeh6tFkvF2zqIYmA= From: "rguenth 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 10:57:18 +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: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: 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: bug_status assigned_to 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 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot = gnu.org --- Comment #16 from Richard Biener --- OK, so the missed SLP is a known one: t.c:8:26: note: starting SLP discovery for node 0x5d42840 t.c:8:26: note: Build SLP for _27 =3D _3 <=3D 7; t.c:8:26: note: precomputed vectype: vector([8,8]) t.c:8:26: note: nunits =3D [8,8] t.c:8:26: note: Build SLP for _14 =3D _3 > 2; t.c:8:26: note: precomputed vectype: vector([8,8]) t.c:8:26: note: nunits =3D [8,8] t.c:8:26: missed: Build SLP failed: different operation in stmt _14 =3D _= 3 > 2; t.c:8:26: missed: original stmt _27 =3D _3 <=3D 7; I'm not sure we can do this with a single vector stmt but of course using 'two_operator' support might be possible here (do both > and <=3D and then blend the result). I see we end up using .MASK_STORE_LANES in the end but we're not using load-lanes. t.c:8:26: note: =3D=3D> examining pattern statement: .MASK_STORE (_5, 8B, patt_12, pretmp_29); t.c:8:26: note: vect_is_simple_use: operand () _27, typ= e of def: internal t.c:8:26: note: vect_is_simple_use: vectype vector([16,16]) t.c:8:26: note: vect_is_simple_use: operand *_28, type of def: internal t.c:8:26: note: vect_is_simple_use: vectype vector([16,16]) signed char t.c:8:26: missed: cannot use vec_mask_len_store_lanes t.c:8:26: note: can use vec_mask_store_lanes t.c:8:26: note: vect_is_simple_use: operand *_28, type of def: internal t.c:8:26: missed: cannot use vec_mask_len_store_lanes t.c:8:26: note: can use vec_mask_store_lanes ... t.c:8:26: note: =3D=3D> examining pattern statement: .MASK_STORE (_9, 8B,= patt_4, pretmp_29); t.c:8:26: note: vect_is_simple_use: operand () _14, typ= e of def: internal t.c:8:26: note: vect_is_simple_use: vectype vector([16,16]) t.c:8:26: note: vect_is_simple_use: operand *_28, type of def: internal t.c:8:26: note: vect_is_simple_use: vectype vector([16,16]) signed char t.c:8:26: missed: cannot use vec_mask_len_store_lanes t.c:8:26: note: can use vec_mask_store_lanes t.c:8:26: missed: cannot use vec_mask_len_store_lanes t.c:8:26: note: can use vec_mask_store_lanes and somehow transform decides to put the two stores together again, probably missing to verify the masks are the same. I'll dig a bit more after lunch.=