64ac736ec5
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
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}
|