This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: ia32 is dead, long live ia32
- From: Rask Ingemann Lambertsen <rask at sygehus dot dk>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 27 Aug 2006 20:25:14 +0200
- Subject: Re: ia32 is dead, long live ia32
> Wed Sep 1 21:13:48 1999 Richard Henderson <rth@cygnus.com>
>
> Merge new ia32 backend from the branch!
>
> * i386.h, i386.c, i386.md, reg-stack.c, i386/unix.h: Many changes.
> See ChangeLog.P2 on new_ia32_branch for details.
> Index: gcc/config/i386/i386.c
> ===================================================================
> --- gcc/config/i386/i386.c (revision 29043)
> +++ gcc/config/i386/i386.c (revision 29044)
[...]
> +static int
> +ix86_decompose_address (addr, out)
> + register rtx addr;
> + struct ix86_address *out;
> +{
[...]
> + /* Special case: encode reg+reg instead of reg*2. */
> + if (!base && index && scale && scale == 2)
^^^^^^^^^^^^^^^^^^^
> + base = index, scale = 1;
It looks weird to check that scale is nonzero before checking that it is
two.
--
Rask Ingemann Lambertsen