aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/match.pd1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/match.pd b/gcc/match.pd
index 869b26d..71cf6f9 100644
--- a/gcc/match.pd
+++ b/gcc/match.pd
@@ -6210,6 +6210,7 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT)
(simplify
(convert (copysigns (convert@2 @0) (convert @1)))
(if (optimize
+ && !HONOR_SNANS (@2)
&& types_match (type, TREE_TYPE (@0))
&& types_match (type, TREE_TYPE (@1))
&& TYPE_PRECISION (type) < TYPE_PRECISION (TREE_TYPE (@2))