aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vfnmsac_vv.h
blob: 47db61d2d091f74f90b4697bd96c885734e27ce7 (plain)
1
2
3
4
5
6
7
8
9
10
11
// vfnmsac.vv vd, vs1, vs2, vm   # vd[i] = -(vs2[i] * vs1[i]) + vd[i]
VI_VFP_VV_LOOP
({
  vd = f16_mulAdd(f16(vs1.v ^ F16_SIGN), vs2, vd);
},
{
  vd = f32_mulAdd(f32(vs1.v ^ F32_SIGN), vs2, vd);
},
{
  vd = f64_mulAdd(f64(vs1.v ^ F64_SIGN), vs2, vd);
})