val DecodeShift : bits(2) -> ShiftType
function DecodeShift op = {
match op {
0b00 => {
return(ShiftType_LSL)
},
0b01 => {
return(ShiftType_LSR)
},
0b10 => {
return(ShiftType_ASR)
},
0b11 => {
return(ShiftType_ROR)
},
_ => {
return(undefined : ShiftType)
}
}
}
Made from ScarletNX's Sail at 166ad3910f80. sail-arm's definitions are Arm's ASL in Sail (BSD 3-Clause Clear, license); ScarletNX's fixups are GPL-3.0-or-later.