mtvsrd
Move To VSR Doubleword
Moves 64 bits from a GPR to a VSR.
Details
The mtvsrd instruction moves the contents of a general-purpose register (GPR) into the doubleword element 0 of a vector-scalar register (VSR). If TX=0, it is treated as a Floating-Point instruction in terms of resource availability. If TX=1, it is treated as a Vector instruction.
Pseudocode Operation
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.
Example
Encoding
Operands
-
XT
Target VSR -
RA
Source GPR