Branch data Line data Source code
1 : : /* Generated automatically by the program `genmatch' from
2 : : a IL pattern matching and simplification description. */
3 : : #pragma GCC diagnostic push
4 : : #pragma GCC diagnostic ignored "-Wunused-variable"
5 : : #pragma GCC diagnostic ignored "-Wunused-function"
6 : :
7 : : #include "generic-match-auto.h"
8 : :
9 : : bool
10 : 928173672 : tree_nop_convert (tree t, tree *res_ops)
11 : : {
12 : 928173672 : const tree type = TREE_TYPE (t);
13 : 928173672 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
14 : 928173672 : if (TREE_SIDE_EFFECTS (t)) return false;
15 : 892612647 : switch (TREE_CODE (t))
16 : : {
17 : 172425795 : CASE_CONVERT:
18 : 172425795 : {
19 : 172425795 : tree _p0 = TREE_OPERAND (t, 0);
20 : 172425795 : {
21 : 172425795 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
22 : 172425795 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
23 : : )
24 : : {
25 : 138635644 : {
26 : 138635644 : res_ops[0] = captures[0];
27 : 138635644 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 0, __FILE__, __LINE__, false);
28 : 138635644 : return true;
29 : : }
30 : : }
31 : : }
32 : : break;
33 : : }
34 : 4068943 : case VIEW_CONVERT_EXPR:
35 : 4068943 : {
36 : 4068943 : tree _p0 = TREE_OPERAND (t, 0);
37 : 4068943 : {
38 : 4068943 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
39 : 3028850 : if (VECTOR_TYPE_P (type) && VECTOR_TYPE_P (TREE_TYPE (captures[0]))
40 : 3028832 : && known_eq (TYPE_VECTOR_SUBPARTS (type),
41 : : TYPE_VECTOR_SUBPARTS (TREE_TYPE (captures[0])))
42 : 6205901 : && tree_nop_conversion_p (TREE_TYPE (type), TREE_TYPE (TREE_TYPE (captures[0])))
43 : : )
44 : : {
45 : 2136952 : {
46 : 2136952 : res_ops[0] = captures[0];
47 : 2136952 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1, __FILE__, __LINE__, false);
48 : 2136952 : return true;
49 : : }
50 : : }
51 : : }
52 : 1931991 : break;
53 : : }
54 : : default:;
55 : : }
56 : : return false;
57 : : }
58 : :
59 : : bool
60 : 84315025 : tree_with_known_nonzero_bits (tree t)
61 : : {
62 : 84315025 : const tree type = TREE_TYPE (t);
63 : 84315025 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
64 : 84315025 : if (TREE_SIDE_EFFECTS (t)) return false;
65 : 79479356 : switch (TREE_CODE (t))
66 : : {
67 : 280821 : case BIT_IOR_EXPR:
68 : 280821 : {
69 : 280821 : tree _p0 = TREE_OPERAND (t, 0);
70 : 280821 : tree _p1 = TREE_OPERAND (t, 1);
71 : 280821 : if (tree_with_known_nonzero_bits_1 (_p0))
72 : : {
73 : 272979 : {
74 : 272979 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
75 : 272979 : {
76 : 272979 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 39, __FILE__, __LINE__, false);
77 : 272979 : return true;
78 : : }
79 : : }
80 : : }
81 : 7842 : if (tree_with_known_nonzero_bits_1 (_p1))
82 : : {
83 : 210 : {
84 : 210 : tree captures[2] ATTRIBUTE_UNUSED = { _p1, _p0 };
85 : 210 : {
86 : 210 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 39, __FILE__, __LINE__, false);
87 : 210 : return true;
88 : : }
89 : : }
90 : : }
91 : : break;
92 : : }
93 : 79206167 : default:;
94 : : }
95 : 79206167 : if (tree_with_known_nonzero_bits_1 (t))
96 : : {
97 : 40498965 : {
98 : 40498965 : tree captures[1] ATTRIBUTE_UNUSED = { t };
99 : 40498965 : {
100 : 40498965 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 40, __FILE__, __LINE__, false);
101 : 40498965 : return true;
102 : : }
103 : : }
104 : : }
105 : : return false;
106 : : }
107 : :
108 : : bool
109 : 0 : tree_signed_integer_sat_sub (tree t, tree *res_ops)
110 : : {
111 : 0 : const tree type = TREE_TYPE (t);
112 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
113 : 0 : if (TREE_SIDE_EFFECTS (t)) return false;
114 : 0 : switch (TREE_CODE (t))
115 : : {
116 : 0 : case COND_EXPR:
117 : 0 : {
118 : 0 : tree _p0 = TREE_OPERAND (t, 0);
119 : 0 : tree _p1 = TREE_OPERAND (t, 1);
120 : 0 : tree _p2 = TREE_OPERAND (t, 2);
121 : 0 : switch (TREE_CODE (_p0))
122 : : {
123 : 0 : case LT_EXPR:
124 : 0 : {
125 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
126 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
127 : 0 : switch (TREE_CODE (_q20))
128 : : {
129 : 0 : case BIT_AND_EXPR:
130 : 0 : {
131 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
132 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
133 : 0 : switch (TREE_CODE (_q30))
134 : : {
135 : 0 : case BIT_XOR_EXPR:
136 : 0 : {
137 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
138 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
139 : 0 : switch (TREE_CODE (_q31))
140 : : {
141 : 0 : case BIT_XOR_EXPR:
142 : 0 : {
143 : 0 : tree _q70 = TREE_OPERAND (_q31, 0);
144 : 0 : tree _q71 = TREE_OPERAND (_q31, 1);
145 : 0 : if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
146 : : {
147 : 0 : {
148 : 0 : tree _q71_pops[1];
149 : 0 : if (tree_nop_convert (_q71, _q71_pops))
150 : : {
151 : 0 : tree _q90 = _q71_pops[0];
152 : 0 : switch (TREE_CODE (_q90))
153 : : {
154 : 0 : case MINUS_EXPR:
155 : 0 : {
156 : 0 : tree _q100 = TREE_OPERAND (_q90, 0);
157 : 0 : tree _q101 = TREE_OPERAND (_q90, 1);
158 : 0 : {
159 : 0 : tree _q100_pops[1];
160 : 0 : if (tree_nop_convert (_q100, _q100_pops))
161 : : {
162 : 0 : tree _q110 = _q100_pops[0];
163 : 0 : if ((_q110 == _q40 && ! TREE_SIDE_EFFECTS (_q110)) || (operand_equal_p (_q110, _q40, 0) && types_match (_q110, _q40)))
164 : : {
165 : 0 : {
166 : 0 : tree _q101_pops[1];
167 : 0 : if (tree_nop_convert (_q101, _q101_pops))
168 : : {
169 : 0 : tree _q130 = _q101_pops[0];
170 : 0 : if ((_q130 == _q41 && ! TREE_SIDE_EFFECTS (_q130)) || (operand_equal_p (_q130, _q41, 0) && types_match (_q130, _q41)))
171 : : {
172 : 0 : if (integer_zerop (_q21))
173 : : {
174 : 0 : {
175 : 0 : tree _p1_pops[1];
176 : 0 : if (tree_signed_integer_sat_val (_p1, _p1_pops))
177 : : {
178 : 0 : tree _q160 = _p1_pops[0];
179 : 0 : if ((_q160 == _q40 && ! TREE_SIDE_EFFECTS (_q160)) || (operand_equal_p (_q160, _q40, 0) && types_match (_q160, _q40)))
180 : : {
181 : 0 : if ((_p2 == _q71 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q71, 0) && types_match (_p2, _q71)))
182 : : {
183 : 0 : {
184 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _q71 };
185 : 0 : if (INTEGRAL_TYPE_P (type) && !TYPE_UNSIGNED (type)
186 : : )
187 : : {
188 : 0 : {
189 : 0 : res_ops[0] = captures[0];
190 : 0 : res_ops[1] = captures[1];
191 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 83, __FILE__, __LINE__, false);
192 : 0 : return true;
193 : : }
194 : : }
195 : : }
196 : : }
197 : : }
198 : : }
199 : : }
200 : : }
201 : : }
202 : : }
203 : : }
204 : : }
205 : : }
206 : : }
207 : 0 : break;
208 : : }
209 : : default:;
210 : : }
211 : : }
212 : : }
213 : : }
214 : 0 : if ((_q70 == _q41 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q41, 0) && types_match (_q70, _q41)))
215 : : {
216 : 0 : {
217 : 0 : tree _q71_pops[1];
218 : 0 : if (tree_nop_convert (_q71, _q71_pops))
219 : : {
220 : 0 : tree _q90 = _q71_pops[0];
221 : 0 : switch (TREE_CODE (_q90))
222 : : {
223 : 0 : case MINUS_EXPR:
224 : 0 : {
225 : 0 : tree _q100 = TREE_OPERAND (_q90, 0);
226 : 0 : tree _q101 = TREE_OPERAND (_q90, 1);
227 : 0 : {
228 : 0 : tree _q100_pops[1];
229 : 0 : if (tree_nop_convert (_q100, _q100_pops))
230 : : {
231 : 0 : tree _q110 = _q100_pops[0];
232 : 0 : if ((_q110 == _q41 && ! TREE_SIDE_EFFECTS (_q110)) || (operand_equal_p (_q110, _q41, 0) && types_match (_q110, _q41)))
233 : : {
234 : 0 : {
235 : 0 : tree _q101_pops[1];
236 : 0 : if (tree_nop_convert (_q101, _q101_pops))
237 : : {
238 : 0 : tree _q130 = _q101_pops[0];
239 : 0 : if ((_q130 == _q40 && ! TREE_SIDE_EFFECTS (_q130)) || (operand_equal_p (_q130, _q40, 0) && types_match (_q130, _q40)))
240 : : {
241 : 0 : if (integer_zerop (_q21))
242 : : {
243 : 0 : {
244 : 0 : tree _p1_pops[1];
245 : 0 : if (tree_signed_integer_sat_val (_p1, _p1_pops))
246 : : {
247 : 0 : tree _q160 = _p1_pops[0];
248 : 0 : if ((_q160 == _q41 && ! TREE_SIDE_EFFECTS (_q160)) || (operand_equal_p (_q160, _q41, 0) && types_match (_q160, _q41)))
249 : : {
250 : 0 : if ((_p2 == _q71 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q71, 0) && types_match (_p2, _q71)))
251 : : {
252 : 0 : {
253 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _q71 };
254 : 0 : if (INTEGRAL_TYPE_P (type) && !TYPE_UNSIGNED (type)
255 : : )
256 : : {
257 : 0 : {
258 : 0 : res_ops[0] = captures[0];
259 : 0 : res_ops[1] = captures[1];
260 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 83, __FILE__, __LINE__, false);
261 : 0 : return true;
262 : : }
263 : : }
264 : : }
265 : : }
266 : : }
267 : : }
268 : : }
269 : : }
270 : : }
271 : : }
272 : : }
273 : : }
274 : : }
275 : : }
276 : 0 : break;
277 : : }
278 : : default:;
279 : : }
280 : : }
281 : : }
282 : : }
283 : : break;
284 : : }
285 : 0 : default:;
286 : : }
287 : 0 : {
288 : 0 : tree _q41_pops[1];
289 : 0 : if (tree_nop_convert (_q41, _q41_pops))
290 : : {
291 : 0 : tree _q60 = _q41_pops[0];
292 : 0 : switch (TREE_CODE (_q60))
293 : : {
294 : 0 : case MINUS_EXPR:
295 : 0 : {
296 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
297 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
298 : 0 : {
299 : 0 : tree _q70_pops[1];
300 : 0 : if (tree_nop_convert (_q70, _q70_pops))
301 : : {
302 : 0 : tree _q80 = _q70_pops[0];
303 : 0 : if ((_q80 == _q40 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q40, 0) && types_match (_q80, _q40)))
304 : : {
305 : 0 : {
306 : 0 : tree _q71_pops[1];
307 : 0 : if (tree_nop_convert (_q71, _q71_pops))
308 : : {
309 : 0 : tree _q100 = _q71_pops[0];
310 : 0 : switch (TREE_CODE (_q31))
311 : : {
312 : 0 : case BIT_XOR_EXPR:
313 : 0 : {
314 : 0 : tree _q120 = TREE_OPERAND (_q31, 0);
315 : 0 : tree _q121 = TREE_OPERAND (_q31, 1);
316 : 0 : if ((_q120 == _q40 && ! TREE_SIDE_EFFECTS (_q120)) || (operand_equal_p (_q120, _q40, 0) && types_match (_q120, _q40)))
317 : : {
318 : 0 : if ((_q121 == _q100 && ! TREE_SIDE_EFFECTS (_q121)) || (operand_equal_p (_q121, _q100, 0) && types_match (_q121, _q100)))
319 : : {
320 : 0 : if (integer_zerop (_q21))
321 : : {
322 : 0 : {
323 : 0 : tree _p1_pops[1];
324 : 0 : if (tree_signed_integer_sat_val (_p1, _p1_pops))
325 : : {
326 : 0 : tree _q160 = _p1_pops[0];
327 : 0 : if ((_q160 == _q40 && ! TREE_SIDE_EFFECTS (_q160)) || (operand_equal_p (_q160, _q40, 0) && types_match (_q160, _q40)))
328 : : {
329 : 0 : if ((_p2 == _q41 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q41, 0) && types_match (_p2, _q41)))
330 : : {
331 : 0 : {
332 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q100, _q41 };
333 : 0 : if (INTEGRAL_TYPE_P (type) && !TYPE_UNSIGNED (type)
334 : : )
335 : : {
336 : 0 : {
337 : 0 : res_ops[0] = captures[0];
338 : 0 : res_ops[1] = captures[1];
339 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 83, __FILE__, __LINE__, false);
340 : 0 : return true;
341 : : }
342 : : }
343 : : }
344 : : }
345 : : }
346 : : }
347 : : }
348 : : }
349 : : }
350 : : }
351 : 0 : if ((_q120 == _q100 && ! TREE_SIDE_EFFECTS (_q120)) || (operand_equal_p (_q120, _q100, 0) && types_match (_q120, _q100)))
352 : : {
353 : 0 : if ((_q121 == _q40 && ! TREE_SIDE_EFFECTS (_q121)) || (operand_equal_p (_q121, _q40, 0) && types_match (_q121, _q40)))
354 : : {
355 : 0 : if (integer_zerop (_q21))
356 : : {
357 : 0 : {
358 : 0 : tree _p1_pops[1];
359 : 0 : if (tree_signed_integer_sat_val (_p1, _p1_pops))
360 : : {
361 : 0 : tree _q160 = _p1_pops[0];
362 : 0 : if ((_q160 == _q40 && ! TREE_SIDE_EFFECTS (_q160)) || (operand_equal_p (_q160, _q40, 0) && types_match (_q160, _q40)))
363 : : {
364 : 0 : if ((_p2 == _q41 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q41, 0) && types_match (_p2, _q41)))
365 : : {
366 : 0 : {
367 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q100, _q41 };
368 : 0 : if (INTEGRAL_TYPE_P (type) && !TYPE_UNSIGNED (type)
369 : : )
370 : : {
371 : 0 : {
372 : 0 : res_ops[0] = captures[0];
373 : 0 : res_ops[1] = captures[1];
374 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 83, __FILE__, __LINE__, false);
375 : 0 : return true;
376 : : }
377 : : }
378 : : }
379 : : }
380 : : }
381 : : }
382 : : }
383 : : }
384 : : }
385 : : }
386 : : break;
387 : : }
388 : : default:;
389 : : }
390 : : }
391 : : }
392 : : }
393 : : }
394 : : }
395 : 0 : break;
396 : : }
397 : : default:;
398 : : }
399 : : }
400 : : }
401 : 0 : break;
402 : : }
403 : : default:;
404 : : }
405 : : break;
406 : : }
407 : : default:;
408 : : }
409 : : break;
410 : : }
411 : 0 : case GE_EXPR:
412 : 0 : {
413 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
414 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
415 : 0 : switch (TREE_CODE (_q20))
416 : : {
417 : 0 : case BIT_AND_EXPR:
418 : 0 : {
419 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
420 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
421 : 0 : switch (TREE_CODE (_q30))
422 : : {
423 : 0 : case BIT_XOR_EXPR:
424 : 0 : {
425 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
426 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
427 : 0 : switch (TREE_CODE (_q31))
428 : : {
429 : 0 : case BIT_XOR_EXPR:
430 : 0 : {
431 : 0 : tree _q70 = TREE_OPERAND (_q31, 0);
432 : 0 : tree _q71 = TREE_OPERAND (_q31, 1);
433 : 0 : if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
434 : : {
435 : 0 : {
436 : 0 : tree _q71_pops[1];
437 : 0 : if (tree_nop_convert (_q71, _q71_pops))
438 : : {
439 : 0 : tree _q90 = _q71_pops[0];
440 : 0 : switch (TREE_CODE (_q90))
441 : : {
442 : 0 : case MINUS_EXPR:
443 : 0 : {
444 : 0 : tree _q100 = TREE_OPERAND (_q90, 0);
445 : 0 : tree _q101 = TREE_OPERAND (_q90, 1);
446 : 0 : {
447 : 0 : tree _q100_pops[1];
448 : 0 : if (tree_nop_convert (_q100, _q100_pops))
449 : : {
450 : 0 : tree _q110 = _q100_pops[0];
451 : 0 : if ((_q110 == _q40 && ! TREE_SIDE_EFFECTS (_q110)) || (operand_equal_p (_q110, _q40, 0) && types_match (_q110, _q40)))
452 : : {
453 : 0 : {
454 : 0 : tree _q101_pops[1];
455 : 0 : if (tree_nop_convert (_q101, _q101_pops))
456 : : {
457 : 0 : tree _q130 = _q101_pops[0];
458 : 0 : if ((_q130 == _q41 && ! TREE_SIDE_EFFECTS (_q130)) || (operand_equal_p (_q130, _q41, 0) && types_match (_q130, _q41)))
459 : : {
460 : 0 : if (integer_zerop (_q21))
461 : : {
462 : 0 : if ((_p1 == _q71 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q71, 0) && types_match (_p1, _q71)))
463 : : {
464 : 0 : {
465 : 0 : tree _p2_pops[1];
466 : 0 : if (tree_signed_integer_sat_val (_p2, _p2_pops))
467 : : {
468 : 0 : tree _q170 = _p2_pops[0];
469 : 0 : if ((_q170 == _q40 && ! TREE_SIDE_EFFECTS (_q170)) || (operand_equal_p (_q170, _q40, 0) && types_match (_q170, _q40)))
470 : : {
471 : 0 : {
472 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _q71 };
473 : 0 : if (INTEGRAL_TYPE_P (type) && !TYPE_UNSIGNED (type)
474 : : )
475 : : {
476 : 0 : {
477 : 0 : res_ops[0] = captures[0];
478 : 0 : res_ops[1] = captures[1];
479 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 84, __FILE__, __LINE__, false);
480 : 0 : return true;
481 : : }
482 : : }
483 : : }
484 : : }
485 : : }
486 : : }
487 : : }
488 : : }
489 : : }
490 : : }
491 : : }
492 : : }
493 : : }
494 : : }
495 : 0 : break;
496 : : }
497 : : default:;
498 : : }
499 : : }
500 : : }
501 : : }
502 : 0 : if ((_q70 == _q41 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q41, 0) && types_match (_q70, _q41)))
503 : : {
504 : 0 : {
505 : 0 : tree _q71_pops[1];
506 : 0 : if (tree_nop_convert (_q71, _q71_pops))
507 : : {
508 : 0 : tree _q90 = _q71_pops[0];
509 : 0 : switch (TREE_CODE (_q90))
510 : : {
511 : 0 : case MINUS_EXPR:
512 : 0 : {
513 : 0 : tree _q100 = TREE_OPERAND (_q90, 0);
514 : 0 : tree _q101 = TREE_OPERAND (_q90, 1);
515 : 0 : {
516 : 0 : tree _q100_pops[1];
517 : 0 : if (tree_nop_convert (_q100, _q100_pops))
518 : : {
519 : 0 : tree _q110 = _q100_pops[0];
520 : 0 : if ((_q110 == _q41 && ! TREE_SIDE_EFFECTS (_q110)) || (operand_equal_p (_q110, _q41, 0) && types_match (_q110, _q41)))
521 : : {
522 : 0 : {
523 : 0 : tree _q101_pops[1];
524 : 0 : if (tree_nop_convert (_q101, _q101_pops))
525 : : {
526 : 0 : tree _q130 = _q101_pops[0];
527 : 0 : if ((_q130 == _q40 && ! TREE_SIDE_EFFECTS (_q130)) || (operand_equal_p (_q130, _q40, 0) && types_match (_q130, _q40)))
528 : : {
529 : 0 : if (integer_zerop (_q21))
530 : : {
531 : 0 : if ((_p1 == _q71 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q71, 0) && types_match (_p1, _q71)))
532 : : {
533 : 0 : {
534 : 0 : tree _p2_pops[1];
535 : 0 : if (tree_signed_integer_sat_val (_p2, _p2_pops))
536 : : {
537 : 0 : tree _q170 = _p2_pops[0];
538 : 0 : if ((_q170 == _q41 && ! TREE_SIDE_EFFECTS (_q170)) || (operand_equal_p (_q170, _q41, 0) && types_match (_q170, _q41)))
539 : : {
540 : 0 : {
541 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _q71 };
542 : 0 : if (INTEGRAL_TYPE_P (type) && !TYPE_UNSIGNED (type)
543 : : )
544 : : {
545 : 0 : {
546 : 0 : res_ops[0] = captures[0];
547 : 0 : res_ops[1] = captures[1];
548 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 84, __FILE__, __LINE__, false);
549 : 0 : return true;
550 : : }
551 : : }
552 : : }
553 : : }
554 : : }
555 : : }
556 : : }
557 : : }
558 : : }
559 : : }
560 : : }
561 : : }
562 : : }
563 : : }
564 : 0 : break;
565 : : }
566 : : default:;
567 : : }
568 : : }
569 : : }
570 : : }
571 : : break;
572 : : }
573 : 0 : default:;
574 : : }
575 : 0 : {
576 : 0 : tree _q41_pops[1];
577 : 0 : if (tree_nop_convert (_q41, _q41_pops))
578 : : {
579 : 0 : tree _q60 = _q41_pops[0];
580 : 0 : switch (TREE_CODE (_q60))
581 : : {
582 : 0 : case MINUS_EXPR:
583 : 0 : {
584 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
585 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
586 : 0 : {
587 : 0 : tree _q70_pops[1];
588 : 0 : if (tree_nop_convert (_q70, _q70_pops))
589 : : {
590 : 0 : tree _q80 = _q70_pops[0];
591 : 0 : if ((_q80 == _q40 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q40, 0) && types_match (_q80, _q40)))
592 : : {
593 : 0 : {
594 : 0 : tree _q71_pops[1];
595 : 0 : if (tree_nop_convert (_q71, _q71_pops))
596 : : {
597 : 0 : tree _q100 = _q71_pops[0];
598 : 0 : switch (TREE_CODE (_q31))
599 : : {
600 : 0 : case BIT_XOR_EXPR:
601 : 0 : {
602 : 0 : tree _q120 = TREE_OPERAND (_q31, 0);
603 : 0 : tree _q121 = TREE_OPERAND (_q31, 1);
604 : 0 : if ((_q120 == _q40 && ! TREE_SIDE_EFFECTS (_q120)) || (operand_equal_p (_q120, _q40, 0) && types_match (_q120, _q40)))
605 : : {
606 : 0 : if ((_q121 == _q100 && ! TREE_SIDE_EFFECTS (_q121)) || (operand_equal_p (_q121, _q100, 0) && types_match (_q121, _q100)))
607 : : {
608 : 0 : if (integer_zerop (_q21))
609 : : {
610 : 0 : if ((_p1 == _q41 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q41, 0) && types_match (_p1, _q41)))
611 : : {
612 : 0 : {
613 : 0 : tree _p2_pops[1];
614 : 0 : if (tree_signed_integer_sat_val (_p2, _p2_pops))
615 : : {
616 : 0 : tree _q170 = _p2_pops[0];
617 : 0 : if ((_q170 == _q40 && ! TREE_SIDE_EFFECTS (_q170)) || (operand_equal_p (_q170, _q40, 0) && types_match (_q170, _q40)))
618 : : {
619 : 0 : {
620 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q100, _q41 };
621 : 0 : if (INTEGRAL_TYPE_P (type) && !TYPE_UNSIGNED (type)
622 : : )
623 : : {
624 : 0 : {
625 : 0 : res_ops[0] = captures[0];
626 : 0 : res_ops[1] = captures[1];
627 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 84, __FILE__, __LINE__, false);
628 : 0 : return true;
629 : : }
630 : : }
631 : : }
632 : : }
633 : : }
634 : : }
635 : : }
636 : : }
637 : : }
638 : : }
639 : 0 : if ((_q120 == _q100 && ! TREE_SIDE_EFFECTS (_q120)) || (operand_equal_p (_q120, _q100, 0) && types_match (_q120, _q100)))
640 : : {
641 : 0 : if ((_q121 == _q40 && ! TREE_SIDE_EFFECTS (_q121)) || (operand_equal_p (_q121, _q40, 0) && types_match (_q121, _q40)))
642 : : {
643 : 0 : if (integer_zerop (_q21))
644 : : {
645 : 0 : if ((_p1 == _q41 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q41, 0) && types_match (_p1, _q41)))
646 : : {
647 : 0 : {
648 : 0 : tree _p2_pops[1];
649 : 0 : if (tree_signed_integer_sat_val (_p2, _p2_pops))
650 : : {
651 : 0 : tree _q170 = _p2_pops[0];
652 : 0 : if ((_q170 == _q40 && ! TREE_SIDE_EFFECTS (_q170)) || (operand_equal_p (_q170, _q40, 0) && types_match (_q170, _q40)))
653 : : {
654 : 0 : {
655 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q100, _q41 };
656 : 0 : if (INTEGRAL_TYPE_P (type) && !TYPE_UNSIGNED (type)
657 : : )
658 : : {
659 : 0 : {
660 : 0 : res_ops[0] = captures[0];
661 : 0 : res_ops[1] = captures[1];
662 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 84, __FILE__, __LINE__, false);
663 : 0 : return true;
664 : : }
665 : : }
666 : : }
667 : : }
668 : : }
669 : : }
670 : : }
671 : : }
672 : : }
673 : : }
674 : : break;
675 : : }
676 : : default:;
677 : : }
678 : : }
679 : : }
680 : : }
681 : : }
682 : : }
683 : 0 : break;
684 : : }
685 : : default:;
686 : : }
687 : : }
688 : : }
689 : 0 : break;
690 : : }
691 : : default:;
692 : : }
693 : : break;
694 : : }
695 : : default:;
696 : : }
697 : : break;
698 : : }
699 : 0 : case BIT_AND_EXPR:
700 : 0 : {
701 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
702 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
703 : 0 : switch (TREE_CODE (_q20))
704 : : {
705 : 0 : case LT_EXPR:
706 : 0 : {
707 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
708 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
709 : 0 : switch (TREE_CODE (_q30))
710 : : {
711 : 0 : case BIT_XOR_EXPR:
712 : 0 : {
713 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
714 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
715 : 0 : {
716 : 0 : tree _q41_pops[1];
717 : 0 : if (tree_nop_convert (_q41, _q41_pops))
718 : : {
719 : 0 : tree _q60 = _q41_pops[0];
720 : 0 : switch (TREE_CODE (_q60))
721 : : {
722 : 0 : case MINUS_EXPR:
723 : 0 : {
724 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
725 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
726 : 0 : {
727 : 0 : tree _q70_pops[1];
728 : 0 : if (tree_nop_convert (_q70, _q70_pops))
729 : : {
730 : 0 : tree _q80 = _q70_pops[0];
731 : 0 : if ((_q80 == _q40 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q40, 0) && types_match (_q80, _q40)))
732 : : {
733 : 0 : {
734 : 0 : tree _q71_pops[1];
735 : 0 : if (tree_nop_convert (_q71, _q71_pops))
736 : : {
737 : 0 : tree _q100 = _q71_pops[0];
738 : 0 : if (integer_zerop (_q31))
739 : : {
740 : 0 : switch (TREE_CODE (_q21))
741 : : {
742 : 0 : case LT_EXPR:
743 : 0 : {
744 : 0 : tree _q130 = TREE_OPERAND (_q21, 0);
745 : 0 : tree _q131 = TREE_OPERAND (_q21, 1);
746 : 0 : switch (TREE_CODE (_q130))
747 : : {
748 : 0 : case BIT_XOR_EXPR:
749 : 0 : {
750 : 0 : tree _q140 = TREE_OPERAND (_q130, 0);
751 : 0 : tree _q141 = TREE_OPERAND (_q130, 1);
752 : 0 : if ((_q140 == _q40 && ! TREE_SIDE_EFFECTS (_q140)) || (operand_equal_p (_q140, _q40, 0) && types_match (_q140, _q40)))
753 : : {
754 : 0 : if ((_q141 == _q100 && ! TREE_SIDE_EFFECTS (_q141)) || (operand_equal_p (_q141, _q100, 0) && types_match (_q141, _q100)))
755 : : {
756 : 0 : if (integer_zerop (_q131))
757 : : {
758 : 0 : {
759 : 0 : tree _p1_pops[1];
760 : 0 : if (tree_signed_integer_sat_val (_p1, _p1_pops))
761 : : {
762 : 0 : tree _q180 = _p1_pops[0];
763 : 0 : if ((_q180 == _q40 && ! TREE_SIDE_EFFECTS (_q180)) || (operand_equal_p (_q180, _q40, 0) && types_match (_q180, _q40)))
764 : : {
765 : 0 : if ((_p2 == _q41 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q41, 0) && types_match (_p2, _q41)))
766 : : {
767 : 0 : {
768 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q100, _q41 };
769 : 0 : if (INTEGRAL_TYPE_P (type) && !TYPE_UNSIGNED (type)
770 : : )
771 : : {
772 : 0 : {
773 : 0 : res_ops[0] = captures[0];
774 : 0 : res_ops[1] = captures[1];
775 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 85, __FILE__, __LINE__, false);
776 : 0 : return true;
777 : : }
778 : : }
779 : : }
780 : : }
781 : : }
782 : : }
783 : : }
784 : : }
785 : : }
786 : : }
787 : 0 : if ((_q140 == _q100 && ! TREE_SIDE_EFFECTS (_q140)) || (operand_equal_p (_q140, _q100, 0) && types_match (_q140, _q100)))
788 : : {
789 : 0 : if ((_q141 == _q40 && ! TREE_SIDE_EFFECTS (_q141)) || (operand_equal_p (_q141, _q40, 0) && types_match (_q141, _q40)))
790 : : {
791 : 0 : if (integer_zerop (_q131))
792 : : {
793 : 0 : {
794 : 0 : tree _p1_pops[1];
795 : 0 : if (tree_signed_integer_sat_val (_p1, _p1_pops))
796 : : {
797 : 0 : tree _q180 = _p1_pops[0];
798 : 0 : if ((_q180 == _q40 && ! TREE_SIDE_EFFECTS (_q180)) || (operand_equal_p (_q180, _q40, 0) && types_match (_q180, _q40)))
799 : : {
800 : 0 : if ((_p2 == _q41 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q41, 0) && types_match (_p2, _q41)))
801 : : {
802 : 0 : {
803 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q100, _q41 };
804 : 0 : if (INTEGRAL_TYPE_P (type) && !TYPE_UNSIGNED (type)
805 : : )
806 : : {
807 : 0 : {
808 : 0 : res_ops[0] = captures[0];
809 : 0 : res_ops[1] = captures[1];
810 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 85, __FILE__, __LINE__, false);
811 : 0 : return true;
812 : : }
813 : : }
814 : : }
815 : : }
816 : : }
817 : : }
818 : : }
819 : : }
820 : : }
821 : : }
822 : : break;
823 : : }
824 : : default:;
825 : : }
826 : : break;
827 : : }
828 : : default:;
829 : : }
830 : : }
831 : : }
832 : : }
833 : : }
834 : : }
835 : : }
836 : 0 : break;
837 : : }
838 : : default:;
839 : : }
840 : : }
841 : : }
842 : 0 : if (integer_zerop (_q31))
843 : : {
844 : 0 : switch (TREE_CODE (_q21))
845 : : {
846 : 0 : case LT_EXPR:
847 : 0 : {
848 : 0 : tree _q80 = TREE_OPERAND (_q21, 0);
849 : 0 : tree _q81 = TREE_OPERAND (_q21, 1);
850 : 0 : switch (TREE_CODE (_q80))
851 : : {
852 : 0 : case BIT_XOR_EXPR:
853 : 0 : {
854 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
855 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
856 : 0 : if ((_q90 == _q40 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q40, 0) && types_match (_q90, _q40)))
857 : : {
858 : 0 : {
859 : 0 : tree _q91_pops[1];
860 : 0 : if (tree_nop_convert (_q91, _q91_pops))
861 : : {
862 : 0 : tree _q110 = _q91_pops[0];
863 : 0 : switch (TREE_CODE (_q110))
864 : : {
865 : 0 : case MINUS_EXPR:
866 : 0 : {
867 : 0 : tree _q120 = TREE_OPERAND (_q110, 0);
868 : 0 : tree _q121 = TREE_OPERAND (_q110, 1);
869 : 0 : {
870 : 0 : tree _q120_pops[1];
871 : 0 : if (tree_nop_convert (_q120, _q120_pops))
872 : : {
873 : 0 : tree _q130 = _q120_pops[0];
874 : 0 : if ((_q130 == _q40 && ! TREE_SIDE_EFFECTS (_q130)) || (operand_equal_p (_q130, _q40, 0) && types_match (_q130, _q40)))
875 : : {
876 : 0 : {
877 : 0 : tree _q121_pops[1];
878 : 0 : if (tree_nop_convert (_q121, _q121_pops))
879 : : {
880 : 0 : tree _q150 = _q121_pops[0];
881 : 0 : if ((_q150 == _q41 && ! TREE_SIDE_EFFECTS (_q150)) || (operand_equal_p (_q150, _q41, 0) && types_match (_q150, _q41)))
882 : : {
883 : 0 : if (integer_zerop (_q81))
884 : : {
885 : 0 : {
886 : 0 : tree _p1_pops[1];
887 : 0 : if (tree_signed_integer_sat_val (_p1, _p1_pops))
888 : : {
889 : 0 : tree _q180 = _p1_pops[0];
890 : 0 : if ((_q180 == _q40 && ! TREE_SIDE_EFFECTS (_q180)) || (operand_equal_p (_q180, _q40, 0) && types_match (_q180, _q40)))
891 : : {
892 : 0 : if ((_p2 == _q91 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q91, 0) && types_match (_p2, _q91)))
893 : : {
894 : 0 : {
895 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _q91 };
896 : 0 : if (INTEGRAL_TYPE_P (type) && !TYPE_UNSIGNED (type)
897 : : )
898 : : {
899 : 0 : {
900 : 0 : res_ops[0] = captures[0];
901 : 0 : res_ops[1] = captures[1];
902 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 85, __FILE__, __LINE__, false);
903 : 0 : return true;
904 : : }
905 : : }
906 : : }
907 : : }
908 : : }
909 : : }
910 : : }
911 : : }
912 : : }
913 : : }
914 : : }
915 : : }
916 : : }
917 : : }
918 : 0 : break;
919 : : }
920 : : default:;
921 : : }
922 : : }
923 : : }
924 : : }
925 : 0 : if ((_q90 == _q41 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q41, 0) && types_match (_q90, _q41)))
926 : : {
927 : 0 : {
928 : 0 : tree _q91_pops[1];
929 : 0 : if (tree_nop_convert (_q91, _q91_pops))
930 : : {
931 : 0 : tree _q110 = _q91_pops[0];
932 : 0 : switch (TREE_CODE (_q110))
933 : : {
934 : 0 : case MINUS_EXPR:
935 : 0 : {
936 : 0 : tree _q120 = TREE_OPERAND (_q110, 0);
937 : 0 : tree _q121 = TREE_OPERAND (_q110, 1);
938 : 0 : {
939 : 0 : tree _q120_pops[1];
940 : 0 : if (tree_nop_convert (_q120, _q120_pops))
941 : : {
942 : 0 : tree _q130 = _q120_pops[0];
943 : 0 : if ((_q130 == _q41 && ! TREE_SIDE_EFFECTS (_q130)) || (operand_equal_p (_q130, _q41, 0) && types_match (_q130, _q41)))
944 : : {
945 : 0 : {
946 : 0 : tree _q121_pops[1];
947 : 0 : if (tree_nop_convert (_q121, _q121_pops))
948 : : {
949 : 0 : tree _q150 = _q121_pops[0];
950 : 0 : if ((_q150 == _q40 && ! TREE_SIDE_EFFECTS (_q150)) || (operand_equal_p (_q150, _q40, 0) && types_match (_q150, _q40)))
951 : : {
952 : 0 : if (integer_zerop (_q81))
953 : : {
954 : 0 : {
955 : 0 : tree _p1_pops[1];
956 : 0 : if (tree_signed_integer_sat_val (_p1, _p1_pops))
957 : : {
958 : 0 : tree _q180 = _p1_pops[0];
959 : 0 : if ((_q180 == _q41 && ! TREE_SIDE_EFFECTS (_q180)) || (operand_equal_p (_q180, _q41, 0) && types_match (_q180, _q41)))
960 : : {
961 : 0 : if ((_p2 == _q91 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q91, 0) && types_match (_p2, _q91)))
962 : : {
963 : 0 : {
964 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _q91 };
965 : 0 : if (INTEGRAL_TYPE_P (type) && !TYPE_UNSIGNED (type)
966 : : )
967 : : {
968 : 0 : {
969 : 0 : res_ops[0] = captures[0];
970 : 0 : res_ops[1] = captures[1];
971 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 85, __FILE__, __LINE__, false);
972 : 0 : return true;
973 : : }
974 : : }
975 : : }
976 : : }
977 : : }
978 : : }
979 : : }
980 : : }
981 : : }
982 : : }
983 : : }
984 : : }
985 : : }
986 : : }
987 : 0 : break;
988 : : }
989 : : default:;
990 : : }
991 : : }
992 : : }
993 : : }
994 : : break;
995 : : }
996 : : default:;
997 : : }
998 : : break;
999 : : }
1000 : : default:;
1001 : : }
1002 : : }
1003 : : break;
1004 : : }
1005 : : default:;
1006 : : }
1007 : : break;
1008 : : }
1009 : : default:;
1010 : : }
1011 : : break;
1012 : : }
1013 : 0 : case NE_EXPR:
1014 : 0 : {
1015 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
1016 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
1017 : 0 : switch (TREE_CODE (_q20))
1018 : : {
1019 : 0 : case IMAGPART_EXPR:
1020 : 0 : {
1021 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
1022 : 0 : switch (TREE_CODE (_q30))
1023 : : {
1024 : 0 : case CALL_EXPR:
1025 : 0 : switch (get_call_combined_fn (_q30))
1026 : : {
1027 : 0 : case CFN_SUB_OVERFLOW:
1028 : 0 : if (call_expr_nargs (_q30) == 2)
1029 : : {
1030 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
1031 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
1032 : 0 : if (integer_zerop (_q21))
1033 : : {
1034 : 0 : {
1035 : 0 : tree _p1_pops[1];
1036 : 0 : if (tree_signed_integer_sat_val (_p1, _p1_pops))
1037 : : {
1038 : 0 : tree _q80 = _p1_pops[0];
1039 : 0 : if ((_q80 == _q40 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q40, 0) && types_match (_q80, _q40)))
1040 : : {
1041 : 0 : switch (TREE_CODE (_p2))
1042 : : {
1043 : 0 : case REALPART_EXPR:
1044 : 0 : {
1045 : 0 : tree _q100 = TREE_OPERAND (_p2, 0);
1046 : 0 : if ((_q100 == _q30 && ! TREE_SIDE_EFFECTS (_q100)) || (operand_equal_p (_q100, _q30, 0) && types_match (_q100, _q30)))
1047 : : {
1048 : 0 : {
1049 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _q30 };
1050 : 0 : if (INTEGRAL_TYPE_P (type) && !TYPE_UNSIGNED (type)
1051 : : )
1052 : : {
1053 : 0 : if (types_match (type, captures[0], captures[1])
1054 : : )
1055 : : {
1056 : 0 : {
1057 : 0 : res_ops[0] = captures[0];
1058 : 0 : res_ops[1] = captures[1];
1059 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 86, __FILE__, __LINE__, false);
1060 : 0 : return true;
1061 : : }
1062 : : }
1063 : : }
1064 : : }
1065 : : }
1066 : : break;
1067 : : }
1068 : : default:;
1069 : : }
1070 : : }
1071 : : }
1072 : : }
1073 : : }
1074 : : }
1075 : : break;
1076 : : default:;
1077 : : }
1078 : : break;
1079 : : default:;
1080 : : }
1081 : : break;
1082 : : }
1083 : : default:;
1084 : : }
1085 : : break;
1086 : : }
1087 : : default:;
1088 : : }
1089 : : break;
1090 : : }
1091 : : default:;
1092 : : }
1093 : : return false;
1094 : : }
1095 : :
1096 : : tree
1097 : 10322 : generic_simplify_57 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1098 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1099 : : {
1100 : 10322 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1101 : 10322 : if (!TYPE_SATURATING (type)
1102 : : )
1103 : : {
1104 : 10322 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
1105 : 20644 : && !FIXED_POINT_TYPE_P (type)
1106 : : )
1107 : : {
1108 : 10322 : if (element_precision (type) <= element_precision (TREE_TYPE (captures[1]))
1109 : 10322 : || (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
1110 : 2376 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[1])))
1111 : : )
1112 : : {
1113 : 10208 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail357;
1114 : 10208 : {
1115 : 10208 : tree res_op0;
1116 : 10208 : res_op0 = captures[1];
1117 : 10208 : tree _r;
1118 : 10208 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1119 : 10208 : if (TREE_SIDE_EFFECTS (captures[2]))
1120 : 15 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1121 : 10208 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 180, __FILE__, __LINE__, true);
1122 : 10208 : return _r;
1123 : : }
1124 : 0 : next_after_fail357:;
1125 : : }
1126 : : }
1127 : : }
1128 : : return NULL_TREE;
1129 : : }
1130 : :
1131 : : tree
1132 : 2 : generic_simplify_62 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1133 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1134 : : const combined_fn ARG_UNUSED (logs))
1135 : : {
1136 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1137 : 2 : if (flag_unsafe_math_optimizations
1138 : : )
1139 : : {
1140 : 2 : if (! HONOR_SIGN_DEPENDENT_ROUNDING (type)
1141 : 2 : && ! HONOR_NANS (type) && ! HONOR_INFINITIES (type)
1142 : 2 : && ! flag_trapping_math
1143 : 4 : && ! flag_errno_math
1144 : : )
1145 : : {
1146 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail364;
1147 : 2 : {
1148 : 2 : tree res_op0;
1149 : 2 : {
1150 : 2 : tree _o1[2], _r1;
1151 : 2 : _o1[0] = captures[1];
1152 : 2 : _o1[1] = captures[3];
1153 : 2 : _r1 = fold_build2_loc (loc, RDIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1154 : 2 : res_op0 = _r1;
1155 : : }
1156 : 2 : tree _r;
1157 : 2 : _r = maybe_build_call_expr_loc (loc, logs, type, 1, res_op0);
1158 : 2 : if (!_r)
1159 : 0 : goto next_after_fail364;
1160 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 187, __FILE__, __LINE__, true);
1161 : 2 : return _r;
1162 : : }
1163 : : next_after_fail364:;
1164 : : }
1165 : : }
1166 : : return NULL_TREE;
1167 : : }
1168 : :
1169 : : tree
1170 : 29 : generic_simplify_67 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1171 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1172 : : const enum tree_code ARG_UNUSED (bitop),
1173 : : const enum tree_code ARG_UNUSED (cmp))
1174 : : {
1175 : 29 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1176 : 58 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
1177 : 29 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
1178 : 58 : && TYPE_PRECISION (TREE_TYPE (captures[0])) == TYPE_PRECISION (TREE_TYPE (captures[2]))
1179 : : )
1180 : : {
1181 : 29 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail369;
1182 : 29 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail369;
1183 : 29 : {
1184 : 29 : tree res_op0;
1185 : 29 : {
1186 : 29 : tree _o1[2], _r1;
1187 : 29 : _o1[0] = captures[0];
1188 : 29 : {
1189 : 29 : tree _o2[1], _r2;
1190 : 29 : _o2[0] = captures[2];
1191 : 29 : if (TREE_TYPE (_o2[0]) != TREE_TYPE (_o1[0]))
1192 : : {
1193 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (_o1[0]), _o2[0]);
1194 : : }
1195 : : else
1196 : : _r2 = _o2[0];
1197 : 29 : _o1[1] = _r2;
1198 : : }
1199 : 29 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1200 : 29 : res_op0 = _r1;
1201 : : }
1202 : 29 : tree res_op1;
1203 : 29 : res_op1 = captures[1];
1204 : 29 : tree _r;
1205 : 29 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
1206 : 29 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 192, __FILE__, __LINE__, true);
1207 : 29 : return _r;
1208 : : }
1209 : : next_after_fail369:;
1210 : : }
1211 : : return NULL_TREE;
1212 : : }
1213 : :
1214 : : tree
1215 : 0 : generic_simplify_77 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1216 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1217 : : const enum tree_code ARG_UNUSED (bit_op))
1218 : : {
1219 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1220 : 0 : if (bit_op == BIT_AND_EXPR
1221 : : )
1222 : : {
1223 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail381;
1224 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail381;
1225 : 0 : {
1226 : 0 : tree _r;
1227 : 0 : _r = build_zero_cst (type);
1228 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 201, __FILE__, __LINE__, true);
1229 : 0 : return _r;
1230 : : }
1231 : : next_after_fail381:;
1232 : : }
1233 : : else
1234 : : {
1235 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail382;
1236 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail382;
1237 : 0 : {
1238 : 0 : tree _r;
1239 : 0 : _r = build_minus_one_cst (type);
1240 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 202, __FILE__, __LINE__, true);
1241 : 0 : return _r;
1242 : : }
1243 : : next_after_fail382:;
1244 : : }
1245 : : return NULL_TREE;
1246 : : }
1247 : :
1248 : : tree
1249 : 216073 : generic_simplify_88 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1250 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1251 : : const enum tree_code ARG_UNUSED (op))
1252 : : {
1253 : 216073 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1254 : 216073 : {
1255 : 216073 : bool wascmp;
1256 : 216073 : if (types_match (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
1257 : 216073 : && bitwise_inverted_equal_p (captures[0], captures[1], wascmp)
1258 : : )
1259 : : {
1260 : 47 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail394;
1261 : 47 : {
1262 : 47 : tree res_op0;
1263 : 47 : res_op0 = wascmp
1264 : 47 : ? constant_boolean_node (true, type)
1265 : 40 : : build_all_ones_cst (TREE_TYPE (captures[0]));
1266 : 47 : tree _r;
1267 : 47 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1268 : 47 : if (TREE_SIDE_EFFECTS (captures[0]))
1269 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1270 : 47 : if (TREE_SIDE_EFFECTS (captures[1]))
1271 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1272 : 47 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 208, __FILE__, __LINE__, true);
1273 : 47 : return _r;
1274 : : }
1275 : 0 : next_after_fail394:;
1276 : : }
1277 : : }
1278 : 216026 : return NULL_TREE;
1279 : : }
1280 : :
1281 : : tree
1282 : 0 : generic_simplify_99 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1283 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1284 : : const enum tree_code ARG_UNUSED (op))
1285 : : {
1286 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1287 : 0 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[3]))
1288 : 0 : && tree_nop_conversion_p (type, TREE_TYPE (captures[6]))
1289 : : )
1290 : : {
1291 : 0 : if (single_use (captures[4]) && single_use (captures[5])
1292 : : )
1293 : : {
1294 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail405;
1295 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail405;
1296 : 0 : {
1297 : 0 : tree res_op0;
1298 : 0 : res_op0 = captures[0];
1299 : 0 : tree res_op1;
1300 : 0 : {
1301 : 0 : tree _o1[1], _r1;
1302 : 0 : _o1[0] = captures[6];
1303 : 0 : if (TREE_TYPE (_o1[0]) != type)
1304 : : {
1305 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1306 : : }
1307 : : else
1308 : : _r1 = _o1[0];
1309 : 0 : res_op1 = _r1;
1310 : : }
1311 : 0 : tree _r;
1312 : 0 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
1313 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 217, __FILE__, __LINE__, true);
1314 : 0 : return _r;
1315 : : }
1316 : : next_after_fail405:;
1317 : : }
1318 : : else
1319 : : {
1320 : : if (single_use (captures[0]) && single_use (captures[1])
1321 : : )
1322 : : {
1323 : : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail406;
1324 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail406;
1325 : : {
1326 : : tree res_op0;
1327 : : {
1328 : : tree _o1[1], _r1;
1329 : : _o1[0] = captures[3];
1330 : : if (TREE_TYPE (_o1[0]) != type)
1331 : : {
1332 : : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1333 : : }
1334 : : else
1335 : : _r1 = _o1[0];
1336 : : res_op0 = _r1;
1337 : : }
1338 : : tree res_op1;
1339 : : res_op1 = captures[4];
1340 : : tree _r;
1341 : : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
1342 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 218, __FILE__, __LINE__, true);
1343 : : return _r;
1344 : : }
1345 : : next_after_fail406:;
1346 : : }
1347 : : }
1348 : : }
1349 : : return NULL_TREE;
1350 : : }
1351 : :
1352 : : tree
1353 : 2 : generic_simplify_108 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1354 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1355 : : const enum tree_code ARG_UNUSED (bitop),
1356 : : const enum tree_code ARG_UNUSED (rbitop))
1357 : : {
1358 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1359 : 2 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail418;
1360 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail418;
1361 : 2 : {
1362 : 2 : tree res_op0;
1363 : 2 : res_op0 = captures[0];
1364 : 2 : tree res_op1;
1365 : 2 : res_op1 = captures[2];
1366 : 2 : tree _r;
1367 : 2 : _r = fold_build2_loc (loc, bitop, type, res_op0, res_op1);
1368 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 223, __FILE__, __LINE__, true);
1369 : : return _r;
1370 : : }
1371 : : next_after_fail418:;
1372 : : return NULL_TREE;
1373 : : }
1374 : :
1375 : : tree
1376 : 0 : generic_simplify_116 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1377 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1378 : : const enum tree_code ARG_UNUSED (op))
1379 : : {
1380 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1381 : 0 : if (INTEGRAL_TYPE_P (type)
1382 : 0 : && operand_equal_p (captures[2], captures[6], 0)
1383 : 0 : && (tree_nonzero_bits (captures[0]) & tree_nonzero_bits (captures[4])) == 0
1384 : : )
1385 : : {
1386 : 0 : {
1387 : 0 : tree t = type;
1388 : 0 : if (!TYPE_OVERFLOW_WRAPS (t))
1389 : 0 : t = unsigned_type_for (t);
1390 : 0 : wide_int c = wi::add (wi::to_wide (captures[3]), wi::to_wide (captures[7]));
1391 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail427;
1392 : 0 : if (TREE_SIDE_EFFECTS (captures[7])) goto next_after_fail427;
1393 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail427;
1394 : 0 : {
1395 : 0 : tree res_op0;
1396 : 0 : {
1397 : 0 : tree _o1[2], _r1;
1398 : 0 : {
1399 : 0 : tree _o2[1], _r2;
1400 : 0 : _o2[0] = captures[2];
1401 : 0 : if (TREE_TYPE (_o2[0]) != t)
1402 : : {
1403 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, t, _o2[0]);
1404 : : }
1405 : : else
1406 : : _r2 = _o2[0];
1407 : 0 : _o1[0] = _r2;
1408 : : }
1409 : 0 : _o1[1] = wide_int_to_tree (t, c);
1410 : 0 : _r1 = fold_build2_loc (loc, MULT_EXPR, t, _o1[0], _o1[1]);
1411 : 0 : res_op0 = _r1;
1412 : : }
1413 : 0 : tree _r;
1414 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1415 : 0 : if (TREE_SIDE_EFFECTS (captures[6]))
1416 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[6]), _r);
1417 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 227, __FILE__, __LINE__, true);
1418 : 0 : return _r;
1419 : : }
1420 : 0 : next_after_fail427:;
1421 : 0 : }
1422 : : }
1423 : : return NULL_TREE;
1424 : : }
1425 : :
1426 : : tree
1427 : 0 : generic_simplify_127 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1428 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1429 : : {
1430 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1431 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
1432 : 0 : && TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[1]))
1433 : : )
1434 : : {
1435 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail444;
1436 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail444;
1437 : 0 : {
1438 : 0 : tree res_op0;
1439 : 0 : res_op0 = captures[3];
1440 : 0 : tree res_op1;
1441 : 0 : {
1442 : 0 : tree _o1[2], _r1;
1443 : 0 : _o1[0] = captures[1];
1444 : 0 : _o1[1] = build_int_cst (TREE_TYPE (captures[1]), 1);
1445 : 0 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1446 : 0 : res_op1 = _r1;
1447 : : }
1448 : 0 : tree _r;
1449 : 0 : _r = fold_build2_loc (loc, LE_EXPR, type, res_op0, res_op1);
1450 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 244, __FILE__, __LINE__, true);
1451 : 0 : return _r;
1452 : : }
1453 : : next_after_fail444:;
1454 : : }
1455 : : return NULL_TREE;
1456 : : }
1457 : :
1458 : : tree
1459 : 0 : generic_simplify_131 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1460 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1461 : : const enum tree_code ARG_UNUSED (cmp))
1462 : : {
1463 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1464 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail466;
1465 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail466;
1466 : 0 : {
1467 : 0 : tree res_op0;
1468 : 0 : {
1469 : 0 : tree _o1[2], _r1;
1470 : 0 : _o1[0] = build_zero_cst (TREE_TYPE (captures[0]));
1471 : 0 : _o1[1] = captures[3];
1472 : 0 : _r1 = fold_build2_loc (loc, cmp, type, _o1[0], _o1[1]);
1473 : 0 : res_op0 = _r1;
1474 : : }
1475 : 0 : tree res_op1;
1476 : 0 : res_op1 = captures[4];
1477 : 0 : tree _r;
1478 : 0 : _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
1479 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
1480 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1481 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 259, __FILE__, __LINE__, true);
1482 : : return _r;
1483 : : }
1484 : : next_after_fail466:;
1485 : : return NULL_TREE;
1486 : : }
1487 : :
1488 : : tree
1489 : 0 : generic_simplify_135 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1490 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1491 : : {
1492 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1493 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail470;
1494 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail470;
1495 : 0 : {
1496 : 0 : tree _r;
1497 : 0 : _r = captures[2];
1498 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
1499 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1500 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 243, __FILE__, __LINE__, true);
1501 : : return _r;
1502 : : }
1503 : : next_after_fail470:;
1504 : : return NULL_TREE;
1505 : : }
1506 : :
1507 : : tree
1508 : 4 : generic_simplify_139 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1509 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1510 : : {
1511 : 4 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1512 : 4 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail487;
1513 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail487;
1514 : 4 : {
1515 : 4 : tree _r;
1516 : 4 : _r = constant_boolean_node (true, type);
1517 : 4 : if (TREE_SIDE_EFFECTS (captures[1]))
1518 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1519 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 261, __FILE__, __LINE__, true);
1520 : : return _r;
1521 : : }
1522 : : next_after_fail487:;
1523 : : return NULL_TREE;
1524 : : }
1525 : :
1526 : : tree
1527 : 2 : generic_simplify_142 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1528 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1529 : : {
1530 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1531 : 4 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
1532 : 4 : && TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[1]))
1533 : : )
1534 : : {
1535 : 2 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail491;
1536 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail491;
1537 : 2 : {
1538 : 2 : tree res_op0;
1539 : 2 : res_op0 = captures[3];
1540 : 2 : tree res_op1;
1541 : 2 : {
1542 : 2 : tree _o1[2], _r1;
1543 : 2 : _o1[0] = captures[1];
1544 : 2 : _o1[1] = build_int_cst (TREE_TYPE (captures[1]), 1);
1545 : 2 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1546 : 2 : res_op1 = _r1;
1547 : : }
1548 : 2 : tree _r;
1549 : 2 : _r = fold_build2_loc (loc, LE_EXPR, type, res_op0, res_op1);
1550 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 244, __FILE__, __LINE__, true);
1551 : 2 : return _r;
1552 : : }
1553 : : next_after_fail491:;
1554 : : }
1555 : : return NULL_TREE;
1556 : : }
1557 : :
1558 : : tree
1559 : 18 : generic_simplify_145 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1560 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1561 : : const enum tree_code ARG_UNUSED (op))
1562 : : {
1563 : 18 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1564 : 36 : if (INTEGRAL_TYPE_P (type)
1565 : 54 : && (tree_nonzero_bits (captures[0]) & tree_nonzero_bits (captures[2])) == 0
1566 : : )
1567 : : {
1568 : 0 : {
1569 : 0 : tree t = type;
1570 : 0 : if (!TYPE_OVERFLOW_WRAPS (t))
1571 : 0 : t = unsigned_type_for (t);
1572 : 0 : wide_int c = wi::add (wi::to_wide (captures[3]), 1);
1573 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail494;
1574 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail494;
1575 : 0 : {
1576 : 0 : tree res_op0;
1577 : 0 : {
1578 : 0 : tree _o1[2], _r1;
1579 : 0 : {
1580 : 0 : tree _o2[1], _r2;
1581 : 0 : _o2[0] = captures[2];
1582 : 0 : if (TREE_TYPE (_o2[0]) != t)
1583 : : {
1584 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, t, _o2[0]);
1585 : : }
1586 : : else
1587 : : _r2 = _o2[0];
1588 : 0 : _o1[0] = _r2;
1589 : : }
1590 : 0 : _o1[1] = wide_int_to_tree (t, c);
1591 : 0 : _r1 = fold_build2_loc (loc, MULT_EXPR, t, _o1[0], _o1[1]);
1592 : 0 : res_op0 = _r1;
1593 : : }
1594 : 0 : tree _r;
1595 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1596 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 229, __FILE__, __LINE__, true);
1597 : 0 : return _r;
1598 : : }
1599 : 0 : next_after_fail494:;
1600 : 0 : }
1601 : : }
1602 : : return NULL_TREE;
1603 : : }
1604 : :
1605 : : tree
1606 : 0 : generic_simplify_149 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1607 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1608 : : {
1609 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1610 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail498;
1611 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail498;
1612 : 0 : {
1613 : 0 : tree _r;
1614 : 0 : _r = captures[1];
1615 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 267, __FILE__, __LINE__, true);
1616 : : return _r;
1617 : : }
1618 : : next_after_fail498:;
1619 : : return NULL_TREE;
1620 : : }
1621 : :
1622 : : tree
1623 : 0 : generic_simplify_151 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1624 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1625 : : {
1626 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1627 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail500;
1628 : 0 : {
1629 : 0 : tree res_op0;
1630 : 0 : {
1631 : 0 : tree _o1[2], _r1;
1632 : 0 : _o1[0] = captures[1];
1633 : 0 : _o1[1] = captures[2];
1634 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1635 : 0 : res_op0 = _r1;
1636 : : }
1637 : 0 : tree _r;
1638 : 0 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
1639 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 269, __FILE__, __LINE__, true);
1640 : : return _r;
1641 : : }
1642 : 0 : next_after_fail500:;
1643 : 0 : return NULL_TREE;
1644 : : }
1645 : :
1646 : : tree
1647 : 589 : generic_simplify_153 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1648 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1649 : : {
1650 : 589 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1651 : 589 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail502;
1652 : 589 : {
1653 : 589 : if (! tree_invariant_p (captures[3])) goto next_after_fail502;
1654 : 1 : tree res_op0;
1655 : 1 : {
1656 : 1 : tree _o1[2], _r1;
1657 : 1 : _o1[0] = captures[2];
1658 : 1 : _o1[1] = unshare_expr (captures[3]);
1659 : 1 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1660 : 1 : res_op0 = _r1;
1661 : : }
1662 : 1 : tree res_op1;
1663 : 1 : {
1664 : 1 : tree _o1[2], _r1;
1665 : 1 : {
1666 : 1 : tree _o2[1], _r2;
1667 : 1 : _o2[0] = captures[4];
1668 : 1 : _r2 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
1669 : 1 : if (EXPR_P (_r2))
1670 : 0 : goto next_after_fail502;
1671 : 1 : _o1[0] = _r2;
1672 : : }
1673 : 1 : _o1[1] = captures[3];
1674 : 1 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1675 : 1 : if (EXPR_P (_r1))
1676 : 0 : goto next_after_fail502;
1677 : 1 : res_op1 = _r1;
1678 : : }
1679 : 1 : tree _r;
1680 : 1 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
1681 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 271, __FILE__, __LINE__, true);
1682 : : return _r;
1683 : : }
1684 : : next_after_fail502:;
1685 : : return NULL_TREE;
1686 : : }
1687 : :
1688 : : tree
1689 : 11 : generic_simplify_162 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1690 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1691 : : {
1692 : 11 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1693 : 11 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail511;
1694 : 11 : {
1695 : 11 : tree res_op0;
1696 : 11 : res_op0 = captures[0];
1697 : 11 : tree _r;
1698 : 11 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1699 : 11 : if (TREE_SIDE_EFFECTS (captures[2]))
1700 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1701 : 11 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 280, __FILE__, __LINE__, true);
1702 : : return _r;
1703 : : }
1704 : 0 : next_after_fail511:;
1705 : 0 : return NULL_TREE;
1706 : : }
1707 : :
1708 : : tree
1709 : 24 : generic_simplify_168 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1710 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1711 : : {
1712 : 24 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1713 : 24 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[2]))
1714 : : )
1715 : : {
1716 : 24 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail517;
1717 : 24 : {
1718 : 24 : tree res_op0;
1719 : 24 : {
1720 : 24 : tree _o1[2], _r1;
1721 : 24 : {
1722 : 24 : tree _o2[1], _r2;
1723 : 24 : _o2[0] = captures[2];
1724 : 24 : if (TREE_TYPE (_o2[0]) != type)
1725 : : {
1726 : 24 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o2[0]);
1727 : : }
1728 : : else
1729 : : _r2 = _o2[0];
1730 : 24 : _o1[0] = _r2;
1731 : : }
1732 : 24 : _o1[1] = captures[3];
1733 : 24 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1734 : 24 : res_op0 = _r1;
1735 : : }
1736 : 24 : tree _r;
1737 : 24 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
1738 : 24 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 283, __FILE__, __LINE__, true);
1739 : 24 : return _r;
1740 : : }
1741 : 0 : next_after_fail517:;
1742 : : }
1743 : : return NULL_TREE;
1744 : : }
1745 : :
1746 : : tree
1747 : 4 : generic_simplify_175 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1748 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1749 : : const combined_fn ARG_UNUSED (COPYSIGN_ALL))
1750 : : {
1751 : 4 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1752 : 4 : if (!tree_expr_maybe_nan_p (captures[0]) && !HONOR_SIGNED_ZEROS (type)
1753 : : )
1754 : : {
1755 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail526;
1756 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail526;
1757 : 0 : {
1758 : 0 : tree res_op0;
1759 : 0 : res_op0 = captures[0];
1760 : 0 : tree _r;
1761 : 0 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
1762 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 293, __FILE__, __LINE__, true);
1763 : 0 : return _r;
1764 : : }
1765 : : next_after_fail526:;
1766 : : }
1767 : : return NULL_TREE;
1768 : : }
1769 : :
1770 : : tree
1771 : 3 : generic_simplify_181 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1772 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1773 : : {
1774 : 3 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1775 : 3 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail532;
1776 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail532;
1777 : 3 : {
1778 : 3 : tree _r;
1779 : 3 : _r = build_zero_cst (type);
1780 : 3 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 298, __FILE__, __LINE__, true);
1781 : : return _r;
1782 : : }
1783 : : next_after_fail532:;
1784 : : return NULL_TREE;
1785 : : }
1786 : :
1787 : : tree
1788 : 1206 : generic_simplify_186 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1789 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1790 : : const enum tree_code ARG_UNUSED (cmp))
1791 : : {
1792 : 1206 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1793 : 1206 : if (!canonicalize_math_p ()
1794 : : )
1795 : : {
1796 : 0 : if (INTEGRAL_TYPE_P (type)
1797 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
1798 : : )
1799 : : {
1800 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail539;
1801 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail539;
1802 : 0 : {
1803 : 0 : tree res_op0;
1804 : 0 : res_op0 = captures[0];
1805 : 0 : tree res_op1;
1806 : 0 : res_op1 = captures[3];
1807 : 0 : tree res_op2;
1808 : 0 : res_op2 = build_zero_cst (type);
1809 : 0 : tree _r;
1810 : 0 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
1811 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 302, __FILE__, __LINE__, true);
1812 : 0 : return _r;
1813 : : }
1814 : : next_after_fail539:;
1815 : : }
1816 : : }
1817 : : return NULL_TREE;
1818 : : }
1819 : :
1820 : : tree
1821 : 2 : generic_simplify_193 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1822 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1823 : : const combined_fn ARG_UNUSED (SQRT_ALL))
1824 : : {
1825 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1826 : 2 : if (flag_unsafe_math_optimizations
1827 : : )
1828 : : {
1829 : 2 : if (!tree_expr_maybe_signaling_nan_p (captures[1])
1830 : : )
1831 : : {
1832 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail547;
1833 : 2 : {
1834 : 2 : tree _r;
1835 : 2 : _r = captures[1];
1836 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 309, __FILE__, __LINE__, true);
1837 : 2 : return _r;
1838 : : }
1839 : 0 : next_after_fail547:;
1840 : : }
1841 : : }
1842 : : return NULL_TREE;
1843 : : }
1844 : :
1845 : : tree
1846 : 12 : generic_simplify_197 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1847 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1848 : : const combined_fn ARG_UNUSED (TAN),
1849 : : const combined_fn ARG_UNUSED (COS),
1850 : : const combined_fn ARG_UNUSED (SIN))
1851 : : {
1852 : 12 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1853 : 12 : if (flag_unsafe_math_optimizations && canonicalize_math_p ()
1854 : : )
1855 : : {
1856 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail551;
1857 : 12 : {
1858 : 12 : tree res_op0;
1859 : 12 : res_op0 = captures[1];
1860 : 12 : tree _r;
1861 : 12 : _r = maybe_build_call_expr_loc (loc, SIN, type, 1, res_op0);
1862 : 12 : if (!_r)
1863 : 0 : goto next_after_fail551;
1864 : 12 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 313, __FILE__, __LINE__, true);
1865 : 12 : return _r;
1866 : : }
1867 : : next_after_fail551:;
1868 : : }
1869 : : return NULL_TREE;
1870 : : }
1871 : :
1872 : : tree
1873 : 2652 : generic_simplify_204 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1874 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1875 : : const enum tree_code ARG_UNUSED (cmp))
1876 : : {
1877 : 2652 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1878 : 5304 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
1879 : 3522 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
1880 : 4436 : && tree_expr_nonzero_p (captures[1])
1881 : : )
1882 : : {
1883 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail558;
1884 : 12 : {
1885 : 12 : tree res_op0;
1886 : 12 : res_op0 = captures[0];
1887 : 12 : tree res_op1;
1888 : 12 : res_op1 = captures[2];
1889 : 12 : tree _r;
1890 : 12 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
1891 : 12 : if (TREE_SIDE_EFFECTS (captures[1]))
1892 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1893 : 12 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 320, __FILE__, __LINE__, true);
1894 : 12 : return _r;
1895 : : }
1896 : 0 : next_after_fail558:;
1897 : : }
1898 : : return NULL_TREE;
1899 : : }
1900 : :
1901 : : tree
1902 : 4598 : generic_simplify_210 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1903 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1904 : : const enum tree_code ARG_UNUSED (op))
1905 : : {
1906 : 4598 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1907 : 4598 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail580;
1908 : 4598 : {
1909 : 4598 : tree res_op0;
1910 : 4598 : res_op0 = captures[1];
1911 : 4598 : tree res_op1;
1912 : 4598 : res_op1 = captures[2];
1913 : 4598 : tree _r;
1914 : 4598 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
1915 : 4598 : if (TREE_SIDE_EFFECTS (captures[0]))
1916 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1917 : 4598 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 341, __FILE__, __LINE__, true);
1918 : : return _r;
1919 : : }
1920 : 0 : next_after_fail580:;
1921 : 0 : return NULL_TREE;
1922 : : }
1923 : :
1924 : : tree
1925 : 3 : generic_simplify_215 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1926 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1927 : : const enum tree_code ARG_UNUSED (op))
1928 : : {
1929 : 3 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1930 : 3 : if (tree_nop_conversion_p (TREE_TYPE (captures[1]), TREE_TYPE (captures[2]))
1931 : 3 : && tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[2]))
1932 : 3 : && (CONSTANT_CLASS_P (captures[3]) || (single_use (captures[1]) && single_use (captures[0])))
1933 : : )
1934 : : {
1935 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail585;
1936 : 3 : {
1937 : 3 : tree res_op0;
1938 : 3 : res_op0 = captures[3];
1939 : 3 : tree res_op1;
1940 : 3 : res_op1 = build_zero_cst (TREE_TYPE (captures[3]));
1941 : 3 : tree _r;
1942 : 3 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
1943 : 3 : if (TREE_SIDE_EFFECTS (captures[2]))
1944 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1945 : 3 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 342, __FILE__, __LINE__, true);
1946 : 3 : return _r;
1947 : : }
1948 : 0 : next_after_fail585:;
1949 : : }
1950 : : return NULL_TREE;
1951 : : }
1952 : :
1953 : : tree
1954 : 0 : generic_simplify_221 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1955 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1956 : : const enum tree_code ARG_UNUSED (cmp1),
1957 : : const enum tree_code ARG_UNUSED (cmp2),
1958 : : const enum tree_code ARG_UNUSED (rcmp))
1959 : : {
1960 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1961 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
1962 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
1963 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[0]))
1964 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
1965 : : )
1966 : : {
1967 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail591;
1968 : 0 : {
1969 : 0 : tree res_op0;
1970 : 0 : res_op0 = captures[0];
1971 : 0 : tree res_op1;
1972 : 0 : res_op1 = captures[1];
1973 : 0 : tree _r;
1974 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
1975 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 351, __FILE__, __LINE__, true);
1976 : 0 : return _r;
1977 : : }
1978 : 0 : next_after_fail591:;
1979 : : }
1980 : : return NULL_TREE;
1981 : : }
1982 : :
1983 : : tree
1984 : 13 : generic_simplify_227 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1985 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1986 : : const enum tree_code ARG_UNUSED (cmp))
1987 : : {
1988 : 13 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1989 : 13 : if (tree_fits_shwi_p (captures[3])
1990 : 13 : && tree_to_shwi (captures[3]) > 0
1991 : 26 : && tree_to_shwi (captures[3]) < TYPE_PRECISION (TREE_TYPE (captures[2]))
1992 : : )
1993 : : {
1994 : 13 : if (tree_to_shwi (captures[3]) > wi::ctz (wi::to_wide (captures[5]))
1995 : : )
1996 : : {
1997 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail600;
1998 : 0 : {
1999 : 0 : tree _r;
2000 : 0 : _r = constant_boolean_node (cmp == NE_EXPR, type);
2001 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
2002 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2003 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
2004 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
2005 : 0 : if (TREE_SIDE_EFFECTS (captures[4]))
2006 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[4]), _r);
2007 : 0 : if (TREE_SIDE_EFFECTS (captures[5]))
2008 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[5]), _r);
2009 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 360, __FILE__, __LINE__, true);
2010 : 0 : return _r;
2011 : : }
2012 : 0 : next_after_fail600:;
2013 : : }
2014 : : else
2015 : : {
2016 : 13 : {
2017 : 13 : wide_int c1 = wi::to_wide (captures[3]);
2018 : 13 : wide_int c2 = wi::lrshift (wi::to_wide (captures[4]), c1);
2019 : 13 : wide_int c3 = wi::lrshift (wi::to_wide (captures[5]), c1);
2020 : 13 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail601;
2021 : 13 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail601;
2022 : 13 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail601;
2023 : 13 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail601;
2024 : 13 : {
2025 : 13 : tree res_op0;
2026 : 13 : {
2027 : 13 : tree _o1[2], _r1;
2028 : 13 : _o1[0] = captures[2];
2029 : 13 : _o1[1] = wide_int_to_tree (TREE_TYPE (captures[2]), c2);
2030 : 13 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2031 : 13 : res_op0 = _r1;
2032 : : }
2033 : 13 : tree res_op1;
2034 : 13 : res_op1 = wide_int_to_tree (TREE_TYPE (captures[2]), c3);
2035 : 13 : tree _r;
2036 : 13 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2037 : 13 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 361, __FILE__, __LINE__, true);
2038 : 13 : return _r;
2039 : : }
2040 : 0 : next_after_fail601:;
2041 : 13 : }
2042 : : }
2043 : : }
2044 : : return NULL_TREE;
2045 : : }
2046 : :
2047 : : tree
2048 : 22 : generic_simplify_237 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2049 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2050 : : const enum tree_code ARG_UNUSED (cmp),
2051 : : const combined_fn ARG_UNUSED (bswap))
2052 : : {
2053 : 22 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2054 : 22 : {
2055 : 22 : tree ctype = TREE_TYPE (captures[1]);
2056 : 22 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail619;
2057 : 22 : {
2058 : 22 : tree res_op0;
2059 : 22 : {
2060 : 22 : tree _o1[1], _r1;
2061 : 22 : _o1[0] = captures[0];
2062 : 22 : if (TREE_TYPE (_o1[0]) != ctype)
2063 : : {
2064 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, ctype, _o1[0]);
2065 : : }
2066 : : else
2067 : : _r1 = _o1[0];
2068 : 22 : res_op0 = _r1;
2069 : : }
2070 : 22 : tree res_op1;
2071 : 22 : {
2072 : 22 : tree _o1[1], _r1;
2073 : 22 : _o1[0] = captures[1];
2074 : 22 : _r1 = maybe_build_call_expr_loc (loc, bswap, TREE_TYPE (_o1[0]), 1, _o1[0]);
2075 : 22 : if (!_r1)
2076 : 0 : goto next_after_fail619;
2077 : 22 : if (EXPR_P (_r1))
2078 : 22 : goto next_after_fail619;
2079 : 0 : res_op1 = _r1;
2080 : : }
2081 : 0 : tree _r;
2082 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2083 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 379, __FILE__, __LINE__, true);
2084 : : return _r;
2085 : : }
2086 : : next_after_fail619:;
2087 : : }
2088 : : return NULL_TREE;
2089 : : }
2090 : :
2091 : : tree
2092 : 123786 : generic_simplify_244 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2093 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2094 : : const enum tree_code ARG_UNUSED (cmp))
2095 : : {
2096 : 123786 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2097 : 244961 : if (! FLOAT_TYPE_P (TREE_TYPE (captures[0]))
2098 : 123823 : || ! tree_expr_maybe_nan_p (captures[0])
2099 : : )
2100 : : {
2101 : 121212 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail631;
2102 : 121212 : {
2103 : 121212 : tree _r;
2104 : 121212 : _r = constant_boolean_node (true, type);
2105 : 121212 : if (TREE_SIDE_EFFECTS (captures[0]))
2106 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2107 : 121212 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 390, __FILE__, __LINE__, true);
2108 : 121212 : return _r;
2109 : : }
2110 : 0 : next_after_fail631:;
2111 : : }
2112 : : else
2113 : : {
2114 : 2574 : if (cmp != EQ_EXPR
2115 : 2574 : && (! FLOAT_TYPE_P (TREE_TYPE (captures[0]))
2116 : 81 : || ! flag_trapping_math)
2117 : : )
2118 : : {
2119 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail632;
2120 : 0 : {
2121 : 0 : tree res_op0;
2122 : 0 : res_op0 = unshare_expr (captures[0]);
2123 : 0 : tree res_op1;
2124 : 0 : res_op1 = captures[0];
2125 : 0 : tree _r;
2126 : 0 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
2127 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 391, __FILE__, __LINE__, true);
2128 : 0 : return _r;
2129 : : }
2130 : 0 : next_after_fail632:;
2131 : : }
2132 : : }
2133 : : return NULL_TREE;
2134 : : }
2135 : :
2136 : : tree
2137 : 6355746 : generic_simplify_249 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2138 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2139 : : const enum tree_code ARG_UNUSED (cmp))
2140 : : {
2141 : 6355746 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2142 : 6355746 : if (REAL_VALUE_MINUS_ZERO (TREE_REAL_CST (captures[1]))
2143 : : )
2144 : : {
2145 : 812 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail637;
2146 : 812 : {
2147 : 812 : tree res_op0;
2148 : 812 : res_op0 = captures[0];
2149 : 812 : tree res_op1;
2150 : 812 : res_op1 = build_real (TREE_TYPE (captures[1]), dconst0);
2151 : 812 : tree _r;
2152 : 812 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2153 : 812 : if (TREE_SIDE_EFFECTS (captures[1]))
2154 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2155 : 812 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 395, __FILE__, __LINE__, true);
2156 : 812 : return _r;
2157 : : }
2158 : 0 : next_after_fail637:;
2159 : : }
2160 : : else
2161 : : {
2162 : 6354934 : if (TREE_CODE (captures[0]) == REAL_CST
2163 : 6354934 : && REAL_VALUE_MINUS_ZERO (TREE_REAL_CST (captures[0]))
2164 : : )
2165 : : {
2166 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail638;
2167 : 0 : {
2168 : 0 : tree res_op0;
2169 : 0 : res_op0 = build_real (TREE_TYPE (captures[0]), dconst0);
2170 : 0 : tree res_op1;
2171 : 0 : res_op1 = captures[1];
2172 : 0 : tree _r;
2173 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2174 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
2175 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2176 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 396, __FILE__, __LINE__, true);
2177 : 0 : return _r;
2178 : : }
2179 : 0 : next_after_fail638:;
2180 : : }
2181 : : else
2182 : : {
2183 : 6354934 : if (REAL_VALUE_ISNAN (TREE_REAL_CST (captures[1]))
2184 : 977 : && (cmp == EQ_EXPR || cmp == NE_EXPR || !flag_trapping_math)
2185 : 296 : && !tree_expr_signaling_nan_p (captures[1])
2186 : 6355200 : && !tree_expr_maybe_signaling_nan_p (captures[0])
2187 : : )
2188 : : {
2189 : 266 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail639;
2190 : 266 : {
2191 : 266 : tree _r;
2192 : 266 : _r = constant_boolean_node (cmp == NE_EXPR, type);
2193 : 266 : if (TREE_SIDE_EFFECTS (captures[0]))
2194 : 6 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2195 : 266 : if (TREE_SIDE_EFFECTS (captures[1]))
2196 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2197 : 266 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 397, __FILE__, __LINE__, true);
2198 : 266 : return _r;
2199 : : }
2200 : 0 : next_after_fail639:;
2201 : : }
2202 : : else
2203 : : {
2204 : 6354668 : if (TREE_CODE (captures[0]) == REAL_CST
2205 : 2329 : && REAL_VALUE_ISNAN (TREE_REAL_CST (captures[0]))
2206 : 2015 : && (cmp == EQ_EXPR || cmp == NE_EXPR || !flag_trapping_math)
2207 : 0 : && !tree_expr_signaling_nan_p (captures[0])
2208 : 6354668 : && !tree_expr_signaling_nan_p (captures[1])
2209 : : )
2210 : : {
2211 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail640;
2212 : 0 : {
2213 : 0 : tree _r;
2214 : 0 : _r = constant_boolean_node (cmp == NE_EXPR, type);
2215 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
2216 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2217 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2218 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2219 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 398, __FILE__, __LINE__, true);
2220 : 0 : return _r;
2221 : : }
2222 : 0 : next_after_fail640:;
2223 : : }
2224 : : else
2225 : : {
2226 : 6354668 : if (REAL_VALUE_ISINF (TREE_REAL_CST (captures[1]))
2227 : 7160052 : && MODE_HAS_INFINITIES (TYPE_MODE (TREE_TYPE (captures[1])))
2228 : : )
2229 : : {
2230 : 268489 : {
2231 : 268489 : REAL_VALUE_TYPE max;
2232 : 268489 : enum tree_code code = cmp;
2233 : 268489 : bool neg = REAL_VALUE_NEGATIVE (TREE_REAL_CST (captures[1]));
2234 : 268489 : if (neg)
2235 : 35188 : code = swap_tree_comparison (code);
2236 : 268489 : if (code == GT_EXPR
2237 : 268489 : && !(HONOR_NANS (captures[0]) && flag_trapping_math)
2238 : : )
2239 : : {
2240 : 8 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail641;
2241 : 8 : {
2242 : 8 : tree _r;
2243 : 8 : _r = constant_boolean_node (false, type);
2244 : 8 : if (TREE_SIDE_EFFECTS (captures[0]))
2245 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2246 : 8 : if (TREE_SIDE_EFFECTS (captures[1]))
2247 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2248 : 8 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 399, __FILE__, __LINE__, true);
2249 : 78903 : return _r;
2250 : : }
2251 : 0 : next_after_fail641:;
2252 : : }
2253 : : else
2254 : : {
2255 : 268481 : if (code == LE_EXPR
2256 : : )
2257 : : {
2258 : 33237 : if (! HONOR_NANS (captures[0])
2259 : : )
2260 : : {
2261 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail642;
2262 : 0 : {
2263 : 0 : tree _r;
2264 : 0 : _r = constant_boolean_node (true, type);
2265 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
2266 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2267 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2268 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2269 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 400, __FILE__, __LINE__, true);
2270 : 0 : return _r;
2271 : : }
2272 : 0 : next_after_fail642:;
2273 : : }
2274 : : else
2275 : : {
2276 : 33237 : if (!flag_trapping_math
2277 : : )
2278 : : {
2279 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail643;
2280 : 2 : {
2281 : 2 : if (! tree_invariant_p (captures[0])) goto next_after_fail643;
2282 : 0 : tree res_op0;
2283 : 0 : res_op0 = unshare_expr (captures[0]);
2284 : 0 : tree res_op1;
2285 : 0 : res_op1 = captures[0];
2286 : 0 : tree _r;
2287 : 0 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
2288 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2289 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2290 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 401, __FILE__, __LINE__, true);
2291 : 0 : return _r;
2292 : : }
2293 : 189586 : next_after_fail643:;
2294 : : }
2295 : : }
2296 : : }
2297 : : else
2298 : : {
2299 : 156073 : if ((code == EQ_EXPR && !(HONOR_NANS (captures[0]) && flag_trapping_math))
2300 : 391293 : || code == GE_EXPR
2301 : : )
2302 : : {
2303 : 140 : {
2304 : 140 : real_maxval (&max, neg, TYPE_MODE (TREE_TYPE (captures[0])));
2305 : 140 : if (neg
2306 : : )
2307 : : {
2308 : 61 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail644;
2309 : 61 : {
2310 : 61 : tree res_op0;
2311 : 61 : res_op0 = captures[0];
2312 : 61 : tree res_op1;
2313 : 61 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
2314 : 61 : tree _r;
2315 : 61 : _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
2316 : 61 : if (TREE_SIDE_EFFECTS (captures[1]))
2317 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2318 : 61 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 402, __FILE__, __LINE__, true);
2319 : 61 : return _r;
2320 : : }
2321 : 0 : next_after_fail644:;
2322 : : }
2323 : : else
2324 : : {
2325 : 79 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail645;
2326 : 79 : {
2327 : 79 : tree res_op0;
2328 : 79 : res_op0 = captures[0];
2329 : 79 : tree res_op1;
2330 : 79 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
2331 : 79 : tree _r;
2332 : 79 : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
2333 : 79 : if (TREE_SIDE_EFFECTS (captures[1]))
2334 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2335 : 79 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 403, __FILE__, __LINE__, true);
2336 : 79 : return _r;
2337 : : }
2338 : 0 : next_after_fail645:;
2339 : : }
2340 : : }
2341 : : }
2342 : : else
2343 : : {
2344 : 235104 : if (code == LT_EXPR
2345 : : )
2346 : : {
2347 : 100 : {
2348 : 100 : real_maxval (&max, neg, TYPE_MODE (TREE_TYPE (captures[0])));
2349 : 100 : if (neg
2350 : : )
2351 : : {
2352 : 26 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail646;
2353 : 26 : {
2354 : 26 : tree res_op0;
2355 : 26 : res_op0 = captures[0];
2356 : 26 : tree res_op1;
2357 : 26 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
2358 : 26 : tree _r;
2359 : 26 : _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
2360 : 26 : if (TREE_SIDE_EFFECTS (captures[1]))
2361 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2362 : 26 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 404, __FILE__, __LINE__, true);
2363 : 26 : return _r;
2364 : : }
2365 : 0 : next_after_fail646:;
2366 : : }
2367 : : else
2368 : : {
2369 : 74 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail647;
2370 : 74 : {
2371 : 74 : tree res_op0;
2372 : 74 : res_op0 = captures[0];
2373 : 74 : tree res_op1;
2374 : 74 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
2375 : 74 : tree _r;
2376 : 74 : _r = fold_build2_loc (loc, LE_EXPR, type, res_op0, res_op1);
2377 : 74 : if (TREE_SIDE_EFFECTS (captures[1]))
2378 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2379 : 74 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 405, __FILE__, __LINE__, true);
2380 : 74 : return _r;
2381 : : }
2382 : 0 : next_after_fail647:;
2383 : : }
2384 : : }
2385 : : }
2386 : : else
2387 : : {
2388 : 235004 : if (code == NE_EXPR
2389 : : )
2390 : : {
2391 : 78655 : {
2392 : 78655 : real_maxval (&max, neg, TYPE_MODE (TREE_TYPE (captures[0])));
2393 : 78655 : if (! HONOR_NANS (captures[0])
2394 : : )
2395 : : {
2396 : 0 : if (neg
2397 : : )
2398 : : {
2399 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail648;
2400 : 0 : {
2401 : 0 : tree res_op0;
2402 : 0 : res_op0 = captures[0];
2403 : 0 : tree res_op1;
2404 : 0 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
2405 : 0 : tree _r;
2406 : 0 : _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
2407 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2408 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2409 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 406, __FILE__, __LINE__, true);
2410 : 0 : return _r;
2411 : : }
2412 : 0 : next_after_fail648:;
2413 : : }
2414 : : else
2415 : : {
2416 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail649;
2417 : 0 : {
2418 : 0 : tree res_op0;
2419 : 0 : res_op0 = captures[0];
2420 : 0 : tree res_op1;
2421 : 0 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
2422 : 0 : tree _r;
2423 : 0 : _r = fold_build2_loc (loc, LE_EXPR, type, res_op0, res_op1);
2424 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2425 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2426 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 407, __FILE__, __LINE__, true);
2427 : 0 : return _r;
2428 : : }
2429 : 0 : next_after_fail649:;
2430 : : }
2431 : : }
2432 : : else
2433 : : {
2434 : 78655 : if (neg
2435 : : )
2436 : : {
2437 : 561 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail650;
2438 : 561 : {
2439 : 561 : tree res_op0;
2440 : 561 : res_op0 = captures[0];
2441 : 561 : tree res_op1;
2442 : 561 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
2443 : 561 : tree _r;
2444 : 561 : _r = fold_build2_loc (loc, UNGE_EXPR, type, res_op0, res_op1);
2445 : 561 : if (TREE_SIDE_EFFECTS (captures[1]))
2446 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2447 : 561 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 408, __FILE__, __LINE__, true);
2448 : 561 : return _r;
2449 : : }
2450 : 0 : next_after_fail650:;
2451 : : }
2452 : : else
2453 : : {
2454 : 78094 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail651;
2455 : 78094 : {
2456 : 78094 : tree res_op0;
2457 : 78094 : res_op0 = captures[0];
2458 : 78094 : tree res_op1;
2459 : 78094 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
2460 : 78094 : tree _r;
2461 : 78094 : _r = fold_build2_loc (loc, UNLE_EXPR, type, res_op0, res_op1);
2462 : 78094 : if (TREE_SIDE_EFFECTS (captures[1]))
2463 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2464 : 78094 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 409, __FILE__, __LINE__, true);
2465 : 78094 : return _r;
2466 : : }
2467 : 0 : next_after_fail651:;
2468 : : }
2469 : : }
2470 : : }
2471 : : }
2472 : : }
2473 : : }
2474 : : }
2475 : : }
2476 : : }
2477 : : }
2478 : : }
2479 : : }
2480 : : }
2481 : : }
2482 : : return NULL_TREE;
2483 : : }
2484 : :
2485 : : tree
2486 : 579480 : generic_simplify_284 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2487 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2488 : : const enum tree_code ARG_UNUSED (cmp),
2489 : : const enum tree_code ARG_UNUSED (rcmp))
2490 : : {
2491 : 579480 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2492 : 1158960 : if (!TREE_OVERFLOW (captures[0]) && !TREE_OVERFLOW (captures[2])
2493 : 1158960 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[1]))
2494 : : )
2495 : : {
2496 : 4230 : {
2497 : 4230 : tree res = int_const_binop (MINUS_EXPR, captures[0], captures[2]);
2498 : 4230 : if (TREE_OVERFLOW (res)
2499 : : )
2500 : : {
2501 : 48 : if (cmp == NE_EXPR
2502 : : )
2503 : : {
2504 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail747;
2505 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail747;
2506 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail747;
2507 : 0 : {
2508 : 0 : tree _r;
2509 : 0 : _r = constant_boolean_node (true, type);
2510 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2511 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2512 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 488, __FILE__, __LINE__, true);
2513 : 0 : return _r;
2514 : : }
2515 : : next_after_fail747:;
2516 : : }
2517 : : else
2518 : : {
2519 : 48 : if (cmp == EQ_EXPR
2520 : : )
2521 : : {
2522 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail748;
2523 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail748;
2524 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail748;
2525 : 0 : {
2526 : 0 : tree _r;
2527 : 0 : _r = constant_boolean_node (false, type);
2528 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2529 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2530 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 489, __FILE__, __LINE__, true);
2531 : 0 : return _r;
2532 : : }
2533 : : next_after_fail748:;
2534 : : }
2535 : : else
2536 : : {
2537 : 48 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail749;
2538 : 48 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail749;
2539 : 48 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail749;
2540 : 48 : {
2541 : 48 : tree _r;
2542 : 48 : bool less = cmp == LE_EXPR || cmp == LT_EXPR;
2543 : 48 : bool ovf_high = wi::lt_p (wi::to_wide (captures[0]), 0,
2544 : 48 : TYPE_SIGN (TREE_TYPE (captures[0]))); _r =
2545 : 48 : constant_boolean_node (less == ovf_high, type);
2546 : 48 : if (TREE_SIDE_EFFECTS (captures[1]))
2547 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2548 : 48 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 490, __FILE__, __LINE__, true);
2549 : 48 : return _r;
2550 : : }
2551 : : next_after_fail749:;
2552 : : }
2553 : : }
2554 : : }
2555 : : else
2556 : : {
2557 : 4182 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail750;
2558 : 4182 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail750;
2559 : 4182 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail750;
2560 : 4182 : {
2561 : 4182 : tree res_op0;
2562 : 4182 : res_op0 = captures[1];
2563 : 4182 : tree res_op1;
2564 : 4182 : res_op1 = res;
2565 : 4182 : tree _r;
2566 : 4182 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
2567 : 4182 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 491, __FILE__, __LINE__, true);
2568 : 4182 : return _r;
2569 : : }
2570 : : next_after_fail750:;
2571 : : }
2572 : : }
2573 : : }
2574 : : else
2575 : : {
2576 : 575250 : if (TYPE_UNSIGNED (TREE_TYPE (captures[1]))
2577 : : )
2578 : : {
2579 : 575144 : if (cmp == EQ_EXPR || cmp == NE_EXPR
2580 : : )
2581 : : {
2582 : 38665 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail751;
2583 : 38665 : {
2584 : 38665 : tree res_op0;
2585 : 38665 : res_op0 = captures[1];
2586 : 38665 : tree res_op1;
2587 : 38665 : {
2588 : 38665 : tree _o1[2], _r1;
2589 : 38665 : _o1[0] = captures[0];
2590 : 38665 : _o1[1] = captures[2];
2591 : 38665 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2592 : 38665 : res_op1 = _r1;
2593 : : }
2594 : 38665 : tree _r;
2595 : 38665 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2596 : 38665 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 492, __FILE__, __LINE__, true);
2597 : 38665 : return _r;
2598 : : }
2599 : 0 : next_after_fail751:;
2600 : : }
2601 : : else
2602 : : {
2603 : 536479 : if (cmp == LE_EXPR || cmp == GT_EXPR
2604 : : )
2605 : : {
2606 : 536479 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail752;
2607 : 536479 : {
2608 : 536479 : if (! tree_invariant_p (captures[2])) goto next_after_fail752;
2609 : 536479 : tree res_op0;
2610 : 536479 : {
2611 : 536479 : tree _o1[2], _r1;
2612 : 536479 : _o1[0] = captures[1];
2613 : 536479 : {
2614 : 536479 : tree _o2[2], _r2;
2615 : 536479 : _o2[0] = unshare_expr (captures[2]);
2616 : 536479 : _o2[1] = captures[0];
2617 : 536479 : _r2 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
2618 : 536479 : _o1[1] = _r2;
2619 : : }
2620 : 536479 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2621 : 536479 : res_op0 = _r1;
2622 : : }
2623 : 536479 : tree res_op1;
2624 : 536479 : res_op1 = captures[2];
2625 : 536479 : tree _r;
2626 : 536479 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2627 : 536479 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 493, __FILE__, __LINE__, true);
2628 : 536479 : return _r;
2629 : : }
2630 : : next_after_fail752:;
2631 : : }
2632 : : else
2633 : : {
2634 : 0 : if (cmp == LT_EXPR || cmp == GE_EXPR
2635 : : )
2636 : : {
2637 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail753;
2638 : 0 : {
2639 : 0 : if (! tree_invariant_p (captures[2])) goto next_after_fail753;
2640 : 0 : tree res_op0;
2641 : 0 : {
2642 : 0 : tree _o1[2], _r1;
2643 : 0 : _o1[0] = captures[1];
2644 : 0 : {
2645 : 0 : tree _o2[2], _r2;
2646 : 0 : _o2[0] = unshare_expr (captures[2]);
2647 : 0 : {
2648 : 0 : tree _o3[2], _r3;
2649 : 0 : _o3[0] = captures[0];
2650 : 0 : _o3[1] = build_one_cst (TREE_TYPE (captures[1]));
2651 : 0 : _r3 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
2652 : 0 : _o2[1] = _r3;
2653 : : }
2654 : 0 : _r2 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
2655 : 0 : _o1[1] = _r2;
2656 : : }
2657 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2658 : 0 : res_op0 = _r1;
2659 : : }
2660 : 0 : tree res_op1;
2661 : 0 : res_op1 = captures[2];
2662 : 0 : tree _r;
2663 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2664 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 494, __FILE__, __LINE__, true);
2665 : 0 : return _r;
2666 : : }
2667 : : next_after_fail753:;
2668 : : }
2669 : : }
2670 : : }
2671 : : }
2672 : : else
2673 : : {
2674 : 106 : if (!TYPE_UNSIGNED (TREE_TYPE (captures[1]))
2675 : 106 : && TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[1]))
2676 : : )
2677 : : {
2678 : 106 : if (cmp == EQ_EXPR || cmp == NE_EXPR
2679 : : )
2680 : : {
2681 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail754;
2682 : 0 : {
2683 : 0 : tree res_op0;
2684 : 0 : res_op0 = captures[1];
2685 : 0 : tree res_op1;
2686 : 0 : {
2687 : 0 : tree _o1[2], _r1;
2688 : 0 : _o1[0] = captures[0];
2689 : 0 : _o1[1] = captures[2];
2690 : 0 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2691 : 0 : res_op1 = _r1;
2692 : : }
2693 : 0 : tree _r;
2694 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2695 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 495, __FILE__, __LINE__, true);
2696 : 0 : return _r;
2697 : : }
2698 : 0 : next_after_fail754:;
2699 : : }
2700 : : else
2701 : : {
2702 : 106 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail755;
2703 : 106 : {
2704 : 106 : tree res_op0;
2705 : 106 : {
2706 : 106 : tree _o1[2], _r1;
2707 : 106 : _o1[0] = captures[1];
2708 : 106 : {
2709 : 106 : tree _o2[2], _r2;
2710 : 106 : _o2[0] = captures[0];
2711 : 106 : _o2[1] = build_one_cst (TREE_TYPE (captures[1]));
2712 : 106 : _r2 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
2713 : 106 : _o1[1] = _r2;
2714 : : }
2715 : 106 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2716 : 106 : res_op0 = _r1;
2717 : : }
2718 : 106 : tree res_op1;
2719 : 106 : {
2720 : 106 : tree _o1[1], _r1;
2721 : 106 : _o1[0] = captures[2];
2722 : 106 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
2723 : 106 : res_op1 = _r1;
2724 : : }
2725 : 106 : tree _r;
2726 : 106 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
2727 : 106 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 496, __FILE__, __LINE__, true);
2728 : 106 : return _r;
2729 : : }
2730 : 0 : next_after_fail755:;
2731 : : }
2732 : : }
2733 : : }
2734 : : }
2735 : : return NULL_TREE;
2736 : : }
2737 : :
2738 : : tree
2739 : 230408 : generic_simplify_316 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2740 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2741 : : const enum tree_code ARG_UNUSED (mod))
2742 : : {
2743 : 230408 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2744 : 230408 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail797;
2745 : 230408 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail797;
2746 : 230408 : {
2747 : 230408 : tree _r;
2748 : 230408 : _r = build_zero_cst (type);
2749 : 230408 : if (TREE_SIDE_EFFECTS (captures[0]))
2750 : 47 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2751 : 230408 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 536, __FILE__, __LINE__, true);
2752 : : return _r;
2753 : : }
2754 : : next_after_fail797:;
2755 : : return NULL_TREE;
2756 : : }
2757 : :
2758 : : tree
2759 : 0 : generic_simplify_324 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2760 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2761 : : const combined_fn ARG_UNUSED (SQRT))
2762 : : {
2763 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2764 : 0 : if (flag_unsafe_math_optimizations
2765 : : )
2766 : : {
2767 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail807;
2768 : 0 : {
2769 : 0 : tree res_op0;
2770 : 0 : res_op0 = captures[0];
2771 : 0 : tree _r;
2772 : 0 : _r = maybe_build_call_expr_loc (loc, SQRT, type, 1, res_op0);
2773 : 0 : if (!_r)
2774 : 0 : goto next_after_fail807;
2775 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 546, __FILE__, __LINE__, true);
2776 : 0 : return _r;
2777 : : }
2778 : : next_after_fail807:;
2779 : : }
2780 : : return NULL_TREE;
2781 : : }
2782 : :
2783 : : tree
2784 : 6 : generic_simplify_329 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2785 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2786 : : const combined_fn ARG_UNUSED (COS),
2787 : : const combined_fn ARG_UNUSED (SIN),
2788 : : const combined_fn ARG_UNUSED (TAN))
2789 : : {
2790 : 6 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2791 : 6 : if (flag_unsafe_math_optimizations && canonicalize_math_p ()
2792 : : )
2793 : : {
2794 : 6 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail812;
2795 : 6 : {
2796 : 6 : tree res_op0;
2797 : 6 : res_op0 = build_one_cst (type);
2798 : 6 : tree res_op1;
2799 : 6 : {
2800 : 6 : tree _o1[1], _r1;
2801 : 6 : _o1[0] = captures[1];
2802 : 6 : _r1 = maybe_build_call_expr_loc (loc, TAN, TREE_TYPE (_o1[0]), 1, _o1[0]);
2803 : 6 : if (!_r1)
2804 : 0 : goto next_after_fail812;
2805 : 6 : res_op1 = _r1;
2806 : : }
2807 : 6 : tree _r;
2808 : 6 : _r = fold_build2_loc (loc, RDIV_EXPR, type, res_op0, res_op1);
2809 : 6 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 551, __FILE__, __LINE__, true);
2810 : 6 : return _r;
2811 : : }
2812 : : next_after_fail812:;
2813 : : }
2814 : : return NULL_TREE;
2815 : : }
2816 : :
2817 : : tree
2818 : 155992 : generic_simplify_336 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2819 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2820 : : const enum tree_code ARG_UNUSED (op))
2821 : : {
2822 : 155992 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2823 : 311984 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
2824 : 311984 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
2825 : : )
2826 : : {
2827 : 64537 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail821;
2828 : 64537 : {
2829 : 64537 : tree res_op0;
2830 : 64537 : res_op0 = captures[0];
2831 : 64537 : tree res_op1;
2832 : 64537 : res_op1 = captures[2];
2833 : 64537 : tree _r;
2834 : 64537 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
2835 : 64537 : if (TREE_SIDE_EFFECTS (captures[1]))
2836 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2837 : 64537 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 560, __FILE__, __LINE__, true);
2838 : 64537 : return _r;
2839 : : }
2840 : 0 : next_after_fail821:;
2841 : : }
2842 : : return NULL_TREE;
2843 : : }
2844 : :
2845 : : tree
2846 : 64 : generic_simplify_342 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2847 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2848 : : const enum tree_code ARG_UNUSED (minmax),
2849 : : const enum tree_code ARG_UNUSED (cmp),
2850 : : const enum tree_code ARG_UNUSED (comb))
2851 : : {
2852 : 64 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2853 : 64 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail828;
2854 : 64 : {
2855 : 64 : if (! tree_invariant_p (captures[2])) goto next_after_fail828;
2856 : 64 : tree res_op0;
2857 : 64 : {
2858 : 64 : tree _o1[2], _r1;
2859 : 64 : _o1[0] = captures[0];
2860 : 64 : _o1[1] = unshare_expr (captures[2]);
2861 : 64 : _r1 = fold_build2_loc (loc, cmp, type, _o1[0], _o1[1]);
2862 : 64 : res_op0 = _r1;
2863 : : }
2864 : 64 : tree res_op1;
2865 : 64 : {
2866 : 64 : tree _o1[2], _r1;
2867 : 64 : _o1[0] = captures[1];
2868 : 64 : _o1[1] = captures[2];
2869 : 64 : _r1 = fold_build2_loc (loc, cmp, type, _o1[0], _o1[1]);
2870 : 64 : res_op1 = _r1;
2871 : : }
2872 : 64 : tree _r;
2873 : 64 : _r = fold_build2_loc (loc, comb, type, res_op0, res_op1);
2874 : 64 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 567, __FILE__, __LINE__, true);
2875 : : return _r;
2876 : : }
2877 : : next_after_fail828:;
2878 : : return NULL_TREE;
2879 : : }
2880 : :
2881 : : tree
2882 : 242 : generic_simplify_350 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2883 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2884 : : const enum tree_code ARG_UNUSED (cmp),
2885 : : const enum tree_code ARG_UNUSED (out))
2886 : : {
2887 : 242 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2888 : 242 : if (TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[1]))
2889 : 242 : && types_match (TREE_TYPE (captures[3]), TREE_TYPE (captures[0]))
2890 : 136 : && tree_nop_conversion_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[3]))
2891 : 242 : && wi::to_wide (captures[4]) != 0
2892 : 0 : && single_use (captures[1])
2893 : : )
2894 : : {
2895 : 136 : {
2896 : 136 : unsigned int prec = TYPE_PRECISION (TREE_TYPE (captures[3]));
2897 : 136 : signop sign = TYPE_SIGN (TREE_TYPE (captures[3]));
2898 : 136 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail868;
2899 : 136 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail868;
2900 : 136 : {
2901 : 136 : tree res_op0;
2902 : 136 : res_op0 = captures[3];
2903 : 136 : tree res_op1;
2904 : 136 : res_op1 = wide_int_to_tree (TREE_TYPE (captures[3]),
2905 : 136 : wi::max_value (prec, sign)
2906 : 408 : - wi::to_wide (captures[4]));
2907 : 136 : tree _r;
2908 : 136 : _r = fold_build2_loc (loc, out, type, res_op0, res_op1);
2909 : 136 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 570, __FILE__, __LINE__, true);
2910 : 136 : return _r;
2911 : : }
2912 : : next_after_fail868:;
2913 : : }
2914 : : }
2915 : : return NULL_TREE;
2916 : : }
2917 : :
2918 : : tree
2919 : 2438223 : generic_simplify_357 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2920 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2921 : : const enum tree_code ARG_UNUSED (op),
2922 : : const enum tree_code ARG_UNUSED (rop),
2923 : : const enum tree_code ARG_UNUSED (cmp),
2924 : : const enum tree_code ARG_UNUSED (rcmp))
2925 : : {
2926 : 2438223 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2927 : 4876432 : if (!TREE_OVERFLOW (captures[2]) && !TREE_OVERFLOW (captures[3])
2928 : 4876432 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[1]))
2929 : : )
2930 : : {
2931 : 862635 : {
2932 : 862635 : tree res = int_const_binop (rop, captures[3], captures[2]);
2933 : 862635 : if (TREE_OVERFLOW (res)
2934 : : )
2935 : : {
2936 : 12963 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail876;
2937 : 12963 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail876;
2938 : 12963 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail876;
2939 : 12963 : {
2940 : 12963 : tree _r;
2941 : 12963 : fold_overflow_warning (("assuming signed overflow does not occur "
2942 : : "when simplifying conditional to constant"),
2943 : : WARN_STRICT_OVERFLOW_CONDITIONAL);
2944 : 12963 : bool less = cmp == LE_EXPR || cmp == LT_EXPR;
2945 : 12963 : bool ovf_high = wi::lt_p (wi::to_wide (captures[2]), 0,
2946 : 12963 : TYPE_SIGN (TREE_TYPE (captures[2])))
2947 : 12963 : != (op == MINUS_EXPR); _r =
2948 : 12963 : constant_boolean_node (less == ovf_high, type);
2949 : 12963 : if (TREE_SIDE_EFFECTS (captures[1]))
2950 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2951 : 12963 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 598, __FILE__, __LINE__, true);
2952 : 12963 : return _r;
2953 : : }
2954 : : next_after_fail876:;
2955 : : }
2956 : : else
2957 : : {
2958 : 849672 : if (single_use (captures[0])
2959 : : )
2960 : : {
2961 : 849672 : {
2962 : 849672 : fold_overflow_warning (("assuming signed overflow does not occur "
2963 : : "when changing X +- C1 cmp C2 to "
2964 : : "X cmp C2 -+ C1"),
2965 : : WARN_STRICT_OVERFLOW_COMPARISON);
2966 : 849672 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail877;
2967 : 849672 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail877;
2968 : 849672 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail877;
2969 : 849672 : {
2970 : 849672 : tree res_op0;
2971 : 849672 : res_op0 = captures[1];
2972 : 849672 : tree res_op1;
2973 : 849672 : res_op1 = res;
2974 : 849672 : tree _r;
2975 : 849672 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2976 : 849672 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 599, __FILE__, __LINE__, true);
2977 : 849672 : return _r;
2978 : : }
2979 : : next_after_fail877:;
2980 : : }
2981 : : }
2982 : : }
2983 : : }
2984 : : }
2985 : : else
2986 : : {
2987 : 1575588 : if (TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[1]))
2988 : : )
2989 : : {
2990 : 1575468 : {
2991 : 1575468 : wide_int max = wi::max_value (TREE_TYPE (captures[1]));
2992 : 1575468 : wide_int min = wi::min_value (TREE_TYPE (captures[1]));
2993 : 1575468 : wide_int c2 = rop == PLUS_EXPR
2994 : 1575468 : ? wi::add (wi::to_wide (captures[3]), wi::to_wide (captures[2]))
2995 : 1575468 : : wi::sub (wi::to_wide (captures[3]), wi::to_wide (captures[2]));
2996 : 1502193 : if (((cmp == LE_EXPR || cmp == GT_EXPR) && wi::eq_p (c2, max))
2997 : 3052789 : || ((cmp == LT_EXPR || cmp == GE_EXPR) && wi::eq_p (c2, min))
2998 : : )
2999 : : {
3000 : 25012 : {
3001 : 25012 : wide_int c1 = rop == PLUS_EXPR
3002 : 25012 : ? wi::add (wi::bit_not (c2), wi::to_wide (captures[2]))
3003 : 50024 : : wi::sub (wi::bit_not (c2), wi::to_wide (captures[2]));
3004 : 25012 : tree c1_cst = wide_int_to_tree (TREE_TYPE (captures[1]), c1);
3005 : 25012 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail878;
3006 : 25012 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail878;
3007 : 25012 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail878;
3008 : 25012 : {
3009 : 25012 : tree res_op0;
3010 : 25012 : res_op0 = captures[1];
3011 : 25012 : tree res_op1;
3012 : 25012 : res_op1 = c1_cst;
3013 : 25012 : tree _r;
3014 : 25012 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
3015 : 25012 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 600, __FILE__, __LINE__, true);
3016 : 25012 : return _r;
3017 : : }
3018 : 0 : next_after_fail878:;
3019 : 25012 : }
3020 : : }
3021 : 1575468 : }
3022 : : }
3023 : : }
3024 : : return NULL_TREE;
3025 : : }
3026 : :
3027 : : tree
3028 : 43 : generic_simplify_369 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3029 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3030 : : const enum tree_code ARG_UNUSED (cmp),
3031 : : const enum tree_code ARG_UNUSED (cmp2),
3032 : : const enum tree_code ARG_UNUSED (cmp3),
3033 : : const enum tree_code ARG_UNUSED (bit_op),
3034 : : const combined_fn ARG_UNUSED (ffs))
3035 : : {
3036 : 43 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3037 : 43 : {
3038 : 43 : int prec = TYPE_PRECISION (TREE_TYPE (captures[1]));
3039 : 43 : if (integer_zerop (captures[2])
3040 : : )
3041 : : {
3042 : 11 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail894;
3043 : 11 : {
3044 : 11 : tree res_op0;
3045 : 11 : res_op0 = captures[1];
3046 : 11 : tree res_op1;
3047 : 11 : res_op1 = build_zero_cst (TREE_TYPE (captures[1]));
3048 : 11 : tree _r;
3049 : 11 : _r = fold_build2_loc (loc, cmp2, type, res_op0, res_op1);
3050 : 11 : if (TREE_SIDE_EFFECTS (captures[2]))
3051 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3052 : 11 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 612, __FILE__, __LINE__, true);
3053 : 27 : return _r;
3054 : : }
3055 : 0 : next_after_fail894:;
3056 : : }
3057 : : else
3058 : : {
3059 : 32 : if (tree_int_cst_sgn (captures[2]) < 0
3060 : : )
3061 : : {
3062 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail895;
3063 : 0 : {
3064 : 0 : tree _r;
3065 : 0 : _r = constant_boolean_node (cmp == GT_EXPR ? true : false, type);
3066 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
3067 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3068 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
3069 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3070 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 613, __FILE__, __LINE__, true);
3071 : 0 : return _r;
3072 : : }
3073 : 0 : next_after_fail895:;
3074 : : }
3075 : : else
3076 : : {
3077 : 32 : if (wi::to_widest (captures[2]) >= prec
3078 : : )
3079 : : {
3080 : 14 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail896;
3081 : 14 : {
3082 : 14 : tree _r;
3083 : 14 : _r = constant_boolean_node (cmp == GT_EXPR ? false : true, type);
3084 : 14 : if (TREE_SIDE_EFFECTS (captures[1]))
3085 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3086 : 14 : if (TREE_SIDE_EFFECTS (captures[2]))
3087 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3088 : 14 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 614, __FILE__, __LINE__, true);
3089 : 14 : return _r;
3090 : : }
3091 : 0 : next_after_fail896:;
3092 : : }
3093 : : else
3094 : : {
3095 : 18 : if (wi::to_widest (captures[2]) == prec - 1
3096 : : )
3097 : : {
3098 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail897;
3099 : 2 : {
3100 : 2 : tree res_op0;
3101 : 2 : res_op0 = captures[1];
3102 : 2 : tree res_op1;
3103 : 2 : res_op1 = wide_int_to_tree (TREE_TYPE (captures[1]),
3104 : 2 : wi::shifted_mask (prec - 1, 1,
3105 : : false, prec));
3106 : 2 : tree _r;
3107 : 2 : _r = fold_build2_loc (loc, cmp3, type, res_op0, res_op1);
3108 : 2 : if (TREE_SIDE_EFFECTS (captures[2]))
3109 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3110 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 615, __FILE__, __LINE__, true);
3111 : 2 : return _r;
3112 : : }
3113 : 0 : next_after_fail897:;
3114 : : }
3115 : : else
3116 : : {
3117 : 16 : if (single_use (captures[0])
3118 : : )
3119 : : {
3120 : 16 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail898;
3121 : 16 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail898;
3122 : 16 : {
3123 : 16 : if (! tree_invariant_p (captures[1])) goto next_after_fail898;
3124 : 0 : tree res_op0;
3125 : 0 : {
3126 : 0 : tree _o1[2], _r1;
3127 : 0 : _o1[0] = unshare_expr (captures[1]);
3128 : 0 : _o1[1] = build_zero_cst (TREE_TYPE (captures[1]));
3129 : 0 : _r1 = fold_build2_loc (loc, cmp2, type, _o1[0], _o1[1]);
3130 : 0 : res_op0 = _r1;
3131 : : }
3132 : 0 : tree res_op1;
3133 : 0 : {
3134 : 0 : tree _o1[2], _r1;
3135 : 0 : {
3136 : 0 : tree _o2[2], _r2;
3137 : 0 : _o2[0] = captures[1];
3138 : 0 : _o2[1] = wide_int_to_tree (TREE_TYPE (captures[1]),
3139 : 0 : wi::mask (tree_to_uhwi (captures[2]),
3140 : : false, prec));
3141 : 0 : _r2 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
3142 : 0 : _o1[0] = _r2;
3143 : : }
3144 : 0 : _o1[1] = build_zero_cst (TREE_TYPE (captures[1]));
3145 : 0 : _r1 = fold_build2_loc (loc, cmp3, type, _o1[0], _o1[1]);
3146 : 0 : res_op1 = _r1;
3147 : : }
3148 : 0 : tree _r;
3149 : 0 : _r = fold_build2_loc (loc, bit_op, type, res_op0, res_op1);
3150 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 616, __FILE__, __LINE__, true);
3151 : 0 : return _r;
3152 : : }
3153 : 16 : next_after_fail898:;
3154 : : }
3155 : : }
3156 : : }
3157 : : }
3158 : : }
3159 : : }
3160 : 16 : return NULL_TREE;
3161 : : }
3162 : :
3163 : : tree
3164 : 2389301 : generic_simplify_388 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3165 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
3166 : : const enum tree_code ARG_UNUSED (op))
3167 : : {
3168 : 2389301 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3169 : 2389301 : if (INTEGRAL_TYPE_P (type)
3170 : 1936258 : && op != MULT_EXPR
3171 : 1936258 : && op != RDIV_EXPR
3172 : 1258291 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
3173 : 1258291 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
3174 : 1258291 : && type_has_mode_precision_p (TREE_TYPE (captures[2]))
3175 : 1257916 : && type_has_mode_precision_p (TREE_TYPE (captures[4]))
3176 : 1257099 : && type_has_mode_precision_p (type)
3177 : 1253294 : && TYPE_PRECISION (TREE_TYPE (captures[1])) > TYPE_PRECISION (TREE_TYPE (captures[2]))
3178 : 0 : && types_match (captures[2], type)
3179 : 2389301 : && (types_match (captures[2], captures[4])
3180 : 0 : || poly_int_tree_p (captures[3]))
3181 : : )
3182 : : {
3183 : 0 : if (TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[2]))
3184 : : )
3185 : : {
3186 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail931;
3187 : 0 : {
3188 : 0 : tree res_op0;
3189 : 0 : res_op0 = captures[2];
3190 : 0 : tree res_op1;
3191 : 0 : {
3192 : 0 : tree _o1[1], _r1;
3193 : 0 : _o1[0] = captures[4];
3194 : 0 : if (TREE_TYPE (_o1[0]) != type)
3195 : : {
3196 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
3197 : : }
3198 : : else
3199 : : _r1 = _o1[0];
3200 : 0 : res_op1 = _r1;
3201 : : }
3202 : 0 : tree _r;
3203 : 0 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
3204 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 639, __FILE__, __LINE__, true);
3205 : 0 : return _r;
3206 : : }
3207 : 0 : next_after_fail931:;
3208 : : }
3209 : : else
3210 : : {
3211 : 0 : {
3212 : 0 : tree utype = unsigned_type_for (TREE_TYPE (captures[2]));
3213 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail932;
3214 : 0 : {
3215 : 0 : tree res_op0;
3216 : 0 : {
3217 : 0 : tree _o1[2], _r1;
3218 : 0 : {
3219 : 0 : tree _o2[1], _r2;
3220 : 0 : _o2[0] = captures[2];
3221 : 0 : if (TREE_TYPE (_o2[0]) != utype)
3222 : : {
3223 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
3224 : : }
3225 : : else
3226 : : _r2 = _o2[0];
3227 : 0 : _o1[0] = _r2;
3228 : : }
3229 : 0 : {
3230 : 0 : tree _o2[1], _r2;
3231 : 0 : _o2[0] = captures[4];
3232 : 0 : if (TREE_TYPE (_o2[0]) != utype)
3233 : : {
3234 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
3235 : : }
3236 : : else
3237 : : _r2 = _o2[0];
3238 : 0 : _o1[1] = _r2;
3239 : : }
3240 : 0 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3241 : 0 : res_op0 = _r1;
3242 : : }
3243 : 0 : tree _r;
3244 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3245 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 640, __FILE__, __LINE__, true);
3246 : 0 : return _r;
3247 : : }
3248 : 0 : next_after_fail932:;
3249 : : }
3250 : : }
3251 : : }
3252 : : else
3253 : : {
3254 : 2370690 : if (FLOAT_TYPE_P (type)
3255 : 2407912 : && DECIMAL_FLOAT_TYPE_P (TREE_TYPE (captures[0]))
3256 : 18611 : == DECIMAL_FLOAT_TYPE_P (type)
3257 : : )
3258 : : {
3259 : 18588 : {
3260 : 18588 : tree arg0 = strip_float_extensions (captures[2]);
3261 : 18588 : tree arg1 = strip_float_extensions (captures[4]);
3262 : 18588 : tree itype = TREE_TYPE (captures[0]);
3263 : 18588 : tree ty1 = TREE_TYPE (arg0);
3264 : 18588 : tree ty2 = TREE_TYPE (arg1);
3265 : 18588 : enum tree_code code = TREE_CODE (itype);
3266 : 0 : if (FLOAT_TYPE_P (ty1)
3267 : 18588 : && FLOAT_TYPE_P (ty2)
3268 : : )
3269 : : {
3270 : 18588 : {
3271 : 18588 : tree newtype = type;
3272 : 18588 : if (TYPE_MODE (ty1) == SDmode
3273 : 18579 : || TYPE_MODE (ty2) == SDmode
3274 : 37167 : || TYPE_MODE (type) == SDmode)
3275 : 9 : newtype = dfloat32_type_node;
3276 : 18588 : if (TYPE_MODE (ty1) == DDmode
3277 : 18582 : || TYPE_MODE (ty2) == DDmode
3278 : 37170 : || TYPE_MODE (type) == DDmode)
3279 : 6 : newtype = dfloat64_type_node;
3280 : 18588 : if (TYPE_MODE (ty1) == TDmode
3281 : 18588 : || TYPE_MODE (ty2) == TDmode
3282 : 37176 : || TYPE_MODE (type) == TDmode)
3283 : 15 : newtype = dfloat128_type_node;
3284 : 18588 : if ((newtype == dfloat32_type_node
3285 : 18588 : || newtype == dfloat64_type_node
3286 : 18588 : || newtype == dfloat128_type_node)
3287 : 15 : && newtype == type
3288 : 18594 : && types_match (newtype, type)
3289 : : )
3290 : : {
3291 : 6 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail933;
3292 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail933;
3293 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail933;
3294 : 0 : {
3295 : 0 : tree res_op0;
3296 : 0 : {
3297 : 0 : tree _o1[1], _r1;
3298 : 0 : _o1[0] = captures[2];
3299 : 0 : if (TREE_TYPE (_o1[0]) != newtype)
3300 : : {
3301 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, newtype, _o1[0]);
3302 : : }
3303 : : else
3304 : : _r1 = _o1[0];
3305 : 0 : res_op0 = _r1;
3306 : : }
3307 : 0 : tree res_op1;
3308 : 0 : {
3309 : 0 : tree _o1[1], _r1;
3310 : 0 : _o1[0] = captures[4];
3311 : 0 : if (TREE_TYPE (_o1[0]) != newtype)
3312 : : {
3313 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, newtype, _o1[0]);
3314 : : }
3315 : : else
3316 : : _r1 = _o1[0];
3317 : 0 : res_op1 = _r1;
3318 : : }
3319 : 0 : tree _r;
3320 : 0 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
3321 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 641, __FILE__, __LINE__, true);
3322 : 0 : return _r;
3323 : : }
3324 : : next_after_fail933:;
3325 : : }
3326 : : else
3327 : : {
3328 : 18582 : {
3329 : 18582 : if (element_precision (ty1) > element_precision (newtype))
3330 : 745 : newtype = ty1;
3331 : 18582 : if (element_precision (ty2) > element_precision (newtype))
3332 : 1 : newtype = ty2;
3333 : 18582 : if (element_precision (newtype) < element_precision (itype)
3334 : 17282 : && (!VECTOR_MODE_P (TYPE_MODE (newtype))
3335 : 0 : || target_supports_op_p (newtype, op, optab_default))
3336 : 17282 : && (flag_unsafe_math_optimizations
3337 : 17270 : || (element_precision (newtype) == element_precision (type)
3338 : 17266 : && real_can_shorten_arithmetic (element_mode (itype),
3339 : : element_mode (type))
3340 : 7148 : && !excess_precision_type (newtype)))
3341 : 19249 : && !types_match (itype, newtype)
3342 : : )
3343 : : {
3344 : 667 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail934;
3345 : 667 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail934;
3346 : 652 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail934;
3347 : 652 : {
3348 : 652 : tree res_op0;
3349 : 652 : {
3350 : 652 : tree _o1[2], _r1;
3351 : 652 : {
3352 : 652 : tree _o2[1], _r2;
3353 : 652 : _o2[0] = captures[2];
3354 : 652 : if (TREE_TYPE (_o2[0]) != newtype)
3355 : : {
3356 : 652 : _r2 = fold_build1_loc (loc, NOP_EXPR, newtype, _o2[0]);
3357 : : }
3358 : : else
3359 : : _r2 = _o2[0];
3360 : 652 : _o1[0] = _r2;
3361 : : }
3362 : 652 : {
3363 : 652 : tree _o2[1], _r2;
3364 : 652 : _o2[0] = captures[4];
3365 : 652 : if (TREE_TYPE (_o2[0]) != newtype)
3366 : : {
3367 : 604 : _r2 = fold_build1_loc (loc, NOP_EXPR, newtype, _o2[0]);
3368 : : }
3369 : : else
3370 : : _r2 = _o2[0];
3371 : 652 : _o1[1] = _r2;
3372 : : }
3373 : 652 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3374 : 652 : res_op0 = _r1;
3375 : : }
3376 : 652 : tree _r;
3377 : 652 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3378 : 652 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 642, __FILE__, __LINE__, true);
3379 : 652 : return _r;
3380 : : }
3381 : : next_after_fail934:;
3382 : : }
3383 : : }
3384 : : }
3385 : : }
3386 : : }
3387 : : }
3388 : : }
3389 : : }
3390 : : return NULL_TREE;
3391 : : }
3392 : :
3393 : : tree
3394 : 2 : generic_simplify_418 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3395 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3396 : : {
3397 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3398 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail967;
3399 : 2 : {
3400 : 2 : tree res_op0;
3401 : 2 : {
3402 : 2 : tree _o1[2], _r1;
3403 : 2 : _o1[0] = captures[1];
3404 : 2 : _o1[1] = captures[2];
3405 : 2 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3406 : 2 : res_op0 = _r1;
3407 : : }
3408 : 2 : tree _r;
3409 : 2 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
3410 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 670, __FILE__, __LINE__, true);
3411 : : return _r;
3412 : : }
3413 : 0 : next_after_fail967:;
3414 : 0 : return NULL_TREE;
3415 : : }
3416 : :
3417 : : tree
3418 : 0 : generic_simplify_421 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3419 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3420 : : const enum tree_code ARG_UNUSED (cmp))
3421 : : {
3422 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3423 : 0 : if (!canonicalize_math_p ()
3424 : : )
3425 : : {
3426 : 0 : if (INTEGRAL_TYPE_P (type)
3427 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
3428 : : )
3429 : : {
3430 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail970;
3431 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail970;
3432 : 0 : {
3433 : 0 : tree res_op0;
3434 : 0 : res_op0 = captures[0];
3435 : 0 : tree res_op1;
3436 : 0 : res_op1 = captures[3];
3437 : 0 : tree res_op2;
3438 : 0 : res_op2 = build_zero_cst (type);
3439 : 0 : tree _r;
3440 : 0 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
3441 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 673, __FILE__, __LINE__, true);
3442 : 0 : return _r;
3443 : : }
3444 : : next_after_fail970:;
3445 : : }
3446 : : }
3447 : : return NULL_TREE;
3448 : : }
3449 : :
3450 : : tree
3451 : 0 : generic_simplify_430 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3452 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3453 : : const enum tree_code ARG_UNUSED (code2),
3454 : : const enum tree_code ARG_UNUSED (code1))
3455 : : {
3456 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3457 : 0 : if ((TREE_CODE (captures[2]) == INTEGER_CST
3458 : 0 : && TREE_CODE (captures[5]) == INTEGER_CST)
3459 : 0 : || ((INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
3460 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[2]))
3461 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, code2))
3462 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[2])))
3463 : 0 : && bitwise_equal_p (captures[2], captures[5]))
3464 : : )
3465 : : {
3466 : 0 : {
3467 : 0 : bool one_before = false;
3468 : 0 : bool one_after = false;
3469 : 0 : int cmp = 0;
3470 : 0 : bool allbits = true;
3471 : 0 : if (TREE_CODE (captures[2]) == INTEGER_CST
3472 : 0 : && TREE_CODE (captures[5]) == INTEGER_CST)
3473 : : {
3474 : 0 : allbits = TYPE_PRECISION (TREE_TYPE (captures[2])) <= TYPE_PRECISION (TREE_TYPE (captures[5]));
3475 : 0 : auto t1 = wi::to_wide (fold_convert (TREE_TYPE (captures[5]), captures[2]));
3476 : 0 : auto t2 = wi::to_wide (captures[5]);
3477 : 0 : cmp = wi::cmp (t1, t2, TYPE_SIGN (TREE_TYPE (captures[5])));
3478 : 0 : if (cmp < 0
3479 : 0 : && t1 == t2 - 1)
3480 : : one_before = true;
3481 : 0 : if (cmp > 0
3482 : 0 : && t1 == t2 + 1)
3483 : : one_after = true;
3484 : : }
3485 : 0 : bool val;
3486 : 0 : switch (code2)
3487 : : {
3488 : 0 : case EQ_EXPR: val = (cmp == 0); break;
3489 : 0 : case NE_EXPR: val = (cmp != 0); break;
3490 : 0 : case LT_EXPR: val = (cmp < 0); break;
3491 : 0 : case GT_EXPR: val = (cmp > 0); break;
3492 : 0 : case LE_EXPR: val = (cmp <= 0); break;
3493 : 0 : case GE_EXPR: val = (cmp >= 0); break;
3494 : 0 : default: gcc_unreachable ();
3495 : : }
3496 : 0 : if (code1 == EQ_EXPR && val
3497 : : )
3498 : : {
3499 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail986;
3500 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail986;
3501 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail986;
3502 : 0 : {
3503 : 0 : tree _r;
3504 : 0 : _r = captures[0];
3505 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 685, __FILE__, __LINE__, true);
3506 : 0 : return _r;
3507 : : }
3508 : : next_after_fail986:;
3509 : : }
3510 : : else
3511 : : {
3512 : 0 : if (code1 == EQ_EXPR && !val
3513 : : )
3514 : : {
3515 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail987;
3516 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail987;
3517 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail987;
3518 : 0 : {
3519 : 0 : tree _r;
3520 : 0 : _r = constant_boolean_node (false, type);
3521 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
3522 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3523 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 686, __FILE__, __LINE__, true);
3524 : 0 : return _r;
3525 : : }
3526 : : next_after_fail987:;
3527 : : }
3528 : : else
3529 : : {
3530 : 0 : if (code1 == NE_EXPR && !val && allbits
3531 : : )
3532 : : {
3533 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail988;
3534 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail988;
3535 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail988;
3536 : 0 : {
3537 : 0 : tree _r;
3538 : 0 : _r = captures[3];
3539 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 687, __FILE__, __LINE__, true);
3540 : 0 : return _r;
3541 : : }
3542 : : next_after_fail988:;
3543 : : }
3544 : : else
3545 : : {
3546 : 0 : if ((code1 == NE_EXPR
3547 : 0 : && code2 == GE_EXPR
3548 : 0 : && cmp == 0
3549 : 0 : && allbits)
3550 : 0 : && ((VECTOR_BOOLEAN_TYPE_P (type)
3551 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, GT_EXPR))
3552 : 0 : || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
3553 : : )
3554 : : {
3555 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail989;
3556 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail989;
3557 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail989;
3558 : 0 : {
3559 : 0 : tree res_op0;
3560 : 0 : res_op0 = captures[4];
3561 : 0 : tree res_op1;
3562 : 0 : {
3563 : 0 : tree _o1[1], _r1;
3564 : 0 : _o1[0] = captures[2];
3565 : 0 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
3566 : : {
3567 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
3568 : : }
3569 : : else
3570 : : _r1 = _o1[0];
3571 : 0 : res_op1 = _r1;
3572 : : }
3573 : 0 : tree _r;
3574 : 0 : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
3575 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 688, __FILE__, __LINE__, true);
3576 : 0 : return _r;
3577 : : }
3578 : : next_after_fail989:;
3579 : : }
3580 : : else
3581 : : {
3582 : 0 : if ((code1 == NE_EXPR
3583 : 0 : && code2 == LE_EXPR
3584 : 0 : && cmp == 0
3585 : 0 : && allbits)
3586 : 0 : && ((VECTOR_BOOLEAN_TYPE_P (type)
3587 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, LT_EXPR))
3588 : 0 : || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
3589 : : )
3590 : : {
3591 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail990;
3592 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail990;
3593 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail990;
3594 : 0 : {
3595 : 0 : tree res_op0;
3596 : 0 : res_op0 = captures[4];
3597 : 0 : tree res_op1;
3598 : 0 : {
3599 : 0 : tree _o1[1], _r1;
3600 : 0 : _o1[0] = captures[2];
3601 : 0 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
3602 : : {
3603 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
3604 : : }
3605 : : else
3606 : : _r1 = _o1[0];
3607 : 0 : res_op1 = _r1;
3608 : : }
3609 : 0 : tree _r;
3610 : 0 : _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
3611 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 689, __FILE__, __LINE__, true);
3612 : 0 : return _r;
3613 : : }
3614 : : next_after_fail990:;
3615 : : }
3616 : : else
3617 : : {
3618 : 0 : if ((code1 == NE_EXPR
3619 : 0 : && code2 == GT_EXPR
3620 : : && one_after
3621 : 0 : && allbits)
3622 : 0 : && ((VECTOR_BOOLEAN_TYPE_P (type)
3623 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, GT_EXPR))
3624 : 0 : || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
3625 : : )
3626 : : {
3627 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail991;
3628 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail991;
3629 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail991;
3630 : 0 : {
3631 : 0 : tree res_op0;
3632 : 0 : res_op0 = captures[4];
3633 : 0 : tree res_op1;
3634 : 0 : {
3635 : 0 : tree _o1[1], _r1;
3636 : 0 : _o1[0] = captures[2];
3637 : 0 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
3638 : : {
3639 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
3640 : : }
3641 : : else
3642 : : _r1 = _o1[0];
3643 : 0 : res_op1 = _r1;
3644 : : }
3645 : 0 : tree _r;
3646 : 0 : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
3647 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 690, __FILE__, __LINE__, true);
3648 : 0 : return _r;
3649 : : }
3650 : : next_after_fail991:;
3651 : : }
3652 : : else
3653 : : {
3654 : 0 : if ((code1 == NE_EXPR
3655 : 0 : && code2 == LT_EXPR
3656 : : && one_before
3657 : 0 : && allbits)
3658 : 0 : && ((VECTOR_BOOLEAN_TYPE_P (type)
3659 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, LT_EXPR))
3660 : 0 : || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
3661 : : )
3662 : : {
3663 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail992;
3664 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail992;
3665 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail992;
3666 : 0 : {
3667 : 0 : tree res_op0;
3668 : 0 : res_op0 = captures[4];
3669 : 0 : tree res_op1;
3670 : 0 : {
3671 : 0 : tree _o1[1], _r1;
3672 : 0 : _o1[0] = captures[2];
3673 : 0 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
3674 : : {
3675 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
3676 : : }
3677 : : else
3678 : : _r1 = _o1[0];
3679 : 0 : res_op1 = _r1;
3680 : : }
3681 : 0 : tree _r;
3682 : 0 : _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
3683 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 691, __FILE__, __LINE__, true);
3684 : 0 : return _r;
3685 : : }
3686 : : next_after_fail992:;
3687 : : }
3688 : : }
3689 : : }
3690 : : }
3691 : : }
3692 : : }
3693 : : }
3694 : : }
3695 : : }
3696 : : return NULL_TREE;
3697 : : }
3698 : :
3699 : : tree
3700 : 145 : generic_simplify_456 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3701 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
3702 : : {
3703 : 145 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3704 : 145 : if (element_precision (type) <= element_precision (TREE_TYPE (captures[0]))
3705 : 145 : || !TYPE_UNSIGNED (TREE_TYPE (captures[0]))
3706 : : )
3707 : : {
3708 : 145 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1049;
3709 : 145 : {
3710 : 145 : tree res_op0;
3711 : 145 : {
3712 : 145 : tree _o1[2], _r1;
3713 : 145 : _o1[0] = captures[0];
3714 : 145 : _o1[1] = build_each_one_cst (TREE_TYPE (captures[0]));
3715 : 145 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3716 : 145 : res_op0 = _r1;
3717 : : }
3718 : 145 : tree _r;
3719 : 145 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3720 : 145 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 713, __FILE__, __LINE__, true);
3721 : 145 : return _r;
3722 : : }
3723 : 0 : next_after_fail1049:;
3724 : : }
3725 : : return NULL_TREE;
3726 : : }
3727 : :
3728 : : tree
3729 : 0 : generic_simplify_460 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3730 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
3731 : : const enum tree_code ARG_UNUSED (rotate))
3732 : : {
3733 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3734 : 0 : if ((element_precision (TREE_TYPE (captures[2]))
3735 : 0 : <= element_precision (TREE_TYPE (captures[3]))
3736 : 0 : || !TYPE_UNSIGNED (TREE_TYPE (captures[3])))
3737 : 0 : && (element_precision (type) <= element_precision (TREE_TYPE (captures[2]))
3738 : 0 : || !TYPE_UNSIGNED (TREE_TYPE (captures[2])))
3739 : : )
3740 : : {
3741 : 0 : {
3742 : 0 : tree rotate_type = TREE_TYPE (captures[2]);
3743 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1053;
3744 : 0 : {
3745 : 0 : tree res_op0;
3746 : 0 : {
3747 : 0 : tree _o1[2], _r1;
3748 : 0 : {
3749 : 0 : tree _o2[1], _r2;
3750 : 0 : _o2[0] = captures[3];
3751 : 0 : if (TREE_TYPE (_o2[0]) != rotate_type)
3752 : : {
3753 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, rotate_type, _o2[0]);
3754 : : }
3755 : : else
3756 : : _r2 = _o2[0];
3757 : 0 : _o1[0] = _r2;
3758 : : }
3759 : 0 : _o1[1] = captures[4];
3760 : 0 : _r1 = fold_build2_loc (loc, rotate, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3761 : 0 : res_op0 = _r1;
3762 : : }
3763 : 0 : tree _r;
3764 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3765 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 716, __FILE__, __LINE__, true);
3766 : 0 : return _r;
3767 : : }
3768 : 0 : next_after_fail1053:;
3769 : : }
3770 : : }
3771 : : return NULL_TREE;
3772 : : }
3773 : :
3774 : : tree
3775 : 16 : generic_simplify_470 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3776 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
3777 : : const combined_fn ARG_UNUSED (fmas))
3778 : : {
3779 : 16 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3780 : 16 : if (canonicalize_math_after_vectorization_p ()
3781 : : )
3782 : : {
3783 : : if (!HONOR_SIGN_DEPENDENT_ROUNDING (type) && single_use (captures[0])
3784 : : )
3785 : : {
3786 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1065;
3787 : : {
3788 : : tree res_op0;
3789 : : res_op0 = captures[1];
3790 : : tree res_op1;
3791 : : res_op1 = captures[2];
3792 : : tree res_op2;
3793 : : res_op2 = captures[3];
3794 : : tree _r;
3795 : : _r = maybe_build_call_expr_loc (loc, CFN_FNMS, type, 3, res_op0, res_op1, res_op2);
3796 : : if (!_r)
3797 : : goto next_after_fail1065;
3798 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 727, __FILE__, __LINE__, true);
3799 : : return _r;
3800 : : }
3801 : 16 : next_after_fail1065:;
3802 : : }
3803 : : }
3804 : 16 : return NULL_TREE;
3805 : : }
3806 : :
3807 : : tree
3808 : 0 : generic_simplify_478 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3809 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
3810 : : {
3811 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3812 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1075;
3813 : 0 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1075;
3814 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1075;
3815 : 0 : {
3816 : 0 : tree _r;
3817 : 0 : _r = captures[2];
3818 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 736, __FILE__, __LINE__, true);
3819 : : return _r;
3820 : : }
3821 : : next_after_fail1075:;
3822 : : return NULL_TREE;
3823 : : }
3824 : :
3825 : : tree
3826 : 3 : generic_simplify_484 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3827 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
3828 : : const enum tree_code ARG_UNUSED (op))
3829 : : {
3830 : 3 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3831 : 3 : if (INTEGRAL_TYPE_P (type)
3832 : 3 : && TYPE_PRECISION (type) > 1
3833 : 6 : && (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])))
3834 : : )
3835 : : {
3836 : 3 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1084;
3837 : 3 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1084;
3838 : 3 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1084;
3839 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1084;
3840 : 3 : {
3841 : 3 : tree res_op0;
3842 : 3 : {
3843 : 3 : tree _o1[2], _r1;
3844 : 3 : {
3845 : 3 : tree _o2[1], _r2;
3846 : 3 : _o2[0] = captures[0];
3847 : 3 : if (TREE_TYPE (_o2[0]) != type)
3848 : : {
3849 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, type, _o2[0]);
3850 : : }
3851 : : else
3852 : : _r2 = _o2[0];
3853 : 3 : _o1[0] = _r2;
3854 : : }
3855 : 3 : _o1[1] = captures[2];
3856 : 3 : _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3857 : 3 : res_op0 = _r1;
3858 : : }
3859 : 3 : tree res_op1;
3860 : 3 : res_op1 = captures[1];
3861 : 3 : tree _r;
3862 : 3 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
3863 : 3 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 745, __FILE__, __LINE__, true);
3864 : 3 : return _r;
3865 : : }
3866 : : next_after_fail1084:;
3867 : : }
3868 : : return NULL_TREE;
3869 : : }
3870 : :
3871 : : tree
3872 : 9 : generic_simplify_494 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3873 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
3874 : : const combined_fn ARG_UNUSED (func))
3875 : : {
3876 : 9 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3877 : 9 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1095;
3878 : 9 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1095;
3879 : 9 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1095;
3880 : 9 : {
3881 : 9 : tree _r;
3882 : 9 : _r = captures[2];
3883 : 9 : if (TREE_SIDE_EFFECTS (captures[1]))
3884 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3885 : 9 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 756, __FILE__, __LINE__, true);
3886 : : return _r;
3887 : : }
3888 : : next_after_fail1095:;
3889 : : return NULL_TREE;
3890 : : }
3891 : :
3892 : : tree
3893 : 0 : generic_simplify_501 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3894 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3895 : : const enum tree_code ARG_UNUSED (minmax))
3896 : : {
3897 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3898 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1104;
3899 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1104;
3900 : 0 : {
3901 : 0 : tree _r;
3902 : 0 : _r = captures[0];
3903 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 763, __FILE__, __LINE__, true);
3904 : : return _r;
3905 : : }
3906 : : next_after_fail1104:;
3907 : : return NULL_TREE;
3908 : : }
3909 : :
3910 : : tree
3911 : 20 : generic_simplify_507 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3912 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3913 : : const enum tree_code ARG_UNUSED (minmax),
3914 : : const enum tree_code ARG_UNUSED (cmp))
3915 : : {
3916 : 20 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3917 : 20 : {
3918 : 20 : poly_int64 off0, off1;
3919 : 20 : tree base0, base1;
3920 : 20 : int equal = address_compare (cmp, TREE_TYPE (captures[0]), captures[1], captures[3], base0, base1,
3921 : : off0, off1,
3922 : : 1
3923 : : );
3924 : 20 : if (equal == 1
3925 : : )
3926 : : {
3927 : 0 : if (minmax == MIN_EXPR
3928 : : )
3929 : : {
3930 : 0 : if (known_le (off0, off1)
3931 : : )
3932 : : {
3933 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1119;
3934 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1119;
3935 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1119;
3936 : 0 : {
3937 : 0 : tree _r;
3938 : 0 : _r = captures[0];
3939 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 766, __FILE__, __LINE__, true);
3940 : 0 : return _r;
3941 : : }
3942 : 20 : next_after_fail1119:;
3943 : : }
3944 : : else
3945 : : {
3946 : 0 : if (known_gt (off0, off1)
3947 : : )
3948 : : {
3949 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1120;
3950 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1120;
3951 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1120;
3952 : 0 : {
3953 : 0 : tree _r;
3954 : 0 : _r = captures[2];
3955 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 767, __FILE__, __LINE__, true);
3956 : 0 : return _r;
3957 : : }
3958 : 20 : next_after_fail1120:;
3959 : : }
3960 : : }
3961 : : }
3962 : : else
3963 : : {
3964 : 0 : if (known_ge (off0, off1)
3965 : : )
3966 : : {
3967 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1121;
3968 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1121;
3969 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1121;
3970 : 0 : {
3971 : 0 : tree _r;
3972 : 0 : _r = captures[0];
3973 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 768, __FILE__, __LINE__, true);
3974 : 0 : return _r;
3975 : : }
3976 : 20 : next_after_fail1121:;
3977 : : }
3978 : : else
3979 : : {
3980 : 0 : if (known_lt (off0, off1)
3981 : : )
3982 : : {
3983 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1122;
3984 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1122;
3985 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1122;
3986 : 0 : {
3987 : 0 : tree _r;
3988 : 0 : _r = captures[2];
3989 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 769, __FILE__, __LINE__, true);
3990 : 0 : return _r;
3991 : : }
3992 : 20 : next_after_fail1122:;
3993 : : }
3994 : : }
3995 : : }
3996 : : }
3997 : : }
3998 : 20 : return NULL_TREE;
3999 : : }
4000 : :
4001 : : tree
4002 : 0 : generic_simplify_526 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4003 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
4004 : : const enum tree_code ARG_UNUSED (cmp))
4005 : : {
4006 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4007 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1144;
4008 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1144;
4009 : 0 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1144;
4010 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1144;
4011 : 0 : {
4012 : 0 : tree _r;
4013 : 0 : _r = captures[3];
4014 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 752, __FILE__, __LINE__, true);
4015 : : return _r;
4016 : : }
4017 : : next_after_fail1144:;
4018 : : return NULL_TREE;
4019 : : }
4020 : :
4021 : : tree
4022 : 0 : generic_simplify_534 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4023 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
4024 : : const combined_fn ARG_UNUSED (cond_len_op))
4025 : : {
4026 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4027 : 0 : {
4028 : 0 : tree op_type = TREE_TYPE (captures[4]);
4029 : 0 : if (element_precision (type) == element_precision (op_type)
4030 : : )
4031 : : {
4032 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1152;
4033 : 0 : {
4034 : 0 : tree res_op0;
4035 : 0 : {
4036 : 0 : tree _o1[7], _r1;
4037 : 0 : _o1[0] = captures[0];
4038 : 0 : _o1[1] = captures[1];
4039 : 0 : _o1[2] = captures[2];
4040 : 0 : _o1[3] = captures[3];
4041 : 0 : {
4042 : 0 : tree _o2[1], _r2;
4043 : 0 : _o2[0] = captures[7];
4044 : 0 : if (TREE_TYPE (_o2[0]) != op_type)
4045 : : {
4046 : 0 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, op_type, _o2[0]);
4047 : : }
4048 : : else
4049 : : _r2 = _o2[0];
4050 : 0 : _o1[4] = _r2;
4051 : : }
4052 : 0 : _o1[5] = captures[5];
4053 : 0 : _o1[6] = captures[6];
4054 : 0 : _r1 = maybe_build_call_expr_loc (loc, cond_len_op, TREE_TYPE (_o1[1]), 7, _o1[0], _o1[1], _o1[2], _o1[3], _o1[4], _o1[5], _o1[6]);
4055 : 0 : if (!_r1)
4056 : 0 : goto next_after_fail1152;
4057 : 0 : res_op0 = _r1;
4058 : : }
4059 : 0 : tree _r;
4060 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
4061 : 0 : if (TREE_SIDE_EFFECTS (captures[4]))
4062 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[4]), _r);
4063 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 794, __FILE__, __LINE__, true);
4064 : 0 : return _r;
4065 : : }
4066 : : next_after_fail1152:;
4067 : : }
4068 : : }
4069 : : return NULL_TREE;
4070 : : }
4071 : :
4072 : : tree
4073 : 0 : generic_simplify_542 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4074 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
4075 : : const combined_fn ARG_UNUSED (ovf))
4076 : : {
4077 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4078 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
4079 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
4080 : 0 : && TYPE_PRECISION (TREE_TYPE (captures[1])) > TYPE_PRECISION (TREE_TYPE (captures[2]))
4081 : 0 : && (!TYPE_UNSIGNED (TREE_TYPE (captures[1])) || TYPE_UNSIGNED (TREE_TYPE (captures[2])))
4082 : : )
4083 : : {
4084 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1160;
4085 : 0 : {
4086 : 0 : tree res_op0;
4087 : 0 : res_op0 = captures[0];
4088 : 0 : tree res_op1;
4089 : 0 : res_op1 = captures[2];
4090 : 0 : tree _r;
4091 : 0 : _r = maybe_build_call_expr_loc (loc, ovf, type, 2, res_op0, res_op1);
4092 : 0 : if (!_r)
4093 : 0 : goto next_after_fail1160;
4094 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 802, __FILE__, __LINE__, true);
4095 : 0 : return _r;
4096 : : }
4097 : : next_after_fail1160:;
4098 : : }
4099 : : return NULL_TREE;
4100 : : }
4101 : :
4102 : : tree
4103 : 0 : generic_simplify_553 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4104 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4105 : : const combined_fn ARG_UNUSED (floors),
4106 : : const combined_fn ARG_UNUSED (truncs))
4107 : : {
4108 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4109 : 0 : if (canonicalize_math_p ()
4110 : : )
4111 : : {
4112 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1171;
4113 : 0 : {
4114 : 0 : tree res_op0;
4115 : 0 : res_op0 = captures[0];
4116 : 0 : tree _r;
4117 : 0 : _r = maybe_build_call_expr_loc (loc, truncs, type, 1, res_op0);
4118 : 0 : if (!_r)
4119 : 0 : goto next_after_fail1171;
4120 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 813, __FILE__, __LINE__, true);
4121 : 0 : return _r;
4122 : : }
4123 : : next_after_fail1171:;
4124 : : }
4125 : : return NULL_TREE;
4126 : : }
4127 : :
4128 : : tree
4129 : 0 : generic_simplify_559 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4130 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4131 : : const combined_fn ARG_UNUSED (fns))
4132 : : {
4133 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4134 : 0 : if (canonicalize_math_p ()
4135 : : )
4136 : : {
4137 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1177;
4138 : 0 : {
4139 : 0 : tree res_op0;
4140 : 0 : res_op0 = captures[0];
4141 : 0 : tree _r;
4142 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4143 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 819, __FILE__, __LINE__, true);
4144 : 0 : return _r;
4145 : : }
4146 : 0 : next_after_fail1177:;
4147 : : }
4148 : : return NULL_TREE;
4149 : : }
4150 : :
4151 : : tree
4152 : 0 : generic_simplify_568 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4153 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
4154 : : {
4155 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4156 : 0 : if (canonicalize_math_after_vectorization_p ()
4157 : : )
4158 : : {
4159 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1186;
4160 : : {
4161 : : tree res_op0;
4162 : : res_op0 = captures[0];
4163 : : tree res_op1;
4164 : : res_op1 = captures[1];
4165 : : tree res_op2;
4166 : : res_op2 = captures[2];
4167 : : tree _r;
4168 : : _r = maybe_build_call_expr_loc (loc, CFN_FNMS, type, 3, res_op0, res_op1, res_op2);
4169 : : if (!_r)
4170 : : goto next_after_fail1186;
4171 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 828, __FILE__, __LINE__, true);
4172 : : return _r;
4173 : : }
4174 : 0 : next_after_fail1186:;
4175 : : }
4176 : 0 : return NULL_TREE;
4177 : : }
4178 : :
4179 : : tree
4180 : 0 : generic_simplify_578 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4181 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4182 : : const combined_fn ARG_UNUSED (bswap),
4183 : : const combined_fn ARG_UNUSED (popcount))
4184 : : {
4185 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4186 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
4187 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
4188 : : )
4189 : : {
4190 : 0 : {
4191 : 0 : tree type0 = TREE_TYPE (captures[0]);
4192 : 0 : tree type1 = TREE_TYPE (captures[1]);
4193 : 0 : unsigned int prec0 = TYPE_PRECISION (type0);
4194 : 0 : unsigned int prec1 = TYPE_PRECISION (type1);
4195 : 0 : if (prec0 == prec1 || (prec0 > prec1 && TYPE_UNSIGNED (type1))
4196 : : )
4197 : : {
4198 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1196;
4199 : 0 : {
4200 : 0 : tree res_op0;
4201 : 0 : {
4202 : 0 : tree _o1[1], _r1;
4203 : 0 : {
4204 : 0 : tree _o2[1], _r2;
4205 : 0 : _o2[0] = captures[2];
4206 : 0 : if (TREE_TYPE (_o2[0]) != type1)
4207 : : {
4208 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, type1, _o2[0]);
4209 : : }
4210 : : else
4211 : : _r2 = _o2[0];
4212 : 0 : _o1[0] = _r2;
4213 : : }
4214 : 0 : if (TREE_TYPE (_o1[0]) != type0)
4215 : : {
4216 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type0, _o1[0]);
4217 : : }
4218 : : else
4219 : : _r1 = _o1[0];
4220 : 0 : res_op0 = _r1;
4221 : : }
4222 : 0 : tree _r;
4223 : 0 : _r = maybe_build_call_expr_loc (loc, popcount, type, 1, res_op0);
4224 : 0 : if (!_r)
4225 : 0 : goto next_after_fail1196;
4226 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 835, __FILE__, __LINE__, true);
4227 : 0 : return _r;
4228 : : }
4229 : : next_after_fail1196:;
4230 : : }
4231 : : }
4232 : : }
4233 : : return NULL_TREE;
4234 : : }
4235 : :
4236 : : tree
4237 : 0 : generic_simplify_589 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4238 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4239 : : const combined_fn ARG_UNUSED (reduc))
4240 : : {
4241 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4242 : 0 : {
4243 : 0 : tree ctor = (TREE_CODE (captures[0]) == SSA_NAME
4244 : 0 : ? gimple_assign_rhs1 (SSA_NAME_DEF_STMT (captures[0])) : captures[0]);
4245 : 0 : tree elt = ctor_single_nonzero_element (ctor);
4246 : 0 : if (elt
4247 : 0 : && types_match (type, TREE_TYPE (elt))
4248 : 0 : && !HONOR_SNANS (type)
4249 : 0 : && !HONOR_SIGNED_ZEROS (type)
4250 : : )
4251 : : {
4252 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1208;
4253 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1208;
4254 : 0 : {
4255 : 0 : tree _r;
4256 : 0 : _r = elt;
4257 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 843, __FILE__, __LINE__, true);
4258 : 0 : return _r;
4259 : : }
4260 : : next_after_fail1208:;
4261 : : }
4262 : : }
4263 : : return NULL_TREE;
4264 : : }
4265 : :
4266 : : tree
4267 : 3335 : generic_simplify_PAREN_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0)
4268 : : {
4269 : 3335 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4270 : 3335 : switch (TREE_CODE (_p0))
4271 : : {
4272 : 2 : case PAREN_EXPR:
4273 : 2 : {
4274 : 2 : tree _q20 = TREE_OPERAND (_p0, 0);
4275 : 2 : {
4276 : 2 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
4277 : 2 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1299;
4278 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1299;
4279 : 2 : {
4280 : 2 : tree _r;
4281 : 2 : _r = captures[0];
4282 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 892, __FILE__, __LINE__, true);
4283 : 2 : return _r;
4284 : : }
4285 : 0 : next_after_fail1299:;
4286 : : }
4287 : 0 : break;
4288 : : }
4289 : 3333 : default:;
4290 : : }
4291 : 3333 : if (CONSTANT_CLASS_P (_p0))
4292 : : {
4293 : 1 : {
4294 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4295 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1300;
4296 : 1 : {
4297 : 1 : tree _r;
4298 : 1 : _r = captures[0];
4299 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 893, __FILE__, __LINE__, true);
4300 : 1 : return _r;
4301 : : }
4302 : 0 : next_after_fail1300:;
4303 : : }
4304 : : }
4305 : : return NULL_TREE;
4306 : : }
4307 : :
4308 : : tree
4309 : 1834235 : generic_simplify_REALPART_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0)
4310 : : {
4311 : 1834235 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4312 : 1834235 : switch (TREE_CODE (_p0))
4313 : : {
4314 : 9611 : case COMPLEX_EXPR:
4315 : 9611 : {
4316 : 9611 : tree _q20 = TREE_OPERAND (_p0, 0);
4317 : 9611 : tree _q21 = TREE_OPERAND (_p0, 1);
4318 : 9611 : {
4319 : 9611 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4320 : 9611 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1301;
4321 : 9611 : {
4322 : 9611 : tree _r;
4323 : 9611 : _r = captures[0];
4324 : 9611 : if (TREE_SIDE_EFFECTS (captures[1]))
4325 : 1366 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
4326 : 9611 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 894, __FILE__, __LINE__, true);
4327 : 9611 : return _r;
4328 : : }
4329 : 0 : next_after_fail1301:;
4330 : : }
4331 : 0 : break;
4332 : : }
4333 : 48704 : CASE_CONVERT:
4334 : 48704 : {
4335 : 48704 : tree _q20 = TREE_OPERAND (_p0, 0);
4336 : 48704 : switch (TREE_CODE (_q20))
4337 : : {
4338 : 0 : case CONJ_EXPR:
4339 : 0 : {
4340 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
4341 : 0 : {
4342 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
4343 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1302;
4344 : 0 : {
4345 : 0 : tree res_op0;
4346 : 0 : {
4347 : 0 : tree _o1[1], _r1;
4348 : 0 : _o1[0] = captures[2];
4349 : 0 : _r1 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o1[0])), _o1[0]);
4350 : 0 : res_op0 = _r1;
4351 : : }
4352 : 0 : tree _r;
4353 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4354 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 895, __FILE__, __LINE__, true);
4355 : 0 : return _r;
4356 : : }
4357 : 0 : next_after_fail1302:;
4358 : : }
4359 : 0 : break;
4360 : : }
4361 : 0 : case PLUS_EXPR:
4362 : 0 : {
4363 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
4364 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
4365 : 0 : {
4366 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31 };
4367 : 0 : const enum tree_code op = PLUS_EXPR;
4368 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1303;
4369 : 0 : {
4370 : 0 : tree res_op0;
4371 : 0 : {
4372 : 0 : tree _o1[2], _r1;
4373 : 0 : {
4374 : 0 : tree _o2[1], _r2;
4375 : 0 : _o2[0] = captures[2];
4376 : 0 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4377 : 0 : _o1[0] = _r2;
4378 : : }
4379 : 0 : {
4380 : 0 : tree _o2[1], _r2;
4381 : 0 : _o2[0] = captures[3];
4382 : 0 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4383 : 0 : _o1[1] = _r2;
4384 : : }
4385 : 0 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4386 : 0 : res_op0 = _r1;
4387 : : }
4388 : 0 : tree _r;
4389 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4390 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 896, __FILE__, __LINE__, true);
4391 : 0 : return _r;
4392 : : }
4393 : 0 : next_after_fail1303:;
4394 : : }
4395 : 0 : break;
4396 : : }
4397 : 0 : case MINUS_EXPR:
4398 : 0 : {
4399 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
4400 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
4401 : 0 : {
4402 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31 };
4403 : 0 : const enum tree_code op = MINUS_EXPR;
4404 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1304;
4405 : 0 : {
4406 : 0 : tree res_op0;
4407 : 0 : {
4408 : 0 : tree _o1[2], _r1;
4409 : 0 : {
4410 : 0 : tree _o2[1], _r2;
4411 : 0 : _o2[0] = captures[2];
4412 : 0 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4413 : 0 : _o1[0] = _r2;
4414 : : }
4415 : 0 : {
4416 : 0 : tree _o2[1], _r2;
4417 : 0 : _o2[0] = captures[3];
4418 : 0 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4419 : 0 : _o1[1] = _r2;
4420 : : }
4421 : 0 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4422 : 0 : res_op0 = _r1;
4423 : : }
4424 : 0 : tree _r;
4425 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4426 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 896, __FILE__, __LINE__, true);
4427 : 0 : return _r;
4428 : : }
4429 : 0 : next_after_fail1304:;
4430 : : }
4431 : 0 : break;
4432 : : }
4433 : 0 : case CALL_EXPR:
4434 : 0 : switch (get_call_combined_fn (_q20))
4435 : : {
4436 : 0 : case CFN_BUILT_IN_CEXPIF:
4437 : 0 : if (call_expr_nargs (_q20) == 1)
4438 : : {
4439 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
4440 : 0 : {
4441 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
4442 : 0 : if (single_use (captures[1]) && single_use (captures[0])
4443 : : )
4444 : : {
4445 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1305;
4446 : 0 : {
4447 : 0 : tree res_op0;
4448 : 0 : {
4449 : 0 : tree _o1[1], _r1;
4450 : 0 : _o1[0] = captures[2];
4451 : 0 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_COSF, TREE_TYPE (_o1[0]), 1, _o1[0]);
4452 : 0 : if (!_r1)
4453 : 0 : goto next_after_fail1305;
4454 : 0 : res_op0 = _r1;
4455 : : }
4456 : 0 : tree _r;
4457 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4458 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 897, __FILE__, __LINE__, true);
4459 : 0 : return _r;
4460 : : }
4461 : 0 : next_after_fail1305:;
4462 : : }
4463 : : }
4464 : : }
4465 : : break;
4466 : 0 : case CFN_BUILT_IN_CEXPIL:
4467 : 0 : if (call_expr_nargs (_q20) == 1)
4468 : : {
4469 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
4470 : 0 : {
4471 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
4472 : 0 : if (single_use (captures[1]) && single_use (captures[0])
4473 : : )
4474 : : {
4475 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1306;
4476 : 0 : {
4477 : 0 : tree res_op0;
4478 : 0 : {
4479 : 0 : tree _o1[1], _r1;
4480 : 0 : _o1[0] = captures[2];
4481 : 0 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_COSL, TREE_TYPE (_o1[0]), 1, _o1[0]);
4482 : 0 : if (!_r1)
4483 : 0 : goto next_after_fail1306;
4484 : 0 : res_op0 = _r1;
4485 : : }
4486 : 0 : tree _r;
4487 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4488 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 897, __FILE__, __LINE__, true);
4489 : 0 : return _r;
4490 : : }
4491 : 0 : next_after_fail1306:;
4492 : : }
4493 : : }
4494 : : }
4495 : : break;
4496 : 0 : case CFN_BUILT_IN_CEXPI:
4497 : 0 : if (call_expr_nargs (_q20) == 1)
4498 : : {
4499 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
4500 : 0 : {
4501 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
4502 : 0 : if (single_use (captures[1]) && single_use (captures[0])
4503 : : )
4504 : : {
4505 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1307;
4506 : 0 : {
4507 : 0 : tree res_op0;
4508 : 0 : {
4509 : 0 : tree _o1[1], _r1;
4510 : 0 : _o1[0] = captures[2];
4511 : 0 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_COS, TREE_TYPE (_o1[0]), 1, _o1[0]);
4512 : 0 : if (!_r1)
4513 : 0 : goto next_after_fail1307;
4514 : 0 : res_op0 = _r1;
4515 : : }
4516 : 0 : tree _r;
4517 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4518 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 897, __FILE__, __LINE__, true);
4519 : 0 : return _r;
4520 : : }
4521 : 0 : next_after_fail1307:;
4522 : : }
4523 : : }
4524 : : }
4525 : : break;
4526 : : default:;
4527 : : }
4528 : : break;
4529 : : default:;
4530 : : }
4531 : : break;
4532 : : }
4533 : 16 : case CONJ_EXPR:
4534 : 16 : {
4535 : 16 : tree _q20 = TREE_OPERAND (_p0, 0);
4536 : 16 : {
4537 : 16 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q20 };
4538 : 16 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1308;
4539 : 16 : {
4540 : 16 : tree res_op0;
4541 : 16 : {
4542 : 16 : tree _o1[1], _r1;
4543 : 16 : _o1[0] = captures[2];
4544 : 16 : _r1 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o1[0])), _o1[0]);
4545 : 16 : res_op0 = _r1;
4546 : : }
4547 : 16 : tree _r;
4548 : 16 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4549 : 16 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 895, __FILE__, __LINE__, true);
4550 : 16 : return _r;
4551 : : }
4552 : 0 : next_after_fail1308:;
4553 : : }
4554 : 0 : break;
4555 : : }
4556 : 407 : case PLUS_EXPR:
4557 : 407 : {
4558 : 407 : tree _q20 = TREE_OPERAND (_p0, 0);
4559 : 407 : tree _q21 = TREE_OPERAND (_p0, 1);
4560 : 407 : {
4561 : 407 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21 };
4562 : 407 : const enum tree_code op = PLUS_EXPR;
4563 : 407 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1309;
4564 : 407 : {
4565 : 407 : tree res_op0;
4566 : 407 : {
4567 : 407 : tree _o1[2], _r1;
4568 : 407 : {
4569 : 407 : tree _o2[1], _r2;
4570 : 407 : _o2[0] = captures[2];
4571 : 407 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4572 : 407 : _o1[0] = _r2;
4573 : : }
4574 : 407 : {
4575 : 407 : tree _o2[1], _r2;
4576 : 407 : _o2[0] = captures[3];
4577 : 407 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4578 : 407 : _o1[1] = _r2;
4579 : : }
4580 : 407 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4581 : 407 : res_op0 = _r1;
4582 : : }
4583 : 407 : tree _r;
4584 : 407 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4585 : 407 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 896, __FILE__, __LINE__, true);
4586 : 407 : return _r;
4587 : : }
4588 : 0 : next_after_fail1309:;
4589 : : }
4590 : 0 : break;
4591 : : }
4592 : 47 : case MINUS_EXPR:
4593 : 47 : {
4594 : 47 : tree _q20 = TREE_OPERAND (_p0, 0);
4595 : 47 : tree _q21 = TREE_OPERAND (_p0, 1);
4596 : 47 : {
4597 : 47 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21 };
4598 : 47 : const enum tree_code op = MINUS_EXPR;
4599 : 47 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1310;
4600 : 47 : {
4601 : 47 : tree res_op0;
4602 : 47 : {
4603 : 47 : tree _o1[2], _r1;
4604 : 47 : {
4605 : 47 : tree _o2[1], _r2;
4606 : 47 : _o2[0] = captures[2];
4607 : 47 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4608 : 47 : _o1[0] = _r2;
4609 : : }
4610 : 47 : {
4611 : 47 : tree _o2[1], _r2;
4612 : 47 : _o2[0] = captures[3];
4613 : 47 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4614 : 47 : _o1[1] = _r2;
4615 : : }
4616 : 47 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4617 : 47 : res_op0 = _r1;
4618 : : }
4619 : 47 : tree _r;
4620 : 47 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4621 : 47 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 896, __FILE__, __LINE__, true);
4622 : 47 : return _r;
4623 : : }
4624 : 0 : next_after_fail1310:;
4625 : : }
4626 : 0 : break;
4627 : : }
4628 : 257 : case CALL_EXPR:
4629 : 257 : switch (get_call_combined_fn (_p0))
4630 : : {
4631 : 0 : case CFN_BUILT_IN_CEXPIF:
4632 : 0 : if (call_expr_nargs (_p0) == 1)
4633 : : {
4634 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4635 : 0 : {
4636 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q20 };
4637 : 0 : if (single_use (captures[1]) && single_use (captures[0])
4638 : : )
4639 : : {
4640 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1311;
4641 : 0 : {
4642 : 0 : tree res_op0;
4643 : 0 : {
4644 : 0 : tree _o1[1], _r1;
4645 : 0 : _o1[0] = captures[2];
4646 : 0 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_COSF, TREE_TYPE (_o1[0]), 1, _o1[0]);
4647 : 0 : if (!_r1)
4648 : 0 : goto next_after_fail1311;
4649 : 0 : res_op0 = _r1;
4650 : : }
4651 : 0 : tree _r;
4652 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4653 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 897, __FILE__, __LINE__, true);
4654 : 0 : return _r;
4655 : : }
4656 : 0 : next_after_fail1311:;
4657 : : }
4658 : : }
4659 : : }
4660 : : break;
4661 : 0 : case CFN_BUILT_IN_CEXPIL:
4662 : 0 : if (call_expr_nargs (_p0) == 1)
4663 : : {
4664 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4665 : 0 : {
4666 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q20 };
4667 : 0 : if (single_use (captures[1]) && single_use (captures[0])
4668 : : )
4669 : : {
4670 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1312;
4671 : 0 : {
4672 : 0 : tree res_op0;
4673 : 0 : {
4674 : 0 : tree _o1[1], _r1;
4675 : 0 : _o1[0] = captures[2];
4676 : 0 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_COSL, TREE_TYPE (_o1[0]), 1, _o1[0]);
4677 : 0 : if (!_r1)
4678 : 0 : goto next_after_fail1312;
4679 : 0 : res_op0 = _r1;
4680 : : }
4681 : 0 : tree _r;
4682 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4683 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 897, __FILE__, __LINE__, true);
4684 : 0 : return _r;
4685 : : }
4686 : 0 : next_after_fail1312:;
4687 : : }
4688 : : }
4689 : : }
4690 : : break;
4691 : 1 : case CFN_BUILT_IN_CEXPI:
4692 : 1 : if (call_expr_nargs (_p0) == 1)
4693 : : {
4694 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4695 : 1 : {
4696 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q20 };
4697 : 1 : if (single_use (captures[1]) && single_use (captures[0])
4698 : : )
4699 : : {
4700 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1313;
4701 : 1 : {
4702 : 1 : tree res_op0;
4703 : 1 : {
4704 : 1 : tree _o1[1], _r1;
4705 : 1 : _o1[0] = captures[2];
4706 : 1 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_COS, TREE_TYPE (_o1[0]), 1, _o1[0]);
4707 : 1 : if (!_r1)
4708 : 0 : goto next_after_fail1313;
4709 : 1 : res_op0 = _r1;
4710 : : }
4711 : 1 : tree _r;
4712 : 1 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4713 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 897, __FILE__, __LINE__, true);
4714 : 1 : return _r;
4715 : : }
4716 : 0 : next_after_fail1313:;
4717 : : }
4718 : : }
4719 : : }
4720 : : break;
4721 : : default:;
4722 : : }
4723 : : break;
4724 : : default:;
4725 : : }
4726 : : return NULL_TREE;
4727 : : }
4728 : :
4729 : : tree
4730 : 2757607 : generic_simplify_POINTER_DIFF_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
4731 : : {
4732 : 2757607 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4733 : 2757607 : if (integer_zerop (_p1))
4734 : : {
4735 : 29 : {
4736 : 29 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4737 : 29 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1538;
4738 : 29 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1538;
4739 : 29 : {
4740 : 29 : tree res_op0;
4741 : 29 : res_op0 = captures[0];
4742 : 29 : tree _r;
4743 : 29 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4744 : 29 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 961, __FILE__, __LINE__, true);
4745 : 29 : return _r;
4746 : : }
4747 : : next_after_fail1538:;
4748 : : }
4749 : : }
4750 : 2757578 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _p0, 0))
4751 : : {
4752 : 46329 : {
4753 : 46329 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p0 };
4754 : 46329 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1539;
4755 : 46329 : {
4756 : 46329 : tree _r;
4757 : 46329 : _r = build_zero_cst (type);
4758 : 46329 : if (TREE_SIDE_EFFECTS (captures[1]))
4759 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
4760 : 46329 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 962, __FILE__, __LINE__, true);
4761 : 46329 : return _r;
4762 : : }
4763 : 0 : next_after_fail1539:;
4764 : : }
4765 : : }
4766 : 2711249 : switch (TREE_CODE (_p0))
4767 : : {
4768 : 105845 : case POINTER_PLUS_EXPR:
4769 : 105845 : {
4770 : 105845 : tree _q20 = TREE_OPERAND (_p0, 0);
4771 : 105845 : tree _q21 = TREE_OPERAND (_p0, 1);
4772 : 105845 : switch (TREE_CODE (_p1))
4773 : : {
4774 : 24813 : case POINTER_PLUS_EXPR:
4775 : 24813 : {
4776 : 24813 : tree _q50 = TREE_OPERAND (_p1, 0);
4777 : 24813 : tree _q51 = TREE_OPERAND (_p1, 1);
4778 : 24813 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
4779 : : {
4780 : 24808 : {
4781 : 24808 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
4782 : 24808 : if (TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[1]))
4783 : : )
4784 : : {
4785 : 24808 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1540;
4786 : 24808 : {
4787 : 24808 : tree res_op0;
4788 : 24808 : {
4789 : 24808 : tree _o1[2], _r1;
4790 : 24808 : _o1[0] = captures[1];
4791 : 24808 : _o1[1] = captures[2];
4792 : 24808 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4793 : 24808 : res_op0 = _r1;
4794 : : }
4795 : 24808 : tree _r;
4796 : 24808 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4797 : 24808 : if (TREE_SIDE_EFFECTS (captures[0]))
4798 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
4799 : 24808 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
4800 : 24808 : return _r;
4801 : : }
4802 : 0 : next_after_fail1540:;
4803 : : }
4804 : : }
4805 : : }
4806 : : break;
4807 : : }
4808 : : default:;
4809 : : }
4810 : : break;
4811 : : }
4812 : 157827 : CASE_CONVERT:
4813 : 157827 : {
4814 : 157827 : tree _q20 = TREE_OPERAND (_p0, 0);
4815 : 157827 : switch (TREE_CODE (_q20))
4816 : : {
4817 : 3600 : case ADDR_EXPR:
4818 : 3600 : {
4819 : 3600 : switch (TREE_CODE (_p1))
4820 : : {
4821 : 324 : CASE_CONVERT:
4822 : 324 : {
4823 : 324 : tree _q40 = TREE_OPERAND (_p1, 0);
4824 : 324 : {
4825 : 324 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
4826 : 324 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
4827 : 324 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
4828 : : )
4829 : : {
4830 : 324 : {
4831 : 324 : poly_int64 diff;
4832 : 324 : if (ptr_difference_const (captures[1], captures[3], &diff)
4833 : : )
4834 : : {
4835 : 189 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1541;
4836 : 189 : {
4837 : 189 : tree _r;
4838 : 189 : _r = build_int_cst_type (type, diff);
4839 : 189 : if (TREE_SIDE_EFFECTS (captures[1]))
4840 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
4841 : 189 : if (TREE_SIDE_EFFECTS (captures[3]))
4842 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
4843 : 189 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 964, __FILE__, __LINE__, true);
4844 : 189 : return _r;
4845 : : }
4846 : 0 : next_after_fail1541:;
4847 : : }
4848 : : }
4849 : : }
4850 : : }
4851 : 135 : break;
4852 : : }
4853 : 3411 : default:;
4854 : : }
4855 : 3411 : {
4856 : 3411 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
4857 : 3411 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
4858 : 3411 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
4859 : : )
4860 : : {
4861 : 3411 : {
4862 : 3411 : poly_int64 diff;
4863 : 3411 : if (ptr_difference_const (captures[1], captures[3], &diff)
4864 : : )
4865 : : {
4866 : 128 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1542;
4867 : 128 : {
4868 : 128 : tree _r;
4869 : 128 : _r = build_int_cst_type (type, diff);
4870 : 128 : if (TREE_SIDE_EFFECTS (captures[1]))
4871 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
4872 : 128 : if (TREE_SIDE_EFFECTS (captures[2]))
4873 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
4874 : 128 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 964, __FILE__, __LINE__, true);
4875 : 128 : return _r;
4876 : : }
4877 : 0 : next_after_fail1542:;
4878 : : }
4879 : : }
4880 : : }
4881 : : }
4882 : 3283 : break;
4883 : : }
4884 : 157510 : default:;
4885 : : }
4886 : 157510 : switch (TREE_CODE (_p1))
4887 : : {
4888 : 80370 : CASE_CONVERT:
4889 : 80370 : {
4890 : 80370 : tree _q40 = TREE_OPERAND (_p1, 0);
4891 : 80370 : switch (TREE_CODE (_q40))
4892 : : {
4893 : 468 : case ADDR_EXPR:
4894 : 468 : {
4895 : 468 : {
4896 : 468 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
4897 : 468 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
4898 : 468 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
4899 : : )
4900 : : {
4901 : 468 : {
4902 : 468 : poly_int64 diff;
4903 : 468 : if (ptr_difference_const (captures[1], captures[3], &diff)
4904 : : )
4905 : : {
4906 : 21 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1543;
4907 : 21 : {
4908 : 21 : tree _r;
4909 : 21 : _r = build_int_cst_type (type, diff);
4910 : 21 : if (TREE_SIDE_EFFECTS (captures[1]))
4911 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
4912 : 21 : if (TREE_SIDE_EFFECTS (captures[3]))
4913 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
4914 : 21 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 965, __FILE__, __LINE__, true);
4915 : 21 : return _r;
4916 : : }
4917 : 0 : next_after_fail1543:;
4918 : : }
4919 : : }
4920 : : }
4921 : : }
4922 : 447 : break;
4923 : : }
4924 : : default:;
4925 : : }
4926 : : break;
4927 : : }
4928 : 12 : case ADDR_EXPR:
4929 : 12 : {
4930 : 12 : {
4931 : 12 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
4932 : 12 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
4933 : 12 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
4934 : : )
4935 : : {
4936 : 12 : {
4937 : 12 : poly_int64 diff;
4938 : 12 : if (ptr_difference_const (captures[1], captures[3], &diff)
4939 : : )
4940 : : {
4941 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1544;
4942 : 0 : {
4943 : 0 : tree _r;
4944 : 0 : _r = build_int_cst_type (type, diff);
4945 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
4946 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
4947 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
4948 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
4949 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 965, __FILE__, __LINE__, true);
4950 : 0 : return _r;
4951 : : }
4952 : 0 : next_after_fail1544:;
4953 : : }
4954 : : }
4955 : : }
4956 : : }
4957 : 12 : break;
4958 : : }
4959 : : default:;
4960 : : }
4961 : : break;
4962 : : }
4963 : 1614 : case ADDR_EXPR:
4964 : 1614 : {
4965 : 1614 : switch (TREE_CODE (_p1))
4966 : : {
4967 : 50 : CASE_CONVERT:
4968 : 50 : {
4969 : 50 : tree _q30 = TREE_OPERAND (_p1, 0);
4970 : 50 : {
4971 : 50 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _p1, _q30 };
4972 : 50 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
4973 : 50 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
4974 : : )
4975 : : {
4976 : 50 : {
4977 : 50 : poly_int64 diff;
4978 : 50 : if (ptr_difference_const (captures[1], captures[3], &diff)
4979 : : )
4980 : : {
4981 : 29 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1545;
4982 : 29 : {
4983 : 29 : tree _r;
4984 : 29 : _r = build_int_cst_type (type, diff);
4985 : 29 : if (TREE_SIDE_EFFECTS (captures[0]))
4986 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
4987 : 29 : if (TREE_SIDE_EFFECTS (captures[3]))
4988 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
4989 : 29 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 964, __FILE__, __LINE__, true);
4990 : 29 : return _r;
4991 : : }
4992 : 0 : next_after_fail1545:;
4993 : : }
4994 : : }
4995 : : }
4996 : : }
4997 : 21 : break;
4998 : : }
4999 : 1585 : default:;
5000 : : }
5001 : 1585 : {
5002 : 1585 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _p1, _p1 };
5003 : 1585 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
5004 : 1585 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
5005 : : )
5006 : : {
5007 : 1585 : {
5008 : 1585 : poly_int64 diff;
5009 : 1585 : if (ptr_difference_const (captures[1], captures[3], &diff)
5010 : : )
5011 : : {
5012 : 261 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1546;
5013 : 261 : {
5014 : 261 : tree _r;
5015 : 261 : _r = build_int_cst_type (type, diff);
5016 : 261 : if (TREE_SIDE_EFFECTS (captures[0]))
5017 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
5018 : 261 : if (TREE_SIDE_EFFECTS (captures[2]))
5019 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
5020 : 261 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 964, __FILE__, __LINE__, true);
5021 : 261 : return _r;
5022 : : }
5023 : 0 : next_after_fail1546:;
5024 : : }
5025 : : }
5026 : : }
5027 : : }
5028 : 1324 : break;
5029 : : }
5030 : 2685813 : default:;
5031 : : }
5032 : 2685813 : switch (TREE_CODE (_p1))
5033 : : {
5034 : 287428 : CASE_CONVERT:
5035 : 287428 : {
5036 : 287428 : tree _q30 = TREE_OPERAND (_p1, 0);
5037 : 287428 : switch (TREE_CODE (_q30))
5038 : : {
5039 : 136176 : case ADDR_EXPR:
5040 : 136176 : {
5041 : 136176 : {
5042 : 136176 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _p1, _q30 };
5043 : 136176 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
5044 : 136176 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
5045 : : )
5046 : : {
5047 : 136176 : {
5048 : 136176 : poly_int64 diff;
5049 : 136176 : if (ptr_difference_const (captures[1], captures[3], &diff)
5050 : : )
5051 : : {
5052 : 69915 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1547;
5053 : 69915 : {
5054 : 69915 : tree _r;
5055 : 69915 : _r = build_int_cst_type (type, diff);
5056 : 69915 : if (TREE_SIDE_EFFECTS (captures[0]))
5057 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
5058 : 69915 : if (TREE_SIDE_EFFECTS (captures[3]))
5059 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
5060 : 69915 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 965, __FILE__, __LINE__, true);
5061 : 69915 : return _r;
5062 : : }
5063 : 0 : next_after_fail1547:;
5064 : : }
5065 : : }
5066 : : }
5067 : : }
5068 : 66261 : break;
5069 : : }
5070 : : default:;
5071 : : }
5072 : : break;
5073 : : }
5074 : 7687 : case ADDR_EXPR:
5075 : 7687 : {
5076 : 7687 : {
5077 : 7687 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _p1, _p1 };
5078 : 7687 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
5079 : 7687 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
5080 : : )
5081 : : {
5082 : 7687 : {
5083 : 7687 : poly_int64 diff;
5084 : 7687 : if (ptr_difference_const (captures[1], captures[3], &diff)
5085 : : )
5086 : : {
5087 : 13 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1548;
5088 : 13 : {
5089 : 13 : tree _r;
5090 : 13 : _r = build_int_cst_type (type, diff);
5091 : 13 : if (TREE_SIDE_EFFECTS (captures[0]))
5092 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
5093 : 13 : if (TREE_SIDE_EFFECTS (captures[2]))
5094 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
5095 : 13 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 965, __FILE__, __LINE__, true);
5096 : 13 : return _r;
5097 : : }
5098 : 0 : next_after_fail1548:;
5099 : : }
5100 : : }
5101 : : }
5102 : : }
5103 : 7674 : break;
5104 : : }
5105 : 2615885 : default:;
5106 : : }
5107 : 2615885 : switch (TREE_CODE (_p0))
5108 : : {
5109 : 11109 : case POINTER_PLUS_EXPR:
5110 : 11109 : {
5111 : 11109 : tree _q20 = TREE_OPERAND (_p0, 0);
5112 : 11109 : tree _q21 = TREE_OPERAND (_p0, 1);
5113 : 11109 : switch (TREE_CODE (_q20))
5114 : : {
5115 : 56 : case ADDR_EXPR:
5116 : 56 : {
5117 : 56 : switch (TREE_CODE (_p1))
5118 : : {
5119 : 0 : case POINTER_PLUS_EXPR:
5120 : 0 : {
5121 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
5122 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
5123 : 0 : switch (TREE_CODE (_q50))
5124 : : {
5125 : 0 : case ADDR_EXPR:
5126 : 0 : {
5127 : 0 : {
5128 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q50, _q51 };
5129 : 0 : {
5130 : 0 : poly_int64 diff;
5131 : 0 : if (ptr_difference_const (captures[0], captures[2], &diff)
5132 : : )
5133 : : {
5134 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1549;
5135 : 0 : {
5136 : 0 : tree res_op0;
5137 : 0 : res_op0 = build_int_cst_type (type, diff);
5138 : 0 : tree res_op1;
5139 : 0 : {
5140 : 0 : tree _o1[1], _r1;
5141 : 0 : {
5142 : 0 : tree _o2[2], _r2;
5143 : 0 : _o2[0] = captures[1];
5144 : 0 : _o2[1] = captures[3];
5145 : 0 : _r2 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
5146 : 0 : _o1[0] = _r2;
5147 : : }
5148 : 0 : if (TREE_TYPE (_o1[0]) != type)
5149 : : {
5150 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
5151 : : }
5152 : : else
5153 : : _r1 = _o1[0];
5154 : 0 : res_op1 = _r1;
5155 : : }
5156 : 0 : tree _r;
5157 : 0 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
5158 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
5159 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
5160 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
5161 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
5162 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 966, __FILE__, __LINE__, true);
5163 : 0 : return _r;
5164 : : }
5165 : 0 : next_after_fail1549:;
5166 : : }
5167 : : }
5168 : : }
5169 : 0 : break;
5170 : : }
5171 : : default:;
5172 : : }
5173 : : break;
5174 : : }
5175 : : default:;
5176 : : }
5177 : : break;
5178 : : }
5179 : 11109 : default:;
5180 : : }
5181 : 11109 : switch (TREE_CODE (_p1))
5182 : : {
5183 : 103 : case ADDR_EXPR:
5184 : 103 : {
5185 : 103 : {
5186 : 103 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
5187 : 103 : {
5188 : 103 : poly_int64 diff;
5189 : 103 : if (ptr_difference_const (captures[0], captures[2], &diff)
5190 : : )
5191 : : {
5192 : 89 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1550;
5193 : 89 : {
5194 : 89 : tree res_op0;
5195 : 89 : res_op0 = build_int_cst_type (type, diff);
5196 : 89 : tree res_op1;
5197 : 89 : {
5198 : 89 : tree _o1[1], _r1;
5199 : 89 : _o1[0] = captures[1];
5200 : 89 : if (TREE_TYPE (_o1[0]) != type)
5201 : : {
5202 : 89 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
5203 : : }
5204 : : else
5205 : : _r1 = _o1[0];
5206 : 89 : res_op1 = _r1;
5207 : : }
5208 : 89 : tree _r;
5209 : 89 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
5210 : 89 : if (TREE_SIDE_EFFECTS (captures[0]))
5211 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
5212 : 89 : if (TREE_SIDE_EFFECTS (captures[2]))
5213 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
5214 : 89 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 967, __FILE__, __LINE__, true);
5215 : 89 : return _r;
5216 : : }
5217 : 0 : next_after_fail1550:;
5218 : : }
5219 : : }
5220 : : }
5221 : 14 : break;
5222 : : }
5223 : 11020 : default:;
5224 : : }
5225 : 11020 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q20, 0))
5226 : : {
5227 : 5584 : {
5228 : 5584 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q20 };
5229 : 5584 : if (!TYPE_SATURATING (type)
5230 : : )
5231 : : {
5232 : 5584 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
5233 : 11168 : && !FIXED_POINT_TYPE_P (type)
5234 : : )
5235 : : {
5236 : 5584 : {
5237 : 5584 : tree stype = signed_type_for (TREE_TYPE (captures[1]));
5238 : 5584 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1551;
5239 : 5584 : {
5240 : 5584 : tree res_op0;
5241 : 5584 : {
5242 : 5584 : tree _o1[1], _r1;
5243 : 5584 : _o1[0] = captures[1];
5244 : 5584 : if (TREE_TYPE (_o1[0]) != stype)
5245 : : {
5246 : 5584 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, stype, _o1[0]);
5247 : : }
5248 : : else
5249 : : _r1 = _o1[0];
5250 : 5584 : res_op0 = _r1;
5251 : : }
5252 : 5584 : tree _r;
5253 : 5584 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
5254 : 5584 : if (TREE_SIDE_EFFECTS (captures[2]))
5255 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
5256 : 5584 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 968, __FILE__, __LINE__, true);
5257 : 5584 : return _r;
5258 : : }
5259 : 0 : next_after_fail1551:;
5260 : : }
5261 : : }
5262 : : }
5263 : : }
5264 : : }
5265 : : break;
5266 : : }
5267 : 1324 : case ADDR_EXPR:
5268 : 1324 : {
5269 : 1324 : switch (TREE_CODE (_p1))
5270 : : {
5271 : 9 : case POINTER_PLUS_EXPR:
5272 : 9 : {
5273 : 9 : tree _q30 = TREE_OPERAND (_p1, 0);
5274 : 9 : tree _q31 = TREE_OPERAND (_p1, 1);
5275 : 9 : {
5276 : 9 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q31 };
5277 : 9 : {
5278 : 9 : poly_int64 diff;
5279 : 9 : if (ptr_difference_const (captures[0], captures[1], &diff)
5280 : : )
5281 : : {
5282 : 9 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1552;
5283 : 9 : {
5284 : 9 : tree res_op0;
5285 : 9 : res_op0 = build_int_cst_type (type, diff);
5286 : 9 : tree res_op1;
5287 : 9 : {
5288 : 9 : tree _o1[1], _r1;
5289 : 9 : _o1[0] = captures[2];
5290 : 9 : if (TREE_TYPE (_o1[0]) != type)
5291 : : {
5292 : 9 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
5293 : : }
5294 : : else
5295 : : _r1 = _o1[0];
5296 : 9 : res_op1 = _r1;
5297 : : }
5298 : 9 : tree _r;
5299 : 9 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
5300 : 9 : if (TREE_SIDE_EFFECTS (captures[0]))
5301 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
5302 : 9 : if (TREE_SIDE_EFFECTS (captures[1]))
5303 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
5304 : 9 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 969, __FILE__, __LINE__, true);
5305 : 9 : return _r;
5306 : : }
5307 : 0 : next_after_fail1552:;
5308 : : }
5309 : : }
5310 : : }
5311 : 0 : break;
5312 : : }
5313 : : default:;
5314 : : }
5315 : : break;
5316 : : }
5317 : 2610203 : default:;
5318 : : }
5319 : 2610203 : switch (TREE_CODE (_p1))
5320 : : {
5321 : 196 : case POINTER_PLUS_EXPR:
5322 : 196 : {
5323 : 196 : tree _q30 = TREE_OPERAND (_p1, 0);
5324 : 196 : tree _q31 = TREE_OPERAND (_p1, 1);
5325 : 196 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || operand_equal_p (_q30, _p0, 0))
5326 : : {
5327 : 136 : {
5328 : 136 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p0 };
5329 : 136 : if (!TYPE_SATURATING (type)
5330 : : )
5331 : : {
5332 : 136 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
5333 : 272 : && !FIXED_POINT_TYPE_P (type)
5334 : : )
5335 : : {
5336 : 136 : {
5337 : 136 : tree stype = signed_type_for (TREE_TYPE (captures[1]));
5338 : 136 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1553;
5339 : 136 : {
5340 : 136 : tree res_op0;
5341 : 136 : {
5342 : 136 : tree _o1[1], _r1;
5343 : 136 : {
5344 : 136 : tree _o2[1], _r2;
5345 : 136 : _o2[0] = captures[1];
5346 : 136 : if (TREE_TYPE (_o2[0]) != stype)
5347 : : {
5348 : 136 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, stype, _o2[0]);
5349 : : }
5350 : : else
5351 : : _r2 = _o2[0];
5352 : 136 : _o1[0] = _r2;
5353 : : }
5354 : 136 : if (TREE_TYPE (_o1[0]) != type)
5355 : : {
5356 : 136 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
5357 : : }
5358 : : else
5359 : : _r1 = _o1[0];
5360 : 136 : res_op0 = _r1;
5361 : : }
5362 : 136 : tree _r;
5363 : 136 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
5364 : 136 : if (TREE_SIDE_EFFECTS (captures[2]))
5365 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
5366 : 136 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 970, __FILE__, __LINE__, true);
5367 : 136 : return _r;
5368 : : }
5369 : 0 : next_after_fail1553:;
5370 : : }
5371 : : }
5372 : : }
5373 : : }
5374 : : }
5375 : : break;
5376 : : }
5377 : 2610067 : default:;
5378 : : }
5379 : 2610067 : switch (TREE_CODE (_p0))
5380 : : {
5381 : 5436 : case POINTER_PLUS_EXPR:
5382 : 5436 : {
5383 : 5436 : tree _q20 = TREE_OPERAND (_p0, 0);
5384 : 5436 : tree _q21 = TREE_OPERAND (_p0, 1);
5385 : 5436 : switch (TREE_CODE (_p1))
5386 : : {
5387 : 5 : case POINTER_PLUS_EXPR:
5388 : 5 : {
5389 : 5 : tree _q50 = TREE_OPERAND (_p1, 0);
5390 : 5 : tree _q51 = TREE_OPERAND (_p1, 1);
5391 : 5 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5392 : : {
5393 : 1 : {
5394 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
5395 : 1 : if (!TYPE_SATURATING (type)
5396 : : )
5397 : : {
5398 : 1 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
5399 : 2 : && !FIXED_POINT_TYPE_P (type)
5400 : : )
5401 : : {
5402 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1554;
5403 : 1 : {
5404 : 1 : tree res_op0;
5405 : 1 : res_op0 = captures[0];
5406 : 1 : tree res_op1;
5407 : 1 : res_op1 = captures[2];
5408 : 1 : tree _r;
5409 : 1 : _r = fold_build2_loc (loc, POINTER_DIFF_EXPR, type, res_op0, res_op1);
5410 : 1 : if (TREE_SIDE_EFFECTS (captures[1]))
5411 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
5412 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 971, __FILE__, __LINE__, true);
5413 : 1 : return _r;
5414 : : }
5415 : 0 : next_after_fail1554:;
5416 : : }
5417 : : }
5418 : : }
5419 : : }
5420 : 4 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
5421 : : {
5422 : 4 : {
5423 : 4 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q51, _q20 };
5424 : 4 : if (!TYPE_SATURATING (type)
5425 : : )
5426 : : {
5427 : 4 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
5428 : 8 : && !FIXED_POINT_TYPE_P (type)
5429 : : )
5430 : : {
5431 : 4 : {
5432 : 4 : tree stype = signed_type_for (TREE_TYPE (captures[1]));
5433 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1555;
5434 : 4 : {
5435 : 4 : tree res_op0;
5436 : 4 : {
5437 : 4 : tree _o1[1], _r1;
5438 : 4 : {
5439 : 4 : tree _o2[1], _r2;
5440 : 4 : _o2[0] = captures[1];
5441 : 4 : if (TREE_TYPE (_o2[0]) != stype)
5442 : : {
5443 : 4 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, stype, _o2[0]);
5444 : : }
5445 : : else
5446 : : _r2 = _o2[0];
5447 : 4 : _o1[0] = _r2;
5448 : : }
5449 : 4 : if (TREE_TYPE (_o1[0]) != type)
5450 : : {
5451 : 4 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
5452 : : }
5453 : : else
5454 : : _r1 = _o1[0];
5455 : 4 : res_op0 = _r1;
5456 : : }
5457 : 4 : tree res_op1;
5458 : 4 : {
5459 : 4 : tree _o1[1], _r1;
5460 : 4 : {
5461 : 4 : tree _o2[1], _r2;
5462 : 4 : _o2[0] = captures[2];
5463 : 4 : if (TREE_TYPE (_o2[0]) != stype)
5464 : : {
5465 : 4 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, stype, _o2[0]);
5466 : : }
5467 : : else
5468 : : _r2 = _o2[0];
5469 : 4 : _o1[0] = _r2;
5470 : : }
5471 : 4 : if (TREE_TYPE (_o1[0]) != type)
5472 : : {
5473 : 4 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
5474 : : }
5475 : : else
5476 : : _r1 = _o1[0];
5477 : 4 : res_op1 = _r1;
5478 : : }
5479 : 4 : tree _r;
5480 : 4 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
5481 : 4 : if (TREE_SIDE_EFFECTS (captures[3]))
5482 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
5483 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 972, __FILE__, __LINE__, true);
5484 : 4 : return _r;
5485 : : }
5486 : 0 : next_after_fail1555:;
5487 : : }
5488 : : }
5489 : : }
5490 : : }
5491 : : }
5492 : : break;
5493 : : }
5494 : : default:;
5495 : : }
5496 : : break;
5497 : : }
5498 : 2610062 : default:;
5499 : : }
5500 : 2610062 : if (integer_zerop (_p0))
5501 : : {
5502 : 0 : {
5503 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p1 };
5504 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1556;
5505 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1556;
5506 : 0 : {
5507 : 0 : tree res_op0;
5508 : 0 : {
5509 : 0 : tree _o1[1], _r1;
5510 : 0 : _o1[0] = captures[0];
5511 : 0 : if (TREE_TYPE (_o1[0]) != type)
5512 : : {
5513 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
5514 : : }
5515 : : else
5516 : : _r1 = _o1[0];
5517 : 0 : res_op0 = _r1;
5518 : : }
5519 : 0 : tree _r;
5520 : 0 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
5521 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 973, __FILE__, __LINE__, true);
5522 : 0 : return _r;
5523 : : }
5524 : : next_after_fail1556:;
5525 : : }
5526 : : }
5527 : : return NULL_TREE;
5528 : : }
5529 : :
5530 : : tree
5531 : 2225633 : generic_simplify_FLOOR_DIV_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
5532 : : {
5533 : 2225633 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
5534 : 2225633 : if (integer_onep (_p1))
5535 : : {
5536 : 748851 : {
5537 : 748851 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5538 : 748851 : tree res = generic_simplify_178 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5539 : 748851 : if (res) return res;
5540 : : }
5541 : : }
5542 : 1476782 : if (integer_zerop (_p0))
5543 : : {
5544 : 4 : {
5545 : 4 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5546 : 4 : tree res = generic_simplify_303 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5547 : 4 : if (res) return res;
5548 : : }
5549 : : }
5550 : 1476778 : switch (TREE_CODE (_p1))
5551 : : {
5552 : 725 : case SSA_NAME:
5553 : 725 : {
5554 : 725 : {
5555 : 725 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5556 : 725 : tree res = generic_simplify_305 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5557 : 725 : if (res) return res;
5558 : : }
5559 : 725 : break;
5560 : : }
5561 : 1476778 : default:;
5562 : : }
5563 : 1476778 : if (integer_minus_onep (_p1))
5564 : : {
5565 : 229 : {
5566 : 229 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5567 : 229 : tree res = generic_simplify_304 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5568 : 229 : if (res) return res;
5569 : : }
5570 : : }
5571 : 1476717 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
5572 : : {
5573 : 0 : {
5574 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5575 : 0 : tree res = generic_simplify_306 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5576 : 0 : if (res) return res;
5577 : : }
5578 : : }
5579 : 1476717 : switch (TREE_CODE (_p1))
5580 : : {
5581 : 0 : case ABS_EXPR:
5582 : 0 : {
5583 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
5584 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
5585 : : {
5586 : 0 : {
5587 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5588 : 0 : tree res = generic_simplify_307 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5589 : 0 : if (res) return res;
5590 : : }
5591 : : }
5592 : : break;
5593 : : }
5594 : 1476717 : default:;
5595 : : }
5596 : 1476717 : switch (TREE_CODE (_p0))
5597 : : {
5598 : 0 : case ABS_EXPR:
5599 : 0 : {
5600 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
5601 : 0 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
5602 : : {
5603 : 0 : {
5604 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
5605 : 0 : tree res = generic_simplify_307 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5606 : 0 : if (res) return res;
5607 : : }
5608 : : }
5609 : : break;
5610 : : }
5611 : 1476717 : default:;
5612 : : }
5613 : 1476717 : switch (TREE_CODE (_p1))
5614 : : {
5615 : 0 : case NEGATE_EXPR:
5616 : 0 : {
5617 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
5618 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
5619 : : {
5620 : 0 : {
5621 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5622 : 0 : tree res = generic_simplify_308 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5623 : 0 : if (res) return res;
5624 : : }
5625 : : }
5626 : : break;
5627 : : }
5628 : 1476717 : default:;
5629 : : }
5630 : 1476717 : switch (TREE_CODE (_p0))
5631 : : {
5632 : 312 : case NEGATE_EXPR:
5633 : 312 : {
5634 : 312 : tree _q20 = TREE_OPERAND (_p0, 0);
5635 : 312 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
5636 : : {
5637 : 0 : {
5638 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
5639 : 0 : tree res = generic_simplify_308 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5640 : 0 : if (res) return res;
5641 : : }
5642 : : }
5643 : : break;
5644 : : }
5645 : 1476717 : default:;
5646 : : }
5647 : 1476717 : {
5648 : 1476717 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5649 : 1476717 : tree res = generic_simplify_314 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR, TRUNC_DIV_EXPR);
5650 : 1476717 : if (res) return res;
5651 : : }
5652 : 5251 : switch (TREE_CODE (_p0))
5653 : : {
5654 : 388 : CASE_CONVERT:
5655 : 388 : {
5656 : 388 : tree _q20 = TREE_OPERAND (_p0, 0);
5657 : 388 : switch (TREE_CODE (_q20))
5658 : : {
5659 : 0 : case BIT_AND_EXPR:
5660 : 0 : {
5661 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
5662 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
5663 : 0 : switch (TREE_CODE (_q31))
5664 : : {
5665 : 0 : case INTEGER_CST:
5666 : 0 : {
5667 : 0 : switch (TREE_CODE (_p1))
5668 : : {
5669 : 0 : case INTEGER_CST:
5670 : 0 : {
5671 : 0 : {
5672 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
5673 : 0 : tree res = generic_simplify_310 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5674 : 0 : if (res) return res;
5675 : : }
5676 : 0 : break;
5677 : : }
5678 : : default:;
5679 : : }
5680 : : break;
5681 : : }
5682 : : default:;
5683 : : }
5684 : : break;
5685 : : }
5686 : : default:;
5687 : : }
5688 : : break;
5689 : : }
5690 : 0 : case BIT_AND_EXPR:
5691 : 0 : {
5692 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
5693 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
5694 : 0 : switch (TREE_CODE (_q21))
5695 : : {
5696 : 0 : case INTEGER_CST:
5697 : 0 : {
5698 : 0 : switch (TREE_CODE (_p1))
5699 : : {
5700 : 0 : case INTEGER_CST:
5701 : 0 : {
5702 : 0 : {
5703 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
5704 : 0 : tree res = generic_simplify_310 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5705 : 0 : if (res) return res;
5706 : : }
5707 : 0 : break;
5708 : : }
5709 : : default:;
5710 : : }
5711 : : break;
5712 : : }
5713 : : default:;
5714 : : }
5715 : : break;
5716 : : }
5717 : 0 : case MULT_EXPR:
5718 : 0 : {
5719 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
5720 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
5721 : 0 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
5722 : : {
5723 : 0 : {
5724 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5725 : 0 : tree res = generic_simplify_312 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5726 : 0 : if (res) return res;
5727 : : }
5728 : : }
5729 : 0 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
5730 : : {
5731 : 0 : {
5732 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
5733 : 0 : tree res = generic_simplify_312 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5734 : 0 : if (res) return res;
5735 : : }
5736 : : }
5737 : 0 : switch (TREE_CODE (_q21))
5738 : : {
5739 : 0 : case INTEGER_CST:
5740 : 0 : {
5741 : 0 : switch (TREE_CODE (_p1))
5742 : : {
5743 : 0 : case MULT_EXPR:
5744 : 0 : {
5745 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
5746 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
5747 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5748 : : {
5749 : 0 : switch (TREE_CODE (_q51))
5750 : : {
5751 : 0 : case INTEGER_CST:
5752 : 0 : {
5753 : 0 : {
5754 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
5755 : 0 : tree res = generic_simplify_313 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5756 : 0 : if (res) return res;
5757 : : }
5758 : 0 : break;
5759 : : }
5760 : : default:;
5761 : : }
5762 : : }
5763 : : break;
5764 : : }
5765 : : default:;
5766 : : }
5767 : : break;
5768 : : }
5769 : : default:;
5770 : : }
5771 : : break;
5772 : : }
5773 : 0 : case VEC_COND_EXPR:
5774 : 0 : {
5775 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
5776 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
5777 : 0 : tree _q22 = TREE_OPERAND (_p0, 2);
5778 : 0 : switch (TREE_CODE (_p1))
5779 : : {
5780 : 0 : case VEC_COND_EXPR:
5781 : 0 : {
5782 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
5783 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
5784 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
5785 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
5786 : : {
5787 : 0 : {
5788 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
5789 : 0 : if (VECTOR_TYPE_P (type)
5790 : 0 : && (TREE_CODE_CLASS (FLOOR_DIV_EXPR) != tcc_comparison
5791 : : || types_match (type, TREE_TYPE (captures[2]))
5792 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
5793 : : || (optimize_vectors_before_lowering_p ()
5794 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
5795 : : )
5796 : : {
5797 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1748;
5798 : 0 : {
5799 : 0 : tree res_op0;
5800 : 0 : res_op0 = captures[1];
5801 : 0 : tree res_op1;
5802 : 0 : {
5803 : 0 : tree _o1[2], _r1;
5804 : 0 : _o1[0] = captures[2];
5805 : 0 : _o1[1] = captures[5];
5806 : 0 : _r1 = fold_build2_loc (loc, FLOOR_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5807 : 0 : if (EXPR_P (_r1))
5808 : 0 : goto next_after_fail1748;
5809 : 0 : res_op1 = _r1;
5810 : : }
5811 : 0 : tree res_op2;
5812 : 0 : {
5813 : 0 : tree _o1[2], _r1;
5814 : 0 : _o1[0] = captures[3];
5815 : 0 : _o1[1] = captures[6];
5816 : 0 : _r1 = fold_build2_loc (loc, FLOOR_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5817 : 0 : if (EXPR_P (_r1))
5818 : 0 : goto next_after_fail1748;
5819 : 0 : res_op2 = _r1;
5820 : : }
5821 : 0 : tree _r;
5822 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
5823 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 909, __FILE__, __LINE__, true);
5824 : 0 : return _r;
5825 : : }
5826 : 0 : next_after_fail1748:;
5827 : : }
5828 : : }
5829 : : }
5830 : : break;
5831 : : }
5832 : 0 : default:;
5833 : : }
5834 : 0 : {
5835 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
5836 : 0 : if (VECTOR_TYPE_P (type)
5837 : 0 : && (TREE_CODE_CLASS (FLOOR_DIV_EXPR) != tcc_comparison
5838 : : || types_match (type, TREE_TYPE (captures[2]))
5839 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
5840 : : || (optimize_vectors_before_lowering_p ()
5841 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
5842 : : )
5843 : : {
5844 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1749;
5845 : 0 : {
5846 : 0 : if (! tree_invariant_p (captures[4])) goto next_after_fail1749;
5847 : 0 : tree res_op0;
5848 : 0 : res_op0 = captures[1];
5849 : 0 : tree res_op1;
5850 : 0 : {
5851 : 0 : tree _o1[2], _r1;
5852 : 0 : _o1[0] = captures[2];
5853 : 0 : _o1[1] = unshare_expr (captures[4]);
5854 : 0 : _r1 = fold_build2_loc (loc, FLOOR_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5855 : 0 : if (EXPR_P (_r1))
5856 : 0 : goto next_after_fail1749;
5857 : 0 : res_op1 = _r1;
5858 : : }
5859 : 0 : tree res_op2;
5860 : 0 : {
5861 : 0 : tree _o1[2], _r1;
5862 : 0 : _o1[0] = captures[3];
5863 : 0 : _o1[1] = captures[4];
5864 : 0 : _r1 = fold_build2_loc (loc, FLOOR_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5865 : 0 : if (EXPR_P (_r1))
5866 : 0 : goto next_after_fail1749;
5867 : 0 : res_op2 = _r1;
5868 : : }
5869 : 0 : tree _r;
5870 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
5871 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 910, __FILE__, __LINE__, true);
5872 : 0 : return _r;
5873 : : }
5874 : 0 : next_after_fail1749:;
5875 : : }
5876 : : }
5877 : 0 : break;
5878 : : }
5879 : 5251 : default:;
5880 : : }
5881 : 5251 : switch (TREE_CODE (_p1))
5882 : : {
5883 : 0 : case VEC_COND_EXPR:
5884 : 0 : {
5885 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
5886 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
5887 : 0 : tree _q32 = TREE_OPERAND (_p1, 2);
5888 : 0 : {
5889 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
5890 : 0 : if (VECTOR_TYPE_P (type)
5891 : 0 : && (TREE_CODE_CLASS (FLOOR_DIV_EXPR) != tcc_comparison
5892 : : || types_match (type, TREE_TYPE (captures[3]))
5893 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
5894 : : || (optimize_vectors_before_lowering_p ()
5895 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
5896 : : )
5897 : : {
5898 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1750;
5899 : 0 : {
5900 : 0 : if (! tree_invariant_p (captures[0])) goto next_after_fail1750;
5901 : 0 : tree res_op0;
5902 : 0 : res_op0 = captures[2];
5903 : 0 : tree res_op1;
5904 : 0 : {
5905 : 0 : tree _o1[2], _r1;
5906 : 0 : _o1[0] = unshare_expr (captures[0]);
5907 : 0 : _o1[1] = captures[3];
5908 : 0 : _r1 = fold_build2_loc (loc, FLOOR_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5909 : 0 : if (EXPR_P (_r1))
5910 : 0 : goto next_after_fail1750;
5911 : 0 : res_op1 = _r1;
5912 : : }
5913 : 0 : tree res_op2;
5914 : 0 : {
5915 : 0 : tree _o1[2], _r1;
5916 : 0 : _o1[0] = captures[0];
5917 : 0 : _o1[1] = captures[4];
5918 : 0 : _r1 = fold_build2_loc (loc, FLOOR_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5919 : 0 : if (EXPR_P (_r1))
5920 : 0 : goto next_after_fail1750;
5921 : 0 : res_op2 = _r1;
5922 : : }
5923 : 0 : tree _r;
5924 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
5925 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 911, __FILE__, __LINE__, true);
5926 : 0 : return _r;
5927 : : }
5928 : 0 : next_after_fail1750:;
5929 : : }
5930 : : }
5931 : 0 : break;
5932 : : }
5933 : : default:;
5934 : : }
5935 : : return NULL_TREE;
5936 : : }
5937 : :
5938 : : tree
5939 : 903564 : generic_simplify_FLOOR_MOD_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
5940 : : {
5941 : 903564 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
5942 : 903564 : {
5943 : 903564 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5944 : 903564 : tree res = generic_simplify_314 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR, TRUNC_MOD_EXPR);
5945 : 903564 : if (res) return res;
5946 : : }
5947 : 3554 : if (integer_zerop (_p0))
5948 : : {
5949 : 0 : {
5950 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5951 : 0 : tree res = generic_simplify_315 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
5952 : 0 : if (res) return res;
5953 : : }
5954 : : }
5955 : 3554 : if (integer_onep (_p1))
5956 : : {
5957 : 0 : {
5958 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5959 : 0 : tree res = generic_simplify_316 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
5960 : 0 : if (res) return res;
5961 : : }
5962 : : }
5963 : 3554 : if (integer_minus_onep (_p1))
5964 : : {
5965 : 0 : {
5966 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5967 : 0 : tree res = generic_simplify_317 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
5968 : 0 : if (res) return res;
5969 : : }
5970 : : }
5971 : 3554 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
5972 : : {
5973 : 0 : {
5974 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5975 : 0 : tree res = generic_simplify_318 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
5976 : 0 : if (res) return res;
5977 : : }
5978 : : }
5979 : 3554 : switch (TREE_CODE (_p0))
5980 : : {
5981 : 0 : case FLOOR_MOD_EXPR:
5982 : 0 : {
5983 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
5984 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
5985 : 0 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
5986 : : {
5987 : 0 : {
5988 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
5989 : 0 : tree res = generic_simplify_319 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
5990 : 0 : if (res) return res;
5991 : : }
5992 : : }
5993 : : break;
5994 : : }
5995 : 4 : case MULT_EXPR:
5996 : 4 : {
5997 : 4 : tree _q20 = TREE_OPERAND (_p0, 0);
5998 : 4 : tree _q21 = TREE_OPERAND (_p0, 1);
5999 : 4 : switch (TREE_CODE (_q21))
6000 : : {
6001 : 4 : case INTEGER_CST:
6002 : 4 : {
6003 : 4 : switch (TREE_CODE (_p1))
6004 : : {
6005 : 4 : case INTEGER_CST:
6006 : 4 : {
6007 : 4 : {
6008 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
6009 : 4 : tree res = generic_simplify_320 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
6010 : 4 : if (res) return res;
6011 : : }
6012 : 4 : break;
6013 : : }
6014 : : default:;
6015 : : }
6016 : : break;
6017 : : }
6018 : : default:;
6019 : : }
6020 : : break;
6021 : : }
6022 : 3554 : default:;
6023 : : }
6024 : 3554 : switch (TREE_CODE (_p1))
6025 : : {
6026 : 1 : CASE_CONVERT:
6027 : 1 : {
6028 : 1 : tree _q30 = TREE_OPERAND (_p1, 0);
6029 : 1 : {
6030 : 1 : tree _q30_pops[1];
6031 : 1 : if (tree_power_of_two_cand (_q30, _q30_pops))
6032 : : {
6033 : 0 : tree _q40 = _q30_pops[0];
6034 : 0 : {
6035 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q40 };
6036 : 0 : tree res = generic_simplify_321 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
6037 : 0 : if (res) return res;
6038 : : }
6039 : : }
6040 : : }
6041 : 1 : break;
6042 : : }
6043 : 3554 : default:;
6044 : : }
6045 : 3554 : {
6046 : 3554 : tree _p1_pops[1];
6047 : 3554 : if (tree_power_of_two_cand (_p1, _p1_pops))
6048 : : {
6049 : 1779 : tree _q30 = _p1_pops[0];
6050 : 1779 : {
6051 : 1779 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q30 };
6052 : 1779 : tree res = generic_simplify_321 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
6053 : 1779 : if (res) return res;
6054 : : }
6055 : : }
6056 : : }
6057 : 3514 : switch (TREE_CODE (_p0))
6058 : : {
6059 : 0 : case VEC_COND_EXPR:
6060 : 0 : {
6061 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
6062 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
6063 : 0 : tree _q22 = TREE_OPERAND (_p0, 2);
6064 : 0 : switch (TREE_CODE (_p1))
6065 : : {
6066 : 0 : case VEC_COND_EXPR:
6067 : 0 : {
6068 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
6069 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
6070 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
6071 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
6072 : : {
6073 : 0 : {
6074 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
6075 : 0 : if (VECTOR_TYPE_P (type)
6076 : 0 : && (TREE_CODE_CLASS (FLOOR_MOD_EXPR) != tcc_comparison
6077 : : || types_match (type, TREE_TYPE (captures[2]))
6078 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
6079 : : || (optimize_vectors_before_lowering_p ()
6080 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
6081 : : )
6082 : : {
6083 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1757;
6084 : 0 : {
6085 : 0 : tree res_op0;
6086 : 0 : res_op0 = captures[1];
6087 : 0 : tree res_op1;
6088 : 0 : {
6089 : 0 : tree _o1[2], _r1;
6090 : 0 : _o1[0] = captures[2];
6091 : 0 : _o1[1] = captures[5];
6092 : 0 : _r1 = fold_build2_loc (loc, FLOOR_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
6093 : 0 : if (EXPR_P (_r1))
6094 : 0 : goto next_after_fail1757;
6095 : 0 : res_op1 = _r1;
6096 : : }
6097 : 0 : tree res_op2;
6098 : 0 : {
6099 : 0 : tree _o1[2], _r1;
6100 : 0 : _o1[0] = captures[3];
6101 : 0 : _o1[1] = captures[6];
6102 : 0 : _r1 = fold_build2_loc (loc, FLOOR_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
6103 : 0 : if (EXPR_P (_r1))
6104 : 0 : goto next_after_fail1757;
6105 : 0 : res_op2 = _r1;
6106 : : }
6107 : 0 : tree _r;
6108 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
6109 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 909, __FILE__, __LINE__, true);
6110 : 0 : return _r;
6111 : : }
6112 : 0 : next_after_fail1757:;
6113 : : }
6114 : : }
6115 : : }
6116 : : break;
6117 : : }
6118 : 0 : default:;
6119 : : }
6120 : 0 : {
6121 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
6122 : 0 : if (VECTOR_TYPE_P (type)
6123 : 0 : && (TREE_CODE_CLASS (FLOOR_MOD_EXPR) != tcc_comparison
6124 : : || types_match (type, TREE_TYPE (captures[2]))
6125 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
6126 : : || (optimize_vectors_before_lowering_p ()
6127 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
6128 : : )
6129 : : {
6130 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1758;
6131 : 0 : {
6132 : 0 : if (! tree_invariant_p (captures[4])) goto next_after_fail1758;
6133 : 0 : tree res_op0;
6134 : 0 : res_op0 = captures[1];
6135 : 0 : tree res_op1;
6136 : 0 : {
6137 : 0 : tree _o1[2], _r1;
6138 : 0 : _o1[0] = captures[2];
6139 : 0 : _o1[1] = unshare_expr (captures[4]);
6140 : 0 : _r1 = fold_build2_loc (loc, FLOOR_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
6141 : 0 : if (EXPR_P (_r1))
6142 : 0 : goto next_after_fail1758;
6143 : 0 : res_op1 = _r1;
6144 : : }
6145 : 0 : tree res_op2;
6146 : 0 : {
6147 : 0 : tree _o1[2], _r1;
6148 : 0 : _o1[0] = captures[3];
6149 : 0 : _o1[1] = captures[4];
6150 : 0 : _r1 = fold_build2_loc (loc, FLOOR_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
6151 : 0 : if (EXPR_P (_r1))
6152 : 0 : goto next_after_fail1758;
6153 : 0 : res_op2 = _r1;
6154 : : }
6155 : 0 : tree _r;
6156 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
6157 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 910, __FILE__, __LINE__, true);
6158 : 0 : return _r;
6159 : : }
6160 : 0 : next_after_fail1758:;
6161 : : }
6162 : : }
6163 : 0 : break;
6164 : : }
6165 : 3514 : default:;
6166 : : }
6167 : 3514 : switch (TREE_CODE (_p1))
6168 : : {
6169 : 0 : case VEC_COND_EXPR:
6170 : 0 : {
6171 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
6172 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
6173 : 0 : tree _q32 = TREE_OPERAND (_p1, 2);
6174 : 0 : {
6175 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
6176 : 0 : if (VECTOR_TYPE_P (type)
6177 : 0 : && (TREE_CODE_CLASS (FLOOR_MOD_EXPR) != tcc_comparison
6178 : : || types_match (type, TREE_TYPE (captures[3]))
6179 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
6180 : : || (optimize_vectors_before_lowering_p ()
6181 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
6182 : : )
6183 : : {
6184 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1759;
6185 : 0 : {
6186 : 0 : if (! tree_invariant_p (captures[0])) goto next_after_fail1759;
6187 : 0 : tree res_op0;
6188 : 0 : res_op0 = captures[2];
6189 : 0 : tree res_op1;
6190 : 0 : {
6191 : 0 : tree _o1[2], _r1;
6192 : 0 : _o1[0] = unshare_expr (captures[0]);
6193 : 0 : _o1[1] = captures[3];
6194 : 0 : _r1 = fold_build2_loc (loc, FLOOR_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
6195 : 0 : if (EXPR_P (_r1))
6196 : 0 : goto next_after_fail1759;
6197 : 0 : res_op1 = _r1;
6198 : : }
6199 : 0 : tree res_op2;
6200 : 0 : {
6201 : 0 : tree _o1[2], _r1;
6202 : 0 : _o1[0] = captures[0];
6203 : 0 : _o1[1] = captures[4];
6204 : 0 : _r1 = fold_build2_loc (loc, FLOOR_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
6205 : 0 : if (EXPR_P (_r1))
6206 : 0 : goto next_after_fail1759;
6207 : 0 : res_op2 = _r1;
6208 : : }
6209 : 0 : tree _r;
6210 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
6211 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 911, __FILE__, __LINE__, true);
6212 : 0 : return _r;
6213 : : }
6214 : 0 : next_after_fail1759:;
6215 : : }
6216 : : }
6217 : 0 : break;
6218 : : }
6219 : : default:;
6220 : : }
6221 : : return NULL_TREE;
6222 : : }
6223 : :
6224 : : tree
6225 : 16580000 : generic_simplify_LT_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
6226 : : {
6227 : 16580000 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
6228 : 16580000 : switch (TREE_CODE (_p0))
6229 : : {
6230 : 2155 : case RDIV_EXPR:
6231 : 2155 : {
6232 : 2155 : tree _q20 = TREE_OPERAND (_p0, 0);
6233 : 2155 : tree _q21 = TREE_OPERAND (_p0, 1);
6234 : 2155 : switch (TREE_CODE (_q20))
6235 : : {
6236 : 677 : case REAL_CST:
6237 : 677 : {
6238 : 677 : if (real_zerop (_p1))
6239 : : {
6240 : 392 : {
6241 : 392 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
6242 : 392 : tree res = generic_simplify_333 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
6243 : 392 : if (res) return res;
6244 : : }
6245 : : }
6246 : : break;
6247 : : }
6248 : : default:;
6249 : : }
6250 : : break;
6251 : : }
6252 : 2852 : case TRUNC_MOD_EXPR:
6253 : 2852 : {
6254 : 2852 : tree _q20 = TREE_OPERAND (_p0, 0);
6255 : 2852 : tree _q21 = TREE_OPERAND (_p0, 1);
6256 : 2852 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6257 : : {
6258 : 69 : {
6259 : 69 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
6260 : 69 : tree res = generic_simplify_334 (loc, type, _p0, _p1, captures, LT_EXPR);
6261 : 69 : if (res) return res;
6262 : : }
6263 : : }
6264 : : break;
6265 : : }
6266 : 148258 : case MULT_EXPR:
6267 : 148258 : {
6268 : 148258 : tree _q20 = TREE_OPERAND (_p0, 0);
6269 : 148258 : tree _q21 = TREE_OPERAND (_p0, 1);
6270 : 148258 : switch (TREE_CODE (_p1))
6271 : : {
6272 : 53195 : case MULT_EXPR:
6273 : 53195 : {
6274 : 53195 : tree _q50 = TREE_OPERAND (_p1, 0);
6275 : 53195 : tree _q51 = TREE_OPERAND (_p1, 1);
6276 : 53195 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
6277 : : {
6278 : 10114 : {
6279 : 10114 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
6280 : 10114 : tree res = generic_simplify_335 (loc, type, _p0, _p1, captures, LT_EXPR);
6281 : 10114 : if (res) return res;
6282 : : }
6283 : : }
6284 : 45026 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
6285 : : {
6286 : 0 : {
6287 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
6288 : 0 : tree res = generic_simplify_335 (loc, type, _p0, _p1, captures, LT_EXPR);
6289 : 0 : if (res) return res;
6290 : : }
6291 : : }
6292 : 45026 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
6293 : : {
6294 : 0 : {
6295 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
6296 : 0 : tree res = generic_simplify_335 (loc, type, _p0, _p1, captures, LT_EXPR);
6297 : 0 : if (res) return res;
6298 : : }
6299 : : }
6300 : 45026 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
6301 : : {
6302 : 1405 : {
6303 : 1405 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
6304 : 1405 : tree res = generic_simplify_335 (loc, type, _p0, _p1, captures, LT_EXPR);
6305 : 1405 : if (res) return res;
6306 : : }
6307 : : }
6308 : : break;
6309 : : }
6310 : : default:;
6311 : : }
6312 : : break;
6313 : : }
6314 : 2770512 : CASE_CONVERT:
6315 : 2770512 : {
6316 : 2770512 : tree _q20 = TREE_OPERAND (_p0, 0);
6317 : 2770512 : switch (TREE_CODE (_q20))
6318 : : {
6319 : 117 : case EXACT_DIV_EXPR:
6320 : 117 : {
6321 : 117 : tree _q30 = TREE_OPERAND (_q20, 0);
6322 : 117 : tree _q31 = TREE_OPERAND (_q20, 1);
6323 : 117 : switch (TREE_CODE (_q31))
6324 : : {
6325 : 117 : case INTEGER_CST:
6326 : 117 : {
6327 : 117 : switch (TREE_CODE (_p1))
6328 : : {
6329 : 44 : CASE_CONVERT:
6330 : 44 : {
6331 : 44 : tree _q60 = TREE_OPERAND (_p1, 0);
6332 : 44 : switch (TREE_CODE (_q60))
6333 : : {
6334 : 0 : case EXACT_DIV_EXPR:
6335 : 0 : {
6336 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
6337 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
6338 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
6339 : : {
6340 : 0 : {
6341 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q31, _q70 };
6342 : 0 : tree res = generic_simplify_206 (loc, type, _p0, _p1, captures, LT_EXPR);
6343 : 0 : if (res) return res;
6344 : : }
6345 : : }
6346 : : break;
6347 : : }
6348 : : default:;
6349 : : }
6350 : : break;
6351 : : }
6352 : : default:;
6353 : : }
6354 : : break;
6355 : : }
6356 : : default:;
6357 : : }
6358 : : break;
6359 : : }
6360 : : default:;
6361 : : }
6362 : : break;
6363 : : }
6364 : 1003 : case EXACT_DIV_EXPR:
6365 : 1003 : {
6366 : 1003 : tree _q20 = TREE_OPERAND (_p0, 0);
6367 : 1003 : tree _q21 = TREE_OPERAND (_p0, 1);
6368 : 1003 : switch (TREE_CODE (_q21))
6369 : : {
6370 : 1003 : case INTEGER_CST:
6371 : 1003 : {
6372 : 1003 : switch (TREE_CODE (_p1))
6373 : : {
6374 : 2 : case EXACT_DIV_EXPR:
6375 : 2 : {
6376 : 2 : tree _q50 = TREE_OPERAND (_p1, 0);
6377 : 2 : tree _q51 = TREE_OPERAND (_p1, 1);
6378 : 2 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
6379 : : {
6380 : 0 : {
6381 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50 };
6382 : 0 : tree res = generic_simplify_206 (loc, type, _p0, _p1, captures, LT_EXPR);
6383 : 0 : if (res) return res;
6384 : : }
6385 : : }
6386 : : break;
6387 : : }
6388 : : default:;
6389 : : }
6390 : : break;
6391 : : }
6392 : : default:;
6393 : : }
6394 : : break;
6395 : : }
6396 : 12307 : case TRUNC_DIV_EXPR:
6397 : 12307 : {
6398 : 12307 : tree _q20 = TREE_OPERAND (_p0, 0);
6399 : 12307 : tree _q21 = TREE_OPERAND (_p0, 1);
6400 : 12307 : switch (TREE_CODE (_q21))
6401 : : {
6402 : 3488 : case INTEGER_CST:
6403 : 3488 : {
6404 : 3488 : switch (TREE_CODE (_p1))
6405 : : {
6406 : 1457 : case INTEGER_CST:
6407 : 1457 : {
6408 : 1457 : {
6409 : 1457 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
6410 : 1457 : tree res = generic_simplify_209 (loc, type, _p0, _p1, captures, LT_EXPR);
6411 : 1457 : if (res) return res;
6412 : : }
6413 : 695 : break;
6414 : : }
6415 : : default:;
6416 : : }
6417 : : break;
6418 : : }
6419 : : default:;
6420 : : }
6421 : : break;
6422 : : }
6423 : 2302531 : case PLUS_EXPR:
6424 : 2302531 : {
6425 : 2302531 : tree _q20 = TREE_OPERAND (_p0, 0);
6426 : 2302531 : tree _q21 = TREE_OPERAND (_p0, 1);
6427 : 2302531 : switch (TREE_CODE (_p1))
6428 : : {
6429 : 337616 : case PLUS_EXPR:
6430 : 337616 : {
6431 : 337616 : tree _q50 = TREE_OPERAND (_p1, 0);
6432 : 337616 : tree _q51 = TREE_OPERAND (_p1, 1);
6433 : 337616 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
6434 : : {
6435 : 133386 : {
6436 : 133386 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
6437 : 133386 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, LT_EXPR);
6438 : 133386 : if (res) return res;
6439 : : }
6440 : : }
6441 : 280961 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
6442 : : {
6443 : 24 : {
6444 : 24 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
6445 : 24 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, LT_EXPR);
6446 : 24 : if (res) return res;
6447 : : }
6448 : : }
6449 : 280945 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
6450 : : {
6451 : 27 : {
6452 : 27 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
6453 : 27 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, LT_EXPR);
6454 : 27 : if (res) return res;
6455 : : }
6456 : : }
6457 : 280929 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
6458 : : {
6459 : 1736 : {
6460 : 1736 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
6461 : 1736 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, LT_EXPR);
6462 : 1736 : if (res) return res;
6463 : : }
6464 : : }
6465 : : break;
6466 : : }
6467 : 2245494 : default:;
6468 : : }
6469 : 2245494 : switch (TREE_CODE (_q21))
6470 : : {
6471 : 1719196 : case INTEGER_CST:
6472 : 1719196 : {
6473 : 1719196 : switch (TREE_CODE (_p1))
6474 : : {
6475 : 275605 : case PLUS_EXPR:
6476 : 275605 : {
6477 : 275605 : tree _q50 = TREE_OPERAND (_p1, 0);
6478 : 275605 : tree _q51 = TREE_OPERAND (_p1, 1);
6479 : 275605 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
6480 : : {
6481 : 76731 : {
6482 : 76731 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
6483 : 76731 : tree res = generic_simplify_337 (loc, type, _p0, _p1, captures, LT_EXPR);
6484 : 76731 : if (res) return res;
6485 : : }
6486 : : }
6487 : : break;
6488 : : }
6489 : : default:;
6490 : : }
6491 : : break;
6492 : : }
6493 : 2245489 : default:;
6494 : : }
6495 : 2245489 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6496 : : {
6497 : 194672 : {
6498 : 194672 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
6499 : 194672 : tree res = generic_simplify_338 (loc, type, _p0, _p1, captures, LT_EXPR);
6500 : 194672 : if (res) return res;
6501 : : }
6502 : : }
6503 : 2077393 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
6504 : : {
6505 : 55764 : {
6506 : 55764 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
6507 : 55764 : tree res = generic_simplify_338 (loc, type, _p0, _p1, captures, LT_EXPR);
6508 : 55764 : if (res) return res;
6509 : : }
6510 : : }
6511 : : break;
6512 : : }
6513 : 185192 : case MINUS_EXPR:
6514 : 185192 : {
6515 : 185192 : tree _q20 = TREE_OPERAND (_p0, 0);
6516 : 185192 : tree _q21 = TREE_OPERAND (_p0, 1);
6517 : 185192 : switch (TREE_CODE (_p1))
6518 : : {
6519 : 4946 : case MINUS_EXPR:
6520 : 4946 : {
6521 : 4946 : tree _q50 = TREE_OPERAND (_p1, 0);
6522 : 4946 : tree _q51 = TREE_OPERAND (_p1, 1);
6523 : 4946 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
6524 : : {
6525 : 0 : {
6526 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
6527 : 0 : tree res = generic_simplify_339 (loc, type, _p0, _p1, captures, LT_EXPR);
6528 : 0 : if (res) return res;
6529 : : }
6530 : : }
6531 : 4946 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
6532 : : {
6533 : 205 : {
6534 : 205 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
6535 : 205 : tree res = generic_simplify_340 (loc, type, _p0, _p1, captures, LT_EXPR);
6536 : 205 : if (res) return res;
6537 : : }
6538 : : }
6539 : : break;
6540 : : }
6541 : : default:;
6542 : : }
6543 : : break;
6544 : : }
6545 : 100612 : case POINTER_DIFF_EXPR:
6546 : 100612 : {
6547 : 100612 : tree _q20 = TREE_OPERAND (_p0, 0);
6548 : 100612 : tree _q21 = TREE_OPERAND (_p0, 1);
6549 : 100612 : switch (TREE_CODE (_p1))
6550 : : {
6551 : 509 : case POINTER_DIFF_EXPR:
6552 : 509 : {
6553 : 509 : tree _q50 = TREE_OPERAND (_p1, 0);
6554 : 509 : tree _q51 = TREE_OPERAND (_p1, 1);
6555 : 509 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
6556 : : {
6557 : 0 : {
6558 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50 };
6559 : 0 : tree res = generic_simplify_213 (loc, type, _p0, _p1, captures, LT_EXPR);
6560 : 0 : if (res) return res;
6561 : : }
6562 : : }
6563 : 509 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
6564 : : {
6565 : 0 : {
6566 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q51 };
6567 : 0 : tree res = generic_simplify_214 (loc, type, _p0, _p1, captures, LT_EXPR);
6568 : 0 : if (res) return res;
6569 : : }
6570 : : }
6571 : : break;
6572 : : }
6573 : : default:;
6574 : : }
6575 : : break;
6576 : : }
6577 : 16345401 : default:;
6578 : : }
6579 : 16345401 : switch (TREE_CODE (_p1))
6580 : : {
6581 : 347662 : case PLUS_EXPR:
6582 : 347662 : {
6583 : 347662 : tree _q30 = TREE_OPERAND (_p1, 0);
6584 : 347662 : tree _q31 = TREE_OPERAND (_p1, 1);
6585 : 347662 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
6586 : : {
6587 : 120 : {
6588 : 120 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q30, _p0 };
6589 : 120 : tree res = generic_simplify_338 (loc, type, _p0, _p1, captures, GT_EXPR);
6590 : 120 : if (res) return res;
6591 : : }
6592 : : }
6593 : 347542 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
6594 : : {
6595 : 80 : {
6596 : 80 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q31, _p0 };
6597 : 80 : tree res = generic_simplify_338 (loc, type, _p0, _p1, captures, GT_EXPR);
6598 : 80 : if (res) return res;
6599 : : }
6600 : : }
6601 : : break;
6602 : : }
6603 : 22581 : case MINUS_EXPR:
6604 : 22581 : {
6605 : 22581 : tree _q30 = TREE_OPERAND (_p1, 0);
6606 : 22581 : tree _q31 = TREE_OPERAND (_p1, 1);
6607 : 22581 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
6608 : : {
6609 : 0 : {
6610 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q31 };
6611 : 0 : tree res = generic_simplify_212 (loc, type, _p0, _p1, captures, LT_EXPR);
6612 : 0 : if (res) return res;
6613 : : }
6614 : : }
6615 : : break;
6616 : : }
6617 : 16345281 : default:;
6618 : : }
6619 : 16345281 : switch (TREE_CODE (_p0))
6620 : : {
6621 : 185192 : case MINUS_EXPR:
6622 : 185192 : {
6623 : 185192 : tree _q20 = TREE_OPERAND (_p0, 0);
6624 : 185192 : tree _q21 = TREE_OPERAND (_p0, 1);
6625 : 185192 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
6626 : : {
6627 : 3834 : {
6628 : 3834 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p0, _q21 };
6629 : 3834 : tree res = generic_simplify_212 (loc, type, _p0, _p1, captures, GT_EXPR);
6630 : 3834 : if (res) return res;
6631 : : }
6632 : : }
6633 : : break;
6634 : : }
6635 : 1872 : case BIT_IOR_EXPR:
6636 : 1872 : {
6637 : 1872 : tree _q20 = TREE_OPERAND (_p0, 0);
6638 : 1872 : tree _q21 = TREE_OPERAND (_p0, 1);
6639 : 1872 : if (tree_expr_nonnegative_p (_q20))
6640 : : {
6641 : 584 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
6642 : : {
6643 : 0 : {
6644 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
6645 : 0 : tree res = generic_simplify_341 (loc, type, _p0, _p1, captures, LT_EXPR, BIT_IOR_EXPR);
6646 : 0 : if (res) return res;
6647 : : }
6648 : : }
6649 : : }
6650 : 1872 : if (tree_expr_nonnegative_p (_q21))
6651 : : {
6652 : 1208 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6653 : : {
6654 : 0 : {
6655 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
6656 : 0 : tree res = generic_simplify_341 (loc, type, _p0, _p1, captures, LT_EXPR, BIT_IOR_EXPR);
6657 : 0 : if (res) return res;
6658 : : }
6659 : : }
6660 : : }
6661 : : break;
6662 : : }
6663 : 16342857 : default:;
6664 : : }
6665 : 16342857 : switch (TREE_CODE (_p1))
6666 : : {
6667 : 441 : case BIT_AND_EXPR:
6668 : 441 : {
6669 : 441 : tree _q30 = TREE_OPERAND (_p1, 0);
6670 : 441 : tree _q31 = TREE_OPERAND (_p1, 1);
6671 : 441 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
6672 : : {
6673 : 0 : if (tree_expr_nonnegative_p (_q30))
6674 : : {
6675 : 0 : {
6676 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
6677 : 0 : tree res = generic_simplify_341 (loc, type, _p0, _p1, captures, GT_EXPR, BIT_AND_EXPR);
6678 : 0 : if (res) return res;
6679 : : }
6680 : : }
6681 : : }
6682 : 441 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
6683 : : {
6684 : 0 : if (tree_expr_nonnegative_p (_q31))
6685 : : {
6686 : 0 : {
6687 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
6688 : 0 : tree res = generic_simplify_341 (loc, type, _p0, _p1, captures, GT_EXPR, BIT_AND_EXPR);
6689 : 0 : if (res) return res;
6690 : : }
6691 : : }
6692 : : }
6693 : : break;
6694 : : }
6695 : 16342857 : default:;
6696 : : }
6697 : 16342857 : switch (TREE_CODE (_p0))
6698 : : {
6699 : 9881 : case MIN_EXPR:
6700 : 9881 : {
6701 : 9881 : tree _q20 = TREE_OPERAND (_p0, 0);
6702 : 9881 : tree _q21 = TREE_OPERAND (_p0, 1);
6703 : 9881 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
6704 : : {
6705 : 1 : {
6706 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
6707 : 1 : tree res = generic_simplify_222 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR, GT_EXPR);
6708 : 1 : if (res) return res;
6709 : : }
6710 : : }
6711 : 9880 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6712 : : {
6713 : 5 : {
6714 : 5 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
6715 : 5 : tree res = generic_simplify_222 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR, GT_EXPR);
6716 : 5 : if (res) return res;
6717 : : }
6718 : : }
6719 : 9878 : switch (TREE_CODE (_q21))
6720 : : {
6721 : 546 : case INTEGER_CST:
6722 : 546 : {
6723 : 546 : switch (TREE_CODE (_p1))
6724 : : {
6725 : 2 : case INTEGER_CST:
6726 : 2 : {
6727 : 2 : {
6728 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
6729 : 2 : tree res = generic_simplify_342 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR, BIT_IOR_EXPR);
6730 : 2 : if (res) return res;
6731 : : }
6732 : 0 : break;
6733 : : }
6734 : : default:;
6735 : : }
6736 : : break;
6737 : : }
6738 : : default:;
6739 : : }
6740 : : break;
6741 : : }
6742 : 16342852 : default:;
6743 : : }
6744 : 16342852 : switch (TREE_CODE (_p1))
6745 : : {
6746 : 765 : case MAX_EXPR:
6747 : 765 : {
6748 : 765 : tree _q30 = TREE_OPERAND (_p1, 0);
6749 : 765 : tree _q31 = TREE_OPERAND (_p1, 1);
6750 : 765 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
6751 : : {
6752 : 0 : {
6753 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
6754 : 0 : tree res = generic_simplify_222 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR, LT_EXPR);
6755 : 0 : if (res) return res;
6756 : : }
6757 : : }
6758 : 765 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
6759 : : {
6760 : 0 : {
6761 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
6762 : 0 : tree res = generic_simplify_222 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR, LT_EXPR);
6763 : 0 : if (res) return res;
6764 : : }
6765 : : }
6766 : : break;
6767 : : }
6768 : 939 : case MIN_EXPR:
6769 : 939 : {
6770 : 939 : tree _q30 = TREE_OPERAND (_p1, 0);
6771 : 939 : tree _q31 = TREE_OPERAND (_p1, 1);
6772 : 939 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
6773 : : {
6774 : 0 : {
6775 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
6776 : 0 : tree res = generic_simplify_343 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR);
6777 : 0 : if (res) return res;
6778 : : }
6779 : : }
6780 : 939 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
6781 : : {
6782 : 0 : {
6783 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
6784 : 0 : tree res = generic_simplify_343 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR);
6785 : 0 : if (res) return res;
6786 : : }
6787 : : }
6788 : : break;
6789 : : }
6790 : 16342852 : default:;
6791 : : }
6792 : 16342852 : switch (TREE_CODE (_p0))
6793 : : {
6794 : 6209 : case MAX_EXPR:
6795 : 6209 : {
6796 : 6209 : tree _q20 = TREE_OPERAND (_p0, 0);
6797 : 6209 : tree _q21 = TREE_OPERAND (_p0, 1);
6798 : 6209 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
6799 : : {
6800 : 1 : {
6801 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
6802 : 1 : tree res = generic_simplify_343 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR);
6803 : 1 : if (res) return res;
6804 : : }
6805 : : }
6806 : 6208 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6807 : : {
6808 : 1 : {
6809 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
6810 : 1 : tree res = generic_simplify_343 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR);
6811 : 1 : if (res) return res;
6812 : : }
6813 : : }
6814 : 6207 : switch (TREE_CODE (_q21))
6815 : : {
6816 : 5670 : case INTEGER_CST:
6817 : 5670 : {
6818 : 5670 : switch (TREE_CODE (_p1))
6819 : : {
6820 : 1 : case INTEGER_CST:
6821 : 1 : {
6822 : 1 : {
6823 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
6824 : 1 : tree res = generic_simplify_342 (loc, type, _p0, _p1, captures, MAX_EXPR, LT_EXPR, BIT_AND_EXPR);
6825 : 1 : if (res) return res;
6826 : : }
6827 : 0 : break;
6828 : : }
6829 : : default:;
6830 : : }
6831 : : break;
6832 : : }
6833 : : default:;
6834 : : }
6835 : : break;
6836 : : }
6837 : 904 : case VEC_COND_EXPR:
6838 : 904 : {
6839 : 904 : tree _q20 = TREE_OPERAND (_p0, 0);
6840 : 904 : tree _q21 = TREE_OPERAND (_p0, 1);
6841 : 904 : tree _q22 = TREE_OPERAND (_p0, 2);
6842 : 904 : switch (TREE_CODE (_p1))
6843 : : {
6844 : 0 : case VEC_COND_EXPR:
6845 : 0 : {
6846 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
6847 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
6848 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
6849 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
6850 : : {
6851 : 0 : {
6852 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
6853 : 0 : if (VECTOR_TYPE_P (type)
6854 : 0 : && (TREE_CODE_CLASS (LT_EXPR) != tcc_comparison
6855 : 0 : || types_match (type, TREE_TYPE (captures[2]))
6856 : 0 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
6857 : : || (optimize_vectors_before_lowering_p ()
6858 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
6859 : : )
6860 : : {
6861 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1798;
6862 : 0 : {
6863 : 0 : tree res_op0;
6864 : 0 : res_op0 = captures[1];
6865 : 0 : tree res_op1;
6866 : 0 : {
6867 : 0 : tree _o1[2], _r1;
6868 : 0 : _o1[0] = captures[2];
6869 : 0 : _o1[1] = captures[5];
6870 : 0 : _r1 = fold_build2_loc (loc, LT_EXPR, type, _o1[0], _o1[1]);
6871 : 0 : if (EXPR_P (_r1))
6872 : 0 : goto next_after_fail1798;
6873 : 0 : res_op1 = _r1;
6874 : : }
6875 : 0 : tree res_op2;
6876 : 0 : {
6877 : 0 : tree _o1[2], _r1;
6878 : 0 : _o1[0] = captures[3];
6879 : 0 : _o1[1] = captures[6];
6880 : 0 : _r1 = fold_build2_loc (loc, LT_EXPR, type, _o1[0], _o1[1]);
6881 : 0 : if (EXPR_P (_r1))
6882 : 0 : goto next_after_fail1798;
6883 : 0 : res_op2 = _r1;
6884 : : }
6885 : 0 : tree _r;
6886 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
6887 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 909, __FILE__, __LINE__, true);
6888 : 0 : return _r;
6889 : : }
6890 : 0 : next_after_fail1798:;
6891 : : }
6892 : : }
6893 : : }
6894 : : break;
6895 : : }
6896 : 904 : default:;
6897 : : }
6898 : 904 : {
6899 : 904 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
6900 : 904 : if (VECTOR_TYPE_P (type)
6901 : 904 : && (TREE_CODE_CLASS (LT_EXPR) != tcc_comparison
6902 : 904 : || types_match (type, TREE_TYPE (captures[2]))
6903 : 904 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
6904 : : || (optimize_vectors_before_lowering_p ()
6905 : 1 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
6906 : : )
6907 : : {
6908 : 904 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1799;
6909 : 904 : {
6910 : 904 : if (! tree_invariant_p (captures[4])) goto next_after_fail1799;
6911 : 36 : tree res_op0;
6912 : 36 : res_op0 = captures[1];
6913 : 36 : tree res_op1;
6914 : 36 : {
6915 : 36 : tree _o1[2], _r1;
6916 : 36 : _o1[0] = captures[2];
6917 : 36 : _o1[1] = unshare_expr (captures[4]);
6918 : 36 : _r1 = fold_build2_loc (loc, LT_EXPR, type, _o1[0], _o1[1]);
6919 : 36 : if (EXPR_P (_r1))
6920 : 35 : goto next_after_fail1799;
6921 : 1 : res_op1 = _r1;
6922 : : }
6923 : 1 : tree res_op2;
6924 : 1 : {
6925 : 1 : tree _o1[2], _r1;
6926 : 1 : _o1[0] = captures[3];
6927 : 1 : _o1[1] = captures[4];
6928 : 1 : _r1 = fold_build2_loc (loc, LT_EXPR, type, _o1[0], _o1[1]);
6929 : 1 : if (EXPR_P (_r1))
6930 : 0 : goto next_after_fail1799;
6931 : 1 : res_op2 = _r1;
6932 : : }
6933 : 1 : tree _r;
6934 : 1 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
6935 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 910, __FILE__, __LINE__, true);
6936 : 1 : return _r;
6937 : : }
6938 : 903 : next_after_fail1799:;
6939 : : }
6940 : : }
6941 : 903 : break;
6942 : : }
6943 : 16342848 : default:;
6944 : : }
6945 : 16342848 : switch (TREE_CODE (_p1))
6946 : : {
6947 : 58 : case VEC_COND_EXPR:
6948 : 58 : {
6949 : 58 : tree _q30 = TREE_OPERAND (_p1, 0);
6950 : 58 : tree _q31 = TREE_OPERAND (_p1, 1);
6951 : 58 : tree _q32 = TREE_OPERAND (_p1, 2);
6952 : 58 : {
6953 : 58 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
6954 : 58 : if (VECTOR_TYPE_P (type)
6955 : 58 : && (TREE_CODE_CLASS (LT_EXPR) != tcc_comparison
6956 : 58 : || types_match (type, TREE_TYPE (captures[3]))
6957 : 58 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
6958 : : || (optimize_vectors_before_lowering_p ()
6959 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
6960 : : )
6961 : : {
6962 : 58 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1800;
6963 : 58 : {
6964 : 58 : if (! tree_invariant_p (captures[0])) goto next_after_fail1800;
6965 : 0 : tree res_op0;
6966 : 0 : res_op0 = captures[2];
6967 : 0 : tree res_op1;
6968 : 0 : {
6969 : 0 : tree _o1[2], _r1;
6970 : 0 : _o1[0] = unshare_expr (captures[0]);
6971 : 0 : _o1[1] = captures[3];
6972 : 0 : _r1 = fold_build2_loc (loc, LT_EXPR, type, _o1[0], _o1[1]);
6973 : 0 : if (EXPR_P (_r1))
6974 : 0 : goto next_after_fail1800;
6975 : 0 : res_op1 = _r1;
6976 : : }
6977 : 0 : tree res_op2;
6978 : 0 : {
6979 : 0 : tree _o1[2], _r1;
6980 : 0 : _o1[0] = captures[0];
6981 : 0 : _o1[1] = captures[4];
6982 : 0 : _r1 = fold_build2_loc (loc, LT_EXPR, type, _o1[0], _o1[1]);
6983 : 0 : if (EXPR_P (_r1))
6984 : 0 : goto next_after_fail1800;
6985 : 0 : res_op2 = _r1;
6986 : : }
6987 : 0 : tree _r;
6988 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
6989 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 911, __FILE__, __LINE__, true);
6990 : 0 : return _r;
6991 : : }
6992 : 58 : next_after_fail1800:;
6993 : : }
6994 : : }
6995 : 58 : break;
6996 : : }
6997 : 16342848 : default:;
6998 : : }
6999 : 16342848 : if (uniform_integer_cst_p (_p1))
7000 : : {
7001 : 5619623 : {
7002 : 5619623 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
7003 : 5619623 : tree res = generic_simplify_344 (loc, type, _p0, _p1, captures, LT_EXPR, LE_EXPR);
7004 : 5619623 : if (res) return res;
7005 : : }
7006 : : }
7007 : 14004249 : switch (TREE_CODE (_p0))
7008 : : {
7009 : 132158 : case MULT_EXPR:
7010 : 132158 : {
7011 : 132158 : tree _q20 = TREE_OPERAND (_p0, 0);
7012 : 132158 : tree _q21 = TREE_OPERAND (_p0, 1);
7013 : 132158 : switch (TREE_CODE (_q21))
7014 : : {
7015 : 72352 : case INTEGER_CST:
7016 : 72352 : {
7017 : 72352 : if (integer_zerop (_p1))
7018 : : {
7019 : 5770 : {
7020 : 5770 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
7021 : 5770 : tree res = generic_simplify_242 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
7022 : 5770 : if (res) return res;
7023 : : }
7024 : : }
7025 : : break;
7026 : : }
7027 : : default:;
7028 : : }
7029 : : break;
7030 : : }
7031 : 14001291 : default:;
7032 : : }
7033 : 14001291 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
7034 : : {
7035 : 3867 : {
7036 : 3867 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
7037 : 3867 : tree res = generic_simplify_294 (loc, type, _p0, _p1, captures, LT_EXPR);
7038 : 3867 : if (res) return res;
7039 : : }
7040 : : }
7041 : 13997424 : switch (TREE_CODE (_p0))
7042 : : {
7043 : 2483 : case BIT_NOT_EXPR:
7044 : 2483 : {
7045 : 2483 : tree _q20 = TREE_OPERAND (_p0, 0);
7046 : 2483 : switch (TREE_CODE (_p1))
7047 : : {
7048 : 7 : case BIT_NOT_EXPR:
7049 : 7 : {
7050 : 7 : tree _q40 = TREE_OPERAND (_p1, 0);
7051 : 7 : {
7052 : 7 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _p1, _q40 };
7053 : 7 : tree res = generic_simplify_248 (loc, type, _p0, _p1, captures, LT_EXPR);
7054 : 7 : if (res) return res;
7055 : : }
7056 : 0 : break;
7057 : : }
7058 : 2476 : default:;
7059 : : }
7060 : 2476 : {
7061 : 2476 : tree _p1_pops[1];
7062 : 2476 : if (tree_nop_convert (_p1, _p1_pops))
7063 : : {
7064 : 24 : tree _q40 = _p1_pops[0];
7065 : 24 : switch (TREE_CODE (_q40))
7066 : : {
7067 : 0 : case BIT_NOT_EXPR:
7068 : 0 : {
7069 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
7070 : 0 : {
7071 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q40, _q50 };
7072 : 0 : tree res = generic_simplify_248 (loc, type, _p0, _p1, captures, LT_EXPR);
7073 : 0 : if (res) return res;
7074 : : }
7075 : 0 : break;
7076 : : }
7077 : : default:;
7078 : : }
7079 : : }
7080 : : }
7081 : 2476 : if (CONSTANT_CLASS_P (_p1))
7082 : : {
7083 : 23 : {
7084 : 23 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
7085 : 23 : tree res = generic_simplify_247 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
7086 : 23 : if (res) return res;
7087 : : }
7088 : : }
7089 : : break;
7090 : : }
7091 : 13997394 : default:;
7092 : : }
7093 : 13997394 : {
7094 : 13997394 : tree _p0_pops[1];
7095 : 13997394 : if (tree_nop_convert (_p0, _p0_pops))
7096 : : {
7097 : 1582118 : tree _q20 = _p0_pops[0];
7098 : 1582118 : switch (TREE_CODE (_q20))
7099 : : {
7100 : 0 : case BIT_NOT_EXPR:
7101 : 0 : {
7102 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7103 : 0 : switch (TREE_CODE (_p1))
7104 : : {
7105 : 0 : case BIT_NOT_EXPR:
7106 : 0 : {
7107 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
7108 : 0 : {
7109 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _p1, _q50 };
7110 : 0 : tree res = generic_simplify_246 (loc, type, _p0, _p1, captures, LT_EXPR);
7111 : 0 : if (res) return res;
7112 : : }
7113 : 0 : break;
7114 : : }
7115 : 0 : default:;
7116 : : }
7117 : 0 : {
7118 : 0 : tree _p1_pops[1];
7119 : 0 : if (tree_nop_convert (_p1, _p1_pops))
7120 : : {
7121 : 0 : tree _q50 = _p1_pops[0];
7122 : 0 : switch (TREE_CODE (_q50))
7123 : : {
7124 : 0 : case BIT_NOT_EXPR:
7125 : 0 : {
7126 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
7127 : 0 : {
7128 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q50, _q60 };
7129 : 0 : tree res = generic_simplify_246 (loc, type, _p0, _p1, captures, LT_EXPR);
7130 : 0 : if (res) return res;
7131 : : }
7132 : 0 : break;
7133 : : }
7134 : : default:;
7135 : : }
7136 : : }
7137 : : }
7138 : 0 : if (CONSTANT_CLASS_P (_p1))
7139 : : {
7140 : 0 : {
7141 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
7142 : 0 : tree res = generic_simplify_247 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
7143 : 0 : if (res) return res;
7144 : : }
7145 : : }
7146 : : break;
7147 : : }
7148 : : default:;
7149 : : }
7150 : : }
7151 : : }
7152 : 13997394 : switch (TREE_CODE (_p1))
7153 : : {
7154 : 3110819 : case REAL_CST:
7155 : 3110819 : {
7156 : 3110819 : {
7157 : 3110819 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
7158 : 3110819 : tree res = generic_simplify_249 (loc, type, _p0, _p1, captures, LT_EXPR);
7159 : 3110819 : if (res) return res;
7160 : : }
7161 : 3110720 : break;
7162 : : }
7163 : 13997295 : default:;
7164 : : }
7165 : 13997295 : switch (TREE_CODE (_p0))
7166 : : {
7167 : 1959549 : case PLUS_EXPR:
7168 : 1959549 : {
7169 : 1959549 : tree _q20 = TREE_OPERAND (_p0, 0);
7170 : 1959549 : tree _q21 = TREE_OPERAND (_p0, 1);
7171 : 1959549 : switch (TREE_CODE (_q21))
7172 : : {
7173 : 593 : case REAL_CST:
7174 : 593 : {
7175 : 593 : switch (TREE_CODE (_p1))
7176 : : {
7177 : 223 : case REAL_CST:
7178 : 223 : {
7179 : 223 : {
7180 : 223 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7181 : 223 : tree res = generic_simplify_250 (loc, type, _p0, _p1, captures, PLUS_EXPR, LT_EXPR);
7182 : 223 : if (res) return res;
7183 : : }
7184 : 221 : break;
7185 : : }
7186 : : default:;
7187 : : }
7188 : : break;
7189 : : }
7190 : 1441881 : case INTEGER_CST:
7191 : 1441881 : {
7192 : 1441881 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
7193 : : {
7194 : 18285 : {
7195 : 18285 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q20, _q21 };
7196 : 18285 : tree res = generic_simplify_345 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
7197 : 18285 : if (res) return res;
7198 : : }
7199 : : }
7200 : : break;
7201 : : }
7202 : : default:;
7203 : : }
7204 : : break;
7205 : : }
7206 : 177298 : case MINUS_EXPR:
7207 : 177298 : {
7208 : 177298 : tree _q20 = TREE_OPERAND (_p0, 0);
7209 : 177298 : tree _q21 = TREE_OPERAND (_p0, 1);
7210 : 177298 : switch (TREE_CODE (_q21))
7211 : : {
7212 : 210 : case REAL_CST:
7213 : 210 : {
7214 : 210 : switch (TREE_CODE (_p1))
7215 : : {
7216 : 195 : case REAL_CST:
7217 : 195 : {
7218 : 195 : {
7219 : 195 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7220 : 195 : tree res = generic_simplify_250 (loc, type, _p0, _p1, captures, MINUS_EXPR, LT_EXPR);
7221 : 195 : if (res) return res;
7222 : : }
7223 : 195 : break;
7224 : : }
7225 : : default:;
7226 : : }
7227 : : break;
7228 : : }
7229 : 177298 : default:;
7230 : : }
7231 : 177298 : switch (TREE_CODE (_q20))
7232 : : {
7233 : 20234 : case REAL_CST:
7234 : 20234 : {
7235 : 20234 : switch (TREE_CODE (_p1))
7236 : : {
7237 : 20050 : case REAL_CST:
7238 : 20050 : {
7239 : 20050 : {
7240 : 20050 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7241 : 20050 : tree res = generic_simplify_251 (loc, type, _p0, _p1, captures, LT_EXPR);
7242 : 20050 : if (res) return res;
7243 : : }
7244 : 20040 : break;
7245 : : }
7246 : : default:;
7247 : : }
7248 : : break;
7249 : : }
7250 : : default:;
7251 : : }
7252 : : break;
7253 : : }
7254 : 52699 : case FLOAT_EXPR:
7255 : 52699 : {
7256 : 52699 : tree _q20 = TREE_OPERAND (_p0, 0);
7257 : 52699 : switch (TREE_CODE (_p1))
7258 : : {
7259 : 102 : case FLOAT_EXPR:
7260 : 102 : {
7261 : 102 : tree _q40 = TREE_OPERAND (_p1, 0);
7262 : 102 : {
7263 : 102 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
7264 : 102 : tree res = generic_simplify_254 (loc, type, _p0, _p1, captures, LT_EXPR, LT_EXPR);
7265 : 102 : if (res) return res;
7266 : : }
7267 : 71 : break;
7268 : : }
7269 : 658 : case REAL_CST:
7270 : 658 : {
7271 : 658 : {
7272 : 658 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
7273 : 658 : tree res = generic_simplify_255 (loc, type, _p0, _p1, captures, LT_EXPR, LE_EXPR);
7274 : 658 : if (res) return res;
7275 : : }
7276 : 554 : break;
7277 : : }
7278 : : default:;
7279 : : }
7280 : : break;
7281 : : }
7282 : 658 : case EXACT_DIV_EXPR:
7283 : 658 : {
7284 : 658 : tree _q20 = TREE_OPERAND (_p0, 0);
7285 : 658 : tree _q21 = TREE_OPERAND (_p0, 1);
7286 : 658 : switch (TREE_CODE (_q21))
7287 : : {
7288 : 658 : case INTEGER_CST:
7289 : 658 : {
7290 : 658 : switch (TREE_CODE (_p1))
7291 : : {
7292 : 19 : case INTEGER_CST:
7293 : 19 : {
7294 : 19 : {
7295 : 19 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7296 : 19 : tree res = generic_simplify_346 (loc, type, _p0, _p1, captures, LT_EXPR);
7297 : 19 : if (res) return res;
7298 : : }
7299 : 0 : break;
7300 : : }
7301 : : default:;
7302 : : }
7303 : : break;
7304 : : }
7305 : : default:;
7306 : : }
7307 : : break;
7308 : : }
7309 : 2360763 : CASE_CONVERT:
7310 : 2360763 : {
7311 : 2360763 : tree _q20 = TREE_OPERAND (_p0, 0);
7312 : 2360763 : switch (TREE_CODE (_q20))
7313 : : {
7314 : 117 : case EXACT_DIV_EXPR:
7315 : 117 : {
7316 : 117 : tree _q30 = TREE_OPERAND (_q20, 0);
7317 : 117 : tree _q31 = TREE_OPERAND (_q20, 1);
7318 : 117 : switch (TREE_CODE (_q31))
7319 : : {
7320 : 117 : case INTEGER_CST:
7321 : 117 : {
7322 : 117 : switch (TREE_CODE (_p1))
7323 : : {
7324 : 0 : case INTEGER_CST:
7325 : 0 : {
7326 : 0 : {
7327 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
7328 : 0 : tree res = generic_simplify_347 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR);
7329 : 0 : if (res) return res;
7330 : : }
7331 : 0 : break;
7332 : : }
7333 : : default:;
7334 : : }
7335 : : break;
7336 : : }
7337 : : default:;
7338 : : }
7339 : : break;
7340 : : }
7341 : 2360763 : default:;
7342 : : }
7343 : 2360763 : switch (TREE_CODE (_p1))
7344 : : {
7345 : 1349147 : CASE_CONVERT:
7346 : 1349147 : {
7347 : 1349147 : tree _q40 = TREE_OPERAND (_p1, 0);
7348 : 1349147 : {
7349 : 1349147 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
7350 : 1349147 : tree res = generic_simplify_259 (loc, type, _p0, _p1, captures, LT_EXPR);
7351 : 1349147 : if (res) return res;
7352 : : }
7353 : 1113339 : break;
7354 : : }
7355 : 2124955 : default:;
7356 : : }
7357 : 2124955 : {
7358 : 2124955 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
7359 : 2124955 : tree res = generic_simplify_260 (loc, type, _p0, _p1, captures, LT_EXPR);
7360 : 2124955 : if (res) return res;
7361 : : }
7362 : 1842799 : switch (TREE_CODE (_q20))
7363 : : {
7364 : 50648 : case ADDR_EXPR:
7365 : 50648 : {
7366 : 50648 : switch (TREE_CODE (_p1))
7367 : : {
7368 : 50150 : CASE_CONVERT:
7369 : 50150 : {
7370 : 50150 : tree _q40 = TREE_OPERAND (_p1, 0);
7371 : 50150 : switch (TREE_CODE (_q40))
7372 : : {
7373 : 50150 : case ADDR_EXPR:
7374 : 50150 : {
7375 : 50150 : {
7376 : 50150 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
7377 : 50150 : tree res = generic_simplify_277 (loc, type, _p0, _p1, captures, LT_EXPR);
7378 : 50150 : if (res) return res;
7379 : : }
7380 : 305 : break;
7381 : : }
7382 : : default:;
7383 : : }
7384 : : break;
7385 : : }
7386 : 468 : case ADDR_EXPR:
7387 : 468 : {
7388 : 468 : {
7389 : 468 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
7390 : 468 : tree res = generic_simplify_277 (loc, type, _p0, _p1, captures, LT_EXPR);
7391 : 468 : if (res) return res;
7392 : : }
7393 : 0 : break;
7394 : : }
7395 : : default:;
7396 : : }
7397 : : break;
7398 : : }
7399 : 1792486 : default:;
7400 : : }
7401 : 1792486 : if (uniform_integer_cst_p (_p1))
7402 : : {
7403 : 191208 : {
7404 : 191208 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
7405 : 191208 : tree res = generic_simplify_348 (loc, type, _p0, _p1, captures, LT_EXPR);
7406 : 191208 : if (res) return res;
7407 : : }
7408 : : }
7409 : : break;
7410 : : }
7411 : 2693 : case NEGATE_EXPR:
7412 : 2693 : {
7413 : 2693 : tree _q20 = TREE_OPERAND (_p0, 0);
7414 : 2693 : switch (TREE_CODE (_p1))
7415 : : {
7416 : 0 : case NEGATE_EXPR:
7417 : 0 : {
7418 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
7419 : 0 : {
7420 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
7421 : 0 : tree res = generic_simplify_257 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
7422 : 0 : if (res) return res;
7423 : : }
7424 : 0 : break;
7425 : : }
7426 : 2693 : default:;
7427 : : }
7428 : 2693 : if (CONSTANT_CLASS_P (_p1))
7429 : : {
7430 : 301 : {
7431 : 301 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
7432 : 301 : tree res = generic_simplify_258 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
7433 : 301 : if (res) return res;
7434 : : }
7435 : : }
7436 : : break;
7437 : : }
7438 : 30668 : case ADDR_EXPR:
7439 : 30668 : {
7440 : 30668 : switch (TREE_CODE (_p1))
7441 : : {
7442 : 0 : CASE_CONVERT:
7443 : 0 : {
7444 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
7445 : 0 : switch (TREE_CODE (_q30))
7446 : : {
7447 : 0 : case ADDR_EXPR:
7448 : 0 : {
7449 : 0 : {
7450 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q30 };
7451 : 0 : tree res = generic_simplify_278 (loc, type, _p0, _p1, captures, LT_EXPR);
7452 : 0 : if (res) return res;
7453 : : }
7454 : 0 : break;
7455 : : }
7456 : : default:;
7457 : : }
7458 : : break;
7459 : : }
7460 : 30249 : case ADDR_EXPR:
7461 : 30249 : {
7462 : 30249 : {
7463 : 30249 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _p1 };
7464 : 30249 : tree res = generic_simplify_278 (loc, type, _p0, _p1, captures, LT_EXPR);
7465 : 30249 : if (res) return res;
7466 : : }
7467 : 362 : break;
7468 : : }
7469 : : default:;
7470 : : }
7471 : : break;
7472 : : }
7473 : 1601982 : case CALL_EXPR:
7474 : 1601982 : switch (get_call_combined_fn (_p0))
7475 : : {
7476 : 5 : case CFN_BUILT_IN_SQRTF:
7477 : 5 : if (call_expr_nargs (_p0) == 1)
7478 : : {
7479 : 5 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
7480 : 5 : switch (TREE_CODE (_p1))
7481 : : {
7482 : 5 : case REAL_CST:
7483 : 5 : {
7484 : 5 : {
7485 : 5 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
7486 : 5 : tree res = generic_simplify_252 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTF, LT_EXPR);
7487 : 5 : if (res) return res;
7488 : : }
7489 : 0 : break;
7490 : : }
7491 : 0 : case CALL_EXPR:
7492 : 0 : switch (get_call_combined_fn (_p1))
7493 : : {
7494 : 0 : case CFN_BUILT_IN_SQRTF:
7495 : 0 : if (call_expr_nargs (_p1) == 1)
7496 : : {
7497 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
7498 : 0 : {
7499 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
7500 : 0 : tree res = generic_simplify_253 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTF, LT_EXPR);
7501 : 0 : if (res) return res;
7502 : : }
7503 : : }
7504 : : break;
7505 : : default:;
7506 : : }
7507 : : break;
7508 : : default:;
7509 : : }
7510 : : }
7511 : : break;
7512 : 0 : case CFN_BUILT_IN_SQRTL:
7513 : 0 : if (call_expr_nargs (_p0) == 1)
7514 : : {
7515 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
7516 : 0 : switch (TREE_CODE (_p1))
7517 : : {
7518 : 0 : case REAL_CST:
7519 : 0 : {
7520 : 0 : {
7521 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
7522 : 0 : tree res = generic_simplify_252 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTL, LT_EXPR);
7523 : 0 : if (res) return res;
7524 : : }
7525 : 0 : break;
7526 : : }
7527 : 0 : case CALL_EXPR:
7528 : 0 : switch (get_call_combined_fn (_p1))
7529 : : {
7530 : 0 : case CFN_BUILT_IN_SQRTL:
7531 : 0 : if (call_expr_nargs (_p1) == 1)
7532 : : {
7533 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
7534 : 0 : {
7535 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
7536 : 0 : tree res = generic_simplify_253 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTL, LT_EXPR);
7537 : 0 : if (res) return res;
7538 : : }
7539 : : }
7540 : : break;
7541 : : default:;
7542 : : }
7543 : : break;
7544 : : default:;
7545 : : }
7546 : : }
7547 : : break;
7548 : 4 : case CFN_BUILT_IN_SQRT:
7549 : 4 : if (call_expr_nargs (_p0) == 1)
7550 : : {
7551 : 4 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
7552 : 4 : switch (TREE_CODE (_p1))
7553 : : {
7554 : 4 : case REAL_CST:
7555 : 4 : {
7556 : 4 : {
7557 : 4 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
7558 : 4 : tree res = generic_simplify_252 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRT, LT_EXPR);
7559 : 4 : if (res) return res;
7560 : : }
7561 : 1 : break;
7562 : : }
7563 : 0 : case CALL_EXPR:
7564 : 0 : switch (get_call_combined_fn (_p1))
7565 : : {
7566 : 0 : case CFN_BUILT_IN_SQRT:
7567 : 0 : if (call_expr_nargs (_p1) == 1)
7568 : : {
7569 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
7570 : 0 : {
7571 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
7572 : 0 : tree res = generic_simplify_253 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRT, LT_EXPR);
7573 : 0 : if (res) return res;
7574 : : }
7575 : : }
7576 : : break;
7577 : : default:;
7578 : : }
7579 : : break;
7580 : : default:;
7581 : : }
7582 : : }
7583 : : break;
7584 : 0 : case CFN_SQRT:
7585 : 0 : if (call_expr_nargs (_p0) == 1)
7586 : : {
7587 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
7588 : 0 : switch (TREE_CODE (_p1))
7589 : : {
7590 : 0 : case REAL_CST:
7591 : 0 : {
7592 : 0 : {
7593 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
7594 : 0 : tree res = generic_simplify_252 (loc, type, _p0, _p1, captures, CFN_SQRT, LT_EXPR);
7595 : 0 : if (res) return res;
7596 : : }
7597 : 0 : break;
7598 : : }
7599 : 0 : case CALL_EXPR:
7600 : 0 : switch (get_call_combined_fn (_p1))
7601 : : {
7602 : 0 : case CFN_SQRT:
7603 : 0 : if (call_expr_nargs (_p1) == 1)
7604 : : {
7605 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
7606 : 0 : {
7607 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
7608 : 0 : tree res = generic_simplify_253 (loc, type, _p0, _p1, captures, CFN_SQRT, LT_EXPR);
7609 : 0 : if (res) return res;
7610 : : }
7611 : : }
7612 : : break;
7613 : : default:;
7614 : : }
7615 : : break;
7616 : : default:;
7617 : : }
7618 : : }
7619 : : break;
7620 : : default:;
7621 : : }
7622 : : break;
7623 : 13377909 : default:;
7624 : : }
7625 : 13377909 : switch (TREE_CODE (_p1))
7626 : : {
7627 : 1612241 : CASE_CONVERT:
7628 : 1612241 : {
7629 : 1612241 : tree _q30 = TREE_OPERAND (_p1, 0);
7630 : 1612241 : switch (TREE_CODE (_q30))
7631 : : {
7632 : 0 : case NE_EXPR:
7633 : 0 : {
7634 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
7635 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
7636 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
7637 : : {
7638 : 0 : if (integer_zerop (_q41))
7639 : : {
7640 : 0 : {
7641 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
7642 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0]))
7643 : : )
7644 : : {
7645 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1801;
7646 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1801;
7647 : 0 : {
7648 : 0 : tree _r;
7649 : 0 : _r = constant_boolean_node (false, type);
7650 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1018, __FILE__, __LINE__, true);
7651 : 0 : return _r;
7652 : : }
7653 : : next_after_fail1801:;
7654 : : }
7655 : : }
7656 : : }
7657 : : }
7658 : : break;
7659 : : }
7660 : : default:;
7661 : : }
7662 : : break;
7663 : : }
7664 : 13377909 : default:;
7665 : : }
7666 : 13377909 : if (uniform_integer_cst_p (_p1))
7667 : : {
7668 : 2993582 : {
7669 : 2993582 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _p1 };
7670 : 2993582 : tree res = generic_simplify_349 (loc, type, _p0, _p1, captures, LT_EXPR);
7671 : 2993582 : if (res) return res;
7672 : : }
7673 : : }
7674 : 12949229 : switch (TREE_CODE (_p0))
7675 : : {
7676 : 1789197 : CASE_CONVERT:
7677 : 1789197 : {
7678 : 1789197 : tree _q20 = TREE_OPERAND (_p0, 0);
7679 : 1789197 : switch (TREE_CODE (_q20))
7680 : : {
7681 : 92955 : case PLUS_EXPR:
7682 : 92955 : {
7683 : 92955 : tree _q30 = TREE_OPERAND (_q20, 0);
7684 : 92955 : tree _q31 = TREE_OPERAND (_q20, 1);
7685 : 92955 : switch (TREE_CODE (_q30))
7686 : : {
7687 : 64909 : CASE_CONVERT:
7688 : 64909 : {
7689 : 64909 : tree _q40 = TREE_OPERAND (_q30, 0);
7690 : 64909 : switch (TREE_CODE (_q31))
7691 : : {
7692 : 64864 : case INTEGER_CST:
7693 : 64864 : {
7694 : 64864 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
7695 : : {
7696 : 27 : {
7697 : 27 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q40, _q31 };
7698 : 27 : tree res = generic_simplify_350 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
7699 : 27 : if (res) return res;
7700 : : }
7701 : : }
7702 : : break;
7703 : : }
7704 : : default:;
7705 : : }
7706 : : break;
7707 : : }
7708 : : default:;
7709 : : }
7710 : : break;
7711 : : }
7712 : : default:;
7713 : : }
7714 : : break;
7715 : : }
7716 : 12949202 : default:;
7717 : : }
7718 : 12949202 : switch (TREE_CODE (_p1))
7719 : : {
7720 : 1612241 : CASE_CONVERT:
7721 : 1612241 : {
7722 : 1612241 : tree _q30 = TREE_OPERAND (_p1, 0);
7723 : 1612241 : switch (TREE_CODE (_q30))
7724 : : {
7725 : 21698 : case PLUS_EXPR:
7726 : 21698 : {
7727 : 21698 : tree _q40 = TREE_OPERAND (_q30, 0);
7728 : 21698 : tree _q41 = TREE_OPERAND (_q30, 1);
7729 : 21698 : switch (TREE_CODE (_q40))
7730 : : {
7731 : 20311 : CASE_CONVERT:
7732 : 20311 : {
7733 : 20311 : tree _q50 = TREE_OPERAND (_q40, 0);
7734 : 20311 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
7735 : : {
7736 : 0 : switch (TREE_CODE (_q41))
7737 : : {
7738 : 0 : case INTEGER_CST:
7739 : 0 : {
7740 : 0 : {
7741 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q30, _q40, _p0, _q41 };
7742 : 0 : tree res = generic_simplify_350 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
7743 : 0 : if (res) return res;
7744 : : }
7745 : 0 : break;
7746 : : }
7747 : : default:;
7748 : : }
7749 : : }
7750 : : break;
7751 : : }
7752 : : default:;
7753 : : }
7754 : : break;
7755 : : }
7756 : : default:;
7757 : : }
7758 : : break;
7759 : : }
7760 : 347542 : case PLUS_EXPR:
7761 : 347542 : {
7762 : 347542 : tree _q30 = TREE_OPERAND (_p1, 0);
7763 : 347542 : tree _q31 = TREE_OPERAND (_p1, 1);
7764 : 347542 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
7765 : : {
7766 : 80 : switch (TREE_CODE (_q31))
7767 : : {
7768 : 64 : case INTEGER_CST:
7769 : 64 : {
7770 : 64 : {
7771 : 64 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _p1, _q30, _p0, _q31 };
7772 : 64 : tree res = generic_simplify_345 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
7773 : 64 : if (res) return res;
7774 : : }
7775 : 0 : break;
7776 : : }
7777 : : default:;
7778 : : }
7779 : : }
7780 : : break;
7781 : : }
7782 : 22581 : case MINUS_EXPR:
7783 : 22581 : {
7784 : 22581 : tree _q30 = TREE_OPERAND (_p1, 0);
7785 : 22581 : tree _q31 = TREE_OPERAND (_p1, 1);
7786 : 22581 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
7787 : : {
7788 : 0 : {
7789 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _p0, _q31 };
7790 : 0 : tree res = generic_simplify_351 (loc, type, _p0, _p1, captures, GT_EXPR);
7791 : 0 : if (res) return res;
7792 : : }
7793 : : }
7794 : : break;
7795 : : }
7796 : 12949138 : default:;
7797 : : }
7798 : 12949138 : switch (TREE_CODE (_p0))
7799 : : {
7800 : 1924589 : case PLUS_EXPR:
7801 : 1924589 : {
7802 : 1924589 : tree _q20 = TREE_OPERAND (_p0, 0);
7803 : 1924589 : tree _q21 = TREE_OPERAND (_p0, 1);
7804 : 1924589 : switch (TREE_CODE (_q20))
7805 : : {
7806 : 1356 : case MINUS_EXPR:
7807 : 1356 : {
7808 : 1356 : tree _q30 = TREE_OPERAND (_q20, 0);
7809 : 1356 : tree _q31 = TREE_OPERAND (_q20, 1);
7810 : 1356 : if (integer_minus_onep (_q21))
7811 : : {
7812 : 49 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
7813 : : {
7814 : 1 : {
7815 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
7816 : 1 : tree res = generic_simplify_352 (loc, type, _p0, _p1, captures, LT_EXPR);
7817 : 1 : if (res) return res;
7818 : : }
7819 : : }
7820 : : }
7821 : : break;
7822 : : }
7823 : : default:;
7824 : : }
7825 : : break;
7826 : : }
7827 : 12949137 : default:;
7828 : : }
7829 : 12949137 : switch (TREE_CODE (_p1))
7830 : : {
7831 : 0 : case REALPART_EXPR:
7832 : 0 : {
7833 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
7834 : 0 : switch (TREE_CODE (_q30))
7835 : : {
7836 : 0 : case CALL_EXPR:
7837 : 0 : switch (get_call_combined_fn (_q30))
7838 : : {
7839 : 0 : case CFN_SUB_OVERFLOW:
7840 : 0 : if (call_expr_nargs (_q30) == 2)
7841 : : {
7842 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
7843 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
7844 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
7845 : : {
7846 : 0 : {
7847 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _p0, _q41 };
7848 : 0 : tree res = generic_simplify_353 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
7849 : 0 : if (res) return res;
7850 : : }
7851 : : }
7852 : : }
7853 : : break;
7854 : : default:;
7855 : : }
7856 : : break;
7857 : : default:;
7858 : : }
7859 : : break;
7860 : : }
7861 : 12949137 : default:;
7862 : : }
7863 : 12949137 : switch (TREE_CODE (_p0))
7864 : : {
7865 : 20 : case REALPART_EXPR:
7866 : 20 : {
7867 : 20 : tree _q20 = TREE_OPERAND (_p0, 0);
7868 : 20 : switch (TREE_CODE (_q20))
7869 : : {
7870 : 0 : case CALL_EXPR:
7871 : 0 : switch (get_call_combined_fn (_q20))
7872 : : {
7873 : 0 : case CFN_ADD_OVERFLOW:
7874 : 0 : if (call_expr_nargs (_q20) == 2)
7875 : : {
7876 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
7877 : 0 : tree _q31 = CALL_EXPR_ARG (_q20, 1);
7878 : 0 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
7879 : : {
7880 : 0 : {
7881 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
7882 : 0 : tree res = generic_simplify_354 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
7883 : 0 : if (res) return res;
7884 : : }
7885 : : }
7886 : 0 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
7887 : : {
7888 : 0 : {
7889 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q31, _q30 };
7890 : 0 : tree res = generic_simplify_354 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
7891 : 0 : if (res) return res;
7892 : : }
7893 : : }
7894 : : }
7895 : : break;
7896 : : default:;
7897 : : }
7898 : : break;
7899 : : default:;
7900 : : }
7901 : : break;
7902 : : }
7903 : 7173 : case TRUNC_DIV_EXPR:
7904 : 7173 : {
7905 : 7173 : tree _q20 = TREE_OPERAND (_p0, 0);
7906 : 7173 : tree _q21 = TREE_OPERAND (_p0, 1);
7907 : 7173 : if (integer_all_onesp (_q20))
7908 : : {
7909 : 1018 : {
7910 : 1018 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _p1 };
7911 : 1018 : tree res = generic_simplify_355 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
7912 : 1018 : if (res) return res;
7913 : : }
7914 : : }
7915 : : break;
7916 : : }
7917 : 124479 : case MULT_EXPR:
7918 : 124479 : {
7919 : 124479 : tree _q20 = TREE_OPERAND (_p0, 0);
7920 : 124479 : tree _q21 = TREE_OPERAND (_p0, 1);
7921 : 124479 : switch (TREE_CODE (_q21))
7922 : : {
7923 : 11977 : case REAL_CST:
7924 : 11977 : {
7925 : 11977 : switch (TREE_CODE (_p1))
7926 : : {
7927 : 451 : case REAL_CST:
7928 : 451 : {
7929 : 451 : {
7930 : 451 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7931 : 451 : tree res = generic_simplify_356 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
7932 : 451 : if (res) return res;
7933 : : }
7934 : 451 : break;
7935 : : }
7936 : : default:;
7937 : : }
7938 : : break;
7939 : : }
7940 : : default:;
7941 : : }
7942 : : break;
7943 : : }
7944 : 1924588 : case PLUS_EXPR:
7945 : 1924588 : {
7946 : 1924588 : tree _q20 = TREE_OPERAND (_p0, 0);
7947 : 1924588 : tree _q21 = TREE_OPERAND (_p0, 1);
7948 : 1924588 : switch (TREE_CODE (_q21))
7949 : : {
7950 : 1422232 : case INTEGER_CST:
7951 : 1422232 : {
7952 : 1422232 : switch (TREE_CODE (_p1))
7953 : : {
7954 : 223192 : case INTEGER_CST:
7955 : 223192 : {
7956 : 223192 : {
7957 : 223192 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
7958 : 223192 : tree res = generic_simplify_357 (loc, type, _p0, _p1, captures, PLUS_EXPR, MINUS_EXPR, LT_EXPR, GT_EXPR);
7959 : 223192 : if (res) return res;
7960 : : }
7961 : 15816 : break;
7962 : : }
7963 : : default:;
7964 : : }
7965 : : break;
7966 : : }
7967 : : default:;
7968 : : }
7969 : : break;
7970 : : }
7971 : 177138 : case MINUS_EXPR:
7972 : 177138 : {
7973 : 177138 : tree _q20 = TREE_OPERAND (_p0, 0);
7974 : 177138 : tree _q21 = TREE_OPERAND (_p0, 1);
7975 : 177138 : switch (TREE_CODE (_q21))
7976 : : {
7977 : 0 : case INTEGER_CST:
7978 : 0 : {
7979 : 0 : switch (TREE_CODE (_p1))
7980 : : {
7981 : 0 : case INTEGER_CST:
7982 : 0 : {
7983 : 0 : {
7984 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
7985 : 0 : tree res = generic_simplify_357 (loc, type, _p0, _p1, captures, MINUS_EXPR, PLUS_EXPR, LT_EXPR, GT_EXPR);
7986 : 0 : if (res) return res;
7987 : : }
7988 : 0 : break;
7989 : : }
7990 : : default:;
7991 : : }
7992 : : break;
7993 : : }
7994 : 177138 : default:;
7995 : : }
7996 : 177138 : switch (TREE_CODE (_q20))
7997 : : {
7998 : 42155 : case INTEGER_CST:
7999 : 42155 : {
8000 : 42155 : switch (TREE_CODE (_p1))
8001 : : {
8002 : 1561 : case INTEGER_CST:
8003 : 1561 : {
8004 : 1561 : {
8005 : 1561 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
8006 : 1561 : tree res = generic_simplify_284 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
8007 : 1561 : if (res) return res;
8008 : : }
8009 : 0 : break;
8010 : : }
8011 : : default:;
8012 : : }
8013 : : break;
8014 : : }
8015 : : default:;
8016 : : }
8017 : : break;
8018 : : }
8019 : 1601954 : case CALL_EXPR:
8020 : 1601954 : switch (get_call_combined_fn (_p0))
8021 : : {
8022 : 3 : case CFN_BUILT_IN_CTZ:
8023 : 3 : if (call_expr_nargs (_p0) == 1)
8024 : : {
8025 : 3 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8026 : 3 : switch (TREE_CODE (_p1))
8027 : : {
8028 : 3 : case INTEGER_CST:
8029 : 3 : {
8030 : 3 : {
8031 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
8032 : 3 : tree res = generic_simplify_358 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR, CFN_BUILT_IN_CTZ);
8033 : 3 : if (res) return res;
8034 : : }
8035 : 0 : break;
8036 : : }
8037 : : default:;
8038 : : }
8039 : : }
8040 : : break;
8041 : 2 : case CFN_BUILT_IN_CTZL:
8042 : 2 : if (call_expr_nargs (_p0) == 1)
8043 : : {
8044 : 2 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8045 : 2 : switch (TREE_CODE (_p1))
8046 : : {
8047 : 2 : case INTEGER_CST:
8048 : 2 : {
8049 : 2 : {
8050 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
8051 : 2 : tree res = generic_simplify_358 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR, CFN_BUILT_IN_CTZL);
8052 : 2 : if (res) return res;
8053 : : }
8054 : 0 : break;
8055 : : }
8056 : : default:;
8057 : : }
8058 : : }
8059 : : break;
8060 : 0 : case CFN_BUILT_IN_CTZIMAX:
8061 : 0 : if (call_expr_nargs (_p0) == 1)
8062 : : {
8063 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8064 : 0 : switch (TREE_CODE (_p1))
8065 : : {
8066 : 0 : case INTEGER_CST:
8067 : 0 : {
8068 : 0 : {
8069 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
8070 : 0 : tree res = generic_simplify_358 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR, CFN_BUILT_IN_CTZIMAX);
8071 : 0 : if (res) return res;
8072 : : }
8073 : 0 : break;
8074 : : }
8075 : : default:;
8076 : : }
8077 : : }
8078 : : break;
8079 : 0 : case CFN_CTZ:
8080 : 0 : if (call_expr_nargs (_p0) == 1)
8081 : : {
8082 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8083 : 0 : switch (TREE_CODE (_p1))
8084 : : {
8085 : 0 : case INTEGER_CST:
8086 : 0 : {
8087 : 0 : {
8088 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
8089 : 0 : tree res = generic_simplify_358 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR, CFN_CTZ);
8090 : 0 : if (res) return res;
8091 : : }
8092 : 0 : break;
8093 : : }
8094 : : default:;
8095 : : }
8096 : : }
8097 : 0 : if (call_expr_nargs (_p0) == 2)
8098 : : {
8099 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8100 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
8101 : 0 : switch (TREE_CODE (_p1))
8102 : : {
8103 : 0 : case INTEGER_CST:
8104 : 0 : {
8105 : 0 : {
8106 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
8107 : 0 : tree res = generic_simplify_359 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
8108 : 0 : if (res) return res;
8109 : : }
8110 : 0 : break;
8111 : : }
8112 : : default:;
8113 : : }
8114 : : }
8115 : : break;
8116 : 2 : case CFN_BUILT_IN_CTZLL:
8117 : 2 : if (call_expr_nargs (_p0) == 1)
8118 : : {
8119 : 2 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8120 : 2 : switch (TREE_CODE (_p1))
8121 : : {
8122 : 2 : case INTEGER_CST:
8123 : 2 : {
8124 : 2 : {
8125 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
8126 : 2 : tree res = generic_simplify_358 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR, CFN_BUILT_IN_CTZLL);
8127 : 2 : if (res) return res;
8128 : : }
8129 : 0 : break;
8130 : : }
8131 : : default:;
8132 : : }
8133 : : }
8134 : : break;
8135 : : default:;
8136 : : }
8137 : : break;
8138 : : default:;
8139 : : }
8140 : : return NULL_TREE;
8141 : : }
8142 : :
8143 : : tree
8144 : 19172118 : generic_simplify_GT_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
8145 : : {
8146 : 19172118 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
8147 : 19172118 : switch (TREE_CODE (_p0))
8148 : : {
8149 : 1006 : case RDIV_EXPR:
8150 : 1006 : {
8151 : 1006 : tree _q20 = TREE_OPERAND (_p0, 0);
8152 : 1006 : tree _q21 = TREE_OPERAND (_p0, 1);
8153 : 1006 : switch (TREE_CODE (_q20))
8154 : : {
8155 : 29 : case REAL_CST:
8156 : 29 : {
8157 : 29 : if (real_zerop (_p1))
8158 : : {
8159 : 0 : {
8160 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
8161 : 0 : tree res = generic_simplify_333 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
8162 : 0 : if (res) return res;
8163 : : }
8164 : : }
8165 : : break;
8166 : : }
8167 : : default:;
8168 : : }
8169 : : break;
8170 : : }
8171 : 19172118 : default:;
8172 : : }
8173 : 19172118 : switch (TREE_CODE (_p1))
8174 : : {
8175 : 91 : case TRUNC_MOD_EXPR:
8176 : 91 : {
8177 : 91 : tree _q30 = TREE_OPERAND (_p1, 0);
8178 : 91 : tree _q31 = TREE_OPERAND (_p1, 1);
8179 : 91 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
8180 : : {
8181 : 0 : {
8182 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p0 };
8183 : 0 : tree res = generic_simplify_334 (loc, type, _p0, _p1, captures, LT_EXPR);
8184 : 0 : if (res) return res;
8185 : : }
8186 : : }
8187 : : break;
8188 : : }
8189 : 19172118 : default:;
8190 : : }
8191 : 19172118 : switch (TREE_CODE (_p0))
8192 : : {
8193 : 137319 : case MULT_EXPR:
8194 : 137319 : {
8195 : 137319 : tree _q20 = TREE_OPERAND (_p0, 0);
8196 : 137319 : tree _q21 = TREE_OPERAND (_p0, 1);
8197 : 137319 : switch (TREE_CODE (_p1))
8198 : : {
8199 : 7160 : case MULT_EXPR:
8200 : 7160 : {
8201 : 7160 : tree _q50 = TREE_OPERAND (_p1, 0);
8202 : 7160 : tree _q51 = TREE_OPERAND (_p1, 1);
8203 : 7160 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8204 : : {
8205 : 108 : {
8206 : 108 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
8207 : 108 : tree res = generic_simplify_335 (loc, type, _p0, _p1, captures, GT_EXPR);
8208 : 108 : if (res) return res;
8209 : : }
8210 : : }
8211 : 7156 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
8212 : : {
8213 : 8 : {
8214 : 8 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
8215 : 8 : tree res = generic_simplify_335 (loc, type, _p0, _p1, captures, GT_EXPR);
8216 : 8 : if (res) return res;
8217 : : }
8218 : : }
8219 : 7156 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
8220 : : {
8221 : 0 : {
8222 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
8223 : 0 : tree res = generic_simplify_335 (loc, type, _p0, _p1, captures, GT_EXPR);
8224 : 0 : if (res) return res;
8225 : : }
8226 : : }
8227 : 7156 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8228 : : {
8229 : 680 : {
8230 : 680 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
8231 : 680 : tree res = generic_simplify_335 (loc, type, _p0, _p1, captures, GT_EXPR);
8232 : 680 : if (res) return res;
8233 : : }
8234 : : }
8235 : : break;
8236 : : }
8237 : : default:;
8238 : : }
8239 : : break;
8240 : : }
8241 : 2130703 : case PLUS_EXPR:
8242 : 2130703 : {
8243 : 2130703 : tree _q20 = TREE_OPERAND (_p0, 0);
8244 : 2130703 : tree _q21 = TREE_OPERAND (_p0, 1);
8245 : 2130703 : if (integer_minus_onep (_q21))
8246 : : {
8247 : 564708 : switch (TREE_CODE (_p1))
8248 : : {
8249 : 428619 : case INTEGER_CST:
8250 : 428619 : {
8251 : 428619 : {
8252 : 428619 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
8253 : 428619 : tree res = generic_simplify_360 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
8254 : 428619 : if (res) return res;
8255 : : }
8256 : 423749 : break;
8257 : : }
8258 : : default:;
8259 : : }
8260 : : }
8261 : 2125833 : switch (TREE_CODE (_p1))
8262 : : {
8263 : 60547 : case PLUS_EXPR:
8264 : 60547 : {
8265 : 60547 : tree _q50 = TREE_OPERAND (_p1, 0);
8266 : 60547 : tree _q51 = TREE_OPERAND (_p1, 1);
8267 : 60547 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8268 : : {
8269 : 4244 : {
8270 : 4244 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
8271 : 4244 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, GT_EXPR);
8272 : 4244 : if (res) return res;
8273 : : }
8274 : : }
8275 : 57633 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
8276 : : {
8277 : 308 : {
8278 : 308 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
8279 : 308 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, GT_EXPR);
8280 : 308 : if (res) return res;
8281 : : }
8282 : : }
8283 : 57633 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
8284 : : {
8285 : 25 : {
8286 : 25 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
8287 : 25 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, GT_EXPR);
8288 : 25 : if (res) return res;
8289 : : }
8290 : : }
8291 : 57633 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8292 : : {
8293 : 313 : {
8294 : 313 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
8295 : 313 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, GT_EXPR);
8296 : 313 : if (res) return res;
8297 : : }
8298 : : }
8299 : : break;
8300 : : }
8301 : 2122919 : default:;
8302 : : }
8303 : 2122919 : switch (TREE_CODE (_q21))
8304 : : {
8305 : 1969750 : case INTEGER_CST:
8306 : 1969750 : {
8307 : 1969750 : switch (TREE_CODE (_p1))
8308 : : {
8309 : 34828 : case PLUS_EXPR:
8310 : 34828 : {
8311 : 34828 : tree _q50 = TREE_OPERAND (_p1, 0);
8312 : 34828 : tree _q51 = TREE_OPERAND (_p1, 1);
8313 : 34828 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8314 : : {
8315 : 1296 : {
8316 : 1296 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
8317 : 1296 : tree res = generic_simplify_337 (loc, type, _p0, _p1, captures, GT_EXPR);
8318 : 1296 : if (res) return res;
8319 : : }
8320 : : }
8321 : : break;
8322 : : }
8323 : : default:;
8324 : : }
8325 : : break;
8326 : : }
8327 : 2122919 : default:;
8328 : : }
8329 : 2122919 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
8330 : : {
8331 : 59989 : {
8332 : 59989 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8333 : 59989 : tree res = generic_simplify_338 (loc, type, _p0, _p1, captures, GT_EXPR);
8334 : 59989 : if (res) return res;
8335 : : }
8336 : : }
8337 : 2086941 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
8338 : : {
8339 : 6354 : {
8340 : 6354 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
8341 : 6354 : tree res = generic_simplify_338 (loc, type, _p0, _p1, captures, GT_EXPR);
8342 : 6354 : if (res) return res;
8343 : : }
8344 : : }
8345 : : break;
8346 : : }
8347 : 2061015 : CASE_CONVERT:
8348 : 2061015 : {
8349 : 2061015 : tree _q20 = TREE_OPERAND (_p0, 0);
8350 : 2061015 : switch (TREE_CODE (_q20))
8351 : : {
8352 : 5 : case EXACT_DIV_EXPR:
8353 : 5 : {
8354 : 5 : tree _q30 = TREE_OPERAND (_q20, 0);
8355 : 5 : tree _q31 = TREE_OPERAND (_q20, 1);
8356 : 5 : switch (TREE_CODE (_q31))
8357 : : {
8358 : 5 : case INTEGER_CST:
8359 : 5 : {
8360 : 5 : switch (TREE_CODE (_p1))
8361 : : {
8362 : 2 : CASE_CONVERT:
8363 : 2 : {
8364 : 2 : tree _q60 = TREE_OPERAND (_p1, 0);
8365 : 2 : switch (TREE_CODE (_q60))
8366 : : {
8367 : 0 : case EXACT_DIV_EXPR:
8368 : 0 : {
8369 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
8370 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
8371 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
8372 : : {
8373 : 0 : {
8374 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q31, _q70 };
8375 : 0 : tree res = generic_simplify_206 (loc, type, _p0, _p1, captures, GT_EXPR);
8376 : 0 : if (res) return res;
8377 : : }
8378 : : }
8379 : : break;
8380 : : }
8381 : : default:;
8382 : : }
8383 : : break;
8384 : : }
8385 : : default:;
8386 : : }
8387 : : break;
8388 : : }
8389 : : default:;
8390 : : }
8391 : : break;
8392 : : }
8393 : : default:;
8394 : : }
8395 : : break;
8396 : : }
8397 : 7449 : case EXACT_DIV_EXPR:
8398 : 7449 : {
8399 : 7449 : tree _q20 = TREE_OPERAND (_p0, 0);
8400 : 7449 : tree _q21 = TREE_OPERAND (_p0, 1);
8401 : 7449 : switch (TREE_CODE (_q21))
8402 : : {
8403 : 7449 : case INTEGER_CST:
8404 : 7449 : {
8405 : 7449 : switch (TREE_CODE (_p1))
8406 : : {
8407 : 6 : case EXACT_DIV_EXPR:
8408 : 6 : {
8409 : 6 : tree _q50 = TREE_OPERAND (_p1, 0);
8410 : 6 : tree _q51 = TREE_OPERAND (_p1, 1);
8411 : 6 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8412 : : {
8413 : 0 : {
8414 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50 };
8415 : 0 : tree res = generic_simplify_206 (loc, type, _p0, _p1, captures, GT_EXPR);
8416 : 0 : if (res) return res;
8417 : : }
8418 : : }
8419 : : break;
8420 : : }
8421 : : default:;
8422 : : }
8423 : : break;
8424 : : }
8425 : : default:;
8426 : : }
8427 : : break;
8428 : : }
8429 : 1685531 : case TRUNC_DIV_EXPR:
8430 : 1685531 : {
8431 : 1685531 : tree _q20 = TREE_OPERAND (_p0, 0);
8432 : 1685531 : tree _q21 = TREE_OPERAND (_p0, 1);
8433 : 1685531 : switch (TREE_CODE (_q21))
8434 : : {
8435 : 1677216 : case INTEGER_CST:
8436 : 1677216 : {
8437 : 1677216 : switch (TREE_CODE (_p1))
8438 : : {
8439 : 1663596 : case INTEGER_CST:
8440 : 1663596 : {
8441 : 1663596 : {
8442 : 1663596 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
8443 : 1663596 : tree res = generic_simplify_209 (loc, type, _p0, _p1, captures, GT_EXPR);
8444 : 1663596 : if (res) return res;
8445 : : }
8446 : 69 : break;
8447 : : }
8448 : : default:;
8449 : : }
8450 : : break;
8451 : : }
8452 : : default:;
8453 : : }
8454 : : break;
8455 : : }
8456 : 739715 : case MINUS_EXPR:
8457 : 739715 : {
8458 : 739715 : tree _q20 = TREE_OPERAND (_p0, 0);
8459 : 739715 : tree _q21 = TREE_OPERAND (_p0, 1);
8460 : 739715 : switch (TREE_CODE (_p1))
8461 : : {
8462 : 3214 : case MINUS_EXPR:
8463 : 3214 : {
8464 : 3214 : tree _q50 = TREE_OPERAND (_p1, 0);
8465 : 3214 : tree _q51 = TREE_OPERAND (_p1, 1);
8466 : 3214 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8467 : : {
8468 : 931 : {
8469 : 931 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
8470 : 931 : tree res = generic_simplify_339 (loc, type, _p0, _p1, captures, GT_EXPR);
8471 : 931 : if (res) return res;
8472 : : }
8473 : : }
8474 : 3214 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8475 : : {
8476 : 184 : {
8477 : 184 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
8478 : 184 : tree res = generic_simplify_340 (loc, type, _p0, _p1, captures, GT_EXPR);
8479 : 184 : if (res) return res;
8480 : : }
8481 : : }
8482 : : break;
8483 : : }
8484 : : default:;
8485 : : }
8486 : : break;
8487 : : }
8488 : 53716 : case POINTER_DIFF_EXPR:
8489 : 53716 : {
8490 : 53716 : tree _q20 = TREE_OPERAND (_p0, 0);
8491 : 53716 : tree _q21 = TREE_OPERAND (_p0, 1);
8492 : 53716 : switch (TREE_CODE (_p1))
8493 : : {
8494 : 404 : case POINTER_DIFF_EXPR:
8495 : 404 : {
8496 : 404 : tree _q50 = TREE_OPERAND (_p1, 0);
8497 : 404 : tree _q51 = TREE_OPERAND (_p1, 1);
8498 : 404 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8499 : : {
8500 : 43 : {
8501 : 43 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50 };
8502 : 43 : tree res = generic_simplify_213 (loc, type, _p0, _p1, captures, GT_EXPR);
8503 : 43 : if (res) return res;
8504 : : }
8505 : : }
8506 : 361 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8507 : : {
8508 : 0 : {
8509 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q51 };
8510 : 0 : tree res = generic_simplify_214 (loc, type, _p0, _p1, captures, GT_EXPR);
8511 : 0 : if (res) return res;
8512 : : }
8513 : : }
8514 : : break;
8515 : : }
8516 : : default:;
8517 : : }
8518 : : break;
8519 : : }
8520 : 17463449 : default:;
8521 : : }
8522 : 17463449 : switch (TREE_CODE (_p1))
8523 : : {
8524 : 110886 : case PLUS_EXPR:
8525 : 110886 : {
8526 : 110886 : tree _q30 = TREE_OPERAND (_p1, 0);
8527 : 110886 : tree _q31 = TREE_OPERAND (_p1, 1);
8528 : 110886 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
8529 : : {
8530 : 0 : {
8531 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q30, _p0 };
8532 : 0 : tree res = generic_simplify_338 (loc, type, _p0, _p1, captures, LT_EXPR);
8533 : 0 : if (res) return res;
8534 : : }
8535 : : }
8536 : 110886 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
8537 : : {
8538 : 4 : {
8539 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q31, _p0 };
8540 : 4 : tree res = generic_simplify_338 (loc, type, _p0, _p1, captures, LT_EXPR);
8541 : 4 : if (res) return res;
8542 : : }
8543 : : }
8544 : : break;
8545 : : }
8546 : 11573 : case MINUS_EXPR:
8547 : 11573 : {
8548 : 11573 : tree _q30 = TREE_OPERAND (_p1, 0);
8549 : 11573 : tree _q31 = TREE_OPERAND (_p1, 1);
8550 : 11573 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
8551 : : {
8552 : 0 : {
8553 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q31 };
8554 : 0 : tree res = generic_simplify_212 (loc, type, _p0, _p1, captures, GT_EXPR);
8555 : 0 : if (res) return res;
8556 : : }
8557 : : }
8558 : : break;
8559 : : }
8560 : 17463449 : default:;
8561 : : }
8562 : 17463449 : switch (TREE_CODE (_p0))
8563 : : {
8564 : 739715 : case MINUS_EXPR:
8565 : 739715 : {
8566 : 739715 : tree _q20 = TREE_OPERAND (_p0, 0);
8567 : 739715 : tree _q21 = TREE_OPERAND (_p0, 1);
8568 : 739715 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
8569 : : {
8570 : 17558 : {
8571 : 17558 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p0, _q21 };
8572 : 17558 : tree res = generic_simplify_212 (loc, type, _p0, _p1, captures, LT_EXPR);
8573 : 17558 : if (res) return res;
8574 : : }
8575 : : }
8576 : : break;
8577 : : }
8578 : 19733 : case BIT_AND_EXPR:
8579 : 19733 : {
8580 : 19733 : tree _q20 = TREE_OPERAND (_p0, 0);
8581 : 19733 : tree _q21 = TREE_OPERAND (_p0, 1);
8582 : 19733 : if (tree_expr_nonnegative_p (_q20))
8583 : : {
8584 : 17783 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
8585 : : {
8586 : 0 : {
8587 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8588 : 0 : tree res = generic_simplify_341 (loc, type, _p0, _p1, captures, GT_EXPR, BIT_AND_EXPR);
8589 : 0 : if (res) return res;
8590 : : }
8591 : : }
8592 : : }
8593 : 19733 : if (tree_expr_nonnegative_p (_q21))
8594 : : {
8595 : 18825 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
8596 : : {
8597 : 3936 : {
8598 : 3936 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
8599 : 3936 : tree res = generic_simplify_341 (loc, type, _p0, _p1, captures, GT_EXPR, BIT_AND_EXPR);
8600 : 3936 : if (res) return res;
8601 : : }
8602 : : }
8603 : : }
8604 : : break;
8605 : : }
8606 : 17459470 : default:;
8607 : : }
8608 : 17459470 : switch (TREE_CODE (_p1))
8609 : : {
8610 : 145 : case BIT_IOR_EXPR:
8611 : 145 : {
8612 : 145 : tree _q30 = TREE_OPERAND (_p1, 0);
8613 : 145 : tree _q31 = TREE_OPERAND (_p1, 1);
8614 : 145 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
8615 : : {
8616 : 0 : if (tree_expr_nonnegative_p (_q30))
8617 : : {
8618 : 0 : {
8619 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
8620 : 0 : tree res = generic_simplify_341 (loc, type, _p0, _p1, captures, LT_EXPR, BIT_IOR_EXPR);
8621 : 0 : if (res) return res;
8622 : : }
8623 : : }
8624 : : }
8625 : 145 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
8626 : : {
8627 : 0 : if (tree_expr_nonnegative_p (_q31))
8628 : : {
8629 : 0 : {
8630 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
8631 : 0 : tree res = generic_simplify_341 (loc, type, _p0, _p1, captures, LT_EXPR, BIT_IOR_EXPR);
8632 : 0 : if (res) return res;
8633 : : }
8634 : : }
8635 : : }
8636 : : break;
8637 : : }
8638 : 17459470 : default:;
8639 : : }
8640 : 17459470 : switch (TREE_CODE (_p0))
8641 : : {
8642 : 14773 : case MAX_EXPR:
8643 : 14773 : {
8644 : 14773 : tree _q20 = TREE_OPERAND (_p0, 0);
8645 : 14773 : tree _q21 = TREE_OPERAND (_p0, 1);
8646 : 14773 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
8647 : : {
8648 : 1 : {
8649 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8650 : 1 : tree res = generic_simplify_222 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR, LT_EXPR);
8651 : 1 : if (res) return res;
8652 : : }
8653 : : }
8654 : 14772 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
8655 : : {
8656 : 12 : {
8657 : 12 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
8658 : 12 : tree res = generic_simplify_222 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR, LT_EXPR);
8659 : 12 : if (res) return res;
8660 : : }
8661 : : }
8662 : 14763 : switch (TREE_CODE (_q21))
8663 : : {
8664 : 14093 : case INTEGER_CST:
8665 : 14093 : {
8666 : 14093 : switch (TREE_CODE (_p1))
8667 : : {
8668 : 0 : case INTEGER_CST:
8669 : 0 : {
8670 : 0 : {
8671 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
8672 : 0 : tree res = generic_simplify_342 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR, BIT_IOR_EXPR);
8673 : 0 : if (res) return res;
8674 : : }
8675 : 0 : break;
8676 : : }
8677 : : default:;
8678 : : }
8679 : : break;
8680 : : }
8681 : : default:;
8682 : : }
8683 : : break;
8684 : : }
8685 : 17459460 : default:;
8686 : : }
8687 : 17459460 : switch (TREE_CODE (_p1))
8688 : : {
8689 : 209 : case MIN_EXPR:
8690 : 209 : {
8691 : 209 : tree _q30 = TREE_OPERAND (_p1, 0);
8692 : 209 : tree _q31 = TREE_OPERAND (_p1, 1);
8693 : 209 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
8694 : : {
8695 : 0 : {
8696 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
8697 : 0 : tree res = generic_simplify_222 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR, GT_EXPR);
8698 : 0 : if (res) return res;
8699 : : }
8700 : : }
8701 : 209 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
8702 : : {
8703 : 0 : {
8704 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
8705 : 0 : tree res = generic_simplify_222 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR, GT_EXPR);
8706 : 0 : if (res) return res;
8707 : : }
8708 : : }
8709 : : break;
8710 : : }
8711 : 697 : case MAX_EXPR:
8712 : 697 : {
8713 : 697 : tree _q30 = TREE_OPERAND (_p1, 0);
8714 : 697 : tree _q31 = TREE_OPERAND (_p1, 1);
8715 : 697 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
8716 : : {
8717 : 0 : {
8718 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
8719 : 0 : tree res = generic_simplify_343 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR);
8720 : 0 : if (res) return res;
8721 : : }
8722 : : }
8723 : 697 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
8724 : : {
8725 : 0 : {
8726 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
8727 : 0 : tree res = generic_simplify_343 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR);
8728 : 0 : if (res) return res;
8729 : : }
8730 : : }
8731 : : break;
8732 : : }
8733 : 17459460 : default:;
8734 : : }
8735 : 17459460 : switch (TREE_CODE (_p0))
8736 : : {
8737 : 33443 : case MIN_EXPR:
8738 : 33443 : {
8739 : 33443 : tree _q20 = TREE_OPERAND (_p0, 0);
8740 : 33443 : tree _q21 = TREE_OPERAND (_p0, 1);
8741 : 33443 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
8742 : : {
8743 : 1 : {
8744 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8745 : 1 : tree res = generic_simplify_343 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR);
8746 : 1 : if (res) return res;
8747 : : }
8748 : : }
8749 : 33442 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
8750 : : {
8751 : 1 : {
8752 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
8753 : 1 : tree res = generic_simplify_343 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR);
8754 : 1 : if (res) return res;
8755 : : }
8756 : : }
8757 : 33441 : switch (TREE_CODE (_q21))
8758 : : {
8759 : 20332 : case INTEGER_CST:
8760 : 20332 : {
8761 : 20332 : switch (TREE_CODE (_p1))
8762 : : {
8763 : 61 : case INTEGER_CST:
8764 : 61 : {
8765 : 61 : {
8766 : 61 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
8767 : 61 : tree res = generic_simplify_342 (loc, type, _p0, _p1, captures, MIN_EXPR, GT_EXPR, BIT_AND_EXPR);
8768 : 61 : if (res) return res;
8769 : : }
8770 : 0 : break;
8771 : : }
8772 : : default:;
8773 : : }
8774 : : break;
8775 : : }
8776 : : default:;
8777 : : }
8778 : : break;
8779 : : }
8780 : 854 : case VEC_COND_EXPR:
8781 : 854 : {
8782 : 854 : tree _q20 = TREE_OPERAND (_p0, 0);
8783 : 854 : tree _q21 = TREE_OPERAND (_p0, 1);
8784 : 854 : tree _q22 = TREE_OPERAND (_p0, 2);
8785 : 854 : switch (TREE_CODE (_p1))
8786 : : {
8787 : 14 : case VEC_COND_EXPR:
8788 : 14 : {
8789 : 14 : tree _q60 = TREE_OPERAND (_p1, 0);
8790 : 14 : tree _q61 = TREE_OPERAND (_p1, 1);
8791 : 14 : tree _q62 = TREE_OPERAND (_p1, 2);
8792 : 14 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
8793 : : {
8794 : 0 : {
8795 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
8796 : 0 : if (VECTOR_TYPE_P (type)
8797 : 0 : && (TREE_CODE_CLASS (GT_EXPR) != tcc_comparison
8798 : 0 : || types_match (type, TREE_TYPE (captures[2]))
8799 : 0 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
8800 : : || (optimize_vectors_before_lowering_p ()
8801 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
8802 : : )
8803 : : {
8804 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1805;
8805 : 0 : {
8806 : 0 : tree res_op0;
8807 : 0 : res_op0 = captures[1];
8808 : 0 : tree res_op1;
8809 : 0 : {
8810 : 0 : tree _o1[2], _r1;
8811 : 0 : _o1[0] = captures[2];
8812 : 0 : _o1[1] = captures[5];
8813 : 0 : _r1 = fold_build2_loc (loc, GT_EXPR, type, _o1[0], _o1[1]);
8814 : 0 : if (EXPR_P (_r1))
8815 : 0 : goto next_after_fail1805;
8816 : 0 : res_op1 = _r1;
8817 : : }
8818 : 0 : tree res_op2;
8819 : 0 : {
8820 : 0 : tree _o1[2], _r1;
8821 : 0 : _o1[0] = captures[3];
8822 : 0 : _o1[1] = captures[6];
8823 : 0 : _r1 = fold_build2_loc (loc, GT_EXPR, type, _o1[0], _o1[1]);
8824 : 0 : if (EXPR_P (_r1))
8825 : 0 : goto next_after_fail1805;
8826 : 0 : res_op2 = _r1;
8827 : : }
8828 : 0 : tree _r;
8829 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
8830 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 909, __FILE__, __LINE__, true);
8831 : 0 : return _r;
8832 : : }
8833 : 0 : next_after_fail1805:;
8834 : : }
8835 : : }
8836 : : }
8837 : : break;
8838 : : }
8839 : 854 : default:;
8840 : : }
8841 : 854 : {
8842 : 854 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
8843 : 854 : if (VECTOR_TYPE_P (type)
8844 : 854 : && (TREE_CODE_CLASS (GT_EXPR) != tcc_comparison
8845 : 854 : || types_match (type, TREE_TYPE (captures[2]))
8846 : 854 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
8847 : : || (optimize_vectors_before_lowering_p ()
8848 : 10 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
8849 : : )
8850 : : {
8851 : 854 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1806;
8852 : 854 : {
8853 : 854 : if (! tree_invariant_p (captures[4])) goto next_after_fail1806;
8854 : 9 : tree res_op0;
8855 : 9 : res_op0 = captures[1];
8856 : 9 : tree res_op1;
8857 : 9 : {
8858 : 9 : tree _o1[2], _r1;
8859 : 9 : _o1[0] = captures[2];
8860 : 9 : _o1[1] = unshare_expr (captures[4]);
8861 : 9 : _r1 = fold_build2_loc (loc, GT_EXPR, type, _o1[0], _o1[1]);
8862 : 9 : if (EXPR_P (_r1))
8863 : 6 : goto next_after_fail1806;
8864 : 3 : res_op1 = _r1;
8865 : : }
8866 : 3 : tree res_op2;
8867 : 3 : {
8868 : 3 : tree _o1[2], _r1;
8869 : 3 : _o1[0] = captures[3];
8870 : 3 : _o1[1] = captures[4];
8871 : 3 : _r1 = fold_build2_loc (loc, GT_EXPR, type, _o1[0], _o1[1]);
8872 : 3 : if (EXPR_P (_r1))
8873 : 3 : goto next_after_fail1806;
8874 : 0 : res_op2 = _r1;
8875 : : }
8876 : 0 : tree _r;
8877 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
8878 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 910, __FILE__, __LINE__, true);
8879 : 0 : return _r;
8880 : : }
8881 : 854 : next_after_fail1806:;
8882 : : }
8883 : : }
8884 : 854 : break;
8885 : : }
8886 : 17459397 : default:;
8887 : : }
8888 : 17459397 : switch (TREE_CODE (_p1))
8889 : : {
8890 : 74 : case VEC_COND_EXPR:
8891 : 74 : {
8892 : 74 : tree _q30 = TREE_OPERAND (_p1, 0);
8893 : 74 : tree _q31 = TREE_OPERAND (_p1, 1);
8894 : 74 : tree _q32 = TREE_OPERAND (_p1, 2);
8895 : 74 : {
8896 : 74 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
8897 : 74 : if (VECTOR_TYPE_P (type)
8898 : 74 : && (TREE_CODE_CLASS (GT_EXPR) != tcc_comparison
8899 : 74 : || types_match (type, TREE_TYPE (captures[3]))
8900 : 74 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
8901 : : || (optimize_vectors_before_lowering_p ()
8902 : 7 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
8903 : : )
8904 : : {
8905 : 74 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1807;
8906 : 74 : {
8907 : 74 : if (! tree_invariant_p (captures[0])) goto next_after_fail1807;
8908 : 0 : tree res_op0;
8909 : 0 : res_op0 = captures[2];
8910 : 0 : tree res_op1;
8911 : 0 : {
8912 : 0 : tree _o1[2], _r1;
8913 : 0 : _o1[0] = unshare_expr (captures[0]);
8914 : 0 : _o1[1] = captures[3];
8915 : 0 : _r1 = fold_build2_loc (loc, GT_EXPR, type, _o1[0], _o1[1]);
8916 : 0 : if (EXPR_P (_r1))
8917 : 0 : goto next_after_fail1807;
8918 : 0 : res_op1 = _r1;
8919 : : }
8920 : 0 : tree res_op2;
8921 : 0 : {
8922 : 0 : tree _o1[2], _r1;
8923 : 0 : _o1[0] = captures[0];
8924 : 0 : _o1[1] = captures[4];
8925 : 0 : _r1 = fold_build2_loc (loc, GT_EXPR, type, _o1[0], _o1[1]);
8926 : 0 : if (EXPR_P (_r1))
8927 : 0 : goto next_after_fail1807;
8928 : 0 : res_op2 = _r1;
8929 : : }
8930 : 0 : tree _r;
8931 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
8932 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 911, __FILE__, __LINE__, true);
8933 : 0 : return _r;
8934 : : }
8935 : 74 : next_after_fail1807:;
8936 : : }
8937 : : }
8938 : 74 : break;
8939 : : }
8940 : 17459397 : default:;
8941 : : }
8942 : 17459397 : if (uniform_integer_cst_p (_p1))
8943 : : {
8944 : 12183852 : {
8945 : 12183852 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
8946 : 12183852 : tree res = generic_simplify_361 (loc, type, _p0, _p1, captures, GT_EXPR, GE_EXPR);
8947 : 12183852 : if (res) return res;
8948 : : }
8949 : : }
8950 : 17385991 : switch (TREE_CODE (_p0))
8951 : : {
8952 : 136964 : case MULT_EXPR:
8953 : 136964 : {
8954 : 136964 : tree _q20 = TREE_OPERAND (_p0, 0);
8955 : 136964 : tree _q21 = TREE_OPERAND (_p0, 1);
8956 : 136964 : switch (TREE_CODE (_q21))
8957 : : {
8958 : 96842 : case INTEGER_CST:
8959 : 96842 : {
8960 : 96842 : if (integer_zerop (_p1))
8961 : : {
8962 : 7581 : {
8963 : 7581 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
8964 : 7581 : tree res = generic_simplify_242 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
8965 : 7581 : if (res) return res;
8966 : : }
8967 : : }
8968 : : break;
8969 : : }
8970 : : default:;
8971 : : }
8972 : : break;
8973 : : }
8974 : 17383559 : default:;
8975 : : }
8976 : 17383559 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
8977 : : {
8978 : 1760 : {
8979 : 1760 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
8980 : 1760 : tree res = generic_simplify_294 (loc, type, _p0, _p1, captures, GT_EXPR);
8981 : 1760 : if (res) return res;
8982 : : }
8983 : : }
8984 : 17381799 : switch (TREE_CODE (_p0))
8985 : : {
8986 : 890743 : case BIT_NOT_EXPR:
8987 : 890743 : {
8988 : 890743 : tree _q20 = TREE_OPERAND (_p0, 0);
8989 : 890743 : switch (TREE_CODE (_p1))
8990 : : {
8991 : 10 : case BIT_NOT_EXPR:
8992 : 10 : {
8993 : 10 : tree _q40 = TREE_OPERAND (_p1, 0);
8994 : 10 : {
8995 : 10 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _p1, _q40 };
8996 : 10 : tree res = generic_simplify_248 (loc, type, _p0, _p1, captures, GT_EXPR);
8997 : 10 : if (res) return res;
8998 : : }
8999 : 0 : break;
9000 : : }
9001 : 890733 : default:;
9002 : : }
9003 : 890733 : {
9004 : 890733 : tree _p1_pops[1];
9005 : 890733 : if (tree_nop_convert (_p1, _p1_pops))
9006 : : {
9007 : 2 : tree _q40 = _p1_pops[0];
9008 : 2 : switch (TREE_CODE (_q40))
9009 : : {
9010 : 0 : case BIT_NOT_EXPR:
9011 : 0 : {
9012 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
9013 : 0 : {
9014 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q40, _q50 };
9015 : 0 : tree res = generic_simplify_248 (loc, type, _p0, _p1, captures, GT_EXPR);
9016 : 0 : if (res) return res;
9017 : : }
9018 : 0 : break;
9019 : : }
9020 : : default:;
9021 : : }
9022 : : }
9023 : : }
9024 : 890733 : if (CONSTANT_CLASS_P (_p1))
9025 : : {
9026 : 887348 : {
9027 : 887348 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
9028 : 887348 : tree res = generic_simplify_247 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
9029 : 887348 : if (res) return res;
9030 : : }
9031 : : }
9032 : : break;
9033 : : }
9034 : 16494441 : default:;
9035 : : }
9036 : 16494441 : {
9037 : 16494441 : tree _p0_pops[1];
9038 : 16494441 : if (tree_nop_convert (_p0, _p0_pops))
9039 : : {
9040 : 766413 : tree _q20 = _p0_pops[0];
9041 : 766413 : switch (TREE_CODE (_q20))
9042 : : {
9043 : 0 : case BIT_NOT_EXPR:
9044 : 0 : {
9045 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
9046 : 0 : switch (TREE_CODE (_p1))
9047 : : {
9048 : 0 : case BIT_NOT_EXPR:
9049 : 0 : {
9050 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9051 : 0 : {
9052 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _p1, _q50 };
9053 : 0 : tree res = generic_simplify_246 (loc, type, _p0, _p1, captures, GT_EXPR);
9054 : 0 : if (res) return res;
9055 : : }
9056 : 0 : break;
9057 : : }
9058 : 0 : default:;
9059 : : }
9060 : 0 : {
9061 : 0 : tree _p1_pops[1];
9062 : 0 : if (tree_nop_convert (_p1, _p1_pops))
9063 : : {
9064 : 0 : tree _q50 = _p1_pops[0];
9065 : 0 : switch (TREE_CODE (_q50))
9066 : : {
9067 : 0 : case BIT_NOT_EXPR:
9068 : 0 : {
9069 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
9070 : 0 : {
9071 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q50, _q60 };
9072 : 0 : tree res = generic_simplify_246 (loc, type, _p0, _p1, captures, GT_EXPR);
9073 : 0 : if (res) return res;
9074 : : }
9075 : 0 : break;
9076 : : }
9077 : : default:;
9078 : : }
9079 : : }
9080 : : }
9081 : 0 : if (CONSTANT_CLASS_P (_p1))
9082 : : {
9083 : 0 : {
9084 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
9085 : 0 : tree res = generic_simplify_247 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
9086 : 0 : if (res) return res;
9087 : : }
9088 : : }
9089 : : break;
9090 : : }
9091 : : default:;
9092 : : }
9093 : : }
9094 : : }
9095 : 16494441 : switch (TREE_CODE (_p1))
9096 : : {
9097 : 798045 : case REAL_CST:
9098 : 798045 : {
9099 : 798045 : {
9100 : 798045 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
9101 : 798045 : tree res = generic_simplify_249 (loc, type, _p0, _p1, captures, GT_EXPR);
9102 : 798045 : if (res) return res;
9103 : : }
9104 : 797989 : break;
9105 : : }
9106 : 16494385 : default:;
9107 : : }
9108 : 16494385 : switch (TREE_CODE (_p0))
9109 : : {
9110 : 2084831 : case PLUS_EXPR:
9111 : 2084831 : {
9112 : 2084831 : tree _q20 = TREE_OPERAND (_p0, 0);
9113 : 2084831 : tree _q21 = TREE_OPERAND (_p0, 1);
9114 : 2084831 : switch (TREE_CODE (_q21))
9115 : : {
9116 : 539 : case REAL_CST:
9117 : 539 : {
9118 : 539 : switch (TREE_CODE (_p1))
9119 : : {
9120 : 230 : case REAL_CST:
9121 : 230 : {
9122 : 230 : {
9123 : 230 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
9124 : 230 : tree res = generic_simplify_250 (loc, type, _p0, _p1, captures, PLUS_EXPR, GT_EXPR);
9125 : 230 : if (res) return res;
9126 : : }
9127 : 230 : break;
9128 : : }
9129 : : default:;
9130 : : }
9131 : : break;
9132 : : }
9133 : 1933008 : case INTEGER_CST:
9134 : 1933008 : {
9135 : 1933008 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
9136 : : {
9137 : 1418 : {
9138 : 1418 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q20, _q21 };
9139 : 1418 : tree res = generic_simplify_345 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
9140 : 1418 : if (res) return res;
9141 : : }
9142 : : }
9143 : : break;
9144 : : }
9145 : : default:;
9146 : : }
9147 : : break;
9148 : : }
9149 : 729491 : case MINUS_EXPR:
9150 : 729491 : {
9151 : 729491 : tree _q20 = TREE_OPERAND (_p0, 0);
9152 : 729491 : tree _q21 = TREE_OPERAND (_p0, 1);
9153 : 729491 : switch (TREE_CODE (_q21))
9154 : : {
9155 : 751 : case REAL_CST:
9156 : 751 : {
9157 : 751 : switch (TREE_CODE (_p1))
9158 : : {
9159 : 537 : case REAL_CST:
9160 : 537 : {
9161 : 537 : {
9162 : 537 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
9163 : 537 : tree res = generic_simplify_250 (loc, type, _p0, _p1, captures, MINUS_EXPR, GT_EXPR);
9164 : 537 : if (res) return res;
9165 : : }
9166 : 535 : break;
9167 : : }
9168 : : default:;
9169 : : }
9170 : : break;
9171 : : }
9172 : 729489 : default:;
9173 : : }
9174 : 729489 : switch (TREE_CODE (_q20))
9175 : : {
9176 : 43 : case REAL_CST:
9177 : 43 : {
9178 : 43 : switch (TREE_CODE (_p1))
9179 : : {
9180 : 37 : case REAL_CST:
9181 : 37 : {
9182 : 37 : {
9183 : 37 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
9184 : 37 : tree res = generic_simplify_251 (loc, type, _p0, _p1, captures, GT_EXPR);
9185 : 37 : if (res) return res;
9186 : : }
9187 : 35 : break;
9188 : : }
9189 : : default:;
9190 : : }
9191 : : break;
9192 : : }
9193 : : default:;
9194 : : }
9195 : : break;
9196 : : }
9197 : 42561 : case FLOAT_EXPR:
9198 : 42561 : {
9199 : 42561 : tree _q20 = TREE_OPERAND (_p0, 0);
9200 : 42561 : switch (TREE_CODE (_p1))
9201 : : {
9202 : 30 : case FLOAT_EXPR:
9203 : 30 : {
9204 : 30 : tree _q40 = TREE_OPERAND (_p1, 0);
9205 : 30 : {
9206 : 30 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
9207 : 30 : tree res = generic_simplify_254 (loc, type, _p0, _p1, captures, GT_EXPR, GT_EXPR);
9208 : 30 : if (res) return res;
9209 : : }
9210 : 30 : break;
9211 : : }
9212 : 40751 : case REAL_CST:
9213 : 40751 : {
9214 : 40751 : {
9215 : 40751 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9216 : 40751 : tree res = generic_simplify_255 (loc, type, _p0, _p1, captures, GT_EXPR, GE_EXPR);
9217 : 40751 : if (res) return res;
9218 : : }
9219 : 20552 : break;
9220 : : }
9221 : : default:;
9222 : : }
9223 : : break;
9224 : : }
9225 : 7449 : case EXACT_DIV_EXPR:
9226 : 7449 : {
9227 : 7449 : tree _q20 = TREE_OPERAND (_p0, 0);
9228 : 7449 : tree _q21 = TREE_OPERAND (_p0, 1);
9229 : 7449 : switch (TREE_CODE (_q21))
9230 : : {
9231 : 7449 : case INTEGER_CST:
9232 : 7449 : {
9233 : 7449 : switch (TREE_CODE (_p1))
9234 : : {
9235 : 189 : case INTEGER_CST:
9236 : 189 : {
9237 : 189 : {
9238 : 189 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
9239 : 189 : tree res = generic_simplify_346 (loc, type, _p0, _p1, captures, GT_EXPR);
9240 : 189 : if (res) return res;
9241 : : }
9242 : 0 : break;
9243 : : }
9244 : : default:;
9245 : : }
9246 : : break;
9247 : : }
9248 : : default:;
9249 : : }
9250 : : break;
9251 : : }
9252 : 2057601 : CASE_CONVERT:
9253 : 2057601 : {
9254 : 2057601 : tree _q20 = TREE_OPERAND (_p0, 0);
9255 : 2057601 : switch (TREE_CODE (_q20))
9256 : : {
9257 : 5 : case EXACT_DIV_EXPR:
9258 : 5 : {
9259 : 5 : tree _q30 = TREE_OPERAND (_q20, 0);
9260 : 5 : tree _q31 = TREE_OPERAND (_q20, 1);
9261 : 5 : switch (TREE_CODE (_q31))
9262 : : {
9263 : 5 : case INTEGER_CST:
9264 : 5 : {
9265 : 5 : switch (TREE_CODE (_p1))
9266 : : {
9267 : 0 : case INTEGER_CST:
9268 : 0 : {
9269 : 0 : {
9270 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
9271 : 0 : tree res = generic_simplify_347 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
9272 : 0 : if (res) return res;
9273 : : }
9274 : 0 : break;
9275 : : }
9276 : : default:;
9277 : : }
9278 : : break;
9279 : : }
9280 : : default:;
9281 : : }
9282 : : break;
9283 : : }
9284 : 2057601 : default:;
9285 : : }
9286 : 2057601 : switch (TREE_CODE (_p1))
9287 : : {
9288 : 176224 : CASE_CONVERT:
9289 : 176224 : {
9290 : 176224 : tree _q40 = TREE_OPERAND (_p1, 0);
9291 : 176224 : {
9292 : 176224 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
9293 : 176224 : tree res = generic_simplify_259 (loc, type, _p0, _p1, captures, GT_EXPR);
9294 : 176224 : if (res) return res;
9295 : : }
9296 : 142692 : break;
9297 : : }
9298 : 2024069 : default:;
9299 : : }
9300 : 2024069 : {
9301 : 2024069 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
9302 : 2024069 : tree res = generic_simplify_260 (loc, type, _p0, _p1, captures, GT_EXPR);
9303 : 2024069 : if (res) return res;
9304 : : }
9305 : 1085439 : switch (TREE_CODE (_q20))
9306 : : {
9307 : 401 : case ADDR_EXPR:
9308 : 401 : {
9309 : 401 : switch (TREE_CODE (_p1))
9310 : : {
9311 : 274 : CASE_CONVERT:
9312 : 274 : {
9313 : 274 : tree _q40 = TREE_OPERAND (_p1, 0);
9314 : 274 : switch (TREE_CODE (_q40))
9315 : : {
9316 : 274 : case ADDR_EXPR:
9317 : 274 : {
9318 : 274 : {
9319 : 274 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
9320 : 274 : tree res = generic_simplify_277 (loc, type, _p0, _p1, captures, GT_EXPR);
9321 : 274 : if (res) return res;
9322 : : }
9323 : 207 : break;
9324 : : }
9325 : : default:;
9326 : : }
9327 : : break;
9328 : : }
9329 : 0 : case ADDR_EXPR:
9330 : 0 : {
9331 : 0 : {
9332 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
9333 : 0 : tree res = generic_simplify_277 (loc, type, _p0, _p1, captures, GT_EXPR);
9334 : 0 : if (res) return res;
9335 : : }
9336 : 0 : break;
9337 : : }
9338 : : default:;
9339 : : }
9340 : : break;
9341 : : }
9342 : 1085372 : default:;
9343 : : }
9344 : 1085372 : if (uniform_integer_cst_p (_p1))
9345 : : {
9346 : 298193 : {
9347 : 298193 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
9348 : 298193 : tree res = generic_simplify_348 (loc, type, _p0, _p1, captures, GT_EXPR);
9349 : 298193 : if (res) return res;
9350 : : }
9351 : : }
9352 : : break;
9353 : : }
9354 : 15794 : case BIT_AND_EXPR:
9355 : 15794 : {
9356 : 15794 : tree _q20 = TREE_OPERAND (_p0, 0);
9357 : 15794 : tree _q21 = TREE_OPERAND (_p0, 1);
9358 : 15794 : switch (TREE_CODE (_q21))
9359 : : {
9360 : 14770 : case INTEGER_CST:
9361 : 14770 : {
9362 : 14770 : switch (TREE_CODE (_p1))
9363 : : {
9364 : 9101 : case INTEGER_CST:
9365 : 9101 : {
9366 : 9101 : {
9367 : 9101 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
9368 : 9101 : tree res = generic_simplify_362 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
9369 : 9101 : if (res) return res;
9370 : : }
9371 : 8602 : break;
9372 : : }
9373 : : default:;
9374 : : }
9375 : : break;
9376 : : }
9377 : : default:;
9378 : : }
9379 : : break;
9380 : : }
9381 : 10057 : case NEGATE_EXPR:
9382 : 10057 : {
9383 : 10057 : tree _q20 = TREE_OPERAND (_p0, 0);
9384 : 10057 : switch (TREE_CODE (_p1))
9385 : : {
9386 : 4 : case NEGATE_EXPR:
9387 : 4 : {
9388 : 4 : tree _q40 = TREE_OPERAND (_p1, 0);
9389 : 4 : {
9390 : 4 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
9391 : 4 : tree res = generic_simplify_257 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
9392 : 4 : if (res) return res;
9393 : : }
9394 : 4 : break;
9395 : : }
9396 : 10057 : default:;
9397 : : }
9398 : 10057 : if (CONSTANT_CLASS_P (_p1))
9399 : : {
9400 : 703 : {
9401 : 703 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9402 : 703 : tree res = generic_simplify_258 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
9403 : 703 : if (res) return res;
9404 : : }
9405 : : }
9406 : : break;
9407 : : }
9408 : 4580 : case ADDR_EXPR:
9409 : 4580 : {
9410 : 4580 : switch (TREE_CODE (_p1))
9411 : : {
9412 : 0 : CASE_CONVERT:
9413 : 0 : {
9414 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
9415 : 0 : switch (TREE_CODE (_q30))
9416 : : {
9417 : 0 : case ADDR_EXPR:
9418 : 0 : {
9419 : 0 : {
9420 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q30 };
9421 : 0 : tree res = generic_simplify_278 (loc, type, _p0, _p1, captures, GT_EXPR);
9422 : 0 : if (res) return res;
9423 : : }
9424 : 0 : break;
9425 : : }
9426 : : default:;
9427 : : }
9428 : : break;
9429 : : }
9430 : 4275 : case ADDR_EXPR:
9431 : 4275 : {
9432 : 4275 : {
9433 : 4275 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _p1 };
9434 : 4275 : tree res = generic_simplify_278 (loc, type, _p0, _p1, captures, GT_EXPR);
9435 : 4275 : if (res) return res;
9436 : : }
9437 : 650 : break;
9438 : : }
9439 : : default:;
9440 : : }
9441 : : break;
9442 : : }
9443 : 294332 : case CALL_EXPR:
9444 : 294332 : switch (get_call_combined_fn (_p0))
9445 : : {
9446 : 1 : case CFN_BUILT_IN_SQRTF:
9447 : 1 : if (call_expr_nargs (_p0) == 1)
9448 : : {
9449 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9450 : 1 : switch (TREE_CODE (_p1))
9451 : : {
9452 : 1 : case REAL_CST:
9453 : 1 : {
9454 : 1 : {
9455 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9456 : 1 : tree res = generic_simplify_252 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTF, GT_EXPR);
9457 : 1 : if (res) return res;
9458 : : }
9459 : 0 : break;
9460 : : }
9461 : 0 : case CALL_EXPR:
9462 : 0 : switch (get_call_combined_fn (_p1))
9463 : : {
9464 : 0 : case CFN_BUILT_IN_SQRTF:
9465 : 0 : if (call_expr_nargs (_p1) == 1)
9466 : : {
9467 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9468 : 0 : {
9469 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
9470 : 0 : tree res = generic_simplify_253 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTF, GT_EXPR);
9471 : 0 : if (res) return res;
9472 : : }
9473 : : }
9474 : : break;
9475 : : default:;
9476 : : }
9477 : : break;
9478 : : default:;
9479 : : }
9480 : : }
9481 : : break;
9482 : 0 : case CFN_BUILT_IN_SQRTL:
9483 : 0 : if (call_expr_nargs (_p0) == 1)
9484 : : {
9485 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9486 : 0 : switch (TREE_CODE (_p1))
9487 : : {
9488 : 0 : case REAL_CST:
9489 : 0 : {
9490 : 0 : {
9491 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9492 : 0 : tree res = generic_simplify_252 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTL, GT_EXPR);
9493 : 0 : if (res) return res;
9494 : : }
9495 : 0 : break;
9496 : : }
9497 : 0 : case CALL_EXPR:
9498 : 0 : switch (get_call_combined_fn (_p1))
9499 : : {
9500 : 0 : case CFN_BUILT_IN_SQRTL:
9501 : 0 : if (call_expr_nargs (_p1) == 1)
9502 : : {
9503 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9504 : 0 : {
9505 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
9506 : 0 : tree res = generic_simplify_253 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTL, GT_EXPR);
9507 : 0 : if (res) return res;
9508 : : }
9509 : : }
9510 : : break;
9511 : : default:;
9512 : : }
9513 : : break;
9514 : : default:;
9515 : : }
9516 : : }
9517 : : break;
9518 : 3 : case CFN_BUILT_IN_SQRT:
9519 : 3 : if (call_expr_nargs (_p0) == 1)
9520 : : {
9521 : 3 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9522 : 3 : switch (TREE_CODE (_p1))
9523 : : {
9524 : 3 : case REAL_CST:
9525 : 3 : {
9526 : 3 : {
9527 : 3 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9528 : 3 : tree res = generic_simplify_252 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRT, GT_EXPR);
9529 : 3 : if (res) return res;
9530 : : }
9531 : 0 : break;
9532 : : }
9533 : 0 : case CALL_EXPR:
9534 : 0 : switch (get_call_combined_fn (_p1))
9535 : : {
9536 : 0 : case CFN_BUILT_IN_SQRT:
9537 : 0 : if (call_expr_nargs (_p1) == 1)
9538 : : {
9539 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9540 : 0 : {
9541 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
9542 : 0 : tree res = generic_simplify_253 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRT, GT_EXPR);
9543 : 0 : if (res) return res;
9544 : : }
9545 : : }
9546 : : break;
9547 : : default:;
9548 : : }
9549 : : break;
9550 : : default:;
9551 : : }
9552 : : }
9553 : : break;
9554 : 0 : case CFN_SQRT:
9555 : 0 : if (call_expr_nargs (_p0) == 1)
9556 : : {
9557 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9558 : 0 : switch (TREE_CODE (_p1))
9559 : : {
9560 : 0 : case REAL_CST:
9561 : 0 : {
9562 : 0 : {
9563 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9564 : 0 : tree res = generic_simplify_252 (loc, type, _p0, _p1, captures, CFN_SQRT, GT_EXPR);
9565 : 0 : if (res) return res;
9566 : : }
9567 : 0 : break;
9568 : : }
9569 : 0 : case CALL_EXPR:
9570 : 0 : switch (get_call_combined_fn (_p1))
9571 : : {
9572 : 0 : case CFN_SQRT:
9573 : 0 : if (call_expr_nargs (_p1) == 1)
9574 : : {
9575 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9576 : 0 : {
9577 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
9578 : 0 : tree res = generic_simplify_253 (loc, type, _p0, _p1, captures, CFN_SQRT, GT_EXPR);
9579 : 0 : if (res) return res;
9580 : : }
9581 : : }
9582 : : break;
9583 : : default:;
9584 : : }
9585 : : break;
9586 : : default:;
9587 : : }
9588 : : }
9589 : : break;
9590 : : default:;
9591 : : }
9592 : : break;
9593 : 15467964 : default:;
9594 : : }
9595 : 15467964 : if (uniform_integer_cst_p (_p1))
9596 : : {
9597 : 10253538 : {
9598 : 10253538 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _p1 };
9599 : 10253538 : tree res = generic_simplify_349 (loc, type, _p0, _p1, captures, GT_EXPR);
9600 : 10253538 : if (res) return res;
9601 : : }
9602 : : }
9603 : 14745655 : switch (TREE_CODE (_p0))
9604 : : {
9605 : 1015071 : CASE_CONVERT:
9606 : 1015071 : {
9607 : 1015071 : tree _q20 = TREE_OPERAND (_p0, 0);
9608 : 1015071 : switch (TREE_CODE (_q20))
9609 : : {
9610 : 1 : case NE_EXPR:
9611 : 1 : {
9612 : 1 : tree _q30 = TREE_OPERAND (_q20, 0);
9613 : 1 : tree _q31 = TREE_OPERAND (_q20, 1);
9614 : 1 : if (integer_zerop (_q31))
9615 : : {
9616 : 1 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
9617 : : {
9618 : 1 : {
9619 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _q30 };
9620 : 1 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0]))
9621 : : )
9622 : : {
9623 : 1 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1808;
9624 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1808;
9625 : 1 : {
9626 : 1 : tree _r;
9627 : 1 : _r = constant_boolean_node (false, type);
9628 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1018, __FILE__, __LINE__, true);
9629 : 1 : return _r;
9630 : : }
9631 : : next_after_fail1808:;
9632 : : }
9633 : : }
9634 : : }
9635 : : }
9636 : : break;
9637 : : }
9638 : 45483 : case PLUS_EXPR:
9639 : 45483 : {
9640 : 45483 : tree _q30 = TREE_OPERAND (_q20, 0);
9641 : 45483 : tree _q31 = TREE_OPERAND (_q20, 1);
9642 : 45483 : switch (TREE_CODE (_q30))
9643 : : {
9644 : 33605 : CASE_CONVERT:
9645 : 33605 : {
9646 : 33605 : tree _q40 = TREE_OPERAND (_q30, 0);
9647 : 33605 : switch (TREE_CODE (_q31))
9648 : : {
9649 : 33601 : case INTEGER_CST:
9650 : 33601 : {
9651 : 33601 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
9652 : : {
9653 : 7 : {
9654 : 7 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q40, _q31 };
9655 : 7 : tree res = generic_simplify_350 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
9656 : 7 : if (res) return res;
9657 : : }
9658 : : }
9659 : : break;
9660 : : }
9661 : : default:;
9662 : : }
9663 : : break;
9664 : : }
9665 : : default:;
9666 : : }
9667 : : break;
9668 : : }
9669 : : default:;
9670 : : }
9671 : : break;
9672 : : }
9673 : 14745647 : default:;
9674 : : }
9675 : 14745647 : switch (TREE_CODE (_p1))
9676 : : {
9677 : 558504 : CASE_CONVERT:
9678 : 558504 : {
9679 : 558504 : tree _q30 = TREE_OPERAND (_p1, 0);
9680 : 558504 : switch (TREE_CODE (_q30))
9681 : : {
9682 : 3217 : case PLUS_EXPR:
9683 : 3217 : {
9684 : 3217 : tree _q40 = TREE_OPERAND (_q30, 0);
9685 : 3217 : tree _q41 = TREE_OPERAND (_q30, 1);
9686 : 3217 : switch (TREE_CODE (_q40))
9687 : : {
9688 : 3155 : CASE_CONVERT:
9689 : 3155 : {
9690 : 3155 : tree _q50 = TREE_OPERAND (_q40, 0);
9691 : 3155 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
9692 : : {
9693 : 0 : switch (TREE_CODE (_q41))
9694 : : {
9695 : 0 : case INTEGER_CST:
9696 : 0 : {
9697 : 0 : {
9698 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q30, _q40, _p0, _q41 };
9699 : 0 : tree res = generic_simplify_350 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
9700 : 0 : if (res) return res;
9701 : : }
9702 : 0 : break;
9703 : : }
9704 : : default:;
9705 : : }
9706 : : }
9707 : : break;
9708 : : }
9709 : : default:;
9710 : : }
9711 : : break;
9712 : : }
9713 : : default:;
9714 : : }
9715 : : break;
9716 : : }
9717 : 110886 : case PLUS_EXPR:
9718 : 110886 : {
9719 : 110886 : tree _q30 = TREE_OPERAND (_p1, 0);
9720 : 110886 : tree _q31 = TREE_OPERAND (_p1, 1);
9721 : 110886 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
9722 : : {
9723 : 4 : switch (TREE_CODE (_q31))
9724 : : {
9725 : 4 : case INTEGER_CST:
9726 : 4 : {
9727 : 4 : {
9728 : 4 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _p1, _q30, _p0, _q31 };
9729 : 4 : tree res = generic_simplify_345 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
9730 : 4 : if (res) return res;
9731 : : }
9732 : 0 : break;
9733 : : }
9734 : : default:;
9735 : : }
9736 : : }
9737 : : break;
9738 : : }
9739 : 14745643 : default:;
9740 : : }
9741 : 14745643 : switch (TREE_CODE (_p0))
9742 : : {
9743 : 637760 : case MINUS_EXPR:
9744 : 637760 : {
9745 : 637760 : tree _q20 = TREE_OPERAND (_p0, 0);
9746 : 637760 : tree _q21 = TREE_OPERAND (_p0, 1);
9747 : 637760 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
9748 : : {
9749 : 7271 : {
9750 : 7271 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
9751 : 7271 : tree res = generic_simplify_351 (loc, type, _p0, _p1, captures, GT_EXPR);
9752 : 7271 : if (res) return res;
9753 : : }
9754 : : }
9755 : : break;
9756 : : }
9757 : 14738384 : default:;
9758 : : }
9759 : 14738384 : switch (TREE_CODE (_p1))
9760 : : {
9761 : 110882 : case PLUS_EXPR:
9762 : 110882 : {
9763 : 110882 : tree _q30 = TREE_OPERAND (_p1, 0);
9764 : 110882 : tree _q31 = TREE_OPERAND (_p1, 1);
9765 : 110882 : switch (TREE_CODE (_q30))
9766 : : {
9767 : 3 : case MINUS_EXPR:
9768 : 3 : {
9769 : 3 : tree _q40 = TREE_OPERAND (_q30, 0);
9770 : 3 : tree _q41 = TREE_OPERAND (_q30, 1);
9771 : 3 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
9772 : : {
9773 : 0 : if (integer_minus_onep (_q31))
9774 : : {
9775 : 0 : {
9776 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
9777 : 0 : tree res = generic_simplify_363 (loc, type, _p0, _p1, captures, LT_EXPR);
9778 : 0 : if (res) return res;
9779 : : }
9780 : : }
9781 : : }
9782 : : break;
9783 : : }
9784 : : default:;
9785 : : }
9786 : : break;
9787 : : }
9788 : 14738384 : default:;
9789 : : }
9790 : 14738384 : switch (TREE_CODE (_p0))
9791 : : {
9792 : 83 : case REALPART_EXPR:
9793 : 83 : {
9794 : 83 : tree _q20 = TREE_OPERAND (_p0, 0);
9795 : 83 : switch (TREE_CODE (_q20))
9796 : : {
9797 : 0 : case CALL_EXPR:
9798 : 0 : switch (get_call_combined_fn (_q20))
9799 : : {
9800 : 0 : case CFN_SUB_OVERFLOW:
9801 : 0 : if (call_expr_nargs (_q20) == 2)
9802 : : {
9803 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
9804 : 0 : tree _q31 = CALL_EXPR_ARG (_q20, 1);
9805 : 0 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
9806 : : {
9807 : 0 : {
9808 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
9809 : 0 : tree res = generic_simplify_364 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
9810 : 0 : if (res) return res;
9811 : : }
9812 : : }
9813 : : }
9814 : : break;
9815 : : default:;
9816 : : }
9817 : : break;
9818 : : default:;
9819 : : }
9820 : : break;
9821 : : }
9822 : 14738384 : default:;
9823 : : }
9824 : 14738384 : switch (TREE_CODE (_p1))
9825 : : {
9826 : 20 : case REALPART_EXPR:
9827 : 20 : {
9828 : 20 : tree _q30 = TREE_OPERAND (_p1, 0);
9829 : 20 : switch (TREE_CODE (_q30))
9830 : : {
9831 : 0 : case CALL_EXPR:
9832 : 0 : switch (get_call_combined_fn (_q30))
9833 : : {
9834 : 0 : case CFN_ADD_OVERFLOW:
9835 : 0 : if (call_expr_nargs (_q30) == 2)
9836 : : {
9837 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
9838 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
9839 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
9840 : : {
9841 : 0 : {
9842 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _p0, _q41 };
9843 : 0 : tree res = generic_simplify_365 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
9844 : 0 : if (res) return res;
9845 : : }
9846 : : }
9847 : 0 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
9848 : : {
9849 : 0 : {
9850 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _p0, _q40 };
9851 : 0 : tree res = generic_simplify_365 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
9852 : 0 : if (res) return res;
9853 : : }
9854 : : }
9855 : : }
9856 : : break;
9857 : : default:;
9858 : : }
9859 : : break;
9860 : : default:;
9861 : : }
9862 : : break;
9863 : : }
9864 : 1095 : case TRUNC_DIV_EXPR:
9865 : 1095 : {
9866 : 1095 : tree _q30 = TREE_OPERAND (_p1, 0);
9867 : 1095 : tree _q31 = TREE_OPERAND (_p1, 1);
9868 : 1095 : if (integer_all_onesp (_q30))
9869 : : {
9870 : 0 : {
9871 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q31, _p0 };
9872 : 0 : tree res = generic_simplify_366 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
9873 : 0 : if (res) return res;
9874 : : }
9875 : : }
9876 : : break;
9877 : : }
9878 : 14738384 : default:;
9879 : : }
9880 : 14738384 : switch (TREE_CODE (_p0))
9881 : : {
9882 : 126988 : case MULT_EXPR:
9883 : 126988 : {
9884 : 126988 : tree _q20 = TREE_OPERAND (_p0, 0);
9885 : 126988 : tree _q21 = TREE_OPERAND (_p0, 1);
9886 : 126988 : switch (TREE_CODE (_q21))
9887 : : {
9888 : 23647 : case REAL_CST:
9889 : 23647 : {
9890 : 23647 : switch (TREE_CODE (_p1))
9891 : : {
9892 : 59 : case REAL_CST:
9893 : 59 : {
9894 : 59 : {
9895 : 59 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
9896 : 59 : tree res = generic_simplify_356 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
9897 : 59 : if (res) return res;
9898 : : }
9899 : 58 : break;
9900 : : }
9901 : : default:;
9902 : : }
9903 : : break;
9904 : : }
9905 : : default:;
9906 : : }
9907 : : break;
9908 : : }
9909 : 1967405 : case PLUS_EXPR:
9910 : 1967405 : {
9911 : 1967405 : tree _q20 = TREE_OPERAND (_p0, 0);
9912 : 1967405 : tree _q21 = TREE_OPERAND (_p0, 1);
9913 : 1967405 : switch (TREE_CODE (_q21))
9914 : : {
9915 : 1815685 : case INTEGER_CST:
9916 : 1815685 : {
9917 : 1815685 : switch (TREE_CODE (_p1))
9918 : : {
9919 : 1251492 : case INTEGER_CST:
9920 : 1251492 : {
9921 : 1251492 : {
9922 : 1251492 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
9923 : 1251492 : tree res = generic_simplify_357 (loc, type, _p0, _p1, captures, PLUS_EXPR, MINUS_EXPR, GT_EXPR, LT_EXPR);
9924 : 1251492 : if (res) return res;
9925 : : }
9926 : 806116 : break;
9927 : : }
9928 : : default:;
9929 : : }
9930 : : break;
9931 : : }
9932 : : default:;
9933 : : }
9934 : : break;
9935 : : }
9936 : 630501 : case MINUS_EXPR:
9937 : 630501 : {
9938 : 630501 : tree _q20 = TREE_OPERAND (_p0, 0);
9939 : 630501 : tree _q21 = TREE_OPERAND (_p0, 1);
9940 : 630501 : switch (TREE_CODE (_q21))
9941 : : {
9942 : 2221 : case INTEGER_CST:
9943 : 2221 : {
9944 : 2221 : switch (TREE_CODE (_p1))
9945 : : {
9946 : 2073 : case INTEGER_CST:
9947 : 2073 : {
9948 : 2073 : {
9949 : 2073 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
9950 : 2073 : tree res = generic_simplify_357 (loc, type, _p0, _p1, captures, MINUS_EXPR, PLUS_EXPR, GT_EXPR, LT_EXPR);
9951 : 2073 : if (res) return res;
9952 : : }
9953 : 1905 : break;
9954 : : }
9955 : : default:;
9956 : : }
9957 : : break;
9958 : : }
9959 : 630333 : default:;
9960 : : }
9961 : 630333 : switch (TREE_CODE (_q20))
9962 : : {
9963 : 540233 : case INTEGER_CST:
9964 : 540233 : {
9965 : 540233 : switch (TREE_CODE (_p1))
9966 : : {
9967 : 537433 : case INTEGER_CST:
9968 : 537433 : {
9969 : 537433 : {
9970 : 537433 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
9971 : 537433 : tree res = generic_simplify_284 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
9972 : 537433 : if (res) return res;
9973 : : }
9974 : 0 : break;
9975 : : }
9976 : : default:;
9977 : : }
9978 : : break;
9979 : : }
9980 : : default:;
9981 : : }
9982 : : break;
9983 : : }
9984 : 285515 : case CALL_EXPR:
9985 : 285515 : switch (get_call_combined_fn (_p0))
9986 : : {
9987 : 4 : case CFN_BUILT_IN_CTZ:
9988 : 4 : if (call_expr_nargs (_p0) == 1)
9989 : : {
9990 : 4 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9991 : 4 : switch (TREE_CODE (_p1))
9992 : : {
9993 : 4 : case INTEGER_CST:
9994 : 4 : {
9995 : 4 : {
9996 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
9997 : 4 : tree res = generic_simplify_358 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR, CFN_BUILT_IN_CTZ);
9998 : 4 : if (res) return res;
9999 : : }
10000 : 0 : break;
10001 : : }
10002 : : default:;
10003 : : }
10004 : : }
10005 : : break;
10006 : 12 : case CFN_BUILT_IN_FFS:
10007 : 12 : if (call_expr_nargs (_p0) == 1)
10008 : : {
10009 : 12 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10010 : 12 : switch (TREE_CODE (_p1))
10011 : : {
10012 : 12 : case INTEGER_CST:
10013 : 12 : {
10014 : 12 : {
10015 : 12 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10016 : 12 : tree res = generic_simplify_369 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, EQ_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_FFS);
10017 : 12 : if (res) return res;
10018 : : }
10019 : 6 : break;
10020 : : }
10021 : : default:;
10022 : : }
10023 : : }
10024 : : break;
10025 : 0 : case CFN_BUILT_IN_FFSIMAX:
10026 : 0 : if (call_expr_nargs (_p0) == 1)
10027 : : {
10028 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10029 : 0 : switch (TREE_CODE (_p1))
10030 : : {
10031 : 0 : case INTEGER_CST:
10032 : 0 : {
10033 : 0 : {
10034 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10035 : 0 : tree res = generic_simplify_369 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, EQ_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_FFSIMAX);
10036 : 0 : if (res) return res;
10037 : : }
10038 : 0 : break;
10039 : : }
10040 : : default:;
10041 : : }
10042 : : }
10043 : : break;
10044 : 75 : case CFN_BUILT_IN_POPCOUNT:
10045 : 75 : if (call_expr_nargs (_p0) == 1)
10046 : : {
10047 : 75 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10048 : 75 : if (integer_zerop (_p1))
10049 : : {
10050 : 36 : {
10051 : 36 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
10052 : 36 : tree res = generic_simplify_289 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, CFN_BUILT_IN_POPCOUNT);
10053 : 36 : if (res) return res;
10054 : : }
10055 : : }
10056 : : }
10057 : : break;
10058 : 2 : case CFN_BUILT_IN_CTZL:
10059 : 2 : if (call_expr_nargs (_p0) == 1)
10060 : : {
10061 : 2 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10062 : 2 : switch (TREE_CODE (_p1))
10063 : : {
10064 : 2 : case INTEGER_CST:
10065 : 2 : {
10066 : 2 : {
10067 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10068 : 2 : tree res = generic_simplify_358 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR, CFN_BUILT_IN_CTZL);
10069 : 2 : if (res) return res;
10070 : : }
10071 : 0 : break;
10072 : : }
10073 : : default:;
10074 : : }
10075 : : }
10076 : : break;
10077 : 8 : case CFN_BUILT_IN_FFSL:
10078 : 8 : if (call_expr_nargs (_p0) == 1)
10079 : : {
10080 : 8 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10081 : 8 : switch (TREE_CODE (_p1))
10082 : : {
10083 : 8 : case INTEGER_CST:
10084 : 8 : {
10085 : 8 : {
10086 : 8 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10087 : 8 : tree res = generic_simplify_369 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, EQ_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_FFSL);
10088 : 8 : if (res) return res;
10089 : : }
10090 : 4 : break;
10091 : : }
10092 : : default:;
10093 : : }
10094 : : }
10095 : : break;
10096 : 3 : case CFN_BUILT_IN_POPCOUNTLL:
10097 : 3 : if (call_expr_nargs (_p0) == 1)
10098 : : {
10099 : 3 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10100 : 3 : if (integer_zerop (_p1))
10101 : : {
10102 : 0 : {
10103 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
10104 : 0 : tree res = generic_simplify_289 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, CFN_BUILT_IN_POPCOUNTLL);
10105 : 0 : if (res) return res;
10106 : : }
10107 : : }
10108 : : }
10109 : : break;
10110 : 0 : case CFN_BUILT_IN_CTZIMAX:
10111 : 0 : if (call_expr_nargs (_p0) == 1)
10112 : : {
10113 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10114 : 0 : switch (TREE_CODE (_p1))
10115 : : {
10116 : 0 : case INTEGER_CST:
10117 : 0 : {
10118 : 0 : {
10119 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10120 : 0 : tree res = generic_simplify_358 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR, CFN_BUILT_IN_CTZIMAX);
10121 : 0 : if (res) return res;
10122 : : }
10123 : 0 : break;
10124 : : }
10125 : : default:;
10126 : : }
10127 : : }
10128 : : break;
10129 : 0 : case CFN_POPCOUNT:
10130 : 0 : if (call_expr_nargs (_p0) == 1)
10131 : : {
10132 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10133 : 0 : if (integer_zerop (_p1))
10134 : : {
10135 : 0 : {
10136 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
10137 : 0 : tree res = generic_simplify_289 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, CFN_POPCOUNT);
10138 : 0 : if (res) return res;
10139 : : }
10140 : : }
10141 : : }
10142 : : break;
10143 : 0 : case CFN_CTZ:
10144 : 0 : if (call_expr_nargs (_p0) == 2)
10145 : : {
10146 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10147 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
10148 : 0 : switch (TREE_CODE (_p1))
10149 : : {
10150 : 0 : case INTEGER_CST:
10151 : 0 : {
10152 : 0 : {
10153 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
10154 : 0 : tree res = generic_simplify_359 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
10155 : 0 : if (res) return res;
10156 : : }
10157 : 0 : break;
10158 : : }
10159 : : default:;
10160 : : }
10161 : : }
10162 : 0 : if (call_expr_nargs (_p0) == 1)
10163 : : {
10164 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10165 : 0 : switch (TREE_CODE (_p1))
10166 : : {
10167 : 0 : case INTEGER_CST:
10168 : 0 : {
10169 : 0 : {
10170 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10171 : 0 : tree res = generic_simplify_358 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR, CFN_CTZ);
10172 : 0 : if (res) return res;
10173 : : }
10174 : 0 : break;
10175 : : }
10176 : : default:;
10177 : : }
10178 : : }
10179 : : break;
10180 : 0 : case CFN_FFS:
10181 : 0 : if (call_expr_nargs (_p0) == 1)
10182 : : {
10183 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10184 : 0 : switch (TREE_CODE (_p1))
10185 : : {
10186 : 0 : case INTEGER_CST:
10187 : 0 : {
10188 : 0 : {
10189 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10190 : 0 : tree res = generic_simplify_369 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, EQ_EXPR, BIT_AND_EXPR, CFN_FFS);
10191 : 0 : if (res) return res;
10192 : : }
10193 : 0 : break;
10194 : : }
10195 : : default:;
10196 : : }
10197 : : }
10198 : : break;
10199 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
10200 : 0 : if (call_expr_nargs (_p0) == 1)
10201 : : {
10202 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10203 : 0 : if (integer_zerop (_p1))
10204 : : {
10205 : 0 : {
10206 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
10207 : 0 : tree res = generic_simplify_289 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
10208 : 0 : if (res) return res;
10209 : : }
10210 : : }
10211 : : }
10212 : : break;
10213 : 3 : case CFN_BUILT_IN_POPCOUNTL:
10214 : 3 : if (call_expr_nargs (_p0) == 1)
10215 : : {
10216 : 3 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10217 : 3 : if (integer_zerop (_p1))
10218 : : {
10219 : 0 : {
10220 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
10221 : 0 : tree res = generic_simplify_289 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, CFN_BUILT_IN_POPCOUNTL);
10222 : 0 : if (res) return res;
10223 : : }
10224 : : }
10225 : : }
10226 : : break;
10227 : 18 : case CFN_BUILT_IN_CTZLL:
10228 : 18 : if (call_expr_nargs (_p0) == 1)
10229 : : {
10230 : 18 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10231 : 18 : switch (TREE_CODE (_p1))
10232 : : {
10233 : 18 : case INTEGER_CST:
10234 : 18 : {
10235 : 18 : {
10236 : 18 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10237 : 18 : tree res = generic_simplify_358 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR, CFN_BUILT_IN_CTZLL);
10238 : 18 : if (res) return res;
10239 : : }
10240 : 16 : break;
10241 : : }
10242 : : default:;
10243 : : }
10244 : : }
10245 : : break;
10246 : 9 : case CFN_BUILT_IN_FFSLL:
10247 : 9 : if (call_expr_nargs (_p0) == 1)
10248 : : {
10249 : 9 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10250 : 9 : switch (TREE_CODE (_p1))
10251 : : {
10252 : 9 : case INTEGER_CST:
10253 : 9 : {
10254 : 9 : {
10255 : 9 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10256 : 9 : tree res = generic_simplify_369 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, EQ_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_FFSLL);
10257 : 9 : if (res) return res;
10258 : : }
10259 : 4 : break;
10260 : : }
10261 : : default:;
10262 : : }
10263 : : }
10264 : : break;
10265 : : default:;
10266 : : }
10267 : : break;
10268 : : default:;
10269 : : }
10270 : : return NULL_TREE;
10271 : : }
10272 : :
10273 : : tree
10274 : 6616811 : generic_simplify_BIT_AND_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
10275 : : {
10276 : 6616811 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
10277 : 6616811 : switch (TREE_CODE (_p0))
10278 : : {
10279 : 35522 : case LSHIFT_EXPR:
10280 : 35522 : {
10281 : 35522 : tree _q20 = TREE_OPERAND (_p0, 0);
10282 : 35522 : tree _q21 = TREE_OPERAND (_p0, 1);
10283 : 35522 : switch (TREE_CODE (_p1))
10284 : : {
10285 : 1 : case LSHIFT_EXPR:
10286 : 1 : {
10287 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
10288 : 1 : tree _q51 = TREE_OPERAND (_p1, 1);
10289 : 1 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10290 : : {
10291 : 1 : {
10292 : 1 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
10293 : 1 : tree res = generic_simplify_65 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10294 : 1 : if (res) return res;
10295 : : }
10296 : : }
10297 : : break;
10298 : : }
10299 : : default:;
10300 : : }
10301 : : break;
10302 : : }
10303 : 72708 : case RSHIFT_EXPR:
10304 : 72708 : {
10305 : 72708 : tree _q20 = TREE_OPERAND (_p0, 0);
10306 : 72708 : tree _q21 = TREE_OPERAND (_p0, 1);
10307 : 72708 : switch (TREE_CODE (_p1))
10308 : : {
10309 : 2 : case RSHIFT_EXPR:
10310 : 2 : {
10311 : 2 : tree _q50 = TREE_OPERAND (_p1, 0);
10312 : 2 : tree _q51 = TREE_OPERAND (_p1, 1);
10313 : 2 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10314 : : {
10315 : 2 : {
10316 : 2 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
10317 : 2 : tree res = generic_simplify_66 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10318 : 2 : if (res) return res;
10319 : : }
10320 : : }
10321 : : break;
10322 : : }
10323 : : default:;
10324 : : }
10325 : : break;
10326 : : }
10327 : 1918107 : CASE_CONVERT:
10328 : 1918107 : {
10329 : 1918107 : tree _q20 = TREE_OPERAND (_p0, 0);
10330 : 1918107 : switch (TREE_CODE (_p1))
10331 : : {
10332 : 794154 : CASE_CONVERT:
10333 : 794154 : {
10334 : 794154 : tree _q40 = TREE_OPERAND (_p1, 0);
10335 : 794154 : {
10336 : 794154 : tree _q40_pops[1];
10337 : 794154 : if (tree_maybe_bit_not (_q40, _q40_pops))
10338 : : {
10339 : 250 : tree _q50 = _q40_pops[0];
10340 : 250 : {
10341 : 250 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q50 };
10342 : 250 : tree res = generic_simplify_403 (loc, type, _p0, _p1, captures);
10343 : 250 : if (res) return res;
10344 : : }
10345 : : }
10346 : : }
10347 : 794154 : break;
10348 : : }
10349 : 1918107 : default:;
10350 : : }
10351 : 1918107 : {
10352 : 1918107 : tree _q20_pops[1];
10353 : 1918107 : if (tree_maybe_bit_not (_q20, _q20_pops))
10354 : : {
10355 : 435 : tree _q30 = _q20_pops[0];
10356 : 435 : switch (TREE_CODE (_p1))
10357 : : {
10358 : 254 : CASE_CONVERT:
10359 : 254 : {
10360 : 254 : tree _q50 = TREE_OPERAND (_p1, 0);
10361 : 254 : {
10362 : 254 : tree captures[2] ATTRIBUTE_UNUSED = { _q50, _q30 };
10363 : 254 : tree res = generic_simplify_403 (loc, type, _p0, _p1, captures);
10364 : 254 : if (res) return res;
10365 : : }
10366 : 254 : break;
10367 : : }
10368 : : default:;
10369 : : }
10370 : : }
10371 : : }
10372 : 1918107 : break;
10373 : : }
10374 : 6616808 : default:;
10375 : : }
10376 : 6616808 : {
10377 : 6616808 : tree _p1_pops[1];
10378 : 6616808 : if (tree_maybe_bit_not (_p1, _p1_pops))
10379 : : {
10380 : 4751295 : tree _q30 = _p1_pops[0];
10381 : 4751295 : {
10382 : 4751295 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
10383 : 4751295 : tree res = generic_simplify_403 (loc, type, _p0, _p1, captures);
10384 : 4751295 : if (res) return res;
10385 : : }
10386 : : }
10387 : : }
10388 : 6616792 : {
10389 : 6616792 : tree _p0_pops[1];
10390 : 6616792 : if (tree_maybe_bit_not (_p0, _p0_pops))
10391 : : {
10392 : 50388 : tree _q20 = _p0_pops[0];
10393 : 50388 : {
10394 : 50388 : tree captures[2] ATTRIBUTE_UNUSED = { _p1, _q20 };
10395 : 50388 : tree res = generic_simplify_403 (loc, type, _p0, _p1, captures);
10396 : 50388 : if (res) return res;
10397 : : }
10398 : : }
10399 : : }
10400 : 6616695 : switch (TREE_CODE (_p1))
10401 : : {
10402 : 20580 : case PLUS_EXPR:
10403 : 20580 : {
10404 : 20580 : tree _q30 = TREE_OPERAND (_p1, 0);
10405 : 20580 : tree _q31 = TREE_OPERAND (_p1, 1);
10406 : 20580 : switch (TREE_CODE (_q30))
10407 : : {
10408 : 163 : case LSHIFT_EXPR:
10409 : 163 : {
10410 : 163 : tree _q40 = TREE_OPERAND (_q30, 0);
10411 : 163 : tree _q41 = TREE_OPERAND (_q30, 1);
10412 : 163 : if (integer_onep (_q40))
10413 : : {
10414 : 163 : if (integer_minus_onep (_q31))
10415 : : {
10416 : 163 : {
10417 : 163 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q41 };
10418 : 163 : if (TYPE_UNSIGNED (type)
10419 : : )
10420 : : {
10421 : 163 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1841;
10422 : 163 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1841;
10423 : 163 : {
10424 : 163 : tree res_op0;
10425 : 163 : res_op0 = captures[0];
10426 : 163 : tree res_op1;
10427 : 163 : {
10428 : 163 : tree _o1[1], _r1;
10429 : 163 : {
10430 : 163 : tree _o2[2], _r2;
10431 : 163 : _o2[0] = build_all_ones_cst (type);
10432 : 163 : _o2[1] = captures[3];
10433 : 163 : _r2 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
10434 : 163 : _o1[0] = _r2;
10435 : : }
10436 : 163 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
10437 : 163 : res_op1 = _r1;
10438 : : }
10439 : 163 : tree _r;
10440 : 163 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
10441 : 163 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1029, __FILE__, __LINE__, true);
10442 : 163 : return _r;
10443 : : }
10444 : 0 : next_after_fail1841:;
10445 : : }
10446 : : }
10447 : : }
10448 : : }
10449 : : break;
10450 : : }
10451 : : default:;
10452 : : }
10453 : : break;
10454 : : }
10455 : 6616532 : default:;
10456 : : }
10457 : 6616532 : switch (TREE_CODE (_p0))
10458 : : {
10459 : 304601 : case PLUS_EXPR:
10460 : 304601 : {
10461 : 304601 : tree _q20 = TREE_OPERAND (_p0, 0);
10462 : 304601 : tree _q21 = TREE_OPERAND (_p0, 1);
10463 : 304601 : switch (TREE_CODE (_q20))
10464 : : {
10465 : 169 : case LSHIFT_EXPR:
10466 : 169 : {
10467 : 169 : tree _q30 = TREE_OPERAND (_q20, 0);
10468 : 169 : tree _q31 = TREE_OPERAND (_q20, 1);
10469 : 169 : if (integer_onep (_q30))
10470 : : {
10471 : 162 : if (integer_minus_onep (_q21))
10472 : : {
10473 : 162 : {
10474 : 162 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _p0, _q20, _q31 };
10475 : 162 : if (TYPE_UNSIGNED (type)
10476 : : )
10477 : : {
10478 : 134 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1842;
10479 : 134 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1842;
10480 : 134 : {
10481 : 134 : tree res_op0;
10482 : 134 : res_op0 = captures[0];
10483 : 134 : tree res_op1;
10484 : 134 : {
10485 : 134 : tree _o1[1], _r1;
10486 : 134 : {
10487 : 134 : tree _o2[2], _r2;
10488 : 134 : _o2[0] = build_all_ones_cst (type);
10489 : 134 : _o2[1] = captures[3];
10490 : 134 : _r2 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
10491 : 134 : _o1[0] = _r2;
10492 : : }
10493 : 134 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
10494 : 134 : res_op1 = _r1;
10495 : : }
10496 : 134 : tree _r;
10497 : 134 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
10498 : 134 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1029, __FILE__, __LINE__, true);
10499 : 134 : return _r;
10500 : : }
10501 : 28 : next_after_fail1842:;
10502 : : }
10503 : : }
10504 : : }
10505 : : }
10506 : : break;
10507 : : }
10508 : : default:;
10509 : : }
10510 : : break;
10511 : : }
10512 : 1756 : case EQ_EXPR:
10513 : 1756 : {
10514 : 1756 : tree _q20 = TREE_OPERAND (_p0, 0);
10515 : 1756 : tree _q21 = TREE_OPERAND (_p0, 1);
10516 : 1756 : if (integer_zerop (_q21))
10517 : : {
10518 : 694 : switch (TREE_CODE (_p1))
10519 : : {
10520 : 53 : case EQ_EXPR:
10521 : 53 : {
10522 : 53 : tree _q50 = TREE_OPERAND (_p1, 0);
10523 : 53 : tree _q51 = TREE_OPERAND (_p1, 1);
10524 : 53 : if (integer_zerop (_q51))
10525 : : {
10526 : 22 : {
10527 : 22 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
10528 : 22 : tree res = generic_simplify_67 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, EQ_EXPR);
10529 : 22 : if (res) return res;
10530 : : }
10531 : : }
10532 : : break;
10533 : : }
10534 : : default:;
10535 : : }
10536 : : }
10537 : 1734 : if (integer_all_onesp (_q21))
10538 : : {
10539 : 0 : switch (TREE_CODE (_p1))
10540 : : {
10541 : 0 : case EQ_EXPR:
10542 : 0 : {
10543 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
10544 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
10545 : 0 : if (integer_all_onesp (_q51))
10546 : : {
10547 : 0 : {
10548 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
10549 : 0 : tree res = generic_simplify_68 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, EQ_EXPR);
10550 : 0 : if (res) return res;
10551 : : }
10552 : : }
10553 : : break;
10554 : : }
10555 : : default:;
10556 : : }
10557 : : }
10558 : 1734 : switch (TREE_CODE (_p1))
10559 : : {
10560 : 8 : case BIT_IOR_EXPR:
10561 : 8 : {
10562 : 8 : tree _q50 = TREE_OPERAND (_p1, 0);
10563 : 8 : tree _q51 = TREE_OPERAND (_p1, 1);
10564 : 8 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
10565 : : {
10566 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10567 : : {
10568 : 0 : {
10569 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10570 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures);
10571 : 0 : if (res) return res;
10572 : : }
10573 : : }
10574 : : }
10575 : 8 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
10576 : : {
10577 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
10578 : : {
10579 : 0 : {
10580 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
10581 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures);
10582 : 0 : if (res) return res;
10583 : : }
10584 : : }
10585 : : }
10586 : : break;
10587 : : }
10588 : 1734 : default:;
10589 : : }
10590 : 1734 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
10591 : : {
10592 : 12 : {
10593 : 12 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10594 : 12 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures);
10595 : 12 : if (res) return res;
10596 : : }
10597 : : }
10598 : 1734 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
10599 : : {
10600 : 8 : {
10601 : 8 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
10602 : 8 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures);
10603 : 8 : if (res) return res;
10604 : : }
10605 : : }
10606 : : break;
10607 : : }
10608 : 1596 : case BIT_IOR_EXPR:
10609 : 1596 : {
10610 : 1596 : tree _q20 = TREE_OPERAND (_p0, 0);
10611 : 1596 : tree _q21 = TREE_OPERAND (_p0, 1);
10612 : 1596 : switch (TREE_CODE (_p1))
10613 : : {
10614 : 169 : case BIT_NOT_EXPR:
10615 : 169 : {
10616 : 169 : tree _q50 = TREE_OPERAND (_p1, 0);
10617 : 169 : switch (TREE_CODE (_q50))
10618 : : {
10619 : 6 : case BIT_XOR_EXPR:
10620 : 6 : {
10621 : 6 : tree _q60 = TREE_OPERAND (_q50, 0);
10622 : 6 : tree _q61 = TREE_OPERAND (_q50, 1);
10623 : 6 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
10624 : : {
10625 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
10626 : : {
10627 : 0 : {
10628 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10629 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures);
10630 : 0 : if (res) return res;
10631 : : }
10632 : : }
10633 : : }
10634 : 6 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
10635 : : {
10636 : 0 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
10637 : : {
10638 : 0 : {
10639 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10640 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures);
10641 : 0 : if (res) return res;
10642 : : }
10643 : : }
10644 : : }
10645 : : break;
10646 : : }
10647 : : default:;
10648 : : }
10649 : : break;
10650 : : }
10651 : 24 : case EQ_EXPR:
10652 : 24 : {
10653 : 24 : tree _q50 = TREE_OPERAND (_p1, 0);
10654 : 24 : tree _q51 = TREE_OPERAND (_p1, 1);
10655 : 24 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
10656 : : {
10657 : 8 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10658 : : {
10659 : 8 : {
10660 : 8 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10661 : 8 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures);
10662 : 8 : if (res) return res;
10663 : : }
10664 : : }
10665 : : }
10666 : 24 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
10667 : : {
10668 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
10669 : : {
10670 : 0 : {
10671 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10672 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures);
10673 : 0 : if (res) return res;
10674 : : }
10675 : : }
10676 : : }
10677 : : break;
10678 : : }
10679 : 1596 : default:;
10680 : : }
10681 : 1596 : {
10682 : 1596 : tree _p1_pops[1];
10683 : 1596 : if (tree_nop_convert (_p1, _p1_pops))
10684 : : {
10685 : 139 : tree _q50 = _p1_pops[0];
10686 : 139 : switch (TREE_CODE (_q50))
10687 : : {
10688 : 0 : case EQ_EXPR:
10689 : 0 : {
10690 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
10691 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
10692 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
10693 : : {
10694 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
10695 : : {
10696 : 0 : {
10697 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10698 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures);
10699 : 0 : if (res) return res;
10700 : : }
10701 : : }
10702 : : }
10703 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
10704 : : {
10705 : 0 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
10706 : : {
10707 : 0 : {
10708 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10709 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures);
10710 : 0 : if (res) return res;
10711 : : }
10712 : : }
10713 : : }
10714 : : break;
10715 : : }
10716 : : default:;
10717 : : }
10718 : : }
10719 : : }
10720 : 1596 : break;
10721 : : }
10722 : 46674 : case BIT_NOT_EXPR:
10723 : 46674 : {
10724 : 46674 : tree _q20 = TREE_OPERAND (_p0, 0);
10725 : 46674 : switch (TREE_CODE (_q20))
10726 : : {
10727 : 140 : case BIT_XOR_EXPR:
10728 : 140 : {
10729 : 140 : tree _q30 = TREE_OPERAND (_q20, 0);
10730 : 140 : tree _q31 = TREE_OPERAND (_q20, 1);
10731 : 140 : switch (TREE_CODE (_p1))
10732 : : {
10733 : 48 : case BIT_IOR_EXPR:
10734 : 48 : {
10735 : 48 : tree _q60 = TREE_OPERAND (_p1, 0);
10736 : 48 : tree _q61 = TREE_OPERAND (_p1, 1);
10737 : 48 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
10738 : : {
10739 : 6 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
10740 : : {
10741 : 0 : {
10742 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
10743 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures);
10744 : 0 : if (res) return res;
10745 : : }
10746 : : }
10747 : : }
10748 : 48 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q31, 0) && types_match (_q60, _q31)))
10749 : : {
10750 : 3 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
10751 : : {
10752 : 0 : {
10753 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q31, _q30 };
10754 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures);
10755 : 0 : if (res) return res;
10756 : : }
10757 : : }
10758 : : }
10759 : : break;
10760 : : }
10761 : 140 : default:;
10762 : : }
10763 : 140 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
10764 : : {
10765 : 1 : {
10766 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
10767 : 1 : tree res = generic_simplify_407 (loc, type, _p0, _p1, captures);
10768 : 1 : if (res) return res;
10769 : : }
10770 : : }
10771 : 139 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
10772 : : {
10773 : 0 : {
10774 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q31, _q30 };
10775 : 0 : tree res = generic_simplify_407 (loc, type, _p0, _p1, captures);
10776 : 0 : if (res) return res;
10777 : : }
10778 : : }
10779 : : break;
10780 : : }
10781 : : default:;
10782 : : }
10783 : : break;
10784 : : }
10785 : 6616375 : default:;
10786 : : }
10787 : 6616375 : {
10788 : 6616375 : tree _p0_pops[1];
10789 : 6616375 : if (tree_nop_convert (_p0, _p0_pops))
10790 : : {
10791 : 1296033 : tree _q20 = _p0_pops[0];
10792 : 1296033 : switch (TREE_CODE (_q20))
10793 : : {
10794 : 0 : case EQ_EXPR:
10795 : 0 : {
10796 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
10797 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
10798 : 0 : switch (TREE_CODE (_p1))
10799 : : {
10800 : 0 : case BIT_IOR_EXPR:
10801 : 0 : {
10802 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
10803 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
10804 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
10805 : : {
10806 : 0 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
10807 : : {
10808 : 0 : {
10809 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
10810 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures);
10811 : 0 : if (res) return res;
10812 : : }
10813 : : }
10814 : : }
10815 : 0 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q31, 0) && types_match (_q60, _q31)))
10816 : : {
10817 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
10818 : : {
10819 : 0 : {
10820 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q31, _q30 };
10821 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures);
10822 : 0 : if (res) return res;
10823 : : }
10824 : : }
10825 : : }
10826 : : break;
10827 : : }
10828 : 0 : default:;
10829 : : }
10830 : 0 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
10831 : : {
10832 : 0 : {
10833 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
10834 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures);
10835 : 0 : if (res) return res;
10836 : : }
10837 : : }
10838 : 0 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
10839 : : {
10840 : 0 : {
10841 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q31, _q30 };
10842 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures);
10843 : 0 : if (res) return res;
10844 : : }
10845 : : }
10846 : : break;
10847 : : }
10848 : : default:;
10849 : : }
10850 : : }
10851 : : }
10852 : 6616375 : switch (TREE_CODE (_p1))
10853 : : {
10854 : 33513 : case BIT_NOT_EXPR:
10855 : 33513 : {
10856 : 33513 : tree _q30 = TREE_OPERAND (_p1, 0);
10857 : 33513 : switch (TREE_CODE (_q30))
10858 : : {
10859 : 6 : case BIT_XOR_EXPR:
10860 : 6 : {
10861 : 6 : tree _q40 = TREE_OPERAND (_q30, 0);
10862 : 6 : tree _q41 = TREE_OPERAND (_q30, 1);
10863 : 6 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
10864 : : {
10865 : 0 : {
10866 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
10867 : 0 : tree res = generic_simplify_407 (loc, type, _p0, _p1, captures);
10868 : 0 : if (res) return res;
10869 : : }
10870 : : }
10871 : 6 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
10872 : : {
10873 : 0 : {
10874 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q40 };
10875 : 0 : tree res = generic_simplify_407 (loc, type, _p0, _p1, captures);
10876 : 0 : if (res) return res;
10877 : : }
10878 : : }
10879 : : break;
10880 : : }
10881 : : default:;
10882 : : }
10883 : : break;
10884 : : }
10885 : 6616375 : default:;
10886 : : }
10887 : 6616375 : switch (TREE_CODE (_p0))
10888 : : {
10889 : 304467 : case PLUS_EXPR:
10890 : 304467 : {
10891 : 304467 : tree _q20 = TREE_OPERAND (_p0, 0);
10892 : 304467 : tree _q21 = TREE_OPERAND (_p0, 1);
10893 : 304467 : if (integer_minus_onep (_q21))
10894 : : {
10895 : 117300 : switch (TREE_CODE (_p1))
10896 : : {
10897 : 11005 : case NEGATE_EXPR:
10898 : 11005 : {
10899 : 11005 : tree _q50 = TREE_OPERAND (_p1, 0);
10900 : 11005 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
10901 : : {
10902 : 9 : {
10903 : 9 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
10904 : 9 : tree res = generic_simplify_75 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10905 : 9 : if (res) return res;
10906 : : }
10907 : : }
10908 : : break;
10909 : : }
10910 : : default:;
10911 : : }
10912 : : }
10913 : : break;
10914 : : }
10915 : 46795 : case NEGATE_EXPR:
10916 : 46795 : {
10917 : 46795 : tree _q20 = TREE_OPERAND (_p0, 0);
10918 : 46795 : switch (TREE_CODE (_p1))
10919 : : {
10920 : 26 : case PLUS_EXPR:
10921 : 26 : {
10922 : 26 : tree _q40 = TREE_OPERAND (_p1, 0);
10923 : 26 : tree _q41 = TREE_OPERAND (_p1, 1);
10924 : 26 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
10925 : : {
10926 : 0 : if (integer_minus_onep (_q41))
10927 : : {
10928 : 0 : {
10929 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
10930 : 0 : tree res = generic_simplify_76 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10931 : 0 : if (res) return res;
10932 : : }
10933 : : }
10934 : : }
10935 : : break;
10936 : : }
10937 : 0 : case MINUS_EXPR:
10938 : 0 : {
10939 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
10940 : 0 : tree _q41 = TREE_OPERAND (_p1, 1);
10941 : 0 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
10942 : : {
10943 : 0 : if (integer_onep (_q41))
10944 : : {
10945 : 0 : {
10946 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
10947 : 0 : tree res = generic_simplify_77 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10948 : 0 : if (res) return res;
10949 : : }
10950 : : }
10951 : : }
10952 : : break;
10953 : : }
10954 : : default:;
10955 : : }
10956 : : break;
10957 : : }
10958 : 699280 : case MINUS_EXPR:
10959 : 699280 : {
10960 : 699280 : tree _q20 = TREE_OPERAND (_p0, 0);
10961 : 699280 : tree _q21 = TREE_OPERAND (_p0, 1);
10962 : 699280 : if (integer_onep (_q21))
10963 : : {
10964 : 1984 : switch (TREE_CODE (_p1))
10965 : : {
10966 : 0 : case NEGATE_EXPR:
10967 : 0 : {
10968 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
10969 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
10970 : : {
10971 : 0 : {
10972 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
10973 : 0 : tree res = generic_simplify_78 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10974 : 0 : if (res) return res;
10975 : : }
10976 : : }
10977 : : break;
10978 : : }
10979 : : default:;
10980 : : }
10981 : : }
10982 : : break;
10983 : : }
10984 : 6616366 : default:;
10985 : : }
10986 : 6616366 : switch (TREE_CODE (_p1))
10987 : : {
10988 : 1852 : case EQ_EXPR:
10989 : 1852 : {
10990 : 1852 : tree _q30 = TREE_OPERAND (_p1, 0);
10991 : 1852 : tree _q31 = TREE_OPERAND (_p1, 1);
10992 : 1852 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
10993 : : {
10994 : 1 : {
10995 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
10996 : 1 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures);
10997 : 1 : if (res) return res;
10998 : : }
10999 : : }
11000 : 1852 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
11001 : : {
11002 : 0 : {
11003 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
11004 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures);
11005 : 0 : if (res) return res;
11006 : : }
11007 : : }
11008 : : break;
11009 : : }
11010 : 257 : case BIT_XOR_EXPR:
11011 : 257 : {
11012 : 257 : tree _q30 = TREE_OPERAND (_p1, 0);
11013 : 257 : tree _q31 = TREE_OPERAND (_p1, 1);
11014 : 257 : {
11015 : 257 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q31 };
11016 : 257 : tree res = generic_simplify_408 (loc, type, _p0, _p1, captures);
11017 : 257 : if (res) return res;
11018 : : }
11019 : 256 : {
11020 : 256 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q31, _q30 };
11021 : 256 : tree res = generic_simplify_408 (loc, type, _p0, _p1, captures);
11022 : 256 : if (res) return res;
11023 : : }
11024 : 256 : break;
11025 : : }
11026 : 6616365 : default:;
11027 : : }
11028 : 6616365 : {
11029 : 6616365 : tree _p1_pops[1];
11030 : 6616365 : if (tree_nop_convert (_p1, _p1_pops))
11031 : : {
11032 : 911135 : tree _q30 = _p1_pops[0];
11033 : 911135 : switch (TREE_CODE (_q30))
11034 : : {
11035 : 0 : case EQ_EXPR:
11036 : 0 : {
11037 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
11038 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
11039 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
11040 : : {
11041 : 0 : {
11042 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
11043 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures);
11044 : 0 : if (res) return res;
11045 : : }
11046 : : }
11047 : 0 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
11048 : : {
11049 : 0 : {
11050 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q40 };
11051 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures);
11052 : 0 : if (res) return res;
11053 : : }
11054 : : }
11055 : : break;
11056 : : }
11057 : : default:;
11058 : : }
11059 : : }
11060 : : }
11061 : 6616365 : switch (TREE_CODE (_p0))
11062 : : {
11063 : 20971 : case BIT_XOR_EXPR:
11064 : 20971 : {
11065 : 20971 : tree _q20 = TREE_OPERAND (_p0, 0);
11066 : 20971 : tree _q21 = TREE_OPERAND (_p0, 1);
11067 : 20971 : {
11068 : 20971 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q21 };
11069 : 20971 : tree res = generic_simplify_408 (loc, type, _p0, _p1, captures);
11070 : 20971 : if (res) return res;
11071 : : }
11072 : 20971 : {
11073 : 20971 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q21, _q20 };
11074 : 20971 : tree res = generic_simplify_408 (loc, type, _p0, _p1, captures);
11075 : 20971 : if (res) return res;
11076 : : }
11077 : 20971 : switch (TREE_CODE (_p1))
11078 : : {
11079 : 152 : case BIT_XOR_EXPR:
11080 : 152 : {
11081 : 152 : tree _q50 = TREE_OPERAND (_p1, 0);
11082 : 152 : tree _q51 = TREE_OPERAND (_p1, 1);
11083 : 152 : switch (TREE_CODE (_q50))
11084 : : {
11085 : 3 : case BIT_XOR_EXPR:
11086 : 3 : {
11087 : 3 : tree _q60 = TREE_OPERAND (_q50, 0);
11088 : 3 : tree _q61 = TREE_OPERAND (_q50, 1);
11089 : 3 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
11090 : : {
11091 : 2 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
11092 : : {
11093 : 1 : {
11094 : 1 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q61 };
11095 : 1 : tree res = generic_simplify_409 (loc, type, _p0, _p1, captures);
11096 : 1 : if (res) return res;
11097 : : }
11098 : : }
11099 : : }
11100 : 2 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
11101 : : {
11102 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
11103 : : {
11104 : 0 : {
11105 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q60 };
11106 : 0 : tree res = generic_simplify_409 (loc, type, _p0, _p1, captures);
11107 : 0 : if (res) return res;
11108 : : }
11109 : : }
11110 : : }
11111 : 2 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
11112 : : {
11113 : 1 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
11114 : : {
11115 : 1 : {
11116 : 1 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q61 };
11117 : 1 : tree res = generic_simplify_409 (loc, type, _p0, _p1, captures);
11118 : 1 : if (res) return res;
11119 : : }
11120 : : }
11121 : : }
11122 : 1 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
11123 : : {
11124 : 1 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
11125 : : {
11126 : 0 : {
11127 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q60 };
11128 : 0 : tree res = generic_simplify_409 (loc, type, _p0, _p1, captures);
11129 : 0 : if (res) return res;
11130 : : }
11131 : : }
11132 : : }
11133 : : break;
11134 : : }
11135 : 150 : default:;
11136 : : }
11137 : 150 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
11138 : : {
11139 : 47 : switch (TREE_CODE (_q51))
11140 : : {
11141 : 0 : case BIT_XOR_EXPR:
11142 : 0 : {
11143 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
11144 : 0 : tree _q71 = TREE_OPERAND (_q51, 1);
11145 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
11146 : : {
11147 : 0 : {
11148 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q71 };
11149 : 0 : tree res = generic_simplify_409 (loc, type, _p0, _p1, captures);
11150 : 0 : if (res) return res;
11151 : : }
11152 : : }
11153 : 0 : if ((_q71 == _q21 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q21, 0) && types_match (_q71, _q21)))
11154 : : {
11155 : 0 : {
11156 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q70 };
11157 : 0 : tree res = generic_simplify_409 (loc, type, _p0, _p1, captures);
11158 : 0 : if (res) return res;
11159 : : }
11160 : : }
11161 : : break;
11162 : : }
11163 : : default:;
11164 : : }
11165 : : }
11166 : 150 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
11167 : : {
11168 : 0 : switch (TREE_CODE (_q51))
11169 : : {
11170 : 0 : case BIT_XOR_EXPR:
11171 : 0 : {
11172 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
11173 : 0 : tree _q71 = TREE_OPERAND (_q51, 1);
11174 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
11175 : : {
11176 : 0 : {
11177 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q71 };
11178 : 0 : tree res = generic_simplify_409 (loc, type, _p0, _p1, captures);
11179 : 0 : if (res) return res;
11180 : : }
11181 : : }
11182 : 0 : if ((_q71 == _q20 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q20, 0) && types_match (_q71, _q20)))
11183 : : {
11184 : 0 : {
11185 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q70 };
11186 : 0 : tree res = generic_simplify_409 (loc, type, _p0, _p1, captures);
11187 : 0 : if (res) return res;
11188 : : }
11189 : : }
11190 : : break;
11191 : : }
11192 : : default:;
11193 : : }
11194 : : }
11195 : : break;
11196 : : }
11197 : 20969 : default:;
11198 : : }
11199 : 20969 : switch (TREE_CODE (_q20))
11200 : : {
11201 : 11 : case BIT_XOR_EXPR:
11202 : 11 : {
11203 : 11 : tree _q30 = TREE_OPERAND (_q20, 0);
11204 : 11 : tree _q31 = TREE_OPERAND (_q20, 1);
11205 : 11 : switch (TREE_CODE (_p1))
11206 : : {
11207 : 0 : case BIT_XOR_EXPR:
11208 : 0 : {
11209 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
11210 : 0 : tree _q71 = TREE_OPERAND (_p1, 1);
11211 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
11212 : : {
11213 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
11214 : : {
11215 : 0 : {
11216 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q30, _p0, _q20, _q31 };
11217 : 0 : tree res = generic_simplify_410 (loc, type, _p0, _p1, captures);
11218 : 0 : if (res) return res;
11219 : : }
11220 : : }
11221 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
11222 : : {
11223 : 0 : {
11224 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q31, _p0, _q20, _q30 };
11225 : 0 : tree res = generic_simplify_410 (loc, type, _p0, _p1, captures);
11226 : 0 : if (res) return res;
11227 : : }
11228 : : }
11229 : : }
11230 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
11231 : : {
11232 : 0 : if ((_q71 == _q21 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q21, 0) && types_match (_q71, _q21)))
11233 : : {
11234 : 0 : {
11235 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q30, _p0, _q20, _q31 };
11236 : 0 : tree res = generic_simplify_410 (loc, type, _p0, _p1, captures);
11237 : 0 : if (res) return res;
11238 : : }
11239 : : }
11240 : : }
11241 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
11242 : : {
11243 : 0 : if ((_q71 == _q21 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q21, 0) && types_match (_q71, _q21)))
11244 : : {
11245 : 0 : {
11246 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q31, _p0, _q20, _q30 };
11247 : 0 : tree res = generic_simplify_410 (loc, type, _p0, _p1, captures);
11248 : 0 : if (res) return res;
11249 : : }
11250 : : }
11251 : : }
11252 : : break;
11253 : : }
11254 : : default:;
11255 : : }
11256 : : break;
11257 : : }
11258 : 20969 : default:;
11259 : : }
11260 : 20969 : switch (TREE_CODE (_q21))
11261 : : {
11262 : 0 : case BIT_XOR_EXPR:
11263 : 0 : {
11264 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
11265 : 0 : tree _q41 = TREE_OPERAND (_q21, 1);
11266 : 0 : switch (TREE_CODE (_p1))
11267 : : {
11268 : 0 : case BIT_XOR_EXPR:
11269 : 0 : {
11270 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
11271 : 0 : tree _q71 = TREE_OPERAND (_p1, 1);
11272 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
11273 : : {
11274 : 0 : if ((_q71 == _q40 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q40, 0) && types_match (_q71, _q40)))
11275 : : {
11276 : 0 : {
11277 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q40, _p0, _q21, _q41 };
11278 : 0 : tree res = generic_simplify_410 (loc, type, _p0, _p1, captures);
11279 : 0 : if (res) return res;
11280 : : }
11281 : : }
11282 : 0 : if ((_q71 == _q41 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q41, 0) && types_match (_q71, _q41)))
11283 : : {
11284 : 0 : {
11285 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q41, _p0, _q21, _q40 };
11286 : 0 : tree res = generic_simplify_410 (loc, type, _p0, _p1, captures);
11287 : 0 : if (res) return res;
11288 : : }
11289 : : }
11290 : : }
11291 : 0 : if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
11292 : : {
11293 : 0 : if ((_q71 == _q20 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q20, 0) && types_match (_q71, _q20)))
11294 : : {
11295 : 0 : {
11296 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q40, _p0, _q21, _q41 };
11297 : 0 : tree res = generic_simplify_410 (loc, type, _p0, _p1, captures);
11298 : 0 : if (res) return res;
11299 : : }
11300 : : }
11301 : : }
11302 : 0 : if ((_q70 == _q41 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q41, 0) && types_match (_q70, _q41)))
11303 : : {
11304 : 0 : if ((_q71 == _q20 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q20, 0) && types_match (_q71, _q20)))
11305 : : {
11306 : 0 : {
11307 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q41, _p0, _q21, _q40 };
11308 : 0 : tree res = generic_simplify_410 (loc, type, _p0, _p1, captures);
11309 : 0 : if (res) return res;
11310 : : }
11311 : : }
11312 : : }
11313 : : break;
11314 : : }
11315 : : default:;
11316 : : }
11317 : : break;
11318 : : }
11319 : : default:;
11320 : : }
11321 : : break;
11322 : : }
11323 : 46672 : case BIT_NOT_EXPR:
11324 : 46672 : {
11325 : 46672 : tree _q20 = TREE_OPERAND (_p0, 0);
11326 : 46672 : switch (TREE_CODE (_q20))
11327 : : {
11328 : 197 : case SSA_NAME:
11329 : 197 : {
11330 : 197 : switch (TREE_CODE (_p1))
11331 : : {
11332 : 197 : case INTEGER_CST:
11333 : 197 : {
11334 : 197 : {
11335 : 197 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
11336 : 394 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
11337 : 591 : && wi::bit_and_not (get_nonzero_bits (captures[0]), wi::to_wide (captures[1])) == 0
11338 : : )
11339 : : {
11340 : 15 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1843;
11341 : 15 : {
11342 : 15 : tree res_op0;
11343 : 15 : res_op0 = captures[0];
11344 : 15 : tree res_op1;
11345 : 15 : res_op1 = captures[1];
11346 : 15 : tree _r;
11347 : 15 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
11348 : 15 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1030, __FILE__, __LINE__, true);
11349 : 15 : return _r;
11350 : : }
11351 : 0 : next_after_fail1843:;
11352 : : }
11353 : : }
11354 : 182 : break;
11355 : : }
11356 : : default:;
11357 : : }
11358 : : break;
11359 : : }
11360 : : default:;
11361 : : }
11362 : : break;
11363 : : }
11364 : 304458 : case PLUS_EXPR:
11365 : 304458 : {
11366 : 304458 : tree _q20 = TREE_OPERAND (_p0, 0);
11367 : 304458 : tree _q21 = TREE_OPERAND (_p0, 1);
11368 : 304458 : switch (TREE_CODE (_q20))
11369 : : {
11370 : 22 : case BIT_AND_EXPR:
11371 : 22 : {
11372 : 22 : tree _q30 = TREE_OPERAND (_q20, 0);
11373 : 22 : tree _q31 = TREE_OPERAND (_q20, 1);
11374 : 22 : switch (TREE_CODE (_q31))
11375 : : {
11376 : 18 : case INTEGER_CST:
11377 : 18 : {
11378 : 18 : switch (TREE_CODE (_p1))
11379 : : {
11380 : 18 : case INTEGER_CST:
11381 : 18 : {
11382 : 18 : {
11383 : 18 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
11384 : 18 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, PLUS_EXPR);
11385 : 18 : if (res) return res;
11386 : : }
11387 : 12 : break;
11388 : : }
11389 : : default:;
11390 : : }
11391 : : break;
11392 : : }
11393 : : default:;
11394 : : }
11395 : : break;
11396 : : }
11397 : 64 : case BIT_IOR_EXPR:
11398 : 64 : {
11399 : 64 : tree _q30 = TREE_OPERAND (_q20, 0);
11400 : 64 : tree _q31 = TREE_OPERAND (_q20, 1);
11401 : 64 : switch (TREE_CODE (_q31))
11402 : : {
11403 : 52 : case INTEGER_CST:
11404 : 52 : {
11405 : 52 : switch (TREE_CODE (_p1))
11406 : : {
11407 : 52 : case INTEGER_CST:
11408 : 52 : {
11409 : 52 : {
11410 : 52 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
11411 : 52 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, PLUS_EXPR);
11412 : 52 : if (res) return res;
11413 : : }
11414 : 48 : break;
11415 : : }
11416 : : default:;
11417 : : }
11418 : : break;
11419 : : }
11420 : : default:;
11421 : : }
11422 : : break;
11423 : : }
11424 : 24 : case BIT_XOR_EXPR:
11425 : 24 : {
11426 : 24 : tree _q30 = TREE_OPERAND (_q20, 0);
11427 : 24 : tree _q31 = TREE_OPERAND (_q20, 1);
11428 : 24 : switch (TREE_CODE (_q31))
11429 : : {
11430 : 4 : case INTEGER_CST:
11431 : 4 : {
11432 : 4 : switch (TREE_CODE (_p1))
11433 : : {
11434 : 4 : case INTEGER_CST:
11435 : 4 : {
11436 : 4 : {
11437 : 4 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
11438 : 4 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, PLUS_EXPR);
11439 : 4 : if (res) return res;
11440 : : }
11441 : 0 : break;
11442 : : }
11443 : : default:;
11444 : : }
11445 : : break;
11446 : : }
11447 : : default:;
11448 : : }
11449 : : break;
11450 : : }
11451 : 304444 : default:;
11452 : : }
11453 : 304444 : switch (TREE_CODE (_q21))
11454 : : {
11455 : 0 : case BIT_AND_EXPR:
11456 : 0 : {
11457 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
11458 : 0 : tree _q41 = TREE_OPERAND (_q21, 1);
11459 : 0 : switch (TREE_CODE (_q41))
11460 : : {
11461 : 0 : case INTEGER_CST:
11462 : 0 : {
11463 : 0 : switch (TREE_CODE (_p1))
11464 : : {
11465 : 0 : case INTEGER_CST:
11466 : 0 : {
11467 : 0 : {
11468 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q41, _p1 };
11469 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, PLUS_EXPR);
11470 : 0 : if (res) return res;
11471 : : }
11472 : 0 : break;
11473 : : }
11474 : : default:;
11475 : : }
11476 : : break;
11477 : : }
11478 : : default:;
11479 : : }
11480 : : break;
11481 : : }
11482 : 0 : case BIT_IOR_EXPR:
11483 : 0 : {
11484 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
11485 : 0 : tree _q41 = TREE_OPERAND (_q21, 1);
11486 : 0 : switch (TREE_CODE (_q41))
11487 : : {
11488 : 0 : case INTEGER_CST:
11489 : 0 : {
11490 : 0 : switch (TREE_CODE (_p1))
11491 : : {
11492 : 0 : case INTEGER_CST:
11493 : 0 : {
11494 : 0 : {
11495 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q41, _p1 };
11496 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, PLUS_EXPR);
11497 : 0 : if (res) return res;
11498 : : }
11499 : 0 : break;
11500 : : }
11501 : : default:;
11502 : : }
11503 : : break;
11504 : : }
11505 : : default:;
11506 : : }
11507 : : break;
11508 : : }
11509 : 0 : case BIT_XOR_EXPR:
11510 : 0 : {
11511 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
11512 : 0 : tree _q41 = TREE_OPERAND (_q21, 1);
11513 : 0 : switch (TREE_CODE (_q41))
11514 : : {
11515 : 0 : case INTEGER_CST:
11516 : 0 : {
11517 : 0 : switch (TREE_CODE (_p1))
11518 : : {
11519 : 0 : case INTEGER_CST:
11520 : 0 : {
11521 : 0 : {
11522 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q41, _p1 };
11523 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, PLUS_EXPR);
11524 : 0 : if (res) return res;
11525 : : }
11526 : 0 : break;
11527 : : }
11528 : : default:;
11529 : : }
11530 : : break;
11531 : : }
11532 : : default:;
11533 : : }
11534 : : break;
11535 : : }
11536 : 304444 : default:;
11537 : : }
11538 : 304444 : switch (TREE_CODE (_p1))
11539 : : {
11540 : 219571 : case INTEGER_CST:
11541 : 219571 : {
11542 : 219571 : {
11543 : 219571 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
11544 : 219571 : tree res = generic_simplify_413 (loc, type, _p0, _p1, captures, PLUS_EXPR);
11545 : 219571 : if (res) return res;
11546 : : }
11547 : 89705 : break;
11548 : : }
11549 : : default:;
11550 : : }
11551 : : break;
11552 : : }
11553 : 699280 : case MINUS_EXPR:
11554 : 699280 : {
11555 : 699280 : tree _q20 = TREE_OPERAND (_p0, 0);
11556 : 699280 : tree _q21 = TREE_OPERAND (_p0, 1);
11557 : 699280 : switch (TREE_CODE (_q20))
11558 : : {
11559 : 4 : case BIT_AND_EXPR:
11560 : 4 : {
11561 : 4 : tree _q30 = TREE_OPERAND (_q20, 0);
11562 : 4 : tree _q31 = TREE_OPERAND (_q20, 1);
11563 : 4 : switch (TREE_CODE (_q31))
11564 : : {
11565 : 2 : case INTEGER_CST:
11566 : 2 : {
11567 : 2 : switch (TREE_CODE (_p1))
11568 : : {
11569 : 2 : case INTEGER_CST:
11570 : 2 : {
11571 : 2 : {
11572 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
11573 : 2 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, MINUS_EXPR);
11574 : 2 : if (res) return res;
11575 : : }
11576 : 0 : break;
11577 : : }
11578 : : default:;
11579 : : }
11580 : : break;
11581 : : }
11582 : : default:;
11583 : : }
11584 : : break;
11585 : : }
11586 : 4 : case BIT_IOR_EXPR:
11587 : 4 : {
11588 : 4 : tree _q30 = TREE_OPERAND (_q20, 0);
11589 : 4 : tree _q31 = TREE_OPERAND (_q20, 1);
11590 : 4 : switch (TREE_CODE (_q31))
11591 : : {
11592 : 2 : case INTEGER_CST:
11593 : 2 : {
11594 : 2 : switch (TREE_CODE (_p1))
11595 : : {
11596 : 2 : case INTEGER_CST:
11597 : 2 : {
11598 : 2 : {
11599 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
11600 : 2 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, MINUS_EXPR);
11601 : 2 : if (res) return res;
11602 : : }
11603 : 0 : break;
11604 : : }
11605 : : default:;
11606 : : }
11607 : : break;
11608 : : }
11609 : : default:;
11610 : : }
11611 : : break;
11612 : : }
11613 : 4 : case BIT_XOR_EXPR:
11614 : 4 : {
11615 : 4 : tree _q30 = TREE_OPERAND (_q20, 0);
11616 : 4 : tree _q31 = TREE_OPERAND (_q20, 1);
11617 : 4 : switch (TREE_CODE (_q31))
11618 : : {
11619 : 2 : case INTEGER_CST:
11620 : 2 : {
11621 : 2 : switch (TREE_CODE (_p1))
11622 : : {
11623 : 2 : case INTEGER_CST:
11624 : 2 : {
11625 : 2 : {
11626 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
11627 : 2 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, MINUS_EXPR);
11628 : 2 : if (res) return res;
11629 : : }
11630 : 0 : break;
11631 : : }
11632 : : default:;
11633 : : }
11634 : : break;
11635 : : }
11636 : : default:;
11637 : : }
11638 : : break;
11639 : : }
11640 : 699274 : default:;
11641 : : }
11642 : 699274 : switch (TREE_CODE (_q21))
11643 : : {
11644 : 323 : case BIT_AND_EXPR:
11645 : 323 : {
11646 : 323 : tree _q40 = TREE_OPERAND (_q21, 0);
11647 : 323 : tree _q41 = TREE_OPERAND (_q21, 1);
11648 : 323 : switch (TREE_CODE (_q41))
11649 : : {
11650 : 321 : case INTEGER_CST:
11651 : 321 : {
11652 : 321 : switch (TREE_CODE (_p1))
11653 : : {
11654 : 321 : case INTEGER_CST:
11655 : 321 : {
11656 : 321 : {
11657 : 321 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q41, _p1 };
11658 : 321 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, MINUS_EXPR);
11659 : 321 : if (res) return res;
11660 : : }
11661 : 1 : break;
11662 : : }
11663 : : default:;
11664 : : }
11665 : : break;
11666 : : }
11667 : : default:;
11668 : : }
11669 : : break;
11670 : : }
11671 : 4 : case BIT_IOR_EXPR:
11672 : 4 : {
11673 : 4 : tree _q40 = TREE_OPERAND (_q21, 0);
11674 : 4 : tree _q41 = TREE_OPERAND (_q21, 1);
11675 : 4 : switch (TREE_CODE (_q41))
11676 : : {
11677 : 2 : case INTEGER_CST:
11678 : 2 : {
11679 : 2 : switch (TREE_CODE (_p1))
11680 : : {
11681 : 2 : case INTEGER_CST:
11682 : 2 : {
11683 : 2 : {
11684 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q41, _p1 };
11685 : 2 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, MINUS_EXPR);
11686 : 2 : if (res) return res;
11687 : : }
11688 : 0 : break;
11689 : : }
11690 : : default:;
11691 : : }
11692 : : break;
11693 : : }
11694 : : default:;
11695 : : }
11696 : : break;
11697 : : }
11698 : 4 : case BIT_XOR_EXPR:
11699 : 4 : {
11700 : 4 : tree _q40 = TREE_OPERAND (_q21, 0);
11701 : 4 : tree _q41 = TREE_OPERAND (_q21, 1);
11702 : 4 : switch (TREE_CODE (_q41))
11703 : : {
11704 : 2 : case INTEGER_CST:
11705 : 2 : {
11706 : 2 : switch (TREE_CODE (_p1))
11707 : : {
11708 : 2 : case INTEGER_CST:
11709 : 2 : {
11710 : 2 : {
11711 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q41, _p1 };
11712 : 2 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, MINUS_EXPR);
11713 : 2 : if (res) return res;
11714 : : }
11715 : 0 : break;
11716 : : }
11717 : : default:;
11718 : : }
11719 : : break;
11720 : : }
11721 : : default:;
11722 : : }
11723 : : break;
11724 : : }
11725 : 698950 : default:;
11726 : : }
11727 : 698950 : switch (TREE_CODE (_p1))
11728 : : {
11729 : 698748 : case INTEGER_CST:
11730 : 698748 : {
11731 : 698748 : {
11732 : 698748 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
11733 : 698748 : tree res = generic_simplify_413 (loc, type, _p0, _p1, captures, MINUS_EXPR);
11734 : 698748 : if (res) return res;
11735 : : }
11736 : 509235 : break;
11737 : : }
11738 : : default:;
11739 : : }
11740 : : break;
11741 : : }
11742 : 46795 : case NEGATE_EXPR:
11743 : 46795 : {
11744 : 46795 : tree _q20 = TREE_OPERAND (_p0, 0);
11745 : 46795 : switch (TREE_CODE (_q20))
11746 : : {
11747 : 25 : case BIT_AND_EXPR:
11748 : 25 : {
11749 : 25 : tree _q30 = TREE_OPERAND (_q20, 0);
11750 : 25 : tree _q31 = TREE_OPERAND (_q20, 1);
11751 : 25 : switch (TREE_CODE (_q31))
11752 : : {
11753 : 21 : case INTEGER_CST:
11754 : 21 : {
11755 : 21 : switch (TREE_CODE (_p1))
11756 : : {
11757 : 11 : case INTEGER_CST:
11758 : 11 : {
11759 : 11 : {
11760 : 11 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1 };
11761 : 11 : tree res = generic_simplify_414 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
11762 : 11 : if (res) return res;
11763 : : }
11764 : 8 : break;
11765 : : }
11766 : : default:;
11767 : : }
11768 : : break;
11769 : : }
11770 : : default:;
11771 : : }
11772 : : break;
11773 : : }
11774 : 44 : case BIT_IOR_EXPR:
11775 : 44 : {
11776 : 44 : tree _q30 = TREE_OPERAND (_q20, 0);
11777 : 44 : tree _q31 = TREE_OPERAND (_q20, 1);
11778 : 44 : switch (TREE_CODE (_q31))
11779 : : {
11780 : 2 : case INTEGER_CST:
11781 : 2 : {
11782 : 2 : switch (TREE_CODE (_p1))
11783 : : {
11784 : 2 : case INTEGER_CST:
11785 : 2 : {
11786 : 2 : {
11787 : 2 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1 };
11788 : 2 : tree res = generic_simplify_414 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR);
11789 : 2 : if (res) return res;
11790 : : }
11791 : 0 : break;
11792 : : }
11793 : : default:;
11794 : : }
11795 : : break;
11796 : : }
11797 : : default:;
11798 : : }
11799 : : break;
11800 : : }
11801 : 4 : case BIT_XOR_EXPR:
11802 : 4 : {
11803 : 4 : tree _q30 = TREE_OPERAND (_q20, 0);
11804 : 4 : tree _q31 = TREE_OPERAND (_q20, 1);
11805 : 4 : switch (TREE_CODE (_q31))
11806 : : {
11807 : 2 : case INTEGER_CST:
11808 : 2 : {
11809 : 2 : switch (TREE_CODE (_p1))
11810 : : {
11811 : 2 : case INTEGER_CST:
11812 : 2 : {
11813 : 2 : {
11814 : 2 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1 };
11815 : 2 : tree res = generic_simplify_414 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
11816 : 2 : if (res) return res;
11817 : : }
11818 : 0 : break;
11819 : : }
11820 : : default:;
11821 : : }
11822 : : break;
11823 : : }
11824 : : default:;
11825 : : }
11826 : : break;
11827 : : }
11828 : 46788 : default:;
11829 : : }
11830 : 46788 : if (tree_zero_one_valued_p (_q20))
11831 : : {
11832 : 19 : {
11833 : 19 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
11834 : 19 : tree res = generic_simplify_415 (loc, type, _p0, _p1, captures);
11835 : 19 : if (res) return res;
11836 : : }
11837 : : }
11838 : : break;
11839 : : }
11840 : 6296599 : default:;
11841 : : }
11842 : 6296599 : if (integer_zerop (_p1))
11843 : : {
11844 : 3860 : {
11845 : 3860 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
11846 : 3860 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1844;
11847 : 3860 : {
11848 : 3860 : tree _r;
11849 : 3860 : _r = captures[1];
11850 : 3860 : if (TREE_SIDE_EFFECTS (captures[0]))
11851 : 49 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
11852 : 3860 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1031, __FILE__, __LINE__, true);
11853 : 3860 : return _r;
11854 : : }
11855 : 0 : next_after_fail1844:;
11856 : : }
11857 : : }
11858 : 6292739 : if (integer_all_onesp (_p1))
11859 : : {
11860 : 24139 : {
11861 : 24139 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
11862 : 24139 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1845;
11863 : 24139 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1845;
11864 : 24139 : {
11865 : 24139 : tree res_op0;
11866 : 24139 : res_op0 = captures[0];
11867 : 24139 : tree _r;
11868 : 24139 : _r = non_lvalue_loc (loc, res_op0);
11869 : 24139 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1032, __FILE__, __LINE__, true);
11870 : 24139 : return _r;
11871 : : }
11872 : : next_after_fail1845:;
11873 : : }
11874 : : }
11875 : 6268600 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
11876 : : {
11877 : 129 : {
11878 : 129 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
11879 : 129 : tree res = generic_simplify_89 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
11880 : 129 : if (res) return res;
11881 : : }
11882 : : }
11883 : 6268471 : switch (TREE_CODE (_p1))
11884 : : {
11885 : 33513 : case BIT_NOT_EXPR:
11886 : 33513 : {
11887 : 33513 : tree _q30 = TREE_OPERAND (_p1, 0);
11888 : 33513 : switch (TREE_CODE (_q30))
11889 : : {
11890 : 13 : case BIT_AND_EXPR:
11891 : 13 : {
11892 : 13 : tree _q40 = TREE_OPERAND (_q30, 0);
11893 : 13 : tree _q41 = TREE_OPERAND (_q30, 1);
11894 : 13 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
11895 : : {
11896 : 0 : {
11897 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q41 };
11898 : 0 : tree res = generic_simplify_90 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
11899 : 0 : if (res) return res;
11900 : : }
11901 : : }
11902 : 13 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
11903 : : {
11904 : 0 : {
11905 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q40 };
11906 : 0 : tree res = generic_simplify_90 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
11907 : 0 : if (res) return res;
11908 : : }
11909 : : }
11910 : : break;
11911 : : }
11912 : : default:;
11913 : : }
11914 : : break;
11915 : : }
11916 : 6268471 : default:;
11917 : : }
11918 : 6268471 : switch (TREE_CODE (_p0))
11919 : : {
11920 : 46641 : case BIT_NOT_EXPR:
11921 : 46641 : {
11922 : 46641 : tree _q20 = TREE_OPERAND (_p0, 0);
11923 : 46641 : switch (TREE_CODE (_q20))
11924 : : {
11925 : 28 : case BIT_AND_EXPR:
11926 : 28 : {
11927 : 28 : tree _q30 = TREE_OPERAND (_q20, 0);
11928 : 28 : tree _q31 = TREE_OPERAND (_q20, 1);
11929 : 28 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
11930 : : {
11931 : 4 : {
11932 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q20, _q31 };
11933 : 4 : tree res = generic_simplify_90 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
11934 : 4 : if (res) return res;
11935 : : }
11936 : : }
11937 : 24 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
11938 : : {
11939 : 3 : {
11940 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q20, _q30 };
11941 : 3 : tree res = generic_simplify_90 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
11942 : 3 : if (res) return res;
11943 : : }
11944 : : }
11945 : 21 : switch (TREE_CODE (_p1))
11946 : : {
11947 : 0 : case BIT_IOR_EXPR:
11948 : 0 : {
11949 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
11950 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
11951 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
11952 : : {
11953 : 0 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
11954 : : {
11955 : 0 : {
11956 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
11957 : 0 : tree res = generic_simplify_416 (loc, type, _p0, _p1, captures);
11958 : 0 : if (res) return res;
11959 : : }
11960 : : }
11961 : : }
11962 : : break;
11963 : : }
11964 : : default:;
11965 : : }
11966 : : break;
11967 : : }
11968 : 46634 : default:;
11969 : : }
11970 : 46634 : switch (TREE_CODE (_p1))
11971 : : {
11972 : 7636 : CASE_CONVERT:
11973 : 7636 : {
11974 : 7636 : tree _q40 = TREE_OPERAND (_p1, 0);
11975 : 7636 : switch (TREE_CODE (_q40))
11976 : : {
11977 : 0 : case BIT_NOT_EXPR:
11978 : 0 : {
11979 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
11980 : 0 : {
11981 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q50 };
11982 : 0 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
11983 : 0 : if (res) return res;
11984 : : }
11985 : 0 : break;
11986 : : }
11987 : : default:;
11988 : : }
11989 : : break;
11990 : : }
11991 : 44 : case BIT_NOT_EXPR:
11992 : 44 : {
11993 : 44 : tree _q40 = TREE_OPERAND (_p1, 0);
11994 : 44 : {
11995 : 44 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
11996 : 44 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
11997 : 44 : if (res) return res;
11998 : : }
11999 : 0 : break;
12000 : : }
12001 : : default:;
12002 : : }
12003 : : break;
12004 : : }
12005 : 1566 : case BIT_IOR_EXPR:
12006 : 1566 : {
12007 : 1566 : tree _q20 = TREE_OPERAND (_p0, 0);
12008 : 1566 : tree _q21 = TREE_OPERAND (_p0, 1);
12009 : 1566 : switch (TREE_CODE (_p1))
12010 : : {
12011 : 169 : case BIT_NOT_EXPR:
12012 : 169 : {
12013 : 169 : tree _q50 = TREE_OPERAND (_p1, 0);
12014 : 169 : switch (TREE_CODE (_q50))
12015 : : {
12016 : 0 : case BIT_AND_EXPR:
12017 : 0 : {
12018 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
12019 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
12020 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
12021 : : {
12022 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
12023 : : {
12024 : 0 : {
12025 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
12026 : 0 : tree res = generic_simplify_416 (loc, type, _p0, _p1, captures);
12027 : 0 : if (res) return res;
12028 : : }
12029 : : }
12030 : : }
12031 : : break;
12032 : : }
12033 : : default:;
12034 : : }
12035 : : break;
12036 : : }
12037 : 2 : case BIT_XOR_EXPR:
12038 : 2 : {
12039 : 2 : tree _q50 = TREE_OPERAND (_p1, 0);
12040 : 2 : tree _q51 = TREE_OPERAND (_p1, 1);
12041 : 2 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
12042 : : {
12043 : 0 : {
12044 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
12045 : 0 : tree res = generic_simplify_417 (loc, type, _p0, _p1, captures);
12046 : 0 : if (res) return res;
12047 : : }
12048 : : }
12049 : 2 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
12050 : : {
12051 : 2 : {
12052 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
12053 : 2 : tree res = generic_simplify_417 (loc, type, _p0, _p1, captures);
12054 : 2 : if (res) return res;
12055 : : }
12056 : : }
12057 : 2 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
12058 : : {
12059 : 0 : {
12060 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
12061 : 0 : tree res = generic_simplify_417 (loc, type, _p0, _p1, captures);
12062 : 0 : if (res) return res;
12063 : : }
12064 : : }
12065 : 2 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
12066 : : {
12067 : 0 : {
12068 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
12069 : 0 : tree res = generic_simplify_417 (loc, type, _p0, _p1, captures);
12070 : 0 : if (res) return res;
12071 : : }
12072 : : }
12073 : : break;
12074 : : }
12075 : 1566 : default:;
12076 : : }
12077 : 1566 : switch (TREE_CODE (_q20))
12078 : : {
12079 : 127 : case BIT_NOT_EXPR:
12080 : 127 : {
12081 : 127 : tree _q30 = TREE_OPERAND (_q20, 0);
12082 : 127 : switch (TREE_CODE (_p1))
12083 : : {
12084 : 2 : case BIT_IOR_EXPR:
12085 : 2 : {
12086 : 2 : tree _q60 = TREE_OPERAND (_p1, 0);
12087 : 2 : tree _q61 = TREE_OPERAND (_p1, 1);
12088 : 2 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
12089 : : {
12090 : 0 : switch (TREE_CODE (_q61))
12091 : : {
12092 : 0 : case BIT_NOT_EXPR:
12093 : 0 : {
12094 : 0 : tree _q80 = TREE_OPERAND (_q61, 0);
12095 : 0 : if ((_q80 == _q21 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q21, 0) && types_match (_q80, _q21)))
12096 : : {
12097 : 0 : {
12098 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q21, _p1 };
12099 : 0 : tree res = generic_simplify_418 (loc, type, _p0, _p1, captures);
12100 : 0 : if (res) return res;
12101 : : }
12102 : : }
12103 : : break;
12104 : : }
12105 : : default:;
12106 : : }
12107 : : }
12108 : 2 : switch (TREE_CODE (_q60))
12109 : : {
12110 : 2 : case BIT_NOT_EXPR:
12111 : 2 : {
12112 : 2 : tree _q70 = TREE_OPERAND (_q60, 0);
12113 : 2 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
12114 : : {
12115 : 2 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
12116 : : {
12117 : 2 : {
12118 : 2 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q21, _p1 };
12119 : 2 : tree res = generic_simplify_418 (loc, type, _p0, _p1, captures);
12120 : 2 : if (res) return res;
12121 : : }
12122 : : }
12123 : : }
12124 : : break;
12125 : : }
12126 : : default:;
12127 : : }
12128 : : break;
12129 : : }
12130 : : default:;
12131 : : }
12132 : : break;
12133 : : }
12134 : 1564 : default:;
12135 : : }
12136 : 1564 : switch (TREE_CODE (_q21))
12137 : : {
12138 : 0 : case BIT_NOT_EXPR:
12139 : 0 : {
12140 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
12141 : 0 : switch (TREE_CODE (_p1))
12142 : : {
12143 : 0 : case BIT_IOR_EXPR:
12144 : 0 : {
12145 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
12146 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
12147 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
12148 : : {
12149 : 0 : switch (TREE_CODE (_q61))
12150 : : {
12151 : 0 : case BIT_NOT_EXPR:
12152 : 0 : {
12153 : 0 : tree _q80 = TREE_OPERAND (_q61, 0);
12154 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
12155 : : {
12156 : 0 : {
12157 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q40, _q20, _p1 };
12158 : 0 : tree res = generic_simplify_418 (loc, type, _p0, _p1, captures);
12159 : 0 : if (res) return res;
12160 : : }
12161 : : }
12162 : : break;
12163 : : }
12164 : : default:;
12165 : : }
12166 : : }
12167 : 0 : switch (TREE_CODE (_q60))
12168 : : {
12169 : 0 : case BIT_NOT_EXPR:
12170 : 0 : {
12171 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
12172 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
12173 : : {
12174 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
12175 : : {
12176 : 0 : {
12177 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q40, _q20, _p1 };
12178 : 0 : tree res = generic_simplify_418 (loc, type, _p0, _p1, captures);
12179 : 0 : if (res) return res;
12180 : : }
12181 : : }
12182 : : }
12183 : : break;
12184 : : }
12185 : : default:;
12186 : : }
12187 : : break;
12188 : : }
12189 : : default:;
12190 : : }
12191 : : break;
12192 : : }
12193 : : default:;
12194 : : }
12195 : : break;
12196 : : }
12197 : 20913 : case BIT_XOR_EXPR:
12198 : 20913 : {
12199 : 20913 : tree _q20 = TREE_OPERAND (_p0, 0);
12200 : 20913 : tree _q21 = TREE_OPERAND (_p0, 1);
12201 : 20913 : switch (TREE_CODE (_p1))
12202 : : {
12203 : 133 : case BIT_IOR_EXPR:
12204 : 133 : {
12205 : 133 : tree _q50 = TREE_OPERAND (_p1, 0);
12206 : 133 : tree _q51 = TREE_OPERAND (_p1, 1);
12207 : 133 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
12208 : : {
12209 : 18 : {
12210 : 18 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q20, _q21 };
12211 : 18 : tree res = generic_simplify_417 (loc, type, _p0, _p1, captures);
12212 : 18 : if (res) return res;
12213 : : }
12214 : : }
12215 : 133 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
12216 : : {
12217 : 33 : {
12218 : 33 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q21, _q20 };
12219 : 33 : tree res = generic_simplify_417 (loc, type, _p0, _p1, captures);
12220 : 33 : if (res) return res;
12221 : : }
12222 : : }
12223 : 133 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
12224 : : {
12225 : 30 : {
12226 : 30 : tree captures[3] ATTRIBUTE_UNUSED = { _q51, _q20, _q21 };
12227 : 30 : tree res = generic_simplify_417 (loc, type, _p0, _p1, captures);
12228 : 30 : if (res) return res;
12229 : : }
12230 : : }
12231 : 133 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
12232 : : {
12233 : 21 : {
12234 : 21 : tree captures[3] ATTRIBUTE_UNUSED = { _q51, _q21, _q20 };
12235 : 21 : tree res = generic_simplify_417 (loc, type, _p0, _p1, captures);
12236 : 21 : if (res) return res;
12237 : : }
12238 : : }
12239 : : break;
12240 : : }
12241 : 20913 : default:;
12242 : : }
12243 : 20913 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
12244 : : {
12245 : 31 : {
12246 : 31 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
12247 : 31 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_XOR_EXPR);
12248 : 31 : if (res) return res;
12249 : : }
12250 : : }
12251 : 20882 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
12252 : : {
12253 : 2 : {
12254 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
12255 : 2 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_XOR_EXPR);
12256 : 2 : if (res) return res;
12257 : : }
12258 : : }
12259 : : break;
12260 : : }
12261 : 1900558 : CASE_CONVERT:
12262 : 1900558 : {
12263 : 1900558 : tree _q20 = TREE_OPERAND (_p0, 0);
12264 : 1900558 : switch (TREE_CODE (_q20))
12265 : : {
12266 : 172 : case BIT_NOT_EXPR:
12267 : 172 : {
12268 : 172 : tree _q30 = TREE_OPERAND (_q20, 0);
12269 : 172 : switch (TREE_CODE (_p1))
12270 : : {
12271 : 34 : CASE_CONVERT:
12272 : 34 : {
12273 : 34 : tree _q50 = TREE_OPERAND (_p1, 0);
12274 : 34 : switch (TREE_CODE (_q50))
12275 : : {
12276 : 0 : case BIT_NOT_EXPR:
12277 : 0 : {
12278 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
12279 : 0 : {
12280 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q60 };
12281 : 0 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12282 : 0 : if (res) return res;
12283 : : }
12284 : 0 : break;
12285 : : }
12286 : : default:;
12287 : : }
12288 : : break;
12289 : : }
12290 : 1 : case BIT_NOT_EXPR:
12291 : 1 : {
12292 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
12293 : 1 : {
12294 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q50 };
12295 : 1 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12296 : 1 : if (res) return res;
12297 : : }
12298 : 0 : break;
12299 : : }
12300 : : default:;
12301 : : }
12302 : : break;
12303 : : }
12304 : : default:;
12305 : : }
12306 : : break;
12307 : : }
12308 : 6268384 : default:;
12309 : : }
12310 : 6268384 : switch (TREE_CODE (_p1))
12311 : : {
12312 : 254 : case BIT_XOR_EXPR:
12313 : 254 : {
12314 : 254 : tree _q30 = TREE_OPERAND (_p1, 0);
12315 : 254 : tree _q31 = TREE_OPERAND (_p1, 1);
12316 : 254 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
12317 : : {
12318 : 0 : {
12319 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q30, _p0 };
12320 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_XOR_EXPR);
12321 : 0 : if (res) return res;
12322 : : }
12323 : : }
12324 : 254 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
12325 : : {
12326 : 1 : {
12327 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q31, _p0 };
12328 : 1 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_XOR_EXPR);
12329 : 1 : if (res) return res;
12330 : : }
12331 : : }
12332 : : break;
12333 : : }
12334 : 6268383 : default:;
12335 : : }
12336 : 6268383 : switch (TREE_CODE (_p0))
12337 : : {
12338 : 1900557 : CASE_CONVERT:
12339 : 1900557 : {
12340 : 1900557 : tree _q20 = TREE_OPERAND (_p0, 0);
12341 : 1900557 : switch (TREE_CODE (_q20))
12342 : : {
12343 : 171 : case BIT_IOR_EXPR:
12344 : 171 : {
12345 : 171 : tree _q30 = TREE_OPERAND (_q20, 0);
12346 : 171 : tree _q31 = TREE_OPERAND (_q20, 1);
12347 : 171 : switch (TREE_CODE (_p1))
12348 : : {
12349 : 12 : CASE_CONVERT:
12350 : 12 : {
12351 : 12 : tree _q60 = TREE_OPERAND (_p1, 0);
12352 : 12 : switch (TREE_CODE (_q60))
12353 : : {
12354 : 0 : case BIT_IOR_EXPR:
12355 : 0 : {
12356 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
12357 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
12358 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q30, 0))
12359 : : {
12360 : 0 : {
12361 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q71, _q30 };
12362 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12363 : 0 : if (res) return res;
12364 : : }
12365 : : }
12366 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || operand_equal_p (_q71, _q30, 0))
12367 : : {
12368 : 0 : {
12369 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q70, _q30 };
12370 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12371 : 0 : if (res) return res;
12372 : : }
12373 : : }
12374 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q31, 0))
12375 : : {
12376 : 0 : {
12377 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q31, _q30, _q71, _q31 };
12378 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12379 : 0 : if (res) return res;
12380 : : }
12381 : : }
12382 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || operand_equal_p (_q71, _q31, 0))
12383 : : {
12384 : 0 : {
12385 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q31, _q30, _q70, _q31 };
12386 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12387 : 0 : if (res) return res;
12388 : : }
12389 : : }
12390 : : break;
12391 : : }
12392 : : default:;
12393 : : }
12394 : : break;
12395 : : }
12396 : : default:;
12397 : : }
12398 : : break;
12399 : : }
12400 : 40 : case BIT_AND_EXPR:
12401 : 40 : {
12402 : 40 : tree _q30 = TREE_OPERAND (_q20, 0);
12403 : 40 : tree _q31 = TREE_OPERAND (_q20, 1);
12404 : 40 : switch (TREE_CODE (_p1))
12405 : : {
12406 : 0 : CASE_CONVERT:
12407 : 0 : {
12408 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
12409 : 0 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q31, 0))
12410 : : {
12411 : 0 : {
12412 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q31, _q31 };
12413 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12414 : 0 : if (res) return res;
12415 : : }
12416 : : }
12417 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q30, 0))
12418 : : {
12419 : 0 : {
12420 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q31, _q30, _q30 };
12421 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12422 : 0 : if (res) return res;
12423 : : }
12424 : : }
12425 : : break;
12426 : : }
12427 : 40 : default:;
12428 : : }
12429 : 40 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q31, 0))
12430 : : {
12431 : 0 : {
12432 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q31, _q31 };
12433 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12434 : 0 : if (res) return res;
12435 : : }
12436 : : }
12437 : 40 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q30, 0))
12438 : : {
12439 : 0 : {
12440 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q31, _q30, _q30 };
12441 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12442 : 0 : if (res) return res;
12443 : : }
12444 : : }
12445 : : break;
12446 : : }
12447 : 1900557 : default:;
12448 : : }
12449 : 1900557 : switch (TREE_CODE (_p1))
12450 : : {
12451 : 794154 : CASE_CONVERT:
12452 : 794154 : {
12453 : 794154 : tree _q40 = TREE_OPERAND (_p1, 0);
12454 : 794154 : switch (TREE_CODE (_q40))
12455 : : {
12456 : 0 : case BIT_AND_EXPR:
12457 : 0 : {
12458 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
12459 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
12460 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q20, 0))
12461 : : {
12462 : 0 : {
12463 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q50, _q51, _q20 };
12464 : 0 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12465 : 0 : if (res) return res;
12466 : : }
12467 : : }
12468 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
12469 : : {
12470 : 0 : {
12471 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q51, _q50, _q20 };
12472 : 0 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12473 : 0 : if (res) return res;
12474 : : }
12475 : : }
12476 : : break;
12477 : : }
12478 : : default:;
12479 : : }
12480 : : break;
12481 : : }
12482 : 47 : case BIT_AND_EXPR:
12483 : 47 : {
12484 : 47 : tree _q40 = TREE_OPERAND (_p1, 0);
12485 : 47 : tree _q41 = TREE_OPERAND (_p1, 1);
12486 : 47 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _q20, 0))
12487 : : {
12488 : 0 : {
12489 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q40, _q41, _q20 };
12490 : 0 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12491 : 0 : if (res) return res;
12492 : : }
12493 : : }
12494 : 47 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _q20, 0))
12495 : : {
12496 : 0 : {
12497 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q41, _q40, _q20 };
12498 : 0 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12499 : 0 : if (res) return res;
12500 : : }
12501 : : }
12502 : : break;
12503 : : }
12504 : : default:;
12505 : : }
12506 : : break;
12507 : : }
12508 : 1564 : case BIT_IOR_EXPR:
12509 : 1564 : {
12510 : 1564 : tree _q20 = TREE_OPERAND (_p0, 0);
12511 : 1564 : tree _q21 = TREE_OPERAND (_p0, 1);
12512 : 1564 : switch (TREE_CODE (_p1))
12513 : : {
12514 : 9 : case BIT_IOR_EXPR:
12515 : 9 : {
12516 : 9 : tree _q50 = TREE_OPERAND (_p1, 0);
12517 : 9 : tree _q51 = TREE_OPERAND (_p1, 1);
12518 : 9 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
12519 : : {
12520 : 0 : {
12521 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q51, _q20 };
12522 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12523 : 0 : if (res) return res;
12524 : : }
12525 : : }
12526 : 9 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q20, 0))
12527 : : {
12528 : 0 : {
12529 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q50, _q20 };
12530 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12531 : 0 : if (res) return res;
12532 : : }
12533 : : }
12534 : 9 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q21, 0))
12535 : : {
12536 : 0 : {
12537 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q51, _q21 };
12538 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12539 : 0 : if (res) return res;
12540 : : }
12541 : : }
12542 : 9 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q21, 0))
12543 : : {
12544 : 0 : {
12545 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q50, _q21 };
12546 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12547 : 0 : if (res) return res;
12548 : : }
12549 : : }
12550 : : break;
12551 : : }
12552 : : default:;
12553 : : }
12554 : : break;
12555 : : }
12556 : 6268383 : default:;
12557 : : }
12558 : 6268383 : switch (TREE_CODE (_p1))
12559 : : {
12560 : 895506 : CASE_CONVERT:
12561 : 895506 : {
12562 : 895506 : tree _q30 = TREE_OPERAND (_p1, 0);
12563 : 895506 : switch (TREE_CODE (_q30))
12564 : : {
12565 : 8 : case BIT_AND_EXPR:
12566 : 8 : {
12567 : 8 : tree _q40 = TREE_OPERAND (_q30, 0);
12568 : 8 : tree _q41 = TREE_OPERAND (_q30, 1);
12569 : 8 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _p0, 0))
12570 : : {
12571 : 0 : {
12572 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q40, _q41, _p0 };
12573 : 0 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12574 : 0 : if (res) return res;
12575 : : }
12576 : : }
12577 : 8 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _p0, 0))
12578 : : {
12579 : 0 : {
12580 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q41, _q40, _p0 };
12581 : 0 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12582 : 0 : if (res) return res;
12583 : : }
12584 : : }
12585 : : break;
12586 : : }
12587 : : default:;
12588 : : }
12589 : : break;
12590 : : }
12591 : 6268383 : default:;
12592 : : }
12593 : 6268383 : switch (TREE_CODE (_p0))
12594 : : {
12595 : 1591 : case BIT_AND_EXPR:
12596 : 1591 : {
12597 : 1591 : tree _q20 = TREE_OPERAND (_p0, 0);
12598 : 1591 : tree _q21 = TREE_OPERAND (_p0, 1);
12599 : 1591 : switch (TREE_CODE (_p1))
12600 : : {
12601 : 82 : CASE_CONVERT:
12602 : 82 : {
12603 : 82 : tree _q50 = TREE_OPERAND (_p1, 0);
12604 : 82 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q21, 0))
12605 : : {
12606 : 0 : {
12607 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q21 };
12608 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12609 : 0 : if (res) return res;
12610 : : }
12611 : : }
12612 : 82 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
12613 : : {
12614 : 0 : {
12615 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _q20 };
12616 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12617 : 0 : if (res) return res;
12618 : : }
12619 : : }
12620 : : break;
12621 : : }
12622 : 1591 : default:;
12623 : : }
12624 : 1591 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q21, 0))
12625 : : {
12626 : 0 : {
12627 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q21 };
12628 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12629 : 0 : if (res) return res;
12630 : : }
12631 : : }
12632 : 1591 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q20, 0))
12633 : : {
12634 : 0 : {
12635 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _q20 };
12636 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12637 : 0 : if (res) return res;
12638 : : }
12639 : : }
12640 : 1591 : {
12641 : 1591 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
12642 : 1591 : tree res = generic_simplify_419 (loc, type, _p0, _p1, captures);
12643 : 1591 : if (res) return res;
12644 : : }
12645 : 1583 : switch (TREE_CODE (_p1))
12646 : : {
12647 : 82 : CASE_CONVERT:
12648 : 82 : {
12649 : 82 : tree _q50 = TREE_OPERAND (_p1, 0);
12650 : 82 : switch (TREE_CODE (_q50))
12651 : : {
12652 : 8 : case BIT_AND_EXPR:
12653 : 8 : {
12654 : 8 : tree _q60 = TREE_OPERAND (_q50, 0);
12655 : 8 : tree _q61 = TREE_OPERAND (_q50, 1);
12656 : 8 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
12657 : : {
12658 : 0 : {
12659 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1, _q50, _q61 };
12660 : 0 : tree res = generic_simplify_99 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12661 : 0 : if (res) return res;
12662 : : }
12663 : : }
12664 : 8 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
12665 : : {
12666 : 0 : {
12667 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1, _q50, _q60 };
12668 : 0 : tree res = generic_simplify_99 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12669 : 0 : if (res) return res;
12670 : : }
12671 : : }
12672 : 8 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
12673 : : {
12674 : 0 : {
12675 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q21, _q20, _p1, _q50, _q61 };
12676 : 0 : tree res = generic_simplify_99 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12677 : 0 : if (res) return res;
12678 : : }
12679 : : }
12680 : 8 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
12681 : : {
12682 : 0 : {
12683 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q21, _q20, _p1, _q50, _q60 };
12684 : 0 : tree res = generic_simplify_99 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12685 : 0 : if (res) return res;
12686 : : }
12687 : : }
12688 : : break;
12689 : : }
12690 : : default:;
12691 : : }
12692 : : break;
12693 : : }
12694 : 12 : case BIT_AND_EXPR:
12695 : 12 : {
12696 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
12697 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
12698 : 12 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
12699 : : {
12700 : 0 : {
12701 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1, _p1, _q51 };
12702 : 0 : tree res = generic_simplify_100 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12703 : 0 : if (res) return res;
12704 : : }
12705 : : }
12706 : 12 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
12707 : : {
12708 : 0 : {
12709 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1, _p1, _q50 };
12710 : 0 : tree res = generic_simplify_100 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12711 : 0 : if (res) return res;
12712 : : }
12713 : : }
12714 : 12 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
12715 : : {
12716 : 0 : {
12717 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q21, _q20, _p1, _p1, _q51 };
12718 : 0 : tree res = generic_simplify_100 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12719 : 0 : if (res) return res;
12720 : : }
12721 : : }
12722 : 12 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
12723 : : {
12724 : 0 : {
12725 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q21, _q20, _p1, _p1, _q50 };
12726 : 0 : tree res = generic_simplify_100 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12727 : 0 : if (res) return res;
12728 : : }
12729 : : }
12730 : : break;
12731 : : }
12732 : : default:;
12733 : : }
12734 : : break;
12735 : : }
12736 : 6268375 : default:;
12737 : : }
12738 : 6268375 : switch (TREE_CODE (_p1))
12739 : : {
12740 : 76 : case BIT_AND_EXPR:
12741 : 76 : {
12742 : 76 : tree _q30 = TREE_OPERAND (_p1, 0);
12743 : 76 : tree _q31 = TREE_OPERAND (_p1, 1);
12744 : 76 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || operand_equal_p (_q31, _p0, 0))
12745 : : {
12746 : 0 : {
12747 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q30, _q31, _p0 };
12748 : 0 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12749 : 0 : if (res) return res;
12750 : : }
12751 : : }
12752 : 76 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || operand_equal_p (_q30, _p0, 0))
12753 : : {
12754 : 0 : {
12755 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q31, _q30, _p0 };
12756 : 0 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12757 : 0 : if (res) return res;
12758 : : }
12759 : : }
12760 : 76 : {
12761 : 76 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p0 };
12762 : 76 : tree res = generic_simplify_419 (loc, type, _p0, _p1, captures);
12763 : 76 : if (res) return res;
12764 : : }
12765 : 76 : break;
12766 : : }
12767 : 6268375 : default:;
12768 : : }
12769 : 6268375 : switch (TREE_CODE (_p0))
12770 : : {
12771 : 1900557 : CASE_CONVERT:
12772 : 1900557 : {
12773 : 1900557 : tree _q20 = TREE_OPERAND (_p0, 0);
12774 : 1900557 : switch (TREE_CODE (_q20))
12775 : : {
12776 : 40 : case BIT_AND_EXPR:
12777 : 40 : {
12778 : 40 : tree _q30 = TREE_OPERAND (_q20, 0);
12779 : 40 : tree _q31 = TREE_OPERAND (_q20, 1);
12780 : 40 : switch (TREE_CODE (_p1))
12781 : : {
12782 : 0 : CASE_CONVERT:
12783 : 0 : {
12784 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
12785 : 0 : switch (TREE_CODE (_q60))
12786 : : {
12787 : 0 : case BIT_AND_EXPR:
12788 : 0 : {
12789 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
12790 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
12791 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
12792 : : {
12793 : 0 : {
12794 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _q60, _q71 };
12795 : 0 : tree res = generic_simplify_101 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12796 : 0 : if (res) return res;
12797 : : }
12798 : : }
12799 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
12800 : : {
12801 : 0 : {
12802 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _q60, _q70 };
12803 : 0 : tree res = generic_simplify_101 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12804 : 0 : if (res) return res;
12805 : : }
12806 : : }
12807 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
12808 : : {
12809 : 0 : {
12810 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q31, _q30, _p1, _q60, _q71 };
12811 : 0 : tree res = generic_simplify_101 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12812 : 0 : if (res) return res;
12813 : : }
12814 : : }
12815 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
12816 : : {
12817 : 0 : {
12818 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q31, _q30, _p1, _q60, _q70 };
12819 : 0 : tree res = generic_simplify_101 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12820 : 0 : if (res) return res;
12821 : : }
12822 : : }
12823 : : break;
12824 : : }
12825 : : default:;
12826 : : }
12827 : : break;
12828 : : }
12829 : 0 : case BIT_AND_EXPR:
12830 : 0 : {
12831 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
12832 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
12833 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
12834 : : {
12835 : 0 : {
12836 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _p1, _q61 };
12837 : 0 : tree res = generic_simplify_102 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12838 : 0 : if (res) return res;
12839 : : }
12840 : : }
12841 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
12842 : : {
12843 : 0 : {
12844 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _p1, _q60 };
12845 : 0 : tree res = generic_simplify_102 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12846 : 0 : if (res) return res;
12847 : : }
12848 : : }
12849 : 0 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q31, 0) && types_match (_q60, _q31)))
12850 : : {
12851 : 0 : {
12852 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q31, _q30, _p1, _p1, _q61 };
12853 : 0 : tree res = generic_simplify_102 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12854 : 0 : if (res) return res;
12855 : : }
12856 : : }
12857 : 0 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
12858 : : {
12859 : 0 : {
12860 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q31, _q30, _p1, _p1, _q60 };
12861 : 0 : tree res = generic_simplify_102 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12862 : 0 : if (res) return res;
12863 : : }
12864 : : }
12865 : : break;
12866 : : }
12867 : : default:;
12868 : : }
12869 : : break;
12870 : : }
12871 : 1900557 : default:;
12872 : : }
12873 : 1900557 : switch (TREE_CODE (_p1))
12874 : : {
12875 : 794154 : CASE_CONVERT:
12876 : 794154 : {
12877 : 794154 : tree _q40 = TREE_OPERAND (_p1, 0);
12878 : 794154 : {
12879 : 794154 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
12880 : 794154 : tree res = generic_simplify_103 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12881 : 794154 : if (res) return res;
12882 : : }
12883 : 794154 : break;
12884 : : }
12885 : 1900557 : default:;
12886 : : }
12887 : 1900557 : {
12888 : 1900557 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
12889 : 1900557 : tree res = generic_simplify_104 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12890 : 1900557 : if (res) return res;
12891 : : }
12892 : 1900557 : break;
12893 : : }
12894 : 1564 : case BIT_IOR_EXPR:
12895 : 1564 : {
12896 : 1564 : tree _q20 = TREE_OPERAND (_p0, 0);
12897 : 1564 : tree _q21 = TREE_OPERAND (_p0, 1);
12898 : 1564 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
12899 : : {
12900 : 2 : {
12901 : 2 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
12902 : 2 : tree res = generic_simplify_105 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12903 : 2 : if (res) return res;
12904 : : }
12905 : : }
12906 : 1562 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
12907 : : {
12908 : 4 : {
12909 : 4 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
12910 : 4 : tree res = generic_simplify_105 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12911 : 4 : if (res) return res;
12912 : : }
12913 : : }
12914 : 1558 : {
12915 : 1558 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
12916 : 1558 : tree res = generic_simplify_106 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12917 : 1558 : if (res) return res;
12918 : : }
12919 : 1553 : {
12920 : 1553 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _p1 };
12921 : 1553 : tree res = generic_simplify_106 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12922 : 1553 : if (res) return res;
12923 : : }
12924 : 1553 : switch (TREE_CODE (_p1))
12925 : : {
12926 : 1 : case BIT_AND_EXPR:
12927 : 1 : {
12928 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
12929 : 1 : tree _q51 = TREE_OPERAND (_p1, 1);
12930 : 1 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
12931 : : {
12932 : 1 : {
12933 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _p1, _q51 };
12934 : 1 : tree res = generic_simplify_107 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12935 : 1 : if (res) return res;
12936 : : }
12937 : : }
12938 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
12939 : : {
12940 : 0 : {
12941 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _p1, _q50 };
12942 : 0 : tree res = generic_simplify_107 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12943 : 0 : if (res) return res;
12944 : : }
12945 : : }
12946 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
12947 : : {
12948 : 0 : {
12949 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _p1, _q51 };
12950 : 0 : tree res = generic_simplify_107 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12951 : 0 : if (res) return res;
12952 : : }
12953 : : }
12954 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
12955 : : {
12956 : 0 : {
12957 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _p1, _q50 };
12958 : 0 : tree res = generic_simplify_107 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12959 : 0 : if (res) return res;
12960 : : }
12961 : : }
12962 : : break;
12963 : : }
12964 : 168 : case BIT_NOT_EXPR:
12965 : 168 : {
12966 : 168 : tree _q50 = TREE_OPERAND (_p1, 0);
12967 : 168 : switch (TREE_CODE (_q50))
12968 : : {
12969 : 9 : case BIT_IOR_EXPR:
12970 : 9 : {
12971 : 9 : tree _q60 = TREE_OPERAND (_q50, 0);
12972 : 9 : tree _q61 = TREE_OPERAND (_q50, 1);
12973 : 9 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
12974 : : {
12975 : 0 : {
12976 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _p1, _q61 };
12977 : 0 : tree res = generic_simplify_108 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12978 : 0 : if (res) return res;
12979 : : }
12980 : : }
12981 : 9 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
12982 : : {
12983 : 1 : {
12984 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _p1, _q60 };
12985 : 1 : tree res = generic_simplify_108 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12986 : 1 : if (res) return res;
12987 : : }
12988 : : }
12989 : 8 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
12990 : : {
12991 : 0 : {
12992 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _p1, _q61 };
12993 : 0 : tree res = generic_simplify_108 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12994 : 0 : if (res) return res;
12995 : : }
12996 : : }
12997 : 8 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
12998 : : {
12999 : 0 : {
13000 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _p1, _q60 };
13001 : 0 : tree res = generic_simplify_108 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13002 : 0 : if (res) return res;
13003 : : }
13004 : : }
13005 : : break;
13006 : : }
13007 : : default:;
13008 : : }
13009 : : break;
13010 : : }
13011 : : default:;
13012 : : }
13013 : : break;
13014 : : }
13015 : 6268362 : default:;
13016 : : }
13017 : 6268362 : switch (TREE_CODE (_p1))
13018 : : {
13019 : 476 : case BIT_IOR_EXPR:
13020 : 476 : {
13021 : 476 : tree _q30 = TREE_OPERAND (_p1, 0);
13022 : 476 : tree _q31 = TREE_OPERAND (_p1, 1);
13023 : 476 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
13024 : : {
13025 : 0 : {
13026 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
13027 : 0 : tree res = generic_simplify_105 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13028 : 0 : if (res) return res;
13029 : : }
13030 : : }
13031 : 476 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
13032 : : {
13033 : 0 : {
13034 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
13035 : 0 : tree res = generic_simplify_105 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13036 : 0 : if (res) return res;
13037 : : }
13038 : : }
13039 : 476 : {
13040 : 476 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p0 };
13041 : 476 : tree res = generic_simplify_106 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13042 : 476 : if (res) return res;
13043 : : }
13044 : 476 : {
13045 : 476 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _p0 };
13046 : 476 : tree res = generic_simplify_106 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13047 : 476 : if (res) return res;
13048 : : }
13049 : 475 : break;
13050 : : }
13051 : 6268361 : default:;
13052 : : }
13053 : 6268361 : switch (TREE_CODE (_p0))
13054 : : {
13055 : 1583 : case BIT_AND_EXPR:
13056 : 1583 : {
13057 : 1583 : tree _q20 = TREE_OPERAND (_p0, 0);
13058 : 1583 : tree _q21 = TREE_OPERAND (_p0, 1);
13059 : 1583 : switch (TREE_CODE (_p1))
13060 : : {
13061 : 16 : case BIT_IOR_EXPR:
13062 : 16 : {
13063 : 16 : tree _q50 = TREE_OPERAND (_p1, 0);
13064 : 16 : tree _q51 = TREE_OPERAND (_p1, 1);
13065 : 16 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
13066 : : {
13067 : 0 : {
13068 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q51, _p0, _q21 };
13069 : 0 : tree res = generic_simplify_111 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13070 : 0 : if (res) return res;
13071 : : }
13072 : : }
13073 : 16 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
13074 : : {
13075 : 0 : {
13076 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q51, _p0, _q20 };
13077 : 0 : tree res = generic_simplify_111 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13078 : 0 : if (res) return res;
13079 : : }
13080 : : }
13081 : 16 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
13082 : : {
13083 : 0 : {
13084 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q50, _p0, _q21 };
13085 : 0 : tree res = generic_simplify_111 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13086 : 0 : if (res) return res;
13087 : : }
13088 : : }
13089 : 16 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
13090 : : {
13091 : 0 : {
13092 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q50, _p0, _q20 };
13093 : 0 : tree res = generic_simplify_111 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13094 : 0 : if (res) return res;
13095 : : }
13096 : : }
13097 : : break;
13098 : : }
13099 : : default:;
13100 : : }
13101 : : break;
13102 : : }
13103 : 46589 : case BIT_NOT_EXPR:
13104 : 46589 : {
13105 : 46589 : tree _q20 = TREE_OPERAND (_p0, 0);
13106 : 46589 : switch (TREE_CODE (_q20))
13107 : : {
13108 : 11 : case BIT_IOR_EXPR:
13109 : 11 : {
13110 : 11 : tree _q30 = TREE_OPERAND (_q20, 0);
13111 : 11 : tree _q31 = TREE_OPERAND (_q20, 1);
13112 : 11 : switch (TREE_CODE (_p1))
13113 : : {
13114 : 0 : case BIT_IOR_EXPR:
13115 : 0 : {
13116 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
13117 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
13118 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
13119 : : {
13120 : 0 : {
13121 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q60, _q30, _p0, _q31 };
13122 : 0 : tree res = generic_simplify_112 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13123 : 0 : if (res) return res;
13124 : : }
13125 : : }
13126 : 0 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
13127 : : {
13128 : 0 : {
13129 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q60, _q31, _p0, _q30 };
13130 : 0 : tree res = generic_simplify_112 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13131 : 0 : if (res) return res;
13132 : : }
13133 : : }
13134 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
13135 : : {
13136 : 0 : {
13137 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q61, _q30, _p0, _q31 };
13138 : 0 : tree res = generic_simplify_112 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13139 : 0 : if (res) return res;
13140 : : }
13141 : : }
13142 : 0 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q31, 0) && types_match (_q60, _q31)))
13143 : : {
13144 : 0 : {
13145 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q61, _q31, _p0, _q30 };
13146 : 0 : tree res = generic_simplify_112 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13147 : 0 : if (res) return res;
13148 : : }
13149 : : }
13150 : : break;
13151 : : }
13152 : 11 : default:;
13153 : : }
13154 : 11 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
13155 : : {
13156 : 0 : {
13157 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
13158 : 0 : tree res = generic_simplify_113 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13159 : 0 : if (res) return res;
13160 : : }
13161 : : }
13162 : 11 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
13163 : : {
13164 : 1 : {
13165 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q31, _q30 };
13166 : 1 : tree res = generic_simplify_113 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13167 : 1 : if (res) return res;
13168 : : }
13169 : : }
13170 : : break;
13171 : : }
13172 : : default:;
13173 : : }
13174 : : break;
13175 : : }
13176 : 6268360 : default:;
13177 : : }
13178 : 6268360 : switch (TREE_CODE (_p1))
13179 : : {
13180 : 33466 : case BIT_NOT_EXPR:
13181 : 33466 : {
13182 : 33466 : tree _q30 = TREE_OPERAND (_p1, 0);
13183 : 33466 : switch (TREE_CODE (_q30))
13184 : : {
13185 : 8 : case BIT_IOR_EXPR:
13186 : 8 : {
13187 : 8 : tree _q40 = TREE_OPERAND (_q30, 0);
13188 : 8 : tree _q41 = TREE_OPERAND (_q30, 1);
13189 : 8 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
13190 : : {
13191 : 0 : {
13192 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
13193 : 0 : tree res = generic_simplify_113 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13194 : 0 : if (res) return res;
13195 : : }
13196 : : }
13197 : 8 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
13198 : : {
13199 : 0 : {
13200 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q40 };
13201 : 0 : tree res = generic_simplify_113 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13202 : 0 : if (res) return res;
13203 : : }
13204 : : }
13205 : : break;
13206 : : }
13207 : : default:;
13208 : : }
13209 : : break;
13210 : : }
13211 : 6268360 : default:;
13212 : : }
13213 : 6268360 : switch (TREE_CODE (_p0))
13214 : : {
13215 : 1551 : case BIT_IOR_EXPR:
13216 : 1551 : {
13217 : 1551 : tree _q20 = TREE_OPERAND (_p0, 0);
13218 : 1551 : tree _q21 = TREE_OPERAND (_p0, 1);
13219 : 1551 : if (CONSTANT_CLASS_P (_q21))
13220 : : {
13221 : 459 : if (CONSTANT_CLASS_P (_p1))
13222 : : {
13223 : 25 : {
13224 : 25 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
13225 : 25 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1846;
13226 : 25 : {
13227 : 25 : if (! tree_invariant_p (captures[2])) goto next_after_fail1846;
13228 : 25 : tree res_op0;
13229 : 25 : {
13230 : 25 : tree _o1[2], _r1;
13231 : 25 : _o1[0] = captures[0];
13232 : 25 : _o1[1] = unshare_expr (captures[2]);
13233 : 25 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
13234 : 25 : res_op0 = _r1;
13235 : : }
13236 : 25 : tree res_op1;
13237 : 25 : {
13238 : 25 : tree _o1[2], _r1;
13239 : 25 : _o1[0] = captures[1];
13240 : 25 : _o1[1] = captures[2];
13241 : 25 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
13242 : 25 : if (EXPR_P (_r1))
13243 : 0 : goto next_after_fail1846;
13244 : 25 : res_op1 = _r1;
13245 : : }
13246 : 25 : tree _r;
13247 : 25 : _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
13248 : 25 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1033, __FILE__, __LINE__, true);
13249 : 25 : return _r;
13250 : : }
13251 : 0 : next_after_fail1846:;
13252 : : }
13253 : : }
13254 : : }
13255 : : break;
13256 : : }
13257 : 1583 : case BIT_AND_EXPR:
13258 : 1583 : {
13259 : 1583 : tree _q20 = TREE_OPERAND (_p0, 0);
13260 : 1583 : tree _q21 = TREE_OPERAND (_p0, 1);
13261 : 1583 : if (CONSTANT_CLASS_P (_q21))
13262 : : {
13263 : 508 : if (CONSTANT_CLASS_P (_p1))
13264 : : {
13265 : 441 : {
13266 : 441 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
13267 : 441 : tree res = generic_simplify_119 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
13268 : 441 : if (res) return res;
13269 : : }
13270 : : }
13271 : : }
13272 : : break;
13273 : : }
13274 : 6267894 : default:;
13275 : : }
13276 : 6267894 : {
13277 : 6267894 : tree _p1_pops[1];
13278 : 6267894 : if (tree_logical_inverted_value (_p1, _p1_pops))
13279 : : {
13280 : 885 : tree _q30 = _p1_pops[0];
13281 : 885 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
13282 : : {
13283 : 1 : {
13284 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
13285 : 1 : tree res = generic_simplify_420 (loc, type, _p0, _p1, captures);
13286 : 1 : if (res) return res;
13287 : : }
13288 : : }
13289 : : }
13290 : : }
13291 : 6267893 : switch (TREE_CODE (_p0))
13292 : : {
13293 : 1900557 : CASE_CONVERT:
13294 : 1900557 : {
13295 : 1900557 : tree _q20 = TREE_OPERAND (_p0, 0);
13296 : 1900557 : switch (TREE_CODE (_q20))
13297 : : {
13298 : 6114 : case NEGATE_EXPR:
13299 : 6114 : {
13300 : 6114 : tree _q30 = TREE_OPERAND (_q20, 0);
13301 : 6114 : if (tree_zero_one_valued_p (_q30))
13302 : : {
13303 : 2 : {
13304 : 2 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p1 };
13305 : 2 : tree res = generic_simplify_415 (loc, type, _p0, _p1, captures);
13306 : 2 : if (res) return res;
13307 : : }
13308 : : }
13309 : : break;
13310 : : }
13311 : : default:;
13312 : : }
13313 : : break;
13314 : : }
13315 : 6267891 : default:;
13316 : : }
13317 : 6267891 : {
13318 : 6267891 : tree _p0_pops[1];
13319 : 6267891 : if (tree_logical_inverted_value (_p0, _p0_pops))
13320 : : {
13321 : 518 : tree _q20 = _p0_pops[0];
13322 : 518 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
13323 : : {
13324 : 12 : {
13325 : 12 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
13326 : 12 : tree res = generic_simplify_420 (loc, type, _p0, _p1, captures);
13327 : 12 : if (res) return res;
13328 : : }
13329 : : }
13330 : : }
13331 : : }
13332 : 6267879 : switch (TREE_CODE (_p1))
13333 : : {
13334 : 895506 : CASE_CONVERT:
13335 : 895506 : {
13336 : 895506 : tree _q30 = TREE_OPERAND (_p1, 0);
13337 : 895506 : switch (TREE_CODE (_q30))
13338 : : {
13339 : 108 : case NEGATE_EXPR:
13340 : 108 : {
13341 : 108 : tree _q40 = TREE_OPERAND (_q30, 0);
13342 : 108 : if (tree_zero_one_valued_p (_q40))
13343 : : {
13344 : 18 : {
13345 : 18 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _p0 };
13346 : 18 : tree res = generic_simplify_415 (loc, type, _p0, _p1, captures);
13347 : 18 : if (res) return res;
13348 : : }
13349 : : }
13350 : : break;
13351 : : }
13352 : : default:;
13353 : : }
13354 : : break;
13355 : : }
13356 : 11144 : case NEGATE_EXPR:
13357 : 11144 : {
13358 : 11144 : tree _q30 = TREE_OPERAND (_p1, 0);
13359 : 11144 : if (tree_zero_one_valued_p (_q30))
13360 : : {
13361 : 24 : {
13362 : 24 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p0 };
13363 : 24 : tree res = generic_simplify_415 (loc, type, _p0, _p1, captures);
13364 : 24 : if (res) return res;
13365 : : }
13366 : : }
13367 : : break;
13368 : : }
13369 : 6267837 : default:;
13370 : : }
13371 : 6267837 : switch (TREE_CODE (_p0))
13372 : : {
13373 : 46756 : case NEGATE_EXPR:
13374 : 46756 : {
13375 : 46756 : tree _q20 = TREE_OPERAND (_p0, 0);
13376 : 46756 : switch (TREE_CODE (_q20))
13377 : : {
13378 : 6332 : CASE_CONVERT:
13379 : 6332 : {
13380 : 6332 : tree _q30 = TREE_OPERAND (_q20, 0);
13381 : 6332 : switch (TREE_CODE (_q30))
13382 : : {
13383 : 0 : case LT_EXPR:
13384 : 0 : {
13385 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13386 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13387 : 0 : {
13388 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13389 : 0 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures, LT_EXPR);
13390 : 0 : if (res) return res;
13391 : : }
13392 : 0 : break;
13393 : : }
13394 : 0 : case LE_EXPR:
13395 : 0 : {
13396 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13397 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13398 : 0 : {
13399 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13400 : 0 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures, LE_EXPR);
13401 : 0 : if (res) return res;
13402 : : }
13403 : 0 : break;
13404 : : }
13405 : 0 : case EQ_EXPR:
13406 : 0 : {
13407 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13408 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13409 : 0 : {
13410 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13411 : 0 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures, EQ_EXPR);
13412 : 0 : if (res) return res;
13413 : : }
13414 : 0 : break;
13415 : : }
13416 : 0 : case NE_EXPR:
13417 : 0 : {
13418 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13419 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13420 : 0 : {
13421 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13422 : 0 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures, NE_EXPR);
13423 : 0 : if (res) return res;
13424 : : }
13425 : 0 : break;
13426 : : }
13427 : 0 : case GE_EXPR:
13428 : 0 : {
13429 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13430 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13431 : 0 : {
13432 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13433 : 0 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures, GE_EXPR);
13434 : 0 : if (res) return res;
13435 : : }
13436 : 0 : break;
13437 : : }
13438 : 0 : case GT_EXPR:
13439 : 0 : {
13440 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13441 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13442 : 0 : {
13443 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13444 : 0 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures, GT_EXPR);
13445 : 0 : if (res) return res;
13446 : : }
13447 : 0 : break;
13448 : : }
13449 : 0 : case UNORDERED_EXPR:
13450 : 0 : {
13451 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13452 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13453 : 0 : {
13454 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13455 : 0 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures, UNORDERED_EXPR);
13456 : 0 : if (res) return res;
13457 : : }
13458 : 0 : break;
13459 : : }
13460 : 0 : case ORDERED_EXPR:
13461 : 0 : {
13462 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13463 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13464 : 0 : {
13465 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13466 : 0 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures, ORDERED_EXPR);
13467 : 0 : if (res) return res;
13468 : : }
13469 : 0 : break;
13470 : : }
13471 : 0 : case UNLT_EXPR:
13472 : 0 : {
13473 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13474 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13475 : 0 : {
13476 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13477 : 0 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures, UNLT_EXPR);
13478 : 0 : if (res) return res;
13479 : : }
13480 : 0 : break;
13481 : : }
13482 : 0 : case UNLE_EXPR:
13483 : 0 : {
13484 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13485 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13486 : 0 : {
13487 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13488 : 0 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures, UNLE_EXPR);
13489 : 0 : if (res) return res;
13490 : : }
13491 : 0 : break;
13492 : : }
13493 : 0 : case UNGT_EXPR:
13494 : 0 : {
13495 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13496 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13497 : 0 : {
13498 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13499 : 0 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures, UNGT_EXPR);
13500 : 0 : if (res) return res;
13501 : : }
13502 : 0 : break;
13503 : : }
13504 : 0 : case UNGE_EXPR:
13505 : 0 : {
13506 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13507 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13508 : 0 : {
13509 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13510 : 0 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures, UNGE_EXPR);
13511 : 0 : if (res) return res;
13512 : : }
13513 : 0 : break;
13514 : : }
13515 : 0 : case UNEQ_EXPR:
13516 : 0 : {
13517 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13518 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13519 : 0 : {
13520 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13521 : 0 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures, UNEQ_EXPR);
13522 : 0 : if (res) return res;
13523 : : }
13524 : 0 : break;
13525 : : }
13526 : 0 : case LTGT_EXPR:
13527 : 0 : {
13528 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13529 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13530 : 0 : {
13531 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13532 : 0 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures, LTGT_EXPR);
13533 : 0 : if (res) return res;
13534 : : }
13535 : 0 : break;
13536 : : }
13537 : : default:;
13538 : : }
13539 : : break;
13540 : : }
13541 : : default:;
13542 : : }
13543 : : break;
13544 : : }
13545 : 6267837 : default:;
13546 : : }
13547 : 6267837 : switch (TREE_CODE (_p1))
13548 : : {
13549 : 11120 : case NEGATE_EXPR:
13550 : 11120 : {
13551 : 11120 : tree _q30 = TREE_OPERAND (_p1, 0);
13552 : 11120 : switch (TREE_CODE (_q30))
13553 : : {
13554 : 65 : CASE_CONVERT:
13555 : 65 : {
13556 : 65 : tree _q40 = TREE_OPERAND (_q30, 0);
13557 : 65 : switch (TREE_CODE (_q40))
13558 : : {
13559 : 0 : case LT_EXPR:
13560 : 0 : {
13561 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13562 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13563 : 0 : {
13564 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13565 : 0 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, LT_EXPR);
13566 : 0 : if (res) return res;
13567 : : }
13568 : 0 : break;
13569 : : }
13570 : 0 : case LE_EXPR:
13571 : 0 : {
13572 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13573 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13574 : 0 : {
13575 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13576 : 0 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, LE_EXPR);
13577 : 0 : if (res) return res;
13578 : : }
13579 : 0 : break;
13580 : : }
13581 : 0 : case EQ_EXPR:
13582 : 0 : {
13583 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13584 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13585 : 0 : {
13586 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13587 : 0 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, EQ_EXPR);
13588 : 0 : if (res) return res;
13589 : : }
13590 : 0 : break;
13591 : : }
13592 : 0 : case NE_EXPR:
13593 : 0 : {
13594 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13595 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13596 : 0 : {
13597 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13598 : 0 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, NE_EXPR);
13599 : 0 : if (res) return res;
13600 : : }
13601 : 0 : break;
13602 : : }
13603 : 0 : case GE_EXPR:
13604 : 0 : {
13605 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13606 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13607 : 0 : {
13608 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13609 : 0 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, GE_EXPR);
13610 : 0 : if (res) return res;
13611 : : }
13612 : 0 : break;
13613 : : }
13614 : 0 : case GT_EXPR:
13615 : 0 : {
13616 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13617 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13618 : 0 : {
13619 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13620 : 0 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, GT_EXPR);
13621 : 0 : if (res) return res;
13622 : : }
13623 : 0 : break;
13624 : : }
13625 : 0 : case UNORDERED_EXPR:
13626 : 0 : {
13627 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13628 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13629 : 0 : {
13630 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13631 : 0 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, UNORDERED_EXPR);
13632 : 0 : if (res) return res;
13633 : : }
13634 : 0 : break;
13635 : : }
13636 : 0 : case ORDERED_EXPR:
13637 : 0 : {
13638 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13639 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13640 : 0 : {
13641 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13642 : 0 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, ORDERED_EXPR);
13643 : 0 : if (res) return res;
13644 : : }
13645 : 0 : break;
13646 : : }
13647 : 0 : case UNLT_EXPR:
13648 : 0 : {
13649 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13650 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13651 : 0 : {
13652 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13653 : 0 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, UNLT_EXPR);
13654 : 0 : if (res) return res;
13655 : : }
13656 : 0 : break;
13657 : : }
13658 : 0 : case UNLE_EXPR:
13659 : 0 : {
13660 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13661 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13662 : 0 : {
13663 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13664 : 0 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, UNLE_EXPR);
13665 : 0 : if (res) return res;
13666 : : }
13667 : 0 : break;
13668 : : }
13669 : 0 : case UNGT_EXPR:
13670 : 0 : {
13671 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13672 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13673 : 0 : {
13674 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13675 : 0 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, UNGT_EXPR);
13676 : 0 : if (res) return res;
13677 : : }
13678 : 0 : break;
13679 : : }
13680 : 0 : case UNGE_EXPR:
13681 : 0 : {
13682 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13683 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13684 : 0 : {
13685 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13686 : 0 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, UNGE_EXPR);
13687 : 0 : if (res) return res;
13688 : : }
13689 : 0 : break;
13690 : : }
13691 : 0 : case UNEQ_EXPR:
13692 : 0 : {
13693 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13694 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13695 : 0 : {
13696 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13697 : 0 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, UNEQ_EXPR);
13698 : 0 : if (res) return res;
13699 : : }
13700 : 0 : break;
13701 : : }
13702 : 0 : case LTGT_EXPR:
13703 : 0 : {
13704 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13705 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13706 : 0 : {
13707 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13708 : 0 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, LTGT_EXPR);
13709 : 0 : if (res) return res;
13710 : : }
13711 : 0 : break;
13712 : : }
13713 : : default:;
13714 : : }
13715 : : break;
13716 : : }
13717 : : default:;
13718 : : }
13719 : : break;
13720 : : }
13721 : 6267837 : default:;
13722 : : }
13723 : 6267837 : switch (TREE_CODE (_p0))
13724 : : {
13725 : 1900553 : CASE_CONVERT:
13726 : 1900553 : {
13727 : 1900553 : tree _q20 = TREE_OPERAND (_p0, 0);
13728 : 1900553 : switch (TREE_CODE (_p1))
13729 : : {
13730 : 890568 : case INTEGER_CST:
13731 : 890568 : {
13732 : 890568 : {
13733 : 890568 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
13734 : 890568 : tree res = generic_simplify_423 (loc, type, _p0, _p1, captures);
13735 : 890568 : if (res) return res;
13736 : : }
13737 : 885831 : break;
13738 : : }
13739 : 1895816 : default:;
13740 : : }
13741 : 1895816 : switch (TREE_CODE (_q20))
13742 : : {
13743 : 70351 : case LSHIFT_EXPR:
13744 : 70351 : {
13745 : 70351 : tree _q30 = TREE_OPERAND (_q20, 0);
13746 : 70351 : tree _q31 = TREE_OPERAND (_q20, 1);
13747 : 70351 : switch (TREE_CODE (_q30))
13748 : : {
13749 : 79 : CASE_CONVERT:
13750 : 79 : {
13751 : 79 : tree _q40 = TREE_OPERAND (_q30, 0);
13752 : 79 : switch (TREE_CODE (_q31))
13753 : : {
13754 : 79 : case INTEGER_CST:
13755 : 79 : {
13756 : 79 : switch (TREE_CODE (_p1))
13757 : : {
13758 : 79 : case INTEGER_CST:
13759 : 79 : {
13760 : 79 : {
13761 : 79 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q40, _q31, _p1 };
13762 : 79 : tree res = generic_simplify_424 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
13763 : 79 : if (res) return res;
13764 : : }
13765 : 79 : break;
13766 : : }
13767 : : default:;
13768 : : }
13769 : : break;
13770 : : }
13771 : : default:;
13772 : : }
13773 : : break;
13774 : : }
13775 : 70351 : default:;
13776 : : }
13777 : 70351 : switch (TREE_CODE (_q31))
13778 : : {
13779 : 79 : case INTEGER_CST:
13780 : 79 : {
13781 : 79 : switch (TREE_CODE (_p1))
13782 : : {
13783 : 79 : case INTEGER_CST:
13784 : 79 : {
13785 : 79 : {
13786 : 79 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q30, _q31, _p1 };
13787 : 79 : tree res = generic_simplify_425 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
13788 : 79 : if (res) return res;
13789 : : }
13790 : 79 : break;
13791 : : }
13792 : : default:;
13793 : : }
13794 : : break;
13795 : : }
13796 : : default:;
13797 : : }
13798 : : break;
13799 : : }
13800 : 69830 : case RSHIFT_EXPR:
13801 : 69830 : {
13802 : 69830 : tree _q30 = TREE_OPERAND (_q20, 0);
13803 : 69830 : tree _q31 = TREE_OPERAND (_q20, 1);
13804 : 69830 : switch (TREE_CODE (_q30))
13805 : : {
13806 : 44714 : CASE_CONVERT:
13807 : 44714 : {
13808 : 44714 : tree _q40 = TREE_OPERAND (_q30, 0);
13809 : 44714 : switch (TREE_CODE (_q31))
13810 : : {
13811 : 44587 : case INTEGER_CST:
13812 : 44587 : {
13813 : 44587 : switch (TREE_CODE (_p1))
13814 : : {
13815 : 44587 : case INTEGER_CST:
13816 : 44587 : {
13817 : 44587 : {
13818 : 44587 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q40, _q31, _p1 };
13819 : 44587 : tree res = generic_simplify_424 (loc, type, _p0, _p1, captures, RSHIFT_EXPR);
13820 : 44587 : if (res) return res;
13821 : : }
13822 : 44530 : break;
13823 : : }
13824 : : default:;
13825 : : }
13826 : : break;
13827 : : }
13828 : 44657 : default:;
13829 : : }
13830 : 44657 : switch (TREE_CODE (_q40))
13831 : : {
13832 : 2 : case CALL_EXPR:
13833 : 2 : switch (get_call_combined_fn (_q40))
13834 : : {
13835 : 0 : case CFN_BUILT_IN_BSWAP128:
13836 : 0 : if (call_expr_nargs (_q40) == 1)
13837 : : {
13838 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
13839 : 0 : switch (TREE_CODE (_q31))
13840 : : {
13841 : 0 : case INTEGER_CST:
13842 : 0 : {
13843 : 0 : switch (TREE_CODE (_p1))
13844 : : {
13845 : 0 : case INTEGER_CST:
13846 : 0 : {
13847 : 0 : {
13848 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q40, _q50, _q31, _p1 };
13849 : 0 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP128);
13850 : 0 : if (res) return res;
13851 : : }
13852 : 0 : break;
13853 : : }
13854 : : default:;
13855 : : }
13856 : : break;
13857 : : }
13858 : : default:;
13859 : : }
13860 : : }
13861 : : break;
13862 : 2 : case CFN_BUILT_IN_BSWAP16:
13863 : 2 : if (call_expr_nargs (_q40) == 1)
13864 : : {
13865 : 2 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
13866 : 2 : switch (TREE_CODE (_q31))
13867 : : {
13868 : 2 : case INTEGER_CST:
13869 : 2 : {
13870 : 2 : switch (TREE_CODE (_p1))
13871 : : {
13872 : 2 : case INTEGER_CST:
13873 : 2 : {
13874 : 2 : {
13875 : 2 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q40, _q50, _q31, _p1 };
13876 : 2 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP16);
13877 : 2 : if (res) return res;
13878 : : }
13879 : 0 : break;
13880 : : }
13881 : : default:;
13882 : : }
13883 : : break;
13884 : : }
13885 : : default:;
13886 : : }
13887 : : }
13888 : : break;
13889 : 0 : case CFN_BUILT_IN_BSWAP32:
13890 : 0 : if (call_expr_nargs (_q40) == 1)
13891 : : {
13892 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
13893 : 0 : switch (TREE_CODE (_q31))
13894 : : {
13895 : 0 : case INTEGER_CST:
13896 : 0 : {
13897 : 0 : switch (TREE_CODE (_p1))
13898 : : {
13899 : 0 : case INTEGER_CST:
13900 : 0 : {
13901 : 0 : {
13902 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q40, _q50, _q31, _p1 };
13903 : 0 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP32);
13904 : 0 : if (res) return res;
13905 : : }
13906 : 0 : break;
13907 : : }
13908 : : default:;
13909 : : }
13910 : : break;
13911 : : }
13912 : : default:;
13913 : : }
13914 : : }
13915 : : break;
13916 : 0 : case CFN_BUILT_IN_BSWAP64:
13917 : 0 : if (call_expr_nargs (_q40) == 1)
13918 : : {
13919 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
13920 : 0 : switch (TREE_CODE (_q31))
13921 : : {
13922 : 0 : case INTEGER_CST:
13923 : 0 : {
13924 : 0 : switch (TREE_CODE (_p1))
13925 : : {
13926 : 0 : case INTEGER_CST:
13927 : 0 : {
13928 : 0 : {
13929 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q40, _q50, _q31, _p1 };
13930 : 0 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP64);
13931 : 0 : if (res) return res;
13932 : : }
13933 : 0 : break;
13934 : : }
13935 : : default:;
13936 : : }
13937 : : break;
13938 : : }
13939 : : default:;
13940 : : }
13941 : : }
13942 : : break;
13943 : : default:;
13944 : : }
13945 : : break;
13946 : : default:;
13947 : : }
13948 : : break;
13949 : : }
13950 : 69771 : default:;
13951 : : }
13952 : 69771 : switch (TREE_CODE (_q31))
13953 : : {
13954 : 50406 : case INTEGER_CST:
13955 : 50406 : {
13956 : 50406 : switch (TREE_CODE (_p1))
13957 : : {
13958 : 50334 : case INTEGER_CST:
13959 : 50334 : {
13960 : 50334 : {
13961 : 50334 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q30, _q31, _p1 };
13962 : 50334 : tree res = generic_simplify_425 (loc, type, _p0, _p1, captures, RSHIFT_EXPR);
13963 : 50334 : if (res) return res;
13964 : : }
13965 : 50296 : break;
13966 : : }
13967 : : default:;
13968 : : }
13969 : : break;
13970 : : }
13971 : 69733 : default:;
13972 : : }
13973 : 69733 : switch (TREE_CODE (_q30))
13974 : : {
13975 : 80 : case CALL_EXPR:
13976 : 80 : switch (get_call_combined_fn (_q30))
13977 : : {
13978 : 0 : case CFN_BUILT_IN_BSWAP128:
13979 : 0 : if (call_expr_nargs (_q30) == 1)
13980 : : {
13981 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
13982 : 0 : switch (TREE_CODE (_q31))
13983 : : {
13984 : 0 : case INTEGER_CST:
13985 : 0 : {
13986 : 0 : switch (TREE_CODE (_p1))
13987 : : {
13988 : 0 : case INTEGER_CST:
13989 : 0 : {
13990 : 0 : {
13991 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q30, _q40, _q31, _p1 };
13992 : 0 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP128);
13993 : 0 : if (res) return res;
13994 : : }
13995 : 0 : break;
13996 : : }
13997 : : default:;
13998 : : }
13999 : : break;
14000 : : }
14001 : : default:;
14002 : : }
14003 : : }
14004 : : break;
14005 : 9 : case CFN_BUILT_IN_BSWAP16:
14006 : 9 : if (call_expr_nargs (_q30) == 1)
14007 : : {
14008 : 9 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
14009 : 9 : switch (TREE_CODE (_q31))
14010 : : {
14011 : 9 : case INTEGER_CST:
14012 : 9 : {
14013 : 9 : switch (TREE_CODE (_p1))
14014 : : {
14015 : 9 : case INTEGER_CST:
14016 : 9 : {
14017 : 9 : {
14018 : 9 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q30, _q40, _q31, _p1 };
14019 : 9 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP16);
14020 : 9 : if (res) return res;
14021 : : }
14022 : 0 : break;
14023 : : }
14024 : : default:;
14025 : : }
14026 : : break;
14027 : : }
14028 : : default:;
14029 : : }
14030 : : }
14031 : : break;
14032 : 0 : case CFN_BUILT_IN_BSWAP32:
14033 : 0 : if (call_expr_nargs (_q30) == 1)
14034 : : {
14035 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
14036 : 0 : switch (TREE_CODE (_q31))
14037 : : {
14038 : 0 : case INTEGER_CST:
14039 : 0 : {
14040 : 0 : switch (TREE_CODE (_p1))
14041 : : {
14042 : 0 : case INTEGER_CST:
14043 : 0 : {
14044 : 0 : {
14045 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q30, _q40, _q31, _p1 };
14046 : 0 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP32);
14047 : 0 : if (res) return res;
14048 : : }
14049 : 0 : break;
14050 : : }
14051 : : default:;
14052 : : }
14053 : : break;
14054 : : }
14055 : : default:;
14056 : : }
14057 : : }
14058 : : break;
14059 : 71 : case CFN_BUILT_IN_BSWAP64:
14060 : 71 : if (call_expr_nargs (_q30) == 1)
14061 : : {
14062 : 71 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
14063 : 71 : switch (TREE_CODE (_q31))
14064 : : {
14065 : 70 : case INTEGER_CST:
14066 : 70 : {
14067 : 70 : switch (TREE_CODE (_p1))
14068 : : {
14069 : 70 : case INTEGER_CST:
14070 : 70 : {
14071 : 70 : {
14072 : 70 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q30, _q40, _q31, _p1 };
14073 : 70 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP64);
14074 : 70 : if (res) return res;
14075 : : }
14076 : 0 : break;
14077 : : }
14078 : : default:;
14079 : : }
14080 : : break;
14081 : : }
14082 : : default:;
14083 : : }
14084 : : }
14085 : : break;
14086 : : default:;
14087 : : }
14088 : : break;
14089 : : default:;
14090 : : }
14091 : : break;
14092 : : }
14093 : 31690 : case CALL_EXPR:
14094 : 31690 : switch (get_call_combined_fn (_q20))
14095 : : {
14096 : 0 : case CFN_BUILT_IN_BSWAP128:
14097 : 0 : if (call_expr_nargs (_q20) == 1)
14098 : : {
14099 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
14100 : 0 : switch (TREE_CODE (_p1))
14101 : : {
14102 : 0 : case INTEGER_CST:
14103 : 0 : {
14104 : 0 : {
14105 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
14106 : 0 : tree res = generic_simplify_427 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP128);
14107 : 0 : if (res) return res;
14108 : : }
14109 : 0 : break;
14110 : : }
14111 : : default:;
14112 : : }
14113 : : }
14114 : : break;
14115 : 10 : case CFN_BUILT_IN_BSWAP16:
14116 : 10 : if (call_expr_nargs (_q20) == 1)
14117 : : {
14118 : 10 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
14119 : 10 : switch (TREE_CODE (_p1))
14120 : : {
14121 : 10 : case INTEGER_CST:
14122 : 10 : {
14123 : 10 : {
14124 : 10 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
14125 : 10 : tree res = generic_simplify_427 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP16);
14126 : 10 : if (res) return res;
14127 : : }
14128 : 0 : break;
14129 : : }
14130 : : default:;
14131 : : }
14132 : : }
14133 : : break;
14134 : 4 : case CFN_BUILT_IN_BSWAP32:
14135 : 4 : if (call_expr_nargs (_q20) == 1)
14136 : : {
14137 : 4 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
14138 : 4 : switch (TREE_CODE (_p1))
14139 : : {
14140 : 4 : case INTEGER_CST:
14141 : 4 : {
14142 : 4 : {
14143 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
14144 : 4 : tree res = generic_simplify_427 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP32);
14145 : 4 : if (res) return res;
14146 : : }
14147 : 0 : break;
14148 : : }
14149 : : default:;
14150 : : }
14151 : : }
14152 : : break;
14153 : 4 : case CFN_BUILT_IN_BSWAP64:
14154 : 4 : if (call_expr_nargs (_q20) == 1)
14155 : : {
14156 : 4 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
14157 : 4 : switch (TREE_CODE (_p1))
14158 : : {
14159 : 4 : case INTEGER_CST:
14160 : 4 : {
14161 : 4 : {
14162 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
14163 : 4 : tree res = generic_simplify_427 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP64);
14164 : 4 : if (res) return res;
14165 : : }
14166 : 0 : break;
14167 : : }
14168 : : default:;
14169 : : }
14170 : : }
14171 : : break;
14172 : : default:;
14173 : : }
14174 : : break;
14175 : : default:;
14176 : : }
14177 : : break;
14178 : : }
14179 : 6262906 : default:;
14180 : : }
14181 : 6262906 : switch (TREE_CODE (_p1))
14182 : : {
14183 : 4360854 : case INTEGER_CST:
14184 : 4360854 : {
14185 : 4360854 : {
14186 : 4360854 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
14187 : 4360854 : tree res = generic_simplify_423 (loc, type, _p0, _p1, captures);
14188 : 4360854 : if (res) return res;
14189 : : }
14190 : 4360854 : break;
14191 : : }
14192 : 6262906 : default:;
14193 : : }
14194 : 6262906 : switch (TREE_CODE (_p0))
14195 : : {
14196 : 335 : case GT_EXPR:
14197 : 335 : {
14198 : 335 : tree _q20 = TREE_OPERAND (_p0, 0);
14199 : 335 : tree _q21 = TREE_OPERAND (_p0, 1);
14200 : 335 : switch (TREE_CODE (_p1))
14201 : : {
14202 : 38 : case EQ_EXPR:
14203 : 38 : {
14204 : 38 : tree _q50 = TREE_OPERAND (_p1, 0);
14205 : 38 : tree _q51 = TREE_OPERAND (_p1, 1);
14206 : 38 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14207 : : {
14208 : 8 : if (tree_min_value (_q51))
14209 : : {
14210 : 4 : {
14211 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
14212 : 4 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, EQ_EXPR);
14213 : 4 : if (res) return res;
14214 : : }
14215 : : }
14216 : : }
14217 : 34 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14218 : : {
14219 : 0 : if (tree_max_value (_q51))
14220 : : {
14221 : 0 : {
14222 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
14223 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, EQ_EXPR);
14224 : 0 : if (res) return res;
14225 : : }
14226 : : }
14227 : : }
14228 : : break;
14229 : : }
14230 : 4 : case NE_EXPR:
14231 : 4 : {
14232 : 4 : tree _q50 = TREE_OPERAND (_p1, 0);
14233 : 4 : tree _q51 = TREE_OPERAND (_p1, 1);
14234 : 4 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14235 : : {
14236 : 4 : if (tree_min_value (_q51))
14237 : : {
14238 : 4 : {
14239 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
14240 : 4 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, NE_EXPR);
14241 : 4 : if (res) return res;
14242 : : }
14243 : : }
14244 : : }
14245 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14246 : : {
14247 : 0 : if (tree_max_value (_q51))
14248 : : {
14249 : 0 : {
14250 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
14251 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, NE_EXPR);
14252 : 0 : if (res) return res;
14253 : : }
14254 : : }
14255 : : }
14256 : : break;
14257 : : }
14258 : 327 : default:;
14259 : : }
14260 : 327 : switch (TREE_CODE (_q20))
14261 : : {
14262 : 0 : CASE_CONVERT:
14263 : 0 : {
14264 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
14265 : 0 : switch (TREE_CODE (_p1))
14266 : : {
14267 : 0 : case EQ_EXPR:
14268 : 0 : {
14269 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14270 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14271 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
14272 : : {
14273 : 0 : {
14274 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
14275 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
14276 : 0 : if (res) return res;
14277 : : }
14278 : : }
14279 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
14280 : : {
14281 : 0 : {
14282 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
14283 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
14284 : 0 : if (res) return res;
14285 : : }
14286 : : }
14287 : : break;
14288 : : }
14289 : 0 : case NE_EXPR:
14290 : 0 : {
14291 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14292 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14293 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
14294 : : {
14295 : 0 : {
14296 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
14297 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
14298 : 0 : if (res) return res;
14299 : : }
14300 : : }
14301 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
14302 : : {
14303 : 0 : {
14304 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
14305 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
14306 : 0 : if (res) return res;
14307 : : }
14308 : : }
14309 : : break;
14310 : : }
14311 : : default:;
14312 : : }
14313 : : break;
14314 : : }
14315 : 327 : default:;
14316 : : }
14317 : 327 : switch (TREE_CODE (_q21))
14318 : : {
14319 : 0 : CASE_CONVERT:
14320 : 0 : {
14321 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
14322 : 0 : switch (TREE_CODE (_p1))
14323 : : {
14324 : 0 : case EQ_EXPR:
14325 : 0 : {
14326 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14327 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14328 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
14329 : : {
14330 : 0 : {
14331 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
14332 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
14333 : 0 : if (res) return res;
14334 : : }
14335 : : }
14336 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
14337 : : {
14338 : 0 : {
14339 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
14340 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
14341 : 0 : if (res) return res;
14342 : : }
14343 : : }
14344 : : break;
14345 : : }
14346 : 0 : case NE_EXPR:
14347 : 0 : {
14348 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14349 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14350 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
14351 : : {
14352 : 0 : {
14353 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
14354 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
14355 : 0 : if (res) return res;
14356 : : }
14357 : : }
14358 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
14359 : : {
14360 : 0 : {
14361 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
14362 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
14363 : 0 : if (res) return res;
14364 : : }
14365 : : }
14366 : : break;
14367 : : }
14368 : : default:;
14369 : : }
14370 : : break;
14371 : : }
14372 : 327 : default:;
14373 : : }
14374 : 327 : switch (TREE_CODE (_p1))
14375 : : {
14376 : 34 : case EQ_EXPR:
14377 : 34 : {
14378 : 34 : tree _q50 = TREE_OPERAND (_p1, 0);
14379 : 34 : tree _q51 = TREE_OPERAND (_p1, 1);
14380 : 34 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14381 : : {
14382 : 4 : {
14383 : 4 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
14384 : 4 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
14385 : 4 : if (res) return res;
14386 : : }
14387 : : }
14388 : 34 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14389 : : {
14390 : 0 : {
14391 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
14392 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
14393 : 0 : if (res) return res;
14394 : : }
14395 : : }
14396 : 34 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14397 : : {
14398 : 0 : {
14399 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
14400 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
14401 : 0 : if (res) return res;
14402 : : }
14403 : : }
14404 : 34 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14405 : : {
14406 : 0 : {
14407 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
14408 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
14409 : 0 : if (res) return res;
14410 : : }
14411 : : }
14412 : : break;
14413 : : }
14414 : 0 : case NE_EXPR:
14415 : 0 : {
14416 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
14417 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
14418 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14419 : : {
14420 : 0 : {
14421 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
14422 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
14423 : 0 : if (res) return res;
14424 : : }
14425 : : }
14426 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14427 : : {
14428 : 0 : {
14429 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
14430 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
14431 : 0 : if (res) return res;
14432 : : }
14433 : : }
14434 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14435 : : {
14436 : 0 : {
14437 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
14438 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
14439 : 0 : if (res) return res;
14440 : : }
14441 : : }
14442 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14443 : : {
14444 : 0 : {
14445 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
14446 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
14447 : 0 : if (res) return res;
14448 : : }
14449 : : }
14450 : : break;
14451 : : }
14452 : 67 : case LT_EXPR:
14453 : 67 : {
14454 : 67 : tree _q50 = TREE_OPERAND (_p1, 0);
14455 : 67 : tree _q51 = TREE_OPERAND (_p1, 1);
14456 : 67 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14457 : : {
14458 : 4 : {
14459 : 4 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14460 : 4 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
14461 : 4 : if (res) return res;
14462 : : }
14463 : : }
14464 : 67 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14465 : : {
14466 : 0 : {
14467 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14468 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, GT_EXPR);
14469 : 0 : if (res) return res;
14470 : : }
14471 : : }
14472 : 67 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14473 : : {
14474 : 0 : {
14475 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
14476 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, LT_EXPR);
14477 : 0 : if (res) return res;
14478 : : }
14479 : : }
14480 : 67 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14481 : : {
14482 : 4 : {
14483 : 4 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
14484 : 4 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
14485 : 4 : if (res) return res;
14486 : : }
14487 : : }
14488 : : break;
14489 : : }
14490 : 72 : case LE_EXPR:
14491 : 72 : {
14492 : 72 : tree _q50 = TREE_OPERAND (_p1, 0);
14493 : 72 : tree _q51 = TREE_OPERAND (_p1, 1);
14494 : 72 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14495 : : {
14496 : 23 : {
14497 : 23 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14498 : 23 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR);
14499 : 23 : if (res) return res;
14500 : : }
14501 : : }
14502 : 72 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14503 : : {
14504 : 0 : {
14505 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14506 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, GT_EXPR);
14507 : 0 : if (res) return res;
14508 : : }
14509 : : }
14510 : 72 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14511 : : {
14512 : 0 : {
14513 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
14514 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, LT_EXPR);
14515 : 0 : if (res) return res;
14516 : : }
14517 : : }
14518 : 72 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14519 : : {
14520 : 0 : {
14521 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
14522 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, LT_EXPR);
14523 : 0 : if (res) return res;
14524 : : }
14525 : : }
14526 : : break;
14527 : : }
14528 : 85 : case GT_EXPR:
14529 : 85 : {
14530 : 85 : tree _q50 = TREE_OPERAND (_p1, 0);
14531 : 85 : tree _q51 = TREE_OPERAND (_p1, 1);
14532 : 85 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14533 : : {
14534 : 0 : {
14535 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14536 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, GT_EXPR);
14537 : 0 : if (res) return res;
14538 : : }
14539 : : }
14540 : 85 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14541 : : {
14542 : 0 : {
14543 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14544 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
14545 : 0 : if (res) return res;
14546 : : }
14547 : : }
14548 : 85 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14549 : : {
14550 : 0 : {
14551 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
14552 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
14553 : 0 : if (res) return res;
14554 : : }
14555 : : }
14556 : 85 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14557 : : {
14558 : 35 : {
14559 : 35 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
14560 : 35 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, LT_EXPR);
14561 : 35 : if (res) return res;
14562 : : }
14563 : : }
14564 : : break;
14565 : : }
14566 : 0 : case GE_EXPR:
14567 : 0 : {
14568 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
14569 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
14570 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14571 : : {
14572 : 0 : {
14573 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14574 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, GT_EXPR);
14575 : 0 : if (res) return res;
14576 : : }
14577 : : }
14578 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14579 : : {
14580 : 0 : {
14581 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14582 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR);
14583 : 0 : if (res) return res;
14584 : : }
14585 : : }
14586 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14587 : : {
14588 : 0 : {
14589 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
14590 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, LT_EXPR);
14591 : 0 : if (res) return res;
14592 : : }
14593 : : }
14594 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14595 : : {
14596 : 0 : {
14597 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
14598 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, LT_EXPR);
14599 : 0 : if (res) return res;
14600 : : }
14601 : : }
14602 : : break;
14603 : : }
14604 : : default:;
14605 : : }
14606 : : break;
14607 : : }
14608 : 92 : case LT_EXPR:
14609 : 92 : {
14610 : 92 : tree _q20 = TREE_OPERAND (_p0, 0);
14611 : 92 : tree _q21 = TREE_OPERAND (_p0, 1);
14612 : 92 : switch (TREE_CODE (_p1))
14613 : : {
14614 : 35 : case EQ_EXPR:
14615 : 35 : {
14616 : 35 : tree _q50 = TREE_OPERAND (_p1, 0);
14617 : 35 : tree _q51 = TREE_OPERAND (_p1, 1);
14618 : 35 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14619 : : {
14620 : 0 : if (tree_min_value (_q51))
14621 : : {
14622 : 0 : {
14623 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
14624 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, EQ_EXPR);
14625 : 0 : if (res) return res;
14626 : : }
14627 : : }
14628 : : }
14629 : 35 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14630 : : {
14631 : 4 : if (tree_max_value (_q51))
14632 : : {
14633 : 4 : {
14634 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
14635 : 4 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, EQ_EXPR);
14636 : 4 : if (res) return res;
14637 : : }
14638 : : }
14639 : : }
14640 : : break;
14641 : : }
14642 : 6 : case NE_EXPR:
14643 : 6 : {
14644 : 6 : tree _q50 = TREE_OPERAND (_p1, 0);
14645 : 6 : tree _q51 = TREE_OPERAND (_p1, 1);
14646 : 6 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14647 : : {
14648 : 0 : if (tree_min_value (_q51))
14649 : : {
14650 : 0 : {
14651 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
14652 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, NE_EXPR);
14653 : 0 : if (res) return res;
14654 : : }
14655 : : }
14656 : : }
14657 : 6 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14658 : : {
14659 : 4 : if (tree_max_value (_q51))
14660 : : {
14661 : 4 : {
14662 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
14663 : 4 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, NE_EXPR);
14664 : 4 : if (res) return res;
14665 : : }
14666 : : }
14667 : : }
14668 : : break;
14669 : : }
14670 : 84 : default:;
14671 : : }
14672 : 84 : switch (TREE_CODE (_q20))
14673 : : {
14674 : 8 : CASE_CONVERT:
14675 : 8 : {
14676 : 8 : tree _q30 = TREE_OPERAND (_q20, 0);
14677 : 8 : switch (TREE_CODE (_p1))
14678 : : {
14679 : 0 : case EQ_EXPR:
14680 : 0 : {
14681 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14682 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14683 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
14684 : : {
14685 : 0 : {
14686 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
14687 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
14688 : 0 : if (res) return res;
14689 : : }
14690 : : }
14691 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
14692 : : {
14693 : 0 : {
14694 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
14695 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
14696 : 0 : if (res) return res;
14697 : : }
14698 : : }
14699 : : break;
14700 : : }
14701 : 0 : case NE_EXPR:
14702 : 0 : {
14703 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14704 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14705 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
14706 : : {
14707 : 0 : {
14708 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
14709 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
14710 : 0 : if (res) return res;
14711 : : }
14712 : : }
14713 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
14714 : : {
14715 : 0 : {
14716 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
14717 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
14718 : 0 : if (res) return res;
14719 : : }
14720 : : }
14721 : : break;
14722 : : }
14723 : : default:;
14724 : : }
14725 : : break;
14726 : : }
14727 : 84 : default:;
14728 : : }
14729 : 84 : switch (TREE_CODE (_q21))
14730 : : {
14731 : 5 : CASE_CONVERT:
14732 : 5 : {
14733 : 5 : tree _q40 = TREE_OPERAND (_q21, 0);
14734 : 5 : switch (TREE_CODE (_p1))
14735 : : {
14736 : 0 : case EQ_EXPR:
14737 : 0 : {
14738 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14739 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14740 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
14741 : : {
14742 : 0 : {
14743 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
14744 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
14745 : 0 : if (res) return res;
14746 : : }
14747 : : }
14748 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
14749 : : {
14750 : 0 : {
14751 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
14752 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
14753 : 0 : if (res) return res;
14754 : : }
14755 : : }
14756 : : break;
14757 : : }
14758 : 0 : case NE_EXPR:
14759 : 0 : {
14760 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14761 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14762 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
14763 : : {
14764 : 0 : {
14765 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
14766 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
14767 : 0 : if (res) return res;
14768 : : }
14769 : : }
14770 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
14771 : : {
14772 : 0 : {
14773 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
14774 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
14775 : 0 : if (res) return res;
14776 : : }
14777 : : }
14778 : : break;
14779 : : }
14780 : : default:;
14781 : : }
14782 : : break;
14783 : : }
14784 : 84 : default:;
14785 : : }
14786 : 84 : switch (TREE_CODE (_p1))
14787 : : {
14788 : 31 : case EQ_EXPR:
14789 : 31 : {
14790 : 31 : tree _q50 = TREE_OPERAND (_p1, 0);
14791 : 31 : tree _q51 = TREE_OPERAND (_p1, 1);
14792 : 31 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14793 : : {
14794 : 0 : {
14795 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
14796 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
14797 : 0 : if (res) return res;
14798 : : }
14799 : : }
14800 : 31 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14801 : : {
14802 : 0 : {
14803 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
14804 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
14805 : 0 : if (res) return res;
14806 : : }
14807 : : }
14808 : 31 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14809 : : {
14810 : 0 : {
14811 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
14812 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
14813 : 0 : if (res) return res;
14814 : : }
14815 : : }
14816 : 31 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14817 : : {
14818 : 0 : {
14819 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
14820 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
14821 : 0 : if (res) return res;
14822 : : }
14823 : : }
14824 : : break;
14825 : : }
14826 : 2 : case NE_EXPR:
14827 : 2 : {
14828 : 2 : tree _q50 = TREE_OPERAND (_p1, 0);
14829 : 2 : tree _q51 = TREE_OPERAND (_p1, 1);
14830 : 2 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14831 : : {
14832 : 0 : {
14833 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
14834 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
14835 : 0 : if (res) return res;
14836 : : }
14837 : : }
14838 : 2 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14839 : : {
14840 : 0 : {
14841 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
14842 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
14843 : 0 : if (res) return res;
14844 : : }
14845 : : }
14846 : 2 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14847 : : {
14848 : 0 : {
14849 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
14850 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
14851 : 0 : if (res) return res;
14852 : : }
14853 : : }
14854 : 2 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14855 : : {
14856 : 2 : {
14857 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
14858 : 2 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
14859 : 2 : if (res) return res;
14860 : : }
14861 : : }
14862 : : break;
14863 : : }
14864 : 8 : case LT_EXPR:
14865 : 8 : {
14866 : 8 : tree _q50 = TREE_OPERAND (_p1, 0);
14867 : 8 : tree _q51 = TREE_OPERAND (_p1, 1);
14868 : 8 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14869 : : {
14870 : 0 : {
14871 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14872 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, LT_EXPR);
14873 : 0 : if (res) return res;
14874 : : }
14875 : : }
14876 : 8 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14877 : : {
14878 : 0 : {
14879 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14880 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
14881 : 0 : if (res) return res;
14882 : : }
14883 : : }
14884 : 8 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14885 : : {
14886 : 0 : {
14887 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
14888 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
14889 : 0 : if (res) return res;
14890 : : }
14891 : : }
14892 : 8 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14893 : : {
14894 : 0 : {
14895 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
14896 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, GT_EXPR);
14897 : 0 : if (res) return res;
14898 : : }
14899 : : }
14900 : : break;
14901 : : }
14902 : 0 : case LE_EXPR:
14903 : 0 : {
14904 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
14905 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
14906 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14907 : : {
14908 : 0 : {
14909 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14910 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, LT_EXPR);
14911 : 0 : if (res) return res;
14912 : : }
14913 : : }
14914 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14915 : : {
14916 : 0 : {
14917 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14918 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, LT_EXPR);
14919 : 0 : if (res) return res;
14920 : : }
14921 : : }
14922 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14923 : : {
14924 : 0 : {
14925 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
14926 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR);
14927 : 0 : if (res) return res;
14928 : : }
14929 : : }
14930 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14931 : : {
14932 : 0 : {
14933 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
14934 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, GT_EXPR);
14935 : 0 : if (res) return res;
14936 : : }
14937 : : }
14938 : : break;
14939 : : }
14940 : 5 : case GT_EXPR:
14941 : 5 : {
14942 : 5 : tree _q50 = TREE_OPERAND (_p1, 0);
14943 : 5 : tree _q51 = TREE_OPERAND (_p1, 1);
14944 : 5 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14945 : : {
14946 : 4 : {
14947 : 4 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14948 : 4 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
14949 : 4 : if (res) return res;
14950 : : }
14951 : : }
14952 : 1 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14953 : : {
14954 : 0 : {
14955 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14956 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, LT_EXPR);
14957 : 0 : if (res) return res;
14958 : : }
14959 : : }
14960 : 1 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14961 : : {
14962 : 0 : {
14963 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
14964 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, GT_EXPR);
14965 : 0 : if (res) return res;
14966 : : }
14967 : : }
14968 : 1 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14969 : : {
14970 : 0 : {
14971 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
14972 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
14973 : 0 : if (res) return res;
14974 : : }
14975 : : }
14976 : : break;
14977 : : }
14978 : 0 : case GE_EXPR:
14979 : 0 : {
14980 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
14981 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
14982 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14983 : : {
14984 : 0 : {
14985 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14986 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, LT_EXPR);
14987 : 0 : if (res) return res;
14988 : : }
14989 : : }
14990 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14991 : : {
14992 : 0 : {
14993 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14994 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, LT_EXPR);
14995 : 0 : if (res) return res;
14996 : : }
14997 : : }
14998 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14999 : : {
15000 : 0 : {
15001 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
15002 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, GT_EXPR);
15003 : 0 : if (res) return res;
15004 : : }
15005 : : }
15006 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15007 : : {
15008 : 0 : {
15009 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
15010 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR);
15011 : 0 : if (res) return res;
15012 : : }
15013 : : }
15014 : : break;
15015 : : }
15016 : : default:;
15017 : : }
15018 : : break;
15019 : : }
15020 : 1062 : case EQ_EXPR:
15021 : 1062 : {
15022 : 1062 : tree _q20 = TREE_OPERAND (_p0, 0);
15023 : 1062 : tree _q21 = TREE_OPERAND (_p0, 1);
15024 : 1062 : if (tree_min_value (_q21))
15025 : : {
15026 : 40 : switch (TREE_CODE (_p1))
15027 : : {
15028 : 0 : case GT_EXPR:
15029 : 0 : {
15030 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15031 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15032 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15033 : : {
15034 : 0 : {
15035 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q51 };
15036 : 0 : tree res = generic_simplify_433 (loc, type, _p0, _p1, captures, EQ_EXPR);
15037 : 0 : if (res) return res;
15038 : : }
15039 : : }
15040 : : break;
15041 : : }
15042 : 14 : case LT_EXPR:
15043 : 14 : {
15044 : 14 : tree _q50 = TREE_OPERAND (_p1, 0);
15045 : 14 : tree _q51 = TREE_OPERAND (_p1, 1);
15046 : 14 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15047 : : {
15048 : 0 : {
15049 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q50 };
15050 : 0 : tree res = generic_simplify_433 (loc, type, _p0, _p1, captures, EQ_EXPR);
15051 : 0 : if (res) return res;
15052 : : }
15053 : : }
15054 : : break;
15055 : : }
15056 : 0 : case LE_EXPR:
15057 : 0 : {
15058 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15059 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15060 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15061 : : {
15062 : 0 : {
15063 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q51, _p0 };
15064 : 0 : tree res = generic_simplify_434 (loc, type, _p0, _p1, captures);
15065 : 0 : if (res) return res;
15066 : : }
15067 : : }
15068 : : break;
15069 : : }
15070 : 0 : case GE_EXPR:
15071 : 0 : {
15072 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15073 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15074 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15075 : : {
15076 : 0 : {
15077 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q50, _p0 };
15078 : 0 : tree res = generic_simplify_434 (loc, type, _p0, _p1, captures);
15079 : 0 : if (res) return res;
15080 : : }
15081 : : }
15082 : : break;
15083 : : }
15084 : : default:;
15085 : : }
15086 : : }
15087 : 1062 : if (tree_max_value (_q21))
15088 : : {
15089 : 0 : switch (TREE_CODE (_p1))
15090 : : {
15091 : 0 : case LT_EXPR:
15092 : 0 : {
15093 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15094 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15095 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15096 : : {
15097 : 0 : {
15098 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q51 };
15099 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, EQ_EXPR);
15100 : 0 : if (res) return res;
15101 : : }
15102 : : }
15103 : : break;
15104 : : }
15105 : 0 : case GT_EXPR:
15106 : 0 : {
15107 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15108 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15109 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15110 : : {
15111 : 0 : {
15112 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q50 };
15113 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, EQ_EXPR);
15114 : 0 : if (res) return res;
15115 : : }
15116 : : }
15117 : : break;
15118 : : }
15119 : 0 : case GE_EXPR:
15120 : 0 : {
15121 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15122 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15123 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15124 : : {
15125 : 0 : {
15126 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q51, _p0 };
15127 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures);
15128 : 0 : if (res) return res;
15129 : : }
15130 : : }
15131 : : break;
15132 : : }
15133 : 0 : case LE_EXPR:
15134 : 0 : {
15135 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15136 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15137 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15138 : : {
15139 : 0 : {
15140 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q50, _p0 };
15141 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures);
15142 : 0 : if (res) return res;
15143 : : }
15144 : : }
15145 : : break;
15146 : : }
15147 : : default:;
15148 : : }
15149 : : }
15150 : 1062 : switch (TREE_CODE (_p1))
15151 : : {
15152 : 527 : case EQ_EXPR:
15153 : 527 : {
15154 : 527 : tree _q50 = TREE_OPERAND (_p1, 0);
15155 : 527 : tree _q51 = TREE_OPERAND (_p1, 1);
15156 : 527 : switch (TREE_CODE (_q50))
15157 : : {
15158 : 0 : CASE_CONVERT:
15159 : 0 : {
15160 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
15161 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
15162 : : {
15163 : 0 : {
15164 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15165 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15166 : 0 : if (res) return res;
15167 : : }
15168 : : }
15169 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
15170 : : {
15171 : 0 : {
15172 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15173 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15174 : 0 : if (res) return res;
15175 : : }
15176 : : }
15177 : : break;
15178 : : }
15179 : 527 : default:;
15180 : : }
15181 : 527 : switch (TREE_CODE (_q51))
15182 : : {
15183 : 0 : CASE_CONVERT:
15184 : 0 : {
15185 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
15186 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
15187 : : {
15188 : 0 : {
15189 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15190 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15191 : 0 : if (res) return res;
15192 : : }
15193 : : }
15194 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
15195 : : {
15196 : 0 : {
15197 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15198 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15199 : 0 : if (res) return res;
15200 : : }
15201 : : }
15202 : : break;
15203 : : }
15204 : : default:;
15205 : : }
15206 : : break;
15207 : : }
15208 : 33 : case NE_EXPR:
15209 : 33 : {
15210 : 33 : tree _q50 = TREE_OPERAND (_p1, 0);
15211 : 33 : tree _q51 = TREE_OPERAND (_p1, 1);
15212 : 33 : switch (TREE_CODE (_q50))
15213 : : {
15214 : 0 : CASE_CONVERT:
15215 : 0 : {
15216 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
15217 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
15218 : : {
15219 : 0 : {
15220 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15221 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
15222 : 0 : if (res) return res;
15223 : : }
15224 : : }
15225 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
15226 : : {
15227 : 0 : {
15228 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15229 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
15230 : 0 : if (res) return res;
15231 : : }
15232 : : }
15233 : : break;
15234 : : }
15235 : 33 : default:;
15236 : : }
15237 : 33 : switch (TREE_CODE (_q51))
15238 : : {
15239 : 0 : CASE_CONVERT:
15240 : 0 : {
15241 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
15242 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
15243 : : {
15244 : 0 : {
15245 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15246 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
15247 : 0 : if (res) return res;
15248 : : }
15249 : : }
15250 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
15251 : : {
15252 : 0 : {
15253 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15254 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
15255 : 0 : if (res) return res;
15256 : : }
15257 : : }
15258 : : break;
15259 : : }
15260 : : default:;
15261 : : }
15262 : : break;
15263 : : }
15264 : 19 : case LT_EXPR:
15265 : 19 : {
15266 : 19 : tree _q50 = TREE_OPERAND (_p1, 0);
15267 : 19 : tree _q51 = TREE_OPERAND (_p1, 1);
15268 : 19 : switch (TREE_CODE (_q50))
15269 : : {
15270 : 0 : CASE_CONVERT:
15271 : 0 : {
15272 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
15273 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
15274 : : {
15275 : 0 : {
15276 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15277 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15278 : 0 : if (res) return res;
15279 : : }
15280 : : }
15281 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
15282 : : {
15283 : 0 : {
15284 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15285 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15286 : 0 : if (res) return res;
15287 : : }
15288 : : }
15289 : : break;
15290 : : }
15291 : 19 : default:;
15292 : : }
15293 : 19 : switch (TREE_CODE (_q51))
15294 : : {
15295 : 0 : CASE_CONVERT:
15296 : 0 : {
15297 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
15298 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
15299 : : {
15300 : 0 : {
15301 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15302 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15303 : 0 : if (res) return res;
15304 : : }
15305 : : }
15306 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
15307 : : {
15308 : 0 : {
15309 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15310 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15311 : 0 : if (res) return res;
15312 : : }
15313 : : }
15314 : : break;
15315 : : }
15316 : : default:;
15317 : : }
15318 : : break;
15319 : : }
15320 : 12 : case GT_EXPR:
15321 : 12 : {
15322 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
15323 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
15324 : 12 : switch (TREE_CODE (_q50))
15325 : : {
15326 : 0 : CASE_CONVERT:
15327 : 0 : {
15328 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
15329 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
15330 : : {
15331 : 0 : {
15332 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15333 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15334 : 0 : if (res) return res;
15335 : : }
15336 : : }
15337 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
15338 : : {
15339 : 0 : {
15340 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15341 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15342 : 0 : if (res) return res;
15343 : : }
15344 : : }
15345 : : break;
15346 : : }
15347 : 12 : default:;
15348 : : }
15349 : 12 : switch (TREE_CODE (_q51))
15350 : : {
15351 : 0 : CASE_CONVERT:
15352 : 0 : {
15353 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
15354 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
15355 : : {
15356 : 0 : {
15357 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15358 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15359 : 0 : if (res) return res;
15360 : : }
15361 : : }
15362 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
15363 : : {
15364 : 0 : {
15365 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15366 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15367 : 0 : if (res) return res;
15368 : : }
15369 : : }
15370 : : break;
15371 : : }
15372 : : default:;
15373 : : }
15374 : : break;
15375 : : }
15376 : 36 : case LE_EXPR:
15377 : 36 : {
15378 : 36 : tree _q50 = TREE_OPERAND (_p1, 0);
15379 : 36 : tree _q51 = TREE_OPERAND (_p1, 1);
15380 : 36 : switch (TREE_CODE (_q50))
15381 : : {
15382 : 12 : CASE_CONVERT:
15383 : 12 : {
15384 : 12 : tree _q60 = TREE_OPERAND (_q50, 0);
15385 : 12 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
15386 : : {
15387 : 0 : {
15388 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15389 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
15390 : 0 : if (res) return res;
15391 : : }
15392 : : }
15393 : 12 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
15394 : : {
15395 : 0 : {
15396 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15397 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
15398 : 0 : if (res) return res;
15399 : : }
15400 : : }
15401 : : break;
15402 : : }
15403 : 36 : default:;
15404 : : }
15405 : 36 : switch (TREE_CODE (_q51))
15406 : : {
15407 : 0 : CASE_CONVERT:
15408 : 0 : {
15409 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
15410 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
15411 : : {
15412 : 0 : {
15413 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15414 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
15415 : 0 : if (res) return res;
15416 : : }
15417 : : }
15418 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
15419 : : {
15420 : 0 : {
15421 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15422 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
15423 : 0 : if (res) return res;
15424 : : }
15425 : : }
15426 : : break;
15427 : : }
15428 : : default:;
15429 : : }
15430 : : break;
15431 : : }
15432 : 4 : case GE_EXPR:
15433 : 4 : {
15434 : 4 : tree _q50 = TREE_OPERAND (_p1, 0);
15435 : 4 : tree _q51 = TREE_OPERAND (_p1, 1);
15436 : 4 : switch (TREE_CODE (_q50))
15437 : : {
15438 : 0 : CASE_CONVERT:
15439 : 0 : {
15440 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
15441 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
15442 : : {
15443 : 0 : {
15444 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15445 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
15446 : 0 : if (res) return res;
15447 : : }
15448 : : }
15449 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
15450 : : {
15451 : 0 : {
15452 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15453 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
15454 : 0 : if (res) return res;
15455 : : }
15456 : : }
15457 : : break;
15458 : : }
15459 : 4 : default:;
15460 : : }
15461 : 4 : switch (TREE_CODE (_q51))
15462 : : {
15463 : 0 : CASE_CONVERT:
15464 : 0 : {
15465 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
15466 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
15467 : : {
15468 : 0 : {
15469 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15470 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
15471 : 0 : if (res) return res;
15472 : : }
15473 : : }
15474 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
15475 : : {
15476 : 0 : {
15477 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15478 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
15479 : 0 : if (res) return res;
15480 : : }
15481 : : }
15482 : : break;
15483 : : }
15484 : : default:;
15485 : : }
15486 : : break;
15487 : : }
15488 : 1062 : default:;
15489 : : }
15490 : 1062 : switch (TREE_CODE (_q20))
15491 : : {
15492 : 0 : CASE_CONVERT:
15493 : 0 : {
15494 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
15495 : 0 : switch (TREE_CODE (_p1))
15496 : : {
15497 : 0 : case EQ_EXPR:
15498 : 0 : {
15499 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
15500 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
15501 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
15502 : : {
15503 : 0 : {
15504 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
15505 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15506 : 0 : if (res) return res;
15507 : : }
15508 : : }
15509 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
15510 : : {
15511 : 0 : {
15512 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
15513 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15514 : 0 : if (res) return res;
15515 : : }
15516 : : }
15517 : : break;
15518 : : }
15519 : 0 : case NE_EXPR:
15520 : 0 : {
15521 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
15522 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
15523 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
15524 : : {
15525 : 0 : {
15526 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
15527 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15528 : 0 : if (res) return res;
15529 : : }
15530 : : }
15531 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
15532 : : {
15533 : 0 : {
15534 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
15535 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15536 : 0 : if (res) return res;
15537 : : }
15538 : : }
15539 : : break;
15540 : : }
15541 : : default:;
15542 : : }
15543 : : break;
15544 : : }
15545 : 1062 : default:;
15546 : : }
15547 : 1062 : switch (TREE_CODE (_q21))
15548 : : {
15549 : 0 : CASE_CONVERT:
15550 : 0 : {
15551 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
15552 : 0 : switch (TREE_CODE (_p1))
15553 : : {
15554 : 0 : case EQ_EXPR:
15555 : 0 : {
15556 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
15557 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
15558 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
15559 : : {
15560 : 0 : {
15561 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
15562 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15563 : 0 : if (res) return res;
15564 : : }
15565 : : }
15566 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
15567 : : {
15568 : 0 : {
15569 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
15570 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15571 : 0 : if (res) return res;
15572 : : }
15573 : : }
15574 : : break;
15575 : : }
15576 : 0 : case NE_EXPR:
15577 : 0 : {
15578 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
15579 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
15580 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
15581 : : {
15582 : 0 : {
15583 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
15584 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15585 : 0 : if (res) return res;
15586 : : }
15587 : : }
15588 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
15589 : : {
15590 : 0 : {
15591 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
15592 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15593 : 0 : if (res) return res;
15594 : : }
15595 : : }
15596 : : break;
15597 : : }
15598 : : default:;
15599 : : }
15600 : : break;
15601 : : }
15602 : 1062 : default:;
15603 : : }
15604 : 1062 : switch (TREE_CODE (_p1))
15605 : : {
15606 : 527 : case EQ_EXPR:
15607 : 527 : {
15608 : 527 : tree _q50 = TREE_OPERAND (_p1, 0);
15609 : 527 : tree _q51 = TREE_OPERAND (_p1, 1);
15610 : 527 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15611 : : {
15612 : 0 : {
15613 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15614 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15615 : 0 : if (res) return res;
15616 : : }
15617 : 0 : {
15618 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
15619 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15620 : 0 : if (res) return res;
15621 : : }
15622 : : }
15623 : 527 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15624 : : {
15625 : 0 : {
15626 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15627 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15628 : 0 : if (res) return res;
15629 : : }
15630 : : }
15631 : 527 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15632 : : {
15633 : 0 : {
15634 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15635 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15636 : 0 : if (res) return res;
15637 : : }
15638 : 0 : {
15639 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
15640 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15641 : 0 : if (res) return res;
15642 : : }
15643 : : }
15644 : 527 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15645 : : {
15646 : 178 : {
15647 : 178 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15648 : 178 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15649 : 178 : if (res) return res;
15650 : : }
15651 : 178 : {
15652 : 178 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
15653 : 178 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15654 : 178 : if (res) return res;
15655 : : }
15656 : : }
15657 : 527 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15658 : : {
15659 : 0 : {
15660 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
15661 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15662 : 0 : if (res) return res;
15663 : : }
15664 : : }
15665 : : break;
15666 : : }
15667 : 33 : case NE_EXPR:
15668 : 33 : {
15669 : 33 : tree _q50 = TREE_OPERAND (_p1, 0);
15670 : 33 : tree _q51 = TREE_OPERAND (_p1, 1);
15671 : 33 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15672 : : {
15673 : 0 : {
15674 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15675 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
15676 : 0 : if (res) return res;
15677 : : }
15678 : 0 : {
15679 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
15680 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15681 : 0 : if (res) return res;
15682 : : }
15683 : : }
15684 : 33 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15685 : : {
15686 : 0 : {
15687 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15688 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
15689 : 0 : if (res) return res;
15690 : : }
15691 : : }
15692 : 33 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15693 : : {
15694 : 0 : {
15695 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15696 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
15697 : 0 : if (res) return res;
15698 : : }
15699 : 0 : {
15700 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
15701 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15702 : 0 : if (res) return res;
15703 : : }
15704 : : }
15705 : 33 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15706 : : {
15707 : 11 : {
15708 : 11 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15709 : 11 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
15710 : 11 : if (res) return res;
15711 : : }
15712 : 11 : {
15713 : 11 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
15714 : 11 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15715 : 11 : if (res) return res;
15716 : : }
15717 : : }
15718 : 33 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15719 : : {
15720 : 0 : {
15721 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
15722 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15723 : 0 : if (res) return res;
15724 : : }
15725 : : }
15726 : : break;
15727 : : }
15728 : 19 : case LT_EXPR:
15729 : 19 : {
15730 : 19 : tree _q50 = TREE_OPERAND (_p1, 0);
15731 : 19 : tree _q51 = TREE_OPERAND (_p1, 1);
15732 : 19 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15733 : : {
15734 : 0 : {
15735 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15736 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15737 : 0 : if (res) return res;
15738 : : }
15739 : : }
15740 : 19 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15741 : : {
15742 : 0 : {
15743 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15744 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15745 : 0 : if (res) return res;
15746 : : }
15747 : : }
15748 : 19 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15749 : : {
15750 : 0 : {
15751 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15752 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15753 : 0 : if (res) return res;
15754 : : }
15755 : : }
15756 : 19 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15757 : : {
15758 : 0 : {
15759 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15760 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15761 : 0 : if (res) return res;
15762 : : }
15763 : : }
15764 : : break;
15765 : : }
15766 : 12 : case GT_EXPR:
15767 : 12 : {
15768 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
15769 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
15770 : 12 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15771 : : {
15772 : 0 : {
15773 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15774 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15775 : 0 : if (res) return res;
15776 : : }
15777 : : }
15778 : 12 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15779 : : {
15780 : 0 : {
15781 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15782 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15783 : 0 : if (res) return res;
15784 : : }
15785 : : }
15786 : 12 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15787 : : {
15788 : 0 : {
15789 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15790 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15791 : 0 : if (res) return res;
15792 : : }
15793 : : }
15794 : 12 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15795 : : {
15796 : 0 : {
15797 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15798 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15799 : 0 : if (res) return res;
15800 : : }
15801 : : }
15802 : : break;
15803 : : }
15804 : 36 : case LE_EXPR:
15805 : 36 : {
15806 : 36 : tree _q50 = TREE_OPERAND (_p1, 0);
15807 : 36 : tree _q51 = TREE_OPERAND (_p1, 1);
15808 : 36 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15809 : : {
15810 : 0 : {
15811 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15812 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
15813 : 0 : if (res) return res;
15814 : : }
15815 : : }
15816 : 36 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15817 : : {
15818 : 0 : {
15819 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15820 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
15821 : 0 : if (res) return res;
15822 : : }
15823 : : }
15824 : 36 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15825 : : {
15826 : 0 : {
15827 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15828 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
15829 : 0 : if (res) return res;
15830 : : }
15831 : : }
15832 : 36 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15833 : : {
15834 : 0 : {
15835 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15836 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
15837 : 0 : if (res) return res;
15838 : : }
15839 : : }
15840 : : break;
15841 : : }
15842 : 4 : case GE_EXPR:
15843 : 4 : {
15844 : 4 : tree _q50 = TREE_OPERAND (_p1, 0);
15845 : 4 : tree _q51 = TREE_OPERAND (_p1, 1);
15846 : 4 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15847 : : {
15848 : 0 : {
15849 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15850 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
15851 : 0 : if (res) return res;
15852 : : }
15853 : : }
15854 : 4 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15855 : : {
15856 : 0 : {
15857 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15858 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
15859 : 0 : if (res) return res;
15860 : : }
15861 : : }
15862 : 4 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15863 : : {
15864 : 0 : {
15865 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15866 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
15867 : 0 : if (res) return res;
15868 : : }
15869 : : }
15870 : 4 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15871 : : {
15872 : 0 : {
15873 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15874 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
15875 : 0 : if (res) return res;
15876 : : }
15877 : : }
15878 : : break;
15879 : : }
15880 : : default:;
15881 : : }
15882 : : break;
15883 : : }
15884 : 132 : case NE_EXPR:
15885 : 132 : {
15886 : 132 : tree _q20 = TREE_OPERAND (_p0, 0);
15887 : 132 : tree _q21 = TREE_OPERAND (_p0, 1);
15888 : 132 : if (tree_min_value (_q21))
15889 : : {
15890 : 16 : switch (TREE_CODE (_p1))
15891 : : {
15892 : 0 : case GT_EXPR:
15893 : 0 : {
15894 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15895 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15896 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15897 : : {
15898 : 0 : {
15899 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q51 };
15900 : 0 : tree res = generic_simplify_433 (loc, type, _p0, _p1, captures, NE_EXPR);
15901 : 0 : if (res) return res;
15902 : : }
15903 : : }
15904 : : break;
15905 : : }
15906 : 0 : case LT_EXPR:
15907 : 0 : {
15908 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15909 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15910 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15911 : : {
15912 : 0 : {
15913 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q50 };
15914 : 0 : tree res = generic_simplify_433 (loc, type, _p0, _p1, captures, NE_EXPR);
15915 : 0 : if (res) return res;
15916 : : }
15917 : : }
15918 : : break;
15919 : : }
15920 : 3 : case GE_EXPR:
15921 : 3 : {
15922 : 3 : tree _q50 = TREE_OPERAND (_p1, 0);
15923 : 3 : tree _q51 = TREE_OPERAND (_p1, 1);
15924 : 3 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15925 : : {
15926 : 3 : {
15927 : 3 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q50 };
15928 : 3 : tree res = generic_simplify_439 (loc, type, _p0, _p1, captures);
15929 : 3 : if (res) return res;
15930 : : }
15931 : : }
15932 : : break;
15933 : : }
15934 : 0 : case LE_EXPR:
15935 : 0 : {
15936 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15937 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15938 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15939 : : {
15940 : 0 : {
15941 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q51 };
15942 : 0 : tree res = generic_simplify_439 (loc, type, _p0, _p1, captures);
15943 : 0 : if (res) return res;
15944 : : }
15945 : : }
15946 : : break;
15947 : : }
15948 : : default:;
15949 : : }
15950 : : }
15951 : 129 : if (tree_max_value (_q21))
15952 : : {
15953 : 0 : switch (TREE_CODE (_p1))
15954 : : {
15955 : 0 : case LT_EXPR:
15956 : 0 : {
15957 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15958 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15959 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15960 : : {
15961 : 0 : {
15962 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q51 };
15963 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, NE_EXPR);
15964 : 0 : if (res) return res;
15965 : : }
15966 : : }
15967 : : break;
15968 : : }
15969 : 0 : case GT_EXPR:
15970 : 0 : {
15971 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15972 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15973 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15974 : : {
15975 : 0 : {
15976 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q50 };
15977 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, NE_EXPR);
15978 : 0 : if (res) return res;
15979 : : }
15980 : : }
15981 : : break;
15982 : : }
15983 : : default:;
15984 : : }
15985 : : }
15986 : 129 : switch (TREE_CODE (_p1))
15987 : : {
15988 : 13 : case EQ_EXPR:
15989 : 13 : {
15990 : 13 : tree _q50 = TREE_OPERAND (_p1, 0);
15991 : 13 : tree _q51 = TREE_OPERAND (_p1, 1);
15992 : 13 : switch (TREE_CODE (_q50))
15993 : : {
15994 : 0 : CASE_CONVERT:
15995 : 0 : {
15996 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
15997 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
15998 : : {
15999 : 0 : {
16000 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16001 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16002 : 0 : if (res) return res;
16003 : : }
16004 : : }
16005 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
16006 : : {
16007 : 0 : {
16008 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16009 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16010 : 0 : if (res) return res;
16011 : : }
16012 : : }
16013 : : break;
16014 : : }
16015 : 13 : default:;
16016 : : }
16017 : 13 : switch (TREE_CODE (_q51))
16018 : : {
16019 : 0 : CASE_CONVERT:
16020 : 0 : {
16021 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
16022 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
16023 : : {
16024 : 0 : {
16025 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16026 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16027 : 0 : if (res) return res;
16028 : : }
16029 : : }
16030 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
16031 : : {
16032 : 0 : {
16033 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16034 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16035 : 0 : if (res) return res;
16036 : : }
16037 : : }
16038 : : break;
16039 : : }
16040 : : default:;
16041 : : }
16042 : : break;
16043 : : }
16044 : 3 : case NE_EXPR:
16045 : 3 : {
16046 : 3 : tree _q50 = TREE_OPERAND (_p1, 0);
16047 : 3 : tree _q51 = TREE_OPERAND (_p1, 1);
16048 : 3 : switch (TREE_CODE (_q50))
16049 : : {
16050 : 0 : CASE_CONVERT:
16051 : 0 : {
16052 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
16053 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
16054 : : {
16055 : 0 : {
16056 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16057 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16058 : 0 : if (res) return res;
16059 : : }
16060 : : }
16061 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
16062 : : {
16063 : 0 : {
16064 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16065 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16066 : 0 : if (res) return res;
16067 : : }
16068 : : }
16069 : : break;
16070 : : }
16071 : 3 : default:;
16072 : : }
16073 : 3 : switch (TREE_CODE (_q51))
16074 : : {
16075 : 0 : CASE_CONVERT:
16076 : 0 : {
16077 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
16078 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
16079 : : {
16080 : 0 : {
16081 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16082 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16083 : 0 : if (res) return res;
16084 : : }
16085 : : }
16086 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
16087 : : {
16088 : 0 : {
16089 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16090 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16091 : 0 : if (res) return res;
16092 : : }
16093 : : }
16094 : : break;
16095 : : }
16096 : : default:;
16097 : : }
16098 : : break;
16099 : : }
16100 : 0 : case LT_EXPR:
16101 : 0 : {
16102 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16103 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16104 : 0 : switch (TREE_CODE (_q50))
16105 : : {
16106 : 0 : CASE_CONVERT:
16107 : 0 : {
16108 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
16109 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
16110 : : {
16111 : 0 : {
16112 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16113 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
16114 : 0 : if (res) return res;
16115 : : }
16116 : : }
16117 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
16118 : : {
16119 : 0 : {
16120 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16121 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
16122 : 0 : if (res) return res;
16123 : : }
16124 : : }
16125 : : break;
16126 : : }
16127 : 0 : default:;
16128 : : }
16129 : 0 : switch (TREE_CODE (_q51))
16130 : : {
16131 : 0 : CASE_CONVERT:
16132 : 0 : {
16133 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
16134 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
16135 : : {
16136 : 0 : {
16137 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16138 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
16139 : 0 : if (res) return res;
16140 : : }
16141 : : }
16142 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
16143 : : {
16144 : 0 : {
16145 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16146 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
16147 : 0 : if (res) return res;
16148 : : }
16149 : : }
16150 : : break;
16151 : : }
16152 : : default:;
16153 : : }
16154 : : break;
16155 : : }
16156 : 4 : case GT_EXPR:
16157 : 4 : {
16158 : 4 : tree _q50 = TREE_OPERAND (_p1, 0);
16159 : 4 : tree _q51 = TREE_OPERAND (_p1, 1);
16160 : 4 : switch (TREE_CODE (_q50))
16161 : : {
16162 : 0 : CASE_CONVERT:
16163 : 0 : {
16164 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
16165 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
16166 : : {
16167 : 0 : {
16168 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16169 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
16170 : 0 : if (res) return res;
16171 : : }
16172 : : }
16173 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
16174 : : {
16175 : 0 : {
16176 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16177 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
16178 : 0 : if (res) return res;
16179 : : }
16180 : : }
16181 : : break;
16182 : : }
16183 : 4 : default:;
16184 : : }
16185 : 4 : switch (TREE_CODE (_q51))
16186 : : {
16187 : 0 : CASE_CONVERT:
16188 : 0 : {
16189 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
16190 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
16191 : : {
16192 : 0 : {
16193 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16194 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
16195 : 0 : if (res) return res;
16196 : : }
16197 : : }
16198 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
16199 : : {
16200 : 0 : {
16201 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16202 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
16203 : 0 : if (res) return res;
16204 : : }
16205 : : }
16206 : : break;
16207 : : }
16208 : : default:;
16209 : : }
16210 : : break;
16211 : : }
16212 : 0 : case LE_EXPR:
16213 : 0 : {
16214 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16215 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16216 : 0 : switch (TREE_CODE (_q50))
16217 : : {
16218 : 0 : CASE_CONVERT:
16219 : 0 : {
16220 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
16221 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
16222 : : {
16223 : 0 : {
16224 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16225 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16226 : 0 : if (res) return res;
16227 : : }
16228 : : }
16229 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
16230 : : {
16231 : 0 : {
16232 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16233 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16234 : 0 : if (res) return res;
16235 : : }
16236 : : }
16237 : : break;
16238 : : }
16239 : 0 : default:;
16240 : : }
16241 : 0 : switch (TREE_CODE (_q51))
16242 : : {
16243 : 0 : CASE_CONVERT:
16244 : 0 : {
16245 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
16246 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
16247 : : {
16248 : 0 : {
16249 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16250 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16251 : 0 : if (res) return res;
16252 : : }
16253 : : }
16254 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
16255 : : {
16256 : 0 : {
16257 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16258 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16259 : 0 : if (res) return res;
16260 : : }
16261 : : }
16262 : : break;
16263 : : }
16264 : : default:;
16265 : : }
16266 : : break;
16267 : : }
16268 : 14 : case GE_EXPR:
16269 : 14 : {
16270 : 14 : tree _q50 = TREE_OPERAND (_p1, 0);
16271 : 14 : tree _q51 = TREE_OPERAND (_p1, 1);
16272 : 14 : switch (TREE_CODE (_q50))
16273 : : {
16274 : 0 : CASE_CONVERT:
16275 : 0 : {
16276 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
16277 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
16278 : : {
16279 : 0 : {
16280 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16281 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16282 : 0 : if (res) return res;
16283 : : }
16284 : : }
16285 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
16286 : : {
16287 : 0 : {
16288 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16289 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16290 : 0 : if (res) return res;
16291 : : }
16292 : : }
16293 : : break;
16294 : : }
16295 : 14 : default:;
16296 : : }
16297 : 14 : switch (TREE_CODE (_q51))
16298 : : {
16299 : 0 : CASE_CONVERT:
16300 : 0 : {
16301 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
16302 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
16303 : : {
16304 : 0 : {
16305 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16306 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16307 : 0 : if (res) return res;
16308 : : }
16309 : : }
16310 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
16311 : : {
16312 : 0 : {
16313 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16314 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16315 : 0 : if (res) return res;
16316 : : }
16317 : : }
16318 : : break;
16319 : : }
16320 : : default:;
16321 : : }
16322 : : break;
16323 : : }
16324 : 129 : default:;
16325 : : }
16326 : 129 : switch (TREE_CODE (_q20))
16327 : : {
16328 : 0 : CASE_CONVERT:
16329 : 0 : {
16330 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
16331 : 0 : switch (TREE_CODE (_p1))
16332 : : {
16333 : 0 : case EQ_EXPR:
16334 : 0 : {
16335 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
16336 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
16337 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
16338 : : {
16339 : 0 : {
16340 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
16341 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16342 : 0 : if (res) return res;
16343 : : }
16344 : : }
16345 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
16346 : : {
16347 : 0 : {
16348 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
16349 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16350 : 0 : if (res) return res;
16351 : : }
16352 : : }
16353 : : break;
16354 : : }
16355 : 0 : case NE_EXPR:
16356 : 0 : {
16357 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
16358 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
16359 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
16360 : : {
16361 : 0 : {
16362 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
16363 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16364 : 0 : if (res) return res;
16365 : : }
16366 : : }
16367 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
16368 : : {
16369 : 0 : {
16370 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
16371 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16372 : 0 : if (res) return res;
16373 : : }
16374 : : }
16375 : : break;
16376 : : }
16377 : : default:;
16378 : : }
16379 : : break;
16380 : : }
16381 : 129 : default:;
16382 : : }
16383 : 129 : switch (TREE_CODE (_q21))
16384 : : {
16385 : 0 : CASE_CONVERT:
16386 : 0 : {
16387 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
16388 : 0 : switch (TREE_CODE (_p1))
16389 : : {
16390 : 0 : case EQ_EXPR:
16391 : 0 : {
16392 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
16393 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
16394 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
16395 : : {
16396 : 0 : {
16397 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
16398 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16399 : 0 : if (res) return res;
16400 : : }
16401 : : }
16402 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
16403 : : {
16404 : 0 : {
16405 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
16406 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16407 : 0 : if (res) return res;
16408 : : }
16409 : : }
16410 : : break;
16411 : : }
16412 : 0 : case NE_EXPR:
16413 : 0 : {
16414 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
16415 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
16416 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
16417 : : {
16418 : 0 : {
16419 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
16420 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16421 : 0 : if (res) return res;
16422 : : }
16423 : : }
16424 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
16425 : : {
16426 : 0 : {
16427 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
16428 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16429 : 0 : if (res) return res;
16430 : : }
16431 : : }
16432 : : break;
16433 : : }
16434 : : default:;
16435 : : }
16436 : : break;
16437 : : }
16438 : 129 : default:;
16439 : : }
16440 : 129 : switch (TREE_CODE (_p1))
16441 : : {
16442 : 13 : case EQ_EXPR:
16443 : 13 : {
16444 : 13 : tree _q50 = TREE_OPERAND (_p1, 0);
16445 : 13 : tree _q51 = TREE_OPERAND (_p1, 1);
16446 : 13 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16447 : : {
16448 : 0 : {
16449 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16450 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16451 : 0 : if (res) return res;
16452 : : }
16453 : 0 : {
16454 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
16455 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16456 : 0 : if (res) return res;
16457 : : }
16458 : : }
16459 : 13 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16460 : : {
16461 : 0 : {
16462 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16463 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16464 : 0 : if (res) return res;
16465 : : }
16466 : : }
16467 : 13 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16468 : : {
16469 : 0 : {
16470 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16471 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16472 : 0 : if (res) return res;
16473 : : }
16474 : 0 : {
16475 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
16476 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16477 : 0 : if (res) return res;
16478 : : }
16479 : : }
16480 : 13 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16481 : : {
16482 : 4 : {
16483 : 4 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16484 : 4 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16485 : 4 : if (res) return res;
16486 : : }
16487 : 4 : {
16488 : 4 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
16489 : 4 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16490 : 4 : if (res) return res;
16491 : : }
16492 : : }
16493 : 13 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16494 : : {
16495 : 0 : {
16496 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
16497 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16498 : 0 : if (res) return res;
16499 : : }
16500 : : }
16501 : : break;
16502 : : }
16503 : 3 : case NE_EXPR:
16504 : 3 : {
16505 : 3 : tree _q50 = TREE_OPERAND (_p1, 0);
16506 : 3 : tree _q51 = TREE_OPERAND (_p1, 1);
16507 : 3 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16508 : : {
16509 : 2 : {
16510 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16511 : 2 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16512 : 2 : if (res) return res;
16513 : : }
16514 : 2 : {
16515 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
16516 : 2 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16517 : 2 : if (res) return res;
16518 : : }
16519 : : }
16520 : 3 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16521 : : {
16522 : 0 : {
16523 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16524 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16525 : 0 : if (res) return res;
16526 : : }
16527 : : }
16528 : 3 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16529 : : {
16530 : 0 : {
16531 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16532 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16533 : 0 : if (res) return res;
16534 : : }
16535 : 0 : {
16536 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
16537 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16538 : 0 : if (res) return res;
16539 : : }
16540 : : }
16541 : 3 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16542 : : {
16543 : 0 : {
16544 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16545 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16546 : 0 : if (res) return res;
16547 : : }
16548 : 0 : {
16549 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
16550 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16551 : 0 : if (res) return res;
16552 : : }
16553 : : }
16554 : 3 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16555 : : {
16556 : 0 : {
16557 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
16558 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16559 : 0 : if (res) return res;
16560 : : }
16561 : : }
16562 : : break;
16563 : : }
16564 : 0 : case LT_EXPR:
16565 : 0 : {
16566 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16567 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16568 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16569 : : {
16570 : 0 : {
16571 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16572 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
16573 : 0 : if (res) return res;
16574 : : }
16575 : : }
16576 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16577 : : {
16578 : 0 : {
16579 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16580 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
16581 : 0 : if (res) return res;
16582 : : }
16583 : : }
16584 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16585 : : {
16586 : 0 : {
16587 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16588 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
16589 : 0 : if (res) return res;
16590 : : }
16591 : : }
16592 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16593 : : {
16594 : 0 : {
16595 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16596 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
16597 : 0 : if (res) return res;
16598 : : }
16599 : : }
16600 : : break;
16601 : : }
16602 : 4 : case GT_EXPR:
16603 : 4 : {
16604 : 4 : tree _q50 = TREE_OPERAND (_p1, 0);
16605 : 4 : tree _q51 = TREE_OPERAND (_p1, 1);
16606 : 4 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16607 : : {
16608 : 4 : {
16609 : 4 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16610 : 4 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
16611 : 4 : if (res) return res;
16612 : : }
16613 : : }
16614 : 4 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16615 : : {
16616 : 0 : {
16617 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16618 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
16619 : 0 : if (res) return res;
16620 : : }
16621 : : }
16622 : 4 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16623 : : {
16624 : 0 : {
16625 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16626 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
16627 : 0 : if (res) return res;
16628 : : }
16629 : : }
16630 : 4 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16631 : : {
16632 : 0 : {
16633 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16634 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
16635 : 0 : if (res) return res;
16636 : : }
16637 : : }
16638 : : break;
16639 : : }
16640 : 0 : case LE_EXPR:
16641 : 0 : {
16642 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16643 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16644 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16645 : : {
16646 : 0 : {
16647 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16648 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16649 : 0 : if (res) return res;
16650 : : }
16651 : : }
16652 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16653 : : {
16654 : 0 : {
16655 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16656 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16657 : 0 : if (res) return res;
16658 : : }
16659 : : }
16660 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16661 : : {
16662 : 0 : {
16663 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16664 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16665 : 0 : if (res) return res;
16666 : : }
16667 : : }
16668 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16669 : : {
16670 : 0 : {
16671 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16672 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16673 : 0 : if (res) return res;
16674 : : }
16675 : : }
16676 : : break;
16677 : : }
16678 : 14 : case GE_EXPR:
16679 : 14 : {
16680 : 14 : tree _q50 = TREE_OPERAND (_p1, 0);
16681 : 14 : tree _q51 = TREE_OPERAND (_p1, 1);
16682 : 14 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16683 : : {
16684 : 0 : {
16685 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16686 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16687 : 0 : if (res) return res;
16688 : : }
16689 : : }
16690 : 14 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16691 : : {
16692 : 0 : {
16693 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16694 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16695 : 0 : if (res) return res;
16696 : : }
16697 : : }
16698 : 14 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16699 : : {
16700 : 0 : {
16701 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16702 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16703 : 0 : if (res) return res;
16704 : : }
16705 : : }
16706 : 14 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16707 : : {
16708 : 14 : {
16709 : 14 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16710 : 14 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16711 : 14 : if (res) return res;
16712 : : }
16713 : : }
16714 : : break;
16715 : : }
16716 : : default:;
16717 : : }
16718 : : break;
16719 : : }
16720 : 36 : case LE_EXPR:
16721 : 36 : {
16722 : 36 : tree _q20 = TREE_OPERAND (_p0, 0);
16723 : 36 : tree _q21 = TREE_OPERAND (_p0, 1);
16724 : 36 : switch (TREE_CODE (_p1))
16725 : : {
16726 : 16 : case EQ_EXPR:
16727 : 16 : {
16728 : 16 : tree _q50 = TREE_OPERAND (_p1, 0);
16729 : 16 : tree _q51 = TREE_OPERAND (_p1, 1);
16730 : 16 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16731 : : {
16732 : 4 : if (tree_min_value (_q51))
16733 : : {
16734 : 4 : {
16735 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
16736 : 4 : tree res = generic_simplify_440 (loc, type, _p0, _p1, captures);
16737 : 4 : if (res) return res;
16738 : : }
16739 : : }
16740 : : }
16741 : 12 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16742 : : {
16743 : 0 : if (tree_max_value (_q51))
16744 : : {
16745 : 0 : {
16746 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _p1 };
16747 : 0 : tree res = generic_simplify_441 (loc, type, _p0, _p1, captures);
16748 : 0 : if (res) return res;
16749 : : }
16750 : : }
16751 : : }
16752 : : break;
16753 : : }
16754 : 0 : case NE_EXPR:
16755 : 0 : {
16756 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16757 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16758 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16759 : : {
16760 : 0 : if (tree_min_value (_q51))
16761 : : {
16762 : 0 : {
16763 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q20, _p0, _q21 };
16764 : 0 : tree res = generic_simplify_442 (loc, type, _p0, _p1, captures);
16765 : 0 : if (res) return res;
16766 : : }
16767 : : }
16768 : : }
16769 : : break;
16770 : : }
16771 : 32 : default:;
16772 : : }
16773 : 32 : switch (TREE_CODE (_q20))
16774 : : {
16775 : 0 : CASE_CONVERT:
16776 : 0 : {
16777 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
16778 : 0 : switch (TREE_CODE (_p1))
16779 : : {
16780 : 0 : case EQ_EXPR:
16781 : 0 : {
16782 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
16783 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
16784 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
16785 : : {
16786 : 0 : {
16787 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
16788 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
16789 : 0 : if (res) return res;
16790 : : }
16791 : : }
16792 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
16793 : : {
16794 : 0 : {
16795 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
16796 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
16797 : 0 : if (res) return res;
16798 : : }
16799 : : }
16800 : : break;
16801 : : }
16802 : 0 : case NE_EXPR:
16803 : 0 : {
16804 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
16805 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
16806 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
16807 : : {
16808 : 0 : {
16809 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
16810 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16811 : 0 : if (res) return res;
16812 : : }
16813 : : }
16814 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
16815 : : {
16816 : 0 : {
16817 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
16818 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16819 : 0 : if (res) return res;
16820 : : }
16821 : : }
16822 : : break;
16823 : : }
16824 : : default:;
16825 : : }
16826 : : break;
16827 : : }
16828 : 32 : default:;
16829 : : }
16830 : 32 : switch (TREE_CODE (_q21))
16831 : : {
16832 : 0 : CASE_CONVERT:
16833 : 0 : {
16834 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
16835 : 0 : switch (TREE_CODE (_p1))
16836 : : {
16837 : 0 : case EQ_EXPR:
16838 : 0 : {
16839 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
16840 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
16841 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
16842 : : {
16843 : 0 : {
16844 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
16845 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
16846 : 0 : if (res) return res;
16847 : : }
16848 : : }
16849 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
16850 : : {
16851 : 0 : {
16852 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
16853 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
16854 : 0 : if (res) return res;
16855 : : }
16856 : : }
16857 : : break;
16858 : : }
16859 : 0 : case NE_EXPR:
16860 : 0 : {
16861 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
16862 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
16863 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
16864 : : {
16865 : 0 : {
16866 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
16867 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16868 : 0 : if (res) return res;
16869 : : }
16870 : : }
16871 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
16872 : : {
16873 : 0 : {
16874 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
16875 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16876 : 0 : if (res) return res;
16877 : : }
16878 : : }
16879 : : break;
16880 : : }
16881 : : default:;
16882 : : }
16883 : : break;
16884 : : }
16885 : 32 : default:;
16886 : : }
16887 : 32 : switch (TREE_CODE (_p1))
16888 : : {
16889 : 12 : case EQ_EXPR:
16890 : 12 : {
16891 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
16892 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
16893 : 12 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16894 : : {
16895 : 0 : {
16896 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
16897 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
16898 : 0 : if (res) return res;
16899 : : }
16900 : : }
16901 : 12 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16902 : : {
16903 : 0 : {
16904 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
16905 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
16906 : 0 : if (res) return res;
16907 : : }
16908 : : }
16909 : 12 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16910 : : {
16911 : 0 : {
16912 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
16913 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
16914 : 0 : if (res) return res;
16915 : : }
16916 : : }
16917 : 12 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16918 : : {
16919 : 0 : {
16920 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
16921 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
16922 : 0 : if (res) return res;
16923 : : }
16924 : : }
16925 : : break;
16926 : : }
16927 : 0 : case NE_EXPR:
16928 : 0 : {
16929 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16930 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16931 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16932 : : {
16933 : 0 : {
16934 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
16935 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16936 : 0 : if (res) return res;
16937 : : }
16938 : : }
16939 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16940 : : {
16941 : 0 : {
16942 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
16943 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16944 : 0 : if (res) return res;
16945 : : }
16946 : : }
16947 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16948 : : {
16949 : 0 : {
16950 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
16951 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16952 : 0 : if (res) return res;
16953 : : }
16954 : : }
16955 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16956 : : {
16957 : 0 : {
16958 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
16959 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16960 : 0 : if (res) return res;
16961 : : }
16962 : : }
16963 : : break;
16964 : : }
16965 : 0 : case LT_EXPR:
16966 : 0 : {
16967 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16968 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16969 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16970 : : {
16971 : 0 : {
16972 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
16973 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, LE_EXPR);
16974 : 0 : if (res) return res;
16975 : : }
16976 : : }
16977 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16978 : : {
16979 : 0 : {
16980 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
16981 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
16982 : 0 : if (res) return res;
16983 : : }
16984 : : }
16985 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16986 : : {
16987 : 0 : {
16988 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
16989 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR);
16990 : 0 : if (res) return res;
16991 : : }
16992 : : }
16993 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16994 : : {
16995 : 0 : {
16996 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
16997 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, GE_EXPR);
16998 : 0 : if (res) return res;
16999 : : }
17000 : : }
17001 : : break;
17002 : : }
17003 : 5 : case LE_EXPR:
17004 : 5 : {
17005 : 5 : tree _q50 = TREE_OPERAND (_p1, 0);
17006 : 5 : tree _q51 = TREE_OPERAND (_p1, 1);
17007 : 5 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17008 : : {
17009 : 0 : {
17010 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
17011 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, LE_EXPR);
17012 : 0 : if (res) return res;
17013 : : }
17014 : : }
17015 : 5 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17016 : : {
17017 : 0 : {
17018 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
17019 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, LE_EXPR);
17020 : 0 : if (res) return res;
17021 : : }
17022 : : }
17023 : 5 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17024 : : {
17025 : 0 : {
17026 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
17027 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR);
17028 : 0 : if (res) return res;
17029 : : }
17030 : : }
17031 : 5 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17032 : : {
17033 : 4 : {
17034 : 4 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
17035 : 4 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, GE_EXPR);
17036 : 4 : if (res) return res;
17037 : : }
17038 : : }
17039 : : break;
17040 : : }
17041 : 4 : case GT_EXPR:
17042 : 4 : {
17043 : 4 : tree _q50 = TREE_OPERAND (_p1, 0);
17044 : 4 : tree _q51 = TREE_OPERAND (_p1, 1);
17045 : 4 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17046 : : {
17047 : 0 : {
17048 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
17049 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
17050 : 0 : if (res) return res;
17051 : : }
17052 : : }
17053 : 4 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17054 : : {
17055 : 0 : {
17056 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
17057 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, LE_EXPR);
17058 : 0 : if (res) return res;
17059 : : }
17060 : : }
17061 : 4 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17062 : : {
17063 : 0 : {
17064 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
17065 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, GE_EXPR);
17066 : 0 : if (res) return res;
17067 : : }
17068 : : }
17069 : 4 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17070 : : {
17071 : 0 : {
17072 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
17073 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR);
17074 : 0 : if (res) return res;
17075 : : }
17076 : : }
17077 : : break;
17078 : : }
17079 : 0 : case GE_EXPR:
17080 : 0 : {
17081 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
17082 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
17083 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17084 : : {
17085 : 0 : {
17086 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
17087 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, LE_EXPR);
17088 : 0 : if (res) return res;
17089 : : }
17090 : : }
17091 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17092 : : {
17093 : 0 : {
17094 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
17095 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, LE_EXPR);
17096 : 0 : if (res) return res;
17097 : : }
17098 : : }
17099 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17100 : : {
17101 : 0 : {
17102 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
17103 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, GE_EXPR);
17104 : 0 : if (res) return res;
17105 : : }
17106 : : }
17107 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17108 : : {
17109 : 0 : {
17110 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
17111 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR);
17112 : 0 : if (res) return res;
17113 : : }
17114 : : }
17115 : : break;
17116 : : }
17117 : : default:;
17118 : : }
17119 : : break;
17120 : : }
17121 : 57 : case GE_EXPR:
17122 : 57 : {
17123 : 57 : tree _q20 = TREE_OPERAND (_p0, 0);
17124 : 57 : tree _q21 = TREE_OPERAND (_p0, 1);
17125 : 57 : switch (TREE_CODE (_p1))
17126 : : {
17127 : 10 : case EQ_EXPR:
17128 : 10 : {
17129 : 10 : tree _q50 = TREE_OPERAND (_p1, 0);
17130 : 10 : tree _q51 = TREE_OPERAND (_p1, 1);
17131 : 10 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17132 : : {
17133 : 0 : if (tree_min_value (_q51))
17134 : : {
17135 : 0 : {
17136 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _p1 };
17137 : 0 : tree res = generic_simplify_440 (loc, type, _p0, _p1, captures);
17138 : 0 : if (res) return res;
17139 : : }
17140 : : }
17141 : : }
17142 : 10 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17143 : : {
17144 : 4 : if (tree_max_value (_q51))
17145 : : {
17146 : 4 : {
17147 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
17148 : 4 : tree res = generic_simplify_441 (loc, type, _p0, _p1, captures);
17149 : 4 : if (res) return res;
17150 : : }
17151 : : }
17152 : : }
17153 : : break;
17154 : : }
17155 : 0 : case NE_EXPR:
17156 : 0 : {
17157 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
17158 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
17159 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17160 : : {
17161 : 0 : if (tree_min_value (_q51))
17162 : : {
17163 : 0 : {
17164 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q21, _p0, _q20 };
17165 : 0 : tree res = generic_simplify_442 (loc, type, _p0, _p1, captures);
17166 : 0 : if (res) return res;
17167 : : }
17168 : : }
17169 : : }
17170 : : break;
17171 : : }
17172 : 53 : default:;
17173 : : }
17174 : 53 : switch (TREE_CODE (_q20))
17175 : : {
17176 : 4 : CASE_CONVERT:
17177 : 4 : {
17178 : 4 : tree _q30 = TREE_OPERAND (_q20, 0);
17179 : 4 : switch (TREE_CODE (_p1))
17180 : : {
17181 : 0 : case EQ_EXPR:
17182 : 0 : {
17183 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
17184 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
17185 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
17186 : : {
17187 : 0 : {
17188 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
17189 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
17190 : 0 : if (res) return res;
17191 : : }
17192 : : }
17193 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
17194 : : {
17195 : 0 : {
17196 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
17197 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
17198 : 0 : if (res) return res;
17199 : : }
17200 : : }
17201 : : break;
17202 : : }
17203 : 0 : case NE_EXPR:
17204 : 0 : {
17205 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
17206 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
17207 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
17208 : : {
17209 : 0 : {
17210 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
17211 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
17212 : 0 : if (res) return res;
17213 : : }
17214 : : }
17215 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
17216 : : {
17217 : 0 : {
17218 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
17219 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
17220 : 0 : if (res) return res;
17221 : : }
17222 : : }
17223 : : break;
17224 : : }
17225 : : default:;
17226 : : }
17227 : : break;
17228 : : }
17229 : 53 : default:;
17230 : : }
17231 : 53 : switch (TREE_CODE (_q21))
17232 : : {
17233 : 0 : CASE_CONVERT:
17234 : 0 : {
17235 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
17236 : 0 : switch (TREE_CODE (_p1))
17237 : : {
17238 : 0 : case EQ_EXPR:
17239 : 0 : {
17240 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
17241 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
17242 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
17243 : : {
17244 : 0 : {
17245 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
17246 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
17247 : 0 : if (res) return res;
17248 : : }
17249 : : }
17250 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
17251 : : {
17252 : 0 : {
17253 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
17254 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
17255 : 0 : if (res) return res;
17256 : : }
17257 : : }
17258 : : break;
17259 : : }
17260 : 0 : case NE_EXPR:
17261 : 0 : {
17262 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
17263 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
17264 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
17265 : : {
17266 : 0 : {
17267 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
17268 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
17269 : 0 : if (res) return res;
17270 : : }
17271 : : }
17272 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
17273 : : {
17274 : 0 : {
17275 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
17276 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
17277 : 0 : if (res) return res;
17278 : : }
17279 : : }
17280 : : break;
17281 : : }
17282 : : default:;
17283 : : }
17284 : : break;
17285 : : }
17286 : 53 : default:;
17287 : : }
17288 : 53 : switch (TREE_CODE (_p1))
17289 : : {
17290 : 6 : case EQ_EXPR:
17291 : 6 : {
17292 : 6 : tree _q50 = TREE_OPERAND (_p1, 0);
17293 : 6 : tree _q51 = TREE_OPERAND (_p1, 1);
17294 : 6 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17295 : : {
17296 : 0 : {
17297 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
17298 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
17299 : 0 : if (res) return res;
17300 : : }
17301 : : }
17302 : 6 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17303 : : {
17304 : 0 : {
17305 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
17306 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
17307 : 0 : if (res) return res;
17308 : : }
17309 : : }
17310 : 6 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17311 : : {
17312 : 0 : {
17313 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
17314 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
17315 : 0 : if (res) return res;
17316 : : }
17317 : : }
17318 : 6 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17319 : : {
17320 : 0 : {
17321 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
17322 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
17323 : 0 : if (res) return res;
17324 : : }
17325 : : }
17326 : : break;
17327 : : }
17328 : 0 : case NE_EXPR:
17329 : 0 : {
17330 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
17331 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
17332 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17333 : : {
17334 : 0 : {
17335 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
17336 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
17337 : 0 : if (res) return res;
17338 : : }
17339 : : }
17340 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17341 : : {
17342 : 0 : {
17343 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
17344 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
17345 : 0 : if (res) return res;
17346 : : }
17347 : : }
17348 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17349 : : {
17350 : 0 : {
17351 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
17352 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
17353 : 0 : if (res) return res;
17354 : : }
17355 : : }
17356 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17357 : : {
17358 : 0 : {
17359 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
17360 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
17361 : 0 : if (res) return res;
17362 : : }
17363 : : }
17364 : : break;
17365 : : }
17366 : 0 : case LT_EXPR:
17367 : 0 : {
17368 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
17369 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
17370 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17371 : : {
17372 : 0 : {
17373 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
17374 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR);
17375 : 0 : if (res) return res;
17376 : : }
17377 : : }
17378 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17379 : : {
17380 : 0 : {
17381 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
17382 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, GE_EXPR);
17383 : 0 : if (res) return res;
17384 : : }
17385 : : }
17386 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17387 : : {
17388 : 0 : {
17389 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
17390 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, LE_EXPR);
17391 : 0 : if (res) return res;
17392 : : }
17393 : : }
17394 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17395 : : {
17396 : 0 : {
17397 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
17398 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
17399 : 0 : if (res) return res;
17400 : : }
17401 : : }
17402 : : break;
17403 : : }
17404 : 8 : case LE_EXPR:
17405 : 8 : {
17406 : 8 : tree _q50 = TREE_OPERAND (_p1, 0);
17407 : 8 : tree _q51 = TREE_OPERAND (_p1, 1);
17408 : 8 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17409 : : {
17410 : 7 : {
17411 : 7 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
17412 : 7 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR);
17413 : 7 : if (res) return res;
17414 : : }
17415 : : }
17416 : 8 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17417 : : {
17418 : 0 : {
17419 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
17420 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, GE_EXPR);
17421 : 0 : if (res) return res;
17422 : : }
17423 : : }
17424 : 8 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17425 : : {
17426 : 0 : {
17427 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
17428 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, LE_EXPR);
17429 : 0 : if (res) return res;
17430 : : }
17431 : : }
17432 : 8 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17433 : : {
17434 : 0 : {
17435 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
17436 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, LE_EXPR);
17437 : 0 : if (res) return res;
17438 : : }
17439 : : }
17440 : : break;
17441 : : }
17442 : 0 : case GT_EXPR:
17443 : 0 : {
17444 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
17445 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
17446 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17447 : : {
17448 : 0 : {
17449 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
17450 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, GE_EXPR);
17451 : 0 : if (res) return res;
17452 : : }
17453 : : }
17454 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17455 : : {
17456 : 0 : {
17457 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
17458 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR);
17459 : 0 : if (res) return res;
17460 : : }
17461 : : }
17462 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17463 : : {
17464 : 0 : {
17465 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
17466 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
17467 : 0 : if (res) return res;
17468 : : }
17469 : : }
17470 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17471 : : {
17472 : 0 : {
17473 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
17474 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, LE_EXPR);
17475 : 0 : if (res) return res;
17476 : : }
17477 : : }
17478 : : break;
17479 : : }
17480 : 11 : case GE_EXPR:
17481 : 11 : {
17482 : 11 : tree _q50 = TREE_OPERAND (_p1, 0);
17483 : 11 : tree _q51 = TREE_OPERAND (_p1, 1);
17484 : 11 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17485 : : {
17486 : 7 : {
17487 : 7 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
17488 : 7 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, GE_EXPR);
17489 : 7 : if (res) return res;
17490 : : }
17491 : : }
17492 : 11 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17493 : : {
17494 : 0 : {
17495 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
17496 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR);
17497 : 0 : if (res) return res;
17498 : : }
17499 : : }
17500 : 11 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17501 : : {
17502 : 4 : {
17503 : 4 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
17504 : 4 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, LE_EXPR);
17505 : 4 : if (res) return res;
17506 : : }
17507 : : }
17508 : 11 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17509 : : {
17510 : 0 : {
17511 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
17512 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, LE_EXPR);
17513 : 0 : if (res) return res;
17514 : : }
17515 : : }
17516 : : break;
17517 : : }
17518 : : default:;
17519 : : }
17520 : : break;
17521 : : }
17522 : 0 : case MIN_EXPR:
17523 : 0 : {
17524 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
17525 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
17526 : 0 : switch (TREE_CODE (_p1))
17527 : : {
17528 : 0 : case MAX_EXPR:
17529 : 0 : {
17530 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
17531 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
17532 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17533 : : {
17534 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17535 : : {
17536 : 0 : {
17537 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
17538 : 0 : if (!HONOR_NANS (captures[0])
17539 : : )
17540 : : {
17541 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1847;
17542 : 0 : {
17543 : 0 : tree res_op0;
17544 : 0 : res_op0 = captures[0];
17545 : 0 : tree res_op1;
17546 : 0 : res_op1 = captures[1];
17547 : 0 : tree _r;
17548 : 0 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
17549 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 905, __FILE__, __LINE__, true);
17550 : 0 : return _r;
17551 : : }
17552 : 0 : next_after_fail1847:;
17553 : : }
17554 : : }
17555 : : }
17556 : : }
17557 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17558 : : {
17559 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17560 : : {
17561 : 0 : {
17562 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
17563 : 0 : if (!HONOR_NANS (captures[0])
17564 : : )
17565 : : {
17566 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1848;
17567 : 0 : {
17568 : 0 : tree res_op0;
17569 : 0 : res_op0 = captures[0];
17570 : 0 : tree res_op1;
17571 : 0 : res_op1 = captures[1];
17572 : 0 : tree _r;
17573 : 0 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
17574 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 905, __FILE__, __LINE__, true);
17575 : 0 : return _r;
17576 : : }
17577 : 0 : next_after_fail1848:;
17578 : : }
17579 : : }
17580 : : }
17581 : : }
17582 : : break;
17583 : : }
17584 : : default:;
17585 : : }
17586 : : break;
17587 : : }
17588 : 80 : case MAX_EXPR:
17589 : 80 : {
17590 : 80 : tree _q20 = TREE_OPERAND (_p0, 0);
17591 : 80 : tree _q21 = TREE_OPERAND (_p0, 1);
17592 : 80 : switch (TREE_CODE (_p1))
17593 : : {
17594 : 0 : case MIN_EXPR:
17595 : 0 : {
17596 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
17597 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
17598 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17599 : : {
17600 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17601 : : {
17602 : 0 : {
17603 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
17604 : 0 : if (!HONOR_NANS (captures[0])
17605 : : )
17606 : : {
17607 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1849;
17608 : 0 : {
17609 : 0 : tree res_op0;
17610 : 0 : res_op0 = captures[0];
17611 : 0 : tree res_op1;
17612 : 0 : res_op1 = captures[1];
17613 : 0 : tree _r;
17614 : 0 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
17615 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 905, __FILE__, __LINE__, true);
17616 : 0 : return _r;
17617 : : }
17618 : 0 : next_after_fail1849:;
17619 : : }
17620 : : }
17621 : : }
17622 : : }
17623 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17624 : : {
17625 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17626 : : {
17627 : 0 : {
17628 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
17629 : 0 : if (!HONOR_NANS (captures[0])
17630 : : )
17631 : : {
17632 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1850;
17633 : 0 : {
17634 : 0 : tree res_op0;
17635 : 0 : res_op0 = captures[0];
17636 : 0 : tree res_op1;
17637 : 0 : res_op1 = captures[1];
17638 : 0 : tree _r;
17639 : 0 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
17640 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 905, __FILE__, __LINE__, true);
17641 : 0 : return _r;
17642 : : }
17643 : 0 : next_after_fail1850:;
17644 : : }
17645 : : }
17646 : : }
17647 : : }
17648 : : break;
17649 : : }
17650 : : default:;
17651 : : }
17652 : : break;
17653 : : }
17654 : 34870 : case LSHIFT_EXPR:
17655 : 34870 : {
17656 : 34870 : tree _q20 = TREE_OPERAND (_p0, 0);
17657 : 34870 : tree _q21 = TREE_OPERAND (_p0, 1);
17658 : 34870 : switch (TREE_CODE (_q20))
17659 : : {
17660 : 5563 : case INTEGER_CST:
17661 : 5563 : {
17662 : 5563 : if (integer_onep (_p1))
17663 : : {
17664 : 44 : {
17665 : 44 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
17666 : 44 : if ((wi::to_wide (captures[0]) & 1) != 0
17667 : : )
17668 : : {
17669 : 40 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1851;
17670 : 40 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1851;
17671 : 40 : {
17672 : 40 : tree res_op0;
17673 : 40 : {
17674 : 40 : tree _o1[2], _r1;
17675 : 40 : _o1[0] = captures[1];
17676 : 40 : _o1[1] = build_zero_cst (TREE_TYPE (captures[1]));
17677 : 40 : _r1 = fold_build2_loc (loc, EQ_EXPR, boolean_type_node, _o1[0], _o1[1]);
17678 : 40 : res_op0 = _r1;
17679 : : }
17680 : 40 : tree _r;
17681 : 40 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
17682 : 40 : if (TREE_SIDE_EFFECTS (captures[0]))
17683 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
17684 : 40 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1034, __FILE__, __LINE__, true);
17685 : 40 : return _r;
17686 : : }
17687 : 0 : next_after_fail1851:;
17688 : : }
17689 : : else
17690 : : {
17691 : 4 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1852;
17692 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1852;
17693 : 4 : {
17694 : 4 : tree _r;
17695 : 4 : _r = build_zero_cst (type);
17696 : 4 : if (TREE_SIDE_EFFECTS (captures[0]))
17697 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
17698 : 4 : if (TREE_SIDE_EFFECTS (captures[1]))
17699 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
17700 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1035, __FILE__, __LINE__, true);
17701 : 4 : return _r;
17702 : : }
17703 : 0 : next_after_fail1852:;
17704 : : }
17705 : : }
17706 : : }
17707 : : break;
17708 : : }
17709 : 4844 : CASE_CONVERT:
17710 : 4844 : {
17711 : 4844 : tree _q30 = TREE_OPERAND (_q20, 0);
17712 : 4844 : switch (TREE_CODE (_q21))
17713 : : {
17714 : 4757 : case INTEGER_CST:
17715 : 4757 : {
17716 : 4757 : switch (TREE_CODE (_p1))
17717 : : {
17718 : 4757 : case INTEGER_CST:
17719 : 4757 : {
17720 : 4757 : {
17721 : 4757 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q30, _q21, _p1 };
17722 : 4757 : tree res = generic_simplify_443 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
17723 : 4757 : if (res) return res;
17724 : : }
17725 : 4129 : break;
17726 : : }
17727 : : default:;
17728 : : }
17729 : : break;
17730 : : }
17731 : : default:;
17732 : : }
17733 : : break;
17734 : : }
17735 : 34198 : default:;
17736 : : }
17737 : 34198 : switch (TREE_CODE (_q21))
17738 : : {
17739 : 28308 : case INTEGER_CST:
17740 : 28308 : {
17741 : 28308 : switch (TREE_CODE (_p1))
17742 : : {
17743 : 28271 : case INTEGER_CST:
17744 : 28271 : {
17745 : 28271 : {
17746 : 28271 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q20, _q21, _p1 };
17747 : 28271 : tree res = generic_simplify_444 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
17748 : 28271 : if (res) return res;
17749 : : }
17750 : 17852 : break;
17751 : : }
17752 : : default:;
17753 : : }
17754 : : break;
17755 : : }
17756 : : default:;
17757 : : }
17758 : : break;
17759 : : }
17760 : 71085 : case RSHIFT_EXPR:
17761 : 71085 : {
17762 : 71085 : tree _q20 = TREE_OPERAND (_p0, 0);
17763 : 71085 : tree _q21 = TREE_OPERAND (_p0, 1);
17764 : 71085 : switch (TREE_CODE (_q20))
17765 : : {
17766 : 47762 : CASE_CONVERT:
17767 : 47762 : {
17768 : 47762 : tree _q30 = TREE_OPERAND (_q20, 0);
17769 : 47762 : switch (TREE_CODE (_q21))
17770 : : {
17771 : 44669 : case INTEGER_CST:
17772 : 44669 : {
17773 : 44669 : switch (TREE_CODE (_p1))
17774 : : {
17775 : 44669 : case INTEGER_CST:
17776 : 44669 : {
17777 : 44669 : {
17778 : 44669 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q30, _q21, _p1 };
17779 : 44669 : tree res = generic_simplify_443 (loc, type, _p0, _p1, captures, RSHIFT_EXPR);
17780 : 44669 : if (res) return res;
17781 : : }
17782 : 44382 : break;
17783 : : }
17784 : : default:;
17785 : : }
17786 : : break;
17787 : : }
17788 : 47475 : default:;
17789 : : }
17790 : 47475 : switch (TREE_CODE (_q30))
17791 : : {
17792 : 22 : case CALL_EXPR:
17793 : 22 : switch (get_call_combined_fn (_q30))
17794 : : {
17795 : 0 : case CFN_BUILT_IN_BSWAP128:
17796 : 0 : if (call_expr_nargs (_q30) == 1)
17797 : : {
17798 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
17799 : 0 : switch (TREE_CODE (_q21))
17800 : : {
17801 : 0 : case INTEGER_CST:
17802 : 0 : {
17803 : 0 : switch (TREE_CODE (_p1))
17804 : : {
17805 : 0 : case INTEGER_CST:
17806 : 0 : {
17807 : 0 : {
17808 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q30, _q40, _q21, _p1 };
17809 : 0 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP128);
17810 : 0 : if (res) return res;
17811 : : }
17812 : 0 : break;
17813 : : }
17814 : : default:;
17815 : : }
17816 : : break;
17817 : : }
17818 : : default:;
17819 : : }
17820 : : }
17821 : : break;
17822 : 1 : case CFN_BUILT_IN_BSWAP16:
17823 : 1 : if (call_expr_nargs (_q30) == 1)
17824 : : {
17825 : 1 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
17826 : 1 : switch (TREE_CODE (_q21))
17827 : : {
17828 : 0 : case INTEGER_CST:
17829 : 0 : {
17830 : 0 : switch (TREE_CODE (_p1))
17831 : : {
17832 : 0 : case INTEGER_CST:
17833 : 0 : {
17834 : 0 : {
17835 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q30, _q40, _q21, _p1 };
17836 : 0 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP16);
17837 : 0 : if (res) return res;
17838 : : }
17839 : 0 : break;
17840 : : }
17841 : : default:;
17842 : : }
17843 : : break;
17844 : : }
17845 : : default:;
17846 : : }
17847 : : }
17848 : : break;
17849 : 9 : case CFN_BUILT_IN_BSWAP32:
17850 : 9 : if (call_expr_nargs (_q30) == 1)
17851 : : {
17852 : 9 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
17853 : 9 : switch (TREE_CODE (_q21))
17854 : : {
17855 : 9 : case INTEGER_CST:
17856 : 9 : {
17857 : 9 : switch (TREE_CODE (_p1))
17858 : : {
17859 : 9 : case INTEGER_CST:
17860 : 9 : {
17861 : 9 : {
17862 : 9 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q30, _q40, _q21, _p1 };
17863 : 9 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP32);
17864 : 9 : if (res) return res;
17865 : : }
17866 : 0 : break;
17867 : : }
17868 : : default:;
17869 : : }
17870 : : break;
17871 : : }
17872 : : default:;
17873 : : }
17874 : : }
17875 : : break;
17876 : 12 : case CFN_BUILT_IN_BSWAP64:
17877 : 12 : if (call_expr_nargs (_q30) == 1)
17878 : : {
17879 : 12 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
17880 : 12 : switch (TREE_CODE (_q21))
17881 : : {
17882 : 12 : case INTEGER_CST:
17883 : 12 : {
17884 : 12 : switch (TREE_CODE (_p1))
17885 : : {
17886 : 12 : case INTEGER_CST:
17887 : 12 : {
17888 : 12 : {
17889 : 12 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q30, _q40, _q21, _p1 };
17890 : 12 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP64);
17891 : 12 : if (res) return res;
17892 : : }
17893 : 0 : break;
17894 : : }
17895 : : default:;
17896 : : }
17897 : : break;
17898 : : }
17899 : : default:;
17900 : : }
17901 : : }
17902 : : break;
17903 : : default:;
17904 : : }
17905 : : break;
17906 : : default:;
17907 : : }
17908 : : break;
17909 : : }
17910 : 70777 : default:;
17911 : : }
17912 : 70777 : switch (TREE_CODE (_q21))
17913 : : {
17914 : 52868 : case INTEGER_CST:
17915 : 52868 : {
17916 : 52868 : switch (TREE_CODE (_p1))
17917 : : {
17918 : 52723 : case INTEGER_CST:
17919 : 52723 : {
17920 : 52723 : {
17921 : 52723 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q20, _q21, _p1 };
17922 : 52723 : tree res = generic_simplify_444 (loc, type, _p0, _p1, captures, RSHIFT_EXPR);
17923 : 52723 : if (res) return res;
17924 : : }
17925 : 51256 : break;
17926 : : }
17927 : : default:;
17928 : : }
17929 : : break;
17930 : : }
17931 : 69310 : default:;
17932 : : }
17933 : 69310 : switch (TREE_CODE (_q20))
17934 : : {
17935 : 140 : case CALL_EXPR:
17936 : 140 : switch (get_call_combined_fn (_q20))
17937 : : {
17938 : 0 : case CFN_BUILT_IN_BSWAP128:
17939 : 0 : if (call_expr_nargs (_q20) == 1)
17940 : : {
17941 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
17942 : 0 : switch (TREE_CODE (_q21))
17943 : : {
17944 : 0 : case INTEGER_CST:
17945 : 0 : {
17946 : 0 : switch (TREE_CODE (_p1))
17947 : : {
17948 : 0 : case INTEGER_CST:
17949 : 0 : {
17950 : 0 : {
17951 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _p1 };
17952 : 0 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP128);
17953 : 0 : if (res) return res;
17954 : : }
17955 : 0 : break;
17956 : : }
17957 : : default:;
17958 : : }
17959 : : break;
17960 : : }
17961 : : default:;
17962 : : }
17963 : : }
17964 : : break;
17965 : 0 : case CFN_BUILT_IN_BSWAP16:
17966 : 0 : if (call_expr_nargs (_q20) == 1)
17967 : : {
17968 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
17969 : 0 : switch (TREE_CODE (_q21))
17970 : : {
17971 : 0 : case INTEGER_CST:
17972 : 0 : {
17973 : 0 : switch (TREE_CODE (_p1))
17974 : : {
17975 : 0 : case INTEGER_CST:
17976 : 0 : {
17977 : 0 : {
17978 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _p1 };
17979 : 0 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP16);
17980 : 0 : if (res) return res;
17981 : : }
17982 : 0 : break;
17983 : : }
17984 : : default:;
17985 : : }
17986 : : break;
17987 : : }
17988 : : default:;
17989 : : }
17990 : : }
17991 : : break;
17992 : 60 : case CFN_BUILT_IN_BSWAP32:
17993 : 60 : if (call_expr_nargs (_q20) == 1)
17994 : : {
17995 : 60 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
17996 : 60 : switch (TREE_CODE (_q21))
17997 : : {
17998 : 59 : case INTEGER_CST:
17999 : 59 : {
18000 : 59 : switch (TREE_CODE (_p1))
18001 : : {
18002 : 59 : case INTEGER_CST:
18003 : 59 : {
18004 : 59 : {
18005 : 59 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _p1 };
18006 : 59 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP32);
18007 : 59 : if (res) return res;
18008 : : }
18009 : 0 : break;
18010 : : }
18011 : : default:;
18012 : : }
18013 : : break;
18014 : : }
18015 : : default:;
18016 : : }
18017 : : }
18018 : : break;
18019 : 73 : case CFN_BUILT_IN_BSWAP64:
18020 : 73 : if (call_expr_nargs (_q20) == 1)
18021 : : {
18022 : 73 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
18023 : 73 : switch (TREE_CODE (_q21))
18024 : : {
18025 : 73 : case INTEGER_CST:
18026 : 73 : {
18027 : 73 : switch (TREE_CODE (_p1))
18028 : : {
18029 : 73 : case INTEGER_CST:
18030 : 73 : {
18031 : 73 : {
18032 : 73 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _p1 };
18033 : 73 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP64);
18034 : 73 : if (res) return res;
18035 : : }
18036 : 0 : break;
18037 : : }
18038 : : default:;
18039 : : }
18040 : : break;
18041 : : }
18042 : : default:;
18043 : : }
18044 : : }
18045 : : break;
18046 : : default:;
18047 : : }
18048 : : break;
18049 : : default:;
18050 : : }
18051 : : break;
18052 : : }
18053 : 65 : case VEC_COND_EXPR:
18054 : 65 : {
18055 : 65 : tree _q20 = TREE_OPERAND (_p0, 0);
18056 : 65 : tree _q21 = TREE_OPERAND (_p0, 1);
18057 : 65 : tree _q22 = TREE_OPERAND (_p0, 2);
18058 : 65 : switch (TREE_CODE (_p1))
18059 : : {
18060 : 47 : case VEC_COND_EXPR:
18061 : 47 : {
18062 : 47 : tree _q60 = TREE_OPERAND (_p1, 0);
18063 : 47 : tree _q61 = TREE_OPERAND (_p1, 1);
18064 : 47 : tree _q62 = TREE_OPERAND (_p1, 2);
18065 : 47 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
18066 : : {
18067 : 0 : {
18068 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
18069 : 0 : if (VECTOR_TYPE_P (type)
18070 : 0 : && (TREE_CODE_CLASS (BIT_AND_EXPR) != tcc_comparison
18071 : : || types_match (type, TREE_TYPE (captures[2]))
18072 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
18073 : : || (optimize_vectors_before_lowering_p ()
18074 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
18075 : : )
18076 : : {
18077 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1853;
18078 : 0 : {
18079 : 0 : tree res_op0;
18080 : 0 : res_op0 = captures[1];
18081 : 0 : tree res_op1;
18082 : 0 : {
18083 : 0 : tree _o1[2], _r1;
18084 : 0 : _o1[0] = captures[2];
18085 : 0 : _o1[1] = captures[5];
18086 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18087 : 0 : if (EXPR_P (_r1))
18088 : 0 : goto next_after_fail1853;
18089 : 0 : res_op1 = _r1;
18090 : : }
18091 : 0 : tree res_op2;
18092 : 0 : {
18093 : 0 : tree _o1[2], _r1;
18094 : 0 : _o1[0] = captures[3];
18095 : 0 : _o1[1] = captures[6];
18096 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18097 : 0 : if (EXPR_P (_r1))
18098 : 0 : goto next_after_fail1853;
18099 : 0 : res_op2 = _r1;
18100 : : }
18101 : 0 : tree _r;
18102 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18103 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 909, __FILE__, __LINE__, true);
18104 : 0 : return _r;
18105 : : }
18106 : 0 : next_after_fail1853:;
18107 : : }
18108 : : }
18109 : : }
18110 : : break;
18111 : : }
18112 : 65 : default:;
18113 : : }
18114 : 65 : if (integer_minus_onep (_q21))
18115 : : {
18116 : 65 : if (integer_zerop (_q22))
18117 : : {
18118 : 65 : switch (TREE_CODE (_p1))
18119 : : {
18120 : 47 : case VEC_COND_EXPR:
18121 : 47 : {
18122 : 47 : tree _q60 = TREE_OPERAND (_p1, 0);
18123 : 47 : tree _q61 = TREE_OPERAND (_p1, 1);
18124 : 47 : tree _q62 = TREE_OPERAND (_p1, 2);
18125 : 47 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
18126 : : {
18127 : 47 : if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
18128 : : {
18129 : 47 : {
18130 : 47 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18131 : 47 : const enum tree_code lop = BIT_AND_EXPR;
18132 : 47 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18133 : : )
18134 : : {
18135 : 47 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1854;
18136 : 47 : {
18137 : 47 : tree res_op0;
18138 : 47 : {
18139 : 47 : tree _o1[2], _r1;
18140 : 47 : _o1[0] = captures[0];
18141 : 47 : _o1[1] = captures[3];
18142 : 47 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18143 : 47 : res_op0 = _r1;
18144 : : }
18145 : 47 : tree res_op1;
18146 : 47 : res_op1 = captures[1];
18147 : 47 : tree res_op2;
18148 : 47 : res_op2 = captures[2];
18149 : 47 : tree _r;
18150 : 47 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18151 : 47 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
18152 : 47 : return _r;
18153 : : }
18154 : 0 : next_after_fail1854:;
18155 : : }
18156 : : }
18157 : 0 : {
18158 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18159 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18160 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18161 : : )
18162 : : {
18163 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1855;
18164 : 0 : {
18165 : 0 : tree res_op0;
18166 : 0 : {
18167 : 0 : tree _o1[2], _r1;
18168 : 0 : _o1[0] = captures[0];
18169 : 0 : _o1[1] = captures[3];
18170 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18171 : 0 : res_op0 = _r1;
18172 : : }
18173 : 0 : tree res_op1;
18174 : 0 : res_op1 = captures[1];
18175 : 0 : tree res_op2;
18176 : 0 : res_op2 = captures[2];
18177 : 0 : tree _r;
18178 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18179 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
18180 : 0 : return _r;
18181 : : }
18182 : 0 : next_after_fail1855:;
18183 : : }
18184 : : }
18185 : 0 : {
18186 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18187 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18188 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18189 : : )
18190 : : {
18191 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1856;
18192 : 0 : {
18193 : 0 : tree res_op0;
18194 : 0 : {
18195 : 0 : tree _o1[2], _r1;
18196 : 0 : _o1[0] = captures[0];
18197 : 0 : _o1[1] = captures[3];
18198 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18199 : 0 : res_op0 = _r1;
18200 : : }
18201 : 0 : tree res_op1;
18202 : 0 : res_op1 = captures[1];
18203 : 0 : tree res_op2;
18204 : 0 : res_op2 = captures[2];
18205 : 0 : tree _r;
18206 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18207 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
18208 : 0 : return _r;
18209 : : }
18210 : 0 : next_after_fail1856:;
18211 : : }
18212 : : }
18213 : 0 : {
18214 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18215 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18216 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18217 : : )
18218 : : {
18219 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1857;
18220 : 0 : {
18221 : 0 : tree res_op0;
18222 : 0 : {
18223 : 0 : tree _o1[2], _r1;
18224 : 0 : _o1[0] = captures[0];
18225 : 0 : _o1[1] = captures[3];
18226 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18227 : 0 : res_op0 = _r1;
18228 : : }
18229 : 0 : tree res_op1;
18230 : 0 : res_op1 = captures[1];
18231 : 0 : tree res_op2;
18232 : 0 : res_op2 = captures[2];
18233 : 0 : tree _r;
18234 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18235 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
18236 : 0 : return _r;
18237 : : }
18238 : 0 : next_after_fail1857:;
18239 : : }
18240 : : }
18241 : 0 : {
18242 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18243 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18244 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18245 : : )
18246 : : {
18247 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1858;
18248 : 0 : {
18249 : 0 : tree res_op0;
18250 : 0 : {
18251 : 0 : tree _o1[2], _r1;
18252 : 0 : _o1[0] = captures[0];
18253 : 0 : _o1[1] = captures[3];
18254 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18255 : 0 : res_op0 = _r1;
18256 : : }
18257 : 0 : tree res_op1;
18258 : 0 : res_op1 = captures[1];
18259 : 0 : tree res_op2;
18260 : 0 : res_op2 = captures[2];
18261 : 0 : tree _r;
18262 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18263 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
18264 : 0 : return _r;
18265 : : }
18266 : 0 : next_after_fail1858:;
18267 : : }
18268 : : }
18269 : 0 : {
18270 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18271 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18272 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18273 : : )
18274 : : {
18275 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1859;
18276 : 0 : {
18277 : 0 : tree res_op0;
18278 : 0 : {
18279 : 0 : tree _o1[2], _r1;
18280 : 0 : _o1[0] = captures[0];
18281 : 0 : _o1[1] = captures[3];
18282 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18283 : 0 : res_op0 = _r1;
18284 : : }
18285 : 0 : tree res_op1;
18286 : 0 : res_op1 = captures[1];
18287 : 0 : tree res_op2;
18288 : 0 : res_op2 = captures[2];
18289 : 0 : tree _r;
18290 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18291 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
18292 : 0 : return _r;
18293 : : }
18294 : 0 : next_after_fail1859:;
18295 : : }
18296 : : }
18297 : 0 : {
18298 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18299 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18300 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18301 : : )
18302 : : {
18303 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1860;
18304 : 0 : {
18305 : 0 : tree res_op0;
18306 : 0 : {
18307 : 0 : tree _o1[2], _r1;
18308 : 0 : _o1[0] = captures[0];
18309 : 0 : _o1[1] = captures[3];
18310 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18311 : 0 : res_op0 = _r1;
18312 : : }
18313 : 0 : tree res_op1;
18314 : 0 : res_op1 = captures[1];
18315 : 0 : tree res_op2;
18316 : 0 : res_op2 = captures[2];
18317 : 0 : tree _r;
18318 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18319 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
18320 : 0 : return _r;
18321 : : }
18322 : 0 : next_after_fail1860:;
18323 : : }
18324 : : }
18325 : 0 : {
18326 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18327 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18328 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18329 : : )
18330 : : {
18331 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1861;
18332 : 0 : {
18333 : 0 : tree res_op0;
18334 : 0 : {
18335 : 0 : tree _o1[2], _r1;
18336 : 0 : _o1[0] = captures[0];
18337 : 0 : _o1[1] = captures[3];
18338 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18339 : 0 : res_op0 = _r1;
18340 : : }
18341 : 0 : tree res_op1;
18342 : 0 : res_op1 = captures[1];
18343 : 0 : tree res_op2;
18344 : 0 : res_op2 = captures[2];
18345 : 0 : tree _r;
18346 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18347 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
18348 : 0 : return _r;
18349 : : }
18350 : 0 : next_after_fail1861:;
18351 : : }
18352 : : }
18353 : 0 : {
18354 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18355 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18356 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18357 : : )
18358 : : {
18359 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1862;
18360 : 0 : {
18361 : 0 : tree res_op0;
18362 : 0 : {
18363 : 0 : tree _o1[2], _r1;
18364 : 0 : _o1[0] = captures[0];
18365 : 0 : _o1[1] = captures[3];
18366 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18367 : 0 : res_op0 = _r1;
18368 : : }
18369 : 0 : tree res_op1;
18370 : 0 : res_op1 = captures[1];
18371 : 0 : tree res_op2;
18372 : 0 : res_op2 = captures[2];
18373 : 0 : tree _r;
18374 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18375 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
18376 : 0 : return _r;
18377 : : }
18378 : 0 : next_after_fail1862:;
18379 : : }
18380 : : }
18381 : 0 : {
18382 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18383 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18384 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18385 : : )
18386 : : {
18387 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1863;
18388 : 0 : {
18389 : 0 : tree res_op0;
18390 : 0 : {
18391 : 0 : tree _o1[2], _r1;
18392 : 0 : _o1[0] = captures[0];
18393 : 0 : _o1[1] = captures[3];
18394 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18395 : 0 : res_op0 = _r1;
18396 : : }
18397 : 0 : tree res_op1;
18398 : 0 : res_op1 = captures[1];
18399 : 0 : tree res_op2;
18400 : 0 : res_op2 = captures[2];
18401 : 0 : tree _r;
18402 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18403 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
18404 : 0 : return _r;
18405 : : }
18406 : 0 : next_after_fail1863:;
18407 : : }
18408 : : }
18409 : 0 : {
18410 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18411 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18412 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18413 : : )
18414 : : {
18415 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1864;
18416 : 0 : {
18417 : 0 : tree res_op0;
18418 : 0 : {
18419 : 0 : tree _o1[2], _r1;
18420 : 0 : _o1[0] = captures[0];
18421 : 0 : _o1[1] = captures[3];
18422 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18423 : 0 : res_op0 = _r1;
18424 : : }
18425 : 0 : tree res_op1;
18426 : 0 : res_op1 = captures[1];
18427 : 0 : tree res_op2;
18428 : 0 : res_op2 = captures[2];
18429 : 0 : tree _r;
18430 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18431 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
18432 : 0 : return _r;
18433 : : }
18434 : 0 : next_after_fail1864:;
18435 : : }
18436 : : }
18437 : 0 : {
18438 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18439 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18440 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18441 : : )
18442 : : {
18443 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1865;
18444 : 0 : {
18445 : 0 : tree res_op0;
18446 : 0 : {
18447 : 0 : tree _o1[2], _r1;
18448 : 0 : _o1[0] = captures[0];
18449 : 0 : _o1[1] = captures[3];
18450 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18451 : 0 : res_op0 = _r1;
18452 : : }
18453 : 0 : tree res_op1;
18454 : 0 : res_op1 = captures[1];
18455 : 0 : tree res_op2;
18456 : 0 : res_op2 = captures[2];
18457 : 0 : tree _r;
18458 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18459 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
18460 : 0 : return _r;
18461 : : }
18462 : 0 : next_after_fail1865:;
18463 : : }
18464 : : }
18465 : 0 : {
18466 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18467 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18468 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18469 : : )
18470 : : {
18471 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1866;
18472 : 0 : {
18473 : 0 : tree res_op0;
18474 : 0 : {
18475 : 0 : tree _o1[2], _r1;
18476 : 0 : _o1[0] = captures[0];
18477 : 0 : _o1[1] = captures[3];
18478 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18479 : 0 : res_op0 = _r1;
18480 : : }
18481 : 0 : tree res_op1;
18482 : 0 : res_op1 = captures[1];
18483 : 0 : tree res_op2;
18484 : 0 : res_op2 = captures[2];
18485 : 0 : tree _r;
18486 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18487 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
18488 : 0 : return _r;
18489 : : }
18490 : 0 : next_after_fail1866:;
18491 : : }
18492 : : }
18493 : 0 : {
18494 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18495 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18496 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18497 : : )
18498 : : {
18499 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1867;
18500 : 0 : {
18501 : 0 : tree res_op0;
18502 : 0 : {
18503 : 0 : tree _o1[2], _r1;
18504 : 0 : _o1[0] = captures[0];
18505 : 0 : _o1[1] = captures[3];
18506 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18507 : 0 : res_op0 = _r1;
18508 : : }
18509 : 0 : tree res_op1;
18510 : 0 : res_op1 = captures[1];
18511 : 0 : tree res_op2;
18512 : 0 : res_op2 = captures[2];
18513 : 0 : tree _r;
18514 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18515 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
18516 : 0 : return _r;
18517 : : }
18518 : 0 : next_after_fail1867:;
18519 : : }
18520 : : }
18521 : 0 : {
18522 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18523 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18524 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18525 : : )
18526 : : {
18527 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1868;
18528 : 0 : {
18529 : 0 : tree res_op0;
18530 : 0 : {
18531 : 0 : tree _o1[2], _r1;
18532 : 0 : _o1[0] = captures[0];
18533 : 0 : _o1[1] = captures[3];
18534 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18535 : 0 : res_op0 = _r1;
18536 : : }
18537 : 0 : tree res_op1;
18538 : 0 : res_op1 = captures[1];
18539 : 0 : tree res_op2;
18540 : 0 : res_op2 = captures[2];
18541 : 0 : tree _r;
18542 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18543 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
18544 : 0 : return _r;
18545 : : }
18546 : 0 : next_after_fail1868:;
18547 : : }
18548 : : }
18549 : 0 : {
18550 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18551 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18552 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18553 : : )
18554 : : {
18555 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1869;
18556 : 0 : {
18557 : 0 : tree res_op0;
18558 : 0 : {
18559 : 0 : tree _o1[2], _r1;
18560 : 0 : _o1[0] = captures[0];
18561 : 0 : _o1[1] = captures[3];
18562 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18563 : 0 : res_op0 = _r1;
18564 : : }
18565 : 0 : tree res_op1;
18566 : 0 : res_op1 = captures[1];
18567 : 0 : tree res_op2;
18568 : 0 : res_op2 = captures[2];
18569 : 0 : tree _r;
18570 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18571 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
18572 : 0 : return _r;
18573 : : }
18574 : 0 : next_after_fail1869:;
18575 : : }
18576 : : }
18577 : 0 : {
18578 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18579 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18580 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18581 : : )
18582 : : {
18583 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1870;
18584 : 0 : {
18585 : 0 : tree res_op0;
18586 : 0 : {
18587 : 0 : tree _o1[2], _r1;
18588 : 0 : _o1[0] = captures[0];
18589 : 0 : _o1[1] = captures[3];
18590 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18591 : 0 : res_op0 = _r1;
18592 : : }
18593 : 0 : tree res_op1;
18594 : 0 : res_op1 = captures[1];
18595 : 0 : tree res_op2;
18596 : 0 : res_op2 = captures[2];
18597 : 0 : tree _r;
18598 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18599 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
18600 : 0 : return _r;
18601 : : }
18602 : 0 : next_after_fail1870:;
18603 : : }
18604 : : }
18605 : 0 : {
18606 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18607 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18608 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18609 : : )
18610 : : {
18611 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1871;
18612 : 0 : {
18613 : 0 : tree res_op0;
18614 : 0 : {
18615 : 0 : tree _o1[2], _r1;
18616 : 0 : _o1[0] = captures[0];
18617 : 0 : _o1[1] = captures[3];
18618 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18619 : 0 : res_op0 = _r1;
18620 : : }
18621 : 0 : tree res_op1;
18622 : 0 : res_op1 = captures[1];
18623 : 0 : tree res_op2;
18624 : 0 : res_op2 = captures[2];
18625 : 0 : tree _r;
18626 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18627 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
18628 : 0 : return _r;
18629 : : }
18630 : 0 : next_after_fail1871:;
18631 : : }
18632 : : }
18633 : 0 : {
18634 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18635 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18636 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18637 : : )
18638 : : {
18639 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1872;
18640 : 0 : {
18641 : 0 : tree res_op0;
18642 : 0 : {
18643 : 0 : tree _o1[2], _r1;
18644 : 0 : _o1[0] = captures[0];
18645 : 0 : _o1[1] = captures[3];
18646 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18647 : 0 : res_op0 = _r1;
18648 : : }
18649 : 0 : tree res_op1;
18650 : 0 : res_op1 = captures[1];
18651 : 0 : tree res_op2;
18652 : 0 : res_op2 = captures[2];
18653 : 0 : tree _r;
18654 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18655 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
18656 : 0 : return _r;
18657 : : }
18658 : 0 : next_after_fail1872:;
18659 : : }
18660 : : }
18661 : 0 : {
18662 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18663 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18664 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18665 : : )
18666 : : {
18667 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1873;
18668 : 0 : {
18669 : 0 : tree res_op0;
18670 : 0 : {
18671 : 0 : tree _o1[2], _r1;
18672 : 0 : _o1[0] = captures[0];
18673 : 0 : _o1[1] = captures[3];
18674 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18675 : 0 : res_op0 = _r1;
18676 : : }
18677 : 0 : tree res_op1;
18678 : 0 : res_op1 = captures[1];
18679 : 0 : tree res_op2;
18680 : 0 : res_op2 = captures[2];
18681 : 0 : tree _r;
18682 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18683 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
18684 : 0 : return _r;
18685 : : }
18686 : 0 : next_after_fail1873:;
18687 : : }
18688 : : }
18689 : 0 : {
18690 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18691 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18692 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18693 : : )
18694 : : {
18695 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1874;
18696 : 0 : {
18697 : 0 : tree res_op0;
18698 : 0 : {
18699 : 0 : tree _o1[2], _r1;
18700 : 0 : _o1[0] = captures[0];
18701 : 0 : _o1[1] = captures[3];
18702 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18703 : 0 : res_op0 = _r1;
18704 : : }
18705 : 0 : tree res_op1;
18706 : 0 : res_op1 = captures[1];
18707 : 0 : tree res_op2;
18708 : 0 : res_op2 = captures[2];
18709 : 0 : tree _r;
18710 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18711 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
18712 : 0 : return _r;
18713 : : }
18714 : 0 : next_after_fail1874:;
18715 : : }
18716 : : }
18717 : 0 : {
18718 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18719 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18720 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18721 : : )
18722 : : {
18723 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1875;
18724 : 0 : {
18725 : 0 : tree res_op0;
18726 : 0 : {
18727 : 0 : tree _o1[2], _r1;
18728 : 0 : _o1[0] = captures[0];
18729 : 0 : _o1[1] = captures[3];
18730 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18731 : 0 : res_op0 = _r1;
18732 : : }
18733 : 0 : tree res_op1;
18734 : 0 : res_op1 = captures[1];
18735 : 0 : tree res_op2;
18736 : 0 : res_op2 = captures[2];
18737 : 0 : tree _r;
18738 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18739 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
18740 : 0 : return _r;
18741 : : }
18742 : 0 : next_after_fail1875:;
18743 : : }
18744 : : }
18745 : 0 : {
18746 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18747 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18748 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18749 : : )
18750 : : {
18751 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1876;
18752 : 0 : {
18753 : 0 : tree res_op0;
18754 : 0 : {
18755 : 0 : tree _o1[2], _r1;
18756 : 0 : _o1[0] = captures[0];
18757 : 0 : _o1[1] = captures[3];
18758 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18759 : 0 : res_op0 = _r1;
18760 : : }
18761 : 0 : tree res_op1;
18762 : 0 : res_op1 = captures[1];
18763 : 0 : tree res_op2;
18764 : 0 : res_op2 = captures[2];
18765 : 0 : tree _r;
18766 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18767 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
18768 : 0 : return _r;
18769 : : }
18770 : 0 : next_after_fail1876:;
18771 : : }
18772 : : }
18773 : 0 : {
18774 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18775 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18776 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18777 : : )
18778 : : {
18779 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1877;
18780 : 0 : {
18781 : 0 : tree res_op0;
18782 : 0 : {
18783 : 0 : tree _o1[2], _r1;
18784 : 0 : _o1[0] = captures[0];
18785 : 0 : _o1[1] = captures[3];
18786 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18787 : 0 : res_op0 = _r1;
18788 : : }
18789 : 0 : tree res_op1;
18790 : 0 : res_op1 = captures[1];
18791 : 0 : tree res_op2;
18792 : 0 : res_op2 = captures[2];
18793 : 0 : tree _r;
18794 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18795 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
18796 : 0 : return _r;
18797 : : }
18798 : 0 : next_after_fail1877:;
18799 : : }
18800 : : }
18801 : 0 : {
18802 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18803 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18804 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18805 : : )
18806 : : {
18807 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1878;
18808 : 0 : {
18809 : 0 : tree res_op0;
18810 : 0 : {
18811 : 0 : tree _o1[2], _r1;
18812 : 0 : _o1[0] = captures[0];
18813 : 0 : _o1[1] = captures[3];
18814 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18815 : 0 : res_op0 = _r1;
18816 : : }
18817 : 0 : tree res_op1;
18818 : 0 : res_op1 = captures[1];
18819 : 0 : tree res_op2;
18820 : 0 : res_op2 = captures[2];
18821 : 0 : tree _r;
18822 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18823 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
18824 : 0 : return _r;
18825 : : }
18826 : 0 : next_after_fail1878:;
18827 : : }
18828 : : }
18829 : 0 : {
18830 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18831 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18832 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18833 : : )
18834 : : {
18835 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1879;
18836 : 0 : {
18837 : 0 : tree res_op0;
18838 : 0 : {
18839 : 0 : tree _o1[2], _r1;
18840 : 0 : _o1[0] = captures[0];
18841 : 0 : _o1[1] = captures[3];
18842 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18843 : 0 : res_op0 = _r1;
18844 : : }
18845 : 0 : tree res_op1;
18846 : 0 : res_op1 = captures[1];
18847 : 0 : tree res_op2;
18848 : 0 : res_op2 = captures[2];
18849 : 0 : tree _r;
18850 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18851 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
18852 : 0 : return _r;
18853 : : }
18854 : 0 : next_after_fail1879:;
18855 : : }
18856 : : }
18857 : 0 : {
18858 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18859 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18860 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18861 : : )
18862 : : {
18863 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1880;
18864 : 0 : {
18865 : 0 : tree res_op0;
18866 : 0 : {
18867 : 0 : tree _o1[2], _r1;
18868 : 0 : _o1[0] = captures[0];
18869 : 0 : _o1[1] = captures[3];
18870 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18871 : 0 : res_op0 = _r1;
18872 : : }
18873 : 0 : tree res_op1;
18874 : 0 : res_op1 = captures[1];
18875 : 0 : tree res_op2;
18876 : 0 : res_op2 = captures[2];
18877 : 0 : tree _r;
18878 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18879 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
18880 : 0 : return _r;
18881 : : }
18882 : 0 : next_after_fail1880:;
18883 : : }
18884 : : }
18885 : 0 : {
18886 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18887 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18888 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18889 : : )
18890 : : {
18891 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1881;
18892 : 0 : {
18893 : 0 : tree res_op0;
18894 : 0 : {
18895 : 0 : tree _o1[2], _r1;
18896 : 0 : _o1[0] = captures[0];
18897 : 0 : _o1[1] = captures[3];
18898 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18899 : 0 : res_op0 = _r1;
18900 : : }
18901 : 0 : tree res_op1;
18902 : 0 : res_op1 = captures[1];
18903 : 0 : tree res_op2;
18904 : 0 : res_op2 = captures[2];
18905 : 0 : tree _r;
18906 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18907 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
18908 : 0 : return _r;
18909 : : }
18910 : 0 : next_after_fail1881:;
18911 : : }
18912 : : }
18913 : 0 : {
18914 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18915 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18916 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18917 : : )
18918 : : {
18919 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1882;
18920 : 0 : {
18921 : 0 : tree res_op0;
18922 : 0 : {
18923 : 0 : tree _o1[2], _r1;
18924 : 0 : _o1[0] = captures[0];
18925 : 0 : _o1[1] = captures[3];
18926 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18927 : 0 : res_op0 = _r1;
18928 : : }
18929 : 0 : tree res_op1;
18930 : 0 : res_op1 = captures[1];
18931 : 0 : tree res_op2;
18932 : 0 : res_op2 = captures[2];
18933 : 0 : tree _r;
18934 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18935 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
18936 : 0 : return _r;
18937 : : }
18938 : 0 : next_after_fail1882:;
18939 : : }
18940 : : }
18941 : 0 : {
18942 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18943 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18944 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18945 : : )
18946 : : {
18947 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1883;
18948 : 0 : {
18949 : 0 : tree res_op0;
18950 : 0 : {
18951 : 0 : tree _o1[2], _r1;
18952 : 0 : _o1[0] = captures[0];
18953 : 0 : _o1[1] = captures[3];
18954 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18955 : 0 : res_op0 = _r1;
18956 : : }
18957 : 0 : tree res_op1;
18958 : 0 : res_op1 = captures[1];
18959 : 0 : tree res_op2;
18960 : 0 : res_op2 = captures[2];
18961 : 0 : tree _r;
18962 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18963 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
18964 : 0 : return _r;
18965 : : }
18966 : 0 : next_after_fail1883:;
18967 : : }
18968 : : }
18969 : 0 : {
18970 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18971 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18972 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18973 : : )
18974 : : {
18975 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1884;
18976 : 0 : {
18977 : 0 : tree res_op0;
18978 : 0 : {
18979 : 0 : tree _o1[2], _r1;
18980 : 0 : _o1[0] = captures[0];
18981 : 0 : _o1[1] = captures[3];
18982 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18983 : 0 : res_op0 = _r1;
18984 : : }
18985 : 0 : tree res_op1;
18986 : 0 : res_op1 = captures[1];
18987 : 0 : tree res_op2;
18988 : 0 : res_op2 = captures[2];
18989 : 0 : tree _r;
18990 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18991 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
18992 : 0 : return _r;
18993 : : }
18994 : 0 : next_after_fail1884:;
18995 : : }
18996 : : }
18997 : 0 : {
18998 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18999 : 0 : const enum tree_code lop = BIT_AND_EXPR;
19000 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
19001 : : )
19002 : : {
19003 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1885;
19004 : 0 : {
19005 : 0 : tree res_op0;
19006 : 0 : {
19007 : 0 : tree _o1[2], _r1;
19008 : 0 : _o1[0] = captures[0];
19009 : 0 : _o1[1] = captures[3];
19010 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19011 : 0 : res_op0 = _r1;
19012 : : }
19013 : 0 : tree res_op1;
19014 : 0 : res_op1 = captures[1];
19015 : 0 : tree res_op2;
19016 : 0 : res_op2 = captures[2];
19017 : 0 : tree _r;
19018 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19019 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
19020 : 0 : return _r;
19021 : : }
19022 : 0 : next_after_fail1885:;
19023 : : }
19024 : : }
19025 : 0 : {
19026 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
19027 : 0 : const enum tree_code lop = BIT_AND_EXPR;
19028 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
19029 : : )
19030 : : {
19031 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1886;
19032 : 0 : {
19033 : 0 : tree res_op0;
19034 : 0 : {
19035 : 0 : tree _o1[2], _r1;
19036 : 0 : _o1[0] = captures[0];
19037 : 0 : _o1[1] = captures[3];
19038 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19039 : 0 : res_op0 = _r1;
19040 : : }
19041 : 0 : tree res_op1;
19042 : 0 : res_op1 = captures[1];
19043 : 0 : tree res_op2;
19044 : 0 : res_op2 = captures[2];
19045 : 0 : tree _r;
19046 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19047 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
19048 : 0 : return _r;
19049 : : }
19050 : 0 : next_after_fail1886:;
19051 : : }
19052 : : }
19053 : 0 : {
19054 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
19055 : 0 : const enum tree_code lop = BIT_AND_EXPR;
19056 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
19057 : : )
19058 : : {
19059 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1887;
19060 : 0 : {
19061 : 0 : tree res_op0;
19062 : 0 : {
19063 : 0 : tree _o1[2], _r1;
19064 : 0 : _o1[0] = captures[0];
19065 : 0 : _o1[1] = captures[3];
19066 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19067 : 0 : res_op0 = _r1;
19068 : : }
19069 : 0 : tree res_op1;
19070 : 0 : res_op1 = captures[1];
19071 : 0 : tree res_op2;
19072 : 0 : res_op2 = captures[2];
19073 : 0 : tree _r;
19074 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19075 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
19076 : 0 : return _r;
19077 : : }
19078 : 0 : next_after_fail1887:;
19079 : : }
19080 : : }
19081 : : }
19082 : : }
19083 : : break;
19084 : : }
19085 : : default:;
19086 : : }
19087 : : }
19088 : : }
19089 : 18 : {
19090 : 18 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
19091 : 18 : if (VECTOR_TYPE_P (type)
19092 : 18 : && (TREE_CODE_CLASS (BIT_AND_EXPR) != tcc_comparison
19093 : : || types_match (type, TREE_TYPE (captures[2]))
19094 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
19095 : : || (optimize_vectors_before_lowering_p ()
19096 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
19097 : : )
19098 : : {
19099 : 18 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1888;
19100 : 18 : {
19101 : 18 : if (! tree_invariant_p (captures[4])) goto next_after_fail1888;
19102 : 14 : tree res_op0;
19103 : 14 : res_op0 = captures[1];
19104 : 14 : tree res_op1;
19105 : 14 : {
19106 : 14 : tree _o1[2], _r1;
19107 : 14 : _o1[0] = captures[2];
19108 : 14 : _o1[1] = unshare_expr (captures[4]);
19109 : 14 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19110 : 14 : if (EXPR_P (_r1))
19111 : 0 : goto next_after_fail1888;
19112 : 14 : res_op1 = _r1;
19113 : : }
19114 : 14 : tree res_op2;
19115 : 14 : {
19116 : 14 : tree _o1[2], _r1;
19117 : 14 : _o1[0] = captures[3];
19118 : 14 : _o1[1] = captures[4];
19119 : 14 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19120 : 14 : if (EXPR_P (_r1))
19121 : 0 : goto next_after_fail1888;
19122 : 14 : res_op2 = _r1;
19123 : : }
19124 : 14 : tree _r;
19125 : 14 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19126 : 14 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 910, __FILE__, __LINE__, true);
19127 : 14 : return _r;
19128 : : }
19129 : 4 : next_after_fail1888:;
19130 : : }
19131 : : }
19132 : 4 : break;
19133 : : }
19134 : 135934 : case CALL_EXPR:
19135 : 135934 : switch (get_call_combined_fn (_p0))
19136 : : {
19137 : 0 : case CFN_BUILT_IN_BSWAP128:
19138 : 0 : if (call_expr_nargs (_p0) == 1)
19139 : : {
19140 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
19141 : 0 : switch (TREE_CODE (_p1))
19142 : : {
19143 : 0 : case INTEGER_CST:
19144 : 0 : {
19145 : 0 : {
19146 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
19147 : 0 : tree res = generic_simplify_427 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP128);
19148 : 0 : if (res) return res;
19149 : : }
19150 : 0 : break;
19151 : : }
19152 : : default:;
19153 : : }
19154 : : }
19155 : : break;
19156 : 0 : case CFN_BUILT_IN_BSWAP16:
19157 : 0 : if (call_expr_nargs (_p0) == 1)
19158 : : {
19159 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
19160 : 0 : switch (TREE_CODE (_p1))
19161 : : {
19162 : 0 : case INTEGER_CST:
19163 : 0 : {
19164 : 0 : {
19165 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
19166 : 0 : tree res = generic_simplify_427 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP16);
19167 : 0 : if (res) return res;
19168 : : }
19169 : 0 : break;
19170 : : }
19171 : : default:;
19172 : : }
19173 : : }
19174 : : break;
19175 : 10 : case CFN_BUILT_IN_BSWAP32:
19176 : 10 : if (call_expr_nargs (_p0) == 1)
19177 : : {
19178 : 10 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
19179 : 10 : switch (TREE_CODE (_p1))
19180 : : {
19181 : 9 : case INTEGER_CST:
19182 : 9 : {
19183 : 9 : {
19184 : 9 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
19185 : 9 : tree res = generic_simplify_427 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP32);
19186 : 9 : if (res) return res;
19187 : : }
19188 : 1 : break;
19189 : : }
19190 : : default:;
19191 : : }
19192 : : }
19193 : : break;
19194 : 8 : case CFN_BUILT_IN_BSWAP64:
19195 : 8 : if (call_expr_nargs (_p0) == 1)
19196 : : {
19197 : 8 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
19198 : 8 : switch (TREE_CODE (_p1))
19199 : : {
19200 : 7 : case INTEGER_CST:
19201 : 7 : {
19202 : 7 : {
19203 : 7 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
19204 : 7 : tree res = generic_simplify_427 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP64);
19205 : 7 : if (res) return res;
19206 : : }
19207 : 1 : break;
19208 : : }
19209 : : default:;
19210 : : }
19211 : : }
19212 : : break;
19213 : : default:;
19214 : : }
19215 : : break;
19216 : 6249802 : default:;
19217 : : }
19218 : 6249802 : switch (TREE_CODE (_p1))
19219 : : {
19220 : 1 : case VEC_COND_EXPR:
19221 : 1 : {
19222 : 1 : tree _q30 = TREE_OPERAND (_p1, 0);
19223 : 1 : tree _q31 = TREE_OPERAND (_p1, 1);
19224 : 1 : tree _q32 = TREE_OPERAND (_p1, 2);
19225 : 1 : {
19226 : 1 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
19227 : 1 : if (VECTOR_TYPE_P (type)
19228 : 1 : && (TREE_CODE_CLASS (BIT_AND_EXPR) != tcc_comparison
19229 : : || types_match (type, TREE_TYPE (captures[3]))
19230 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
19231 : : || (optimize_vectors_before_lowering_p ()
19232 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
19233 : : )
19234 : : {
19235 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1889;
19236 : 1 : {
19237 : 1 : if (! tree_invariant_p (captures[0])) goto next_after_fail1889;
19238 : 0 : tree res_op0;
19239 : 0 : res_op0 = captures[2];
19240 : 0 : tree res_op1;
19241 : 0 : {
19242 : 0 : tree _o1[2], _r1;
19243 : 0 : _o1[0] = unshare_expr (captures[0]);
19244 : 0 : _o1[1] = captures[3];
19245 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19246 : 0 : if (EXPR_P (_r1))
19247 : 0 : goto next_after_fail1889;
19248 : 0 : res_op1 = _r1;
19249 : : }
19250 : 0 : tree res_op2;
19251 : 0 : {
19252 : 0 : tree _o1[2], _r1;
19253 : 0 : _o1[0] = captures[0];
19254 : 0 : _o1[1] = captures[4];
19255 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19256 : 0 : if (EXPR_P (_r1))
19257 : 0 : goto next_after_fail1889;
19258 : 0 : res_op2 = _r1;
19259 : : }
19260 : 0 : tree _r;
19261 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19262 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 911, __FILE__, __LINE__, true);
19263 : 0 : return _r;
19264 : : }
19265 : 1 : next_after_fail1889:;
19266 : : }
19267 : : }
19268 : 1 : break;
19269 : : }
19270 : 6249802 : default:;
19271 : : }
19272 : 6249802 : switch (TREE_CODE (_p0))
19273 : : {
19274 : 0 : case ORDERED_EXPR:
19275 : 0 : {
19276 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
19277 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
19278 : 0 : switch (TREE_CODE (_p1))
19279 : : {
19280 : 0 : case NE_EXPR:
19281 : 0 : {
19282 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
19283 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
19284 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19285 : : {
19286 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
19287 : : {
19288 : 0 : {
19289 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
19290 : 0 : tree res = generic_simplify_445 (loc, type, _p0, _p1, captures);
19291 : 0 : if (res) return res;
19292 : : }
19293 : : }
19294 : : }
19295 : : break;
19296 : : }
19297 : 0 : default:;
19298 : : }
19299 : 0 : if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
19300 : : {
19301 : 0 : switch (TREE_CODE (_p1))
19302 : : {
19303 : 0 : case ORDERED_EXPR:
19304 : 0 : {
19305 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
19306 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
19307 : 0 : if ((_q51 == _q50 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q50, 0) && types_match (_q51, _q50)))
19308 : : {
19309 : 0 : {
19310 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q50 };
19311 : 0 : if (types_match (captures[0], captures[1])
19312 : : )
19313 : : {
19314 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1890;
19315 : 0 : {
19316 : 0 : tree res_op0;
19317 : 0 : res_op0 = captures[0];
19318 : 0 : tree res_op1;
19319 : 0 : res_op1 = captures[1];
19320 : 0 : tree _r;
19321 : 0 : _r = fold_build2_loc (loc, ORDERED_EXPR, type, res_op0, res_op1);
19322 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1036, __FILE__, __LINE__, true);
19323 : 0 : return _r;
19324 : : }
19325 : 0 : next_after_fail1890:;
19326 : : }
19327 : : }
19328 : : }
19329 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19330 : : {
19331 : 0 : {
19332 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p1, _q51 };
19333 : 0 : tree res = generic_simplify_446 (loc, type, _p0, _p1, captures);
19334 : 0 : if (res) return res;
19335 : : }
19336 : : }
19337 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
19338 : : {
19339 : 0 : {
19340 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p1, _q50 };
19341 : 0 : tree res = generic_simplify_446 (loc, type, _p0, _p1, captures);
19342 : 0 : if (res) return res;
19343 : : }
19344 : : }
19345 : : break;
19346 : : }
19347 : : default:;
19348 : : }
19349 : : }
19350 : 0 : switch (TREE_CODE (_p1))
19351 : : {
19352 : 0 : case ORDERED_EXPR:
19353 : 0 : {
19354 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
19355 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
19356 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19357 : : {
19358 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
19359 : : {
19360 : 0 : {
19361 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p0, _q21 };
19362 : 0 : tree res = generic_simplify_447 (loc, type, _p0, _p1, captures);
19363 : 0 : if (res) return res;
19364 : : }
19365 : : }
19366 : : }
19367 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
19368 : : {
19369 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
19370 : : {
19371 : 0 : {
19372 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _p0, _q20 };
19373 : 0 : tree res = generic_simplify_447 (loc, type, _p0, _p1, captures);
19374 : 0 : if (res) return res;
19375 : : }
19376 : : }
19377 : : }
19378 : : break;
19379 : : }
19380 : : default:;
19381 : : }
19382 : : break;
19383 : : }
19384 : 129 : case NE_EXPR:
19385 : 129 : {
19386 : 129 : tree _q20 = TREE_OPERAND (_p0, 0);
19387 : 129 : tree _q21 = TREE_OPERAND (_p0, 1);
19388 : 129 : switch (TREE_CODE (_p1))
19389 : : {
19390 : 0 : case ORDERED_EXPR:
19391 : 0 : {
19392 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
19393 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
19394 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19395 : : {
19396 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
19397 : : {
19398 : 0 : {
19399 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
19400 : 0 : tree res = generic_simplify_445 (loc, type, _p0, _p1, captures);
19401 : 0 : if (res) return res;
19402 : : }
19403 : : }
19404 : : }
19405 : : break;
19406 : : }
19407 : : default:;
19408 : : }
19409 : : break;
19410 : : }
19411 : 509400 : case MINUS_EXPR:
19412 : 509400 : {
19413 : 509400 : tree _q20 = TREE_OPERAND (_p0, 0);
19414 : 509400 : tree _q21 = TREE_OPERAND (_p0, 1);
19415 : 509400 : switch (TREE_CODE (_q20))
19416 : : {
19417 : 443927 : CASE_CONVERT:
19418 : 443927 : {
19419 : 443927 : tree _q30 = TREE_OPERAND (_q20, 0);
19420 : 443927 : switch (TREE_CODE (_q21))
19421 : : {
19422 : 438786 : CASE_CONVERT:
19423 : 438786 : {
19424 : 438786 : tree _q50 = TREE_OPERAND (_q21, 0);
19425 : 438786 : switch (TREE_CODE (_p1))
19426 : : {
19427 : 438762 : case INTEGER_CST:
19428 : 438762 : {
19429 : 438762 : {
19430 : 438762 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1 };
19431 : 438762 : tree res = generic_simplify_448 (loc, type, _p0, _p1, captures, MINUS_EXPR);
19432 : 438762 : if (res) return res;
19433 : : }
19434 : 438752 : break;
19435 : : }
19436 : : default:;
19437 : : }
19438 : : break;
19439 : : }
19440 : : default:;
19441 : : }
19442 : : break;
19443 : : }
19444 : : default:;
19445 : : }
19446 : : break;
19447 : : }
19448 : 173392 : case PLUS_EXPR:
19449 : 173392 : {
19450 : 173392 : tree _q20 = TREE_OPERAND (_p0, 0);
19451 : 173392 : tree _q21 = TREE_OPERAND (_p0, 1);
19452 : 173392 : switch (TREE_CODE (_q20))
19453 : : {
19454 : 50559 : CASE_CONVERT:
19455 : 50559 : {
19456 : 50559 : tree _q30 = TREE_OPERAND (_q20, 0);
19457 : 50559 : switch (TREE_CODE (_q21))
19458 : : {
19459 : 117 : CASE_CONVERT:
19460 : 117 : {
19461 : 117 : tree _q50 = TREE_OPERAND (_q21, 0);
19462 : 117 : switch (TREE_CODE (_p1))
19463 : : {
19464 : 60 : case INTEGER_CST:
19465 : 60 : {
19466 : 60 : {
19467 : 60 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1 };
19468 : 60 : tree res = generic_simplify_448 (loc, type, _p0, _p1, captures, PLUS_EXPR);
19469 : 60 : if (res) return res;
19470 : : }
19471 : 45 : break;
19472 : : }
19473 : : default:;
19474 : : }
19475 : : break;
19476 : : }
19477 : : default:;
19478 : : }
19479 : : break;
19480 : : }
19481 : : default:;
19482 : : }
19483 : : break;
19484 : : }
19485 : 80 : case LT_EXPR:
19486 : 80 : {
19487 : 80 : tree _q20 = TREE_OPERAND (_p0, 0);
19488 : 80 : tree _q21 = TREE_OPERAND (_p0, 1);
19489 : 80 : switch (TREE_CODE (_p1))
19490 : : {
19491 : 8 : case LT_EXPR:
19492 : 8 : {
19493 : 8 : tree _q50 = TREE_OPERAND (_p1, 0);
19494 : 8 : tree _q51 = TREE_OPERAND (_p1, 1);
19495 : 8 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19496 : : {
19497 : 0 : {
19498 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
19499 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LT_EXPR, MIN_EXPR);
19500 : 0 : if (res) return res;
19501 : : }
19502 : : }
19503 : 8 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
19504 : : {
19505 : 0 : {
19506 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
19507 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GT_EXPR, MAX_EXPR);
19508 : 0 : if (res) return res;
19509 : : }
19510 : : }
19511 : : break;
19512 : : }
19513 : 1 : case GT_EXPR:
19514 : 1 : {
19515 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
19516 : 1 : tree _q51 = TREE_OPERAND (_p1, 1);
19517 : 1 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
19518 : : {
19519 : 0 : {
19520 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
19521 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LT_EXPR, MIN_EXPR);
19522 : 0 : if (res) return res;
19523 : : }
19524 : : }
19525 : 1 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
19526 : : {
19527 : 0 : {
19528 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
19529 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GT_EXPR, MAX_EXPR);
19530 : 0 : if (res) return res;
19531 : : }
19532 : : }
19533 : : break;
19534 : : }
19535 : : default:;
19536 : : }
19537 : : break;
19538 : : }
19539 : 32 : case LE_EXPR:
19540 : 32 : {
19541 : 32 : tree _q20 = TREE_OPERAND (_p0, 0);
19542 : 32 : tree _q21 = TREE_OPERAND (_p0, 1);
19543 : 32 : switch (TREE_CODE (_p1))
19544 : : {
19545 : 5 : case LE_EXPR:
19546 : 5 : {
19547 : 5 : tree _q50 = TREE_OPERAND (_p1, 0);
19548 : 5 : tree _q51 = TREE_OPERAND (_p1, 1);
19549 : 5 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19550 : : {
19551 : 0 : {
19552 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
19553 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LE_EXPR, MIN_EXPR);
19554 : 0 : if (res) return res;
19555 : : }
19556 : : }
19557 : 5 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
19558 : : {
19559 : 4 : {
19560 : 4 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
19561 : 4 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GE_EXPR, MAX_EXPR);
19562 : 4 : if (res) return res;
19563 : : }
19564 : : }
19565 : : break;
19566 : : }
19567 : 0 : case GE_EXPR:
19568 : 0 : {
19569 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
19570 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
19571 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
19572 : : {
19573 : 0 : {
19574 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
19575 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LE_EXPR, MIN_EXPR);
19576 : 0 : if (res) return res;
19577 : : }
19578 : : }
19579 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
19580 : : {
19581 : 0 : {
19582 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
19583 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GE_EXPR, MAX_EXPR);
19584 : 0 : if (res) return res;
19585 : : }
19586 : : }
19587 : : break;
19588 : : }
19589 : : default:;
19590 : : }
19591 : : break;
19592 : : }
19593 : 327 : case GT_EXPR:
19594 : 327 : {
19595 : 327 : tree _q20 = TREE_OPERAND (_p0, 0);
19596 : 327 : tree _q21 = TREE_OPERAND (_p0, 1);
19597 : 327 : switch (TREE_CODE (_p1))
19598 : : {
19599 : 85 : case GT_EXPR:
19600 : 85 : {
19601 : 85 : tree _q50 = TREE_OPERAND (_p1, 0);
19602 : 85 : tree _q51 = TREE_OPERAND (_p1, 1);
19603 : 85 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19604 : : {
19605 : 0 : {
19606 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
19607 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GT_EXPR, MAX_EXPR);
19608 : 0 : if (res) return res;
19609 : : }
19610 : : }
19611 : 85 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
19612 : : {
19613 : 35 : {
19614 : 35 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
19615 : 35 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LT_EXPR, MIN_EXPR);
19616 : 35 : if (res) return res;
19617 : : }
19618 : : }
19619 : : break;
19620 : : }
19621 : 67 : case LT_EXPR:
19622 : 67 : {
19623 : 67 : tree _q50 = TREE_OPERAND (_p1, 0);
19624 : 67 : tree _q51 = TREE_OPERAND (_p1, 1);
19625 : 67 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
19626 : : {
19627 : 0 : {
19628 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
19629 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GT_EXPR, MAX_EXPR);
19630 : 0 : if (res) return res;
19631 : : }
19632 : : }
19633 : 67 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
19634 : : {
19635 : 0 : {
19636 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
19637 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LT_EXPR, MIN_EXPR);
19638 : 0 : if (res) return res;
19639 : : }
19640 : : }
19641 : : break;
19642 : : }
19643 : : default:;
19644 : : }
19645 : : break;
19646 : : }
19647 : 53 : case GE_EXPR:
19648 : 53 : {
19649 : 53 : tree _q20 = TREE_OPERAND (_p0, 0);
19650 : 53 : tree _q21 = TREE_OPERAND (_p0, 1);
19651 : 53 : switch (TREE_CODE (_p1))
19652 : : {
19653 : 11 : case GE_EXPR:
19654 : 11 : {
19655 : 11 : tree _q50 = TREE_OPERAND (_p1, 0);
19656 : 11 : tree _q51 = TREE_OPERAND (_p1, 1);
19657 : 11 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19658 : : {
19659 : 7 : {
19660 : 7 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
19661 : 7 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GE_EXPR, MAX_EXPR);
19662 : 7 : if (res) return res;
19663 : : }
19664 : : }
19665 : 11 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
19666 : : {
19667 : 0 : {
19668 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
19669 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LE_EXPR, MIN_EXPR);
19670 : 0 : if (res) return res;
19671 : : }
19672 : : }
19673 : : break;
19674 : : }
19675 : 8 : case LE_EXPR:
19676 : 8 : {
19677 : 8 : tree _q50 = TREE_OPERAND (_p1, 0);
19678 : 8 : tree _q51 = TREE_OPERAND (_p1, 1);
19679 : 8 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
19680 : : {
19681 : 0 : {
19682 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
19683 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GE_EXPR, MAX_EXPR);
19684 : 0 : if (res) return res;
19685 : : }
19686 : : }
19687 : 8 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
19688 : : {
19689 : 0 : {
19690 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
19691 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LE_EXPR, MIN_EXPR);
19692 : 0 : if (res) return res;
19693 : : }
19694 : : }
19695 : : break;
19696 : : }
19697 : : default:;
19698 : : }
19699 : : break;
19700 : : }
19701 : 46756 : case NEGATE_EXPR:
19702 : 46756 : {
19703 : 46756 : tree _q20 = TREE_OPERAND (_p0, 0);
19704 : 46756 : if (integer_onep (_p1))
19705 : : {
19706 : 2135 : {
19707 : 2135 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
19708 : 2135 : if (!TYPE_OVERFLOW_SANITIZED (type)
19709 : : )
19710 : : {
19711 : 2122 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1891;
19712 : 2122 : {
19713 : 2122 : tree res_op0;
19714 : 2122 : res_op0 = captures[0];
19715 : 2122 : tree res_op1;
19716 : 2122 : res_op1 = captures[1];
19717 : 2122 : tree _r;
19718 : 2122 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
19719 : 2122 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1037, __FILE__, __LINE__, true);
19720 : 2122 : return _r;
19721 : : }
19722 : 0 : next_after_fail1891:;
19723 : : }
19724 : : }
19725 : : }
19726 : : break;
19727 : : }
19728 : 1 : case VEC_PERM_EXPR:
19729 : 1 : {
19730 : 1 : tree _q20 = TREE_OPERAND (_p0, 0);
19731 : 1 : tree _q21 = TREE_OPERAND (_p0, 1);
19732 : 1 : tree _q22 = TREE_OPERAND (_p0, 2);
19733 : 1 : if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
19734 : : {
19735 : 0 : switch (TREE_CODE (_p1))
19736 : : {
19737 : 0 : case VEC_PERM_EXPR:
19738 : 0 : {
19739 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
19740 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
19741 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
19742 : 0 : if ((_q61 == _q60 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q60, 0) && types_match (_q61, _q60)))
19743 : : {
19744 : 0 : if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
19745 : : {
19746 : 0 : {
19747 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q22, _q60 };
19748 : 0 : if (VECTOR_INTEGER_TYPE_P (type)
19749 : : )
19750 : : {
19751 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1892;
19752 : 0 : {
19753 : 0 : tree res_op0;
19754 : 0 : {
19755 : 0 : tree _o1[2], _r1;
19756 : 0 : _o1[0] = captures[0];
19757 : 0 : _o1[1] = captures[2];
19758 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19759 : 0 : captures[3] = _r1;
19760 : : }
19761 : 0 : res_op0 = unshare_expr (captures[3]);
19762 : 0 : tree res_op1;
19763 : 0 : res_op1 = captures[3];
19764 : 0 : tree res_op2;
19765 : 0 : res_op2 = captures[1];
19766 : 0 : tree _r;
19767 : 0 : _r = fold_build3_loc (loc, VEC_PERM_EXPR, type, res_op0, res_op1, res_op2);
19768 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 912, __FILE__, __LINE__, true);
19769 : 0 : return _r;
19770 : : }
19771 : 0 : next_after_fail1892:;
19772 : : }
19773 : : }
19774 : : }
19775 : : }
19776 : : break;
19777 : : }
19778 : : default:;
19779 : : }
19780 : : }
19781 : : break;
19782 : : }
19783 : 135920 : case CALL_EXPR:
19784 : 135920 : switch (get_call_combined_fn (_p0))
19785 : : {
19786 : 1 : case CFN_BUILT_IN_POPCOUNT:
19787 : 1 : if (call_expr_nargs (_p0) == 1)
19788 : : {
19789 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
19790 : 1 : if (integer_onep (_p1))
19791 : : {
19792 : 1 : {
19793 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
19794 : 1 : tree res = generic_simplify_449 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNT, CFN_BUILT_IN_PARITY);
19795 : 1 : if (res) return res;
19796 : : }
19797 : : }
19798 : : }
19799 : : break;
19800 : 1 : case CFN_BUILT_IN_POPCOUNTLL:
19801 : 1 : if (call_expr_nargs (_p0) == 1)
19802 : : {
19803 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
19804 : 1 : if (integer_onep (_p1))
19805 : : {
19806 : 1 : {
19807 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
19808 : 1 : tree res = generic_simplify_449 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTLL, CFN_BUILT_IN_PARITYLL);
19809 : 1 : if (res) return res;
19810 : : }
19811 : : }
19812 : : }
19813 : : break;
19814 : 0 : case CFN_POPCOUNT:
19815 : 0 : if (call_expr_nargs (_p0) == 1)
19816 : : {
19817 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
19818 : 0 : if (integer_onep (_p1))
19819 : : {
19820 : 0 : {
19821 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
19822 : 0 : tree res = generic_simplify_449 (loc, type, _p0, _p1, captures, CFN_POPCOUNT, CFN_PARITY);
19823 : 0 : if (res) return res;
19824 : : }
19825 : : }
19826 : : }
19827 : : break;
19828 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
19829 : 0 : if (call_expr_nargs (_p0) == 1)
19830 : : {
19831 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
19832 : 0 : if (integer_onep (_p1))
19833 : : {
19834 : 0 : {
19835 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
19836 : 0 : tree res = generic_simplify_449 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTIMAX, CFN_BUILT_IN_PARITYIMAX);
19837 : 0 : if (res) return res;
19838 : : }
19839 : : }
19840 : : }
19841 : : break;
19842 : 1 : case CFN_BUILT_IN_POPCOUNTL:
19843 : 1 : if (call_expr_nargs (_p0) == 1)
19844 : : {
19845 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
19846 : 1 : if (integer_onep (_p1))
19847 : : {
19848 : 1 : {
19849 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
19850 : 1 : tree res = generic_simplify_449 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTL, CFN_BUILT_IN_PARITYL);
19851 : 1 : if (res) return res;
19852 : : }
19853 : : }
19854 : : }
19855 : : break;
19856 : : default:;
19857 : : }
19858 : : break;
19859 : : default:;
19860 : : }
19861 : : return NULL_TREE;
19862 : : }
19863 : : #pragma GCC diagnostic pop
|