tools/llvm: Do not build with symbols
[minix3.git] / lib / libc / arch / x86_64 / gen / alloca.S
blobab232f60bd4354a81f57ab29c567c0492ffe1c5a
1 /*      $NetBSD: alloca.S,v 1.1 2001/06/19 00:25:02 fvdl Exp $  */
3 #include <machine/asm.h>
5 #if defined(LIBC_SCCS)
6         RCSID("$NetBSD: alloca.S,v 1.1 2001/06/19 00:25:02 fvdl Exp $")
7 #endif
9 ENTRY(alloca)
10         popq    %rdx
11         movq    %rsp,%rcx
12         addq    $15,%rdi        /*  round up to 16 bytes */
13         andq    $~15,%rdi
14         subq    %rdi,%rsp
15         movq    %rsp,%rax
16         jmp     *%rdx