]> granicus.if.org Git - llvm/commit
[PPC] Fix two bugs in frame lowering.
authorTony Jiang <jtony@ca.ibm.com>
Tue, 11 Jul 2017 16:42:20 +0000 (16:42 +0000)
committerTony Jiang <jtony@ca.ibm.com>
Tue, 11 Jul 2017 16:42:20 +0000 (16:42 +0000)
commitf6179755b35936e58a2098f0ddc3ce7113385448
tree5fc38c186ec12072247ac05d979a8126ca87fe1b
parent609a5df2257e4da2336f0aa162e03fd8429fc4cd
[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
lib/Target/PowerPC/PPCFrameLowering.cpp
lib/Target/PowerPC/PPCSubtarget.h
test/CodeGen/PowerPC/ppc-redzone-alignment-bug.ll [new file with mode: 0644]
test/CodeGen/PowerPC/svr4-redzone.ll
test/CodeGen/PowerPC/tailcall1-64.ll