mtvsrwm
Move to VSR Word Mask
Moves a word mask from a general-purpose register to a vector scalar register.
Details
The contents of bits 60-63 of GPR[RB] are used to set the corresponding word elements in VSR[VRT+32] to either all 0s or all 1s based on the bit value.
Pseudocode Operation
Programming Note
This instruction is used to set each word in a vector register to either all zeros or all ones based on the corresponding bits in a general-purpose register. Ensure that the Vector Facility (MSR.VEC) is enabled before using this instruction; otherwise, it will raise an exception. The instruction operates on 32-bit words and requires the source general-purpose register to be properly aligned for bit manipulation.
Example
Encoding
Operands
-
VRT
Target Vector Scalar Register -
RB
Source General Purpose Register