Deprecate a.out support for NetBSD targets.
[binutils-gdb.git] / ld / testsuite / ld-avr / per-function-debugline.s
1 .file "per-function-debugline.s"
2 __SP_H__ = 0x3e
3 __SP_L__ = 0x3d
4 __SREG__ = 0x3f
5 __RAMPZ__ = 0x3b
6 __tmp_reg__ = 0
7 __zero_reg__ = 1
8 .comm g,2,1
9 .section .text.bar,"ax",@progbits
10 .global bar
11 .type bar, @function
12 bar:
13 push r28
14 push r29
15 rcall .
16 in r28,__SP_L__
17 in r29,__SP_H__
18 /* prologue: function */
19 /* frame size = 2 */
20 /* stack size = 4 */
21 .L__stack_usage = 4
22 ldd r24,Y+1
23 ldd r25,Y+2
24 adiw r24,1
25 std Y+2,r25
26 std Y+1,r24
27 nop
28 /* epilogue start */
29 pop __tmp_reg__
30 pop __tmp_reg__
31 pop r29
32 pop r28
33 ret
34 .size bar, .-bar
35 .section .text.foo,"ax",@progbits
36 .global foo
37 .type foo, @function
38 foo:
39 push r28
40 push r29
41 in r28,__SP_L__
42 in r29,__SP_H__
43 /* prologue: function */
44 /* frame size = 0 */
45 /* stack size = 2 */
46 .L__stack_usage = 2
47 lds r24,g
48 lds r25,g+1
49 adiw r24,1
50 sts g+1,r25
51 sts g,r24
52 nop
53 /* epilogue start */
54 pop r29
55 pop r28
56 ret
57 .size foo, .-foo
58 .section .text.main,"ax",@progbits
59 .global main
60 .type main, @function
61 main:
62 push r28
63 push r29
64 in r28,__SP_L__
65 in r29,__SP_H__
66 /* prologue: function */
67 /* frame size = 0 */
68 /* stack size = 2 */
69 .L__stack_usage = 2
70 call foo
71 lds r24,g
72 lds r25,g+1
73 sbiw r24,1
74 sts g+1,r25
75 sts g,r24
76 lds r24,g
77 lds r25,g+1
78 /* epilogue start */
79 pop r29
80 pop r28
81 ret
82 .size main, .-main
83 .ident "GCC: (GNU) 6.0.0 20150630 (experimental)"
84 .global __do_clear_bss