diff options
Diffstat (limited to 'gcc/combine.c')
-rw-r--r-- | gcc/combine.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/combine.c b/gcc/combine.c index a0157df..12f0ed8 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -9005,8 +9005,15 @@ try_widen_shift_mode (enum rtx_code code, rtx op, > (unsigned) (GET_MODE_BITSIZE (mode) - GET_MODE_BITSIZE (orig_mode))) return mode; - /* fall through */ + return orig_mode; + case LSHIFTRT: + /* Similarly here but with zero bits. */ + if (GET_MODE_BITSIZE (mode) <= HOST_BITS_PER_WIDE_INT + && (nonzero_bits (op, mode) & ~GET_MODE_MASK (orig_mode)) == 0) + return mode; + /* fall through */ + case ROTATE: return orig_mode; |