sltiu
lyszt.net covers sltiu and other RISC-V instructions in more detail.
Encoding format
Description
Writes 1 or 0 to record whether an unsigned value is smaller than a constant. In sltiu rd, rs1, imm, the constant is sign-extended first and then read as unsigned, and the result is 1 when rs1 falls below it. The assembler writes the zero test sltiu rd, rs, 1 as seqz.
Official definition
SLTI (set less than immediate) places the value 1 in register rd if register rs1 is less than the sign-extended immediate when both are treated as signed numbers, else 0 is written to rd. SLTIU is similar but compares the values as unsigned numbers (i.e., the immediate is first sign-extended to XLEN bits then treated as an unsigned number). Note, SLTIU rd, rs1, 1 sets rd to 1 if rs1 equals zero, otherwise sets rd to 0 (assembler pseudoinstruction SEQZ rd, rs).