summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/pie.ll
blob: e037b7686c145a7b9cf77c41a85f59379be3fe77 (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 void @f() {
  ret void
}

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

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