From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BD0303858D3C; Tue, 12 Sep 2023 16:44:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BD0303858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694537054; bh=QD3TPcuNbRAEmH/TwSeXoTEr3KWUKkWWvwCwlxPFqNQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=laDiTMud4VxPbu1jaFR1rx4M09P7gBRmY0XDfRrSDKk1FWlqrurtY0S1JTlBjh5sk k2ZXz7T1IvW5NCUXV6beXAntgkuiQ7NFNDDx2b8WhkOjSSRvgCWdKjXF6mQ4r1uiPW KFXH9ql7R9rm6HxsDN90TJARY/deJYfmguShZg9Y= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111383] [12/13/14 Regression] Wrong code at -Os on x86_64-linux-gnu since r12-5138-ge82c382971 Date: Tue, 12 Sep 2023 16:44:14 +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: 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: 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=3D111383 --- Comment #3 from Andrew Pinski --- -fwrapv also allows causes the correct code to happen. The difference with/without -fwrapv is: _7 =3D _6 + -1625040257; if (_7 <=3D 6) vs if (_6 <=3D 1625040263)=