aboutsummaryrefslogtreecommitdiff
path: root/gcc/dojump.c
diff options
context:
space:
mode:
authorDavid Edelsohn <edelsohn@gnu.org>2005-05-09 14:43:09 +0000
committerDavid Edelsohn <edelsohn@gnu.org>2005-05-09 14:43:09 +0000
commita9e995a878f6b6b3c98b835cbb6ef68dfb9c040f (patch)
tree28ef4c07c8be640f68d6db700ea610c1e924f11d /gcc/dojump.c
parent37d2334f3cca5c6bf01347d57727f3a93f3790a0 (diff)
* dojump.c (do_jump, MINUS_EXPR): Build NE_EXPR and fall through
to NE_EXPR case. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@99443 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dojump.c')
-rw-r--r--gcc/dojump.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/gcc/dojump.c b/gcc/dojump.c
index c274a6ecff4..87efb170f26 100644
--- a/gcc/dojump.c
+++ b/gcc/dojump.c
@@ -207,14 +207,6 @@ do_jump (tree exp, rtx if_false_label, rtx if_true_label)
do_jump (TREE_OPERAND (exp, 0), if_false_label, if_true_label);
break;
- case MINUS_EXPR:
- /* Nonzero iff operands of minus differ. */
- do_compare_and_jump (build2 (NE_EXPR, TREE_TYPE (exp),
- TREE_OPERAND (exp, 0),
- TREE_OPERAND (exp, 1)),
- NE, NE, if_false_label, if_true_label);
- break;
-
case BIT_AND_EXPR:
/* fold_single_bit_test() converts (X & (1 << C)) into (X >> C) & 1.
See if the former is preferred for jump tests and restore it
@@ -369,6 +361,12 @@ do_jump (tree exp, rtx if_false_label, rtx if_true_label)
break;
}
+ case MINUS_EXPR:
+ /* Nonzero iff operands of minus differ. */
+ exp = build2 (NE_EXPR, TREE_TYPE (exp),
+ TREE_OPERAND (exp, 0),
+ TREE_OPERAND (exp, 1));
+ /* FALLTHRU */
case NE_EXPR:
{
tree inner_type = TREE_TYPE (TREE_OPERAND (exp, 0));