2003-08-12 Michael Snyder <msnyder@redhat.com>

* gdb.base/float.exp: Add test for SH.
This commit is contained in:
Michael Snyder 2003-08-12 22:27:19 +00:00
parent 44160db329
commit c99c59c39d
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2003-08-12 Michael Snyder <msnyder@redhat.com>
* gdb.base/float.exp: Add test for SH.
2003-08-10 Mark Kettenis <kettenis@gnu.org>
* gdb.arch/i386-prologue.c, gdb.arch/i386-prologue.exp: New files.

View file

@ -63,6 +63,16 @@ if { [istarget "alpha*-*-*"] } then {
gdb_test "info float" "f0.*f1.*f127.*" "info float"
} elseif [istarget "m68k-*-*"] then {
gdb_test "info float" "fp0.*fp1.*fp7.*" "info float"
} elseif [istarget "sh*-*"] then {
# SH may or may not have an FPU
gdb_test_multiple "info float" "info float" {
-re "fpul.*fr0.*fr1.*fr15.*$gdb_prompt $" {
pass "info float (with FPU)"
}
-re "No floating.point info available for this processor.*" {
pass "info float (without FPU)"
}
}
} else {
gdb_test "info float" "No floating.point info available for this processor." "info float"
}