aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/x86
diff options
context:
space:
mode:
authorNoah Goldstein <goldstein.w.n@gmail.com>2022-06-16 15:01:08 -0700
committerNoah Goldstein <goldstein.w.n@gmail.com>2022-06-16 20:17:45 -0700
commit8da9f346cb2051844348785b8a932ec44489e0b7 (patch)
treec889dcdc0e6c888c70719b3406fab053d7d926e0 /sysdeps/x86
parent4ef05df5ef70ed8e71c3b9236645b8c601a0b4b4 (diff)
downloadglibc-8da9f346cb2051844348785b8a932ec44489e0b7.zip
glibc-8da9f346cb2051844348785b8a932ec44489e0b7.tar.gz
glibc-8da9f346cb2051844348785b8a932ec44489e0b7.tar.bz2
x86: Add BMI1/BMI2 checks for ISA_V3 check
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`
Diffstat (limited to 'sysdeps/x86')
-rw-r--r--sysdeps/x86/isa-level.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/x86/isa-level.c b/sysdeps/x86/isa-level.c
index a6cb32b..09cd72a 100644
--- a/sysdeps/x86/isa-level.c
+++ b/sysdeps/x86/isa-level.c
@@ -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