Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 879 Bytes

mula.adoc

File metadata and controls

46 lines (37 loc) · 879 Bytes

th.mula

Synopsis

Compute multiply-add result of double-word operands.

Mnemonic

th.mula rd, rs1, rs2

Encoding
{reg:[
    { bits:  7, name: 0xb, attr: ['custom-0, 32 bit'] },
    { bits:  5, name: 'rd' },
    { bits:  3, name: 0x1, attr: ['Arithmetic'] },
    { bits:  5, name: 'rs1' },
    { bits:  5, name: 'rs2' },
    { bits:  2, name: 0x0 },
    { bits:  5, name: 0x04 },
]}
Description

This instruction computes the multiply-add result of the provided double-word operands.

Operation
M := reg[rs1] * reg[rs2]
reg[rd] := reg[rd] + M
Permission

This instruction can be executed in all privilege levels.

Exceptions

This instruction does not trigger any exceptions.

Included in
Extension

XTheadMac ([xtheadmac])