This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR c/11420 (broken amd64 movabs*) (take 2)
On Mon, Jul 07, 2003 at 04:18:23PM +0200, Jakub Jelinek wrote:
> + mem = SET_SRC (set);
> + while (GET_CODE (mem) == SUBREG)
> + mem = SUBREG_REG (mem);
> + if (GET_CODE (mem) != MEM || XEXP (mem, 0) != op)
> + {
> + mem = SET_DEST (set);
> + while (GET_CODE (mem) == SUBREG)
> + mem = SUBREG_REG (mem);
> + if (GET_CODE (mem) != MEM || XEXP (mem, 0) != op)
> + abort ();
What is the logic behind doing it this way with op an rtx
instead of passing in an operand number and doing
mem = XEXP (set, opnum);
if (GET_CODE (mem) != MEM)
abort ();
and so forth?
r~