1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 04:52:54 +02:00
llvm-mirror/test/CodeGen/AArch64/pie.ll

15 lines
294 B
LLVM
Raw Normal View History

; RUN: llc -mtriple aarch64-pc-linux -relocation-model=pic < %s | FileCheck %s
@g1 = global i32 42
define i32* @get_g1() {
; CHECK: get_g1:
; CHECK: adrp x0, g1
; CHECK-NEXT: add x0, x0, :lo12:g1
ret i32* @g1
}
!llvm.module.flags = !{!0}
!0 = !{i32 1, !"PIE Level", i32 2}