public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Sunil Pandey <skpgkp2@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc/release/2.33/master] x86: Add BMI1/BMI2 checks for ISA_V3 check
Date: Tue, 19 Jul 2022 05:54:31 +0000 (GMT)	[thread overview]
Message-ID: <20220719055431.F20E23857BA1@sourceware.org> (raw)

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


                 reply	other threads:[~2022-07-19  5:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220719055431.F20E23857BA1@sourceware.org \
    --to=skpgkp2@sourceware.org \
    --cc=glibc-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).