From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 55D733858D33; Fri, 17 Feb 2023 02:44:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 55D733858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676601866; bh=ZpKuLe/T6OzunYvibcY8JMpHYCq36BCKm/r4O2drPpE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=s1r5vV2B1l0SepfGZQGbXlHpGNCufGOsVlmWhKDyZdPZw4nmZ9VMXh6HaYBOxvpPn w/mGZvxnAUlmhP3+tv237XwCokTKQ1iB1nkRVbrVpD+t4o1zmIErnORMUkNSBUtANt nTdyiCU8ljp0rp/Xx1ESYKzPuxNYWj3yAy+oFjmA= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/90838] Detect table-based ctz implementation Date: Fri, 17 Feb 2023 02:44:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.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: wilco at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.0 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=3D90838 --- Comment #13 from Andrew Pinski --- (In reply to Gabriel Ravier from comment #12) > It appears this new optimization is non-functional on trunk with x86-64... > specifically on x86-64, too, on AArch64 it works just fine. So does that > mean this bug should be re-opened or should a new bug be opened for that ? It does work with -mbmi where the instruction which is used has a defined v= alue at 0. You can open a new issue for improvement of the case for not supplying -mbm= i . That is CTZ_DEFINED_VALUE_AT_ZERO is non-2.=