maclhw

Multiply Accumulate Low Halfword

maclhw RT, RA, RB

Multiply bottom half of RA by bottom half of RB, add to RT.

Encoding

Binary Layout
4
0:5
RT
6:10
RA
11:15
RB
16:20
428
21:30
0
31
 
Format XO-form
Opcode 0x10000358
Extension Embedded

Operands

  • RT
    Acc/Dest
  • RA
    Src A
  • RB
    Src B

Example

maclhw r3, r4, r5

Related

More in Embedded

Reference

Description

Multiplies the low halfword (bits 16-31) of RA by the low halfword of RB as signed integers, then adds the 32-bit product to RT and stores the result in RT. This is part of the Embedded (SPE) category and does not affect any condition or status registers.

Operation

product ← EXTS(RA[16:31]) × EXTS(RB[16:31])
RT ← RT + product