Commit f46e5baa by Jeff Law Committed by Jeff Law

fold-const.c (invert_truthvalue): Do not call invert_tree_comparison for…

fold-const.c (invert_truthvalue): Do not call invert_tree_comparison for unordered comparison codes.


        * fold-const.c (invert_truthvalue): Do not call invert_tree_comparison
        for unordered comparison codes.

From-SVN: r78103
parent 117def13
2004-02-19 Jeff Law <law@redhat.com>
* fold-const.c (invert_truthvalue): Do not call invert_tree_comparison
for unordered comparison codes.
2004-02-19 Ian Lance Taylor <ian@wasabisystems.com>
* reload1.c (reload): Correct comment.
......
......@@ -2636,6 +2636,14 @@ invert_truthvalue (tree arg)
&& code != NE_EXPR
&& code != EQ_EXPR)
return build1 (TRUTH_NOT_EXPR, type, arg);
else if (code == UNORDERED_EXPR
|| code == ORDERED_EXPR
|| code == UNEQ_EXPR
|| code == UNLT_EXPR
|| code == UNLE_EXPR
|| code == UNGT_EXPR
|| code == UNGE_EXPR)
return build1 (TRUTH_NOT_EXPR, type, arg);
else
return build (invert_tree_comparison (code), type,
TREE_OPERAND (arg, 0), TREE_OPERAND (arg, 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