Debian Codegraph @

clang/test/Sema/AArch64/arm_sve_non_streaming_only_sve_AND_bf16.c

raw
1 // NOTE: File has been autogenerated by utils/aarch64_builtins_test_generator.py
2 // RUN: %clang_cc1 %s -fsyntax-only -triple aarch64-none-linux-gnu -target-feature +bf16 -target-feature +sme -target-feature +sve -verify=guard
3
4 // REQUIRES: aarch64-registered-target
5
6 #include <arm_sve.h>
7
8 // Properties: guard="sve,bf16" streaming_guard="" flags=""
9
10 void test(void) {
11 svbfloat16_t svbfloat16_t_val;
12 svfloat32_t svfloat32_t_val;
13
14 svbfmmla(svfloat32_t_val, svbfloat16_t_val, svbfloat16_t_val);
15 svbfmmla_f32(svfloat32_t_val, svbfloat16_t_val, svbfloat16_t_val);
16 }
17
18 void test_streaming(void) __arm_streaming{
19 svbfloat16_t svbfloat16_t_val;
20 svfloat32_t svfloat32_t_val;
21
22 // guard-error@+1 {{builtin can only be called from a non-streaming function}}
23 svbfmmla(svfloat32_t_val, svbfloat16_t_val, svbfloat16_t_val);
24 // guard-error@+1 {{builtin can only be called from a non-streaming function}}
25 svbfmmla_f32(svfloat32_t_val, svbfloat16_t_val, svbfloat16_t_val);
26 }
27
28 void test_streaming_compatible(void) __arm_streaming_compatible{
29 svbfloat16_t svbfloat16_t_val;
30 svfloat32_t svfloat32_t_val;
31
32 // guard-error@+1 {{builtin can only be called from a non-streaming function}}
33 svbfmmla(svfloat32_t_val, svbfloat16_t_val, svbfloat16_t_val);
34 // guard-error@+1 {{builtin can only be called from a non-streaming function}}
35 svbfmmla_f32(svfloat32_t_val, svbfloat16_t_val, svbfloat16_t_val);
36 }