This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH [5/n] X32: Supprot 32bit address
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 15 Jul 2011 14:49:55 +0200
- Subject: Re: PATCH [5/n] X32: Supprot 32bit address
- References: <20110709222042.GA4018@intel.com>
On Sun, Jul 10, 2011 at 12:20 AM, H.J. Lu <hongjiu.lu@intel.com> wrote:
> TARGET_MEM_REF only works on ptr_mode. ?That means base and index parts
> of x86 address operand in x32 mode may be in ptr_mode. ?This patch
> supports 32bit base and index parts in x32 mode. ?OK for trunk?
>
> Thanks.
>
>
> H.J.
> ---
> 2011-07-09 ?H.J. Lu ?<hongjiu.lu@intel.com>
>
> ? ? ? ?* config/i386/i386.c (ix86_simplify_base_index_disp): New.
> ? ? ? ?(ix86_decompose_address): Support 32bit address in x32 mode.
> ? ? ? ?(ix86_legitimate_address_p): Likewise.
> ? ? ? ?(ix86_fixup_binary_operands): Likewise.
Why don't you handle translations in TARGET_LEGITIMIZE_ADDRESS (or
maybe also LEGITIMIZE_RELOAD_ADDRESS) ?
Uros.