pdep
Parallel Bits Deposit
PDEP r32, r32, r/m32
Scatters bits from LSB of source to positions marked in mask.
Details
The Parallel Bits Deposit instruction scatters bits from LSB of source to positions marked in mask.
Pseudocode Operation
// Scatters bits from LSB of source to positions marked in mask
Example
PDEP eax, eax, ebx
Encoding
Binary Layout
VEX
+0
opcode
+3
ModRM
+4
Operands
-
dest
32-bit general-purpose register (e.g. EAX) -
src1
32-bit general-purpose register (e.g. EAX) -
src2
32-bit register or memory