Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit dc40857

Browse files
committed
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
1 parent 08a8edb commit dc40857

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/CodeGen/ARM/thumb-litpool.ll

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
; RUN: llc -mtriple=thumbv6m-apple-macho %s -relocation-model=static -o - | FileCheck %s
2+
; RUN: llc -mtriple=thumbv6m-apple-macho %s -relocation-model=pic -o - | FileCheck %s
3+
4+
@var = global i8 zeroinitializer
5+
6+
declare void @callee(i8*)
7+
8+
define void @foo() minsize {
9+
; CHECK-LABEL: foo:
10+
; CHECK: ldr {{r[0-7]}}, LCPI0_0
11+
call void @callee(i8* @var)
12+
call void asm sideeffect "", "~{r0},~{r1},~{r2},~{r3},~{r4},~{r5},~{r6},~{r7}"()
13+
call void @callee(i8* @var)
14+
ret void
15+
}

0 commit comments

Comments
 (0)