source: trunk/libs/newlib/src/newlib/libc/machine/mn10300/strcpy.S @ 444

Last change on this file since 444 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 1.6 KB
Line 
1        .file "strcpy.S"
2
3        .section .text
4        .global _strcpy
5        .type    _strcpy,@function
6_strcpy:
7        movm [d2,d3,a2,a3],(sp)
8.Lend_of_prologue:
9        mov d0,d3
10        mov d1,a0
11        mov d3,a1
12        mov a0,d0
13#ifndef __OPTIMIZE_SIZE__
14        or d3,d0
15        btst 3,d0
16        bne .L2
17        mov (a0),d0
18        mov -16843009,a2
19        mov a2,d1
20        add d0,d1
21        not d0
22        and d0,d1
23        mov -2139062144,d2
24        btst -2139062144,d1
25        bne .L2
26        setlb
27        mov (a0),d0
28        mov d0,(a1)
29        inc4 a0
30        inc4 a1
31        mov (a0),d0
32        mov a2,d1
33        add d0,d1
34        not d0
35        and d0,d1
36        and d2,d1
37        leq
38.L2:
39#endif 
40        setlb
41        movbu (a0),d0
42        movbu d0,(a1)
43        inc a0
44        inc a1
45        cmp 0,d0
46        lne
47        mov d3,a0
48.Lepilogue:
49        ret [d2,d3,a2,a3],16
50.Lend_of_strcpy:
51        .size    _strcpy, .Lend_of_strcpy - _strcpy
52
53        .section        .debug_frame,"",@progbits
54.Lstart_of_debug_frame:
55        # Common Information Entry (CIE)
56        .4byte  .Lend_of_CIE - .Lstart_of_CIE   # CIE Length
57.Lstart_of_CIE:
58        .4byte   0xffffffff                     # CIE Identifier Tag
59        .byte    0x1                            # CIE Version
60        .ascii   "\0"                           # CIE Augmentation
61        .uleb128 0x1                            # CIE Code Alignment Factor
62        .sleb128 -4                             # CIE Data Alignment Factor
63        .byte    0x32                           # CIE RA Column
64        .byte    0xc                            # DW_CFA_def_cfa
65        .uleb128 0x9
66        .uleb128 0x0
67        .byte    0xb2                           # DW_CFA_offset, column 0x32
68        .uleb128 0x0
69        .align   2
70.Lend_of_CIE:
71       
72        # Frame Description Entry (FDE)
73        .4byte  .Lend_of_FDE - .Lstart_of_FDE   # FDE Length
74.Lstart_of_FDE:
75        .4byte   .Lstart_of_debug_frame         # FDE CIE offset
76        .4byte   _strcpy                        # FDE initial location
77        .4byte   .Lend_of_strcpy - _strcpy      # FDE address range
78        .byte    0x4                            # DW_CFA_advance_loc4
79        .4byte   .Lend_of_prologue - _strcpy
80        .byte    0xe                            # DW_CFA_def_cfa_offset
81        .uleb128 0x4
82        .byte    0x87                           # DW_CFA_offset, column 0x7
83        .uleb128 0x1
84        .align 2
85.Lend_of_FDE:
Note: See TracBrowser for help on using the repository browser.