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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 24 jeremybenn
# frv testcase for nfddivs $FRi,$FRj,$FRk
2
# mach: frv
3
 
4
        .include "testutils.inc"
5
 
6
        float_constants
7
        start
8
        load_float_constants
9
        load_float_constants1
10
 
11
        .global nfddivs
12
nfddivs:
13
        nfddivs         fr0,fr28,fr2
14
        test_fr_fr      fr2,fr0
15
        test_fr_fr      fr3,fr0
16
        test_spr_immed  0,fner1
17
        test_spr_immed  0,fner0
18
        nfddivs         fr4,fr28,fr2
19
        test_fr_fr      fr2,fr4
20
        test_fr_fr      fr3,fr4
21
        test_spr_immed  0,fner1
22
        test_spr_immed  0,fner0
23
        nfddivs         fr8,fr28,fr2
24
        test_fr_fr      fr2,fr8
25
        test_fr_fr      fr3,fr8
26
        test_spr_immed  0,fner1
27
        test_spr_immed  0,fner0
28
        nfddivs         fr12,fr28,fr2
29
        test_fr_fr      fr2,fr12
30
        test_fr_fr      fr3,fr12
31
        test_spr_immed  0,fner1
32
        test_spr_immed  0,fner0
33
        nfddivs         fr16,fr28,fr2
34
        test_fr_fr      fr2,fr16
35
        test_fr_fr      fr2,fr20
36
        test_fr_fr      fr3,fr16
37
        test_fr_fr      fr3,fr20
38
        test_spr_immed  0,fner1
39
        test_spr_immed  0,fner0
40
        nfddivs         fr20,fr28,fr2
41
        test_fr_fr      fr2,fr16
42
        test_fr_fr      fr2,fr20
43
        test_fr_fr      fr3,fr16
44
        test_fr_fr      fr3,fr20
45
        test_spr_immed  0,fner1
46
        test_spr_immed  0,fner0
47
        nfddivs         fr24,fr28,fr2
48
        test_fr_fr      fr2,fr24
49
        test_fr_fr      fr3,fr24
50
        test_spr_immed  0,fner1
51
        test_spr_immed  0,fner0
52
        nfddivs         fr28,fr28,fr2
53
        test_fr_fr      fr2,fr28
54
        test_fr_fr      fr3,fr28
55
        test_spr_immed  0,fner1
56
        test_spr_immed  0,fner0
57
        nfddivs         fr32,fr28,fr2
58
        test_fr_fr      fr2,fr32
59
        test_fr_fr      fr3,fr32
60
        test_spr_immed  0,fner1
61
        test_spr_immed  0,fner0
62
        nfddivs         fr36,fr28,fr2
63
        test_fr_fr      fr2,fr36
64
        test_fr_fr      fr3,fr36
65
        test_spr_immed  0,fner1
66
        test_spr_immed  0,fner0
67
        nfddivs         fr40,fr28,fr2
68
        test_fr_fr      fr2,fr40
69
        test_fr_fr      fr3,fr40
70
        test_spr_immed  0,fner1
71
        test_spr_immed  0,fner0
72
        nfddivs         fr44,fr28,fr2
73
        test_fr_fr      fr2,fr44
74
        test_fr_fr      fr3,fr44
75
        test_spr_immed  0,fner1
76
        test_spr_immed  0,fner0
77
        nfddivs         fr48,fr28,fr2
78
        test_fr_fr      fr2,fr48
79
        test_fr_fr      fr3,fr48
80
        test_spr_immed  0,fner1
81
        test_spr_immed  0,fner0
82
        nfddivs         fr52,fr28,fr2
83
        test_fr_fr      fr2,fr52
84
        test_fr_fr      fr3,fr52
85
        test_spr_immed  0,fner1
86
        test_spr_immed  0,fner0
87
 
88
        nfddivs         fr16,fr0,fr2
89
        test_fr_fr      fr2,fr16
90
        test_fr_fr      fr2,fr20
91
        test_fr_fr      fr3,fr16
92
        test_fr_fr      fr3,fr20
93
        test_spr_immed  0,fner1
94
        test_spr_immed  0,fner0
95
        nfddivs         fr16,fr4,fr2
96
        test_fr_fr      fr2,fr16
97
        test_fr_fr      fr2,fr20
98
        test_fr_fr      fr3,fr16
99
        test_fr_fr      fr3,fr20
100
        test_spr_immed  0,fner1
101
        test_spr_immed  0,fner0
102
        nfddivs         fr16,fr8,fr2
103
        test_fr_fr      fr2,fr16
