diff options
Diffstat (limited to 'gcc/reload1.c')
-rw-r--r-- | gcc/reload1.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/reload1.c b/gcc/reload1.c index db183819c85..7a82c07ef21 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -9157,7 +9157,9 @@ inc_for_reload (rtx reloadreg, rtx in, rtx value, int inc_amount) emit_insn (gen_add2_insn (reloadreg, inc)); emit_insn (gen_move_insn (incloc, reloadreg)); if (CONST_INT_P (inc)) - emit_insn (gen_add2_insn (reloadreg, GEN_INT (-INTVAL (inc)))); + emit_insn (gen_add2_insn (reloadreg, + gen_int_mode (-INTVAL (inc), + GET_MODE (reloadreg)))); else emit_insn (gen_sub2_insn (reloadreg, inc)); } |