aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/mips/crtn.asm
blob: 5d41d3d7ecb84f409640915b5a9305e278b55f4f (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
/* 4 slots for argument spill area.  1 for cpreturn, 1 for stack.
   Return spill offset of 40 and 20.  Aligned to 16 bytes for n32.  */

#ifdef	__mips16
#define RA $7
#else
#define RA $31
#endif

	.section .init,"ax",@progbits
#ifdef __mips64
	ld      RA,40($sp)
	daddu	$sp,$sp,48
#else
	lw	RA,20($sp)
	addu	$sp,$sp,32
#endif
	j	RA

	.section .fini,"ax",@progbits
#ifdef	__mips64
	ld	RA,40($sp)
	daddu	$sp,$sp,48
#else
	lw	RA,20($sp)
	addu	$sp,$sp,32
#endif
	j	RA