From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5182F3858D39; Thu, 18 May 2023 19:18:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5182F3858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684437539; bh=MrJ1nK5+pfRzxxwOPBnSYL+AjrO+IZzoLe6aqijYCHM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=KdZhHy4NtfULib+3Ehq9ifQugAexX31S0ElFb/C23Tf2X5IcD+XjwkMcqZxqND/6H fWnf3HMyXlm8czikNGMsQT5vi7rC2Knom0BFQs8MzIYJUjBwLkFXRFyBiTCa7Rrgry EA7kcE4eqeUHnfIDyY6fZKWezW9x0dpV7PVfqKGE= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/101807] bool0 < bool1 Should expand as !bool0 &bool1 and bool0 <= bool1 as !bool0 | bool1 Date: Thu, 18 May 2023 19:18:59 +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: 12.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: pinskia at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: everconfirmed assigned_to cf_reconfirmed_on bug_status 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=3D101807 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot = gnu.org Last reconfirmed| |2023-05-18 Status|UNCONFIRMED |ASSIGNED --- Comment #1 from Andrew Pinski --- I have a patch. It even handles: unsigned f(unsigned a, unsigned b) { if (a > 1) __builtin_unreachable(); if (b > 1) __builtin_unreachable(); return a