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 : 1641584 : tree_power_of_two_cand (tree t, tree *res_ops)
11 : : {
12 : 1641584 : const tree type = TREE_TYPE (t);
13 : 1641584 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
14 : 1641584 : if (TREE_SIDE_EFFECTS (t)) return false;
15 : 1640878 : switch (TREE_CODE (t))
16 : : {
17 : 1388784 : case INTEGER_CST:
18 : 1388784 : {
19 : 1388784 : {
20 : 1388784 : tree captures[1] ATTRIBUTE_UNUSED = { t };
21 : 1388784 : {
22 : 1388784 : res_ops[0] = captures[0];
23 : 1388784 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 12, __FILE__, __LINE__, false);
24 : : return true;
25 : : }
26 : : }
27 : 16 : break;
28 : : }
29 : 16 : case LSHIFT_EXPR:
30 : 16 : {
31 : 16 : tree _p0 = TREE_OPERAND (t, 0);
32 : 16 : tree _p1 = TREE_OPERAND (t, 1);
33 : 16 : switch (TREE_CODE (_p0))
34 : : {
35 : 16 : case INTEGER_CST:
36 : 16 : {
37 : 16 : {
38 : 16 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
39 : 16 : {
40 : 16 : res_ops[0] = captures[0];
41 : 16 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 13, __FILE__, __LINE__, false);
42 : 16 : return true;
43 : : }
44 : : }
45 : : break;
46 : : }
47 : : default:;
48 : : }
49 : : break;
50 : : }
51 : : default:;
52 : : }
53 : : return false;
54 : : }
55 : :
56 : : bool
57 : 77477483 : tree_with_possible_nonzero_bits (tree t)
58 : : {
59 : 77477483 : const tree type = TREE_TYPE (t);
60 : 77477483 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
61 : 77477483 : if (TREE_SIDE_EFFECTS (t)) return false;
62 : 72665844 : switch (TREE_CODE (t))
63 : : {
64 : 2059333 : case BIT_AND_EXPR:
65 : 2059333 : {
66 : 2059333 : tree _p0 = TREE_OPERAND (t, 0);
67 : 2059333 : tree _p1 = TREE_OPERAND (t, 1);
68 : 2059333 : if (tree_with_possible_nonzero_bits_1 (_p0))
69 : : {
70 : 977451 : {
71 : 977451 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
72 : 977451 : {
73 : 977451 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 35, __FILE__, __LINE__, false);
74 : 977451 : return true;
75 : : }
76 : : }
77 : : }
78 : 1081882 : if (tree_with_possible_nonzero_bits_1 (_p1))
79 : : {
80 : 933515 : {
81 : 933515 : tree captures[2] ATTRIBUTE_UNUSED = { _p1, _p0 };
82 : 933515 : {
83 : 933515 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 35, __FILE__, __LINE__, false);
84 : 933515 : return true;
85 : : }
86 : : }
87 : : }
88 : : break;
89 : : }
90 : 70754878 : default:;
91 : : }
92 : 70754878 : if (tree_with_possible_nonzero_bits_1 (t))
93 : : {
94 : 41723810 : {
95 : 41723810 : tree captures[1] ATTRIBUTE_UNUSED = { t };
96 : 41723810 : {
97 : 41723810 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 36, __FILE__, __LINE__, false);
98 : 41723810 : return true;
99 : : }
100 : : }
101 : : }
102 : : return false;
103 : : }
104 : :
105 : : bool
106 : 0 : tree_unsigned_integer_narrow_clip (tree t, tree *res_ops)
107 : : {
108 : 0 : const tree type = TREE_TYPE (t);
109 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
110 : 0 : if (TREE_SIDE_EFFECTS (t)) return false;
111 : 0 : switch (TREE_CODE (t))
112 : : {
113 : 0 : CASE_CONVERT:
114 : 0 : {
115 : 0 : tree _p0 = TREE_OPERAND (t, 0);
116 : 0 : switch (TREE_CODE (_p0))
117 : : {
118 : 0 : case COND_EXPR:
119 : 0 : {
120 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
121 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
122 : 0 : tree _q22 = TREE_OPERAND (_p0, 2);
123 : 0 : switch (TREE_CODE (_q20))
124 : : {
125 : 0 : case GT_EXPR:
126 : 0 : {
127 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
128 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
129 : 0 : {
130 : 0 : tree _q30_pops[1];
131 : 0 : if (tree_nop_convert (_q30, _q30_pops))
132 : : {
133 : 0 : tree _q40 = _q30_pops[0];
134 : 0 : switch (TREE_CODE (_q31))
135 : : {
136 : 0 : case INTEGER_CST:
137 : 0 : {
138 : 0 : switch (TREE_CODE (_q21))
139 : : {
140 : 0 : case RSHIFT_EXPR:
141 : 0 : {
142 : 0 : tree _q70 = TREE_OPERAND (_q21, 0);
143 : 0 : tree _q71 = TREE_OPERAND (_q21, 1);
144 : 0 : {
145 : 0 : tree _q70_pops[1];
146 : 0 : if (tree_nop_convert (_q70, _q70_pops))
147 : : {
148 : 0 : tree _q80 = _q70_pops[0];
149 : 0 : switch (TREE_CODE (_q80))
150 : : {
151 : 0 : case NEGATE_EXPR:
152 : 0 : {
153 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
154 : 0 : {
155 : 0 : tree _q90_pops[1];
156 : 0 : if (tree_nop_convert (_q90, _q90_pops))
157 : : {
158 : 0 : tree _q100 = _q90_pops[0];
159 : 0 : if ((_q100 == _q40 && ! TREE_SIDE_EFFECTS (_q100)) || (operand_equal_p (_q100, _q40, 0) && types_match (_q100, _q40)))
160 : : {
161 : 0 : switch (TREE_CODE (_q71))
162 : : {
163 : 0 : case INTEGER_CST:
164 : 0 : {
165 : 0 : if ((_q22 == _q40 && ! TREE_SIDE_EFFECTS (_q22)) || (operand_equal_p (_q22, _q40, 0) && types_match (_q22, _q40)))
166 : : {
167 : 0 : {
168 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q31, _q21, _q71 };
169 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
170 : : )
171 : : {
172 : 0 : if (! TYPE_UNSIGNED (TREE_TYPE (captures[0]))
173 : : )
174 : : {
175 : 0 : {
176 : 0 : unsigned itype_precision = TYPE_PRECISION (TREE_TYPE (captures[0]));
177 : 0 : unsigned otype_precision = TYPE_PRECISION (type);
178 : 0 : wide_int trunc_max = wi::mask (otype_precision, false, itype_precision);
179 : 0 : wide_int int_cst_1 = wi::to_wide (captures[1], itype_precision);
180 : 0 : wide_int int_cst_2 = wi::to_wide (captures[3], itype_precision);
181 : 0 : wide_int shift_amount = wi::uhwi (itype_precision - 1,
182 : 0 : itype_precision);
183 : 0 : int cmp = 0;
184 : 0 : cmp = wi::cmp (int_cst_2, shift_amount, TYPE_SIGN (TREE_TYPE (captures[0])));
185 : 0 : if (otype_precision < itype_precision && wi::eq_p (trunc_max,
186 : 0 : int_cst_1) && (cmp >= 0)
187 : : )
188 : : {
189 : 0 : {
190 : 0 : res_ops[0] = captures[0];
191 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 69, __FILE__, __LINE__, false);
192 : 0 : return true;
193 : : }
194 : : }
195 : 0 : }
196 : : }
197 : : }
198 : : }
199 : : }
200 : : break;
201 : : }
202 : : default:;
203 : : }
204 : : }
205 : : }
206 : : }
207 : 0 : break;
208 : : }
209 : : default:;
210 : : }
211 : : }
212 : : }
213 : 0 : break;
214 : : }
215 : : default:;
216 : : }
217 : : break;
218 : : }
219 : : default:;
220 : : }
221 : : }
222 : : }
223 : 0 : switch (TREE_CODE (_q31))
224 : : {
225 : 0 : case INTEGER_CST:
226 : 0 : {
227 : 0 : switch (TREE_CODE (_q21))
228 : : {
229 : 0 : case RSHIFT_EXPR:
230 : 0 : {
231 : 0 : tree _q60 = TREE_OPERAND (_q21, 0);
232 : 0 : tree _q61 = TREE_OPERAND (_q21, 1);
233 : 0 : switch (TREE_CODE (_q60))
234 : : {
235 : 0 : case NEGATE_EXPR:
236 : 0 : {
237 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
238 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
239 : : {
240 : 0 : switch (TREE_CODE (_q61))
241 : : {
242 : 0 : case INTEGER_CST:
243 : 0 : {
244 : 0 : if ((_q22 == _q30 && ! TREE_SIDE_EFFECTS (_q22)) || (operand_equal_p (_q22, _q30, 0) && types_match (_q22, _q30)))
245 : : {
246 : 0 : {
247 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q21, _q61 };
248 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
249 : : )
250 : : {
251 : 0 : if (! TYPE_UNSIGNED (TREE_TYPE (captures[0]))
252 : : )
253 : : {
254 : 0 : {
255 : 0 : unsigned itype_precision = TYPE_PRECISION (TREE_TYPE (captures[0]));
256 : 0 : unsigned otype_precision = TYPE_PRECISION (type);
257 : 0 : wide_int trunc_max = wi::mask (otype_precision, false, itype_precision);
258 : 0 : wide_int int_cst_1 = wi::to_wide (captures[1], itype_precision);
259 : 0 : wide_int int_cst_2 = wi::to_wide (captures[3], itype_precision);
260 : 0 : wide_int shift_amount = wi::uhwi (itype_precision - 1,
261 : 0 : itype_precision);
262 : 0 : int cmp = 0;
263 : 0 : cmp = wi::cmp (int_cst_2, shift_amount, TYPE_SIGN (TREE_TYPE (captures[0])));
264 : 0 : if (otype_precision < itype_precision && wi::eq_p (trunc_max,
265 : 0 : int_cst_1) && (cmp >= 0)
266 : : )
267 : : {
268 : 0 : {
269 : 0 : res_ops[0] = captures[0];
270 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 69, __FILE__, __LINE__, false);
271 : 0 : return true;
272 : : }
273 : : }
274 : 0 : }
275 : : }
276 : : }
277 : : }
278 : : }
279 : : break;
280 : : }
281 : : default:;
282 : : }
283 : : }
284 : : break;
285 : : }
286 : : default:;
287 : : }
288 : : break;
289 : : }
290 : : default:;
291 : : }
292 : : break;
293 : : }
294 : : default:;
295 : : }
296 : : break;
297 : : }
298 : : default:;
299 : : }
300 : : break;
301 : : }
302 : : default:;
303 : : }
304 : : break;
305 : : }
306 : : default:;
307 : : }
308 : : return false;
309 : : }
310 : :
311 : : bool
312 : 0 : tree_ctz_table_index (tree t, tree *res_ops)
313 : : {
314 : 0 : const tree type = TREE_TYPE (t);
315 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
316 : 0 : if (TREE_SIDE_EFFECTS (t)) return false;
317 : 0 : switch (TREE_CODE (t))
318 : : {
319 : 0 : case RSHIFT_EXPR:
320 : 0 : {
321 : 0 : tree _p0 = TREE_OPERAND (t, 0);
322 : 0 : tree _p1 = TREE_OPERAND (t, 1);
323 : 0 : switch (TREE_CODE (_p0))
324 : : {
325 : 0 : case MULT_EXPR:
326 : 0 : {
327 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
328 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
329 : 0 : switch (TREE_CODE (_q20))
330 : : {
331 : 0 : case BIT_AND_EXPR:
332 : 0 : {
333 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
334 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
335 : 0 : switch (TREE_CODE (_q30))
336 : : {
337 : 0 : case NEGATE_EXPR:
338 : 0 : {
339 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
340 : 0 : if ((_q31 == _q40 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _q40, 0) && types_match (_q31, _q40)))
341 : : {
342 : 0 : switch (TREE_CODE (_q21))
343 : : {
344 : 0 : case INTEGER_CST:
345 : 0 : {
346 : 0 : switch (TREE_CODE (_p1))
347 : : {
348 : 0 : case INTEGER_CST:
349 : 0 : {
350 : 0 : {
351 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q21, _p1 };
352 : 0 : {
353 : 0 : res_ops[0] = captures[0];
354 : 0 : res_ops[1] = captures[1];
355 : 0 : res_ops[2] = captures[2];
356 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 99, __FILE__, __LINE__, false);
357 : 0 : return true;
358 : : }
359 : : }
360 : : break;
361 : : }
362 : : default:;
363 : : }
364 : : break;
365 : : }
366 : : default:;
367 : : }
368 : : }
369 : : break;
370 : : }
371 : 0 : default:;
372 : : }
373 : 0 : switch (TREE_CODE (_q31))
374 : : {
375 : 0 : case NEGATE_EXPR:
376 : 0 : {
377 : 0 : tree _q50 = TREE_OPERAND (_q31, 0);
378 : 0 : if ((_q50 == _q30 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q30, 0) && types_match (_q50, _q30)))
379 : : {
380 : 0 : switch (TREE_CODE (_q21))
381 : : {
382 : 0 : case INTEGER_CST:
383 : 0 : {
384 : 0 : switch (TREE_CODE (_p1))
385 : : {
386 : 0 : case INTEGER_CST:
387 : 0 : {
388 : 0 : {
389 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q21, _p1 };
390 : 0 : {
391 : 0 : res_ops[0] = captures[0];
392 : 0 : res_ops[1] = captures[1];
393 : 0 : res_ops[2] = captures[2];
394 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 99, __FILE__, __LINE__, false);
395 : 0 : return true;
396 : : }
397 : : }
398 : : break;
399 : : }
400 : : default:;
401 : : }
402 : : break;
403 : : }
404 : : default:;
405 : : }
406 : : }
407 : : break;
408 : : }
409 : : default:;
410 : : }
411 : : break;
412 : : }
413 : : default:;
414 : : }
415 : : break;
416 : : }
417 : : default:;
418 : : }
419 : : break;
420 : : }
421 : : default:;
422 : : }
423 : : return false;
424 : : }
425 : :
426 : : bool
427 : 0 : tree_bitwise_induction_p (tree t, tree *res_ops)
428 : : {
429 : 0 : const tree type = TREE_TYPE (t);
430 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
431 : 0 : if (TREE_SIDE_EFFECTS (t)) return false;
432 : 0 : switch (TREE_CODE (t))
433 : : {
434 : 0 : case BIT_AND_EXPR:
435 : 0 : case BIT_IOR_EXPR:
436 : 0 : case BIT_XOR_EXPR:
437 : 0 : {
438 : 0 : tree _p0 = TREE_OPERAND (t, 0);
439 : 0 : tree _p1 = TREE_OPERAND (t, 1);
440 : 0 : {
441 : 0 : tree _p0_pops[1];
442 : 0 : if (tree_nop_convert (_p0, _p0_pops))
443 : : {
444 : 0 : tree _q20 = _p0_pops[0];
445 : 0 : switch (TREE_CODE (_q20))
446 : : {
447 : 0 : case BIT_NOT_EXPR:
448 : 0 : {
449 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
450 : 0 : switch (TREE_CODE (_q30))
451 : : {
452 : 0 : CASE_CONVERT:
453 : 0 : {
454 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
455 : 0 : switch (TREE_CODE (_q40))
456 : : {
457 : 0 : case LSHIFT_EXPR:
458 : 0 : {
459 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
460 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
461 : 0 : if (integer_onep (_q50))
462 : : {
463 : 0 : {
464 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q51, _p1, _q50 };
465 : 0 : {
466 : 0 : res_ops[0] = captures[0];
467 : 0 : res_ops[1] = captures[1];
468 : 0 : res_ops[2] = captures[2];
469 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 107, __FILE__, __LINE__, false);
470 : 0 : return true;
471 : : }
472 : : }
473 : : }
474 : : break;
475 : : }
476 : : default:;
477 : : }
478 : : break;
479 : : }
480 : 0 : case LSHIFT_EXPR:
481 : 0 : {
482 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
483 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
484 : 0 : if (integer_onep (_q40))
485 : : {
486 : 0 : {
487 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q41, _p1, _q40 };
488 : 0 : {
489 : 0 : res_ops[0] = captures[0];
490 : 0 : res_ops[1] = captures[1];
491 : 0 : res_ops[2] = captures[2];
492 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 107, __FILE__, __LINE__, false);
493 : 0 : return true;
494 : : }
495 : : }
496 : : }
497 : : break;
498 : : }
499 : : default:;
500 : : }
501 : : break;
502 : : }
503 : 0 : CASE_CONVERT:
504 : 0 : {
505 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
506 : 0 : switch (TREE_CODE (_q30))
507 : : {
508 : 0 : case LSHIFT_EXPR:
509 : 0 : {
510 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
511 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
512 : 0 : if (integer_onep (_q40))
513 : : {
514 : 0 : {
515 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q41, _p1, _q40 };
516 : 0 : {
517 : 0 : res_ops[0] = captures[0];
518 : 0 : res_ops[1] = captures[1];
519 : 0 : res_ops[2] = captures[2];
520 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 107, __FILE__, __LINE__, false);
521 : 0 : return true;
522 : : }
523 : : }
524 : : }
525 : : break;
526 : : }
527 : : default:;
528 : : }
529 : : break;
530 : : }
531 : 0 : case LSHIFT_EXPR:
532 : 0 : {
533 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
534 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
535 : 0 : if (integer_onep (_q30))
536 : : {
537 : 0 : {
538 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q31, _p1, _q30 };
539 : 0 : {
540 : 0 : res_ops[0] = captures[0];
541 : 0 : res_ops[1] = captures[1];
542 : 0 : res_ops[2] = captures[2];
543 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 107, __FILE__, __LINE__, false);
544 : 0 : return true;
545 : : }
546 : : }
547 : : }
548 : : break;
549 : : }
550 : : default:;
551 : : }
552 : : }
553 : : }
554 : 0 : {
555 : 0 : tree _p1_pops[1];
556 : 0 : if (tree_nop_convert (_p1, _p1_pops))
557 : : {
558 : 0 : tree _q30 = _p1_pops[0];
559 : 0 : switch (TREE_CODE (_q30))
560 : : {
561 : 0 : case BIT_NOT_EXPR:
562 : 0 : {
563 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
564 : 0 : switch (TREE_CODE (_q40))
565 : : {
566 : 0 : CASE_CONVERT:
567 : 0 : {
568 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
569 : 0 : switch (TREE_CODE (_q50))
570 : : {
571 : 0 : case LSHIFT_EXPR:
572 : 0 : {
573 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
574 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
575 : 0 : if (integer_onep (_q60))
576 : : {
577 : 0 : {
578 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q61, _p0, _q60 };
579 : 0 : {
580 : 0 : res_ops[0] = captures[0];
581 : 0 : res_ops[1] = captures[1];
582 : 0 : res_ops[2] = captures[2];
583 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 107, __FILE__, __LINE__, false);
584 : 0 : return true;
585 : : }
586 : : }
587 : : }
588 : : break;
589 : : }
590 : : default:;
591 : : }
592 : : break;
593 : : }
594 : 0 : case LSHIFT_EXPR:
595 : 0 : {
596 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
597 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
598 : 0 : if (integer_onep (_q50))
599 : : {
600 : 0 : {
601 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q51, _p0, _q50 };
602 : 0 : {
603 : 0 : res_ops[0] = captures[0];
604 : 0 : res_ops[1] = captures[1];
605 : 0 : res_ops[2] = captures[2];
606 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 107, __FILE__, __LINE__, false);
607 : 0 : return true;
608 : : }
609 : : }
610 : : }
611 : : break;
612 : : }
613 : : default:;
614 : : }
615 : : break;
616 : : }
617 : 0 : CASE_CONVERT:
618 : 0 : {
619 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
620 : 0 : switch (TREE_CODE (_q40))
621 : : {
622 : 0 : case LSHIFT_EXPR:
623 : 0 : {
624 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
625 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
626 : 0 : if (integer_onep (_q50))
627 : : {
628 : 0 : {
629 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q51, _p0, _q50 };
630 : 0 : {
631 : 0 : res_ops[0] = captures[0];
632 : 0 : res_ops[1] = captures[1];
633 : 0 : res_ops[2] = captures[2];
634 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 107, __FILE__, __LINE__, false);
635 : 0 : return true;
636 : : }
637 : : }
638 : : }
639 : : break;
640 : : }
641 : : default:;
642 : : }
643 : : break;
644 : : }
645 : 0 : case LSHIFT_EXPR:
646 : 0 : {
647 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
648 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
649 : 0 : if (integer_onep (_q40))
650 : : {
651 : 0 : {
652 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q41, _p0, _q40 };
653 : 0 : {
654 : 0 : res_ops[0] = captures[0];
655 : 0 : res_ops[1] = captures[1];
656 : 0 : res_ops[2] = captures[2];
657 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 107, __FILE__, __LINE__, false);
658 : 0 : return true;
659 : : }
660 : : }
661 : : }
662 : : break;
663 : : }
664 : : default:;
665 : : }
666 : : }
667 : : }
668 : 0 : switch (TREE_CODE (_p0))
669 : : {
670 : 0 : case BIT_NOT_EXPR:
671 : 0 : {
672 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
673 : 0 : switch (TREE_CODE (_q20))
674 : : {
675 : 0 : CASE_CONVERT:
676 : 0 : {
677 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
678 : 0 : switch (TREE_CODE (_q30))
679 : : {
680 : 0 : case LSHIFT_EXPR:
681 : 0 : {
682 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
683 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
684 : 0 : if (integer_onep (_q40))
685 : : {
686 : 0 : {
687 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q41, _p1, _q40 };
688 : 0 : {
689 : 0 : res_ops[0] = captures[0];
690 : 0 : res_ops[1] = captures[1];
691 : 0 : res_ops[2] = captures[2];
692 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 107, __FILE__, __LINE__, false);
693 : 0 : return true;
694 : : }
695 : : }
696 : : }
697 : : break;
698 : : }
699 : : default:;
700 : : }
701 : : break;
702 : : }
703 : 0 : case LSHIFT_EXPR:
704 : 0 : {
705 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
706 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
707 : 0 : if (integer_onep (_q30))
708 : : {
709 : 0 : {
710 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q31, _p1, _q30 };
711 : 0 : {
712 : 0 : res_ops[0] = captures[0];
713 : 0 : res_ops[1] = captures[1];
714 : 0 : res_ops[2] = captures[2];
715 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 107, __FILE__, __LINE__, false);
716 : 0 : return true;
717 : : }
718 : : }
719 : : }
720 : : break;
721 : : }
722 : : default:;
723 : : }
724 : : break;
725 : : }
726 : 0 : default:;
727 : : }
728 : 0 : switch (TREE_CODE (_p1))
729 : : {
730 : 0 : case BIT_NOT_EXPR:
731 : 0 : {
732 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
733 : 0 : switch (TREE_CODE (_q30))
734 : : {
735 : 0 : CASE_CONVERT:
736 : 0 : {
737 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
738 : 0 : switch (TREE_CODE (_q40))
739 : : {
740 : 0 : case LSHIFT_EXPR:
741 : 0 : {
742 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
743 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
744 : 0 : if (integer_onep (_q50))
745 : : {
746 : 0 : {
747 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q51, _p0, _q50 };
748 : 0 : {
749 : 0 : res_ops[0] = captures[0];
750 : 0 : res_ops[1] = captures[1];
751 : 0 : res_ops[2] = captures[2];
752 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 107, __FILE__, __LINE__, false);
753 : 0 : return true;
754 : : }
755 : : }
756 : : }
757 : : break;
758 : : }
759 : : default:;
760 : : }
761 : : break;
762 : : }
763 : 0 : case LSHIFT_EXPR:
764 : 0 : {
765 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
766 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
767 : 0 : if (integer_onep (_q40))
768 : : {
769 : 0 : {
770 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q41, _p0, _q40 };
771 : 0 : {
772 : 0 : res_ops[0] = captures[0];
773 : 0 : res_ops[1] = captures[1];
774 : 0 : res_ops[2] = captures[2];
775 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 107, __FILE__, __LINE__, false);
776 : 0 : return true;
777 : : }
778 : : }
779 : : }
780 : : break;
781 : : }
782 : : default:;
783 : : }
784 : : break;
785 : : }
786 : 0 : default:;
787 : : }
788 : 0 : switch (TREE_CODE (_p0))
789 : : {
790 : 0 : CASE_CONVERT:
791 : 0 : {
792 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
793 : 0 : switch (TREE_CODE (_q20))
794 : : {
795 : 0 : case LSHIFT_EXPR:
796 : 0 : {
797 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
798 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
799 : 0 : if (integer_onep (_q30))
800 : : {
801 : 0 : {
802 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q31, _p1, _q30 };
803 : 0 : {
804 : 0 : res_ops[0] = captures[0];
805 : 0 : res_ops[1] = captures[1];
806 : 0 : res_ops[2] = captures[2];
807 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 107, __FILE__, __LINE__, false);
808 : 0 : return true;
809 : : }
810 : : }
811 : : }
812 : : break;
813 : : }
814 : : default:;
815 : : }
816 : : break;
817 : : }
818 : 0 : default:;
819 : : }
820 : 0 : switch (TREE_CODE (_p1))
821 : : {
822 : 0 : CASE_CONVERT:
823 : 0 : {
824 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
825 : 0 : switch (TREE_CODE (_q30))
826 : : {
827 : 0 : case LSHIFT_EXPR:
828 : 0 : {
829 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
830 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
831 : 0 : if (integer_onep (_q40))
832 : : {
833 : 0 : {
834 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q41, _p0, _q40 };
835 : 0 : {
836 : 0 : res_ops[0] = captures[0];
837 : 0 : res_ops[1] = captures[1];
838 : 0 : res_ops[2] = captures[2];
839 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 107, __FILE__, __LINE__, false);
840 : 0 : return true;
841 : : }
842 : : }
843 : : }
844 : : break;
845 : : }
846 : : default:;
847 : : }
848 : : break;
849 : : }
850 : 0 : default:;
851 : : }
852 : 0 : switch (TREE_CODE (_p0))
853 : : {
854 : 0 : case LSHIFT_EXPR:
855 : 0 : {
856 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
857 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
858 : 0 : if (integer_onep (_q20))
859 : : {
860 : 0 : {
861 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q21, _p1, _q20 };
862 : 0 : {
863 : 0 : res_ops[0] = captures[0];
864 : 0 : res_ops[1] = captures[1];
865 : 0 : res_ops[2] = captures[2];
866 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 107, __FILE__, __LINE__, false);
867 : 0 : return true;
868 : : }
869 : : }
870 : : }
871 : : break;
872 : : }
873 : 0 : default:;
874 : : }
875 : 0 : switch (TREE_CODE (_p1))
876 : : {
877 : 0 : case LSHIFT_EXPR:
878 : 0 : {
879 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
880 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
881 : 0 : if (integer_onep (_q30))
882 : : {
883 : 0 : {
884 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q31, _p0, _q30 };
885 : 0 : {
886 : 0 : res_ops[0] = captures[0];
887 : 0 : res_ops[1] = captures[1];
888 : 0 : res_ops[2] = captures[2];
889 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 107, __FILE__, __LINE__, false);
890 : 0 : return true;
891 : : }
892 : : }
893 : : }
894 : : break;
895 : : }
896 : : default:;
897 : : }
898 : : break;
899 : : }
900 : 0 : case BIT_NOT_EXPR:
901 : 0 : {
902 : 0 : tree _p0 = TREE_OPERAND (t, 0);
903 : 0 : switch (TREE_CODE (_p0))
904 : : {
905 : 0 : case BIT_XOR_EXPR:
906 : 0 : {
907 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
908 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
909 : 0 : switch (TREE_CODE (_q20))
910 : : {
911 : 0 : CASE_CONVERT:
912 : 0 : {
913 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
914 : 0 : switch (TREE_CODE (_q30))
915 : : {
916 : 0 : case LSHIFT_EXPR:
917 : 0 : {
918 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
919 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
920 : 0 : if (integer_onep (_q40))
921 : : {
922 : 0 : {
923 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q41, _q21, _q40 };
924 : 0 : {
925 : 0 : res_ops[0] = captures[0];
926 : 0 : res_ops[1] = captures[1];
927 : 0 : res_ops[2] = captures[2];
928 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 108, __FILE__, __LINE__, false);
929 : 0 : return true;
930 : : }
931 : : }
932 : : }
933 : : break;
934 : : }
935 : : default:;
936 : : }
937 : : break;
938 : : }
939 : 0 : case LSHIFT_EXPR:
940 : 0 : {
941 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
942 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
943 : 0 : if (integer_onep (_q30))
944 : : {
945 : 0 : {
946 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q31, _q21, _q30 };
947 : 0 : {
948 : 0 : res_ops[0] = captures[0];
949 : 0 : res_ops[1] = captures[1];
950 : 0 : res_ops[2] = captures[2];
951 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 108, __FILE__, __LINE__, false);
952 : 0 : return true;
953 : : }
954 : : }
955 : : }
956 : : break;
957 : : }
958 : : default:;
959 : : }
960 : : break;
961 : : }
962 : 0 : default:;
963 : : }
964 : 0 : {
965 : 0 : tree _p0_pops[1];
966 : 0 : if (tree_nop_convert (_p0, _p0_pops))
967 : : {
968 : 0 : tree _q20 = _p0_pops[0];
969 : 0 : switch (TREE_CODE (_q20))
970 : : {
971 : 0 : case BIT_XOR_EXPR:
972 : 0 : {
973 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
974 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
975 : 0 : switch (TREE_CODE (_q30))
976 : : {
977 : 0 : CASE_CONVERT:
978 : 0 : {
979 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
980 : 0 : switch (TREE_CODE (_q40))
981 : : {
982 : 0 : case LSHIFT_EXPR:
983 : 0 : {
984 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
985 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
986 : 0 : if (integer_onep (_q50))
987 : : {
988 : 0 : {
989 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q51, _q31, _q50 };
990 : 0 : {
991 : 0 : res_ops[0] = captures[0];
992 : 0 : res_ops[1] = captures[1];
993 : 0 : res_ops[2] = captures[2];
994 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 108, __FILE__, __LINE__, false);
995 : 0 : return true;
996 : : }
997 : : }
998 : : }
999 : : break;
1000 : : }
1001 : : default:;
1002 : : }
1003 : : break;
1004 : : }
1005 : 0 : case LSHIFT_EXPR:
1006 : 0 : {
1007 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
1008 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
1009 : 0 : if (integer_onep (_q40))
1010 : : {
1011 : 0 : {
1012 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q41, _q31, _q40 };
1013 : 0 : {
1014 : 0 : res_ops[0] = captures[0];
1015 : 0 : res_ops[1] = captures[1];
1016 : 0 : res_ops[2] = captures[2];
1017 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 108, __FILE__, __LINE__, false);
1018 : 0 : return true;
1019 : : }
1020 : : }
1021 : : }
1022 : : break;
1023 : : }
1024 : : default:;
1025 : : }
1026 : : break;
1027 : : }
1028 : : default:;
1029 : : }
1030 : : }
1031 : : }
1032 : 0 : break;
1033 : : }
1034 : : default:;
1035 : : }
1036 : : return false;
1037 : : }
1038 : :
1039 : : tree
1040 : 557 : generic_simplify_23 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1041 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1042 : : {
1043 : 557 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1044 : 557 : if (!TYPE_SATURATING (type)
1045 : : )
1046 : : {
1047 : 557 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
1048 : 1114 : && !FIXED_POINT_TYPE_P (type)
1049 : : )
1050 : : {
1051 : 557 : if (!TYPE_OVERFLOW_TRAPS (type)
1052 : : )
1053 : : {
1054 : 557 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail275;
1055 : 557 : {
1056 : 557 : tree res_op0;
1057 : 557 : res_op0 = build_all_ones_cst (TREE_TYPE (captures[0]));
1058 : 557 : tree _r;
1059 : 557 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1060 : 557 : if (TREE_SIDE_EFFECTS (captures[0]))
1061 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1062 : 557 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 140, __FILE__, __LINE__, true);
1063 : 557 : return _r;
1064 : : }
1065 : 0 : next_after_fail275:;
1066 : : }
1067 : : }
1068 : : }
1069 : : return NULL_TREE;
1070 : : }
1071 : :
1072 : : tree
1073 : 2280131 : generic_simplify_25 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1074 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1075 : : const enum tree_code ARG_UNUSED (plusminus))
1076 : : {
1077 : 2280131 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1078 : 2280131 : if (!TYPE_SATURATING (type)
1079 : 2280131 : && (!FLOAT_TYPE_P (type) || flag_associative_math)
1080 : : )
1081 : : {
1082 : 110 : if (!ANY_INTEGRAL_TYPE_P (type)
1083 : 2279902 : || TYPE_OVERFLOW_WRAPS (type)
1084 : 3992687 : || (INTEGRAL_TYPE_P (type)
1085 : 1712675 : && tree_expr_nonzero_p (captures[1])
1086 : 3197352 : && expr_not_equal_to (captures[1], wi::minus_one (TYPE_PRECISION (type))))
1087 : : )
1088 : : {
1089 : 1484373 : if (single_use (captures[0]) || single_use (captures[3])
1090 : : )
1091 : : {
1092 : 1484373 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail277;
1093 : 1484373 : {
1094 : 1484373 : tree res_op0;
1095 : 1484373 : {
1096 : 1484373 : tree _o1[2], _r1;
1097 : 1484373 : _o1[0] = captures[2];
1098 : 1484373 : _o1[1] = captures[4];
1099 : 1484373 : _r1 = fold_build2_loc (loc, plusminus, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1100 : 1484373 : res_op0 = _r1;
1101 : : }
1102 : 1484373 : tree res_op1;
1103 : 1484373 : res_op1 = captures[1];
1104 : 1484373 : tree _r;
1105 : 1484373 : _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
1106 : 1484373 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 142, __FILE__, __LINE__, true);
1107 : 1484373 : return _r;
1108 : : }
1109 : 0 : next_after_fail277:;
1110 : : }
1111 : : else
1112 : : {
1113 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail278;
1114 : : {
1115 : : tree res_op0;
1116 : : {
1117 : : tree _o1[2], _r1;
1118 : : _o1[0] = captures[2];
1119 : : _o1[1] = captures[4];
1120 : : _r1 = fold_build2_loc (loc, plusminus, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1121 : : res_op0 = _r1;
1122 : : }
1123 : : tree res_op1;
1124 : : res_op1 = captures[1];
1125 : : tree _r;
1126 : : _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
1127 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 143, __FILE__, __LINE__, true);
1128 : : return _r;
1129 : : }
1130 : : next_after_fail278:;
1131 : : }
1132 : : }
1133 : : }
1134 : : return NULL_TREE;
1135 : : }
1136 : :
1137 : : tree
1138 : 9 : generic_simplify_29 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1139 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1140 : : {
1141 : 9 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1142 : 9 : if (INTEGRAL_TYPE_P (type)
1143 : 9 : && (
1144 : :
1145 : 9 : || !TREE_SIDE_EFFECTS (captures[1]))
1146 : : )
1147 : : {
1148 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail282;
1149 : 2 : {
1150 : 2 : tree res_op0;
1151 : 2 : {
1152 : 2 : tree _o1[1], _r1;
1153 : 2 : _o1[0] = captures[2];
1154 : 2 : if (TREE_TYPE (_o1[0]) != boolean_type_node)
1155 : : {
1156 : 2 : _r1 = fold_build1_loc (loc, NOP_EXPR, boolean_type_node, _o1[0]);
1157 : : }
1158 : : else
1159 : : _r1 = _o1[0];
1160 : 2 : res_op0 = _r1;
1161 : : }
1162 : 2 : tree res_op1;
1163 : 2 : res_op1 = captures[1];
1164 : 2 : tree res_op2;
1165 : 2 : res_op2 = captures[0];
1166 : 2 : tree _r;
1167 : 2 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
1168 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 147, __FILE__, __LINE__, true);
1169 : 2 : return _r;
1170 : : }
1171 : 0 : next_after_fail282:;
1172 : : }
1173 : : return NULL_TREE;
1174 : : }
1175 : :
1176 : : tree
1177 : 20324 : generic_simplify_33 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1178 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1179 : : const enum tree_code ARG_UNUSED (op))
1180 : : {
1181 : 20324 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1182 : 20324 : if (flag_unsafe_math_optimizations
1183 : : )
1184 : : {
1185 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail287;
1186 : 12 : {
1187 : 12 : tree res_op0;
1188 : 12 : {
1189 : 12 : tree _o1[2], _r1;
1190 : 12 : _o1[0] = captures[0];
1191 : 12 : _o1[1] = captures[2];
1192 : 12 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1193 : 12 : res_op0 = _r1;
1194 : : }
1195 : 12 : tree res_op1;
1196 : 12 : res_op1 = captures[1];
1197 : 12 : tree _r;
1198 : 12 : _r = fold_build2_loc (loc, RDIV_EXPR, type, res_op0, res_op1);
1199 : 12 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 152, __FILE__, __LINE__, true);
1200 : 12 : return _r;
1201 : : }
1202 : 0 : next_after_fail287:;
1203 : : }
1204 : : return NULL_TREE;
1205 : : }
1206 : :
1207 : : tree
1208 : 4 : generic_simplify_36 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1209 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1210 : : const combined_fn ARG_UNUSED (POPCOUNT))
1211 : : {
1212 : 4 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1213 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail290;
1214 : 4 : {
1215 : 4 : tree res_op0;
1216 : 4 : {
1217 : 4 : tree _o1[1], _r1;
1218 : 4 : _o1[0] = captures[2];
1219 : 4 : _r1 = maybe_build_call_expr_loc (loc, POPCOUNT, type, 1, _o1[0]);
1220 : 4 : if (!_r1)
1221 : 0 : goto next_after_fail290;
1222 : 4 : res_op0 = _r1;
1223 : : }
1224 : 4 : tree res_op1;
1225 : 4 : {
1226 : 4 : tree _o1[1], _r1;
1227 : 4 : _o1[0] = captures[3];
1228 : 4 : _r1 = maybe_build_call_expr_loc (loc, POPCOUNT, type, 1, _o1[0]);
1229 : 4 : if (!_r1)
1230 : 0 : goto next_after_fail290;
1231 : 4 : res_op1 = _r1;
1232 : : }
1233 : 4 : tree _r;
1234 : 4 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
1235 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 155, __FILE__, __LINE__, true);
1236 : : return _r;
1237 : : }
1238 : : next_after_fail290:;
1239 : : return NULL_TREE;
1240 : : }
1241 : :
1242 : : tree
1243 : 1 : generic_simplify_41 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1244 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1245 : : {
1246 : 1 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1247 : 1 : if (INTEGRAL_TYPE_P (type)
1248 : : )
1249 : : {
1250 : 1 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail295;
1251 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail295;
1252 : 1 : {
1253 : 1 : tree res_op0;
1254 : 1 : res_op0 = unshare_expr (captures[1]);
1255 : 1 : tree res_op1;
1256 : 1 : {
1257 : 1 : tree _o1[2], _r1;
1258 : 1 : _o1[0] = captures[4];
1259 : 1 : _o1[1] = captures[1];
1260 : 1 : _r1 = fold_build2_loc (loc, TRUNC_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1261 : 1 : res_op1 = _r1;
1262 : : }
1263 : 1 : tree _r;
1264 : 1 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
1265 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 160, __FILE__, __LINE__, true);
1266 : 1 : return _r;
1267 : : }
1268 : : next_after_fail295:;
1269 : : }
1270 : : return NULL_TREE;
1271 : : }
1272 : :
1273 : : tree
1274 : 5 : generic_simplify_46 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1275 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1276 : : {
1277 : 5 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1278 : 5 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail300;
1279 : 5 : {
1280 : 5 : tree res_op0;
1281 : 5 : res_op0 = captures[1];
1282 : 5 : tree res_op1;
1283 : 5 : {
1284 : 5 : tree _o1[1], _r1;
1285 : 5 : _o1[0] = captures[2];
1286 : 5 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
1287 : 5 : res_op1 = _r1;
1288 : : }
1289 : 5 : tree _r;
1290 : 5 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
1291 : 5 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 165, __FILE__, __LINE__, true);
1292 : : return _r;
1293 : : }
1294 : 0 : next_after_fail300:;
1295 : 0 : return NULL_TREE;
1296 : : }
1297 : :
1298 : : tree
1299 : 173 : generic_simplify_51 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1300 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1301 : : {
1302 : 173 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1303 : 173 : if (!TYPE_SATURATING (type)
1304 : : )
1305 : : {
1306 : 173 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
1307 : 346 : && !FIXED_POINT_TYPE_P (type)
1308 : : )
1309 : : {
1310 : 0 : if (!ANY_INTEGRAL_TYPE_P (type)
1311 : 173 : || TYPE_OVERFLOW_WRAPS (type)
1312 : : )
1313 : : {
1314 : 97 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail305;
1315 : 97 : {
1316 : 97 : tree res_op0;
1317 : 97 : {
1318 : 97 : tree _o1[1], _r1;
1319 : 97 : _o1[0] = captures[1];
1320 : 97 : if (TREE_TYPE (_o1[0]) != type)
1321 : : {
1322 : 0 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
1323 : : }
1324 : : else
1325 : : _r1 = _o1[0];
1326 : 97 : res_op0 = _r1;
1327 : : }
1328 : 97 : tree _r;
1329 : 97 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
1330 : 97 : if (TREE_SIDE_EFFECTS (captures[0]))
1331 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1332 : 97 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 169, __FILE__, __LINE__, true);
1333 : 97 : return _r;
1334 : : }
1335 : 0 : next_after_fail305:;
1336 : : }
1337 : : else
1338 : : {
1339 : 76 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail306;
1340 : 76 : {
1341 : 76 : tree res_op0;
1342 : 76 : {
1343 : 76 : tree _o1[1], _r1;
1344 : 76 : _o1[0] = captures[1];
1345 : 76 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
1346 : 76 : res_op0 = _r1;
1347 : : }
1348 : 76 : tree _r;
1349 : 76 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
1350 : 76 : if (TREE_SIDE_EFFECTS (captures[0]))
1351 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1352 : 76 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 170, __FILE__, __LINE__, true);
1353 : 76 : return _r;
1354 : : }
1355 : 0 : next_after_fail306:;
1356 : : }
1357 : : }
1358 : : }
1359 : : return NULL_TREE;
1360 : : }
1361 : :
1362 : : tree
1363 : 4 : generic_simplify_63 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1364 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1365 : : const enum tree_code ARG_UNUSED (log1),
1366 : : const enum tree_code ARG_UNUSED (log2),
1367 : : const combined_fn ARG_UNUSED (popcount))
1368 : : {
1369 : 4 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1370 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail323;
1371 : 4 : {
1372 : 4 : tree res_op0;
1373 : 4 : {
1374 : 4 : tree _o1[2], _r1;
1375 : 4 : _o1[0] = captures[2];
1376 : 4 : _o1[1] = captures[4];
1377 : 4 : _r1 = fold_build2_loc (loc, log2, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1378 : 4 : res_op0 = _r1;
1379 : : }
1380 : 4 : tree _r;
1381 : 4 : _r = maybe_build_call_expr_loc (loc, popcount, type, 1, res_op0);
1382 : 4 : if (!_r)
1383 : 0 : goto next_after_fail323;
1384 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 187, __FILE__, __LINE__, true);
1385 : : return _r;
1386 : : }
1387 : : next_after_fail323:;
1388 : : return NULL_TREE;
1389 : : }
1390 : :
1391 : : tree
1392 : 15 : generic_simplify_66 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1393 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1394 : : const enum tree_code ARG_UNUSED (op))
1395 : : {
1396 : 15 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1397 : 15 : if (INTEGRAL_TYPE_P (type)
1398 : : )
1399 : : {
1400 : 15 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail326;
1401 : 15 : {
1402 : 15 : tree res_op0;
1403 : 15 : {
1404 : 15 : tree _o1[2], _r1;
1405 : 15 : _o1[0] = captures[1];
1406 : 15 : _o1[1] = captures[4];
1407 : 15 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1408 : 15 : res_op0 = _r1;
1409 : : }
1410 : 15 : tree res_op1;
1411 : 15 : res_op1 = captures[2];
1412 : 15 : tree _r;
1413 : 15 : _r = fold_build2_loc (loc, RSHIFT_EXPR, type, res_op0, res_op1);
1414 : 15 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 190, __FILE__, __LINE__, true);
1415 : 15 : return _r;
1416 : : }
1417 : 0 : next_after_fail326:;
1418 : : }
1419 : : return NULL_TREE;
1420 : : }
1421 : :
1422 : : tree
1423 : 0 : generic_simplify_72 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1424 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1425 : : {
1426 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1427 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail332;
1428 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail332;
1429 : 0 : {
1430 : 0 : tree _r;
1431 : 0 : _r = captures[2];
1432 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 194, __FILE__, __LINE__, true);
1433 : : return _r;
1434 : : }
1435 : : next_after_fail332:;
1436 : : return NULL_TREE;
1437 : : }
1438 : :
1439 : : tree
1440 : 0 : generic_simplify_77 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1441 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1442 : : const enum tree_code ARG_UNUSED (bit_op))
1443 : : {
1444 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1445 : 0 : if (bit_op == BIT_AND_EXPR
1446 : : )
1447 : : {
1448 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail339;
1449 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail339;
1450 : 0 : {
1451 : 0 : tree _r;
1452 : 0 : _r = build_zero_cst (type);
1453 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 200, __FILE__, __LINE__, true);
1454 : 0 : return _r;
1455 : : }
1456 : : next_after_fail339:;
1457 : : }
1458 : : else
1459 : : {
1460 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail340;
1461 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail340;
1462 : 0 : {
1463 : 0 : tree _r;
1464 : 0 : _r = build_minus_one_cst (type);
1465 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 201, __FILE__, __LINE__, true);
1466 : 0 : return _r;
1467 : : }
1468 : : next_after_fail340:;
1469 : : }
1470 : : return NULL_TREE;
1471 : : }
1472 : :
1473 : : tree
1474 : 15 : generic_simplify_90 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1475 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1476 : : const enum tree_code ARG_UNUSED (bitop))
1477 : : {
1478 : 15 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1479 : 15 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail354;
1480 : 15 : {
1481 : 15 : tree res_op0;
1482 : 15 : res_op0 = captures[0];
1483 : 15 : tree res_op1;
1484 : 15 : {
1485 : 15 : tree _o1[1], _r1;
1486 : 15 : _o1[0] = captures[2];
1487 : 15 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
1488 : 15 : res_op1 = _r1;
1489 : : }
1490 : 15 : tree _r;
1491 : 15 : _r = fold_build2_loc (loc, bitop, type, res_op0, res_op1);
1492 : 15 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 209, __FILE__, __LINE__, true);
1493 : : return _r;
1494 : : }
1495 : 0 : next_after_fail354:;
1496 : 0 : return NULL_TREE;
1497 : : }
1498 : :
1499 : : tree
1500 : 0 : generic_simplify_99 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1501 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1502 : : const enum tree_code ARG_UNUSED (op))
1503 : : {
1504 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1505 : 0 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[3]))
1506 : 0 : && tree_nop_conversion_p (type, TREE_TYPE (captures[6]))
1507 : : )
1508 : : {
1509 : 0 : if (single_use (captures[4]) && single_use (captures[5])
1510 : : )
1511 : : {
1512 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail363;
1513 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail363;
1514 : 0 : {
1515 : 0 : tree res_op0;
1516 : 0 : res_op0 = captures[0];
1517 : 0 : tree res_op1;
1518 : 0 : {
1519 : 0 : tree _o1[1], _r1;
1520 : 0 : _o1[0] = captures[6];
1521 : 0 : if (TREE_TYPE (_o1[0]) != type)
1522 : : {
1523 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1524 : : }
1525 : : else
1526 : : _r1 = _o1[0];
1527 : 0 : res_op1 = _r1;
1528 : : }
1529 : 0 : tree _r;
1530 : 0 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
1531 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 216, __FILE__, __LINE__, true);
1532 : 0 : return _r;
1533 : : }
1534 : : next_after_fail363:;
1535 : : }
1536 : : else
1537 : : {
1538 : : if (single_use (captures[0]) && single_use (captures[1])
1539 : : )
1540 : : {
1541 : : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail364;
1542 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail364;
1543 : : {
1544 : : tree res_op0;
1545 : : {
1546 : : tree _o1[1], _r1;
1547 : : _o1[0] = captures[3];
1548 : : if (TREE_TYPE (_o1[0]) != type)
1549 : : {
1550 : : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1551 : : }
1552 : : else
1553 : : _r1 = _o1[0];
1554 : : res_op0 = _r1;
1555 : : }
1556 : : tree res_op1;
1557 : : res_op1 = captures[4];
1558 : : tree _r;
1559 : : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
1560 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 217, __FILE__, __LINE__, true);
1561 : : return _r;
1562 : : }
1563 : : next_after_fail364:;
1564 : : }
1565 : : }
1566 : : }
1567 : : return NULL_TREE;
1568 : : }
1569 : :
1570 : : tree
1571 : 82 : generic_simplify_109 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1572 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1573 : : const enum tree_code ARG_UNUSED (op))
1574 : : {
1575 : 82 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1576 : 82 : if (bitwise_equal_p (captures[4], captures[7])
1577 : : )
1578 : : {
1579 : 16 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail377;
1580 : 16 : {
1581 : 16 : tree res_op0;
1582 : 16 : {
1583 : 16 : tree _o1[2], _r1;
1584 : 16 : {
1585 : 16 : tree _o2[2], _r2;
1586 : 16 : _o2[0] = captures[5];
1587 : 16 : {
1588 : 16 : tree _o3[1], _r3;
1589 : 16 : _o3[0] = captures[6];
1590 : 16 : if (TREE_TYPE (_o3[0]) != TREE_TYPE (_o2[0]))
1591 : : {
1592 : 16 : _r3 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (_o2[0]), _o3[0]);
1593 : : }
1594 : : else
1595 : : _r3 = _o3[0];
1596 : 16 : _o2[1] = _r3;
1597 : : }
1598 : 16 : _r2 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
1599 : 16 : _o1[0] = _r2;
1600 : : }
1601 : 16 : {
1602 : 16 : tree _o2[1], _r2;
1603 : 16 : _o2[0] = captures[4];
1604 : 16 : if (TREE_TYPE (_o2[0]) != TREE_TYPE (_o1[0]))
1605 : : {
1606 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (_o1[0]), _o2[0]);
1607 : : }
1608 : : else
1609 : : _r2 = _o2[0];
1610 : 16 : _o1[1] = _r2;
1611 : : }
1612 : 16 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1613 : 16 : res_op0 = _r1;
1614 : : }
1615 : 16 : tree _r;
1616 : 16 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1617 : 16 : if (TREE_SIDE_EFFECTS (captures[7]))
1618 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[7]), _r);
1619 : 16 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 223, __FILE__, __LINE__, true);
1620 : 16 : return _r;
1621 : : }
1622 : 0 : next_after_fail377:;
1623 : : }
1624 : : return NULL_TREE;
1625 : : }
1626 : :
1627 : : tree
1628 : 0 : generic_simplify_121 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1629 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1630 : : const enum tree_code ARG_UNUSED (cmp),
1631 : : const enum tree_code ARG_UNUSED (icmp))
1632 : : {
1633 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1634 : 0 : if (INTEGRAL_TYPE_P (type)
1635 : 0 : && invert_tree_comparison (cmp, HONOR_NANS (captures[1])) == icmp
1636 : 0 : && canonicalize_math_after_vectorization_p ()
1637 : : )
1638 : : {
1639 : : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail392;
1640 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail392;
1641 : : {
1642 : : tree res_op0;
1643 : : {
1644 : : tree _o1[3], _r1;
1645 : : _o1[0] = captures[0];
1646 : : _o1[1] = captures[3];
1647 : : _o1[2] = captures[5];
1648 : : _r1 = fold_build3_loc (loc, COND_EXPR, TREE_TYPE (_o1[1]), _o1[0], _o1[1], _o1[2]);
1649 : : res_op0 = _r1;
1650 : : }
1651 : : tree res_op1;
1652 : : res_op1 = build_one_cst (type);
1653 : : tree _r;
1654 : : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
1655 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 233, __FILE__, __LINE__, true);
1656 : : return _r;
1657 : : }
1658 : 0 : next_after_fail392:;
1659 : : }
1660 : 0 : return NULL_TREE;
1661 : : }
1662 : :
1663 : : tree
1664 : 0 : generic_simplify_131 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1665 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1666 : : const enum tree_code ARG_UNUSED (cmp))
1667 : : {
1668 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1669 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail424;
1670 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail424;
1671 : 0 : {
1672 : 0 : tree res_op0;
1673 : 0 : {
1674 : 0 : tree _o1[2], _r1;
1675 : 0 : _o1[0] = build_zero_cst (TREE_TYPE (captures[0]));
1676 : 0 : _o1[1] = captures[3];
1677 : 0 : _r1 = fold_build2_loc (loc, cmp, type, _o1[0], _o1[1]);
1678 : 0 : res_op0 = _r1;
1679 : : }
1680 : 0 : tree res_op1;
1681 : 0 : res_op1 = captures[4];
1682 : 0 : tree _r;
1683 : 0 : _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
1684 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
1685 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1686 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 258, __FILE__, __LINE__, true);
1687 : : return _r;
1688 : : }
1689 : : next_after_fail424:;
1690 : : return NULL_TREE;
1691 : : }
1692 : :
1693 : : tree
1694 : 0 : generic_simplify_136 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1695 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1696 : : const enum tree_code ARG_UNUSED (eqne))
1697 : : {
1698 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1699 : 0 : if (eqne == EQ_EXPR
1700 : : )
1701 : : {
1702 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail429;
1703 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail429;
1704 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail429;
1705 : 0 : {
1706 : 0 : tree _r;
1707 : 0 : _r = captures[0];
1708 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 261, __FILE__, __LINE__, true);
1709 : 0 : return _r;
1710 : : }
1711 : : next_after_fail429:;
1712 : : }
1713 : : else
1714 : : {
1715 : 0 : if (eqne == NE_EXPR
1716 : : )
1717 : : {
1718 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail430;
1719 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail430;
1720 : 0 : {
1721 : 0 : tree _r;
1722 : 0 : _r = constant_boolean_node (true, type);
1723 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
1724 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1725 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 262, __FILE__, __LINE__, true);
1726 : 0 : return _r;
1727 : : }
1728 : : next_after_fail430:;
1729 : : }
1730 : : }
1731 : : return NULL_TREE;
1732 : : }
1733 : :
1734 : : tree
1735 : 19 : generic_simplify_143 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1736 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1737 : : const enum tree_code ARG_UNUSED (op))
1738 : : {
1739 : 19 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1740 : 38 : if (INTEGRAL_TYPE_P (type)
1741 : 19 : && operand_equal_p (captures[2], captures[6], 0)
1742 : 38 : && (tree_nonzero_bits (captures[0]) & tree_nonzero_bits (captures[4])) == 0
1743 : : )
1744 : : {
1745 : 0 : {
1746 : 0 : tree t = type;
1747 : 0 : if (!TYPE_OVERFLOW_WRAPS (t))
1748 : 0 : t = unsigned_type_for (t);
1749 : 0 : wide_int c = wi::add (wi::to_wide (captures[3]), wi::to_wide (captures[7]));
1750 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail450;
1751 : 0 : if (TREE_SIDE_EFFECTS (captures[7])) goto next_after_fail450;
1752 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail450;
1753 : 0 : {
1754 : 0 : tree res_op0;
1755 : 0 : {
1756 : 0 : tree _o1[2], _r1;
1757 : 0 : {
1758 : 0 : tree _o2[1], _r2;
1759 : 0 : _o2[0] = captures[2];
1760 : 0 : if (TREE_TYPE (_o2[0]) != t)
1761 : : {
1762 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, t, _o2[0]);
1763 : : }
1764 : : else
1765 : : _r2 = _o2[0];
1766 : 0 : _o1[0] = _r2;
1767 : : }
1768 : 0 : _o1[1] = wide_int_to_tree (t, c);
1769 : 0 : _r1 = fold_build2_loc (loc, MULT_EXPR, t, _o1[0], _o1[1]);
1770 : 0 : res_op0 = _r1;
1771 : : }
1772 : 0 : tree _r;
1773 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1774 : 0 : if (TREE_SIDE_EFFECTS (captures[6]))
1775 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[6]), _r);
1776 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 226, __FILE__, __LINE__, true);
1777 : 0 : return _r;
1778 : : }
1779 : 0 : next_after_fail450:;
1780 : 0 : }
1781 : : }
1782 : : return NULL_TREE;
1783 : : }
1784 : :
1785 : : tree
1786 : 495 : generic_simplify_147 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1787 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1788 : : const enum tree_code ARG_UNUSED (op))
1789 : : {
1790 : 495 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1791 : 990 : if (INTEGRAL_TYPE_P (type)
1792 : 493 : && tree_int_cst_sgn (captures[2]) > 0
1793 : 1976 : && (tree_nonzero_bits (captures[0]) & tree_nonzero_bits (captures[1])) == 0
1794 : : )
1795 : : {
1796 : 6 : {
1797 : 6 : tree t = type;
1798 : 6 : if (!TYPE_OVERFLOW_WRAPS (t))
1799 : 6 : t = unsigned_type_for (t);
1800 : 6 : wide_int wone = wi::one (TYPE_PRECISION (t));
1801 : 6 : wide_int c = wi::add (wi::lshift (wone, wi::to_wide (captures[2])), wone);
1802 : 6 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail454;
1803 : 6 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail454;
1804 : 6 : {
1805 : 6 : tree res_op0;
1806 : 6 : {
1807 : 6 : tree _o1[2], _r1;
1808 : 6 : {
1809 : 6 : tree _o2[1], _r2;
1810 : 6 : _o2[0] = captures[1];
1811 : 6 : if (TREE_TYPE (_o2[0]) != t)
1812 : : {
1813 : 6 : _r2 = fold_build1_loc (loc, NOP_EXPR, t, _o2[0]);
1814 : : }
1815 : : else
1816 : : _r2 = _o2[0];
1817 : 6 : _o1[0] = _r2;
1818 : : }
1819 : 6 : _o1[1] = wide_int_to_tree (t, c);
1820 : 6 : _r1 = fold_build2_loc (loc, MULT_EXPR, t, _o1[0], _o1[1]);
1821 : 6 : res_op0 = _r1;
1822 : : }
1823 : 6 : tree _r;
1824 : 6 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1825 : 6 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 265, __FILE__, __LINE__, true);
1826 : 6 : return _r;
1827 : : }
1828 : 0 : next_after_fail454:;
1829 : 6 : }
1830 : : }
1831 : : return NULL_TREE;
1832 : : }
1833 : :
1834 : : tree
1835 : 196 : generic_simplify_154 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1836 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1837 : : {
1838 : 196 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1839 : 196 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail461;
1840 : 196 : {
1841 : 196 : if (! tree_invariant_p (captures[3])) goto next_after_fail461;
1842 : 15 : tree res_op0;
1843 : 15 : {
1844 : 15 : tree _o1[2], _r1;
1845 : 15 : _o1[0] = captures[2];
1846 : 15 : _o1[1] = unshare_expr (captures[3]);
1847 : 15 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1848 : 15 : res_op0 = _r1;
1849 : : }
1850 : 15 : tree res_op1;
1851 : 15 : {
1852 : 15 : tree _o1[2], _r1;
1853 : 15 : _o1[0] = captures[4];
1854 : 15 : _o1[1] = captures[3];
1855 : 15 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1856 : 15 : if (EXPR_P (_r1))
1857 : 14 : goto next_after_fail461;
1858 : 1 : res_op1 = _r1;
1859 : : }
1860 : 1 : tree _r;
1861 : 1 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
1862 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 271, __FILE__, __LINE__, true);
1863 : : return _r;
1864 : : }
1865 : : next_after_fail461:;
1866 : : return NULL_TREE;
1867 : : }
1868 : :
1869 : : tree
1870 : 10 : generic_simplify_163 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1871 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1872 : : {
1873 : 10 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1874 : 10 : if (element_precision (type) <= element_precision (TREE_TYPE (captures[0]))
1875 : 10 : && element_precision (type) <= element_precision (TREE_TYPE (captures[1]))
1876 : : )
1877 : : {
1878 : 10 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail470;
1879 : 10 : {
1880 : 10 : tree res_op0;
1881 : 10 : {
1882 : 10 : tree _o1[1], _r1;
1883 : 10 : _o1[0] = captures[0];
1884 : 10 : if (TREE_TYPE (_o1[0]) != type)
1885 : : {
1886 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1887 : : }
1888 : : else
1889 : : _r1 = _o1[0];
1890 : 10 : res_op0 = _r1;
1891 : : }
1892 : 10 : tree res_op1;
1893 : 10 : {
1894 : 10 : tree _o1[1], _r1;
1895 : 10 : _o1[0] = captures[1];
1896 : 10 : if (TREE_TYPE (_o1[0]) != type)
1897 : : {
1898 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1899 : : }
1900 : : else
1901 : : _r1 = _o1[0];
1902 : 10 : res_op1 = _r1;
1903 : : }
1904 : 10 : tree _r;
1905 : 10 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
1906 : 10 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 280, __FILE__, __LINE__, true);
1907 : 10 : return _r;
1908 : : }
1909 : 0 : next_after_fail470:;
1910 : : }
1911 : : return NULL_TREE;
1912 : : }
1913 : :
1914 : : tree
1915 : 64 : generic_simplify_170 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1916 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1917 : : const enum tree_code ARG_UNUSED (cmp),
1918 : : const enum tree_code ARG_UNUSED (icmp),
1919 : : const enum tree_code ARG_UNUSED (ncmp))
1920 : : {
1921 : 64 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1922 : 64 : {
1923 : 64 : enum tree_code ic = invert_tree_comparison
1924 : 64 : (cmp, HONOR_NANS (captures[0]));
1925 : 64 : if (ic == icmp
1926 : : )
1927 : : {
1928 : 64 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail477;
1929 : 64 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail477;
1930 : 64 : {
1931 : 64 : tree res_op0;
1932 : 64 : res_op0 = captures[0];
1933 : 64 : tree res_op1;
1934 : 64 : res_op1 = captures[1];
1935 : 64 : tree _r;
1936 : 64 : _r = fold_build2_loc (loc, icmp, type, res_op0, res_op1);
1937 : 64 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 286, __FILE__, __LINE__, true);
1938 : 64 : return _r;
1939 : : }
1940 : : next_after_fail477:;
1941 : : }
1942 : : else
1943 : : {
1944 : 0 : if (ic == ncmp
1945 : : )
1946 : : {
1947 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail478;
1948 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail478;
1949 : 0 : {
1950 : 0 : tree res_op0;
1951 : 0 : res_op0 = captures[0];
1952 : 0 : tree res_op1;
1953 : 0 : res_op1 = captures[1];
1954 : 0 : tree _r;
1955 : 0 : _r = fold_build2_loc (loc, ncmp, type, res_op0, res_op1);
1956 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 287, __FILE__, __LINE__, true);
1957 : 0 : return _r;
1958 : : }
1959 : : next_after_fail478:;
1960 : : }
1961 : : }
1962 : : }
1963 : : return NULL_TREE;
1964 : : }
1965 : :
1966 : : tree
1967 : 6 : generic_simplify_183 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1968 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1969 : : {
1970 : 6 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1971 : 6 : if (INTEGRAL_TYPE_P (type)
1972 : 6 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
1973 : 12 : && !TYPE_UNSIGNED (TREE_TYPE (captures[0]))
1974 : : )
1975 : : {
1976 : 6 : if (TYPE_UNSIGNED (type)
1977 : : )
1978 : : {
1979 : 5 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail492;
1980 : 5 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail492;
1981 : 5 : {
1982 : 5 : tree res_op0;
1983 : 5 : res_op0 = captures[0];
1984 : 5 : tree _r;
1985 : 5 : _r = fold_build1_loc (loc, ABSU_EXPR, type, res_op0);
1986 : 5 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 298, __FILE__, __LINE__, true);
1987 : 5 : return _r;
1988 : : }
1989 : : next_after_fail492:;
1990 : : }
1991 : : else
1992 : : {
1993 : 1 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail493;
1994 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail493;
1995 : 1 : {
1996 : 1 : tree res_op0;
1997 : 1 : res_op0 = captures[0];
1998 : 1 : tree _r;
1999 : 1 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
2000 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 299, __FILE__, __LINE__, true);
2001 : 1 : return _r;
2002 : : }
2003 : : next_after_fail493:;
2004 : : }
2005 : : }
2006 : : return NULL_TREE;
2007 : : }
2008 : :
2009 : : tree
2010 : 2 : generic_simplify_193 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2011 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2012 : : const combined_fn ARG_UNUSED (SQRT_ALL))
2013 : : {
2014 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2015 : 2 : if (flag_unsafe_math_optimizations
2016 : : )
2017 : : {
2018 : 2 : if (!tree_expr_maybe_signaling_nan_p (captures[1])
2019 : : )
2020 : : {
2021 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail505;
2022 : 2 : {
2023 : 2 : tree _r;
2024 : 2 : _r = captures[1];
2025 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 308, __FILE__, __LINE__, true);
2026 : 2 : return _r;
2027 : : }
2028 : 0 : next_after_fail505:;
2029 : : }
2030 : : }
2031 : : return NULL_TREE;
2032 : : }
2033 : :
2034 : : tree
2035 : 38 : generic_simplify_198 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2036 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2037 : : const combined_fn ARG_UNUSED (POW))
2038 : : {
2039 : 38 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2040 : 38 : if (flag_unsafe_math_optimizations && canonicalize_math_p ()
2041 : : )
2042 : : {
2043 : 38 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail510;
2044 : 38 : {
2045 : 38 : tree res_op0;
2046 : 38 : res_op0 = captures[1];
2047 : 38 : tree res_op1;
2048 : 38 : {
2049 : 38 : tree _o1[2], _r1;
2050 : 38 : _o1[0] = captures[2];
2051 : 38 : _o1[1] = captures[4];
2052 : 38 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2053 : 38 : res_op1 = _r1;
2054 : : }
2055 : 38 : tree _r;
2056 : 38 : _r = maybe_build_call_expr_loc (loc, POW, type, 2, res_op0, res_op1);
2057 : 38 : if (!_r)
2058 : 0 : goto next_after_fail510;
2059 : 38 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 313, __FILE__, __LINE__, true);
2060 : 38 : return _r;
2061 : : }
2062 : : next_after_fail510:;
2063 : : }
2064 : : return NULL_TREE;
2065 : : }
2066 : :
2067 : : tree
2068 : 12 : generic_simplify_206 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2069 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2070 : : const enum tree_code ARG_UNUSED (cmp))
2071 : : {
2072 : 12 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2073 : 12 : if (element_precision (captures[0]) >= element_precision (captures[1])
2074 : 12 : && types_match (captures[1], captures[3])
2075 : : )
2076 : : {
2077 : 12 : if (wi::lt_p (wi::to_wide (captures[2]), 0, TYPE_SIGN (TREE_TYPE (captures[2])))
2078 : : )
2079 : : {
2080 : 0 : if (!TYPE_UNSIGNED (TREE_TYPE (captures[0]))
2081 : : )
2082 : : {
2083 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail518;
2084 : 0 : {
2085 : 0 : tree res_op0;
2086 : 0 : res_op0 = captures[3];
2087 : 0 : tree res_op1;
2088 : 0 : res_op1 = captures[1];
2089 : 0 : tree _r;
2090 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2091 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
2092 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2093 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 321, __FILE__, __LINE__, true);
2094 : 0 : return _r;
2095 : : }
2096 : 0 : next_after_fail518:;
2097 : : }
2098 : : else
2099 : : {
2100 : 0 : if (tree_expr_nonzero_p (captures[1]) && tree_expr_nonzero_p (captures[3])
2101 : : )
2102 : : {
2103 : 0 : {
2104 : 0 : tree utype = unsigned_type_for (TREE_TYPE (captures[1]));
2105 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail519;
2106 : 0 : {
2107 : 0 : tree res_op0;
2108 : 0 : {
2109 : 0 : tree _o1[1], _r1;
2110 : 0 : _o1[0] = captures[3];
2111 : 0 : if (TREE_TYPE (_o1[0]) != utype)
2112 : : {
2113 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, utype, _o1[0]);
2114 : : }
2115 : : else
2116 : : _r1 = _o1[0];
2117 : 0 : res_op0 = _r1;
2118 : : }
2119 : 0 : tree res_op1;
2120 : 0 : {
2121 : 0 : tree _o1[1], _r1;
2122 : 0 : _o1[0] = captures[1];
2123 : 0 : if (TREE_TYPE (_o1[0]) != utype)
2124 : : {
2125 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, utype, _o1[0]);
2126 : : }
2127 : : else
2128 : : _r1 = _o1[0];
2129 : 0 : res_op1 = _r1;
2130 : : }
2131 : 0 : tree _r;
2132 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2133 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
2134 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2135 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 322, __FILE__, __LINE__, true);
2136 : 0 : return _r;
2137 : : }
2138 : 0 : next_after_fail519:;
2139 : : }
2140 : : }
2141 : : }
2142 : : }
2143 : : else
2144 : : {
2145 : 12 : if (wi::gt_p (wi::to_wide (captures[2]), 1, TYPE_SIGN (TREE_TYPE (captures[2])))
2146 : : )
2147 : : {
2148 : 12 : if (TYPE_UNSIGNED (TREE_TYPE (captures[1])) || !TYPE_UNSIGNED (TREE_TYPE (captures[0]))
2149 : : )
2150 : : {
2151 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail520;
2152 : 12 : {
2153 : 12 : tree res_op0;
2154 : 12 : res_op0 = captures[1];
2155 : 12 : tree res_op1;
2156 : 12 : res_op1 = captures[3];
2157 : 12 : tree _r;
2158 : 12 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2159 : 12 : if (TREE_SIDE_EFFECTS (captures[2]))
2160 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2161 : 12 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 323, __FILE__, __LINE__, true);
2162 : 12 : return _r;
2163 : : }
2164 : 0 : next_after_fail520:;
2165 : : }
2166 : : else
2167 : : {
2168 : 0 : {
2169 : 0 : tree utype = unsigned_type_for (TREE_TYPE (captures[1]));
2170 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail521;
2171 : 0 : {
2172 : 0 : tree res_op0;
2173 : 0 : {
2174 : 0 : tree _o1[1], _r1;
2175 : 0 : _o1[0] = captures[1];
2176 : 0 : if (TREE_TYPE (_o1[0]) != utype)
2177 : : {
2178 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, utype, _o1[0]);
2179 : : }
2180 : : else
2181 : : _r1 = _o1[0];
2182 : 0 : res_op0 = _r1;
2183 : : }
2184 : 0 : tree res_op1;
2185 : 0 : {
2186 : 0 : tree _o1[1], _r1;
2187 : 0 : _o1[0] = captures[3];
2188 : 0 : if (TREE_TYPE (_o1[0]) != utype)
2189 : : {
2190 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, utype, _o1[0]);
2191 : : }
2192 : : else
2193 : : _r1 = _o1[0];
2194 : 0 : res_op1 = _r1;
2195 : : }
2196 : 0 : tree _r;
2197 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2198 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
2199 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2200 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 324, __FILE__, __LINE__, true);
2201 : 0 : return _r;
2202 : : }
2203 : 0 : next_after_fail521:;
2204 : : }
2205 : : }
2206 : : }
2207 : : }
2208 : : }
2209 : : return NULL_TREE;
2210 : : }
2211 : :
2212 : : tree
2213 : 181 : generic_simplify_231 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2214 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2215 : : const enum tree_code ARG_UNUSED (cmp))
2216 : : {
2217 : 181 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2218 : 181 : {
2219 : 181 : int cand = wi::ctz (wi::to_wide (captures[2])) - wi::ctz (wi::to_wide (captures[0]));
2220 : 362 : if (cand < 0
2221 : 181 : || (!integer_zerop (captures[2])
2222 : 248 : && wi::lshift (wi::to_wide (captures[0]), cand) != wi::to_wide (captures[2]))
2223 : : )
2224 : : {
2225 : 35 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail570;
2226 : 35 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail570;
2227 : 35 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail570;
2228 : 35 : {
2229 : 35 : tree _r;
2230 : 35 : _r = constant_boolean_node (cmp == NE_EXPR, type);
2231 : 35 : if (TREE_SIDE_EFFECTS (captures[1]))
2232 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2233 : 35 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 371, __FILE__, __LINE__, true);
2234 : 88 : return _r;
2235 : : }
2236 : 93 : next_after_fail570:;
2237 : : }
2238 : : else
2239 : : {
2240 : 146 : if (!integer_zerop (captures[2])
2241 : 146 : && wi::lshift (wi::to_wide (captures[0]), cand) == wi::to_wide (captures[2])
2242 : : )
2243 : : {
2244 : 53 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail571;
2245 : 53 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail571;
2246 : 53 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail571;
2247 : 53 : {
2248 : 53 : tree res_op0;
2249 : 53 : res_op0 = captures[1];
2250 : 53 : tree res_op1;
2251 : 53 : res_op1 = build_int_cst (TREE_TYPE (captures[1]), cand);
2252 : 53 : tree _r;
2253 : 53 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2254 : 53 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 372, __FILE__, __LINE__, true);
2255 : 53 : return _r;
2256 : : }
2257 : 93 : next_after_fail571:;
2258 : : }
2259 : : }
2260 : : }
2261 : 93 : return NULL_TREE;
2262 : : }
2263 : :
2264 : : tree
2265 : 34036 : generic_simplify_242 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2266 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2267 : : const enum tree_code ARG_UNUSED (cmp),
2268 : : const enum tree_code ARG_UNUSED (scmp))
2269 : : {
2270 : 34036 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2271 : 34036 : if (integer_zerop (captures[2])
2272 : : )
2273 : : {
2274 : 7 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail583;
2275 : 7 : {
2276 : 7 : tree res_op0;
2277 : 7 : res_op0 = captures[2];
2278 : 7 : tree res_op1;
2279 : 7 : res_op1 = captures[3];
2280 : 7 : tree _r;
2281 : 7 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2282 : 7 : if (TREE_SIDE_EFFECTS (captures[1]))
2283 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2284 : 7 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 383, __FILE__, __LINE__, true);
2285 : 7 : return _r;
2286 : : }
2287 : 0 : next_after_fail583:;
2288 : : }
2289 : : else
2290 : : {
2291 : 68058 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
2292 : 68058 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[1]))
2293 : 68058 : && single_use (captures[0])
2294 : : )
2295 : : {
2296 : 6372 : if (tree_int_cst_sgn (captures[2]) < 0
2297 : : )
2298 : : {
2299 : 15 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail584;
2300 : 15 : {
2301 : 15 : tree res_op0;
2302 : 15 : res_op0 = captures[1];
2303 : 15 : tree res_op1;
2304 : 15 : res_op1 = captures[3];
2305 : 15 : tree _r;
2306 : 15 : _r = fold_build2_loc (loc, scmp, type, res_op0, res_op1);
2307 : 15 : if (TREE_SIDE_EFFECTS (captures[2]))
2308 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2309 : 15 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 384, __FILE__, __LINE__, true);
2310 : 15 : return _r;
2311 : : }
2312 : 0 : next_after_fail584:;
2313 : : }
2314 : : else
2315 : : {
2316 : 6357 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail585;
2317 : 6357 : {
2318 : 6357 : tree res_op0;
2319 : 6357 : res_op0 = captures[1];
2320 : 6357 : tree res_op1;
2321 : 6357 : res_op1 = captures[3];
2322 : 6357 : tree _r;
2323 : 6357 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2324 : 6357 : if (TREE_SIDE_EFFECTS (captures[2]))
2325 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2326 : 6357 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 385, __FILE__, __LINE__, true);
2327 : 6357 : return _r;
2328 : : }
2329 : 0 : next_after_fail585:;
2330 : : }
2331 : : }
2332 : : }
2333 : : return NULL_TREE;
2334 : : }
2335 : :
2336 : : tree
2337 : 6 : generic_simplify_253 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2338 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2339 : : const combined_fn ARG_UNUSED (sq),
2340 : : const enum tree_code ARG_UNUSED (cmp))
2341 : : {
2342 : 6 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2343 : 6 : if (flag_unsafe_math_optimizations && ! flag_errno_math
2344 : : )
2345 : : {
2346 : 0 : if (! HONOR_NANS (captures[0])
2347 : : )
2348 : : {
2349 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail631;
2350 : 0 : {
2351 : 0 : tree res_op0;
2352 : 0 : res_op0 = captures[0];
2353 : 0 : tree res_op1;
2354 : 0 : res_op1 = captures[1];
2355 : 0 : tree _r;
2356 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2357 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 430, __FILE__, __LINE__, true);
2358 : 0 : return _r;
2359 : : }
2360 : 0 : next_after_fail631:;
2361 : : }
2362 : : }
2363 : : return NULL_TREE;
2364 : : }
2365 : :
2366 : : tree
2367 : 59 : generic_simplify_257 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2368 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2369 : : const enum tree_code ARG_UNUSED (cmp),
2370 : : const enum tree_code ARG_UNUSED (scmp))
2371 : : {
2372 : 59 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2373 : 96 : if (FLOAT_TYPE_P (TREE_TYPE (captures[0]))
2374 : 96 : || (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
2375 : 37 : && (cmp == EQ_EXPR
2376 : 37 : || cmp == NE_EXPR
2377 : 36 : || TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))))
2378 : : )
2379 : : {
2380 : 23 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail644;
2381 : 23 : {
2382 : 23 : tree res_op0;
2383 : 23 : res_op0 = captures[0];
2384 : 23 : tree res_op1;
2385 : 23 : res_op1 = captures[1];
2386 : 23 : tree _r;
2387 : 23 : _r = fold_build2_loc (loc, scmp, type, res_op0, res_op1);
2388 : 23 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 443, __FILE__, __LINE__, true);
2389 : 23 : return _r;
2390 : : }
2391 : 0 : next_after_fail644:;
2392 : : }
2393 : : return NULL_TREE;
2394 : : }
2395 : :
2396 : : tree
2397 : 3903048 : generic_simplify_259 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2398 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2399 : : const enum tree_code ARG_UNUSED (cmp))
2400 : : {
2401 : 3903048 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2402 : 7806070 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
2403 : 2281635 : && !(targetm.have_canonicalize_funcptr_for_compare ()
2404 : 0 : && ((POINTER_TYPE_P (TREE_TYPE (captures[1]))
2405 : 0 : && FUNC_OR_METHOD_TYPE_P (TREE_TYPE (TREE_TYPE (captures[1]))))
2406 : 0 : || (POINTER_TYPE_P (TREE_TYPE (captures[3]))
2407 : 0 : && FUNC_OR_METHOD_TYPE_P (TREE_TYPE (TREE_TYPE (captures[3]))))))
2408 : 3903048 : && single_use (captures[0])
2409 : : )
2410 : : {
2411 : 2281635 : if (TYPE_PRECISION (TREE_TYPE (captures[1])) == TYPE_PRECISION (TREE_TYPE (captures[0]))
2412 : 1653051 : && (TREE_CODE (captures[3]) == INTEGER_CST
2413 : 1653051 : || captures[2] != captures[3])
2414 : 1653051 : && (TYPE_UNSIGNED (TREE_TYPE (captures[1])) == TYPE_UNSIGNED (TREE_TYPE (captures[0]))
2415 : : || cmp == NE_EXPR
2416 : 1013006 : || cmp == EQ_EXPR)
2417 : 678861 : && !POINTER_TYPE_P (TREE_TYPE (captures[1]))
2418 : 2854536 : && (TREE_CODE (TREE_TYPE (captures[1])) != BOOLEAN_TYPE
2419 : 390 : || TREE_CODE (TREE_TYPE (captures[3])) == BOOLEAN_TYPE)
2420 : : )
2421 : : {
2422 : 572901 : if (TREE_CODE (captures[2]) == INTEGER_CST
2423 : : )
2424 : : {
2425 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail646;
2426 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail646;
2427 : 0 : {
2428 : 0 : tree res_op0;
2429 : 0 : res_op0 = captures[1];
2430 : 0 : tree res_op1;
2431 : 0 : res_op1 = force_fit_type (TREE_TYPE (captures[1]),
2432 : 0 : wide_int::from (wi::to_wide (captures[2]),
2433 : 0 : MAX (TYPE_PRECISION (TREE_TYPE (captures[2])),
2434 : : TYPE_PRECISION (TREE_TYPE (captures[1]))),
2435 : 0 : TYPE_SIGN (TREE_TYPE (captures[2]))),
2436 : 0 : 0, TREE_OVERFLOW (captures[2]));
2437 : 0 : tree _r;
2438 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2439 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
2440 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
2441 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 445, __FILE__, __LINE__, true);
2442 : 0 : return _r;
2443 : : }
2444 : : next_after_fail646:;
2445 : : }
2446 : : else
2447 : : {
2448 : 572901 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail647;
2449 : 553180 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail647;
2450 : 553180 : {
2451 : 553180 : tree res_op0;
2452 : 553180 : res_op0 = captures[1];
2453 : 553180 : tree res_op1;
2454 : 553180 : {
2455 : 553180 : tree _o1[1], _r1;
2456 : 553180 : _o1[0] = captures[2];
2457 : 553180 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
2458 : : {
2459 : 553060 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
2460 : : }
2461 : : else
2462 : : _r1 = _o1[0];
2463 : 553180 : res_op1 = _r1;
2464 : : }
2465 : 553180 : tree _r;
2466 : 553180 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2467 : 553180 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 446, __FILE__, __LINE__, true);
2468 : 553180 : return _r;
2469 : : }
2470 : : next_after_fail647:;
2471 : : }
2472 : : }
2473 : : else
2474 : : {
2475 : 1708734 : if (TYPE_PRECISION (TREE_TYPE (captures[0])) > TYPE_PRECISION (TREE_TYPE (captures[1]))
2476 : : )
2477 : : {
2478 : 567036 : if ((cmp == EQ_EXPR || cmp == NE_EXPR
2479 : 175127 : || TYPE_UNSIGNED (TREE_TYPE (captures[0])) == TYPE_UNSIGNED (TREE_TYPE (captures[1]))
2480 : 89180 : || (!TYPE_UNSIGNED (TREE_TYPE (captures[0]))
2481 : 88102 : && TYPE_UNSIGNED (TREE_TYPE (captures[1]))))
2482 : 741085 : && (types_match (TREE_TYPE (captures[3]), TREE_TYPE (captures[1]))
2483 : 116532 : || ((TYPE_PRECISION (TREE_TYPE (captures[1]))
2484 : 116532 : >= TYPE_PRECISION (TREE_TYPE (captures[3])))
2485 : 50243 : && (TYPE_UNSIGNED (TREE_TYPE (captures[1]))
2486 : 50243 : == TYPE_UNSIGNED (TREE_TYPE (captures[3]))))
2487 : 78190 : || (TREE_CODE (captures[2]) == INTEGER_CST
2488 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
2489 : 0 : && int_fits_type_p (captures[2], TREE_TYPE (captures[1]))))
2490 : : )
2491 : : {
2492 : 487768 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail648;
2493 : 487768 : {
2494 : 487768 : tree res_op0;
2495 : 487768 : res_op0 = captures[1];
2496 : 487768 : tree res_op1;
2497 : 487768 : {
2498 : 487768 : tree _o1[1], _r1;
2499 : 487768 : _o1[0] = captures[3];
2500 : 487768 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
2501 : : {
2502 : 122080 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
2503 : : }
2504 : : else
2505 : : _r1 = _o1[0];
2506 : 487768 : res_op1 = _r1;
2507 : : }
2508 : 487768 : tree _r;
2509 : 487768 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2510 : 487768 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 447, __FILE__, __LINE__, true);
2511 : 487768 : return _r;
2512 : : }
2513 : 0 : next_after_fail648:;
2514 : : }
2515 : : else
2516 : : {
2517 : 79268 : if (TREE_CODE (captures[2]) == INTEGER_CST
2518 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
2519 : 79268 : && !int_fits_type_p (captures[2], TREE_TYPE (captures[1]))
2520 : : )
2521 : : {
2522 : 0 : {
2523 : 0 : tree min = lower_bound_in_type (TREE_TYPE (captures[3]), TREE_TYPE (captures[1]));
2524 : 0 : tree max = upper_bound_in_type (TREE_TYPE (captures[3]), TREE_TYPE (captures[1]));
2525 : 0 : bool above = integer_nonzerop (const_binop (LT_EXPR, type, max, captures[2]));
2526 : 0 : bool below = integer_nonzerop (const_binop (LT_EXPR, type, captures[2], min));
2527 : 0 : if (above || below
2528 : : )
2529 : : {
2530 : 0 : if (cmp == EQ_EXPR || cmp == NE_EXPR
2531 : : )
2532 : : {
2533 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail649;
2534 : 0 : {
2535 : 0 : tree _r;
2536 : 0 : _r = constant_boolean_node (cmp == EQ_EXPR ? false : true, type);
2537 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2538 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2539 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
2540 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
2541 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 448, __FILE__, __LINE__, true);
2542 : 0 : return _r;
2543 : : }
2544 : 0 : next_after_fail649:;
2545 : : }
2546 : : else
2547 : : {
2548 : 0 : if (cmp == LT_EXPR || cmp == LE_EXPR
2549 : : )
2550 : : {
2551 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail650;
2552 : 0 : {
2553 : 0 : tree _r;
2554 : 0 : _r = constant_boolean_node (above ? true : false, type);
2555 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2556 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2557 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
2558 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
2559 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 449, __FILE__, __LINE__, true);
2560 : 0 : return _r;
2561 : : }
2562 : 0 : next_after_fail650:;
2563 : : }
2564 : : else
2565 : : {
2566 : 0 : if (cmp == GT_EXPR || cmp == GE_EXPR
2567 : : )
2568 : : {
2569 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail651;
2570 : 0 : {
2571 : 0 : tree _r;
2572 : 0 : _r = constant_boolean_node (above ? false : true, type);
2573 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2574 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2575 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
2576 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
2577 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 450, __FILE__, __LINE__, true);
2578 : 0 : return _r;
2579 : : }
2580 : 0 : next_after_fail651:;
2581 : : }
2582 : : }
2583 : : }
2584 : : }
2585 : : }
2586 : : }
2587 : : }
2588 : : }
2589 : : }
2590 : : }
2591 : : else
2592 : : {
2593 : 3197269 : if (FLOAT_TYPE_P (TREE_TYPE (captures[1]))
2594 : 91136 : && (DECIMAL_FLOAT_TYPE_P (TREE_TYPE (captures[0]))
2595 : 45568 : == DECIMAL_FLOAT_TYPE_P (TREE_TYPE (captures[1])))
2596 : 1712541 : && (DECIMAL_FLOAT_TYPE_P (TREE_TYPE (captures[0]))
2597 : 45564 : == DECIMAL_FLOAT_TYPE_P (TREE_TYPE (captures[3])))
2598 : : )
2599 : : {
2600 : 45560 : {
2601 : 45560 : tree type1 = TREE_TYPE (captures[3]);
2602 : 45560 : if (TREE_CODE (captures[3]) == REAL_CST && !DECIMAL_FLOAT_TYPE_P (type1))
2603 : : {
2604 : 0 : REAL_VALUE_TYPE orig = TREE_REAL_CST (captures[3]);
2605 : 0 : if (TYPE_PRECISION (type1) > TYPE_PRECISION (float_type_node)
2606 : 0 : && exact_real_truncate (TYPE_MODE (float_type_node), &orig))
2607 : 0 : type1 = float_type_node;
2608 : 0 : if (TYPE_PRECISION (type1) > TYPE_PRECISION (double_type_node)
2609 : 0 : && exact_real_truncate (TYPE_MODE (double_type_node), &orig))
2610 : 0 : type1 = double_type_node;
2611 : : }
2612 : 45560 : tree newtype
2613 : 45560 : = (element_precision (TREE_TYPE (captures[1])) > element_precision (type1)
2614 : 45560 : ? TREE_TYPE (captures[1]) : type1);
2615 : 45560 : if (element_precision (TREE_TYPE (captures[0])) > element_precision (newtype)
2616 : 45560 : && (!VECTOR_TYPE_P (type) || is_truth_type_for (newtype, type))
2617 : : )
2618 : : {
2619 : 1527 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail652;
2620 : 1527 : {
2621 : 1527 : tree res_op0;
2622 : 1527 : {
2623 : 1527 : tree _o1[1], _r1;
2624 : 1527 : _o1[0] = captures[1];
2625 : 1527 : if (TREE_TYPE (_o1[0]) != newtype)
2626 : : {
2627 : 9 : _r1 = fold_build1_loc (loc, NOP_EXPR, newtype, _o1[0]);
2628 : : }
2629 : : else
2630 : : _r1 = _o1[0];
2631 : 1527 : res_op0 = _r1;
2632 : : }
2633 : 1527 : tree res_op1;
2634 : 1527 : {
2635 : 1527 : tree _o1[1], _r1;
2636 : 1527 : _o1[0] = captures[3];
2637 : 1527 : if (TREE_TYPE (_o1[0]) != newtype)
2638 : : {
2639 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, newtype, _o1[0]);
2640 : : }
2641 : : else
2642 : : _r1 = _o1[0];
2643 : 1527 : res_op1 = _r1;
2644 : : }
2645 : 1527 : tree _r;
2646 : 1527 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2647 : 1527 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 451, __FILE__, __LINE__, true);
2648 : 1527 : return _r;
2649 : : }
2650 : 0 : next_after_fail652:;
2651 : : }
2652 : : }
2653 : : }
2654 : : }
2655 : : return NULL_TREE;
2656 : : }
2657 : :
2658 : : tree
2659 : 366 : generic_simplify_285 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2660 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2661 : : const enum tree_code ARG_UNUSED (op),
2662 : : const enum tree_code ARG_UNUSED (cmp),
2663 : : const combined_fn ARG_UNUSED (clz))
2664 : : {
2665 : 366 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2666 : 366 : if (!sanitize_flags_p (SANITIZE_BUILTIN)
2667 : 366 : || (cfun && (cfun->curr_properties & PROP_ssa) != 0)
2668 : : )
2669 : : {
2670 : 302 : if (integer_zerop (captures[2]) && single_use (captures[0])
2671 : : )
2672 : : {
2673 : 59 : {
2674 : 59 : tree stype = signed_type_for (TREE_TYPE (captures[1]));
2675 : 59 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail714;
2676 : 59 : {
2677 : 59 : tree res_op0;
2678 : 59 : {
2679 : 59 : tree _o1[1], _r1;
2680 : 59 : _o1[0] = captures[1];
2681 : 59 : if (TREE_TYPE (_o1[0]) != stype)
2682 : : {
2683 : 59 : _r1 = fold_build1_loc (loc, NOP_EXPR, stype, _o1[0]);
2684 : : }
2685 : : else
2686 : : _r1 = _o1[0];
2687 : 59 : res_op0 = _r1;
2688 : : }
2689 : 59 : tree res_op1;
2690 : 59 : res_op1 = build_zero_cst (stype);
2691 : 59 : tree _r;
2692 : 59 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2693 : 59 : if (TREE_SIDE_EFFECTS (captures[2]))
2694 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2695 : 59 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 496, __FILE__, __LINE__, true);
2696 : 59 : return _r;
2697 : : }
2698 : 0 : next_after_fail714:;
2699 : : }
2700 : : }
2701 : : else
2702 : : {
2703 : 243 : if (wi::to_wide (captures[2]) == TYPE_PRECISION (TREE_TYPE (captures[1])) - 1
2704 : : )
2705 : : {
2706 : 79 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail715;
2707 : 79 : {
2708 : 79 : tree res_op0;
2709 : 79 : res_op0 = captures[1];
2710 : 79 : tree res_op1;
2711 : 79 : res_op1 = build_one_cst (TREE_TYPE (captures[1]));
2712 : 79 : tree _r;
2713 : 79 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
2714 : 79 : if (TREE_SIDE_EFFECTS (captures[2]))
2715 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2716 : 79 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 497, __FILE__, __LINE__, true);
2717 : 79 : return _r;
2718 : : }
2719 : 0 : next_after_fail715:;
2720 : : }
2721 : : }
2722 : : }
2723 : : return NULL_TREE;
2724 : : }
2725 : :
2726 : : tree
2727 : 303302 : generic_simplify_292 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2728 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2729 : : const enum tree_code ARG_UNUSED (cmp),
2730 : : const enum tree_code ARG_UNUSED (icmp),
2731 : : const enum tree_code ARG_UNUSED (ncmp))
2732 : : {
2733 : 303302 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2734 : 303302 : if (types_match (type, TREE_TYPE (captures[0]))
2735 : : )
2736 : : {
2737 : 45160 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail727;
2738 : 45160 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail727;
2739 : 45160 : {
2740 : 45160 : tree res_op0;
2741 : 45160 : res_op0 = captures[1];
2742 : 45160 : tree res_op1;
2743 : 45160 : res_op1 = captures[2];
2744 : 45160 : tree _r;
2745 : 45160 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2746 : 45160 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 509, __FILE__, __LINE__, true);
2747 : 45160 : return _r;
2748 : : }
2749 : : next_after_fail727:;
2750 : : }
2751 : : return NULL_TREE;
2752 : : }
2753 : :
2754 : : tree
2755 : 0 : generic_simplify_298 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2756 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2757 : : const combined_fn ARG_UNUSED (COPYSIGN_ALL))
2758 : : {
2759 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2760 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail734;
2761 : 0 : {
2762 : 0 : tree _r;
2763 : 0 : _r = captures[0];
2764 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 516, __FILE__, __LINE__, true);
2765 : : return _r;
2766 : : }
2767 : 0 : next_after_fail734:;
2768 : 0 : return NULL_TREE;
2769 : : }
2770 : :
2771 : : tree
2772 : 0 : generic_simplify_300 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2773 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2774 : : const combined_fn ARG_UNUSED (COPYSIGN_ALL))
2775 : : {
2776 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2777 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail736;
2778 : 0 : {
2779 : 0 : tree res_op0;
2780 : 0 : res_op0 = captures[0];
2781 : 0 : tree _r;
2782 : 0 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
2783 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2784 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2785 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 518, __FILE__, __LINE__, true);
2786 : : return _r;
2787 : : }
2788 : 0 : next_after_fail736:;
2789 : 0 : return NULL_TREE;
2790 : : }
2791 : :
2792 : : tree
2793 : 1 : generic_simplify_307 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2794 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2795 : : const enum tree_code ARG_UNUSED (div))
2796 : : {
2797 : 1 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2798 : 1 : if (INTEGRAL_TYPE_P (type)
2799 : 1 : && TYPE_OVERFLOW_UNDEFINED (type)
2800 : 1 : && !integer_zerop (captures[0])
2801 : 2 : && (!flag_non_call_exceptions || tree_expr_nonzero_p (captures[0]))
2802 : : )
2803 : : {
2804 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail745;
2805 : 1 : {
2806 : 1 : tree res_op0;
2807 : 1 : {
2808 : 1 : tree _o1[2], _r1;
2809 : 1 : _o1[0] = captures[0];
2810 : 1 : _o1[1] = build_zero_cst (type);
2811 : 1 : _r1 = fold_build2_loc (loc, LT_EXPR, boolean_type_node, _o1[0], _o1[1]);
2812 : 1 : res_op0 = _r1;
2813 : : }
2814 : 1 : tree res_op1;
2815 : 1 : res_op1 = build_minus_one_cst (type);
2816 : 1 : tree res_op2;
2817 : 1 : res_op2 = build_one_cst (type);
2818 : 1 : tree _r;
2819 : 1 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
2820 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 525, __FILE__, __LINE__, true);
2821 : 1 : return _r;
2822 : : }
2823 : 0 : next_after_fail745:;
2824 : : }
2825 : : return NULL_TREE;
2826 : : }
2827 : :
2828 : : tree
2829 : 2400966 : generic_simplify_314 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2830 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2831 : : const enum tree_code ARG_UNUSED (floor_divmod),
2832 : : const enum tree_code ARG_UNUSED (trunc_divmod))
2833 : : {
2834 : 2400966 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2835 : 0 : if ((INTEGRAL_TYPE_P (type) || VECTOR_INTEGER_TYPE_P (type))
2836 : 2400966 : && TYPE_UNSIGNED (type)
2837 : : )
2838 : : {
2839 : 2392816 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail753;
2840 : 2392816 : {
2841 : 2392816 : tree res_op0;
2842 : 2392816 : res_op0 = captures[0];
2843 : 2392816 : tree res_op1;
2844 : 2392816 : res_op1 = captures[1];
2845 : 2392816 : tree _r;
2846 : 2392816 : _r = fold_build2_loc (loc, trunc_divmod, type, res_op0, res_op1);
2847 : 2392816 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 533, __FILE__, __LINE__, true);
2848 : 2392816 : return _r;
2849 : : }
2850 : 0 : next_after_fail753:;
2851 : : }
2852 : : return NULL_TREE;
2853 : : }
2854 : :
2855 : : tree
2856 : 8746 : generic_simplify_320 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2857 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2858 : : const enum tree_code ARG_UNUSED (mod))
2859 : : {
2860 : 8746 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2861 : 0 : if (ANY_INTEGRAL_TYPE_P (type)
2862 : 8746 : && TYPE_OVERFLOW_UNDEFINED (type)
2863 : 17492 : && wi::multiple_of_p (wi::to_wide (captures[1]), wi::to_wide (captures[2]),
2864 : 193 : TYPE_SIGN (type))
2865 : : )
2866 : : {
2867 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail759;
2868 : 0 : {
2869 : 0 : tree _r;
2870 : 0 : _r = build_zero_cst (type);
2871 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
2872 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2873 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2874 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2875 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
2876 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2877 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 539, __FILE__, __LINE__, true);
2878 : 0 : return _r;
2879 : : }
2880 : 0 : next_after_fail759:;
2881 : : }
2882 : : return NULL_TREE;
2883 : : }
2884 : :
2885 : : tree
2886 : 6 : generic_simplify_329 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2887 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2888 : : const combined_fn ARG_UNUSED (COS),
2889 : : const combined_fn ARG_UNUSED (SIN),
2890 : : const combined_fn ARG_UNUSED (TAN))
2891 : : {
2892 : 6 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2893 : 6 : if (flag_unsafe_math_optimizations && canonicalize_math_p ()
2894 : : )
2895 : : {
2896 : 6 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail770;
2897 : 6 : {
2898 : 6 : tree res_op0;
2899 : 6 : res_op0 = build_one_cst (type);
2900 : 6 : tree res_op1;
2901 : 6 : {
2902 : 6 : tree _o1[1], _r1;
2903 : 6 : _o1[0] = captures[1];
2904 : 6 : _r1 = maybe_build_call_expr_loc (loc, TAN, TREE_TYPE (_o1[0]), 1, _o1[0]);
2905 : 6 : if (!_r1)
2906 : 0 : goto next_after_fail770;
2907 : 6 : res_op1 = _r1;
2908 : : }
2909 : 6 : tree _r;
2910 : 6 : _r = fold_build2_loc (loc, RDIV_EXPR, type, res_op0, res_op1);
2911 : 6 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 550, __FILE__, __LINE__, true);
2912 : 6 : return _r;
2913 : : }
2914 : : next_after_fail770:;
2915 : : }
2916 : : return NULL_TREE;
2917 : : }
2918 : :
2919 : : tree
2920 : 82278 : generic_simplify_337 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2921 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2922 : : const enum tree_code ARG_UNUSED (op))
2923 : : {
2924 : 82278 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2925 : 164556 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
2926 : 82278 : && TYPE_UNSIGNED (TREE_TYPE (captures[1]))
2927 : 164556 : && wi::only_sign_bit_p (wi::to_wide (captures[1]))
2928 : : )
2929 : : {
2930 : 5 : {
2931 : 5 : tree stype = signed_type_for (TREE_TYPE (captures[1]));
2932 : 5 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail780;
2933 : 5 : {
2934 : 5 : tree res_op0;
2935 : 5 : {
2936 : 5 : tree _o1[1], _r1;
2937 : 5 : _o1[0] = captures[0];
2938 : 5 : if (TREE_TYPE (_o1[0]) != stype)
2939 : : {
2940 : 5 : _r1 = fold_build1_loc (loc, NOP_EXPR, stype, _o1[0]);
2941 : : }
2942 : : else
2943 : : _r1 = _o1[0];
2944 : 5 : res_op0 = _r1;
2945 : : }
2946 : 5 : tree res_op1;
2947 : 5 : {
2948 : 5 : tree _o1[1], _r1;
2949 : 5 : _o1[0] = captures[2];
2950 : 5 : if (TREE_TYPE (_o1[0]) != stype)
2951 : : {
2952 : 5 : _r1 = fold_build1_loc (loc, NOP_EXPR, stype, _o1[0]);
2953 : : }
2954 : : else
2955 : : _r1 = _o1[0];
2956 : 5 : res_op1 = _r1;
2957 : : }
2958 : 5 : tree _r;
2959 : 5 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
2960 : 5 : if (TREE_SIDE_EFFECTS (captures[1]))
2961 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2962 : 5 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 560, __FILE__, __LINE__, true);
2963 : 5 : return _r;
2964 : : }
2965 : 0 : next_after_fail780:;
2966 : : }
2967 : : }
2968 : : return NULL_TREE;
2969 : : }
2970 : :
2971 : : tree
2972 : 20443636 : generic_simplify_349 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2973 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2974 : : const enum tree_code ARG_UNUSED (cmp))
2975 : : {
2976 : 20443636 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2977 : 40880960 : if ((INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
2978 : 11407 : || POINTER_TYPE_P (TREE_TYPE (captures[2]))
2979 : 1742 : || VECTOR_INTEGER_TYPE_P (TREE_TYPE (captures[2])))
2980 : 40880960 : && tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
2981 : : )
2982 : : {
2983 : 20443636 : {
2984 : 20443636 : tree cst = uniform_integer_cst_p (captures[2]);
2985 : 20443636 : tree arg1_type = TREE_TYPE (cst);
2986 : 20443636 : unsigned int prec = TYPE_PRECISION (arg1_type);
2987 : 20443636 : wide_int max = wi::max_value (arg1_type);
2988 : 20443636 : wide_int signed_max = wi::max_value (prec, SIGNED);
2989 : 20443636 : wide_int min = wi::min_value (arg1_type);
2990 : 20443636 : if (wi::to_wide (cst) == max
2991 : : )
2992 : : {
2993 : 166399 : if (cmp == GT_EXPR
2994 : : )
2995 : : {
2996 : 110004 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail810;
2997 : 110004 : {
2998 : 110004 : tree _r;
2999 : 110004 : _r = constant_boolean_node (false, type);
3000 : 110004 : if (TREE_SIDE_EFFECTS (captures[0]))
3001 : 19 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
3002 : 110004 : if (TREE_SIDE_EFFECTS (captures[2]))
3003 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3004 : 110004 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 574, __FILE__, __LINE__, true);
3005 : 110004 : return _r;
3006 : : }
3007 : 0 : next_after_fail810:;
3008 : : }
3009 : : else
3010 : : {
3011 : 56395 : if (cmp == GE_EXPR
3012 : : )
3013 : : {
3014 : 13 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail811;
3015 : 13 : {
3016 : 13 : tree res_op0;
3017 : 13 : res_op0 = captures[0];
3018 : 13 : tree res_op1;
3019 : 13 : res_op1 = captures[2];
3020 : 13 : tree _r;
3021 : 13 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
3022 : 13 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 575, __FILE__, __LINE__, true);
3023 : 13 : return _r;
3024 : : }
3025 : 0 : next_after_fail811:;
3026 : : }
3027 : : else
3028 : : {
3029 : 56382 : if (cmp == LE_EXPR
3030 : : )
3031 : : {
3032 : 56372 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail812;
3033 : 56372 : {
3034 : 56372 : tree _r;
3035 : 56372 : _r = constant_boolean_node (true, type);
3036 : 56372 : if (TREE_SIDE_EFFECTS (captures[0]))
3037 : 23 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
3038 : 56372 : if (TREE_SIDE_EFFECTS (captures[2]))
3039 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3040 : 56372 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 576, __FILE__, __LINE__, true);
3041 : 56372 : return _r;
3042 : : }
3043 : 0 : next_after_fail812:;
3044 : : }
3045 : : else
3046 : : {
3047 : 10 : if (cmp == LT_EXPR
3048 : : )
3049 : : {
3050 : 10 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail813;
3051 : 10 : {
3052 : 10 : tree res_op0;
3053 : 10 : res_op0 = captures[0];
3054 : 10 : tree res_op1;
3055 : 10 : res_op1 = captures[2];
3056 : 10 : tree _r;
3057 : 10 : _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
3058 : 10 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 577, __FILE__, __LINE__, true);
3059 : 10 : return _r;
3060 : : }
3061 : 0 : next_after_fail813:;
3062 : : }
3063 : : }
3064 : : }
3065 : : }
3066 : : }
3067 : : else
3068 : : {
3069 : 20277237 : if (wi::to_wide (cst) == min
3070 : : )
3071 : : {
3072 : 1219246 : if (cmp == LT_EXPR
3073 : : )
3074 : : {
3075 : 403211 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail814;
3076 : 403211 : {
3077 : 403211 : tree _r;
3078 : 403211 : _r = constant_boolean_node (false, type);
3079 : 403211 : if (TREE_SIDE_EFFECTS (captures[0]))
3080 : 41 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
3081 : 403211 : if (TREE_SIDE_EFFECTS (captures[2]))
3082 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3083 : 403211 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 578, __FILE__, __LINE__, true);
3084 : 403211 : return _r;
3085 : : }
3086 : 0 : next_after_fail814:;
3087 : : }
3088 : : else
3089 : : {
3090 : 816035 : if (cmp == LE_EXPR
3091 : : )
3092 : : {
3093 : 128085 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail815;
3094 : 128085 : {
3095 : 128085 : tree res_op0;
3096 : 128085 : res_op0 = captures[0];
3097 : 128085 : tree res_op1;
3098 : 128085 : res_op1 = captures[2];
3099 : 128085 : tree _r;
3100 : 128085 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
3101 : 128085 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 579, __FILE__, __LINE__, true);
3102 : 128085 : return _r;
3103 : : }
3104 : 0 : next_after_fail815:;
3105 : : }
3106 : : else
3107 : : {
3108 : 687950 : if (cmp == GE_EXPR
3109 : : )
3110 : : {
3111 : 259743 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail816;
3112 : 259743 : {
3113 : 259743 : tree _r;
3114 : 259743 : _r = constant_boolean_node (true, type);
3115 : 259743 : if (TREE_SIDE_EFFECTS (captures[0]))
3116 : 9 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
3117 : 259743 : if (TREE_SIDE_EFFECTS (captures[2]))
3118 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3119 : 259743 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 580, __FILE__, __LINE__, true);
3120 : 259743 : return _r;
3121 : : }
3122 : 0 : next_after_fail816:;
3123 : : }
3124 : : else
3125 : : {
3126 : 428207 : if (cmp == GT_EXPR
3127 : : )
3128 : : {
3129 : 428207 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail817;
3130 : 428207 : {
3131 : 428207 : tree res_op0;
3132 : 428207 : res_op0 = captures[0];
3133 : 428207 : tree res_op1;
3134 : 428207 : res_op1 = captures[2];
3135 : 428207 : tree _r;
3136 : 428207 : _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
3137 : 428207 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 581, __FILE__, __LINE__, true);
3138 : 428207 : return _r;
3139 : : }
3140 : 0 : next_after_fail817:;
3141 : : }
3142 : : }
3143 : : }
3144 : : }
3145 : : }
3146 : : else
3147 : : {
3148 : 19057994 : if (wi::to_wide (cst) == max - 1
3149 : : )
3150 : : {
3151 : 381914 : if (cmp == GT_EXPR
3152 : : )
3153 : : {
3154 : 136032 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail818;
3155 : 136032 : {
3156 : 136032 : tree res_op0;
3157 : 136032 : res_op0 = captures[0];
3158 : 136032 : tree res_op1;
3159 : 136032 : res_op1 = build_uniform_cst (TREE_TYPE (captures[2]),
3160 : 136032 : wide_int_to_tree (TREE_TYPE (cst),
3161 : 136032 : wi::to_wide (cst)
3162 : 272064 : + 1));
3163 : 136032 : tree _r;
3164 : 136032 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
3165 : 136032 : if (TREE_SIDE_EFFECTS (captures[2]))
3166 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3167 : 136032 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 582, __FILE__, __LINE__, true);
3168 : 136032 : return _r;
3169 : : }
3170 : 0 : next_after_fail818:;
3171 : : }
3172 : : else
3173 : : {
3174 : 245882 : if (cmp == LE_EXPR
3175 : : )
3176 : : {
3177 : 245882 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail819;
3178 : 245882 : {
3179 : 245882 : tree res_op0;
3180 : 245882 : res_op0 = captures[0];
3181 : 245882 : tree res_op1;
3182 : 245882 : res_op1 = build_uniform_cst (TREE_TYPE (captures[2]),
3183 : 245882 : wide_int_to_tree (TREE_TYPE (cst),
3184 : 245882 : wi::to_wide (cst)
3185 : 491764 : + 1));
3186 : 245882 : tree _r;
3187 : 245882 : _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
3188 : 245882 : if (TREE_SIDE_EFFECTS (captures[2]))
3189 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3190 : 245882 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 583, __FILE__, __LINE__, true);
3191 : 245882 : return _r;
3192 : : }
3193 : 0 : next_after_fail819:;
3194 : : }
3195 : : }
3196 : : }
3197 : : else
3198 : : {
3199 : 18676080 : if (wi::to_wide (cst) == min + 1
3200 : : )
3201 : : {
3202 : 679884 : if (cmp == GE_EXPR
3203 : : )
3204 : : {
3205 : 46558 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail820;
3206 : 46558 : {
3207 : 46558 : tree res_op0;
3208 : 46558 : res_op0 = captures[0];
3209 : 46558 : tree res_op1;
3210 : 46558 : res_op1 = build_uniform_cst (TREE_TYPE (captures[2]),
3211 : 46558 : wide_int_to_tree (TREE_TYPE (cst),
3212 : 46558 : wi::to_wide (cst)
3213 : 93116 : - 1));
3214 : 46558 : tree _r;
3215 : 46558 : _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
3216 : 46558 : if (TREE_SIDE_EFFECTS (captures[2]))
3217 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3218 : 46558 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 584, __FILE__, __LINE__, true);
3219 : 46558 : return _r;
3220 : : }
3221 : 0 : next_after_fail820:;
3222 : : }
3223 : : else
3224 : : {
3225 : 633326 : if (cmp == LT_EXPR
3226 : : )
3227 : : {
3228 : 27854 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail821;
3229 : 27854 : {
3230 : 27854 : tree res_op0;
3231 : 27854 : res_op0 = captures[0];
3232 : 27854 : tree res_op1;
3233 : 27854 : res_op1 = build_uniform_cst (TREE_TYPE (captures[2]),
3234 : 27854 : wide_int_to_tree (TREE_TYPE (cst),
3235 : 27854 : wi::to_wide (cst)
3236 : 55708 : - 1));
3237 : 27854 : tree _r;
3238 : 27854 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
3239 : 27854 : if (TREE_SIDE_EFFECTS (captures[2]))
3240 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3241 : 27854 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 585, __FILE__, __LINE__, true);
3242 : 27854 : return _r;
3243 : : }
3244 : 0 : next_after_fail821:;
3245 : : }
3246 : : }
3247 : : }
3248 : : else
3249 : : {
3250 : 17996193 : if (wi::to_wide (cst) == signed_max
3251 : 91179 : && TYPE_UNSIGNED (arg1_type)
3252 : 91179 : && TYPE_MODE (arg1_type) != BLKmode
3253 : 17996200 : && prec == GET_MODE_PRECISION (SCALAR_INT_TYPE_MODE (arg1_type))
3254 : 18087038 : && INTEGRAL_TYPE_P (arg1_type)
3255 : : )
3256 : : {
3257 : 90838 : if (cmp == LE_EXPR || cmp == GT_EXPR
3258 : : )
3259 : : {
3260 : 90838 : {
3261 : 90838 : tree st = signed_type_for (TREE_TYPE (captures[2]));
3262 : 90838 : if (cst == captures[2] && cmp == LE_EXPR
3263 : : )
3264 : : {
3265 : 40133 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail822;
3266 : 40133 : {
3267 : 40133 : tree res_op0;
3268 : 40133 : {
3269 : 40133 : tree _o1[1], _r1;
3270 : 40133 : _o1[0] = captures[1];
3271 : 40133 : if (TREE_TYPE (_o1[0]) != st)
3272 : : {
3273 : 40133 : _r1 = fold_build1_loc (loc, NOP_EXPR, st, _o1[0]);
3274 : : }
3275 : : else
3276 : : _r1 = _o1[0];
3277 : 40133 : res_op0 = _r1;
3278 : : }
3279 : 40133 : tree res_op1;
3280 : 40133 : res_op1 = build_zero_cst (st);
3281 : 40133 : tree _r;
3282 : 40133 : _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
3283 : 40133 : if (TREE_SIDE_EFFECTS (captures[2]))
3284 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3285 : 40133 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 586, __FILE__, __LINE__, true);
3286 : 40133 : return _r;
3287 : : }
3288 : 0 : next_after_fail822:;
3289 : 0 : }
3290 : : else
3291 : : {
3292 : 50705 : if (cst == captures[2] && cmp == GT_EXPR
3293 : : )
3294 : : {
3295 : 50619 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail823;
3296 : 50619 : {
3297 : 50619 : tree res_op0;
3298 : 50619 : {
3299 : 50619 : tree _o1[1], _r1;
3300 : 50619 : _o1[0] = captures[1];
3301 : 50619 : if (TREE_TYPE (_o1[0]) != st)
3302 : : {
3303 : 50619 : _r1 = fold_build1_loc (loc, NOP_EXPR, st, _o1[0]);
3304 : : }
3305 : : else
3306 : : _r1 = _o1[0];
3307 : 50619 : res_op0 = _r1;
3308 : : }
3309 : 50619 : tree res_op1;
3310 : 50619 : res_op1 = build_zero_cst (st);
3311 : 50619 : tree _r;
3312 : 50619 : _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
3313 : 50619 : if (TREE_SIDE_EFFECTS (captures[2]))
3314 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3315 : 50619 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 587, __FILE__, __LINE__, true);
3316 : 50619 : return _r;
3317 : : }
3318 : 0 : next_after_fail823:;
3319 : 0 : }
3320 : : else
3321 : : {
3322 : 86 : if (cmp == LE_EXPR
3323 : : )
3324 : : {
3325 : 30 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail824;
3326 : 30 : {
3327 : 30 : tree res_op0;
3328 : 30 : {
3329 : 30 : tree _o1[1], _r1;
3330 : 30 : _o1[0] = captures[1];
3331 : 30 : if (TREE_TYPE (_o1[0]) != st)
3332 : : {
3333 : 30 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, st, _o1[0]);
3334 : : }
3335 : : else
3336 : : _r1 = _o1[0];
3337 : 30 : res_op0 = _r1;
3338 : : }
3339 : 30 : tree res_op1;
3340 : 30 : res_op1 = build_zero_cst (st);
3341 : 30 : tree _r;
3342 : 30 : _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
3343 : 30 : if (TREE_SIDE_EFFECTS (captures[2]))
3344 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3345 : 30 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 588, __FILE__, __LINE__, true);
3346 : 30 : return _r;
3347 : : }
3348 : 0 : next_after_fail824:;
3349 : : }
3350 : : else
3351 : : {
3352 : 56 : if (cmp == GT_EXPR
3353 : : )
3354 : : {
3355 : 56 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail825;
3356 : 56 : {
3357 : 56 : tree res_op0;
3358 : 56 : {
3359 : 56 : tree _o1[1], _r1;
3360 : 56 : _o1[0] = captures[1];
3361 : 56 : if (TREE_TYPE (_o1[0]) != st)
3362 : : {
3363 : 56 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, st, _o1[0]);
3364 : : }
3365 : : else
3366 : : _r1 = _o1[0];
3367 : 56 : res_op0 = _r1;
3368 : : }
3369 : 56 : tree res_op1;
3370 : 56 : res_op1 = build_zero_cst (st);
3371 : 56 : tree _r;
3372 : 56 : _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
3373 : 56 : if (TREE_SIDE_EFFECTS (captures[2]))
3374 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3375 : 56 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 589, __FILE__, __LINE__, true);
3376 : 56 : return _r;
3377 : : }
3378 : 0 : next_after_fail825:;
3379 : : }
3380 : : }
3381 : : }
3382 : : }
3383 : : }
3384 : : }
3385 : : }
3386 : : }
3387 : : }
3388 : : }
3389 : : }
3390 : 20443642 : }
3391 : : }
3392 : : return NULL_TREE;
3393 : : }
3394 : :
3395 : : tree
3396 : 0 : generic_simplify_398 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3397 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3398 : : {
3399 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3400 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail905;
3401 : 0 : {
3402 : 0 : tree _r;
3403 : 0 : _r = captures[0];
3404 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
3405 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3406 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 650, __FILE__, __LINE__, true);
3407 : : return _r;
3408 : : }
3409 : 0 : next_after_fail905:;
3410 : 0 : return NULL_TREE;
3411 : : }
3412 : :
3413 : : tree
3414 : 0 : generic_simplify_400 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3415 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3416 : : const combined_fn ARG_UNUSED (copysigns),
3417 : : const combined_fn ARG_UNUSED (hypots))
3418 : : {
3419 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3420 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail907;
3421 : 0 : {
3422 : 0 : tree res_op0;
3423 : 0 : res_op0 = captures[0];
3424 : 0 : tree res_op1;
3425 : 0 : res_op1 = captures[1];
3426 : 0 : tree _r;
3427 : 0 : _r = maybe_build_call_expr_loc (loc, hypots, type, 2, res_op0, res_op1);
3428 : 0 : if (!_r)
3429 : 0 : goto next_after_fail907;
3430 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
3431 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3432 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 652, __FILE__, __LINE__, true);
3433 : : return _r;
3434 : : }
3435 : : next_after_fail907:;
3436 : : return NULL_TREE;
3437 : : }
3438 : :
3439 : : tree
3440 : 0 : generic_simplify_406 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3441 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3442 : : {
3443 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3444 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail913;
3445 : 0 : {
3446 : 0 : tree res_op0;
3447 : 0 : res_op0 = captures[0];
3448 : 0 : tree res_op1;
3449 : 0 : res_op1 = captures[1];
3450 : 0 : tree _r;
3451 : 0 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
3452 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 658, __FILE__, __LINE__, true);
3453 : : return _r;
3454 : : }
3455 : 0 : next_after_fail913:;
3456 : 0 : return NULL_TREE;
3457 : : }
3458 : :
3459 : : tree
3460 : 325 : generic_simplify_412 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3461 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3462 : : const enum tree_code ARG_UNUSED (bitop),
3463 : : const enum tree_code ARG_UNUSED (op))
3464 : : {
3465 : 325 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3466 : 325 : {
3467 : 325 : tree pmop[2];
3468 : 325 : tree utype = fold_bit_and_mask (TREE_TYPE (captures[1]), captures[5], op, captures[1], ERROR_MARK,
3469 : : NULL_TREE, NULL_TREE, captures[2], bitop, captures[3],
3470 : : captures[4], pmop);
3471 : 325 : if (utype
3472 : : )
3473 : : {
3474 : 324 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail919;
3475 : 324 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail919;
3476 : 324 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail919;
3477 : 324 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail919;
3478 : 324 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail919;
3479 : 324 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail919;
3480 : 324 : {
3481 : 324 : tree res_op0;
3482 : 324 : {
3483 : 324 : tree _o1[2], _r1;
3484 : 324 : {
3485 : 324 : tree _o2[2], _r2;
3486 : 324 : {
3487 : 324 : tree _o3[1], _r3;
3488 : 324 : _o3[0] = pmop[0];
3489 : 324 : if (TREE_TYPE (_o3[0]) != utype)
3490 : : {
3491 : 14 : _r3 = fold_build1_loc (loc, NOP_EXPR, utype, _o3[0]);
3492 : : }
3493 : : else
3494 : : _r3 = _o3[0];
3495 : 324 : _o2[0] = _r3;
3496 : : }
3497 : 324 : {
3498 : 324 : tree _o3[1], _r3;
3499 : 324 : _o3[0] = pmop[1];
3500 : 324 : if (TREE_TYPE (_o3[0]) != utype)
3501 : : {
3502 : 74 : _r3 = fold_build1_loc (loc, NOP_EXPR, utype, _o3[0]);
3503 : : }
3504 : : else
3505 : : _r3 = _o3[0];
3506 : 324 : _o2[1] = _r3;
3507 : : }
3508 : 324 : _r2 = fold_build2_loc (loc, op, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
3509 : 324 : _o1[0] = _r2;
3510 : : }
3511 : 324 : {
3512 : 324 : tree _o2[1], _r2;
3513 : 324 : _o2[0] = captures[5];
3514 : 324 : if (TREE_TYPE (_o2[0]) != utype)
3515 : : {
3516 : 14 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
3517 : : }
3518 : : else
3519 : : _r2 = _o2[0];
3520 : 324 : _o1[1] = _r2;
3521 : : }
3522 : 324 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3523 : 324 : res_op0 = _r1;
3524 : : }
3525 : 324 : tree _r;
3526 : 324 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3527 : 324 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 663, __FILE__, __LINE__, true);
3528 : 324 : return _r;
3529 : : }
3530 : 1 : next_after_fail919:;
3531 : : }
3532 : : }
3533 : 1 : return NULL_TREE;
3534 : : }
3535 : :
3536 : : tree
3537 : 8 : generic_simplify_428 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3538 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3539 : : const enum tree_code ARG_UNUSED (eqne))
3540 : : {
3541 : 8 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3542 : 8 : if (eqne == EQ_EXPR
3543 : : )
3544 : : {
3545 : 4 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail940;
3546 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail940;
3547 : 4 : {
3548 : 4 : tree _r;
3549 : 4 : _r = constant_boolean_node (false, type);
3550 : 4 : if (TREE_SIDE_EFFECTS (captures[2]))
3551 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3552 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 680, __FILE__, __LINE__, true);
3553 : 4 : return _r;
3554 : : }
3555 : : next_after_fail940:;
3556 : : }
3557 : : else
3558 : : {
3559 : 4 : if (eqne == NE_EXPR
3560 : : )
3561 : : {
3562 : 4 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail941;
3563 : 4 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail941;
3564 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail941;
3565 : 4 : {
3566 : 4 : tree _r;
3567 : 4 : _r = captures[0];
3568 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 681, __FILE__, __LINE__, true);
3569 : 4 : return _r;
3570 : : }
3571 : : next_after_fail941:;
3572 : : }
3573 : : }
3574 : : return NULL_TREE;
3575 : : }
3576 : :
3577 : : tree
3578 : 0 : generic_simplify_433 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3579 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3580 : : const enum tree_code ARG_UNUSED (eqne))
3581 : : {
3582 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3583 : 0 : if (eqne == EQ_EXPR
3584 : : )
3585 : : {
3586 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail965;
3587 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail965;
3588 : 0 : {
3589 : 0 : tree _r;
3590 : 0 : _r = constant_boolean_node (false, type);
3591 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
3592 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3593 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 680, __FILE__, __LINE__, true);
3594 : 0 : return _r;
3595 : : }
3596 : : next_after_fail965:;
3597 : : }
3598 : : else
3599 : : {
3600 : 0 : if (eqne == NE_EXPR
3601 : : )
3602 : : {
3603 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail966;
3604 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail966;
3605 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail966;
3606 : 0 : {
3607 : 0 : tree _r;
3608 : 0 : _r = captures[0];
3609 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 681, __FILE__, __LINE__, true);
3610 : 0 : return _r;
3611 : : }
3612 : : next_after_fail966:;
3613 : : }
3614 : : }
3615 : : return NULL_TREE;
3616 : : }
3617 : :
3618 : : tree
3619 : 0 : generic_simplify_437 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3620 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3621 : : const enum tree_code ARG_UNUSED (code2),
3622 : : const enum tree_code ARG_UNUSED (code1))
3623 : : {
3624 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3625 : 0 : if ((TREE_CODE (captures[2]) == INTEGER_CST
3626 : 0 : && TREE_CODE (captures[5]) == INTEGER_CST)
3627 : 0 : || ((INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
3628 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[2]))
3629 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, code2))
3630 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[2])))
3631 : 0 : && bitwise_equal_p (captures[2], captures[5]))
3632 : : )
3633 : : {
3634 : 0 : {
3635 : 0 : bool one_before = false;
3636 : 0 : bool one_after = false;
3637 : 0 : int cmp = 0;
3638 : 0 : bool allbits = true;
3639 : 0 : if (TREE_CODE (captures[2]) == INTEGER_CST
3640 : 0 : && TREE_CODE (captures[5]) == INTEGER_CST)
3641 : : {
3642 : 0 : allbits = TYPE_PRECISION (TREE_TYPE (captures[2])) <= TYPE_PRECISION (TREE_TYPE (captures[5]));
3643 : 0 : auto t1 = wi::to_wide (fold_convert (TREE_TYPE (captures[5]), captures[2]));
3644 : 0 : auto t2 = wi::to_wide (captures[5]);
3645 : 0 : cmp = wi::cmp (t1, t2, TYPE_SIGN (TREE_TYPE (captures[5])));
3646 : 0 : if (cmp < 0
3647 : 0 : && t1 == t2 - 1)
3648 : : one_before = true;
3649 : 0 : if (cmp > 0
3650 : 0 : && t1 == t2 + 1)
3651 : : one_after = true;
3652 : : }
3653 : 0 : bool val;
3654 : 0 : switch (code2)
3655 : : {
3656 : 0 : case EQ_EXPR: val = (cmp == 0); break;
3657 : 0 : case NE_EXPR: val = (cmp != 0); break;
3658 : 0 : case LT_EXPR: val = (cmp < 0); break;
3659 : 0 : case GT_EXPR: val = (cmp > 0); break;
3660 : 0 : case LE_EXPR: val = (cmp <= 0); break;
3661 : 0 : case GE_EXPR: val = (cmp >= 0); break;
3662 : 0 : default: gcc_unreachable ();
3663 : : }
3664 : 0 : if (code1 == EQ_EXPR && val
3665 : : )
3666 : : {
3667 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail971;
3668 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail971;
3669 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail971;
3670 : 0 : {
3671 : 0 : tree _r;
3672 : 0 : _r = captures[0];
3673 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 684, __FILE__, __LINE__, true);
3674 : 0 : return _r;
3675 : : }
3676 : : next_after_fail971:;
3677 : : }
3678 : : else
3679 : : {
3680 : 0 : if (code1 == EQ_EXPR && !val
3681 : : )
3682 : : {
3683 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail972;
3684 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail972;
3685 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail972;
3686 : 0 : {
3687 : 0 : tree _r;
3688 : 0 : _r = constant_boolean_node (false, type);
3689 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
3690 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3691 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 685, __FILE__, __LINE__, true);
3692 : 0 : return _r;
3693 : : }
3694 : : next_after_fail972:;
3695 : : }
3696 : : else
3697 : : {
3698 : 0 : if (code1 == NE_EXPR && !val && allbits
3699 : : )
3700 : : {
3701 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail973;
3702 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail973;
3703 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail973;
3704 : 0 : {
3705 : 0 : tree _r;
3706 : 0 : _r = captures[3];
3707 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 686, __FILE__, __LINE__, true);
3708 : 0 : return _r;
3709 : : }
3710 : : next_after_fail973:;
3711 : : }
3712 : : else
3713 : : {
3714 : 0 : if ((code1 == NE_EXPR
3715 : 0 : && code2 == GE_EXPR
3716 : 0 : && cmp == 0
3717 : 0 : && allbits)
3718 : 0 : && ((VECTOR_BOOLEAN_TYPE_P (type)
3719 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, GT_EXPR))
3720 : 0 : || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
3721 : : )
3722 : : {
3723 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail974;
3724 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail974;
3725 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail974;
3726 : 0 : {
3727 : 0 : tree res_op0;
3728 : 0 : res_op0 = captures[4];
3729 : 0 : tree res_op1;
3730 : 0 : {
3731 : 0 : tree _o1[1], _r1;
3732 : 0 : _o1[0] = captures[2];
3733 : 0 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
3734 : : {
3735 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
3736 : : }
3737 : : else
3738 : : _r1 = _o1[0];
3739 : 0 : res_op1 = _r1;
3740 : : }
3741 : 0 : tree _r;
3742 : 0 : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
3743 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 687, __FILE__, __LINE__, true);
3744 : 0 : return _r;
3745 : : }
3746 : : next_after_fail974:;
3747 : : }
3748 : : else
3749 : : {
3750 : 0 : if ((code1 == NE_EXPR
3751 : 0 : && code2 == LE_EXPR
3752 : 0 : && cmp == 0
3753 : 0 : && allbits)
3754 : 0 : && ((VECTOR_BOOLEAN_TYPE_P (type)
3755 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, LT_EXPR))
3756 : 0 : || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
3757 : : )
3758 : : {
3759 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail975;
3760 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail975;
3761 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail975;
3762 : 0 : {
3763 : 0 : tree res_op0;
3764 : 0 : res_op0 = captures[4];
3765 : 0 : tree res_op1;
3766 : 0 : {
3767 : 0 : tree _o1[1], _r1;
3768 : 0 : _o1[0] = captures[2];
3769 : 0 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
3770 : : {
3771 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
3772 : : }
3773 : : else
3774 : : _r1 = _o1[0];
3775 : 0 : res_op1 = _r1;
3776 : : }
3777 : 0 : tree _r;
3778 : 0 : _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
3779 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 688, __FILE__, __LINE__, true);
3780 : 0 : return _r;
3781 : : }
3782 : : next_after_fail975:;
3783 : : }
3784 : : else
3785 : : {
3786 : 0 : if ((code1 == NE_EXPR
3787 : 0 : && code2 == GT_EXPR
3788 : : && one_after
3789 : 0 : && allbits)
3790 : 0 : && ((VECTOR_BOOLEAN_TYPE_P (type)
3791 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, GT_EXPR))
3792 : 0 : || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
3793 : : )
3794 : : {
3795 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail976;
3796 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail976;
3797 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail976;
3798 : 0 : {
3799 : 0 : tree res_op0;
3800 : 0 : res_op0 = captures[4];
3801 : 0 : tree res_op1;
3802 : 0 : {
3803 : 0 : tree _o1[1], _r1;
3804 : 0 : _o1[0] = captures[2];
3805 : 0 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
3806 : : {
3807 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
3808 : : }
3809 : : else
3810 : : _r1 = _o1[0];
3811 : 0 : res_op1 = _r1;
3812 : : }
3813 : 0 : tree _r;
3814 : 0 : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
3815 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 689, __FILE__, __LINE__, true);
3816 : 0 : return _r;
3817 : : }
3818 : : next_after_fail976:;
3819 : : }
3820 : : else
3821 : : {
3822 : 0 : if ((code1 == NE_EXPR
3823 : 0 : && code2 == LT_EXPR
3824 : : && one_before
3825 : 0 : && allbits)
3826 : 0 : && ((VECTOR_BOOLEAN_TYPE_P (type)
3827 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, LT_EXPR))
3828 : 0 : || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
3829 : : )
3830 : : {
3831 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail977;
3832 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail977;
3833 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail977;
3834 : 0 : {
3835 : 0 : tree res_op0;
3836 : 0 : res_op0 = captures[4];
3837 : 0 : tree res_op1;
3838 : 0 : {
3839 : 0 : tree _o1[1], _r1;
3840 : 0 : _o1[0] = captures[2];
3841 : 0 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
3842 : : {
3843 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
3844 : : }
3845 : : else
3846 : : _r1 = _o1[0];
3847 : 0 : res_op1 = _r1;
3848 : : }
3849 : 0 : tree _r;
3850 : 0 : _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
3851 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 690, __FILE__, __LINE__, true);
3852 : 0 : return _r;
3853 : : }
3854 : : next_after_fail977:;
3855 : : }
3856 : : }
3857 : : }
3858 : : }
3859 : : }
3860 : : }
3861 : : }
3862 : : }
3863 : : }
3864 : : return NULL_TREE;
3865 : : }
3866 : :
3867 : : tree
3868 : 3936 : generic_simplify_468 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3869 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
3870 : : {
3871 : 3936 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3872 : 3936 : if (!TYPE_SATURATING (type)
3873 : : )
3874 : : {
3875 : 3901 : if (!TYPE_OVERFLOW_SANITIZED (type)
3876 : 7824 : && !TYPE_OVERFLOW_SANITIZED (TREE_TYPE (captures[0]))
3877 : : )
3878 : : {
3879 : 3923 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1021;
3880 : 3923 : {
3881 : 3923 : tree res_op0;
3882 : 3923 : {
3883 : 3923 : tree _o1[1], _r1;
3884 : 3923 : _o1[0] = captures[0];
3885 : 3923 : if (TREE_TYPE (_o1[0]) != type)
3886 : : {
3887 : 3 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
3888 : : }
3889 : : else
3890 : : _r1 = _o1[0];
3891 : 3923 : res_op0 = _r1;
3892 : : }
3893 : 3923 : tree _r;
3894 : 3923 : _r = non_lvalue_loc (loc, res_op0);
3895 : 3923 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 724, __FILE__, __LINE__, true);
3896 : 3923 : return _r;
3897 : : }
3898 : 0 : next_after_fail1021:;
3899 : : }
3900 : : }
3901 : : return NULL_TREE;
3902 : : }
3903 : :
3904 : : tree
3905 : 0 : generic_simplify_476 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3906 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
3907 : : {
3908 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3909 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1031;
3910 : 0 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1031;
3911 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1031;
3912 : 0 : {
3913 : 0 : tree _r;
3914 : 0 : _r = captures[2];
3915 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 733, __FILE__, __LINE__, true);
3916 : : return _r;
3917 : : }
3918 : : next_after_fail1031:;
3919 : : return NULL_TREE;
3920 : : }
3921 : :
3922 : : tree
3923 : 0 : generic_simplify_482 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3924 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
3925 : : const enum tree_code ARG_UNUSED (cmp))
3926 : : {
3927 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3928 : 0 : if (INTEGRAL_TYPE_P (type)
3929 : : )
3930 : : {
3931 : 0 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1040;
3932 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1040;
3933 : 0 : {
3934 : 0 : tree _r;
3935 : 0 : _r = captures[2];
3936 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
3937 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3938 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 742, __FILE__, __LINE__, true);
3939 : 0 : return _r;
3940 : : }
3941 : : next_after_fail1040:;
3942 : : }
3943 : : return NULL_TREE;
3944 : : }
3945 : :
3946 : : tree
3947 : 0 : generic_simplify_487 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3948 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
3949 : : const enum tree_code ARG_UNUSED (op))
3950 : : {
3951 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3952 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1045;
3953 : 0 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1045;
3954 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1045;
3955 : 0 : {
3956 : 0 : tree _r;
3957 : 0 : _r = captures[2];
3958 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 747, __FILE__, __LINE__, true);
3959 : : return _r;
3960 : : }
3961 : : next_after_fail1045:;
3962 : : return NULL_TREE;
3963 : : }
3964 : :
3965 : : tree
3966 : 0 : generic_simplify_492 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3967 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
3968 : : const enum tree_code ARG_UNUSED (cmp))
3969 : : {
3970 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3971 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1051;
3972 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1051;
3973 : 0 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1051;
3974 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1051;
3975 : 0 : {
3976 : 0 : tree _r;
3977 : 0 : _r = captures[0];
3978 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 753, __FILE__, __LINE__, true);
3979 : : return _r;
3980 : : }
3981 : : next_after_fail1051:;
3982 : : return NULL_TREE;
3983 : : }
3984 : :
3985 : : tree
3986 : 0 : generic_simplify_498 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3987 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3988 : : const enum tree_code ARG_UNUSED (minmax))
3989 : : {
3990 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3991 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1059;
3992 : 0 : {
3993 : 0 : tree _r;
3994 : 0 : _r = captures[0];
3995 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 760, __FILE__, __LINE__, true);
3996 : : return _r;
3997 : : }
3998 : 0 : next_after_fail1059:;
3999 : 0 : return NULL_TREE;
4000 : : }
4001 : :
4002 : : tree
4003 : 2 : generic_simplify_503 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4004 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
4005 : : const enum tree_code ARG_UNUSED (minmax),
4006 : : const enum tree_code ARG_UNUSED (cmp))
4007 : : {
4008 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4009 : 2 : {
4010 : 2 : poly_int64 off0, off1;
4011 : 2 : tree base0, base1;
4012 : 2 : int equal = address_compare (cmp, TREE_TYPE (captures[0]), captures[1], captures[3], base0, base1,
4013 : : off0, off1,
4014 : : 1
4015 : : );
4016 : 2 : if (equal == 1
4017 : : )
4018 : : {
4019 : 0 : if (minmax == MIN_EXPR
4020 : : )
4021 : : {
4022 : 0 : if (known_le (off0, off1)
4023 : : )
4024 : : {
4025 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1064;
4026 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1064;
4027 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1064;
4028 : 0 : {
4029 : 0 : tree _r;
4030 : 0 : _r = captures[0];
4031 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 764, __FILE__, __LINE__, true);
4032 : 0 : return _r;
4033 : : }
4034 : 2 : next_after_fail1064:;
4035 : : }
4036 : : else
4037 : : {
4038 : 0 : if (known_gt (off0, off1)
4039 : : )
4040 : : {
4041 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1065;
4042 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1065;
4043 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1065;
4044 : 0 : {
4045 : 0 : tree _r;
4046 : 0 : _r = captures[2];
4047 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 765, __FILE__, __LINE__, true);
4048 : 0 : return _r;
4049 : : }
4050 : 2 : next_after_fail1065:;
4051 : : }
4052 : : }
4053 : : }
4054 : : else
4055 : : {
4056 : 0 : if (known_ge (off0, off1)
4057 : : )
4058 : : {
4059 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1066;
4060 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1066;
4061 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1066;
4062 : 0 : {
4063 : 0 : tree _r;
4064 : 0 : _r = captures[0];
4065 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 766, __FILE__, __LINE__, true);
4066 : 0 : return _r;
4067 : : }
4068 : 2 : next_after_fail1066:;
4069 : : }
4070 : : else
4071 : : {
4072 : 0 : if (known_lt (off0, off1)
4073 : : )
4074 : : {
4075 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1067;
4076 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1067;
4077 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1067;
4078 : 0 : {
4079 : 0 : tree _r;
4080 : 0 : _r = captures[2];
4081 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 767, __FILE__, __LINE__, true);
4082 : 0 : return _r;
4083 : : }
4084 : 2 : next_after_fail1067:;
4085 : : }
4086 : : }
4087 : : }
4088 : : }
4089 : : }
4090 : 2 : return NULL_TREE;
4091 : : }
4092 : :
4093 : : tree
4094 : 5779 : generic_simplify_517 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4095 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
4096 : : {
4097 : 5779 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4098 : 11558 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
4099 : 5779 : && TYPE_MAX_VALUE (TREE_TYPE (captures[1]))
4100 : 5779 : && types_match (TREE_TYPE (captures[1]), TREE_TYPE (TREE_TYPE (captures[0])))
4101 : 8068 : && int_fits_type_p (captures[2], TREE_TYPE (captures[1]))
4102 : : )
4103 : : {
4104 : 1897 : if (TYPE_UNSIGNED (TREE_TYPE (captures[1]))
4105 : : )
4106 : : {
4107 : 929 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1091;
4108 : 929 : {
4109 : 929 : tree res_op0;
4110 : 929 : {
4111 : 929 : tree _o1[2], _r1;
4112 : 929 : _o1[0] = captures[1];
4113 : 929 : {
4114 : 929 : tree _o2[2], _r2;
4115 : 929 : _o2[0] = TYPE_MAX_VALUE (TREE_TYPE (captures[1]));
4116 : 929 : _o2[1] = captures[2];
4117 : 929 : _r2 = fold_build2_loc (loc, TRUNC_DIV_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
4118 : 929 : if (EXPR_P (_r2))
4119 : 0 : goto next_after_fail1091;
4120 : 929 : _o1[1] = _r2;
4121 : : }
4122 : 929 : _r1 = fold_build2_loc (loc, GT_EXPR, boolean_type_node, _o1[0], _o1[1]);
4123 : 929 : res_op0 = _r1;
4124 : : }
4125 : 929 : tree _r;
4126 : 929 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4127 : 929 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 779, __FILE__, __LINE__, true);
4128 : 929 : return _r;
4129 : : }
4130 : : next_after_fail1091:;
4131 : : }
4132 : : else
4133 : : {
4134 : 968 : if (TYPE_MIN_VALUE (TREE_TYPE (captures[1]))
4135 : : )
4136 : : {
4137 : 968 : if (integer_minus_onep (captures[2])
4138 : : )
4139 : : {
4140 : 56 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1092;
4141 : 56 : {
4142 : 56 : tree res_op0;
4143 : 56 : {
4144 : 56 : tree _o1[2], _r1;
4145 : 56 : _o1[0] = captures[1];
4146 : 56 : _o1[1] = TYPE_MIN_VALUE (TREE_TYPE (captures[1]));
4147 : 56 : _r1 = fold_build2_loc (loc, EQ_EXPR, boolean_type_node, _o1[0], _o1[1]);
4148 : 56 : res_op0 = _r1;
4149 : : }
4150 : 56 : tree _r;
4151 : 56 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4152 : 56 : if (TREE_SIDE_EFFECTS (captures[2]))
4153 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
4154 : 56 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 780, __FILE__, __LINE__, true);
4155 : 56 : return _r;
4156 : : }
4157 : 0 : next_after_fail1092:;
4158 : : }
4159 : : else
4160 : : {
4161 : 912 : {
4162 : 912 : tree div = fold_convert (TREE_TYPE (captures[1]), captures[2]);
4163 : 1824 : tree lo = int_const_binop (TRUNC_DIV_EXPR,
4164 : 912 : TYPE_MIN_VALUE (TREE_TYPE (captures[1])), div);
4165 : 1824 : tree hi = int_const_binop (TRUNC_DIV_EXPR,
4166 : 912 : TYPE_MAX_VALUE (TREE_TYPE (captures[1])), div);
4167 : 912 : tree etype = range_check_type (TREE_TYPE (captures[1]));
4168 : 912 : if (etype)
4169 : : {
4170 : 912 : if (wi::neg_p (wi::to_wide (div)))
4171 : 88 : std::swap (lo, hi);
4172 : 912 : lo = fold_convert (etype, lo);
4173 : 912 : hi = fold_convert (etype, hi);
4174 : 912 : hi = int_const_binop (MINUS_EXPR, hi, lo);
4175 : : }
4176 : 912 : if (etype
4177 : : )
4178 : : {
4179 : 912 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1093;
4180 : 912 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1093;
4181 : 912 : {
4182 : 912 : tree res_op0;
4183 : 912 : {
4184 : 912 : tree _o1[2], _r1;
4185 : 912 : {
4186 : 912 : tree _o2[2], _r2;
4187 : 912 : {
4188 : 912 : tree _o3[1], _r3;
4189 : 912 : _o3[0] = captures[1];
4190 : 912 : if (TREE_TYPE (_o3[0]) != etype)
4191 : : {
4192 : 912 : _r3 = fold_build1_loc (loc, NOP_EXPR, etype, _o3[0]);
4193 : : }
4194 : : else
4195 : : _r3 = _o3[0];
4196 : 912 : _o2[0] = _r3;
4197 : : }
4198 : 912 : _o2[1] = lo;
4199 : 912 : _r2 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
4200 : 912 : _o1[0] = _r2;
4201 : : }
4202 : 912 : _o1[1] = hi;
4203 : 912 : _r1 = fold_build2_loc (loc, GT_EXPR, boolean_type_node, _o1[0], _o1[1]);
4204 : 912 : res_op0 = _r1;
4205 : : }
4206 : 912 : tree _r;
4207 : 912 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4208 : 912 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 781, __FILE__, __LINE__, true);
4209 : 912 : return _r;
4210 : : }
4211 : : next_after_fail1093:;
4212 : : }
4213 : : }
4214 : : }
4215 : : }
4216 : : }
4217 : : }
4218 : : return NULL_TREE;
4219 : : }
4220 : :
4221 : : tree
4222 : 0 : generic_simplify_548 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4223 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4224 : : const combined_fn ARG_UNUSED (fns))
4225 : : {
4226 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4227 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1124;
4228 : 0 : {
4229 : 0 : tree res_op0;
4230 : 0 : res_op0 = captures[0];
4231 : 0 : tree _r;
4232 : 0 : _r = maybe_build_call_expr_loc (loc, fns, type, 1, res_op0);
4233 : 0 : if (!_r)
4234 : 0 : goto next_after_fail1124;
4235 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 807, __FILE__, __LINE__, true);
4236 : : return _r;
4237 : : }
4238 : : next_after_fail1124:;
4239 : : return NULL_TREE;
4240 : : }
4241 : :
4242 : : tree
4243 : 0 : generic_simplify_555 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4244 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4245 : : const combined_fn ARG_UNUSED (froms),
4246 : : const combined_fn ARG_UNUSED (tos))
4247 : : {
4248 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4249 : 0 : if (optimize && canonicalize_math_p ()
4250 : : )
4251 : : {
4252 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1131;
4253 : 0 : {
4254 : 0 : tree res_op0;
4255 : 0 : res_op0 = captures[0];
4256 : 0 : tree _r;
4257 : 0 : _r = maybe_build_call_expr_loc (loc, tos, type, 1, res_op0);
4258 : 0 : if (!_r)
4259 : 0 : goto next_after_fail1131;
4260 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 814, __FILE__, __LINE__, true);
4261 : 0 : return _r;
4262 : : }
4263 : : next_after_fail1131:;
4264 : : }
4265 : : return NULL_TREE;
4266 : : }
4267 : :
4268 : : tree
4269 : 0 : generic_simplify_563 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4270 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4271 : : const combined_fn ARG_UNUSED (SIGNBIT))
4272 : : {
4273 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4274 : 0 : if (!HONOR_SIGNED_ZEROS (captures[0])
4275 : : )
4276 : : {
4277 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1139;
4278 : 0 : {
4279 : 0 : tree res_op0;
4280 : 0 : {
4281 : 0 : tree _o1[2], _r1;
4282 : 0 : _o1[0] = captures[0];
4283 : 0 : _o1[1] = build_real (TREE_TYPE (captures[0]), dconst0);
4284 : 0 : _r1 = fold_build2_loc (loc, LT_EXPR, boolean_type_node, _o1[0], _o1[1]);
4285 : 0 : res_op0 = _r1;
4286 : : }
4287 : 0 : tree _r;
4288 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4289 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 822, __FILE__, __LINE__, true);
4290 : 0 : return _r;
4291 : : }
4292 : 0 : next_after_fail1139:;
4293 : : }
4294 : : return NULL_TREE;
4295 : : }
4296 : :
4297 : : tree
4298 : 0 : generic_simplify_572 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4299 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
4300 : : {
4301 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4302 : 0 : if (canonicalize_math_after_vectorization_p ()
4303 : : )
4304 : : {
4305 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1148;
4306 : : {
4307 : : tree res_op0;
4308 : : res_op0 = captures[0];
4309 : : tree res_op1;
4310 : : res_op1 = captures[1];
4311 : : tree res_op2;
4312 : : res_op2 = captures[2];
4313 : : tree _r;
4314 : : _r = maybe_build_call_expr_loc (loc, CFN_FMA, type, 3, res_op0, res_op1, res_op2);
4315 : : if (!_r)
4316 : : goto next_after_fail1148;
4317 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 831, __FILE__, __LINE__, true);
4318 : : return _r;
4319 : : }
4320 : 0 : next_after_fail1148:;
4321 : : }
4322 : 0 : return NULL_TREE;
4323 : : }
4324 : :
4325 : : tree
4326 : 0 : generic_simplify_582 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4327 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4328 : : const combined_fn ARG_UNUSED (PARITY))
4329 : : {
4330 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4331 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1159;
4332 : 0 : {
4333 : 0 : tree res_op0;
4334 : 0 : res_op0 = captures[0];
4335 : 0 : tree _r;
4336 : 0 : _r = maybe_build_call_expr_loc (loc, PARITY, type, 1, res_op0);
4337 : 0 : if (!_r)
4338 : 0 : goto next_after_fail1159;
4339 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 837, __FILE__, __LINE__, true);
4340 : : return _r;
4341 : : }
4342 : : next_after_fail1159:;
4343 : : return NULL_TREE;
4344 : : }
4345 : :
4346 : : tree
4347 : 0 : generic_simplify_587 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4348 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4349 : : const combined_fn ARG_UNUSED (reduc))
4350 : : {
4351 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4352 : 0 : {
4353 : 0 : int i = single_nonzero_element (captures[1]);
4354 : 0 : if (i >= 0
4355 : : )
4356 : : {
4357 : 0 : {
4358 : 0 : tree elt = vector_cst_elt (captures[1], i);
4359 : 0 : tree elt_type = TREE_TYPE (elt);
4360 : 0 : unsigned int elt_bits = tree_to_uhwi (TYPE_SIZE (elt_type));
4361 : 0 : tree size = bitsize_int (elt_bits);
4362 : 0 : tree pos = bitsize_int (elt_bits * i);
4363 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1164;
4364 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1164;
4365 : 0 : {
4366 : 0 : tree res_op0;
4367 : 0 : {
4368 : 0 : tree _o1[2], _r1;
4369 : 0 : {
4370 : 0 : tree _o2[3], _r2;
4371 : 0 : _o2[0] = captures[0];
4372 : 0 : _o2[1] = size;
4373 : 0 : _o2[2] = pos;
4374 : 0 : _r2 = fold_build3_loc (loc, BIT_FIELD_REF, elt_type, _o2[0], _o2[1], _o2[2]);
4375 : 0 : _o1[0] = _r2;
4376 : : }
4377 : 0 : _o1[1] = elt;
4378 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, elt_type, _o1[0], _o1[1]);
4379 : 0 : res_op0 = _r1;
4380 : : }
4381 : 0 : tree _r;
4382 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
4383 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 840, __FILE__, __LINE__, true);
4384 : 0 : return _r;
4385 : : }
4386 : : next_after_fail1164:;
4387 : : }
4388 : : }
4389 : : }
4390 : : return NULL_TREE;
4391 : : }
4392 : :
4393 : : tree
4394 : 3335 : generic_simplify_PAREN_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0)
4395 : : {
4396 : 3335 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4397 : 3335 : switch (TREE_CODE (_p0))
4398 : : {
4399 : 2 : case PAREN_EXPR:
4400 : 2 : {
4401 : 2 : tree _q20 = TREE_OPERAND (_p0, 0);
4402 : 2 : {
4403 : 2 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
4404 : 2 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1257;
4405 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1257;
4406 : 2 : {
4407 : 2 : tree _r;
4408 : 2 : _r = captures[0];
4409 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 891, __FILE__, __LINE__, true);
4410 : 2 : return _r;
4411 : : }
4412 : 0 : next_after_fail1257:;
4413 : : }
4414 : 0 : break;
4415 : : }
4416 : 3333 : default:;
4417 : : }
4418 : 3333 : if (CONSTANT_CLASS_P (_p0))
4419 : : {
4420 : 1 : {
4421 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4422 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1258;
4423 : 1 : {
4424 : 1 : tree _r;
4425 : 1 : _r = captures[0];
4426 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 892, __FILE__, __LINE__, true);
4427 : 1 : return _r;
4428 : : }
4429 : 0 : next_after_fail1258:;
4430 : : }
4431 : : }
4432 : : return NULL_TREE;
4433 : : }
4434 : :
4435 : : tree
4436 : 1827669 : generic_simplify_REALPART_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0)
4437 : : {
4438 : 1827669 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4439 : 1827669 : switch (TREE_CODE (_p0))
4440 : : {
4441 : 9611 : case COMPLEX_EXPR:
4442 : 9611 : {
4443 : 9611 : tree _q20 = TREE_OPERAND (_p0, 0);
4444 : 9611 : tree _q21 = TREE_OPERAND (_p0, 1);
4445 : 9611 : {
4446 : 9611 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4447 : 9611 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1259;
4448 : 9611 : {
4449 : 9611 : tree _r;
4450 : 9611 : _r = captures[0];
4451 : 9611 : if (TREE_SIDE_EFFECTS (captures[1]))
4452 : 1366 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
4453 : 9611 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 893, __FILE__, __LINE__, true);
4454 : 9611 : return _r;
4455 : : }
4456 : 0 : next_after_fail1259:;
4457 : : }
4458 : 0 : break;
4459 : : }
4460 : 49104 : CASE_CONVERT:
4461 : 49104 : {
4462 : 49104 : tree _q20 = TREE_OPERAND (_p0, 0);
4463 : 49104 : switch (TREE_CODE (_q20))
4464 : : {
4465 : 0 : case CONJ_EXPR:
4466 : 0 : {
4467 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
4468 : 0 : {
4469 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
4470 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1260;
4471 : 0 : {
4472 : 0 : tree res_op0;
4473 : 0 : {
4474 : 0 : tree _o1[1], _r1;
4475 : 0 : _o1[0] = captures[2];
4476 : 0 : _r1 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o1[0])), _o1[0]);
4477 : 0 : res_op0 = _r1;
4478 : : }
4479 : 0 : tree _r;
4480 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4481 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 894, __FILE__, __LINE__, true);
4482 : 0 : return _r;
4483 : : }
4484 : 0 : next_after_fail1260:;
4485 : : }
4486 : 0 : break;
4487 : : }
4488 : 0 : case PLUS_EXPR:
4489 : 0 : {
4490 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
4491 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
4492 : 0 : {
4493 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31 };
4494 : 0 : const enum tree_code op = PLUS_EXPR;
4495 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1261;
4496 : 0 : {
4497 : 0 : tree res_op0;
4498 : 0 : {
4499 : 0 : tree _o1[2], _r1;
4500 : 0 : {
4501 : 0 : tree _o2[1], _r2;
4502 : 0 : _o2[0] = captures[2];
4503 : 0 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4504 : 0 : _o1[0] = _r2;
4505 : : }
4506 : 0 : {
4507 : 0 : tree _o2[1], _r2;
4508 : 0 : _o2[0] = captures[3];
4509 : 0 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4510 : 0 : _o1[1] = _r2;
4511 : : }
4512 : 0 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4513 : 0 : res_op0 = _r1;
4514 : : }
4515 : 0 : tree _r;
4516 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4517 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 895, __FILE__, __LINE__, true);
4518 : 0 : return _r;
4519 : : }
4520 : 0 : next_after_fail1261:;
4521 : : }
4522 : 0 : break;
4523 : : }
4524 : 0 : case MINUS_EXPR:
4525 : 0 : {
4526 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
4527 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
4528 : 0 : {
4529 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31 };
4530 : 0 : const enum tree_code op = MINUS_EXPR;
4531 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1262;
4532 : 0 : {
4533 : 0 : tree res_op0;
4534 : 0 : {
4535 : 0 : tree _o1[2], _r1;
4536 : 0 : {
4537 : 0 : tree _o2[1], _r2;
4538 : 0 : _o2[0] = captures[2];
4539 : 0 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4540 : 0 : _o1[0] = _r2;
4541 : : }
4542 : 0 : {
4543 : 0 : tree _o2[1], _r2;
4544 : 0 : _o2[0] = captures[3];
4545 : 0 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4546 : 0 : _o1[1] = _r2;
4547 : : }
4548 : 0 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4549 : 0 : res_op0 = _r1;
4550 : : }
4551 : 0 : tree _r;
4552 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4553 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 895, __FILE__, __LINE__, true);
4554 : 0 : return _r;
4555 : : }
4556 : 0 : next_after_fail1262:;
4557 : : }
4558 : 0 : break;
4559 : : }
4560 : 0 : case CALL_EXPR:
4561 : 0 : switch (get_call_combined_fn (_q20))
4562 : : {
4563 : 0 : case CFN_BUILT_IN_CEXPIF:
4564 : 0 : if (call_expr_nargs (_q20) == 1)
4565 : : {
4566 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
4567 : 0 : {
4568 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
4569 : 0 : if (single_use (captures[1]) && single_use (captures[0])
4570 : : )
4571 : : {
4572 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1263;
4573 : 0 : {
4574 : 0 : tree res_op0;
4575 : 0 : {
4576 : 0 : tree _o1[1], _r1;
4577 : 0 : _o1[0] = captures[2];
4578 : 0 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_COSF, TREE_TYPE (_o1[0]), 1, _o1[0]);
4579 : 0 : if (!_r1)
4580 : 0 : goto next_after_fail1263;
4581 : 0 : res_op0 = _r1;
4582 : : }
4583 : 0 : tree _r;
4584 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4585 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 896, __FILE__, __LINE__, true);
4586 : 0 : return _r;
4587 : : }
4588 : 0 : next_after_fail1263:;
4589 : : }
4590 : : }
4591 : : }
4592 : : break;
4593 : 0 : case CFN_BUILT_IN_CEXPIL:
4594 : 0 : if (call_expr_nargs (_q20) == 1)
4595 : : {
4596 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
4597 : 0 : {
4598 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
4599 : 0 : if (single_use (captures[1]) && single_use (captures[0])
4600 : : )
4601 : : {
4602 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1264;
4603 : 0 : {
4604 : 0 : tree res_op0;
4605 : 0 : {
4606 : 0 : tree _o1[1], _r1;
4607 : 0 : _o1[0] = captures[2];
4608 : 0 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_COSL, TREE_TYPE (_o1[0]), 1, _o1[0]);
4609 : 0 : if (!_r1)
4610 : 0 : goto next_after_fail1264;
4611 : 0 : res_op0 = _r1;
4612 : : }
4613 : 0 : tree _r;
4614 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4615 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 896, __FILE__, __LINE__, true);
4616 : 0 : return _r;
4617 : : }
4618 : 0 : next_after_fail1264:;
4619 : : }
4620 : : }
4621 : : }
4622 : : break;
4623 : 0 : case CFN_BUILT_IN_CEXPI:
4624 : 0 : if (call_expr_nargs (_q20) == 1)
4625 : : {
4626 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
4627 : 0 : {
4628 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
4629 : 0 : if (single_use (captures[1]) && single_use (captures[0])
4630 : : )
4631 : : {
4632 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1265;
4633 : 0 : {
4634 : 0 : tree res_op0;
4635 : 0 : {
4636 : 0 : tree _o1[1], _r1;
4637 : 0 : _o1[0] = captures[2];
4638 : 0 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_COS, TREE_TYPE (_o1[0]), 1, _o1[0]);
4639 : 0 : if (!_r1)
4640 : 0 : goto next_after_fail1265;
4641 : 0 : res_op0 = _r1;
4642 : : }
4643 : 0 : tree _r;
4644 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4645 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 896, __FILE__, __LINE__, true);
4646 : 0 : return _r;
4647 : : }
4648 : 0 : next_after_fail1265:;
4649 : : }
4650 : : }
4651 : : }
4652 : : break;
4653 : : default:;
4654 : : }
4655 : : break;
4656 : : default:;
4657 : : }
4658 : : break;
4659 : : }
4660 : 16 : case CONJ_EXPR:
4661 : 16 : {
4662 : 16 : tree _q20 = TREE_OPERAND (_p0, 0);
4663 : 16 : {
4664 : 16 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q20 };
4665 : 16 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1266;
4666 : 16 : {
4667 : 16 : tree res_op0;
4668 : 16 : {
4669 : 16 : tree _o1[1], _r1;
4670 : 16 : _o1[0] = captures[2];
4671 : 16 : _r1 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o1[0])), _o1[0]);
4672 : 16 : res_op0 = _r1;
4673 : : }
4674 : 16 : tree _r;
4675 : 16 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4676 : 16 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 894, __FILE__, __LINE__, true);
4677 : 16 : return _r;
4678 : : }
4679 : 0 : next_after_fail1266:;
4680 : : }
4681 : 0 : break;
4682 : : }
4683 : 407 : case PLUS_EXPR:
4684 : 407 : {
4685 : 407 : tree _q20 = TREE_OPERAND (_p0, 0);
4686 : 407 : tree _q21 = TREE_OPERAND (_p0, 1);
4687 : 407 : {
4688 : 407 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21 };
4689 : 407 : const enum tree_code op = PLUS_EXPR;
4690 : 407 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1267;
4691 : 407 : {
4692 : 407 : tree res_op0;
4693 : 407 : {
4694 : 407 : tree _o1[2], _r1;
4695 : 407 : {
4696 : 407 : tree _o2[1], _r2;
4697 : 407 : _o2[0] = captures[2];
4698 : 407 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4699 : 407 : _o1[0] = _r2;
4700 : : }
4701 : 407 : {
4702 : 407 : tree _o2[1], _r2;
4703 : 407 : _o2[0] = captures[3];
4704 : 407 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4705 : 407 : _o1[1] = _r2;
4706 : : }
4707 : 407 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4708 : 407 : res_op0 = _r1;
4709 : : }
4710 : 407 : tree _r;
4711 : 407 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4712 : 407 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 895, __FILE__, __LINE__, true);
4713 : 407 : return _r;
4714 : : }
4715 : 0 : next_after_fail1267:;
4716 : : }
4717 : 0 : break;
4718 : : }
4719 : 47 : case MINUS_EXPR:
4720 : 47 : {
4721 : 47 : tree _q20 = TREE_OPERAND (_p0, 0);
4722 : 47 : tree _q21 = TREE_OPERAND (_p0, 1);
4723 : 47 : {
4724 : 47 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21 };
4725 : 47 : const enum tree_code op = MINUS_EXPR;
4726 : 47 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1268;
4727 : 47 : {
4728 : 47 : tree res_op0;
4729 : 47 : {
4730 : 47 : tree _o1[2], _r1;
4731 : 47 : {
4732 : 47 : tree _o2[1], _r2;
4733 : 47 : _o2[0] = captures[2];
4734 : 47 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4735 : 47 : _o1[0] = _r2;
4736 : : }
4737 : 47 : {
4738 : 47 : tree _o2[1], _r2;
4739 : 47 : _o2[0] = captures[3];
4740 : 47 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4741 : 47 : _o1[1] = _r2;
4742 : : }
4743 : 47 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4744 : 47 : res_op0 = _r1;
4745 : : }
4746 : 47 : tree _r;
4747 : 47 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4748 : 47 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 895, __FILE__, __LINE__, true);
4749 : 47 : return _r;
4750 : : }
4751 : 0 : next_after_fail1268:;
4752 : : }
4753 : 0 : break;
4754 : : }
4755 : 257 : case CALL_EXPR:
4756 : 257 : switch (get_call_combined_fn (_p0))
4757 : : {
4758 : 0 : case CFN_BUILT_IN_CEXPIF:
4759 : 0 : if (call_expr_nargs (_p0) == 1)
4760 : : {
4761 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4762 : 0 : {
4763 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q20 };
4764 : 0 : if (single_use (captures[1]) && single_use (captures[0])
4765 : : )
4766 : : {
4767 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1269;
4768 : 0 : {
4769 : 0 : tree res_op0;
4770 : 0 : {
4771 : 0 : tree _o1[1], _r1;
4772 : 0 : _o1[0] = captures[2];
4773 : 0 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_COSF, TREE_TYPE (_o1[0]), 1, _o1[0]);
4774 : 0 : if (!_r1)
4775 : 0 : goto next_after_fail1269;
4776 : 0 : res_op0 = _r1;
4777 : : }
4778 : 0 : tree _r;
4779 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4780 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 896, __FILE__, __LINE__, true);
4781 : 0 : return _r;
4782 : : }
4783 : 0 : next_after_fail1269:;
4784 : : }
4785 : : }
4786 : : }
4787 : : break;
4788 : 0 : case CFN_BUILT_IN_CEXPIL:
4789 : 0 : if (call_expr_nargs (_p0) == 1)
4790 : : {
4791 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4792 : 0 : {
4793 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q20 };
4794 : 0 : if (single_use (captures[1]) && single_use (captures[0])
4795 : : )
4796 : : {
4797 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1270;
4798 : 0 : {
4799 : 0 : tree res_op0;
4800 : 0 : {
4801 : 0 : tree _o1[1], _r1;
4802 : 0 : _o1[0] = captures[2];
4803 : 0 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_COSL, TREE_TYPE (_o1[0]), 1, _o1[0]);
4804 : 0 : if (!_r1)
4805 : 0 : goto next_after_fail1270;
4806 : 0 : res_op0 = _r1;
4807 : : }
4808 : 0 : tree _r;
4809 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4810 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 896, __FILE__, __LINE__, true);
4811 : 0 : return _r;
4812 : : }
4813 : 0 : next_after_fail1270:;
4814 : : }
4815 : : }
4816 : : }
4817 : : break;
4818 : 1 : case CFN_BUILT_IN_CEXPI:
4819 : 1 : if (call_expr_nargs (_p0) == 1)
4820 : : {
4821 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4822 : 1 : {
4823 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q20 };
4824 : 1 : if (single_use (captures[1]) && single_use (captures[0])
4825 : : )
4826 : : {
4827 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1271;
4828 : 1 : {
4829 : 1 : tree res_op0;
4830 : 1 : {
4831 : 1 : tree _o1[1], _r1;
4832 : 1 : _o1[0] = captures[2];
4833 : 1 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_COS, TREE_TYPE (_o1[0]), 1, _o1[0]);
4834 : 1 : if (!_r1)
4835 : 0 : goto next_after_fail1271;
4836 : 1 : res_op0 = _r1;
4837 : : }
4838 : 1 : tree _r;
4839 : 1 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4840 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 896, __FILE__, __LINE__, true);
4841 : 1 : return _r;
4842 : : }
4843 : 0 : next_after_fail1271:;
4844 : : }
4845 : : }
4846 : : }
4847 : : break;
4848 : : default:;
4849 : : }
4850 : : break;
4851 : : default:;
4852 : : }
4853 : : return NULL_TREE;
4854 : : }
4855 : :
4856 : : tree
4857 : 2786171 : 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)
4858 : : {
4859 : 2786171 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4860 : 2786171 : if (integer_zerop (_p1))
4861 : : {
4862 : 29 : {
4863 : 29 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4864 : 29 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1496;
4865 : 29 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1496;
4866 : 29 : {
4867 : 29 : tree res_op0;
4868 : 29 : res_op0 = captures[0];
4869 : 29 : tree _r;
4870 : 29 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4871 : 29 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 960, __FILE__, __LINE__, true);
4872 : 29 : return _r;
4873 : : }
4874 : : next_after_fail1496:;
4875 : : }
4876 : : }
4877 : 2786142 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _p0, 0))
4878 : : {
4879 : 43701 : {
4880 : 43701 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p0 };
4881 : 43701 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1497;
4882 : 43701 : {
4883 : 43701 : tree _r;
4884 : 43701 : _r = build_zero_cst (type);
4885 : 43701 : if (TREE_SIDE_EFFECTS (captures[1]))
4886 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
4887 : 43701 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 961, __FILE__, __LINE__, true);
4888 : 43701 : return _r;
4889 : : }
4890 : 0 : next_after_fail1497:;
4891 : : }
4892 : : }
4893 : 2742441 : switch (TREE_CODE (_p0))
4894 : : {
4895 : 98414 : case POINTER_PLUS_EXPR:
4896 : 98414 : {
4897 : 98414 : tree _q20 = TREE_OPERAND (_p0, 0);
4898 : 98414 : tree _q21 = TREE_OPERAND (_p0, 1);
4899 : 98414 : switch (TREE_CODE (_p1))
4900 : : {
4901 : 20962 : case POINTER_PLUS_EXPR:
4902 : 20962 : {
4903 : 20962 : tree _q50 = TREE_OPERAND (_p1, 0);
4904 : 20962 : tree _q51 = TREE_OPERAND (_p1, 1);
4905 : 20962 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
4906 : : {
4907 : 20957 : {
4908 : 20957 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
4909 : 20957 : if (TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[1]))
4910 : : )
4911 : : {
4912 : 20957 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1498;
4913 : 20957 : {
4914 : 20957 : tree res_op0;
4915 : 20957 : {
4916 : 20957 : tree _o1[2], _r1;
4917 : 20957 : _o1[0] = captures[1];
4918 : 20957 : _o1[1] = captures[2];
4919 : 20957 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4920 : 20957 : res_op0 = _r1;
4921 : : }
4922 : 20957 : tree _r;
4923 : 20957 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4924 : 20957 : if (TREE_SIDE_EFFECTS (captures[0]))
4925 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
4926 : 20957 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 962, __FILE__, __LINE__, true);
4927 : 20957 : return _r;
4928 : : }
4929 : 0 : next_after_fail1498:;
4930 : : }
4931 : : }
4932 : : }
4933 : : break;
4934 : : }
4935 : : default:;
4936 : : }
4937 : : break;
4938 : : }
4939 : 158033 : CASE_CONVERT:
4940 : 158033 : {
4941 : 158033 : tree _q20 = TREE_OPERAND (_p0, 0);
4942 : 158033 : switch (TREE_CODE (_q20))
4943 : : {
4944 : 3558 : case ADDR_EXPR:
4945 : 3558 : {
4946 : 3558 : switch (TREE_CODE (_p1))
4947 : : {
4948 : 324 : CASE_CONVERT:
4949 : 324 : {
4950 : 324 : tree _q40 = TREE_OPERAND (_p1, 0);
4951 : 324 : {
4952 : 324 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
4953 : 324 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
4954 : 324 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
4955 : : )
4956 : : {
4957 : 324 : {
4958 : 324 : poly_int64 diff;
4959 : 324 : if (ptr_difference_const (captures[1], captures[3], &diff)
4960 : : )
4961 : : {
4962 : 189 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1499;
4963 : 189 : {
4964 : 189 : tree _r;
4965 : 189 : _r = build_int_cst_type (type, diff);
4966 : 189 : if (TREE_SIDE_EFFECTS (captures[1]))
4967 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
4968 : 189 : if (TREE_SIDE_EFFECTS (captures[3]))
4969 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
4970 : 189 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
4971 : 189 : return _r;
4972 : : }
4973 : 0 : next_after_fail1499:;
4974 : : }
4975 : : }
4976 : : }
4977 : : }
4978 : 135 : break;
4979 : : }
4980 : 3369 : default:;
4981 : : }
4982 : 3369 : {
4983 : 3369 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
4984 : 3369 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
4985 : 3369 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
4986 : : )
4987 : : {
4988 : 3369 : {
4989 : 3369 : poly_int64 diff;
4990 : 3369 : if (ptr_difference_const (captures[1], captures[3], &diff)
4991 : : )
4992 : : {
4993 : 128 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1500;
4994 : 128 : {
4995 : 128 : tree _r;
4996 : 128 : _r = build_int_cst_type (type, diff);
4997 : 128 : if (TREE_SIDE_EFFECTS (captures[1]))
4998 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
4999 : 128 : if (TREE_SIDE_EFFECTS (captures[2]))
5000 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
5001 : 128 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
5002 : 128 : return _r;
5003 : : }
5004 : 0 : next_after_fail1500:;
5005 : : }
5006 : : }
5007 : : }
5008 : : }
5009 : 3241 : break;
5010 : : }
5011 : 157716 : default:;
5012 : : }
5013 : 157716 : switch (TREE_CODE (_p1))
5014 : : {
5015 : 81538 : CASE_CONVERT:
5016 : 81538 : {
5017 : 81538 : tree _q40 = TREE_OPERAND (_p1, 0);
5018 : 81538 : switch (TREE_CODE (_q40))
5019 : : {
5020 : 468 : case ADDR_EXPR:
5021 : 468 : {
5022 : 468 : {
5023 : 468 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
5024 : 468 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
5025 : 468 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
5026 : : )
5027 : : {
5028 : 468 : {
5029 : 468 : poly_int64 diff;
5030 : 468 : if (ptr_difference_const (captures[1], captures[3], &diff)
5031 : : )
5032 : : {
5033 : 21 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1501;
5034 : 21 : {
5035 : 21 : tree _r;
5036 : 21 : _r = build_int_cst_type (type, diff);
5037 : 21 : if (TREE_SIDE_EFFECTS (captures[1]))
5038 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
5039 : 21 : if (TREE_SIDE_EFFECTS (captures[3]))
5040 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
5041 : 21 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 964, __FILE__, __LINE__, true);
5042 : 21 : return _r;
5043 : : }
5044 : 0 : next_after_fail1501:;
5045 : : }
5046 : : }
5047 : : }
5048 : : }
5049 : 447 : break;
5050 : : }
5051 : : default:;
5052 : : }
5053 : : break;
5054 : : }
5055 : 12 : case ADDR_EXPR:
5056 : 12 : {
5057 : 12 : {
5058 : 12 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
5059 : 12 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
5060 : 12 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
5061 : : )
5062 : : {
5063 : 12 : {
5064 : 12 : poly_int64 diff;
5065 : 12 : if (ptr_difference_const (captures[1], captures[3], &diff)
5066 : : )
5067 : : {
5068 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1502;
5069 : 0 : {
5070 : 0 : tree _r;
5071 : 0 : _r = build_int_cst_type (type, diff);
5072 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
5073 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
5074 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
5075 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
5076 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 964, __FILE__, __LINE__, true);
5077 : 0 : return _r;
5078 : : }
5079 : 0 : next_after_fail1502:;
5080 : : }
5081 : : }
5082 : : }
5083 : : }
5084 : 12 : break;
5085 : : }
5086 : : default:;
5087 : : }
5088 : : break;
5089 : : }
5090 : 1606 : case ADDR_EXPR:
5091 : 1606 : {
5092 : 1606 : switch (TREE_CODE (_p1))
5093 : : {
5094 : 50 : CASE_CONVERT:
5095 : 50 : {
5096 : 50 : tree _q30 = TREE_OPERAND (_p1, 0);
5097 : 50 : {
5098 : 50 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _p1, _q30 };
5099 : 50 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
5100 : 50 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
5101 : : )
5102 : : {
5103 : 50 : {
5104 : 50 : poly_int64 diff;
5105 : 50 : if (ptr_difference_const (captures[1], captures[3], &diff)
5106 : : )
5107 : : {
5108 : 29 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1503;
5109 : 29 : {
5110 : 29 : tree _r;
5111 : 29 : _r = build_int_cst_type (type, diff);
5112 : 29 : if (TREE_SIDE_EFFECTS (captures[0]))
5113 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
5114 : 29 : if (TREE_SIDE_EFFECTS (captures[3]))
5115 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
5116 : 29 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
5117 : 29 : return _r;
5118 : : }
5119 : 0 : next_after_fail1503:;
5120 : : }
5121 : : }
5122 : : }
5123 : : }
5124 : 21 : break;
5125 : : }
5126 : 1577 : default:;
5127 : : }
5128 : 1577 : {
5129 : 1577 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _p1, _p1 };
5130 : 1577 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
5131 : 1577 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
5132 : : )
5133 : : {
5134 : 1577 : {
5135 : 1577 : poly_int64 diff;
5136 : 1577 : if (ptr_difference_const (captures[1], captures[3], &diff)
5137 : : )
5138 : : {
5139 : 261 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1504;
5140 : 261 : {
5141 : 261 : tree _r;
5142 : 261 : _r = build_int_cst_type (type, diff);
5143 : 261 : if (TREE_SIDE_EFFECTS (captures[0]))
5144 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
5145 : 261 : if (TREE_SIDE_EFFECTS (captures[2]))
5146 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
5147 : 261 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
5148 : 261 : return _r;
5149 : : }
5150 : 0 : next_after_fail1504:;
5151 : : }
5152 : : }
5153 : : }
5154 : : }
5155 : 1316 : break;
5156 : : }
5157 : 2720856 : default:;
5158 : : }
5159 : 2720856 : switch (TREE_CODE (_p1))
5160 : : {
5161 : 284688 : CASE_CONVERT:
5162 : 284688 : {
5163 : 284688 : tree _q30 = TREE_OPERAND (_p1, 0);
5164 : 284688 : switch (TREE_CODE (_q30))
5165 : : {
5166 : 131972 : case ADDR_EXPR:
5167 : 131972 : {
5168 : 131972 : {
5169 : 131972 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _p1, _q30 };
5170 : 131972 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
5171 : 131972 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
5172 : : )
5173 : : {
5174 : 131972 : {
5175 : 131972 : poly_int64 diff;
5176 : 131972 : if (ptr_difference_const (captures[1], captures[3], &diff)
5177 : : )
5178 : : {
5179 : 68856 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1505;
5180 : 68856 : {
5181 : 68856 : tree _r;
5182 : 68856 : _r = build_int_cst_type (type, diff);
5183 : 68856 : if (TREE_SIDE_EFFECTS (captures[0]))
5184 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
5185 : 68856 : if (TREE_SIDE_EFFECTS (captures[3]))
5186 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
5187 : 68856 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 964, __FILE__, __LINE__, true);
5188 : 68856 : return _r;
5189 : : }
5190 : 0 : next_after_fail1505:;
5191 : : }
5192 : : }
5193 : : }
5194 : : }
5195 : 63116 : break;
5196 : : }
5197 : : default:;
5198 : : }
5199 : : break;
5200 : : }
5201 : 7632 : case ADDR_EXPR:
5202 : 7632 : {
5203 : 7632 : {
5204 : 7632 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _p1, _p1 };
5205 : 7632 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
5206 : 7632 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
5207 : : )
5208 : : {
5209 : 7632 : {
5210 : 7632 : poly_int64 diff;
5211 : 7632 : if (ptr_difference_const (captures[1], captures[3], &diff)
5212 : : )
5213 : : {
5214 : 13 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1506;
5215 : 13 : {
5216 : 13 : tree _r;
5217 : 13 : _r = build_int_cst_type (type, diff);
5218 : 13 : if (TREE_SIDE_EFFECTS (captures[0]))
5219 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
5220 : 13 : if (TREE_SIDE_EFFECTS (captures[2]))
5221 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
5222 : 13 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 964, __FILE__, __LINE__, true);
5223 : 13 : return _r;
5224 : : }
5225 : 0 : next_after_fail1506:;
5226 : : }
5227 : : }
5228 : : }
5229 : : }
5230 : 7619 : break;
5231 : : }
5232 : 2651987 : default:;
5233 : : }
5234 : 2651987 : switch (TREE_CODE (_p0))
5235 : : {
5236 : 8588 : case POINTER_PLUS_EXPR:
5237 : 8588 : {
5238 : 8588 : tree _q20 = TREE_OPERAND (_p0, 0);
5239 : 8588 : tree _q21 = TREE_OPERAND (_p0, 1);
5240 : 8588 : switch (TREE_CODE (_q20))
5241 : : {
5242 : 56 : case ADDR_EXPR:
5243 : 56 : {
5244 : 56 : switch (TREE_CODE (_p1))
5245 : : {
5246 : 0 : case POINTER_PLUS_EXPR:
5247 : 0 : {
5248 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
5249 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
5250 : 0 : switch (TREE_CODE (_q50))
5251 : : {
5252 : 0 : case ADDR_EXPR:
5253 : 0 : {
5254 : 0 : {
5255 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q50, _q51 };
5256 : 0 : {
5257 : 0 : poly_int64 diff;
5258 : 0 : if (ptr_difference_const (captures[0], captures[2], &diff)
5259 : : )
5260 : : {
5261 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1507;
5262 : 0 : {
5263 : 0 : tree res_op0;
5264 : 0 : res_op0 = build_int_cst_type (type, diff);
5265 : 0 : tree res_op1;
5266 : 0 : {
5267 : 0 : tree _o1[1], _r1;
5268 : 0 : {
5269 : 0 : tree _o2[2], _r2;
5270 : 0 : _o2[0] = captures[1];
5271 : 0 : _o2[1] = captures[3];
5272 : 0 : _r2 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
5273 : 0 : _o1[0] = _r2;
5274 : : }
5275 : 0 : if (TREE_TYPE (_o1[0]) != type)
5276 : : {
5277 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
5278 : : }
5279 : : else
5280 : : _r1 = _o1[0];
5281 : 0 : res_op1 = _r1;
5282 : : }
5283 : 0 : tree _r;
5284 : 0 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
5285 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
5286 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
5287 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
5288 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
5289 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 965, __FILE__, __LINE__, true);
5290 : 0 : return _r;
5291 : : }
5292 : 0 : next_after_fail1507:;
5293 : : }
5294 : : }
5295 : : }
5296 : 0 : break;
5297 : : }
5298 : : default:;
5299 : : }
5300 : : break;
5301 : : }
5302 : : default:;
5303 : : }
5304 : : break;
5305 : : }
5306 : 8588 : default:;
5307 : : }
5308 : 8588 : switch (TREE_CODE (_p1))
5309 : : {
5310 : 103 : case ADDR_EXPR:
5311 : 103 : {
5312 : 103 : {
5313 : 103 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
5314 : 103 : {
5315 : 103 : poly_int64 diff;
5316 : 103 : if (ptr_difference_const (captures[0], captures[2], &diff)
5317 : : )
5318 : : {
5319 : 89 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1508;
5320 : 89 : {
5321 : 89 : tree res_op0;
5322 : 89 : res_op0 = build_int_cst_type (type, diff);
5323 : 89 : tree res_op1;
5324 : 89 : {
5325 : 89 : tree _o1[1], _r1;
5326 : 89 : _o1[0] = captures[1];
5327 : 89 : if (TREE_TYPE (_o1[0]) != type)
5328 : : {
5329 : 89 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
5330 : : }
5331 : : else
5332 : : _r1 = _o1[0];
5333 : 89 : res_op1 = _r1;
5334 : : }
5335 : 89 : tree _r;
5336 : 89 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
5337 : 89 : if (TREE_SIDE_EFFECTS (captures[0]))
5338 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
5339 : 89 : if (TREE_SIDE_EFFECTS (captures[2]))
5340 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
5341 : 89 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 966, __FILE__, __LINE__, true);
5342 : 89 : return _r;
5343 : : }
5344 : 0 : next_after_fail1508:;
5345 : : }
5346 : : }
5347 : : }
5348 : 14 : break;
5349 : : }
5350 : 8499 : default:;
5351 : : }
5352 : 8499 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q20, 0))
5353 : : {
5354 : 3113 : {
5355 : 3113 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q20 };
5356 : 3113 : if (!TYPE_SATURATING (type)
5357 : : )
5358 : : {
5359 : 3113 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
5360 : 6226 : && !FIXED_POINT_TYPE_P (type)
5361 : : )
5362 : : {
5363 : 3113 : {
5364 : 3113 : tree stype = signed_type_for (TREE_TYPE (captures[1]));
5365 : 3113 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1509;
5366 : 3113 : {
5367 : 3113 : tree res_op0;
5368 : 3113 : {
5369 : 3113 : tree _o1[1], _r1;
5370 : 3113 : _o1[0] = captures[1];
5371 : 3113 : if (TREE_TYPE (_o1[0]) != stype)
5372 : : {
5373 : 3113 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, stype, _o1[0]);
5374 : : }
5375 : : else
5376 : : _r1 = _o1[0];
5377 : 3113 : res_op0 = _r1;
5378 : : }
5379 : 3113 : tree _r;
5380 : 3113 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
5381 : 3113 : if (TREE_SIDE_EFFECTS (captures[2]))
5382 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
5383 : 3113 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 967, __FILE__, __LINE__, true);
5384 : 3113 : return _r;
5385 : : }
5386 : 0 : next_after_fail1509:;
5387 : : }
5388 : : }
5389 : : }
5390 : : }
5391 : : }
5392 : : break;
5393 : : }
5394 : 1316 : case ADDR_EXPR:
5395 : 1316 : {
5396 : 1316 : switch (TREE_CODE (_p1))
5397 : : {
5398 : 9 : case POINTER_PLUS_EXPR:
5399 : 9 : {
5400 : 9 : tree _q30 = TREE_OPERAND (_p1, 0);
5401 : 9 : tree _q31 = TREE_OPERAND (_p1, 1);
5402 : 9 : {
5403 : 9 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q31 };
5404 : 9 : {
5405 : 9 : poly_int64 diff;
5406 : 9 : if (ptr_difference_const (captures[0], captures[1], &diff)
5407 : : )
5408 : : {
5409 : 9 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1510;
5410 : 9 : {
5411 : 9 : tree res_op0;
5412 : 9 : res_op0 = build_int_cst_type (type, diff);
5413 : 9 : tree res_op1;
5414 : 9 : {
5415 : 9 : tree _o1[1], _r1;
5416 : 9 : _o1[0] = captures[2];
5417 : 9 : if (TREE_TYPE (_o1[0]) != type)
5418 : : {
5419 : 9 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
5420 : : }
5421 : : else
5422 : : _r1 = _o1[0];
5423 : 9 : res_op1 = _r1;
5424 : : }
5425 : 9 : tree _r;
5426 : 9 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
5427 : 9 : if (TREE_SIDE_EFFECTS (captures[0]))
5428 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
5429 : 9 : if (TREE_SIDE_EFFECTS (captures[1]))
5430 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
5431 : 9 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 968, __FILE__, __LINE__, true);
5432 : 9 : return _r;
5433 : : }
5434 : 0 : next_after_fail1510:;
5435 : : }
5436 : : }
5437 : : }
5438 : 0 : break;
5439 : : }
5440 : : default:;
5441 : : }
5442 : : break;
5443 : : }
5444 : 2648776 : default:;
5445 : : }
5446 : 2648776 : switch (TREE_CODE (_p1))
5447 : : {
5448 : 196 : case POINTER_PLUS_EXPR:
5449 : 196 : {
5450 : 196 : tree _q30 = TREE_OPERAND (_p1, 0);
5451 : 196 : tree _q31 = TREE_OPERAND (_p1, 1);
5452 : 196 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || operand_equal_p (_q30, _p0, 0))
5453 : : {
5454 : 136 : {
5455 : 136 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p0 };
5456 : 136 : if (!TYPE_SATURATING (type)
5457 : : )
5458 : : {
5459 : 136 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
5460 : 272 : && !FIXED_POINT_TYPE_P (type)
5461 : : )
5462 : : {
5463 : 136 : {
5464 : 136 : tree stype = signed_type_for (TREE_TYPE (captures[1]));
5465 : 136 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1511;
5466 : 136 : {
5467 : 136 : tree res_op0;
5468 : 136 : {
5469 : 136 : tree _o1[1], _r1;
5470 : 136 : {
5471 : 136 : tree _o2[1], _r2;
5472 : 136 : _o2[0] = captures[1];
5473 : 136 : if (TREE_TYPE (_o2[0]) != stype)
5474 : : {
5475 : 136 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, stype, _o2[0]);
5476 : : }
5477 : : else
5478 : : _r2 = _o2[0];
5479 : 136 : _o1[0] = _r2;
5480 : : }
5481 : 136 : if (TREE_TYPE (_o1[0]) != type)
5482 : : {
5483 : 136 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
5484 : : }
5485 : : else
5486 : : _r1 = _o1[0];
5487 : 136 : res_op0 = _r1;
5488 : : }
5489 : 136 : tree _r;
5490 : 136 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
5491 : 136 : if (TREE_SIDE_EFFECTS (captures[2]))
5492 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
5493 : 136 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 969, __FILE__, __LINE__, true);
5494 : 136 : return _r;
5495 : : }
5496 : 0 : next_after_fail1511:;
5497 : : }
5498 : : }
5499 : : }
5500 : : }
5501 : : }
5502 : : break;
5503 : : }
5504 : 2648640 : default:;
5505 : : }
5506 : 2648640 : switch (TREE_CODE (_p0))
5507 : : {
5508 : 5386 : case POINTER_PLUS_EXPR:
5509 : 5386 : {
5510 : 5386 : tree _q20 = TREE_OPERAND (_p0, 0);
5511 : 5386 : tree _q21 = TREE_OPERAND (_p0, 1);
5512 : 5386 : switch (TREE_CODE (_p1))
5513 : : {
5514 : 5 : case POINTER_PLUS_EXPR:
5515 : 5 : {
5516 : 5 : tree _q50 = TREE_OPERAND (_p1, 0);
5517 : 5 : tree _q51 = TREE_OPERAND (_p1, 1);
5518 : 5 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5519 : : {
5520 : 1 : {
5521 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
5522 : 1 : if (!TYPE_SATURATING (type)
5523 : : )
5524 : : {
5525 : 1 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
5526 : 2 : && !FIXED_POINT_TYPE_P (type)
5527 : : )
5528 : : {
5529 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1512;
5530 : 1 : {
5531 : 1 : tree res_op0;
5532 : 1 : res_op0 = captures[0];
5533 : 1 : tree res_op1;
5534 : 1 : res_op1 = captures[2];
5535 : 1 : tree _r;
5536 : 1 : _r = fold_build2_loc (loc, POINTER_DIFF_EXPR, type, res_op0, res_op1);
5537 : 1 : if (TREE_SIDE_EFFECTS (captures[1]))
5538 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
5539 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 970, __FILE__, __LINE__, true);
5540 : 1 : return _r;
5541 : : }
5542 : 0 : next_after_fail1512:;
5543 : : }
5544 : : }
5545 : : }
5546 : : }
5547 : 4 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
5548 : : {
5549 : 4 : {
5550 : 4 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q51, _q20 };
5551 : 4 : if (!TYPE_SATURATING (type)
5552 : : )
5553 : : {
5554 : 4 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
5555 : 8 : && !FIXED_POINT_TYPE_P (type)
5556 : : )
5557 : : {
5558 : 4 : {
5559 : 4 : tree stype = signed_type_for (TREE_TYPE (captures[1]));
5560 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1513;
5561 : 4 : {
5562 : 4 : tree res_op0;
5563 : 4 : {
5564 : 4 : tree _o1[1], _r1;
5565 : 4 : {
5566 : 4 : tree _o2[1], _r2;
5567 : 4 : _o2[0] = captures[1];
5568 : 4 : if (TREE_TYPE (_o2[0]) != stype)
5569 : : {
5570 : 4 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, stype, _o2[0]);
5571 : : }
5572 : : else
5573 : : _r2 = _o2[0];
5574 : 4 : _o1[0] = _r2;
5575 : : }
5576 : 4 : if (TREE_TYPE (_o1[0]) != type)
5577 : : {
5578 : 4 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
5579 : : }
5580 : : else
5581 : : _r1 = _o1[0];
5582 : 4 : res_op0 = _r1;
5583 : : }
5584 : 4 : tree res_op1;
5585 : 4 : {
5586 : 4 : tree _o1[1], _r1;
5587 : 4 : {
5588 : 4 : tree _o2[1], _r2;
5589 : 4 : _o2[0] = captures[2];
5590 : 4 : if (TREE_TYPE (_o2[0]) != stype)
5591 : : {
5592 : 4 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, stype, _o2[0]);
5593 : : }
5594 : : else
5595 : : _r2 = _o2[0];
5596 : 4 : _o1[0] = _r2;
5597 : : }
5598 : 4 : if (TREE_TYPE (_o1[0]) != type)
5599 : : {
5600 : 4 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
5601 : : }
5602 : : else
5603 : : _r1 = _o1[0];
5604 : 4 : res_op1 = _r1;
5605 : : }
5606 : 4 : tree _r;
5607 : 4 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
5608 : 4 : if (TREE_SIDE_EFFECTS (captures[3]))
5609 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
5610 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 971, __FILE__, __LINE__, true);
5611 : 4 : return _r;
5612 : : }
5613 : 0 : next_after_fail1513:;
5614 : : }
5615 : : }
5616 : : }
5617 : : }
5618 : : }
5619 : : break;
5620 : : }
5621 : : default:;
5622 : : }
5623 : : break;
5624 : : }
5625 : 2648635 : default:;
5626 : : }
5627 : 2648635 : if (integer_zerop (_p0))
5628 : : {
5629 : 0 : {
5630 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p1 };
5631 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1514;
5632 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1514;
5633 : 0 : {
5634 : 0 : tree res_op0;
5635 : 0 : {
5636 : 0 : tree _o1[1], _r1;
5637 : 0 : _o1[0] = captures[0];
5638 : 0 : if (TREE_TYPE (_o1[0]) != type)
5639 : : {
5640 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
5641 : : }
5642 : : else
5643 : : _r1 = _o1[0];
5644 : 0 : res_op0 = _r1;
5645 : : }
5646 : 0 : tree _r;
5647 : 0 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
5648 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 972, __FILE__, __LINE__, true);
5649 : 0 : return _r;
5650 : : }
5651 : : next_after_fail1514:;
5652 : : }
5653 : : }
5654 : : return NULL_TREE;
5655 : : }
5656 : :
5657 : : tree
5658 : 2225177 : 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)
5659 : : {
5660 : 2225177 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
5661 : 2225177 : if (integer_onep (_p1))
5662 : : {
5663 : 745420 : {
5664 : 745420 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5665 : 745420 : tree res = generic_simplify_178 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5666 : 745420 : if (res) return res;
5667 : : }
5668 : : }
5669 : 1479757 : if (integer_zerop (_p0))
5670 : : {
5671 : 4 : {
5672 : 4 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5673 : 4 : tree res = generic_simplify_303 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5674 : 4 : if (res) return res;
5675 : : }
5676 : : }
5677 : 1479753 : switch (TREE_CODE (_p1))
5678 : : {
5679 : 725 : case SSA_NAME:
5680 : 725 : {
5681 : 725 : {
5682 : 725 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5683 : 725 : tree res = generic_simplify_305 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5684 : 725 : if (res) return res;
5685 : : }
5686 : 725 : break;
5687 : : }
5688 : 1479753 : default:;
5689 : : }
5690 : 1479753 : if (integer_minus_onep (_p1))
5691 : : {
5692 : 229 : {
5693 : 229 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5694 : 229 : tree res = generic_simplify_304 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5695 : 229 : if (res) return res;
5696 : : }
5697 : : }
5698 : 1479692 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
5699 : : {
5700 : 0 : {
5701 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5702 : 0 : tree res = generic_simplify_306 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5703 : 0 : if (res) return res;
5704 : : }
5705 : : }
5706 : 1479692 : switch (TREE_CODE (_p1))
5707 : : {
5708 : 0 : case ABS_EXPR:
5709 : 0 : {
5710 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
5711 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
5712 : : {
5713 : 0 : {
5714 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5715 : 0 : tree res = generic_simplify_307 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5716 : 0 : if (res) return res;
5717 : : }
5718 : : }
5719 : : break;
5720 : : }
5721 : 1479692 : default:;
5722 : : }
5723 : 1479692 : switch (TREE_CODE (_p0))
5724 : : {
5725 : 0 : case ABS_EXPR:
5726 : 0 : {
5727 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
5728 : 0 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
5729 : : {
5730 : 0 : {
5731 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
5732 : 0 : tree res = generic_simplify_307 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5733 : 0 : if (res) return res;
5734 : : }
5735 : : }
5736 : : break;
5737 : : }
5738 : 1479692 : default:;
5739 : : }
5740 : 1479692 : switch (TREE_CODE (_p1))
5741 : : {
5742 : 0 : case NEGATE_EXPR:
5743 : 0 : {
5744 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
5745 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
5746 : : {
5747 : 0 : {
5748 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5749 : 0 : tree res = generic_simplify_308 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5750 : 0 : if (res) return res;
5751 : : }
5752 : : }
5753 : : break;
5754 : : }
5755 : 1479692 : default:;
5756 : : }
5757 : 1479692 : switch (TREE_CODE (_p0))
5758 : : {
5759 : 312 : case NEGATE_EXPR:
5760 : 312 : {
5761 : 312 : tree _q20 = TREE_OPERAND (_p0, 0);
5762 : 312 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
5763 : : {
5764 : 0 : {
5765 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
5766 : 0 : tree res = generic_simplify_308 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5767 : 0 : if (res) return res;
5768 : : }
5769 : : }
5770 : : break;
5771 : : }
5772 : 1479692 : default:;
5773 : : }
5774 : 1479692 : {
5775 : 1479692 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5776 : 1479692 : tree res = generic_simplify_314 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR, TRUNC_DIV_EXPR);
5777 : 1479692 : if (res) return res;
5778 : : }
5779 : 4587 : switch (TREE_CODE (_p0))
5780 : : {
5781 : 388 : CASE_CONVERT:
5782 : 388 : {
5783 : 388 : tree _q20 = TREE_OPERAND (_p0, 0);
5784 : 388 : switch (TREE_CODE (_q20))
5785 : : {
5786 : 0 : case BIT_AND_EXPR:
5787 : 0 : {
5788 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
5789 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
5790 : 0 : switch (TREE_CODE (_q31))
5791 : : {
5792 : 0 : case INTEGER_CST:
5793 : 0 : {
5794 : 0 : switch (TREE_CODE (_p1))
5795 : : {
5796 : 0 : case INTEGER_CST:
5797 : 0 : {
5798 : 0 : {
5799 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
5800 : 0 : tree res = generic_simplify_310 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5801 : 0 : if (res) return res;
5802 : : }
5803 : 0 : break;
5804 : : }
5805 : : default:;
5806 : : }
5807 : : break;
5808 : : }
5809 : : default:;
5810 : : }
5811 : : break;
5812 : : }
5813 : : default:;
5814 : : }
5815 : : break;
5816 : : }
5817 : 0 : case BIT_AND_EXPR:
5818 : 0 : {
5819 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
5820 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
5821 : 0 : switch (TREE_CODE (_q21))
5822 : : {
5823 : 0 : case INTEGER_CST:
5824 : 0 : {
5825 : 0 : switch (TREE_CODE (_p1))
5826 : : {
5827 : 0 : case INTEGER_CST:
5828 : 0 : {
5829 : 0 : {
5830 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
5831 : 0 : tree res = generic_simplify_310 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5832 : 0 : if (res) return res;
5833 : : }
5834 : 0 : break;
5835 : : }
5836 : : default:;
5837 : : }
5838 : : break;
5839 : : }
5840 : : default:;
5841 : : }
5842 : : break;
5843 : : }
5844 : 0 : case MULT_EXPR:
5845 : 0 : {
5846 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
5847 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
5848 : 0 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
5849 : : {
5850 : 0 : {
5851 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5852 : 0 : tree res = generic_simplify_312 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5853 : 0 : if (res) return res;
5854 : : }
5855 : : }
5856 : 0 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
5857 : : {
5858 : 0 : {
5859 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
5860 : 0 : tree res = generic_simplify_312 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5861 : 0 : if (res) return res;
5862 : : }
5863 : : }
5864 : 0 : switch (TREE_CODE (_q21))
5865 : : {
5866 : 0 : case INTEGER_CST:
5867 : 0 : {
5868 : 0 : switch (TREE_CODE (_p1))
5869 : : {
5870 : 0 : case MULT_EXPR:
5871 : 0 : {
5872 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
5873 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
5874 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5875 : : {
5876 : 0 : switch (TREE_CODE (_q51))
5877 : : {
5878 : 0 : case INTEGER_CST:
5879 : 0 : {
5880 : 0 : {
5881 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
5882 : 0 : tree res = generic_simplify_313 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5883 : 0 : if (res) return res;
5884 : : }
5885 : 0 : break;
5886 : : }
5887 : : default:;
5888 : : }
5889 : : }
5890 : : break;
5891 : : }
5892 : : default:;
5893 : : }
5894 : : break;
5895 : : }
5896 : : default:;
5897 : : }
5898 : : break;
5899 : : }
5900 : 0 : case VEC_COND_EXPR:
5901 : 0 : {
5902 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
5903 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
5904 : 0 : tree _q22 = TREE_OPERAND (_p0, 2);
5905 : 0 : switch (TREE_CODE (_p1))
5906 : : {
5907 : 0 : case VEC_COND_EXPR:
5908 : 0 : {
5909 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
5910 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
5911 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
5912 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
5913 : : {
5914 : 0 : {
5915 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
5916 : 0 : if (VECTOR_TYPE_P (type)
5917 : 0 : && (TREE_CODE_CLASS (FLOOR_DIV_EXPR) != tcc_comparison
5918 : : || types_match (type, TREE_TYPE (captures[2]))
5919 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
5920 : : || (optimize_vectors_before_lowering_p ()
5921 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
5922 : : )
5923 : : {
5924 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1706;
5925 : 0 : {
5926 : 0 : tree res_op0;
5927 : 0 : res_op0 = captures[1];
5928 : 0 : tree res_op1;
5929 : 0 : {
5930 : 0 : tree _o1[2], _r1;
5931 : 0 : _o1[0] = captures[2];
5932 : 0 : _o1[1] = captures[5];
5933 : 0 : _r1 = fold_build2_loc (loc, FLOOR_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5934 : 0 : if (EXPR_P (_r1))
5935 : 0 : goto next_after_fail1706;
5936 : 0 : res_op1 = _r1;
5937 : : }
5938 : 0 : tree res_op2;
5939 : 0 : {
5940 : 0 : tree _o1[2], _r1;
5941 : 0 : _o1[0] = captures[3];
5942 : 0 : _o1[1] = captures[6];
5943 : 0 : _r1 = fold_build2_loc (loc, FLOOR_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5944 : 0 : if (EXPR_P (_r1))
5945 : 0 : goto next_after_fail1706;
5946 : 0 : res_op2 = _r1;
5947 : : }
5948 : 0 : tree _r;
5949 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
5950 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 908, __FILE__, __LINE__, true);
5951 : 0 : return _r;
5952 : : }
5953 : 0 : next_after_fail1706:;
5954 : : }
5955 : : }
5956 : : }
5957 : : break;
5958 : : }
5959 : 0 : default:;
5960 : : }
5961 : 0 : {
5962 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
5963 : 0 : if (VECTOR_TYPE_P (type)
5964 : 0 : && (TREE_CODE_CLASS (FLOOR_DIV_EXPR) != tcc_comparison
5965 : : || types_match (type, TREE_TYPE (captures[2]))
5966 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
5967 : : || (optimize_vectors_before_lowering_p ()
5968 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
5969 : : )
5970 : : {
5971 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1707;
5972 : 0 : {
5973 : 0 : if (! tree_invariant_p (captures[4])) goto next_after_fail1707;
5974 : 0 : tree res_op0;
5975 : 0 : res_op0 = captures[1];
5976 : 0 : tree res_op1;
5977 : 0 : {
5978 : 0 : tree _o1[2], _r1;
5979 : 0 : _o1[0] = captures[2];
5980 : 0 : _o1[1] = unshare_expr (captures[4]);
5981 : 0 : _r1 = fold_build2_loc (loc, FLOOR_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5982 : 0 : if (EXPR_P (_r1))
5983 : 0 : goto next_after_fail1707;
5984 : 0 : res_op1 = _r1;
5985 : : }
5986 : 0 : tree res_op2;
5987 : 0 : {
5988 : 0 : tree _o1[2], _r1;
5989 : 0 : _o1[0] = captures[3];
5990 : 0 : _o1[1] = captures[4];
5991 : 0 : _r1 = fold_build2_loc (loc, FLOOR_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5992 : 0 : if (EXPR_P (_r1))
5993 : 0 : goto next_after_fail1707;
5994 : 0 : res_op2 = _r1;
5995 : : }
5996 : 0 : tree _r;
5997 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
5998 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 909, __FILE__, __LINE__, true);
5999 : 0 : return _r;
6000 : : }
6001 : 0 : next_after_fail1707:;
6002 : : }
6003 : : }
6004 : 0 : break;
6005 : : }
6006 : 4587 : default:;
6007 : : }
6008 : 4587 : switch (TREE_CODE (_p1))
6009 : : {
6010 : 0 : case VEC_COND_EXPR:
6011 : 0 : {
6012 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
6013 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
6014 : 0 : tree _q32 = TREE_OPERAND (_p1, 2);
6015 : 0 : {
6016 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
6017 : 0 : if (VECTOR_TYPE_P (type)
6018 : 0 : && (TREE_CODE_CLASS (FLOOR_DIV_EXPR) != tcc_comparison
6019 : : || types_match (type, TREE_TYPE (captures[3]))
6020 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
6021 : : || (optimize_vectors_before_lowering_p ()
6022 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
6023 : : )
6024 : : {
6025 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1708;
6026 : 0 : {
6027 : 0 : if (! tree_invariant_p (captures[0])) goto next_after_fail1708;
6028 : 0 : tree res_op0;
6029 : 0 : res_op0 = captures[2];
6030 : 0 : tree res_op1;
6031 : 0 : {
6032 : 0 : tree _o1[2], _r1;
6033 : 0 : _o1[0] = unshare_expr (captures[0]);
6034 : 0 : _o1[1] = captures[3];
6035 : 0 : _r1 = fold_build2_loc (loc, FLOOR_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
6036 : 0 : if (EXPR_P (_r1))
6037 : 0 : goto next_after_fail1708;
6038 : 0 : res_op1 = _r1;
6039 : : }
6040 : 0 : tree res_op2;
6041 : 0 : {
6042 : 0 : tree _o1[2], _r1;
6043 : 0 : _o1[0] = captures[0];
6044 : 0 : _o1[1] = captures[4];
6045 : 0 : _r1 = fold_build2_loc (loc, FLOOR_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
6046 : 0 : if (EXPR_P (_r1))
6047 : 0 : goto next_after_fail1708;
6048 : 0 : res_op2 = _r1;
6049 : : }
6050 : 0 : tree _r;
6051 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
6052 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 910, __FILE__, __LINE__, true);
6053 : 0 : return _r;
6054 : : }
6055 : 0 : next_after_fail1708:;
6056 : : }
6057 : : }
6058 : 0 : break;
6059 : : }
6060 : : default:;
6061 : : }
6062 : : return NULL_TREE;
6063 : : }
6064 : :
6065 : : tree
6066 : 921274 : 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)
6067 : : {
6068 : 921274 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
6069 : 921274 : {
6070 : 921274 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
6071 : 921274 : tree res = generic_simplify_314 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR, TRUNC_MOD_EXPR);
6072 : 921274 : if (res) return res;
6073 : : }
6074 : 3563 : if (integer_zerop (_p0))
6075 : : {
6076 : 0 : {
6077 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
6078 : 0 : tree res = generic_simplify_315 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
6079 : 0 : if (res) return res;
6080 : : }
6081 : : }
6082 : 3563 : if (integer_onep (_p1))
6083 : : {
6084 : 0 : {
6085 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
6086 : 0 : tree res = generic_simplify_316 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
6087 : 0 : if (res) return res;
6088 : : }
6089 : : }
6090 : 3563 : if (integer_minus_onep (_p1))
6091 : : {
6092 : 0 : {
6093 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
6094 : 0 : tree res = generic_simplify_317 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
6095 : 0 : if (res) return res;
6096 : : }
6097 : : }
6098 : 3563 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
6099 : : {
6100 : 0 : {
6101 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
6102 : 0 : tree res = generic_simplify_318 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
6103 : 0 : if (res) return res;
6104 : : }
6105 : : }
6106 : 3563 : switch (TREE_CODE (_p0))
6107 : : {
6108 : 0 : case FLOOR_MOD_EXPR:
6109 : 0 : {
6110 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
6111 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
6112 : 0 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6113 : : {
6114 : 0 : {
6115 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
6116 : 0 : tree res = generic_simplify_319 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
6117 : 0 : if (res) return res;
6118 : : }
6119 : : }
6120 : : break;
6121 : : }
6122 : 4 : case MULT_EXPR:
6123 : 4 : {
6124 : 4 : tree _q20 = TREE_OPERAND (_p0, 0);
6125 : 4 : tree _q21 = TREE_OPERAND (_p0, 1);
6126 : 4 : switch (TREE_CODE (_q21))
6127 : : {
6128 : 4 : case INTEGER_CST:
6129 : 4 : {
6130 : 4 : switch (TREE_CODE (_p1))
6131 : : {
6132 : 4 : case INTEGER_CST:
6133 : 4 : {
6134 : 4 : {
6135 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
6136 : 4 : tree res = generic_simplify_320 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
6137 : 4 : if (res) return res;
6138 : : }
6139 : 4 : break;
6140 : : }
6141 : : default:;
6142 : : }
6143 : : break;
6144 : : }
6145 : : default:;
6146 : : }
6147 : : break;
6148 : : }
6149 : 3563 : default:;
6150 : : }
6151 : 3563 : switch (TREE_CODE (_p1))
6152 : : {
6153 : 1 : CASE_CONVERT:
6154 : 1 : {
6155 : 1 : tree _q30 = TREE_OPERAND (_p1, 0);
6156 : 1 : {
6157 : 1 : tree _q30_pops[1];
6158 : 1 : if (tree_power_of_two_cand (_q30, _q30_pops))
6159 : : {
6160 : 0 : tree _q40 = _q30_pops[0];
6161 : 0 : {
6162 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q40 };
6163 : 0 : tree res = generic_simplify_321 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
6164 : 0 : if (res) return res;
6165 : : }
6166 : : }
6167 : : }
6168 : 1 : break;
6169 : : }
6170 : 3563 : default:;
6171 : : }
6172 : 3563 : {
6173 : 3563 : tree _p1_pops[1];
6174 : 3563 : if (tree_power_of_two_cand (_p1, _p1_pops))
6175 : : {
6176 : 1788 : tree _q30 = _p1_pops[0];
6177 : 1788 : {
6178 : 1788 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q30 };
6179 : 1788 : tree res = generic_simplify_321 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
6180 : 1788 : if (res) return res;
6181 : : }
6182 : : }
6183 : : }
6184 : 3523 : switch (TREE_CODE (_p0))
6185 : : {
6186 : 0 : case VEC_COND_EXPR:
6187 : 0 : {
6188 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
6189 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
6190 : 0 : tree _q22 = TREE_OPERAND (_p0, 2);
6191 : 0 : switch (TREE_CODE (_p1))
6192 : : {
6193 : 0 : case VEC_COND_EXPR:
6194 : 0 : {
6195 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
6196 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
6197 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
6198 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
6199 : : {
6200 : 0 : {
6201 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
6202 : 0 : if (VECTOR_TYPE_P (type)
6203 : 0 : && (TREE_CODE_CLASS (FLOOR_MOD_EXPR) != tcc_comparison
6204 : : || types_match (type, TREE_TYPE (captures[2]))
6205 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
6206 : : || (optimize_vectors_before_lowering_p ()
6207 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
6208 : : )
6209 : : {
6210 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1715;
6211 : 0 : {
6212 : 0 : tree res_op0;
6213 : 0 : res_op0 = captures[1];
6214 : 0 : tree res_op1;
6215 : 0 : {
6216 : 0 : tree _o1[2], _r1;
6217 : 0 : _o1[0] = captures[2];
6218 : 0 : _o1[1] = captures[5];
6219 : 0 : _r1 = fold_build2_loc (loc, FLOOR_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
6220 : 0 : if (EXPR_P (_r1))
6221 : 0 : goto next_after_fail1715;
6222 : 0 : res_op1 = _r1;
6223 : : }
6224 : 0 : tree res_op2;
6225 : 0 : {
6226 : 0 : tree _o1[2], _r1;
6227 : 0 : _o1[0] = captures[3];
6228 : 0 : _o1[1] = captures[6];
6229 : 0 : _r1 = fold_build2_loc (loc, FLOOR_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
6230 : 0 : if (EXPR_P (_r1))
6231 : 0 : goto next_after_fail1715;
6232 : 0 : res_op2 = _r1;
6233 : : }
6234 : 0 : tree _r;
6235 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
6236 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 908, __FILE__, __LINE__, true);
6237 : 0 : return _r;
6238 : : }
6239 : 0 : next_after_fail1715:;
6240 : : }
6241 : : }
6242 : : }
6243 : : break;
6244 : : }
6245 : 0 : default:;
6246 : : }
6247 : 0 : {
6248 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
6249 : 0 : if (VECTOR_TYPE_P (type)
6250 : 0 : && (TREE_CODE_CLASS (FLOOR_MOD_EXPR) != tcc_comparison
6251 : : || types_match (type, TREE_TYPE (captures[2]))
6252 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
6253 : : || (optimize_vectors_before_lowering_p ()
6254 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
6255 : : )
6256 : : {
6257 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1716;
6258 : 0 : {
6259 : 0 : if (! tree_invariant_p (captures[4])) goto next_after_fail1716;
6260 : 0 : tree res_op0;
6261 : 0 : res_op0 = captures[1];
6262 : 0 : tree res_op1;
6263 : 0 : {
6264 : 0 : tree _o1[2], _r1;
6265 : 0 : _o1[0] = captures[2];
6266 : 0 : _o1[1] = unshare_expr (captures[4]);
6267 : 0 : _r1 = fold_build2_loc (loc, FLOOR_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
6268 : 0 : if (EXPR_P (_r1))
6269 : 0 : goto next_after_fail1716;
6270 : 0 : res_op1 = _r1;
6271 : : }
6272 : 0 : tree res_op2;
6273 : 0 : {
6274 : 0 : tree _o1[2], _r1;
6275 : 0 : _o1[0] = captures[3];
6276 : 0 : _o1[1] = captures[4];
6277 : 0 : _r1 = fold_build2_loc (loc, FLOOR_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
6278 : 0 : if (EXPR_P (_r1))
6279 : 0 : goto next_after_fail1716;
6280 : 0 : res_op2 = _r1;
6281 : : }
6282 : 0 : tree _r;
6283 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
6284 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 909, __FILE__, __LINE__, true);
6285 : 0 : return _r;
6286 : : }
6287 : 0 : next_after_fail1716:;
6288 : : }
6289 : : }
6290 : 0 : break;
6291 : : }
6292 : 3523 : default:;
6293 : : }
6294 : 3523 : switch (TREE_CODE (_p1))
6295 : : {
6296 : 0 : case VEC_COND_EXPR:
6297 : 0 : {
6298 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
6299 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
6300 : 0 : tree _q32 = TREE_OPERAND (_p1, 2);
6301 : 0 : {
6302 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
6303 : 0 : if (VECTOR_TYPE_P (type)
6304 : 0 : && (TREE_CODE_CLASS (FLOOR_MOD_EXPR) != tcc_comparison
6305 : : || types_match (type, TREE_TYPE (captures[3]))
6306 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
6307 : : || (optimize_vectors_before_lowering_p ()
6308 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
6309 : : )
6310 : : {
6311 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1717;
6312 : 0 : {
6313 : 0 : if (! tree_invariant_p (captures[0])) goto next_after_fail1717;
6314 : 0 : tree res_op0;
6315 : 0 : res_op0 = captures[2];
6316 : 0 : tree res_op1;
6317 : 0 : {
6318 : 0 : tree _o1[2], _r1;
6319 : 0 : _o1[0] = unshare_expr (captures[0]);
6320 : 0 : _o1[1] = captures[3];
6321 : 0 : _r1 = fold_build2_loc (loc, FLOOR_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
6322 : 0 : if (EXPR_P (_r1))
6323 : 0 : goto next_after_fail1717;
6324 : 0 : res_op1 = _r1;
6325 : : }
6326 : 0 : tree res_op2;
6327 : 0 : {
6328 : 0 : tree _o1[2], _r1;
6329 : 0 : _o1[0] = captures[0];
6330 : 0 : _o1[1] = captures[4];
6331 : 0 : _r1 = fold_build2_loc (loc, FLOOR_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
6332 : 0 : if (EXPR_P (_r1))
6333 : 0 : goto next_after_fail1717;
6334 : 0 : res_op2 = _r1;
6335 : : }
6336 : 0 : tree _r;
6337 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
6338 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 910, __FILE__, __LINE__, true);
6339 : 0 : return _r;
6340 : : }
6341 : 0 : next_after_fail1717:;
6342 : : }
6343 : : }
6344 : 0 : break;
6345 : : }
6346 : : default:;
6347 : : }
6348 : : return NULL_TREE;
6349 : : }
6350 : :
6351 : : tree
6352 : 16702429 : generic_simplify_LT_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
6353 : : {
6354 : 16702429 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
6355 : 16702429 : switch (TREE_CODE (_p0))
6356 : : {
6357 : 2155 : case RDIV_EXPR:
6358 : 2155 : {
6359 : 2155 : tree _q20 = TREE_OPERAND (_p0, 0);
6360 : 2155 : tree _q21 = TREE_OPERAND (_p0, 1);
6361 : 2155 : switch (TREE_CODE (_q20))
6362 : : {
6363 : 677 : case REAL_CST:
6364 : 677 : {
6365 : 677 : if (real_zerop (_p1))
6366 : : {
6367 : 392 : {
6368 : 392 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
6369 : 392 : tree res = generic_simplify_333 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
6370 : 392 : if (res) return res;
6371 : : }
6372 : : }
6373 : : break;
6374 : : }
6375 : : default:;
6376 : : }
6377 : : break;
6378 : : }
6379 : 2878 : case TRUNC_MOD_EXPR:
6380 : 2878 : {
6381 : 2878 : tree _q20 = TREE_OPERAND (_p0, 0);
6382 : 2878 : tree _q21 = TREE_OPERAND (_p0, 1);
6383 : 2878 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6384 : : {
6385 : 69 : {
6386 : 69 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
6387 : 69 : tree res = generic_simplify_334 (loc, type, _p0, _p1, captures, LT_EXPR);
6388 : 69 : if (res) return res;
6389 : : }
6390 : : }
6391 : : break;
6392 : : }
6393 : 148453 : case MULT_EXPR:
6394 : 148453 : {
6395 : 148453 : tree _q20 = TREE_OPERAND (_p0, 0);
6396 : 148453 : tree _q21 = TREE_OPERAND (_p0, 1);
6397 : 148453 : switch (TREE_CODE (_p1))
6398 : : {
6399 : 53571 : case MULT_EXPR:
6400 : 53571 : {
6401 : 53571 : tree _q50 = TREE_OPERAND (_p1, 0);
6402 : 53571 : tree _q51 = TREE_OPERAND (_p1, 1);
6403 : 53571 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
6404 : : {
6405 : 10142 : {
6406 : 10142 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
6407 : 10142 : tree res = generic_simplify_335 (loc, type, _p0, _p1, captures, LT_EXPR);
6408 : 10142 : if (res) return res;
6409 : : }
6410 : : }
6411 : 45402 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
6412 : : {
6413 : 0 : {
6414 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
6415 : 0 : tree res = generic_simplify_335 (loc, type, _p0, _p1, captures, LT_EXPR);
6416 : 0 : if (res) return res;
6417 : : }
6418 : : }
6419 : 45402 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
6420 : : {
6421 : 0 : {
6422 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
6423 : 0 : tree res = generic_simplify_335 (loc, type, _p0, _p1, captures, LT_EXPR);
6424 : 0 : if (res) return res;
6425 : : }
6426 : : }
6427 : 45402 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
6428 : : {
6429 : 1405 : {
6430 : 1405 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
6431 : 1405 : tree res = generic_simplify_335 (loc, type, _p0, _p1, captures, LT_EXPR);
6432 : 1405 : if (res) return res;
6433 : : }
6434 : : }
6435 : : break;
6436 : : }
6437 : : default:;
6438 : : }
6439 : : break;
6440 : : }
6441 : 2787909 : CASE_CONVERT:
6442 : 2787909 : {
6443 : 2787909 : tree _q20 = TREE_OPERAND (_p0, 0);
6444 : 2787909 : switch (TREE_CODE (_q20))
6445 : : {
6446 : 116 : case EXACT_DIV_EXPR:
6447 : 116 : {
6448 : 116 : tree _q30 = TREE_OPERAND (_q20, 0);
6449 : 116 : tree _q31 = TREE_OPERAND (_q20, 1);
6450 : 116 : switch (TREE_CODE (_q31))
6451 : : {
6452 : 116 : case INTEGER_CST:
6453 : 116 : {
6454 : 116 : switch (TREE_CODE (_p1))
6455 : : {
6456 : 44 : CASE_CONVERT:
6457 : 44 : {
6458 : 44 : tree _q60 = TREE_OPERAND (_p1, 0);
6459 : 44 : switch (TREE_CODE (_q60))
6460 : : {
6461 : 0 : case EXACT_DIV_EXPR:
6462 : 0 : {
6463 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
6464 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
6465 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
6466 : : {
6467 : 0 : {
6468 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q31, _q70 };
6469 : 0 : tree res = generic_simplify_206 (loc, type, _p0, _p1, captures, LT_EXPR);
6470 : 0 : if (res) return res;
6471 : : }
6472 : : }
6473 : : break;
6474 : : }
6475 : : default:;
6476 : : }
6477 : : break;
6478 : : }
6479 : : default:;
6480 : : }
6481 : : break;
6482 : : }
6483 : : default:;
6484 : : }
6485 : : break;
6486 : : }
6487 : : default:;
6488 : : }
6489 : : break;
6490 : : }
6491 : 1004 : case EXACT_DIV_EXPR:
6492 : 1004 : {
6493 : 1004 : tree _q20 = TREE_OPERAND (_p0, 0);
6494 : 1004 : tree _q21 = TREE_OPERAND (_p0, 1);
6495 : 1004 : switch (TREE_CODE (_q21))
6496 : : {
6497 : 1004 : case INTEGER_CST:
6498 : 1004 : {
6499 : 1004 : switch (TREE_CODE (_p1))
6500 : : {
6501 : 2 : case EXACT_DIV_EXPR:
6502 : 2 : {
6503 : 2 : tree _q50 = TREE_OPERAND (_p1, 0);
6504 : 2 : tree _q51 = TREE_OPERAND (_p1, 1);
6505 : 2 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
6506 : : {
6507 : 0 : {
6508 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50 };
6509 : 0 : tree res = generic_simplify_206 (loc, type, _p0, _p1, captures, LT_EXPR);
6510 : 0 : if (res) return res;
6511 : : }
6512 : : }
6513 : : break;
6514 : : }
6515 : : default:;
6516 : : }
6517 : : break;
6518 : : }
6519 : : default:;
6520 : : }
6521 : : break;
6522 : : }
6523 : 12135 : case TRUNC_DIV_EXPR:
6524 : 12135 : {
6525 : 12135 : tree _q20 = TREE_OPERAND (_p0, 0);
6526 : 12135 : tree _q21 = TREE_OPERAND (_p0, 1);
6527 : 12135 : switch (TREE_CODE (_q21))
6528 : : {
6529 : 3486 : case INTEGER_CST:
6530 : 3486 : {
6531 : 3486 : switch (TREE_CODE (_p1))
6532 : : {
6533 : 1455 : case INTEGER_CST:
6534 : 1455 : {
6535 : 1455 : {
6536 : 1455 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
6537 : 1455 : tree res = generic_simplify_209 (loc, type, _p0, _p1, captures, LT_EXPR);
6538 : 1455 : if (res) return res;
6539 : : }
6540 : 695 : break;
6541 : : }
6542 : : default:;
6543 : : }
6544 : : break;
6545 : : }
6546 : : default:;
6547 : : }
6548 : : break;
6549 : : }
6550 : 2297125 : case PLUS_EXPR:
6551 : 2297125 : {
6552 : 2297125 : tree _q20 = TREE_OPERAND (_p0, 0);
6553 : 2297125 : tree _q21 = TREE_OPERAND (_p0, 1);
6554 : 2297125 : switch (TREE_CODE (_p1))
6555 : : {
6556 : 337481 : case PLUS_EXPR:
6557 : 337481 : {
6558 : 337481 : tree _q50 = TREE_OPERAND (_p1, 0);
6559 : 337481 : tree _q51 = TREE_OPERAND (_p1, 1);
6560 : 337481 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
6561 : : {
6562 : 133253 : {
6563 : 133253 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
6564 : 133253 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, LT_EXPR);
6565 : 133253 : if (res) return res;
6566 : : }
6567 : : }
6568 : 280979 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
6569 : : {
6570 : 26 : {
6571 : 26 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
6572 : 26 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, LT_EXPR);
6573 : 26 : if (res) return res;
6574 : : }
6575 : : }
6576 : 280963 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
6577 : : {
6578 : 29 : {
6579 : 29 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
6580 : 29 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, LT_EXPR);
6581 : 29 : if (res) return res;
6582 : : }
6583 : : }
6584 : 280947 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
6585 : : {
6586 : 1732 : {
6587 : 1732 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
6588 : 1732 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, LT_EXPR);
6589 : 1732 : if (res) return res;
6590 : : }
6591 : : }
6592 : : break;
6593 : : }
6594 : 2240241 : default:;
6595 : : }
6596 : 2240241 : switch (TREE_CODE (_q21))
6597 : : {
6598 : 1710438 : case INTEGER_CST:
6599 : 1710438 : {
6600 : 1710438 : switch (TREE_CODE (_p1))
6601 : : {
6602 : 275625 : case PLUS_EXPR:
6603 : 275625 : {
6604 : 275625 : tree _q50 = TREE_OPERAND (_p1, 0);
6605 : 275625 : tree _q51 = TREE_OPERAND (_p1, 1);
6606 : 275625 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
6607 : : {
6608 : 76751 : {
6609 : 76751 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
6610 : 76751 : tree res = generic_simplify_337 (loc, type, _p0, _p1, captures, LT_EXPR);
6611 : 76751 : if (res) return res;
6612 : : }
6613 : : }
6614 : : break;
6615 : : }
6616 : : default:;
6617 : : }
6618 : : break;
6619 : : }
6620 : 2240236 : default:;
6621 : : }
6622 : 2240236 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6623 : : {
6624 : 193018 : {
6625 : 193018 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
6626 : 193018 : tree res = generic_simplify_338 (loc, type, _p0, _p1, captures, LT_EXPR);
6627 : 193018 : if (res) return res;
6628 : : }
6629 : : }
6630 : 2073707 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
6631 : : {
6632 : 55776 : {
6633 : 55776 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
6634 : 55776 : tree res = generic_simplify_338 (loc, type, _p0, _p1, captures, LT_EXPR);
6635 : 55776 : if (res) return res;
6636 : : }
6637 : : }
6638 : : break;
6639 : : }
6640 : 186674 : case MINUS_EXPR:
6641 : 186674 : {
6642 : 186674 : tree _q20 = TREE_OPERAND (_p0, 0);
6643 : 186674 : tree _q21 = TREE_OPERAND (_p0, 1);
6644 : 186674 : switch (TREE_CODE (_p1))
6645 : : {
6646 : 4908 : case MINUS_EXPR:
6647 : 4908 : {
6648 : 4908 : tree _q50 = TREE_OPERAND (_p1, 0);
6649 : 4908 : tree _q51 = TREE_OPERAND (_p1, 1);
6650 : 4908 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
6651 : : {
6652 : 0 : {
6653 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
6654 : 0 : tree res = generic_simplify_339 (loc, type, _p0, _p1, captures, LT_EXPR);
6655 : 0 : if (res) return res;
6656 : : }
6657 : : }
6658 : 4908 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
6659 : : {
6660 : 205 : {
6661 : 205 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
6662 : 205 : tree res = generic_simplify_340 (loc, type, _p0, _p1, captures, LT_EXPR);
6663 : 205 : if (res) return res;
6664 : : }
6665 : : }
6666 : : break;
6667 : : }
6668 : : default:;
6669 : : }
6670 : : break;
6671 : : }
6672 : 106646 : case POINTER_DIFF_EXPR:
6673 : 106646 : {
6674 : 106646 : tree _q20 = TREE_OPERAND (_p0, 0);
6675 : 106646 : tree _q21 = TREE_OPERAND (_p0, 1);
6676 : 106646 : switch (TREE_CODE (_p1))
6677 : : {
6678 : 509 : case POINTER_DIFF_EXPR:
6679 : 509 : {
6680 : 509 : tree _q50 = TREE_OPERAND (_p1, 0);
6681 : 509 : tree _q51 = TREE_OPERAND (_p1, 1);
6682 : 509 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
6683 : : {
6684 : 0 : {
6685 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50 };
6686 : 0 : tree res = generic_simplify_213 (loc, type, _p0, _p1, captures, LT_EXPR);
6687 : 0 : if (res) return res;
6688 : : }
6689 : : }
6690 : 509 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
6691 : : {
6692 : 0 : {
6693 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q51 };
6694 : 0 : tree res = generic_simplify_214 (loc, type, _p0, _p1, captures, LT_EXPR);
6695 : 0 : if (res) return res;
6696 : : }
6697 : : }
6698 : : break;
6699 : : }
6700 : : default:;
6701 : : }
6702 : : break;
6703 : : }
6704 : 16469552 : default:;
6705 : : }
6706 : 16469552 : switch (TREE_CODE (_p1))
6707 : : {
6708 : 347486 : case PLUS_EXPR:
6709 : 347486 : {
6710 : 347486 : tree _q30 = TREE_OPERAND (_p1, 0);
6711 : 347486 : tree _q31 = TREE_OPERAND (_p1, 1);
6712 : 347486 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
6713 : : {
6714 : 120 : {
6715 : 120 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q30, _p0 };
6716 : 120 : tree res = generic_simplify_338 (loc, type, _p0, _p1, captures, GT_EXPR);
6717 : 120 : if (res) return res;
6718 : : }
6719 : : }
6720 : 347366 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
6721 : : {
6722 : 80 : {
6723 : 80 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q31, _p0 };
6724 : 80 : tree res = generic_simplify_338 (loc, type, _p0, _p1, captures, GT_EXPR);
6725 : 80 : if (res) return res;
6726 : : }
6727 : : }
6728 : : break;
6729 : : }
6730 : 22549 : case MINUS_EXPR:
6731 : 22549 : {
6732 : 22549 : tree _q30 = TREE_OPERAND (_p1, 0);
6733 : 22549 : tree _q31 = TREE_OPERAND (_p1, 1);
6734 : 22549 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
6735 : : {
6736 : 0 : {
6737 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q31 };
6738 : 0 : tree res = generic_simplify_212 (loc, type, _p0, _p1, captures, LT_EXPR);
6739 : 0 : if (res) return res;
6740 : : }
6741 : : }
6742 : : break;
6743 : : }
6744 : 16469432 : default:;
6745 : : }
6746 : 16469432 : switch (TREE_CODE (_p0))
6747 : : {
6748 : 186674 : case MINUS_EXPR:
6749 : 186674 : {
6750 : 186674 : tree _q20 = TREE_OPERAND (_p0, 0);
6751 : 186674 : tree _q21 = TREE_OPERAND (_p0, 1);
6752 : 186674 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
6753 : : {
6754 : 3866 : {
6755 : 3866 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p0, _q21 };
6756 : 3866 : tree res = generic_simplify_212 (loc, type, _p0, _p1, captures, GT_EXPR);
6757 : 3866 : if (res) return res;
6758 : : }
6759 : : }
6760 : : break;
6761 : : }
6762 : 1869 : case BIT_IOR_EXPR:
6763 : 1869 : {
6764 : 1869 : tree _q20 = TREE_OPERAND (_p0, 0);
6765 : 1869 : tree _q21 = TREE_OPERAND (_p0, 1);
6766 : 1869 : if (tree_expr_nonnegative_p (_q20))
6767 : : {
6768 : 581 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
6769 : : {
6770 : 0 : {
6771 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
6772 : 0 : tree res = generic_simplify_341 (loc, type, _p0, _p1, captures, LT_EXPR, BIT_IOR_EXPR);
6773 : 0 : if (res) return res;
6774 : : }
6775 : : }
6776 : : }
6777 : 1869 : if (tree_expr_nonnegative_p (_q21))
6778 : : {
6779 : 1205 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6780 : : {
6781 : 0 : {
6782 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
6783 : 0 : tree res = generic_simplify_341 (loc, type, _p0, _p1, captures, LT_EXPR, BIT_IOR_EXPR);
6784 : 0 : if (res) return res;
6785 : : }
6786 : : }
6787 : : }
6788 : : break;
6789 : : }
6790 : 16467008 : default:;
6791 : : }
6792 : 16467008 : switch (TREE_CODE (_p1))
6793 : : {
6794 : 420 : case BIT_AND_EXPR:
6795 : 420 : {
6796 : 420 : tree _q30 = TREE_OPERAND (_p1, 0);
6797 : 420 : tree _q31 = TREE_OPERAND (_p1, 1);
6798 : 420 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
6799 : : {
6800 : 0 : if (tree_expr_nonnegative_p (_q30))
6801 : : {
6802 : 0 : {
6803 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
6804 : 0 : tree res = generic_simplify_341 (loc, type, _p0, _p1, captures, GT_EXPR, BIT_AND_EXPR);
6805 : 0 : if (res) return res;
6806 : : }
6807 : : }
6808 : : }
6809 : 420 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
6810 : : {
6811 : 0 : if (tree_expr_nonnegative_p (_q31))
6812 : : {
6813 : 0 : {
6814 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
6815 : 0 : tree res = generic_simplify_341 (loc, type, _p0, _p1, captures, GT_EXPR, BIT_AND_EXPR);
6816 : 0 : if (res) return res;
6817 : : }
6818 : : }
6819 : : }
6820 : : break;
6821 : : }
6822 : 16467008 : default:;
6823 : : }
6824 : 16467008 : switch (TREE_CODE (_p0))
6825 : : {
6826 : 9881 : case MIN_EXPR:
6827 : 9881 : {
6828 : 9881 : tree _q20 = TREE_OPERAND (_p0, 0);
6829 : 9881 : tree _q21 = TREE_OPERAND (_p0, 1);
6830 : 9881 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
6831 : : {
6832 : 1 : {
6833 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
6834 : 1 : tree res = generic_simplify_222 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR, GT_EXPR);
6835 : 1 : if (res) return res;
6836 : : }
6837 : : }
6838 : 9880 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6839 : : {
6840 : 5 : {
6841 : 5 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
6842 : 5 : tree res = generic_simplify_222 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR, GT_EXPR);
6843 : 5 : if (res) return res;
6844 : : }
6845 : : }
6846 : 9878 : switch (TREE_CODE (_q21))
6847 : : {
6848 : 546 : case INTEGER_CST:
6849 : 546 : {
6850 : 546 : switch (TREE_CODE (_p1))
6851 : : {
6852 : 2 : case INTEGER_CST:
6853 : 2 : {
6854 : 2 : {
6855 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
6856 : 2 : tree res = generic_simplify_342 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR, BIT_IOR_EXPR);
6857 : 2 : if (res) return res;
6858 : : }
6859 : 0 : break;
6860 : : }
6861 : : default:;
6862 : : }
6863 : : break;
6864 : : }
6865 : : default:;
6866 : : }
6867 : : break;
6868 : : }
6869 : 16467003 : default:;
6870 : : }
6871 : 16467003 : switch (TREE_CODE (_p1))
6872 : : {
6873 : 713 : case MAX_EXPR:
6874 : 713 : {
6875 : 713 : tree _q30 = TREE_OPERAND (_p1, 0);
6876 : 713 : tree _q31 = TREE_OPERAND (_p1, 1);
6877 : 713 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
6878 : : {
6879 : 0 : {
6880 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
6881 : 0 : tree res = generic_simplify_222 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR, LT_EXPR);
6882 : 0 : if (res) return res;
6883 : : }
6884 : : }
6885 : 713 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
6886 : : {
6887 : 0 : {
6888 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
6889 : 0 : tree res = generic_simplify_222 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR, LT_EXPR);
6890 : 0 : if (res) return res;
6891 : : }
6892 : : }
6893 : : break;
6894 : : }
6895 : 920 : case MIN_EXPR:
6896 : 920 : {
6897 : 920 : tree _q30 = TREE_OPERAND (_p1, 0);
6898 : 920 : tree _q31 = TREE_OPERAND (_p1, 1);
6899 : 920 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
6900 : : {
6901 : 0 : {
6902 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
6903 : 0 : tree res = generic_simplify_343 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR);
6904 : 0 : if (res) return res;
6905 : : }
6906 : : }
6907 : 920 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
6908 : : {
6909 : 0 : {
6910 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
6911 : 0 : tree res = generic_simplify_343 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR);
6912 : 0 : if (res) return res;
6913 : : }
6914 : : }
6915 : : break;
6916 : : }
6917 : 16467003 : default:;
6918 : : }
6919 : 16467003 : switch (TREE_CODE (_p0))
6920 : : {
6921 : 5686 : case MAX_EXPR:
6922 : 5686 : {
6923 : 5686 : tree _q20 = TREE_OPERAND (_p0, 0);
6924 : 5686 : tree _q21 = TREE_OPERAND (_p0, 1);
6925 : 5686 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
6926 : : {
6927 : 1 : {
6928 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
6929 : 1 : tree res = generic_simplify_343 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR);
6930 : 1 : if (res) return res;
6931 : : }
6932 : : }
6933 : 5685 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6934 : : {
6935 : 1 : {
6936 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
6937 : 1 : tree res = generic_simplify_343 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR);
6938 : 1 : if (res) return res;
6939 : : }
6940 : : }
6941 : 5684 : switch (TREE_CODE (_q21))
6942 : : {
6943 : 5135 : case INTEGER_CST:
6944 : 5135 : {
6945 : 5135 : switch (TREE_CODE (_p1))
6946 : : {
6947 : 1 : case INTEGER_CST:
6948 : 1 : {
6949 : 1 : {
6950 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
6951 : 1 : tree res = generic_simplify_342 (loc, type, _p0, _p1, captures, MAX_EXPR, LT_EXPR, BIT_AND_EXPR);
6952 : 1 : if (res) return res;
6953 : : }
6954 : 0 : break;
6955 : : }
6956 : : default:;
6957 : : }
6958 : : break;
6959 : : }
6960 : : default:;
6961 : : }
6962 : : break;
6963 : : }
6964 : 904 : case VEC_COND_EXPR:
6965 : 904 : {
6966 : 904 : tree _q20 = TREE_OPERAND (_p0, 0);
6967 : 904 : tree _q21 = TREE_OPERAND (_p0, 1);
6968 : 904 : tree _q22 = TREE_OPERAND (_p0, 2);
6969 : 904 : switch (TREE_CODE (_p1))
6970 : : {
6971 : 0 : case VEC_COND_EXPR:
6972 : 0 : {
6973 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
6974 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
6975 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
6976 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
6977 : : {
6978 : 0 : {
6979 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
6980 : 0 : if (VECTOR_TYPE_P (type)
6981 : 0 : && (TREE_CODE_CLASS (LT_EXPR) != tcc_comparison
6982 : 0 : || types_match (type, TREE_TYPE (captures[2]))
6983 : 0 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
6984 : : || (optimize_vectors_before_lowering_p ()
6985 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
6986 : : )
6987 : : {
6988 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1756;
6989 : 0 : {
6990 : 0 : tree res_op0;
6991 : 0 : res_op0 = captures[1];
6992 : 0 : tree res_op1;
6993 : 0 : {
6994 : 0 : tree _o1[2], _r1;
6995 : 0 : _o1[0] = captures[2];
6996 : 0 : _o1[1] = captures[5];
6997 : 0 : _r1 = fold_build2_loc (loc, LT_EXPR, type, _o1[0], _o1[1]);
6998 : 0 : if (EXPR_P (_r1))
6999 : 0 : goto next_after_fail1756;
7000 : 0 : res_op1 = _r1;
7001 : : }
7002 : 0 : tree res_op2;
7003 : 0 : {
7004 : 0 : tree _o1[2], _r1;
7005 : 0 : _o1[0] = captures[3];
7006 : 0 : _o1[1] = captures[6];
7007 : 0 : _r1 = fold_build2_loc (loc, LT_EXPR, type, _o1[0], _o1[1]);
7008 : 0 : if (EXPR_P (_r1))
7009 : 0 : goto next_after_fail1756;
7010 : 0 : res_op2 = _r1;
7011 : : }
7012 : 0 : tree _r;
7013 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
7014 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 908, __FILE__, __LINE__, true);
7015 : 0 : return _r;
7016 : : }
7017 : 0 : next_after_fail1756:;
7018 : : }
7019 : : }
7020 : : }
7021 : : break;
7022 : : }
7023 : 904 : default:;
7024 : : }
7025 : 904 : {
7026 : 904 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
7027 : 904 : if (VECTOR_TYPE_P (type)
7028 : 904 : && (TREE_CODE_CLASS (LT_EXPR) != tcc_comparison
7029 : 904 : || types_match (type, TREE_TYPE (captures[2]))
7030 : 904 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
7031 : : || (optimize_vectors_before_lowering_p ()
7032 : 1 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
7033 : : )
7034 : : {
7035 : 904 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1757;
7036 : 904 : {
7037 : 904 : if (! tree_invariant_p (captures[4])) goto next_after_fail1757;
7038 : 36 : tree res_op0;
7039 : 36 : res_op0 = captures[1];
7040 : 36 : tree res_op1;
7041 : 36 : {
7042 : 36 : tree _o1[2], _r1;
7043 : 36 : _o1[0] = captures[2];
7044 : 36 : _o1[1] = unshare_expr (captures[4]);
7045 : 36 : _r1 = fold_build2_loc (loc, LT_EXPR, type, _o1[0], _o1[1]);
7046 : 36 : if (EXPR_P (_r1))
7047 : 35 : goto next_after_fail1757;
7048 : 1 : res_op1 = _r1;
7049 : : }
7050 : 1 : tree res_op2;
7051 : 1 : {
7052 : 1 : tree _o1[2], _r1;
7053 : 1 : _o1[0] = captures[3];
7054 : 1 : _o1[1] = captures[4];
7055 : 1 : _r1 = fold_build2_loc (loc, LT_EXPR, type, _o1[0], _o1[1]);
7056 : 1 : if (EXPR_P (_r1))
7057 : 0 : goto next_after_fail1757;
7058 : 1 : res_op2 = _r1;
7059 : : }
7060 : 1 : tree _r;
7061 : 1 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
7062 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 909, __FILE__, __LINE__, true);
7063 : 1 : return _r;
7064 : : }
7065 : 903 : next_after_fail1757:;
7066 : : }
7067 : : }
7068 : 903 : break;
7069 : : }
7070 : 16466999 : default:;
7071 : : }
7072 : 16466999 : switch (TREE_CODE (_p1))
7073 : : {
7074 : 58 : case VEC_COND_EXPR:
7075 : 58 : {
7076 : 58 : tree _q30 = TREE_OPERAND (_p1, 0);
7077 : 58 : tree _q31 = TREE_OPERAND (_p1, 1);
7078 : 58 : tree _q32 = TREE_OPERAND (_p1, 2);
7079 : 58 : {
7080 : 58 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
7081 : 58 : if (VECTOR_TYPE_P (type)
7082 : 58 : && (TREE_CODE_CLASS (LT_EXPR) != tcc_comparison
7083 : 58 : || types_match (type, TREE_TYPE (captures[3]))
7084 : 58 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
7085 : : || (optimize_vectors_before_lowering_p ()
7086 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
7087 : : )
7088 : : {
7089 : 58 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1758;
7090 : 58 : {
7091 : 58 : if (! tree_invariant_p (captures[0])) goto next_after_fail1758;
7092 : 0 : tree res_op0;
7093 : 0 : res_op0 = captures[2];
7094 : 0 : tree res_op1;
7095 : 0 : {
7096 : 0 : tree _o1[2], _r1;
7097 : 0 : _o1[0] = unshare_expr (captures[0]);
7098 : 0 : _o1[1] = captures[3];
7099 : 0 : _r1 = fold_build2_loc (loc, LT_EXPR, type, _o1[0], _o1[1]);
7100 : 0 : if (EXPR_P (_r1))
7101 : 0 : goto next_after_fail1758;
7102 : 0 : res_op1 = _r1;
7103 : : }
7104 : 0 : tree res_op2;
7105 : 0 : {
7106 : 0 : tree _o1[2], _r1;
7107 : 0 : _o1[0] = captures[0];
7108 : 0 : _o1[1] = captures[4];
7109 : 0 : _r1 = fold_build2_loc (loc, LT_EXPR, type, _o1[0], _o1[1]);
7110 : 0 : if (EXPR_P (_r1))
7111 : 0 : goto next_after_fail1758;
7112 : 0 : res_op2 = _r1;
7113 : : }
7114 : 0 : tree _r;
7115 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
7116 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 910, __FILE__, __LINE__, true);
7117 : 0 : return _r;
7118 : : }
7119 : 58 : next_after_fail1758:;
7120 : : }
7121 : : }
7122 : 58 : break;
7123 : : }
7124 : 16466999 : default:;
7125 : : }
7126 : 16466999 : if (uniform_integer_cst_p (_p1))
7127 : : {
7128 : 5666934 : {
7129 : 5666934 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
7130 : 5666934 : tree res = generic_simplify_344 (loc, type, _p0, _p1, captures, LT_EXPR, LE_EXPR);
7131 : 5666934 : if (res) return res;
7132 : : }
7133 : : }
7134 : 14116019 : switch (TREE_CODE (_p0))
7135 : : {
7136 : 132349 : case MULT_EXPR:
7137 : 132349 : {
7138 : 132349 : tree _q20 = TREE_OPERAND (_p0, 0);
7139 : 132349 : tree _q21 = TREE_OPERAND (_p0, 1);
7140 : 132349 : switch (TREE_CODE (_q21))
7141 : : {
7142 : 72273 : case INTEGER_CST:
7143 : 72273 : {
7144 : 72273 : if (integer_zerop (_p1))
7145 : : {
7146 : 5770 : {
7147 : 5770 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
7148 : 5770 : tree res = generic_simplify_242 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
7149 : 5770 : if (res) return res;
7150 : : }
7151 : : }
7152 : : break;
7153 : : }
7154 : : default:;
7155 : : }
7156 : : break;
7157 : : }
7158 : 14113061 : default:;
7159 : : }
7160 : 14113061 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
7161 : : {
7162 : 3845 : {
7163 : 3845 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
7164 : 3845 : tree res = generic_simplify_294 (loc, type, _p0, _p1, captures, LT_EXPR);
7165 : 3845 : if (res) return res;
7166 : : }
7167 : : }
7168 : 14109216 : switch (TREE_CODE (_p0))
7169 : : {
7170 : 2479 : case BIT_NOT_EXPR:
7171 : 2479 : {
7172 : 2479 : tree _q20 = TREE_OPERAND (_p0, 0);
7173 : 2479 : switch (TREE_CODE (_p1))
7174 : : {
7175 : 7 : case BIT_NOT_EXPR:
7176 : 7 : {
7177 : 7 : tree _q40 = TREE_OPERAND (_p1, 0);
7178 : 7 : {
7179 : 7 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _p1, _q40 };
7180 : 7 : tree res = generic_simplify_248 (loc, type, _p0, _p1, captures, LT_EXPR);
7181 : 7 : if (res) return res;
7182 : : }
7183 : 0 : break;
7184 : : }
7185 : 2472 : default:;
7186 : : }
7187 : 2472 : {
7188 : 2472 : tree _p1_pops[1];
7189 : 2472 : if (tree_nop_convert (_p1, _p1_pops))
7190 : : {
7191 : 24 : tree _q40 = _p1_pops[0];
7192 : 24 : switch (TREE_CODE (_q40))
7193 : : {
7194 : 0 : case BIT_NOT_EXPR:
7195 : 0 : {
7196 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
7197 : 0 : {
7198 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q40, _q50 };
7199 : 0 : tree res = generic_simplify_248 (loc, type, _p0, _p1, captures, LT_EXPR);
7200 : 0 : if (res) return res;
7201 : : }
7202 : 0 : break;
7203 : : }
7204 : : default:;
7205 : : }
7206 : : }
7207 : : }
7208 : 2472 : if (CONSTANT_CLASS_P (_p1))
7209 : : {
7210 : 23 : {
7211 : 23 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
7212 : 23 : tree res = generic_simplify_247 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
7213 : 23 : if (res) return res;
7214 : : }
7215 : : }
7216 : : break;
7217 : : }
7218 : 14109186 : default:;
7219 : : }
7220 : 14109186 : {
7221 : 14109186 : tree _p0_pops[1];
7222 : 14109186 : if (tree_nop_convert (_p0, _p0_pops))
7223 : : {
7224 : 1612520 : tree _q20 = _p0_pops[0];
7225 : 1612520 : switch (TREE_CODE (_q20))
7226 : : {
7227 : 0 : case BIT_NOT_EXPR:
7228 : 0 : {
7229 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7230 : 0 : switch (TREE_CODE (_p1))
7231 : : {
7232 : 0 : case BIT_NOT_EXPR:
7233 : 0 : {
7234 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
7235 : 0 : {
7236 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _p1, _q50 };
7237 : 0 : tree res = generic_simplify_246 (loc, type, _p0, _p1, captures, LT_EXPR);
7238 : 0 : if (res) return res;
7239 : : }
7240 : 0 : break;
7241 : : }
7242 : 0 : default:;
7243 : : }
7244 : 0 : {
7245 : 0 : tree _p1_pops[1];
7246 : 0 : if (tree_nop_convert (_p1, _p1_pops))
7247 : : {
7248 : 0 : tree _q50 = _p1_pops[0];
7249 : 0 : switch (TREE_CODE (_q50))
7250 : : {
7251 : 0 : case BIT_NOT_EXPR:
7252 : 0 : {
7253 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
7254 : 0 : {
7255 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q50, _q60 };
7256 : 0 : tree res = generic_simplify_246 (loc, type, _p0, _p1, captures, LT_EXPR);
7257 : 0 : if (res) return res;
7258 : : }
7259 : 0 : break;
7260 : : }
7261 : : default:;
7262 : : }
7263 : : }
7264 : : }
7265 : 0 : if (CONSTANT_CLASS_P (_p1))
7266 : : {
7267 : 0 : {
7268 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
7269 : 0 : tree res = generic_simplify_247 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
7270 : 0 : if (res) return res;
7271 : : }
7272 : : }
7273 : : break;
7274 : : }
7275 : : default:;
7276 : : }
7277 : : }
7278 : : }
7279 : 14109186 : switch (TREE_CODE (_p1))
7280 : : {
7281 : 3142940 : case REAL_CST:
7282 : 3142940 : {
7283 : 3142940 : {
7284 : 3142940 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
7285 : 3142940 : tree res = generic_simplify_249 (loc, type, _p0, _p1, captures, LT_EXPR);
7286 : 3142940 : if (res) return res;
7287 : : }
7288 : 3142841 : break;
7289 : : }
7290 : 14109087 : default:;
7291 : : }
7292 : 14109087 : switch (TREE_CODE (_p0))
7293 : : {
7294 : 1956391 : case PLUS_EXPR:
7295 : 1956391 : {
7296 : 1956391 : tree _q20 = TREE_OPERAND (_p0, 0);
7297 : 1956391 : tree _q21 = TREE_OPERAND (_p0, 1);
7298 : 1956391 : switch (TREE_CODE (_q21))
7299 : : {
7300 : 577 : case REAL_CST:
7301 : 577 : {
7302 : 577 : switch (TREE_CODE (_p1))
7303 : : {
7304 : 223 : case REAL_CST:
7305 : 223 : {
7306 : 223 : {
7307 : 223 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7308 : 223 : tree res = generic_simplify_250 (loc, type, _p0, _p1, captures, PLUS_EXPR, LT_EXPR);
7309 : 223 : if (res) return res;
7310 : : }
7311 : 221 : break;
7312 : : }
7313 : : default:;
7314 : : }
7315 : : break;
7316 : : }
7317 : 1435180 : case INTEGER_CST:
7318 : 1435180 : {
7319 : 1435180 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
7320 : : {
7321 : 18325 : {
7322 : 18325 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q20, _q21 };
7323 : 18325 : tree res = generic_simplify_345 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
7324 : 18325 : if (res) return res;
7325 : : }
7326 : : }
7327 : : break;
7328 : : }
7329 : : default:;
7330 : : }
7331 : : break;
7332 : : }
7333 : 178780 : case MINUS_EXPR:
7334 : 178780 : {
7335 : 178780 : tree _q20 = TREE_OPERAND (_p0, 0);
7336 : 178780 : tree _q21 = TREE_OPERAND (_p0, 1);
7337 : 178780 : switch (TREE_CODE (_q21))
7338 : : {
7339 : 210 : case REAL_CST:
7340 : 210 : {
7341 : 210 : switch (TREE_CODE (_p1))
7342 : : {
7343 : 195 : case REAL_CST:
7344 : 195 : {
7345 : 195 : {
7346 : 195 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7347 : 195 : tree res = generic_simplify_250 (loc, type, _p0, _p1, captures, MINUS_EXPR, LT_EXPR);
7348 : 195 : if (res) return res;
7349 : : }
7350 : 195 : break;
7351 : : }
7352 : : default:;
7353 : : }
7354 : : break;
7355 : : }
7356 : 178780 : default:;
7357 : : }
7358 : 178780 : switch (TREE_CODE (_q20))
7359 : : {
7360 : 20408 : case REAL_CST:
7361 : 20408 : {
7362 : 20408 : switch (TREE_CODE (_p1))
7363 : : {
7364 : 20224 : case REAL_CST:
7365 : 20224 : {
7366 : 20224 : {
7367 : 20224 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7368 : 20224 : tree res = generic_simplify_251 (loc, type, _p0, _p1, captures, LT_EXPR);
7369 : 20224 : if (res) return res;
7370 : : }
7371 : 20214 : break;
7372 : : }
7373 : : default:;
7374 : : }
7375 : : break;
7376 : : }
7377 : : default:;
7378 : : }
7379 : : break;
7380 : : }
7381 : 53025 : case FLOAT_EXPR:
7382 : 53025 : {
7383 : 53025 : tree _q20 = TREE_OPERAND (_p0, 0);
7384 : 53025 : switch (TREE_CODE (_p1))
7385 : : {
7386 : 102 : case FLOAT_EXPR:
7387 : 102 : {
7388 : 102 : tree _q40 = TREE_OPERAND (_p1, 0);
7389 : 102 : {
7390 : 102 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
7391 : 102 : tree res = generic_simplify_254 (loc, type, _p0, _p1, captures, LT_EXPR, LT_EXPR);
7392 : 102 : if (res) return res;
7393 : : }
7394 : 71 : break;
7395 : : }
7396 : 659 : case REAL_CST:
7397 : 659 : {
7398 : 659 : {
7399 : 659 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
7400 : 659 : tree res = generic_simplify_255 (loc, type, _p0, _p1, captures, LT_EXPR, LE_EXPR);
7401 : 659 : if (res) return res;
7402 : : }
7403 : 555 : break;
7404 : : }
7405 : : default:;
7406 : : }
7407 : : break;
7408 : : }
7409 : 658 : case EXACT_DIV_EXPR:
7410 : 658 : {
7411 : 658 : tree _q20 = TREE_OPERAND (_p0, 0);
7412 : 658 : tree _q21 = TREE_OPERAND (_p0, 1);
7413 : 658 : switch (TREE_CODE (_q21))
7414 : : {
7415 : 658 : case INTEGER_CST:
7416 : 658 : {
7417 : 658 : switch (TREE_CODE (_p1))
7418 : : {
7419 : 19 : case INTEGER_CST:
7420 : 19 : {
7421 : 19 : {
7422 : 19 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7423 : 19 : tree res = generic_simplify_346 (loc, type, _p0, _p1, captures, LT_EXPR);
7424 : 19 : if (res) return res;
7425 : : }
7426 : 0 : break;
7427 : : }
7428 : : default:;
7429 : : }
7430 : : break;
7431 : : }
7432 : : default:;
7433 : : }
7434 : : break;
7435 : : }
7436 : 2376422 : CASE_CONVERT:
7437 : 2376422 : {
7438 : 2376422 : tree _q20 = TREE_OPERAND (_p0, 0);
7439 : 2376422 : switch (TREE_CODE (_q20))
7440 : : {
7441 : 116 : case EXACT_DIV_EXPR:
7442 : 116 : {
7443 : 116 : tree _q30 = TREE_OPERAND (_q20, 0);
7444 : 116 : tree _q31 = TREE_OPERAND (_q20, 1);
7445 : 116 : switch (TREE_CODE (_q31))
7446 : : {
7447 : 116 : case INTEGER_CST:
7448 : 116 : {
7449 : 116 : switch (TREE_CODE (_p1))
7450 : : {
7451 : 0 : case INTEGER_CST:
7452 : 0 : {
7453 : 0 : {
7454 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
7455 : 0 : tree res = generic_simplify_347 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR);
7456 : 0 : if (res) return res;
7457 : : }
7458 : 0 : break;
7459 : : }
7460 : : default:;
7461 : : }
7462 : : break;
7463 : : }
7464 : : default:;
7465 : : }
7466 : : break;
7467 : : }
7468 : 2376422 : default:;
7469 : : }
7470 : 2376422 : switch (TREE_CODE (_p1))
7471 : : {
7472 : 1364732 : CASE_CONVERT:
7473 : 1364732 : {
7474 : 1364732 : tree _q40 = TREE_OPERAND (_p1, 0);
7475 : 1364732 : {
7476 : 1364732 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
7477 : 1364732 : tree res = generic_simplify_259 (loc, type, _p0, _p1, captures, LT_EXPR);
7478 : 1364732 : if (res) return res;
7479 : : }
7480 : 1107299 : break;
7481 : : }
7482 : 2118989 : default:;
7483 : : }
7484 : 2118989 : {
7485 : 2118989 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
7486 : 2118989 : tree res = generic_simplify_260 (loc, type, _p0, _p1, captures, LT_EXPR);
7487 : 2118989 : if (res) return res;
7488 : : }
7489 : 1836545 : switch (TREE_CODE (_q20))
7490 : : {
7491 : 50469 : case ADDR_EXPR:
7492 : 50469 : {
7493 : 50469 : switch (TREE_CODE (_p1))
7494 : : {
7495 : 49971 : CASE_CONVERT:
7496 : 49971 : {
7497 : 49971 : tree _q40 = TREE_OPERAND (_p1, 0);
7498 : 49971 : switch (TREE_CODE (_q40))
7499 : : {
7500 : 49971 : case ADDR_EXPR:
7501 : 49971 : {
7502 : 49971 : {
7503 : 49971 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
7504 : 49971 : tree res = generic_simplify_277 (loc, type, _p0, _p1, captures, LT_EXPR);
7505 : 49971 : if (res) return res;
7506 : : }
7507 : 305 : break;
7508 : : }
7509 : : default:;
7510 : : }
7511 : : break;
7512 : : }
7513 : 468 : case ADDR_EXPR:
7514 : 468 : {
7515 : 468 : {
7516 : 468 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
7517 : 468 : tree res = generic_simplify_277 (loc, type, _p0, _p1, captures, LT_EXPR);
7518 : 468 : if (res) return res;
7519 : : }
7520 : 0 : break;
7521 : : }
7522 : : default:;
7523 : : }
7524 : : break;
7525 : : }
7526 : 1786411 : default:;
7527 : : }
7528 : 1786411 : if (uniform_integer_cst_p (_p1))
7529 : : {
7530 : 190761 : {
7531 : 190761 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
7532 : 190761 : tree res = generic_simplify_348 (loc, type, _p0, _p1, captures, LT_EXPR);
7533 : 190761 : if (res) return res;
7534 : : }
7535 : : }
7536 : : break;
7537 : : }
7538 : 2733 : case NEGATE_EXPR:
7539 : 2733 : {
7540 : 2733 : tree _q20 = TREE_OPERAND (_p0, 0);
7541 : 2733 : switch (TREE_CODE (_p1))
7542 : : {
7543 : 0 : case NEGATE_EXPR:
7544 : 0 : {
7545 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
7546 : 0 : {
7547 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
7548 : 0 : tree res = generic_simplify_257 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
7549 : 0 : if (res) return res;
7550 : : }
7551 : 0 : break;
7552 : : }
7553 : 2733 : default:;
7554 : : }
7555 : 2733 : if (CONSTANT_CLASS_P (_p1))
7556 : : {
7557 : 301 : {
7558 : 301 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
7559 : 301 : tree res = generic_simplify_258 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
7560 : 301 : if (res) return res;
7561 : : }
7562 : : }
7563 : : break;
7564 : : }
7565 : 30238 : case ADDR_EXPR:
7566 : 30238 : {
7567 : 30238 : switch (TREE_CODE (_p1))
7568 : : {
7569 : 0 : CASE_CONVERT:
7570 : 0 : {
7571 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
7572 : 0 : switch (TREE_CODE (_q30))
7573 : : {
7574 : 0 : case ADDR_EXPR:
7575 : 0 : {
7576 : 0 : {
7577 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q30 };
7578 : 0 : tree res = generic_simplify_278 (loc, type, _p0, _p1, captures, LT_EXPR);
7579 : 0 : if (res) return res;
7580 : : }
7581 : 0 : break;
7582 : : }
7583 : : default:;
7584 : : }
7585 : : break;
7586 : : }
7587 : 29819 : case ADDR_EXPR:
7588 : 29819 : {
7589 : 29819 : {
7590 : 29819 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _p1 };
7591 : 29819 : tree res = generic_simplify_278 (loc, type, _p0, _p1, captures, LT_EXPR);
7592 : 29819 : if (res) return res;
7593 : : }
7594 : 362 : break;
7595 : : }
7596 : : default:;
7597 : : }
7598 : : break;
7599 : : }
7600 : 1621431 : case CALL_EXPR:
7601 : 1621431 : switch (get_call_combined_fn (_p0))
7602 : : {
7603 : 5 : case CFN_BUILT_IN_SQRTF:
7604 : 5 : if (call_expr_nargs (_p0) == 1)
7605 : : {
7606 : 5 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
7607 : 5 : switch (TREE_CODE (_p1))
7608 : : {
7609 : 5 : case REAL_CST:
7610 : 5 : {
7611 : 5 : {
7612 : 5 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
7613 : 5 : tree res = generic_simplify_252 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTF, LT_EXPR);
7614 : 5 : if (res) return res;
7615 : : }
7616 : 0 : break;
7617 : : }
7618 : 0 : case CALL_EXPR:
7619 : 0 : switch (get_call_combined_fn (_p1))
7620 : : {
7621 : 0 : case CFN_BUILT_IN_SQRTF:
7622 : 0 : if (call_expr_nargs (_p1) == 1)
7623 : : {
7624 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
7625 : 0 : {
7626 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
7627 : 0 : tree res = generic_simplify_253 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTF, LT_EXPR);
7628 : 0 : if (res) return res;
7629 : : }
7630 : : }
7631 : : break;
7632 : : default:;
7633 : : }
7634 : : break;
7635 : : default:;
7636 : : }
7637 : : }
7638 : : break;
7639 : 0 : case CFN_BUILT_IN_SQRTL:
7640 : 0 : if (call_expr_nargs (_p0) == 1)
7641 : : {
7642 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
7643 : 0 : switch (TREE_CODE (_p1))
7644 : : {
7645 : 0 : case REAL_CST:
7646 : 0 : {
7647 : 0 : {
7648 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
7649 : 0 : tree res = generic_simplify_252 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTL, LT_EXPR);
7650 : 0 : if (res) return res;
7651 : : }
7652 : 0 : break;
7653 : : }
7654 : 0 : case CALL_EXPR:
7655 : 0 : switch (get_call_combined_fn (_p1))
7656 : : {
7657 : 0 : case CFN_BUILT_IN_SQRTL:
7658 : 0 : if (call_expr_nargs (_p1) == 1)
7659 : : {
7660 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
7661 : 0 : {
7662 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
7663 : 0 : tree res = generic_simplify_253 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTL, LT_EXPR);
7664 : 0 : if (res) return res;
7665 : : }
7666 : : }
7667 : : break;
7668 : : default:;
7669 : : }
7670 : : break;
7671 : : default:;
7672 : : }
7673 : : }
7674 : : break;
7675 : 4 : case CFN_BUILT_IN_SQRT:
7676 : 4 : if (call_expr_nargs (_p0) == 1)
7677 : : {
7678 : 4 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
7679 : 4 : switch (TREE_CODE (_p1))
7680 : : {
7681 : 4 : case REAL_CST:
7682 : 4 : {
7683 : 4 : {
7684 : 4 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
7685 : 4 : tree res = generic_simplify_252 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRT, LT_EXPR);
7686 : 4 : if (res) return res;
7687 : : }
7688 : 1 : break;
7689 : : }
7690 : 0 : case CALL_EXPR:
7691 : 0 : switch (get_call_combined_fn (_p1))
7692 : : {
7693 : 0 : case CFN_BUILT_IN_SQRT:
7694 : 0 : if (call_expr_nargs (_p1) == 1)
7695 : : {
7696 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
7697 : 0 : {
7698 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
7699 : 0 : tree res = generic_simplify_253 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRT, LT_EXPR);
7700 : 0 : if (res) return res;
7701 : : }
7702 : : }
7703 : : break;
7704 : : default:;
7705 : : }
7706 : : break;
7707 : : default:;
7708 : : }
7709 : : }
7710 : : break;
7711 : 0 : case CFN_SQRT:
7712 : 0 : if (call_expr_nargs (_p0) == 1)
7713 : : {
7714 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
7715 : 0 : switch (TREE_CODE (_p1))
7716 : : {
7717 : 0 : case REAL_CST:
7718 : 0 : {
7719 : 0 : {
7720 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
7721 : 0 : tree res = generic_simplify_252 (loc, type, _p0, _p1, captures, CFN_SQRT, LT_EXPR);
7722 : 0 : if (res) return res;
7723 : : }
7724 : 0 : break;
7725 : : }
7726 : 0 : case CALL_EXPR:
7727 : 0 : switch (get_call_combined_fn (_p1))
7728 : : {
7729 : 0 : case CFN_SQRT:
7730 : 0 : if (call_expr_nargs (_p1) == 1)
7731 : : {
7732 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
7733 : 0 : {
7734 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
7735 : 0 : tree res = generic_simplify_253 (loc, type, _p0, _p1, captures, CFN_SQRT, LT_EXPR);
7736 : 0 : if (res) return res;
7737 : : }
7738 : : }
7739 : : break;
7740 : : default:;
7741 : : }
7742 : : break;
7743 : : default:;
7744 : : }
7745 : : }
7746 : : break;
7747 : : default:;
7748 : : }
7749 : : break;
7750 : 13468337 : default:;
7751 : : }
7752 : 13468337 : switch (TREE_CODE (_p1))
7753 : : {
7754 : 1609236 : CASE_CONVERT:
7755 : 1609236 : {
7756 : 1609236 : tree _q30 = TREE_OPERAND (_p1, 0);
7757 : 1609236 : switch (TREE_CODE (_q30))
7758 : : {
7759 : 0 : case NE_EXPR:
7760 : 0 : {
7761 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
7762 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
7763 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
7764 : : {
7765 : 0 : if (integer_zerop (_q41))
7766 : : {
7767 : 0 : {
7768 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
7769 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0]))
7770 : : )
7771 : : {
7772 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1759;
7773 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1759;
7774 : 0 : {
7775 : 0 : tree _r;
7776 : 0 : _r = constant_boolean_node (false, type);
7777 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1017, __FILE__, __LINE__, true);
7778 : 0 : return _r;
7779 : : }
7780 : : next_after_fail1759:;
7781 : : }
7782 : : }
7783 : : }
7784 : : }
7785 : : break;
7786 : : }
7787 : : default:;
7788 : : }
7789 : : break;
7790 : : }
7791 : 13468337 : default:;
7792 : : }
7793 : 13468337 : if (uniform_integer_cst_p (_p1))
7794 : : {
7795 : 3028204 : {
7796 : 3028204 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _p1 };
7797 : 3028204 : tree res = generic_simplify_349 (loc, type, _p0, _p1, captures, LT_EXPR);
7798 : 3028204 : if (res) return res;
7799 : : }
7800 : : }
7801 : 13037262 : switch (TREE_CODE (_p0))
7802 : : {
7803 : 1783102 : CASE_CONVERT:
7804 : 1783102 : {
7805 : 1783102 : tree _q20 = TREE_OPERAND (_p0, 0);
7806 : 1783102 : switch (TREE_CODE (_q20))
7807 : : {
7808 : 92456 : case PLUS_EXPR:
7809 : 92456 : {
7810 : 92456 : tree _q30 = TREE_OPERAND (_q20, 0);
7811 : 92456 : tree _q31 = TREE_OPERAND (_q20, 1);
7812 : 92456 : switch (TREE_CODE (_q30))
7813 : : {
7814 : 64391 : CASE_CONVERT:
7815 : 64391 : {
7816 : 64391 : tree _q40 = TREE_OPERAND (_q30, 0);
7817 : 64391 : switch (TREE_CODE (_q31))
7818 : : {
7819 : 64346 : case INTEGER_CST:
7820 : 64346 : {
7821 : 64346 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
7822 : : {
7823 : 27 : {
7824 : 27 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q40, _q31 };
7825 : 27 : tree res = generic_simplify_350 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
7826 : 27 : if (res) return res;
7827 : : }
7828 : : }
7829 : : break;
7830 : : }
7831 : : default:;
7832 : : }
7833 : : break;
7834 : : }
7835 : : default:;
7836 : : }
7837 : : break;
7838 : : }
7839 : : default:;
7840 : : }
7841 : : break;
7842 : : }
7843 : 13037235 : default:;
7844 : : }
7845 : 13037235 : switch (TREE_CODE (_p1))
7846 : : {
7847 : 1609236 : CASE_CONVERT:
7848 : 1609236 : {
7849 : 1609236 : tree _q30 = TREE_OPERAND (_p1, 0);
7850 : 1609236 : switch (TREE_CODE (_q30))
7851 : : {
7852 : 21569 : case PLUS_EXPR:
7853 : 21569 : {
7854 : 21569 : tree _q40 = TREE_OPERAND (_q30, 0);
7855 : 21569 : tree _q41 = TREE_OPERAND (_q30, 1);
7856 : 21569 : switch (TREE_CODE (_q40))
7857 : : {
7858 : 20257 : CASE_CONVERT:
7859 : 20257 : {
7860 : 20257 : tree _q50 = TREE_OPERAND (_q40, 0);
7861 : 20257 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
7862 : : {
7863 : 0 : switch (TREE_CODE (_q41))
7864 : : {
7865 : 0 : case INTEGER_CST:
7866 : 0 : {
7867 : 0 : {
7868 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q30, _q40, _p0, _q41 };
7869 : 0 : tree res = generic_simplify_350 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
7870 : 0 : if (res) return res;
7871 : : }
7872 : 0 : break;
7873 : : }
7874 : : default:;
7875 : : }
7876 : : }
7877 : : break;
7878 : : }
7879 : : default:;
7880 : : }
7881 : : break;
7882 : : }
7883 : : default:;
7884 : : }
7885 : : break;
7886 : : }
7887 : 347366 : case PLUS_EXPR:
7888 : 347366 : {
7889 : 347366 : tree _q30 = TREE_OPERAND (_p1, 0);
7890 : 347366 : tree _q31 = TREE_OPERAND (_p1, 1);
7891 : 347366 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
7892 : : {
7893 : 80 : switch (TREE_CODE (_q31))
7894 : : {
7895 : 64 : case INTEGER_CST:
7896 : 64 : {
7897 : 64 : {
7898 : 64 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _p1, _q30, _p0, _q31 };
7899 : 64 : tree res = generic_simplify_345 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
7900 : 64 : if (res) return res;
7901 : : }
7902 : 0 : break;
7903 : : }
7904 : : default:;
7905 : : }
7906 : : }
7907 : : break;
7908 : : }
7909 : 22549 : case MINUS_EXPR:
7910 : 22549 : {
7911 : 22549 : tree _q30 = TREE_OPERAND (_p1, 0);
7912 : 22549 : tree _q31 = TREE_OPERAND (_p1, 1);
7913 : 22549 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
7914 : : {
7915 : 0 : {
7916 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _p0, _q31 };
7917 : 0 : tree res = generic_simplify_351 (loc, type, _p0, _p1, captures, GT_EXPR);
7918 : 0 : if (res) return res;
7919 : : }
7920 : : }
7921 : : break;
7922 : : }
7923 : 13037171 : default:;
7924 : : }
7925 : 13037171 : switch (TREE_CODE (_p0))
7926 : : {
7927 : 1921391 : case PLUS_EXPR:
7928 : 1921391 : {
7929 : 1921391 : tree _q20 = TREE_OPERAND (_p0, 0);
7930 : 1921391 : tree _q21 = TREE_OPERAND (_p0, 1);
7931 : 1921391 : switch (TREE_CODE (_q20))
7932 : : {
7933 : 1356 : case MINUS_EXPR:
7934 : 1356 : {
7935 : 1356 : tree _q30 = TREE_OPERAND (_q20, 0);
7936 : 1356 : tree _q31 = TREE_OPERAND (_q20, 1);
7937 : 1356 : if (integer_minus_onep (_q21))
7938 : : {
7939 : 49 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
7940 : : {
7941 : 1 : {
7942 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
7943 : 1 : tree res = generic_simplify_352 (loc, type, _p0, _p1, captures, LT_EXPR);
7944 : 1 : if (res) return res;
7945 : : }
7946 : : }
7947 : : }
7948 : : break;
7949 : : }
7950 : : default:;
7951 : : }
7952 : : break;
7953 : : }
7954 : 13037170 : default:;
7955 : : }
7956 : 13037170 : switch (TREE_CODE (_p1))
7957 : : {
7958 : 0 : case REALPART_EXPR:
7959 : 0 : {
7960 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
7961 : 0 : switch (TREE_CODE (_q30))
7962 : : {
7963 : 0 : case CALL_EXPR:
7964 : 0 : switch (get_call_combined_fn (_q30))
7965 : : {
7966 : 0 : case CFN_SUB_OVERFLOW:
7967 : 0 : if (call_expr_nargs (_q30) == 2)
7968 : : {
7969 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
7970 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
7971 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
7972 : : {
7973 : 0 : {
7974 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _p0, _q41 };
7975 : 0 : tree res = generic_simplify_353 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
7976 : 0 : if (res) return res;
7977 : : }
7978 : : }
7979 : : }
7980 : : break;
7981 : : default:;
7982 : : }
7983 : : break;
7984 : : default:;
7985 : : }
7986 : : break;
7987 : : }
7988 : 13037170 : default:;
7989 : : }
7990 : 13037170 : switch (TREE_CODE (_p0))
7991 : : {
7992 : 20 : case REALPART_EXPR:
7993 : 20 : {
7994 : 20 : tree _q20 = TREE_OPERAND (_p0, 0);
7995 : 20 : switch (TREE_CODE (_q20))
7996 : : {
7997 : 0 : case CALL_EXPR:
7998 : 0 : switch (get_call_combined_fn (_q20))
7999 : : {
8000 : 0 : case CFN_ADD_OVERFLOW:
8001 : 0 : if (call_expr_nargs (_q20) == 2)
8002 : : {
8003 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
8004 : 0 : tree _q31 = CALL_EXPR_ARG (_q20, 1);
8005 : 0 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
8006 : : {
8007 : 0 : {
8008 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
8009 : 0 : tree res = generic_simplify_354 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
8010 : 0 : if (res) return res;
8011 : : }
8012 : : }
8013 : 0 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
8014 : : {
8015 : 0 : {
8016 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q31, _q30 };
8017 : 0 : tree res = generic_simplify_354 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
8018 : 0 : if (res) return res;
8019 : : }
8020 : : }
8021 : : }
8022 : : break;
8023 : : default:;
8024 : : }
8025 : : break;
8026 : : default:;
8027 : : }
8028 : : break;
8029 : : }
8030 : 7051 : case TRUNC_DIV_EXPR:
8031 : 7051 : {
8032 : 7051 : tree _q20 = TREE_OPERAND (_p0, 0);
8033 : 7051 : tree _q21 = TREE_OPERAND (_p0, 1);
8034 : 7051 : if (integer_all_onesp (_q20))
8035 : : {
8036 : 1018 : {
8037 : 1018 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _p1 };
8038 : 1018 : tree res = generic_simplify_355 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
8039 : 1018 : if (res) return res;
8040 : : }
8041 : : }
8042 : : break;
8043 : : }
8044 : 124670 : case MULT_EXPR:
8045 : 124670 : {
8046 : 124670 : tree _q20 = TREE_OPERAND (_p0, 0);
8047 : 124670 : tree _q21 = TREE_OPERAND (_p0, 1);
8048 : 124670 : switch (TREE_CODE (_q21))
8049 : : {
8050 : 12028 : case REAL_CST:
8051 : 12028 : {
8052 : 12028 : switch (TREE_CODE (_p1))
8053 : : {
8054 : 451 : case REAL_CST:
8055 : 451 : {
8056 : 451 : {
8057 : 451 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
8058 : 451 : tree res = generic_simplify_356 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
8059 : 451 : if (res) return res;
8060 : : }
8061 : 451 : break;
8062 : : }
8063 : : default:;
8064 : : }
8065 : : break;
8066 : : }
8067 : : default:;
8068 : : }
8069 : : break;
8070 : : }
8071 : 1921390 : case PLUS_EXPR:
8072 : 1921390 : {
8073 : 1921390 : tree _q20 = TREE_OPERAND (_p0, 0);
8074 : 1921390 : tree _q21 = TREE_OPERAND (_p0, 1);
8075 : 1921390 : switch (TREE_CODE (_q21))
8076 : : {
8077 : 1415491 : case INTEGER_CST:
8078 : 1415491 : {
8079 : 1415491 : switch (TREE_CODE (_p1))
8080 : : {
8081 : 223088 : case INTEGER_CST:
8082 : 223088 : {
8083 : 223088 : {
8084 : 223088 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
8085 : 223088 : tree res = generic_simplify_357 (loc, type, _p0, _p1, captures, PLUS_EXPR, MINUS_EXPR, LT_EXPR, GT_EXPR);
8086 : 223088 : if (res) return res;
8087 : : }
8088 : 15906 : break;
8089 : : }
8090 : : default:;
8091 : : }
8092 : : break;
8093 : : }
8094 : : default:;
8095 : : }
8096 : : break;
8097 : : }
8098 : 178620 : case MINUS_EXPR:
8099 : 178620 : {
8100 : 178620 : tree _q20 = TREE_OPERAND (_p0, 0);
8101 : 178620 : tree _q21 = TREE_OPERAND (_p0, 1);
8102 : 178620 : switch (TREE_CODE (_q21))
8103 : : {
8104 : 0 : case INTEGER_CST:
8105 : 0 : {
8106 : 0 : switch (TREE_CODE (_p1))
8107 : : {
8108 : 0 : case INTEGER_CST:
8109 : 0 : {
8110 : 0 : {
8111 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
8112 : 0 : tree res = generic_simplify_357 (loc, type, _p0, _p1, captures, MINUS_EXPR, PLUS_EXPR, LT_EXPR, GT_EXPR);
8113 : 0 : if (res) return res;
8114 : : }
8115 : 0 : break;
8116 : : }
8117 : : default:;
8118 : : }
8119 : : break;
8120 : : }
8121 : 178620 : default:;
8122 : : }
8123 : 178620 : switch (TREE_CODE (_q20))
8124 : : {
8125 : 42599 : case INTEGER_CST:
8126 : 42599 : {
8127 : 42599 : switch (TREE_CODE (_p1))
8128 : : {
8129 : 1561 : case INTEGER_CST:
8130 : 1561 : {
8131 : 1561 : {
8132 : 1561 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
8133 : 1561 : tree res = generic_simplify_284 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
8134 : 1561 : if (res) return res;
8135 : : }
8136 : 0 : break;
8137 : : }
8138 : : default:;
8139 : : }
8140 : : break;
8141 : : }
8142 : : default:;
8143 : : }
8144 : : break;
8145 : : }
8146 : 1621403 : case CALL_EXPR:
8147 : 1621403 : switch (get_call_combined_fn (_p0))
8148 : : {
8149 : 3 : case CFN_BUILT_IN_CTZ:
8150 : 3 : if (call_expr_nargs (_p0) == 1)
8151 : : {
8152 : 3 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8153 : 3 : switch (TREE_CODE (_p1))
8154 : : {
8155 : 3 : case INTEGER_CST:
8156 : 3 : {
8157 : 3 : {
8158 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
8159 : 3 : tree res = generic_simplify_358 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR, CFN_BUILT_IN_CTZ);
8160 : 3 : if (res) return res;
8161 : : }
8162 : 0 : break;
8163 : : }
8164 : : default:;
8165 : : }
8166 : : }
8167 : : break;
8168 : 2 : case CFN_BUILT_IN_CTZL:
8169 : 2 : if (call_expr_nargs (_p0) == 1)
8170 : : {
8171 : 2 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8172 : 2 : switch (TREE_CODE (_p1))
8173 : : {
8174 : 2 : case INTEGER_CST:
8175 : 2 : {
8176 : 2 : {
8177 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
8178 : 2 : tree res = generic_simplify_358 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR, CFN_BUILT_IN_CTZL);
8179 : 2 : if (res) return res;
8180 : : }
8181 : 0 : break;
8182 : : }
8183 : : default:;
8184 : : }
8185 : : }
8186 : : break;
8187 : 0 : case CFN_BUILT_IN_CTZIMAX:
8188 : 0 : if (call_expr_nargs (_p0) == 1)
8189 : : {
8190 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8191 : 0 : switch (TREE_CODE (_p1))
8192 : : {
8193 : 0 : case INTEGER_CST:
8194 : 0 : {
8195 : 0 : {
8196 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
8197 : 0 : tree res = generic_simplify_358 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR, CFN_BUILT_IN_CTZIMAX);
8198 : 0 : if (res) return res;
8199 : : }
8200 : 0 : break;
8201 : : }
8202 : : default:;
8203 : : }
8204 : : }
8205 : : break;
8206 : 0 : case CFN_CTZ:
8207 : 0 : if (call_expr_nargs (_p0) == 1)
8208 : : {
8209 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8210 : 0 : switch (TREE_CODE (_p1))
8211 : : {
8212 : 0 : case INTEGER_CST:
8213 : 0 : {
8214 : 0 : {
8215 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
8216 : 0 : tree res = generic_simplify_358 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR, CFN_CTZ);
8217 : 0 : if (res) return res;
8218 : : }
8219 : 0 : break;
8220 : : }
8221 : : default:;
8222 : : }
8223 : : }
8224 : 0 : if (call_expr_nargs (_p0) == 2)
8225 : : {
8226 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8227 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
8228 : 0 : switch (TREE_CODE (_p1))
8229 : : {
8230 : 0 : case INTEGER_CST:
8231 : 0 : {
8232 : 0 : {
8233 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
8234 : 0 : tree res = generic_simplify_359 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
8235 : 0 : if (res) return res;
8236 : : }
8237 : 0 : break;
8238 : : }
8239 : : default:;
8240 : : }
8241 : : }
8242 : : break;
8243 : 2 : case CFN_BUILT_IN_CTZLL:
8244 : 2 : if (call_expr_nargs (_p0) == 1)
8245 : : {
8246 : 2 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8247 : 2 : switch (TREE_CODE (_p1))
8248 : : {
8249 : 2 : case INTEGER_CST:
8250 : 2 : {
8251 : 2 : {
8252 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
8253 : 2 : tree res = generic_simplify_358 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR, CFN_BUILT_IN_CTZLL);
8254 : 2 : if (res) return res;
8255 : : }
8256 : 0 : break;
8257 : : }
8258 : : default:;
8259 : : }
8260 : : }
8261 : : break;
8262 : : default:;
8263 : : }
8264 : : break;
8265 : : default:;
8266 : : }
8267 : : return NULL_TREE;
8268 : : }
8269 : :
8270 : : tree
8271 : 19330533 : generic_simplify_GT_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
8272 : : {
8273 : 19330533 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
8274 : 19330533 : switch (TREE_CODE (_p0))
8275 : : {
8276 : 1006 : case RDIV_EXPR:
8277 : 1006 : {
8278 : 1006 : tree _q20 = TREE_OPERAND (_p0, 0);
8279 : 1006 : tree _q21 = TREE_OPERAND (_p0, 1);
8280 : 1006 : switch (TREE_CODE (_q20))
8281 : : {
8282 : 29 : case REAL_CST:
8283 : 29 : {
8284 : 29 : if (real_zerop (_p1))
8285 : : {
8286 : 0 : {
8287 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
8288 : 0 : tree res = generic_simplify_333 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
8289 : 0 : if (res) return res;
8290 : : }
8291 : : }
8292 : : break;
8293 : : }
8294 : : default:;
8295 : : }
8296 : : break;
8297 : : }
8298 : 19330533 : default:;
8299 : : }
8300 : 19330533 : switch (TREE_CODE (_p1))
8301 : : {
8302 : 85 : case TRUNC_MOD_EXPR:
8303 : 85 : {
8304 : 85 : tree _q30 = TREE_OPERAND (_p1, 0);
8305 : 85 : tree _q31 = TREE_OPERAND (_p1, 1);
8306 : 85 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
8307 : : {
8308 : 0 : {
8309 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p0 };
8310 : 0 : tree res = generic_simplify_334 (loc, type, _p0, _p1, captures, LT_EXPR);
8311 : 0 : if (res) return res;
8312 : : }
8313 : : }
8314 : : break;
8315 : : }
8316 : 19330533 : default:;
8317 : : }
8318 : 19330533 : switch (TREE_CODE (_p0))
8319 : : {
8320 : 137351 : case MULT_EXPR:
8321 : 137351 : {
8322 : 137351 : tree _q20 = TREE_OPERAND (_p0, 0);
8323 : 137351 : tree _q21 = TREE_OPERAND (_p0, 1);
8324 : 137351 : switch (TREE_CODE (_p1))
8325 : : {
8326 : 7160 : case MULT_EXPR:
8327 : 7160 : {
8328 : 7160 : tree _q50 = TREE_OPERAND (_p1, 0);
8329 : 7160 : tree _q51 = TREE_OPERAND (_p1, 1);
8330 : 7160 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8331 : : {
8332 : 108 : {
8333 : 108 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
8334 : 108 : tree res = generic_simplify_335 (loc, type, _p0, _p1, captures, GT_EXPR);
8335 : 108 : if (res) return res;
8336 : : }
8337 : : }
8338 : 7156 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
8339 : : {
8340 : 8 : {
8341 : 8 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
8342 : 8 : tree res = generic_simplify_335 (loc, type, _p0, _p1, captures, GT_EXPR);
8343 : 8 : if (res) return res;
8344 : : }
8345 : : }
8346 : 7156 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
8347 : : {
8348 : 0 : {
8349 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
8350 : 0 : tree res = generic_simplify_335 (loc, type, _p0, _p1, captures, GT_EXPR);
8351 : 0 : if (res) return res;
8352 : : }
8353 : : }
8354 : 7156 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8355 : : {
8356 : 680 : {
8357 : 680 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
8358 : 680 : tree res = generic_simplify_335 (loc, type, _p0, _p1, captures, GT_EXPR);
8359 : 680 : if (res) return res;
8360 : : }
8361 : : }
8362 : : break;
8363 : : }
8364 : : default:;
8365 : : }
8366 : : break;
8367 : : }
8368 : 2126441 : case PLUS_EXPR:
8369 : 2126441 : {
8370 : 2126441 : tree _q20 = TREE_OPERAND (_p0, 0);
8371 : 2126441 : tree _q21 = TREE_OPERAND (_p0, 1);
8372 : 2126441 : if (integer_minus_onep (_q21))
8373 : : {
8374 : 564727 : switch (TREE_CODE (_p1))
8375 : : {
8376 : 428181 : case INTEGER_CST:
8377 : 428181 : {
8378 : 428181 : {
8379 : 428181 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
8380 : 428181 : tree res = generic_simplify_360 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
8381 : 428181 : if (res) return res;
8382 : : }
8383 : 423291 : break;
8384 : : }
8385 : : default:;
8386 : : }
8387 : : }
8388 : 2121551 : switch (TREE_CODE (_p1))
8389 : : {
8390 : 60456 : case PLUS_EXPR:
8391 : 60456 : {
8392 : 60456 : tree _q50 = TREE_OPERAND (_p1, 0);
8393 : 60456 : tree _q51 = TREE_OPERAND (_p1, 1);
8394 : 60456 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8395 : : {
8396 : 4230 : {
8397 : 4230 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
8398 : 4230 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, GT_EXPR);
8399 : 4230 : if (res) return res;
8400 : : }
8401 : : }
8402 : 57556 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
8403 : : {
8404 : 308 : {
8405 : 308 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
8406 : 308 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, GT_EXPR);
8407 : 308 : if (res) return res;
8408 : : }
8409 : : }
8410 : 57556 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
8411 : : {
8412 : 25 : {
8413 : 25 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
8414 : 25 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, GT_EXPR);
8415 : 25 : if (res) return res;
8416 : : }
8417 : : }
8418 : 57556 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8419 : : {
8420 : 313 : {
8421 : 313 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
8422 : 313 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, GT_EXPR);
8423 : 313 : if (res) return res;
8424 : : }
8425 : : }
8426 : : break;
8427 : : }
8428 : 2118651 : default:;
8429 : : }
8430 : 2118651 : switch (TREE_CODE (_q21))
8431 : : {
8432 : 1965103 : case INTEGER_CST:
8433 : 1965103 : {
8434 : 1965103 : switch (TREE_CODE (_p1))
8435 : : {
8436 : 34754 : case PLUS_EXPR:
8437 : 34754 : {
8438 : 34754 : tree _q50 = TREE_OPERAND (_p1, 0);
8439 : 34754 : tree _q51 = TREE_OPERAND (_p1, 1);
8440 : 34754 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8441 : : {
8442 : 1296 : {
8443 : 1296 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
8444 : 1296 : tree res = generic_simplify_337 (loc, type, _p0, _p1, captures, GT_EXPR);
8445 : 1296 : if (res) return res;
8446 : : }
8447 : : }
8448 : : break;
8449 : : }
8450 : : default:;
8451 : : }
8452 : : break;
8453 : : }
8454 : 2118651 : default:;
8455 : : }
8456 : 2118651 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
8457 : : {
8458 : 59375 : {
8459 : 59375 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8460 : 59375 : tree res = generic_simplify_338 (loc, type, _p0, _p1, captures, GT_EXPR);
8461 : 59375 : if (res) return res;
8462 : : }
8463 : : }
8464 : 2082995 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
8465 : : {
8466 : 6393 : {
8467 : 6393 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
8468 : 6393 : tree res = generic_simplify_338 (loc, type, _p0, _p1, captures, GT_EXPR);
8469 : 6393 : if (res) return res;
8470 : : }
8471 : : }
8472 : : break;
8473 : : }
8474 : 2070584 : CASE_CONVERT:
8475 : 2070584 : {
8476 : 2070584 : tree _q20 = TREE_OPERAND (_p0, 0);
8477 : 2070584 : switch (TREE_CODE (_q20))
8478 : : {
8479 : 5 : case EXACT_DIV_EXPR:
8480 : 5 : {
8481 : 5 : tree _q30 = TREE_OPERAND (_q20, 0);
8482 : 5 : tree _q31 = TREE_OPERAND (_q20, 1);
8483 : 5 : switch (TREE_CODE (_q31))
8484 : : {
8485 : 5 : case INTEGER_CST:
8486 : 5 : {
8487 : 5 : switch (TREE_CODE (_p1))
8488 : : {
8489 : 2 : CASE_CONVERT:
8490 : 2 : {
8491 : 2 : tree _q60 = TREE_OPERAND (_p1, 0);
8492 : 2 : switch (TREE_CODE (_q60))
8493 : : {
8494 : 0 : case EXACT_DIV_EXPR:
8495 : 0 : {
8496 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
8497 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
8498 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
8499 : : {
8500 : 0 : {
8501 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q31, _q70 };
8502 : 0 : tree res = generic_simplify_206 (loc, type, _p0, _p1, captures, GT_EXPR);
8503 : 0 : if (res) return res;
8504 : : }
8505 : : }
8506 : : break;
8507 : : }
8508 : : default:;
8509 : : }
8510 : : break;
8511 : : }
8512 : : default:;
8513 : : }
8514 : : break;
8515 : : }
8516 : : default:;
8517 : : }
8518 : : break;
8519 : : }
8520 : : default:;
8521 : : }
8522 : : break;
8523 : : }
8524 : 7325 : case EXACT_DIV_EXPR:
8525 : 7325 : {
8526 : 7325 : tree _q20 = TREE_OPERAND (_p0, 0);
8527 : 7325 : tree _q21 = TREE_OPERAND (_p0, 1);
8528 : 7325 : switch (TREE_CODE (_q21))
8529 : : {
8530 : 7325 : case INTEGER_CST:
8531 : 7325 : {
8532 : 7325 : switch (TREE_CODE (_p1))
8533 : : {
8534 : 6 : case EXACT_DIV_EXPR:
8535 : 6 : {
8536 : 6 : tree _q50 = TREE_OPERAND (_p1, 0);
8537 : 6 : tree _q51 = TREE_OPERAND (_p1, 1);
8538 : 6 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8539 : : {
8540 : 0 : {
8541 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50 };
8542 : 0 : tree res = generic_simplify_206 (loc, type, _p0, _p1, captures, GT_EXPR);
8543 : 0 : if (res) return res;
8544 : : }
8545 : : }
8546 : : break;
8547 : : }
8548 : : default:;
8549 : : }
8550 : : break;
8551 : : }
8552 : : default:;
8553 : : }
8554 : : break;
8555 : : }
8556 : 1685758 : case TRUNC_DIV_EXPR:
8557 : 1685758 : {
8558 : 1685758 : tree _q20 = TREE_OPERAND (_p0, 0);
8559 : 1685758 : tree _q21 = TREE_OPERAND (_p0, 1);
8560 : 1685758 : switch (TREE_CODE (_q21))
8561 : : {
8562 : 1677440 : case INTEGER_CST:
8563 : 1677440 : {
8564 : 1677440 : switch (TREE_CODE (_p1))
8565 : : {
8566 : 1663876 : case INTEGER_CST:
8567 : 1663876 : {
8568 : 1663876 : {
8569 : 1663876 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
8570 : 1663876 : tree res = generic_simplify_209 (loc, type, _p0, _p1, captures, GT_EXPR);
8571 : 1663876 : if (res) return res;
8572 : : }
8573 : 69 : break;
8574 : : }
8575 : : default:;
8576 : : }
8577 : : break;
8578 : : }
8579 : : default:;
8580 : : }
8581 : : break;
8582 : : }
8583 : 743123 : case MINUS_EXPR:
8584 : 743123 : {
8585 : 743123 : tree _q20 = TREE_OPERAND (_p0, 0);
8586 : 743123 : tree _q21 = TREE_OPERAND (_p0, 1);
8587 : 743123 : switch (TREE_CODE (_p1))
8588 : : {
8589 : 3067 : case MINUS_EXPR:
8590 : 3067 : {
8591 : 3067 : tree _q50 = TREE_OPERAND (_p1, 0);
8592 : 3067 : tree _q51 = TREE_OPERAND (_p1, 1);
8593 : 3067 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8594 : : {
8595 : 905 : {
8596 : 905 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
8597 : 905 : tree res = generic_simplify_339 (loc, type, _p0, _p1, captures, GT_EXPR);
8598 : 905 : if (res) return res;
8599 : : }
8600 : : }
8601 : 3067 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8602 : : {
8603 : 184 : {
8604 : 184 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
8605 : 184 : tree res = generic_simplify_340 (loc, type, _p0, _p1, captures, GT_EXPR);
8606 : 184 : if (res) return res;
8607 : : }
8608 : : }
8609 : : break;
8610 : : }
8611 : : default:;
8612 : : }
8613 : : break;
8614 : : }
8615 : 54044 : case POINTER_DIFF_EXPR:
8616 : 54044 : {
8617 : 54044 : tree _q20 = TREE_OPERAND (_p0, 0);
8618 : 54044 : tree _q21 = TREE_OPERAND (_p0, 1);
8619 : 54044 : switch (TREE_CODE (_p1))
8620 : : {
8621 : 399 : case POINTER_DIFF_EXPR:
8622 : 399 : {
8623 : 399 : tree _q50 = TREE_OPERAND (_p1, 0);
8624 : 399 : tree _q51 = TREE_OPERAND (_p1, 1);
8625 : 399 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8626 : : {
8627 : 43 : {
8628 : 43 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50 };
8629 : 43 : tree res = generic_simplify_213 (loc, type, _p0, _p1, captures, GT_EXPR);
8630 : 43 : if (res) return res;
8631 : : }
8632 : : }
8633 : 356 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8634 : : {
8635 : 0 : {
8636 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q51 };
8637 : 0 : tree res = generic_simplify_214 (loc, type, _p0, _p1, captures, GT_EXPR);
8638 : 0 : if (res) return res;
8639 : : }
8640 : : }
8641 : : break;
8642 : : }
8643 : : default:;
8644 : : }
8645 : : break;
8646 : : }
8647 : 17621900 : default:;
8648 : : }
8649 : 17621900 : switch (TREE_CODE (_p1))
8650 : : {
8651 : 110726 : case PLUS_EXPR:
8652 : 110726 : {
8653 : 110726 : tree _q30 = TREE_OPERAND (_p1, 0);
8654 : 110726 : tree _q31 = TREE_OPERAND (_p1, 1);
8655 : 110726 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
8656 : : {
8657 : 0 : {
8658 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q30, _p0 };
8659 : 0 : tree res = generic_simplify_338 (loc, type, _p0, _p1, captures, LT_EXPR);
8660 : 0 : if (res) return res;
8661 : : }
8662 : : }
8663 : 110726 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
8664 : : {
8665 : 4 : {
8666 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q31, _p0 };
8667 : 4 : tree res = generic_simplify_338 (loc, type, _p0, _p1, captures, LT_EXPR);
8668 : 4 : if (res) return res;
8669 : : }
8670 : : }
8671 : : break;
8672 : : }
8673 : 11414 : case MINUS_EXPR:
8674 : 11414 : {
8675 : 11414 : tree _q30 = TREE_OPERAND (_p1, 0);
8676 : 11414 : tree _q31 = TREE_OPERAND (_p1, 1);
8677 : 11414 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
8678 : : {
8679 : 0 : {
8680 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q31 };
8681 : 0 : tree res = generic_simplify_212 (loc, type, _p0, _p1, captures, GT_EXPR);
8682 : 0 : if (res) return res;
8683 : : }
8684 : : }
8685 : : break;
8686 : : }
8687 : 17621900 : default:;
8688 : : }
8689 : 17621900 : switch (TREE_CODE (_p0))
8690 : : {
8691 : 743123 : case MINUS_EXPR:
8692 : 743123 : {
8693 : 743123 : tree _q20 = TREE_OPERAND (_p0, 0);
8694 : 743123 : tree _q21 = TREE_OPERAND (_p0, 1);
8695 : 743123 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
8696 : : {
8697 : 17367 : {
8698 : 17367 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p0, _q21 };
8699 : 17367 : tree res = generic_simplify_212 (loc, type, _p0, _p1, captures, LT_EXPR);
8700 : 17367 : if (res) return res;
8701 : : }
8702 : : }
8703 : : break;
8704 : : }
8705 : 19721 : case BIT_AND_EXPR:
8706 : 19721 : {
8707 : 19721 : tree _q20 = TREE_OPERAND (_p0, 0);
8708 : 19721 : tree _q21 = TREE_OPERAND (_p0, 1);
8709 : 19721 : if (tree_expr_nonnegative_p (_q20))
8710 : : {
8711 : 17777 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
8712 : : {
8713 : 0 : {
8714 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8715 : 0 : tree res = generic_simplify_341 (loc, type, _p0, _p1, captures, GT_EXPR, BIT_AND_EXPR);
8716 : 0 : if (res) return res;
8717 : : }
8718 : : }
8719 : : }
8720 : 19721 : if (tree_expr_nonnegative_p (_q21))
8721 : : {
8722 : 18813 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
8723 : : {
8724 : 3936 : {
8725 : 3936 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
8726 : 3936 : tree res = generic_simplify_341 (loc, type, _p0, _p1, captures, GT_EXPR, BIT_AND_EXPR);
8727 : 3936 : if (res) return res;
8728 : : }
8729 : : }
8730 : : }
8731 : : break;
8732 : : }
8733 : 17617921 : default:;
8734 : : }
8735 : 17617921 : switch (TREE_CODE (_p1))
8736 : : {
8737 : 142 : case BIT_IOR_EXPR:
8738 : 142 : {
8739 : 142 : tree _q30 = TREE_OPERAND (_p1, 0);
8740 : 142 : tree _q31 = TREE_OPERAND (_p1, 1);
8741 : 142 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
8742 : : {
8743 : 0 : if (tree_expr_nonnegative_p (_q30))
8744 : : {
8745 : 0 : {
8746 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
8747 : 0 : tree res = generic_simplify_341 (loc, type, _p0, _p1, captures, LT_EXPR, BIT_IOR_EXPR);
8748 : 0 : if (res) return res;
8749 : : }
8750 : : }
8751 : : }
8752 : 142 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
8753 : : {
8754 : 0 : if (tree_expr_nonnegative_p (_q31))
8755 : : {
8756 : 0 : {
8757 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
8758 : 0 : tree res = generic_simplify_341 (loc, type, _p0, _p1, captures, LT_EXPR, BIT_IOR_EXPR);
8759 : 0 : if (res) return res;
8760 : : }
8761 : : }
8762 : : }
8763 : : break;
8764 : : }
8765 : 17617921 : default:;
8766 : : }
8767 : 17617921 : switch (TREE_CODE (_p0))
8768 : : {
8769 : 14655 : case MAX_EXPR:
8770 : 14655 : {
8771 : 14655 : tree _q20 = TREE_OPERAND (_p0, 0);
8772 : 14655 : tree _q21 = TREE_OPERAND (_p0, 1);
8773 : 14655 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
8774 : : {
8775 : 1 : {
8776 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8777 : 1 : tree res = generic_simplify_222 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR, LT_EXPR);
8778 : 1 : if (res) return res;
8779 : : }
8780 : : }
8781 : 14654 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
8782 : : {
8783 : 12 : {
8784 : 12 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
8785 : 12 : tree res = generic_simplify_222 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR, LT_EXPR);
8786 : 12 : if (res) return res;
8787 : : }
8788 : : }
8789 : 14645 : switch (TREE_CODE (_q21))
8790 : : {
8791 : 13996 : case INTEGER_CST:
8792 : 13996 : {
8793 : 13996 : switch (TREE_CODE (_p1))
8794 : : {
8795 : 0 : case INTEGER_CST:
8796 : 0 : {
8797 : 0 : {
8798 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
8799 : 0 : tree res = generic_simplify_342 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR, BIT_IOR_EXPR);
8800 : 0 : if (res) return res;
8801 : : }
8802 : 0 : break;
8803 : : }
8804 : : default:;
8805 : : }
8806 : : break;
8807 : : }
8808 : : default:;
8809 : : }
8810 : : break;
8811 : : }
8812 : 17617911 : default:;
8813 : : }
8814 : 17617911 : switch (TREE_CODE (_p1))
8815 : : {
8816 : 209 : case MIN_EXPR:
8817 : 209 : {
8818 : 209 : tree _q30 = TREE_OPERAND (_p1, 0);
8819 : 209 : tree _q31 = TREE_OPERAND (_p1, 1);
8820 : 209 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
8821 : : {
8822 : 0 : {
8823 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
8824 : 0 : tree res = generic_simplify_222 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR, GT_EXPR);
8825 : 0 : if (res) return res;
8826 : : }
8827 : : }
8828 : 209 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
8829 : : {
8830 : 0 : {
8831 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
8832 : 0 : tree res = generic_simplify_222 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR, GT_EXPR);
8833 : 0 : if (res) return res;
8834 : : }
8835 : : }
8836 : : break;
8837 : : }
8838 : 618 : case MAX_EXPR:
8839 : 618 : {
8840 : 618 : tree _q30 = TREE_OPERAND (_p1, 0);
8841 : 618 : tree _q31 = TREE_OPERAND (_p1, 1);
8842 : 618 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
8843 : : {
8844 : 0 : {
8845 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
8846 : 0 : tree res = generic_simplify_343 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR);
8847 : 0 : if (res) return res;
8848 : : }
8849 : : }
8850 : 618 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
8851 : : {
8852 : 0 : {
8853 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
8854 : 0 : tree res = generic_simplify_343 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR);
8855 : 0 : if (res) return res;
8856 : : }
8857 : : }
8858 : : break;
8859 : : }
8860 : 17617911 : default:;
8861 : : }
8862 : 17617911 : switch (TREE_CODE (_p0))
8863 : : {
8864 : 33417 : case MIN_EXPR:
8865 : 33417 : {
8866 : 33417 : tree _q20 = TREE_OPERAND (_p0, 0);
8867 : 33417 : tree _q21 = TREE_OPERAND (_p0, 1);
8868 : 33417 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
8869 : : {
8870 : 1 : {
8871 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8872 : 1 : tree res = generic_simplify_343 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR);
8873 : 1 : if (res) return res;
8874 : : }
8875 : : }
8876 : 33416 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
8877 : : {
8878 : 1 : {
8879 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
8880 : 1 : tree res = generic_simplify_343 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR);
8881 : 1 : if (res) return res;
8882 : : }
8883 : : }
8884 : 33415 : switch (TREE_CODE (_q21))
8885 : : {
8886 : 20307 : case INTEGER_CST:
8887 : 20307 : {
8888 : 20307 : switch (TREE_CODE (_p1))
8889 : : {
8890 : 61 : case INTEGER_CST:
8891 : 61 : {
8892 : 61 : {
8893 : 61 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
8894 : 61 : tree res = generic_simplify_342 (loc, type, _p0, _p1, captures, MIN_EXPR, GT_EXPR, BIT_AND_EXPR);
8895 : 61 : if (res) return res;
8896 : : }
8897 : 0 : break;
8898 : : }
8899 : : default:;
8900 : : }
8901 : : break;
8902 : : }
8903 : : default:;
8904 : : }
8905 : : break;
8906 : : }
8907 : 854 : case VEC_COND_EXPR:
8908 : 854 : {
8909 : 854 : tree _q20 = TREE_OPERAND (_p0, 0);
8910 : 854 : tree _q21 = TREE_OPERAND (_p0, 1);
8911 : 854 : tree _q22 = TREE_OPERAND (_p0, 2);
8912 : 854 : switch (TREE_CODE (_p1))
8913 : : {
8914 : 14 : case VEC_COND_EXPR:
8915 : 14 : {
8916 : 14 : tree _q60 = TREE_OPERAND (_p1, 0);
8917 : 14 : tree _q61 = TREE_OPERAND (_p1, 1);
8918 : 14 : tree _q62 = TREE_OPERAND (_p1, 2);
8919 : 14 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
8920 : : {
8921 : 0 : {
8922 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
8923 : 0 : if (VECTOR_TYPE_P (type)
8924 : 0 : && (TREE_CODE_CLASS (GT_EXPR) != tcc_comparison
8925 : 0 : || types_match (type, TREE_TYPE (captures[2]))
8926 : 0 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
8927 : : || (optimize_vectors_before_lowering_p ()
8928 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
8929 : : )
8930 : : {
8931 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1763;
8932 : 0 : {
8933 : 0 : tree res_op0;
8934 : 0 : res_op0 = captures[1];
8935 : 0 : tree res_op1;
8936 : 0 : {
8937 : 0 : tree _o1[2], _r1;
8938 : 0 : _o1[0] = captures[2];
8939 : 0 : _o1[1] = captures[5];
8940 : 0 : _r1 = fold_build2_loc (loc, GT_EXPR, type, _o1[0], _o1[1]);
8941 : 0 : if (EXPR_P (_r1))
8942 : 0 : goto next_after_fail1763;
8943 : 0 : res_op1 = _r1;
8944 : : }
8945 : 0 : tree res_op2;
8946 : 0 : {
8947 : 0 : tree _o1[2], _r1;
8948 : 0 : _o1[0] = captures[3];
8949 : 0 : _o1[1] = captures[6];
8950 : 0 : _r1 = fold_build2_loc (loc, GT_EXPR, type, _o1[0], _o1[1]);
8951 : 0 : if (EXPR_P (_r1))
8952 : 0 : goto next_after_fail1763;
8953 : 0 : res_op2 = _r1;
8954 : : }
8955 : 0 : tree _r;
8956 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
8957 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 908, __FILE__, __LINE__, true);
8958 : 0 : return _r;
8959 : : }
8960 : 0 : next_after_fail1763:;
8961 : : }
8962 : : }
8963 : : }
8964 : : break;
8965 : : }
8966 : 854 : default:;
8967 : : }
8968 : 854 : {
8969 : 854 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
8970 : 854 : if (VECTOR_TYPE_P (type)
8971 : 854 : && (TREE_CODE_CLASS (GT_EXPR) != tcc_comparison
8972 : 854 : || types_match (type, TREE_TYPE (captures[2]))
8973 : 854 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
8974 : : || (optimize_vectors_before_lowering_p ()
8975 : 10 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
8976 : : )
8977 : : {
8978 : 854 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1764;
8979 : 854 : {
8980 : 854 : if (! tree_invariant_p (captures[4])) goto next_after_fail1764;
8981 : 9 : tree res_op0;
8982 : 9 : res_op0 = captures[1];
8983 : 9 : tree res_op1;
8984 : 9 : {
8985 : 9 : tree _o1[2], _r1;
8986 : 9 : _o1[0] = captures[2];
8987 : 9 : _o1[1] = unshare_expr (captures[4]);
8988 : 9 : _r1 = fold_build2_loc (loc, GT_EXPR, type, _o1[0], _o1[1]);
8989 : 9 : if (EXPR_P (_r1))
8990 : 6 : goto next_after_fail1764;
8991 : 3 : res_op1 = _r1;
8992 : : }
8993 : 3 : tree res_op2;
8994 : 3 : {
8995 : 3 : tree _o1[2], _r1;
8996 : 3 : _o1[0] = captures[3];
8997 : 3 : _o1[1] = captures[4];
8998 : 3 : _r1 = fold_build2_loc (loc, GT_EXPR, type, _o1[0], _o1[1]);
8999 : 3 : if (EXPR_P (_r1))
9000 : 3 : goto next_after_fail1764;
9001 : 0 : res_op2 = _r1;
9002 : : }
9003 : 0 : tree _r;
9004 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
9005 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 909, __FILE__, __LINE__, true);
9006 : 0 : return _r;
9007 : : }
9008 : 854 : next_after_fail1764:;
9009 : : }
9010 : : }
9011 : 854 : break;
9012 : : }
9013 : 17617848 : default:;
9014 : : }
9015 : 17617848 : switch (TREE_CODE (_p1))
9016 : : {
9017 : 74 : case VEC_COND_EXPR:
9018 : 74 : {
9019 : 74 : tree _q30 = TREE_OPERAND (_p1, 0);
9020 : 74 : tree _q31 = TREE_OPERAND (_p1, 1);
9021 : 74 : tree _q32 = TREE_OPERAND (_p1, 2);
9022 : 74 : {
9023 : 74 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
9024 : 74 : if (VECTOR_TYPE_P (type)
9025 : 74 : && (TREE_CODE_CLASS (GT_EXPR) != tcc_comparison
9026 : 74 : || types_match (type, TREE_TYPE (captures[3]))
9027 : 74 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
9028 : : || (optimize_vectors_before_lowering_p ()
9029 : 7 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
9030 : : )
9031 : : {
9032 : 74 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1765;
9033 : 74 : {
9034 : 74 : if (! tree_invariant_p (captures[0])) goto next_after_fail1765;
9035 : 0 : tree res_op0;
9036 : 0 : res_op0 = captures[2];
9037 : 0 : tree res_op1;
9038 : 0 : {
9039 : 0 : tree _o1[2], _r1;
9040 : 0 : _o1[0] = unshare_expr (captures[0]);
9041 : 0 : _o1[1] = captures[3];
9042 : 0 : _r1 = fold_build2_loc (loc, GT_EXPR, type, _o1[0], _o1[1]);
9043 : 0 : if (EXPR_P (_r1))
9044 : 0 : goto next_after_fail1765;
9045 : 0 : res_op1 = _r1;
9046 : : }
9047 : 0 : tree res_op2;
9048 : 0 : {
9049 : 0 : tree _o1[2], _r1;
9050 : 0 : _o1[0] = captures[0];
9051 : 0 : _o1[1] = captures[4];
9052 : 0 : _r1 = fold_build2_loc (loc, GT_EXPR, type, _o1[0], _o1[1]);
9053 : 0 : if (EXPR_P (_r1))
9054 : 0 : goto next_after_fail1765;
9055 : 0 : res_op2 = _r1;
9056 : : }
9057 : 0 : tree _r;
9058 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
9059 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 910, __FILE__, __LINE__, true);
9060 : 0 : return _r;
9061 : : }
9062 : 74 : next_after_fail1765:;
9063 : : }
9064 : : }
9065 : 74 : break;
9066 : : }
9067 : 17617848 : default:;
9068 : : }
9069 : 17617848 : if (uniform_integer_cst_p (_p1))
9070 : : {
9071 : 12335299 : {
9072 : 12335299 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
9073 : 12335299 : tree res = generic_simplify_361 (loc, type, _p0, _p1, captures, GT_EXPR, GE_EXPR);
9074 : 12335299 : if (res) return res;
9075 : : }
9076 : : }
9077 : 17543859 : switch (TREE_CODE (_p0))
9078 : : {
9079 : 136996 : case MULT_EXPR:
9080 : 136996 : {
9081 : 136996 : tree _q20 = TREE_OPERAND (_p0, 0);
9082 : 136996 : tree _q21 = TREE_OPERAND (_p0, 1);
9083 : 136996 : switch (TREE_CODE (_q21))
9084 : : {
9085 : 96703 : case INTEGER_CST:
9086 : 96703 : {
9087 : 96703 : if (integer_zerop (_p1))
9088 : : {
9089 : 7540 : {
9090 : 7540 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
9091 : 7540 : tree res = generic_simplify_242 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
9092 : 7540 : if (res) return res;
9093 : : }
9094 : : }
9095 : : break;
9096 : : }
9097 : : default:;
9098 : : }
9099 : : break;
9100 : : }
9101 : 17541466 : default:;
9102 : : }
9103 : 17541466 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
9104 : : {
9105 : 1758 : {
9106 : 1758 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
9107 : 1758 : tree res = generic_simplify_294 (loc, type, _p0, _p1, captures, GT_EXPR);
9108 : 1758 : if (res) return res;
9109 : : }
9110 : : }
9111 : 17539708 : switch (TREE_CODE (_p0))
9112 : : {
9113 : 886692 : case BIT_NOT_EXPR:
9114 : 886692 : {
9115 : 886692 : tree _q20 = TREE_OPERAND (_p0, 0);
9116 : 886692 : switch (TREE_CODE (_p1))
9117 : : {
9118 : 10 : case BIT_NOT_EXPR:
9119 : 10 : {
9120 : 10 : tree _q40 = TREE_OPERAND (_p1, 0);
9121 : 10 : {
9122 : 10 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _p1, _q40 };
9123 : 10 : tree res = generic_simplify_248 (loc, type, _p0, _p1, captures, GT_EXPR);
9124 : 10 : if (res) return res;
9125 : : }
9126 : 0 : break;
9127 : : }
9128 : 886682 : default:;
9129 : : }
9130 : 886682 : {
9131 : 886682 : tree _p1_pops[1];
9132 : 886682 : if (tree_nop_convert (_p1, _p1_pops))
9133 : : {
9134 : 2 : tree _q40 = _p1_pops[0];
9135 : 2 : switch (TREE_CODE (_q40))
9136 : : {
9137 : 0 : case BIT_NOT_EXPR:
9138 : 0 : {
9139 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
9140 : 0 : {
9141 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q40, _q50 };
9142 : 0 : tree res = generic_simplify_248 (loc, type, _p0, _p1, captures, GT_EXPR);
9143 : 0 : if (res) return res;
9144 : : }
9145 : 0 : break;
9146 : : }
9147 : : default:;
9148 : : }
9149 : : }
9150 : : }
9151 : 886682 : if (CONSTANT_CLASS_P (_p1))
9152 : : {
9153 : 883223 : {
9154 : 883223 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
9155 : 883223 : tree res = generic_simplify_247 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
9156 : 883223 : if (res) return res;
9157 : : }
9158 : : }
9159 : : break;
9160 : : }
9161 : 16656475 : default:;
9162 : : }
9163 : 16656475 : {
9164 : 16656475 : tree _p0_pops[1];
9165 : 16656475 : if (tree_nop_convert (_p0, _p0_pops))
9166 : : {
9167 : 777192 : tree _q20 = _p0_pops[0];
9168 : 777192 : switch (TREE_CODE (_q20))
9169 : : {
9170 : 0 : case BIT_NOT_EXPR:
9171 : 0 : {
9172 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
9173 : 0 : switch (TREE_CODE (_p1))
9174 : : {
9175 : 0 : case BIT_NOT_EXPR:
9176 : 0 : {
9177 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9178 : 0 : {
9179 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _p1, _q50 };
9180 : 0 : tree res = generic_simplify_246 (loc, type, _p0, _p1, captures, GT_EXPR);
9181 : 0 : if (res) return res;
9182 : : }
9183 : 0 : break;
9184 : : }
9185 : 0 : default:;
9186 : : }
9187 : 0 : {
9188 : 0 : tree _p1_pops[1];
9189 : 0 : if (tree_nop_convert (_p1, _p1_pops))
9190 : : {
9191 : 0 : tree _q50 = _p1_pops[0];
9192 : 0 : switch (TREE_CODE (_q50))
9193 : : {
9194 : 0 : case BIT_NOT_EXPR:
9195 : 0 : {
9196 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
9197 : 0 : {
9198 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q50, _q60 };
9199 : 0 : tree res = generic_simplify_246 (loc, type, _p0, _p1, captures, GT_EXPR);
9200 : 0 : if (res) return res;
9201 : : }
9202 : 0 : break;
9203 : : }
9204 : : default:;
9205 : : }
9206 : : }
9207 : : }
9208 : 0 : if (CONSTANT_CLASS_P (_p1))
9209 : : {
9210 : 0 : {
9211 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
9212 : 0 : tree res = generic_simplify_247 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
9213 : 0 : if (res) return res;
9214 : : }
9215 : : }
9216 : : break;
9217 : : }
9218 : : default:;
9219 : : }
9220 : : }
9221 : : }
9222 : 16656475 : switch (TREE_CODE (_p1))
9223 : : {
9224 : 807271 : case REAL_CST:
9225 : 807271 : {
9226 : 807271 : {
9227 : 807271 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
9228 : 807271 : tree res = generic_simplify_249 (loc, type, _p0, _p1, captures, GT_EXPR);
9229 : 807271 : if (res) return res;
9230 : : }
9231 : 807215 : break;
9232 : : }
9233 : 16656419 : default:;
9234 : : }
9235 : 16656419 : switch (TREE_CODE (_p0))
9236 : : {
9237 : 2080885 : case PLUS_EXPR:
9238 : 2080885 : {
9239 : 2080885 : tree _q20 = TREE_OPERAND (_p0, 0);
9240 : 2080885 : tree _q21 = TREE_OPERAND (_p0, 1);
9241 : 2080885 : switch (TREE_CODE (_q21))
9242 : : {
9243 : 511 : case REAL_CST:
9244 : 511 : {
9245 : 511 : switch (TREE_CODE (_p1))
9246 : : {
9247 : 230 : case REAL_CST:
9248 : 230 : {
9249 : 230 : {
9250 : 230 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
9251 : 230 : tree res = generic_simplify_250 (loc, type, _p0, _p1, captures, PLUS_EXPR, GT_EXPR);
9252 : 230 : if (res) return res;
9253 : : }
9254 : 230 : break;
9255 : : }
9256 : : default:;
9257 : : }
9258 : : break;
9259 : : }
9260 : 1928683 : case INTEGER_CST:
9261 : 1928683 : {
9262 : 1928683 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
9263 : : {
9264 : 1444 : {
9265 : 1444 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q20, _q21 };
9266 : 1444 : tree res = generic_simplify_345 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
9267 : 1444 : if (res) return res;
9268 : : }
9269 : : }
9270 : : break;
9271 : : }
9272 : : default:;
9273 : : }
9274 : : break;
9275 : : }
9276 : 732911 : case MINUS_EXPR:
9277 : 732911 : {
9278 : 732911 : tree _q20 = TREE_OPERAND (_p0, 0);
9279 : 732911 : tree _q21 = TREE_OPERAND (_p0, 1);
9280 : 732911 : switch (TREE_CODE (_q21))
9281 : : {
9282 : 751 : case REAL_CST:
9283 : 751 : {
9284 : 751 : switch (TREE_CODE (_p1))
9285 : : {
9286 : 537 : case REAL_CST:
9287 : 537 : {
9288 : 537 : {
9289 : 537 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
9290 : 537 : tree res = generic_simplify_250 (loc, type, _p0, _p1, captures, MINUS_EXPR, GT_EXPR);
9291 : 537 : if (res) return res;
9292 : : }
9293 : 535 : break;
9294 : : }
9295 : : default:;
9296 : : }
9297 : : break;
9298 : : }
9299 : 732909 : default:;
9300 : : }
9301 : 732909 : switch (TREE_CODE (_q20))
9302 : : {
9303 : 43 : case REAL_CST:
9304 : 43 : {
9305 : 43 : switch (TREE_CODE (_p1))
9306 : : {
9307 : 37 : case REAL_CST:
9308 : 37 : {
9309 : 37 : {
9310 : 37 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
9311 : 37 : tree res = generic_simplify_251 (loc, type, _p0, _p1, captures, GT_EXPR);
9312 : 37 : if (res) return res;
9313 : : }
9314 : 35 : break;
9315 : : }
9316 : : default:;
9317 : : }
9318 : : break;
9319 : : }
9320 : : default:;
9321 : : }
9322 : : break;
9323 : : }
9324 : 42821 : case FLOAT_EXPR:
9325 : 42821 : {
9326 : 42821 : tree _q20 = TREE_OPERAND (_p0, 0);
9327 : 42821 : switch (TREE_CODE (_p1))
9328 : : {
9329 : 30 : case FLOAT_EXPR:
9330 : 30 : {
9331 : 30 : tree _q40 = TREE_OPERAND (_p1, 0);
9332 : 30 : {
9333 : 30 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
9334 : 30 : tree res = generic_simplify_254 (loc, type, _p0, _p1, captures, GT_EXPR, GT_EXPR);
9335 : 30 : if (res) return res;
9336 : : }
9337 : 30 : break;
9338 : : }
9339 : 41099 : case REAL_CST:
9340 : 41099 : {
9341 : 41099 : {
9342 : 41099 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9343 : 41099 : tree res = generic_simplify_255 (loc, type, _p0, _p1, captures, GT_EXPR, GE_EXPR);
9344 : 41099 : if (res) return res;
9345 : : }
9346 : 20726 : break;
9347 : : }
9348 : : default:;
9349 : : }
9350 : : break;
9351 : : }
9352 : 7325 : case EXACT_DIV_EXPR:
9353 : 7325 : {
9354 : 7325 : tree _q20 = TREE_OPERAND (_p0, 0);
9355 : 7325 : tree _q21 = TREE_OPERAND (_p0, 1);
9356 : 7325 : switch (TREE_CODE (_q21))
9357 : : {
9358 : 7325 : case INTEGER_CST:
9359 : 7325 : {
9360 : 7325 : switch (TREE_CODE (_p1))
9361 : : {
9362 : 189 : case INTEGER_CST:
9363 : 189 : {
9364 : 189 : {
9365 : 189 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
9366 : 189 : tree res = generic_simplify_346 (loc, type, _p0, _p1, captures, GT_EXPR);
9367 : 189 : if (res) return res;
9368 : : }
9369 : 0 : break;
9370 : : }
9371 : : default:;
9372 : : }
9373 : : break;
9374 : : }
9375 : : default:;
9376 : : }
9377 : : break;
9378 : : }
9379 : 2067170 : CASE_CONVERT:
9380 : 2067170 : {
9381 : 2067170 : tree _q20 = TREE_OPERAND (_p0, 0);
9382 : 2067170 : switch (TREE_CODE (_q20))
9383 : : {
9384 : 5 : case EXACT_DIV_EXPR:
9385 : 5 : {
9386 : 5 : tree _q30 = TREE_OPERAND (_q20, 0);
9387 : 5 : tree _q31 = TREE_OPERAND (_q20, 1);
9388 : 5 : switch (TREE_CODE (_q31))
9389 : : {
9390 : 5 : case INTEGER_CST:
9391 : 5 : {
9392 : 5 : switch (TREE_CODE (_p1))
9393 : : {
9394 : 0 : case INTEGER_CST:
9395 : 0 : {
9396 : 0 : {
9397 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
9398 : 0 : tree res = generic_simplify_347 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
9399 : 0 : if (res) return res;
9400 : : }
9401 : 0 : break;
9402 : : }
9403 : : default:;
9404 : : }
9405 : : break;
9406 : : }
9407 : : default:;
9408 : : }
9409 : : break;
9410 : : }
9411 : 2067170 : default:;
9412 : : }
9413 : 2067170 : switch (TREE_CODE (_p1))
9414 : : {
9415 : 177869 : CASE_CONVERT:
9416 : 177869 : {
9417 : 177869 : tree _q40 = TREE_OPERAND (_p1, 0);
9418 : 177869 : {
9419 : 177869 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
9420 : 177869 : tree res = generic_simplify_259 (loc, type, _p0, _p1, captures, GT_EXPR);
9421 : 177869 : if (res) return res;
9422 : : }
9423 : 144668 : break;
9424 : : }
9425 : 2033969 : default:;
9426 : : }
9427 : 2033969 : {
9428 : 2033969 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
9429 : 2033969 : tree res = generic_simplify_260 (loc, type, _p0, _p1, captures, GT_EXPR);
9430 : 2033969 : if (res) return res;
9431 : : }
9432 : 1093746 : switch (TREE_CODE (_q20))
9433 : : {
9434 : 401 : case ADDR_EXPR:
9435 : 401 : {
9436 : 401 : switch (TREE_CODE (_p1))
9437 : : {
9438 : 274 : CASE_CONVERT:
9439 : 274 : {
9440 : 274 : tree _q40 = TREE_OPERAND (_p1, 0);
9441 : 274 : switch (TREE_CODE (_q40))
9442 : : {
9443 : 274 : case ADDR_EXPR:
9444 : 274 : {
9445 : 274 : {
9446 : 274 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
9447 : 274 : tree res = generic_simplify_277 (loc, type, _p0, _p1, captures, GT_EXPR);
9448 : 274 : if (res) return res;
9449 : : }
9450 : 207 : break;
9451 : : }
9452 : : default:;
9453 : : }
9454 : : break;
9455 : : }
9456 : 0 : case ADDR_EXPR:
9457 : 0 : {
9458 : 0 : {
9459 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
9460 : 0 : tree res = generic_simplify_277 (loc, type, _p0, _p1, captures, GT_EXPR);
9461 : 0 : if (res) return res;
9462 : : }
9463 : 0 : break;
9464 : : }
9465 : : default:;
9466 : : }
9467 : : break;
9468 : : }
9469 : 1093679 : default:;
9470 : : }
9471 : 1093679 : if (uniform_integer_cst_p (_p1))
9472 : : {
9473 : 303287 : {
9474 : 303287 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
9475 : 303287 : tree res = generic_simplify_348 (loc, type, _p0, _p1, captures, GT_EXPR);
9476 : 303287 : if (res) return res;
9477 : : }
9478 : : }
9479 : : break;
9480 : : }
9481 : 15782 : case BIT_AND_EXPR:
9482 : 15782 : {
9483 : 15782 : tree _q20 = TREE_OPERAND (_p0, 0);
9484 : 15782 : tree _q21 = TREE_OPERAND (_p0, 1);
9485 : 15782 : switch (TREE_CODE (_q21))
9486 : : {
9487 : 14782 : case INTEGER_CST:
9488 : 14782 : {
9489 : 14782 : switch (TREE_CODE (_p1))
9490 : : {
9491 : 9110 : case INTEGER_CST:
9492 : 9110 : {
9493 : 9110 : {
9494 : 9110 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
9495 : 9110 : tree res = generic_simplify_362 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
9496 : 9110 : if (res) return res;
9497 : : }
9498 : 8611 : break;
9499 : : }
9500 : : default:;
9501 : : }
9502 : : break;
9503 : : }
9504 : : default:;
9505 : : }
9506 : : break;
9507 : : }
9508 : 10057 : case NEGATE_EXPR:
9509 : 10057 : {
9510 : 10057 : tree _q20 = TREE_OPERAND (_p0, 0);
9511 : 10057 : switch (TREE_CODE (_p1))
9512 : : {
9513 : 4 : case NEGATE_EXPR:
9514 : 4 : {
9515 : 4 : tree _q40 = TREE_OPERAND (_p1, 0);
9516 : 4 : {
9517 : 4 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
9518 : 4 : tree res = generic_simplify_257 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
9519 : 4 : if (res) return res;
9520 : : }
9521 : 4 : break;
9522 : : }
9523 : 10057 : default:;
9524 : : }
9525 : 10057 : if (CONSTANT_CLASS_P (_p1))
9526 : : {
9527 : 703 : {
9528 : 703 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9529 : 703 : tree res = generic_simplify_258 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
9530 : 703 : if (res) return res;
9531 : : }
9532 : : }
9533 : : break;
9534 : : }
9535 : 4575 : case ADDR_EXPR:
9536 : 4575 : {
9537 : 4575 : switch (TREE_CODE (_p1))
9538 : : {
9539 : 0 : CASE_CONVERT:
9540 : 0 : {
9541 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
9542 : 0 : switch (TREE_CODE (_q30))
9543 : : {
9544 : 0 : case ADDR_EXPR:
9545 : 0 : {
9546 : 0 : {
9547 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q30 };
9548 : 0 : tree res = generic_simplify_278 (loc, type, _p0, _p1, captures, GT_EXPR);
9549 : 0 : if (res) return res;
9550 : : }
9551 : 0 : break;
9552 : : }
9553 : : default:;
9554 : : }
9555 : : break;
9556 : : }
9557 : 4270 : case ADDR_EXPR:
9558 : 4270 : {
9559 : 4270 : {
9560 : 4270 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _p1 };
9561 : 4270 : tree res = generic_simplify_278 (loc, type, _p0, _p1, captures, GT_EXPR);
9562 : 4270 : if (res) return res;
9563 : : }
9564 : 650 : break;
9565 : : }
9566 : : default:;
9567 : : }
9568 : : break;
9569 : : }
9570 : 297222 : case CALL_EXPR:
9571 : 297222 : switch (get_call_combined_fn (_p0))
9572 : : {
9573 : 1 : case CFN_BUILT_IN_SQRTF:
9574 : 1 : if (call_expr_nargs (_p0) == 1)
9575 : : {
9576 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9577 : 1 : switch (TREE_CODE (_p1))
9578 : : {
9579 : 1 : case REAL_CST:
9580 : 1 : {
9581 : 1 : {
9582 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9583 : 1 : tree res = generic_simplify_252 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTF, GT_EXPR);
9584 : 1 : if (res) return res;
9585 : : }
9586 : 0 : break;
9587 : : }
9588 : 0 : case CALL_EXPR:
9589 : 0 : switch (get_call_combined_fn (_p1))
9590 : : {
9591 : 0 : case CFN_BUILT_IN_SQRTF:
9592 : 0 : if (call_expr_nargs (_p1) == 1)
9593 : : {
9594 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9595 : 0 : {
9596 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
9597 : 0 : tree res = generic_simplify_253 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTF, GT_EXPR);
9598 : 0 : if (res) return res;
9599 : : }
9600 : : }
9601 : : break;
9602 : : default:;
9603 : : }
9604 : : break;
9605 : : default:;
9606 : : }
9607 : : }
9608 : : break;
9609 : 0 : case CFN_BUILT_IN_SQRTL:
9610 : 0 : if (call_expr_nargs (_p0) == 1)
9611 : : {
9612 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9613 : 0 : switch (TREE_CODE (_p1))
9614 : : {
9615 : 0 : case REAL_CST:
9616 : 0 : {
9617 : 0 : {
9618 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9619 : 0 : tree res = generic_simplify_252 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTL, GT_EXPR);
9620 : 0 : if (res) return res;
9621 : : }
9622 : 0 : break;
9623 : : }
9624 : 0 : case CALL_EXPR:
9625 : 0 : switch (get_call_combined_fn (_p1))
9626 : : {
9627 : 0 : case CFN_BUILT_IN_SQRTL:
9628 : 0 : if (call_expr_nargs (_p1) == 1)
9629 : : {
9630 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9631 : 0 : {
9632 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
9633 : 0 : tree res = generic_simplify_253 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTL, GT_EXPR);
9634 : 0 : if (res) return res;
9635 : : }
9636 : : }
9637 : : break;
9638 : : default:;
9639 : : }
9640 : : break;
9641 : : default:;
9642 : : }
9643 : : }
9644 : : break;
9645 : 3 : case CFN_BUILT_IN_SQRT:
9646 : 3 : if (call_expr_nargs (_p0) == 1)
9647 : : {
9648 : 3 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9649 : 3 : switch (TREE_CODE (_p1))
9650 : : {
9651 : 3 : case REAL_CST:
9652 : 3 : {
9653 : 3 : {
9654 : 3 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9655 : 3 : tree res = generic_simplify_252 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRT, GT_EXPR);
9656 : 3 : if (res) return res;
9657 : : }
9658 : 0 : break;
9659 : : }
9660 : 0 : case CALL_EXPR:
9661 : 0 : switch (get_call_combined_fn (_p1))
9662 : : {
9663 : 0 : case CFN_BUILT_IN_SQRT:
9664 : 0 : if (call_expr_nargs (_p1) == 1)
9665 : : {
9666 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9667 : 0 : {
9668 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
9669 : 0 : tree res = generic_simplify_253 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRT, GT_EXPR);
9670 : 0 : if (res) return res;
9671 : : }
9672 : : }
9673 : : break;
9674 : : default:;
9675 : : }
9676 : : break;
9677 : : default:;
9678 : : }
9679 : : }
9680 : : break;
9681 : 0 : case CFN_SQRT:
9682 : 0 : if (call_expr_nargs (_p0) == 1)
9683 : : {
9684 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9685 : 0 : switch (TREE_CODE (_p1))
9686 : : {
9687 : 0 : case REAL_CST:
9688 : 0 : {
9689 : 0 : {
9690 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9691 : 0 : tree res = generic_simplify_252 (loc, type, _p0, _p1, captures, CFN_SQRT, GT_EXPR);
9692 : 0 : if (res) return res;
9693 : : }
9694 : 0 : break;
9695 : : }
9696 : 0 : case CALL_EXPR:
9697 : 0 : switch (get_call_combined_fn (_p1))
9698 : : {
9699 : 0 : case CFN_SQRT:
9700 : 0 : if (call_expr_nargs (_p1) == 1)
9701 : : {
9702 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9703 : 0 : {
9704 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
9705 : 0 : tree res = generic_simplify_253 (loc, type, _p0, _p1, captures, CFN_SQRT, GT_EXPR);
9706 : 0 : if (res) return res;
9707 : : }
9708 : : }
9709 : : break;
9710 : : default:;
9711 : : }
9712 : : break;
9713 : : default:;
9714 : : }
9715 : : }
9716 : : break;
9717 : : default:;
9718 : : }
9719 : : break;
9720 : 15626691 : default:;
9721 : : }
9722 : 15626691 : if (uniform_integer_cst_p (_p1))
9723 : : {
9724 : 10405123 : {
9725 : 10405123 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _p1 };
9726 : 10405123 : tree res = generic_simplify_349 (loc, type, _p0, _p1, captures, GT_EXPR);
9727 : 10405123 : if (res) return res;
9728 : : }
9729 : : }
9730 : 14901773 : switch (TREE_CODE (_p0))
9731 : : {
9732 : 1021528 : CASE_CONVERT:
9733 : 1021528 : {
9734 : 1021528 : tree _q20 = TREE_OPERAND (_p0, 0);
9735 : 1021528 : switch (TREE_CODE (_q20))
9736 : : {
9737 : 1 : case NE_EXPR:
9738 : 1 : {
9739 : 1 : tree _q30 = TREE_OPERAND (_q20, 0);
9740 : 1 : tree _q31 = TREE_OPERAND (_q20, 1);
9741 : 1 : if (integer_zerop (_q31))
9742 : : {
9743 : 1 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
9744 : : {
9745 : 1 : {
9746 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _q30 };
9747 : 1 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0]))
9748 : : )
9749 : : {
9750 : 1 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1766;
9751 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1766;
9752 : 1 : {
9753 : 1 : tree _r;
9754 : 1 : _r = constant_boolean_node (false, type);
9755 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1017, __FILE__, __LINE__, true);
9756 : 1 : return _r;
9757 : : }
9758 : : next_after_fail1766:;
9759 : : }
9760 : : }
9761 : : }
9762 : : }
9763 : : break;
9764 : : }
9765 : 45396 : case PLUS_EXPR:
9766 : 45396 : {
9767 : 45396 : tree _q30 = TREE_OPERAND (_q20, 0);
9768 : 45396 : tree _q31 = TREE_OPERAND (_q20, 1);
9769 : 45396 : switch (TREE_CODE (_q30))
9770 : : {
9771 : 33563 : CASE_CONVERT:
9772 : 33563 : {
9773 : 33563 : tree _q40 = TREE_OPERAND (_q30, 0);
9774 : 33563 : switch (TREE_CODE (_q31))
9775 : : {
9776 : 33559 : case INTEGER_CST:
9777 : 33559 : {
9778 : 33559 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
9779 : : {
9780 : 7 : {
9781 : 7 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q40, _q31 };
9782 : 7 : tree res = generic_simplify_350 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
9783 : 7 : if (res) return res;
9784 : : }
9785 : : }
9786 : : break;
9787 : : }
9788 : : default:;
9789 : : }
9790 : : break;
9791 : : }
9792 : : default:;
9793 : : }
9794 : : break;
9795 : : }
9796 : : default:;
9797 : : }
9798 : : break;
9799 : : }
9800 : 14901765 : default:;
9801 : : }
9802 : 14901765 : switch (TREE_CODE (_p1))
9803 : : {
9804 : 562866 : CASE_CONVERT:
9805 : 562866 : {
9806 : 562866 : tree _q30 = TREE_OPERAND (_p1, 0);
9807 : 562866 : switch (TREE_CODE (_q30))
9808 : : {
9809 : 3217 : case PLUS_EXPR:
9810 : 3217 : {
9811 : 3217 : tree _q40 = TREE_OPERAND (_q30, 0);
9812 : 3217 : tree _q41 = TREE_OPERAND (_q30, 1);
9813 : 3217 : switch (TREE_CODE (_q40))
9814 : : {
9815 : 3155 : CASE_CONVERT:
9816 : 3155 : {
9817 : 3155 : tree _q50 = TREE_OPERAND (_q40, 0);
9818 : 3155 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
9819 : : {
9820 : 0 : switch (TREE_CODE (_q41))
9821 : : {
9822 : 0 : case INTEGER_CST:
9823 : 0 : {
9824 : 0 : {
9825 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q30, _q40, _p0, _q41 };
9826 : 0 : tree res = generic_simplify_350 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
9827 : 0 : if (res) return res;
9828 : : }
9829 : 0 : break;
9830 : : }
9831 : : default:;
9832 : : }
9833 : : }
9834 : : break;
9835 : : }
9836 : : default:;
9837 : : }
9838 : : break;
9839 : : }
9840 : : default:;
9841 : : }
9842 : : break;
9843 : : }
9844 : 110726 : case PLUS_EXPR:
9845 : 110726 : {
9846 : 110726 : tree _q30 = TREE_OPERAND (_p1, 0);
9847 : 110726 : tree _q31 = TREE_OPERAND (_p1, 1);
9848 : 110726 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
9849 : : {
9850 : 4 : switch (TREE_CODE (_q31))
9851 : : {
9852 : 4 : case INTEGER_CST:
9853 : 4 : {
9854 : 4 : {
9855 : 4 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _p1, _q30, _p0, _q31 };
9856 : 4 : tree res = generic_simplify_345 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
9857 : 4 : if (res) return res;
9858 : : }
9859 : 0 : break;
9860 : : }
9861 : : default:;
9862 : : }
9863 : : }
9864 : : break;
9865 : : }
9866 : 14901761 : default:;
9867 : : }
9868 : 14901761 : switch (TREE_CODE (_p0))
9869 : : {
9870 : 641682 : case MINUS_EXPR:
9871 : 641682 : {
9872 : 641682 : tree _q20 = TREE_OPERAND (_p0, 0);
9873 : 641682 : tree _q21 = TREE_OPERAND (_p0, 1);
9874 : 641682 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
9875 : : {
9876 : 7193 : {
9877 : 7193 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
9878 : 7193 : tree res = generic_simplify_351 (loc, type, _p0, _p1, captures, GT_EXPR);
9879 : 7193 : if (res) return res;
9880 : : }
9881 : : }
9882 : : break;
9883 : : }
9884 : 14894580 : default:;
9885 : : }
9886 : 14894580 : switch (TREE_CODE (_p1))
9887 : : {
9888 : 110722 : case PLUS_EXPR:
9889 : 110722 : {
9890 : 110722 : tree _q30 = TREE_OPERAND (_p1, 0);
9891 : 110722 : tree _q31 = TREE_OPERAND (_p1, 1);
9892 : 110722 : switch (TREE_CODE (_q30))
9893 : : {
9894 : 3 : case MINUS_EXPR:
9895 : 3 : {
9896 : 3 : tree _q40 = TREE_OPERAND (_q30, 0);
9897 : 3 : tree _q41 = TREE_OPERAND (_q30, 1);
9898 : 3 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
9899 : : {
9900 : 0 : if (integer_minus_onep (_q31))
9901 : : {
9902 : 0 : {
9903 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
9904 : 0 : tree res = generic_simplify_363 (loc, type, _p0, _p1, captures, LT_EXPR);
9905 : 0 : if (res) return res;
9906 : : }
9907 : : }
9908 : : }
9909 : : break;
9910 : : }
9911 : : default:;
9912 : : }
9913 : : break;
9914 : : }
9915 : 14894580 : default:;
9916 : : }
9917 : 14894580 : switch (TREE_CODE (_p0))
9918 : : {
9919 : 83 : case REALPART_EXPR:
9920 : 83 : {
9921 : 83 : tree _q20 = TREE_OPERAND (_p0, 0);
9922 : 83 : switch (TREE_CODE (_q20))
9923 : : {
9924 : 0 : case CALL_EXPR:
9925 : 0 : switch (get_call_combined_fn (_q20))
9926 : : {
9927 : 0 : case CFN_SUB_OVERFLOW:
9928 : 0 : if (call_expr_nargs (_q20) == 2)
9929 : : {
9930 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
9931 : 0 : tree _q31 = CALL_EXPR_ARG (_q20, 1);
9932 : 0 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
9933 : : {
9934 : 0 : {
9935 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
9936 : 0 : tree res = generic_simplify_364 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
9937 : 0 : if (res) return res;
9938 : : }
9939 : : }
9940 : : }
9941 : : break;
9942 : : default:;
9943 : : }
9944 : : break;
9945 : : default:;
9946 : : }
9947 : : break;
9948 : : }
9949 : 14894580 : default:;
9950 : : }
9951 : 14894580 : switch (TREE_CODE (_p1))
9952 : : {
9953 : 20 : case REALPART_EXPR:
9954 : 20 : {
9955 : 20 : tree _q30 = TREE_OPERAND (_p1, 0);
9956 : 20 : switch (TREE_CODE (_q30))
9957 : : {
9958 : 0 : case CALL_EXPR:
9959 : 0 : switch (get_call_combined_fn (_q30))
9960 : : {
9961 : 0 : case CFN_ADD_OVERFLOW:
9962 : 0 : if (call_expr_nargs (_q30) == 2)
9963 : : {
9964 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
9965 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
9966 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
9967 : : {
9968 : 0 : {
9969 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _p0, _q41 };
9970 : 0 : tree res = generic_simplify_365 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
9971 : 0 : if (res) return res;
9972 : : }
9973 : : }
9974 : 0 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
9975 : : {
9976 : 0 : {
9977 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _p0, _q40 };
9978 : 0 : tree res = generic_simplify_365 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
9979 : 0 : if (res) return res;
9980 : : }
9981 : : }
9982 : : }
9983 : : break;
9984 : : default:;
9985 : : }
9986 : : break;
9987 : : default:;
9988 : : }
9989 : : break;
9990 : : }
9991 : 1089 : case TRUNC_DIV_EXPR:
9992 : 1089 : {
9993 : 1089 : tree _q30 = TREE_OPERAND (_p1, 0);
9994 : 1089 : tree _q31 = TREE_OPERAND (_p1, 1);
9995 : 1089 : if (integer_all_onesp (_q30))
9996 : : {
9997 : 0 : {
9998 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q31, _p0 };
9999 : 0 : tree res = generic_simplify_366 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
10000 : 0 : if (res) return res;
10001 : : }
10002 : : }
10003 : : break;
10004 : : }
10005 : 14894580 : default:;
10006 : : }
10007 : 14894580 : switch (TREE_CODE (_p0))
10008 : : {
10009 : 127061 : case MULT_EXPR:
10010 : 127061 : {
10011 : 127061 : tree _q20 = TREE_OPERAND (_p0, 0);
10012 : 127061 : tree _q21 = TREE_OPERAND (_p0, 1);
10013 : 127061 : switch (TREE_CODE (_q21))
10014 : : {
10015 : 23775 : case REAL_CST:
10016 : 23775 : {
10017 : 23775 : switch (TREE_CODE (_p1))
10018 : : {
10019 : 58 : case REAL_CST:
10020 : 58 : {
10021 : 58 : {
10022 : 58 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
10023 : 58 : tree res = generic_simplify_356 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
10024 : 58 : if (res) return res;
10025 : : }
10026 : 57 : break;
10027 : : }
10028 : : default:;
10029 : : }
10030 : : break;
10031 : : }
10032 : : default:;
10033 : : }
10034 : : break;
10035 : : }
10036 : 1964149 : case PLUS_EXPR:
10037 : 1964149 : {
10038 : 1964149 : tree _q20 = TREE_OPERAND (_p0, 0);
10039 : 1964149 : tree _q21 = TREE_OPERAND (_p0, 1);
10040 : 1964149 : switch (TREE_CODE (_q21))
10041 : : {
10042 : 1812050 : case INTEGER_CST:
10043 : 1812050 : {
10044 : 1812050 : switch (TREE_CODE (_p1))
10045 : : {
10046 : 1252854 : case INTEGER_CST:
10047 : 1252854 : {
10048 : 1252854 : {
10049 : 1252854 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
10050 : 1252854 : tree res = generic_simplify_357 (loc, type, _p0, _p1, captures, PLUS_EXPR, MINUS_EXPR, GT_EXPR, LT_EXPR);
10051 : 1252854 : if (res) return res;
10052 : : }
10053 : 808797 : break;
10054 : : }
10055 : : default:;
10056 : : }
10057 : : break;
10058 : : }
10059 : : default:;
10060 : : }
10061 : : break;
10062 : : }
10063 : 634501 : case MINUS_EXPR:
10064 : 634501 : {
10065 : 634501 : tree _q20 = TREE_OPERAND (_p0, 0);
10066 : 634501 : tree _q21 = TREE_OPERAND (_p0, 1);
10067 : 634501 : switch (TREE_CODE (_q21))
10068 : : {
10069 : 2220 : case INTEGER_CST:
10070 : 2220 : {
10071 : 2220 : switch (TREE_CODE (_p1))
10072 : : {
10073 : 2072 : case INTEGER_CST:
10074 : 2072 : {
10075 : 2072 : {
10076 : 2072 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
10077 : 2072 : tree res = generic_simplify_357 (loc, type, _p0, _p1, captures, MINUS_EXPR, PLUS_EXPR, GT_EXPR, LT_EXPR);
10078 : 2072 : if (res) return res;
10079 : : }
10080 : 1904 : break;
10081 : : }
10082 : : default:;
10083 : : }
10084 : : break;
10085 : : }
10086 : 634333 : default:;
10087 : : }
10088 : 634333 : switch (TREE_CODE (_q20))
10089 : : {
10090 : 543531 : case INTEGER_CST:
10091 : 543531 : {
10092 : 543531 : switch (TREE_CODE (_p1))
10093 : : {
10094 : 540731 : case INTEGER_CST:
10095 : 540731 : {
10096 : 540731 : {
10097 : 540731 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
10098 : 540731 : tree res = generic_simplify_284 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
10099 : 540731 : if (res) return res;
10100 : : }
10101 : 0 : break;
10102 : : }
10103 : : default:;
10104 : : }
10105 : : break;
10106 : : }
10107 : : default:;
10108 : : }
10109 : : break;
10110 : : }
10111 : 288567 : case CALL_EXPR:
10112 : 288567 : switch (get_call_combined_fn (_p0))
10113 : : {
10114 : 4 : case CFN_BUILT_IN_CTZ:
10115 : 4 : if (call_expr_nargs (_p0) == 1)
10116 : : {
10117 : 4 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10118 : 4 : switch (TREE_CODE (_p1))
10119 : : {
10120 : 4 : case INTEGER_CST:
10121 : 4 : {
10122 : 4 : {
10123 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10124 : 4 : tree res = generic_simplify_358 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR, CFN_BUILT_IN_CTZ);
10125 : 4 : if (res) return res;
10126 : : }
10127 : 0 : break;
10128 : : }
10129 : : default:;
10130 : : }
10131 : : }
10132 : : break;
10133 : 12 : case CFN_BUILT_IN_FFS:
10134 : 12 : if (call_expr_nargs (_p0) == 1)
10135 : : {
10136 : 12 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10137 : 12 : switch (TREE_CODE (_p1))
10138 : : {
10139 : 12 : case INTEGER_CST:
10140 : 12 : {
10141 : 12 : {
10142 : 12 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10143 : 12 : tree res = generic_simplify_369 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, EQ_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_FFS);
10144 : 12 : if (res) return res;
10145 : : }
10146 : 6 : break;
10147 : : }
10148 : : default:;
10149 : : }
10150 : : }
10151 : : break;
10152 : 0 : case CFN_BUILT_IN_FFSIMAX:
10153 : 0 : if (call_expr_nargs (_p0) == 1)
10154 : : {
10155 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10156 : 0 : switch (TREE_CODE (_p1))
10157 : : {
10158 : 0 : case INTEGER_CST:
10159 : 0 : {
10160 : 0 : {
10161 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10162 : 0 : tree res = generic_simplify_369 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, EQ_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_FFSIMAX);
10163 : 0 : if (res) return res;
10164 : : }
10165 : 0 : break;
10166 : : }
10167 : : default:;
10168 : : }
10169 : : }
10170 : : break;
10171 : 75 : case CFN_BUILT_IN_POPCOUNT:
10172 : 75 : if (call_expr_nargs (_p0) == 1)
10173 : : {
10174 : 75 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10175 : 75 : if (integer_zerop (_p1))
10176 : : {
10177 : 36 : {
10178 : 36 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
10179 : 36 : tree res = generic_simplify_289 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, CFN_BUILT_IN_POPCOUNT);
10180 : 36 : if (res) return res;
10181 : : }
10182 : : }
10183 : : }
10184 : : break;
10185 : 2 : case CFN_BUILT_IN_CTZL:
10186 : 2 : if (call_expr_nargs (_p0) == 1)
10187 : : {
10188 : 2 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10189 : 2 : switch (TREE_CODE (_p1))
10190 : : {
10191 : 2 : case INTEGER_CST:
10192 : 2 : {
10193 : 2 : {
10194 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10195 : 2 : tree res = generic_simplify_358 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR, CFN_BUILT_IN_CTZL);
10196 : 2 : if (res) return res;
10197 : : }
10198 : 0 : break;
10199 : : }
10200 : : default:;
10201 : : }
10202 : : }
10203 : : break;
10204 : 8 : case CFN_BUILT_IN_FFSL:
10205 : 8 : if (call_expr_nargs (_p0) == 1)
10206 : : {
10207 : 8 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10208 : 8 : switch (TREE_CODE (_p1))
10209 : : {
10210 : 8 : case INTEGER_CST:
10211 : 8 : {
10212 : 8 : {
10213 : 8 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10214 : 8 : tree res = generic_simplify_369 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, EQ_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_FFSL);
10215 : 8 : if (res) return res;
10216 : : }
10217 : 4 : break;
10218 : : }
10219 : : default:;
10220 : : }
10221 : : }
10222 : : break;
10223 : 3 : case CFN_BUILT_IN_POPCOUNTLL:
10224 : 3 : if (call_expr_nargs (_p0) == 1)
10225 : : {
10226 : 3 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10227 : 3 : if (integer_zerop (_p1))
10228 : : {
10229 : 0 : {
10230 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
10231 : 0 : tree res = generic_simplify_289 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, CFN_BUILT_IN_POPCOUNTLL);
10232 : 0 : if (res) return res;
10233 : : }
10234 : : }
10235 : : }
10236 : : break;
10237 : 0 : case CFN_BUILT_IN_CTZIMAX:
10238 : 0 : if (call_expr_nargs (_p0) == 1)
10239 : : {
10240 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10241 : 0 : switch (TREE_CODE (_p1))
10242 : : {
10243 : 0 : case INTEGER_CST:
10244 : 0 : {
10245 : 0 : {
10246 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10247 : 0 : tree res = generic_simplify_358 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR, CFN_BUILT_IN_CTZIMAX);
10248 : 0 : if (res) return res;
10249 : : }
10250 : 0 : break;
10251 : : }
10252 : : default:;
10253 : : }
10254 : : }
10255 : : break;
10256 : 0 : case CFN_POPCOUNT:
10257 : 0 : if (call_expr_nargs (_p0) == 1)
10258 : : {
10259 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10260 : 0 : if (integer_zerop (_p1))
10261 : : {
10262 : 0 : {
10263 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
10264 : 0 : tree res = generic_simplify_289 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, CFN_POPCOUNT);
10265 : 0 : if (res) return res;
10266 : : }
10267 : : }
10268 : : }
10269 : : break;
10270 : 0 : case CFN_CTZ:
10271 : 0 : if (call_expr_nargs (_p0) == 2)
10272 : : {
10273 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10274 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
10275 : 0 : switch (TREE_CODE (_p1))
10276 : : {
10277 : 0 : case INTEGER_CST:
10278 : 0 : {
10279 : 0 : {
10280 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
10281 : 0 : tree res = generic_simplify_359 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
10282 : 0 : if (res) return res;
10283 : : }
10284 : 0 : break;
10285 : : }
10286 : : default:;
10287 : : }
10288 : : }
10289 : 0 : if (call_expr_nargs (_p0) == 1)
10290 : : {
10291 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10292 : 0 : switch (TREE_CODE (_p1))
10293 : : {
10294 : 0 : case INTEGER_CST:
10295 : 0 : {
10296 : 0 : {
10297 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10298 : 0 : tree res = generic_simplify_358 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR, CFN_CTZ);
10299 : 0 : if (res) return res;
10300 : : }
10301 : 0 : break;
10302 : : }
10303 : : default:;
10304 : : }
10305 : : }
10306 : : break;
10307 : 0 : case CFN_FFS:
10308 : 0 : if (call_expr_nargs (_p0) == 1)
10309 : : {
10310 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10311 : 0 : switch (TREE_CODE (_p1))
10312 : : {
10313 : 0 : case INTEGER_CST:
10314 : 0 : {
10315 : 0 : {
10316 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10317 : 0 : tree res = generic_simplify_369 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, EQ_EXPR, BIT_AND_EXPR, CFN_FFS);
10318 : 0 : if (res) return res;
10319 : : }
10320 : 0 : break;
10321 : : }
10322 : : default:;
10323 : : }
10324 : : }
10325 : : break;
10326 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
10327 : 0 : if (call_expr_nargs (_p0) == 1)
10328 : : {
10329 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10330 : 0 : if (integer_zerop (_p1))
10331 : : {
10332 : 0 : {
10333 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
10334 : 0 : tree res = generic_simplify_289 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
10335 : 0 : if (res) return res;
10336 : : }
10337 : : }
10338 : : }
10339 : : break;
10340 : 3 : case CFN_BUILT_IN_POPCOUNTL:
10341 : 3 : if (call_expr_nargs (_p0) == 1)
10342 : : {
10343 : 3 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10344 : 3 : if (integer_zerop (_p1))
10345 : : {
10346 : 0 : {
10347 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
10348 : 0 : tree res = generic_simplify_289 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, CFN_BUILT_IN_POPCOUNTL);
10349 : 0 : if (res) return res;
10350 : : }
10351 : : }
10352 : : }
10353 : : break;
10354 : 18 : case CFN_BUILT_IN_CTZLL:
10355 : 18 : if (call_expr_nargs (_p0) == 1)
10356 : : {
10357 : 18 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10358 : 18 : switch (TREE_CODE (_p1))
10359 : : {
10360 : 18 : case INTEGER_CST:
10361 : 18 : {
10362 : 18 : {
10363 : 18 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10364 : 18 : tree res = generic_simplify_358 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR, CFN_BUILT_IN_CTZLL);
10365 : 18 : if (res) return res;
10366 : : }
10367 : 16 : break;
10368 : : }
10369 : : default:;
10370 : : }
10371 : : }
10372 : : break;
10373 : 9 : case CFN_BUILT_IN_FFSLL:
10374 : 9 : if (call_expr_nargs (_p0) == 1)
10375 : : {
10376 : 9 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10377 : 9 : switch (TREE_CODE (_p1))
10378 : : {
10379 : 9 : case INTEGER_CST:
10380 : 9 : {
10381 : 9 : {
10382 : 9 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10383 : 9 : tree res = generic_simplify_369 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, EQ_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_FFSLL);
10384 : 9 : if (res) return res;
10385 : : }
10386 : 4 : break;
10387 : : }
10388 : : default:;
10389 : : }
10390 : : }
10391 : : break;
10392 : : default:;
10393 : : }
10394 : : break;
10395 : : default:;
10396 : : }
10397 : : return NULL_TREE;
10398 : : }
10399 : :
10400 : : tree
10401 : 6667196 : 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)
10402 : : {
10403 : 6667196 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
10404 : 6667196 : switch (TREE_CODE (_p0))
10405 : : {
10406 : 35817 : case LSHIFT_EXPR:
10407 : 35817 : {
10408 : 35817 : tree _q20 = TREE_OPERAND (_p0, 0);
10409 : 35817 : tree _q21 = TREE_OPERAND (_p0, 1);
10410 : 35817 : switch (TREE_CODE (_p1))
10411 : : {
10412 : 1 : case LSHIFT_EXPR:
10413 : 1 : {
10414 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
10415 : 1 : tree _q51 = TREE_OPERAND (_p1, 1);
10416 : 1 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10417 : : {
10418 : 1 : {
10419 : 1 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
10420 : 1 : tree res = generic_simplify_65 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10421 : 1 : if (res) return res;
10422 : : }
10423 : : }
10424 : : break;
10425 : : }
10426 : : default:;
10427 : : }
10428 : : break;
10429 : : }
10430 : 73338 : case RSHIFT_EXPR:
10431 : 73338 : {
10432 : 73338 : tree _q20 = TREE_OPERAND (_p0, 0);
10433 : 73338 : tree _q21 = TREE_OPERAND (_p0, 1);
10434 : 73338 : switch (TREE_CODE (_p1))
10435 : : {
10436 : 2 : case RSHIFT_EXPR:
10437 : 2 : {
10438 : 2 : tree _q50 = TREE_OPERAND (_p1, 0);
10439 : 2 : tree _q51 = TREE_OPERAND (_p1, 1);
10440 : 2 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10441 : : {
10442 : 2 : {
10443 : 2 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
10444 : 2 : tree res = generic_simplify_66 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10445 : 2 : if (res) return res;
10446 : : }
10447 : : }
10448 : : break;
10449 : : }
10450 : : default:;
10451 : : }
10452 : : break;
10453 : : }
10454 : 1933884 : CASE_CONVERT:
10455 : 1933884 : {
10456 : 1933884 : tree _q20 = TREE_OPERAND (_p0, 0);
10457 : 1933884 : switch (TREE_CODE (_p1))
10458 : : {
10459 : 803673 : CASE_CONVERT:
10460 : 803673 : {
10461 : 803673 : tree _q40 = TREE_OPERAND (_p1, 0);
10462 : 803673 : {
10463 : 803673 : tree _q40_pops[1];
10464 : 803673 : if (tree_maybe_bit_not (_q40, _q40_pops))
10465 : : {
10466 : 250 : tree _q50 = _q40_pops[0];
10467 : 250 : {
10468 : 250 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q50 };
10469 : 250 : tree res = generic_simplify_403 (loc, type, _p0, _p1, captures);
10470 : 250 : if (res) return res;
10471 : : }
10472 : : }
10473 : : }
10474 : 803673 : break;
10475 : : }
10476 : 1933884 : default:;
10477 : : }
10478 : 1933884 : {
10479 : 1933884 : tree _q20_pops[1];
10480 : 1933884 : if (tree_maybe_bit_not (_q20, _q20_pops))
10481 : : {
10482 : 429 : tree _q30 = _q20_pops[0];
10483 : 429 : switch (TREE_CODE (_p1))
10484 : : {
10485 : 254 : CASE_CONVERT:
10486 : 254 : {
10487 : 254 : tree _q50 = TREE_OPERAND (_p1, 0);
10488 : 254 : {
10489 : 254 : tree captures[2] ATTRIBUTE_UNUSED = { _q50, _q30 };
10490 : 254 : tree res = generic_simplify_403 (loc, type, _p0, _p1, captures);
10491 : 254 : if (res) return res;
10492 : : }
10493 : 254 : break;
10494 : : }
10495 : : default:;
10496 : : }
10497 : : }
10498 : : }
10499 : 1933884 : break;
10500 : : }
10501 : 6667193 : default:;
10502 : : }
10503 : 6667193 : {
10504 : 6667193 : tree _p1_pops[1];
10505 : 6667193 : if (tree_maybe_bit_not (_p1, _p1_pops))
10506 : : {
10507 : 4787860 : tree _q30 = _p1_pops[0];
10508 : 4787860 : {
10509 : 4787860 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
10510 : 4787860 : tree res = generic_simplify_403 (loc, type, _p0, _p1, captures);
10511 : 4787860 : if (res) return res;
10512 : : }
10513 : : }
10514 : : }
10515 : 6667177 : {
10516 : 6667177 : tree _p0_pops[1];
10517 : 6667177 : if (tree_maybe_bit_not (_p0, _p0_pops))
10518 : : {
10519 : 50265 : tree _q20 = _p0_pops[0];
10520 : 50265 : {
10521 : 50265 : tree captures[2] ATTRIBUTE_UNUSED = { _p1, _q20 };
10522 : 50265 : tree res = generic_simplify_403 (loc, type, _p0, _p1, captures);
10523 : 50265 : if (res) return res;
10524 : : }
10525 : : }
10526 : : }
10527 : 6667080 : switch (TREE_CODE (_p1))
10528 : : {
10529 : 20584 : case PLUS_EXPR:
10530 : 20584 : {
10531 : 20584 : tree _q30 = TREE_OPERAND (_p1, 0);
10532 : 20584 : tree _q31 = TREE_OPERAND (_p1, 1);
10533 : 20584 : switch (TREE_CODE (_q30))
10534 : : {
10535 : 163 : case LSHIFT_EXPR:
10536 : 163 : {
10537 : 163 : tree _q40 = TREE_OPERAND (_q30, 0);
10538 : 163 : tree _q41 = TREE_OPERAND (_q30, 1);
10539 : 163 : if (integer_onep (_q40))
10540 : : {
10541 : 163 : if (integer_minus_onep (_q31))
10542 : : {
10543 : 163 : {
10544 : 163 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q41 };
10545 : 163 : if (TYPE_UNSIGNED (type)
10546 : : )
10547 : : {
10548 : 163 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1799;
10549 : 163 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1799;
10550 : 163 : {
10551 : 163 : tree res_op0;
10552 : 163 : res_op0 = captures[0];
10553 : 163 : tree res_op1;
10554 : 163 : {
10555 : 163 : tree _o1[1], _r1;
10556 : 163 : {
10557 : 163 : tree _o2[2], _r2;
10558 : 163 : _o2[0] = build_all_ones_cst (type);
10559 : 163 : _o2[1] = captures[3];
10560 : 163 : _r2 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
10561 : 163 : _o1[0] = _r2;
10562 : : }
10563 : 163 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
10564 : 163 : res_op1 = _r1;
10565 : : }
10566 : 163 : tree _r;
10567 : 163 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
10568 : 163 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1028, __FILE__, __LINE__, true);
10569 : 163 : return _r;
10570 : : }
10571 : 0 : next_after_fail1799:;
10572 : : }
10573 : : }
10574 : : }
10575 : : }
10576 : : break;
10577 : : }
10578 : : default:;
10579 : : }
10580 : : break;
10581 : : }
10582 : 6666917 : default:;
10583 : : }
10584 : 6666917 : switch (TREE_CODE (_p0))
10585 : : {
10586 : 305955 : case PLUS_EXPR:
10587 : 305955 : {
10588 : 305955 : tree _q20 = TREE_OPERAND (_p0, 0);
10589 : 305955 : tree _q21 = TREE_OPERAND (_p0, 1);
10590 : 305955 : switch (TREE_CODE (_q20))
10591 : : {
10592 : 169 : case LSHIFT_EXPR:
10593 : 169 : {
10594 : 169 : tree _q30 = TREE_OPERAND (_q20, 0);
10595 : 169 : tree _q31 = TREE_OPERAND (_q20, 1);
10596 : 169 : if (integer_onep (_q30))
10597 : : {
10598 : 162 : if (integer_minus_onep (_q21))
10599 : : {
10600 : 162 : {
10601 : 162 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _p0, _q20, _q31 };
10602 : 162 : if (TYPE_UNSIGNED (type)
10603 : : )
10604 : : {
10605 : 134 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1800;
10606 : 134 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1800;
10607 : 134 : {
10608 : 134 : tree res_op0;
10609 : 134 : res_op0 = captures[0];
10610 : 134 : tree res_op1;
10611 : 134 : {
10612 : 134 : tree _o1[1], _r1;
10613 : 134 : {
10614 : 134 : tree _o2[2], _r2;
10615 : 134 : _o2[0] = build_all_ones_cst (type);
10616 : 134 : _o2[1] = captures[3];
10617 : 134 : _r2 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
10618 : 134 : _o1[0] = _r2;
10619 : : }
10620 : 134 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
10621 : 134 : res_op1 = _r1;
10622 : : }
10623 : 134 : tree _r;
10624 : 134 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
10625 : 134 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1028, __FILE__, __LINE__, true);
10626 : 134 : return _r;
10627 : : }
10628 : 28 : next_after_fail1800:;
10629 : : }
10630 : : }
10631 : : }
10632 : : }
10633 : : break;
10634 : : }
10635 : : default:;
10636 : : }
10637 : : break;
10638 : : }
10639 : 1755 : case EQ_EXPR:
10640 : 1755 : {
10641 : 1755 : tree _q20 = TREE_OPERAND (_p0, 0);
10642 : 1755 : tree _q21 = TREE_OPERAND (_p0, 1);
10643 : 1755 : if (integer_zerop (_q21))
10644 : : {
10645 : 694 : switch (TREE_CODE (_p1))
10646 : : {
10647 : 53 : case EQ_EXPR:
10648 : 53 : {
10649 : 53 : tree _q50 = TREE_OPERAND (_p1, 0);
10650 : 53 : tree _q51 = TREE_OPERAND (_p1, 1);
10651 : 53 : if (integer_zerop (_q51))
10652 : : {
10653 : 22 : {
10654 : 22 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
10655 : 22 : tree res = generic_simplify_67 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, EQ_EXPR);
10656 : 22 : if (res) return res;
10657 : : }
10658 : : }
10659 : : break;
10660 : : }
10661 : : default:;
10662 : : }
10663 : : }
10664 : 1733 : if (integer_all_onesp (_q21))
10665 : : {
10666 : 0 : switch (TREE_CODE (_p1))
10667 : : {
10668 : 0 : case EQ_EXPR:
10669 : 0 : {
10670 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
10671 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
10672 : 0 : if (integer_all_onesp (_q51))
10673 : : {
10674 : 0 : {
10675 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
10676 : 0 : tree res = generic_simplify_68 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, EQ_EXPR);
10677 : 0 : if (res) return res;
10678 : : }
10679 : : }
10680 : : break;
10681 : : }
10682 : : default:;
10683 : : }
10684 : : }
10685 : 1733 : switch (TREE_CODE (_p1))
10686 : : {
10687 : 8 : case BIT_IOR_EXPR:
10688 : 8 : {
10689 : 8 : tree _q50 = TREE_OPERAND (_p1, 0);
10690 : 8 : tree _q51 = TREE_OPERAND (_p1, 1);
10691 : 8 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
10692 : : {
10693 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10694 : : {
10695 : 0 : {
10696 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10697 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures);
10698 : 0 : if (res) return res;
10699 : : }
10700 : : }
10701 : : }
10702 : 8 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
10703 : : {
10704 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
10705 : : {
10706 : 0 : {
10707 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
10708 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures);
10709 : 0 : if (res) return res;
10710 : : }
10711 : : }
10712 : : }
10713 : : break;
10714 : : }
10715 : 1733 : default:;
10716 : : }
10717 : 1733 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
10718 : : {
10719 : 12 : {
10720 : 12 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10721 : 12 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures);
10722 : 12 : if (res) return res;
10723 : : }
10724 : : }
10725 : 1733 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
10726 : : {
10727 : 8 : {
10728 : 8 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
10729 : 8 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures);
10730 : 8 : if (res) return res;
10731 : : }
10732 : : }
10733 : : break;
10734 : : }
10735 : 1596 : case BIT_IOR_EXPR:
10736 : 1596 : {
10737 : 1596 : tree _q20 = TREE_OPERAND (_p0, 0);
10738 : 1596 : tree _q21 = TREE_OPERAND (_p0, 1);
10739 : 1596 : switch (TREE_CODE (_p1))
10740 : : {
10741 : 169 : case BIT_NOT_EXPR:
10742 : 169 : {
10743 : 169 : tree _q50 = TREE_OPERAND (_p1, 0);
10744 : 169 : switch (TREE_CODE (_q50))
10745 : : {
10746 : 6 : case BIT_XOR_EXPR:
10747 : 6 : {
10748 : 6 : tree _q60 = TREE_OPERAND (_q50, 0);
10749 : 6 : tree _q61 = TREE_OPERAND (_q50, 1);
10750 : 6 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
10751 : : {
10752 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
10753 : : {
10754 : 0 : {
10755 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10756 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures);
10757 : 0 : if (res) return res;
10758 : : }
10759 : : }
10760 : : }
10761 : 6 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
10762 : : {
10763 : 0 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
10764 : : {
10765 : 0 : {
10766 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10767 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures);
10768 : 0 : if (res) return res;
10769 : : }
10770 : : }
10771 : : }
10772 : : break;
10773 : : }
10774 : : default:;
10775 : : }
10776 : : break;
10777 : : }
10778 : 24 : case EQ_EXPR:
10779 : 24 : {
10780 : 24 : tree _q50 = TREE_OPERAND (_p1, 0);
10781 : 24 : tree _q51 = TREE_OPERAND (_p1, 1);
10782 : 24 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
10783 : : {
10784 : 8 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10785 : : {
10786 : 8 : {
10787 : 8 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10788 : 8 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures);
10789 : 8 : if (res) return res;
10790 : : }
10791 : : }
10792 : : }
10793 : 24 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
10794 : : {
10795 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
10796 : : {
10797 : 0 : {
10798 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10799 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures);
10800 : 0 : if (res) return res;
10801 : : }
10802 : : }
10803 : : }
10804 : : break;
10805 : : }
10806 : 1596 : default:;
10807 : : }
10808 : 1596 : {
10809 : 1596 : tree _p1_pops[1];
10810 : 1596 : if (tree_nop_convert (_p1, _p1_pops))
10811 : : {
10812 : 139 : tree _q50 = _p1_pops[0];
10813 : 139 : switch (TREE_CODE (_q50))
10814 : : {
10815 : 0 : case EQ_EXPR:
10816 : 0 : {
10817 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
10818 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
10819 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
10820 : : {
10821 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
10822 : : {
10823 : 0 : {
10824 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10825 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures);
10826 : 0 : if (res) return res;
10827 : : }
10828 : : }
10829 : : }
10830 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
10831 : : {
10832 : 0 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
10833 : : {
10834 : 0 : {
10835 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10836 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures);
10837 : 0 : if (res) return res;
10838 : : }
10839 : : }
10840 : : }
10841 : : break;
10842 : : }
10843 : : default:;
10844 : : }
10845 : : }
10846 : : }
10847 : 1596 : break;
10848 : : }
10849 : 46560 : case BIT_NOT_EXPR:
10850 : 46560 : {
10851 : 46560 : tree _q20 = TREE_OPERAND (_p0, 0);
10852 : 46560 : switch (TREE_CODE (_q20))
10853 : : {
10854 : 140 : case BIT_XOR_EXPR:
10855 : 140 : {
10856 : 140 : tree _q30 = TREE_OPERAND (_q20, 0);
10857 : 140 : tree _q31 = TREE_OPERAND (_q20, 1);
10858 : 140 : switch (TREE_CODE (_p1))
10859 : : {
10860 : 48 : case BIT_IOR_EXPR:
10861 : 48 : {
10862 : 48 : tree _q60 = TREE_OPERAND (_p1, 0);
10863 : 48 : tree _q61 = TREE_OPERAND (_p1, 1);
10864 : 48 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
10865 : : {
10866 : 6 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
10867 : : {
10868 : 0 : {
10869 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
10870 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures);
10871 : 0 : if (res) return res;
10872 : : }
10873 : : }
10874 : : }
10875 : 48 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q31, 0) && types_match (_q60, _q31)))
10876 : : {
10877 : 3 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
10878 : : {
10879 : 0 : {
10880 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q31, _q30 };
10881 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures);
10882 : 0 : if (res) return res;
10883 : : }
10884 : : }
10885 : : }
10886 : : break;
10887 : : }
10888 : 140 : default:;
10889 : : }
10890 : 140 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
10891 : : {
10892 : 1 : {
10893 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
10894 : 1 : tree res = generic_simplify_407 (loc, type, _p0, _p1, captures);
10895 : 1 : if (res) return res;
10896 : : }
10897 : : }
10898 : 139 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
10899 : : {
10900 : 0 : {
10901 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q31, _q30 };
10902 : 0 : tree res = generic_simplify_407 (loc, type, _p0, _p1, captures);
10903 : 0 : if (res) return res;
10904 : : }
10905 : : }
10906 : : break;
10907 : : }
10908 : : default:;
10909 : : }
10910 : : break;
10911 : : }
10912 : 6666760 : default:;
10913 : : }
10914 : 6666760 : {
10915 : 6666760 : tree _p0_pops[1];
10916 : 6666760 : if (tree_nop_convert (_p0, _p0_pops))
10917 : : {
10918 : 1310378 : tree _q20 = _p0_pops[0];
10919 : 1310378 : switch (TREE_CODE (_q20))
10920 : : {
10921 : 0 : case EQ_EXPR:
10922 : 0 : {
10923 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
10924 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
10925 : 0 : switch (TREE_CODE (_p1))
10926 : : {
10927 : 0 : case BIT_IOR_EXPR:
10928 : 0 : {
10929 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
10930 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
10931 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
10932 : : {
10933 : 0 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
10934 : : {
10935 : 0 : {
10936 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
10937 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures);
10938 : 0 : if (res) return res;
10939 : : }
10940 : : }
10941 : : }
10942 : 0 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q31, 0) && types_match (_q60, _q31)))
10943 : : {
10944 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
10945 : : {
10946 : 0 : {
10947 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q31, _q30 };
10948 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures);
10949 : 0 : if (res) return res;
10950 : : }
10951 : : }
10952 : : }
10953 : : break;
10954 : : }
10955 : 0 : default:;
10956 : : }
10957 : 0 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
10958 : : {
10959 : 0 : {
10960 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
10961 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures);
10962 : 0 : if (res) return res;
10963 : : }
10964 : : }
10965 : 0 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
10966 : : {
10967 : 0 : {
10968 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q31, _q30 };
10969 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures);
10970 : 0 : if (res) return res;
10971 : : }
10972 : : }
10973 : : break;
10974 : : }
10975 : : default:;
10976 : : }
10977 : : }
10978 : : }
10979 : 6666760 : switch (TREE_CODE (_p1))
10980 : : {
10981 : 33843 : case BIT_NOT_EXPR:
10982 : 33843 : {
10983 : 33843 : tree _q30 = TREE_OPERAND (_p1, 0);
10984 : 33843 : switch (TREE_CODE (_q30))
10985 : : {
10986 : 6 : case BIT_XOR_EXPR:
10987 : 6 : {
10988 : 6 : tree _q40 = TREE_OPERAND (_q30, 0);
10989 : 6 : tree _q41 = TREE_OPERAND (_q30, 1);
10990 : 6 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
10991 : : {
10992 : 0 : {
10993 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
10994 : 0 : tree res = generic_simplify_407 (loc, type, _p0, _p1, captures);
10995 : 0 : if (res) return res;
10996 : : }
10997 : : }
10998 : 6 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
10999 : : {
11000 : 0 : {
11001 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q40 };
11002 : 0 : tree res = generic_simplify_407 (loc, type, _p0, _p1, captures);
11003 : 0 : if (res) return res;
11004 : : }
11005 : : }
11006 : : break;
11007 : : }
11008 : : default:;
11009 : : }
11010 : : break;
11011 : : }
11012 : 6666760 : default:;
11013 : : }
11014 : 6666760 : switch (TREE_CODE (_p0))
11015 : : {
11016 : 305821 : case PLUS_EXPR:
11017 : 305821 : {
11018 : 305821 : tree _q20 = TREE_OPERAND (_p0, 0);
11019 : 305821 : tree _q21 = TREE_OPERAND (_p0, 1);
11020 : 305821 : if (integer_minus_onep (_q21))
11021 : : {
11022 : 117816 : switch (TREE_CODE (_p1))
11023 : : {
11024 : 11143 : case NEGATE_EXPR:
11025 : 11143 : {
11026 : 11143 : tree _q50 = TREE_OPERAND (_p1, 0);
11027 : 11143 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
11028 : : {
11029 : 9 : {
11030 : 9 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
11031 : 9 : tree res = generic_simplify_75 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
11032 : 9 : if (res) return res;
11033 : : }
11034 : : }
11035 : : break;
11036 : : }
11037 : : default:;
11038 : : }
11039 : : }
11040 : : break;
11041 : : }
11042 : 46802 : case NEGATE_EXPR:
11043 : 46802 : {
11044 : 46802 : tree _q20 = TREE_OPERAND (_p0, 0);
11045 : 46802 : switch (TREE_CODE (_p1))
11046 : : {
11047 : 26 : case PLUS_EXPR:
11048 : 26 : {
11049 : 26 : tree _q40 = TREE_OPERAND (_p1, 0);
11050 : 26 : tree _q41 = TREE_OPERAND (_p1, 1);
11051 : 26 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
11052 : : {
11053 : 0 : if (integer_minus_onep (_q41))
11054 : : {
11055 : 0 : {
11056 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
11057 : 0 : tree res = generic_simplify_76 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
11058 : 0 : if (res) return res;
11059 : : }
11060 : : }
11061 : : }
11062 : : break;
11063 : : }
11064 : 0 : case MINUS_EXPR:
11065 : 0 : {
11066 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
11067 : 0 : tree _q41 = TREE_OPERAND (_p1, 1);
11068 : 0 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
11069 : : {
11070 : 0 : if (integer_onep (_q41))
11071 : : {
11072 : 0 : {
11073 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
11074 : 0 : tree res = generic_simplify_77 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
11075 : 0 : if (res) return res;
11076 : : }
11077 : : }
11078 : : }
11079 : : break;
11080 : : }
11081 : : default:;
11082 : : }
11083 : : break;
11084 : : }
11085 : 728386 : case MINUS_EXPR:
11086 : 728386 : {
11087 : 728386 : tree _q20 = TREE_OPERAND (_p0, 0);
11088 : 728386 : tree _q21 = TREE_OPERAND (_p0, 1);
11089 : 728386 : if (integer_onep (_q21))
11090 : : {
11091 : 1984 : switch (TREE_CODE (_p1))
11092 : : {
11093 : 0 : case NEGATE_EXPR:
11094 : 0 : {
11095 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
11096 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
11097 : : {
11098 : 0 : {
11099 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
11100 : 0 : tree res = generic_simplify_78 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
11101 : 0 : if (res) return res;
11102 : : }
11103 : : }
11104 : : break;
11105 : : }
11106 : : default:;
11107 : : }
11108 : : }
11109 : : break;
11110 : : }
11111 : 6666751 : default:;
11112 : : }
11113 : 6666751 : switch (TREE_CODE (_p1))
11114 : : {
11115 : 1850 : case EQ_EXPR:
11116 : 1850 : {
11117 : 1850 : tree _q30 = TREE_OPERAND (_p1, 0);
11118 : 1850 : tree _q31 = TREE_OPERAND (_p1, 1);
11119 : 1850 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
11120 : : {
11121 : 1 : {
11122 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
11123 : 1 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures);
11124 : 1 : if (res) return res;
11125 : : }
11126 : : }
11127 : 1850 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
11128 : : {
11129 : 0 : {
11130 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
11131 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures);
11132 : 0 : if (res) return res;
11133 : : }
11134 : : }
11135 : : break;
11136 : : }
11137 : 257 : case BIT_XOR_EXPR:
11138 : 257 : {
11139 : 257 : tree _q30 = TREE_OPERAND (_p1, 0);
11140 : 257 : tree _q31 = TREE_OPERAND (_p1, 1);
11141 : 257 : {
11142 : 257 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q31 };
11143 : 257 : tree res = generic_simplify_408 (loc, type, _p0, _p1, captures);
11144 : 257 : if (res) return res;
11145 : : }
11146 : 256 : {
11147 : 256 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q31, _q30 };
11148 : 256 : tree res = generic_simplify_408 (loc, type, _p0, _p1, captures);
11149 : 256 : if (res) return res;
11150 : : }
11151 : 256 : break;
11152 : : }
11153 : 6666750 : default:;
11154 : : }
11155 : 6666750 : {
11156 : 6666750 : tree _p1_pops[1];
11157 : 6666750 : if (tree_nop_convert (_p1, _p1_pops))
11158 : : {
11159 : 921355 : tree _q30 = _p1_pops[0];
11160 : 921355 : switch (TREE_CODE (_q30))
11161 : : {
11162 : 0 : case EQ_EXPR:
11163 : 0 : {
11164 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
11165 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
11166 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
11167 : : {
11168 : 0 : {
11169 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
11170 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures);
11171 : 0 : if (res) return res;
11172 : : }
11173 : : }
11174 : 0 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
11175 : : {
11176 : 0 : {
11177 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q40 };
11178 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures);
11179 : 0 : if (res) return res;
11180 : : }
11181 : : }
11182 : : break;
11183 : : }
11184 : : default:;
11185 : : }
11186 : : }
11187 : : }
11188 : 6666750 : switch (TREE_CODE (_p0))
11189 : : {
11190 : 20831 : case BIT_XOR_EXPR:
11191 : 20831 : {
11192 : 20831 : tree _q20 = TREE_OPERAND (_p0, 0);
11193 : 20831 : tree _q21 = TREE_OPERAND (_p0, 1);
11194 : 20831 : {
11195 : 20831 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q21 };
11196 : 20831 : tree res = generic_simplify_408 (loc, type, _p0, _p1, captures);
11197 : 20831 : if (res) return res;
11198 : : }
11199 : 20831 : {
11200 : 20831 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q21, _q20 };
11201 : 20831 : tree res = generic_simplify_408 (loc, type, _p0, _p1, captures);
11202 : 20831 : if (res) return res;
11203 : : }
11204 : 20831 : switch (TREE_CODE (_p1))
11205 : : {
11206 : 152 : case BIT_XOR_EXPR:
11207 : 152 : {
11208 : 152 : tree _q50 = TREE_OPERAND (_p1, 0);
11209 : 152 : tree _q51 = TREE_OPERAND (_p1, 1);
11210 : 152 : switch (TREE_CODE (_q50))
11211 : : {
11212 : 3 : case BIT_XOR_EXPR:
11213 : 3 : {
11214 : 3 : tree _q60 = TREE_OPERAND (_q50, 0);
11215 : 3 : tree _q61 = TREE_OPERAND (_q50, 1);
11216 : 3 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
11217 : : {
11218 : 2 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
11219 : : {
11220 : 1 : {
11221 : 1 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q61 };
11222 : 1 : tree res = generic_simplify_409 (loc, type, _p0, _p1, captures);
11223 : 1 : if (res) return res;
11224 : : }
11225 : : }
11226 : : }
11227 : 2 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
11228 : : {
11229 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
11230 : : {
11231 : 0 : {
11232 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q60 };
11233 : 0 : tree res = generic_simplify_409 (loc, type, _p0, _p1, captures);
11234 : 0 : if (res) return res;
11235 : : }
11236 : : }
11237 : : }
11238 : 2 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
11239 : : {
11240 : 1 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
11241 : : {
11242 : 1 : {
11243 : 1 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q61 };
11244 : 1 : tree res = generic_simplify_409 (loc, type, _p0, _p1, captures);
11245 : 1 : if (res) return res;
11246 : : }
11247 : : }
11248 : : }
11249 : 1 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
11250 : : {
11251 : 1 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
11252 : : {
11253 : 0 : {
11254 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q60 };
11255 : 0 : tree res = generic_simplify_409 (loc, type, _p0, _p1, captures);
11256 : 0 : if (res) return res;
11257 : : }
11258 : : }
11259 : : }
11260 : : break;
11261 : : }
11262 : 150 : default:;
11263 : : }
11264 : 150 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
11265 : : {
11266 : 47 : switch (TREE_CODE (_q51))
11267 : : {
11268 : 0 : case BIT_XOR_EXPR:
11269 : 0 : {
11270 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
11271 : 0 : tree _q71 = TREE_OPERAND (_q51, 1);
11272 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
11273 : : {
11274 : 0 : {
11275 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q71 };
11276 : 0 : tree res = generic_simplify_409 (loc, type, _p0, _p1, captures);
11277 : 0 : if (res) return res;
11278 : : }
11279 : : }
11280 : 0 : if ((_q71 == _q21 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q21, 0) && types_match (_q71, _q21)))
11281 : : {
11282 : 0 : {
11283 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q70 };
11284 : 0 : tree res = generic_simplify_409 (loc, type, _p0, _p1, captures);
11285 : 0 : if (res) return res;
11286 : : }
11287 : : }
11288 : : break;
11289 : : }
11290 : : default:;
11291 : : }
11292 : : }
11293 : 150 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
11294 : : {
11295 : 0 : switch (TREE_CODE (_q51))
11296 : : {
11297 : 0 : case BIT_XOR_EXPR:
11298 : 0 : {
11299 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
11300 : 0 : tree _q71 = TREE_OPERAND (_q51, 1);
11301 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
11302 : : {
11303 : 0 : {
11304 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q71 };
11305 : 0 : tree res = generic_simplify_409 (loc, type, _p0, _p1, captures);
11306 : 0 : if (res) return res;
11307 : : }
11308 : : }
11309 : 0 : if ((_q71 == _q20 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q20, 0) && types_match (_q71, _q20)))
11310 : : {
11311 : 0 : {
11312 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q70 };
11313 : 0 : tree res = generic_simplify_409 (loc, type, _p0, _p1, captures);
11314 : 0 : if (res) return res;
11315 : : }
11316 : : }
11317 : : break;
11318 : : }
11319 : : default:;
11320 : : }
11321 : : }
11322 : : break;
11323 : : }
11324 : 20829 : default:;
11325 : : }
11326 : 20829 : switch (TREE_CODE (_q20))
11327 : : {
11328 : 11 : case BIT_XOR_EXPR:
11329 : 11 : {
11330 : 11 : tree _q30 = TREE_OPERAND (_q20, 0);
11331 : 11 : tree _q31 = TREE_OPERAND (_q20, 1);
11332 : 11 : switch (TREE_CODE (_p1))
11333 : : {
11334 : 0 : case BIT_XOR_EXPR:
11335 : 0 : {
11336 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
11337 : 0 : tree _q71 = TREE_OPERAND (_p1, 1);
11338 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
11339 : : {
11340 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
11341 : : {
11342 : 0 : {
11343 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q30, _p0, _q20, _q31 };
11344 : 0 : tree res = generic_simplify_410 (loc, type, _p0, _p1, captures);
11345 : 0 : if (res) return res;
11346 : : }
11347 : : }
11348 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
11349 : : {
11350 : 0 : {
11351 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q31, _p0, _q20, _q30 };
11352 : 0 : tree res = generic_simplify_410 (loc, type, _p0, _p1, captures);
11353 : 0 : if (res) return res;
11354 : : }
11355 : : }
11356 : : }
11357 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
11358 : : {
11359 : 0 : if ((_q71 == _q21 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q21, 0) && types_match (_q71, _q21)))
11360 : : {
11361 : 0 : {
11362 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q30, _p0, _q20, _q31 };
11363 : 0 : tree res = generic_simplify_410 (loc, type, _p0, _p1, captures);
11364 : 0 : if (res) return res;
11365 : : }
11366 : : }
11367 : : }
11368 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
11369 : : {
11370 : 0 : if ((_q71 == _q21 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q21, 0) && types_match (_q71, _q21)))
11371 : : {
11372 : 0 : {
11373 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q31, _p0, _q20, _q30 };
11374 : 0 : tree res = generic_simplify_410 (loc, type, _p0, _p1, captures);
11375 : 0 : if (res) return res;
11376 : : }
11377 : : }
11378 : : }
11379 : : break;
11380 : : }
11381 : : default:;
11382 : : }
11383 : : break;
11384 : : }
11385 : 20829 : default:;
11386 : : }
11387 : 20829 : switch (TREE_CODE (_q21))
11388 : : {
11389 : 0 : case BIT_XOR_EXPR:
11390 : 0 : {
11391 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
11392 : 0 : tree _q41 = TREE_OPERAND (_q21, 1);
11393 : 0 : switch (TREE_CODE (_p1))
11394 : : {
11395 : 0 : case BIT_XOR_EXPR:
11396 : 0 : {
11397 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
11398 : 0 : tree _q71 = TREE_OPERAND (_p1, 1);
11399 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
11400 : : {
11401 : 0 : if ((_q71 == _q40 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q40, 0) && types_match (_q71, _q40)))
11402 : : {
11403 : 0 : {
11404 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q40, _p0, _q21, _q41 };
11405 : 0 : tree res = generic_simplify_410 (loc, type, _p0, _p1, captures);
11406 : 0 : if (res) return res;
11407 : : }
11408 : : }
11409 : 0 : if ((_q71 == _q41 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q41, 0) && types_match (_q71, _q41)))
11410 : : {
11411 : 0 : {
11412 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q41, _p0, _q21, _q40 };
11413 : 0 : tree res = generic_simplify_410 (loc, type, _p0, _p1, captures);
11414 : 0 : if (res) return res;
11415 : : }
11416 : : }
11417 : : }
11418 : 0 : if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
11419 : : {
11420 : 0 : if ((_q71 == _q20 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q20, 0) && types_match (_q71, _q20)))
11421 : : {
11422 : 0 : {
11423 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q40, _p0, _q21, _q41 };
11424 : 0 : tree res = generic_simplify_410 (loc, type, _p0, _p1, captures);
11425 : 0 : if (res) return res;
11426 : : }
11427 : : }
11428 : : }
11429 : 0 : if ((_q70 == _q41 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q41, 0) && types_match (_q70, _q41)))
11430 : : {
11431 : 0 : if ((_q71 == _q20 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q20, 0) && types_match (_q71, _q20)))
11432 : : {
11433 : 0 : {
11434 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q41, _p0, _q21, _q40 };
11435 : 0 : tree res = generic_simplify_410 (loc, type, _p0, _p1, captures);
11436 : 0 : if (res) return res;
11437 : : }
11438 : : }
11439 : : }
11440 : : break;
11441 : : }
11442 : : default:;
11443 : : }
11444 : : break;
11445 : : }
11446 : : default:;
11447 : : }
11448 : : break;
11449 : : }
11450 : 46558 : case BIT_NOT_EXPR:
11451 : 46558 : {
11452 : 46558 : tree _q20 = TREE_OPERAND (_p0, 0);
11453 : 46558 : switch (TREE_CODE (_q20))
11454 : : {
11455 : 195 : case SSA_NAME:
11456 : 195 : {
11457 : 195 : switch (TREE_CODE (_p1))
11458 : : {
11459 : 195 : case INTEGER_CST:
11460 : 195 : {
11461 : 195 : {
11462 : 195 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
11463 : 390 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
11464 : 585 : && wi::bit_and_not (get_nonzero_bits (captures[0]), wi::to_wide (captures[1])) == 0
11465 : : )
11466 : : {
11467 : 15 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1801;
11468 : 15 : {
11469 : 15 : tree res_op0;
11470 : 15 : res_op0 = captures[0];
11471 : 15 : tree res_op1;
11472 : 15 : res_op1 = captures[1];
11473 : 15 : tree _r;
11474 : 15 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
11475 : 15 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1029, __FILE__, __LINE__, true);
11476 : 15 : return _r;
11477 : : }
11478 : 0 : next_after_fail1801:;
11479 : : }
11480 : : }
11481 : 180 : break;
11482 : : }
11483 : : default:;
11484 : : }
11485 : : break;
11486 : : }
11487 : : default:;
11488 : : }
11489 : : break;
11490 : : }
11491 : 305812 : case PLUS_EXPR:
11492 : 305812 : {
11493 : 305812 : tree _q20 = TREE_OPERAND (_p0, 0);
11494 : 305812 : tree _q21 = TREE_OPERAND (_p0, 1);
11495 : 305812 : switch (TREE_CODE (_q20))
11496 : : {
11497 : 22 : case BIT_AND_EXPR:
11498 : 22 : {
11499 : 22 : tree _q30 = TREE_OPERAND (_q20, 0);
11500 : 22 : tree _q31 = TREE_OPERAND (_q20, 1);
11501 : 22 : switch (TREE_CODE (_q31))
11502 : : {
11503 : 18 : case INTEGER_CST:
11504 : 18 : {
11505 : 18 : switch (TREE_CODE (_p1))
11506 : : {
11507 : 18 : case INTEGER_CST:
11508 : 18 : {
11509 : 18 : {
11510 : 18 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
11511 : 18 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, PLUS_EXPR);
11512 : 18 : if (res) return res;
11513 : : }
11514 : 12 : break;
11515 : : }
11516 : : default:;
11517 : : }
11518 : : break;
11519 : : }
11520 : : default:;
11521 : : }
11522 : : break;
11523 : : }
11524 : 64 : case BIT_IOR_EXPR:
11525 : 64 : {
11526 : 64 : tree _q30 = TREE_OPERAND (_q20, 0);
11527 : 64 : tree _q31 = TREE_OPERAND (_q20, 1);
11528 : 64 : switch (TREE_CODE (_q31))
11529 : : {
11530 : 52 : case INTEGER_CST:
11531 : 52 : {
11532 : 52 : switch (TREE_CODE (_p1))
11533 : : {
11534 : 52 : case INTEGER_CST:
11535 : 52 : {
11536 : 52 : {
11537 : 52 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
11538 : 52 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, PLUS_EXPR);
11539 : 52 : if (res) return res;
11540 : : }
11541 : 48 : break;
11542 : : }
11543 : : default:;
11544 : : }
11545 : : break;
11546 : : }
11547 : : default:;
11548 : : }
11549 : : break;
11550 : : }
11551 : 24 : case BIT_XOR_EXPR:
11552 : 24 : {
11553 : 24 : tree _q30 = TREE_OPERAND (_q20, 0);
11554 : 24 : tree _q31 = TREE_OPERAND (_q20, 1);
11555 : 24 : switch (TREE_CODE (_q31))
11556 : : {
11557 : 4 : case INTEGER_CST:
11558 : 4 : {
11559 : 4 : switch (TREE_CODE (_p1))
11560 : : {
11561 : 4 : case INTEGER_CST:
11562 : 4 : {
11563 : 4 : {
11564 : 4 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
11565 : 4 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, PLUS_EXPR);
11566 : 4 : if (res) return res;
11567 : : }
11568 : 0 : break;
11569 : : }
11570 : : default:;
11571 : : }
11572 : : break;
11573 : : }
11574 : : default:;
11575 : : }
11576 : : break;
11577 : : }
11578 : 305798 : default:;
11579 : : }
11580 : 305798 : switch (TREE_CODE (_q21))
11581 : : {
11582 : 0 : case BIT_AND_EXPR:
11583 : 0 : {
11584 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
11585 : 0 : tree _q41 = TREE_OPERAND (_q21, 1);
11586 : 0 : switch (TREE_CODE (_q41))
11587 : : {
11588 : 0 : case INTEGER_CST:
11589 : 0 : {
11590 : 0 : switch (TREE_CODE (_p1))
11591 : : {
11592 : 0 : case INTEGER_CST:
11593 : 0 : {
11594 : 0 : {
11595 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q41, _p1 };
11596 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, PLUS_EXPR);
11597 : 0 : if (res) return res;
11598 : : }
11599 : 0 : break;
11600 : : }
11601 : : default:;
11602 : : }
11603 : : break;
11604 : : }
11605 : : default:;
11606 : : }
11607 : : break;
11608 : : }
11609 : 0 : case BIT_IOR_EXPR:
11610 : 0 : {
11611 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
11612 : 0 : tree _q41 = TREE_OPERAND (_q21, 1);
11613 : 0 : switch (TREE_CODE (_q41))
11614 : : {
11615 : 0 : case INTEGER_CST:
11616 : 0 : {
11617 : 0 : switch (TREE_CODE (_p1))
11618 : : {
11619 : 0 : case INTEGER_CST:
11620 : 0 : {
11621 : 0 : {
11622 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q41, _p1 };
11623 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, PLUS_EXPR);
11624 : 0 : if (res) return res;
11625 : : }
11626 : 0 : break;
11627 : : }
11628 : : default:;
11629 : : }
11630 : : break;
11631 : : }
11632 : : default:;
11633 : : }
11634 : : break;
11635 : : }
11636 : 0 : case BIT_XOR_EXPR:
11637 : 0 : {
11638 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
11639 : 0 : tree _q41 = TREE_OPERAND (_q21, 1);
11640 : 0 : switch (TREE_CODE (_q41))
11641 : : {
11642 : 0 : case INTEGER_CST:
11643 : 0 : {
11644 : 0 : switch (TREE_CODE (_p1))
11645 : : {
11646 : 0 : case INTEGER_CST:
11647 : 0 : {
11648 : 0 : {
11649 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q41, _p1 };
11650 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, PLUS_EXPR);
11651 : 0 : if (res) return res;
11652 : : }
11653 : 0 : break;
11654 : : }
11655 : : default:;
11656 : : }
11657 : : break;
11658 : : }
11659 : : default:;
11660 : : }
11661 : : break;
11662 : : }
11663 : 305798 : default:;
11664 : : }
11665 : 305798 : switch (TREE_CODE (_p1))
11666 : : {
11667 : 220391 : case INTEGER_CST:
11668 : 220391 : {
11669 : 220391 : {
11670 : 220391 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
11671 : 220391 : tree res = generic_simplify_413 (loc, type, _p0, _p1, captures, PLUS_EXPR);
11672 : 220391 : if (res) return res;
11673 : : }
11674 : 89614 : break;
11675 : : }
11676 : : default:;
11677 : : }
11678 : : break;
11679 : : }
11680 : 728386 : case MINUS_EXPR:
11681 : 728386 : {
11682 : 728386 : tree _q20 = TREE_OPERAND (_p0, 0);
11683 : 728386 : tree _q21 = TREE_OPERAND (_p0, 1);
11684 : 728386 : switch (TREE_CODE (_q20))
11685 : : {
11686 : 4 : case BIT_AND_EXPR:
11687 : 4 : {
11688 : 4 : tree _q30 = TREE_OPERAND (_q20, 0);
11689 : 4 : tree _q31 = TREE_OPERAND (_q20, 1);
11690 : 4 : switch (TREE_CODE (_q31))
11691 : : {
11692 : 2 : case INTEGER_CST:
11693 : 2 : {
11694 : 2 : switch (TREE_CODE (_p1))
11695 : : {
11696 : 2 : case INTEGER_CST:
11697 : 2 : {
11698 : 2 : {
11699 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
11700 : 2 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, MINUS_EXPR);
11701 : 2 : if (res) return res;
11702 : : }
11703 : 0 : break;
11704 : : }
11705 : : default:;
11706 : : }
11707 : : break;
11708 : : }
11709 : : default:;
11710 : : }
11711 : : break;
11712 : : }
11713 : 4 : case BIT_IOR_EXPR:
11714 : 4 : {
11715 : 4 : tree _q30 = TREE_OPERAND (_q20, 0);
11716 : 4 : tree _q31 = TREE_OPERAND (_q20, 1);
11717 : 4 : switch (TREE_CODE (_q31))
11718 : : {
11719 : 2 : case INTEGER_CST:
11720 : 2 : {
11721 : 2 : switch (TREE_CODE (_p1))
11722 : : {
11723 : 2 : case INTEGER_CST:
11724 : 2 : {
11725 : 2 : {
11726 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
11727 : 2 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, MINUS_EXPR);
11728 : 2 : if (res) return res;
11729 : : }
11730 : 0 : break;
11731 : : }
11732 : : default:;
11733 : : }
11734 : : break;
11735 : : }
11736 : : default:;
11737 : : }
11738 : : break;
11739 : : }
11740 : 4 : case BIT_XOR_EXPR:
11741 : 4 : {
11742 : 4 : tree _q30 = TREE_OPERAND (_q20, 0);
11743 : 4 : tree _q31 = TREE_OPERAND (_q20, 1);
11744 : 4 : switch (TREE_CODE (_q31))
11745 : : {
11746 : 2 : case INTEGER_CST:
11747 : 2 : {
11748 : 2 : switch (TREE_CODE (_p1))
11749 : : {
11750 : 2 : case INTEGER_CST:
11751 : 2 : {
11752 : 2 : {
11753 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
11754 : 2 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, MINUS_EXPR);
11755 : 2 : if (res) return res;
11756 : : }
11757 : 0 : break;
11758 : : }
11759 : : default:;
11760 : : }
11761 : : break;
11762 : : }
11763 : : default:;
11764 : : }
11765 : : break;
11766 : : }
11767 : 728380 : default:;
11768 : : }
11769 : 728380 : switch (TREE_CODE (_q21))
11770 : : {
11771 : 323 : case BIT_AND_EXPR:
11772 : 323 : {
11773 : 323 : tree _q40 = TREE_OPERAND (_q21, 0);
11774 : 323 : tree _q41 = TREE_OPERAND (_q21, 1);
11775 : 323 : switch (TREE_CODE (_q41))
11776 : : {
11777 : 321 : case INTEGER_CST:
11778 : 321 : {
11779 : 321 : switch (TREE_CODE (_p1))
11780 : : {
11781 : 321 : case INTEGER_CST:
11782 : 321 : {
11783 : 321 : {
11784 : 321 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q41, _p1 };
11785 : 321 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, MINUS_EXPR);
11786 : 321 : if (res) return res;
11787 : : }
11788 : 1 : break;
11789 : : }
11790 : : default:;
11791 : : }
11792 : : break;
11793 : : }
11794 : : default:;
11795 : : }
11796 : : break;
11797 : : }
11798 : 4 : case BIT_IOR_EXPR:
11799 : 4 : {
11800 : 4 : tree _q40 = TREE_OPERAND (_q21, 0);
11801 : 4 : tree _q41 = TREE_OPERAND (_q21, 1);
11802 : 4 : switch (TREE_CODE (_q41))
11803 : : {
11804 : 2 : case INTEGER_CST:
11805 : 2 : {
11806 : 2 : switch (TREE_CODE (_p1))
11807 : : {
11808 : 2 : case INTEGER_CST:
11809 : 2 : {
11810 : 2 : {
11811 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q41, _p1 };
11812 : 2 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, MINUS_EXPR);
11813 : 2 : if (res) return res;
11814 : : }
11815 : 0 : break;
11816 : : }
11817 : : default:;
11818 : : }
11819 : : break;
11820 : : }
11821 : : default:;
11822 : : }
11823 : : break;
11824 : : }
11825 : 4 : case BIT_XOR_EXPR:
11826 : 4 : {
11827 : 4 : tree _q40 = TREE_OPERAND (_q21, 0);
11828 : 4 : tree _q41 = TREE_OPERAND (_q21, 1);
11829 : 4 : switch (TREE_CODE (_q41))
11830 : : {
11831 : 2 : case INTEGER_CST:
11832 : 2 : {
11833 : 2 : switch (TREE_CODE (_p1))
11834 : : {
11835 : 2 : case INTEGER_CST:
11836 : 2 : {
11837 : 2 : {
11838 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q41, _p1 };
11839 : 2 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, MINUS_EXPR);
11840 : 2 : if (res) return res;
11841 : : }
11842 : 0 : break;
11843 : : }
11844 : : default:;
11845 : : }
11846 : : break;
11847 : : }
11848 : : default:;
11849 : : }
11850 : : break;
11851 : : }
11852 : 728056 : default:;
11853 : : }
11854 : 728056 : switch (TREE_CODE (_p1))
11855 : : {
11856 : 727854 : case INTEGER_CST:
11857 : 727854 : {
11858 : 727854 : {
11859 : 727854 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
11860 : 727854 : tree res = generic_simplify_413 (loc, type, _p0, _p1, captures, MINUS_EXPR);
11861 : 727854 : if (res) return res;
11862 : : }
11863 : 529353 : break;
11864 : : }
11865 : : default:;
11866 : : }
11867 : : break;
11868 : : }
11869 : 46802 : case NEGATE_EXPR:
11870 : 46802 : {
11871 : 46802 : tree _q20 = TREE_OPERAND (_p0, 0);
11872 : 46802 : switch (TREE_CODE (_q20))
11873 : : {
11874 : 25 : case BIT_AND_EXPR:
11875 : 25 : {
11876 : 25 : tree _q30 = TREE_OPERAND (_q20, 0);
11877 : 25 : tree _q31 = TREE_OPERAND (_q20, 1);
11878 : 25 : switch (TREE_CODE (_q31))
11879 : : {
11880 : 21 : case INTEGER_CST:
11881 : 21 : {
11882 : 21 : switch (TREE_CODE (_p1))
11883 : : {
11884 : 11 : case INTEGER_CST:
11885 : 11 : {
11886 : 11 : {
11887 : 11 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1 };
11888 : 11 : tree res = generic_simplify_414 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
11889 : 11 : if (res) return res;
11890 : : }
11891 : 8 : break;
11892 : : }
11893 : : default:;
11894 : : }
11895 : : break;
11896 : : }
11897 : : default:;
11898 : : }
11899 : : break;
11900 : : }
11901 : 44 : case BIT_IOR_EXPR:
11902 : 44 : {
11903 : 44 : tree _q30 = TREE_OPERAND (_q20, 0);
11904 : 44 : tree _q31 = TREE_OPERAND (_q20, 1);
11905 : 44 : switch (TREE_CODE (_q31))
11906 : : {
11907 : 2 : case INTEGER_CST:
11908 : 2 : {
11909 : 2 : switch (TREE_CODE (_p1))
11910 : : {
11911 : 2 : case INTEGER_CST:
11912 : 2 : {
11913 : 2 : {
11914 : 2 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1 };
11915 : 2 : tree res = generic_simplify_414 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR);
11916 : 2 : if (res) return res;
11917 : : }
11918 : 0 : break;
11919 : : }
11920 : : default:;
11921 : : }
11922 : : break;
11923 : : }
11924 : : default:;
11925 : : }
11926 : : break;
11927 : : }
11928 : 4 : case BIT_XOR_EXPR:
11929 : 4 : {
11930 : 4 : tree _q30 = TREE_OPERAND (_q20, 0);
11931 : 4 : tree _q31 = TREE_OPERAND (_q20, 1);
11932 : 4 : switch (TREE_CODE (_q31))
11933 : : {
11934 : 2 : case INTEGER_CST:
11935 : 2 : {
11936 : 2 : switch (TREE_CODE (_p1))
11937 : : {
11938 : 2 : case INTEGER_CST:
11939 : 2 : {
11940 : 2 : {
11941 : 2 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1 };
11942 : 2 : tree res = generic_simplify_414 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
11943 : 2 : if (res) return res;
11944 : : }
11945 : 0 : break;
11946 : : }
11947 : : default:;
11948 : : }
11949 : : break;
11950 : : }
11951 : : default:;
11952 : : }
11953 : : break;
11954 : : }
11955 : 46795 : default:;
11956 : : }
11957 : 46795 : if (tree_zero_one_valued_p (_q20))
11958 : : {
11959 : 19 : {
11960 : 19 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
11961 : 19 : tree res = generic_simplify_415 (loc, type, _p0, _p1, captures);
11962 : 19 : if (res) return res;
11963 : : }
11964 : : }
11965 : : break;
11966 : : }
11967 : 6337085 : default:;
11968 : : }
11969 : 6337085 : if (integer_zerop (_p1))
11970 : : {
11971 : 3860 : {
11972 : 3860 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
11973 : 3860 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1802;
11974 : 3860 : {
11975 : 3860 : tree _r;
11976 : 3860 : _r = captures[1];
11977 : 3860 : if (TREE_SIDE_EFFECTS (captures[0]))
11978 : 49 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
11979 : 3860 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1030, __FILE__, __LINE__, true);
11980 : 3860 : return _r;
11981 : : }
11982 : 0 : next_after_fail1802:;
11983 : : }
11984 : : }
11985 : 6333225 : if (integer_all_onesp (_p1))
11986 : : {
11987 : 24357 : {
11988 : 24357 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
11989 : 24357 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1803;
11990 : 24357 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1803;
11991 : 24357 : {
11992 : 24357 : tree res_op0;
11993 : 24357 : res_op0 = captures[0];
11994 : 24357 : tree _r;
11995 : 24357 : _r = non_lvalue_loc (loc, res_op0);
11996 : 24357 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1031, __FILE__, __LINE__, true);
11997 : 24357 : return _r;
11998 : : }
11999 : : next_after_fail1803:;
12000 : : }
12001 : : }
12002 : 6308868 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
12003 : : {
12004 : 129 : {
12005 : 129 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
12006 : 129 : tree res = generic_simplify_89 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12007 : 129 : if (res) return res;
12008 : : }
12009 : : }
12010 : 6308739 : switch (TREE_CODE (_p1))
12011 : : {
12012 : 33843 : case BIT_NOT_EXPR:
12013 : 33843 : {
12014 : 33843 : tree _q30 = TREE_OPERAND (_p1, 0);
12015 : 33843 : switch (TREE_CODE (_q30))
12016 : : {
12017 : 13 : case BIT_AND_EXPR:
12018 : 13 : {
12019 : 13 : tree _q40 = TREE_OPERAND (_q30, 0);
12020 : 13 : tree _q41 = TREE_OPERAND (_q30, 1);
12021 : 13 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
12022 : : {
12023 : 0 : {
12024 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q41 };
12025 : 0 : tree res = generic_simplify_90 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12026 : 0 : if (res) return res;
12027 : : }
12028 : : }
12029 : 13 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
12030 : : {
12031 : 0 : {
12032 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q40 };
12033 : 0 : tree res = generic_simplify_90 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12034 : 0 : if (res) return res;
12035 : : }
12036 : : }
12037 : : break;
12038 : : }
12039 : : default:;
12040 : : }
12041 : : break;
12042 : : }
12043 : 6308739 : default:;
12044 : : }
12045 : 6308739 : switch (TREE_CODE (_p0))
12046 : : {
12047 : 46527 : case BIT_NOT_EXPR:
12048 : 46527 : {
12049 : 46527 : tree _q20 = TREE_OPERAND (_p0, 0);
12050 : 46527 : switch (TREE_CODE (_q20))
12051 : : {
12052 : 28 : case BIT_AND_EXPR:
12053 : 28 : {
12054 : 28 : tree _q30 = TREE_OPERAND (_q20, 0);
12055 : 28 : tree _q31 = TREE_OPERAND (_q20, 1);
12056 : 28 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
12057 : : {
12058 : 4 : {
12059 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q20, _q31 };
12060 : 4 : tree res = generic_simplify_90 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12061 : 4 : if (res) return res;
12062 : : }
12063 : : }
12064 : 24 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
12065 : : {
12066 : 3 : {
12067 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q20, _q30 };
12068 : 3 : tree res = generic_simplify_90 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12069 : 3 : if (res) return res;
12070 : : }
12071 : : }
12072 : 21 : switch (TREE_CODE (_p1))
12073 : : {
12074 : 0 : case BIT_IOR_EXPR:
12075 : 0 : {
12076 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
12077 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
12078 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
12079 : : {
12080 : 0 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
12081 : : {
12082 : 0 : {
12083 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
12084 : 0 : tree res = generic_simplify_416 (loc, type, _p0, _p1, captures);
12085 : 0 : if (res) return res;
12086 : : }
12087 : : }
12088 : : }
12089 : : break;
12090 : : }
12091 : : default:;
12092 : : }
12093 : : break;
12094 : : }
12095 : 46520 : default:;
12096 : : }
12097 : 46520 : switch (TREE_CODE (_p1))
12098 : : {
12099 : 7552 : CASE_CONVERT:
12100 : 7552 : {
12101 : 7552 : tree _q40 = TREE_OPERAND (_p1, 0);
12102 : 7552 : switch (TREE_CODE (_q40))
12103 : : {
12104 : 0 : case BIT_NOT_EXPR:
12105 : 0 : {
12106 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
12107 : 0 : {
12108 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q50 };
12109 : 0 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12110 : 0 : if (res) return res;
12111 : : }
12112 : 0 : break;
12113 : : }
12114 : : default:;
12115 : : }
12116 : : break;
12117 : : }
12118 : 44 : case BIT_NOT_EXPR:
12119 : 44 : {
12120 : 44 : tree _q40 = TREE_OPERAND (_p1, 0);
12121 : 44 : {
12122 : 44 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
12123 : 44 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12124 : 44 : if (res) return res;
12125 : : }
12126 : 0 : break;
12127 : : }
12128 : : default:;
12129 : : }
12130 : : break;
12131 : : }
12132 : 1566 : case BIT_IOR_EXPR:
12133 : 1566 : {
12134 : 1566 : tree _q20 = TREE_OPERAND (_p0, 0);
12135 : 1566 : tree _q21 = TREE_OPERAND (_p0, 1);
12136 : 1566 : switch (TREE_CODE (_p1))
12137 : : {
12138 : 169 : case BIT_NOT_EXPR:
12139 : 169 : {
12140 : 169 : tree _q50 = TREE_OPERAND (_p1, 0);
12141 : 169 : switch (TREE_CODE (_q50))
12142 : : {
12143 : 0 : case BIT_AND_EXPR:
12144 : 0 : {
12145 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
12146 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
12147 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
12148 : : {
12149 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
12150 : : {
12151 : 0 : {
12152 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
12153 : 0 : tree res = generic_simplify_416 (loc, type, _p0, _p1, captures);
12154 : 0 : if (res) return res;
12155 : : }
12156 : : }
12157 : : }
12158 : : break;
12159 : : }
12160 : : default:;
12161 : : }
12162 : : break;
12163 : : }
12164 : 2 : case BIT_XOR_EXPR:
12165 : 2 : {
12166 : 2 : tree _q50 = TREE_OPERAND (_p1, 0);
12167 : 2 : tree _q51 = TREE_OPERAND (_p1, 1);
12168 : 2 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
12169 : : {
12170 : 0 : {
12171 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
12172 : 0 : tree res = generic_simplify_417 (loc, type, _p0, _p1, captures);
12173 : 0 : if (res) return res;
12174 : : }
12175 : : }
12176 : 2 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
12177 : : {
12178 : 2 : {
12179 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
12180 : 2 : tree res = generic_simplify_417 (loc, type, _p0, _p1, captures);
12181 : 2 : if (res) return res;
12182 : : }
12183 : : }
12184 : 2 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
12185 : : {
12186 : 0 : {
12187 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
12188 : 0 : tree res = generic_simplify_417 (loc, type, _p0, _p1, captures);
12189 : 0 : if (res) return res;
12190 : : }
12191 : : }
12192 : 2 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
12193 : : {
12194 : 0 : {
12195 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
12196 : 0 : tree res = generic_simplify_417 (loc, type, _p0, _p1, captures);
12197 : 0 : if (res) return res;
12198 : : }
12199 : : }
12200 : : break;
12201 : : }
12202 : 1566 : default:;
12203 : : }
12204 : 1566 : switch (TREE_CODE (_q20))
12205 : : {
12206 : 127 : case BIT_NOT_EXPR:
12207 : 127 : {
12208 : 127 : tree _q30 = TREE_OPERAND (_q20, 0);
12209 : 127 : switch (TREE_CODE (_p1))
12210 : : {
12211 : 2 : case BIT_IOR_EXPR:
12212 : 2 : {
12213 : 2 : tree _q60 = TREE_OPERAND (_p1, 0);
12214 : 2 : tree _q61 = TREE_OPERAND (_p1, 1);
12215 : 2 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
12216 : : {
12217 : 0 : switch (TREE_CODE (_q61))
12218 : : {
12219 : 0 : case BIT_NOT_EXPR:
12220 : 0 : {
12221 : 0 : tree _q80 = TREE_OPERAND (_q61, 0);
12222 : 0 : if ((_q80 == _q21 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q21, 0) && types_match (_q80, _q21)))
12223 : : {
12224 : 0 : {
12225 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q21, _p1 };
12226 : 0 : tree res = generic_simplify_418 (loc, type, _p0, _p1, captures);
12227 : 0 : if (res) return res;
12228 : : }
12229 : : }
12230 : : break;
12231 : : }
12232 : : default:;
12233 : : }
12234 : : }
12235 : 2 : switch (TREE_CODE (_q60))
12236 : : {
12237 : 2 : case BIT_NOT_EXPR:
12238 : 2 : {
12239 : 2 : tree _q70 = TREE_OPERAND (_q60, 0);
12240 : 2 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
12241 : : {
12242 : 2 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
12243 : : {
12244 : 2 : {
12245 : 2 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q21, _p1 };
12246 : 2 : tree res = generic_simplify_418 (loc, type, _p0, _p1, captures);
12247 : 2 : if (res) return res;
12248 : : }
12249 : : }
12250 : : }
12251 : : break;
12252 : : }
12253 : : default:;
12254 : : }
12255 : : break;
12256 : : }
12257 : : default:;
12258 : : }
12259 : : break;
12260 : : }
12261 : 1564 : default:;
12262 : : }
12263 : 1564 : switch (TREE_CODE (_q21))
12264 : : {
12265 : 0 : case BIT_NOT_EXPR:
12266 : 0 : {
12267 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
12268 : 0 : switch (TREE_CODE (_p1))
12269 : : {
12270 : 0 : case BIT_IOR_EXPR:
12271 : 0 : {
12272 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
12273 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
12274 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
12275 : : {
12276 : 0 : switch (TREE_CODE (_q61))
12277 : : {
12278 : 0 : case BIT_NOT_EXPR:
12279 : 0 : {
12280 : 0 : tree _q80 = TREE_OPERAND (_q61, 0);
12281 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
12282 : : {
12283 : 0 : {
12284 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q40, _q20, _p1 };
12285 : 0 : tree res = generic_simplify_418 (loc, type, _p0, _p1, captures);
12286 : 0 : if (res) return res;
12287 : : }
12288 : : }
12289 : : break;
12290 : : }
12291 : : default:;
12292 : : }
12293 : : }
12294 : 0 : switch (TREE_CODE (_q60))
12295 : : {
12296 : 0 : case BIT_NOT_EXPR:
12297 : 0 : {
12298 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
12299 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
12300 : : {
12301 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
12302 : : {
12303 : 0 : {
12304 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q40, _q20, _p1 };
12305 : 0 : tree res = generic_simplify_418 (loc, type, _p0, _p1, captures);
12306 : 0 : if (res) return res;
12307 : : }
12308 : : }
12309 : : }
12310 : : break;
12311 : : }
12312 : : default:;
12313 : : }
12314 : : break;
12315 : : }
12316 : : default:;
12317 : : }
12318 : : break;
12319 : : }
12320 : : default:;
12321 : : }
12322 : : break;
12323 : : }
12324 : 20773 : case BIT_XOR_EXPR:
12325 : 20773 : {
12326 : 20773 : tree _q20 = TREE_OPERAND (_p0, 0);
12327 : 20773 : tree _q21 = TREE_OPERAND (_p0, 1);
12328 : 20773 : switch (TREE_CODE (_p1))
12329 : : {
12330 : 133 : case BIT_IOR_EXPR:
12331 : 133 : {
12332 : 133 : tree _q50 = TREE_OPERAND (_p1, 0);
12333 : 133 : tree _q51 = TREE_OPERAND (_p1, 1);
12334 : 133 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
12335 : : {
12336 : 18 : {
12337 : 18 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q20, _q21 };
12338 : 18 : tree res = generic_simplify_417 (loc, type, _p0, _p1, captures);
12339 : 18 : if (res) return res;
12340 : : }
12341 : : }
12342 : 133 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
12343 : : {
12344 : 33 : {
12345 : 33 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q21, _q20 };
12346 : 33 : tree res = generic_simplify_417 (loc, type, _p0, _p1, captures);
12347 : 33 : if (res) return res;
12348 : : }
12349 : : }
12350 : 133 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
12351 : : {
12352 : 30 : {
12353 : 30 : tree captures[3] ATTRIBUTE_UNUSED = { _q51, _q20, _q21 };
12354 : 30 : tree res = generic_simplify_417 (loc, type, _p0, _p1, captures);
12355 : 30 : if (res) return res;
12356 : : }
12357 : : }
12358 : 133 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
12359 : : {
12360 : 21 : {
12361 : 21 : tree captures[3] ATTRIBUTE_UNUSED = { _q51, _q21, _q20 };
12362 : 21 : tree res = generic_simplify_417 (loc, type, _p0, _p1, captures);
12363 : 21 : if (res) return res;
12364 : : }
12365 : : }
12366 : : break;
12367 : : }
12368 : 20773 : default:;
12369 : : }
12370 : 20773 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
12371 : : {
12372 : 31 : {
12373 : 31 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
12374 : 31 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_XOR_EXPR);
12375 : 31 : if (res) return res;
12376 : : }
12377 : : }
12378 : 20742 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
12379 : : {
12380 : 2 : {
12381 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
12382 : 2 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_XOR_EXPR);
12383 : 2 : if (res) return res;
12384 : : }
12385 : : }
12386 : : break;
12387 : : }
12388 : 1916437 : CASE_CONVERT:
12389 : 1916437 : {
12390 : 1916437 : tree _q20 = TREE_OPERAND (_p0, 0);
12391 : 1916437 : switch (TREE_CODE (_q20))
12392 : : {
12393 : 166 : case BIT_NOT_EXPR:
12394 : 166 : {
12395 : 166 : tree _q30 = TREE_OPERAND (_q20, 0);
12396 : 166 : switch (TREE_CODE (_p1))
12397 : : {
12398 : 34 : CASE_CONVERT:
12399 : 34 : {
12400 : 34 : tree _q50 = TREE_OPERAND (_p1, 0);
12401 : 34 : switch (TREE_CODE (_q50))
12402 : : {
12403 : 0 : case BIT_NOT_EXPR:
12404 : 0 : {
12405 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
12406 : 0 : {
12407 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q60 };
12408 : 0 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12409 : 0 : if (res) return res;
12410 : : }
12411 : 0 : break;
12412 : : }
12413 : : default:;
12414 : : }
12415 : : break;
12416 : : }
12417 : 1 : case BIT_NOT_EXPR:
12418 : 1 : {
12419 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
12420 : 1 : {
12421 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q50 };
12422 : 1 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12423 : 1 : if (res) return res;
12424 : : }
12425 : 0 : break;
12426 : : }
12427 : : default:;
12428 : : }
12429 : : break;
12430 : : }
12431 : : default:;
12432 : : }
12433 : : break;
12434 : : }
12435 : 6308652 : default:;
12436 : : }
12437 : 6308652 : switch (TREE_CODE (_p1))
12438 : : {
12439 : 254 : case BIT_XOR_EXPR:
12440 : 254 : {
12441 : 254 : tree _q30 = TREE_OPERAND (_p1, 0);
12442 : 254 : tree _q31 = TREE_OPERAND (_p1, 1);
12443 : 254 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
12444 : : {
12445 : 0 : {
12446 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q30, _p0 };
12447 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_XOR_EXPR);
12448 : 0 : if (res) return res;
12449 : : }
12450 : : }
12451 : 254 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
12452 : : {
12453 : 1 : {
12454 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q31, _p0 };
12455 : 1 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_XOR_EXPR);
12456 : 1 : if (res) return res;
12457 : : }
12458 : : }
12459 : : break;
12460 : : }
12461 : 6308651 : default:;
12462 : : }
12463 : 6308651 : switch (TREE_CODE (_p0))
12464 : : {
12465 : 1916436 : CASE_CONVERT:
12466 : 1916436 : {
12467 : 1916436 : tree _q20 = TREE_OPERAND (_p0, 0);
12468 : 1916436 : switch (TREE_CODE (_q20))
12469 : : {
12470 : 171 : case BIT_IOR_EXPR:
12471 : 171 : {
12472 : 171 : tree _q30 = TREE_OPERAND (_q20, 0);
12473 : 171 : tree _q31 = TREE_OPERAND (_q20, 1);
12474 : 171 : switch (TREE_CODE (_p1))
12475 : : {
12476 : 12 : CASE_CONVERT:
12477 : 12 : {
12478 : 12 : tree _q60 = TREE_OPERAND (_p1, 0);
12479 : 12 : switch (TREE_CODE (_q60))
12480 : : {
12481 : 0 : case BIT_IOR_EXPR:
12482 : 0 : {
12483 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
12484 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
12485 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q30, 0))
12486 : : {
12487 : 0 : {
12488 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q71, _q30 };
12489 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12490 : 0 : if (res) return res;
12491 : : }
12492 : : }
12493 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || operand_equal_p (_q71, _q30, 0))
12494 : : {
12495 : 0 : {
12496 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q70, _q30 };
12497 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12498 : 0 : if (res) return res;
12499 : : }
12500 : : }
12501 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q31, 0))
12502 : : {
12503 : 0 : {
12504 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q31, _q30, _q71, _q31 };
12505 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12506 : 0 : if (res) return res;
12507 : : }
12508 : : }
12509 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || operand_equal_p (_q71, _q31, 0))
12510 : : {
12511 : 0 : {
12512 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q31, _q30, _q70, _q31 };
12513 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12514 : 0 : if (res) return res;
12515 : : }
12516 : : }
12517 : : break;
12518 : : }
12519 : : default:;
12520 : : }
12521 : : break;
12522 : : }
12523 : : default:;
12524 : : }
12525 : : break;
12526 : : }
12527 : 40 : case BIT_AND_EXPR:
12528 : 40 : {
12529 : 40 : tree _q30 = TREE_OPERAND (_q20, 0);
12530 : 40 : tree _q31 = TREE_OPERAND (_q20, 1);
12531 : 40 : switch (TREE_CODE (_p1))
12532 : : {
12533 : 0 : CASE_CONVERT:
12534 : 0 : {
12535 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
12536 : 0 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q31, 0))
12537 : : {
12538 : 0 : {
12539 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q31, _q31 };
12540 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12541 : 0 : if (res) return res;
12542 : : }
12543 : : }
12544 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q30, 0))
12545 : : {
12546 : 0 : {
12547 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q31, _q30, _q30 };
12548 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12549 : 0 : if (res) return res;
12550 : : }
12551 : : }
12552 : : break;
12553 : : }
12554 : 40 : default:;
12555 : : }
12556 : 40 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q31, 0))
12557 : : {
12558 : 0 : {
12559 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q31, _q31 };
12560 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12561 : 0 : if (res) return res;
12562 : : }
12563 : : }
12564 : 40 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q30, 0))
12565 : : {
12566 : 0 : {
12567 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q31, _q30, _q30 };
12568 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12569 : 0 : if (res) return res;
12570 : : }
12571 : : }
12572 : : break;
12573 : : }
12574 : 1916436 : default:;
12575 : : }
12576 : 1916436 : switch (TREE_CODE (_p1))
12577 : : {
12578 : 803673 : CASE_CONVERT:
12579 : 803673 : {
12580 : 803673 : tree _q40 = TREE_OPERAND (_p1, 0);
12581 : 803673 : switch (TREE_CODE (_q40))
12582 : : {
12583 : 0 : case BIT_AND_EXPR:
12584 : 0 : {
12585 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
12586 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
12587 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q20, 0))
12588 : : {
12589 : 0 : {
12590 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q50, _q51, _q20 };
12591 : 0 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12592 : 0 : if (res) return res;
12593 : : }
12594 : : }
12595 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
12596 : : {
12597 : 0 : {
12598 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q51, _q50, _q20 };
12599 : 0 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12600 : 0 : if (res) return res;
12601 : : }
12602 : : }
12603 : : break;
12604 : : }
12605 : : default:;
12606 : : }
12607 : : break;
12608 : : }
12609 : 47 : case BIT_AND_EXPR:
12610 : 47 : {
12611 : 47 : tree _q40 = TREE_OPERAND (_p1, 0);
12612 : 47 : tree _q41 = TREE_OPERAND (_p1, 1);
12613 : 47 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _q20, 0))
12614 : : {
12615 : 0 : {
12616 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q40, _q41, _q20 };
12617 : 0 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12618 : 0 : if (res) return res;
12619 : : }
12620 : : }
12621 : 47 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _q20, 0))
12622 : : {
12623 : 0 : {
12624 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q41, _q40, _q20 };
12625 : 0 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12626 : 0 : if (res) return res;
12627 : : }
12628 : : }
12629 : : break;
12630 : : }
12631 : : default:;
12632 : : }
12633 : : break;
12634 : : }
12635 : 1564 : case BIT_IOR_EXPR:
12636 : 1564 : {
12637 : 1564 : tree _q20 = TREE_OPERAND (_p0, 0);
12638 : 1564 : tree _q21 = TREE_OPERAND (_p0, 1);
12639 : 1564 : switch (TREE_CODE (_p1))
12640 : : {
12641 : 9 : case BIT_IOR_EXPR:
12642 : 9 : {
12643 : 9 : tree _q50 = TREE_OPERAND (_p1, 0);
12644 : 9 : tree _q51 = TREE_OPERAND (_p1, 1);
12645 : 9 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
12646 : : {
12647 : 0 : {
12648 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q51, _q20 };
12649 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12650 : 0 : if (res) return res;
12651 : : }
12652 : : }
12653 : 9 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q20, 0))
12654 : : {
12655 : 0 : {
12656 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q50, _q20 };
12657 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12658 : 0 : if (res) return res;
12659 : : }
12660 : : }
12661 : 9 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q21, 0))
12662 : : {
12663 : 0 : {
12664 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q51, _q21 };
12665 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12666 : 0 : if (res) return res;
12667 : : }
12668 : : }
12669 : 9 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q21, 0))
12670 : : {
12671 : 0 : {
12672 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q50, _q21 };
12673 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12674 : 0 : if (res) return res;
12675 : : }
12676 : : }
12677 : : break;
12678 : : }
12679 : : default:;
12680 : : }
12681 : : break;
12682 : : }
12683 : 6308651 : default:;
12684 : : }
12685 : 6308651 : switch (TREE_CODE (_p1))
12686 : : {
12687 : 906097 : CASE_CONVERT:
12688 : 906097 : {
12689 : 906097 : tree _q30 = TREE_OPERAND (_p1, 0);
12690 : 906097 : switch (TREE_CODE (_q30))
12691 : : {
12692 : 8 : case BIT_AND_EXPR:
12693 : 8 : {
12694 : 8 : tree _q40 = TREE_OPERAND (_q30, 0);
12695 : 8 : tree _q41 = TREE_OPERAND (_q30, 1);
12696 : 8 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _p0, 0))
12697 : : {
12698 : 0 : {
12699 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q40, _q41, _p0 };
12700 : 0 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12701 : 0 : if (res) return res;
12702 : : }
12703 : : }
12704 : 8 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _p0, 0))
12705 : : {
12706 : 0 : {
12707 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q41, _q40, _p0 };
12708 : 0 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12709 : 0 : if (res) return res;
12710 : : }
12711 : : }
12712 : : break;
12713 : : }
12714 : : default:;
12715 : : }
12716 : : break;
12717 : : }
12718 : 6308651 : default:;
12719 : : }
12720 : 6308651 : switch (TREE_CODE (_p0))
12721 : : {
12722 : 1591 : case BIT_AND_EXPR:
12723 : 1591 : {
12724 : 1591 : tree _q20 = TREE_OPERAND (_p0, 0);
12725 : 1591 : tree _q21 = TREE_OPERAND (_p0, 1);
12726 : 1591 : switch (TREE_CODE (_p1))
12727 : : {
12728 : 82 : CASE_CONVERT:
12729 : 82 : {
12730 : 82 : tree _q50 = TREE_OPERAND (_p1, 0);
12731 : 82 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q21, 0))
12732 : : {
12733 : 0 : {
12734 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q21 };
12735 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12736 : 0 : if (res) return res;
12737 : : }
12738 : : }
12739 : 82 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
12740 : : {
12741 : 0 : {
12742 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _q20 };
12743 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12744 : 0 : if (res) return res;
12745 : : }
12746 : : }
12747 : : break;
12748 : : }
12749 : 1591 : default:;
12750 : : }
12751 : 1591 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q21, 0))
12752 : : {
12753 : 0 : {
12754 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q21 };
12755 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12756 : 0 : if (res) return res;
12757 : : }
12758 : : }
12759 : 1591 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q20, 0))
12760 : : {
12761 : 0 : {
12762 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _q20 };
12763 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12764 : 0 : if (res) return res;
12765 : : }
12766 : : }
12767 : 1591 : {
12768 : 1591 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
12769 : 1591 : tree res = generic_simplify_419 (loc, type, _p0, _p1, captures);
12770 : 1591 : if (res) return res;
12771 : : }
12772 : 1583 : switch (TREE_CODE (_p1))
12773 : : {
12774 : 82 : CASE_CONVERT:
12775 : 82 : {
12776 : 82 : tree _q50 = TREE_OPERAND (_p1, 0);
12777 : 82 : switch (TREE_CODE (_q50))
12778 : : {
12779 : 8 : case BIT_AND_EXPR:
12780 : 8 : {
12781 : 8 : tree _q60 = TREE_OPERAND (_q50, 0);
12782 : 8 : tree _q61 = TREE_OPERAND (_q50, 1);
12783 : 8 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
12784 : : {
12785 : 0 : {
12786 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1, _q50, _q61 };
12787 : 0 : tree res = generic_simplify_99 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12788 : 0 : if (res) return res;
12789 : : }
12790 : : }
12791 : 8 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
12792 : : {
12793 : 0 : {
12794 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1, _q50, _q60 };
12795 : 0 : tree res = generic_simplify_99 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12796 : 0 : if (res) return res;
12797 : : }
12798 : : }
12799 : 8 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
12800 : : {
12801 : 0 : {
12802 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q21, _q20, _p1, _q50, _q61 };
12803 : 0 : tree res = generic_simplify_99 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12804 : 0 : if (res) return res;
12805 : : }
12806 : : }
12807 : 8 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
12808 : : {
12809 : 0 : {
12810 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q21, _q20, _p1, _q50, _q60 };
12811 : 0 : tree res = generic_simplify_99 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12812 : 0 : if (res) return res;
12813 : : }
12814 : : }
12815 : : break;
12816 : : }
12817 : : default:;
12818 : : }
12819 : : break;
12820 : : }
12821 : 12 : case BIT_AND_EXPR:
12822 : 12 : {
12823 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
12824 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
12825 : 12 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
12826 : : {
12827 : 0 : {
12828 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1, _p1, _q51 };
12829 : 0 : tree res = generic_simplify_100 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12830 : 0 : if (res) return res;
12831 : : }
12832 : : }
12833 : 12 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
12834 : : {
12835 : 0 : {
12836 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1, _p1, _q50 };
12837 : 0 : tree res = generic_simplify_100 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12838 : 0 : if (res) return res;
12839 : : }
12840 : : }
12841 : 12 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
12842 : : {
12843 : 0 : {
12844 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q21, _q20, _p1, _p1, _q51 };
12845 : 0 : tree res = generic_simplify_100 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12846 : 0 : if (res) return res;
12847 : : }
12848 : : }
12849 : 12 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
12850 : : {
12851 : 0 : {
12852 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q21, _q20, _p1, _p1, _q50 };
12853 : 0 : tree res = generic_simplify_100 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12854 : 0 : if (res) return res;
12855 : : }
12856 : : }
12857 : : break;
12858 : : }
12859 : : default:;
12860 : : }
12861 : : break;
12862 : : }
12863 : 6308643 : default:;
12864 : : }
12865 : 6308643 : switch (TREE_CODE (_p1))
12866 : : {
12867 : 76 : case BIT_AND_EXPR:
12868 : 76 : {
12869 : 76 : tree _q30 = TREE_OPERAND (_p1, 0);
12870 : 76 : tree _q31 = TREE_OPERAND (_p1, 1);
12871 : 76 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || operand_equal_p (_q31, _p0, 0))
12872 : : {
12873 : 0 : {
12874 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q30, _q31, _p0 };
12875 : 0 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12876 : 0 : if (res) return res;
12877 : : }
12878 : : }
12879 : 76 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || operand_equal_p (_q30, _p0, 0))
12880 : : {
12881 : 0 : {
12882 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q31, _q30, _p0 };
12883 : 0 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12884 : 0 : if (res) return res;
12885 : : }
12886 : : }
12887 : 76 : {
12888 : 76 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p0 };
12889 : 76 : tree res = generic_simplify_419 (loc, type, _p0, _p1, captures);
12890 : 76 : if (res) return res;
12891 : : }
12892 : 76 : break;
12893 : : }
12894 : 6308643 : default:;
12895 : : }
12896 : 6308643 : switch (TREE_CODE (_p0))
12897 : : {
12898 : 1916436 : CASE_CONVERT:
12899 : 1916436 : {
12900 : 1916436 : tree _q20 = TREE_OPERAND (_p0, 0);
12901 : 1916436 : switch (TREE_CODE (_q20))
12902 : : {
12903 : 40 : case BIT_AND_EXPR:
12904 : 40 : {
12905 : 40 : tree _q30 = TREE_OPERAND (_q20, 0);
12906 : 40 : tree _q31 = TREE_OPERAND (_q20, 1);
12907 : 40 : switch (TREE_CODE (_p1))
12908 : : {
12909 : 0 : CASE_CONVERT:
12910 : 0 : {
12911 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
12912 : 0 : switch (TREE_CODE (_q60))
12913 : : {
12914 : 0 : case BIT_AND_EXPR:
12915 : 0 : {
12916 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
12917 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
12918 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
12919 : : {
12920 : 0 : {
12921 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _q60, _q71 };
12922 : 0 : tree res = generic_simplify_101 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12923 : 0 : if (res) return res;
12924 : : }
12925 : : }
12926 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
12927 : : {
12928 : 0 : {
12929 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _q60, _q70 };
12930 : 0 : tree res = generic_simplify_101 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12931 : 0 : if (res) return res;
12932 : : }
12933 : : }
12934 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
12935 : : {
12936 : 0 : {
12937 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q31, _q30, _p1, _q60, _q71 };
12938 : 0 : tree res = generic_simplify_101 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12939 : 0 : if (res) return res;
12940 : : }
12941 : : }
12942 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
12943 : : {
12944 : 0 : {
12945 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q31, _q30, _p1, _q60, _q70 };
12946 : 0 : tree res = generic_simplify_101 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12947 : 0 : if (res) return res;
12948 : : }
12949 : : }
12950 : : break;
12951 : : }
12952 : : default:;
12953 : : }
12954 : : break;
12955 : : }
12956 : 0 : case BIT_AND_EXPR:
12957 : 0 : {
12958 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
12959 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
12960 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
12961 : : {
12962 : 0 : {
12963 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _p1, _q61 };
12964 : 0 : tree res = generic_simplify_102 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12965 : 0 : if (res) return res;
12966 : : }
12967 : : }
12968 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
12969 : : {
12970 : 0 : {
12971 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _p1, _q60 };
12972 : 0 : tree res = generic_simplify_102 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12973 : 0 : if (res) return res;
12974 : : }
12975 : : }
12976 : 0 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q31, 0) && types_match (_q60, _q31)))
12977 : : {
12978 : 0 : {
12979 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q31, _q30, _p1, _p1, _q61 };
12980 : 0 : tree res = generic_simplify_102 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12981 : 0 : if (res) return res;
12982 : : }
12983 : : }
12984 : 0 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
12985 : : {
12986 : 0 : {
12987 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q31, _q30, _p1, _p1, _q60 };
12988 : 0 : tree res = generic_simplify_102 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12989 : 0 : if (res) return res;
12990 : : }
12991 : : }
12992 : : break;
12993 : : }
12994 : : default:;
12995 : : }
12996 : : break;
12997 : : }
12998 : 1916436 : default:;
12999 : : }
13000 : 1916436 : switch (TREE_CODE (_p1))
13001 : : {
13002 : 803673 : CASE_CONVERT:
13003 : 803673 : {
13004 : 803673 : tree _q40 = TREE_OPERAND (_p1, 0);
13005 : 803673 : {
13006 : 803673 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
13007 : 803673 : tree res = generic_simplify_103 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
13008 : 803673 : if (res) return res;
13009 : : }
13010 : 803673 : break;
13011 : : }
13012 : 1916436 : default:;
13013 : : }
13014 : 1916436 : {
13015 : 1916436 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
13016 : 1916436 : tree res = generic_simplify_104 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
13017 : 1916436 : if (res) return res;
13018 : : }
13019 : 1916436 : break;
13020 : : }
13021 : 1564 : case BIT_IOR_EXPR:
13022 : 1564 : {
13023 : 1564 : tree _q20 = TREE_OPERAND (_p0, 0);
13024 : 1564 : tree _q21 = TREE_OPERAND (_p0, 1);
13025 : 1564 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
13026 : : {
13027 : 2 : {
13028 : 2 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
13029 : 2 : tree res = generic_simplify_105 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13030 : 2 : if (res) return res;
13031 : : }
13032 : : }
13033 : 1562 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
13034 : : {
13035 : 4 : {
13036 : 4 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
13037 : 4 : tree res = generic_simplify_105 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13038 : 4 : if (res) return res;
13039 : : }
13040 : : }
13041 : 1558 : {
13042 : 1558 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
13043 : 1558 : tree res = generic_simplify_106 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13044 : 1558 : if (res) return res;
13045 : : }
13046 : 1553 : {
13047 : 1553 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _p1 };
13048 : 1553 : tree res = generic_simplify_106 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13049 : 1553 : if (res) return res;
13050 : : }
13051 : 1553 : switch (TREE_CODE (_p1))
13052 : : {
13053 : 1 : case BIT_AND_EXPR:
13054 : 1 : {
13055 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
13056 : 1 : tree _q51 = TREE_OPERAND (_p1, 1);
13057 : 1 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
13058 : : {
13059 : 1 : {
13060 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _p1, _q51 };
13061 : 1 : tree res = generic_simplify_107 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13062 : 1 : if (res) return res;
13063 : : }
13064 : : }
13065 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
13066 : : {
13067 : 0 : {
13068 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _p1, _q50 };
13069 : 0 : tree res = generic_simplify_107 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13070 : 0 : if (res) return res;
13071 : : }
13072 : : }
13073 : 0 : 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, _q20, _p1, _q51 };
13077 : 0 : tree res = generic_simplify_107 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13078 : 0 : if (res) return res;
13079 : : }
13080 : : }
13081 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
13082 : : {
13083 : 0 : {
13084 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _p1, _q50 };
13085 : 0 : tree res = generic_simplify_107 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13086 : 0 : if (res) return res;
13087 : : }
13088 : : }
13089 : : break;
13090 : : }
13091 : 168 : case BIT_NOT_EXPR:
13092 : 168 : {
13093 : 168 : tree _q50 = TREE_OPERAND (_p1, 0);
13094 : 168 : switch (TREE_CODE (_q50))
13095 : : {
13096 : 9 : case BIT_IOR_EXPR:
13097 : 9 : {
13098 : 9 : tree _q60 = TREE_OPERAND (_q50, 0);
13099 : 9 : tree _q61 = TREE_OPERAND (_q50, 1);
13100 : 9 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
13101 : : {
13102 : 0 : {
13103 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _p1, _q61 };
13104 : 0 : tree res = generic_simplify_108 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13105 : 0 : if (res) return res;
13106 : : }
13107 : : }
13108 : 9 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
13109 : : {
13110 : 1 : {
13111 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _p1, _q60 };
13112 : 1 : tree res = generic_simplify_108 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13113 : 1 : if (res) return res;
13114 : : }
13115 : : }
13116 : 8 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
13117 : : {
13118 : 0 : {
13119 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _p1, _q61 };
13120 : 0 : tree res = generic_simplify_108 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13121 : 0 : if (res) return res;
13122 : : }
13123 : : }
13124 : 8 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
13125 : : {
13126 : 0 : {
13127 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _p1, _q60 };
13128 : 0 : tree res = generic_simplify_108 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13129 : 0 : if (res) return res;
13130 : : }
13131 : : }
13132 : : break;
13133 : : }
13134 : : default:;
13135 : : }
13136 : : break;
13137 : : }
13138 : : default:;
13139 : : }
13140 : : break;
13141 : : }
13142 : 6308630 : default:;
13143 : : }
13144 : 6308630 : switch (TREE_CODE (_p1))
13145 : : {
13146 : 476 : case BIT_IOR_EXPR:
13147 : 476 : {
13148 : 476 : tree _q30 = TREE_OPERAND (_p1, 0);
13149 : 476 : tree _q31 = TREE_OPERAND (_p1, 1);
13150 : 476 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
13151 : : {
13152 : 0 : {
13153 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
13154 : 0 : tree res = generic_simplify_105 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13155 : 0 : if (res) return res;
13156 : : }
13157 : : }
13158 : 476 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
13159 : : {
13160 : 0 : {
13161 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
13162 : 0 : tree res = generic_simplify_105 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13163 : 0 : if (res) return res;
13164 : : }
13165 : : }
13166 : 476 : {
13167 : 476 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p0 };
13168 : 476 : tree res = generic_simplify_106 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13169 : 476 : if (res) return res;
13170 : : }
13171 : 476 : {
13172 : 476 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _p0 };
13173 : 476 : tree res = generic_simplify_106 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13174 : 476 : if (res) return res;
13175 : : }
13176 : 475 : break;
13177 : : }
13178 : 6308629 : default:;
13179 : : }
13180 : 6308629 : switch (TREE_CODE (_p0))
13181 : : {
13182 : 1583 : case BIT_AND_EXPR:
13183 : 1583 : {
13184 : 1583 : tree _q20 = TREE_OPERAND (_p0, 0);
13185 : 1583 : tree _q21 = TREE_OPERAND (_p0, 1);
13186 : 1583 : switch (TREE_CODE (_p1))
13187 : : {
13188 : 16 : case BIT_IOR_EXPR:
13189 : 16 : {
13190 : 16 : tree _q50 = TREE_OPERAND (_p1, 0);
13191 : 16 : tree _q51 = TREE_OPERAND (_p1, 1);
13192 : 16 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
13193 : : {
13194 : 0 : {
13195 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q51, _p0, _q21 };
13196 : 0 : tree res = generic_simplify_111 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13197 : 0 : if (res) return res;
13198 : : }
13199 : : }
13200 : 16 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
13201 : : {
13202 : 0 : {
13203 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q51, _p0, _q20 };
13204 : 0 : tree res = generic_simplify_111 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13205 : 0 : if (res) return res;
13206 : : }
13207 : : }
13208 : 16 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
13209 : : {
13210 : 0 : {
13211 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q50, _p0, _q21 };
13212 : 0 : tree res = generic_simplify_111 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13213 : 0 : if (res) return res;
13214 : : }
13215 : : }
13216 : 16 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
13217 : : {
13218 : 0 : {
13219 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q50, _p0, _q20 };
13220 : 0 : tree res = generic_simplify_111 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13221 : 0 : if (res) return res;
13222 : : }
13223 : : }
13224 : : break;
13225 : : }
13226 : : default:;
13227 : : }
13228 : : break;
13229 : : }
13230 : 46475 : case BIT_NOT_EXPR:
13231 : 46475 : {
13232 : 46475 : tree _q20 = TREE_OPERAND (_p0, 0);
13233 : 46475 : switch (TREE_CODE (_q20))
13234 : : {
13235 : 11 : case BIT_IOR_EXPR:
13236 : 11 : {
13237 : 11 : tree _q30 = TREE_OPERAND (_q20, 0);
13238 : 11 : tree _q31 = TREE_OPERAND (_q20, 1);
13239 : 11 : switch (TREE_CODE (_p1))
13240 : : {
13241 : 0 : case BIT_IOR_EXPR:
13242 : 0 : {
13243 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
13244 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
13245 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
13246 : : {
13247 : 0 : {
13248 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q60, _q30, _p0, _q31 };
13249 : 0 : tree res = generic_simplify_112 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13250 : 0 : if (res) return res;
13251 : : }
13252 : : }
13253 : 0 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
13254 : : {
13255 : 0 : {
13256 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q60, _q31, _p0, _q30 };
13257 : 0 : tree res = generic_simplify_112 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13258 : 0 : if (res) return res;
13259 : : }
13260 : : }
13261 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
13262 : : {
13263 : 0 : {
13264 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q61, _q30, _p0, _q31 };
13265 : 0 : tree res = generic_simplify_112 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13266 : 0 : if (res) return res;
13267 : : }
13268 : : }
13269 : 0 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q31, 0) && types_match (_q60, _q31)))
13270 : : {
13271 : 0 : {
13272 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q61, _q31, _p0, _q30 };
13273 : 0 : tree res = generic_simplify_112 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13274 : 0 : if (res) return res;
13275 : : }
13276 : : }
13277 : : break;
13278 : : }
13279 : 11 : default:;
13280 : : }
13281 : 11 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
13282 : : {
13283 : 0 : {
13284 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
13285 : 0 : tree res = generic_simplify_113 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13286 : 0 : if (res) return res;
13287 : : }
13288 : : }
13289 : 11 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
13290 : : {
13291 : 1 : {
13292 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q31, _q30 };
13293 : 1 : tree res = generic_simplify_113 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13294 : 1 : if (res) return res;
13295 : : }
13296 : : }
13297 : : break;
13298 : : }
13299 : : default:;
13300 : : }
13301 : : break;
13302 : : }
13303 : 6308628 : default:;
13304 : : }
13305 : 6308628 : switch (TREE_CODE (_p1))
13306 : : {
13307 : 33796 : case BIT_NOT_EXPR:
13308 : 33796 : {
13309 : 33796 : tree _q30 = TREE_OPERAND (_p1, 0);
13310 : 33796 : switch (TREE_CODE (_q30))
13311 : : {
13312 : 8 : case BIT_IOR_EXPR:
13313 : 8 : {
13314 : 8 : tree _q40 = TREE_OPERAND (_q30, 0);
13315 : 8 : tree _q41 = TREE_OPERAND (_q30, 1);
13316 : 8 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
13317 : : {
13318 : 0 : {
13319 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
13320 : 0 : tree res = generic_simplify_113 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13321 : 0 : if (res) return res;
13322 : : }
13323 : : }
13324 : 8 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
13325 : : {
13326 : 0 : {
13327 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q40 };
13328 : 0 : tree res = generic_simplify_113 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13329 : 0 : if (res) return res;
13330 : : }
13331 : : }
13332 : : break;
13333 : : }
13334 : : default:;
13335 : : }
13336 : : break;
13337 : : }
13338 : 6308628 : default:;
13339 : : }
13340 : 6308628 : switch (TREE_CODE (_p0))
13341 : : {
13342 : 1551 : case BIT_IOR_EXPR:
13343 : 1551 : {
13344 : 1551 : tree _q20 = TREE_OPERAND (_p0, 0);
13345 : 1551 : tree _q21 = TREE_OPERAND (_p0, 1);
13346 : 1551 : if (CONSTANT_CLASS_P (_q21))
13347 : : {
13348 : 459 : if (CONSTANT_CLASS_P (_p1))
13349 : : {
13350 : 25 : {
13351 : 25 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
13352 : 25 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1804;
13353 : 25 : {
13354 : 25 : if (! tree_invariant_p (captures[2])) goto next_after_fail1804;
13355 : 25 : tree res_op0;
13356 : 25 : {
13357 : 25 : tree _o1[2], _r1;
13358 : 25 : _o1[0] = captures[0];
13359 : 25 : _o1[1] = unshare_expr (captures[2]);
13360 : 25 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
13361 : 25 : res_op0 = _r1;
13362 : : }
13363 : 25 : tree res_op1;
13364 : 25 : {
13365 : 25 : tree _o1[2], _r1;
13366 : 25 : _o1[0] = captures[1];
13367 : 25 : _o1[1] = captures[2];
13368 : 25 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
13369 : 25 : if (EXPR_P (_r1))
13370 : 0 : goto next_after_fail1804;
13371 : 25 : res_op1 = _r1;
13372 : : }
13373 : 25 : tree _r;
13374 : 25 : _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
13375 : 25 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1032, __FILE__, __LINE__, true);
13376 : 25 : return _r;
13377 : : }
13378 : 0 : next_after_fail1804:;
13379 : : }
13380 : : }
13381 : : }
13382 : : break;
13383 : : }
13384 : 1583 : case BIT_AND_EXPR:
13385 : 1583 : {
13386 : 1583 : tree _q20 = TREE_OPERAND (_p0, 0);
13387 : 1583 : tree _q21 = TREE_OPERAND (_p0, 1);
13388 : 1583 : if (CONSTANT_CLASS_P (_q21))
13389 : : {
13390 : 508 : if (CONSTANT_CLASS_P (_p1))
13391 : : {
13392 : 441 : {
13393 : 441 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
13394 : 441 : tree res = generic_simplify_119 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
13395 : 441 : if (res) return res;
13396 : : }
13397 : : }
13398 : : }
13399 : : break;
13400 : : }
13401 : 6308162 : default:;
13402 : : }
13403 : 6308162 : {
13404 : 6308162 : tree _p1_pops[1];
13405 : 6308162 : if (tree_logical_inverted_value (_p1, _p1_pops))
13406 : : {
13407 : 883 : tree _q30 = _p1_pops[0];
13408 : 883 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
13409 : : {
13410 : 1 : {
13411 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
13412 : 1 : tree res = generic_simplify_420 (loc, type, _p0, _p1, captures);
13413 : 1 : if (res) return res;
13414 : : }
13415 : : }
13416 : : }
13417 : : }
13418 : 6308161 : switch (TREE_CODE (_p0))
13419 : : {
13420 : 1916436 : CASE_CONVERT:
13421 : 1916436 : {
13422 : 1916436 : tree _q20 = TREE_OPERAND (_p0, 0);
13423 : 1916436 : switch (TREE_CODE (_q20))
13424 : : {
13425 : 6114 : case NEGATE_EXPR:
13426 : 6114 : {
13427 : 6114 : tree _q30 = TREE_OPERAND (_q20, 0);
13428 : 6114 : if (tree_zero_one_valued_p (_q30))
13429 : : {
13430 : 2 : {
13431 : 2 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p1 };
13432 : 2 : tree res = generic_simplify_415 (loc, type, _p0, _p1, captures);
13433 : 2 : if (res) return res;
13434 : : }
13435 : : }
13436 : : break;
13437 : : }
13438 : : default:;
13439 : : }
13440 : : break;
13441 : : }
13442 : 6308159 : default:;
13443 : : }
13444 : 6308159 : {
13445 : 6308159 : tree _p0_pops[1];
13446 : 6308159 : if (tree_logical_inverted_value (_p0, _p0_pops))
13447 : : {
13448 : 518 : tree _q20 = _p0_pops[0];
13449 : 518 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
13450 : : {
13451 : 12 : {
13452 : 12 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
13453 : 12 : tree res = generic_simplify_420 (loc, type, _p0, _p1, captures);
13454 : 12 : if (res) return res;
13455 : : }
13456 : : }
13457 : : }
13458 : : }
13459 : 6308147 : switch (TREE_CODE (_p1))
13460 : : {
13461 : 906097 : CASE_CONVERT:
13462 : 906097 : {
13463 : 906097 : tree _q30 = TREE_OPERAND (_p1, 0);
13464 : 906097 : switch (TREE_CODE (_q30))
13465 : : {
13466 : 108 : case NEGATE_EXPR:
13467 : 108 : {
13468 : 108 : tree _q40 = TREE_OPERAND (_q30, 0);
13469 : 108 : if (tree_zero_one_valued_p (_q40))
13470 : : {
13471 : 18 : {
13472 : 18 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _p0 };
13473 : 18 : tree res = generic_simplify_415 (loc, type, _p0, _p1, captures);
13474 : 18 : if (res) return res;
13475 : : }
13476 : : }
13477 : : break;
13478 : : }
13479 : : default:;
13480 : : }
13481 : : break;
13482 : : }
13483 : 11282 : case NEGATE_EXPR:
13484 : 11282 : {
13485 : 11282 : tree _q30 = TREE_OPERAND (_p1, 0);
13486 : 11282 : if (tree_zero_one_valued_p (_q30))
13487 : : {
13488 : 24 : {
13489 : 24 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p0 };
13490 : 24 : tree res = generic_simplify_415 (loc, type, _p0, _p1, captures);
13491 : 24 : if (res) return res;
13492 : : }
13493 : : }
13494 : : break;
13495 : : }
13496 : 6308105 : default:;
13497 : : }
13498 : 6308105 : switch (TREE_CODE (_p0))
13499 : : {
13500 : 46763 : case NEGATE_EXPR:
13501 : 46763 : {
13502 : 46763 : tree _q20 = TREE_OPERAND (_p0, 0);
13503 : 46763 : switch (TREE_CODE (_q20))
13504 : : {
13505 : 6338 : CASE_CONVERT:
13506 : 6338 : {
13507 : 6338 : tree _q30 = TREE_OPERAND (_q20, 0);
13508 : 6338 : switch (TREE_CODE (_q30))
13509 : : {
13510 : 0 : case LT_EXPR:
13511 : 0 : {
13512 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13513 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13514 : 0 : {
13515 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13516 : 0 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures, LT_EXPR);
13517 : 0 : if (res) return res;
13518 : : }
13519 : 0 : break;
13520 : : }
13521 : 0 : case LE_EXPR:
13522 : 0 : {
13523 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13524 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13525 : 0 : {
13526 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13527 : 0 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures, LE_EXPR);
13528 : 0 : if (res) return res;
13529 : : }
13530 : 0 : break;
13531 : : }
13532 : 0 : case EQ_EXPR:
13533 : 0 : {
13534 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13535 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13536 : 0 : {
13537 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13538 : 0 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures, EQ_EXPR);
13539 : 0 : if (res) return res;
13540 : : }
13541 : 0 : break;
13542 : : }
13543 : 0 : case NE_EXPR:
13544 : 0 : {
13545 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13546 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13547 : 0 : {
13548 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13549 : 0 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures, NE_EXPR);
13550 : 0 : if (res) return res;
13551 : : }
13552 : 0 : break;
13553 : : }
13554 : 0 : case GE_EXPR:
13555 : 0 : {
13556 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13557 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13558 : 0 : {
13559 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13560 : 0 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures, GE_EXPR);
13561 : 0 : if (res) return res;
13562 : : }
13563 : 0 : break;
13564 : : }
13565 : 0 : case GT_EXPR:
13566 : 0 : {
13567 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13568 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13569 : 0 : {
13570 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13571 : 0 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures, GT_EXPR);
13572 : 0 : if (res) return res;
13573 : : }
13574 : 0 : break;
13575 : : }
13576 : 0 : case UNORDERED_EXPR:
13577 : 0 : {
13578 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13579 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13580 : 0 : {
13581 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13582 : 0 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures, UNORDERED_EXPR);
13583 : 0 : if (res) return res;
13584 : : }
13585 : 0 : break;
13586 : : }
13587 : 0 : case ORDERED_EXPR:
13588 : 0 : {
13589 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13590 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13591 : 0 : {
13592 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13593 : 0 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures, ORDERED_EXPR);
13594 : 0 : if (res) return res;
13595 : : }
13596 : 0 : break;
13597 : : }
13598 : 0 : case UNLT_EXPR:
13599 : 0 : {
13600 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13601 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13602 : 0 : {
13603 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13604 : 0 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures, UNLT_EXPR);
13605 : 0 : if (res) return res;
13606 : : }
13607 : 0 : break;
13608 : : }
13609 : 0 : case UNLE_EXPR:
13610 : 0 : {
13611 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13612 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13613 : 0 : {
13614 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13615 : 0 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures, UNLE_EXPR);
13616 : 0 : if (res) return res;
13617 : : }
13618 : 0 : break;
13619 : : }
13620 : 0 : case UNGT_EXPR:
13621 : 0 : {
13622 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13623 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13624 : 0 : {
13625 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13626 : 0 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures, UNGT_EXPR);
13627 : 0 : if (res) return res;
13628 : : }
13629 : 0 : break;
13630 : : }
13631 : 0 : case UNGE_EXPR:
13632 : 0 : {
13633 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13634 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13635 : 0 : {
13636 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13637 : 0 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures, UNGE_EXPR);
13638 : 0 : if (res) return res;
13639 : : }
13640 : 0 : break;
13641 : : }
13642 : 0 : case UNEQ_EXPR:
13643 : 0 : {
13644 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13645 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13646 : 0 : {
13647 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13648 : 0 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures, UNEQ_EXPR);
13649 : 0 : if (res) return res;
13650 : : }
13651 : 0 : break;
13652 : : }
13653 : 0 : case LTGT_EXPR:
13654 : 0 : {
13655 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13656 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13657 : 0 : {
13658 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13659 : 0 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures, LTGT_EXPR);
13660 : 0 : if (res) return res;
13661 : : }
13662 : 0 : break;
13663 : : }
13664 : : default:;
13665 : : }
13666 : : break;
13667 : : }
13668 : : default:;
13669 : : }
13670 : : break;
13671 : : }
13672 : 6308105 : default:;
13673 : : }
13674 : 6308105 : switch (TREE_CODE (_p1))
13675 : : {
13676 : 11258 : case NEGATE_EXPR:
13677 : 11258 : {
13678 : 11258 : tree _q30 = TREE_OPERAND (_p1, 0);
13679 : 11258 : switch (TREE_CODE (_q30))
13680 : : {
13681 : 65 : CASE_CONVERT:
13682 : 65 : {
13683 : 65 : tree _q40 = TREE_OPERAND (_q30, 0);
13684 : 65 : switch (TREE_CODE (_q40))
13685 : : {
13686 : 0 : case LT_EXPR:
13687 : 0 : {
13688 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13689 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13690 : 0 : {
13691 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13692 : 0 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, LT_EXPR);
13693 : 0 : if (res) return res;
13694 : : }
13695 : 0 : break;
13696 : : }
13697 : 0 : case LE_EXPR:
13698 : 0 : {
13699 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13700 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13701 : 0 : {
13702 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13703 : 0 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, LE_EXPR);
13704 : 0 : if (res) return res;
13705 : : }
13706 : 0 : break;
13707 : : }
13708 : 0 : case EQ_EXPR:
13709 : 0 : {
13710 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13711 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13712 : 0 : {
13713 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13714 : 0 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, EQ_EXPR);
13715 : 0 : if (res) return res;
13716 : : }
13717 : 0 : break;
13718 : : }
13719 : 0 : case NE_EXPR:
13720 : 0 : {
13721 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13722 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13723 : 0 : {
13724 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13725 : 0 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, NE_EXPR);
13726 : 0 : if (res) return res;
13727 : : }
13728 : 0 : break;
13729 : : }
13730 : 0 : case GE_EXPR:
13731 : 0 : {
13732 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13733 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13734 : 0 : {
13735 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13736 : 0 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, GE_EXPR);
13737 : 0 : if (res) return res;
13738 : : }
13739 : 0 : break;
13740 : : }
13741 : 0 : case GT_EXPR:
13742 : 0 : {
13743 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13744 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13745 : 0 : {
13746 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13747 : 0 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, GT_EXPR);
13748 : 0 : if (res) return res;
13749 : : }
13750 : 0 : break;
13751 : : }
13752 : 0 : case UNORDERED_EXPR:
13753 : 0 : {
13754 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13755 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13756 : 0 : {
13757 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13758 : 0 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, UNORDERED_EXPR);
13759 : 0 : if (res) return res;
13760 : : }
13761 : 0 : break;
13762 : : }
13763 : 0 : case ORDERED_EXPR:
13764 : 0 : {
13765 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13766 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13767 : 0 : {
13768 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13769 : 0 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, ORDERED_EXPR);
13770 : 0 : if (res) return res;
13771 : : }
13772 : 0 : break;
13773 : : }
13774 : 0 : case UNLT_EXPR:
13775 : 0 : {
13776 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13777 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13778 : 0 : {
13779 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13780 : 0 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, UNLT_EXPR);
13781 : 0 : if (res) return res;
13782 : : }
13783 : 0 : break;
13784 : : }
13785 : 0 : case UNLE_EXPR:
13786 : 0 : {
13787 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13788 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13789 : 0 : {
13790 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13791 : 0 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, UNLE_EXPR);
13792 : 0 : if (res) return res;
13793 : : }
13794 : 0 : break;
13795 : : }
13796 : 0 : case UNGT_EXPR:
13797 : 0 : {
13798 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13799 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13800 : 0 : {
13801 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13802 : 0 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, UNGT_EXPR);
13803 : 0 : if (res) return res;
13804 : : }
13805 : 0 : break;
13806 : : }
13807 : 0 : case UNGE_EXPR:
13808 : 0 : {
13809 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13810 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13811 : 0 : {
13812 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13813 : 0 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, UNGE_EXPR);
13814 : 0 : if (res) return res;
13815 : : }
13816 : 0 : break;
13817 : : }
13818 : 0 : case UNEQ_EXPR:
13819 : 0 : {
13820 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13821 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13822 : 0 : {
13823 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13824 : 0 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, UNEQ_EXPR);
13825 : 0 : if (res) return res;
13826 : : }
13827 : 0 : break;
13828 : : }
13829 : 0 : case LTGT_EXPR:
13830 : 0 : {
13831 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13832 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13833 : 0 : {
13834 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13835 : 0 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, LTGT_EXPR);
13836 : 0 : if (res) return res;
13837 : : }
13838 : 0 : break;
13839 : : }
13840 : : default:;
13841 : : }
13842 : : break;
13843 : : }
13844 : : default:;
13845 : : }
13846 : : break;
13847 : : }
13848 : 6308105 : default:;
13849 : : }
13850 : 6308105 : switch (TREE_CODE (_p0))
13851 : : {
13852 : 1916432 : CASE_CONVERT:
13853 : 1916432 : {
13854 : 1916432 : tree _q20 = TREE_OPERAND (_p0, 0);
13855 : 1916432 : switch (TREE_CODE (_p1))
13856 : : {
13857 : 892542 : case INTEGER_CST:
13858 : 892542 : {
13859 : 892542 : {
13860 : 892542 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
13861 : 892542 : tree res = generic_simplify_423 (loc, type, _p0, _p1, captures);
13862 : 892542 : if (res) return res;
13863 : : }
13864 : 887805 : break;
13865 : : }
13866 : 1911695 : default:;
13867 : : }
13868 : 1911695 : switch (TREE_CODE (_q20))
13869 : : {
13870 : 70351 : case LSHIFT_EXPR:
13871 : 70351 : {
13872 : 70351 : tree _q30 = TREE_OPERAND (_q20, 0);
13873 : 70351 : tree _q31 = TREE_OPERAND (_q20, 1);
13874 : 70351 : switch (TREE_CODE (_q30))
13875 : : {
13876 : 79 : CASE_CONVERT:
13877 : 79 : {
13878 : 79 : tree _q40 = TREE_OPERAND (_q30, 0);
13879 : 79 : switch (TREE_CODE (_q31))
13880 : : {
13881 : 79 : case INTEGER_CST:
13882 : 79 : {
13883 : 79 : switch (TREE_CODE (_p1))
13884 : : {
13885 : 79 : case INTEGER_CST:
13886 : 79 : {
13887 : 79 : {
13888 : 79 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q40, _q31, _p1 };
13889 : 79 : tree res = generic_simplify_424 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
13890 : 79 : if (res) return res;
13891 : : }
13892 : 79 : break;
13893 : : }
13894 : : default:;
13895 : : }
13896 : : break;
13897 : : }
13898 : : default:;
13899 : : }
13900 : : break;
13901 : : }
13902 : 70351 : default:;
13903 : : }
13904 : 70351 : switch (TREE_CODE (_q31))
13905 : : {
13906 : 79 : case INTEGER_CST:
13907 : 79 : {
13908 : 79 : switch (TREE_CODE (_p1))
13909 : : {
13910 : 79 : case INTEGER_CST:
13911 : 79 : {
13912 : 79 : {
13913 : 79 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q30, _q31, _p1 };
13914 : 79 : tree res = generic_simplify_425 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
13915 : 79 : if (res) return res;
13916 : : }
13917 : 79 : break;
13918 : : }
13919 : : default:;
13920 : : }
13921 : : break;
13922 : : }
13923 : : default:;
13924 : : }
13925 : : break;
13926 : : }
13927 : 69610 : case RSHIFT_EXPR:
13928 : 69610 : {
13929 : 69610 : tree _q30 = TREE_OPERAND (_q20, 0);
13930 : 69610 : tree _q31 = TREE_OPERAND (_q20, 1);
13931 : 69610 : switch (TREE_CODE (_q30))
13932 : : {
13933 : 44450 : CASE_CONVERT:
13934 : 44450 : {
13935 : 44450 : tree _q40 = TREE_OPERAND (_q30, 0);
13936 : 44450 : switch (TREE_CODE (_q31))
13937 : : {
13938 : 44323 : case INTEGER_CST:
13939 : 44323 : {
13940 : 44323 : switch (TREE_CODE (_p1))
13941 : : {
13942 : 44323 : case INTEGER_CST:
13943 : 44323 : {
13944 : 44323 : {
13945 : 44323 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q40, _q31, _p1 };
13946 : 44323 : tree res = generic_simplify_424 (loc, type, _p0, _p1, captures, RSHIFT_EXPR);
13947 : 44323 : if (res) return res;
13948 : : }
13949 : 44266 : break;
13950 : : }
13951 : : default:;
13952 : : }
13953 : : break;
13954 : : }
13955 : 44393 : default:;
13956 : : }
13957 : 44393 : switch (TREE_CODE (_q40))
13958 : : {
13959 : 2 : case CALL_EXPR:
13960 : 2 : switch (get_call_combined_fn (_q40))
13961 : : {
13962 : 0 : case CFN_BUILT_IN_BSWAP128:
13963 : 0 : if (call_expr_nargs (_q40) == 1)
13964 : : {
13965 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
13966 : 0 : switch (TREE_CODE (_q31))
13967 : : {
13968 : 0 : case INTEGER_CST:
13969 : 0 : {
13970 : 0 : switch (TREE_CODE (_p1))
13971 : : {
13972 : 0 : case INTEGER_CST:
13973 : 0 : {
13974 : 0 : {
13975 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q40, _q50, _q31, _p1 };
13976 : 0 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP128);
13977 : 0 : if (res) return res;
13978 : : }
13979 : 0 : break;
13980 : : }
13981 : : default:;
13982 : : }
13983 : : break;
13984 : : }
13985 : : default:;
13986 : : }
13987 : : }
13988 : : break;
13989 : 2 : case CFN_BUILT_IN_BSWAP16:
13990 : 2 : if (call_expr_nargs (_q40) == 1)
13991 : : {
13992 : 2 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
13993 : 2 : switch (TREE_CODE (_q31))
13994 : : {
13995 : 2 : case INTEGER_CST:
13996 : 2 : {
13997 : 2 : switch (TREE_CODE (_p1))
13998 : : {
13999 : 2 : case INTEGER_CST:
14000 : 2 : {
14001 : 2 : {
14002 : 2 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q40, _q50, _q31, _p1 };
14003 : 2 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP16);
14004 : 2 : if (res) return res;
14005 : : }
14006 : 0 : break;
14007 : : }
14008 : : default:;
14009 : : }
14010 : : break;
14011 : : }
14012 : : default:;
14013 : : }
14014 : : }
14015 : : break;
14016 : 0 : case CFN_BUILT_IN_BSWAP32:
14017 : 0 : if (call_expr_nargs (_q40) == 1)
14018 : : {
14019 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
14020 : 0 : switch (TREE_CODE (_q31))
14021 : : {
14022 : 0 : case INTEGER_CST:
14023 : 0 : {
14024 : 0 : switch (TREE_CODE (_p1))
14025 : : {
14026 : 0 : case INTEGER_CST:
14027 : 0 : {
14028 : 0 : {
14029 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q40, _q50, _q31, _p1 };
14030 : 0 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP32);
14031 : 0 : if (res) return res;
14032 : : }
14033 : 0 : break;
14034 : : }
14035 : : default:;
14036 : : }
14037 : : break;
14038 : : }
14039 : : default:;
14040 : : }
14041 : : }
14042 : : break;
14043 : 0 : case CFN_BUILT_IN_BSWAP64:
14044 : 0 : if (call_expr_nargs (_q40) == 1)
14045 : : {
14046 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
14047 : 0 : switch (TREE_CODE (_q31))
14048 : : {
14049 : 0 : case INTEGER_CST:
14050 : 0 : {
14051 : 0 : switch (TREE_CODE (_p1))
14052 : : {
14053 : 0 : case INTEGER_CST:
14054 : 0 : {
14055 : 0 : {
14056 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q40, _q50, _q31, _p1 };
14057 : 0 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP64);
14058 : 0 : if (res) return res;
14059 : : }
14060 : 0 : break;
14061 : : }
14062 : : default:;
14063 : : }
14064 : : break;
14065 : : }
14066 : : default:;
14067 : : }
14068 : : }
14069 : : break;
14070 : : default:;
14071 : : }
14072 : : break;
14073 : : default:;
14074 : : }
14075 : : break;
14076 : : }
14077 : 69551 : default:;
14078 : : }
14079 : 69551 : switch (TREE_CODE (_q31))
14080 : : {
14081 : 50354 : case INTEGER_CST:
14082 : 50354 : {
14083 : 50354 : switch (TREE_CODE (_p1))
14084 : : {
14085 : 50282 : case INTEGER_CST:
14086 : 50282 : {
14087 : 50282 : {
14088 : 50282 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q30, _q31, _p1 };
14089 : 50282 : tree res = generic_simplify_425 (loc, type, _p0, _p1, captures, RSHIFT_EXPR);
14090 : 50282 : if (res) return res;
14091 : : }
14092 : 50244 : break;
14093 : : }
14094 : : default:;
14095 : : }
14096 : : break;
14097 : : }
14098 : 69513 : default:;
14099 : : }
14100 : 69513 : switch (TREE_CODE (_q30))
14101 : : {
14102 : 80 : case CALL_EXPR:
14103 : 80 : switch (get_call_combined_fn (_q30))
14104 : : {
14105 : 0 : case CFN_BUILT_IN_BSWAP128:
14106 : 0 : if (call_expr_nargs (_q30) == 1)
14107 : : {
14108 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
14109 : 0 : switch (TREE_CODE (_q31))
14110 : : {
14111 : 0 : case INTEGER_CST:
14112 : 0 : {
14113 : 0 : switch (TREE_CODE (_p1))
14114 : : {
14115 : 0 : case INTEGER_CST:
14116 : 0 : {
14117 : 0 : {
14118 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q30, _q40, _q31, _p1 };
14119 : 0 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP128);
14120 : 0 : if (res) return res;
14121 : : }
14122 : 0 : break;
14123 : : }
14124 : : default:;
14125 : : }
14126 : : break;
14127 : : }
14128 : : default:;
14129 : : }
14130 : : }
14131 : : break;
14132 : 9 : case CFN_BUILT_IN_BSWAP16:
14133 : 9 : if (call_expr_nargs (_q30) == 1)
14134 : : {
14135 : 9 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
14136 : 9 : switch (TREE_CODE (_q31))
14137 : : {
14138 : 9 : case INTEGER_CST:
14139 : 9 : {
14140 : 9 : switch (TREE_CODE (_p1))
14141 : : {
14142 : 9 : case INTEGER_CST:
14143 : 9 : {
14144 : 9 : {
14145 : 9 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q30, _q40, _q31, _p1 };
14146 : 9 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP16);
14147 : 9 : if (res) return res;
14148 : : }
14149 : 0 : break;
14150 : : }
14151 : : default:;
14152 : : }
14153 : : break;
14154 : : }
14155 : : default:;
14156 : : }
14157 : : }
14158 : : break;
14159 : 0 : case CFN_BUILT_IN_BSWAP32:
14160 : 0 : if (call_expr_nargs (_q30) == 1)
14161 : : {
14162 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
14163 : 0 : switch (TREE_CODE (_q31))
14164 : : {
14165 : 0 : case INTEGER_CST:
14166 : 0 : {
14167 : 0 : switch (TREE_CODE (_p1))
14168 : : {
14169 : 0 : case INTEGER_CST:
14170 : 0 : {
14171 : 0 : {
14172 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q30, _q40, _q31, _p1 };
14173 : 0 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP32);
14174 : 0 : if (res) return res;
14175 : : }
14176 : 0 : break;
14177 : : }
14178 : : default:;
14179 : : }
14180 : : break;
14181 : : }
14182 : : default:;
14183 : : }
14184 : : }
14185 : : break;
14186 : 71 : case CFN_BUILT_IN_BSWAP64:
14187 : 71 : if (call_expr_nargs (_q30) == 1)
14188 : : {
14189 : 71 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
14190 : 71 : switch (TREE_CODE (_q31))
14191 : : {
14192 : 70 : case INTEGER_CST:
14193 : 70 : {
14194 : 70 : switch (TREE_CODE (_p1))
14195 : : {
14196 : 70 : case INTEGER_CST:
14197 : 70 : {
14198 : 70 : {
14199 : 70 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q30, _q40, _q31, _p1 };
14200 : 70 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP64);
14201 : 70 : if (res) return res;
14202 : : }
14203 : 0 : break;
14204 : : }
14205 : : default:;
14206 : : }
14207 : : break;
14208 : : }
14209 : : default:;
14210 : : }
14211 : : }
14212 : : break;
14213 : : default:;
14214 : : }
14215 : : break;
14216 : : default:;
14217 : : }
14218 : : break;
14219 : : }
14220 : 31930 : case CALL_EXPR:
14221 : 31930 : switch (get_call_combined_fn (_q20))
14222 : : {
14223 : 0 : case CFN_BUILT_IN_BSWAP128:
14224 : 0 : if (call_expr_nargs (_q20) == 1)
14225 : : {
14226 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
14227 : 0 : switch (TREE_CODE (_p1))
14228 : : {
14229 : 0 : case INTEGER_CST:
14230 : 0 : {
14231 : 0 : {
14232 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
14233 : 0 : tree res = generic_simplify_427 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP128);
14234 : 0 : if (res) return res;
14235 : : }
14236 : 0 : break;
14237 : : }
14238 : : default:;
14239 : : }
14240 : : }
14241 : : break;
14242 : 10 : case CFN_BUILT_IN_BSWAP16:
14243 : 10 : if (call_expr_nargs (_q20) == 1)
14244 : : {
14245 : 10 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
14246 : 10 : switch (TREE_CODE (_p1))
14247 : : {
14248 : 10 : case INTEGER_CST:
14249 : 10 : {
14250 : 10 : {
14251 : 10 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
14252 : 10 : tree res = generic_simplify_427 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP16);
14253 : 10 : if (res) return res;
14254 : : }
14255 : 0 : break;
14256 : : }
14257 : : default:;
14258 : : }
14259 : : }
14260 : : break;
14261 : 4 : case CFN_BUILT_IN_BSWAP32:
14262 : 4 : if (call_expr_nargs (_q20) == 1)
14263 : : {
14264 : 4 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
14265 : 4 : switch (TREE_CODE (_p1))
14266 : : {
14267 : 4 : case INTEGER_CST:
14268 : 4 : {
14269 : 4 : {
14270 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
14271 : 4 : tree res = generic_simplify_427 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP32);
14272 : 4 : if (res) return res;
14273 : : }
14274 : 0 : break;
14275 : : }
14276 : : default:;
14277 : : }
14278 : : }
14279 : : break;
14280 : 4 : case CFN_BUILT_IN_BSWAP64:
14281 : 4 : if (call_expr_nargs (_q20) == 1)
14282 : : {
14283 : 4 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
14284 : 4 : switch (TREE_CODE (_p1))
14285 : : {
14286 : 4 : case INTEGER_CST:
14287 : 4 : {
14288 : 4 : {
14289 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
14290 : 4 : tree res = generic_simplify_427 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP64);
14291 : 4 : if (res) return res;
14292 : : }
14293 : 0 : break;
14294 : : }
14295 : : default:;
14296 : : }
14297 : : }
14298 : : break;
14299 : : default:;
14300 : : }
14301 : : break;
14302 : : default:;
14303 : : }
14304 : : break;
14305 : : }
14306 : 6303174 : default:;
14307 : : }
14308 : 6303174 : switch (TREE_CODE (_p1))
14309 : : {
14310 : 4386977 : case INTEGER_CST:
14311 : 4386977 : {
14312 : 4386977 : {
14313 : 4386977 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
14314 : 4386977 : tree res = generic_simplify_423 (loc, type, _p0, _p1, captures);
14315 : 4386977 : if (res) return res;
14316 : : }
14317 : 4386977 : break;
14318 : : }
14319 : 6303174 : default:;
14320 : : }
14321 : 6303174 : switch (TREE_CODE (_p0))
14322 : : {
14323 : 335 : case GT_EXPR:
14324 : 335 : {
14325 : 335 : tree _q20 = TREE_OPERAND (_p0, 0);
14326 : 335 : tree _q21 = TREE_OPERAND (_p0, 1);
14327 : 335 : switch (TREE_CODE (_p1))
14328 : : {
14329 : 38 : case EQ_EXPR:
14330 : 38 : {
14331 : 38 : tree _q50 = TREE_OPERAND (_p1, 0);
14332 : 38 : tree _q51 = TREE_OPERAND (_p1, 1);
14333 : 38 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14334 : : {
14335 : 8 : if (tree_min_value (_q51))
14336 : : {
14337 : 4 : {
14338 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
14339 : 4 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, EQ_EXPR);
14340 : 4 : if (res) return res;
14341 : : }
14342 : : }
14343 : : }
14344 : 34 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14345 : : {
14346 : 0 : if (tree_max_value (_q51))
14347 : : {
14348 : 0 : {
14349 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
14350 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, EQ_EXPR);
14351 : 0 : if (res) return res;
14352 : : }
14353 : : }
14354 : : }
14355 : : break;
14356 : : }
14357 : 4 : case NE_EXPR:
14358 : 4 : {
14359 : 4 : tree _q50 = TREE_OPERAND (_p1, 0);
14360 : 4 : tree _q51 = TREE_OPERAND (_p1, 1);
14361 : 4 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14362 : : {
14363 : 4 : if (tree_min_value (_q51))
14364 : : {
14365 : 4 : {
14366 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
14367 : 4 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, NE_EXPR);
14368 : 4 : if (res) return res;
14369 : : }
14370 : : }
14371 : : }
14372 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14373 : : {
14374 : 0 : if (tree_max_value (_q51))
14375 : : {
14376 : 0 : {
14377 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
14378 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, NE_EXPR);
14379 : 0 : if (res) return res;
14380 : : }
14381 : : }
14382 : : }
14383 : : break;
14384 : : }
14385 : 327 : default:;
14386 : : }
14387 : 327 : switch (TREE_CODE (_q20))
14388 : : {
14389 : 0 : CASE_CONVERT:
14390 : 0 : {
14391 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
14392 : 0 : switch (TREE_CODE (_p1))
14393 : : {
14394 : 0 : case EQ_EXPR:
14395 : 0 : {
14396 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14397 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14398 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
14399 : : {
14400 : 0 : {
14401 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
14402 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
14403 : 0 : if (res) return res;
14404 : : }
14405 : : }
14406 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
14407 : : {
14408 : 0 : {
14409 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
14410 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
14411 : 0 : if (res) return res;
14412 : : }
14413 : : }
14414 : : break;
14415 : : }
14416 : 0 : case NE_EXPR:
14417 : 0 : {
14418 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14419 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14420 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
14421 : : {
14422 : 0 : {
14423 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
14424 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
14425 : 0 : if (res) return res;
14426 : : }
14427 : : }
14428 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
14429 : : {
14430 : 0 : {
14431 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
14432 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
14433 : 0 : if (res) return res;
14434 : : }
14435 : : }
14436 : : break;
14437 : : }
14438 : : default:;
14439 : : }
14440 : : break;
14441 : : }
14442 : 327 : default:;
14443 : : }
14444 : 327 : switch (TREE_CODE (_q21))
14445 : : {
14446 : 0 : CASE_CONVERT:
14447 : 0 : {
14448 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
14449 : 0 : switch (TREE_CODE (_p1))
14450 : : {
14451 : 0 : case EQ_EXPR:
14452 : 0 : {
14453 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14454 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14455 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
14456 : : {
14457 : 0 : {
14458 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
14459 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
14460 : 0 : if (res) return res;
14461 : : }
14462 : : }
14463 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
14464 : : {
14465 : 0 : {
14466 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
14467 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
14468 : 0 : if (res) return res;
14469 : : }
14470 : : }
14471 : : break;
14472 : : }
14473 : 0 : case NE_EXPR:
14474 : 0 : {
14475 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14476 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14477 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
14478 : : {
14479 : 0 : {
14480 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
14481 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
14482 : 0 : if (res) return res;
14483 : : }
14484 : : }
14485 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
14486 : : {
14487 : 0 : {
14488 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
14489 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
14490 : 0 : if (res) return res;
14491 : : }
14492 : : }
14493 : : break;
14494 : : }
14495 : : default:;
14496 : : }
14497 : : break;
14498 : : }
14499 : 327 : default:;
14500 : : }
14501 : 327 : switch (TREE_CODE (_p1))
14502 : : {
14503 : 34 : case EQ_EXPR:
14504 : 34 : {
14505 : 34 : tree _q50 = TREE_OPERAND (_p1, 0);
14506 : 34 : tree _q51 = TREE_OPERAND (_p1, 1);
14507 : 34 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14508 : : {
14509 : 4 : {
14510 : 4 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
14511 : 4 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
14512 : 4 : if (res) return res;
14513 : : }
14514 : : }
14515 : 34 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14516 : : {
14517 : 0 : {
14518 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
14519 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
14520 : 0 : if (res) return res;
14521 : : }
14522 : : }
14523 : 34 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14524 : : {
14525 : 0 : {
14526 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
14527 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
14528 : 0 : if (res) return res;
14529 : : }
14530 : : }
14531 : 34 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14532 : : {
14533 : 0 : {
14534 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
14535 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
14536 : 0 : if (res) return res;
14537 : : }
14538 : : }
14539 : : break;
14540 : : }
14541 : 0 : case NE_EXPR:
14542 : 0 : {
14543 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
14544 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
14545 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14546 : : {
14547 : 0 : {
14548 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
14549 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
14550 : 0 : if (res) return res;
14551 : : }
14552 : : }
14553 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14554 : : {
14555 : 0 : {
14556 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
14557 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
14558 : 0 : if (res) return res;
14559 : : }
14560 : : }
14561 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14562 : : {
14563 : 0 : {
14564 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
14565 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
14566 : 0 : if (res) return res;
14567 : : }
14568 : : }
14569 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14570 : : {
14571 : 0 : {
14572 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
14573 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
14574 : 0 : if (res) return res;
14575 : : }
14576 : : }
14577 : : break;
14578 : : }
14579 : 67 : case LT_EXPR:
14580 : 67 : {
14581 : 67 : tree _q50 = TREE_OPERAND (_p1, 0);
14582 : 67 : tree _q51 = TREE_OPERAND (_p1, 1);
14583 : 67 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14584 : : {
14585 : 4 : {
14586 : 4 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14587 : 4 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
14588 : 4 : if (res) return res;
14589 : : }
14590 : : }
14591 : 67 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14592 : : {
14593 : 0 : {
14594 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14595 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, GT_EXPR);
14596 : 0 : if (res) return res;
14597 : : }
14598 : : }
14599 : 67 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14600 : : {
14601 : 0 : {
14602 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
14603 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, LT_EXPR);
14604 : 0 : if (res) return res;
14605 : : }
14606 : : }
14607 : 67 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14608 : : {
14609 : 4 : {
14610 : 4 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
14611 : 4 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
14612 : 4 : if (res) return res;
14613 : : }
14614 : : }
14615 : : break;
14616 : : }
14617 : 72 : case LE_EXPR:
14618 : 72 : {
14619 : 72 : tree _q50 = TREE_OPERAND (_p1, 0);
14620 : 72 : tree _q51 = TREE_OPERAND (_p1, 1);
14621 : 72 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14622 : : {
14623 : 23 : {
14624 : 23 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14625 : 23 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR);
14626 : 23 : if (res) return res;
14627 : : }
14628 : : }
14629 : 72 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14630 : : {
14631 : 0 : {
14632 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14633 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, GT_EXPR);
14634 : 0 : if (res) return res;
14635 : : }
14636 : : }
14637 : 72 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14638 : : {
14639 : 0 : {
14640 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
14641 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, LT_EXPR);
14642 : 0 : if (res) return res;
14643 : : }
14644 : : }
14645 : 72 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14646 : : {
14647 : 0 : {
14648 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
14649 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, LT_EXPR);
14650 : 0 : if (res) return res;
14651 : : }
14652 : : }
14653 : : break;
14654 : : }
14655 : 85 : case GT_EXPR:
14656 : 85 : {
14657 : 85 : tree _q50 = TREE_OPERAND (_p1, 0);
14658 : 85 : tree _q51 = TREE_OPERAND (_p1, 1);
14659 : 85 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14660 : : {
14661 : 0 : {
14662 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14663 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, GT_EXPR);
14664 : 0 : if (res) return res;
14665 : : }
14666 : : }
14667 : 85 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14668 : : {
14669 : 0 : {
14670 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14671 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
14672 : 0 : if (res) return res;
14673 : : }
14674 : : }
14675 : 85 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14676 : : {
14677 : 0 : {
14678 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
14679 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
14680 : 0 : if (res) return res;
14681 : : }
14682 : : }
14683 : 85 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14684 : : {
14685 : 35 : {
14686 : 35 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
14687 : 35 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, LT_EXPR);
14688 : 35 : if (res) return res;
14689 : : }
14690 : : }
14691 : : break;
14692 : : }
14693 : 0 : case GE_EXPR:
14694 : 0 : {
14695 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
14696 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
14697 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14698 : : {
14699 : 0 : {
14700 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14701 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, GT_EXPR);
14702 : 0 : if (res) return res;
14703 : : }
14704 : : }
14705 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14706 : : {
14707 : 0 : {
14708 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14709 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR);
14710 : 0 : if (res) return res;
14711 : : }
14712 : : }
14713 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14714 : : {
14715 : 0 : {
14716 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
14717 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, LT_EXPR);
14718 : 0 : if (res) return res;
14719 : : }
14720 : : }
14721 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14722 : : {
14723 : 0 : {
14724 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
14725 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, LT_EXPR);
14726 : 0 : if (res) return res;
14727 : : }
14728 : : }
14729 : : break;
14730 : : }
14731 : : default:;
14732 : : }
14733 : : break;
14734 : : }
14735 : 92 : case LT_EXPR:
14736 : 92 : {
14737 : 92 : tree _q20 = TREE_OPERAND (_p0, 0);
14738 : 92 : tree _q21 = TREE_OPERAND (_p0, 1);
14739 : 92 : switch (TREE_CODE (_p1))
14740 : : {
14741 : 35 : case EQ_EXPR:
14742 : 35 : {
14743 : 35 : tree _q50 = TREE_OPERAND (_p1, 0);
14744 : 35 : tree _q51 = TREE_OPERAND (_p1, 1);
14745 : 35 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14746 : : {
14747 : 0 : if (tree_min_value (_q51))
14748 : : {
14749 : 0 : {
14750 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
14751 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, EQ_EXPR);
14752 : 0 : if (res) return res;
14753 : : }
14754 : : }
14755 : : }
14756 : 35 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14757 : : {
14758 : 4 : if (tree_max_value (_q51))
14759 : : {
14760 : 4 : {
14761 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
14762 : 4 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, EQ_EXPR);
14763 : 4 : if (res) return res;
14764 : : }
14765 : : }
14766 : : }
14767 : : break;
14768 : : }
14769 : 6 : case NE_EXPR:
14770 : 6 : {
14771 : 6 : tree _q50 = TREE_OPERAND (_p1, 0);
14772 : 6 : tree _q51 = TREE_OPERAND (_p1, 1);
14773 : 6 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14774 : : {
14775 : 0 : if (tree_min_value (_q51))
14776 : : {
14777 : 0 : {
14778 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
14779 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, NE_EXPR);
14780 : 0 : if (res) return res;
14781 : : }
14782 : : }
14783 : : }
14784 : 6 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14785 : : {
14786 : 4 : if (tree_max_value (_q51))
14787 : : {
14788 : 4 : {
14789 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
14790 : 4 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, NE_EXPR);
14791 : 4 : if (res) return res;
14792 : : }
14793 : : }
14794 : : }
14795 : : break;
14796 : : }
14797 : 84 : default:;
14798 : : }
14799 : 84 : switch (TREE_CODE (_q20))
14800 : : {
14801 : 8 : CASE_CONVERT:
14802 : 8 : {
14803 : 8 : tree _q30 = TREE_OPERAND (_q20, 0);
14804 : 8 : switch (TREE_CODE (_p1))
14805 : : {
14806 : 0 : case EQ_EXPR:
14807 : 0 : {
14808 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14809 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14810 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
14811 : : {
14812 : 0 : {
14813 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
14814 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
14815 : 0 : if (res) return res;
14816 : : }
14817 : : }
14818 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
14819 : : {
14820 : 0 : {
14821 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
14822 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
14823 : 0 : if (res) return res;
14824 : : }
14825 : : }
14826 : : break;
14827 : : }
14828 : 0 : case NE_EXPR:
14829 : 0 : {
14830 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14831 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14832 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
14833 : : {
14834 : 0 : {
14835 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
14836 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
14837 : 0 : if (res) return res;
14838 : : }
14839 : : }
14840 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
14841 : : {
14842 : 0 : {
14843 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
14844 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
14845 : 0 : if (res) return res;
14846 : : }
14847 : : }
14848 : : break;
14849 : : }
14850 : : default:;
14851 : : }
14852 : : break;
14853 : : }
14854 : 84 : default:;
14855 : : }
14856 : 84 : switch (TREE_CODE (_q21))
14857 : : {
14858 : 5 : CASE_CONVERT:
14859 : 5 : {
14860 : 5 : tree _q40 = TREE_OPERAND (_q21, 0);
14861 : 5 : switch (TREE_CODE (_p1))
14862 : : {
14863 : 0 : case EQ_EXPR:
14864 : 0 : {
14865 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14866 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14867 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
14868 : : {
14869 : 0 : {
14870 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
14871 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
14872 : 0 : if (res) return res;
14873 : : }
14874 : : }
14875 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
14876 : : {
14877 : 0 : {
14878 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
14879 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
14880 : 0 : if (res) return res;
14881 : : }
14882 : : }
14883 : : break;
14884 : : }
14885 : 0 : case NE_EXPR:
14886 : 0 : {
14887 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14888 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14889 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
14890 : : {
14891 : 0 : {
14892 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
14893 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
14894 : 0 : if (res) return res;
14895 : : }
14896 : : }
14897 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
14898 : : {
14899 : 0 : {
14900 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
14901 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
14902 : 0 : if (res) return res;
14903 : : }
14904 : : }
14905 : : break;
14906 : : }
14907 : : default:;
14908 : : }
14909 : : break;
14910 : : }
14911 : 84 : default:;
14912 : : }
14913 : 84 : switch (TREE_CODE (_p1))
14914 : : {
14915 : 31 : case EQ_EXPR:
14916 : 31 : {
14917 : 31 : tree _q50 = TREE_OPERAND (_p1, 0);
14918 : 31 : tree _q51 = TREE_OPERAND (_p1, 1);
14919 : 31 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14920 : : {
14921 : 0 : {
14922 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
14923 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
14924 : 0 : if (res) return res;
14925 : : }
14926 : : }
14927 : 31 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14928 : : {
14929 : 0 : {
14930 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
14931 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
14932 : 0 : if (res) return res;
14933 : : }
14934 : : }
14935 : 31 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14936 : : {
14937 : 0 : {
14938 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
14939 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
14940 : 0 : if (res) return res;
14941 : : }
14942 : : }
14943 : 31 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14944 : : {
14945 : 0 : {
14946 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
14947 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
14948 : 0 : if (res) return res;
14949 : : }
14950 : : }
14951 : : break;
14952 : : }
14953 : 2 : case NE_EXPR:
14954 : 2 : {
14955 : 2 : tree _q50 = TREE_OPERAND (_p1, 0);
14956 : 2 : tree _q51 = TREE_OPERAND (_p1, 1);
14957 : 2 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14958 : : {
14959 : 0 : {
14960 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
14961 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
14962 : 0 : if (res) return res;
14963 : : }
14964 : : }
14965 : 2 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14966 : : {
14967 : 0 : {
14968 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
14969 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
14970 : 0 : if (res) return res;
14971 : : }
14972 : : }
14973 : 2 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14974 : : {
14975 : 0 : {
14976 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
14977 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
14978 : 0 : if (res) return res;
14979 : : }
14980 : : }
14981 : 2 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14982 : : {
14983 : 2 : {
14984 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
14985 : 2 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
14986 : 2 : if (res) return res;
14987 : : }
14988 : : }
14989 : : break;
14990 : : }
14991 : 8 : case LT_EXPR:
14992 : 8 : {
14993 : 8 : tree _q50 = TREE_OPERAND (_p1, 0);
14994 : 8 : tree _q51 = TREE_OPERAND (_p1, 1);
14995 : 8 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14996 : : {
14997 : 0 : {
14998 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14999 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, LT_EXPR);
15000 : 0 : if (res) return res;
15001 : : }
15002 : : }
15003 : 8 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15004 : : {
15005 : 0 : {
15006 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
15007 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
15008 : 0 : if (res) return res;
15009 : : }
15010 : : }
15011 : 8 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15012 : : {
15013 : 0 : {
15014 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
15015 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
15016 : 0 : if (res) return res;
15017 : : }
15018 : : }
15019 : 8 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15020 : : {
15021 : 0 : {
15022 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
15023 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, GT_EXPR);
15024 : 0 : if (res) return res;
15025 : : }
15026 : : }
15027 : : break;
15028 : : }
15029 : 0 : case LE_EXPR:
15030 : 0 : {
15031 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15032 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15033 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15034 : : {
15035 : 0 : {
15036 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
15037 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, LT_EXPR);
15038 : 0 : if (res) return res;
15039 : : }
15040 : : }
15041 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15042 : : {
15043 : 0 : {
15044 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
15045 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, LT_EXPR);
15046 : 0 : if (res) return res;
15047 : : }
15048 : : }
15049 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15050 : : {
15051 : 0 : {
15052 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
15053 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR);
15054 : 0 : if (res) return res;
15055 : : }
15056 : : }
15057 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15058 : : {
15059 : 0 : {
15060 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
15061 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, GT_EXPR);
15062 : 0 : if (res) return res;
15063 : : }
15064 : : }
15065 : : break;
15066 : : }
15067 : 5 : case GT_EXPR:
15068 : 5 : {
15069 : 5 : tree _q50 = TREE_OPERAND (_p1, 0);
15070 : 5 : tree _q51 = TREE_OPERAND (_p1, 1);
15071 : 5 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15072 : : {
15073 : 4 : {
15074 : 4 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
15075 : 4 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
15076 : 4 : if (res) return res;
15077 : : }
15078 : : }
15079 : 1 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15080 : : {
15081 : 0 : {
15082 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
15083 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, LT_EXPR);
15084 : 0 : if (res) return res;
15085 : : }
15086 : : }
15087 : 1 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15088 : : {
15089 : 0 : {
15090 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
15091 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, GT_EXPR);
15092 : 0 : if (res) return res;
15093 : : }
15094 : : }
15095 : 1 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15096 : : {
15097 : 0 : {
15098 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
15099 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
15100 : 0 : if (res) return res;
15101 : : }
15102 : : }
15103 : : break;
15104 : : }
15105 : 0 : case GE_EXPR:
15106 : 0 : {
15107 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15108 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15109 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15110 : : {
15111 : 0 : {
15112 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
15113 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, LT_EXPR);
15114 : 0 : if (res) return res;
15115 : : }
15116 : : }
15117 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15118 : : {
15119 : 0 : {
15120 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
15121 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, LT_EXPR);
15122 : 0 : if (res) return res;
15123 : : }
15124 : : }
15125 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15126 : : {
15127 : 0 : {
15128 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
15129 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, GT_EXPR);
15130 : 0 : if (res) return res;
15131 : : }
15132 : : }
15133 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15134 : : {
15135 : 0 : {
15136 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
15137 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR);
15138 : 0 : if (res) return res;
15139 : : }
15140 : : }
15141 : : break;
15142 : : }
15143 : : default:;
15144 : : }
15145 : : break;
15146 : : }
15147 : 1061 : case EQ_EXPR:
15148 : 1061 : {
15149 : 1061 : tree _q20 = TREE_OPERAND (_p0, 0);
15150 : 1061 : tree _q21 = TREE_OPERAND (_p0, 1);
15151 : 1061 : if (tree_min_value (_q21))
15152 : : {
15153 : 40 : switch (TREE_CODE (_p1))
15154 : : {
15155 : 0 : case GT_EXPR:
15156 : 0 : {
15157 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15158 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15159 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15160 : : {
15161 : 0 : {
15162 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q51 };
15163 : 0 : tree res = generic_simplify_433 (loc, type, _p0, _p1, captures, EQ_EXPR);
15164 : 0 : if (res) return res;
15165 : : }
15166 : : }
15167 : : break;
15168 : : }
15169 : 14 : case LT_EXPR:
15170 : 14 : {
15171 : 14 : tree _q50 = TREE_OPERAND (_p1, 0);
15172 : 14 : tree _q51 = TREE_OPERAND (_p1, 1);
15173 : 14 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15174 : : {
15175 : 0 : {
15176 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q50 };
15177 : 0 : tree res = generic_simplify_433 (loc, type, _p0, _p1, captures, EQ_EXPR);
15178 : 0 : if (res) return res;
15179 : : }
15180 : : }
15181 : : break;
15182 : : }
15183 : 0 : case LE_EXPR:
15184 : 0 : {
15185 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15186 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15187 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15188 : : {
15189 : 0 : {
15190 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q51, _p0 };
15191 : 0 : tree res = generic_simplify_434 (loc, type, _p0, _p1, captures);
15192 : 0 : if (res) return res;
15193 : : }
15194 : : }
15195 : : break;
15196 : : }
15197 : 0 : case GE_EXPR:
15198 : 0 : {
15199 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15200 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15201 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15202 : : {
15203 : 0 : {
15204 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q50, _p0 };
15205 : 0 : tree res = generic_simplify_434 (loc, type, _p0, _p1, captures);
15206 : 0 : if (res) return res;
15207 : : }
15208 : : }
15209 : : break;
15210 : : }
15211 : : default:;
15212 : : }
15213 : : }
15214 : 1061 : if (tree_max_value (_q21))
15215 : : {
15216 : 0 : switch (TREE_CODE (_p1))
15217 : : {
15218 : 0 : case LT_EXPR:
15219 : 0 : {
15220 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15221 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15222 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15223 : : {
15224 : 0 : {
15225 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q51 };
15226 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, EQ_EXPR);
15227 : 0 : if (res) return res;
15228 : : }
15229 : : }
15230 : : break;
15231 : : }
15232 : 0 : case GT_EXPR:
15233 : 0 : {
15234 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15235 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15236 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15237 : : {
15238 : 0 : {
15239 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q50 };
15240 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, EQ_EXPR);
15241 : 0 : if (res) return res;
15242 : : }
15243 : : }
15244 : : break;
15245 : : }
15246 : 0 : case GE_EXPR:
15247 : 0 : {
15248 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15249 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15250 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15251 : : {
15252 : 0 : {
15253 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q51, _p0 };
15254 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures);
15255 : 0 : if (res) return res;
15256 : : }
15257 : : }
15258 : : break;
15259 : : }
15260 : 0 : case LE_EXPR:
15261 : 0 : {
15262 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15263 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15264 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15265 : : {
15266 : 0 : {
15267 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q50, _p0 };
15268 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures);
15269 : 0 : if (res) return res;
15270 : : }
15271 : : }
15272 : : break;
15273 : : }
15274 : : default:;
15275 : : }
15276 : : }
15277 : 1061 : switch (TREE_CODE (_p1))
15278 : : {
15279 : 526 : case EQ_EXPR:
15280 : 526 : {
15281 : 526 : tree _q50 = TREE_OPERAND (_p1, 0);
15282 : 526 : tree _q51 = TREE_OPERAND (_p1, 1);
15283 : 526 : switch (TREE_CODE (_q50))
15284 : : {
15285 : 0 : CASE_CONVERT:
15286 : 0 : {
15287 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
15288 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
15289 : : {
15290 : 0 : {
15291 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15292 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15293 : 0 : if (res) return res;
15294 : : }
15295 : : }
15296 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
15297 : : {
15298 : 0 : {
15299 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15300 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15301 : 0 : if (res) return res;
15302 : : }
15303 : : }
15304 : : break;
15305 : : }
15306 : 526 : default:;
15307 : : }
15308 : 526 : switch (TREE_CODE (_q51))
15309 : : {
15310 : 0 : CASE_CONVERT:
15311 : 0 : {
15312 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
15313 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
15314 : : {
15315 : 0 : {
15316 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15317 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15318 : 0 : if (res) return res;
15319 : : }
15320 : : }
15321 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
15322 : : {
15323 : 0 : {
15324 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15325 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15326 : 0 : if (res) return res;
15327 : : }
15328 : : }
15329 : : break;
15330 : : }
15331 : : default:;
15332 : : }
15333 : : break;
15334 : : }
15335 : 33 : case NE_EXPR:
15336 : 33 : {
15337 : 33 : tree _q50 = TREE_OPERAND (_p1, 0);
15338 : 33 : tree _q51 = TREE_OPERAND (_p1, 1);
15339 : 33 : switch (TREE_CODE (_q50))
15340 : : {
15341 : 0 : CASE_CONVERT:
15342 : 0 : {
15343 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
15344 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
15345 : : {
15346 : 0 : {
15347 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15348 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
15349 : 0 : if (res) return res;
15350 : : }
15351 : : }
15352 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
15353 : : {
15354 : 0 : {
15355 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15356 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
15357 : 0 : if (res) return res;
15358 : : }
15359 : : }
15360 : : break;
15361 : : }
15362 : 33 : default:;
15363 : : }
15364 : 33 : switch (TREE_CODE (_q51))
15365 : : {
15366 : 0 : CASE_CONVERT:
15367 : 0 : {
15368 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
15369 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
15370 : : {
15371 : 0 : {
15372 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15373 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
15374 : 0 : if (res) return res;
15375 : : }
15376 : : }
15377 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
15378 : : {
15379 : 0 : {
15380 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15381 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
15382 : 0 : if (res) return res;
15383 : : }
15384 : : }
15385 : : break;
15386 : : }
15387 : : default:;
15388 : : }
15389 : : break;
15390 : : }
15391 : 19 : case LT_EXPR:
15392 : 19 : {
15393 : 19 : tree _q50 = TREE_OPERAND (_p1, 0);
15394 : 19 : tree _q51 = TREE_OPERAND (_p1, 1);
15395 : 19 : switch (TREE_CODE (_q50))
15396 : : {
15397 : 0 : CASE_CONVERT:
15398 : 0 : {
15399 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
15400 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
15401 : : {
15402 : 0 : {
15403 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15404 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15405 : 0 : if (res) return res;
15406 : : }
15407 : : }
15408 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
15409 : : {
15410 : 0 : {
15411 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15412 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15413 : 0 : if (res) return res;
15414 : : }
15415 : : }
15416 : : break;
15417 : : }
15418 : 19 : default:;
15419 : : }
15420 : 19 : switch (TREE_CODE (_q51))
15421 : : {
15422 : 0 : CASE_CONVERT:
15423 : 0 : {
15424 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
15425 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
15426 : : {
15427 : 0 : {
15428 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15429 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15430 : 0 : if (res) return res;
15431 : : }
15432 : : }
15433 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
15434 : : {
15435 : 0 : {
15436 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15437 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15438 : 0 : if (res) return res;
15439 : : }
15440 : : }
15441 : : break;
15442 : : }
15443 : : default:;
15444 : : }
15445 : : break;
15446 : : }
15447 : 12 : case GT_EXPR:
15448 : 12 : {
15449 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
15450 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
15451 : 12 : switch (TREE_CODE (_q50))
15452 : : {
15453 : 0 : CASE_CONVERT:
15454 : 0 : {
15455 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
15456 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
15457 : : {
15458 : 0 : {
15459 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15460 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15461 : 0 : if (res) return res;
15462 : : }
15463 : : }
15464 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
15465 : : {
15466 : 0 : {
15467 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15468 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15469 : 0 : if (res) return res;
15470 : : }
15471 : : }
15472 : : break;
15473 : : }
15474 : 12 : default:;
15475 : : }
15476 : 12 : switch (TREE_CODE (_q51))
15477 : : {
15478 : 0 : CASE_CONVERT:
15479 : 0 : {
15480 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
15481 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
15482 : : {
15483 : 0 : {
15484 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15485 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15486 : 0 : if (res) return res;
15487 : : }
15488 : : }
15489 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
15490 : : {
15491 : 0 : {
15492 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15493 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15494 : 0 : if (res) return res;
15495 : : }
15496 : : }
15497 : : break;
15498 : : }
15499 : : default:;
15500 : : }
15501 : : break;
15502 : : }
15503 : 36 : case LE_EXPR:
15504 : 36 : {
15505 : 36 : tree _q50 = TREE_OPERAND (_p1, 0);
15506 : 36 : tree _q51 = TREE_OPERAND (_p1, 1);
15507 : 36 : switch (TREE_CODE (_q50))
15508 : : {
15509 : 12 : CASE_CONVERT:
15510 : 12 : {
15511 : 12 : tree _q60 = TREE_OPERAND (_q50, 0);
15512 : 12 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
15513 : : {
15514 : 0 : {
15515 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15516 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
15517 : 0 : if (res) return res;
15518 : : }
15519 : : }
15520 : 12 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
15521 : : {
15522 : 0 : {
15523 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15524 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
15525 : 0 : if (res) return res;
15526 : : }
15527 : : }
15528 : : break;
15529 : : }
15530 : 36 : default:;
15531 : : }
15532 : 36 : switch (TREE_CODE (_q51))
15533 : : {
15534 : 0 : CASE_CONVERT:
15535 : 0 : {
15536 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
15537 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
15538 : : {
15539 : 0 : {
15540 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15541 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
15542 : 0 : if (res) return res;
15543 : : }
15544 : : }
15545 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
15546 : : {
15547 : 0 : {
15548 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15549 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
15550 : 0 : if (res) return res;
15551 : : }
15552 : : }
15553 : : break;
15554 : : }
15555 : : default:;
15556 : : }
15557 : : break;
15558 : : }
15559 : 4 : case GE_EXPR:
15560 : 4 : {
15561 : 4 : tree _q50 = TREE_OPERAND (_p1, 0);
15562 : 4 : tree _q51 = TREE_OPERAND (_p1, 1);
15563 : 4 : switch (TREE_CODE (_q50))
15564 : : {
15565 : 0 : CASE_CONVERT:
15566 : 0 : {
15567 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
15568 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
15569 : : {
15570 : 0 : {
15571 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15572 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
15573 : 0 : if (res) return res;
15574 : : }
15575 : : }
15576 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
15577 : : {
15578 : 0 : {
15579 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15580 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
15581 : 0 : if (res) return res;
15582 : : }
15583 : : }
15584 : : break;
15585 : : }
15586 : 4 : default:;
15587 : : }
15588 : 4 : switch (TREE_CODE (_q51))
15589 : : {
15590 : 0 : CASE_CONVERT:
15591 : 0 : {
15592 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
15593 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
15594 : : {
15595 : 0 : {
15596 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15597 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
15598 : 0 : if (res) return res;
15599 : : }
15600 : : }
15601 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
15602 : : {
15603 : 0 : {
15604 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15605 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
15606 : 0 : if (res) return res;
15607 : : }
15608 : : }
15609 : : break;
15610 : : }
15611 : : default:;
15612 : : }
15613 : : break;
15614 : : }
15615 : 1061 : default:;
15616 : : }
15617 : 1061 : switch (TREE_CODE (_q20))
15618 : : {
15619 : 0 : CASE_CONVERT:
15620 : 0 : {
15621 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
15622 : 0 : switch (TREE_CODE (_p1))
15623 : : {
15624 : 0 : case EQ_EXPR:
15625 : 0 : {
15626 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
15627 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
15628 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
15629 : : {
15630 : 0 : {
15631 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
15632 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15633 : 0 : if (res) return res;
15634 : : }
15635 : : }
15636 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
15637 : : {
15638 : 0 : {
15639 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
15640 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15641 : 0 : if (res) return res;
15642 : : }
15643 : : }
15644 : : break;
15645 : : }
15646 : 0 : case NE_EXPR:
15647 : 0 : {
15648 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
15649 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
15650 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
15651 : : {
15652 : 0 : {
15653 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
15654 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15655 : 0 : if (res) return res;
15656 : : }
15657 : : }
15658 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
15659 : : {
15660 : 0 : {
15661 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
15662 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15663 : 0 : if (res) return res;
15664 : : }
15665 : : }
15666 : : break;
15667 : : }
15668 : : default:;
15669 : : }
15670 : : break;
15671 : : }
15672 : 1061 : default:;
15673 : : }
15674 : 1061 : switch (TREE_CODE (_q21))
15675 : : {
15676 : 0 : CASE_CONVERT:
15677 : 0 : {
15678 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
15679 : 0 : switch (TREE_CODE (_p1))
15680 : : {
15681 : 0 : case EQ_EXPR:
15682 : 0 : {
15683 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
15684 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
15685 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
15686 : : {
15687 : 0 : {
15688 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
15689 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15690 : 0 : if (res) return res;
15691 : : }
15692 : : }
15693 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
15694 : : {
15695 : 0 : {
15696 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
15697 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15698 : 0 : if (res) return res;
15699 : : }
15700 : : }
15701 : : break;
15702 : : }
15703 : 0 : case NE_EXPR:
15704 : 0 : {
15705 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
15706 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
15707 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
15708 : : {
15709 : 0 : {
15710 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
15711 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15712 : 0 : if (res) return res;
15713 : : }
15714 : : }
15715 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
15716 : : {
15717 : 0 : {
15718 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
15719 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15720 : 0 : if (res) return res;
15721 : : }
15722 : : }
15723 : : break;
15724 : : }
15725 : : default:;
15726 : : }
15727 : : break;
15728 : : }
15729 : 1061 : default:;
15730 : : }
15731 : 1061 : switch (TREE_CODE (_p1))
15732 : : {
15733 : 526 : case EQ_EXPR:
15734 : 526 : {
15735 : 526 : tree _q50 = TREE_OPERAND (_p1, 0);
15736 : 526 : tree _q51 = TREE_OPERAND (_p1, 1);
15737 : 526 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15738 : : {
15739 : 0 : {
15740 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15741 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15742 : 0 : if (res) return res;
15743 : : }
15744 : 0 : {
15745 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
15746 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15747 : 0 : if (res) return res;
15748 : : }
15749 : : }
15750 : 526 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15751 : : {
15752 : 0 : {
15753 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15754 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15755 : 0 : if (res) return res;
15756 : : }
15757 : : }
15758 : 526 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15759 : : {
15760 : 0 : {
15761 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15762 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15763 : 0 : if (res) return res;
15764 : : }
15765 : 0 : {
15766 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
15767 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15768 : 0 : if (res) return res;
15769 : : }
15770 : : }
15771 : 526 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15772 : : {
15773 : 178 : {
15774 : 178 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15775 : 178 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15776 : 178 : if (res) return res;
15777 : : }
15778 : 178 : {
15779 : 178 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
15780 : 178 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15781 : 178 : if (res) return res;
15782 : : }
15783 : : }
15784 : 526 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15785 : : {
15786 : 0 : {
15787 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
15788 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15789 : 0 : if (res) return res;
15790 : : }
15791 : : }
15792 : : break;
15793 : : }
15794 : 33 : case NE_EXPR:
15795 : 33 : {
15796 : 33 : tree _q50 = TREE_OPERAND (_p1, 0);
15797 : 33 : tree _q51 = TREE_OPERAND (_p1, 1);
15798 : 33 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15799 : : {
15800 : 0 : {
15801 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15802 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
15803 : 0 : if (res) return res;
15804 : : }
15805 : 0 : {
15806 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
15807 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15808 : 0 : if (res) return res;
15809 : : }
15810 : : }
15811 : 33 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15812 : : {
15813 : 0 : {
15814 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15815 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
15816 : 0 : if (res) return res;
15817 : : }
15818 : : }
15819 : 33 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15820 : : {
15821 : 0 : {
15822 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15823 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
15824 : 0 : if (res) return res;
15825 : : }
15826 : 0 : {
15827 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
15828 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15829 : 0 : if (res) return res;
15830 : : }
15831 : : }
15832 : 33 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15833 : : {
15834 : 11 : {
15835 : 11 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15836 : 11 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
15837 : 11 : if (res) return res;
15838 : : }
15839 : 11 : {
15840 : 11 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
15841 : 11 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15842 : 11 : if (res) return res;
15843 : : }
15844 : : }
15845 : 33 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15846 : : {
15847 : 0 : {
15848 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
15849 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15850 : 0 : if (res) return res;
15851 : : }
15852 : : }
15853 : : break;
15854 : : }
15855 : 19 : case LT_EXPR:
15856 : 19 : {
15857 : 19 : tree _q50 = TREE_OPERAND (_p1, 0);
15858 : 19 : tree _q51 = TREE_OPERAND (_p1, 1);
15859 : 19 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15860 : : {
15861 : 0 : {
15862 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15863 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15864 : 0 : if (res) return res;
15865 : : }
15866 : : }
15867 : 19 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15868 : : {
15869 : 0 : {
15870 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15871 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15872 : 0 : if (res) return res;
15873 : : }
15874 : : }
15875 : 19 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15876 : : {
15877 : 0 : {
15878 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15879 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15880 : 0 : if (res) return res;
15881 : : }
15882 : : }
15883 : 19 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15884 : : {
15885 : 0 : {
15886 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15887 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15888 : 0 : if (res) return res;
15889 : : }
15890 : : }
15891 : : break;
15892 : : }
15893 : 12 : case GT_EXPR:
15894 : 12 : {
15895 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
15896 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
15897 : 12 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15898 : : {
15899 : 0 : {
15900 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15901 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15902 : 0 : if (res) return res;
15903 : : }
15904 : : }
15905 : 12 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15906 : : {
15907 : 0 : {
15908 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15909 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15910 : 0 : if (res) return res;
15911 : : }
15912 : : }
15913 : 12 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15914 : : {
15915 : 0 : {
15916 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15917 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15918 : 0 : if (res) return res;
15919 : : }
15920 : : }
15921 : 12 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15922 : : {
15923 : 0 : {
15924 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15925 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15926 : 0 : if (res) return res;
15927 : : }
15928 : : }
15929 : : break;
15930 : : }
15931 : 36 : case LE_EXPR:
15932 : 36 : {
15933 : 36 : tree _q50 = TREE_OPERAND (_p1, 0);
15934 : 36 : tree _q51 = TREE_OPERAND (_p1, 1);
15935 : 36 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15936 : : {
15937 : 0 : {
15938 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15939 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
15940 : 0 : if (res) return res;
15941 : : }
15942 : : }
15943 : 36 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15944 : : {
15945 : 0 : {
15946 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15947 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
15948 : 0 : if (res) return res;
15949 : : }
15950 : : }
15951 : 36 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15952 : : {
15953 : 0 : {
15954 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15955 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
15956 : 0 : if (res) return res;
15957 : : }
15958 : : }
15959 : 36 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15960 : : {
15961 : 0 : {
15962 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15963 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
15964 : 0 : if (res) return res;
15965 : : }
15966 : : }
15967 : : break;
15968 : : }
15969 : 4 : case GE_EXPR:
15970 : 4 : {
15971 : 4 : tree _q50 = TREE_OPERAND (_p1, 0);
15972 : 4 : tree _q51 = TREE_OPERAND (_p1, 1);
15973 : 4 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15974 : : {
15975 : 0 : {
15976 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15977 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
15978 : 0 : if (res) return res;
15979 : : }
15980 : : }
15981 : 4 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15982 : : {
15983 : 0 : {
15984 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15985 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
15986 : 0 : if (res) return res;
15987 : : }
15988 : : }
15989 : 4 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15990 : : {
15991 : 0 : {
15992 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15993 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
15994 : 0 : if (res) return res;
15995 : : }
15996 : : }
15997 : 4 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15998 : : {
15999 : 0 : {
16000 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16001 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
16002 : 0 : if (res) return res;
16003 : : }
16004 : : }
16005 : : break;
16006 : : }
16007 : : default:;
16008 : : }
16009 : : break;
16010 : : }
16011 : 130 : case NE_EXPR:
16012 : 130 : {
16013 : 130 : tree _q20 = TREE_OPERAND (_p0, 0);
16014 : 130 : tree _q21 = TREE_OPERAND (_p0, 1);
16015 : 130 : if (tree_min_value (_q21))
16016 : : {
16017 : 16 : switch (TREE_CODE (_p1))
16018 : : {
16019 : 0 : case GT_EXPR:
16020 : 0 : {
16021 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16022 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16023 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16024 : : {
16025 : 0 : {
16026 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q51 };
16027 : 0 : tree res = generic_simplify_433 (loc, type, _p0, _p1, captures, NE_EXPR);
16028 : 0 : if (res) return res;
16029 : : }
16030 : : }
16031 : : break;
16032 : : }
16033 : 0 : case LT_EXPR:
16034 : 0 : {
16035 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16036 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16037 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16038 : : {
16039 : 0 : {
16040 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q50 };
16041 : 0 : tree res = generic_simplify_433 (loc, type, _p0, _p1, captures, NE_EXPR);
16042 : 0 : if (res) return res;
16043 : : }
16044 : : }
16045 : : break;
16046 : : }
16047 : 3 : case GE_EXPR:
16048 : 3 : {
16049 : 3 : tree _q50 = TREE_OPERAND (_p1, 0);
16050 : 3 : tree _q51 = TREE_OPERAND (_p1, 1);
16051 : 3 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16052 : : {
16053 : 3 : {
16054 : 3 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q50 };
16055 : 3 : tree res = generic_simplify_439 (loc, type, _p0, _p1, captures);
16056 : 3 : if (res) return res;
16057 : : }
16058 : : }
16059 : : break;
16060 : : }
16061 : 0 : case LE_EXPR:
16062 : 0 : {
16063 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16064 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16065 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16066 : : {
16067 : 0 : {
16068 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q51 };
16069 : 0 : tree res = generic_simplify_439 (loc, type, _p0, _p1, captures);
16070 : 0 : if (res) return res;
16071 : : }
16072 : : }
16073 : : break;
16074 : : }
16075 : : default:;
16076 : : }
16077 : : }
16078 : 127 : if (tree_max_value (_q21))
16079 : : {
16080 : 0 : switch (TREE_CODE (_p1))
16081 : : {
16082 : 0 : case LT_EXPR:
16083 : 0 : {
16084 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16085 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16086 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16087 : : {
16088 : 0 : {
16089 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q51 };
16090 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, NE_EXPR);
16091 : 0 : if (res) return res;
16092 : : }
16093 : : }
16094 : : break;
16095 : : }
16096 : 0 : case GT_EXPR:
16097 : 0 : {
16098 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16099 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16100 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16101 : : {
16102 : 0 : {
16103 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q50 };
16104 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, NE_EXPR);
16105 : 0 : if (res) return res;
16106 : : }
16107 : : }
16108 : : break;
16109 : : }
16110 : : default:;
16111 : : }
16112 : : }
16113 : 127 : switch (TREE_CODE (_p1))
16114 : : {
16115 : 12 : case EQ_EXPR:
16116 : 12 : {
16117 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
16118 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
16119 : 12 : switch (TREE_CODE (_q50))
16120 : : {
16121 : 0 : CASE_CONVERT:
16122 : 0 : {
16123 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
16124 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
16125 : : {
16126 : 0 : {
16127 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16128 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16129 : 0 : if (res) return res;
16130 : : }
16131 : : }
16132 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
16133 : : {
16134 : 0 : {
16135 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16136 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16137 : 0 : if (res) return res;
16138 : : }
16139 : : }
16140 : : break;
16141 : : }
16142 : 12 : default:;
16143 : : }
16144 : 12 : switch (TREE_CODE (_q51))
16145 : : {
16146 : 0 : CASE_CONVERT:
16147 : 0 : {
16148 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
16149 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
16150 : : {
16151 : 0 : {
16152 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16153 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16154 : 0 : if (res) return res;
16155 : : }
16156 : : }
16157 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
16158 : : {
16159 : 0 : {
16160 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16161 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16162 : 0 : if (res) return res;
16163 : : }
16164 : : }
16165 : : break;
16166 : : }
16167 : : default:;
16168 : : }
16169 : : break;
16170 : : }
16171 : 2 : case NE_EXPR:
16172 : 2 : {
16173 : 2 : tree _q50 = TREE_OPERAND (_p1, 0);
16174 : 2 : tree _q51 = TREE_OPERAND (_p1, 1);
16175 : 2 : switch (TREE_CODE (_q50))
16176 : : {
16177 : 0 : CASE_CONVERT:
16178 : 0 : {
16179 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
16180 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
16181 : : {
16182 : 0 : {
16183 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16184 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16185 : 0 : if (res) return res;
16186 : : }
16187 : : }
16188 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
16189 : : {
16190 : 0 : {
16191 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16192 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16193 : 0 : if (res) return res;
16194 : : }
16195 : : }
16196 : : break;
16197 : : }
16198 : 2 : default:;
16199 : : }
16200 : 2 : switch (TREE_CODE (_q51))
16201 : : {
16202 : 0 : CASE_CONVERT:
16203 : 0 : {
16204 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
16205 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
16206 : : {
16207 : 0 : {
16208 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16209 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16210 : 0 : if (res) return res;
16211 : : }
16212 : : }
16213 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
16214 : : {
16215 : 0 : {
16216 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16217 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16218 : 0 : if (res) return res;
16219 : : }
16220 : : }
16221 : : break;
16222 : : }
16223 : : default:;
16224 : : }
16225 : : break;
16226 : : }
16227 : 0 : case LT_EXPR:
16228 : 0 : {
16229 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16230 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16231 : 0 : switch (TREE_CODE (_q50))
16232 : : {
16233 : 0 : CASE_CONVERT:
16234 : 0 : {
16235 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
16236 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
16237 : : {
16238 : 0 : {
16239 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16240 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
16241 : 0 : if (res) return res;
16242 : : }
16243 : : }
16244 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
16245 : : {
16246 : 0 : {
16247 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16248 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
16249 : 0 : if (res) return res;
16250 : : }
16251 : : }
16252 : : break;
16253 : : }
16254 : 0 : default:;
16255 : : }
16256 : 0 : switch (TREE_CODE (_q51))
16257 : : {
16258 : 0 : CASE_CONVERT:
16259 : 0 : {
16260 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
16261 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
16262 : : {
16263 : 0 : {
16264 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16265 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
16266 : 0 : if (res) return res;
16267 : : }
16268 : : }
16269 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
16270 : : {
16271 : 0 : {
16272 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16273 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
16274 : 0 : if (res) return res;
16275 : : }
16276 : : }
16277 : : break;
16278 : : }
16279 : : default:;
16280 : : }
16281 : : break;
16282 : : }
16283 : 4 : case GT_EXPR:
16284 : 4 : {
16285 : 4 : tree _q50 = TREE_OPERAND (_p1, 0);
16286 : 4 : tree _q51 = TREE_OPERAND (_p1, 1);
16287 : 4 : switch (TREE_CODE (_q50))
16288 : : {
16289 : 0 : CASE_CONVERT:
16290 : 0 : {
16291 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
16292 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
16293 : : {
16294 : 0 : {
16295 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16296 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
16297 : 0 : if (res) return res;
16298 : : }
16299 : : }
16300 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
16301 : : {
16302 : 0 : {
16303 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16304 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
16305 : 0 : if (res) return res;
16306 : : }
16307 : : }
16308 : : break;
16309 : : }
16310 : 4 : default:;
16311 : : }
16312 : 4 : switch (TREE_CODE (_q51))
16313 : : {
16314 : 0 : CASE_CONVERT:
16315 : 0 : {
16316 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
16317 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
16318 : : {
16319 : 0 : {
16320 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16321 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
16322 : 0 : if (res) return res;
16323 : : }
16324 : : }
16325 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
16326 : : {
16327 : 0 : {
16328 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16329 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
16330 : 0 : if (res) return res;
16331 : : }
16332 : : }
16333 : : break;
16334 : : }
16335 : : default:;
16336 : : }
16337 : : break;
16338 : : }
16339 : 0 : case LE_EXPR:
16340 : 0 : {
16341 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16342 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16343 : 0 : switch (TREE_CODE (_q50))
16344 : : {
16345 : 0 : CASE_CONVERT:
16346 : 0 : {
16347 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
16348 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
16349 : : {
16350 : 0 : {
16351 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16352 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16353 : 0 : if (res) return res;
16354 : : }
16355 : : }
16356 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
16357 : : {
16358 : 0 : {
16359 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16360 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16361 : 0 : if (res) return res;
16362 : : }
16363 : : }
16364 : : break;
16365 : : }
16366 : 0 : default:;
16367 : : }
16368 : 0 : switch (TREE_CODE (_q51))
16369 : : {
16370 : 0 : CASE_CONVERT:
16371 : 0 : {
16372 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
16373 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
16374 : : {
16375 : 0 : {
16376 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16377 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16378 : 0 : if (res) return res;
16379 : : }
16380 : : }
16381 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
16382 : : {
16383 : 0 : {
16384 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16385 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16386 : 0 : if (res) return res;
16387 : : }
16388 : : }
16389 : : break;
16390 : : }
16391 : : default:;
16392 : : }
16393 : : break;
16394 : : }
16395 : 14 : case GE_EXPR:
16396 : 14 : {
16397 : 14 : tree _q50 = TREE_OPERAND (_p1, 0);
16398 : 14 : tree _q51 = TREE_OPERAND (_p1, 1);
16399 : 14 : switch (TREE_CODE (_q50))
16400 : : {
16401 : 0 : CASE_CONVERT:
16402 : 0 : {
16403 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
16404 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
16405 : : {
16406 : 0 : {
16407 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16408 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16409 : 0 : if (res) return res;
16410 : : }
16411 : : }
16412 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
16413 : : {
16414 : 0 : {
16415 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16416 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16417 : 0 : if (res) return res;
16418 : : }
16419 : : }
16420 : : break;
16421 : : }
16422 : 14 : default:;
16423 : : }
16424 : 14 : switch (TREE_CODE (_q51))
16425 : : {
16426 : 0 : CASE_CONVERT:
16427 : 0 : {
16428 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
16429 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
16430 : : {
16431 : 0 : {
16432 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16433 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16434 : 0 : if (res) return res;
16435 : : }
16436 : : }
16437 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
16438 : : {
16439 : 0 : {
16440 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16441 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16442 : 0 : if (res) return res;
16443 : : }
16444 : : }
16445 : : break;
16446 : : }
16447 : : default:;
16448 : : }
16449 : : break;
16450 : : }
16451 : 127 : default:;
16452 : : }
16453 : 127 : switch (TREE_CODE (_q20))
16454 : : {
16455 : 0 : CASE_CONVERT:
16456 : 0 : {
16457 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
16458 : 0 : switch (TREE_CODE (_p1))
16459 : : {
16460 : 0 : case EQ_EXPR:
16461 : 0 : {
16462 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
16463 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
16464 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
16465 : : {
16466 : 0 : {
16467 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
16468 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16469 : 0 : if (res) return res;
16470 : : }
16471 : : }
16472 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
16473 : : {
16474 : 0 : {
16475 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
16476 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16477 : 0 : if (res) return res;
16478 : : }
16479 : : }
16480 : : break;
16481 : : }
16482 : 0 : case NE_EXPR:
16483 : 0 : {
16484 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
16485 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
16486 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
16487 : : {
16488 : 0 : {
16489 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
16490 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16491 : 0 : if (res) return res;
16492 : : }
16493 : : }
16494 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
16495 : : {
16496 : 0 : {
16497 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
16498 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16499 : 0 : if (res) return res;
16500 : : }
16501 : : }
16502 : : break;
16503 : : }
16504 : : default:;
16505 : : }
16506 : : break;
16507 : : }
16508 : 127 : default:;
16509 : : }
16510 : 127 : switch (TREE_CODE (_q21))
16511 : : {
16512 : 0 : CASE_CONVERT:
16513 : 0 : {
16514 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
16515 : 0 : switch (TREE_CODE (_p1))
16516 : : {
16517 : 0 : case EQ_EXPR:
16518 : 0 : {
16519 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
16520 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
16521 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
16522 : : {
16523 : 0 : {
16524 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
16525 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16526 : 0 : if (res) return res;
16527 : : }
16528 : : }
16529 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
16530 : : {
16531 : 0 : {
16532 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
16533 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16534 : 0 : if (res) return res;
16535 : : }
16536 : : }
16537 : : break;
16538 : : }
16539 : 0 : case NE_EXPR:
16540 : 0 : {
16541 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
16542 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
16543 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
16544 : : {
16545 : 0 : {
16546 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
16547 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16548 : 0 : if (res) return res;
16549 : : }
16550 : : }
16551 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
16552 : : {
16553 : 0 : {
16554 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
16555 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16556 : 0 : if (res) return res;
16557 : : }
16558 : : }
16559 : : break;
16560 : : }
16561 : : default:;
16562 : : }
16563 : : break;
16564 : : }
16565 : 127 : default:;
16566 : : }
16567 : 127 : switch (TREE_CODE (_p1))
16568 : : {
16569 : 12 : case EQ_EXPR:
16570 : 12 : {
16571 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
16572 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
16573 : 12 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16574 : : {
16575 : 0 : {
16576 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16577 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16578 : 0 : if (res) return res;
16579 : : }
16580 : 0 : {
16581 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
16582 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16583 : 0 : if (res) return res;
16584 : : }
16585 : : }
16586 : 12 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16587 : : {
16588 : 0 : {
16589 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16590 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16591 : 0 : if (res) return res;
16592 : : }
16593 : : }
16594 : 12 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16595 : : {
16596 : 0 : {
16597 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16598 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16599 : 0 : if (res) return res;
16600 : : }
16601 : 0 : {
16602 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
16603 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16604 : 0 : if (res) return res;
16605 : : }
16606 : : }
16607 : 12 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16608 : : {
16609 : 4 : {
16610 : 4 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16611 : 4 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16612 : 4 : if (res) return res;
16613 : : }
16614 : 4 : {
16615 : 4 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
16616 : 4 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16617 : 4 : if (res) return res;
16618 : : }
16619 : : }
16620 : 12 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16621 : : {
16622 : 0 : {
16623 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
16624 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16625 : 0 : if (res) return res;
16626 : : }
16627 : : }
16628 : : break;
16629 : : }
16630 : 2 : case NE_EXPR:
16631 : 2 : {
16632 : 2 : tree _q50 = TREE_OPERAND (_p1, 0);
16633 : 2 : tree _q51 = TREE_OPERAND (_p1, 1);
16634 : 2 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16635 : : {
16636 : 2 : {
16637 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16638 : 2 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16639 : 2 : if (res) return res;
16640 : : }
16641 : 2 : {
16642 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
16643 : 2 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16644 : 2 : if (res) return res;
16645 : : }
16646 : : }
16647 : 2 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16648 : : {
16649 : 0 : {
16650 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16651 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16652 : 0 : if (res) return res;
16653 : : }
16654 : : }
16655 : 2 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16656 : : {
16657 : 0 : {
16658 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16659 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16660 : 0 : if (res) return res;
16661 : : }
16662 : 0 : {
16663 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
16664 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16665 : 0 : if (res) return res;
16666 : : }
16667 : : }
16668 : 2 : 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, NE_EXPR, NE_EXPR);
16673 : 0 : if (res) return res;
16674 : : }
16675 : 0 : {
16676 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
16677 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16678 : 0 : if (res) return res;
16679 : : }
16680 : : }
16681 : 2 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16682 : : {
16683 : 0 : {
16684 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
16685 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16686 : 0 : if (res) return res;
16687 : : }
16688 : : }
16689 : : break;
16690 : : }
16691 : 0 : case LT_EXPR:
16692 : 0 : {
16693 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16694 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16695 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16696 : : {
16697 : 0 : {
16698 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16699 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
16700 : 0 : if (res) return res;
16701 : : }
16702 : : }
16703 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16704 : : {
16705 : 0 : {
16706 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16707 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
16708 : 0 : if (res) return res;
16709 : : }
16710 : : }
16711 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16712 : : {
16713 : 0 : {
16714 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16715 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
16716 : 0 : if (res) return res;
16717 : : }
16718 : : }
16719 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16720 : : {
16721 : 0 : {
16722 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16723 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
16724 : 0 : if (res) return res;
16725 : : }
16726 : : }
16727 : : break;
16728 : : }
16729 : 4 : case GT_EXPR:
16730 : 4 : {
16731 : 4 : tree _q50 = TREE_OPERAND (_p1, 0);
16732 : 4 : tree _q51 = TREE_OPERAND (_p1, 1);
16733 : 4 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16734 : : {
16735 : 4 : {
16736 : 4 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16737 : 4 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
16738 : 4 : if (res) return res;
16739 : : }
16740 : : }
16741 : 4 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16742 : : {
16743 : 0 : {
16744 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16745 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
16746 : 0 : if (res) return res;
16747 : : }
16748 : : }
16749 : 4 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16750 : : {
16751 : 0 : {
16752 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16753 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
16754 : 0 : if (res) return res;
16755 : : }
16756 : : }
16757 : 4 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16758 : : {
16759 : 0 : {
16760 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16761 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
16762 : 0 : if (res) return res;
16763 : : }
16764 : : }
16765 : : break;
16766 : : }
16767 : 0 : case LE_EXPR:
16768 : 0 : {
16769 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16770 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16771 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16772 : : {
16773 : 0 : {
16774 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16775 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16776 : 0 : if (res) return res;
16777 : : }
16778 : : }
16779 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16780 : : {
16781 : 0 : {
16782 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16783 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16784 : 0 : if (res) return res;
16785 : : }
16786 : : }
16787 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16788 : : {
16789 : 0 : {
16790 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16791 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16792 : 0 : if (res) return res;
16793 : : }
16794 : : }
16795 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16796 : : {
16797 : 0 : {
16798 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16799 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16800 : 0 : if (res) return res;
16801 : : }
16802 : : }
16803 : : break;
16804 : : }
16805 : 14 : case GE_EXPR:
16806 : 14 : {
16807 : 14 : tree _q50 = TREE_OPERAND (_p1, 0);
16808 : 14 : tree _q51 = TREE_OPERAND (_p1, 1);
16809 : 14 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16810 : : {
16811 : 0 : {
16812 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16813 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16814 : 0 : if (res) return res;
16815 : : }
16816 : : }
16817 : 14 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16818 : : {
16819 : 0 : {
16820 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16821 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16822 : 0 : if (res) return res;
16823 : : }
16824 : : }
16825 : 14 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16826 : : {
16827 : 0 : {
16828 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16829 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16830 : 0 : if (res) return res;
16831 : : }
16832 : : }
16833 : 14 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16834 : : {
16835 : 14 : {
16836 : 14 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16837 : 14 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16838 : 14 : if (res) return res;
16839 : : }
16840 : : }
16841 : : break;
16842 : : }
16843 : : default:;
16844 : : }
16845 : : break;
16846 : : }
16847 : 36 : case LE_EXPR:
16848 : 36 : {
16849 : 36 : tree _q20 = TREE_OPERAND (_p0, 0);
16850 : 36 : tree _q21 = TREE_OPERAND (_p0, 1);
16851 : 36 : switch (TREE_CODE (_p1))
16852 : : {
16853 : 16 : case EQ_EXPR:
16854 : 16 : {
16855 : 16 : tree _q50 = TREE_OPERAND (_p1, 0);
16856 : 16 : tree _q51 = TREE_OPERAND (_p1, 1);
16857 : 16 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16858 : : {
16859 : 4 : if (tree_min_value (_q51))
16860 : : {
16861 : 4 : {
16862 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
16863 : 4 : tree res = generic_simplify_440 (loc, type, _p0, _p1, captures);
16864 : 4 : if (res) return res;
16865 : : }
16866 : : }
16867 : : }
16868 : 12 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16869 : : {
16870 : 0 : if (tree_max_value (_q51))
16871 : : {
16872 : 0 : {
16873 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _p1 };
16874 : 0 : tree res = generic_simplify_441 (loc, type, _p0, _p1, captures);
16875 : 0 : if (res) return res;
16876 : : }
16877 : : }
16878 : : }
16879 : : break;
16880 : : }
16881 : 0 : case NE_EXPR:
16882 : 0 : {
16883 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16884 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16885 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16886 : : {
16887 : 0 : if (tree_min_value (_q51))
16888 : : {
16889 : 0 : {
16890 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q20, _p0, _q21 };
16891 : 0 : tree res = generic_simplify_442 (loc, type, _p0, _p1, captures);
16892 : 0 : if (res) return res;
16893 : : }
16894 : : }
16895 : : }
16896 : : break;
16897 : : }
16898 : 32 : default:;
16899 : : }
16900 : 32 : switch (TREE_CODE (_q20))
16901 : : {
16902 : 0 : CASE_CONVERT:
16903 : 0 : {
16904 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
16905 : 0 : switch (TREE_CODE (_p1))
16906 : : {
16907 : 0 : case EQ_EXPR:
16908 : 0 : {
16909 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
16910 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
16911 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
16912 : : {
16913 : 0 : {
16914 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
16915 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
16916 : 0 : if (res) return res;
16917 : : }
16918 : : }
16919 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
16920 : : {
16921 : 0 : {
16922 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
16923 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
16924 : 0 : if (res) return res;
16925 : : }
16926 : : }
16927 : : break;
16928 : : }
16929 : 0 : case NE_EXPR:
16930 : 0 : {
16931 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
16932 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
16933 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
16934 : : {
16935 : 0 : {
16936 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
16937 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16938 : 0 : if (res) return res;
16939 : : }
16940 : : }
16941 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
16942 : : {
16943 : 0 : {
16944 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
16945 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16946 : 0 : if (res) return res;
16947 : : }
16948 : : }
16949 : : break;
16950 : : }
16951 : : default:;
16952 : : }
16953 : : break;
16954 : : }
16955 : 32 : default:;
16956 : : }
16957 : 32 : switch (TREE_CODE (_q21))
16958 : : {
16959 : 0 : CASE_CONVERT:
16960 : 0 : {
16961 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
16962 : 0 : switch (TREE_CODE (_p1))
16963 : : {
16964 : 0 : case EQ_EXPR:
16965 : 0 : {
16966 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
16967 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
16968 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
16969 : : {
16970 : 0 : {
16971 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
16972 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
16973 : 0 : if (res) return res;
16974 : : }
16975 : : }
16976 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
16977 : : {
16978 : 0 : {
16979 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
16980 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
16981 : 0 : if (res) return res;
16982 : : }
16983 : : }
16984 : : break;
16985 : : }
16986 : 0 : case NE_EXPR:
16987 : 0 : {
16988 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
16989 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
16990 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
16991 : : {
16992 : 0 : {
16993 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
16994 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16995 : 0 : if (res) return res;
16996 : : }
16997 : : }
16998 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
16999 : : {
17000 : 0 : {
17001 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
17002 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
17003 : 0 : if (res) return res;
17004 : : }
17005 : : }
17006 : : break;
17007 : : }
17008 : : default:;
17009 : : }
17010 : : break;
17011 : : }
17012 : 32 : default:;
17013 : : }
17014 : 32 : switch (TREE_CODE (_p1))
17015 : : {
17016 : 12 : case EQ_EXPR:
17017 : 12 : {
17018 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
17019 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
17020 : 12 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17021 : : {
17022 : 0 : {
17023 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
17024 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
17025 : 0 : if (res) return res;
17026 : : }
17027 : : }
17028 : 12 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17029 : : {
17030 : 0 : {
17031 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
17032 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
17033 : 0 : if (res) return res;
17034 : : }
17035 : : }
17036 : 12 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17037 : : {
17038 : 0 : {
17039 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
17040 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
17041 : 0 : if (res) return res;
17042 : : }
17043 : : }
17044 : 12 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17045 : : {
17046 : 0 : {
17047 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
17048 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
17049 : 0 : if (res) return res;
17050 : : }
17051 : : }
17052 : : break;
17053 : : }
17054 : 0 : case NE_EXPR:
17055 : 0 : {
17056 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
17057 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
17058 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17059 : : {
17060 : 0 : {
17061 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
17062 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
17063 : 0 : if (res) return res;
17064 : : }
17065 : : }
17066 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17067 : : {
17068 : 0 : {
17069 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
17070 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
17071 : 0 : if (res) return res;
17072 : : }
17073 : : }
17074 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17075 : : {
17076 : 0 : {
17077 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
17078 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
17079 : 0 : if (res) return res;
17080 : : }
17081 : : }
17082 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17083 : : {
17084 : 0 : {
17085 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
17086 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
17087 : 0 : if (res) return res;
17088 : : }
17089 : : }
17090 : : break;
17091 : : }
17092 : 0 : case LT_EXPR:
17093 : 0 : {
17094 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
17095 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
17096 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17097 : : {
17098 : 0 : {
17099 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
17100 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, LE_EXPR);
17101 : 0 : if (res) return res;
17102 : : }
17103 : : }
17104 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17105 : : {
17106 : 0 : {
17107 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
17108 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
17109 : 0 : if (res) return res;
17110 : : }
17111 : : }
17112 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17113 : : {
17114 : 0 : {
17115 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
17116 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR);
17117 : 0 : if (res) return res;
17118 : : }
17119 : : }
17120 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17121 : : {
17122 : 0 : {
17123 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
17124 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, GE_EXPR);
17125 : 0 : if (res) return res;
17126 : : }
17127 : : }
17128 : : break;
17129 : : }
17130 : 5 : case LE_EXPR:
17131 : 5 : {
17132 : 5 : tree _q50 = TREE_OPERAND (_p1, 0);
17133 : 5 : tree _q51 = TREE_OPERAND (_p1, 1);
17134 : 5 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17135 : : {
17136 : 0 : {
17137 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
17138 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, LE_EXPR);
17139 : 0 : if (res) return res;
17140 : : }
17141 : : }
17142 : 5 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17143 : : {
17144 : 0 : {
17145 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
17146 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, LE_EXPR);
17147 : 0 : if (res) return res;
17148 : : }
17149 : : }
17150 : 5 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17151 : : {
17152 : 0 : {
17153 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
17154 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR);
17155 : 0 : if (res) return res;
17156 : : }
17157 : : }
17158 : 5 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17159 : : {
17160 : 4 : {
17161 : 4 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
17162 : 4 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, GE_EXPR);
17163 : 4 : if (res) return res;
17164 : : }
17165 : : }
17166 : : break;
17167 : : }
17168 : 4 : case GT_EXPR:
17169 : 4 : {
17170 : 4 : tree _q50 = TREE_OPERAND (_p1, 0);
17171 : 4 : tree _q51 = TREE_OPERAND (_p1, 1);
17172 : 4 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17173 : : {
17174 : 0 : {
17175 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
17176 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
17177 : 0 : if (res) return res;
17178 : : }
17179 : : }
17180 : 4 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17181 : : {
17182 : 0 : {
17183 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
17184 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, LE_EXPR);
17185 : 0 : if (res) return res;
17186 : : }
17187 : : }
17188 : 4 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17189 : : {
17190 : 0 : {
17191 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
17192 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, GE_EXPR);
17193 : 0 : if (res) return res;
17194 : : }
17195 : : }
17196 : 4 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17197 : : {
17198 : 0 : {
17199 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
17200 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR);
17201 : 0 : if (res) return res;
17202 : : }
17203 : : }
17204 : : break;
17205 : : }
17206 : 0 : case GE_EXPR:
17207 : 0 : {
17208 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
17209 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
17210 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17211 : : {
17212 : 0 : {
17213 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
17214 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, LE_EXPR);
17215 : 0 : if (res) return res;
17216 : : }
17217 : : }
17218 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17219 : : {
17220 : 0 : {
17221 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
17222 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, LE_EXPR);
17223 : 0 : if (res) return res;
17224 : : }
17225 : : }
17226 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17227 : : {
17228 : 0 : {
17229 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
17230 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, GE_EXPR);
17231 : 0 : if (res) return res;
17232 : : }
17233 : : }
17234 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17235 : : {
17236 : 0 : {
17237 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
17238 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR);
17239 : 0 : if (res) return res;
17240 : : }
17241 : : }
17242 : : break;
17243 : : }
17244 : : default:;
17245 : : }
17246 : : break;
17247 : : }
17248 : 57 : case GE_EXPR:
17249 : 57 : {
17250 : 57 : tree _q20 = TREE_OPERAND (_p0, 0);
17251 : 57 : tree _q21 = TREE_OPERAND (_p0, 1);
17252 : 57 : switch (TREE_CODE (_p1))
17253 : : {
17254 : 10 : case EQ_EXPR:
17255 : 10 : {
17256 : 10 : tree _q50 = TREE_OPERAND (_p1, 0);
17257 : 10 : tree _q51 = TREE_OPERAND (_p1, 1);
17258 : 10 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17259 : : {
17260 : 0 : if (tree_min_value (_q51))
17261 : : {
17262 : 0 : {
17263 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _p1 };
17264 : 0 : tree res = generic_simplify_440 (loc, type, _p0, _p1, captures);
17265 : 0 : if (res) return res;
17266 : : }
17267 : : }
17268 : : }
17269 : 10 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17270 : : {
17271 : 4 : if (tree_max_value (_q51))
17272 : : {
17273 : 4 : {
17274 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
17275 : 4 : tree res = generic_simplify_441 (loc, type, _p0, _p1, captures);
17276 : 4 : if (res) return res;
17277 : : }
17278 : : }
17279 : : }
17280 : : break;
17281 : : }
17282 : 0 : case NE_EXPR:
17283 : 0 : {
17284 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
17285 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
17286 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17287 : : {
17288 : 0 : if (tree_min_value (_q51))
17289 : : {
17290 : 0 : {
17291 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q21, _p0, _q20 };
17292 : 0 : tree res = generic_simplify_442 (loc, type, _p0, _p1, captures);
17293 : 0 : if (res) return res;
17294 : : }
17295 : : }
17296 : : }
17297 : : break;
17298 : : }
17299 : 53 : default:;
17300 : : }
17301 : 53 : switch (TREE_CODE (_q20))
17302 : : {
17303 : 4 : CASE_CONVERT:
17304 : 4 : {
17305 : 4 : tree _q30 = TREE_OPERAND (_q20, 0);
17306 : 4 : switch (TREE_CODE (_p1))
17307 : : {
17308 : 0 : case EQ_EXPR:
17309 : 0 : {
17310 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
17311 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
17312 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
17313 : : {
17314 : 0 : {
17315 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
17316 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
17317 : 0 : if (res) return res;
17318 : : }
17319 : : }
17320 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
17321 : : {
17322 : 0 : {
17323 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
17324 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
17325 : 0 : if (res) return res;
17326 : : }
17327 : : }
17328 : : break;
17329 : : }
17330 : 0 : case NE_EXPR:
17331 : 0 : {
17332 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
17333 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
17334 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
17335 : : {
17336 : 0 : {
17337 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
17338 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
17339 : 0 : if (res) return res;
17340 : : }
17341 : : }
17342 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
17343 : : {
17344 : 0 : {
17345 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
17346 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
17347 : 0 : if (res) return res;
17348 : : }
17349 : : }
17350 : : break;
17351 : : }
17352 : : default:;
17353 : : }
17354 : : break;
17355 : : }
17356 : 53 : default:;
17357 : : }
17358 : 53 : switch (TREE_CODE (_q21))
17359 : : {
17360 : 0 : CASE_CONVERT:
17361 : 0 : {
17362 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
17363 : 0 : switch (TREE_CODE (_p1))
17364 : : {
17365 : 0 : case EQ_EXPR:
17366 : 0 : {
17367 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
17368 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
17369 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
17370 : : {
17371 : 0 : {
17372 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
17373 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
17374 : 0 : if (res) return res;
17375 : : }
17376 : : }
17377 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
17378 : : {
17379 : 0 : {
17380 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
17381 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
17382 : 0 : if (res) return res;
17383 : : }
17384 : : }
17385 : : break;
17386 : : }
17387 : 0 : case NE_EXPR:
17388 : 0 : {
17389 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
17390 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
17391 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
17392 : : {
17393 : 0 : {
17394 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
17395 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
17396 : 0 : if (res) return res;
17397 : : }
17398 : : }
17399 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
17400 : : {
17401 : 0 : {
17402 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
17403 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
17404 : 0 : if (res) return res;
17405 : : }
17406 : : }
17407 : : break;
17408 : : }
17409 : : default:;
17410 : : }
17411 : : break;
17412 : : }
17413 : 53 : default:;
17414 : : }
17415 : 53 : switch (TREE_CODE (_p1))
17416 : : {
17417 : 6 : case EQ_EXPR:
17418 : 6 : {
17419 : 6 : tree _q50 = TREE_OPERAND (_p1, 0);
17420 : 6 : tree _q51 = TREE_OPERAND (_p1, 1);
17421 : 6 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17422 : : {
17423 : 0 : {
17424 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
17425 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
17426 : 0 : if (res) return res;
17427 : : }
17428 : : }
17429 : 6 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17430 : : {
17431 : 0 : {
17432 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
17433 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
17434 : 0 : if (res) return res;
17435 : : }
17436 : : }
17437 : 6 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17438 : : {
17439 : 0 : {
17440 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
17441 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
17442 : 0 : if (res) return res;
17443 : : }
17444 : : }
17445 : 6 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17446 : : {
17447 : 0 : {
17448 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
17449 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
17450 : 0 : if (res) return res;
17451 : : }
17452 : : }
17453 : : break;
17454 : : }
17455 : 0 : case NE_EXPR:
17456 : 0 : {
17457 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
17458 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
17459 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17460 : : {
17461 : 0 : {
17462 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
17463 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
17464 : 0 : if (res) return res;
17465 : : }
17466 : : }
17467 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17468 : : {
17469 : 0 : {
17470 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
17471 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
17472 : 0 : if (res) return res;
17473 : : }
17474 : : }
17475 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17476 : : {
17477 : 0 : {
17478 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
17479 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
17480 : 0 : if (res) return res;
17481 : : }
17482 : : }
17483 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17484 : : {
17485 : 0 : {
17486 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
17487 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
17488 : 0 : if (res) return res;
17489 : : }
17490 : : }
17491 : : break;
17492 : : }
17493 : 0 : case LT_EXPR:
17494 : 0 : {
17495 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
17496 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
17497 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17498 : : {
17499 : 0 : {
17500 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
17501 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR);
17502 : 0 : if (res) return res;
17503 : : }
17504 : : }
17505 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17506 : : {
17507 : 0 : {
17508 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
17509 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, GE_EXPR);
17510 : 0 : if (res) return res;
17511 : : }
17512 : : }
17513 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17514 : : {
17515 : 0 : {
17516 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
17517 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, LE_EXPR);
17518 : 0 : if (res) return res;
17519 : : }
17520 : : }
17521 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17522 : : {
17523 : 0 : {
17524 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
17525 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
17526 : 0 : if (res) return res;
17527 : : }
17528 : : }
17529 : : break;
17530 : : }
17531 : 8 : case LE_EXPR:
17532 : 8 : {
17533 : 8 : tree _q50 = TREE_OPERAND (_p1, 0);
17534 : 8 : tree _q51 = TREE_OPERAND (_p1, 1);
17535 : 8 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17536 : : {
17537 : 7 : {
17538 : 7 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
17539 : 7 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR);
17540 : 7 : if (res) return res;
17541 : : }
17542 : : }
17543 : 8 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17544 : : {
17545 : 0 : {
17546 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
17547 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, GE_EXPR);
17548 : 0 : if (res) return res;
17549 : : }
17550 : : }
17551 : 8 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17552 : : {
17553 : 0 : {
17554 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
17555 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, LE_EXPR);
17556 : 0 : if (res) return res;
17557 : : }
17558 : : }
17559 : 8 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17560 : : {
17561 : 0 : {
17562 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
17563 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, LE_EXPR);
17564 : 0 : if (res) return res;
17565 : : }
17566 : : }
17567 : : break;
17568 : : }
17569 : 0 : case GT_EXPR:
17570 : 0 : {
17571 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
17572 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
17573 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17574 : : {
17575 : 0 : {
17576 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
17577 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, GE_EXPR);
17578 : 0 : if (res) return res;
17579 : : }
17580 : : }
17581 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17582 : : {
17583 : 0 : {
17584 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
17585 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR);
17586 : 0 : if (res) return res;
17587 : : }
17588 : : }
17589 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17590 : : {
17591 : 0 : {
17592 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
17593 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
17594 : 0 : if (res) return res;
17595 : : }
17596 : : }
17597 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17598 : : {
17599 : 0 : {
17600 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
17601 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LT_EXPR, LE_EXPR);
17602 : 0 : if (res) return res;
17603 : : }
17604 : : }
17605 : : break;
17606 : : }
17607 : 11 : case GE_EXPR:
17608 : 11 : {
17609 : 11 : tree _q50 = TREE_OPERAND (_p1, 0);
17610 : 11 : tree _q51 = TREE_OPERAND (_p1, 1);
17611 : 11 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17612 : : {
17613 : 7 : {
17614 : 7 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
17615 : 7 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, GE_EXPR);
17616 : 7 : if (res) return res;
17617 : : }
17618 : : }
17619 : 11 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17620 : : {
17621 : 0 : {
17622 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
17623 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR);
17624 : 0 : if (res) return res;
17625 : : }
17626 : : }
17627 : 11 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17628 : : {
17629 : 4 : {
17630 : 4 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
17631 : 4 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, GE_EXPR, LE_EXPR);
17632 : 4 : if (res) return res;
17633 : : }
17634 : : }
17635 : 11 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17636 : : {
17637 : 0 : {
17638 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
17639 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures, LE_EXPR, LE_EXPR);
17640 : 0 : if (res) return res;
17641 : : }
17642 : : }
17643 : : break;
17644 : : }
17645 : : default:;
17646 : : }
17647 : : break;
17648 : : }
17649 : 0 : case MIN_EXPR:
17650 : 0 : {
17651 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
17652 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
17653 : 0 : switch (TREE_CODE (_p1))
17654 : : {
17655 : 0 : case MAX_EXPR:
17656 : 0 : {
17657 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
17658 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
17659 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17660 : : {
17661 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17662 : : {
17663 : 0 : {
17664 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
17665 : 0 : if (!HONOR_NANS (captures[0])
17666 : : )
17667 : : {
17668 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1805;
17669 : 0 : {
17670 : 0 : tree res_op0;
17671 : 0 : res_op0 = captures[0];
17672 : 0 : tree res_op1;
17673 : 0 : res_op1 = captures[1];
17674 : 0 : tree _r;
17675 : 0 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
17676 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 904, __FILE__, __LINE__, true);
17677 : 0 : return _r;
17678 : : }
17679 : 0 : next_after_fail1805:;
17680 : : }
17681 : : }
17682 : : }
17683 : : }
17684 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17685 : : {
17686 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17687 : : {
17688 : 0 : {
17689 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
17690 : 0 : if (!HONOR_NANS (captures[0])
17691 : : )
17692 : : {
17693 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1806;
17694 : 0 : {
17695 : 0 : tree res_op0;
17696 : 0 : res_op0 = captures[0];
17697 : 0 : tree res_op1;
17698 : 0 : res_op1 = captures[1];
17699 : 0 : tree _r;
17700 : 0 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
17701 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 904, __FILE__, __LINE__, true);
17702 : 0 : return _r;
17703 : : }
17704 : 0 : next_after_fail1806:;
17705 : : }
17706 : : }
17707 : : }
17708 : : }
17709 : : break;
17710 : : }
17711 : : default:;
17712 : : }
17713 : : break;
17714 : : }
17715 : 80 : case MAX_EXPR:
17716 : 80 : {
17717 : 80 : tree _q20 = TREE_OPERAND (_p0, 0);
17718 : 80 : tree _q21 = TREE_OPERAND (_p0, 1);
17719 : 80 : switch (TREE_CODE (_p1))
17720 : : {
17721 : 0 : case MIN_EXPR:
17722 : 0 : {
17723 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
17724 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
17725 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17726 : : {
17727 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17728 : : {
17729 : 0 : {
17730 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
17731 : 0 : if (!HONOR_NANS (captures[0])
17732 : : )
17733 : : {
17734 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1807;
17735 : 0 : {
17736 : 0 : tree res_op0;
17737 : 0 : res_op0 = captures[0];
17738 : 0 : tree res_op1;
17739 : 0 : res_op1 = captures[1];
17740 : 0 : tree _r;
17741 : 0 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
17742 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 904, __FILE__, __LINE__, true);
17743 : 0 : return _r;
17744 : : }
17745 : 0 : next_after_fail1807:;
17746 : : }
17747 : : }
17748 : : }
17749 : : }
17750 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17751 : : {
17752 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17753 : : {
17754 : 0 : {
17755 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
17756 : 0 : if (!HONOR_NANS (captures[0])
17757 : : )
17758 : : {
17759 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1808;
17760 : 0 : {
17761 : 0 : tree res_op0;
17762 : 0 : res_op0 = captures[0];
17763 : 0 : tree res_op1;
17764 : 0 : res_op1 = captures[1];
17765 : 0 : tree _r;
17766 : 0 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
17767 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 904, __FILE__, __LINE__, true);
17768 : 0 : return _r;
17769 : : }
17770 : 0 : next_after_fail1808:;
17771 : : }
17772 : : }
17773 : : }
17774 : : }
17775 : : break;
17776 : : }
17777 : : default:;
17778 : : }
17779 : : break;
17780 : : }
17781 : 35165 : case LSHIFT_EXPR:
17782 : 35165 : {
17783 : 35165 : tree _q20 = TREE_OPERAND (_p0, 0);
17784 : 35165 : tree _q21 = TREE_OPERAND (_p0, 1);
17785 : 35165 : switch (TREE_CODE (_q20))
17786 : : {
17787 : 5548 : case INTEGER_CST:
17788 : 5548 : {
17789 : 5548 : if (integer_onep (_p1))
17790 : : {
17791 : 44 : {
17792 : 44 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
17793 : 44 : if ((wi::to_wide (captures[0]) & 1) != 0
17794 : : )
17795 : : {
17796 : 40 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1809;
17797 : 40 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1809;
17798 : 40 : {
17799 : 40 : tree res_op0;
17800 : 40 : {
17801 : 40 : tree _o1[2], _r1;
17802 : 40 : _o1[0] = captures[1];
17803 : 40 : _o1[1] = build_zero_cst (TREE_TYPE (captures[1]));
17804 : 40 : _r1 = fold_build2_loc (loc, EQ_EXPR, boolean_type_node, _o1[0], _o1[1]);
17805 : 40 : res_op0 = _r1;
17806 : : }
17807 : 40 : tree _r;
17808 : 40 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
17809 : 40 : if (TREE_SIDE_EFFECTS (captures[0]))
17810 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
17811 : 40 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1033, __FILE__, __LINE__, true);
17812 : 40 : return _r;
17813 : : }
17814 : 0 : next_after_fail1809:;
17815 : : }
17816 : : else
17817 : : {
17818 : 4 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1810;
17819 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1810;
17820 : 4 : {
17821 : 4 : tree _r;
17822 : 4 : _r = build_zero_cst (type);
17823 : 4 : if (TREE_SIDE_EFFECTS (captures[0]))
17824 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
17825 : 4 : if (TREE_SIDE_EFFECTS (captures[1]))
17826 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
17827 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1034, __FILE__, __LINE__, true);
17828 : 4 : return _r;
17829 : : }
17830 : 0 : next_after_fail1810:;
17831 : : }
17832 : : }
17833 : : }
17834 : : break;
17835 : : }
17836 : 5192 : CASE_CONVERT:
17837 : 5192 : {
17838 : 5192 : tree _q30 = TREE_OPERAND (_q20, 0);
17839 : 5192 : switch (TREE_CODE (_q21))
17840 : : {
17841 : 5105 : case INTEGER_CST:
17842 : 5105 : {
17843 : 5105 : switch (TREE_CODE (_p1))
17844 : : {
17845 : 5105 : case INTEGER_CST:
17846 : 5105 : {
17847 : 5105 : {
17848 : 5105 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q30, _q21, _p1 };
17849 : 5105 : tree res = generic_simplify_443 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
17850 : 5105 : if (res) return res;
17851 : : }
17852 : 4477 : break;
17853 : : }
17854 : : default:;
17855 : : }
17856 : : break;
17857 : : }
17858 : : default:;
17859 : : }
17860 : : break;
17861 : : }
17862 : 34493 : default:;
17863 : : }
17864 : 34493 : switch (TREE_CODE (_q21))
17865 : : {
17866 : 28618 : case INTEGER_CST:
17867 : 28618 : {
17868 : 28618 : switch (TREE_CODE (_p1))
17869 : : {
17870 : 28581 : case INTEGER_CST:
17871 : 28581 : {
17872 : 28581 : {
17873 : 28581 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q20, _q21, _p1 };
17874 : 28581 : tree res = generic_simplify_444 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
17875 : 28581 : if (res) return res;
17876 : : }
17877 : 18160 : break;
17878 : : }
17879 : : default:;
17880 : : }
17881 : : break;
17882 : : }
17883 : : default:;
17884 : : }
17885 : : break;
17886 : : }
17887 : 71483 : case RSHIFT_EXPR:
17888 : 71483 : {
17889 : 71483 : tree _q20 = TREE_OPERAND (_p0, 0);
17890 : 71483 : tree _q21 = TREE_OPERAND (_p0, 1);
17891 : 71483 : switch (TREE_CODE (_q20))
17892 : : {
17893 : 47665 : CASE_CONVERT:
17894 : 47665 : {
17895 : 47665 : tree _q30 = TREE_OPERAND (_q20, 0);
17896 : 47665 : switch (TREE_CODE (_q21))
17897 : : {
17898 : 44527 : case INTEGER_CST:
17899 : 44527 : {
17900 : 44527 : switch (TREE_CODE (_p1))
17901 : : {
17902 : 44527 : case INTEGER_CST:
17903 : 44527 : {
17904 : 44527 : {
17905 : 44527 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q30, _q21, _p1 };
17906 : 44527 : tree res = generic_simplify_443 (loc, type, _p0, _p1, captures, RSHIFT_EXPR);
17907 : 44527 : if (res) return res;
17908 : : }
17909 : 44240 : break;
17910 : : }
17911 : : default:;
17912 : : }
17913 : : break;
17914 : : }
17915 : 47378 : default:;
17916 : : }
17917 : 47378 : switch (TREE_CODE (_q30))
17918 : : {
17919 : 22 : case CALL_EXPR:
17920 : 22 : switch (get_call_combined_fn (_q30))
17921 : : {
17922 : 0 : case CFN_BUILT_IN_BSWAP128:
17923 : 0 : if (call_expr_nargs (_q30) == 1)
17924 : : {
17925 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
17926 : 0 : switch (TREE_CODE (_q21))
17927 : : {
17928 : 0 : case INTEGER_CST:
17929 : 0 : {
17930 : 0 : switch (TREE_CODE (_p1))
17931 : : {
17932 : 0 : case INTEGER_CST:
17933 : 0 : {
17934 : 0 : {
17935 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q30, _q40, _q21, _p1 };
17936 : 0 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP128);
17937 : 0 : if (res) return res;
17938 : : }
17939 : 0 : break;
17940 : : }
17941 : : default:;
17942 : : }
17943 : : break;
17944 : : }
17945 : : default:;
17946 : : }
17947 : : }
17948 : : break;
17949 : 1 : case CFN_BUILT_IN_BSWAP16:
17950 : 1 : if (call_expr_nargs (_q30) == 1)
17951 : : {
17952 : 1 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
17953 : 1 : switch (TREE_CODE (_q21))
17954 : : {
17955 : 0 : case INTEGER_CST:
17956 : 0 : {
17957 : 0 : switch (TREE_CODE (_p1))
17958 : : {
17959 : 0 : case INTEGER_CST:
17960 : 0 : {
17961 : 0 : {
17962 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q30, _q40, _q21, _p1 };
17963 : 0 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP16);
17964 : 0 : if (res) return res;
17965 : : }
17966 : 0 : break;
17967 : : }
17968 : : default:;
17969 : : }
17970 : : break;
17971 : : }
17972 : : default:;
17973 : : }
17974 : : }
17975 : : break;
17976 : 9 : case CFN_BUILT_IN_BSWAP32:
17977 : 9 : if (call_expr_nargs (_q30) == 1)
17978 : : {
17979 : 9 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
17980 : 9 : switch (TREE_CODE (_q21))
17981 : : {
17982 : 9 : case INTEGER_CST:
17983 : 9 : {
17984 : 9 : switch (TREE_CODE (_p1))
17985 : : {
17986 : 9 : case INTEGER_CST:
17987 : 9 : {
17988 : 9 : {
17989 : 9 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q30, _q40, _q21, _p1 };
17990 : 9 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP32);
17991 : 9 : if (res) return res;
17992 : : }
17993 : 0 : break;
17994 : : }
17995 : : default:;
17996 : : }
17997 : : break;
17998 : : }
17999 : : default:;
18000 : : }
18001 : : }
18002 : : break;
18003 : 12 : case CFN_BUILT_IN_BSWAP64:
18004 : 12 : if (call_expr_nargs (_q30) == 1)
18005 : : {
18006 : 12 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
18007 : 12 : switch (TREE_CODE (_q21))
18008 : : {
18009 : 12 : case INTEGER_CST:
18010 : 12 : {
18011 : 12 : switch (TREE_CODE (_p1))
18012 : : {
18013 : 12 : case INTEGER_CST:
18014 : 12 : {
18015 : 12 : {
18016 : 12 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q30, _q40, _q21, _p1 };
18017 : 12 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP64);
18018 : 12 : if (res) return res;
18019 : : }
18020 : 0 : break;
18021 : : }
18022 : : default:;
18023 : : }
18024 : : break;
18025 : : }
18026 : : default:;
18027 : : }
18028 : : }
18029 : : break;
18030 : : default:;
18031 : : }
18032 : : break;
18033 : : default:;
18034 : : }
18035 : : break;
18036 : : }
18037 : 71175 : default:;
18038 : : }
18039 : 71175 : switch (TREE_CODE (_q21))
18040 : : {
18041 : 53215 : case INTEGER_CST:
18042 : 53215 : {
18043 : 53215 : switch (TREE_CODE (_p1))
18044 : : {
18045 : 53070 : case INTEGER_CST:
18046 : 53070 : {
18047 : 53070 : {
18048 : 53070 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q20, _q21, _p1 };
18049 : 53070 : tree res = generic_simplify_444 (loc, type, _p0, _p1, captures, RSHIFT_EXPR);
18050 : 53070 : if (res) return res;
18051 : : }
18052 : 51371 : break;
18053 : : }
18054 : : default:;
18055 : : }
18056 : : break;
18057 : : }
18058 : 69476 : default:;
18059 : : }
18060 : 69476 : switch (TREE_CODE (_q20))
18061 : : {
18062 : 140 : case CALL_EXPR:
18063 : 140 : switch (get_call_combined_fn (_q20))
18064 : : {
18065 : 0 : case CFN_BUILT_IN_BSWAP128:
18066 : 0 : if (call_expr_nargs (_q20) == 1)
18067 : : {
18068 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
18069 : 0 : switch (TREE_CODE (_q21))
18070 : : {
18071 : 0 : case INTEGER_CST:
18072 : 0 : {
18073 : 0 : switch (TREE_CODE (_p1))
18074 : : {
18075 : 0 : case INTEGER_CST:
18076 : 0 : {
18077 : 0 : {
18078 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _p1 };
18079 : 0 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP128);
18080 : 0 : if (res) return res;
18081 : : }
18082 : 0 : break;
18083 : : }
18084 : : default:;
18085 : : }
18086 : : break;
18087 : : }
18088 : : default:;
18089 : : }
18090 : : }
18091 : : break;
18092 : 0 : case CFN_BUILT_IN_BSWAP16:
18093 : 0 : if (call_expr_nargs (_q20) == 1)
18094 : : {
18095 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
18096 : 0 : switch (TREE_CODE (_q21))
18097 : : {
18098 : 0 : case INTEGER_CST:
18099 : 0 : {
18100 : 0 : switch (TREE_CODE (_p1))
18101 : : {
18102 : 0 : case INTEGER_CST:
18103 : 0 : {
18104 : 0 : {
18105 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _p1 };
18106 : 0 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP16);
18107 : 0 : if (res) return res;
18108 : : }
18109 : 0 : break;
18110 : : }
18111 : : default:;
18112 : : }
18113 : : break;
18114 : : }
18115 : : default:;
18116 : : }
18117 : : }
18118 : : break;
18119 : 60 : case CFN_BUILT_IN_BSWAP32:
18120 : 60 : if (call_expr_nargs (_q20) == 1)
18121 : : {
18122 : 60 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
18123 : 60 : switch (TREE_CODE (_q21))
18124 : : {
18125 : 59 : case INTEGER_CST:
18126 : 59 : {
18127 : 59 : switch (TREE_CODE (_p1))
18128 : : {
18129 : 59 : case INTEGER_CST:
18130 : 59 : {
18131 : 59 : {
18132 : 59 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _p1 };
18133 : 59 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP32);
18134 : 59 : if (res) return res;
18135 : : }
18136 : 0 : break;
18137 : : }
18138 : : default:;
18139 : : }
18140 : : break;
18141 : : }
18142 : : default:;
18143 : : }
18144 : : }
18145 : : break;
18146 : 73 : case CFN_BUILT_IN_BSWAP64:
18147 : 73 : if (call_expr_nargs (_q20) == 1)
18148 : : {
18149 : 73 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
18150 : 73 : switch (TREE_CODE (_q21))
18151 : : {
18152 : 73 : case INTEGER_CST:
18153 : 73 : {
18154 : 73 : switch (TREE_CODE (_p1))
18155 : : {
18156 : 73 : case INTEGER_CST:
18157 : 73 : {
18158 : 73 : {
18159 : 73 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _p1 };
18160 : 73 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP64);
18161 : 73 : if (res) return res;
18162 : : }
18163 : 0 : break;
18164 : : }
18165 : : default:;
18166 : : }
18167 : : break;
18168 : : }
18169 : : default:;
18170 : : }
18171 : : }
18172 : : break;
18173 : : default:;
18174 : : }
18175 : : break;
18176 : : default:;
18177 : : }
18178 : : break;
18179 : : }
18180 : 65 : case VEC_COND_EXPR:
18181 : 65 : {
18182 : 65 : tree _q20 = TREE_OPERAND (_p0, 0);
18183 : 65 : tree _q21 = TREE_OPERAND (_p0, 1);
18184 : 65 : tree _q22 = TREE_OPERAND (_p0, 2);
18185 : 65 : switch (TREE_CODE (_p1))
18186 : : {
18187 : 47 : case VEC_COND_EXPR:
18188 : 47 : {
18189 : 47 : tree _q60 = TREE_OPERAND (_p1, 0);
18190 : 47 : tree _q61 = TREE_OPERAND (_p1, 1);
18191 : 47 : tree _q62 = TREE_OPERAND (_p1, 2);
18192 : 47 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
18193 : : {
18194 : 0 : {
18195 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
18196 : 0 : if (VECTOR_TYPE_P (type)
18197 : 0 : && (TREE_CODE_CLASS (BIT_AND_EXPR) != tcc_comparison
18198 : : || types_match (type, TREE_TYPE (captures[2]))
18199 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
18200 : : || (optimize_vectors_before_lowering_p ()
18201 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
18202 : : )
18203 : : {
18204 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1811;
18205 : 0 : {
18206 : 0 : tree res_op0;
18207 : 0 : res_op0 = captures[1];
18208 : 0 : tree res_op1;
18209 : 0 : {
18210 : 0 : tree _o1[2], _r1;
18211 : 0 : _o1[0] = captures[2];
18212 : 0 : _o1[1] = captures[5];
18213 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18214 : 0 : if (EXPR_P (_r1))
18215 : 0 : goto next_after_fail1811;
18216 : 0 : res_op1 = _r1;
18217 : : }
18218 : 0 : tree res_op2;
18219 : 0 : {
18220 : 0 : tree _o1[2], _r1;
18221 : 0 : _o1[0] = captures[3];
18222 : 0 : _o1[1] = captures[6];
18223 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18224 : 0 : if (EXPR_P (_r1))
18225 : 0 : goto next_after_fail1811;
18226 : 0 : res_op2 = _r1;
18227 : : }
18228 : 0 : tree _r;
18229 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18230 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 908, __FILE__, __LINE__, true);
18231 : 0 : return _r;
18232 : : }
18233 : 0 : next_after_fail1811:;
18234 : : }
18235 : : }
18236 : : }
18237 : : break;
18238 : : }
18239 : 65 : default:;
18240 : : }
18241 : 65 : if (integer_minus_onep (_q21))
18242 : : {
18243 : 65 : if (integer_zerop (_q22))
18244 : : {
18245 : 65 : switch (TREE_CODE (_p1))
18246 : : {
18247 : 47 : case VEC_COND_EXPR:
18248 : 47 : {
18249 : 47 : tree _q60 = TREE_OPERAND (_p1, 0);
18250 : 47 : tree _q61 = TREE_OPERAND (_p1, 1);
18251 : 47 : tree _q62 = TREE_OPERAND (_p1, 2);
18252 : 47 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
18253 : : {
18254 : 47 : if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
18255 : : {
18256 : 47 : {
18257 : 47 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18258 : 47 : const enum tree_code lop = BIT_AND_EXPR;
18259 : 47 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18260 : : )
18261 : : {
18262 : 47 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1812;
18263 : 47 : {
18264 : 47 : tree res_op0;
18265 : 47 : {
18266 : 47 : tree _o1[2], _r1;
18267 : 47 : _o1[0] = captures[0];
18268 : 47 : _o1[1] = captures[3];
18269 : 47 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18270 : 47 : res_op0 = _r1;
18271 : : }
18272 : 47 : tree res_op1;
18273 : 47 : res_op1 = captures[1];
18274 : 47 : tree res_op2;
18275 : 47 : res_op2 = captures[2];
18276 : 47 : tree _r;
18277 : 47 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18278 : 47 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
18279 : 47 : return _r;
18280 : : }
18281 : 0 : next_after_fail1812:;
18282 : : }
18283 : : }
18284 : 0 : {
18285 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18286 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18287 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18288 : : )
18289 : : {
18290 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1813;
18291 : 0 : {
18292 : 0 : tree res_op0;
18293 : 0 : {
18294 : 0 : tree _o1[2], _r1;
18295 : 0 : _o1[0] = captures[0];
18296 : 0 : _o1[1] = captures[3];
18297 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18298 : 0 : res_op0 = _r1;
18299 : : }
18300 : 0 : tree res_op1;
18301 : 0 : res_op1 = captures[1];
18302 : 0 : tree res_op2;
18303 : 0 : res_op2 = captures[2];
18304 : 0 : tree _r;
18305 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18306 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
18307 : 0 : return _r;
18308 : : }
18309 : 0 : next_after_fail1813:;
18310 : : }
18311 : : }
18312 : 0 : {
18313 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18314 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18315 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18316 : : )
18317 : : {
18318 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1814;
18319 : 0 : {
18320 : 0 : tree res_op0;
18321 : 0 : {
18322 : 0 : tree _o1[2], _r1;
18323 : 0 : _o1[0] = captures[0];
18324 : 0 : _o1[1] = captures[3];
18325 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18326 : 0 : res_op0 = _r1;
18327 : : }
18328 : 0 : tree res_op1;
18329 : 0 : res_op1 = captures[1];
18330 : 0 : tree res_op2;
18331 : 0 : res_op2 = captures[2];
18332 : 0 : tree _r;
18333 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18334 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
18335 : 0 : return _r;
18336 : : }
18337 : 0 : next_after_fail1814:;
18338 : : }
18339 : : }
18340 : 0 : {
18341 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18342 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18343 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18344 : : )
18345 : : {
18346 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1815;
18347 : 0 : {
18348 : 0 : tree res_op0;
18349 : 0 : {
18350 : 0 : tree _o1[2], _r1;
18351 : 0 : _o1[0] = captures[0];
18352 : 0 : _o1[1] = captures[3];
18353 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18354 : 0 : res_op0 = _r1;
18355 : : }
18356 : 0 : tree res_op1;
18357 : 0 : res_op1 = captures[1];
18358 : 0 : tree res_op2;
18359 : 0 : res_op2 = captures[2];
18360 : 0 : tree _r;
18361 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18362 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
18363 : 0 : return _r;
18364 : : }
18365 : 0 : next_after_fail1815:;
18366 : : }
18367 : : }
18368 : 0 : {
18369 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18370 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18371 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18372 : : )
18373 : : {
18374 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1816;
18375 : 0 : {
18376 : 0 : tree res_op0;
18377 : 0 : {
18378 : 0 : tree _o1[2], _r1;
18379 : 0 : _o1[0] = captures[0];
18380 : 0 : _o1[1] = captures[3];
18381 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18382 : 0 : res_op0 = _r1;
18383 : : }
18384 : 0 : tree res_op1;
18385 : 0 : res_op1 = captures[1];
18386 : 0 : tree res_op2;
18387 : 0 : res_op2 = captures[2];
18388 : 0 : tree _r;
18389 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18390 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
18391 : 0 : return _r;
18392 : : }
18393 : 0 : next_after_fail1816:;
18394 : : }
18395 : : }
18396 : 0 : {
18397 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18398 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18399 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18400 : : )
18401 : : {
18402 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1817;
18403 : 0 : {
18404 : 0 : tree res_op0;
18405 : 0 : {
18406 : 0 : tree _o1[2], _r1;
18407 : 0 : _o1[0] = captures[0];
18408 : 0 : _o1[1] = captures[3];
18409 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18410 : 0 : res_op0 = _r1;
18411 : : }
18412 : 0 : tree res_op1;
18413 : 0 : res_op1 = captures[1];
18414 : 0 : tree res_op2;
18415 : 0 : res_op2 = captures[2];
18416 : 0 : tree _r;
18417 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18418 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
18419 : 0 : return _r;
18420 : : }
18421 : 0 : next_after_fail1817:;
18422 : : }
18423 : : }
18424 : 0 : {
18425 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18426 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18427 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18428 : : )
18429 : : {
18430 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1818;
18431 : 0 : {
18432 : 0 : tree res_op0;
18433 : 0 : {
18434 : 0 : tree _o1[2], _r1;
18435 : 0 : _o1[0] = captures[0];
18436 : 0 : _o1[1] = captures[3];
18437 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18438 : 0 : res_op0 = _r1;
18439 : : }
18440 : 0 : tree res_op1;
18441 : 0 : res_op1 = captures[1];
18442 : 0 : tree res_op2;
18443 : 0 : res_op2 = captures[2];
18444 : 0 : tree _r;
18445 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18446 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
18447 : 0 : return _r;
18448 : : }
18449 : 0 : next_after_fail1818:;
18450 : : }
18451 : : }
18452 : 0 : {
18453 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18454 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18455 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18456 : : )
18457 : : {
18458 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1819;
18459 : 0 : {
18460 : 0 : tree res_op0;
18461 : 0 : {
18462 : 0 : tree _o1[2], _r1;
18463 : 0 : _o1[0] = captures[0];
18464 : 0 : _o1[1] = captures[3];
18465 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18466 : 0 : res_op0 = _r1;
18467 : : }
18468 : 0 : tree res_op1;
18469 : 0 : res_op1 = captures[1];
18470 : 0 : tree res_op2;
18471 : 0 : res_op2 = captures[2];
18472 : 0 : tree _r;
18473 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18474 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
18475 : 0 : return _r;
18476 : : }
18477 : 0 : next_after_fail1819:;
18478 : : }
18479 : : }
18480 : 0 : {
18481 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18482 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18483 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18484 : : )
18485 : : {
18486 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1820;
18487 : 0 : {
18488 : 0 : tree res_op0;
18489 : 0 : {
18490 : 0 : tree _o1[2], _r1;
18491 : 0 : _o1[0] = captures[0];
18492 : 0 : _o1[1] = captures[3];
18493 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18494 : 0 : res_op0 = _r1;
18495 : : }
18496 : 0 : tree res_op1;
18497 : 0 : res_op1 = captures[1];
18498 : 0 : tree res_op2;
18499 : 0 : res_op2 = captures[2];
18500 : 0 : tree _r;
18501 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18502 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
18503 : 0 : return _r;
18504 : : }
18505 : 0 : next_after_fail1820:;
18506 : : }
18507 : : }
18508 : 0 : {
18509 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18510 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18511 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18512 : : )
18513 : : {
18514 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1821;
18515 : 0 : {
18516 : 0 : tree res_op0;
18517 : 0 : {
18518 : 0 : tree _o1[2], _r1;
18519 : 0 : _o1[0] = captures[0];
18520 : 0 : _o1[1] = captures[3];
18521 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18522 : 0 : res_op0 = _r1;
18523 : : }
18524 : 0 : tree res_op1;
18525 : 0 : res_op1 = captures[1];
18526 : 0 : tree res_op2;
18527 : 0 : res_op2 = captures[2];
18528 : 0 : tree _r;
18529 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18530 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
18531 : 0 : return _r;
18532 : : }
18533 : 0 : next_after_fail1821:;
18534 : : }
18535 : : }
18536 : 0 : {
18537 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18538 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18539 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18540 : : )
18541 : : {
18542 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1822;
18543 : 0 : {
18544 : 0 : tree res_op0;
18545 : 0 : {
18546 : 0 : tree _o1[2], _r1;
18547 : 0 : _o1[0] = captures[0];
18548 : 0 : _o1[1] = captures[3];
18549 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18550 : 0 : res_op0 = _r1;
18551 : : }
18552 : 0 : tree res_op1;
18553 : 0 : res_op1 = captures[1];
18554 : 0 : tree res_op2;
18555 : 0 : res_op2 = captures[2];
18556 : 0 : tree _r;
18557 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18558 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
18559 : 0 : return _r;
18560 : : }
18561 : 0 : next_after_fail1822:;
18562 : : }
18563 : : }
18564 : 0 : {
18565 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18566 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18567 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18568 : : )
18569 : : {
18570 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1823;
18571 : 0 : {
18572 : 0 : tree res_op0;
18573 : 0 : {
18574 : 0 : tree _o1[2], _r1;
18575 : 0 : _o1[0] = captures[0];
18576 : 0 : _o1[1] = captures[3];
18577 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18578 : 0 : res_op0 = _r1;
18579 : : }
18580 : 0 : tree res_op1;
18581 : 0 : res_op1 = captures[1];
18582 : 0 : tree res_op2;
18583 : 0 : res_op2 = captures[2];
18584 : 0 : tree _r;
18585 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18586 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
18587 : 0 : return _r;
18588 : : }
18589 : 0 : next_after_fail1823:;
18590 : : }
18591 : : }
18592 : 0 : {
18593 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18594 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18595 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18596 : : )
18597 : : {
18598 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1824;
18599 : 0 : {
18600 : 0 : tree res_op0;
18601 : 0 : {
18602 : 0 : tree _o1[2], _r1;
18603 : 0 : _o1[0] = captures[0];
18604 : 0 : _o1[1] = captures[3];
18605 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18606 : 0 : res_op0 = _r1;
18607 : : }
18608 : 0 : tree res_op1;
18609 : 0 : res_op1 = captures[1];
18610 : 0 : tree res_op2;
18611 : 0 : res_op2 = captures[2];
18612 : 0 : tree _r;
18613 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18614 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
18615 : 0 : return _r;
18616 : : }
18617 : 0 : next_after_fail1824:;
18618 : : }
18619 : : }
18620 : 0 : {
18621 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18622 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18623 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18624 : : )
18625 : : {
18626 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1825;
18627 : 0 : {
18628 : 0 : tree res_op0;
18629 : 0 : {
18630 : 0 : tree _o1[2], _r1;
18631 : 0 : _o1[0] = captures[0];
18632 : 0 : _o1[1] = captures[3];
18633 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18634 : 0 : res_op0 = _r1;
18635 : : }
18636 : 0 : tree res_op1;
18637 : 0 : res_op1 = captures[1];
18638 : 0 : tree res_op2;
18639 : 0 : res_op2 = captures[2];
18640 : 0 : tree _r;
18641 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18642 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
18643 : 0 : return _r;
18644 : : }
18645 : 0 : next_after_fail1825:;
18646 : : }
18647 : : }
18648 : 0 : {
18649 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18650 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18651 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18652 : : )
18653 : : {
18654 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1826;
18655 : 0 : {
18656 : 0 : tree res_op0;
18657 : 0 : {
18658 : 0 : tree _o1[2], _r1;
18659 : 0 : _o1[0] = captures[0];
18660 : 0 : _o1[1] = captures[3];
18661 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18662 : 0 : res_op0 = _r1;
18663 : : }
18664 : 0 : tree res_op1;
18665 : 0 : res_op1 = captures[1];
18666 : 0 : tree res_op2;
18667 : 0 : res_op2 = captures[2];
18668 : 0 : tree _r;
18669 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18670 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
18671 : 0 : return _r;
18672 : : }
18673 : 0 : next_after_fail1826:;
18674 : : }
18675 : : }
18676 : 0 : {
18677 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18678 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18679 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18680 : : )
18681 : : {
18682 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1827;
18683 : 0 : {
18684 : 0 : tree res_op0;
18685 : 0 : {
18686 : 0 : tree _o1[2], _r1;
18687 : 0 : _o1[0] = captures[0];
18688 : 0 : _o1[1] = captures[3];
18689 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18690 : 0 : res_op0 = _r1;
18691 : : }
18692 : 0 : tree res_op1;
18693 : 0 : res_op1 = captures[1];
18694 : 0 : tree res_op2;
18695 : 0 : res_op2 = captures[2];
18696 : 0 : tree _r;
18697 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18698 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
18699 : 0 : return _r;
18700 : : }
18701 : 0 : next_after_fail1827:;
18702 : : }
18703 : : }
18704 : 0 : {
18705 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18706 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18707 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18708 : : )
18709 : : {
18710 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1828;
18711 : 0 : {
18712 : 0 : tree res_op0;
18713 : 0 : {
18714 : 0 : tree _o1[2], _r1;
18715 : 0 : _o1[0] = captures[0];
18716 : 0 : _o1[1] = captures[3];
18717 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18718 : 0 : res_op0 = _r1;
18719 : : }
18720 : 0 : tree res_op1;
18721 : 0 : res_op1 = captures[1];
18722 : 0 : tree res_op2;
18723 : 0 : res_op2 = captures[2];
18724 : 0 : tree _r;
18725 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18726 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
18727 : 0 : return _r;
18728 : : }
18729 : 0 : next_after_fail1828:;
18730 : : }
18731 : : }
18732 : 0 : {
18733 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18734 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18735 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18736 : : )
18737 : : {
18738 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1829;
18739 : 0 : {
18740 : 0 : tree res_op0;
18741 : 0 : {
18742 : 0 : tree _o1[2], _r1;
18743 : 0 : _o1[0] = captures[0];
18744 : 0 : _o1[1] = captures[3];
18745 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18746 : 0 : res_op0 = _r1;
18747 : : }
18748 : 0 : tree res_op1;
18749 : 0 : res_op1 = captures[1];
18750 : 0 : tree res_op2;
18751 : 0 : res_op2 = captures[2];
18752 : 0 : tree _r;
18753 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18754 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
18755 : 0 : return _r;
18756 : : }
18757 : 0 : next_after_fail1829:;
18758 : : }
18759 : : }
18760 : 0 : {
18761 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18762 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18763 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18764 : : )
18765 : : {
18766 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1830;
18767 : 0 : {
18768 : 0 : tree res_op0;
18769 : 0 : {
18770 : 0 : tree _o1[2], _r1;
18771 : 0 : _o1[0] = captures[0];
18772 : 0 : _o1[1] = captures[3];
18773 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18774 : 0 : res_op0 = _r1;
18775 : : }
18776 : 0 : tree res_op1;
18777 : 0 : res_op1 = captures[1];
18778 : 0 : tree res_op2;
18779 : 0 : res_op2 = captures[2];
18780 : 0 : tree _r;
18781 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18782 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
18783 : 0 : return _r;
18784 : : }
18785 : 0 : next_after_fail1830:;
18786 : : }
18787 : : }
18788 : 0 : {
18789 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18790 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18791 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18792 : : )
18793 : : {
18794 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1831;
18795 : 0 : {
18796 : 0 : tree res_op0;
18797 : 0 : {
18798 : 0 : tree _o1[2], _r1;
18799 : 0 : _o1[0] = captures[0];
18800 : 0 : _o1[1] = captures[3];
18801 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18802 : 0 : res_op0 = _r1;
18803 : : }
18804 : 0 : tree res_op1;
18805 : 0 : res_op1 = captures[1];
18806 : 0 : tree res_op2;
18807 : 0 : res_op2 = captures[2];
18808 : 0 : tree _r;
18809 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18810 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
18811 : 0 : return _r;
18812 : : }
18813 : 0 : next_after_fail1831:;
18814 : : }
18815 : : }
18816 : 0 : {
18817 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18818 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18819 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18820 : : )
18821 : : {
18822 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1832;
18823 : 0 : {
18824 : 0 : tree res_op0;
18825 : 0 : {
18826 : 0 : tree _o1[2], _r1;
18827 : 0 : _o1[0] = captures[0];
18828 : 0 : _o1[1] = captures[3];
18829 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18830 : 0 : res_op0 = _r1;
18831 : : }
18832 : 0 : tree res_op1;
18833 : 0 : res_op1 = captures[1];
18834 : 0 : tree res_op2;
18835 : 0 : res_op2 = captures[2];
18836 : 0 : tree _r;
18837 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18838 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
18839 : 0 : return _r;
18840 : : }
18841 : 0 : next_after_fail1832:;
18842 : : }
18843 : : }
18844 : 0 : {
18845 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18846 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18847 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18848 : : )
18849 : : {
18850 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1833;
18851 : 0 : {
18852 : 0 : tree res_op0;
18853 : 0 : {
18854 : 0 : tree _o1[2], _r1;
18855 : 0 : _o1[0] = captures[0];
18856 : 0 : _o1[1] = captures[3];
18857 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18858 : 0 : res_op0 = _r1;
18859 : : }
18860 : 0 : tree res_op1;
18861 : 0 : res_op1 = captures[1];
18862 : 0 : tree res_op2;
18863 : 0 : res_op2 = captures[2];
18864 : 0 : tree _r;
18865 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18866 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
18867 : 0 : return _r;
18868 : : }
18869 : 0 : next_after_fail1833:;
18870 : : }
18871 : : }
18872 : 0 : {
18873 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18874 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18875 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18876 : : )
18877 : : {
18878 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1834;
18879 : 0 : {
18880 : 0 : tree res_op0;
18881 : 0 : {
18882 : 0 : tree _o1[2], _r1;
18883 : 0 : _o1[0] = captures[0];
18884 : 0 : _o1[1] = captures[3];
18885 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18886 : 0 : res_op0 = _r1;
18887 : : }
18888 : 0 : tree res_op1;
18889 : 0 : res_op1 = captures[1];
18890 : 0 : tree res_op2;
18891 : 0 : res_op2 = captures[2];
18892 : 0 : tree _r;
18893 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18894 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
18895 : 0 : return _r;
18896 : : }
18897 : 0 : next_after_fail1834:;
18898 : : }
18899 : : }
18900 : 0 : {
18901 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18902 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18903 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18904 : : )
18905 : : {
18906 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1835;
18907 : 0 : {
18908 : 0 : tree res_op0;
18909 : 0 : {
18910 : 0 : tree _o1[2], _r1;
18911 : 0 : _o1[0] = captures[0];
18912 : 0 : _o1[1] = captures[3];
18913 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18914 : 0 : res_op0 = _r1;
18915 : : }
18916 : 0 : tree res_op1;
18917 : 0 : res_op1 = captures[1];
18918 : 0 : tree res_op2;
18919 : 0 : res_op2 = captures[2];
18920 : 0 : tree _r;
18921 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18922 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
18923 : 0 : return _r;
18924 : : }
18925 : 0 : next_after_fail1835:;
18926 : : }
18927 : : }
18928 : 0 : {
18929 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18930 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18931 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18932 : : )
18933 : : {
18934 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1836;
18935 : 0 : {
18936 : 0 : tree res_op0;
18937 : 0 : {
18938 : 0 : tree _o1[2], _r1;
18939 : 0 : _o1[0] = captures[0];
18940 : 0 : _o1[1] = captures[3];
18941 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18942 : 0 : res_op0 = _r1;
18943 : : }
18944 : 0 : tree res_op1;
18945 : 0 : res_op1 = captures[1];
18946 : 0 : tree res_op2;
18947 : 0 : res_op2 = captures[2];
18948 : 0 : tree _r;
18949 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18950 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
18951 : 0 : return _r;
18952 : : }
18953 : 0 : next_after_fail1836:;
18954 : : }
18955 : : }
18956 : 0 : {
18957 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18958 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18959 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18960 : : )
18961 : : {
18962 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1837;
18963 : 0 : {
18964 : 0 : tree res_op0;
18965 : 0 : {
18966 : 0 : tree _o1[2], _r1;
18967 : 0 : _o1[0] = captures[0];
18968 : 0 : _o1[1] = captures[3];
18969 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18970 : 0 : res_op0 = _r1;
18971 : : }
18972 : 0 : tree res_op1;
18973 : 0 : res_op1 = captures[1];
18974 : 0 : tree res_op2;
18975 : 0 : res_op2 = captures[2];
18976 : 0 : tree _r;
18977 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18978 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
18979 : 0 : return _r;
18980 : : }
18981 : 0 : next_after_fail1837:;
18982 : : }
18983 : : }
18984 : 0 : {
18985 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18986 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18987 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18988 : : )
18989 : : {
18990 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1838;
18991 : 0 : {
18992 : 0 : tree res_op0;
18993 : 0 : {
18994 : 0 : tree _o1[2], _r1;
18995 : 0 : _o1[0] = captures[0];
18996 : 0 : _o1[1] = captures[3];
18997 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18998 : 0 : res_op0 = _r1;
18999 : : }
19000 : 0 : tree res_op1;
19001 : 0 : res_op1 = captures[1];
19002 : 0 : tree res_op2;
19003 : 0 : res_op2 = captures[2];
19004 : 0 : tree _r;
19005 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19006 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
19007 : 0 : return _r;
19008 : : }
19009 : 0 : next_after_fail1838:;
19010 : : }
19011 : : }
19012 : 0 : {
19013 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
19014 : 0 : const enum tree_code lop = BIT_AND_EXPR;
19015 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
19016 : : )
19017 : : {
19018 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1839;
19019 : 0 : {
19020 : 0 : tree res_op0;
19021 : 0 : {
19022 : 0 : tree _o1[2], _r1;
19023 : 0 : _o1[0] = captures[0];
19024 : 0 : _o1[1] = captures[3];
19025 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19026 : 0 : res_op0 = _r1;
19027 : : }
19028 : 0 : tree res_op1;
19029 : 0 : res_op1 = captures[1];
19030 : 0 : tree res_op2;
19031 : 0 : res_op2 = captures[2];
19032 : 0 : tree _r;
19033 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19034 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
19035 : 0 : return _r;
19036 : : }
19037 : 0 : next_after_fail1839:;
19038 : : }
19039 : : }
19040 : 0 : {
19041 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
19042 : 0 : const enum tree_code lop = BIT_AND_EXPR;
19043 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
19044 : : )
19045 : : {
19046 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1840;
19047 : 0 : {
19048 : 0 : tree res_op0;
19049 : 0 : {
19050 : 0 : tree _o1[2], _r1;
19051 : 0 : _o1[0] = captures[0];
19052 : 0 : _o1[1] = captures[3];
19053 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19054 : 0 : res_op0 = _r1;
19055 : : }
19056 : 0 : tree res_op1;
19057 : 0 : res_op1 = captures[1];
19058 : 0 : tree res_op2;
19059 : 0 : res_op2 = captures[2];
19060 : 0 : tree _r;
19061 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19062 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
19063 : 0 : return _r;
19064 : : }
19065 : 0 : next_after_fail1840:;
19066 : : }
19067 : : }
19068 : 0 : {
19069 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
19070 : 0 : const enum tree_code lop = BIT_AND_EXPR;
19071 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
19072 : : )
19073 : : {
19074 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1841;
19075 : 0 : {
19076 : 0 : tree res_op0;
19077 : 0 : {
19078 : 0 : tree _o1[2], _r1;
19079 : 0 : _o1[0] = captures[0];
19080 : 0 : _o1[1] = captures[3];
19081 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19082 : 0 : res_op0 = _r1;
19083 : : }
19084 : 0 : tree res_op1;
19085 : 0 : res_op1 = captures[1];
19086 : 0 : tree res_op2;
19087 : 0 : res_op2 = captures[2];
19088 : 0 : tree _r;
19089 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19090 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
19091 : 0 : return _r;
19092 : : }
19093 : 0 : next_after_fail1841:;
19094 : : }
19095 : : }
19096 : 0 : {
19097 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
19098 : 0 : const enum tree_code lop = BIT_AND_EXPR;
19099 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
19100 : : )
19101 : : {
19102 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1842;
19103 : 0 : {
19104 : 0 : tree res_op0;
19105 : 0 : {
19106 : 0 : tree _o1[2], _r1;
19107 : 0 : _o1[0] = captures[0];
19108 : 0 : _o1[1] = captures[3];
19109 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19110 : 0 : res_op0 = _r1;
19111 : : }
19112 : 0 : tree res_op1;
19113 : 0 : res_op1 = captures[1];
19114 : 0 : tree res_op2;
19115 : 0 : res_op2 = captures[2];
19116 : 0 : tree _r;
19117 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19118 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
19119 : 0 : return _r;
19120 : : }
19121 : 0 : next_after_fail1842:;
19122 : : }
19123 : : }
19124 : 0 : {
19125 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
19126 : 0 : const enum tree_code lop = BIT_AND_EXPR;
19127 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
19128 : : )
19129 : : {
19130 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1843;
19131 : 0 : {
19132 : 0 : tree res_op0;
19133 : 0 : {
19134 : 0 : tree _o1[2], _r1;
19135 : 0 : _o1[0] = captures[0];
19136 : 0 : _o1[1] = captures[3];
19137 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19138 : 0 : res_op0 = _r1;
19139 : : }
19140 : 0 : tree res_op1;
19141 : 0 : res_op1 = captures[1];
19142 : 0 : tree res_op2;
19143 : 0 : res_op2 = captures[2];
19144 : 0 : tree _r;
19145 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19146 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
19147 : 0 : return _r;
19148 : : }
19149 : 0 : next_after_fail1843:;
19150 : : }
19151 : : }
19152 : 0 : {
19153 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
19154 : 0 : const enum tree_code lop = BIT_AND_EXPR;
19155 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
19156 : : )
19157 : : {
19158 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1844;
19159 : 0 : {
19160 : 0 : tree res_op0;
19161 : 0 : {
19162 : 0 : tree _o1[2], _r1;
19163 : 0 : _o1[0] = captures[0];
19164 : 0 : _o1[1] = captures[3];
19165 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19166 : 0 : res_op0 = _r1;
19167 : : }
19168 : 0 : tree res_op1;
19169 : 0 : res_op1 = captures[1];
19170 : 0 : tree res_op2;
19171 : 0 : res_op2 = captures[2];
19172 : 0 : tree _r;
19173 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19174 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
19175 : 0 : return _r;
19176 : : }
19177 : 0 : next_after_fail1844:;
19178 : : }
19179 : : }
19180 : 0 : {
19181 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
19182 : 0 : const enum tree_code lop = BIT_AND_EXPR;
19183 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
19184 : : )
19185 : : {
19186 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1845;
19187 : 0 : {
19188 : 0 : tree res_op0;
19189 : 0 : {
19190 : 0 : tree _o1[2], _r1;
19191 : 0 : _o1[0] = captures[0];
19192 : 0 : _o1[1] = captures[3];
19193 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19194 : 0 : res_op0 = _r1;
19195 : : }
19196 : 0 : tree res_op1;
19197 : 0 : res_op1 = captures[1];
19198 : 0 : tree res_op2;
19199 : 0 : res_op2 = captures[2];
19200 : 0 : tree _r;
19201 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19202 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
19203 : 0 : return _r;
19204 : : }
19205 : 0 : next_after_fail1845:;
19206 : : }
19207 : : }
19208 : : }
19209 : : }
19210 : : break;
19211 : : }
19212 : : default:;
19213 : : }
19214 : : }
19215 : : }
19216 : 18 : {
19217 : 18 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
19218 : 18 : if (VECTOR_TYPE_P (type)
19219 : 18 : && (TREE_CODE_CLASS (BIT_AND_EXPR) != tcc_comparison
19220 : : || types_match (type, TREE_TYPE (captures[2]))
19221 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
19222 : : || (optimize_vectors_before_lowering_p ()
19223 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
19224 : : )
19225 : : {
19226 : 18 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1846;
19227 : 18 : {
19228 : 18 : if (! tree_invariant_p (captures[4])) goto next_after_fail1846;
19229 : 14 : tree res_op0;
19230 : 14 : res_op0 = captures[1];
19231 : 14 : tree res_op1;
19232 : 14 : {
19233 : 14 : tree _o1[2], _r1;
19234 : 14 : _o1[0] = captures[2];
19235 : 14 : _o1[1] = unshare_expr (captures[4]);
19236 : 14 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19237 : 14 : if (EXPR_P (_r1))
19238 : 0 : goto next_after_fail1846;
19239 : 14 : res_op1 = _r1;
19240 : : }
19241 : 14 : tree res_op2;
19242 : 14 : {
19243 : 14 : tree _o1[2], _r1;
19244 : 14 : _o1[0] = captures[3];
19245 : 14 : _o1[1] = captures[4];
19246 : 14 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19247 : 14 : if (EXPR_P (_r1))
19248 : 0 : goto next_after_fail1846;
19249 : 14 : res_op2 = _r1;
19250 : : }
19251 : 14 : tree _r;
19252 : 14 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19253 : 14 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 909, __FILE__, __LINE__, true);
19254 : 14 : return _r;
19255 : : }
19256 : 4 : next_after_fail1846:;
19257 : : }
19258 : : }
19259 : 4 : break;
19260 : : }
19261 : 136142 : case CALL_EXPR:
19262 : 136142 : switch (get_call_combined_fn (_p0))
19263 : : {
19264 : 0 : case CFN_BUILT_IN_BSWAP128:
19265 : 0 : if (call_expr_nargs (_p0) == 1)
19266 : : {
19267 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
19268 : 0 : switch (TREE_CODE (_p1))
19269 : : {
19270 : 0 : case INTEGER_CST:
19271 : 0 : {
19272 : 0 : {
19273 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
19274 : 0 : tree res = generic_simplify_427 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP128);
19275 : 0 : if (res) return res;
19276 : : }
19277 : 0 : break;
19278 : : }
19279 : : default:;
19280 : : }
19281 : : }
19282 : : break;
19283 : 0 : case CFN_BUILT_IN_BSWAP16:
19284 : 0 : if (call_expr_nargs (_p0) == 1)
19285 : : {
19286 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
19287 : 0 : switch (TREE_CODE (_p1))
19288 : : {
19289 : 0 : case INTEGER_CST:
19290 : 0 : {
19291 : 0 : {
19292 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
19293 : 0 : tree res = generic_simplify_427 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP16);
19294 : 0 : if (res) return res;
19295 : : }
19296 : 0 : break;
19297 : : }
19298 : : default:;
19299 : : }
19300 : : }
19301 : : break;
19302 : 10 : case CFN_BUILT_IN_BSWAP32:
19303 : 10 : if (call_expr_nargs (_p0) == 1)
19304 : : {
19305 : 10 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
19306 : 10 : switch (TREE_CODE (_p1))
19307 : : {
19308 : 9 : case INTEGER_CST:
19309 : 9 : {
19310 : 9 : {
19311 : 9 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
19312 : 9 : tree res = generic_simplify_427 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP32);
19313 : 9 : if (res) return res;
19314 : : }
19315 : 1 : break;
19316 : : }
19317 : : default:;
19318 : : }
19319 : : }
19320 : : break;
19321 : 8 : case CFN_BUILT_IN_BSWAP64:
19322 : 8 : if (call_expr_nargs (_p0) == 1)
19323 : : {
19324 : 8 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
19325 : 8 : switch (TREE_CODE (_p1))
19326 : : {
19327 : 7 : case INTEGER_CST:
19328 : 7 : {
19329 : 7 : {
19330 : 7 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
19331 : 7 : tree res = generic_simplify_427 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP64);
19332 : 7 : if (res) return res;
19333 : : }
19334 : 1 : break;
19335 : : }
19336 : : default:;
19337 : : }
19338 : : }
19339 : : break;
19340 : : default:;
19341 : : }
19342 : : break;
19343 : 6289836 : default:;
19344 : : }
19345 : 6289836 : switch (TREE_CODE (_p1))
19346 : : {
19347 : 1 : case VEC_COND_EXPR:
19348 : 1 : {
19349 : 1 : tree _q30 = TREE_OPERAND (_p1, 0);
19350 : 1 : tree _q31 = TREE_OPERAND (_p1, 1);
19351 : 1 : tree _q32 = TREE_OPERAND (_p1, 2);
19352 : 1 : {
19353 : 1 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
19354 : 1 : if (VECTOR_TYPE_P (type)
19355 : 1 : && (TREE_CODE_CLASS (BIT_AND_EXPR) != tcc_comparison
19356 : : || types_match (type, TREE_TYPE (captures[3]))
19357 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
19358 : : || (optimize_vectors_before_lowering_p ()
19359 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
19360 : : )
19361 : : {
19362 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1847;
19363 : 1 : {
19364 : 1 : if (! tree_invariant_p (captures[0])) goto next_after_fail1847;
19365 : 0 : tree res_op0;
19366 : 0 : res_op0 = captures[2];
19367 : 0 : tree res_op1;
19368 : 0 : {
19369 : 0 : tree _o1[2], _r1;
19370 : 0 : _o1[0] = unshare_expr (captures[0]);
19371 : 0 : _o1[1] = captures[3];
19372 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19373 : 0 : if (EXPR_P (_r1))
19374 : 0 : goto next_after_fail1847;
19375 : 0 : res_op1 = _r1;
19376 : : }
19377 : 0 : tree res_op2;
19378 : 0 : {
19379 : 0 : tree _o1[2], _r1;
19380 : 0 : _o1[0] = captures[0];
19381 : 0 : _o1[1] = captures[4];
19382 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19383 : 0 : if (EXPR_P (_r1))
19384 : 0 : goto next_after_fail1847;
19385 : 0 : res_op2 = _r1;
19386 : : }
19387 : 0 : tree _r;
19388 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19389 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 910, __FILE__, __LINE__, true);
19390 : 0 : return _r;
19391 : : }
19392 : 1 : next_after_fail1847:;
19393 : : }
19394 : : }
19395 : 1 : break;
19396 : : }
19397 : 6289836 : default:;
19398 : : }
19399 : 6289836 : switch (TREE_CODE (_p0))
19400 : : {
19401 : 0 : case ORDERED_EXPR:
19402 : 0 : {
19403 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
19404 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
19405 : 0 : switch (TREE_CODE (_p1))
19406 : : {
19407 : 0 : case NE_EXPR:
19408 : 0 : {
19409 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
19410 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
19411 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19412 : : {
19413 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
19414 : : {
19415 : 0 : {
19416 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
19417 : 0 : tree res = generic_simplify_445 (loc, type, _p0, _p1, captures);
19418 : 0 : if (res) return res;
19419 : : }
19420 : : }
19421 : : }
19422 : : break;
19423 : : }
19424 : 0 : default:;
19425 : : }
19426 : 0 : if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
19427 : : {
19428 : 0 : switch (TREE_CODE (_p1))
19429 : : {
19430 : 0 : case ORDERED_EXPR:
19431 : 0 : {
19432 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
19433 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
19434 : 0 : if ((_q51 == _q50 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q50, 0) && types_match (_q51, _q50)))
19435 : : {
19436 : 0 : {
19437 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q50 };
19438 : 0 : if (types_match (captures[0], captures[1])
19439 : : )
19440 : : {
19441 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1848;
19442 : 0 : {
19443 : 0 : tree res_op0;
19444 : 0 : res_op0 = captures[0];
19445 : 0 : tree res_op1;
19446 : 0 : res_op1 = captures[1];
19447 : 0 : tree _r;
19448 : 0 : _r = fold_build2_loc (loc, ORDERED_EXPR, type, res_op0, res_op1);
19449 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1035, __FILE__, __LINE__, true);
19450 : 0 : return _r;
19451 : : }
19452 : 0 : next_after_fail1848:;
19453 : : }
19454 : : }
19455 : : }
19456 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19457 : : {
19458 : 0 : {
19459 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p1, _q51 };
19460 : 0 : tree res = generic_simplify_446 (loc, type, _p0, _p1, captures);
19461 : 0 : if (res) return res;
19462 : : }
19463 : : }
19464 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
19465 : : {
19466 : 0 : {
19467 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p1, _q50 };
19468 : 0 : tree res = generic_simplify_446 (loc, type, _p0, _p1, captures);
19469 : 0 : if (res) return res;
19470 : : }
19471 : : }
19472 : : break;
19473 : : }
19474 : : default:;
19475 : : }
19476 : : }
19477 : 0 : switch (TREE_CODE (_p1))
19478 : : {
19479 : 0 : case ORDERED_EXPR:
19480 : 0 : {
19481 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
19482 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
19483 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19484 : : {
19485 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
19486 : : {
19487 : 0 : {
19488 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p0, _q21 };
19489 : 0 : tree res = generic_simplify_447 (loc, type, _p0, _p1, captures);
19490 : 0 : if (res) return res;
19491 : : }
19492 : : }
19493 : : }
19494 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
19495 : : {
19496 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
19497 : : {
19498 : 0 : {
19499 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _p0, _q20 };
19500 : 0 : tree res = generic_simplify_447 (loc, type, _p0, _p1, captures);
19501 : 0 : if (res) return res;
19502 : : }
19503 : : }
19504 : : }
19505 : : break;
19506 : : }
19507 : : default:;
19508 : : }
19509 : : break;
19510 : : }
19511 : 127 : case NE_EXPR:
19512 : 127 : {
19513 : 127 : tree _q20 = TREE_OPERAND (_p0, 0);
19514 : 127 : tree _q21 = TREE_OPERAND (_p0, 1);
19515 : 127 : switch (TREE_CODE (_p1))
19516 : : {
19517 : 0 : case ORDERED_EXPR:
19518 : 0 : {
19519 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
19520 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
19521 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19522 : : {
19523 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
19524 : : {
19525 : 0 : {
19526 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
19527 : 0 : tree res = generic_simplify_445 (loc, type, _p0, _p1, captures);
19528 : 0 : if (res) return res;
19529 : : }
19530 : : }
19531 : : }
19532 : : break;
19533 : : }
19534 : : default:;
19535 : : }
19536 : : break;
19537 : : }
19538 : 529518 : case MINUS_EXPR:
19539 : 529518 : {
19540 : 529518 : tree _q20 = TREE_OPERAND (_p0, 0);
19541 : 529518 : tree _q21 = TREE_OPERAND (_p0, 1);
19542 : 529518 : switch (TREE_CODE (_q20))
19543 : : {
19544 : 464227 : CASE_CONVERT:
19545 : 464227 : {
19546 : 464227 : tree _q30 = TREE_OPERAND (_q20, 0);
19547 : 464227 : switch (TREE_CODE (_q21))
19548 : : {
19549 : 458988 : CASE_CONVERT:
19550 : 458988 : {
19551 : 458988 : tree _q50 = TREE_OPERAND (_q21, 0);
19552 : 458988 : switch (TREE_CODE (_p1))
19553 : : {
19554 : 458964 : case INTEGER_CST:
19555 : 458964 : {
19556 : 458964 : {
19557 : 458964 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1 };
19558 : 458964 : tree res = generic_simplify_448 (loc, type, _p0, _p1, captures, MINUS_EXPR);
19559 : 458964 : if (res) return res;
19560 : : }
19561 : 458954 : break;
19562 : : }
19563 : : default:;
19564 : : }
19565 : : break;
19566 : : }
19567 : : default:;
19568 : : }
19569 : : break;
19570 : : }
19571 : : default:;
19572 : : }
19573 : : break;
19574 : : }
19575 : 173837 : case PLUS_EXPR:
19576 : 173837 : {
19577 : 173837 : tree _q20 = TREE_OPERAND (_p0, 0);
19578 : 173837 : tree _q21 = TREE_OPERAND (_p0, 1);
19579 : 173837 : switch (TREE_CODE (_q20))
19580 : : {
19581 : 50460 : CASE_CONVERT:
19582 : 50460 : {
19583 : 50460 : tree _q30 = TREE_OPERAND (_q20, 0);
19584 : 50460 : switch (TREE_CODE (_q21))
19585 : : {
19586 : 117 : CASE_CONVERT:
19587 : 117 : {
19588 : 117 : tree _q50 = TREE_OPERAND (_q21, 0);
19589 : 117 : switch (TREE_CODE (_p1))
19590 : : {
19591 : 60 : case INTEGER_CST:
19592 : 60 : {
19593 : 60 : {
19594 : 60 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1 };
19595 : 60 : tree res = generic_simplify_448 (loc, type, _p0, _p1, captures, PLUS_EXPR);
19596 : 60 : if (res) return res;
19597 : : }
19598 : 45 : break;
19599 : : }
19600 : : default:;
19601 : : }
19602 : : break;
19603 : : }
19604 : : default:;
19605 : : }
19606 : : break;
19607 : : }
19608 : : default:;
19609 : : }
19610 : : break;
19611 : : }
19612 : 80 : case LT_EXPR:
19613 : 80 : {
19614 : 80 : tree _q20 = TREE_OPERAND (_p0, 0);
19615 : 80 : tree _q21 = TREE_OPERAND (_p0, 1);
19616 : 80 : switch (TREE_CODE (_p1))
19617 : : {
19618 : 8 : case LT_EXPR:
19619 : 8 : {
19620 : 8 : tree _q50 = TREE_OPERAND (_p1, 0);
19621 : 8 : tree _q51 = TREE_OPERAND (_p1, 1);
19622 : 8 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19623 : : {
19624 : 0 : {
19625 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
19626 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LT_EXPR, MIN_EXPR);
19627 : 0 : if (res) return res;
19628 : : }
19629 : : }
19630 : 8 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
19631 : : {
19632 : 0 : {
19633 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
19634 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GT_EXPR, MAX_EXPR);
19635 : 0 : if (res) return res;
19636 : : }
19637 : : }
19638 : : break;
19639 : : }
19640 : 1 : case GT_EXPR:
19641 : 1 : {
19642 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
19643 : 1 : tree _q51 = TREE_OPERAND (_p1, 1);
19644 : 1 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
19645 : : {
19646 : 0 : {
19647 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
19648 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LT_EXPR, MIN_EXPR);
19649 : 0 : if (res) return res;
19650 : : }
19651 : : }
19652 : 1 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
19653 : : {
19654 : 0 : {
19655 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
19656 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GT_EXPR, MAX_EXPR);
19657 : 0 : if (res) return res;
19658 : : }
19659 : : }
19660 : : break;
19661 : : }
19662 : : default:;
19663 : : }
19664 : : break;
19665 : : }
19666 : 32 : case LE_EXPR:
19667 : 32 : {
19668 : 32 : tree _q20 = TREE_OPERAND (_p0, 0);
19669 : 32 : tree _q21 = TREE_OPERAND (_p0, 1);
19670 : 32 : switch (TREE_CODE (_p1))
19671 : : {
19672 : 5 : case LE_EXPR:
19673 : 5 : {
19674 : 5 : tree _q50 = TREE_OPERAND (_p1, 0);
19675 : 5 : tree _q51 = TREE_OPERAND (_p1, 1);
19676 : 5 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19677 : : {
19678 : 0 : {
19679 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
19680 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LE_EXPR, MIN_EXPR);
19681 : 0 : if (res) return res;
19682 : : }
19683 : : }
19684 : 5 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
19685 : : {
19686 : 4 : {
19687 : 4 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
19688 : 4 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GE_EXPR, MAX_EXPR);
19689 : 4 : if (res) return res;
19690 : : }
19691 : : }
19692 : : break;
19693 : : }
19694 : 0 : case GE_EXPR:
19695 : 0 : {
19696 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
19697 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
19698 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
19699 : : {
19700 : 0 : {
19701 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
19702 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LE_EXPR, MIN_EXPR);
19703 : 0 : if (res) return res;
19704 : : }
19705 : : }
19706 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
19707 : : {
19708 : 0 : {
19709 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
19710 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GE_EXPR, MAX_EXPR);
19711 : 0 : if (res) return res;
19712 : : }
19713 : : }
19714 : : break;
19715 : : }
19716 : : default:;
19717 : : }
19718 : : break;
19719 : : }
19720 : 327 : case GT_EXPR:
19721 : 327 : {
19722 : 327 : tree _q20 = TREE_OPERAND (_p0, 0);
19723 : 327 : tree _q21 = TREE_OPERAND (_p0, 1);
19724 : 327 : switch (TREE_CODE (_p1))
19725 : : {
19726 : 85 : case GT_EXPR:
19727 : 85 : {
19728 : 85 : tree _q50 = TREE_OPERAND (_p1, 0);
19729 : 85 : tree _q51 = TREE_OPERAND (_p1, 1);
19730 : 85 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19731 : : {
19732 : 0 : {
19733 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
19734 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GT_EXPR, MAX_EXPR);
19735 : 0 : if (res) return res;
19736 : : }
19737 : : }
19738 : 85 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
19739 : : {
19740 : 35 : {
19741 : 35 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
19742 : 35 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LT_EXPR, MIN_EXPR);
19743 : 35 : if (res) return res;
19744 : : }
19745 : : }
19746 : : break;
19747 : : }
19748 : 67 : case LT_EXPR:
19749 : 67 : {
19750 : 67 : tree _q50 = TREE_OPERAND (_p1, 0);
19751 : 67 : tree _q51 = TREE_OPERAND (_p1, 1);
19752 : 67 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
19753 : : {
19754 : 0 : {
19755 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
19756 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GT_EXPR, MAX_EXPR);
19757 : 0 : if (res) return res;
19758 : : }
19759 : : }
19760 : 67 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
19761 : : {
19762 : 0 : {
19763 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
19764 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LT_EXPR, MIN_EXPR);
19765 : 0 : if (res) return res;
19766 : : }
19767 : : }
19768 : : break;
19769 : : }
19770 : : default:;
19771 : : }
19772 : : break;
19773 : : }
19774 : 53 : case GE_EXPR:
19775 : 53 : {
19776 : 53 : tree _q20 = TREE_OPERAND (_p0, 0);
19777 : 53 : tree _q21 = TREE_OPERAND (_p0, 1);
19778 : 53 : switch (TREE_CODE (_p1))
19779 : : {
19780 : 11 : case GE_EXPR:
19781 : 11 : {
19782 : 11 : tree _q50 = TREE_OPERAND (_p1, 0);
19783 : 11 : tree _q51 = TREE_OPERAND (_p1, 1);
19784 : 11 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19785 : : {
19786 : 7 : {
19787 : 7 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
19788 : 7 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GE_EXPR, MAX_EXPR);
19789 : 7 : if (res) return res;
19790 : : }
19791 : : }
19792 : 11 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
19793 : : {
19794 : 0 : {
19795 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
19796 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LE_EXPR, MIN_EXPR);
19797 : 0 : if (res) return res;
19798 : : }
19799 : : }
19800 : : break;
19801 : : }
19802 : 8 : case LE_EXPR:
19803 : 8 : {
19804 : 8 : tree _q50 = TREE_OPERAND (_p1, 0);
19805 : 8 : tree _q51 = TREE_OPERAND (_p1, 1);
19806 : 8 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
19807 : : {
19808 : 0 : {
19809 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
19810 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GE_EXPR, MAX_EXPR);
19811 : 0 : if (res) return res;
19812 : : }
19813 : : }
19814 : 8 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
19815 : : {
19816 : 0 : {
19817 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
19818 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LE_EXPR, MIN_EXPR);
19819 : 0 : if (res) return res;
19820 : : }
19821 : : }
19822 : : break;
19823 : : }
19824 : : default:;
19825 : : }
19826 : : break;
19827 : : }
19828 : 46763 : case NEGATE_EXPR:
19829 : 46763 : {
19830 : 46763 : tree _q20 = TREE_OPERAND (_p0, 0);
19831 : 46763 : if (integer_onep (_p1))
19832 : : {
19833 : 2138 : {
19834 : 2138 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
19835 : 2138 : if (!TYPE_OVERFLOW_SANITIZED (type)
19836 : : )
19837 : : {
19838 : 2125 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1849;
19839 : 2125 : {
19840 : 2125 : tree res_op0;
19841 : 2125 : res_op0 = captures[0];
19842 : 2125 : tree res_op1;
19843 : 2125 : res_op1 = captures[1];
19844 : 2125 : tree _r;
19845 : 2125 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
19846 : 2125 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1036, __FILE__, __LINE__, true);
19847 : 2125 : return _r;
19848 : : }
19849 : 0 : next_after_fail1849:;
19850 : : }
19851 : : }
19852 : : }
19853 : : break;
19854 : : }
19855 : 1 : case VEC_PERM_EXPR:
19856 : 1 : {
19857 : 1 : tree _q20 = TREE_OPERAND (_p0, 0);
19858 : 1 : tree _q21 = TREE_OPERAND (_p0, 1);
19859 : 1 : tree _q22 = TREE_OPERAND (_p0, 2);
19860 : 1 : if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
19861 : : {
19862 : 0 : switch (TREE_CODE (_p1))
19863 : : {
19864 : 0 : case VEC_PERM_EXPR:
19865 : 0 : {
19866 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
19867 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
19868 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
19869 : 0 : if ((_q61 == _q60 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q60, 0) && types_match (_q61, _q60)))
19870 : : {
19871 : 0 : if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
19872 : : {
19873 : 0 : {
19874 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q22, _q60 };
19875 : 0 : if (VECTOR_INTEGER_TYPE_P (type)
19876 : : )
19877 : : {
19878 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1850;
19879 : 0 : {
19880 : 0 : tree res_op0;
19881 : 0 : {
19882 : 0 : tree _o1[2], _r1;
19883 : 0 : _o1[0] = captures[0];
19884 : 0 : _o1[1] = captures[2];
19885 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19886 : 0 : captures[3] = _r1;
19887 : : }
19888 : 0 : res_op0 = unshare_expr (captures[3]);
19889 : 0 : tree res_op1;
19890 : 0 : res_op1 = captures[3];
19891 : 0 : tree res_op2;
19892 : 0 : res_op2 = captures[1];
19893 : 0 : tree _r;
19894 : 0 : _r = fold_build3_loc (loc, VEC_PERM_EXPR, type, res_op0, res_op1, res_op2);
19895 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 911, __FILE__, __LINE__, true);
19896 : 0 : return _r;
19897 : : }
19898 : 0 : next_after_fail1850:;
19899 : : }
19900 : : }
19901 : : }
19902 : : }
19903 : : break;
19904 : : }
19905 : : default:;
19906 : : }
19907 : : }
19908 : : break;
19909 : : }
19910 : 136128 : case CALL_EXPR:
19911 : 136128 : switch (get_call_combined_fn (_p0))
19912 : : {
19913 : 1 : case CFN_BUILT_IN_POPCOUNT:
19914 : 1 : if (call_expr_nargs (_p0) == 1)
19915 : : {
19916 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
19917 : 1 : if (integer_onep (_p1))
19918 : : {
19919 : 1 : {
19920 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
19921 : 1 : tree res = generic_simplify_449 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNT, CFN_BUILT_IN_PARITY);
19922 : 1 : if (res) return res;
19923 : : }
19924 : : }
19925 : : }
19926 : : break;
19927 : 1 : case CFN_BUILT_IN_POPCOUNTLL:
19928 : 1 : if (call_expr_nargs (_p0) == 1)
19929 : : {
19930 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
19931 : 1 : if (integer_onep (_p1))
19932 : : {
19933 : 1 : {
19934 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
19935 : 1 : tree res = generic_simplify_449 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTLL, CFN_BUILT_IN_PARITYLL);
19936 : 1 : if (res) return res;
19937 : : }
19938 : : }
19939 : : }
19940 : : break;
19941 : 0 : case CFN_POPCOUNT:
19942 : 0 : if (call_expr_nargs (_p0) == 1)
19943 : : {
19944 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
19945 : 0 : if (integer_onep (_p1))
19946 : : {
19947 : 0 : {
19948 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
19949 : 0 : tree res = generic_simplify_449 (loc, type, _p0, _p1, captures, CFN_POPCOUNT, CFN_PARITY);
19950 : 0 : if (res) return res;
19951 : : }
19952 : : }
19953 : : }
19954 : : break;
19955 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
19956 : 0 : if (call_expr_nargs (_p0) == 1)
19957 : : {
19958 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
19959 : 0 : if (integer_onep (_p1))
19960 : : {
19961 : 0 : {
19962 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
19963 : 0 : tree res = generic_simplify_449 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTIMAX, CFN_BUILT_IN_PARITYIMAX);
19964 : 0 : if (res) return res;
19965 : : }
19966 : : }
19967 : : }
19968 : : break;
19969 : 1 : case CFN_BUILT_IN_POPCOUNTL:
19970 : 1 : if (call_expr_nargs (_p0) == 1)
19971 : : {
19972 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
19973 : 1 : if (integer_onep (_p1))
19974 : : {
19975 : 1 : {
19976 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
19977 : 1 : tree res = generic_simplify_449 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTL, CFN_BUILT_IN_PARITYL);
19978 : 1 : if (res) return res;
19979 : : }
19980 : : }
19981 : : }
19982 : : break;
19983 : : default:;
19984 : : }
19985 : : break;
19986 : : default:;
19987 : : }
19988 : : return NULL_TREE;
19989 : : }
19990 : : #pragma GCC diagnostic pop
|