* [PATCH] x86-64: Remove the unnecessary testl in strlen-avx2.S
@ 2018-05-12 13:33 H.J. Lu
0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2018-05-12 13:33 UTC (permalink / raw)
To: GNU C Library
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-05-12 13:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-12 13:33 [PATCH] x86-64: Remove the unnecessary testl in strlen-avx2.S H.J. Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).