From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 42B4B3896C23; Mon, 12 Apr 2021 11:30:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 42B4B3896C23 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/99648] [11 regression] gcc.dg/torture/pr71522.c fails starting with r11-165 for 32 bits Date: Mon, 12 Apr 2021 11:30:55 +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: 11.0 X-Bugzilla-Keywords: wrong-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: 11.0 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: Mon, 12 Apr 2021 11:30:55 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99648 --- Comment #11 from Richard Biener --- (In reply to Jakub Jelinek from comment #10) > Created attachment 50566 [details] > gcc11-pr99648.patch >=20 > Updated patch which doesn't ICE anymore. While I think the right thing > would be to always punt on SUBREGs of constants, I think that is quite ri= sky > this late and so restricting it to MODE_COMPOSITE_P outermodes will make = it > restricted to > powerpc IBM double double format and nothing else (well, there is also > mips_extended_format, but no target seems to use it fortunately). if (MODE_COMPOSITE_P (outermode) 7347=20=20=20=20 && (CONST_SCALAR_INT_P (op) 7348=20=20=20=20 || CONST_DOUBLE_AS_FLOAT_P (op) 7349=20=20=20=20 || CONST_FIXED_P (op) 7350=20=20=20=20 || GET_CODE (op) =3D=3D CONST_VECTOR)) 7351=20=20=20=20 return NULL_RTX; it's odd to reject CONST_INT_P but not CONST_DOUBLE-as-int, no? Did you mean to do if (MODE_COMPOSITE_P (outermode)) switch (GET_CODE (op)) { CASE_CONST_ANY: return NULL_RTX; default:; } ? (yeah, CONST_ANY_P is missing it seems)=