aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Hutton <joel.hutton@arm.com>2020-12-10 11:54:03 +0000
committerJoel Hutton <joel.hutton@arm.com>2020-12-10 11:57:21 +0000
commit703d2ac06fbd228294b0db8d5fcc9a6a894487cc (patch)
tree6d11b2ef9bf4dcc38240046675c980af6e9a4460
parent76c09f2af9d8ab9c760d860626f069d12d86f0a9 (diff)
downloadgcc-703d2ac06fbd228294b0db8d5fcc9a6a894487cc.zip
gcc-703d2ac06fbd228294b0db8d5fcc9a6a894487cc.tar.gz
gcc-703d2ac06fbd228294b0db8d5fcc9a6a894487cc.tar.bz2
Add WIDEN_PLUS, WIDEN_MINUS pretty print
Add 'w+'/'w-' as WIDEN_PLUS/WIDEN_MINUS respectively. Add VEC_WIDEN_PLUS/MINUS_HI/LO<...> for VEC_WIDEN_PLUS/MINUS_HI/LO gcc/ChangeLog: * tree-pretty-print.c (dump_generic_node): Add case for VEC_WIDEN_(PLUS/MINUS)_(HI/LO)_EXPR and WIDEN_(PLUS/MINUS)_EXPR.
-rw-r--r--gcc/tree-pretty-print.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c
index 5a93c4d..ae4b898 100644
--- a/gcc/tree-pretty-print.c
+++ b/gcc/tree-pretty-print.c
@@ -2649,6 +2649,8 @@ dump_generic_node (pretty_printer *pp, tree node, int spc, dump_flags_t flags,
break;
/* Binary arithmetic and logic expressions. */
+ case WIDEN_PLUS_EXPR:
+ case WIDEN_MINUS_EXPR:
case WIDEN_SUM_EXPR:
case WIDEN_MULT_EXPR:
case MULT_EXPR:
@@ -3580,6 +3582,10 @@ dump_generic_node (pretty_printer *pp, tree node, int spc, dump_flags_t flags,
case VEC_SERIES_EXPR:
case VEC_WIDEN_MULT_HI_EXPR:
case VEC_WIDEN_MULT_LO_EXPR:
+ case VEC_WIDEN_PLUS_HI_EXPR:
+ case VEC_WIDEN_PLUS_LO_EXPR:
+ case VEC_WIDEN_MINUS_HI_EXPR:
+ case VEC_WIDEN_MINUS_LO_EXPR:
case VEC_WIDEN_MULT_EVEN_EXPR:
case VEC_WIDEN_MULT_ODD_EXPR:
case VEC_WIDEN_LSHIFT_HI_EXPR:
@@ -4097,6 +4103,12 @@ op_symbol_code (enum tree_code code)
case WIDEN_LSHIFT_EXPR:
return "w<<";
+ case WIDEN_PLUS_EXPR:
+ return "w+";
+
+ case WIDEN_MINUS_EXPR:
+ return "w-";
+
case POINTER_PLUS_EXPR:
return "+";