1 ; RUN: llc < %s -O0 -fast-isel-abort=1 -relocation-model=pic -mtriple=armv7-pc-linux-gnueabi | FileCheck %s
3 @var = dso_local global i32 42
5 define dso_local ptr @foo() {
7 ; CHECK: ldr r0, .L[[POOL:.*]]
8 ; CHECK-NEXT: .L[[ADDR:.*]]:
9 ; CHECK-NEXT: add r0, pc, r0
13 ; CHECK-NEXT: .long var-(.L[[ADDR]]+8)
18 !llvm.module.flags = !{!0}
19 !0 = !{i32 1, !"PIE Level", i32 2}