summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTanner Gooding <tagoo@outlook.com>2018-08-03 13:20:38 -0700
committerTanner Gooding <tagoo@outlook.com>2018-08-03 15:19:11 -0700
commita29c8dfa26b11189566dd09ff0e268accd339b40 (patch)
tree289986b78ea09de90506a5aa3f4b48c493b802b8 /tests
parentb3db1041998be9c63a730240a8f16918597c0ed5 (diff)
downloadcoreclr-a29c8dfa26b11189566dd09ff0e268accd339b40.tar.gz
coreclr-a29c8dfa26b11189566dd09ff0e268accd339b40.tar.bz2
coreclr-a29c8dfa26b11189566dd09ff0e268accd339b40.zip
Updating the x86 HWIntrinsics program to print out the list of supported ISAs
Diffstat (limited to 'tests')
-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: