powerpc: Optimized strcpy for POWER9

System Internals / glibc - Anton Blanchard via Libc-alpha [sourceware.org] - 18 May 2020 13:26 EDT

This version uses VSX store vector with length instructions and is significantly faster on small strings and relatively unaligned large strings, compared to the POWER8 version. A few examples:

__strcpy_power9 __strcpy_power8 Length 16, alignments in bytes 0/ 0: 2.52454 4.62695 Length 412, alignments in bytes 4/ 0: 11.6 22.9185

3903704850 powerpc: Optimized strcpy for POWER9
sysdeps/powerpc/powerpc64/le/power9/strcpy.S | 144 +++++++++++++++++++++
sysdeps/powerpc/powerpc64/multiarch/Makefile | 2 +-
.../powerpc/powerpc64/multiarch/ifunc-impl-list.c | 4 +
.../powerpc/powerpc64/multiarch/strcpy-power9.S | 26 ++++
sysdeps/powerpc/powerpc64/multiarch/strcpy.c | 7 +
5 files changed, 182 insertions(+), 1 deletion(-)

Upstream: sourceware.org


  • Share