aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/ARM/thumb-diagnostics.s
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-08-23 18:33:38 +0000
committerJim Grosbach <grosbach@apple.com>2011-08-23 18:33:38 +0000
commit4c821d800a50251633c206b9fe42c99e12f3f511 (patch)
tree2ba1e3ef87e3f96599e681643aab40ce1629db41 /test/MC/ARM/thumb-diagnostics.s
parent3395fe1e4b615ca30da893edd48474c672a74da5 (diff)
downloadexternal_llvm-4c821d800a50251633c206b9fe42c99e12f3f511.zip
external_llvm-4c821d800a50251633c206b9fe42c99e12f3f511.tar.gz
external_llvm-4c821d800a50251633c206b9fe42c99e12f3f511.tar.bz2
Thumb parsing and encoding for STR.
Not including tSTRspi. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138347 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ARM/thumb-diagnostics.s')
-rw-r--r--test/MC/ARM/thumb-diagnostics.s15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/MC/ARM/thumb-diagnostics.s b/test/MC/ARM/thumb-diagnostics.s
index 604127a..9a4ddf1 100644
--- a/test/MC/ARM/thumb-diagnostics.s
+++ b/test/MC/ARM/thumb-diagnostics.s
@@ -93,3 +93,18 @@ error: invalid operand for instruction
@ CHECK-ERRORS: error: destination register must match source register
@ CHECK-ERRORS: muls r1, r2, r3
@ CHECK-ERRORS: ^
+
+
+@ Out of range immediates for STR instruction.
+ str r2, [r7, #-1]
+ str r5, [r1, #3]
+ str r3, [r7, #128]
+@ CHECK-ERRORS: error: instruction requires a CPU feature not currently enabled
+@ CHECK-ERRORS: str r2, [r7, #-1]
+@ CHECK-ERRORS: ^
+@ CHECK-ERRORS: error: instruction requires a CPU feature not currently enabled
+@ CHECK-ERRORS: str r5, [r1, #3]
+@ CHECK-ERRORS: ^
+@ CHECK-ERRORS: error: instruction requires a CPU feature not currently enabled
+@ CHECK-ERRORS: str r3, [r7, #128]
+@ CHECK-ERRORS: ^