diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-11 18:40:06 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-11 18:40:06 +0000 |
commit | 6d2e6772be45c588ab03d9120d3750cf32663208 (patch) | |
tree | eef37df7d790e46f4d8731bcc23f16cbefe698fb | |
parent | a1ea41e0bdf144e293a80c210a8dad11bef2f2ad (diff) | |
download | gcc-6d2e6772be45c588ab03d9120d3750cf32663208.tar.gz |
* tree.def (REDUC_PLUS_EXPR): Fix up comment.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192377 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/tree.def | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a4bc0e417f5..6105455423c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,7 @@ 2012-10-11 Jakub Jelinek <jakub@redhat.com> + * tree.def (REDUC_PLUS_EXPR): Fix up comment. + * fold-const.c (fold_unary_loc): Handle REDUC_MIN_EXPR, REDUC_MAX_EXPR and REDUC_PLUS_EXPR. diff --git a/gcc/tree.def b/gcc/tree.def index 70188ff0524..0f470006a70 100644 --- a/gcc/tree.def +++ b/gcc/tree.def @@ -1093,8 +1093,11 @@ DEFTREECODE (TRANSACTION_EXPR, "transaction_expr", tcc_expression, 1) Operations that take a vector of elements and "reduce" it to a scalar result (e.g. summing the elements of the vector, finding the minimum over the vector elements, etc). - Operand 0 is a vector; the first element in the vector has the result. - Operand 1 is a vector. */ + Operand 0 is a vector. + The expression returns a vector of the same type, with the first + element in the vector holding the result of the reduction of all elements + of the operand. The content of the other elements in the returned vector + is undefined. */ DEFTREECODE (REDUC_MAX_EXPR, "reduc_max_expr", tcc_unary, 1) DEFTREECODE (REDUC_MIN_EXPR, "reduc_min_expr", tcc_unary, 1) DEFTREECODE (REDUC_PLUS_EXPR, "reduc_plus_expr", tcc_unary, 1) |