aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vfmsub_vf.h
blob: bd968e3dd49795055e95ea174b5ca8781cd4d121 (plain)
1
2
3
4
5
6
7
8
// vfmsub: vd[i] = +(vd[i] * f[rs1]) - vs2[i]
VI_VFP_VF_LOOP
({
  vd = f32_mulAdd(vd, rs1, f32(vs2.v ^ F32_SIGN));
},
{
  vd = f64_mulAdd(vd, rs1, f64(vs2.v ^ F64_SIGN));
})