Encoding:

REGIMM

000001

rs

TGEI

01000

immediate

6

5

5

16

Format:

TGEI rs, immediate

MIPS32, removed in Release 6

Trap if Greater or Equal Immediate

Purpose:

Trap if Greater or Equal Immediate

To compare a GPR to a constant and do a conditional trap.

Description:

 if GPR[rs] >= immediate then Trap

Compare the contents of GPR rs and the 16-bit signed immediate as signed integers. If GPR rs is greater than or equal to immediate, then take a Trap exception.

Restrictions:

None

Availability and Compatibility:

This instruction has been removed in Release 6.

Operation:

if GPR[rs] >= sign_extend(immediate) then
   SignalException(Trap) 
endif

Exceptions:

Trap