xxmrgld
VSX Vector Merge Low Doubleword
Merges low doublewords from XA and XB.
Details
The xxmrgld instruction merges the low doubleword of two VSX registers into a target register. If DM.bit[1]=0, the contents of doubleword element 0 of VSR[XB] are placed into doubleword element 1 of VSR[XT]. Otherwise, the contents of doubleword element 1 of VSR[XB] are placed into doubleword element 1 of VSR[XT].
Pseudocode Operation
Programming Note
The xxmrgld instruction is used to merge the low doublewords of two VSX registers into a target register. Ensure that the VSX facility is enabled by checking and setting the appropriate bit in the MSR register. Be cautious with the DM bits as they determine which doubleword from the source registers is placed into the target register's second doubleword position.
Example
Encoding
Operands
-
XT
Target -
XA
Src A -
XB
Src B