From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4495C385801C; Tue, 22 Feb 2022 08:49:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4495C385801C From: "linkw at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/103353] Indefinite recursion when compiling -mmma requiring testcase w/ -maltivec Date: Tue, 22 Feb 2022 08:49:45 +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: 12.0 X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: linkw at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: linkw at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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, 22 Feb 2022 08:49:45 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103353 Kewen Lin changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |meissner at gcc dot gnu.or= g, | |segher at gcc dot gnu.org, | |wschmidt at gcc dot gnu.org --- Comment #3 from Kewen Lin --- And I am also curious about what will we miss if just changing it back to return const0_rtx? Back to the failure itself, without TARGET_MMA set we don't have the optab movoo support. When it is expanding the bif, it tries to emit_move_insn (target, valreg) (gdb) pr target (reg:OO 117 [ _1 ]) (gdb) pr valreg (reg:OO 66 2) For the target, it's pseudo and able to get subreg:SI; while for the valreg, it's hard reg, fails to gen subreg, but it will call operand_subword_force = (y, i, mode) to get subword further, it goes with: copy_to_reg (op); further call: emit_move_insn (temp, x)=20 // back to the original, OOmode move from the hard register to another pseu= do, and again and again... until memory run out for allocation. If the answer to the question above is it's still meaningful to expand this call without an expected context, I think we have to extend OOmode and XOmo= de handling. Any thoughts?=