summaryrefslogtreecommitdiff
path: root/test/MC
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2012-10-10 02:54:23 +0000
committerCraig Topper <craig.topper@gmail.com>2012-10-10 02:54:23 +0000
commitebf3a37c0a5cea1ded89750e88d672951bf133cc (patch)
tree9a63dffd340c739efe063a3bf1bae02fd307335b /test/MC
parenta5971e8c004c588a8dfa90da49986af60620189e (diff)
downloadllvm-ebf3a37c0a5cea1ded89750e88d672951bf133cc.tar.gz
llvm-ebf3a37c0a5cea1ded89750e88d672951bf133cc.tar.bz2
llvm-ebf3a37c0a5cea1ded89750e88d672951bf133cc.tar.xz
Test case for r165480.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165594 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r--test/MC/ARM/diagnostics.s10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/MC/ARM/diagnostics.s b/test/MC/ARM/diagnostics.s
index ad4d9ab9b5..d65cfd7a67 100644
--- a/test/MC/ARM/diagnostics.s
+++ b/test/MC/ARM/diagnostics.s
@@ -361,3 +361,13 @@
@ CHECK-ERRORS: error: invalid operand for instruction
@ CHECK-ERRORS: cps f,#1
@ CHECK-ERRORS: ^
+
+ @ Bad operands for msr
+ msr #0, #0
+ msr foo, #0
+@ CHECK-ERRORS: error: invalid operand for instruction
+@ CHECK-ERRORS: msr #0, #0
+@ CHECK-ERRORS: ^
+@ CHECK-ERRORS: error: invalid operand for instruction
+@ CHECK-ERRORS: msr foo, #0
+@ CHECK-ERRORS: ^