summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/setjmp/sh/setjmp.S
blob: d476e6395f57ab02168f2ec8cf28f016c888dd45 (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
.global ___setjmp
.hidden ___setjmp
.global __setjmp
.global _setjmp
.global setjmp
.type   __setjmp, @function
.type   _setjmp,  @function
.type   setjmp,   @function
___setjmp:
__setjmp:
_setjmp:
setjmp:
#if __SH_FPU_ANY__ || __SH4__
	add   #52, r4
	fmov.s fr15, @-r4
	fmov.s fr14, @-r4
	fmov.s fr13, @-r4
	fmov.s fr12, @-r4
#else
	add   #36, r4
#endif
	sts.l  pr,   @-r4
	mov.l  r15,  @-r4
	mov.l  r14,  @-r4
	mov.l  r13,  @-r4
	mov.l  r12,  @-r4
	mov.l  r11,  @-r4
	mov.l  r10,  @-r4
	mov.l  r9,   @-r4
	mov.l  r8,   @-r4
	rts
	 mov  #0, r0