summaryrefslogtreecommitdiff
path: root/test/MC
diff options
context:
space:
mode:
authorRichard Barton <richard.barton@arm.com>2012-06-14 10:48:04 +0000
committerRichard Barton <richard.barton@arm.com>2012-06-14 10:48:04 +0000
commita1c7367a5bed459acc88e3ea2a482b4b5dac942a (patch)
treef2ba548b8fbaac6fcde2f28896ee48d62ab1a8cd /test/MC
parentefc967e04459753a588ebf5820e526d790fe1cfa (diff)
downloadllvm-a1c7367a5bed459acc88e3ea2a482b4b5dac942a.tar.gz
llvm-a1c7367a5bed459acc88e3ea2a482b4b5dac942a.tar.bz2
llvm-a1c7367a5bed459acc88e3ea2a482b4b5dac942a.tar.xz
Replace assertion failure for badly formatted CPS instrution with error message.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158445 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r--test/MC/ARM/diagnostics.s6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/MC/ARM/diagnostics.s b/test/MC/ARM/diagnostics.s
index 7da79c31dc..117c8514f3 100644
--- a/test/MC/ARM/diagnostics.s
+++ b/test/MC/ARM/diagnostics.s
@@ -315,3 +315,9 @@
@ CHECK-ERRORS: error: coprocessor option must be an immediate in range [0, 255]
@ CHECK-ERRORS: ldc2 p2, c8, [r1], { -1 }
@ CHECK-ERRORS: ^
+
+ @ Bad CPS instruction format.
+ cps f,#1
+@ CHECK-ERRORS: error: invalid operand for instruction
+@ CHECK-ERRORS: cps f,#1
+@ CHECK-ERRORS: ^