STUR (integer)

Store Register (unscaled) via alternate base determines the base register to be used, derives an address from the base register and an immediate offset, and stores a 32-bit word or 64-bit doubleword to the calculated address in memory. The base register used by this operation depends on PSTATE.C64: if PSTATE.C64 is 1, the base register is a 64-bit general-purpose register; if PSTATE.C64 is 0, the base register is a capability general-purpose register. For information about memory accesses, see Load/Store addressing modes.

It has encodings from 2 classes: Doubleword and Word

Doubleword

313029282726252423222120191817161514131211109876543210
11100010110imm900RnRt
op1<1>op1<0>Vop2

STUR <Xt>, [<Cn|CSP>{, #<imm>}] // (PSTATE.C64 == '0')

STUR <Xt>, [<Xn|SP>{, #<imm>}] // (PSTATE.C64 == '1')

integer t = UInt(Rt); integer n = UInt(Rn); bits(64) offset = SignExtend(imm9, 64); datasize = 64; regsize = 64;

Word

313029282726252423222120191817161514131211109876543210
11100010100imm900RnRt
op1<1>op1<0>Vop2

STUR <Wt>, [<Cn|CSP>{, #<imm>}] // (PSTATE.C64 == '0')

STUR <Wt>, [<Xn|SP>{, #<imm>}] // (PSTATE.C64 == '1')

integer t = UInt(Rt); integer n = UInt(Rn); bits(64) offset = SignExtend(imm9, 64); datasize = 32; regsize = 32;

Assembler Symbols

<Wt>

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

<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.

<Cn|CSP>

Is the capability name of the base register or stack pointer, encoded in the "Rn" field.

<imm>

Is the optional signed immediate byte offset, in the range -256 to 255, defaulting to 0, encoded in the "imm9" field.

Operation

CheckCapabilitiesEnabled(); VirtualAddress base = AltBaseReg[n]; bits(64) addr = VAddress(base) + offset; VACheckAddress(base, addr, datasize DIV 8, CAP_PERM_STORE, AccType_NORMAL); bits(datasize) data = X[t]; Mem[addr, datasize DIV 8, AccType_NORMAL] = data;


Internal version only: isa v32.13, AdvSIMD v29.04, pseudocode morello-2022-01_rc2, capabilities morello-2022-01_rc2 ; Build timestamp: 2022-01-11T11:23

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