From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B6E753858409; Mon, 24 Jan 2022 02:19:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B6E753858409 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/104196] [12 Regression] wrong code at -O2 and above on x86_64-linux-gnu Date: Mon, 24 Jan 2022 02:19:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 12.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: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.0 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, 24 Jan 2022 02:19:15 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104196 --- Comment #6 from Andrew Pinski --- Here is a new testcase where we have the same IR (including the range) in G= CC 11.2.0 and the trunk: int a =3D 6; int main() { for (;;) { int c =3D 111; if (a < 0) c =3D 1; else goto t; c =3D -__INT_MAX__ - a; int b =3D a; int tt, ttt; tt =3D a !=3D -2147479551; ttt =3D c =3D=3D 1; tt =3D tt | ttt; if (!tt) continue; { t: if (a < 6) __builtin_abort (); ty: return 0; } } } It would be useful to run a bisect on this new one.=