[LLVM][IR] Use splat syntax when printing ConstantExpr based splats. (#116856)
[llvm-project.git] / clang / test / CodeGen / X86 / avx512bf16-error.c
blobaf1de89c372270c8c67bb143d8311305f646dadd
1 // RUN: %clang_cc1 -fsyntax-only -verify -ffreestanding -triple x86_64-linux-pc %s
3 // expected-error@+1 3 {{unknown type name '__bfloat16'}}
4 __bfloat16 foo(__bfloat16 a, __bfloat16 b) {
5 return a + b;
8 #include <immintrin.h>
10 // expected-warning@+2 3 {{'__bfloat16' is deprecated: use __bf16 instead}}
11 // expected-note@* 3 {{'__bfloat16' has been explicitly marked deprecated here}}
12 __bfloat16 bar(__bfloat16 a, __bfloat16 b) {
13 return a + b;