RV32I/RV64I base integer instructions
Base integer ISA (RV32I or RV64I)
Base integer instructions -- TODO
Extension description from riscv-unified-db, reformatted.
Specification chapter: The RISC-V Instruction Set Manual, src/unpriv/rv32.adoc.
Instructions (78)
| Mnemonic | Name (riscv-unified-db) | XLEN |
|---|---|---|
add | Integer add | RV32 and RV64 |
addi | Add immediate | RV32 and RV64 |
addiw | Add immediate word | RV64 only |
addw | Add word | RV64 only |
and | And | RV32 and RV64 |
andi | And immediate | RV32 and RV64 |
auipc | Add upper immediate to pc | RV32 and RV64 |
beq | Branch if equal | RV32 and RV64 |
beqz | (pseudo-op) | RV32 and RV64 |
bge | Branch if greater than or equal | RV32 and RV64 |
bgeu | Branch if greater than or equal unsigned | RV32 and RV64 |
bgez | (pseudo-op) | RV32 and RV64 |
bgt | (pseudo-op) | RV32 and RV64 |
bgtu | (pseudo-op) | RV32 and RV64 |
bgtz | (pseudo-op) | RV32 and RV64 |
ble | (pseudo-op) | RV32 and RV64 |
bleu | (pseudo-op) | RV32 and RV64 |
blez | (pseudo-op) | RV32 and RV64 |
blt | Branch if less than | RV32 and RV64 |
bltu | Branch if less than unsigned | RV32 and RV64 |
bltz | (pseudo-op) | RV32 and RV64 |
bne | Branch if not equal | RV32 and RV64 |
bnez | (pseudo-op) | RV32 and RV64 |
ebreak | Breakpoint exception | RV32 and RV64 |
ecall | Environment call | RV32 and RV64 |
fence | Memory ordering fence | RV32 and RV64 |
fence.tso | Memory ordering fence, total store ordering (pseudo-op) | RV32 and RV64 |
j | (pseudo-op) | RV32 and RV64 |
jal | Jump and link | RV32 and RV64 |
jalr | Jump and link register | RV32 and RV64 |
jr | (pseudo-op) | RV32 and RV64 |
lb | Load byte | RV32 and RV64 |
lbu | Load byte unsigned | RV32 and RV64 |
ld | Load doubleword | RV32 and RV64 |
lh | Load halfword | RV32 and RV64 |
lhu | Load halfword unsigned | RV32 and RV64 |
lui | Load upper immediate | RV32 and RV64 |
lw | Load word | RV32 and RV64 |
lwu | Load word unsigned | RV64 only |
mv | (pseudo-op) | RV32 and RV64 |
neg | (pseudo-op) | RV32 and RV64 |
nop | (pseudo-op) | RV32 and RV64 |
or | Or | RV32 and RV64 |
ori | Or immediate | RV32 and RV64 |
pause | Pause hint (pseudo-op) | RV32 and RV64 |
ret | (pseudo-op) | RV32 and RV64 |
sb | Store byte | RV32 and RV64 |
sbreak | (pseudo-op) | RV32 and RV64 |
scall | (pseudo-op) | RV32 and RV64 |
sd | Store doubleword | RV32 and RV64 |
seqz | (pseudo-op) | RV32 and RV64 |
sext.w | (pseudo-op) | RV64 only |
sgtz | (pseudo-op) | RV32 and RV64 |
sh | Store halfword | RV32 and RV64 |
sll | Shift left logical | RV32 and RV64 |
slli | Shift left logical immediate | RV32 and RV64 |
slliw | Shift left logical immediate word | RV64 only |
sllw | Shift left logical word | RV64 only |
slt | Set on less than | RV32 and RV64 |
slti | Set on less than immediate | RV32 and RV64 |
sltiu | Set on less than immediate unsigned | RV32 and RV64 |
sltu | Set on less than unsigned | RV32 and RV64 |
sltz | (pseudo-op) | RV32 and RV64 |
snez | (pseudo-op) | RV32 and RV64 |
sra | Shift right arithmetic | RV32 and RV64 |
srai | Shift right arithmetic immediate | RV32 and RV64 |
sraiw | Shift right arithmetic immediate word | RV64 only |
sraw | Shift right arithmetic word | RV64 only |
srl | Shift right logical | RV32 and RV64 |
srli | Shift right logical immediate | RV32 and RV64 |
srliw | Shift right logical immediate word | RV64 only |
srlw | Shift right logical word | RV64 only |
sub | Subtract | RV32 and RV64 |
subw | Subtract word | RV64 only |
sw | Store word | RV32 and RV64 |
xor | Exclusive Or | RV32 and RV64 |
xori | Exclusive Or immediate | RV32 and RV64 |
zext.b | (pseudo-op) | RV32 and RV64 |