]> granicus.if.org Git - llvm/commit
[PPC] Properly update register save area offsets
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Wed, 17 May 2017 13:25:09 +0000 (13:25 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Wed, 17 May 2017 13:25:09 +0000 (13:25 +0000)
commit98d41caf2617942f9f979a35228f3b1ab45c3c7d
tree55ae114861dc57ca8285df4b70c729c3becbf4f0
parent04f47c753c3f56aa277f13ff09b70bda847bcc38
[PPC] Properly update register save area offsets

The variables MinGPR/MinG8R were not updated properly when resetting the
offsets, which in the included testcase lead to saving the CR register
in the same location as R30.

This fixes another issue reported in PR26519.

Differential Revision: https://reviews.llvm.org/D33017

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303257 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCFrameLowering.cpp
test/CodeGen/PowerPC/save-bp.ll [new file with mode: 0644]
test/CodeGen/PowerPC/save-cr-ppc32svr4.ll [new file with mode: 0644]
test/CodeGen/PowerPC/save-crbp-ppc32svr4.ll [new file with mode: 0644]