git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299114
91177308-0d34-0410-b5e6-
96231b3b80d8
report_fatal_error("SSE register return with SSE disabled");
}
- // If the return value is an i1 and AVX-512 is enabled, stop.
+ // If the return value is an i1 and AVX-512 is enabled, we need
+ // to do a fixup to make the copy legal.
if (CopyVT == MVT::i1 && SrcReg == X86::AL && Subtarget->hasAVX512()) {
// Need to copy to a GR32 first.
// TODO: MOVZX isn't great here. We don't care about the upper bits.