summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/float.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/float.exp')
-rw-r--r--gdb/testsuite/gdb.base/float.exp18
1 files changed, 16 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/float.exp b/gdb/testsuite/gdb.base/float.exp
index 4a28eccf5c7..e0f0d9ffabc 100644
--- a/gdb/testsuite/gdb.base/float.exp
+++ b/gdb/testsuite/gdb.base/float.exp
@@ -62,11 +62,25 @@ if { [istarget "alpha*-*-*"] } then {
} elseif [istarget "ia64-*-*"] then {
gdb_test "info float" "f0.*f1.*f127.*" "info float"
} elseif [istarget "m68k-*-*"] then {
- gdb_test "info float" "fp0.*fp1.*fp7.*" "info float"
+ gdb_test_multiple "info float" "info_float" {
+ -re "fp0.*fp1.*fp7.*$gdb_prompt $" {
+ pass "info float (with FPU)"
+ }
+ -re "No floating.point info available for this processor.*" {
+ pass "info float (without FPU)"
+ }
+ }
} elseif [istarget "mips*-*-*"] then {
gdb_test "info float" "f0:.*flt:.*dbl:.*" "info float"
} elseif [istarget "powerpc*-*-*"] then {
- gdb_test "info float" "f0.*f1.*f31.*fpscr.*" "info float"
+ gdb_test_multiple "info float" "info_float" {
+ -re "f0.*f1.*f31.*fpscr.*$gdb_prompt $" {
+ pass "info float (with FPU)"
+ }
+ -re "No floating.point info available for this processor.*" {
+ pass "info float (without FPU)"
+ }
+ }
} elseif [istarget "s390*-*-*"] then {
gdb_test "info float" "fpc.*f0.*f1.*f15.*" "info float"
} elseif [istarget "sh*-*"] then {