From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A71D93858C41; Sat, 20 Jul 2024 14:19:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A71D93858C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1721485147; bh=SxCxSnsIGqHgeIZDM1YXFtdyhWQXQDIeVqekldAex4U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=iq6+oaJqCWHOnfUUbX/zXVnTYc27qmkQThacNDeZfYKbwt6KxJEn448yvAb1WQNLv Scer7V55OZ44s5uw7hlGn0fD9uJwJ7mcznXDqfG8si2SE0E0tDPrg0dp01tOYYKoUP QrfNEoZZJMSs9er5bLl0DVvDUTdv0EVw/eV7Qll4= From: "bisqwit at iki dot fi" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/116013] Missed optimization opportunity with andn involving consts Date: Sat, 20 Jul 2024 14:19:07 +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: 14.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: bisqwit at iki dot fi 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=3D116013 --- Comment #1 from Joel Yliluoma --- Should be noted that this is not x86_64 specific; andn exists for other platforms too, and even for platforms that don=E2=80=99t have it, changing `~(expr|const)` into `~expr & ~const` is unlikely to be a pessimization.=