]>
Commit | Line | Data |
---|---|---|
364c7fa5 ILT |
1 | # split_x86_64_1.s: x86_64 specific test case for -fsplit-stack. |
2 | ||
3 | .text | |
4 | ||
5 | .global fn1 | |
6 | .type fn1,@function | |
7 | fn1: | |
8 | cmp %fs:0x70,%rsp | |
9 | jae 1f | |
10 | callq __morestack | |
11 | retq | |
12 | 1: | |
13 | callq fn2 | |
14 | retq | |
15 | ||
16 | .size fn1,. - fn1 | |
17 | ||
18 | .global fn2 | |
19 | .type fn2,@function | |
20 | fn2: | |
21 | lea -0x200(%rsp),%r10 | |
22 | cmp %fs:0x70,%r10 | |
23 | jae 1f | |
24 | callq __morestack | |
25 | retq | |
26 | 1: | |
27 | callq fn1 | |
28 | retq | |
29 | ||
30 | .size fn2,. - fn2 | |
31 | ||
32 | .section .note.GNU-stack,"",@progbits | |
33 | .section .note.GNU-split-stack,"",@progbits |