Encoding:

POOL32A

000000

rt

rs

code

TLT

100000

POOL32AXf

111100

6

5

5

4

6

6

Format:

TLT rs, rt

microMIPS

Trap if Less Than

Purpose:

Trap if Less Than

To compare GPRs and do a conditional trap.

Description:

 if GPR[rs] < GPR[rt] then Trap

Compare the contents of GPR rs and GPR rt as signed integers. If GPR rs is less than GPR rt, then take a Trap exception.

The contents of the code field are ignored by hardware and may be used to encode information for system software.

To retrieve the information, system software must load the instruction word from memory. Alternatively, if CP0

BadInstr is implemented, the code field may be obtained from BadInstr.

Restrictions:

None

Operation:

if GPR[rs] < GPR[rt] then
   SignalException(Trap) 
endif

Exceptions:

Trap