From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4447 invoked by alias); 23 May 2002 17:35:17 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 4422 invoked from network); 23 May 2002 17:35:13 -0000 Received: from unknown (HELO cygnus.com) (205.180.83.203) by sources.redhat.com with SMTP; 23 May 2002 17:35:13 -0000 Received: from telocity.telocity.com (romulus.sfbay.redhat.com [172.16.27.251]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with SMTP id KAA15511; Thu, 23 May 2002 10:35:07 -0700 (PDT) Message-ID: <3CED281B.3F1F@redhat.com> Date: Thu, 23 May 2002 11:01:00 -0000 From: Michael Snyder MIME-Version: 1.0 To: Andrew Cagney CC: Michael Snyder , gdb-patches@sources.redhat.com, ezannoni@redhat.com Subject: Re: [PATCH] Tweak tests for target with 4-byte doubles References: <200205231527.g4NFRSS31776@reddwarf.sfbay.redhat.com> <3CED13DB.3080304@cygnus.com> <3CED25E6.3080700@cygnus.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-05/txt/msg00876.txt.bz2 Andrew Cagney wrote: > > > 2002-05-23 Michael Snyder > > > > * gdb.base/all-bin.exp: Allow for reduced floating point precision. > > * gdb.base/call-rt-st.exp: Ditto. > > > > Index: all-bin.exp > > =================================================================== > > RCS file: /cvs/src/src/gdb/testsuite/gdb.base/all-bin.exp,v > > retrieving revision 1.2 > > diff -p -r1.2 all-bin.exp > > *** all-bin.exp 6 Mar 2001 08:21:50 -0000 1.2 > > --- all-bin.exp 23 May 2002 15:40:03 -0000 > > *************** send_gdb "print v_int+v_double\n" > > *** 189,198 **** > > gdb_expect { > > -re ".*206.56565.*$gdb_prompt $" { > > pass "print value of v_int+v_double" > > ! } > > -re ".*$gdb_prompt $" { fail "print value of v_int+v_double" } > > ! timeout { fail "(timeout) print value of v_int+" } ! } > > > > Michael, > > > > Last time this was raised it was concluded that GDB shouldn't be testing the FPU here. Rather than adding d10v specific hacks, reduce the precision of the value being checked. > > Hmm, to expand a little: > > > -re ".*206.56565.*$gdb_prompt $" { > > to > > -re ".*206.56\[0-9\]* > > so it isn't assuming a specific underlying floating-point representation. > Got it. Will do.