Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/aapcs64/type-def.h

raw
1 /* This header file defines some types that are used in the AAPCS64 tests. */
2
3
4 /* 64-bit vector of 2 floats. */
5 typedef float vf2_t __attribute__((vector_size (8)));
6
7 /* 128-bit vector of 4 floats. */
8 typedef float vf4_t __attribute__((vector_size (16)));
9
10 /* 128-bit vector of 4 ints. */
11 typedef int vi4_t __attribute__((vector_size (16)));
12
13 /* 128-bit vector of 1 quad precision float. */
14 typedef long double vlf1_t __attribute__((vector_size (16)));
15
16 /* 64-bit vector of 2 decimal floats. */
17 typedef _Decimal32 vdf2_t __attribute__((vector_size (8)));
18
19 /* 128-bit vector of 4 decimal floats. */
20 typedef _Decimal32 vdf4_t __attribute__((vector_size (16)));
21
22 /* 128-bit vector of 1 quad precision decimal float. */
23 typedef _Decimal128 vldf1_t __attribute__((vector_size (16)));
24
25 /* signed quad-word (in an union for the convenience of initialization). */
26 union int128_t
27 {
28 __int128 i;
29 struct
30 {
31 signed long long l64;
32 signed long long h64;
33 };
34 };
35
36 /* Homogeneous floating-point composite types. */
37
38 struct hfa_fx1_t
39 {
40 float a;
41 };
42
43 struct hfa_fx2_t
44 {
45 float a;
46 float b;
47 };
48
49 struct hfa_fx3_t
50 {
51 float a;
52 float b;
53 float c;
54 };
55
56 struct hfa_f16x1_t
57 {
58 __fp16 a;
59 };
60
61 struct hfa_f16x2_t
62 {
63 __fp16 a;
64 __fp16 b;
65 };
66
67 struct hfa_f16x3_t
68 {
69 __fp16 a;
70 __fp16 b;
71 __fp16 c;
72 };
73
74 struct hfa_dx2_t
75 {
76 double a;
77 double b;
78 };
79
80 struct hfa_dx4_t
81 {
82 double a;
83 double b;
84 double c;
85 double d;
86 };
87
88 struct hfa_ldx3_t
89 {
90 long double a;
91 long double b;
92 long double c;
93 };
94
95 struct hfa_ffs_t
96 {
97 float a;
98 float b;
99 struct hfa_fx2_t c;
100 };
101
102 union hfa_union_t
103 {
104 struct
105 {
106 float a;
107 float b;
108 } s;
109 float c;
110 };
111
112 /* Non homogeneous floating-point-composite types. */
113
114 struct non_hfa_fx5_t
115 {
116 float a;
117 float b;
118 float c;
119 float d;
120 float e;
121 };
122
123 struct non_hfa_ffs_t
124 {
125 float a;
126 float b;
127 struct hfa_dx2_t c;
128 };
129
130 struct non_hfa_ffs_2_t
131 {
132 struct
133 {
134 int a;
135 int b;
136 } s;
137 float c;
138 float d;
139 };
140
141 struct hva_vf2x1_t
142 {
143 vf2_t a;
144 };
145
146 struct hva_vf2x2_t
147 {
148 vf2_t a;
149 vf2_t b;
150 };
151
152 struct hva_vi4x1_t
153 {
154 vi4_t a;
155 };
156
157 struct non_hfa_ffd_t
158 {
159 float a;
160 float b;
161 double c;
162 };
163
164 struct non_hfa_ii_t
165 {
166 int a;
167 int b;
168 };
169
170 struct non_hfa_c_t
171 {
172 char a;
173 };
174
175 struct non_hfa_ffvf2_t
176 {
177 float a;
178 float b;
179 vf2_t c;
180 };
181
182 struct non_hfa_fffd_t
183 {
184 float a;
185 float b;
186 float c;
187 double d;
188 };
189
190 union non_hfa_union_t
191 {
192 double a;
193 float b;
194 };
195
196 /* Same, with decimal floating-point types. */
197 struct hfa_dfx1_t
198 {
199 _Decimal32 a;
200 };
201
202 struct hfa_dfx2_t
203 {
204 _Decimal32 a;
205 _Decimal32 b;
206 };
207
208 struct hfa_dfx3_t
209 {
210 _Decimal32 a;
211 _Decimal32 b;
212 _Decimal32 c;
213 };
214
215 struct hfa_ddx2_t
216 {
217 _Decimal64 a;
218 _Decimal64 b;
219 };
220
221 struct hfa_ddx4_t
222 {
223 _Decimal64 a;
224 _Decimal64 b;
225 _Decimal64 c;
226 _Decimal64 d;
227 };
228
229 struct hfa_dldx3_t
230 {
231 _Decimal128 a;
232 _Decimal128 b;
233 _Decimal128 c;
234 };
235
236 struct hfa_dffs_t
237 {
238 _Decimal32 a;
239 _Decimal32 b;
240 struct hfa_dfx2_t c;
241 };
242
243 union hfa_dunion_t
244 {
245 struct
246 {
247 _Decimal32 a;
248 _Decimal32 b;
249 } s;
250 _Decimal32 c;
251 };
252
253 struct non_hfa_dfx5_t
254 {
255 _Decimal32 a;
256 _Decimal32 b;
257 _Decimal32 c;
258 _Decimal32 d;
259 _Decimal32 e;
260 };
261
262 struct non_hfa_dffs_t
263 {
264 _Decimal32 a;
265 _Decimal32 b;
266 struct hfa_ddx2_t c;
267 };
268
269 struct non_hfa_dffs_2_t
270 {
271 struct
272 {
273 int a;
274 int b;
275 } s;
276 _Decimal32 c;
277 _Decimal32 d;
278 };
279
280 struct hva_vdf2x1_t
281 {
282 vdf2_t a;
283 };
284
285 struct hva_vdf2x2_t
286 {
287 vdf2_t a;
288 vdf2_t b;
289 };
290
291 struct non_hfa_dffd_t
292 {
293 _Decimal32 a;
294 _Decimal32 b;
295 _Decimal64 c;
296 };
297
298 struct non_hfa_dffvf2_t
299 {
300 _Decimal32 a;
301 _Decimal32 b;
302 vdf2_t c;
303 };
304
305 struct non_hfa_dfffd_t
306 {
307 _Decimal32 a;
308 _Decimal32 b;
309 _Decimal32 c;
310 _Decimal64 d;
311 };
312
313 union non_hfa_dunion_t
314 {
315 _Decimal64 a;
316 _Decimal32 b;
317 };