eqv
Equivalent
eqv RA, RS, RB
Bitwise Equivalence (XNOR). RA = ~(RS ^ RB).
Encoding
Binary Layout
31
0:5
RS
6:10
RA
11:15
RB
16:20
284
21:30
/
31
Operands
-
RA
Target -
RS
Src A -
RB
Src B
Example
eqv r4, r3, r5
Related
More in Base
Reference
View in PowerISA v3.1C Specification ↗
OPF Power ISA v3.1C
Description
Performs a bitwise equivalence (XNOR) operation: RA ← ~(RS XOR RB). Each bit position in RA is set to 1 if the corresponding bits in RS and RB are equal, 0 otherwise. No condition registers or status fields are affected unless an extended form with a recorded bit is used (eqv.).
Operation
RA ← ~(RS ^ RB)
Programming Note
The eqv instruction is useful for performing bitwise equivalence operations, which can be applied in various logic and data manipulation tasks. Ensure that the input registers RS and RB are correctly aligned and contain the expected data to avoid unexpected results. This instruction operates at user privilege level and does not generate exceptions under normal conditions.