Commit 351bae3d by Falk Hueffner Committed by Falk Hueffner

fold-const.c (fold): Also handle EXACT_DIV_EXPR when folding X/C1 cmpop C2.

	* fold-const.c (fold): Also handle EXACT_DIV_EXPR when folding
	X/C1 cmpop C2.

From-SVN: r93121
parent 7142ae77
2005-01-09 Falk Hueffner <falk@debian.org>
* fold-const.c (fold): Also handle EXACT_DIV_EXPR when folding
X/C1 cmpop C2.
2005-01-09 David Edelsohn <edelsohn@gnu.org>
PR target/18720
......
......@@ -8965,7 +8965,8 @@ fold (tree expr)
/* We can fold X/C1 op C2 where C1 and C2 are integer constants
into a single range test. */
if (TREE_CODE (arg0) == TRUNC_DIV_EXPR
if ((TREE_CODE (arg0) == TRUNC_DIV_EXPR
|| TREE_CODE (arg0) == EXACT_DIV_EXPR)
&& TREE_CODE (arg1) == INTEGER_CST
&& TREE_CODE (TREE_OPERAND (arg0, 1)) == INTEGER_CST
&& !integer_zerop (TREE_OPERAND (arg0, 1))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment