aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/ARM/obsolete-v8.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/ARM/obsolete-v8.s')
-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