movz.d

Move double-precision if integer register is zero

Copies the double-precision value in $f4 into $f2 if the integer register $t3 is zero.

Forms

  • movz.d , ,

Operands

$f2
An even-numbered floating-point register, $f0 to $f30. A double-precision value uses this register and the next odd-numbered register.
$f4
An even-numbered floating-point register holding a double. It may be the same register as $f2.
$t3
Any general-purpose register, $0 to $31, using its numeric or named spelling, such as $8 or $t0 ($zero is $0; $ra is $31).

Both FP register numbers must be even.

.data
value: .double 2.0
.text
# movz.d copies when the condition register is zero. Inspect $f2:$f3: 2.0 (raw bits 0x4000000000000000).
l.d $f4, value
li $t0, 0
movz.d $f2, $f4, $t0