From: Jan Hubicka Date: Sun, 29 Jun 2003 22:51:45 +0000 (+0200) Subject: regmove.c (regmove_optimize): Don't try to make src and dst match when they are in... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=41b3243ed3594cd369909e5d2770ebf277526b93;p=gcc.git regmove.c (regmove_optimize): Don't try to make src and dst match when they are in different modes. * regmove.c (regmove_optimize): Don't try to make src and dst match when they are in different modes. From-SVN: r68682 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 621e59c393f..3698caeddc3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Mon Jun 30 00:50:43 CEST 2003 Jan Hubicka + + * regmove.c (regmove_optimize): Don't try to make src and dst match + when they are in different modes. + Sun Jun 29 23:06:32 CEST 2003 Jan Hubicka * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2): Avoid diff --git a/gcc/regmove.c b/gcc/regmove.c index 2639ebd54f4..bafbe4c558c 100644 --- a/gcc/regmove.c +++ b/gcc/regmove.c @@ -1289,7 +1289,8 @@ regmove_optimize (f, nregs, regmove_dump_file) if (GET_CODE (dst) != REG || REGNO (dst) < FIRST_PSEUDO_REGISTER || REG_LIVE_LENGTH (REGNO (dst)) < 0 - || RTX_UNCHANGING_P (dst)) + || RTX_UNCHANGING_P (dst) + || GET_MODE (src) != GET_MODE (dst)) continue; /* If the operands already match, then there is nothing to do. */