summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/thumb-litpool.ll
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-01-13 14:20:25 +0000
committerTim Northover <tnorthover@apple.com>2014-01-13 14:20:25 +0000
commitdc408573c48f43d4789f874144efbfbf1a9deeef (patch)
treeda166fab75a0e3517e8a29614d72a97dc4fbfbd1 /test/CodeGen/ARM/thumb-litpool.ll
parent08a8edb8483898f0a5741ad5cf9fa68b1611f83a (diff)
ARM: add test for r199108. Oops.
rdar://problem/15800156 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199109 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/thumb-litpool.ll')
-rw-r--r--test/CodeGen/ARM/thumb-litpool.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/thumb-litpool.ll b/test/CodeGen/ARM/thumb-litpool.ll
new file mode 100644
index 00000000000..f68fdb6fdc0
--- /dev/null
+++ b/test/CodeGen/ARM/thumb-litpool.ll
@@ -0,0 +1,15 @@
+; RUN: llc -mtriple=thumbv6m-apple-macho %s -relocation-model=static -o - | FileCheck %s
+; RUN: llc -mtriple=thumbv6m-apple-macho %s -relocation-model=pic -o - | FileCheck %s
+
+@var = global i8 zeroinitializer
+
+declare void @callee(i8*)
+
+define void @foo() minsize {
+; CHECK-LABEL: foo:
+; CHECK: ldr {{r[0-7]}}, LCPI0_0
+ call void @callee(i8* @var)
+ call void asm sideeffect "", "~{r0},~{r1},~{r2},~{r3},~{r4},~{r5},~{r6},~{r7}"()
+ call void @callee(i8* @var)
+ ret void
+} \ No newline at end of file