public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
From: Dave Brolley <brolley@redhat.com>
To: Will Newton <will.newton@gmail.com>
Cc: Will Newton <will.newton@imgtec.com>, cgen@sources.redhat.com
Subject: Re: Assembler syntax with embedded spaces
Date: Tue, 08 Jan 2008 17:46:00 -0000	[thread overview]
Message-ID: <4783B6ED.1090509@redhat.com> (raw)
In-Reply-To: <87a5b0800801080755m13457d2dx94f7506f796ae5d4@mail.gmail.com>

Will Newton wrote:

>I've just had a dig in the cgen source and noticed this comment in insn.scm:
>
>; Return instruction mnemonic.
>; This is computed from the syntax string.
>; The mnemonic, as we define it, is everything up to, but not including, the
>; first space or '$'.
>; FIXME: Rename to syntax-mnemonic, and take a syntax string argument.
>
>and opc-itab.scm:
>
>; Strip the mnemonic part from SYNTAX.
>; (ie: everything up to but not including the first space or '$')
>; If STRIP-MNEM-OPERANDS?, strip them too.
>
>I'm not sure what I want to do is possible.
>  
>
It certainly seems that CGEN is not well suited to the assembly syntax. 
Two solutions:

1) Implement the FIXME described above
2) (ugly hack) treat the prefix as the mnemonic and the mnemonics as 
operands.

Dave


      reply	other threads:[~2008-01-08 17:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-08 15:26 Will Newton
2008-01-08 15:32 ` Dave Brolley
2008-01-08 15:55   ` Will Newton
2008-01-08 17:46     ` Dave Brolley [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=4783B6ED.1090509@redhat.com \
    --to=brolley@redhat.com \
    --cc=cgen@sources.redhat.com \
    --cc=will.newton@gmail.com \
    --cc=will.newton@imgtec.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).