summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/svr4-redzone.ll
diff options
context:
space:
mode:
authorTony Jiang <jtony@ca.ibm.com>2017-07-11 16:42:20 +0000
committerTony Jiang <jtony@ca.ibm.com>2017-07-11 16:42:20 +0000
commitf6179755b35936e58a2098f0ddc3ce7113385448 (patch)
tree5fc38c186ec12072247ac05d979a8126ca87fe1b /test/CodeGen/PowerPC/svr4-redzone.ll
parent609a5df2257e4da2336f0aa162e03fd8429fc4cd (diff)
[PPC] Fix two bugs in frame lowering.
1. The available program storage region of the red zone to compilers is 288 bytes rather than 244 bytes. 2. The formula for negative number alignment calculation should be y = x & ~(n-1) rather than y = (x + (n-1)) & ~(n-1). Differential Revision: https://reviews.llvm.org/D34337 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307672 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/svr4-redzone.ll')
-rw-r--r--test/CodeGen/PowerPC/svr4-redzone.ll6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/CodeGen/PowerPC/svr4-redzone.ll b/test/CodeGen/PowerPC/svr4-redzone.ll
index 7bb6cc180c9..26c4410ded6 100644
--- a/test/CodeGen/PowerPC/svr4-redzone.ll
+++ b/test/CodeGen/PowerPC/svr4-redzone.ll
@@ -29,11 +29,11 @@ entry:
define i8* @bigstack() nounwind {
entry:
- %0 = alloca i8, i32 230
+ %0 = alloca i8, i32 290
ret i8* %0
}
; PPC32-LABEL: bigstack:
-; PPC32: stwu 1, -240(1)
+; PPC32: stwu 1, -304(1)
; PPC64-LABEL: bigstack:
-; PPC64: stdu 1, -288(1)
+; PPC64: stdu 1, -352(1)