about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-11-08 07:50:20 -0500
committerUlrich Drepper <drepper@gmail.com>2011-11-08 07:50:20 -0500
commitfe72eebd678166aad132a29865ee6cc78e746acc (patch)
tree6d0b99678e5b2eaf15c257aea3779bdc24e77002
parent7583a88d1c7170caad26966bcea8bfc2c92093ba (diff)
downloadglibc-fe72eebd678166aad132a29865ee6cc78e746acc.tar.gz
glibc-fe72eebd678166aad132a29865ee6cc78e746acc.tar.xz
glibc-fe72eebd678166aad132a29865ee6cc78e746acc.zip
Remove unnecessary code from x86-32 SSSE3 strncmp
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/i386/i686/multiarch/strcmp-ssse3.S4
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 3a71044b6d..ba46369024 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-11-08  Ulrich Drepper  <drepper@gmail.com>
+
+	* sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
+	instructions.
+
 2011-11-07  Andreas Schwab  <schwab@redhat.com>
 
 	* libio/genops.c (_IO_flush_all_lockp): Only register cleanup
diff --git a/sysdeps/i386/i686/multiarch/strcmp-ssse3.S b/sysdeps/i386/i686/multiarch/strcmp-ssse3.S
index 607b69b6ff..0131e8d80b 100644
--- a/sysdeps/i386/i686/multiarch/strcmp-ssse3.S
+++ b/sysdeps/i386/i686/multiarch/strcmp-ssse3.S
@@ -1,5 +1,5 @@
 /* strcmp with SSSE3
-   Copyright (C) 2010 Free Software Foundation, Inc.
+   Copyright (C) 2010, 2011 Free Software Foundation, Inc.
    Contributed by Intel Corporation.
    This file is part of the GNU C Library.
 
@@ -2201,8 +2201,6 @@ L(less16bytes_sncmp):
 	movzbl	15(%eax), %ecx
 	cmpb	%cl, 15(%edx)
 	jne	L(neq)
-	test	%cl, %cl
-	je	L(eq)
 
 	POP	(%ebp)
 	xor	%eax, %eax