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