https://gcc.gnu.org/bugzilla/show_bug.cgi?id=129050
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jeff Law <[email protected]>: https://gcc.gnu.org/g:92011e13e7788ec03f8052143152d9d73a015e16 commit r17-6770-g92011e13e7788ec03f8052143152d9d73a015e16 Author: Sendao Yan <[email protected]> Date: Fri Nov 27 20:11:34 2026 -0700 [PATCH] testsuite: Use __builtin_fabsf for __bf16 abs in the BF16 abs/neg tests Since r17-6689 (match.pd: only fold float conversion chains through a format that holds the input, PR128460/PR128912) the __bf16 -> _Float16 -> __bf16 round trip is no longer folded away. That fold was wrong code, because the _Float16 conversion is semantically required, so __builtin_fabsf16 on a __bf16 value now keeps the conversion and the vectorizer rejects it as unsupported. float represents every __bf16 exactly, so use __builtin_fabsf instead. The abs loops then vectorize again and the runtime results are unchanged. PR middle-end/129050 gcc/testsuite/ChangeLog: * gcc.target/i386/avx2-bf16-vec-absneg.c: Use __builtin_fabsf instead of __builtin_fabsf16. * gcc.target/i386/avx512f-bf16-vec-absneg.c: Likewise. * gcc.target/i386/part-vect-absnegbf.c: Likewise. Signed-off-by: Sendao Yan <[email protected]>
