mtvsrws
Move To VSR Word and Splat
Moves a 32-bit word from a GPR and replicates it across the vector.
Details
The mtvsrws instruction moves the word from bits 32 to 63 of a general-purpose register (GPR) into the first word element of a vector-scalar register (VSR). The second word element of the VSR is set to zero. This operation is treated as a Vector instruction in terms of resource availability.
Pseudocode Operation
Programming Note
The mtvsrws instruction is used to move the upper 32 bits of a general-purpose register into the first word element of a vector-scalar register and splat it across the remaining elements. Ensure that the VSX or Vector facility is enabled in the MSR before using this instruction, otherwise, an exception will be raised. This instruction treats the operation as a Vector instruction, so developers should consider resource availability accordingly.
Example
Encoding
Operands
-
XT
Target -
RA
Source GPR