aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC
diff options
context:
space:
mode:
authorJoey Gouly <joey.gouly@arm.com>2013-08-13 16:40:47 +0000
committerJoey Gouly <joey.gouly@arm.com>2013-08-13 16:40:47 +0000
commit3f87f2510c0d84fe092ac311a0e25a5e2f7aa3ac (patch)
treeaa2bb102d2d84137d482bcf5e9979fa779fde6ee /test/MC
parentceda68fe2430e0e3c8bec5487d66881f34b275ed (diff)
downloadexternal_llvm-3f87f2510c0d84fe092ac311a0e25a5e2f7aa3ac.zip
external_llvm-3f87f2510c0d84fe092ac311a0e25a5e2f7aa3ac.tar.gz
external_llvm-3f87f2510c0d84fe092ac311a0e25a5e2f7aa3ac.tar.bz2
ARMv8: SWP and SWPB are obsoleted on ARMv8.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188288 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r--test/MC/ARM/obsolete-v8.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/MC/ARM/obsolete-v8.s b/test/MC/ARM/obsolete-v8.s
new file mode 100644
index 0000000..0d6176b
--- /dev/null
+++ b/test/MC/ARM/obsolete-v8.s
@@ -0,0 +1,7 @@
+@ RUN: not llvm-mc -triple=armv8 < %s 2>&1 | FileCheck %s
+
+swp r0, r1, [r2]
+@ CHECK: instruction requires: armv7 or earlier
+
+swpb r0, r1, [r2]
+@ CHECK: instruction requires: armv7 or earlier