Skip to content

Commit

Permalink
Small fix to POWER7 32-bit memcpy
Browse files Browse the repository at this point in the history
  • Loading branch information
Luis Machado authored and Ulrich Drepper committed May 28, 2010
1 parent 3c88fe1 commit eb5ad2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2010-05-28 Luis Machado <luisgpm@br.ibm.com>

* sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.

2010-05-26 H.J. Lu <hongjiu.lu@intel.com>

[BZ #11640]
Expand Down
4 changes: 2 additions & 2 deletions sysdeps/powerpc/powerpc32/power7/memcpy.S
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ L(copy_GE_32_unaligned):
addi 3,3,8
0:
clrlwi 10,12,28 /* Check alignment of SRC. */
srdi 9,31,4 /* Number of full quadwords remaining. */
srwi 9,31,4 /* Number of full quadwords remaining. */

/* The proper alignment is present, it is OK to copy the bytes now. */
L(copy_GE_32_unaligned_cont):
Expand All @@ -375,7 +375,7 @@ L(copy_GE_32_unaligned_cont):
li 6,16 /* Index for 16-bytes offsets. */
li 7,32 /* Index for 32-bytes offsets. */
cmplwi cr1,11,0
srdi 8,31,5 /* Setup the loop counter. */
srwi 8,31,5 /* Setup the loop counter. */
mr 10,3
mr 11,12
mtcrf 0x01,9
Expand Down

0 comments on commit eb5ad2e

Please sign in to comment.