summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-08-16 21:11:21 +0000
committerJim Grosbach <grosbach@apple.com>2011-08-16 21:11:21 +0000
commitc2408d3ce5fcd1fd4861772fdbe3b6447836e254 (patch)
tree240ca925c5a453dcd2852c17ed48d35b1065aa0f /test
parentd6a49773ffbe35847baa7a68773ebbb326120dd0 (diff)
downloadllvm-c2408d3ce5fcd1fd4861772fdbe3b6447836e254.tar.gz
llvm-c2408d3ce5fcd1fd4861772fdbe3b6447836e254.tar.bz2
llvm-c2408d3ce5fcd1fd4861772fdbe3b6447836e254.tar.xz
Add testcase for r137746.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137754 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/MC/ARM/thumb-diagnostics.s10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/MC/ARM/thumb-diagnostics.s b/test/MC/ARM/thumb-diagnostics.s
new file mode 100644
index 0000000000..c8528c5856
--- /dev/null
+++ b/test/MC/ARM/thumb-diagnostics.s
@@ -0,0 +1,10 @@
+@ RUN: not llvm-mc -triple=thumbv6-apple-darwin < %s 2> %t
+@ RUN: FileCheck --check-prefix=CHECK-ERRORS < %t %s
+
+@ Check for various assembly diagnostic messages on invalid input.
+
+@ ADD instruction w/o 'S' suffix.
+ add r1, r2, r3
+@ CHECK-ERRORS: error: invalid instruction
+@ CHECK-ERRORS: add r1, r2, r3
+@ CHECK-ERRORS: ^