1 /* src/vm/jit/x86_64/md-asm.h - assembler defines for x86_64 Linux ABI
3 Copyright (C) 1996-2005, 2006 R. Grafl, A. Krall, C. Kruegel,
4 C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
5 E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
6 J. Wenninger, Institut f. Computersprachen - TU Wien
8 This file is part of CACAO.
10 This program is free software; you can redistribute it and/or
11 modify it under the terms of the GNU General Public License as
12 published by the Free Software Foundation; either version 2, or (at
13 your option) any later version.
15 This program is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
25 Contact: cacao@cacaojvm.org
27 Authors: Christian Thalinger
31 $Id: md-asm.h 7219 2007-01-16 22:18:57Z pm $
39 /* register defines ***********************************************************/
129 /* save and restore macros ****************************************************/
131 #define SAVE_ARGUMENT_REGISTERS(off) \
132 mov a0,(0+(off))*8(sp) ; \
133 mov a1,(1+(off))*8(sp) ; \
134 mov a2,(2+(off))*8(sp) ; \
135 mov a3,(3+(off))*8(sp) ; \
136 mov a4,(4+(off))*8(sp) ; \
137 mov a5,(5+(off))*8(sp) ; \
139 movq fa0,(6+(off))*8(sp) ; \
140 movq fa1,(7+(off))*8(sp) ; \
141 movq fa2,(8+(off))*8(sp) ; \
142 movq fa3,(9+(off))*8(sp) ; \
143 movq fa4,(10+(off))*8(sp) ; \
144 movq fa5,(11+(off))*8(sp) ; \
145 movq fa6,(12+(off))*8(sp) ; \
146 movq fa7,(13+(off))*8(sp) ;
149 #define RESTORE_ARGUMENT_REGISTERS(off) \
150 mov (0+(off))*8(sp),a0 ; \
151 mov (1+(off))*8(sp),a1 ; \
152 mov (2+(off))*8(sp),a2 ; \
153 mov (3+(off))*8(sp),a3 ; \
154 mov (4+(off))*8(sp),a4 ; \
155 mov (5+(off))*8(sp),a5 ; \
157 movq (6+(off))*8(sp),fa0 ; \
158 movq (7+(off))*8(sp),fa1 ; \
159 movq (8+(off))*8(sp),fa2 ; \
160 movq (9+(off))*8(sp),fa3 ; \
161 movq (10+(off))*8(sp),fa4 ; \
162 movq (11+(off))*8(sp),fa5 ; \
163 movq (12+(off))*8(sp),fa6 ; \
164 movq (13+(off))*8(sp),fa7 ;
167 #define SAVE_TEMPORARY_REGISTERS(off) \
168 mov t0,(0+(off))*8(sp) ; \
169 movq ft0,(1+(off))*8(sp) ; \
170 movq ft1,(2+(off))*8(sp) ; \
171 movq ft2,(3+(off))*8(sp) ; \
172 movq ft3,(4+(off))*8(sp) ;
175 #define RESTORE_TEMPORARY_REGISTERS(off) \
176 mov (0+(off))*8(sp),t0 ; \
177 movq (1+(off))*8(sp),ft0 ; \
178 movq (2+(off))*8(sp),ft1 ; \
179 movq (3+(off))*8(sp),ft2 ; \
180 movq (4+(off))*8(sp),ft3 ;
182 #endif /* _MD_ASM_H */
186 * These are local overrides for various environment variables in Emacs.
187 * Please do not remove this and leave it at the end of the file, where
188 * Emacs will automagically detect them.
189 * ---------------------------------------------------------------------
192 * indent-tabs-mode: t