LoongArch: Add ifunc support for strcmp{aligned, lsx}
authordengjianbo <dengjianbo@loongson.cn>
Thu, 24 Aug 2023 08:50:18 +0000 (16:50 +0800)
committercaiyinyu <caiyinyu@loongson.cn>
Thu, 24 Aug 2023 09:19:47 +0000 (17:19 +0800)
commit82d9426e4a1a500b90b05457574dee1afe1408f8
tree56da9c4a7c8d98566e359c0a3a4c7f88b90132e2
parente74d959862db0e97a1a186ffe606e8fb6c93c309
LoongArch: Add ifunc support for strcmp{aligned, lsx}

Based on the glibc microbenchmark, strcmp-aligned implementation could
reduce the runtime 0%-10% for aligned comparison, 10%-20% for unaligned
comparison, strcmp-lsx implemenation could reduce the runtime 0%-50%.
sysdeps/loongarch/lp64/multiarch/Makefile
sysdeps/loongarch/lp64/multiarch/ifunc-impl-list.c
sysdeps/loongarch/lp64/multiarch/ifunc-strcmp.h [new file with mode: 0644]
sysdeps/loongarch/lp64/multiarch/strcmp-aligned.S [new file with mode: 0644]
sysdeps/loongarch/lp64/multiarch/strcmp-lsx.S [new file with mode: 0644]
sysdeps/loongarch/lp64/multiarch/strcmp.c [new file with mode: 0644]