Does binvi access memory?
No. It reads integer register operands and writes rd only.
Invert single bit by immediate index
BINVI uses opcode 0010011 (0x13), funct3 001, funct7 0110100. The rs1 field selects the source register, the 12-bit immediate provides the second operand, and rd selects the destination.
binvi is a Zbs single-bit invert instruction. The bit index comes from the immediate field.
binvi is a Zbs single-bit invert instruction. The bit index comes from the immediate field.
Understand this scenario with real code like «binvi x10, x11, 7 ; x10 = x11 ^ (1 << 7)».
No. It reads integer register operands and writes rd only.
The immediate encodes the bit position directly, with the legal range determined by XLEN.