aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.asm/d10v.inc
blob: 1ad3b9fe351859f0121b4e0a4bba99b799563727 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
	comment "subroutine prologue"
	.macro gdbasm_enter
	st r13,@-sp
	.endm

	comment "subroutine epilogue"
	.macro gdbasm_leave
	ld r13,@sp+
	jmp r13
	.endm

	.macro gdbasm_call subr
	bl \subr
	.endm

	.macro gdbasm_several_nops
	nop
	nop
	nop
	nop
	.endm

	comment "exit (0)"
	.macro gdbasm_exit0
	ldi r4, 1
	ldi r0, 0
	trap 15
	.endm

	comment "crt0 startup"
	.macro gdbasm_startup
	.endm