macchwu

Multiply Accumulate Cross Halfword Unsigned

macchwu RT, RA, RB

Unsigned Multiply Accumulate Cross Halfword.

Encoding

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

Operands

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

Example

macchwu r3, r4, r5

Related

More in Embedded

Reference

Not in Power ISA v3.1C

Description

Not in Power ISA v3.1C: this is an embedded-core instruction, and the encoding shown is binutils' (opcodes/ppc-opc.c), not the manual's. Unsigned multiply-accumulate of the low halfword of RA by the high halfword of RB, added to RT. The unsigned 32-bit product is added to the low 32 bits of RT, with wraparound on overflow. This is an embedded (e200/e500) instruction. No condition registers or XER fields are affected.

Operation

prod ← EXTZ(RA[48:63], 32) * EXTZ(RB[0:15], 32); RT[32:63] ← (RT[32:63] + prod[0:31]) mod 2^32