ISA & Assembly
What instructions does the RISC-V M extension add to the base integer instruction set?
- AFloating-point arithmetic
- BAtomic instructions
- CInteger multiplication and division
Show answer and explanation
Answer: C. Integer multiplication and division
RISC-V is a modular ISA that combines a small base integer set (RV32I or RV64I) with whatever extensions are needed. The M extension adds multiply and divide such as mul, div and rem; A adds atomic instructions; F and D add single- and double-precision floating point; and C adds 16-bit compressed instructions. A tiny microcontroller can implement only the base set while a general-purpose CPU includes many extensions.
- A. Floating point is the F and D extensions.
- B. Atomic instructions are the A extension.
- C. Correct. M stands for multiply.