Debian Codegraph @

gcc/testsuite/gcc.dg/torture/bitint-7.c

raw
1 /* PR c/102989 */
2 /* { dg-do run { target bitint } } */
3 /* { dg-options "-std=c23 -pedantic-errors" } */
4 /* { dg-skip-if "" { ! run_expensive_tests } { "*" } { "-O0" "-O2" } } */
5 /* { dg-skip-if "" { ! run_expensive_tests } { "-flto" } { "" } } */
6
7 #if __BITINT_MAXWIDTH__ >= 135
8 __attribute__((noipa)) void
9 test135 (unsigned _BitInt(135) *p, unsigned _BitInt(135) *q,
10 int n1, int n2, int n3, int n4)
11 {
12 p[0] = q[0] << n1;
13 p[1] = q[1] >> n1;
14 p[2] = ((_BitInt(135)) q[2]) >> n1;
15 p[3] = ((_BitInt(135)) q[3]) >> n1;
16 p[4] = q[0] << n2;
17 p[5] = q[1] >> n2;
18 p[6] = ((_BitInt(135)) q[2]) >> n2;
19 p[7] = ((_BitInt(135)) q[3]) >> n2;
20 p[8] = q[0] << n3;
21 p[9] = q[1] >> n3;
22 p[10] = ((_BitInt(135)) q[2]) >> n3;
23 p[11] = ((_BitInt(135)) q[3]) >> n3;
24 p[12] = q[0] << n4;
25 p[13] = q[1] >> n4;
26 p[14] = ((_BitInt(135)) q[2]) >> n4;
27 p[15] = ((_BitInt(135)) q[3]) >> n4;
28 p[16] = q[0] << 42;
29 p[17] = q[1] >> 42;
30 p[18] = ((_BitInt(135)) q[2]) >> 42;
31 p[19] = ((_BitInt(135)) q[3]) >> 42;
32 p[20] = q[0] << 64;
33 p[21] = q[1] >> 64;
34 p[22] = ((_BitInt(135)) q[2]) >> 64;
35 p[23] = ((_BitInt(135)) q[3]) >> 64;
36 p[24] = q[0] << 128;
37 p[25] = q[1] >> 128;
38 p[26] = ((_BitInt(135)) q[2]) >> 128;
39 p[27] = ((_BitInt(135)) q[3]) >> 128;
40 p[28] = q[0] << 134;
41 p[29] = q[1] >> 134;
42 p[30] = ((_BitInt(135)) q[2]) >> 134;
43 p[31] = ((_BitInt(135)) q[3]) >> 134;
44 p[32] = 42476074745096429931122498134186165182882uwb << n1;
45 p[33] = ((unsigned _BitInt(135)) 7182038401320930422841151460488443466941uwb) >> n1;
46 p[34] = ((_BitInt(135)) 19085908020200472220560502294394961233399uwb) >> n1;
47 p[35] = ((_BitInt(135)) 22116103719729384017971523177401136866663uwb) >> n1;
48 p[36] = 42476074745096429931122498134186165182882uwb << n2;
49 p[37] = ((unsigned _BitInt(135)) 7182038401320930422841151460488443466941uwb) >> n2;
50 p[38] = ((_BitInt(135)) 19085908020200472220560502294394961233399uwb) >> n2;
51 p[39] = ((_BitInt(135)) 22116103719729384017971523177401136866663uwb) >> n2;
52 p[40] = 42476074745096429931122498134186165182882uwb << n3;
53 p[41] = ((unsigned _BitInt(135)) 7182038401320930422841151460488443466941uwb) >> n3;
54 p[42] = ((_BitInt(135)) 19085908020200472220560502294394961233399uwb) >> n3;
55 p[43] = ((_BitInt(135)) 22116103719729384017971523177401136866663uwb) >> n3;
56 p[44] = 42476074745096429931122498134186165182882uwb << n4;
57 p[45] = ((unsigned _BitInt(135)) 7182038401320930422841151460488443466941uwb) >> n4;
58 p[46] = ((_BitInt(135)) 19085908020200472220560502294394961233399uwb) >> n4;
59 p[47] = ((_BitInt(135)) 22116103719729384017971523177401136866663uwb) >> n4;
60 }
61
62 __attribute__((noipa)) void
63 check135 (void)
64 {
65 static unsigned _BitInt(135) q[] = {
66 42476074745096429931122498134186165182882uwb,
67 7182038401320930422841151460488443466941uwb,
68 19085908020200472220560502294394961233399uwb,
69 22116103719729384017971523177401136866663uwb
70 };
71 static unsigned _BitInt(135) e[] = {
72 42476074745096429931122498134186165182882uwb,
73 7182038401320930422841151460488443466941uwb,
74 19085908020200472220560502294394961233399uwb,
75 22116103719729384017971523177401136866663uwb,
76 20575191318237441766935416597984462241792uwb,
77 1633006468482774476533711881uwb,
78 4339633055724441924339885712uwb,
79 43556142965875248422786905315316132038280uwb,
80 37177976900770126499921313117382843039744uwb,
81 389339081879323596127uwb,
82 1034649146967993241391uwb,
83 43556142965880123322149682894823775650690uwb,
84 0uwb,
85 0uwb,
86 0uwb,
87 43556142965880123323311949751266331066367uwb,
88 20575191318237441766935416597984462241792uwb,
89 1633006468482774476533711881uwb,
90 4339633055724441924339885712uwb,
91 43556142965875248422786905315316132038280uwb,
92 37177976900770126499921313117382843039744uwb,
93 389339081879323596127uwb,
94 1034649146967993241391uwb,
95 43556142965880123322149682894823775650690uwb,
96 11569600475311907757754736652680119189504uwb,
97 21uwb,
98 56uwb,
99 43556142965880123323311949751266331066304uwb,
100 0uwb,
101 0uwb,
102 0uwb,
103 43556142965880123323311949751266331066367uwb,
104 42476074745096429931122498134186165182882uwb,
105 7182038401320930422841151460488443466941uwb,
106 19085908020200472220560502294394961233399uwb,
107 22116103719729384017971523177401136866663uwb,
108 20575191318237441766935416597984462241792uwb,
109 1633006468482774476533711881uwb,
110 4339633055724441924339885712uwb,
111 43556142965875248422786905315316132038280uwb,
112 37177976900770126499921313117382843039744uwb,
113 389339081879323596127uwb,
114 1034649146967993241391uwb,
115 43556142965880123322149682894823775650690uwb,
116 0uwb,
117 0uwb,
118 0uwb,
119 43556142965880123323311949751266331066367uwb
120 };
121 unsigned _BitInt(135) p[48];
122 test135 (p, q, 0, 42, 64, 134);
123 for (int i = 0; i < 48; ++i)
124 if (p[i] != e[i])
125 __builtin_abort ();
126 }
127 #endif
128
129 #if __BITINT_MAXWIDTH__ >= 512
130 __attribute__((noipa)) void
131 test512 (unsigned _BitInt(512) *p, unsigned _BitInt(512) *q,
132 int n1, int n2, int n3, int n4)
133 {
134 p[0] = q[0] << n1;
135 p[1] = q[1] >> n1;
136 p[2] = ((_BitInt(512)) q[2]) >> n1;
137 p[3] = ((_BitInt(512)) q[3]) >> n1;
138 p[4] = q[0] << n2;
139 p[5] = q[1] >> n2;
140 p[6] = ((_BitInt(512)) q[2]) >> n2;
141 p[7] = ((_BitInt(512)) q[3]) >> n2;
142 p[8] = q[0] << n3;
143 p[9] = q[1] >> n3;
144 p[10] = ((_BitInt(512)) q[2]) >> n3;
145 p[11] = ((_BitInt(512)) q[3]) >> n3;
146 p[12] = q[0] << n4;
147 p[13] = q[1] >> n4;
148 p[14] = ((_BitInt(512)) q[2]) >> n4;
149 p[15] = ((_BitInt(512)) q[3]) >> n4;
150 p[16] = q[0] << 42;
151 p[17] = q[1] >> 42;
152 p[18] = ((_BitInt(512)) q[2]) >> 42;
153 p[19] = ((_BitInt(512)) q[3]) >> 42;
154 p[20] = q[0] << 128;
155 p[21] = q[1] >> 128;
156 p[22] = ((_BitInt(512)) q[2]) >> 128;
157 p[23] = ((_BitInt(512)) q[3]) >> 128;
158 p[24] = q[0] << 448;
159 p[25] = q[1] >> 448;
160 p[26] = ((_BitInt(512)) q[2]) >> 448;
161 p[27] = ((_BitInt(512)) q[3]) >> 448;
162 p[28] = q[0] << 508;
163 p[29] = q[1] >> 508;
164 p[30] = ((_BitInt(512)) q[2]) >> 508;
165 p[31] = ((_BitInt(512)) q[3]) >> 508;
166 p[32] = 9097527363082920087640486649000739646642554439676331761072078127377091353030522027251795224024156478638697322090297961146123620822988442336252791731131761uwb << n1;
167 p[33] = ((unsigned _BitInt(512)) 10980538984510266134209038127076610665614456653719209946870695541404134523537659134772423950250404838052362402691773947760040210438889408262830474547160577uwb) >> n1;
168 p[34] = ((_BitInt(512)) 12876743501477007697566238617479065502697488744690997490715841276784967745445096442239218949897451583348811842533777310497473584791607823667593623282470690uwb) >> n1;
169 p[35] = ((_BitInt(512)) 4262081036274094578799387151850586986318909215082769698752506214098468276589787535239660955472257640044493313997722061552113957148668088011463028119497203uwb) >> n1;
170 p[36] = 9097527363082920087640486649000739646642554439676331761072078127377091353030522027251795224024156478638697322090297961146123620822988442336252791731131761uwb << n2;
171 p[37] = ((unsigned _BitInt(512)) 10980538984510266134209038127076610665614456653719209946870695541404134523537659134772423950250404838052362402691773947760040210438889408262830474547160577uwb) >> n2;
172 p[38] = ((_BitInt(512)) 12876743501477007697566238617479065502697488744690997490715841276784967745445096442239218949897451583348811842533777310497473584791607823667593623282470690uwb) >> n2;
173 p[39] = ((_BitInt(512)) 4262081036274094578799387151850586986318909215082769698752506214098468276589787535239660955472257640044493313997722061552113957148668088011463028119497203uwb) >> n2;
174 p[40] = 9097527363082920087640486649000739646642554439676331761072078127377091353030522027251795224024156478638697322090297961146123620822988442336252791731131761uwb << n3;
175 p[41] = ((unsigned _BitInt(512)) 10980538984510266134209038127076610665614456653719209946870695541404134523537659134772423950250404838052362402691773947760040210438889408262830474547160577uwb) >> n3;
176 p[42] = ((_BitInt(512)) 12876743501477007697566238617479065502697488744690997490715841276784967745445096442239218949897451583348811842533777310497473584791607823667593623282470690uwb) >> n3;
177 p[43] = ((_BitInt(512)) 4262081036274094578799387151850586986318909215082769698752506214098468276589787535239660955472257640044493313997722061552113957148668088011463028119497203uwb) >> n3;
178 p[44] = 9097527363082920087640486649000739646642554439676331761072078127377091353030522027251795224024156478638697322090297961146123620822988442336252791731131761uwb << n4;
179 p[45] = ((unsigned _BitInt(512)) 10980538984510266134209038127076610665614456653719209946870695541404134523537659134772423950250404838052362402691773947760040210438889408262830474547160577uwb) >> n4;
180 p[46] = ((_BitInt(512)) 12876743501477007697566238617479065502697488744690997490715841276784967745445096442239218949897451583348811842533777310497473584791607823667593623282470690uwb) >> n4;
181 p[47] = ((_BitInt(512)) 4262081036274094578799387151850586986318909215082769698752506214098468276589787535239660955472257640044493313997722061552113957148668088011463028119497203uwb) >> n4;
182 }
183
184 __attribute__((noipa)) void
185 check512 (void)
186 {
187 static unsigned _BitInt(512) q[] = {
188 9097527363082920087640486649000739646642554439676331761072078127377091353030522027251795224024156478638697322090297961146123620822988442336252791731131761uwb,
189 10980538984510266134209038127076610665614456653719209946870695541404134523537659134772423950250404838052362402691773947760040210438889408262830474547160577uwb,
190 12876743501477007697566238617479065502697488744690997490715841276784967745445096442239218949897451583348811842533777310497473584791607823667593623282470690uwb,
191 4262081036274094578799387151850586986318909215082769698752506214098468276589787535239660955472257640044493313997722061552113957148668088011463028119497203uwb
192 };
193 static unsigned _BitInt(512) e[] = {
194 9097527363082920087640486649000739646642554439676331761072078127377091353030522027251795224024156478638697322090297961146123620822988442336252791731131761uwb,
195 10980538984510266134209038127076610665614456653719209946870695541404134523537659134772423950250404838052362402691773947760040210438889408262830474547160577uwb,
196 12876743501477007697566238617479065502697488744690997490715841276784967745445096442239218949897451583348811842533777310497473584791607823667593623282470690uwb,
197 4262081036274094578799387151850586986318909215082769698752506214098468276589787535239660955472257640044493313997722061552113957148668088011463028119497203uwb,
198 10218316460994285180012649605314270523237657334799736878274366250937214257494608460860805097020820895335285270507764849854590883398363325859206256763338752uwb,
199 2496685507255794194454446853132278798878918827021882395199712741806282457113788753934482872466652415380931962020389152658035575413780272415995uwb,
200 13407807929942476349503027617752125851028760573258773505654590291089987162470240268148950606329516537581906483867747705640627526941493352884606809182595733uwb,
201 969085030254540147052327290987383773044464127243093048207926179679468140554897112278845487588172918559506186738354258875941458688582335528613uwb,
202 4525270648672298630142654159362692277322833548500556080109956060745476990024701673931929946646742265188085348185747949082408104800714710883682097140072448uwb,
203 32268903863189288488713934263516911045475287395472229484457927100461194379105000512730600516708300749874729300692099uwb,
204 13407807929942597099574024998205846127477805162503433459831226837705045157447168014945448530707208458194409230122434920121875298152320690554956588365115043uwb,
205 12525130452217498057057362011967217536814658172404918356180491125021477447649640662315333513294816018260736989782778uwb,
206 837987995621412318723376562387865382967460363787024586107722590232610251879596686050117143635431464230626991136655378178359617675746660621652103062880256uwb,
207 13uwb,
208 13407807929942597099574024998205846127479365820592393377723561443721764030073546976801874298166903427690031858186486050853753882811946569946433649006084095uwb,
209 5uwb,
210 10218316460994285180012649605314270523237657334799736878274366250937214257494608460860805097020820895335285270507764849854590883398363325859206256763338752uwb,
211 2496685507255794194454446853132278798878918827021882395199712741806282457113788753934482872466652415380931962020389152658035575413780272415995uwb,
212 13407807929942476349503027617752125851028760573258773505654590291089987162470240268148950606329516537581906483867747705640627526941493352884606809182595733uwb,
213 969085030254540147052327290987383773044464127243093048207926179679468140554897112278845487588172918559506186738354258875941458688582335528613uwb,
214 4525270648672298630142654159362692277322833548500556080109956060745476990024701673931929946646742265188085348185747949082408104800714710883682097140072448uwb,
215 32268903863189288488713934263516911045475287395472229484457927100461194379105000512730600516708300749874729300692099uwb,
216 13407807929942597099574024998205846127477805162503433459831226837705045157447168014945448530707208458194409230122434920121875298152320690554956588365115043uwb,
217 12525130452217498057057362011967217536814658172404918356180491125021477447649640662315333513294816018260736989782778uwb,
218 2707788752018291762501261467556359376968672839961555769866726160891698235759394800413405351174494371110296852192103378240576483613979086982233831308787712uwb,
219 15107256420812902421uwb,
220 13407807929942597099574024998205846127479365820592393377723561443721764030073546976801874298166903427690031858186486050853753882811946569215784041721807999uwb,
221 5863860707758186186uwb,
222 837987995621412318723376562387865382967460363787024586107722590232610251879596686050117143635431464230626991136655378178359617675746660621652103062880256uwb,
223 13uwb,
224 13407807929942597099574024998205846127479365820592393377723561443721764030073546976801874298166903427690031858186486050853753882811946569946433649006084095uwb,
225 5uwb,
226 9097527363082920087640486649000739646642554439676331761072078127377091353030522027251795224024156478638697322090297961146123620822988442336252791731131761uwb,
227 10980538984510266134209038127076610665614456653719209946870695541404134523537659134772423950250404838052362402691773947760040210438889408262830474547160577uwb,
228 12876743501477007697566238617479065502697488744690997490715841276784967745445096442239218949897451583348811842533777310497473584791607823667593623282470690uwb,
229 4262081036274094578799387151850586986318909215082769698752506214098468276589787535239660955472257640044493313997722061552113957148668088011463028119497203uwb,
230 10218316460994285180012649605314270523237657334799736878274366250937214257494608460860805097020820895335285270507764849854590883398363325859206256763338752uwb,
231 2496685507255794194454446853132278798878918827021882395199712741806282457113788753934482872466652415380931962020389152658035575413780272415995uwb,
232 13407807929942476349503027617752125851028760573258773505654590291089987162470240268148950606329516537581906483867747705640627526941493352884606809182595733uwb,
233 969085030254540147052327290987383773044464127243093048207926179679468140554897112278845487588172918559506186738354258875941458688582335528613uwb,
234 4525270648672298630142654159362692277322833548500556080109956060745476990024701673931929946646742265188085348185747949082408104800714710883682097140072448uwb,
235 32268903863189288488713934263516911045475287395472229484457927100461194379105000512730600516708300749874729300692099uwb,
236 13407807929942597099574024998205846127477805162503433459831226837705045157447168014945448530707208458194409230122434920121875298152320690554956588365115043uwb,
237 12525130452217498057057362011967217536814658172404918356180491125021477447649640662315333513294816018260736989782778uwb,
238 837987995621412318723376562387865382967460363787024586107722590232610251879596686050117143635431464230626991136655378178359617675746660621652103062880256uwb,
239 13uwb,
240 13407807929942597099574024998205846127479365820592393377723561443721764030073546976801874298166903427690031858186486050853753882811946569946433649006084095uwb,
241 5uwb
242 };
243 unsigned _BitInt(512) p[48];
244 test512 (p, q, 0, 42, 128, 508);
245 for (int i = 0; i < 48; ++i)
246 if (p[i] != e[i])
247 __builtin_abort ();
248 }
249 #endif
250
251 #if __BITINT_MAXWIDTH__ >= 575
252 __attribute__((noipa)) void
253 test575 (unsigned _BitInt(575) *p, unsigned _BitInt(575) *q,
254 int n1, int n2, int n3, int n4)
255 {
256 p[0] = q[0] << n1;
257 p[1] = q[1] >> n1;
258 p[2] = ((_BitInt(575)) q[2]) >> n1;
259 p[3] = ((_BitInt(575)) q[3]) >> n1;
260 p[4] = q[0] << n2;
261 p[5] = q[1] >> n2;
262 p[6] = ((_BitInt(575)) q[2]) >> n2;
263 p[7] = ((_BitInt(575)) q[3]) >> n2;
264 p[8] = q[0] << n3;
265 p[9] = q[1] >> n3;
266 p[10] = ((_BitInt(575)) q[2]) >> n3;
267 p[11] = ((_BitInt(575)) q[3]) >> n3;
268 p[12] = q[0] << n4;
269 p[13] = q[1] >> n4;
270 p[14] = ((_BitInt(575)) q[2]) >> n4;
271 p[15] = ((_BitInt(575)) q[3]) >> n4;
272 p[16] = q[0] << 42;
273 p[17] = q[1] >> 42;
274 p[18] = ((_BitInt(575)) q[2]) >> 42;
275 p[19] = ((_BitInt(575)) q[3]) >> 42;
276 p[20] = q[0] << 192;
277 p[21] = q[1] >> 192;
278 p[22] = ((_BitInt(575)) q[2]) >> 192;
279 p[23] = ((_BitInt(575)) q[3]) >> 192;
280 p[24] = q[0] << 512;
281 p[25] = q[1] >> 512;
282 p[26] = ((_BitInt(575)) q[2]) >> 512;
283 p[27] = ((_BitInt(575)) q[3]) >> 512;
284 p[28] = q[0] << 571;
285 p[29] = q[1] >> 571;
286 p[30] = ((_BitInt(575)) q[2]) >> 571;
287 p[31] = ((_BitInt(575)) q[3]) >> 571;
288 p[32] = 113324867609914841703175642134276622099380829892372739396576941405077427208321982380320777205398087845718962965838410365091485839739660235868692128339145588495862488649829794uwb << n1;
289 p[33] = ((unsigned _BitInt(575)) 41459088230466967850496491762687877054451372305979858752985908904079765739347588525764439571939913205917422711129986893243036538436025937944895336127976720299879937518567087uwb) >> n1;
290 p[34] = ((_BitInt(575)) 109919844636328732719844961828946648695154594766841929826820254974351382414676962372262457317295280532708618631627677422093887137875656283935370428037454681114775307971502401uwb) >> n1;
291 p[35] = ((_BitInt(575)) 146719349625858150924070326030117352429884uwb) >> n1;
292 p[36] = 113324867609914841703175642134276622099380829892372739396576941405077427208321982380320777205398087845718962965838410365091485839739660235868692128339145588495862488649829794uwb << n2;
293 p[37] = ((unsigned _BitInt(575)) 41459088230466967850496491762687877054451372305979858752985908904079765739347588525764439571939913205917422711129986893243036538436025937944895336127976720299879937518567087uwb) >> n2;
294 p[38] = ((_BitInt(575)) 109919844636328732719844961828946648695154594766841929826820254974351382414676962372262457317295280532708618631627677422093887137875656283935370428037454681114775307971502401uwb) >> n2;
295 p[39] = ((_BitInt(575)) 146719349625858150924070326030117352429884uwb) >> n2;
296 p[40] = 113324867609914841703175642134276622099380829892372739396576941405077427208321982380320777205398087845718962965838410365091485839739660235868692128339145588495862488649829794uwb << n3;
297 p[41] = ((unsigned _BitInt(575)) 41459088230466967850496491762687877054451372305979858752985908904079765739347588525764439571939913205917422711129986893243036538436025937944895336127976720299879937518567087uwb) >> n3;
298 p[42] = ((_BitInt(575)) 109919844636328732719844961828946648695154594766841929826820254974351382414676962372262457317295280532708618631627677422093887137875656283935370428037454681114775307971502401uwb) >> n3;
299 p[43] = ((_BitInt(575)) 146719349625858150924070326030117352429884uwb) >> n3;
300 p[44] = 113324867609914841703175642134276622099380829892372739396576941405077427208321982380320777205398087845718962965838410365091485839739660235868692128339145588495862488649829794uwb << n4;
301 p[45] = ((unsigned _BitInt(575)) 41459088230466967850496491762687877054451372305979858752985908904079765739347588525764439571939913205917422711129986893243036538436025937944895336127976720299879937518567087uwb) >> n4;
302 p[46] = ((_BitInt(575)) 109919844636328732719844961828946648695154594766841929826820254974351382414676962372262457317295280532708618631627677422093887137875656283935370428037454681114775307971502401uwb) >> n4;
303 p[47] = ((_BitInt(575)) 146719349625858150924070326030117352429884uwb) >> n4;
304 }
305
306 __attribute__((noipa)) void
307 check575 (void)
308 {
309 static unsigned _BitInt(575) q[] = {
310 113324867609914841703175642134276622099380829892372739396576941405077427208321982380320777205398087845718962965838410365091485839739660235868692128339145588495862488649829794uwb,
311 41459088230466967850496491762687877054451372305979858752985908904079765739347588525764439571939913205917422711129986893243036538436025937944895336127976720299879937518567087uwb,
312 109919844636328732719844961828946648695154594766841929826820254974351382414676962372262457317295280532708618631627677422093887137875656283935370428037454681114775307971502401uwb,
313 146719349625858150924070326030117352429884uwb
314 };
315 static unsigned _BitInt(575) e[] = {
316 113324867609914841703175642134276622099380829892372739396576941405077427208321982380320777205398087845718962965838410365091485839739660235868692128339145588495862488649829794uwb,
317 41459088230466967850496491762687877054451372305979858752985908904079765739347588525764439571939913205917422711129986893243036538436025937944895336127976720299879937518567087uwb,
318 109919844636328732719844961828946648695154594766841929826820254974351382414676962372262457317295280532708618631627677422093887137875656283935370428037454681114775307971502401uwb,
319 146719349625858150924070326030117352429884uwb,
320 101455192616810418556035937342706675871010989953664553100414183440061081538258837413103429652228409332846843840874129218733451063018756151973814520650589185972971648957022208uwb,
321 9426705271486518506775721962796496212479581187376392961820308506521488593386399890224411040421708368266404866319586947893875853523246846167443285623443607687449uwb,
322 123665200736549141698114476634013378335753822194910362276561280288452288465223455053720457123832123393578819366656336301874379580455931868022178318582504526998711692029382704uwb,
323 33360117783071962304363825303uwb,
324 119335782055317388350429004017843053262176261916736710874511715722133065797591485333905865472877802228449910525321848531626543800663717410928997924003288981168896718112030720uwb,
325 6604813810288358087498962398528278947817002383742106838987637054195488521780512729133747937326520831885279330684711uwb,
326 123665200736552267030251260509823595017565674550605919957029338284886722431114354919535001603397736344270114443080692270543186446588141616503700255078449149331258830163424370uwb,
327 0uwb,
328 15458150092069033378781407563727949377195709318825739994628941005806076569158241698144775066327690311849854464126008708709460314644171950622971634693868322994787923259293696uwb,
329 5uwb,
330 123665200736552267030251260509823595017565674550605919957031528046448612553265933585158200530621522494798835713008069669675682517153375604983773077550946583958303386074349566uwb,
331 0uwb,
332 101455192616810418556035937342706675871010989953664553100414183440061081538258837413103429652228409332846843840874129218733451063018756151973814520650589185972971648957022208uwb,
333 9426705271486518506775721962796496212479581187376392961820308506521488593386399890224411040421708368266404866319586947893875853523246846167443285623443607687449uwb,
334 123665200736549141698114476634013378335753822194910362276561280288452288465223455053720457123832123393578819366656336301874379580455931868022178318582504526998711692029382704uwb,
335 33360117783071962304363825303uwb,
336 119335782055317388350429004017843053262176261916736710874511715722133065797591485333905865472877802228449910525321848531626543800663717410928997924003288981168896718112030720uwb,
337 6604813810288358087498962398528278947817002383742106838987637054195488521780512729133747937326520831885279330684711uwb,
338 123665200736552267030251260509823595017565674550605919957029338284886722431114354919535001603397736344270114443080692270543186446588141616503700255078449149331258830163424370uwb,
339 0uwb,
340 71526316958236649113771106427618495658375006450241431334816139660708009688265701502532725246129480508017794237793207540593595178136921012216679830157648896249487052159057920uwb,
341 3092160064277148905uwb,
342 123665200736552267030251260509823595017565674550605919957031528046448612553265933585158200530621522494798835713008069669675682517153375604983773077550946582933127893402865396uwb,
343 0uwb,
344 15458150092069033378781407563727949377195709318825739994628941005806076569158241698144775066327690311849854464126008708709460314644171950622971634693868322994787923259293696uwb,
345 5uwb,
346 123665200736552267030251260509823595017565674550605919957031528046448612553265933585158200530621522494798835713008069669675682517153375604983773077550946583958303386074349566uwb,
347 0uwb,
348 113324867609914841703175642134276622099380829892372739396576941405077427208321982380320777205398087845718962965838410365091485839739660235868692128339145588495862488649829794uwb,
349 41459088230466967850496491762687877054451372305979858752985908904079765739347588525764439571939913205917422711129986893243036538436025937944895336127976720299879937518567087uwb,
350 109919844636328732719844961828946648695154594766841929826820254974351382414676962372262457317295280532708618631627677422093887137875656283935370428037454681114775307971502401uwb,
351 146719349625858150924070326030117352429884uwb,
352 101455192616810418556035937342706675871010989953664553100414183440061081538258837413103429652228409332846843840874129218733451063018756151973814520650589185972971648957022208uwb,
353 9426705271486518506775721962796496212479581187376392961820308506521488593386399890224411040421708368266404866319586947893875853523246846167443285623443607687449uwb,
354 123665200736549141698114476634013378335753822194910362276561280288452288465223455053720457123832123393578819366656336301874379580455931868022178318582504526998711692029382704uwb,
355 33360117783071962304363825303uwb,
356 119335782055317388350429004017843053262176261916736710874511715722133065797591485333905865472877802228449910525321848531626543800663717410928997924003288981168896718112030720uwb,
357 6604813810288358087498962398528278947817002383742106838987637054195488521780512729133747937326520831885279330684711uwb,
358 123665200736552267030251260509823595017565674550605919957029338284886722431114354919535001603397736344270114443080692270543186446588141616503700255078449149331258830163424370uwb,
359 0uwb,
360 15458150092069033378781407563727949377195709318825739994628941005806076569158241698144775066327690311849854464126008708709460314644171950622971634693868322994787923259293696uwb,
361 5uwb,
362 123665200736552267030251260509823595017565674550605919957031528046448612553265933585158200530621522494798835713008069669675682517153375604983773077550946583958303386074349566uwb,
363 0uwb
364 };
365 unsigned _BitInt(575) p[48];
366 test575 (p, q, 0, 42, 192, 571);
367 for (int i = 0; i < 48; ++i)
368 if (p[i] != e[i])
369 __builtin_abort ();
370 }
371 #endif
372
373 int
374 main ()
375 {
376 #if __BITINT_MAXWIDTH__ >= 135
377 check135 ();
378 #endif
379 #if __BITINT_MAXWIDTH__ >= 512
380 check512 ();
381 #endif
382 #if __BITINT_MAXWIDTH__ >= 575
383 check575 ();
384 #endif
385 return 0;
386 }