aboutsummaryrefslogtreecommitdiff
path: root/gcc/regmove.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2003-06-30 00:51:45 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2003-06-29 22:51:45 +0000
commit41b3243ed3594cd369909e5d2770ebf277526b93 (patch)
treea93b7369bbf92d4b295f53fee4e3df3c3e1fcffa /gcc/regmove.c
parent64e97443585c1a9c6bb7dd963122f848cf781639 (diff)
downloadgcc-41b3243ed3594cd369909e5d2770ebf277526b93.zip
gcc-41b3243ed3594cd369909e5d2770ebf277526b93.tar.gz
gcc-41b3243ed3594cd369909e5d2770ebf277526b93.tar.bz2
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
Diffstat (limited to 'gcc/regmove.c')
-rw-r--r--gcc/regmove.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/regmove.c b/gcc/regmove.c
index 2639ebd..bafbe4c 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. */