From f6479ce7c68fac471d59b77fc86c3fc3c09b23a4 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Tue, 20 Aug 2019 21:35:39 +0000 Subject: Vendor import of compiler-rt release_90 branch r369369: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_90@369369 --- lib/builtins/cpu_model.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/builtins/cpu_model.c') diff --git a/lib/builtins/cpu_model.c b/lib/builtins/cpu_model.c index f953aed959e5..940c5938fef5 100644 --- a/lib/builtins/cpu_model.c +++ b/lib/builtins/cpu_model.c @@ -543,7 +543,7 @@ static void getAvailableFeatures(unsigned ECX, unsigned EDX, unsigned MaxLeaf, setFeature(FEATURE_BMI); if (HasLeaf7 && ((EBX >> 5) & 1) && HasAVX) setFeature(FEATURE_AVX2); - if (HasLeaf7 && ((EBX >> 9) & 1)) + if (HasLeaf7 && ((EBX >> 8) & 1)) setFeature(FEATURE_BMI2); if (HasLeaf7 && ((EBX >> 16) & 1) && HasAVX512Save) setFeature(FEATURE_AVX512F); -- cgit v1.2.3