powerpc64: Add checks for Altivec and VSX in ifunc selection
authorAnton Blanchard <anton@ozlabs.org>
Tue, 27 Jul 2021 05:47:51 +0000 (15:47 +1000)
committerTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Fri, 6 Aug 2021 19:10:08 +0000 (16:10 -0300)
commit60b4dd25790342b40e8942e3a4115f511a6b6911
tree3e2684b2432e8fe0ff9f65fa66cb238112309a0b
parentf2a15dd668913c5a1388ba7e1131b25162b2ea75
powerpc64: Add checks for Altivec and VSX in ifunc selection

We'd like to support processors without Altivec or VSX, so check
the relevant hwcap bits before selecting them.

Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
26 files changed:
sysdeps/powerpc/powerpc64/multiarch/bzero.c
sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
sysdeps/powerpc/powerpc64/multiarch/memchr.c
sysdeps/powerpc/powerpc64/multiarch/memcmp.c
sysdeps/powerpc/powerpc64/multiarch/memcpy.c
sysdeps/powerpc/powerpc64/multiarch/memmove.c
sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
sysdeps/powerpc/powerpc64/multiarch/memrchr.c
sysdeps/powerpc/powerpc64/multiarch/memset.c
sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c
sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c
sysdeps/powerpc/powerpc64/multiarch/strcasestr.c
sysdeps/powerpc/powerpc64/multiarch/strcat.c
sysdeps/powerpc/powerpc64/multiarch/strchr.c
sysdeps/powerpc/powerpc64/multiarch/strchrnul.c
sysdeps/powerpc/powerpc64/multiarch/strcmp.c
sysdeps/powerpc/powerpc64/multiarch/strcpy.c
sysdeps/powerpc/powerpc64/multiarch/strcspn.c
sysdeps/powerpc/powerpc64/multiarch/strlen.c
sysdeps/powerpc/powerpc64/multiarch/strncase.c
sysdeps/powerpc/powerpc64/multiarch/strncat.c
sysdeps/powerpc/powerpc64/multiarch/strncmp.c
sysdeps/powerpc/powerpc64/multiarch/strnlen.c
sysdeps/powerpc/powerpc64/multiarch/strrchr.c
sysdeps/powerpc/powerpc64/multiarch/strspn.c