1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 12:33:33 +02:00
llvm-mirror/test/CodeGen/SystemZ/pie.ll
Rafael Espindola 9e28fec15e Uses shouldAssumeDSOLocal.
With that SystemZ knows to avoid a GOT for PIE.

llvm-svn: 273614
2016-06-23 21:18:59 +00:00

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}