From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15545 invoked by alias); 26 Oct 2005 06:21:16 -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 15452 invoked by uid 22791); 26 Oct 2005 06:21:13 -0000 Received: from mail.renesas.com (HELO mail02.idc.renesas.com) (202.234.163.13) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 26 Oct 2005 06:21:13 +0000 Received: from mail02.idc.renesas.com ([127.0.0.1]) by mail02.idc.renesas.com. (SMSSMTP 4.1.9.35) with SMTP id M2005102615210905739 ; Wed, 26 Oct 2005 15:21:09 +0900 Received: (from root@localhost) by guardian05.idc.renesas.com with id j9Q6L9Dx020613; Wed, 26 Oct 2005 15:21:09 +0900 (JST) Received: from unknown [172.20.8.73] by guardian05.idc.renesas.com with SMTP id RAA20612 ; Wed, 26 Oct 2005 15:21:09 +0900 Received: from dnma02 (dnma02.rso.renesas.com [172.30.11.200]) by dnma01.rso.renesas.com (iPlanet Messaging Server 5.2 HotFix 1.12 (built Feb 13 2003)) with ESMTP id <0IOY00537EZ779@dnma01.rso.renesas.com>; Wed, 26 Oct 2005 15:21:07 +0900 (JST) Received: from renesas.com ([10.145.105.179]) by dnma02.rso.renesas.com (iPlanet Messaging Server 5.2 HotFix 1.12 (built Feb 13 2003)) with ESMTP id <0IOY002CYEZ7GF@dnma02.rso.renesas.com>; Wed, 26 Oct 2005 15:21:07 +0900 (JST) Date: Wed, 26 Oct 2005 06:21:00 -0000 From: Kazuhiro Inaoka Subject: Re: [PATCH] m32r-*-as For a code depended for host word size. In-reply-to: <20051026060456.GM17244@bubble.grove.modra.org> To: Alan Modra , Nick Clifton Cc: binutils@sources.redhat.com, cgen@sources.redhat.com Message-id: <435F2055.4030209@renesas.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja-JP; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) References: <434F6596.404@renesas.com> <435F1697.2000904@renesas.com> <20051026060456.GM17244@bubble.grove.modra.org> X-SW-Source: 2005-q4/txt/msg00026.txt.bz2 That's OK. Thanks, Kazuhiro Inaoka Alan Modra wrote: >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; > > >