Skip to content

Commit 9eeefd7

Browse files
committed
Don't allow avxvnni to be "optimistic" since that brings in avx2
1 parent b37c597 commit 9eeefd7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/coreclr/tools/Common/InstructionSetHelpers.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,13 @@ public static InstructionSetSupport ConfigureInstructionSetSupport(string instru
103103
Debug.Assert(InstructionSet.X64_AVX == InstructionSet.X86_AVX);
104104
if (supportedInstructionSet.HasInstructionSet(InstructionSet.X64_AVX))
105105
{
106+
// TODO: Enable optimistic usage of AVX2 once we validate it doesn't break Vector<T> usage
107+
// optimisticInstructionSetSupportBuilder.AddSupportedInstructionSet("avx2");
108+
// optimisticInstructionSetSupportBuilder.AddSupportedInstructionSet("avxvnni");
109+
106110
optimisticInstructionSetSupportBuilder.AddSupportedInstructionSet("fma");
107111
optimisticInstructionSetSupportBuilder.AddSupportedInstructionSet("bmi");
108112
optimisticInstructionSetSupportBuilder.AddSupportedInstructionSet("bmi2");
109-
optimisticInstructionSetSupportBuilder.AddSupportedInstructionSet("avxvnni");
110113
}
111114
}
112115
else if (targetArchitecture == TargetArchitecture.ARM64)

0 commit comments

Comments
 (0)