No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gdb6 / gdb / testsuite / gdb.asm / powerpc.inc
bloba0797bf826b8fa57b95e8010d267f939cf5f55df
1         comment "subroutine prologue"
2         .macro gdbasm_enter
3         stwu    1, -16(1)
4         stw     31, 8(1)
5         mr      31, 1
6         mflr    0
7         stw     0, 20(1)
8         .endm
10         comment "subroutine epilogue"
11         .macro gdbasm_leave
12         lwz     0, 20(1)
13         mtlr    0
14         lwz     31, 8(1)
15         lwz     1, 0(1)
16         blr
17         .endm
19         .macro gdbasm_call subr
20         bl \subr
21         .endm
23         .macro gdbasm_several_nops
24         nop
25         nop
26         nop
27         nop
28         .endm
30         comment "exit (0)"
31         .macro gdbasm_exit0
32         comment "Don't know how to exit, but this will certainly halt..."
33         li      0, 0
34         lwz     0, 0(0)
35         .endm
37         comment "crt0 startup"
38         .macro gdbasm_startup
39         .p2align 2
40         .endm
42         comment "Declare a data variable"
43         .purgem gdbasm_datavar
44         .macro gdbasm_datavar name value
45         .data
46 \name:
47         .long   \value
48         .endm