From 56ccfbd6085be730876ebab31f865e4499b27067 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Tue, 7 Nov 2017 12:52:35 +0000 Subject: [PATCH] match.pd: Fix build. 2017-11-07 Richard Biener * match.pd: Fix build. From-SVN: r254498 --- gcc/ChangeLog | 4 ++++ gcc/match.pd | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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) -- 2.30.2