diff --git a/riscv/insns/pm2wsub_h.h b/riscv/insns/pm2wsub_h.h index 903cbe30..e960c404 100644 --- a/riscv/insns/pm2wsub_h.h +++ b/riscv/insns/pm2wsub_h.h @@ -1,7 +1,7 @@ require_rv32; P_WIDEN_REDUCTION_LOOP(32, 16, false, false, { if (j & 1) - p_res += p_rs1 * p_rs2; - else p_res -= p_rs1 * p_rs2; + else + p_res += p_rs1 * p_rs2; }) \ No newline at end of file diff --git a/riscv/insns/pm2wsuba_h.h b/riscv/insns/pm2wsuba_h.h index 600b77e2..dae5c0a7 100644 --- a/riscv/insns/pm2wsuba_h.h +++ b/riscv/insns/pm2wsuba_h.h @@ -1,7 +1,7 @@ require_rv32; P_WIDEN_REDUCTION_LOOP(32, 16, true, false, { if (j & 1) - p_res += p_rs1 * p_rs2; - else p_res -= p_rs1 * p_rs2; + else + p_res += p_rs1 * p_rs2; }) \ No newline at end of file