From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 43C4A3858D35; Tue, 31 Aug 2021 02:04:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 43C4A3858D35 From: "crazylht at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/102133] [12 Regression] ICE in set_rtl building libgcc __muldc3 for 32-bit SPARC Date: Tue, 31 Aug 2021 02:04:52 +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: 12.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: crazylht at gmail dot com 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: 12.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: Tue, 31 Aug 2021 02:04:52 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102133 --- Comment #3 from Hongtao.liu --- static inline void set_rtl (tree t, rtx x) { gcc_checking_assert (!x || !(TREE_CODE (t) =3D=3D SSA_NAME || is_gimple_reg = (t)) || (use_register_for_decl (t) ? (REG_P (x) || (GET_CODE (x) =3D=3D CONCAT && (REG_P (XEXP (x, 0)) || SUBREG_P (XEXP (x, 0))) && (REG_P (XEXP (x, 1)) || SUBREG_P (XEXP (x, 1)))) /* We need to accept PARALLELs for RESUT_DECLs because of vector types with BLKmode retur= ned in multiple registers, but they are suppos= ed to be uncoalesced. */ || (GET_CODE (x) =3D=3D PARALLEL && SSAVAR (t) && TREE_CODE (SSAVAR (t)) =3D=3D RESULT_D= ECL && (GET_MODE (x) =3D=3D BLKmode || !flag_tree_coalesce_vars))) : (MEM_P (x) || x =3D=3D pc_rtx || (GET_CODE (x) =3D=3D CONCAT && MEM_P (XEXP (x, 0)) && MEM_P (XEXP (x, 1)))))); x is=20 (subreg:DF (reg:DI 154) 0), t is=20 unit-size align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 0x7fffea2f9498 precision:64 context > visited var def_stmt GIMPLE_NOP version:62> and it hit REG_P (XEXP (x, 1)), XEXP (x, 1) is invalid for subreg, so set_r= tl=20 here doesn't accept subreg?=