104
        test_fr_fr      fr2,fr20
105
        test_fr_fr      fr3,fr16
106
        test_fr_fr      fr3,fr20
107
        test_spr_immed  0,fner1
108
        test_spr_immed  0,fner0
109
        nfddivs         fr16,fr12,fr2
110
        test_fr_fr      fr2,fr16
111
        test_fr_fr      fr2,fr20
112
        test_fr_fr      fr3,fr16
113
        test_fr_fr      fr3,fr20
114
        test_spr_immed  0,fner1
115
        test_spr_immed  0,fner0
116
        nfddivs         fr16,fr24,fr2
117
        test_fr_fr      fr2,fr16
118
        test_fr_fr      fr2,fr20
119
        test_fr_fr      fr3,fr16
120
        test_fr_fr      fr3,fr20
121
        test_spr_immed  0,fner1
122
        test_spr_immed  0,fner0
123
        nfddivs         fr16,fr28,fr2
124
        test_fr_fr      fr2,fr16
125
        test_fr_fr      fr2,fr20
126
        test_fr_fr      fr3,fr16
127
        test_fr_fr      fr3,fr20
128
        test_spr_immed  0,fner1
129
        test_spr_immed  0,fner0
130
        nfddivs         fr16,fr32,fr2
131
        test_fr_fr      fr2,fr16
132
        test_fr_fr      fr2,fr20
133
        test_fr_fr      fr3,fr16
134
        test_fr_fr      fr3,fr20
135
        test_spr_immed  0,fner1
136
        test_spr_immed  0,fner0
137
        nfddivs         fr16,fr36,fr2
138
        test_fr_fr      fr2,fr16
139
        test_fr_fr      fr2,fr20
140
        test_fr_fr      fr3,fr16
141
        test_fr_fr      fr3,fr20
142
        test_spr_immed  0,fner1
143
        test_spr_immed  0,fner0
144
        nfddivs         fr16,fr40,fr2
145
        test_fr_fr      fr2,fr16
146
        test_fr_fr      fr2,fr20
147
        test_fr_fr      fr3,fr16
148
        test_fr_fr      fr3,fr20
149
        test_spr_immed  0,fner1
150
        test_spr_immed  0,fner0
151
        nfddivs         fr16,fr44,fr2
152
        test_fr_fr      fr2,fr16
153
        test_fr_fr      fr2,fr20
154
        test_fr_fr      fr3,fr16
155
        test_fr_fr      fr3,fr20
156
        test_spr_immed  0,fner1
157
        test_spr_immed  0,fner0
158
        nfddivs         fr16,fr48,fr2
159
        test_fr_fr      fr2,fr16
160
        test_fr_fr      fr2,fr20
161
        test_fr_fr      fr3,fr16
162
        test_fr_fr      fr3,fr20
163
        test_spr_immed  0,fner1
164
        test_spr_immed  0,fner0
165
        nfddivs         fr16,fr52,fr2
166
        test_fr_fr      fr2,fr16
167
        test_fr_fr      fr2,fr20
168
        test_fr_fr      fr3,fr16
169
        test_fr_fr      fr3,fr20
170
        test_spr_immed  0,fner1
171
        test_spr_immed  0,fner0
172
 
173
        nfddivs         fr20,fr0,fr2
174
        test_fr_fr      fr2,fr16
175
        test_fr_fr      fr2,fr20
176
        test_fr_fr      fr3,fr16
177
        test_fr_fr      fr3,fr20
178
        test_spr_immed  0,fner1
179
        test_spr_immed  0,fner0
180
        nfddivs         fr20,fr4,fr2
181
        test_fr_fr      fr2,fr16
182
        test_fr_fr      fr2,fr20
183
        test_fr_fr      fr3,fr16
184
        test_fr_fr      fr3,fr20
185
        test_spr_immed  0,fner1
186
        test_spr_immed  0,fner0
187
        nfddivs         fr20,fr8,fr2
188
        test_fr_fr      fr2,fr16
189
        test_fr_fr      fr2,fr20
190
        test_fr_fr      fr3,fr16
191
        test_fr_fr      fr3,fr20
192
        test_spr_immed  0,fner1
193
        test_spr_immed  0,fner0
194
        nfddivs         fr20,fr12,fr2
195
        test_fr_fr      fr2,fr16
196
        test_fr_fr      fr2,fr20
197
        test_fr_fr      fr3,fr16
198
        test_fr_fr      fr3,fr20
199
        test_spr_immed  0,fner1
200
        test_spr_immed  0,fner0
201
        nfddivs         fr20,fr24,fr2
202
        test_fr_fr      fr2,fr16
