eqv
Equivalent
Bitwise Equivalence (XNOR). RA = ~(RS ^ RB).
Details
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.).
Pseudocode 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.
Example
Encoding
Operands
-
RA
Target -
RS
Src A -
RB
Src B