summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/ARM
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/MC/ARM')
-rw-r--r--llvm/test/MC/ARM/diagnostics.s6
-rw-r--r--llvm/test/MC/ARM/ldrd-strd-gnu-bad-inst.s16
-rw-r--r--llvm/test/MC/ARM/thumb-diagnostics.s9
-rw-r--r--llvm/test/MC/ARM/thumb2-diagnostics.s6
4 files changed, 29 insertions, 8 deletions
diff --git a/llvm/test/MC/ARM/diagnostics.s b/llvm/test/MC/ARM/diagnostics.s
index 92272f68da5..42e8b6a6128 100644
--- a/llvm/test/MC/ARM/diagnostics.s
+++ b/llvm/test/MC/ARM/diagnostics.s
@@ -736,3 +736,9 @@ foo2:
@ CHECK-ERRORS: error: immediate operand must an even number in the range [0, 30]
@ CHECK-ERRORS: error: immediate operand must a number in the range [0, 255]
@ CHECK-ERRORS: error: immediate operand must an even number in the range [0, 30]
+
+ @ Generic error for too few operands
+ adds
+ adds r0
+@ CHECK-ERRORS: error: too few operands for instruction
+@ CHECK-ERRORS: error: too few operands for instruction
diff --git a/llvm/test/MC/ARM/ldrd-strd-gnu-bad-inst.s b/llvm/test/MC/ARM/ldrd-strd-gnu-bad-inst.s
index 49c7eb12a91..e080538eeac 100644
--- a/llvm/test/MC/ARM/ldrd-strd-gnu-bad-inst.s
+++ b/llvm/test/MC/ARM/ldrd-strd-gnu-bad-inst.s
@@ -2,26 +2,26 @@
.text
.thumb
-@ CHECK: error: invalid instruction
+@ CHECK: error: too few operands for instruction
strd
-@ CHECK: error: invalid instruction
+@ CHECK: error: too few operands for instruction
ldrd
-@ CHECK: error: invalid instruction
+@ CHECK: error: too few operands for instruction
strd r0
-@ CHECK: error: invalid instruction
+@ CHECK: error: too few operands for instruction
ldrd r0
@ CHECK: error: invalid instruction
strd s0, [r0]
@ CHECK: error: invalid instruction
ldrd s0, [r0]
.arm
-@ CHECK: error: invalid instruction
+@ CHECK: error: too few operands for instruction
strd
-@ CHECK: error: invalid instruction
+@ CHECK: error: too few operands for instruction
ldrd
-@ CHECK: error: invalid instruction
+@ CHECK: error: too few operands for instruction
strd r0
-@ CHECK: error: invalid instruction
+@ CHECK: error: too few operands for instruction
ldrd r0
@ CHECK: error: invalid instruction
strd s0, [r0]
diff --git a/llvm/test/MC/ARM/thumb-diagnostics.s b/llvm/test/MC/ARM/thumb-diagnostics.s
index dd543b1ac80..51658cec48a 100644
--- a/llvm/test/MC/ARM/thumb-diagnostics.s
+++ b/llvm/test/MC/ARM/thumb-diagnostics.s
@@ -351,3 +351,12 @@
@ CHECK-ERRORS: error: invalid instruction
@ CHECK-ERRORS: error: invalid instruction
@ CHECK-ERRORS: error: invalid instruction
+
+@------------------------------------------------------------------------------
+@ Generic error for too few operands
+@------------------------------------------------------------------------------
+
+ adds
+ adds r0
+@ CHECK-ERRORS: error: too few operands for instruction
+@ CHECK-ERRORS: error: too few operands for instruction
diff --git a/llvm/test/MC/ARM/thumb2-diagnostics.s b/llvm/test/MC/ARM/thumb2-diagnostics.s
index 851afb81633..b784d79fa43 100644
--- a/llvm/test/MC/ARM/thumb2-diagnostics.s
+++ b/llvm/test/MC/ARM/thumb2-diagnostics.s
@@ -145,3 +145,9 @@ foo2:
@ CHECK-ERRORS-V7: error: instruction requires: arm-mode
@ CHECK-ERRORS-V8: error: invalid instruction
@ CHECK-ERRORS-V8: error: invalid instruction
+
+ @ Generic error for too few operands
+ adds
+ adds r0
+@ CHECK-ERRORS: error: too few operands for instruction
+@ CHECK-ERRORS: error: too few operands for instruction
OpenPOWER on IntegriCloud