1 // RUN: %clang_cc1 -fsyntax-only -verify=scalar,neon -std=c++11 \
2 // RUN: -triple aarch64 -target-cpu cortex-a75 \
3 // RUN: -target-feature +bf16 -target-feature +neon -Wno-unused %s
4 // RUN: %clang_cc1 -fsyntax-only -verify=scalar,neon -std=c++11 \
5 // RUN: -triple arm-arm-none-eabi -target-cpu cortex-a53 \
6 // RUN: -target-feature +bf16 -target-feature +neon -Wno-unused %s
8 // The types should be available under AArch64 even without the bf16 feature
9 // RUN: %clang_cc1 -fsyntax-only -verify=scalar -DNONEON -std=c++11 \
10 // RUN: -triple aarch64 -target-cpu cortex-a75 \
11 // RUN: -target-feature -bf16 -target-feature +neon -Wno-unused %s
13 // REQUIRES: aarch64-registered-target || arm-registered-target
35 bf16
= fp16
; // scalar-error {{assigning to '__bf16' from incompatible type '__fp16'}}
36 fp16
= bf16
; // scalar-error {{assigning to '__fp16' from incompatible type '__bf16'}}
37 bf16
+ (b
? fp16
: bf16
);
44 void test_vector(bfloat16x4_t a
, bfloat16x4_t b
, float16x4_t c
) {