From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DFBC6385842C; Mon, 11 Mar 2024 11:54:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DFBC6385842C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1710158093; bh=JWuqdPpxqumA4Njdpi09IJQrih4p6rq3Ka4NCUpnkxY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WEvuedEP9wr4yxiD6xplIpcQug/u4Vp6jmGTgsEZ5rmirGAx1W4dCI3CT85TMuoLj iHqn/g9TGHL4GMGy7NN+IZt5j+SRbEjubJx0tLnmYqLp2tWjHj6OU0PiDA0K45h7+C CPiog/gQJZL5y5cPH315aCHZKRBIH9b+RxgFPwQg= From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/112560] [14 Regression] ICE in try_combine on pr112494.c Date: Mon, 11 Mar 2024 11:54:51 +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: ice-checking, ice-on-valid-code, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: ubizjak at gmail dot com X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created 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=3D112560 Uro=C5=A1 Bizjak changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #56705|0 |1 is obsolete| | --- Comment #5 from Uro=C5=A1 Bizjak --- Created attachment 57666 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D57666&action=3Dedit Proposed v2 patch New version of patch in testing. This version handles change of the mode of CC reg outside comparison. Now we scan the RTX and change the mode of the CC reg at the proper place. We are guaranteed by find_single_use that cc_use_loc can be non-NULL only when exa= ctly one user follows the combined comparison. In case of unsupported cc_use_insn combine will be undone. To avoid combine failure, pushfl2 in i386.md is changed to accept all MODE_CC modes.=