From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A5C4A3858435; Mon, 22 Apr 2024 19:23:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A5C4A3858435 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713813828; bh=V80iddivcZsAgY8YQVtmqCvlTkuKEPIYnw91sufZoAw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tCfbBoRErQWZMG1w6phq9Ki5vtATM235OUz2c+Pdy0td8oUJK63qUDm3CHEIr4b+8 pp1SuaKmyjrNlkNOx68f3zyQrBnJ5LIi21IUsEYvqLXK/rOEiafRQy0DjJPt9T6h/f +RiKZon4gRC8IQuDV+YH8zHFvdfWz9Ql67KsSVSs= From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/114810] [14 Regression] internal compiler error: in lra_split_hard_reg_for, at lra-assigns.cc:1868 (unable to find a register to spill) {*andndi3_doubleword_bmi} with -m32 -mstackrealign -O2 -mbmi -fno-exceptions -fno-plt Date: Mon, 22 Apr 2024 19:23:48 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114810 --- Comment #4 from Uro=C5=A1 Bizjak --- An interesting observation, when the insn is defined only with problematic alternative: (define_insn_and_split "*andn3_doubleword_bmi" [(set (match_operand: 0 "register_operand" "=3D&r") (and: (not: (match_operand: 1 "register_operand" "r")) (match_operand: 2 "nonimmediate_operand" "ro"))) (clobber (reg:CC FLAGS_REG))] the compilation succeeds, and a spill to memory is emitted: (insn 1170 65 1177 7 (set (mem/c:DI (plus:SI (reg/f:SI 6 bp) (const_int -168 [0xffffffffffffff58])) [71 %sfp+-144 S8 A64= ]) (reg:DI 0 ax [orig:217 _13 ] [217])) "pr114810.C":296:36 84 {*movdi_internal} (nil)) ... (insn 987 1154 1111 7 (parallel [ (set (reg:DI 3 bx [453]) (and:DI (not:DI (reg:DI 0 ax [452])) (mem/c:DI (plus:SI (reg/f:SI 6 bp) (const_int -168 [0xffffffffffffff58])) [71 %sfp+-144 S8 A64]))) (clobber (reg:CC 17 flags)) ]) "pr114810.C":296:6 703 {*andndi3_doubleword_bmi} (nil))=