mtvsrqm
Move to VSR Quadword Mask VX-form
mtvsrqm VRT,RB
Moves a quadword mask from a general-purpose register to a vector scalar register.
Details
The contents of GPR[RB] are used to determine the mask for VSR[VRT+32]. If bit 63 of GPR[RB] is 0, VSR[VRT+32] is set to all zeros. If bit 63 is 1, VSR[VRT+32] is set to all ones.
Pseudocode Operation
Programming Note
This instruction sets the mask for a vector register based on the most significant bit of a general-purpose register. Ensure that the Vector Facility is enabled in the Machine State Register (MSR) before using this instruction; otherwise, it will raise an exception. The instruction does not require any specific alignment or ordering of operations.
Example
mtvsrqm v1, r5
Encoding
Binary Layout
18
0
VRT
6
RB
11
1602
16
Operands
-
VRT
Target Vector Scalar Register -
RB
Source General Purpose Register