|
|
ce426f |
commit df782dc690775d93b0cc1076655a9b92b5a44ad0
|
|
|
ce426f |
Author: Andrew Senkevich <andrew.senkevich@intel.com>
|
|
|
ce426f |
Date: Tue Jan 19 14:34:53 2016 +0300
|
|
|
ce426f |
|
|
|
ce426f |
Fixed build with assembler w/o AVX-512 support.
|
|
|
ce426f |
|
|
|
ce426f |
* sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
|
|
|
ce426f |
assembler not supporting AVX-512.
|
|
|
ce426f |
|
|
|
ce426f |
Index: glibc-2.17-c758a686/sysdeps/x86_64/multiarch/ifunc-impl-list.c
|
|
|
ce426f |
===================================================================
|
|
|
ce426f |
--- glibc-2.17-c758a686.orig/sysdeps/x86_64/multiarch/ifunc-impl-list.c
|
|
|
ce426f |
+++ glibc-2.17-c758a686/sysdeps/x86_64/multiarch/ifunc-impl-list.c
|
|
|
ce426f |
@@ -48,9 +48,11 @@ __libc_ifunc_impl_list (const char *name
|
|
|
ce426f |
|
|
|
ce426f |
/* Support sysdeps/x86_64/multiarch/memmove_chk.c. */
|
|
|
ce426f |
IFUNC_IMPL (i, name, __memmove_chk,
|
|
|
ce426f |
+#ifdef HAVE_AVX512_ASM_SUPPORT
|
|
|
ce426f |
IFUNC_IMPL_ADD (array, i, __memmove_chk,
|
|
|
ce426f |
HAS_ARCH_FEATURE (AVX512F_Usable),
|
|
|
ce426f |
__memmove_chk_avx512_no_vzeroupper)
|
|
|
ce426f |
+#endif
|
|
|
ce426f |
IFUNC_IMPL_ADD (array, i, __memmove_chk, HAS_CPU_FEATURE (SSSE3),
|
|
|
ce426f |
__memmove_chk_ssse3_back)
|
|
|
ce426f |
IFUNC_IMPL_ADD (array, i, __memmove_chk, HAS_CPU_FEATURE (SSSE3),
|
|
|
ce426f |
@@ -60,9 +62,11 @@ __libc_ifunc_impl_list (const char *name
|
|
|
ce426f |
|
|
|
ce426f |
/* Support sysdeps/x86_64/multiarch/memmove.S. */
|
|
|
ce426f |
IFUNC_IMPL (i, name, memmove,
|
|
|
ce426f |
+#ifdef HAVE_AVX512_ASM_SUPPORT
|
|
|
ce426f |
IFUNC_IMPL_ADD (array, i, memmove,
|
|
|
ce426f |
HAS_ARCH_FEATURE (AVX512F_Usable),
|
|
|
ce426f |
__memmove_avx512_no_vzeroupper)
|
|
|
ce426f |
+#endif
|
|
|
ce426f |
IFUNC_IMPL_ADD (array, i, memmove, HAS_CPU_FEATURE (SSSE3),
|
|
|
ce426f |
__memmove_ssse3_back)
|
|
|
ce426f |
IFUNC_IMPL_ADD (array, i, memmove, HAS_CPU_FEATURE (SSSE3),
|
|
|
ce426f |
@@ -269,9 +273,11 @@ __libc_ifunc_impl_list (const char *name
|
|
|
ce426f |
#ifdef SHARED
|
|
|
ce426f |
/* Support sysdeps/x86_64/multiarch/memcpy_chk.S. */
|
|
|
ce426f |
IFUNC_IMPL (i, name, __memcpy_chk,
|
|
|
ce426f |
+#ifdef HAVE_AVX512_ASM_SUPPORT
|
|
|
ce426f |
IFUNC_IMPL_ADD (array, i, __memcpy_chk,
|
|
|
ce426f |
HAS_ARCH_FEATURE (AVX512F_Usable),
|
|
|
ce426f |
__memcpy_chk_avx512_no_vzeroupper)
|
|
|
ce426f |
+#endif
|
|
|
ce426f |
IFUNC_IMPL_ADD (array, i, __memcpy_chk, HAS_CPU_FEATURE (SSSE3),
|
|
|
ce426f |
__memcpy_chk_ssse3_back)
|
|
|
ce426f |
IFUNC_IMPL_ADD (array, i, __memcpy_chk, HAS_CPU_FEATURE (SSSE3),
|
|
|
ce426f |
@@ -285,16 +291,20 @@ __libc_ifunc_impl_list (const char *name
|
|
|
ce426f |
__memcpy_ssse3_back)
|
|
|
ce426f |
IFUNC_IMPL_ADD (array, i, memcpy, HAS_CPU_FEATURE (SSSE3),
|
|
|
ce426f |
__memcpy_ssse3)
|
|
|
ce426f |
+#ifdef HAVE_AVX512_ASM_SUPPORT
|
|
|
ce426f |
IFUNC_IMPL_ADD (array, i, memcpy,
|
|
|
ce426f |
HAS_ARCH_FEATURE (AVX512F_Usable),
|
|
|
ce426f |
__memcpy_avx512_no_vzeroupper)
|
|
|
ce426f |
+#endif
|
|
|
ce426f |
IFUNC_IMPL_ADD (array, i, memcpy, 1, __memcpy_sse2))
|
|
|
ce426f |
|
|
|
ce426f |
/* Support sysdeps/x86_64/multiarch/mempcpy_chk.S. */
|
|
|
ce426f |
IFUNC_IMPL (i, name, __mempcpy_chk,
|
|
|
ce426f |
+#ifdef HAVE_AVX512_ASM_SUPPORT
|
|
|
ce426f |
IFUNC_IMPL_ADD (array, i, __mempcpy_chk,
|
|
|
ce426f |
HAS_ARCH_FEATURE (AVX512F_Usable),
|
|
|
ce426f |
__mempcpy_chk_avx512_no_vzeroupper)
|
|
|
ce426f |
+#endif
|
|
|
ce426f |
IFUNC_IMPL_ADD (array, i, __mempcpy_chk, HAS_CPU_FEATURE (SSSE3),
|
|
|
ce426f |
__mempcpy_chk_ssse3_back)
|
|
|
ce426f |
IFUNC_IMPL_ADD (array, i, __mempcpy_chk, HAS_CPU_FEATURE (SSSE3),
|
|
|
ce426f |
@@ -304,9 +314,11 @@ __libc_ifunc_impl_list (const char *name
|
|
|
ce426f |
|
|
|
ce426f |
/* Support sysdeps/x86_64/multiarch/mempcpy.S. */
|
|
|
ce426f |
IFUNC_IMPL (i, name, mempcpy,
|
|
|
ce426f |
+#ifdef HAVE_AVX512_ASM_SUPPORT
|
|
|
ce426f |
IFUNC_IMPL_ADD (array, i, mempcpy,
|
|
|
ce426f |
HAS_ARCH_FEATURE (AVX512F_Usable),
|
|
|
ce426f |
__mempcpy_avx512_no_vzeroupper)
|
|
|
ce426f |
+#endif
|
|
|
ce426f |
IFUNC_IMPL_ADD (array, i, mempcpy, HAS_CPU_FEATURE (SSSE3),
|
|
|
ce426f |
__mempcpy_ssse3_back)
|
|
|
ce426f |
IFUNC_IMPL_ADD (array, i, mempcpy, HAS_CPU_FEATURE (SSSE3),
|