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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [frv/] [bcplr.cgs] - Blame information for rev 450

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

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