forked from OSchip/llvm-project
[X86] Add ZMM registers to the X86_INTR calling convention preserved mask when AVX512 is enabled.
llvm-svn: 269018
This commit is contained in:
parent
3fef1de785
commit
9f8e50cdb4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue