BGEU
Branch if Greater or Equal Unsigned
BGEU rs1, rs2, offset
Take the branch if rs1 is greater than or equal to rs2 (unsigned comparison).
Details
BGEU takes the branch if rs1 is greater than or equal to rs2, treating both as unsigned integers. The branch target is the PC plus the sign-extended B-immediate.
Pseudocode Operation
if (R[rs1] >=u R[rs2]) PC += sext(offset);
Example
BGEU a0, a1, 0
Encoding
Binary Layout
imm
rs2
31:27
rs1
26:22
111
21:19
imm
1100011
18:12
Operands
-
rs1
Source register 1 (integer) -
rs2
Source register 2 (integer) -
offset
Offset