diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-07-10 08:23:39 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-07-10 08:23:39 +0000 |
commit | 79a78f7f6b5c7e5d5971868f4569c19d3d6e8f12 (patch) | |
tree | 3004b5ca9b3236230ebbc1657f1529e32ff03d51 /gcc/optabs.h | |
parent | b82a98eec632cc9cfe703de10d4501d678ef64c1 (diff) | |
download | gcc-79a78f7f6b5c7e5d5971868f4569c19d3d6e8f12.tar.gz |
Add VEC_WIDEN_MULT_EVEN/ODD_EXPR
* tree.def (VEC_WIDEN_MULT_EVEN_EXPR, VEC_WIDEN_MULT_ODD_EXPR): New.
* cfgexpand.c (expand_debug_expr): Handle them.
* expr.c (expand_expr_real_2): Likewise.
* fold-const.c (fold_binary_loc): Likewise.
* gimple-pretty-print.c (dump_binary_rhs): Likewise.
* optabs.c (optab_for_tree_code): Likewise.
* tree-cfg.c (verify_gimple_assign_binary): Likewise.
* tree-inline.c (estimate_operator_cost): Likewise.
* tree-pretty-print.c (dump_generic_node): Likewise.
* tree.c (commutative_tree_code): Likewise.
* tree-vect-generic.c (expand_vector_operations_1): Likewise.
Handle type change before looking up optab.
* optabs.h (OTI_vec_widen_umult_even, OTI_vec_widen_umult_odd): New.
(OTI_vec_widen_smult_even, OTI_vec_widen_smult_odd): New.
(vec_widen_umult_even_optab, vec_widen_umult_odd_optab): New.
(vec_widen_smult_even_optab, vec_widen_smult_odd_optab): New.
* genopinit.c (optabs): Initialize them.
* doc/md.texi: Document them.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@189403 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/optabs.h')
-rw-r--r-- | gcc/optabs.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gcc/optabs.h b/gcc/optabs.h index d87aff81c93..37a6bfd9415 100644 --- a/gcc/optabs.h +++ b/gcc/optabs.h @@ -340,12 +340,16 @@ enum optab_index OTI_vec_shr, /* Extract specified elements from vectors, for vector load. */ OTI_vec_realign_load, - /* Widening multiplication. - The high/low part of the resulting vector of products is returned. */ + /* Widening multiplication. The high/low/even/odd part of the + resulting vector of products is returned. */ OTI_vec_widen_umult_hi, OTI_vec_widen_umult_lo, OTI_vec_widen_smult_hi, OTI_vec_widen_smult_lo, + OTI_vec_widen_umult_even, + OTI_vec_widen_umult_odd, + OTI_vec_widen_smult_even, + OTI_vec_widen_smult_odd, /* Widening shift left. The high/low part of the resulting vector is returned. */ OTI_vec_widen_ushiftl_hi, @@ -565,6 +569,10 @@ enum optab_index #define vec_widen_umult_lo_optab (&optab_table[OTI_vec_widen_umult_lo]) #define vec_widen_smult_hi_optab (&optab_table[OTI_vec_widen_smult_hi]) #define vec_widen_smult_lo_optab (&optab_table[OTI_vec_widen_smult_lo]) +#define vec_widen_umult_even_optab (&optab_table[OTI_vec_widen_umult_even]) +#define vec_widen_umult_odd_optab (&optab_table[OTI_vec_widen_umult_odd]) +#define vec_widen_smult_even_optab (&optab_table[OTI_vec_widen_smult_even]) +#define vec_widen_smult_odd_optab (&optab_table[OTI_vec_widen_smult_odd]) #define vec_widen_ushiftl_hi_optab (&optab_table[OTI_vec_widen_ushiftl_hi]) #define vec_widen_ushiftl_lo_optab (&optab_table[OTI_vec_widen_ushiftl_lo]) #define vec_widen_sshiftl_hi_optab (&optab_table[OTI_vec_widen_sshiftl_hi]) |