@whitequark if it is a shift where both the value and the shift amount are in registers, both quantities will have the same number of bits. If the shift amount is an immediate, then the number of bits available for the shift amount will match whatever the bit width for immediates is in that ISA, just to keep the decode easy.