RISC-V instruction listings

Last updated

The RISC-V instruction set refers to the set of instructions that RISC-V compatible microprocessors support. The instructions are usually part of an executable program, often stored as a computer file and executed on the processor.

Contents

RV32I Base Integer Instructions

The table below contains a list of the RV32I Base Integer Instructions. [1]

RV32I Base Integer Instructions
InstructionNameFormatOpcode
addADDR0110011
subSUBR0110011
xorXORR0110011
orORR0110011
andANDR0110011
sllShift Left LogicalR0110011
srlShift Right LogicalR0110011
sraShift Right Arith*R0110011
sltSet Less ThanR0110011
sltuSet Less Than (U)R0110011
addiADD ImmediateI0010011
xoriXOR ImmediateI0010011
oriOR ImmediateI0010011
andiAND ImmediateI0010011
slliShift Left Logical ImmediateI0010011
srliShift Right Logical ImmediateI0010011
sraiShift Left Arith ImmediateI0010011
sltiSet Less Than ImmediateI0010011
sltiuSet Less Than Immediate (U)I0010011
lbLoad ByteI0000011
lhLoad HalfI0000011
lwLoad WordI0000011
lbuLoad Byte (U)I0000011
lhuLoad Half (U)I0000011
sbStore ByteS0100011
shStore HalfS0100011
swStore WordS0100011
beqBranch ==B1100011
bneBranch !=B1100011
bltBranch <B1100011
bgeBranch >B1100011
bltuBranch < (U)B1100011
bgeuBranch > (U)B1100011

See also

References

  1. "The RISC-V Instruction Set Manual Volume I" (PDF). RISC-V. 11 April 2024. Retrieved 4 February 2025.