mtvsrd
Move To VSR Doubleword
mtvsrd XT, RA
Moves 64 bits from a GPR to a VSR.
Encoding
Binary Layout
31
0:5
XT
6:10
RA
11:15
0
16:20
179
21:31
Operands
-
XT
Target VSR -
RA
Source GPR
Reference
View in PowerISA v3.1C Specification ↗
OPF Power ISA v3.1C
Description
Moves a 64-bit value from general-purpose register RA into the left-most doubleword element of VSX register XT. The entire 64-bit content of RA is copied to bits 0-63 of the target VSX register; the right doubleword element (bits 64-127) is left undefined. This VSX extension instruction does not affect condition registers.
Operation
XT[0:63] ← RA
XT[64:127] ← undefined
Programming Note
The mtvsrd instruction is commonly used to transfer data from a general-purpose register to the first doubleword of a vector-scalar register. Ensure that the appropriate privilege level (FP or VEC) is enabled in the MSR register, otherwise, an exception will be raised. Note that the second doubleword of the VSR is zeroed out during this operation.