pshufb

Packed Shuffle Bytes

PSHUFB xmm1, xmm2/m128

Shuffles bytes according to indices in source operand.

Details

The Packed Shuffle Bytes instruction shuffles bytes according to indices in source operand.

Pseudocode Operation

// Shuffles bytes according to indices in source operand

Example

PSHUFB xmm1, xmm2/m128

Encoding

Binary Layout
66
+0
0F
+1
38
+2
00
+3
 
Format SSSE3
Opcode 66 0F 38 00
Extension SSSE3

Operands

  • dest
    128-bit XMM SIMD register
  • src
    128-bit XMM SIMD register or Memory operand