combine.c (expand_field_assignment): Do not discard SUBREGs while computing nonzero_bits.

* combine.c (expand_field_assignment): Do not discard SUBREGs
while computing nonzero_bits.

From-SVN: r31304
This commit is contained in:
Alexandre Oliva 2000-01-10 19:56:15 +00:00 committed by Alexandre Oliva
parent 93e1dce9a1
commit b1e9c8a926
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2000-01-10 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
* combine.c (expand_field_assignment): Do not discard SUBREGs
while computing nonzero_bits.
2000-01-09 Nick Clifton <nickc@cygnus.com>
* config/arm/arm.c: Fix compile time warnings about signed vs

View File

@ -5656,6 +5656,8 @@ expand_field_assignment (x)
/* A SUBREG between two modes that occupy the same numbers of words
can be done by moving the SUBREG to the source. */
else if (GET_CODE (SET_DEST (x)) == SUBREG
/* We need SUBREGs to compute nonzero_bits properly. */
&& nonzero_sign_valid
&& (((GET_MODE_SIZE (GET_MODE (SET_DEST (x)))
+ (UNITS_PER_WORD - 1)) / UNITS_PER_WORD)
== ((GET_MODE_SIZE (GET_MODE (SUBREG_REG (SET_DEST (x))))