* tree.def (REDUC_PLUS_EXPR): Fix up comment.
authorJakub Jelinek <jakub@redhat.com>
Thu, 11 Oct 2012 18:40:06 +0000 (20:40 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 11 Oct 2012 18:40:06 +0000 (20:40 +0200)
From-SVN: r192377

gcc/ChangeLog
gcc/tree.def

index a4bc0e417f524ec14ec04e75b131de86a21ef04f..6105455423c4cd1d9962268c42b40d0b9a893284 100644 (file)
@@ -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.
 
index 70188ff052415061393c0291b2202cafe3001956..0f470006a70982b782d7cc860caf8067838ba96e 100644 (file)
@@ -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)