diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2013-06-11 18:14:58 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2013-06-11 18:14:58 +0000 |
commit | 053f2c9694efd78cad0fb364e18939d590655719 (patch) | |
tree | 2d111b77eeb7733bf52af26b2be3c1902cb3e03b /sys/lib | |
parent | 054b6110aa053cb779cfb42731aa959e581f1eca (diff) |
regen
Diffstat (limited to 'sys/lib')
-rw-r--r-- | sys/lib/libkern/arch/hppa/bcopy.S | 86 |
1 files changed, 43 insertions, 43 deletions
diff --git a/sys/lib/libkern/arch/hppa/bcopy.S b/sys/lib/libkern/arch/hppa/bcopy.S index 0f11f51368a..60b1600a21a 100644 --- a/sys/lib/libkern/arch/hppa/bcopy.S +++ b/sys/lib/libkern/arch/hppa/bcopy.S @@ -38,92 +38,92 @@ #include <machine/frame.h> -LEAF_ENTRY(memcpy) -ALTENTRY(memmove) +LEAF_ENTRY(bcopy) +ALTENTRY(ovbcopy) copy arg0, ret0 copy arg1, arg0 copy ret0, arg1 -ALTENTRY(ovbcopy) -ALTENTRY(bcopy) - comb,>,n arg1, arg0, $bcopy.reverse +ALTENTRY(memmove) + comb,>,n arg0, arg1, $bcopy.reverse +ALTENTRY(memcpy) comib,>=,n 15, arg2, $bcopy_f.byte - extru arg0, 31, 2, t3 - extru arg1, 31, 2, t4 + extru arg1, 31, 2, t3 + extru arg0, 31, 2, t4 add arg2, t4, arg2 comb,<> t3, t4, $bcopy_f.unaligned - dep r0, 31, 2, arg0 + dep r0, 31, 2, arg1 addi -16, arg2, arg2 $bcopy_f.loop16a - ldws,ma 4(sr0, arg0), t1 - ldws,ma 4(sr0, arg0), t2 - ldws,ma 4(sr0, arg0), t3 - ldws,ma 4(sr0, arg0), t4 - stbys,b,m t1, 4(sr0, arg1) - stws,ma t2, 4(sr0, arg1) - stws,ma t3, 4(sr0, arg1) + ldws,ma 4(sr0, arg1), t1 + ldws,ma 4(sr0, arg1), t2 + ldws,ma 4(sr0, arg1), t3 + ldws,ma 4(sr0, arg1), t4 + stbys,b,m t1, 4(sr0, arg0) + stws,ma t2, 4(sr0, arg0) + stws,ma t3, 4(sr0, arg0) addib,>= -16, arg2, $bcopy_f.loop16a - stws,ma t4, 4(sr0, arg1) + stws,ma t4, 4(sr0, arg0) addib,<,n 12, arg2, $bcopy_f.cleanup $bcopy_f.word - ldws,ma 4(sr0, arg0), t1 + ldws,ma 4(sr0, arg1), t1 addib,>= -4, arg2, $bcopy_f.word - stws,ma t1, 4(sr0, arg1) + stws,ma t1, 4(sr0, arg0) $bcopy_f.cleanup addib,=,n 4, arg2, $bcopy_f.done - ldws 0(sr0, arg0), t1 - add arg1, arg2, arg1 + ldws 0(sr0, arg1), t1 + add arg0, arg2, arg0 b $bcopy_f.done - stbys,e t1, 0(sr0, arg1) + stbys,e t1, 0(sr0, arg0) $bcopy_f.unaligned sub,>= t4, t3, t2 - ldwm 4(sr0, arg0), ret1 + ldwm 4(sr0, arg1), ret1 zdep t2, 28, 29, t1 mtsar t1 addi -16, arg2, arg2 $bcopy_f.loop16u - ldws,ma 4(sr0, arg0), t1 - ldws,ma 4(sr0, arg0), t2 - ldws,ma 4(sr0, arg0), t3 - ldws,ma 4(sr0, arg0), t4 + ldws,ma 4(sr0, arg1), t1 + ldws,ma 4(sr0, arg1), t2 + ldws,ma 4(sr0, arg1), t3 + ldws,ma 4(sr0, arg1), t4 vshd ret1, t1, r31 - stbys,b,m r31, 4(sr0, arg1) + stbys,b,m r31, 4(sr0, arg0) vshd t1, t2, r31 - stws,ma r31, 4(sr0, arg1) + stws,ma r31, 4(sr0, arg0) vshd t2, t3, r31 - stws,ma r31, 4(sr0, arg1) + stws,ma r31, 4(sr0, arg0) vshd t3, t4, r31 - stws,ma r31, 4(sr0, arg1) + stws,ma r31, 4(sr0, arg0) addib,>= -16, arg2, $bcopy_f.loop16u copy t4, ret1 addib,<,n 12, arg2, $bcopy_f.cleanup_un $bcopy_f.word_un - ldws,ma 4(sr0, arg0), t1 + ldws,ma 4(sr0, arg1), t1 vshd ret1, t1, t2 addib,< -4, arg2, $bcopy_f.cleanup1_un - stws,ma t2, 4(sr0, arg1) - ldws,ma 4(sr0, arg0), ret1 + stws,ma t2, 4(sr0, arg0) + ldws,ma 4(sr0, arg1), ret1 vshd t1, ret1, t2 addib,>= -4, arg2, $bcopy_f.word_un - stws,ma t2, 4(sr0, arg1) + stws,ma t2, 4(sr0, arg0) $bcopy_f.cleanup_un addib,<=,n 4, arg2, $bcopy_f.done mfctl sar, t4 - add arg1, arg2, arg1 + add arg0, arg2, arg0 extru t4, 28, 2, t4 sub,<= arg2, t4, r0 - ldws,ma 4(sr0, arg0), t1 + ldws,ma 4(sr0, arg1), t1 vshd ret1, t1, t2 b $bcopy_f.done - stbys,e t2, 0(sr0, arg1) + stbys,e t2, 0(sr0, arg0) $bcopy_f.cleanup1_un b $bcopy_f.cleanup_un @@ -132,28 +132,28 @@ $bcopy_f.cleanup1_un $bcopy_f.byte comb,>=,n r0, arg2, $bcopy_f.done $bcopy_f.byte_loop - ldbs,ma 1(sr0, arg0), t1 + ldbs,ma 1(sr0, arg1), t1 addib,<> -1, arg2, $bcopy_f.byte_loop - stbs,ma t1, 1(sr0, arg1) + stbs,ma t1, 1(sr0, arg0) $bcopy_f.done bv 0(rp) nop $bcopy.reverse - add arg0, arg2, arg0 add arg1, arg2, arg1 + add arg0, arg2, arg0 $bcopy_r.byte comb,>=,n r0, arg2, $bcopy_r.done $bcopy_r.byte_loop - ldbs,mb -1(sr0, arg0), t1 + ldbs,mb -1(sr0, arg1), t1 addib,<> -1, arg2, $bcopy_r.byte_loop - stbs,mb t1, -1(sr0, arg1) + stbs,mb t1, -1(sr0, arg0) $bcopy_r.done bv 0(rp) nop -EXIT(memcpy) +EXIT(bcopy) .end |