summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/arm-mangle-bf16.cpp
diff options
context:
space:
mode:
authorDavid Green <david.green@arm.com>2022-08-04 18:35:27 +0100
committerDavid Green <david.green@arm.com>2022-08-04 18:35:27 +0100
commit8c30f4a5ab3e8dc4a75669d497723f9a2d8d39c8 (patch)
tree28ee9d9a0a49a813d9c2d5835808f5f34133ca6c /clang/test/CodeGen/arm-mangle-bf16.cpp
parent88501dc74911b00186298fe1fffe8dfb1f09b1c1 (diff)
[AArch64] Always allow the __bf16 type
We would like to make the ACLE NEON and SVE intrinsics more useable by gating them on the target, not by ifdef preprocessor macros. In order to do this the types they use need to be available. This patches makes __bf16 always available under AArch64 not just when the bf16 architecture feature is present. This bringing it in-line with GCC. In subsequent patches the NEON bfloat16x8_t and SVE svbfloat16_t types (along with bfloat16_t used in arm_sve.h) will be made unconditional too. The operations valid on the types are still very limited. They can be used as a storage type, but the intrinsics used for convertions are still behind an ifdef guard in arm_neon.h/arm_bf16.h. Differential Revision: https://reviews.llvm.org/D130973
Diffstat (limited to 'clang/test/CodeGen/arm-mangle-bf16.cpp')
-rw-r--r--clang/test/CodeGen/arm-mangle-bf16.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/CodeGen/arm-mangle-bf16.cpp b/clang/test/CodeGen/arm-mangle-bf16.cpp
index c5912170a640..6dd4a11c1e71 100644
--- a/clang/test/CodeGen/arm-mangle-bf16.cpp
+++ b/clang/test/CodeGen/arm-mangle-bf16.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -triple aarch64-arm-none-eabi -target-feature +bf16 -emit-llvm -o - %s | FileCheck %s
+// RUN: %clang_cc1 -triple aarch64-arm-none-eabi -target-feature -bf16 -emit-llvm -o - %s | FileCheck %s
// RUN: %clang_cc1 -triple arm-arm-none-eabi -target-feature +bf16 -mfloat-abi hard -emit-llvm -o - %s | FileCheck %s
// RUN: %clang_cc1 -triple arm-arm-none-eabi -target-feature +bf16 -mfloat-abi softfp -emit-llvm -o - %s | FileCheck %s