diff options
author | Joern Rennecke <joern.rennecke@embecosm.com> | 2002-03-26 17:22:16 +0000 |
---|---|---|
committer | Joern Rennecke <joern.rennecke@embecosm.com> | 2002-03-26 17:22:16 +0000 |
commit | 43ecf6e8284153ad5b88077268ae33d631c70611 (patch) | |
tree | 6376151ac91beab445b6c1c5e9f488854ad0554f /newlib/libc/machine | |
parent | a485d93f1096f2994d4a9ccc570af9348505fc5a (diff) | |
download | cygnal-43ecf6e8284153ad5b88077268ae33d631c70611.tar.gz cygnal-43ecf6e8284153ad5b88077268ae33d631c70611.tar.bz2 cygnal-43ecf6e8284153ad5b88077268ae33d631c70611.zip |
* libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
Store high part of leading bytes too.
Diffstat (limited to 'newlib/libc/machine')
-rw-r--r-- | newlib/libc/machine/sh/memcpy.S | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/machine/sh/memcpy.S b/newlib/libc/machine/sh/memcpy.S index 791bc8b10..56e6c6f43 100644 --- a/newlib/libc/machine/sh/memcpy.S +++ b/newlib/libc/machine/sh/memcpy.S @@ -134,7 +134,7 @@ L8_15: /* 8..15 byte memcpy cntd. */ Large: ld.b r2, 0, r63 pta/l Loop_ua, tr1 - andi r3, 7, r7 + ori r3, -8, r7 sub r2, r7, r22 sub r3, r2, r6 add r2, r4, r5 @@ -142,6 +142,7 @@ Large: addi r5, -16, r5 movi 64+8, r27 // could subtract r7 from that. stlo.q r2, 0, r0 + sthi.q r2, 7, r0 ldx.q r22, r6, r0 bgtu/l r27, r4, tr1 |