aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/PowerPC/pie.ll
blob: 8cb8a12edff7b2b3e90e41ef162f1a5fec36da4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-pc-linux -relocation-model=pic | FileCheck %s


define dso_local void @f() {
  ret void
}

define dso_local void @g() {
; CHECK: g:
; CHECK: bl f{{$}}
  call void @f()
  ret void
}

!llvm.module.flags = !{!0}
!0 = !{i32 1, !"PIE Level", i32 1}