Implement 16-bit microMIPS add immediate unsigned word 5-bit register select instruction - ADDIUS5.
|13 ↗||(On Diff #14105)|
I think that you don't need to define EncoderMethod, because this method (getSImm5Addius5Value) only truncates operand to 4 bits. The pattern for this operand (which I suppose will be added in one of the future patches) will ensure that operand is 4 bits.
|12 ↗||(On Diff #14105)|
You should also check whether the error messages are issued when the operand is out of range.