From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2419 invoked by alias); 14 Jun 2004 21:44:47 -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 2408 invoked from network); 14 Jun 2004 21:44:46 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 14 Jun 2004 21:44:46 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i5ELiki5014816 for ; Mon, 14 Jun 2004 17:44:46 -0400 Received: from zenia.home.redhat.com (porkchop.devel.redhat.com [172.16.58.2]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i5ELii011324; Mon, 14 Jun 2004 17:44:45 -0400 To: gdb-patches@sources.redhat.com Subject: RFA: e500-regs.exp: fix little-endian 'print' patterns From: Jim Blandy Date: Mon, 14 Jun 2004 21:44:00 -0000 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-06/txt/msg00328.txt.bz2 Without this patch, all the 'print ev*' tests fail when the test program is compiled with -mlittle. With the patch, they all pass. Tested on i686-pc-linux-gnu host with the following targets: powerpc-sim/-mlittle powerpc-sim/-mbig 2004-06-14 Jim Blandy * gdb.arch/e500-regs.exp: Fix up 'print' pattern for the little- endian case. Index: gdb/testsuite/gdb.arch/e500-regs.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.arch/e500-regs.exp,v retrieving revision 1.1 diff -c -p -r1.1 e500-regs.exp *** gdb/testsuite/gdb.arch/e500-regs.exp 17 Mar 2003 20:06:16 -0000 1.1 --- gdb/testsuite/gdb.arch/e500-regs.exp 14 Jun 2004 21:40:43 -0000 *************** for {set i 0} {$i < 32} {incr i 1} { *** 112,118 **** if {$endianness == "big"} { set decimal_vector ".uint64 = 4294967297, v2_float = .1.*e-45, 1.*e-45., v2_int32 = .1, 1., v4_int16 = .0, 1, 0, 1., v8_int8 = ..000.000.000.001.000.000.000.001.." } else { ! set decimal_vector ".uint64 = 0x0000000100000001, v2_float = .1.*e-45, 1.*e-45., v2_int32 = .1, 1., v4_int16 = .1, 0, 1, 0., v8_int8 = ..001.000.000.000.001.000.000.000.001.000.000.000.001.000.000.." } for {set i 0} {$i < 32} {incr i 1} { --- 112,118 ---- if {$endianness == "big"} { set decimal_vector ".uint64 = 4294967297, v2_float = .1.*e-45, 1.*e-45., v2_int32 = .1, 1., v4_int16 = .0, 1, 0, 1., v8_int8 = ..000.000.000.001.000.000.000.001.." } else { ! set decimal_vector ".uint64 = 4294967297, v2_float = .1.*e-45, 1.*e-45., v2_int32 = .1, 1., v4_int16 = .1, 0, 1, 0., v8_int8 = ..001.000.000.000.001.000.000.." } for {set i 0} {$i < 32} {incr i 1} {