diff --git a/gcc/match.pd b/gcc/match.pd index 01f81b063f9adf7c34c4a8fcf5be8a672f7c5f6e..01aef489c84be7de82edf144198202a65e0562c9 100644 --- a/gcc/match.pd +++ b/gcc/match.pd @@ -3347,8 +3347,7 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT) (if (integer_onep (@1)) (convert (convert:boolean_type_node @0))) /* a ? powerof2cst : 0 -> a << (log2(powerof2cst)) */ - (if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (TREE_TYPE (@1)) - && integer_pow2p (@1)) + (if (INTEGRAL_TYPE_P (type) && integer_pow2p (@1)) (with { tree shift = build_int_cst (integer_type_node, tree_log2 (@1)); }