risc-v

Definition

B-Type Instruction (RISC-V)

A B-type instruction encodes a conditional branch with two source registers and a split sign-extended branch offset.

Synopsis

B-type instructions use two source registers (rs1, rs2) and a split sign-extended branch offset.

The remaining fields provide the branch encoding:

  • funct3 selects the branch condition.
  • op identifies the instruction as a B-type instruction.