POPCNT
Operation
Counts set bits in the selected-width source and writes the count.
Assembler Syntax
POPCNT.{B|W|L|Q}(z) <ea>(e), Rn(d)
POPCNT.{B|W|L|Q}(z) Rn(s), Rn(d)
Privilege
Unprivileged
Repeat eligibility
REP eligible; REPcc observes dst
Counts set bits within the selected B, W, L, or Q source width and writes that count to the destination.
2.75in
Encodings
POPCNT.{B|W|L|Q}(z) <ea>(e), Rn(d)
Format: Instruction format for POPCNT.{B|W|L|Q}(z) <ea>(e), Rn(d)
2.75in POPCNT.{B|W|L|Q}(z) Rn(s), Rn(d)
Format: Instruction format for POPCNT.{B|W|L|Q}(z) Rn(s), Rn(d)