Summary: | [x86-64] Convert load to lea | ||
---|---|---|---|
Product: | binutils | Reporter: | H.J. Lu <hjl.tools> |
Component: | gold | Assignee: | Cary Coutant <ccoutant> |
Status: | NEW --- | ||
Severity: | normal | CC: | ian |
Priority: | P2 | ||
Version: | 2.26 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: |
Description
H.J. Lu
2014-11-24 16:01:33 UTC
The master branch has been updated by Ilya Tocar <tocarip@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1fa29f10602cd0ab395e0f83c9d87ab160b0df8a commit 1fa29f10602cd0ab395e0f83c9d87ab160b0df8a Author: Ilya Tocar <ilya.tocar@intel.com> Date: Mon Apr 6 12:37:34 2015 +0300 [Gold,x86_64] Convert mov foo@GOTPCREL(%rip), %reg to lea foo(%rip), %reg 2015-04-06 Ilya Tocar <ilya.tocar@intel.com> PR gold/17641 * x86_64.cc (Target_x86_64::can_convert_mov_to_lea): New. (Target_x86_64::Scan::local): Don't create GOT entry, when we can convert mov to lea. (Target_x86_64::Scan::global): Ditto. (Target_x86_64::Relocate::relocate): Convert mov foo@GOTPCREL(%rip), %reg to lea foo(%rip), %reg if possible. * testsuite/Makefile.am (x86_64_mov_to_lea): New test. * testsuite/x86_64_mov_to_lea1.s: New. * testsuite/x86_64_mov_to_lea2.s: Ditto. * testsuite/x86_64_mov_to_lea3.s: Ditto. * testsuite/x86_64_mov_to_lea4.s: Ditto. * testsuite/x86_64_mov_to_lea.sh: Ditto. --- |