[PowerPC][AIX] Update save/restore offset for frame and base pointers.
authorSean Fertile <sd.fertile@gmail.com>
Tue, 1 Sep 2020 15:16:37 +0000 (11:16 -0400)
committerSean Fertile <sd.fertile@gmail.com>
Tue, 1 Sep 2020 18:13:05 +0000 (14:13 -0400)
commitfecc27db11105478c999d9ae71ea281b14be6b6a
treec09414e1c52ac49d8e5ff1d33b974f34ee736d18
parent96ae43bad5b86aad90a9820d2e3c1a51f0af8a75
[PowerPC][AIX] Update save/restore offset for frame and base pointers.

General purpose registers 30 and 31 are handled differently when they are
reserved as the base-pointer and frame-pointer respectively. This fixes the
offset of their fixed-stack objects when there are fpr calle-saved registers.

Differential Revision: https://reviews.llvm.org/D85850
llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
llvm/test/CodeGen/PowerPC/aix-base-pointer.ll
llvm/test/CodeGen/PowerPC/aix-framepointer-save-restore.ll [new file with mode: 0644]