aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vfmsac_vv.h
blob: 9b4ed9f19f6a828bf3d4c3a23b4526845eec34d9 (plain)
1
2
3
4
5
6
7
8
// vfmsac: vd[i] = +(vs1[i] * vs2[i]) - vd[i]
VI_VFP_VV_LOOP
({
  vd = f32_mulAdd(vs1, vs2, f32(vd.v ^ F32_SIGN));
},
{
  vd = f64_mulAdd(vs1, vs2, f64(vd.v ^ F64_SIGN));
})