aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.def
diff options
context:
space:
mode:
authorArtjoms Sinkarovs <artyom.shinkaroff@gmail.com>2011-08-29 11:55:45 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2011-08-29 11:55:45 +0000
commit544d960a12742dbe8c8e9a968764d4502b239a26 (patch)
treea6235b0de2204188ae68275b478b1d3c90038b41 /gcc/tree.def
parent776bebcdb0de9557b40aa5496c016588da845398 (diff)
downloadgcc-544d960a12742dbe8c8e9a968764d4502b239a26.zip
gcc-544d960a12742dbe8c8e9a968764d4502b239a26.tar.gz
gcc-544d960a12742dbe8c8e9a968764d4502b239a26.tar.bz2
20011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
Richard Guenther <rguenther@suse.de> * tree.h (constant_boolean_node): Adjust prototype. * fold-const.c (fold_convert_loc): Move aggregate conversion leeway down. (constant_boolean_node): Make value parameter boolean, add vector type handling. (fold_unary_loc): Use constant_boolean_node. (fold_binary_loc): Preserve types properly when folding COMPLEX_EXPR <__real x, __imag x>. * gimplify.c (gimplify_expr): Handle vector comparison. * tree.def (EQ_EXPR, ...): Document behavior on vector typed comparison. * tree-cfg.c (verify_gimple_comparison): Verify vector typed comparisons. From-SVN: r178209
Diffstat (limited to 'gcc/tree.def')
-rw-r--r--gcc/tree.def5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/tree.def b/gcc/tree.def
index d4b3cb9..ea255d5 100644
--- a/gcc/tree.def
+++ b/gcc/tree.def
@@ -704,7 +704,10 @@ DEFTREECODE (TRUTH_NOT_EXPR, "truth_not_expr", tcc_expression, 1)
The others are allowed only for integer (or pointer or enumeral)
or real types.
In all cases the operands will have the same type,
- and the value is always the type used by the language for booleans. */
+ and the value is either the type used by the language for booleans
+ or an integer vector type of the same size and with the same number
+ of elements as the comparison operands. True for a vector of
+ comparison results has all bits set while false is equal to zero. */
DEFTREECODE (LT_EXPR, "lt_expr", tcc_comparison, 2)
DEFTREECODE (LE_EXPR, "le_expr", tcc_comparison, 2)
DEFTREECODE (GT_EXPR, "gt_expr", tcc_comparison, 2)