LD4 (single structure)
Load single 4-element structure to one lane of four registers
This instruction loads a 4-element structure from memory and writes the result to the corresponding elements of the four SIMD&FP registers without affecting the other bits of the registers.
Depending on the settings in the CPACR_EL1, CPTR_EL2, and CPTR_EL3 registers, and the current Security state and Exception level, an attempt to execute the instruction might be trapped.
It has encodings from 2 classes: No offset and Post-index
No offset class
(FEAT_AdvSIMD)
| 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | Q | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | x | x | 1 | S | size | Rn | Rt | |||||||||
| L | R | o2 | opcode | ||||||||||||||||||||||||||||
16-bit encoding
(opcode == 011 && size == x0)LD4 { <Vt>.H, <Vt2>.H, <Vt3>.H, <Vt4>.H }[<index>], [<Xn|SP>]
32-bit encoding
(opcode == 101 && size == 00)LD4 { <Vt>.S, <Vt2>.S, <Vt3>.S, <Vt4>.S }[<index>], [<Xn|SP>]
64-bit encoding
(opcode == 101 && S == 0 && size == 01)LD4 { <Vt>.D, <Vt2>.D, <Vt3>.D, <Vt4>.D }[<index>], [<Xn|SP>]
Decode (all encodings)
if !IsFeatureImplemented(FEAT_AdvSIMD) then EndOfDecode(Decode_UNDEF); end;
var t : integer = UInt(Rt);
let n : integer = UInt(Rn);
let m : integer = ARBITRARY : integer;
let wback : boolean = FALSE;
let nontemporal : boolean = FALSE;
let tagchecked : boolean = wback || n != 31;
Post-index class
(FEAT_AdvSIMD)
| 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | Q | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | Rm | x | x | 1 | S | size | Rn | Rt | |||||||||||||
| L | R | opcode | |||||||||||||||||||||||||||||
8-bit, immediate offset encoding
(Rm == 11111 && opcode == 001)LD4 { <Vt>.B, <Vt2>.B, <Vt3>.B, <Vt4>.B }[<index>], [<Xn|SP>], #4
8-bit, register offset encoding
(Rm != 11111 && opcode == 001)LD4 { <Vt>.B, <Vt2>.B, <Vt3>.B, <Vt4>.B }[<index>], [<Xn|SP>], <Xm>
16-bit, immediate offset encoding
(Rm == 11111 && opcode == 011 && size == x0)LD4 { <Vt>.H, <Vt2>.H, <Vt3>.H, <Vt4>.H }[<index>], [<Xn|SP>], #8
16-bit, register offset encoding
(Rm != 11111 && opcode == 011 && size == x0)LD4 { <Vt>.H, <Vt2>.H, <Vt3>.H, <Vt4>.H }[<index>], [<Xn|SP>], <Xm>
32-bit, immediate offset encoding
(Rm == 11111 && opcode == 101 && size == 00)LD4 { <Vt>.S, <Vt2>.S, <Vt3>.S, <Vt4>.S }[<index>], [<Xn|SP>], #16
32-bit, register offset encoding
(Rm != 11111 && opcode == 101 && size == 00)LD4 { <Vt>.S, <Vt2>.S, <Vt3>.S, <Vt4>.S }[<index>], [<Xn|SP>], <Xm>
64-bit, immediate offset encoding
(Rm == 11111 && opcode == 101 && S == 0 && size == 01)LD4 { <Vt>.D, <Vt2>.D, <Vt3>.D, <Vt4>.D }[<index>], [<Xn|SP>], #32
64-bit, register offset encoding
(Rm != 11111 && opcode == 101 && S == 0 && size == 01)LD4 { <Vt>.D, <Vt2>.D, <Vt3>.D, <Vt4>.D }[<index>], [<Xn|SP>], <Xm>
Decode (all encodings)
if !IsFeatureImplemented(FEAT_AdvSIMD) then EndOfDecode(Decode_UNDEF); end;
var t : integer = UInt(Rt);
let n : integer = UInt(Rn);
let m : integer = UInt(Rm);
let wback : boolean = TRUE;
let nontemporal : boolean = FALSE;
let tagchecked : boolean = wback || n != 31;
Assembler Symbols
| <Vt> |
Is the name of the first or only SIMD&FP register to be transferred, encoded in the "Rt" field. |
| <Vt2> |
Is the name of the second SIMD&FP register to be transferred, encoded as "Rt" plus 1 modulo 32. |
| <Vt3> |
Is the name of the third SIMD&FP register to be transferred, encoded as "Rt" plus 2 modulo 32. |
| <Vt4> |
Is the name of the fourth SIMD&FP register to be transferred, encoded as "Rt" plus 3 modulo 32. |
| <index> |
For the "8-bit", "8-bit, immediate offset", and "8-bit, register offset" variants: is the element index, encoded in "Q:S:size". |
|
For the "16-bit", "16-bit, immediate offset", and "16-bit, register offset" variants: is the element index, encoded in "Q:S:size<1>". |
|
|
For the "32-bit", "32-bit, immediate offset", and "32-bit, register offset" variants: is the element index, encoded in "Q:S". |
|
|
For the "64-bit", "64-bit, immediate offset", and "64-bit, register offset" variants: is the element index, encoded in "Q". |
| <Xn|SP> |
Is the 64-bit name of the general-purpose base register or stack pointer, encoded in the "Rn" field. |
| <Xm> |
Is the 64-bit name of the general-purpose post-index register, excluding XZR, encoded in the "Rm" field. |
Shared Decode
var scale : bits(2) = opcode[2:1];
let selem : integer = UInt(opcode[0]::R) + 1;
var replicate : boolean = FALSE;
var index : integer;
case scale of
when '11' =>
// load and replicate
if L == '0' || S == '1' then EndOfDecode(Decode_UNDEF); end;
scale = size;
replicate = TRUE;
when '00' =>
index = UInt(Q::S::size); // B[0-15]
when '01' =>
if size[0] == '1' then EndOfDecode(Decode_UNDEF); end;
index = UInt(Q::S::size[1]); // H[0-7]
when '10' =>
if size[1] == '1' then EndOfDecode(Decode_UNDEF); end;
if size[0] == '0' then
index = UInt(Q::S); // S[0-3]
else
if S == '1' then EndOfDecode(Decode_UNDEF); end;
index = UInt(Q); // D[0-1]
scale = '11';
end;
end;
let datasize : integer{} = 64 << UInt(Q);
let esize : integer{} = 8 << UInt(scale);
Operation
AArch64_CheckFPAdvSIMDEnabled();
var address : bits(64);
var eaddr : bits(64);
var rval : bits(128);
var element : bits(esize);
var offs : bits(64) = Zeros{};
let ebytes : integer{} = esize DIV 8;
let privileged : boolean = PSTATE.EL != EL0;
let accdesc : AccessDescriptor = CreateAccDescASIMD(MemOp_LOAD, nontemporal,
tagchecked, privileged);
if n == 31 then
CheckSPAlignment();
address = SP{64}();
else
address = X{64}(n);
end;
if replicate then
// load and replicate to all elements
for s = 0 to selem - 1 do
eaddr = AddressIncrement(address, offs, accdesc);
element = Mem{esize}(eaddr, accdesc);
// replicate to fill 128- or 64-bit register
V{datasize}(t) = Replicate{datasize}(element);
offs = offs + ebytes;
t = (t + 1) MOD 32;
end;
else
// load/store one element per register
for s = 0 to selem - 1 do
rval = V{128}(t);
eaddr = AddressIncrement(address, offs, accdesc);
rval[index *: esize] = Mem{esize}(eaddr, accdesc);
V{128}(t) = rval;
offs = offs + ebytes;
t = (t + 1) MOD 32;
end;
end;
if wback then
if m != 31 then
offs = X{64}(m);
end;
address = AddressAdd(address, offs, accdesc);
if n == 31 then
SP{64}() = address;
else
X{64}(n) = address;
end;
end;
Operational information
This instruction is a data-independent-time instruction as described in About PSTATE.DIT.
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.