c.mul

Multiply, 16-bit encoding

This instruction is defined by:

Encoding

svg

Synopsis

Multiplies XLEN bits of the source operands from rsd' and xs2' and writes the lowest XLEN bits of the result to rsd'.

Access

M HS U VS VU

Always

Always

Always

Always

Always

Decode Variables

Bits<3> xd = $encoding[9:7];
Bits<3> xs2 = $encoding[4:2];

Execution

  • Pruned, XLEN == 64

  • Original

X[creg2reg(xd)] = X[creg2reg(xd)] * X[creg2reg(xs2)];
if (implemented?(ExtensionName::C) && MISA_CSR_IMPLEMENTED && (CSR[misa].C == 1'b0)) {
  reserved_instruction($encoding);
}
X[creg2reg(xd)] = X[creg2reg(xd)] * X[creg2reg(xs2)];