This is the mail archive of the cgen@sourceware.org mailing list for the CGEN project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Assembler syntax with embedded spaces


On Jan 8, 2008 3:32 PM, Dave Brolley <brolley@redhat.com> wrote:
> CGEN will likely have problems with a prefix containing whitespace, i.e.
> 'fd '. You will probably have to code 2 versions of the insn(s), one
> with the prefix and one without. pmacros may be useful for you here in
> order to reduce duplicate typing.

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]