* fold-const.c (fold): Also handle EXACT_DIV_EXPR when folding
X/C1 cmpop C2.
From-SVN: r93121
+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
/* 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))