This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] x86-64: Remove the unnecessary testl in strlen-avx2.S
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Sat, 12 May 2018 06:33:25 -0700
- Subject: [PATCH] x86-64: Remove the unnecessary testl in strlen-avx2.S
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Since the result of testl is never used, this patch removes it.
Tested on 64-bit AVX2 machine.
I will check it in next week.
H.J.
---
* sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
unnecessary testl.
---
sysdeps/x86_64/multiarch/strlen-avx2.S | 1 -
1 file changed, 1 deletion(-)
diff --git a/sysdeps/x86_64/multiarch/strlen-avx2.S b/sysdeps/x86_64/multiarch/strlen-avx2.S
index 85d7259746..fb2418cddc 100644
--- a/sysdeps/x86_64/multiarch/strlen-avx2.S
+++ b/sysdeps/x86_64/multiarch/strlen-avx2.S
@@ -378,7 +378,6 @@ L(4x_vec_end):
jnz L(first_vec_x2)
VPCMPEQ %ymm4, %ymm0, %ymm4
vpmovmskb %ymm4, %eax
- testl %eax, %eax
L(first_vec_x3):
tzcntl %eax, %eax
addq $(VEC_SIZE * 3), %rax
--
2.17.0