From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 898733858CDA; Sat, 4 Nov 2023 19:40:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 898733858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699126808; bh=eTWASAaJ31lDWQ9RqUchqqJ68mIIYh/PxwOEk+lB0Y0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=X4P6/vNDfBFUyo7zbM01I6LzCB9r9onEs/I+Qitdd3xy7xgqAIWhpLrt+73RH+g/q FrAcK+2GkC0v/5Uxqkium7PA6puyzdFaGzAtrfGVTa+eqNGrdQLdsjlCkU4sXp9wiq pfH4Y+unnofpL7Ota49YwfPXRjdNysgHnanNkRmI= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/112380] [14 regression] ICE when building Mesa (in combine, internal compiler error: in simplify_subreg) since r14-4612-g6decda1a35be57 Date: Sat, 04 Nov 2023 19:40:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on everconfirmed bug_status 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=3D112380 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2023-11-04 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #8 from Andrew Pinski --- (In reply to Andrew Pinski from comment #7) > That almost definitely just exposed the issue. Let me see if I can get a > testcase that fails without depending on that. New testcase which seems to have the same IR going into expand for GCC 13.2= .0 and the trunk: ``` struct ureg_src { unsigned File : 4; unsigned : 2; unsigned : 2; unsigned : 2; unsigned : 1; unsigned IndirectFile : 4; unsigned IndirectSwizzle : 2; int : 16; int : 6; int : 16; int : 16; unsigned : 10; } __trans_tmp_1; int hh, nn; void ureg_scalar(struct ureg_src); void ntt_emit_texture_instr() { struct ureg_src sampler; unsigned char *t =3D ((char*)&sampler); unsigned char t1; unsigned t2, t3; if (nn) { sampler =3D __trans_tmp_1; t1 =3D *t; t2 =3D sampler.IndirectFile; t3 =3D sampler.IndirectSwizzle; } struct ureg_src reg =3D sampler; *t =3D t1; ureg_scalar(reg); } ```=