Skip to content

Commit 2864ec4

Browse files
Set InstructionSet_EVEX flag in altjit. (#108534)
1 parent def360f commit 2864ec4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/coreclr/jit/compiler.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6277,6 +6277,7 @@ int Compiler::compCompile(CORINFO_MODULE_HANDLE classPtr,
62776277
if (JitConfig.EnableAVX512F() != 0)
62786278
{
62796279
instructionSetFlags.AddInstructionSet(InstructionSet_AVX512F);
6280+
instructionSetFlags.AddInstructionSet(InstructionSet_EVEX);
62806281
}
62816282

62826283
if (JitConfig.EnableAVX512F_VL() != 0)
@@ -6323,6 +6324,13 @@ int Compiler::compCompile(CORINFO_MODULE_HANDLE classPtr,
63236324
{
63246325
instructionSetFlags.AddInstructionSet(InstructionSet_AVX512VBMI_VL);
63256326
}
6327+
6328+
if (JitConfig.EnableAVX10v1() != 0)
6329+
{
6330+
instructionSetFlags.AddInstructionSet(InstructionSet_AVX10v1);
6331+
instructionSetFlags.AddInstructionSet(InstructionSet_AVX10v1_V512);
6332+
instructionSetFlags.AddInstructionSet(InstructionSet_EVEX);
6333+
}
63266334
#endif
63276335

63286336
// These calls are important and explicitly ordered to ensure that the flags are correct in

0 commit comments

Comments
 (0)