Non-Confidential | ![]() | DUI0801J | ||
| ||||
Home > A64 General Instructions > CMN (shifted register) |
Compare Negative (shifted register).
This instruction is an alias of ADDS
(shifted register).
The equivalent instruction is ADDS WZR,
.Wn
, Wm
{, shift
#amount
}
CMN
Wn
, Wm
{, shift
#amount
} ; 32-bit
CMN
Xn
, Xm
{, shift
#amount
} ; 64-bit
Where:
Wn
Wm
amount
Depends on the instruction variant:
Xn
Xm
shift
LSL
, LSR
, or ASR
.
Compare Negative (shifted register) adds a register value and an optionally-shifted register value. It updates the condition flags based on the result, and discards the result.
, where R
n + shift
(R
m, amount
)
is either R
W
or
X
.