From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0D6F93858428; Mon, 22 Apr 2024 21:36:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0D6F93858428 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713821763; bh=wp+axBp5ydrASfnyxGoAUDPB04mPbfcvqZKKDxREeZs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=UDM9YTuRZc9jphiPL1g11HEABA/KWNaD+YtaVPBblJwSg6cet005Ec1/oGxcekCf2 /TwDPGMcZmnHukpvIBvbrtTNLSjEBY0nF4SegcgEodinfDBEuoGlnlbnmsOb74p237 DaAmvBKHmxWLex4f0vG+2VLl9VgiDUip+ZVeUuAg= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/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 21:36:01 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ra X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org 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 #8 from Jakub Jelinek --- (In reply to Uro=C5=A1 Bizjak from comment #7) > (define_insn_and_split "*andn3_doubleword_bmi" > [(set (match_operand: 0 "register_operand" "=3D&r,r,r") > (and: > (not: (match_operand: 1 "register_operand" "r,0,r")) > (match_operand: 2 "nonimmediate_operand" "ro,ro,0"))) > (clobber (reg:CC FLAGS_REG))] >=20 > where the problematic alternative (=3D&r,r,ro) allows a memory input in i= ts > operand 2 constraint. The allocator could spill a DImode value to a stack= in > advance and reload the value from the memory in this particular alternati= ve. So, given the known ia32 register starvation, can't we split that first alternative to =3D&r,r,o with "nox64" isa and =3D&r,r,ro with "x64" isa?=