What value does SLTIU write?
It writes 1 when the comparison is true, otherwise 0.
Set rd to 1 if rs1 is less than the immediate (unsigned), else 0
SLTIU uses opcode 0010011 (0x13), funct3 011. The rs1 field selects the source register, the 12-bit immediate provides the second operand, and rd selects the destination.
SLTIU compares rs1 (unsigned) with the immediate (sign-extended then treated as unsigned), setting rd to 1 if rs1 < imm, else 0. SLTIU rd,rs1,1 sets rd=1 if rs1==0 (pseudo SEQZ).
SLTIU performs unsigned comparison rs1 < sign-extended imm; rd is set to 1 when true and 0 otherwise. It turns a comparison result into an integer value usable by later arithmetic or branches.
Understand this scenario with real code like «sltiu x5, x6, 10 # x5 = (x6 < 10) ? 1 : 0 (unsigned)».
It writes 1 when the comparison is true, otherwise 0.
SLT/SLTI compare as signed integers; SLTU/SLTIU compare as unsigned integers.