]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
PowerPC: fix POWER7 memrchr for some large inputs
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Thu, 5 Sep 2013 14:32:56 +0000 (09:32 -0500)
committerMike Frysinger <vapier@gentoo.org>
Mon, 6 Jan 2014 13:39:38 +0000 (08:39 -0500)
(cherry picked from commit b51679672648410c6627a4bd169e076c5b36f47b)

Conflicts:
ChangeLog

sysdeps/powerpc/powerpc32/power7/memrchr.S
sysdeps/powerpc/powerpc64/power7/memrchr.S

index d1e3fda12537aaf6d4ded78425ff983911df8569..defd832b0ac6d46c9d305627df5ffefbbbaac212 100644 (file)
@@ -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)
 
index d24fbbb1b940b70e08a40231725862bd5db67c6e..c49995210cea06465d336def1894a3fd98035502 100644 (file)
@@ -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)