This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [ping] Re: Add sh target to float.exp
- From: Elena Zannoni <ezannoni at redhat dot com>
- To: Michael Snyder <msnyder at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Mon, 11 Aug 2003 20:46:38 -0400
- Subject: Re: [ping] Re: Add sh target to float.exp
- References: <3F26EDCB.1090106@redhat.com><3F381EBD.2000405@redhat.com>
Michael Snyder writes:
>
> Ping, and revised per feedback:
>
OK, but can you add a test on some other register? At least fr1 to
make sure we at least get past the output of the first float
value. You could also add fr15.
elena
>
> 2003-07-29 Michael Snyder <msnyder@redhat.com>
>
> * gdb.base/float.exp: Add test for SH.
>
> Index: float.exp
> ===================================================================
> RCS file: /cvs/src/src/gdb/testsuite/gdb.base/float.exp,v
> retrieving revision 1.5
> diff -p -r1.5 float.exp
> *** float.exp 6 Jul 2003 22:27:34 -0000 1.5
> --- float.exp 11 Aug 2003 22:53:41 -0000
> *************** if { [istarget "alpha*-*-*"] } then {
> *** 63,68 ****
> --- 63,78 ----
> 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.*$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"
> }