This is the mail archive of the
mailing list for the binutils project.
Re: [RFC/RFA] Proper mnemonics for VIA PadLock (i386) instructions
Date: Thu, 14 Apr 2005 10:55:55 +0930
From: Alan Modra <firstname.lastname@example.org>
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?