From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 30A6B3858C2F; Thu, 15 Jun 2023 05:38:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 30A6B3858C2F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686807494; bh=OrjWKcDlkoQvWf/9wVEjtiTkj4cqWL8zCFoPGAweyRc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MXa1Z0FDaoz0YSLEkuZCg0fk69EZlB1nZPtih8Was41P4egNnN58PcigKe1icQOm6 dO6vrCpBldPbwUptuA13RiNwYX3XLt3Uy19XxCHhuYzdC7I0/gd52PiWNNj3sOZfHr bN4J5OHrHL79p3Z8Y1EB1sHQM/R8HLUWm+VL35H8= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/110233] [12/13/14 Regression] Wrong code at -Os on x86_64-linux-gnu Date: Thu, 15 Jun 2023 05:38:13 +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: wrong-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: 12.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_known_to_work cf_known_to_fail keywords 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=3D110233 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |5.3.0, 5.5.0 Known to fail| |5.2.0 Keywords|needs-bisection | --- Comment #6 from Andrew Pinski --- Oh never mind, the problem is IV-OPTS introducing the overflow. before IVOPTs we have: _1 =3D b.6_9 + -1691021644; _2 =3D _1 + b.6_9; _3 =3D _2 + -1691021636; _4 =3D _3 + g_13; Which does not have any overflow ... But afterwards we have one: _28 =3D b.6_9 * 2; ... that was broken even in GCC 4.7 and most likely earlier. I had missed that.=