This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH][match-and-simplify] Some FP runtime fails
- From: Richard Biener <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 6 Aug 2014 12:09:29 +0200 (CEST)
- Subject: [PATCH][match-and-simplify] Some FP runtime fails
- Authentication-results: sourceware.org; auth=none
Fixed with the following, committed. Incidentially this is the
only constant folding pattern that also applies to floats - otherwise
the use of the integer_* predicates prevent that.
Richard.
2014-08-06 Richard Biener <rguenther@suse.de>
* match-constant-folding.pd (minus @0 @0): Restrict to
modes without NaNs.
Index: gcc/match-constant-folding.pd
===================================================================
--- gcc/match-constant-folding.pd (revision 213651)
+++ gcc/match-constant-folding.pd (working copy)
@@ -24,6 +24,7 @@ along with GCC; see the file COPYING3.
(simplify
(minus @0 @0)
+ (if (!HONOR_NANS (TYPE_MODE (type))))
{ build_zero_cst (type); })
(simplify