aarch64: PR target/115475 Implement missing __ARM_FEATURE_SVE_BF16 macro
commit6492c7130d6ae9992298fc3d072e2589d1131376
authorKyrylo Tkachov <ktkachov@nvidia.com>
Fri, 28 Jun 2024 07:52:37 +0000 (28 13:22 +0530)
committerKyrylo Tkachov <ktkachov@nvidia.com>
Wed, 3 Jul 2024 10:12:45 +0000 (3 12:12 +0200)
tree484f8000675c192e2ee8f041da2f6d896b864194
parentc10942134fa759843ac1ed1424b86fcb8e6368ba
aarch64: PR target/115475 Implement missing __ARM_FEATURE_SVE_BF16 macro

The ACLE requires __ARM_FEATURE_SVE_BF16 to be enabled when SVE and BF16
and the associated intrinsics are available.
GCC does support the required intrinsics for TARGET_SVE_BF16 so define
this macro too.

Bootstrapped and tested on aarch64-none-linux-gnu.

gcc/

PR target/115475
* config/aarch64/aarch64-c.cc (aarch64_update_cpp_builtins):
Define __ARM_FEATURE_SVE_BF16 for TARGET_SVE_BF16.

gcc/testsuite/

PR target/115475
* gcc.target/aarch64/acle/bf16_sve_feature.c: New test.

Signed-off-by: Kyrylo Tkachov <ktkachov@nvidia.com>
gcc/config/aarch64/aarch64-c.cc
gcc/testsuite/gcc.target/aarch64/acle/bf16_sve_feature.c [new file with mode: 0644]