[RFC/RFA] Proper mnemonics for VIA PadLock (i386) instructions

Mark Kettenis mark.kettenis@xs4all.nl
Sat Apr 16 11:40:00 GMT 2005


   Date: Thu, 14 Apr 2005 10:55:55 +0930
   From: Alan Modra <amodra@bigpond.net.au>

   On Wed, Apr 13, 2005 at 03:20:25PM +0000, Thorsten Glaser wrote:
   > DOES it fail then?

   :)  Note that I carefully said "Something like" the example I posted.

   I know that we had trouble in the past with the assembler pre-processor
   stripping whitespace completely (see tc_symbol_chars), but it may be
   that this can't happen now for the mnemonic part of an assembly line.

All tc_symbol_chars does is add a few more characters, including '-'
to the LEX_IS_SYMBOL_COMPONENT "class".  Since the alphanumeric
characters are already marked as LEX_IS_SYMBOL_COMPONENT, is exactly
the reason why the whitespace isn't stripped.  It makes us go from
state 3 to state 9 to state 10, which outputs a space, so whitespace
around the mnemonic (which is considered to be the first operand in
presence of a prefix) is conserved (even if '-' is the first or last
character of the operand.

   If one of the proponents of this patch analyse app.c behaviour enough to
   give a reasonable level of confidence, I'll accept the patch.

Does this give enough confidence?

Mark



More information about the Binutils mailing list