bzhi

Zero High Bits Starting with Specified Bit Position

BZHI r32, r/m32, r32

Clears high bits starting at index.

Details

The Zero High Bits Starting with Specified Bit Position instruction clears high bits starting at index.

Pseudocode Operation

// Clears high bits starting at index

Example

BZHI eax, ebx, eax

Encoding

Binary Layout
VEX
+0
opcode
+3
ModRM
+4
 
Format VEX
Opcode C4 ... F5
Extension BMI2

Operands

  • dest
    32-bit general-purpose register (e.g. EAX)
  • src1
    32-bit register or memory
  • src2
    32-bit general-purpose register (e.g. EAX)