You copied the Doc URL to your clipboard.

13.131 SMUSD

Dual 16-bit Signed Multiply with Subtraction of products, and optional exchange of operand halves.

Syntax

SMUSD{X}{cond} {Rd}, Rn, Rm

where:

X

is an optional parameter. If X ispresent, the most and least significant halfwords of the secondoperand are exchanged before the multiplications occur.

cond

is an optional condition code.

Rd

is the destination register.

Rn, Rm

are the registers holding the operands.

Operation

SMUSD multiplies the bottom halfwordof Rn with the bottom halfword of Rm,and the top halfword of Rn withthe top halfword of Rm. It thensubtracts the second product from the first, and stores the differenceto Rd.

Register restrictions

You cannot use PC for any operand.

You can use SP in A32 instructions but this is deprecated. You cannot use SP in T32 instructions.

Availability

The 32-bit instruction is available in A32 and T32.

There is no 16-bit version of this instruction in T32.

Example

    SMUSDXNE    r0, r1, r2

Related reference

Was this page helpful? Yes No