summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/src/JIT/HardwareIntrinsics/X86/Shared/Program.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/src/JIT/HardwareIntrinsics/X86/Shared/Program.cs b/tests/src/JIT/HardwareIntrinsics/X86/Shared/Program.cs
index 99ff4f529b..610035f06f 100644
--- a/tests/src/JIT/HardwareIntrinsics/X86/Shared/Program.cs
+++ b/tests/src/JIT/HardwareIntrinsics/X86/Shared/Program.cs
@@ -5,6 +5,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
+using System.Runtime.Intrinsics.X86;
namespace JIT.HardwareIntrinsics.X86
{
@@ -19,6 +20,8 @@ namespace JIT.HardwareIntrinsics.X86
{
var isPassing = true;
+ PrintSupportedIsa();
+
foreach (string testToRun in GetTestsToRun(args))
{
TestLibrary.TestFramework.BeginTestCase(testToRun);
@@ -64,6 +67,27 @@ namespace JIT.HardwareIntrinsics.X86
return (testsToRun.Count == 0) ? TestList.Keys : testsToRun;
}
+ private static void PrintSupportedIsa()
+ {
+ TestLibrary.TestFramework.LogInformation("Supported ISAs:");
+ TestLibrary.TestFramework.LogInformation($" AES: {Aes.IsSupported}");
+ TestLibrary.TestFramework.LogInformation($" AVX: {Avx.IsSupported}");
+ TestLibrary.TestFramework.LogInformation($" AVX2: {Avx2.IsSupported}");
+ TestLibrary.TestFramework.LogInformation($" BMI1: {Bmi1.IsSupported}");
+ TestLibrary.TestFramework.LogInformation($" BMI2: {Bmi2.IsSupported}");
+ TestLibrary.TestFramework.LogInformation($" FMA: {Fma.IsSupported}");
+ TestLibrary.TestFramework.LogInformation($" LZCNT: {Lzcnt.IsSupported}");
+ TestLibrary.TestFramework.LogInformation($" PCLMULQDQ: {Pclmulqdq.IsSupported}");
+ TestLibrary.TestFramework.LogInformation($" POPCNT: {Popcnt.IsSupported}");
+ TestLibrary.TestFramework.LogInformation($" SSE: {Sse.IsSupported}");
+ TestLibrary.TestFramework.LogInformation($" SSE2: {Sse2.IsSupported}");
+ TestLibrary.TestFramework.LogInformation($" SSE3: {Sse3.IsSupported}");
+ TestLibrary.TestFramework.LogInformation($" SSE4.1: {Sse41.IsSupported}");
+ TestLibrary.TestFramework.LogInformation($" SSE4.2: {Sse42.IsSupported}");
+ TestLibrary.TestFramework.LogInformation($" SSSE3: {Ssse3.IsSupported}");
+ TestLibrary.TestFramework.LogInformation(string.Empty);
+ }
+
private static void PrintUsage()
{
TestLibrary.TestFramework.LogInformation($@"Usage: