Commit 2d411f1d by Marc Glisse Committed by Marc Glisse

expr.c (do_store_flag): Remove duplicated code.

2012-09-23  Marc Glisse  <marc.glisse@inria.fr>

	* expr.c (do_store_flag): Remove duplicated code.

From-SVN: r191653
parent 4fd97a63
2012-09-23 Marc Glisse <marc.glisse@inria.fr>
* expr.c (do_store_flag): Remove duplicated code.
2012-09-22 Segher Boessenkool <segher@kernel.crashing.org>
* config/rs6000/predicates.md (altivec_register_operand,
......
......@@ -10687,17 +10687,6 @@ do_store_flag (sepops ops, rtx target, enum machine_mode mode)
return expand_vec_cond_expr (ops->type, ifexp, if_true, if_false, target);
}
/* For vector typed comparisons emit code to generate the desired
all-ones or all-zeros mask. Conveniently use the VEC_COND_EXPR
expander for this. */
if (TREE_CODE (ops->type) == VECTOR_TYPE)
{
tree ifexp = build2 (ops->code, ops->type, arg0, arg1);
tree if_true = constant_boolean_node (true, ops->type);
tree if_false = constant_boolean_node (false, ops->type);
return expand_vec_cond_expr (ops->type, ifexp, if_true, if_false, target);
}
/* Get the rtx comparison code to use. We know that EXP is a comparison
operation of some type. Some comparisons against 1 and -1 can be
converted to comparisons with zero. Do so here so that the tests
......
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