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)
commita1431df540e16be6d7c2ddd74b7b78505b95e3f9
tree290c465a0caa6a5647f6b31e20d05fc9ff84add5
parentaa03c03a2d7a38bc9f1361246c8d91033264b930
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.

llvm-svn: 177654
llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
llvm/lib/Target/PowerPC/PPCInstrInfo.td
llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp
llvm/lib/Target/PowerPC/PPCRegisterInfo.h
llvm/test/CodeGen/PowerPC/vrsave-spill.ll [new file with mode: 0644]