]> git.ipfire.org Git - thirdparty/glibc.git/commit
powerpc: Optimized strcmp for power10
authorAmrita H S <amritahs@linux.vnet.ibm.com>
Wed, 6 Dec 2023 16:43:11 +0000 (11:43 -0500)
committerRajalakshmi Srinivasaraghavan <rajis@linux.ibm.com>
Thu, 7 Dec 2023 17:10:40 +0000 (11:10 -0600)
commit3367d8e180848030d1646f088759f02b8dfe0d6f
tree1300c2911e4f08b4861bf144b6bcbc54e193b51b
parent546a1ba664626603660b595662249d524e429013
powerpc: Optimized strcmp for power10

This patch is based on __strcmp_power9 and __strlen_power10.

Improvements from __strcmp_power9:

    1. Uses new POWER10 instructions
       - This code uses lxvp to decrease contention on load
         by loading 32 bytes per instruction.

    2. Performance implication
       - This version has around 30% better performance on average.
       - Performance regression is seen for a specific combination
         of sizes and alignments. Some of them is observed without
         changes also, while rest may be induced by the patch.

Signed-off-by: Amrita H S <amritahs@linux.vnet.ibm.com>
Reviewed-by: Paul E. Murphy <murphyp@linux.ibm.com>
sysdeps/powerpc/powerpc64/le/power10/strcmp.S [new file with mode: 0644]
sysdeps/powerpc/powerpc64/multiarch/Makefile
sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
sysdeps/powerpc/powerpc64/multiarch/strcmp-power10.S [new file with mode: 0644]
sysdeps/powerpc/powerpc64/multiarch/strcmp.c