Skip to content

FADD

Operation

Adds the source operand to the destination operand.

Assembler Syntax

FADD.{S|D}(z) Fn(s), Fn(d)

FADD.{S|D}(z) <ea>(e), Fn(d)

Privilege

Unprivileged

Required CPUID flags

FP

Repeat eligibility

REP eligible

FADD adds the selected-format floating-point source to the destination and rounds the result according to the floating-point environment. A completed operation writes the rounded value to the destination and accrues any generated NV, OF, UF, and NX causes in FFLAGS; DZ is unchanged.

If a generated floating-point exception is enabled, FADD raises FLOATING_POINT_EXCEPTION. The faulting operation commits neither its destination write nor its accrued FFLAGS causes.

2.75in

Encodings

FADD.{S|D}(z) Fn(s), Fn(d)

Format: Instruction format for FADD.{S|D}(z) Fn(s), Fn(d)

Format: Instruction format for FADD.{S|D}(z) Fn(s), Fn(d)

2.75in FADD.{S|D}(z) <ea>(e), Fn(d)

Format: Instruction format for FADD.{S|D}(z) <ea>(e), Fn(d)

Format: Instruction format for FADD.{S|D}(z) <ea>(e), Fn(d)