https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103948

--- Comment #3 from Uroš Bizjak <ubizjak at gmail dot com> ---
diff --git a/gcc/optabs-tree.c b/gcc/optabs-tree.c
index 78e388d82f6..871366f3b7e 100644
--- a/gcc/optabs-tree.c
+++ b/gcc/optabs-tree.c
@@ -502,6 +502,9 @@ expand_vec_cond_expr_p (tree value_type, tree cmp_op_type,
enum tree_code code)
        cannot be certain whether a vector insn is available.  */
     return false;

+  if (expand_vec_cmp_expr_p (value_type, cmp_op_type, code))
+    return true;
+
   return vcond_icode_p (value_type, cmp_op_type, code)
         || vcond_eq_icode_p (value_type, cmp_op_type, code);
 }

Reply via email to