From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B61983857C44; Fri, 7 Jan 2022 10:51:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B61983857C44 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/103938] ICE with __builtin_prefetch and vectors Date: Fri, 07 Jan 2022 10:51:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: ice-checking, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: Fri, 07 Jan 2022 10:51:37 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103938 --- Comment #1 from Andrew Pinski --- ira-costs.c record_operand_costs is stripping off the SUBREG. Is that even valid thing to do? for (i =3D 0; i < recog_data.n_operands; i++) { rtx op_mem =3D extract_mem_from_operand (recog_data.operand[i]); memcpy (op_costs[i], init_cost, struct_costs_size); if (GET_CODE (recog_data.operand[i]) =3D=3D SUBREG) recog_data.operand[i] =3D SUBREG_REG (recog_data.operand[i]); Here is the instruction which is causing the ICE and is valid with the subr= eg there: (insn 7 6 0 2 (prefetch (subreg:DI (reg:V2DI 96) 0) (const_int 0 [0]) (const_int 3 [0x3])) "t.c":4:3 26 {prefetch} (expr_list:REG_DEAD (reg:V2DI 96) (nil))) I have to wonder if the stripping off the subreg is valid or not.=