diff options
author | Brian Sullivan <briansul@microsoft.com> | 2017-10-04 10:15:26 -0700 |
---|---|---|
committer | Brian Sullivan <briansul@microsoft.com> | 2017-10-04 10:15:26 -0700 |
commit | 44228205d9ce0c25d6f11638c17cfe07b1d7baab (patch) | |
tree | eb83db68f2e1393005fe3bb2fd63b8538e31586c /src | |
parent | f87c34ccfc93a35407ce15468ee490779ff8e6c0 (diff) | |
download | coreclr-44228205d9ce0c25d6f11638c17cfe07b1d7baab.tar.gz coreclr-44228205d9ce0c25d6f11638c17cfe07b1d7baab.tar.bz2 coreclr-44228205d9ce0c25d6f11638c17cfe07b1d7baab.zip |
Allow X86 Hardware intrinsics for non-Legacy 32-bit x86
Unit tests exisist for this functionality on x86 CoreCLR
[tfs-changeset: 1677287]
Diffstat (limited to 'src')
-rw-r--r-- | src/jit/importer.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/jit/importer.cpp b/src/jit/importer.cpp index f8c9ba54c4..7331007621 100644 --- a/src/jit/importer.cpp +++ b/src/jit/importer.cpp @@ -3762,9 +3762,7 @@ GenTreePtr Compiler::impIntrinsic(GenTreePtr newobjThis, { assert(retNode == nullptr); const NamedIntrinsic ni = lookupNamedIntrinsic(method); -#ifdef _TARGET_AMD64_ - // impX86HWIntrinsic :: Only supported for 64-bit - // +#if defined(_TARGET_XARCH_) && !defined(LEGACY_BACKEND) if (ni > NI_HW_INTRINSIC_START && ni < NI_HW_INTRINSIC_END) { retNode = impX86HWIntrinsic(ni, method, sig); @@ -3992,16 +3990,13 @@ NamedIntrinsic Compiler::lookupNamedIntrinsic(CORINFO_METHOD_HANDLE method) } } -#ifdef _TARGET_AMD64_ - // lookupHWIntrinsicISA :: Only supported for 64-bit - // +#if defined(_TARGET_XARCH_) && !defined(LEGACY_BACKEND) if ((namespaceName != nullptr) && strcmp(namespaceName, "System.Runtime.Intrinsics.X86") == 0) { InstructionSet isa = lookupHWIntrinsicISA(className); result = lookupHWIntrinsic(methodName, isa); } #endif - return result; } |