xxperm
VSX Vector Permute
Performs a vector permute operation on the contents of three VSX registers.
Details
The xxperm instruction performs a vector permute operation on the contents of three VSX registers. The source bytes are rearranged according to the control vector provided in another register.
Pseudocode Operation
Programming Note
The xxperm instruction requires VSX (Vector Scalar Extensions) to be enabled in the MSR register. Ensure that the control vector register is correctly set up, as it defines how the source bytes are permuted. This instruction operates on 32-byte vectors and can be used for tasks like data reordering or encryption. Be cautious of alignment requirements; the VSX registers must be properly aligned to avoid exceptions.
Example
Encoding
Operands
-
XT
Target -
XA
Src A -
XB
Src B -
XC
Control