aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/PowerPC/ppc-prologue.ll
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2009-11-24 22:59:02 +0000
committerDale Johannesen <dalej@apple.com>2009-11-24 22:59:02 +0000
commitf7801b493ef94c3a7edf8d57cc564f08fce6e624 (patch)
treeef8e87fb7dbdf9b3de6973e15678b2b9bd63f32a /test/CodeGen/PowerPC/ppc-prologue.ll
parenteac79170d2c66f1d6a433b0cac2696926eeff783 (diff)
downloadexternal_llvm-f7801b493ef94c3a7edf8d57cc564f08fce6e624.zip
external_llvm-f7801b493ef94c3a7edf8d57cc564f08fce6e624.tar.gz
external_llvm-f7801b493ef94c3a7edf8d57cc564f08fce6e624.tar.bz2
Do not store R31 into the caller's link area on PPC.
This violates the ABI (that area is "reserved"), and while it is safe if all code is generated with current compilers, there is some very old code around that uses that slot for something else, and breaks if it is stored into. Adjust testcases looking for current behavior. I've verified that the stack frame size is right in all testcases, whether it changed or not. 7311323. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89811 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/ppc-prologue.ll')
-rw-r--r--test/CodeGen/PowerPC/ppc-prologue.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/PowerPC/ppc-prologue.ll b/test/CodeGen/PowerPC/ppc-prologue.ll
index 581d010..e49dcb8 100644
--- a/test/CodeGen/PowerPC/ppc-prologue.ll
+++ b/test/CodeGen/PowerPC/ppc-prologue.ll
@@ -2,7 +2,7 @@
define i32 @_Z4funci(i32 %a) ssp {
; CHECK: mflr r0
-; CHECK-NEXT: stw r31, 20(r1)
+; CHECK-NEXT: stw r31, -4(r1)
; CHECK-NEXT: stw r0, 8(r1)
; CHECK-NEXT: stwu r1, -80(r1)
; CHECK-NEXT: Llabel1: