repo.or.cz
/
zpugcc
/
jano.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fixes for host gcc 4.6.1
[zpugcc/jano.git]
/
toolchain
/
gcc
/
newlib
/
libc
/
machine
/
mn10300
/
memset.S
blob
65b2ff53bb3eb6b06123505b1816c41520330bb6
1
.file "memset.S"
2
3
.section .text
4
.global _memset
5
.type _memset,@function
6
_memset:
7
movm [d2,d3,a2,a3],(sp)
8
mov d0,d3
9
mov d1,d2
10
mov (28,sp),a1
11
mov d3,a0
12
#ifndef __OPTIMIZE_SIZE__
13
cmp 3,a1
14
bls .L41
15
btst 3,d3
16
bne .L41
17
extbu d2
18
mov d2,d1
19
asl 8,d1
20
or d2,d1
21
mov d1,d0
22
asl 16,d0
23
or d0,d1
24
cmp 15,a1
25
bls .L36
26
.L33:
27
setlb
28
mov d1,(a0)
29
inc4 a0
30
mov d1,(a0)
31
inc4 a0
32
mov d1,(a0)
33
inc4 a0
34
mov d1,(a0)
35
inc4 a0
36
add -16,a1
37
cmp 15,a1
38
lhi
39
.L36:
40
cmp 3,a1
41
bls .L41
42
.L37:
43
setlb
44
mov d1,(a0)
45
inc4 a0
46
add -4,a1
47
cmp 3,a1
48
lhi
49
#endif
50
.L41:
51
cmp 0,a1
52
beq .L47
53
.L46:
54
setlb
55
movbu d2,(a0)
56
inc a0
57
sub 1,a1
58
lne
59
.L47:
60
mov d3,a0
61
ret [d2,d3,a2,a3],16
62
.Lfe1:
63
.size _memset,.Lfe1-_memset