ARM has it. DEC Alpha had it (before x86, even).
I get that there are a lot of narrow-use instructions but popcount is a pretty well-known and common operation.
I get that there are a lot of narrow-use instructions but popcount is a pretty well-known and common operation.
(edit: also it seems that ARM has just cnt.v8 for counting 8-bit lanes in NEON and no 64-bit scalar instruction version, interesting. Being part of NEON also means it's an optional part on ARM)