← Home

Zmmul

Integer multiplication

Type: unprivileged

Versions

VersionStateRatified
1.0.0ratified2022-06

Description

The `Zmmul` extension implements the multiplication subset of the `M` extension. It adds `MUL`, `MULH`, `MULHU`, `MULHSU`, and (for RV64 only) `MULW`. The encodings are identical to those of the corresponding M-extension instructions. `M` implies `Zmmul`.

Note: The `Zmmul` extension enables low-cost implementations that require multiplication operations but not division. For many microcontroller applications, division operations are too infrequent to justify the cost of divider hardware. By contrast, multiplication operations are more frequent, making the cost of multiplier hardware more justifiable. Simple FPGA soft cores particularly benefit from eliminating division but retaining multiplication, since many FPGAs provide hardwired multipliers but require dividers be implemented in soft logic.

Instructions


Version af3eaf9+cheriot.f635218

Data from the RISC-V Unified Database, copyright RISC-V International and contributors.

CHERIoT extensions from the CHERIoT specification and Sail model, copyright Microsoft and the CHERIoT Platform contributors.

This site is provided as a community resource and is NOT affiliated with nor endorsed by RISC-V International.