[PATCH] D10955: [mips][microMIPS] Add microMIPS32r6 and microMIPS64r6 tests for existing 16-bit ADDIUR1SP, ADDIUR2, ADDIUS5 and ADDIUSP instructions

Daniel Sanders via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 13 05:57:51 PDT 2015


dsanders accepted this revision.
dsanders added a comment.
This revision is now accepted and ready to land.

LGTM, possibly with a couple nits.


================
Comment at: test/MC/Mips/micromips32r6/invalid.s:6-7
@@ +5,4 @@
+  addiur1sp $7, 241        # CHECK: :[[@LINE]]:{{[0-9]+}}: error: misaligned immediate operand value
+  addiur1sp $8, 240        # CHECK: :[[@LINE]]:{{[0-9]+}}: error: invalid operand for instruction
+  addiur2 $9, $7, -1       # CHECK: :[[@LINE]]:{{[0-9]+}}: error: invalid operand for instruction
+  addiur2 $6, $7, 10       # CHECK: :[[@LINE]]:{{[0-9]+}}: error: immediate operand value out of range
----------------
Should these (and the one on line 4) be:
  error: immediate operand value out of range
If so, they should be in invalid-wrong-error.s. If the current error is the one we want then it's ok here.

================
Comment at: test/MC/Mips/micromips64r6/invalid.s:6-7
@@ +5,4 @@
+  addiur1sp $7, 241        # CHECK: :[[@LINE]]:{{[0-9]+}}: error: misaligned immediate operand value
+  addiur1sp $8, 240        # CHECK: :[[@LINE]]:{{[0-9]+}}: error: invalid operand for instruction
+  addiur2 $9, $7, -1       # CHECK: :[[@LINE]]:{{[0-9]+}}: error: invalid operand for instruction
+  addiur2 $6, $7, 10       # CHECK: :[[@LINE]]:{{[0-9]+}}: error: immediate operand value out of range
----------------
Likewise.


http://reviews.llvm.org/D10955





More information about the llvm-commits mailing list