2 # Copyright
1992-2019 Free Software Foundation
, Inc.
4 # This
program is free software
; you can redistribute it and
/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation
; either version
3 of the License
, or
7 #
(at your option
) any later version.
9 # This
program is distributed in the hope that it will be useful
,
10 # but WITHOUT
ANY WARRANTY
; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License
for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this
program.
If not
, see
<http
://www.gnu.org
/licenses
/>.
17 # This file was written by Jeff Law.
(law@cs.utah.edu
)
19 if ![istarget
"hppa*-*-*"] {
20 verbose
"Tests ignored for all but hppa based targets."
27 set srcfile $
{srcdir
}/$
{subdir
}/$
{testfile
}.s
28 set binfile $
{objdir
}/$
{subdir
}/$
{testfile
}
29 set comp_output
[gdb_compile
"${srcfile}" "${binfile}" executable ""]
30 if { $comp_output
!= "" } {
31 if [ regexp
"Opcode not defined - DIAG" $comp_output] {
32 warning
"HP assembler in use--skipping disasm tests"
35 perror
"Couldn't compile ${srcfile}"
40 proc all_integer_memory_tests
{ } {
45 send_gdb
"x/8i integer_memory_tests\n"
48 .
*ldw
0\\(sr0
,r4
\\),r26.
*
49 .
*ldh
0\\(sr0
,r4
\\),r26.
*
50 .
*ldb
0\\(sr0
,r4
\\),r26.
*
51 .
*stw r26
,0\\(sr0
,r4
\\).
*
52 .
*sth r26
,0\\(sr0
,r4
\\).
*
53 .
*stb r26
,0\\(sr0
,r4
\\).
*
54 .
*ldwm
0\\(sr0
,r4
\\),r26.
*
55 .
*stwm r26
,0\\(sr0
,r4
\\).
*
56 .
*$gdb_prompt $
" { pass "integer_memory_tests" }
57 -re
"$gdb_prompt $" { fail "integer_memory_tests" }
58 timeout
{ fail
"(timeout) integer memory_tests" }
61 send_gdb
"x/20i integer_indexing_load\n"
64 .
*ldwx r5
\\(sr0
,r4
\\),r26.
*
65 .
*ldwx
,s r5
\\(sr0
,r4
\\),r26.
*
66 .
*ldwx
,m r5
\\(sr0
,r4
\\),r26.
*
67 .
*ldwx
,sm r5
\\(sr0
,r4
\\),r26.
*
68 .
*ldhx r5
\\(sr0
,r4
\\),r26.
*
69 .
*ldhx
,s r5
\\(sr0
,r4
\\),r26.
*
70 .
*ldhx
,m r5
\\(sr0
,r4
\\),r26.
*
71 .
*ldhx
,sm r5
\\(sr0
,r4
\\),r26.
*
72 .
*ldbx r5
\\(sr0
,r4
\\),r26.
*
73 .
*ldbx
,s r5
\\(sr0
,r4
\\),r26.
*
74 .
*ldbx
,m r5
\\(sr0
,r4
\\),r26.
*
75 .
*ldbx
,sm r5
\\(sr0
,r4
\\),r26.
*
76 .
*ldwax r5
\\(r4
\\),r26.
*
77 .
*ldwax
,s r5
\\(r4
\\),r26.
*
78 .
*ldwax
,m r5
\\(r4
\\),r26.
*
79 .
*ldwax
,sm r5
\\(r4
\\),r26.
*
80 .
*ldcwx r5
\\(sr0
,r4
\\),r26.
*
81 .
*ldcwx
,s r5
\\(sr0
,r4
\\),r26.
*
82 .
*ldcwx
,m r5
\\(sr0
,r4
\\),r26.
*
83 .
*ldcwx
,sm r5
\\(sr0
,r4
\\),r26.
*
84 .
*$gdb_prompt $
" { pass "integer_indexing_load" }
85 -re
"$gdb_prompt $" { fail "integer_indexing_load" }
86 timeout
{ fail
"(timeout) integer_indexing" }
89 send_gdb
"x/15i integer_load_short_memory\n"
92 .
*ldws
0\\(sr0
,r4
\\),r26.
*
93 .
*ldws
,mb
0\\(sr0
,r4
\\),r26.
*
94 .
*ldws
,ma
0\\(sr0
,r4
\\),r26.
*
95 .
*ldhs
0\\(sr0
,r4
\\),r26.
*
96 .
*ldhs
,mb
0\\(sr0
,r4
\\),r26.
*
97 .
*ldhs
,ma
0\\(sr0
,r4
\\),r26.
*
98 .
*ldbs
0\\(sr0
,r4
\\),r26.
*
99 .
*ldbs
,mb
0\\(sr0
,r4
\\),r26.
*
100 .
*ldbs
,ma
0\\(sr0
,r4
\\),r26.
*
101 .
*ldwas
0\\(r4
\\),r26.
*
102 .
*ldwas
,mb
0\\(r4
\\),r26.
*
103 .
*ldwas
,ma
0\\(r4
\\),r26.
*
104 .
*ldcws
0\\(sr0
,r4
\\),r26.
*
105 .
*ldcws
,mb
0\\(sr0
,r4
\\),r26.
*
106 .
*ldcws
,ma
0\\(sr0
,r4
\\),r26.
*
107 .
*$gdb_prompt $
" { pass "integer_load_short_memory" }
108 -re
"$gdb_prompt $" { fail "integer_load_short_memory" }
109 timeout
{ fail
"(timeout) integer_load_short_memory " }
113 send_gdb
"x/17i integer_store_short_memory\n"
116 .
*stws r26
,0\\(sr0
,r4
\\).
*
117 .
*stws
,mb r26
,0\\(sr0
,r4
\\).
*
118 .
*stws
,ma r26
,0\\(sr0
,r4
\\).
*
119 .
*sths r26
,0\\(sr0
,r4
\\).
*
120 .
*sths
,mb r26
,0\\(sr0
,r4
\\).
*
121 .
*sths
,ma r26
,0\\(sr0
,r4
\\).
*
122 .
*stbs r26
,0\\(sr0
,r4
\\).
*
123 .
*stbs
,mb r26
,0\\(sr0
,r4
\\).
*
124 .
*stbs
,ma r26
,0\\(sr0
,r4
\\).
*
125 .
*stwas r26
,0\\(r4
\\).
*
126 .
*stwas
,mb r26
,0\\(r4
\\).
*
127 .
*stwas
,ma r26
,0\\(r4
\\).
*
128 .
*stbys r26
,0\\(sr0
,r4
\\).
*
129 .
*stbys r26
,0\\(sr0
,r4
\\).
*
130 .
*stbys
,e r26
,0\\(sr0
,r4
\\).
*
131 .
*stbys
,b
,m r26
,0\\(sr0
,r4
\\).
*
132 .
*stbys
,e
,m r26
,0\\(sr0
,r4
\\).
*
133 .
*$gdb_prompt $
" { pass "integer_store_short_memory" }
134 -re
"$gdb_prompt $" { fail "integer_store_short_memory" }
135 timeout
{ fail
"(timeout) integer_short_memory " }
139 proc all_immediate_tests
{ } {
144 send_gdb
"x/3i immediate_tests\n"
147 .
*ldo
5\\(r26
\\),r26.
*
148 .
*ldil
-21524800,r26.
*
149 .
*addil
-21524800,r5.
*
150 .
*$gdb_prompt $
" { pass "immedate_tests" }
151 -re
"$gdb_prompt $" { fail "immedate_tests" }
152 timeout
{ fail
"(timeout) immedate_tests " }
156 proc all_branch_tests
{ } {
161 send_gdb
"x/10i branch_tests_1\n"
174 .
*$gdb_prompt $
" { pass "branch_tests_1" }
175 -re
"$gdb_prompt $" { fail "branch_tests_1" }
176 timeout
{ fail
"(timeout) branch_tests_1" }
179 send_gdb
"x/6i branch_tests_2\n"
184 .
*be
1234\\(sr1
,rp
\\).
*
185 .
*be
,n
1234\\(sr1
,rp
\\).
*
186 .
*ble
1234\\(sr1
,rp
\\).
*
187 .
*ble
,n
1234\\(sr1
,rp
\\).
*
188 .
*$gdb_prompt $
" { pass "branch_tests_2" }
189 -re
"$gdb_prompt $" { fail "branch_tests_2" }
190 timeout
{ fail
"(timeout) branch_tests_2" }
194 send_gdb
"x/8i movb_tests\n"
197 .
*movb r4
,r26
,.
* <movb_tests
>.
*
198 .
*movb
,= r4
,r26
,.
* <movb_tests
>.
*
199 .
*movb
,< r4
,r26
,.
* <movb_tests
>.
*
200 .
*movb
,od r4
,r26
,.
* <movb_tests
>.
*
201 .
*movb
,tr r4
,r26
,.
* <movb_tests
>.
*
202 .
*movb
,<> r4
,r26
,.
* <movb_tests
>.
*
203 .
*movb
,>= r4
,r26
,.
* <movb_tests
>.
*
204 .
*movb
,ev r4
,r26
,.
* <movb_tests
>.
*
205 .
*$gdb_prompt $
" { pass "movb_tests" }
206 -re
"$gdb_prompt $" { fail "movb_tests" }
207 timeout
{ fail
"(timeout) movb_tests " }
210 send_gdb
"x/8i movb_nullified_tests\n"
213 .
*movb
,n.
*r4
,r26
,.
* <movb_tests
>.
*
214 .
*movb
,=,n.
*r4
,r26
,.
* <movb_tests
>.
*
215 .
*movb
,<,n.
*r4
,r26
,.
* <movb_tests
>.
*
216 .
*movb
,od
,n.
*r4
,r26
,.
* <movb_tests
>.
*
217 .
*movb
,tr
,n.
*r4
,r26
,.
* <movb_tests
>.
*
218 .
*movb
,<>,n.
*r4
,r26
,.
* <movb_tests
>.
*
219 .
*movb
,>=,n.
*r4
,r26
,.
* <movb_tests
>.
*
220 .
*movb
,ev
,n.
*r4
,r26
,.
* <movb_tests
>.
*
221 .
*$gdb_prompt $
" { pass "movb_nullified_tests" }
222 -re
"$gdb_prompt $" { fail "movb_nullified_tests" }
223 timeout
{ fail
"(timeout) movb_nullified_tests " }
226 send_gdb
"x/8i movib_tests\n"
229 .
*movib
5,r26
,.
* <movib_tests
>.
*
230 .
*movib
,= 5,r26
,.
* <movib_tests
>.
*
231 .
*movib
,< 5,r26
,.
* <movib_tests
>.
*
232 .
*movib
,od
5,r26
,.
* <movib_tests
>.
*
233 .
*movib
,tr
5,r26
,.
* <movib_tests
>.
*
234 .
*movib
,<> 5,r26
,.
* <movib_tests
>.
*
235 .
*movib
,>= 5,r26
,.
* <movib_tests
>.
*
236 .
*movib
,ev
5,r26
,.
* <movib_tests
>.
*
237 .
*$gdb_prompt $
" { pass "movib_tests" }
238 -re
"$gdb_prompt $" { fail "movib_tests" }
239 timeout
{ fail
"(timeout) movib_tests " }
242 send_gdb
"x/8i movib_nullified_tests\n"
245 .
*movib
,n.
*5,r26
,.
* <movib_tests
>.
*
246 .
*movib
,=,n.
*5,r26
,.
* <movib_tests
>.
*
247 .
*movib
,<,n.
*5,r26
,.
* <movib_tests
>.
*
248 .
*movib
,od
,n.
*5,r26
,.
* <movib_tests
>.
*
249 .
*movib
,tr
,n.
*5,r26
,.
* <movib_tests
>.
*
250 .
*movib
,<>,n.
*5,r26
,.
* <movib_tests
>.
*
251 .
*movib
,>=,n.
*5,r26
,.
* <movib_tests
>.
*
252 .
*movib
,ev
,n.
*5,r26
,.
* <movib_tests
>.
*
253 .
*$gdb_prompt $
" { pass "movib_nullified_tests" }
254 -re
"$gdb_prompt $" { fail "movib_nullified_tests" }
255 timeout
{ fail
"(timeout) movib_nullified_tests " }
258 send_gdb
"x/8i comb_tests_1\n"
261 .
*comb r0
,r4
,.
* <comb_tests_1
>.
*
262 .
*comb
,= r0
,r4
,.
* <comb_tests_1
>.
*
263 .
*comb
,< r0
,r4
,.
* <comb_tests_1
>.
*
264 .
*comb
,<= r0
,r4
,.
* <comb_tests_1
>.
*
265 .
*comb
,<< r0
,r4
,.
* <comb_tests_1
>.
*
266 .
*comb
,<<= r0
,r4
,.
* <comb_tests_1
>.
*
267 .
*comb
,sv r0
,r4
,.
* <comb_tests_1
>.
*
268 .
*comb
,od r0
,r4
,.
* <comb_tests_1
>.
*
269 .
*$gdb_prompt $
" { pass "comb_tests_1" }
270 -re
"$gdb_prompt $" { fail "comb_tests_1" }
271 timeout
{ fail
"(timeout) comb_tests_1" }
274 send_gdb
"x/8i comb_tests_2\n"
277 .
*combf r0
,r4
,.
* <comb_tests_2
>.
*
278 .
*combf
,= r0
,r4
,.
* <comb_tests_2
>.
*
279 .
*combf
,< r0
,r4
,.
* <comb_tests_2
>.
*
280 .
*combf
,<= r0
,r4
,.
* <comb_tests_2
>.
*
281 .
*combf
,<< r0
,r4
,.
* <comb_tests_2
>.
*
282 .
*combf
,<<= r0
,r4
,.
* <comb_tests_2
>.
*
283 .
*combf
,sv r0
,r4
,.
* <comb_tests_2
>.
*
284 .
*combf
,od r0
,r4
,.
* <comb_tests_2
>.
*
285 .
*$gdb_prompt $
" { pass "comb_tests_2" }
286 -re
"$gdb_prompt $" { fail "comb_tests_2" }
287 timeout
{ fail
"(timeout) comb_tests_2" }
290 send_gdb
"x/8i comb_nullified_tests_1\n"
293 .
*comb
,n r0
,r4
,.
* <comb_tests_1
>.
*
294 .
*comb
,=,n r0
,r4
,.
* <comb_tests_1
>.
*
295 .
*comb
,<,n r0
,r4
,.
* <comb_tests_1
>.
*
296 .
*comb
,<=,n r0
,r4
,.
* <comb_tests_1
>.
*
297 .
*comb
,<<,n r0
,r4
,.
* <comb_tests_1
>.
*
298 .
*comb
,<<=,n r0
,r4
,.
* <comb_tests_1
>.
*
299 .
*comb
,sv
,n r0
,r4
,.
* <comb_tests_1
>.
*
300 .
*comb
,od
,n r0
,r4
,.
* <comb_tests_1
>.
*
301 .
*$gdb_prompt $
" { pass "comb_nullified_tests_1" }
302 -re
"$gdb_prompt $" { fail "comb_nullified_tests_1" }
303 timeout
{ fail
"(timeout) comb_nullified_tests_1" }
306 send_gdb
"x/8i comb_nullified_tests_2\n"
309 .
*combf
,n r0
,r4
,.
* <comb_tests_2
>.
*
310 .
*combf
,=,n r0
,r4
,.
* <comb_tests_2
>.
*
311 .
*combf
,<,n r0
,r4
,.
* <comb_tests_2
>.
*
312 .
*combf
,<=,n r0
,r4
,.
* <comb_tests_2
>.
*
313 .
*combf
,<<,n r0
,r4
,.
* <comb_tests_2
>.
*
314 .
*combf
,<<=,n r0
,r4
,.
* <comb_tests_2
>.
*
315 .
*combf
,sv
,n r0
,r4
,.
* <comb_tests_2
>.
*
316 .
*combf
,od
,n r0
,r4
,.
* <comb_tests_2
>.
*
317 .
*$gdb_prompt $
" { pass "comb_nullified_tests_2" }
318 -re
"$gdb_prompt $" { fail "comb_nullified_tests_2" }
319 timeout
{ fail
"(timeout) comb_nullified_tests_2" }
322 send_gdb
"x/8i comib_tests_1\n"
325 .
*comib
0,r4
,.
* <comib_tests_1
>.
*
326 .
*comib
,= 0,r4
,.
* <comib_tests_1
>.
*
327 .
*comib
,< 0,r4
,.
* <comib_tests_1
>.
*
328 .
*comib
,<= 0,r4
,.
* <comib_tests_1
>.
*
329 .
*comib
,<< 0,r4
,.
* <comib_tests_1
>.
*
330 .
*comib
,<<= 0,r4
,.
* <comib_tests_1
>.
*
331 .
*comib
,sv
0,r4
,.
* <comib_tests_1
>.
*
332 .
*comib
,od
0,r4
,.
* <comib_tests_1
>.
*
333 .
*$gdb_prompt $
" { pass "comib_tests_1" }
334 -re
"$gdb_prompt $" { fail "comib_tests_1" }
335 timeout
{ fail
"(timeout) comib_tests_1" }
338 send_gdb
"x/8i comib_tests_2\n"
341 .
*comibf
0,r4
,.
* <comib_tests_2
>.
*
342 .
*comibf
,= 0,r4
,.
* <comib_tests_2
>.
*
343 .
*comibf
,< 0,r4
,.
* <comib_tests_2
>.
*
344 .
*comibf
,<= 0,r4
,.
* <comib_tests_2
>.
*
345 .
*comibf
,<< 0,r4
,.
* <comib_tests_2
>.
*
346 .
*comibf
,<<= 0,r4
,.
* <comib_tests_2
>.
*
347 .
*comibf
,sv
0,r4
,.
* <comib_tests_2
>.
*
348 .
*comibf
,od
0,r4
,.
* <comib_tests_2
>.
*
349 .
*$gdb_prompt $
" { pass "comib_tests_2" }
350 -re
"$gdb_prompt $" { fail "comib_tests_2" }
351 timeout
{ fail
"(timeout) comib_tests_2" }
354 send_gdb
"x/8i comib_nullified_tests_1\n"
357 .
*comib
,n
0,r4
,.
* <comib_tests_1
>.
*
358 .
*comib
,=,n
0,r4
,.
* <comib_tests_1
>.
*
359 .
*comib
,<,n
0,r4
,.
* <comib_tests_1
>.
*
360 .
*comib
,<=,n
0,r4
,.
* <comib_tests_1
>.
*
361 .
*comib
,<<,n
0,r4
,.
* <comib_tests_1
>.
*
362 .
*comib
,<<=,n
0,r4
,.
* <comib_tests_1
>.
*
363 .
*comib
,sv
,n
0,r4
,.
* <comib_tests_1
>.
*
364 .
*comib
,od
,n
0,r4
,.
* <comib_tests_1
>.
*
365 .
*$gdb_prompt $
" { pass "comib_nullified_tests_1" }
366 -re
"$gdb_prompt $" { fail "comib_nullified_tests_1" }
367 timeout
{ fail
"(timeout) comib_nullified_tests_1" }
370 send_gdb
"x/8i comib_nullified_tests_2\n"
373 .
*comibf
,n
0,r4
,.
* <comib_tests_2
>.
*
374 .
*comibf
,=,n
0,r4
,.
* <comib_tests_2
>.
*
375 .
*comibf
,<,n
0,r4
,.
* <comib_tests_2
>.
*
376 .
*comibf
,<=,n
0,r4
,.
* <comib_tests_2
>.
*
377 .
*comibf
,<<,n
0,r4
,.
* <comib_tests_2
>.
*
378 .
*comibf
,<<=,n
0,r4
,.
* <comib_tests_2
>.
*
379 .
*comibf
,sv
,n
0,r4
,.
* <comib_tests_2
>.
*
380 .
*comibf
,od
,n
0,r4
,.
* <comib_tests_2
>.
*
381 .
*$gdb_prompt $
" { pass "comib_nullified_tests_2" }
382 -re
"$gdb_prompt $" { fail "comib_nullified_tests_2" }
383 timeout
{ fail
"(timeout) comib_nullified_tests_2" }
386 send_gdb
"x/8i addb_tests_1\n"
389 .
*addb r1
,r4
,.
* <addb_tests_1
>.
*
390 .
*addb
,= r1
,r4
,.
* <addb_tests_1
>.
*
391 .
*addb
,< r1
,r4
,.
* <addb_tests_1
>.
*
392 .
*addb
,<= r1
,r4
,.
* <addb_tests_1
>.
*
393 .
*addb
,nuv r1
,r4
,.
* <addb_tests_1
>.
*
394 .
*addb
,znv r1
,r4
,.
* <addb_tests_1
>.
*
395 .
*addb
,sv r1
,r4
,.
* <addb_tests_1
>.
*
396 .
*addb
,od r1
,r4
,.
* <addb_tests_1
>.
*
397 .
*$gdb_prompt $
" { pass "addb_tests_1" }
398 -re
"$gdb_prompt $" { fail "addb_tests_1" }
399 timeout
{ fail
"(timeout) addb_tests_1" }
402 send_gdb
"x/8i addb_tests_2\n"
405 .
*addbf r1
,r4
,.
* <addb_tests_2
>.
*
406 .
*addbf
,= r1
,r4
,.
* <addb_tests_2
>.
*
407 .
*addbf
,< r1
,r4
,.
* <addb_tests_2
>.
*
408 .
*addbf
,<= r1
,r4
,.
* <addb_tests_2
>.
*
409 .
*addbf
,nuv r1
,r4
,.
* <addb_tests_2
>.
*
410 .
*addbf
,znv r1
,r4
,.
* <addb_tests_2
>.
*
411 .
*addbf
,sv r1
,r4
,.
* <addb_tests_2
>.
*
412 .
*addbf
,od r1
,r4
,.
* <addb_tests_2
>.
*
413 .
*$gdb_prompt $
" { pass "addb_tests_2" }
414 -re
"$gdb_prompt $" { fail "addb_tests_2" }
415 timeout
{ fail
"(timeout) addb_tests_2" }
418 send_gdb
"x/8i addb_nullified_tests_1\n"
421 .
*addb
,n r1
,r4
,.
* <addb_tests_1
>.
*
422 .
*addb
,=,n r1
,r4
,.
* <addb_tests_1
>.
*
423 .
*addb
,<,n r1
,r4
,.
* <addb_tests_1
>.
*
424 .
*addb
,<=,n r1
,r4
,.
* <addb_tests_1
>.
*
425 .
*addb
,nuv
,n r1
,r4
,.
* <addb_tests_1
>.
*
426 .
*addb
,znv
,n r1
,r4
,.
* <addb_tests_1
>.
*
427 .
*addb
,sv
,n r1
,r4
,.
* <addb_tests_1
>.
*
428 .
*addb
,od
,n r1
,r4
,.
* <addb_tests_1
>.
*
429 .
*$gdb_prompt $
" { pass "addb_nullified_tests_1" }
430 -re
"$gdb_prompt $" { fail "addb_nullified_tests_1" }
431 timeout
{ fail
"(timeout) addb_nullified_tests_1" }
434 send_gdb
"x/8i addb_nullified_tests_2\n"
437 .
*addbf
,n r1
,r4
,.
* <addb_tests_2
>.
*
438 .
*addbf
,=,n r1
,r4
,.
* <addb_tests_2
>.
*
439 .
*addbf
,<,n r1
,r4
,.
* <addb_tests_2
>.
*
440 .
*addbf
,<=,n r1
,r4
,.
* <addb_tests_2
>.
*
441 .
*addbf
,nuv
,n r1
,r4
,.
* <addb_tests_2
>.
*
442 .
*addbf
,znv
,n r1
,r4
,.
* <addb_tests_2
>.
*
443 .
*addbf
,sv
,n r1
,r4
,.
* <addb_tests_2
>.
*
444 .
*addbf
,od
,n r1
,r4
,.
* <addb_tests_2
>.
*
445 .
*$gdb_prompt $
" { pass "addb_nullified_tests_2" }
446 -re
"$gdb_prompt $" { fail "addb_nullified_tests_2" }
447 timeout
{ fail
"(timeout) addb_nullified_tests_2" }
450 send_gdb
"x/8i addib_tests_1\n"
453 .
*addib
-1,r4
,.
* <addib_tests_1
>.
*
454 .
*addib
,= -1,r4
,.
* <addib_tests_1
>.
*
455 .
*addib
,< -1,r4
,.
* <addib_tests_1
>.
*
456 .
*addib
,<= -1,r4
,.
* <addib_tests_1
>.
*
457 .
*addib
,nuv
-1,r4
,.
* <addib_tests_1
>.
*
458 .
*addib
,znv
-1,r4
,.
* <addib_tests_1
>.
*
459 .
*addib
,sv
-1,r4
,.
* <addib_tests_1
>.
*
460 .
*addib
,od
-1,r4
,.
* <addib_tests_1
>.
*
461 .
*$gdb_prompt $
" { pass "addib_tests_1" }
462 -re
"$gdb_prompt $" { fail "addib_tests_1" }
463 timeout
{ fail
"(timeout) addib_tests_1" }
466 send_gdb
"x/8i addib_tests_2\n"
469 .
*addibf
-1,r4
,.
* <addib_tests_2
>.
*
470 .
*addibf
,= -1,r4
,.
* <addib_tests_2
>.
*
471 .
*addibf
,< -1,r4
,.
* <addib_tests_2
>.
*
472 .
*addibf
,<= -1,r4
,.
* <addib_tests_2
>.
*
473 .
*addibf
,nuv
-1,r4
,.
* <addib_tests_2
>.
*
474 .
*addibf
,znv
-1,r4
,.
* <addib_tests_2
>.
*
475 .
*addibf
,sv
-1,r4
,.
* <addib_tests_2
>.
*
476 .
*addibf
,od
-1,r4
,.
* <addib_tests_2
>.
*
477 .
*$gdb_prompt $
" { pass "addib_tests_2" }
478 -re
"$gdb_prompt $" { fail "addib_tests_2" }
479 timeout
{ fail
"(timeout) addib_tests_2" }
482 send_gdb
"x/8i addib_nullified_tests_1\n"
485 .
*addib
,n
-1,r4
,.
* <addib_tests_1
>.
*
486 .
*addib
,=,n
-1,r4
,.
* <addib_tests_1
>.
*
487 .
*addib
,<,n
-1,r4
,.
* <addib_tests_1
>.
*
488 .
*addib
,<=,n
-1,r4
,.
* <addib_tests_1
>.
*
489 .
*addib
,nuv
,n
-1,r4
,.
* <addib_tests_1
>.
*
490 .
*addib
,znv
,n
-1,r4
,.
* <addib_tests_1
>.
*
491 .
*addib
,sv
,n
-1,r4
,.
* <addib_tests_1
>.
*
492 .
*addib
,od
,n
-1,r4
,.
* <addib_tests_1
>.
*
493 .
*$gdb_prompt $
" { pass "addb_nullified_tests_1" }
494 -re
"$gdb_prompt $" { fail "addb_nullified_tests_1" }
495 timeout
{ fail
"(timeout) addb_nullified_tests_1" }
498 send_gdb
"x/8i addib_nullified_tests_2\n"
501 .
*addibf
,n
-1,r4
,.
* <addib_tests_2
>.
*
502 .
*addibf
,=,n
-1,r4
,.
* <addib_tests_2
>.
*
503 .
*addibf
,<,n
-1,r4
,.
* <addib_tests_2
>.
*
504 .
*addibf
,<=,n
-1,r4
,.
* <addib_tests_2
>.
*
505 .
*addibf
,nuv
,n
-1,r4
,.
* <addib_tests_2
>.
*
506 .
*addibf
,znv
,n
-1,r4
,.
* <addib_tests_2
>.
*
507 .
*addibf
,sv
,n
-1,r4
,.
* <addib_tests_2
>.
*
508 .
*addibf
,od
,n
-1,r4
,.
* <addib_tests_2
>.
*
509 .
*$gdb_prompt $
" { pass "addb_nullified_tests_2" }
510 -re
"$gdb_prompt $" { fail "addb_nullified_tests_2" }
511 timeout
{ fail
"(timeout) addb_nullified_tests_2" }
514 send_gdb
"x/8i bb_tests\n"
517 .
*bvb
,< r4
,.
* <bb_tests
>.
*
518 .
*bvb
,>= r4
,.
* <bb_tests
>.
*
519 .
*bvb
,<,n r4
,.
* <bb_tests
>.
*
520 .
*bvb
,>=,n r4
,.
* <bb_tests
>.
*
521 .
*bb
,< r4
,5,.
* <bb_tests
>.
*
522 .
*bb
,>= r4
,5,.
* <bb_tests
>.
*
523 .
*bb
,<,n r4
,5,.
* <bb_tests
>.
*
524 .
*bb
,>=,n r4
,5,.
* <bb_tests
>.
*
525 .
*$gdb_prompt $
" { pass "bb_tests" }
526 -re
"$gdb_prompt $" { fail "bb_tests" }
527 timeout
{ fail
"(timeout) bb_tests " }
531 proc all_integer_computational_tests
{ } {
536 set add_insns
[list
{add
} {addl
} {addo
} {addc
} {addco
} \
537 {sh1add
} {sh1addl
} {sh1addo
} \
538 {sh2add
} {sh2addl
} {sh2addo
} \
539 {sh3add
} {sh3addl
} {sh3addo
} ]
541 foreach i $add_insns
{
542 send_gdb
"x/16i $i"; send_gdb "_tests\n"
561 .
*$gdb_prompt $
" { pass "$i tests" }
562 -re
"$gdb_prompt $" { fail "$i tests" }
563 timeout
{ fail
"(timeout) $i tests" }
567 set sub_insns
[list
{sub
} {subo
} {subb
} {subbo
} {subt
} {subto
} \
570 foreach i $sub_insns
{
571 send_gdb
"x/16i $i"; send_gdb "_tests\n"
590 .
*$gdb_prompt $
" { pass "$i tests" }
591 -re
"$gdb_prompt $" { fail "$i tests" }
592 timeout
{ fail
"(timeout) $i tests" }
596 set logical_insns
[list
{or
} {xor
} {and
} {andcm
} ]
598 foreach i $logical_insns
{
599 send_gdb
"x/10i $i"; send_gdb "_tests\n"
612 .
*$gdb_prompt $
" { pass "$i tests" }
613 -re
"$gdb_prompt $" { fail "$i tests" }
614 timeout
{ fail
"(timeout) $i tests" }
618 set unit_insns1
[list
{uxor
} {uaddcm
} {uaddcmt
} ]
620 foreach i $unit_insns1
{
621 send_gdb
"x/12i $i"; send_gdb "_tests\n"
636 .
*$gdb_prompt $
" { pass "$i tests" }
637 -re
"$gdb_prompt $" { fail "$i tests" }
638 timeout
{ fail
"(timeout) $i tests" }
642 set unit_insns2
[list
{dcor
} {idcor
} ]
644 foreach i $unit_insns2
{
645 send_gdb
"x/12i $i"; send_gdb "_tests\n"
660 .
*$gdb_prompt $
" { pass "$i tests" }
661 -re
"$gdb_prompt $" { fail "$i tests" }
662 timeout
{ fail
"(timeout) $i tests" }
666 set addi_insns
[list
{addi
} {addio
} {addit
} {addito
} ]
668 foreach i $addi_insns
{
669 send_gdb
"x/16i $i"; send_gdb "_tests\n"
688 .
*$gdb_prompt $
" { pass "$i tests" }
689 -re
"$gdb_prompt $" { fail "$i tests" }
690 timeout
{ fail
"(timeout) $i tests" }
694 set subi_insns
[list
{subi
} {subio
} {comiclr
} ]
696 foreach i $subi_insns
{
697 send_gdb
"x/16i $i"; send_gdb "_tests\n"
716 .
*$gdb_prompt $
" { pass "$i tests" }
717 -re
"$gdb_prompt $" { fail "$i tests" }
718 timeout
{ fail
"(timeout) $i tests" }
722 send_gdb
"x/8i vshd_tests\n"
733 .
*$gdb_prompt $
" { pass "vshd tests" }
734 -re
"$gdb_prompt $" { fail "vshd tests" }
735 timeout
{ fail
"(timeout) "vshd tests" }
738 send_gdb
"x/8i shd_tests\n"
744 .
*shd
,od r4
,r5
,5,r6.
*
745 .
*shd
,tr r4
,r5
,5,r6.
*
746 .
*shd
,<> r4
,r5
,5,r6.
*
747 .
*shd
,>= r4
,r5
,5,r6.
*
748 .
*shd
,ev r4
,r5
,5,r6.
*
749 .
*$gdb_prompt $
" { pass "shd tests" }
750 -re
"$gdb_prompt $" { fail "shd tests" }
751 timeout
{ fail
"(timeout) "shd tests" }
754 set extract_insns1
[list
{extru
} {extrs
} {zdep
} {dep
} ]
756 foreach i $extract_insns1
{
757 send_gdb
"x/8i $i"; send_gdb "_tests\n"
768 .
*$gdb_prompt $
" { pass "$i tests" }
769 -re
"$gdb_prompt $" { fail "$i tests" }
770 timeout
{ fail
"(timeout) $i tests" }
774 set extract_insns2
[list
{vextru
} {vextrs
} {zvdep
} {vdep
} ]
776 foreach i $extract_insns2
{
777 send_gdb
"x/8i $i"; send_gdb "_tests\n"
788 .
*$gdb_prompt $
" { pass "$i tests" }
789 -re
"$gdb_prompt $" { fail "$i tests" }
790 timeout
{ fail
"(timeout) $i tests" }
794 set extract_insns3
[list
{vdepi
} {zvdepi
} ]
796 foreach i $extract_insns3
{
797 send_gdb
"x/8i $i"; send_gdb "_tests\n"
808 .
*$gdb_prompt $
" { pass "$i tests" }
809 -re
"$gdb_prompt $" { fail "$i tests" }
810 timeout
{ fail
"(timeout) $i tests" }
814 set extract_insns4
[list
{depi
} {zdepi
} ]
816 foreach i $extract_insns4
{
817 send_gdb
"x/8i $i"; send_gdb "_tests\n"
828 .
*$gdb_prompt $
" { pass "$i tests" }
829 -re
"$gdb_prompt $" { fail "$i tests" }
830 timeout
{ fail
"(timeout) $i tests" }
835 proc all_system_control_tests
{ } {
840 send_gdb
"x/14i system_control_tests\n"
849 .
*ldsid
\\(sr0
,r5
\\),r4.
*
857 .
*$gdb_prompt $
" { pass "system_constrol_tests" }
858 -re
"$gdb_prompt $" { fail "system_control_tests" }
859 timeout
{ file
"(timeout) system_control_tests" }
862 send_gdb
"x/4i probe_tests\n"
865 .
*prober
\\(sr0
,r5
\\),r6
,r7.
*
866 .
*proberi
\\(sr0
,r5
\\),1,r7.
*
867 .
*probew
\\(sr0
,r5
\\),r6
,r7.
*
868 .
*probewi
\\(sr0
,r5
\\),1,r7.
*
869 .
*$gdb_prompt $
" { pass "probe_tests" }
870 -re
"$gdb_prompt $" { fail "probe_tests" }
871 timeout
{ file
"(timeout) probe_tests" }
874 # lci uses the same bit pattern as lha
, so accept lha.
875 send_gdb
"x/5i lpa_tests\n"
878 .
*lpa r4
\\(sr0
,r5
\\),r6.
*
879 .
*lpa
,m r4
\\(sr0
,r5
\\),r6.
*
880 .
*lha r4
\\(sr0
,r5
\\),r6.
*
881 .
*lha
,m r4
\\(sr0
,r5
\\),r6.
*
882 .
*lha r4
\\(sr0
,r5
\\),r6.
*
883 .
*$gdb_prompt $
" { pass "lpa_tests" }
884 -re
"$gdb_prompt $" { fail "lpa_tests" }
885 timeout
{ file
"(timeout) lpa_tests" }
888 send_gdb
"x/18i purge_tests\n"
891 .
*pdtlb r4
\\(sr0
,r5
\\).
*
892 .
*pdtlb
,m r4
\\(sr0
,r5
\\).
*
893 .
*pitlb r4
\\(sr0
,r5
\\).
*
894 .
*pitlb
,m r4
\\(sr0
,r5
\\).
*
895 .
*pdtlbe r4
\\(sr0
,r5
\\).
*
896 .
*pdtlbe
,m r4
\\(sr0
,r5
\\).
*
897 .
*pitlbe r4
\\(sr0
,r5
\\).
*
898 .
*pitlbe
,m r4
\\(sr0
,r5
\\).
*
899 .
*pdc r4
\\(sr0
,r5
\\).
*
900 .
*pdc
,m r4
\\(sr0
,r5
\\).
*
901 .
*fdc r4
\\(sr0
,r5
\\).
*
902 .
*fdc
,m r4
\\(sr0
,r5
\\).
*
903 .
*fic r4
\\(sr0
,r5
\\).
*
904 .
*fic
,m r4
\\(sr0
,r5
\\).
*
905 .
*fdce r4
\\(sr0
,r5
\\).
*
906 .
*fdce
,m r4
\\(sr0
,r5
\\).
*
907 .
*fice r4
\\(sr0
,r5
\\).
*
908 .
*fice
,m r4
\\(sr0
,r5
\\).
*
909 .
*$gdb_prompt $
" { pass "purge_tests" }
910 -re
"$gdb_prompt $" { fail "purge_tests" }
911 timeout
{ file
"(timeout) purge_tests" }
914 send_gdb
"x/4i insert_tests\n"
917 .
*idtlba r4
,\\(sr0
,r5
\\).
*
918 .
*iitlba r4
,\\(sr0
,r5
\\).
*
919 .
*idtlbp r4
,\\(sr0
,r5
\\).
*
920 .
*iitlbp r4
,\\(sr0
,r5
\\).
*
921 .
*$gdb_prompt $
" { pass "insert_tests" }
922 -re
"$gdb_prompt $" { fail "insert_tests" }
923 timeout
{ file
"(timeout) insert_tests" }
928 proc all_fpu_memory_tests
{ } {
933 send_gdb
"x/20i fpu_memory_indexing_tests\n"
936 .
*fldwx r4
\\(sr0
,r5
\\),fr6.
*
937 .
*fldwx
,s r4
\\(sr0
,r5
\\),fr6.
*
938 .
*fldwx
,m r4
\\(sr0
,r5
\\),fr6.
*
939 .
*fldwx
,sm r4
\\(sr0
,r5
\\),fr6.
*
940 .
*flddx r4
\\(sr0
,r5
\\),fr6.
*
941 .
*flddx
,s r4
\\(sr0
,r5
\\),fr6.
*
942 .
*flddx
,m r4
\\(sr0
,r5
\\),fr6.
*
943 .
*flddx
,sm r4
\\(sr0
,r5
\\),fr6.
*
944 .
*fstwx fr6
,r4
\\(sr0
,r5
\\).
*
945 .
*fstwx
,s fr6
,r4
\\(sr0
,r5
\\).
*
946 .
*fstwx
,m fr6
,r4
\\(sr0
,r5
\\).
*
947 .
*fstwx
,sm fr6
,r4
\\(sr0
,r5
\\).
*
948 .
*fstdx fr6
,r4
\\(sr0
,r5
\\).
*
949 .
*fstdx
,s fr6
,r4
\\(sr0
,r5
\\).
*
950 .
*fstdx
,m fr6
,r4
\\(sr0
,r5
\\).
*
951 .
*fstdx
,sm fr6
,r4
\\(sr0
,r5
\\).
*
952 .
*fstqx fr6
,r4
\\(sr0
,r5
\\).
*
953 .
*fstqx
,s fr6
,r4
\\(sr0
,r5
\\).
*
954 .
*fstqx
,m fr6
,r4
\\(sr0
,r5
\\).
*
955 .
*fstqx
,sm fr6
,r4
\\(sr0
,r5
\\).
*
956 .
*$gdb_prompt $
" { pass "fpu_memory_indexing_tests" }
957 -re
"$gdb_prompt $" { fail "fpu_memory_indexing_tests" }
958 timeout
{ file
"(timeout) fpu_memory_indexing_tests" }
961 send_gdb
"x/15i fpu_short_memory_tests\n"
964 .
*fldws
0\\(sr0
,r5
\\),fr6.
*
965 .
*fldws
,mb
0\\(sr0
,r5
\\),fr6.
*
966 .
*fldws
,ma
0\\(sr0
,r5
\\),fr6.
*
967 .
*fldds
0\\(sr0
,r5
\\),fr6.
*
968 .
*fldds
,mb
0\\(sr0
,r5
\\),fr6.
*
969 .
*fldds
,ma
0\\(sr0
,r5
\\),fr6.
*
970 .
*fstws fr6
,0\\(sr0
,r5
\\).
*
971 .
*fstws
,mb fr6
,0\\(sr0
,r5
\\).
*
972 .
*fstws
,ma fr6
,0\\(sr0
,r5
\\).
*
973 .
*fstds fr6
,0\\(sr0
,r5
\\).
*
974 .
*fstds
,mb fr6
,0\\(sr0
,r5
\\).
*
975 .
*fstds
,ma fr6
,0\\(sr0
,r5
\\).
*
976 .
*fstqs fr6
,0\\(sr0
,r5
\\).
*
977 .
*fstqs
,mb fr6
,0\\(sr0
,r5
\\).
*
978 .
*fstqs
,ma fr6
,0\\(sr0
,r5
\\).
*
979 .
*$gdb_prompt $
" { pass "fpu_short_memory_tests" }
980 -re
"$gdb_prompt $" { fail "fpu_short_memory_tests" }
981 timeout
{ file
"(timeout) fpu_short_memory_tests" }
986 proc all_fpu_computational_tests
{ } {
991 send_gdb
"x/1i fpu_misc_tests\n"
995 .
*$gdb_prompt $
" { pass "fpu_misc_tests" }
996 -re
"$gdb_prompt $" { fail "fpu_misc_tests" }
997 timeout
{ file
"(timeout) fpu_misc_tests" }
1000 set fpu_two_op_insns
[list
{fcpy
} {fabs
} {fsqrt
} {frnd
} ]
1002 foreach i $fpu_two_op_insns
{
1003 send_gdb
"x/5i $i"; send_gdb "_tests\n"
1008 .
*$i
,quad fr5
,fr10.
*
1009 .
*$i
,sgl fr20
,fr24.
*
1010 .
*$i
,dbl fr20
,fr24.
*
1011 .
*$gdb_prompt $
" { pass "$i tests" }
1012 -re
"$gdb_prompt $" { fail "$i tests" }
1013 timeout
{ fail
"(timeout) $i tests" }
1017 set fpu_conversions
[list
{fcnvff
} {fcnvxf
} {fcnvfx
} {fcnvfxt
} ]
1019 foreach i $fpu_conversions
{
1020 send_gdb
"x/18i $i"; send_gdb "_tests\n"
1023 .
*$i
,sgl
,sgl fr5
,fr10.
*
1024 .
*$i
,sgl
,dbl fr5
,fr10.
*
1025 .
*$i
,sgl
,quad fr5
,fr10.
*
1026 .
*$i
,dbl
,sgl fr5
,fr10.
*
1027 .
*$i
,dbl
,dbl fr5
,fr10.
*
1028 .
*$i
,dbl
,quad fr5
,fr10.
*
1029 .
*$i
,quad
,sgl fr5
,fr10.
*
1030 .
*$i
,quad
,dbl fr5
,fr10.
*
1031 .
*$i
,quad
,quad fr5
,fr10.
*
1032 .
*$i
,sgl
,sgl fr20
,fr24.
*
1033 .
*$i
,sgl
,dbl fr20
,fr24.
*
1034 .
*$i
,sgl
,quad fr20
,fr24.
*
1035 .
*$i
,dbl
,sgl fr20
,fr24.
*
1036 .
*$i
,dbl
,dbl fr20
,fr24.
*
1037 .
*$i
,dbl
,quad fr20
,fr24.
*
1038 .
*$i
,quad
,sgl fr20
,fr24.
*
1039 .
*$i
,quad
,dbl fr20
,fr24.
*
1040 .
*$i
,quad
,quad fr20
,fr24.
*
1041 .
*$gdb_prompt $
" { pass "$i tests" }
1042 -re
"$gdb_prompt $" { fail "$i tests" }
1043 timeout
{ fail
"(timeout) $i tests" }
1047 set fpu_three_op_insns
[list
{fadd
} {fsub
} {fmpy
} {fdiv
} {frem
} ]
1049 foreach i $fpu_three_op_insns
{
1050 send_gdb
"x/6i $i"; send_gdb "_tests\n"
1053 .
*$i
,sgl fr4
,fr8
,fr12.
*
1054 .
*$i
,dbl fr4
,fr8
,fr12.
*
1055 .
*$i
,quad fr4
,fr8
,fr12.
*
1056 .
*$i
,sgl fr20
,fr24
,fr28.
*
1057 .
*$i
,dbl fr20
,fr24
,fr28.
*
1058 .
*$i
,quad fr20
,fr24
,fr28.
*
1059 .
*$gdb_prompt $
" { pass "$i tests" }
1060 -re
"$gdb_prompt $" { fail "$i tests" }
1061 timeout
{ fail
"(timeout) $i tests" }
1065 send_gdb
"x/4i fmpy_addsub_tests\n"
1068 .
*fmpyadd
,sgl fr16
,fr17
,fr18
,fr19
,fr20.
*
1069 .
*fmpyadd
,dbl fr16
,fr17
,fr18
,fr19
,fr20.
*
1070 .
*fmpysub
,sgl fr16
,fr17
,fr18
,fr19
,fr20.
*
1071 .
*fmpysub
,dbl fr16
,fr17
,fr18
,fr19
,fr20.
*
1072 .
*$gdb_prompt $
" { pass "fmpy_addsub_tests" }
1073 -re
"$gdb_prompt $" { fail "fmpy_addsub_tests" }
1074 timeout
{ fail
"(timeout) fmpy_addsub_tests" }
1077 send_gdb
"x/i xmpyu_tests\n"
1080 .
*xmpyu fr4
,fr5
,fr6.
*
1081 .
*$gdb_prompt $
" {pass "xmpyu_tests" }
1082 -re
"$gdb_prompt $" {fail "xmpyu_tests" }
1083 timeout
{ fail
"(timeout) xmpyu_tests" }
1088 proc all_fpu_comparison_tests
{ } {
1093 set fpu_comparison_formats
[list
{sgl
} {dbl
} {quad
} ]
1095 foreach i $fpu_comparison_formats
{
1096 send_gdb
"x/8i fcmp_$i"; send_gdb "_tests_1\n"
1099 .
*fcmp
,$i
,false
\\? fr4
,fr5.
*
1100 .
*fcmp
,$i
,false fr4
,fr5.
*
1101 .
*fcmp
,$i
,\\? fr4
,fr5.
*
1102 .
*fcmp
,$i
,!<=> fr4
,fr5.
*
1103 .
*fcmp
,$i
,= fr4
,fr5.
*
1104 .
*fcmp
,$i
,=t fr4
,fr5.
*
1105 .
*fcmp
,$i
,\\?
= fr4
,fr5.
*
1106 .
*fcmp
,$i
,!<> fr4
,fr5.
*
1107 .
*$gdb_prompt $
" { pass "$i tests (part1) " }
1108 -re
"$gdb_prompt $" { fail "fcmp_$i tests (part1) " }
1109 timeout
{ fail
"(timeout) fcmp_$i tests (part1) " }
1112 send_gdb
"x/8i fcmp_$i"; send_gdb "_tests_2\n"
1115 .
*fcmp
,$i
,!\\?
>= fr4
,fr5.
*
1116 .
*fcmp
,$i
,< fr4
,fr5.
*
1117 .
*fcmp
,$i
,\\?
< fr4
,fr5.
*
1118 .
*fcmp
,$i
,!>= fr4
,fr5.
*
1119 .
*fcmp
,$i
,!\\?
> fr4
,fr5.
*
1120 .
*fcmp
,$i
,<= fr4
,fr5.
*
1121 .
*fcmp
,$i
,\\?
<= fr4
,fr5.
*
1122 .
*fcmp
,$i
,!> fr4
,fr5.
*
1123 .
*$gdb_prompt $
" { pass "$i tests (part2) " }
1124 -re
"$gdb_prompt $" { fail "fcmp_$i tests (part2) " }
1125 timeout
{ fail
"(timeout) fcmp_$i tests (part2) " }
1128 send_gdb
"x/8i fcmp_$i"; send_gdb "_tests_3\n"
1131 .
*fcmp
,$i
,!\\?
<= fr4
,fr5.
*
1132 .
*fcmp
,$i
,> fr4
,fr5.
*
1133 .
*fcmp
,$i
,\\?
> fr4
,fr5.
*
1134 .
*fcmp
,$i
,!<= fr4
,fr5.
*
1135 .
*fcmp
,$i
,!\\?
< fr4
,fr5.
*
1136 .
*fcmp
,$i
,>= fr4
,fr5.
*
1137 .
*fcmp
,$i
,\\?
>= fr4
,fr5.
*
1138 .
*fcmp
,$i
,!< fr4
,fr5.
*
1139 .
*$gdb_prompt $
" { pass "$i tests (part3) " }
1140 -re
"$gdb_prompt $" { fail "fcmp_$i tests (part3) " }
1141 timeout
{ fail
"(timeout) fcmp_$i tests (part3) " }
1144 send_gdb
"x/8i fcmp_$i"; send_gdb "_tests_4\n"
1147 .
*fcmp
,$i
,!\\?
= fr4
,fr5.
*
1148 .
*fcmp
,$i
,<> fr4
,fr5.
*
1149 .
*fcmp
,$i
,!= fr4
,fr5.
*
1150 .
*fcmp
,$i
,!=t fr4
,fr5.
*
1151 .
*fcmp
,$i
,!\\? fr4
,fr5.
*
1152 .
*fcmp
,$i
,<=> fr4
,fr5.
*
1153 .
*fcmp
,$i
,true
\\? fr4
,fr5.
*
1154 .
*fcmp
,$i
,true fr4
,fr5.
*
1155 .
*$gdb_prompt $
" { pass "$i tests (part4) " }
1156 -re
"$gdb_prompt $" { fail "fcmp_$i tests (part4) " }
1157 timeout
{ fail
"(timeout) fcmp_$i tests (part4) " }
1162 proc all_special_tests
{ } {
1167 send_gdb
"x/4i special_tests\n"
1170 .
*gfw r4
\\(sr0
,r5
\\).
*
1171 .
*gfw
,m r4
\\(sr0
,r5
\\).
*
1172 .
*gfr r4
\\(sr0
,r5
\\).
*
1173 .
*gfr
,m r4
\\(sr0
,r5
\\).
*
1174 .
*$gdb_prompt $
" { pass "special tests" }
1175 -re
"$gdb_prompt $" { fail "special tests" }
1176 timeout
{ fail
"(timeout) special tests " }
1181 proc all_sfu_tests
{ } {
1186 send_gdb
"x/16i sfu_tests\n"
1202 .
*spop3
,4,73 r5
,r6.
*
1203 .
*spop3
,4,5,n r5
,r6.
*
1204 .
*spop3
,4,73,n r5
,r6.
*
1205 .
*$gdb_prompt $
" { pass "sfu tests" }
1206 -re
"$gdb_prompt $" { fail "sfu tests" }
1207 timeout
{ fail
"(timeout) sfu tests " }
1211 proc all_copr_tests
{ } {
1216 send_gdb
"x/4i copr_tests\n"
1223 .
*$gdb_prompt $
" { pass "copr tests" }
1224 -re
"$gdb_prompt $" { fail "copr tests" }
1225 timeout
{ fail
"(timeout) copr tests " }
1229 proc all_copr_mem_tests
{ } {
1234 send_gdb
"x/8i copr_indexing_load\n"
1237 .
*cldwx
,4 r5
\\(sr0
,r4
\\),r26.
*
1238 .
*cldwx
,4,s r5
\\(sr0
,r4
\\),r26.
*
1239 .
*cldwx
,4,m r5
\\(sr0
,r4
\\),r26.
*
1240 .
*cldwx
,4,sm r5
\\(sr0
,r4
\\),r26.
*
1241 .
*clddx
,4 r5
\\(sr0
,r4
\\),r26.
*
1242 .
*clddx
,4,s r5
\\(sr0
,r4
\\),r26.
*
1243 .
*clddx
,4,m r5
\\(sr0
,r4
\\),r26.
*
1244 .
*clddx
,4,sm r5
\\(sr0
,r4
\\),r26.
*
1245 .
*$gdb_prompt $
" { pass "copr indexed load tests" }
1246 -re
"$gdb_prompt $" { fail "copr indexed load tests" }
1247 timeout
{ fail
"(timeout) copr indexed load tests " }
1250 send_gdb
"x/8i copr_indexing_store\n"
1253 .
*cstwx
,4 r26
,r5
\\(sr0
,r4
\\).
*
1254 .
*cstwx
,4,s r26
,r5
\\(sr0
,r4
\\).
*
1255 .
*cstwx
,4,m r26
,r5
\\(sr0
,r4
\\).
*
1256 .
*cstwx
,4,sm r26
,r5
\\(sr0
,r4
\\).
*
1257 .
*cstdx
,4 r26
,r5
\\(sr0
,r4
\\).
*
1258 .
*cstdx
,4,s r26
,r5
\\(sr0
,r4
\\).
*
1259 .
*cstdx
,4,m r26
,r5
\\(sr0
,r4
\\).
*
1260 .
*cstdx
,4,sm r26
,r5
\\(sr0
,r4
\\).
*
1261 .
*$gdb_prompt $
" { pass "copr indexed store tests" }
1262 -re
"$gdb_prompt $" { fail "copr indexed store tests" }
1263 timeout
{ fail
"(timeout) copr indexed load tests " }
1266 send_gdb
"x/12i copr_short_memory\n"
1269 .
*cldws
,4 0\\(sr0
,r4
\\),r26.
*
1270 .
*cldws
,4,mb
0\\(sr0
,r4
\\),r26.
*
1271 .
*cldws
,4,ma
0\\(sr0
,r4
\\),r26.
*
1272 .
*cldds
,4 0\\(sr0
,r4
\\),r26.
*
1273 .
*cldds
,4,mb
0\\(sr0
,r4
\\),r26.
*
1274 .
*cldds
,4,ma
0\\(sr0
,r4
\\),r26.
*
1275 .
*cstws
,4 r26
,0\\(sr0
,r4
\\).
*
1276 .
*cstws
,4,mb r26
,0\\(sr0
,r4
\\).
*
1277 .
*cstws
,4,ma r26
,0\\(sr0
,r4
\\).
*
1278 .
*cstds
,4 r26
,0\\(sr0
,r4
\\).
*
1279 .
*cstds
,4,mb r26
,0\\(sr0
,r4
\\).
*
1280 .
*cstds
,4,ma r26
,0\\(sr0
,r4
\\).
*
1281 .
*$gdb_prompt $
" { pass "copr short memory tests" }
1282 -re
"$gdb_prompt $" { fail "copr short memory tests" }
1283 timeout
{ fail
"(timeout) copr short memory tests " }
1287 proc fmemLRbug_tests
{ } {
1292 send_gdb
"x/12i fmemLRbug_tests_1\n"
1295 .
*fstws fr6R
,0\\(sr0
,r26
\\).
*
1296 .
*fstws fr6
,4\\(sr0
,r26
\\).
*
1297 .
*fstws fr6
,8\\(sr0
,r26
\\).
*
1298 .
*fstds fr6
,0\\(sr0
,r26
\\).
*
1299 .
*fstds fr6
,4\\(sr0
,r26
\\).
*
1300 .
*fstds fr6
,8\\(sr0
,r26
\\).
*
1301 .
*fldws
0\\(sr0
,r26
\\),fr6R.
*
1302 .
*fldws
4\\(sr0
,r26
\\),fr6.
*
1303 .
*fldws
8\\(sr0
,r26
\\),fr6.
*
1304 .
*fldds
0\\(sr0
,r26
\\),fr6.
*
1305 .
*fldds
4\\(sr0
,r26
\\),fr6.
*
1306 .
*fldds
8\\(sr0
,r26
\\),fr6.
*
1307 .
*$gdb_prompt $
" { pass "fmem LR register selector tests (part1)" }
1308 -re
"$gdb_prompt $" { fail "fmem LR register selector tests (part1)" }
1309 timeout
{ fail
"(timeout) fmem LR register selector tests (part1)" }
1312 send_gdb
"x/12i fmemLRbug_tests_2\n"
1315 .
*fstws fr6R
,0\\(sr0
,r26
\\).
*
1316 .
*fstws fr6
,4\\(sr0
,r26
\\).
*
1317 .
*fstws fr6
,8\\(sr0
,r26
\\).
*
1318 .
*fstds fr6
,0\\(sr0
,r26
\\).
*
1319 .
*fstds fr6
,4\\(sr0
,r26
\\).
*
1320 .
*fstds fr6
,8\\(sr0
,r26
\\).
*
1321 .
*fldws
0\\(sr0
,r26
\\),fr6R.
*
1322 .
*fldws
4\\(sr0
,r26
\\),fr6.
*
1323 .
*fldws
8\\(sr0
,r26
\\),fr6.
*
1324 .
*fldds
0\\(sr0
,r26
\\),fr6.
*
1325 .
*fldds
4\\(sr0
,r26
\\),fr6.
*
1326 .
*fldds
8\\(sr0
,r26
\\),fr6.
*
1327 .
*$gdb_prompt $
" { pass "fmem LR register selector tests (part2)" }
1328 -re
"$gdb_prompt $" { fail "fmem LR register selector tests (part2)" }
1329 timeout
{ fail
"(timeout) fmem LR register selector tests (part2)" }
1332 send_gdb
"x/12i fmemLRbug_tests_3\n"
1335 .
*fstwx fr6R
,r25
\\(sr0
,r26
\\).
*
1336 .
*fstwx fr6
,r25
\\(sr0
,r26
\\).
*
1337 .
*fstwx fr6
,r25
\\(sr0
,r26
\\).
*
1338 .
*fstdx fr6
,r25
\\(sr0
,r26
\\).
*
1339 .
*fstdx fr6
,r25
\\(sr0
,r26
\\).
*
1340 .
*fstdx fr6
,r25
\\(sr0
,r26
\\).
*
1341 .
*fldwx r25
\\(sr0
,r26
\\),fr6R.
*
1342 .
*fldwx r25
\\(sr0
,r26
\\),fr6.
*
1343 .
*fldwx r25
\\(sr0
,r26
\\),fr6.
*
1344 .
*flddx r25
\\(sr0
,r26
\\),fr6.
*
1345 .
*flddx r25
\\(sr0
,r26
\\),fr6.
*
1346 .
*flddx r25
\\(sr0
,r26
\\),fr6.
*
1347 .
*$gdb_prompt $
" { pass "fmem LR register selector tests (part3)" }
1348 -re
"$gdb_prompt $" { fail "fmem LR register selector tests (part3)" }
1349 timeout
{ fail
"(timeout) fmem LR register selector tests (part3)" }
1352 send_gdb
"x/12i fmemLRbug_tests_4\n"
1355 .
*fstwx fr6R
,r25
\\(sr0
,r26
\\).
*
1356 .
*fstwx fr6
,r25
\\(sr0
,r26
\\).
*
1357 .
*fstwx fr6
,r25
\\(sr0
,r26
\\).
*
1358 .
*fstdx fr6
,r25
\\(sr0
,r26
\\).
*
1359 .
*fstdx fr6
,r25
\\(sr0
,r26
\\).
*
1360 .
*fstdx fr6
,r25
\\(sr0
,r26
\\).
*
1361 .
*fldwx r25
\\(sr0
,r26
\\),fr6R.
*
1362 .
*fldwx r25
\\(sr0
,r26
\\),fr6.
*
1363 .
*fldwx r25
\\(sr0
,r26
\\),fr6.
*
1364 .
*flddx r25
\\(sr0
,r26
\\),fr6.
*
1365 .
*flddx r25
\\(sr0
,r26
\\),fr6.
*
1366 .
*flddx r25
\\(sr0
,r26
\\),fr6.
*
1367 .
*$gdb_prompt $
" { pass "fmem LR register selector tests (part4)" }
1368 -re
"$gdb_prompt $" { fail "fmem LR register selector tests (part4)" }
1369 timeout
{ fail
"(timeout) fmem LR register selector tests (part4)" }
1373 # Start with a fresh gdb.
1377 gdb_reinitialize_dir $srcdir
/$subdir
1380 all_integer_memory_tests
1383 all_integer_computational_tests
1384 all_system_control_tests
1385 all_fpu_memory_tests
1386 all_fpu_computational_tests
1387 all_fpu_comparison_tests
1393 # Regression test
for a bug Tege found.