Rate This Document
Findability
Accuracy
Completeness
Readability

Replacing the PSHUFB Instruction

The Packed Shuffle Bytes (PSHUFB) instruction is used to look up data from the table in the target register by index.

PSHUFB xmm1, xmm2/m128

Shuffle bytes in xmm1 according to contents ofxmm2/m128.

The PSHUFB instruction is replaced with TBL on Arm.

TBL Vd.<T>, {Vn*.16B}, Vm.<T>

Table lookup (vector). Where <T> may be 8B or 16B, and Vn* is a list of between one and four consecutively numbered vector registers each holding sixteen 8-bit table elements. The list braces "{}" are concrete symbols, and do not indicate an optional field as elsewhere in this manual.