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
39 * ***********************************************************/
46 /* PLT unsafe temp regs */
50 #define mptr_itmp2 itmp2
52 #define xptr_itmp2 itmp2
53 #define xpc_itmp3 itmp3
89 /* save and restore macros ****************************************************/
91 #define SAVE_FLOAT_RETURN_REGISTER(off) \
92 std fv0,[%sp + bias + ((off)*8)] ;
94 #define RESTORE_FLOAT_RETURN_REGISTER(off) \
95 ldd [%sp + bias + ((off)*8)],fv0 ;
98 #define SAVE_FLOAT_ARGUMENT_REGISTERS(off) \
99 std fa0,[%sp + bias + ((0+(off))*8)] ; \
100 std fa1,[%sp + bias + ((1+(off))*8)] ; \
101 std fa2,[%sp + bias + ((2+(off))*8)] ; \
102 std fa3,[%sp + bias + ((3+(off))*8)] ; \
103 std fa4,[%sp + bias + ((4+(off))*8)] ;
106 #define RESTORE_FLOAT_ARGUMENT_REGISTERS(off) \
107 ldd [%sp + bias + ((0+(off))*8)],fa0 ; \
108 ldd [%sp + bias + ((1+(off))*8)],fa1 ; \
109 ldd [%sp + bias + ((2+(off))*8)],fa2 ; \
110 ldd [%sp + bias + ((3+(off))*8)],fa3 ; \
111 ldd [%sp + bias + ((4+(off))*8)],fa4 ;
113 #define SAVE_FLOAT_TEMPORARY_REGISTERS(off) \
114 std ft0,[%sp + bias + ((0+(off))*8)] ; \
115 std ft1,[%sp + bias + ((1+(off))*8)] ; \
116 std ft2,[%sp + bias + ((2+(off))*8)] ; \
117 std ft3,[%sp + bias + ((3+(off))*8)] ; \
118 std ft4,[%sp + bias + ((4+(off))*8)] ; \
119 std ft5,[%sp + bias + ((5+(off))*8)] ; \
120 std ft6,[%sp + bias + ((6+(off))*8)] ; \
121 std ft7,[%sp + bias + ((7+(off))*8)] ; \
122 std ft8,[%sp + bias + ((8+(off))*8)] ; \
123 std ft9,[%sp + bias + ((9+(off))*8)] ; \
125 #define RESTORE_FLOAT_TEMPORARY_REGISTERS(off) \
126 ldd [%sp + bias + ((0+(off))*8)],ft0 ; \
127 ldd [%sp + bias + ((1+(off))*8)],ft1 ; \
128 ldd [%sp + bias + ((2+(off))*8)],ft2 ; \
129 ldd [%sp + bias + ((3+(off))*8)],ft3 ; \
130 ldd [%sp + bias + ((4+(off))*8)],ft4 ; \
131 ldd [%sp + bias + ((5+(off))*8)],ft5 ; \
132 ldd [%sp + bias + ((6+(off))*8)],ft6 ; \
133 ldd [%sp + bias + ((7+(off))*8)],ft7 ; \
134 ldd [%sp + bias + ((8+(off))*8)],ft8 ; \
135 ldd [%sp + bias + ((9+(off))*8)],ft9 ; \
139 #endif /* _MD_ASM_H */
143 * These are local overrides for various environment variables in Emacs.
144 * Please do not remove this and leave it at the end of the file, where
145 * Emacs will automagically detect them.
147 * ---------------------------------------------------------------------
150 * indent-tabs-mode: t