aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2003-08-12 22:27:19 +0000
committerMichael Snyder <msnyder@vmware.com>2003-08-12 22:27:19 +0000
commitc99c59c39d338de4143c1434cea6cd9bb20b88b9 (patch)
tree847e2676c664a40ccc25fe2f17b4677142324826 /gdb
parent44160db3297f1557d9f58e6a84736f9d18f21b6f (diff)
downloadgdb-c99c59c39d338de4143c1434cea6cd9bb20b88b9.zip
gdb-c99c59c39d338de4143c1434cea6cd9bb20b88b9.tar.gz
gdb-c99c59c39d338de4143c1434cea6cd9bb20b88b9.tar.bz2
2003-08-12 Michael Snyder <msnyder@redhat.com>
* gdb.base/float.exp: Add test for SH.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.base/float.exp10
2 files changed, 14 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 69f4174..cfbb598 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -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.
diff --git a/gdb/testsuite/gdb.base/float.exp b/gdb/testsuite/gdb.base/float.exp
index f681e1f..6c80fbb 100644
--- a/gdb/testsuite/gdb.base/float.exp
+++ b/gdb/testsuite/gdb.base/float.exp
@@ -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"
}