public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/release/2.33/master] x86: Add BMI1/BMI2 checks for ISA_V3 check
@ 2022-07-19 5:54 Sunil Pandey
0 siblings, 0 replies; only message in thread
From: Sunil Pandey @ 2022-07-19 5:54 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=e063a461a54a05ebdd8234b0d5c68d923f968be6
commit e063a461a54a05ebdd8234b0d5c68d923f968be6
Author: Noah Goldstein <goldstein.w.n@gmail.com>
Date: Thu Jun 16 15:01:08 2022 -0700
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`
(cherry picked from commit 8da9f346cb2051844348785b8a932ec44489e0b7)
Diff:
---
sysdeps/x86/isa-level.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sysdeps/x86/isa-level.c b/sysdeps/x86/isa-level.c
index 49ef4aa612..0781538112 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-07-19 5:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-19 5:54 [glibc/release/2.33/master] x86: Add BMI1/BMI2 checks for ISA_V3 check Sunil Pandey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).