summaryrefslogtreecommitdiff
path: root/test/MC/ARM
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2014-01-28 23:13:30 +0000
committerDavid Woodhouse <dwmw2@infradead.org>2014-01-28 23:13:30 +0000
commit634295bcb62646ea75dfe2248dc5a9d4b9d33ff1 (patch)
treec33649afb1ef01ad25452bcdb820732e90e94242 /test/MC/ARM
parenteab5cc34c6d13d56ecc59153598695a6ff8d3e14 (diff)
downloadllvm-634295bcb62646ea75dfe2248dc5a9d4b9d33ff1.tar.gz
llvm-634295bcb62646ea75dfe2248dc5a9d4b9d33ff1.tar.bz2
llvm-634295bcb62646ea75dfe2248dc5a9d4b9d33ff1.tar.xz
Tests for mode switching
1. test that inlineasm works 2. test that relaxable instructions are re-encoded in the correct mode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200351 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ARM')
-rw-r--r--test/MC/ARM/fixup-cpu-mode.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/MC/ARM/fixup-cpu-mode.s b/test/MC/ARM/fixup-cpu-mode.s
new file mode 100644
index 0000000000..17f29f94d2
--- /dev/null
+++ b/test/MC/ARM/fixup-cpu-mode.s
@@ -0,0 +1,9 @@
+// RUN: llvm-mc -filetype=obj -triple thumbv7-linux-gnu %s -o %t
+// RUN: llvm-objdump -triple thumbv7-linux-gnu -d %t | FileCheck %s
+
+//PR18303
+.code 16
+.global edata
+b edata // CHECK: b.w
+.code 32
+