aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vssrl_vi.h
blob: 8a10df018469cffd712d17a9a61311332741fa20 (plain)
1
2
3
4
5
6
7
8
9
// vssra.vi vd, vs2, simm5
VRM xrm = P.VU.get_vround_mode();
VI_VI_ULOOP
({
  int sh = simm5 & (sew - 1) & 0x1f;

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