[PATCH] Fix PR c/11420 (broken amd64 movabs*) (take 2)
Richard Henderson
rth@redhat.com
Mon Jul 7 23:19:00 GMT 2003
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~
More information about the Gcc-patches
mailing list