]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
x86: Add BMI1/BMI2 checks for ISA_V3 check
authorNoah Goldstein <goldstein.w.n@gmail.com>
Thu, 16 Jun 2022 22:01:08 +0000 (15:01 -0700)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Fri, 17 Jun 2022 03:17:45 +0000 (20:17 -0700)
BMI1/BMI2 are part of the ISA V3 requirements:
https://en.wikipedia.org/wiki/X86-64

And defined by GCC when building with `-march=x86-64-v3`

sysdeps/x86/isa-level.c

index a6cb32b1b16918a664b91453586ff0b6686ae27a..09cd72ab20ca6f8670b248d3709534b43c6cd7ad 100644 (file)
@@ -47,7 +47,8 @@
 # endif
 
 # if ISA_V2 && defined __AVX__ && defined __AVX2__ && defined __F16C__ \
-     && defined __FMA__ && defined __LZCNT__ && defined HAVE_X86_MOVBE
+     && defined __FMA__ && defined __LZCNT__ && defined HAVE_X86_MOVBE \
+     && defined __BMI__ && defined __BMI2__
 /* NB: ISAs in x86-64 ISA level v3 are used.  */
 #  define ISA_V3       GNU_PROPERTY_X86_ISA_1_V3
 # else