Encoding:

SPECIAL

000000

rs

rt

rd

0

00000

MOVN

001011

6

5

5

5

5

6

Format:

MOVN rd, rs, rt

MIPS32, removed in Release 6

Move Conditional on Not Zero

Purpose:

Move Conditional on Not Zero

To conditionally move a GPR after testing a GPR value.

Description:

 if GPR[rt] != 0 then GPR[rd] = GPR[rs]

If the value in GPR rt is not equal to zero, then the contents of GPR rs are placed into GPR rd.

Restrictions:

None

Availability and Compatibility:

This instruction has been removed in Release 6 and has been replaced by the 'SELNEZ' instruction. Refer to the

SELNEZ instruction in this manual for more information.

Operation:

if GPR[rt] != 0 then
   GPR[rd] = GPR[rs]
endif

Exceptions:

None

Programming Notes:

The non-zero value tested might be the condition true result from the SLT, SLTI, SLTU, and SLTIU comparison instructions or a boolean value read from memory.