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
91 /* save and restore macros ****************************************************/
94 #define SAVE_FLOAT_ARGUMENT_REGISTERS(off) \
95 std fa0,[%sp + bias + ((0+(off))*8)] ; \
96 std fa1,[%sp + bias + ((1+(off))*8)] ; \
97 std fa2,[%sp + bias + ((2+(off))*8)] ; \
98 std fa3,[%sp + bias + ((3+(off))*8)] ; \
99 std fa4,[%sp + bias + ((4+(off))*8)] ;
102 #define RESTORE_FLOAT_ARGUMENT_REGISTERS(off) \
103 ldd [%sp + bias + ((0+(off))*8)],fa0 ; \
104 ldd [%sp + bias + ((1+(off))*8)],fa1 ; \
105 ldd [%sp + bias + ((2+(off))*8)],fa2 ; \
106 ldd [%sp + bias + ((3+(off))*8)],fa3 ; \
107 ldd [%sp + bias + ((4+(off))*8)],fa4 ;
109 #define SAVE_FLOAT_TEMPORARY_REGISTERS(off) \
110 std ft0,[%sp + bias + ((0+(off))*8)] ; \
111 std ft1,[%sp + bias + ((1+(off))*8)] ; \
112 std ft2,[%sp + bias + ((2+(off))*8)] ; \
113 std ft3,[%sp + bias + ((3+(off))*8)] ; \
114 std ft4,[%sp + bias + ((4+(off))*8)] ; \
115 std ft5,[%sp + bias + ((5+(off))*8)] ; \
116 std ft6,[%sp + bias + ((6+(off))*8)] ; \
117 std ft7,[%sp + bias + ((7+(off))*8)] ; \
118 std ft8,[%sp + bias + ((8+(off))*8)] ; \
119 std ft9,[%sp + bias + ((9+(off))*8)] ; \
121 #define RESTORE_FLOAT_TEMPORARY_REGISTERS(off) \
122 ldd [%sp + bias + ((0+(off))*8)],ft0 ; \
123 ldd [%sp + bias + ((1+(off))*8)],ft1 ; \
124 ldd [%sp + bias + ((2+(off))*8)],ft2 ; \
125 ldd [%sp + bias + ((3+(off))*8)],ft3 ; \
126 ldd [%sp + bias + ((4+(off))*8)],ft4 ; \
127 ldd [%sp + bias + ((5+(off))*8)],ft5 ; \
128 ldd [%sp + bias + ((6+(off))*8)],ft6 ; \
129 ldd [%sp + bias + ((7+(off))*8)],ft7 ; \
130 ldd [%sp + bias + ((8+(off))*8)],ft8 ; \
131 ldd [%sp + bias + ((9+(off))*8)],ft9 ; \
135 #endif /* _MD_ASM_H */
139 * These are local overrides for various environment variables in Emacs.
140 * Please do not remove this and leave it at the end of the file, where
141 * Emacs will automagically detect them.
143 * ---------------------------------------------------------------------
146 * indent-tabs-mode: t