diff --git a/gcc/match.pd b/gcc/match.pd
index 1bb936fc4010f98f24bb97671350e8432c55b347..f5fec6342798c47b7efae5b8648f164d3c7d693b 100644
--- a/gcc/match.pd
+++ b/gcc/match.pd
@@ -4804,7 +4804,7 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT)
     (if (!HONOR_SIGNED_ZEROS (type))
      @1))
   (simplify
-   (cnd (cmp @0 zerop) integer_zerop (negate@1 @0))
+   (cnd (cmp @0 zerop) zerop (negate@1 @0))
     (if (!HONOR_SIGNED_ZEROS (type))
      @1))
  )