diff options
author | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2013-09-05 09:32:56 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2014-01-06 08:39:38 -0500 |
commit | 6c42eca168f60bc50ed5e57ce59d1bfdf19120e2 (patch) | |
tree | 9e671e70c10cd212ae9ae6f8db66a9dbb5530838 | |
parent | c4efa458d767026ade69a4cb72362856a7495127 (diff) | |
download | glibc-6c42eca168f60bc50ed5e57ce59d1bfdf19120e2.zip glibc-6c42eca168f60bc50ed5e57ce59d1bfdf19120e2.tar.gz glibc-6c42eca168f60bc50ed5e57ce59d1bfdf19120e2.tar.bz2 |
PowerPC: fix POWER7 memrchr for some large inputs
(cherry picked from commit b51679672648410c6627a4bd169e076c5b36f47b)
Conflicts:
ChangeLog
-rw-r--r-- | sysdeps/powerpc/powerpc32/power7/memrchr.S | 4 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc64/power7/memrchr.S | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/powerpc/powerpc32/power7/memrchr.S b/sysdeps/powerpc/powerpc32/power7/memrchr.S index d1e3fda..defd832 100644 --- a/sysdeps/powerpc/powerpc32/power7/memrchr.S +++ b/sysdeps/powerpc/powerpc32/power7/memrchr.S @@ -101,8 +101,8 @@ L(loop): /* We're here because the counter reached 0, and that means we didn't have any matches for BYTE in the whole range. Just return the original range. */ - addi r9,r8,4 - cmplw cr6,r9,r7 + addi r8,r8,4 + cmplw cr6,r8,r7 bgt cr6,L(loop_small) b L(null) diff --git a/sysdeps/powerpc/powerpc64/power7/memrchr.S b/sysdeps/powerpc/powerpc64/power7/memrchr.S index d24fbbb..c499952 100644 --- a/sysdeps/powerpc/powerpc64/power7/memrchr.S +++ b/sysdeps/powerpc/powerpc64/power7/memrchr.S @@ -102,8 +102,8 @@ L(loop): /* We're here because the counter reached 0, and that means we didn't have any matches for BYTE in the whole range. Just return the original range. */ - addi r9,r8,8 - cmpld cr6,r9,r7 + addi r8,r8,8 + cmpld cr6,r8,r7 bgt cr6,L(loop_small) b L(null) |