Unofficial mirror. This is a community mirror of Jon's Arm Reference by Jon Palmisciano, preserved after the original was asked to shut down on 4 December 2026. Hosted at arm.3nd3r.net. Not affiliated with Arm or Jon Palmisciano. Official documentation is at developer.arm.com.

← Home

GMI

Tag mask insert

This instruction inserts the tag in the first source register into the excluded set specified in the second source register, writing the new excluded set to the destination register.

Integer class

(FEAT_MTE)

313029282726252423222120191817161514131211109876543210
10011010110Rm000101RnRd
sfSopcode

Encoding

GMI <Xd>, <Xn|SP>, <Xm>

Decode

if !IsFeatureImplemented(FEAT_MTE) then EndOfDecode(Decode_UNDEF); end; let d : integer{} = UInt(Rd); let n : integer{} = UInt(Rn); let m : integer{} = UInt(Rm);

Assembler Symbols

<Xd>

Is the 64-bit name of the general-purpose destination register, encoded in the "Rd" field.

<Xn|SP>

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

<Xm>

Is the 64-bit name of the second general-purpose source register, encoded in the "Rm" field.

Operation

let address : bits(64) = if n == 31 then SP{64}() else X{64}(n); var mask : bits(64) = X{64}(m); let tag : bits(4) = AArch64_AllocationTagFromAddress(address); mask[UInt(tag)] = '1'; X{64}(d) = mask;


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.