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

Subversion Repositories or1k

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 56 joel
        .file "strchr.S"
2
 
3
        .section .text
4
        .global _strchr
5
        .type    _strchr,@function
6
_strchr:
7
        movm [d2,d3,a2,a3],(sp)
8
        add -12,sp
9
        mov d0,a1
10
        movbu d1,(7,sp)
11
#ifndef __OPTIMIZE_SIZE__
12
        btst 3,d0
13
        bne .L20
14
        clr d0
15
.L24:
16
        setlb
17
        mov sp,a2
18
        mov d0,d3
19
        add d3,a2
20
        mov a2,a0
21
        add 12,a0
22
        movbu (7,sp),d3
23
        movbu d3,(-4,a0)
24
        inc d0
25
        cmp 3,d0
26
        lls
27
        mov a1,a0
28
        mov -16843009,a1
29
        mov (a0),d2
30
        mov a1,d1
31
        add d2,d1
32
        mov d2,d0
33
        not d0
34
        and d0,d1
35
        mov -2139062144,d3
36
        mov d3,(0,sp)
37
        btst -2139062144,d1
38
        bne .L27
39
        jmp .L38
40
.L28:
41
        inc4 a0
42
        mov (a0),d2
43
        mov a1,d1
44
        add d2,d1
45
        mov d2,d0
46
        not d0
47
        and d0,d1
48
        mov (0,sp),d3
49
        and d3,d1
50
        bne .L27
51
.L38:
52
        mov (8,sp),d0
53
        xor d2,d0
54
        mov a1,d1
55
        add d0,d1
56
        not d0
57
        and d0,d1
58
        and d3,d1
59
        beq .L28
60
.L27:
61
        mov a0,a1
62
#endif
63
.L20:
64
        movbu (a1),d0
65
        cmp 0,d0
66
        beq .L32
67
        movbu (7,sp),d1
68
.L35:
69
        setlb
70
        cmp d1,d0
71
        beq .L36
72
        inc a1
73
        movbu (a1),d0
74
        cmp 0,d0
75
        lne
76
.L32:
77
        movbu (7,sp),d0
78
        movbu (a1),d3
79
        cmp d0,d3
80
        beq .L36
81
        mov 0,a0
82
        jmp .L37
83
.L36:
84
        mov a1,a0
85
.L37:
86
        ret [d2,d3,a2,a3],28
87
.Lfe1:
88
        .size    _strchr,.Lfe1-_strchr

powered by: WebSVN 2.1.0

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