st64bv0
Single-copy Atomic 64-byte Store with Return (Zero)
ST64BV0 <Ws>, <Xt>, [<Xn|SP>]
Stores 64 bytes (eliding the first 8 bytes as zero) and returns status.
Details
Single-copy Atomic 64-byte Store with Return (Zero) writes a 64-byte block to memory, treating the first 8 bytes as zero, and returns status in Ws. Xt, Xt+2, …, Xt+7 provide bytes 8–63; bytes 0–7 are zeroed. The store is atomic; on failure, Ws is non-zero and memory is unchanged. Address must be 64-byte aligned. Condition flags are not affected. Execution is AArch64-only (FEAT_LS64).
Pseudocode Operation
address ← Xn|SP; if address<5:0> != 0 then Fault(Alignment); data<63:0> ← 0; data<511:64> ← [Xt+1, Xt+2, ..., Xt+7]<447:0>; success ← AtomicStore64B(address, data); Ws ← if success then 0 else implementation_defined_nonzero;
Example
ST64BV0 w6, x3, [x1]
Encoding
Binary Layout
11
111
0
00
0
0
1
Rs
1
010
00
Rn
Rt
Operands
-
Ws
Status -
Xt
Data -
Xn
First source / base 64-bit integer register
Reference (Arm A64 ISA)
Instruction Forms
| Encoding | Instruction | ISA | Bit pattern | ||
|---|---|---|---|---|---|
| 0xF820A000 | ST64BV0 <Xs>, <Xt>, [<Xn|SP>] | A64 | 11 | 111 | 0 | 00 | 0 | 0 | 1 | Rs | 1 | 010 | 00 | Rn | Rt |
Description
Single-copy Atomic 64-byte EL0 Store with status result stores eight 64-bit doublewords from consecutive registers, Xt to X(t+7), to a memory location, with the bottom 32 bits taken from ACCDATA_EL1, and writes the status result of the store to a register. The data that is stored is atomic and is required to be 64-byte aligned.
Operation
CheckST64BV0Enabled();
bits(512) data;
bits(64) address;
bits(64) value;
bits(64) status;
AccessDescriptor accdesc = CreateAccDescLS64(memop, tagchecked);
bits(64) Xt = X[t, 64];
value<31:0> = ACCDATA_EL1<31:0>;
value<63:32> = Xt<63:32>;
if BigEndian(accdesc.acctype) then value = BigEndianReverse(value);
data<63:0> = value;
for i = 1 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];
status = MemStore64BWithRet(address, data, accdesc);
if s != 31 then X[s, 64] = status;