(cse_insn): Correctly check for two modes being the same number of

words.

From-SVN: r7292
This commit is contained in:
Richard Kenner 1994-05-13 15:12:01 -04:00
parent 95da80ce80
commit 6cdbaec41b
1 changed files with 3 additions and 2 deletions

View File

@ -7128,8 +7128,9 @@ cse_insn (insn, in_libcall_block)
already entered SRC and DEST of the SET in the table. */
if (GET_CODE (dest) == SUBREG
&& (GET_MODE_SIZE (GET_MODE (SUBREG_REG (dest))) / UNITS_PER_WORD
== GET_MODE_SIZE (GET_MODE (dest)) / UNITS_PER_WORD)
&& (((GET_MODE_SIZE (GET_MODE (SUBREG_REG (dest))) - 1)
/ UNITS_PER_WORD)
== (GET_MODE_SIZE (GET_MODE (dest)) - 1)/ UNITS_PER_WORD)
&& (GET_MODE_SIZE (GET_MODE (dest))
>= GET_MODE_SIZE (GET_MODE (SUBREG_REG (dest))))
&& sets[i].src_elt != 0)