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