Non-Confidential | ![]() | DUI0801J | ||
| ||||
Home > A64 General Instructions > SUBS (shifted register) |
Subtract (shifted register), setting flags.
This instruction is used by the aliases:
CMP
(shifted register).NEGS
.
SUBS
Wd
, Wn
, Wm
{, shift
#amount
} ; 32-bit
SUBS
Xd
, Xn
, Xm
{, shift
#amount
} ; 64-bit
Where:
Wd
Wn
Wm
amount
Depends on the instruction variant:
Xd
Xn
Xm
shift
LSL
, LSR
, or ASR
.
Subtract (shifted register), setting flags, subtracts an optionally-shifted register value from a register value, and writes the result to the destination register. It updates the condition flags based on the result.
, where
R
d = R
n - shift
(R
m, amount
)
is either R
W
or X
.