[PATCH] Fix typo in recent match.pd pattern

Richard Biener rguenther@suse.de
Tue Sep 12 13:20:00 GMT 2017


Bootstrapped and tested on x86_64-unknown-linux-gnu, applied.

Richard.

2017-09-12  Richard Biener  <rguenther@suse.de>

	PR middle-end/82149
	* match.pd ((FTYPE) N CMP CST): Fix typo.

Index: gcc/match.pd
===================================================================
--- gcc/match.pd	(revision 252002)
+++ gcc/match.pd	(working copy)
@@ -2916,7 +2916,7 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT)
 	  -fno-signaling-nans.  */
        bool exception_p
          = real_isnan (cst) && (cst->signalling
-				|| (cmp != EQ_EXPR || cmp != NE_EXPR));
+				|| (cmp != EQ_EXPR && cmp != NE_EXPR));
        /* INT?_MIN is power-of-two so it takes
 	  only one mantissa bit.  */
        bool signed_p = isign == SIGNED;



More information about the Gcc-patches mailing list