summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/2010-05-03-retaddr1.ll
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2013-03-12 15:18:14 +0000
committerHal Finkel <hfinkel@anl.gov>2013-03-12 15:18:14 +0000
commit4d53e7798c94143a22a9871261b8443592b929d5 (patch)
tree430ff7149d501e532a89cfbbbd3d1b2648b6f821 /test/CodeGen/PowerPC/2010-05-03-retaddr1.ll
parent7285e8d98c9a44b7efe792462188cfe713dd9641 (diff)
downloadllvm-4d53e7798c94143a22a9871261b8443592b929d5.tar.gz
llvm-4d53e7798c94143a22a9871261b8443592b929d5.tar.bz2
llvm-4d53e7798c94143a22a9871261b8443592b929d5.tar.xz
Don't reserve R2 on Darwin/PPC
Now that only the register-scavenger version of the CR spilling code remains, we no longer need the Darwin R2 hack. Darwin can use R0 as a spare register in any case where the System V ABI uses it (R0 is special architecturally, and so is reserved under all common ABIs). A few test cases needed to be updated to reflect the register-allocation changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176868 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/2010-05-03-retaddr1.ll')
-rw-r--r--test/CodeGen/PowerPC/2010-05-03-retaddr1.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/PowerPC/2010-05-03-retaddr1.ll b/test/CodeGen/PowerPC/2010-05-03-retaddr1.ll
index 72ae9d6c73..0dbc2d0180 100644
--- a/test/CodeGen/PowerPC/2010-05-03-retaddr1.ll
+++ b/test/CodeGen/PowerPC/2010-05-03-retaddr1.ll
@@ -18,8 +18,8 @@ entry:
; CHECK: _g:
; CHECK: mflr r0
; CHECK: stw r0, 8(r1)
-; CHECK: lwz r3, 0(r1)
-; CHECK: lwz r3, 8(r3)
+; CHECK: lwz r2, 0(r1)
+; CHECK: lwz r3, 8(r2)
%0 = tail call i8* @llvm.returnaddress(i32 1) ; <i8*> [#uses=1]
ret i8* %0
}