llvm.org GIT mirror llvm / dc40857
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 Tim Northover 6 years ago
1 changed file(s) with 15 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llc -mtriple=thumbv6m-apple-macho %s -relocation-model=static -o - | FileCheck %s
1 ; RUN: llc -mtriple=thumbv6m-apple-macho %s -relocation-model=pic -o - | FileCheck %s
2
3 @var = global i8 zeroinitializer
4
5 declare void @callee(i8*)
6
7 define void @foo() minsize {
8 ; CHECK-LABEL: foo:
9 ; CHECK: ldr {{r[0-7]}}, LCPI0_0
10 call void @callee(i8* @var)
11 call void asm sideeffect "", "~{r0},~{r1},~{r2},~{r3},~{r4},~{r5},~{r6},~{r7}"()
12 call void @callee(i8* @var)
13 ret void
14 }