mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 03:30:28 +00:00
XMM6-XMM15 are callee-saved on Win64. Patch by Nicolas Capens!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56568 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f835f84071
commit
5979d7192c
@ -185,8 +185,11 @@ X86RegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const {
|
||||
};
|
||||
|
||||
static const unsigned CalleeSavedRegsWin64[] = {
|
||||
X86::RBX, X86::RBP, X86::RDI, X86::RSI,
|
||||
X86::R12, X86::R13, X86::R14, X86::R15, 0
|
||||
X86::RBX, X86::RBP, X86::RDI, X86::RSI,
|
||||
X86::R12, X86::R13, X86::R14, X86::R15,
|
||||
X86::XMM6, X86::XMM7, X86::XMM8, X86::XMM9,
|
||||
X86::XMM10, X86::XMM11, X86::XMM12, X86::XMM13,
|
||||
X86::XMM14, X86::XMM15, 0
|
||||
};
|
||||
|
||||
if (Is64Bit) {
|
||||
@ -230,10 +233,15 @@ X86RegisterInfo::getCalleeSavedRegClasses(const MachineFunction *MF) const {
|
||||
&X86::GR64RegClass, &X86::GR64RegClass, 0
|
||||
};
|
||||
static const TargetRegisterClass * const CalleeSavedRegClassesWin64[] = {
|
||||
&X86::GR64RegClass, &X86::GR64RegClass,
|
||||
&X86::GR64RegClass, &X86::GR64RegClass,
|
||||
&X86::GR64RegClass, &X86::GR64RegClass,
|
||||
&X86::GR64RegClass, &X86::GR64RegClass, 0
|
||||
&X86::GR64RegClass, &X86::GR64RegClass,
|
||||
&X86::GR64RegClass, &X86::GR64RegClass,
|
||||
&X86::GR64RegClass, &X86::GR64RegClass,
|
||||
&X86::GR64RegClass, &X86::GR64RegClass,
|
||||
&X86::VR128RegClass, &X86::VR128RegClass,
|
||||
&X86::VR128RegClass, &X86::VR128RegClass,
|
||||
&X86::VR128RegClass, &X86::VR128RegClass,
|
||||
&X86::VR128RegClass, &X86::VR128RegClass,
|
||||
&X86::VR128RegClass, &X86::VR128RegClass, 0
|
||||
};
|
||||
|
||||
if (Is64Bit) {
|
||||
|
Loading…
Reference in New Issue
Block a user