]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/powerpc/powerpc64/multiarch/memrchr.c
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / sysdeps / powerpc / powerpc64 / multiarch / memrchr.c
index 7603343947a5623322e07b39d218828c3763d07a..240fa2fcb6d7b2d07b42803bba0c4d91ad3c1921 100644 (file)
@@ -1,5 +1,5 @@
 /* Multiple versions of memrchr.
-   Copyright (C) 2013-2016 Free Software Foundation, Inc.
+   Copyright (C) 2013-2019 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 
 extern __typeof (__memrchr) __memrchr_ppc attribute_hidden;
 extern __typeof (__memrchr) __memrchr_power7 attribute_hidden;
+extern __typeof (__memrchr) __memrchr_power8 attribute_hidden;
 
 /* Avoid DWARF definition DIE on ifunc symbol so that GDB can handle
    ifunc symbol properly.  */
 libc_ifunc (__memrchr,
-           (hwcap & PPC_FEATURE_HAS_VSX)
-            ? __memrchr_power7
-            : __memrchr_ppc);
+           (hwcap2 & PPC_FEATURE2_ARCH_2_07)
+           ? __memrchr_power8 :
+             (hwcap & PPC_FEATURE_HAS_VSX)
+             ? __memrchr_power7
+           : __memrchr_ppc);
 
 weak_alias (__memrchr, memrchr)
 #else