# `movn.d`

[MIPS Documentation](https://asm-editor.specy.app/documentation/mips.md) › [Instructions](https://asm-editor.specy.app/documentation/mips/instruction.md)

Web page: https://asm-editor.specy.app/documentation/mips/instruction/movn.d

**Move double-precision if integer register not zero**

Category: Floating point

Copies the double-precision value in the second register into the first if the third, an integer register, is not zero.

## Forms

- `movn.d $f2, $f4, $t3`

## 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`).

## Description

Both FP register numbers must be even.

## Example

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