Encoding:

EXTEND

11110

00000

1

00

rb

SHIFT

00110

rx

0

sel = 6

SRL

10

5

5

1

2

3

5

3

3

3

2

Format:

MOVTN rx, rb

MIPS16e2

Move Conditional on T Not Equal to Zero Extended

Purpose:

Move Conditional on T Not Equal to Zero Extended

Test special register T and then conditionally move a GPR.

Description:

 If T != 0, then GPR[rx] = GPR[rb]

If the value in GPR[24] is not equal to 0, the contents of GPR rb are placed into GPR rx.

Restrictions:

In implementations prior to MIPS16e2, this instruction yielded unpredictable results. It would typically be executed as an SRL instruction.

Operation:

if GPR[24] != 0, then
   GPR[XLat[rx]] = GPR[XLat[rb]]
endif

Exceptions:

None

Programming Notes:

The non-zero value tested might be the condition true result from the CMP or CMPI comparison instructions or a boolean value read from memory.