-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTest__Intrinsics.cs
51 lines (49 loc) · 3.73 KB
/
Test__Intrinsics.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
namespace TEST;
internal static partial class Program {
static void Test__Intrinsics() {
PRINT("\n[Intrinsics]");
//PRINT($"{}");
//======================================================================================================================================================
PRINT($" Vector128.IsHardwareAccelerated: {System.Runtime.Intrinsics.Vector128.IsHardwareAccelerated}");
PRINT($"");
PRINT($" X86Base: {X86Base .IsSupported,-5} X64: {X86Base .X64.IsSupported }");
PRINT($"");
PRINT($" SSE: {Sse .IsSupported,-5} X64: {Sse .X64.IsSupported }");
PRINT($" SSE2: {Sse2 .IsSupported,-5} X64: {Sse2 .X64.IsSupported,-5} ***");
PRINT($" SSE3: {Sse3 .IsSupported,-5} X64: {Sse3 .X64.IsSupported }");
PRINT($" SSSE3: {Ssse3 .IsSupported,-5} X64: {Ssse3 .X64.IsSupported }");
PRINT($" SSE41: {Sse41 .IsSupported,-5} X64: {Sse41 .X64.IsSupported }");
PRINT($" SSE42: {Sse42 .IsSupported,-5} X64: {Sse42 .X64.IsSupported }");
PRINT($"");
PRINT($" Avx: {Avx .IsSupported,-5} X64: {Avx .X64.IsSupported }");
PRINT($" Avx2: {Avx2 .IsSupported,-5} X64: {Avx2 .X64.IsSupported }");
PRINT($"");
PRINT($" Avx512BW: {Avx512BW .IsSupported,-5} VL: {Avx512BW.VL .IsSupported,-5} X64: {Avx512BW .X64.IsSupported }");
PRINT($" Avx512CD: {Avx512CD .IsSupported,-5} VL: {Avx512CD.VL .IsSupported,-5} X64: {Avx512CD .X64.IsSupported }");
PRINT($" Avx512DQ: {Avx512DQ .IsSupported,-5} VL: {Avx512DQ.VL .IsSupported,-5} X64: {Avx512DQ .X64.IsSupported }");
PRINT($" Avx512F: {Avx512F .IsSupported,-5} VL: {Avx512F.VL .IsSupported,-5} X64: {Avx512F .X64.IsSupported }");
PRINT($" Avx512Vbmi: {Avx512Vbmi .IsSupported,-5} VL: {Avx512Vbmi.VL .IsSupported,-5} X64: {Avx512Vbmi .X64.IsSupported }");
//PRINT($"");
//PRINT($" Avx10v1: {Avx10v1 .IsSupported,-5} X64: {Avx10v1 .X64.IsSupported }");
//PRINT($" Avx10v1.V512: {Avx10v1.V512 .IsSupported,-5} X64: {Avx10v1.V512 .X64.IsSupported }");
//PRINT($"");
//PRINT($" AvxVnni: {AvxVnni .IsSupported,-5} X64: {AvxVnni .X64.IsSupported }");
PRINT($"");
PRINT($" Aes: {Aes .IsSupported,-5} X64: {Aes .X64.IsSupported }");
PRINT($"");
PRINT($" Bmi1: {Bmi1 .IsSupported,-5} X64: {Bmi1 .X64.IsSupported }");
PRINT($" Bmi2: {Bmi2 .IsSupported,-5} X64: {Bmi2 .X64.IsSupported }");
PRINT($"");
PRINT($" Fma: {Fma .IsSupported,-5} X64: {Fma .X64.IsSupported }");
PRINT($"");
PRINT($" Lzcnt: {Lzcnt .IsSupported,-5} X64: {Lzcnt .X64.IsSupported }");
PRINT($"");
PRINT($" Pclmulqdq: {Pclmulqdq .IsSupported,-5} X64: {Pclmulqdq .X64.IsSupported }");
PRINT($"");
PRINT($" Popcnt: {Popcnt .IsSupported,-5} X64: {Popcnt .X64.IsSupported }");
PRINT($"");
PRINT($" X86Serialize: {X86Serialize .IsSupported,-5} X64: {X86Serialize .X64.IsSupported }"); //======================================================================================================================================================
}
}