From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1A2C93858D37; Sun, 22 Oct 2023 02:53:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1A2C93858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697943181; bh=YbcNSo29Hu3RJyj7ZOKevNGRHgl6eYeK2D+oRh+wUa8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DxzZOBXE3fEHhbxwagO5ZvS53Q1U2apjcJwtgTG/t0LxLM1au32u1LiMxboGPmAdi hEli6JY+P385Uca2kZZRZQ6s+XZBdWdlgeUY7gMXpKh+YrQucuTyJ2jyggpx6QwpZH B6CK4VMOeebXixE39rd53Q3blU0599E/nqdt6OcU= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/65250] [SH] Improve comparisons followed by a negated cstore Date: Sun, 22 Oct 2023 02:52:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status target_milestone 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=3D65250 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED Target Milestone|--- |8.0 --- Comment #3 from Andrew Pinski --- Fixed for GCC by r8-2701-g9dc3d6a96167b4c84824be5e472fba4956297033 . Basically the gimple level is able to optimize that directly to: _1 =3D (unsigned int) value_3(D); _5 =3D _1 <=3D 2; No reason to try to have combine optimize it any more.=