Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vector-complex_f16.c

raw
1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_v8_3a_complex_neon_ok } */
3 /* { dg-require-effective-target arm_v8_2a_fp16_neon_ok } */
4 /* { dg-add-options arm_v8_3a_complex_neon } */
5 /* { dg-add-options arm_v8_2a_fp16_neon } */
6 /* { dg-additional-options "-O2 -march=armv8.3-a+fp16 -save-temps" } */
7
8 #include <arm_neon.h>
9
10 float16x4_t
11 test_vcadd_rot90_f16 (float16x4_t __a, float16x4_t __b)
12 {
13 return vcadd_rot90_f16 (__a, __b);
14 }
15
16 float16x8_t
17 test_vcaddq_rot90_f16 (float16x8_t __a, float16x8_t __b)
18 {
19 return vcaddq_rot90_f16 (__a, __b);
20 }
21
22 float16x4_t
23 test_vcadd_rot270_f16 (float16x4_t __a, float16x4_t __b)
24 {
25 return vcadd_rot270_f16 (__a, __b);
26 }
27
28 float16x8_t
29 test_vcaddq_rot270_f16 (float16x8_t __a, float16x8_t __b)
30 {
31 return vcaddq_rot270_f16 (__a, __b);
32 }
33
34 float16x4_t
35 test_vcmla_f16 (float16x4_t __r, float16x4_t __a, float16x4_t __b)
36 {
37 return vcmla_f16 (__r, __a, __b);
38 }
39
40 float16x8_t
41 test_vcmlaq_f16 (float16x8_t __r, float16x8_t __a, float16x8_t __b)
42 {
43 return vcmlaq_f16 (__r, __a, __b);
44 }
45
46 float16x4_t
47 test_vcmla_lane_f16 (float16x4_t __r, float16x4_t __a, float16x4_t __b)
48 {
49 return vcmla_lane_f16 (__r, __a, __b, 0);
50 }
51
52 float16x4_t
53 test_vcmla_laneq_f16 (float16x4_t __r, float16x4_t __a, float16x8_t __b)
54 {
55 return vcmla_laneq_f16 (__r, __a, __b, 0);
56 }
57
58 float16x8_t
59 test_vcmlaq_lane_f16 (float16x8_t __r, float16x8_t __a, float16x4_t __b)
60 {
61 return vcmlaq_lane_f16 (__r, __a, __b, 0);
62 }
63
64 float16x8_t
65 test_vcmlaq_laneq_f16 (float16x8_t __r, float16x8_t __a, float16x8_t __b)
66 {
67 return vcmlaq_laneq_f16 (__r, __a, __b, 0);
68 }
69
70 float16x4_t
71 test_vcmla_lane_f16_2 (float16x4_t __r, float16x4_t __a, float16x4_t __b)
72 {
73 return vcmla_lane_f16 (__r, __a, __b, 1);
74 }
75
76 float16x4_t
77 test_vcmla_laneq_f16_2 (float16x4_t __r, float16x4_t __a, float16x8_t __b)
78 {
79 return vcmla_laneq_f16 (__r, __a, __b, 3);
80 }
81
82 float16x8_t
83 test_vcmlaq_lane_f16_2 (float16x8_t __r, float16x8_t __a, float16x4_t __b)
84 {
85 return vcmlaq_lane_f16 (__r, __a, __b, 1);
86 }
87
88 float16x8_t
89 test_vcmlaq_laneq_f16_2 (float16x8_t __r, float16x8_t __a, float16x8_t __b)
90 {
91 return vcmlaq_laneq_f16 (__r, __a, __b, 3);
92 }
93
94 float16x4_t
95 test_vcmla_rot90_f16 (float16x4_t __r, float16x4_t __a, float16x4_t __b)
96 {
97 return vcmla_rot90_f16 (__r, __a, __b);
98 }
99
100 float16x8_t
101 test_vcmlaq_rot90_f16 (float16x8_t __r, float16x8_t __a, float16x8_t __b)
102 {
103 return vcmlaq_rot90_f16 (__r, __a, __b);
104 }
105
106 float16x4_t
107 test_vcmla_rot90_lane_f16 (float16x4_t __r, float16x4_t __a, float16x4_t __b)
108 {
109 return vcmla_rot90_lane_f16 (__r, __a, __b, 0);
110 }
111
112 float16x4_t
113 test_vcmla_rot90_laneq_f16 (float16x4_t __r, float16x4_t __a, float16x8_t __b)
114 {
115 return vcmla_rot90_laneq_f16 (__r, __a, __b, 0);
116 }
117
118 float16x8_t
119 test_vcmlaq_rot90_lane_f16 (float16x8_t __r, float16x8_t __a, float16x4_t __b)
120 {
121 return vcmlaq_rot90_lane_f16 (__r, __a, __b, 0);
122 }
123
124 float16x8_t
125 test_vcmlaq_rot90_laneq_f16 (float16x8_t __r, float16x8_t __a, float16x8_t __b)
126 {
127 return vcmlaq_rot90_laneq_f16 (__r, __a, __b, 0);
128 }
129
130 float16x4_t
131 test_vcmla_rot90_lane_f16_2 (float16x4_t __r, float16x4_t __a, float16x4_t __b)
132 {
133 return vcmla_rot90_lane_f16 (__r, __a, __b, 1);
134 }
135
136 float16x4_t
137 test_vcmla_rot90_laneq_f16_2 (float16x4_t __r, float16x4_t __a, float16x8_t __b)
138 {
139 return vcmla_rot90_laneq_f16 (__r, __a, __b, 3);
140 }
141
142 float16x8_t
143 test_vcmlaq_rot90_lane_f16_2 (float16x8_t __r, float16x8_t __a, float16x4_t __b)
144 {
145 return vcmlaq_rot90_lane_f16 (__r, __a, __b, 1);
146 }
147
148 float16x8_t
149 test_vcmlaq_rot90_laneq_f16_2 (float16x8_t __r, float16x8_t __a, float16x8_t __b)
150 {
151 return vcmlaq_rot90_laneq_f16 (__r, __a, __b, 3);
152 }
153
154 float16x4_t
155 test_vcmla_rot180_f16 (float16x4_t __r, float16x4_t __a, float16x4_t __b)
156 {
157 return vcmla_rot180_f16 (__r, __a, __b);
158 }
159
160 float16x8_t
161 test_vcmlaq_rot180_f16 (float16x8_t __r, float16x8_t __a, float16x8_t __b)
162 {
163 return vcmlaq_rot180_f16 (__r, __a, __b);
164 }
165
166 float16x4_t
167 test_vcmla_rot180_lane_f16 (float16x4_t __r, float16x4_t __a, float16x4_t __b)
168 {
169 return vcmla_rot180_lane_f16 (__r, __a, __b, 0);
170 }
171
172 float16x4_t
173 test_vcmla_rot180_laneq_f16 (float16x4_t __r, float16x4_t __a, float16x8_t __b)
174 {
175 return vcmla_rot180_laneq_f16 (__r, __a, __b, 0);
176 }
177
178 float16x8_t
179 test_vcmlaq_rot180_lane_f16 (float16x8_t __r, float16x8_t __a, float16x4_t __b)
180 {
181 return vcmlaq_rot180_lane_f16 (__r, __a, __b, 0);
182 }
183
184 float16x8_t
185 test_vcmlaq_rot180_laneq_f16 (float16x8_t __r, float16x8_t __a, float16x8_t __b)
186 {
187 return vcmlaq_rot180_laneq_f16 (__r, __a, __b, 0);
188 }
189
190 float16x4_t
191 test_vcmla_rot180_lane_f16_2 (float16x4_t __r, float16x4_t __a, float16x4_t __b)
192 {
193 return vcmla_rot180_lane_f16 (__r, __a, __b, 1);
194 }
195
196 float16x4_t
197 test_vcmla_rot180_laneq_f16_2 (float16x4_t __r, float16x4_t __a, float16x8_t __b)
198 {
199 return vcmla_rot180_laneq_f16 (__r, __a, __b, 3);
200 }
201
202 float16x8_t
203 test_vcmlaq_rot180_lane_f16_2 (float16x8_t __r, float16x8_t __a, float16x4_t __b)
204 {
205 return vcmlaq_rot180_lane_f16 (__r, __a, __b, 1);
206 }
207
208 float16x8_t
209 test_vcmlaq_rot180_laneq_f16_2 (float16x8_t __r, float16x8_t __a, float16x8_t __b)
210 {
211 return vcmlaq_rot180_laneq_f16 (__r, __a, __b, 3);
212 }
213
214 float16x4_t
215 test_vcmla_rot270_f16 (float16x4_t __r, float16x4_t __a, float16x4_t __b)
216 {
217 return vcmla_rot270_f16 (__r, __a, __b);
218 }
219
220 float16x8_t
221 test_vcmlaq_rot270_f16 (float16x8_t __r, float16x8_t __a, float16x8_t __b)
222 {
223 return vcmlaq_rot270_f16 (__r, __a, __b);
224 }
225
226 float16x4_t
227 test_vcmla_rot270_lane_f16 (float16x4_t __r, float16x4_t __a, float16x4_t __b)
228 {
229 return vcmla_rot270_lane_f16 (__r, __a, __b, 0);
230 }
231
232 float16x4_t
233 test_vcmla_rot270_laneq_f16 (float16x4_t __r, float16x4_t __a, float16x8_t __b)
234 {
235 return vcmla_rot270_laneq_f16 (__r, __a, __b, 0);
236 }
237
238 float16x8_t
239 test_vcmlaq_rot270_lane_f16 (float16x8_t __r, float16x8_t __a, float16x4_t __b)
240 {
241 return vcmlaq_rot270_lane_f16 (__r, __a, __b, 0);
242 }
243
244 float16x8_t
245 test_vcmlaq_rot270_laneq_f16 (float16x8_t __r, float16x8_t __a, float16x8_t __b)
246 {
247 return vcmlaq_rot270_laneq_f16 (__r, __a, __b, 0);
248 }
249
250 float16x4_t
251 test_vcmla_rot270_lane_f16_2 (float16x4_t __r, float16x4_t __a, float16x4_t __b)
252 {
253 return vcmla_rot270_lane_f16 (__r, __a, __b, 1);
254 }
255
256 float16x4_t
257 test_vcmla_rot270_laneq_f16_2 (float16x4_t __r, float16x4_t __a, float16x8_t __b)
258 {
259 return vcmla_rot270_laneq_f16 (__r, __a, __b, 3);
260 }
261
262 float16x8_t
263 test_vcmlaq_rot270_lane_f16_2 (float16x8_t __r, float16x8_t __a, float16x4_t __b)
264 {
265 return vcmlaq_rot270_lane_f16 (__r, __a, __b, 1);
266 }
267
268 float16x8_t
269 test_vcmlaq_rot270_laneq_f16_2 (float16x8_t __r, float16x8_t __a, float16x8_t __b)
270 {
271 return vcmlaq_rot270_laneq_f16 (__r, __a, __b, 3);
272 }
273
274 /* { dg-final { scan-assembler-times {dup\td[0-9]+, v[0-9]+.d\[1\]} 4 { target { aarch64*-*-* } } } } */
275 /* { dg-final { scan-assembler-times {fcadd\tv[0-9]+.4h, v[0-9]+.4h, v[0-9]+.4h, #270} 1 { target { aarch64*-*-* } } } } */
276 /* { dg-final { scan-assembler-times {fcadd\tv[0-9]+.4h, v[0-9]+.4h, v[0-9]+.4h, #90} 1 { target { aarch64*-*-* } } } } */
277 /* { dg-final { scan-assembler-times {fcadd\tv[0-9]+.8h, v[0-9]+.8h, v[0-9]+.8h, #270} 1 { target { aarch64*-*-* } } } } */
278 /* { dg-final { scan-assembler-times {fcadd\tv[0-9]+.8h, v[0-9]+.8h, v[0-9]+.8h, #90} 1 { target { aarch64*-*-* } } } } */
279 /* { dg-final { scan-assembler-times {fcmla\tv[0-9]+.4h, v[0-9]+.4h, v[0-9]+.4h, #0} 1 { target { aarch64*-*-* } } } } */
280 /* { dg-final { scan-assembler-times {fcmla\tv[0-9]+.4h, v[0-9]+.4h, v[0-9]+.4h, #180} 1 { target { aarch64*-*-* } } } } */
281 /* { dg-final { scan-assembler-times {fcmla\tv[0-9]+.4h, v[0-9]+.4h, v[0-9]+.4h, #270} 1 { target { aarch64*-*-* } } } } */
282 /* { dg-final { scan-assembler-times {fcmla\tv[0-9]+.4h, v[0-9]+.4h, v[0-9]+.4h, #90} 1 { target { aarch64*-*-* } } } } */
283 /* { dg-final { scan-assembler-times {fcmla\tv[0-9]+.4h, v[0-9]+.4h, v[0-9]+.h\[0\], #0} 2 { target { aarch64*-*-* } } } } */
284 /* { dg-final { scan-assembler-times {fcmla\tv[0-9]+.4h, v[0-9]+.4h, v[0-9]+.h\[0\], #180} 2 { target { aarch64*-*-* } } } } */
285 /* { dg-final { scan-assembler-times {fcmla\tv[0-9]+.4h, v[0-9]+.4h, v[0-9]+.h\[0\], #270} 2 { target { aarch64*-*-* } } } } */
286 /* { dg-final { scan-assembler-times {fcmla\tv[0-9]+.4h, v[0-9]+.4h, v[0-9]+.h\[0\], #90} 2 { target { aarch64*-*-* } } } } */
287 /* { dg-final { scan-assembler-times {fcmla\tv[0-9]+.4h, v[0-9]+.4h, v[0-9]+.h\[1\], #0} 2 { target { aarch64*-*-* } } } } */
288 /* { dg-final { scan-assembler-times {fcmla\tv[0-9]+.4h, v[0-9]+.4h, v[0-9]+.h\[1\], #180} 2 { target { aarch64*-*-* } } } } */
289 /* { dg-final { scan-assembler-times {fcmla\tv[0-9]+.4h, v[0-9]+.4h, v[0-9]+.h\[1\], #270} 2 { target { aarch64*-*-* } } } } */
290 /* { dg-final { scan-assembler-times {fcmla\tv[0-9]+.4h, v[0-9]+.4h, v[0-9]+.h\[1\], #90} 2 { target { aarch64*-*-* } } } } */
291 /* { dg-final { scan-assembler-times {fcmla\tv[0-9]+.8h, v[0-9]+.8h, v[0-9]+.8h, #0} 1 { target { aarch64*-*-* } } } } */
292 /* { dg-final { scan-assembler-times {fcmla\tv[0-9]+.8h, v[0-9]+.8h, v[0-9]+.8h, #180} 1 { target { aarch64*-*-* } } } } */
293 /* { dg-final { scan-assembler-times {fcmla\tv[0-9]+.8h, v[0-9]+.8h, v[0-9]+.8h, #270} 1 { target { aarch64*-*-* } } } } */
294 /* { dg-final { scan-assembler-times {fcmla\tv[0-9]+.8h, v[0-9]+.8h, v[0-9]+.8h, #90} 1 { target { aarch64*-*-* } } } } */
295 /* { dg-final { scan-assembler-times {fcmla\tv[0-9]+.8h, v[0-9]+.8h, v[0-9]+.h\[0\], #0} 2 { target { aarch64*-*-* } } } } */
296 /* { dg-final { scan-assembler-times {fcmla\tv[0-9]+.8h, v[0-9]+.8h, v[0-9]+.h\[0\], #180} 2 { target { aarch64*-*-* } } } } */
297 /* { dg-final { scan-assembler-times {fcmla\tv[0-9]+.8h, v[0-9]+.8h, v[0-9]+.h\[0\], #270} 2 { target { aarch64*-*-* } } } } */
298 /* { dg-final { scan-assembler-times {fcmla\tv[0-9]+.8h, v[0-9]+.8h, v[0-9]+.h\[0\], #90} 2 { target { aarch64*-*-* } } } } */
299 /* { dg-final { scan-assembler-times {fcmla\tv[0-9]+.8h, v[0-9]+.8h, v[0-9]+.h\[1\], #0} 1 { target { aarch64*-*-* } } } } */
300 /* { dg-final { scan-assembler-times {fcmla\tv[0-9]+.8h, v[0-9]+.8h, v[0-9]+.h\[1\], #180} 1 { target { aarch64*-*-* } } } } */
301 /* { dg-final { scan-assembler-times {fcmla\tv[0-9]+.8h, v[0-9]+.8h, v[0-9]+.h\[1\], #270} 1 { target { aarch64*-*-* } } } } */
302 /* { dg-final { scan-assembler-times {fcmla\tv[0-9]+.8h, v[0-9]+.8h, v[0-9]+.h\[1\], #90} 1 { target { aarch64*-*-* } } } } */
303 /* { dg-final { scan-assembler-times {fcmla\tv[0-9]+.8h, v[0-9]+.8h, v[0-9]+.h\[3\], #0} 1 { target { aarch64*-*-* } } } } */
304 /* { dg-final { scan-assembler-times {fcmla\tv[0-9]+.8h, v[0-9]+.8h, v[0-9]+.h\[3\], #180} 1 { target { aarch64*-*-* } } } } */
305 /* { dg-final { scan-assembler-times {fcmla\tv[0-9]+.8h, v[0-9]+.8h, v[0-9]+.h\[3\], #270} 1 { target { aarch64*-*-* } } } } */
306 /* { dg-final { scan-assembler-times {fcmla\tv[0-9]+.8h, v[0-9]+.8h, v[0-9]+.h\[3\], #90} 1 { target { aarch64*-*-* } } } } */
307
308 /* { dg-final { scan-assembler-times {vcadd.f16\td[0-9]+, d[0-9]+, d[0-9]+, #90} 2 { target { arm*-*-* } } } } */
309 /* { dg-final { scan-assembler-times {vcadd.f16\tq[0-9]+, q[0-9]+, q[0-9]+, #90} 2 { target { arm*-*-* } } } } */
310 /* { dg-final { scan-assembler-times {vcmla.f16\td[0-9]+, d[0-9]+, d[0-9]+, #0} 1 { target { arm*-*-* } } } } */
311 /* { dg-final { scan-assembler-times {vcmla.f16\td[0-9]+, d[0-9]+, d[0-9]+\[0\], #0} 3 { target { arm*-*-* } } } } */
312 /* { dg-final { scan-assembler-times {vcmla.f16\td[0-9]+, d[0-9]+, d[0-9]+\[0\], #180} 3 { target { arm*-*-* } } } } */
313 /* { dg-final { scan-assembler-times {vcmla.f16\td[0-9]+, d[0-9]+, d[0-9]+\[0\], #270} 3 { target { arm*-*-* } } } } */
314 /* { dg-final { scan-assembler-times {vcmla.f16\td[0-9]+, d[0-9]+, d[0-9]+\[0\], #90} 3 { target { arm*-*-* } } } } */
315 /* { dg-final { scan-assembler-times {vcmla.f16\td[0-9]+, d[0-9]+, d[0-9]+\[1\], #0} 1 { target { arm*-*-* } } } } */
316 /* { dg-final { scan-assembler-times {vcmla.f16\td[0-9]+, d[0-9]+, d[0-9]+\[1\], #180} 1 { target { arm*-*-* } } } } */
317 /* { dg-final { scan-assembler-times {vcmla.f16\td[0-9]+, d[0-9]+, d[0-9]+\[1\], #270} 1 { target { arm*-*-* } } } } */
318 /* { dg-final { scan-assembler-times {vcmla.f16\td[0-9]+, d[0-9]+, d[0-9]+, #180} 1 { target { arm*-*-* } } } } */
319 /* { dg-final { scan-assembler-times {vcmla.f16\td[0-9]+, d[0-9]+, d[0-9]+\[1\], #90} 1 { target { arm*-*-* } } } } */
320 /* { dg-final { scan-assembler-times {vcmla.f16\td[0-9]+, d[0-9]+, d[0-9]+, #270} 1 { target { arm*-*-* } } } } */
321 /* { dg-final { scan-assembler-times {vcmla.f16\td[0-9]+, d[0-9]+, d[0-9]+, #90} 1 { target { arm*-*-* } } } } */
322 /* { dg-final { scan-assembler-times {vcmla.f16\tq[0-9]+, q[0-9]+, d[0-9]+\[0\], #0} 3 { target { arm*-*-* } } } } */
323 /* { dg-final { scan-assembler-times {vcmla.f16\tq[0-9]+, q[0-9]+, d[0-9]+\[0\], #180} 3 { target { arm*-*-* } } } } */
324 /* { dg-final { scan-assembler-times {vcmla.f16\tq[0-9]+, q[0-9]+, d[0-9]+\[0\], #270} 3 { target { arm*-*-* } } } } */
325 /* { dg-final { scan-assembler-times {vcmla.f16\tq[0-9]+, q[0-9]+, d[0-9]+\[0\], #90} 3 { target { arm*-*-* } } } } */
326 /* { dg-final { scan-assembler-times {vcmla.f16\tq[0-9]+, q[0-9]+, d[0-9]+\[1\], #0} 1 { target { arm*-*-* } } } } */
327 /* { dg-final { scan-assembler-times {vcmla.f16\tq[0-9]+, q[0-9]+, d[0-9]+\[1\], #180} 1 { target { arm*-*-* } } } } */
328 /* { dg-final { scan-assembler-times {vcmla.f16\tq[0-9]+, q[0-9]+, d[0-9]+\[1\], #270} 1 { target { arm*-*-* } } } } */
329 /* { dg-final { scan-assembler-times {vcmla.f16\tq[0-9]+, q[0-9]+, d[0-9]+\[1\], #90} 1 { target { arm*-*-* } } } } */
330 /* { dg-final { scan-assembler-times {vcmla.f16\tq[0-9]+, q[0-9]+, q[0-9]+, #0} 1 { target { arm*-*-* } } } } */
331 /* { dg-final { scan-assembler-times {vcmla.f16\tq[0-9]+, q[0-9]+, q[0-9]+, #180} 1 { target { arm*-*-* } } } } */
332 /* { dg-final { scan-assembler-times {vcmla.f16\tq[0-9]+, q[0-9]+, q[0-9]+, #270} 1 { target { arm*-*-* } } } } */
333 /* { dg-final { scan-assembler-times {vcmla.f16\tq[0-9]+, q[0-9]+, q[0-9]+, #90} 1 { target { arm*-*-* } } } } */