From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BD1DC3894C21; Thu, 20 Jun 2024 19:13:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BD1DC3894C21 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1718910799; bh=+iy25MuXA/WtNOv/uoxOfo075AOGnRn7blsGNKA1iuc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=UVRKXTByavfMk8DN2GncPuXrn8KTZYM4sIaqRapCB+0cIaSAm/tFc3bpkC6vPxCPL MzMtnaMPA5RCmes5w4JyrojtOI0vU0SlZoahRYxsqFZg9qR1yDXfuxv7IdQzs8E1WU e0LbkT2LVafLAauSbPFEwyA2i3jNHBx1gJtTT9Yg= From: "macro at orcam dot me.uk" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/115565] [4.0/4.1/4.2/4.3/4.4/4.5/4.6/4.7/4.8/4.9/5/6/7/8/9/10/11/12/13/14/15 Regression] CSE: Comparison incorrectly evaluated as constant causing optimization to produce wrong code Date: Thu, 20 Jun 2024 19:13:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 15.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: macro at orcam dot me.uk X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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=3D115565 --- Comment #2 from Maciej W. Rozycki --- Created attachment 58475 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D58475&action=3Dedit Reduced reproducer and incorrect code + RTL dumps produced with commit 08a692679fb8=