]> 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 16:13:34 +0000 (17:13 +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 cd0c1db768a07b9b170923bf3bfcf6abca6cc398..29f9e1bac541129222c0d0446f2724d24e026bac 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 c260e1d8ac8ec453122e7db803c182d5f61eb321..7eed82cee73e713f767a6837b6ea360274df09b2 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