From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 880E43857C66; Fri, 6 Oct 2023 08:29:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 880E43857C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696580986; bh=osZC6nYlSSJcG8jPSrMwRyACQVQl8Awcg9bPQUjx6V4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=FwmQFdJhH6/p6ZKO13FuA+nEORlj+b97JBgtxaIZVpHf+qNV1S7TqhiI5Ce005iMi i6oQtsflQz7nriukGhQp5pWf4+990DCnKCQxr9AWfh7/PfB59yPvUM/izzBZiD7Fqy AcgHeqVhvGxVyOjSD2acYawezZgVLS+F6Ho+RMmI= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/111711] [14 Regression] ICE: in maybe_legitimize_operand, at optabs.cc:8046 at -O1 with division by zero Date: Fri, 06 Oct 2023 08:29:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: everconfirmed keywords cf_reconfirmed_on bug_status 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=3D111711 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Keywords|needs-bisection | Last reconfirmed| |2023-10-06 Status|UNCONFIRMED |NEW --- Comment #1 from Andrew Pinski --- It was introduced by r14-2667-gceae1400cf24f329393e96dd9720 . We have: long int x; int _3; _Bool _5; _3 =3D 0 / 0; _5 =3D _3 =3D=3D 822920; x_7 =3D _5 ? 822920 : 0; If I disable the added checks on dealing with rtx_equal_p, the ICE goes awa= y. The problem is the mode for the result does not match the mode for the comparison (DImode for the result of the conditional and SImode for the comparison).=