* tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
0xff to uint64_t before shifting it up.
From-SVN: r211837
+2014-06-20 Jakub Jelinek <jakub@redhat.com>
+
+ * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
+ 0xff to uint64_t before shifting it up.
+
2014-06-20 Julian Brown <julian@codesourcery.com>
Chung-Lin Tang <cltang@codesourcery.com>
break;
case RSHIFT_EXPR:
/* Arithmetic shift of signed type: result is dependent on the value. */
- if (!TYPE_UNSIGNED (n->type) && (n->n & (0xff << (bitsize - 8))))
+ if (!TYPE_UNSIGNED (n->type)
+ && (n->n & ((uint64_t) 0xff << (bitsize - 8))))
return false;
n->n >>= count;
break;
old_type_size = TYPE_PRECISION (n->type);
if (!TYPE_UNSIGNED (n->type)
&& type_size > old_type_size
- && n->n & (0xff << (old_type_size - 8)))
+ && n->n & ((uint64_t) 0xff << (old_type_size - 8)))
return NULL;
if (type_size / BITS_PER_UNIT < (int)(sizeof (int64_t)))