You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
448 B
20 lines
448 B
4 months ago
|
; RUN: llc < %s -O0 -fast-isel-abort=1 -relocation-model=pic -mtriple=armv7-pc-linux-gnueabi | FileCheck %s
|
||
|
|
||
|
@var = global i32 42
|
||
|
|
||
|
define i32* @foo() {
|
||
|
; CHECK: foo:
|
||
|
; CHECK: ldr r0, .L[[POOL:.*]]
|
||
|
; CHECK-NEXT: .L[[ADDR:.*]]:
|
||
|
; CHECK-NEXT: add r0, pc, r0
|
||
|
; CHECK-NEXT: bx lr
|
||
|
|
||
|
; CHECK: .L[[POOL]]:
|
||
|
; CHECK-NEXT: .long var-(.L[[ADDR]]+8)
|
||
|
|
||
|
ret i32* @var
|
||
|
}
|
||
|
|
||
|
!llvm.module.flags = !{!0}
|
||
|
!0 = !{i32 1, !"PIE Level", i32 2}
|