powerpc64le: Fix ifunc selection for memset, memmove, bzero and bcopy
authorRaoni Fassina Firmino <raoni@linux.ibm.com>
Mon, 3 May 2021 19:59:35 +0000 (16:59 -0300)
committerTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Fri, 7 May 2021 18:52:23 +0000 (15:52 -0300)
commit17a73a6d8b4c46f3e87fc53c7c25fa7cec01d707
tree6f8afcb3bf82fe13ff6f3aad2d3d56e4f32f8650
parent310be3cc09d5b1471174bc12f1860169e686bd65
powerpc64le: Fix ifunc selection for memset, memmove, bzero and bcopy

The hwcap2 check for the aforementioned functions should check for
both PPC_FEATURE2_ARCH_3_1 and PPC_FEATURE2_HAS_ISEL but was
mistakenly checking for any one of them, enabling isa 3.1 version of
the functions in incompatible processors, like POWER8.

Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
sysdeps/powerpc/powerpc64/multiarch/bcopy.c
sysdeps/powerpc/powerpc64/multiarch/bzero.c
sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
sysdeps/powerpc/powerpc64/multiarch/memmove.c
sysdeps/powerpc/powerpc64/multiarch/memset.c