From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 809 invoked by alias); 26 Oct 2005 06:05:03 -0000 Mailing-List: contact cgen-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sources.redhat.com Received: (qmail 736 invoked by uid 22791); 26 Oct 2005 06:05:00 -0000 Received: from omta02sl.mx.bigpond.com (HELO omta02sl.mx.bigpond.com) (144.140.93.154) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 26 Oct 2005 06:05:00 +0000 Received: from grove.modra.org ([144.136.167.90]) by omta02sl.mx.bigpond.com with ESMTP id <20051026060457.WUGT21196.omta02sl.mx.bigpond.com@grove.modra.org>; Wed, 26 Oct 2005 06:04:57 +0000 Received: by bubble.grove.modra.org (Postfix, from userid 500) id DD7E41D2D4E; Wed, 26 Oct 2005 15:34:56 +0930 (CST) Date: Wed, 26 Oct 2005 06:05:00 -0000 From: Alan Modra To: Kazuhiro Inaoka Cc: Nick Clifton , binutils@sources.redhat.com, cgen@sources.redhat.com Subject: Re: [PATCH] m32r-*-as For a code depended for host word size. Message-ID: <20051026060456.GM17244@bubble.grove.modra.org> Mail-Followup-To: Kazuhiro Inaoka , Nick Clifton , binutils@sources.redhat.com, cgen@sources.redhat.com References: <434F6596.404@renesas.com> <435F1697.2000904@renesas.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <435F1697.2000904@renesas.com> User-Agent: Mutt/1.4i X-SW-Source: 2005-q4/txt/msg00025.txt.bz2 On Wed, Oct 26, 2005 at 02:39:35PM +0900, Kazuhiro Inaoka wrote: > This patch is to fix FAIL at testsuite/gas/m32r/seth on x86_64 host. Should high() be treated the same, as follows? Index: cpu/m32r.opc =================================================================== RCS file: /cvs/src/src/cpu/m32r.opc,v retrieving revision 1.9 diff -u -p -r1.9 m32r.opc --- cpu/m32r.opc 19 Oct 2005 14:44:17 -0000 1.9 +++ cpu/m32r.opc 26 Oct 2005 06:03:13 -0000 @@ -127,7 +127,10 @@ parse_hi16 (CGEN_CPU_DESC cd, ++*strp; if (errmsg == NULL && result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER) - value >>= 16; + { + value >>= 16; + value &= 0xffff; + } *valuep = value; return errmsg; } @@ -142,8 +145,9 @@ parse_hi16 (CGEN_CPU_DESC cd, if (errmsg == NULL && result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER) { - value = value + (value & 0x8000 ? 0x10000 : 0); + value += 0x8000; value >>= 16; + value &= 0xffff; } *valuep = value; return errmsg; -- Alan Modra IBM OzLabs - Linux Technology Centre