public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Noah Goldstein <goldstein.w.n@gmail.com>
To: "H.J. Lu" <hjl.tools@gmail.com>
Cc: GNU C Library <libc-alpha@sourceware.org>,
	"Carlos O'Donell" <carlos@systemhalted.org>
Subject: Re: [PATCH v4] x86: Add more feature definitions to isa-level.h
Date: Mon, 27 Jun 2022 21:07:12 -0700	[thread overview]
Message-ID: <CAFUsyf+xRqurx9MD7QtVB-3QdzPtL-rw-0OBKFmbSYvRJ1M8jA@mail.gmail.com> (raw)
In-Reply-To: <CAMe9rOpEJtZ9hfuhxc=M6m+Awiv28TxOAW3tZoZqFjtyZw8XRw@mail.gmail.com>

On Mon, Jun 27, 2022 at 8:59 PM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> On Mon, Jun 27, 2022 at 8:49 PM Noah Goldstein <goldstein.w.n@gmail.com> wrote:
> >
> > This commit doesn't change anything in itself.  It is just to add
> > definitions that will be needed by future patches.
> > ---
> >  sysdeps/x86/isa-level.h | 17 +++++++++++++++++
> >  1 file changed, 17 insertions(+)
> >
> > diff --git a/sysdeps/x86/isa-level.h b/sysdeps/x86/isa-level.h
> > index f293aea906..2cbce25840 100644
> > --- a/sysdeps/x86/isa-level.h
> > +++ b/sysdeps/x86/isa-level.h
> > @@ -67,15 +67,29 @@
> >  /* Depending on the minimum ISA level, a feature check result can be a
> >     compile-time constant.. */
> >
> > +
> > +/* ISA CPU_FEATURE_USABLE_P defaults.  */
>
> What does "defaults" mean? "For X86_ISA_CPU_FEATURE_USABLE_P"?

Done in V5
>
> > +
> >  /* ISA level >= 4 guaranteed includes.  */
> >  #define AVX512F_X86_ISA_LEVEL 4
> >  #define AVX512VL_X86_ISA_LEVEL 4
> >  #define AVX512BW_X86_ISA_LEVEL 4
> > +#define AVX512DQ_X86_ISA_LEVEL 4
> >
> >  /* ISA level >= 3 guaranteed includes.  */
> >  #define AVX_X86_ISA_LEVEL 3
> >  #define AVX2_X86_ISA_LEVEL 3
> >  #define BMI2_X86_ISA_LEVEL 3
> > +#define MOVBE_X86_ISA_LEVEL 3
> > +
> > +/* ISA level >= 2 guaranteed includes.  */
> > +#define SSE4_2_X86_ISA_LEVEL 2
> > +#define SSSE3_X86_ISA_LEVEL 2
> > +
> > +
> > +/* ISA CPU_FEATURES_ARCH_P defaults.  */
>
> "For X86_ISA_CPU_FEATURES_ARCH_P"?

Done in V5
>
> > +
> > +/* Isa level >= 3 feature(s) enabled.  */
>
> No need for this.  Some features may be disabled.

Done in V5
>
> >
> >  /* NB: This feature is enabled when ISA level >= 3, which was disabled
> >     for the following CPUs:
> > @@ -89,6 +103,9 @@
> >     when ISA level < 3.  */
> >  #define Prefer_No_VZEROUPPER_X86_ISA_LEVEL 3
> >
> > +/* Isa level >= 2 feature(s) enabled.  */
>
> These are not features in ISAs.  "Feature(s) enabled when ISA level >= 2"?

Done in V5
>
> > +#define Fast_Unaligned_Load_X86_ISA_LEVEL 2
> > +
> >  /* Both X86_ISA_CPU_FEATURE_USABLE_P and X86_ISA_CPU_FEATURES_ARCH_P
> >     macros are wrappers for the respective CPU_FEATURE{S}_{USABLE|ARCH}_P
> >     runtime checks.  They differ in two ways.
> > --
> > 2.34.1
> >
>
>
> --
> H.J.

  reply	other threads:[~2022-06-28  4:07 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-28  1:04 [PATCH v1] " Noah Goldstein
2022-06-28  1:56 ` H.J. Lu
2022-06-28  2:04   ` Noah Goldstein
2022-06-28  2:03 ` [PATCH v2] " Noah Goldstein
2022-06-28  2:29   ` H.J. Lu
2022-06-28  2:34     ` Noah Goldstein
2022-06-28  2:38       ` H.J. Lu
2022-06-28  2:41         ` Noah Goldstein
2022-06-28  3:03           ` H.J. Lu
2022-06-28  3:26 ` [PATCH v3] " Noah Goldstein
2022-06-28  3:30   ` H.J. Lu
2022-06-28  3:32     ` H.J. Lu
2022-06-28  3:35       ` Noah Goldstein
2022-06-28  3:44         ` H.J. Lu
2022-06-28  3:50           ` Noah Goldstein
2022-06-28  3:49 ` [PATCH v4] " Noah Goldstein
2022-06-28  3:58   ` H.J. Lu
2022-06-28  4:07     ` Noah Goldstein [this message]
2022-06-28  4:07 ` [PATCH v5] " Noah Goldstein
2022-06-28 14:38   ` H.J. Lu

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=CAFUsyf+xRqurx9MD7QtVB-3QdzPtL-rw-0OBKFmbSYvRJ1M8jA@mail.gmail.com \
    --to=goldstein.w.n@gmail.com \
    --cc=carlos@systemhalted.org \
    --cc=hjl.tools@gmail.com \
    --cc=libc-alpha@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).