Spike, a RISC-V ISA Simulator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

10 lines
216 B

require_rv64;
P_RD_RS1_RS2_LOOP(32,32,32, {
if ((p_rs1 != INT32_MIN) | (p_rs2 != INT32_MIN)) {
p_rd = ((int64_t)p_rs1 * (int64_t)p_rs2) >> 31;
} else {
p_rd = INT32_MAX;
P.VU.vxsat->write(1);
}
}
)