Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 700 Bytes

_logical-with-negate.adoc

File metadata and controls

31 lines (26 loc) · 700 Bytes

Logical with negate

RV32 RV64 Mnemonic Instruction

andn rd, rs1, rs2

[insns-andn]

orn rd, rs1, rs2

[insns-orn]

xnor rd, rs1, rs2

[insns-xnor]

Imp
Implementation Hint

The Logical with Negate instructions can be implemented by inverting the rs2 inputs to the base-required AND, OR, and XOR logic instructions. In some implementations, the inverter on rs2 used for subtraction can be reused for this purpose.