public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
From: Jan Zizka <janzizka@yahoo.com>
To: cgen@sources.redhat.com
Subject: Insns with similar mnemonics
Date: Tue, 10 Jun 2003 11:21:00 -0000	[thread overview]
Message-ID: <20030610112137.24146.qmail@web41511.mail.yahoo.com> (raw)

Hi!

I have a small problem with correcly assembling following insns (only examle):

move x:(r0+symbol1),x0
move x:symbol2,x0

since the pharenteses might be aswell part of a symbol the first instruction is
interpreted as it would be second one. This will of course make r0, which is
really a register, undefined symbol. Now I have added my own parse function for
that, but it's really not elegat :(. Any suggestions? See my insn definitions
below:

(dni move13meml/allreg "move x:(Rn+xxxx),DDDDD"
	  ()
	  ("move x:($r+$imm16),$d5cap")
	  (+ (f-op-4 #xF) d5cap (f-op-bit-2/6 #x10) r imm16)
	  ()
	  ()
)

(dni move14mem/allreg "move x:imm16,DDDDD"
	  ()
	  ("move x:$imm16,$d5cap")
	  (+ (f-op-4 #xF) d5cap (f-op--7 #x54) imm16)
	  ()
	  ()
)

Thanks!
              Jan

             reply	other threads:[~2003-06-10 11:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-10 11:21 Jan Zizka [this message]
2003-06-10 14:56 ` Dave Brolley
2003-06-10 15:14 ` Frank Ch. Eigler

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=20030610112137.24146.qmail@web41511.mail.yahoo.com \
    --to=janzizka@yahoo.com \
    --cc=cgen@sources.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).