Freescale Semiconductor SC140 specifications Dn + Da.L * Db.H → Dn, Imaclhuu Da,Db,Dn

Models: SC140

1 760
Download 760 pages 48.94 Kb
Page 497
Image 497

IMACLHUU

IMACLHUU Integer Multiply-Accumulate IMACLHUU

Lower Unsigned By Upper Unsigned (DALU)

Operation

Assembler Syntax

Dn + (Da.L * Db.H) → Dn

IMACLHUU Da,Db,Dn

Description

 

IMACLHUU Da,Db,Dn

 

Performs an unsigned integer multiplication of the 16-bit LP of one source data register (Da) with the 16-bit HP of another source data register (Db). It then adds the zero-extended 32-bit product to a destination data register (Dn). This instruction is optimized for multi-precision-multiplication support.

Status and Conditions that Affect Instruction

None.

Status and Conditions Changed by Instruction

Register Address

Bit Name

Description

Ln

L

Clears the Ln bit in the destination register.

EMR[2]

DOVF

Set if the result cannot be represented in 40 bits.

Example imaclhuu d3,d4,d0

Register/Memory Address

Before

D3

 

$00 0000 0002

D4

 

$FF FFC0 0000

L0:D0

 

$0:$00 0000 0001

EMR

 

–65,472$FFC0

x 2

$0002

–130,944$FF80

+1

$0001

-130,943$FF81

After

$0:$00 0001 FF81

$0000 0000

SC140 DSP Core Reference Manual

A-183

Page 497
Image 497
Freescale Semiconductor SC140 specifications Dn + Da.L * Db.H → Dn, Imaclhuu Da,Db,Dn