]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
x86-64: Remove the unnecessary testl in strlen-avx2.S
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 14 May 2018 10:41:22 +0000 (03:41 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 14 May 2018 10:41:35 +0000 (03:41 -0700)
Since the result of testl is never used, this patch removes it.

Tested on 64-bit AVX2 machine.

* sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
unnecessary testl.

ChangeLog
sysdeps/x86_64/multiarch/strlen-avx2.S

index 909dd9052438e7c257cc64565d40e19db95a4355..257261fbf82d977bd6f74e92edae68872b139c42 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
+       unnecessary testl.
+
 2018-05-13  Alan Modra  <amodra@gmail.com>
 
        * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
index 85d7259746b993bdccb4d0437590494fad045b09..fb2418cddc18b2ec30bd0440f6f8f8d7efe2896e 100644 (file)
@@ -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