summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/retaddr.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-12-08 07:04:58 +0000
committerChris Lattner <sabre@nondot.org>2007-12-08 07:04:58 +0000
commitf47015bc7438d3105cf538f90b9d3214db9bb2d6 (patch)
tree0cd55ca0a8d115610d8695af9ea9053a9c548edf /llvm/test/CodeGen/PowerPC/retaddr.ll
parentf6a8156e4ff227993085ef36a7c5a21afc61749a (diff)
downloadbcm5719-llvm-f47015bc7438d3105cf538f90b9d3214db9bb2d6.tar.gz
bcm5719-llvm-f47015bc7438d3105cf538f90b9d3214db9bb2d6.zip
Fix a significant code quality regression I introduced on PPC64 quite
a while ago. We now produce: _foo: mflr r0 std r0, 16(r1) ld r2, 16(r1) std r2, 0(r3) ld r0, 16(r1) mtlr r0 blr instead of: _foo: mflr r0 std r0, 16(r1) lis r0, 0 ori r0, r0, 16 ldx r2, r1, r0 std r2, 0(r3) ld r0, 16(r1) mtlr r0 blr for: void foo(void **X) { *X = __builtin_return_address(0); } on ppc64. llvm-svn: 44701
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/retaddr.ll')
-rw-r--r--llvm/test/CodeGen/PowerPC/retaddr.ll1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/retaddr.ll b/llvm/test/CodeGen/PowerPC/retaddr.ll
index 6b9a5e3f068..f4cad34adda 100644
--- a/llvm/test/CodeGen/PowerPC/retaddr.ll
+++ b/llvm/test/CodeGen/PowerPC/retaddr.ll
@@ -1,5 +1,6 @@
; RUN: llvm-as < %s | llc -march=ppc32 | grep mflr
; RUN: llvm-as < %s | llc -march=ppc32 | grep lwz
+; RUN: llvm-as < %s | llc -march=ppc64 | grep {ld r., 16(r1)}
target triple = "powerpc-apple-darwin8"
OpenPOWER on IntegriCloud