]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Small fix to POWER7 32-bit memset
authorLuis Machado <luisgpm@br.ibm.com>
Tue, 25 May 2010 00:56:44 +0000 (17:56 -0700)
committerLuis Machado <luisgpm@br.ibm.com>
Sat, 30 Oct 2010 13:27:26 +0000 (11:27 -0200)
(cherry picked from commit ebd2e13d672d32bdc07e2ddadca68829840dd29c)

ChangeLog
sysdeps/powerpc/powerpc32/power7/memset.S

index 5c02c192aa2e0ee7b797c43b9d59876bf04aba31..3f909eeba77eb0369d0c87bf3d1c2b9acca0945a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
+
+       * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
+
 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
 
        * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
index 99d07ec8955fecfb8bfa7aa325abb7c7665922ba..8aabb49327584f4ce1fdd8247acf0a6ca779528b 100644 (file)
@@ -155,7 +155,6 @@ L(big_loop):
        /* Now that we're probably past the LHS window, use the VSX to
           speed up the loop.  */
 L(big_loop_fast_setup):
-       li      0,0
        li      11,24
        li      6,16
        lxvdsx  4,1,11
@@ -163,12 +162,12 @@ L(big_loop_fast_setup):
        .align  4
 L(big_loop_fast):
        addi    12,10,32
-       stxvd2x 4,10,0
+       stxvd2x 4,0,10
        stxvd2x 4,10,6
        bdz     L(tail_bytes)
 
        addi    10,10,64
-       stxvd2x 4,12,0
+       stxvd2x 4,0,12
        stxvd2x 4,12,6
        bdnz    L(big_loop_fast)