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

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Kyrylo Tkachov
<ktkac...@gcc.gnu.org>:

https://gcc.gnu.org/g:7785289f8d1f6350a3f48232ce578009b0e23534

commit r13-8890-g7785289f8d1f6350a3f48232ce578009b0e23534
Author: Kyrylo Tkachov <ktkac...@nvidia.com>
Date:   Thu Jun 27 16:10:41 2024 +0530

    aarch64: PR target/115457 Implement missing __ARM_FEATURE_BF16 macro

    The ACLE asks the user to test for __ARM_FEATURE_BF16 before using the
    <arm_bf16.h> header but GCC doesn't set this up.
    LLVM does, so this is an inconsistency between the compilers.

    This patch enables that macro for TARGET_BF16_FP.
    Bootstrapped and tested on aarch64-none-linux-gnu.

    gcc/

            PR target/115457
            * config/aarch64/aarch64-c.cc (aarch64_update_cpp_builtins):
            Define __ARM_FEATURE_BF16 for TARGET_BF16_FP.

    gcc/testsuite/

            PR target/115457
            * gcc.target/aarch64/acle/bf16_feature.c: New test.

    Signed-off-by: Kyrylo Tkachov <ktkac...@nvidia.com>
    (cherry picked from commit c10942134fa759843ac1ed1424b86fcb8e6368ba)

Reply via email to