1// RUN: not %clang_cc1 -triple aarch64-none-linux-gnu %s -emit-llvm -o - \
2// RUN:   2>&1 | FileCheck %s
3// RUN: not %clang_cc1 -triple aarch64-none-linux-gnu %s -emit-llvm -o - \
4// RUN:   -target-feature +sve,+bf16 2>&1 | FileCheck %s
5
6// CHECK: error: cannot yet @encode type __SVInt8_t
7const char s8[] = @encode(__SVInt8_t);
8// CHECK: error: cannot yet @encode type __SVInt16_t
9const char s16[] = @encode(__SVInt16_t);
10// CHECK: error: cannot yet @encode type __SVInt32_t
11const char s32[] = @encode(__SVInt32_t);
12// CHECK: error: cannot yet @encode type __SVInt64_t
13const char s64[] = @encode(__SVInt64_t);
14
15// CHECK: error: cannot yet @encode type __SVUint8_t
16const char u8[] = @encode(__SVUint8_t);
17// CHECK: error: cannot yet @encode type __SVUint16_t
18const char u16[] = @encode(__SVUint16_t);
19// CHECK: error: cannot yet @encode type __SVUint32_t
20const char u32[] = @encode(__SVUint32_t);
21// CHECK: error: cannot yet @encode type __SVUint64_t
22const char u64[] = @encode(__SVUint64_t);
23
24// CHECK: error: cannot yet @encode type __SVFloat16_t
25const char f16[] = @encode(__SVFloat16_t);
26// CHECK: error: cannot yet @encode type __SVFloat32_t
27const char f32[] = @encode(__SVFloat32_t);
28// CHECK: error: cannot yet @encode type __SVFloat64_t
29const char f64[] = @encode(__SVFloat64_t);
30
31// CHECK: error: cannot yet @encode type __SVBFloat16_t
32const char bf16[] = @encode(__SVBFloat16_t);
33
34// CHECK: error: cannot yet @encode type __SVBool_t
35const char b8[] = @encode(__SVBool_t);
36