Skip to content

Commit fb647cb

Browse files
committed
Fixing up tests to match the adjusted implications
1 parent 176e795 commit fb647cb

File tree

5 files changed

+515
-315
lines changed

5 files changed

+515
-315
lines changed

src/coreclr/tools/Common/InstructionSetHelpers.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ public static InstructionSetSupport ConfigureInstructionSetSupport(string instru
210210
optimisticInstructionSetSupportBuilder.AddSupportedInstructionSet("fma");
211211
optimisticInstructionSetSupportBuilder.AddSupportedInstructionSet("avxifma");
212212
optimisticInstructionSetSupportBuilder.AddSupportedInstructionSet("avxvnni");
213-
optimisticInstructionSetSupportBuilder.AddSupportedInstructionSet("vpclmul");
214213
optimisticInstructionSetSupportBuilder.AddSupportedInstructionSet("gfni_v256");
215214
optimisticInstructionSetSupportBuilder.AddSupportedInstructionSet("vaes");
216215
optimisticInstructionSetSupportBuilder.AddSupportedInstructionSet("vpclmul");

src/coreclr/tools/Common/JitInterface/ThunkGenerator/InstructionSetDesc.txt

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,18 @@ implication ,X86 ,SSE41 ,SSSE3
164164
implication ,X86 ,SSE42 ,SSE41
165165
implication ,X86 ,POPCNT ,SSE42
166166

167-
implication ,X86 ,AVX ,SSE42
168-
169-
implication ,X86 ,AVX2 ,AVX
170-
implication ,X86 ,BMI1 ,AVX2
171-
implication ,X86 ,BMI2 ,AVX2
172-
implication ,X86 ,FMA ,AVX2
173-
implication ,X86 ,LZCNT ,SSE42
174-
implication ,X86 ,MOVBE ,SSE42
167+
implication ,X86 ,AVX ,POPCNT
168+
169+
implication ,X86 ,LZCNT ,POPCNT
170+
implication ,X86 ,MOVBE ,POPCNT
171+
implication ,X86 ,BMI1 ,AVX
172+
implication ,X86 ,BMI2 ,AVX
173+
implication ,X86 ,FMA ,AVX
174+
implication ,X86 ,AVX2 ,LZCNT
175+
implication ,X86 ,AVX2 ,MOVBE
176+
implication ,X86 ,AVX2 ,BMI1
177+
implication ,X86 ,AVX2 ,BMI2
178+
implication ,X86 ,AVX2 ,FMA
175179

176180
implication ,X86 ,AVX512 ,AVX2
177181
implication ,X86 ,AVX512 ,BMI1

src/native/minipal/cpufeatures.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ int minipal_getcpufeatures(void)
301301
if (((cpuidInfo[CPUID_EBX] & (1 << 5)) != 0) && // AVX2
302302
((cpuidInfo[CPUID_EBX] & (1 << 3)) != 0) && // BMI1
303303
((cpuidInfo[CPUID_EBX] & (1 << 8)) != 0) && // BMI2
304-
hasAvx2Dependencies) // F16C, FMA, LZCNT, MOVBE
304+
hasAvx2Dependencies) // F16C, FMA, LZCNT, MOVBE
305305
{
306306
result |= XArchIntrinsicConstants_Avx2;
307307

@@ -346,11 +346,6 @@ int minipal_getcpufeatures(void)
346346
hasAvx2Dependencies = false;
347347
}
348348

349-
if ((cpuidInfo[CPUID_ECX] & (1 << 8)) != 0) // GFNI
350-
{
351-
result |= XArchIntrinsicConstants_Gfni;
352-
}
353-
354349
if ((result & XArchIntrinsicConstants_Aes) != 0)
355350
{
356351
if (((cpuidInfo[CPUID_ECX] & (1 << 9)) != 0) && // VAES
@@ -361,6 +356,11 @@ int minipal_getcpufeatures(void)
361356
}
362357
}
363358

359+
if ((cpuidInfo[CPUID_ECX] & (1 << 8)) != 0) // GFNI
360+
{
361+
result |= XArchIntrinsicConstants_Gfni;
362+
}
363+
364364
if ((cpuidInfo[CPUID_EBX] & (1 << 29)) != 0) // SHA
365365
{
366366
result |= XArchIntrinsicConstants_Sha;

0 commit comments

Comments
 (0)