From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3419F3858D37; Sun, 25 Jun 2023 22:45:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3419F3858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687733152; bh=HKPJw1xRWHuoyYMC3UTp75NuvkbYLw0DsKIaYPPGMQQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rP3W40Sva08TcAxr1JTf0frOPcz1XGXz8LbbUoUAU7Yo5ItvOtH/QRUbe9kl9FKsG zoPgy/pytgLhWUFmvLj/HM8aCyXbnPgjZvjfMK5EZFN3cBWhjj+B8GUDukNJz0thLp 0/Oe2JC6MzL1DQ/bKXfJjFMP+Pvf2+A5EEeEen00= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/94617] Simple if condition not optimized Date: Sun, 25 Jun 2023 22:45:51 +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: 10.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW 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=3D94617 --- Comment #11 from Andrew Pinski --- Note funky_bandpass in GCC 13+ no longer produces an imull but rather does neg/and instead: movl %edx, %eax cmpl %edx, %edi setle %dl cmpl %esi, %eax setl %al andl %eax, %edx cmpb $1, %dl movzbl %dl, %edx sbbq %rax, %rax negq %rdx andq %rax, %rcx andq %rdx, %r8 leaq (%rcx,%r8), %rax=