blsr

Reset Lowest Set Bit

BLSR r32, r/m32

Clears the lowest set bit (x & (x-1)).

Details

The Reset Lowest Set Bit instruction clears the lowest set bit (x & (x-1)).

Pseudocode Operation

// Clears the lowest set bit (x & (x-1))

Example

BLSR eax, ebx

Encoding

Binary Layout
VEX
+0
opcode
+3
ModRM
+4
 
Format VEX
Opcode C4 ... F3 /1
Extension BMI1

Operands

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