Encoding:

POOL32A

000000

rt

rs

rd

0

SLT

1101010000

6

5

5

5

1

10

Format:

SLT rd, rs, rt 

microMIPS

Set on Less Than

Purpose:

Set on Less Than

To record the result of a less-than comparison.

Description:

 GPR[rd] = (GPR[rs] < GPR[rt])

Compare the contents of GPR rs and GPR rt as signed integers; record the Boolean result of the comparison in

GPR rd. If GPR rs is less than GPR rt, the result is 1 (true); otherwise, it is 0 (false).

The arithmetic comparison does not cause an Integer Overflow exception.

Restrictions:

None

Operation:

if GPR[rs] < GPR[rt] then
   GPR[rd] = 0GPRLEN-1 || 1
else
   GPR[rd] = 0GPRLEN
endif

Exceptions:

None