* regmove.c (copy_src_to_dest): Check that modes match.

From-SVN: r22460
This commit is contained in:
J"orn Rennecke 1998-09-17 04:27:27 +00:00 committed by Joern Rennecke
parent fbe39e483d
commit 9d2106a4a4
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Thu Sep 17 12:24:33 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
* regmove.c (copy_src_to_dest): Check that modes match.
Wed Sep 16 22:10:42 1998 Robert Lipe <robertl@dgii.com>
* config/i386/sco5.h (SUPPORTS_WEAK): True only if targeting ELF.

View file

@ -617,7 +617,8 @@ copy_src_to_dest (insn, src, dest, loop_depth)
&& GET_CODE (dest) == REG
&& REG_LIVE_LENGTH (REGNO (dest)) > 0
&& (set = single_set (insn)) != NULL_RTX
&& !reg_mentioned_p (dest, SET_SRC (set)))
&& !reg_mentioned_p (dest, SET_SRC (set))
&& GET_MODE (src) == GET_MODE (dest))
{
int old_num_regs = reg_rtx_no;