]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
PowerPC: Add ifunc tests for memmove
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Tue, 8 Jul 2014 13:35:44 +0000 (08:35 -0500)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Thu, 28 Aug 2014 13:30:42 +0000 (09:30 -0400)
This patch add the missing ifunc tests definition for memmove ppc32
optimization patch (commit 07aedd7).

This is a backport of 91f4b564bd7bedcd93e7047cad570ce292d6330b.

ChangeLog
sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c

index 3c12f8deab5758b56a6193654623e3f8dfaa4beb..547dd56d1574da75e10ef15ed765ac5b7e8284ad 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
+
+       * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
+       (__libc_ifunc_impl_list): Add memmove functions.
+
 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
 
        * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
index 8ba6a80275609c15359fa60570a0d97a87fe6910..38bf28e4f9c3a3791dc497b7bfcbcf1c17e6e893 100644 (file)
@@ -59,6 +59,12 @@ __libc_ifunc_impl_list (const char *name, struct libc_ifunc_impl *array,
                              __memcpy_cell)
              IFUNC_IMPL_ADD (array, i, memcpy, 1, __memcpy_ppc))
 
+  /* Support sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c.  */
+  IFUNC_IMPL (i, name, memmove,
+             IFUNC_IMPL_ADD (array, i, memmove, hwcap & PPC_FEATURE_HAS_VSX,
+                             __memmove_power7)
+             IFUNC_IMPL_ADD (array, i, memmove, 1, __memmove_ppc))
+
   /* Support sysdeps/powerpc/powerpc32/power4/multiarch/memset.c.  */
   IFUNC_IMPL (i, name, memset,
              IFUNC_IMPL_ADD (array, i, memset, hwcap & PPC_FEATURE_HAS_VSX,