diff --git a/ChangeLog b/ChangeLog index f3e18cb56b..99b61809ea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2019-09-06 Siddhesh Poyarekar + + * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of + mov + lsr. + 2019-09-06 Siddhesh Poyarekar * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift diff --git a/sysdeps/aarch64/strncmp.S b/sysdeps/aarch64/strncmp.S index 1dc8b79a22..759c752fc2 100644 --- a/sysdeps/aarch64/strncmp.S +++ b/sysdeps/aarch64/strncmp.S @@ -208,15 +208,13 @@ L(done): /* Align the SRC1 to a dword by doing a bytewise compare and then do the dword loop. */ L(try_misaligned_words): - mov limit_wd, limit - lsr limit_wd, limit_wd, #3 + lsr limit_wd, limit, #3 cbz count, L(do_misaligned) neg count, count and count, count, #7 sub limit, limit, count - mov limit_wd, limit - lsr limit_wd, limit_wd, #3 + lsr limit_wd, limit, #3 L(page_end_loop): ldrb data1w, [src1], #1