mtvsrbm
Move to VSR Byte Mask
mtvsrbm VRT,RB
Moves a byte mask from a GPR to a VSR.
Details
The contents of bits 48:63 of GPR[RB] are used to create a field mask in VSR[VRT+32]. Each bit in the GPR determines whether the corresponding byte in the VSR is set to all 0s or all 1s.
Pseudocode Operation
Programming Note
This instruction is used to set each byte in a vector register to either all zeros or all ones based on the 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 processes 16 bytes, so ensure that the GPR contains valid bit values for positions 48 to 63.
Example
mtvsrbm v1, r5
Encoding
Binary Layout
4
0
VRT
6
16
11
RB
16
17
21
Operands
-
VRT
Target Vector-Specific Register -
RB
Source General Purpose Register