Store Allocation Tag and Pair of registers stores an Allocation Tag and two 64-bit doublewords to memory, from two registers. The address used for the store is calculated from the base register and an immediate signed offset scaled by the Tag granule. The Allocation Tag is calculated from the Logical Address Tag in the base register.
This instruction generates an Unchecked access.
It has encodings from 3 classes: Post-index , Pre-index and Signed offset
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 |
0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | simm7 | Xt2 | Xn | Xt | ||||||||||||||||||
opc | VR | L |
if !IsFeatureImplemented(FEAT_MTE) then UNDEFINED; integer n = UInt(Xn); integer t = UInt(Xt); integer t2 = UInt(Xt2); bits(64) offset = LSL(SignExtend(simm7, 64), LOG2_TAG_GRANULE); boolean writeback = TRUE; boolean postindex = TRUE;
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 |
0 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | simm7 | Xt2 | Xn | Xt | ||||||||||||||||||
opc | VR | L |
if !IsFeatureImplemented(FEAT_MTE) then UNDEFINED; integer n = UInt(Xn); integer t = UInt(Xt); integer t2 = UInt(Xt2); bits(64) offset = LSL(SignExtend(simm7, 64), LOG2_TAG_GRANULE); boolean writeback = TRUE; boolean postindex = FALSE;
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 |
0 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | simm7 | Xt2 | Xn | Xt | ||||||||||||||||||
opc | VR | L |
if !IsFeatureImplemented(FEAT_MTE) then UNDEFINED; integer n = UInt(Xn); integer t = UInt(Xt); integer t2 = UInt(Xt2); bits(64) offset = LSL(SignExtend(simm7, 64), LOG2_TAG_GRANULE); boolean writeback = FALSE; boolean postindex = FALSE;
<Xt1> |
Is the 64-bit name of the first general-purpose register to be transferred, encoded in the "Xt" field. |
<Xt2> |
Is the 64-bit name of the second general-purpose register to be transferred, encoded in the "Xt2" field. |
<Xn|SP> |
Is the 64-bit name of the general-purpose base register or stack pointer, encoded in the "Xn" field. |
bits(64) address; bits(64) address2; if n == 31 then CheckSPAlignment(); address = SP[]; else address = X[n, 64]; boolean devstoreunpred = FALSE; AccessDescriptor accdesc = CreateAccDescLDGSTG(MemOp_STORE, devstoreunpred); if !postindex then address = AddressAdd(address, offset, accdesc); if !IsAligned(address, TAG_GRANULE) then AArch64.Abort(address, AlignmentFault(accdesc)); address2 = AddressIncrement(address, 8, accdesc); Mem[address , 8, accdesc] = X[t, 64]; Mem[address2, 8, accdesc] = X[t2, 64]; AArch64.MemTag[address, accdesc] = AArch64.AllocationTagFromAddress(address); if writeback then if postindex then address = AddressAdd(address, offset, accdesc); if n == 31 then SP[] = address; else X[n, 64] = address;
Internal version only: aarchmrs v2024-03_relA, pseudocode v2024-03_rel, sve v2024-03_rel ; Build timestamp: 2024-03-26T09:45
Copyright © 2010-2024 Arm Limited or its affiliates. All rights reserved. This document is Non-Confidential.