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 : 152931127 : tree_maybe_bit_not (tree t, tree *res_ops)
11 : : {
12 : 152931127 : const tree type = TREE_TYPE (t);
13 : 152931127 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
14 : 152931127 : if (TREE_SIDE_EFFECTS (t)) return false;
15 : 145908306 : switch (TREE_CODE (t))
16 : : {
17 : 49254670 : case INTEGER_CST:
18 : 49254670 : {
19 : 49254670 : {
20 : 49254670 : tree captures[1] ATTRIBUTE_UNUSED = { t };
21 : 49254670 : {
22 : 49254670 : res_ops[0] = captures[0];
23 : 49254670 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 8, __FILE__, __LINE__, false);
24 : : return true;
25 : : }
26 : : }
27 : 96653636 : break;
28 : : }
29 : 96653636 : default:;
30 : : }
31 : 96653636 : {
32 : 96653636 : tree t_pops[1];
33 : 96653636 : if (tree_bit_not_with_nop (t, t_pops))
34 : : {
35 : 105813 : tree _p0 = t_pops[0];
36 : 105813 : {
37 : 105813 : tree captures[2] ATTRIBUTE_UNUSED = { t, _p0 };
38 : 105813 : {
39 : 105813 : res_ops[0] = captures[0];
40 : 105813 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 9, __FILE__, __LINE__, false);
41 : 105813 : return true;
42 : : }
43 : : }
44 : : }
45 : : }
46 : 96547823 : {
47 : 96547823 : tree t_pops[1];
48 : 96547823 : if (tree_maybe_cmp (t, t_pops))
49 : : {
50 : 426689 : tree _p0 = t_pops[0];
51 : 426689 : {
52 : 426689 : tree captures[2] ATTRIBUTE_UNUSED = { t, _p0 };
53 : 426689 : {
54 : 426689 : res_ops[0] = captures[0];
55 : 426689 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 10, __FILE__, __LINE__, false);
56 : 426689 : return true;
57 : : }
58 : : }
59 : : }
60 : : }
61 : 96121134 : {
62 : 96121134 : tree t_pops[2];
63 : 96121134 : if (tree_bit_xor_cst (t, t_pops))
64 : : {
65 : 1585 : tree _p0 = t_pops[0];
66 : 1585 : tree _p1 = t_pops[1];
67 : 1585 : {
68 : 1585 : tree captures[3] ATTRIBUTE_UNUSED = { t, _p0, _p1 };
69 : 1585 : {
70 : 1585 : res_ops[0] = captures[0];
71 : 1585 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 11, __FILE__, __LINE__, false);
72 : 1585 : return true;
73 : : }
74 : : }
75 : : }
76 : : }
77 : 96119549 : return false;
78 : : }
79 : :
80 : : bool
81 : 2002 : tree_min_value (tree t)
82 : : {
83 : 2002 : const tree type = TREE_TYPE (t);
84 : 2002 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
85 : 2002 : if (TREE_SIDE_EFFECTS (t)) return false;
86 : 1994 : if (uniform_integer_cst_p (t))
87 : : {
88 : 1745 : {
89 : 1745 : {
90 : 1745 : tree int_cst = uniform_integer_cst_p (t);
91 : 1745 : tree inner_type = TREE_TYPE (int_cst);
92 : 3490 : if ((INTEGRAL_TYPE_P (inner_type)
93 : 17 : || POINTER_TYPE_P (inner_type))
94 : 3507 : && wi::eq_p (wi::to_wide (int_cst), wi::min_value (inner_type))
95 : : )
96 : : {
97 : 138 : {
98 : 138 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 41, __FILE__, __LINE__, false);
99 : 138 : return true;
100 : : }
101 : : }
102 : : }
103 : : }
104 : : }
105 : : return false;
106 : : }
107 : :
108 : : bool
109 : 0 : tree_unsigned_integer_sat_trunc (tree t, tree *res_ops)
110 : : {
111 : 0 : const tree type = TREE_TYPE (t);
112 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
113 : 0 : if (TREE_SIDE_EFFECTS (t)) return false;
114 : 0 : switch (TREE_CODE (t))
115 : : {
116 : 0 : case BIT_IOR_EXPR:
117 : 0 : {
118 : 0 : tree _p0 = TREE_OPERAND (t, 0);
119 : 0 : tree _p1 = TREE_OPERAND (t, 1);
120 : 0 : switch (TREE_CODE (_p0))
121 : : {
122 : 0 : case NEGATE_EXPR:
123 : 0 : {
124 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
125 : 0 : switch (TREE_CODE (_q20))
126 : : {
127 : 0 : CASE_CONVERT:
128 : 0 : {
129 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
130 : 0 : switch (TREE_CODE (_q30))
131 : : {
132 : 0 : case GT_EXPR:
133 : 0 : {
134 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
135 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
136 : 0 : switch (TREE_CODE (_q41))
137 : : {
138 : 0 : case INTEGER_CST:
139 : 0 : {
140 : 0 : switch (TREE_CODE (_p1))
141 : : {
142 : 0 : CASE_CONVERT:
143 : 0 : {
144 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
145 : 0 : if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
146 : : {
147 : 0 : {
148 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q41 };
149 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
150 : : )
151 : : {
152 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0]))
153 : : )
154 : : {
155 : 0 : {
156 : 0 : unsigned itype_precision = TYPE_PRECISION (TREE_TYPE (captures[0]));
157 : 0 : unsigned otype_precision = TYPE_PRECISION (type);
158 : 0 : wide_int trunc_max = wi::mask (otype_precision, false, itype_precision);
159 : 0 : wide_int int_cst = wi::to_wide (captures[1], itype_precision);
160 : 0 : if (otype_precision < itype_precision && wi::eq_p (trunc_max, int_cst)
161 : : )
162 : : {
163 : 0 : {
164 : 0 : res_ops[0] = captures[0];
165 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 70, __FILE__, __LINE__, false);
166 : 0 : return true;
167 : : }
168 : : }
169 : 0 : }
170 : : }
171 : : }
172 : : }
173 : : }
174 : : break;
175 : : }
176 : : default:;
177 : : }
178 : : break;
179 : : }
180 : : default:;
181 : : }
182 : : break;
183 : : }
184 : : default:;
185 : : }
186 : : break;
187 : : }
188 : : default:;
189 : : }
190 : : break;
191 : : }
192 : 0 : CASE_CONVERT:
193 : 0 : {
194 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
195 : 0 : switch (TREE_CODE (_p1))
196 : : {
197 : 0 : case NEGATE_EXPR:
198 : 0 : {
199 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
200 : 0 : switch (TREE_CODE (_q40))
201 : : {
202 : 0 : CASE_CONVERT:
203 : 0 : {
204 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
205 : 0 : switch (TREE_CODE (_q50))
206 : : {
207 : 0 : case GT_EXPR:
208 : 0 : {
209 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
210 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
211 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
212 : : {
213 : 0 : switch (TREE_CODE (_q61))
214 : : {
215 : 0 : case INTEGER_CST:
216 : 0 : {
217 : 0 : {
218 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q61 };
219 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
220 : : )
221 : : {
222 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0]))
223 : : )
224 : : {
225 : 0 : {
226 : 0 : unsigned itype_precision = TYPE_PRECISION (TREE_TYPE (captures[0]));
227 : 0 : unsigned otype_precision = TYPE_PRECISION (type);
228 : 0 : wide_int trunc_max = wi::mask (otype_precision, false, itype_precision);
229 : 0 : wide_int int_cst = wi::to_wide (captures[1], itype_precision);
230 : 0 : if (otype_precision < itype_precision && wi::eq_p (trunc_max, int_cst)
231 : : )
232 : : {
233 : 0 : {
234 : 0 : res_ops[0] = captures[0];
235 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 70, __FILE__, __LINE__, false);
236 : 0 : return true;
237 : : }
238 : : }
239 : 0 : }
240 : : }
241 : : }
242 : : }
243 : 0 : break;
244 : : }
245 : : default:;
246 : : }
247 : : }
248 : : break;
249 : : }
250 : : default:;
251 : : }
252 : : break;
253 : : }
254 : : default:;
255 : : }
256 : : break;
257 : : }
258 : 0 : case PLUS_EXPR:
259 : 0 : {
260 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
261 : 0 : tree _q41 = TREE_OPERAND (_p1, 1);
262 : 0 : switch (TREE_CODE (_q40))
263 : : {
264 : 0 : CASE_CONVERT:
265 : 0 : {
266 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
267 : 0 : switch (TREE_CODE (_q50))
268 : : {
269 : 0 : case LE_EXPR:
270 : 0 : {
271 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
272 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
273 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
274 : : {
275 : 0 : switch (TREE_CODE (_q61))
276 : : {
277 : 0 : case INTEGER_CST:
278 : 0 : {
279 : 0 : switch (TREE_CODE (_q41))
280 : : {
281 : 0 : case INTEGER_CST:
282 : 0 : {
283 : 0 : {
284 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q61, _q41 };
285 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
286 : : )
287 : : {
288 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0]))
289 : : )
290 : : {
291 : 0 : {
292 : 0 : unsigned itype_precision = TYPE_PRECISION (TREE_TYPE (captures[0]));
293 : 0 : unsigned otype_precision = TYPE_PRECISION (type);
294 : 0 : wide_int trunc_max = wi::mask (otype_precision, false, itype_precision);
295 : 0 : wide_int max = wi::mask (otype_precision, false, otype_precision);
296 : 0 : wide_int int_cst_1 = wi::to_wide (captures[1]);
297 : 0 : wide_int int_cst_2 = wi::to_wide (captures[2]);
298 : 0 : if (wi::eq_p (trunc_max, int_cst_1) && wi::eq_p (max, int_cst_2)
299 : : )
300 : : {
301 : 0 : {
302 : 0 : res_ops[0] = captures[0];
303 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 71, __FILE__, __LINE__, false);
304 : 0 : return true;
305 : : }
306 : : }
307 : 0 : }
308 : : }
309 : : }
310 : : }
311 : 0 : break;
312 : : }
313 : : default:;
314 : : }
315 : : break;
316 : : }
317 : : default:;
318 : : }
319 : : }
320 : : break;
321 : : }
322 : : default:;
323 : : }
324 : : break;
325 : : }
326 : 0 : case INTEGER_CST:
327 : 0 : {
328 : 0 : switch (TREE_CODE (_q41))
329 : : {
330 : 0 : CASE_CONVERT:
331 : 0 : {
332 : 0 : tree _q60 = TREE_OPERAND (_q41, 0);
333 : 0 : switch (TREE_CODE (_q60))
334 : : {
335 : 0 : case LE_EXPR:
336 : 0 : {
337 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
338 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
339 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
340 : : {
341 : 0 : switch (TREE_CODE (_q71))
342 : : {
343 : 0 : case INTEGER_CST:
344 : 0 : {
345 : 0 : {
346 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q71, _q40 };
347 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
348 : : )
349 : : {
350 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0]))
351 : : )
352 : : {
353 : 0 : {
354 : 0 : unsigned itype_precision = TYPE_PRECISION (TREE_TYPE (captures[0]));
355 : 0 : unsigned otype_precision = TYPE_PRECISION (type);
356 : 0 : wide_int trunc_max = wi::mask (otype_precision, false, itype_precision);
357 : 0 : wide_int max = wi::mask (otype_precision, false, otype_precision);
358 : 0 : wide_int int_cst_1 = wi::to_wide (captures[1]);
359 : 0 : wide_int int_cst_2 = wi::to_wide (captures[2]);
360 : 0 : if (wi::eq_p (trunc_max, int_cst_1) && wi::eq_p (max, int_cst_2)
361 : : )
362 : : {
363 : 0 : {
364 : 0 : res_ops[0] = captures[0];
365 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 71, __FILE__, __LINE__, false);
366 : 0 : return true;
367 : : }
368 : : }
369 : 0 : }
370 : : }
371 : : }
372 : : }
373 : 0 : break;
374 : : }
375 : : default:;
376 : : }
377 : : }
378 : : break;
379 : : }
380 : : default:;
381 : : }
382 : : break;
383 : : }
384 : : default:;
385 : : }
386 : : break;
387 : : }
388 : : default:;
389 : : }
390 : : break;
391 : : }
392 : : default:;
393 : : }
394 : : break;
395 : : }
396 : 0 : case PLUS_EXPR:
397 : 0 : {
398 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
399 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
400 : 0 : switch (TREE_CODE (_q20))
401 : : {
402 : 0 : CASE_CONVERT:
403 : 0 : {
404 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
405 : 0 : switch (TREE_CODE (_q30))
406 : : {
407 : 0 : case LE_EXPR:
408 : 0 : {
409 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
410 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
411 : 0 : switch (TREE_CODE (_q41))
412 : : {
413 : 0 : case INTEGER_CST:
414 : 0 : {
415 : 0 : switch (TREE_CODE (_q21))
416 : : {
417 : 0 : case INTEGER_CST:
418 : 0 : {
419 : 0 : switch (TREE_CODE (_p1))
420 : : {
421 : 0 : CASE_CONVERT:
422 : 0 : {
423 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
424 : 0 : if ((_q80 == _q40 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q40, 0) && types_match (_q80, _q40)))
425 : : {
426 : 0 : {
427 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _q21 };
428 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
429 : : )
430 : : {
431 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0]))
432 : : )
433 : : {
434 : 0 : {
435 : 0 : unsigned itype_precision = TYPE_PRECISION (TREE_TYPE (captures[0]));
436 : 0 : unsigned otype_precision = TYPE_PRECISION (type);
437 : 0 : wide_int trunc_max = wi::mask (otype_precision, false, itype_precision);
438 : 0 : wide_int max = wi::mask (otype_precision, false, otype_precision);
439 : 0 : wide_int int_cst_1 = wi::to_wide (captures[1]);
440 : 0 : wide_int int_cst_2 = wi::to_wide (captures[2]);
441 : 0 : if (wi::eq_p (trunc_max, int_cst_1) && wi::eq_p (max, int_cst_2)
442 : : )
443 : : {
444 : 0 : {
445 : 0 : res_ops[0] = captures[0];
446 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 71, __FILE__, __LINE__, false);
447 : 0 : return true;
448 : : }
449 : : }
450 : 0 : }
451 : : }
452 : : }
453 : : }
454 : : }
455 : : break;
456 : : }
457 : : default:;
458 : : }
459 : : break;
460 : : }
461 : : default:;
462 : : }
463 : : break;
464 : : }
465 : : default:;
466 : : }
467 : : break;
468 : : }
469 : : default:;
470 : : }
471 : : break;
472 : : }
473 : 0 : case INTEGER_CST:
474 : 0 : {
475 : 0 : switch (TREE_CODE (_q21))
476 : : {
477 : 0 : CASE_CONVERT:
478 : 0 : {
479 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
480 : 0 : switch (TREE_CODE (_q40))
481 : : {
482 : 0 : case LE_EXPR:
483 : 0 : {
484 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
485 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
486 : 0 : switch (TREE_CODE (_q51))
487 : : {
488 : 0 : case INTEGER_CST:
489 : 0 : {
490 : 0 : switch (TREE_CODE (_p1))
491 : : {
492 : 0 : CASE_CONVERT:
493 : 0 : {
494 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
495 : 0 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
496 : : {
497 : 0 : {
498 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q51, _q20 };
499 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
500 : : )
501 : : {
502 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0]))
503 : : )
504 : : {
505 : 0 : {
506 : 0 : unsigned itype_precision = TYPE_PRECISION (TREE_TYPE (captures[0]));
507 : 0 : unsigned otype_precision = TYPE_PRECISION (type);
508 : 0 : wide_int trunc_max = wi::mask (otype_precision, false, itype_precision);
509 : 0 : wide_int max = wi::mask (otype_precision, false, otype_precision);
510 : 0 : wide_int int_cst_1 = wi::to_wide (captures[1]);
511 : 0 : wide_int int_cst_2 = wi::to_wide (captures[2]);
512 : 0 : if (wi::eq_p (trunc_max, int_cst_1) && wi::eq_p (max, int_cst_2)
513 : : )
514 : : {
515 : 0 : {
516 : 0 : res_ops[0] = captures[0];
517 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 71, __FILE__, __LINE__, false);
518 : 0 : return true;
519 : : }
520 : : }
521 : 0 : }
522 : : }
523 : : }
524 : : }
525 : : }
526 : : break;
527 : : }
528 : : default:;
529 : : }
530 : : break;
531 : : }
532 : : default:;
533 : : }
534 : : break;
535 : : }
536 : : default:;
537 : : }
538 : : break;
539 : : }
540 : : default:;
541 : : }
542 : : break;
543 : : }
544 : : default:;
545 : : }
546 : : break;
547 : : }
548 : : default:;
549 : : }
550 : : break;
551 : : }
552 : 0 : CASE_CONVERT:
553 : 0 : {
554 : 0 : tree _p0 = TREE_OPERAND (t, 0);
555 : 0 : switch (TREE_CODE (_p0))
556 : : {
557 : 0 : case MIN_EXPR:
558 : 0 : {
559 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
560 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
561 : 0 : switch (TREE_CODE (_q21))
562 : : {
563 : 0 : case INTEGER_CST:
564 : 0 : {
565 : 0 : {
566 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p0, _q21 };
567 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
568 : : )
569 : : {
570 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0])) && single_use (captures[1])
571 : : )
572 : : {
573 : 0 : {
574 : 0 : unsigned itype_precision = TYPE_PRECISION (TREE_TYPE (captures[0]));
575 : 0 : unsigned otype_precision = TYPE_PRECISION (type);
576 : 0 : wide_int trunc_max = wi::mask (otype_precision, false, itype_precision);
577 : 0 : wide_int int_cst = wi::to_wide (captures[2], itype_precision);
578 : 0 : if (otype_precision < itype_precision && wi::eq_p (trunc_max, int_cst)
579 : : )
580 : : {
581 : 0 : {
582 : 0 : res_ops[0] = captures[0];
583 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 72, __FILE__, __LINE__, false);
584 : 0 : return true;
585 : : }
586 : : }
587 : 0 : }
588 : : }
589 : : }
590 : : }
591 : 0 : break;
592 : : }
593 : : default:;
594 : : }
595 : : break;
596 : : }
597 : : default:;
598 : : }
599 : : break;
600 : : }
601 : : default:;
602 : : }
603 : : return false;
604 : : }
605 : :
606 : : tree
607 : 3 : generic_simplify_1 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
608 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
609 : : const enum tree_code ARG_UNUSED (op))
610 : : {
611 : 3 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
612 : 3 : if (!flag_trapping_math
613 : : )
614 : : {
615 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail244;
616 : 2 : {
617 : 2 : tree res_op0;
618 : 2 : res_op0 = captures[0];
619 : 2 : tree _r;
620 : 2 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
621 : 2 : if (TREE_SIDE_EFFECTS (captures[1]))
622 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
623 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 109, __FILE__, __LINE__, true);
624 : 2 : return _r;
625 : : }
626 : 0 : next_after_fail244:;
627 : : }
628 : : return NULL_TREE;
629 : : }
630 : :
631 : : tree
632 : 5277 : generic_simplify_3 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
633 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
634 : : {
635 : 5277 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
636 : 5277 : if (fold_real_zero_addition_p (type, captures[0], captures[1], 0)
637 : : )
638 : : {
639 : 95 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail246;
640 : 95 : {
641 : 95 : tree res_op0;
642 : 95 : res_op0 = captures[0];
643 : 95 : tree _r;
644 : 95 : _r = non_lvalue_loc (loc, res_op0);
645 : 95 : if (TREE_SIDE_EFFECTS (captures[1]))
646 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
647 : 95 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 111, __FILE__, __LINE__, true);
648 : 95 : return _r;
649 : : }
650 : 0 : next_after_fail246:;
651 : : }
652 : : return NULL_TREE;
653 : : }
654 : :
655 : : tree
656 : 66 : generic_simplify_5 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
657 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
658 : : {
659 : 66 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
660 : 66 : if (ANY_INTEGRAL_TYPE_P (type) && TYPE_OVERFLOW_UNDEFINED (type)
661 : : )
662 : : {
663 : 66 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail249;
664 : 66 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail249;
665 : 66 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail249;
666 : 66 : {
667 : 66 : tree res_op0;
668 : 66 : res_op0 = captures[0];
669 : 66 : tree _r;
670 : 66 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
671 : 66 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 114, __FILE__, __LINE__, true);
672 : 66 : return _r;
673 : : }
674 : : next_after_fail249:;
675 : : }
676 : : return NULL_TREE;
677 : : }
678 : :
679 : : tree
680 : 7 : generic_simplify_6 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
681 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
682 : : const enum tree_code ARG_UNUSED (op))
683 : : {
684 : 7 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
685 : 7 : if (INTEGRAL_TYPE_P (type)
686 : 7 : && TYPE_OVERFLOW_WRAPS (type)
687 : 14 : && !TYPE_SATURATING (type)
688 : : )
689 : : {
690 : 7 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail250;
691 : 7 : {
692 : 7 : tree res_op0;
693 : 7 : {
694 : 7 : tree _o1[2], _r1;
695 : 7 : _o1[0] = captures[1];
696 : 7 : _o1[1] = captures[4];
697 : 7 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
698 : 7 : res_op0 = _r1;
699 : : }
700 : 7 : tree res_op1;
701 : 7 : res_op1 = captures[2];
702 : 7 : tree _r;
703 : 7 : _r = fold_build2_loc (loc, LSHIFT_EXPR, type, res_op0, res_op1);
704 : 7 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 115, __FILE__, __LINE__, true);
705 : 7 : return _r;
706 : : }
707 : 0 : next_after_fail250:;
708 : : }
709 : : return NULL_TREE;
710 : : }
711 : :
712 : : tree
713 : 45 : generic_simplify_8 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
714 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
715 : : {
716 : 45 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
717 : 45 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail252;
718 : 45 : {
719 : 45 : if (! tree_invariant_p (captures[2])) goto next_after_fail252;
720 : 45 : tree res_op0;
721 : 45 : {
722 : 45 : tree _o1[2], _r1;
723 : 45 : _o1[0] = captures[0];
724 : 45 : _o1[1] = unshare_expr (captures[2]);
725 : 45 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
726 : 45 : res_op0 = _r1;
727 : : }
728 : 45 : tree res_op1;
729 : 45 : {
730 : 45 : tree _o1[1], _r1;
731 : 45 : _o1[0] = captures[2];
732 : 45 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
733 : 45 : res_op1 = _r1;
734 : : }
735 : 45 : tree _r;
736 : 45 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
737 : 45 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 117, __FILE__, __LINE__, true);
738 : : return _r;
739 : : }
740 : : next_after_fail252:;
741 : : return NULL_TREE;
742 : : }
743 : :
744 : : tree
745 : 496 : generic_simplify_11 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
746 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
747 : : const enum tree_code ARG_UNUSED (op))
748 : : {
749 : 496 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
750 : 496 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[1]))
751 : 496 : && tree_nop_conversion_p (type, TREE_TYPE (captures[4]))
752 : 992 : && (wi::to_wide (captures[2]) & wi::to_wide (captures[5])) == 0
753 : : )
754 : : {
755 : 101 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail255;
756 : 101 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail255;
757 : 101 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail255;
758 : 101 : {
759 : 101 : tree res_op0;
760 : 101 : {
761 : 101 : tree _o1[1], _r1;
762 : 101 : _o1[0] = captures[0];
763 : 101 : if (TREE_TYPE (_o1[0]) != type)
764 : : {
765 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
766 : : }
767 : : else
768 : : _r1 = _o1[0];
769 : 101 : res_op0 = _r1;
770 : : }
771 : 101 : tree res_op1;
772 : 101 : {
773 : 101 : tree _o1[1], _r1;
774 : 101 : _o1[0] = captures[3];
775 : 101 : if (TREE_TYPE (_o1[0]) != type)
776 : : {
777 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
778 : : }
779 : : else
780 : : _r1 = _o1[0];
781 : 101 : res_op1 = _r1;
782 : : }
783 : 101 : tree _r;
784 : 101 : _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
785 : 101 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 120, __FILE__, __LINE__, true);
786 : 101 : return _r;
787 : : }
788 : : next_after_fail255:;
789 : : }
790 : : return NULL_TREE;
791 : : }
792 : :
793 : : tree
794 : 0 : generic_simplify_15 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
795 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
796 : : const enum tree_code ARG_UNUSED (op),
797 : : const enum tree_code ARG_UNUSED (cmp),
798 : : const enum tree_code ARG_UNUSED (icmp))
799 : : {
800 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
801 : 0 : if (INTEGRAL_TYPE_P (type)
802 : 0 : && invert_tree_comparison (cmp, HONOR_NANS (captures[1])) == icmp
803 : 0 : && canonicalize_math_after_vectorization_p ()
804 : : )
805 : : {
806 : : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail259;
807 : : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail259;
808 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail259;
809 : : {
810 : : tree res_op0;
811 : : res_op0 = captures[0];
812 : : tree res_op1;
813 : : res_op1 = captures[3];
814 : : tree res_op2;
815 : : res_op2 = captures[5];
816 : : tree _r;
817 : : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
818 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 124, __FILE__, __LINE__, true);
819 : : return _r;
820 : : }
821 : 0 : next_after_fail259:;
822 : : }
823 : 0 : return NULL_TREE;
824 : : }
825 : :
826 : : tree
827 : 2943098 : generic_simplify_17 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
828 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
829 : : const enum tree_code ARG_UNUSED (inner_op),
830 : : const enum tree_code ARG_UNUSED (neg_inner_op),
831 : : const enum tree_code ARG_UNUSED (outer_op))
832 : : {
833 : 2943098 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
834 : 2943098 : if (!TYPE_SATURATING (type)
835 : : )
836 : : {
837 : 2943098 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
838 : 5885946 : && !FIXED_POINT_TYPE_P (type)
839 : : )
840 : : {
841 : 2942848 : if (!ANY_INTEGRAL_TYPE_P (type) || TYPE_OVERFLOW_WRAPS (type)
842 : : )
843 : : {
844 : 1932583 : if (!CONSTANT_CLASS_P (captures[0])
845 : : )
846 : : {
847 : 1932576 : if (outer_op == PLUS_EXPR
848 : : )
849 : : {
850 : 1932576 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail261;
851 : 1932576 : {
852 : 1932576 : tree res_op0;
853 : 1932576 : {
854 : 1932576 : tree _o1[1], _r1;
855 : 1932576 : _o1[0] = captures[0];
856 : 1932576 : if (TREE_TYPE (_o1[0]) != type)
857 : : {
858 : 802636 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
859 : : }
860 : : else
861 : : _r1 = _o1[0];
862 : 1932576 : res_op0 = _r1;
863 : : }
864 : 1932576 : tree res_op1;
865 : 1932576 : {
866 : 1932576 : tree _o1[2], _r1;
867 : 1932576 : _o1[0] = captures[2];
868 : 1932576 : {
869 : 1932576 : tree _o2[1], _r2;
870 : 1932576 : _o2[0] = captures[1];
871 : 1932576 : if (TREE_TYPE (_o2[0]) != type)
872 : : {
873 : 796482 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o2[0]);
874 : : }
875 : : else
876 : : _r2 = _o2[0];
877 : 1932576 : _o1[1] = _r2;
878 : : }
879 : 1932576 : _r1 = fold_build2_loc (loc, inner_op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
880 : 1932576 : if (EXPR_P (_r1))
881 : 0 : goto next_after_fail261;
882 : 1932576 : res_op1 = _r1;
883 : : }
884 : 1932576 : tree _r;
885 : 1932576 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
886 : 1932576 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 126, __FILE__, __LINE__, true);
887 : 1932576 : return _r;
888 : : }
889 : : next_after_fail261:;
890 : : }
891 : : else
892 : : {
893 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail262;
894 : 0 : {
895 : 0 : tree res_op0;
896 : 0 : {
897 : 0 : tree _o1[1], _r1;
898 : 0 : _o1[0] = captures[0];
899 : 0 : if (TREE_TYPE (_o1[0]) != type)
900 : : {
901 : 0 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
902 : : }
903 : : else
904 : : _r1 = _o1[0];
905 : 0 : res_op0 = _r1;
906 : : }
907 : 0 : tree res_op1;
908 : 0 : {
909 : 0 : tree _o1[2], _r1;
910 : 0 : _o1[0] = captures[2];
911 : 0 : {
912 : 0 : tree _o2[1], _r2;
913 : 0 : _o2[0] = captures[1];
914 : 0 : if (TREE_TYPE (_o2[0]) != type)
915 : : {
916 : 0 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o2[0]);
917 : : }
918 : : else
919 : : _r2 = _o2[0];
920 : 0 : _o1[1] = _r2;
921 : : }
922 : 0 : _r1 = fold_build2_loc (loc, neg_inner_op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
923 : 0 : if (EXPR_P (_r1))
924 : 0 : goto next_after_fail262;
925 : 0 : res_op1 = _r1;
926 : : }
927 : 0 : tree _r;
928 : 0 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
929 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 127, __FILE__, __LINE__, true);
930 : 0 : return _r;
931 : : }
932 : : next_after_fail262:;
933 : : }
934 : : }
935 : : }
936 : : else
937 : : {
938 : 2020530 : if (!ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
939 : 2020530 : || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[0]))
940 : : )
941 : : {
942 : 262716 : if (outer_op == PLUS_EXPR
943 : : )
944 : : {
945 : 262716 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail263;
946 : 262716 : {
947 : 262716 : tree res_op0;
948 : 262716 : {
949 : 262716 : tree _o1[2], _r1;
950 : 262716 : _o1[0] = captures[0];
951 : 262716 : {
952 : 262716 : tree _o2[2], _r2;
953 : 262716 : {
954 : 262716 : tree _o3[1], _r3;
955 : 262716 : _o3[0] = captures[2];
956 : 262716 : if (TREE_TYPE (_o3[0]) != TREE_TYPE (_o1[0]))
957 : : {
958 : 262716 : _r3 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, TREE_TYPE (_o1[0]), _o3[0]);
959 : : }
960 : : else
961 : : _r3 = _o3[0];
962 : 262716 : _o2[0] = _r3;
963 : : }
964 : 262716 : _o2[1] = captures[1];
965 : 262716 : _r2 = fold_build2_loc (loc, inner_op, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
966 : 262716 : if (EXPR_P (_r2))
967 : 0 : goto next_after_fail263;
968 : 262716 : _o1[1] = _r2;
969 : : }
970 : 262716 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
971 : 262716 : res_op0 = _r1;
972 : : }
973 : 262716 : tree _r;
974 : 262716 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
975 : 262716 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 128, __FILE__, __LINE__, true);
976 : 262716 : return _r;
977 : : }
978 : : next_after_fail263:;
979 : : }
980 : : else
981 : : {
982 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail264;
983 : 0 : {
984 : 0 : tree res_op0;
985 : 0 : {
986 : 0 : tree _o1[2], _r1;
987 : 0 : _o1[0] = captures[0];
988 : 0 : {
989 : 0 : tree _o2[2], _r2;
990 : 0 : {
991 : 0 : tree _o3[1], _r3;
992 : 0 : _o3[0] = captures[2];
993 : 0 : if (TREE_TYPE (_o3[0]) != TREE_TYPE (_o1[0]))
994 : : {
995 : 0 : _r3 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, TREE_TYPE (_o1[0]), _o3[0]);
996 : : }
997 : : else
998 : : _r3 = _o3[0];
999 : 0 : _o2[0] = _r3;
1000 : : }
1001 : 0 : _o2[1] = captures[1];
1002 : 0 : _r2 = fold_build2_loc (loc, neg_inner_op, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
1003 : 0 : if (EXPR_P (_r2))
1004 : 0 : goto next_after_fail264;
1005 : 0 : _o1[1] = _r2;
1006 : : }
1007 : 0 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1008 : 0 : res_op0 = _r1;
1009 : : }
1010 : 0 : tree _r;
1011 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
1012 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 129, __FILE__, __LINE__, true);
1013 : 0 : return _r;
1014 : : }
1015 : : next_after_fail264:;
1016 : : }
1017 : : }
1018 : : else
1019 : : {
1020 : 747549 : if (types_match (type, captures[0]) && !TYPE_OVERFLOW_SANITIZED (type)
1021 : : )
1022 : : {
1023 : 746338 : {
1024 : 746338 : tree cst = const_binop (outer_op == inner_op
1025 : : ? PLUS_EXPR : MINUS_EXPR,
1026 : : type, captures[1], captures[2]);
1027 : 746338 : if (cst
1028 : : )
1029 : : {
1030 : 746338 : if (INTEGRAL_TYPE_P (type) && !TREE_OVERFLOW (cst)
1031 : : )
1032 : : {
1033 : 746324 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail265;
1034 : 746324 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail265;
1035 : 746324 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail265;
1036 : 746324 : {
1037 : 746324 : tree res_op0;
1038 : 746324 : res_op0 = captures[0];
1039 : 746324 : tree res_op1;
1040 : 746324 : res_op1 = cst;
1041 : 746324 : tree _r;
1042 : 746324 : _r = fold_build2_loc (loc, inner_op, type, res_op0, res_op1);
1043 : 746324 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 130, __FILE__, __LINE__, true);
1044 : 746324 : return _r;
1045 : : }
1046 : : next_after_fail265:;
1047 : : }
1048 : : else
1049 : : {
1050 : 28 : if (INTEGRAL_TYPE_P (type)
1051 : 28 : && wi::to_wide (cst) == wi::min_value (type)
1052 : : )
1053 : : {
1054 : 7 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail266;
1055 : 7 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail266;
1056 : 7 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail266;
1057 : 7 : {
1058 : 7 : tree res_op0;
1059 : 7 : res_op0 = captures[0];
1060 : 7 : tree res_op1;
1061 : 7 : res_op1 = wide_int_to_tree (type, wi::to_wide (cst));
1062 : 7 : tree _r;
1063 : 7 : _r = fold_build2_loc (loc, neg_inner_op, type, res_op0, res_op1);
1064 : 7 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 131, __FILE__, __LINE__, true);
1065 : 7 : return _r;
1066 : : }
1067 : : next_after_fail266:;
1068 : : }
1069 : : else
1070 : : {
1071 : 7 : {
1072 : 7 : tree utype = unsigned_type_for (type);
1073 : 7 : if (utype
1074 : : )
1075 : : {
1076 : 7 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail267;
1077 : 7 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail267;
1078 : 7 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail267;
1079 : 7 : {
1080 : 7 : tree res_op0;
1081 : 7 : {
1082 : 7 : tree _o1[2], _r1;
1083 : 7 : {
1084 : 7 : tree _o2[1], _r2;
1085 : 7 : _o2[0] = captures[0];
1086 : 7 : if (TREE_TYPE (_o2[0]) != utype)
1087 : : {
1088 : 7 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, utype, _o2[0]);
1089 : : }
1090 : : else
1091 : : _r2 = _o2[0];
1092 : 7 : _o1[0] = _r2;
1093 : : }
1094 : 7 : {
1095 : 7 : tree _o2[1], _r2;
1096 : 7 : _o2[0] = TREE_OVERFLOW (cst)
1097 : 7 : ? drop_tree_overflow (cst) : cst;
1098 : 7 : if (TREE_TYPE (_o2[0]) != utype)
1099 : : {
1100 : 7 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, utype, _o2[0]);
1101 : : }
1102 : : else
1103 : : _r2 = _o2[0];
1104 : 7 : _o1[1] = _r2;
1105 : : }
1106 : 7 : _r1 = fold_build2_loc (loc, inner_op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1107 : 7 : res_op0 = _r1;
1108 : : }
1109 : 7 : tree _r;
1110 : 7 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
1111 : 7 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 132, __FILE__, __LINE__, true);
1112 : 7 : return _r;
1113 : : }
1114 : : next_after_fail267:;
1115 : : }
1116 : : }
1117 : : }
1118 : : }
1119 : : }
1120 : : }
1121 : : }
1122 : : }
1123 : : }
1124 : : }
1125 : : }
1126 : : return NULL_TREE;
1127 : : }
1128 : :
1129 : : tree
1130 : 4 : generic_simplify_37 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1131 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1132 : : const enum tree_code ARG_UNUSED (log1),
1133 : : const enum tree_code ARG_UNUSED (log2),
1134 : : const combined_fn ARG_UNUSED (popcount))
1135 : : {
1136 : 4 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1137 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail291;
1138 : 4 : {
1139 : 4 : tree res_op0;
1140 : 4 : {
1141 : 4 : tree _o1[2], _r1;
1142 : 4 : _o1[0] = captures[2];
1143 : 4 : _o1[1] = captures[5];
1144 : 4 : _r1 = fold_build2_loc (loc, log2, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1145 : 4 : res_op0 = _r1;
1146 : : }
1147 : 4 : tree _r;
1148 : 4 : _r = maybe_build_call_expr_loc (loc, popcount, type, 1, res_op0);
1149 : 4 : if (!_r)
1150 : 0 : goto next_after_fail291;
1151 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 156, __FILE__, __LINE__, true);
1152 : : return _r;
1153 : : }
1154 : : next_after_fail291:;
1155 : : return NULL_TREE;
1156 : : }
1157 : :
1158 : : tree
1159 : 78 : generic_simplify_40 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1160 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1161 : : {
1162 : 78 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1163 : 78 : if (INTEGRAL_TYPE_P (type)
1164 : 78 : || (VECTOR_INTEGER_TYPE_P (type)
1165 : : && ((optimize_vectors_before_lowering_p ()
1166 : 1 : && TREE_CODE (TYPE_SIZE (type)) == INTEGER_CST)
1167 : 0 : || target_supports_op_p (type, TRUNC_MOD_EXPR,
1168 : : optab_vector)))
1169 : : )
1170 : : {
1171 : 78 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail294;
1172 : 78 : {
1173 : 78 : tree res_op0;
1174 : 78 : {
1175 : 78 : tree _o1[2], _r1;
1176 : 78 : _o1[0] = captures[0];
1177 : 78 : _o1[1] = captures[1];
1178 : 78 : _r1 = fold_build2_loc (loc, TRUNC_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1179 : 78 : res_op0 = _r1;
1180 : : }
1181 : 78 : tree _r;
1182 : 78 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1183 : 78 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 159, __FILE__, __LINE__, true);
1184 : 78 : return _r;
1185 : : }
1186 : 0 : next_after_fail294:;
1187 : : }
1188 : : return NULL_TREE;
1189 : : }
1190 : :
1191 : : tree
1192 : 1 : generic_simplify_47 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1193 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1194 : : {
1195 : 1 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1196 : 1 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
1197 : 1 : && tree_nop_conversion_p (type, TREE_TYPE (captures[3]))
1198 : : )
1199 : : {
1200 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail301;
1201 : 1 : {
1202 : 1 : tree res_op0;
1203 : 1 : {
1204 : 1 : tree _o1[2], _r1;
1205 : 1 : {
1206 : 1 : tree _o2[1], _r2;
1207 : 1 : _o2[0] = captures[3];
1208 : 1 : _r2 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
1209 : 1 : _o1[0] = _r2;
1210 : : }
1211 : 1 : _o1[1] = captures[0];
1212 : 1 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1213 : 1 : res_op0 = _r1;
1214 : : }
1215 : 1 : tree _r;
1216 : 1 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1217 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 166, __FILE__, __LINE__, true);
1218 : 1 : return _r;
1219 : : }
1220 : 0 : next_after_fail301:;
1221 : : }
1222 : : return NULL_TREE;
1223 : : }
1224 : :
1225 : : tree
1226 : 0 : generic_simplify_54 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1227 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1228 : : {
1229 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1230 : 0 : if (!TYPE_SATURATING (type)
1231 : : )
1232 : : {
1233 : 0 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
1234 : 0 : && !FIXED_POINT_TYPE_P (type)
1235 : : )
1236 : : {
1237 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail310;
1238 : 0 : {
1239 : 0 : tree res_op0;
1240 : 0 : res_op0 = captures[1];
1241 : 0 : tree res_op1;
1242 : 0 : res_op1 = captures[2];
1243 : 0 : tree _r;
1244 : 0 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
1245 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
1246 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1247 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 174, __FILE__, __LINE__, true);
1248 : 0 : return _r;
1249 : : }
1250 : 0 : next_after_fail310:;
1251 : : }
1252 : : }
1253 : : return NULL_TREE;
1254 : : }
1255 : :
1256 : : tree
1257 : 9 : generic_simplify_60 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1258 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1259 : : {
1260 : 9 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1261 : 9 : if (INTEGRAL_TYPE_P (type)
1262 : 9 : && (
1263 : :
1264 : 9 : || !TREE_SIDE_EFFECTS (captures[1]))
1265 : : )
1266 : : {
1267 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail320;
1268 : 2 : {
1269 : 2 : tree res_op0;
1270 : 2 : {
1271 : 2 : tree _o1[1], _r1;
1272 : 2 : _o1[0] = captures[2];
1273 : 2 : if (TREE_TYPE (_o1[0]) != boolean_type_node)
1274 : : {
1275 : 2 : _r1 = fold_build1_loc (loc, NOP_EXPR, boolean_type_node, _o1[0]);
1276 : : }
1277 : : else
1278 : : _r1 = _o1[0];
1279 : 2 : res_op0 = _r1;
1280 : : }
1281 : 2 : tree res_op1;
1282 : 2 : res_op1 = captures[1];
1283 : 2 : tree res_op2;
1284 : 2 : res_op2 = captures[0];
1285 : 2 : tree _r;
1286 : 2 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
1287 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 184, __FILE__, __LINE__, true);
1288 : 2 : return _r;
1289 : : }
1290 : 0 : next_after_fail320:;
1291 : : }
1292 : : return NULL_TREE;
1293 : : }
1294 : :
1295 : : tree
1296 : 3 : generic_simplify_65 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1297 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1298 : : const enum tree_code ARG_UNUSED (op))
1299 : : {
1300 : 3 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1301 : 3 : if (INTEGRAL_TYPE_P (type)
1302 : : )
1303 : : {
1304 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail325;
1305 : 3 : {
1306 : 3 : tree res_op0;
1307 : 3 : {
1308 : 3 : tree _o1[2], _r1;
1309 : 3 : _o1[0] = captures[1];
1310 : 3 : _o1[1] = captures[4];
1311 : 3 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1312 : 3 : res_op0 = _r1;
1313 : : }
1314 : 3 : tree res_op1;
1315 : 3 : res_op1 = captures[2];
1316 : 3 : tree _r;
1317 : 3 : _r = fold_build2_loc (loc, LSHIFT_EXPR, type, res_op0, res_op1);
1318 : 3 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 189, __FILE__, __LINE__, true);
1319 : 3 : return _r;
1320 : : }
1321 : 0 : next_after_fail325:;
1322 : : }
1323 : : return NULL_TREE;
1324 : : }
1325 : :
1326 : : tree
1327 : 16 : generic_simplify_69 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1328 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1329 : : {
1330 : 16 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1331 : 16 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail329;
1332 : 16 : {
1333 : 16 : tree res_op0;
1334 : 16 : res_op0 = captures[0];
1335 : 16 : tree res_op1;
1336 : 16 : res_op1 = captures[1];
1337 : 16 : tree _r;
1338 : 16 : _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
1339 : 16 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 193, __FILE__, __LINE__, true);
1340 : : return _r;
1341 : : }
1342 : 0 : next_after_fail329:;
1343 : 0 : return NULL_TREE;
1344 : : }
1345 : :
1346 : : tree
1347 : 29 : generic_simplify_75 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1348 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1349 : : const enum tree_code ARG_UNUSED (bit_op))
1350 : : {
1351 : 29 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1352 : 29 : if (bit_op == BIT_AND_EXPR
1353 : : )
1354 : : {
1355 : 9 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail335;
1356 : 9 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail335;
1357 : 9 : {
1358 : 9 : tree _r;
1359 : 9 : _r = build_zero_cst (type);
1360 : 9 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 198, __FILE__, __LINE__, true);
1361 : 9 : return _r;
1362 : : }
1363 : : next_after_fail335:;
1364 : : }
1365 : : else
1366 : : {
1367 : 20 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail336;
1368 : 20 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail336;
1369 : 20 : {
1370 : 20 : tree _r;
1371 : 20 : _r = build_minus_one_cst (type);
1372 : 20 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 199, __FILE__, __LINE__, true);
1373 : 20 : return _r;
1374 : : }
1375 : : next_after_fail336:;
1376 : : }
1377 : : return NULL_TREE;
1378 : : }
1379 : :
1380 : : tree
1381 : 2 : generic_simplify_84 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1382 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1383 : : {
1384 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1385 : 2 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail348;
1386 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail348;
1387 : 2 : {
1388 : 2 : tree res_op0;
1389 : 2 : res_op0 = captures[0];
1390 : 2 : tree res_op1;
1391 : 2 : res_op1 = captures[3];
1392 : 2 : tree _r;
1393 : 2 : _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
1394 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 206, __FILE__, __LINE__, true);
1395 : : return _r;
1396 : : }
1397 : : next_after_fail348:;
1398 : : return NULL_TREE;
1399 : : }
1400 : :
1401 : : tree
1402 : 1 : generic_simplify_93 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1403 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1404 : : {
1405 : 1 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1406 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail357;
1407 : 1 : {
1408 : 1 : tree res_op0;
1409 : 1 : {
1410 : 1 : tree _o1[2], _r1;
1411 : 1 : _o1[0] = captures[1];
1412 : 1 : _o1[1] = captures[2];
1413 : 1 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1414 : 1 : res_op0 = _r1;
1415 : : }
1416 : 1 : tree _r;
1417 : 1 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
1418 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 212, __FILE__, __LINE__, true);
1419 : : return _r;
1420 : : }
1421 : 0 : next_after_fail357:;
1422 : 0 : return NULL_TREE;
1423 : : }
1424 : :
1425 : : tree
1426 : 1832833 : generic_simplify_103 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1427 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1428 : : const enum tree_code ARG_UNUSED (bitop))
1429 : : {
1430 : 1832833 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1431 : 1832833 : if (((TREE_CODE (captures[3]) == INTEGER_CST
1432 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
1433 : 0 : && (int_fits_type_p (captures[3], TREE_TYPE (captures[1]))
1434 : 0 : || tree_nop_conversion_p (TREE_TYPE (captures[1]), type)))
1435 : 1832833 : || types_match (captures[1], captures[3]))
1436 : 1740717 : && !POINTER_TYPE_P (TREE_TYPE (captures[1]))
1437 : 1740454 : && !VECTOR_TYPE_P (TREE_TYPE (captures[1]))
1438 : 1740454 : && TREE_CODE (TREE_TYPE (captures[1])) != OFFSET_TYPE
1439 : 1740454 : && (bitop != BIT_AND_EXPR ||
1440 : :
1441 : : )
1442 : 1832833 : && (
1443 : 976543 : TYPE_PRECISION (TREE_TYPE (captures[1])) < TYPE_PRECISION (type)
1444 : : || (
1445 : :
1446 : : && TYPE_PRECISION (TREE_TYPE (captures[1])) == TYPE_PRECISION (type))
1447 : 951079 : || GET_MODE_CLASS (TYPE_MODE (type)) != MODE_INT
1448 : 951079 : || !type_has_mode_precision_p (type)
1449 : 951079 : || (
1450 : :
1451 : : && TREE_CODE (captures[3]) != INTEGER_CST
1452 : : && tree_nop_conversion_p (type, TREE_TYPE (captures[1]))
1453 : : && single_use (captures[0])
1454 : : && single_use (captures[2])))
1455 : : )
1456 : : {
1457 : 25464 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail371;
1458 : 25464 : {
1459 : 25464 : tree res_op0;
1460 : 25464 : {
1461 : 25464 : tree _o1[2], _r1;
1462 : 25464 : _o1[0] = captures[1];
1463 : 25464 : {
1464 : 25464 : tree _o2[1], _r2;
1465 : 25464 : _o2[0] = captures[3];
1466 : 25464 : if (TREE_TYPE (_o2[0]) != TREE_TYPE (_o1[0]))
1467 : : {
1468 : 14675 : _r2 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (_o1[0]), _o2[0]);
1469 : : }
1470 : : else
1471 : : _r2 = _o2[0];
1472 : 25464 : _o1[1] = _r2;
1473 : : }
1474 : 25464 : _r1 = fold_build2_loc (loc, bitop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1475 : 25464 : res_op0 = _r1;
1476 : : }
1477 : 25464 : tree _r;
1478 : 25464 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1479 : 25464 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 218, __FILE__, __LINE__, true);
1480 : 25464 : return _r;
1481 : : }
1482 : 0 : next_after_fail371:;
1483 : : }
1484 : : return NULL_TREE;
1485 : : }
1486 : :
1487 : : tree
1488 : 0 : generic_simplify_115 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1489 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1490 : : const enum tree_code ARG_UNUSED (op))
1491 : : {
1492 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1493 : 0 : if (bitwise_equal_p (captures[4], captures[7])
1494 : : )
1495 : : {
1496 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail384;
1497 : 0 : {
1498 : 0 : tree res_op0;
1499 : 0 : {
1500 : 0 : tree _o1[2], _r1;
1501 : 0 : {
1502 : 0 : tree _o2[2], _r2;
1503 : 0 : _o2[0] = captures[5];
1504 : 0 : {
1505 : 0 : tree _o3[1], _r3;
1506 : 0 : _o3[0] = captures[6];
1507 : 0 : if (TREE_TYPE (_o3[0]) != TREE_TYPE (_o2[0]))
1508 : : {
1509 : 0 : _r3 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (_o2[0]), _o3[0]);
1510 : : }
1511 : : else
1512 : : _r3 = _o3[0];
1513 : 0 : _o2[1] = _r3;
1514 : : }
1515 : 0 : _r2 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
1516 : 0 : _o1[0] = _r2;
1517 : : }
1518 : 0 : {
1519 : 0 : tree _o2[1], _r2;
1520 : 0 : _o2[0] = captures[4];
1521 : 0 : if (TREE_TYPE (_o2[0]) != TREE_TYPE (_o1[0]))
1522 : : {
1523 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (_o1[0]), _o2[0]);
1524 : : }
1525 : : else
1526 : : _r2 = _o2[0];
1527 : 0 : _o1[1] = _r2;
1528 : : }
1529 : 0 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1530 : 0 : res_op0 = _r1;
1531 : : }
1532 : 0 : tree _r;
1533 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1534 : 0 : if (TREE_SIDE_EFFECTS (captures[7]))
1535 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[7]), _r);
1536 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 223, __FILE__, __LINE__, true);
1537 : 0 : return _r;
1538 : : }
1539 : 0 : next_after_fail384:;
1540 : : }
1541 : : return NULL_TREE;
1542 : : }
1543 : :
1544 : : tree
1545 : 56 : generic_simplify_124 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1546 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1547 : : const enum tree_code ARG_UNUSED (inner_op),
1548 : : const enum tree_code ARG_UNUSED (outer_op))
1549 : : {
1550 : 56 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1551 : 56 : {
1552 : 56 : bool fail = false;
1553 : 56 : wide_int zero_mask_not;
1554 : 56 : wide_int C0;
1555 : 56 : wide_int cst_emit;
1556 : 56 : if (TREE_CODE (captures[1]) == SSA_NAME)
1557 : 0 : zero_mask_not = get_nonzero_bits (captures[1]);
1558 : : else
1559 : : fail = true;
1560 : 56 : if (inner_op == BIT_XOR_EXPR)
1561 : : {
1562 : 33 : C0 = wi::bit_and_not (wi::to_wide (captures[2]), wi::to_wide (captures[3]));
1563 : 33 : cst_emit = C0 | wi::to_wide (captures[3]);
1564 : : }
1565 : : else
1566 : : {
1567 : 23 : C0 = wi::to_wide (captures[2]);
1568 : 23 : cst_emit = C0 ^ wi::to_wide (captures[3]);
1569 : : }
1570 : 56 : if (!fail && (C0 & zero_mask_not) == 0
1571 : : )
1572 : : {
1573 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail398;
1574 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail398;
1575 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail398;
1576 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail398;
1577 : 0 : {
1578 : 0 : tree res_op0;
1579 : 0 : res_op0 = captures[1];
1580 : 0 : tree res_op1;
1581 : 0 : res_op1 = wide_int_to_tree (type, cst_emit);
1582 : 0 : tree _r;
1583 : 0 : _r = fold_build2_loc (loc, outer_op, type, res_op0, res_op1);
1584 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 239, __FILE__, __LINE__, true);
1585 : 0 : return _r;
1586 : : }
1587 : 56 : next_after_fail398:;
1588 : : }
1589 : : else
1590 : : {
1591 : 56 : if (!fail && (wi::to_wide (captures[3]) & zero_mask_not) == 0
1592 : : )
1593 : : {
1594 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail399;
1595 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail399;
1596 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail399;
1597 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail399;
1598 : 0 : {
1599 : 0 : tree res_op0;
1600 : 0 : res_op0 = captures[1];
1601 : 0 : tree res_op1;
1602 : 0 : res_op1 = wide_int_to_tree (type, cst_emit);
1603 : 0 : tree _r;
1604 : 0 : _r = fold_build2_loc (loc, inner_op, type, res_op0, res_op1);
1605 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 240, __FILE__, __LINE__, true);
1606 : 0 : return _r;
1607 : : }
1608 : 56 : next_after_fail399:;
1609 : : }
1610 : : }
1611 : 56 : }
1612 : 56 : return NULL_TREE;
1613 : : }
1614 : :
1615 : : tree
1616 : 4 : generic_simplify_139 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1617 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1618 : : {
1619 : 4 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1620 : 4 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail445;
1621 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail445;
1622 : 4 : {
1623 : 4 : tree _r;
1624 : 4 : _r = constant_boolean_node (true, type);
1625 : 4 : if (TREE_SIDE_EFFECTS (captures[1]))
1626 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1627 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 260, __FILE__, __LINE__, true);
1628 : : return _r;
1629 : : }
1630 : : next_after_fail445:;
1631 : : return NULL_TREE;
1632 : : }
1633 : :
1634 : : tree
1635 : 4 : generic_simplify_141 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1636 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1637 : : {
1638 : 4 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1639 : 4 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail448;
1640 : 4 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail448;
1641 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail448;
1642 : 4 : {
1643 : 4 : tree _r;
1644 : 4 : _r = captures[0];
1645 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 263, __FILE__, __LINE__, true);
1646 : : return _r;
1647 : : }
1648 : : next_after_fail448:;
1649 : : return NULL_TREE;
1650 : : }
1651 : :
1652 : : tree
1653 : 0 : generic_simplify_144 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1654 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1655 : : const enum tree_code ARG_UNUSED (op))
1656 : : {
1657 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1658 : 0 : if (INTEGRAL_TYPE_P (type)
1659 : 0 : && tree_int_cst_sgn (captures[5]) > 0
1660 : 0 : && (tree_nonzero_bits (captures[0]) & tree_nonzero_bits (captures[4])) == 0
1661 : : )
1662 : : {
1663 : 0 : {
1664 : 0 : tree t = type;
1665 : 0 : if (!TYPE_OVERFLOW_WRAPS (t))
1666 : 0 : t = unsigned_type_for (t);
1667 : 0 : wide_int wone = wi::one (TYPE_PRECISION (type));
1668 : 0 : wide_int c = wi::add (wi::to_wide (captures[3]),
1669 : 0 : wi::lshift (wone, wi::to_wide (captures[5])));
1670 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail451;
1671 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail451;
1672 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail451;
1673 : 0 : {
1674 : 0 : tree res_op0;
1675 : 0 : {
1676 : 0 : tree _o1[2], _r1;
1677 : 0 : {
1678 : 0 : tree _o2[1], _r2;
1679 : 0 : _o2[0] = captures[2];
1680 : 0 : if (TREE_TYPE (_o2[0]) != t)
1681 : : {
1682 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, t, _o2[0]);
1683 : : }
1684 : : else
1685 : : _r2 = _o2[0];
1686 : 0 : _o1[0] = _r2;
1687 : : }
1688 : 0 : _o1[1] = wide_int_to_tree (t, c);
1689 : 0 : _r1 = fold_build2_loc (loc, MULT_EXPR, t, _o1[0], _o1[1]);
1690 : 0 : res_op0 = _r1;
1691 : : }
1692 : 0 : tree _r;
1693 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1694 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 227, __FILE__, __LINE__, true);
1695 : 0 : return _r;
1696 : : }
1697 : 0 : next_after_fail451:;
1698 : 0 : }
1699 : : }
1700 : : return NULL_TREE;
1701 : : }
1702 : :
1703 : : tree
1704 : 0 : generic_simplify_148 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1705 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1706 : : {
1707 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1708 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail455;
1709 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail455;
1710 : 0 : {
1711 : 0 : tree _r;
1712 : 0 : _r = captures[1];
1713 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 266, __FILE__, __LINE__, true);
1714 : : return _r;
1715 : : }
1716 : : next_after_fail455:;
1717 : : return NULL_TREE;
1718 : : }
1719 : :
1720 : : tree
1721 : 46 : generic_simplify_150 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1722 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1723 : : const enum tree_code ARG_UNUSED (logic),
1724 : : const enum tree_code ARG_UNUSED (op),
1725 : : const enum tree_code ARG_UNUSED (ext))
1726 : : {
1727 : 46 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1728 : 92 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
1729 : 92 : && TREE_CODE (captures[1]) != INTEGER_CST
1730 : : )
1731 : : {
1732 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail457;
1733 : 0 : {
1734 : 0 : tree res_op0;
1735 : 0 : res_op0 = captures[1];
1736 : 0 : tree res_op1;
1737 : 0 : {
1738 : 0 : tree _o1[2], _r1;
1739 : 0 : _o1[0] = captures[2];
1740 : 0 : _o1[1] = captures[4];
1741 : 0 : _r1 = fold_build2_loc (loc, ext, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1742 : 0 : res_op1 = _r1;
1743 : : }
1744 : 0 : tree _r;
1745 : 0 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
1746 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 267, __FILE__, __LINE__, true);
1747 : 0 : return _r;
1748 : : }
1749 : 0 : next_after_fail457:;
1750 : : }
1751 : : return NULL_TREE;
1752 : : }
1753 : :
1754 : : tree
1755 : 1 : generic_simplify_157 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1756 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1757 : : {
1758 : 1 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1759 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail464;
1760 : 1 : {
1761 : 1 : tree res_op0;
1762 : 1 : res_op0 = captures[1];
1763 : 1 : tree res_op1;
1764 : 1 : {
1765 : 1 : tree _o1[1], _r1;
1766 : 1 : _o1[0] = captures[2];
1767 : 1 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
1768 : 1 : res_op1 = _r1;
1769 : : }
1770 : 1 : tree _r;
1771 : 1 : _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
1772 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 274, __FILE__, __LINE__, true);
1773 : : return _r;
1774 : : }
1775 : 0 : next_after_fail464:;
1776 : 0 : return NULL_TREE;
1777 : : }
1778 : :
1779 : : tree
1780 : 11 : generic_simplify_162 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1781 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1782 : : {
1783 : 11 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1784 : 11 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail469;
1785 : 11 : {
1786 : 11 : tree res_op0;
1787 : 11 : res_op0 = captures[0];
1788 : 11 : tree _r;
1789 : 11 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1790 : 11 : if (TREE_SIDE_EFFECTS (captures[2]))
1791 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1792 : 11 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 279, __FILE__, __LINE__, true);
1793 : : return _r;
1794 : : }
1795 : 0 : next_after_fail469:;
1796 : 0 : return NULL_TREE;
1797 : : }
1798 : :
1799 : : tree
1800 : 0 : generic_simplify_167 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1801 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1802 : : {
1803 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1804 : 0 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[1]))
1805 : 0 : && tree_nop_conversion_p (type, TREE_TYPE (captures[2]))
1806 : : )
1807 : : {
1808 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail474;
1809 : 0 : {
1810 : 0 : tree res_op0;
1811 : 0 : {
1812 : 0 : tree _o1[1], _r1;
1813 : 0 : _o1[0] = captures[1];
1814 : 0 : if (TREE_TYPE (_o1[0]) != type)
1815 : : {
1816 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1817 : : }
1818 : : else
1819 : : _r1 = _o1[0];
1820 : 0 : res_op0 = _r1;
1821 : : }
1822 : 0 : tree res_op1;
1823 : 0 : {
1824 : 0 : tree _o1[1], _r1;
1825 : 0 : _o1[0] = captures[2];
1826 : 0 : if (TREE_TYPE (_o1[0]) != type)
1827 : : {
1828 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1829 : : }
1830 : : else
1831 : : _r1 = _o1[0];
1832 : 0 : res_op1 = _r1;
1833 : : }
1834 : 0 : tree _r;
1835 : 0 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
1836 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
1837 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1838 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 284, __FILE__, __LINE__, true);
1839 : 0 : return _r;
1840 : : }
1841 : 0 : next_after_fail474:;
1842 : : }
1843 : : return NULL_TREE;
1844 : : }
1845 : :
1846 : : tree
1847 : 5870063 : generic_simplify_178 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1848 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1849 : : const enum tree_code ARG_UNUSED (op))
1850 : : {
1851 : 5870063 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1852 : 5870063 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail487;
1853 : 5870063 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail487;
1854 : 5870063 : {
1855 : 5870063 : tree res_op0;
1856 : 5870063 : res_op0 = captures[0];
1857 : 5870063 : tree _r;
1858 : 5870063 : _r = non_lvalue_loc (loc, res_op0);
1859 : 5870063 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 294, __FILE__, __LINE__, true);
1860 : : return _r;
1861 : : }
1862 : : next_after_fail487:;
1863 : : return NULL_TREE;
1864 : : }
1865 : :
1866 : : tree
1867 : 0 : generic_simplify_184 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1868 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1869 : : {
1870 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1871 : 0 : if (INTEGRAL_TYPE_P (type)
1872 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
1873 : 0 : && !TYPE_UNSIGNED (TREE_TYPE (captures[0]))
1874 : : )
1875 : : {
1876 : 0 : if (TYPE_UNSIGNED (type)
1877 : : )
1878 : : {
1879 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail494;
1880 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail494;
1881 : 0 : {
1882 : 0 : tree res_op0;
1883 : 0 : res_op0 = captures[0];
1884 : 0 : tree _r;
1885 : 0 : _r = fold_build1_loc (loc, ABSU_EXPR, type, res_op0);
1886 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 298, __FILE__, __LINE__, true);
1887 : 0 : return _r;
1888 : : }
1889 : : next_after_fail494:;
1890 : : }
1891 : : else
1892 : : {
1893 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail495;
1894 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail495;
1895 : 0 : {
1896 : 0 : tree res_op0;
1897 : 0 : res_op0 = captures[0];
1898 : 0 : tree _r;
1899 : 0 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
1900 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 299, __FILE__, __LINE__, true);
1901 : 0 : return _r;
1902 : : }
1903 : : next_after_fail495:;
1904 : : }
1905 : : }
1906 : : return NULL_TREE;
1907 : : }
1908 : :
1909 : : tree
1910 : 8 : generic_simplify_194 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1911 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1912 : : const combined_fn ARG_UNUSED (POW))
1913 : : {
1914 : 8 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1915 : 8 : if (flag_unsafe_math_optimizations && canonicalize_math_p ()
1916 : : )
1917 : : {
1918 : 8 : if (!TREE_OVERFLOW (captures[2])
1919 : : )
1920 : : {
1921 : 8 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail506;
1922 : 8 : {
1923 : 8 : tree res_op0;
1924 : 8 : res_op0 = captures[0];
1925 : 8 : tree res_op1;
1926 : 8 : {
1927 : 8 : tree _o1[2], _r1;
1928 : 8 : _o1[0] = captures[2];
1929 : 8 : _o1[1] = build_one_cst (type);
1930 : 8 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1931 : 8 : res_op1 = _r1;
1932 : : }
1933 : 8 : tree _r;
1934 : 8 : _r = maybe_build_call_expr_loc (loc, POW, type, 2, res_op0, res_op1);
1935 : 8 : if (!_r)
1936 : 0 : goto next_after_fail506;
1937 : 8 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 309, __FILE__, __LINE__, true);
1938 : 8 : return _r;
1939 : : }
1940 : : next_after_fail506:;
1941 : : }
1942 : : }
1943 : : return NULL_TREE;
1944 : : }
1945 : :
1946 : : tree
1947 : 4 : generic_simplify_203 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1948 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1949 : : {
1950 : 4 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1951 : 8 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
1952 : 8 : && TYPE_PRECISION (TREE_TYPE (captures[1])) == 1
1953 : : )
1954 : : {
1955 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail515;
1956 : 0 : {
1957 : 0 : tree res_op0;
1958 : 0 : {
1959 : 0 : tree _o1[2], _r1;
1960 : 0 : _o1[0] = captures[1];
1961 : 0 : _o1[1] = captures[2];
1962 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1963 : 0 : res_op0 = _r1;
1964 : : }
1965 : 0 : tree _r;
1966 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1967 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 318, __FILE__, __LINE__, true);
1968 : 0 : return _r;
1969 : : }
1970 : 0 : next_after_fail515:;
1971 : : }
1972 : : return NULL_TREE;
1973 : : }
1974 : :
1975 : : tree
1976 : 4528 : generic_simplify_210 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1977 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1978 : : const enum tree_code ARG_UNUSED (op))
1979 : : {
1980 : 4528 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1981 : 4528 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail538;
1982 : 4528 : {
1983 : 4528 : tree res_op0;
1984 : 4528 : res_op0 = captures[1];
1985 : 4528 : tree res_op1;
1986 : 4528 : res_op1 = captures[2];
1987 : 4528 : tree _r;
1988 : 4528 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
1989 : 4528 : if (TREE_SIDE_EFFECTS (captures[0]))
1990 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1991 : 4528 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 340, __FILE__, __LINE__, true);
1992 : : return _r;
1993 : : }
1994 : 0 : next_after_fail538:;
1995 : 0 : return NULL_TREE;
1996 : : }
1997 : :
1998 : : tree
1999 : 0 : generic_simplify_214 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2000 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2001 : : const enum tree_code ARG_UNUSED (op))
2002 : : {
2003 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2004 : 0 : if (!TYPE_OVERFLOW_SANITIZED (TREE_TYPE (captures[1]))
2005 : : )
2006 : : {
2007 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail542;
2008 : 0 : {
2009 : 0 : tree res_op0;
2010 : 0 : res_op0 = captures[3];
2011 : 0 : tree res_op1;
2012 : 0 : res_op1 = captures[2];
2013 : 0 : tree _r;
2014 : 0 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
2015 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2016 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2017 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 344, __FILE__, __LINE__, true);
2018 : 0 : return _r;
2019 : : }
2020 : 0 : next_after_fail542:;
2021 : : }
2022 : : return NULL_TREE;
2023 : : }
2024 : :
2025 : : tree
2026 : 40732142 : generic_simplify_220 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2027 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2028 : : const enum tree_code ARG_UNUSED (cmp))
2029 : : {
2030 : 40732142 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2031 : 81464430 : if (wi::bit_and_not (get_known_nonzero_bits (captures[1]),
2032 : 122196426 : get_nonzero_bits (captures[0])) != 0
2033 : : )
2034 : : {
2035 : 68306 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail548;
2036 : 68306 : {
2037 : 68306 : tree _r;
2038 : 68306 : _r = constant_boolean_node (cmp == NE_EXPR, type);
2039 : 68306 : if (TREE_SIDE_EFFECTS (captures[0]))
2040 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2041 : 68306 : if (TREE_SIDE_EFFECTS (captures[1]))
2042 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2043 : 68306 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 349, __FILE__, __LINE__, true);
2044 : 68306 : return _r;
2045 : : }
2046 : 0 : next_after_fail548:;
2047 : : }
2048 : : return NULL_TREE;
2049 : : }
2050 : :
2051 : : tree
2052 : 13 : generic_simplify_227 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2053 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2054 : : const enum tree_code ARG_UNUSED (cmp))
2055 : : {
2056 : 13 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2057 : 13 : if (tree_fits_shwi_p (captures[3])
2058 : 13 : && tree_to_shwi (captures[3]) > 0
2059 : 26 : && tree_to_shwi (captures[3]) < TYPE_PRECISION (TREE_TYPE (captures[2]))
2060 : : )
2061 : : {
2062 : 13 : if (tree_to_shwi (captures[3]) > wi::ctz (wi::to_wide (captures[5]))
2063 : : )
2064 : : {
2065 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail558;
2066 : 0 : {
2067 : 0 : tree _r;
2068 : 0 : _r = constant_boolean_node (cmp == NE_EXPR, type);
2069 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
2070 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2071 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
2072 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
2073 : 0 : if (TREE_SIDE_EFFECTS (captures[4]))
2074 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[4]), _r);
2075 : 0 : if (TREE_SIDE_EFFECTS (captures[5]))
2076 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[5]), _r);
2077 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 359, __FILE__, __LINE__, true);
2078 : 0 : return _r;
2079 : : }
2080 : 0 : next_after_fail558:;
2081 : : }
2082 : : else
2083 : : {
2084 : 13 : {
2085 : 13 : wide_int c1 = wi::to_wide (captures[3]);
2086 : 13 : wide_int c2 = wi::lrshift (wi::to_wide (captures[4]), c1);
2087 : 13 : wide_int c3 = wi::lrshift (wi::to_wide (captures[5]), c1);
2088 : 13 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail559;
2089 : 13 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail559;
2090 : 13 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail559;
2091 : 13 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail559;
2092 : 13 : {
2093 : 13 : tree res_op0;
2094 : 13 : {
2095 : 13 : tree _o1[2], _r1;
2096 : 13 : _o1[0] = captures[2];
2097 : 13 : _o1[1] = wide_int_to_tree (TREE_TYPE (captures[2]), c2);
2098 : 13 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2099 : 13 : res_op0 = _r1;
2100 : : }
2101 : 13 : tree res_op1;
2102 : 13 : res_op1 = wide_int_to_tree (TREE_TYPE (captures[2]), c3);
2103 : 13 : tree _r;
2104 : 13 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2105 : 13 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 360, __FILE__, __LINE__, true);
2106 : 13 : return _r;
2107 : : }
2108 : 0 : next_after_fail559:;
2109 : 13 : }
2110 : : }
2111 : : }
2112 : : return NULL_TREE;
2113 : : }
2114 : :
2115 : : tree
2116 : 24554 : generic_simplify_239 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2117 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2118 : : const enum tree_code ARG_UNUSED (cmp),
2119 : : const enum tree_code ARG_UNUSED (icmp),
2120 : : const enum tree_code ARG_UNUSED (ncmp))
2121 : : {
2122 : 24554 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2123 : 24554 : if (types_match (type, TREE_TYPE (captures[0]))
2124 : : )
2125 : : {
2126 : 23901 : {
2127 : 23901 : enum tree_code ic = invert_tree_comparison
2128 : 23901 : (cmp, HONOR_NANS (captures[1]));
2129 : 23901 : if (ic == icmp
2130 : : )
2131 : : {
2132 : 23662 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail579;
2133 : 23662 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail579;
2134 : 23662 : {
2135 : 23662 : tree res_op0;
2136 : 23662 : res_op0 = captures[1];
2137 : 23662 : tree res_op1;
2138 : 23662 : res_op1 = captures[2];
2139 : 23662 : tree _r;
2140 : 23662 : _r = fold_build2_loc (loc, icmp, type, res_op0, res_op1);
2141 : 23662 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 380, __FILE__, __LINE__, true);
2142 : 23662 : return _r;
2143 : : }
2144 : : next_after_fail579:;
2145 : : }
2146 : : else
2147 : : {
2148 : 239 : if (ic == ncmp
2149 : : )
2150 : : {
2151 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail580;
2152 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail580;
2153 : 0 : {
2154 : 0 : tree res_op0;
2155 : 0 : res_op0 = captures[1];
2156 : 0 : tree res_op1;
2157 : 0 : res_op1 = captures[2];
2158 : 0 : tree _r;
2159 : 0 : _r = fold_build2_loc (loc, ncmp, type, res_op0, res_op1);
2160 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 381, __FILE__, __LINE__, true);
2161 : 0 : return _r;
2162 : : }
2163 : : next_after_fail580:;
2164 : : }
2165 : : }
2166 : : }
2167 : : }
2168 : : return NULL_TREE;
2169 : : }
2170 : :
2171 : : tree
2172 : 30 : generic_simplify_248 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2173 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2174 : : const enum tree_code ARG_UNUSED (cmp))
2175 : : {
2176 : 30 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2177 : 30 : if (single_use (captures[1]) && single_use (captures[3])
2178 : : )
2179 : : {
2180 : 30 : {
2181 : 30 : tree otype = TREE_TYPE (captures[0]);
2182 : 30 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail594;
2183 : 30 : {
2184 : 30 : tree res_op0;
2185 : 30 : {
2186 : 30 : tree _o1[1], _r1;
2187 : 30 : _o1[0] = captures[4];
2188 : 30 : if (TREE_TYPE (_o1[0]) != otype)
2189 : : {
2190 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, otype, _o1[0]);
2191 : : }
2192 : : else
2193 : : _r1 = _o1[0];
2194 : 30 : res_op0 = _r1;
2195 : : }
2196 : 30 : tree res_op1;
2197 : 30 : {
2198 : 30 : tree _o1[1], _r1;
2199 : 30 : _o1[0] = captures[2];
2200 : 30 : if (TREE_TYPE (_o1[0]) != otype)
2201 : : {
2202 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, otype, _o1[0]);
2203 : : }
2204 : : else
2205 : : _r1 = _o1[0];
2206 : 30 : res_op1 = _r1;
2207 : : }
2208 : 30 : tree _r;
2209 : 30 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2210 : 30 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 392, __FILE__, __LINE__, true);
2211 : 30 : return _r;
2212 : : }
2213 : 0 : next_after_fail594:;
2214 : : }
2215 : : }
2216 : 0 : return NULL_TREE;
2217 : : }
2218 : :
2219 : : tree
2220 : 1255 : generic_simplify_254 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2221 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2222 : : const enum tree_code ARG_UNUSED (cmp),
2223 : : const enum tree_code ARG_UNUSED (icmp))
2224 : : {
2225 : 1255 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2226 : 1255 : if (SCALAR_FLOAT_TYPE_P (TREE_TYPE (captures[0]))
2227 : 1255 : && ! DECIMAL_FLOAT_TYPE_P (TREE_TYPE (captures[0]))
2228 : : )
2229 : : {
2230 : 1255 : {
2231 : 1255 : format_helper fmt (REAL_MODE_FORMAT (TYPE_MODE (TREE_TYPE (captures[0]))));
2232 : 1255 : tree type1 = TREE_TYPE (captures[1]);
2233 : 1255 : bool type1_signed_p = TYPE_SIGN (type1) == SIGNED;
2234 : 1255 : tree type2 = TREE_TYPE (captures[2]);
2235 : 1255 : bool type2_signed_p = TYPE_SIGN (type2) == SIGNED;
2236 : 1255 : if (fmt.can_represent_integral_type_p (type1)
2237 : 1255 : && fmt.can_represent_integral_type_p (type2)
2238 : : )
2239 : : {
2240 : 229 : if (cmp == ORDERED_EXPR || cmp == UNORDERED_EXPR
2241 : : )
2242 : : {
2243 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail632;
2244 : 0 : {
2245 : 0 : tree _r;
2246 : 0 : _r = constant_boolean_node (cmp == ORDERED_EXPR, type);
2247 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2248 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2249 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
2250 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2251 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 431, __FILE__, __LINE__, true);
2252 : 183 : return _r;
2253 : : }
2254 : 0 : next_after_fail632:;
2255 : : }
2256 : : else
2257 : : {
2258 : 229 : if (TYPE_PRECISION (type1) > TYPE_PRECISION (type2)
2259 : 229 : && type1_signed_p >= type2_signed_p
2260 : : )
2261 : : {
2262 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail633;
2263 : 0 : {
2264 : 0 : tree res_op0;
2265 : 0 : res_op0 = captures[1];
2266 : 0 : tree res_op1;
2267 : 0 : {
2268 : 0 : tree _o1[1], _r1;
2269 : 0 : _o1[0] = captures[2];
2270 : 0 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
2271 : : {
2272 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
2273 : : }
2274 : : else
2275 : : _r1 = _o1[0];
2276 : 0 : res_op1 = _r1;
2277 : : }
2278 : 0 : tree _r;
2279 : 0 : _r = fold_build2_loc (loc, icmp, type, res_op0, res_op1);
2280 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 432, __FILE__, __LINE__, true);
2281 : 0 : return _r;
2282 : : }
2283 : 0 : next_after_fail633:;
2284 : : }
2285 : : else
2286 : : {
2287 : 229 : if (TYPE_PRECISION (type1) < TYPE_PRECISION (type2)
2288 : 229 : && type1_signed_p <= type2_signed_p
2289 : : )
2290 : : {
2291 : 7 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail634;
2292 : 7 : {
2293 : 7 : tree res_op0;
2294 : 7 : {
2295 : 7 : tree _o1[1], _r1;
2296 : 7 : _o1[0] = captures[1];
2297 : 7 : if (TREE_TYPE (_o1[0]) != type2)
2298 : : {
2299 : 7 : _r1 = fold_build1_loc (loc, NOP_EXPR, type2, _o1[0]);
2300 : : }
2301 : : else
2302 : : _r1 = _o1[0];
2303 : 7 : res_op0 = _r1;
2304 : : }
2305 : 7 : tree res_op1;
2306 : 7 : res_op1 = captures[2];
2307 : 7 : tree _r;
2308 : 7 : _r = fold_build2_loc (loc, icmp, type, res_op0, res_op1);
2309 : 7 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 433, __FILE__, __LINE__, true);
2310 : 7 : return _r;
2311 : : }
2312 : 0 : next_after_fail634:;
2313 : : }
2314 : : else
2315 : : {
2316 : 222 : if (TYPE_PRECISION (type1) == TYPE_PRECISION (type2)
2317 : 222 : && type1_signed_p == type2_signed_p
2318 : : )
2319 : : {
2320 : 176 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail635;
2321 : 176 : {
2322 : 176 : tree res_op0;
2323 : 176 : res_op0 = captures[1];
2324 : 176 : tree res_op1;
2325 : 176 : {
2326 : 176 : tree _o1[1], _r1;
2327 : 176 : _o1[0] = captures[2];
2328 : 176 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
2329 : : {
2330 : 1 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
2331 : : }
2332 : : else
2333 : : _r1 = _o1[0];
2334 : 176 : res_op1 = _r1;
2335 : : }
2336 : 176 : tree _r;
2337 : 176 : _r = fold_build2_loc (loc, icmp, type, res_op0, res_op1);
2338 : 176 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 434, __FILE__, __LINE__, true);
2339 : 176 : return _r;
2340 : : }
2341 : 0 : next_after_fail635:;
2342 : : }
2343 : : }
2344 : : }
2345 : : }
2346 : : }
2347 : : }
2348 : : }
2349 : : return NULL_TREE;
2350 : : }
2351 : :
2352 : : tree
2353 : 0 : generic_simplify_266 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2354 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2355 : : const enum tree_code ARG_UNUSED (cmp))
2356 : : {
2357 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2358 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
2359 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
2360 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
2361 : 0 : && TYPE_PRECISION (TREE_TYPE (captures[1])) == TYPE_PRECISION (TREE_TYPE (captures[2]))
2362 : 0 : && TYPE_PRECISION (TREE_TYPE (captures[0])) > TYPE_PRECISION (TREE_TYPE (captures[1]))
2363 : 0 : && !wi::neg_p (wi::to_wide (captures[3]))
2364 : : )
2365 : : {
2366 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail668;
2367 : 0 : {
2368 : 0 : tree res_op0;
2369 : 0 : {
2370 : 0 : tree _o1[2], _r1;
2371 : 0 : _o1[0] = captures[2];
2372 : 0 : {
2373 : 0 : tree _o2[1], _r2;
2374 : 0 : {
2375 : 0 : tree _o3[1], _r3;
2376 : 0 : _o3[0] = captures[3];
2377 : 0 : _r3 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o3[0]), _o3[0]);
2378 : 0 : _o2[0] = _r3;
2379 : : }
2380 : 0 : if (TREE_TYPE (_o2[0]) != TREE_TYPE (_o1[0]))
2381 : : {
2382 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (_o1[0]), _o2[0]);
2383 : : }
2384 : : else
2385 : : _r2 = _o2[0];
2386 : 0 : _o1[1] = _r2;
2387 : : }
2388 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2389 : 0 : res_op0 = _r1;
2390 : : }
2391 : 0 : tree res_op1;
2392 : 0 : res_op1 = build_zero_cst (TREE_TYPE (captures[2]));
2393 : 0 : tree _r;
2394 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2395 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 460, __FILE__, __LINE__, true);
2396 : 0 : return _r;
2397 : : }
2398 : 0 : next_after_fail668:;
2399 : : }
2400 : : return NULL_TREE;
2401 : : }
2402 : :
2403 : : tree
2404 : 13134 : generic_simplify_270 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2405 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2406 : : const enum tree_code ARG_UNUSED (cmp))
2407 : : {
2408 : 13134 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2409 : 13134 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail672;
2410 : 13134 : {
2411 : 13134 : tree res_op0;
2412 : 13134 : {
2413 : 13134 : tree _o1[2], _r1;
2414 : 13134 : {
2415 : 13134 : tree _o2[2], _r2;
2416 : 13134 : _o2[0] = captures[1];
2417 : 13134 : _o2[1] = captures[4];
2418 : 13134 : _r2 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
2419 : 13134 : _o1[0] = _r2;
2420 : : }
2421 : 13134 : _o1[1] = captures[2];
2422 : 13134 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2423 : 13134 : res_op0 = _r1;
2424 : : }
2425 : 13134 : tree res_op1;
2426 : 13134 : res_op1 = build_zero_cst (TREE_TYPE (captures[2]));
2427 : 13134 : tree _r;
2428 : 13134 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2429 : 13134 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 464, __FILE__, __LINE__, true);
2430 : : return _r;
2431 : : }
2432 : 0 : next_after_fail672:;
2433 : 0 : return NULL_TREE;
2434 : : }
2435 : :
2436 : : tree
2437 : 18 : generic_simplify_276 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2438 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2439 : : const enum tree_code ARG_UNUSED (cmp),
2440 : : const enum tree_code ARG_UNUSED (ncmp))
2441 : : {
2442 : 18 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2443 : 36 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
2444 : 18 : && !TYPE_UNSIGNED (TREE_TYPE (captures[0]))
2445 : 36 : && types_match (captures[0], captures[2])
2446 : : )
2447 : : {
2448 : 2 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail678;
2449 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail678;
2450 : 2 : {
2451 : 2 : tree res_op0;
2452 : 2 : {
2453 : 2 : tree _o1[2], _r1;
2454 : 2 : _o1[0] = captures[0];
2455 : 2 : _o1[1] = captures[2];
2456 : 2 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2457 : 2 : res_op0 = _r1;
2458 : : }
2459 : 2 : tree res_op1;
2460 : 2 : res_op1 = captures[1];
2461 : 2 : tree _r;
2462 : 2 : _r = fold_build2_loc (loc, ncmp, type, res_op0, res_op1);
2463 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 468, __FILE__, __LINE__, true);
2464 : 2 : return _r;
2465 : : }
2466 : : next_after_fail678:;
2467 : : }
2468 : : return NULL_TREE;
2469 : : }
2470 : :
2471 : : tree
2472 : 4 : generic_simplify_281 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2473 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2474 : : const enum tree_code ARG_UNUSED (inner),
2475 : : const enum tree_code ARG_UNUSED (outer))
2476 : : {
2477 : 4 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2478 : 4 : {
2479 : 4 : bool cst1 = integer_onep (captures[1]);
2480 : 4 : bool cst0 = integer_zerop (captures[1]);
2481 : 4 : bool innereq = inner == EQ_EXPR;
2482 : 4 : bool outereq = outer == EQ_EXPR;
2483 : 8 : if (innereq ? cst0 : cst1
2484 : : )
2485 : : {
2486 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail697;
2487 : 0 : {
2488 : 0 : tree _r;
2489 : 0 : _r = constant_boolean_node (!outereq, type);
2490 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
2491 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2492 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2493 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2494 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 479, __FILE__, __LINE__, true);
2495 : 0 : return _r;
2496 : : }
2497 : 0 : next_after_fail697:;
2498 : : }
2499 : : else
2500 : : {
2501 : 8 : if (innereq ? cst1 : cst0
2502 : : )
2503 : : {
2504 : 4 : {
2505 : 4 : tree utype = unsigned_type_for (TREE_TYPE (captures[0]));
2506 : 4 : tree ucst1 = build_one_cst (utype);
2507 : 4 : if (!outereq
2508 : : )
2509 : : {
2510 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail698;
2511 : 4 : {
2512 : 4 : tree res_op0;
2513 : 4 : {
2514 : 4 : tree _o1[1], _r1;
2515 : 4 : _o1[0] = captures[0];
2516 : 4 : if (TREE_TYPE (_o1[0]) != utype)
2517 : : {
2518 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, utype, _o1[0]);
2519 : : }
2520 : : else
2521 : : _r1 = _o1[0];
2522 : 4 : res_op0 = _r1;
2523 : : }
2524 : 4 : tree res_op1;
2525 : 4 : res_op1 = ucst1;
2526 : 4 : tree _r;
2527 : 4 : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
2528 : 4 : if (TREE_SIDE_EFFECTS (captures[1]))
2529 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2530 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 480, __FILE__, __LINE__, true);
2531 : 4 : return _r;
2532 : : }
2533 : 0 : next_after_fail698:;
2534 : : }
2535 : : else
2536 : : {
2537 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail699;
2538 : 0 : {
2539 : 0 : tree res_op0;
2540 : 0 : {
2541 : 0 : tree _o1[1], _r1;
2542 : 0 : _o1[0] = captures[0];
2543 : 0 : if (TREE_TYPE (_o1[0]) != utype)
2544 : : {
2545 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, utype, _o1[0]);
2546 : : }
2547 : : else
2548 : : _r1 = _o1[0];
2549 : 0 : res_op0 = _r1;
2550 : : }
2551 : 0 : tree res_op1;
2552 : 0 : res_op1 = ucst1;
2553 : 0 : tree _r;
2554 : 0 : _r = fold_build2_loc (loc, LE_EXPR, type, res_op0, res_op1);
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 (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 481, __FILE__, __LINE__, true);
2558 : 0 : return _r;
2559 : : }
2560 : 0 : next_after_fail699:;
2561 : : }
2562 : : }
2563 : : }
2564 : : else
2565 : : {
2566 : 0 : {
2567 : 0 : tree value = build_int_cst (TREE_TYPE (captures[0]), !innereq);
2568 : 0 : if (outereq
2569 : : )
2570 : : {
2571 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail700;
2572 : 0 : {
2573 : 0 : tree res_op0;
2574 : 0 : res_op0 = captures[0];
2575 : 0 : tree res_op1;
2576 : 0 : res_op1 = value;
2577 : 0 : tree _r;
2578 : 0 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
2579 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2580 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2581 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 482, __FILE__, __LINE__, true);
2582 : 0 : return _r;
2583 : : }
2584 : 0 : next_after_fail700:;
2585 : : }
2586 : : else
2587 : : {
2588 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail701;
2589 : 0 : {
2590 : 0 : tree res_op0;
2591 : 0 : res_op0 = captures[0];
2592 : 0 : tree res_op1;
2593 : 0 : res_op1 = value;
2594 : 0 : tree _r;
2595 : 0 : _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
2596 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2597 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2598 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 483, __FILE__, __LINE__, true);
2599 : 0 : return _r;
2600 : : }
2601 : 0 : next_after_fail701:;
2602 : : }
2603 : : }
2604 : : }
2605 : : }
2606 : : }
2607 : : return NULL_TREE;
2608 : : }
2609 : :
2610 : : tree
2611 : 45 : generic_simplify_289 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2612 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2613 : : const enum tree_code ARG_UNUSED (cmp),
2614 : : const enum tree_code ARG_UNUSED (rep),
2615 : : const combined_fn ARG_UNUSED (popcount))
2616 : : {
2617 : 45 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2618 : 45 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail722;
2619 : 45 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail722;
2620 : 45 : {
2621 : 45 : tree res_op0;
2622 : 45 : res_op0 = captures[0];
2623 : 45 : tree res_op1;
2624 : 45 : res_op1 = build_zero_cst (TREE_TYPE (captures[0]));
2625 : 45 : tree _r;
2626 : 45 : _r = fold_build2_loc (loc, rep, type, res_op0, res_op1);
2627 : 45 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 504, __FILE__, __LINE__, true);
2628 : : return _r;
2629 : : }
2630 : : next_after_fail722:;
2631 : : return NULL_TREE;
2632 : : }
2633 : :
2634 : : tree
2635 : 29083 : generic_simplify_293 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2636 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2637 : : const enum tree_code ARG_UNUSED (cmp),
2638 : : const enum tree_code ARG_UNUSED (icmp),
2639 : : const enum tree_code ARG_UNUSED (ncmp))
2640 : : {
2641 : 29083 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2642 : 29083 : if (types_match (type, TREE_TYPE (captures[0]))
2643 : : )
2644 : : {
2645 : 28345 : {
2646 : 28345 : enum tree_code ic = invert_tree_comparison
2647 : 28345 : (cmp, HONOR_NANS (captures[1]));
2648 : 28345 : if (ic == icmp
2649 : : )
2650 : : {
2651 : 22031 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail728;
2652 : 22031 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail728;
2653 : 22031 : {
2654 : 22031 : tree res_op0;
2655 : 22031 : res_op0 = captures[1];
2656 : 22031 : tree res_op1;
2657 : 22031 : res_op1 = captures[2];
2658 : 22031 : tree _r;
2659 : 22031 : _r = fold_build2_loc (loc, icmp, type, res_op0, res_op1);
2660 : 22031 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 510, __FILE__, __LINE__, true);
2661 : 22031 : return _r;
2662 : : }
2663 : : next_after_fail728:;
2664 : : }
2665 : : else
2666 : : {
2667 : 6314 : if (ic == ncmp
2668 : : )
2669 : : {
2670 : 5 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail729;
2671 : 5 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail729;
2672 : 5 : {
2673 : 5 : tree res_op0;
2674 : 5 : res_op0 = captures[1];
2675 : 5 : tree res_op1;
2676 : 5 : res_op1 = captures[2];
2677 : 5 : tree _r;
2678 : 5 : _r = fold_build2_loc (loc, ncmp, type, res_op0, res_op1);
2679 : 5 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 511, __FILE__, __LINE__, true);
2680 : 5 : return _r;
2681 : : }
2682 : : next_after_fail729:;
2683 : : }
2684 : : }
2685 : : }
2686 : : }
2687 : : return NULL_TREE;
2688 : : }
2689 : :
2690 : : tree
2691 : 2363 : generic_simplify_303 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2692 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2693 : : const enum tree_code ARG_UNUSED (div))
2694 : : {
2695 : 2363 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2696 : 2363 : if (!integer_zerop (captures[1])
2697 : : )
2698 : : {
2699 : 1737 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail741;
2700 : 1737 : {
2701 : 1737 : tree _r;
2702 : 1737 : _r = captures[0];
2703 : 1737 : if (TREE_SIDE_EFFECTS (captures[1]))
2704 : 59 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2705 : 1737 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 521, __FILE__, __LINE__, true);
2706 : 1737 : return _r;
2707 : : }
2708 : 0 : next_after_fail741:;
2709 : : }
2710 : : return NULL_TREE;
2711 : : }
2712 : :
2713 : : tree
2714 : 1 : generic_simplify_308 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2715 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2716 : : const enum tree_code ARG_UNUSED (div))
2717 : : {
2718 : 1 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2719 : 0 : if ((INTEGRAL_TYPE_P (type) || VECTOR_INTEGER_TYPE_P (type))
2720 : 1 : && TYPE_OVERFLOW_UNDEFINED (type)
2721 : 1 : && !integer_zerop (captures[0])
2722 : 2 : && (!flag_non_call_exceptions || tree_expr_nonzero_p (captures[0]))
2723 : : )
2724 : : {
2725 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail746;
2726 : 1 : {
2727 : 1 : tree _r;
2728 : 1 : _r = build_minus_one_cst (type);
2729 : 1 : if (TREE_SIDE_EFFECTS (captures[0]))
2730 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2731 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 526, __FILE__, __LINE__, true);
2732 : 1 : return _r;
2733 : : }
2734 : 0 : next_after_fail746:;
2735 : : }
2736 : : return NULL_TREE;
2737 : : }
2738 : :
2739 : : tree
2740 : 3 : generic_simplify_313 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2741 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2742 : : const enum tree_code ARG_UNUSED (div))
2743 : : {
2744 : 3 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2745 : 3 : if (INTEGRAL_TYPE_P (type)
2746 : 3 : && wi::multiple_of_p (wi::to_widest (captures[1]), wi::to_widest (captures[2]), SIGNED)
2747 : : )
2748 : : {
2749 : 3 : if (TYPE_OVERFLOW_UNDEFINED (type) && !TYPE_OVERFLOW_SANITIZED (type)
2750 : : )
2751 : : {
2752 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail752;
2753 : 3 : {
2754 : 3 : tree res_op0;
2755 : 3 : res_op0 = captures[1];
2756 : 3 : tree res_op1;
2757 : 3 : res_op1 = captures[2];
2758 : 3 : tree _r;
2759 : 3 : _r = fold_build2_loc (loc, div, type, res_op0, res_op1);
2760 : 3 : if (TREE_SIDE_EFFECTS (captures[0]))
2761 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2762 : 3 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 532, __FILE__, __LINE__, true);
2763 : 3 : return _r;
2764 : : }
2765 : 0 : next_after_fail752:;
2766 : : }
2767 : : }
2768 : : return NULL_TREE;
2769 : : }
2770 : :
2771 : : tree
2772 : 2 : generic_simplify_322 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2773 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
2774 : : {
2775 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2776 : 0 : if (FLOAT_TYPE_P (type)
2777 : 2 : && ! HONOR_NANS (type)
2778 : 2 : && ! HONOR_INFINITIES (type)
2779 : : )
2780 : : {
2781 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail761;
2782 : 0 : {
2783 : 0 : tree _r;
2784 : 0 : _r = build_minus_one_cst (type);
2785 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
2786 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2787 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 541, __FILE__, __LINE__, true);
2788 : 0 : return _r;
2789 : : }
2790 : 0 : next_after_fail761:;
2791 : : }
2792 : : return NULL_TREE;
2793 : : }
2794 : :
2795 : : tree
2796 : 3 : generic_simplify_328 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2797 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2798 : : const combined_fn ARG_UNUSED (TANH),
2799 : : const combined_fn ARG_UNUSED (SINH),
2800 : : const combined_fn ARG_UNUSED (COSH))
2801 : : {
2802 : 3 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2803 : 3 : if (flag_unsafe_math_optimizations && canonicalize_math_p ()
2804 : : )
2805 : : {
2806 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail769;
2807 : 3 : {
2808 : 3 : tree res_op0;
2809 : 3 : res_op0 = build_one_cst (type);
2810 : 3 : tree res_op1;
2811 : 3 : {
2812 : 3 : tree _o1[1], _r1;
2813 : 3 : _o1[0] = captures[1];
2814 : 3 : _r1 = maybe_build_call_expr_loc (loc, COSH, TREE_TYPE (_o1[0]), 1, _o1[0]);
2815 : 3 : if (!_r1)
2816 : 0 : goto next_after_fail769;
2817 : 3 : res_op1 = _r1;
2818 : : }
2819 : 3 : tree _r;
2820 : 3 : _r = fold_build2_loc (loc, RDIV_EXPR, type, res_op0, res_op1);
2821 : 3 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 549, __FILE__, __LINE__, true);
2822 : 3 : return _r;
2823 : : }
2824 : : next_after_fail769:;
2825 : : }
2826 : : return NULL_TREE;
2827 : : }
2828 : :
2829 : : tree
2830 : 19049 : generic_simplify_335 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2831 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2832 : : const enum tree_code ARG_UNUSED (cmp))
2833 : : {
2834 : 19049 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2835 : 38098 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
2836 : 38037 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
2837 : : )
2838 : : {
2839 : 15664 : if (tree_expr_nonnegative_p (captures[1]) && tree_expr_nonzero_p (captures[1])
2840 : : )
2841 : : {
2842 : 11978 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail777;
2843 : 11978 : {
2844 : 11978 : tree res_op0;
2845 : 11978 : res_op0 = captures[0];
2846 : 11978 : tree res_op1;
2847 : 11978 : res_op1 = captures[2];
2848 : 11978 : tree _r;
2849 : 11978 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2850 : 11978 : if (TREE_SIDE_EFFECTS (captures[1]))
2851 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2852 : 11978 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 557, __FILE__, __LINE__, true);
2853 : 11978 : return _r;
2854 : : }
2855 : 0 : next_after_fail777:;
2856 : : }
2857 : : else
2858 : : {
2859 : 3686 : if (TREE_CODE (captures[1]) == INTEGER_CST
2860 : 3686 : && wi::neg_p (wi::to_wide (captures[1]), TYPE_SIGN (TREE_TYPE (captures[1])))
2861 : : )
2862 : : {
2863 : 1187 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail778;
2864 : 1187 : {
2865 : 1187 : tree res_op0;
2866 : 1187 : res_op0 = captures[2];
2867 : 1187 : tree res_op1;
2868 : 1187 : res_op1 = captures[0];
2869 : 1187 : tree _r;
2870 : 1187 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2871 : 1187 : if (TREE_SIDE_EFFECTS (captures[1]))
2872 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2873 : 1187 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 558, __FILE__, __LINE__, true);
2874 : 1187 : return _r;
2875 : : }
2876 : 0 : next_after_fail778:;
2877 : : }
2878 : : }
2879 : : }
2880 : : return NULL_TREE;
2881 : : }
2882 : :
2883 : : tree
2884 : 1037108 : generic_simplify_348 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2885 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2886 : : const enum tree_code ARG_UNUSED (cmp))
2887 : : {
2888 : 1037108 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2889 : 2074216 : if ((INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
2890 : 380 : || POINTER_TYPE_P (TREE_TYPE (captures[2]))
2891 : 5 : || VECTOR_INTEGER_TYPE_P (TREE_TYPE (captures[2])))
2892 : 2074216 : && tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
2893 : : )
2894 : : {
2895 : 864254 : {
2896 : 864254 : tree cst = uniform_integer_cst_p (captures[2]);
2897 : 864254 : tree arg1_type = TREE_TYPE (cst);
2898 : 864254 : unsigned int prec = TYPE_PRECISION (arg1_type);
2899 : 864254 : wide_int max = wi::max_value (arg1_type);
2900 : 864254 : wide_int signed_max = wi::max_value (prec, SIGNED);
2901 : 864254 : wide_int min = wi::min_value (arg1_type);
2902 : 864254 : if (wi::to_wide (cst) == max
2903 : : )
2904 : : {
2905 : 3549 : if (cmp == GT_EXPR
2906 : : )
2907 : : {
2908 : 3304 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail794;
2909 : 3304 : {
2910 : 3304 : tree _r;
2911 : 3304 : _r = constant_boolean_node (false, type);
2912 : 3304 : if (TREE_SIDE_EFFECTS (captures[1]))
2913 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2914 : 3304 : if (TREE_SIDE_EFFECTS (captures[2]))
2915 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2916 : 3304 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 574, __FILE__, __LINE__, true);
2917 : 3304 : return _r;
2918 : : }
2919 : 0 : next_after_fail794:;
2920 : : }
2921 : : else
2922 : : {
2923 : 245 : if (cmp == GE_EXPR
2924 : : )
2925 : : {
2926 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail795;
2927 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail795;
2928 : 0 : {
2929 : 0 : tree res_op0;
2930 : 0 : res_op0 = captures[0];
2931 : 0 : tree res_op1;
2932 : 0 : res_op1 = captures[2];
2933 : 0 : tree _r;
2934 : 0 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
2935 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 575, __FILE__, __LINE__, true);
2936 : 0 : return _r;
2937 : : }
2938 : 797144 : next_after_fail795:;
2939 : : }
2940 : : else
2941 : : {
2942 : 245 : if (cmp == LE_EXPR
2943 : : )
2944 : : {
2945 : 245 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail796;
2946 : 245 : {
2947 : 245 : tree _r;
2948 : 245 : _r = constant_boolean_node (true, type);
2949 : 245 : if (TREE_SIDE_EFFECTS (captures[1]))
2950 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2951 : 245 : if (TREE_SIDE_EFFECTS (captures[2]))
2952 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2953 : 245 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 576, __FILE__, __LINE__, true);
2954 : 245 : return _r;
2955 : : }
2956 : 0 : next_after_fail796:;
2957 : : }
2958 : : else
2959 : : {
2960 : 0 : if (cmp == LT_EXPR
2961 : : )
2962 : : {
2963 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail797;
2964 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail797;
2965 : 0 : {
2966 : 0 : tree res_op0;
2967 : 0 : res_op0 = captures[0];
2968 : 0 : tree res_op1;
2969 : 0 : res_op1 = captures[2];
2970 : 0 : tree _r;
2971 : 0 : _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
2972 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 577, __FILE__, __LINE__, true);
2973 : 0 : return _r;
2974 : : }
2975 : 797144 : next_after_fail797:;
2976 : : }
2977 : : }
2978 : : }
2979 : : }
2980 : : }
2981 : : else
2982 : : {
2983 : 860705 : if (wi::to_wide (cst) == min
2984 : : )
2985 : : {
2986 : 57464 : if (cmp == LT_EXPR
2987 : : )
2988 : : {
2989 : 2344 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail798;
2990 : 2344 : {
2991 : 2344 : tree _r;
2992 : 2344 : _r = constant_boolean_node (false, type);
2993 : 2344 : if (TREE_SIDE_EFFECTS (captures[1]))
2994 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2995 : 2344 : if (TREE_SIDE_EFFECTS (captures[2]))
2996 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2997 : 2344 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 578, __FILE__, __LINE__, true);
2998 : 2344 : return _r;
2999 : : }
3000 : 0 : next_after_fail798:;
3001 : : }
3002 : : else
3003 : : {
3004 : 55120 : if (cmp == LE_EXPR
3005 : : )
3006 : : {
3007 : 15348 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail799;
3008 : 14272 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail799;
3009 : 14272 : {
3010 : 14272 : tree res_op0;
3011 : 14272 : res_op0 = captures[0];
3012 : 14272 : tree res_op1;
3013 : 14272 : res_op1 = captures[2];
3014 : 14272 : tree _r;
3015 : 14272 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
3016 : 14272 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 579, __FILE__, __LINE__, true);
3017 : 14272 : return _r;
3018 : : }
3019 : 797144 : next_after_fail799:;
3020 : : }
3021 : : else
3022 : : {
3023 : 39772 : if (cmp == GE_EXPR
3024 : : )
3025 : : {
3026 : 9222 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail800;
3027 : 9222 : {
3028 : 9222 : tree _r;
3029 : 9222 : _r = constant_boolean_node (true, type);
3030 : 9222 : if (TREE_SIDE_EFFECTS (captures[1]))
3031 : 15 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3032 : 9222 : if (TREE_SIDE_EFFECTS (captures[2]))
3033 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3034 : 9222 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 580, __FILE__, __LINE__, true);
3035 : 9222 : return _r;
3036 : : }
3037 : 0 : next_after_fail800:;
3038 : : }
3039 : : else
3040 : : {
3041 : 30550 : if (cmp == GT_EXPR
3042 : : )
3043 : : {
3044 : 30550 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail801;
3045 : 25170 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail801;
3046 : 25170 : {
3047 : 25170 : tree res_op0;
3048 : 25170 : res_op0 = captures[0];
3049 : 25170 : tree res_op1;
3050 : 25170 : res_op1 = captures[2];
3051 : 25170 : tree _r;
3052 : 25170 : _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
3053 : 25170 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 581, __FILE__, __LINE__, true);
3054 : 25170 : return _r;
3055 : : }
3056 : 797144 : next_after_fail801:;
3057 : : }
3058 : : }
3059 : : }
3060 : : }
3061 : : }
3062 : : else
3063 : : {
3064 : 803241 : if (wi::to_wide (cst) == max - 1
3065 : : )
3066 : : {
3067 : 7622 : if (cmp == GT_EXPR
3068 : : )
3069 : : {
3070 : 1382 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail802;
3071 : 1382 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail802;
3072 : 1382 : {
3073 : 1382 : tree res_op0;
3074 : 1382 : res_op0 = captures[0];
3075 : 1382 : tree res_op1;
3076 : 1382 : res_op1 = build_uniform_cst (TREE_TYPE (captures[2]),
3077 : 1382 : wide_int_to_tree (TREE_TYPE (cst),
3078 : 1382 : wi::to_wide (cst)
3079 : 2764 : + 1));
3080 : 1382 : tree _r;
3081 : 1382 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
3082 : 1382 : if (TREE_SIDE_EFFECTS (captures[2]))
3083 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3084 : 1382 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 582, __FILE__, __LINE__, true);
3085 : 1382 : return _r;
3086 : : }
3087 : 797144 : next_after_fail802:;
3088 : : }
3089 : : else
3090 : : {
3091 : 6240 : if (cmp == LE_EXPR
3092 : : )
3093 : : {
3094 : 6240 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail803;
3095 : 6240 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail803;
3096 : 6240 : {
3097 : 6240 : tree res_op0;
3098 : 6240 : res_op0 = captures[0];
3099 : 6240 : tree res_op1;
3100 : 6240 : res_op1 = build_uniform_cst (TREE_TYPE (captures[2]),
3101 : 6240 : wide_int_to_tree (TREE_TYPE (cst),
3102 : 6240 : wi::to_wide (cst)
3103 : 12480 : + 1));
3104 : 6240 : tree _r;
3105 : 6240 : _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
3106 : 6240 : if (TREE_SIDE_EFFECTS (captures[2]))
3107 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3108 : 6240 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 583, __FILE__, __LINE__, true);
3109 : 6240 : return _r;
3110 : : }
3111 : 797144 : next_after_fail803:;
3112 : : }
3113 : : }
3114 : : }
3115 : : else
3116 : : {
3117 : 795619 : if (wi::to_wide (cst) == min + 1
3118 : : )
3119 : : {
3120 : 47870 : if (cmp == GE_EXPR
3121 : : )
3122 : : {
3123 : 2326 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail804;
3124 : 2326 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail804;
3125 : 2326 : {
3126 : 2326 : tree res_op0;
3127 : 2326 : res_op0 = captures[0];
3128 : 2326 : tree res_op1;
3129 : 2326 : res_op1 = build_uniform_cst (TREE_TYPE (captures[2]),
3130 : 2326 : wide_int_to_tree (TREE_TYPE (cst),
3131 : 2326 : wi::to_wide (cst)
3132 : 4652 : - 1));
3133 : 2326 : tree _r;
3134 : 2326 : _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
3135 : 2326 : if (TREE_SIDE_EFFECTS (captures[2]))
3136 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3137 : 2326 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 584, __FILE__, __LINE__, true);
3138 : 2326 : return _r;
3139 : : }
3140 : 797144 : next_after_fail804:;
3141 : : }
3142 : : else
3143 : : {
3144 : 45544 : if (cmp == LT_EXPR
3145 : : )
3146 : : {
3147 : 275 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail805;
3148 : 275 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail805;
3149 : 275 : {
3150 : 275 : tree res_op0;
3151 : 275 : res_op0 = captures[0];
3152 : 275 : tree res_op1;
3153 : 275 : res_op1 = build_uniform_cst (TREE_TYPE (captures[2]),
3154 : 275 : wide_int_to_tree (TREE_TYPE (cst),
3155 : 275 : wi::to_wide (cst)
3156 : 550 : - 1));
3157 : 275 : tree _r;
3158 : 275 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
3159 : 275 : if (TREE_SIDE_EFFECTS (captures[2]))
3160 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3161 : 275 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 585, __FILE__, __LINE__, true);
3162 : 275 : return _r;
3163 : : }
3164 : 797144 : next_after_fail805:;
3165 : : }
3166 : : }
3167 : : }
3168 : : else
3169 : : {
3170 : 747749 : if (wi::to_wide (cst) == signed_max
3171 : 2330 : && TYPE_UNSIGNED (arg1_type)
3172 : 2330 : && TYPE_MODE (arg1_type) != BLKmode
3173 : 747749 : && prec == GET_MODE_PRECISION (SCALAR_INT_TYPE_MODE (arg1_type))
3174 : 750079 : && INTEGRAL_TYPE_P (arg1_type)
3175 : : )
3176 : : {
3177 : 2330 : if (cmp == LE_EXPR || cmp == GT_EXPR
3178 : : )
3179 : : {
3180 : 2330 : {
3181 : 2330 : tree st = signed_type_for (TREE_TYPE (captures[2]));
3182 : 2330 : if (cst == captures[2] && cmp == LE_EXPR
3183 : : )
3184 : : {
3185 : 2283 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail806;
3186 : 2283 : {
3187 : 2283 : tree res_op0;
3188 : 2283 : {
3189 : 2283 : tree _o1[1], _r1;
3190 : 2283 : _o1[0] = captures[1];
3191 : 2283 : if (TREE_TYPE (_o1[0]) != st)
3192 : : {
3193 : 2279 : _r1 = fold_build1_loc (loc, NOP_EXPR, st, _o1[0]);
3194 : : }
3195 : : else
3196 : : _r1 = _o1[0];
3197 : 2283 : res_op0 = _r1;
3198 : : }
3199 : 2283 : tree res_op1;
3200 : 2283 : res_op1 = build_zero_cst (st);
3201 : 2283 : tree _r;
3202 : 2283 : _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
3203 : 2283 : if (TREE_SIDE_EFFECTS (captures[2]))
3204 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3205 : 2283 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 586, __FILE__, __LINE__, true);
3206 : 2283 : return _r;
3207 : : }
3208 : 0 : next_after_fail806:;
3209 : 0 : }
3210 : : else
3211 : : {
3212 : 47 : if (cst == captures[2] && cmp == GT_EXPR
3213 : : )
3214 : : {
3215 : 47 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail807;
3216 : 47 : {
3217 : 47 : tree res_op0;
3218 : 47 : {
3219 : 47 : tree _o1[1], _r1;
3220 : 47 : _o1[0] = captures[1];
3221 : 47 : if (TREE_TYPE (_o1[0]) != st)
3222 : : {
3223 : 47 : _r1 = fold_build1_loc (loc, NOP_EXPR, st, _o1[0]);
3224 : : }
3225 : : else
3226 : : _r1 = _o1[0];
3227 : 47 : res_op0 = _r1;
3228 : : }
3229 : 47 : tree res_op1;
3230 : 47 : res_op1 = build_zero_cst (st);
3231 : 47 : tree _r;
3232 : 47 : _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
3233 : 47 : if (TREE_SIDE_EFFECTS (captures[2]))
3234 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3235 : 47 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 587, __FILE__, __LINE__, true);
3236 : 47 : return _r;
3237 : : }
3238 : 0 : next_after_fail807:;
3239 : 0 : }
3240 : : else
3241 : : {
3242 : 0 : if (cmp == LE_EXPR
3243 : : )
3244 : : {
3245 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail808;
3246 : 0 : {
3247 : 0 : tree res_op0;
3248 : 0 : {
3249 : 0 : tree _o1[1], _r1;
3250 : 0 : _o1[0] = captures[1];
3251 : 0 : if (TREE_TYPE (_o1[0]) != st)
3252 : : {
3253 : 0 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, st, _o1[0]);
3254 : : }
3255 : : else
3256 : : _r1 = _o1[0];
3257 : 0 : res_op0 = _r1;
3258 : : }
3259 : 0 : tree res_op1;
3260 : 0 : res_op1 = build_zero_cst (st);
3261 : 0 : tree _r;
3262 : 0 : _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
3263 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
3264 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3265 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 588, __FILE__, __LINE__, true);
3266 : 0 : return _r;
3267 : : }
3268 : 0 : next_after_fail808:;
3269 : : }
3270 : : else
3271 : : {
3272 : 0 : if (cmp == GT_EXPR
3273 : : )
3274 : : {
3275 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail809;
3276 : 0 : {
3277 : 0 : tree res_op0;
3278 : 0 : {
3279 : 0 : tree _o1[1], _r1;
3280 : 0 : _o1[0] = captures[1];
3281 : 0 : if (TREE_TYPE (_o1[0]) != st)
3282 : : {
3283 : 0 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, st, _o1[0]);
3284 : : }
3285 : : else
3286 : : _r1 = _o1[0];
3287 : 0 : res_op0 = _r1;
3288 : : }
3289 : 0 : tree res_op1;
3290 : 0 : res_op1 = build_zero_cst (st);
3291 : 0 : tree _r;
3292 : 0 : _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
3293 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
3294 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3295 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 589, __FILE__, __LINE__, true);
3296 : 0 : return _r;
3297 : : }
3298 : 0 : next_after_fail809:;
3299 : : }
3300 : : }
3301 : : }
3302 : : }
3303 : : }
3304 : : }
3305 : : }
3306 : : }
3307 : : }
3308 : : }
3309 : : }
3310 : 864254 : }
3311 : : }
3312 : : return NULL_TREE;
3313 : : }
3314 : :
3315 : : tree
3316 : 0 : generic_simplify_399 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3317 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3318 : : const combined_fn ARG_UNUSED (copysigns),
3319 : : const combined_fn ARG_UNUSED (hypots))
3320 : : {
3321 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3322 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail906;
3323 : 0 : {
3324 : 0 : tree res_op0;
3325 : 0 : res_op0 = captures[0];
3326 : 0 : tree res_op1;
3327 : 0 : res_op1 = captures[2];
3328 : 0 : tree _r;
3329 : 0 : _r = maybe_build_call_expr_loc (loc, hypots, type, 2, res_op0, res_op1);
3330 : 0 : if (!_r)
3331 : 0 : goto next_after_fail906;
3332 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
3333 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3334 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 651, __FILE__, __LINE__, true);
3335 : : return _r;
3336 : : }
3337 : : next_after_fail906:;
3338 : : return NULL_TREE;
3339 : : }
3340 : :
3341 : : tree
3342 : 8 : generic_simplify_404 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3343 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3344 : : {
3345 : 8 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3346 : 16 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
3347 : 16 : && TYPE_PRECISION (TREE_TYPE (captures[0])) == 1
3348 : : )
3349 : : {
3350 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail911;
3351 : 0 : {
3352 : 0 : tree res_op0;
3353 : 0 : res_op0 = captures[0];
3354 : 0 : tree res_op1;
3355 : 0 : res_op1 = captures[1];
3356 : 0 : tree _r;
3357 : 0 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
3358 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 656, __FILE__, __LINE__, true);
3359 : 0 : return _r;
3360 : : }
3361 : 0 : next_after_fail911:;
3362 : : }
3363 : : return NULL_TREE;
3364 : : }
3365 : :
3366 : : tree
3367 : 0 : generic_simplify_410 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3368 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3369 : : {
3370 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3371 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail917;
3372 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail917;
3373 : 0 : {
3374 : 0 : tree res_op0;
3375 : 0 : res_op0 = captures[0];
3376 : 0 : tree res_op1;
3377 : 0 : {
3378 : 0 : tree _o1[1], _r1;
3379 : 0 : _o1[0] = captures[5];
3380 : 0 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
3381 : 0 : res_op1 = _r1;
3382 : : }
3383 : 0 : tree _r;
3384 : 0 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
3385 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 661, __FILE__, __LINE__, true);
3386 : : return _r;
3387 : : }
3388 : : next_after_fail917:;
3389 : : return NULL_TREE;
3390 : : }
3391 : :
3392 : : tree
3393 : 2 : generic_simplify_418 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3394 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3395 : : {
3396 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3397 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail925;
3398 : 2 : {
3399 : 2 : tree res_op0;
3400 : 2 : {
3401 : 2 : tree _o1[2], _r1;
3402 : 2 : _o1[0] = captures[1];
3403 : 2 : _o1[1] = captures[2];
3404 : 2 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3405 : 2 : res_op0 = _r1;
3406 : : }
3407 : 2 : tree _r;
3408 : 2 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
3409 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 669, __FILE__, __LINE__, true);
3410 : : return _r;
3411 : : }
3412 : 0 : next_after_fail925:;
3413 : 0 : return NULL_TREE;
3414 : : }
3415 : :
3416 : : tree
3417 : 0 : generic_simplify_421 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3418 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3419 : : const enum tree_code ARG_UNUSED (cmp))
3420 : : {
3421 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3422 : 0 : if (!canonicalize_math_p ()
3423 : : )
3424 : : {
3425 : 0 : if (INTEGRAL_TYPE_P (type)
3426 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
3427 : : )
3428 : : {
3429 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail928;
3430 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail928;
3431 : 0 : {
3432 : 0 : tree res_op0;
3433 : 0 : res_op0 = captures[0];
3434 : 0 : tree res_op1;
3435 : 0 : res_op1 = captures[3];
3436 : 0 : tree res_op2;
3437 : 0 : res_op2 = build_zero_cst (type);
3438 : 0 : tree _r;
3439 : 0 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
3440 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 672, __FILE__, __LINE__, true);
3441 : 0 : return _r;
3442 : : }
3443 : : next_after_fail928:;
3444 : : }
3445 : : }
3446 : : return NULL_TREE;
3447 : : }
3448 : :
3449 : : tree
3450 : 0 : generic_simplify_430 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3451 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3452 : : const enum tree_code ARG_UNUSED (code2),
3453 : : const enum tree_code ARG_UNUSED (code1))
3454 : : {
3455 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3456 : 0 : if ((TREE_CODE (captures[2]) == INTEGER_CST
3457 : 0 : && TREE_CODE (captures[5]) == INTEGER_CST)
3458 : 0 : || ((INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
3459 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[2]))
3460 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, code2))
3461 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[2])))
3462 : 0 : && bitwise_equal_p (captures[2], captures[5]))
3463 : : )
3464 : : {
3465 : 0 : {
3466 : 0 : bool one_before = false;
3467 : 0 : bool one_after = false;
3468 : 0 : int cmp = 0;
3469 : 0 : bool allbits = true;
3470 : 0 : if (TREE_CODE (captures[2]) == INTEGER_CST
3471 : 0 : && TREE_CODE (captures[5]) == INTEGER_CST)
3472 : : {
3473 : 0 : allbits = TYPE_PRECISION (TREE_TYPE (captures[2])) <= TYPE_PRECISION (TREE_TYPE (captures[5]));
3474 : 0 : auto t1 = wi::to_wide (fold_convert (TREE_TYPE (captures[5]), captures[2]));
3475 : 0 : auto t2 = wi::to_wide (captures[5]);
3476 : 0 : cmp = wi::cmp (t1, t2, TYPE_SIGN (TREE_TYPE (captures[5])));
3477 : 0 : if (cmp < 0
3478 : 0 : && t1 == t2 - 1)
3479 : : one_before = true;
3480 : 0 : if (cmp > 0
3481 : 0 : && t1 == t2 + 1)
3482 : : one_after = true;
3483 : : }
3484 : 0 : bool val;
3485 : 0 : switch (code2)
3486 : : {
3487 : 0 : case EQ_EXPR: val = (cmp == 0); break;
3488 : 0 : case NE_EXPR: val = (cmp != 0); break;
3489 : 0 : case LT_EXPR: val = (cmp < 0); break;
3490 : 0 : case GT_EXPR: val = (cmp > 0); break;
3491 : 0 : case LE_EXPR: val = (cmp <= 0); break;
3492 : 0 : case GE_EXPR: val = (cmp >= 0); break;
3493 : 0 : default: gcc_unreachable ();
3494 : : }
3495 : 0 : if (code1 == EQ_EXPR && val
3496 : : )
3497 : : {
3498 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail944;
3499 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail944;
3500 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail944;
3501 : 0 : {
3502 : 0 : tree _r;
3503 : 0 : _r = captures[0];
3504 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 684, __FILE__, __LINE__, true);
3505 : 0 : return _r;
3506 : : }
3507 : : next_after_fail944:;
3508 : : }
3509 : : else
3510 : : {
3511 : 0 : if (code1 == EQ_EXPR && !val
3512 : : )
3513 : : {
3514 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail945;
3515 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail945;
3516 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail945;
3517 : 0 : {
3518 : 0 : tree _r;
3519 : 0 : _r = constant_boolean_node (false, type);
3520 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
3521 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3522 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 685, __FILE__, __LINE__, true);
3523 : 0 : return _r;
3524 : : }
3525 : : next_after_fail945:;
3526 : : }
3527 : : else
3528 : : {
3529 : 0 : if (code1 == NE_EXPR && !val && allbits
3530 : : )
3531 : : {
3532 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail946;
3533 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail946;
3534 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail946;
3535 : 0 : {
3536 : 0 : tree _r;
3537 : 0 : _r = captures[3];
3538 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 686, __FILE__, __LINE__, true);
3539 : 0 : return _r;
3540 : : }
3541 : : next_after_fail946:;
3542 : : }
3543 : : else
3544 : : {
3545 : 0 : if ((code1 == NE_EXPR
3546 : 0 : && code2 == GE_EXPR
3547 : 0 : && cmp == 0
3548 : 0 : && allbits)
3549 : 0 : && ((VECTOR_BOOLEAN_TYPE_P (type)
3550 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, GT_EXPR))
3551 : 0 : || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
3552 : : )
3553 : : {
3554 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail947;
3555 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail947;
3556 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail947;
3557 : 0 : {
3558 : 0 : tree res_op0;
3559 : 0 : res_op0 = captures[4];
3560 : 0 : tree res_op1;
3561 : 0 : {
3562 : 0 : tree _o1[1], _r1;
3563 : 0 : _o1[0] = captures[2];
3564 : 0 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
3565 : : {
3566 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
3567 : : }
3568 : : else
3569 : : _r1 = _o1[0];
3570 : 0 : res_op1 = _r1;
3571 : : }
3572 : 0 : tree _r;
3573 : 0 : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
3574 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 687, __FILE__, __LINE__, true);
3575 : 0 : return _r;
3576 : : }
3577 : : next_after_fail947:;
3578 : : }
3579 : : else
3580 : : {
3581 : 0 : if ((code1 == NE_EXPR
3582 : 0 : && code2 == LE_EXPR
3583 : 0 : && cmp == 0
3584 : 0 : && allbits)
3585 : 0 : && ((VECTOR_BOOLEAN_TYPE_P (type)
3586 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, LT_EXPR))
3587 : 0 : || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
3588 : : )
3589 : : {
3590 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail948;
3591 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail948;
3592 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail948;
3593 : 0 : {
3594 : 0 : tree res_op0;
3595 : 0 : res_op0 = captures[4];
3596 : 0 : tree res_op1;
3597 : 0 : {
3598 : 0 : tree _o1[1], _r1;
3599 : 0 : _o1[0] = captures[2];
3600 : 0 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
3601 : : {
3602 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
3603 : : }
3604 : : else
3605 : : _r1 = _o1[0];
3606 : 0 : res_op1 = _r1;
3607 : : }
3608 : 0 : tree _r;
3609 : 0 : _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
3610 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 688, __FILE__, __LINE__, true);
3611 : 0 : return _r;
3612 : : }
3613 : : next_after_fail948:;
3614 : : }
3615 : : else
3616 : : {
3617 : 0 : if ((code1 == NE_EXPR
3618 : 0 : && code2 == GT_EXPR
3619 : : && one_after
3620 : 0 : && allbits)
3621 : 0 : && ((VECTOR_BOOLEAN_TYPE_P (type)
3622 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, GT_EXPR))
3623 : 0 : || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
3624 : : )
3625 : : {
3626 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail949;
3627 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail949;
3628 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail949;
3629 : 0 : {
3630 : 0 : tree res_op0;
3631 : 0 : res_op0 = captures[4];
3632 : 0 : tree res_op1;
3633 : 0 : {
3634 : 0 : tree _o1[1], _r1;
3635 : 0 : _o1[0] = captures[2];
3636 : 0 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
3637 : : {
3638 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
3639 : : }
3640 : : else
3641 : : _r1 = _o1[0];
3642 : 0 : res_op1 = _r1;
3643 : : }
3644 : 0 : tree _r;
3645 : 0 : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
3646 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 689, __FILE__, __LINE__, true);
3647 : 0 : return _r;
3648 : : }
3649 : : next_after_fail949:;
3650 : : }
3651 : : else
3652 : : {
3653 : 0 : if ((code1 == NE_EXPR
3654 : 0 : && code2 == LT_EXPR
3655 : : && one_before
3656 : 0 : && allbits)
3657 : 0 : && ((VECTOR_BOOLEAN_TYPE_P (type)
3658 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, LT_EXPR))
3659 : 0 : || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
3660 : : )
3661 : : {
3662 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail950;
3663 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail950;
3664 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail950;
3665 : 0 : {
3666 : 0 : tree res_op0;
3667 : 0 : res_op0 = captures[4];
3668 : 0 : tree res_op1;
3669 : 0 : {
3670 : 0 : tree _o1[1], _r1;
3671 : 0 : _o1[0] = captures[2];
3672 : 0 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
3673 : : {
3674 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
3675 : : }
3676 : : else
3677 : : _r1 = _o1[0];
3678 : 0 : res_op1 = _r1;
3679 : : }
3680 : 0 : tree _r;
3681 : 0 : _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
3682 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 690, __FILE__, __LINE__, true);
3683 : 0 : return _r;
3684 : : }
3685 : : next_after_fail950:;
3686 : : }
3687 : : }
3688 : : }
3689 : : }
3690 : : }
3691 : : }
3692 : : }
3693 : : }
3694 : : }
3695 : : return NULL_TREE;
3696 : : }
3697 : :
3698 : : tree
3699 : 145 : generic_simplify_456 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3700 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
3701 : : {
3702 : 145 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3703 : 145 : if (element_precision (type) <= element_precision (TREE_TYPE (captures[0]))
3704 : 145 : || !TYPE_UNSIGNED (TREE_TYPE (captures[0]))
3705 : : )
3706 : : {
3707 : 145 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1007;
3708 : 145 : {
3709 : 145 : tree res_op0;
3710 : 145 : {
3711 : 145 : tree _o1[2], _r1;
3712 : 145 : _o1[0] = captures[0];
3713 : 145 : _o1[1] = build_each_one_cst (TREE_TYPE (captures[0]));
3714 : 145 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3715 : 145 : res_op0 = _r1;
3716 : : }
3717 : 145 : tree _r;
3718 : 145 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3719 : 145 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 712, __FILE__, __LINE__, true);
3720 : 145 : return _r;
3721 : : }
3722 : 0 : next_after_fail1007:;
3723 : : }
3724 : : return NULL_TREE;
3725 : : }
3726 : :
3727 : : tree
3728 : 0 : generic_simplify_460 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3729 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
3730 : : const enum tree_code ARG_UNUSED (rotate))
3731 : : {
3732 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3733 : 0 : if ((element_precision (TREE_TYPE (captures[2]))
3734 : 0 : <= element_precision (TREE_TYPE (captures[3]))
3735 : 0 : || !TYPE_UNSIGNED (TREE_TYPE (captures[3])))
3736 : 0 : && (element_precision (type) <= element_precision (TREE_TYPE (captures[2]))
3737 : 0 : || !TYPE_UNSIGNED (TREE_TYPE (captures[2])))
3738 : : )
3739 : : {
3740 : 0 : {
3741 : 0 : tree rotate_type = TREE_TYPE (captures[2]);
3742 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1011;
3743 : 0 : {
3744 : 0 : tree res_op0;
3745 : 0 : {
3746 : 0 : tree _o1[2], _r1;
3747 : 0 : {
3748 : 0 : tree _o2[1], _r2;
3749 : 0 : _o2[0] = captures[3];
3750 : 0 : if (TREE_TYPE (_o2[0]) != rotate_type)
3751 : : {
3752 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, rotate_type, _o2[0]);
3753 : : }
3754 : : else
3755 : : _r2 = _o2[0];
3756 : 0 : _o1[0] = _r2;
3757 : : }
3758 : 0 : _o1[1] = captures[4];
3759 : 0 : _r1 = fold_build2_loc (loc, rotate, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3760 : 0 : res_op0 = _r1;
3761 : : }
3762 : 0 : tree _r;
3763 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3764 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 715, __FILE__, __LINE__, true);
3765 : 0 : return _r;
3766 : : }
3767 : 0 : next_after_fail1011:;
3768 : : }
3769 : : }
3770 : : return NULL_TREE;
3771 : : }
3772 : :
3773 : : tree
3774 : 1704 : generic_simplify_470 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3775 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
3776 : : {
3777 : 1704 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3778 : 1704 : if (INTEGRAL_TYPE_P (type)
3779 : : )
3780 : : {
3781 : 1704 : {
3782 : 1704 : tree itype = TREE_TYPE (captures[2]);
3783 : 1704 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1023;
3784 : 1704 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1023;
3785 : 1704 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1023;
3786 : 1704 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1023;
3787 : 1704 : {
3788 : 1704 : tree res_op0;
3789 : 1704 : {
3790 : 1704 : tree _o1[2], _r1;
3791 : 1704 : _o1[0] = captures[2];
3792 : 1704 : {
3793 : 1704 : tree _o2[1], _r2;
3794 : 1704 : _o2[0] = captures[0];
3795 : 1704 : if (TREE_TYPE (_o2[0]) != itype)
3796 : : {
3797 : 1703 : _r2 = fold_build1_loc (loc, NOP_EXPR, itype, _o2[0]);
3798 : : }
3799 : : else
3800 : : _r2 = _o2[0];
3801 : 1704 : _o1[1] = _r2;
3802 : : }
3803 : 1704 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3804 : 1704 : res_op0 = _r1;
3805 : : }
3806 : 1704 : tree _r;
3807 : 1704 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3808 : 1704 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 726, __FILE__, __LINE__, true);
3809 : 1704 : return _r;
3810 : : }
3811 : : next_after_fail1023:;
3812 : : }
3813 : : }
3814 : : return NULL_TREE;
3815 : : }
3816 : :
3817 : : tree
3818 : 2 : generic_simplify_479 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3819 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
3820 : : const enum tree_code ARG_UNUSED (cmp),
3821 : : const enum tree_code ARG_UNUSED (minmax))
3822 : : {
3823 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3824 : 2 : {
3825 : 2 : tree_code code = minmax_from_comparison (cmp, captures[0], captures[3], captures[0], captures[1]);
3826 : 2 : if (code == MIN_EXPR
3827 : : )
3828 : : {
3829 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1034;
3830 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1034;
3831 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1034;
3832 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1034;
3833 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1034;
3834 : 0 : {
3835 : 0 : tree res_op0;
3836 : 0 : {
3837 : 0 : tree _o1[2], _r1;
3838 : 0 : _o1[0] = captures[0];
3839 : 0 : _o1[1] = captures[3];
3840 : 0 : _r1 = fold_build2_loc (loc, MIN_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3841 : 0 : res_op0 = _r1;
3842 : : }
3843 : 0 : tree res_op1;
3844 : 0 : res_op1 = captures[2];
3845 : 0 : tree _r;
3846 : 0 : _r = fold_build2_loc (loc, minmax, type, res_op0, res_op1);
3847 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 736, __FILE__, __LINE__, true);
3848 : 0 : return _r;
3849 : : }
3850 : : next_after_fail1034:;
3851 : : }
3852 : : else
3853 : : {
3854 : 2 : if (code == MAX_EXPR
3855 : : )
3856 : : {
3857 : 2 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1035;
3858 : 2 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1035;
3859 : 2 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1035;
3860 : 2 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1035;
3861 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1035;
3862 : 2 : {
3863 : 2 : tree res_op0;
3864 : 2 : {
3865 : 2 : tree _o1[2], _r1;
3866 : 2 : _o1[0] = captures[0];
3867 : 2 : _o1[1] = captures[3];
3868 : 2 : _r1 = fold_build2_loc (loc, MAX_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3869 : 2 : res_op0 = _r1;
3870 : : }
3871 : 2 : tree res_op1;
3872 : 2 : res_op1 = captures[2];
3873 : 2 : tree _r;
3874 : 2 : _r = fold_build2_loc (loc, minmax, type, res_op0, res_op1);
3875 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 737, __FILE__, __LINE__, true);
3876 : 2 : return _r;
3877 : : }
3878 : : next_after_fail1035:;
3879 : : }
3880 : : }
3881 : : }
3882 : : return NULL_TREE;
3883 : : }
3884 : :
3885 : : tree
3886 : 17 : generic_simplify_497 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3887 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
3888 : : const enum tree_code ARG_UNUSED (cmp))
3889 : : {
3890 : 17 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3891 : 17 : if (INTEGRAL_TYPE_P (type)
3892 : 17 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
3893 : 17 : && !TYPE_UNSIGNED (TREE_TYPE (captures[0]))
3894 : 34 : && TYPE_PRECISION (TREE_TYPE (captures[0])) == TYPE_PRECISION (type)
3895 : : )
3896 : : {
3897 : 17 : {
3898 : 17 : tree shifter = build_int_cst (integer_type_node, TYPE_PRECISION (type) - 1);
3899 : 17 : if (cmp == GE_EXPR
3900 : : )
3901 : : {
3902 : 9 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1057;
3903 : 9 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1057;
3904 : 9 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1057;
3905 : 9 : {
3906 : 9 : tree res_op0;
3907 : 9 : {
3908 : 9 : tree _o1[1], _r1;
3909 : 9 : {
3910 : 9 : tree _o2[2], _r2;
3911 : 9 : _o2[0] = captures[0];
3912 : 9 : _o2[1] = shifter;
3913 : 9 : _r2 = fold_build2_loc (loc, RSHIFT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
3914 : 9 : _o1[0] = _r2;
3915 : : }
3916 : 9 : if (TREE_TYPE (_o1[0]) != type)
3917 : : {
3918 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
3919 : : }
3920 : : else
3921 : : _r1 = _o1[0];
3922 : 9 : res_op0 = _r1;
3923 : : }
3924 : 9 : tree res_op1;
3925 : 9 : res_op1 = captures[1];
3926 : 9 : tree _r;
3927 : 9 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
3928 : 9 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 758, __FILE__, __LINE__, true);
3929 : 9 : return _r;
3930 : : }
3931 : : next_after_fail1057:;
3932 : : }
3933 : : else
3934 : : {
3935 : 8 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1058;
3936 : 8 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1058;
3937 : 8 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1058;
3938 : 8 : {
3939 : 8 : tree res_op0;
3940 : 8 : {
3941 : 8 : tree _o1[2], _r1;
3942 : 8 : {
3943 : 8 : tree _o2[1], _r2;
3944 : 8 : {
3945 : 8 : tree _o3[2], _r3;
3946 : 8 : _o3[0] = captures[0];
3947 : 8 : _o3[1] = shifter;
3948 : 8 : _r3 = fold_build2_loc (loc, RSHIFT_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
3949 : 8 : _o2[0] = _r3;
3950 : : }
3951 : 8 : if (TREE_TYPE (_o2[0]) != type)
3952 : : {
3953 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, type, _o2[0]);
3954 : : }
3955 : : else
3956 : : _r2 = _o2[0];
3957 : 8 : _o1[0] = _r2;
3958 : : }
3959 : 8 : _o1[1] = captures[1];
3960 : 8 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3961 : 8 : res_op0 = _r1;
3962 : : }
3963 : 8 : tree _r;
3964 : 8 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
3965 : 8 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 759, __FILE__, __LINE__, true);
3966 : 8 : return _r;
3967 : : }
3968 : : next_after_fail1058:;
3969 : : }
3970 : : }
3971 : : }
3972 : : return NULL_TREE;
3973 : : }
3974 : :
3975 : : tree
3976 : 0 : generic_simplify_513 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3977 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3978 : : const combined_fn ARG_UNUSED (FMIN_ALL))
3979 : : {
3980 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3981 : 0 : if (flag_finite_math_only
3982 : : )
3983 : : {
3984 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1086;
3985 : 0 : {
3986 : 0 : tree res_op0;
3987 : 0 : res_op0 = captures[0];
3988 : 0 : tree res_op1;
3989 : 0 : res_op1 = captures[1];
3990 : 0 : tree _r;
3991 : 0 : _r = fold_build2_loc (loc, MIN_EXPR, type, res_op0, res_op1);
3992 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 774, __FILE__, __LINE__, true);
3993 : 0 : return _r;
3994 : : }
3995 : 0 : next_after_fail1086:;
3996 : : }
3997 : : return NULL_TREE;
3998 : : }
3999 : :
4000 : : tree
4001 : 0 : generic_simplify_519 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4002 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4003 : : const combined_fn ARG_UNUSED (bswap))
4004 : : {
4005 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4006 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1095;
4007 : 0 : {
4008 : 0 : tree _r;
4009 : 0 : _r = captures[0];
4010 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 783, __FILE__, __LINE__, true);
4011 : : return _r;
4012 : : }
4013 : 0 : next_after_fail1095:;
4014 : 0 : return NULL_TREE;
4015 : : }
4016 : :
4017 : : tree
4018 : 0 : generic_simplify_525 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4019 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
4020 : : const enum tree_code ARG_UNUSED (cmp))
4021 : : {
4022 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4023 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1101;
4024 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1101;
4025 : 0 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1101;
4026 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1101;
4027 : 0 : {
4028 : 0 : tree _r;
4029 : 0 : _r = captures[3];
4030 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 750, __FILE__, __LINE__, true);
4031 : : return _r;
4032 : : }
4033 : : next_after_fail1101:;
4034 : : return NULL_TREE;
4035 : : }
4036 : :
4037 : : tree
4038 : 0 : generic_simplify_532 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4039 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
4040 : : const combined_fn ARG_UNUSED (cond_len_op))
4041 : : {
4042 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4043 : 0 : {
4044 : 0 : tree op_type = TREE_TYPE (captures[5]);
4045 : 0 : if (inverse_conditions_p (captures[0], captures[2])
4046 : 0 : && element_precision (type) == element_precision (op_type)
4047 : : )
4048 : : {
4049 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1108;
4050 : 0 : {
4051 : 0 : tree res_op0;
4052 : 0 : {
4053 : 0 : tree _o1[6], _r1;
4054 : 0 : _o1[0] = captures[2];
4055 : 0 : _o1[1] = captures[3];
4056 : 0 : _o1[2] = captures[4];
4057 : 0 : {
4058 : 0 : tree _o2[1], _r2;
4059 : 0 : _o2[0] = captures[1];
4060 : 0 : if (TREE_TYPE (_o2[0]) != op_type)
4061 : : {
4062 : 0 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, op_type, _o2[0]);
4063 : : }
4064 : : else
4065 : : _r2 = _o2[0];
4066 : 0 : _o1[3] = _r2;
4067 : : }
4068 : 0 : _o1[4] = captures[6];
4069 : 0 : _o1[5] = captures[7];
4070 : 0 : _r1 = maybe_build_call_expr_loc (loc, cond_len_op, TREE_TYPE (_o1[1]), 6, _o1[0], _o1[1], _o1[2], _o1[3], _o1[4], _o1[5]);
4071 : 0 : if (!_r1)
4072 : 0 : goto next_after_fail1108;
4073 : 0 : res_op0 = _r1;
4074 : : }
4075 : 0 : tree _r;
4076 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
4077 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
4078 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
4079 : 0 : if (TREE_SIDE_EFFECTS (captures[5]))
4080 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[5]), _r);
4081 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 791, __FILE__, __LINE__, true);
4082 : 0 : return _r;
4083 : : }
4084 : : next_after_fail1108:;
4085 : : }
4086 : : }
4087 : : return NULL_TREE;
4088 : : }
4089 : :
4090 : : tree
4091 : 0 : generic_simplify_543 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4092 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4093 : : const combined_fn ARG_UNUSED (logs))
4094 : : {
4095 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4096 : 0 : if (flag_unsafe_math_optimizations
4097 : : )
4098 : : {
4099 : 0 : if (! HONOR_SIGN_DEPENDENT_ROUNDING (type)
4100 : 0 : && ! HONOR_NANS (type) && ! HONOR_INFINITIES (type)
4101 : 0 : && ! flag_trapping_math
4102 : 0 : && ! flag_errno_math
4103 : : )
4104 : : {
4105 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1119;
4106 : 0 : {
4107 : 0 : tree res_op0;
4108 : 0 : {
4109 : 0 : tree _o1[1], _r1;
4110 : 0 : _o1[0] = captures[1];
4111 : 0 : _r1 = maybe_build_call_expr_loc (loc, logs, TREE_TYPE (_o1[0]), 1, _o1[0]);
4112 : 0 : if (!_r1)
4113 : 0 : goto next_after_fail1119;
4114 : 0 : if (EXPR_P (_r1))
4115 : 0 : goto next_after_fail1119;
4116 : 0 : res_op0 = _r1;
4117 : : }
4118 : 0 : tree res_op1;
4119 : 0 : {
4120 : 0 : tree _o1[1], _r1;
4121 : 0 : _o1[0] = captures[2];
4122 : 0 : _r1 = maybe_build_call_expr_loc (loc, logs, TREE_TYPE (_o1[0]), 1, _o1[0]);
4123 : 0 : if (!_r1)
4124 : 0 : goto next_after_fail1119;
4125 : 0 : res_op1 = _r1;
4126 : : }
4127 : 0 : tree _r;
4128 : 0 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
4129 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 802, __FILE__, __LINE__, true);
4130 : 0 : return _r;
4131 : : }
4132 : : next_after_fail1119:;
4133 : : }
4134 : : }
4135 : : return NULL_TREE;
4136 : : }
4137 : :
4138 : : tree
4139 : 0 : generic_simplify_557 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4140 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4141 : : const combined_fn ARG_UNUSED (floors))
4142 : : {
4143 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4144 : 0 : if (canonicalize_math_p ()
4145 : : )
4146 : : {
4147 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1133;
4148 : 0 : {
4149 : 0 : tree res_op0;
4150 : 0 : res_op0 = captures[0];
4151 : 0 : tree _r;
4152 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4153 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 816, __FILE__, __LINE__, true);
4154 : 0 : return _r;
4155 : : }
4156 : 0 : next_after_fail1133:;
4157 : : }
4158 : : return NULL_TREE;
4159 : : }
4160 : :
4161 : : tree
4162 : 0 : generic_simplify_565 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4163 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
4164 : : const combined_fn ARG_UNUSED (fmas))
4165 : : {
4166 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4167 : 0 : if (canonicalize_math_after_vectorization_p ()
4168 : : )
4169 : : {
4170 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1141;
4171 : : {
4172 : : tree res_op0;
4173 : : res_op0 = captures[0];
4174 : : tree res_op1;
4175 : : res_op1 = captures[1];
4176 : : tree res_op2;
4177 : : res_op2 = captures[2];
4178 : : tree _r;
4179 : : _r = maybe_build_call_expr_loc (loc, CFN_FNMS, type, 3, res_op0, res_op1, res_op2);
4180 : : if (!_r)
4181 : : goto next_after_fail1141;
4182 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 824, __FILE__, __LINE__, true);
4183 : : return _r;
4184 : : }
4185 : 0 : next_after_fail1141:;
4186 : : }
4187 : 0 : return NULL_TREE;
4188 : : }
4189 : :
4190 : : tree
4191 : 0 : generic_simplify_575 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4192 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4193 : : const combined_fn ARG_UNUSED (ctz))
4194 : : {
4195 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4196 : 0 : {
4197 : 0 : tree t = TREE_TYPE (captures[0]);
4198 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1151;
4199 : 0 : {
4200 : 0 : tree res_op0;
4201 : 0 : {
4202 : 0 : tree _o1[1], _r1;
4203 : 0 : _o1[0] = captures[1];
4204 : 0 : if (TREE_TYPE (_o1[0]) != t)
4205 : : {
4206 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, t, _o1[0]);
4207 : : }
4208 : : else
4209 : : _r1 = _o1[0];
4210 : 0 : res_op0 = _r1;
4211 : : }
4212 : 0 : tree _r;
4213 : 0 : _r = maybe_build_call_expr_loc (loc, ctz, type, 1, res_op0);
4214 : 0 : if (!_r)
4215 : 0 : goto next_after_fail1151;
4216 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 832, __FILE__, __LINE__, true);
4217 : : return _r;
4218 : : }
4219 : : next_after_fail1151:;
4220 : : }
4221 : : return NULL_TREE;
4222 : : }
4223 : :
4224 : : tree
4225 : 0 : generic_simplify_585 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4226 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4227 : : const combined_fn ARG_UNUSED (bswap),
4228 : : const combined_fn ARG_UNUSED (parity))
4229 : : {
4230 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4231 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
4232 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
4233 : 0 : && TYPE_PRECISION (TREE_TYPE (captures[0]))
4234 : 0 : >= TYPE_PRECISION (TREE_TYPE (captures[1]))
4235 : : )
4236 : : {
4237 : 0 : {
4238 : 0 : tree type0 = TREE_TYPE (captures[0]);
4239 : 0 : tree type1 = TREE_TYPE (captures[1]);
4240 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1162;
4241 : 0 : {
4242 : 0 : tree res_op0;
4243 : 0 : {
4244 : 0 : tree _o1[1], _r1;
4245 : 0 : {
4246 : 0 : tree _o2[1], _r2;
4247 : 0 : _o2[0] = captures[2];
4248 : 0 : if (TREE_TYPE (_o2[0]) != type1)
4249 : : {
4250 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, type1, _o2[0]);
4251 : : }
4252 : : else
4253 : : _r2 = _o2[0];
4254 : 0 : _o1[0] = _r2;
4255 : : }
4256 : 0 : if (TREE_TYPE (_o1[0]) != type0)
4257 : : {
4258 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type0, _o1[0]);
4259 : : }
4260 : : else
4261 : : _r1 = _o1[0];
4262 : 0 : res_op0 = _r1;
4263 : : }
4264 : 0 : tree _r;
4265 : 0 : _r = maybe_build_call_expr_loc (loc, parity, type, 1, res_op0);
4266 : 0 : if (!_r)
4267 : 0 : goto next_after_fail1162;
4268 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 838, __FILE__, __LINE__, true);
4269 : 0 : return _r;
4270 : : }
4271 : : next_after_fail1162:;
4272 : : }
4273 : : }
4274 : : return NULL_TREE;
4275 : : }
4276 : :
4277 : : tree
4278 : 3828980 : generic_simplify_NEGATE_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0)
4279 : : {
4280 : 3828980 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4281 : 3828980 : switch (TREE_CODE (_p0))
4282 : : {
4283 : 39294 : case PLUS_EXPR:
4284 : 39294 : {
4285 : 39294 : tree _q20 = TREE_OPERAND (_p0, 0);
4286 : 39294 : tree _q21 = TREE_OPERAND (_p0, 1);
4287 : 39294 : if (tree_negate_expr_p (_q21))
4288 : : {
4289 : 38238 : {
4290 : 38238 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4291 : 38238 : tree res = generic_simplify_464 (loc, type, _p0, captures);
4292 : 38238 : if (res) return res;
4293 : : }
4294 : : }
4295 : 1056 : if (tree_negate_expr_p (_q20))
4296 : : {
4297 : 9 : {
4298 : 9 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
4299 : 9 : tree res = generic_simplify_464 (loc, type, _p0, captures);
4300 : 9 : if (res) return res;
4301 : : }
4302 : : }
4303 : : break;
4304 : : }
4305 : 109603 : case MINUS_EXPR:
4306 : 109603 : {
4307 : 109603 : tree _q20 = TREE_OPERAND (_p0, 0);
4308 : 109603 : tree _q21 = TREE_OPERAND (_p0, 1);
4309 : 109603 : {
4310 : 109603 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4311 : 109603 : if ((ANY_INTEGRAL_TYPE_P (type) && !TYPE_OVERFLOW_SANITIZED (type))
4312 : 190568 : || (FLOAT_TYPE_P (type)
4313 : 80965 : && !HONOR_SIGN_DEPENDENT_ROUNDING (type)
4314 : 80965 : && !HONOR_SIGNED_ZEROS (type))
4315 : : )
4316 : : {
4317 : 28695 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1208;
4318 : 28695 : {
4319 : 28695 : tree res_op0;
4320 : 28695 : res_op0 = captures[1];
4321 : 28695 : tree res_op1;
4322 : 28695 : res_op1 = captures[0];
4323 : 28695 : tree _r;
4324 : 28695 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
4325 : 28695 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 875, __FILE__, __LINE__, true);
4326 : 28695 : return _r;
4327 : : }
4328 : 0 : next_after_fail1208:;
4329 : : }
4330 : : }
4331 : 80908 : break;
4332 : : }
4333 : 16 : case POINTER_DIFF_EXPR:
4334 : 16 : {
4335 : 16 : tree _q20 = TREE_OPERAND (_p0, 0);
4336 : 16 : tree _q21 = TREE_OPERAND (_p0, 1);
4337 : 16 : {
4338 : 16 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4339 : 16 : if (TYPE_OVERFLOW_UNDEFINED (type)
4340 : : )
4341 : : {
4342 : 16 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1209;
4343 : 16 : {
4344 : 16 : tree res_op0;
4345 : 16 : res_op0 = captures[1];
4346 : 16 : tree res_op1;
4347 : 16 : res_op1 = captures[0];
4348 : 16 : tree _r;
4349 : 16 : _r = fold_build2_loc (loc, POINTER_DIFF_EXPR, type, res_op0, res_op1);
4350 : 16 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 876, __FILE__, __LINE__, true);
4351 : 16 : return _r;
4352 : : }
4353 : 0 : next_after_fail1209:;
4354 : : }
4355 : : }
4356 : 0 : break;
4357 : : }
4358 : 4042 : case MULT_EXPR:
4359 : 4042 : {
4360 : 4042 : tree _q20 = TREE_OPERAND (_p0, 0);
4361 : 4042 : tree _q21 = TREE_OPERAND (_p0, 1);
4362 : 4042 : if (tree_negate_expr_p (_q21))
4363 : : {
4364 : 1753 : {
4365 : 1753 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
4366 : 1753 : tree res = generic_simplify_465 (loc, type, _p0, captures);
4367 : 1753 : if (res) return res;
4368 : : }
4369 : : }
4370 : 2724 : if (tree_negate_expr_p (_q20))
4371 : : {
4372 : 27 : {
4373 : 27 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
4374 : 27 : tree res = generic_simplify_465 (loc, type, _p0, captures);
4375 : 27 : if (res) return res;
4376 : : }
4377 : : }
4378 : : break;
4379 : : }
4380 : 188 : case RDIV_EXPR:
4381 : 188 : {
4382 : 188 : tree _q20 = TREE_OPERAND (_p0, 0);
4383 : 188 : tree _q21 = TREE_OPERAND (_p0, 1);
4384 : 188 : if (tree_negate_expr_p (_q21))
4385 : : {
4386 : 60 : {
4387 : 60 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
4388 : 60 : if (! HONOR_SIGN_DEPENDENT_ROUNDING (type)
4389 : 60 : && single_use (captures[0])
4390 : : )
4391 : : {
4392 : 60 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1210;
4393 : 60 : {
4394 : 60 : tree res_op0;
4395 : 60 : res_op0 = captures[1];
4396 : 60 : tree res_op1;
4397 : 60 : {
4398 : 60 : tree _o1[1], _r1;
4399 : 60 : _o1[0] = captures[2];
4400 : 60 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
4401 : 60 : res_op1 = _r1;
4402 : : }
4403 : 60 : tree _r;
4404 : 60 : _r = fold_build2_loc (loc, RDIV_EXPR, type, res_op0, res_op1);
4405 : 60 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 877, __FILE__, __LINE__, true);
4406 : 60 : return _r;
4407 : : }
4408 : 0 : next_after_fail1210:;
4409 : : }
4410 : : }
4411 : : }
4412 : 128 : if (tree_negate_expr_p (_q20))
4413 : : {
4414 : 0 : {
4415 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
4416 : 0 : if (! HONOR_SIGN_DEPENDENT_ROUNDING (type)
4417 : 0 : && single_use (captures[0])
4418 : : )
4419 : : {
4420 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1211;
4421 : 0 : {
4422 : 0 : tree res_op0;
4423 : 0 : {
4424 : 0 : tree _o1[1], _r1;
4425 : 0 : _o1[0] = captures[1];
4426 : 0 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
4427 : 0 : res_op0 = _r1;
4428 : : }
4429 : 0 : tree res_op1;
4430 : 0 : res_op1 = captures[2];
4431 : 0 : tree _r;
4432 : 0 : _r = fold_build2_loc (loc, RDIV_EXPR, type, res_op0, res_op1);
4433 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 878, __FILE__, __LINE__, true);
4434 : 0 : return _r;
4435 : : }
4436 : 0 : next_after_fail1211:;
4437 : : }
4438 : : }
4439 : : }
4440 : : break;
4441 : : }
4442 : 817081 : CASE_CONVERT:
4443 : 817081 : {
4444 : 817081 : tree _q20 = TREE_OPERAND (_p0, 0);
4445 : 817081 : switch (TREE_CODE (_q20))
4446 : : {
4447 : 58 : case RSHIFT_EXPR:
4448 : 58 : {
4449 : 58 : tree _q30 = TREE_OPERAND (_q20, 0);
4450 : 58 : tree _q31 = TREE_OPERAND (_q20, 1);
4451 : 58 : switch (TREE_CODE (_q31))
4452 : : {
4453 : 43 : case INTEGER_CST:
4454 : 43 : {
4455 : 43 : {
4456 : 43 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
4457 : 43 : tree res = generic_simplify_466 (loc, type, _p0, captures);
4458 : 43 : if (res) return res;
4459 : : }
4460 : 36 : break;
4461 : : }
4462 : : default:;
4463 : : }
4464 : : break;
4465 : : }
4466 : 138 : case NEGATE_EXPR:
4467 : 138 : {
4468 : 138 : tree _q30 = TREE_OPERAND (_q20, 0);
4469 : 138 : {
4470 : 138 : tree captures[1] ATTRIBUTE_UNUSED = { _q30 };
4471 : 138 : if (!TYPE_SATURATING (type)
4472 : : )
4473 : : {
4474 : 138 : if (INTEGRAL_TYPE_P (type)
4475 : 138 : && (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
4476 : 17 : || (!TYPE_UNSIGNED (TREE_TYPE (captures[0]))
4477 : 32 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))))
4478 : 137 : && !TYPE_OVERFLOW_SANITIZED (type)
4479 : 291 : && !TYPE_OVERFLOW_SANITIZED (TREE_TYPE (captures[0]))
4480 : : )
4481 : : {
4482 : 137 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1212;
4483 : 137 : {
4484 : 137 : tree res_op0;
4485 : 137 : res_op0 = captures[0];
4486 : 137 : tree _r;
4487 : 137 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4488 : 137 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 879, __FILE__, __LINE__, true);
4489 : 137 : return _r;
4490 : : }
4491 : 0 : next_after_fail1212:;
4492 : : }
4493 : : }
4494 : : }
4495 : : break;
4496 : : }
4497 : 816937 : default:;
4498 : : }
4499 : 816937 : {
4500 : 816937 : tree _q20_pops[1];
4501 : 816937 : if (tree_logical_inverted_value (_q20, _q20_pops))
4502 : : {
4503 : 1 : tree _q30 = _q20_pops[0];
4504 : 1 : {
4505 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
4506 : 1 : if (INTEGRAL_TYPE_P (type)
4507 : 1 : && TREE_CODE (type) != BOOLEAN_TYPE
4508 : 1 : && TYPE_PRECISION (type) > 1
4509 : 1 : && TREE_CODE (captures[2]) == SSA_NAME
4510 : 1 : && ssa_name_has_boolean_range (captures[2])
4511 : : )
4512 : : {
4513 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1213;
4514 : 0 : {
4515 : 0 : tree res_op0;
4516 : 0 : {
4517 : 0 : tree _o1[1], _r1;
4518 : 0 : _o1[0] = captures[2];
4519 : 0 : if (TREE_TYPE (_o1[0]) != type)
4520 : : {
4521 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
4522 : : }
4523 : : else
4524 : : _r1 = _o1[0];
4525 : 0 : res_op0 = _r1;
4526 : : }
4527 : 0 : tree res_op1;
4528 : 0 : res_op1 = build_all_ones_cst (type);
4529 : 0 : tree _r;
4530 : 0 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
4531 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 880, __FILE__, __LINE__, true);
4532 : 0 : return _r;
4533 : : }
4534 : 0 : next_after_fail1213:;
4535 : : }
4536 : : }
4537 : : }
4538 : : }
4539 : 816937 : if (tree_negate_expr_p (_q20))
4540 : : {
4541 : 1382 : {
4542 : 1382 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
4543 : 1382 : if (!TYPE_SATURATING (type)
4544 : : )
4545 : : {
4546 : 1382 : if (SCALAR_FLOAT_TYPE_P (type)
4547 : 1382 : && ((DECIMAL_FLOAT_TYPE_P (type)
4548 : 0 : == DECIMAL_FLOAT_TYPE_P (TREE_TYPE (captures[0]))
4549 : 0 : && TYPE_PRECISION (type) >= TYPE_PRECISION (TREE_TYPE (captures[0])))
4550 : 0 : || !HONOR_SIGN_DEPENDENT_ROUNDING (type))
4551 : : )
4552 : : {
4553 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1214;
4554 : 0 : {
4555 : 0 : tree res_op0;
4556 : 0 : {
4557 : 0 : tree _o1[1], _r1;
4558 : 0 : _o1[0] = captures[0];
4559 : 0 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
4560 : 0 : res_op0 = _r1;
4561 : : }
4562 : 0 : tree _r;
4563 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4564 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 881, __FILE__, __LINE__, true);
4565 : 0 : return _r;
4566 : : }
4567 : 0 : next_after_fail1214:;
4568 : : }
4569 : : }
4570 : : }
4571 : : }
4572 : : break;
4573 : : }
4574 : 359 : case RSHIFT_EXPR:
4575 : 359 : {
4576 : 359 : tree _q20 = TREE_OPERAND (_p0, 0);
4577 : 359 : tree _q21 = TREE_OPERAND (_p0, 1);
4578 : 359 : switch (TREE_CODE (_q21))
4579 : : {
4580 : 341 : case INTEGER_CST:
4581 : 341 : {
4582 : 341 : {
4583 : 341 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4584 : 341 : tree res = generic_simplify_466 (loc, type, _p0, captures);
4585 : 341 : if (res) return res;
4586 : : }
4587 : 304 : break;
4588 : : }
4589 : : default:;
4590 : : }
4591 : : break;
4592 : : }
4593 : 147 : case BIT_NOT_EXPR:
4594 : 147 : {
4595 : 147 : tree _q20 = TREE_OPERAND (_p0, 0);
4596 : 147 : {
4597 : 147 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
4598 : 147 : tree res = generic_simplify_467 (loc, type, _p0, captures);
4599 : 147 : if (res) return res;
4600 : : }
4601 : 0 : break;
4602 : : }
4603 : 3936 : case NEGATE_EXPR:
4604 : 3936 : {
4605 : 3936 : tree _q20 = TREE_OPERAND (_p0, 0);
4606 : 3936 : {
4607 : 3936 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
4608 : 3936 : tree res = generic_simplify_468 (loc, type, _p0, captures);
4609 : 3936 : if (res) return res;
4610 : : }
4611 : 13 : break;
4612 : : }
4613 : 72 : case VEC_COND_EXPR:
4614 : 72 : {
4615 : 72 : tree _q20 = TREE_OPERAND (_p0, 0);
4616 : 72 : tree _q21 = TREE_OPERAND (_p0, 1);
4617 : 72 : tree _q22 = TREE_OPERAND (_p0, 2);
4618 : 72 : {
4619 : 72 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22 };
4620 : 72 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1215;
4621 : 72 : {
4622 : 72 : tree res_op0;
4623 : 72 : res_op0 = captures[1];
4624 : 72 : tree res_op1;
4625 : 72 : {
4626 : 72 : tree _o1[1], _r1;
4627 : 72 : _o1[0] = captures[2];
4628 : 72 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
4629 : 72 : if (EXPR_P (_r1))
4630 : 0 : goto next_after_fail1215;
4631 : 72 : res_op1 = _r1;
4632 : : }
4633 : 72 : tree res_op2;
4634 : 72 : {
4635 : 72 : tree _o1[1], _r1;
4636 : 72 : _o1[0] = captures[3];
4637 : 72 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
4638 : 72 : if (EXPR_P (_r1))
4639 : 0 : goto next_after_fail1215;
4640 : 72 : res_op2 = _r1;
4641 : : }
4642 : 72 : tree _r;
4643 : 72 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
4644 : 72 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 847, __FILE__, __LINE__, true);
4645 : 72 : return _r;
4646 : : }
4647 : 0 : next_after_fail1215:;
4648 : : }
4649 : 0 : break;
4650 : : }
4651 : 286217 : case CALL_EXPR:
4652 : 286217 : switch (get_call_combined_fn (_p0))
4653 : : {
4654 : 12 : case CFN_BUILT_IN_FMA:
4655 : 12 : if (call_expr_nargs (_p0) == 3)
4656 : : {
4657 : 12 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4658 : 12 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
4659 : 12 : tree _q22 = CALL_EXPR_ARG (_p0, 2);
4660 : 12 : {
4661 : 12 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22 };
4662 : 12 : tree res = generic_simplify_469 (loc, type, _p0, captures, CFN_BUILT_IN_FMA);
4663 : 12 : if (res) return res;
4664 : : }
4665 : : }
4666 : : break;
4667 : 4 : case CFN_BUILT_IN_FMAF:
4668 : 4 : if (call_expr_nargs (_p0) == 3)
4669 : : {
4670 : 4 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4671 : 4 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
4672 : 4 : tree _q22 = CALL_EXPR_ARG (_p0, 2);
4673 : 4 : {
4674 : 4 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22 };
4675 : 4 : tree res = generic_simplify_469 (loc, type, _p0, captures, CFN_BUILT_IN_FMAF);
4676 : 4 : if (res) return res;
4677 : : }
4678 : : }
4679 : : break;
4680 : 0 : case CFN_BUILT_IN_FMAL:
4681 : 0 : if (call_expr_nargs (_p0) == 3)
4682 : : {
4683 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4684 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
4685 : 0 : tree _q22 = CALL_EXPR_ARG (_p0, 2);
4686 : 0 : {
4687 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22 };
4688 : 0 : tree res = generic_simplify_469 (loc, type, _p0, captures, CFN_BUILT_IN_FMAL);
4689 : 0 : if (res) return res;
4690 : : }
4691 : : }
4692 : : break;
4693 : 0 : case CFN_FMA:
4694 : 0 : if (call_expr_nargs (_p0) == 3)
4695 : : {
4696 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4697 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
4698 : 0 : tree _q22 = CALL_EXPR_ARG (_p0, 2);
4699 : 0 : {
4700 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22 };
4701 : 0 : tree res = generic_simplify_469 (loc, type, _p0, captures, CFN_FMA);
4702 : 0 : if (res) return res;
4703 : : }
4704 : : }
4705 : : break;
4706 : 0 : case CFN_FMS:
4707 : 0 : if (call_expr_nargs (_p0) == 3)
4708 : : {
4709 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4710 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
4711 : 0 : tree _q22 = CALL_EXPR_ARG (_p0, 2);
4712 : 0 : {
4713 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22 };
4714 : 0 : if (canonicalize_math_after_vectorization_p ()
4715 : : )
4716 : : {
4717 : : if (!HONOR_SIGN_DEPENDENT_ROUNDING (type) && single_use (captures[0])
4718 : : )
4719 : : {
4720 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1216;
4721 : : {
4722 : : tree res_op0;
4723 : : res_op0 = captures[1];
4724 : : tree res_op1;
4725 : : res_op1 = captures[2];
4726 : : tree res_op2;
4727 : : res_op2 = captures[3];
4728 : : tree _r;
4729 : : _r = maybe_build_call_expr_loc (loc, CFN_FNMA, type, 3, res_op0, res_op1, res_op2);
4730 : : if (!_r)
4731 : : goto next_after_fail1216;
4732 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 882, __FILE__, __LINE__, true);
4733 : : return _r;
4734 : : }
4735 : 0 : next_after_fail1216:;
4736 : : }
4737 : : }
4738 : : }
4739 : : }
4740 : : break;
4741 : 0 : case CFN_FNMA:
4742 : 0 : if (call_expr_nargs (_p0) == 3)
4743 : : {
4744 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4745 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
4746 : 0 : tree _q22 = CALL_EXPR_ARG (_p0, 2);
4747 : 0 : {
4748 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22 };
4749 : 0 : if (canonicalize_math_after_vectorization_p ()
4750 : : )
4751 : : {
4752 : : if (!HONOR_SIGN_DEPENDENT_ROUNDING (type) && single_use (captures[0])
4753 : : )
4754 : : {
4755 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1217;
4756 : : {
4757 : : tree res_op0;
4758 : : res_op0 = captures[1];
4759 : : tree res_op1;
4760 : : res_op1 = captures[2];
4761 : : tree res_op2;
4762 : : res_op2 = captures[3];
4763 : : tree _r;
4764 : : _r = maybe_build_call_expr_loc (loc, CFN_FMS, type, 3, res_op0, res_op1, res_op2);
4765 : : if (!_r)
4766 : : goto next_after_fail1217;
4767 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 883, __FILE__, __LINE__, true);
4768 : : return _r;
4769 : : }
4770 : 0 : next_after_fail1217:;
4771 : : }
4772 : : }
4773 : : }
4774 : : }
4775 : : break;
4776 : 0 : case CFN_FNMS:
4777 : 0 : if (call_expr_nargs (_p0) == 3)
4778 : : {
4779 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4780 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
4781 : 0 : tree _q22 = CALL_EXPR_ARG (_p0, 2);
4782 : 0 : {
4783 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22 };
4784 : 0 : if (canonicalize_math_after_vectorization_p ()
4785 : : )
4786 : : {
4787 : : if (!HONOR_SIGN_DEPENDENT_ROUNDING (type) && single_use (captures[0])
4788 : : )
4789 : : {
4790 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1218;
4791 : : {
4792 : : tree res_op0;
4793 : : res_op0 = captures[1];
4794 : : tree res_op1;
4795 : : res_op1 = captures[2];
4796 : : tree res_op2;
4797 : : res_op2 = captures[3];
4798 : : tree _r;
4799 : : _r = maybe_build_call_expr_loc (loc, CFN_FMA, type, 3, res_op0, res_op1, res_op2);
4800 : : if (!_r)
4801 : : goto next_after_fail1218;
4802 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 884, __FILE__, __LINE__, true);
4803 : : return _r;
4804 : : }
4805 : 0 : next_after_fail1218:;
4806 : : }
4807 : : }
4808 : : }
4809 : : }
4810 : : break;
4811 : : default:;
4812 : : }
4813 : : break;
4814 : 3756294 : default:;
4815 : : }
4816 : 3756294 : {
4817 : 3756294 : tree _p0_pops[1];
4818 : 3756294 : if (tree_nop_convert (_p0, _p0_pops))
4819 : : {
4820 : 1090232 : tree _q20 = _p0_pops[0];
4821 : 1090232 : switch (TREE_CODE (_q20))
4822 : : {
4823 : 0 : case BIT_NOT_EXPR:
4824 : 0 : {
4825 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
4826 : 0 : {
4827 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q30 };
4828 : 0 : tree res = generic_simplify_467 (loc, type, _p0, captures);
4829 : 0 : if (res) return res;
4830 : : }
4831 : 0 : break;
4832 : : }
4833 : 0 : case NEGATE_EXPR:
4834 : 0 : {
4835 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
4836 : 0 : {
4837 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q30 };
4838 : 0 : tree res = generic_simplify_468 (loc, type, _p0, captures);
4839 : 0 : if (res) return res;
4840 : : }
4841 : 0 : break;
4842 : : }
4843 : : default:;
4844 : : }
4845 : : }
4846 : : }
4847 : 3756294 : {
4848 : 3756294 : tree _p0_pops[1];
4849 : 3756294 : if (tree_logical_inverted_value (_p0, _p0_pops))
4850 : : {
4851 : 70 : tree _q20 = _p0_pops[0];
4852 : 70 : {
4853 : 70 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q20 };
4854 : 70 : if (INTEGRAL_TYPE_P (type)
4855 : 70 : && TREE_CODE (type) != BOOLEAN_TYPE
4856 : 70 : && TYPE_PRECISION (type) > 1
4857 : 70 : && TREE_CODE (captures[2]) == SSA_NAME
4858 : 70 : && ssa_name_has_boolean_range (captures[2])
4859 : : )
4860 : : {
4861 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1219;
4862 : 0 : {
4863 : 0 : tree res_op0;
4864 : 0 : {
4865 : 0 : tree _o1[1], _r1;
4866 : 0 : _o1[0] = captures[2];
4867 : 0 : if (TREE_TYPE (_o1[0]) != type)
4868 : : {
4869 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
4870 : : }
4871 : : else
4872 : : _r1 = _o1[0];
4873 : 0 : res_op0 = _r1;
4874 : : }
4875 : 0 : tree res_op1;
4876 : 0 : res_op1 = build_all_ones_cst (type);
4877 : 0 : tree _r;
4878 : 0 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
4879 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 880, __FILE__, __LINE__, true);
4880 : 0 : return _r;
4881 : : }
4882 : 0 : next_after_fail1219:;
4883 : : }
4884 : : }
4885 : : }
4886 : : }
4887 : 3756294 : {
4888 : 3756294 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4889 : 3756294 : tree res = generic_simplify_390 (loc, type, _p0, captures);
4890 : 3756294 : if (res) return res;
4891 : : }
4892 : 3741669 : return NULL_TREE;
4893 : : }
4894 : :
4895 : : tree
4896 : 25852950 : generic_simplify_EQ_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
4897 : : {
4898 : 25852950 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4899 : 25852950 : switch (TREE_CODE (_p1))
4900 : : {
4901 : 44 : case NEGATE_EXPR:
4902 : 44 : {
4903 : 44 : tree _q30 = TREE_OPERAND (_p1, 0);
4904 : 44 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
4905 : : {
4906 : 0 : {
4907 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4908 : 0 : tree res = generic_simplify_200 (loc, type, _p0, _p1, captures, EQ_EXPR);
4909 : 0 : if (res) return res;
4910 : : }
4911 : : }
4912 : : break;
4913 : : }
4914 : 25852950 : default:;
4915 : : }
4916 : 25852950 : switch (TREE_CODE (_p0))
4917 : : {
4918 : 905 : case NEGATE_EXPR:
4919 : 905 : {
4920 : 905 : tree _q20 = TREE_OPERAND (_p0, 0);
4921 : 905 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
4922 : : {
4923 : 83 : {
4924 : 83 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
4925 : 83 : tree res = generic_simplify_200 (loc, type, _p0, _p1, captures, EQ_EXPR);
4926 : 83 : if (res) return res;
4927 : : }
4928 : : }
4929 : : break;
4930 : : }
4931 : 0 : case CEIL_MOD_EXPR:
4932 : 0 : {
4933 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
4934 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
4935 : 0 : if (integer_pow2p (_q21))
4936 : : {
4937 : 0 : if (integer_zerop (_p1))
4938 : : {
4939 : 0 : {
4940 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
4941 : 0 : tree res = generic_simplify_201 (loc, type, _p0, _p1, captures, EQ_EXPR, CEIL_MOD_EXPR);
4942 : 0 : if (res) return res;
4943 : : }
4944 : : }
4945 : : }
4946 : : break;
4947 : : }
4948 : 876 : case FLOOR_MOD_EXPR:
4949 : 876 : {
4950 : 876 : tree _q20 = TREE_OPERAND (_p0, 0);
4951 : 876 : tree _q21 = TREE_OPERAND (_p0, 1);
4952 : 876 : if (integer_pow2p (_q21))
4953 : : {
4954 : 26 : if (integer_zerop (_p1))
4955 : : {
4956 : 26 : {
4957 : 26 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
4958 : 26 : tree res = generic_simplify_201 (loc, type, _p0, _p1, captures, EQ_EXPR, FLOOR_MOD_EXPR);
4959 : 26 : if (res) return res;
4960 : : }
4961 : : }
4962 : : }
4963 : : break;
4964 : : }
4965 : 0 : case ROUND_MOD_EXPR:
4966 : 0 : {
4967 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
4968 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
4969 : 0 : if (integer_pow2p (_q21))
4970 : : {
4971 : 0 : if (integer_zerop (_p1))
4972 : : {
4973 : 0 : {
4974 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
4975 : 0 : tree res = generic_simplify_201 (loc, type, _p0, _p1, captures, EQ_EXPR, ROUND_MOD_EXPR);
4976 : 0 : if (res) return res;
4977 : : }
4978 : : }
4979 : : }
4980 : : break;
4981 : : }
4982 : 66246 : case TRUNC_MOD_EXPR:
4983 : 66246 : {
4984 : 66246 : tree _q20 = TREE_OPERAND (_p0, 0);
4985 : 66246 : tree _q21 = TREE_OPERAND (_p0, 1);
4986 : 66246 : if (integer_pow2p (_q21))
4987 : : {
4988 : 41648 : if (integer_zerop (_p1))
4989 : : {
4990 : 611 : {
4991 : 611 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
4992 : 611 : tree res = generic_simplify_201 (loc, type, _p0, _p1, captures, EQ_EXPR, TRUNC_MOD_EXPR);
4993 : 611 : if (res) return res;
4994 : : }
4995 : : }
4996 : : }
4997 : : break;
4998 : : }
4999 : 1438 : case LSHIFT_EXPR:
5000 : 1438 : {
5001 : 1438 : tree _q20 = TREE_OPERAND (_p0, 0);
5002 : 1438 : tree _q21 = TREE_OPERAND (_p0, 1);
5003 : 1438 : if (tree_zero_one_valued_p (_q20))
5004 : : {
5005 : 268 : switch (TREE_CODE (_q21))
5006 : : {
5007 : 10 : case INTEGER_CST:
5008 : 10 : {
5009 : 10 : if (integer_zerop (_p1))
5010 : : {
5011 : 2 : {
5012 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
5013 : 2 : if (tree_fits_shwi_p (captures[1])
5014 : 2 : && tree_to_shwi (captures[1]) > 0
5015 : 4 : && tree_to_shwi (captures[1]) < TYPE_PRECISION (TREE_TYPE (captures[0]))
5016 : : )
5017 : : {
5018 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1612;
5019 : 2 : {
5020 : 2 : tree res_op0;
5021 : 2 : res_op0 = captures[0];
5022 : 2 : tree res_op1;
5023 : 2 : res_op1 = captures[2];
5024 : 2 : tree _r;
5025 : 2 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
5026 : 2 : if (TREE_SIDE_EFFECTS (captures[1]))
5027 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
5028 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 995, __FILE__, __LINE__, true);
5029 : 2 : return _r;
5030 : : }
5031 : 0 : next_after_fail1612:;
5032 : : }
5033 : : }
5034 : : }
5035 : : break;
5036 : : }
5037 : : default:;
5038 : : }
5039 : : }
5040 : : break;
5041 : : }
5042 : 895427 : case BIT_AND_EXPR:
5043 : 895427 : {
5044 : 895427 : tree _q20 = TREE_OPERAND (_p0, 0);
5045 : 895427 : tree _q21 = TREE_OPERAND (_p0, 1);
5046 : 895427 : if (tree_truth_valued_p (_q20))
5047 : : {
5048 : 19 : if (tree_truth_valued_p (_q21))
5049 : : {
5050 : 18 : switch (TREE_CODE (_p1))
5051 : : {
5052 : 0 : case BIT_XOR_EXPR:
5053 : 0 : {
5054 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
5055 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
5056 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5057 : : {
5058 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5059 : : {
5060 : 0 : {
5061 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5062 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1613;
5063 : 0 : {
5064 : 0 : tree res_op0;
5065 : 0 : {
5066 : 0 : tree _o1[2], _r1;
5067 : 0 : _o1[0] = captures[0];
5068 : 0 : _o1[1] = captures[1];
5069 : 0 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5070 : 0 : res_op0 = _r1;
5071 : : }
5072 : 0 : tree _r;
5073 : 0 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
5074 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 958, __FILE__, __LINE__, true);
5075 : 0 : return _r;
5076 : : }
5077 : 0 : next_after_fail1613:;
5078 : : }
5079 : : }
5080 : : }
5081 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
5082 : : {
5083 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
5084 : : {
5085 : 0 : {
5086 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
5087 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1614;
5088 : 0 : {
5089 : 0 : tree res_op0;
5090 : 0 : {
5091 : 0 : tree _o1[2], _r1;
5092 : 0 : _o1[0] = captures[0];
5093 : 0 : _o1[1] = captures[1];
5094 : 0 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5095 : 0 : res_op0 = _r1;
5096 : : }
5097 : 0 : tree _r;
5098 : 0 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
5099 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 958, __FILE__, __LINE__, true);
5100 : 0 : return _r;
5101 : : }
5102 : 0 : next_after_fail1614:;
5103 : : }
5104 : : }
5105 : : }
5106 : : break;
5107 : : }
5108 : : default:;
5109 : : }
5110 : : }
5111 : : }
5112 : : break;
5113 : : }
5114 : 594 : case BIT_XOR_EXPR:
5115 : 594 : {
5116 : 594 : tree _q20 = TREE_OPERAND (_p0, 0);
5117 : 594 : tree _q21 = TREE_OPERAND (_p0, 1);
5118 : 594 : switch (TREE_CODE (_p1))
5119 : : {
5120 : 0 : case BIT_AND_EXPR:
5121 : 0 : {
5122 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
5123 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
5124 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5125 : : {
5126 : 0 : if (tree_truth_valued_p (_q50))
5127 : : {
5128 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5129 : : {
5130 : 0 : if (tree_truth_valued_p (_q51))
5131 : : {
5132 : 0 : {
5133 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5134 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1615;
5135 : 0 : {
5136 : 0 : tree res_op0;
5137 : 0 : {
5138 : 0 : tree _o1[2], _r1;
5139 : 0 : _o1[0] = captures[0];
5140 : 0 : _o1[1] = captures[1];
5141 : 0 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5142 : 0 : res_op0 = _r1;
5143 : : }
5144 : 0 : tree _r;
5145 : 0 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
5146 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 958, __FILE__, __LINE__, true);
5147 : 0 : return _r;
5148 : : }
5149 : 0 : next_after_fail1615:;
5150 : : }
5151 : : }
5152 : : }
5153 : : }
5154 : : }
5155 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
5156 : : {
5157 : 0 : if (tree_truth_valued_p (_q50))
5158 : : {
5159 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
5160 : : {
5161 : 0 : if (tree_truth_valued_p (_q51))
5162 : : {
5163 : 0 : {
5164 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5165 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1616;
5166 : 0 : {
5167 : 0 : tree res_op0;
5168 : 0 : {
5169 : 0 : tree _o1[2], _r1;
5170 : 0 : _o1[0] = captures[0];
5171 : 0 : _o1[1] = captures[1];
5172 : 0 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5173 : 0 : res_op0 = _r1;
5174 : : }
5175 : 0 : tree _r;
5176 : 0 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
5177 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 958, __FILE__, __LINE__, true);
5178 : 0 : return _r;
5179 : : }
5180 : 0 : next_after_fail1616:;
5181 : : }
5182 : : }
5183 : : }
5184 : : }
5185 : : }
5186 : : break;
5187 : : }
5188 : : default:;
5189 : : }
5190 : : break;
5191 : : }
5192 : 405 : case BIT_NOT_EXPR:
5193 : 405 : {
5194 : 405 : tree _q20 = TREE_OPERAND (_p0, 0);
5195 : 405 : if (tree_truth_valued_p (_q20))
5196 : : {
5197 : 0 : if (tree_truth_valued_p (_p1))
5198 : : {
5199 : 0 : {
5200 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
5201 : 0 : tree res = generic_simplify_203 (loc, type, _p0, _p1, captures);
5202 : 0 : if (res) return res;
5203 : : }
5204 : : }
5205 : : }
5206 : : break;
5207 : : }
5208 : 64519 : case MULT_EXPR:
5209 : 64519 : {
5210 : 64519 : tree _q20 = TREE_OPERAND (_p0, 0);
5211 : 64519 : tree _q21 = TREE_OPERAND (_p0, 1);
5212 : 64519 : switch (TREE_CODE (_p1))
5213 : : {
5214 : 749 : case MULT_EXPR:
5215 : 749 : {
5216 : 749 : tree _q50 = TREE_OPERAND (_p1, 0);
5217 : 749 : tree _q51 = TREE_OPERAND (_p1, 1);
5218 : 749 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5219 : : {
5220 : 540 : {
5221 : 540 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
5222 : 540 : tree res = generic_simplify_204 (loc, type, _p0, _p1, captures, EQ_EXPR);
5223 : 540 : if (res) return res;
5224 : : }
5225 : : }
5226 : 741 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
5227 : : {
5228 : 0 : {
5229 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
5230 : 0 : tree res = generic_simplify_204 (loc, type, _p0, _p1, captures, EQ_EXPR);
5231 : 0 : if (res) return res;
5232 : : }
5233 : : }
5234 : 741 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
5235 : : {
5236 : 0 : {
5237 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
5238 : 0 : tree res = generic_simplify_204 (loc, type, _p0, _p1, captures, EQ_EXPR);
5239 : 0 : if (res) return res;
5240 : : }
5241 : : }
5242 : 741 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5243 : : {
5244 : 16 : {
5245 : 16 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
5246 : 16 : tree res = generic_simplify_204 (loc, type, _p0, _p1, captures, EQ_EXPR);
5247 : 16 : if (res) return res;
5248 : : }
5249 : : }
5250 : : break;
5251 : : }
5252 : 64511 : default:;
5253 : : }
5254 : 64511 : switch (TREE_CODE (_q21))
5255 : : {
5256 : 56802 : case INTEGER_CST:
5257 : 56802 : {
5258 : 56802 : switch (TREE_CODE (_p1))
5259 : : {
5260 : 705 : case MULT_EXPR:
5261 : 705 : {
5262 : 705 : tree _q50 = TREE_OPERAND (_p1, 0);
5263 : 705 : tree _q51 = TREE_OPERAND (_p1, 1);
5264 : 705 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5265 : : {
5266 : 503 : {
5267 : 503 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
5268 : 503 : tree res = generic_simplify_205 (loc, type, _p0, _p1, captures, EQ_EXPR);
5269 : 503 : if (res) return res;
5270 : : }
5271 : : }
5272 : : break;
5273 : : }
5274 : : default:;
5275 : : }
5276 : : break;
5277 : : }
5278 : : default:;
5279 : : }
5280 : : break;
5281 : : }
5282 : 4636452 : CASE_CONVERT:
5283 : 4636452 : {
5284 : 4636452 : tree _q20 = TREE_OPERAND (_p0, 0);
5285 : 4636452 : switch (TREE_CODE (_q20))
5286 : : {
5287 : 80 : case EXACT_DIV_EXPR:
5288 : 80 : {
5289 : 80 : tree _q30 = TREE_OPERAND (_q20, 0);
5290 : 80 : tree _q31 = TREE_OPERAND (_q20, 1);
5291 : 80 : switch (TREE_CODE (_q31))
5292 : : {
5293 : 80 : case INTEGER_CST:
5294 : 80 : {
5295 : 80 : switch (TREE_CODE (_p1))
5296 : : {
5297 : 0 : CASE_CONVERT:
5298 : 0 : {
5299 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
5300 : 0 : switch (TREE_CODE (_q60))
5301 : : {
5302 : 0 : case EXACT_DIV_EXPR:
5303 : 0 : {
5304 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
5305 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
5306 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
5307 : : {
5308 : 0 : {
5309 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q31, _q70 };
5310 : 0 : tree res = generic_simplify_206 (loc, type, _p0, _p1, captures, EQ_EXPR);
5311 : 0 : if (res) return res;
5312 : : }
5313 : : }
5314 : : break;
5315 : : }
5316 : : default:;
5317 : : }
5318 : : break;
5319 : : }
5320 : : default:;
5321 : : }
5322 : : break;
5323 : : }
5324 : : default:;
5325 : : }
5326 : : break;
5327 : : }
5328 : 4636452 : default:;
5329 : : }
5330 : 4636452 : switch (TREE_CODE (_p1))
5331 : : {
5332 : 28519 : case PLUS_EXPR:
5333 : 28519 : {
5334 : 28519 : tree _q40 = TREE_OPERAND (_p1, 0);
5335 : 28519 : tree _q41 = TREE_OPERAND (_p1, 1);
5336 : 28519 : switch (TREE_CODE (_q41))
5337 : : {
5338 : 26 : CASE_CONVERT:
5339 : 26 : {
5340 : 26 : tree _q60 = TREE_OPERAND (_q41, 0);
5341 : 26 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
5342 : : {
5343 : 0 : {
5344 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _p1, _q40, _q20 };
5345 : 0 : tree res = generic_simplify_208 (loc, type, _p0, _p1, captures, EQ_EXPR);
5346 : 0 : if (res) return res;
5347 : : }
5348 : : }
5349 : : break;
5350 : : }
5351 : 28519 : default:;
5352 : : }
5353 : 28519 : switch (TREE_CODE (_q40))
5354 : : {
5355 : 4001 : CASE_CONVERT:
5356 : 4001 : {
5357 : 4001 : tree _q50 = TREE_OPERAND (_q40, 0);
5358 : 4001 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5359 : : {
5360 : 0 : {
5361 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _p1, _q41, _q20 };
5362 : 0 : tree res = generic_simplify_208 (loc, type, _p0, _p1, captures, EQ_EXPR);
5363 : 0 : if (res) return res;
5364 : : }
5365 : : }
5366 : : break;
5367 : : }
5368 : 28519 : default:;
5369 : : }
5370 : 28519 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _q20, 0) && types_match (_q41, _q20)))
5371 : : {
5372 : 0 : {
5373 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _p1, _q40, _q20 };
5374 : 0 : tree res = generic_simplify_208 (loc, type, _p0, _p1, captures, EQ_EXPR);
5375 : 0 : if (res) return res;
5376 : : }
5377 : : }
5378 : 28519 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
5379 : : {
5380 : 0 : {
5381 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _p1, _q41, _q20 };
5382 : 0 : tree res = generic_simplify_208 (loc, type, _p0, _p1, captures, EQ_EXPR);
5383 : 0 : if (res) return res;
5384 : : }
5385 : : }
5386 : : break;
5387 : : }
5388 : 4636452 : default:;
5389 : : }
5390 : 4636452 : {
5391 : 4636452 : tree _p1_pops[1];
5392 : 4636452 : if (tree_nop_convert (_p1, _p1_pops))
5393 : : {
5394 : 777437 : tree _q40 = _p1_pops[0];
5395 : 777437 : switch (TREE_CODE (_q40))
5396 : : {
5397 : 474 : case PLUS_EXPR:
5398 : 474 : {
5399 : 474 : tree _q50 = TREE_OPERAND (_q40, 0);
5400 : 474 : tree _q51 = TREE_OPERAND (_q40, 1);
5401 : 474 : switch (TREE_CODE (_q51))
5402 : : {
5403 : 0 : CASE_CONVERT:
5404 : 0 : {
5405 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
5406 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
5407 : : {
5408 : 0 : {
5409 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q20 };
5410 : 0 : tree res = generic_simplify_207 (loc, type, _p0, _p1, captures, EQ_EXPR);
5411 : 0 : if (res) return res;
5412 : : }
5413 : : }
5414 : : break;
5415 : : }
5416 : 474 : default:;
5417 : : }
5418 : 474 : switch (TREE_CODE (_q50))
5419 : : {
5420 : 405 : CASE_CONVERT:
5421 : 405 : {
5422 : 405 : tree _q60 = TREE_OPERAND (_q50, 0);
5423 : 405 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
5424 : : {
5425 : 0 : {
5426 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q40, _q51, _q20 };
5427 : 0 : tree res = generic_simplify_207 (loc, type, _p0, _p1, captures, EQ_EXPR);
5428 : 0 : if (res) return res;
5429 : : }
5430 : : }
5431 : : break;
5432 : : }
5433 : 474 : default:;
5434 : : }
5435 : 474 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
5436 : : {
5437 : 0 : {
5438 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q20 };
5439 : 0 : tree res = generic_simplify_207 (loc, type, _p0, _p1, captures, EQ_EXPR);
5440 : 0 : if (res) return res;
5441 : : }
5442 : : }
5443 : 474 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5444 : : {
5445 : 0 : {
5446 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q40, _q51, _q20 };
5447 : 0 : tree res = generic_simplify_207 (loc, type, _p0, _p1, captures, EQ_EXPR);
5448 : 0 : if (res) return res;
5449 : : }
5450 : : }
5451 : : break;
5452 : : }
5453 : : default:;
5454 : : }
5455 : : }
5456 : : }
5457 : 4636452 : break;
5458 : : }
5459 : 8839 : case EXACT_DIV_EXPR:
5460 : 8839 : {
5461 : 8839 : tree _q20 = TREE_OPERAND (_p0, 0);
5462 : 8839 : tree _q21 = TREE_OPERAND (_p0, 1);
5463 : 8839 : switch (TREE_CODE (_q21))
5464 : : {
5465 : 8839 : case INTEGER_CST:
5466 : 8839 : {
5467 : 8839 : switch (TREE_CODE (_p1))
5468 : : {
5469 : 0 : case EXACT_DIV_EXPR:
5470 : 0 : {
5471 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
5472 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
5473 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5474 : : {
5475 : 0 : {
5476 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50 };
5477 : 0 : tree res = generic_simplify_206 (loc, type, _p0, _p1, captures, EQ_EXPR);
5478 : 0 : if (res) return res;
5479 : : }
5480 : : }
5481 : : break;
5482 : : }
5483 : : default:;
5484 : : }
5485 : : break;
5486 : : }
5487 : : default:;
5488 : : }
5489 : : break;
5490 : : }
5491 : 5376 : case TRUNC_DIV_EXPR:
5492 : 5376 : {
5493 : 5376 : tree _q20 = TREE_OPERAND (_p0, 0);
5494 : 5376 : tree _q21 = TREE_OPERAND (_p0, 1);
5495 : 5376 : switch (TREE_CODE (_q21))
5496 : : {
5497 : 3888 : case INTEGER_CST:
5498 : 3888 : {
5499 : 3888 : switch (TREE_CODE (_p1))
5500 : : {
5501 : 971 : case INTEGER_CST:
5502 : 971 : {
5503 : 971 : {
5504 : 971 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
5505 : 971 : tree res = generic_simplify_209 (loc, type, _p0, _p1, captures, EQ_EXPR);
5506 : 971 : if (res) return res;
5507 : : }
5508 : 19 : break;
5509 : : }
5510 : : default:;
5511 : : }
5512 : : break;
5513 : : }
5514 : : default:;
5515 : : }
5516 : : break;
5517 : : }
5518 : 682763 : case PLUS_EXPR:
5519 : 682763 : {
5520 : 682763 : tree _q20 = TREE_OPERAND (_p0, 0);
5521 : 682763 : tree _q21 = TREE_OPERAND (_p0, 1);
5522 : 682763 : switch (TREE_CODE (_p1))
5523 : : {
5524 : 48732 : case PLUS_EXPR:
5525 : 48732 : {
5526 : 48732 : tree _q50 = TREE_OPERAND (_p1, 0);
5527 : 48732 : tree _q51 = TREE_OPERAND (_p1, 1);
5528 : 48732 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5529 : : {
5530 : 367 : {
5531 : 367 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
5532 : 734 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
5533 : 672 : && (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
5534 : 271 : || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[0])))
5535 : : )
5536 : : {
5537 : 305 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1617;
5538 : 305 : {
5539 : 305 : tree res_op0;
5540 : 305 : res_op0 = captures[0];
5541 : 305 : tree res_op1;
5542 : 305 : res_op1 = captures[2];
5543 : 305 : tree _r;
5544 : 305 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
5545 : 305 : if (TREE_SIDE_EFFECTS (captures[1]))
5546 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
5547 : 305 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 935, __FILE__, __LINE__, true);
5548 : 305 : return _r;
5549 : : }
5550 : 0 : next_after_fail1617:;
5551 : : }
5552 : : }
5553 : : }
5554 : 48427 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
5555 : : {
5556 : 0 : {
5557 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
5558 : 0 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
5559 : 0 : && (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
5560 : 0 : || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[0])))
5561 : : )
5562 : : {
5563 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1618;
5564 : 0 : {
5565 : 0 : tree res_op0;
5566 : 0 : res_op0 = captures[0];
5567 : 0 : tree res_op1;
5568 : 0 : res_op1 = captures[2];
5569 : 0 : tree _r;
5570 : 0 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
5571 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
5572 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
5573 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 935, __FILE__, __LINE__, true);
5574 : 0 : return _r;
5575 : : }
5576 : 0 : next_after_fail1618:;
5577 : : }
5578 : : }
5579 : : }
5580 : 48427 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
5581 : : {
5582 : 0 : {
5583 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
5584 : 0 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
5585 : 0 : && (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
5586 : 0 : || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[0])))
5587 : : )
5588 : : {
5589 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1619;
5590 : 0 : {
5591 : 0 : tree res_op0;
5592 : 0 : res_op0 = captures[0];
5593 : 0 : tree res_op1;
5594 : 0 : res_op1 = captures[2];
5595 : 0 : tree _r;
5596 : 0 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
5597 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
5598 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
5599 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 935, __FILE__, __LINE__, true);
5600 : 0 : return _r;
5601 : : }
5602 : 0 : next_after_fail1619:;
5603 : : }
5604 : : }
5605 : : }
5606 : 48427 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5607 : : {
5608 : 35 : {
5609 : 35 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
5610 : 70 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
5611 : 35 : && (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
5612 : 0 : || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[0])))
5613 : : )
5614 : : {
5615 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1620;
5616 : 0 : {
5617 : 0 : tree res_op0;
5618 : 0 : res_op0 = captures[0];
5619 : 0 : tree res_op1;
5620 : 0 : res_op1 = captures[2];
5621 : 0 : tree _r;
5622 : 0 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
5623 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
5624 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
5625 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 935, __FILE__, __LINE__, true);
5626 : 0 : return _r;
5627 : : }
5628 : 0 : next_after_fail1620:;
5629 : : }
5630 : : }
5631 : : }
5632 : : break;
5633 : : }
5634 : 682458 : default:;
5635 : : }
5636 : 682458 : switch (TREE_CODE (_q21))
5637 : : {
5638 : 2518 : CASE_CONVERT:
5639 : 2518 : {
5640 : 2518 : tree _q40 = TREE_OPERAND (_q21, 0);
5641 : 2518 : switch (TREE_CODE (_p1))
5642 : : {
5643 : 158 : CASE_CONVERT:
5644 : 158 : {
5645 : 158 : tree _q60 = TREE_OPERAND (_p1, 0);
5646 : 158 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
5647 : : {
5648 : 0 : {
5649 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q40 };
5650 : 0 : tree res = generic_simplify_208 (loc, type, _p0, _p1, captures, EQ_EXPR);
5651 : 0 : if (res) return res;
5652 : : }
5653 : : }
5654 : : break;
5655 : : }
5656 : : default:;
5657 : : }
5658 : : break;
5659 : : }
5660 : 682458 : default:;
5661 : : }
5662 : 682458 : switch (TREE_CODE (_q20))
5663 : : {
5664 : 27871 : CASE_CONVERT:
5665 : 27871 : {
5666 : 27871 : tree _q30 = TREE_OPERAND (_q20, 0);
5667 : 27871 : switch (TREE_CODE (_p1))
5668 : : {
5669 : 275 : CASE_CONVERT:
5670 : 275 : {
5671 : 275 : tree _q60 = TREE_OPERAND (_p1, 0);
5672 : 275 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
5673 : : {
5674 : 1 : {
5675 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q21, _q30 };
5676 : 1 : tree res = generic_simplify_208 (loc, type, _p0, _p1, captures, EQ_EXPR);
5677 : 1 : if (res) return res;
5678 : : }
5679 : : }
5680 : : break;
5681 : : }
5682 : 27870 : default:;
5683 : : }
5684 : 27870 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
5685 : : {
5686 : 0 : {
5687 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q21, _q30 };
5688 : 0 : tree res = generic_simplify_208 (loc, type, _p0, _p1, captures, EQ_EXPR);
5689 : 0 : if (res) return res;
5690 : : }
5691 : : }
5692 : : break;
5693 : : }
5694 : 682457 : default:;
5695 : : }
5696 : 682457 : switch (TREE_CODE (_q21))
5697 : : {
5698 : 2518 : CASE_CONVERT:
5699 : 2518 : {
5700 : 2518 : tree _q40 = TREE_OPERAND (_q21, 0);
5701 : 2518 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
5702 : : {
5703 : 0 : {
5704 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q40 };
5705 : 0 : tree res = generic_simplify_208 (loc, type, _p0, _p1, captures, EQ_EXPR);
5706 : 0 : if (res) return res;
5707 : : }
5708 : : }
5709 : : break;
5710 : : }
5711 : 682457 : default:;
5712 : : }
5713 : 682457 : switch (TREE_CODE (_p1))
5714 : : {
5715 : 13768 : CASE_CONVERT:
5716 : 13768 : {
5717 : 13768 : tree _q50 = TREE_OPERAND (_p1, 0);
5718 : 13768 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
5719 : : {
5720 : 0 : {
5721 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21 };
5722 : 0 : tree res = generic_simplify_208 (loc, type, _p0, _p1, captures, EQ_EXPR);
5723 : 0 : if (res) return res;
5724 : : }
5725 : : }
5726 : 13768 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5727 : : {
5728 : 0 : {
5729 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q21, _q20 };
5730 : 0 : tree res = generic_simplify_208 (loc, type, _p0, _p1, captures, EQ_EXPR);
5731 : 0 : if (res) return res;
5732 : : }
5733 : : }
5734 : : break;
5735 : : }
5736 : 682457 : default:;
5737 : : }
5738 : 682457 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
5739 : : {
5740 : 19907 : {
5741 : 19907 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21 };
5742 : 19907 : tree res = generic_simplify_208 (loc, type, _p0, _p1, captures, EQ_EXPR);
5743 : 19907 : if (res) return res;
5744 : : }
5745 : : }
5746 : 662610 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
5747 : : {
5748 : 65 : {
5749 : 65 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q21, _q20 };
5750 : 65 : tree res = generic_simplify_208 (loc, type, _p0, _p1, captures, EQ_EXPR);
5751 : 65 : if (res) return res;
5752 : : }
5753 : : }
5754 : : break;
5755 : : }
5756 : 75022 : case POINTER_PLUS_EXPR:
5757 : 75022 : {
5758 : 75022 : tree _q20 = TREE_OPERAND (_p0, 0);
5759 : 75022 : tree _q21 = TREE_OPERAND (_p0, 1);
5760 : 75022 : switch (TREE_CODE (_p1))
5761 : : {
5762 : 2551 : case POINTER_PLUS_EXPR:
5763 : 2551 : {
5764 : 2551 : tree _q50 = TREE_OPERAND (_p1, 0);
5765 : 2551 : tree _q51 = TREE_OPERAND (_p1, 1);
5766 : 2551 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5767 : : {
5768 : 26 : {
5769 : 26 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
5770 : 26 : tree res = generic_simplify_210 (loc, type, _p0, _p1, captures, EQ_EXPR);
5771 : 26 : if (res) return res;
5772 : : }
5773 : : }
5774 : : break;
5775 : : }
5776 : 74996 : default:;
5777 : : }
5778 : 74996 : switch (TREE_CODE (_q20))
5779 : : {
5780 : 1474 : CASE_CONVERT:
5781 : 1474 : {
5782 : 1474 : tree _q30 = TREE_OPERAND (_q20, 0);
5783 : 1474 : switch (TREE_CODE (_p1))
5784 : : {
5785 : 96 : CASE_CONVERT:
5786 : 96 : {
5787 : 96 : tree _q60 = TREE_OPERAND (_p1, 0);
5788 : 96 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
5789 : : {
5790 : 60 : {
5791 : 60 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q30, _q21 };
5792 : 60 : tree res = generic_simplify_211 (loc, type, _p0, _p1, captures, EQ_EXPR);
5793 : 60 : if (res) return res;
5794 : : }
5795 : : }
5796 : : break;
5797 : : }
5798 : 1414 : default:;
5799 : : }
5800 : 1414 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
5801 : : {
5802 : 0 : {
5803 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q30, _q21 };
5804 : 0 : tree res = generic_simplify_211 (loc, type, _p0, _p1, captures, EQ_EXPR);
5805 : 0 : if (res) return res;
5806 : : }
5807 : : }
5808 : : break;
5809 : : }
5810 : 74936 : default:;
5811 : : }
5812 : 74936 : switch (TREE_CODE (_p1))
5813 : : {
5814 : 471 : CASE_CONVERT:
5815 : 471 : {
5816 : 471 : tree _q50 = TREE_OPERAND (_p1, 0);
5817 : 471 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5818 : : {
5819 : 0 : {
5820 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21 };
5821 : 0 : tree res = generic_simplify_211 (loc, type, _p0, _p1, captures, EQ_EXPR);
5822 : 0 : if (res) return res;
5823 : : }
5824 : : }
5825 : : break;
5826 : : }
5827 : 74936 : default:;
5828 : : }
5829 : 74936 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
5830 : : {
5831 : 1235 : {
5832 : 1235 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21 };
5833 : 1235 : tree res = generic_simplify_211 (loc, type, _p0, _p1, captures, EQ_EXPR);
5834 : 1235 : if (res) return res;
5835 : : }
5836 : : }
5837 : : break;
5838 : : }
5839 : 125150 : case MINUS_EXPR:
5840 : 125150 : {
5841 : 125150 : tree _q20 = TREE_OPERAND (_p0, 0);
5842 : 125150 : tree _q21 = TREE_OPERAND (_p0, 1);
5843 : 125150 : switch (TREE_CODE (_p1))
5844 : : {
5845 : 190 : case MINUS_EXPR:
5846 : 190 : {
5847 : 190 : tree _q50 = TREE_OPERAND (_p1, 0);
5848 : 190 : tree _q51 = TREE_OPERAND (_p1, 1);
5849 : 190 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5850 : : {
5851 : 18 : {
5852 : 18 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
5853 : 36 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
5854 : 18 : && (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
5855 : 0 : || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[0])))
5856 : : )
5857 : : {
5858 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1621;
5859 : 0 : {
5860 : 0 : tree res_op0;
5861 : 0 : res_op0 = captures[0];
5862 : 0 : tree res_op1;
5863 : 0 : res_op1 = captures[2];
5864 : 0 : tree _r;
5865 : 0 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
5866 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
5867 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
5868 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 936, __FILE__, __LINE__, true);
5869 : 0 : return _r;
5870 : : }
5871 : 0 : next_after_fail1621:;
5872 : : }
5873 : : }
5874 : : }
5875 : 190 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5876 : : {
5877 : 18 : {
5878 : 18 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
5879 : 36 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
5880 : 18 : && (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[1]))
5881 : 0 : || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[1])))
5882 : : )
5883 : : {
5884 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1622;
5885 : 0 : {
5886 : 0 : tree res_op0;
5887 : 0 : res_op0 = captures[2];
5888 : 0 : tree res_op1;
5889 : 0 : res_op1 = captures[1];
5890 : 0 : tree _r;
5891 : 0 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
5892 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
5893 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
5894 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 937, __FILE__, __LINE__, true);
5895 : 0 : return _r;
5896 : : }
5897 : 0 : next_after_fail1622:;
5898 : : }
5899 : : }
5900 : : }
5901 : : break;
5902 : : }
5903 : 125150 : default:;
5904 : : }
5905 : 125150 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
5906 : : {
5907 : 74 : {
5908 : 74 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p0, _q21 };
5909 : 74 : tree res = generic_simplify_212 (loc, type, _p0, _p1, captures, EQ_EXPR);
5910 : 74 : if (res) return res;
5911 : : }
5912 : : }
5913 : : break;
5914 : : }
5915 : 40043 : case POINTER_DIFF_EXPR:
5916 : 40043 : {
5917 : 40043 : tree _q20 = TREE_OPERAND (_p0, 0);
5918 : 40043 : tree _q21 = TREE_OPERAND (_p0, 1);
5919 : 40043 : switch (TREE_CODE (_p1))
5920 : : {
5921 : 985 : case POINTER_DIFF_EXPR:
5922 : 985 : {
5923 : 985 : tree _q50 = TREE_OPERAND (_p1, 0);
5924 : 985 : tree _q51 = TREE_OPERAND (_p1, 1);
5925 : 985 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5926 : : {
5927 : 0 : {
5928 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50 };
5929 : 0 : tree res = generic_simplify_213 (loc, type, _p0, _p1, captures, EQ_EXPR);
5930 : 0 : if (res) return res;
5931 : : }
5932 : : }
5933 : 985 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5934 : : {
5935 : 0 : {
5936 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q51 };
5937 : 0 : tree res = generic_simplify_214 (loc, type, _p0, _p1, captures, EQ_EXPR);
5938 : 0 : if (res) return res;
5939 : : }
5940 : : }
5941 : : break;
5942 : : }
5943 : : default:;
5944 : : }
5945 : : break;
5946 : : }
5947 : 25829743 : default:;
5948 : : }
5949 : 25829743 : {
5950 : 25829743 : tree _p0_pops[1];
5951 : 25829743 : if (tree_logical_inverted_value (_p0, _p0_pops))
5952 : : {
5953 : 7830 : tree _q20 = _p0_pops[0];
5954 : 7830 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
5955 : : {
5956 : 9 : if (tree_truth_valued_p (_p1))
5957 : : {
5958 : 0 : {
5959 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
5960 : 0 : tree res = generic_simplify_202 (loc, type, _p0, _p1, captures, EQ_EXPR);
5961 : 0 : if (res) return res;
5962 : : }
5963 : : }
5964 : : }
5965 : : }
5966 : : }
5967 : 25829743 : {
5968 : 25829743 : tree _p0_pops[1];
5969 : 25829743 : if (tree_nop_convert (_p0, _p0_pops))
5970 : : {
5971 : 2897326 : tree _q20 = _p0_pops[0];
5972 : 2897326 : switch (TREE_CODE (_q20))
5973 : : {
5974 : 2453 : case PLUS_EXPR:
5975 : 2453 : {
5976 : 2453 : tree _q30 = TREE_OPERAND (_q20, 0);
5977 : 2453 : tree _q31 = TREE_OPERAND (_q20, 1);
5978 : 2453 : switch (TREE_CODE (_q31))
5979 : : {
5980 : 0 : CASE_CONVERT:
5981 : 0 : {
5982 : 0 : tree _q50 = TREE_OPERAND (_q31, 0);
5983 : 0 : switch (TREE_CODE (_p1))
5984 : : {
5985 : 0 : CASE_CONVERT:
5986 : 0 : {
5987 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
5988 : 0 : if ((_q70 == _q50 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q50, 0) && types_match (_q70, _q50)))
5989 : : {
5990 : 0 : {
5991 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q50 };
5992 : 0 : tree res = generic_simplify_207 (loc, type, _p0, _p1, captures, EQ_EXPR);
5993 : 0 : if (res) return res;
5994 : : }
5995 : : }
5996 : : break;
5997 : : }
5998 : : default:;
5999 : : }
6000 : : break;
6001 : : }
6002 : 2453 : default:;
6003 : : }
6004 : 2453 : switch (TREE_CODE (_q30))
6005 : : {
6006 : 1323 : CASE_CONVERT:
6007 : 1323 : {
6008 : 1323 : tree _q40 = TREE_OPERAND (_q30, 0);
6009 : 1323 : switch (TREE_CODE (_p1))
6010 : : {
6011 : 36 : CASE_CONVERT:
6012 : 36 : {
6013 : 36 : tree _q70 = TREE_OPERAND (_p1, 0);
6014 : 36 : if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
6015 : : {
6016 : 0 : {
6017 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q31, _q40 };
6018 : 0 : tree res = generic_simplify_207 (loc, type, _p0, _p1, captures, EQ_EXPR);
6019 : 0 : if (res) return res;
6020 : : }
6021 : : }
6022 : : break;
6023 : : }
6024 : 1323 : default:;
6025 : : }
6026 : 1323 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
6027 : : {
6028 : 0 : {
6029 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q31, _q40 };
6030 : 0 : tree res = generic_simplify_207 (loc, type, _p0, _p1, captures, EQ_EXPR);
6031 : 0 : if (res) return res;
6032 : : }
6033 : : }
6034 : : break;
6035 : : }
6036 : 2453 : default:;
6037 : : }
6038 : 2453 : switch (TREE_CODE (_q31))
6039 : : {
6040 : 0 : CASE_CONVERT:
6041 : 0 : {
6042 : 0 : tree _q50 = TREE_OPERAND (_q31, 0);
6043 : 0 : if ((_p1 == _q50 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q50, 0) && types_match (_p1, _q50)))
6044 : : {
6045 : 0 : {
6046 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q50 };
6047 : 0 : tree res = generic_simplify_207 (loc, type, _p0, _p1, captures, EQ_EXPR);
6048 : 0 : if (res) return res;
6049 : : }
6050 : : }
6051 : : break;
6052 : : }
6053 : 2453 : default:;
6054 : : }
6055 : 2453 : switch (TREE_CODE (_p1))
6056 : : {
6057 : 105 : CASE_CONVERT:
6058 : 105 : {
6059 : 105 : tree _q60 = TREE_OPERAND (_p1, 0);
6060 : 105 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q31, 0) && types_match (_q60, _q31)))
6061 : : {
6062 : 0 : {
6063 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31 };
6064 : 0 : tree res = generic_simplify_207 (loc, type, _p0, _p1, captures, EQ_EXPR);
6065 : 0 : if (res) return res;
6066 : : }
6067 : : }
6068 : 105 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
6069 : : {
6070 : 0 : {
6071 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q31, _q30 };
6072 : 0 : tree res = generic_simplify_207 (loc, type, _p0, _p1, captures, EQ_EXPR);
6073 : 0 : if (res) return res;
6074 : : }
6075 : : }
6076 : : break;
6077 : : }
6078 : 2453 : default:;
6079 : : }
6080 : 2453 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
6081 : : {
6082 : 0 : {
6083 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31 };
6084 : 0 : tree res = generic_simplify_207 (loc, type, _p0, _p1, captures, EQ_EXPR);
6085 : 0 : if (res) return res;
6086 : : }
6087 : : }
6088 : 2453 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
6089 : : {
6090 : 0 : {
6091 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q31, _q30 };
6092 : 0 : tree res = generic_simplify_207 (loc, type, _p0, _p1, captures, EQ_EXPR);
6093 : 0 : if (res) return res;
6094 : : }
6095 : : }
6096 : : break;
6097 : : }
6098 : 97 : case POINTER_PLUS_EXPR:
6099 : 97 : {
6100 : 97 : tree _q30 = TREE_OPERAND (_q20, 0);
6101 : 97 : tree _q31 = TREE_OPERAND (_q20, 1);
6102 : 97 : switch (TREE_CODE (_q30))
6103 : : {
6104 : 21 : CASE_CONVERT:
6105 : 21 : {
6106 : 21 : tree _q40 = TREE_OPERAND (_q30, 0);
6107 : 21 : switch (TREE_CODE (_p1))
6108 : : {
6109 : 0 : CASE_CONVERT:
6110 : 0 : {
6111 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
6112 : 0 : if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
6113 : : {
6114 : 0 : {
6115 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q40, _q31 };
6116 : 0 : tree res = generic_simplify_215 (loc, type, _p0, _p1, captures, EQ_EXPR);
6117 : 0 : if (res) return res;
6118 : : }
6119 : : }
6120 : : break;
6121 : : }
6122 : 21 : default:;
6123 : : }
6124 : 21 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
6125 : : {
6126 : 0 : {
6127 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q40, _q31 };
6128 : 0 : tree res = generic_simplify_215 (loc, type, _p0, _p1, captures, EQ_EXPR);
6129 : 0 : if (res) return res;
6130 : : }
6131 : : }
6132 : : break;
6133 : : }
6134 : 97 : default:;
6135 : : }
6136 : 97 : switch (TREE_CODE (_p1))
6137 : : {
6138 : 27 : CASE_CONVERT:
6139 : 27 : {
6140 : 27 : tree _q60 = TREE_OPERAND (_p1, 0);
6141 : 27 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
6142 : : {
6143 : 0 : {
6144 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31 };
6145 : 0 : tree res = generic_simplify_215 (loc, type, _p0, _p1, captures, EQ_EXPR);
6146 : 0 : if (res) return res;
6147 : : }
6148 : : }
6149 : : break;
6150 : : }
6151 : 97 : default:;
6152 : : }
6153 : 97 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
6154 : : {
6155 : 0 : {
6156 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31 };
6157 : 0 : tree res = generic_simplify_215 (loc, type, _p0, _p1, captures, EQ_EXPR);
6158 : 0 : if (res) return res;
6159 : : }
6160 : : }
6161 : : break;
6162 : : }
6163 : : default:;
6164 : : }
6165 : : }
6166 : : }
6167 : 25829743 : if (tree_truth_valued_p (_p0))
6168 : : {
6169 : 488281 : switch (TREE_CODE (_p1))
6170 : : {
6171 : 24 : case BIT_NOT_EXPR:
6172 : 24 : {
6173 : 24 : tree _q30 = TREE_OPERAND (_p1, 0);
6174 : 24 : if (tree_truth_valued_p (_q30))
6175 : : {
6176 : 4 : {
6177 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q30, _p0 };
6178 : 4 : tree res = generic_simplify_203 (loc, type, _p0, _p1, captures);
6179 : 4 : if (res) return res;
6180 : : }
6181 : : }
6182 : : break;
6183 : : }
6184 : 488281 : default:;
6185 : : }
6186 : 488281 : {
6187 : 488281 : tree _p1_pops[1];
6188 : 488281 : if (tree_logical_inverted_value (_p1, _p1_pops))
6189 : : {
6190 : 93 : tree _q30 = _p1_pops[0];
6191 : 93 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
6192 : : {
6193 : 0 : {
6194 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
6195 : 0 : tree res = generic_simplify_202 (loc, type, _p0, _p1, captures, EQ_EXPR);
6196 : 0 : if (res) return res;
6197 : : }
6198 : : }
6199 : : }
6200 : : }
6201 : : }
6202 : 25829743 : switch (TREE_CODE (_p1))
6203 : : {
6204 : 81670 : case PLUS_EXPR:
6205 : 81670 : {
6206 : 81670 : tree _q30 = TREE_OPERAND (_p1, 0);
6207 : 81670 : tree _q31 = TREE_OPERAND (_p1, 1);
6208 : 81670 : switch (TREE_CODE (_q31))
6209 : : {
6210 : 26 : CASE_CONVERT:
6211 : 26 : {
6212 : 26 : tree _q50 = TREE_OPERAND (_q31, 0);
6213 : 26 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
6214 : : {
6215 : 0 : {
6216 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _p1, _q30, _p0 };
6217 : 0 : tree res = generic_simplify_208 (loc, type, _p0, _p1, captures, EQ_EXPR);
6218 : 0 : if (res) return res;
6219 : : }
6220 : : }
6221 : : break;
6222 : : }
6223 : 81670 : default:;
6224 : : }
6225 : 81670 : switch (TREE_CODE (_q30))
6226 : : {
6227 : 20459 : CASE_CONVERT:
6228 : 20459 : {
6229 : 20459 : tree _q40 = TREE_OPERAND (_q30, 0);
6230 : 20459 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
6231 : : {
6232 : 0 : {
6233 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _p1, _q31, _p0 };
6234 : 0 : tree res = generic_simplify_208 (loc, type, _p0, _p1, captures, EQ_EXPR);
6235 : 0 : if (res) return res;
6236 : : }
6237 : : }
6238 : : break;
6239 : : }
6240 : 81670 : default:;
6241 : : }
6242 : 81670 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
6243 : : {
6244 : 0 : {
6245 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _p1, _q30, _p0 };
6246 : 0 : tree res = generic_simplify_208 (loc, type, _p0, _p1, captures, EQ_EXPR);
6247 : 0 : if (res) return res;
6248 : : }
6249 : : }
6250 : 81670 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
6251 : : {
6252 : 0 : {
6253 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _p1, _q31, _p0 };
6254 : 0 : tree res = generic_simplify_208 (loc, type, _p0, _p1, captures, EQ_EXPR);
6255 : 0 : if (res) return res;
6256 : : }
6257 : : }
6258 : : break;
6259 : : }
6260 : 25829743 : default:;
6261 : : }
6262 : 25829743 : {
6263 : 25829743 : tree _p1_pops[1];
6264 : 25829743 : if (tree_nop_convert (_p1, _p1_pops))
6265 : : {
6266 : 1009111 : tree _q30 = _p1_pops[0];
6267 : 1009111 : switch (TREE_CODE (_q30))
6268 : : {
6269 : 1615 : case PLUS_EXPR:
6270 : 1615 : {
6271 : 1615 : tree _q40 = TREE_OPERAND (_q30, 0);
6272 : 1615 : tree _q41 = TREE_OPERAND (_q30, 1);
6273 : 1615 : switch (TREE_CODE (_q41))
6274 : : {
6275 : 2 : CASE_CONVERT:
6276 : 2 : {
6277 : 2 : tree _q60 = TREE_OPERAND (_q41, 0);
6278 : 2 : if ((_q60 == _p0 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _p0, 0) && types_match (_q60, _p0)))
6279 : : {
6280 : 0 : {
6281 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q30, _q40, _p0 };
6282 : 0 : tree res = generic_simplify_207 (loc, type, _p0, _p1, captures, EQ_EXPR);
6283 : 0 : if (res) return res;
6284 : : }
6285 : : }
6286 : : break;
6287 : : }
6288 : 1615 : default:;
6289 : : }
6290 : 1615 : switch (TREE_CODE (_q40))
6291 : : {
6292 : 1521 : CASE_CONVERT:
6293 : 1521 : {
6294 : 1521 : tree _q50 = TREE_OPERAND (_q40, 0);
6295 : 1521 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
6296 : : {
6297 : 0 : {
6298 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q30, _q41, _p0 };
6299 : 0 : tree res = generic_simplify_207 (loc, type, _p0, _p1, captures, EQ_EXPR);
6300 : 0 : if (res) return res;
6301 : : }
6302 : : }
6303 : : break;
6304 : : }
6305 : 1615 : default:;
6306 : : }
6307 : 1615 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
6308 : : {
6309 : 0 : {
6310 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q30, _q40, _p0 };
6311 : 0 : tree res = generic_simplify_207 (loc, type, _p0, _p1, captures, EQ_EXPR);
6312 : 0 : if (res) return res;
6313 : : }
6314 : : }
6315 : 1615 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
6316 : : {
6317 : 0 : {
6318 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q30, _q41, _p0 };
6319 : 0 : tree res = generic_simplify_207 (loc, type, _p0, _p1, captures, EQ_EXPR);
6320 : 0 : if (res) return res;
6321 : : }
6322 : : }
6323 : : break;
6324 : : }
6325 : : default:;
6326 : : }
6327 : : }
6328 : : }
6329 : 25829743 : switch (TREE_CODE (_p0))
6330 : : {
6331 : 4636452 : CASE_CONVERT:
6332 : 4636452 : {
6333 : 4636452 : tree _q20 = TREE_OPERAND (_p0, 0);
6334 : 4636452 : switch (TREE_CODE (_p1))
6335 : : {
6336 : 162 : case POINTER_PLUS_EXPR:
6337 : 162 : {
6338 : 162 : tree _q40 = TREE_OPERAND (_p1, 0);
6339 : 162 : tree _q41 = TREE_OPERAND (_p1, 1);
6340 : 162 : switch (TREE_CODE (_q40))
6341 : : {
6342 : 101 : CASE_CONVERT:
6343 : 101 : {
6344 : 101 : tree _q50 = TREE_OPERAND (_q40, 0);
6345 : 101 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
6346 : : {
6347 : 6 : {
6348 : 6 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _p1, _q20, _q41 };
6349 : 6 : tree res = generic_simplify_211 (loc, type, _p0, _p1, captures, EQ_EXPR);
6350 : 6 : if (res) return res;
6351 : : }
6352 : : }
6353 : : break;
6354 : : }
6355 : 156 : default:;
6356 : : }
6357 : 156 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
6358 : : {
6359 : 0 : {
6360 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _p1, _q20, _q41 };
6361 : 0 : tree res = generic_simplify_211 (loc, type, _p0, _p1, captures, EQ_EXPR);
6362 : 0 : if (res) return res;
6363 : : }
6364 : : }
6365 : : break;
6366 : : }
6367 : 4636446 : default:;
6368 : : }
6369 : 4636446 : {
6370 : 4636446 : tree _p1_pops[1];
6371 : 4636446 : if (tree_nop_convert (_p1, _p1_pops))
6372 : : {
6373 : 777437 : tree _q40 = _p1_pops[0];
6374 : 777437 : switch (TREE_CODE (_q40))
6375 : : {
6376 : 6 : case POINTER_PLUS_EXPR:
6377 : 6 : {
6378 : 6 : tree _q50 = TREE_OPERAND (_q40, 0);
6379 : 6 : tree _q51 = TREE_OPERAND (_q40, 1);
6380 : 6 : switch (TREE_CODE (_q50))
6381 : : {
6382 : 0 : CASE_CONVERT:
6383 : 0 : {
6384 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
6385 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
6386 : : {
6387 : 0 : {
6388 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q40, _q20, _q51 };
6389 : 0 : tree res = generic_simplify_215 (loc, type, _p0, _p1, captures, EQ_EXPR);
6390 : 0 : if (res) return res;
6391 : : }
6392 : : }
6393 : : break;
6394 : : }
6395 : 6 : default:;
6396 : : }
6397 : 6 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
6398 : : {
6399 : 0 : {
6400 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q40, _q20, _q51 };
6401 : 0 : tree res = generic_simplify_215 (loc, type, _p0, _p1, captures, EQ_EXPR);
6402 : 0 : if (res) return res;
6403 : : }
6404 : : }
6405 : : break;
6406 : : }
6407 : : default:;
6408 : : }
6409 : : }
6410 : : }
6411 : 4636446 : break;
6412 : : }
6413 : 25829737 : default:;
6414 : : }
6415 : 25829737 : switch (TREE_CODE (_p1))
6416 : : {
6417 : 6847 : case POINTER_PLUS_EXPR:
6418 : 6847 : {
6419 : 6847 : tree _q30 = TREE_OPERAND (_p1, 0);
6420 : 6847 : tree _q31 = TREE_OPERAND (_p1, 1);
6421 : 6847 : switch (TREE_CODE (_q30))
6422 : : {
6423 : 4024 : CASE_CONVERT:
6424 : 4024 : {
6425 : 4024 : tree _q40 = TREE_OPERAND (_q30, 0);
6426 : 4024 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
6427 : : {
6428 : 0 : {
6429 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _p1, _p0, _q31 };
6430 : 0 : tree res = generic_simplify_211 (loc, type, _p0, _p1, captures, EQ_EXPR);
6431 : 0 : if (res) return res;
6432 : : }
6433 : : }
6434 : : break;
6435 : : }
6436 : 6847 : default:;
6437 : : }
6438 : 6847 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
6439 : : {
6440 : 0 : {
6441 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _p1, _p0, _q31 };
6442 : 0 : tree res = generic_simplify_211 (loc, type, _p0, _p1, captures, EQ_EXPR);
6443 : 0 : if (res) return res;
6444 : : }
6445 : : }
6446 : : break;
6447 : : }
6448 : 25829737 : default:;
6449 : : }
6450 : 25829737 : {
6451 : 25829737 : tree _p1_pops[1];
6452 : 25829737 : if (tree_nop_convert (_p1, _p1_pops))
6453 : : {
6454 : 1009111 : tree _q30 = _p1_pops[0];
6455 : 1009111 : switch (TREE_CODE (_q30))
6456 : : {
6457 : 18 : case POINTER_PLUS_EXPR:
6458 : 18 : {
6459 : 18 : tree _q40 = TREE_OPERAND (_q30, 0);
6460 : 18 : tree _q41 = TREE_OPERAND (_q30, 1);
6461 : 18 : switch (TREE_CODE (_q40))
6462 : : {
6463 : 0 : CASE_CONVERT:
6464 : 0 : {
6465 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
6466 : 0 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
6467 : : {
6468 : 0 : {
6469 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q30, _p0, _q41 };
6470 : 0 : tree res = generic_simplify_215 (loc, type, _p0, _p1, captures, EQ_EXPR);
6471 : 0 : if (res) return res;
6472 : : }
6473 : : }
6474 : : break;
6475 : : }
6476 : 18 : default:;
6477 : : }
6478 : 18 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
6479 : : {
6480 : 0 : {
6481 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q30, _p0, _q41 };
6482 : 0 : tree res = generic_simplify_215 (loc, type, _p0, _p1, captures, EQ_EXPR);
6483 : 0 : if (res) return res;
6484 : : }
6485 : : }
6486 : : break;
6487 : : }
6488 : : default:;
6489 : : }
6490 : : }
6491 : : }
6492 : 25829737 : switch (TREE_CODE (_p0))
6493 : : {
6494 : 73701 : case POINTER_PLUS_EXPR:
6495 : 73701 : {
6496 : 73701 : tree _q20 = TREE_OPERAND (_p0, 0);
6497 : 73701 : tree _q21 = TREE_OPERAND (_p0, 1);
6498 : 73701 : switch (TREE_CODE (_p1))
6499 : : {
6500 : 11601 : case ADDR_EXPR:
6501 : 11601 : {
6502 : 11601 : {
6503 : 11601 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
6504 : 11601 : tree res = generic_simplify_216 (loc, type, _p0, _p1, captures, EQ_EXPR);
6505 : 11601 : if (res) return res;
6506 : : }
6507 : 11600 : break;
6508 : : }
6509 : 73700 : default:;
6510 : : }
6511 : 73700 : switch (TREE_CODE (_q20))
6512 : : {
6513 : 1185 : case ADDR_EXPR:
6514 : 1185 : {
6515 : 1185 : switch (TREE_CODE (_p1))
6516 : : {
6517 : 6 : case POINTER_PLUS_EXPR:
6518 : 6 : {
6519 : 6 : tree _q50 = TREE_OPERAND (_p1, 0);
6520 : 6 : tree _q51 = TREE_OPERAND (_p1, 1);
6521 : 6 : switch (TREE_CODE (_q50))
6522 : : {
6523 : 0 : case ADDR_EXPR:
6524 : 0 : {
6525 : 0 : {
6526 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q50, _q51 };
6527 : 0 : tree res = generic_simplify_217 (loc, type, _p0, _p1, captures, EQ_EXPR);
6528 : 0 : if (res) return res;
6529 : : }
6530 : 0 : break;
6531 : : }
6532 : : default:;
6533 : : }
6534 : : break;
6535 : : }
6536 : : default:;
6537 : : }
6538 : : break;
6539 : : }
6540 : : default:;
6541 : : }
6542 : : break;
6543 : : }
6544 : 82235 : case ADDR_EXPR:
6545 : 82235 : {
6546 : 82235 : switch (TREE_CODE (_p1))
6547 : : {
6548 : 0 : case POINTER_PLUS_EXPR:
6549 : 0 : {
6550 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
6551 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
6552 : 0 : {
6553 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p0 };
6554 : 0 : tree res = generic_simplify_216 (loc, type, _p0, _p1, captures, EQ_EXPR);
6555 : 0 : if (res) return res;
6556 : : }
6557 : 0 : break;
6558 : : }
6559 : : default:;
6560 : : }
6561 : : break;
6562 : : }
6563 : 25829736 : default:;
6564 : : }
6565 : 25829736 : switch (TREE_CODE (_p1))
6566 : : {
6567 : 2795 : case MINUS_EXPR:
6568 : 2795 : {
6569 : 2795 : tree _q30 = TREE_OPERAND (_p1, 0);
6570 : 2795 : tree _q31 = TREE_OPERAND (_p1, 1);
6571 : 2795 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
6572 : : {
6573 : 0 : {
6574 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q31 };
6575 : 0 : tree res = generic_simplify_212 (loc, type, _p0, _p1, captures, EQ_EXPR);
6576 : 0 : if (res) return res;
6577 : : }
6578 : : }
6579 : : break;
6580 : : }
6581 : 25829736 : default:;
6582 : : }
6583 : 25829736 : switch (TREE_CODE (_p0))
6584 : : {
6585 : 4424 : case TRUNC_DIV_EXPR:
6586 : 4424 : {
6587 : 4424 : tree _q20 = TREE_OPERAND (_p0, 0);
6588 : 4424 : tree _q21 = TREE_OPERAND (_p0, 1);
6589 : 4424 : if (integer_zerop (_p1))
6590 : : {
6591 : 319 : {
6592 : 319 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
6593 : 319 : tree res = generic_simplify_218 (loc, type, _p0, _p1, captures, EQ_EXPR, LT_EXPR);
6594 : 319 : if (res) return res;
6595 : : }
6596 : : }
6597 : : break;
6598 : : }
6599 : 4636446 : CASE_CONVERT:
6600 : 4636446 : {
6601 : 4636446 : tree _q20 = TREE_OPERAND (_p0, 0);
6602 : 4636446 : switch (TREE_CODE (_p1))
6603 : : {
6604 : 1077191 : CASE_CONVERT:
6605 : 1077191 : {
6606 : 1077191 : tree _q40 = TREE_OPERAND (_p1, 0);
6607 : 1077191 : switch (TREE_CODE (_q40))
6608 : : {
6609 : 0 : case MINUS_EXPR:
6610 : 0 : {
6611 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
6612 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
6613 : 0 : switch (TREE_CODE (_q50))
6614 : : {
6615 : 0 : case INTEGER_CST:
6616 : 0 : {
6617 : 0 : switch (TREE_CODE (_q51))
6618 : : {
6619 : 0 : CASE_CONVERT:
6620 : 0 : {
6621 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
6622 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
6623 : : {
6624 : 0 : {
6625 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q50 };
6626 : 0 : tree res = generic_simplify_219 (loc, type, _p0, _p1, captures, EQ_EXPR);
6627 : 0 : if (res) return res;
6628 : : }
6629 : : }
6630 : : break;
6631 : : }
6632 : : default:;
6633 : : }
6634 : : break;
6635 : : }
6636 : : default:;
6637 : : }
6638 : : break;
6639 : : }
6640 : : default:;
6641 : : }
6642 : : break;
6643 : : }
6644 : 4636446 : default:;
6645 : : }
6646 : 4636446 : switch (TREE_CODE (_q20))
6647 : : {
6648 : 246 : case MINUS_EXPR:
6649 : 246 : {
6650 : 246 : tree _q30 = TREE_OPERAND (_q20, 0);
6651 : 246 : tree _q31 = TREE_OPERAND (_q20, 1);
6652 : 246 : switch (TREE_CODE (_q30))
6653 : : {
6654 : 56 : case INTEGER_CST:
6655 : 56 : {
6656 : 56 : switch (TREE_CODE (_q31))
6657 : : {
6658 : 0 : CASE_CONVERT:
6659 : 0 : {
6660 : 0 : tree _q50 = TREE_OPERAND (_q31, 0);
6661 : 0 : switch (TREE_CODE (_p1))
6662 : : {
6663 : 0 : CASE_CONVERT:
6664 : 0 : {
6665 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
6666 : 0 : if ((_q70 == _q50 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q50, 0) && types_match (_q70, _q50)))
6667 : : {
6668 : 0 : {
6669 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q50, _q30 };
6670 : 0 : tree res = generic_simplify_219 (loc, type, _p0, _p1, captures, EQ_EXPR);
6671 : 0 : if (res) return res;
6672 : : }
6673 : : }
6674 : : break;
6675 : : }
6676 : 0 : default:;
6677 : : }
6678 : 0 : if ((_p1 == _q50 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q50, 0) && types_match (_p1, _q50)))
6679 : : {
6680 : 0 : {
6681 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q50, _q30 };
6682 : 0 : tree res = generic_simplify_219 (loc, type, _p0, _p1, captures, EQ_EXPR);
6683 : 0 : if (res) return res;
6684 : : }
6685 : : }
6686 : : break;
6687 : : }
6688 : 56 : default:;
6689 : : }
6690 : 56 : switch (TREE_CODE (_p1))
6691 : : {
6692 : 0 : CASE_CONVERT:
6693 : 0 : {
6694 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
6695 : 0 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q31, 0) && types_match (_q60, _q31)))
6696 : : {
6697 : 0 : {
6698 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q31, _q30 };
6699 : 0 : tree res = generic_simplify_219 (loc, type, _p0, _p1, captures, EQ_EXPR);
6700 : 0 : if (res) return res;
6701 : : }
6702 : : }
6703 : : break;
6704 : : }
6705 : 56 : default:;
6706 : : }
6707 : 56 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
6708 : : {
6709 : 0 : {
6710 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q31, _q30 };
6711 : 0 : tree res = generic_simplify_219 (loc, type, _p0, _p1, captures, EQ_EXPR);
6712 : 0 : if (res) return res;
6713 : : }
6714 : : }
6715 : : break;
6716 : : }
6717 : : default:;
6718 : : }
6719 : : break;
6720 : : }
6721 : 4636446 : default:;
6722 : : }
6723 : 4636446 : switch (TREE_CODE (_p1))
6724 : : {
6725 : 1077191 : CASE_CONVERT:
6726 : 1077191 : {
6727 : 1077191 : tree _q40 = TREE_OPERAND (_p1, 0);
6728 : 1077191 : switch (TREE_CODE (_q40))
6729 : : {
6730 : 0 : case MINUS_EXPR:
6731 : 0 : {
6732 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
6733 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
6734 : 0 : switch (TREE_CODE (_q50))
6735 : : {
6736 : 0 : case INTEGER_CST:
6737 : 0 : {
6738 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
6739 : : {
6740 : 0 : {
6741 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q50 };
6742 : 0 : tree res = generic_simplify_219 (loc, type, _p0, _p1, captures, EQ_EXPR);
6743 : 0 : if (res) return res;
6744 : : }
6745 : : }
6746 : : break;
6747 : : }
6748 : : default:;
6749 : : }
6750 : : break;
6751 : : }
6752 : : default:;
6753 : : }
6754 : : break;
6755 : : }
6756 : 267 : case MINUS_EXPR:
6757 : 267 : {
6758 : 267 : tree _q40 = TREE_OPERAND (_p1, 0);
6759 : 267 : tree _q41 = TREE_OPERAND (_p1, 1);
6760 : 267 : switch (TREE_CODE (_q40))
6761 : : {
6762 : 65 : case INTEGER_CST:
6763 : 65 : {
6764 : 65 : switch (TREE_CODE (_q41))
6765 : : {
6766 : 12 : CASE_CONVERT:
6767 : 12 : {
6768 : 12 : tree _q60 = TREE_OPERAND (_q41, 0);
6769 : 12 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
6770 : : {
6771 : 0 : {
6772 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
6773 : 0 : tree res = generic_simplify_219 (loc, type, _p0, _p1, captures, EQ_EXPR);
6774 : 0 : if (res) return res;
6775 : : }
6776 : : }
6777 : : break;
6778 : : }
6779 : 65 : default:;
6780 : : }
6781 : 65 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _q20, 0) && types_match (_q41, _q20)))
6782 : : {
6783 : 0 : {
6784 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
6785 : 0 : tree res = generic_simplify_219 (loc, type, _p0, _p1, captures, EQ_EXPR);
6786 : 0 : if (res) return res;
6787 : : }
6788 : : }
6789 : : break;
6790 : : }
6791 : : default:;
6792 : : }
6793 : : break;
6794 : : }
6795 : : default:;
6796 : : }
6797 : : break;
6798 : : }
6799 : 125076 : case MINUS_EXPR:
6800 : 125076 : {
6801 : 125076 : tree _q20 = TREE_OPERAND (_p0, 0);
6802 : 125076 : tree _q21 = TREE_OPERAND (_p0, 1);
6803 : 125076 : switch (TREE_CODE (_q20))
6804 : : {
6805 : 42236 : case INTEGER_CST:
6806 : 42236 : {
6807 : 42236 : switch (TREE_CODE (_q21))
6808 : : {
6809 : 22992 : CASE_CONVERT:
6810 : 22992 : {
6811 : 22992 : tree _q40 = TREE_OPERAND (_q21, 0);
6812 : 22992 : switch (TREE_CODE (_p1))
6813 : : {
6814 : 0 : CASE_CONVERT:
6815 : 0 : {
6816 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
6817 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
6818 : : {
6819 : 0 : {
6820 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q20 };
6821 : 0 : tree res = generic_simplify_219 (loc, type, _p0, _p1, captures, EQ_EXPR);
6822 : 0 : if (res) return res;
6823 : : }
6824 : : }
6825 : : break;
6826 : : }
6827 : 22992 : default:;
6828 : : }
6829 : 22992 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
6830 : : {
6831 : 0 : {
6832 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q20 };
6833 : 0 : tree res = generic_simplify_219 (loc, type, _p0, _p1, captures, EQ_EXPR);
6834 : 0 : if (res) return res;
6835 : : }
6836 : : }
6837 : : break;
6838 : : }
6839 : 42236 : default:;
6840 : : }
6841 : 42236 : switch (TREE_CODE (_p1))
6842 : : {
6843 : 2 : CASE_CONVERT:
6844 : 2 : {
6845 : 2 : tree _q50 = TREE_OPERAND (_p1, 0);
6846 : 2 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
6847 : : {
6848 : 0 : {
6849 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
6850 : 0 : tree res = generic_simplify_219 (loc, type, _p0, _p1, captures, EQ_EXPR);
6851 : 0 : if (res) return res;
6852 : : }
6853 : : }
6854 : : break;
6855 : : }
6856 : 42236 : default:;
6857 : : }
6858 : 42236 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6859 : : {
6860 : 2 : {
6861 : 2 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
6862 : 2 : tree res = generic_simplify_219 (loc, type, _p0, _p1, captures, EQ_EXPR);
6863 : 2 : if (res) return res;
6864 : : }
6865 : : }
6866 : : break;
6867 : : }
6868 : : default:;
6869 : : }
6870 : : break;
6871 : : }
6872 : 25829500 : default:;
6873 : : }
6874 : 25829500 : switch (TREE_CODE (_p1))
6875 : : {
6876 : 1365740 : CASE_CONVERT:
6877 : 1365740 : {
6878 : 1365740 : tree _q30 = TREE_OPERAND (_p1, 0);
6879 : 1365740 : switch (TREE_CODE (_q30))
6880 : : {
6881 : 12 : case MINUS_EXPR:
6882 : 12 : {
6883 : 12 : tree _q40 = TREE_OPERAND (_q30, 0);
6884 : 12 : tree _q41 = TREE_OPERAND (_q30, 1);
6885 : 12 : switch (TREE_CODE (_q40))
6886 : : {
6887 : 12 : case INTEGER_CST:
6888 : 12 : {
6889 : 12 : switch (TREE_CODE (_q41))
6890 : : {
6891 : 12 : CASE_CONVERT:
6892 : 12 : {
6893 : 12 : tree _q60 = TREE_OPERAND (_q41, 0);
6894 : 12 : if ((_q60 == _p0 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _p0, 0) && types_match (_q60, _p0)))
6895 : : {
6896 : 0 : {
6897 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q40 };
6898 : 0 : tree res = generic_simplify_219 (loc, type, _p0, _p1, captures, EQ_EXPR);
6899 : 0 : if (res) return res;
6900 : : }
6901 : : }
6902 : : break;
6903 : : }
6904 : 12 : default:;
6905 : : }
6906 : 12 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
6907 : : {
6908 : 0 : {
6909 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q40 };
6910 : 0 : tree res = generic_simplify_219 (loc, type, _p0, _p1, captures, EQ_EXPR);
6911 : 0 : if (res) return res;
6912 : : }
6913 : : }
6914 : : break;
6915 : : }
6916 : : default:;
6917 : : }
6918 : : break;
6919 : : }
6920 : : default:;
6921 : : }
6922 : : break;
6923 : : }
6924 : 2795 : case MINUS_EXPR:
6925 : 2795 : {
6926 : 2795 : tree _q30 = TREE_OPERAND (_p1, 0);
6927 : 2795 : tree _q31 = TREE_OPERAND (_p1, 1);
6928 : 2795 : switch (TREE_CODE (_q30))
6929 : : {
6930 : 153 : case INTEGER_CST:
6931 : 153 : {
6932 : 153 : switch (TREE_CODE (_q31))
6933 : : {
6934 : 16 : CASE_CONVERT:
6935 : 16 : {
6936 : 16 : tree _q50 = TREE_OPERAND (_q31, 0);
6937 : 16 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
6938 : : {
6939 : 0 : {
6940 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
6941 : 0 : tree res = generic_simplify_219 (loc, type, _p0, _p1, captures, EQ_EXPR);
6942 : 0 : if (res) return res;
6943 : : }
6944 : : }
6945 : : break;
6946 : : }
6947 : 153 : default:;
6948 : : }
6949 : 153 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
6950 : : {
6951 : 0 : {
6952 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
6953 : 0 : tree res = generic_simplify_219 (loc, type, _p0, _p1, captures, EQ_EXPR);
6954 : 0 : if (res) return res;
6955 : : }
6956 : : }
6957 : : break;
6958 : : }
6959 : : default:;
6960 : : }
6961 : : break;
6962 : : }
6963 : 25829500 : default:;
6964 : : }
6965 : 25829500 : switch (TREE_CODE (_p0))
6966 : : {
6967 : 1191 : case LT_EXPR:
6968 : 1191 : {
6969 : 1191 : tree _q20 = TREE_OPERAND (_p0, 0);
6970 : 1191 : tree _q21 = TREE_OPERAND (_p0, 1);
6971 : 1191 : switch (TREE_CODE (_p1))
6972 : : {
6973 : 22 : case GT_EXPR:
6974 : 22 : {
6975 : 22 : tree _q50 = TREE_OPERAND (_p1, 0);
6976 : 22 : tree _q51 = TREE_OPERAND (_p1, 1);
6977 : 22 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
6978 : : {
6979 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
6980 : : {
6981 : 0 : {
6982 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
6983 : 0 : tree res = generic_simplify_221 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR, EQ_EXPR);
6984 : 0 : if (res) return res;
6985 : : }
6986 : : }
6987 : : }
6988 : : break;
6989 : : }
6990 : 0 : case EQ_EXPR:
6991 : 0 : {
6992 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
6993 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
6994 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
6995 : : {
6996 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
6997 : : {
6998 : 0 : {
6999 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7000 : 0 : tree res = generic_simplify_221 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR, GT_EXPR);
7001 : 0 : if (res) return res;
7002 : : }
7003 : : }
7004 : : }
7005 : : break;
7006 : : }
7007 : 0 : case NE_EXPR:
7008 : 0 : {
7009 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
7010 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
7011 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
7012 : : {
7013 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7014 : : {
7015 : 0 : {
7016 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7017 : 0 : tree res = generic_simplify_221 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR, LE_EXPR);
7018 : 0 : if (res) return res;
7019 : : }
7020 : : }
7021 : : }
7022 : : break;
7023 : : }
7024 : : default:;
7025 : : }
7026 : : break;
7027 : : }
7028 : 1615 : case LE_EXPR:
7029 : 1615 : {
7030 : 1615 : tree _q20 = TREE_OPERAND (_p0, 0);
7031 : 1615 : tree _q21 = TREE_OPERAND (_p0, 1);
7032 : 1615 : switch (TREE_CODE (_p1))
7033 : : {
7034 : 14 : case GE_EXPR:
7035 : 14 : {
7036 : 14 : tree _q50 = TREE_OPERAND (_p1, 0);
7037 : 14 : tree _q51 = TREE_OPERAND (_p1, 1);
7038 : 14 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
7039 : : {
7040 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7041 : : {
7042 : 0 : {
7043 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7044 : 0 : tree res = generic_simplify_221 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR, EQ_EXPR);
7045 : 0 : if (res) return res;
7046 : : }
7047 : : }
7048 : : }
7049 : : break;
7050 : : }
7051 : 0 : case EQ_EXPR:
7052 : 0 : {
7053 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
7054 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
7055 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
7056 : : {
7057 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7058 : : {
7059 : 0 : {
7060 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7061 : 0 : tree res = generic_simplify_221 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR, GE_EXPR);
7062 : 0 : if (res) return res;
7063 : : }
7064 : : }
7065 : : }
7066 : : break;
7067 : : }
7068 : 8 : case NE_EXPR:
7069 : 8 : {
7070 : 8 : tree _q50 = TREE_OPERAND (_p1, 0);
7071 : 8 : tree _q51 = TREE_OPERAND (_p1, 1);
7072 : 8 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
7073 : : {
7074 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7075 : : {
7076 : 0 : {
7077 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7078 : 0 : tree res = generic_simplify_221 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR, LT_EXPR);
7079 : 0 : if (res) return res;
7080 : : }
7081 : : }
7082 : : }
7083 : : break;
7084 : : }
7085 : : default:;
7086 : : }
7087 : : break;
7088 : : }
7089 : 30661 : case GT_EXPR:
7090 : 30661 : {
7091 : 30661 : tree _q20 = TREE_OPERAND (_p0, 0);
7092 : 30661 : tree _q21 = TREE_OPERAND (_p0, 1);
7093 : 30661 : switch (TREE_CODE (_p1))
7094 : : {
7095 : 28850 : case GT_EXPR:
7096 : 28850 : {
7097 : 28850 : tree _q50 = TREE_OPERAND (_p1, 0);
7098 : 28850 : tree _q51 = TREE_OPERAND (_p1, 1);
7099 : 28850 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7100 : : {
7101 : 12 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
7102 : : {
7103 : 0 : {
7104 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
7105 : 0 : tree res = generic_simplify_221 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR, EQ_EXPR);
7106 : 0 : if (res) return res;
7107 : : }
7108 : 0 : {
7109 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7110 : 0 : tree res = generic_simplify_221 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR, EQ_EXPR);
7111 : 0 : if (res) return res;
7112 : : }
7113 : : }
7114 : : }
7115 : : break;
7116 : : }
7117 : 59 : case EQ_EXPR:
7118 : 59 : {
7119 : 59 : tree _q50 = TREE_OPERAND (_p1, 0);
7120 : 59 : tree _q51 = TREE_OPERAND (_p1, 1);
7121 : 59 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7122 : : {
7123 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
7124 : : {
7125 : 0 : {
7126 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
7127 : 0 : tree res = generic_simplify_221 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR, GT_EXPR);
7128 : 0 : if (res) return res;
7129 : : }
7130 : : }
7131 : : }
7132 : : break;
7133 : : }
7134 : 37 : case NE_EXPR:
7135 : 37 : {
7136 : 37 : tree _q50 = TREE_OPERAND (_p1, 0);
7137 : 37 : tree _q51 = TREE_OPERAND (_p1, 1);
7138 : 37 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7139 : : {
7140 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
7141 : : {
7142 : 0 : {
7143 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
7144 : 0 : tree res = generic_simplify_221 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR, LE_EXPR);
7145 : 0 : if (res) return res;
7146 : : }
7147 : : }
7148 : : }
7149 : : break;
7150 : : }
7151 : 55 : case LT_EXPR:
7152 : 55 : {
7153 : 55 : tree _q50 = TREE_OPERAND (_p1, 0);
7154 : 55 : tree _q51 = TREE_OPERAND (_p1, 1);
7155 : 55 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
7156 : : {
7157 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7158 : : {
7159 : 0 : {
7160 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7161 : 0 : tree res = generic_simplify_221 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR, EQ_EXPR);
7162 : 0 : if (res) return res;
7163 : : }
7164 : : }
7165 : : }
7166 : : break;
7167 : : }
7168 : : default:;
7169 : : }
7170 : : break;
7171 : : }
7172 : 6548 : case GE_EXPR:
7173 : 6548 : {
7174 : 6548 : tree _q20 = TREE_OPERAND (_p0, 0);
7175 : 6548 : tree _q21 = TREE_OPERAND (_p0, 1);
7176 : 6548 : switch (TREE_CODE (_p1))
7177 : : {
7178 : 34 : case GE_EXPR:
7179 : 34 : {
7180 : 34 : tree _q50 = TREE_OPERAND (_p1, 0);
7181 : 34 : tree _q51 = TREE_OPERAND (_p1, 1);
7182 : 34 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7183 : : {
7184 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
7185 : : {
7186 : 0 : {
7187 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
7188 : 0 : tree res = generic_simplify_221 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR, EQ_EXPR);
7189 : 0 : if (res) return res;
7190 : : }
7191 : 0 : {
7192 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7193 : 0 : tree res = generic_simplify_221 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR, EQ_EXPR);
7194 : 0 : if (res) return res;
7195 : : }
7196 : : }
7197 : : }
7198 : : break;
7199 : : }
7200 : 84 : case EQ_EXPR:
7201 : 84 : {
7202 : 84 : tree _q50 = TREE_OPERAND (_p1, 0);
7203 : 84 : tree _q51 = TREE_OPERAND (_p1, 1);
7204 : 84 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7205 : : {
7206 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
7207 : : {
7208 : 0 : {
7209 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
7210 : 0 : tree res = generic_simplify_221 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR, GE_EXPR);
7211 : 0 : if (res) return res;
7212 : : }
7213 : : }
7214 : : }
7215 : : break;
7216 : : }
7217 : 56 : case NE_EXPR:
7218 : 56 : {
7219 : 56 : tree _q50 = TREE_OPERAND (_p1, 0);
7220 : 56 : tree _q51 = TREE_OPERAND (_p1, 1);
7221 : 56 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7222 : : {
7223 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
7224 : : {
7225 : 0 : {
7226 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
7227 : 0 : tree res = generic_simplify_221 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR, LT_EXPR);
7228 : 0 : if (res) return res;
7229 : : }
7230 : : }
7231 : : }
7232 : : break;
7233 : : }
7234 : 10 : case LE_EXPR:
7235 : 10 : {
7236 : 10 : tree _q50 = TREE_OPERAND (_p1, 0);
7237 : 10 : tree _q51 = TREE_OPERAND (_p1, 1);
7238 : 10 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
7239 : : {
7240 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7241 : : {
7242 : 0 : {
7243 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7244 : 0 : tree res = generic_simplify_221 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR, EQ_EXPR);
7245 : 0 : if (res) return res;
7246 : : }
7247 : : }
7248 : : }
7249 : : break;
7250 : : }
7251 : : default:;
7252 : : }
7253 : : break;
7254 : : }
7255 : 31004 : case EQ_EXPR:
7256 : 31004 : {
7257 : 31004 : tree _q20 = TREE_OPERAND (_p0, 0);
7258 : 31004 : tree _q21 = TREE_OPERAND (_p0, 1);
7259 : 31004 : switch (TREE_CODE (_p1))
7260 : : {
7261 : 4 : case LT_EXPR:
7262 : 4 : {
7263 : 4 : tree _q50 = TREE_OPERAND (_p1, 0);
7264 : 4 : tree _q51 = TREE_OPERAND (_p1, 1);
7265 : 4 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
7266 : : {
7267 : 4 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7268 : : {
7269 : 0 : {
7270 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7271 : 0 : tree res = generic_simplify_221 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR, GT_EXPR);
7272 : 0 : if (res) return res;
7273 : : }
7274 : : }
7275 : : }
7276 : : break;
7277 : : }
7278 : 4 : case LE_EXPR:
7279 : 4 : {
7280 : 4 : tree _q50 = TREE_OPERAND (_p1, 0);
7281 : 4 : tree _q51 = TREE_OPERAND (_p1, 1);
7282 : 4 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
7283 : : {
7284 : 4 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7285 : : {
7286 : 0 : {
7287 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7288 : 0 : tree res = generic_simplify_221 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR, GE_EXPR);
7289 : 0 : if (res) return res;
7290 : : }
7291 : : }
7292 : : }
7293 : : break;
7294 : : }
7295 : 73 : case GT_EXPR:
7296 : 73 : {
7297 : 73 : tree _q50 = TREE_OPERAND (_p1, 0);
7298 : 73 : tree _q51 = TREE_OPERAND (_p1, 1);
7299 : 73 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7300 : : {
7301 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
7302 : : {
7303 : 0 : {
7304 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7305 : 0 : tree res = generic_simplify_221 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR, GT_EXPR);
7306 : 0 : if (res) return res;
7307 : : }
7308 : : }
7309 : : }
7310 : : break;
7311 : : }
7312 : 118 : case GE_EXPR:
7313 : 118 : {
7314 : 118 : tree _q50 = TREE_OPERAND (_p1, 0);
7315 : 118 : tree _q51 = TREE_OPERAND (_p1, 1);
7316 : 118 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7317 : : {
7318 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
7319 : : {
7320 : 0 : {
7321 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7322 : 0 : tree res = generic_simplify_221 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR, GE_EXPR);
7323 : 0 : if (res) return res;
7324 : : }
7325 : : }
7326 : : }
7327 : : break;
7328 : : }
7329 : : default:;
7330 : : }
7331 : : break;
7332 : : }
7333 : 11388 : case NE_EXPR:
7334 : 11388 : {
7335 : 11388 : tree _q20 = TREE_OPERAND (_p0, 0);
7336 : 11388 : tree _q21 = TREE_OPERAND (_p0, 1);
7337 : 11388 : switch (TREE_CODE (_p1))
7338 : : {
7339 : 8 : case LT_EXPR:
7340 : 8 : {
7341 : 8 : tree _q50 = TREE_OPERAND (_p1, 0);
7342 : 8 : tree _q51 = TREE_OPERAND (_p1, 1);
7343 : 8 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
7344 : : {
7345 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7346 : : {
7347 : 0 : {
7348 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7349 : 0 : tree res = generic_simplify_221 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR, LE_EXPR);
7350 : 0 : if (res) return res;
7351 : : }
7352 : : }
7353 : : }
7354 : : break;
7355 : : }
7356 : 0 : case LE_EXPR:
7357 : 0 : {
7358 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
7359 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
7360 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
7361 : : {
7362 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7363 : : {
7364 : 0 : {
7365 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7366 : 0 : tree res = generic_simplify_221 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR, LT_EXPR);
7367 : 0 : if (res) return res;
7368 : : }
7369 : : }
7370 : : }
7371 : : break;
7372 : : }
7373 : 21 : case GT_EXPR:
7374 : 21 : {
7375 : 21 : tree _q50 = TREE_OPERAND (_p1, 0);
7376 : 21 : tree _q51 = TREE_OPERAND (_p1, 1);
7377 : 21 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7378 : : {
7379 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
7380 : : {
7381 : 0 : {
7382 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7383 : 0 : tree res = generic_simplify_221 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR, LE_EXPR);
7384 : 0 : if (res) return res;
7385 : : }
7386 : : }
7387 : : }
7388 : : break;
7389 : : }
7390 : 2 : case GE_EXPR:
7391 : 2 : {
7392 : 2 : tree _q50 = TREE_OPERAND (_p1, 0);
7393 : 2 : tree _q51 = TREE_OPERAND (_p1, 1);
7394 : 2 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7395 : : {
7396 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
7397 : : {
7398 : 0 : {
7399 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7400 : 0 : tree res = generic_simplify_221 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR, LT_EXPR);
7401 : 0 : if (res) return res;
7402 : : }
7403 : : }
7404 : : }
7405 : : break;
7406 : : }
7407 : : default:;
7408 : : }
7409 : : break;
7410 : : }
7411 : 14151 : case MIN_EXPR:
7412 : 14151 : {
7413 : 14151 : tree _q20 = TREE_OPERAND (_p0, 0);
7414 : 14151 : tree _q21 = TREE_OPERAND (_p0, 1);
7415 : 14151 : switch (TREE_CODE (_p1))
7416 : : {
7417 : 0 : case MAX_EXPR:
7418 : 0 : {
7419 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
7420 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
7421 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
7422 : : {
7423 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7424 : : {
7425 : 0 : {
7426 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7427 : 0 : if (!HONOR_NANS (captures[0])
7428 : : )
7429 : : {
7430 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1623;
7431 : 0 : {
7432 : 0 : tree res_op0;
7433 : 0 : res_op0 = captures[0];
7434 : 0 : tree res_op1;
7435 : 0 : res_op1 = captures[1];
7436 : 0 : tree _r;
7437 : 0 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
7438 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 904, __FILE__, __LINE__, true);
7439 : 0 : return _r;
7440 : : }
7441 : 0 : next_after_fail1623:;
7442 : : }
7443 : : }
7444 : : }
7445 : : }
7446 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7447 : : {
7448 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
7449 : : {
7450 : 0 : {
7451 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
7452 : 0 : if (!HONOR_NANS (captures[0])
7453 : : )
7454 : : {
7455 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1624;
7456 : 0 : {
7457 : 0 : tree res_op0;
7458 : 0 : res_op0 = captures[0];
7459 : 0 : tree res_op1;
7460 : 0 : res_op1 = captures[1];
7461 : 0 : tree _r;
7462 : 0 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
7463 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 904, __FILE__, __LINE__, true);
7464 : 0 : return _r;
7465 : : }
7466 : 0 : next_after_fail1624:;
7467 : : }
7468 : : }
7469 : : }
7470 : : }
7471 : : break;
7472 : : }
7473 : 14151 : default:;
7474 : : }
7475 : 14151 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
7476 : : {
7477 : 0 : {
7478 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7479 : 0 : tree res = generic_simplify_222 (loc, type, _p0, _p1, captures, MIN_EXPR, EQ_EXPR, LE_EXPR);
7480 : 0 : if (res) return res;
7481 : : }
7482 : : }
7483 : 14151 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
7484 : : {
7485 : 0 : {
7486 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
7487 : 0 : tree res = generic_simplify_222 (loc, type, _p0, _p1, captures, MIN_EXPR, EQ_EXPR, LE_EXPR);
7488 : 0 : if (res) return res;
7489 : : }
7490 : : }
7491 : : break;
7492 : : }
7493 : 620 : case MAX_EXPR:
7494 : 620 : {
7495 : 620 : tree _q20 = TREE_OPERAND (_p0, 0);
7496 : 620 : tree _q21 = TREE_OPERAND (_p0, 1);
7497 : 620 : switch (TREE_CODE (_p1))
7498 : : {
7499 : 0 : case MIN_EXPR:
7500 : 0 : {
7501 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
7502 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
7503 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
7504 : : {
7505 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7506 : : {
7507 : 0 : {
7508 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7509 : 0 : if (!HONOR_NANS (captures[0])
7510 : : )
7511 : : {
7512 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1625;
7513 : 0 : {
7514 : 0 : tree res_op0;
7515 : 0 : res_op0 = captures[0];
7516 : 0 : tree res_op1;
7517 : 0 : res_op1 = captures[1];
7518 : 0 : tree _r;
7519 : 0 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
7520 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 904, __FILE__, __LINE__, true);
7521 : 0 : return _r;
7522 : : }
7523 : 0 : next_after_fail1625:;
7524 : : }
7525 : : }
7526 : : }
7527 : : }
7528 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7529 : : {
7530 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
7531 : : {
7532 : 0 : {
7533 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7534 : 0 : if (!HONOR_NANS (captures[0])
7535 : : )
7536 : : {
7537 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1626;
7538 : 0 : {
7539 : 0 : tree res_op0;
7540 : 0 : res_op0 = captures[0];
7541 : 0 : tree res_op1;
7542 : 0 : res_op1 = captures[1];
7543 : 0 : tree _r;
7544 : 0 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
7545 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 904, __FILE__, __LINE__, true);
7546 : 0 : return _r;
7547 : : }
7548 : 0 : next_after_fail1626:;
7549 : : }
7550 : : }
7551 : : }
7552 : : }
7553 : : break;
7554 : : }
7555 : 620 : default:;
7556 : : }
7557 : 620 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
7558 : : {
7559 : 0 : {
7560 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7561 : 0 : tree res = generic_simplify_222 (loc, type, _p0, _p1, captures, MAX_EXPR, EQ_EXPR, GE_EXPR);
7562 : 0 : if (res) return res;
7563 : : }
7564 : : }
7565 : 620 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
7566 : : {
7567 : 40 : {
7568 : 40 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
7569 : 40 : tree res = generic_simplify_222 (loc, type, _p0, _p1, captures, MAX_EXPR, EQ_EXPR, GE_EXPR);
7570 : 40 : if (res) return res;
7571 : : }
7572 : : }
7573 : : break;
7574 : : }
7575 : 25829461 : default:;
7576 : : }
7577 : 25829461 : if (tree_with_possible_nonzero_bits (_p0))
7578 : : {
7579 : 9814249 : if (tree_with_known_nonzero_bits (_p1))
7580 : : {
7581 : 8430851 : {
7582 : 8430851 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
7583 : 8430851 : tree res = generic_simplify_220 (loc, type, _p0, _p1, captures, EQ_EXPR);
7584 : 8430851 : if (res) return res;
7585 : : }
7586 : : }
7587 : : }
7588 : 25815588 : if (tree_with_known_nonzero_bits (_p0))
7589 : : {
7590 : 6409881 : if (tree_with_possible_nonzero_bits (_p1))
7591 : : {
7592 : 6374876 : {
7593 : 6374876 : tree captures[2] ATTRIBUTE_UNUSED = { _p1, _p0 };
7594 : 6374876 : tree res = generic_simplify_220 (loc, type, _p0, _p1, captures, EQ_EXPR);
7595 : 6374876 : if (res) return res;
7596 : : }
7597 : : }
7598 : : }
7599 : 25815272 : switch (TREE_CODE (_p1))
7600 : : {
7601 : 199 : case MIN_EXPR:
7602 : 199 : {
7603 : 199 : tree _q30 = TREE_OPERAND (_p1, 0);
7604 : 199 : tree _q31 = TREE_OPERAND (_p1, 1);
7605 : 199 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
7606 : : {
7607 : 0 : {
7608 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
7609 : 0 : tree res = generic_simplify_222 (loc, type, _p0, _p1, captures, MIN_EXPR, EQ_EXPR, LE_EXPR);
7610 : 0 : if (res) return res;
7611 : : }
7612 : : }
7613 : 199 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
7614 : : {
7615 : 0 : {
7616 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
7617 : 0 : tree res = generic_simplify_222 (loc, type, _p0, _p1, captures, MIN_EXPR, EQ_EXPR, LE_EXPR);
7618 : 0 : if (res) return res;
7619 : : }
7620 : : }
7621 : : break;
7622 : : }
7623 : 40 : case MAX_EXPR:
7624 : 40 : {
7625 : 40 : tree _q30 = TREE_OPERAND (_p1, 0);
7626 : 40 : tree _q31 = TREE_OPERAND (_p1, 1);
7627 : 40 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
7628 : : {
7629 : 0 : {
7630 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
7631 : 0 : tree res = generic_simplify_222 (loc, type, _p0, _p1, captures, MAX_EXPR, EQ_EXPR, GE_EXPR);
7632 : 0 : if (res) return res;
7633 : : }
7634 : : }
7635 : 40 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
7636 : : {
7637 : 0 : {
7638 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
7639 : 0 : tree res = generic_simplify_222 (loc, type, _p0, _p1, captures, MAX_EXPR, EQ_EXPR, GE_EXPR);
7640 : 0 : if (res) return res;
7641 : : }
7642 : : }
7643 : : break;
7644 : : }
7645 : 25815272 : default:;
7646 : : }
7647 : 25815272 : switch (TREE_CODE (_p0))
7648 : : {
7649 : 14151 : case MIN_EXPR:
7650 : 14151 : {
7651 : 14151 : tree _q20 = TREE_OPERAND (_p0, 0);
7652 : 14151 : tree _q21 = TREE_OPERAND (_p0, 1);
7653 : 14151 : switch (TREE_CODE (_q21))
7654 : : {
7655 : 84 : case INTEGER_CST:
7656 : 84 : {
7657 : 84 : switch (TREE_CODE (_p1))
7658 : : {
7659 : 0 : case INTEGER_CST:
7660 : 0 : {
7661 : 0 : {
7662 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7663 : 0 : tree res = generic_simplify_223 (loc, type, _p0, _p1, captures, EQ_EXPR);
7664 : 0 : if (res) return res;
7665 : : }
7666 : 0 : break;
7667 : : }
7668 : : default:;
7669 : : }
7670 : : break;
7671 : : }
7672 : : default:;
7673 : : }
7674 : : break;
7675 : : }
7676 : 581 : case MAX_EXPR:
7677 : 581 : {
7678 : 581 : tree _q20 = TREE_OPERAND (_p0, 0);
7679 : 581 : tree _q21 = TREE_OPERAND (_p0, 1);
7680 : 581 : switch (TREE_CODE (_q21))
7681 : : {
7682 : 381 : case INTEGER_CST:
7683 : 381 : {
7684 : 381 : switch (TREE_CODE (_p1))
7685 : : {
7686 : 42 : case INTEGER_CST:
7687 : 42 : {
7688 : 42 : {
7689 : 42 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7690 : 42 : tree res = generic_simplify_224 (loc, type, _p0, _p1, captures, EQ_EXPR);
7691 : 42 : if (res) return res;
7692 : : }
7693 : 0 : break;
7694 : : }
7695 : : default:;
7696 : : }
7697 : : break;
7698 : : }
7699 : 539 : default:;
7700 : : }
7701 : 539 : if (integer_zerop (_p1))
7702 : : {
7703 : 11 : {
7704 : 11 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7705 : 11 : tree res = generic_simplify_225 (loc, type, _p0, _p1, captures, EQ_EXPR);
7706 : 11 : if (res) return res;
7707 : : }
7708 : : }
7709 : : break;
7710 : : }
7711 : 895288 : case BIT_AND_EXPR:
7712 : 895288 : {
7713 : 895288 : tree _q20 = TREE_OPERAND (_p0, 0);
7714 : 895288 : tree _q21 = TREE_OPERAND (_p0, 1);
7715 : 895288 : switch (TREE_CODE (_q20))
7716 : : {
7717 : 759 : case LSHIFT_EXPR:
7718 : 759 : {
7719 : 759 : tree _q30 = TREE_OPERAND (_q20, 0);
7720 : 759 : tree _q31 = TREE_OPERAND (_q20, 1);
7721 : 759 : if (integer_pow2p (_q30))
7722 : : {
7723 : 751 : if (integer_pow2p (_q21))
7724 : : {
7725 : 1 : if (integer_zerop (_p1))
7726 : : {
7727 : 1 : {
7728 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q21 };
7729 : 1 : tree res = generic_simplify_226 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
7730 : 1 : if (res) return res;
7731 : : }
7732 : : }
7733 : : }
7734 : : }
7735 : 758 : switch (TREE_CODE (_q31))
7736 : : {
7737 : 0 : case INTEGER_CST:
7738 : 0 : {
7739 : 0 : switch (TREE_CODE (_q21))
7740 : : {
7741 : 0 : case INTEGER_CST:
7742 : 0 : {
7743 : 0 : switch (TREE_CODE (_p1))
7744 : : {
7745 : 0 : case INTEGER_CST:
7746 : 0 : {
7747 : 0 : {
7748 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
7749 : 0 : tree res = generic_simplify_227 (loc, type, _p0, _p1, captures, EQ_EXPR);
7750 : 0 : if (res) return res;
7751 : : }
7752 : 0 : break;
7753 : : }
7754 : : default:;
7755 : : }
7756 : : break;
7757 : : }
7758 : : default:;
7759 : : }
7760 : : break;
7761 : : }
7762 : 758 : default:;
7763 : : }
7764 : 758 : if (integer_onep (_q30))
7765 : : {
7766 : 750 : if (integer_pow2p (_q21))
7767 : : {
7768 : 0 : if (integer_zerop (_p1))
7769 : : {
7770 : 0 : {
7771 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q31, _q21 };
7772 : 0 : tree res = generic_simplify_228 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
7773 : 0 : if (res) return res;
7774 : : }
7775 : : }
7776 : : }
7777 : : }
7778 : : break;
7779 : : }
7780 : 2787 : case RSHIFT_EXPR:
7781 : 2787 : {
7782 : 2787 : tree _q30 = TREE_OPERAND (_q20, 0);
7783 : 2787 : tree _q31 = TREE_OPERAND (_q20, 1);
7784 : 2787 : if (integer_pow2p (_q30))
7785 : : {
7786 : 1 : if (integer_pow2p (_q21))
7787 : : {
7788 : 1 : if (integer_zerop (_p1))
7789 : : {
7790 : 1 : {
7791 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q21 };
7792 : 1 : tree res = generic_simplify_229 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
7793 : 1 : if (res) return res;
7794 : : }
7795 : : }
7796 : : }
7797 : : }
7798 : 2786 : switch (TREE_CODE (_q31))
7799 : : {
7800 : 518 : case INTEGER_CST:
7801 : 518 : {
7802 : 518 : switch (TREE_CODE (_q21))
7803 : : {
7804 : 518 : case INTEGER_CST:
7805 : 518 : {
7806 : 518 : switch (TREE_CODE (_p1))
7807 : : {
7808 : 518 : case INTEGER_CST:
7809 : 518 : {
7810 : 518 : {
7811 : 518 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
7812 : 518 : tree res = generic_simplify_230 (loc, type, _p0, _p1, captures, EQ_EXPR);
7813 : 518 : if (res) return res;
7814 : : }
7815 : 0 : break;
7816 : : }
7817 : : default:;
7818 : : }
7819 : : break;
7820 : : }
7821 : : default:;
7822 : : }
7823 : : break;
7824 : : }
7825 : : default:;
7826 : : }
7827 : : break;
7828 : : }
7829 : 894768 : default:;
7830 : : }
7831 : 894768 : {
7832 : 894768 : tree _q20_pops[1];
7833 : 894768 : if (tree_nop_convert (_q20, _q20_pops))
7834 : : {
7835 : 26388 : tree _q30 = _q20_pops[0];
7836 : 26388 : switch (TREE_CODE (_q30))
7837 : : {
7838 : 0 : case LSHIFT_EXPR:
7839 : 0 : {
7840 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
7841 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
7842 : 0 : if (integer_onep (_q40))
7843 : : {
7844 : 0 : if (integer_pow2p (_q21))
7845 : : {
7846 : 0 : if (integer_zerop (_p1))
7847 : : {
7848 : 0 : {
7849 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q41, _q21 };
7850 : 0 : tree res = generic_simplify_228 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
7851 : 0 : if (res) return res;
7852 : : }
7853 : : }
7854 : : }
7855 : : }
7856 : : break;
7857 : : }
7858 : : default:;
7859 : : }
7860 : : }
7861 : : }
7862 : 894768 : break;
7863 : : }
7864 : 1436 : case LSHIFT_EXPR:
7865 : 1436 : {
7866 : 1436 : tree _q20 = TREE_OPERAND (_p0, 0);
7867 : 1436 : tree _q21 = TREE_OPERAND (_p0, 1);
7868 : 1436 : switch (TREE_CODE (_q20))
7869 : : {
7870 : 326 : case INTEGER_CST:
7871 : 326 : {
7872 : 326 : switch (TREE_CODE (_p1))
7873 : : {
7874 : 20 : case INTEGER_CST:
7875 : 20 : {
7876 : 20 : {
7877 : 20 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7878 : 20 : tree res = generic_simplify_231 (loc, type, _p0, _p1, captures, EQ_EXPR);
7879 : 20 : if (res) return res;
7880 : : }
7881 : 3 : break;
7882 : : }
7883 : : default:;
7884 : : }
7885 : : break;
7886 : : }
7887 : : default:;
7888 : : }
7889 : : break;
7890 : : }
7891 : 0 : case LROTATE_EXPR:
7892 : 0 : {
7893 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
7894 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
7895 : 0 : switch (TREE_CODE (_p1))
7896 : : {
7897 : 0 : case LROTATE_EXPR:
7898 : 0 : {
7899 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
7900 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
7901 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7902 : : {
7903 : 0 : {
7904 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
7905 : 0 : tree res = generic_simplify_232 (loc, type, _p0, _p1, captures, LROTATE_EXPR, RROTATE_EXPR, EQ_EXPR);
7906 : 0 : if (res) return res;
7907 : : }
7908 : : }
7909 : : break;
7910 : : }
7911 : 0 : default:;
7912 : : }
7913 : 0 : switch (TREE_CODE (_q21))
7914 : : {
7915 : 0 : case INTEGER_CST:
7916 : 0 : {
7917 : 0 : switch (TREE_CODE (_p1))
7918 : : {
7919 : 0 : case INTEGER_CST:
7920 : 0 : {
7921 : 0 : {
7922 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7923 : 0 : tree res = generic_simplify_233 (loc, type, _p0, _p1, captures, LROTATE_EXPR, RROTATE_EXPR, EQ_EXPR);
7924 : 0 : if (res) return res;
7925 : : }
7926 : 0 : break;
7927 : : }
7928 : : default:;
7929 : : }
7930 : : break;
7931 : : }
7932 : 0 : default:;
7933 : : }
7934 : 0 : switch (TREE_CODE (_p1))
7935 : : {
7936 : 0 : case INTEGER_CST:
7937 : 0 : {
7938 : 0 : {
7939 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7940 : 0 : tree res = generic_simplify_234 (loc, type, _p0, _p1, captures, LROTATE_EXPR, RROTATE_EXPR, EQ_EXPR);
7941 : 0 : if (res) return res;
7942 : : }
7943 : 0 : break;
7944 : : }
7945 : : default:;
7946 : : }
7947 : : break;
7948 : : }
7949 : 6 : case RROTATE_EXPR:
7950 : 6 : {
7951 : 6 : tree _q20 = TREE_OPERAND (_p0, 0);
7952 : 6 : tree _q21 = TREE_OPERAND (_p0, 1);
7953 : 6 : switch (TREE_CODE (_p1))
7954 : : {
7955 : 0 : case RROTATE_EXPR:
7956 : 0 : {
7957 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
7958 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
7959 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7960 : : {
7961 : 0 : {
7962 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
7963 : 0 : tree res = generic_simplify_232 (loc, type, _p0, _p1, captures, RROTATE_EXPR, LROTATE_EXPR, EQ_EXPR);
7964 : 0 : if (res) return res;
7965 : : }
7966 : : }
7967 : : break;
7968 : : }
7969 : 6 : default:;
7970 : : }
7971 : 6 : switch (TREE_CODE (_q21))
7972 : : {
7973 : 6 : case INTEGER_CST:
7974 : 6 : {
7975 : 6 : switch (TREE_CODE (_p1))
7976 : : {
7977 : 0 : case INTEGER_CST:
7978 : 0 : {
7979 : 0 : {
7980 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7981 : 0 : tree res = generic_simplify_233 (loc, type, _p0, _p1, captures, RROTATE_EXPR, LROTATE_EXPR, EQ_EXPR);
7982 : 0 : if (res) return res;
7983 : : }
7984 : 0 : break;
7985 : : }
7986 : : default:;
7987 : : }
7988 : : break;
7989 : : }
7990 : 6 : default:;
7991 : : }
7992 : 6 : switch (TREE_CODE (_p1))
7993 : : {
7994 : 0 : case INTEGER_CST:
7995 : 0 : {
7996 : 0 : {
7997 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7998 : 0 : tree res = generic_simplify_234 (loc, type, _p0, _p1, captures, RROTATE_EXPR, LROTATE_EXPR, EQ_EXPR);
7999 : 0 : if (res) return res;
8000 : : }
8001 : 0 : break;
8002 : : }
8003 : : default:;
8004 : : }
8005 : : break;
8006 : : }
8007 : 64511 : case MULT_EXPR:
8008 : 64511 : {
8009 : 64511 : tree _q20 = TREE_OPERAND (_p0, 0);
8010 : 64511 : tree _q21 = TREE_OPERAND (_p0, 1);
8011 : 64511 : switch (TREE_CODE (_q20))
8012 : : {
8013 : 66 : case TRUNC_DIV_EXPR:
8014 : 66 : {
8015 : 66 : tree _q30 = TREE_OPERAND (_q20, 0);
8016 : 66 : tree _q31 = TREE_OPERAND (_q20, 1);
8017 : 66 : if ((_q21 == _q31 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q31, 0) && types_match (_q21, _q31)))
8018 : : {
8019 : 47 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
8020 : : {
8021 : 47 : {
8022 : 47 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
8023 : 47 : tree res = generic_simplify_235 (loc, type, _p0, _p1, captures);
8024 : 47 : if (res) return res;
8025 : : }
8026 : : }
8027 : : }
8028 : : break;
8029 : : }
8030 : 64464 : default:;
8031 : : }
8032 : 64464 : switch (TREE_CODE (_q21))
8033 : : {
8034 : 0 : case TRUNC_DIV_EXPR:
8035 : 0 : {
8036 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
8037 : 0 : tree _q41 = TREE_OPERAND (_q21, 1);
8038 : 0 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _q20, 0) && types_match (_q41, _q20)))
8039 : : {
8040 : 0 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
8041 : : {
8042 : 0 : {
8043 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q40, _q20 };
8044 : 0 : tree res = generic_simplify_235 (loc, type, _p0, _p1, captures);
8045 : 0 : if (res) return res;
8046 : : }
8047 : : }
8048 : : }
8049 : : break;
8050 : : }
8051 : : default:;
8052 : : }
8053 : : break;
8054 : : }
8055 : 25814646 : default:;
8056 : : }
8057 : 25814646 : switch (TREE_CODE (_p1))
8058 : : {
8059 : 13064 : case MULT_EXPR:
8060 : 13064 : {
8061 : 13064 : tree _q30 = TREE_OPERAND (_p1, 0);
8062 : 13064 : tree _q31 = TREE_OPERAND (_p1, 1);
8063 : 13064 : switch (TREE_CODE (_q30))
8064 : : {
8065 : 0 : case TRUNC_DIV_EXPR:
8066 : 0 : {
8067 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
8068 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
8069 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
8070 : : {
8071 : 0 : if ((_q31 == _q41 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _q41, 0) && types_match (_q31, _q41)))
8072 : : {
8073 : 0 : {
8074 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _p0, _q41 };
8075 : 0 : tree res = generic_simplify_235 (loc, type, _p0, _p1, captures);
8076 : 0 : if (res) return res;
8077 : : }
8078 : : }
8079 : : }
8080 : : break;
8081 : : }
8082 : 13064 : default:;
8083 : : }
8084 : 13064 : switch (TREE_CODE (_q31))
8085 : : {
8086 : 0 : case TRUNC_DIV_EXPR:
8087 : 0 : {
8088 : 0 : tree _q50 = TREE_OPERAND (_q31, 0);
8089 : 0 : tree _q51 = TREE_OPERAND (_q31, 1);
8090 : 0 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
8091 : : {
8092 : 0 : if ((_q51 == _q30 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q30, 0) && types_match (_q51, _q30)))
8093 : : {
8094 : 0 : {
8095 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _p0, _q30 };
8096 : 0 : tree res = generic_simplify_235 (loc, type, _p0, _p1, captures);
8097 : 0 : if (res) return res;
8098 : : }
8099 : : }
8100 : : }
8101 : : break;
8102 : : }
8103 : : default:;
8104 : : }
8105 : : break;
8106 : : }
8107 : 25814646 : default:;
8108 : : }
8109 : 25814646 : switch (TREE_CODE (_p0))
8110 : : {
8111 : 130 : case VEC_COND_EXPR:
8112 : 130 : {
8113 : 130 : tree _q20 = TREE_OPERAND (_p0, 0);
8114 : 130 : tree _q21 = TREE_OPERAND (_p0, 1);
8115 : 130 : tree _q22 = TREE_OPERAND (_p0, 2);
8116 : 130 : switch (TREE_CODE (_p1))
8117 : : {
8118 : 27 : case VEC_COND_EXPR:
8119 : 27 : {
8120 : 27 : tree _q60 = TREE_OPERAND (_p1, 0);
8121 : 27 : tree _q61 = TREE_OPERAND (_p1, 1);
8122 : 27 : tree _q62 = TREE_OPERAND (_p1, 2);
8123 : 27 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
8124 : : {
8125 : 0 : {
8126 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
8127 : 0 : if (VECTOR_TYPE_P (type)
8128 : 0 : && (TREE_CODE_CLASS (EQ_EXPR) != tcc_comparison
8129 : 0 : || types_match (type, TREE_TYPE (captures[2]))
8130 : 0 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
8131 : : || (optimize_vectors_before_lowering_p ()
8132 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
8133 : : )
8134 : : {
8135 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1627;
8136 : 0 : {
8137 : 0 : tree res_op0;
8138 : 0 : res_op0 = captures[1];
8139 : 0 : tree res_op1;
8140 : 0 : {
8141 : 0 : tree _o1[2], _r1;
8142 : 0 : _o1[0] = captures[2];
8143 : 0 : _o1[1] = captures[5];
8144 : 0 : _r1 = fold_build2_loc (loc, EQ_EXPR, type, _o1[0], _o1[1]);
8145 : 0 : if (EXPR_P (_r1))
8146 : 0 : goto next_after_fail1627;
8147 : 0 : res_op1 = _r1;
8148 : : }
8149 : 0 : tree res_op2;
8150 : 0 : {
8151 : 0 : tree _o1[2], _r1;
8152 : 0 : _o1[0] = captures[3];
8153 : 0 : _o1[1] = captures[6];
8154 : 0 : _r1 = fold_build2_loc (loc, EQ_EXPR, type, _o1[0], _o1[1]);
8155 : 0 : if (EXPR_P (_r1))
8156 : 0 : goto next_after_fail1627;
8157 : 0 : res_op2 = _r1;
8158 : : }
8159 : 0 : tree _r;
8160 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
8161 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 908, __FILE__, __LINE__, true);
8162 : 0 : return _r;
8163 : : }
8164 : 0 : next_after_fail1627:;
8165 : : }
8166 : : }
8167 : : }
8168 : : break;
8169 : : }
8170 : 130 : default:;
8171 : : }
8172 : 130 : {
8173 : 130 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
8174 : 130 : if (VECTOR_TYPE_P (type)
8175 : 130 : && (TREE_CODE_CLASS (EQ_EXPR) != tcc_comparison
8176 : 130 : || types_match (type, TREE_TYPE (captures[2]))
8177 : 130 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
8178 : : || (optimize_vectors_before_lowering_p ()
8179 : 79 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
8180 : : )
8181 : : {
8182 : 130 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1628;
8183 : 130 : {
8184 : 130 : if (! tree_invariant_p (captures[4])) goto next_after_fail1628;
8185 : 22 : tree res_op0;
8186 : 22 : res_op0 = captures[1];
8187 : 22 : tree res_op1;
8188 : 22 : {
8189 : 22 : tree _o1[2], _r1;
8190 : 22 : _o1[0] = captures[2];
8191 : 22 : _o1[1] = unshare_expr (captures[4]);
8192 : 22 : _r1 = fold_build2_loc (loc, EQ_EXPR, type, _o1[0], _o1[1]);
8193 : 22 : if (EXPR_P (_r1))
8194 : 0 : goto next_after_fail1628;
8195 : 22 : res_op1 = _r1;
8196 : : }
8197 : 22 : tree res_op2;
8198 : 22 : {
8199 : 22 : tree _o1[2], _r1;
8200 : 22 : _o1[0] = captures[3];
8201 : 22 : _o1[1] = captures[4];
8202 : 22 : _r1 = fold_build2_loc (loc, EQ_EXPR, type, _o1[0], _o1[1]);
8203 : 22 : if (EXPR_P (_r1))
8204 : 1 : goto next_after_fail1628;
8205 : 21 : res_op2 = _r1;
8206 : : }
8207 : 21 : tree _r;
8208 : 21 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
8209 : 21 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 909, __FILE__, __LINE__, true);
8210 : 21 : return _r;
8211 : : }
8212 : 109 : next_after_fail1628:;
8213 : : }
8214 : : }
8215 : 109 : break;
8216 : : }
8217 : 1800522 : case CALL_EXPR:
8218 : 1800522 : switch (get_call_combined_fn (_p0))
8219 : : {
8220 : 0 : case CFN_BUILT_IN_BSWAP128:
8221 : 0 : if (call_expr_nargs (_p0) == 1)
8222 : : {
8223 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8224 : 0 : switch (TREE_CODE (_p1))
8225 : : {
8226 : 0 : case INTEGER_CST:
8227 : 0 : {
8228 : 0 : {
8229 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
8230 : 0 : tree res = generic_simplify_237 (loc, type, _p0, _p1, captures, EQ_EXPR, CFN_BUILT_IN_BSWAP128);
8231 : 0 : if (res) return res;
8232 : : }
8233 : 0 : break;
8234 : : }
8235 : 0 : case CALL_EXPR:
8236 : 0 : switch (get_call_combined_fn (_p1))
8237 : : {
8238 : 0 : case CFN_BUILT_IN_BSWAP128:
8239 : 0 : if (call_expr_nargs (_p1) == 1)
8240 : : {
8241 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
8242 : 0 : {
8243 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
8244 : 0 : tree res = generic_simplify_236 (loc, type, _p0, _p1, captures, EQ_EXPR, CFN_BUILT_IN_BSWAP128);
8245 : 0 : if (res) return res;
8246 : : }
8247 : : }
8248 : : break;
8249 : : default:;
8250 : : }
8251 : : break;
8252 : : default:;
8253 : : }
8254 : : }
8255 : : break;
8256 : 2 : case CFN_BUILT_IN_BSWAP16:
8257 : 2 : if (call_expr_nargs (_p0) == 1)
8258 : : {
8259 : 2 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8260 : 2 : switch (TREE_CODE (_p1))
8261 : : {
8262 : 1 : case INTEGER_CST:
8263 : 1 : {
8264 : 1 : {
8265 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
8266 : 1 : tree res = generic_simplify_237 (loc, type, _p0, _p1, captures, EQ_EXPR, CFN_BUILT_IN_BSWAP16);
8267 : 1 : if (res) return res;
8268 : : }
8269 : 1 : break;
8270 : : }
8271 : 1 : case CALL_EXPR:
8272 : 1 : switch (get_call_combined_fn (_p1))
8273 : : {
8274 : 1 : case CFN_BUILT_IN_BSWAP16:
8275 : 1 : if (call_expr_nargs (_p1) == 1)
8276 : : {
8277 : 1 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
8278 : 1 : {
8279 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
8280 : 1 : tree res = generic_simplify_236 (loc, type, _p0, _p1, captures, EQ_EXPR, CFN_BUILT_IN_BSWAP16);
8281 : 1 : if (res) return res;
8282 : : }
8283 : : }
8284 : : break;
8285 : : default:;
8286 : : }
8287 : : break;
8288 : : default:;
8289 : : }
8290 : : }
8291 : : break;
8292 : 6 : case CFN_BUILT_IN_BSWAP32:
8293 : 6 : if (call_expr_nargs (_p0) == 1)
8294 : : {
8295 : 6 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8296 : 6 : switch (TREE_CODE (_p1))
8297 : : {
8298 : 3 : case INTEGER_CST:
8299 : 3 : {
8300 : 3 : {
8301 : 3 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
8302 : 3 : tree res = generic_simplify_237 (loc, type, _p0, _p1, captures, EQ_EXPR, CFN_BUILT_IN_BSWAP32);
8303 : 3 : if (res) return res;
8304 : : }
8305 : 3 : break;
8306 : : }
8307 : 3 : case CALL_EXPR:
8308 : 3 : switch (get_call_combined_fn (_p1))
8309 : : {
8310 : 3 : case CFN_BUILT_IN_BSWAP32:
8311 : 3 : if (call_expr_nargs (_p1) == 1)
8312 : : {
8313 : 3 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
8314 : 3 : {
8315 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
8316 : 3 : tree res = generic_simplify_236 (loc, type, _p0, _p1, captures, EQ_EXPR, CFN_BUILT_IN_BSWAP32);
8317 : 3 : if (res) return res;
8318 : : }
8319 : : }
8320 : : break;
8321 : : default:;
8322 : : }
8323 : : break;
8324 : : default:;
8325 : : }
8326 : : }
8327 : : break;
8328 : 6 : case CFN_BUILT_IN_BSWAP64:
8329 : 6 : if (call_expr_nargs (_p0) == 1)
8330 : : {
8331 : 6 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8332 : 6 : switch (TREE_CODE (_p1))
8333 : : {
8334 : 3 : case INTEGER_CST:
8335 : 3 : {
8336 : 3 : {
8337 : 3 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
8338 : 3 : tree res = generic_simplify_237 (loc, type, _p0, _p1, captures, EQ_EXPR, CFN_BUILT_IN_BSWAP64);
8339 : 3 : if (res) return res;
8340 : : }
8341 : 3 : break;
8342 : : }
8343 : 3 : case CALL_EXPR:
8344 : 3 : switch (get_call_combined_fn (_p1))
8345 : : {
8346 : 3 : case CFN_BUILT_IN_BSWAP64:
8347 : 3 : if (call_expr_nargs (_p1) == 1)
8348 : : {
8349 : 3 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
8350 : 3 : {
8351 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
8352 : 3 : tree res = generic_simplify_236 (loc, type, _p0, _p1, captures, EQ_EXPR, CFN_BUILT_IN_BSWAP64);
8353 : 3 : if (res) return res;
8354 : : }
8355 : : }
8356 : : break;
8357 : : default:;
8358 : : }
8359 : : break;
8360 : : default:;
8361 : : }
8362 : : }
8363 : : break;
8364 : : default:;
8365 : : }
8366 : : break;
8367 : 25814618 : default:;
8368 : : }
8369 : 25814618 : switch (TREE_CODE (_p1))
8370 : : {
8371 : 29 : case VEC_COND_EXPR:
8372 : 29 : {
8373 : 29 : tree _q30 = TREE_OPERAND (_p1, 0);
8374 : 29 : tree _q31 = TREE_OPERAND (_p1, 1);
8375 : 29 : tree _q32 = TREE_OPERAND (_p1, 2);
8376 : 29 : {
8377 : 29 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
8378 : 29 : if (VECTOR_TYPE_P (type)
8379 : 29 : && (TREE_CODE_CLASS (EQ_EXPR) != tcc_comparison
8380 : 29 : || types_match (type, TREE_TYPE (captures[3]))
8381 : 29 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
8382 : : || (optimize_vectors_before_lowering_p ()
8383 : 21 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
8384 : : )
8385 : : {
8386 : 29 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1629;
8387 : 29 : {
8388 : 29 : if (! tree_invariant_p (captures[0])) goto next_after_fail1629;
8389 : 0 : tree res_op0;
8390 : 0 : res_op0 = captures[2];
8391 : 0 : tree res_op1;
8392 : 0 : {
8393 : 0 : tree _o1[2], _r1;
8394 : 0 : _o1[0] = unshare_expr (captures[0]);
8395 : 0 : _o1[1] = captures[3];
8396 : 0 : _r1 = fold_build2_loc (loc, EQ_EXPR, type, _o1[0], _o1[1]);
8397 : 0 : if (EXPR_P (_r1))
8398 : 0 : goto next_after_fail1629;
8399 : 0 : res_op1 = _r1;
8400 : : }
8401 : 0 : tree res_op2;
8402 : 0 : {
8403 : 0 : tree _o1[2], _r1;
8404 : 0 : _o1[0] = captures[0];
8405 : 0 : _o1[1] = captures[4];
8406 : 0 : _r1 = fold_build2_loc (loc, EQ_EXPR, type, _o1[0], _o1[1]);
8407 : 0 : if (EXPR_P (_r1))
8408 : 0 : goto next_after_fail1629;
8409 : 0 : res_op2 = _r1;
8410 : : }
8411 : 0 : tree _r;
8412 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
8413 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 910, __FILE__, __LINE__, true);
8414 : 0 : return _r;
8415 : : }
8416 : 29 : next_after_fail1629:;
8417 : : }
8418 : : }
8419 : 29 : break;
8420 : : }
8421 : 25814618 : default:;
8422 : : }
8423 : 25814618 : switch (TREE_CODE (_p0))
8424 : : {
8425 : 40454 : case COND_EXPR:
8426 : 40454 : {
8427 : 40454 : tree _q20 = TREE_OPERAND (_p0, 0);
8428 : 40454 : tree _q21 = TREE_OPERAND (_p0, 1);
8429 : 40454 : tree _q22 = TREE_OPERAND (_p0, 2);
8430 : 40454 : switch (TREE_CODE (_p1))
8431 : : {
8432 : 37 : case COND_EXPR:
8433 : 37 : {
8434 : 37 : tree _q60 = TREE_OPERAND (_p1, 0);
8435 : 37 : tree _q61 = TREE_OPERAND (_p1, 1);
8436 : 37 : tree _q62 = TREE_OPERAND (_p1, 2);
8437 : 37 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
8438 : : {
8439 : 3 : if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
8440 : : {
8441 : 3 : {
8442 : 3 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
8443 : 3 : const enum tree_code eqne = EQ_EXPR;
8444 : 3 : if (!HONOR_NANS (captures[1])
8445 : 3 : && types_match (TREE_TYPE (captures[0]), TREE_TYPE (captures[3]))
8446 : 6 : && types_match (type, TREE_TYPE (captures[0]))
8447 : : )
8448 : : {
8449 : 3 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1630;
8450 : 3 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1630;
8451 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1630;
8452 : 3 : {
8453 : 3 : tree res_op0;
8454 : 3 : {
8455 : 3 : tree _o1[2], _r1;
8456 : 3 : {
8457 : 3 : tree _o2[2], _r2;
8458 : 3 : _o2[0] = captures[0];
8459 : 3 : _o2[1] = captures[3];
8460 : 3 : _r2 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
8461 : 3 : _o1[0] = _r2;
8462 : : }
8463 : 3 : {
8464 : 3 : tree _o2[2], _r2;
8465 : 3 : _o2[0] = captures[1];
8466 : 3 : _o2[1] = captures[2];
8467 : 3 : _r2 = fold_build2_loc (loc, NE_EXPR, type, _o2[0], _o2[1]);
8468 : 3 : _o1[1] = _r2;
8469 : : }
8470 : 3 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
8471 : 3 : res_op0 = _r1;
8472 : : }
8473 : 3 : tree res_op1;
8474 : 3 : res_op1 = constant_boolean_node (eqne == NE_EXPR, type);
8475 : 3 : tree res_op2;
8476 : 3 : res_op2 = constant_boolean_node (eqne != NE_EXPR, type);
8477 : 3 : tree _r;
8478 : 3 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
8479 : 3 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 996, __FILE__, __LINE__, true);
8480 : 3 : return _r;
8481 : : }
8482 : 0 : next_after_fail1630:;
8483 : : }
8484 : : }
8485 : : }
8486 : : }
8487 : 34 : if ((_q61 == _q22 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q22, 0) && types_match (_q61, _q22)))
8488 : : {
8489 : 7 : if ((_q62 == _q21 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q21, 0) && types_match (_q62, _q21)))
8490 : : {
8491 : 7 : {
8492 : 7 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
8493 : 7 : const enum tree_code eqne = EQ_EXPR;
8494 : 7 : if (!HONOR_NANS (captures[1])
8495 : 0 : && types_match (TREE_TYPE (captures[0]), TREE_TYPE (captures[3]))
8496 : 7 : && types_match (type, TREE_TYPE (captures[0]))
8497 : : )
8498 : : {
8499 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1631;
8500 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1631;
8501 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1631;
8502 : 0 : {
8503 : 0 : tree res_op0;
8504 : 0 : {
8505 : 0 : tree _o1[2], _r1;
8506 : 0 : {
8507 : 0 : tree _o2[2], _r2;
8508 : 0 : _o2[0] = captures[0];
8509 : 0 : _o2[1] = captures[3];
8510 : 0 : _r2 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
8511 : 0 : _o1[0] = _r2;
8512 : : }
8513 : 0 : {
8514 : 0 : tree _o2[2], _r2;
8515 : 0 : _o2[0] = captures[1];
8516 : 0 : _o2[1] = captures[2];
8517 : 0 : _r2 = fold_build2_loc (loc, EQ_EXPR, type, _o2[0], _o2[1]);
8518 : 0 : _o1[1] = _r2;
8519 : : }
8520 : 0 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
8521 : 0 : res_op0 = _r1;
8522 : : }
8523 : 0 : tree res_op1;
8524 : 0 : res_op1 = constant_boolean_node (eqne != NE_EXPR, type);
8525 : 0 : tree res_op2;
8526 : 0 : res_op2 = constant_boolean_node (eqne == NE_EXPR, type);
8527 : 0 : tree _r;
8528 : 0 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
8529 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 997, __FILE__, __LINE__, true);
8530 : 0 : return _r;
8531 : : }
8532 : 7 : next_after_fail1631:;
8533 : : }
8534 : : }
8535 : : }
8536 : : }
8537 : : break;
8538 : : }
8539 : : default:;
8540 : : }
8541 : : break;
8542 : : }
8543 : 109 : case VEC_COND_EXPR:
8544 : 109 : {
8545 : 109 : tree _q20 = TREE_OPERAND (_p0, 0);
8546 : 109 : tree _q21 = TREE_OPERAND (_p0, 1);
8547 : 109 : tree _q22 = TREE_OPERAND (_p0, 2);
8548 : 109 : switch (TREE_CODE (_p1))
8549 : : {
8550 : 27 : case VEC_COND_EXPR:
8551 : 27 : {
8552 : 27 : tree _q60 = TREE_OPERAND (_p1, 0);
8553 : 27 : tree _q61 = TREE_OPERAND (_p1, 1);
8554 : 27 : tree _q62 = TREE_OPERAND (_p1, 2);
8555 : 27 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
8556 : : {
8557 : 6 : if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
8558 : : {
8559 : 6 : {
8560 : 6 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
8561 : 6 : const enum tree_code eqne = EQ_EXPR;
8562 : 6 : if (!HONOR_NANS (captures[1])
8563 : 6 : && types_match (TREE_TYPE (captures[0]), TREE_TYPE (captures[3]))
8564 : 12 : && types_match (type, TREE_TYPE (captures[0]))
8565 : : )
8566 : : {
8567 : 6 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1632;
8568 : 6 : {
8569 : 6 : tree res_op0;
8570 : 6 : {
8571 : 6 : tree _o1[2], _r1;
8572 : 6 : {
8573 : 6 : tree _o2[2], _r2;
8574 : 6 : _o2[0] = captures[0];
8575 : 6 : _o2[1] = captures[3];
8576 : 6 : _r2 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
8577 : 6 : _o1[0] = _r2;
8578 : : }
8579 : 6 : {
8580 : 6 : tree _o2[2], _r2;
8581 : 6 : _o2[0] = captures[1];
8582 : 6 : _o2[1] = captures[2];
8583 : 6 : _r2 = fold_build2_loc (loc, NE_EXPR, type, _o2[0], _o2[1]);
8584 : 6 : _o1[1] = _r2;
8585 : : }
8586 : 6 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
8587 : 6 : res_op0 = _r1;
8588 : : }
8589 : 6 : tree res_op1;
8590 : 6 : res_op1 = constant_boolean_node (eqne == NE_EXPR, type);
8591 : 6 : tree res_op2;
8592 : 6 : res_op2 = constant_boolean_node (eqne != NE_EXPR, type);
8593 : 6 : tree _r;
8594 : 6 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
8595 : 6 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 996, __FILE__, __LINE__, true);
8596 : 6 : return _r;
8597 : : }
8598 : 0 : next_after_fail1632:;
8599 : : }
8600 : : }
8601 : : }
8602 : : }
8603 : 21 : if ((_q61 == _q22 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q22, 0) && types_match (_q61, _q22)))
8604 : : {
8605 : 21 : if ((_q62 == _q21 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q21, 0) && types_match (_q62, _q21)))
8606 : : {
8607 : 21 : {
8608 : 21 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
8609 : 21 : const enum tree_code eqne = EQ_EXPR;
8610 : 21 : if (!HONOR_NANS (captures[1])
8611 : 0 : && types_match (TREE_TYPE (captures[0]), TREE_TYPE (captures[3]))
8612 : 21 : && types_match (type, TREE_TYPE (captures[0]))
8613 : : )
8614 : : {
8615 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1633;
8616 : 0 : {
8617 : 0 : tree res_op0;
8618 : 0 : {
8619 : 0 : tree _o1[2], _r1;
8620 : 0 : {
8621 : 0 : tree _o2[2], _r2;
8622 : 0 : _o2[0] = captures[0];
8623 : 0 : _o2[1] = captures[3];
8624 : 0 : _r2 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
8625 : 0 : _o1[0] = _r2;
8626 : : }
8627 : 0 : {
8628 : 0 : tree _o2[2], _r2;
8629 : 0 : _o2[0] = captures[1];
8630 : 0 : _o2[1] = captures[2];
8631 : 0 : _r2 = fold_build2_loc (loc, EQ_EXPR, type, _o2[0], _o2[1]);
8632 : 0 : _o1[1] = _r2;
8633 : : }
8634 : 0 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
8635 : 0 : res_op0 = _r1;
8636 : : }
8637 : 0 : tree res_op1;
8638 : 0 : res_op1 = constant_boolean_node (eqne != NE_EXPR, type);
8639 : 0 : tree res_op2;
8640 : 0 : res_op2 = constant_boolean_node (eqne == NE_EXPR, type);
8641 : 0 : tree _r;
8642 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
8643 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 997, __FILE__, __LINE__, true);
8644 : 0 : return _r;
8645 : : }
8646 : 0 : next_after_fail1633:;
8647 : : }
8648 : : }
8649 : : }
8650 : : }
8651 : : break;
8652 : : }
8653 : : default:;
8654 : : }
8655 : : break;
8656 : : }
8657 : 1191 : case LT_EXPR:
8658 : 1191 : {
8659 : 1191 : tree _q20 = TREE_OPERAND (_p0, 0);
8660 : 1191 : tree _q21 = TREE_OPERAND (_p0, 1);
8661 : 1191 : if (integer_truep (_p1))
8662 : : {
8663 : 5 : {
8664 : 5 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8665 : 5 : tree res = generic_simplify_238 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR, UNGE_EXPR);
8666 : 5 : if (res) return res;
8667 : : }
8668 : : }
8669 : 1191 : if (integer_zerop (_p1))
8670 : : {
8671 : 424 : {
8672 : 424 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8673 : 424 : tree res = generic_simplify_239 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR, UNGE_EXPR);
8674 : 424 : if (res) return res;
8675 : : }
8676 : : }
8677 : : break;
8678 : : }
8679 : 1615 : case LE_EXPR:
8680 : 1615 : {
8681 : 1615 : tree _q20 = TREE_OPERAND (_p0, 0);
8682 : 1615 : tree _q21 = TREE_OPERAND (_p0, 1);
8683 : 1615 : if (integer_truep (_p1))
8684 : : {
8685 : 0 : {
8686 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8687 : 0 : tree res = generic_simplify_238 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR, UNGT_EXPR);
8688 : 0 : if (res) return res;
8689 : : }
8690 : : }
8691 : 1615 : if (integer_zerop (_p1))
8692 : : {
8693 : 697 : {
8694 : 697 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8695 : 697 : tree res = generic_simplify_239 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR, UNGT_EXPR);
8696 : 697 : if (res) return res;
8697 : : }
8698 : : }
8699 : : break;
8700 : : }
8701 : 31004 : case EQ_EXPR:
8702 : 31004 : {
8703 : 31004 : tree _q20 = TREE_OPERAND (_p0, 0);
8704 : 31004 : tree _q21 = TREE_OPERAND (_p0, 1);
8705 : 31004 : if (integer_truep (_p1))
8706 : : {
8707 : 46 : {
8708 : 46 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8709 : 46 : tree res = generic_simplify_238 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR, NE_EXPR);
8710 : 46 : if (res) return res;
8711 : : }
8712 : : }
8713 : 30999 : if (integer_zerop (_p1))
8714 : : {
8715 : 6927 : {
8716 : 6927 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8717 : 6927 : tree res = generic_simplify_239 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR, NE_EXPR);
8718 : 6927 : if (res) return res;
8719 : : }
8720 : : }
8721 : : break;
8722 : : }
8723 : 11388 : case NE_EXPR:
8724 : 11388 : {
8725 : 11388 : tree _q20 = TREE_OPERAND (_p0, 0);
8726 : 11388 : tree _q21 = TREE_OPERAND (_p0, 1);
8727 : 11388 : if (integer_truep (_p1))
8728 : : {
8729 : 126 : {
8730 : 126 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8731 : 126 : tree res = generic_simplify_238 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR, EQ_EXPR);
8732 : 126 : if (res) return res;
8733 : : }
8734 : : }
8735 : 11268 : if (integer_zerop (_p1))
8736 : : {
8737 : 9654 : {
8738 : 9654 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8739 : 9654 : tree res = generic_simplify_239 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR, EQ_EXPR);
8740 : 9654 : if (res) return res;
8741 : : }
8742 : : }
8743 : : break;
8744 : : }
8745 : 6548 : case GE_EXPR:
8746 : 6548 : {
8747 : 6548 : tree _q20 = TREE_OPERAND (_p0, 0);
8748 : 6548 : tree _q21 = TREE_OPERAND (_p0, 1);
8749 : 6548 : if (integer_truep (_p1))
8750 : : {
8751 : 0 : {
8752 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8753 : 0 : tree res = generic_simplify_238 (loc, type, _p0, _p1, captures, GE_EXPR, LT_EXPR, UNLT_EXPR);
8754 : 0 : if (res) return res;
8755 : : }
8756 : : }
8757 : 6548 : if (integer_zerop (_p1))
8758 : : {
8759 : 5389 : {
8760 : 5389 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8761 : 5389 : tree res = generic_simplify_239 (loc, type, _p0, _p1, captures, GE_EXPR, LT_EXPR, UNLT_EXPR);
8762 : 5389 : if (res) return res;
8763 : : }
8764 : : }
8765 : : break;
8766 : : }
8767 : 30661 : case GT_EXPR:
8768 : 30661 : {
8769 : 30661 : tree _q20 = TREE_OPERAND (_p0, 0);
8770 : 30661 : tree _q21 = TREE_OPERAND (_p0, 1);
8771 : 30661 : if (integer_truep (_p1))
8772 : : {
8773 : 0 : {
8774 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8775 : 0 : tree res = generic_simplify_238 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR, UNLE_EXPR);
8776 : 0 : if (res) return res;
8777 : : }
8778 : : }
8779 : 30661 : if (integer_zerop (_p1))
8780 : : {
8781 : 446 : {
8782 : 446 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8783 : 446 : tree res = generic_simplify_239 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR, UNLE_EXPR);
8784 : 446 : if (res) return res;
8785 : : }
8786 : : }
8787 : : break;
8788 : : }
8789 : 1023 : case UNORDERED_EXPR:
8790 : 1023 : {
8791 : 1023 : tree _q20 = TREE_OPERAND (_p0, 0);
8792 : 1023 : tree _q21 = TREE_OPERAND (_p0, 1);
8793 : 1023 : if (integer_truep (_p1))
8794 : : {
8795 : 0 : {
8796 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8797 : 0 : tree res = generic_simplify_238 (loc, type, _p0, _p1, captures, UNORDERED_EXPR, ORDERED_EXPR, ORDERED_EXPR);
8798 : 0 : if (res) return res;
8799 : : }
8800 : : }
8801 : 1023 : if (integer_zerop (_p1))
8802 : : {
8803 : 1017 : {
8804 : 1017 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8805 : 1017 : tree res = generic_simplify_239 (loc, type, _p0, _p1, captures, UNORDERED_EXPR, ORDERED_EXPR, ORDERED_EXPR);
8806 : 1017 : if (res) return res;
8807 : : }
8808 : : }
8809 : : break;
8810 : : }
8811 : 0 : case ORDERED_EXPR:
8812 : 0 : {
8813 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
8814 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
8815 : 0 : if (integer_truep (_p1))
8816 : : {
8817 : 0 : {
8818 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8819 : 0 : tree res = generic_simplify_238 (loc, type, _p0, _p1, captures, ORDERED_EXPR, UNORDERED_EXPR, UNORDERED_EXPR);
8820 : 0 : if (res) return res;
8821 : : }
8822 : : }
8823 : 0 : if (integer_zerop (_p1))
8824 : : {
8825 : 0 : {
8826 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8827 : 0 : tree res = generic_simplify_239 (loc, type, _p0, _p1, captures, ORDERED_EXPR, UNORDERED_EXPR, UNORDERED_EXPR);
8828 : 0 : if (res) return res;
8829 : : }
8830 : : }
8831 : : break;
8832 : : }
8833 : 0 : case UNLT_EXPR:
8834 : 0 : {
8835 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
8836 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
8837 : 0 : if (integer_truep (_p1))
8838 : : {
8839 : 0 : {
8840 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8841 : 0 : tree res = generic_simplify_238 (loc, type, _p0, _p1, captures, UNLT_EXPR, GE_EXPR, GE_EXPR);
8842 : 0 : if (res) return res;
8843 : : }
8844 : : }
8845 : 0 : if (integer_zerop (_p1))
8846 : : {
8847 : 0 : {
8848 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8849 : 0 : tree res = generic_simplify_239 (loc, type, _p0, _p1, captures, UNLT_EXPR, GE_EXPR, GE_EXPR);
8850 : 0 : if (res) return res;
8851 : : }
8852 : : }
8853 : : break;
8854 : : }
8855 : 0 : case UNLE_EXPR:
8856 : 0 : {
8857 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
8858 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
8859 : 0 : if (integer_truep (_p1))
8860 : : {
8861 : 0 : {
8862 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8863 : 0 : tree res = generic_simplify_238 (loc, type, _p0, _p1, captures, UNLE_EXPR, GT_EXPR, GT_EXPR);
8864 : 0 : if (res) return res;
8865 : : }
8866 : : }
8867 : 0 : if (integer_zerop (_p1))
8868 : : {
8869 : 0 : {
8870 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8871 : 0 : tree res = generic_simplify_239 (loc, type, _p0, _p1, captures, UNLE_EXPR, GT_EXPR, GT_EXPR);
8872 : 0 : if (res) return res;
8873 : : }
8874 : : }
8875 : : break;
8876 : : }
8877 : 0 : case UNGT_EXPR:
8878 : 0 : {
8879 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
8880 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
8881 : 0 : if (integer_truep (_p1))
8882 : : {
8883 : 0 : {
8884 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8885 : 0 : tree res = generic_simplify_238 (loc, type, _p0, _p1, captures, UNGT_EXPR, LE_EXPR, LE_EXPR);
8886 : 0 : if (res) return res;
8887 : : }
8888 : : }
8889 : 0 : if (integer_zerop (_p1))
8890 : : {
8891 : 0 : {
8892 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8893 : 0 : tree res = generic_simplify_239 (loc, type, _p0, _p1, captures, UNGT_EXPR, LE_EXPR, LE_EXPR);
8894 : 0 : if (res) return res;
8895 : : }
8896 : : }
8897 : : break;
8898 : : }
8899 : 0 : case UNGE_EXPR:
8900 : 0 : {
8901 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
8902 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
8903 : 0 : if (integer_truep (_p1))
8904 : : {
8905 : 0 : {
8906 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8907 : 0 : tree res = generic_simplify_238 (loc, type, _p0, _p1, captures, UNGE_EXPR, LT_EXPR, LT_EXPR);
8908 : 0 : if (res) return res;
8909 : : }
8910 : : }
8911 : 0 : if (integer_zerop (_p1))
8912 : : {
8913 : 0 : {
8914 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8915 : 0 : tree res = generic_simplify_239 (loc, type, _p0, _p1, captures, UNGE_EXPR, LT_EXPR, LT_EXPR);
8916 : 0 : if (res) return res;
8917 : : }
8918 : : }
8919 : : break;
8920 : : }
8921 : 0 : case UNEQ_EXPR:
8922 : 0 : {
8923 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
8924 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
8925 : 0 : if (integer_truep (_p1))
8926 : : {
8927 : 0 : {
8928 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8929 : 0 : tree res = generic_simplify_238 (loc, type, _p0, _p1, captures, UNEQ_EXPR, LTGT_EXPR, LTGT_EXPR);
8930 : 0 : if (res) return res;
8931 : : }
8932 : : }
8933 : 0 : if (integer_zerop (_p1))
8934 : : {
8935 : 0 : {
8936 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8937 : 0 : tree res = generic_simplify_239 (loc, type, _p0, _p1, captures, UNEQ_EXPR, LTGT_EXPR, LTGT_EXPR);
8938 : 0 : if (res) return res;
8939 : : }
8940 : : }
8941 : : break;
8942 : : }
8943 : 0 : case LTGT_EXPR:
8944 : 0 : {
8945 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
8946 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
8947 : 0 : if (integer_truep (_p1))
8948 : : {
8949 : 0 : {
8950 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8951 : 0 : tree res = generic_simplify_238 (loc, type, _p0, _p1, captures, LTGT_EXPR, UNEQ_EXPR, UNEQ_EXPR);
8952 : 0 : if (res) return res;
8953 : : }
8954 : : }
8955 : 0 : if (integer_zerop (_p1))
8956 : : {
8957 : 0 : {
8958 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8959 : 0 : tree res = generic_simplify_239 (loc, type, _p0, _p1, captures, LTGT_EXPR, UNEQ_EXPR, UNEQ_EXPR);
8960 : 0 : if (res) return res;
8961 : : }
8962 : : }
8963 : : break;
8964 : : }
8965 : 125075 : case MINUS_EXPR:
8966 : 125075 : {
8967 : 125075 : tree _q20 = TREE_OPERAND (_p0, 0);
8968 : 125075 : tree _q21 = TREE_OPERAND (_p0, 1);
8969 : 125075 : if (integer_zerop (_p1))
8970 : : {
8971 : 36630 : {
8972 : 36630 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8973 : 36630 : tree res = generic_simplify_240 (loc, type, _p0, _p1, captures, EQ_EXPR);
8974 : 36630 : if (res) return res;
8975 : : }
8976 : : }
8977 : : break;
8978 : : }
8979 : 40043 : case POINTER_DIFF_EXPR:
8980 : 40043 : {
8981 : 40043 : tree _q20 = TREE_OPERAND (_p0, 0);
8982 : 40043 : tree _q21 = TREE_OPERAND (_p0, 1);
8983 : 40043 : if (integer_zerop (_p1))
8984 : : {
8985 : 1525 : {
8986 : 1525 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8987 : 1525 : tree res = generic_simplify_241 (loc, type, _p0, _p1, captures, EQ_EXPR);
8988 : 1525 : if (res) return res;
8989 : : }
8990 : : }
8991 : : break;
8992 : : }
8993 : 64464 : case MULT_EXPR:
8994 : 64464 : {
8995 : 64464 : tree _q20 = TREE_OPERAND (_p0, 0);
8996 : 64464 : tree _q21 = TREE_OPERAND (_p0, 1);
8997 : 64464 : switch (TREE_CODE (_q21))
8998 : : {
8999 : 56802 : case INTEGER_CST:
9000 : 56802 : {
9001 : 56802 : switch (TREE_CODE (_p1))
9002 : : {
9003 : 11314 : case INTEGER_CST:
9004 : 11314 : {
9005 : 11314 : {
9006 : 11314 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
9007 : 11314 : tree res = generic_simplify_243 (loc, type, _p0, _p1, captures, EQ_EXPR);
9008 : 11314 : if (res) return res;
9009 : : }
9010 : 10265 : break;
9011 : : }
9012 : 55753 : default:;
9013 : : }
9014 : 55753 : if (integer_zerop (_p1))
9015 : : {
9016 : 4948 : {
9017 : 4948 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
9018 : 4948 : tree res = generic_simplify_242 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
9019 : 4948 : if (res) return res;
9020 : : }
9021 : : }
9022 : : break;
9023 : : }
9024 : : default:;
9025 : : }
9026 : : break;
9027 : : }
9028 : 25751618 : default:;
9029 : : }
9030 : 25751618 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
9031 : : {
9032 : 76191 : {
9033 : 76191 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
9034 : 76191 : tree res = generic_simplify_244 (loc, type, _p0, _p1, captures, EQ_EXPR);
9035 : 76191 : if (res) return res;
9036 : : }
9037 : : }
9038 : 25677924 : switch (TREE_CODE (_p0))
9039 : : {
9040 : 4592117 : CASE_CONVERT:
9041 : 4592117 : {
9042 : 4592117 : tree _q20 = TREE_OPERAND (_p0, 0);
9043 : 4592117 : switch (TREE_CODE (_p1))
9044 : : {
9045 : 1032944 : CASE_CONVERT:
9046 : 1032944 : {
9047 : 1032944 : tree _q40 = TREE_OPERAND (_p1, 0);
9048 : 1032944 : {
9049 : 1032944 : tree _q40_pops[1];
9050 : 1032944 : if (tree_maybe_bit_not (_q40, _q40_pops))
9051 : : {
9052 : 0 : tree _q50 = _q40_pops[0];
9053 : 0 : {
9054 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q50 };
9055 : 0 : tree res = generic_simplify_245 (loc, type, _p0, _p1, captures, EQ_EXPR);
9056 : 0 : if (res) return res;
9057 : : }
9058 : : }
9059 : : }
9060 : 1032944 : break;
9061 : : }
9062 : 4592117 : default:;
9063 : : }
9064 : 4592117 : {
9065 : 4592117 : tree _q20_pops[1];
9066 : 4592117 : if (tree_maybe_bit_not (_q20, _q20_pops))
9067 : : {
9068 : 232 : tree _q30 = _q20_pops[0];
9069 : 232 : switch (TREE_CODE (_p1))
9070 : : {
9071 : 74 : CASE_CONVERT:
9072 : 74 : {
9073 : 74 : tree _q50 = TREE_OPERAND (_p1, 0);
9074 : 74 : {
9075 : 74 : tree captures[2] ATTRIBUTE_UNUSED = { _q50, _q30 };
9076 : 74 : tree res = generic_simplify_245 (loc, type, _p0, _p1, captures, EQ_EXPR);
9077 : 74 : if (res) return res;
9078 : : }
9079 : 74 : break;
9080 : : }
9081 : : default:;
9082 : : }
9083 : : }
9084 : : }
9085 : 4592117 : break;
9086 : : }
9087 : 25677924 : default:;
9088 : : }
9089 : 25677924 : {
9090 : 25677924 : tree _p1_pops[1];
9091 : 25677924 : if (tree_maybe_bit_not (_p1, _p1_pops))
9092 : : {
9093 : 18797395 : tree _q30 = _p1_pops[0];
9094 : 18797395 : {
9095 : 18797395 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
9096 : 18797395 : tree res = generic_simplify_245 (loc, type, _p0, _p1, captures, EQ_EXPR);
9097 : 18797395 : if (res) return res;
9098 : : }
9099 : : }
9100 : : }
9101 : 25677922 : switch (TREE_CODE (_p0))
9102 : : {
9103 : 405 : case BIT_NOT_EXPR:
9104 : 405 : {
9105 : 405 : tree _q20 = TREE_OPERAND (_p0, 0);
9106 : 405 : switch (TREE_CODE (_p1))
9107 : : {
9108 : 1 : case BIT_NOT_EXPR:
9109 : 1 : {
9110 : 1 : tree _q40 = TREE_OPERAND (_p1, 0);
9111 : 1 : {
9112 : 1 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _p1, _q40 };
9113 : 1 : tree res = generic_simplify_248 (loc, type, _p0, _p1, captures, EQ_EXPR);
9114 : 1 : if (res) return res;
9115 : : }
9116 : 0 : break;
9117 : : }
9118 : 404 : default:;
9119 : : }
9120 : 404 : {
9121 : 404 : tree _p1_pops[1];
9122 : 404 : if (tree_nop_convert (_p1, _p1_pops))
9123 : : {
9124 : 6 : tree _q40 = _p1_pops[0];
9125 : 6 : switch (TREE_CODE (_q40))
9126 : : {
9127 : 0 : case BIT_NOT_EXPR:
9128 : 0 : {
9129 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
9130 : 0 : {
9131 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q40, _q50 };
9132 : 0 : tree res = generic_simplify_248 (loc, type, _p0, _p1, captures, EQ_EXPR);
9133 : 0 : if (res) return res;
9134 : : }
9135 : 0 : break;
9136 : : }
9137 : : default:;
9138 : : }
9139 : : }
9140 : : }
9141 : 404 : if (CONSTANT_CLASS_P (_p1))
9142 : : {
9143 : 188 : {
9144 : 188 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
9145 : 188 : tree res = generic_simplify_247 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
9146 : 188 : if (res) return res;
9147 : : }
9148 : : }
9149 : : break;
9150 : : }
9151 : 25677733 : default:;
9152 : : }
9153 : 25677733 : {
9154 : 25677733 : tree _p0_pops[1];
9155 : 25677733 : if (tree_maybe_bit_not (_p0, _p0_pops))
9156 : : {
9157 : 59507 : tree _q20 = _p0_pops[0];
9158 : 59507 : {
9159 : 59507 : tree captures[2] ATTRIBUTE_UNUSED = { _p1, _q20 };
9160 : 59507 : tree res = generic_simplify_245 (loc, type, _p0, _p1, captures, EQ_EXPR);
9161 : 59507 : if (res) return res;
9162 : : }
9163 : : }
9164 : : }
9165 : 25677732 : {
9166 : 25677732 : tree _p0_pops[1];
9167 : 25677732 : if (tree_nop_convert (_p0, _p0_pops))
9168 : : {
9169 : 2853005 : tree _q20 = _p0_pops[0];
9170 : 2853005 : switch (TREE_CODE (_q20))
9171 : : {
9172 : 41 : case BIT_NOT_EXPR:
9173 : 41 : {
9174 : 41 : tree _q30 = TREE_OPERAND (_q20, 0);
9175 : 41 : switch (TREE_CODE (_p1))
9176 : : {
9177 : 0 : case BIT_NOT_EXPR:
9178 : 0 : {
9179 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9180 : 0 : {
9181 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _p1, _q50 };
9182 : 0 : tree res = generic_simplify_246 (loc, type, _p0, _p1, captures, EQ_EXPR);
9183 : 0 : if (res) return res;
9184 : : }
9185 : 0 : break;
9186 : : }
9187 : 41 : default:;
9188 : : }
9189 : 41 : {
9190 : 41 : tree _p1_pops[1];
9191 : 41 : if (tree_nop_convert (_p1, _p1_pops))
9192 : : {
9193 : 0 : tree _q50 = _p1_pops[0];
9194 : 0 : switch (TREE_CODE (_q50))
9195 : : {
9196 : 0 : case BIT_NOT_EXPR:
9197 : 0 : {
9198 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
9199 : 0 : {
9200 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q50, _q60 };
9201 : 0 : tree res = generic_simplify_246 (loc, type, _p0, _p1, captures, EQ_EXPR);
9202 : 0 : if (res) return res;
9203 : : }
9204 : 0 : break;
9205 : : }
9206 : : default:;
9207 : : }
9208 : : }
9209 : : }
9210 : 41 : if (CONSTANT_CLASS_P (_p1))
9211 : : {
9212 : 41 : {
9213 : 41 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
9214 : 41 : tree res = generic_simplify_247 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
9215 : 41 : if (res) return res;
9216 : : }
9217 : : }
9218 : : break;
9219 : : }
9220 : : default:;
9221 : : }
9222 : : }
9223 : : }
9224 : 25677691 : switch (TREE_CODE (_p1))
9225 : : {
9226 : 990797 : case REAL_CST:
9227 : 990797 : {
9228 : 990797 : {
9229 : 990797 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
9230 : 990797 : tree res = generic_simplify_249 (loc, type, _p0, _p1, captures, EQ_EXPR);
9231 : 990797 : if (res) return res;
9232 : : }
9233 : 990701 : break;
9234 : : }
9235 : 25677595 : default:;
9236 : : }
9237 : 25677595 : switch (TREE_CODE (_p0))
9238 : : {
9239 : 662553 : case PLUS_EXPR:
9240 : 662553 : {
9241 : 662553 : tree _q20 = TREE_OPERAND (_p0, 0);
9242 : 662553 : tree _q21 = TREE_OPERAND (_p0, 1);
9243 : 662553 : switch (TREE_CODE (_q21))
9244 : : {
9245 : 583 : case REAL_CST:
9246 : 583 : {
9247 : 583 : switch (TREE_CODE (_p1))
9248 : : {
9249 : 407 : case REAL_CST:
9250 : 407 : {
9251 : 407 : {
9252 : 407 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
9253 : 407 : tree res = generic_simplify_250 (loc, type, _p0, _p1, captures, PLUS_EXPR, EQ_EXPR);
9254 : 407 : if (res) return res;
9255 : : }
9256 : 407 : break;
9257 : : }
9258 : : default:;
9259 : : }
9260 : : break;
9261 : : }
9262 : : default:;
9263 : : }
9264 : : break;
9265 : : }
9266 : 88445 : case MINUS_EXPR:
9267 : 88445 : {
9268 : 88445 : tree _q20 = TREE_OPERAND (_p0, 0);
9269 : 88445 : tree _q21 = TREE_OPERAND (_p0, 1);
9270 : 88445 : switch (TREE_CODE (_q21))
9271 : : {
9272 : 60 : case REAL_CST:
9273 : 60 : {
9274 : 60 : switch (TREE_CODE (_p1))
9275 : : {
9276 : 60 : case REAL_CST:
9277 : 60 : {
9278 : 60 : {
9279 : 60 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
9280 : 60 : tree res = generic_simplify_250 (loc, type, _p0, _p1, captures, MINUS_EXPR, EQ_EXPR);
9281 : 60 : if (res) return res;
9282 : : }
9283 : 60 : break;
9284 : : }
9285 : : default:;
9286 : : }
9287 : : break;
9288 : : }
9289 : 88445 : default:;
9290 : : }
9291 : 88445 : switch (TREE_CODE (_q20))
9292 : : {
9293 : 275 : case REAL_CST:
9294 : 275 : {
9295 : 275 : switch (TREE_CODE (_p1))
9296 : : {
9297 : 245 : case REAL_CST:
9298 : 245 : {
9299 : 245 : {
9300 : 245 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
9301 : 245 : tree res = generic_simplify_251 (loc, type, _p0, _p1, captures, EQ_EXPR);
9302 : 245 : if (res) return res;
9303 : : }
9304 : 244 : break;
9305 : : }
9306 : : default:;
9307 : : }
9308 : : break;
9309 : : }
9310 : : default:;
9311 : : }
9312 : : break;
9313 : : }
9314 : 2653 : case FLOAT_EXPR:
9315 : 2653 : {
9316 : 2653 : tree _q20 = TREE_OPERAND (_p0, 0);
9317 : 2653 : switch (TREE_CODE (_p1))
9318 : : {
9319 : 1 : case FLOAT_EXPR:
9320 : 1 : {
9321 : 1 : tree _q40 = TREE_OPERAND (_p1, 0);
9322 : 1 : {
9323 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
9324 : 1 : tree res = generic_simplify_254 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
9325 : 1 : if (res) return res;
9326 : : }
9327 : 0 : break;
9328 : : }
9329 : 180 : case REAL_CST:
9330 : 180 : {
9331 : 180 : {
9332 : 180 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9333 : 180 : tree res = generic_simplify_255 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
9334 : 180 : if (res) return res;
9335 : : }
9336 : 149 : break;
9337 : : }
9338 : : default:;
9339 : : }
9340 : : break;
9341 : : }
9342 : 8839 : case EXACT_DIV_EXPR:
9343 : 8839 : {
9344 : 8839 : tree _q20 = TREE_OPERAND (_p0, 0);
9345 : 8839 : tree _q21 = TREE_OPERAND (_p0, 1);
9346 : 8839 : switch (TREE_CODE (_p1))
9347 : : {
9348 : 33 : case INTEGER_CST:
9349 : 33 : {
9350 : 33 : {
9351 : 33 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
9352 : 33 : tree res = generic_simplify_256 (loc, type, _p0, _p1, captures, EQ_EXPR);
9353 : 33 : if (res) return res;
9354 : : }
9355 : 0 : break;
9356 : : }
9357 : : default:;
9358 : : }
9359 : : break;
9360 : : }
9361 : 902 : case NEGATE_EXPR:
9362 : 902 : {
9363 : 902 : tree _q20 = TREE_OPERAND (_p0, 0);
9364 : 902 : switch (TREE_CODE (_p1))
9365 : : {
9366 : 1 : case NEGATE_EXPR:
9367 : 1 : {
9368 : 1 : tree _q40 = TREE_OPERAND (_p1, 0);
9369 : 1 : {
9370 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
9371 : 1 : tree res = generic_simplify_257 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
9372 : 1 : if (res) return res;
9373 : : }
9374 : 0 : break;
9375 : : }
9376 : 901 : default:;
9377 : : }
9378 : 901 : if (CONSTANT_CLASS_P (_p1))
9379 : : {
9380 : 205 : {
9381 : 205 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9382 : 205 : tree res = generic_simplify_258 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
9383 : 205 : if (res) return res;
9384 : : }
9385 : : }
9386 : : break;
9387 : : }
9388 : 1184 : case ABS_EXPR:
9389 : 1184 : {
9390 : 1184 : tree _q20 = TREE_OPERAND (_p0, 0);
9391 : 1184 : if (zerop (_p1))
9392 : : {
9393 : 72 : {
9394 : 72 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9395 : 72 : const enum tree_code eqne = EQ_EXPR;
9396 : 72 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1634;
9397 : 72 : {
9398 : 72 : tree res_op0;
9399 : 72 : res_op0 = captures[0];
9400 : 72 : tree res_op1;
9401 : 72 : res_op1 = build_zero_cst (TREE_TYPE (captures[0]));
9402 : 72 : tree _r;
9403 : 72 : _r = fold_build2_loc (loc, eqne, type, res_op0, res_op1);
9404 : 72 : if (TREE_SIDE_EFFECTS (captures[1]))
9405 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
9406 : 72 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 998, __FILE__, __LINE__, true);
9407 : 72 : return _r;
9408 : : }
9409 : 0 : next_after_fail1634:;
9410 : : }
9411 : : }
9412 : : break;
9413 : : }
9414 : 1 : case ABSU_EXPR:
9415 : 1 : {
9416 : 1 : tree _q20 = TREE_OPERAND (_p0, 0);
9417 : 1 : if (zerop (_p1))
9418 : : {
9419 : 0 : {
9420 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9421 : 0 : const enum tree_code eqne = EQ_EXPR;
9422 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1635;
9423 : 0 : {
9424 : 0 : tree res_op0;
9425 : 0 : res_op0 = captures[0];
9426 : 0 : tree res_op1;
9427 : 0 : res_op1 = build_zero_cst (TREE_TYPE (captures[0]));
9428 : 0 : tree _r;
9429 : 0 : _r = fold_build2_loc (loc, eqne, type, res_op0, res_op1);
9430 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
9431 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
9432 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 998, __FILE__, __LINE__, true);
9433 : 0 : return _r;
9434 : : }
9435 : 0 : next_after_fail1635:;
9436 : : }
9437 : : }
9438 : : break;
9439 : : }
9440 : 4592038 : CASE_CONVERT:
9441 : 4592038 : {
9442 : 4592038 : tree _q20 = TREE_OPERAND (_p0, 0);
9443 : 4592038 : switch (TREE_CODE (_p1))
9444 : : {
9445 : 1032944 : CASE_CONVERT:
9446 : 1032944 : {
9447 : 1032944 : tree _q40 = TREE_OPERAND (_p1, 0);
9448 : 1032944 : {
9449 : 1032944 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
9450 : 1032944 : tree res = generic_simplify_259 (loc, type, _p0, _p1, captures, EQ_EXPR);
9451 : 1032944 : if (res) return res;
9452 : : }
9453 : 519225 : break;
9454 : : }
9455 : 4078319 : default:;
9456 : : }
9457 : 4078319 : {
9458 : 4078319 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
9459 : 4078319 : tree res = generic_simplify_260 (loc, type, _p0, _p1, captures, EQ_EXPR);
9460 : 4078319 : if (res) return res;
9461 : : }
9462 : 2087854 : switch (TREE_CODE (_q20))
9463 : : {
9464 : 3 : case BIT_IOR_EXPR:
9465 : 3 : {
9466 : 3 : tree _q30 = TREE_OPERAND (_q20, 0);
9467 : 3 : tree _q31 = TREE_OPERAND (_q20, 1);
9468 : 3 : switch (TREE_CODE (_q31))
9469 : : {
9470 : 0 : case INTEGER_CST:
9471 : 0 : {
9472 : 0 : switch (TREE_CODE (_p1))
9473 : : {
9474 : 0 : case INTEGER_CST:
9475 : 0 : {
9476 : 0 : {
9477 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q31, _p1 };
9478 : 0 : tree res = generic_simplify_261 (loc, type, _p0, _p1, captures, EQ_EXPR);
9479 : 0 : if (res) return res;
9480 : : }
9481 : 0 : break;
9482 : : }
9483 : : default:;
9484 : : }
9485 : : break;
9486 : : }
9487 : : default:;
9488 : : }
9489 : : break;
9490 : : }
9491 : : default:;
9492 : : }
9493 : : break;
9494 : : }
9495 : 8996610 : case SSA_NAME:
9496 : 8996610 : {
9497 : 8996610 : switch (TREE_CODE (_p1))
9498 : : {
9499 : 720126 : case ADDR_EXPR:
9500 : 720126 : {
9501 : 720126 : {
9502 : 720126 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
9503 : 720126 : tree res = generic_simplify_262 (loc, type, _p0, _p1, captures, EQ_EXPR);
9504 : 720126 : if (res) return res;
9505 : : }
9506 : 720126 : break;
9507 : : }
9508 : : default:;
9509 : : }
9510 : : break;
9511 : : }
9512 : 33647 : case BIT_IOR_EXPR:
9513 : 33647 : {
9514 : 33647 : tree _q20 = TREE_OPERAND (_p0, 0);
9515 : 33647 : tree _q21 = TREE_OPERAND (_p0, 1);
9516 : 33647 : switch (TREE_CODE (_q21))
9517 : : {
9518 : 1666 : case INTEGER_CST:
9519 : 1666 : {
9520 : 1666 : switch (TREE_CODE (_p1))
9521 : : {
9522 : 464 : case INTEGER_CST:
9523 : 464 : {
9524 : 464 : {
9525 : 464 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
9526 : 464 : tree res = generic_simplify_261 (loc, type, _p0, _p1, captures, EQ_EXPR);
9527 : 464 : if (res) return res;
9528 : : }
9529 : 464 : break;
9530 : : }
9531 : : default:;
9532 : : }
9533 : : break;
9534 : : }
9535 : : default:;
9536 : : }
9537 : : break;
9538 : : }
9539 : 587 : case BIT_XOR_EXPR:
9540 : 587 : {
9541 : 587 : tree _q20 = TREE_OPERAND (_p0, 0);
9542 : 587 : tree _q21 = TREE_OPERAND (_p0, 1);
9543 : 587 : if (integer_zerop (_p1))
9544 : : {
9545 : 162 : {
9546 : 162 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9547 : 162 : tree res = generic_simplify_263 (loc, type, _p0, _p1, captures, EQ_EXPR);
9548 : 162 : if (res) return res;
9549 : : }
9550 : : }
9551 : 425 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
9552 : : {
9553 : 29 : {
9554 : 29 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9555 : 29 : tree res = generic_simplify_264 (loc, type, _p0, _p1, captures, EQ_EXPR);
9556 : 29 : if (res) return res;
9557 : : }
9558 : : }
9559 : 396 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
9560 : : {
9561 : 30 : {
9562 : 30 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
9563 : 30 : tree res = generic_simplify_264 (loc, type, _p0, _p1, captures, EQ_EXPR);
9564 : 30 : if (res) return res;
9565 : : }
9566 : : }
9567 : : break;
9568 : : }
9569 : 1800512 : case CALL_EXPR:
9570 : 1800512 : switch (get_call_combined_fn (_p0))
9571 : : {
9572 : 3 : case CFN_BUILT_IN_SQRTF:
9573 : 3 : if (call_expr_nargs (_p0) == 1)
9574 : : {
9575 : 3 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9576 : 3 : switch (TREE_CODE (_p1))
9577 : : {
9578 : 0 : case REAL_CST:
9579 : 0 : {
9580 : 0 : {
9581 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9582 : 0 : tree res = generic_simplify_252 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTF, EQ_EXPR);
9583 : 0 : if (res) return res;
9584 : : }
9585 : 0 : break;
9586 : : }
9587 : 3 : case CALL_EXPR:
9588 : 3 : switch (get_call_combined_fn (_p1))
9589 : : {
9590 : 3 : case CFN_BUILT_IN_SQRTF:
9591 : 3 : if (call_expr_nargs (_p1) == 1)
9592 : : {
9593 : 3 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9594 : 3 : {
9595 : 3 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
9596 : 3 : tree res = generic_simplify_253 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTF, EQ_EXPR);
9597 : 3 : if (res) return res;
9598 : : }
9599 : : }
9600 : : break;
9601 : : default:;
9602 : : }
9603 : : break;
9604 : : default:;
9605 : : }
9606 : : }
9607 : : break;
9608 : 3 : case CFN_BUILT_IN_SQRTL:
9609 : 3 : if (call_expr_nargs (_p0) == 1)
9610 : : {
9611 : 3 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9612 : 3 : switch (TREE_CODE (_p1))
9613 : : {
9614 : 0 : case REAL_CST:
9615 : 0 : {
9616 : 0 : {
9617 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9618 : 0 : tree res = generic_simplify_252 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTL, EQ_EXPR);
9619 : 0 : if (res) return res;
9620 : : }
9621 : 0 : break;
9622 : : }
9623 : 3 : case CALL_EXPR:
9624 : 3 : switch (get_call_combined_fn (_p1))
9625 : : {
9626 : 3 : case CFN_BUILT_IN_SQRTL:
9627 : 3 : if (call_expr_nargs (_p1) == 1)
9628 : : {
9629 : 3 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9630 : 3 : {
9631 : 3 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
9632 : 3 : tree res = generic_simplify_253 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTL, EQ_EXPR);
9633 : 3 : if (res) return res;
9634 : : }
9635 : : }
9636 : : break;
9637 : : default:;
9638 : : }
9639 : : break;
9640 : : default:;
9641 : : }
9642 : : }
9643 : : break;
9644 : 0 : case CFN_BUILT_IN_SQRT:
9645 : 0 : if (call_expr_nargs (_p0) == 1)
9646 : : {
9647 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9648 : 0 : switch (TREE_CODE (_p1))
9649 : : {
9650 : 0 : case REAL_CST:
9651 : 0 : {
9652 : 0 : {
9653 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9654 : 0 : tree res = generic_simplify_252 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRT, EQ_EXPR);
9655 : 0 : if (res) return res;
9656 : : }
9657 : 0 : break;
9658 : : }
9659 : 0 : case CALL_EXPR:
9660 : 0 : switch (get_call_combined_fn (_p1))
9661 : : {
9662 : 0 : case CFN_BUILT_IN_SQRT:
9663 : 0 : if (call_expr_nargs (_p1) == 1)
9664 : : {
9665 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9666 : 0 : {
9667 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
9668 : 0 : tree res = generic_simplify_253 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRT, EQ_EXPR);
9669 : 0 : if (res) return res;
9670 : : }
9671 : : }
9672 : : break;
9673 : : default:;
9674 : : }
9675 : : break;
9676 : : default:;
9677 : : }
9678 : : }
9679 : : break;
9680 : 0 : case CFN_SQRT:
9681 : 0 : if (call_expr_nargs (_p0) == 1)
9682 : : {
9683 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9684 : 0 : switch (TREE_CODE (_p1))
9685 : : {
9686 : 0 : case REAL_CST:
9687 : 0 : {
9688 : 0 : {
9689 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9690 : 0 : tree res = generic_simplify_252 (loc, type, _p0, _p1, captures, CFN_SQRT, EQ_EXPR);
9691 : 0 : if (res) return res;
9692 : : }
9693 : 0 : break;
9694 : : }
9695 : 0 : case CALL_EXPR:
9696 : 0 : switch (get_call_combined_fn (_p1))
9697 : : {
9698 : 0 : case CFN_SQRT:
9699 : 0 : if (call_expr_nargs (_p1) == 1)
9700 : : {
9701 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9702 : 0 : {
9703 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
9704 : 0 : tree res = generic_simplify_253 (loc, type, _p0, _p1, captures, CFN_SQRT, EQ_EXPR);
9705 : 0 : if (res) return res;
9706 : : }
9707 : : }
9708 : : break;
9709 : : default:;
9710 : : }
9711 : : break;
9712 : : default:;
9713 : : }
9714 : : }
9715 : : break;
9716 : : default:;
9717 : : }
9718 : : break;
9719 : 23172856 : default:;
9720 : : }
9721 : 23172856 : switch (TREE_CODE (_p1))
9722 : : {
9723 : 22 : case BIT_XOR_EXPR:
9724 : 22 : {
9725 : 22 : tree _q30 = TREE_OPERAND (_p1, 0);
9726 : 22 : tree _q31 = TREE_OPERAND (_p1, 1);
9727 : 22 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
9728 : : {
9729 : 0 : {
9730 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
9731 : 0 : tree res = generic_simplify_264 (loc, type, _p0, _p1, captures, EQ_EXPR);
9732 : 0 : if (res) return res;
9733 : : }
9734 : : }
9735 : 22 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
9736 : : {
9737 : 0 : {
9738 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
9739 : 0 : tree res = generic_simplify_264 (loc, type, _p0, _p1, captures, EQ_EXPR);
9740 : 0 : if (res) return res;
9741 : : }
9742 : : }
9743 : : break;
9744 : : }
9745 : 23172856 : default:;
9746 : : }
9747 : 23172856 : switch (TREE_CODE (_p0))
9748 : : {
9749 : 894768 : case BIT_AND_EXPR:
9750 : 894768 : {
9751 : 894768 : tree _q20 = TREE_OPERAND (_p0, 0);
9752 : 894768 : tree _q21 = TREE_OPERAND (_p0, 1);
9753 : 894768 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
9754 : : {
9755 : 196 : {
9756 : 196 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9757 : 196 : tree res = generic_simplify_265 (loc, type, _p0, _p1, captures, EQ_EXPR);
9758 : 196 : if (res) return res;
9759 : : }
9760 : : }
9761 : 894767 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
9762 : : {
9763 : 149776 : {
9764 : 149776 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
9765 : 149776 : tree res = generic_simplify_265 (loc, type, _p0, _p1, captures, EQ_EXPR);
9766 : 149776 : if (res) return res;
9767 : : }
9768 : : }
9769 : : break;
9770 : : }
9771 : 23172855 : default:;
9772 : : }
9773 : 23172855 : switch (TREE_CODE (_p1))
9774 : : {
9775 : 7906 : case BIT_AND_EXPR:
9776 : 7906 : {
9777 : 7906 : tree _q30 = TREE_OPERAND (_p1, 0);
9778 : 7906 : tree _q31 = TREE_OPERAND (_p1, 1);
9779 : 7906 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
9780 : : {
9781 : 0 : {
9782 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
9783 : 0 : tree res = generic_simplify_265 (loc, type, _p0, _p1, captures, EQ_EXPR);
9784 : 0 : if (res) return res;
9785 : : }
9786 : : }
9787 : 7906 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
9788 : : {
9789 : 0 : {
9790 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
9791 : 0 : tree res = generic_simplify_265 (loc, type, _p0, _p1, captures, EQ_EXPR);
9792 : 0 : if (res) return res;
9793 : : }
9794 : : }
9795 : : break;
9796 : : }
9797 : 23172855 : default:;
9798 : : }
9799 : 23172855 : switch (TREE_CODE (_p0))
9800 : : {
9801 : 2087854 : CASE_CONVERT:
9802 : 2087854 : {
9803 : 2087854 : tree _q20 = TREE_OPERAND (_p0, 0);
9804 : 2087854 : switch (TREE_CODE (_q20))
9805 : : {
9806 : 2 : case BIT_AND_EXPR:
9807 : 2 : {
9808 : 2 : tree _q30 = TREE_OPERAND (_q20, 0);
9809 : 2 : tree _q31 = TREE_OPERAND (_q20, 1);
9810 : 2 : switch (TREE_CODE (_q30))
9811 : : {
9812 : 0 : CASE_CONVERT:
9813 : 0 : {
9814 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
9815 : 0 : switch (TREE_CODE (_q31))
9816 : : {
9817 : 0 : case INTEGER_CST:
9818 : 0 : {
9819 : 0 : switch (TREE_CODE (_p1))
9820 : : {
9821 : 0 : CASE_CONVERT:
9822 : 0 : {
9823 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
9824 : 0 : if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
9825 : : {
9826 : 0 : {
9827 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q40, _q31 };
9828 : 0 : tree res = generic_simplify_266 (loc, type, _p0, _p1, captures, EQ_EXPR);
9829 : 0 : if (res) return res;
9830 : : }
9831 : : }
9832 : : break;
9833 : : }
9834 : : default:;
9835 : : }
9836 : : break;
9837 : : }
9838 : : default:;
9839 : : }
9840 : : break;
9841 : : }
9842 : : default:;
9843 : : }
9844 : : break;
9845 : : }
9846 : 2087854 : default:;
9847 : : }
9848 : 2087854 : switch (TREE_CODE (_p1))
9849 : : {
9850 : 519225 : CASE_CONVERT:
9851 : 519225 : {
9852 : 519225 : tree _q40 = TREE_OPERAND (_p1, 0);
9853 : 519225 : switch (TREE_CODE (_q40))
9854 : : {
9855 : 7 : case BIT_AND_EXPR:
9856 : 7 : {
9857 : 7 : tree _q50 = TREE_OPERAND (_q40, 0);
9858 : 7 : tree _q51 = TREE_OPERAND (_q40, 1);
9859 : 7 : switch (TREE_CODE (_q50))
9860 : : {
9861 : 7 : CASE_CONVERT:
9862 : 7 : {
9863 : 7 : tree _q60 = TREE_OPERAND (_q50, 0);
9864 : 7 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
9865 : : {
9866 : 0 : switch (TREE_CODE (_q51))
9867 : : {
9868 : 0 : case INTEGER_CST:
9869 : 0 : {
9870 : 0 : {
9871 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q50, _q20, _q51 };
9872 : 0 : tree res = generic_simplify_266 (loc, type, _p0, _p1, captures, EQ_EXPR);
9873 : 0 : if (res) return res;
9874 : : }
9875 : 0 : break;
9876 : : }
9877 : : default:;
9878 : : }
9879 : : }
9880 : : break;
9881 : : }
9882 : : default:;
9883 : : }
9884 : : break;
9885 : : }
9886 : : default:;
9887 : : }
9888 : : break;
9889 : : }
9890 : : default:;
9891 : : }
9892 : : break;
9893 : : }
9894 : 33647 : case BIT_IOR_EXPR:
9895 : 33647 : {
9896 : 33647 : tree _q20 = TREE_OPERAND (_p0, 0);
9897 : 33647 : tree _q21 = TREE_OPERAND (_p0, 1);
9898 : 33647 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
9899 : : {
9900 : 24 : {
9901 : 24 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9902 : 24 : tree res = generic_simplify_267 (loc, type, _p0, _p1, captures, EQ_EXPR);
9903 : 24 : if (res) return res;
9904 : : }
9905 : : }
9906 : 33647 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
9907 : : {
9908 : 46 : {
9909 : 46 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
9910 : 46 : tree res = generic_simplify_267 (loc, type, _p0, _p1, captures, EQ_EXPR);
9911 : 46 : if (res) return res;
9912 : : }
9913 : : }
9914 : : break;
9915 : : }
9916 : 23172855 : default:;
9917 : : }
9918 : 23172855 : switch (TREE_CODE (_p1))
9919 : : {
9920 : 679 : case BIT_IOR_EXPR:
9921 : 679 : {
9922 : 679 : tree _q30 = TREE_OPERAND (_p1, 0);
9923 : 679 : tree _q31 = TREE_OPERAND (_p1, 1);
9924 : 679 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
9925 : : {
9926 : 0 : {
9927 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p0 };
9928 : 0 : tree res = generic_simplify_267 (loc, type, _p0, _p1, captures, EQ_EXPR);
9929 : 0 : if (res) return res;
9930 : : }
9931 : : }
9932 : 679 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
9933 : : {
9934 : 0 : {
9935 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q31, _p0 };
9936 : 0 : tree res = generic_simplify_267 (loc, type, _p0, _p1, captures, EQ_EXPR);
9937 : 0 : if (res) return res;
9938 : : }
9939 : : }
9940 : : break;
9941 : : }
9942 : 23172855 : default:;
9943 : : }
9944 : 23172855 : switch (TREE_CODE (_p0))
9945 : : {
9946 : 2087854 : CASE_CONVERT:
9947 : 2087854 : {
9948 : 2087854 : tree _q20 = TREE_OPERAND (_p0, 0);
9949 : 2087854 : switch (TREE_CODE (_q20))
9950 : : {
9951 : 9 : case BIT_XOR_EXPR:
9952 : 9 : {
9953 : 9 : tree _q30 = TREE_OPERAND (_q20, 0);
9954 : 9 : tree _q31 = TREE_OPERAND (_q20, 1);
9955 : 9 : switch (TREE_CODE (_q31))
9956 : : {
9957 : 7 : case INTEGER_CST:
9958 : 7 : {
9959 : 7 : switch (TREE_CODE (_p1))
9960 : : {
9961 : 0 : case INTEGER_CST:
9962 : 0 : {
9963 : 0 : {
9964 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q31, _p1 };
9965 : 0 : tree res = generic_simplify_268 (loc, type, _p0, _p1, captures, EQ_EXPR);
9966 : 0 : if (res) return res;
9967 : : }
9968 : 0 : break;
9969 : : }
9970 : : default:;
9971 : : }
9972 : : break;
9973 : : }
9974 : : default:;
9975 : : }
9976 : : break;
9977 : : }
9978 : : default:;
9979 : : }
9980 : : break;
9981 : : }
9982 : 366 : case BIT_XOR_EXPR:
9983 : 366 : {
9984 : 366 : tree _q20 = TREE_OPERAND (_p0, 0);
9985 : 366 : tree _q21 = TREE_OPERAND (_p0, 1);
9986 : 366 : switch (TREE_CODE (_q21))
9987 : : {
9988 : 103 : case INTEGER_CST:
9989 : 103 : {
9990 : 103 : switch (TREE_CODE (_p1))
9991 : : {
9992 : 16 : case INTEGER_CST:
9993 : 16 : {
9994 : 16 : {
9995 : 16 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
9996 : 16 : tree res = generic_simplify_268 (loc, type, _p0, _p1, captures, EQ_EXPR);
9997 : 16 : if (res) return res;
9998 : : }
9999 : 0 : break;
10000 : : }
10001 : : default:;
10002 : : }
10003 : : break;
10004 : : }
10005 : : default:;
10006 : : }
10007 : : break;
10008 : : }
10009 : 23172839 : default:;
10010 : : }
10011 : 23172839 : {
10012 : 23172839 : tree _p0_pops[1];
10013 : 23172839 : if (tree_nop_convert (_p0, _p0_pops))
10014 : : {
10015 : 1769503 : tree _q20 = _p0_pops[0];
10016 : 1769503 : if (integer_zerop (_p1))
10017 : : {
10018 : 673264 : {
10019 : 673264 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
10020 : 673264 : tree res = generic_simplify_269 (loc, type, _p0, _p1, captures, EQ_EXPR);
10021 : 673264 : if (res) return res;
10022 : : }
10023 : : }
10024 : : }
10025 : : }
10026 : 22645770 : if (integer_zerop (_p1))
10027 : : {
10028 : 9307565 : {
10029 : 9307565 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
10030 : 9307565 : tree res = generic_simplify_269 (loc, type, _p0, _p1, captures, EQ_EXPR);
10031 : 9307565 : if (res) return res;
10032 : : }
10033 : : }
10034 : 22574354 : switch (TREE_CODE (_p0))
10035 : : {
10036 : 894767 : case BIT_AND_EXPR:
10037 : 894767 : {
10038 : 894767 : tree _q20 = TREE_OPERAND (_p0, 0);
10039 : 894767 : tree _q21 = TREE_OPERAND (_p0, 1);
10040 : 894767 : switch (TREE_CODE (_p1))
10041 : : {
10042 : 7652 : case BIT_AND_EXPR:
10043 : 7652 : {
10044 : 7652 : tree _q50 = TREE_OPERAND (_p1, 0);
10045 : 7652 : tree _q51 = TREE_OPERAND (_p1, 1);
10046 : 7652 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10047 : : {
10048 : 7127 : {
10049 : 7127 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
10050 : 7127 : tree res = generic_simplify_270 (loc, type, _p0, _p1, captures, EQ_EXPR);
10051 : 7127 : if (res) return res;
10052 : : }
10053 : : }
10054 : 525 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
10055 : : {
10056 : 28 : {
10057 : 28 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
10058 : 28 : tree res = generic_simplify_270 (loc, type, _p0, _p1, captures, EQ_EXPR);
10059 : 28 : if (res) return res;
10060 : : }
10061 : : }
10062 : 497 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
10063 : : {
10064 : 28 : {
10065 : 28 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
10066 : 28 : tree res = generic_simplify_270 (loc, type, _p0, _p1, captures, EQ_EXPR);
10067 : 28 : if (res) return res;
10068 : : }
10069 : : }
10070 : 469 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
10071 : : {
10072 : 28 : {
10073 : 28 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
10074 : 28 : tree res = generic_simplify_270 (loc, type, _p0, _p1, captures, EQ_EXPR);
10075 : 28 : if (res) return res;
10076 : : }
10077 : : }
10078 : : break;
10079 : : }
10080 : 887556 : default:;
10081 : : }
10082 : 887556 : if (integer_pow2p (_q21))
10083 : : {
10084 : 301312 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
10085 : : {
10086 : 115367 : {
10087 : 115367 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
10088 : 115367 : tree res = generic_simplify_271 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
10089 : 115367 : if (res) return res;
10090 : : }
10091 : : }
10092 : : }
10093 : 772207 : switch (TREE_CODE (_q20))
10094 : : {
10095 : 44769 : CASE_CONVERT:
10096 : 44769 : {
10097 : 44769 : tree _q30 = TREE_OPERAND (_q20, 0);
10098 : 44769 : if (integer_pow2p (_q21))
10099 : : {
10100 : 20820 : if (integer_zerop (_p1))
10101 : : {
10102 : 20818 : {
10103 : 20818 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q21 };
10104 : 20818 : tree res = generic_simplify_272 (loc, type, _p0, _p1, captures, EQ_EXPR, GE_EXPR);
10105 : 20818 : if (res) return res;
10106 : : }
10107 : : }
10108 : : }
10109 : : break;
10110 : : }
10111 : 771238 : default:;
10112 : : }
10113 : 771238 : if (integer_pow2p (_q21))
10114 : : {
10115 : 184994 : if (integer_zerop (_p1))
10116 : : {
10117 : 184865 : {
10118 : 184865 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q20, _q21 };
10119 : 184865 : tree res = generic_simplify_273 (loc, type, _p0, _p1, captures, EQ_EXPR, GE_EXPR);
10120 : 184865 : if (res) return res;
10121 : : }
10122 : : }
10123 : : }
10124 : : break;
10125 : : }
10126 : 1251 : case GE_EXPR:
10127 : 1251 : {
10128 : 1251 : tree _q20 = TREE_OPERAND (_p0, 0);
10129 : 1251 : tree _q21 = TREE_OPERAND (_p0, 1);
10130 : 1251 : if (integer_zerop (_q21))
10131 : : {
10132 : 108 : switch (TREE_CODE (_p1))
10133 : : {
10134 : 5 : case GE_EXPR:
10135 : 5 : {
10136 : 5 : tree _q50 = TREE_OPERAND (_p1, 0);
10137 : 5 : tree _q51 = TREE_OPERAND (_p1, 1);
10138 : 5 : if (integer_zerop (_q51))
10139 : : {
10140 : 5 : {
10141 : 5 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
10142 : 5 : tree res = generic_simplify_274 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR, GE_EXPR);
10143 : 5 : if (res) return res;
10144 : : }
10145 : : }
10146 : : break;
10147 : : }
10148 : 1 : case LT_EXPR:
10149 : 1 : {
10150 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
10151 : 1 : tree _q51 = TREE_OPERAND (_p1, 1);
10152 : 1 : if (integer_zerop (_q51))
10153 : : {
10154 : 1 : {
10155 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q51, _q20 };
10156 : 1 : tree res = generic_simplify_275 (loc, type, _p0, _p1, captures, EQ_EXPR, LT_EXPR);
10157 : 1 : if (res) return res;
10158 : : }
10159 : : }
10160 : : break;
10161 : : }
10162 : : default:;
10163 : : }
10164 : : }
10165 : : break;
10166 : : }
10167 : 887 : case LT_EXPR:
10168 : 887 : {
10169 : 887 : tree _q20 = TREE_OPERAND (_p0, 0);
10170 : 887 : tree _q21 = TREE_OPERAND (_p0, 1);
10171 : 887 : if (integer_zerop (_q21))
10172 : : {
10173 : 151 : switch (TREE_CODE (_p1))
10174 : : {
10175 : 11 : case LT_EXPR:
10176 : 11 : {
10177 : 11 : tree _q50 = TREE_OPERAND (_p1, 0);
10178 : 11 : tree _q51 = TREE_OPERAND (_p1, 1);
10179 : 11 : if (integer_zerop (_q51))
10180 : : {
10181 : 9 : {
10182 : 9 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
10183 : 9 : tree res = generic_simplify_274 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR, GE_EXPR);
10184 : 9 : if (res) return res;
10185 : : }
10186 : : }
10187 : : break;
10188 : : }
10189 : 1 : case GE_EXPR:
10190 : 1 : {
10191 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
10192 : 1 : tree _q51 = TREE_OPERAND (_p1, 1);
10193 : 1 : if (integer_zerop (_q51))
10194 : : {
10195 : 1 : {
10196 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
10197 : 1 : tree res = generic_simplify_276 (loc, type, _p0, _p1, captures, EQ_EXPR, LT_EXPR);
10198 : 1 : if (res) return res;
10199 : : }
10200 : : }
10201 : : break;
10202 : : }
10203 : : default:;
10204 : : }
10205 : : }
10206 : : break;
10207 : : }
10208 : 1560746 : CASE_CONVERT:
10209 : 1560746 : {
10210 : 1560746 : tree _q20 = TREE_OPERAND (_p0, 0);
10211 : 1560746 : switch (TREE_CODE (_q20))
10212 : : {
10213 : 177983 : case ADDR_EXPR:
10214 : 177983 : {
10215 : 177983 : switch (TREE_CODE (_p1))
10216 : : {
10217 : 150756 : CASE_CONVERT:
10218 : 150756 : {
10219 : 150756 : tree _q40 = TREE_OPERAND (_p1, 0);
10220 : 150756 : switch (TREE_CODE (_q40))
10221 : : {
10222 : 150756 : case ADDR_EXPR:
10223 : 150756 : {
10224 : 150756 : {
10225 : 150756 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
10226 : 150756 : tree res = generic_simplify_277 (loc, type, _p0, _p1, captures, EQ_EXPR);
10227 : 150756 : if (res) return res;
10228 : : }
10229 : 30 : break;
10230 : : }
10231 : : default:;
10232 : : }
10233 : : break;
10234 : : }
10235 : 20464 : case ADDR_EXPR:
10236 : 20464 : {
10237 : 20464 : {
10238 : 20464 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10239 : 20464 : tree res = generic_simplify_277 (loc, type, _p0, _p1, captures, EQ_EXPR);
10240 : 20464 : if (res) return res;
10241 : : }
10242 : 7824 : break;
10243 : : }
10244 : : default:;
10245 : : }
10246 : : break;
10247 : : }
10248 : : default:;
10249 : : }
10250 : : break;
10251 : : }
10252 : 15947 : case ADDR_EXPR:
10253 : 15947 : {
10254 : 15947 : switch (TREE_CODE (_p1))
10255 : : {
10256 : 95 : CASE_CONVERT:
10257 : 95 : {
10258 : 95 : tree _q30 = TREE_OPERAND (_p1, 0);
10259 : 95 : switch (TREE_CODE (_q30))
10260 : : {
10261 : 95 : case ADDR_EXPR:
10262 : 95 : {
10263 : 95 : {
10264 : 95 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q30 };
10265 : 95 : tree res = generic_simplify_278 (loc, type, _p0, _p1, captures, EQ_EXPR);
10266 : 95 : if (res) return res;
10267 : : }
10268 : 0 : break;
10269 : : }
10270 : : default:;
10271 : : }
10272 : : break;
10273 : : }
10274 : 13442 : case ADDR_EXPR:
10275 : 13442 : {
10276 : 13442 : {
10277 : 13442 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _p1 };
10278 : 13442 : tree res = generic_simplify_278 (loc, type, _p0, _p1, captures, EQ_EXPR);
10279 : 13442 : if (res) return res;
10280 : : }
10281 : 5487 : break;
10282 : : }
10283 : : default:;
10284 : : }
10285 : : break;
10286 : : }
10287 : 22279097 : default:;
10288 : : }
10289 : 22279097 : {
10290 : 22279097 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
10291 : 22279097 : tree res = generic_simplify_279 (loc, type, _p0, _p1, captures, EQ_EXPR);
10292 : 22279097 : if (res) return res;
10293 : : }
10294 : 22276634 : switch (TREE_CODE (_p0))
10295 : : {
10296 : 1397380 : CASE_CONVERT:
10297 : 1397380 : {
10298 : 1397380 : tree _q20 = TREE_OPERAND (_p0, 0);
10299 : 1397380 : switch (TREE_CODE (_p1))
10300 : : {
10301 : 245623 : case INTEGER_CST:
10302 : 245623 : {
10303 : 245623 : {
10304 : 245623 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
10305 : 245623 : tree res = generic_simplify_280 (loc, type, _p0, _p1, captures, EQ_EXPR);
10306 : 245623 : if (res) return res;
10307 : : }
10308 : 244504 : break;
10309 : : }
10310 : 1396261 : default:;
10311 : : }
10312 : 1396261 : switch (TREE_CODE (_q20))
10313 : : {
10314 : 0 : case NE_EXPR:
10315 : 0 : {
10316 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
10317 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
10318 : 0 : switch (TREE_CODE (_q31))
10319 : : {
10320 : 0 : case INTEGER_CST:
10321 : 0 : {
10322 : 0 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
10323 : : {
10324 : 0 : {
10325 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
10326 : 0 : tree res = generic_simplify_281 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
10327 : 0 : if (res) return res;
10328 : : }
10329 : : }
10330 : : break;
10331 : : }
10332 : : default:;
10333 : : }
10334 : : break;
10335 : : }
10336 : 0 : case EQ_EXPR:
10337 : 0 : {
10338 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
10339 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
10340 : 0 : switch (TREE_CODE (_q31))
10341 : : {
10342 : 0 : case INTEGER_CST:
10343 : 0 : {
10344 : 0 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
10345 : : {
10346 : 0 : {
10347 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
10348 : 0 : tree res = generic_simplify_281 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
10349 : 0 : if (res) return res;
10350 : : }
10351 : : }
10352 : : break;
10353 : : }
10354 : : default:;
10355 : : }
10356 : : break;
10357 : : }
10358 : : default:;
10359 : : }
10360 : : break;
10361 : : }
10362 : 22275515 : default:;
10363 : : }
10364 : 22275515 : switch (TREE_CODE (_p1))
10365 : : {
10366 : 656950 : CASE_CONVERT:
10367 : 656950 : {
10368 : 656950 : tree _q30 = TREE_OPERAND (_p1, 0);
10369 : 656950 : switch (TREE_CODE (_q30))
10370 : : {
10371 : 0 : case NE_EXPR:
10372 : 0 : {
10373 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
10374 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
10375 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
10376 : : {
10377 : 0 : switch (TREE_CODE (_q41))
10378 : : {
10379 : 0 : case INTEGER_CST:
10380 : 0 : {
10381 : 0 : {
10382 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
10383 : 0 : tree res = generic_simplify_281 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
10384 : 0 : if (res) return res;
10385 : : }
10386 : 0 : break;
10387 : : }
10388 : : default:;
10389 : : }
10390 : : }
10391 : : break;
10392 : : }
10393 : 0 : case EQ_EXPR:
10394 : 0 : {
10395 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
10396 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
10397 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
10398 : : {
10399 : 0 : switch (TREE_CODE (_q41))
10400 : : {
10401 : 0 : case INTEGER_CST:
10402 : 0 : {
10403 : 0 : {
10404 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
10405 : 0 : tree res = generic_simplify_281 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
10406 : 0 : if (res) return res;
10407 : : }
10408 : 0 : break;
10409 : : }
10410 : : default:;
10411 : : }
10412 : : }
10413 : : break;
10414 : : }
10415 : : default:;
10416 : : }
10417 : : break;
10418 : : }
10419 : 22275515 : default:;
10420 : : }
10421 : 22275515 : if (integer_onep (_p1))
10422 : : {
10423 : 1741580 : {
10424 : 1741580 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
10425 : 1741580 : if (TREE_CODE (TREE_TYPE (captures[0])) == BOOLEAN_TYPE
10426 : 1741580 : && types_match (type, TREE_TYPE (captures[0]))
10427 : : )
10428 : : {
10429 : 86602 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1636;
10430 : 86602 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1636;
10431 : 86602 : {
10432 : 86602 : tree res_op0;
10433 : 86602 : res_op0 = captures[0];
10434 : 86602 : tree _r;
10435 : 86602 : _r = non_lvalue_loc (loc, res_op0);
10436 : 86602 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 999, __FILE__, __LINE__, true);
10437 : 86602 : return _r;
10438 : : }
10439 : : next_after_fail1636:;
10440 : : }
10441 : : }
10442 : : }
10443 : 22188913 : switch (TREE_CODE (_p0))
10444 : : {
10445 : 770942 : case BIT_AND_EXPR:
10446 : 770942 : {
10447 : 770942 : tree _q20 = TREE_OPERAND (_p0, 0);
10448 : 770942 : tree _q21 = TREE_OPERAND (_p0, 1);
10449 : 770942 : switch (TREE_CODE (_q21))
10450 : : {
10451 : 386 : case VECTOR_CST:
10452 : 386 : {
10453 : 386 : if (integer_zerop (_p1))
10454 : : {
10455 : 382 : {
10456 : 382 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
10457 : 382 : const enum tree_code cmp = EQ_EXPR;
10458 : 382 : const enum tree_code icmp = LE_EXPR;
10459 : 382 : {
10460 : 382 : tree csts = bitmask_inv_cst_vector_p (captures[2]);
10461 : 382 : if (csts && (VECTOR_TYPE_P (TREE_TYPE (captures[2])) || single_use (captures[0]))
10462 : : )
10463 : : {
10464 : 2 : {
10465 : 2 : auto optab = VECTOR_TYPE_P (TREE_TYPE (captures[2]))
10466 : 2 : ? optab_vector : optab_default;
10467 : 2 : tree utype = unsigned_type_for (TREE_TYPE (captures[2]));
10468 : 2 : if (target_supports_op_p (utype, icmp, optab)
10469 : 2 : || (optimize_vectors_before_lowering_p ()
10470 : 2 : && (!target_supports_op_p (type, cmp, optab)
10471 : 0 : || !target_supports_op_p (type, BIT_AND_EXPR, optab)))
10472 : : )
10473 : : {
10474 : 2 : if (TYPE_UNSIGNED (TREE_TYPE (captures[2]))
10475 : : )
10476 : : {
10477 : 2 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1637;
10478 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1637;
10479 : 2 : {
10480 : 2 : tree res_op0;
10481 : 2 : res_op0 = captures[1];
10482 : 2 : tree res_op1;
10483 : 2 : res_op1 = csts;
10484 : 2 : tree _r;
10485 : 2 : _r = fold_build2_loc (loc, icmp, type, res_op0, res_op1);
10486 : 2 : if (TREE_SIDE_EFFECTS (captures[2]))
10487 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
10488 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1000, __FILE__, __LINE__, true);
10489 : 2 : return _r;
10490 : : }
10491 : 380 : next_after_fail1637:;
10492 : : }
10493 : : else
10494 : : {
10495 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1638;
10496 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1638;
10497 : 0 : {
10498 : 0 : tree res_op0;
10499 : 0 : {
10500 : 0 : tree _o1[1], _r1;
10501 : 0 : _o1[0] = captures[1];
10502 : 0 : if (TREE_TYPE (_o1[0]) != utype)
10503 : : {
10504 : 0 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, utype, _o1[0]);
10505 : : }
10506 : : else
10507 : : _r1 = _o1[0];
10508 : 0 : res_op0 = _r1;
10509 : : }
10510 : 0 : tree res_op1;
10511 : 0 : res_op1 = csts;
10512 : 0 : tree _r;
10513 : 0 : _r = fold_build2_loc (loc, icmp, type, res_op0, res_op1);
10514 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
10515 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
10516 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1001, __FILE__, __LINE__, true);
10517 : 0 : return _r;
10518 : : }
10519 : 380 : next_after_fail1638:;
10520 : : }
10521 : : }
10522 : : }
10523 : : }
10524 : : }
10525 : : }
10526 : : }
10527 : : break;
10528 : : }
10529 : 722606 : case INTEGER_CST:
10530 : 722606 : {
10531 : 722606 : if (integer_zerop (_p1))
10532 : : {
10533 : 577559 : {
10534 : 577559 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
10535 : 577559 : const enum tree_code cmp = EQ_EXPR;
10536 : 577559 : const enum tree_code icmp = LE_EXPR;
10537 : 577559 : {
10538 : 577559 : tree csts = bitmask_inv_cst_vector_p (captures[2]);
10539 : 577559 : if (csts && (VECTOR_TYPE_P (TREE_TYPE (captures[2])) || single_use (captures[0]))
10540 : : )
10541 : : {
10542 : 993 : {
10543 : 993 : auto optab = VECTOR_TYPE_P (TREE_TYPE (captures[2]))
10544 : 993 : ? optab_vector : optab_default;
10545 : 993 : tree utype = unsigned_type_for (TREE_TYPE (captures[2]));
10546 : 993 : if (target_supports_op_p (utype, icmp, optab)
10547 : 993 : || (optimize_vectors_before_lowering_p ()
10548 : 875 : && (!target_supports_op_p (type, cmp, optab)
10549 : 0 : || !target_supports_op_p (type, BIT_AND_EXPR, optab)))
10550 : : )
10551 : : {
10552 : 875 : if (TYPE_UNSIGNED (TREE_TYPE (captures[2]))
10553 : : )
10554 : : {
10555 : 586 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1639;
10556 : 586 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1639;
10557 : 586 : {
10558 : 586 : tree res_op0;
10559 : 586 : res_op0 = captures[1];
10560 : 586 : tree res_op1;
10561 : 586 : res_op1 = csts;
10562 : 586 : tree _r;
10563 : 586 : _r = fold_build2_loc (loc, icmp, type, res_op0, res_op1);
10564 : 586 : if (TREE_SIDE_EFFECTS (captures[2]))
10565 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
10566 : 586 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1000, __FILE__, __LINE__, true);
10567 : 586 : return _r;
10568 : : }
10569 : 576684 : next_after_fail1639:;
10570 : : }
10571 : : else
10572 : : {
10573 : 289 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1640;
10574 : 289 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1640;
10575 : 289 : {
10576 : 289 : tree res_op0;
10577 : 289 : {
10578 : 289 : tree _o1[1], _r1;
10579 : 289 : _o1[0] = captures[1];
10580 : 289 : if (TREE_TYPE (_o1[0]) != utype)
10581 : : {
10582 : 289 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, utype, _o1[0]);
10583 : : }
10584 : : else
10585 : : _r1 = _o1[0];
10586 : 289 : res_op0 = _r1;
10587 : : }
10588 : 289 : tree res_op1;
10589 : 289 : res_op1 = csts;
10590 : 289 : tree _r;
10591 : 289 : _r = fold_build2_loc (loc, icmp, type, res_op0, res_op1);
10592 : 289 : if (TREE_SIDE_EFFECTS (captures[2]))
10593 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
10594 : 289 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1001, __FILE__, __LINE__, true);
10595 : 289 : return _r;
10596 : : }
10597 : 576684 : next_after_fail1640:;
10598 : : }
10599 : : }
10600 : : }
10601 : : }
10602 : : }
10603 : : }
10604 : : }
10605 : : break;
10606 : : }
10607 : 770065 : default:;
10608 : : }
10609 : 770065 : switch (TREE_CODE (_q20))
10610 : : {
10611 : 0 : case VECTOR_CST:
10612 : 0 : {
10613 : 0 : if (integer_zerop (_p1))
10614 : : {
10615 : 0 : {
10616 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
10617 : 0 : const enum tree_code cmp = EQ_EXPR;
10618 : 0 : const enum tree_code icmp = LE_EXPR;
10619 : 0 : {
10620 : 0 : tree csts = bitmask_inv_cst_vector_p (captures[2]);
10621 : 0 : if (csts && (VECTOR_TYPE_P (TREE_TYPE (captures[2])) || single_use (captures[0]))
10622 : : )
10623 : : {
10624 : 0 : {
10625 : 0 : auto optab = VECTOR_TYPE_P (TREE_TYPE (captures[2]))
10626 : 0 : ? optab_vector : optab_default;
10627 : 0 : tree utype = unsigned_type_for (TREE_TYPE (captures[2]));
10628 : 0 : if (target_supports_op_p (utype, icmp, optab)
10629 : 0 : || (optimize_vectors_before_lowering_p ()
10630 : 0 : && (!target_supports_op_p (type, cmp, optab)
10631 : 0 : || !target_supports_op_p (type, BIT_AND_EXPR, optab)))
10632 : : )
10633 : : {
10634 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[2]))
10635 : : )
10636 : : {
10637 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1641;
10638 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1641;
10639 : 0 : {
10640 : 0 : tree res_op0;
10641 : 0 : res_op0 = captures[1];
10642 : 0 : tree res_op1;
10643 : 0 : res_op1 = csts;
10644 : 0 : tree _r;
10645 : 0 : _r = fold_build2_loc (loc, icmp, type, res_op0, res_op1);
10646 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
10647 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
10648 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1000, __FILE__, __LINE__, true);
10649 : 0 : return _r;
10650 : : }
10651 : 0 : next_after_fail1641:;
10652 : : }
10653 : : else
10654 : : {
10655 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1642;
10656 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1642;
10657 : 0 : {
10658 : 0 : tree res_op0;
10659 : 0 : {
10660 : 0 : tree _o1[1], _r1;
10661 : 0 : _o1[0] = captures[1];
10662 : 0 : if (TREE_TYPE (_o1[0]) != utype)
10663 : : {
10664 : 0 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, utype, _o1[0]);
10665 : : }
10666 : : else
10667 : : _r1 = _o1[0];
10668 : 0 : res_op0 = _r1;
10669 : : }
10670 : 0 : tree res_op1;
10671 : 0 : res_op1 = csts;
10672 : 0 : tree _r;
10673 : 0 : _r = fold_build2_loc (loc, icmp, type, res_op0, res_op1);
10674 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
10675 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
10676 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1001, __FILE__, __LINE__, true);
10677 : 0 : return _r;
10678 : : }
10679 : 0 : next_after_fail1642:;
10680 : : }
10681 : : }
10682 : : }
10683 : : }
10684 : : }
10685 : : }
10686 : : }
10687 : : break;
10688 : : }
10689 : 0 : case INTEGER_CST:
10690 : 0 : {
10691 : 0 : if (integer_zerop (_p1))
10692 : : {
10693 : 0 : {
10694 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
10695 : 0 : const enum tree_code cmp = EQ_EXPR;
10696 : 0 : const enum tree_code icmp = LE_EXPR;
10697 : 0 : {
10698 : 0 : tree csts = bitmask_inv_cst_vector_p (captures[2]);
10699 : 0 : if (csts && (VECTOR_TYPE_P (TREE_TYPE (captures[2])) || single_use (captures[0]))
10700 : : )
10701 : : {
10702 : 0 : {
10703 : 0 : auto optab = VECTOR_TYPE_P (TREE_TYPE (captures[2]))
10704 : 0 : ? optab_vector : optab_default;
10705 : 0 : tree utype = unsigned_type_for (TREE_TYPE (captures[2]));
10706 : 0 : if (target_supports_op_p (utype, icmp, optab)
10707 : 0 : || (optimize_vectors_before_lowering_p ()
10708 : 0 : && (!target_supports_op_p (type, cmp, optab)
10709 : 0 : || !target_supports_op_p (type, BIT_AND_EXPR, optab)))
10710 : : )
10711 : : {
10712 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[2]))
10713 : : )
10714 : : {
10715 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1643;
10716 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1643;
10717 : 0 : {
10718 : 0 : tree res_op0;
10719 : 0 : res_op0 = captures[1];
10720 : 0 : tree res_op1;
10721 : 0 : res_op1 = csts;
10722 : 0 : tree _r;
10723 : 0 : _r = fold_build2_loc (loc, icmp, type, res_op0, res_op1);
10724 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
10725 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
10726 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1000, __FILE__, __LINE__, true);
10727 : 0 : return _r;
10728 : : }
10729 : 0 : next_after_fail1643:;
10730 : : }
10731 : : else
10732 : : {
10733 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1644;
10734 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1644;
10735 : 0 : {
10736 : 0 : tree res_op0;
10737 : 0 : {
10738 : 0 : tree _o1[1], _r1;
10739 : 0 : _o1[0] = captures[1];
10740 : 0 : if (TREE_TYPE (_o1[0]) != utype)
10741 : : {
10742 : 0 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, utype, _o1[0]);
10743 : : }
10744 : : else
10745 : : _r1 = _o1[0];
10746 : 0 : res_op0 = _r1;
10747 : : }
10748 : 0 : tree res_op1;
10749 : 0 : res_op1 = csts;
10750 : 0 : tree _r;
10751 : 0 : _r = fold_build2_loc (loc, icmp, type, res_op0, res_op1);
10752 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
10753 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
10754 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1001, __FILE__, __LINE__, true);
10755 : 0 : return _r;
10756 : : }
10757 : 0 : next_after_fail1644:;
10758 : : }
10759 : : }
10760 : : }
10761 : : }
10762 : : }
10763 : : }
10764 : : }
10765 : : break;
10766 : : }
10767 : : default:;
10768 : : }
10769 : : break;
10770 : : }
10771 : 16835 : case RSHIFT_EXPR:
10772 : 16835 : {
10773 : 16835 : tree _q20 = TREE_OPERAND (_p0, 0);
10774 : 16835 : tree _q21 = TREE_OPERAND (_p0, 1);
10775 : 16835 : switch (TREE_CODE (_q20))
10776 : : {
10777 : 1 : case MULT_EXPR:
10778 : 1 : {
10779 : 1 : tree _q30 = TREE_OPERAND (_q20, 0);
10780 : 1 : tree _q31 = TREE_OPERAND (_q20, 1);
10781 : 1 : switch (TREE_CODE (_q30))
10782 : : {
10783 : 1 : CASE_CONVERT:
10784 : 1 : {
10785 : 1 : tree _q40 = TREE_OPERAND (_q30, 0);
10786 : 1 : switch (TREE_CODE (_q31))
10787 : : {
10788 : 1 : CASE_CONVERT:
10789 : 1 : {
10790 : 1 : tree _q60 = TREE_OPERAND (_q31, 0);
10791 : 1 : switch (TREE_CODE (_q21))
10792 : : {
10793 : 1 : case INTEGER_CST:
10794 : 1 : {
10795 : 1 : if (integer_zerop (_p1))
10796 : : {
10797 : 1 : {
10798 : 1 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q30, _q40, _q60, _q21 };
10799 : 1 : tree res = generic_simplify_282 (loc, type, _p0, _p1, captures, EQ_EXPR);
10800 : 1 : if (res) return res;
10801 : : }
10802 : : }
10803 : : break;
10804 : : }
10805 : : default:;
10806 : : }
10807 : : break;
10808 : : }
10809 : : default:;
10810 : : }
10811 : : break;
10812 : : }
10813 : : default:;
10814 : : }
10815 : : break;
10816 : : }
10817 : : default:;
10818 : : }
10819 : : break;
10820 : : }
10821 : 662541 : case PLUS_EXPR:
10822 : 662541 : {
10823 : 662541 : tree _q20 = TREE_OPERAND (_p0, 0);
10824 : 662541 : tree _q21 = TREE_OPERAND (_p0, 1);
10825 : 662541 : switch (TREE_CODE (_q21))
10826 : : {
10827 : 615428 : case INTEGER_CST:
10828 : 615428 : {
10829 : 615428 : switch (TREE_CODE (_p1))
10830 : : {
10831 : 350370 : case INTEGER_CST:
10832 : 350370 : {
10833 : 350370 : {
10834 : 350370 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
10835 : 350370 : tree res = generic_simplify_283 (loc, type, _p0, _p1, captures, PLUS_EXPR, MINUS_EXPR, EQ_EXPR);
10836 : 350370 : if (res) return res;
10837 : : }
10838 : 14 : break;
10839 : : }
10840 : : default:;
10841 : : }
10842 : : break;
10843 : : }
10844 : : default:;
10845 : : }
10846 : : break;
10847 : : }
10848 : 88444 : case MINUS_EXPR:
10849 : 88444 : {
10850 : 88444 : tree _q20 = TREE_OPERAND (_p0, 0);
10851 : 88444 : tree _q21 = TREE_OPERAND (_p0, 1);
10852 : 88444 : switch (TREE_CODE (_q21))
10853 : : {
10854 : 16 : case INTEGER_CST:
10855 : 16 : {
10856 : 16 : switch (TREE_CODE (_p1))
10857 : : {
10858 : 16 : case INTEGER_CST:
10859 : 16 : {
10860 : 16 : {
10861 : 16 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
10862 : 16 : tree res = generic_simplify_283 (loc, type, _p0, _p1, captures, MINUS_EXPR, PLUS_EXPR, EQ_EXPR);
10863 : 16 : if (res) return res;
10864 : : }
10865 : 16 : break;
10866 : : }
10867 : : default:;
10868 : : }
10869 : : break;
10870 : : }
10871 : 88444 : default:;
10872 : : }
10873 : 88444 : switch (TREE_CODE (_q20))
10874 : : {
10875 : 39772 : case INTEGER_CST:
10876 : 39772 : {
10877 : 39772 : switch (TREE_CODE (_p1))
10878 : : {
10879 : 38839 : case INTEGER_CST:
10880 : 38839 : {
10881 : 38839 : {
10882 : 38839 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
10883 : 38839 : tree res = generic_simplify_284 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
10884 : 38839 : if (res) return res;
10885 : : }
10886 : 0 : break;
10887 : : }
10888 : : default:;
10889 : : }
10890 : : break;
10891 : : }
10892 : : default:;
10893 : : }
10894 : : break;
10895 : : }
10896 : 1796184 : case CALL_EXPR:
10897 : 1796184 : switch (get_call_combined_fn (_p0))
10898 : : {
10899 : 19 : case CFN_BUILT_IN_CLZ:
10900 : 19 : if (call_expr_nargs (_p0) == 1)
10901 : : {
10902 : 19 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10903 : 19 : switch (TREE_CODE (_p1))
10904 : : {
10905 : 19 : case INTEGER_CST:
10906 : 19 : {
10907 : 19 : {
10908 : 19 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10909 : 19 : tree res = generic_simplify_285 (loc, type, _p0, _p1, captures, EQ_EXPR, LT_EXPR, CFN_BUILT_IN_CLZ);
10910 : 19 : if (res) return res;
10911 : : }
10912 : 16 : break;
10913 : : }
10914 : : default:;
10915 : : }
10916 : : }
10917 : : break;
10918 : 17 : case CFN_BUILT_IN_CTZ:
10919 : 17 : if (call_expr_nargs (_p0) == 1)
10920 : : {
10921 : 17 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10922 : 17 : switch (TREE_CODE (_p1))
10923 : : {
10924 : 17 : case INTEGER_CST:
10925 : 17 : {
10926 : 17 : {
10927 : 17 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10928 : 17 : tree res = generic_simplify_287 (loc, type, _p0, _p1, captures, EQ_EXPR, CFN_BUILT_IN_CTZ);
10929 : 17 : if (res) return res;
10930 : : }
10931 : 16 : break;
10932 : : }
10933 : : default:;
10934 : : }
10935 : : }
10936 : : break;
10937 : 4 : case CFN_BUILT_IN_FFS:
10938 : 4 : if (call_expr_nargs (_p0) == 1)
10939 : : {
10940 : 4 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10941 : 4 : switch (TREE_CODE (_p1))
10942 : : {
10943 : 4 : case INTEGER_CST:
10944 : 4 : {
10945 : 4 : {
10946 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10947 : 4 : tree res = generic_simplify_290 (loc, type, _p0, _p1, captures, EQ_EXPR, CFN_BUILT_IN_FFS);
10948 : 4 : if (res) return res;
10949 : : }
10950 : 0 : break;
10951 : : }
10952 : : default:;
10953 : : }
10954 : : }
10955 : : break;
10956 : 0 : case CFN_REDUC_IOR:
10957 : 0 : if (call_expr_nargs (_p0) == 1)
10958 : : {
10959 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10960 : 0 : if (integer_zerop (_p1))
10961 : : {
10962 : 0 : {
10963 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
10964 : 0 : tree res = generic_simplify_291 (loc, type, _p0, _p1, captures, EQ_EXPR);
10965 : 0 : if (res) return res;
10966 : : }
10967 : : }
10968 : : }
10969 : : break;
10970 : 0 : case CFN_BUILT_IN_FFSIMAX:
10971 : 0 : if (call_expr_nargs (_p0) == 1)
10972 : : {
10973 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10974 : 0 : switch (TREE_CODE (_p1))
10975 : : {
10976 : 0 : case INTEGER_CST:
10977 : 0 : {
10978 : 0 : {
10979 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10980 : 0 : tree res = generic_simplify_290 (loc, type, _p0, _p1, captures, EQ_EXPR, CFN_BUILT_IN_FFSIMAX);
10981 : 0 : if (res) return res;
10982 : : }
10983 : 0 : break;
10984 : : }
10985 : : default:;
10986 : : }
10987 : : }
10988 : : break;
10989 : 15 : case CFN_BUILT_IN_POPCOUNT:
10990 : 15 : if (call_expr_nargs (_p0) == 1)
10991 : : {
10992 : 15 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10993 : 15 : if (integer_zerop (_p1))
10994 : : {
10995 : 1 : {
10996 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
10997 : 1 : tree res = generic_simplify_289 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR, CFN_BUILT_IN_POPCOUNT);
10998 : 1 : if (res) return res;
10999 : : }
11000 : : }
11001 : : }
11002 : : break;
11003 : 0 : case CFN_BUILT_IN_CLZL:
11004 : 0 : if (call_expr_nargs (_p0) == 1)
11005 : : {
11006 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11007 : 0 : switch (TREE_CODE (_p1))
11008 : : {
11009 : 0 : case INTEGER_CST:
11010 : 0 : {
11011 : 0 : {
11012 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
11013 : 0 : tree res = generic_simplify_285 (loc, type, _p0, _p1, captures, EQ_EXPR, LT_EXPR, CFN_BUILT_IN_CLZL);
11014 : 0 : if (res) return res;
11015 : : }
11016 : 0 : break;
11017 : : }
11018 : : default:;
11019 : : }
11020 : : }
11021 : : break;
11022 : 16 : case CFN_BUILT_IN_CTZL:
11023 : 16 : if (call_expr_nargs (_p0) == 1)
11024 : : {
11025 : 16 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11026 : 16 : switch (TREE_CODE (_p1))
11027 : : {
11028 : 16 : case INTEGER_CST:
11029 : 16 : {
11030 : 16 : {
11031 : 16 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
11032 : 16 : tree res = generic_simplify_287 (loc, type, _p0, _p1, captures, EQ_EXPR, CFN_BUILT_IN_CTZL);
11033 : 16 : if (res) return res;
11034 : : }
11035 : 16 : break;
11036 : : }
11037 : : default:;
11038 : : }
11039 : : }
11040 : : break;
11041 : 1 : case CFN_BUILT_IN_FFSL:
11042 : 1 : if (call_expr_nargs (_p0) == 1)
11043 : : {
11044 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11045 : 1 : switch (TREE_CODE (_p1))
11046 : : {
11047 : 1 : case INTEGER_CST:
11048 : 1 : {
11049 : 1 : {
11050 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
11051 : 1 : tree res = generic_simplify_290 (loc, type, _p0, _p1, captures, EQ_EXPR, CFN_BUILT_IN_FFSL);
11052 : 1 : if (res) return res;
11053 : : }
11054 : 0 : break;
11055 : : }
11056 : : default:;
11057 : : }
11058 : : }
11059 : : break;
11060 : 7 : case CFN_BUILT_IN_POPCOUNTLL:
11061 : 7 : if (call_expr_nargs (_p0) == 1)
11062 : : {
11063 : 7 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11064 : 7 : if (integer_zerop (_p1))
11065 : : {
11066 : 1 : {
11067 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
11068 : 1 : tree res = generic_simplify_289 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR, CFN_BUILT_IN_POPCOUNTLL);
11069 : 1 : if (res) return res;
11070 : : }
11071 : : }
11072 : : }
11073 : : break;
11074 : 0 : case CFN_BUILT_IN_CTZIMAX:
11075 : 0 : if (call_expr_nargs (_p0) == 1)
11076 : : {
11077 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11078 : 0 : switch (TREE_CODE (_p1))
11079 : : {
11080 : 0 : case INTEGER_CST:
11081 : 0 : {
11082 : 0 : {
11083 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
11084 : 0 : tree res = generic_simplify_287 (loc, type, _p0, _p1, captures, EQ_EXPR, CFN_BUILT_IN_CTZIMAX);
11085 : 0 : if (res) return res;
11086 : : }
11087 : 0 : break;
11088 : : }
11089 : : default:;
11090 : : }
11091 : : }
11092 : : break;
11093 : 0 : case CFN_POPCOUNT:
11094 : 0 : if (call_expr_nargs (_p0) == 1)
11095 : : {
11096 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11097 : 0 : if (integer_zerop (_p1))
11098 : : {
11099 : 0 : {
11100 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
11101 : 0 : tree res = generic_simplify_289 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR, CFN_POPCOUNT);
11102 : 0 : if (res) return res;
11103 : : }
11104 : : }
11105 : : }
11106 : : break;
11107 : 0 : case CFN_CLZ:
11108 : 0 : if (call_expr_nargs (_p0) == 1)
11109 : : {
11110 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11111 : 0 : switch (TREE_CODE (_p1))
11112 : : {
11113 : 0 : case INTEGER_CST:
11114 : 0 : {
11115 : 0 : {
11116 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
11117 : 0 : tree res = generic_simplify_285 (loc, type, _p0, _p1, captures, EQ_EXPR, LT_EXPR, CFN_CLZ);
11118 : 0 : if (res) return res;
11119 : : }
11120 : 0 : break;
11121 : : }
11122 : : default:;
11123 : : }
11124 : : }
11125 : 0 : if (call_expr_nargs (_p0) == 2)
11126 : : {
11127 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11128 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
11129 : 0 : switch (TREE_CODE (_p1))
11130 : : {
11131 : 0 : case INTEGER_CST:
11132 : 0 : {
11133 : 0 : {
11134 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
11135 : 0 : tree res = generic_simplify_286 (loc, type, _p0, _p1, captures, EQ_EXPR, LT_EXPR);
11136 : 0 : if (res) return res;
11137 : : }
11138 : 0 : break;
11139 : : }
11140 : : default:;
11141 : : }
11142 : : }
11143 : : break;
11144 : 0 : case CFN_CTZ:
11145 : 0 : if (call_expr_nargs (_p0) == 1)
11146 : : {
11147 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11148 : 0 : switch (TREE_CODE (_p1))
11149 : : {
11150 : 0 : case INTEGER_CST:
11151 : 0 : {
11152 : 0 : {
11153 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
11154 : 0 : tree res = generic_simplify_287 (loc, type, _p0, _p1, captures, EQ_EXPR, CFN_CTZ);
11155 : 0 : if (res) return res;
11156 : : }
11157 : 0 : break;
11158 : : }
11159 : : default:;
11160 : : }
11161 : : }
11162 : 0 : if (call_expr_nargs (_p0) == 2)
11163 : : {
11164 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11165 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
11166 : 0 : switch (TREE_CODE (_p1))
11167 : : {
11168 : 0 : case INTEGER_CST:
11169 : 0 : {
11170 : 0 : {
11171 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
11172 : 0 : tree res = generic_simplify_288 (loc, type, _p0, _p1, captures, EQ_EXPR);
11173 : 0 : if (res) return res;
11174 : : }
11175 : 0 : break;
11176 : : }
11177 : : default:;
11178 : : }
11179 : : }
11180 : : break;
11181 : 0 : case CFN_FFS:
11182 : 0 : if (call_expr_nargs (_p0) == 1)
11183 : : {
11184 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11185 : 0 : switch (TREE_CODE (_p1))
11186 : : {
11187 : 0 : case INTEGER_CST:
11188 : 0 : {
11189 : 0 : {
11190 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
11191 : 0 : tree res = generic_simplify_290 (loc, type, _p0, _p1, captures, EQ_EXPR, CFN_FFS);
11192 : 0 : if (res) return res;
11193 : : }
11194 : 0 : break;
11195 : : }
11196 : : default:;
11197 : : }
11198 : : }
11199 : : break;
11200 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
11201 : 0 : if (call_expr_nargs (_p0) == 1)
11202 : : {
11203 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11204 : 0 : if (integer_zerop (_p1))
11205 : : {
11206 : 0 : {
11207 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
11208 : 0 : tree res = generic_simplify_289 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
11209 : 0 : if (res) return res;
11210 : : }
11211 : : }
11212 : : }
11213 : : break;
11214 : 0 : case CFN_BUILT_IN_CLZIMAX:
11215 : 0 : if (call_expr_nargs (_p0) == 1)
11216 : : {
11217 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11218 : 0 : switch (TREE_CODE (_p1))
11219 : : {
11220 : 0 : case INTEGER_CST:
11221 : 0 : {
11222 : 0 : {
11223 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
11224 : 0 : tree res = generic_simplify_285 (loc, type, _p0, _p1, captures, EQ_EXPR, LT_EXPR, CFN_BUILT_IN_CLZIMAX);
11225 : 0 : if (res) return res;
11226 : : }
11227 : 0 : break;
11228 : : }
11229 : : default:;
11230 : : }
11231 : : }
11232 : : break;
11233 : 7 : case CFN_BUILT_IN_POPCOUNTL:
11234 : 7 : if (call_expr_nargs (_p0) == 1)
11235 : : {
11236 : 7 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11237 : 7 : if (integer_zerop (_p1))
11238 : : {
11239 : 1 : {
11240 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
11241 : 1 : tree res = generic_simplify_289 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR, CFN_BUILT_IN_POPCOUNTL);
11242 : 1 : if (res) return res;
11243 : : }
11244 : : }
11245 : : }
11246 : : break;
11247 : 16 : case CFN_BUILT_IN_CLZLL:
11248 : 16 : if (call_expr_nargs (_p0) == 1)
11249 : : {
11250 : 16 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11251 : 16 : switch (TREE_CODE (_p1))
11252 : : {
11253 : 16 : case INTEGER_CST:
11254 : 16 : {
11255 : 16 : {
11256 : 16 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
11257 : 16 : tree res = generic_simplify_285 (loc, type, _p0, _p1, captures, EQ_EXPR, LT_EXPR, CFN_BUILT_IN_CLZLL);
11258 : 16 : if (res) return res;
11259 : : }
11260 : 16 : break;
11261 : : }
11262 : : default:;
11263 : : }
11264 : : }
11265 : : break;
11266 : 0 : case CFN_BUILT_IN_CTZLL:
11267 : 0 : if (call_expr_nargs (_p0) == 1)
11268 : : {
11269 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11270 : 0 : switch (TREE_CODE (_p1))
11271 : : {
11272 : 0 : case INTEGER_CST:
11273 : 0 : {
11274 : 0 : {
11275 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
11276 : 0 : tree res = generic_simplify_287 (loc, type, _p0, _p1, captures, EQ_EXPR, CFN_BUILT_IN_CTZLL);
11277 : 0 : if (res) return res;
11278 : : }
11279 : 0 : break;
11280 : : }
11281 : : default:;
11282 : : }
11283 : : }
11284 : : break;
11285 : 0 : case CFN_BUILT_IN_FFSLL:
11286 : 0 : if (call_expr_nargs (_p0) == 1)
11287 : : {
11288 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11289 : 0 : switch (TREE_CODE (_p1))
11290 : : {
11291 : 0 : case INTEGER_CST:
11292 : 0 : {
11293 : 0 : {
11294 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
11295 : 0 : tree res = generic_simplify_290 (loc, type, _p0, _p1, captures, EQ_EXPR, CFN_BUILT_IN_FFSLL);
11296 : 0 : if (res) return res;
11297 : : }
11298 : 0 : break;
11299 : : }
11300 : : default:;
11301 : : }
11302 : : }
11303 : : break;
11304 : : default:;
11305 : : }
11306 : : break;
11307 : : default:;
11308 : : }
11309 : : return NULL_TREE;
11310 : : }
11311 : :
11312 : : tree
11313 : 839007 : generic_simplify_COMPLEX_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
11314 : : {
11315 : 839007 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
11316 : 839007 : switch (TREE_CODE (_p0))
11317 : : {
11318 : 32 : case REALPART_EXPR:
11319 : 32 : {
11320 : 32 : tree _q20 = TREE_OPERAND (_p0, 0);
11321 : 32 : switch (TREE_CODE (_p1))
11322 : : {
11323 : 22 : case IMAGPART_EXPR:
11324 : 22 : {
11325 : 22 : tree _q40 = TREE_OPERAND (_p1, 0);
11326 : 22 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
11327 : : {
11328 : 22 : {
11329 : 22 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
11330 : 22 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1880;
11331 : 22 : {
11332 : 22 : tree _r;
11333 : 22 : _r = captures[0];
11334 : 22 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1047, __FILE__, __LINE__, true);
11335 : 22 : return _r;
11336 : : }
11337 : 0 : next_after_fail1880:;
11338 : : }
11339 : : }
11340 : : break;
11341 : : }
11342 : : default:;
11343 : : }
11344 : : break;
11345 : : }
11346 : : default:;
11347 : : }
11348 : : return NULL_TREE;
11349 : : }
11350 : :
11351 : : tree
11352 : 836086 : generic_simplify_UNLT_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
11353 : : {
11354 : 836086 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
11355 : 836086 : switch (TREE_CODE (_p0))
11356 : : {
11357 : 0 : case VEC_COND_EXPR:
11358 : 0 : {
11359 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11360 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11361 : 0 : tree _q22 = TREE_OPERAND (_p0, 2);
11362 : 0 : switch (TREE_CODE (_p1))
11363 : : {
11364 : 0 : case VEC_COND_EXPR:
11365 : 0 : {
11366 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
11367 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
11368 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
11369 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
11370 : : {
11371 : 0 : {
11372 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
11373 : 0 : if (VECTOR_TYPE_P (type)
11374 : 0 : && (TREE_CODE_CLASS (UNLT_EXPR) != tcc_comparison
11375 : 0 : || types_match (type, TREE_TYPE (captures[2]))
11376 : 0 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
11377 : : || (optimize_vectors_before_lowering_p ()
11378 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
11379 : : )
11380 : : {
11381 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1891;
11382 : 0 : {
11383 : 0 : tree res_op0;
11384 : 0 : res_op0 = captures[1];
11385 : 0 : tree res_op1;
11386 : 0 : {
11387 : 0 : tree _o1[2], _r1;
11388 : 0 : _o1[0] = captures[2];
11389 : 0 : _o1[1] = captures[5];
11390 : 0 : _r1 = fold_build2_loc (loc, UNLT_EXPR, type, _o1[0], _o1[1]);
11391 : 0 : if (EXPR_P (_r1))
11392 : 0 : goto next_after_fail1891;
11393 : 0 : res_op1 = _r1;
11394 : : }
11395 : 0 : tree res_op2;
11396 : 0 : {
11397 : 0 : tree _o1[2], _r1;
11398 : 0 : _o1[0] = captures[3];
11399 : 0 : _o1[1] = captures[6];
11400 : 0 : _r1 = fold_build2_loc (loc, UNLT_EXPR, type, _o1[0], _o1[1]);
11401 : 0 : if (EXPR_P (_r1))
11402 : 0 : goto next_after_fail1891;
11403 : 0 : res_op2 = _r1;
11404 : : }
11405 : 0 : tree _r;
11406 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11407 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 908, __FILE__, __LINE__, true);
11408 : 0 : return _r;
11409 : : }
11410 : 0 : next_after_fail1891:;
11411 : : }
11412 : : }
11413 : : }
11414 : : break;
11415 : : }
11416 : 0 : default:;
11417 : : }
11418 : 0 : {
11419 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
11420 : 0 : if (VECTOR_TYPE_P (type)
11421 : 0 : && (TREE_CODE_CLASS (UNLT_EXPR) != tcc_comparison
11422 : 0 : || types_match (type, TREE_TYPE (captures[2]))
11423 : 0 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
11424 : : || (optimize_vectors_before_lowering_p ()
11425 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
11426 : : )
11427 : : {
11428 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1892;
11429 : 0 : {
11430 : 0 : if (! tree_invariant_p (captures[4])) goto next_after_fail1892;
11431 : 0 : tree res_op0;
11432 : 0 : res_op0 = captures[1];
11433 : 0 : tree res_op1;
11434 : 0 : {
11435 : 0 : tree _o1[2], _r1;
11436 : 0 : _o1[0] = captures[2];
11437 : 0 : _o1[1] = unshare_expr (captures[4]);
11438 : 0 : _r1 = fold_build2_loc (loc, UNLT_EXPR, type, _o1[0], _o1[1]);
11439 : 0 : if (EXPR_P (_r1))
11440 : 0 : goto next_after_fail1892;
11441 : 0 : res_op1 = _r1;
11442 : : }
11443 : 0 : tree res_op2;
11444 : 0 : {
11445 : 0 : tree _o1[2], _r1;
11446 : 0 : _o1[0] = captures[3];
11447 : 0 : _o1[1] = captures[4];
11448 : 0 : _r1 = fold_build2_loc (loc, UNLT_EXPR, type, _o1[0], _o1[1]);
11449 : 0 : if (EXPR_P (_r1))
11450 : 0 : goto next_after_fail1892;
11451 : 0 : res_op2 = _r1;
11452 : : }
11453 : 0 : tree _r;
11454 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11455 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 909, __FILE__, __LINE__, true);
11456 : 0 : return _r;
11457 : : }
11458 : 0 : next_after_fail1892:;
11459 : : }
11460 : : }
11461 : 0 : break;
11462 : : }
11463 : 836086 : default:;
11464 : : }
11465 : 836086 : switch (TREE_CODE (_p1))
11466 : : {
11467 : 0 : case VEC_COND_EXPR:
11468 : 0 : {
11469 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
11470 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
11471 : 0 : tree _q32 = TREE_OPERAND (_p1, 2);
11472 : 0 : {
11473 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
11474 : 0 : if (VECTOR_TYPE_P (type)
11475 : 0 : && (TREE_CODE_CLASS (UNLT_EXPR) != tcc_comparison
11476 : 0 : || types_match (type, TREE_TYPE (captures[3]))
11477 : 0 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
11478 : : || (optimize_vectors_before_lowering_p ()
11479 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
11480 : : )
11481 : : {
11482 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1893;
11483 : 0 : {
11484 : 0 : if (! tree_invariant_p (captures[0])) goto next_after_fail1893;
11485 : 0 : tree res_op0;
11486 : 0 : res_op0 = captures[2];
11487 : 0 : tree res_op1;
11488 : 0 : {
11489 : 0 : tree _o1[2], _r1;
11490 : 0 : _o1[0] = unshare_expr (captures[0]);
11491 : 0 : _o1[1] = captures[3];
11492 : 0 : _r1 = fold_build2_loc (loc, UNLT_EXPR, type, _o1[0], _o1[1]);
11493 : 0 : if (EXPR_P (_r1))
11494 : 0 : goto next_after_fail1893;
11495 : 0 : res_op1 = _r1;
11496 : : }
11497 : 0 : tree res_op2;
11498 : 0 : {
11499 : 0 : tree _o1[2], _r1;
11500 : 0 : _o1[0] = captures[0];
11501 : 0 : _o1[1] = captures[4];
11502 : 0 : _r1 = fold_build2_loc (loc, UNLT_EXPR, type, _o1[0], _o1[1]);
11503 : 0 : if (EXPR_P (_r1))
11504 : 0 : goto next_after_fail1893;
11505 : 0 : res_op2 = _r1;
11506 : : }
11507 : 0 : tree _r;
11508 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11509 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 910, __FILE__, __LINE__, true);
11510 : 0 : return _r;
11511 : : }
11512 : 0 : next_after_fail1893:;
11513 : : }
11514 : : }
11515 : 0 : break;
11516 : : }
11517 : 836086 : default:;
11518 : : }
11519 : 836086 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
11520 : : {
11521 : 0 : {
11522 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
11523 : 0 : tree res = generic_simplify_538 (loc, type, _p0, _p1, captures, UNLT_EXPR);
11524 : 0 : if (res) return res;
11525 : : }
11526 : : }
11527 : 836086 : switch (TREE_CODE (_p0))
11528 : : {
11529 : 283 : case FLOAT_EXPR:
11530 : 283 : {
11531 : 283 : tree _q20 = TREE_OPERAND (_p0, 0);
11532 : 283 : switch (TREE_CODE (_p1))
11533 : : {
11534 : 0 : case FLOAT_EXPR:
11535 : 0 : {
11536 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
11537 : 0 : {
11538 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
11539 : 0 : tree res = generic_simplify_254 (loc, type, _p0, _p1, captures, UNLT_EXPR, LT_EXPR);
11540 : 0 : if (res) return res;
11541 : : }
11542 : 0 : break;
11543 : : }
11544 : : default:;
11545 : : }
11546 : : break;
11547 : : }
11548 : 0 : case NEGATE_EXPR:
11549 : 0 : {
11550 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11551 : 0 : switch (TREE_CODE (_p1))
11552 : : {
11553 : 0 : case NEGATE_EXPR:
11554 : 0 : {
11555 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
11556 : 0 : {
11557 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
11558 : 0 : tree res = generic_simplify_257 (loc, type, _p0, _p1, captures, UNLT_EXPR, UNGT_EXPR);
11559 : 0 : if (res) return res;
11560 : : }
11561 : 0 : break;
11562 : : }
11563 : 0 : default:;
11564 : : }
11565 : 0 : if (CONSTANT_CLASS_P (_p1))
11566 : : {
11567 : 0 : {
11568 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
11569 : 0 : tree res = generic_simplify_258 (loc, type, _p0, _p1, captures, UNLT_EXPR, UNGT_EXPR);
11570 : 0 : if (res) return res;
11571 : : }
11572 : : }
11573 : : break;
11574 : : }
11575 : 836086 : default:;
11576 : : }
11577 : 836086 : switch (TREE_CODE (_p1))
11578 : : {
11579 : 419433 : case REAL_CST:
11580 : 419433 : {
11581 : 419433 : {
11582 : 419433 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
11583 : 419433 : tree res = generic_simplify_537 (loc, type, _p0, _p1, captures, UNLT_EXPR);
11584 : 419433 : if (res) return res;
11585 : : }
11586 : 419431 : break;
11587 : : }
11588 : : default:;
11589 : : }
11590 : : return NULL_TREE;
11591 : : }
11592 : :
11593 : : tree
11594 : 992461 : generic_simplify_UNLE_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
11595 : : {
11596 : 992461 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
11597 : 992461 : switch (TREE_CODE (_p0))
11598 : : {
11599 : 0 : case VEC_COND_EXPR:
11600 : 0 : {
11601 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11602 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11603 : 0 : tree _q22 = TREE_OPERAND (_p0, 2);
11604 : 0 : switch (TREE_CODE (_p1))
11605 : : {
11606 : 0 : case VEC_COND_EXPR:
11607 : 0 : {
11608 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
11609 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
11610 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
11611 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
11612 : : {
11613 : 0 : {
11614 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
11615 : 0 : if (VECTOR_TYPE_P (type)
11616 : 0 : && (TREE_CODE_CLASS (UNLE_EXPR) != tcc_comparison
11617 : 0 : || types_match (type, TREE_TYPE (captures[2]))
11618 : 0 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
11619 : : || (optimize_vectors_before_lowering_p ()
11620 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
11621 : : )
11622 : : {
11623 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1894;
11624 : 0 : {
11625 : 0 : tree res_op0;
11626 : 0 : res_op0 = captures[1];
11627 : 0 : tree res_op1;
11628 : 0 : {
11629 : 0 : tree _o1[2], _r1;
11630 : 0 : _o1[0] = captures[2];
11631 : 0 : _o1[1] = captures[5];
11632 : 0 : _r1 = fold_build2_loc (loc, UNLE_EXPR, type, _o1[0], _o1[1]);
11633 : 0 : if (EXPR_P (_r1))
11634 : 0 : goto next_after_fail1894;
11635 : 0 : res_op1 = _r1;
11636 : : }
11637 : 0 : tree res_op2;
11638 : 0 : {
11639 : 0 : tree _o1[2], _r1;
11640 : 0 : _o1[0] = captures[3];
11641 : 0 : _o1[1] = captures[6];
11642 : 0 : _r1 = fold_build2_loc (loc, UNLE_EXPR, type, _o1[0], _o1[1]);
11643 : 0 : if (EXPR_P (_r1))
11644 : 0 : goto next_after_fail1894;
11645 : 0 : res_op2 = _r1;
11646 : : }
11647 : 0 : tree _r;
11648 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11649 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 908, __FILE__, __LINE__, true);
11650 : 0 : return _r;
11651 : : }
11652 : 0 : next_after_fail1894:;
11653 : : }
11654 : : }
11655 : : }
11656 : : break;
11657 : : }
11658 : 0 : default:;
11659 : : }
11660 : 0 : {
11661 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
11662 : 0 : if (VECTOR_TYPE_P (type)
11663 : 0 : && (TREE_CODE_CLASS (UNLE_EXPR) != tcc_comparison
11664 : 0 : || types_match (type, TREE_TYPE (captures[2]))
11665 : 0 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
11666 : : || (optimize_vectors_before_lowering_p ()
11667 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
11668 : : )
11669 : : {
11670 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1895;
11671 : 0 : {
11672 : 0 : if (! tree_invariant_p (captures[4])) goto next_after_fail1895;
11673 : 0 : tree res_op0;
11674 : 0 : res_op0 = captures[1];
11675 : 0 : tree res_op1;
11676 : 0 : {
11677 : 0 : tree _o1[2], _r1;
11678 : 0 : _o1[0] = captures[2];
11679 : 0 : _o1[1] = unshare_expr (captures[4]);
11680 : 0 : _r1 = fold_build2_loc (loc, UNLE_EXPR, type, _o1[0], _o1[1]);
11681 : 0 : if (EXPR_P (_r1))
11682 : 0 : goto next_after_fail1895;
11683 : 0 : res_op1 = _r1;
11684 : : }
11685 : 0 : tree res_op2;
11686 : 0 : {
11687 : 0 : tree _o1[2], _r1;
11688 : 0 : _o1[0] = captures[3];
11689 : 0 : _o1[1] = captures[4];
11690 : 0 : _r1 = fold_build2_loc (loc, UNLE_EXPR, type, _o1[0], _o1[1]);
11691 : 0 : if (EXPR_P (_r1))
11692 : 0 : goto next_after_fail1895;
11693 : 0 : res_op2 = _r1;
11694 : : }
11695 : 0 : tree _r;
11696 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11697 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 909, __FILE__, __LINE__, true);
11698 : 0 : return _r;
11699 : : }
11700 : 0 : next_after_fail1895:;
11701 : : }
11702 : : }
11703 : 0 : break;
11704 : : }
11705 : 992461 : default:;
11706 : : }
11707 : 992461 : switch (TREE_CODE (_p1))
11708 : : {
11709 : 0 : case VEC_COND_EXPR:
11710 : 0 : {
11711 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
11712 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
11713 : 0 : tree _q32 = TREE_OPERAND (_p1, 2);
11714 : 0 : {
11715 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
11716 : 0 : if (VECTOR_TYPE_P (type)
11717 : 0 : && (TREE_CODE_CLASS (UNLE_EXPR) != tcc_comparison
11718 : 0 : || types_match (type, TREE_TYPE (captures[3]))
11719 : 0 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
11720 : : || (optimize_vectors_before_lowering_p ()
11721 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
11722 : : )
11723 : : {
11724 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1896;
11725 : 0 : {
11726 : 0 : if (! tree_invariant_p (captures[0])) goto next_after_fail1896;
11727 : 0 : tree res_op0;
11728 : 0 : res_op0 = captures[2];
11729 : 0 : tree res_op1;
11730 : 0 : {
11731 : 0 : tree _o1[2], _r1;
11732 : 0 : _o1[0] = unshare_expr (captures[0]);
11733 : 0 : _o1[1] = captures[3];
11734 : 0 : _r1 = fold_build2_loc (loc, UNLE_EXPR, type, _o1[0], _o1[1]);
11735 : 0 : if (EXPR_P (_r1))
11736 : 0 : goto next_after_fail1896;
11737 : 0 : res_op1 = _r1;
11738 : : }
11739 : 0 : tree res_op2;
11740 : 0 : {
11741 : 0 : tree _o1[2], _r1;
11742 : 0 : _o1[0] = captures[0];
11743 : 0 : _o1[1] = captures[4];
11744 : 0 : _r1 = fold_build2_loc (loc, UNLE_EXPR, type, _o1[0], _o1[1]);
11745 : 0 : if (EXPR_P (_r1))
11746 : 0 : goto next_after_fail1896;
11747 : 0 : res_op2 = _r1;
11748 : : }
11749 : 0 : tree _r;
11750 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11751 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 910, __FILE__, __LINE__, true);
11752 : 0 : return _r;
11753 : : }
11754 : 0 : next_after_fail1896:;
11755 : : }
11756 : : }
11757 : 0 : break;
11758 : : }
11759 : 992461 : default:;
11760 : : }
11761 : 992461 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
11762 : : {
11763 : 30 : {
11764 : 30 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
11765 : 30 : tree res = generic_simplify_539 (loc, type, _p0, _p1, captures, UNLE_EXPR);
11766 : 30 : if (res) return res;
11767 : : }
11768 : : }
11769 : 992431 : switch (TREE_CODE (_p0))
11770 : : {
11771 : 96 : case FLOAT_EXPR:
11772 : 96 : {
11773 : 96 : tree _q20 = TREE_OPERAND (_p0, 0);
11774 : 96 : switch (TREE_CODE (_p1))
11775 : : {
11776 : 0 : case FLOAT_EXPR:
11777 : 0 : {
11778 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
11779 : 0 : {
11780 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
11781 : 0 : tree res = generic_simplify_254 (loc, type, _p0, _p1, captures, UNLE_EXPR, LE_EXPR);
11782 : 0 : if (res) return res;
11783 : : }
11784 : 0 : break;
11785 : : }
11786 : : default:;
11787 : : }
11788 : : break;
11789 : : }
11790 : 112 : case NEGATE_EXPR:
11791 : 112 : {
11792 : 112 : tree _q20 = TREE_OPERAND (_p0, 0);
11793 : 112 : switch (TREE_CODE (_p1))
11794 : : {
11795 : 0 : case NEGATE_EXPR:
11796 : 0 : {
11797 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
11798 : 0 : {
11799 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
11800 : 0 : tree res = generic_simplify_257 (loc, type, _p0, _p1, captures, UNLE_EXPR, UNGE_EXPR);
11801 : 0 : if (res) return res;
11802 : : }
11803 : 0 : break;
11804 : : }
11805 : 112 : default:;
11806 : : }
11807 : 112 : if (CONSTANT_CLASS_P (_p1))
11808 : : {
11809 : 112 : {
11810 : 112 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
11811 : 112 : tree res = generic_simplify_258 (loc, type, _p0, _p1, captures, UNLE_EXPR, UNGE_EXPR);
11812 : 112 : if (res) return res;
11813 : : }
11814 : : }
11815 : : break;
11816 : : }
11817 : 992319 : default:;
11818 : : }
11819 : 992319 : switch (TREE_CODE (_p1))
11820 : : {
11821 : 572220 : case REAL_CST:
11822 : 572220 : {
11823 : 572220 : {
11824 : 572220 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
11825 : 572220 : tree res = generic_simplify_537 (loc, type, _p0, _p1, captures, UNLE_EXPR);
11826 : 572220 : if (res) return res;
11827 : : }
11828 : 572218 : break;
11829 : : }
11830 : : default:;
11831 : : }
11832 : : return NULL_TREE;
11833 : : }
11834 : :
11835 : : tree
11836 : 9827030 : generic_simplify_TRUTH_OR_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
11837 : : {
11838 : 9827030 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
11839 : 9827030 : switch (TREE_CODE (_p0))
11840 : : {
11841 : 1410112 : case LE_EXPR:
11842 : 1410112 : {
11843 : 1410112 : tree _q20 = TREE_OPERAND (_p0, 0);
11844 : 1410112 : tree _q21 = TREE_OPERAND (_p0, 1);
11845 : 1410112 : switch (TREE_CODE (_q20))
11846 : : {
11847 : 3875 : case POINTER_PLUS_EXPR:
11848 : 3875 : {
11849 : 3875 : tree _q30 = TREE_OPERAND (_q20, 0);
11850 : 3875 : tree _q31 = TREE_OPERAND (_q20, 1);
11851 : 3875 : switch (TREE_CODE (_q31))
11852 : : {
11853 : 3648 : case INTEGER_CST:
11854 : 3648 : {
11855 : 3648 : switch (TREE_CODE (_p1))
11856 : : {
11857 : 1056 : case LE_EXPR:
11858 : 1056 : {
11859 : 1056 : tree _q70 = TREE_OPERAND (_p1, 0);
11860 : 1056 : tree _q71 = TREE_OPERAND (_p1, 1);
11861 : 1056 : switch (TREE_CODE (_q70))
11862 : : {
11863 : 547 : case POINTER_PLUS_EXPR:
11864 : 547 : {
11865 : 547 : tree _q80 = TREE_OPERAND (_q70, 0);
11866 : 547 : tree _q81 = TREE_OPERAND (_q70, 1);
11867 : 547 : if ((_q80 == _q21 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q21, 0) && types_match (_q80, _q21)))
11868 : : {
11869 : 515 : if ((_q81 == _q31 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q31, 0) && types_match (_q81, _q31)))
11870 : : {
11871 : 403 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
11872 : : {
11873 : 403 : {
11874 : 403 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q70 };
11875 : 403 : const enum tree_code cmp = LE_EXPR;
11876 : 403 : if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[2]))
11877 : 402 : && TYPE_OVERFLOW_WRAPS (sizetype)
11878 : 805 : && TYPE_PRECISION (TREE_TYPE (captures[2])) == TYPE_PRECISION (sizetype)
11879 : : )
11880 : : {
11881 : 402 : {
11882 : 402 : offset_int off = wi::to_offset (captures[3]) - (cmp == LE_EXPR ? 1 : 0);
11883 : 402 : offset_int rhs = off * 2;
11884 : 402 : if (wi::min_precision (rhs, UNSIGNED) <= TYPE_PRECISION (sizetype)
11885 : : )
11886 : : {
11887 : 402 : {
11888 : 402 : bool swap_p = tree_swap_operands_p (captures[2], captures[4]);
11889 : 402 : tree rhs_tree = wide_int_to_tree (sizetype, rhs);
11890 : 402 : if (cmp == LT_EXPR
11891 : : )
11892 : : {
11893 : : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1926;
11894 : : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1926;
11895 : : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1926;
11896 : : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1926;
11897 : : if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1926;
11898 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1926;
11899 : : {
11900 : : tree res_op0;
11901 : : {
11902 : : tree _o1[1], _r1;
11903 : : {
11904 : : tree _o2[2], _r2;
11905 : : _o2[0] = swap_p ? captures[6] : captures[1];
11906 : : _o2[1] = swap_p ? captures[2] : captures[4];
11907 : : _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
11908 : : _o1[0] = _r2;
11909 : : }
11910 : : if (TREE_TYPE (_o1[0]) != sizetype)
11911 : : {
11912 : : _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
11913 : : }
11914 : : else
11915 : : _r1 = _o1[0];
11916 : : res_op0 = _r1;
11917 : : }
11918 : : tree res_op1;
11919 : : res_op1 = rhs_tree;
11920 : : tree _r;
11921 : : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
11922 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 954, __FILE__, __LINE__, true);
11923 : 402 : return _r;
11924 : : }
11925 : : next_after_fail1926:;
11926 : : }
11927 : : else
11928 : : {
11929 : 402 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1927;
11930 : 402 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1927;
11931 : 402 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1927;
11932 : 402 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1927;
11933 : 402 : {
11934 : 402 : tree res_op0;
11935 : 402 : {
11936 : 402 : tree _o1[1], _r1;
11937 : 402 : {
11938 : 402 : tree _o2[2], _r2;
11939 : 402 : {
11940 : 402 : tree _o3[2], _r3;
11941 : 402 : _o3[0] = swap_p ? captures[4] : captures[2];
11942 : 402 : _o3[1] = wide_int_to_tree (sizetype, off);
11943 : 402 : _r3 = fold_build2_loc (loc, POINTER_PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
11944 : 402 : _o2[0] = _r3;
11945 : : }
11946 : 402 : _o2[1] = swap_p ? captures[2] : captures[4];
11947 : 402 : _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
11948 : 402 : _o1[0] = _r2;
11949 : : }
11950 : 402 : if (TREE_TYPE (_o1[0]) != sizetype)
11951 : : {
11952 : 402 : _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
11953 : : }
11954 : : else
11955 : : _r1 = _o1[0];
11956 : 402 : res_op0 = _r1;
11957 : : }
11958 : 402 : tree res_op1;
11959 : 402 : res_op1 = rhs_tree;
11960 : 402 : tree _r;
11961 : 402 : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
11962 : 402 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 955, __FILE__, __LINE__, true);
11963 : 402 : return _r;
11964 : : }
11965 : 0 : next_after_fail1927:;
11966 : : }
11967 : : }
11968 : : }
11969 : : }
11970 : : }
11971 : : }
11972 : : }
11973 : : }
11974 : : }
11975 : : break;
11976 : : }
11977 : : default:;
11978 : : }
11979 : : break;
11980 : : }
11981 : 150 : case GE_EXPR:
11982 : 150 : {
11983 : 150 : tree _q70 = TREE_OPERAND (_p1, 0);
11984 : 150 : tree _q71 = TREE_OPERAND (_p1, 1);
11985 : 150 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
11986 : : {
11987 : 16 : switch (TREE_CODE (_q71))
11988 : : {
11989 : 16 : case POINTER_PLUS_EXPR:
11990 : 16 : {
11991 : 16 : tree _q90 = TREE_OPERAND (_q71, 0);
11992 : 16 : tree _q91 = TREE_OPERAND (_q71, 1);
11993 : 16 : if ((_q90 == _q21 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q21, 0) && types_match (_q90, _q21)))
11994 : : {
11995 : 14 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
11996 : : {
11997 : 9 : {
11998 : 9 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q71 };
11999 : 9 : const enum tree_code cmp = LE_EXPR;
12000 : 9 : if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[2]))
12001 : 9 : && TYPE_OVERFLOW_WRAPS (sizetype)
12002 : 18 : && TYPE_PRECISION (TREE_TYPE (captures[2])) == TYPE_PRECISION (sizetype)
12003 : : )
12004 : : {
12005 : 9 : {
12006 : 9 : offset_int off = wi::to_offset (captures[3]) - (cmp == LE_EXPR ? 1 : 0);
12007 : 9 : offset_int rhs = off * 2;
12008 : 9 : if (wi::min_precision (rhs, UNSIGNED) <= TYPE_PRECISION (sizetype)
12009 : : )
12010 : : {
12011 : 9 : {
12012 : 9 : bool swap_p = tree_swap_operands_p (captures[2], captures[4]);
12013 : 9 : tree rhs_tree = wide_int_to_tree (sizetype, rhs);
12014 : 9 : if (cmp == LT_EXPR
12015 : : )
12016 : : {
12017 : : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1928;
12018 : : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1928;
12019 : : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1928;
12020 : : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1928;
12021 : : if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1928;
12022 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1928;
12023 : : {
12024 : : tree res_op0;
12025 : : {
12026 : : tree _o1[1], _r1;
12027 : : {
12028 : : tree _o2[2], _r2;
12029 : : _o2[0] = swap_p ? captures[6] : captures[1];
12030 : : _o2[1] = swap_p ? captures[2] : captures[4];
12031 : : _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
12032 : : _o1[0] = _r2;
12033 : : }
12034 : : if (TREE_TYPE (_o1[0]) != sizetype)
12035 : : {
12036 : : _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
12037 : : }
12038 : : else
12039 : : _r1 = _o1[0];
12040 : : res_op0 = _r1;
12041 : : }
12042 : : tree res_op1;
12043 : : res_op1 = rhs_tree;
12044 : : tree _r;
12045 : : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
12046 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 954, __FILE__, __LINE__, true);
12047 : 9 : return _r;
12048 : : }
12049 : : next_after_fail1928:;
12050 : : }
12051 : : else
12052 : : {
12053 : 9 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1929;
12054 : 9 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1929;
12055 : 9 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1929;
12056 : 9 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1929;
12057 : 9 : {
12058 : 9 : tree res_op0;
12059 : 9 : {
12060 : 9 : tree _o1[1], _r1;
12061 : 9 : {
12062 : 9 : tree _o2[2], _r2;
12063 : 9 : {
12064 : 9 : tree _o3[2], _r3;
12065 : 9 : _o3[0] = swap_p ? captures[4] : captures[2];
12066 : 9 : _o3[1] = wide_int_to_tree (sizetype, off);
12067 : 9 : _r3 = fold_build2_loc (loc, POINTER_PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
12068 : 9 : _o2[0] = _r3;
12069 : : }
12070 : 9 : _o2[1] = swap_p ? captures[2] : captures[4];
12071 : 9 : _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
12072 : 9 : _o1[0] = _r2;
12073 : : }
12074 : 9 : if (TREE_TYPE (_o1[0]) != sizetype)
12075 : : {
12076 : 9 : _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
12077 : : }
12078 : : else
12079 : : _r1 = _o1[0];
12080 : 9 : res_op0 = _r1;
12081 : : }
12082 : 9 : tree res_op1;
12083 : 9 : res_op1 = rhs_tree;
12084 : 9 : tree _r;
12085 : 9 : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
12086 : 9 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 955, __FILE__, __LINE__, true);
12087 : 9 : return _r;
12088 : : }
12089 : 0 : next_after_fail1929:;
12090 : : }
12091 : : }
12092 : : }
12093 : : }
12094 : : }
12095 : : }
12096 : : }
12097 : : }
12098 : : break;
12099 : : }
12100 : : default:;
12101 : : }
12102 : : }
12103 : : break;
12104 : : }
12105 : : default:;
12106 : : }
12107 : : break;
12108 : : }
12109 : : default:;
12110 : : }
12111 : : break;
12112 : : }
12113 : : default:;
12114 : : }
12115 : : break;
12116 : : }
12117 : 1107628 : case LT_EXPR:
12118 : 1107628 : {
12119 : 1107628 : tree _q20 = TREE_OPERAND (_p0, 0);
12120 : 1107628 : tree _q21 = TREE_OPERAND (_p0, 1);
12121 : 1107628 : switch (TREE_CODE (_q20))
12122 : : {
12123 : 1303 : case POINTER_PLUS_EXPR:
12124 : 1303 : {
12125 : 1303 : tree _q30 = TREE_OPERAND (_q20, 0);
12126 : 1303 : tree _q31 = TREE_OPERAND (_q20, 1);
12127 : 1303 : switch (TREE_CODE (_q31))
12128 : : {
12129 : 1116 : case INTEGER_CST:
12130 : 1116 : {
12131 : 1116 : switch (TREE_CODE (_p1))
12132 : : {
12133 : 13 : case LT_EXPR:
12134 : 13 : {
12135 : 13 : tree _q70 = TREE_OPERAND (_p1, 0);
12136 : 13 : tree _q71 = TREE_OPERAND (_p1, 1);
12137 : 13 : switch (TREE_CODE (_q70))
12138 : : {
12139 : 11 : case POINTER_PLUS_EXPR:
12140 : 11 : {
12141 : 11 : tree _q80 = TREE_OPERAND (_q70, 0);
12142 : 11 : tree _q81 = TREE_OPERAND (_q70, 1);
12143 : 11 : if ((_q80 == _q21 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q21, 0) && types_match (_q80, _q21)))
12144 : : {
12145 : 1 : if ((_q81 == _q31 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q31, 0) && types_match (_q81, _q31)))
12146 : : {
12147 : 1 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
12148 : : {
12149 : 1 : {
12150 : 1 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q70 };
12151 : 1 : const enum tree_code cmp = LT_EXPR;
12152 : 1 : if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[2]))
12153 : 0 : && TYPE_OVERFLOW_WRAPS (sizetype)
12154 : 1 : && TYPE_PRECISION (TREE_TYPE (captures[2])) == TYPE_PRECISION (sizetype)
12155 : : )
12156 : : {
12157 : 0 : {
12158 : 0 : offset_int off = wi::to_offset (captures[3]) - (cmp == LE_EXPR ? 1 : 0);
12159 : 0 : offset_int rhs = off * 2;
12160 : 0 : if (wi::min_precision (rhs, UNSIGNED) <= TYPE_PRECISION (sizetype)
12161 : : )
12162 : : {
12163 : 0 : {
12164 : 0 : bool swap_p = tree_swap_operands_p (captures[2], captures[4]);
12165 : 0 : tree rhs_tree = wide_int_to_tree (sizetype, rhs);
12166 : 0 : if (cmp == LT_EXPR
12167 : : )
12168 : : {
12169 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1930;
12170 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1930;
12171 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1930;
12172 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1930;
12173 : 0 : if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1930;
12174 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1930;
12175 : 0 : {
12176 : 0 : tree res_op0;
12177 : 0 : {
12178 : 0 : tree _o1[1], _r1;
12179 : 0 : {
12180 : 0 : tree _o2[2], _r2;
12181 : 0 : _o2[0] = swap_p ? captures[6] : captures[1];
12182 : 0 : _o2[1] = swap_p ? captures[2] : captures[4];
12183 : 0 : _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
12184 : 0 : _o1[0] = _r2;
12185 : : }
12186 : 0 : if (TREE_TYPE (_o1[0]) != sizetype)
12187 : : {
12188 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
12189 : : }
12190 : : else
12191 : : _r1 = _o1[0];
12192 : 0 : res_op0 = _r1;
12193 : : }
12194 : 0 : tree res_op1;
12195 : 0 : res_op1 = rhs_tree;
12196 : 0 : tree _r;
12197 : 0 : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
12198 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 954, __FILE__, __LINE__, true);
12199 : 0 : return _r;
12200 : : }
12201 : 0 : next_after_fail1930:;
12202 : : }
12203 : : else
12204 : : {
12205 : : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1931;
12206 : : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1931;
12207 : : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1931;
12208 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1931;
12209 : : {
12210 : : tree res_op0;
12211 : : {
12212 : : tree _o1[1], _r1;
12213 : : {
12214 : : tree _o2[2], _r2;
12215 : : {
12216 : : tree _o3[2], _r3;
12217 : : _o3[0] = swap_p ? captures[4] : captures[2];
12218 : : _o3[1] = wide_int_to_tree (sizetype, off);
12219 : : _r3 = fold_build2_loc (loc, POINTER_PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
12220 : : _o2[0] = _r3;
12221 : : }
12222 : : _o2[1] = swap_p ? captures[2] : captures[4];
12223 : : _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
12224 : : _o1[0] = _r2;
12225 : : }
12226 : : if (TREE_TYPE (_o1[0]) != sizetype)
12227 : : {
12228 : : _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
12229 : : }
12230 : : else
12231 : : _r1 = _o1[0];
12232 : : res_op0 = _r1;
12233 : : }
12234 : : tree res_op1;
12235 : : res_op1 = rhs_tree;
12236 : : tree _r;
12237 : : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
12238 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 955, __FILE__, __LINE__, true);
12239 : : return _r;
12240 : : }
12241 : : next_after_fail1931:;
12242 : : }
12243 : : }
12244 : : }
12245 : : }
12246 : : }
12247 : : }
12248 : : }
12249 : : }
12250 : : }
12251 : : break;
12252 : : }
12253 : : default:;
12254 : : }
12255 : : break;
12256 : : }
12257 : 488 : case GT_EXPR:
12258 : 488 : {
12259 : 488 : tree _q70 = TREE_OPERAND (_p1, 0);
12260 : 488 : tree _q71 = TREE_OPERAND (_p1, 1);
12261 : 488 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
12262 : : {
12263 : 0 : switch (TREE_CODE (_q71))
12264 : : {
12265 : 0 : case POINTER_PLUS_EXPR:
12266 : 0 : {
12267 : 0 : tree _q90 = TREE_OPERAND (_q71, 0);
12268 : 0 : tree _q91 = TREE_OPERAND (_q71, 1);
12269 : 0 : if ((_q90 == _q21 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q21, 0) && types_match (_q90, _q21)))
12270 : : {
12271 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
12272 : : {
12273 : 0 : {
12274 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q71 };
12275 : 0 : const enum tree_code cmp = LT_EXPR;
12276 : 0 : if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[2]))
12277 : 0 : && TYPE_OVERFLOW_WRAPS (sizetype)
12278 : 0 : && TYPE_PRECISION (TREE_TYPE (captures[2])) == TYPE_PRECISION (sizetype)
12279 : : )
12280 : : {
12281 : 0 : {
12282 : 0 : offset_int off = wi::to_offset (captures[3]) - (cmp == LE_EXPR ? 1 : 0);
12283 : 0 : offset_int rhs = off * 2;
12284 : 0 : if (wi::min_precision (rhs, UNSIGNED) <= TYPE_PRECISION (sizetype)
12285 : : )
12286 : : {
12287 : 0 : {
12288 : 0 : bool swap_p = tree_swap_operands_p (captures[2], captures[4]);
12289 : 0 : tree rhs_tree = wide_int_to_tree (sizetype, rhs);
12290 : 0 : if (cmp == LT_EXPR
12291 : : )
12292 : : {
12293 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1932;
12294 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1932;
12295 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1932;
12296 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1932;
12297 : 0 : if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1932;
12298 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1932;
12299 : 0 : {
12300 : 0 : tree res_op0;
12301 : 0 : {
12302 : 0 : tree _o1[1], _r1;
12303 : 0 : {
12304 : 0 : tree _o2[2], _r2;
12305 : 0 : _o2[0] = swap_p ? captures[6] : captures[1];
12306 : 0 : _o2[1] = swap_p ? captures[2] : captures[4];
12307 : 0 : _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
12308 : 0 : _o1[0] = _r2;
12309 : : }
12310 : 0 : if (TREE_TYPE (_o1[0]) != sizetype)
12311 : : {
12312 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
12313 : : }
12314 : : else
12315 : : _r1 = _o1[0];
12316 : 0 : res_op0 = _r1;
12317 : : }
12318 : 0 : tree res_op1;
12319 : 0 : res_op1 = rhs_tree;
12320 : 0 : tree _r;
12321 : 0 : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
12322 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 954, __FILE__, __LINE__, true);
12323 : 0 : return _r;
12324 : : }
12325 : 0 : next_after_fail1932:;
12326 : : }
12327 : : else
12328 : : {
12329 : : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1933;
12330 : : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1933;
12331 : : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1933;
12332 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1933;
12333 : : {
12334 : : tree res_op0;
12335 : : {
12336 : : tree _o1[1], _r1;
12337 : : {
12338 : : tree _o2[2], _r2;
12339 : : {
12340 : : tree _o3[2], _r3;
12341 : : _o3[0] = swap_p ? captures[4] : captures[2];
12342 : : _o3[1] = wide_int_to_tree (sizetype, off);
12343 : : _r3 = fold_build2_loc (loc, POINTER_PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
12344 : : _o2[0] = _r3;
12345 : : }
12346 : : _o2[1] = swap_p ? captures[2] : captures[4];
12347 : : _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
12348 : : _o1[0] = _r2;
12349 : : }
12350 : : if (TREE_TYPE (_o1[0]) != sizetype)
12351 : : {
12352 : : _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
12353 : : }
12354 : : else
12355 : : _r1 = _o1[0];
12356 : : res_op0 = _r1;
12357 : : }
12358 : : tree res_op1;
12359 : : res_op1 = rhs_tree;
12360 : : tree _r;
12361 : : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
12362 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 955, __FILE__, __LINE__, true);
12363 : : return _r;
12364 : : }
12365 : : next_after_fail1933:;
12366 : : }
12367 : : }
12368 : : }
12369 : : }
12370 : : }
12371 : : }
12372 : : }
12373 : : }
12374 : : break;
12375 : : }
12376 : : default:;
12377 : : }
12378 : : }
12379 : : break;
12380 : : }
12381 : : default:;
12382 : : }
12383 : : break;
12384 : : }
12385 : : default:;
12386 : : }
12387 : : break;
12388 : : }
12389 : : default:;
12390 : : }
12391 : : break;
12392 : : }
12393 : 818469 : case GE_EXPR:
12394 : 818469 : {
12395 : 818469 : tree _q20 = TREE_OPERAND (_p0, 0);
12396 : 818469 : tree _q21 = TREE_OPERAND (_p0, 1);
12397 : 818469 : switch (TREE_CODE (_q21))
12398 : : {
12399 : 55 : case POINTER_PLUS_EXPR:
12400 : 55 : {
12401 : 55 : tree _q40 = TREE_OPERAND (_q21, 0);
12402 : 55 : tree _q41 = TREE_OPERAND (_q21, 1);
12403 : 55 : switch (TREE_CODE (_q41))
12404 : : {
12405 : 55 : case INTEGER_CST:
12406 : 55 : {
12407 : 55 : switch (TREE_CODE (_p1))
12408 : : {
12409 : 55 : case LE_EXPR:
12410 : 55 : {
12411 : 55 : tree _q70 = TREE_OPERAND (_p1, 0);
12412 : 55 : tree _q71 = TREE_OPERAND (_p1, 1);
12413 : 55 : switch (TREE_CODE (_q70))
12414 : : {
12415 : 45 : case POINTER_PLUS_EXPR:
12416 : 45 : {
12417 : 45 : tree _q80 = TREE_OPERAND (_q70, 0);
12418 : 45 : tree _q81 = TREE_OPERAND (_q70, 1);
12419 : 45 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
12420 : : {
12421 : 30 : if ((_q81 == _q41 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q41, 0) && types_match (_q81, _q41)))
12422 : : {
12423 : 5 : if ((_q71 == _q40 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q40, 0) && types_match (_q71, _q40)))
12424 : : {
12425 : 5 : {
12426 : 5 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q21, _q40, _q41, _q20, _p1, _q70 };
12427 : 5 : const enum tree_code cmp = LE_EXPR;
12428 : 5 : if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[2]))
12429 : 5 : && TYPE_OVERFLOW_WRAPS (sizetype)
12430 : 10 : && TYPE_PRECISION (TREE_TYPE (captures[2])) == TYPE_PRECISION (sizetype)
12431 : : )
12432 : : {
12433 : 5 : {
12434 : 5 : offset_int off = wi::to_offset (captures[3]) - (cmp == LE_EXPR ? 1 : 0);
12435 : 5 : offset_int rhs = off * 2;
12436 : 5 : if (wi::min_precision (rhs, UNSIGNED) <= TYPE_PRECISION (sizetype)
12437 : : )
12438 : : {
12439 : 5 : {
12440 : 5 : bool swap_p = tree_swap_operands_p (captures[2], captures[4]);
12441 : 5 : tree rhs_tree = wide_int_to_tree (sizetype, rhs);
12442 : 5 : if (cmp == LT_EXPR
12443 : : )
12444 : : {
12445 : : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1934;
12446 : : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1934;
12447 : : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1934;
12448 : : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1934;
12449 : : if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1934;
12450 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1934;
12451 : : {
12452 : : tree res_op0;
12453 : : {
12454 : : tree _o1[1], _r1;
12455 : : {
12456 : : tree _o2[2], _r2;
12457 : : _o2[0] = swap_p ? captures[6] : captures[1];
12458 : : _o2[1] = swap_p ? captures[2] : captures[4];
12459 : : _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
12460 : : _o1[0] = _r2;
12461 : : }
12462 : : if (TREE_TYPE (_o1[0]) != sizetype)
12463 : : {
12464 : : _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
12465 : : }
12466 : : else
12467 : : _r1 = _o1[0];
12468 : : res_op0 = _r1;
12469 : : }
12470 : : tree res_op1;
12471 : : res_op1 = rhs_tree;
12472 : : tree _r;
12473 : : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
12474 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 954, __FILE__, __LINE__, true);
12475 : 5 : return _r;
12476 : : }
12477 : : next_after_fail1934:;
12478 : : }
12479 : : else
12480 : : {
12481 : 5 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1935;
12482 : 5 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1935;
12483 : 5 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1935;
12484 : 5 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1935;
12485 : 5 : {
12486 : 5 : tree res_op0;
12487 : 5 : {
12488 : 5 : tree _o1[1], _r1;
12489 : 5 : {
12490 : 5 : tree _o2[2], _r2;
12491 : 5 : {
12492 : 5 : tree _o3[2], _r3;
12493 : 5 : _o3[0] = swap_p ? captures[4] : captures[2];
12494 : 5 : _o3[1] = wide_int_to_tree (sizetype, off);
12495 : 5 : _r3 = fold_build2_loc (loc, POINTER_PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
12496 : 5 : _o2[0] = _r3;
12497 : : }
12498 : 5 : _o2[1] = swap_p ? captures[2] : captures[4];
12499 : 5 : _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
12500 : 5 : _o1[0] = _r2;
12501 : : }
12502 : 5 : if (TREE_TYPE (_o1[0]) != sizetype)
12503 : : {
12504 : 5 : _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
12505 : : }
12506 : : else
12507 : : _r1 = _o1[0];
12508 : 5 : res_op0 = _r1;
12509 : : }
12510 : 5 : tree res_op1;
12511 : 5 : res_op1 = rhs_tree;
12512 : 5 : tree _r;
12513 : 5 : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
12514 : 5 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 955, __FILE__, __LINE__, true);
12515 : 5 : return _r;
12516 : : }
12517 : 0 : next_after_fail1935:;
12518 : : }
12519 : : }
12520 : : }
12521 : : }
12522 : : }
12523 : : }
12524 : : }
12525 : : }
12526 : : }
12527 : : break;
12528 : : }
12529 : : default:;
12530 : : }
12531 : : break;
12532 : : }
12533 : 0 : case GE_EXPR:
12534 : 0 : {
12535 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
12536 : 0 : tree _q71 = TREE_OPERAND (_p1, 1);
12537 : 0 : if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
12538 : : {
12539 : 0 : switch (TREE_CODE (_q71))
12540 : : {
12541 : 0 : case POINTER_PLUS_EXPR:
12542 : 0 : {
12543 : 0 : tree _q90 = TREE_OPERAND (_q71, 0);
12544 : 0 : tree _q91 = TREE_OPERAND (_q71, 1);
12545 : 0 : if ((_q90 == _q20 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q20, 0) && types_match (_q90, _q20)))
12546 : : {
12547 : 0 : if ((_q91 == _q41 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q41, 0) && types_match (_q91, _q41)))
12548 : : {
12549 : 0 : {
12550 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q21, _q40, _q41, _q20, _p1, _q71 };
12551 : 0 : const enum tree_code cmp = LE_EXPR;
12552 : 0 : if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[2]))
12553 : 0 : && TYPE_OVERFLOW_WRAPS (sizetype)
12554 : 0 : && TYPE_PRECISION (TREE_TYPE (captures[2])) == TYPE_PRECISION (sizetype)
12555 : : )
12556 : : {
12557 : 0 : {
12558 : 0 : offset_int off = wi::to_offset (captures[3]) - (cmp == LE_EXPR ? 1 : 0);
12559 : 0 : offset_int rhs = off * 2;
12560 : 0 : if (wi::min_precision (rhs, UNSIGNED) <= TYPE_PRECISION (sizetype)
12561 : : )
12562 : : {
12563 : 0 : {
12564 : 0 : bool swap_p = tree_swap_operands_p (captures[2], captures[4]);
12565 : 0 : tree rhs_tree = wide_int_to_tree (sizetype, rhs);
12566 : 0 : if (cmp == LT_EXPR
12567 : : )
12568 : : {
12569 : : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1936;
12570 : : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1936;
12571 : : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1936;
12572 : : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1936;
12573 : : if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1936;
12574 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1936;
12575 : : {
12576 : : tree res_op0;
12577 : : {
12578 : : tree _o1[1], _r1;
12579 : : {
12580 : : tree _o2[2], _r2;
12581 : : _o2[0] = swap_p ? captures[6] : captures[1];
12582 : : _o2[1] = swap_p ? captures[2] : captures[4];
12583 : : _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
12584 : : _o1[0] = _r2;
12585 : : }
12586 : : if (TREE_TYPE (_o1[0]) != sizetype)
12587 : : {
12588 : : _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
12589 : : }
12590 : : else
12591 : : _r1 = _o1[0];
12592 : : res_op0 = _r1;
12593 : : }
12594 : : tree res_op1;
12595 : : res_op1 = rhs_tree;
12596 : : tree _r;
12597 : : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
12598 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 954, __FILE__, __LINE__, true);
12599 : 0 : return _r;
12600 : : }
12601 : : next_after_fail1936:;
12602 : : }
12603 : : else
12604 : : {
12605 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1937;
12606 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1937;
12607 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1937;
12608 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1937;
12609 : 0 : {
12610 : 0 : tree res_op0;
12611 : 0 : {
12612 : 0 : tree _o1[1], _r1;
12613 : 0 : {
12614 : 0 : tree _o2[2], _r2;
12615 : 0 : {
12616 : 0 : tree _o3[2], _r3;
12617 : 0 : _o3[0] = swap_p ? captures[4] : captures[2];
12618 : 0 : _o3[1] = wide_int_to_tree (sizetype, off);
12619 : 0 : _r3 = fold_build2_loc (loc, POINTER_PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
12620 : 0 : _o2[0] = _r3;
12621 : : }
12622 : 0 : _o2[1] = swap_p ? captures[2] : captures[4];
12623 : 0 : _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
12624 : 0 : _o1[0] = _r2;
12625 : : }
12626 : 0 : if (TREE_TYPE (_o1[0]) != sizetype)
12627 : : {
12628 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
12629 : : }
12630 : : else
12631 : : _r1 = _o1[0];
12632 : 0 : res_op0 = _r1;
12633 : : }
12634 : 0 : tree res_op1;
12635 : 0 : res_op1 = rhs_tree;
12636 : 0 : tree _r;
12637 : 0 : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
12638 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 955, __FILE__, __LINE__, true);
12639 : 0 : return _r;
12640 : : }
12641 : 0 : next_after_fail1937:;
12642 : : }
12643 : : }
12644 : : }
12645 : : }
12646 : : }
12647 : : }
12648 : : }
12649 : : }
12650 : : break;
12651 : : }
12652 : : default:;
12653 : : }
12654 : : }
12655 : : break;
12656 : : }
12657 : : default:;
12658 : : }
12659 : : break;
12660 : : }
12661 : : default:;
12662 : : }
12663 : : break;
12664 : : }
12665 : : default:;
12666 : : }
12667 : : break;
12668 : : }
12669 : 1284196 : case GT_EXPR:
12670 : 1284196 : {
12671 : 1284196 : tree _q20 = TREE_OPERAND (_p0, 0);
12672 : 1284196 : tree _q21 = TREE_OPERAND (_p0, 1);
12673 : 1284196 : switch (TREE_CODE (_q21))
12674 : : {
12675 : 52 : case POINTER_PLUS_EXPR:
12676 : 52 : {
12677 : 52 : tree _q40 = TREE_OPERAND (_q21, 0);
12678 : 52 : tree _q41 = TREE_OPERAND (_q21, 1);
12679 : 52 : switch (TREE_CODE (_q41))
12680 : : {
12681 : 52 : case INTEGER_CST:
12682 : 52 : {
12683 : 52 : switch (TREE_CODE (_p1))
12684 : : {
12685 : 0 : case LT_EXPR:
12686 : 0 : {
12687 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
12688 : 0 : tree _q71 = TREE_OPERAND (_p1, 1);
12689 : 0 : switch (TREE_CODE (_q70))
12690 : : {
12691 : 0 : case POINTER_PLUS_EXPR:
12692 : 0 : {
12693 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
12694 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
12695 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
12696 : : {
12697 : 0 : if ((_q81 == _q41 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q41, 0) && types_match (_q81, _q41)))
12698 : : {
12699 : 0 : if ((_q71 == _q40 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q40, 0) && types_match (_q71, _q40)))
12700 : : {
12701 : 0 : {
12702 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q21, _q40, _q41, _q20, _p1, _q70 };
12703 : 0 : const enum tree_code cmp = LT_EXPR;
12704 : 0 : if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[2]))
12705 : 0 : && TYPE_OVERFLOW_WRAPS (sizetype)
12706 : 0 : && TYPE_PRECISION (TREE_TYPE (captures[2])) == TYPE_PRECISION (sizetype)
12707 : : )
12708 : : {
12709 : 0 : {
12710 : 0 : offset_int off = wi::to_offset (captures[3]) - (cmp == LE_EXPR ? 1 : 0);
12711 : 0 : offset_int rhs = off * 2;
12712 : 0 : if (wi::min_precision (rhs, UNSIGNED) <= TYPE_PRECISION (sizetype)
12713 : : )
12714 : : {
12715 : 0 : {
12716 : 0 : bool swap_p = tree_swap_operands_p (captures[2], captures[4]);
12717 : 0 : tree rhs_tree = wide_int_to_tree (sizetype, rhs);
12718 : 0 : if (cmp == LT_EXPR
12719 : : )
12720 : : {
12721 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1938;
12722 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1938;
12723 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1938;
12724 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1938;
12725 : 0 : if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1938;
12726 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1938;
12727 : 0 : {
12728 : 0 : tree res_op0;
12729 : 0 : {
12730 : 0 : tree _o1[1], _r1;
12731 : 0 : {
12732 : 0 : tree _o2[2], _r2;
12733 : 0 : _o2[0] = swap_p ? captures[6] : captures[1];
12734 : 0 : _o2[1] = swap_p ? captures[2] : captures[4];
12735 : 0 : _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
12736 : 0 : _o1[0] = _r2;
12737 : : }
12738 : 0 : if (TREE_TYPE (_o1[0]) != sizetype)
12739 : : {
12740 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
12741 : : }
12742 : : else
12743 : : _r1 = _o1[0];
12744 : 0 : res_op0 = _r1;
12745 : : }
12746 : 0 : tree res_op1;
12747 : 0 : res_op1 = rhs_tree;
12748 : 0 : tree _r;
12749 : 0 : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
12750 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 954, __FILE__, __LINE__, true);
12751 : 0 : return _r;
12752 : : }
12753 : 0 : next_after_fail1938:;
12754 : : }
12755 : : else
12756 : : {
12757 : : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1939;
12758 : : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1939;
12759 : : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1939;
12760 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1939;
12761 : : {
12762 : : tree res_op0;
12763 : : {
12764 : : tree _o1[1], _r1;
12765 : : {
12766 : : tree _o2[2], _r2;
12767 : : {
12768 : : tree _o3[2], _r3;
12769 : : _o3[0] = swap_p ? captures[4] : captures[2];
12770 : : _o3[1] = wide_int_to_tree (sizetype, off);
12771 : : _r3 = fold_build2_loc (loc, POINTER_PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
12772 : : _o2[0] = _r3;
12773 : : }
12774 : : _o2[1] = swap_p ? captures[2] : captures[4];
12775 : : _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
12776 : : _o1[0] = _r2;
12777 : : }
12778 : : if (TREE_TYPE (_o1[0]) != sizetype)
12779 : : {
12780 : : _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
12781 : : }
12782 : : else
12783 : : _r1 = _o1[0];
12784 : : res_op0 = _r1;
12785 : : }
12786 : : tree res_op1;
12787 : : res_op1 = rhs_tree;
12788 : : tree _r;
12789 : : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
12790 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 955, __FILE__, __LINE__, true);
12791 : : return _r;
12792 : : }
12793 : : next_after_fail1939:;
12794 : : }
12795 : : }
12796 : : }
12797 : : }
12798 : : }
12799 : : }
12800 : : }
12801 : : }
12802 : : }
12803 : : break;
12804 : : }
12805 : : default:;
12806 : : }
12807 : : break;
12808 : : }
12809 : 20 : case GT_EXPR:
12810 : 20 : {
12811 : 20 : tree _q70 = TREE_OPERAND (_p1, 0);
12812 : 20 : tree _q71 = TREE_OPERAND (_p1, 1);
12813 : 20 : if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
12814 : : {
12815 : 0 : switch (TREE_CODE (_q71))
12816 : : {
12817 : 0 : case POINTER_PLUS_EXPR:
12818 : 0 : {
12819 : 0 : tree _q90 = TREE_OPERAND (_q71, 0);
12820 : 0 : tree _q91 = TREE_OPERAND (_q71, 1);
12821 : 0 : if ((_q90 == _q20 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q20, 0) && types_match (_q90, _q20)))
12822 : : {
12823 : 0 : if ((_q91 == _q41 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q41, 0) && types_match (_q91, _q41)))
12824 : : {
12825 : 0 : {
12826 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q21, _q40, _q41, _q20, _p1, _q71 };
12827 : 0 : const enum tree_code cmp = LT_EXPR;
12828 : 0 : if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[2]))
12829 : 0 : && TYPE_OVERFLOW_WRAPS (sizetype)
12830 : 0 : && TYPE_PRECISION (TREE_TYPE (captures[2])) == TYPE_PRECISION (sizetype)
12831 : : )
12832 : : {
12833 : 0 : {
12834 : 0 : offset_int off = wi::to_offset (captures[3]) - (cmp == LE_EXPR ? 1 : 0);
12835 : 0 : offset_int rhs = off * 2;
12836 : 0 : if (wi::min_precision (rhs, UNSIGNED) <= TYPE_PRECISION (sizetype)
12837 : : )
12838 : : {
12839 : 0 : {
12840 : 0 : bool swap_p = tree_swap_operands_p (captures[2], captures[4]);
12841 : 0 : tree rhs_tree = wide_int_to_tree (sizetype, rhs);
12842 : 0 : if (cmp == LT_EXPR
12843 : : )
12844 : : {
12845 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1940;
12846 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1940;
12847 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1940;
12848 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1940;
12849 : 0 : if (TREE_SIDE_EFFECTS (captures[6])) goto next_after_fail1940;
12850 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1940;
12851 : 0 : {
12852 : 0 : tree res_op0;
12853 : 0 : {
12854 : 0 : tree _o1[1], _r1;
12855 : 0 : {
12856 : 0 : tree _o2[2], _r2;
12857 : 0 : _o2[0] = swap_p ? captures[6] : captures[1];
12858 : 0 : _o2[1] = swap_p ? captures[2] : captures[4];
12859 : 0 : _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
12860 : 0 : _o1[0] = _r2;
12861 : : }
12862 : 0 : if (TREE_TYPE (_o1[0]) != sizetype)
12863 : : {
12864 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
12865 : : }
12866 : : else
12867 : : _r1 = _o1[0];
12868 : 0 : res_op0 = _r1;
12869 : : }
12870 : 0 : tree res_op1;
12871 : 0 : res_op1 = rhs_tree;
12872 : 0 : tree _r;
12873 : 0 : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
12874 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 954, __FILE__, __LINE__, true);
12875 : 0 : return _r;
12876 : : }
12877 : 0 : next_after_fail1940:;
12878 : : }
12879 : : else
12880 : : {
12881 : : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1941;
12882 : : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1941;
12883 : : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1941;
12884 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1941;
12885 : : {
12886 : : tree res_op0;
12887 : : {
12888 : : tree _o1[1], _r1;
12889 : : {
12890 : : tree _o2[2], _r2;
12891 : : {
12892 : : tree _o3[2], _r3;
12893 : : _o3[0] = swap_p ? captures[4] : captures[2];
12894 : : _o3[1] = wide_int_to_tree (sizetype, off);
12895 : : _r3 = fold_build2_loc (loc, POINTER_PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
12896 : : _o2[0] = _r3;
12897 : : }
12898 : : _o2[1] = swap_p ? captures[2] : captures[4];
12899 : : _r2 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ssizetype, _o2[0], _o2[1]);
12900 : : _o1[0] = _r2;
12901 : : }
12902 : : if (TREE_TYPE (_o1[0]) != sizetype)
12903 : : {
12904 : : _r1 = fold_build1_loc (loc, NOP_EXPR, sizetype, _o1[0]);
12905 : : }
12906 : : else
12907 : : _r1 = _o1[0];
12908 : : res_op0 = _r1;
12909 : : }
12910 : : tree res_op1;
12911 : : res_op1 = rhs_tree;
12912 : : tree _r;
12913 : : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
12914 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 955, __FILE__, __LINE__, true);
12915 : : return _r;
12916 : : }
12917 : : next_after_fail1941:;
12918 : : }
12919 : : }
12920 : : }
12921 : : }
12922 : : }
12923 : : }
12924 : : }
12925 : : }
12926 : : break;
12927 : : }
12928 : : default:;
12929 : : }
12930 : : }
12931 : : break;
12932 : : }
12933 : : default:;
12934 : : }
12935 : : break;
12936 : : }
12937 : : default:;
12938 : : }
12939 : : break;
12940 : : }
12941 : : default:;
12942 : : }
12943 : : break;
12944 : : }
12945 : : default:;
12946 : : }
12947 : : return NULL_TREE;
12948 : : }
12949 : : #pragma GCC diagnostic pop
|