4 # setjmp/longjmp for the s390x architecture
10 .type setjmp, @function
12 stmg %r6,%r15,0(%r2) # save all general registers
13 std %f1,80(%r2) # save fp registers f4 and f6
25 .type longjmp, @function
28 lgr %r2,%r3 # return value
29 ld %f7,104(%r1) # restore all saved registers
34 br %r14 # return to restored address
36 .size longjmp,.-longjmp