aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vdiv_vx.h
blob: 2b93eace5919e406e8d0371e3edb2b97c2af1c35 (plain)
1
2
3
4
5
6
7
8
9
10
// vdiv.vx vd, vs2, rs1
VI_VX_LOOP
({
  if (rs1 == 0)
    vd = -1;
  else if (vs2 == (INT64_MIN >> (64 - sew)) && rs1 == -1)
    vd = vs2;
  else
    vd = vs2 / rs1;
})