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

Subversion Repositories or1k

[/] [or1k/] [tags/] [stable_0_2_0_rc1/] [or1ksim/] [cpu/] [or32/] [op_comp_op.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1452 nogj
/* op_comp_op.h -- Micro operations template for comparison operations
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
__or_dynop void glue(glue(op_, COMP_NAME), _t0_t0)(void)
22
{
23
  if(COMP_CAST(t0) COMP COMP_CAST(t0))
24
    env->sprs[SPR_SR] |= SPR_SR_F;
25
  else
26
    env->sprs[SPR_SR] &= ~SPR_SR_F;
27
}
28
 
29
__or_dynop void glue(glue(op_, COMP_NAME), _t0_t1)(void)
30
{
31
  if(COMP_CAST(t0) COMP COMP_CAST(t1))
32
    env->sprs[SPR_SR] |= SPR_SR_F;
33
  else
34
    env->sprs[SPR_SR] &= ~SPR_SR_F;
35
  FORCE_RET;
36
}
37
 
38
__or_dynop void glue(glue(op_, COMP_NAME), _t0_t2)(void)
39
{
40
  if(COMP_CAST(t0) COMP COMP_CAST(t2))
41
    env->sprs[SPR_SR] |= SPR_SR_F;
42
  else
43
    env->sprs[SPR_SR] &= ~SPR_SR_F;
44
  FORCE_RET;
45
}
46
 
47
__or_dynop void glue(glue(op_, COMP_NAME), _t1_t0)(void)
48
{
49
  if(COMP_CAST(t1) COMP COMP_CAST(t0))
50
    env->sprs[SPR_SR] |= SPR_SR_F;
51
  else
52
    env->sprs[SPR_SR] &= ~SPR_SR_F;
53
  FORCE_RET;
54
}
55
 
56
__or_dynop void glue(glue(op_, COMP_NAME), _t1_t1)(void)
57
{
58
  if(COMP_CAST(t1) COMP COMP_CAST(t1))
59
    env->sprs[SPR_SR] |= SPR_SR_F;
60
  else
61
    env->sprs[SPR_SR] &= ~SPR_SR_F;
62
}
63
 
64
__or_dynop void glue(glue(op_, COMP_NAME), _t1_t2)(void)
65
{
66
  if(COMP_CAST(t1) COMP COMP_CAST(t2))
67
    env->sprs[SPR_SR] |= SPR_SR_F;
68
  else
69
    env->sprs[SPR_SR] &= ~SPR_SR_F;
70
  FORCE_RET;
71
}
72
 
73
__or_dynop void glue(glue(op_, COMP_NAME), _t2_t0)(void)
74
{
75
  if(COMP_CAST(t2) COMP COMP_CAST(t0))
76
    env->sprs[SPR_SR] |= SPR_SR_F;
77
  else
78
    env->sprs[SPR_SR] &= ~SPR_SR_F;
79
  FORCE_RET;
80
}
81
 
82
__or_dynop void glue(glue(op_, COMP_NAME), _t2_t1)(void)
83
{
84
  if(COMP_CAST(t2) COMP COMP_CAST(t1))
85
    env->sprs[SPR_SR] |= SPR_SR_F;
86
  else
87
    env->sprs[SPR_SR] &= ~SPR_SR_F;
88
  FORCE_RET;
89
}
90
 
91
__or_dynop void glue(glue(op_, COMP_NAME), _t2_t2)(void)
92
{
93
  if(COMP_CAST(t2) COMP COMP_CAST(t2))
94
    env->sprs[SPR_SR] |= SPR_SR_F;
95
  else
96
    env->sprs[SPR_SR] &= ~SPR_SR_F;
97
}
98
 
99
__or_dynop void glue(glue(op_, COMP_NAME), _imm_t0)(void)
100
{
101
  if(COMP_CAST(t0) COMP COMP_CAST(OP_PARAM1))
102
    env->sprs[SPR_SR] |= SPR_SR_F;
103
  else
104
    env->sprs[SPR_SR] &= ~SPR_SR_F;
105
  FORCE_RET;
106
}
107
 
108
__or_dynop void glue(glue(op_, COMP_NAME), _imm_t1)(void)
109
{
110
  if(COMP_CAST(t1) COMP COMP_CAST(OP_PARAM1))
111
    env->sprs[SPR_SR] |= SPR_SR_F;
112
  else
113
    env->sprs[SPR_SR] &= ~SPR_SR_F;
114
  FORCE_RET;
115
}
116
 
117
__or_dynop void glue(glue(op_, COMP_NAME), _imm_t2)(void)
118
{
119
  if(COMP_CAST(t2) COMP COMP_CAST(OP_PARAM1))
120
    env->sprs[SPR_SR] |= SPR_SR_F;
121
  else
122
    env->sprs[SPR_SR] &= ~SPR_SR_F;
123
  FORCE_RET;
124
}
125
 
126
__or_dynop void glue(glue(op_, COMP_NAME), _null_t0)(void)
127
{
128
  if(COMP_CAST(t0) COMP 0)
129
    env->sprs[SPR_SR] |= SPR_SR_F;
130
  else
131
    env->sprs[SPR_SR] &= ~SPR_SR_F;
132
  FORCE_RET;
133
}
134
 
135
__or_dynop void glue(glue(op_, COMP_NAME), _null_t1)(void)
136
{
137
  if(COMP_CAST(t1) COMP 0)
138
    env->sprs[SPR_SR] |= SPR_SR_F;
139
  else
140
    env->sprs[SPR_SR] &= ~SPR_SR_F;
141
  FORCE_RET;
142
}
143
 
144
__or_dynop void glue(glue(op_, COMP_NAME), _null_t2)(void)
145
{
146
  if(COMP_CAST(t2) COMP 0)
147
    env->sprs[SPR_SR] |= SPR_SR_F;
148
  else
149
    env->sprs[SPR_SR] &= ~SPR_SR_F;
150
  FORCE_RET;
151
}

powered by: WebSVN 2.1.0

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