From e322ec3282648e9f05265d4636719ded754a1c3c Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 14 May 2018 03:41:22 -0700 Subject: x86-64: Remove the unnecessary testl in strlen-avx2.S 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 | 5 +++++ sysdeps/x86_64/multiarch/strlen-avx2.S | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 909dd90524..257261fbf8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2018-05-14 H.J. Lu + + * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the + unnecessary testl. + 2018-05-13 Alan Modra * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add 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 -- cgit 1.4.1