vmrgow
Vector Merge Odd Word
Merges odd words from two vectors.
Details
The Vector Merge Odd Word instruction (vmrgow) merges the odd-numbered words from two source vectors into a destination vector. Specifically, it takes the first word from the second source vector and the second word from the first source vector to form the first half of the destination vector, and similarly for the third and fourth words.
Pseudocode Operation
Programming Note
The vmrgow instruction is used to merge odd-numbered 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 vectors and requires proper alignment of the source and destination registers.
Example
Encoding
Operands
-
vD
Target -
vA
Src A -
vB
Src B