Skip to content

Commit

Permalink
resolve errors
Browse files Browse the repository at this point in the history
  • Loading branch information
khushal1996 committed Jun 6, 2024
1 parent cd54804 commit 81e1487
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/coreclr/vm/codeman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1424,7 +1424,7 @@ void EEJitManager::SetCpuInfo()
CPUCompileFlags.Set(InstructionSet_X86Serialize);
}

if (((cpuFeatures & XArchIntrinsicConstants_Evex) != 0))
if (((cpuFeatures & XArchIntrinsicConstants_Evex) != 0) && (CPUCompileFlags.IsSet(InstructionSet_AVX512F) || CPUCompileFlags.IsSet(InstructionSet_AVX10v1)))
{
CPUCompileFlags.Set(InstructionSet_EVEX);
}
Expand Down Expand Up @@ -1541,11 +1541,6 @@ void EEJitManager::SetCpuInfo()

#if defined(TARGET_X86) || defined(TARGET_AMD64)

// Set Evex ISA based on instruction set present
if (CPUCompileFlags.IsSet(InstructionSet_AVX10v1) || CPUCompileFlags.IsSet(InstructionSet_AVX512F))
{
CPUCompileFlags.Set(InstructionSet_EVEX);
}
// Clean up mutually exclusive ISAs
if (CPUCompileFlags.IsSet(InstructionSet_VectorT512))
{
Expand Down

0 comments on commit 81e1487

Please sign in to comment.