vmrglh
Vector Merge Low Halfword
Interleaves low-order halfwords.
Details
The Vector Merge Low Halfword instruction (vmrglh) merges the lower halfwords from two source vectors into a destination vector. It takes the lower halfwords from each of the two source vectors and interleaves them into the destination vector.
Pseudocode Operation
Programming Note
The vmrglh instruction is used to merge the lower halfwords from two source vectors into a destination vector. Ensure that the Vector Facility (MSR.VEC) is enabled before using this instruction; otherwise, a Vector_Unavailable exception will be raised. The operation interleaves the halfwords from the two sources, so the resulting vector will have elements from both sources in an alternating pattern.
Example
Encoding
Operands
-
vD
Target -
vA
Src A -
vB
Src B