st64b
Single-copy Atomic 64-byte Store
ST64B <Xt>, [<Xn|SP>]
Stores a 64-byte block of data atomically.
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
31:30
111
29:27
0
26
00
25:24
0
23
0
22
1
21
11111
20:16
1
15
001
14:12
00
11:10
Rn
9:5
Rt
4:0
Operands
-
Xt
Src (First of 8 regs) -
Xn
First source / base 64-bit integer register
Related
More in LSE (Atomics)
Reference
View in Arm A64 ISA 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);