diff options
author | Steve MacLean <sdmaclea.qdt@qualcommdatacenter.com> | 2017-10-12 17:31:40 -0400 |
---|---|---|
committer | Steve MacLean <sdmaclea.qdt@qualcommdatacenter.com> | 2017-10-12 17:50:28 -0400 |
commit | a064ed148e6670238a806f763516e740cb37eaeb (patch) | |
tree | 55501aab9767c07f53ad84285ec046f8432c2f10 /tests | |
parent | 248819b8360ac9b0961c9064c8c4f9f31e72f9a1 (diff) | |
download | coreclr-a064ed148e6670238a806f763516e740cb37eaeb.tar.gz coreclr-a064ed148e6670238a806f763516e740cb37eaeb.tar.bz2 coreclr-a064ed148e6670238a806f763516e740cb37eaeb.zip |
Fix JIT/HardwareIntrinsics/IsSupported.cs
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/JIT/HardwareIntrinsics/IsSupported.cs | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/tests/src/JIT/HardwareIntrinsics/IsSupported.cs b/tests/src/JIT/HardwareIntrinsics/IsSupported.cs index 7e92f189c4..e828a4461e 100644 --- a/tests/src/JIT/HardwareIntrinsics/IsSupported.cs +++ b/tests/src/JIT/HardwareIntrinsics/IsSupported.cs @@ -54,19 +54,22 @@ namespace IntelHardwareIntrinsicTest } } - if (Vector<byte>.Count == 32 && !Avx2.IsSupported) + if (Sse.IsSupported) { - result = false; - } + // X86 platforms + if (Vector<byte>.Count == 32 && !Avx2.IsSupported) + { + result = false; + } - if (Vector<byte>.Count == 16 && Vector.IsHardwareAccelerated && !Sse2.IsSupported) - { - result = false; + if (Vector<byte>.Count == 16 && Vector.IsHardwareAccelerated && !Sse2.IsSupported) + { + result = false; + } } - - // Non-X86 platforms - if (!(Sse.IsSupported)) + else { + // Non-X86 platforms if (Sse2.IsSupported || Sse3.IsSupported || Ssse3.IsSupported || @@ -111,4 +114,4 @@ namespace IntelHardwareIntrinsicTest } } -}
\ No newline at end of file +} |