OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [machine/] [mn10300/] [memcmp.S] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1008 ivang
        .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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.