diff mbox

[match-and-simplify] Some FP runtime fails

Message ID alpine.LSU.2.11.1408061208290.20733@zhemvz.fhfr.qr
State New
Headers show

Commit Message

Richard Biener Aug. 6, 2014, 10:09 a.m. UTC
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.
diff mbox

Patch

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