aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/ARM/thumb-diagnostics.s
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-08-23 18:15:37 +0000
committerJim Grosbach <grosbach@apple.com>2011-08-23 18:15:37 +0000
commit1e84f19337d44c04e74af4fb005550b525ef60e5 (patch)
treeb4ebb5c00ab7bc6f3cb01ff0b34c434ec1dbc111 /test/MC/ARM/thumb-diagnostics.s
parentaa875f8c6fdf3a7a26ccc381cf8ecd2b69678dad (diff)
downloadexternal_llvm-1e84f19337d44c04e74af4fb005550b525ef60e5.zip
external_llvm-1e84f19337d44c04e74af4fb005550b525ef60e5.tar.gz
external_llvm-1e84f19337d44c04e74af4fb005550b525ef60e5.tar.bz2
Thumb parsing and encoding for STM.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138345 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ARM/thumb-diagnostics.s')
-rw-r--r--test/MC/ARM/thumb-diagnostics.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/MC/ARM/thumb-diagnostics.s b/test/MC/ARM/thumb-diagnostics.s
index 55b062e..604127a 100644
--- a/test/MC/ARM/thumb-diagnostics.s
+++ b/test/MC/ARM/thumb-diagnostics.s
@@ -68,6 +68,15 @@ error: invalid operand for instruction
@ CHECK-ERRORS: ^
+@ Invalid writeback and register lists for STM
+ stm r1, {r2, r6}
+ stm r1!, {r2, r9}
+@ CHECK-ERRORS: error: instruction requires a CPU feature not currently enabled
+@ CHECK-ERRORS: stm r1, {r2, r6}
+@ CHECK-ERRORS: ^
+@ CHECK-ERRORS: error: registers must be in range r0-r7
+@ CHECK-ERRORS: stm r1!, {r2, r9}
+@ CHECK-ERRORS: ^
@ Out of range immediates for LSL instruction.
lsls r4, r5, #-1