# `add.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/add.s

**Floating-point add (single precision)**

Category: Floating point

Adds the second and third registers using IEEE 754 single-precision (32-bit) arithmetic and stores the sum in the first.

Used in: [Floating point and Coprocessor 1](https://asm-editor.specy.app/learn/courses/mips/think-in-assembly/floating-point-and-coprocessor-1.md) (MIPS assembly)

## Forms

- `add.s $f0, $f1, $f3`

## Operands

- `$f0`: Any floating-point register, `$f0` to `$f31`.
- `$f1`: A floating-point register. It may be the same register as `$f0`.
- `$f3`: A floating-point register. It may be the same register as `$f0`.

## Description

Single-precision values have about 7 significant decimal digits. The result is stored in one FP register.

## Example

```mips
.data
a: .float 1.5
b: .float 2.25
.text
# add single values 1.5 and 2.25. Inspect $f0: 3.75 (raw bits 0x40700000).
l.s $f2, a
l.s $f4, b
add.s $f0, $f2, $f4
```
