Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 894 Bytes

muls.adoc

File metadata and controls

46 lines (37 loc) · 894 Bytes

th.muls

Synopsis

Compute multiply-subtract result of double-word operands.

Mnemonic

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

This instruction computes the multiply-subtract 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])