fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / newlib / libc / machine / v850 / setjmp.S
blob4b015374990e4960392e0d1c84d0950c3424d2ab
1         .file "setjmp.S"
3         .section .text
4         .align 1
5         .global _setjmp
6 _setjmp:
7         st.w r1,0[r6]
8         st.w r3,4[r6]
9         st.w r4,8[r6]
10         st.w r20,12[r6]
11         st.w r21,16[r6]
12         st.w r22,20[r6]
13         st.w r23,24[r6]
14         st.w r24,28[r6]
15         st.w r25,32[r6]
16         st.w r26,36[r6]
17         st.w r27,40[r6]
18         st.w r28,44[r6]
19         st.w r29,48[r6]
20         st.w r30,52[r6]
21         st.w r31,56[r6]
22         mov r0, r10
23         jmp [r31]
25         .global _longjmp
26 _longjmp:
27         ld.w 0[r6],r1
28         ld.w 4[r6],r3
29         ld.w 8[r6],r4
30         ld.w 12[r6],r20
31         ld.w 16[r6],r21
32         ld.w 20[r6],r22
33         ld.w 24[r6],r23
34         ld.w 28[r6],r24
35         ld.w 32[r6],r25
36         ld.w 36[r6],r26
37         ld.w 40[r6],r27
38         ld.w 44[r6],r28
39         ld.w 48[r6],r29
40         ld.w 52[r6],r30
41         ld.w 56[r6],r31
42         cmp r7, r0
43         jne 1f
44         mov 1,r7
46         mov r7, r10
47         jmp [r31]