This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


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

Re: Error: suffix or operands invalid for `bswap'


On Wed, 23 Jun 1999, Alexander Sokolov wrote:
> At least openssl and international kernel patch use bswapl. Rejecting
> this syntax causes compiling failure. On the other hand "bswapl %eax"
> is no less legal than "pushl %eax" or "addl %eax,%ebx" allowed in 2.9.4
> and if you disallow l suffix for bswap you should also do it for all the
> instructions with 32-bit regs.

The difference is that there are "pushw", "addw", and "addb" instructions,
but no "bswapw".  In saying this, I'm not arguing against restoring bswapl
to legal status, just pointing out that "bswap" is somewhat special.

I'll check a patch in tonight to fix bswap, unless anyone reading this
list has a violent objection.  I'm also curious to know whether Unixware
or other AT&T format x86 assemblers accept "bswapl".  Would someone with
access to such an assembler please try it out?


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