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

--- Comment #1 from Igor Shevlyakov <ishevlyakov at gcc dot gnu.org> ---
This is not a missed optimization but r17-6689 fixing wrong code:
__builtin_fabsf16 on a __bf16 converts to _Float16 first, so e.g. 1e10
must become +Inf, which the old fold of the bf16->f16->bf16 round trip
lost.  The loops that no longer vectorize are the abs ones (fabsf16), not
the negations.  The tests should use __builtin_fabsf instead, since float
represents every __bf16 exactly; with that, avx2-bf16-vec-absneg.c passes
all of its scans again on trunk.

Reply via email to