xref: /llvm-project/llvm/test/CodeGen/SystemZ/pie.ll (revision a1710eb3cd5823c5d14899112ca3086acbdbe9cb)
1; RUN: llc -mtriple=s390x-linux-gnu -relocation-model=pic < %s | FileCheck %s
2
3@foo = dso_local global i32 42
4
5define dso_local ptr @get_foo() {
6  ret ptr @foo
7}
8
9; CHECK: larl    %r2, foo{{$}}
10
11!llvm.module.flags = !{!0}
12
13!0 = !{i32 1, !"PIE Level", i32 2}
14