diff --git a/src/jit/importer.cpp b/src/jit/importer.cpp index 2ec873e23cea..73310076211a 100644 --- a/src/jit/importer.cpp +++ b/src/jit/importer.cpp @@ -3762,7 +3762,7 @@ GenTreePtr Compiler::impIntrinsic(GenTreePtr newobjThis, { assert(retNode == nullptr); const NamedIntrinsic ni = lookupNamedIntrinsic(method); -#ifdef _TARGET_XARCH_ +#if defined(_TARGET_XARCH_) && !defined(LEGACY_BACKEND) if (ni > NI_HW_INTRINSIC_START && ni < NI_HW_INTRINSIC_END) { retNode = impX86HWIntrinsic(ni, method, sig); @@ -3990,7 +3990,7 @@ NamedIntrinsic Compiler::lookupNamedIntrinsic(CORINFO_METHOD_HANDLE method) } } -#ifdef _TARGET_XARCH_ +#if defined(_TARGET_XARCH_) && !defined(LEGACY_BACKEND) if ((namespaceName != nullptr) && strcmp(namespaceName, "System.Runtime.Intrinsics.X86") == 0) { InstructionSet isa = lookupHWIntrinsicISA(className);