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

Mark Kettenis mark.kettenis@xs4all.nl
Wed Apr 13 18:55:00 GMT 2005


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

   On Tue, Apr 12, 2005 at 10:43:10PM +0200, Mark Kettenis wrote:
   > Because there is already code out there that uses the hyphen.  The
   > reason for preferring the hyphenated names over the unhyphenated names
   > is that the former are used by the VIA documentation.

   I don't like the idea of putting '-' in mnemonic_chars.  I think it has
   a high likelihood of breaking other valid assembly.  The gas app.c code
   has a nasty habit of completely removing whitespace once past the
   mnemonic of an instruction, and it can get confused.  Something like

    addr16 mov -2,%eax

   might fail if '-' is a valid mnemonic char.

Well, it doesn't fail.  The patch to tc-i386.c to allow '-' as a
mnemonic char has been in the OpenBSD tree for more than a year now.
That means all major Open Source software has been compiled with it.
So I'd expect any problems with it would have surfaced by now.

Mark



More information about the Binutils mailing list