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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.2/] [sim/] [testsuite/] [sim/] [frv/] [bcralr.cgs] - Blame information for rev 373

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

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

powered by: WebSVN 2.1.0

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