]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
aarch64/strcmp: fix misaligned loop jump target
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 22 Feb 2018 18:18:13 +0000 (23:48 +0530)
committerWilco Dijkstra <wdijkstr@arm.com>
Fri, 6 Sep 2019 15:57:46 +0000 (16:57 +0100)
I accidentally set the loop jump back label as misaligned8 instead of
do_misaligned.  The typo is harmless but it's always nice to not have
to unnecessarily execute those two instructions.

* sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
do_misaligned, not misaligned8.

(cherry picked from commit 6ca24c43481e2c93a6eec362b04c3e77a35b28e3)

ChangeLog
sysdeps/aarch64/strcmp.S

index 436aee29eabbd38934c5f95637ce89ad58c21c33..5ddc3e7d9580957ec639592cae28a2a049fbf102 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-09-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
+
+       * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
+       do_misaligned, not misaligned8.
+
 2019-09-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
 
        * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
index 0b22f168b5600690ee88222bd951d0c6ddc385d2..267aa4b551038482aca372c82a3cc4cb965d57bb 100644 (file)
@@ -158,7 +158,7 @@ L(do_misaligned):
        ccmp    data1w, data2w, #0, cs  /* NZCV = 0b0000.  */
        b.ne    L(done)
        tst     src1, #7
-       b.ne    L(misaligned8)
+       b.ne    L(do_misaligned)
 
 L(loop_misaligned):
        /* Test if we are within the last dword of the end of a 4K page.  If