203
        test_fr_fr      fr2,fr20
204
        test_fr_fr      fr3,fr16
205
        test_fr_fr      fr3,fr20
206
        test_spr_immed  0,fner1
207
        test_spr_immed  0,fner0
208
        nfddivs         fr20,fr28,fr2
209
        test_fr_fr      fr2,fr16
210
        test_fr_fr      fr2,fr20
211
        test_fr_fr      fr3,fr16
212
        test_fr_fr      fr3,fr20
213
        test_spr_immed  0,fner1
214
        test_spr_immed  0,fner0
215
        nfddivs         fr20,fr32,fr2
216
        test_fr_fr      fr2,fr16
217
        test_fr_fr      fr2,fr20
218
        test_fr_fr      fr3,fr16
219
        test_fr_fr      fr3,fr20
220
        test_spr_immed  0,fner1
221
        test_spr_immed  0,fner0
222
        nfddivs         fr20,fr36,fr2
223
        test_fr_fr      fr2,fr16
224
        test_fr_fr      fr2,fr20
225
        test_fr_fr      fr3,fr16
226
        test_fr_fr      fr3,fr20
227
        test_spr_immed  0,fner1
228
        test_spr_immed  0,fner0
229
        nfddivs         fr20,fr40,fr2
230
        test_fr_fr      fr2,fr16
231
        test_fr_fr      fr2,fr20
232
        test_fr_fr      fr3,fr16
233
        test_fr_fr      fr3,fr20
234
        test_spr_immed  0,fner1
235
        test_spr_immed  0,fner0
236
        nfddivs         fr20,fr44,fr2
237
        test_fr_fr      fr2,fr16
238
        test_fr_fr      fr2,fr20
239
        test_fr_fr      fr3,fr16
240
        test_fr_fr      fr3,fr20
241
        test_spr_immed  0,fner1
242
        test_spr_immed  0,fner0
243
        nfddivs         fr20,fr48,fr2
244
        test_fr_fr      fr2,fr16
245
        test_fr_fr      fr2,fr20
246
        test_fr_fr      fr3,fr16
247
        test_fr_fr      fr3,fr20
248
        test_spr_immed  0,fner1
249
        test_spr_immed  0,fner0
250
        nfddivs         fr20,fr52,fr2
251
        test_fr_fr      fr2,fr16
252
        test_fr_fr      fr2,fr20
253
        test_fr_fr      fr3,fr16
254
        test_fr_fr      fr3,fr20
255
        test_spr_immed  0,fner1
256
        test_spr_immed  0,fner0
257
 
258
        nfddivs         fr8,fr28,fr2
259
        test_fr_fr      fr2,fr8
260
        test_fr_fr      fr3,fr8
261
        test_spr_immed  0,fner1
262
        test_spr_immed  0,fner0
263
        nfddivs         fr28,fr8,fr2
264
        test_fr_fr      fr2,fr8
265
        test_fr_fr      fr3,fr8
266
        test_spr_immed  0,fner1
267
        test_spr_immed  0,fner0
268
 
269
        nfddivs         fr40,fr32,fr2
270
        test_fr_fr      fr2,fr36
271
        test_fr_fr      fr3,fr36
272
        test_spr_immed  0,fner1
273
        test_spr_immed  0,fner0
274
 
275
        ; try to cause exceptions
276
        set_spr_immed   0,fner0
277
        set_spr_immed   0,fner1
278
        nfddivs         fr48,fr20,fr2
279
;       test_fr_fr      fr2,fr44
280
;       test_fr_fr      fr3,fr44
281
        test_spr_immed  0xc,fner1
282
        test_spr_immed  0,fner0
283
 
284
        set_spr_immed   0,fner0
285
        set_spr_immed   0,fner1
286
        nfddivs         fr52,fr16,fr2
287
;       test_fr_fr      fr2,fr44
288
;       test_fr_fr      fr3,fr44
289
        test_spr_immed  0x0,fner1
290
        test_spr_immed  0,fner0
291
 
292
        nfddivs         fr56,fr28,fr2
293
;       test_fr_fr      fr2,fr44
294
;       test_fr_fr      fr3,fr44
295
        test_spr_immed  0,fner1
296
        test_spr_immed  0,fner0
297
 
298
        nfddivs         fr60,fr28,fr2
299
;       test_fr_fr      fr2,fr44
300
;       test_fr_fr      fr3,fr44
301
        test_spr_immed  0xc,fner1
302
        test_spr_immed  0,fner0
303
 
304
        pass
305
 
306
 

powered by: WebSVN 2.1.0

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