aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorIlya Enkovich <enkovich.gnu@gmail.com>2015-11-12 11:38:24 +0000
committerIlya Enkovich <ienkovich@gcc.gnu.org>2015-11-12 11:38:24 +0000
commit3095f7c6ebd5863450d82f11a5ca25c7b06581fe (patch)
tree38623963fab2b1d877090d1dd3e94e8618e36f71 /gcc/expr.c
parente9ea8f9e56c95c1a36ca24b365de5c2bbb1dfe2a (diff)
downloadgcc-3095f7c6ebd5863450d82f11a5ca25c7b06581fe.zip
gcc-3095f7c6ebd5863450d82f11a5ca25c7b06581fe.tar.gz
gcc-3095f7c6ebd5863450d82f11a5ca25c7b06581fe.tar.bz2
expr.c (do_store_flag): Expand vector comparison as VEC_COND_EXPR if...
gcc/ * expr.c (do_store_flag): Expand vector comparison as VEC_COND_EXPR if vector comparison is not supported by target. gcc/testsuite/ * gcc.dg/pr68286.c: New test. From-SVN: r230238
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 03936ee..bd43dc4 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -11128,7 +11128,8 @@ do_store_flag (sepops ops, rtx target, machine_mode mode)
if (TREE_CODE (ops->type) == VECTOR_TYPE)
{
tree ifexp = build2 (ops->code, ops->type, arg0, arg1);
- if (VECTOR_BOOLEAN_TYPE_P (ops->type))
+ if (VECTOR_BOOLEAN_TYPE_P (ops->type)
+ && expand_vec_cmp_expr_p (TREE_TYPE (arg0), ops->type))
return expand_vec_cmp_expr (ops->type, ifexp, target);
else
{