Skip to content

Commit

Permalink
aarch64/strcmp: fix misaligned loop jump target
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
siddhesh committed Feb 22, 2018
1 parent e9537dd commit 6ca24c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2018-02-22 Siddhesh Poyarekar <[email protected]>

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

2018-02-22 Steve Ellcey <[email protected]>

* sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
Expand Down
2 changes: 1 addition & 1 deletion sysdeps/aarch64/strcmp.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6ca24c4

Please sign in to comment.