RISC-V ISA Explorer · Single-Letter Extensions

M: Integer Multiply/Divide

Ratified 2019-12 · version 2.0.0

Integer multiply and divide instructions, kept out of the base so minimal cores can leave them out.

Typical use: Hardware multiplication and division

Specification

Open M in the explorer

Dependencies

Requires

Instructions (13)

MnemonicNameEncodingMatchMask
DIVSigned division0000001----------100-----01100110x20040330xfe00707f
DIVUUnsigned division0000001----------101-----01100110x20050330xfe00707f
DIVUWUnsigned 32-bit division0000001----------101-----01110110x200503b0xfe00707f
DIVWSigned 32-bit division0000001----------100-----01110110x200403b0xfe00707f
MULSigned multiply0000001----------000-----01100110x20000330xfe00707f
MULHSigned multiply high0000001----------001-----01100110x20010330xfe00707f
MULHSUSigned/unsigned multiply high0000001----------010-----01100110x20020330xfe00707f
MULHUUnsigned multiply high0000001----------011-----01100110x20030330xfe00707f
MULWSigned 32-bit multiply0000001----------000-----01110110x200003b0xfe00707f
REMSigned remainder0000001----------110-----01100110x20060330xfe00707f
REMUUnsigned remainder0000001----------111-----01100110x20070330xfe00707f
REMUWUnsigned 32-bit remainder0000001----------111-----01110110x200703b0xfe00707f
REMWSigned 32-bit remainder0000001----------110-----01110110x200603b0xfe00707f