diff options
author | Dale Johannesen <dalej@apple.com> | 2009-11-24 22:59:02 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2009-11-24 22:59:02 +0000 |
commit | f7801b493ef94c3a7edf8d57cc564f08fce6e624 (patch) | |
tree | ef8e87fb7dbdf9b3de6973e15678b2b9bd63f32a /test/CodeGen/PowerPC/ppc-prologue.ll | |
parent | eac79170d2c66f1d6a433b0cac2696926eeff783 (diff) |
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.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/PowerPC/ppc-prologue.ll b/test/CodeGen/PowerPC/ppc-prologue.ll index 581d010a90..e49dcb82c6 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: |