summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/pie.ll
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-06-22 22:09:17 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-06-22 22:09:17 +0000
commit928a95d0b0ad71de454014c9eca348e82929eb13 (patch)
treeb095d22ca1081df1cd22b22c4270405af4bb55d4 /llvm/test/CodeGen/PowerPC/pie.ll
parent45bb5c69a0fe1294de6349cba49cb9a3e7641977 (diff)
downloadbcm5719-llvm-928a95d0b0ad71de454014c9eca348e82929eb13.tar.gz
bcm5719-llvm-928a95d0b0ad71de454014c9eca348e82929eb13.zip
Use shouldAssumeDSOLocal.
With this it handle -fPIE. llvm-svn: 273499
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/pie.ll')
-rw-r--r--llvm/test/CodeGen/PowerPC/pie.ll16
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}
OpenPOWER on IntegriCloud