diff --git a/gcc/ChangeLog b/gcc/ChangeLog index da574002f5b..bc0633231bf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2000-09-18 Jim Wilson + * unroll.c (final_giv_value): Pass increment through + extend_value_for_giv before passing it to emit_iv_add_mult. + * function.c (fixup_var_refs_1, case ZERO_EXTRACT): If we have a paradoxical subreg, then directly substitute the replacement and return. diff --git a/gcc/unroll.c b/gcc/unroll.c index 255e1039336..9d9b2eaa966 100644 --- a/gcc/unroll.c +++ b/gcc/unroll.c @@ -3349,7 +3349,8 @@ final_giv_value (loop, v) /* Put the final biv value in tem. */ tem = gen_reg_rtx (v->mode); record_base_value (REGNO (tem), bl->biv->add_val, 0); - emit_iv_add_mult (increment, GEN_INT (n_iterations), + emit_iv_add_mult (extend_value_for_giv (v, increment), + GEN_INT (n_iterations), extend_value_for_giv (v, bl->initial_value), tem, insert_before);