mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
14 lines
260 B
LLVM
14 lines
260 B
LLVM
; RUN: llc -mtriple=s390x-linux-gnu -relocation-model=pic < %s | FileCheck %s
|
|
|
|
@foo = dso_local global i32 42
|
|
|
|
define dso_local i32* @get_foo() {
|
|
ret i32* @foo
|
|
}
|
|
|
|
; CHECK: larl %r2, foo{{$}}
|
|
|
|
!llvm.module.flags = !{!0}
|
|
|
|
!0 = !{i32 1, !"PIE Level", i32 2}
|