xxmrgld

VSX Vector Merge Low Doubleword

xxmrgld XT, XA, XB

Merges low doublewords from XA and XB.

Details

Merges the low (rightmost) doubleword from XA and the low doubleword from XB into the target register XT, placing XA's low doubleword in the high position and XB's low doubleword in the low position. This is a VSX instruction that operates on 128-bit vector registers and does not affect any condition or status flags.

Pseudocode Operation

XT[0:63] ← XB[64:127]
XT[64:127] ← XA[64:127]

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

xxmrgld vs1, vs2, vs3

Encoding

Binary Layout
60
0
XT
6
XA
11
XB
16
208
21
 
Format XX3-form
Opcode 0xF0000050
Extension VSX
Registers Altered MSR

Operands

  • XT
    Target
  • XA
    Src A
  • XB
    Src B