vmrglw
Vector Merge Low Word
Interleaves low-order words.
Details
The Vector Merge Low Word instruction (vmrglw) merges the low words from two source vectors, VRA and VRB, into a destination vector VRT. Specifically, it takes the second word from each source vector and places them into the first and third positions of the destination vector, respectively.
Pseudocode Operation
Programming Note
The vmrglw instruction is used to merge the low words from two source vectors into a destination vector. Ensure that the Vector Facility (VEC) bit in the Machine State Register (MSR) is set; otherwise, a Vector_Unavailable exception will be raised. This instruction operates on 128-bit vector registers and requires proper alignment of the input vectors to avoid unexpected results.
Example
Encoding
Operands
-
vD
Target -
vA
Src A -
vB
Src B