Floating-point add (double) : Sets $f2 = $f4 + $f6 using IEEE 754 double-precision (64-bit) arithmetic. Double-precision values have about 15 significant decimal digits. All three register numbers must be even, as each double occupies a pair of FP registers.
add.d
Operands
$freg, $freg, $fregVariants
- Floating-point add (double) : Sets $f2 = $f4 + $f6 using IEEE 754 double-precision (64-bit) arithmetic. Double-precision values have about 15 significant decimal digits. All three register numbers must be even, as each double occupies a pair of FP registers. add.d $f2,$f4,$f6
.data
a: .double 1.5
b: .double 2.25
.text
# add double 1.5 and 2.25. Inspect $f6:$f7 for 3.75 (raw bits 0x400E000000000000).
l.d $f2, a
l.d $f4, b
add.d $f6, $f2, $f4