]> Git Repo - binutils.git/blob - gdb/testsuite/gdb.asm/iq2000.inc
* gdb.dwarf2/dw4-sig-type-unused.S: Fix typo.
[binutils.git] / gdb / testsuite / gdb.asm / iq2000.inc
1         comment "subroutine prologue"
2         .macro gdbasm_enter
3         addiu %29, %29, 0xfffc
4         sw %31,0(%29)
5         .endm
6
7         comment "subroutine epilogue"
8         .macro gdbasm_leave
9         lw %31,0(%29)
10         addiu %29, %29, 4
11         jr %31
12         nop
13         .endm
14
15         .macro gdbasm_call subr
16         jal \subr
17         nop
18         .endm
19
20         .macro gdbasm_several_nops
21         nop
22         nop
23         nop
24         nop
25         .endm
26
27         comment "exit (0)"
28         .macro gdbasm_exit0
29         ori  %4, %0, 1  # SYS_exit
30         ori  %5, %0, 0  # normal exit code
31         ori  %6, %0, 0
32         ori  %7, %0, 0
33         syscall
34         .endm
35
36         comment "crt0 startup"
37         .macro gdbasm_startup
38         andi %0, %0, 0
39         addiu %29, %0, 0xffc
40         .endm
41
This page took 0.03119 seconds and 4 git commands to generate.