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.
 
 
 
 
 
 

7 lines
145 B

require_rv32;
P_WIDEN_REDUCTION_CROSS_LOOP(32, 16, true, false, {
if (j & 1)
p_res -= p_rs1 * p_rs2;
else
p_res += p_rs1 * p_rs2;
})