Encoding:

REGIMM

000001

rs

TNEI

01110

immediate

6

5

5

16

Format:

TNEI rs, immediate

MIPS32, removed in Release 6

Trap if Not Equal Immediate

Purpose:

Trap if Not 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 not 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