Skip to content

Commit 81e1487

Browse files
committed
resolve errors
1 parent cd54804 commit 81e1487

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/coreclr/vm/codeman.cpp

+1-6
Original file line numberDiff line numberDiff line change
@@ -1424,7 +1424,7 @@ void EEJitManager::SetCpuInfo()
14241424
CPUCompileFlags.Set(InstructionSet_X86Serialize);
14251425
}
14261426

1427-
if (((cpuFeatures & XArchIntrinsicConstants_Evex) != 0))
1427+
if (((cpuFeatures & XArchIntrinsicConstants_Evex) != 0) && (CPUCompileFlags.IsSet(InstructionSet_AVX512F) || CPUCompileFlags.IsSet(InstructionSet_AVX10v1)))
14281428
{
14291429
CPUCompileFlags.Set(InstructionSet_EVEX);
14301430
}
@@ -1541,11 +1541,6 @@ void EEJitManager::SetCpuInfo()
15411541

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

1544-
// Set Evex ISA based on instruction set present
1545-
if (CPUCompileFlags.IsSet(InstructionSet_AVX10v1) || CPUCompileFlags.IsSet(InstructionSet_AVX512F))
1546-
{
1547-
CPUCompileFlags.Set(InstructionSet_EVEX);
1548-
}
15491544
// Clean up mutually exclusive ISAs
15501545
if (CPUCompileFlags.IsSet(InstructionSet_VectorT512))
15511546
{

0 commit comments

Comments
 (0)