about summary refs log tree commit diff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2016-03-22 08:36:16 -0700
committerH.J. Lu <hjl.tools@gmail.com>2016-03-22 08:36:16 -0700
commit3c9a4cd16cbc7b79094fec68add2df66061ab5d7 (patch)
treeb24b971460ca18529a6fb235f90a9a9d47a04615
parentf781a9e96138d8839663af5e88649ab1fbed74f8 (diff)
downloadglibc-3c9a4cd16cbc7b79094fec68add2df66061ab5d7.tar.gz
glibc-3c9a4cd16cbc7b79094fec68add2df66061ab5d7.tar.xz
glibc-3c9a4cd16cbc7b79094fec68add2df66061ab5d7.zip
Don't set %rcx twice before "rep movsb"
	* sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
	Don't set %rcx twice before "rep movsb".
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S1
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 522bc4fbc8..54454a54be 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 74fed186e9..b615d063c0 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