From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29319 invoked by alias); 23 May 2002 17:25:00 -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 29257 invoked from network); 23 May 2002 17:24:41 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 23 May 2002 17:24:41 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 98CC13CC5; Thu, 23 May 2002 13:24:54 -0400 (EDT) Message-ID: <3CED25E6.3080700@cygnus.com> Date: Thu, 23 May 2002 10:35:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0rc2) Gecko/20020518 X-Accept-Language: en-us, en 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> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-05/txt/msg00875.txt.bz2 > 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. enjoy, Andrew