summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorOliver Stannard <oliver.stannard@arm.com>2017-10-03 14:38:52 +0000
committerOliver Stannard <oliver.stannard@arm.com>2017-10-03 14:38:52 +0000
commit0d5c792223592de1be70773683075d6dd30d5b63 (patch)
tree3155dd8d0a25de92070cc90cbd45ee666f7ef7b1 /llvm/test
parent41dfac3eb2f74339ed4a56211c91d7902453624d (diff)
downloadbcm5719-llvm-0d5c792223592de1be70773683075d6dd30d5b63.tar.gz
bcm5719-llvm-0d5c792223592de1be70773683075d6dd30d5b63.zip
[ARM] Use table-gen'd assembly operand diags in ARM asm parser
This switches the ARM AsmParser to use assembly operand diagnostics from tablegen, rather than a switch statement on the ARMMatchResultTy. It moves the existing diagnostic strings to tablegen, but adds no new ones, so this is NFC except for one diagnostic string that had an off-by-1 error in the hand-written switch statement. Differential revision: https://reviews.llvm.org/D31607 llvm-svn: 314804
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/MC/ARM/lsl-zero-errors.s2
-rw-r--r--llvm/test/MC/ARM/t2-modified-immediate-fixup-error2.s4
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/MC/ARM/lsl-zero-errors.s b/llvm/test/MC/ARM/lsl-zero-errors.s
index 03255ae3961..f6cf9aaa2b8 100644
--- a/llvm/test/MC/ARM/lsl-zero-errors.s
+++ b/llvm/test/MC/ARM/lsl-zero-errors.s
@@ -61,7 +61,7 @@
// CHECK-NONARM-NEXT: mov r0, pc, lsl #0
// CHECK-NONARM: invalid operand for instruction
// CHECK-NONARM: invalid operand for instruction
-// CHECK-NONARM: immediate operand must be in the range [255,65535]
+// CHECK-NONARM: immediate operand must be in the range [256,65535]
// CHECK-NONARM: error: invalid instruction, any one of the following would fix this:
// CHECK-NONARM-NEXT: mov pc, pc, lsl #0
// CHECK-NONARM: invalid operand for instruction
diff --git a/llvm/test/MC/ARM/t2-modified-immediate-fixup-error2.s b/llvm/test/MC/ARM/t2-modified-immediate-fixup-error2.s
index 4c0cd40fdcf..2ec2f7ed4d5 100644
--- a/llvm/test/MC/ARM/t2-modified-immediate-fixup-error2.s
+++ b/llvm/test/MC/ARM/t2-modified-immediate-fixup-error2.s
@@ -9,10 +9,10 @@
@ CHECK: error: invalid instruction, any one of the following would fix this:
@ CHECK: note: instruction requires: arm-mode
@ CHECK: note: invalid operand for instruction
-@ CHECK: note: immediate operand must be in the range [255,65535]
+@ CHECK: note: immediate operand must be in the range [256,65535]
mov r0, :lower16: sym0
@ CHECK: error: invalid instruction, any one of the following would fix this:
@ CHECK: note: instruction requires: arm-mode
@ CHECK: note: invalid operand for instruction
-@ CHECK: note: immediate operand must be in the range [255,65535]
+@ CHECK: note: immediate operand must be in the range [256,65535]
.equ sym0, 0x01abcdef
OpenPOWER on IntegriCloud