eqv
Equivalent
eqv RA, RS, RB
Bitwise Equivalence (XNOR). RA = ~(RS ^ RB).
Details
The eqv instruction performs a bitwise equivalence operation between the contents of registers RS and RB. The result is placed into register RA.
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
eqv r4, r3, r5
Encoding
Binary Layout
31
0
RS
6
RA
11
RB
16
284
21
/
31
Operands
-
RA
Target -
RS
Src A -
RB
Src B