bltu
lyszt.net covers bltu and other RISC-V instructions in more detail.
Encoding format
Description
Branches to a label when one unsigned value is less than another. In bltu rs1, rs2, label, the branch is taken when the unsigned value in rs1 is below rs2. It handles values that cannot be negative, such as addresses, sizes and counts. Signed blt misreads an address once its top bit is set. A single bltu bounds check rejects negative and oversized indices together.
Official definition
All branch instructions use the B-type instruction format. The 12-bit B-immediate encodes signed offsets in multiples of 2 bytes. The offset is sign-extended and added to the address of the branch instruction to give the target address. The conditional branch range is ±4 KiB.
Branch instructions compare two registers. BEQ and BNE take the branch if registers rs1 and rs2 are equal or unequal respectively. BLT and BLTU take the branch if rs1 is less than rs2, using signed and unsigned comparison respectively. BGE and BGEU take the branch if rs1 is greater than or equal to rs2, using signed and unsigned comparison respectively. Note, BGT, BGTU, BLE, and BLEU can be synthesized by reversing the operands to BLT, BLTU, BGE, and BGEU, respectively.