summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/ppc64-linux-func-size.ll
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2012-02-25 03:40:11 +0000
committerHal Finkel <hfinkel@anl.gov>2012-02-25 03:40:11 +0000
commit6fd2b434bda75bff8fd9d597e7da26fa281cd8b1 (patch)
tree118cd9aa7a35f71809cf00f462bb29cdea138073 /llvm/test/CodeGen/PowerPC/ppc64-linux-func-size.ll
parentbdf94879dfbf32446a8144783b6c2643e83ea8d0 (diff)
downloadbcm5719-llvm-6fd2b434bda75bff8fd9d597e7da26fa281cd8b1.tar.gz
bcm5719-llvm-6fd2b434bda75bff8fd9d597e7da26fa281cd8b1.zip
Revert r151278, breaks static linking.
Reverting this because it breaks static linking on ppc64. Specifically, it may be linkonce_odr functions that are the problem. With this patch, if you link statically, calls to some functions end up calling their descriptor addresses instead of calling to their entry points. This causes the execution to fail with SIGILL (b/c the descriptor address just has some pointers, not code). llvm-svn: 151433
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/ppc64-linux-func-size.ll')
-rw-r--r--llvm/test/CodeGen/PowerPC/ppc64-linux-func-size.ll5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/PowerPC/ppc64-linux-func-size.ll b/llvm/test/CodeGen/PowerPC/ppc64-linux-func-size.ll
index 0a549259a2c..74b3dc7dc7f 100644
--- a/llvm/test/CodeGen/PowerPC/ppc64-linux-func-size.ll
+++ b/llvm/test/CodeGen/PowerPC/ppc64-linux-func-size.ll
@@ -1,9 +1,8 @@
; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=g5 | FileCheck %s
; CHECK: test1:
-; CHECK-NEXT: .quad .L.test1
-; CHECK-NEXT: .quad .TOC.@tocbase
-; CHECK-NEXT: .text
+; CHECK-NEXT: .quad .L.test1,.TOC.@tocbase
+; CHECK-NEXT: .previous
; CHECK-NEXT: .L.test1:
define i32 @test1(i32 %a) nounwind {
OpenPOWER on IntegriCloud