mulchw

Multiply Cross Halfword

mulchw RT, RA, RB

Multiply bottom half of RA by top half of RB.

Details

Multiplies the sign-extended bottom halfword of RA by the sign-extended top halfword of RB, storing the low 32 bits of the product in RT. This is a signed 16×16→32 multiply operation. No condition register or status flags are affected.

Pseudocode Operation

a ← EXTS(RA[16:31])
b ← EXTS(RB[0:15])
RT ← (a × b)[32:63]

Example

mulchw r3, r4, r5

Encoding

Binary Layout
4
0
RT
6
RA
11
RB
16
168
21
0
31
 
Format XO-form
Opcode 0x10000150
Extension Embedded

Operands

  • RT
    Target
  • RA
    Src A
  • RB
    Src B