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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [libc/] [machine/] [mn10300/] [strcmp.S] - Blame information for rev 57

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 56 joel
        .file   "strcmp.S"
2
 
3
        .section .text
4
        .global _strcmp
5
        .type    _strcmp,@function
6
_strcmp:
7
        movm [d2,d3,a2,a3],(sp)
8
        mov d0,a0
9
        mov d1,a1
10
#ifndef __OPTIMIZE_SIZE__
11
        or d1,d0
12
        btst 3,d0
13
        bne .L11
14
        mov (a0),d1
15
        mov (a1),d0
16
        cmp d0,d1
17
        bne .L11
18
        mov -16843009,d3
19
.L5:
20
        setlb
21
        mov (a0),d0
22
        mov d3,d1
23
        add d0,d1
24
        not d0
25
        and d0,d1
26
        and -2139062144,d1
27
        beq .L6
28
        clr d0
29
        jmp .L13
30
.L6:
31
        inc4 a0
32
        inc4 a1
33
        mov (a0),d1
34
        mov (a1),d0
35
        cmp d0,d1
36
        leq
37
#endif
38
.L11:
39
        setlb
40
        movbu (a1),d2
41
        movbu (a0),d0
42
        cmp 0,d0
43
        beq .L9
44
        cmp d2,d0
45
        bne .L9
46
        inc a0
47
        inc a1
48
        lra
49
.L9:
50
        sub d2,d0
51
.L13:
52
        ret [d2,d3,a2,a3],16
53
.Lfe1:
54
        .size    _strcmp,.Lfe1-_strcmp

powered by: WebSVN 2.1.0

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