From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1275 invoked by alias); 29 Jul 2003 21:57:34 -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 1267 invoked from network); 29 Jul 2003 21:57:34 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 29 Jul 2003 21:57:34 -0000 Received: from int-mx2.corp.redhat.com (nat-pool-rdu-dmz.redhat.com [172.16.52.200] (may be forged)) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h6TLvXZ25385 for ; Tue, 29 Jul 2003 17:57:33 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h6TLvW619546 for ; Tue, 29 Jul 2003 17:57:32 -0400 Received: from redhat.com (reddwarf.sfbay.redhat.com [172.16.24.50]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id h6TLvWK31479 for ; Tue, 29 Jul 2003 14:57:32 -0700 Message-ID: <3F26EDCB.1090106@redhat.com> Date: Tue, 29 Jul 2003 21:57:00 -0000 From: Michael Snyder User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: Add sh target to float.exp Content-Type: multipart/mixed; boundary="------------080001070301010409070001" X-SW-Source: 2003-07/txt/msg00534.txt.bz2 This is a multi-part message in MIME format. --------------080001070301010409070001 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 1 --------------080001070301010409070001 Content-Type: text/plain; name="float" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="float" Content-length: 1187 2003-07-29 Michael Snyder * gdb.base/float.exp: Add test for SH. Index: float.exp =================================================================== RCS file: /cvs/cvsfiles/devo/gdb/testsuite/gdb.base/float.exp,v retrieving revision 1.3 diff -p -r1.3 float.exp *** float.exp 18 Jun 2003 19:12:39 -0000 1.3 --- float.exp 29 Jul 2003 21:52:18 -0000 *************** if { [istarget "alpha*-*-*"] } then { *** 61,66 **** --- 61,83 ---- gdb_test "info float" "R7:.*Status Word:.*Opcode:.*" "info float" } elseif [istarget "ia64-*-*"] then { gdb_test "info float" "f0.*f1.*f127.*" "info float" + } elseif [istarget "sh*-*"] then { + # SH may or may not have an FPU + send_gdb "info float\n" + gdb_expect { + -re ".*fpul.*fr0.*dr0.*$gdb_prompt $" { + pass "info float (with FPU)" + } + -re "No floating.point info available for this processor.*$gdb_prompt $" { + pass "info float (without FPU)" + } + -re ".*$gdb_prompt $" { + fail "info float" + } + timeout { + fail "info float (timeout)" + } + } } else { gdb_test "info float" "No floating.point info available for this processor." "info float" } --------------080001070301010409070001--