From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EF4A8385843D; Wed, 24 Aug 2022 11:57:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EF4A8385843D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1661342241; bh=hWrh35qJ6pwaTlBJ4B6Wb1UbQU1GT4kW4TcLWRyZ308=; h=From:To:Subject:Date:In-Reply-To:References:From; b=yIoWa3ZzOX7PfBdltnmjzfzgObEQGlgcYtLmRXnW7kDc4klN9IsLJZ2F2XNvWDpPk 0OFeEW0BUxP/4uDXUrlnK2g7bRhz9bwsyzXcJkdBLpP5FDwkLTBCANJ8lwMHD9mGWy b/EiCb/ym5KkvgE3Yd8xCyTTuIErlUlI2ij9h7rw= From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/106101] [12/13 Regression] ICE in reg_bitfield_target_p since r12-4428-g147ed0184f403b Date: Wed, 24 Aug 2022 11:57:21 +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.1.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: krebbel at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.3 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=3D106101 --- Comment #19 from Segher Boessenkool --- (In reply to Andreas Krebbel from comment #18) > (In reply to Segher Boessenkool from comment #17) > ... > > Yes, but that says the high 48 bits of the hardware reg are untouched, = which > > is not true (only the high 16 of the low 32 are guaranteed unmodified). >=20 > Right, if the original register mode does not match the mode of the full > hardreg, we continue to need that mode as the upper bound. So with the > subreg folding in reload we appear to loose information we need to interp= ret > the STRICT_LOW_PART correctly. Exactly. This is why strict_low_part of anything else than a subreg is ill-defined.=