glibc/sysdeps/powerpc/powerpc64/le
Lucas A. M. Magalhaes a55e2da270 powerpc: Optimized memcmp for power10
This patch was based on the __memcmp_power8 and the recent
__strlen_power10.

Improvements from __memcmp_power8:

1. Don't need alignment code.

   On POWER10 lxvp and lxvl do not generate alignment interrupts, so
they are safe for use on caching-inhibited memory.  Notice that the
comparison on the main loop will wait for both VSR to be ready.
Therefore aligning one of the input address does not improve
performance.  In order to align both registers a vperm is necessary
which add too much overhead.

2. Uses new POWER10 instructions

   This code uses lxvp to decrease contention on load by loading 32 bytes
per instruction.
   The vextractbm is used to have a smaller tail code for calculating the
return value.

3. Performance improvement

   This version has around 35% better performance on average. I saw no
performance regressions for any length or alignment.

Thanks Matheus for helping me out with some details.

Co-authored-by: Matheus Castanho <msc@linux.ibm.com>
Reviewed-by: Raphael M Zinsly <rzinsly@linux.ibm.com>
2021-05-31 18:00:20 -03:00
..
fpu powerpc: Add log IFUNC multiarch support for POWER10 2021-04-26 10:10:29 -03:00
multiarch powerpc64*: fix the order of implied sysdeps directories 2018-04-27 16:32:01 -03:00
power7 powerpc64*: fix the order of implied sysdeps directories 2018-04-27 16:32:01 -03:00
power8 powerpc64*: fix the order of implied sysdeps directories 2018-04-27 16:32:01 -03:00
power9 Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
power10 powerpc: Optimized memcmp for power10 2021-05-31 18:00:20 -03:00
configure powerpc64le: blacklist broken GCC compilers (e.g GCC 7.5.0) 2020-04-30 08:52:08 -05:00
configure.ac powerpc64le: blacklist broken GCC compilers (e.g GCC 7.5.0) 2020-04-30 08:52:08 -05:00
dl-hwcap-check.h powerpc64le: Check HWCAP bits against compiler build flags 2021-05-19 11:09:57 +02:00
dl-hwcaps-subdirs.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Implies powerpc64*: fix the order of implied sysdeps directories 2018-04-27 16:32:01 -03:00
Implies-before powerpc64le: Enable support for IEEE long double 2020-04-30 08:52:08 -05:00
Makefile powerpc64le: Add glibc-hwcaps support 2020-12-04 14:50:49 +01:00
no_ldbl_gnu_attribute.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-glibc-hwcaps.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00