subp

Subtract Pointers

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

Subtracts pointers ignoring Tags.

Details

The Subtract Pointers instruction subtracts pointers ignoring Tags.

Pseudocode Operation

Xd ← Xn - Xm
// Flags affected: N, Z, C, V

Example

SUBP x0, x1, x2

Encoding

Binary Layout
10011010000
Xm
000000
Xn
Xd
 
Format Data Processing
Opcode 0x9A000000
Extension MTE (Memory Tagging)

Operands

  • Xd
    Destination 64-bit integer register
  • Xn
    Ptr 1
  • Xm
    Ptr 2