1 # Copyright (C) 1992 Free Software Foundation, Inc.
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
17 # Please email any bugs, comments, and/or additions to this file to:
18 # bug-gdb@prep.ai.mit.edu
20 # This file was written by Jeff Law. (law@cs.utah.edu)
30 set srcfile $binfile.s
32 proc all_fp_move_and_load_tests { } {
37 send "x/9i fp_move_and_load_tests\n"
42 .*fmov.s\t@r0\\+,fr0.*
44 .*fmov.s\t@\\(r0,r0\\),fr0.*
45 .*fmov.s\tfr0,@\\(r0,r0\\).*
49 .*$prompt $" { pass "fp_move_and_load_tests" }
50 -re "$prompt $" { fail "fp_move_and_load_tests" }
51 timeout { fail "(timeout) fp_move_and_load_tests" }
55 proc all_fp_arithmetic_tests { } {
60 send "x/13i fp_arithmetic_tests\n"
76 .*$prompt $" { pass "fp_arithmetic_tests" }
77 -re "$prompt $" { fail "fp_arithmetic_tests" }
78 timeout { fail "(timeout) fp_arithmetic_tests" }
82 proc all_fp_misc_tests { } {
87 send "x/10i fp_misc_tests\n"
93 .*lds\\.l\t@r3\\+,fpul.*
95 .*lds\\.l\t@r3\\+,fpscr.*
97 .*sts\\.l\tfpul,@-r3.*
99 .*sts\\.l\tfpscr,@-r3.*
100 .*$prompt $" { pass "fp_misc_tests" }
101 -re "$prompt $" { fail "fp_misc_tests" }
102 timeout { fail "(timeout) fp_misc_tests" }
106 if ![file exists $objdir/$subdir/$binfile] then {
108 warning "$objdir/$subdir/$binfile does not exist; tests suppressed"
111 # Start with a fresh gdb.
115 gdb_reinitialize_dir $srcdir/$subdir
116 gdb_load $objdir/$subdir/$binfile
118 all_fp_move_and_load_tests
119 all_fp_arithmetic_tests