From: Alan Modra <amodra@bigpond.net.au>
To: Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
Cc: Nick Clifton <nickc@redhat.com>,
binutils@sources.redhat.com, cgen@sources.redhat.com
Subject: Re: [PATCH] m32r-*-as For a code depended for host word size.
Date: Wed, 26 Oct 2005 06:05:00 -0000 [thread overview]
Message-ID: <20051026060456.GM17244@bubble.grove.modra.org> (raw)
In-Reply-To: <435F1697.2000904@renesas.com>
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
next prev parent reply other threads:[~2005-10-26 6:05 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-14 8:05 Kazuhiro Inaoka
2005-10-14 8:35 ` Nick Clifton
2005-10-14 9:04 ` Andreas Schwab
2005-10-17 1:25 ` Kazuhiro Inaoka
2005-10-18 7:54 ` Nick Clifton
2005-10-18 9:15 ` Kazuhiro Inaoka
2005-10-19 14:45 ` Nick Clifton
2005-10-20 1:18 ` Kazuhiro Inaoka
2005-10-26 5:39 ` Kazuhiro Inaoka
2005-10-26 6:05 ` Alan Modra [this message]
2005-10-26 6:21 ` Kazuhiro Inaoka
2005-10-26 7:50 ` Alan Modra
2005-10-27 0:58 ` Kazuhiro Inaoka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051026060456.GM17244@bubble.grove.modra.org \
--to=amodra@bigpond.net.au \
--cc=binutils@sources.redhat.com \
--cc=cgen@sources.redhat.com \
--cc=inaoka.kazuhiro@renesas.com \
--cc=nickc@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).