public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: "H.J. Lu" <hjl.tools@gmail.com>
To: "Pawar, Amit" <Amit.Pawar@amd.com>
Cc: "libc-alpha@sourceware.org" <libc-alpha@sourceware.org>
Subject: Re: [PATCH x86_64] Update memcpy, mempcpy and memmove selection order for Excavator CPU BZ #19583
Date: Fri, 18 Mar 2016 12:34:00 -0000	[thread overview]
Message-ID: <CAMe9rOoYXJQWB_T0SOM9+vj38yTndYknBZyjU3MbdAyc9x+g8A@mail.gmail.com> (raw)
In-Reply-To: <SN1PR12MB0733A07FB69B2EC3831FB091978C0@SN1PR12MB0733.namprd12.prod.outlook.com>

On Fri, Mar 18, 2016 at 5:25 AM, Pawar, Amit <Amit.Pawar@amd.com> wrote:
>>diff --git a/sysdeps/x86_64/multiarch/memcpy.S
>>b/sysdeps/x86_64/multiarch/memcpy.S
>>index 8882590..3c67da8 100644
>>--- a/sysdeps/x86_64/multiarch/memcpy.S
>>+++ b/sysdeps/x86_64/multiarch/memcpy.S
>>@@ -40,7 +40,7 @@ ENTRY(__new_memcpy)
>> #endif
>> 1: lea __memcpy_avx_unaligned(%rip), %RAX_LP
>>  HAS_ARCH_FEATURE (AVX_Fast_Unaligned_Load)
>>- jnz 2f
>>+ jnz 3f
>>  lea __memcpy_sse2_unaligned(%rip), %RAX_LP
>>  HAS_ARCH_FEATURE (Fast_Unaligned_Load)
>>  jnz 2f
>>@@ -52,6 +52,10 @@ ENTRY(__new_memcpy)
>>  jnz 2f
>>  lea __memcpy_ssse3(%rip), %RAX_LP
>> 2: ret
>>+3: HAS_ARCH_FEATURE (Avoid_AVX_Fast_Unaligned_Load)  jz 2b  lea
>>+__memcpy_ssse3_back(%rip), %RAX_LP  ret
>> END(__new_memcpy)
>>
>>This is wrong.  You should check Avoid_AVX_Fast_Unaligned_Load
>>to disable __memcpy_avx_unaligned, not select
>> __memcpy_ssse3_back.  Each selection should be loaded
>>only once.
>
> Now OK?.

No, it isn't fixed.  Avoid_AVX_Fast_Unaligned_Load should
disable __memcpy_avx_unaligned and nothing more.  Also
you need to fix ALL selections.

-- 
H.J.

  reply	other threads:[~2016-03-18 12:34 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-17 10:52 Pawar, Amit
2016-03-17 11:53 ` H.J. Lu
2016-03-17 14:16   ` Pawar, Amit
2016-03-17 14:46     ` H.J. Lu
2016-03-18 11:43       ` Pawar, Amit
2016-03-18 11:51         ` H.J. Lu
2016-03-18 12:25           ` Pawar, Amit
2016-03-18 12:34             ` H.J. Lu [this message]
2016-03-18 13:22               ` Pawar, Amit
2016-03-18 13:51                 ` H.J. Lu
2016-03-18 13:55                   ` Adhemerval Zanella
2016-03-18 14:43                     ` H.J. Lu
2016-03-18 14:45                   ` H.J. Lu
2016-03-18 15:19                     ` Pawar, Amit
2016-03-18 15:24                       ` H.J. Lu
2016-03-22 11:08                         ` Pawar, Amit
2016-03-22 14:50                           ` H.J. Lu
2016-03-22 14:57                             ` Pawar, Amit
2016-03-22 15:03                               ` H.J. Lu
2016-03-23 10:12                                 ` Pawar, Amit
2016-03-23 17:59                                   ` H.J. Lu
2016-03-28  7:43                                     ` Pawar, Amit
2016-03-28 12:12                                       ` 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=CAMe9rOoYXJQWB_T0SOM9+vj38yTndYknBZyjU3MbdAyc9x+g8A@mail.gmail.com \
    --to=hjl.tools@gmail.com \
    --cc=Amit.Pawar@amd.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).