Debian Codegraph @

gcc/testsuite/gcc.dg/bitint-93.c

raw
1 /* PR middle-end/114073 */
2 /* { dg-do compile { target bitint } } */
3 /* { dg-options "-O2 -Wno-psabi" } */
4 /* { dg-additional-options "-mavx512f" { target i?86-*-* x86_64-*-* } } */
5
6 typedef int V __attribute__((vector_size (sizeof (_BitInt(256)))));
7 typedef int W __attribute__((vector_size (sizeof (_BitInt(512)))));
8
9 #if __BITINT_MAXWIDTH__ >= 256 && defined (__SIZEOF_INT128__)
10 _Complex __int128
11 f1 (_BitInt(256) x)
12 {
13 union U { _BitInt(256) x; _Complex __int128 y; } u;
14 u.x = x;
15 return u.y;
16 }
17
18 _Complex __int128
19 f2 (_BitInt(254) x)
20 {
21 union U { _BitInt(254) x; _Complex __int128 y; } u;
22 u.x = x;
23 return u.y;
24 }
25
26 _BitInt(256)
27 f3 (_Complex __int128 x)
28 {
29 union U { _BitInt(256) x; _Complex __int128 y; } u;
30 u.y = x;
31 return u.x;
32 }
33
34 _BitInt(252)
35 f4 (_Complex __int128 x)
36 {
37 union U { _BitInt(252) x; _Complex __int128 y; } u;
38 u.y = x;
39 return u.x;
40 }
41
42 _Complex __int128
43 f5 (_BitInt(256) x)
44 {
45 union U { _BitInt(256) x; _Complex __int128 y; } u;
46 u.x = x + 1;
47 return u.y;
48 }
49
50 _Complex __int128
51 f6 (_BitInt(254) x)
52 {
53 union U { _BitInt(254) x; _Complex __int128 y; } u;
54 u.x = x + 1;
55 return u.y;
56 }
57
58 _Complex __int128
59 f7 (_BitInt(256) *x)
60 {
61 union U { _BitInt(256) x; _Complex __int128 y; } u;
62 u.x = *x + 1;
63 return u.y;
64 }
65
66 _Complex __int128
67 f8 (_BitInt(254) *x)
68 {
69 union U { _BitInt(254) x; _Complex __int128 y; } u;
70 u.x = *x + 1;
71 return u.y;
72 }
73
74 _BitInt(256)
75 f9 (_Complex __int128 x)
76 {
77 union U { _BitInt(256) x; _Complex __int128 y; } u;
78 u.y = x;
79 return u.x + 1;
80 }
81
82 _BitInt(252)
83 f10 (_Complex __int128 x)
84 {
85 union U { _BitInt(252) x; _Complex __int128 y; } u;
86 u.y = x;
87 return u.x + 1;
88 }
89 #endif
90
91 #if __BITINT_MAXWIDTH__ >= 256
92 V
93 f11 (_BitInt(256) x)
94 {
95 union U { _BitInt(256) x; V y; } u;
96 u.x = x;
97 return u.y;
98 }
99
100 V
101 f12 (_BitInt(254) x)
102 {
103 union U { _BitInt(254) x; V y; } u;
104 u.x = x;
105 return u.y;
106 }
107
108 _BitInt(256)
109 f13 (V x)
110 {
111 union U { _BitInt(256) x; V y; } u;
112 u.y = x;
113 return u.x;
114 }
115
116 _BitInt(252)
117 f14 (V x)
118 {
119 union U { _BitInt(252) x; V y; } u;
120 u.y = x;
121 return u.x;
122 }
123
124 V
125 f15 (_BitInt(256) x)
126 {
127 union U { _BitInt(256) x; V y; } u;
128 u.x = x + 1;
129 return u.y;
130 }
131
132 V
133 f16 (_BitInt(254) x)
134 {
135 union U { _BitInt(254) x; V y; } u;
136 u.x = x + 1;
137 return u.y;
138 }
139
140 V
141 f17 (_BitInt(256) *x)
142 {
143 union U { _BitInt(256) x; V y; } u;
144 u.x = *x + 1;
145 return u.y;
146 }
147
148 V
149 f18 (_BitInt(254) *x)
150 {
151 union U { _BitInt(254) x; V y; } u;
152 u.x = *x + 1;
153 return u.y;
154 }
155
156 _BitInt(256)
157 f19 (V x)
158 {
159 union U { _BitInt(256) x; V y; } u;
160 u.y = x;
161 return u.x + 1;
162 }
163
164 _BitInt(252)
165 f20 (V x)
166 {
167 union U { _BitInt(252) x; V y; } u;
168 u.y = x;
169 return u.x + 1;
170 }
171 #endif
172
173 #if __BITINT_MAXWIDTH__ >= 512
174 W
175 f21 (_BitInt(512) x)
176 {
177 union U { _BitInt(512) x; W y; } u;
178 u.x = x;
179 return u.y;
180 }
181
182 W
183 f22 (_BitInt(509) x)
184 {
185 union U { _BitInt(509) x; W y; } u;
186 u.x = x;
187 return u.y;
188 }
189
190 _BitInt(512)
191 f23 (W x)
192 {
193 union U { _BitInt(512) x; W y; } u;
194 u.y = x;
195 return u.x;
196 }
197
198 _BitInt(506)
199 f24 (W x)
200 {
201 union U { _BitInt(506) x; W y; } u;
202 u.y = x;
203 return u.x;
204 }
205
206 W
207 f25 (_BitInt(512) x)
208 {
209 union U { _BitInt(512) x; W y; } u;
210 u.x = x + 1;
211 return u.y;
212 }
213
214 W
215 f26 (_BitInt(509) x)
216 {
217 union U { _BitInt(509) x; W y; } u;
218 u.x = x + 1;
219 return u.y;
220 }
221
222 W
223 f27 (_BitInt(512) *x)
224 {
225 union U { _BitInt(512) x; W y; } u;
226 u.x = *x + 1;
227 return u.y;
228 }
229
230 W
231 f28 (_BitInt(509) *x)
232 {
233 union U { _BitInt(509) x; W y; } u;
234 u.x = *x + 1;
235 return u.y;
236 }
237
238 _BitInt(512)
239 f29 (W x)
240 {
241 union U { _BitInt(512) x; W y; } u;
242 u.y = x;
243 return u.x + 1;
244 }
245
246 _BitInt(506)
247 f30 (W x)
248 {
249 union U { _BitInt(506) x; W y; } u;
250 u.y = x;
251 return u.x + 1;
252 }
253 #endif