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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
These should work, I think, will try after finishing up the pointer:
(match min_value
 VECTOR_CST
 (with { tree inner = uniform_integer_cst_p (t); }
  (if (inner
       && INTEGRAL_TYPE_P (TREE_TYPE (inner))
       && wi::eq_p (wi::to_wide (inner), wi::min_value (TREE_TYPE (inner))))
  )
 )
)

(match max_value
 VECTOR_CST
 (with { tree inner = uniform_integer_cst_p (t); }
  (if (inner
       && INTEGRAL_TYPE_P (TREE_TYPE (inner))
       && wi::eq_p (wi::to_wide (inner), wi::max_value (TREE_TYPE (inner))))
  )
 )
)

Reply via email to