# `movn.s`

[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.s

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

Category: Floating point

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

## Forms

- `movn.s $f0, $f1, $t3`

## Operands

- `$f0`: Any floating-point register, `$f0` to `$f31`.
- `$f1`: A floating-point register. It may be the same register as `$f0`.
- `$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`).

## Example

```mips
.data
value: .float 2.0
.text
# movn.s copies when the condition register is nonzero. Inspect $f0: 2.0 (raw bits 0x40000000).
l.s $f2, value
li $t0, 1
movn.s $f0, $f2, $t0
```
