Implement 16-bit microMIPS add immediate unsigned word 5-bit register select instruction - ADDIUS5.
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/Target/Mips/MicroMipsInstrInfo.td | ||
---|---|---|
13 | 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. | |
test/MC/Mips/micromips-16-bit-instructions.s | ||
12 | You should also check whether the error messages are issued when the operand is out of range. |
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.