public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
From: Joern Rennecke <joernr@arc.com>
To: "Frank Ch. Eigler" <fche@redhat.com>
Cc: cgen@sources.redhat.com
Subject: Re: CGEN_DIS_HASH: how to get endianness and/or instruction size?
Date: Thu, 25 Jan 2007 20:30:00 -0000	[thread overview]
Message-ID: <20070125203011.GB18395@elsdt-razorfish.arc.com> (raw)
In-Reply-To: <20070125145950.GA30933@redhat.com>

On Thu, Jan 25, 2007 at 09:59:50AM -0500, Frank Ch. Eigler wrote:
> Use the "value" parameter (a host-endian copy of the "base insn")
> rather than the "buffer" parameter.
> 
> > If I want to use the passed instruction value, I need to know what
> > size it is.  [...]
> 
> See m32r_cgen_dis_hash: a hand-written baby insn classifier routine.

I've seen that, but it assumes that if the top 16 its are zero,
the instruction can be hashed as a 16 bit instruction.  That is not
the case for ARCompact.
Branch Conditionally is a 32 bit instuction can have all the top 16 bits
zeroed, and its bottom 16 bits are all operand.

> It is important to realize though that this disassembler hashing
> widget is strictly an optimization.  You can try hard-coding the hash
> value to 0 like some other cgen platforms, and see if the performance
> is bearable.

I can only verify this positively when I've completely finished the
port so that other people can use it...

  reply	other threads:[~2007-01-25 20:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-25 14:20 Joern Rennecke
2007-01-25 15:00 ` Frank Ch. Eigler
2007-01-25 20:30   ` Joern Rennecke [this message]
2007-01-25 22:15     ` Frank Ch. Eigler
2007-01-26  1:11 Joern Rennecke
2007-01-26  1:31 ` Frank Ch. Eigler
2007-01-26 11:17 Joern Rennecke

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=20070125203011.GB18395@elsdt-razorfish.arc.com \
    --to=joernr@arc.com \
    --cc=cgen@sources.redhat.com \
    --cc=fche@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).