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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [frv/] [bcnvlr.cgs] - Blame information for rev 157

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

Line No. Rev Author Line
1 24 jeremybenn
# frv testcase for bcnvlr $ICCi,$ccond,$hint
2
# mach: all
3
 
4
        .include "testutils.inc"
5
 
6
        start
7
 
8
        .global bcnvlr
9
bcnvlr:
10
        ; ccond is true
11
        set_spr_immed   128,lcr
12
        set_spr_addr    ok1,lr
13
        set_icc         0x0 0
14
        bcnvlr          icc0,0,0
15
        fail
16
ok1:
17
        set_spr_addr    ok2,lr
18
        set_icc         0x1 1
19
        bcnvlr          icc1,0,1
20
        fail
21
ok2:
22
        set_spr_addr    bad,lr
23
        set_icc         0x2 2
24
        bcnvlr          icc2,0,2
25
 
26
        set_spr_addr    bad,lr
27
        set_icc         0x3 3
28
        bcnvlr          icc3,0,3
29
 
30
        set_spr_addr    ok5,lr
31
        set_icc         0x4 0
32
        bcnvlr          icc0,0,0
33
        fail
34
ok5:
35
        set_spr_addr    ok6,lr
36
        set_icc         0x5 1
37
        bcnvlr          icc1,0,1
38
        fail
39
ok6:
40
        set_spr_addr    bad,lr
41
        set_icc         0x6 2
42
        bcnvlr          icc2,0,2
43
 
44
        set_spr_addr    bad,lr
45
        set_icc         0x7 3
46
        bcnvlr          icc3,0,3
47
 
48
        set_spr_addr    ok9,lr
49
        set_icc         0x8 0
50
        bcnvlr          icc0,0,0
51
        fail
52
ok9:
53
        set_spr_addr    oka,lr
54
        set_icc         0x9 1
55
        bcnvlr          icc1,0,1
56
        fail
57
oka:
58
        set_spr_addr    bad,lr
59
        set_icc         0xa 2
60
        bcnvlr          icc2,0,2
61
 
62
        set_spr_addr    bad,lr
63
        set_icc         0xb 3
64
        bcnvlr          icc3,0,3
65
 
66
        set_spr_addr    okd,lr
67
        set_icc         0xc 0
68
        bcnvlr          icc0,0,0
69
        fail
70
okd:
71
        set_spr_addr    oke,lr
72
        set_icc         0xd 1
73
        bcnvlr          icc1,0,1
74
        fail
75
oke:
76
        set_spr_addr    bad,lr
77
        set_icc         0xe 2
78
        bcnvlr          icc2,0,2
79
 
80
        set_spr_addr    bad,lr
81
        set_icc         0xf 3
82
        bcnvlr          icc3,0,3
83
 
84
        ; ccond is true
85
        set_spr_immed   1,lcr
86
        set_spr_addr    okh,lr
87
        set_icc         0x0 0
88
        bcnvlr          icc0,1,0
89
        fail
90
okh:
91
        set_spr_immed   1,lcr
92
        set_spr_addr    oki,lr
93
        set_icc         0x1 1
94
        bcnvlr          icc1,1,1
95
        fail
96
oki:
97
        set_spr_immed   1,lcr
98
        set_spr_addr    bad,lr
99
        set_icc         0x2 2
100
        bcnvlr          icc2,1,2
101
 
102
        set_spr_immed   1,lcr
103
        set_spr_addr    bad,lr
104
        set_icc         0x3 3
105
        bcnvlr          icc3,1,3
106
 
107
        set_spr_immed   1,lcr
108
        set_spr_addr    okl,lr
109
        set_icc         0x4 0
110
        bcnvlr          icc0,1,0
111
        fail
112
okl:
113
        set_spr_immed   1,lcr
114
        set_spr_addr    okm,lr
115
        set_icc         0x5 1
116
        bcnvlr          icc1,1,1
117
        fail
118
okm:
119
        set_spr_immed   1,lcr
120
        set_spr_addr    bad,lr
121
        set_icc         0x6 2
122
        bcnvlr          icc2,1,2
123
 
124
        set_spr_immed   1,lcr
125
        set_spr_addr    bad,lr
126
        set_icc         0x7 3
127
        bcnvlr          icc3,1,3
128
 
129
        set_spr_immed   1,lcr
130
        set_spr_addr    okp,lr
131
        set_icc         0x8 0
132
        bcnvlr          icc0,1,0
133
        fail
134
okp:
135
        set_spr_immed   1,lcr
136
        set_spr_addr    okq,lr
137
        set_icc         0x9 1
138
        bcnvlr          icc1,1,1
139
        fail
140
okq:
141
        set_spr_immed   1,lcr
142
        set_spr_addr    bad,lr
143
        set_icc         0xa 2
144
        bcnvlr          icc2,1,2
