public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: "H.J. Lu" <hjl.tools@gmail.com>
To: Noah Goldstein <goldstein.w.n@gmail.com>
Cc: Florian Weimer <fweimer@redhat.com>,
	 "H.J. Lu via Libc-alpha" <libc-alpha@sourceware.org>,
	Sunil K Pandey <skpgkp2@gmail.com>
Subject: Re: [PATCH] x86-64: Use YMM registers in memcmpeq-evex.S
Date: Thu, 1 Jun 2023 08:54:31 -0700	[thread overview]
Message-ID: <CAMe9rOoD_PGE-gGMSQLAVmr+3ZBjiZBc+Ky81f8rt4HUZVDGOw@mail.gmail.com> (raw)
In-Reply-To: <CAFUsyfKL-D=cdU5qd2a9pakm7GdpVgtFcDzHs0RvzSmib6DY-Q@mail.gmail.com>

On Thu, Jun 1, 2023 at 8:44 AM Noah Goldstein <goldstein.w.n@gmail.com> wrote:
>
> On Thu, Jun 1, 2023 at 12:41 AM Florian Weimer <fweimer@redhat.com> wrote:
> >
> > * H. J. Lu via Libc-alpha:
> >
> > > Include x86-evex256-vecs.h by default to use YMM registers in
> > > memcmpeq-evex.S.
>
> Should we create an evex512 impl?

YMM is good enough for now.   There is no need for ZMM.

> > > ---
> > >  sysdeps/x86_64/multiarch/memcmpeq-evex.S | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/sysdeps/x86_64/multiarch/memcmpeq-evex.S b/sysdeps/x86_64/multiarch/memcmpeq-evex.S
> > > index 3666f649cd..7eefff77f1 100644
> > > --- a/sysdeps/x86_64/multiarch/memcmpeq-evex.S
> > > +++ b/sysdeps/x86_64/multiarch/memcmpeq-evex.S
> > > @@ -42,7 +42,7 @@
> > >  # endif
> > >
> > >  # ifndef VEC_SIZE
> > > -#  include "x86-evex512-vecs.h"
> > > +#  include "x86-evex256-vecs.h"
> > >  # endif
> > >  # include "reg-macros.h"
> >
> > It would be nice if the commit message could describe the why, not just
> > the what. 8-)
> >
>
> We use -evex.S postfix for 256-bit evex. This was mistakenly implemented as
> evex512.
>
>
> > Thanks,
> > Florian
> >



-- 
H.J.

      reply	other threads:[~2023-06-01 15:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-01  3:43 H.J. Lu
2023-06-01  5:41 ` Florian Weimer
2023-06-01 15:44   ` Noah Goldstein
2023-06-01 15:54     ` H.J. Lu [this message]

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=CAMe9rOoD_PGE-gGMSQLAVmr+3ZBjiZBc+Ky81f8rt4HUZVDGOw@mail.gmail.com \
    --to=hjl.tools@gmail.com \
    --cc=fweimer@redhat.com \
    --cc=goldstein.w.n@gmail.com \
    --cc=libc-alpha@sourceware.org \
    --cc=skpgkp2@gmail.com \
    /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).