-# Copyright 2003, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+# Copyright 2003, 2007-2012 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# This file is part of the gdb testsuite.
-if $tracelevel {
- strace $tracelevel
-}
-
#
# Test floating-point related functionality.
#
-set prms_id 0
-set bug_id 0
-if { [prepare_for_testing float.exp float run.c] } {
+if { [prepare_for_testing float.exp float float.c] } {
return -1
}
if { [istarget "alpha*-*-*"] } then {
gdb_test "info float" "f0.*" "info float"
-} elseif { [istarget "arm*-*-*"] || \
- [istarget "xscale*-*-*"] || \
- [istarget "strongarm*-*-*"] } then {
+} elseif { [istarget "arm*-*-*"] } then {
gdb_test_multiple "info float" "info float" {
-re "Software FPU type.*mask:.*flags:.*$gdb_prompt $" {
pass "info float (FPA)"
} else {
gdb_test "info float" "No floating.point info available for this processor." "info float (unknown target)"
}
+
+gdb_test "step"
+gdb_test "finish" "Value returned is .* = (inf|nan).*"