Add sh target to float.exp

Michael Snyder
2003-07-29T21:57:34Z

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]

[-- Attachment #2: float --]
[-- Type: text/plain, Size: 1187 bytes --]

2003-07-29 Michael Snyder <msnyder@redhat.com>

* gdb.base/float.exp: Add test for SH.

Index: float.exp
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/testsuite/gdb.base/float.exp,v
retrieving revision 1.3
diff -p -r1.3 float.exp
*** float.exp 18 Jun 2003 19:12:39 -0000 1.3
--- float.exp 29 Jul 2003 21:52:18 -0000
*************** if { [istarget "alpha*-*-*"] } then {
*** 61,66 ****
--- 61,83 ----
gdb_test "info float" "R7:.*Status Word:.*Opcode:.*" "info float"
} elseif [istarget "ia64-*-*"] then {
gdb_test "info float" "f0.*f1.*f127.*" "info float"
+ } elseif [istarget "sh*-*"] then {
+ # SH may or may not have an FPU
+ send_gdb "info float\n"
+ gdb_expect {
+ -re ".*fpul.*fr0.*dr0.*$gdb_prompt $" {
+ pass "info float (with FPU)"
+ }
+ -re "No floating.point info available for this processor.*$gdb_prompt $" {
+ pass "info float (without FPU)"
+ }
+ -re ".*$gdb_prompt $" {
+ fail "info float"
+ }
+ timeout {
+ fail "info float (timeout)"
+ }
+ }
} else {
gdb_test "info float" "No floating.point info available for this processor." "info float"
}