Fix HWIntrinsics ifdef
authorCarol Eidt <carol.eidt@microsoft.com>
Thu, 13 Dec 2018 18:12:19 +0000 (10:12 -0800)
committerCarol Eidt <carol.eidt@microsoft.com>
Thu, 13 Dec 2018 18:12:19 +0000 (10:12 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/03bc2388dbf135b9f6a2ab3f929bf09b22ad3530

src/coreclr/src/jit/gentree.cpp

index 0d6ca33..ff0ce41 100644 (file)
@@ -16357,7 +16357,7 @@ GenTree* Compiler::gtGetSIMDZero(var_types simdType, var_types baseType, CORINFO
     unsigned size = genTypeSize(simdType);
     if (isHWSIMD)
     {
-#ifdef _TARGET_XARCH_
+#if defined(_TARGET_XARCH_) && defined(FEATURE_HW_INTRINSICS)
         switch (simdType)
         {
             case TYP_SIMD16:
@@ -16367,7 +16367,7 @@ GenTree* Compiler::gtGetSIMDZero(var_types simdType, var_types baseType, CORINFO
             default:
                 break;
         }
-#endif // _TARGET_XARCH_
+#endif // _TARGET_XARCH_ && FEATURE_HW_INTRINSICS
         JITDUMP("Coudn't find the matching HW intrinsic SIMD type for %s<%s> in gtGetSIMDZero\n", varTypeName(simdType),
                 varTypeName(baseType));
     }