blob: 1e83b7383cfe6723ca5b5fb9f232c543f58de8dd [file] [log] [blame]
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
#include <_mingw_mac.h>
.file "mingw_getsp.S"
#ifdef _WIN64
.align 8
.align 4
.globl __MINGW_USYMBOL(mingw_getsp)
.def __MINGW_USYMBOL(mingw_getsp); .scl 2; .type 32; .endef
#if defined(_AMD64_) || defined(__x86_64__)
leaq 8(%rsp),%rax
#elif defined(_X86_) || defined(__i386__)
lea 4(%esp),%eax
#elif defined(_ARM_) || defined(__arm__)
mov r0, sp
bx lr
#elif defined(_ARM64_) || defined(__aarch64__)
mov x0, sp