diff options
author | Joern Rennecke <joern.rennecke@embecosm.com> | 2002-06-13 18:53:17 +0400 |
---|---|---|
committer | Joern Rennecke <joern.rennecke@embecosm.com> | 2002-06-13 18:53:17 +0400 |
commit | 1f1fb4210d7000de5d9ed7229c08b927a4a9df87 (patch) | |
tree | 974c07113888ff22d6620302a028a575116094ca /newlib/libc/machine | |
parent | bb1085295a200fabc2279830f64cbd1cef9bf381 (diff) |
* libc/machine/sh/memset.S (memset, __SHMEDIA__ code):
Fixed bug in writing end of set region.
Diffstat (limited to 'newlib/libc/machine')
-rw-r--r-- | newlib/libc/machine/sh/memset.S | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/newlib/libc/machine/sh/memset.S b/newlib/libc/machine/sh/memset.S index 3d6f8ef64..3d37e33e3 100644 --- a/newlib/libc/machine/sh/memset.S +++ b/newlib/libc/machine/sh/memset.S @@ -19,7 +19,7 @@ ENTRY(memset) mperm.w r3, r63, r3 // Fill pattern now in every byte of r3 movi 8, r9 - bgtu/u r23, r9, tr0 + bgtu/u r23, r9, tr0 // multiquad ldlo.q r2, 0, r7 shlli r4, 2, r4 @@ -62,8 +62,10 @@ loop: st.q r25, 24, r3 st.q r25, 32, r3 addi r25, 32, r25 - bgeu/l r8, r25, tr1 + bgeu/l r8, r25, tr1 // loop + st.q r20, -40, r3 + st.q r20, -32, r3 st.q r20, -24, r3 st.q r20, -16, r3 st.q r20, -8, r3 |