Assembler syntax with embedded spaces

Dave Brolley brolley@redhat.com
Tue Jan 8 15:32:00 GMT 2008


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 hope this helps,
Dave

Will Newton wrote:

>Hi all,
>
>
>
>Is it possible to use CGEN to generate an assembler/disassembler for an
>
>assembler syntax with whitespace embedded in mnemonics, e.g.:
>
>
>
>FD ABS FX.0,FX.1
>
>
>
>Where "FD ABS" is the mnemonic (ABS) plus a prefix (FD). Currently my
>
>assembler says:
>
>
>
>unrecognized form of instruction `fd ABS FX.0,FX.1'
>
>
>
>Thanks,
>
>-
>
>This message is subject to Imagination Technologies' e-mail terms: http://www.imgtec.com/e-mail.htm
>
>-
>
>
>  
>



More information about the Cgen mailing list