mirror of
https://github.com/RPCSX/llvm.git
synced 2026-01-31 01:05:23 +01:00
With that SystemZ knows to avoid a GOT for PIE. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273614 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
240 B
LLVM
14 lines
240 B
LLVM
; RUN: llc -mtriple=s390x-linux-gnu -relocation-model=pic < %s | FileCheck %s
|
|
|
|
@foo = global i32 42
|
|
|
|
define i32* @get_foo() {
|
|
ret i32* @foo
|
|
}
|
|
|
|
; CHECK: larl %r2, foo{{$}}
|
|
|
|
!llvm.module.flags = !{!0}
|
|
|
|
!0 = !{i32 1, !"PIE Level", i32 2}
|