split_x86_64_1.s 445 B

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