diff options
author | Stefan Liebler <stli@linux.ibm.com> | 2021-03-23 17:29:26 +0100 |
---|---|---|
committer | Stefan Liebler <stli@linux.ibm.com> | 2021-03-26 10:58:56 +0100 |
commit | fc4ecce85b5ce10f64ae1328f4105ace8d7b7b67 (patch) | |
tree | 908fcfa60024b66082fc5a9cd731ff8b9ef7059b /sysdeps/s390/multiarch | |
parent | db32fc27e7bdfb5468200a94e9152bcc1c971d25 (diff) | |
download | glibc-fc4ecce85b5ce10f64ae1328f4105ace8d7b7b67.tar.gz glibc-fc4ecce85b5ce10f64ae1328f4105ace8d7b7b67.tar.xz glibc-fc4ecce85b5ce10f64ae1328f4105ace8d7b7b67.zip |
S390: Also check vector support in memmove ifunc-selector [BZ #27511]
The arch13 memmove variant is currently selected by the ifunc selector if the Miscellaneous-Instruction-Extensions Facility 3 facility bit is present, but the function is also using vector instructions. If the vector support is not present, one is receiving an operation exception. Therefore this patch also checks for vector support in the ifunc selector and in ifunc-impl-list.c. Just to be sure, the configure check is now also testing an arch13 vector instruction and an arch13 Miscellaneous-Instruction-Extensions Facility 3 instruction. (cherry picked from commit 7759be2593b689cb1eafc0f52ee7f59c639e5d2f)
Diffstat (limited to 'sysdeps/s390/multiarch')
-rw-r--r-- | sysdeps/s390/multiarch/ifunc-impl-list.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/s390/multiarch/ifunc-impl-list.c b/sysdeps/s390/multiarch/ifunc-impl-list.c index 4b170e4459..2ef38b72dd 100644 --- a/sysdeps/s390/multiarch/ifunc-impl-list.c +++ b/sysdeps/s390/multiarch/ifunc-impl-list.c @@ -171,7 +171,8 @@ __libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array, IFUNC_IMPL (i, name, memmove, # if HAVE_MEMMOVE_ARCH13 IFUNC_IMPL_ADD (array, i, memmove, - S390_IS_ARCH13_MIE3 (stfle_bits), + ((dl_hwcap & HWCAP_S390_VXRS_EXT2) + && S390_IS_ARCH13_MIE3 (stfle_bits)), MEMMOVE_ARCH13) # endif # if HAVE_MEMMOVE_Z13 |