Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/base/user-15.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -march=rv32gc_zve32f_zvl64b -mabi=ilp32d" } */
3
4 #include "riscv_vector.h"
5
6 void f_vint8mf8x2_t () {vint8mf8x2_t t;}
7 void f_vuint8mf8x2_t () {vuint8mf8x2_t t;}
8 void f_vint8mf8x3_t () {vint8mf8x3_t t;}
9 void f_vuint8mf8x3_t () {vuint8mf8x3_t t;}
10 void f_vint8mf8x4_t () {vint8mf8x4_t t;}
11 void f_vuint8mf8x4_t () {vuint8mf8x4_t t;}
12 void f_vint8mf8x5_t () {vint8mf8x5_t t;}
13 void f_vuint8mf8x5_t () {vuint8mf8x5_t t;}
14 void f_vint8mf8x6_t () {vint8mf8x6_t t;}
15 void f_vuint8mf8x6_t () {vuint8mf8x6_t t;}
16 void f_vint8mf8x7_t () {vint8mf8x7_t t;}
17 void f_vuint8mf8x7_t () {vuint8mf8x7_t t;}
18 void f_vint8mf8x8_t () {vint8mf8x8_t t;}
19 void f_vuint8mf8x8_t () {vuint8mf8x8_t t;}
20 void f_vint8mf4x2_t () {vint8mf4x2_t t;}
21 void f_vuint8mf4x2_t () {vuint8mf4x2_t t;}
22 void f_vint8mf4x3_t () {vint8mf4x3_t t;}
23 void f_vuint8mf4x3_t () {vuint8mf4x3_t t;}
24 void f_vint8mf4x4_t () {vint8mf4x4_t t;}
25 void f_vuint8mf4x4_t () {vuint8mf4x4_t t;}
26 void f_vint8mf4x5_t () {vint8mf4x5_t t;}
27 void f_vuint8mf4x5_t () {vuint8mf4x5_t t;}
28 void f_vint8mf4x6_t () {vint8mf4x6_t t;}
29 void f_vuint8mf4x6_t () {vuint8mf4x6_t t;}
30 void f_vint8mf4x7_t () {vint8mf4x7_t t;}
31 void f_vuint8mf4x7_t () {vuint8mf4x7_t t;}
32 void f_vint8mf4x8_t () {vint8mf4x8_t t;}
33 void f_vuint8mf4x8_t () {vuint8mf4x8_t t;}
34 void f_vint8mf2x2_t () {vint8mf2x2_t t;}
35 void f_vuint8mf2x2_t () {vuint8mf2x2_t t;}
36 void f_vint8mf2x3_t () {vint8mf2x3_t t;}
37 void f_vuint8mf2x3_t () {vuint8mf2x3_t t;}
38 void f_vint8mf2x4_t () {vint8mf2x4_t t;}
39 void f_vuint8mf2x4_t () {vuint8mf2x4_t t;}
40 void f_vint8mf2x5_t () {vint8mf2x5_t t;}
41 void f_vuint8mf2x5_t () {vuint8mf2x5_t t;}
42 void f_vint8mf2x6_t () {vint8mf2x6_t t;}
43 void f_vuint8mf2x6_t () {vuint8mf2x6_t t;}
44 void f_vint8mf2x7_t () {vint8mf2x7_t t;}
45 void f_vuint8mf2x7_t () {vuint8mf2x7_t t;}
46 void f_vint8mf2x8_t () {vint8mf2x8_t t;}
47 void f_vuint8mf2x8_t () {vuint8mf2x8_t t;}
48 void f_vint8m1x2_t () {vint8m1x2_t t;}
49 void f_vuint8m1x2_t () {vuint8m1x2_t t;}
50 void f_vint8m1x3_t () {vint8m1x3_t t;}
51 void f_vuint8m1x3_t () {vuint8m1x3_t t;}
52 void f_vint8m1x4_t () {vint8m1x4_t t;}
53 void f_vuint8m1x4_t () {vuint8m1x4_t t;}
54 void f_vint8m1x5_t () {vint8m1x5_t t;}
55 void f_vuint8m1x5_t () {vuint8m1x5_t t;}
56 void f_vint8m1x6_t () {vint8m1x6_t t;}
57 void f_vuint8m1x6_t () {vuint8m1x6_t t;}
58 void f_vint8m1x7_t () {vint8m1x7_t t;}
59 void f_vuint8m1x7_t () {vuint8m1x7_t t;}
60 void f_vint8m1x8_t () {vint8m1x8_t t;}
61 void f_vuint8m1x8_t () {vuint8m1x8_t t;}
62 void f_vint8m2x2_t () {vint8m2x2_t t;}
63 void f_vuint8m2x2_t () {vuint8m2x2_t t;}
64 void f_vint8m2x3_t () {vint8m2x3_t t;}
65 void f_vuint8m2x3_t () {vuint8m2x3_t t;}
66 void f_vint8m2x4_t () {vint8m2x4_t t;}
67 void f_vuint8m2x4_t () {vuint8m2x4_t t;}
68 void f_vint8m4x2_t () {vint8m4x2_t t;}
69 void f_vuint8m4x2_t () {vuint8m4x2_t t;}
70 void f_vint16mf4x2_t () {vint16mf4x2_t t;}
71 void f_vuint16mf4x2_t () {vuint16mf4x2_t t;}
72 void f_vint16mf4x3_t () {vint16mf4x3_t t;}
73 void f_vuint16mf4x3_t () {vuint16mf4x3_t t;}
74 void f_vint16mf4x4_t () {vint16mf4x4_t t;}
75 void f_vuint16mf4x4_t () {vuint16mf4x4_t t;}
76 void f_vint16mf4x5_t () {vint16mf4x5_t t;}
77 void f_vuint16mf4x5_t () {vuint16mf4x5_t t;}
78 void f_vint16mf4x6_t () {vint16mf4x6_t t;}
79 void f_vuint16mf4x6_t () {vuint16mf4x6_t t;}
80 void f_vint16mf4x7_t () {vint16mf4x7_t t;}
81 void f_vuint16mf4x7_t () {vuint16mf4x7_t t;}
82 void f_vint16mf4x8_t () {vint16mf4x8_t t;}
83 void f_vuint16mf4x8_t () {vuint16mf4x8_t t;}
84 void f_vint16mf2x2_t () {vint16mf2x2_t t;}
85 void f_vuint16mf2x2_t () {vuint16mf2x2_t t;}
86 void f_vint16mf2x3_t () {vint16mf2x3_t t;}
87 void f_vuint16mf2x3_t () {vuint16mf2x3_t t;}
88 void f_vint16mf2x4_t () {vint16mf2x4_t t;}
89 void f_vuint16mf2x4_t () {vuint16mf2x4_t t;}
90 void f_vint16mf2x5_t () {vint16mf2x5_t t;}
91 void f_vuint16mf2x5_t () {vuint16mf2x5_t t;}
92 void f_vint16mf2x6_t () {vint16mf2x6_t t;}
93 void f_vuint16mf2x6_t () {vuint16mf2x6_t t;}
94 void f_vint16mf2x7_t () {vint16mf2x7_t t;}
95 void f_vuint16mf2x7_t () {vuint16mf2x7_t t;}
96 void f_vint16mf2x8_t () {vint16mf2x8_t t;}
97 void f_vuint16mf2x8_t () {vuint16mf2x8_t t;}
98 void f_vint16m1x2_t () {vint16m1x2_t t;}
99 void f_vuint16m1x2_t () {vuint16m1x2_t t;}
100 void f_vint16m1x3_t () {vint16m1x3_t t;}
101 void f_vuint16m1x3_t () {vuint16m1x3_t t;}
102 void f_vint16m1x4_t () {vint16m1x4_t t;}
103 void f_vuint16m1x4_t () {vuint16m1x4_t t;}
104 void f_vint16m1x5_t () {vint16m1x5_t t;}
105 void f_vuint16m1x5_t () {vuint16m1x5_t t;}
106 void f_vint16m1x6_t () {vint16m1x6_t t;}
107 void f_vuint16m1x6_t () {vuint16m1x6_t t;}
108 void f_vint16m1x7_t () {vint16m1x7_t t;}
109 void f_vuint16m1x7_t () {vuint16m1x7_t t;}
110 void f_vint16m1x8_t () {vint16m1x8_t t;}
111 void f_vuint16m1x8_t () {vuint16m1x8_t t;}
112 void f_vint16m2x2_t () {vint16m2x2_t t;}
113 void f_vuint16m2x2_t () {vuint16m2x2_t t;}
114 void f_vint16m2x3_t () {vint16m2x3_t t;}
115 void f_vuint16m2x3_t () {vuint16m2x3_t t;}
116 void f_vint16m2x4_t () {vint16m2x4_t t;}
117 void f_vuint16m2x4_t () {vuint16m2x4_t t;}
118 void f_vint16m4x2_t () {vint16m4x2_t t;}
119 void f_vuint16m4x2_t () {vuint16m4x2_t t;}
120 void f_vint32mf2x2_t () {vint32mf2x2_t t;}
121 void f_vuint32mf2x2_t () {vuint32mf2x2_t t;}
122 void f_vint32mf2x3_t () {vint32mf2x3_t t;}
123 void f_vuint32mf2x3_t () {vuint32mf2x3_t t;}
124 void f_vint32mf2x4_t () {vint32mf2x4_t t;}
125 void f_vuint32mf2x4_t () {vuint32mf2x4_t t;}
126 void f_vint32mf2x5_t () {vint32mf2x5_t t;}
127 void f_vuint32mf2x5_t () {vuint32mf2x5_t t;}
128 void f_vint32mf2x6_t () {vint32mf2x6_t t;}
129 void f_vuint32mf2x6_t () {vuint32mf2x6_t t;}
130 void f_vint32mf2x7_t () {vint32mf2x7_t t;}
131 void f_vuint32mf2x7_t () {vuint32mf2x7_t t;}
132 void f_vint32mf2x8_t () {vint32mf2x8_t t;}
133 void f_vuint32mf2x8_t () {vuint32mf2x8_t t;}
134 void f_vint32m1x2_t () {vint32m1x2_t t;}
135 void f_vuint32m1x2_t () {vuint32m1x2_t t;}
136 void f_vint32m1x3_t () {vint32m1x3_t t;}
137 void f_vuint32m1x3_t () {vuint32m1x3_t t;}
138 void f_vint32m1x4_t () {vint32m1x4_t t;}
139 void f_vuint32m1x4_t () {vuint32m1x4_t t;}
140 void f_vint32m1x5_t () {vint32m1x5_t t;}
141 void f_vuint32m1x5_t () {vuint32m1x5_t t;}
142 void f_vint32m1x6_t () {vint32m1x6_t t;}
143 void f_vuint32m1x6_t () {vuint32m1x6_t t;}
144 void f_vint32m1x7_t () {vint32m1x7_t t;}
145 void f_vuint32m1x7_t () {vuint32m1x7_t t;}
146 void f_vint32m1x8_t () {vint32m1x8_t t;}
147 void f_vuint32m1x8_t () {vuint32m1x8_t t;}
148 void f_vint32m2x2_t () {vint32m2x2_t t;}
149 void f_vuint32m2x2_t () {vuint32m2x2_t t;}
150 void f_vint32m2x3_t () {vint32m2x3_t t;}
151 void f_vuint32m2x3_t () {vuint32m2x3_t t;}
152 void f_vint32m2x4_t () {vint32m2x4_t t;}
153 void f_vuint32m2x4_t () {vuint32m2x4_t t;}
154 void f_vint32m4x2_t () {vint32m4x2_t t;}
155 void f_vuint32m4x2_t () {vuint32m4x2_t t;}
156 void f_vint64m1x2_t () {vint64m1x2_t t;}
157 void f_vuint64m1x2_t () {vuint64m1x2_t t;}
158 void f_vint64m1x3_t () {vint64m1x3_t t;}
159 void f_vuint64m1x3_t () {vuint64m1x3_t t;}
160 void f_vint64m1x4_t () {vint64m1x4_t t;}
161 void f_vuint64m1x4_t () {vuint64m1x4_t t;}
162 void f_vint64m1x5_t () {vint64m1x5_t t;}
163 void f_vuint64m1x5_t () {vuint64m1x5_t t;}
164 void f_vint64m1x6_t () {vint64m1x6_t t;}
165 void f_vuint64m1x6_t () {vuint64m1x6_t t;}
166 void f_vint64m1x7_t () {vint64m1x7_t t;}
167 void f_vuint64m1x7_t () {vuint64m1x7_t t;}
168 void f_vint64m1x8_t () {vint64m1x8_t t;}
169 void f_vuint64m1x8_t () {vuint64m1x8_t t;}
170 void f_vint64m2x2_t () {vint64m2x2_t t;}
171 void f_vuint64m2x2_t () {vuint64m2x2_t t;}
172 void f_vint64m2x3_t () {vint64m2x3_t t;}
173 void f_vuint64m2x3_t () {vuint64m2x3_t t;}
174 void f_vint64m2x4_t () {vint64m2x4_t t;}
175 void f_vuint64m2x4_t () {vuint64m2x4_t t;}
176 void f_vint64m4x2_t () {vint64m4x2_t t;}
177 void f_vuint64m4x2_t () {vuint64m4x2_t t;}
178 void f_vfloat32mf2x2_t () {vfloat32mf2x2_t t;}
179 void f_vfloat32mf2x3_t () {vfloat32mf2x3_t t;}
180 void f_vfloat32mf2x4_t () {vfloat32mf2x4_t t;}
181 void f_vfloat32mf2x5_t () {vfloat32mf2x5_t t;}
182 void f_vfloat32mf2x6_t () {vfloat32mf2x6_t t;}
183 void f_vfloat32mf2x7_t () {vfloat32mf2x7_t t;}
184 void f_vfloat32mf2x8_t () {vfloat32mf2x8_t t;}
185 void f_vfloat32m1x2_t () {vfloat32m1x2_t t;}
186 void f_vfloat32m1x3_t () {vfloat32m1x3_t t;}
187 void f_vfloat32m1x4_t () {vfloat32m1x4_t t;}
188 void f_vfloat32m1x5_t () {vfloat32m1x5_t t;}
189 void f_vfloat32m1x6_t () {vfloat32m1x6_t t;}
190 void f_vfloat32m1x7_t () {vfloat32m1x7_t t;}
191 void f_vfloat32m1x8_t () {vfloat32m1x8_t t;}
192 void f_vfloat32m2x2_t () {vfloat32m2x2_t t;}
193 void f_vfloat32m2x3_t () {vfloat32m2x3_t t;}
194 void f_vfloat32m2x4_t () {vfloat32m2x4_t t;}
195 void f_vfloat32m4x2_t () {vfloat32m4x2_t t;}
196
197 /* To support target attribute, the vfloat*m*x*_t need to be registered
198 in advance. We add type and args/return value check during the
199 set current function but cannot cover below cases. It is the same
200 behavior compared to aarch64 sve. */
201 void f_vfloat64m1x2_t () {vfloat64m1x2_t t;}
202 void f_vfloat64m1x3_t () {vfloat64m1x3_t t;}
203 void f_vfloat64m1x4_t () {vfloat64m1x4_t t;}
204 void f_vfloat64m1x5_t () {vfloat64m1x5_t t;}
205 void f_vfloat64m1x6_t () {vfloat64m1x6_t t;}
206 void f_vfloat64m1x7_t () {vfloat64m1x7_t t;}
207 void f_vfloat64m1x8_t () {vfloat64m1x8_t t;}
208 void f_vfloat64m2x2_t () {vfloat64m2x2_t t;}
209 void f_vfloat64m2x3_t () {vfloat64m2x3_t t;}
210 void f_vfloat64m2x4_t () {vfloat64m2x4_t t;}
211 void f_vfloat64m4x2_t () {vfloat64m4x2_t t;}
212
213 void new_f_vint64m1x2_t (vint64m1x2_t t) { } /* { dg-error {argument type 'vint64m1x2_t' requires the zve64x, zve64f, zve64d or v ISA extension} } */
214 void new_f_vuint64m1x2_t (vuint64m1x2_t t) { } /* { dg-error {argument type 'vuint64m1x2_t' requires the zve64x, zve64f, zve64d or v ISA extension} } */
215 void new_f_vint64m1x3_t (vint64m1x3_t t) { } /* { dg-error {argument type 'vint64m1x3_t' requires the zve64x, zve64f, zve64d or v ISA extension} } */
216 void new_f_vuint64m1x3_t (vuint64m1x3_t t) { } /* { dg-error {argument type 'vuint64m1x3_t' requires the zve64x, zve64f, zve64d or v ISA extension} } */
217 void new_f_vint64m1x4_t (vint64m1x4_t t) { } /* { dg-error {argument type 'vint64m1x4_t' requires the zve64x, zve64f, zve64d or v ISA extension} } */
218 void new_f_vuint64m1x4_t (vuint64m1x4_t t) { } /* { dg-error {argument type 'vuint64m1x4_t' requires the zve64x, zve64f, zve64d or v ISA extension} } */
219 void new_f_vint64m1x5_t (vint64m1x5_t t) { } /* { dg-error {argument type 'vint64m1x5_t' requires the zve64x, zve64f, zve64d or v ISA extension} } */
220 void new_f_vuint64m1x5_t (vuint64m1x5_t t) { } /* { dg-error {argument type 'vuint64m1x5_t' requires the zve64x, zve64f, zve64d or v ISA extension} } */
221 void new_f_vint64m1x6_t (vint64m1x6_t t) { } /* { dg-error {argument type 'vint64m1x6_t' requires the zve64x, zve64f, zve64d or v ISA extension} } */
222 void new_f_vuint64m1x6_t (vuint64m1x6_t t) { } /* { dg-error {argument type 'vuint64m1x6_t' requires the zve64x, zve64f, zve64d or v ISA extension} } */
223 void new_f_vint64m1x7_t (vint64m1x7_t t) { } /* { dg-error {argument type 'vint64m1x7_t' requires the zve64x, zve64f, zve64d or v ISA extension} } */
224 void new_f_vuint64m1x7_t (vuint64m1x7_t t) { } /* { dg-error {argument type 'vuint64m1x7_t' requires the zve64x, zve64f, zve64d or v ISA extension} } */
225 void new_f_vint64m1x8_t (vint64m1x8_t t) { } /* { dg-error {argument type 'vint64m1x8_t' requires the zve64x, zve64f, zve64d or v ISA extension} } */
226 void new_f_vuint64m1x8_t (vuint64m1x8_t t) { } /* { dg-error {argument type 'vuint64m1x8_t' requires the zve64x, zve64f, zve64d or v ISA extension} } */
227 void new_f_vint64m2x2_t (vint64m2x2_t t) { } /* { dg-error {argument type 'vint64m2x2_t' requires the zve64x, zve64f, zve64d or v ISA extension} } */
228 void new_f_vuint64m2x2_t (vuint64m2x2_t t) { } /* { dg-error {argument type 'vuint64m2x2_t' requires the zve64x, zve64f, zve64d or v ISA extension} } */
229 void new_f_vint64m2x3_t (vint64m2x3_t t) { } /* { dg-error {argument type 'vint64m2x3_t' requires the zve64x, zve64f, zve64d or v ISA extension} } */
230 void new_f_vuint64m2x3_t (vuint64m2x3_t t) { } /* { dg-error {argument type 'vuint64m2x3_t' requires the zve64x, zve64f, zve64d or v ISA extension} } */
231 void new_f_vint64m2x4_t (vint64m2x4_t t) { } /* { dg-error {argument type 'vint64m2x4_t' requires the zve64x, zve64f, zve64d or v ISA extension} } */
232 void new_f_vuint64m2x4_t (vuint64m2x4_t t) { } /* { dg-error {argument type 'vuint64m2x4_t' requires the zve64x, zve64f, zve64d or v ISA extension} } */
233 void new_f_vint64m4x2_t (vint64m4x2_t t) { } /* { dg-error {argument type 'vint64m4x2_t' requires the zve64x, zve64f, zve64d or v ISA extension} } */
234 void new_f_vuint64m4x2_t (vuint64m4x2_t t) { } /* { dg-error {argument type 'vuint64m4x2_t' requires the zve64x, zve64f, zve64d or v ISA extension} } */
235
236 void new_f_vfloat64m1x2_t (vfloat64m1x2_t t) { } /* { dg-error {argument type 'vfloat64m1x2_t' requires the zve64d or v ISA extension} } */
237 void new_f_vfloat64m1x3_t (vfloat64m1x3_t t) { } /* { dg-error {argument type 'vfloat64m1x3_t' requires the zve64d or v ISA extension} } */
238 void new_f_vfloat64m1x4_t (vfloat64m1x4_t t) { } /* { dg-error {argument type 'vfloat64m1x4_t' requires the zve64d or v ISA extension} } */
239 void new_f_vfloat64m1x5_t (vfloat64m1x5_t t) { } /* { dg-error {argument type 'vfloat64m1x5_t' requires the zve64d or v ISA extension} } */
240 void new_f_vfloat64m1x6_t (vfloat64m1x6_t t) { } /* { dg-error {argument type 'vfloat64m1x6_t' requires the zve64d or v ISA extension} } */
241 void new_f_vfloat64m1x7_t (vfloat64m1x7_t t) { } /* { dg-error {argument type 'vfloat64m1x7_t' requires the zve64d or v ISA extension} } */
242 void new_f_vfloat64m1x8_t (vfloat64m1x8_t t) { } /* { dg-error {argument type 'vfloat64m1x8_t' requires the zve64d or v ISA extension} } */
243 void new_f_vfloat64m2x2_t (vfloat64m2x2_t t) { } /* { dg-error {argument type 'vfloat64m2x2_t' requires the zve64d or v ISA extension} } */
244 void new_f_vfloat64m2x3_t (vfloat64m2x3_t t) { } /* { dg-error {argument type 'vfloat64m2x3_t' requires the zve64d or v ISA extension} } */
245 void new_f_vfloat64m2x4_t (vfloat64m2x4_t t) { } /* { dg-error {argument type 'vfloat64m2x4_t' requires the zve64d or v ISA extension} } */
246 void new_f_vfloat64m4x2_t (vfloat64m4x2_t t) { } /* { dg-error {argument type 'vfloat64m4x2_t' requires the zve64d or v ISA extension} } */