2 # Copyright 1992, 1993, 1994, 1995, 1996, 1997, 2007
3 # Free Software Foundation, Inc.
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 # Please email any bugs, comments, and/or additions to this file to:
19 # bug-gdb@prep.ai.mit.edu
21 # This file was written by Jeff Law. (law@cs.utah.edu)
27 if ![istarget "hppa*-*-*"] {
28 verbose "Tests ignored for all but hppa based targets."
37 set srcfile ${srcdir}/${subdir}/${testfile}.s
38 set binfile ${objdir}/${subdir}/${testfile}
39 set comp_output [gdb_compile "${srcfile}" "${binfile}" executable ""];
40 if { $comp_output != "" } {
41 if [ regexp "Opcode not defined - DIAG" $comp_output] {
42 warning "HP assembler in use--skipping disasm tests"
45 perror "Couldn't compile ${srcfile}"
50 proc all_integer_memory_tests { } {
55 send_gdb "x/8i integer_memory_tests\n"
58 .*ldw 0\\(sr0,r4\\),r26.*
59 .*ldh 0\\(sr0,r4\\),r26.*
60 .*ldb 0\\(sr0,r4\\),r26.*
61 .*stw r26,0\\(sr0,r4\\).*
62 .*sth r26,0\\(sr0,r4\\).*
63 .*stb r26,0\\(sr0,r4\\).*
64 .*ldwm 0\\(sr0,r4\\),r26.*
65 .*stwm r26,0\\(sr0,r4\\).*
66 .*$gdb_prompt $" { pass "integer_memory_tests" }
67 -re "$gdb_prompt $" { fail "integer_memory_tests" }
68 timeout { fail "(timeout) integer memory_tests" }
71 send_gdb "x/20i integer_indexing_load\n"
74 .*ldwx r5\\(sr0,r4\\),r26.*
75 .*ldwx,s r5\\(sr0,r4\\),r26.*
76 .*ldwx,m r5\\(sr0,r4\\),r26.*
77 .*ldwx,sm r5\\(sr0,r4\\),r26.*
78 .*ldhx r5\\(sr0,r4\\),r26.*
79 .*ldhx,s r5\\(sr0,r4\\),r26.*
80 .*ldhx,m r5\\(sr0,r4\\),r26.*
81 .*ldhx,sm r5\\(sr0,r4\\),r26.*
82 .*ldbx r5\\(sr0,r4\\),r26.*
83 .*ldbx,s r5\\(sr0,r4\\),r26.*
84 .*ldbx,m r5\\(sr0,r4\\),r26.*
85 .*ldbx,sm r5\\(sr0,r4\\),r26.*
86 .*ldwax r5\\(r4\\),r26.*
87 .*ldwax,s r5\\(r4\\),r26.*
88 .*ldwax,m r5\\(r4\\),r26.*
89 .*ldwax,sm r5\\(r4\\),r26.*
90 .*ldcwx r5\\(sr0,r4\\),r26.*
91 .*ldcwx,s r5\\(sr0,r4\\),r26.*
92 .*ldcwx,m r5\\(sr0,r4\\),r26.*
93 .*ldcwx,sm r5\\(sr0,r4\\),r26.*
94 .*$gdb_prompt $" { pass "integer_indexing_load" }
95 -re "$gdb_prompt $" { fail "integer_indexing_load" }
96 timeout { fail "(timeout) integer_indexing" }
99 send_gdb "x/15i integer_load_short_memory\n"
102 .*ldws 0\\(sr0,r4\\),r26.*
103 .*ldws,mb 0\\(sr0,r4\\),r26.*
104 .*ldws,ma 0\\(sr0,r4\\),r26.*
105 .*ldhs 0\\(sr0,r4\\),r26.*
106 .*ldhs,mb 0\\(sr0,r4\\),r26.*
107 .*ldhs,ma 0\\(sr0,r4\\),r26.*
108 .*ldbs 0\\(sr0,r4\\),r26.*
109 .*ldbs,mb 0\\(sr0,r4\\),r26.*
110 .*ldbs,ma 0\\(sr0,r4\\),r26.*
111 .*ldwas 0\\(r4\\),r26.*
112 .*ldwas,mb 0\\(r4\\),r26.*
113 .*ldwas,ma 0\\(r4\\),r26.*
114 .*ldcws 0\\(sr0,r4\\),r26.*
115 .*ldcws,mb 0\\(sr0,r4\\),r26.*
116 .*ldcws,ma 0\\(sr0,r4\\),r26.*
117 .*$gdb_prompt $" { pass "integer_load_short_memory" }
118 -re "$gdb_prompt $" { fail "integer_load_short_memory" }
119 timeout { fail "(timeout) integer_load_short_memory " }
123 send_gdb "x/17i integer_store_short_memory\n"
126 .*stws r26,0\\(sr0,r4\\).*
127 .*stws,mb r26,0\\(sr0,r4\\).*
128 .*stws,ma r26,0\\(sr0,r4\\).*
129 .*sths r26,0\\(sr0,r4\\).*
130 .*sths,mb r26,0\\(sr0,r4\\).*
131 .*sths,ma r26,0\\(sr0,r4\\).*
132 .*stbs r26,0\\(sr0,r4\\).*
133 .*stbs,mb r26,0\\(sr0,r4\\).*
134 .*stbs,ma r26,0\\(sr0,r4\\).*
135 .*stwas r26,0\\(r4\\).*
136 .*stwas,mb r26,0\\(r4\\).*
137 .*stwas,ma r26,0\\(r4\\).*
138 .*stbys r26,0\\(sr0,r4\\).*
139 .*stbys r26,0\\(sr0,r4\\).*
140 .*stbys,e r26,0\\(sr0,r4\\).*
141 .*stbys,b,m r26,0\\(sr0,r4\\).*
142 .*stbys,e,m r26,0\\(sr0,r4\\).*
143 .*$gdb_prompt $" { pass "integer_store_short_memory" }
144 -re "$gdb_prompt $" { fail "integer_store_short_memory" }
145 timeout { fail "(timeout) integer_short_memory " }
149 proc all_immediate_tests { } {
154 send_gdb "x/3i immediate_tests\n"
157 .*ldo 5\\(r26\\),r26.*
158 .*ldil -21524800,r26.*
159 .*addil -21524800,r5.*
160 .*$gdb_prompt $" { pass "immedate_tests" }
161 -re "$gdb_prompt $" { fail "immedate_tests" }
162 timeout { fail "(timeout) immedate_tests " }
166 proc all_branch_tests { } {
171 send_gdb "x/10i branch_tests_1\n"
184 .*$gdb_prompt $" { pass "branch_tests_1" }
185 -re "$gdb_prompt $" { fail "branch_tests_1" }
186 timeout { fail "(timeout) branch_tests_1" }
189 send_gdb "x/6i branch_tests_2\n"
194 .*be 1234\\(sr1,rp\\).*
195 .*be,n 1234\\(sr1,rp\\).*
196 .*ble 1234\\(sr1,rp\\).*
197 .*ble,n 1234\\(sr1,rp\\).*
198 .*$gdb_prompt $" { pass "branch_tests_2" }
199 -re "$gdb_prompt $" { fail "branch_tests_2" }
200 timeout { fail "(timeout) branch_tests_2" }
204 send_gdb "x/8i movb_tests\n"
207 .*movb r4,r26,.* <movb_tests>.*
208 .*movb,= r4,r26,.* <movb_tests>.*
209 .*movb,< r4,r26,.* <movb_tests>.*
210 .*movb,od r4,r26,.* <movb_tests>.*
211 .*movb,tr r4,r26,.* <movb_tests>.*
212 .*movb,<> r4,r26,.* <movb_tests>.*
213 .*movb,>= r4,r26,.* <movb_tests>.*
214 .*movb,ev r4,r26,.* <movb_tests>.*
215 .*$gdb_prompt $" { pass "movb_tests" }
216 -re "$gdb_prompt $" { fail "movb_tests" }
217 timeout { fail "(timeout) movb_tests " }
220 send_gdb "x/8i movb_nullified_tests\n"
223 .*movb,n.*r4,r26,.* <movb_tests>.*
224 .*movb,=,n.*r4,r26,.* <movb_tests>.*
225 .*movb,<,n.*r4,r26,.* <movb_tests>.*
226 .*movb,od,n.*r4,r26,.* <movb_tests>.*
227 .*movb,tr,n.*r4,r26,.* <movb_tests>.*
228 .*movb,<>,n.*r4,r26,.* <movb_tests>.*
229 .*movb,>=,n.*r4,r26,.* <movb_tests>.*
230 .*movb,ev,n.*r4,r26,.* <movb_tests>.*
231 .*$gdb_prompt $" { pass "movb_nullified_tests" }
232 -re "$gdb_prompt $" { fail "movb_nullified_tests" }
233 timeout { fail "(timeout) movb_nullified_tests " }
236 send_gdb "x/8i movib_tests\n"
239 .*movib 5,r26,.* <movib_tests>.*
240 .*movib,= 5,r26,.* <movib_tests>.*
241 .*movib,< 5,r26,.* <movib_tests>.*
242 .*movib,od 5,r26,.* <movib_tests>.*
243 .*movib,tr 5,r26,.* <movib_tests>.*
244 .*movib,<> 5,r26,.* <movib_tests>.*
245 .*movib,>= 5,r26,.* <movib_tests>.*
246 .*movib,ev 5,r26,.* <movib_tests>.*
247 .*$gdb_prompt $" { pass "movib_tests" }
248 -re "$gdb_prompt $" { fail "movib_tests" }
249 timeout { fail "(timeout) movib_tests " }
252 send_gdb "x/8i movib_nullified_tests\n"
255 .*movib,n.*5,r26,.* <movib_tests>.*
256 .*movib,=,n.*5,r26,.* <movib_tests>.*
257 .*movib,<,n.*5,r26,.* <movib_tests>.*
258 .*movib,od,n.*5,r26,.* <movib_tests>.*
259 .*movib,tr,n.*5,r26,.* <movib_tests>.*
260 .*movib,<>,n.*5,r26,.* <movib_tests>.*
261 .*movib,>=,n.*5,r26,.* <movib_tests>.*
262 .*movib,ev,n.*5,r26,.* <movib_tests>.*
263 .*$gdb_prompt $" { pass "movib_nullified_tests" }
264 -re "$gdb_prompt $" { fail "movib_nullified_tests" }
265 timeout { fail "(timeout) movib_nullified_tests " }
268 send_gdb "x/8i comb_tests_1\n"
271 .*comb r0,r4,.* <comb_tests_1>.*
272 .*comb,= r0,r4,.* <comb_tests_1>.*
273 .*comb,< r0,r4,.* <comb_tests_1>.*
274 .*comb,<= r0,r4,.* <comb_tests_1>.*
275 .*comb,<< r0,r4,.* <comb_tests_1>.*
276 .*comb,<<= r0,r4,.* <comb_tests_1>.*
277 .*comb,sv r0,r4,.* <comb_tests_1>.*
278 .*comb,od r0,r4,.* <comb_tests_1>.*
279 .*$gdb_prompt $" { pass "comb_tests_1" }
280 -re "$gdb_prompt $" { fail "comb_tests_1" }
281 timeout { fail "(timeout) comb_tests_1" }
284 send_gdb "x/8i comb_tests_2\n"
287 .*combf r0,r4,.* <comb_tests_2>.*
288 .*combf,= r0,r4,.* <comb_tests_2>.*
289 .*combf,< r0,r4,.* <comb_tests_2>.*
290 .*combf,<= r0,r4,.* <comb_tests_2>.*
291 .*combf,<< r0,r4,.* <comb_tests_2>.*
292 .*combf,<<= r0,r4,.* <comb_tests_2>.*
293 .*combf,sv r0,r4,.* <comb_tests_2>.*
294 .*combf,od r0,r4,.* <comb_tests_2>.*
295 .*$gdb_prompt $" { pass "comb_tests_2" }
296 -re "$gdb_prompt $" { fail "comb_tests_2" }
297 timeout { fail "(timeout) comb_tests_2" }
300 send_gdb "x/8i comb_nullified_tests_1\n"
303 .*comb,n r0,r4,.* <comb_tests_1>.*
304 .*comb,=,n r0,r4,.* <comb_tests_1>.*
305 .*comb,<,n r0,r4,.* <comb_tests_1>.*
306 .*comb,<=,n r0,r4,.* <comb_tests_1>.*
307 .*comb,<<,n r0,r4,.* <comb_tests_1>.*
308 .*comb,<<=,n r0,r4,.* <comb_tests_1>.*
309 .*comb,sv,n r0,r4,.* <comb_tests_1>.*
310 .*comb,od,n r0,r4,.* <comb_tests_1>.*
311 .*$gdb_prompt $" { pass "comb_nullified_tests_1" }
312 -re "$gdb_prompt $" { fail "comb_nullified_tests_1" }
313 timeout { fail "(timeout) comb_nullified_tests_1" }
316 send_gdb "x/8i comb_nullified_tests_2\n"
319 .*combf,n r0,r4,.* <comb_tests_2>.*
320 .*combf,=,n r0,r4,.* <comb_tests_2>.*
321 .*combf,<,n r0,r4,.* <comb_tests_2>.*
322 .*combf,<=,n r0,r4,.* <comb_tests_2>.*
323 .*combf,<<,n r0,r4,.* <comb_tests_2>.*
324 .*combf,<<=,n r0,r4,.* <comb_tests_2>.*
325 .*combf,sv,n r0,r4,.* <comb_tests_2>.*
326 .*combf,od,n r0,r4,.* <comb_tests_2>.*
327 .*$gdb_prompt $" { pass "comb_nullified_tests_2" }
328 -re "$gdb_prompt $" { fail "comb_nullified_tests_2" }
329 timeout { fail "(timeout) comb_nullified_tests_2" }
332 send_gdb "x/8i comib_tests_1\n"
335 .*comib 0,r4,.* <comib_tests_1>.*
336 .*comib,= 0,r4,.* <comib_tests_1>.*
337 .*comib,< 0,r4,.* <comib_tests_1>.*
338 .*comib,<= 0,r4,.* <comib_tests_1>.*
339 .*comib,<< 0,r4,.* <comib_tests_1>.*
340 .*comib,<<= 0,r4,.* <comib_tests_1>.*
341 .*comib,sv 0,r4,.* <comib_tests_1>.*
342 .*comib,od 0,r4,.* <comib_tests_1>.*
343 .*$gdb_prompt $" { pass "comib_tests_1" }
344 -re "$gdb_prompt $" { fail "comib_tests_1" }
345 timeout { fail "(timeout) comib_tests_1" }
348 send_gdb "x/8i comib_tests_2\n"
351 .*comibf 0,r4,.* <comib_tests_2>.*
352 .*comibf,= 0,r4,.* <comib_tests_2>.*
353 .*comibf,< 0,r4,.* <comib_tests_2>.*
354 .*comibf,<= 0,r4,.* <comib_tests_2>.*
355 .*comibf,<< 0,r4,.* <comib_tests_2>.*
356 .*comibf,<<= 0,r4,.* <comib_tests_2>.*
357 .*comibf,sv 0,r4,.* <comib_tests_2>.*
358 .*comibf,od 0,r4,.* <comib_tests_2>.*
359 .*$gdb_prompt $" { pass "comib_tests_2" }
360 -re "$gdb_prompt $" { fail "comib_tests_2" }
361 timeout { fail "(timeout) comib_tests_2" }
364 send_gdb "x/8i comib_nullified_tests_1\n"
367 .*comib,n 0,r4,.* <comib_tests_1>.*
368 .*comib,=,n 0,r4,.* <comib_tests_1>.*
369 .*comib,<,n 0,r4,.* <comib_tests_1>.*
370 .*comib,<=,n 0,r4,.* <comib_tests_1>.*
371 .*comib,<<,n 0,r4,.* <comib_tests_1>.*
372 .*comib,<<=,n 0,r4,.* <comib_tests_1>.*
373 .*comib,sv,n 0,r4,.* <comib_tests_1>.*
374 .*comib,od,n 0,r4,.* <comib_tests_1>.*
375 .*$gdb_prompt $" { pass "comib_nullified_tests_1" }
376 -re "$gdb_prompt $" { fail "comib_nullified_tests_1" }
377 timeout { fail "(timeout) comib_nullified_tests_1" }
380 send_gdb "x/8i comib_nullified_tests_2\n"
383 .*comibf,n 0,r4,.* <comib_tests_2>.*
384 .*comibf,=,n 0,r4,.* <comib_tests_2>.*
385 .*comibf,<,n 0,r4,.* <comib_tests_2>.*
386 .*comibf,<=,n 0,r4,.* <comib_tests_2>.*
387 .*comibf,<<,n 0,r4,.* <comib_tests_2>.*
388 .*comibf,<<=,n 0,r4,.* <comib_tests_2>.*
389 .*comibf,sv,n 0,r4,.* <comib_tests_2>.*
390 .*comibf,od,n 0,r4,.* <comib_tests_2>.*
391 .*$gdb_prompt $" { pass "comib_nullified_tests_2" }
392 -re "$gdb_prompt $" { fail "comib_nullified_tests_2" }
393 timeout { fail "(timeout) comib_nullified_tests_2" }
396 send_gdb "x/8i addb_tests_1\n"
399 .*addb r1,r4,.* <addb_tests_1>.*
400 .*addb,= r1,r4,.* <addb_tests_1>.*
401 .*addb,< r1,r4,.* <addb_tests_1>.*
402 .*addb,<= r1,r4,.* <addb_tests_1>.*
403 .*addb,nuv r1,r4,.* <addb_tests_1>.*
404 .*addb,znv r1,r4,.* <addb_tests_1>.*
405 .*addb,sv r1,r4,.* <addb_tests_1>.*
406 .*addb,od r1,r4,.* <addb_tests_1>.*
407 .*$gdb_prompt $" { pass "addb_tests_1" }
408 -re "$gdb_prompt $" { fail "addb_tests_1" }
409 timeout { fail "(timeout) addb_tests_1" }
412 send_gdb "x/8i addb_tests_2\n"
415 .*addbf r1,r4,.* <addb_tests_2>.*
416 .*addbf,= r1,r4,.* <addb_tests_2>.*
417 .*addbf,< r1,r4,.* <addb_tests_2>.*
418 .*addbf,<= r1,r4,.* <addb_tests_2>.*
419 .*addbf,nuv r1,r4,.* <addb_tests_2>.*
420 .*addbf,znv r1,r4,.* <addb_tests_2>.*
421 .*addbf,sv r1,r4,.* <addb_tests_2>.*
422 .*addbf,od r1,r4,.* <addb_tests_2>.*
423 .*$gdb_prompt $" { pass "addb_tests_2" }
424 -re "$gdb_prompt $" { fail "addb_tests_2" }
425 timeout { fail "(timeout) addb_tests_2" }
428 send_gdb "x/8i addb_nullified_tests_1\n"
431 .*addb,n r1,r4,.* <addb_tests_1>.*
432 .*addb,=,n r1,r4,.* <addb_tests_1>.*
433 .*addb,<,n r1,r4,.* <addb_tests_1>.*
434 .*addb,<=,n r1,r4,.* <addb_tests_1>.*
435 .*addb,nuv,n r1,r4,.* <addb_tests_1>.*
436 .*addb,znv,n r1,r4,.* <addb_tests_1>.*
437 .*addb,sv,n r1,r4,.* <addb_tests_1>.*
438 .*addb,od,n r1,r4,.* <addb_tests_1>.*
439 .*$gdb_prompt $" { pass "addb_nullified_tests_1" }
440 -re "$gdb_prompt $" { fail "addb_nullified_tests_1" }
441 timeout { fail "(timeout) addb_nullified_tests_1" }
444 send_gdb "x/8i addb_nullified_tests_2\n"
447 .*addbf,n r1,r4,.* <addb_tests_2>.*
448 .*addbf,=,n r1,r4,.* <addb_tests_2>.*
449 .*addbf,<,n r1,r4,.* <addb_tests_2>.*
450 .*addbf,<=,n r1,r4,.* <addb_tests_2>.*
451 .*addbf,nuv,n r1,r4,.* <addb_tests_2>.*
452 .*addbf,znv,n r1,r4,.* <addb_tests_2>.*
453 .*addbf,sv,n r1,r4,.* <addb_tests_2>.*
454 .*addbf,od,n r1,r4,.* <addb_tests_2>.*
455 .*$gdb_prompt $" { pass "addb_nullified_tests_2" }
456 -re "$gdb_prompt $" { fail "addb_nullified_tests_2" }
457 timeout { fail "(timeout) addb_nullified_tests_2" }
460 send_gdb "x/8i addib_tests_1\n"
463 .*addib -1,r4,.* <addib_tests_1>.*
464 .*addib,= -1,r4,.* <addib_tests_1>.*
465 .*addib,< -1,r4,.* <addib_tests_1>.*
466 .*addib,<= -1,r4,.* <addib_tests_1>.*
467 .*addib,nuv -1,r4,.* <addib_tests_1>.*
468 .*addib,znv -1,r4,.* <addib_tests_1>.*
469 .*addib,sv -1,r4,.* <addib_tests_1>.*
470 .*addib,od -1,r4,.* <addib_tests_1>.*
471 .*$gdb_prompt $" { pass "addib_tests_1" }
472 -re "$gdb_prompt $" { fail "addib_tests_1" }
473 timeout { fail "(timeout) addib_tests_1" }
476 send_gdb "x/8i addib_tests_2\n"
479 .*addibf -1,r4,.* <addib_tests_2>.*
480 .*addibf,= -1,r4,.* <addib_tests_2>.*
481 .*addibf,< -1,r4,.* <addib_tests_2>.*
482 .*addibf,<= -1,r4,.* <addib_tests_2>.*
483 .*addibf,nuv -1,r4,.* <addib_tests_2>.*
484 .*addibf,znv -1,r4,.* <addib_tests_2>.*
485 .*addibf,sv -1,r4,.* <addib_tests_2>.*
486 .*addibf,od -1,r4,.* <addib_tests_2>.*
487 .*$gdb_prompt $" { pass "addib_tests_2" }
488 -re "$gdb_prompt $" { fail "addib_tests_2" }
489 timeout { fail "(timeout) addib_tests_2" }
492 send_gdb "x/8i addib_nullified_tests_1\n"
495 .*addib,n -1,r4,.* <addib_tests_1>.*
496 .*addib,=,n -1,r4,.* <addib_tests_1>.*
497 .*addib,<,n -1,r4,.* <addib_tests_1>.*
498 .*addib,<=,n -1,r4,.* <addib_tests_1>.*
499 .*addib,nuv,n -1,r4,.* <addib_tests_1>.*
500 .*addib,znv,n -1,r4,.* <addib_tests_1>.*
501 .*addib,sv,n -1,r4,.* <addib_tests_1>.*
502 .*addib,od,n -1,r4,.* <addib_tests_1>.*
503 .*$gdb_prompt $" { pass "addb_nullified_tests_1" }
504 -re "$gdb_prompt $" { fail "addb_nullified_tests_1" }
505 timeout { fail "(timeout) addb_nullified_tests_1" }
508 send_gdb "x/8i addib_nullified_tests_2\n"
511 .*addibf,n -1,r4,.* <addib_tests_2>.*
512 .*addibf,=,n -1,r4,.* <addib_tests_2>.*
513 .*addibf,<,n -1,r4,.* <addib_tests_2>.*
514 .*addibf,<=,n -1,r4,.* <addib_tests_2>.*
515 .*addibf,nuv,n -1,r4,.* <addib_tests_2>.*
516 .*addibf,znv,n -1,r4,.* <addib_tests_2>.*
517 .*addibf,sv,n -1,r4,.* <addib_tests_2>.*
518 .*addibf,od,n -1,r4,.* <addib_tests_2>.*
519 .*$gdb_prompt $" { pass "addb_nullified_tests_2" }
520 -re "$gdb_prompt $" { fail "addb_nullified_tests_2" }
521 timeout { fail "(timeout) addb_nullified_tests_2" }
524 send_gdb "x/8i bb_tests\n"
527 .*bvb,< r4,.* <bb_tests>.*
528 .*bvb,>= r4,.* <bb_tests>.*
529 .*bvb,<,n r4,.* <bb_tests>.*
530 .*bvb,>=,n r4,.* <bb_tests>.*
531 .*bb,< r4,5,.* <bb_tests>.*
532 .*bb,>= r4,5,.* <bb_tests>.*
533 .*bb,<,n r4,5,.* <bb_tests>.*
534 .*bb,>=,n r4,5,.* <bb_tests>.*
535 .*$gdb_prompt $" { pass "bb_tests" }
536 -re "$gdb_prompt $" { fail "bb_tests" }
537 timeout { fail "(timeout) bb_tests " }
541 proc all_integer_computational_tests { } {
546 set add_insns [list {add} {addl} {addo} {addc} {addco} \
547 {sh1add} {sh1addl} {sh1addo} \
548 {sh2add} {sh2addl} {sh2addo} \
549 {sh3add} {sh3addl} {sh3addo} ]
551 foreach i $add_insns {
552 send_gdb "x/16i $i"; send_gdb "_tests\n"
571 .*$gdb_prompt $" { pass "$i tests" }
572 -re "$gdb_prompt $" { fail "$i tests" }
573 timeout { fail "(timeout) $i tests" }
577 set sub_insns [list {sub} {subo} {subb} {subbo} {subt} {subto} \
580 foreach i $sub_insns {
581 send_gdb "x/16i $i"; send_gdb "_tests\n"
600 .*$gdb_prompt $" { pass "$i tests" }
601 -re "$gdb_prompt $" { fail "$i tests" }
602 timeout { fail "(timeout) $i tests" }
606 set logical_insns [list {or} {xor} {and} {andcm} ]
608 foreach i $logical_insns {
609 send_gdb "x/10i $i"; send_gdb "_tests\n"
622 .*$gdb_prompt $" { pass "$i tests" }
623 -re "$gdb_prompt $" { fail "$i tests" }
624 timeout { fail "(timeout) $i tests" }
628 set unit_insns1 [list {uxor} {uaddcm} {uaddcmt} ]
630 foreach i $unit_insns1 {
631 send_gdb "x/12i $i"; send_gdb "_tests\n"
646 .*$gdb_prompt $" { pass "$i tests" }
647 -re "$gdb_prompt $" { fail "$i tests" }
648 timeout { fail "(timeout) $i tests" }
652 set unit_insns2 [list {dcor} {idcor} ]
654 foreach i $unit_insns2 {
655 send_gdb "x/12i $i"; send_gdb "_tests\n"
670 .*$gdb_prompt $" { pass "$i tests" }
671 -re "$gdb_prompt $" { fail "$i tests" }
672 timeout { fail "(timeout) $i tests" }
676 set addi_insns [list {addi} {addio} {addit} {addito} ]
678 foreach i $addi_insns {
679 send_gdb "x/16i $i"; send_gdb "_tests\n"
698 .*$gdb_prompt $" { pass "$i tests" }
699 -re "$gdb_prompt $" { fail "$i tests" }
700 timeout { fail "(timeout) $i tests" }
704 set subi_insns [list {subi} {subio} {comiclr} ]
706 foreach i $subi_insns {
707 send_gdb "x/16i $i"; send_gdb "_tests\n"
726 .*$gdb_prompt $" { pass "$i tests" }
727 -re "$gdb_prompt $" { fail "$i tests" }
728 timeout { fail "(timeout) $i tests" }
732 send_gdb "x/8i vshd_tests\n"
743 .*$gdb_prompt $" { pass "vshd tests" }
744 -re "$gdb_prompt $" { fail "vshd tests" }
745 timeout { fail "(timeout) "vshd tests" }
748 send_gdb "x/8i shd_tests\n"
754 .*shd,od r4,r5,5,r6.*
755 .*shd,tr r4,r5,5,r6.*
756 .*shd,<> r4,r5,5,r6.*
757 .*shd,>= r4,r5,5,r6.*
758 .*shd,ev r4,r5,5,r6.*
759 .*$gdb_prompt $" { pass "shd tests" }
760 -re "$gdb_prompt $" { fail "shd tests" }
761 timeout { fail "(timeout) "shd tests" }
764 set extract_insns1 [list {extru} {extrs} {zdep} {dep} ]
766 foreach i $extract_insns1 {
767 send_gdb "x/8i $i"; send_gdb "_tests\n"
778 .*$gdb_prompt $" { pass "$i tests" }
779 -re "$gdb_prompt $" { fail "$i tests" }
780 timeout { fail "(timeout) $i tests" }
784 set extract_insns2 [list {vextru} {vextrs} {zvdep} {vdep} ]
786 foreach i $extract_insns2 {
787 send_gdb "x/8i $i"; send_gdb "_tests\n"
798 .*$gdb_prompt $" { pass "$i tests" }
799 -re "$gdb_prompt $" { fail "$i tests" }
800 timeout { fail "(timeout) $i tests" }
804 set extract_insns3 [list {vdepi} {zvdepi} ]
806 foreach i $extract_insns3 {
807 send_gdb "x/8i $i"; send_gdb "_tests\n"
818 .*$gdb_prompt $" { pass "$i tests" }
819 -re "$gdb_prompt $" { fail "$i tests" }
820 timeout { fail "(timeout) $i tests" }
824 set extract_insns4 [list {depi} {zdepi} ]
826 foreach i $extract_insns4 {
827 send_gdb "x/8i $i"; send_gdb "_tests\n"
838 .*$gdb_prompt $" { pass "$i tests" }
839 -re "$gdb_prompt $" { fail "$i tests" }
840 timeout { fail "(timeout) $i tests" }
845 proc all_system_control_tests { } {
850 send_gdb "x/14i system_control_tests\n"
859 .*ldsid \\(sr0,r5\\),r4.*
867 .*$gdb_prompt $" { pass "system_constrol_tests" }
868 -re "$gdb_prompt $" { fail "system_control_tests" }
869 timeout { file "(timeout) system_control_tests" }
872 send_gdb "x/4i probe_tests\n"
875 .*prober \\(sr0,r5\\),r6,r7.*
876 .*proberi \\(sr0,r5\\),1,r7.*
877 .*probew \\(sr0,r5\\),r6,r7.*
878 .*probewi \\(sr0,r5\\),1,r7.*
879 .*$gdb_prompt $" { pass "probe_tests" }
880 -re "$gdb_prompt $" { fail "probe_tests" }
881 timeout { file "(timeout) probe_tests" }
884 # lci uses the same bit pattern as lha, so accept lha.
885 send_gdb "x/5i lpa_tests\n"
888 .*lpa r4\\(sr0,r5\\),r6.*
889 .*lpa,m r4\\(sr0,r5\\),r6.*
890 .*lha r4\\(sr0,r5\\),r6.*
891 .*lha,m r4\\(sr0,r5\\),r6.*
892 .*lha r4\\(sr0,r5\\),r6.*
893 .*$gdb_prompt $" { pass "lpa_tests" }
894 -re "$gdb_prompt $" { fail "lpa_tests" }
895 timeout { file "(timeout) lpa_tests" }
898 send_gdb "x/18i purge_tests\n"
901 .*pdtlb r4\\(sr0,r5\\).*
902 .*pdtlb,m r4\\(sr0,r5\\).*
903 .*pitlb r4\\(sr0,r5\\).*
904 .*pitlb,m r4\\(sr0,r5\\).*
905 .*pdtlbe r4\\(sr0,r5\\).*
906 .*pdtlbe,m r4\\(sr0,r5\\).*
907 .*pitlbe r4\\(sr0,r5\\).*
908 .*pitlbe,m r4\\(sr0,r5\\).*
909 .*pdc r4\\(sr0,r5\\).*
910 .*pdc,m r4\\(sr0,r5\\).*
911 .*fdc r4\\(sr0,r5\\).*
912 .*fdc,m r4\\(sr0,r5\\).*
913 .*fic r4\\(sr0,r5\\).*
914 .*fic,m r4\\(sr0,r5\\).*
915 .*fdce r4\\(sr0,r5\\).*
916 .*fdce,m r4\\(sr0,r5\\).*
917 .*fice r4\\(sr0,r5\\).*
918 .*fice,m r4\\(sr0,r5\\).*
919 .*$gdb_prompt $" { pass "purge_tests" }
920 -re "$gdb_prompt $" { fail "purge_tests" }
921 timeout { file "(timeout) purge_tests" }
924 send_gdb "x/4i insert_tests\n"
927 .*idtlba r4,\\(sr0,r5\\).*
928 .*iitlba r4,\\(sr0,r5\\).*
929 .*idtlbp r4,\\(sr0,r5\\).*
930 .*iitlbp r4,\\(sr0,r5\\).*
931 .*$gdb_prompt $" { pass "insert_tests" }
932 -re "$gdb_prompt $" { fail "insert_tests" }
933 timeout { file "(timeout) insert_tests" }
938 proc all_fpu_memory_tests { } {
943 send_gdb "x/20i fpu_memory_indexing_tests\n"
946 .*fldwx r4\\(sr0,r5\\),fr6.*
947 .*fldwx,s r4\\(sr0,r5\\),fr6.*
948 .*fldwx,m r4\\(sr0,r5\\),fr6.*
949 .*fldwx,sm r4\\(sr0,r5\\),fr6.*
950 .*flddx r4\\(sr0,r5\\),fr6.*
951 .*flddx,s r4\\(sr0,r5\\),fr6.*
952 .*flddx,m r4\\(sr0,r5\\),fr6.*
953 .*flddx,sm r4\\(sr0,r5\\),fr6.*
954 .*fstwx fr6,r4\\(sr0,r5\\).*
955 .*fstwx,s fr6,r4\\(sr0,r5\\).*
956 .*fstwx,m fr6,r4\\(sr0,r5\\).*
957 .*fstwx,sm fr6,r4\\(sr0,r5\\).*
958 .*fstdx fr6,r4\\(sr0,r5\\).*
959 .*fstdx,s fr6,r4\\(sr0,r5\\).*
960 .*fstdx,m fr6,r4\\(sr0,r5\\).*
961 .*fstdx,sm fr6,r4\\(sr0,r5\\).*
962 .*fstqx fr6,r4\\(sr0,r5\\).*
963 .*fstqx,s fr6,r4\\(sr0,r5\\).*
964 .*fstqx,m fr6,r4\\(sr0,r5\\).*
965 .*fstqx,sm fr6,r4\\(sr0,r5\\).*
966 .*$gdb_prompt $" { pass "fpu_memory_indexing_tests" }
967 -re "$gdb_prompt $" { fail "fpu_memory_indexing_tests" }
968 timeout { file "(timeout) fpu_memory_indexing_tests" }
971 send_gdb "x/15i fpu_short_memory_tests\n"
974 .*fldws 0\\(sr0,r5\\),fr6.*
975 .*fldws,mb 0\\(sr0,r5\\),fr6.*
976 .*fldws,ma 0\\(sr0,r5\\),fr6.*
977 .*fldds 0\\(sr0,r5\\),fr6.*
978 .*fldds,mb 0\\(sr0,r5\\),fr6.*
979 .*fldds,ma 0\\(sr0,r5\\),fr6.*
980 .*fstws fr6,0\\(sr0,r5\\).*
981 .*fstws,mb fr6,0\\(sr0,r5\\).*
982 .*fstws,ma fr6,0\\(sr0,r5\\).*
983 .*fstds fr6,0\\(sr0,r5\\).*
984 .*fstds,mb fr6,0\\(sr0,r5\\).*
985 .*fstds,ma fr6,0\\(sr0,r5\\).*
986 .*fstqs fr6,0\\(sr0,r5\\).*
987 .*fstqs,mb fr6,0\\(sr0,r5\\).*
988 .*fstqs,ma fr6,0\\(sr0,r5\\).*
989 .*$gdb_prompt $" { pass "fpu_short_memory_tests" }
990 -re "$gdb_prompt $" { fail "fpu_short_memory_tests" }
991 timeout { file "(timeout) fpu_short_memory_tests" }
996 proc all_fpu_computational_tests { } {
1001 send_gdb "x/1i fpu_misc_tests\n"
1005 .*$gdb_prompt $" { pass "fpu_misc_tests" }
1006 -re "$gdb_prompt $" { fail "fpu_misc_tests" }
1007 timeout { file "(timeout) fpu_misc_tests" }
1010 set fpu_two_op_insns [list {fcpy} {fabs} {fsqrt} {frnd} ]
1012 foreach i $fpu_two_op_insns {
1013 send_gdb "x/5i $i"; send_gdb "_tests\n"
1018 .*$i,quad fr5,fr10.*
1019 .*$i,sgl fr20,fr24.*
1020 .*$i,dbl fr20,fr24.*
1021 .*$gdb_prompt $" { pass "$i tests" }
1022 -re "$gdb_prompt $" { fail "$i tests" }
1023 timeout { fail "(timeout) $i tests" }
1027 set fpu_conversions [list {fcnvff} {fcnvxf} {fcnvfx} {fcnvfxt} ]
1029 foreach i $fpu_conversions {
1030 send_gdb "x/18i $i"; send_gdb "_tests\n"
1033 .*$i,sgl,sgl fr5,fr10.*
1034 .*$i,sgl,dbl fr5,fr10.*
1035 .*$i,sgl,quad fr5,fr10.*
1036 .*$i,dbl,sgl fr5,fr10.*
1037 .*$i,dbl,dbl fr5,fr10.*
1038 .*$i,dbl,quad fr5,fr10.*
1039 .*$i,quad,sgl fr5,fr10.*
1040 .*$i,quad,dbl fr5,fr10.*
1041 .*$i,quad,quad fr5,fr10.*
1042 .*$i,sgl,sgl fr20,fr24.*
1043 .*$i,sgl,dbl fr20,fr24.*
1044 .*$i,sgl,quad fr20,fr24.*
1045 .*$i,dbl,sgl fr20,fr24.*
1046 .*$i,dbl,dbl fr20,fr24.*
1047 .*$i,dbl,quad fr20,fr24.*
1048 .*$i,quad,sgl fr20,fr24.*
1049 .*$i,quad,dbl fr20,fr24.*
1050 .*$i,quad,quad fr20,fr24.*
1051 .*$gdb_prompt $" { pass "$i tests" }
1052 -re "$gdb_prompt $" { fail "$i tests" }
1053 timeout { fail "(timeout) $i tests" }
1057 set fpu_three_op_insns [list {fadd} {fsub} {fmpy} {fdiv} {frem} ]
1059 foreach i $fpu_three_op_insns {
1060 send_gdb "x/6i $i"; send_gdb "_tests\n"
1063 .*$i,sgl fr4,fr8,fr12.*
1064 .*$i,dbl fr4,fr8,fr12.*
1065 .*$i,quad fr4,fr8,fr12.*
1066 .*$i,sgl fr20,fr24,fr28.*
1067 .*$i,dbl fr20,fr24,fr28.*
1068 .*$i,quad fr20,fr24,fr28.*
1069 .*$gdb_prompt $" { pass "$i tests" }
1070 -re "$gdb_prompt $" { fail "$i tests" }
1071 timeout { fail "(timeout) $i tests" }
1075 send_gdb "x/4i fmpy_addsub_tests\n"
1078 .*fmpyadd,sgl fr16,fr17,fr18,fr19,fr20.*
1079 .*fmpyadd,dbl fr16,fr17,fr18,fr19,fr20.*
1080 .*fmpysub,sgl fr16,fr17,fr18,fr19,fr20.*
1081 .*fmpysub,dbl fr16,fr17,fr18,fr19,fr20.*
1082 .*$gdb_prompt $" { pass "fmpy_addsub_tests" }
1083 -re "$gdb_prompt $" { fail "fmpy_addsub_tests" }
1084 timeout { fail "(timeout) fmpy_addsub_tests" }
1087 send_gdb "x/i xmpyu_tests\n"
1090 .*xmpyu fr4,fr5,fr6.*
1091 .*$gdb_prompt $" {pass "xmpyu_tests" }
1092 -re "$gdb_prompt $" {fail "xmpyu_tests" }
1093 timeout { fail "(timeout) xmpyu_tests" }
1098 proc all_fpu_comparison_tests { } {
1103 set fpu_comparison_formats [list {sgl} {dbl} {quad} ]
1105 foreach i $fpu_comparison_formats {
1106 send_gdb "x/8i fcmp_$i"; send_gdb "_tests_1\n"
1109 .*fcmp,$i,false\\? fr4,fr5.*
1110 .*fcmp,$i,false fr4,fr5.*
1111 .*fcmp,$i,\\? fr4,fr5.*
1112 .*fcmp,$i,!<=> fr4,fr5.*
1113 .*fcmp,$i,= fr4,fr5.*
1114 .*fcmp,$i,=t fr4,fr5.*
1115 .*fcmp,$i,\\?= fr4,fr5.*
1116 .*fcmp,$i,!<> fr4,fr5.*
1117 .*$gdb_prompt $" { pass "$i tests (part1) " }
1118 -re "$gdb_prompt $" { fail "fcmp_$i tests (part1) " }
1119 timeout { fail "(timeout) fcmp_$i tests (part1) " }
1122 send_gdb "x/8i fcmp_$i"; send_gdb "_tests_2\n"
1125 .*fcmp,$i,!\\?>= fr4,fr5.*
1126 .*fcmp,$i,< fr4,fr5.*
1127 .*fcmp,$i,\\?< fr4,fr5.*
1128 .*fcmp,$i,!>= fr4,fr5.*
1129 .*fcmp,$i,!\\?> fr4,fr5.*
1130 .*fcmp,$i,<= fr4,fr5.*
1131 .*fcmp,$i,\\?<= fr4,fr5.*
1132 .*fcmp,$i,!> fr4,fr5.*
1133 .*$gdb_prompt $" { pass "$i tests (part2) " }
1134 -re "$gdb_prompt $" { fail "fcmp_$i tests (part2) " }
1135 timeout { fail "(timeout) fcmp_$i tests (part2) " }
1138 send_gdb "x/8i fcmp_$i"; send_gdb "_tests_3\n"
1141 .*fcmp,$i,!\\?<= fr4,fr5.*
1142 .*fcmp,$i,> fr4,fr5.*
1143 .*fcmp,$i,\\?> fr4,fr5.*
1144 .*fcmp,$i,!<= fr4,fr5.*
1145 .*fcmp,$i,!\\?< fr4,fr5.*
1146 .*fcmp,$i,>= fr4,fr5.*
1147 .*fcmp,$i,\\?>= fr4,fr5.*
1148 .*fcmp,$i,!< fr4,fr5.*
1149 .*$gdb_prompt $" { pass "$i tests (part3) " }
1150 -re "$gdb_prompt $" { fail "fcmp_$i tests (part3) " }
1151 timeout { fail "(timeout) fcmp_$i tests (part3) " }
1154 send_gdb "x/8i fcmp_$i"; send_gdb "_tests_4\n"
1157 .*fcmp,$i,!\\?= fr4,fr5.*
1158 .*fcmp,$i,<> fr4,fr5.*
1159 .*fcmp,$i,!= fr4,fr5.*
1160 .*fcmp,$i,!=t fr4,fr5.*
1161 .*fcmp,$i,!\\? fr4,fr5.*
1162 .*fcmp,$i,<=> fr4,fr5.*
1163 .*fcmp,$i,true\\? fr4,fr5.*
1164 .*fcmp,$i,true fr4,fr5.*
1165 .*$gdb_prompt $" { pass "$i tests (part4) " }
1166 -re "$gdb_prompt $" { fail "fcmp_$i tests (part4) " }
1167 timeout { fail "(timeout) fcmp_$i tests (part4) " }
1172 proc all_special_tests { } {
1177 send_gdb "x/4i special_tests\n"
1180 .*gfw r4\\(sr0,r5\\).*
1181 .*gfw,m r4\\(sr0,r5\\).*
1182 .*gfr r4\\(sr0,r5\\).*
1183 .*gfr,m r4\\(sr0,r5\\).*
1184 .*$gdb_prompt $" { pass "special tests" }
1185 -re "$gdb_prompt $" { fail "special tests" }
1186 timeout { fail "(timeout) special tests " }
1191 proc all_sfu_tests { } {
1196 send_gdb "x/16i sfu_tests\n"
1212 .*spop3,4,73 r5,r6.*
1213 .*spop3,4,5,n r5,r6.*
1214 .*spop3,4,73,n r5,r6.*
1215 .*$gdb_prompt $" { pass "sfu tests" }
1216 -re "$gdb_prompt $" { fail "sfu tests" }
1217 timeout { fail "(timeout) sfu tests " }
1221 proc all_copr_tests { } {
1226 send_gdb "x/4i copr_tests\n"
1233 .*$gdb_prompt $" { pass "copr tests" }
1234 -re "$gdb_prompt $" { fail "copr tests" }
1235 timeout { fail "(timeout) copr tests " }
1239 proc all_copr_mem_tests { } {
1244 send_gdb "x/8i copr_indexing_load\n"
1247 .*cldwx,4 r5\\(sr0,r4\\),r26.*
1248 .*cldwx,4,s r5\\(sr0,r4\\),r26.*
1249 .*cldwx,4,m r5\\(sr0,r4\\),r26.*
1250 .*cldwx,4,sm r5\\(sr0,r4\\),r26.*
1251 .*clddx,4 r5\\(sr0,r4\\),r26.*
1252 .*clddx,4,s r5\\(sr0,r4\\),r26.*
1253 .*clddx,4,m r5\\(sr0,r4\\),r26.*
1254 .*clddx,4,sm r5\\(sr0,r4\\),r26.*
1255 .*$gdb_prompt $" { pass "copr indexed load tests" }
1256 -re "$gdb_prompt $" { fail "copr indexed load tests" }
1257 timeout { fail "(timeout) copr indexed load tests " }
1260 send_gdb "x/8i copr_indexing_store\n"
1263 .*cstwx,4 r26,r5\\(sr0,r4\\).*
1264 .*cstwx,4,s r26,r5\\(sr0,r4\\).*
1265 .*cstwx,4,m r26,r5\\(sr0,r4\\).*
1266 .*cstwx,4,sm r26,r5\\(sr0,r4\\).*
1267 .*cstdx,4 r26,r5\\(sr0,r4\\).*
1268 .*cstdx,4,s r26,r5\\(sr0,r4\\).*
1269 .*cstdx,4,m r26,r5\\(sr0,r4\\).*
1270 .*cstdx,4,sm r26,r5\\(sr0,r4\\).*
1271 .*$gdb_prompt $" { pass "copr indexed store tests" }
1272 -re "$gdb_prompt $" { fail "copr indexed store tests" }
1273 timeout { fail "(timeout) copr indexed load tests " }
1276 send_gdb "x/12i copr_short_memory\n"
1279 .*cldws,4 0\\(sr0,r4\\),r26.*
1280 .*cldws,4,mb 0\\(sr0,r4\\),r26.*
1281 .*cldws,4,ma 0\\(sr0,r4\\),r26.*
1282 .*cldds,4 0\\(sr0,r4\\),r26.*
1283 .*cldds,4,mb 0\\(sr0,r4\\),r26.*
1284 .*cldds,4,ma 0\\(sr0,r4\\),r26.*
1285 .*cstws,4 r26,0\\(sr0,r4\\).*
1286 .*cstws,4,mb r26,0\\(sr0,r4\\).*
1287 .*cstws,4,ma r26,0\\(sr0,r4\\).*
1288 .*cstds,4 r26,0\\(sr0,r4\\).*
1289 .*cstds,4,mb r26,0\\(sr0,r4\\).*
1290 .*cstds,4,ma r26,0\\(sr0,r4\\).*
1291 .*$gdb_prompt $" { pass "copr short memory tests" }
1292 -re "$gdb_prompt $" { fail "copr short memory tests" }
1293 timeout { fail "(timeout) copr short memory tests " }
1297 proc fmemLRbug_tests { } {
1302 send_gdb "x/12i fmemLRbug_tests_1\n"
1305 .*fstws fr6R,0\\(sr0,r26\\).*
1306 .*fstws fr6,4\\(sr0,r26\\).*
1307 .*fstws fr6,8\\(sr0,r26\\).*
1308 .*fstds fr6,0\\(sr0,r26\\).*
1309 .*fstds fr6,4\\(sr0,r26\\).*
1310 .*fstds fr6,8\\(sr0,r26\\).*
1311 .*fldws 0\\(sr0,r26\\),fr6R.*
1312 .*fldws 4\\(sr0,r26\\),fr6.*
1313 .*fldws 8\\(sr0,r26\\),fr6.*
1314 .*fldds 0\\(sr0,r26\\),fr6.*
1315 .*fldds 4\\(sr0,r26\\),fr6.*
1316 .*fldds 8\\(sr0,r26\\),fr6.*
1317 .*$gdb_prompt $" { pass "fmem LR register selector tests (part1)" }
1318 -re "$gdb_prompt $" { fail "fmem LR register selector tests (part1)" }
1319 timeout { fail "(timeout) fmem LR register selector tests (part1)" }
1322 send_gdb "x/12i fmemLRbug_tests_2\n"
1325 .*fstws fr6R,0\\(sr0,r26\\).*
1326 .*fstws fr6,4\\(sr0,r26\\).*
1327 .*fstws fr6,8\\(sr0,r26\\).*
1328 .*fstds fr6,0\\(sr0,r26\\).*
1329 .*fstds fr6,4\\(sr0,r26\\).*
1330 .*fstds fr6,8\\(sr0,r26\\).*
1331 .*fldws 0\\(sr0,r26\\),fr6R.*
1332 .*fldws 4\\(sr0,r26\\),fr6.*
1333 .*fldws 8\\(sr0,r26\\),fr6.*
1334 .*fldds 0\\(sr0,r26\\),fr6.*
1335 .*fldds 4\\(sr0,r26\\),fr6.*
1336 .*fldds 8\\(sr0,r26\\),fr6.*
1337 .*$gdb_prompt $" { pass "fmem LR register selector tests (part2)" }
1338 -re "$gdb_prompt $" { fail "fmem LR register selector tests (part2)" }
1339 timeout { fail "(timeout) fmem LR register selector tests (part2)" }
1342 send_gdb "x/12i fmemLRbug_tests_3\n"
1345 .*fstwx fr6R,r25\\(sr0,r26\\).*
1346 .*fstwx fr6,r25\\(sr0,r26\\).*
1347 .*fstwx fr6,r25\\(sr0,r26\\).*
1348 .*fstdx fr6,r25\\(sr0,r26\\).*
1349 .*fstdx fr6,r25\\(sr0,r26\\).*
1350 .*fstdx fr6,r25\\(sr0,r26\\).*
1351 .*fldwx r25\\(sr0,r26\\),fr6R.*
1352 .*fldwx r25\\(sr0,r26\\),fr6.*
1353 .*fldwx r25\\(sr0,r26\\),fr6.*
1354 .*flddx r25\\(sr0,r26\\),fr6.*
1355 .*flddx r25\\(sr0,r26\\),fr6.*
1356 .*flddx r25\\(sr0,r26\\),fr6.*
1357 .*$gdb_prompt $" { pass "fmem LR register selector tests (part3)" }
1358 -re "$gdb_prompt $" { fail "fmem LR register selector tests (part3)" }
1359 timeout { fail "(timeout) fmem LR register selector tests (part3)" }
1362 send_gdb "x/12i fmemLRbug_tests_4\n"
1365 .*fstwx fr6R,r25\\(sr0,r26\\).*
1366 .*fstwx fr6,r25\\(sr0,r26\\).*
1367 .*fstwx fr6,r25\\(sr0,r26\\).*
1368 .*fstdx fr6,r25\\(sr0,r26\\).*
1369 .*fstdx fr6,r25\\(sr0,r26\\).*
1370 .*fstdx fr6,r25\\(sr0,r26\\).*
1371 .*fldwx r25\\(sr0,r26\\),fr6R.*
1372 .*fldwx r25\\(sr0,r26\\),fr6.*
1373 .*fldwx r25\\(sr0,r26\\),fr6.*
1374 .*flddx r25\\(sr0,r26\\),fr6.*
1375 .*flddx r25\\(sr0,r26\\),fr6.*
1376 .*flddx r25\\(sr0,r26\\),fr6.*
1377 .*$gdb_prompt $" { pass "fmem LR register selector tests (part4)" }
1378 -re "$gdb_prompt $" { fail "fmem LR register selector tests (part4)" }
1379 timeout { fail "(timeout) fmem LR register selector tests (part4)" }
1383 # Start with a fresh gdb.
1387 gdb_reinitialize_dir $srcdir/$subdir
1390 all_integer_memory_tests
1393 all_integer_computational_tests
1394 all_system_control_tests
1395 all_fpu_memory_tests
1396 all_fpu_computational_tests
1397 all_fpu_comparison_tests
1403 # Regression test for a bug Tege found.