aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/srli.h
blob: 5378fd1e57118756fbf8574ff5ddeeeb5c7ed8d2 (plain)
1
2
3
4
5
6
7
8
if(xpr64)
  RD = RS1 >> SHAMT;
else
{
  if(SHAMT & 0x20)
    throw trap_illegal_instruction;
  RD = sext32((uint32_t)RS1 >> SHAMT);
}