mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-03 09:21:13 +00:00
a2f3bd3103
With this ARM fast isel knows that PIE variable are not preemptable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273169 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
448 B
LLVM
20 lines
448 B
LLVM
; 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}
|