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 /* PLT unsafe temp regs */
52 #define mptr_itmp2 itmp2
54 #define xptr_itmp2 itmp2
55 #define xpc_itmp3 itmp3
86 /* save and restore macros ****************************************************/
89 #define SAVE_FLOAT_ARGUMENT_REGISTERS(off) \
90 std fa0,[%sp + bias + ((0+(off))*8)] ; \
91 std fa1,[%sp + bias + ((1+(off))*8)] ; \
92 std fa2,[%sp + bias + ((2+(off))*8)] ; \
93 std fa3,[%sp + bias + ((3+(off))*8)] ;
96 #define RESTORE_FLOAT_ARGUMENT_REGISTERS(off) \
97 ldd [%sp + bias + ((0+(off))*8)],fa0 ; \
98 ldd [%sp + bias + ((1+(off))*8)],fa1 ; \
99 ldd [%sp + bias + ((2+(off))*8)],fa2 ; \
100 ldd [%sp + bias + ((3+(off))*8)],fa3 ;
102 #define SAVE_FLOAT_TEMPORARY_REGISTERS(off) \
103 std ft0,[%sp + bias + ((0+(off))*8)] ; \
104 std ft1,[%sp + bias + ((1+(off))*8)] ; \
105 std ft2,[%sp + bias + ((2+(off))*8)] ; \
106 std ft3,[%sp + bias + ((3+(off))*8)] ; \
107 std ft4,[%sp + bias + ((4+(off))*8)] ; \
108 std ft5,[%sp + bias + ((5+(off))*8)] ; \
109 std ft6,[%sp + bias + ((6+(off))*8)] ; \
110 std ft7,[%sp + bias + ((7+(off))*8)] ; \
111 std ft8,[%sp + bias + ((8+(off))*8)] ; \
112 std ft9,[%sp + bias + ((9+(off))*8)] ; \
113 std ft10,[%sp + bias + ((10+(off))*8)] ;
115 #define RESTORE_FLOAT_TEMPORARY_REGISTERS(off) \
116 ldd [%sp + bias + ((0+(off))*8)],ft0 ; \
117 ldd [%sp + bias + ((1+(off))*8)],ft1 ; \
118 ldd [%sp + bias + ((2+(off))*8)],ft2 ; \
119 ldd [%sp + bias + ((3+(off))*8)],ft3 ; \
120 ldd [%sp + bias + ((4+(off))*8)],ft4 ; \
121 ldd [%sp + bias + ((5+(off))*8)],ft5 ; \
122 ldd [%sp + bias + ((6+(off))*8)],ft6 ; \
123 ldd [%sp + bias + ((7+(off))*8)],ft7 ; \
124 ldd [%sp + bias + ((8+(off))*8)],ft8 ; \
125 ldd [%sp + bias + ((9+(off))*8)],ft9 ; \
126 ldd [%sp + bias + ((10+(off))*8)],ft10 ;
130 #endif /* _MD_ASM_H */
134 * These are local overrides for various environment variables in Emacs.
135 * Please do not remove this and leave it at the end of the file, where
136 * Emacs will automagically detect them.
138 * ---------------------------------------------------------------------
141 * indent-tabs-mode: t