diff options
Diffstat (limited to 'gcc/postreload.c')
-rw-r--r-- | gcc/postreload.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/postreload.c b/gcc/postreload.c index cdfe7b7ddfa..b9d97174caf 100644 --- a/gcc/postreload.c +++ b/gcc/postreload.c @@ -304,12 +304,14 @@ reload_cse_simplify_set (rtx set, rtx insn) { case ZERO_EXTEND: result = wide_int (std::make_pair (this_rtx, GET_MODE (src))); - if (GET_MODE_PRECISION (GET_MODE (src)) > GET_MODE_PRECISION (word_mode)) + if (GET_MODE_PRECISION (GET_MODE (src)) + > GET_MODE_PRECISION (word_mode)) result = wi::zext (result, GET_MODE_PRECISION (word_mode)); break; case SIGN_EXTEND: result = wide_int (std::make_pair (this_rtx, GET_MODE (src))); - if (GET_MODE_PRECISION (GET_MODE (src)) > GET_MODE_PRECISION (word_mode)) + if (GET_MODE_PRECISION (GET_MODE (src)) + > GET_MODE_PRECISION (word_mode)) result = wi::sext (result, GET_MODE_PRECISION (word_mode)); break; default: |