The patch implements microMIPSr6 LH, LHE, LHU and LHUE instructions.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
Patch D9189 implements microMIPS(R3) instructions while this patch implements R6.
These microMIPSR6 instructions LH, LHE, LHU and LHUE are identical to the microMIPS(R3) equivalents (opcodes are the same).
It seems that R6 implementation of these instructions will not be needed (only tests for microMIPS32R6 and microMIPS64R6).
Ok, in that case: The test cases LGTM and are ok to commit but the implementation is unnecessary and shouldn't be committed. Let me know if you find you need implementation changes.
Unnecessary implementation of LH, LHE, LHU and LHUE instructions is removed.
Implementation of mem_simm16gpr operand with operand check using PredicateMethod is left in patch.
Operands are tested with invalid tests.
Is it ok to commit?
Sorry for not noticing this one. LGTM with a couple nits
test/MC/Mips/micromips32r6/invalid.s | ||
---|---|---|
104–115 ↗ | (On Diff #40491) | Alignment of '# CHECK' |
test/MC/Mips/micromips64r6/invalid.s | ||
112–123 ↗ | (On Diff #40491) | Alignment of '# CHECK' |
test/MC/Mips/mips32r6/invalid.s | ||
22–27 ↗ | (On Diff #40491) | We should check lhe and lhue too. Likewise below |