Marking SSE HWIntrinsics as fully implemented
authorTanner Gooding <tagoo@outlook.com>
Sun, 28 Jan 2018 19:38:03 +0000 (11:38 -0800)
committerTanner Gooding <tagoo@outlook.com>
Sun, 28 Jan 2018 23:45:41 +0000 (15:45 -0800)
src/jit/hwintrinsicxarch.cpp
tests/src/JIT/HardwareIntrinsics/X86/IsSupported.cs

index 3f057ad..d8ac1ae 100644 (file)
@@ -308,7 +308,6 @@ bool Compiler::isFullyImplmentedISAClass(InstructionSet isa)
 {
     switch (isa)
     {
-        case InstructionSet_SSE:
         case InstructionSet_SSE2:
         case InstructionSet_SSE3:
         case InstructionSet_SSSE3:
@@ -323,6 +322,7 @@ bool Compiler::isFullyImplmentedISAClass(InstructionSet isa)
         case InstructionSet_PCLMULQDQ:
             return false;
 
+        case InstructionSet_SSE:
         case InstructionSet_LZCNT:
         case InstructionSet_POPCNT:
             return true;
index bca3803..abdc108 100644 (file)
@@ -14,7 +14,7 @@ namespace IntelHardwareIntrinsicTest
         {
             bool result = true;
 
-            if (Sse.IsSupported)
+            if (Sse.IsSupported && int.TryParse(Environment.GetEnvironmentVariable("COMPlus_EnableIncompleteISAClass"), out var enableIncompleteIsa) && (enableIncompleteIsa != 0))
             {
                 // X86 platforms
                 if (Vector<byte>.Count == 32 && !Avx2.IsSupported)