https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90693
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |15.0 Resolution|--- |FIXED Status|ASSIGNED |RESOLVED --- Comment #16 from Andrew Pinski <pinskia at gcc dot gnu.org> --- `__builtin_popcount (x) <= 1` and `__builtin_popcount (x) > 1` are now handled. ``` x && x == (x & -x) x && (x & x-1) == 0 ``` is PR 94787 . So closing as fixed; note I don't know when I will get around to PR 94787 because I am putting on a pause at fixing popcount issues for now.