PATCH [1/n] addr32: Properly use Pmode and word_mode
H.J. Lu
hjl.tools@gmail.com
Fri Mar 2 20:30:00 GMT 2012
On Sat, Nov 12, 2011 at 9:32 AM, Uros Bizjak <ubizjak@gmail.com> wrote:
> On Sat, Nov 12, 2011 at 3:19 AM, H.J. Lu <hongjiu.lu@intel.com> wrote:
>
>> The current x32 implementation uses LEAs to convert 32bit address to
>> 64bit. However, we can use addr32 prefix to use 32bit address directly.
>> It improves performance by 5% in SPEC CPU 2K/2006. All changes are done
>> in x86 backend, except for a smaill unwind library assert change:
>>
>> http://gcc.gnu.org/ml/gcc-patches/2011-11/msg01555.html
>>
>> due to return column size difference.
>>
>> For x86-64, Pmode can be 32bit or 64bit, but word_mode is always 64bit.
>> push/pop only work on word_mode. Also string instructions take Pmode
>> pointers.
>>
>> I will submit a set of patches to use 32bit Pmode for x32. This is
>> the first patch to properly use Pmode and word_mode. It also adds
>> addr32 prefix to string instructions if needed. OK for trunk?
>
> Not for stage3.
>
> Uros.
Now trunk in stage1. The patch is at
http://gcc.gnu.org/ml/gcc-patches/2011-11/msg01572.html
OK for trunk?
Thanks.
--
H.J.
More information about the Gcc-patches
mailing list