https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114224
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org Last reconfirmed| |2024-03-04 Ever confirmed|0 |1 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Interesting: ``` int h1(unsigned a) { return __builtin_popcountg(a) == 1; } ``` works. Anyways I will be adding POPCOUNT's rtl cost here. We don't even handle POPCOUNT for vector modes either ...