16.46 CINC

Conditional Increment.

This instruction is an alias of CSINC.

The equivalent instruction is CSINC Wd, Wn, Wn, invert(cond).

Syntax

CINC Wd, Wn, cond ; 32-bit

CINC Xd, Xn, cond ; 64-bit

Where:

Wd
Is the 32-bit name of the general-purpose destination register.
Wn
Is the 32-bit name of the general-purpose source register.
Xd
Is the 64-bit name of the general-purpose destination register.
Xn
Is the 64-bit name of the general-purpose source register.
cond
Is one of the standard conditions, excluding AL and NV.

Operation

Conditional Increment returns, in the destination register, the value of the source register incremented by 1 if the condition is TRUE, and otherwise returns the value of the source register.

Rd = if cond then Rn+1 else Rn, where R is either W or X.

Non-ConfidentialPDF file icon PDF versionARM 100069_0608_00_en
Copyright © 2014–2017 ARM Limited or its affiliates. All rights reserved.