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

Subversion Repositories openrisc_me

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

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

Line No. Rev Author Line
1 19 jeremybenn
/* op-2t.h -- Instantiation of operatations that work on only 2 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
#define OP_2T
21
#define T glue(glue(glue(_, T0), _), T1)
22
 
23
#if NUM_T_REGS == 3
24
# define T0 t0
25
#  define T1 t0
26
#   include OP_FILE
27
#  undef T1
28
#  define T1 t1
29
#   include OP_FILE
30
#  undef T1
31
#  define T1 t2
32
#   include OP_FILE
33
#  undef T1
34
# undef T0
35
# define T0 t1
36
#  define T1 t0
37
#   include OP_FILE
38
#  undef T1
39
#  define T1 t1
40
#   include OP_FILE
41
#  undef T1
42
#  define T1 t2
43
#   include OP_FILE
44
#  undef T1
45
# undef T0
46
# define T0 t2
47
#  define T1 t0
48
#   include OP_FILE
49
#  undef T1
50
#  define T1 t1
51
#   include OP_FILE
52
#  undef T1
53
#  define T1 t2
54
#   include OP_FILE
55
#  undef T1
56
# undef T0
57
#else
58
#error Update op_2t.h for NUM_T_REGS temporaries
59
#endif
60
 
61
#undef T
62
#undef OP_2T

powered by: WebSVN 2.1.0

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