145
 
146
        set_spr_immed   1,lcr
147
        set_spr_addr    bad,lr
148
        set_icc         0xb 3
149
        bcnvlr          icc3,1,3
150
 
151
        set_spr_immed   1,lcr
152
        set_spr_addr    okt,lr
153
        set_icc         0xc 0
154
        bcnvlr          icc0,1,0
155
        fail
156
okt:
157
        set_spr_immed   1,lcr
158
        set_spr_addr    oku,lr
159
        set_icc         0xd 1
160
        bcnvlr          icc1,1,1
161
        fail
162
oku:
163
        set_spr_immed   1,lcr
164
        set_spr_addr    bad,lr
165
        set_icc         0xe 2
166
        bcnvlr          icc2,1,2
167
 
168
        set_spr_immed   1,lcr
169
        set_spr_addr    bad,lr
170
        set_icc         0xf 3
171
        bcnvlr          icc3,1,3
172
 
173
        ; ccond is false
174
        set_spr_immed   128,lcr
175
        set_spr_addr    bad,lr
176
        set_icc         0x0 0
177
        bcnvlr          icc0,1,0
178
 
179
        set_icc         0x1 1
180
        bcnvlr          icc1,1,1
181
 
182
        set_icc         0x2 2
183
        bcnvlr          icc2,1,2
184
 
185
        set_icc         0x3 3
186
        bcnvlr          icc3,1,3
187
 
188
        set_icc         0x4 0
189
        bcnvlr          icc0,1,0
190
 
191
        set_icc         0x5 1
192
        bcnvlr          icc1,1,1
193
 
194
        set_icc         0x6 2
195
        bcnvlr          icc2,1,2
196
 
197
        set_icc         0x7 3
198
        bcnvlr          icc3,1,3
199
 
200
        set_icc         0x8 0
201
        bcnvlr          icc0,1,0
202
 
203
        set_icc         0x9 1
204
        bcnvlr          icc1,1,1
205
 
206
        set_icc         0xa 2
207
        bcnvlr          icc2,1,2
208
 
209
        set_icc         0xb 3
210
        bcnvlr          icc3,1,3
211
 
212
        set_icc         0xc 0
213
        bcnvlr          icc0,1,0
214
 
215
        set_icc         0xd 1
216
        bcnvlr          icc1,1,1
217
 
218
        set_icc         0xe 2
219
        bcnvlr          icc2,1,2
220
 
221
        set_icc         0xf 3
222
        bcnvlr          icc3,1,3
223
 
224
        ; ccond is false
225
        set_spr_immed   1,lcr
226
        set_spr_addr    bad,lr
227
        set_icc         0x0 0
228
        bcnvlr          icc0,0,0
229
 
230
        set_spr_immed   1,lcr
231
        set_icc         0x1 1
232
        bcnvlr          icc1,0,1
233
 
234
        set_spr_immed   1,lcr
235
        set_icc         0x2 2
236
        bcnvlr          icc2,0,2
237
 
238
        set_spr_immed   1,lcr
239
        set_icc         0x3 3
240
        bcnvlr          icc3,0,3
241
 
242
        set_spr_immed   1,lcr
243
        set_icc         0x4 0
244
        bcnvlr          icc0,0,0
245
 
246
        set_spr_immed   1,lcr
247
        set_icc         0x5 1
248
        bcnvlr          icc1,0,1
249
 
250
        set_spr_immed   1,lcr
251
        set_icc         0x6 2
252
        bcnvlr          icc2,0,2
253
 
254
        set_spr_immed   1,lcr
255
        set_icc         0x7 3
256
        bcnvlr          icc3,0,3
257
 
258
        set_spr_immed   1,lcr
259
        set_icc         0x8 0
260
        bcnvlr          icc0,0,0
261
 
262
        set_spr_immed   1,lcr
263
        set_icc         0x9 1
264
        bcnvlr          icc1,0,1
265
 
266
        set_spr_immed   1,lcr
267
        set_icc         0xa 2
268
        bcnvlr          icc2,0,2
269
 
270
        set_spr_immed   1,lcr
271
        set_icc         0xb 3
272
        bcnvlr          icc3,0,3
273
 
274
        set_spr_immed   1,lcr
275
        set_icc         0xc 0
276
        bcnvlr          icc0,0,0
277
 
278
        set_spr_immed   1,lcr
279
        set_icc         0xd 1
280
        bcnvlr          icc1,0,1
281
 
282
        set_spr_immed   1,lcr
283
        set_icc         0xe 2
284
        bcnvlr          icc2,0,2
285
 
286
        set_spr_immed   1,lcr
287
        set_icc         0xf 3
288
        bcnvlr          icc3,0,3
289
 
290
        pass
291
bad:
292
        fail

powered by: WebSVN 2.1.0

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