aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vfmsub_vv.h
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/insns/vfmsub_vv.h')
-rw-r--r--riscv/insns/vfmsub_vv.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/riscv/insns/vfmsub_vv.h b/riscv/insns/vfmsub_vv.h
index f8e0b3d..3cac937 100644
--- a/riscv/insns/vfmsub_vv.h
+++ b/riscv/insns/vfmsub_vv.h
@@ -1,6 +1,9 @@
// vfmsub: vd[i] = +(vd[i] * vs1[i]) - vs2[i]
VI_VFP_VV_LOOP
({
+ vd = f16_mulAdd(vd, vs1, f16(vs2.v ^ F16_SIGN));
+},
+{
vd = f32_mulAdd(vd, vs1, f32(vs2.v ^ F32_SIGN));
},
{