Re: GCC 4.1.2 generates different pentium instructions

2007-03-22 Thread Ian Lance Taylor
fafa <[EMAIL PROTECTED]> writes: > >> > I noticed that G++ 4.1.2 (on a Pentium 4) generates different > >> instructions > >> > for > >> > lea0x0(%esi),%esi > >> > or > >> > lea0x0(%edi),%edi > >> > with the same meaning but different encoding depending on the switch > >> > "-momit-leaf

Re: GCC 4.1.2 generates different pentium instructions

2007-03-22 Thread Mike Stump
On Mar 22, 2007, at 12:03 PM, fafa wrote: I see. But why not simple "nop" instructions ? They are the wrong size or too slow. Anyway, this is the wrong list for such questions generally. This list is for developers of gcc.

Re: GCC 4.1.2 generates different pentium instructions

2007-03-22 Thread fafa
Am 21.03.2007, 23:38 Uhr, schrieb Ian Lance Taylor <[EMAIL PROTECTED]>: "H. J. Lu" <[EMAIL PROTECTED]> writes: On Wed, Mar 21, 2007 at 09:19:44PM +0100, fafa wrote: > Hi all, > > I noticed that G++ 4.1.2 (on a Pentium 4) generates different instructions > for > lea0x0(%esi),%esi > or

Re: GCC 4.1.2 generates different pentium instructions

2007-03-21 Thread Ian Lance Taylor
"H. J. Lu" <[EMAIL PROTECTED]> writes: > On Wed, Mar 21, 2007 at 09:19:44PM +0100, fafa wrote: > > Hi all, > > > > I noticed that G++ 4.1.2 (on a Pentium 4) generates different instructions > > for > > lea0x0(%esi),%esi > > or > > lea0x0(%edi),%edi > > with the same meaning but diff

Re: GCC 4.1.2 generates different pentium instructions

2007-03-21 Thread H. J. Lu
On Wed, Mar 21, 2007 at 09:19:44PM +0100, fafa wrote: > Hi all, > > I noticed that G++ 4.1.2 (on a Pentium 4) generates different instructions > for > lea0x0(%esi),%esi > or > lea0x0(%edi),%edi > with the same meaning but different encoding depending on the switch > "-momit-leaf-fram

GCC 4.1.2 generates different pentium instructions

2007-03-21 Thread fafa
Hi all, I noticed that G++ 4.1.2 (on a Pentium 4) generates different instructions for lea0x0(%esi),%esi or lea0x0(%edi),%edi with the same meaning but different encoding depending on the switch "-momit-leaf-frame-pointer". If I compile and "objdump" a short function with "-O2" I