xref: /aosp_15_r20/external/clang/test/CodeGen/builtins-systemz-zvector-error.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // REQUIRES: systemz-registered-target
2*67e74705SXin Li // RUN: %clang_cc1 -target-cpu z13 -triple s390x-linux-gnu \
3*67e74705SXin Li // RUN: -fzvector -fno-lax-vector-conversions \
4*67e74705SXin Li // RUN: -Wall -Wno-unused -Werror -fsyntax-only -verify %s
5*67e74705SXin Li 
6*67e74705SXin Li #include <vecintrin.h>
7*67e74705SXin Li 
8*67e74705SXin Li volatile vector signed char vsc;
9*67e74705SXin Li volatile vector signed short vss;
10*67e74705SXin Li volatile vector signed int vsi;
11*67e74705SXin Li volatile vector signed long long vsl;
12*67e74705SXin Li volatile vector unsigned char vuc;
13*67e74705SXin Li volatile vector unsigned short vus;
14*67e74705SXin Li volatile vector unsigned int vui;
15*67e74705SXin Li volatile vector unsigned long long vul;
16*67e74705SXin Li volatile vector bool char vbc;
17*67e74705SXin Li volatile vector bool short vbs;
18*67e74705SXin Li volatile vector bool int vbi;
19*67e74705SXin Li volatile vector bool long long vbl;
20*67e74705SXin Li volatile vector double vd;
21*67e74705SXin Li 
22*67e74705SXin Li volatile signed char sc;
23*67e74705SXin Li volatile signed short ss;
24*67e74705SXin Li volatile signed int si;
25*67e74705SXin Li volatile signed long long sl;
26*67e74705SXin Li volatile unsigned char uc;
27*67e74705SXin Li volatile unsigned short us;
28*67e74705SXin Li volatile unsigned int ui;
29*67e74705SXin Li volatile unsigned long long ul;
30*67e74705SXin Li volatile double d;
31*67e74705SXin Li 
32*67e74705SXin Li const void * volatile cptr;
33*67e74705SXin Li const signed char * volatile cptrsc;
34*67e74705SXin Li const signed short * volatile cptrss;
35*67e74705SXin Li const signed int * volatile cptrsi;
36*67e74705SXin Li const signed long long * volatile cptrsl;
37*67e74705SXin Li const unsigned char * volatile cptruc;
38*67e74705SXin Li const unsigned short * volatile cptrus;
39*67e74705SXin Li const unsigned int * volatile cptrui;
40*67e74705SXin Li const unsigned long long * volatile cptrul;
41*67e74705SXin Li const float * volatile cptrf;
42*67e74705SXin Li const double * volatile cptrd;
43*67e74705SXin Li 
44*67e74705SXin Li void * volatile ptr;
45*67e74705SXin Li signed char * volatile ptrsc;
46*67e74705SXin Li signed short * volatile ptrss;
47*67e74705SXin Li signed int * volatile ptrsi;
48*67e74705SXin Li signed long long * volatile ptrsl;
49*67e74705SXin Li unsigned char * volatile ptruc;
50*67e74705SXin Li unsigned short * volatile ptrus;
51*67e74705SXin Li unsigned int * volatile ptrui;
52*67e74705SXin Li unsigned long long * volatile ptrul;
53*67e74705SXin Li float * volatile ptrf;
54*67e74705SXin Li double * volatile ptrd;
55*67e74705SXin Li 
56*67e74705SXin Li volatile unsigned int len;
57*67e74705SXin Li volatile int idx;
58*67e74705SXin Li int cc;
59*67e74705SXin Li 
test_core(void)60*67e74705SXin Li void test_core(void) {
61*67e74705SXin Li   len = __lcbb(cptr, idx);   // expected-error {{no matching function}}
62*67e74705SXin Li                              // [email protected]:* {{must be a constant power of 2 from 64 to 4096}}
63*67e74705SXin Li   len = __lcbb(cptr, 200);   // expected-error {{no matching function}}
64*67e74705SXin Li                              // [email protected]:* {{must be a constant power of 2 from 64 to 4096}}
65*67e74705SXin Li   len = __lcbb(cptr, 32);    // expected-error {{no matching function}}
66*67e74705SXin Li                              // [email protected]:* {{must be a constant power of 2 from 64 to 4096}}
67*67e74705SXin Li   len = __lcbb(cptr, 8192);  // expected-error {{no matching function}}
68*67e74705SXin Li                              // [email protected]:* {{must be a constant power of 2 from 64 to 4096}}
69*67e74705SXin Li 
70*67e74705SXin Li   vsl = vec_permi(vsl, vsl, idx); // expected-error {{no matching function}}
71*67e74705SXin Li                                   // [email protected]:* 3 {{candidate function not viable}}
72*67e74705SXin Li                                   // [email protected]:* 1 {{must be a constant integer from 0 to 3}}
73*67e74705SXin Li   vsl = vec_permi(vsl, vsl, -1);  // expected-error {{no matching function}}
74*67e74705SXin Li                                   // [email protected]:* 3 {{candidate function not viable}}
75*67e74705SXin Li                                   // [email protected]:* 1 {{must be a constant integer from 0 to 3}}
76*67e74705SXin Li   vsl = vec_permi(vsl, vsl, 4);   // expected-error {{no matching function}}
77*67e74705SXin Li                                   // [email protected]:* 3 {{candidate function not viable}}
78*67e74705SXin Li                                   // [email protected]:* 1 {{must be a constant integer from 0 to 3}}
79*67e74705SXin Li   vul = vec_permi(vul, vul, idx); // expected-error {{no matching function}}
80*67e74705SXin Li                                   // [email protected]:* 2 {{candidate function not viable}}
81*67e74705SXin Li                                   // [email protected]:* 2 {{must be a constant integer from 0 to 3}}
82*67e74705SXin Li   vul = vec_permi(vul, vul, -1);  // expected-error {{no matching function}}
83*67e74705SXin Li                                   // [email protected]:* 2 {{candidate function not viable}}
84*67e74705SXin Li                                   // [email protected]:* 2 {{must be a constant integer from 0 to 3}}
85*67e74705SXin Li   vul = vec_permi(vul, vul, 4);   // expected-error {{no matching function}}
86*67e74705SXin Li                                   // [email protected]:* 2 {{candidate function not viable}}
87*67e74705SXin Li                                   // [email protected]:* 2 {{must be a constant integer from 0 to 3}}
88*67e74705SXin Li   vbl = vec_permi(vbl, vbl, idx); // expected-error {{no matching function}}
89*67e74705SXin Li                                   // [email protected]:* 2 {{candidate function not viable}}
90*67e74705SXin Li                                   // [email protected]:* 2 {{must be a constant integer from 0 to 3}}
91*67e74705SXin Li   vbl = vec_permi(vbl, vbl, -1);  // expected-error {{no matching function}}
92*67e74705SXin Li                                   // [email protected]:* 2 {{candidate function not viable}}
93*67e74705SXin Li                                   // [email protected]:* 2 {{must be a constant integer from 0 to 3}}
94*67e74705SXin Li   vbl = vec_permi(vbl, vbl, 4);   // expected-error {{no matching function}}
95*67e74705SXin Li                                   // [email protected]:* 2 {{candidate function not viable}}
96*67e74705SXin Li                                   // [email protected]:* 2 {{must be a constant integer from 0 to 3}}
97*67e74705SXin Li   vd = vec_permi(vd, vd, idx);    // expected-error {{no matching function}}
98*67e74705SXin Li                                   // [email protected]:* 3 {{candidate function not viable}}
99*67e74705SXin Li                                   // [email protected]:* 1 {{must be a constant integer from 0 to 3}}
100*67e74705SXin Li   vd = vec_permi(vd, vd, -1);     // expected-error {{no matching function}}
101*67e74705SXin Li                                   // [email protected]:* 3 {{candidate function not viable}}
102*67e74705SXin Li                                   // [email protected]:* 1 {{must be a constant integer from 0 to 3}}
103*67e74705SXin Li   vd = vec_permi(vd, vd, 4);      // expected-error {{no matching function}}
104*67e74705SXin Li                                   // [email protected]:* 3 {{candidate function not viable}}
105*67e74705SXin Li                                   // [email protected]:* 1 {{must be a constant integer from 0 to 3}}
106*67e74705SXin Li 
107*67e74705SXin Li   vsi = vec_gather_element(vsi, vui, cptrsi, idx); // expected-error {{no matching function}}
108*67e74705SXin Li                                                    // [email protected]:* 6 {{candidate function not viable}}
109*67e74705SXin Li                                                    // [email protected]:* 1 {{must be a constant integer from 0 to 3}}
110*67e74705SXin Li   vsi = vec_gather_element(vsi, vui, cptrsi, -1);  // expected-error {{no matching function}}
111*67e74705SXin Li                                                    // [email protected]:* 6 {{candidate function not viable}}
112*67e74705SXin Li                                                    // [email protected]:* 1 {{must be a constant integer from 0 to 3}}
113*67e74705SXin Li   vsi = vec_gather_element(vsi, vui, cptrsi, 4);   // expected-error {{no matching function}}
114*67e74705SXin Li                                                    // [email protected]:* 6 {{candidate function not viable}}
115*67e74705SXin Li                                                    // [email protected]:* 1 {{must be a constant integer from 0 to 3}}
116*67e74705SXin Li   vui = vec_gather_element(vui, vui, cptrui, idx); // expected-error {{no matching function}}
117*67e74705SXin Li                                                    // [email protected]:* 5 {{candidate function not viable}}
118*67e74705SXin Li                                                    // [email protected]:* 2 {{must be a constant integer from 0 to 3}}
119*67e74705SXin Li   vui = vec_gather_element(vui, vui, cptrui, -1);  // expected-error {{no matching function}}
120*67e74705SXin Li                                                    // [email protected]:* 5 {{candidate function not viable}}
121*67e74705SXin Li                                                    // [email protected]:* 2 {{must be a constant integer from 0 to 3}}
122*67e74705SXin Li   vui = vec_gather_element(vui, vui, cptrui, 4);   // expected-error {{no matching function}}
123*67e74705SXin Li                                                    // [email protected]:* 5 {{candidate function not viable}}
124*67e74705SXin Li                                                    // [email protected]:* 2 {{must be a constant integer from 0 to 3}}
125*67e74705SXin Li   vbi = vec_gather_element(vbi, vui, cptrui, idx); // expected-error {{no matching function}}
126*67e74705SXin Li                                                    // [email protected]:* 5 {{candidate function not viable}}
127*67e74705SXin Li                                                    // [email protected]:* 2 {{must be a constant integer from 0 to 3}}
128*67e74705SXin Li   vbi = vec_gather_element(vbi, vui, cptrui, -1);  // expected-error {{no matching function}}
129*67e74705SXin Li                                                    // [email protected]:* 5 {{candidate function not viable}}
130*67e74705SXin Li                                                    // [email protected]:* 2 {{must be a constant integer from 0 to 3}}
131*67e74705SXin Li   vbi = vec_gather_element(vbi, vui, cptrui, 4);   // expected-error {{no matching function}}
132*67e74705SXin Li                                                    // [email protected]:* 5 {{candidate function not viable}}
133*67e74705SXin Li                                                    // [email protected]:* 2 {{must be a constant integer from 0 to 3}}
134*67e74705SXin Li   vsl = vec_gather_element(vsl, vul, cptrsl, idx); // expected-error {{no matching function}}
135*67e74705SXin Li                                                    // [email protected]:* 6 {{candidate function not viable}}
136*67e74705SXin Li                                                    // [email protected]:* 1 {{must be a constant integer from 0 to 1}}
137*67e74705SXin Li   vsl = vec_gather_element(vsl, vul, cptrsl, -1);  // expected-error {{no matching function}}
138*67e74705SXin Li                                                    // [email protected]:* 6 {{candidate function not viable}}
139*67e74705SXin Li                                                    // [email protected]:* 1 {{must be a constant integer from 0 to 1}}
140*67e74705SXin Li   vsl = vec_gather_element(vsl, vul, cptrsl, 2);   // expected-error {{no matching function}}
141*67e74705SXin Li                                                    // [email protected]:* 6 {{candidate function not viable}}
142*67e74705SXin Li                                                    // [email protected]:* 1 {{must be a constant integer from 0 to 1}}
143*67e74705SXin Li   vul = vec_gather_element(vul, vul, cptrul, idx); // expected-error {{no matching function}}
144*67e74705SXin Li                                                    // [email protected]:* 5 {{candidate function not viable}}
145*67e74705SXin Li                                                    // [email protected]:* 2 {{must be a constant integer from 0 to 1}}
146*67e74705SXin Li   vul = vec_gather_element(vul, vul, cptrul, -1);  // expected-error {{no matching function}}
147*67e74705SXin Li                                                    // [email protected]:* 5 {{candidate function not viable}}
148*67e74705SXin Li                                                    // [email protected]:* 2 {{must be a constant integer from 0 to 1}}
149*67e74705SXin Li   vul = vec_gather_element(vul, vul, cptrul, 2);   // expected-error {{no matching function}}
150*67e74705SXin Li                                                    // [email protected]:* 5 {{candidate function not viable}}
151*67e74705SXin Li                                                    // [email protected]:* 2 {{must be a constant integer from 0 to 1}}
152*67e74705SXin Li   vbl = vec_gather_element(vbl, vul, cptrul, idx); // expected-error {{no matching function}}
153*67e74705SXin Li                                                    // [email protected]:* 5 {{candidate function not viable}}
154*67e74705SXin Li                                                    // [email protected]:* 2 {{must be a constant integer from 0 to 1}}
155*67e74705SXin Li   vbl = vec_gather_element(vbl, vul, cptrul, -1);  // expected-error {{no matching function}}
156*67e74705SXin Li                                                    // [email protected]:* 5 {{candidate function not viable}}
157*67e74705SXin Li                                                    // [email protected]:* 2 {{must be a constant integer from 0 to 1}}
158*67e74705SXin Li   vbl = vec_gather_element(vbl, vul, cptrul, 2);   // expected-error {{no matching function}}
159*67e74705SXin Li                                                    // [email protected]:* 5 {{candidate function not viable}}
160*67e74705SXin Li                                                    // [email protected]:* 2 {{must be a constant integer from 0 to 1}}
161*67e74705SXin Li   vd = vec_gather_element(vd, vul, cptrd, idx);    // expected-error {{no matching function}}
162*67e74705SXin Li                                                    // [email protected]:* 6 {{candidate function not viable}}
163*67e74705SXin Li                                                    // [email protected]:* 1 {{must be a constant integer from 0 to 1}}
164*67e74705SXin Li   vd = vec_gather_element(vd, vul, cptrd, -1);     // expected-error {{no matching function}}
165*67e74705SXin Li                                                    // [email protected]:* 6 {{candidate function not viable}}
166*67e74705SXin Li                                                    // [email protected]:* 1 {{must be a constant integer from 0 to 1}}
167*67e74705SXin Li   vd = vec_gather_element(vd, vul, cptrd, 2);      // expected-error {{no matching function}}
168*67e74705SXin Li                                                    // [email protected]:* 6 {{candidate function not viable}}
169*67e74705SXin Li                                                    // [email protected]:* 1 {{must be a constant integer from 0 to 1}}
170*67e74705SXin Li 
171*67e74705SXin Li   vec_scatter_element(vsi, vui, ptrsi, idx); // expected-error {{no matching function}}
172*67e74705SXin Li                                              // [email protected]:* 6 {{candidate function not viable}}
173*67e74705SXin Li                                              // [email protected]:* 1 {{must be a constant integer from 0 to 3}}
174*67e74705SXin Li   vec_scatter_element(vsi, vui, ptrsi, -1);  // expected-error {{no matching function}}
175*67e74705SXin Li                                              // [email protected]:* 6 {{candidate function not viable}}
176*67e74705SXin Li                                              // [email protected]:* 1 {{must be a constant integer from 0 to 3}}
177*67e74705SXin Li   vec_scatter_element(vsi, vui, ptrsi, 4);   // expected-error {{no matching function}}
178*67e74705SXin Li                                              // [email protected]:* 6 {{candidate function not viable}}
179*67e74705SXin Li                                              // [email protected]:* 1 {{must be a constant integer from 0 to 3}}
180*67e74705SXin Li   vec_scatter_element(vui, vui, ptrui, idx); // expected-error {{no matching function}}
181*67e74705SXin Li                                              // [email protected]:* 5 {{candidate function not viable}}
182*67e74705SXin Li                                              // [email protected]:* 2 {{must be a constant integer from 0 to 3}}
183*67e74705SXin Li   vec_scatter_element(vui, vui, ptrui, -1);  // expected-error {{no matching function}}
184*67e74705SXin Li                                              // [email protected]:* 5 {{candidate function not viable}}
185*67e74705SXin Li                                              // [email protected]:* 2 {{must be a constant integer from 0 to 3}}
186*67e74705SXin Li   vec_scatter_element(vui, vui, ptrui, 4);   // expected-error {{no matching function}}
187*67e74705SXin Li                                              // [email protected]:* 5 {{candidate function not viable}}
188*67e74705SXin Li                                              // [email protected]:* 2 {{must be a constant integer from 0 to 3}}
189*67e74705SXin Li   vec_scatter_element(vbi, vui, ptrui, idx); // expected-error {{no matching function}}
190*67e74705SXin Li                                              // [email protected]:* 5 {{candidate function not viable}}
191*67e74705SXin Li                                              // [email protected]:* 2 {{must be a constant integer from 0 to 3}}
192*67e74705SXin Li   vec_scatter_element(vbi, vui, ptrui, -1);  // expected-error {{no matching function}}
193*67e74705SXin Li                                              // [email protected]:* 5 {{candidate function not viable}}
194*67e74705SXin Li                                              // [email protected]:* 2 {{must be a constant integer from 0 to 3}}
195*67e74705SXin Li   vec_scatter_element(vbi, vui, ptrui, 4);   // expected-error {{no matching function}}
196*67e74705SXin Li                                              // [email protected]:* 5 {{candidate function not viable}}
197*67e74705SXin Li                                              // [email protected]:* 2 {{must be a constant integer from 0 to 3}}
198*67e74705SXin Li   vec_scatter_element(vsl, vul, ptrsl, idx); // expected-error {{no matching function}}
199*67e74705SXin Li                                              // [email protected]:* 6 {{candidate function not viable}}
200*67e74705SXin Li                                              // [email protected]:* 1 {{must be a constant integer from 0 to 1}}
201*67e74705SXin Li   vec_scatter_element(vsl, vul, ptrsl, -1);  // expected-error {{no matching function}}
202*67e74705SXin Li                                              // [email protected]:* 6 {{candidate function not viable}}
203*67e74705SXin Li                                              // [email protected]:* 1 {{must be a constant integer from 0 to 1}}
204*67e74705SXin Li   vec_scatter_element(vsl, vul, ptrsl, 2);   // expected-error {{no matching function}}
205*67e74705SXin Li                                              // [email protected]:* 6 {{candidate function not viable}}
206*67e74705SXin Li                                              // [email protected]:* 1 {{must be a constant integer from 0 to 1}}
207*67e74705SXin Li   vec_scatter_element(vul, vul, ptrul, idx); // expected-error {{no matching function}}
208*67e74705SXin Li                                              // [email protected]:* 5 {{candidate function not viable}}
209*67e74705SXin Li                                              // [email protected]:* 2 {{must be a constant integer from 0 to 1}}
210*67e74705SXin Li   vec_scatter_element(vul, vul, ptrul, -1);  // expected-error {{no matching function}}
211*67e74705SXin Li                                              // [email protected]:* 5 {{candidate function not viable}}
212*67e74705SXin Li                                              // [email protected]:* 2 {{must be a constant integer from 0 to 1}}
213*67e74705SXin Li   vec_scatter_element(vul, vul, ptrul, 2);   // expected-error {{no matching function}}
214*67e74705SXin Li                                              // [email protected]:* 5 {{candidate function not viable}}
215*67e74705SXin Li                                              // [email protected]:* 2 {{must be a constant integer from 0 to 1}}
216*67e74705SXin Li   vec_scatter_element(vbl, vul, ptrul, idx); // expected-error {{no matching function}}
217*67e74705SXin Li                                              // [email protected]:* 5 {{candidate function not viable}}
218*67e74705SXin Li                                              // [email protected]:* 2 {{must be a constant integer from 0 to 1}}
219*67e74705SXin Li   vec_scatter_element(vbl, vul, ptrul, -1);  // expected-error {{no matching function}}
220*67e74705SXin Li                                              // [email protected]:* 5 {{candidate function not viable}}
221*67e74705SXin Li                                              // [email protected]:* 2 {{must be a constant integer from 0 to 1}}
222*67e74705SXin Li   vec_scatter_element(vbl, vul, ptrul, 2);   // expected-error {{no matching function}}
223*67e74705SXin Li                                              // [email protected]:* 5 {{candidate function not viable}}
224*67e74705SXin Li                                              // [email protected]:* 2 {{must be a constant integer from 0 to 1}}
225*67e74705SXin Li   vec_scatter_element(vd, vul, ptrd, idx);   // expected-error {{no matching function}}
226*67e74705SXin Li                                              // [email protected]:* 6 {{candidate function not viable}}
227*67e74705SXin Li                                              // [email protected]:* 1 {{must be a constant integer from 0 to 1}}
228*67e74705SXin Li   vec_scatter_element(vd, vul, ptrd, -1);    // expected-error {{no matching function}}
229*67e74705SXin Li                                              // [email protected]:* 6 {{candidate function not viable}}
230*67e74705SXin Li                                              // [email protected]:* 1 {{must be a constant integer from 0 to 1}}
231*67e74705SXin Li   vec_scatter_element(vd, vul, ptrd, 2);     // expected-error {{no matching function}}
232*67e74705SXin Li                                              // [email protected]:* 6 {{candidate function not viable}}
233*67e74705SXin Li                                              // [email protected]:* 1 {{must be a constant integer from 0 to 1}}
234*67e74705SXin Li 
235*67e74705SXin Li   vsc = vec_load_bndry(cptrsc, idx);   // expected-error {{no matching function}}
236*67e74705SXin Li                                        // [email protected]:* 8 {{candidate function not viable}}
237*67e74705SXin Li                                        // [email protected]:* 1 {{must be a constant power of 2 from 64 to 4096}}
238*67e74705SXin Li   vsc = vec_load_bndry(cptrsc, 200);   // expected-error {{no matching function}}
239*67e74705SXin Li                                        // [email protected]:* 8 {{candidate function not viable}}
240*67e74705SXin Li                                        // [email protected]:* 1 {{must be a constant power of 2 from 64 to 4096}}
241*67e74705SXin Li   vsc = vec_load_bndry(cptrsc, 32);    // expected-error {{no matching function}}
242*67e74705SXin Li                                        // [email protected]:* 8 {{candidate function not viable}}
243*67e74705SXin Li                                        // [email protected]:* 1 {{must be a constant power of 2 from 64 to 4096}}
244*67e74705SXin Li   vsc = vec_load_bndry(cptrsc, 8192);  // expected-error {{no matching function}}
245*67e74705SXin Li                                        // [email protected]:* 8 {{candidate function not viable}}
246*67e74705SXin Li                                        // [email protected]:* 1 {{must be a constant power of 2 from 64 to 4096}}
247*67e74705SXin Li   vuc = vec_load_bndry(cptruc, idx);   // expected-error {{no matching function}}
248*67e74705SXin Li                                        // [email protected]:* 8 {{candidate function not viable}}
249*67e74705SXin Li                                        // [email protected]:* 1 {{must be a constant power of 2 from 64 to 4096}}
250*67e74705SXin Li   vss = vec_load_bndry(cptrss, idx);   // expected-error {{no matching function}}
251*67e74705SXin Li                                        // [email protected]:* 8 {{candidate function not viable}}
252*67e74705SXin Li                                        // [email protected]:* 1 {{must be a constant power of 2 from 64 to 4096}}
253*67e74705SXin Li   vus = vec_load_bndry(cptrus, idx);   // expected-error {{no matching function}}
254*67e74705SXin Li                                        // [email protected]:* 8 {{candidate function not viable}}
255*67e74705SXin Li                                        // [email protected]:* 1 {{must be a constant power of 2 from 64 to 4096}}
256*67e74705SXin Li   vsi = vec_load_bndry(cptrsi, idx);   // expected-error {{no matching function}}
257*67e74705SXin Li                                        // [email protected]:* 8 {{candidate function not viable}}
258*67e74705SXin Li                                        // [email protected]:* 1 {{must be a constant power of 2 from 64 to 4096}}
259*67e74705SXin Li   vui = vec_load_bndry(cptrui, idx);   // expected-error {{no matching function}}
260*67e74705SXin Li                                        // [email protected]:* 8 {{candidate function not viable}}
261*67e74705SXin Li                                        // [email protected]:* 1 {{must be a constant power of 2 from 64 to 4096}}
262*67e74705SXin Li   vsl = vec_load_bndry(cptrsl, idx);   // expected-error {{no matching function}}
263*67e74705SXin Li                                        // [email protected]:* 8 {{candidate function not viable}}
264*67e74705SXin Li                                        // [email protected]:* 1 {{must be a constant power of 2 from 64 to 4096}}
265*67e74705SXin Li   vul = vec_load_bndry(cptrul, idx);   // expected-error {{no matching function}}
266*67e74705SXin Li                                        // [email protected]:* 8 {{candidate function not viable}}
267*67e74705SXin Li                                        // [email protected]:* 1 {{must be a constant power of 2 from 64 to 4096}}
268*67e74705SXin Li 
269*67e74705SXin Li   vuc = vec_genmask(idx);  // expected-error {{no matching function}}
270*67e74705SXin Li                            // [email protected]:* {{must be a constant integer}}
271*67e74705SXin Li 
272*67e74705SXin Li   vuc = vec_genmasks_8(0, idx);    // expected-error {{no matching function}}
273*67e74705SXin Li                                    // [email protected]:* {{must be a constant integer}}
274*67e74705SXin Li   vuc = vec_genmasks_8(idx, 0);    // expected-error {{no matching function}}
275*67e74705SXin Li                                    // [email protected]:* {{must be a constant integer}}
276*67e74705SXin Li   vuc = vec_genmasks_8(idx, idx);  // expected-error {{no matching function}}
277*67e74705SXin Li                                    // [email protected]:* {{must be a constant integer}}
278*67e74705SXin Li   vus = vec_genmasks_16(0, idx);   // expected-error {{no matching function}}
279*67e74705SXin Li                                    // [email protected]:* {{must be a constant integer}}
280*67e74705SXin Li   vus = vec_genmasks_16(idx, 0);   // expected-error {{no matching function}}
281*67e74705SXin Li                                    // [email protected]:* {{must be a constant integer}}
282*67e74705SXin Li   vus = vec_genmasks_16(idx, idx); // expected-error {{no matching function}}
283*67e74705SXin Li                                    // [email protected]:* {{must be a constant integer}}
284*67e74705SXin Li   vui = vec_genmasks_32(0, idx);   // expected-error {{no matching function}}
285*67e74705SXin Li                                    // [email protected]:* {{must be a constant integer}}
286*67e74705SXin Li   vui = vec_genmasks_32(idx, 0);   // expected-error {{no matching function}}
287*67e74705SXin Li                                    // [email protected]:* {{must be a constant integer}}
288*67e74705SXin Li   vui = vec_genmasks_32(idx, idx); // expected-error {{no matching function}}
289*67e74705SXin Li                                    // [email protected]:* {{must be a constant integer}}
290*67e74705SXin Li   vul = vec_genmasks_64(0, idx);   // expected-error {{no matching function}}
291*67e74705SXin Li                                    // [email protected]:* {{must be a constant integer}}
292*67e74705SXin Li   vul = vec_genmasks_64(idx, 0);   // expected-error {{no matching function}}
293*67e74705SXin Li                                    // [email protected]:* {{must be a constant integer}}
294*67e74705SXin Li   vul = vec_genmasks_64(idx, idx); // expected-error {{no matching function}}
295*67e74705SXin Li                                    // [email protected]:* {{must be a constant integer}}
296*67e74705SXin Li 
297*67e74705SXin Li   vsc = vec_splat(vsc, idx); // expected-error {{no matching function}}
298*67e74705SXin Li                              // [email protected]:* 12 {{candidate function not viable}}
299*67e74705SXin Li                              // [email protected]:* 1 {{must be a constant integer from 0 to 15}}
300*67e74705SXin Li   vsc = vec_splat(vsc, -1);  // expected-error {{no matching function}}
301*67e74705SXin Li                              // [email protected]:* 12 {{candidate function not viable}}
302*67e74705SXin Li                              // [email protected]:* 1 {{must be a constant integer from 0 to 15}}
303*67e74705SXin Li   vsc = vec_splat(vsc, 16);  // expected-error {{no matching function}}
304*67e74705SXin Li                              // [email protected]:* 12 {{candidate function not viable}}
305*67e74705SXin Li                              // [email protected]:* 1 {{must be a constant integer from 0 to 15}}
306*67e74705SXin Li   vuc = vec_splat(vuc, idx); // expected-error {{no matching function}}
307*67e74705SXin Li                              // [email protected]:* 11 {{candidate function not viable}}
308*67e74705SXin Li                              // [email protected]:* 2 {{must be a constant integer from 0 to 15}}
309*67e74705SXin Li   vuc = vec_splat(vuc, -1);  // expected-error {{no matching function}}
310*67e74705SXin Li                              // [email protected]:* 11 {{candidate function not viable}}
311*67e74705SXin Li                              // [email protected]:* 2 {{must be a constant integer from 0 to 15}}
312*67e74705SXin Li   vuc = vec_splat(vuc, 16);  // expected-error {{no matching function}}
313*67e74705SXin Li                              // [email protected]:* 11 {{candidate function not viable}}
314*67e74705SXin Li                              // [email protected]:* 2 {{must be a constant integer from 0 to 15}}
315*67e74705SXin Li   vbc = vec_splat(vbc, idx); // expected-error {{no matching function}}
316*67e74705SXin Li                              // [email protected]:* 11 {{candidate function not viable}}
317*67e74705SXin Li                              // [email protected]:* 2 {{must be a constant integer from 0 to 15}}
318*67e74705SXin Li   vbc = vec_splat(vbc, -1);  // expected-error {{no matching function}}
319*67e74705SXin Li                              // [email protected]:* 11 {{candidate function not viable}}
320*67e74705SXin Li                              // [email protected]:* 2 {{must be a constant integer from 0 to 15}}
321*67e74705SXin Li   vbc = vec_splat(vbc, 16);  // expected-error {{no matching function}}
322*67e74705SXin Li                              // [email protected]:* 11 {{candidate function not viable}}
323*67e74705SXin Li                              // [email protected]:* 2 {{must be a constant integer from 0 to 15}}
324*67e74705SXin Li   vss = vec_splat(vss, idx); // expected-error {{no matching function}}
325*67e74705SXin Li                              // [email protected]:* 12 {{candidate function not viable}}
326*67e74705SXin Li                              // [email protected]:* 1 {{must be a constant integer from 0 to 7}}
327*67e74705SXin Li   vss = vec_splat(vss, -1);  // expected-error {{no matching function}}
328*67e74705SXin Li                              // [email protected]:* 12 {{candidate function not viable}}
329*67e74705SXin Li                              // [email protected]:* 1 {{must be a constant integer from 0 to 7}}
330*67e74705SXin Li   vss = vec_splat(vss, 8);   // expected-error {{no matching function}}
331*67e74705SXin Li                              // [email protected]:* 12 {{candidate function not viable}}
332*67e74705SXin Li                              // [email protected]:* 1 {{must be a constant integer from 0 to 7}}
333*67e74705SXin Li   vus = vec_splat(vus, idx); // expected-error {{no matching function}}
334*67e74705SXin Li                              // [email protected]:* 11 {{candidate function not viable}}
335*67e74705SXin Li                              // [email protected]:* 2 {{must be a constant integer from 0 to 7}}
336*67e74705SXin Li   vus = vec_splat(vus, -1);  // expected-error {{no matching function}}
337*67e74705SXin Li                              // [email protected]:* 11 {{candidate function not viable}}
338*67e74705SXin Li                              // [email protected]:* 2 {{must be a constant integer from 0 to 7}}
339*67e74705SXin Li   vus = vec_splat(vus, 8);   // expected-error {{no matching function}}
340*67e74705SXin Li                              // [email protected]:* 11 {{candidate function not viable}}
341*67e74705SXin Li                              // [email protected]:* 2 {{must be a constant integer from 0 to 7}}
342*67e74705SXin Li   vbs = vec_splat(vbs, idx); // expected-error {{no matching function}}
343*67e74705SXin Li                              // [email protected]:* 11 {{candidate function not viable}}
344*67e74705SXin Li                              // [email protected]:* 2 {{must be a constant integer from 0 to 7}}
345*67e74705SXin Li   vbs = vec_splat(vbs, -1);  // expected-error {{no matching function}}
346*67e74705SXin Li                              // [email protected]:* 11 {{candidate function not viable}}
347*67e74705SXin Li                              // [email protected]:* 2 {{must be a constant integer from 0 to 7}}
348*67e74705SXin Li   vbs = vec_splat(vbs, 8);   // expected-error {{no matching function}}
349*67e74705SXin Li                              // [email protected]:* 11 {{candidate function not viable}}
350*67e74705SXin Li                              // [email protected]:* 2 {{must be a constant integer from 0 to 7}}
351*67e74705SXin Li   vsi = vec_splat(vsi, idx); // expected-error {{no matching function}}
352*67e74705SXin Li                              // [email protected]:* 12 {{candidate function not viable}}
353*67e74705SXin Li                              // [email protected]:* 1 {{must be a constant integer from 0 to 3}}
354*67e74705SXin Li   vsi = vec_splat(vsi, -1);  // expected-error {{no matching function}}
355*67e74705SXin Li                              // [email protected]:* 12 {{candidate function not viable}}
356*67e74705SXin Li                              // [email protected]:* 1 {{must be a constant integer from 0 to 3}}
357*67e74705SXin Li   vsi = vec_splat(vsi, 4);   // expected-error {{no matching function}}
358*67e74705SXin Li                              // [email protected]:* 12 {{candidate function not viable}}
359*67e74705SXin Li                              // [email protected]:* 1 {{must be a constant integer from 0 to 3}}
360*67e74705SXin Li   vui = vec_splat(vui, idx); // expected-error {{no matching function}}
361*67e74705SXin Li                              // [email protected]:* 11 {{candidate function not viable}}
362*67e74705SXin Li                              // [email protected]:* 2 {{must be a constant integer from 0 to 3}}
363*67e74705SXin Li   vui = vec_splat(vui, -1);  // expected-error {{no matching function}}
364*67e74705SXin Li                              // [email protected]:* 11 {{candidate function not viable}}
365*67e74705SXin Li                              // [email protected]:* 2 {{must be a constant integer from 0 to 3}}
366*67e74705SXin Li   vui = vec_splat(vui, 4);   // expected-error {{no matching function}}
367*67e74705SXin Li                              // [email protected]:* 11 {{candidate function not viable}}
368*67e74705SXin Li                              // [email protected]:* 2 {{must be a constant integer from 0 to 3}}
369*67e74705SXin Li   vbi = vec_splat(vbi, idx); // expected-error {{no matching function}}
370*67e74705SXin Li                              // [email protected]:* 11 {{candidate function not viable}}
371*67e74705SXin Li                              // [email protected]:* 2 {{must be a constant integer from 0 to 3}}
372*67e74705SXin Li   vbi = vec_splat(vbi, -1);  // expected-error {{no matching function}}
373*67e74705SXin Li                              // [email protected]:* 11 {{candidate function not viable}}
374*67e74705SXin Li                              // [email protected]:* 2 {{must be a constant integer from 0 to 3}}
375*67e74705SXin Li   vbi = vec_splat(vbi, 4);   // expected-error {{no matching function}}
376*67e74705SXin Li                              // [email protected]:* 11 {{candidate function not viable}}
377*67e74705SXin Li                              // [email protected]:* 2 {{must be a constant integer from 0 to 3}}
378*67e74705SXin Li   vsl = vec_splat(vsl, idx); // expected-error {{no matching function}}
379*67e74705SXin Li                              // [email protected]:* 12 {{candidate function not viable}}
380*67e74705SXin Li                              // [email protected]:* 1 {{must be a constant integer from 0 to 1}}
381*67e74705SXin Li   vsl = vec_splat(vsl, -1);  // expected-error {{no matching function}}
382*67e74705SXin Li                              // [email protected]:* 12 {{candidate function not viable}}
383*67e74705SXin Li                              // [email protected]:* 1 {{must be a constant integer from 0 to 1}}
384*67e74705SXin Li   vsl = vec_splat(vsl, 2);   // expected-error {{no matching function}}
385*67e74705SXin Li                              // [email protected]:* 12 {{candidate function not viable}}
386*67e74705SXin Li                              // [email protected]:* 1 {{must be a constant integer from 0 to 1}}
387*67e74705SXin Li   vul = vec_splat(vul, idx); // expected-error {{no matching function}}
388*67e74705SXin Li                              // [email protected]:* 11 {{candidate function not viable}}
389*67e74705SXin Li                              // [email protected]:* 2 {{must be a constant integer from 0 to 1}}
390*67e74705SXin Li   vul = vec_splat(vul, -1);  // expected-error {{no matching function}}
391*67e74705SXin Li                              // [email protected]:* 11 {{candidate function not viable}}
392*67e74705SXin Li                              // [email protected]:* 2 {{must be a constant integer from 0 to 1}}
393*67e74705SXin Li   vul = vec_splat(vul, 2);   // expected-error {{no matching function}}
394*67e74705SXin Li                              // [email protected]:* 11 {{candidate function not viable}}
395*67e74705SXin Li                              // [email protected]:* 2 {{must be a constant integer from 0 to 1}}
396*67e74705SXin Li   vbl = vec_splat(vbl, idx); // expected-error {{no matching function}}
397*67e74705SXin Li                              // [email protected]:* 11 {{candidate function not viable}}
398*67e74705SXin Li                              // [email protected]:* 2 {{must be a constant integer from 0 to 1}}
399*67e74705SXin Li   vbl = vec_splat(vbl, -1);  // expected-error {{no matching function}}
400*67e74705SXin Li                              // [email protected]:* 11 {{candidate function not viable}}
401*67e74705SXin Li                              // [email protected]:* 2 {{must be a constant integer from 0 to 1}}
402*67e74705SXin Li   vbl = vec_splat(vbl, 2);   // expected-error {{no matching function}}
403*67e74705SXin Li                              // [email protected]:* 11 {{candidate function not viable}}
404*67e74705SXin Li                              // [email protected]:* 2 {{must be a constant integer from 0 to 1}}
405*67e74705SXin Li   vd = vec_splat(vd, idx);   // expected-error {{no matching function}}
406*67e74705SXin Li                              // [email protected]:* 12 {{candidate function not viable}}
407*67e74705SXin Li                              // [email protected]:* 1 {{must be a constant integer from 0 to 1}}
408*67e74705SXin Li   vd = vec_splat(vd, -1);    // expected-error {{no matching function}}
409*67e74705SXin Li                              // [email protected]:* 12 {{candidate function not viable}}
410*67e74705SXin Li                              // [email protected]:* 1 {{must be a constant integer from 0 to 1}}
411*67e74705SXin Li   vd = vec_splat(vd, 2);     // expected-error {{no matching function}}
412*67e74705SXin Li                              // [email protected]:* 12 {{candidate function not viable}}
413*67e74705SXin Li                              // [email protected]:* 1 {{must be a constant integer from 0 to 1}}
414*67e74705SXin Li 
415*67e74705SXin Li   vsc = vec_splat_s8(idx);  // expected-error {{no matching function}}
416*67e74705SXin Li                             // [email protected]:* {{must be a constant integer}}
417*67e74705SXin Li   vuc = vec_splat_u8(idx);  // expected-error {{no matching function}}
418*67e74705SXin Li                             // [email protected]:* {{must be a constant integer}}
419*67e74705SXin Li   vss = vec_splat_s16(idx); // expected-error {{no matching function}}
420*67e74705SXin Li                             // [email protected]:* {{must be a constant integer}}
421*67e74705SXin Li   vus = vec_splat_u16(idx); // expected-error {{no matching function}}
422*67e74705SXin Li                             // [email protected]:* {{must be a constant integer}}
423*67e74705SXin Li   vsi = vec_splat_s32(idx); // expected-error {{no matching function}}
424*67e74705SXin Li                             // [email protected]:* {{must be a constant integer}}
425*67e74705SXin Li   vui = vec_splat_u32(idx); // expected-error {{no matching function}}
426*67e74705SXin Li                             // [email protected]:* {{must be a constant integer}}
427*67e74705SXin Li   vsl = vec_splat_s64(idx); // expected-error {{no matching function}}
428*67e74705SXin Li                             // [email protected]:* {{must be a constant integer}}
429*67e74705SXin Li   vul = vec_splat_u64(idx); // expected-error {{no matching function}}
430*67e74705SXin Li                             // [email protected]:* {{must be a constant integer}}
431*67e74705SXin Li }
432*67e74705SXin Li 
test_integer(void)433*67e74705SXin Li void test_integer(void) {
434*67e74705SXin Li   vsc = vec_rl_mask(vsc, vuc, idx); // expected-error {{no matching function}}
435*67e74705SXin Li                                     // [email protected]:* 7 {{candidate function not viable}}
436*67e74705SXin Li                                     // [email protected]:* 1 {{must be a constant integer}}
437*67e74705SXin Li   vuc = vec_rl_mask(vuc, vuc, idx); // expected-error {{no matching function}}
438*67e74705SXin Li                                     // [email protected]:* 7 {{candidate function not viable}}
439*67e74705SXin Li                                     // [email protected]:* 1 {{must be a constant integer}}
440*67e74705SXin Li   vss = vec_rl_mask(vss, vus, idx); // expected-error {{no matching function}}
441*67e74705SXin Li                                     // [email protected]:* 7 {{candidate function not viable}}
442*67e74705SXin Li                                     // [email protected]:* 1 {{must be a constant integer}}
443*67e74705SXin Li   vus = vec_rl_mask(vus, vus, idx); // expected-error {{no matching function}}
444*67e74705SXin Li                                     // [email protected]:* 7 {{candidate function not viable}}
445*67e74705SXin Li                                     // [email protected]:* 1 {{must be a constant integer}}
446*67e74705SXin Li   vsi = vec_rl_mask(vsi, vui, idx); // expected-error {{no matching function}}
447*67e74705SXin Li                                     // [email protected]:* 7 {{candidate function not viable}}
448*67e74705SXin Li                                     // [email protected]:* 1 {{must be a constant integer}}
449*67e74705SXin Li   vui = vec_rl_mask(vui, vui, idx); // expected-error {{no matching function}}
450*67e74705SXin Li                                     // [email protected]:* 7 {{candidate function not viable}}
451*67e74705SXin Li                                     // [email protected]:* 1 {{must be a constant integer}}
452*67e74705SXin Li   vsl = vec_rl_mask(vsl, vul, idx); // expected-error {{no matching function}}
453*67e74705SXin Li                                     // [email protected]:* 7 {{candidate function not viable}}
454*67e74705SXin Li                                     // [email protected]:* 1 {{must be a constant integer}}
455*67e74705SXin Li   vul = vec_rl_mask(vul, vul, idx); // expected-error {{no matching function}}
456*67e74705SXin Li                                     // [email protected]:* 7 {{candidate function not viable}}
457*67e74705SXin Li                                     // [email protected]:* 1 {{must be a constant integer}}
458*67e74705SXin Li 
459*67e74705SXin Li   vsc = vec_sld(vsc, vsc, idx); // expected-error {{no matching function}}
460*67e74705SXin Li                                 // [email protected]:* 8 {{candidate function not viable}}
461*67e74705SXin Li                                 // [email protected]:* 1 {{must be a constant integer from 0 to 15}}
462*67e74705SXin Li   vsc = vec_sld(vsc, vsc, -1);  // expected-error {{no matching function}}
463*67e74705SXin Li                                 // [email protected]:* 8 {{candidate function not viable}}
464*67e74705SXin Li                                 // [email protected]:* 1 {{must be a constant integer from 0 to 15}}
465*67e74705SXin Li   vsc = vec_sld(vsc, vsc, 16);  // expected-error {{no matching function}}
466*67e74705SXin Li                                 // [email protected]:* 8 {{candidate function not viable}}
467*67e74705SXin Li                                 // [email protected]:* 1 {{must be a constant integer from 0 to 15}}
468*67e74705SXin Li   vuc = vec_sld(vuc, vuc, idx); // expected-error {{no matching function}}
469*67e74705SXin Li                                 // [email protected]:* 8 {{candidate function not viable}}
470*67e74705SXin Li                                 // [email protected]:* 1 {{must be a constant integer from 0 to 15}}
471*67e74705SXin Li   vuc = vec_sld(vuc, vuc, -1);  // expected-error {{no matching function}}
472*67e74705SXin Li                                 // [email protected]:* 8 {{candidate function not viable}}
473*67e74705SXin Li                                 // [email protected]:* 1 {{must be a constant integer from 0 to 15}}
474*67e74705SXin Li   vuc = vec_sld(vuc, vuc, 16);  // expected-error {{no matching function}}
475*67e74705SXin Li                                 // [email protected]:* 8 {{candidate function not viable}}
476*67e74705SXin Li                                 // [email protected]:* 1 {{must be a constant integer from 0 to 15}}
477*67e74705SXin Li   vss = vec_sld(vss, vss, idx); // expected-error {{no matching function}}
478*67e74705SXin Li                                 // [email protected]:* 8 {{candidate function not viable}}
479*67e74705SXin Li                                 // [email protected]:* 1 {{must be a constant integer from 0 to 15}}
480*67e74705SXin Li   vus = vec_sld(vus, vus, idx); // expected-error {{no matching function}}
481*67e74705SXin Li                                 // [email protected]:* 8 {{candidate function not viable}}
482*67e74705SXin Li                                 // [email protected]:* 1 {{must be a constant integer from 0 to 15}}
483*67e74705SXin Li   vsi = vec_sld(vsi, vsi, idx); // expected-error {{no matching function}}
484*67e74705SXin Li                                 // [email protected]:* 8 {{candidate function not viable}}
485*67e74705SXin Li                                 // [email protected]:* 1 {{must be a constant integer from 0 to 15}}
486*67e74705SXin Li   vui = vec_sld(vui, vui, idx); // expected-error {{no matching function}}
487*67e74705SXin Li                                 // [email protected]:* 8 {{candidate function not viable}}
488*67e74705SXin Li                                 // [email protected]:* 1 {{must be a constant integer from 0 to 15}}
489*67e74705SXin Li   vsl = vec_sld(vsl, vsl, idx); // expected-error {{no matching function}}
490*67e74705SXin Li                                 // [email protected]:* 8 {{candidate function not viable}}
491*67e74705SXin Li                                 // [email protected]:* 1 {{must be a constant integer from 0 to 15}}
492*67e74705SXin Li   vul = vec_sld(vul, vul, idx); // expected-error {{no matching function}}
493*67e74705SXin Li                                 // [email protected]:* 8 {{candidate function not viable}}
494*67e74705SXin Li                                 // [email protected]:* 1 {{must be a constant integer from 0 to 15}}
495*67e74705SXin Li   vd = vec_sld(vd, vd, idx);    // expected-error {{no matching function}}
496*67e74705SXin Li                                 // [email protected]:* 8 {{candidate function not viable}}
497*67e74705SXin Li                                 // [email protected]:* 1 {{must be a constant integer from 0 to 15}}
498*67e74705SXin Li 
499*67e74705SXin Li   vsc = vec_sldw(vsc, vsc, idx); // expected-error {{no matching function}}
500*67e74705SXin Li                                  // [email protected]:* 8 {{candidate function not viable}}
501*67e74705SXin Li                                  // [email protected]:* 1 {{must be a constant integer from 0 to 3}}
502*67e74705SXin Li   vsc = vec_sldw(vsc, vsc, -1);  // expected-error {{no matching function}}
503*67e74705SXin Li                                  // [email protected]:* 8 {{candidate function not viable}}
504*67e74705SXin Li                                  // [email protected]:* 1 {{must be a constant integer from 0 to 3}}
505*67e74705SXin Li   vsc = vec_sldw(vsc, vsc, 4);   // expected-error {{no matching function}}
506*67e74705SXin Li                                  // [email protected]:* 8 {{candidate function not viable}}
507*67e74705SXin Li                                  // [email protected]:* 1 {{must be a constant integer from 0 to 3}}
508*67e74705SXin Li   vuc = vec_sldw(vuc, vuc, idx); // expected-error {{no matching function}}
509*67e74705SXin Li                                  // [email protected]:* 8 {{candidate function not viable}}
510*67e74705SXin Li                                  // [email protected]:* 1 {{must be a constant integer from 0 to 3}}
511*67e74705SXin Li   vuc = vec_sldw(vuc, vuc, -1);  // expected-error {{no matching function}}
512*67e74705SXin Li                                  // [email protected]:* 8 {{candidate function not viable}}
513*67e74705SXin Li                                  // [email protected]:* 1 {{must be a constant integer from 0 to 3}}
514*67e74705SXin Li   vuc = vec_sldw(vuc, vuc, 4);   // expected-error {{no matching function}}
515*67e74705SXin Li                                  // [email protected]:* 8 {{candidate function not viable}}
516*67e74705SXin Li                                  // [email protected]:* 1 {{must be a constant integer from 0 to 3}}
517*67e74705SXin Li   vss = vec_sldw(vss, vss, idx); // expected-error {{no matching function}}
518*67e74705SXin Li                                  // [email protected]:* 8 {{candidate function not viable}}
519*67e74705SXin Li                                  // [email protected]:* 1 {{must be a constant integer from 0 to 3}}
520*67e74705SXin Li   vus = vec_sldw(vus, vus, idx); // expected-error {{no matching function}}
521*67e74705SXin Li                                  // [email protected]:* 8 {{candidate function not viable}}
522*67e74705SXin Li                                  // [email protected]:* 1 {{must be a constant integer from 0 to 3}}
523*67e74705SXin Li   vsi = vec_sldw(vsi, vsi, idx); // expected-error {{no matching function}}
524*67e74705SXin Li                                  // [email protected]:* 8 {{candidate function not viable}}
525*67e74705SXin Li                                  // [email protected]:* 1 {{must be a constant integer from 0 to 3}}
526*67e74705SXin Li   vui = vec_sldw(vui, vui, idx); // expected-error {{no matching function}}
527*67e74705SXin Li                                  // [email protected]:* 8 {{candidate function not viable}}
528*67e74705SXin Li                                  // [email protected]:* 1 {{must be a constant integer from 0 to 3}}
529*67e74705SXin Li   vsl = vec_sldw(vsl, vsl, idx); // expected-error {{no matching function}}
530*67e74705SXin Li                                  // [email protected]:* 8 {{candidate function not viable}}
531*67e74705SXin Li                                  // [email protected]:* 1 {{must be a constant integer from 0 to 3}}
532*67e74705SXin Li   vul = vec_sldw(vul, vul, idx); // expected-error {{no matching function}}
533*67e74705SXin Li                                  // [email protected]:* 8 {{candidate function not viable}}
534*67e74705SXin Li                                  // [email protected]:* 1 {{must be a constant integer from 0 to 3}}
535*67e74705SXin Li   vd = vec_sldw(vd, vd, idx);    // expected-error {{no matching function}}
536*67e74705SXin Li                                  // [email protected]:* 8 {{candidate function not viable}}
537*67e74705SXin Li                                  // [email protected]:* 1 {{must be a constant integer from 0 to 3}}
538*67e74705SXin Li }
539*67e74705SXin Li 
test_float(void)540*67e74705SXin Li void test_float(void) {
541*67e74705SXin Li   vd = vec_ctd(vsl, idx); // expected-error {{no matching function}}
542*67e74705SXin Li                           // [email protected]:* 1 {{candidate function not viable}}
543*67e74705SXin Li                           // [email protected]:* 1 {{must be a constant integer from 0 to 31}}
544*67e74705SXin Li   vd = vec_ctd(vsl, -1);  // expected-error {{no matching function}}
545*67e74705SXin Li                           // [email protected]:* 1 {{candidate function not viable}}
546*67e74705SXin Li                           // [email protected]:* 1 {{must be a constant integer from 0 to 31}}
547*67e74705SXin Li   vd = vec_ctd(vsl, 32);  // expected-error {{no matching function}}
548*67e74705SXin Li                           // [email protected]:* 1 {{candidate function not viable}}
549*67e74705SXin Li                           // [email protected]:* 1 {{must be a constant integer from 0 to 31}}
550*67e74705SXin Li   vd = vec_ctd(vul, idx); // expected-error {{no matching function}}
551*67e74705SXin Li                           // [email protected]:* 1 {{candidate function not viable}}
552*67e74705SXin Li                           // [email protected]:* 1 {{must be a constant integer from 0 to 31}}
553*67e74705SXin Li   vd = vec_ctd(vul, -1);  // expected-error {{no matching function}}
554*67e74705SXin Li                           // [email protected]:* 1 {{candidate function not viable}}
555*67e74705SXin Li                           // [email protected]:* 1 {{must be a constant integer from 0 to 31}}
556*67e74705SXin Li   vd = vec_ctd(vul, 32);  // expected-error {{no matching function}}
557*67e74705SXin Li                           // [email protected]:* 1 {{candidate function not viable}}
558*67e74705SXin Li                           // [email protected]:* 1 {{must be a constant integer from 0 to 31}}
559*67e74705SXin Li 
560*67e74705SXin Li   vsl = vec_ctsl(vd, idx); // expected-error {{no matching function}}
561*67e74705SXin Li                            // [email protected]:* 1 {{must be a constant integer from 0 to 31}}
562*67e74705SXin Li   vsl = vec_ctsl(vd, -1);  // expected-error {{no matching function}}
563*67e74705SXin Li                            // [email protected]:* 1 {{must be a constant integer from 0 to 31}}
564*67e74705SXin Li   vsl = vec_ctsl(vd, 32);  // expected-error {{no matching function}}
565*67e74705SXin Li                            // [email protected]:* 1 {{must be a constant integer from 0 to 31}}
566*67e74705SXin Li   vul = vec_ctul(vd, idx); // expected-error {{no matching function}}
567*67e74705SXin Li                            // [email protected]:* 1 {{must be a constant integer from 0 to 31}}
568*67e74705SXin Li   vul = vec_ctul(vd, -1);  // expected-error {{no matching function}}
569*67e74705SXin Li                            // [email protected]:* 1 {{must be a constant integer from 0 to 31}}
570*67e74705SXin Li   vul = vec_ctul(vd, 32);  // expected-error {{no matching function}}
571*67e74705SXin Li                            // [email protected]:* 1 {{must be a constant integer from 0 to 31}}
572*67e74705SXin Li 
573*67e74705SXin Li   vbl = vec_fp_test_data_class(vd, idx, &cc);  // expected-error {{must be a constant integer}}
574*67e74705SXin Li   vbl = vec_fp_test_data_class(vd, -1, &cc);   // expected-error {{should be a value from 0 to 4095}}
575*67e74705SXin Li   vbl = vec_fp_test_data_class(vd, 4096, &cc); // expected-error {{should be a value from 0 to 4095}}
576*67e74705SXin Li }
577