This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

objdump



Objdump disassembles wrongly:


  42:   0f af c2                imul   %edx,%eax
  90:   f7 ea                   imul   %edx,%eax

The first instruction is:   (eax * edx):31:0 => eax		(32*32 => 32)

The second instruction is:  eax * edx => tmp			(32*32 => 64)
			    tmp:31:0  => eax
			    tmp:63:32 => edx

Version of objdump is:

$ objdump --version
GNU objdump 2.9.5
Copyright 1997, 1998, 1999 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.


The commonly used syntax for the second is:

		imul	%edx

-- 
Frank


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