Riscv Isa
Riscv Isa
Shift right arithmetic Srai x5, x6, 3 X5= x6 >> 3 Arithmetic shift right by immediate
immediate
Branch if equal beq x5, x6, 100 if (x5X6) go to PC+100 PC-relative branch if registers equal
Branch if not equal bne x5. x6. 100 |if (x5 !- x6) go to PC+100PC-relative branch if registers not equal
Branch if less than blt x5, x6. 100 |if (x5 < x6) go to PC+100 |PC-relative branch if registers less
Branch if greater or bge x5. x6, 100 1f (x5 = x6) go to PC+100 PC-relative branch if registers greater
Conditionalequal or equal
branch Branch if less, unsigned bltu x5, x6. 00 1f (x5 < x6) go to PC+100 PC-relative branch if registers less,
unsigned
Branch if greater or bgeu x5, x6 100 if (x5 = x6) go to PC+100 PC-relative branch if registers greater
equal, unsigned or equal, unsigned
Unconditionall Junp and link | Jal xl. 100 x1 PC+4: go to PC+100 PC-relative procedure call
branch Junp and link register |jalr xl, 100(x5)x1 - PC+4: go to x5+100 Procedure retum; indirect calI