From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B01EB3858438; Tue, 27 Sep 2022 15:36:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B01EB3858438 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664292995; bh=OXy08iEurUljNTZ0wDuKidwqLZ3yDwwl6gfn+BDD6/o=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bs0ZjG4U8Xgwf6Cr/LCnXzFsNQMm5SHDDExtdWcU8RJGzEgjgVXj9n6G24kzXhTOA YI32xWwEJCjHo1wH1tw64Xi0bTat//O+d5MsYPa6imp7ORnqpUbGukc53GOCs+8FuI 4ffEgW8QivLfZ7wpK86EYA0ZF499YvapmLuNhVE0= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107052] Range of __builtin_popcount can be improved with nonzerobits Date: Tue, 27 Sep 2022 15:36:34 +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: 12.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement 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=3D107052 --- Comment #3 from Andrew Pinski --- (In reply to Aldy Hernandez from comment #2) > Don't you mean the only values for popcount are 0-2? I mean, there are o= nly > two bits that could be 1 with a mask of 0x300. Or am I missing something? Yes, 0-2 I am still trying to wake up.=