From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 891973858D28; Fri, 26 Jan 2024 20:59:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 891973858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706302781; bh=XMiJNtqvbsJMDYvTb7R4yd/CCza0gNDQySeDvfLoPiE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=u73FUnOe0FuXF9dIz1nKzjjXI8cUt10Z10M8Ni75tFsA/xi0S10IaHdFtM2qjYeqD 1nWiQWLlVeuwwSoAsQx/SgpRPrShk6heinn4KJWCPKx1VK3bUrDLwS2Z0mtLK1OdEt H1mWSZ7ioftsHRHaLQscjErlxJoGN5asME6tgy8w= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/113622] [11/12/13/14 Regression] ICE with vectors in named registers Date: Fri, 26 Jan 2024 20:59:40 +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: 14.0 X-Bugzilla-Keywords: ice-on-valid-code, testsuite-fail X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.5 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=3D113622 --- Comment #6 from Andrew Pinski --- The assert by the way: ``` if (!MEM_P (to_rtx)) { /* We can get constant negative offsets into arrays with brok= en user code. Translate this to a trap instead of ICEing. */ gcc_assert (TREE_CODE (offset) =3D=3D INTEGER_CST); expand_builtin_trap (); to_rtx =3D gen_rtx_MEM (BLKmode, const0_rtx); } ``` Yes this is obvious is wrong when used with global registers ...=