diff options
author | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2018-02-22 23:48:13 +0530 |
---|---|---|
committer | Wilco Dijkstra <wdijkstr@arm.com> | 2019-09-06 17:13:34 +0100 |
commit | 01de24dbca4374665fb2a439be39c05427c0a24a (patch) | |
tree | 884789ae13c0d0ade03c1dbd887d98dea2213f96 | |
parent | 4e75091d6ce3f7ac8b1750ca6135bc37d6707caf (diff) | |
download | glibc-01de24dbca4374665fb2a439be39c05427c0a24a.tar glibc-01de24dbca4374665fb2a439be39c05427c0a24a.tar.gz glibc-01de24dbca4374665fb2a439be39c05427c0a24a.tar.bz2 glibc-01de24dbca4374665fb2a439be39c05427c0a24a.zip |
aarch64/strcmp: fix misaligned loop jump target
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)
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sysdeps/aarch64/strcmp.S | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,5 +1,10 @@ 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 time whenever possible. diff --git a/sysdeps/aarch64/strcmp.S b/sysdeps/aarch64/strcmp.S index c260e1d8ac..7eed82cee7 100644 --- a/sysdeps/aarch64/strcmp.S +++ b/sysdeps/aarch64/strcmp.S @@ -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 |