From: Richard Biener Date: Tue, 7 Nov 2017 12:52:35 +0000 (+0000) Subject: match.pd: Fix build. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=56ccfbd6085be730876ebab31f865e4499b27067;p=gcc.git match.pd: Fix build. 2017-11-07 Richard Biener * match.pd: Fix build. From-SVN: r254498 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2fb808b5dd0..f81b5d81567 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-11-07 Richard Biener + + * match.pd: Fix build. + 2017-11-07 Wilco Dijkstra Jackson Woodruff diff --git a/gcc/match.pd b/gcc/match.pd index 903c06530be..4d56847d688 100644 --- a/gcc/match.pd +++ b/gcc/match.pd @@ -615,7 +615,7 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT) (simplify (lshift integer_onep@0 (minus@1 INTEGER_CST@2 @3)) (if (INTEGRAL_TYPE_P (type) - && wi::eq_p (@2, TYPE_PRECISION (type) - 1) + && wi::eq_p (wi::to_wide (@2), TYPE_PRECISION (type) - 1) && single_use (@1)) (if (TYPE_UNSIGNED (type)) (rshift (lshift @0 @2) @3)