repo.or.cz
/
binutils-gdb.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
RISC-V: Cleanup the imply code and test cases for vendor xsf extensions.
[binutils-gdb.git]
/
sim
/
testsuite
/
frv
/
bcclr.cgs
blob
248be13491a80834213b478280c4adea44793ef4
1
# frv testcase for bcclr $ICCi,$ccond,$hint
2
# mach: all
3
4
.include "testutils.inc"
5
6
start
7
8
.global bcclr
9
bcclr:
10
; ccond is true
11
set_spr_immed 128,lcr
12
set_spr_addr bad,lr
13
set_icc 0x0 0
14
bcclr icc0,0,0
15
16
set_spr_addr ok2,lr
17
set_icc 0x1 1
18
bcclr icc1,0,1
19
fail
20
ok2:
21
set_spr_addr bad,lr
22
set_icc 0x2 2
23
bcclr icc2,0,2
24
25
set_spr_addr ok4,lr
26
set_icc 0x3 3
27
bcclr icc3,0,3
28
fail
29
ok4:
30
set_spr_addr bad,lr
31
set_icc 0x4 0
32
bcclr icc0,0,0
33
34
set_spr_addr ok6,lr
35
set_icc 0x5 1
36
bcclr icc1,0,1
37
fail
38
ok6:
39
set_spr_addr bad,lr
40
set_icc 0x6 2
41
bcclr icc2,0,2
42
43
set_spr_addr ok8,lr
44
set_icc 0x7 3
45
bcclr icc3,0,3
46
fail
47
ok8:
48
set_spr_addr bad,lr
49
set_icc 0x8 0
50
bcclr icc0,0,0
51
52
set_spr_addr oka,lr
53
set_icc 0x9 1
54
bcclr icc1,0,1
55
fail
56
oka:
57
set_spr_addr bad,lr
58
set_icc 0xa 2
59
bcclr icc2,0,2
60
61
set_spr_addr okc,lr
62
set_icc 0xb 3
63
bcclr icc3,0,3
64
fail
65
okc:
66
set_spr_addr bad,lr
67
set_icc 0xc 0
68
bcclr icc0,0,0
69
70
set_spr_addr oke,lr
71
set_icc 0xd 1
72
bcclr icc1,0,1
73
fail
74
oke:
75
set_spr_addr bad,lr
76
set_icc 0xe 2
77
bcclr icc2,0,2
78
79
set_spr_addr okg,lr
80
set_icc 0xf 3
81
bcclr icc3,0,3
82
fail
83
okg:
84
85
; ccond is true
86
set_spr_immed 1,lcr
87
set_spr_addr bad,lr
88
set_icc 0x0 0
89
bcclr icc0,1,0
90
91
set_spr_immed 1,lcr
92
set_spr_addr oki,lr
93
set_icc 0x1 1
94
bcclr 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
bcclr icc2,1,2
101
102
set_spr_immed 1,lcr
103
set_spr_addr okk,lr
104
set_icc 0x3 3
105
bcclr icc3,1,3
106
fail
107
okk:
108
set_spr_immed 1,lcr
109
set_spr_addr bad,lr
110
set_icc 0x4 0
111
bcclr icc0,1,0
112
113
set_spr_immed 1,lcr
114
set_spr_addr okm,lr
115
set_icc 0x5 1
116
bcclr 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
bcclr icc2,1,2
123
124
set_spr_immed 1,lcr
125
set_spr_addr oko,lr
126
set_icc 0x7 3
127
bcclr icc3,1,3
128
fail
129
oko:
130
set_spr_immed 1,lcr
131
set_spr_addr bad,lr
132
set_icc 0x8 0
133
bcclr icc0,1,0
134
135
set_spr_immed 1,lcr
136
set_spr_addr okq,lr
137
set_icc 0x9 1
138
bcclr 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
bcclr icc2,1,2
145
146
set_spr_immed 1,lcr
147
set_spr_addr oks,lr
148
set_icc 0xb 3
149
bcclr icc3,1,3
150
fail
151
oks:
152
set_spr_immed 1,lcr
153
set_spr_addr bad,lr
154
set_icc 0xc 0
155
bcclr icc0,1,0
156
157
set_spr_immed 1,lcr
158
set_spr_addr oku,lr
159
set_icc 0xd 1
160
bcclr 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
bcclr icc2,1,2
167
168
set_spr_immed 1,lcr
169
set_spr_addr okw,lr
170
set_icc 0xf 3
171
bcclr icc3,1,3
172
fail
173
okw:
174
; ccond is false
175
set_spr_immed 128,lcr
176
set_spr_addr bad,lr
177
set_icc 0x0 0
178
bcclr icc0,1,0
179
180
set_icc 0x1 1
181
bcclr icc1,1,1
182
183
set_icc 0x2 2
184
bcclr icc2,1,2
185
186
set_icc 0x3 3
187
bcclr icc3,1,3
188
189
set_icc 0x4 0
190
bcclr icc0,1,0
191
192
set_icc 0x5 1
193
bcclr icc1,1,1
194
195
set_icc 0x6 2
196
bcclr icc2,1,2
197
198
set_icc 0x7 3
199
bcclr icc3,1,3
200
201
set_icc 0x8 0
202
bcclr icc0,1,0
203
204
set_icc 0x9 1
205
bcclr icc1,1,1
206
207
set_icc 0xa 2
208
bcclr icc2,1,2
209
210
set_icc 0xb 3
211
bcclr icc3,1,3
212
213
set_icc 0xc 0
214
bcclr icc0,1,0
215
216
set_icc 0xd 1
217
bcclr icc1,1,1
218
219
set_icc 0xe 2
220
bcclr icc2,1,2
221
222
set_icc 0xf 3
223
bcclr icc3,1,3
224
225
; ccond is false
226
set_spr_immed 1,lcr
227
set_spr_addr bad,lr
228
set_icc 0x0 0
229
bcclr icc0,0,0
230
231
set_spr_immed 1,lcr
232
set_icc 0x1 1
233
bcclr icc1,0,1
234
235
set_spr_immed 1,lcr
236
set_icc 0x2 2
237
bcclr icc2,0,2
238
239
set_spr_immed 1,lcr
240
set_icc 0x3 3
241
bcclr icc3,0,3
242
243
set_spr_immed 1,lcr
244
set_icc 0x4 0
245
bcclr icc0,0,0
246
247
set_spr_immed 1,lcr
248
set_icc 0x5 1
249
bcclr icc1,0,1
250
251
set_spr_immed 1,lcr
252
set_icc 0x6 2
253
bcclr icc2,0,2
254
255
set_spr_immed 1,lcr
256
set_icc 0x7 3
257
bcclr icc3,0,3
258
259
set_spr_immed 1,lcr
260
set_icc 0x8 0
261
bcclr icc0,0,0
262
263
set_spr_immed 1,lcr
264
set_icc 0x9 1
265
bcclr icc1,0,1
266
267
set_spr_immed 1,lcr
268
set_icc 0xa 2
269
bcclr icc2,0,2
270
271
set_spr_immed 1,lcr
272
set_icc 0xb 3
273
bcclr icc3,0,3
274
275
set_spr_immed 1,lcr
276
set_icc 0xc 0
277
bcclr icc0,0,0
278
279
set_spr_immed 1,lcr
280
set_icc 0xd 1
281
bcclr icc1,0,1
282
283
set_spr_immed 1,lcr
284
set_icc 0xe 2
285
bcclr icc2,0,2
286
287
set_spr_immed 1,lcr
288
set_icc 0xf 3
289
bcclr icc3,0,3
290
291
pass
292
bad:
293
fail