Add support for spilling VRSAVE on PPC
authorHal Finkel <hfinkel@anl.gov>
Thu, 21 Mar 2013 19:03:21 +0000 (19:03 +0000)
committerHal Finkel <hfinkel@anl.gov>
Thu, 21 Mar 2013 19:03:21 +0000 (19:03 +0000)
commit10f7f2a222d0e83dc0c33ad506a7686190c2f7a2
tree7a0756c7eacdb202839bfdf5c7a5b165ae758257
parente9cc0a09ae38c87b1b26a44f5e32222ede4f84e6
Add support for spilling VRSAVE on PPC

Although there is only one Altivec VRSAVE register, it is a member of
a register class, and we need the ability to spill it. Because this
register is normally callee-preserved and handled by special code this
has never before been necessary. However, this capability will be required by
a forthcoming commit adding SjLj support.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177654 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCInstrInfo.cpp
lib/Target/PowerPC/PPCInstrInfo.td
lib/Target/PowerPC/PPCRegisterInfo.cpp
lib/Target/PowerPC/PPCRegisterInfo.h
test/CodeGen/PowerPC/vrsave-spill.ll [new file with mode: 0644]