1use crate::rv_core::instruction::executor::prelude::*; 2 3pub fn add(R { rd, rs1, rs2 }: R, x: &mut IntegerRegisters) { 4 x[rd] = x[rs1].wrapping_add(x[rs2]); 5}