aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vdiv_vv.h
blob: 67da162d71121d506774df5d3d859df64657d53c (plain)
1
2
3
4
5
6
7
8
9
10
// vdiv.vv vd, vs2, vs1
VI_VV_LOOP
({
  if (vs1 == 0)
    vd = -1;
  else if (vs2 == -(1 << (sew - 1)) && vs1 == -1)
    vd = vs2;
  else
    vd = vs2 / vs1;
})