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

--- Comment #11 from Hongtao.liu <crazylht at gmail dot com> ---
(In reply to Jakub Jelinek from comment #10)
> Do we really need separate _bcst patterns btw?  Wouldn't it be better to
> just have some predicate and corresponding constaint that would allow normal

In currently implementation, vec_duplicate would be used for memory_operand in
broadcast patterns. I'm not sure if vec_duplicate could be used in
define_predicate, or am i misunderstood?

> MEM vectors as well as these broadcast from single element and just use that
> predicate wherever the broadcasts are allowed?  Probably would need multiple
> of them though, even when the main would turn to be just memory_operand if
> TARGET_AVX512F is false, some instructions only use EVEX encoding if some
> other TARGET_AVX* is on...

Reply via email to