-WRITE_RD(sext_xlen(RS1 + RS2));
+WRITE_RD(sext_xlen(rv_add(RS1, RS2)));
-WRITE_RD(sext_xlen(RS1 + insn.i_imm()));
+WRITE_RD(sext_xlen(rv_add(RS1, insn.i_imm())));
require_rv64;
-WRITE_RD(sext32(insn.i_imm() + RS1));
+WRITE_RD(sext32(rv_add(insn.i_imm(), RS1)));
return y;
}
*/
+reg_t sv_proc_t::rv_add(reg_t lhs, reg_t rhs)
+{
+ return lhs + rhs;
+}
+
//reg_t (sext32)(sv_reg_t &v);
reg_t (zext32)(reg_t v);
+ reg_t rv_add(reg_t lhs, reg_t rhs);
+
#include "sv_insn_decl.h"
};