diff options
author | Richard Henderson <rth@redhat.com> | 2012-07-10 01:23:39 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2012-07-10 01:23:39 -0700 |
commit | 3f30a9a6aabcc7408bec1e42736889e3edd9f289 (patch) | |
tree | 3004b5ca9b3236230ebbc1657f1529e32ff03d51 /gcc/tree-pretty-print.c | |
parent | e53a3e778e70af499292522144fb8d4bea5279cb (diff) | |
download | gcc-3f30a9a6aabcc7408bec1e42736889e3edd9f289.zip gcc-3f30a9a6aabcc7408bec1e42736889e3edd9f289.tar.gz gcc-3f30a9a6aabcc7408bec1e42736889e3edd9f289.tar.bz2 |
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.
From-SVN: r189403
Diffstat (limited to 'gcc/tree-pretty-print.c')
-rw-r--r-- | gcc/tree-pretty-print.c | 32 |
1 files changed, 9 insertions, 23 deletions
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index f418d39..cdf3f28 100644 --- a/gcc/tree-pretty-print.c +++ b/gcc/tree-pretty-print.c @@ -602,6 +602,7 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags, tree op0, op1; const char *str; bool is_expr; + enum tree_code code; if (node == NULL_TREE) return spc; @@ -614,7 +615,8 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags, if ((flags & TDF_LINENO) && EXPR_HAS_LOCATION (node)) dump_location (buffer, EXPR_LOCATION (node)); - switch (TREE_CODE (node)) + code = TREE_CODE (node); + switch (code) { case ERROR_MARK: pp_string (buffer, "<<< error >>>"); @@ -2336,31 +2338,15 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags, break; case VEC_WIDEN_MULT_HI_EXPR: - pp_string (buffer, " VEC_WIDEN_MULT_HI_EXPR < "); - dump_generic_node (buffer, TREE_OPERAND (node, 0), spc, flags, false); - pp_string (buffer, ", "); - dump_generic_node (buffer, TREE_OPERAND (node, 1), spc, flags, false); - pp_string (buffer, " > "); - break; - case VEC_WIDEN_MULT_LO_EXPR: - pp_string (buffer, " VEC_WIDEN_MULT_LO_EXPR < "); - dump_generic_node (buffer, TREE_OPERAND (node, 0), spc, flags, false); - pp_string (buffer, ", "); - dump_generic_node (buffer, TREE_OPERAND (node, 1), spc, flags, false); - pp_string (buffer, " > "); - break; - + case VEC_WIDEN_MULT_EVEN_EXPR: + case VEC_WIDEN_MULT_ODD_EXPR: case VEC_WIDEN_LSHIFT_HI_EXPR: - pp_string (buffer, " VEC_WIDEN_LSHIFT_HI_EXPR < "); - dump_generic_node (buffer, TREE_OPERAND (node, 0), spc, flags, false); - pp_string (buffer, ", "); - dump_generic_node (buffer, TREE_OPERAND (node, 1), spc, flags, false); - pp_string (buffer, " > "); - break; - case VEC_WIDEN_LSHIFT_LO_EXPR: - pp_string (buffer, " VEC_WIDEN_LSHIFT_HI_EXPR < "); + pp_character (buffer, ' '); + for (str = tree_code_name [code]; *str; str++) + pp_character (buffer, TOUPPER (*str)); + pp_string (buffer, " < "); dump_generic_node (buffer, TREE_OPERAND (node, 0), spc, flags, false); pp_string (buffer, ", "); dump_generic_node (buffer, TREE_OPERAND (node, 1), spc, flags, false); |