C.MUL

Compressed Multiply

C.MUL rd', rs2'

Performs 32-bit multiplication (rd = rd * rs2) in 16-bit encoding.

Details

Multiplies rd′ and rs2′, writing the lower XLEN bits of the product to rd′ (Zcb).

Pseudocode Operation

R[rd'] = R[rd'] * R[rs2'];

Example

C.MUL rd', rs2'

Encoding

Binary Layout
100111
15:10
rd'
9:7
10
6:5
rs2'
4:2
01
1:0
 
Format CA
Opcode 01
Extension Zcb

Operands

  • rd'
    Dest/Src1
  • rs2'
    Source register 2 (3-bit compressed)