bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/23854] 16-bit GOT access is incorrectly optimized


From: hjl.tools at gmail dot com
Subject: [Bug gas/23854] 16-bit GOT access is incorrectly optimized
Date: Mon, 05 Nov 2018 14:20:52 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=23854

--- Comment #22 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Stas Sergeev from comment #20)
> I disasmed and diffed the object files
> without and with your patch. I see a lot of:
> ---
> 597,598c597,598
> <      745:     8d 74 26 00             lea    0x0(%esi,%eiz,1),%esi
> <      749:     8d bc 27 00 00 00 00    lea    0x0(%edi,%eiz,1),%edi
> ---
> >      745:     8d b4 26 00 00 00 00    lea    0x0(%esi,%eiz,1),%esi
> >      74c:     8d 74 26 00             lea    0x0(%esi,%eiz,1),%esi
> ---
> 
> Is this correct, that it now applies lea to
> %esi twice? As %esi is used as both arg and
> result, I think it will be modified twice,
> and so I can't imagine those changes lead to
> an equivalent code.

These are NOPs.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]