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.
 
 
 
 
 
 

8 lines
175 B

P_RD_RS1_RS2_LOOP(16,16,16, {
if ((p_rs1 != INT16_MIN) | (p_rs2 != INT16_MIN)) {
p_rd = (p_rs1 * p_rs2) >> 15;
} else {
p_rd = INT16_MAX;
P.set_vxsat();
}
})