diff options
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/pie.ll')
-rw-r--r-- | llvm/test/CodeGen/PowerPC/pie.ll | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/pie.ll b/llvm/test/CodeGen/PowerPC/pie.ll new file mode 100644 index 00000000000..56e07caf281 --- /dev/null +++ b/llvm/test/CodeGen/PowerPC/pie.ll @@ -0,0 +1,16 @@ +; RUN: llc < %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} |