Debian Codegraph @

clang/test/Sema/AArch64/arm_sme_streaming_only_sme_AND_sme-f64f64.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 +sme -target-feature +sme-f64f64 -target-feature +sve -verify=streaming-guard
3
4 // REQUIRES: aarch64-registered-target
5
6 #include <arm_sme.h>
7
8 // Properties: guard="" streaming_guard="sme,sme-f64f64" flags="streaming-only,requires-za"
9
10 void test(void) __arm_inout("za"){
11 svbool_t svbool_t_val;
12 svfloat64_t svfloat64_t_val;
13
14 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
15 svmopa_za64_f64_m(2, svbool_t_val, svbool_t_val, svfloat64_t_val, svfloat64_t_val);
16 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
17 svmopa_za64_m(2, svbool_t_val, svbool_t_val, svfloat64_t_val, svfloat64_t_val);
18 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
19 svmops_za64_f64_m(2, svbool_t_val, svbool_t_val, svfloat64_t_val, svfloat64_t_val);
20 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
21 svmops_za64_m(2, svbool_t_val, svbool_t_val, svfloat64_t_val, svfloat64_t_val);
22 }
23
24 void test_streaming(void) __arm_streaming __arm_inout("za"){
25 svbool_t svbool_t_val;
26 svfloat64_t svfloat64_t_val;
27
28 svmopa_za64_f64_m(2, svbool_t_val, svbool_t_val, svfloat64_t_val, svfloat64_t_val);
29 svmopa_za64_m(2, svbool_t_val, svbool_t_val, svfloat64_t_val, svfloat64_t_val);
30 svmops_za64_f64_m(2, svbool_t_val, svbool_t_val, svfloat64_t_val, svfloat64_t_val);
31 svmops_za64_m(2, svbool_t_val, svbool_t_val, svfloat64_t_val, svfloat64_t_val);
32 }
33
34 void test_streaming_compatible(void) __arm_streaming_compatible __arm_inout("za"){
35 svbool_t svbool_t_val;
36 svfloat64_t svfloat64_t_val;
37
38 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
39 svmopa_za64_f64_m(2, svbool_t_val, svbool_t_val, svfloat64_t_val, svfloat64_t_val);
40 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
41 svmopa_za64_m(2, svbool_t_val, svbool_t_val, svfloat64_t_val, svfloat64_t_val);
42 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
43 svmops_za64_f64_m(2, svbool_t_val, svbool_t_val, svfloat64_t_val, svfloat64_t_val);
44 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
45 svmops_za64_m(2, svbool_t_val, svbool_t_val, svfloat64_t_val, svfloat64_t_val);
46 }