From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 465903858407; Wed, 11 Jan 2023 13:01:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 465903858407 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673442095; bh=FVbmydwypZ2lueS6SI4VuuHmjDOqtMr86DPShx34KN0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ufpKoFsIDtgqhMJqxSJGz1RN/8vnle+7NDzCF5kj8HViZm+o5G1BNnA2wsjgws4Up vI8iNMDfrHewk9I72dB7Jy3CsqAtnLnvti6B0VR5F1BTEYPw84IAnOLSczwNjh0QuH dS9RDVunZKFDYFnNK/NvN7F6jSqFm0juFsxUFqUw= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/105554] [10/11/12/13 Regression] ICE: in emit_block_move_hints, at expr.cc:1829 since r9-5509-g5928bc2ec06dd4e7 Date: Wed, 11 Jan 2023 13:01:34 +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: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.5 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=3D105554 --- Comment #7 from Richard Biener --- (In reply to Martin Li=C5=A1ka from comment #6) > We fail in the param assignment: >=20 > (gdb) pp x > (reg:V4DI 82) > (gdb) pp y > (mem/c:BLK (reg/f:DI 76 virtual-incoming-args) [1 x+0 S32 A256]) >=20 > So we will likely need something similar to what we have in tree-inline.c= c: >=20 > 5928 /* For vector typed decls make sure to update DECL_MODE accordi= ng > 5929 to the new function context. */ > 5930 if (VECTOR_TYPE_P (TREE_TYPE (copy))) > 5931 SET_DECL_MODE (copy, TYPE_MODE (TREE_TYPE (copy))); >=20 > @Richi: Do you have a clue where to adjust it? I think it goes wrong in use_register_for_decl (called from assign_parm_setup_block). diff --git a/gcc/function.cc b/gcc/function.cc index d975b001ec9..b54f9b33c6a 100644 --- a/gcc/function.cc +++ b/gcc/function.cc @@ -2229,7 +2229,9 @@ use_register_for_decl (const_tree decl) } /* Only register-like things go in registers. */ - if (DECL_MODE (decl) =3D=3D BLKmode) + if (DECL_MODE (decl) =3D=3D BLKmode + || (VECTOR_TYPE_P (TREE_TYPE (decl)) + && TYPE_MODE (TREE_TYPE (decl)) =3D=3D BLKmode)) return false; /* If -ffloat-store specified, don't put explicit float variables fixes the ICE, not sure if we should adjust the PARM_DECLs mode somewhere in target cloning instead though?=