From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 120F33857C70; Tue, 29 Dec 2020 05:18:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 120F33857C70 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, 29 Dec 2020 05:18:18 +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, 29 Dec 2020 05:18:19 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98470 --- Comment #1 from jcmvbkbc at gcc dot gnu.org --- It happens at the reload pass when reload transforms the following RTL that comes to it from the IRA pass: (insn 20 163 164 30 (set (reg:SF 162 [ iftmp.0_87 ]) (mem/u/c:SF (symbol_ref/u:SI ("*.LC0") [flags 0x2]) [0 S4 A32])) "float-ice.c":11:17 45 {movsf_internal} (expr_list:REG_EQUIV (mem/u/c:SF (symbol_ref/u:SI ("*.LC0") [flags 0x2= ]) [0 S4 A32]) (nil))) ... (insn 538 168 169 32 (set (reg:SF 71 [ iftmp.0_87 ]) (reg:SF 162 [ iftmp.0_87 ])) "float-ice.c":11:17 45 {movsf_internal} (nil)) to the following RTL: (insn 538 168 169 32 (set (reg:SF 19 f0 [orig:71 iftmp.0_87 ] [71]) (mem/u/c:SF (symbol_ref/u:SI ("*.LC0") [flags 0x2]) [0 S4 A32])) "float-ice.c":11:17 45 {movsf_internal} (nil)) which tries to load a literal into a hardware FP register. There's no opcode for it in the xtensa ISA, there's no constraint that would match it in the movsf_internal and the predicate in this instruction definition evaluates to false on such input, but the substitution happens anyway.=