This patch corrects the definition of the DINSM instruction. Specification for DINSM instruction for Mips64 says that size operand should be 2 <= size <= 64, but it is defined as uimm5_inssize_plus1 which gives range of 1 .. 32.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Can you add a test case along the lines of:
dinsm $4, $5, 31, 33
to test/MC/Mips/mips64r{2|6}/valid.s
I've noticed that the dext and dins family of instructions are not tested in those files.
Comment Actions
Should I add tests for dext family of instructions to a new patch? Or is it ok to add them to this patch?
Comment Actions
Adding tests for the dext/dins family of instructions should be submitted as a separate patch. This patch just requires tests for dinsm.
This should be 34, as 32 is a valid operand for uimm5_inssize_plus1. 34 is not valid for uimm5_inssize_plus1 but is valid by the ISA description of the instruction.