Fix for x86 JIT build break
authorBrian Sullivan <briansul@microsoft.com>
Tue, 3 Oct 2017 21:58:17 +0000 (14:58 -0700)
committerBrian Sullivan <briansul@microsoft.com>
Tue, 3 Oct 2017 21:58:17 +0000 (14:58 -0700)
[tfs-changeset: 1677224]

src/jit/importer.cpp

index 2ec873e23cea23bc54b5d322192dbd85d88a64e9..f8c9ba54c4f80e05952641f9c4a88cfb28b7241c 100644 (file)
@@ -3762,7 +3762,9 @@ GenTreePtr Compiler::impIntrinsic(GenTreePtr            newobjThis,
     {
         assert(retNode == nullptr);
         const NamedIntrinsic ni = lookupNamedIntrinsic(method);
-#ifdef _TARGET_XARCH_
+#ifdef _TARGET_AMD64_
+        // impX86HWIntrinsic :: Only supported for 64-bit
+        //
         if (ni > NI_HW_INTRINSIC_START && ni < NI_HW_INTRINSIC_END)
         {
             retNode = impX86HWIntrinsic(ni, method, sig);
@@ -3990,13 +3992,16 @@ NamedIntrinsic Compiler::lookupNamedIntrinsic(CORINFO_METHOD_HANDLE method)
         }
     }
 
-#ifdef _TARGET_XARCH_
+#ifdef _TARGET_AMD64_
+    // lookupHWIntrinsicISA :: Only supported for 64-bit
+    //
     if ((namespaceName != nullptr) && strcmp(namespaceName, "System.Runtime.Intrinsics.X86") == 0)
     {
         InstructionSet isa = lookupHWIntrinsicISA(className);
         result             = lookupHWIntrinsic(methodName, isa);
     }
 #endif
+
     return result;
 }