1And in Conclusion¶
For your reference the tables below show the conditional branching instructions which can also be found on the 61C reference card.
The below are abbreviations that will be used in the table:
rs1: Argument register 1rs2: Argument register 2rd: Destination registerimm: Immediate value (integer literal constant)R[register]: Value contained in registerinst: One of the instructions in the table
| Instruction | Name/Description |
|---|---|
beq rs1 rs2 Label | Branch if Equal |
bne rs1 rs2 Label | Branch if Not Equal |
blt rs1 rs2 Label | Branch if Less Than (signed) (rs1 < rs2) |
bge rs1 rs2 Label | Branch if Greater or Equal (signed) (rs1 >= rs2) |
bltu rs1 rs2 Label | Branch if Less Than (unsigned) |
bgeu rs1 rs2 Label | Branch if Greater Than or Equal (unsigned) |
Branch Instructions (reprint of Table 2 from this section).
2Textbook Readings¶
P&H 2.6, 2.7, 3.2
3Additional References¶
See the RISC-V manual links on our RISC-V green card page.