public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
* better handling of unknown operands
@ 2001-03-19 17:21 Ben Elliston
  2001-03-20 23:23 ` Ben Elliston
  0 siblings, 1 reply; 12+ messages in thread
From: Ben Elliston @ 2001-03-19 17:21 UTC (permalink / raw)
  To: cgen

I observed some undesirable behavior in cgen this morning.  Before I
set out to fix it, I'd like to discuss possible solutions.  When
defining the assembly syntax string for an instruction, I typo'd the
following:

	" .. $(rs) .."
rather than:
	" .. ($rs) .."

It looks like the parser encountered the `$', advanced to the `(' and
stopped.  In the generated code, I see a reference to OP () which is
wrong.

More generally, shouldn't cgen complain about any operand that appears
in the syntax string but not the field format list, or vice-versa?

Ben

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2001-03-26 14:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-19 17:21 better handling of unknown operands Ben Elliston
2001-03-20 23:23 ` Ben Elliston
2001-03-21  5:03   ` Frank Ch. Eigler
2001-03-21 13:37     ` Ben Elliston
2001-03-21 14:01       ` Frank Ch. Eigler
2001-03-21 14:15         ` Ben Elliston
2001-03-21 15:58         ` Doug Evans
2001-03-21 16:03           ` Ben Elliston
2001-03-21 19:30         ` matthew green
2001-03-26  5:18           ` Ben Elliston
2001-03-26  8:05             ` Doug Evans
2001-03-26 14:04               ` Ben Elliston

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).