STR (predicate)

Store predicate register

This instruction stores a predicate register to a memory address generated by a 64-bit scalar base, plus an immediate offset in the range -256 to 255 that is multiplied by the current predicate register size in bytes. This instruction is unpredicated.

The store is performed as contiguous byte accesses, each containing 8 consecutive predicate bits in ascending element order, with no endian conversion and no guarantee of single-copy atomicity larger than a byte. However, if alignment is checked, then a general-purpose base register must be aligned to 2 bytes.

For programmer convenience, an assembler must also accept a predicate-as-counter register name for the source predicate register.

SVE
(FEAT_SVE || FEAT_SME)

313029282726252423222120191817161514131211109876543210
1110010110imm9h000imm9lRn0Pt

Encoding

STR <Pt>, [<Xn|SP>{, #<imm>, MUL VL}]

Decode for this encoding

if !IsFeatureImplemented(FEAT_SVE) && !IsFeatureImplemented(FEAT_SME) then EndOfDecode(Decode_UNDEF); end; let t : integer = UInt(Pt); let n : integer = UInt(Rn); let imm : integer = SInt(imm9h::imm9l);

Assembler Symbols

<Pt>

Is the name of the scalable predicate transfer register, encoded in the "Pt" field.

<Xn|SP>

Is the 64-bit name of the general-purpose base register or stack pointer, encoded in the "Rn" field.

<imm>

Is the optional signed immediate vector offset, in the range -256 to 255, defaulting to 0, encoded in the "imm9h:imm9l" fields.

Operation

CheckSVEEnabled(); let PL : integer{} = CurrentVL() DIV 8; let elements : integer = PL DIV 8; var src : bits(PL); var base : bits(64); let offset : integer = imm * elements; let contiguous : boolean = TRUE; let nontemporal : boolean = FALSE; let predicated : boolean = FALSE; let tagchecked : boolean = n != 31; let accdesc : AccessDescriptor = CreateAccDescSVE(MemOp_STORE, nontemporal, contiguous, predicated, tagchecked); if n == 31 then CheckSPAlignment(); base = SP{64}(); else base = X{64}(n); end; src = P{PL}(t); var addr : bits(64) = AddressAdd(base, offset, accdesc); let aligned : boolean = IsAlignedSize(base, 2); if !aligned && AlignmentEnforced() then let fault : FaultRecord = AlignmentFault(accdesc, addr); AArch64_Abort(fault); end; for e = 0 to elements-1 do AArch64_MemSingle{8}(addr, accdesc, aligned) = src[e*:8]; addr = AddressIncrement(addr, 1, accdesc); end;

Operational information

This instruction is a data-independent-time instruction as described in About PSTATE.DIT.


2026-03_rel 2026-03-26 20:48:11

Copyright © 2010-2026 Arm Limited or its affiliates. All rights reserved. This document is Non-Confidential.