Unbreak memcpy(). memcpy() is defined to return the dst argument.

By using r8 instead of r14 to do the swap, we put the dst argument
in the return register. Since bcopy() doesn't clobber r8, we don't
have to do anything else. This fixes ports/textproc/aspell.
This commit is contained in:
marcel 2004-09-04 00:04:58 +00:00
parent 1ac4ce85a1
commit a035e5e43c

View File

@ -28,10 +28,9 @@
__FBSDID("$FreeBSD$");
ENTRY(memcpy,3)
mov r14=in0 ;;
mov in0=in1 ;;
mov in1=r14
br.cond.sptk.few bcopy
mov r8 = in0
mov in0 = in1
;;
mov in1 = r8
br.sptk.few bcopy
END(memcpy)