Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 1.34 KB

xtheadmac.adoc

File metadata and controls

43 lines (35 loc) · 1.34 KB

Multiply-accumulate instructions (XTheadMac)

Frozen
The XTheadMac extension is stable.

The XTheadMac ISA extension provides multiply-accumulate instructions.

Extension version: 1.0.

The table below gives an overview of the instructions:

RV32 RV64 Mnemonic Instruction

Y

Y

th.mula rd, rs1, rs2

[xtheadmac-insns-mula]

Y

Y

th.mulah rd, rs1, rs2

[xtheadmac-insns-mulah]

N

Y

th.mulaw rd, rs1, rs2

[xtheadmac-insns-mulaw]

Y

Y

th.muls rd, rs1, rs2

[xtheadmac-insns-muls]

Y

Y

th.mulsh rd, rs1, rs2

[xtheadmac-insns-mulsh]

Y

Y

th.mulsw rd, rs1, rs2

[xtheadmac-insns-mulsw]

Availability

The XTheadMac extension’s availability can be probed via the th.sxstatus.THEADISAEE bit (bit 22). The XTheadMac extension is available if and only if this bit is 1. Refer to [xtheadsxstatus] for more information about the th.sxstatus CSR.