about summary refs log tree commit diff
path: root/sysdeps/x86_64/strchrnul.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/x86_64/strchrnul.S')
-rw-r--r--sysdeps/x86_64/strchrnul.S3
1 files changed, 1 insertions, 2 deletions
diff --git a/sysdeps/x86_64/strchrnul.S b/sysdeps/x86_64/strchrnul.S
index ae3aa073eb..576027a38d 100644
--- a/sysdeps/x86_64/strchrnul.S
+++ b/sysdeps/x86_64/strchrnul.S
@@ -41,9 +41,8 @@ ENTRY (__strchrnul)
 	shl	%cl, %esi
 	pmovmskb %xmm0, %edx
 	pmovmskb %xmm3, %ecx
-	andl	%esi, %edx
-	andl	%esi, %ecx
 	orl	%edx, %ecx
+	andl	%esi, %ecx
 	jnz	1f
 
 2:	movdqa	(%rdi), %xmm0