Set on less than immediate unsigned : Sets $t1 = 1 if $t2 < immediate using unsigned comparison. The immediate is sign-extended to 32 bits first, then interpreted as unsigned. Commonly used to test if a value is below a limit without needing a separate register.
sltiu
Operands
$reg, $reg, immVariants
- Set on less than immediate unsigned : Sets $t1 = 1 if $t2 < immediate using unsigned comparison. The immediate is sign-extended to 32 bits first, then interpreted as unsigned. Commonly used to test if a value is below a limit without needing a separate register. sltiu $t1,$t2,-100
# Unsigned comparison: 0xFFFFFFFF is greater than 1. Inspect $t2: 0.
li $t0, -1
sltiu $t2, $t0, 1