vcmpequq
Vector Compare Equal Quadword
vcmpequq VRT,VRA,VRB
vcmpequq. VRT,VRA,VRB
vcmpequq. VRT,VRA,VRB
Compares two quadwords and sets the result to all ones if they are equal, otherwise all zeros.
Details
The vcmpequq instruction compares the contents of VSR[VRA+32] and VSR[VRB+32]. If they are equal, it sets VSR[VRT+32] to all ones; otherwise, it sets VSR[VRT+32] to all zeros.
Pseudocode Operation
if MSR.VEC=0 then
Vector_Unavailable()
all_true ←1
all_false ←1
src1 ←VSR[VRA+32]
src2 ←VSR[VRB+32]
if src1 = src2 then do
VSR[VRT+32] ←
0xFFFF_FFFF_FFFF_FFFF_FFFF_FFFF_FFFF_FFFF
all_false ←0
end
else do
VSR[VRT+32] ←
0x0000_0000_0000_0000_0000_0000_0000_0000
all_true ←0
end
if Rc=1 then
CR.field[6] ←all_true || 0b0 || all_false || 0b0
Programming Note
When Rc=1, CR1 is set from the FPSCR[FX, FEX, VX, OX] bits immediately after the operation completes.
Example
vcmpequq v1, v2, v3
Encoding
Binary Layout
0
0
VRT
6
VRA
11
VRB
16
Rc
21
Operands
-
VRT
Target Vector Register -
VRA
Source Vector Register -
VRB
Source Vector Register