https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122724
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is the pattern:
20dcda98ed37 (prathamesh.kulkarni 2021-10-18 15:44:06 +0530 7930) (for
uncond_op (UNCOND_UNARY)
20dcda98ed37 (prathamesh.kulkarni 2021-10-18 15:44:06 +0530 7931)
cond_op (COND_UNARY)
20dcda98ed37 (prathamesh.kulkarni 2021-10-18 15:44:06 +0530 7932)
(simplify
20dcda98ed37 (prathamesh.kulkarni 2021-10-18 15:44:06 +0530 7933)
(vec_cond @0 (view_convert? (uncond_op@3 @1)) @2)
20dcda98ed37 (prathamesh.kulkarni 2021-10-18 15:44:06 +0530 7934) (with
{ tree op_type = TREE_TYPE (@3); }
20dcda98ed37 (prathamesh.kulkarni 2021-10-18 15:44:06 +0530 7935) (if
(vectorized_internal_fn_supported_p (as_internal_fn (cond_op), op_type)
20dcda98ed37 (prathamesh.kulkarni 2021-10-18 15:44:06 +0530 7936)
&& is_truth_type_for (op_type, TREE_TYPE (@0)))
20dcda98ed37 (prathamesh.kulkarni 2021-10-18 15:44:06 +0530 7937)
(cond_op @0 @1 @2))))