From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6715 invoked by alias); 29 Mar 2004 08:48:04 -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 6693 invoked from network); 29 Mar 2004 08:48:02 -0000 Received: from unknown (HELO mail03.idc.renesas.com) (202.234.163.13) by sources.redhat.com with SMTP; 29 Mar 2004 08:48:02 -0000 Received: (from root@localhost) by guardian02.idc.renesas.com with id i2T8loUB001156; Mon, 29 Mar 2004 17:47:50 +0900 (JST) Received: from unknown [172.20.8.71] by guardian02.idc.renesas.com with SMTP id TAA01155 ; Mon, 29 Mar 2004 17:47:50 +0900 Received: from dnma02 (dnma02.rso.renesas.com [10.15.11.200]) by dnma01.rso.renesas.com (iPlanet Messaging Server 5.2 HotFix 1.12 (built Feb 13 2003)) with ESMTP id <0HVB003MMXRN40@dnma01.rso.renesas.com>; Mon, 29 Mar 2004 17:47:47 +0900 (JST) Received: from renesas.com ([10.145.105.33]) by dnma02.rso.renesas.com (iPlanet Messaging Server 5.2 HotFix 1.12 (built Feb 13 2003)) with ESMTP id <0HVB00B0SXRLB0@dnma02.rso.renesas.com>; Mon, 29 Mar 2004 17:47:47 +0900 (JST) Date: Mon, 29 Mar 2004 08:48:00 -0000 From: Kazuhiro Inaoka Subject: [PATCH] m32r-*-as bad instruction 'seth r0, #shigh(0xffff8000)' To: Nick Clifton Cc: "binutils@sources.redhat.com" , "cgen@sources.redhat.com" Message-id: <4067E291.4070002@renesas.com> MIME-version: 1.0 Content-type: multipart/mixed; boundary="Boundary_(ID_tv3QWgDJBXZTB9mDWf3pJQ)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja-JP; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-SW-Source: 2004-q1/txt/msg00027.txt.bz2 This is a multi-part message in MIME format. --Boundary_(ID_tv3QWgDJBXZTB9mDWf3pJQ) Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT Content-length: 510 Hello, This is a patch to fix the following bug. Command line: m32r-linux-as -o tt.o tt.s or m32r-elf-as -o tt.o tt.s pattern is: .section .text seth r0, #shigh(0xffff8000) .end Error log is: tt.s: Assembler messages: tt.s:2: Error: bad instruction 'seth r0,#shigh(0xffff8000)' Please commit it and regenerate opcodes/m32r-asm.c. Regards, Kazuhiro Inaoka ChangeLog: 2004-03-29 Kazuhiro Inaoka < inaoka dot kazuhiro at renesas dot com > * cpu/m32r.opc (parse_hi16): Fixed shigh(0xffff8000) bug. --Boundary_(ID_tv3QWgDJBXZTB9mDWf3pJQ) Content-type: text/plain; name=m32r.opc.patch Content-transfer-encoding: 7BIT Content-disposition: inline; filename=m32r.opc.patch Content-length: 780 Index: m32r.opc =================================================================== RCS file: /cvs/src/src/cpu/m32r.opc,v retrieving revision 1.2 diff -c -r1.2 m32r.opc *** m32r.opc 23 Feb 2004 16:46:46 -0000 1.2 --- m32r.opc 29 Mar 2004 08:09:53 -0000 *************** *** 153,159 **** ++*strp; if (errmsg == NULL && result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER) ! value = (value >> 16) + (value & 0x8000 ? 1 : 0); *valuep = value; return errmsg; } --- 153,162 ---- ++*strp; if (errmsg == NULL && result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER) ! { ! value = value + (value & 0x8000 ? 0x10000 : 0); ! value >>= 16; ! } *valuep = value; return errmsg; } --Boundary_(ID_tv3QWgDJBXZTB9mDWf3pJQ)--