SLTI
31
SLTI
0 0 1 0 1 0
Format:
slti rt, rs, immediate
Description:
The 16-bit
Considering both quantities as signed integers, if
result is set to one; otherwise the result is set to zero.
The result is placed into general register
Since the RSP does not signal an overflow exception for SLTI, this command behaves identically to
SLTIU.
Operation:
T:
if GPR[rs] < (immediate
else
endif
Exceptions:
None
214
Set On Less Than Immediate
26
25
21
rs
6
5
immediate
is sign-extended and subtracted from the contents of general register
15
GPR[rd] 0
31
|| 1
GPR[rd] 0
32
20
16
15
rt
5
rs
rt.
16
)
|| immediate
then
15...0
SLTI
immediate
16
is less than the sign-extended immediate, the
0
rs.