Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 885 Bytes

mulaw.adoc

File metadata and controls

46 lines (37 loc) · 885 Bytes

th.mulaw

Synopsis

Compute multiply-add result of word operands.

Mnemonic

th.mulaw 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: 0x2 },
    { bits:  5, name: 0x04 },
]}
Description

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

Operation
M := sext.w(reg[rs1]) * sext.w(reg[rs2])
reg[rd] := sext.w(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])