Debian Codegraph @

clang/test/Sema/AArch64/arm_sme_streaming_only_sme_AND_sme-f16f16.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-f16f16 -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-f16f16" flags="streaming-only,requires-za"
9
10 void test(void) __arm_inout("za"){
11 svbool_t svbool_t_val;
12 svfloat16_t svfloat16_t_val;
13 svfloat16x2_t svfloat16x2_t_val;
14 svfloat16x4_t svfloat16x4_t_val;
15 uint32_t uint32_t_val;
16
17 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
18 svmla_lane_za16_f16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16_t_val, 2);
19 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
20 svmla_lane_za16_f16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16_t_val, 2);
21 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
22 svmla_lane_za16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16_t_val, 2);
23 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
24 svmla_lane_za16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16_t_val, 2);
25 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
26 svmla_single_za16_f16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16_t_val);
27 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
28 svmla_single_za16_f16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16_t_val);
29 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
30 svmla_za16_f16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16x2_t_val);
31 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
32 svmla_za16_f16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16x4_t_val);
33 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
34 svmla_za16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16_t_val);
35 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
36 svmla_za16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16x2_t_val);
37 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
38 svmla_za16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16_t_val);
39 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
40 svmla_za16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16x4_t_val);
41 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
42 svmls_lane_za16_f16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16_t_val, 2);
43 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
44 svmls_lane_za16_f16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16_t_val, 2);
45 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
46 svmls_lane_za16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16_t_val, 2);
47 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
48 svmls_lane_za16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16_t_val, 2);
49 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
50 svmls_single_za16_f16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16_t_val);
51 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
52 svmls_single_za16_f16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16_t_val);
53 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
54 svmls_za16_f16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16x2_t_val);
55 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
56 svmls_za16_f16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16x4_t_val);
57 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
58 svmls_za16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16_t_val);
59 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
60 svmls_za16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16x2_t_val);
61 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
62 svmls_za16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16_t_val);
63 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
64 svmls_za16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16x4_t_val);
65 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
66 svmopa_za16_f16_m(1, svbool_t_val, svbool_t_val, svfloat16_t_val, svfloat16_t_val);
67 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
68 svmopa_za16_m(1, svbool_t_val, svbool_t_val, svfloat16_t_val, svfloat16_t_val);
69 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
70 svmops_za16_f16_m(1, svbool_t_val, svbool_t_val, svfloat16_t_val, svfloat16_t_val);
71 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
72 svmops_za16_m(1, svbool_t_val, svbool_t_val, svfloat16_t_val, svfloat16_t_val);
73 }
74
75 void test_streaming(void) __arm_streaming __arm_inout("za"){
76 svbool_t svbool_t_val;
77 svfloat16_t svfloat16_t_val;
78 svfloat16x2_t svfloat16x2_t_val;
79 svfloat16x4_t svfloat16x4_t_val;
80 uint32_t uint32_t_val;
81
82 svmla_lane_za16_f16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16_t_val, 2);
83 svmla_lane_za16_f16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16_t_val, 2);
84 svmla_lane_za16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16_t_val, 2);
85 svmla_lane_za16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16_t_val, 2);
86 svmla_single_za16_f16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16_t_val);
87 svmla_single_za16_f16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16_t_val);
88 svmla_za16_f16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16x2_t_val);
89 svmla_za16_f16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16x4_t_val);
90 svmla_za16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16_t_val);
91 svmla_za16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16x2_t_val);
92 svmla_za16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16_t_val);
93 svmla_za16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16x4_t_val);
94 svmls_lane_za16_f16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16_t_val, 2);
95 svmls_lane_za16_f16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16_t_val, 2);
96 svmls_lane_za16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16_t_val, 2);
97 svmls_lane_za16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16_t_val, 2);
98 svmls_single_za16_f16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16_t_val);
99 svmls_single_za16_f16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16_t_val);
100 svmls_za16_f16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16x2_t_val);
101 svmls_za16_f16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16x4_t_val);
102 svmls_za16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16_t_val);
103 svmls_za16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16x2_t_val);
104 svmls_za16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16_t_val);
105 svmls_za16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16x4_t_val);
106 svmopa_za16_f16_m(1, svbool_t_val, svbool_t_val, svfloat16_t_val, svfloat16_t_val);
107 svmopa_za16_m(1, svbool_t_val, svbool_t_val, svfloat16_t_val, svfloat16_t_val);
108 svmops_za16_f16_m(1, svbool_t_val, svbool_t_val, svfloat16_t_val, svfloat16_t_val);
109 svmops_za16_m(1, svbool_t_val, svbool_t_val, svfloat16_t_val, svfloat16_t_val);
110 }
111
112 void test_streaming_compatible(void) __arm_streaming_compatible __arm_inout("za"){
113 svbool_t svbool_t_val;
114 svfloat16_t svfloat16_t_val;
115 svfloat16x2_t svfloat16x2_t_val;
116 svfloat16x4_t svfloat16x4_t_val;
117 uint32_t uint32_t_val;
118
119 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
120 svmla_lane_za16_f16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16_t_val, 2);
121 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
122 svmla_lane_za16_f16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16_t_val, 2);
123 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
124 svmla_lane_za16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16_t_val, 2);
125 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
126 svmla_lane_za16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16_t_val, 2);
127 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
128 svmla_single_za16_f16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16_t_val);
129 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
130 svmla_single_za16_f16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16_t_val);
131 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
132 svmla_za16_f16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16x2_t_val);
133 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
134 svmla_za16_f16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16x4_t_val);
135 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
136 svmla_za16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16_t_val);
137 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
138 svmla_za16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16x2_t_val);
139 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
140 svmla_za16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16_t_val);
141 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
142 svmla_za16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16x4_t_val);
143 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
144 svmls_lane_za16_f16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16_t_val, 2);
145 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
146 svmls_lane_za16_f16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16_t_val, 2);
147 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
148 svmls_lane_za16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16_t_val, 2);
149 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
150 svmls_lane_za16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16_t_val, 2);
151 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
152 svmls_single_za16_f16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16_t_val);
153 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
154 svmls_single_za16_f16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16_t_val);
155 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
156 svmls_za16_f16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16x2_t_val);
157 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
158 svmls_za16_f16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16x4_t_val);
159 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
160 svmls_za16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16_t_val);
161 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
162 svmls_za16_vg1x2(uint32_t_val, svfloat16x2_t_val, svfloat16x2_t_val);
163 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
164 svmls_za16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16_t_val);
165 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
166 svmls_za16_vg1x4(uint32_t_val, svfloat16x4_t_val, svfloat16x4_t_val);
167 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
168 svmopa_za16_f16_m(1, svbool_t_val, svbool_t_val, svfloat16_t_val, svfloat16_t_val);
169 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
170 svmopa_za16_m(1, svbool_t_val, svbool_t_val, svfloat16_t_val, svfloat16_t_val);
171 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
172 svmops_za16_f16_m(1, svbool_t_val, svbool_t_val, svfloat16_t_val, svfloat16_t_val);
173 // streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
174 svmops_za16_m(1, svbool_t_val, svbool_t_val, svfloat16_t_val, svfloat16_t_val);
175 }