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
/
memcmp.S
blob
41774892b3c7272e114c524dc1ee28a1f729d2b6
1
.file "memcmp.S"
2
3
.section .text
4
.global _memcmp
5
.type _memcmp,@function
6
_memcmp:
7
movm [d2,d3,a2,a3],(sp)
8
mov d0,a0
9
mov d1,a1
10
mov (28,sp),a2
11
#ifndef __OPTIMIZE_SIZE__
12
cmp 3,a2
13
bls .L22
14
mov a1,d2
15
or d2,d0
16
btst 3,d0
17
bne .L22
18
.L17:
19
setlb
20
mov (a0),d1
21
mov (a1),d0
22
cmp d0,d1
23
bne .L22
24
inc4 a0
25
inc4 a1
26
add -4,a2
27
cmp 3,a2
28
lhi
29
#endif
30
.L22:
31
cmp 0,a2
32
beq .L24
33
.L18:
34
setlb
35
movbu (a0),d3
36
movbu (a1),d2
37
cmp d2,d3
38
beq .L23
39
mov d3,d0
40
sub d2,d0
41
jmp .L25
42
.L23:
43
inc a0
44
inc a1
45
.L26:
46
sub 1,a2
47
lne
48
.L24:
49
clr d0
50
.L25:
51
ret [d2,d3,a2,a3],16
52
.Lfe1:
53
.size _memcmp,.Lfe1-_memcmp