eeric/rv_core/instruction/executor/m/
mulw.rs

1use crate::rv_core::instruction::executor::prelude::*;
2
3pub fn mulw(R { rd, rs1, rs2 }: R, x: &mut IntegerRegisters) {
4    let result = (x[rs1] as u32).wrapping_mul(x[rs2] as u32);
5    x[rd] = result as u64;
6}