LDG

Load Allocation Tag loads an Allocation Tag from a memory address, generates an address with the Logical Address Tag generated from the loaded Allocation Tag, and writes the result to the destination register. The address used for the load is calculated from the source register and an immediate signed offset scaled by the Tag granule.

Integer
(Armv8.5)

313029282726252423222120191817161514131211109876543210
11011001011imm900XnXt

Integer

LDG <Xt>, [<Xn|SP>{, #<simm>}]

integer t = UInt(Xt); integer n = UInt(Xn); bits(64) offset = LSL(SignExtend(imm9, 64), LOG2_TAG_GRANULE);

Assembler Symbols

<Xt>

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

<Xn|SP>

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

<simm>

Is the optional signed immediate offset, a multiple of 16 in the range -4096 to 4080, defaulting to 0 and encoded in the "imm9" field.

Operation

bits(64) address; bits(4) tag; if n == 31 then CheckSPAlignment(); address = SP[]; else address = X[n]; address = address + offset; address = Align(address, TAG_GRANULE); tag = MemTag[address]; address = AddressWithAllocationTag(address, tag); X[t] = address;


Internal version only: isa v30.3, AdvSIMD v27.04, pseudocode v85-xml-00bet9_rc1_1, sve v8.5-00bet9_rc1 ; Build timestamp: 2018-12-12T11:50

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