[X86] Add ZMM registers to the X86_INTR calling convention preserved mask when AVX512 is enabled.

llvm-svn: 269018
This commit is contained in:
Craig Topper 2016-05-10 05:28:02 +00:00
parent 3fef1de785
commit 9f8e50cdb4
1 changed files with 2 additions and 0 deletions

View File

@ -385,6 +385,8 @@ X86RegisterInfo::getCallPreservedMask(const MachineFunction &MF,
return CSR_64_RegMask;
case CallingConv::X86_INTR:
if (Is64Bit) {
if (HasAVX512)
return CSR_64_AllRegs_AVX512_RegMask;
if (HasAVX)
return CSR_64_AllRegs_AVX_RegMask;
else