st64b
Single-copy Atomic 64-byte Store
ST64B <Xt>, [<Xn|SP>]
Stores a 64-byte block of data atomically.
Details
Single-copy Atomic 64-byte Store writes a 64-byte block from 8 consecutive X-registers starting at Xt to memory 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); [address] ← [Xt, Xt+1, ..., Xt+7]; // 64 bytes stored atomically
Example
ST64B x3, [x1]
Encoding
Binary Layout
11
111
0
00
0
0
1
11111
1
001
00
Rn
Rt
Operands
-
Xt
Src (First of 8 regs) -
Xn
First source / base 64-bit integer register
Reference (Arm A64 ISA)
Instruction Forms
| Encoding | Instruction | ISA | Bit pattern | ||
|---|---|---|---|---|---|
| 0xF83F9000 | ST64B <Xt>, [<Xn|SP> {, #0}] | A64 | 11 | 111 | 0 | 00 | 0 | 0 | 1 | 11111 | 1 | 001 | 00 | Rn | Rt |
Description
Single-copy Atomic 64-byte Store without status result stores eight 64-bit doublewords from consecutive registers, Xt to X(t+7), to a memory location. The data that is stored 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);
for i = 0 to 7
value = X[t+i, 64];
if BigEndian(accdesc.acctype) then value = BigEndianReverse(value);
data<63+64*i:64*i> = value;
if n == 31 then
CheckSPAlignment();
address = SP[];
else
address = X[n, 64];
MemStore64B(address, data, accdesc);