aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vssra_vv.h
blob: 7bbc766ff18d870eefb7feb030fe2fe680333fd7 (plain)
1
2
3
4
5
6
7
8
9
10
// vssra.vv vd, vs2, vs1
VRM xrm = P.VU.get_vround_mode();
VI_VV_LOOP
({
  int sh = vs1 & (sew - 1);
  int128_t val = vs2;

  INT_ROUNDING(val, xrm, sh);
  vd = val >> sh;
})