The Cortex-M4 Instruction Set
ARM DUI 0553A
Copyright © 2010 ARM. All rights reserved.
3-77
ID121610
Non-Confidential
3.6.2
UMULL, UMAAL, UMLAL
Unsigned Long Multiply, with optional Accumulate, using 32-bit operands and producing a
64-bit result.
Syntax
op
{
cond
}
RdLo
,
RdHi
,
Rn
,
Rm
where:
op
Is one of:
UMULL
Unsigned Long Multiply.
UMAAL
Unsigned Long Multiply with Accumulate Accumulate.
UMLAL
Unsigned Long Multiply, with Accumulate.
cond
Is an optional condition code, see
.
RdHi
,
RdLo
Are the destination registers. For
UMAAL
,
UMLAL
and
UMLAL
they also hold the
accumulating value.
Rn, Rm
Are registers holding the first and second operands.
Operation
These instructions interpret the values from
Rn
and
Rm
as unsigned 32-bit integers. The
UMULL
instruction:
•
Multiplies the two unsigned integers in the first and second operands.
•
Writes the least significant 32 bits of the result in
RdLo.
•
Writes the most significant 32 bits of the result in
RdHi
.
The
UMAAL
instruction:
•
Multiplies the two unsigned 32-bit integers in the first and second operands.
•
Adds the unsigned 32-bit integer in
RdHi
to the 64-bit result of the multiplication.
•
Adds the unsigned 32-bit integer in
RdLo
to the 64-bit result of the addition.
•
Writes the top 32-bits of the result to
RdHi.
•
Writes the lower 32-bits of the result to
RdLo
.
The
UMLAL
instruction:
•
multiplies the two unsigned integers in the first and second operands.
•
Adds the 64-bit result to the 64-bit unsigned integer contained in
RdHi
and
RdLo
.
•
Writes the result back to
RdHi
and
RdLo
.
Restrictions
In these instructions:
•
do not use SP and do not use PC.
•
RdHi
and
RdLo
must be different registers.
Condition flags
These instructions do not affect the condition code flags.