Fix memmove-vec-unaligned-erms.S
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 3 Apr 2016 19:38:25 +0000 (12:38 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 3 Apr 2016 19:38:25 +0000 (12:38 -0700)
commitea2785e96fa503f3a2b5dd9f3a6ca65622b3c5f2
tree6870b7495a22870475f3c113ea018fd58f00c6f8
parent27d3ce1467990f89126e228559dec8f84b96c60e
Fix memmove-vec-unaligned-erms.S

__mempcpy_erms and __memmove_erms can't be placed between __memmove_chk
and __memmove it breaks __memmove_chk.

Don't check source == destination first since it is less common.

* sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
(__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
with unaligned_erms.
(__memmove_erms): Skip if source == destination.
(__memmove_unaligned_erms): Don't check source == destination
first.
ChangeLog
sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S