Recognize Vector<T> constructors for small ints
authorCarol Eidt <carol.eidt@microsoft.com>
Thu, 26 May 2016 22:53:14 +0000 (15:53 -0700)
committerCarol Eidt <carol.eidt@microsoft.com>
Thu, 26 May 2016 22:53:14 +0000 (15:53 -0700)
Fix #5116

src/jit/simd.cpp

index 122972a..4536f6d 100644 (file)
@@ -540,8 +540,8 @@ const SIMDIntrinsicInfo* Compiler::getSIMDIntrinsicInfo(CORINFO_CLASS_HANDLE*  i
                         assert(expectedArgType != TYP_UNDEF);
                         if (expectedArgType == TYP_UNKNOWN)
                         {
-                            // JIT maps uint/ulong type vars to TYP_INT/TYP_LONG.                            
-                            expectedArgType = (*baseType == TYP_UINT || *baseType == TYP_ULONG) ? genActualType(*baseType) : *baseType;
+                            // The type of the argument will be genActualType(*baseType).                            
+                            expectedArgType = genActualType(*baseType);
                         }
                     }
                     else