From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 34E633896C38; Mon, 12 Apr 2021 11:21:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 34E633896C38 From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/100041] ICE in curr_insn_transform, at lra-constraints.c:4022 Date: Mon, 12 Apr 2021 11:21: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: 10.3.0 X-Bugzilla-Keywords: ice-on-valid-code, needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: NEW 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: Mon, 12 Apr 2021 11:21:45 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100041 --- Comment #15 from Uro=C5=A1 Bizjak --- (In reply to Richard Biener from comment #12) > A possible solution might be to disallow the -m64 -m96bit-long-double > combination, the documentation suggests -m128bit-long-double was intended > as an "optimization" over the x86-32 ABI. Yes, I think this is the way to go. While it is possible to "fix" the ICE with: --cut here-- diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index 2820f6d6188..e2fa01756fd 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -3050,7 +3050,7 @@ (reg:P SP_REG) (plus:P (reg:P SP_REG) (const_int -16)))) (match_operand:XF 0 "nonmemory_no_elim_operand" "f,r,*r,C"))] - "TARGET_64BIT" + "TARGET_64BIT && !TARGET_128BIT_LONG_DOUBLE" "#" "&& 1" [(set (reg:P SP_REG) (plus:P (reg:P SP_REG) (const_int -16))) @@ -3077,7 +3077,7 @@ (define_insn "*pushxf" [(set (match_operand:XF 0 "push_operand" "=3D<,<,<,<,<") (match_operand:XF 1 "general_no_elim_operand" "f,r,*r,oF,oC"))] - "" + "!TARGET_64BIT || TARGET_128BIT_LONG_DOUBLE" { /* This insn should be already split before reg-stack. */ return "#"; --cut here-- where the above patch prevents the push from memory, it is quite obvious fr= om ix86_split_long_move that TARGET_128BIT_LONG_DOUBLE is indeed intended as an optimization for 32bit targets only. So, let's kill -m96bit-long-double for TARGET_64BIT.=