summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFei Peng <fei.peng@intel.com>2018-12-06 17:42:17 -0800
committerFei Peng <fei.peng@intel.com>2018-12-06 17:42:17 -0800
commit4c9b4f0537bfeb97c3f749bc0bd5c4560f090e9c (patch)
tree4d8f921b109d93a104b19e391357d52b1dc3bea2
parente8d67d23b2edcb2200f2601ac74c421d98b6c97f (diff)
downloadcoreclr-4c9b4f0537bfeb97c3f749bc0bd5c4560f090e9c.tar.gz
coreclr-4c9b4f0537bfeb97c3f749bc0bd5c4560f090e9c.tar.bz2
coreclr-4c9b4f0537bfeb97c3f749bc0bd5c4560f090e9c.zip
Fix a bug that disabled Bmi1/2.X64
-rw-r--r--src/jit/compiler.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/jit/compiler.cpp b/src/jit/compiler.cpp
index 86a85cec52..1e22c929d3 100644
--- a/src/jit/compiler.cpp
+++ b/src/jit/compiler.cpp
@@ -2567,6 +2567,9 @@ void Compiler::compSetProcessor()
if (configEnableISA(InstructionSet_BMI1))
{
opts.setSupportedISA(InstructionSet_BMI1);
+#ifdef _TARGET_AMD64_
+ opts.setSupportedISA(InstructionSet_BMI1_X64);
+#endif
}
}
if (jitFlags.IsSet(JitFlags::JIT_FLAG_USE_BMI2))
@@ -2574,6 +2577,9 @@ void Compiler::compSetProcessor()
if (configEnableISA(InstructionSet_BMI2))
{
opts.setSupportedISA(InstructionSet_BMI2);
+#ifdef _TARGET_AMD64_
+ opts.setSupportedISA(InstructionSet_BMI2_X64);
+#endif
}
}
}