diff options
author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-02-10 03:13:53 +0000 |
---|---|---|
committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-02-10 03:13:53 +0000 |
commit | 58f74eff5e2c9ab4dd06d6f0772f530507c8489e (patch) | |
tree | 9d4a26f8cd98c64dba1a1f1058e3e3950497f456 /gcc/optabs-tree.c | |
parent | dea192d02bac58b34adfe7a9c6ddc123a7a43ef7 (diff) | |
download | gcc-58f74eff5e2c9ab4dd06d6f0772f530507c8489e.tar.gz |
2016-02-09 Andrew Pinski <apinski@cavium.com>
PR tree-opt/69282
* optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
get_vcond_mask_icode returns false.
2016-02-09 Andrew Pinski <apinski@cavium.com>
PR tree-opt/69282
* gcc.c-torture/compile/20160205-1.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233261 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/optabs-tree.c')
-rw-r--r-- | gcc/optabs-tree.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/optabs-tree.c b/gcc/optabs-tree.c index a229b970b3b..faac0871641 100644 --- a/gcc/optabs-tree.c +++ b/gcc/optabs-tree.c @@ -322,9 +322,11 @@ expand_vec_cond_expr_p (tree value_type, tree cmp_op_type) { machine_mode value_mode = TYPE_MODE (value_type); machine_mode cmp_op_mode = TYPE_MODE (cmp_op_type); - if (VECTOR_BOOLEAN_TYPE_P (cmp_op_type)) - return get_vcond_mask_icode (TYPE_MODE (value_type), - TYPE_MODE (cmp_op_type)) != CODE_FOR_nothing; + if (VECTOR_BOOLEAN_TYPE_P (cmp_op_type) + && get_vcond_mask_icode (TYPE_MODE (value_type), + TYPE_MODE (cmp_op_type)) != CODE_FOR_nothing) + return true; + if (GET_MODE_SIZE (value_mode) != GET_MODE_SIZE (cmp_op_mode) || GET_MODE_NUNITS (value_mode) != GET_MODE_NUNITS (cmp_op_mode) || get_vcond_icode (TYPE_MODE (value_type), TYPE_MODE (cmp_op_type), |