Encoding:

SPECIAL

000000

rs

rt

rd

0

00000

MOVZ

001010

6

5

5

5

5

6

Format:

MOVZ rd, rs, rt 

MIPS32, removed in Release 6

Move Conditional on Zero

Purpose:

Move Conditional on 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 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 'SELEQZ' instruction. Refer to the

SELEQZ instruction in this manual for more information.

Operation:

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

Exceptions:

None

Programming Notes:

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