Webcentive RISC-V Reference

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)

MnemonicName (riscv-unified-db)XLEN
addInteger addRV32 and RV64
addiAdd immediateRV32 and RV64
addiwAdd immediate wordRV64 only
addwAdd wordRV64 only
andAndRV32 and RV64
andiAnd immediateRV32 and RV64
auipcAdd upper immediate to pcRV32 and RV64
beqBranch if equalRV32 and RV64
beqz (pseudo-op)RV32 and RV64
bgeBranch if greater than or equalRV32 and RV64
bgeuBranch if greater than or equal unsignedRV32 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
bltBranch if less thanRV32 and RV64
bltuBranch if less than unsignedRV32 and RV64
bltz (pseudo-op)RV32 and RV64
bneBranch if not equalRV32 and RV64
bnez (pseudo-op)RV32 and RV64
ebreakBreakpoint exceptionRV32 and RV64
ecallEnvironment callRV32 and RV64
fenceMemory ordering fenceRV32 and RV64
fence.tsoMemory ordering fence, total store ordering (pseudo-op)RV32 and RV64
j (pseudo-op)RV32 and RV64
jalJump and linkRV32 and RV64
jalrJump and link registerRV32 and RV64
jr (pseudo-op)RV32 and RV64
lbLoad byteRV32 and RV64
lbuLoad byte unsignedRV32 and RV64
ldLoad doublewordRV32 and RV64
lhLoad halfwordRV32 and RV64
lhuLoad halfword unsignedRV32 and RV64
luiLoad upper immediateRV32 and RV64
lwLoad wordRV32 and RV64
lwuLoad word unsignedRV64 only
mv (pseudo-op)RV32 and RV64
neg (pseudo-op)RV32 and RV64
nop (pseudo-op)RV32 and RV64
orOrRV32 and RV64
oriOr immediateRV32 and RV64
pausePause hint (pseudo-op)RV32 and RV64
ret (pseudo-op)RV32 and RV64
sbStore byteRV32 and RV64
sbreak (pseudo-op)RV32 and RV64
scall (pseudo-op)RV32 and RV64
sdStore doublewordRV32 and RV64
seqz (pseudo-op)RV32 and RV64
sext.w (pseudo-op)RV64 only
sgtz (pseudo-op)RV32 and RV64
shStore halfwordRV32 and RV64
sllShift left logicalRV32 and RV64
slliShift left logical immediateRV32 and RV64
slliwShift left logical immediate wordRV64 only
sllwShift left logical wordRV64 only
sltSet on less thanRV32 and RV64
sltiSet on less than immediateRV32 and RV64
sltiuSet on less than immediate unsignedRV32 and RV64
sltuSet on less than unsignedRV32 and RV64
sltz (pseudo-op)RV32 and RV64
snez (pseudo-op)RV32 and RV64
sraShift right arithmeticRV32 and RV64
sraiShift right arithmetic immediateRV32 and RV64
sraiwShift right arithmetic immediate wordRV64 only
srawShift right arithmetic wordRV64 only
srlShift right logicalRV32 and RV64
srliShift right logical immediateRV32 and RV64
srliwShift right logical immediate wordRV64 only
srlwShift right logical wordRV64 only
subSubtractRV32 and RV64
subwSubtract wordRV64 only
swStore wordRV32 and RV64
xorExclusive OrRV32 and RV64
xoriExclusive Or immediateRV32 and RV64
zext.b (pseudo-op)RV32 and RV64