ARM / OFFLINE REFERENCE

On this page
← Home

LDFADD, LDFADDA, LDFADDAL, LDFADDL

Atomic floating-point add

This instruction atomically loads a 16-bit, 32-bit, or 64-bit value from memory, performs a floating-point add with the value held in a register, and stores the result back to memory. The value initially loaded from memory is returned in the destination register.

This instruction:

For more information about memory ordering semantics, see Load-Acquire, Store-Release.

For information about addressing modes, see Load/Store addressing modes.

Floating-point class
(FEAT_LSFE)

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
size 1 1 1 1 0 0 A R 1 Rs 0 0 0 0 0 0 Rn Rt
VR o3 opc

Half-precision no memory ordering encoding

(size == 01 && A == 0 && R == 0)

LDFADD <Hs>, <Ht>, [<Xn|SP>]

Half-precision acquire encoding

(size == 01 && A == 1 && R == 0)

LDFADDA <Hs>, <Ht>, [<Xn|SP>]

Half-precision acquire-release encoding

(size == 01 && A == 1 && R == 1)

LDFADDAL <Hs>, <Ht>, [<Xn|SP>]

Half-precision release encoding

(size == 01 && A == 0 && R == 1)

LDFADDL <Hs>, <Ht>, [<Xn|SP>]

Single-precision no memory ordering encoding

(size == 10 && A == 0 && R == 0)

LDFADD <Ss>, <St>, [<Xn|SP>]

Single-precision acquire encoding

(size == 10 && A == 1 && R == 0)

LDFADDA <Ss>, <St>, [<Xn|SP>]

Single-precision acquire-release encoding

(size == 10 && A == 1 && R == 1)

LDFADDAL <Ss>, <St>, [<Xn|SP>]

Single-precision release encoding

(size == 10 && A == 0 && R == 1)

LDFADDL <Ss>, <St>, [<Xn|SP>]

Double-precision no memory ordering encoding

(size == 11 && A == 0 && R == 0)

LDFADD <Ds>, <Dt>, [<Xn|SP>]

Double-precision acquire encoding

(size == 11 && A == 1 && R == 0)

LDFADDA <Ds>, <Dt>, [<Xn|SP>]

Double-precision acquire-release encoding

(size == 11 && A == 1 && R == 1)

LDFADDAL <Ds>, <Dt>, [<Xn|SP>]

Double-precision release encoding

(size == 11 && A == 0 && R == 1)

LDFADDL <Ds>, <Dt>, [<Xn|SP>]

Decode (all encodings)

if !IsFeatureImplemented(FEAT_LSFE) then EndOfDecode(Decode_UNDEF); end;

let t : integer = UInt(Rt);
let n : integer = UInt(Rn);
let s : integer = UInt(Rs);

let datasize : integer{} = 8 << UInt(size);
let acquire : boolean = A == '1';
let release : boolean = R == '1';
let tagchecked : boolean = n != 31;

Assembler Symbols

<Hs>

Is the 16-bit name of the SIMD&FP register holding the data value to be operated on with the contents of the memory location, encoded in the "Rs" field.

<Ht>

Is the 16-bit name of the SIMD&FP register to be loaded, encoded in the "Rt" field.

<Xn|SP>

Is the 64-bit name of the general-purpose base register or stack pointer, encoded in the "Rn" field.

<Ss>

Is the 32-bit name of the SIMD&FP register holding the data value to be operated on with the contents of the memory location, encoded in the "Rs" field.

<St>

Is the 32-bit name of the SIMD&FP register to be loaded, encoded in the "Rt" field.

<Ds>

Is the 64-bit name of the SIMD&FP register holding the data value to be operated on with the contents of the memory location, encoded in the "Rs" field.

<Dt>

Is the 64-bit name of the SIMD&FP register to be loaded, encoded in the "Rt" field.

Operation

AArch64_CheckFPEnabled();
var address : bits(64);
var value : bits(datasize);
var data : bits(datasize);
let accdesc : AccessDescriptor = CreateAccDescFPAtomicOp(MemAtomicOp_FPADD, acquire,
                                                         release, tagchecked);

value = V{datasize}(s);
if n == 31 then
    CheckSPAlignment();
    address = SP{64}();
else
    address = X{64}(n);
end;

// Irrelevant when not executing CAS
let comparevalue : bits(datasize) = ARBITRARY : bits(datasize);
data = MemAtomic{datasize}(address, comparevalue, value, accdesc);

V{datasize}(t) = data;

Version 2026.09 — Copyright © 2010-2026 Arm Limited or its affiliates.

This site is provided as a community resource and is NOT affiliated with nor endorsed by Arm Limited.