RISC-V Introduction to Conditional Branching

RISC-V Introduction to Conditional Branching

In this video, I give a brief introduction to conditional branching in RISC-V. I introduce RISC-V branching instructions BEQ (branch equal), BNE (branch not equal), BGE (branch greater equal), BLT (branch less than). I explain why RISC-V does not include all possible branching instructions and why it is common practice for developers to use the opposite condition when converting high-level code, like C, into RISC-V instructions.

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top