vcmpsq
Vector Compare Signed Quadword
vcmpsq BF,VRA,VRB
Compares the signed integer values in two vector registers and updates the condition register.
Details
For vcmpsq, the signed integer value in VSR[VRA+32] is compared with the signed integer value in VSR[VRB+32]. The comparison flags are placed into CR field BF.
Pseudocode Operation
Programming Note
The vcmpsq instruction compares two signed quadword values from vector registers and sets the condition register (CR) field BF based on the comparison results. Ensure that the Vector Facility is enabled by checking and setting MSR.VEC before using this instruction. Be cautious of potential exceptions if the Vector Facility is not available.
Example
vcmpsq cr0, v2, v3
Encoding
Binary Layout
18
0
BF
6
VRA
9
VRB
11
Operands
-
BF
Condition Register Field -
VRA
Vector Register A -
VRB
Vector Register B -
VRT
Target Vector Register