lib: check for BMI2 on the AVX2 interface
@@ -50,7 +50,8 @@ init_mb_mgr_auto(IMB_MGR *state, IMB_ARCH *arch)
IMB_FEATURE_AESNI | IMB_FEATURE_PCLMULQDQ;
const uint64_t detect_avx =
IMB_FEATURE_AVX | IMB_FEATURE_CMOV | IMB_FEATURE_AESNI;
- const uint64_t detect_avx2 = IMB_FEATURE_AVX2 | detect_avx;
+ const uint64_t detect_avx2 = IMB_FEATURE_AVX2 | IMB_FEATURE_BMI2 |
+ detect_avx;
const uint64_t detect_avx512 = IMB_FEATURE_AVX512_SKX | detect_avx2;
/* reset error status */
