POPCNT

REG0=GPRv_R():w:v MEM0:r:v REG0=GPRv_R():w:v REG1=GPRv_B():r:v

x86_64 X86_LEGACY APX POPCNT source: xed

XED_POPCNT_X86_LEGACY_0F_B8_341804

Encoding

encoding_kindX86_LEGACY
opcode_bytesB8 0F B8
opcode_map0F
mandatory_prefix-
has_modrmTrue
attributesIGNORES_OSFXSR
cpl3
raw_encoding0x0F 0xB8 f3_refining_prefix MOD[mm] MOD!=3 REG[rrr] RM[nnn] MODRM() 0x0F 0xB8 f3_refining_prefix MOD[0b11] MOD=3 REG[rrr] RM[nnn]

Operands (4)

# Role Kind Class / Reg Width Access Visibility Encoded in
0 REG0 REG w W EXPLICIT MODRM_REG
1 MEM0 MEM v R EXPLICIT MODRM_RM
2 REG1 REG w W EXPLICIT MODRM_REG
3 REG2 REG v R EXPLICIT MODRM_REG

Flag effects (6)

CF = SET_0 PF = SET_0 AF = SET_0 ZF = WRITE SF = SET_0 OF = SET_0

Micro-ops sequence (0)

No micro-ops authored for this encoding. Emulator semantics not yet defined — decoder still works.