summaryrefslogtreecommitdiff
path: root/test/MC/ARM/thumb2-diagnostics.s
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2012-06-22 23:56:48 +0000
committerJim Grosbach <grosbach@apple.com>2012-06-22 23:56:48 +0000
commit70c9bf3c1a77b5707c92a7cfe74104c320480391 (patch)
treed0d2b02ab5d5f896404da77f350dea2c77617910 /test/MC/ARM/thumb2-diagnostics.s
parent4dbfdfba6c92b6224bf58364371569f5780844d3 (diff)
downloadllvm-70c9bf3c1a77b5707c92a7cfe74104c320480391.tar.gz
llvm-70c9bf3c1a77b5707c92a7cfe74104c320480391.tar.bz2
llvm-70c9bf3c1a77b5707c92a7cfe74104c320480391.tar.xz
ARM: Add a better diagnostic for some out of range immediates.
As an example of how the custom DiagnosticType can be used to provide better operand-mismatch diagnostics, add a custom diagnostic for the imm0_15 operand class used for several system instructions. Update the tests to expect the improved diagnostic. rdar://8987109 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159051 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ARM/thumb2-diagnostics.s')
-rw-r--r--test/MC/ARM/thumb2-diagnostics.s4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/MC/ARM/thumb2-diagnostics.s b/test/MC/ARM/thumb2-diagnostics.s
index e38f53c6cf..d94c686e2f 100644
--- a/test/MC/ARM/thumb2-diagnostics.s
+++ b/test/MC/ARM/thumb2-diagnostics.s
@@ -40,5 +40,5 @@
@ CHECK-ERRORS: error: invalid operand for instruction
@ CHECK-ERRORS: error: invalid operand for instruction
@ CHECK-ERRORS: error: invalid operand for instruction
-@ CHECK-ERRORS: error: invalid operand for instruction
-@ CHECK-ERRORS: error: invalid operand for instruction
+@ CHECK-ERRORS: error: immediate operand must be in the range [0,15]
+@ CHECK-ERRORS: error: immediate operand must be in the range [0,15]