public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
From: Jan Zizka <ziza@klubicko.net>
To: "Frank Ch. Eigler" <fche@redhat.com>
Cc: cgen@sources.redhat.com
Subject: Re: New port dsp56800
Date: Sat, 02 Aug 2003 14:13:00 -0000	[thread overview]
Message-ID: <20030731074455.GE4652@velky.homelinux.net> (raw)
In-Reply-To: <20030728160043.GC10546@redhat.com>

Hi,

On Mon, Jul 28, 2003 at 12:00:43PM -0400, Frank Ch. Eigler wrote:
> On Fri, Jul 25, 2003 at 10:28:50AM +0300, Jan Zizka wrote:
> > I've finished my port for dsp56800 and I would like to
> > contribute it to official CVS. 
> 
> Great.  On a technical level, did you find anything
> interesting or peculiar about using cgen to model this chip?

I have been little bit strugling with dsp's 16bit bytes and
I had to do some corrections for that:

  * cgen.c (gas_cgen_tc_gen_reloc): Calculate relocation address
    correctly using octets_per_byte.

I had some troubles to order the insns in .cpu file because 
dsp56800 mnemonics is quite complex. Also I couldn't figure
out how to treat two parameters in insn as one, since syntax
always counts number of args as those separated by ',' etc.
For dsp56800 there are in some insns only a number of allowed 
combinations and it is not possible to separate them 
(mul X0,Y0,A the X0 and Y0 is actually encoded together). But
it is not possible to cover them as one from cgen/gas point
of view. I have solved it by writing own parsing routine and
to satisfy syntax I've added a fake arg (the second one), 
pointing to some fixed bit :):

(define-pmacro (dalu3op2 name opcode)
     (dni (.sym name "-dalu3op2") (.str name " QQQ,FFF")
      ()
      (.str name " $qqq,$dummy,$fffcap")
      (+ (f-op-8 opcode) qqq (f-op-bit-2/3 3) fffcap dummy)
      ()
      ()
      )
)

where qqq is that kind of combination of two regs.


> You will require an FSF copyright assignment to contribute
> to GNU binutils, which would cover the various files in gas/, 
> opcodes/, ld/, etc.  At your option, you could assign your
> cgen input files to the FSF also, to simplify the situation.
> 
> Start by asking for the assignment process paperwork on
> binutils@sources.redhat.com.

Thanks I'll ask there :)

Ziza

      reply	other threads:[~2003-07-31  7:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-26 14:13 Jan Zizka
2003-07-31  7:44 ` Frank Ch. Eigler
2003-08-02 14:13   ` Jan Zizka [this message]

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=20030731074455.GE4652@velky.homelinux.net \
    --to=ziza@klubicko.net \
    --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).