diff options
author | Ilya Enkovich <enkovich.gnu@gmail.com> | 2015-11-12 11:38:24 +0000 |
---|---|---|
committer | Ilya Enkovich <ienkovich@gcc.gnu.org> | 2015-11-12 11:38:24 +0000 |
commit | 3095f7c6ebd5863450d82f11a5ca25c7b06581fe (patch) | |
tree | 38623963fab2b1d877090d1dd3e94e8618e36f71 /gcc/expr.c | |
parent | e9ea8f9e56c95c1a36ca24b365de5c2bbb1dfe2a (diff) | |
download | gcc-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 { |