This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Add vcond_gen_code optab and expand VEC_COND_EXPR
On Mon, Sep 27, 2004 at 08:30:00AM -0700, Devang Patel wrote:
> * expr.c (expand_expr_real_1): Handle VEC_COND_EXPR.
> * genopinit.c (optabs): New entry for vcond_gen_code and
> vcondu_gen_code.
> * optabs.c (vcond_gen_code, vcondu_gen_code): New optabs.
> (get_rtx_code): New function.
> (vector_compare_rtx): New function.
> (init_optabs): Initialize vcond_gen_code and vcondu_gen_code.
> (expand_vec_cond_expr_p): New function.
> (expand_vec_cond_expr): New function.
> (get_vcond_icode): New function.
> * optabs.h (expand_vec_cond_expr, expand_vec_cond_expr_p): New
> externs.
> (vcond_gen_code, vcondu_gen_code): Same.
Ok.
r~