OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [or1ksim/] [cpu/] [or32/] [op-3t.h] - Blame information for rev 308

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 19 jeremybenn
/* op-3t.h -- Instantiation of operatations that work on only 3 temporary
2
   Copyright (C) 2005 György `nog' Jeney, nog@sdf.lonestar.org
3
 
4
This file is part of OpenRISC 1000 Architectural Simulator.
5
 
6
This program is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 2 of the License, or
9
(at your option) any later version.
10
 
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
GNU General Public License for more details.
15
 
16
You should have received a copy of the GNU General Public License
17
along with this program; if not, write to the Free Software
18
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
19
 
20
 
21
#define OP_3T
22
#define T glue(glue(glue(glue(glue(_, T0), _), T1), _), T2)
23
 
24
#if NUM_T_REGS == 3
25
# define T0 t0
26
#  define T1 t0
27
#   define T2 t0
28
#    include OP_FILE
29
#   undef T2
30
#   define T2 t1
31
#    include OP_FILE
32
#   undef T2
33
#   define T2 t2
34
#    include OP_FILE
35
#   undef T2
36
#  undef T1
37
#  define T1 t1
38
#   define T2 t0
39
#    include OP_FILE
40
#   undef T2
41
#   define T2 t1
42
#    include OP_FILE
43
#   undef T2
44
#   define T2 t2
45
#    include OP_FILE
46
#   undef T2
47
#  undef T1
48
#  define T1 t2
49
#   define T2 t0
50
#    include OP_FILE
51
#   undef T2
52
#   define T2 t1
53
#    include OP_FILE
54
#   undef T2
55
#   define T2 t2
56
#    include OP_FILE
57
#   undef T2
58
#  undef T1
59
# undef T0
60
# define T0 t1
61
#  define T1 t0
62
#   define T2 t0
63
#    include OP_FILE
64
#   undef T2
65
#   define T2 t1
66
#    include OP_FILE
67
#   undef T2
68
#   define T2 t2
69
#    include OP_FILE
70
#   undef T2
71
#  undef T1
72
#  define T1 t1
73
#   define T2 t0
74
#    include OP_FILE
75
#   undef T2
76
#   define T2 t1
77
#    include OP_FILE
78
#   undef T2
79
#   define T2 t2
80
#    include OP_FILE
81
#   undef T2
82
#  undef T1
83
#  define T1 t2
84
#   define T2 t0
85
#    include OP_FILE
86
#   undef T2
87
#   define T2 t1
88
#    include OP_FILE
89
#   undef T2
90
#   define T2 t2
91
#    include OP_FILE
92
#   undef T2
93
#  undef T1
94
# undef T0
95
# define T0 t2
96
#  define T1 t0
97
#   define T2 t0
98
#    include OP_FILE
99
#   undef T2
100
#   define T2 t1
101
#    include OP_FILE
102
#   undef T2
103
#   define T2 t2
104
#    include OP_FILE
105
#   undef T2
106
#  undef T1
107
#  define T1 t1
108
#   define T2 t0
109
#    include OP_FILE
110
#   undef T2
111
#   define T2 t1
112
#    include OP_FILE
113
#   undef T2
114
#   define T2 t2
115
#    include OP_FILE
116
#   undef T2
117
#  undef T1
118
#  define T1 t2
119
#   define T2 t0
120
#    include OP_FILE
121
#   undef T2
122
#   define T2 t1
123
#    include OP_FILE
124
#   undef T2
125
#   define T2 t2
126
#    include OP_FILE
127
#   undef T2
128
#  undef T1
129
# undef T0
130
#else
131
#error Update op_3t.h for NUM_T_REGS temporaries
132
#endif
133
 
134
#undef T
135
#undef OP_3T

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.