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

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

https://gcc.gnu.org/g:d32cfe3352f3863325f8452e83400063b1e71e5b

commit r11-11564-gd32cfe3352f3863325f8452e83400063b1e71e5b
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.c (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