summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/ARM/diagnostics.s
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
commitb0ec375b96260aa2235ada67c5136c999c98389f (patch)
tree1fd194b3c1b304f5eb62e6b2008421b5352a3255 /llvm/test/MC/ARM/diagnostics.s
parentac96b764ea415c673ae6fde6a8f20516e184a7b8 (diff)
downloadbcm5719-llvm-b0ec375b96260aa2235ada67c5136c999c98389f.tar.gz
bcm5719-llvm-b0ec375b96260aa2235ada67c5136c999c98389f.zip
Replace assertion failure for badly formatted CPS instrution with error message.
llvm-svn: 158445
Diffstat (limited to 'llvm/test/MC/ARM/diagnostics.s')
-rw-r--r--llvm/test/MC/ARM/diagnostics.s6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/MC/ARM/diagnostics.s b/llvm/test/MC/ARM/diagnostics.s
index 7da79c31dc3..117c8514f3a 100644
--- a/llvm/test/MC/ARM/diagnostics.s
+++ b/llvm/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: ^
OpenPOWER on IntegriCloud