diff options
author | Ilya Enkovich <enkovich.gnu@gmail.com> | 2015-11-09 15:11:02 +0000 |
---|---|---|
committer | Ilya Enkovich <ienkovich@gcc.gnu.org> | 2015-11-09 15:11:02 +0000 |
commit | 0e657ecb98b8413b41975ddfce8e240186720977 (patch) | |
tree | 356c7ce476f9dfc1708d4f64fb523e2a036c35c9 /gcc/optabs.c | |
parent | 0b3ecf755196df79c795c8b9bbcb735adbb604d0 (diff) | |
download | gcc-0e657ecb98b8413b41975ddfce8e240186720977.zip gcc-0e657ecb98b8413b41975ddfce8e240186720977.tar.gz gcc-0e657ecb98b8413b41975ddfce8e240186720977.tar.bz2 |
optabs.c (expand_vec_cond_expr): Always get sign from type.
gcc/
* optabs.c (expand_vec_cond_expr): Always get sign from type.
* tree.c (wide_int_to_tree): Support negative values for boolean.
(build_nonstandard_boolean_type): Use signed type for booleans.
From-SVN: r230022
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r-- | gcc/optabs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c index fdcdc6a..44971ad 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -5365,7 +5365,6 @@ expand_vec_cond_expr (tree vec_cond_type, tree op0, tree op1, tree op2, op0a = TREE_OPERAND (op0, 0); op0b = TREE_OPERAND (op0, 1); tcode = TREE_CODE (op0); - unsignedp = TYPE_UNSIGNED (TREE_TYPE (op0a)); } else { @@ -5374,9 +5373,9 @@ expand_vec_cond_expr (tree vec_cond_type, tree op0, tree op1, tree op2, op0a = op0; op0b = build_zero_cst (TREE_TYPE (op0)); tcode = LT_EXPR; - unsignedp = false; } cmp_op_mode = TYPE_MODE (TREE_TYPE (op0a)); + unsignedp = TYPE_UNSIGNED (TREE_TYPE (op0a)); gcc_assert (GET_MODE_SIZE (mode) == GET_MODE_SIZE (cmp_op_mode) |