glibc/sysdeps
Lucas A. M. Magalhaes dd59655e93 powerpc64le: Optimized memmove for POWER10
This patch was initially based on the __memmove_power7 with some ideas
from strncpy implementation for Power 9.

Improvements from __memmove_power7:

1. Use lxvl/stxvl for alignment code.

   The code for Power 7 uses branches when the input is not naturally
   aligned to the width of a vector. The new implementation uses
   lxvl/stxvl instead which reduces pressure on GPRs. It also allows
   the removal of branch instructions, implicitly removing branch stalls
   and mispredictions.

2. Use of lxv/stxv and lxvl/stxvl pair is safe to use on Cache Inhibited
   memory.

   On Power 10 vector load and stores are safe to use on CI memory for
   addresses unaligned to 16B. This code takes advantage of this to
   do unaligned loads.

   The unaligned loads don't have a significant performance impact by
   themselves. However doing so decreases register pressure on GPRs
   and interdependence stalls on load/store pairs. This also improved
   readability as there are now less code paths for different alignments.
   Finally this reduces the overall code size.

3. Improved performance.

   This version runs on average about 30% better than memmove_power7
   for lengths  larger than 8KB. For input lengths shorter than 8KB
   the improvement is smaller, it has on average about 17% better
   performance.

   This version has a degradation of about 50% for input lengths
   in the 0 to 31 bytes range when dest is unaligned.

Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2021-04-30 18:12:08 -03:00
..
aarch64 elf: Remove lazy tlsdesc relocation related code 2021-04-21 14:35:53 +01:00
alpha nptl: Move pthread_spin_trylock into libc 2021-04-23 17:06:48 +02:00
arc ARC: Update ulps 2021-04-14 09:24:45 -07:00
arm nptl: Move __pthread_unwind_next into libc 2021-04-21 19:49:50 +02:00
csky Reduce the statically linked startup code [BZ #23323] 2021-02-25 12:13:02 +01:00
generic elf: Introduce __tls_init_tp for second-phase TCB initialization 2021-04-21 19:49:51 +02:00
gnu Move sysdeps/gnu/unwind-resume.c to sysdeps/generic/unwind-resume.c 2021-03-01 15:59:49 +01:00
hppa nptl: Move pthread_spin_init, Move pthread_spin_unlock into libc 2021-04-23 17:06:44 +02:00
htl Add __attribute_access_none to disable GCC warnings [BZ #27714] 2021-04-27 13:01:55 -06:00
hurd Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
i386 nptl: Move pthread_spin_trylock into libc 2021-04-23 17:06:48 +02:00
ia64 nptl: Move pthread_spin_trylock into libc 2021-04-23 17:06:48 +02:00
ieee754 Improve the accuracy of tgamma (BZ #26983) 2021-04-07 13:23:39 +02:00
m68k m68: Fix build after 9acda61d94 2021-04-06 15:10:31 -03:00
mach hurd: Export _hurd_libc_proc_init 2021-04-12 00:23:36 +02:00
microblaze Reduce the statically linked startup code [BZ #23323] 2021-02-25 12:13:02 +01:00
mips Implement <unwind-link.h> for dynamically loading the libgcc_s unwinder 2021-03-01 15:58:01 +01:00
nios2 Update Nios II libm-test-ulps. 2021-04-01 19:41:40 +00:00
nptl Add __attribute_access_none to disable GCC warnings [BZ #27714] 2021-04-27 13:01:55 -06:00
posix nptl: Move pthread_setcancelstate into libc 2021-04-21 19:49:50 +02:00
powerpc powerpc64le: Optimized memmove for POWER10 2021-04-30 18:12:08 -03:00
pthread Pass a valid pointer to pthread_setspecific to avoid GCC 11 warning. 2021-04-27 19:07:49 -06:00
riscv Reduce the statically linked startup code [BZ #23323] 2021-02-25 12:13:02 +01:00
s390 s390: Update ulps 2021-04-15 11:05:43 +02:00
sh nptl: Move pthread_spin_trylock into libc 2021-04-23 17:06:48 +02:00
sparc nptl: Move pthread_spin_trylock into libc 2021-04-23 17:06:48 +02:00
unix Update kernel version to 5.12 in tst-mman-consts.py. 2021-04-29 10:50:11 +00:00
wordsize-32 Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
wordsize-64 Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
x86 x86: tst-cpu-features-supports.c: Update AMX check 2021-04-22 10:09:49 -07:00
x86_64 regenerate ulps on x86_64 with -march=native 2021-04-28 12:46:00 +02:00