From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 107C13858D1E; Tue, 31 Oct 2023 07:07:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 107C13858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698736068; bh=2BX+aMwk3cfyc8V1TDB8VFMvltXxx7mTh3KRcDVkgQs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=r9g50pWKOyoe6FO9doGOYC7pQvLMyES8DjXCsPVUwjbMZl1rBuNcPOxI1q3reo3iw eTtUXn0K3tA8ukLIeFSFmuSeGuRoo2edFCTGB5gfVbw8f9xLVcbOfHK5f35C3AXnC6 kKPkGgE5BqbJ3XgVtWE96CPpcrTCBNcrWTD2Vf7U= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/112305] [11/12/13/14 Regression] Wrong code at -O1/2/3/s on x86_64-pc-linux-gnu Date: Tue, 31 Oct 2023 07:07:47 +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: 13.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_known_to_fail 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=3D112305 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |9.1.0 --- Comment #2 from Andrew Pinski --- For -O2, the bug has been present since at least 9.1.0. -O1 started to expo= se it in GCC 12 though. -fwrapv works around the issue. -fno-tree-scev-cprop does too.=