MSUB
Multiply-Subtract.
This instruction is used by the alias MNEG
.
Syntax
MSUB
Wd
, Wn
, Wm
, Wa
; 32-bit general registers
MSUB
Xd
, Xn
, Xm
, Xa
; 64-bit general registers
Where:
Wd
-
Is the 32-bit name of the general-purpose destination register.
Wn
-
Is the 32-bit name of the first general-purpose source register holding the multiplicand.
Wm
-
Is the 32-bit name of the second general-purpose source register holding the multiplier.
Wa
-
Is the 32-bit name of the third general-purpose source register holding the minuend.
Xd
-
Is the 64-bit name of the general-purpose destination register.
Xn
-
Is the 64-bit name of the first general-purpose source register holding the multiplicand.
Xm
-
Is the 64-bit name of the second general-purpose source register holding the multiplier.
Xa
-
Is the 64-bit name of the third general-purpose source register holding the minuend.
Operation
Multiply-Subtract multiplies two register values, subtracts the product from a third register value, and writes the result to the destination register.
, where R
d = R
a - R
n * R
m
is either R
W
or X
.