vrlqnm
Vector Rotate Left Quadword then AND with Mask VX-form
Rotates the contents of a vector register left by a specified number of bits and performs a bitwise AND operation with a mask derived from another vector register.
Details
The vrlqnm instruction rotates the contents of VSR[VRA+32] left by a number of bits specified in VSR[VRB+32].bits[57:63], then performs a bitwise AND operation with a mask generated from bits 41:47 and 49:55 of VSR[VRB+32]. The result is stored in VSR[VRT+32].
Pseudocode Operation
Programming Note
The vrlqnm instruction is used for vectorized operations involving rotation and masking of quadword data. Ensure that the Vector Facility (VEC) bit in the Machine State Register (MSR) is set to 1, otherwise a Vector_Unavailable exception will be raised. The mask generation from bits 41:47 and 49:55 of VSR[VRB+32] should be carefully managed to achieve the desired bitwise AND operation result.
Example
Encoding
Operands
-
VRT
Target Vector Register -
VRA
Source Vector Register -
VRB
Source Vector Register