From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7E10C3858C00; Sat, 20 May 2023 02:25:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7E10C3858C00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684549546; bh=ckVLBwT+o5NAX9hTKNt9B851GDwFFbP8c3N6w2SVs60=; h=From:To:Subject:Date:In-Reply-To:References:From; b=asuHT6wRPaLK4SCzi2H+nkNjzhfmcEl8ya5gHqKOpQ9ByLA2lDWACMK2QqLnsmqyU 6FZcBwseWgIoH7TL5azqrPuvZmr9VSq44wfEYUpA2YvgtfR/YjfkFMLTSonoild32Y YJnvz3Fr/C/3SZCMPwiP4YyY9KDACos5S65/ceu8= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/100798] a?~t:t and (-(!!a))^t don't produce the same assembly code Date: Sat, 20 May 2023 02:25:46 +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: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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: 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=3D100798 --- Comment #1 from Andrew Pinski --- To produce the same code we could do a match pattern: (simplify (cond @0 (bit_not @1) @1) (bit_xor (neg (convert @0)) @1))=