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

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