ARM Instruction Reference
4-42
Copyright © 2000, 2001 ARM Limited. All rights reserved.
ARM DUI 0068B
4.4.2
UMULL, UMLAL, SMULL and SMLAL
Unsigned and signed long multiply and multiply accumulate (32-bit by 32-bit, 64-bit
accumulate or result).
Syntax
Op
{
cond
}{S}
RdLo
,
RdHi
,
Rm
,
Rs
where:
Op
is one of
UMULL
,
UMLAL
,
SMULL
, or
SMLAL
.
cond
is an optional condition code (see
Conditional execution
on page 4-4).
S
is an optional suffix. If
S
is specified, the condition code flags are updated
on the result of the operation (see
Conditional execution
on page 4-4).
RdLo
,
RdHi
are ARM registers for the result. For
UMLAL
and
SMLAL
they also hold the
accumulating value.
Rm, Rs
are ARM registers holding the operands.
r15 cannot be used for any of
RdHi
,
RdLo
,
Rm
, or
Rs
.
RdLo
,
RdHi
, and
Rm
must all be different registers.
Usage
The
UMULL
instruction interprets the values from
Rm
and
Rs
as unsigned integers. It
multiplies these integers and places the least significant 32 bits of the result in
RdLo
, and
the most significant 32 bits of the result in
RdHi
.
The
UMLAL
instruction interprets the values from
Rm
and
Rs
as unsigned integers. It
multiplies these integers, and adds the 64-bit result to the 64-bit unsigned integer
contained in
RdHi
and
RdLo
.
The
SMULL
instruction interprets the values from
Rm
and
Rs
as two’s complement signed
integers. It multiplies these integers and places the least significant 32 bits of the result
in
RdLo
, and the most significant 32 bits of the result in
RdHi
.
The
SMLAL
instruction interprets the values from
Rm
and
Rs
as two’s complement signed
integers. It multiplies these integers, and adds the 64-bit result to the 64-bit signed
integer contained in
RdHi
and
RdLo
.
Содержание Developer Suite
Страница 10: ...Preface x Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 110: ...Assembler Reference 3 32 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 185: ...ARM Instruction Reference ARM DUI 0068B Copyright 2000 2001 ARM Limited All rights reserved 4 75 Example MSR CPSR_f r5 ...
Страница 238: ...Thumb Instruction Reference 5 44 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 282: ...Vector Floating point Programming 6 44 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...
Страница 360: ...Index Index 6 Copyright 2000 2001 ARM Limited All rights reserved ARM DUI 0068B ...