ld64b
Single-copy Atomic 64-byte Load
LD64B <Xt>, [<Xn|SP>]
Loads a 64-byte block of data atomically (Accelerator support).
Details
Single-copy Atomic 64-byte Load reads a 64-byte block of memory into 8 consecutive X-registers starting at Xt, with all 64 bytes loaded as a single atomic operation. The address must be 64-byte aligned; misalignment raises an Alignment Fault. Condition flags are not affected. Execution is AArch64-only and requires Accelerator support (FEAT_LS64).
Pseudocode Operation
address ← Xn|SP; if address<5:0> != 0 then Fault(Alignment); [Xt, Xt+1, ..., Xt+7] ← [address]; // 64 bytes loaded atomically
Example
LD64B x3, [x1]
Encoding
Binary Layout
11
111
0
00
0
0
1
11111
1
101
00
Rn
Rt
Operands
-
Xt
Dest (First of 8 regs) -
Xn
First source / base 64-bit integer register
Reference (Arm A64 ISA)
Instruction Forms
| Encoding | Instruction | ISA | Bit pattern | ||
|---|---|---|---|---|---|
| 0xF83FD000 | LD64B <Xt>, [<Xn|SP> {, #0}] | A64 | 11 | 111 | 0 | 00 | 0 | 0 | 1 | 11111 | 1 | 101 | 00 | Rn | Rt |
Description
Single-copy Atomic 64-byte Load derives an address from a base register value, loads eight 64-bit doublewords from a memory location, and writes them to consecutive registers, Xt to X(t+7). The data that is loaded is atomic and is required to be 64-byte aligned.
Operation
CheckLDST64BEnabled();
bits(512) data;
bits(64) address;
bits(64) value;
AccessDescriptor accdesc = CreateAccDescLS64(memop, tagchecked);
if n == 31 then
CheckSPAlignment();
address = SP[];
else
address = X[n, 64];
data = MemLoad64B(address, accdesc);
for i = 0 to 7
value = data<63+64*i:64*i>;
if BigEndian(accdesc.acctype) then value = BigEndianReverse(value);
X[t+i, 64] = value;