Import 409,410: ARM EABI by Daniel Glöckner
[tinycc.git] / alloca86-bt.S
blob50a671ef36cff4a87b538d256a96f854c4f93bd7
1 /* ---------------------------------------------- */
2 /* alloca86b.S */
4 .globl __bound___alloca
6 __bound___alloca:
7     pop     %edx
8     pop     %eax
9     mov     %eax, %ecx
10     add     $3,%eax
11     and     $-4,%eax
12     jz      p6
14 p4:
15     cmp     $4096,%eax
16     jle     p5
17     sub     $4096,%esp
18     sub     $4096,%eax
19     test    %eax,(%esp)
20     jmp p4
22 p5:
23     sub     %eax,%esp
24     mov     %esp,%eax
26     push    %edx
27     push    %eax
29     push    %ecx
30     push    %eax
31     call   __bound_new_region
32     add    $8, %esp
34     pop     %eax
35     pop     %edx
37 p6:
38     push    %edx
39     push    %edx
40     ret
42 /* ---------------------------------------------- */