From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 83B653858C32; Fri, 5 Apr 2024 02:49:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 83B653858C32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712285354; bh=KT7jb3ubuOTc9JwqIo8qmKLElbxSi392aZ5jfSeMyS8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MB8m1WJRMjRxt9A752O0xCdM88wbJbFhKoV7N6VUGMTUBFfbgze/fxFFTZzf3vnLn 2DwAlHQzttw/vl5yMLYzbgHbJIt7k+bXYyyRzUD1DXjkThUabHr5Hni6sPmIX6+c0W W6RDVh7tDeCleWrqL1SuRD1QsfAgstM3fur4YoGc= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/114595] rtl-expand emit redundant store for bitwise-and expression Date: Fri, 05 Apr 2024 02:49:14 +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: 13.2.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: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status target_milestone resolution 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=3D114595 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Target Milestone|--- |14.0 Resolution|--- |FIXED --- Comment #2 from Andrew Pinski --- Already fixed on the trunk. Most likely by r14-6420-g85c5efcffed19c . We get now: ``` func_1: movzbl g1(%rip), %eax andl $1, %eax movb %al, g2(%rip) movsbl %al, %eax movl %eax, g3(%rip) ``` There is a small extra zero extend but the extra load/store is gone=