From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2A204388A809; Tue, 5 Jan 2021 08:13:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2A204388A809 From: "jcmvbkbc at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/98470] ICE: "error: insn does not satisfy its constraints" with hard FP on xtensa Date: Tue, 05 Jan 2021 08:13:14 +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: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jcmvbkbc at gcc dot gnu.org 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: --- 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, 05 Jan 2021 08:13:14 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98470 --- Comment #3 from jcmvbkbc at gcc dot gnu.org --- (In reply to rsandifo@gcc.gnu.org from comment #2) > What code should GCC generate if it wants to move the given > MEM into an FP register? The two main options are: >=20 > (1) reload the literal address into a temporary register. > This can be done by using "define_memory_constraint" > instead of "define_constraint" to define "U". I've tried that, it doesn't change anything for me. I've also tried doing t= his change to the "T" constraint and to both of them. Nothing. > (2) load into a general-purpose register and then move the > general-purpose register to an FP register. This can > be done using the TARGET_SECONDARY_RELOAD hook. There's already TARGET_SECONDARY_RELOAD hook for xtensa which seems to do exactly this. But it's not called from the reload and later passes for lite= ral loads into FPU registers.=