* builtins.def (BUILT_IN_SETJMP): Revert latest change.
[official-gcc.git] / libgcc / config / i386 / savms64f.h
blob723e1080f5c2ad2b23a00b45d7cc4821c2f85949
1 /* Prologue stub for 64-bit ms/sysv clobbers: save (with hard frame pointer)
2 Copyright (C) 2016-2017 Free Software Foundation, Inc.
3 Contributed by Daniel Santos <daniel.santos@pobox.com>
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3, or (at your option)
10 any later version.
12 GCC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 Under Section 7 of GPL version 3, you are granted additional
18 permissions described in the GCC Runtime Library Exception, version
19 3.1, as published by the Free Software Foundation.
21 You should have received a copy of the GNU General Public License and
22 a copy of the GCC Runtime Library Exception along with this program;
23 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
24 <http://www.gnu.org/licenses/>. */
26 #ifdef __x86_64__
27 #include "i386-asm.h"
29 /* Prologue routine for saving 64-bit ms/sysv registers when realignment is
30 * needed or hard frame pointer used. */
32 .text
33 MS2SYSV_STUB_BEGIN(savms64f_17)
34 mov %r15,-0x68(%rax)
35 MS2SYSV_STUB_BEGIN(savms64f_16)
36 mov %r14,-0x60(%rax)
37 MS2SYSV_STUB_BEGIN(savms64f_15)
38 mov %r13,-0x58(%rax)
39 MS2SYSV_STUB_BEGIN(savms64f_14)
40 mov %r12,-0x50(%rax)
41 MS2SYSV_STUB_BEGIN(savms64f_13)
42 mov %rbx,-0x48(%rax)
43 MS2SYSV_STUB_BEGIN(savms64f_12)
44 mov %rdi,-0x40(%rax)
45 mov %rsi,-0x38(%rax)
46 SSE_SAVE
47 ret
48 MS2SYSV_STUB_END(savms64f_12)
49 MS2SYSV_STUB_END(savms64f_13)
50 MS2SYSV_STUB_END(savms64f_14)
51 MS2SYSV_STUB_END(savms64f_15)
52 MS2SYSV_STUB_END(savms64f_16)
53 MS2SYSV_STUB_END(savms64f_17)
55 #endif /* __x86_64__ */