aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-08-16 22:20:01 +0000
committerJim Grosbach <grosbach@apple.com>2011-08-16 22:20:01 +0000
commit194bd8982936c819a4b14335a4d08f28af8f3d42 (patch)
treecdb88f8ae4863c0cff6889250f5aa1b2d921849c /test
parent94c7ddb6f52a5200983fed0ce74dc602a7737879 (diff)
downloadexternal_llvm-194bd8982936c819a4b14335a4d08f28af8f3d42.zip
external_llvm-194bd8982936c819a4b14335a4d08f28af8f3d42.tar.gz
external_llvm-194bd8982936c819a4b14335a4d08f28af8f3d42.tar.bz2
Thumb parsing diagnostics for low-reg requirements on ADD and MOV.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137779 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
index c8528c5..a08a946 100644
--- a/test/MC/ARM/thumb-diagnostics.s
+++ b/test/MC/ARM/thumb-diagnostics.s
@@ -8,3 +8,13 @@
@ CHECK-ERRORS: error: invalid instruction
@ CHECK-ERRORS: add r1, r2, r3
@ CHECK-ERRORS: ^
+
+@ Instructions which require v6+ for both registers to be low regs.
+ add r2, r3
+ mov r2, r3
+@ CHECK-ERRORS: error: instruction variant requires Thumb2
+@ CHECK-ERRORS: add r2, r3
+@ CHECK-ERRORS: ^
+@ CHECK-ERRORS: error: instruction variant requires ARMv6 or later
+@ CHECK-ERRORS: mov r2, r3
+@ CHECK-ERRORS: ^