| |||
| Home > ARM and Thumb Instructions > Multiply instructions > SMLAD and SMLSD | |||
Dual 16-bit Signed Multiply with Addition or Subtraction of products and 32-bit accumulation.
{X}{opcond}Rd,Rn,Rm,Ra
where:
opis one of:
SMLADDual multiply, accumulate sum of products.
SMLSDDual multiply, accumulate difference of products.
condis an optional condition code.
Xis
an optional parameter. If X is present, the
most and least significant halfwords of the second operand are exchanged
before the multiplications occur.
Rdis the destination register.
Rn, Rmare the registers holding the operands.
Rais the register holding the accumulate operand.
SMLAD multiplies the bottom halfword of with
the bottom halfword of Rn,
and the top halfword of Rm with
the top halfword of Rn.
It then adds both products to the value in Rm and
stores the sum to Ra.Rd
SMLSD multiplies the bottom halfword of with
the bottom halfword of Rn,
and the top halfword of Rm with
the top halfword of Rn.
It then subtracts the second product from the first, adds the difference
to the value in Rm,
and stores the result to Ra.Rd
You cannot use PC for any register.
You can use SP in ARM instructions but these are deprecated in ARMv6T2 and above. You cannot use SP in Thumb instructions.
These ARM instructions are available in ARMv6 and above.
These 32-bit Thumb instructions are available in ARMv6T2 and above. For the ARMv7-M architecture, they are only available in an ARMv7E-M implementation.
There are no 16-bit Thumb versions of these instructions.