eqv

Equivalent

eqv RA, RS, RB

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

eqv r4, r3, r5

Encoding

Binary Layout
31
0
RS
6
RA
11
RB
16
284
21
/
31
 
Format X-form
Opcode 0x7C000238
Extension Base

Operands

  • RA
    Target
  • RS
    Src A
  • RB
    Src B