ARM / OFFLINE REFERENCE

On this page
← Home

GCSSTR

Guarded Control Stack store register

This instruction stores a doubleword from a register to memory. The address that is used for the store is calculated from a base register.

Integer class
(FEAT_GCS)

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 1 0 1 1 0 0 1 0 0 0 1 1 1 1 1 0 0 0 0 1 1 Rn Rt
opc

Encoding

GCSSTR <Xt>, [<Xn|SP>]

Decode

if !IsFeatureImplemented(FEAT_GCS) then EndOfDecode(Decode_UNDEF); end;
let t : integer{} = UInt(Rt);
let n : integer{} = UInt(Rn);

Assembler Symbols

<Xt>

Is the 64-bit name of the general-purpose register to be transferred, encoded in the "Rt" field.

<Xn|SP>

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

Operation

var address : bits(64);

let effective_el : bits(2) = PSTATE.EL;

if effective_el == PSTATE.EL then
    CheckGCSSTREnabled();
end;

let privileged : boolean = effective_el != EL0;
let accdesc : AccessDescriptor = CreateAccDescGCS(MemOp_STORE, privileged);

if n == 31 then
    CheckSPAlignment();
    address = SP{64}();
else
    address = X{64}(n);
end;

Mem{64}(address, accdesc) = X{64}(t);

Version 2026.09 — Copyright © 2010-2026 Arm Limited or its affiliates.

This site is provided as a community resource and is NOT affiliated with nor endorsed by Arm Limited.