using System;
using System.Collections.Generic;
using System.Linq;
+using System.Runtime.Intrinsics.X86;
namespace JIT.HardwareIntrinsics.X86
{
{
var isPassing = true;
+ PrintSupportedIsa();
+
foreach (string testToRun in GetTestsToRun(args))
{
TestLibrary.TestFramework.BeginTestCase(testToRun);
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: