Architecture
180
SLTU Set On Less Than Unsigned SLTU
31 26 25 21 20 16 15 11 10 6 5 0
SPECIAL
000000
rs rt rd
0
00000
SLTU
101011
6 5 5 5 5 6
Format :
SLTU rd, rs, rt
Description :
Compares the contents of general registers rt and rs as 32-bit unsigned integers. A 1, if rs is less
than rt, or a 0, otherwise, is placed in general-purpose register rd as the result of the comparison.
No overflow exception is raised. The comparison is valid even if the subtraction used in making
the comparison overflows.
Operation :
T:
if (0 || GPR[rs]) < (0 || GPR[rt]) then
GPR[rd] ← 0
31
|| 1
else
GPR[rd] ← 0
32
endif
Exceptions :
None