CMP

Compare capabilities if the Capability Tag of the first source Capability register is not the same as the Capability Tag of the second source Capability register subtracts the Capability Tag of the first source Capability register from the Capability Tag of the second source Capability register and discards the result otherwise subtracts the Value field of the first source Capability register from the Value field of the second source Capability register and discards the result. The instruction updates the condition flags based on the result.

This is an alias of SUBS. This means:

313029282726252423222120191817161514131211109876543210
11000010111Cm100110CnRd

CMP <Cn>, <Cm>

is equivalent to

SUBS XZR, <Cn>, <Cm>

and is always the preferred disassembly.

Assembler Symbols

<Cn>

Is the capability name of the first source register, encoded in the "Cn" field.

<Cm>

Is the capability name of the second source register, encoded in the "Cm" field.

Operation

The description of SUBS gives the operational pseudocode for this instruction.


Internal version only: isa v32.13, AdvSIMD v29.04, pseudocode morello-2022-01_rc2, capabilities morello-2022-01_rc2 ; Build timestamp: 2022-01-11T11:23

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