Added and changed some SUPPORT defines.
[cacao.git] / src / vm / jit / alpha / arch.h
1 /* src/vm/jit/alpha/arch.h - architecture defines for Alpha
2
3    Copyright (C) 1996-2005 R. Grafl, A. Krall, C. Kruegel, C. Oates,
4    R. Obermaisser, M. Platter, M. Probst, S. Ring, E. Steiner,
5    C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich, J. Wenninger,
6    Institut f. Computersprachen - TU Wien
7
8    This file is part of CACAO.
9
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.
14
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.
19
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., 59 Temple Place - Suite 330, Boston, MA
23    02111-1307, USA.
24
25    Contact: cacao@complang.tuwien.ac.at
26
27    Authors: Christian Thalinger
28
29    Changes:
30
31    $Id: arch.h 2039 2005-03-20 11:24:19Z twisti $
32
33 */
34
35
36 #ifndef _ARCH_H
37 #define _ARCH_H
38
39
40 /* preallocated registers *****************************************************/
41
42 /* integer registers */
43   
44 #define REG_RESULT      0    /* to deliver method results                     */
45
46 #define REG_RA          26   /* return address                                */
47 #define REG_PV          27   /* procedure vector, must be provided by caller  */
48 #define REG_METHODPTR   28   /* pointer to the place from where the procedure */
49                              /* vector has been fetched                       */
50 #define REG_ITMP1       25   /* temporary register                            */
51 #define REG_ITMP2       28   /* temporary register and method pointer         */
52 #define REG_ITMP3       29   /* temporary register                            */
53
54 #define REG_ITMP1_XPTR  25   /* exception pointer = temporary register 1      */
55 #define REG_ITMP2_XPC   28   /* exception pc = temporary register 2           */
56
57 #define REG_SP          30   /* stack pointer                                 */
58 #define REG_ZERO        31   /* always zero                                   */
59
60 /* floating point registers */
61
62 #define REG_FRESULT     0    /* to deliver floating point method results      */
63
64 #define REG_FTMP1       28   /* temporary floating point register             */
65 #define REG_FTMP2       29   /* temporary floating point register             */
66 #define REG_FTMP3       30   /* temporary floating point register             */
67
68 #define REG_IFTMP       28   /* temporary integer and floating point register */
69
70
71 #define INT_SAV_CNT      7   /* number of int callee saved registers          */
72 #define INT_ARG_CNT      6   /* number of int argument registers              */
73
74 #define FLT_SAV_CNT      8   /* number of flt callee saved registers          */
75 #define FLT_ARG_CNT      6   /* number of flt argument registers              */
76
77
78 #define TRACE_ARGS_NUM  6
79
80
81 /* define architecture features ***********************************************/
82
83 #define POINTERSIZE                      8
84 #define WORDS_BIGENDIAN                  0
85
86 #define U8_AVAILABLE                     1
87
88 #define USE_CODEMMAP                     1
89
90 /*  #define USEBUILTINTABLE */
91
92 #define SUPPORT_DIVISION                 0
93 #define SUPPORT_LONG                     1
94 #define SUPPORT_FLOAT                    1
95 #define SUPPORT_DOUBLE                   1
96
97 /*  #define SUPPORT_IFCVT                  1 */
98 /*  #define SUPPORT_FICVT                  1 */
99
100 #define SUPPORT_LONG_ADD                 1
101 #define SUPPORT_LONG_CMP                 1
102 #define SUPPORT_LONG_LOGICAL             1
103 #define SUPPORT_LONG_SHIFT               1
104 #define SUPPORT_LONG_MUL                 1
105 #define SUPPORT_LONG_DIV                 0
106 #define SUPPORT_LONG_ICVT                1
107 #define SUPPORT_LONG_FCVT                1
108
109 #define SUPPORT_CONST_LOGICAL            1  /* AND, OR, XOR with immediates   */
110 #define SUPPORT_CONST_MUL                1  /* mutiply with immediate         */
111
112 #define SUPPORT_CONST_STORE              1  /* do we support const stores     */
113 #define SUPPORT_CONST_STORE_ZERO_ONLY    1  /* on some risc machines we can   */
114                                             /* only store REG_ZERO            */
115
116 #define CONDITIONAL_LOADCONST
117
118 /*  #define CONSECUTIVE_INTARGS */
119 /*  #define CONSECUTIVE_FLOATARGS */
120
121 #endif /* _ARCH_H */
122
123
124 /*
125  * These are local overrides for various environment variables in Emacs.
126  * Please do not remove this and leave it at the end of the file, where
127  * Emacs will automagically detect them.
128  * ---------------------------------------------------------------------
129  * Local variables:
130  * mode: c
131  * indent-tabs-mode: t
132  * c-basic-offset: 4
133  * tab-width: 4
134  * End:
135  */