superh port
[musl.git] / src / setjmp / superh / setjmp.s
blob6127ed9093ad477d5a5a4a62e97a131e89a7e55a
1 .global __setjmp
2 .global _setjmp
3 .global setjmp
4 .type __setjmp, @function
5 .type _setjmp, @function
6 .type setjmp, @function
7 __setjmp:
8 _setjmp:
9 setjmp:
10 add #52, r4
11 fmov.s fr15, @-r4
12 fmov.s fr14, @-r4
13 fmov.s fr13, @-r4
14 fmov.s fr12, @-r4
15 sts.l pr, @-r4
16 mov.l r15 @-r4
17 mov.l r14, @-r4
18 mov.l r13, @-r4
19 mov.l r12, @-r4
20 mov.l r11, @-r4
21 mov.l r10, @-r4
22 mov.l r9, @-r4
23 mov.l r8, @-r4
24 rts
25 mov #0, r0