diff options
author | ienkovich <ienkovich@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-11-12 11:38:24 +0000 |
---|---|---|
committer | ienkovich <ienkovich@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-11-12 11:38:24 +0000 |
commit | 17ad8c37b25781524dfcccd491256a5b2bcfdcb3 (patch) | |
tree | 38623963fab2b1d877090d1dd3e94e8618e36f71 /gcc/expr.c | |
parent | 5af08a8c535895ab3edf38ad8d5b62e1e8104be0 (diff) | |
download | gcc-17ad8c37b25781524dfcccd491256a5b2bcfdcb3.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230238 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/expr.c')
-rw-r--r-- | gcc/expr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/expr.c b/gcc/expr.c index 03936ee3ddb..bd43dc4f3fd 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 { |