1 /* src/vm/jit/sparc64/md-asm.h - assembler defines for Sparc 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
32 $Id: md-asm.h 4498 2006-02-12 23:43:09Z twisti $
41 * ***********************************************************/
48 #define mptr_itmp2 itmp2
50 #define xptr_itmp2 itmp2
51 #define xpc_itmp3 itmp3
82 /* save and restore macros ****************************************************/
85 #define SAVE_FLOAT_ARGUMENT_REGISTERS(off) \
86 std fa0,[%sp + bias + ((0+(off))*8)] ; \
87 std fa1,[%sp + bias + ((1+(off))*8)] ; \
88 std fa2,[%sp + bias + ((2+(off))*8)] ; \
89 std fa3,[%sp + bias + ((3+(off))*8)]
92 #define RESTORE_FLOAT_ARGUMENT_REGISTERS(off) \
93 ldd [%sp + bias + ((0+(off))*8)],fa0 ; \
94 ldd [%sp + bias + ((1+(off))*8)],fa1 ; \
95 ldd [%sp + bias + ((2+(off))*8)],fa2 ; \
96 ldd [%sp + bias + ((3+(off))*8)],fa3 ; \
101 #endif /* _MD_ASM_H */
105 * These are local overrides for various environment variables in Emacs.
106 * Please do not remove this and leave it at the end of the file, where
107 * Emacs will automagically detect them.
109 * ---------------------------------------------------------------------
112 * indent-tabs-mode: t