subg
Subtract with Tag
SUBG <Xd|SP>, <Xn|SP>, #<uimm6>, #<uimm4>
Subtracts an immediate from an address, modifying the Allocation Tag (MTE).
Details
The Subtract with Tag instruction subtracts an immediate from an address, modifying the Allocation Tag (MTE).
Pseudocode Operation
Xd ← Xn - uimm6
// Flags affected: N, Z, C, V
Example
SUBG x0, x1, #8, #3
Encoding
Binary Layout
11010001
00
uimm6
00
uimm4
Xn
Xd
Operands
-
Xd
Destination 64-bit integer register -
Xn
First source / base 64-bit integer register -
uimm6
Address Offset -
uimm4
Tag Offset