From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3731C3857023; Fri, 13 May 2022 11:40:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3731C3857023 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/105591] [13 Regression] ICE: in tree_to_poly_uint64, at tree.cc:3250 with -O -mavx512f -mno-avx2 Date: Fri, 13 May 2022 11:40:21 +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: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone bug_status cf_reconfirmed_on everconfirmed cc 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: Fri, 13 May 2022 11:40:21 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105591 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |13.0 Status|UNCONFIRMED |NEW Last reconfirmed| |2022-05-13 Ever confirmed|0 |1 CC| |liuhongt at gcc dot gnu.org --- Comment #1 from Richard Biener --- Confirmed. The offset is very large negative, built by simplify_bitfield_r= ef here: 2416 tem =3D build3 (BIT_FIELD_REF, TREE_TYPE (op), 2417 p, op1, bitsize_int (idx * elem_size)); (gdb) p idx $11 =3D 13704120150654661628 because we have a non-sensical permute: x_4 =3D VEC_PERM_EXPR ; some sanity checking in simplify_bitfield_ref might be in order. Rejecting= the __builtin_shuffle might be another option, it's surely going to cause issues elsewhere.=