From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B62BD3858CDB; Fri, 30 Sep 2022 11:22:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B62BD3858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664536928; bh=sBDXh29mA4FsbiPQ17d9HWxk1/gAarrHHSd4z+yuDXc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=dgRgTK/yDYRDUZyfgiLfJ932ls5PGwHB3n6edRYk9sPStg6KomlQbxtT4n9iiZT/t sVx2uO/QUMeywx+Ao7zJ9gAmQH7jTncrqvefDpGTQMkUHafmxNZp3uhArIfQA8wB0E BJ9SyWkl8j35KvPaCchTusHzBCBekHXDQuyTUFfU= From: "stefansf at linux dot ibm.com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/107088] [13 Regression] cselib ICE building __trunctfxf2 on ia64 Date: Fri, 30 Sep 2022 11:22:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: stefansf at linux dot ibm.com 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: 13.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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107088 --- Comment #6 from Stefan Schulze Frielinghaus --- I did a quick test using diff --git a/gcc/cselib.cc b/gcc/cselib.cc index 9b582e5d3d6..2fd0190bc79 100644 --- a/gcc/cselib.cc +++ b/gcc/cselib.cc @@ -1571,6 +1571,7 @@ new_cselib_val (unsigned int hash, machine_mode mode,= rtx x) scalar_int_mode int_mode; if (REG_P (x) && is_int_mode (mode, &int_mode) + && int_mode !=3D BImode && REG_VALUES (REGNO (x)) !=3D NULL && (!cselib_current_insn || !DEBUG_INSN_P (cselib_current_insn))) { which solved the cross ia64 build for me. Maybe there are further integer m= odes which I didn't consider, i.e., I will have a thorough look at it next week.=