diff options
Diffstat (limited to 'gcc/expmed.c')
-rw-r--r-- | gcc/expmed.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/gcc/expmed.c b/gcc/expmed.c index 53ff05b4a5f..a26ad0946a9 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -2760,15 +2760,12 @@ expand_mult_highpart (mode, op0, cnst1, target, unsignedp, max_cost) op1 = GEN_INT (trunc_int_for_mode (cnst1, mode)); - if (GET_MODE_BITSIZE (wider_mode) <= HOST_BITS_PER_INT) - wide_op1 = op1; - else - wide_op1 - = immed_double_const (cnst1, - (unsignedp - ? (HOST_WIDE_INT) 0 - : -(cnst1 >> (HOST_BITS_PER_WIDE_INT - 1))), - wider_mode); + wide_op1 + = immed_double_const (cnst1, + (unsignedp + ? (HOST_WIDE_INT) 0 + : -(cnst1 >> (HOST_BITS_PER_WIDE_INT - 1))), + wider_mode); /* expand_mult handles constant multiplication of word_mode or narrower. It does a poor job for large modes. */ |