diff options
Diffstat (limited to 'gcc/rtlanal.cc')
-rw-r--r-- | gcc/rtlanal.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rtlanal.cc b/gcc/rtlanal.cc index e1824bfefb7..c436c640c37 100644 --- a/gcc/rtlanal.cc +++ b/gcc/rtlanal.cc @@ -3390,7 +3390,7 @@ replace_rtx (rtx x, rtx from, rtx to, bool all_regs) { rtx new_rtx = replace_rtx (SUBREG_REG (x), from, to, all_regs); - if (CONST_INT_P (new_rtx)) + if (CONST_SCALAR_INT_P (new_rtx)) { x = simplify_subreg (GET_MODE (x), new_rtx, GET_MODE (SUBREG_REG (x)), @@ -3406,7 +3406,7 @@ replace_rtx (rtx x, rtx from, rtx to, bool all_regs) { rtx new_rtx = replace_rtx (XEXP (x, 0), from, to, all_regs); - if (CONST_INT_P (new_rtx)) + if (CONST_SCALAR_INT_P (new_rtx)) { x = simplify_unary_operation (ZERO_EXTEND, GET_MODE (x), new_rtx, GET_MODE (XEXP (x, 0))); |