aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vdivu_vx.h
blob: ce3e9644c25d83effd3f5d8852158fde12d20df1 (plain)
1
2
3
4
5
6
7
8
// vdivu.vx vd, vs2, rs1
VI_VX_ULOOP
({
  if (rs1 == 0)
    vd = -1;
  else
    vd = vs2 / rs1;
})