https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94787

--- Comment #1 from Gabriel Ravier <gabravier at gmail dot com> ---
Inversely, I'd also suggest doing the opposite. That is, if there is no
hardware popcount instruction, `__builtin_popcount(v) == 1` should be optimized
to `v && !(v & (v - 1))`

Reply via email to