diff options
author | Pat Gavlin <pagavlin@microsoft.com> | 2016-11-07 12:08:00 -0800 |
---|---|---|
committer | Pat Gavlin <pagavlin@microsoft.com> | 2016-11-07 12:08:00 -0800 |
commit | c77bad138743faa096aa55d364b6bbed6b6c6709 (patch) | |
tree | a93eea76a61a49926d9d52a82a4cc17dba64e218 /src/zap/zapper.cpp | |
parent | b17e2d01bfe1c714de86b3455c80bfb6b9598e13 (diff) | |
download | coreclr-c77bad138743faa096aa55d364b6bbed6b6c6709.tar.gz coreclr-c77bad138743faa096aa55d364b6bbed6b6c6709.tar.bz2 coreclr-c77bad138743faa096aa55d364b6bbed6b6c6709.zip |
Change crossgen to always pass USE_SSE2 to the JIT.
.NET Core and the RyuJIT x86/x64 backends require SSE2. Always pass this
flag to the JIT.
Diffstat (limited to 'src/zap/zapper.cpp')
-rw-r--r-- | src/zap/zapper.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/zap/zapper.cpp b/src/zap/zapper.cpp index 71f3436391..2c7023a400 100644 --- a/src/zap/zapper.cpp +++ b/src/zap/zapper.cpp @@ -3382,10 +3382,15 @@ void Zapper::InitializeCompilerFlags(CORCOMPILE_VERSION_INFO * pVersionInfo) m_pOpt->m_compilerFlags.Set(CORJIT_FLAGS::CORJIT_FLAG_USE_FCOMI); } +#if !defined(FEATURE_CORECLR) if (CPU_X86_USE_SSE2(pVersionInfo->cpuInfo.dwFeatures)) { m_pOpt->m_compilerFlags.Set(CORJIT_FLAGS::CORJIT_FLAG_USE_SSE2); } +#else + // .NET Core requires SSE2. + m_pOpt->m_compilerFlags.Set(CORJIT_FLAGS::CORJIT_FLAG_USE_SSE2); +#endif // !defined(FEATURE_CORECLR) #endif // _TARGET_X86_ |