[committed] Don't set %rcx twice before "rep movsb"

Message ID 20160322154206.GA16703@intel.com
State Committed
Headers

Commit Message

Lu, Hongjiu March 22, 2016, 3:42 p.m. UTC
  * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
	Don't set %rcx twice before "rep movsb".
---
 ChangeLog                                       | 5 +++++
 sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S | 1 -
 2 files changed, 5 insertions(+), 1 deletion(-)
  

Patch

diff --git a/ChangeLog b/ChangeLog
index 522bc4f..54454a5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@ 
 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
 
+	* sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
+	Don't set %rcx twice before "rep movsb".
+
+2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
+
 	[BZ #19583]
 	* sysdeps/x86/cpu-features.c (get_common_indeces): Remove
 	inline.  Check family before setting family, model and
diff --git a/sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S b/sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S
index 74fed18..b615d06 100644
--- a/sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S
+++ b/sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S
@@ -234,7 +234,6 @@  L(gobble_data_movsb):
 	cmp	%rcx, %rdx
 	jae	L(gobble_big_data_fwd)
 	mov	%rdx, %rcx
-	mov	%rdx, %rcx
 	rep	movsb
 	ret