about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2022-10-03 23:46:11 +0200
committerAurelien Jarno <aurelien@aurel32.net>2022-10-03 23:47:49 +0200
commit18bec23cbb4d530a2a8ce95353770661fabcd55f (patch)
tree6989aa6831ca52a07b8ec1fb7a6e2b3e5146c298 /sysdeps
parentcdc496eb55e30f8f2461bedb0a7381c0a7a3d3ae (diff)
downloadglibc-18bec23cbb4d530a2a8ce95353770661fabcd55f.tar.gz
glibc-18bec23cbb4d530a2a8ce95353770661fabcd55f.tar.xz
glibc-18bec23cbb4d530a2a8ce95353770661fabcd55f.zip
x86: include BMI1 and BMI2 in x86-64-v3 level
The "System V Application Binary Interface AMD64 Architecture Processor
Supplement" mandates the BMI1 and BMI2 CPU features for the x86-64-v3
level.

Reviewed-by: Noah Goldstein  <goldstein.w.n@gmail.com>
(cherry picked from commit b80f16adbd979831bf25ea491e1261e81885c2b6)
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/x86/get-isa-level.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/x86/get-isa-level.h b/sysdeps/x86/get-isa-level.h
index 1ade78ab73..5b4dd5f062 100644
--- a/sysdeps/x86/get-isa-level.h
+++ b/sysdeps/x86/get-isa-level.h
@@ -47,6 +47,8 @@ get_isa_level (const struct cpu_features *cpu_features)
 	  isa_level |= GNU_PROPERTY_X86_ISA_1_V2;
 	  if (CPU_FEATURE_USABLE_P (cpu_features, AVX)
 	      && CPU_FEATURE_USABLE_P (cpu_features, AVX2)
+	      && CPU_FEATURE_USABLE_P (cpu_features, BMI1)
+	      && CPU_FEATURE_USABLE_P (cpu_features, BMI2)
 	      && CPU_FEATURE_USABLE_P (cpu_features, F16C)
 	      && CPU_FEATURE_USABLE_P (cpu_features, FMA)
 	      && CPU_FEATURE_USABLE_P (cpu_features, LZCNT)