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 : 93311656 : tree_bit_not_with_nop (tree t, tree *res_ops)
11 : : {
12 : 93311656 : const tree type = TREE_TYPE (t);
13 : 93311656 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
14 : 93311656 : if (TREE_SIDE_EFFECTS (t)) return false;
15 : 93311656 : switch (TREE_CODE (t))
16 : : {
17 : 87588 : case BIT_NOT_EXPR:
18 : 87588 : {
19 : 87588 : tree _p0 = TREE_OPERAND (t, 0);
20 : 87588 : {
21 : 87588 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
22 : 87588 : {
23 : 87588 : res_ops[0] = captures[0];
24 : 87588 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 2, __FILE__, __LINE__, false);
25 : : return true;
26 : : }
27 : : }
28 : 15576291 : break;
29 : : }
30 : 15576291 : CASE_CONVERT:
31 : 15576291 : {
32 : 15576291 : tree _p0 = TREE_OPERAND (t, 0);
33 : 15576291 : switch (TREE_CODE (_p0))
34 : : {
35 : 1070 : case BIT_NOT_EXPR:
36 : 1070 : {
37 : 1070 : tree _q20 = TREE_OPERAND (_p0, 0);
38 : 1070 : {
39 : 1070 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
40 : 1070 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
41 : : )
42 : : {
43 : 599 : {
44 : 599 : res_ops[0] = captures[0];
45 : 599 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 3, __FILE__, __LINE__, false);
46 : 599 : return true;
47 : : }
48 : : }
49 : : }
50 : : break;
51 : : }
52 : : default:;
53 : : }
54 : : break;
55 : : }
56 : : default:;
57 : : }
58 : : return false;
59 : : }
60 : :
61 : : bool
62 : 77693570 : tree_with_known_nonzero_bits_1 (tree t)
63 : : {
64 : 77693570 : const tree type = TREE_TYPE (t);
65 : 77693570 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
66 : 77693570 : if (TREE_SIDE_EFFECTS (t)) return false;
67 : 77693570 : switch (TREE_CODE (t))
68 : : {
69 : 20546413 : case INTEGER_CST:
70 : 20546413 : {
71 : 20546413 : {
72 : 20546413 : tree captures[1] ATTRIBUTE_UNUSED = { t };
73 : 20546413 : {
74 : 20546413 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 37, __FILE__, __LINE__, false);
75 : 20546413 : return true;
76 : : }
77 : : }
78 : 27169203 : break;
79 : : }
80 : 27169203 : case SSA_NAME:
81 : 27169203 : {
82 : 27169203 : {
83 : 27169203 : tree captures[1] ATTRIBUTE_UNUSED = { t };
84 : 27169203 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
85 : : )
86 : : {
87 : 19442458 : {
88 : 19442458 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 38, __FILE__, __LINE__, false);
89 : 19442458 : return true;
90 : : }
91 : : }
92 : : }
93 : : break;
94 : : }
95 : : default:;
96 : : }
97 : : return false;
98 : : }
99 : :
100 : : bool
101 : 0 : tree_usadd_overflow_mask (tree t, tree *res_ops)
102 : : {
103 : 0 : const tree type = TREE_TYPE (t);
104 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
105 : 0 : if (TREE_SIDE_EFFECTS (t)) return false;
106 : 0 : switch (TREE_CODE (t))
107 : : {
108 : 0 : case NEGATE_EXPR:
109 : 0 : {
110 : 0 : tree _p0 = TREE_OPERAND (t, 0);
111 : 0 : switch (TREE_CODE (_p0))
112 : : {
113 : 0 : CASE_CONVERT:
114 : 0 : {
115 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
116 : 0 : switch (TREE_CODE (_q20))
117 : : {
118 : 0 : case GT_EXPR:
119 : 0 : {
120 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
121 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
122 : 0 : switch (TREE_CODE (_q31))
123 : : {
124 : 0 : case PLUS_EXPR:
125 : 0 : {
126 : 0 : tree _q50 = TREE_OPERAND (_q31, 0);
127 : 0 : tree _q51 = TREE_OPERAND (_q31, 1);
128 : 0 : if ((_q50 == _q30 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q30, 0) && types_match (_q50, _q30)))
129 : : {
130 : 0 : {
131 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q51 };
132 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
133 : : )
134 : : {
135 : 0 : if (types_match (type, captures[0], captures[1])
136 : : )
137 : : {
138 : 0 : {
139 : 0 : res_ops[0] = captures[0];
140 : 0 : res_ops[1] = captures[1];
141 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 43, __FILE__, __LINE__, false);
142 : 0 : return true;
143 : : }
144 : : }
145 : : }
146 : : }
147 : : }
148 : 0 : if ((_q51 == _q30 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q30, 0) && types_match (_q51, _q30)))
149 : : {
150 : 0 : {
151 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q50 };
152 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
153 : : )
154 : : {
155 : 0 : if (types_match (type, captures[0], captures[1])
156 : : )
157 : : {
158 : 0 : {
159 : 0 : res_ops[0] = captures[0];
160 : 0 : res_ops[1] = captures[1];
161 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 43, __FILE__, __LINE__, false);
162 : 0 : return true;
163 : : }
164 : : }
165 : : }
166 : : }
167 : : }
168 : : break;
169 : : }
170 : : default:;
171 : : }
172 : : break;
173 : : }
174 : 0 : case LT_EXPR:
175 : 0 : {
176 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
177 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
178 : 0 : switch (TREE_CODE (_q30))
179 : : {
180 : 0 : case PLUS_EXPR:
181 : 0 : {
182 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
183 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
184 : 0 : if ((_q31 == _q40 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _q40, 0) && types_match (_q31, _q40)))
185 : : {
186 : 0 : {
187 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q41 };
188 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
189 : : )
190 : : {
191 : 0 : if (types_match (type, captures[0], captures[1])
192 : : )
193 : : {
194 : 0 : {
195 : 0 : res_ops[0] = captures[0];
196 : 0 : res_ops[1] = captures[1];
197 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 44, __FILE__, __LINE__, false);
198 : 0 : return true;
199 : : }
200 : : }
201 : : }
202 : : }
203 : : }
204 : 0 : if ((_q31 == _q41 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _q41, 0) && types_match (_q31, _q41)))
205 : : {
206 : 0 : {
207 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q41, _q40 };
208 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
209 : : )
210 : : {
211 : 0 : if (types_match (type, captures[0], captures[1])
212 : : )
213 : : {
214 : 0 : {
215 : 0 : res_ops[0] = captures[0];
216 : 0 : res_ops[1] = captures[1];
217 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 44, __FILE__, __LINE__, false);
218 : 0 : return true;
219 : : }
220 : : }
221 : : }
222 : : }
223 : : }
224 : : break;
225 : : }
226 : : default:;
227 : : }
228 : : break;
229 : : }
230 : : default:;
231 : : }
232 : : break;
233 : : }
234 : : default:;
235 : : }
236 : : break;
237 : : }
238 : : default:;
239 : : }
240 : : return false;
241 : : }
242 : :
243 : : bool
244 : 0 : tree_clz_table_index (tree t, tree *res_ops)
245 : : {
246 : 0 : const tree type = TREE_TYPE (t);
247 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
248 : 0 : if (TREE_SIDE_EFFECTS (t)) return false;
249 : 0 : switch (TREE_CODE (t))
250 : : {
251 : 0 : case RSHIFT_EXPR:
252 : 0 : {
253 : 0 : tree _p0 = TREE_OPERAND (t, 0);
254 : 0 : tree _p1 = TREE_OPERAND (t, 1);
255 : 0 : switch (TREE_CODE (_p0))
256 : : {
257 : 0 : case MULT_EXPR:
258 : 0 : {
259 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
260 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
261 : 0 : switch (TREE_CODE (_q20))
262 : : {
263 : 0 : case BIT_IOR_EXPR:
264 : 0 : {
265 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
266 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
267 : 0 : switch (TREE_CODE (_q30))
268 : : {
269 : 0 : case RSHIFT_EXPR:
270 : 0 : {
271 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
272 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
273 : 0 : switch (TREE_CODE (_q40))
274 : : {
275 : 0 : case BIT_IOR_EXPR:
276 : 0 : {
277 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
278 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
279 : 0 : switch (TREE_CODE (_q50))
280 : : {
281 : 0 : case RSHIFT_EXPR:
282 : 0 : {
283 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
284 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
285 : 0 : switch (TREE_CODE (_q60))
286 : : {
287 : 0 : case BIT_IOR_EXPR:
288 : 0 : {
289 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
290 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
291 : 0 : switch (TREE_CODE (_q70))
292 : : {
293 : 0 : case RSHIFT_EXPR:
294 : 0 : {
295 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
296 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
297 : 0 : switch (TREE_CODE (_q80))
298 : : {
299 : 0 : case BIT_IOR_EXPR:
300 : 0 : {
301 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
302 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
303 : 0 : switch (TREE_CODE (_q90))
304 : : {
305 : 0 : case RSHIFT_EXPR:
306 : 0 : {
307 : 0 : tree _q100 = TREE_OPERAND (_q90, 0);
308 : 0 : tree _q101 = TREE_OPERAND (_q90, 1);
309 : 0 : switch (TREE_CODE (_q100))
310 : : {
311 : 0 : case BIT_IOR_EXPR:
312 : 0 : {
313 : 0 : tree _q110 = TREE_OPERAND (_q100, 0);
314 : 0 : tree _q111 = TREE_OPERAND (_q100, 1);
315 : 0 : switch (TREE_CODE (_q110))
316 : : {
317 : 0 : case RSHIFT_EXPR:
318 : 0 : {
319 : 0 : tree _q120 = TREE_OPERAND (_q110, 0);
320 : 0 : tree _q121 = TREE_OPERAND (_q110, 1);
321 : 0 : switch (TREE_CODE (_q121))
322 : : {
323 : 0 : case INTEGER_CST:
324 : 0 : {
325 : 0 : if ((_q111 == _q120 && ! TREE_SIDE_EFFECTS (_q111)) || (operand_equal_p (_q111, _q120, 0) && types_match (_q111, _q120)))
326 : : {
327 : 0 : switch (TREE_CODE (_q101))
328 : : {
329 : 0 : case INTEGER_CST:
330 : 0 : {
331 : 0 : if ((_q91 == _q100 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q100, 0) && types_match (_q91, _q100)))
332 : : {
333 : 0 : switch (TREE_CODE (_q81))
334 : : {
335 : 0 : case INTEGER_CST:
336 : 0 : {
337 : 0 : if ((_q71 == _q80 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q80, 0) && types_match (_q71, _q80)))
338 : : {
339 : 0 : switch (TREE_CODE (_q61))
340 : : {
341 : 0 : case INTEGER_CST:
342 : 0 : {
343 : 0 : if ((_q51 == _q60 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q60, 0) && types_match (_q51, _q60)))
344 : : {
345 : 0 : switch (TREE_CODE (_q41))
346 : : {
347 : 0 : case INTEGER_CST:
348 : 0 : {
349 : 0 : if ((_q31 == _q40 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _q40, 0) && types_match (_q31, _q40)))
350 : : {
351 : 0 : switch (TREE_CODE (_q21))
352 : : {
353 : 0 : case INTEGER_CST:
354 : 0 : {
355 : 0 : switch (TREE_CODE (_p1))
356 : : {
357 : 0 : case INTEGER_CST:
358 : 0 : {
359 : 0 : {
360 : 0 : tree captures[12] ATTRIBUTE_UNUSED = { _q120, _q21, _p1, _q40, _q60, _q80, _q100, _q121, _q101, _q81, _q61, _q41 };
361 : 0 : if (INTEGRAL_TYPE_P (type)
362 : 0 : && TYPE_UNSIGNED (type)
363 : 0 : && TYPE_PRECISION (type) == 32
364 : 0 : && compare_tree_int (captures[7], 1) == 0
365 : 0 : && compare_tree_int (captures[8], 2) == 0
366 : 0 : && compare_tree_int (captures[9], 4) == 0
367 : 0 : && compare_tree_int (captures[10], 8) == 0
368 : 0 : && compare_tree_int (captures[11], 16) == 0
369 : : )
370 : : {
371 : 0 : {
372 : 0 : res_ops[0] = captures[0];
373 : 0 : res_ops[1] = captures[1];
374 : 0 : res_ops[2] = captures[2];
375 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 93, __FILE__, __LINE__, false);
376 : 0 : return true;
377 : : }
378 : : }
379 : : }
380 : 0 : break;
381 : : }
382 : : default:;
383 : : }
384 : : break;
385 : : }
386 : : default:;
387 : : }
388 : : }
389 : : break;
390 : : }
391 : : default:;
392 : : }
393 : : }
394 : : break;
395 : : }
396 : : default:;
397 : : }
398 : : }
399 : : break;
400 : : }
401 : : default:;
402 : : }
403 : : }
404 : : break;
405 : : }
406 : : default:;
407 : : }
408 : : }
409 : : break;
410 : : }
411 : 0 : default:;
412 : : }
413 : 0 : switch (TREE_CODE (_q120))
414 : : {
415 : 0 : case BIT_IOR_EXPR:
416 : 0 : {
417 : 0 : tree _q130 = TREE_OPERAND (_q120, 0);
418 : 0 : tree _q131 = TREE_OPERAND (_q120, 1);
419 : 0 : switch (TREE_CODE (_q130))
420 : : {
421 : 0 : case RSHIFT_EXPR:
422 : 0 : {
423 : 0 : tree _q140 = TREE_OPERAND (_q130, 0);
424 : 0 : tree _q141 = TREE_OPERAND (_q130, 1);
425 : 0 : switch (TREE_CODE (_q141))
426 : : {
427 : 0 : case INTEGER_CST:
428 : 0 : {
429 : 0 : if ((_q131 == _q140 && ! TREE_SIDE_EFFECTS (_q131)) || (operand_equal_p (_q131, _q140, 0) && types_match (_q131, _q140)))
430 : : {
431 : 0 : switch (TREE_CODE (_q121))
432 : : {
433 : 0 : case INTEGER_CST:
434 : 0 : {
435 : 0 : if ((_q111 == _q120 && ! TREE_SIDE_EFFECTS (_q111)) || (operand_equal_p (_q111, _q120, 0) && types_match (_q111, _q120)))
436 : : {
437 : 0 : switch (TREE_CODE (_q101))
438 : : {
439 : 0 : case INTEGER_CST:
440 : 0 : {
441 : 0 : if ((_q91 == _q100 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q100, 0) && types_match (_q91, _q100)))
442 : : {
443 : 0 : switch (TREE_CODE (_q81))
444 : : {
445 : 0 : case INTEGER_CST:
446 : 0 : {
447 : 0 : if ((_q71 == _q80 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q80, 0) && types_match (_q71, _q80)))
448 : : {
449 : 0 : switch (TREE_CODE (_q61))
450 : : {
451 : 0 : case INTEGER_CST:
452 : 0 : {
453 : 0 : if ((_q51 == _q60 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q60, 0) && types_match (_q51, _q60)))
454 : : {
455 : 0 : switch (TREE_CODE (_q41))
456 : : {
457 : 0 : case INTEGER_CST:
458 : 0 : {
459 : 0 : if ((_q31 == _q40 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _q40, 0) && types_match (_q31, _q40)))
460 : : {
461 : 0 : switch (TREE_CODE (_q21))
462 : : {
463 : 0 : case INTEGER_CST:
464 : 0 : {
465 : 0 : switch (TREE_CODE (_p1))
466 : : {
467 : 0 : case INTEGER_CST:
468 : 0 : {
469 : 0 : {
470 : 0 : tree captures[14] ATTRIBUTE_UNUSED = { _q140, _q21, _p1, _q40, _q60, _q80, _q100, _q120, _q141, _q121, _q101, _q81, _q61, _q41 };
471 : 0 : if (INTEGRAL_TYPE_P (type)
472 : 0 : && TYPE_UNSIGNED (type)
473 : 0 : && TYPE_PRECISION (type) == 64
474 : 0 : && compare_tree_int (captures[8], 1) == 0
475 : 0 : && compare_tree_int (captures[9], 2) == 0
476 : 0 : && compare_tree_int (captures[10], 4) == 0
477 : 0 : && compare_tree_int (captures[11], 8) == 0
478 : 0 : && compare_tree_int (captures[12], 16) == 0
479 : 0 : && compare_tree_int (captures[13], 32) == 0
480 : : )
481 : : {
482 : 0 : {
483 : 0 : res_ops[0] = captures[0];
484 : 0 : res_ops[1] = captures[1];
485 : 0 : res_ops[2] = captures[2];
486 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 94, __FILE__, __LINE__, false);
487 : 0 : return true;
488 : : }
489 : : }
490 : : }
491 : 0 : break;
492 : : }
493 : : default:;
494 : : }
495 : : break;
496 : : }
497 : : default:;
498 : : }
499 : : }
500 : : break;
501 : : }
502 : : default:;
503 : : }
504 : : }
505 : : break;
506 : : }
507 : : default:;
508 : : }
509 : : }
510 : : break;
511 : : }
512 : : default:;
513 : : }
514 : : }
515 : : break;
516 : : }
517 : : default:;
518 : : }
519 : : }
520 : : break;
521 : : }
522 : : default:;
523 : : }
524 : : }
525 : : break;
526 : : }
527 : : default:;
528 : : }
529 : : break;
530 : : }
531 : : default:;
532 : : }
533 : : break;
534 : : }
535 : : default:;
536 : : }
537 : : break;
538 : : }
539 : : default:;
540 : : }
541 : : break;
542 : : }
543 : : default:;
544 : : }
545 : : break;
546 : : }
547 : : default:;
548 : : }
549 : : break;
550 : : }
551 : : default:;
552 : : }
553 : : break;
554 : : }
555 : : default:;
556 : : }
557 : : break;
558 : : }
559 : : default:;
560 : : }
561 : : break;
562 : : }
563 : : default:;
564 : : }
565 : : break;
566 : : }
567 : : default:;
568 : : }
569 : : break;
570 : : }
571 : : default:;
572 : : }
573 : : break;
574 : : }
575 : : default:;
576 : : }
577 : : break;
578 : : }
579 : : default:;
580 : : }
581 : : break;
582 : : }
583 : : default:;
584 : : }
585 : : return false;
586 : : }
587 : :
588 : : tree
589 : 2913732 : generic_simplify_16 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
590 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
591 : : const enum tree_code ARG_UNUSED (inner_op),
592 : : const enum tree_code ARG_UNUSED (neg_inner_op),
593 : : const enum tree_code ARG_UNUSED (outer_op))
594 : : {
595 : 2913732 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
596 : 2913732 : if (!TYPE_SATURATING (type)
597 : : )
598 : : {
599 : 2913732 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
600 : 5827214 : && !FIXED_POINT_TYPE_P (type)
601 : : )
602 : : {
603 : 2913482 : if (!ANY_INTEGRAL_TYPE_P (type) || TYPE_OVERFLOW_WRAPS (type)
604 : : )
605 : : {
606 : 1907259 : if (!CONSTANT_CLASS_P (captures[0])
607 : : )
608 : : {
609 : 1907252 : if (outer_op == PLUS_EXPR
610 : : )
611 : : {
612 : 1907252 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail234;
613 : 1907252 : {
614 : 1907252 : tree res_op0;
615 : 1907252 : {
616 : 1907252 : tree _o1[1], _r1;
617 : 1907252 : _o1[0] = captures[0];
618 : 1907252 : if (TREE_TYPE (_o1[0]) != type)
619 : : {
620 : 796596 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
621 : : }
622 : : else
623 : : _r1 = _o1[0];
624 : 1907252 : res_op0 = _r1;
625 : : }
626 : 1907252 : tree res_op1;
627 : 1907252 : {
628 : 1907252 : tree _o1[2], _r1;
629 : 1907252 : _o1[0] = captures[2];
630 : 1907252 : {
631 : 1907252 : tree _o2[1], _r2;
632 : 1907252 : _o2[0] = captures[1];
633 : 1907252 : if (TREE_TYPE (_o2[0]) != type)
634 : : {
635 : 788221 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o2[0]);
636 : : }
637 : : else
638 : : _r2 = _o2[0];
639 : 1907252 : _o1[1] = _r2;
640 : : }
641 : 1907252 : _r1 = fold_build2_loc (loc, inner_op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
642 : 1907252 : if (EXPR_P (_r1))
643 : 0 : goto next_after_fail234;
644 : 1907252 : res_op1 = _r1;
645 : : }
646 : 1907252 : tree _r;
647 : 1907252 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
648 : 1907252 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 118, __FILE__, __LINE__, true);
649 : 1907252 : return _r;
650 : : }
651 : : next_after_fail234:;
652 : : }
653 : : else
654 : : {
655 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail235;
656 : 0 : {
657 : 0 : tree res_op0;
658 : 0 : {
659 : 0 : tree _o1[1], _r1;
660 : 0 : _o1[0] = captures[0];
661 : 0 : if (TREE_TYPE (_o1[0]) != type)
662 : : {
663 : 0 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
664 : : }
665 : : else
666 : : _r1 = _o1[0];
667 : 0 : res_op0 = _r1;
668 : : }
669 : 0 : tree res_op1;
670 : 0 : {
671 : 0 : tree _o1[2], _r1;
672 : 0 : _o1[0] = captures[2];
673 : 0 : {
674 : 0 : tree _o2[1], _r2;
675 : 0 : _o2[0] = captures[1];
676 : 0 : if (TREE_TYPE (_o2[0]) != type)
677 : : {
678 : 0 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o2[0]);
679 : : }
680 : : else
681 : : _r2 = _o2[0];
682 : 0 : _o1[1] = _r2;
683 : : }
684 : 0 : _r1 = fold_build2_loc (loc, neg_inner_op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
685 : 0 : if (EXPR_P (_r1))
686 : 0 : goto next_after_fail235;
687 : 0 : res_op1 = _r1;
688 : : }
689 : 0 : tree _r;
690 : 0 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
691 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 119, __FILE__, __LINE__, true);
692 : 0 : return _r;
693 : : }
694 : : next_after_fail235:;
695 : : }
696 : : }
697 : : }
698 : : else
699 : : {
700 : 2012446 : if (!ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
701 : 2012446 : || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[0]))
702 : : )
703 : : {
704 : 261142 : if (outer_op == PLUS_EXPR
705 : : )
706 : : {
707 : 261142 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail236;
708 : 261142 : {
709 : 261142 : tree res_op0;
710 : 261142 : {
711 : 261142 : tree _o1[2], _r1;
712 : 261142 : _o1[0] = captures[0];
713 : 261142 : {
714 : 261142 : tree _o2[2], _r2;
715 : 261142 : {
716 : 261142 : tree _o3[1], _r3;
717 : 261142 : _o3[0] = captures[2];
718 : 261142 : if (TREE_TYPE (_o3[0]) != TREE_TYPE (_o1[0]))
719 : : {
720 : 261142 : _r3 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, TREE_TYPE (_o1[0]), _o3[0]);
721 : : }
722 : : else
723 : : _r3 = _o3[0];
724 : 261142 : _o2[0] = _r3;
725 : : }
726 : 261142 : _o2[1] = captures[1];
727 : 261142 : _r2 = fold_build2_loc (loc, inner_op, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
728 : 261142 : if (EXPR_P (_r2))
729 : 0 : goto next_after_fail236;
730 : 261142 : _o1[1] = _r2;
731 : : }
732 : 261142 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
733 : 261142 : res_op0 = _r1;
734 : : }
735 : 261142 : tree _r;
736 : 261142 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
737 : 261142 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 120, __FILE__, __LINE__, true);
738 : 261142 : return _r;
739 : : }
740 : : next_after_fail236:;
741 : : }
742 : : else
743 : : {
744 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail237;
745 : 0 : {
746 : 0 : tree res_op0;
747 : 0 : {
748 : 0 : tree _o1[2], _r1;
749 : 0 : _o1[0] = captures[0];
750 : 0 : {
751 : 0 : tree _o2[2], _r2;
752 : 0 : {
753 : 0 : tree _o3[1], _r3;
754 : 0 : _o3[0] = captures[2];
755 : 0 : if (TREE_TYPE (_o3[0]) != TREE_TYPE (_o1[0]))
756 : : {
757 : 0 : _r3 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, TREE_TYPE (_o1[0]), _o3[0]);
758 : : }
759 : : else
760 : : _r3 = _o3[0];
761 : 0 : _o2[0] = _r3;
762 : : }
763 : 0 : _o2[1] = captures[1];
764 : 0 : _r2 = fold_build2_loc (loc, neg_inner_op, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
765 : 0 : if (EXPR_P (_r2))
766 : 0 : goto next_after_fail237;
767 : 0 : _o1[1] = _r2;
768 : : }
769 : 0 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
770 : 0 : res_op0 = _r1;
771 : : }
772 : 0 : tree _r;
773 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
774 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 121, __FILE__, __LINE__, true);
775 : 0 : return _r;
776 : : }
777 : : next_after_fail237:;
778 : : }
779 : : }
780 : : else
781 : : {
782 : 745081 : if (types_match (type, captures[0]) && !TYPE_OVERFLOW_SANITIZED (type)
783 : : )
784 : : {
785 : 743870 : {
786 : 743870 : tree cst = const_binop (outer_op == inner_op
787 : : ? PLUS_EXPR : MINUS_EXPR,
788 : : type, captures[1], captures[2]);
789 : 743870 : if (cst
790 : : )
791 : : {
792 : 743870 : if (INTEGRAL_TYPE_P (type) && !TREE_OVERFLOW (cst)
793 : : )
794 : : {
795 : 743856 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail238;
796 : 743856 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail238;
797 : 743856 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail238;
798 : 743856 : {
799 : 743856 : tree res_op0;
800 : 743856 : res_op0 = captures[0];
801 : 743856 : tree res_op1;
802 : 743856 : res_op1 = cst;
803 : 743856 : tree _r;
804 : 743856 : _r = fold_build2_loc (loc, inner_op, type, res_op0, res_op1);
805 : 743856 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 122, __FILE__, __LINE__, true);
806 : 743856 : return _r;
807 : : }
808 : : next_after_fail238:;
809 : : }
810 : : else
811 : : {
812 : 28 : if (INTEGRAL_TYPE_P (type)
813 : 28 : && wi::to_wide (cst) == wi::min_value (type)
814 : : )
815 : : {
816 : 7 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail239;
817 : 7 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail239;
818 : 7 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail239;
819 : 7 : {
820 : 7 : tree res_op0;
821 : 7 : res_op0 = captures[0];
822 : 7 : tree res_op1;
823 : 7 : res_op1 = wide_int_to_tree (type, wi::to_wide (cst));
824 : 7 : tree _r;
825 : 7 : _r = fold_build2_loc (loc, neg_inner_op, type, res_op0, res_op1);
826 : 7 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 123, __FILE__, __LINE__, true);
827 : 7 : return _r;
828 : : }
829 : : next_after_fail239:;
830 : : }
831 : : else
832 : : {
833 : 7 : {
834 : 7 : tree utype = unsigned_type_for (type);
835 : 7 : if (utype
836 : : )
837 : : {
838 : 7 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail240;
839 : 7 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail240;
840 : 7 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail240;
841 : 7 : {
842 : 7 : tree res_op0;
843 : 7 : {
844 : 7 : tree _o1[2], _r1;
845 : 7 : {
846 : 7 : tree _o2[1], _r2;
847 : 7 : _o2[0] = captures[0];
848 : 7 : if (TREE_TYPE (_o2[0]) != utype)
849 : : {
850 : 7 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, utype, _o2[0]);
851 : : }
852 : : else
853 : : _r2 = _o2[0];
854 : 7 : _o1[0] = _r2;
855 : : }
856 : 7 : {
857 : 7 : tree _o2[1], _r2;
858 : 7 : _o2[0] = TREE_OVERFLOW (cst)
859 : 7 : ? drop_tree_overflow (cst) : cst;
860 : 7 : if (TREE_TYPE (_o2[0]) != utype)
861 : : {
862 : 7 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, utype, _o2[0]);
863 : : }
864 : : else
865 : : _r2 = _o2[0];
866 : 7 : _o1[1] = _r2;
867 : : }
868 : 7 : _r1 = fold_build2_loc (loc, inner_op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
869 : 7 : res_op0 = _r1;
870 : : }
871 : 7 : tree _r;
872 : 7 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
873 : 7 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 124, __FILE__, __LINE__, true);
874 : 7 : return _r;
875 : : }
876 : : next_after_fail240:;
877 : : }
878 : : }
879 : : }
880 : : }
881 : : }
882 : : }
883 : : }
884 : : }
885 : : }
886 : : }
887 : : }
888 : : return NULL_TREE;
889 : : }
890 : :
891 : : tree
892 : 0 : generic_simplify_37 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
893 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
894 : : const enum tree_code ARG_UNUSED (op))
895 : : {
896 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
897 : 0 : if (VECTOR_FLOAT_TYPE_P (type)
898 : 0 : && TYPE_VECTOR_SUBPARTS (type).is_constant ()
899 : : )
900 : : {
901 : 0 : {
902 : 0 : tree perm_cst = captures[1];
903 : 0 : vec_perm_builder builder;
904 : 0 : bool full_perm_p = false;
905 : 0 : if (tree_to_vec_perm_builder (&builder, perm_cst))
906 : : {
907 : 0 : unsigned HOST_WIDE_INT nelts;
908 : 0 : nelts = TYPE_VECTOR_SUBPARTS (type).to_constant ();
909 : 0 : vec_perm_indices sel (builder, 1, nelts);
910 : 0 : if (sel.encoding ().encoded_full_vector_p ())
911 : : {
912 : 0 : auto_sbitmap seen (nelts);
913 : 0 : bitmap_clear (seen);
914 : 0 : unsigned HOST_WIDE_INT count = 0, i;
915 : 0 : for (i = 0; i < nelts; i++)
916 : : {
917 : 0 : if (!bitmap_set_bit (seen, sel[i].to_constant ()))
918 : : break;
919 : 0 : count++;
920 : : }
921 : 0 : full_perm_p = count == nelts;
922 : 0 : }
923 : 0 : }
924 : 0 : if (full_perm_p
925 : : )
926 : : {
927 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail264;
928 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail264;
929 : 0 : {
930 : 0 : tree res_op0;
931 : 0 : {
932 : 0 : tree _o1[2], _r1;
933 : 0 : _o1[0] = captures[0];
934 : 0 : _o1[1] = captures[2];
935 : 0 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
936 : 0 : captures[3] = _r1;
937 : : }
938 : 0 : res_op0 = unshare_expr (captures[3]);
939 : 0 : tree res_op1;
940 : 0 : res_op1 = captures[3];
941 : 0 : tree res_op2;
942 : 0 : res_op2 = captures[1];
943 : 0 : tree _r;
944 : 0 : _r = fold_build3_loc (loc, VEC_PERM_EXPR, type, res_op0, res_op1, res_op2);
945 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 148, __FILE__, __LINE__, true);
946 : 0 : return _r;
947 : : }
948 : 0 : next_after_fail264:;
949 : : }
950 : 0 : }
951 : : }
952 : : return NULL_TREE;
953 : : }
954 : :
955 : : tree
956 : 276 : generic_simplify_46 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
957 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
958 : : {
959 : 276 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
960 : 276 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
961 : 276 : && tree_nop_conversion_p (type, TREE_TYPE (captures[3]))
962 : : )
963 : : {
964 : 276 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail273;
965 : 276 : {
966 : 276 : tree res_op0;
967 : 276 : {
968 : 276 : tree _o1[2], _r1;
969 : 276 : {
970 : 276 : tree _o2[1], _r2;
971 : 276 : _o2[0] = captures[3];
972 : 276 : _r2 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
973 : 276 : _o1[0] = _r2;
974 : : }
975 : 276 : _o1[1] = captures[0];
976 : 276 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
977 : 276 : res_op0 = _r1;
978 : : }
979 : 276 : tree _r;
980 : 276 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
981 : 276 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 156, __FILE__, __LINE__, true);
982 : 276 : return _r;
983 : : }
984 : 0 : next_after_fail273:;
985 : : }
986 : : return NULL_TREE;
987 : : }
988 : :
989 : : tree
990 : 136 : generic_simplify_51 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
991 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
992 : : {
993 : 136 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
994 : 136 : if (!TYPE_SATURATING (type)
995 : : )
996 : : {
997 : 136 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
998 : 272 : && !FIXED_POINT_TYPE_P (type)
999 : : )
1000 : : {
1001 : 136 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail280;
1002 : 136 : {
1003 : 136 : tree res_op0;
1004 : 136 : res_op0 = captures[1];
1005 : 136 : tree _r;
1006 : 136 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
1007 : 136 : if (TREE_SIDE_EFFECTS (captures[0]))
1008 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1009 : 136 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 163, __FILE__, __LINE__, true);
1010 : 136 : return _r;
1011 : : }
1012 : 0 : next_after_fail280:;
1013 : : }
1014 : : }
1015 : : return NULL_TREE;
1016 : : }
1017 : :
1018 : : tree
1019 : 41 : generic_simplify_54 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1020 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1021 : : {
1022 : 41 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1023 : 41 : if (!TYPE_SATURATING (type)
1024 : : )
1025 : : {
1026 : 41 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
1027 : 82 : && !FIXED_POINT_TYPE_P (type)
1028 : : )
1029 : : {
1030 : 82 : if (!TYPE_OVERFLOW_TRAPS (type)
1031 : 41 : && TREE_CODE (type) != COMPLEX_TYPE
1032 : 81 : && tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
1033 : : )
1034 : : {
1035 : 40 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail285;
1036 : 40 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail285;
1037 : 40 : {
1038 : 40 : tree res_op0;
1039 : 40 : {
1040 : 40 : tree _o1[1], _r1;
1041 : 40 : _o1[0] = captures[0];
1042 : 40 : if (TREE_TYPE (_o1[0]) != type)
1043 : : {
1044 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1045 : : }
1046 : : else
1047 : : _r1 = _o1[0];
1048 : 40 : res_op0 = _r1;
1049 : : }
1050 : 40 : tree _r;
1051 : 40 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
1052 : 40 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 168, __FILE__, __LINE__, true);
1053 : 40 : return _r;
1054 : : }
1055 : : next_after_fail285:;
1056 : : }
1057 : : }
1058 : : }
1059 : : return NULL_TREE;
1060 : : }
1061 : :
1062 : : tree
1063 : 0 : generic_simplify_59 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1064 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1065 : : {
1066 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1067 : 0 : if (VECTOR_TYPE_P (type)
1068 : 0 : && known_eq (TYPE_VECTOR_SUBPARTS (type),
1069 : : TYPE_VECTOR_SUBPARTS (TREE_TYPE (captures[3])))
1070 : 0 : && (TYPE_MODE (TREE_TYPE (type))
1071 : 0 : == TYPE_MODE (TREE_TYPE (TREE_TYPE (captures[3]))))
1072 : : )
1073 : : {
1074 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail292;
1075 : 0 : {
1076 : 0 : tree res_op0;
1077 : 0 : res_op0 = captures[0];
1078 : 0 : tree res_op1;
1079 : 0 : {
1080 : 0 : tree _o1[1], _r1;
1081 : 0 : {
1082 : 0 : tree _o2[3], _r2;
1083 : 0 : _o2[0] = captures[2];
1084 : 0 : {
1085 : 0 : tree _o3[1], _r3;
1086 : 0 : _o3[0] = captures[3];
1087 : 0 : _r3 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o3[0]), _o3[0]);
1088 : 0 : _o2[1] = _r3;
1089 : : }
1090 : 0 : _o2[2] = captures[4];
1091 : 0 : _r2 = fold_build3_loc (loc, VEC_COND_EXPR, TREE_TYPE (_o2[1]), _o2[0], _o2[1], _o2[2]);
1092 : 0 : _o1[0] = _r2;
1093 : : }
1094 : 0 : if (TREE_TYPE (_o1[0]) != type)
1095 : : {
1096 : 0 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
1097 : : }
1098 : : else
1099 : : _r1 = _o1[0];
1100 : 0 : res_op1 = _r1;
1101 : : }
1102 : 0 : tree _r;
1103 : 0 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
1104 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 175, __FILE__, __LINE__, true);
1105 : 0 : return _r;
1106 : : }
1107 : 0 : next_after_fail292:;
1108 : : }
1109 : : return NULL_TREE;
1110 : : }
1111 : :
1112 : : tree
1113 : 15 : generic_simplify_65 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1114 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1115 : : const enum tree_code ARG_UNUSED (bitop),
1116 : : const enum tree_code ARG_UNUSED (cmp))
1117 : : {
1118 : 15 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1119 : 30 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
1120 : 15 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
1121 : 30 : && TYPE_PRECISION (TREE_TYPE (captures[0])) == TYPE_PRECISION (TREE_TYPE (captures[2]))
1122 : : )
1123 : : {
1124 : 15 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail298;
1125 : 15 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail298;
1126 : 15 : {
1127 : 15 : tree res_op0;
1128 : 15 : {
1129 : 15 : tree _o1[2], _r1;
1130 : 15 : _o1[0] = captures[0];
1131 : 15 : {
1132 : 15 : tree _o2[1], _r2;
1133 : 15 : _o2[0] = captures[2];
1134 : 15 : if (TREE_TYPE (_o2[0]) != TREE_TYPE (_o1[0]))
1135 : : {
1136 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (_o1[0]), _o2[0]);
1137 : : }
1138 : : else
1139 : : _r2 = _o2[0];
1140 : 15 : _o1[1] = _r2;
1141 : : }
1142 : 15 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1143 : 15 : res_op0 = _r1;
1144 : : }
1145 : 15 : tree res_op1;
1146 : 15 : res_op1 = captures[1];
1147 : 15 : tree _r;
1148 : 15 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
1149 : 15 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 181, __FILE__, __LINE__, true);
1150 : 15 : return _r;
1151 : : }
1152 : : next_after_fail298:;
1153 : : }
1154 : : return NULL_TREE;
1155 : : }
1156 : :
1157 : : tree
1158 : 0 : generic_simplify_76 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1159 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1160 : : const enum tree_code ARG_UNUSED (bit_op))
1161 : : {
1162 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1163 : 0 : if (bit_op == BIT_AND_EXPR
1164 : : )
1165 : : {
1166 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail312;
1167 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail312;
1168 : 0 : {
1169 : 0 : tree _r;
1170 : 0 : _r = build_zero_cst (type);
1171 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 190, __FILE__, __LINE__, true);
1172 : 0 : return _r;
1173 : : }
1174 : : next_after_fail312:;
1175 : : }
1176 : : else
1177 : : {
1178 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail313;
1179 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail313;
1180 : 0 : {
1181 : 0 : tree _r;
1182 : 0 : _r = build_minus_one_cst (type);
1183 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 191, __FILE__, __LINE__, true);
1184 : 0 : return _r;
1185 : : }
1186 : : next_after_fail313:;
1187 : : }
1188 : : return NULL_TREE;
1189 : : }
1190 : :
1191 : : tree
1192 : 15 : generic_simplify_88 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1193 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1194 : : const enum tree_code ARG_UNUSED (bitop))
1195 : : {
1196 : 15 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1197 : 15 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail325;
1198 : 15 : {
1199 : 15 : tree res_op0;
1200 : 15 : res_op0 = captures[0];
1201 : 15 : tree res_op1;
1202 : 15 : {
1203 : 15 : tree _o1[1], _r1;
1204 : 15 : _o1[0] = captures[2];
1205 : 15 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
1206 : 15 : res_op1 = _r1;
1207 : : }
1208 : 15 : tree _r;
1209 : 15 : _r = fold_build2_loc (loc, bitop, type, res_op0, res_op1);
1210 : 15 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 199, __FILE__, __LINE__, true);
1211 : : return _r;
1212 : : }
1213 : 0 : next_after_fail325:;
1214 : 0 : return NULL_TREE;
1215 : : }
1216 : :
1217 : : tree
1218 : 0 : generic_simplify_97 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1219 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1220 : : const enum tree_code ARG_UNUSED (op))
1221 : : {
1222 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1223 : 0 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[3]))
1224 : 0 : && tree_nop_conversion_p (type, TREE_TYPE (captures[6]))
1225 : : )
1226 : : {
1227 : 0 : if (single_use (captures[4]) && single_use (captures[5])
1228 : : )
1229 : : {
1230 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail334;
1231 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail334;
1232 : 0 : {
1233 : 0 : tree res_op0;
1234 : 0 : res_op0 = captures[0];
1235 : 0 : tree res_op1;
1236 : 0 : {
1237 : 0 : tree _o1[1], _r1;
1238 : 0 : _o1[0] = captures[6];
1239 : 0 : if (TREE_TYPE (_o1[0]) != type)
1240 : : {
1241 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1242 : : }
1243 : : else
1244 : : _r1 = _o1[0];
1245 : 0 : res_op1 = _r1;
1246 : : }
1247 : 0 : tree _r;
1248 : 0 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
1249 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 206, __FILE__, __LINE__, true);
1250 : 0 : return _r;
1251 : : }
1252 : : next_after_fail334:;
1253 : : }
1254 : : else
1255 : : {
1256 : : if (single_use (captures[0]) && single_use (captures[1])
1257 : : )
1258 : : {
1259 : : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail335;
1260 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail335;
1261 : : {
1262 : : tree res_op0;
1263 : : {
1264 : : tree _o1[1], _r1;
1265 : : _o1[0] = captures[3];
1266 : : if (TREE_TYPE (_o1[0]) != type)
1267 : : {
1268 : : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1269 : : }
1270 : : else
1271 : : _r1 = _o1[0];
1272 : : res_op0 = _r1;
1273 : : }
1274 : : tree res_op1;
1275 : : res_op1 = captures[4];
1276 : : tree _r;
1277 : : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
1278 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 207, __FILE__, __LINE__, true);
1279 : : return _r;
1280 : : }
1281 : : next_after_fail335:;
1282 : : }
1283 : : }
1284 : : }
1285 : : return NULL_TREE;
1286 : : }
1287 : :
1288 : : tree
1289 : 82 : generic_simplify_107 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1290 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1291 : : const enum tree_code ARG_UNUSED (op))
1292 : : {
1293 : 82 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1294 : 82 : if (bitwise_equal_p (captures[4], captures[7])
1295 : : )
1296 : : {
1297 : 16 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail348;
1298 : 16 : {
1299 : 16 : tree res_op0;
1300 : 16 : {
1301 : 16 : tree _o1[2], _r1;
1302 : 16 : {
1303 : 16 : tree _o2[2], _r2;
1304 : 16 : _o2[0] = captures[5];
1305 : 16 : {
1306 : 16 : tree _o3[1], _r3;
1307 : 16 : _o3[0] = captures[6];
1308 : 16 : if (TREE_TYPE (_o3[0]) != TREE_TYPE (_o2[0]))
1309 : : {
1310 : 16 : _r3 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (_o2[0]), _o3[0]);
1311 : : }
1312 : : else
1313 : : _r3 = _o3[0];
1314 : 16 : _o2[1] = _r3;
1315 : : }
1316 : 16 : _r2 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
1317 : 16 : _o1[0] = _r2;
1318 : : }
1319 : 16 : {
1320 : 16 : tree _o2[1], _r2;
1321 : 16 : _o2[0] = captures[4];
1322 : 16 : if (TREE_TYPE (_o2[0]) != TREE_TYPE (_o1[0]))
1323 : : {
1324 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (_o1[0]), _o2[0]);
1325 : : }
1326 : : else
1327 : : _r2 = _o2[0];
1328 : 16 : _o1[1] = _r2;
1329 : : }
1330 : 16 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1331 : 16 : res_op0 = _r1;
1332 : : }
1333 : 16 : tree _r;
1334 : 16 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1335 : 16 : if (TREE_SIDE_EFFECTS (captures[7]))
1336 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[7]), _r);
1337 : 16 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 213, __FILE__, __LINE__, true);
1338 : 16 : return _r;
1339 : : }
1340 : 0 : next_after_fail348:;
1341 : : }
1342 : : return NULL_TREE;
1343 : : }
1344 : :
1345 : : tree
1346 : 7 : generic_simplify_118 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1347 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1348 : : const enum tree_code ARG_UNUSED (op))
1349 : : {
1350 : 7 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1351 : 7 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail362;
1352 : 7 : {
1353 : 7 : tree _r;
1354 : 7 : _r = constant_boolean_node (true, type);
1355 : 7 : if (TREE_SIDE_EFFECTS (captures[0]))
1356 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1357 : 7 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 222, __FILE__, __LINE__, true);
1358 : : return _r;
1359 : : }
1360 : 0 : next_after_fail362:;
1361 : 0 : return NULL_TREE;
1362 : : }
1363 : :
1364 : : tree
1365 : 0 : generic_simplify_125 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1366 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1367 : : {
1368 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1369 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
1370 : 0 : && TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[1]))
1371 : : )
1372 : : {
1373 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail373;
1374 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail373;
1375 : 0 : {
1376 : 0 : tree res_op0;
1377 : 0 : res_op0 = captures[3];
1378 : 0 : tree res_op1;
1379 : 0 : {
1380 : 0 : tree _o1[2], _r1;
1381 : 0 : _o1[0] = captures[1];
1382 : 0 : _o1[1] = build_int_cst (TREE_TYPE (captures[1]), 1);
1383 : 0 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1384 : 0 : res_op1 = _r1;
1385 : : }
1386 : 0 : tree _r;
1387 : 0 : _r = fold_build2_loc (loc, LE_EXPR, type, res_op0, res_op1);
1388 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 233, __FILE__, __LINE__, true);
1389 : 0 : return _r;
1390 : : }
1391 : : next_after_fail373:;
1392 : : }
1393 : : return NULL_TREE;
1394 : : }
1395 : :
1396 : : tree
1397 : 0 : generic_simplify_131 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1398 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1399 : : {
1400 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1401 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail397;
1402 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail397;
1403 : 0 : {
1404 : 0 : tree _r;
1405 : 0 : _r = captures[2];
1406 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
1407 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1408 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 231, __FILE__, __LINE__, true);
1409 : : return _r;
1410 : : }
1411 : : next_after_fail397:;
1412 : : return NULL_TREE;
1413 : : }
1414 : :
1415 : : tree
1416 : 0 : generic_simplify_135 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1417 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1418 : : const enum tree_code ARG_UNUSED (code2),
1419 : : const enum tree_code ARG_UNUSED (code1))
1420 : : {
1421 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1422 : 0 : if ((TREE_CODE (captures[2]) == INTEGER_CST
1423 : 0 : && TREE_CODE (captures[5]) == INTEGER_CST)
1424 : 0 : || ((INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
1425 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[2])))
1426 : 0 : && bitwise_equal_p (captures[2], captures[5]))
1427 : : )
1428 : : {
1429 : 0 : {
1430 : 0 : bool one_before = false;
1431 : 0 : bool one_after = false;
1432 : 0 : int cmp = 0;
1433 : 0 : bool allbits = true;
1434 : 0 : if (TREE_CODE (captures[2]) == INTEGER_CST
1435 : 0 : && TREE_CODE (captures[5]) == INTEGER_CST)
1436 : : {
1437 : 0 : allbits = TYPE_PRECISION (TREE_TYPE (captures[2])) <= TYPE_PRECISION (TREE_TYPE (captures[5]));
1438 : 0 : auto t1 = wi::to_wide (fold_convert (TREE_TYPE (captures[5]), captures[2]));
1439 : 0 : auto t2 = wi::to_wide (captures[5]);
1440 : 0 : cmp = wi::cmp (t1, t2, TYPE_SIGN (TREE_TYPE (captures[5])));
1441 : 0 : if (cmp < 0
1442 : 0 : && t1 == t2 - 1)
1443 : : one_before = true;
1444 : 0 : if (cmp > 0
1445 : 0 : && t1 == t2 + 1)
1446 : : one_after = true;
1447 : : }
1448 : 0 : bool val;
1449 : 0 : switch (code2)
1450 : : {
1451 : 0 : case EQ_EXPR: val = (cmp == 0); break;
1452 : 0 : case NE_EXPR: val = (cmp != 0); break;
1453 : 0 : case LT_EXPR: val = (cmp < 0); break;
1454 : 0 : case GT_EXPR: val = (cmp > 0); break;
1455 : 0 : case LE_EXPR: val = (cmp <= 0); break;
1456 : 0 : case GE_EXPR: val = (cmp >= 0); break;
1457 : 0 : default: gcc_unreachable ();
1458 : : }
1459 : 0 : if (code1 == EQ_EXPR && val
1460 : : )
1461 : : {
1462 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail402;
1463 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail402;
1464 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail402;
1465 : 0 : {
1466 : 0 : tree _r;
1467 : 0 : _r = captures[3];
1468 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 234, __FILE__, __LINE__, true);
1469 : 0 : return _r;
1470 : : }
1471 : : next_after_fail402:;
1472 : : }
1473 : : else
1474 : : {
1475 : 0 : if (code1 == NE_EXPR && val && allbits
1476 : : )
1477 : : {
1478 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail403;
1479 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail403;
1480 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail403;
1481 : 0 : {
1482 : 0 : tree _r;
1483 : 0 : _r = constant_boolean_node (true, type);
1484 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
1485 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1486 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 235, __FILE__, __LINE__, true);
1487 : 0 : return _r;
1488 : : }
1489 : : next_after_fail403:;
1490 : : }
1491 : : else
1492 : : {
1493 : 0 : if (code1 == NE_EXPR && !val && allbits
1494 : : )
1495 : : {
1496 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail404;
1497 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail404;
1498 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail404;
1499 : 0 : {
1500 : 0 : tree _r;
1501 : 0 : _r = captures[0];
1502 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 236, __FILE__, __LINE__, true);
1503 : 0 : return _r;
1504 : : }
1505 : : next_after_fail404:;
1506 : : }
1507 : : else
1508 : : {
1509 : 0 : if (code1 == EQ_EXPR
1510 : 0 : && code2 == GT_EXPR
1511 : 0 : && cmp == 0
1512 : 0 : && allbits
1513 : : )
1514 : : {
1515 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail405;
1516 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail405;
1517 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail405;
1518 : 0 : {
1519 : 0 : tree res_op0;
1520 : 0 : res_op0 = captures[4];
1521 : 0 : tree res_op1;
1522 : 0 : res_op1 = captures[5];
1523 : 0 : tree _r;
1524 : 0 : _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
1525 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 237, __FILE__, __LINE__, true);
1526 : 0 : return _r;
1527 : : }
1528 : : next_after_fail405:;
1529 : : }
1530 : : else
1531 : : {
1532 : 0 : if (code1 == EQ_EXPR
1533 : 0 : && code2 == LT_EXPR
1534 : 0 : && cmp == 0
1535 : 0 : && allbits
1536 : : )
1537 : : {
1538 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail406;
1539 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail406;
1540 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail406;
1541 : 0 : {
1542 : 0 : tree res_op0;
1543 : 0 : res_op0 = captures[4];
1544 : 0 : tree res_op1;
1545 : 0 : res_op1 = captures[5];
1546 : 0 : tree _r;
1547 : 0 : _r = fold_build2_loc (loc, LE_EXPR, type, res_op0, res_op1);
1548 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 238, __FILE__, __LINE__, true);
1549 : 0 : return _r;
1550 : : }
1551 : : next_after_fail406:;
1552 : : }
1553 : : else
1554 : : {
1555 : 0 : if (code1 == EQ_EXPR
1556 : 0 : && code2 == GE_EXPR
1557 : : && one_before
1558 : 0 : && allbits
1559 : : )
1560 : : {
1561 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail407;
1562 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail407;
1563 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail407;
1564 : 0 : {
1565 : 0 : tree res_op0;
1566 : 0 : res_op0 = captures[4];
1567 : 0 : tree res_op1;
1568 : 0 : {
1569 : 0 : tree _o1[1], _r1;
1570 : 0 : _o1[0] = captures[2];
1571 : 0 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
1572 : : {
1573 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
1574 : : }
1575 : : else
1576 : : _r1 = _o1[0];
1577 : 0 : res_op1 = _r1;
1578 : : }
1579 : 0 : tree _r;
1580 : 0 : _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
1581 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 239, __FILE__, __LINE__, true);
1582 : 0 : return _r;
1583 : : }
1584 : : next_after_fail407:;
1585 : : }
1586 : : else
1587 : : {
1588 : 0 : if (code1 == EQ_EXPR
1589 : 0 : && code2 == LE_EXPR
1590 : : && one_after
1591 : 0 : && allbits
1592 : : )
1593 : : {
1594 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail408;
1595 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail408;
1596 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail408;
1597 : 0 : {
1598 : 0 : tree res_op0;
1599 : 0 : res_op0 = captures[4];
1600 : 0 : tree res_op1;
1601 : 0 : {
1602 : 0 : tree _o1[1], _r1;
1603 : 0 : _o1[0] = captures[2];
1604 : 0 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
1605 : : {
1606 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
1607 : : }
1608 : : else
1609 : : _r1 = _o1[0];
1610 : 0 : res_op1 = _r1;
1611 : : }
1612 : 0 : tree _r;
1613 : 0 : _r = fold_build2_loc (loc, LE_EXPR, type, res_op0, res_op1);
1614 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 240, __FILE__, __LINE__, true);
1615 : 0 : return _r;
1616 : : }
1617 : : next_after_fail408:;
1618 : : }
1619 : : }
1620 : : }
1621 : : }
1622 : : }
1623 : : }
1624 : : }
1625 : : }
1626 : : }
1627 : : return NULL_TREE;
1628 : : }
1629 : :
1630 : : tree
1631 : 64 : generic_simplify_168 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1632 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1633 : : const enum tree_code ARG_UNUSED (cmp),
1634 : : const enum tree_code ARG_UNUSED (icmp),
1635 : : const enum tree_code ARG_UNUSED (ncmp))
1636 : : {
1637 : 64 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1638 : 64 : {
1639 : 64 : enum tree_code ic = invert_tree_comparison
1640 : 64 : (cmp, HONOR_NANS (captures[0]));
1641 : 64 : if (ic == icmp
1642 : : )
1643 : : {
1644 : 64 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail448;
1645 : 64 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail448;
1646 : 64 : {
1647 : 64 : tree res_op0;
1648 : 64 : res_op0 = captures[0];
1649 : 64 : tree res_op1;
1650 : 64 : res_op1 = captures[1];
1651 : 64 : tree _r;
1652 : 64 : _r = fold_build2_loc (loc, icmp, type, res_op0, res_op1);
1653 : 64 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 276, __FILE__, __LINE__, true);
1654 : 64 : return _r;
1655 : : }
1656 : : next_after_fail448:;
1657 : : }
1658 : : else
1659 : : {
1660 : 0 : if (ic == ncmp
1661 : : )
1662 : : {
1663 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail449;
1664 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail449;
1665 : 0 : {
1666 : 0 : tree res_op0;
1667 : 0 : res_op0 = captures[0];
1668 : 0 : tree res_op1;
1669 : 0 : res_op1 = captures[1];
1670 : 0 : tree _r;
1671 : 0 : _r = fold_build2_loc (loc, ncmp, type, res_op0, res_op1);
1672 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 277, __FILE__, __LINE__, true);
1673 : 0 : return _r;
1674 : : }
1675 : : next_after_fail449:;
1676 : : }
1677 : : }
1678 : : }
1679 : : return NULL_TREE;
1680 : : }
1681 : :
1682 : : tree
1683 : 6 : generic_simplify_181 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1684 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1685 : : {
1686 : 6 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1687 : 6 : if (INTEGRAL_TYPE_P (type)
1688 : 6 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
1689 : 12 : && !TYPE_UNSIGNED (TREE_TYPE (captures[0]))
1690 : : )
1691 : : {
1692 : 6 : if (TYPE_UNSIGNED (type)
1693 : : )
1694 : : {
1695 : 5 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail463;
1696 : 5 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail463;
1697 : 5 : {
1698 : 5 : tree res_op0;
1699 : 5 : res_op0 = captures[0];
1700 : 5 : tree _r;
1701 : 5 : _r = fold_build1_loc (loc, ABSU_EXPR, type, res_op0);
1702 : 5 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 288, __FILE__, __LINE__, true);
1703 : 5 : return _r;
1704 : : }
1705 : : next_after_fail463:;
1706 : : }
1707 : : else
1708 : : {
1709 : 1 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail464;
1710 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail464;
1711 : 1 : {
1712 : 1 : tree res_op0;
1713 : 1 : res_op0 = captures[0];
1714 : 1 : tree _r;
1715 : 1 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
1716 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 289, __FILE__, __LINE__, true);
1717 : 1 : return _r;
1718 : : }
1719 : : next_after_fail464:;
1720 : : }
1721 : : }
1722 : : return NULL_TREE;
1723 : : }
1724 : :
1725 : : tree
1726 : 2 : generic_simplify_191 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1727 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1728 : : const combined_fn ARG_UNUSED (SQRT_ALL))
1729 : : {
1730 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1731 : 2 : if (flag_unsafe_math_optimizations
1732 : : )
1733 : : {
1734 : 2 : if (!tree_expr_maybe_signaling_nan_p (captures[1])
1735 : : )
1736 : : {
1737 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail476;
1738 : 2 : {
1739 : 2 : tree _r;
1740 : 2 : _r = captures[1];
1741 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 298, __FILE__, __LINE__, true);
1742 : 2 : return _r;
1743 : : }
1744 : 0 : next_after_fail476:;
1745 : : }
1746 : : }
1747 : : return NULL_TREE;
1748 : : }
1749 : :
1750 : : tree
1751 : 38 : generic_simplify_196 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1752 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1753 : : const combined_fn ARG_UNUSED (POW))
1754 : : {
1755 : 38 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1756 : 38 : if (flag_unsafe_math_optimizations && canonicalize_math_p ()
1757 : : )
1758 : : {
1759 : 38 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail481;
1760 : 38 : {
1761 : 38 : tree res_op0;
1762 : 38 : res_op0 = captures[1];
1763 : 38 : tree res_op1;
1764 : 38 : {
1765 : 38 : tree _o1[2], _r1;
1766 : 38 : _o1[0] = captures[2];
1767 : 38 : _o1[1] = captures[4];
1768 : 38 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1769 : 38 : res_op1 = _r1;
1770 : : }
1771 : 38 : tree _r;
1772 : 38 : _r = maybe_build_call_expr_loc (loc, POW, type, 2, res_op0, res_op1);
1773 : 38 : if (!_r)
1774 : 0 : goto next_after_fail481;
1775 : 38 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 303, __FILE__, __LINE__, true);
1776 : 38 : return _r;
1777 : : }
1778 : : next_after_fail481:;
1779 : : }
1780 : : return NULL_TREE;
1781 : : }
1782 : :
1783 : : tree
1784 : 12 : generic_simplify_204 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1785 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1786 : : const enum tree_code ARG_UNUSED (cmp))
1787 : : {
1788 : 12 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1789 : 12 : if (element_precision (captures[0]) >= element_precision (captures[1])
1790 : 12 : && types_match (captures[1], captures[3])
1791 : : )
1792 : : {
1793 : 12 : if (wi::lt_p (wi::to_wide (captures[2]), 0, TYPE_SIGN (TREE_TYPE (captures[2])))
1794 : : )
1795 : : {
1796 : 0 : if (!TYPE_UNSIGNED (TREE_TYPE (captures[0]))
1797 : : )
1798 : : {
1799 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail489;
1800 : 0 : {
1801 : 0 : tree res_op0;
1802 : 0 : res_op0 = captures[3];
1803 : 0 : tree res_op1;
1804 : 0 : res_op1 = captures[1];
1805 : 0 : tree _r;
1806 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
1807 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
1808 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1809 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 311, __FILE__, __LINE__, true);
1810 : 0 : return _r;
1811 : : }
1812 : 0 : next_after_fail489:;
1813 : : }
1814 : : else
1815 : : {
1816 : 0 : if (tree_expr_nonzero_p (captures[1]) && tree_expr_nonzero_p (captures[3])
1817 : : )
1818 : : {
1819 : 0 : {
1820 : 0 : tree utype = unsigned_type_for (TREE_TYPE (captures[1]));
1821 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail490;
1822 : 0 : {
1823 : 0 : tree res_op0;
1824 : 0 : {
1825 : 0 : tree _o1[1], _r1;
1826 : 0 : _o1[0] = captures[3];
1827 : 0 : if (TREE_TYPE (_o1[0]) != utype)
1828 : : {
1829 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, utype, _o1[0]);
1830 : : }
1831 : : else
1832 : : _r1 = _o1[0];
1833 : 0 : res_op0 = _r1;
1834 : : }
1835 : 0 : tree res_op1;
1836 : 0 : {
1837 : 0 : tree _o1[1], _r1;
1838 : 0 : _o1[0] = captures[1];
1839 : 0 : if (TREE_TYPE (_o1[0]) != utype)
1840 : : {
1841 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, utype, _o1[0]);
1842 : : }
1843 : : else
1844 : : _r1 = _o1[0];
1845 : 0 : res_op1 = _r1;
1846 : : }
1847 : 0 : tree _r;
1848 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
1849 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
1850 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1851 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 312, __FILE__, __LINE__, true);
1852 : 0 : return _r;
1853 : : }
1854 : 0 : next_after_fail490:;
1855 : : }
1856 : : }
1857 : : }
1858 : : }
1859 : : else
1860 : : {
1861 : 12 : if (wi::gt_p (wi::to_wide (captures[2]), 1, TYPE_SIGN (TREE_TYPE (captures[2])))
1862 : : )
1863 : : {
1864 : 12 : if (TYPE_UNSIGNED (TREE_TYPE (captures[1])) || !TYPE_UNSIGNED (TREE_TYPE (captures[0]))
1865 : : )
1866 : : {
1867 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail491;
1868 : 12 : {
1869 : 12 : tree res_op0;
1870 : 12 : res_op0 = captures[1];
1871 : 12 : tree res_op1;
1872 : 12 : res_op1 = captures[3];
1873 : 12 : tree _r;
1874 : 12 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
1875 : 12 : if (TREE_SIDE_EFFECTS (captures[2]))
1876 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1877 : 12 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 313, __FILE__, __LINE__, true);
1878 : 12 : return _r;
1879 : : }
1880 : 0 : next_after_fail491:;
1881 : : }
1882 : : else
1883 : : {
1884 : 0 : {
1885 : 0 : tree utype = unsigned_type_for (TREE_TYPE (captures[1]));
1886 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail492;
1887 : 0 : {
1888 : 0 : tree res_op0;
1889 : 0 : {
1890 : 0 : tree _o1[1], _r1;
1891 : 0 : _o1[0] = captures[1];
1892 : 0 : if (TREE_TYPE (_o1[0]) != utype)
1893 : : {
1894 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, utype, _o1[0]);
1895 : : }
1896 : : else
1897 : : _r1 = _o1[0];
1898 : 0 : res_op0 = _r1;
1899 : : }
1900 : 0 : tree res_op1;
1901 : 0 : {
1902 : 0 : tree _o1[1], _r1;
1903 : 0 : _o1[0] = captures[3];
1904 : 0 : if (TREE_TYPE (_o1[0]) != utype)
1905 : : {
1906 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, utype, _o1[0]);
1907 : : }
1908 : : else
1909 : : _r1 = _o1[0];
1910 : 0 : res_op1 = _r1;
1911 : : }
1912 : 0 : tree _r;
1913 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
1914 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
1915 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1916 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 314, __FILE__, __LINE__, true);
1917 : 0 : return _r;
1918 : : }
1919 : 0 : next_after_fail492:;
1920 : : }
1921 : : }
1922 : : }
1923 : : }
1924 : : }
1925 : : return NULL_TREE;
1926 : : }
1927 : :
1928 : : tree
1929 : 181 : generic_simplify_229 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1930 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1931 : : const enum tree_code ARG_UNUSED (cmp))
1932 : : {
1933 : 181 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1934 : 181 : {
1935 : 181 : int cand = wi::ctz (wi::to_wide (captures[2])) - wi::ctz (wi::to_wide (captures[0]));
1936 : 362 : if (cand < 0
1937 : 181 : || (!integer_zerop (captures[2])
1938 : 248 : && wi::lshift (wi::to_wide (captures[0]), cand) != wi::to_wide (captures[2]))
1939 : : )
1940 : : {
1941 : 35 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail541;
1942 : 35 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail541;
1943 : 35 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail541;
1944 : 35 : {
1945 : 35 : tree _r;
1946 : 35 : _r = constant_boolean_node (cmp == NE_EXPR, type);
1947 : 35 : if (TREE_SIDE_EFFECTS (captures[1]))
1948 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1949 : 35 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 361, __FILE__, __LINE__, true);
1950 : 88 : return _r;
1951 : : }
1952 : 93 : next_after_fail541:;
1953 : : }
1954 : : else
1955 : : {
1956 : 146 : if (!integer_zerop (captures[2])
1957 : 146 : && wi::lshift (wi::to_wide (captures[0]), cand) == wi::to_wide (captures[2])
1958 : : )
1959 : : {
1960 : 53 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail542;
1961 : 53 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail542;
1962 : 53 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail542;
1963 : 53 : {
1964 : 53 : tree res_op0;
1965 : 53 : res_op0 = captures[1];
1966 : 53 : tree res_op1;
1967 : 53 : res_op1 = build_int_cst (TREE_TYPE (captures[1]), cand);
1968 : 53 : tree _r;
1969 : 53 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
1970 : 53 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 362, __FILE__, __LINE__, true);
1971 : 53 : return _r;
1972 : : }
1973 : 93 : next_after_fail542:;
1974 : : }
1975 : : }
1976 : : }
1977 : 93 : return NULL_TREE;
1978 : : }
1979 : :
1980 : : tree
1981 : 33513 : generic_simplify_240 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1982 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1983 : : const enum tree_code ARG_UNUSED (cmp),
1984 : : const enum tree_code ARG_UNUSED (scmp))
1985 : : {
1986 : 33513 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1987 : 33513 : if (integer_zerop (captures[2])
1988 : : )
1989 : : {
1990 : 7 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail554;
1991 : 7 : {
1992 : 7 : tree res_op0;
1993 : 7 : res_op0 = captures[2];
1994 : 7 : tree res_op1;
1995 : 7 : res_op1 = captures[3];
1996 : 7 : tree _r;
1997 : 7 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
1998 : 7 : if (TREE_SIDE_EFFECTS (captures[1]))
1999 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2000 : 7 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 373, __FILE__, __LINE__, true);
2001 : 7 : return _r;
2002 : : }
2003 : 0 : next_after_fail554:;
2004 : : }
2005 : : else
2006 : : {
2007 : 67012 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
2008 : 67012 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[1]))
2009 : 67012 : && single_use (captures[0])
2010 : : )
2011 : : {
2012 : 6811 : if (tree_int_cst_sgn (captures[2]) < 0
2013 : : )
2014 : : {
2015 : 15 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail555;
2016 : 15 : {
2017 : 15 : tree res_op0;
2018 : 15 : res_op0 = captures[1];
2019 : 15 : tree res_op1;
2020 : 15 : res_op1 = captures[3];
2021 : 15 : tree _r;
2022 : 15 : _r = fold_build2_loc (loc, scmp, type, res_op0, res_op1);
2023 : 15 : if (TREE_SIDE_EFFECTS (captures[2]))
2024 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2025 : 15 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 374, __FILE__, __LINE__, true);
2026 : 15 : return _r;
2027 : : }
2028 : 0 : next_after_fail555:;
2029 : : }
2030 : : else
2031 : : {
2032 : 6796 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail556;
2033 : 6796 : {
2034 : 6796 : tree res_op0;
2035 : 6796 : res_op0 = captures[1];
2036 : 6796 : tree res_op1;
2037 : 6796 : res_op1 = captures[3];
2038 : 6796 : tree _r;
2039 : 6796 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2040 : 6796 : if (TREE_SIDE_EFFECTS (captures[2]))
2041 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2042 : 6796 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 375, __FILE__, __LINE__, true);
2043 : 6796 : return _r;
2044 : : }
2045 : 0 : next_after_fail556:;
2046 : : }
2047 : : }
2048 : : }
2049 : : return NULL_TREE;
2050 : : }
2051 : :
2052 : : tree
2053 : 4 : generic_simplify_251 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2054 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2055 : : const combined_fn ARG_UNUSED (sq),
2056 : : const enum tree_code ARG_UNUSED (cmp))
2057 : : {
2058 : 4 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2059 : 4 : if (flag_unsafe_math_optimizations && ! flag_errno_math
2060 : : )
2061 : : {
2062 : 0 : if (! HONOR_NANS (captures[0])
2063 : : )
2064 : : {
2065 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail602;
2066 : 0 : {
2067 : 0 : tree res_op0;
2068 : 0 : res_op0 = captures[0];
2069 : 0 : tree res_op1;
2070 : 0 : res_op1 = captures[1];
2071 : 0 : tree _r;
2072 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2073 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 420, __FILE__, __LINE__, true);
2074 : 0 : return _r;
2075 : : }
2076 : 0 : next_after_fail602:;
2077 : : }
2078 : : }
2079 : : return NULL_TREE;
2080 : : }
2081 : :
2082 : : tree
2083 : 59 : generic_simplify_255 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2084 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2085 : : const enum tree_code ARG_UNUSED (cmp),
2086 : : const enum tree_code ARG_UNUSED (scmp))
2087 : : {
2088 : 59 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2089 : 96 : if (FLOAT_TYPE_P (TREE_TYPE (captures[0]))
2090 : 96 : || (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
2091 : 37 : && (cmp == EQ_EXPR
2092 : 37 : || cmp == NE_EXPR
2093 : 36 : || TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))))
2094 : : )
2095 : : {
2096 : 23 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail615;
2097 : 23 : {
2098 : 23 : tree res_op0;
2099 : 23 : res_op0 = captures[0];
2100 : 23 : tree res_op1;
2101 : 23 : res_op1 = captures[1];
2102 : 23 : tree _r;
2103 : 23 : _r = fold_build2_loc (loc, scmp, type, res_op0, res_op1);
2104 : 23 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 433, __FILE__, __LINE__, true);
2105 : 23 : return _r;
2106 : : }
2107 : 0 : next_after_fail615:;
2108 : : }
2109 : : return NULL_TREE;
2110 : : }
2111 : :
2112 : : tree
2113 : 3684185 : generic_simplify_257 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2114 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2115 : : const enum tree_code ARG_UNUSED (cmp))
2116 : : {
2117 : 3684185 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2118 : 7368344 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
2119 : 2221413 : && !(targetm.have_canonicalize_funcptr_for_compare ()
2120 : 0 : && ((POINTER_TYPE_P (TREE_TYPE (captures[1]))
2121 : 0 : && FUNC_OR_METHOD_TYPE_P (TREE_TYPE (TREE_TYPE (captures[1]))))
2122 : 0 : || (POINTER_TYPE_P (TREE_TYPE (captures[3]))
2123 : 0 : && FUNC_OR_METHOD_TYPE_P (TREE_TYPE (TREE_TYPE (captures[3]))))))
2124 : 3684185 : && single_use (captures[0])
2125 : : )
2126 : : {
2127 : 2221413 : if (TYPE_PRECISION (TREE_TYPE (captures[1])) == TYPE_PRECISION (TREE_TYPE (captures[0]))
2128 : 1611024 : && (TREE_CODE (captures[3]) == INTEGER_CST
2129 : 1611024 : || captures[2] != captures[3])
2130 : 1611024 : && (TYPE_UNSIGNED (TREE_TYPE (captures[1])) == TYPE_UNSIGNED (TREE_TYPE (captures[0]))
2131 : : || cmp == NE_EXPR
2132 : 992901 : || cmp == EQ_EXPR)
2133 : 660991 : && !POINTER_TYPE_P (TREE_TYPE (captures[1]))
2134 : 2779151 : && (TREE_CODE (TREE_TYPE (captures[1])) != BOOLEAN_TYPE
2135 : 390 : || TREE_CODE (TREE_TYPE (captures[3])) == BOOLEAN_TYPE)
2136 : : )
2137 : : {
2138 : 557738 : if (TREE_CODE (captures[2]) == INTEGER_CST
2139 : : )
2140 : : {
2141 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail617;
2142 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail617;
2143 : 0 : {
2144 : 0 : tree res_op0;
2145 : 0 : res_op0 = captures[1];
2146 : 0 : tree res_op1;
2147 : 0 : res_op1 = force_fit_type (TREE_TYPE (captures[1]),
2148 : 0 : wide_int::from (wi::to_wide (captures[2]),
2149 : 0 : MAX (TYPE_PRECISION (TREE_TYPE (captures[2])),
2150 : : TYPE_PRECISION (TREE_TYPE (captures[1]))),
2151 : 0 : TYPE_SIGN (TREE_TYPE (captures[2]))),
2152 : 0 : 0, TREE_OVERFLOW (captures[2]));
2153 : 0 : tree _r;
2154 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2155 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
2156 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
2157 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 435, __FILE__, __LINE__, true);
2158 : 0 : return _r;
2159 : : }
2160 : : next_after_fail617:;
2161 : : }
2162 : : else
2163 : : {
2164 : 557738 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail618;
2165 : 538183 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail618;
2166 : 538183 : {
2167 : 538183 : tree res_op0;
2168 : 538183 : res_op0 = captures[1];
2169 : 538183 : tree res_op1;
2170 : 538183 : {
2171 : 538183 : tree _o1[1], _r1;
2172 : 538183 : _o1[0] = captures[2];
2173 : 538183 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
2174 : : {
2175 : 538063 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
2176 : : }
2177 : : else
2178 : : _r1 = _o1[0];
2179 : 538183 : res_op1 = _r1;
2180 : : }
2181 : 538183 : tree _r;
2182 : 538183 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2183 : 538183 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 436, __FILE__, __LINE__, true);
2184 : 538183 : return _r;
2185 : : }
2186 : : next_after_fail618:;
2187 : : }
2188 : : }
2189 : : else
2190 : : {
2191 : 1663675 : if (TYPE_PRECISION (TREE_TYPE (captures[0])) > TYPE_PRECISION (TREE_TYPE (captures[1]))
2192 : : )
2193 : : {
2194 : 550856 : if ((cmp == EQ_EXPR || cmp == NE_EXPR
2195 : 170642 : || TYPE_UNSIGNED (TREE_TYPE (captures[0])) == TYPE_UNSIGNED (TREE_TYPE (captures[1]))
2196 : 86140 : || (!TYPE_UNSIGNED (TREE_TYPE (captures[0]))
2197 : 84988 : && TYPE_UNSIGNED (TREE_TYPE (captures[1]))))
2198 : 720346 : && (types_match (TREE_TYPE (captures[3]), TREE_TYPE (captures[1]))
2199 : 113950 : || ((TYPE_PRECISION (TREE_TYPE (captures[1]))
2200 : 113950 : >= TYPE_PRECISION (TREE_TYPE (captures[3])))
2201 : 48444 : && (TYPE_UNSIGNED (TREE_TYPE (captures[1]))
2202 : 48444 : == TYPE_UNSIGNED (TREE_TYPE (captures[3]))))
2203 : 77380 : || (TREE_CODE (captures[2]) == INTEGER_CST
2204 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
2205 : 0 : && int_fits_type_p (captures[2], TREE_TYPE (captures[1]))))
2206 : : )
2207 : : {
2208 : 472324 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail619;
2209 : 472324 : {
2210 : 472324 : tree res_op0;
2211 : 472324 : res_op0 = captures[1];
2212 : 472324 : tree res_op1;
2213 : 472324 : {
2214 : 472324 : tree _o1[1], _r1;
2215 : 472324 : _o1[0] = captures[3];
2216 : 472324 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
2217 : : {
2218 : 118303 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
2219 : : }
2220 : : else
2221 : : _r1 = _o1[0];
2222 : 472324 : res_op1 = _r1;
2223 : : }
2224 : 472324 : tree _r;
2225 : 472324 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2226 : 472324 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 437, __FILE__, __LINE__, true);
2227 : 472324 : return _r;
2228 : : }
2229 : 0 : next_after_fail619:;
2230 : : }
2231 : : else
2232 : : {
2233 : 78532 : if (TREE_CODE (captures[2]) == INTEGER_CST
2234 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
2235 : 78532 : && !int_fits_type_p (captures[2], TREE_TYPE (captures[1]))
2236 : : )
2237 : : {
2238 : 0 : {
2239 : 0 : tree min = lower_bound_in_type (TREE_TYPE (captures[3]), TREE_TYPE (captures[1]));
2240 : 0 : tree max = upper_bound_in_type (TREE_TYPE (captures[3]), TREE_TYPE (captures[1]));
2241 : 0 : bool above = integer_nonzerop (const_binop (LT_EXPR, type, max, captures[2]));
2242 : 0 : bool below = integer_nonzerop (const_binop (LT_EXPR, type, captures[2], min));
2243 : 0 : if (above || below
2244 : : )
2245 : : {
2246 : 0 : if (cmp == EQ_EXPR || cmp == NE_EXPR
2247 : : )
2248 : : {
2249 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail620;
2250 : 0 : {
2251 : 0 : tree _r;
2252 : 0 : _r = constant_boolean_node (cmp == EQ_EXPR ? false : true, type);
2253 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2254 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2255 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
2256 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
2257 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 438, __FILE__, __LINE__, true);
2258 : 0 : return _r;
2259 : : }
2260 : 0 : next_after_fail620:;
2261 : : }
2262 : : else
2263 : : {
2264 : 0 : if (cmp == LT_EXPR || cmp == LE_EXPR
2265 : : )
2266 : : {
2267 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail621;
2268 : 0 : {
2269 : 0 : tree _r;
2270 : 0 : _r = constant_boolean_node (above ? true : false, type);
2271 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2272 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2273 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
2274 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
2275 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 439, __FILE__, __LINE__, true);
2276 : 0 : return _r;
2277 : : }
2278 : 0 : next_after_fail621:;
2279 : : }
2280 : : else
2281 : : {
2282 : 0 : if (cmp == GT_EXPR || cmp == GE_EXPR
2283 : : )
2284 : : {
2285 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail622;
2286 : 0 : {
2287 : 0 : tree _r;
2288 : 0 : _r = constant_boolean_node (above ? false : true, type);
2289 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2290 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2291 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
2292 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
2293 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 440, __FILE__, __LINE__, true);
2294 : 0 : return _r;
2295 : : }
2296 : 0 : next_after_fail622:;
2297 : : }
2298 : : }
2299 : : }
2300 : : }
2301 : : }
2302 : : }
2303 : : }
2304 : : }
2305 : : }
2306 : : }
2307 : : else
2308 : : {
2309 : 2880887 : if (FLOAT_TYPE_P (TREE_TYPE (captures[1]))
2310 : 89336 : && (DECIMAL_FLOAT_TYPE_P (TREE_TYPE (captures[0]))
2311 : 44668 : == DECIMAL_FLOAT_TYPE_P (TREE_TYPE (captures[1])))
2312 : 1552100 : && (DECIMAL_FLOAT_TYPE_P (TREE_TYPE (captures[0]))
2313 : 44664 : == DECIMAL_FLOAT_TYPE_P (TREE_TYPE (captures[3])))
2314 : : )
2315 : : {
2316 : 44660 : {
2317 : 44660 : tree type1 = TREE_TYPE (captures[3]);
2318 : 44660 : if (TREE_CODE (captures[3]) == REAL_CST && !DECIMAL_FLOAT_TYPE_P (type1))
2319 : : {
2320 : 0 : REAL_VALUE_TYPE orig = TREE_REAL_CST (captures[3]);
2321 : 0 : if (TYPE_PRECISION (type1) > TYPE_PRECISION (float_type_node)
2322 : 0 : && exact_real_truncate (TYPE_MODE (float_type_node), &orig))
2323 : 0 : type1 = float_type_node;
2324 : 0 : if (TYPE_PRECISION (type1) > TYPE_PRECISION (double_type_node)
2325 : 0 : && exact_real_truncate (TYPE_MODE (double_type_node), &orig))
2326 : 0 : type1 = double_type_node;
2327 : : }
2328 : 44660 : tree newtype
2329 : 44660 : = (element_precision (TREE_TYPE (captures[1])) > element_precision (type1)
2330 : 44660 : ? TREE_TYPE (captures[1]) : type1);
2331 : 44660 : if (element_precision (TREE_TYPE (captures[0])) > element_precision (newtype)
2332 : 44660 : && (!VECTOR_TYPE_P (type) || is_truth_type_for (newtype, type))
2333 : : )
2334 : : {
2335 : 1527 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail623;
2336 : 1527 : {
2337 : 1527 : tree res_op0;
2338 : 1527 : {
2339 : 1527 : tree _o1[1], _r1;
2340 : 1527 : _o1[0] = captures[1];
2341 : 1527 : if (TREE_TYPE (_o1[0]) != newtype)
2342 : : {
2343 : 9 : _r1 = fold_build1_loc (loc, NOP_EXPR, newtype, _o1[0]);
2344 : : }
2345 : : else
2346 : : _r1 = _o1[0];
2347 : 1527 : res_op0 = _r1;
2348 : : }
2349 : 1527 : tree res_op1;
2350 : 1527 : {
2351 : 1527 : tree _o1[1], _r1;
2352 : 1527 : _o1[0] = captures[3];
2353 : 1527 : if (TREE_TYPE (_o1[0]) != newtype)
2354 : : {
2355 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, newtype, _o1[0]);
2356 : : }
2357 : : else
2358 : : _r1 = _o1[0];
2359 : 1527 : res_op1 = _r1;
2360 : : }
2361 : 1527 : tree _r;
2362 : 1527 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2363 : 1527 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 441, __FILE__, __LINE__, true);
2364 : 1527 : return _r;
2365 : : }
2366 : 0 : next_after_fail623:;
2367 : : }
2368 : : }
2369 : : }
2370 : : }
2371 : : return NULL_TREE;
2372 : : }
2373 : :
2374 : : tree
2375 : 366 : generic_simplify_283 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2376 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2377 : : const enum tree_code ARG_UNUSED (op),
2378 : : const enum tree_code ARG_UNUSED (cmp),
2379 : : const combined_fn ARG_UNUSED (clz))
2380 : : {
2381 : 366 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2382 : 366 : if (!sanitize_flags_p (SANITIZE_BUILTIN)
2383 : 366 : || (cfun && (cfun->curr_properties & PROP_ssa) != 0)
2384 : : )
2385 : : {
2386 : 302 : if (integer_zerop (captures[2]) && single_use (captures[0])
2387 : : )
2388 : : {
2389 : 59 : {
2390 : 59 : tree stype = signed_type_for (TREE_TYPE (captures[1]));
2391 : 59 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail685;
2392 : 59 : {
2393 : 59 : tree res_op0;
2394 : 59 : {
2395 : 59 : tree _o1[1], _r1;
2396 : 59 : _o1[0] = captures[1];
2397 : 59 : if (TREE_TYPE (_o1[0]) != stype)
2398 : : {
2399 : 59 : _r1 = fold_build1_loc (loc, NOP_EXPR, stype, _o1[0]);
2400 : : }
2401 : : else
2402 : : _r1 = _o1[0];
2403 : 59 : res_op0 = _r1;
2404 : : }
2405 : 59 : tree res_op1;
2406 : 59 : res_op1 = build_zero_cst (stype);
2407 : 59 : tree _r;
2408 : 59 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2409 : 59 : if (TREE_SIDE_EFFECTS (captures[2]))
2410 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2411 : 59 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 486, __FILE__, __LINE__, true);
2412 : 59 : return _r;
2413 : : }
2414 : 0 : next_after_fail685:;
2415 : : }
2416 : : }
2417 : : else
2418 : : {
2419 : 243 : if (wi::to_wide (captures[2]) == TYPE_PRECISION (TREE_TYPE (captures[1])) - 1
2420 : : )
2421 : : {
2422 : 79 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail686;
2423 : 79 : {
2424 : 79 : tree res_op0;
2425 : 79 : res_op0 = captures[1];
2426 : 79 : tree res_op1;
2427 : 79 : res_op1 = build_one_cst (TREE_TYPE (captures[1]));
2428 : 79 : tree _r;
2429 : 79 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
2430 : 79 : if (TREE_SIDE_EFFECTS (captures[2]))
2431 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2432 : 79 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 487, __FILE__, __LINE__, true);
2433 : 79 : return _r;
2434 : : }
2435 : 0 : next_after_fail686:;
2436 : : }
2437 : : }
2438 : : }
2439 : : return NULL_TREE;
2440 : : }
2441 : :
2442 : : tree
2443 : 298041 : generic_simplify_290 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2444 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2445 : : const enum tree_code ARG_UNUSED (cmp),
2446 : : const enum tree_code ARG_UNUSED (icmp),
2447 : : const enum tree_code ARG_UNUSED (ncmp))
2448 : : {
2449 : 298041 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2450 : 298041 : if (types_match (type, TREE_TYPE (captures[0]))
2451 : : )
2452 : : {
2453 : 44932 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail698;
2454 : 44932 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail698;
2455 : 44932 : {
2456 : 44932 : tree res_op0;
2457 : 44932 : res_op0 = captures[1];
2458 : 44932 : tree res_op1;
2459 : 44932 : res_op1 = captures[2];
2460 : 44932 : tree _r;
2461 : 44932 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2462 : 44932 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 499, __FILE__, __LINE__, true);
2463 : 44932 : return _r;
2464 : : }
2465 : : next_after_fail698:;
2466 : : }
2467 : : return NULL_TREE;
2468 : : }
2469 : :
2470 : : tree
2471 : 0 : generic_simplify_296 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2472 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2473 : : const combined_fn ARG_UNUSED (COPYSIGN_ALL))
2474 : : {
2475 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2476 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail705;
2477 : 0 : {
2478 : 0 : tree _r;
2479 : 0 : _r = captures[0];
2480 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 506, __FILE__, __LINE__, true);
2481 : : return _r;
2482 : : }
2483 : 0 : next_after_fail705:;
2484 : 0 : return NULL_TREE;
2485 : : }
2486 : :
2487 : : tree
2488 : 0 : generic_simplify_298 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2489 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2490 : : const combined_fn ARG_UNUSED (COPYSIGN_ALL))
2491 : : {
2492 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2493 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail707;
2494 : 0 : {
2495 : 0 : tree res_op0;
2496 : 0 : res_op0 = captures[0];
2497 : 0 : tree _r;
2498 : 0 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
2499 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2500 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2501 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 508, __FILE__, __LINE__, true);
2502 : : return _r;
2503 : : }
2504 : 0 : next_after_fail707:;
2505 : 0 : return NULL_TREE;
2506 : : }
2507 : :
2508 : : tree
2509 : 1 : generic_simplify_305 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2510 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2511 : : const enum tree_code ARG_UNUSED (div))
2512 : : {
2513 : 1 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2514 : 1 : if (INTEGRAL_TYPE_P (type)
2515 : 1 : && TYPE_OVERFLOW_UNDEFINED (type)
2516 : 1 : && !integer_zerop (captures[0])
2517 : 2 : && (!flag_non_call_exceptions || tree_expr_nonzero_p (captures[0]))
2518 : : )
2519 : : {
2520 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail716;
2521 : 1 : {
2522 : 1 : tree res_op0;
2523 : 1 : {
2524 : 1 : tree _o1[2], _r1;
2525 : 1 : _o1[0] = captures[0];
2526 : 1 : _o1[1] = build_zero_cst (type);
2527 : 1 : _r1 = fold_build2_loc (loc, LT_EXPR, boolean_type_node, _o1[0], _o1[1]);
2528 : 1 : res_op0 = _r1;
2529 : : }
2530 : 1 : tree res_op1;
2531 : 1 : res_op1 = build_minus_one_cst (type);
2532 : 1 : tree res_op2;
2533 : 1 : res_op2 = build_one_cst (type);
2534 : 1 : tree _r;
2535 : 1 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
2536 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 515, __FILE__, __LINE__, true);
2537 : 1 : return _r;
2538 : : }
2539 : 0 : next_after_fail716:;
2540 : : }
2541 : : return NULL_TREE;
2542 : : }
2543 : :
2544 : : tree
2545 : 2345417 : generic_simplify_312 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2546 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2547 : : const enum tree_code ARG_UNUSED (floor_divmod),
2548 : : const enum tree_code ARG_UNUSED (trunc_divmod))
2549 : : {
2550 : 2345417 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2551 : 0 : if ((INTEGRAL_TYPE_P (type) || VECTOR_INTEGER_TYPE_P (type))
2552 : 2345417 : && TYPE_UNSIGNED (type)
2553 : : )
2554 : : {
2555 : 2337383 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail724;
2556 : 2337383 : {
2557 : 2337383 : tree res_op0;
2558 : 2337383 : res_op0 = captures[0];
2559 : 2337383 : tree res_op1;
2560 : 2337383 : res_op1 = captures[1];
2561 : 2337383 : tree _r;
2562 : 2337383 : _r = fold_build2_loc (loc, trunc_divmod, type, res_op0, res_op1);
2563 : 2337383 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 523, __FILE__, __LINE__, true);
2564 : 2337383 : return _r;
2565 : : }
2566 : 0 : next_after_fail724:;
2567 : : }
2568 : : return NULL_TREE;
2569 : : }
2570 : :
2571 : : tree
2572 : 8728 : generic_simplify_318 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2573 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2574 : : const enum tree_code ARG_UNUSED (mod))
2575 : : {
2576 : 8728 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2577 : 0 : if (ANY_INTEGRAL_TYPE_P (type)
2578 : 8728 : && TYPE_OVERFLOW_UNDEFINED (type)
2579 : 17456 : && wi::multiple_of_p (wi::to_wide (captures[1]), wi::to_wide (captures[2]),
2580 : 193 : TYPE_SIGN (type))
2581 : : )
2582 : : {
2583 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail730;
2584 : 0 : {
2585 : 0 : tree _r;
2586 : 0 : _r = build_zero_cst (type);
2587 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
2588 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2589 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2590 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2591 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
2592 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2593 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 529, __FILE__, __LINE__, true);
2594 : 0 : return _r;
2595 : : }
2596 : 0 : next_after_fail730:;
2597 : : }
2598 : : return NULL_TREE;
2599 : : }
2600 : :
2601 : : tree
2602 : 6 : generic_simplify_327 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2603 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2604 : : const combined_fn ARG_UNUSED (COS),
2605 : : const combined_fn ARG_UNUSED (SIN),
2606 : : const combined_fn ARG_UNUSED (TAN))
2607 : : {
2608 : 6 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2609 : 6 : if (flag_unsafe_math_optimizations && canonicalize_math_p ()
2610 : : )
2611 : : {
2612 : 6 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail741;
2613 : 6 : {
2614 : 6 : tree res_op0;
2615 : 6 : res_op0 = build_one_cst (type);
2616 : 6 : tree res_op1;
2617 : 6 : {
2618 : 6 : tree _o1[1], _r1;
2619 : 6 : _o1[0] = captures[1];
2620 : 6 : _r1 = maybe_build_call_expr_loc (loc, TAN, TREE_TYPE (_o1[0]), 1, _o1[0]);
2621 : 6 : if (!_r1)
2622 : 0 : goto next_after_fail741;
2623 : 6 : res_op1 = _r1;
2624 : : }
2625 : 6 : tree _r;
2626 : 6 : _r = fold_build2_loc (loc, RDIV_EXPR, type, res_op0, res_op1);
2627 : 6 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 540, __FILE__, __LINE__, true);
2628 : 6 : return _r;
2629 : : }
2630 : : next_after_fail741:;
2631 : : }
2632 : : return NULL_TREE;
2633 : : }
2634 : :
2635 : : tree
2636 : 80694 : generic_simplify_335 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2637 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2638 : : const enum tree_code ARG_UNUSED (op))
2639 : : {
2640 : 80694 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2641 : 161388 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
2642 : 80694 : && TYPE_UNSIGNED (TREE_TYPE (captures[1]))
2643 : 161388 : && wi::only_sign_bit_p (wi::to_wide (captures[1]))
2644 : : )
2645 : : {
2646 : 5 : {
2647 : 5 : tree stype = signed_type_for (TREE_TYPE (captures[1]));
2648 : 5 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail751;
2649 : 5 : {
2650 : 5 : tree res_op0;
2651 : 5 : {
2652 : 5 : tree _o1[1], _r1;
2653 : 5 : _o1[0] = captures[0];
2654 : 5 : if (TREE_TYPE (_o1[0]) != stype)
2655 : : {
2656 : 5 : _r1 = fold_build1_loc (loc, NOP_EXPR, stype, _o1[0]);
2657 : : }
2658 : : else
2659 : : _r1 = _o1[0];
2660 : 5 : res_op0 = _r1;
2661 : : }
2662 : 5 : tree res_op1;
2663 : 5 : {
2664 : 5 : tree _o1[1], _r1;
2665 : 5 : _o1[0] = captures[2];
2666 : 5 : if (TREE_TYPE (_o1[0]) != stype)
2667 : : {
2668 : 5 : _r1 = fold_build1_loc (loc, NOP_EXPR, stype, _o1[0]);
2669 : : }
2670 : : else
2671 : : _r1 = _o1[0];
2672 : 5 : res_op1 = _r1;
2673 : : }
2674 : 5 : tree _r;
2675 : 5 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
2676 : 5 : if (TREE_SIDE_EFFECTS (captures[1]))
2677 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2678 : 5 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 550, __FILE__, __LINE__, true);
2679 : 5 : return _r;
2680 : : }
2681 : 0 : next_after_fail751:;
2682 : : }
2683 : : }
2684 : : return NULL_TREE;
2685 : : }
2686 : :
2687 : : tree
2688 : 19792168 : generic_simplify_347 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2689 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2690 : : const enum tree_code ARG_UNUSED (cmp))
2691 : : {
2692 : 19792168 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2693 : 39578848 : if ((INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
2694 : 11068 : || POINTER_TYPE_P (TREE_TYPE (captures[2]))
2695 : 1649 : || VECTOR_INTEGER_TYPE_P (TREE_TYPE (captures[2])))
2696 : 39578848 : && tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
2697 : : )
2698 : : {
2699 : 19792168 : {
2700 : 19792168 : tree cst = uniform_integer_cst_p (captures[2]);
2701 : 19792168 : tree arg1_type = TREE_TYPE (cst);
2702 : 19792168 : unsigned int prec = TYPE_PRECISION (arg1_type);
2703 : 19792168 : wide_int max = wi::max_value (arg1_type);
2704 : 19792168 : wide_int signed_max = wi::max_value (prec, SIGNED);
2705 : 19792168 : wide_int min = wi::min_value (arg1_type);
2706 : 19792168 : if (wi::to_wide (cst) == max
2707 : : )
2708 : : {
2709 : 152943 : if (cmp == GT_EXPR
2710 : : )
2711 : : {
2712 : 97742 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail781;
2713 : 97742 : {
2714 : 97742 : tree _r;
2715 : 97742 : _r = constant_boolean_node (false, type);
2716 : 97742 : if (TREE_SIDE_EFFECTS (captures[0]))
2717 : 19 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2718 : 97742 : if (TREE_SIDE_EFFECTS (captures[2]))
2719 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2720 : 97742 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 564, __FILE__, __LINE__, true);
2721 : 97742 : return _r;
2722 : : }
2723 : 0 : next_after_fail781:;
2724 : : }
2725 : : else
2726 : : {
2727 : 55201 : if (cmp == GE_EXPR
2728 : : )
2729 : : {
2730 : 13 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail782;
2731 : 13 : {
2732 : 13 : tree res_op0;
2733 : 13 : res_op0 = captures[0];
2734 : 13 : tree res_op1;
2735 : 13 : res_op1 = captures[2];
2736 : 13 : tree _r;
2737 : 13 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
2738 : 13 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 565, __FILE__, __LINE__, true);
2739 : 13 : return _r;
2740 : : }
2741 : 0 : next_after_fail782:;
2742 : : }
2743 : : else
2744 : : {
2745 : 55188 : if (cmp == LE_EXPR
2746 : : )
2747 : : {
2748 : 55178 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail783;
2749 : 55178 : {
2750 : 55178 : tree _r;
2751 : 55178 : _r = constant_boolean_node (true, type);
2752 : 55178 : if (TREE_SIDE_EFFECTS (captures[0]))
2753 : 23 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2754 : 55178 : if (TREE_SIDE_EFFECTS (captures[2]))
2755 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2756 : 55178 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 566, __FILE__, __LINE__, true);
2757 : 55178 : return _r;
2758 : : }
2759 : 0 : next_after_fail783:;
2760 : : }
2761 : : else
2762 : : {
2763 : 10 : if (cmp == LT_EXPR
2764 : : )
2765 : : {
2766 : 10 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail784;
2767 : 10 : {
2768 : 10 : tree res_op0;
2769 : 10 : res_op0 = captures[0];
2770 : 10 : tree res_op1;
2771 : 10 : res_op1 = captures[2];
2772 : 10 : tree _r;
2773 : 10 : _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
2774 : 10 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 567, __FILE__, __LINE__, true);
2775 : 10 : return _r;
2776 : : }
2777 : 0 : next_after_fail784:;
2778 : : }
2779 : : }
2780 : : }
2781 : : }
2782 : : }
2783 : : else
2784 : : {
2785 : 19639225 : if (wi::to_wide (cst) == min
2786 : : )
2787 : : {
2788 : 1143246 : if (cmp == LT_EXPR
2789 : : )
2790 : : {
2791 : 396371 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail785;
2792 : 396371 : {
2793 : 396371 : tree _r;
2794 : 396371 : _r = constant_boolean_node (false, type);
2795 : 396371 : if (TREE_SIDE_EFFECTS (captures[0]))
2796 : 39 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2797 : 396371 : if (TREE_SIDE_EFFECTS (captures[2]))
2798 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2799 : 396371 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 568, __FILE__, __LINE__, true);
2800 : 396371 : return _r;
2801 : : }
2802 : 0 : next_after_fail785:;
2803 : : }
2804 : : else
2805 : : {
2806 : 746875 : if (cmp == LE_EXPR
2807 : : )
2808 : : {
2809 : 89149 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail786;
2810 : 89149 : {
2811 : 89149 : tree res_op0;
2812 : 89149 : res_op0 = captures[0];
2813 : 89149 : tree res_op1;
2814 : 89149 : res_op1 = captures[2];
2815 : 89149 : tree _r;
2816 : 89149 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
2817 : 89149 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 569, __FILE__, __LINE__, true);
2818 : 89149 : return _r;
2819 : : }
2820 : 0 : next_after_fail786:;
2821 : : }
2822 : : else
2823 : : {
2824 : 657726 : if (cmp == GE_EXPR
2825 : : )
2826 : : {
2827 : 246613 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail787;
2828 : 246613 : {
2829 : 246613 : tree _r;
2830 : 246613 : _r = constant_boolean_node (true, type);
2831 : 246613 : if (TREE_SIDE_EFFECTS (captures[0]))
2832 : 9 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2833 : 246613 : if (TREE_SIDE_EFFECTS (captures[2]))
2834 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2835 : 246613 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 570, __FILE__, __LINE__, true);
2836 : 246613 : return _r;
2837 : : }
2838 : 0 : next_after_fail787:;
2839 : : }
2840 : : else
2841 : : {
2842 : 411113 : if (cmp == GT_EXPR
2843 : : )
2844 : : {
2845 : 411113 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail788;
2846 : 411113 : {
2847 : 411113 : tree res_op0;
2848 : 411113 : res_op0 = captures[0];
2849 : 411113 : tree res_op1;
2850 : 411113 : res_op1 = captures[2];
2851 : 411113 : tree _r;
2852 : 411113 : _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
2853 : 411113 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 571, __FILE__, __LINE__, true);
2854 : 411113 : return _r;
2855 : : }
2856 : 0 : next_after_fail788:;
2857 : : }
2858 : : }
2859 : : }
2860 : : }
2861 : : }
2862 : : else
2863 : : {
2864 : 18495982 : if (wi::to_wide (cst) == max - 1
2865 : : )
2866 : : {
2867 : 363362 : if (cmp == GT_EXPR
2868 : : )
2869 : : {
2870 : 125885 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail789;
2871 : 125885 : {
2872 : 125885 : tree res_op0;
2873 : 125885 : res_op0 = captures[0];
2874 : 125885 : tree res_op1;
2875 : 125885 : res_op1 = build_uniform_cst (TREE_TYPE (captures[2]),
2876 : 125885 : wide_int_to_tree (TREE_TYPE (cst),
2877 : 125885 : wi::to_wide (cst)
2878 : 251770 : + 1));
2879 : 125885 : tree _r;
2880 : 125885 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
2881 : 125885 : if (TREE_SIDE_EFFECTS (captures[2]))
2882 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2883 : 125885 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 572, __FILE__, __LINE__, true);
2884 : 125885 : return _r;
2885 : : }
2886 : 0 : next_after_fail789:;
2887 : : }
2888 : : else
2889 : : {
2890 : 237477 : if (cmp == LE_EXPR
2891 : : )
2892 : : {
2893 : 237477 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail790;
2894 : 237477 : {
2895 : 237477 : tree res_op0;
2896 : 237477 : res_op0 = captures[0];
2897 : 237477 : tree res_op1;
2898 : 237477 : res_op1 = build_uniform_cst (TREE_TYPE (captures[2]),
2899 : 237477 : wide_int_to_tree (TREE_TYPE (cst),
2900 : 237477 : wi::to_wide (cst)
2901 : 474954 : + 1));
2902 : 237477 : tree _r;
2903 : 237477 : _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
2904 : 237477 : if (TREE_SIDE_EFFECTS (captures[2]))
2905 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2906 : 237477 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 573, __FILE__, __LINE__, true);
2907 : 237477 : return _r;
2908 : : }
2909 : 0 : next_after_fail790:;
2910 : : }
2911 : : }
2912 : : }
2913 : : else
2914 : : {
2915 : 18132620 : if (wi::to_wide (cst) == min + 1
2916 : : )
2917 : : {
2918 : 671009 : if (cmp == GE_EXPR
2919 : : )
2920 : : {
2921 : 46258 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail791;
2922 : 46258 : {
2923 : 46258 : tree res_op0;
2924 : 46258 : res_op0 = captures[0];
2925 : 46258 : tree res_op1;
2926 : 46258 : res_op1 = build_uniform_cst (TREE_TYPE (captures[2]),
2927 : 46258 : wide_int_to_tree (TREE_TYPE (cst),
2928 : 46258 : wi::to_wide (cst)
2929 : 92516 : - 1));
2930 : 46258 : tree _r;
2931 : 46258 : _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
2932 : 46258 : if (TREE_SIDE_EFFECTS (captures[2]))
2933 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2934 : 46258 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 574, __FILE__, __LINE__, true);
2935 : 46258 : return _r;
2936 : : }
2937 : 0 : next_after_fail791:;
2938 : : }
2939 : : else
2940 : : {
2941 : 624751 : if (cmp == LT_EXPR
2942 : : )
2943 : : {
2944 : 27653 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail792;
2945 : 27653 : {
2946 : 27653 : tree res_op0;
2947 : 27653 : res_op0 = captures[0];
2948 : 27653 : tree res_op1;
2949 : 27653 : res_op1 = build_uniform_cst (TREE_TYPE (captures[2]),
2950 : 27653 : wide_int_to_tree (TREE_TYPE (cst),
2951 : 27653 : wi::to_wide (cst)
2952 : 55306 : - 1));
2953 : 27653 : tree _r;
2954 : 27653 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
2955 : 27653 : if (TREE_SIDE_EFFECTS (captures[2]))
2956 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2957 : 27653 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 575, __FILE__, __LINE__, true);
2958 : 27653 : return _r;
2959 : : }
2960 : 0 : next_after_fail792:;
2961 : : }
2962 : : }
2963 : : }
2964 : : else
2965 : : {
2966 : 17461608 : if (wi::to_wide (cst) == signed_max
2967 : 87969 : && TYPE_UNSIGNED (arg1_type)
2968 : 87969 : && TYPE_MODE (arg1_type) != BLKmode
2969 : 17461615 : && prec == GET_MODE_PRECISION (SCALAR_INT_TYPE_MODE (arg1_type))
2970 : 17549289 : && INTEGRAL_TYPE_P (arg1_type)
2971 : : )
2972 : : {
2973 : 87674 : if (cmp == LE_EXPR || cmp == GT_EXPR
2974 : : )
2975 : : {
2976 : 87674 : {
2977 : 87674 : tree st = signed_type_for (TREE_TYPE (captures[2]));
2978 : 87674 : if (cst == captures[2] && cmp == LE_EXPR
2979 : : )
2980 : : {
2981 : 39185 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail793;
2982 : 39185 : {
2983 : 39185 : tree res_op0;
2984 : 39185 : {
2985 : 39185 : tree _o1[1], _r1;
2986 : 39185 : _o1[0] = captures[1];
2987 : 39185 : if (TREE_TYPE (_o1[0]) != st)
2988 : : {
2989 : 39185 : _r1 = fold_build1_loc (loc, NOP_EXPR, st, _o1[0]);
2990 : : }
2991 : : else
2992 : : _r1 = _o1[0];
2993 : 39185 : res_op0 = _r1;
2994 : : }
2995 : 39185 : tree res_op1;
2996 : 39185 : res_op1 = build_zero_cst (st);
2997 : 39185 : tree _r;
2998 : 39185 : _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
2999 : 39185 : if (TREE_SIDE_EFFECTS (captures[2]))
3000 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3001 : 39185 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 576, __FILE__, __LINE__, true);
3002 : 39185 : return _r;
3003 : : }
3004 : 0 : next_after_fail793:;
3005 : 0 : }
3006 : : else
3007 : : {
3008 : 48489 : if (cst == captures[2] && cmp == GT_EXPR
3009 : : )
3010 : : {
3011 : 48403 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail794;
3012 : 48403 : {
3013 : 48403 : tree res_op0;
3014 : 48403 : {
3015 : 48403 : tree _o1[1], _r1;
3016 : 48403 : _o1[0] = captures[1];
3017 : 48403 : if (TREE_TYPE (_o1[0]) != st)
3018 : : {
3019 : 48403 : _r1 = fold_build1_loc (loc, NOP_EXPR, st, _o1[0]);
3020 : : }
3021 : : else
3022 : : _r1 = _o1[0];
3023 : 48403 : res_op0 = _r1;
3024 : : }
3025 : 48403 : tree res_op1;
3026 : 48403 : res_op1 = build_zero_cst (st);
3027 : 48403 : tree _r;
3028 : 48403 : _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
3029 : 48403 : if (TREE_SIDE_EFFECTS (captures[2]))
3030 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3031 : 48403 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 577, __FILE__, __LINE__, true);
3032 : 48403 : return _r;
3033 : : }
3034 : 0 : next_after_fail794:;
3035 : 0 : }
3036 : : else
3037 : : {
3038 : 86 : if (cmp == LE_EXPR
3039 : : )
3040 : : {
3041 : 30 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail795;
3042 : 30 : {
3043 : 30 : tree res_op0;
3044 : 30 : {
3045 : 30 : tree _o1[1], _r1;
3046 : 30 : _o1[0] = captures[1];
3047 : 30 : if (TREE_TYPE (_o1[0]) != st)
3048 : : {
3049 : 30 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, st, _o1[0]);
3050 : : }
3051 : : else
3052 : : _r1 = _o1[0];
3053 : 30 : res_op0 = _r1;
3054 : : }
3055 : 30 : tree res_op1;
3056 : 30 : res_op1 = build_zero_cst (st);
3057 : 30 : tree _r;
3058 : 30 : _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
3059 : 30 : if (TREE_SIDE_EFFECTS (captures[2]))
3060 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3061 : 30 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 578, __FILE__, __LINE__, true);
3062 : 30 : return _r;
3063 : : }
3064 : 0 : next_after_fail795:;
3065 : : }
3066 : : else
3067 : : {
3068 : 56 : if (cmp == GT_EXPR
3069 : : )
3070 : : {
3071 : 56 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail796;
3072 : 56 : {
3073 : 56 : tree res_op0;
3074 : 56 : {
3075 : 56 : tree _o1[1], _r1;
3076 : 56 : _o1[0] = captures[1];
3077 : 56 : if (TREE_TYPE (_o1[0]) != st)
3078 : : {
3079 : 56 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, st, _o1[0]);
3080 : : }
3081 : : else
3082 : : _r1 = _o1[0];
3083 : 56 : res_op0 = _r1;
3084 : : }
3085 : 56 : tree res_op1;
3086 : 56 : res_op1 = build_zero_cst (st);
3087 : 56 : tree _r;
3088 : 56 : _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
3089 : 56 : if (TREE_SIDE_EFFECTS (captures[2]))
3090 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3091 : 56 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 579, __FILE__, __LINE__, true);
3092 : 56 : return _r;
3093 : : }
3094 : 0 : next_after_fail796:;
3095 : : }
3096 : : }
3097 : : }
3098 : : }
3099 : : }
3100 : : }
3101 : : }
3102 : : }
3103 : : }
3104 : : }
3105 : : }
3106 : 19792174 : }
3107 : : }
3108 : : return NULL_TREE;
3109 : : }
3110 : :
3111 : : tree
3112 : 0 : generic_simplify_395 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3113 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3114 : : const combined_fn ARG_UNUSED (POW))
3115 : : {
3116 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3117 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail875;
3118 : 0 : {
3119 : 0 : tree _r;
3120 : 0 : _r = captures[0];
3121 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
3122 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3123 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 639, __FILE__, __LINE__, true);
3124 : : return _r;
3125 : : }
3126 : 0 : next_after_fail875:;
3127 : 0 : return NULL_TREE;
3128 : : }
3129 : :
3130 : : tree
3131 : 0 : generic_simplify_400 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3132 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3133 : : const combined_fn ARG_UNUSED (HYPOT))
3134 : : {
3135 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3136 : 0 : if (flag_unsafe_math_optimizations && canonicalize_math_p ()
3137 : : )
3138 : : {
3139 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail880;
3140 : 0 : {
3141 : 0 : tree res_op0;
3142 : 0 : {
3143 : 0 : tree _o1[1], _r1;
3144 : 0 : _o1[0] = captures[0];
3145 : 0 : _r1 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
3146 : 0 : res_op0 = _r1;
3147 : : }
3148 : 0 : tree res_op1;
3149 : 0 : res_op1 = build_real_truncate (type, dconst_sqrt2 ());
3150 : 0 : tree _r;
3151 : 0 : _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
3152 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 644, __FILE__, __LINE__, true);
3153 : 0 : return _r;
3154 : : }
3155 : 0 : next_after_fail880:;
3156 : : }
3157 : : return NULL_TREE;
3158 : : }
3159 : :
3160 : : tree
3161 : 1 : generic_simplify_405 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3162 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3163 : : {
3164 : 1 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3165 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail885;
3166 : 1 : {
3167 : 1 : tree res_op0;
3168 : 1 : res_op0 = captures[0];
3169 : 1 : tree res_op1;
3170 : 1 : res_op1 = captures[1];
3171 : 1 : tree _r;
3172 : 1 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
3173 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 649, __FILE__, __LINE__, true);
3174 : : return _r;
3175 : : }
3176 : 0 : next_after_fail885:;
3177 : 0 : return NULL_TREE;
3178 : : }
3179 : :
3180 : : tree
3181 : 906085 : generic_simplify_411 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3182 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3183 : : const enum tree_code ARG_UNUSED (op))
3184 : : {
3185 : 906085 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3186 : 906085 : {
3187 : 906085 : tree pmop[2];
3188 : 906085 : tree utype = fold_bit_and_mask (TREE_TYPE (captures[1]), captures[3], op, captures[1], ERROR_MARK,
3189 : : NULL_TREE, NULL_TREE, captures[2], ERROR_MARK,
3190 : : NULL_TREE, NULL_TREE, pmop);
3191 : 906085 : if (utype
3192 : : )
3193 : : {
3194 : 315399 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail891;
3195 : 315399 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail891;
3196 : 315399 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail891;
3197 : 315399 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail891;
3198 : 315399 : {
3199 : 315399 : tree res_op0;
3200 : 315399 : {
3201 : 315399 : tree _o1[2], _r1;
3202 : 315399 : {
3203 : 315399 : tree _o2[2], _r2;
3204 : 315399 : {
3205 : 315399 : tree _o3[1], _r3;
3206 : 315399 : _o3[0] = pmop[0];
3207 : 315399 : if (TREE_TYPE (_o3[0]) != utype)
3208 : : {
3209 : 310 : _r3 = fold_build1_loc (loc, NOP_EXPR, utype, _o3[0]);
3210 : : }
3211 : : else
3212 : : _r3 = _o3[0];
3213 : 315399 : _o2[0] = _r3;
3214 : : }
3215 : 315399 : {
3216 : 315399 : tree _o3[1], _r3;
3217 : 315399 : _o3[0] = pmop[1];
3218 : 315399 : if (TREE_TYPE (_o3[0]) != utype)
3219 : : {
3220 : 310 : _r3 = fold_build1_loc (loc, NOP_EXPR, utype, _o3[0]);
3221 : : }
3222 : : else
3223 : : _r3 = _o3[0];
3224 : 315399 : _o2[1] = _r3;
3225 : : }
3226 : 315399 : _r2 = fold_build2_loc (loc, op, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
3227 : 315399 : _o1[0] = _r2;
3228 : : }
3229 : 315399 : {
3230 : 315399 : tree _o2[1], _r2;
3231 : 315399 : _o2[0] = captures[3];
3232 : 315399 : if (TREE_TYPE (_o2[0]) != utype)
3233 : : {
3234 : 310 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
3235 : : }
3236 : : else
3237 : : _r2 = _o2[0];
3238 : 315399 : _o1[1] = _r2;
3239 : : }
3240 : 315399 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3241 : 315399 : res_op0 = _r1;
3242 : : }
3243 : 315399 : tree _r;
3244 : 315399 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3245 : 315399 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 654, __FILE__, __LINE__, true);
3246 : 315399 : return _r;
3247 : : }
3248 : 590686 : next_after_fail891:;
3249 : : }
3250 : : }
3251 : 590686 : return NULL_TREE;
3252 : : }
3253 : :
3254 : : tree
3255 : 49397 : generic_simplify_423 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3256 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3257 : : const enum tree_code ARG_UNUSED (shift))
3258 : : {
3259 : 49397 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3260 : 49397 : if (tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
3261 : 22849 : && TYPE_PRECISION (type) <= HOST_BITS_PER_WIDE_INT
3262 : 22849 : && tree_fits_uhwi_p (captures[4])
3263 : 22849 : && tree_to_uhwi (captures[4]) > 0
3264 : 72244 : && tree_to_uhwi (captures[4]) < TYPE_PRECISION (type)
3265 : : )
3266 : : {
3267 : 22847 : {
3268 : 22847 : unsigned int shiftc = tree_to_uhwi (captures[4]);
3269 : 22847 : unsigned HOST_WIDE_INT mask = TREE_INT_CST_LOW (captures[5]);
3270 : 22847 : unsigned HOST_WIDE_INT newmask, zerobits = 0;
3271 : 22847 : tree shift_type = TREE_TYPE (captures[2]);
3272 : 22847 : unsigned int prec;
3273 : 22847 : if (shift == LSHIFT_EXPR)
3274 : 0 : zerobits = ((HOST_WIDE_INT_1U << shiftc) - 1);
3275 : 22847 : else if (shift == RSHIFT_EXPR
3276 : 22847 : && type_has_mode_precision_p (shift_type))
3277 : : {
3278 : 22847 : prec = TYPE_PRECISION (TREE_TYPE (captures[2]));
3279 : 22847 : tree arg00 = captures[3];
3280 : 22847 : if (captures[2] != captures[3]
3281 : 22847 : && TYPE_UNSIGNED (TREE_TYPE (captures[3])))
3282 : : {
3283 : 0 : tree inner_type = TREE_TYPE (captures[3]);
3284 : 0 : if (type_has_mode_precision_p (inner_type)
3285 : 0 : && TYPE_PRECISION (inner_type) < prec)
3286 : : {
3287 : 0 : prec = TYPE_PRECISION (inner_type);
3288 : 0 : if (shiftc < prec)
3289 : 0 : shift_type = inner_type;
3290 : : }
3291 : : }
3292 : 22847 : zerobits = HOST_WIDE_INT_M1U;
3293 : 22847 : if (shiftc < prec)
3294 : : {
3295 : 22847 : zerobits >>= HOST_BITS_PER_WIDE_INT - shiftc;
3296 : 22847 : zerobits <<= prec - shiftc;
3297 : : }
3298 : 22847 : if (!TYPE_UNSIGNED (TREE_TYPE (captures[2]))
3299 : 22847 : && prec == TYPE_PRECISION (TREE_TYPE (captures[2])))
3300 : : {
3301 : 60 : if ((mask & zerobits) == 0)
3302 : 44 : shift_type = unsigned_type_for (TREE_TYPE (captures[2]));
3303 : : else
3304 : : zerobits = 0;
3305 : : }
3306 : : }
3307 : 22831 : if ((mask & zerobits) == mask
3308 : : )
3309 : : {
3310 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail905;
3311 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail905;
3312 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail905;
3313 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail905;
3314 : 0 : {
3315 : 0 : tree _r;
3316 : 0 : _r = build_int_cst (type, 0);
3317 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 664, __FILE__, __LINE__, true);
3318 : 0 : return _r;
3319 : : }
3320 : : next_after_fail905:;
3321 : : }
3322 : : else
3323 : : {
3324 : 22847 : {
3325 : 22847 : newmask = mask | zerobits;
3326 : 22847 : if (newmask != mask && (newmask & (newmask + 1)) == 0
3327 : : )
3328 : : {
3329 : : {
3330 : 75 : for (prec = BITS_PER_UNIT;
3331 : 113 : prec < HOST_BITS_PER_WIDE_INT; prec <<= 1)
3332 : 103 : if (newmask == (HOST_WIDE_INT_1U << prec) - 1)
3333 : : break;
3334 : 38 : if (prec < HOST_BITS_PER_WIDE_INT
3335 : 10 : || newmask == HOST_WIDE_INT_M1U
3336 : : )
3337 : : {
3338 : 38 : {
3339 : 38 : tree newmaskt = build_int_cst_type (TREE_TYPE (captures[5]), newmask);
3340 : 38 : if (!tree_int_cst_equal (newmaskt, captures[5])
3341 : : )
3342 : : {
3343 : 38 : if (shift_type != TREE_TYPE (captures[2])
3344 : : )
3345 : : {
3346 : 11 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail906;
3347 : 11 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail906;
3348 : 11 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail906;
3349 : 11 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail906;
3350 : 11 : {
3351 : 11 : tree res_op0;
3352 : 11 : {
3353 : 11 : tree _o1[1], _r1;
3354 : 11 : {
3355 : 11 : tree _o2[2], _r2;
3356 : 11 : {
3357 : 11 : tree _o3[1], _r3;
3358 : 11 : _o3[0] = captures[2];
3359 : 11 : if (TREE_TYPE (_o3[0]) != shift_type)
3360 : : {
3361 : 11 : _r3 = fold_build1_loc (loc, NOP_EXPR, shift_type, _o3[0]);
3362 : : }
3363 : : else
3364 : : _r3 = _o3[0];
3365 : 11 : _o2[0] = _r3;
3366 : : }
3367 : 11 : _o2[1] = captures[4];
3368 : 11 : _r2 = fold_build2_loc (loc, shift, shift_type, _o2[0], _o2[1]);
3369 : 11 : _o1[0] = _r2;
3370 : : }
3371 : 11 : if (TREE_TYPE (_o1[0]) != type)
3372 : : {
3373 : 11 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
3374 : : }
3375 : : else
3376 : : _r1 = _o1[0];
3377 : 11 : res_op0 = _r1;
3378 : : }
3379 : 11 : tree res_op1;
3380 : 11 : res_op1 = newmaskt;
3381 : 11 : tree _r;
3382 : 11 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
3383 : 11 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 665, __FILE__, __LINE__, true);
3384 : 11 : return _r;
3385 : : }
3386 : : next_after_fail906:;
3387 : : }
3388 : : else
3389 : : {
3390 : 27 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail907;
3391 : 27 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail907;
3392 : 27 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail907;
3393 : 27 : {
3394 : 27 : tree res_op0;
3395 : 27 : res_op0 = captures[0];
3396 : 27 : tree res_op1;
3397 : 27 : res_op1 = newmaskt;
3398 : 27 : tree _r;
3399 : 27 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
3400 : 27 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 666, __FILE__, __LINE__, true);
3401 : 27 : return _r;
3402 : : }
3403 : : next_after_fail907:;
3404 : : }
3405 : : }
3406 : : }
3407 : : }
3408 : : }
3409 : : }
3410 : : }
3411 : : }
3412 : : }
3413 : : }
3414 : : return NULL_TREE;
3415 : : }
3416 : :
3417 : : tree
3418 : 0 : generic_simplify_445 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3419 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3420 : : {
3421 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3422 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail968;
3423 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail968;
3424 : 0 : {
3425 : 0 : tree _r;
3426 : 0 : _r = captures[1];
3427 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 692, __FILE__, __LINE__, true);
3428 : : return _r;
3429 : : }
3430 : : next_after_fail968:;
3431 : : return NULL_TREE;
3432 : : }
3433 : :
3434 : : tree
3435 : 42 : generic_simplify_448 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3436 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
3437 : : {
3438 : 42 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3439 : 42 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail972;
3440 : 42 : {
3441 : 42 : tree res_op0;
3442 : 42 : res_op0 = captures[1];
3443 : 42 : tree res_op1;
3444 : 42 : {
3445 : 42 : tree _o1[1], _r1;
3446 : 42 : _o1[0] = captures[2];
3447 : 42 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
3448 : 42 : res_op1 = _r1;
3449 : : }
3450 : 42 : tree _r;
3451 : 42 : _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
3452 : 42 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 696, __FILE__, __LINE__, true);
3453 : : return _r;
3454 : : }
3455 : 0 : next_after_fail972:;
3456 : 0 : return NULL_TREE;
3457 : : }
3458 : :
3459 : : tree
3460 : 17 : generic_simplify_451 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3461 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
3462 : : {
3463 : 17 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3464 : 17 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail975;
3465 : 17 : {
3466 : 17 : tree res_op0;
3467 : 17 : res_op0 = captures[0];
3468 : 17 : tree res_op1;
3469 : 17 : res_op1 = captures[1];
3470 : 17 : tree _r;
3471 : 17 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
3472 : 17 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 699, __FILE__, __LINE__, true);
3473 : : return _r;
3474 : : }
3475 : 0 : next_after_fail975:;
3476 : 0 : return NULL_TREE;
3477 : : }
3478 : :
3479 : : tree
3480 : 11 : generic_simplify_453 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3481 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
3482 : : {
3483 : 11 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3484 : 11 : if (!TYPE_UNSIGNED (TREE_TYPE (captures[2]))
3485 : 14 : && (element_precision (TREE_TYPE (captures[2]))
3486 : 3 : <= element_precision (TREE_TYPE (captures[3]))
3487 : 1 : || !TYPE_UNSIGNED (TREE_TYPE (captures[3])))
3488 : : )
3489 : : {
3490 : 2 : {
3491 : 2 : tree shift_type = TREE_TYPE (captures[2]);
3492 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail977;
3493 : 2 : {
3494 : 2 : tree res_op0;
3495 : 2 : {
3496 : 2 : tree _o1[2], _r1;
3497 : 2 : {
3498 : 2 : tree _o2[1], _r2;
3499 : 2 : _o2[0] = captures[3];
3500 : 2 : if (TREE_TYPE (_o2[0]) != shift_type)
3501 : : {
3502 : 1 : _r2 = fold_build1_loc (loc, NOP_EXPR, shift_type, _o2[0]);
3503 : : }
3504 : : else
3505 : : _r2 = _o2[0];
3506 : 2 : _o1[0] = _r2;
3507 : : }
3508 : 2 : _o1[1] = captures[4];
3509 : 2 : _r1 = fold_build2_loc (loc, RSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3510 : 2 : res_op0 = _r1;
3511 : : }
3512 : 2 : tree _r;
3513 : 2 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3514 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 701, __FILE__, __LINE__, true);
3515 : 2 : return _r;
3516 : : }
3517 : 0 : next_after_fail977:;
3518 : : }
3519 : : }
3520 : : return NULL_TREE;
3521 : : }
3522 : :
3523 : : tree
3524 : 0 : generic_simplify_459 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3525 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
3526 : : const enum tree_code ARG_UNUSED (minmax),
3527 : : const enum tree_code ARG_UNUSED (maxmin))
3528 : : {
3529 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3530 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail983;
3531 : 0 : {
3532 : 0 : tree res_op0;
3533 : 0 : res_op0 = captures[1];
3534 : 0 : tree res_op1;
3535 : 0 : {
3536 : 0 : tree _o1[1], _r1;
3537 : 0 : _o1[0] = captures[2];
3538 : 0 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
3539 : 0 : res_op1 = _r1;
3540 : : }
3541 : 0 : tree _r;
3542 : 0 : _r = fold_build2_loc (loc, maxmin, type, res_op0, res_op1);
3543 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 706, __FILE__, __LINE__, true);
3544 : : return _r;
3545 : : }
3546 : 0 : next_after_fail983:;
3547 : 0 : return NULL_TREE;
3548 : : }
3549 : :
3550 : : tree
3551 : 3825 : generic_simplify_466 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3552 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
3553 : : {
3554 : 3825 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3555 : 3825 : if (!TYPE_SATURATING (type)
3556 : : )
3557 : : {
3558 : 3790 : if (!TYPE_OVERFLOW_SANITIZED (type)
3559 : 7602 : && !TYPE_OVERFLOW_SANITIZED (TREE_TYPE (captures[0]))
3560 : : )
3561 : : {
3562 : 3812 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail992;
3563 : 3812 : {
3564 : 3812 : tree res_op0;
3565 : 3812 : res_op0 = captures[0];
3566 : 3812 : tree _r;
3567 : 3812 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
3568 : 3812 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 714, __FILE__, __LINE__, true);
3569 : 3812 : return _r;
3570 : : }
3571 : 0 : next_after_fail992:;
3572 : : }
3573 : : }
3574 : : return NULL_TREE;
3575 : : }
3576 : :
3577 : : tree
3578 : 0 : generic_simplify_474 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3579 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
3580 : : {
3581 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3582 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1002;
3583 : 0 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1002;
3584 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1002;
3585 : 0 : {
3586 : 0 : tree _r;
3587 : 0 : _r = captures[2];
3588 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 723, __FILE__, __LINE__, true);
3589 : : return _r;
3590 : : }
3591 : : next_after_fail1002:;
3592 : : return NULL_TREE;
3593 : : }
3594 : :
3595 : : tree
3596 : 2 : generic_simplify_477 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3597 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
3598 : : const enum tree_code ARG_UNUSED (cmp),
3599 : : const enum tree_code ARG_UNUSED (minmax))
3600 : : {
3601 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3602 : 2 : {
3603 : 2 : tree_code code = minmax_from_comparison (cmp, captures[0], captures[3], captures[0], captures[1]);
3604 : 2 : if (code == MIN_EXPR
3605 : : )
3606 : : {
3607 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1005;
3608 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1005;
3609 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1005;
3610 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1005;
3611 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1005;
3612 : 0 : {
3613 : 0 : tree res_op0;
3614 : 0 : {
3615 : 0 : tree _o1[2], _r1;
3616 : 0 : _o1[0] = captures[0];
3617 : 0 : _o1[1] = captures[3];
3618 : 0 : _r1 = fold_build2_loc (loc, MIN_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3619 : 0 : res_op0 = _r1;
3620 : : }
3621 : 0 : tree res_op1;
3622 : 0 : res_op1 = captures[2];
3623 : 0 : tree _r;
3624 : 0 : _r = fold_build2_loc (loc, minmax, type, res_op0, res_op1);
3625 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 726, __FILE__, __LINE__, true);
3626 : 0 : return _r;
3627 : : }
3628 : : next_after_fail1005:;
3629 : : }
3630 : : else
3631 : : {
3632 : 2 : if (code == MAX_EXPR
3633 : : )
3634 : : {
3635 : 2 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1006;
3636 : 2 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1006;
3637 : 2 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1006;
3638 : 2 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1006;
3639 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1006;
3640 : 2 : {
3641 : 2 : tree res_op0;
3642 : 2 : {
3643 : 2 : tree _o1[2], _r1;
3644 : 2 : _o1[0] = captures[0];
3645 : 2 : _o1[1] = captures[3];
3646 : 2 : _r1 = fold_build2_loc (loc, MAX_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3647 : 2 : res_op0 = _r1;
3648 : : }
3649 : 2 : tree res_op1;
3650 : 2 : res_op1 = captures[2];
3651 : 2 : tree _r;
3652 : 2 : _r = fold_build2_loc (loc, minmax, type, res_op0, res_op1);
3653 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 727, __FILE__, __LINE__, true);
3654 : 2 : return _r;
3655 : : }
3656 : : next_after_fail1006:;
3657 : : }
3658 : : }
3659 : : }
3660 : : return NULL_TREE;
3661 : : }
3662 : :
3663 : : tree
3664 : 0 : generic_simplify_497 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3665 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3666 : : const enum tree_code ARG_UNUSED (minmax))
3667 : : {
3668 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3669 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1031;
3670 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1031;
3671 : 0 : {
3672 : 0 : tree _r;
3673 : 0 : _r = captures[0];
3674 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 751, __FILE__, __LINE__, true);
3675 : : return _r;
3676 : : }
3677 : : next_after_fail1031:;
3678 : : return NULL_TREE;
3679 : : }
3680 : :
3681 : : tree
3682 : 0 : generic_simplify_503 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3683 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3684 : : const enum tree_code ARG_UNUSED (minmax),
3685 : : const enum tree_code ARG_UNUSED (cmp))
3686 : : {
3687 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3688 : 0 : {
3689 : 0 : poly_int64 off0, off1;
3690 : 0 : tree base0, base1;
3691 : 0 : int equal = address_compare (cmp, TREE_TYPE (captures[0]), captures[1], captures[3], base0, base1,
3692 : : off0, off1,
3693 : : 1
3694 : : );
3695 : 0 : if (equal == 1
3696 : : )
3697 : : {
3698 : 0 : if (minmax == MIN_EXPR
3699 : : )
3700 : : {
3701 : 0 : if (known_le (off0, off1)
3702 : : )
3703 : : {
3704 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1043;
3705 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1043;
3706 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1043;
3707 : 0 : {
3708 : 0 : tree _r;
3709 : 0 : _r = captures[0];
3710 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 754, __FILE__, __LINE__, true);
3711 : 0 : return _r;
3712 : : }
3713 : 0 : next_after_fail1043:;
3714 : : }
3715 : : else
3716 : : {
3717 : 0 : if (known_gt (off0, off1)
3718 : : )
3719 : : {
3720 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1044;
3721 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1044;
3722 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1044;
3723 : 0 : {
3724 : 0 : tree _r;
3725 : 0 : _r = captures[2];
3726 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 755, __FILE__, __LINE__, true);
3727 : 0 : return _r;
3728 : : }
3729 : 0 : next_after_fail1044:;
3730 : : }
3731 : : }
3732 : : }
3733 : : else
3734 : : {
3735 : 0 : if (known_ge (off0, off1)
3736 : : )
3737 : : {
3738 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1045;
3739 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1045;
3740 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1045;
3741 : 0 : {
3742 : 0 : tree _r;
3743 : 0 : _r = captures[0];
3744 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 756, __FILE__, __LINE__, true);
3745 : 0 : return _r;
3746 : : }
3747 : 0 : next_after_fail1045:;
3748 : : }
3749 : : else
3750 : : {
3751 : 0 : if (known_lt (off0, off1)
3752 : : )
3753 : : {
3754 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1046;
3755 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1046;
3756 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1046;
3757 : 0 : {
3758 : 0 : tree _r;
3759 : 0 : _r = captures[2];
3760 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 757, __FILE__, __LINE__, true);
3761 : 0 : return _r;
3762 : : }
3763 : 0 : next_after_fail1046:;
3764 : : }
3765 : : }
3766 : : }
3767 : : }
3768 : : }
3769 : 0 : return NULL_TREE;
3770 : : }
3771 : :
3772 : : tree
3773 : 6 : generic_simplify_521 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3774 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
3775 : : {
3776 : 6 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3777 : 6 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1070;
3778 : 6 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1070;
3779 : 6 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1070;
3780 : 6 : {
3781 : 6 : tree _r;
3782 : 6 : _r = captures[2];
3783 : 6 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 724, __FILE__, __LINE__, true);
3784 : : return _r;
3785 : : }
3786 : : next_after_fail1070:;
3787 : : return NULL_TREE;
3788 : : }
3789 : :
3790 : : tree
3791 : 0 : generic_simplify_529 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3792 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
3793 : : const combined_fn ARG_UNUSED (cond_len_op))
3794 : : {
3795 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3796 : 0 : {
3797 : 0 : tree op_type = TREE_TYPE (captures[3]);
3798 : 0 : if (element_precision (type) == element_precision (op_type)
3799 : : )
3800 : : {
3801 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1078;
3802 : 0 : {
3803 : 0 : tree res_op0;
3804 : 0 : {
3805 : 0 : tree _o1[6], _r1;
3806 : 0 : _o1[0] = captures[0];
3807 : 0 : _o1[1] = captures[1];
3808 : 0 : _o1[2] = captures[2];
3809 : 0 : {
3810 : 0 : tree _o2[1], _r2;
3811 : 0 : _o2[0] = captures[6];
3812 : 0 : if (TREE_TYPE (_o2[0]) != op_type)
3813 : : {
3814 : 0 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, op_type, _o2[0]);
3815 : : }
3816 : : else
3817 : : _r2 = _o2[0];
3818 : 0 : _o1[3] = _r2;
3819 : : }
3820 : 0 : _o1[4] = captures[4];
3821 : 0 : _o1[5] = captures[5];
3822 : 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]);
3823 : 0 : if (!_r1)
3824 : 0 : goto next_after_fail1078;
3825 : 0 : res_op0 = _r1;
3826 : : }
3827 : 0 : tree _r;
3828 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
3829 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
3830 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
3831 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 780, __FILE__, __LINE__, true);
3832 : 0 : return _r;
3833 : : }
3834 : : next_after_fail1078:;
3835 : : }
3836 : : }
3837 : : return NULL_TREE;
3838 : : }
3839 : :
3840 : : tree
3841 : 60 : generic_simplify_537 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3842 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3843 : : const enum tree_code ARG_UNUSED (cmp))
3844 : : {
3845 : 60 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3846 : 60 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1086;
3847 : 60 : {
3848 : 60 : tree _r;
3849 : 60 : _r = constant_boolean_node (true, type);
3850 : 60 : if (TREE_SIDE_EFFECTS (captures[0]))
3851 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
3852 : 60 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 788, __FILE__, __LINE__, true);
3853 : : return _r;
3854 : : }
3855 : 0 : next_after_fail1086:;
3856 : 0 : return NULL_TREE;
3857 : : }
3858 : :
3859 : : tree
3860 : 0 : generic_simplify_544 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3861 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
3862 : : const combined_fn ARG_UNUSED (sins),
3863 : : const combined_fn ARG_UNUSED (atans),
3864 : : const combined_fn ARG_UNUSED (sqrts),
3865 : : const combined_fn ARG_UNUSED (copysigns))
3866 : : {
3867 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3868 : 0 : {
3869 : 0 : REAL_VALUE_TYPE r_cst;
3870 : 0 : build_sinatan_real (&r_cst, type);
3871 : 0 : tree t_cst = build_real (type, r_cst);
3872 : 0 : tree t_one = build_one_cst (type);
3873 : 0 : if (SCALAR_FLOAT_TYPE_P (type)
3874 : : )
3875 : : {
3876 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1093;
3877 : 0 : {
3878 : 0 : if (! tree_invariant_p (captures[1])) goto next_after_fail1093;
3879 : 0 : tree res_op0;
3880 : 0 : {
3881 : 0 : tree _o1[2], _r1;
3882 : 0 : {
3883 : 0 : tree _o2[1], _r2;
3884 : 0 : _o2[0] = unshare_expr (captures[1]);
3885 : 0 : _r2 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
3886 : 0 : _o1[0] = _r2;
3887 : : }
3888 : 0 : _o1[1] = t_cst;
3889 : 0 : _r1 = fold_build2_loc (loc, LT_EXPR, boolean_type_node, _o1[0], _o1[1]);
3890 : 0 : res_op0 = _r1;
3891 : : }
3892 : 0 : tree res_op1;
3893 : 0 : {
3894 : 0 : tree _o1[2], _r1;
3895 : 0 : _o1[0] = unshare_expr (captures[1]);
3896 : 0 : {
3897 : 0 : tree _o2[1], _r2;
3898 : 0 : {
3899 : 0 : tree _o3[2], _r3;
3900 : 0 : {
3901 : 0 : tree _o4[2], _r4;
3902 : 0 : _o4[0] = unshare_expr (captures[1]);
3903 : 0 : _o4[1] = unshare_expr (captures[1]);
3904 : 0 : _r4 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o4[0]), _o4[0], _o4[1]);
3905 : 0 : _o3[0] = _r4;
3906 : : }
3907 : 0 : _o3[1] = t_one;
3908 : 0 : _r3 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
3909 : 0 : _o2[0] = _r3;
3910 : : }
3911 : 0 : _r2 = maybe_build_call_expr_loc (loc, sqrts, TREE_TYPE (_o2[0]), 1, _o2[0]);
3912 : 0 : if (!_r2)
3913 : 0 : goto next_after_fail1093;
3914 : 0 : _o1[1] = _r2;
3915 : : }
3916 : 0 : _r1 = fold_build2_loc (loc, RDIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3917 : 0 : res_op1 = _r1;
3918 : : }
3919 : 0 : tree res_op2;
3920 : 0 : {
3921 : 0 : tree _o1[2], _r1;
3922 : 0 : _o1[0] = t_one;
3923 : 0 : _o1[1] = captures[1];
3924 : 0 : _r1 = maybe_build_call_expr_loc (loc, copysigns, TREE_TYPE (_o1[0]), 2, _o1[0], _o1[1]);
3925 : 0 : if (!_r1)
3926 : 0 : goto next_after_fail1093;
3927 : 0 : res_op2 = _r1;
3928 : : }
3929 : 0 : tree _r;
3930 : 0 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
3931 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 795, __FILE__, __LINE__, true);
3932 : 0 : return _r;
3933 : : }
3934 : 0 : next_after_fail1093:;
3935 : : }
3936 : : }
3937 : 0 : return NULL_TREE;
3938 : : }
3939 : :
3940 : : tree
3941 : 0 : generic_simplify_570 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3942 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
3943 : : {
3944 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3945 : 0 : if (canonicalize_math_after_vectorization_p ()
3946 : : )
3947 : : {
3948 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1119;
3949 : : {
3950 : : tree res_op0;
3951 : : res_op0 = captures[0];
3952 : : tree res_op1;
3953 : : res_op1 = captures[1];
3954 : : tree res_op2;
3955 : : res_op2 = captures[2];
3956 : : tree _r;
3957 : : _r = maybe_build_call_expr_loc (loc, CFN_FMA, type, 3, res_op0, res_op1, res_op2);
3958 : : if (!_r)
3959 : : goto next_after_fail1119;
3960 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 821, __FILE__, __LINE__, true);
3961 : : return _r;
3962 : : }
3963 : 0 : next_after_fail1119:;
3964 : : }
3965 : 0 : return NULL_TREE;
3966 : : }
3967 : :
3968 : : tree
3969 : 0 : generic_simplify_580 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3970 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
3971 : : const combined_fn ARG_UNUSED (PARITY))
3972 : : {
3973 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3974 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1130;
3975 : 0 : {
3976 : 0 : tree res_op0;
3977 : 0 : res_op0 = captures[0];
3978 : 0 : tree _r;
3979 : 0 : _r = maybe_build_call_expr_loc (loc, PARITY, type, 1, res_op0);
3980 : 0 : if (!_r)
3981 : 0 : goto next_after_fail1130;
3982 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 827, __FILE__, __LINE__, true);
3983 : : return _r;
3984 : : }
3985 : : next_after_fail1130:;
3986 : : return NULL_TREE;
3987 : : }
3988 : :
3989 : : tree
3990 : 0 : generic_simplify_585 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3991 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
3992 : : const combined_fn ARG_UNUSED (reduc))
3993 : : {
3994 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3995 : 0 : {
3996 : 0 : int i = single_nonzero_element (captures[1]);
3997 : 0 : if (i >= 0
3998 : : )
3999 : : {
4000 : 0 : {
4001 : 0 : tree elt = vector_cst_elt (captures[1], i);
4002 : 0 : tree elt_type = TREE_TYPE (elt);
4003 : 0 : unsigned int elt_bits = tree_to_uhwi (TYPE_SIZE (elt_type));
4004 : 0 : tree size = bitsize_int (elt_bits);
4005 : 0 : tree pos = bitsize_int (elt_bits * i);
4006 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1135;
4007 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1135;
4008 : 0 : {
4009 : 0 : tree res_op0;
4010 : 0 : {
4011 : 0 : tree _o1[2], _r1;
4012 : 0 : {
4013 : 0 : tree _o2[3], _r2;
4014 : 0 : _o2[0] = captures[0];
4015 : 0 : _o2[1] = size;
4016 : 0 : _o2[2] = pos;
4017 : 0 : _r2 = fold_build3_loc (loc, BIT_FIELD_REF, elt_type, _o2[0], _o2[1], _o2[2]);
4018 : 0 : _o1[0] = _r2;
4019 : : }
4020 : 0 : _o1[1] = elt;
4021 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, elt_type, _o1[0], _o1[1]);
4022 : 0 : res_op0 = _r1;
4023 : : }
4024 : 0 : tree _r;
4025 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
4026 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 830, __FILE__, __LINE__, true);
4027 : 0 : return _r;
4028 : : }
4029 : : next_after_fail1135:;
4030 : : }
4031 : : }
4032 : : }
4033 : : return NULL_TREE;
4034 : : }
4035 : :
4036 : : tree
4037 : 3323 : generic_simplify_PAREN_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0)
4038 : : {
4039 : 3323 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4040 : 3323 : switch (TREE_CODE (_p0))
4041 : : {
4042 : 2 : case PAREN_EXPR:
4043 : 2 : {
4044 : 2 : tree _q20 = TREE_OPERAND (_p0, 0);
4045 : 2 : {
4046 : 2 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
4047 : 2 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1228;
4048 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1228;
4049 : 2 : {
4050 : 2 : tree _r;
4051 : 2 : _r = captures[0];
4052 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 881, __FILE__, __LINE__, true);
4053 : 2 : return _r;
4054 : : }
4055 : 0 : next_after_fail1228:;
4056 : : }
4057 : 0 : break;
4058 : : }
4059 : 3321 : default:;
4060 : : }
4061 : 3321 : if (CONSTANT_CLASS_P (_p0))
4062 : : {
4063 : 1 : {
4064 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4065 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1229;
4066 : 1 : {
4067 : 1 : tree _r;
4068 : 1 : _r = captures[0];
4069 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 882, __FILE__, __LINE__, true);
4070 : 1 : return _r;
4071 : : }
4072 : 0 : next_after_fail1229:;
4073 : : }
4074 : : }
4075 : : return NULL_TREE;
4076 : : }
4077 : :
4078 : : tree
4079 : 1786237 : generic_simplify_REALPART_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0)
4080 : : {
4081 : 1786237 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4082 : 1786237 : switch (TREE_CODE (_p0))
4083 : : {
4084 : 9611 : case COMPLEX_EXPR:
4085 : 9611 : {
4086 : 9611 : tree _q20 = TREE_OPERAND (_p0, 0);
4087 : 9611 : tree _q21 = TREE_OPERAND (_p0, 1);
4088 : 9611 : {
4089 : 9611 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4090 : 9611 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1230;
4091 : 9611 : {
4092 : 9611 : tree _r;
4093 : 9611 : _r = captures[0];
4094 : 9611 : if (TREE_SIDE_EFFECTS (captures[1]))
4095 : 1366 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
4096 : 9611 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 883, __FILE__, __LINE__, true);
4097 : 9611 : return _r;
4098 : : }
4099 : 0 : next_after_fail1230:;
4100 : : }
4101 : 0 : break;
4102 : : }
4103 : 48004 : CASE_CONVERT:
4104 : 48004 : {
4105 : 48004 : tree _q20 = TREE_OPERAND (_p0, 0);
4106 : 48004 : switch (TREE_CODE (_q20))
4107 : : {
4108 : 0 : case CONJ_EXPR:
4109 : 0 : {
4110 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
4111 : 0 : {
4112 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
4113 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1231;
4114 : 0 : {
4115 : 0 : tree res_op0;
4116 : 0 : {
4117 : 0 : tree _o1[1], _r1;
4118 : 0 : _o1[0] = captures[2];
4119 : 0 : _r1 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o1[0])), _o1[0]);
4120 : 0 : res_op0 = _r1;
4121 : : }
4122 : 0 : tree _r;
4123 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4124 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 884, __FILE__, __LINE__, true);
4125 : 0 : return _r;
4126 : : }
4127 : 0 : next_after_fail1231:;
4128 : : }
4129 : 0 : break;
4130 : : }
4131 : 0 : case PLUS_EXPR:
4132 : 0 : {
4133 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
4134 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
4135 : 0 : {
4136 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31 };
4137 : 0 : const enum tree_code op = PLUS_EXPR;
4138 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1232;
4139 : 0 : {
4140 : 0 : tree res_op0;
4141 : 0 : {
4142 : 0 : tree _o1[2], _r1;
4143 : 0 : {
4144 : 0 : tree _o2[1], _r2;
4145 : 0 : _o2[0] = captures[2];
4146 : 0 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4147 : 0 : _o1[0] = _r2;
4148 : : }
4149 : 0 : {
4150 : 0 : tree _o2[1], _r2;
4151 : 0 : _o2[0] = captures[3];
4152 : 0 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4153 : 0 : _o1[1] = _r2;
4154 : : }
4155 : 0 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4156 : 0 : res_op0 = _r1;
4157 : : }
4158 : 0 : tree _r;
4159 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4160 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 885, __FILE__, __LINE__, true);
4161 : 0 : return _r;
4162 : : }
4163 : 0 : next_after_fail1232:;
4164 : : }
4165 : 0 : break;
4166 : : }
4167 : 0 : case MINUS_EXPR:
4168 : 0 : {
4169 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
4170 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
4171 : 0 : {
4172 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31 };
4173 : 0 : const enum tree_code op = MINUS_EXPR;
4174 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1233;
4175 : 0 : {
4176 : 0 : tree res_op0;
4177 : 0 : {
4178 : 0 : tree _o1[2], _r1;
4179 : 0 : {
4180 : 0 : tree _o2[1], _r2;
4181 : 0 : _o2[0] = captures[2];
4182 : 0 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4183 : 0 : _o1[0] = _r2;
4184 : : }
4185 : 0 : {
4186 : 0 : tree _o2[1], _r2;
4187 : 0 : _o2[0] = captures[3];
4188 : 0 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4189 : 0 : _o1[1] = _r2;
4190 : : }
4191 : 0 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4192 : 0 : res_op0 = _r1;
4193 : : }
4194 : 0 : tree _r;
4195 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4196 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 885, __FILE__, __LINE__, true);
4197 : 0 : return _r;
4198 : : }
4199 : 0 : next_after_fail1233:;
4200 : : }
4201 : 0 : break;
4202 : : }
4203 : 0 : case CALL_EXPR:
4204 : 0 : switch (get_call_combined_fn (_q20))
4205 : : {
4206 : 0 : case CFN_BUILT_IN_CEXPIF:
4207 : 0 : if (call_expr_nargs (_q20) == 1)
4208 : : {
4209 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
4210 : 0 : {
4211 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
4212 : 0 : if (single_use (captures[1]) && single_use (captures[0])
4213 : : )
4214 : : {
4215 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1234;
4216 : 0 : {
4217 : 0 : tree res_op0;
4218 : 0 : {
4219 : 0 : tree _o1[1], _r1;
4220 : 0 : _o1[0] = captures[2];
4221 : 0 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_COSF, TREE_TYPE (_o1[0]), 1, _o1[0]);
4222 : 0 : if (!_r1)
4223 : 0 : goto next_after_fail1234;
4224 : 0 : res_op0 = _r1;
4225 : : }
4226 : 0 : tree _r;
4227 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4228 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 886, __FILE__, __LINE__, true);
4229 : 0 : return _r;
4230 : : }
4231 : 0 : next_after_fail1234:;
4232 : : }
4233 : : }
4234 : : }
4235 : : break;
4236 : 0 : case CFN_BUILT_IN_CEXPIL:
4237 : 0 : if (call_expr_nargs (_q20) == 1)
4238 : : {
4239 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
4240 : 0 : {
4241 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
4242 : 0 : if (single_use (captures[1]) && single_use (captures[0])
4243 : : )
4244 : : {
4245 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1235;
4246 : 0 : {
4247 : 0 : tree res_op0;
4248 : 0 : {
4249 : 0 : tree _o1[1], _r1;
4250 : 0 : _o1[0] = captures[2];
4251 : 0 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_COSL, TREE_TYPE (_o1[0]), 1, _o1[0]);
4252 : 0 : if (!_r1)
4253 : 0 : goto next_after_fail1235;
4254 : 0 : res_op0 = _r1;
4255 : : }
4256 : 0 : tree _r;
4257 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4258 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 886, __FILE__, __LINE__, true);
4259 : 0 : return _r;
4260 : : }
4261 : 0 : next_after_fail1235:;
4262 : : }
4263 : : }
4264 : : }
4265 : : break;
4266 : 0 : case CFN_BUILT_IN_CEXPI:
4267 : 0 : if (call_expr_nargs (_q20) == 1)
4268 : : {
4269 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
4270 : 0 : {
4271 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
4272 : 0 : if (single_use (captures[1]) && single_use (captures[0])
4273 : : )
4274 : : {
4275 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1236;
4276 : 0 : {
4277 : 0 : tree res_op0;
4278 : 0 : {
4279 : 0 : tree _o1[1], _r1;
4280 : 0 : _o1[0] = captures[2];
4281 : 0 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_COS, TREE_TYPE (_o1[0]), 1, _o1[0]);
4282 : 0 : if (!_r1)
4283 : 0 : goto next_after_fail1236;
4284 : 0 : res_op0 = _r1;
4285 : : }
4286 : 0 : tree _r;
4287 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4288 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 886, __FILE__, __LINE__, true);
4289 : 0 : return _r;
4290 : : }
4291 : 0 : next_after_fail1236:;
4292 : : }
4293 : : }
4294 : : }
4295 : : break;
4296 : : default:;
4297 : : }
4298 : : break;
4299 : : default:;
4300 : : }
4301 : : break;
4302 : : }
4303 : 16 : case CONJ_EXPR:
4304 : 16 : {
4305 : 16 : tree _q20 = TREE_OPERAND (_p0, 0);
4306 : 16 : {
4307 : 16 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q20 };
4308 : 16 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1237;
4309 : 16 : {
4310 : 16 : tree res_op0;
4311 : 16 : {
4312 : 16 : tree _o1[1], _r1;
4313 : 16 : _o1[0] = captures[2];
4314 : 16 : _r1 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o1[0])), _o1[0]);
4315 : 16 : res_op0 = _r1;
4316 : : }
4317 : 16 : tree _r;
4318 : 16 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4319 : 16 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 884, __FILE__, __LINE__, true);
4320 : 16 : return _r;
4321 : : }
4322 : 0 : next_after_fail1237:;
4323 : : }
4324 : 0 : break;
4325 : : }
4326 : 407 : case PLUS_EXPR:
4327 : 407 : {
4328 : 407 : tree _q20 = TREE_OPERAND (_p0, 0);
4329 : 407 : tree _q21 = TREE_OPERAND (_p0, 1);
4330 : 407 : {
4331 : 407 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21 };
4332 : 407 : const enum tree_code op = PLUS_EXPR;
4333 : 407 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1238;
4334 : 407 : {
4335 : 407 : tree res_op0;
4336 : 407 : {
4337 : 407 : tree _o1[2], _r1;
4338 : 407 : {
4339 : 407 : tree _o2[1], _r2;
4340 : 407 : _o2[0] = captures[2];
4341 : 407 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4342 : 407 : _o1[0] = _r2;
4343 : : }
4344 : 407 : {
4345 : 407 : tree _o2[1], _r2;
4346 : 407 : _o2[0] = captures[3];
4347 : 407 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4348 : 407 : _o1[1] = _r2;
4349 : : }
4350 : 407 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4351 : 407 : res_op0 = _r1;
4352 : : }
4353 : 407 : tree _r;
4354 : 407 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4355 : 407 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 885, __FILE__, __LINE__, true);
4356 : 407 : return _r;
4357 : : }
4358 : 0 : next_after_fail1238:;
4359 : : }
4360 : 0 : break;
4361 : : }
4362 : 47 : case MINUS_EXPR:
4363 : 47 : {
4364 : 47 : tree _q20 = TREE_OPERAND (_p0, 0);
4365 : 47 : tree _q21 = TREE_OPERAND (_p0, 1);
4366 : 47 : {
4367 : 47 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21 };
4368 : 47 : const enum tree_code op = MINUS_EXPR;
4369 : 47 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1239;
4370 : 47 : {
4371 : 47 : tree res_op0;
4372 : 47 : {
4373 : 47 : tree _o1[2], _r1;
4374 : 47 : {
4375 : 47 : tree _o2[1], _r2;
4376 : 47 : _o2[0] = captures[2];
4377 : 47 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4378 : 47 : _o1[0] = _r2;
4379 : : }
4380 : 47 : {
4381 : 47 : tree _o2[1], _r2;
4382 : 47 : _o2[0] = captures[3];
4383 : 47 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4384 : 47 : _o1[1] = _r2;
4385 : : }
4386 : 47 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4387 : 47 : res_op0 = _r1;
4388 : : }
4389 : 47 : tree _r;
4390 : 47 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4391 : 47 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 885, __FILE__, __LINE__, true);
4392 : 47 : return _r;
4393 : : }
4394 : 0 : next_after_fail1239:;
4395 : : }
4396 : 0 : break;
4397 : : }
4398 : 257 : case CALL_EXPR:
4399 : 257 : switch (get_call_combined_fn (_p0))
4400 : : {
4401 : 0 : case CFN_BUILT_IN_CEXPIF:
4402 : 0 : if (call_expr_nargs (_p0) == 1)
4403 : : {
4404 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4405 : 0 : {
4406 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q20 };
4407 : 0 : if (single_use (captures[1]) && single_use (captures[0])
4408 : : )
4409 : : {
4410 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1240;
4411 : 0 : {
4412 : 0 : tree res_op0;
4413 : 0 : {
4414 : 0 : tree _o1[1], _r1;
4415 : 0 : _o1[0] = captures[2];
4416 : 0 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_COSF, TREE_TYPE (_o1[0]), 1, _o1[0]);
4417 : 0 : if (!_r1)
4418 : 0 : goto next_after_fail1240;
4419 : 0 : res_op0 = _r1;
4420 : : }
4421 : 0 : tree _r;
4422 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4423 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 886, __FILE__, __LINE__, true);
4424 : 0 : return _r;
4425 : : }
4426 : 0 : next_after_fail1240:;
4427 : : }
4428 : : }
4429 : : }
4430 : : break;
4431 : 0 : case CFN_BUILT_IN_CEXPIL:
4432 : 0 : if (call_expr_nargs (_p0) == 1)
4433 : : {
4434 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4435 : 0 : {
4436 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q20 };
4437 : 0 : if (single_use (captures[1]) && single_use (captures[0])
4438 : : )
4439 : : {
4440 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1241;
4441 : 0 : {
4442 : 0 : tree res_op0;
4443 : 0 : {
4444 : 0 : tree _o1[1], _r1;
4445 : 0 : _o1[0] = captures[2];
4446 : 0 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_COSL, TREE_TYPE (_o1[0]), 1, _o1[0]);
4447 : 0 : if (!_r1)
4448 : 0 : goto next_after_fail1241;
4449 : 0 : res_op0 = _r1;
4450 : : }
4451 : 0 : tree _r;
4452 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4453 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 886, __FILE__, __LINE__, true);
4454 : 0 : return _r;
4455 : : }
4456 : 0 : next_after_fail1241:;
4457 : : }
4458 : : }
4459 : : }
4460 : : break;
4461 : 1 : case CFN_BUILT_IN_CEXPI:
4462 : 1 : if (call_expr_nargs (_p0) == 1)
4463 : : {
4464 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4465 : 1 : {
4466 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q20 };
4467 : 1 : if (single_use (captures[1]) && single_use (captures[0])
4468 : : )
4469 : : {
4470 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1242;
4471 : 1 : {
4472 : 1 : tree res_op0;
4473 : 1 : {
4474 : 1 : tree _o1[1], _r1;
4475 : 1 : _o1[0] = captures[2];
4476 : 1 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_COS, TREE_TYPE (_o1[0]), 1, _o1[0]);
4477 : 1 : if (!_r1)
4478 : 0 : goto next_after_fail1242;
4479 : 1 : res_op0 = _r1;
4480 : : }
4481 : 1 : tree _r;
4482 : 1 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4483 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 886, __FILE__, __LINE__, true);
4484 : 1 : return _r;
4485 : : }
4486 : 0 : next_after_fail1242:;
4487 : : }
4488 : : }
4489 : : }
4490 : : break;
4491 : : default:;
4492 : : }
4493 : : break;
4494 : : default:;
4495 : : }
4496 : : return NULL_TREE;
4497 : : }
4498 : :
4499 : : tree
4500 : 2648482 : generic_simplify_POINTER_DIFF_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
4501 : : {
4502 : 2648482 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4503 : 2648482 : if (integer_zerop (_p1))
4504 : : {
4505 : 29 : {
4506 : 29 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4507 : 29 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1399;
4508 : 29 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1399;
4509 : 29 : {
4510 : 29 : tree res_op0;
4511 : 29 : res_op0 = captures[0];
4512 : 29 : tree _r;
4513 : 29 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4514 : 29 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
4515 : 29 : return _r;
4516 : : }
4517 : : next_after_fail1399:;
4518 : : }
4519 : : }
4520 : 2648453 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _p0, 0))
4521 : : {
4522 : 27784 : {
4523 : 27784 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p0 };
4524 : 27784 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1400;
4525 : 27784 : {
4526 : 27784 : tree _r;
4527 : 27784 : _r = build_zero_cst (type);
4528 : 27784 : if (TREE_SIDE_EFFECTS (captures[1]))
4529 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
4530 : 27784 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 950, __FILE__, __LINE__, true);
4531 : 27784 : return _r;
4532 : : }
4533 : 0 : next_after_fail1400:;
4534 : : }
4535 : : }
4536 : 2620669 : switch (TREE_CODE (_p0))
4537 : : {
4538 : 71237 : case POINTER_PLUS_EXPR:
4539 : 71237 : {
4540 : 71237 : tree _q20 = TREE_OPERAND (_p0, 0);
4541 : 71237 : tree _q21 = TREE_OPERAND (_p0, 1);
4542 : 71237 : switch (TREE_CODE (_p1))
4543 : : {
4544 : 18337 : case POINTER_PLUS_EXPR:
4545 : 18337 : {
4546 : 18337 : tree _q50 = TREE_OPERAND (_p1, 0);
4547 : 18337 : tree _q51 = TREE_OPERAND (_p1, 1);
4548 : 18337 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
4549 : : {
4550 : 18318 : {
4551 : 18318 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
4552 : 18318 : if (TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[1]))
4553 : : )
4554 : : {
4555 : 18318 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1401;
4556 : 18318 : {
4557 : 18318 : tree res_op0;
4558 : 18318 : {
4559 : 18318 : tree _o1[2], _r1;
4560 : 18318 : _o1[0] = captures[1];
4561 : 18318 : _o1[1] = captures[2];
4562 : 18318 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4563 : 18318 : res_op0 = _r1;
4564 : : }
4565 : 18318 : tree _r;
4566 : 18318 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4567 : 18318 : if (TREE_SIDE_EFFECTS (captures[0]))
4568 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
4569 : 18318 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 951, __FILE__, __LINE__, true);
4570 : 18318 : return _r;
4571 : : }
4572 : 0 : next_after_fail1401:;
4573 : : }
4574 : : }
4575 : : }
4576 : : break;
4577 : : }
4578 : : default:;
4579 : : }
4580 : : break;
4581 : : }
4582 : 153523 : CASE_CONVERT:
4583 : 153523 : {
4584 : 153523 : tree _q20 = TREE_OPERAND (_p0, 0);
4585 : 153523 : switch (TREE_CODE (_q20))
4586 : : {
4587 : 3403 : case ADDR_EXPR:
4588 : 3403 : {
4589 : 3403 : switch (TREE_CODE (_p1))
4590 : : {
4591 : 327 : CASE_CONVERT:
4592 : 327 : {
4593 : 327 : tree _q40 = TREE_OPERAND (_p1, 0);
4594 : 327 : {
4595 : 327 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
4596 : 327 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
4597 : 327 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
4598 : : )
4599 : : {
4600 : 327 : {
4601 : 327 : poly_int64 diff;
4602 : 327 : if (ptr_difference_const (captures[1], captures[3], &diff)
4603 : : )
4604 : : {
4605 : 192 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1402;
4606 : 192 : {
4607 : 192 : tree _r;
4608 : 192 : _r = build_int_cst_type (type, diff);
4609 : 192 : if (TREE_SIDE_EFFECTS (captures[1]))
4610 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
4611 : 192 : if (TREE_SIDE_EFFECTS (captures[3]))
4612 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
4613 : 192 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
4614 : 192 : return _r;
4615 : : }
4616 : 0 : next_after_fail1402:;
4617 : : }
4618 : : }
4619 : : }
4620 : : }
4621 : 135 : break;
4622 : : }
4623 : 3211 : default:;
4624 : : }
4625 : 3211 : {
4626 : 3211 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
4627 : 3211 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
4628 : 3211 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
4629 : : )
4630 : : {
4631 : 3211 : {
4632 : 3211 : poly_int64 diff;
4633 : 3211 : if (ptr_difference_const (captures[1], captures[3], &diff)
4634 : : )
4635 : : {
4636 : 126 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1403;
4637 : 126 : {
4638 : 126 : tree _r;
4639 : 126 : _r = build_int_cst_type (type, diff);
4640 : 126 : if (TREE_SIDE_EFFECTS (captures[1]))
4641 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
4642 : 126 : if (TREE_SIDE_EFFECTS (captures[2]))
4643 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
4644 : 126 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
4645 : 126 : return _r;
4646 : : }
4647 : 0 : next_after_fail1403:;
4648 : : }
4649 : : }
4650 : : }
4651 : : }
4652 : 3085 : break;
4653 : : }
4654 : 153205 : default:;
4655 : : }
4656 : 153205 : switch (TREE_CODE (_p1))
4657 : : {
4658 : 78550 : CASE_CONVERT:
4659 : 78550 : {
4660 : 78550 : tree _q40 = TREE_OPERAND (_p1, 0);
4661 : 78550 : switch (TREE_CODE (_q40))
4662 : : {
4663 : 466 : case ADDR_EXPR:
4664 : 466 : {
4665 : 466 : {
4666 : 466 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
4667 : 466 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
4668 : 466 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
4669 : : )
4670 : : {
4671 : 466 : {
4672 : 466 : poly_int64 diff;
4673 : 466 : if (ptr_difference_const (captures[1], captures[3], &diff)
4674 : : )
4675 : : {
4676 : 21 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1404;
4677 : 21 : {
4678 : 21 : tree _r;
4679 : 21 : _r = build_int_cst_type (type, diff);
4680 : 21 : if (TREE_SIDE_EFFECTS (captures[1]))
4681 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
4682 : 21 : if (TREE_SIDE_EFFECTS (captures[3]))
4683 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
4684 : 21 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
4685 : 21 : return _r;
4686 : : }
4687 : 0 : next_after_fail1404:;
4688 : : }
4689 : : }
4690 : : }
4691 : : }
4692 : 445 : break;
4693 : : }
4694 : : default:;
4695 : : }
4696 : : break;
4697 : : }
4698 : 12 : case ADDR_EXPR:
4699 : 12 : {
4700 : 12 : {
4701 : 12 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
4702 : 12 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
4703 : 12 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
4704 : : )
4705 : : {
4706 : 12 : {
4707 : 12 : poly_int64 diff;
4708 : 12 : if (ptr_difference_const (captures[1], captures[3], &diff)
4709 : : )
4710 : : {
4711 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1405;
4712 : 0 : {
4713 : 0 : tree _r;
4714 : 0 : _r = build_int_cst_type (type, diff);
4715 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
4716 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
4717 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
4718 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
4719 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
4720 : 0 : return _r;
4721 : : }
4722 : 0 : next_after_fail1405:;
4723 : : }
4724 : : }
4725 : : }
4726 : : }
4727 : 12 : break;
4728 : : }
4729 : : default:;
4730 : : }
4731 : : break;
4732 : : }
4733 : 1590 : case ADDR_EXPR:
4734 : 1590 : {
4735 : 1590 : switch (TREE_CODE (_p1))
4736 : : {
4737 : 50 : CASE_CONVERT:
4738 : 50 : {
4739 : 50 : tree _q30 = TREE_OPERAND (_p1, 0);
4740 : 50 : {
4741 : 50 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _p1, _q30 };
4742 : 50 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
4743 : 50 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
4744 : : )
4745 : : {
4746 : 50 : {
4747 : 50 : poly_int64 diff;
4748 : 50 : if (ptr_difference_const (captures[1], captures[3], &diff)
4749 : : )
4750 : : {
4751 : 29 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1406;
4752 : 29 : {
4753 : 29 : tree _r;
4754 : 29 : _r = build_int_cst_type (type, diff);
4755 : 29 : if (TREE_SIDE_EFFECTS (captures[0]))
4756 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
4757 : 29 : if (TREE_SIDE_EFFECTS (captures[3]))
4758 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
4759 : 29 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
4760 : 29 : return _r;
4761 : : }
4762 : 0 : next_after_fail1406:;
4763 : : }
4764 : : }
4765 : : }
4766 : : }
4767 : 21 : break;
4768 : : }
4769 : 1561 : default:;
4770 : : }
4771 : 1561 : {
4772 : 1561 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _p1, _p1 };
4773 : 1561 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
4774 : 1561 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
4775 : : )
4776 : : {
4777 : 1561 : {
4778 : 1561 : poly_int64 diff;
4779 : 1561 : if (ptr_difference_const (captures[1], captures[3], &diff)
4780 : : )
4781 : : {
4782 : 261 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1407;
4783 : 261 : {
4784 : 261 : tree _r;
4785 : 261 : _r = build_int_cst_type (type, diff);
4786 : 261 : if (TREE_SIDE_EFFECTS (captures[0]))
4787 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
4788 : 261 : if (TREE_SIDE_EFFECTS (captures[2]))
4789 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
4790 : 261 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
4791 : 261 : return _r;
4792 : : }
4793 : 0 : next_after_fail1407:;
4794 : : }
4795 : : }
4796 : : }
4797 : : }
4798 : 1300 : break;
4799 : : }
4800 : 2601722 : default:;
4801 : : }
4802 : 2601722 : switch (TREE_CODE (_p1))
4803 : : {
4804 : 253620 : CASE_CONVERT:
4805 : 253620 : {
4806 : 253620 : tree _q30 = TREE_OPERAND (_p1, 0);
4807 : 253620 : switch (TREE_CODE (_q30))
4808 : : {
4809 : 105588 : case ADDR_EXPR:
4810 : 105588 : {
4811 : 105588 : {
4812 : 105588 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _p1, _q30 };
4813 : 105588 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
4814 : 105588 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
4815 : : )
4816 : : {
4817 : 105588 : {
4818 : 105588 : poly_int64 diff;
4819 : 105588 : if (ptr_difference_const (captures[1], captures[3], &diff)
4820 : : )
4821 : : {
4822 : 43605 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1408;
4823 : 43605 : {
4824 : 43605 : tree _r;
4825 : 43605 : _r = build_int_cst_type (type, diff);
4826 : 43605 : if (TREE_SIDE_EFFECTS (captures[0]))
4827 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
4828 : 43605 : if (TREE_SIDE_EFFECTS (captures[3]))
4829 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
4830 : 43605 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
4831 : 43605 : return _r;
4832 : : }
4833 : 0 : next_after_fail1408:;
4834 : : }
4835 : : }
4836 : : }
4837 : : }
4838 : 61983 : break;
4839 : : }
4840 : : default:;
4841 : : }
4842 : : break;
4843 : : }
4844 : 7708 : case ADDR_EXPR:
4845 : 7708 : {
4846 : 7708 : {
4847 : 7708 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _p1, _p1 };
4848 : 7708 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
4849 : 7708 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
4850 : : )
4851 : : {
4852 : 7708 : {
4853 : 7708 : poly_int64 diff;
4854 : 7708 : if (ptr_difference_const (captures[1], captures[3], &diff)
4855 : : )
4856 : : {
4857 : 13 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1409;
4858 : 13 : {
4859 : 13 : tree _r;
4860 : 13 : _r = build_int_cst_type (type, diff);
4861 : 13 : if (TREE_SIDE_EFFECTS (captures[0]))
4862 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
4863 : 13 : if (TREE_SIDE_EFFECTS (captures[2]))
4864 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
4865 : 13 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
4866 : 13 : return _r;
4867 : : }
4868 : 0 : next_after_fail1409:;
4869 : : }
4870 : : }
4871 : : }
4872 : : }
4873 : 7695 : break;
4874 : : }
4875 : 2558104 : default:;
4876 : : }
4877 : 2558104 : switch (TREE_CODE (_p0))
4878 : : {
4879 : 9301 : case POINTER_PLUS_EXPR:
4880 : 9301 : {
4881 : 9301 : tree _q20 = TREE_OPERAND (_p0, 0);
4882 : 9301 : tree _q21 = TREE_OPERAND (_p0, 1);
4883 : 9301 : switch (TREE_CODE (_q20))
4884 : : {
4885 : 56 : case ADDR_EXPR:
4886 : 56 : {
4887 : 56 : switch (TREE_CODE (_p1))
4888 : : {
4889 : 0 : case POINTER_PLUS_EXPR:
4890 : 0 : {
4891 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
4892 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
4893 : 0 : switch (TREE_CODE (_q50))
4894 : : {
4895 : 0 : case ADDR_EXPR:
4896 : 0 : {
4897 : 0 : {
4898 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q50, _q51 };
4899 : 0 : {
4900 : 0 : poly_int64 diff;
4901 : 0 : if (ptr_difference_const (captures[0], captures[2], &diff)
4902 : : )
4903 : : {
4904 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1410;
4905 : 0 : {
4906 : 0 : tree res_op0;
4907 : 0 : res_op0 = build_int_cst_type (type, diff);
4908 : 0 : tree res_op1;
4909 : 0 : {
4910 : 0 : tree _o1[1], _r1;
4911 : 0 : {
4912 : 0 : tree _o2[2], _r2;
4913 : 0 : _o2[0] = captures[1];
4914 : 0 : _o2[1] = captures[3];
4915 : 0 : _r2 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
4916 : 0 : _o1[0] = _r2;
4917 : : }
4918 : 0 : if (TREE_TYPE (_o1[0]) != type)
4919 : : {
4920 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
4921 : : }
4922 : : else
4923 : : _r1 = _o1[0];
4924 : 0 : res_op1 = _r1;
4925 : : }
4926 : 0 : tree _r;
4927 : 0 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
4928 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
4929 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
4930 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
4931 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
4932 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 954, __FILE__, __LINE__, true);
4933 : 0 : return _r;
4934 : : }
4935 : 0 : next_after_fail1410:;
4936 : : }
4937 : : }
4938 : : }
4939 : 0 : break;
4940 : : }
4941 : : default:;
4942 : : }
4943 : : break;
4944 : : }
4945 : : default:;
4946 : : }
4947 : : break;
4948 : : }
4949 : 9301 : default:;
4950 : : }
4951 : 9301 : switch (TREE_CODE (_p1))
4952 : : {
4953 : 103 : case ADDR_EXPR:
4954 : 103 : {
4955 : 103 : {
4956 : 103 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
4957 : 103 : {
4958 : 103 : poly_int64 diff;
4959 : 103 : if (ptr_difference_const (captures[0], captures[2], &diff)
4960 : : )
4961 : : {
4962 : 89 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1411;
4963 : 89 : {
4964 : 89 : tree res_op0;
4965 : 89 : res_op0 = build_int_cst_type (type, diff);
4966 : 89 : tree res_op1;
4967 : 89 : {
4968 : 89 : tree _o1[1], _r1;
4969 : 89 : _o1[0] = captures[1];
4970 : 89 : if (TREE_TYPE (_o1[0]) != type)
4971 : : {
4972 : 89 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
4973 : : }
4974 : : else
4975 : : _r1 = _o1[0];
4976 : 89 : res_op1 = _r1;
4977 : : }
4978 : 89 : tree _r;
4979 : 89 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
4980 : 89 : if (TREE_SIDE_EFFECTS (captures[0]))
4981 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
4982 : 89 : if (TREE_SIDE_EFFECTS (captures[2]))
4983 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
4984 : 89 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 955, __FILE__, __LINE__, true);
4985 : 89 : return _r;
4986 : : }
4987 : 0 : next_after_fail1411:;
4988 : : }
4989 : : }
4990 : : }
4991 : 14 : break;
4992 : : }
4993 : 9212 : default:;
4994 : : }
4995 : 9212 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q20, 0))
4996 : : {
4997 : 3940 : {
4998 : 3940 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q20 };
4999 : 3940 : if (!TYPE_SATURATING (type)
5000 : : )
5001 : : {
5002 : 3940 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
5003 : 7880 : && !FIXED_POINT_TYPE_P (type)
5004 : : )
5005 : : {
5006 : 3940 : {
5007 : 3940 : tree stype = signed_type_for (TREE_TYPE (captures[1]));
5008 : 3940 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1412;
5009 : 3940 : {
5010 : 3940 : tree res_op0;
5011 : 3940 : {
5012 : 3940 : tree _o1[1], _r1;
5013 : 3940 : _o1[0] = captures[1];
5014 : 3940 : if (TREE_TYPE (_o1[0]) != stype)
5015 : : {
5016 : 3940 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, stype, _o1[0]);
5017 : : }
5018 : : else
5019 : : _r1 = _o1[0];
5020 : 3940 : res_op0 = _r1;
5021 : : }
5022 : 3940 : tree _r;
5023 : 3940 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
5024 : 3940 : if (TREE_SIDE_EFFECTS (captures[2]))
5025 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
5026 : 3940 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 956, __FILE__, __LINE__, true);
5027 : 3940 : return _r;
5028 : : }
5029 : 0 : next_after_fail1412:;
5030 : : }
5031 : : }
5032 : : }
5033 : : }
5034 : : }
5035 : : break;
5036 : : }
5037 : 1300 : case ADDR_EXPR:
5038 : 1300 : {
5039 : 1300 : switch (TREE_CODE (_p1))
5040 : : {
5041 : 9 : case POINTER_PLUS_EXPR:
5042 : 9 : {
5043 : 9 : tree _q30 = TREE_OPERAND (_p1, 0);
5044 : 9 : tree _q31 = TREE_OPERAND (_p1, 1);
5045 : 9 : {
5046 : 9 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q31 };
5047 : 9 : {
5048 : 9 : poly_int64 diff;
5049 : 9 : if (ptr_difference_const (captures[0], captures[1], &diff)
5050 : : )
5051 : : {
5052 : 9 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1413;
5053 : 9 : {
5054 : 9 : tree res_op0;
5055 : 9 : res_op0 = build_int_cst_type (type, diff);
5056 : 9 : tree res_op1;
5057 : 9 : {
5058 : 9 : tree _o1[1], _r1;
5059 : 9 : _o1[0] = captures[2];
5060 : 9 : if (TREE_TYPE (_o1[0]) != type)
5061 : : {
5062 : 9 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
5063 : : }
5064 : : else
5065 : : _r1 = _o1[0];
5066 : 9 : res_op1 = _r1;
5067 : : }
5068 : 9 : tree _r;
5069 : 9 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
5070 : 9 : if (TREE_SIDE_EFFECTS (captures[0]))
5071 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
5072 : 9 : if (TREE_SIDE_EFFECTS (captures[1]))
5073 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
5074 : 9 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 957, __FILE__, __LINE__, true);
5075 : 9 : return _r;
5076 : : }
5077 : 0 : next_after_fail1413:;
5078 : : }
5079 : : }
5080 : : }
5081 : 0 : break;
5082 : : }
5083 : : default:;
5084 : : }
5085 : : break;
5086 : : }
5087 : 2554066 : default:;
5088 : : }
5089 : 2554066 : switch (TREE_CODE (_p1))
5090 : : {
5091 : 186 : case POINTER_PLUS_EXPR:
5092 : 186 : {
5093 : 186 : tree _q30 = TREE_OPERAND (_p1, 0);
5094 : 186 : tree _q31 = TREE_OPERAND (_p1, 1);
5095 : 186 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || operand_equal_p (_q30, _p0, 0))
5096 : : {
5097 : 112 : {
5098 : 112 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p0 };
5099 : 112 : if (!TYPE_SATURATING (type)
5100 : : )
5101 : : {
5102 : 112 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
5103 : 224 : && !FIXED_POINT_TYPE_P (type)
5104 : : )
5105 : : {
5106 : 112 : {
5107 : 112 : tree stype = signed_type_for (TREE_TYPE (captures[1]));
5108 : 112 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1414;
5109 : 112 : {
5110 : 112 : tree res_op0;
5111 : 112 : {
5112 : 112 : tree _o1[1], _r1;
5113 : 112 : {
5114 : 112 : tree _o2[1], _r2;
5115 : 112 : _o2[0] = captures[1];
5116 : 112 : if (TREE_TYPE (_o2[0]) != stype)
5117 : : {
5118 : 112 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, stype, _o2[0]);
5119 : : }
5120 : : else
5121 : : _r2 = _o2[0];
5122 : 112 : _o1[0] = _r2;
5123 : : }
5124 : 112 : if (TREE_TYPE (_o1[0]) != type)
5125 : : {
5126 : 112 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
5127 : : }
5128 : : else
5129 : : _r1 = _o1[0];
5130 : 112 : res_op0 = _r1;
5131 : : }
5132 : 112 : tree _r;
5133 : 112 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
5134 : 112 : if (TREE_SIDE_EFFECTS (captures[2]))
5135 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
5136 : 112 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 958, __FILE__, __LINE__, true);
5137 : 112 : return _r;
5138 : : }
5139 : 0 : next_after_fail1414:;
5140 : : }
5141 : : }
5142 : : }
5143 : : }
5144 : : }
5145 : : break;
5146 : : }
5147 : 2553954 : default:;
5148 : : }
5149 : 2553954 : switch (TREE_CODE (_p0))
5150 : : {
5151 : 5272 : case POINTER_PLUS_EXPR:
5152 : 5272 : {
5153 : 5272 : tree _q20 = TREE_OPERAND (_p0, 0);
5154 : 5272 : tree _q21 = TREE_OPERAND (_p0, 1);
5155 : 5272 : switch (TREE_CODE (_p1))
5156 : : {
5157 : 19 : case POINTER_PLUS_EXPR:
5158 : 19 : {
5159 : 19 : tree _q50 = TREE_OPERAND (_p1, 0);
5160 : 19 : tree _q51 = TREE_OPERAND (_p1, 1);
5161 : 19 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5162 : : {
5163 : 1 : {
5164 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
5165 : 1 : if (!TYPE_SATURATING (type)
5166 : : )
5167 : : {
5168 : 1 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
5169 : 2 : && !FIXED_POINT_TYPE_P (type)
5170 : : )
5171 : : {
5172 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1415;
5173 : 1 : {
5174 : 1 : tree res_op0;
5175 : 1 : res_op0 = captures[0];
5176 : 1 : tree res_op1;
5177 : 1 : res_op1 = captures[2];
5178 : 1 : tree _r;
5179 : 1 : _r = fold_build2_loc (loc, POINTER_DIFF_EXPR, type, res_op0, res_op1);
5180 : 1 : if (TREE_SIDE_EFFECTS (captures[1]))
5181 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
5182 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 959, __FILE__, __LINE__, true);
5183 : 1 : return _r;
5184 : : }
5185 : 0 : next_after_fail1415:;
5186 : : }
5187 : : }
5188 : : }
5189 : : }
5190 : 18 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
5191 : : {
5192 : 18 : {
5193 : 18 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q51, _q20 };
5194 : 18 : if (!TYPE_SATURATING (type)
5195 : : )
5196 : : {
5197 : 18 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
5198 : 36 : && !FIXED_POINT_TYPE_P (type)
5199 : : )
5200 : : {
5201 : 18 : {
5202 : 18 : tree stype = signed_type_for (TREE_TYPE (captures[1]));
5203 : 18 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1416;
5204 : 18 : {
5205 : 18 : tree res_op0;
5206 : 18 : {
5207 : 18 : tree _o1[1], _r1;
5208 : 18 : {
5209 : 18 : tree _o2[1], _r2;
5210 : 18 : _o2[0] = captures[1];
5211 : 18 : if (TREE_TYPE (_o2[0]) != stype)
5212 : : {
5213 : 18 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, stype, _o2[0]);
5214 : : }
5215 : : else
5216 : : _r2 = _o2[0];
5217 : 18 : _o1[0] = _r2;
5218 : : }
5219 : 18 : if (TREE_TYPE (_o1[0]) != type)
5220 : : {
5221 : 18 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
5222 : : }
5223 : : else
5224 : : _r1 = _o1[0];
5225 : 18 : res_op0 = _r1;
5226 : : }
5227 : 18 : tree res_op1;
5228 : 18 : {
5229 : 18 : tree _o1[1], _r1;
5230 : 18 : {
5231 : 18 : tree _o2[1], _r2;
5232 : 18 : _o2[0] = captures[2];
5233 : 18 : if (TREE_TYPE (_o2[0]) != stype)
5234 : : {
5235 : 18 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, stype, _o2[0]);
5236 : : }
5237 : : else
5238 : : _r2 = _o2[0];
5239 : 18 : _o1[0] = _r2;
5240 : : }
5241 : 18 : if (TREE_TYPE (_o1[0]) != type)
5242 : : {
5243 : 18 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
5244 : : }
5245 : : else
5246 : : _r1 = _o1[0];
5247 : 18 : res_op1 = _r1;
5248 : : }
5249 : 18 : tree _r;
5250 : 18 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
5251 : 18 : if (TREE_SIDE_EFFECTS (captures[3]))
5252 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
5253 : 18 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 960, __FILE__, __LINE__, true);
5254 : 18 : return _r;
5255 : : }
5256 : 0 : next_after_fail1416:;
5257 : : }
5258 : : }
5259 : : }
5260 : : }
5261 : : }
5262 : : break;
5263 : : }
5264 : : default:;
5265 : : }
5266 : : break;
5267 : : }
5268 : 2553935 : default:;
5269 : : }
5270 : 2553935 : if (integer_zerop (_p0))
5271 : : {
5272 : 0 : {
5273 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p1 };
5274 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1417;
5275 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1417;
5276 : 0 : {
5277 : 0 : tree res_op0;
5278 : 0 : {
5279 : 0 : tree _o1[1], _r1;
5280 : 0 : _o1[0] = captures[0];
5281 : 0 : if (TREE_TYPE (_o1[0]) != type)
5282 : : {
5283 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
5284 : : }
5285 : : else
5286 : : _r1 = _o1[0];
5287 : 0 : res_op0 = _r1;
5288 : : }
5289 : 0 : tree _r;
5290 : 0 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
5291 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 961, __FILE__, __LINE__, true);
5292 : 0 : return _r;
5293 : : }
5294 : : next_after_fail1417:;
5295 : : }
5296 : : }
5297 : : return NULL_TREE;
5298 : : }
5299 : :
5300 : : tree
5301 : 2172810 : generic_simplify_FLOOR_DIV_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
5302 : : {
5303 : 2172810 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
5304 : 2172810 : if (integer_onep (_p1))
5305 : : {
5306 : 716886 : {
5307 : 716886 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5308 : 716886 : tree res = generic_simplify_176 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5309 : 716886 : if (res) return res;
5310 : : }
5311 : : }
5312 : 1455924 : if (integer_zerop (_p0))
5313 : : {
5314 : 4 : {
5315 : 4 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5316 : 4 : tree res = generic_simplify_301 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5317 : 4 : if (res) return res;
5318 : : }
5319 : : }
5320 : 1455920 : switch (TREE_CODE (_p1))
5321 : : {
5322 : 726 : case SSA_NAME:
5323 : 726 : {
5324 : 726 : {
5325 : 726 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5326 : 726 : tree res = generic_simplify_303 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5327 : 726 : if (res) return res;
5328 : : }
5329 : 726 : break;
5330 : : }
5331 : 1455920 : default:;
5332 : : }
5333 : 1455920 : if (integer_minus_onep (_p1))
5334 : : {
5335 : 157 : {
5336 : 157 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5337 : 157 : tree res = generic_simplify_302 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5338 : 157 : if (res) return res;
5339 : : }
5340 : : }
5341 : 1455859 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
5342 : : {
5343 : 0 : {
5344 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5345 : 0 : tree res = generic_simplify_304 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5346 : 0 : if (res) return res;
5347 : : }
5348 : : }
5349 : 1455859 : switch (TREE_CODE (_p1))
5350 : : {
5351 : 0 : case ABS_EXPR:
5352 : 0 : {
5353 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
5354 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
5355 : : {
5356 : 0 : {
5357 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5358 : 0 : tree res = generic_simplify_305 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5359 : 0 : if (res) return res;
5360 : : }
5361 : : }
5362 : : break;
5363 : : }
5364 : 1455859 : default:;
5365 : : }
5366 : 1455859 : switch (TREE_CODE (_p0))
5367 : : {
5368 : 0 : case ABS_EXPR:
5369 : 0 : {
5370 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
5371 : 0 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
5372 : : {
5373 : 0 : {
5374 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
5375 : 0 : tree res = generic_simplify_305 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5376 : 0 : if (res) return res;
5377 : : }
5378 : : }
5379 : : break;
5380 : : }
5381 : 1455859 : default:;
5382 : : }
5383 : 1455859 : switch (TREE_CODE (_p1))
5384 : : {
5385 : 0 : case NEGATE_EXPR:
5386 : 0 : {
5387 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
5388 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
5389 : : {
5390 : 0 : {
5391 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5392 : 0 : tree res = generic_simplify_306 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5393 : 0 : if (res) return res;
5394 : : }
5395 : : }
5396 : : break;
5397 : : }
5398 : 1455859 : default:;
5399 : : }
5400 : 1455859 : switch (TREE_CODE (_p0))
5401 : : {
5402 : 312 : case NEGATE_EXPR:
5403 : 312 : {
5404 : 312 : tree _q20 = TREE_OPERAND (_p0, 0);
5405 : 312 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
5406 : : {
5407 : 0 : {
5408 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
5409 : 0 : tree res = generic_simplify_306 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5410 : 0 : if (res) return res;
5411 : : }
5412 : : }
5413 : : break;
5414 : : }
5415 : 1455859 : default:;
5416 : : }
5417 : 1455859 : {
5418 : 1455859 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5419 : 1455859 : tree res = generic_simplify_312 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR, TRUNC_DIV_EXPR);
5420 : 1455859 : if (res) return res;
5421 : : }
5422 : 4479 : switch (TREE_CODE (_p0))
5423 : : {
5424 : 388 : CASE_CONVERT:
5425 : 388 : {
5426 : 388 : tree _q20 = TREE_OPERAND (_p0, 0);
5427 : 388 : switch (TREE_CODE (_q20))
5428 : : {
5429 : 0 : case BIT_AND_EXPR:
5430 : 0 : {
5431 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
5432 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
5433 : 0 : switch (TREE_CODE (_q31))
5434 : : {
5435 : 0 : case INTEGER_CST:
5436 : 0 : {
5437 : 0 : switch (TREE_CODE (_p1))
5438 : : {
5439 : 0 : case INTEGER_CST:
5440 : 0 : {
5441 : 0 : {
5442 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
5443 : 0 : tree res = generic_simplify_308 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5444 : 0 : if (res) return res;
5445 : : }
5446 : 0 : break;
5447 : : }
5448 : : default:;
5449 : : }
5450 : : break;
5451 : : }
5452 : : default:;
5453 : : }
5454 : : break;
5455 : : }
5456 : : default:;
5457 : : }
5458 : : break;
5459 : : }
5460 : 0 : case BIT_AND_EXPR:
5461 : 0 : {
5462 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
5463 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
5464 : 0 : switch (TREE_CODE (_q21))
5465 : : {
5466 : 0 : case INTEGER_CST:
5467 : 0 : {
5468 : 0 : switch (TREE_CODE (_p1))
5469 : : {
5470 : 0 : case INTEGER_CST:
5471 : 0 : {
5472 : 0 : {
5473 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
5474 : 0 : tree res = generic_simplify_308 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5475 : 0 : if (res) return res;
5476 : : }
5477 : 0 : break;
5478 : : }
5479 : : default:;
5480 : : }
5481 : : break;
5482 : : }
5483 : : default:;
5484 : : }
5485 : : break;
5486 : : }
5487 : 0 : case MULT_EXPR:
5488 : 0 : {
5489 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
5490 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
5491 : 0 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
5492 : : {
5493 : 0 : {
5494 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5495 : 0 : tree res = generic_simplify_310 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5496 : 0 : if (res) return res;
5497 : : }
5498 : : }
5499 : 0 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
5500 : : {
5501 : 0 : {
5502 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
5503 : 0 : tree res = generic_simplify_310 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5504 : 0 : if (res) return res;
5505 : : }
5506 : : }
5507 : 0 : switch (TREE_CODE (_q21))
5508 : : {
5509 : 0 : case INTEGER_CST:
5510 : 0 : {
5511 : 0 : switch (TREE_CODE (_p1))
5512 : : {
5513 : 0 : case MULT_EXPR:
5514 : 0 : {
5515 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
5516 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
5517 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5518 : : {
5519 : 0 : switch (TREE_CODE (_q51))
5520 : : {
5521 : 0 : case INTEGER_CST:
5522 : 0 : {
5523 : 0 : {
5524 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
5525 : 0 : tree res = generic_simplify_311 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5526 : 0 : if (res) return res;
5527 : : }
5528 : 0 : break;
5529 : : }
5530 : : default:;
5531 : : }
5532 : : }
5533 : : break;
5534 : : }
5535 : : default:;
5536 : : }
5537 : : break;
5538 : : }
5539 : : default:;
5540 : : }
5541 : : break;
5542 : : }
5543 : 0 : case VEC_COND_EXPR:
5544 : 0 : {
5545 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
5546 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
5547 : 0 : tree _q22 = TREE_OPERAND (_p0, 2);
5548 : 0 : switch (TREE_CODE (_p1))
5549 : : {
5550 : 0 : case VEC_COND_EXPR:
5551 : 0 : {
5552 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
5553 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
5554 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
5555 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
5556 : : {
5557 : 0 : {
5558 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
5559 : 0 : if (VECTOR_TYPE_P (type)
5560 : 0 : && (TREE_CODE_CLASS (FLOOR_DIV_EXPR) != tcc_comparison
5561 : : || types_match (type, TREE_TYPE (captures[2]))
5562 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
5563 : : || (optimize_vectors_before_lowering_p ()
5564 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
5565 : : )
5566 : : {
5567 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1609;
5568 : 0 : {
5569 : 0 : tree res_op0;
5570 : 0 : res_op0 = captures[1];
5571 : 0 : tree res_op1;
5572 : 0 : {
5573 : 0 : tree _o1[2], _r1;
5574 : 0 : _o1[0] = captures[2];
5575 : 0 : _o1[1] = captures[5];
5576 : 0 : _r1 = fold_build2_loc (loc, FLOOR_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5577 : 0 : if (EXPR_P (_r1))
5578 : 0 : goto next_after_fail1609;
5579 : 0 : res_op1 = _r1;
5580 : : }
5581 : 0 : tree res_op2;
5582 : 0 : {
5583 : 0 : tree _o1[2], _r1;
5584 : 0 : _o1[0] = captures[3];
5585 : 0 : _o1[1] = captures[6];
5586 : 0 : _r1 = fold_build2_loc (loc, FLOOR_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5587 : 0 : if (EXPR_P (_r1))
5588 : 0 : goto next_after_fail1609;
5589 : 0 : res_op2 = _r1;
5590 : : }
5591 : 0 : tree _r;
5592 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
5593 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 898, __FILE__, __LINE__, true);
5594 : 0 : return _r;
5595 : : }
5596 : 0 : next_after_fail1609:;
5597 : : }
5598 : : }
5599 : : }
5600 : : break;
5601 : : }
5602 : 0 : default:;
5603 : : }
5604 : 0 : {
5605 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
5606 : 0 : if (VECTOR_TYPE_P (type)
5607 : 0 : && (TREE_CODE_CLASS (FLOOR_DIV_EXPR) != tcc_comparison
5608 : : || types_match (type, TREE_TYPE (captures[2]))
5609 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
5610 : : || (optimize_vectors_before_lowering_p ()
5611 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
5612 : : )
5613 : : {
5614 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1610;
5615 : 0 : {
5616 : 0 : if (! tree_invariant_p (captures[4])) goto next_after_fail1610;
5617 : 0 : tree res_op0;
5618 : 0 : res_op0 = captures[1];
5619 : 0 : tree res_op1;
5620 : 0 : {
5621 : 0 : tree _o1[2], _r1;
5622 : 0 : _o1[0] = captures[2];
5623 : 0 : _o1[1] = unshare_expr (captures[4]);
5624 : 0 : _r1 = fold_build2_loc (loc, FLOOR_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5625 : 0 : if (EXPR_P (_r1))
5626 : 0 : goto next_after_fail1610;
5627 : 0 : res_op1 = _r1;
5628 : : }
5629 : 0 : tree res_op2;
5630 : 0 : {
5631 : 0 : tree _o1[2], _r1;
5632 : 0 : _o1[0] = captures[3];
5633 : 0 : _o1[1] = captures[4];
5634 : 0 : _r1 = fold_build2_loc (loc, FLOOR_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5635 : 0 : if (EXPR_P (_r1))
5636 : 0 : goto next_after_fail1610;
5637 : 0 : res_op2 = _r1;
5638 : : }
5639 : 0 : tree _r;
5640 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
5641 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 899, __FILE__, __LINE__, true);
5642 : 0 : return _r;
5643 : : }
5644 : 0 : next_after_fail1610:;
5645 : : }
5646 : : }
5647 : 0 : break;
5648 : : }
5649 : 4479 : default:;
5650 : : }
5651 : 4479 : switch (TREE_CODE (_p1))
5652 : : {
5653 : 0 : case VEC_COND_EXPR:
5654 : 0 : {
5655 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
5656 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
5657 : 0 : tree _q32 = TREE_OPERAND (_p1, 2);
5658 : 0 : {
5659 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
5660 : 0 : if (VECTOR_TYPE_P (type)
5661 : 0 : && (TREE_CODE_CLASS (FLOOR_DIV_EXPR) != tcc_comparison
5662 : : || types_match (type, TREE_TYPE (captures[3]))
5663 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
5664 : : || (optimize_vectors_before_lowering_p ()
5665 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
5666 : : )
5667 : : {
5668 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1611;
5669 : 0 : {
5670 : 0 : if (! tree_invariant_p (captures[0])) goto next_after_fail1611;
5671 : 0 : tree res_op0;
5672 : 0 : res_op0 = captures[2];
5673 : 0 : tree res_op1;
5674 : 0 : {
5675 : 0 : tree _o1[2], _r1;
5676 : 0 : _o1[0] = unshare_expr (captures[0]);
5677 : 0 : _o1[1] = captures[3];
5678 : 0 : _r1 = fold_build2_loc (loc, FLOOR_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5679 : 0 : if (EXPR_P (_r1))
5680 : 0 : goto next_after_fail1611;
5681 : 0 : res_op1 = _r1;
5682 : : }
5683 : 0 : tree res_op2;
5684 : 0 : {
5685 : 0 : tree _o1[2], _r1;
5686 : 0 : _o1[0] = captures[0];
5687 : 0 : _o1[1] = captures[4];
5688 : 0 : _r1 = fold_build2_loc (loc, FLOOR_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5689 : 0 : if (EXPR_P (_r1))
5690 : 0 : goto next_after_fail1611;
5691 : 0 : res_op2 = _r1;
5692 : : }
5693 : 0 : tree _r;
5694 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
5695 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 900, __FILE__, __LINE__, true);
5696 : 0 : return _r;
5697 : : }
5698 : 0 : next_after_fail1611:;
5699 : : }
5700 : : }
5701 : 0 : break;
5702 : : }
5703 : : default:;
5704 : : }
5705 : : return NULL_TREE;
5706 : : }
5707 : :
5708 : : tree
5709 : 889558 : generic_simplify_FLOOR_MOD_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
5710 : : {
5711 : 889558 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
5712 : 889558 : {
5713 : 889558 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5714 : 889558 : tree res = generic_simplify_312 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR, TRUNC_MOD_EXPR);
5715 : 889558 : if (res) return res;
5716 : : }
5717 : 3555 : if (integer_zerop (_p0))
5718 : : {
5719 : 0 : {
5720 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5721 : 0 : tree res = generic_simplify_313 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
5722 : 0 : if (res) return res;
5723 : : }
5724 : : }
5725 : 3555 : if (integer_onep (_p1))
5726 : : {
5727 : 0 : {
5728 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5729 : 0 : tree res = generic_simplify_314 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
5730 : 0 : if (res) return res;
5731 : : }
5732 : : }
5733 : 3555 : if (integer_minus_onep (_p1))
5734 : : {
5735 : 0 : {
5736 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5737 : 0 : tree res = generic_simplify_315 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
5738 : 0 : if (res) return res;
5739 : : }
5740 : : }
5741 : 3555 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
5742 : : {
5743 : 0 : {
5744 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5745 : 0 : tree res = generic_simplify_316 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
5746 : 0 : if (res) return res;
5747 : : }
5748 : : }
5749 : 3555 : switch (TREE_CODE (_p0))
5750 : : {
5751 : 0 : case FLOOR_MOD_EXPR:
5752 : 0 : {
5753 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
5754 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
5755 : 0 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
5756 : : {
5757 : 0 : {
5758 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
5759 : 0 : tree res = generic_simplify_317 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
5760 : 0 : if (res) return res;
5761 : : }
5762 : : }
5763 : : break;
5764 : : }
5765 : 4 : case MULT_EXPR:
5766 : 4 : {
5767 : 4 : tree _q20 = TREE_OPERAND (_p0, 0);
5768 : 4 : tree _q21 = TREE_OPERAND (_p0, 1);
5769 : 4 : switch (TREE_CODE (_q21))
5770 : : {
5771 : 4 : case INTEGER_CST:
5772 : 4 : {
5773 : 4 : switch (TREE_CODE (_p1))
5774 : : {
5775 : 4 : case INTEGER_CST:
5776 : 4 : {
5777 : 4 : {
5778 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
5779 : 4 : tree res = generic_simplify_318 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
5780 : 4 : if (res) return res;
5781 : : }
5782 : 4 : break;
5783 : : }
5784 : : default:;
5785 : : }
5786 : : break;
5787 : : }
5788 : : default:;
5789 : : }
5790 : : break;
5791 : : }
5792 : 3555 : default:;
5793 : : }
5794 : 3555 : switch (TREE_CODE (_p1))
5795 : : {
5796 : 1 : CASE_CONVERT:
5797 : 1 : {
5798 : 1 : tree _q30 = TREE_OPERAND (_p1, 0);
5799 : 1 : {
5800 : 1 : tree _q30_pops[1];
5801 : 1 : if (tree_power_of_two_cand (_q30, _q30_pops))
5802 : : {
5803 : 0 : tree _q40 = _q30_pops[0];
5804 : 0 : {
5805 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q40 };
5806 : 0 : tree res = generic_simplify_319 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
5807 : 0 : if (res) return res;
5808 : : }
5809 : : }
5810 : : }
5811 : 1 : break;
5812 : : }
5813 : 3555 : default:;
5814 : : }
5815 : 3555 : {
5816 : 3555 : tree _p1_pops[1];
5817 : 3555 : if (tree_power_of_two_cand (_p1, _p1_pops))
5818 : : {
5819 : 1804 : tree _q30 = _p1_pops[0];
5820 : 1804 : {
5821 : 1804 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q30 };
5822 : 1804 : tree res = generic_simplify_319 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
5823 : 1804 : if (res) return res;
5824 : : }
5825 : : }
5826 : : }
5827 : 3515 : switch (TREE_CODE (_p0))
5828 : : {
5829 : 0 : case VEC_COND_EXPR:
5830 : 0 : {
5831 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
5832 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
5833 : 0 : tree _q22 = TREE_OPERAND (_p0, 2);
5834 : 0 : switch (TREE_CODE (_p1))
5835 : : {
5836 : 0 : case VEC_COND_EXPR:
5837 : 0 : {
5838 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
5839 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
5840 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
5841 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
5842 : : {
5843 : 0 : {
5844 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
5845 : 0 : if (VECTOR_TYPE_P (type)
5846 : 0 : && (TREE_CODE_CLASS (FLOOR_MOD_EXPR) != tcc_comparison
5847 : : || types_match (type, TREE_TYPE (captures[2]))
5848 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
5849 : : || (optimize_vectors_before_lowering_p ()
5850 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
5851 : : )
5852 : : {
5853 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1618;
5854 : 0 : {
5855 : 0 : tree res_op0;
5856 : 0 : res_op0 = captures[1];
5857 : 0 : tree res_op1;
5858 : 0 : {
5859 : 0 : tree _o1[2], _r1;
5860 : 0 : _o1[0] = captures[2];
5861 : 0 : _o1[1] = captures[5];
5862 : 0 : _r1 = fold_build2_loc (loc, FLOOR_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5863 : 0 : if (EXPR_P (_r1))
5864 : 0 : goto next_after_fail1618;
5865 : 0 : res_op1 = _r1;
5866 : : }
5867 : 0 : tree res_op2;
5868 : 0 : {
5869 : 0 : tree _o1[2], _r1;
5870 : 0 : _o1[0] = captures[3];
5871 : 0 : _o1[1] = captures[6];
5872 : 0 : _r1 = fold_build2_loc (loc, FLOOR_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5873 : 0 : if (EXPR_P (_r1))
5874 : 0 : goto next_after_fail1618;
5875 : 0 : res_op2 = _r1;
5876 : : }
5877 : 0 : tree _r;
5878 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
5879 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 898, __FILE__, __LINE__, true);
5880 : 0 : return _r;
5881 : : }
5882 : 0 : next_after_fail1618:;
5883 : : }
5884 : : }
5885 : : }
5886 : : break;
5887 : : }
5888 : 0 : default:;
5889 : : }
5890 : 0 : {
5891 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
5892 : 0 : if (VECTOR_TYPE_P (type)
5893 : 0 : && (TREE_CODE_CLASS (FLOOR_MOD_EXPR) != tcc_comparison
5894 : : || types_match (type, TREE_TYPE (captures[2]))
5895 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
5896 : : || (optimize_vectors_before_lowering_p ()
5897 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
5898 : : )
5899 : : {
5900 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1619;
5901 : 0 : {
5902 : 0 : if (! tree_invariant_p (captures[4])) goto next_after_fail1619;
5903 : 0 : tree res_op0;
5904 : 0 : res_op0 = captures[1];
5905 : 0 : tree res_op1;
5906 : 0 : {
5907 : 0 : tree _o1[2], _r1;
5908 : 0 : _o1[0] = captures[2];
5909 : 0 : _o1[1] = unshare_expr (captures[4]);
5910 : 0 : _r1 = fold_build2_loc (loc, FLOOR_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5911 : 0 : if (EXPR_P (_r1))
5912 : 0 : goto next_after_fail1619;
5913 : 0 : res_op1 = _r1;
5914 : : }
5915 : 0 : tree res_op2;
5916 : 0 : {
5917 : 0 : tree _o1[2], _r1;
5918 : 0 : _o1[0] = captures[3];
5919 : 0 : _o1[1] = captures[4];
5920 : 0 : _r1 = fold_build2_loc (loc, FLOOR_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5921 : 0 : if (EXPR_P (_r1))
5922 : 0 : goto next_after_fail1619;
5923 : 0 : res_op2 = _r1;
5924 : : }
5925 : 0 : tree _r;
5926 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
5927 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 899, __FILE__, __LINE__, true);
5928 : 0 : return _r;
5929 : : }
5930 : 0 : next_after_fail1619:;
5931 : : }
5932 : : }
5933 : 0 : break;
5934 : : }
5935 : 3515 : default:;
5936 : : }
5937 : 3515 : switch (TREE_CODE (_p1))
5938 : : {
5939 : 0 : case VEC_COND_EXPR:
5940 : 0 : {
5941 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
5942 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
5943 : 0 : tree _q32 = TREE_OPERAND (_p1, 2);
5944 : 0 : {
5945 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
5946 : 0 : if (VECTOR_TYPE_P (type)
5947 : 0 : && (TREE_CODE_CLASS (FLOOR_MOD_EXPR) != tcc_comparison
5948 : : || types_match (type, TREE_TYPE (captures[3]))
5949 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
5950 : : || (optimize_vectors_before_lowering_p ()
5951 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
5952 : : )
5953 : : {
5954 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1620;
5955 : 0 : {
5956 : 0 : if (! tree_invariant_p (captures[0])) goto next_after_fail1620;
5957 : 0 : tree res_op0;
5958 : 0 : res_op0 = captures[2];
5959 : 0 : tree res_op1;
5960 : 0 : {
5961 : 0 : tree _o1[2], _r1;
5962 : 0 : _o1[0] = unshare_expr (captures[0]);
5963 : 0 : _o1[1] = captures[3];
5964 : 0 : _r1 = fold_build2_loc (loc, FLOOR_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5965 : 0 : if (EXPR_P (_r1))
5966 : 0 : goto next_after_fail1620;
5967 : 0 : res_op1 = _r1;
5968 : : }
5969 : 0 : tree res_op2;
5970 : 0 : {
5971 : 0 : tree _o1[2], _r1;
5972 : 0 : _o1[0] = captures[0];
5973 : 0 : _o1[1] = captures[4];
5974 : 0 : _r1 = fold_build2_loc (loc, FLOOR_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5975 : 0 : if (EXPR_P (_r1))
5976 : 0 : goto next_after_fail1620;
5977 : 0 : res_op2 = _r1;
5978 : : }
5979 : 0 : tree _r;
5980 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
5981 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 900, __FILE__, __LINE__, true);
5982 : 0 : return _r;
5983 : : }
5984 : 0 : next_after_fail1620:;
5985 : : }
5986 : : }
5987 : 0 : break;
5988 : : }
5989 : : default:;
5990 : : }
5991 : : return NULL_TREE;
5992 : : }
5993 : :
5994 : : tree
5995 : 16216478 : generic_simplify_LT_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
5996 : : {
5997 : 16216478 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
5998 : 16216478 : switch (TREE_CODE (_p0))
5999 : : {
6000 : 2163 : case RDIV_EXPR:
6001 : 2163 : {
6002 : 2163 : tree _q20 = TREE_OPERAND (_p0, 0);
6003 : 2163 : tree _q21 = TREE_OPERAND (_p0, 1);
6004 : 2163 : switch (TREE_CODE (_q20))
6005 : : {
6006 : 677 : case REAL_CST:
6007 : 677 : {
6008 : 677 : if (real_zerop (_p1))
6009 : : {
6010 : 392 : {
6011 : 392 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
6012 : 392 : tree res = generic_simplify_331 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
6013 : 392 : if (res) return res;
6014 : : }
6015 : : }
6016 : : break;
6017 : : }
6018 : : default:;
6019 : : }
6020 : : break;
6021 : : }
6022 : 2911 : case TRUNC_MOD_EXPR:
6023 : 2911 : {
6024 : 2911 : tree _q20 = TREE_OPERAND (_p0, 0);
6025 : 2911 : tree _q21 = TREE_OPERAND (_p0, 1);
6026 : 2911 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6027 : : {
6028 : 69 : {
6029 : 69 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
6030 : 69 : tree res = generic_simplify_332 (loc, type, _p0, _p1, captures, LT_EXPR);
6031 : 69 : if (res) return res;
6032 : : }
6033 : : }
6034 : : break;
6035 : : }
6036 : 146699 : case MULT_EXPR:
6037 : 146699 : {
6038 : 146699 : tree _q20 = TREE_OPERAND (_p0, 0);
6039 : 146699 : tree _q21 = TREE_OPERAND (_p0, 1);
6040 : 146699 : switch (TREE_CODE (_p1))
6041 : : {
6042 : 52868 : case MULT_EXPR:
6043 : 52868 : {
6044 : 52868 : tree _q50 = TREE_OPERAND (_p1, 0);
6045 : 52868 : tree _q51 = TREE_OPERAND (_p1, 1);
6046 : 52868 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
6047 : : {
6048 : 10067 : {
6049 : 10067 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
6050 : 10067 : tree res = generic_simplify_333 (loc, type, _p0, _p1, captures, LT_EXPR);
6051 : 10067 : if (res) return res;
6052 : : }
6053 : : }
6054 : 44746 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
6055 : : {
6056 : 0 : {
6057 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
6058 : 0 : tree res = generic_simplify_333 (loc, type, _p0, _p1, captures, LT_EXPR);
6059 : 0 : if (res) return res;
6060 : : }
6061 : : }
6062 : 44746 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
6063 : : {
6064 : 0 : {
6065 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
6066 : 0 : tree res = generic_simplify_333 (loc, type, _p0, _p1, captures, LT_EXPR);
6067 : 0 : if (res) return res;
6068 : : }
6069 : : }
6070 : 44746 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
6071 : : {
6072 : 1405 : {
6073 : 1405 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
6074 : 1405 : tree res = generic_simplify_333 (loc, type, _p0, _p1, captures, LT_EXPR);
6075 : 1405 : if (res) return res;
6076 : : }
6077 : : }
6078 : : break;
6079 : : }
6080 : : default:;
6081 : : }
6082 : : break;
6083 : : }
6084 : 2666640 : CASE_CONVERT:
6085 : 2666640 : {
6086 : 2666640 : tree _q20 = TREE_OPERAND (_p0, 0);
6087 : 2666640 : switch (TREE_CODE (_q20))
6088 : : {
6089 : 116 : case EXACT_DIV_EXPR:
6090 : 116 : {
6091 : 116 : tree _q30 = TREE_OPERAND (_q20, 0);
6092 : 116 : tree _q31 = TREE_OPERAND (_q20, 1);
6093 : 116 : switch (TREE_CODE (_q31))
6094 : : {
6095 : 116 : case INTEGER_CST:
6096 : 116 : {
6097 : 116 : switch (TREE_CODE (_p1))
6098 : : {
6099 : 44 : CASE_CONVERT:
6100 : 44 : {
6101 : 44 : tree _q60 = TREE_OPERAND (_p1, 0);
6102 : 44 : switch (TREE_CODE (_q60))
6103 : : {
6104 : 0 : case EXACT_DIV_EXPR:
6105 : 0 : {
6106 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
6107 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
6108 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
6109 : : {
6110 : 0 : {
6111 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q31, _q70 };
6112 : 0 : tree res = generic_simplify_204 (loc, type, _p0, _p1, captures, LT_EXPR);
6113 : 0 : if (res) return res;
6114 : : }
6115 : : }
6116 : : break;
6117 : : }
6118 : : default:;
6119 : : }
6120 : : break;
6121 : : }
6122 : : default:;
6123 : : }
6124 : : break;
6125 : : }
6126 : : default:;
6127 : : }
6128 : : break;
6129 : : }
6130 : : default:;
6131 : : }
6132 : : break;
6133 : : }
6134 : 7914 : case EXACT_DIV_EXPR:
6135 : 7914 : {
6136 : 7914 : tree _q20 = TREE_OPERAND (_p0, 0);
6137 : 7914 : tree _q21 = TREE_OPERAND (_p0, 1);
6138 : 7914 : switch (TREE_CODE (_q21))
6139 : : {
6140 : 7914 : case INTEGER_CST:
6141 : 7914 : {
6142 : 7914 : switch (TREE_CODE (_p1))
6143 : : {
6144 : 2 : case EXACT_DIV_EXPR:
6145 : 2 : {
6146 : 2 : tree _q50 = TREE_OPERAND (_p1, 0);
6147 : 2 : tree _q51 = TREE_OPERAND (_p1, 1);
6148 : 2 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
6149 : : {
6150 : 0 : {
6151 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50 };
6152 : 0 : tree res = generic_simplify_204 (loc, type, _p0, _p1, captures, LT_EXPR);
6153 : 0 : if (res) return res;
6154 : : }
6155 : : }
6156 : : break;
6157 : : }
6158 : : default:;
6159 : : }
6160 : : break;
6161 : : }
6162 : : default:;
6163 : : }
6164 : : break;
6165 : : }
6166 : 12156 : case TRUNC_DIV_EXPR:
6167 : 12156 : {
6168 : 12156 : tree _q20 = TREE_OPERAND (_p0, 0);
6169 : 12156 : tree _q21 = TREE_OPERAND (_p0, 1);
6170 : 12156 : switch (TREE_CODE (_q21))
6171 : : {
6172 : 3477 : case INTEGER_CST:
6173 : 3477 : {
6174 : 3477 : switch (TREE_CODE (_p1))
6175 : : {
6176 : 1445 : case INTEGER_CST:
6177 : 1445 : {
6178 : 1445 : {
6179 : 1445 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
6180 : 1445 : tree res = generic_simplify_207 (loc, type, _p0, _p1, captures, LT_EXPR);
6181 : 1445 : if (res) return res;
6182 : : }
6183 : 689 : break;
6184 : : }
6185 : : default:;
6186 : : }
6187 : : break;
6188 : : }
6189 : : default:;
6190 : : }
6191 : : break;
6192 : : }
6193 : 2256988 : case PLUS_EXPR:
6194 : 2256988 : {
6195 : 2256988 : tree _q20 = TREE_OPERAND (_p0, 0);
6196 : 2256988 : tree _q21 = TREE_OPERAND (_p0, 1);
6197 : 2256988 : switch (TREE_CODE (_p1))
6198 : : {
6199 : 335911 : case PLUS_EXPR:
6200 : 335911 : {
6201 : 335911 : tree _q50 = TREE_OPERAND (_p1, 0);
6202 : 335911 : tree _q51 = TREE_OPERAND (_p1, 1);
6203 : 335911 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
6204 : : {
6205 : 131844 : {
6206 : 131844 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
6207 : 131844 : tree res = generic_simplify_334 (loc, type, _p0, _p1, captures, LT_EXPR);
6208 : 131844 : if (res) return res;
6209 : : }
6210 : : }
6211 : 279878 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
6212 : : {
6213 : 26 : {
6214 : 26 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
6215 : 26 : tree res = generic_simplify_334 (loc, type, _p0, _p1, captures, LT_EXPR);
6216 : 26 : if (res) return res;
6217 : : }
6218 : : }
6219 : 279862 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
6220 : : {
6221 : 29 : {
6222 : 29 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
6223 : 29 : tree res = generic_simplify_334 (loc, type, _p0, _p1, captures, LT_EXPR);
6224 : 29 : if (res) return res;
6225 : : }
6226 : : }
6227 : 279846 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
6228 : : {
6229 : 1716 : {
6230 : 1716 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
6231 : 1716 : tree res = generic_simplify_334 (loc, type, _p0, _p1, captures, LT_EXPR);
6232 : 1716 : if (res) return res;
6233 : : }
6234 : : }
6235 : : break;
6236 : : }
6237 : 2200573 : default:;
6238 : : }
6239 : 2200573 : switch (TREE_CODE (_q21))
6240 : : {
6241 : 1681455 : case INTEGER_CST:
6242 : 1681455 : {
6243 : 1681455 : switch (TREE_CODE (_p1))
6244 : : {
6245 : 274534 : case PLUS_EXPR:
6246 : 274534 : {
6247 : 274534 : tree _q50 = TREE_OPERAND (_p1, 0);
6248 : 274534 : tree _q51 = TREE_OPERAND (_p1, 1);
6249 : 274534 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
6250 : : {
6251 : 75811 : {
6252 : 75811 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
6253 : 75811 : tree res = generic_simplify_335 (loc, type, _p0, _p1, captures, LT_EXPR);
6254 : 75811 : if (res) return res;
6255 : : }
6256 : : }
6257 : : break;
6258 : : }
6259 : : default:;
6260 : : }
6261 : : break;
6262 : : }
6263 : 2200568 : default:;
6264 : : }
6265 : 2200568 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6266 : : {
6267 : 188156 : {
6268 : 188156 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
6269 : 188156 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, LT_EXPR);
6270 : 188156 : if (res) return res;
6271 : : }
6272 : : }
6273 : 2038484 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
6274 : : {
6275 : 55160 : {
6276 : 55160 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
6277 : 55160 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, LT_EXPR);
6278 : 55160 : if (res) return res;
6279 : : }
6280 : : }
6281 : : break;
6282 : : }
6283 : 180789 : case MINUS_EXPR:
6284 : 180789 : {
6285 : 180789 : tree _q20 = TREE_OPERAND (_p0, 0);
6286 : 180789 : tree _q21 = TREE_OPERAND (_p0, 1);
6287 : 180789 : switch (TREE_CODE (_p1))
6288 : : {
6289 : 4902 : case MINUS_EXPR:
6290 : 4902 : {
6291 : 4902 : tree _q50 = TREE_OPERAND (_p1, 0);
6292 : 4902 : tree _q51 = TREE_OPERAND (_p1, 1);
6293 : 4902 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
6294 : : {
6295 : 0 : {
6296 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
6297 : 0 : tree res = generic_simplify_337 (loc, type, _p0, _p1, captures, LT_EXPR);
6298 : 0 : if (res) return res;
6299 : : }
6300 : : }
6301 : 4902 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
6302 : : {
6303 : 201 : {
6304 : 201 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
6305 : 201 : tree res = generic_simplify_338 (loc, type, _p0, _p1, captures, LT_EXPR);
6306 : 201 : if (res) return res;
6307 : : }
6308 : : }
6309 : : break;
6310 : : }
6311 : : default:;
6312 : : }
6313 : : break;
6314 : : }
6315 : 100867 : case POINTER_DIFF_EXPR:
6316 : 100867 : {
6317 : 100867 : tree _q20 = TREE_OPERAND (_p0, 0);
6318 : 100867 : tree _q21 = TREE_OPERAND (_p0, 1);
6319 : 100867 : switch (TREE_CODE (_p1))
6320 : : {
6321 : 497 : case POINTER_DIFF_EXPR:
6322 : 497 : {
6323 : 497 : tree _q50 = TREE_OPERAND (_p1, 0);
6324 : 497 : tree _q51 = TREE_OPERAND (_p1, 1);
6325 : 497 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
6326 : : {
6327 : 0 : {
6328 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50 };
6329 : 0 : tree res = generic_simplify_211 (loc, type, _p0, _p1, captures, LT_EXPR);
6330 : 0 : if (res) return res;
6331 : : }
6332 : : }
6333 : 497 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
6334 : : {
6335 : 0 : {
6336 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q51 };
6337 : 0 : tree res = generic_simplify_212 (loc, type, _p0, _p1, captures, LT_EXPR);
6338 : 0 : if (res) return res;
6339 : : }
6340 : : }
6341 : : break;
6342 : : }
6343 : : default:;
6344 : : }
6345 : : break;
6346 : : }
6347 : 15988566 : default:;
6348 : : }
6349 : 15988566 : switch (TREE_CODE (_p1))
6350 : : {
6351 : 346122 : case PLUS_EXPR:
6352 : 346122 : {
6353 : 346122 : tree _q30 = TREE_OPERAND (_p1, 0);
6354 : 346122 : tree _q31 = TREE_OPERAND (_p1, 1);
6355 : 346122 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
6356 : : {
6357 : 120 : {
6358 : 120 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q30, _p0 };
6359 : 120 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, GT_EXPR);
6360 : 120 : if (res) return res;
6361 : : }
6362 : : }
6363 : 346002 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
6364 : : {
6365 : 80 : {
6366 : 80 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q31, _p0 };
6367 : 80 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, GT_EXPR);
6368 : 80 : if (res) return res;
6369 : : }
6370 : : }
6371 : : break;
6372 : : }
6373 : 22480 : case MINUS_EXPR:
6374 : 22480 : {
6375 : 22480 : tree _q30 = TREE_OPERAND (_p1, 0);
6376 : 22480 : tree _q31 = TREE_OPERAND (_p1, 1);
6377 : 22480 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
6378 : : {
6379 : 0 : {
6380 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q31 };
6381 : 0 : tree res = generic_simplify_210 (loc, type, _p0, _p1, captures, LT_EXPR);
6382 : 0 : if (res) return res;
6383 : : }
6384 : : }
6385 : : break;
6386 : : }
6387 : 15988446 : default:;
6388 : : }
6389 : 15988446 : switch (TREE_CODE (_p0))
6390 : : {
6391 : 180789 : case MINUS_EXPR:
6392 : 180789 : {
6393 : 180789 : tree _q20 = TREE_OPERAND (_p0, 0);
6394 : 180789 : tree _q21 = TREE_OPERAND (_p0, 1);
6395 : 180789 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
6396 : : {
6397 : 2883 : {
6398 : 2883 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p0, _q21 };
6399 : 2883 : tree res = generic_simplify_210 (loc, type, _p0, _p1, captures, GT_EXPR);
6400 : 2883 : if (res) return res;
6401 : : }
6402 : : }
6403 : : break;
6404 : : }
6405 : 1869 : case BIT_IOR_EXPR:
6406 : 1869 : {
6407 : 1869 : tree _q20 = TREE_OPERAND (_p0, 0);
6408 : 1869 : tree _q21 = TREE_OPERAND (_p0, 1);
6409 : 1869 : if (tree_expr_nonnegative_p (_q20))
6410 : : {
6411 : 587 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
6412 : : {
6413 : 0 : {
6414 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
6415 : 0 : tree res = generic_simplify_339 (loc, type, _p0, _p1, captures, LT_EXPR, BIT_IOR_EXPR);
6416 : 0 : if (res) return res;
6417 : : }
6418 : : }
6419 : : }
6420 : 1869 : if (tree_expr_nonnegative_p (_q21))
6421 : : {
6422 : 1211 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6423 : : {
6424 : 0 : {
6425 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
6426 : 0 : tree res = generic_simplify_339 (loc, type, _p0, _p1, captures, LT_EXPR, BIT_IOR_EXPR);
6427 : 0 : if (res) return res;
6428 : : }
6429 : : }
6430 : : }
6431 : : break;
6432 : : }
6433 : 15986022 : default:;
6434 : : }
6435 : 15986022 : switch (TREE_CODE (_p1))
6436 : : {
6437 : 420 : case BIT_AND_EXPR:
6438 : 420 : {
6439 : 420 : tree _q30 = TREE_OPERAND (_p1, 0);
6440 : 420 : tree _q31 = TREE_OPERAND (_p1, 1);
6441 : 420 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
6442 : : {
6443 : 0 : if (tree_expr_nonnegative_p (_q30))
6444 : : {
6445 : 0 : {
6446 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
6447 : 0 : tree res = generic_simplify_339 (loc, type, _p0, _p1, captures, GT_EXPR, BIT_AND_EXPR);
6448 : 0 : if (res) return res;
6449 : : }
6450 : : }
6451 : : }
6452 : 420 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
6453 : : {
6454 : 0 : if (tree_expr_nonnegative_p (_q31))
6455 : : {
6456 : 0 : {
6457 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
6458 : 0 : tree res = generic_simplify_339 (loc, type, _p0, _p1, captures, GT_EXPR, BIT_AND_EXPR);
6459 : 0 : if (res) return res;
6460 : : }
6461 : : }
6462 : : }
6463 : : break;
6464 : : }
6465 : 15986022 : default:;
6466 : : }
6467 : 15986022 : switch (TREE_CODE (_p0))
6468 : : {
6469 : 9857 : case MIN_EXPR:
6470 : 9857 : {
6471 : 9857 : tree _q20 = TREE_OPERAND (_p0, 0);
6472 : 9857 : tree _q21 = TREE_OPERAND (_p0, 1);
6473 : 9857 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
6474 : : {
6475 : 1 : {
6476 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
6477 : 1 : tree res = generic_simplify_220 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR, GT_EXPR);
6478 : 1 : if (res) return res;
6479 : : }
6480 : : }
6481 : 9856 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6482 : : {
6483 : 5 : {
6484 : 5 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
6485 : 5 : tree res = generic_simplify_220 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR, GT_EXPR);
6486 : 5 : if (res) return res;
6487 : : }
6488 : : }
6489 : 9854 : switch (TREE_CODE (_q21))
6490 : : {
6491 : 546 : case INTEGER_CST:
6492 : 546 : {
6493 : 546 : switch (TREE_CODE (_p1))
6494 : : {
6495 : 2 : case INTEGER_CST:
6496 : 2 : {
6497 : 2 : {
6498 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
6499 : 2 : tree res = generic_simplify_340 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR, BIT_IOR_EXPR);
6500 : 2 : if (res) return res;
6501 : : }
6502 : 0 : break;
6503 : : }
6504 : : default:;
6505 : : }
6506 : : break;
6507 : : }
6508 : : default:;
6509 : : }
6510 : : break;
6511 : : }
6512 : 15986017 : default:;
6513 : : }
6514 : 15986017 : switch (TREE_CODE (_p1))
6515 : : {
6516 : 646 : case MAX_EXPR:
6517 : 646 : {
6518 : 646 : tree _q30 = TREE_OPERAND (_p1, 0);
6519 : 646 : tree _q31 = TREE_OPERAND (_p1, 1);
6520 : 646 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
6521 : : {
6522 : 0 : {
6523 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
6524 : 0 : tree res = generic_simplify_220 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR, LT_EXPR);
6525 : 0 : if (res) return res;
6526 : : }
6527 : : }
6528 : 646 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
6529 : : {
6530 : 0 : {
6531 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
6532 : 0 : tree res = generic_simplify_220 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR, LT_EXPR);
6533 : 0 : if (res) return res;
6534 : : }
6535 : : }
6536 : : break;
6537 : : }
6538 : 910 : case MIN_EXPR:
6539 : 910 : {
6540 : 910 : tree _q30 = TREE_OPERAND (_p1, 0);
6541 : 910 : tree _q31 = TREE_OPERAND (_p1, 1);
6542 : 910 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
6543 : : {
6544 : 0 : {
6545 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
6546 : 0 : tree res = generic_simplify_341 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR);
6547 : 0 : if (res) return res;
6548 : : }
6549 : : }
6550 : 910 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
6551 : : {
6552 : 0 : {
6553 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
6554 : 0 : tree res = generic_simplify_341 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR);
6555 : 0 : if (res) return res;
6556 : : }
6557 : : }
6558 : : break;
6559 : : }
6560 : 15986017 : default:;
6561 : : }
6562 : 15986017 : switch (TREE_CODE (_p0))
6563 : : {
6564 : 5618 : case MAX_EXPR:
6565 : 5618 : {
6566 : 5618 : tree _q20 = TREE_OPERAND (_p0, 0);
6567 : 5618 : tree _q21 = TREE_OPERAND (_p0, 1);
6568 : 5618 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
6569 : : {
6570 : 1 : {
6571 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
6572 : 1 : tree res = generic_simplify_341 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR);
6573 : 1 : if (res) return res;
6574 : : }
6575 : : }
6576 : 5617 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6577 : : {
6578 : 1 : {
6579 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
6580 : 1 : tree res = generic_simplify_341 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR);
6581 : 1 : if (res) return res;
6582 : : }
6583 : : }
6584 : 5616 : switch (TREE_CODE (_q21))
6585 : : {
6586 : 5075 : case INTEGER_CST:
6587 : 5075 : {
6588 : 5075 : switch (TREE_CODE (_p1))
6589 : : {
6590 : 1 : case INTEGER_CST:
6591 : 1 : {
6592 : 1 : {
6593 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
6594 : 1 : tree res = generic_simplify_340 (loc, type, _p0, _p1, captures, MAX_EXPR, LT_EXPR, BIT_AND_EXPR);
6595 : 1 : if (res) return res;
6596 : : }
6597 : 0 : break;
6598 : : }
6599 : : default:;
6600 : : }
6601 : : break;
6602 : : }
6603 : : default:;
6604 : : }
6605 : : break;
6606 : : }
6607 : 904 : case VEC_COND_EXPR:
6608 : 904 : {
6609 : 904 : tree _q20 = TREE_OPERAND (_p0, 0);
6610 : 904 : tree _q21 = TREE_OPERAND (_p0, 1);
6611 : 904 : tree _q22 = TREE_OPERAND (_p0, 2);
6612 : 904 : switch (TREE_CODE (_p1))
6613 : : {
6614 : 0 : case VEC_COND_EXPR:
6615 : 0 : {
6616 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
6617 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
6618 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
6619 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
6620 : : {
6621 : 0 : {
6622 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
6623 : 0 : if (VECTOR_TYPE_P (type)
6624 : 0 : && (TREE_CODE_CLASS (LT_EXPR) != tcc_comparison
6625 : 0 : || types_match (type, TREE_TYPE (captures[2]))
6626 : 0 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
6627 : : || (optimize_vectors_before_lowering_p ()
6628 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
6629 : : )
6630 : : {
6631 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1659;
6632 : 0 : {
6633 : 0 : tree res_op0;
6634 : 0 : res_op0 = captures[1];
6635 : 0 : tree res_op1;
6636 : 0 : {
6637 : 0 : tree _o1[2], _r1;
6638 : 0 : _o1[0] = captures[2];
6639 : 0 : _o1[1] = captures[5];
6640 : 0 : _r1 = fold_build2_loc (loc, LT_EXPR, type, _o1[0], _o1[1]);
6641 : 0 : if (EXPR_P (_r1))
6642 : 0 : goto next_after_fail1659;
6643 : 0 : res_op1 = _r1;
6644 : : }
6645 : 0 : tree res_op2;
6646 : 0 : {
6647 : 0 : tree _o1[2], _r1;
6648 : 0 : _o1[0] = captures[3];
6649 : 0 : _o1[1] = captures[6];
6650 : 0 : _r1 = fold_build2_loc (loc, LT_EXPR, type, _o1[0], _o1[1]);
6651 : 0 : if (EXPR_P (_r1))
6652 : 0 : goto next_after_fail1659;
6653 : 0 : res_op2 = _r1;
6654 : : }
6655 : 0 : tree _r;
6656 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
6657 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 898, __FILE__, __LINE__, true);
6658 : 0 : return _r;
6659 : : }
6660 : 0 : next_after_fail1659:;
6661 : : }
6662 : : }
6663 : : }
6664 : : break;
6665 : : }
6666 : 904 : default:;
6667 : : }
6668 : 904 : {
6669 : 904 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
6670 : 904 : if (VECTOR_TYPE_P (type)
6671 : 904 : && (TREE_CODE_CLASS (LT_EXPR) != tcc_comparison
6672 : 904 : || types_match (type, TREE_TYPE (captures[2]))
6673 : 904 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
6674 : : || (optimize_vectors_before_lowering_p ()
6675 : 1 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
6676 : : )
6677 : : {
6678 : 904 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1660;
6679 : 904 : {
6680 : 904 : if (! tree_invariant_p (captures[4])) goto next_after_fail1660;
6681 : 36 : tree res_op0;
6682 : 36 : res_op0 = captures[1];
6683 : 36 : tree res_op1;
6684 : 36 : {
6685 : 36 : tree _o1[2], _r1;
6686 : 36 : _o1[0] = captures[2];
6687 : 36 : _o1[1] = unshare_expr (captures[4]);
6688 : 36 : _r1 = fold_build2_loc (loc, LT_EXPR, type, _o1[0], _o1[1]);
6689 : 36 : if (EXPR_P (_r1))
6690 : 35 : goto next_after_fail1660;
6691 : 1 : res_op1 = _r1;
6692 : : }
6693 : 1 : tree res_op2;
6694 : 1 : {
6695 : 1 : tree _o1[2], _r1;
6696 : 1 : _o1[0] = captures[3];
6697 : 1 : _o1[1] = captures[4];
6698 : 1 : _r1 = fold_build2_loc (loc, LT_EXPR, type, _o1[0], _o1[1]);
6699 : 1 : if (EXPR_P (_r1))
6700 : 0 : goto next_after_fail1660;
6701 : 1 : res_op2 = _r1;
6702 : : }
6703 : 1 : tree _r;
6704 : 1 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
6705 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 899, __FILE__, __LINE__, true);
6706 : 1 : return _r;
6707 : : }
6708 : 903 : next_after_fail1660:;
6709 : : }
6710 : : }
6711 : 903 : break;
6712 : : }
6713 : 15986013 : default:;
6714 : : }
6715 : 15986013 : switch (TREE_CODE (_p1))
6716 : : {
6717 : 58 : case VEC_COND_EXPR:
6718 : 58 : {
6719 : 58 : tree _q30 = TREE_OPERAND (_p1, 0);
6720 : 58 : tree _q31 = TREE_OPERAND (_p1, 1);
6721 : 58 : tree _q32 = TREE_OPERAND (_p1, 2);
6722 : 58 : {
6723 : 58 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
6724 : 58 : if (VECTOR_TYPE_P (type)
6725 : 58 : && (TREE_CODE_CLASS (LT_EXPR) != tcc_comparison
6726 : 58 : || types_match (type, TREE_TYPE (captures[3]))
6727 : 58 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
6728 : : || (optimize_vectors_before_lowering_p ()
6729 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
6730 : : )
6731 : : {
6732 : 58 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1661;
6733 : 58 : {
6734 : 58 : if (! tree_invariant_p (captures[0])) goto next_after_fail1661;
6735 : 0 : tree res_op0;
6736 : 0 : res_op0 = captures[2];
6737 : 0 : tree res_op1;
6738 : 0 : {
6739 : 0 : tree _o1[2], _r1;
6740 : 0 : _o1[0] = unshare_expr (captures[0]);
6741 : 0 : _o1[1] = captures[3];
6742 : 0 : _r1 = fold_build2_loc (loc, LT_EXPR, type, _o1[0], _o1[1]);
6743 : 0 : if (EXPR_P (_r1))
6744 : 0 : goto next_after_fail1661;
6745 : 0 : res_op1 = _r1;
6746 : : }
6747 : 0 : tree res_op2;
6748 : 0 : {
6749 : 0 : tree _o1[2], _r1;
6750 : 0 : _o1[0] = captures[0];
6751 : 0 : _o1[1] = captures[4];
6752 : 0 : _r1 = fold_build2_loc (loc, LT_EXPR, type, _o1[0], _o1[1]);
6753 : 0 : if (EXPR_P (_r1))
6754 : 0 : goto next_after_fail1661;
6755 : 0 : res_op2 = _r1;
6756 : : }
6757 : 0 : tree _r;
6758 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
6759 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 900, __FILE__, __LINE__, true);
6760 : 0 : return _r;
6761 : : }
6762 : 58 : next_after_fail1661:;
6763 : : }
6764 : : }
6765 : 58 : break;
6766 : : }
6767 : 15986013 : default:;
6768 : : }
6769 : 15986013 : if (uniform_integer_cst_p (_p1))
6770 : : {
6771 : 5487385 : {
6772 : 5487385 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
6773 : 5487385 : tree res = generic_simplify_342 (loc, type, _p0, _p1, captures, LT_EXPR, LE_EXPR);
6774 : 5487385 : if (res) return res;
6775 : : }
6776 : : }
6777 : 13715186 : switch (TREE_CODE (_p0))
6778 : : {
6779 : 130638 : case MULT_EXPR:
6780 : 130638 : {
6781 : 130638 : tree _q20 = TREE_OPERAND (_p0, 0);
6782 : 130638 : tree _q21 = TREE_OPERAND (_p0, 1);
6783 : 130638 : switch (TREE_CODE (_q21))
6784 : : {
6785 : 71335 : case INTEGER_CST:
6786 : 71335 : {
6787 : 71335 : if (integer_zerop (_p1))
6788 : : {
6789 : 5770 : {
6790 : 5770 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
6791 : 5770 : tree res = generic_simplify_240 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
6792 : 5770 : if (res) return res;
6793 : : }
6794 : : }
6795 : : break;
6796 : : }
6797 : : default:;
6798 : : }
6799 : : break;
6800 : : }
6801 : 13712228 : default:;
6802 : : }
6803 : 13712228 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
6804 : : {
6805 : 4167 : {
6806 : 4167 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
6807 : 4167 : tree res = generic_simplify_292 (loc, type, _p0, _p1, captures, LT_EXPR);
6808 : 4167 : if (res) return res;
6809 : : }
6810 : : }
6811 : 13708061 : switch (TREE_CODE (_p0))
6812 : : {
6813 : 2491 : case BIT_NOT_EXPR:
6814 : 2491 : {
6815 : 2491 : tree _q20 = TREE_OPERAND (_p0, 0);
6816 : 2491 : switch (TREE_CODE (_p1))
6817 : : {
6818 : 7 : case BIT_NOT_EXPR:
6819 : 7 : {
6820 : 7 : tree _q40 = TREE_OPERAND (_p1, 0);
6821 : 7 : {
6822 : 7 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _p1, _q40 };
6823 : 7 : tree res = generic_simplify_246 (loc, type, _p0, _p1, captures, LT_EXPR);
6824 : 7 : if (res) return res;
6825 : : }
6826 : 0 : break;
6827 : : }
6828 : 2484 : default:;
6829 : : }
6830 : 2484 : {
6831 : 2484 : tree _p1_pops[1];
6832 : 2484 : if (tree_nop_convert (_p1, _p1_pops))
6833 : : {
6834 : 24 : tree _q40 = _p1_pops[0];
6835 : 24 : switch (TREE_CODE (_q40))
6836 : : {
6837 : 0 : case BIT_NOT_EXPR:
6838 : 0 : {
6839 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
6840 : 0 : {
6841 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q40, _q50 };
6842 : 0 : tree res = generic_simplify_246 (loc, type, _p0, _p1, captures, LT_EXPR);
6843 : 0 : if (res) return res;
6844 : : }
6845 : 0 : break;
6846 : : }
6847 : : default:;
6848 : : }
6849 : : }
6850 : : }
6851 : 2484 : if (CONSTANT_CLASS_P (_p1))
6852 : : {
6853 : 23 : {
6854 : 23 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
6855 : 23 : tree res = generic_simplify_245 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
6856 : 23 : if (res) return res;
6857 : : }
6858 : : }
6859 : : break;
6860 : : }
6861 : 13708031 : default:;
6862 : : }
6863 : 13708031 : {
6864 : 13708031 : tree _p0_pops[1];
6865 : 13708031 : if (tree_nop_convert (_p0, _p0_pops))
6866 : : {
6867 : 1515912 : tree _q20 = _p0_pops[0];
6868 : 1515912 : switch (TREE_CODE (_q20))
6869 : : {
6870 : 0 : case BIT_NOT_EXPR:
6871 : 0 : {
6872 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
6873 : 0 : switch (TREE_CODE (_p1))
6874 : : {
6875 : 0 : case BIT_NOT_EXPR:
6876 : 0 : {
6877 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
6878 : 0 : {
6879 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _p1, _q50 };
6880 : 0 : tree res = generic_simplify_244 (loc, type, _p0, _p1, captures, LT_EXPR);
6881 : 0 : if (res) return res;
6882 : : }
6883 : 0 : break;
6884 : : }
6885 : 0 : default:;
6886 : : }
6887 : 0 : {
6888 : 0 : tree _p1_pops[1];
6889 : 0 : if (tree_nop_convert (_p1, _p1_pops))
6890 : : {
6891 : 0 : tree _q50 = _p1_pops[0];
6892 : 0 : switch (TREE_CODE (_q50))
6893 : : {
6894 : 0 : case BIT_NOT_EXPR:
6895 : 0 : {
6896 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
6897 : 0 : {
6898 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q50, _q60 };
6899 : 0 : tree res = generic_simplify_244 (loc, type, _p0, _p1, captures, LT_EXPR);
6900 : 0 : if (res) return res;
6901 : : }
6902 : 0 : break;
6903 : : }
6904 : : default:;
6905 : : }
6906 : : }
6907 : : }
6908 : 0 : if (CONSTANT_CLASS_P (_p1))
6909 : : {
6910 : 0 : {
6911 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
6912 : 0 : tree res = generic_simplify_245 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
6913 : 0 : if (res) return res;
6914 : : }
6915 : : }
6916 : : break;
6917 : : }
6918 : : default:;
6919 : : }
6920 : : }
6921 : : }
6922 : 13708031 : switch (TREE_CODE (_p1))
6923 : : {
6924 : 3068945 : case REAL_CST:
6925 : 3068945 : {
6926 : 3068945 : {
6927 : 3068945 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
6928 : 3068945 : tree res = generic_simplify_247 (loc, type, _p0, _p1, captures, LT_EXPR);
6929 : 3068945 : if (res) return res;
6930 : : }
6931 : 3068850 : break;
6932 : : }
6933 : 13707936 : default:;
6934 : : }
6935 : 13707936 : switch (TREE_CODE (_p0))
6936 : : {
6937 : 1922564 : case PLUS_EXPR:
6938 : 1922564 : {
6939 : 1922564 : tree _q20 = TREE_OPERAND (_p0, 0);
6940 : 1922564 : tree _q21 = TREE_OPERAND (_p0, 1);
6941 : 1922564 : switch (TREE_CODE (_q21))
6942 : : {
6943 : 569 : case REAL_CST:
6944 : 569 : {
6945 : 569 : switch (TREE_CODE (_p1))
6946 : : {
6947 : 223 : case REAL_CST:
6948 : 223 : {
6949 : 223 : {
6950 : 223 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
6951 : 223 : tree res = generic_simplify_248 (loc, type, _p0, _p1, captures, PLUS_EXPR, LT_EXPR);
6952 : 223 : if (res) return res;
6953 : : }
6954 : 221 : break;
6955 : : }
6956 : : default:;
6957 : : }
6958 : : break;
6959 : : }
6960 : 1411499 : case INTEGER_CST:
6961 : 1411499 : {
6962 : 1411499 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
6963 : : {
6964 : 17851 : {
6965 : 17851 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q20, _q21 };
6966 : 17851 : tree res = generic_simplify_343 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
6967 : 17851 : if (res) return res;
6968 : : }
6969 : : }
6970 : : break;
6971 : : }
6972 : : default:;
6973 : : }
6974 : : break;
6975 : : }
6976 : 172985 : case MINUS_EXPR:
6977 : 172985 : {
6978 : 172985 : tree _q20 = TREE_OPERAND (_p0, 0);
6979 : 172985 : tree _q21 = TREE_OPERAND (_p0, 1);
6980 : 172985 : switch (TREE_CODE (_q21))
6981 : : {
6982 : 210 : case REAL_CST:
6983 : 210 : {
6984 : 210 : switch (TREE_CODE (_p1))
6985 : : {
6986 : 195 : case REAL_CST:
6987 : 195 : {
6988 : 195 : {
6989 : 195 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
6990 : 195 : tree res = generic_simplify_248 (loc, type, _p0, _p1, captures, MINUS_EXPR, LT_EXPR);
6991 : 195 : if (res) return res;
6992 : : }
6993 : 195 : break;
6994 : : }
6995 : : default:;
6996 : : }
6997 : : break;
6998 : : }
6999 : 172985 : default:;
7000 : : }
7001 : 172985 : switch (TREE_CODE (_q20))
7002 : : {
7003 : 19956 : case REAL_CST:
7004 : 19956 : {
7005 : 19956 : switch (TREE_CODE (_p1))
7006 : : {
7007 : 19772 : case REAL_CST:
7008 : 19772 : {
7009 : 19772 : {
7010 : 19772 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7011 : 19772 : tree res = generic_simplify_249 (loc, type, _p0, _p1, captures, LT_EXPR);
7012 : 19772 : if (res) return res;
7013 : : }
7014 : 19762 : break;
7015 : : }
7016 : : default:;
7017 : : }
7018 : : break;
7019 : : }
7020 : : default:;
7021 : : }
7022 : : break;
7023 : : }
7024 : 51863 : case FLOAT_EXPR:
7025 : 51863 : {
7026 : 51863 : tree _q20 = TREE_OPERAND (_p0, 0);
7027 : 51863 : switch (TREE_CODE (_p1))
7028 : : {
7029 : 102 : case FLOAT_EXPR:
7030 : 102 : {
7031 : 102 : tree _q40 = TREE_OPERAND (_p1, 0);
7032 : 102 : {
7033 : 102 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
7034 : 102 : tree res = generic_simplify_252 (loc, type, _p0, _p1, captures, LT_EXPR, LT_EXPR);
7035 : 102 : if (res) return res;
7036 : : }
7037 : 71 : break;
7038 : : }
7039 : 659 : case REAL_CST:
7040 : 659 : {
7041 : 659 : {
7042 : 659 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
7043 : 659 : tree res = generic_simplify_253 (loc, type, _p0, _p1, captures, LT_EXPR, LE_EXPR);
7044 : 659 : if (res) return res;
7045 : : }
7046 : 555 : break;
7047 : : }
7048 : : default:;
7049 : : }
7050 : : break;
7051 : : }
7052 : 7556 : case EXACT_DIV_EXPR:
7053 : 7556 : {
7054 : 7556 : tree _q20 = TREE_OPERAND (_p0, 0);
7055 : 7556 : tree _q21 = TREE_OPERAND (_p0, 1);
7056 : 7556 : switch (TREE_CODE (_q21))
7057 : : {
7058 : 7556 : case INTEGER_CST:
7059 : 7556 : {
7060 : 7556 : switch (TREE_CODE (_p1))
7061 : : {
7062 : 19 : case INTEGER_CST:
7063 : 19 : {
7064 : 19 : {
7065 : 19 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7066 : 19 : tree res = generic_simplify_344 (loc, type, _p0, _p1, captures, LT_EXPR);
7067 : 19 : if (res) return res;
7068 : : }
7069 : 0 : break;
7070 : : }
7071 : : default:;
7072 : : }
7073 : : break;
7074 : : }
7075 : : default:;
7076 : : }
7077 : : break;
7078 : : }
7079 : 2269244 : CASE_CONVERT:
7080 : 2269244 : {
7081 : 2269244 : tree _q20 = TREE_OPERAND (_p0, 0);
7082 : 2269244 : switch (TREE_CODE (_q20))
7083 : : {
7084 : 116 : case EXACT_DIV_EXPR:
7085 : 116 : {
7086 : 116 : tree _q30 = TREE_OPERAND (_q20, 0);
7087 : 116 : tree _q31 = TREE_OPERAND (_q20, 1);
7088 : 116 : switch (TREE_CODE (_q31))
7089 : : {
7090 : 116 : case INTEGER_CST:
7091 : 116 : {
7092 : 116 : switch (TREE_CODE (_p1))
7093 : : {
7094 : 0 : case INTEGER_CST:
7095 : 0 : {
7096 : 0 : {
7097 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
7098 : 0 : tree res = generic_simplify_345 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR);
7099 : 0 : if (res) return res;
7100 : : }
7101 : 0 : break;
7102 : : }
7103 : : default:;
7104 : : }
7105 : : break;
7106 : : }
7107 : : default:;
7108 : : }
7109 : : break;
7110 : : }
7111 : 2269244 : default:;
7112 : : }
7113 : 2269244 : switch (TREE_CODE (_p1))
7114 : : {
7115 : 1274498 : CASE_CONVERT:
7116 : 1274498 : {
7117 : 1274498 : tree _q40 = TREE_OPERAND (_p1, 0);
7118 : 1274498 : {
7119 : 1274498 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
7120 : 1274498 : tree res = generic_simplify_257 (loc, type, _p0, _p1, captures, LT_EXPR);
7121 : 1274498 : if (res) return res;
7122 : : }
7123 : 1027600 : break;
7124 : : }
7125 : 2022346 : default:;
7126 : : }
7127 : 2022346 : {
7128 : 2022346 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
7129 : 2022346 : tree res = generic_simplify_258 (loc, type, _p0, _p1, captures, LT_EXPR);
7130 : 2022346 : if (res) return res;
7131 : : }
7132 : 1744209 : switch (TREE_CODE (_q20))
7133 : : {
7134 : 2368 : case ADDR_EXPR:
7135 : 2368 : {
7136 : 2368 : switch (TREE_CODE (_p1))
7137 : : {
7138 : 1870 : CASE_CONVERT:
7139 : 1870 : {
7140 : 1870 : tree _q40 = TREE_OPERAND (_p1, 0);
7141 : 1870 : switch (TREE_CODE (_q40))
7142 : : {
7143 : 1870 : case ADDR_EXPR:
7144 : 1870 : {
7145 : 1870 : {
7146 : 1870 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
7147 : 1870 : tree res = generic_simplify_275 (loc, type, _p0, _p1, captures, LT_EXPR);
7148 : 1870 : if (res) return res;
7149 : : }
7150 : 300 : break;
7151 : : }
7152 : : default:;
7153 : : }
7154 : : break;
7155 : : }
7156 : 468 : case ADDR_EXPR:
7157 : 468 : {
7158 : 468 : {
7159 : 468 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
7160 : 468 : tree res = generic_simplify_275 (loc, type, _p0, _p1, captures, LT_EXPR);
7161 : 468 : if (res) return res;
7162 : : }
7163 : 0 : break;
7164 : : }
7165 : : default:;
7166 : : }
7167 : : break;
7168 : : }
7169 : 1742171 : default:;
7170 : : }
7171 : 1742171 : if (uniform_integer_cst_p (_p1))
7172 : : {
7173 : 183925 : {
7174 : 183925 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
7175 : 183925 : tree res = generic_simplify_346 (loc, type, _p0, _p1, captures, LT_EXPR);
7176 : 183925 : if (res) return res;
7177 : : }
7178 : : }
7179 : : break;
7180 : : }
7181 : 1584 : case NEGATE_EXPR:
7182 : 1584 : {
7183 : 1584 : tree _q20 = TREE_OPERAND (_p0, 0);
7184 : 1584 : switch (TREE_CODE (_p1))
7185 : : {
7186 : 0 : case NEGATE_EXPR:
7187 : 0 : {
7188 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
7189 : 0 : {
7190 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
7191 : 0 : tree res = generic_simplify_255 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
7192 : 0 : if (res) return res;
7193 : : }
7194 : 0 : break;
7195 : : }
7196 : 1584 : default:;
7197 : : }
7198 : 1584 : if (CONSTANT_CLASS_P (_p1))
7199 : : {
7200 : 302 : {
7201 : 302 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
7202 : 302 : tree res = generic_simplify_256 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
7203 : 302 : if (res) return res;
7204 : : }
7205 : : }
7206 : : break;
7207 : : }
7208 : 25673 : case ADDR_EXPR:
7209 : 25673 : {
7210 : 25673 : switch (TREE_CODE (_p1))
7211 : : {
7212 : 0 : CASE_CONVERT:
7213 : 0 : {
7214 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
7215 : 0 : switch (TREE_CODE (_q30))
7216 : : {
7217 : 0 : case ADDR_EXPR:
7218 : 0 : {
7219 : 0 : {
7220 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q30 };
7221 : 0 : tree res = generic_simplify_276 (loc, type, _p0, _p1, captures, LT_EXPR);
7222 : 0 : if (res) return res;
7223 : : }
7224 : 0 : break;
7225 : : }
7226 : : default:;
7227 : : }
7228 : : break;
7229 : : }
7230 : 25254 : case ADDR_EXPR:
7231 : 25254 : {
7232 : 25254 : {
7233 : 25254 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _p1 };
7234 : 25254 : tree res = generic_simplify_276 (loc, type, _p0, _p1, captures, LT_EXPR);
7235 : 25254 : if (res) return res;
7236 : : }
7237 : 362 : break;
7238 : : }
7239 : : default:;
7240 : : }
7241 : : break;
7242 : : }
7243 : 1576866 : case CALL_EXPR:
7244 : 1576866 : switch (get_call_combined_fn (_p0))
7245 : : {
7246 : 5 : case CFN_BUILT_IN_SQRTF:
7247 : 5 : if (call_expr_nargs (_p0) == 1)
7248 : : {
7249 : 5 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
7250 : 5 : switch (TREE_CODE (_p1))
7251 : : {
7252 : 5 : case REAL_CST:
7253 : 5 : {
7254 : 5 : {
7255 : 5 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
7256 : 5 : tree res = generic_simplify_250 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTF, LT_EXPR);
7257 : 5 : if (res) return res;
7258 : : }
7259 : 0 : break;
7260 : : }
7261 : 0 : case CALL_EXPR:
7262 : 0 : switch (get_call_combined_fn (_p1))
7263 : : {
7264 : 0 : case CFN_BUILT_IN_SQRTF:
7265 : 0 : if (call_expr_nargs (_p1) == 1)
7266 : : {
7267 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
7268 : 0 : {
7269 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
7270 : 0 : tree res = generic_simplify_251 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTF, LT_EXPR);
7271 : 0 : if (res) return res;
7272 : : }
7273 : : }
7274 : : break;
7275 : : default:;
7276 : : }
7277 : : break;
7278 : : default:;
7279 : : }
7280 : : }
7281 : : break;
7282 : 0 : case CFN_BUILT_IN_SQRTL:
7283 : 0 : if (call_expr_nargs (_p0) == 1)
7284 : : {
7285 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
7286 : 0 : switch (TREE_CODE (_p1))
7287 : : {
7288 : 0 : case REAL_CST:
7289 : 0 : {
7290 : 0 : {
7291 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
7292 : 0 : tree res = generic_simplify_250 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTL, LT_EXPR);
7293 : 0 : if (res) return res;
7294 : : }
7295 : 0 : break;
7296 : : }
7297 : 0 : case CALL_EXPR:
7298 : 0 : switch (get_call_combined_fn (_p1))
7299 : : {
7300 : 0 : case CFN_BUILT_IN_SQRTL:
7301 : 0 : if (call_expr_nargs (_p1) == 1)
7302 : : {
7303 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
7304 : 0 : {
7305 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
7306 : 0 : tree res = generic_simplify_251 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTL, LT_EXPR);
7307 : 0 : if (res) return res;
7308 : : }
7309 : : }
7310 : : break;
7311 : : default:;
7312 : : }
7313 : : break;
7314 : : default:;
7315 : : }
7316 : : }
7317 : : break;
7318 : 4 : case CFN_BUILT_IN_SQRT:
7319 : 4 : if (call_expr_nargs (_p0) == 1)
7320 : : {
7321 : 4 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
7322 : 4 : switch (TREE_CODE (_p1))
7323 : : {
7324 : 4 : case REAL_CST:
7325 : 4 : {
7326 : 4 : {
7327 : 4 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
7328 : 4 : tree res = generic_simplify_250 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRT, LT_EXPR);
7329 : 4 : if (res) return res;
7330 : : }
7331 : 1 : break;
7332 : : }
7333 : 0 : case CALL_EXPR:
7334 : 0 : switch (get_call_combined_fn (_p1))
7335 : : {
7336 : 0 : case CFN_BUILT_IN_SQRT:
7337 : 0 : if (call_expr_nargs (_p1) == 1)
7338 : : {
7339 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
7340 : 0 : {
7341 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
7342 : 0 : tree res = generic_simplify_251 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRT, LT_EXPR);
7343 : 0 : if (res) return res;
7344 : : }
7345 : : }
7346 : : break;
7347 : : default:;
7348 : : }
7349 : : break;
7350 : : default:;
7351 : : }
7352 : : }
7353 : : break;
7354 : 0 : case CFN_SQRT:
7355 : 0 : if (call_expr_nargs (_p0) == 1)
7356 : : {
7357 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
7358 : 0 : switch (TREE_CODE (_p1))
7359 : : {
7360 : 0 : case REAL_CST:
7361 : 0 : {
7362 : 0 : {
7363 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
7364 : 0 : tree res = generic_simplify_250 (loc, type, _p0, _p1, captures, CFN_SQRT, LT_EXPR);
7365 : 0 : if (res) return res;
7366 : : }
7367 : 0 : break;
7368 : : }
7369 : 0 : case CALL_EXPR:
7370 : 0 : switch (get_call_combined_fn (_p1))
7371 : : {
7372 : 0 : case CFN_SQRT:
7373 : 0 : if (call_expr_nargs (_p1) == 1)
7374 : : {
7375 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
7376 : 0 : {
7377 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
7378 : 0 : tree res = generic_simplify_251 (loc, type, _p0, _p1, captures, CFN_SQRT, LT_EXPR);
7379 : 0 : if (res) return res;
7380 : : }
7381 : : }
7382 : : break;
7383 : : default:;
7384 : : }
7385 : : break;
7386 : : default:;
7387 : : }
7388 : : }
7389 : : break;
7390 : : default:;
7391 : : }
7392 : : break;
7393 : 13135269 : default:;
7394 : : }
7395 : 13135269 : switch (TREE_CODE (_p1))
7396 : : {
7397 : 1559848 : CASE_CONVERT:
7398 : 1559848 : {
7399 : 1559848 : tree _q30 = TREE_OPERAND (_p1, 0);
7400 : 1559848 : switch (TREE_CODE (_q30))
7401 : : {
7402 : 0 : case NE_EXPR:
7403 : 0 : {
7404 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
7405 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
7406 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
7407 : : {
7408 : 0 : if (integer_zerop (_q41))
7409 : : {
7410 : 0 : {
7411 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
7412 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0]))
7413 : : )
7414 : : {
7415 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1662;
7416 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1662;
7417 : 0 : {
7418 : 0 : tree _r;
7419 : 0 : _r = constant_boolean_node (false, type);
7420 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1006, __FILE__, __LINE__, true);
7421 : 0 : return _r;
7422 : : }
7423 : : next_after_fail1662:;
7424 : : }
7425 : : }
7426 : : }
7427 : : }
7428 : : break;
7429 : : }
7430 : : default:;
7431 : : }
7432 : : break;
7433 : : }
7434 : 13135269 : default:;
7435 : : }
7436 : 13135269 : if (uniform_integer_cst_p (_p1))
7437 : : {
7438 : 2933221 : {
7439 : 2933221 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _p1 };
7440 : 2933221 : tree res = generic_simplify_347 (loc, type, _p0, _p1, captures, LT_EXPR);
7441 : 2933221 : if (res) return res;
7442 : : }
7443 : : }
7444 : 12711235 : switch (TREE_CODE (_p0))
7445 : : {
7446 : 1738968 : CASE_CONVERT:
7447 : 1738968 : {
7448 : 1738968 : tree _q20 = TREE_OPERAND (_p0, 0);
7449 : 1738968 : switch (TREE_CODE (_q20))
7450 : : {
7451 : 92221 : case PLUS_EXPR:
7452 : 92221 : {
7453 : 92221 : tree _q30 = TREE_OPERAND (_q20, 0);
7454 : 92221 : tree _q31 = TREE_OPERAND (_q20, 1);
7455 : 92221 : switch (TREE_CODE (_q30))
7456 : : {
7457 : 64021 : CASE_CONVERT:
7458 : 64021 : {
7459 : 64021 : tree _q40 = TREE_OPERAND (_q30, 0);
7460 : 64021 : switch (TREE_CODE (_q31))
7461 : : {
7462 : 63976 : case INTEGER_CST:
7463 : 63976 : {
7464 : 63976 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
7465 : : {
7466 : 27 : {
7467 : 27 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q40, _q31 };
7468 : 27 : tree res = generic_simplify_348 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
7469 : 27 : if (res) return res;
7470 : : }
7471 : : }
7472 : : break;
7473 : : }
7474 : : default:;
7475 : : }
7476 : : break;
7477 : : }
7478 : : default:;
7479 : : }
7480 : : break;
7481 : : }
7482 : : default:;
7483 : : }
7484 : : break;
7485 : : }
7486 : 12711208 : default:;
7487 : : }
7488 : 12711208 : switch (TREE_CODE (_p1))
7489 : : {
7490 : 1559848 : CASE_CONVERT:
7491 : 1559848 : {
7492 : 1559848 : tree _q30 = TREE_OPERAND (_p1, 0);
7493 : 1559848 : switch (TREE_CODE (_q30))
7494 : : {
7495 : 21591 : case PLUS_EXPR:
7496 : 21591 : {
7497 : 21591 : tree _q40 = TREE_OPERAND (_q30, 0);
7498 : 21591 : tree _q41 = TREE_OPERAND (_q30, 1);
7499 : 21591 : switch (TREE_CODE (_q40))
7500 : : {
7501 : 20247 : CASE_CONVERT:
7502 : 20247 : {
7503 : 20247 : tree _q50 = TREE_OPERAND (_q40, 0);
7504 : 20247 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
7505 : : {
7506 : 0 : switch (TREE_CODE (_q41))
7507 : : {
7508 : 0 : case INTEGER_CST:
7509 : 0 : {
7510 : 0 : {
7511 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q30, _q40, _p0, _q41 };
7512 : 0 : tree res = generic_simplify_348 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
7513 : 0 : if (res) return res;
7514 : : }
7515 : 0 : break;
7516 : : }
7517 : : default:;
7518 : : }
7519 : : }
7520 : : break;
7521 : : }
7522 : : default:;
7523 : : }
7524 : : break;
7525 : : }
7526 : : default:;
7527 : : }
7528 : : break;
7529 : : }
7530 : 346002 : case PLUS_EXPR:
7531 : 346002 : {
7532 : 346002 : tree _q30 = TREE_OPERAND (_p1, 0);
7533 : 346002 : tree _q31 = TREE_OPERAND (_p1, 1);
7534 : 346002 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
7535 : : {
7536 : 80 : switch (TREE_CODE (_q31))
7537 : : {
7538 : 64 : case INTEGER_CST:
7539 : 64 : {
7540 : 64 : {
7541 : 64 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _p1, _q30, _p0, _q31 };
7542 : 64 : tree res = generic_simplify_343 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
7543 : 64 : if (res) return res;
7544 : : }
7545 : 0 : break;
7546 : : }
7547 : : default:;
7548 : : }
7549 : : }
7550 : : break;
7551 : : }
7552 : 22480 : case MINUS_EXPR:
7553 : 22480 : {
7554 : 22480 : tree _q30 = TREE_OPERAND (_p1, 0);
7555 : 22480 : tree _q31 = TREE_OPERAND (_p1, 1);
7556 : 22480 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
7557 : : {
7558 : 0 : {
7559 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _p0, _q31 };
7560 : 0 : tree res = generic_simplify_349 (loc, type, _p0, _p1, captures, GT_EXPR);
7561 : 0 : if (res) return res;
7562 : : }
7563 : : }
7564 : : break;
7565 : : }
7566 : 12711144 : default:;
7567 : : }
7568 : 12711144 : switch (TREE_CODE (_p0))
7569 : : {
7570 : 1888494 : case PLUS_EXPR:
7571 : 1888494 : {
7572 : 1888494 : tree _q20 = TREE_OPERAND (_p0, 0);
7573 : 1888494 : tree _q21 = TREE_OPERAND (_p0, 1);
7574 : 1888494 : switch (TREE_CODE (_q20))
7575 : : {
7576 : 1350 : case MINUS_EXPR:
7577 : 1350 : {
7578 : 1350 : tree _q30 = TREE_OPERAND (_q20, 0);
7579 : 1350 : tree _q31 = TREE_OPERAND (_q20, 1);
7580 : 1350 : if (integer_minus_onep (_q21))
7581 : : {
7582 : 49 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
7583 : : {
7584 : 1 : {
7585 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
7586 : 1 : tree res = generic_simplify_350 (loc, type, _p0, _p1, captures, LT_EXPR);
7587 : 1 : if (res) return res;
7588 : : }
7589 : : }
7590 : : }
7591 : : break;
7592 : : }
7593 : : default:;
7594 : : }
7595 : : break;
7596 : : }
7597 : 12711143 : default:;
7598 : : }
7599 : 12711143 : switch (TREE_CODE (_p1))
7600 : : {
7601 : 0 : case REALPART_EXPR:
7602 : 0 : {
7603 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
7604 : 0 : switch (TREE_CODE (_q30))
7605 : : {
7606 : 0 : case CALL_EXPR:
7607 : 0 : switch (get_call_combined_fn (_q30))
7608 : : {
7609 : 0 : case CFN_SUB_OVERFLOW:
7610 : 0 : if (call_expr_nargs (_q30) == 2)
7611 : : {
7612 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
7613 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
7614 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
7615 : : {
7616 : 0 : {
7617 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _p0, _q41 };
7618 : 0 : tree res = generic_simplify_351 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
7619 : 0 : if (res) return res;
7620 : : }
7621 : : }
7622 : : }
7623 : : break;
7624 : : default:;
7625 : : }
7626 : : break;
7627 : : default:;
7628 : : }
7629 : : break;
7630 : : }
7631 : 12711143 : default:;
7632 : : }
7633 : 12711143 : switch (TREE_CODE (_p0))
7634 : : {
7635 : 20 : case REALPART_EXPR:
7636 : 20 : {
7637 : 20 : tree _q20 = TREE_OPERAND (_p0, 0);
7638 : 20 : switch (TREE_CODE (_q20))
7639 : : {
7640 : 0 : case CALL_EXPR:
7641 : 0 : switch (get_call_combined_fn (_q20))
7642 : : {
7643 : 0 : case CFN_ADD_OVERFLOW:
7644 : 0 : if (call_expr_nargs (_q20) == 2)
7645 : : {
7646 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
7647 : 0 : tree _q31 = CALL_EXPR_ARG (_q20, 1);
7648 : 0 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
7649 : : {
7650 : 0 : {
7651 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
7652 : 0 : tree res = generic_simplify_352 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
7653 : 0 : if (res) return res;
7654 : : }
7655 : : }
7656 : 0 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
7657 : : {
7658 : 0 : {
7659 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q31, _q30 };
7660 : 0 : tree res = generic_simplify_352 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
7661 : 0 : if (res) return res;
7662 : : }
7663 : : }
7664 : : }
7665 : : break;
7666 : : default:;
7667 : : }
7668 : : break;
7669 : : default:;
7670 : : }
7671 : : break;
7672 : : }
7673 : 7088 : case TRUNC_DIV_EXPR:
7674 : 7088 : {
7675 : 7088 : tree _q20 = TREE_OPERAND (_p0, 0);
7676 : 7088 : tree _q21 = TREE_OPERAND (_p0, 1);
7677 : 7088 : if (integer_all_onesp (_q20))
7678 : : {
7679 : 1018 : {
7680 : 1018 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _p1 };
7681 : 1018 : tree res = generic_simplify_353 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
7682 : 1018 : if (res) return res;
7683 : : }
7684 : : }
7685 : : break;
7686 : : }
7687 : 122959 : case MULT_EXPR:
7688 : 122959 : {
7689 : 122959 : tree _q20 = TREE_OPERAND (_p0, 0);
7690 : 122959 : tree _q21 = TREE_OPERAND (_p0, 1);
7691 : 122959 : switch (TREE_CODE (_q21))
7692 : : {
7693 : 12176 : case REAL_CST:
7694 : 12176 : {
7695 : 12176 : switch (TREE_CODE (_p1))
7696 : : {
7697 : 455 : case REAL_CST:
7698 : 455 : {
7699 : 455 : {
7700 : 455 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7701 : 455 : tree res = generic_simplify_354 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
7702 : 455 : if (res) return res;
7703 : : }
7704 : 455 : break;
7705 : : }
7706 : : default:;
7707 : : }
7708 : : break;
7709 : : }
7710 : : default:;
7711 : : }
7712 : : break;
7713 : : }
7714 : 1888493 : case PLUS_EXPR:
7715 : 1888493 : {
7716 : 1888493 : tree _q20 = TREE_OPERAND (_p0, 0);
7717 : 1888493 : tree _q21 = TREE_OPERAND (_p0, 1);
7718 : 1888493 : switch (TREE_CODE (_q21))
7719 : : {
7720 : 1392290 : case INTEGER_CST:
7721 : 1392290 : {
7722 : 1392290 : switch (TREE_CODE (_p1))
7723 : : {
7724 : 215546 : case INTEGER_CST:
7725 : 215546 : {
7726 : 215546 : {
7727 : 215546 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
7728 : 215546 : tree res = generic_simplify_355 (loc, type, _p0, _p1, captures, PLUS_EXPR, MINUS_EXPR, LT_EXPR, GT_EXPR);
7729 : 215546 : if (res) return res;
7730 : : }
7731 : 15830 : break;
7732 : : }
7733 : : default:;
7734 : : }
7735 : : break;
7736 : : }
7737 : : default:;
7738 : : }
7739 : : break;
7740 : : }
7741 : 172831 : case MINUS_EXPR:
7742 : 172831 : {
7743 : 172831 : tree _q20 = TREE_OPERAND (_p0, 0);
7744 : 172831 : tree _q21 = TREE_OPERAND (_p0, 1);
7745 : 172831 : switch (TREE_CODE (_q21))
7746 : : {
7747 : 0 : case INTEGER_CST:
7748 : 0 : {
7749 : 0 : switch (TREE_CODE (_p1))
7750 : : {
7751 : 0 : case INTEGER_CST:
7752 : 0 : {
7753 : 0 : {
7754 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
7755 : 0 : tree res = generic_simplify_355 (loc, type, _p0, _p1, captures, MINUS_EXPR, PLUS_EXPR, LT_EXPR, GT_EXPR);
7756 : 0 : if (res) return res;
7757 : : }
7758 : 0 : break;
7759 : : }
7760 : : default:;
7761 : : }
7762 : : break;
7763 : : }
7764 : 172831 : default:;
7765 : : }
7766 : 172831 : switch (TREE_CODE (_q20))
7767 : : {
7768 : 37995 : case INTEGER_CST:
7769 : 37995 : {
7770 : 37995 : switch (TREE_CODE (_p1))
7771 : : {
7772 : 1561 : case INTEGER_CST:
7773 : 1561 : {
7774 : 1561 : {
7775 : 1561 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7776 : 1561 : tree res = generic_simplify_282 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
7777 : 1561 : if (res) return res;
7778 : : }
7779 : 0 : break;
7780 : : }
7781 : : default:;
7782 : : }
7783 : : break;
7784 : : }
7785 : : default:;
7786 : : }
7787 : : break;
7788 : : }
7789 : 1576840 : case CALL_EXPR:
7790 : 1576840 : switch (get_call_combined_fn (_p0))
7791 : : {
7792 : 3 : case CFN_BUILT_IN_CTZ:
7793 : 3 : if (call_expr_nargs (_p0) == 1)
7794 : : {
7795 : 3 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
7796 : 3 : switch (TREE_CODE (_p1))
7797 : : {
7798 : 3 : case INTEGER_CST:
7799 : 3 : {
7800 : 3 : {
7801 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
7802 : 3 : tree res = generic_simplify_356 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR, CFN_BUILT_IN_CTZ);
7803 : 3 : if (res) return res;
7804 : : }
7805 : 0 : break;
7806 : : }
7807 : : default:;
7808 : : }
7809 : : }
7810 : : break;
7811 : 2 : case CFN_BUILT_IN_CTZL:
7812 : 2 : if (call_expr_nargs (_p0) == 1)
7813 : : {
7814 : 2 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
7815 : 2 : switch (TREE_CODE (_p1))
7816 : : {
7817 : 2 : case INTEGER_CST:
7818 : 2 : {
7819 : 2 : {
7820 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
7821 : 2 : tree res = generic_simplify_356 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR, CFN_BUILT_IN_CTZL);
7822 : 2 : if (res) return res;
7823 : : }
7824 : 0 : break;
7825 : : }
7826 : : default:;
7827 : : }
7828 : : }
7829 : : break;
7830 : 0 : case CFN_BUILT_IN_CTZIMAX:
7831 : 0 : if (call_expr_nargs (_p0) == 1)
7832 : : {
7833 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
7834 : 0 : switch (TREE_CODE (_p1))
7835 : : {
7836 : 0 : case INTEGER_CST:
7837 : 0 : {
7838 : 0 : {
7839 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
7840 : 0 : tree res = generic_simplify_356 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR, CFN_BUILT_IN_CTZIMAX);
7841 : 0 : if (res) return res;
7842 : : }
7843 : 0 : break;
7844 : : }
7845 : : default:;
7846 : : }
7847 : : }
7848 : : break;
7849 : 0 : case CFN_CTZ:
7850 : 0 : if (call_expr_nargs (_p0) == 1)
7851 : : {
7852 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
7853 : 0 : switch (TREE_CODE (_p1))
7854 : : {
7855 : 0 : case INTEGER_CST:
7856 : 0 : {
7857 : 0 : {
7858 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
7859 : 0 : tree res = generic_simplify_356 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR, CFN_CTZ);
7860 : 0 : if (res) return res;
7861 : : }
7862 : 0 : break;
7863 : : }
7864 : : default:;
7865 : : }
7866 : : }
7867 : 0 : if (call_expr_nargs (_p0) == 2)
7868 : : {
7869 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
7870 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
7871 : 0 : switch (TREE_CODE (_p1))
7872 : : {
7873 : 0 : case INTEGER_CST:
7874 : 0 : {
7875 : 0 : {
7876 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
7877 : 0 : tree res = generic_simplify_357 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
7878 : 0 : if (res) return res;
7879 : : }
7880 : 0 : break;
7881 : : }
7882 : : default:;
7883 : : }
7884 : : }
7885 : : break;
7886 : 2 : case CFN_BUILT_IN_CTZLL:
7887 : 2 : if (call_expr_nargs (_p0) == 1)
7888 : : {
7889 : 2 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
7890 : 2 : switch (TREE_CODE (_p1))
7891 : : {
7892 : 2 : case INTEGER_CST:
7893 : 2 : {
7894 : 2 : {
7895 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
7896 : 2 : tree res = generic_simplify_356 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR, CFN_BUILT_IN_CTZLL);
7897 : 2 : if (res) return res;
7898 : : }
7899 : 0 : break;
7900 : : }
7901 : : default:;
7902 : : }
7903 : : }
7904 : : break;
7905 : : default:;
7906 : : }
7907 : : break;
7908 : : default:;
7909 : : }
7910 : : return NULL_TREE;
7911 : : }
7912 : :
7913 : : tree
7914 : 18824776 : generic_simplify_GT_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
7915 : : {
7916 : 18824776 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
7917 : 18824776 : switch (TREE_CODE (_p0))
7918 : : {
7919 : 1012 : case RDIV_EXPR:
7920 : 1012 : {
7921 : 1012 : tree _q20 = TREE_OPERAND (_p0, 0);
7922 : 1012 : tree _q21 = TREE_OPERAND (_p0, 1);
7923 : 1012 : switch (TREE_CODE (_q20))
7924 : : {
7925 : 29 : case REAL_CST:
7926 : 29 : {
7927 : 29 : if (real_zerop (_p1))
7928 : : {
7929 : 0 : {
7930 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7931 : 0 : tree res = generic_simplify_331 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
7932 : 0 : if (res) return res;
7933 : : }
7934 : : }
7935 : : break;
7936 : : }
7937 : : default:;
7938 : : }
7939 : : break;
7940 : : }
7941 : 18824776 : default:;
7942 : : }
7943 : 18824776 : switch (TREE_CODE (_p1))
7944 : : {
7945 : 83 : case TRUNC_MOD_EXPR:
7946 : 83 : {
7947 : 83 : tree _q30 = TREE_OPERAND (_p1, 0);
7948 : 83 : tree _q31 = TREE_OPERAND (_p1, 1);
7949 : 83 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
7950 : : {
7951 : 0 : {
7952 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p0 };
7953 : 0 : tree res = generic_simplify_332 (loc, type, _p0, _p1, captures, LT_EXPR);
7954 : 0 : if (res) return res;
7955 : : }
7956 : : }
7957 : : break;
7958 : : }
7959 : 18824776 : default:;
7960 : : }
7961 : 18824776 : switch (TREE_CODE (_p0))
7962 : : {
7963 : 145869 : case MULT_EXPR:
7964 : 145869 : {
7965 : 145869 : tree _q20 = TREE_OPERAND (_p0, 0);
7966 : 145869 : tree _q21 = TREE_OPERAND (_p0, 1);
7967 : 145869 : switch (TREE_CODE (_p1))
7968 : : {
7969 : 7172 : case MULT_EXPR:
7970 : 7172 : {
7971 : 7172 : tree _q50 = TREE_OPERAND (_p1, 0);
7972 : 7172 : tree _q51 = TREE_OPERAND (_p1, 1);
7973 : 7172 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7974 : : {
7975 : 108 : {
7976 : 108 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
7977 : 108 : tree res = generic_simplify_333 (loc, type, _p0, _p1, captures, GT_EXPR);
7978 : 108 : if (res) return res;
7979 : : }
7980 : : }
7981 : 7168 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7982 : : {
7983 : 8 : {
7984 : 8 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
7985 : 8 : tree res = generic_simplify_333 (loc, type, _p0, _p1, captures, GT_EXPR);
7986 : 8 : if (res) return res;
7987 : : }
7988 : : }
7989 : 7168 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
7990 : : {
7991 : 0 : {
7992 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
7993 : 0 : tree res = generic_simplify_333 (loc, type, _p0, _p1, captures, GT_EXPR);
7994 : 0 : if (res) return res;
7995 : : }
7996 : : }
7997 : 7168 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
7998 : : {
7999 : 680 : {
8000 : 680 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
8001 : 680 : tree res = generic_simplify_333 (loc, type, _p0, _p1, captures, GT_EXPR);
8002 : 680 : if (res) return res;
8003 : : }
8004 : : }
8005 : : break;
8006 : : }
8007 : : default:;
8008 : : }
8009 : : break;
8010 : : }
8011 : 2086148 : case PLUS_EXPR:
8012 : 2086148 : {
8013 : 2086148 : tree _q20 = TREE_OPERAND (_p0, 0);
8014 : 2086148 : tree _q21 = TREE_OPERAND (_p0, 1);
8015 : 2086148 : if (integer_minus_onep (_q21))
8016 : : {
8017 : 543156 : switch (TREE_CODE (_p1))
8018 : : {
8019 : 406813 : case INTEGER_CST:
8020 : 406813 : {
8021 : 406813 : {
8022 : 406813 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
8023 : 406813 : tree res = generic_simplify_358 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
8024 : 406813 : if (res) return res;
8025 : : }
8026 : 401944 : break;
8027 : : }
8028 : : default:;
8029 : : }
8030 : : }
8031 : 2081279 : switch (TREE_CODE (_p1))
8032 : : {
8033 : 60482 : case PLUS_EXPR:
8034 : 60482 : {
8035 : 60482 : tree _q50 = TREE_OPERAND (_p1, 0);
8036 : 60482 : tree _q51 = TREE_OPERAND (_p1, 1);
8037 : 60482 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8038 : : {
8039 : 4223 : {
8040 : 4223 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
8041 : 4223 : tree res = generic_simplify_334 (loc, type, _p0, _p1, captures, GT_EXPR);
8042 : 4223 : if (res) return res;
8043 : : }
8044 : : }
8045 : 57582 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
8046 : : {
8047 : 308 : {
8048 : 308 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
8049 : 308 : tree res = generic_simplify_334 (loc, type, _p0, _p1, captures, GT_EXPR);
8050 : 308 : if (res) return res;
8051 : : }
8052 : : }
8053 : 57582 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
8054 : : {
8055 : 25 : {
8056 : 25 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
8057 : 25 : tree res = generic_simplify_334 (loc, type, _p0, _p1, captures, GT_EXPR);
8058 : 25 : if (res) return res;
8059 : : }
8060 : : }
8061 : 57582 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8062 : : {
8063 : 309 : {
8064 : 309 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
8065 : 309 : tree res = generic_simplify_334 (loc, type, _p0, _p1, captures, GT_EXPR);
8066 : 309 : if (res) return res;
8067 : : }
8068 : : }
8069 : : break;
8070 : : }
8071 : 2078379 : default:;
8072 : : }
8073 : 2078379 : switch (TREE_CODE (_q21))
8074 : : {
8075 : 1927522 : case INTEGER_CST:
8076 : 1927522 : {
8077 : 1927522 : switch (TREE_CODE (_p1))
8078 : : {
8079 : 34727 : case PLUS_EXPR:
8080 : 34727 : {
8081 : 34727 : tree _q50 = TREE_OPERAND (_p1, 0);
8082 : 34727 : tree _q51 = TREE_OPERAND (_p1, 1);
8083 : 34727 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8084 : : {
8085 : 1289 : {
8086 : 1289 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
8087 : 1289 : tree res = generic_simplify_335 (loc, type, _p0, _p1, captures, GT_EXPR);
8088 : 1289 : if (res) return res;
8089 : : }
8090 : : }
8091 : : break;
8092 : : }
8093 : : default:;
8094 : : }
8095 : : break;
8096 : : }
8097 : 2078379 : default:;
8098 : : }
8099 : 2078379 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
8100 : : {
8101 : 56872 : {
8102 : 56872 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8103 : 56872 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, GT_EXPR);
8104 : 56872 : if (res) return res;
8105 : : }
8106 : : }
8107 : 2042788 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
8108 : : {
8109 : 6218 : {
8110 : 6218 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
8111 : 6218 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, GT_EXPR);
8112 : 6218 : if (res) return res;
8113 : : }
8114 : : }
8115 : : break;
8116 : : }
8117 : 2037663 : CASE_CONVERT:
8118 : 2037663 : {
8119 : 2037663 : tree _q20 = TREE_OPERAND (_p0, 0);
8120 : 2037663 : switch (TREE_CODE (_q20))
8121 : : {
8122 : 5 : case EXACT_DIV_EXPR:
8123 : 5 : {
8124 : 5 : tree _q30 = TREE_OPERAND (_q20, 0);
8125 : 5 : tree _q31 = TREE_OPERAND (_q20, 1);
8126 : 5 : switch (TREE_CODE (_q31))
8127 : : {
8128 : 5 : case INTEGER_CST:
8129 : 5 : {
8130 : 5 : switch (TREE_CODE (_p1))
8131 : : {
8132 : 2 : CASE_CONVERT:
8133 : 2 : {
8134 : 2 : tree _q60 = TREE_OPERAND (_p1, 0);
8135 : 2 : switch (TREE_CODE (_q60))
8136 : : {
8137 : 0 : case EXACT_DIV_EXPR:
8138 : 0 : {
8139 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
8140 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
8141 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
8142 : : {
8143 : 0 : {
8144 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q31, _q70 };
8145 : 0 : tree res = generic_simplify_204 (loc, type, _p0, _p1, captures, GT_EXPR);
8146 : 0 : if (res) return res;
8147 : : }
8148 : : }
8149 : : break;
8150 : : }
8151 : : default:;
8152 : : }
8153 : : break;
8154 : : }
8155 : : default:;
8156 : : }
8157 : : break;
8158 : : }
8159 : : default:;
8160 : : }
8161 : : break;
8162 : : }
8163 : : default:;
8164 : : }
8165 : : break;
8166 : : }
8167 : 7108 : case EXACT_DIV_EXPR:
8168 : 7108 : {
8169 : 7108 : tree _q20 = TREE_OPERAND (_p0, 0);
8170 : 7108 : tree _q21 = TREE_OPERAND (_p0, 1);
8171 : 7108 : switch (TREE_CODE (_q21))
8172 : : {
8173 : 7108 : case INTEGER_CST:
8174 : 7108 : {
8175 : 7108 : switch (TREE_CODE (_p1))
8176 : : {
8177 : 6 : case EXACT_DIV_EXPR:
8178 : 6 : {
8179 : 6 : tree _q50 = TREE_OPERAND (_p1, 0);
8180 : 6 : tree _q51 = TREE_OPERAND (_p1, 1);
8181 : 6 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8182 : : {
8183 : 0 : {
8184 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50 };
8185 : 0 : tree res = generic_simplify_204 (loc, type, _p0, _p1, captures, GT_EXPR);
8186 : 0 : if (res) return res;
8187 : : }
8188 : : }
8189 : : break;
8190 : : }
8191 : : default:;
8192 : : }
8193 : : break;
8194 : : }
8195 : : default:;
8196 : : }
8197 : : break;
8198 : : }
8199 : 1688295 : case TRUNC_DIV_EXPR:
8200 : 1688295 : {
8201 : 1688295 : tree _q20 = TREE_OPERAND (_p0, 0);
8202 : 1688295 : tree _q21 = TREE_OPERAND (_p0, 1);
8203 : 1688295 : switch (TREE_CODE (_q21))
8204 : : {
8205 : 1679979 : case INTEGER_CST:
8206 : 1679979 : {
8207 : 1679979 : switch (TREE_CODE (_p1))
8208 : : {
8209 : 1666392 : case INTEGER_CST:
8210 : 1666392 : {
8211 : 1666392 : {
8212 : 1666392 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
8213 : 1666392 : tree res = generic_simplify_207 (loc, type, _p0, _p1, captures, GT_EXPR);
8214 : 1666392 : if (res) return res;
8215 : : }
8216 : 69 : break;
8217 : : }
8218 : : default:;
8219 : : }
8220 : : break;
8221 : : }
8222 : : default:;
8223 : : }
8224 : : break;
8225 : : }
8226 : 726132 : case MINUS_EXPR:
8227 : 726132 : {
8228 : 726132 : tree _q20 = TREE_OPERAND (_p0, 0);
8229 : 726132 : tree _q21 = TREE_OPERAND (_p0, 1);
8230 : 726132 : switch (TREE_CODE (_p1))
8231 : : {
8232 : 2985 : case MINUS_EXPR:
8233 : 2985 : {
8234 : 2985 : tree _q50 = TREE_OPERAND (_p1, 0);
8235 : 2985 : tree _q51 = TREE_OPERAND (_p1, 1);
8236 : 2985 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8237 : : {
8238 : 873 : {
8239 : 873 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
8240 : 873 : tree res = generic_simplify_337 (loc, type, _p0, _p1, captures, GT_EXPR);
8241 : 873 : if (res) return res;
8242 : : }
8243 : : }
8244 : 2985 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8245 : : {
8246 : 184 : {
8247 : 184 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
8248 : 184 : tree res = generic_simplify_338 (loc, type, _p0, _p1, captures, GT_EXPR);
8249 : 184 : if (res) return res;
8250 : : }
8251 : : }
8252 : : break;
8253 : : }
8254 : : default:;
8255 : : }
8256 : : break;
8257 : : }
8258 : 52621 : case POINTER_DIFF_EXPR:
8259 : 52621 : {
8260 : 52621 : tree _q20 = TREE_OPERAND (_p0, 0);
8261 : 52621 : tree _q21 = TREE_OPERAND (_p0, 1);
8262 : 52621 : switch (TREE_CODE (_p1))
8263 : : {
8264 : 677 : case POINTER_DIFF_EXPR:
8265 : 677 : {
8266 : 677 : tree _q50 = TREE_OPERAND (_p1, 0);
8267 : 677 : tree _q51 = TREE_OPERAND (_p1, 1);
8268 : 677 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8269 : : {
8270 : 43 : {
8271 : 43 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50 };
8272 : 43 : tree res = generic_simplify_211 (loc, type, _p0, _p1, captures, GT_EXPR);
8273 : 43 : if (res) return res;
8274 : : }
8275 : : }
8276 : 634 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8277 : : {
8278 : 0 : {
8279 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q51 };
8280 : 0 : tree res = generic_simplify_212 (loc, type, _p0, _p1, captures, GT_EXPR);
8281 : 0 : if (res) return res;
8282 : : }
8283 : : }
8284 : : break;
8285 : : }
8286 : : default:;
8287 : : }
8288 : : break;
8289 : : }
8290 : 17113713 : default:;
8291 : : }
8292 : 17113713 : switch (TREE_CODE (_p1))
8293 : : {
8294 : 110817 : case PLUS_EXPR:
8295 : 110817 : {
8296 : 110817 : tree _q30 = TREE_OPERAND (_p1, 0);
8297 : 110817 : tree _q31 = TREE_OPERAND (_p1, 1);
8298 : 110817 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
8299 : : {
8300 : 0 : {
8301 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q30, _p0 };
8302 : 0 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, LT_EXPR);
8303 : 0 : if (res) return res;
8304 : : }
8305 : : }
8306 : 110817 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
8307 : : {
8308 : 4 : {
8309 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q31, _p0 };
8310 : 4 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, LT_EXPR);
8311 : 4 : if (res) return res;
8312 : : }
8313 : : }
8314 : : break;
8315 : : }
8316 : 11626 : case MINUS_EXPR:
8317 : 11626 : {
8318 : 11626 : tree _q30 = TREE_OPERAND (_p1, 0);
8319 : 11626 : tree _q31 = TREE_OPERAND (_p1, 1);
8320 : 11626 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
8321 : : {
8322 : 0 : {
8323 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q31 };
8324 : 0 : tree res = generic_simplify_210 (loc, type, _p0, _p1, captures, GT_EXPR);
8325 : 0 : if (res) return res;
8326 : : }
8327 : : }
8328 : : break;
8329 : : }
8330 : 17113713 : default:;
8331 : : }
8332 : 17113713 : switch (TREE_CODE (_p0))
8333 : : {
8334 : 726132 : case MINUS_EXPR:
8335 : 726132 : {
8336 : 726132 : tree _q20 = TREE_OPERAND (_p0, 0);
8337 : 726132 : tree _q21 = TREE_OPERAND (_p0, 1);
8338 : 726132 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
8339 : : {
8340 : 17149 : {
8341 : 17149 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p0, _q21 };
8342 : 17149 : tree res = generic_simplify_210 (loc, type, _p0, _p1, captures, LT_EXPR);
8343 : 17149 : if (res) return res;
8344 : : }
8345 : : }
8346 : : break;
8347 : : }
8348 : 19860 : case BIT_AND_EXPR:
8349 : 19860 : {
8350 : 19860 : tree _q20 = TREE_OPERAND (_p0, 0);
8351 : 19860 : tree _q21 = TREE_OPERAND (_p0, 1);
8352 : 19860 : if (tree_expr_nonnegative_p (_q20))
8353 : : {
8354 : 17916 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
8355 : : {
8356 : 0 : {
8357 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8358 : 0 : tree res = generic_simplify_339 (loc, type, _p0, _p1, captures, GT_EXPR, BIT_AND_EXPR);
8359 : 0 : if (res) return res;
8360 : : }
8361 : : }
8362 : : }
8363 : 19860 : if (tree_expr_nonnegative_p (_q21))
8364 : : {
8365 : 18952 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
8366 : : {
8367 : 3936 : {
8368 : 3936 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
8369 : 3936 : tree res = generic_simplify_339 (loc, type, _p0, _p1, captures, GT_EXPR, BIT_AND_EXPR);
8370 : 3936 : if (res) return res;
8371 : : }
8372 : : }
8373 : : }
8374 : : break;
8375 : : }
8376 : 17109734 : default:;
8377 : : }
8378 : 17109734 : switch (TREE_CODE (_p1))
8379 : : {
8380 : 142 : case BIT_IOR_EXPR:
8381 : 142 : {
8382 : 142 : tree _q30 = TREE_OPERAND (_p1, 0);
8383 : 142 : tree _q31 = TREE_OPERAND (_p1, 1);
8384 : 142 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
8385 : : {
8386 : 0 : if (tree_expr_nonnegative_p (_q30))
8387 : : {
8388 : 0 : {
8389 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
8390 : 0 : tree res = generic_simplify_339 (loc, type, _p0, _p1, captures, LT_EXPR, BIT_IOR_EXPR);
8391 : 0 : if (res) return res;
8392 : : }
8393 : : }
8394 : : }
8395 : 142 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
8396 : : {
8397 : 0 : if (tree_expr_nonnegative_p (_q31))
8398 : : {
8399 : 0 : {
8400 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
8401 : 0 : tree res = generic_simplify_339 (loc, type, _p0, _p1, captures, LT_EXPR, BIT_IOR_EXPR);
8402 : 0 : if (res) return res;
8403 : : }
8404 : : }
8405 : : }
8406 : : break;
8407 : : }
8408 : 17109734 : default:;
8409 : : }
8410 : 17109734 : switch (TREE_CODE (_p0))
8411 : : {
8412 : 14598 : case MAX_EXPR:
8413 : 14598 : {
8414 : 14598 : tree _q20 = TREE_OPERAND (_p0, 0);
8415 : 14598 : tree _q21 = TREE_OPERAND (_p0, 1);
8416 : 14598 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
8417 : : {
8418 : 1 : {
8419 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8420 : 1 : tree res = generic_simplify_220 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR, LT_EXPR);
8421 : 1 : if (res) return res;
8422 : : }
8423 : : }
8424 : 14597 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
8425 : : {
8426 : 12 : {
8427 : 12 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
8428 : 12 : tree res = generic_simplify_220 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR, LT_EXPR);
8429 : 12 : if (res) return res;
8430 : : }
8431 : : }
8432 : 14588 : switch (TREE_CODE (_q21))
8433 : : {
8434 : 14011 : case INTEGER_CST:
8435 : 14011 : {
8436 : 14011 : switch (TREE_CODE (_p1))
8437 : : {
8438 : 0 : case INTEGER_CST:
8439 : 0 : {
8440 : 0 : {
8441 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
8442 : 0 : tree res = generic_simplify_340 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR, BIT_IOR_EXPR);
8443 : 0 : if (res) return res;
8444 : : }
8445 : 0 : break;
8446 : : }
8447 : : default:;
8448 : : }
8449 : : break;
8450 : : }
8451 : : default:;
8452 : : }
8453 : : break;
8454 : : }
8455 : 17109724 : default:;
8456 : : }
8457 : 17109724 : switch (TREE_CODE (_p1))
8458 : : {
8459 : 185 : case MIN_EXPR:
8460 : 185 : {
8461 : 185 : tree _q30 = TREE_OPERAND (_p1, 0);
8462 : 185 : tree _q31 = TREE_OPERAND (_p1, 1);
8463 : 185 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
8464 : : {
8465 : 0 : {
8466 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
8467 : 0 : tree res = generic_simplify_220 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR, GT_EXPR);
8468 : 0 : if (res) return res;
8469 : : }
8470 : : }
8471 : 185 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
8472 : : {
8473 : 0 : {
8474 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
8475 : 0 : tree res = generic_simplify_220 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR, GT_EXPR);
8476 : 0 : if (res) return res;
8477 : : }
8478 : : }
8479 : : break;
8480 : : }
8481 : 622 : case MAX_EXPR:
8482 : 622 : {
8483 : 622 : tree _q30 = TREE_OPERAND (_p1, 0);
8484 : 622 : tree _q31 = TREE_OPERAND (_p1, 1);
8485 : 622 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
8486 : : {
8487 : 0 : {
8488 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
8489 : 0 : tree res = generic_simplify_341 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR);
8490 : 0 : if (res) return res;
8491 : : }
8492 : : }
8493 : 622 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
8494 : : {
8495 : 0 : {
8496 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
8497 : 0 : tree res = generic_simplify_341 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR);
8498 : 0 : if (res) return res;
8499 : : }
8500 : : }
8501 : : break;
8502 : : }
8503 : 17109724 : default:;
8504 : : }
8505 : 17109724 : switch (TREE_CODE (_p0))
8506 : : {
8507 : 33455 : case MIN_EXPR:
8508 : 33455 : {
8509 : 33455 : tree _q20 = TREE_OPERAND (_p0, 0);
8510 : 33455 : tree _q21 = TREE_OPERAND (_p0, 1);
8511 : 33455 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
8512 : : {
8513 : 1 : {
8514 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8515 : 1 : tree res = generic_simplify_341 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR);
8516 : 1 : if (res) return res;
8517 : : }
8518 : : }
8519 : 33454 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
8520 : : {
8521 : 1 : {
8522 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
8523 : 1 : tree res = generic_simplify_341 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR);
8524 : 1 : if (res) return res;
8525 : : }
8526 : : }
8527 : 33453 : switch (TREE_CODE (_q21))
8528 : : {
8529 : 20323 : case INTEGER_CST:
8530 : 20323 : {
8531 : 20323 : switch (TREE_CODE (_p1))
8532 : : {
8533 : 61 : case INTEGER_CST:
8534 : 61 : {
8535 : 61 : {
8536 : 61 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
8537 : 61 : tree res = generic_simplify_340 (loc, type, _p0, _p1, captures, MIN_EXPR, GT_EXPR, BIT_AND_EXPR);
8538 : 61 : if (res) return res;
8539 : : }
8540 : 0 : break;
8541 : : }
8542 : : default:;
8543 : : }
8544 : : break;
8545 : : }
8546 : : default:;
8547 : : }
8548 : : break;
8549 : : }
8550 : 854 : case VEC_COND_EXPR:
8551 : 854 : {
8552 : 854 : tree _q20 = TREE_OPERAND (_p0, 0);
8553 : 854 : tree _q21 = TREE_OPERAND (_p0, 1);
8554 : 854 : tree _q22 = TREE_OPERAND (_p0, 2);
8555 : 854 : switch (TREE_CODE (_p1))
8556 : : {
8557 : 14 : case VEC_COND_EXPR:
8558 : 14 : {
8559 : 14 : tree _q60 = TREE_OPERAND (_p1, 0);
8560 : 14 : tree _q61 = TREE_OPERAND (_p1, 1);
8561 : 14 : tree _q62 = TREE_OPERAND (_p1, 2);
8562 : 14 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
8563 : : {
8564 : 0 : {
8565 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
8566 : 0 : if (VECTOR_TYPE_P (type)
8567 : 0 : && (TREE_CODE_CLASS (GT_EXPR) != tcc_comparison
8568 : 0 : || types_match (type, TREE_TYPE (captures[2]))
8569 : 0 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
8570 : : || (optimize_vectors_before_lowering_p ()
8571 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
8572 : : )
8573 : : {
8574 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1666;
8575 : 0 : {
8576 : 0 : tree res_op0;
8577 : 0 : res_op0 = captures[1];
8578 : 0 : tree res_op1;
8579 : 0 : {
8580 : 0 : tree _o1[2], _r1;
8581 : 0 : _o1[0] = captures[2];
8582 : 0 : _o1[1] = captures[5];
8583 : 0 : _r1 = fold_build2_loc (loc, GT_EXPR, type, _o1[0], _o1[1]);
8584 : 0 : if (EXPR_P (_r1))
8585 : 0 : goto next_after_fail1666;
8586 : 0 : res_op1 = _r1;
8587 : : }
8588 : 0 : tree res_op2;
8589 : 0 : {
8590 : 0 : tree _o1[2], _r1;
8591 : 0 : _o1[0] = captures[3];
8592 : 0 : _o1[1] = captures[6];
8593 : 0 : _r1 = fold_build2_loc (loc, GT_EXPR, type, _o1[0], _o1[1]);
8594 : 0 : if (EXPR_P (_r1))
8595 : 0 : goto next_after_fail1666;
8596 : 0 : res_op2 = _r1;
8597 : : }
8598 : 0 : tree _r;
8599 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
8600 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 898, __FILE__, __LINE__, true);
8601 : 0 : return _r;
8602 : : }
8603 : 0 : next_after_fail1666:;
8604 : : }
8605 : : }
8606 : : }
8607 : : break;
8608 : : }
8609 : 854 : default:;
8610 : : }
8611 : 854 : {
8612 : 854 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
8613 : 854 : if (VECTOR_TYPE_P (type)
8614 : 854 : && (TREE_CODE_CLASS (GT_EXPR) != tcc_comparison
8615 : 854 : || types_match (type, TREE_TYPE (captures[2]))
8616 : 854 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
8617 : : || (optimize_vectors_before_lowering_p ()
8618 : 10 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
8619 : : )
8620 : : {
8621 : 854 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1667;
8622 : 854 : {
8623 : 854 : if (! tree_invariant_p (captures[4])) goto next_after_fail1667;
8624 : 9 : tree res_op0;
8625 : 9 : res_op0 = captures[1];
8626 : 9 : tree res_op1;
8627 : 9 : {
8628 : 9 : tree _o1[2], _r1;
8629 : 9 : _o1[0] = captures[2];
8630 : 9 : _o1[1] = unshare_expr (captures[4]);
8631 : 9 : _r1 = fold_build2_loc (loc, GT_EXPR, type, _o1[0], _o1[1]);
8632 : 9 : if (EXPR_P (_r1))
8633 : 6 : goto next_after_fail1667;
8634 : 3 : res_op1 = _r1;
8635 : : }
8636 : 3 : tree res_op2;
8637 : 3 : {
8638 : 3 : tree _o1[2], _r1;
8639 : 3 : _o1[0] = captures[3];
8640 : 3 : _o1[1] = captures[4];
8641 : 3 : _r1 = fold_build2_loc (loc, GT_EXPR, type, _o1[0], _o1[1]);
8642 : 3 : if (EXPR_P (_r1))
8643 : 3 : goto next_after_fail1667;
8644 : 0 : res_op2 = _r1;
8645 : : }
8646 : 0 : tree _r;
8647 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
8648 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 899, __FILE__, __LINE__, true);
8649 : 0 : return _r;
8650 : : }
8651 : 854 : next_after_fail1667:;
8652 : : }
8653 : : }
8654 : 854 : break;
8655 : : }
8656 : 17109661 : default:;
8657 : : }
8658 : 17109661 : switch (TREE_CODE (_p1))
8659 : : {
8660 : 74 : case VEC_COND_EXPR:
8661 : 74 : {
8662 : 74 : tree _q30 = TREE_OPERAND (_p1, 0);
8663 : 74 : tree _q31 = TREE_OPERAND (_p1, 1);
8664 : 74 : tree _q32 = TREE_OPERAND (_p1, 2);
8665 : 74 : {
8666 : 74 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
8667 : 74 : if (VECTOR_TYPE_P (type)
8668 : 74 : && (TREE_CODE_CLASS (GT_EXPR) != tcc_comparison
8669 : 74 : || types_match (type, TREE_TYPE (captures[3]))
8670 : 74 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
8671 : : || (optimize_vectors_before_lowering_p ()
8672 : 7 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
8673 : : )
8674 : : {
8675 : 74 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1668;
8676 : 74 : {
8677 : 74 : if (! tree_invariant_p (captures[0])) goto next_after_fail1668;
8678 : 0 : tree res_op0;
8679 : 0 : res_op0 = captures[2];
8680 : 0 : tree res_op1;
8681 : 0 : {
8682 : 0 : tree _o1[2], _r1;
8683 : 0 : _o1[0] = unshare_expr (captures[0]);
8684 : 0 : _o1[1] = captures[3];
8685 : 0 : _r1 = fold_build2_loc (loc, GT_EXPR, type, _o1[0], _o1[1]);
8686 : 0 : if (EXPR_P (_r1))
8687 : 0 : goto next_after_fail1668;
8688 : 0 : res_op1 = _r1;
8689 : : }
8690 : 0 : tree res_op2;
8691 : 0 : {
8692 : 0 : tree _o1[2], _r1;
8693 : 0 : _o1[0] = captures[0];
8694 : 0 : _o1[1] = captures[4];
8695 : 0 : _r1 = fold_build2_loc (loc, GT_EXPR, type, _o1[0], _o1[1]);
8696 : 0 : if (EXPR_P (_r1))
8697 : 0 : goto next_after_fail1668;
8698 : 0 : res_op2 = _r1;
8699 : : }
8700 : 0 : tree _r;
8701 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
8702 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 900, __FILE__, __LINE__, true);
8703 : 0 : return _r;
8704 : : }
8705 : 74 : next_after_fail1668:;
8706 : : }
8707 : : }
8708 : 74 : break;
8709 : : }
8710 : 17109661 : default:;
8711 : : }
8712 : 17109661 : if (uniform_integer_cst_p (_p1))
8713 : : {
8714 : 11926641 : {
8715 : 11926641 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
8716 : 11926641 : tree res = generic_simplify_359 (loc, type, _p0, _p1, captures, GT_EXPR, GE_EXPR);
8717 : 11926641 : if (res) return res;
8718 : : }
8719 : : }
8720 : 17037126 : switch (TREE_CODE (_p0))
8721 : : {
8722 : 145514 : case MULT_EXPR:
8723 : 145514 : {
8724 : 145514 : tree _q20 = TREE_OPERAND (_p0, 0);
8725 : 145514 : tree _q21 = TREE_OPERAND (_p0, 1);
8726 : 145514 : switch (TREE_CODE (_q21))
8727 : : {
8728 : 105294 : case INTEGER_CST:
8729 : 105294 : {
8730 : 105294 : if (integer_zerop (_p1))
8731 : : {
8732 : 7629 : {
8733 : 7629 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
8734 : 7629 : tree res = generic_simplify_240 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
8735 : 7629 : if (res) return res;
8736 : : }
8737 : : }
8738 : : break;
8739 : : }
8740 : : default:;
8741 : : }
8742 : : break;
8743 : : }
8744 : 17034774 : default:;
8745 : : }
8746 : 17034774 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
8747 : : {
8748 : 2727 : {
8749 : 2727 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
8750 : 2727 : tree res = generic_simplify_292 (loc, type, _p0, _p1, captures, GT_EXPR);
8751 : 2727 : if (res) return res;
8752 : : }
8753 : : }
8754 : 17032047 : switch (TREE_CODE (_p0))
8755 : : {
8756 : 881308 : case BIT_NOT_EXPR:
8757 : 881308 : {
8758 : 881308 : tree _q20 = TREE_OPERAND (_p0, 0);
8759 : 881308 : switch (TREE_CODE (_p1))
8760 : : {
8761 : 10 : case BIT_NOT_EXPR:
8762 : 10 : {
8763 : 10 : tree _q40 = TREE_OPERAND (_p1, 0);
8764 : 10 : {
8765 : 10 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _p1, _q40 };
8766 : 10 : tree res = generic_simplify_246 (loc, type, _p0, _p1, captures, GT_EXPR);
8767 : 10 : if (res) return res;
8768 : : }
8769 : 0 : break;
8770 : : }
8771 : 881298 : default:;
8772 : : }
8773 : 881298 : {
8774 : 881298 : tree _p1_pops[1];
8775 : 881298 : if (tree_nop_convert (_p1, _p1_pops))
8776 : : {
8777 : 2 : tree _q40 = _p1_pops[0];
8778 : 2 : switch (TREE_CODE (_q40))
8779 : : {
8780 : 0 : case BIT_NOT_EXPR:
8781 : 0 : {
8782 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
8783 : 0 : {
8784 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q40, _q50 };
8785 : 0 : tree res = generic_simplify_246 (loc, type, _p0, _p1, captures, GT_EXPR);
8786 : 0 : if (res) return res;
8787 : : }
8788 : 0 : break;
8789 : : }
8790 : : default:;
8791 : : }
8792 : : }
8793 : : }
8794 : 881298 : if (CONSTANT_CLASS_P (_p1))
8795 : : {
8796 : 880149 : {
8797 : 880149 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
8798 : 880149 : tree res = generic_simplify_245 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
8799 : 880149 : if (res) return res;
8800 : : }
8801 : : }
8802 : : break;
8803 : : }
8804 : 16151888 : default:;
8805 : : }
8806 : 16151888 : {
8807 : 16151888 : tree _p0_pops[1];
8808 : 16151888 : if (tree_nop_convert (_p0, _p0_pops))
8809 : : {
8810 : 746924 : tree _q20 = _p0_pops[0];
8811 : 746924 : switch (TREE_CODE (_q20))
8812 : : {
8813 : 0 : case BIT_NOT_EXPR:
8814 : 0 : {
8815 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8816 : 0 : switch (TREE_CODE (_p1))
8817 : : {
8818 : 0 : case BIT_NOT_EXPR:
8819 : 0 : {
8820 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
8821 : 0 : {
8822 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _p1, _q50 };
8823 : 0 : tree res = generic_simplify_244 (loc, type, _p0, _p1, captures, GT_EXPR);
8824 : 0 : if (res) return res;
8825 : : }
8826 : 0 : break;
8827 : : }
8828 : 0 : default:;
8829 : : }
8830 : 0 : {
8831 : 0 : tree _p1_pops[1];
8832 : 0 : if (tree_nop_convert (_p1, _p1_pops))
8833 : : {
8834 : 0 : tree _q50 = _p1_pops[0];
8835 : 0 : switch (TREE_CODE (_q50))
8836 : : {
8837 : 0 : case BIT_NOT_EXPR:
8838 : 0 : {
8839 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
8840 : 0 : {
8841 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q50, _q60 };
8842 : 0 : tree res = generic_simplify_244 (loc, type, _p0, _p1, captures, GT_EXPR);
8843 : 0 : if (res) return res;
8844 : : }
8845 : 0 : break;
8846 : : }
8847 : : default:;
8848 : : }
8849 : : }
8850 : : }
8851 : 0 : if (CONSTANT_CLASS_P (_p1))
8852 : : {
8853 : 0 : {
8854 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
8855 : 0 : tree res = generic_simplify_245 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
8856 : 0 : if (res) return res;
8857 : : }
8858 : : }
8859 : : break;
8860 : : }
8861 : : default:;
8862 : : }
8863 : : }
8864 : : }
8865 : 16151888 : switch (TREE_CODE (_p1))
8866 : : {
8867 : 786291 : case REAL_CST:
8868 : 786291 : {
8869 : 786291 : {
8870 : 786291 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
8871 : 786291 : tree res = generic_simplify_247 (loc, type, _p0, _p1, captures, GT_EXPR);
8872 : 786291 : if (res) return res;
8873 : : }
8874 : 786235 : break;
8875 : : }
8876 : 16151832 : default:;
8877 : : }
8878 : 16151832 : switch (TREE_CODE (_p0))
8879 : : {
8880 : 2040678 : case PLUS_EXPR:
8881 : 2040678 : {
8882 : 2040678 : tree _q20 = TREE_OPERAND (_p0, 0);
8883 : 2040678 : tree _q21 = TREE_OPERAND (_p0, 1);
8884 : 2040678 : switch (TREE_CODE (_q21))
8885 : : {
8886 : 503 : case REAL_CST:
8887 : 503 : {
8888 : 503 : switch (TREE_CODE (_p1))
8889 : : {
8890 : 230 : case REAL_CST:
8891 : 230 : {
8892 : 230 : {
8893 : 230 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
8894 : 230 : tree res = generic_simplify_248 (loc, type, _p0, _p1, captures, PLUS_EXPR, GT_EXPR);
8895 : 230 : if (res) return res;
8896 : : }
8897 : 230 : break;
8898 : : }
8899 : : default:;
8900 : : }
8901 : : break;
8902 : : }
8903 : 1891167 : case INTEGER_CST:
8904 : 1891167 : {
8905 : 1891167 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
8906 : : {
8907 : 1315 : {
8908 : 1315 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q20, _q21 };
8909 : 1315 : tree res = generic_simplify_343 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
8910 : 1315 : if (res) return res;
8911 : : }
8912 : : }
8913 : : break;
8914 : : }
8915 : : default:;
8916 : : }
8917 : : break;
8918 : : }
8919 : 715944 : case MINUS_EXPR:
8920 : 715944 : {
8921 : 715944 : tree _q20 = TREE_OPERAND (_p0, 0);
8922 : 715944 : tree _q21 = TREE_OPERAND (_p0, 1);
8923 : 715944 : switch (TREE_CODE (_q21))
8924 : : {
8925 : 751 : case REAL_CST:
8926 : 751 : {
8927 : 751 : switch (TREE_CODE (_p1))
8928 : : {
8929 : 537 : case REAL_CST:
8930 : 537 : {
8931 : 537 : {
8932 : 537 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
8933 : 537 : tree res = generic_simplify_248 (loc, type, _p0, _p1, captures, MINUS_EXPR, GT_EXPR);
8934 : 537 : if (res) return res;
8935 : : }
8936 : 535 : break;
8937 : : }
8938 : : default:;
8939 : : }
8940 : : break;
8941 : : }
8942 : 715942 : default:;
8943 : : }
8944 : 715942 : switch (TREE_CODE (_q20))
8945 : : {
8946 : 43 : case REAL_CST:
8947 : 43 : {
8948 : 43 : switch (TREE_CODE (_p1))
8949 : : {
8950 : 37 : case REAL_CST:
8951 : 37 : {
8952 : 37 : {
8953 : 37 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
8954 : 37 : tree res = generic_simplify_249 (loc, type, _p0, _p1, captures, GT_EXPR);
8955 : 37 : if (res) return res;
8956 : : }
8957 : 35 : break;
8958 : : }
8959 : : default:;
8960 : : }
8961 : : break;
8962 : : }
8963 : : default:;
8964 : : }
8965 : : break;
8966 : : }
8967 : 41890 : case FLOAT_EXPR:
8968 : 41890 : {
8969 : 41890 : tree _q20 = TREE_OPERAND (_p0, 0);
8970 : 41890 : switch (TREE_CODE (_p1))
8971 : : {
8972 : 30 : case FLOAT_EXPR:
8973 : 30 : {
8974 : 30 : tree _q40 = TREE_OPERAND (_p1, 0);
8975 : 30 : {
8976 : 30 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
8977 : 30 : tree res = generic_simplify_252 (loc, type, _p0, _p1, captures, GT_EXPR, GT_EXPR);
8978 : 30 : if (res) return res;
8979 : : }
8980 : 30 : break;
8981 : : }
8982 : 40195 : case REAL_CST:
8983 : 40195 : {
8984 : 40195 : {
8985 : 40195 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
8986 : 40195 : tree res = generic_simplify_253 (loc, type, _p0, _p1, captures, GT_EXPR, GE_EXPR);
8987 : 40195 : if (res) return res;
8988 : : }
8989 : 20274 : break;
8990 : : }
8991 : : default:;
8992 : : }
8993 : : break;
8994 : : }
8995 : 7108 : case EXACT_DIV_EXPR:
8996 : 7108 : {
8997 : 7108 : tree _q20 = TREE_OPERAND (_p0, 0);
8998 : 7108 : tree _q21 = TREE_OPERAND (_p0, 1);
8999 : 7108 : switch (TREE_CODE (_q21))
9000 : : {
9001 : 7108 : case INTEGER_CST:
9002 : 7108 : {
9003 : 7108 : switch (TREE_CODE (_p1))
9004 : : {
9005 : 214 : case INTEGER_CST:
9006 : 214 : {
9007 : 214 : {
9008 : 214 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
9009 : 214 : tree res = generic_simplify_344 (loc, type, _p0, _p1, captures, GT_EXPR);
9010 : 214 : if (res) return res;
9011 : : }
9012 : 0 : break;
9013 : : }
9014 : : default:;
9015 : : }
9016 : : break;
9017 : : }
9018 : : default:;
9019 : : }
9020 : : break;
9021 : : }
9022 : 2034247 : CASE_CONVERT:
9023 : 2034247 : {
9024 : 2034247 : tree _q20 = TREE_OPERAND (_p0, 0);
9025 : 2034247 : switch (TREE_CODE (_q20))
9026 : : {
9027 : 5 : case EXACT_DIV_EXPR:
9028 : 5 : {
9029 : 5 : tree _q30 = TREE_OPERAND (_q20, 0);
9030 : 5 : tree _q31 = TREE_OPERAND (_q20, 1);
9031 : 5 : switch (TREE_CODE (_q31))
9032 : : {
9033 : 5 : case INTEGER_CST:
9034 : 5 : {
9035 : 5 : switch (TREE_CODE (_p1))
9036 : : {
9037 : 0 : case INTEGER_CST:
9038 : 0 : {
9039 : 0 : {
9040 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
9041 : 0 : tree res = generic_simplify_345 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
9042 : 0 : if (res) return res;
9043 : : }
9044 : 0 : break;
9045 : : }
9046 : : default:;
9047 : : }
9048 : : break;
9049 : : }
9050 : : default:;
9051 : : }
9052 : : break;
9053 : : }
9054 : 2034247 : default:;
9055 : : }
9056 : 2034247 : switch (TREE_CODE (_p1))
9057 : : {
9058 : 174688 : CASE_CONVERT:
9059 : 174688 : {
9060 : 174688 : tree _q40 = TREE_OPERAND (_p1, 0);
9061 : 174688 : {
9062 : 174688 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
9063 : 174688 : tree res = generic_simplify_257 (loc, type, _p0, _p1, captures, GT_EXPR);
9064 : 174688 : if (res) return res;
9065 : : }
9066 : 142279 : break;
9067 : : }
9068 : 2001838 : default:;
9069 : : }
9070 : 2001838 : {
9071 : 2001838 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
9072 : 2001838 : tree res = generic_simplify_258 (loc, type, _p0, _p1, captures, GT_EXPR);
9073 : 2001838 : if (res) return res;
9074 : : }
9075 : 1076783 : switch (TREE_CODE (_q20))
9076 : : {
9077 : 400 : case ADDR_EXPR:
9078 : 400 : {
9079 : 400 : switch (TREE_CODE (_p1))
9080 : : {
9081 : 273 : CASE_CONVERT:
9082 : 273 : {
9083 : 273 : tree _q40 = TREE_OPERAND (_p1, 0);
9084 : 273 : switch (TREE_CODE (_q40))
9085 : : {
9086 : 273 : case ADDR_EXPR:
9087 : 273 : {
9088 : 273 : {
9089 : 273 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
9090 : 273 : tree res = generic_simplify_275 (loc, type, _p0, _p1, captures, GT_EXPR);
9091 : 273 : if (res) return res;
9092 : : }
9093 : 206 : break;
9094 : : }
9095 : : default:;
9096 : : }
9097 : : break;
9098 : : }
9099 : 0 : case ADDR_EXPR:
9100 : 0 : {
9101 : 0 : {
9102 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
9103 : 0 : tree res = generic_simplify_275 (loc, type, _p0, _p1, captures, GT_EXPR);
9104 : 0 : if (res) return res;
9105 : : }
9106 : 0 : break;
9107 : : }
9108 : : default:;
9109 : : }
9110 : : break;
9111 : : }
9112 : 1076716 : default:;
9113 : : }
9114 : 1076716 : if (uniform_integer_cst_p (_p1))
9115 : : {
9116 : 307395 : {
9117 : 307395 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
9118 : 307395 : tree res = generic_simplify_346 (loc, type, _p0, _p1, captures, GT_EXPR);
9119 : 307395 : if (res) return res;
9120 : : }
9121 : : }
9122 : : break;
9123 : : }
9124 : 15921 : case BIT_AND_EXPR:
9125 : 15921 : {
9126 : 15921 : tree _q20 = TREE_OPERAND (_p0, 0);
9127 : 15921 : tree _q21 = TREE_OPERAND (_p0, 1);
9128 : 15921 : switch (TREE_CODE (_q21))
9129 : : {
9130 : 14921 : case INTEGER_CST:
9131 : 14921 : {
9132 : 14921 : switch (TREE_CODE (_p1))
9133 : : {
9134 : 9266 : case INTEGER_CST:
9135 : 9266 : {
9136 : 9266 : {
9137 : 9266 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
9138 : 9266 : tree res = generic_simplify_360 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
9139 : 9266 : if (res) return res;
9140 : : }
9141 : 8767 : break;
9142 : : }
9143 : : default:;
9144 : : }
9145 : : break;
9146 : : }
9147 : : default:;
9148 : : }
9149 : : break;
9150 : : }
9151 : 15932 : case NEGATE_EXPR:
9152 : 15932 : {
9153 : 15932 : tree _q20 = TREE_OPERAND (_p0, 0);
9154 : 15932 : switch (TREE_CODE (_p1))
9155 : : {
9156 : 4 : case NEGATE_EXPR:
9157 : 4 : {
9158 : 4 : tree _q40 = TREE_OPERAND (_p1, 0);
9159 : 4 : {
9160 : 4 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
9161 : 4 : tree res = generic_simplify_255 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
9162 : 4 : if (res) return res;
9163 : : }
9164 : 4 : break;
9165 : : }
9166 : 15932 : default:;
9167 : : }
9168 : 15932 : if (CONSTANT_CLASS_P (_p1))
9169 : : {
9170 : 701 : {
9171 : 701 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9172 : 701 : tree res = generic_simplify_256 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
9173 : 701 : if (res) return res;
9174 : : }
9175 : : }
9176 : : break;
9177 : : }
9178 : 4448 : case ADDR_EXPR:
9179 : 4448 : {
9180 : 4448 : switch (TREE_CODE (_p1))
9181 : : {
9182 : 0 : CASE_CONVERT:
9183 : 0 : {
9184 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
9185 : 0 : switch (TREE_CODE (_q30))
9186 : : {
9187 : 0 : case ADDR_EXPR:
9188 : 0 : {
9189 : 0 : {
9190 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q30 };
9191 : 0 : tree res = generic_simplify_276 (loc, type, _p0, _p1, captures, GT_EXPR);
9192 : 0 : if (res) return res;
9193 : : }
9194 : 0 : break;
9195 : : }
9196 : : default:;
9197 : : }
9198 : : break;
9199 : : }
9200 : 4158 : case ADDR_EXPR:
9201 : 4158 : {
9202 : 4158 : {
9203 : 4158 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _p1 };
9204 : 4158 : tree res = generic_simplify_276 (loc, type, _p0, _p1, captures, GT_EXPR);
9205 : 4158 : if (res) return res;
9206 : : }
9207 : 650 : break;
9208 : : }
9209 : : default:;
9210 : : }
9211 : : break;
9212 : : }
9213 : 288239 : case CALL_EXPR:
9214 : 288239 : switch (get_call_combined_fn (_p0))
9215 : : {
9216 : 1 : case CFN_BUILT_IN_SQRTF:
9217 : 1 : if (call_expr_nargs (_p0) == 1)
9218 : : {
9219 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9220 : 1 : switch (TREE_CODE (_p1))
9221 : : {
9222 : 1 : case REAL_CST:
9223 : 1 : {
9224 : 1 : {
9225 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9226 : 1 : tree res = generic_simplify_250 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTF, GT_EXPR);
9227 : 1 : if (res) return res;
9228 : : }
9229 : 0 : break;
9230 : : }
9231 : 0 : case CALL_EXPR:
9232 : 0 : switch (get_call_combined_fn (_p1))
9233 : : {
9234 : 0 : case CFN_BUILT_IN_SQRTF:
9235 : 0 : if (call_expr_nargs (_p1) == 1)
9236 : : {
9237 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9238 : 0 : {
9239 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
9240 : 0 : tree res = generic_simplify_251 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTF, GT_EXPR);
9241 : 0 : if (res) return res;
9242 : : }
9243 : : }
9244 : : break;
9245 : : default:;
9246 : : }
9247 : : break;
9248 : : default:;
9249 : : }
9250 : : }
9251 : : break;
9252 : 0 : case CFN_BUILT_IN_SQRTL:
9253 : 0 : if (call_expr_nargs (_p0) == 1)
9254 : : {
9255 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9256 : 0 : switch (TREE_CODE (_p1))
9257 : : {
9258 : 0 : case REAL_CST:
9259 : 0 : {
9260 : 0 : {
9261 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9262 : 0 : tree res = generic_simplify_250 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTL, GT_EXPR);
9263 : 0 : if (res) return res;
9264 : : }
9265 : 0 : break;
9266 : : }
9267 : 0 : case CALL_EXPR:
9268 : 0 : switch (get_call_combined_fn (_p1))
9269 : : {
9270 : 0 : case CFN_BUILT_IN_SQRTL:
9271 : 0 : if (call_expr_nargs (_p1) == 1)
9272 : : {
9273 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9274 : 0 : {
9275 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
9276 : 0 : tree res = generic_simplify_251 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTL, GT_EXPR);
9277 : 0 : if (res) return res;
9278 : : }
9279 : : }
9280 : : break;
9281 : : default:;
9282 : : }
9283 : : break;
9284 : : default:;
9285 : : }
9286 : : }
9287 : : break;
9288 : 3 : case CFN_BUILT_IN_SQRT:
9289 : 3 : if (call_expr_nargs (_p0) == 1)
9290 : : {
9291 : 3 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9292 : 3 : switch (TREE_CODE (_p1))
9293 : : {
9294 : 3 : case REAL_CST:
9295 : 3 : {
9296 : 3 : {
9297 : 3 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9298 : 3 : tree res = generic_simplify_250 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRT, GT_EXPR);
9299 : 3 : if (res) return res;
9300 : : }
9301 : 0 : break;
9302 : : }
9303 : 0 : case CALL_EXPR:
9304 : 0 : switch (get_call_combined_fn (_p1))
9305 : : {
9306 : 0 : case CFN_BUILT_IN_SQRT:
9307 : 0 : if (call_expr_nargs (_p1) == 1)
9308 : : {
9309 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9310 : 0 : {
9311 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
9312 : 0 : tree res = generic_simplify_251 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRT, GT_EXPR);
9313 : 0 : if (res) return res;
9314 : : }
9315 : : }
9316 : : break;
9317 : : default:;
9318 : : }
9319 : : break;
9320 : : default:;
9321 : : }
9322 : : }
9323 : : break;
9324 : 0 : case CFN_SQRT:
9325 : 0 : if (call_expr_nargs (_p0) == 1)
9326 : : {
9327 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9328 : 0 : switch (TREE_CODE (_p1))
9329 : : {
9330 : 0 : case REAL_CST:
9331 : 0 : {
9332 : 0 : {
9333 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9334 : 0 : tree res = generic_simplify_250 (loc, type, _p0, _p1, captures, CFN_SQRT, GT_EXPR);
9335 : 0 : if (res) return res;
9336 : : }
9337 : 0 : break;
9338 : : }
9339 : 0 : case CALL_EXPR:
9340 : 0 : switch (get_call_combined_fn (_p1))
9341 : : {
9342 : 0 : case CFN_SQRT:
9343 : 0 : if (call_expr_nargs (_p1) == 1)
9344 : : {
9345 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9346 : 0 : {
9347 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
9348 : 0 : tree res = generic_simplify_251 (loc, type, _p0, _p1, captures, CFN_SQRT, GT_EXPR);
9349 : 0 : if (res) return res;
9350 : : }
9351 : : }
9352 : : break;
9353 : : default:;
9354 : : }
9355 : : break;
9356 : : default:;
9357 : : }
9358 : : }
9359 : : break;
9360 : : default:;
9361 : : }
9362 : : break;
9363 : 15141304 : default:;
9364 : : }
9365 : 15141304 : if (uniform_integer_cst_p (_p1))
9366 : : {
9367 : 10018749 : {
9368 : 10018749 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _p1 };
9369 : 10018749 : tree res = generic_simplify_347 (loc, type, _p0, _p1, captures, GT_EXPR);
9370 : 10018749 : if (res) return res;
9371 : : }
9372 : : }
9373 : 14458105 : switch (TREE_CODE (_p0))
9374 : : {
9375 : 1007214 : CASE_CONVERT:
9376 : 1007214 : {
9377 : 1007214 : tree _q20 = TREE_OPERAND (_p0, 0);
9378 : 1007214 : switch (TREE_CODE (_q20))
9379 : : {
9380 : 1 : case NE_EXPR:
9381 : 1 : {
9382 : 1 : tree _q30 = TREE_OPERAND (_q20, 0);
9383 : 1 : tree _q31 = TREE_OPERAND (_q20, 1);
9384 : 1 : if (integer_zerop (_q31))
9385 : : {
9386 : 1 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
9387 : : {
9388 : 1 : {
9389 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _q30 };
9390 : 1 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0]))
9391 : : )
9392 : : {
9393 : 1 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1669;
9394 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1669;
9395 : 1 : {
9396 : 1 : tree _r;
9397 : 1 : _r = constant_boolean_node (false, type);
9398 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1006, __FILE__, __LINE__, true);
9399 : 1 : return _r;
9400 : : }
9401 : : next_after_fail1669:;
9402 : : }
9403 : : }
9404 : : }
9405 : : }
9406 : : break;
9407 : : }
9408 : 45537 : case PLUS_EXPR:
9409 : 45537 : {
9410 : 45537 : tree _q30 = TREE_OPERAND (_q20, 0);
9411 : 45537 : tree _q31 = TREE_OPERAND (_q20, 1);
9412 : 45537 : switch (TREE_CODE (_q30))
9413 : : {
9414 : 33371 : CASE_CONVERT:
9415 : 33371 : {
9416 : 33371 : tree _q40 = TREE_OPERAND (_q30, 0);
9417 : 33371 : switch (TREE_CODE (_q31))
9418 : : {
9419 : 33367 : case INTEGER_CST:
9420 : 33367 : {
9421 : 33367 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
9422 : : {
9423 : 7 : {
9424 : 7 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q40, _q31 };
9425 : 7 : tree res = generic_simplify_348 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
9426 : 7 : if (res) return res;
9427 : : }
9428 : : }
9429 : : break;
9430 : : }
9431 : : default:;
9432 : : }
9433 : : break;
9434 : : }
9435 : : default:;
9436 : : }
9437 : : break;
9438 : : }
9439 : : default:;
9440 : : }
9441 : : break;
9442 : : }
9443 : 14458097 : default:;
9444 : : }
9445 : 14458097 : switch (TREE_CODE (_p1))
9446 : : {
9447 : 549702 : CASE_CONVERT:
9448 : 549702 : {
9449 : 549702 : tree _q30 = TREE_OPERAND (_p1, 0);
9450 : 549702 : switch (TREE_CODE (_q30))
9451 : : {
9452 : 3217 : case PLUS_EXPR:
9453 : 3217 : {
9454 : 3217 : tree _q40 = TREE_OPERAND (_q30, 0);
9455 : 3217 : tree _q41 = TREE_OPERAND (_q30, 1);
9456 : 3217 : switch (TREE_CODE (_q40))
9457 : : {
9458 : 3155 : CASE_CONVERT:
9459 : 3155 : {
9460 : 3155 : tree _q50 = TREE_OPERAND (_q40, 0);
9461 : 3155 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
9462 : : {
9463 : 0 : switch (TREE_CODE (_q41))
9464 : : {
9465 : 0 : case INTEGER_CST:
9466 : 0 : {
9467 : 0 : {
9468 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q30, _q40, _p0, _q41 };
9469 : 0 : tree res = generic_simplify_348 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
9470 : 0 : if (res) return res;
9471 : : }
9472 : 0 : break;
9473 : : }
9474 : : default:;
9475 : : }
9476 : : }
9477 : : break;
9478 : : }
9479 : : default:;
9480 : : }
9481 : : break;
9482 : : }
9483 : : default:;
9484 : : }
9485 : : break;
9486 : : }
9487 : 110817 : case PLUS_EXPR:
9488 : 110817 : {
9489 : 110817 : tree _q30 = TREE_OPERAND (_p1, 0);
9490 : 110817 : tree _q31 = TREE_OPERAND (_p1, 1);
9491 : 110817 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
9492 : : {
9493 : 4 : switch (TREE_CODE (_q31))
9494 : : {
9495 : 4 : case INTEGER_CST:
9496 : 4 : {
9497 : 4 : {
9498 : 4 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _p1, _q30, _p0, _q31 };
9499 : 4 : tree res = generic_simplify_343 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
9500 : 4 : if (res) return res;
9501 : : }
9502 : 0 : break;
9503 : : }
9504 : : default:;
9505 : : }
9506 : : }
9507 : : break;
9508 : : }
9509 : 14458093 : default:;
9510 : : }
9511 : 14458093 : switch (TREE_CODE (_p0))
9512 : : {
9513 : 636731 : case MINUS_EXPR:
9514 : 636731 : {
9515 : 636731 : tree _q20 = TREE_OPERAND (_p0, 0);
9516 : 636731 : tree _q21 = TREE_OPERAND (_p0, 1);
9517 : 636731 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
9518 : : {
9519 : 7162 : {
9520 : 7162 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
9521 : 7162 : tree res = generic_simplify_349 (loc, type, _p0, _p1, captures, GT_EXPR);
9522 : 7162 : if (res) return res;
9523 : : }
9524 : : }
9525 : : break;
9526 : : }
9527 : 14450943 : default:;
9528 : : }
9529 : 14450943 : switch (TREE_CODE (_p1))
9530 : : {
9531 : 110813 : case PLUS_EXPR:
9532 : 110813 : {
9533 : 110813 : tree _q30 = TREE_OPERAND (_p1, 0);
9534 : 110813 : tree _q31 = TREE_OPERAND (_p1, 1);
9535 : 110813 : switch (TREE_CODE (_q30))
9536 : : {
9537 : 3 : case MINUS_EXPR:
9538 : 3 : {
9539 : 3 : tree _q40 = TREE_OPERAND (_q30, 0);
9540 : 3 : tree _q41 = TREE_OPERAND (_q30, 1);
9541 : 3 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
9542 : : {
9543 : 0 : if (integer_minus_onep (_q31))
9544 : : {
9545 : 0 : {
9546 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
9547 : 0 : tree res = generic_simplify_361 (loc, type, _p0, _p1, captures, LT_EXPR);
9548 : 0 : if (res) return res;
9549 : : }
9550 : : }
9551 : : }
9552 : : break;
9553 : : }
9554 : : default:;
9555 : : }
9556 : : break;
9557 : : }
9558 : 14450943 : default:;
9559 : : }
9560 : 14450943 : switch (TREE_CODE (_p0))
9561 : : {
9562 : 83 : case REALPART_EXPR:
9563 : 83 : {
9564 : 83 : tree _q20 = TREE_OPERAND (_p0, 0);
9565 : 83 : switch (TREE_CODE (_q20))
9566 : : {
9567 : 0 : case CALL_EXPR:
9568 : 0 : switch (get_call_combined_fn (_q20))
9569 : : {
9570 : 0 : case CFN_SUB_OVERFLOW:
9571 : 0 : if (call_expr_nargs (_q20) == 2)
9572 : : {
9573 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
9574 : 0 : tree _q31 = CALL_EXPR_ARG (_q20, 1);
9575 : 0 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
9576 : : {
9577 : 0 : {
9578 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
9579 : 0 : tree res = generic_simplify_362 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
9580 : 0 : if (res) return res;
9581 : : }
9582 : : }
9583 : : }
9584 : : break;
9585 : : default:;
9586 : : }
9587 : : break;
9588 : : default:;
9589 : : }
9590 : : break;
9591 : : }
9592 : 14450943 : default:;
9593 : : }
9594 : 14450943 : switch (TREE_CODE (_p1))
9595 : : {
9596 : 20 : case REALPART_EXPR:
9597 : 20 : {
9598 : 20 : tree _q30 = TREE_OPERAND (_p1, 0);
9599 : 20 : switch (TREE_CODE (_q30))
9600 : : {
9601 : 0 : case CALL_EXPR:
9602 : 0 : switch (get_call_combined_fn (_q30))
9603 : : {
9604 : 0 : case CFN_ADD_OVERFLOW:
9605 : 0 : if (call_expr_nargs (_q30) == 2)
9606 : : {
9607 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
9608 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
9609 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
9610 : : {
9611 : 0 : {
9612 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _p0, _q41 };
9613 : 0 : tree res = generic_simplify_363 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
9614 : 0 : if (res) return res;
9615 : : }
9616 : : }
9617 : 0 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
9618 : : {
9619 : 0 : {
9620 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _p0, _q40 };
9621 : 0 : tree res = generic_simplify_363 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
9622 : 0 : if (res) return res;
9623 : : }
9624 : : }
9625 : : }
9626 : : break;
9627 : : default:;
9628 : : }
9629 : : break;
9630 : : default:;
9631 : : }
9632 : : break;
9633 : : }
9634 : 1104 : case TRUNC_DIV_EXPR:
9635 : 1104 : {
9636 : 1104 : tree _q30 = TREE_OPERAND (_p1, 0);
9637 : 1104 : tree _q31 = TREE_OPERAND (_p1, 1);
9638 : 1104 : if (integer_all_onesp (_q30))
9639 : : {
9640 : 0 : {
9641 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q31, _p0 };
9642 : 0 : tree res = generic_simplify_364 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
9643 : 0 : if (res) return res;
9644 : : }
9645 : : }
9646 : : break;
9647 : : }
9648 : 14450943 : default:;
9649 : : }
9650 : 14450943 : switch (TREE_CODE (_p0))
9651 : : {
9652 : 135490 : case MULT_EXPR:
9653 : 135490 : {
9654 : 135490 : tree _q20 = TREE_OPERAND (_p0, 0);
9655 : 135490 : tree _q21 = TREE_OPERAND (_p0, 1);
9656 : 135490 : switch (TREE_CODE (_q21))
9657 : : {
9658 : 23701 : case REAL_CST:
9659 : 23701 : {
9660 : 23701 : switch (TREE_CODE (_p1))
9661 : : {
9662 : 58 : case REAL_CST:
9663 : 58 : {
9664 : 58 : {
9665 : 58 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
9666 : 58 : tree res = generic_simplify_354 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
9667 : 58 : if (res) return res;
9668 : : }
9669 : 57 : break;
9670 : : }
9671 : : default:;
9672 : : }
9673 : : break;
9674 : : }
9675 : : default:;
9676 : : }
9677 : : break;
9678 : : }
9679 : 1929792 : case PLUS_EXPR:
9680 : 1929792 : {
9681 : 1929792 : tree _q20 = TREE_OPERAND (_p0, 0);
9682 : 1929792 : tree _q21 = TREE_OPERAND (_p0, 1);
9683 : 1929792 : switch (TREE_CODE (_q21))
9684 : : {
9685 : 1780380 : case INTEGER_CST:
9686 : 1780380 : {
9687 : 1780380 : switch (TREE_CODE (_p1))
9688 : : {
9689 : 1225510 : case INTEGER_CST:
9690 : 1225510 : {
9691 : 1225510 : {
9692 : 1225510 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
9693 : 1225510 : tree res = generic_simplify_355 (loc, type, _p0, _p1, captures, PLUS_EXPR, MINUS_EXPR, GT_EXPR, LT_EXPR);
9694 : 1225510 : if (res) return res;
9695 : : }
9696 : 791626 : break;
9697 : : }
9698 : : default:;
9699 : : }
9700 : : break;
9701 : : }
9702 : : default:;
9703 : : }
9704 : : break;
9705 : : }
9706 : 629581 : case MINUS_EXPR:
9707 : 629581 : {
9708 : 629581 : tree _q20 = TREE_OPERAND (_p0, 0);
9709 : 629581 : tree _q21 = TREE_OPERAND (_p0, 1);
9710 : 629581 : switch (TREE_CODE (_q21))
9711 : : {
9712 : 2163 : case INTEGER_CST:
9713 : 2163 : {
9714 : 2163 : switch (TREE_CODE (_p1))
9715 : : {
9716 : 2015 : case INTEGER_CST:
9717 : 2015 : {
9718 : 2015 : {
9719 : 2015 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
9720 : 2015 : tree res = generic_simplify_355 (loc, type, _p0, _p1, captures, MINUS_EXPR, PLUS_EXPR, GT_EXPR, LT_EXPR);
9721 : 2015 : if (res) return res;
9722 : : }
9723 : 1847 : break;
9724 : : }
9725 : : default:;
9726 : : }
9727 : : break;
9728 : : }
9729 : 629413 : default:;
9730 : : }
9731 : 629413 : switch (TREE_CODE (_q20))
9732 : : {
9733 : 540760 : case INTEGER_CST:
9734 : 540760 : {
9735 : 540760 : switch (TREE_CODE (_p1))
9736 : : {
9737 : 537361 : case INTEGER_CST:
9738 : 537361 : {
9739 : 537361 : {
9740 : 537361 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
9741 : 537361 : tree res = generic_simplify_282 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
9742 : 537361 : if (res) return res;
9743 : : }
9744 : 0 : break;
9745 : : }
9746 : : default:;
9747 : : }
9748 : : break;
9749 : : }
9750 : : default:;
9751 : : }
9752 : : break;
9753 : : }
9754 : 279853 : case CALL_EXPR:
9755 : 279853 : switch (get_call_combined_fn (_p0))
9756 : : {
9757 : 4 : case CFN_BUILT_IN_CTZ:
9758 : 4 : if (call_expr_nargs (_p0) == 1)
9759 : : {
9760 : 4 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9761 : 4 : switch (TREE_CODE (_p1))
9762 : : {
9763 : 4 : case INTEGER_CST:
9764 : 4 : {
9765 : 4 : {
9766 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
9767 : 4 : tree res = generic_simplify_356 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR, CFN_BUILT_IN_CTZ);
9768 : 4 : if (res) return res;
9769 : : }
9770 : 0 : break;
9771 : : }
9772 : : default:;
9773 : : }
9774 : : }
9775 : : break;
9776 : 12 : case CFN_BUILT_IN_FFS:
9777 : 12 : if (call_expr_nargs (_p0) == 1)
9778 : : {
9779 : 12 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9780 : 12 : switch (TREE_CODE (_p1))
9781 : : {
9782 : 12 : case INTEGER_CST:
9783 : 12 : {
9784 : 12 : {
9785 : 12 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
9786 : 12 : tree res = generic_simplify_367 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, EQ_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_FFS);
9787 : 12 : if (res) return res;
9788 : : }
9789 : 6 : break;
9790 : : }
9791 : : default:;
9792 : : }
9793 : : }
9794 : : break;
9795 : 0 : case CFN_BUILT_IN_FFSIMAX:
9796 : 0 : if (call_expr_nargs (_p0) == 1)
9797 : : {
9798 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9799 : 0 : switch (TREE_CODE (_p1))
9800 : : {
9801 : 0 : case INTEGER_CST:
9802 : 0 : {
9803 : 0 : {
9804 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
9805 : 0 : tree res = generic_simplify_367 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, EQ_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_FFSIMAX);
9806 : 0 : if (res) return res;
9807 : : }
9808 : 0 : break;
9809 : : }
9810 : : default:;
9811 : : }
9812 : : }
9813 : : break;
9814 : 75 : case CFN_BUILT_IN_POPCOUNT:
9815 : 75 : if (call_expr_nargs (_p0) == 1)
9816 : : {
9817 : 75 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9818 : 75 : if (integer_zerop (_p1))
9819 : : {
9820 : 36 : {
9821 : 36 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9822 : 36 : tree res = generic_simplify_287 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, CFN_BUILT_IN_POPCOUNT);
9823 : 36 : if (res) return res;
9824 : : }
9825 : : }
9826 : : }
9827 : : break;
9828 : 2 : case CFN_BUILT_IN_CTZL:
9829 : 2 : if (call_expr_nargs (_p0) == 1)
9830 : : {
9831 : 2 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9832 : 2 : switch (TREE_CODE (_p1))
9833 : : {
9834 : 2 : case INTEGER_CST:
9835 : 2 : {
9836 : 2 : {
9837 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
9838 : 2 : tree res = generic_simplify_356 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR, CFN_BUILT_IN_CTZL);
9839 : 2 : if (res) return res;
9840 : : }
9841 : 0 : break;
9842 : : }
9843 : : default:;
9844 : : }
9845 : : }
9846 : : break;
9847 : 8 : case CFN_BUILT_IN_FFSL:
9848 : 8 : if (call_expr_nargs (_p0) == 1)
9849 : : {
9850 : 8 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9851 : 8 : switch (TREE_CODE (_p1))
9852 : : {
9853 : 8 : case INTEGER_CST:
9854 : 8 : {
9855 : 8 : {
9856 : 8 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
9857 : 8 : tree res = generic_simplify_367 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, EQ_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_FFSL);
9858 : 8 : if (res) return res;
9859 : : }
9860 : 4 : break;
9861 : : }
9862 : : default:;
9863 : : }
9864 : : }
9865 : : break;
9866 : 3 : case CFN_BUILT_IN_POPCOUNTLL:
9867 : 3 : if (call_expr_nargs (_p0) == 1)
9868 : : {
9869 : 3 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9870 : 3 : if (integer_zerop (_p1))
9871 : : {
9872 : 0 : {
9873 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9874 : 0 : tree res = generic_simplify_287 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, CFN_BUILT_IN_POPCOUNTLL);
9875 : 0 : if (res) return res;
9876 : : }
9877 : : }
9878 : : }
9879 : : break;
9880 : 0 : case CFN_BUILT_IN_CTZIMAX:
9881 : 0 : if (call_expr_nargs (_p0) == 1)
9882 : : {
9883 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9884 : 0 : switch (TREE_CODE (_p1))
9885 : : {
9886 : 0 : case INTEGER_CST:
9887 : 0 : {
9888 : 0 : {
9889 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
9890 : 0 : tree res = generic_simplify_356 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR, CFN_BUILT_IN_CTZIMAX);
9891 : 0 : if (res) return res;
9892 : : }
9893 : 0 : break;
9894 : : }
9895 : : default:;
9896 : : }
9897 : : }
9898 : : break;
9899 : 0 : case CFN_POPCOUNT:
9900 : 0 : if (call_expr_nargs (_p0) == 1)
9901 : : {
9902 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9903 : 0 : if (integer_zerop (_p1))
9904 : : {
9905 : 0 : {
9906 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9907 : 0 : tree res = generic_simplify_287 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, CFN_POPCOUNT);
9908 : 0 : if (res) return res;
9909 : : }
9910 : : }
9911 : : }
9912 : : break;
9913 : 0 : case CFN_CTZ:
9914 : 0 : if (call_expr_nargs (_p0) == 2)
9915 : : {
9916 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9917 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
9918 : 0 : switch (TREE_CODE (_p1))
9919 : : {
9920 : 0 : case INTEGER_CST:
9921 : 0 : {
9922 : 0 : {
9923 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
9924 : 0 : tree res = generic_simplify_357 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
9925 : 0 : if (res) return res;
9926 : : }
9927 : 0 : break;
9928 : : }
9929 : : default:;
9930 : : }
9931 : : }
9932 : 0 : if (call_expr_nargs (_p0) == 1)
9933 : : {
9934 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9935 : 0 : switch (TREE_CODE (_p1))
9936 : : {
9937 : 0 : case INTEGER_CST:
9938 : 0 : {
9939 : 0 : {
9940 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
9941 : 0 : tree res = generic_simplify_356 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR, CFN_CTZ);
9942 : 0 : if (res) return res;
9943 : : }
9944 : 0 : break;
9945 : : }
9946 : : default:;
9947 : : }
9948 : : }
9949 : : break;
9950 : 0 : case CFN_FFS:
9951 : 0 : if (call_expr_nargs (_p0) == 1)
9952 : : {
9953 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9954 : 0 : switch (TREE_CODE (_p1))
9955 : : {
9956 : 0 : case INTEGER_CST:
9957 : 0 : {
9958 : 0 : {
9959 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
9960 : 0 : tree res = generic_simplify_367 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, EQ_EXPR, BIT_AND_EXPR, CFN_FFS);
9961 : 0 : if (res) return res;
9962 : : }
9963 : 0 : break;
9964 : : }
9965 : : default:;
9966 : : }
9967 : : }
9968 : : break;
9969 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
9970 : 0 : if (call_expr_nargs (_p0) == 1)
9971 : : {
9972 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9973 : 0 : if (integer_zerop (_p1))
9974 : : {
9975 : 0 : {
9976 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9977 : 0 : tree res = generic_simplify_287 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
9978 : 0 : if (res) return res;
9979 : : }
9980 : : }
9981 : : }
9982 : : break;
9983 : 3 : case CFN_BUILT_IN_POPCOUNTL:
9984 : 3 : if (call_expr_nargs (_p0) == 1)
9985 : : {
9986 : 3 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9987 : 3 : if (integer_zerop (_p1))
9988 : : {
9989 : 0 : {
9990 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9991 : 0 : tree res = generic_simplify_287 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, CFN_BUILT_IN_POPCOUNTL);
9992 : 0 : if (res) return res;
9993 : : }
9994 : : }
9995 : : }
9996 : : break;
9997 : 18 : case CFN_BUILT_IN_CTZLL:
9998 : 18 : if (call_expr_nargs (_p0) == 1)
9999 : : {
10000 : 18 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10001 : 18 : switch (TREE_CODE (_p1))
10002 : : {
10003 : 18 : case INTEGER_CST:
10004 : 18 : {
10005 : 18 : {
10006 : 18 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10007 : 18 : tree res = generic_simplify_356 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR, CFN_BUILT_IN_CTZLL);
10008 : 18 : if (res) return res;
10009 : : }
10010 : 16 : break;
10011 : : }
10012 : : default:;
10013 : : }
10014 : : }
10015 : : break;
10016 : 9 : case CFN_BUILT_IN_FFSLL:
10017 : 9 : if (call_expr_nargs (_p0) == 1)
10018 : : {
10019 : 9 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10020 : 9 : switch (TREE_CODE (_p1))
10021 : : {
10022 : 9 : case INTEGER_CST:
10023 : 9 : {
10024 : 9 : {
10025 : 9 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10026 : 9 : tree res = generic_simplify_367 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, EQ_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_FFSLL);
10027 : 9 : if (res) return res;
10028 : : }
10029 : 4 : break;
10030 : : }
10031 : : default:;
10032 : : }
10033 : : }
10034 : : break;
10035 : : default:;
10036 : : }
10037 : : break;
10038 : : default:;
10039 : : }
10040 : : return NULL_TREE;
10041 : : }
10042 : :
10043 : : tree
10044 : 6636948 : generic_simplify_BIT_AND_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
10045 : : {
10046 : 6636948 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
10047 : 6636948 : switch (TREE_CODE (_p0))
10048 : : {
10049 : 35938 : case LSHIFT_EXPR:
10050 : 35938 : {
10051 : 35938 : tree _q20 = TREE_OPERAND (_p0, 0);
10052 : 35938 : tree _q21 = TREE_OPERAND (_p0, 1);
10053 : 35938 : switch (TREE_CODE (_p1))
10054 : : {
10055 : 1 : case LSHIFT_EXPR:
10056 : 1 : {
10057 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
10058 : 1 : tree _q51 = TREE_OPERAND (_p1, 1);
10059 : 1 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10060 : : {
10061 : 1 : {
10062 : 1 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
10063 : 1 : tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10064 : 1 : if (res) return res;
10065 : : }
10066 : : }
10067 : : break;
10068 : : }
10069 : : default:;
10070 : : }
10071 : : break;
10072 : : }
10073 : 67782 : case RSHIFT_EXPR:
10074 : 67782 : {
10075 : 67782 : tree _q20 = TREE_OPERAND (_p0, 0);
10076 : 67782 : tree _q21 = TREE_OPERAND (_p0, 1);
10077 : 67782 : switch (TREE_CODE (_p1))
10078 : : {
10079 : 2 : case RSHIFT_EXPR:
10080 : 2 : {
10081 : 2 : tree _q50 = TREE_OPERAND (_p1, 0);
10082 : 2 : tree _q51 = TREE_OPERAND (_p1, 1);
10083 : 2 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10084 : : {
10085 : 2 : {
10086 : 2 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
10087 : 2 : tree res = generic_simplify_64 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10088 : 2 : if (res) return res;
10089 : : }
10090 : : }
10091 : : break;
10092 : : }
10093 : : default:;
10094 : : }
10095 : : break;
10096 : : }
10097 : 1932375 : CASE_CONVERT:
10098 : 1932375 : {
10099 : 1932375 : tree _q20 = TREE_OPERAND (_p0, 0);
10100 : 1932375 : switch (TREE_CODE (_p1))
10101 : : {
10102 : 767354 : CASE_CONVERT:
10103 : 767354 : {
10104 : 767354 : tree _q40 = TREE_OPERAND (_p1, 0);
10105 : 767354 : {
10106 : 767354 : tree _q40_pops[1];
10107 : 767354 : if (tree_maybe_bit_not (_q40, _q40_pops))
10108 : : {
10109 : 250 : tree _q50 = _q40_pops[0];
10110 : 250 : {
10111 : 250 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q50 };
10112 : 250 : tree res = generic_simplify_401 (loc, type, _p0, _p1, captures);
10113 : 250 : if (res) return res;
10114 : : }
10115 : : }
10116 : : }
10117 : 767354 : break;
10118 : : }
10119 : 1932375 : default:;
10120 : : }
10121 : 1932375 : {
10122 : 1932375 : tree _q20_pops[1];
10123 : 1932375 : if (tree_maybe_bit_not (_q20, _q20_pops))
10124 : : {
10125 : 427 : tree _q30 = _q20_pops[0];
10126 : 427 : switch (TREE_CODE (_p1))
10127 : : {
10128 : 254 : CASE_CONVERT:
10129 : 254 : {
10130 : 254 : tree _q50 = TREE_OPERAND (_p1, 0);
10131 : 254 : {
10132 : 254 : tree captures[2] ATTRIBUTE_UNUSED = { _q50, _q30 };
10133 : 254 : tree res = generic_simplify_401 (loc, type, _p0, _p1, captures);
10134 : 254 : if (res) return res;
10135 : : }
10136 : 254 : break;
10137 : : }
10138 : : default:;
10139 : : }
10140 : : }
10141 : : }
10142 : 1932375 : break;
10143 : : }
10144 : 6636945 : default:;
10145 : : }
10146 : 6636945 : {
10147 : 6636945 : tree _p1_pops[1];
10148 : 6636945 : if (tree_maybe_bit_not (_p1, _p1_pops))
10149 : : {
10150 : 4818238 : tree _q30 = _p1_pops[0];
10151 : 4818238 : {
10152 : 4818238 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
10153 : 4818238 : tree res = generic_simplify_401 (loc, type, _p0, _p1, captures);
10154 : 4818238 : if (res) return res;
10155 : : }
10156 : : }
10157 : : }
10158 : 6636929 : {
10159 : 6636929 : tree _p0_pops[1];
10160 : 6636929 : if (tree_maybe_bit_not (_p0, _p0_pops))
10161 : : {
10162 : 41241 : tree _q20 = _p0_pops[0];
10163 : 41241 : {
10164 : 41241 : tree captures[2] ATTRIBUTE_UNUSED = { _p1, _q20 };
10165 : 41241 : tree res = generic_simplify_401 (loc, type, _p0, _p1, captures);
10166 : 41241 : if (res) return res;
10167 : : }
10168 : : }
10169 : : }
10170 : 6636832 : switch (TREE_CODE (_p1))
10171 : : {
10172 : 20560 : case PLUS_EXPR:
10173 : 20560 : {
10174 : 20560 : tree _q30 = TREE_OPERAND (_p1, 0);
10175 : 20560 : tree _q31 = TREE_OPERAND (_p1, 1);
10176 : 20560 : switch (TREE_CODE (_q30))
10177 : : {
10178 : 163 : case LSHIFT_EXPR:
10179 : 163 : {
10180 : 163 : tree _q40 = TREE_OPERAND (_q30, 0);
10181 : 163 : tree _q41 = TREE_OPERAND (_q30, 1);
10182 : 163 : if (integer_onep (_q40))
10183 : : {
10184 : 163 : if (integer_minus_onep (_q31))
10185 : : {
10186 : 163 : {
10187 : 163 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q41 };
10188 : 163 : if (TYPE_UNSIGNED (type)
10189 : : )
10190 : : {
10191 : 163 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1702;
10192 : 163 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1702;
10193 : 163 : {
10194 : 163 : tree res_op0;
10195 : 163 : res_op0 = captures[0];
10196 : 163 : tree res_op1;
10197 : 163 : {
10198 : 163 : tree _o1[1], _r1;
10199 : 163 : {
10200 : 163 : tree _o2[2], _r2;
10201 : 163 : _o2[0] = build_all_ones_cst (type);
10202 : 163 : _o2[1] = captures[3];
10203 : 163 : _r2 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
10204 : 163 : _o1[0] = _r2;
10205 : : }
10206 : 163 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
10207 : 163 : res_op1 = _r1;
10208 : : }
10209 : 163 : tree _r;
10210 : 163 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
10211 : 163 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1017, __FILE__, __LINE__, true);
10212 : 163 : return _r;
10213 : : }
10214 : 0 : next_after_fail1702:;
10215 : : }
10216 : : }
10217 : : }
10218 : : }
10219 : : break;
10220 : : }
10221 : : default:;
10222 : : }
10223 : : break;
10224 : : }
10225 : 6636669 : default:;
10226 : : }
10227 : 6636669 : switch (TREE_CODE (_p0))
10228 : : {
10229 : 303173 : case PLUS_EXPR:
10230 : 303173 : {
10231 : 303173 : tree _q20 = TREE_OPERAND (_p0, 0);
10232 : 303173 : tree _q21 = TREE_OPERAND (_p0, 1);
10233 : 303173 : switch (TREE_CODE (_q20))
10234 : : {
10235 : 169 : case LSHIFT_EXPR:
10236 : 169 : {
10237 : 169 : tree _q30 = TREE_OPERAND (_q20, 0);
10238 : 169 : tree _q31 = TREE_OPERAND (_q20, 1);
10239 : 169 : if (integer_onep (_q30))
10240 : : {
10241 : 162 : if (integer_minus_onep (_q21))
10242 : : {
10243 : 162 : {
10244 : 162 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _p0, _q20, _q31 };
10245 : 162 : if (TYPE_UNSIGNED (type)
10246 : : )
10247 : : {
10248 : 134 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1703;
10249 : 134 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1703;
10250 : 134 : {
10251 : 134 : tree res_op0;
10252 : 134 : res_op0 = captures[0];
10253 : 134 : tree res_op1;
10254 : 134 : {
10255 : 134 : tree _o1[1], _r1;
10256 : 134 : {
10257 : 134 : tree _o2[2], _r2;
10258 : 134 : _o2[0] = build_all_ones_cst (type);
10259 : 134 : _o2[1] = captures[3];
10260 : 134 : _r2 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
10261 : 134 : _o1[0] = _r2;
10262 : : }
10263 : 134 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
10264 : 134 : res_op1 = _r1;
10265 : : }
10266 : 134 : tree _r;
10267 : 134 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
10268 : 134 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1017, __FILE__, __LINE__, true);
10269 : 134 : return _r;
10270 : : }
10271 : 28 : next_after_fail1703:;
10272 : : }
10273 : : }
10274 : : }
10275 : : }
10276 : : break;
10277 : : }
10278 : : default:;
10279 : : }
10280 : : break;
10281 : : }
10282 : 901 : case EQ_EXPR:
10283 : 901 : {
10284 : 901 : tree _q20 = TREE_OPERAND (_p0, 0);
10285 : 901 : tree _q21 = TREE_OPERAND (_p0, 1);
10286 : 901 : if (integer_zerop (_q21))
10287 : : {
10288 : 598 : switch (TREE_CODE (_p1))
10289 : : {
10290 : 30 : case EQ_EXPR:
10291 : 30 : {
10292 : 30 : tree _q50 = TREE_OPERAND (_p1, 0);
10293 : 30 : tree _q51 = TREE_OPERAND (_p1, 1);
10294 : 30 : if (integer_zerop (_q51))
10295 : : {
10296 : 8 : {
10297 : 8 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
10298 : 8 : tree res = generic_simplify_65 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, EQ_EXPR);
10299 : 8 : if (res) return res;
10300 : : }
10301 : : }
10302 : : break;
10303 : : }
10304 : : default:;
10305 : : }
10306 : : }
10307 : 893 : if (integer_all_onesp (_q21))
10308 : : {
10309 : 0 : switch (TREE_CODE (_p1))
10310 : : {
10311 : 0 : case EQ_EXPR:
10312 : 0 : {
10313 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
10314 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
10315 : 0 : if (integer_all_onesp (_q51))
10316 : : {
10317 : 0 : {
10318 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
10319 : 0 : tree res = generic_simplify_66 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, EQ_EXPR);
10320 : 0 : if (res) return res;
10321 : : }
10322 : : }
10323 : : break;
10324 : : }
10325 : : default:;
10326 : : }
10327 : : }
10328 : 893 : switch (TREE_CODE (_p1))
10329 : : {
10330 : 8 : case BIT_IOR_EXPR:
10331 : 8 : {
10332 : 8 : tree _q50 = TREE_OPERAND (_p1, 0);
10333 : 8 : tree _q51 = TREE_OPERAND (_p1, 1);
10334 : 8 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
10335 : : {
10336 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10337 : : {
10338 : 0 : {
10339 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10340 : 0 : tree res = generic_simplify_402 (loc, type, _p0, _p1, captures);
10341 : 0 : if (res) return res;
10342 : : }
10343 : : }
10344 : : }
10345 : 8 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
10346 : : {
10347 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
10348 : : {
10349 : 0 : {
10350 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
10351 : 0 : tree res = generic_simplify_402 (loc, type, _p0, _p1, captures);
10352 : 0 : if (res) return res;
10353 : : }
10354 : : }
10355 : : }
10356 : : break;
10357 : : }
10358 : 893 : default:;
10359 : : }
10360 : 893 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
10361 : : {
10362 : 12 : {
10363 : 12 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10364 : 12 : tree res = generic_simplify_403 (loc, type, _p0, _p1, captures);
10365 : 12 : if (res) return res;
10366 : : }
10367 : : }
10368 : 893 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
10369 : : {
10370 : 8 : {
10371 : 8 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
10372 : 8 : tree res = generic_simplify_403 (loc, type, _p0, _p1, captures);
10373 : 8 : if (res) return res;
10374 : : }
10375 : : }
10376 : : break;
10377 : : }
10378 : 1592 : case BIT_IOR_EXPR:
10379 : 1592 : {
10380 : 1592 : tree _q20 = TREE_OPERAND (_p0, 0);
10381 : 1592 : tree _q21 = TREE_OPERAND (_p0, 1);
10382 : 1592 : switch (TREE_CODE (_p1))
10383 : : {
10384 : 169 : case BIT_NOT_EXPR:
10385 : 169 : {
10386 : 169 : tree _q50 = TREE_OPERAND (_p1, 0);
10387 : 169 : switch (TREE_CODE (_q50))
10388 : : {
10389 : 6 : case BIT_XOR_EXPR:
10390 : 6 : {
10391 : 6 : tree _q60 = TREE_OPERAND (_q50, 0);
10392 : 6 : tree _q61 = TREE_OPERAND (_q50, 1);
10393 : 6 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
10394 : : {
10395 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
10396 : : {
10397 : 0 : {
10398 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10399 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures);
10400 : 0 : if (res) return res;
10401 : : }
10402 : : }
10403 : : }
10404 : 6 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
10405 : : {
10406 : 0 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
10407 : : {
10408 : 0 : {
10409 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10410 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures);
10411 : 0 : if (res) return res;
10412 : : }
10413 : : }
10414 : : }
10415 : : break;
10416 : : }
10417 : : default:;
10418 : : }
10419 : : break;
10420 : : }
10421 : 24 : case EQ_EXPR:
10422 : 24 : {
10423 : 24 : tree _q50 = TREE_OPERAND (_p1, 0);
10424 : 24 : tree _q51 = TREE_OPERAND (_p1, 1);
10425 : 24 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
10426 : : {
10427 : 8 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10428 : : {
10429 : 8 : {
10430 : 8 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10431 : 8 : tree res = generic_simplify_402 (loc, type, _p0, _p1, captures);
10432 : 8 : if (res) return res;
10433 : : }
10434 : : }
10435 : : }
10436 : 24 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
10437 : : {
10438 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
10439 : : {
10440 : 0 : {
10441 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10442 : 0 : tree res = generic_simplify_402 (loc, type, _p0, _p1, captures);
10443 : 0 : if (res) return res;
10444 : : }
10445 : : }
10446 : : }
10447 : : break;
10448 : : }
10449 : 1592 : default:;
10450 : : }
10451 : 1592 : {
10452 : 1592 : tree _p1_pops[1];
10453 : 1592 : if (tree_nop_convert (_p1, _p1_pops))
10454 : : {
10455 : 139 : tree _q50 = _p1_pops[0];
10456 : 139 : switch (TREE_CODE (_q50))
10457 : : {
10458 : 0 : case EQ_EXPR:
10459 : 0 : {
10460 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
10461 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
10462 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
10463 : : {
10464 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
10465 : : {
10466 : 0 : {
10467 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10468 : 0 : tree res = generic_simplify_402 (loc, type, _p0, _p1, captures);
10469 : 0 : if (res) return res;
10470 : : }
10471 : : }
10472 : : }
10473 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
10474 : : {
10475 : 0 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
10476 : : {
10477 : 0 : {
10478 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10479 : 0 : tree res = generic_simplify_402 (loc, type, _p0, _p1, captures);
10480 : 0 : if (res) return res;
10481 : : }
10482 : : }
10483 : : }
10484 : : break;
10485 : : }
10486 : : default:;
10487 : : }
10488 : : }
10489 : : }
10490 : 1592 : break;
10491 : : }
10492 : 38448 : case BIT_NOT_EXPR:
10493 : 38448 : {
10494 : 38448 : tree _q20 = TREE_OPERAND (_p0, 0);
10495 : 38448 : switch (TREE_CODE (_q20))
10496 : : {
10497 : 140 : case BIT_XOR_EXPR:
10498 : 140 : {
10499 : 140 : tree _q30 = TREE_OPERAND (_q20, 0);
10500 : 140 : tree _q31 = TREE_OPERAND (_q20, 1);
10501 : 140 : switch (TREE_CODE (_p1))
10502 : : {
10503 : 48 : case BIT_IOR_EXPR:
10504 : 48 : {
10505 : 48 : tree _q60 = TREE_OPERAND (_p1, 0);
10506 : 48 : tree _q61 = TREE_OPERAND (_p1, 1);
10507 : 48 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
10508 : : {
10509 : 6 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
10510 : : {
10511 : 0 : {
10512 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
10513 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures);
10514 : 0 : if (res) return res;
10515 : : }
10516 : : }
10517 : : }
10518 : 48 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q31, 0) && types_match (_q60, _q31)))
10519 : : {
10520 : 3 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
10521 : : {
10522 : 0 : {
10523 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q31, _q30 };
10524 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures);
10525 : 0 : if (res) return res;
10526 : : }
10527 : : }
10528 : : }
10529 : : break;
10530 : : }
10531 : 140 : default:;
10532 : : }
10533 : 140 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
10534 : : {
10535 : 1 : {
10536 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
10537 : 1 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures);
10538 : 1 : if (res) return res;
10539 : : }
10540 : : }
10541 : 139 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
10542 : : {
10543 : 0 : {
10544 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q31, _q30 };
10545 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures);
10546 : 0 : if (res) return res;
10547 : : }
10548 : : }
10549 : : break;
10550 : : }
10551 : : default:;
10552 : : }
10553 : : break;
10554 : : }
10555 : 6636526 : default:;
10556 : : }
10557 : 6636526 : {
10558 : 6636526 : tree _p0_pops[1];
10559 : 6636526 : if (tree_nop_convert (_p0, _p0_pops))
10560 : : {
10561 : 1266914 : tree _q20 = _p0_pops[0];
10562 : 1266914 : switch (TREE_CODE (_q20))
10563 : : {
10564 : 0 : case EQ_EXPR:
10565 : 0 : {
10566 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
10567 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
10568 : 0 : switch (TREE_CODE (_p1))
10569 : : {
10570 : 0 : case BIT_IOR_EXPR:
10571 : 0 : {
10572 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
10573 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
10574 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
10575 : : {
10576 : 0 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
10577 : : {
10578 : 0 : {
10579 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
10580 : 0 : tree res = generic_simplify_402 (loc, type, _p0, _p1, captures);
10581 : 0 : if (res) return res;
10582 : : }
10583 : : }
10584 : : }
10585 : 0 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q31, 0) && types_match (_q60, _q31)))
10586 : : {
10587 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
10588 : : {
10589 : 0 : {
10590 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q31, _q30 };
10591 : 0 : tree res = generic_simplify_402 (loc, type, _p0, _p1, captures);
10592 : 0 : if (res) return res;
10593 : : }
10594 : : }
10595 : : }
10596 : : break;
10597 : : }
10598 : 0 : default:;
10599 : : }
10600 : 0 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
10601 : : {
10602 : 0 : {
10603 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
10604 : 0 : tree res = generic_simplify_403 (loc, type, _p0, _p1, captures);
10605 : 0 : if (res) return res;
10606 : : }
10607 : : }
10608 : 0 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
10609 : : {
10610 : 0 : {
10611 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q31, _q30 };
10612 : 0 : tree res = generic_simplify_403 (loc, type, _p0, _p1, captures);
10613 : 0 : if (res) return res;
10614 : : }
10615 : : }
10616 : : break;
10617 : : }
10618 : : default:;
10619 : : }
10620 : : }
10621 : : }
10622 : 6636526 : switch (TREE_CODE (_p1))
10623 : : {
10624 : 24350 : case BIT_NOT_EXPR:
10625 : 24350 : {
10626 : 24350 : tree _q30 = TREE_OPERAND (_p1, 0);
10627 : 24350 : switch (TREE_CODE (_q30))
10628 : : {
10629 : 6 : case BIT_XOR_EXPR:
10630 : 6 : {
10631 : 6 : tree _q40 = TREE_OPERAND (_q30, 0);
10632 : 6 : tree _q41 = TREE_OPERAND (_q30, 1);
10633 : 6 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
10634 : : {
10635 : 0 : {
10636 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
10637 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures);
10638 : 0 : if (res) return res;
10639 : : }
10640 : : }
10641 : 6 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
10642 : : {
10643 : 0 : {
10644 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q40 };
10645 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures);
10646 : 0 : if (res) return res;
10647 : : }
10648 : : }
10649 : : break;
10650 : : }
10651 : : default:;
10652 : : }
10653 : : break;
10654 : : }
10655 : 6636526 : default:;
10656 : : }
10657 : 6636526 : switch (TREE_CODE (_p0))
10658 : : {
10659 : 303039 : case PLUS_EXPR:
10660 : 303039 : {
10661 : 303039 : tree _q20 = TREE_OPERAND (_p0, 0);
10662 : 303039 : tree _q21 = TREE_OPERAND (_p0, 1);
10663 : 303039 : if (integer_minus_onep (_q21))
10664 : : {
10665 : 116292 : switch (TREE_CODE (_p1))
10666 : : {
10667 : 10861 : case NEGATE_EXPR:
10668 : 10861 : {
10669 : 10861 : tree _q50 = TREE_OPERAND (_p1, 0);
10670 : 10861 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
10671 : : {
10672 : 9 : {
10673 : 9 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
10674 : 9 : tree res = generic_simplify_73 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10675 : 9 : if (res) return res;
10676 : : }
10677 : : }
10678 : : break;
10679 : : }
10680 : : default:;
10681 : : }
10682 : : }
10683 : : break;
10684 : : }
10685 : 46690 : case NEGATE_EXPR:
10686 : 46690 : {
10687 : 46690 : tree _q20 = TREE_OPERAND (_p0, 0);
10688 : 46690 : switch (TREE_CODE (_p1))
10689 : : {
10690 : 26 : case PLUS_EXPR:
10691 : 26 : {
10692 : 26 : tree _q40 = TREE_OPERAND (_p1, 0);
10693 : 26 : tree _q41 = TREE_OPERAND (_p1, 1);
10694 : 26 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
10695 : : {
10696 : 0 : if (integer_minus_onep (_q41))
10697 : : {
10698 : 0 : {
10699 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
10700 : 0 : tree res = generic_simplify_74 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10701 : 0 : if (res) return res;
10702 : : }
10703 : : }
10704 : : }
10705 : : break;
10706 : : }
10707 : 0 : case MINUS_EXPR:
10708 : 0 : {
10709 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
10710 : 0 : tree _q41 = TREE_OPERAND (_p1, 1);
10711 : 0 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
10712 : : {
10713 : 0 : if (integer_onep (_q41))
10714 : : {
10715 : 0 : {
10716 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
10717 : 0 : tree res = generic_simplify_75 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10718 : 0 : if (res) return res;
10719 : : }
10720 : : }
10721 : : }
10722 : : break;
10723 : : }
10724 : : default:;
10725 : : }
10726 : : break;
10727 : : }
10728 : 687958 : case MINUS_EXPR:
10729 : 687958 : {
10730 : 687958 : tree _q20 = TREE_OPERAND (_p0, 0);
10731 : 687958 : tree _q21 = TREE_OPERAND (_p0, 1);
10732 : 687958 : if (integer_onep (_q21))
10733 : : {
10734 : 1988 : switch (TREE_CODE (_p1))
10735 : : {
10736 : 0 : case NEGATE_EXPR:
10737 : 0 : {
10738 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
10739 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
10740 : : {
10741 : 0 : {
10742 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
10743 : 0 : tree res = generic_simplify_76 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10744 : 0 : if (res) return res;
10745 : : }
10746 : : }
10747 : : break;
10748 : : }
10749 : : default:;
10750 : : }
10751 : : }
10752 : : break;
10753 : : }
10754 : 6636517 : default:;
10755 : : }
10756 : 6636517 : switch (TREE_CODE (_p1))
10757 : : {
10758 : 1349 : case EQ_EXPR:
10759 : 1349 : {
10760 : 1349 : tree _q30 = TREE_OPERAND (_p1, 0);
10761 : 1349 : tree _q31 = TREE_OPERAND (_p1, 1);
10762 : 1349 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
10763 : : {
10764 : 1 : {
10765 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
10766 : 1 : tree res = generic_simplify_403 (loc, type, _p0, _p1, captures);
10767 : 1 : if (res) return res;
10768 : : }
10769 : : }
10770 : 1349 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
10771 : : {
10772 : 0 : {
10773 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
10774 : 0 : tree res = generic_simplify_403 (loc, type, _p0, _p1, captures);
10775 : 0 : if (res) return res;
10776 : : }
10777 : : }
10778 : : break;
10779 : : }
10780 : 257 : case BIT_XOR_EXPR:
10781 : 257 : {
10782 : 257 : tree _q30 = TREE_OPERAND (_p1, 0);
10783 : 257 : tree _q31 = TREE_OPERAND (_p1, 1);
10784 : 257 : {
10785 : 257 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q31 };
10786 : 257 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures);
10787 : 257 : if (res) return res;
10788 : : }
10789 : 256 : {
10790 : 256 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q31, _q30 };
10791 : 256 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures);
10792 : 256 : if (res) return res;
10793 : : }
10794 : 256 : break;
10795 : : }
10796 : 6636516 : default:;
10797 : : }
10798 : 6636516 : {
10799 : 6636516 : tree _p1_pops[1];
10800 : 6636516 : if (tree_nop_convert (_p1, _p1_pops))
10801 : : {
10802 : 876734 : tree _q30 = _p1_pops[0];
10803 : 876734 : switch (TREE_CODE (_q30))
10804 : : {
10805 : 0 : case EQ_EXPR:
10806 : 0 : {
10807 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
10808 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
10809 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
10810 : : {
10811 : 0 : {
10812 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
10813 : 0 : tree res = generic_simplify_403 (loc, type, _p0, _p1, captures);
10814 : 0 : if (res) return res;
10815 : : }
10816 : : }
10817 : 0 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
10818 : : {
10819 : 0 : {
10820 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q40 };
10821 : 0 : tree res = generic_simplify_403 (loc, type, _p0, _p1, captures);
10822 : 0 : if (res) return res;
10823 : : }
10824 : : }
10825 : : break;
10826 : : }
10827 : : default:;
10828 : : }
10829 : : }
10830 : : }
10831 : 6636516 : switch (TREE_CODE (_p0))
10832 : : {
10833 : 20361 : case BIT_XOR_EXPR:
10834 : 20361 : {
10835 : 20361 : tree _q20 = TREE_OPERAND (_p0, 0);
10836 : 20361 : tree _q21 = TREE_OPERAND (_p0, 1);
10837 : 20361 : {
10838 : 20361 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q21 };
10839 : 20361 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures);
10840 : 20361 : if (res) return res;
10841 : : }
10842 : 20361 : {
10843 : 20361 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q21, _q20 };
10844 : 20361 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures);
10845 : 20361 : if (res) return res;
10846 : : }
10847 : 20361 : switch (TREE_CODE (_p1))
10848 : : {
10849 : 152 : case BIT_XOR_EXPR:
10850 : 152 : {
10851 : 152 : tree _q50 = TREE_OPERAND (_p1, 0);
10852 : 152 : tree _q51 = TREE_OPERAND (_p1, 1);
10853 : 152 : switch (TREE_CODE (_q50))
10854 : : {
10855 : 3 : case BIT_XOR_EXPR:
10856 : 3 : {
10857 : 3 : tree _q60 = TREE_OPERAND (_q50, 0);
10858 : 3 : tree _q61 = TREE_OPERAND (_q50, 1);
10859 : 3 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
10860 : : {
10861 : 2 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
10862 : : {
10863 : 1 : {
10864 : 1 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q61 };
10865 : 1 : tree res = generic_simplify_407 (loc, type, _p0, _p1, captures);
10866 : 1 : if (res) return res;
10867 : : }
10868 : : }
10869 : : }
10870 : 2 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
10871 : : {
10872 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
10873 : : {
10874 : 0 : {
10875 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q60 };
10876 : 0 : tree res = generic_simplify_407 (loc, type, _p0, _p1, captures);
10877 : 0 : if (res) return res;
10878 : : }
10879 : : }
10880 : : }
10881 : 2 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
10882 : : {
10883 : 1 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10884 : : {
10885 : 1 : {
10886 : 1 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q61 };
10887 : 1 : tree res = generic_simplify_407 (loc, type, _p0, _p1, captures);
10888 : 1 : if (res) return res;
10889 : : }
10890 : : }
10891 : : }
10892 : 1 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
10893 : : {
10894 : 1 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10895 : : {
10896 : 0 : {
10897 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q60 };
10898 : 0 : tree res = generic_simplify_407 (loc, type, _p0, _p1, captures);
10899 : 0 : if (res) return res;
10900 : : }
10901 : : }
10902 : : }
10903 : : break;
10904 : : }
10905 : 150 : default:;
10906 : : }
10907 : 150 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
10908 : : {
10909 : 47 : switch (TREE_CODE (_q51))
10910 : : {
10911 : 0 : case BIT_XOR_EXPR:
10912 : 0 : {
10913 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
10914 : 0 : tree _q71 = TREE_OPERAND (_q51, 1);
10915 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
10916 : : {
10917 : 0 : {
10918 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q71 };
10919 : 0 : tree res = generic_simplify_407 (loc, type, _p0, _p1, captures);
10920 : 0 : if (res) return res;
10921 : : }
10922 : : }
10923 : 0 : if ((_q71 == _q21 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q21, 0) && types_match (_q71, _q21)))
10924 : : {
10925 : 0 : {
10926 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q70 };
10927 : 0 : tree res = generic_simplify_407 (loc, type, _p0, _p1, captures);
10928 : 0 : if (res) return res;
10929 : : }
10930 : : }
10931 : : break;
10932 : : }
10933 : : default:;
10934 : : }
10935 : : }
10936 : 150 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
10937 : : {
10938 : 0 : switch (TREE_CODE (_q51))
10939 : : {
10940 : 0 : case BIT_XOR_EXPR:
10941 : 0 : {
10942 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
10943 : 0 : tree _q71 = TREE_OPERAND (_q51, 1);
10944 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
10945 : : {
10946 : 0 : {
10947 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q71 };
10948 : 0 : tree res = generic_simplify_407 (loc, type, _p0, _p1, captures);
10949 : 0 : if (res) return res;
10950 : : }
10951 : : }
10952 : 0 : if ((_q71 == _q20 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q20, 0) && types_match (_q71, _q20)))
10953 : : {
10954 : 0 : {
10955 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q70 };
10956 : 0 : tree res = generic_simplify_407 (loc, type, _p0, _p1, captures);
10957 : 0 : if (res) return res;
10958 : : }
10959 : : }
10960 : : break;
10961 : : }
10962 : : default:;
10963 : : }
10964 : : }
10965 : : break;
10966 : : }
10967 : 20359 : default:;
10968 : : }
10969 : 20359 : switch (TREE_CODE (_q20))
10970 : : {
10971 : 11 : case BIT_XOR_EXPR:
10972 : 11 : {
10973 : 11 : tree _q30 = TREE_OPERAND (_q20, 0);
10974 : 11 : tree _q31 = TREE_OPERAND (_q20, 1);
10975 : 11 : switch (TREE_CODE (_p1))
10976 : : {
10977 : 0 : case BIT_XOR_EXPR:
10978 : 0 : {
10979 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
10980 : 0 : tree _q71 = TREE_OPERAND (_p1, 1);
10981 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
10982 : : {
10983 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
10984 : : {
10985 : 0 : {
10986 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q30, _p0, _q20, _q31 };
10987 : 0 : tree res = generic_simplify_408 (loc, type, _p0, _p1, captures);
10988 : 0 : if (res) return res;
10989 : : }
10990 : : }
10991 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
10992 : : {
10993 : 0 : {
10994 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q31, _p0, _q20, _q30 };
10995 : 0 : tree res = generic_simplify_408 (loc, type, _p0, _p1, captures);
10996 : 0 : if (res) return res;
10997 : : }
10998 : : }
10999 : : }
11000 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
11001 : : {
11002 : 0 : if ((_q71 == _q21 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q21, 0) && types_match (_q71, _q21)))
11003 : : {
11004 : 0 : {
11005 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q30, _p0, _q20, _q31 };
11006 : 0 : tree res = generic_simplify_408 (loc, type, _p0, _p1, captures);
11007 : 0 : if (res) return res;
11008 : : }
11009 : : }
11010 : : }
11011 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
11012 : : {
11013 : 0 : if ((_q71 == _q21 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q21, 0) && types_match (_q71, _q21)))
11014 : : {
11015 : 0 : {
11016 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q31, _p0, _q20, _q30 };
11017 : 0 : tree res = generic_simplify_408 (loc, type, _p0, _p1, captures);
11018 : 0 : if (res) return res;
11019 : : }
11020 : : }
11021 : : }
11022 : : break;
11023 : : }
11024 : : default:;
11025 : : }
11026 : : break;
11027 : : }
11028 : 20359 : default:;
11029 : : }
11030 : 20359 : switch (TREE_CODE (_q21))
11031 : : {
11032 : 0 : case BIT_XOR_EXPR:
11033 : 0 : {
11034 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
11035 : 0 : tree _q41 = TREE_OPERAND (_q21, 1);
11036 : 0 : switch (TREE_CODE (_p1))
11037 : : {
11038 : 0 : case BIT_XOR_EXPR:
11039 : 0 : {
11040 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
11041 : 0 : tree _q71 = TREE_OPERAND (_p1, 1);
11042 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
11043 : : {
11044 : 0 : if ((_q71 == _q40 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q40, 0) && types_match (_q71, _q40)))
11045 : : {
11046 : 0 : {
11047 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q40, _p0, _q21, _q41 };
11048 : 0 : tree res = generic_simplify_408 (loc, type, _p0, _p1, captures);
11049 : 0 : if (res) return res;
11050 : : }
11051 : : }
11052 : 0 : if ((_q71 == _q41 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q41, 0) && types_match (_q71, _q41)))
11053 : : {
11054 : 0 : {
11055 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q41, _p0, _q21, _q40 };
11056 : 0 : tree res = generic_simplify_408 (loc, type, _p0, _p1, captures);
11057 : 0 : if (res) return res;
11058 : : }
11059 : : }
11060 : : }
11061 : 0 : if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
11062 : : {
11063 : 0 : if ((_q71 == _q20 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q20, 0) && types_match (_q71, _q20)))
11064 : : {
11065 : 0 : {
11066 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q40, _p0, _q21, _q41 };
11067 : 0 : tree res = generic_simplify_408 (loc, type, _p0, _p1, captures);
11068 : 0 : if (res) return res;
11069 : : }
11070 : : }
11071 : : }
11072 : 0 : if ((_q70 == _q41 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q41, 0) && types_match (_q70, _q41)))
11073 : : {
11074 : 0 : if ((_q71 == _q20 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q20, 0) && types_match (_q71, _q20)))
11075 : : {
11076 : 0 : {
11077 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q41, _p0, _q21, _q40 };
11078 : 0 : tree res = generic_simplify_408 (loc, type, _p0, _p1, captures);
11079 : 0 : if (res) return res;
11080 : : }
11081 : : }
11082 : : }
11083 : : break;
11084 : : }
11085 : : default:;
11086 : : }
11087 : : break;
11088 : : }
11089 : : default:;
11090 : : }
11091 : : break;
11092 : : }
11093 : 38446 : case BIT_NOT_EXPR:
11094 : 38446 : {
11095 : 38446 : tree _q20 = TREE_OPERAND (_p0, 0);
11096 : 38446 : switch (TREE_CODE (_q20))
11097 : : {
11098 : 193 : case SSA_NAME:
11099 : 193 : {
11100 : 193 : switch (TREE_CODE (_p1))
11101 : : {
11102 : 193 : case INTEGER_CST:
11103 : 193 : {
11104 : 193 : {
11105 : 193 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
11106 : 386 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
11107 : 579 : && wi::bit_and_not (get_nonzero_bits (captures[0]), wi::to_wide (captures[1])) == 0
11108 : : )
11109 : : {
11110 : 15 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1704;
11111 : 15 : {
11112 : 15 : tree res_op0;
11113 : 15 : res_op0 = captures[0];
11114 : 15 : tree res_op1;
11115 : 15 : res_op1 = captures[1];
11116 : 15 : tree _r;
11117 : 15 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
11118 : 15 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1018, __FILE__, __LINE__, true);
11119 : 15 : return _r;
11120 : : }
11121 : 0 : next_after_fail1704:;
11122 : : }
11123 : : }
11124 : 178 : break;
11125 : : }
11126 : : default:;
11127 : : }
11128 : : break;
11129 : : }
11130 : : default:;
11131 : : }
11132 : : break;
11133 : : }
11134 : 303030 : case PLUS_EXPR:
11135 : 303030 : {
11136 : 303030 : tree _q20 = TREE_OPERAND (_p0, 0);
11137 : 303030 : tree _q21 = TREE_OPERAND (_p0, 1);
11138 : 303030 : switch (TREE_CODE (_q20))
11139 : : {
11140 : 22 : case BIT_AND_EXPR:
11141 : 22 : {
11142 : 22 : tree _q30 = TREE_OPERAND (_q20, 0);
11143 : 22 : tree _q31 = TREE_OPERAND (_q20, 1);
11144 : 22 : switch (TREE_CODE (_q31))
11145 : : {
11146 : 18 : case INTEGER_CST:
11147 : 18 : {
11148 : 18 : switch (TREE_CODE (_p1))
11149 : : {
11150 : 18 : case INTEGER_CST:
11151 : 18 : {
11152 : 18 : {
11153 : 18 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
11154 : 18 : tree res = generic_simplify_409 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, PLUS_EXPR);
11155 : 18 : if (res) return res;
11156 : : }
11157 : 12 : break;
11158 : : }
11159 : : default:;
11160 : : }
11161 : : break;
11162 : : }
11163 : : default:;
11164 : : }
11165 : : break;
11166 : : }
11167 : 64 : case BIT_IOR_EXPR:
11168 : 64 : {
11169 : 64 : tree _q30 = TREE_OPERAND (_q20, 0);
11170 : 64 : tree _q31 = TREE_OPERAND (_q20, 1);
11171 : 64 : switch (TREE_CODE (_q31))
11172 : : {
11173 : 52 : case INTEGER_CST:
11174 : 52 : {
11175 : 52 : switch (TREE_CODE (_p1))
11176 : : {
11177 : 52 : case INTEGER_CST:
11178 : 52 : {
11179 : 52 : {
11180 : 52 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
11181 : 52 : tree res = generic_simplify_409 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, PLUS_EXPR);
11182 : 52 : if (res) return res;
11183 : : }
11184 : 48 : break;
11185 : : }
11186 : : default:;
11187 : : }
11188 : : break;
11189 : : }
11190 : : default:;
11191 : : }
11192 : : break;
11193 : : }
11194 : 24 : case BIT_XOR_EXPR:
11195 : 24 : {
11196 : 24 : tree _q30 = TREE_OPERAND (_q20, 0);
11197 : 24 : tree _q31 = TREE_OPERAND (_q20, 1);
11198 : 24 : switch (TREE_CODE (_q31))
11199 : : {
11200 : 4 : case INTEGER_CST:
11201 : 4 : {
11202 : 4 : switch (TREE_CODE (_p1))
11203 : : {
11204 : 4 : case INTEGER_CST:
11205 : 4 : {
11206 : 4 : {
11207 : 4 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
11208 : 4 : tree res = generic_simplify_409 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, PLUS_EXPR);
11209 : 4 : if (res) return res;
11210 : : }
11211 : 0 : break;
11212 : : }
11213 : : default:;
11214 : : }
11215 : : break;
11216 : : }
11217 : : default:;
11218 : : }
11219 : : break;
11220 : : }
11221 : 303016 : default:;
11222 : : }
11223 : 303016 : switch (TREE_CODE (_q21))
11224 : : {
11225 : 0 : case BIT_AND_EXPR:
11226 : 0 : {
11227 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
11228 : 0 : tree _q41 = TREE_OPERAND (_q21, 1);
11229 : 0 : switch (TREE_CODE (_q41))
11230 : : {
11231 : 0 : case INTEGER_CST:
11232 : 0 : {
11233 : 0 : switch (TREE_CODE (_p1))
11234 : : {
11235 : 0 : case INTEGER_CST:
11236 : 0 : {
11237 : 0 : {
11238 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q41, _p1 };
11239 : 0 : tree res = generic_simplify_410 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, PLUS_EXPR);
11240 : 0 : if (res) return res;
11241 : : }
11242 : 0 : break;
11243 : : }
11244 : : default:;
11245 : : }
11246 : : break;
11247 : : }
11248 : : default:;
11249 : : }
11250 : : break;
11251 : : }
11252 : 0 : case BIT_IOR_EXPR:
11253 : 0 : {
11254 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
11255 : 0 : tree _q41 = TREE_OPERAND (_q21, 1);
11256 : 0 : switch (TREE_CODE (_q41))
11257 : : {
11258 : 0 : case INTEGER_CST:
11259 : 0 : {
11260 : 0 : switch (TREE_CODE (_p1))
11261 : : {
11262 : 0 : case INTEGER_CST:
11263 : 0 : {
11264 : 0 : {
11265 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q41, _p1 };
11266 : 0 : tree res = generic_simplify_410 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, PLUS_EXPR);
11267 : 0 : if (res) return res;
11268 : : }
11269 : 0 : break;
11270 : : }
11271 : : default:;
11272 : : }
11273 : : break;
11274 : : }
11275 : : default:;
11276 : : }
11277 : : break;
11278 : : }
11279 : 0 : case BIT_XOR_EXPR:
11280 : 0 : {
11281 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
11282 : 0 : tree _q41 = TREE_OPERAND (_q21, 1);
11283 : 0 : switch (TREE_CODE (_q41))
11284 : : {
11285 : 0 : case INTEGER_CST:
11286 : 0 : {
11287 : 0 : switch (TREE_CODE (_p1))
11288 : : {
11289 : 0 : case INTEGER_CST:
11290 : 0 : {
11291 : 0 : {
11292 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q41, _p1 };
11293 : 0 : tree res = generic_simplify_410 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, PLUS_EXPR);
11294 : 0 : if (res) return res;
11295 : : }
11296 : 0 : break;
11297 : : }
11298 : : default:;
11299 : : }
11300 : : break;
11301 : : }
11302 : : default:;
11303 : : }
11304 : : break;
11305 : : }
11306 : 303016 : default:;
11307 : : }
11308 : 303016 : switch (TREE_CODE (_p1))
11309 : : {
11310 : 218605 : case INTEGER_CST:
11311 : 218605 : {
11312 : 218605 : {
11313 : 218605 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
11314 : 218605 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, PLUS_EXPR);
11315 : 218605 : if (res) return res;
11316 : : }
11317 : 88868 : break;
11318 : : }
11319 : : default:;
11320 : : }
11321 : : break;
11322 : : }
11323 : 687958 : case MINUS_EXPR:
11324 : 687958 : {
11325 : 687958 : tree _q20 = TREE_OPERAND (_p0, 0);
11326 : 687958 : tree _q21 = TREE_OPERAND (_p0, 1);
11327 : 687958 : switch (TREE_CODE (_q20))
11328 : : {
11329 : 4 : case BIT_AND_EXPR:
11330 : 4 : {
11331 : 4 : tree _q30 = TREE_OPERAND (_q20, 0);
11332 : 4 : tree _q31 = TREE_OPERAND (_q20, 1);
11333 : 4 : switch (TREE_CODE (_q31))
11334 : : {
11335 : 2 : case INTEGER_CST:
11336 : 2 : {
11337 : 2 : switch (TREE_CODE (_p1))
11338 : : {
11339 : 2 : case INTEGER_CST:
11340 : 2 : {
11341 : 2 : {
11342 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
11343 : 2 : tree res = generic_simplify_409 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, MINUS_EXPR);
11344 : 2 : if (res) return res;
11345 : : }
11346 : 0 : break;
11347 : : }
11348 : : default:;
11349 : : }
11350 : : break;
11351 : : }
11352 : : default:;
11353 : : }
11354 : : break;
11355 : : }
11356 : 4 : case BIT_IOR_EXPR:
11357 : 4 : {
11358 : 4 : tree _q30 = TREE_OPERAND (_q20, 0);
11359 : 4 : tree _q31 = TREE_OPERAND (_q20, 1);
11360 : 4 : switch (TREE_CODE (_q31))
11361 : : {
11362 : 2 : case INTEGER_CST:
11363 : 2 : {
11364 : 2 : switch (TREE_CODE (_p1))
11365 : : {
11366 : 2 : case INTEGER_CST:
11367 : 2 : {
11368 : 2 : {
11369 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
11370 : 2 : tree res = generic_simplify_409 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, MINUS_EXPR);
11371 : 2 : if (res) return res;
11372 : : }
11373 : 0 : break;
11374 : : }
11375 : : default:;
11376 : : }
11377 : : break;
11378 : : }
11379 : : default:;
11380 : : }
11381 : : break;
11382 : : }
11383 : 4 : case BIT_XOR_EXPR:
11384 : 4 : {
11385 : 4 : tree _q30 = TREE_OPERAND (_q20, 0);
11386 : 4 : tree _q31 = TREE_OPERAND (_q20, 1);
11387 : 4 : switch (TREE_CODE (_q31))
11388 : : {
11389 : 2 : case INTEGER_CST:
11390 : 2 : {
11391 : 2 : switch (TREE_CODE (_p1))
11392 : : {
11393 : 2 : case INTEGER_CST:
11394 : 2 : {
11395 : 2 : {
11396 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
11397 : 2 : tree res = generic_simplify_409 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, MINUS_EXPR);
11398 : 2 : if (res) return res;
11399 : : }
11400 : 0 : break;
11401 : : }
11402 : : default:;
11403 : : }
11404 : : break;
11405 : : }
11406 : : default:;
11407 : : }
11408 : : break;
11409 : : }
11410 : 687952 : default:;
11411 : : }
11412 : 687952 : switch (TREE_CODE (_q21))
11413 : : {
11414 : 275 : case BIT_AND_EXPR:
11415 : 275 : {
11416 : 275 : tree _q40 = TREE_OPERAND (_q21, 0);
11417 : 275 : tree _q41 = TREE_OPERAND (_q21, 1);
11418 : 275 : switch (TREE_CODE (_q41))
11419 : : {
11420 : 273 : case INTEGER_CST:
11421 : 273 : {
11422 : 273 : switch (TREE_CODE (_p1))
11423 : : {
11424 : 273 : case INTEGER_CST:
11425 : 273 : {
11426 : 273 : {
11427 : 273 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q41, _p1 };
11428 : 273 : tree res = generic_simplify_410 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, MINUS_EXPR);
11429 : 273 : if (res) return res;
11430 : : }
11431 : 7 : break;
11432 : : }
11433 : : default:;
11434 : : }
11435 : : break;
11436 : : }
11437 : : default:;
11438 : : }
11439 : : break;
11440 : : }
11441 : 4 : case BIT_IOR_EXPR:
11442 : 4 : {
11443 : 4 : tree _q40 = TREE_OPERAND (_q21, 0);
11444 : 4 : tree _q41 = TREE_OPERAND (_q21, 1);
11445 : 4 : switch (TREE_CODE (_q41))
11446 : : {
11447 : 2 : case INTEGER_CST:
11448 : 2 : {
11449 : 2 : switch (TREE_CODE (_p1))
11450 : : {
11451 : 2 : case INTEGER_CST:
11452 : 2 : {
11453 : 2 : {
11454 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q41, _p1 };
11455 : 2 : tree res = generic_simplify_410 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, MINUS_EXPR);
11456 : 2 : if (res) return res;
11457 : : }
11458 : 0 : break;
11459 : : }
11460 : : default:;
11461 : : }
11462 : : break;
11463 : : }
11464 : : default:;
11465 : : }
11466 : : break;
11467 : : }
11468 : 4 : case BIT_XOR_EXPR:
11469 : 4 : {
11470 : 4 : tree _q40 = TREE_OPERAND (_q21, 0);
11471 : 4 : tree _q41 = TREE_OPERAND (_q21, 1);
11472 : 4 : switch (TREE_CODE (_q41))
11473 : : {
11474 : 2 : case INTEGER_CST:
11475 : 2 : {
11476 : 2 : switch (TREE_CODE (_p1))
11477 : : {
11478 : 2 : case INTEGER_CST:
11479 : 2 : {
11480 : 2 : {
11481 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q41, _p1 };
11482 : 2 : tree res = generic_simplify_410 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, MINUS_EXPR);
11483 : 2 : if (res) return res;
11484 : : }
11485 : 0 : break;
11486 : : }
11487 : : default:;
11488 : : }
11489 : : break;
11490 : : }
11491 : : default:;
11492 : : }
11493 : : break;
11494 : : }
11495 : 687682 : default:;
11496 : : }
11497 : 687682 : switch (TREE_CODE (_p1))
11498 : : {
11499 : 687480 : case INTEGER_CST:
11500 : 687480 : {
11501 : 687480 : {
11502 : 687480 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
11503 : 687480 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, MINUS_EXPR);
11504 : 687480 : if (res) return res;
11505 : : }
11506 : 501818 : break;
11507 : : }
11508 : : default:;
11509 : : }
11510 : : break;
11511 : : }
11512 : 46690 : case NEGATE_EXPR:
11513 : 46690 : {
11514 : 46690 : tree _q20 = TREE_OPERAND (_p0, 0);
11515 : 46690 : switch (TREE_CODE (_q20))
11516 : : {
11517 : 25 : case BIT_AND_EXPR:
11518 : 25 : {
11519 : 25 : tree _q30 = TREE_OPERAND (_q20, 0);
11520 : 25 : tree _q31 = TREE_OPERAND (_q20, 1);
11521 : 25 : switch (TREE_CODE (_q31))
11522 : : {
11523 : 21 : case INTEGER_CST:
11524 : 21 : {
11525 : 21 : switch (TREE_CODE (_p1))
11526 : : {
11527 : 11 : case INTEGER_CST:
11528 : 11 : {
11529 : 11 : {
11530 : 11 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1 };
11531 : 11 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
11532 : 11 : if (res) return res;
11533 : : }
11534 : 8 : break;
11535 : : }
11536 : : default:;
11537 : : }
11538 : : break;
11539 : : }
11540 : : default:;
11541 : : }
11542 : : break;
11543 : : }
11544 : 44 : case BIT_IOR_EXPR:
11545 : 44 : {
11546 : 44 : tree _q30 = TREE_OPERAND (_q20, 0);
11547 : 44 : tree _q31 = TREE_OPERAND (_q20, 1);
11548 : 44 : switch (TREE_CODE (_q31))
11549 : : {
11550 : 2 : case INTEGER_CST:
11551 : 2 : {
11552 : 2 : switch (TREE_CODE (_p1))
11553 : : {
11554 : 2 : case INTEGER_CST:
11555 : 2 : {
11556 : 2 : {
11557 : 2 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1 };
11558 : 2 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR);
11559 : 2 : if (res) return res;
11560 : : }
11561 : 0 : break;
11562 : : }
11563 : : default:;
11564 : : }
11565 : : break;
11566 : : }
11567 : : default:;
11568 : : }
11569 : : break;
11570 : : }
11571 : 4 : case BIT_XOR_EXPR:
11572 : 4 : {
11573 : 4 : tree _q30 = TREE_OPERAND (_q20, 0);
11574 : 4 : tree _q31 = TREE_OPERAND (_q20, 1);
11575 : 4 : switch (TREE_CODE (_q31))
11576 : : {
11577 : 2 : case INTEGER_CST:
11578 : 2 : {
11579 : 2 : switch (TREE_CODE (_p1))
11580 : : {
11581 : 2 : case INTEGER_CST:
11582 : 2 : {
11583 : 2 : {
11584 : 2 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1 };
11585 : 2 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
11586 : 2 : if (res) return res;
11587 : : }
11588 : 0 : break;
11589 : : }
11590 : : default:;
11591 : : }
11592 : : break;
11593 : : }
11594 : : default:;
11595 : : }
11596 : : break;
11597 : : }
11598 : 46683 : default:;
11599 : : }
11600 : 46683 : if (tree_zero_one_valued_p (_q20))
11601 : : {
11602 : 19 : {
11603 : 19 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
11604 : 19 : tree res = generic_simplify_413 (loc, type, _p0, _p1, captures);
11605 : 19 : if (res) return res;
11606 : : }
11607 : : }
11608 : : break;
11609 : : }
11610 : 6320784 : default:;
11611 : : }
11612 : 6320784 : if (integer_zerop (_p1))
11613 : : {
11614 : 3860 : {
11615 : 3860 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
11616 : 3860 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1705;
11617 : 3860 : {
11618 : 3860 : tree _r;
11619 : 3860 : _r = captures[1];
11620 : 3860 : if (TREE_SIDE_EFFECTS (captures[0]))
11621 : 49 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
11622 : 3860 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1019, __FILE__, __LINE__, true);
11623 : 3860 : return _r;
11624 : : }
11625 : 0 : next_after_fail1705:;
11626 : : }
11627 : : }
11628 : 6316924 : if (integer_all_onesp (_p1))
11629 : : {
11630 : 22612 : {
11631 : 22612 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
11632 : 22612 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1706;
11633 : 22612 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1706;
11634 : 22612 : {
11635 : 22612 : tree res_op0;
11636 : 22612 : res_op0 = captures[0];
11637 : 22612 : tree _r;
11638 : 22612 : _r = non_lvalue_loc (loc, res_op0);
11639 : 22612 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1020, __FILE__, __LINE__, true);
11640 : 22612 : return _r;
11641 : : }
11642 : : next_after_fail1706:;
11643 : : }
11644 : : }
11645 : 6294312 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
11646 : : {
11647 : 129 : {
11648 : 129 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
11649 : 129 : tree res = generic_simplify_87 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
11650 : 129 : if (res) return res;
11651 : : }
11652 : : }
11653 : 6294183 : switch (TREE_CODE (_p1))
11654 : : {
11655 : 24350 : case BIT_NOT_EXPR:
11656 : 24350 : {
11657 : 24350 : tree _q30 = TREE_OPERAND (_p1, 0);
11658 : 24350 : switch (TREE_CODE (_q30))
11659 : : {
11660 : 13 : case BIT_AND_EXPR:
11661 : 13 : {
11662 : 13 : tree _q40 = TREE_OPERAND (_q30, 0);
11663 : 13 : tree _q41 = TREE_OPERAND (_q30, 1);
11664 : 13 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
11665 : : {
11666 : 0 : {
11667 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q41 };
11668 : 0 : tree res = generic_simplify_88 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
11669 : 0 : if (res) return res;
11670 : : }
11671 : : }
11672 : 13 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
11673 : : {
11674 : 0 : {
11675 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q40 };
11676 : 0 : tree res = generic_simplify_88 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
11677 : 0 : if (res) return res;
11678 : : }
11679 : : }
11680 : : break;
11681 : : }
11682 : : default:;
11683 : : }
11684 : : break;
11685 : : }
11686 : 6294183 : default:;
11687 : : }
11688 : 6294183 : switch (TREE_CODE (_p0))
11689 : : {
11690 : 38415 : case BIT_NOT_EXPR:
11691 : 38415 : {
11692 : 38415 : tree _q20 = TREE_OPERAND (_p0, 0);
11693 : 38415 : switch (TREE_CODE (_q20))
11694 : : {
11695 : 28 : case BIT_AND_EXPR:
11696 : 28 : {
11697 : 28 : tree _q30 = TREE_OPERAND (_q20, 0);
11698 : 28 : tree _q31 = TREE_OPERAND (_q20, 1);
11699 : 28 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
11700 : : {
11701 : 4 : {
11702 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q20, _q31 };
11703 : 4 : tree res = generic_simplify_88 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
11704 : 4 : if (res) return res;
11705 : : }
11706 : : }
11707 : 24 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
11708 : : {
11709 : 3 : {
11710 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q20, _q30 };
11711 : 3 : tree res = generic_simplify_88 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
11712 : 3 : if (res) return res;
11713 : : }
11714 : : }
11715 : 21 : switch (TREE_CODE (_p1))
11716 : : {
11717 : 0 : case BIT_IOR_EXPR:
11718 : 0 : {
11719 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
11720 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
11721 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
11722 : : {
11723 : 0 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
11724 : : {
11725 : 0 : {
11726 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
11727 : 0 : tree res = generic_simplify_414 (loc, type, _p0, _p1, captures);
11728 : 0 : if (res) return res;
11729 : : }
11730 : : }
11731 : : }
11732 : : break;
11733 : : }
11734 : : default:;
11735 : : }
11736 : : break;
11737 : : }
11738 : 38408 : default:;
11739 : : }
11740 : 38408 : switch (TREE_CODE (_p1))
11741 : : {
11742 : 334 : CASE_CONVERT:
11743 : 334 : {
11744 : 334 : tree _q40 = TREE_OPERAND (_p1, 0);
11745 : 334 : switch (TREE_CODE (_q40))
11746 : : {
11747 : 0 : case BIT_NOT_EXPR:
11748 : 0 : {
11749 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
11750 : 0 : {
11751 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q50 };
11752 : 0 : tree res = generic_simplify_92 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
11753 : 0 : if (res) return res;
11754 : : }
11755 : 0 : break;
11756 : : }
11757 : : default:;
11758 : : }
11759 : : break;
11760 : : }
11761 : 44 : case BIT_NOT_EXPR:
11762 : 44 : {
11763 : 44 : tree _q40 = TREE_OPERAND (_p1, 0);
11764 : 44 : {
11765 : 44 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
11766 : 44 : tree res = generic_simplify_92 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
11767 : 44 : if (res) return res;
11768 : : }
11769 : 0 : break;
11770 : : }
11771 : : default:;
11772 : : }
11773 : : break;
11774 : : }
11775 : 1562 : case BIT_IOR_EXPR:
11776 : 1562 : {
11777 : 1562 : tree _q20 = TREE_OPERAND (_p0, 0);
11778 : 1562 : tree _q21 = TREE_OPERAND (_p0, 1);
11779 : 1562 : switch (TREE_CODE (_p1))
11780 : : {
11781 : 169 : case BIT_NOT_EXPR:
11782 : 169 : {
11783 : 169 : tree _q50 = TREE_OPERAND (_p1, 0);
11784 : 169 : switch (TREE_CODE (_q50))
11785 : : {
11786 : 0 : case BIT_AND_EXPR:
11787 : 0 : {
11788 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
11789 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
11790 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
11791 : : {
11792 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
11793 : : {
11794 : 0 : {
11795 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11796 : 0 : tree res = generic_simplify_414 (loc, type, _p0, _p1, captures);
11797 : 0 : if (res) return res;
11798 : : }
11799 : : }
11800 : : }
11801 : : break;
11802 : : }
11803 : : default:;
11804 : : }
11805 : : break;
11806 : : }
11807 : 2 : case BIT_XOR_EXPR:
11808 : 2 : {
11809 : 2 : tree _q50 = TREE_OPERAND (_p1, 0);
11810 : 2 : tree _q51 = TREE_OPERAND (_p1, 1);
11811 : 2 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
11812 : : {
11813 : 0 : {
11814 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
11815 : 0 : tree res = generic_simplify_415 (loc, type, _p0, _p1, captures);
11816 : 0 : if (res) return res;
11817 : : }
11818 : : }
11819 : 2 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
11820 : : {
11821 : 2 : {
11822 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
11823 : 2 : tree res = generic_simplify_415 (loc, type, _p0, _p1, captures);
11824 : 2 : if (res) return res;
11825 : : }
11826 : : }
11827 : 2 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
11828 : : {
11829 : 0 : {
11830 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
11831 : 0 : tree res = generic_simplify_415 (loc, type, _p0, _p1, captures);
11832 : 0 : if (res) return res;
11833 : : }
11834 : : }
11835 : 2 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
11836 : : {
11837 : 0 : {
11838 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
11839 : 0 : tree res = generic_simplify_415 (loc, type, _p0, _p1, captures);
11840 : 0 : if (res) return res;
11841 : : }
11842 : : }
11843 : : break;
11844 : : }
11845 : 1562 : default:;
11846 : : }
11847 : 1562 : switch (TREE_CODE (_q20))
11848 : : {
11849 : 127 : case BIT_NOT_EXPR:
11850 : 127 : {
11851 : 127 : tree _q30 = TREE_OPERAND (_q20, 0);
11852 : 127 : switch (TREE_CODE (_p1))
11853 : : {
11854 : 2 : case BIT_IOR_EXPR:
11855 : 2 : {
11856 : 2 : tree _q60 = TREE_OPERAND (_p1, 0);
11857 : 2 : tree _q61 = TREE_OPERAND (_p1, 1);
11858 : 2 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
11859 : : {
11860 : 0 : switch (TREE_CODE (_q61))
11861 : : {
11862 : 0 : case BIT_NOT_EXPR:
11863 : 0 : {
11864 : 0 : tree _q80 = TREE_OPERAND (_q61, 0);
11865 : 0 : if ((_q80 == _q21 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q21, 0) && types_match (_q80, _q21)))
11866 : : {
11867 : 0 : {
11868 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q21, _p1 };
11869 : 0 : tree res = generic_simplify_416 (loc, type, _p0, _p1, captures);
11870 : 0 : if (res) return res;
11871 : : }
11872 : : }
11873 : : break;
11874 : : }
11875 : : default:;
11876 : : }
11877 : : }
11878 : 2 : switch (TREE_CODE (_q60))
11879 : : {
11880 : 2 : case BIT_NOT_EXPR:
11881 : 2 : {
11882 : 2 : tree _q70 = TREE_OPERAND (_q60, 0);
11883 : 2 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
11884 : : {
11885 : 2 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
11886 : : {
11887 : 2 : {
11888 : 2 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q21, _p1 };
11889 : 2 : tree res = generic_simplify_416 (loc, type, _p0, _p1, captures);
11890 : 2 : if (res) return res;
11891 : : }
11892 : : }
11893 : : }
11894 : : break;
11895 : : }
11896 : : default:;
11897 : : }
11898 : : break;
11899 : : }
11900 : : default:;
11901 : : }
11902 : : break;
11903 : : }
11904 : 1560 : default:;
11905 : : }
11906 : 1560 : switch (TREE_CODE (_q21))
11907 : : {
11908 : 0 : case BIT_NOT_EXPR:
11909 : 0 : {
11910 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
11911 : 0 : switch (TREE_CODE (_p1))
11912 : : {
11913 : 0 : case BIT_IOR_EXPR:
11914 : 0 : {
11915 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
11916 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
11917 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
11918 : : {
11919 : 0 : switch (TREE_CODE (_q61))
11920 : : {
11921 : 0 : case BIT_NOT_EXPR:
11922 : 0 : {
11923 : 0 : tree _q80 = TREE_OPERAND (_q61, 0);
11924 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
11925 : : {
11926 : 0 : {
11927 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q40, _q20, _p1 };
11928 : 0 : tree res = generic_simplify_416 (loc, type, _p0, _p1, captures);
11929 : 0 : if (res) return res;
11930 : : }
11931 : : }
11932 : : break;
11933 : : }
11934 : : default:;
11935 : : }
11936 : : }
11937 : 0 : switch (TREE_CODE (_q60))
11938 : : {
11939 : 0 : case BIT_NOT_EXPR:
11940 : 0 : {
11941 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
11942 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
11943 : : {
11944 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
11945 : : {
11946 : 0 : {
11947 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q40, _q20, _p1 };
11948 : 0 : tree res = generic_simplify_416 (loc, type, _p0, _p1, captures);
11949 : 0 : if (res) return res;
11950 : : }
11951 : : }
11952 : : }
11953 : : break;
11954 : : }
11955 : : default:;
11956 : : }
11957 : : break;
11958 : : }
11959 : : default:;
11960 : : }
11961 : : break;
11962 : : }
11963 : : default:;
11964 : : }
11965 : : break;
11966 : : }
11967 : 20303 : case BIT_XOR_EXPR:
11968 : 20303 : {
11969 : 20303 : tree _q20 = TREE_OPERAND (_p0, 0);
11970 : 20303 : tree _q21 = TREE_OPERAND (_p0, 1);
11971 : 20303 : switch (TREE_CODE (_p1))
11972 : : {
11973 : 133 : case BIT_IOR_EXPR:
11974 : 133 : {
11975 : 133 : tree _q50 = TREE_OPERAND (_p1, 0);
11976 : 133 : tree _q51 = TREE_OPERAND (_p1, 1);
11977 : 133 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
11978 : : {
11979 : 18 : {
11980 : 18 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q20, _q21 };
11981 : 18 : tree res = generic_simplify_415 (loc, type, _p0, _p1, captures);
11982 : 18 : if (res) return res;
11983 : : }
11984 : : }
11985 : 133 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
11986 : : {
11987 : 33 : {
11988 : 33 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q21, _q20 };
11989 : 33 : tree res = generic_simplify_415 (loc, type, _p0, _p1, captures);
11990 : 33 : if (res) return res;
11991 : : }
11992 : : }
11993 : 133 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
11994 : : {
11995 : 30 : {
11996 : 30 : tree captures[3] ATTRIBUTE_UNUSED = { _q51, _q20, _q21 };
11997 : 30 : tree res = generic_simplify_415 (loc, type, _p0, _p1, captures);
11998 : 30 : if (res) return res;
11999 : : }
12000 : : }
12001 : 133 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
12002 : : {
12003 : 21 : {
12004 : 21 : tree captures[3] ATTRIBUTE_UNUSED = { _q51, _q21, _q20 };
12005 : 21 : tree res = generic_simplify_415 (loc, type, _p0, _p1, captures);
12006 : 21 : if (res) return res;
12007 : : }
12008 : : }
12009 : : break;
12010 : : }
12011 : 20303 : default:;
12012 : : }
12013 : 20303 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
12014 : : {
12015 : 31 : {
12016 : 31 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
12017 : 31 : tree res = generic_simplify_164 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_XOR_EXPR);
12018 : 31 : if (res) return res;
12019 : : }
12020 : : }
12021 : 20272 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
12022 : : {
12023 : 2 : {
12024 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
12025 : 2 : tree res = generic_simplify_164 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_XOR_EXPR);
12026 : 2 : if (res) return res;
12027 : : }
12028 : : }
12029 : : break;
12030 : : }
12031 : 1915384 : CASE_CONVERT:
12032 : 1915384 : {
12033 : 1915384 : tree _q20 = TREE_OPERAND (_p0, 0);
12034 : 1915384 : switch (TREE_CODE (_q20))
12035 : : {
12036 : 164 : case BIT_NOT_EXPR:
12037 : 164 : {
12038 : 164 : tree _q30 = TREE_OPERAND (_q20, 0);
12039 : 164 : switch (TREE_CODE (_p1))
12040 : : {
12041 : 34 : CASE_CONVERT:
12042 : 34 : {
12043 : 34 : tree _q50 = TREE_OPERAND (_p1, 0);
12044 : 34 : switch (TREE_CODE (_q50))
12045 : : {
12046 : 0 : case BIT_NOT_EXPR:
12047 : 0 : {
12048 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
12049 : 0 : {
12050 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q60 };
12051 : 0 : tree res = generic_simplify_92 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12052 : 0 : if (res) return res;
12053 : : }
12054 : 0 : break;
12055 : : }
12056 : : default:;
12057 : : }
12058 : : break;
12059 : : }
12060 : 1 : case BIT_NOT_EXPR:
12061 : 1 : {
12062 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
12063 : 1 : {
12064 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q50 };
12065 : 1 : tree res = generic_simplify_92 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12066 : 1 : if (res) return res;
12067 : : }
12068 : 0 : break;
12069 : : }
12070 : : default:;
12071 : : }
12072 : : break;
12073 : : }
12074 : : default:;
12075 : : }
12076 : : break;
12077 : : }
12078 : 6294096 : default:;
12079 : : }
12080 : 6294096 : switch (TREE_CODE (_p1))
12081 : : {
12082 : 254 : case BIT_XOR_EXPR:
12083 : 254 : {
12084 : 254 : tree _q30 = TREE_OPERAND (_p1, 0);
12085 : 254 : tree _q31 = TREE_OPERAND (_p1, 1);
12086 : 254 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
12087 : : {
12088 : 0 : {
12089 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q30, _p0 };
12090 : 0 : tree res = generic_simplify_164 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_XOR_EXPR);
12091 : 0 : if (res) return res;
12092 : : }
12093 : : }
12094 : 254 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
12095 : : {
12096 : 1 : {
12097 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q31, _p0 };
12098 : 1 : tree res = generic_simplify_164 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_XOR_EXPR);
12099 : 1 : if (res) return res;
12100 : : }
12101 : : }
12102 : : break;
12103 : : }
12104 : 6294095 : default:;
12105 : : }
12106 : 6294095 : switch (TREE_CODE (_p0))
12107 : : {
12108 : 1915383 : CASE_CONVERT:
12109 : 1915383 : {
12110 : 1915383 : tree _q20 = TREE_OPERAND (_p0, 0);
12111 : 1915383 : switch (TREE_CODE (_q20))
12112 : : {
12113 : 171 : case BIT_IOR_EXPR:
12114 : 171 : {
12115 : 171 : tree _q30 = TREE_OPERAND (_q20, 0);
12116 : 171 : tree _q31 = TREE_OPERAND (_q20, 1);
12117 : 171 : switch (TREE_CODE (_p1))
12118 : : {
12119 : 12 : CASE_CONVERT:
12120 : 12 : {
12121 : 12 : tree _q60 = TREE_OPERAND (_p1, 0);
12122 : 12 : switch (TREE_CODE (_q60))
12123 : : {
12124 : 0 : case BIT_IOR_EXPR:
12125 : 0 : {
12126 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
12127 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
12128 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q30, 0))
12129 : : {
12130 : 0 : {
12131 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q71, _q30 };
12132 : 0 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12133 : 0 : if (res) return res;
12134 : : }
12135 : : }
12136 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || operand_equal_p (_q71, _q30, 0))
12137 : : {
12138 : 0 : {
12139 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q70, _q30 };
12140 : 0 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12141 : 0 : if (res) return res;
12142 : : }
12143 : : }
12144 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q31, 0))
12145 : : {
12146 : 0 : {
12147 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q31, _q30, _q71, _q31 };
12148 : 0 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12149 : 0 : if (res) return res;
12150 : : }
12151 : : }
12152 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || operand_equal_p (_q71, _q31, 0))
12153 : : {
12154 : 0 : {
12155 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q31, _q30, _q70, _q31 };
12156 : 0 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12157 : 0 : if (res) return res;
12158 : : }
12159 : : }
12160 : : break;
12161 : : }
12162 : : default:;
12163 : : }
12164 : : break;
12165 : : }
12166 : : default:;
12167 : : }
12168 : : break;
12169 : : }
12170 : 40 : case BIT_AND_EXPR:
12171 : 40 : {
12172 : 40 : tree _q30 = TREE_OPERAND (_q20, 0);
12173 : 40 : tree _q31 = TREE_OPERAND (_q20, 1);
12174 : 40 : switch (TREE_CODE (_p1))
12175 : : {
12176 : 0 : CASE_CONVERT:
12177 : 0 : {
12178 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
12179 : 0 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q31, 0))
12180 : : {
12181 : 0 : {
12182 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q31, _q31 };
12183 : 0 : tree res = generic_simplify_78 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12184 : 0 : if (res) return res;
12185 : : }
12186 : : }
12187 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q30, 0))
12188 : : {
12189 : 0 : {
12190 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q31, _q30, _q30 };
12191 : 0 : tree res = generic_simplify_78 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12192 : 0 : if (res) return res;
12193 : : }
12194 : : }
12195 : : break;
12196 : : }
12197 : 40 : default:;
12198 : : }
12199 : 40 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q31, 0))
12200 : : {
12201 : 0 : {
12202 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q31, _q31 };
12203 : 0 : tree res = generic_simplify_78 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12204 : 0 : if (res) return res;
12205 : : }
12206 : : }
12207 : 40 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q30, 0))
12208 : : {
12209 : 0 : {
12210 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q31, _q30, _q30 };
12211 : 0 : tree res = generic_simplify_78 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12212 : 0 : if (res) return res;
12213 : : }
12214 : : }
12215 : : break;
12216 : : }
12217 : 1915383 : default:;
12218 : : }
12219 : 1915383 : switch (TREE_CODE (_p1))
12220 : : {
12221 : 767354 : CASE_CONVERT:
12222 : 767354 : {
12223 : 767354 : tree _q40 = TREE_OPERAND (_p1, 0);
12224 : 767354 : switch (TREE_CODE (_q40))
12225 : : {
12226 : 0 : case BIT_AND_EXPR:
12227 : 0 : {
12228 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
12229 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
12230 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q20, 0))
12231 : : {
12232 : 0 : {
12233 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q50, _q51, _q20 };
12234 : 0 : tree res = generic_simplify_95 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12235 : 0 : if (res) return res;
12236 : : }
12237 : : }
12238 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
12239 : : {
12240 : 0 : {
12241 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q51, _q50, _q20 };
12242 : 0 : tree res = generic_simplify_95 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12243 : 0 : if (res) return res;
12244 : : }
12245 : : }
12246 : : break;
12247 : : }
12248 : : default:;
12249 : : }
12250 : : break;
12251 : : }
12252 : 47 : case BIT_AND_EXPR:
12253 : 47 : {
12254 : 47 : tree _q40 = TREE_OPERAND (_p1, 0);
12255 : 47 : tree _q41 = TREE_OPERAND (_p1, 1);
12256 : 47 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _q20, 0))
12257 : : {
12258 : 0 : {
12259 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q40, _q41, _q20 };
12260 : 0 : tree res = generic_simplify_95 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12261 : 0 : if (res) return res;
12262 : : }
12263 : : }
12264 : 47 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _q20, 0))
12265 : : {
12266 : 0 : {
12267 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q41, _q40, _q20 };
12268 : 0 : tree res = generic_simplify_95 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12269 : 0 : if (res) return res;
12270 : : }
12271 : : }
12272 : : break;
12273 : : }
12274 : : default:;
12275 : : }
12276 : : break;
12277 : : }
12278 : 1560 : case BIT_IOR_EXPR:
12279 : 1560 : {
12280 : 1560 : tree _q20 = TREE_OPERAND (_p0, 0);
12281 : 1560 : tree _q21 = TREE_OPERAND (_p0, 1);
12282 : 1560 : switch (TREE_CODE (_p1))
12283 : : {
12284 : 9 : case BIT_IOR_EXPR:
12285 : 9 : {
12286 : 9 : tree _q50 = TREE_OPERAND (_p1, 0);
12287 : 9 : tree _q51 = TREE_OPERAND (_p1, 1);
12288 : 9 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
12289 : : {
12290 : 0 : {
12291 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q51, _q20 };
12292 : 0 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12293 : 0 : if (res) return res;
12294 : : }
12295 : : }
12296 : 9 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q20, 0))
12297 : : {
12298 : 0 : {
12299 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q50, _q20 };
12300 : 0 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12301 : 0 : if (res) return res;
12302 : : }
12303 : : }
12304 : 9 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q21, 0))
12305 : : {
12306 : 0 : {
12307 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q51, _q21 };
12308 : 0 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12309 : 0 : if (res) return res;
12310 : : }
12311 : : }
12312 : 9 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q21, 0))
12313 : : {
12314 : 0 : {
12315 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q50, _q21 };
12316 : 0 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12317 : 0 : if (res) return res;
12318 : : }
12319 : : }
12320 : : break;
12321 : : }
12322 : : default:;
12323 : : }
12324 : : break;
12325 : : }
12326 : 6294095 : default:;
12327 : : }
12328 : 6294095 : switch (TREE_CODE (_p1))
12329 : : {
12330 : 860228 : CASE_CONVERT:
12331 : 860228 : {
12332 : 860228 : tree _q30 = TREE_OPERAND (_p1, 0);
12333 : 860228 : switch (TREE_CODE (_q30))
12334 : : {
12335 : 8 : case BIT_AND_EXPR:
12336 : 8 : {
12337 : 8 : tree _q40 = TREE_OPERAND (_q30, 0);
12338 : 8 : tree _q41 = TREE_OPERAND (_q30, 1);
12339 : 8 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _p0, 0))
12340 : : {
12341 : 0 : {
12342 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q40, _q41, _p0 };
12343 : 0 : tree res = generic_simplify_95 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12344 : 0 : if (res) return res;
12345 : : }
12346 : : }
12347 : 8 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _p0, 0))
12348 : : {
12349 : 0 : {
12350 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q41, _q40, _p0 };
12351 : 0 : tree res = generic_simplify_95 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12352 : 0 : if (res) return res;
12353 : : }
12354 : : }
12355 : : break;
12356 : : }
12357 : : default:;
12358 : : }
12359 : : break;
12360 : : }
12361 : 6294095 : default:;
12362 : : }
12363 : 6294095 : switch (TREE_CODE (_p0))
12364 : : {
12365 : 1649 : case BIT_AND_EXPR:
12366 : 1649 : {
12367 : 1649 : tree _q20 = TREE_OPERAND (_p0, 0);
12368 : 1649 : tree _q21 = TREE_OPERAND (_p0, 1);
12369 : 1649 : switch (TREE_CODE (_p1))
12370 : : {
12371 : 82 : CASE_CONVERT:
12372 : 82 : {
12373 : 82 : tree _q50 = TREE_OPERAND (_p1, 0);
12374 : 82 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q21, 0))
12375 : : {
12376 : 0 : {
12377 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q21 };
12378 : 0 : tree res = generic_simplify_78 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12379 : 0 : if (res) return res;
12380 : : }
12381 : : }
12382 : 82 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
12383 : : {
12384 : 0 : {
12385 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _q20 };
12386 : 0 : tree res = generic_simplify_78 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12387 : 0 : if (res) return res;
12388 : : }
12389 : : }
12390 : : break;
12391 : : }
12392 : 1649 : default:;
12393 : : }
12394 : 1649 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q21, 0))
12395 : : {
12396 : 0 : {
12397 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q21 };
12398 : 0 : tree res = generic_simplify_78 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12399 : 0 : if (res) return res;
12400 : : }
12401 : : }
12402 : 1649 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q20, 0))
12403 : : {
12404 : 0 : {
12405 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _q20 };
12406 : 0 : tree res = generic_simplify_78 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12407 : 0 : if (res) return res;
12408 : : }
12409 : : }
12410 : 1649 : {
12411 : 1649 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
12412 : 1649 : tree res = generic_simplify_417 (loc, type, _p0, _p1, captures);
12413 : 1649 : if (res) return res;
12414 : : }
12415 : 1641 : switch (TREE_CODE (_p1))
12416 : : {
12417 : 82 : CASE_CONVERT:
12418 : 82 : {
12419 : 82 : tree _q50 = TREE_OPERAND (_p1, 0);
12420 : 82 : switch (TREE_CODE (_q50))
12421 : : {
12422 : 8 : case BIT_AND_EXPR:
12423 : 8 : {
12424 : 8 : tree _q60 = TREE_OPERAND (_q50, 0);
12425 : 8 : tree _q61 = TREE_OPERAND (_q50, 1);
12426 : 8 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
12427 : : {
12428 : 0 : {
12429 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1, _q50, _q61 };
12430 : 0 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12431 : 0 : if (res) return res;
12432 : : }
12433 : : }
12434 : 8 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
12435 : : {
12436 : 0 : {
12437 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1, _q50, _q60 };
12438 : 0 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12439 : 0 : if (res) return res;
12440 : : }
12441 : : }
12442 : 8 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
12443 : : {
12444 : 0 : {
12445 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q21, _q20, _p1, _q50, _q61 };
12446 : 0 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12447 : 0 : if (res) return res;
12448 : : }
12449 : : }
12450 : 8 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
12451 : : {
12452 : 0 : {
12453 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q21, _q20, _p1, _q50, _q60 };
12454 : 0 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12455 : 0 : if (res) return res;
12456 : : }
12457 : : }
12458 : : break;
12459 : : }
12460 : : default:;
12461 : : }
12462 : : break;
12463 : : }
12464 : 12 : case BIT_AND_EXPR:
12465 : 12 : {
12466 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
12467 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
12468 : 12 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
12469 : : {
12470 : 0 : {
12471 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1, _p1, _q51 };
12472 : 0 : tree res = generic_simplify_98 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12473 : 0 : if (res) return res;
12474 : : }
12475 : : }
12476 : 12 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
12477 : : {
12478 : 0 : {
12479 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1, _p1, _q50 };
12480 : 0 : tree res = generic_simplify_98 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12481 : 0 : if (res) return res;
12482 : : }
12483 : : }
12484 : 12 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
12485 : : {
12486 : 0 : {
12487 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q21, _q20, _p1, _p1, _q51 };
12488 : 0 : tree res = generic_simplify_98 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12489 : 0 : if (res) return res;
12490 : : }
12491 : : }
12492 : 12 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
12493 : : {
12494 : 0 : {
12495 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q21, _q20, _p1, _p1, _q50 };
12496 : 0 : tree res = generic_simplify_98 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12497 : 0 : if (res) return res;
12498 : : }
12499 : : }
12500 : : break;
12501 : : }
12502 : : default:;
12503 : : }
12504 : : break;
12505 : : }
12506 : 6294087 : default:;
12507 : : }
12508 : 6294087 : switch (TREE_CODE (_p1))
12509 : : {
12510 : 76 : case BIT_AND_EXPR:
12511 : 76 : {
12512 : 76 : tree _q30 = TREE_OPERAND (_p1, 0);
12513 : 76 : tree _q31 = TREE_OPERAND (_p1, 1);
12514 : 76 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || operand_equal_p (_q31, _p0, 0))
12515 : : {
12516 : 0 : {
12517 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q30, _q31, _p0 };
12518 : 0 : tree res = generic_simplify_95 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12519 : 0 : if (res) return res;
12520 : : }
12521 : : }
12522 : 76 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || operand_equal_p (_q30, _p0, 0))
12523 : : {
12524 : 0 : {
12525 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q31, _q30, _p0 };
12526 : 0 : tree res = generic_simplify_95 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12527 : 0 : if (res) return res;
12528 : : }
12529 : : }
12530 : 76 : {
12531 : 76 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p0 };
12532 : 76 : tree res = generic_simplify_417 (loc, type, _p0, _p1, captures);
12533 : 76 : if (res) return res;
12534 : : }
12535 : 76 : break;
12536 : : }
12537 : 6294087 : default:;
12538 : : }
12539 : 6294087 : switch (TREE_CODE (_p0))
12540 : : {
12541 : 1915383 : CASE_CONVERT:
12542 : 1915383 : {
12543 : 1915383 : tree _q20 = TREE_OPERAND (_p0, 0);
12544 : 1915383 : switch (TREE_CODE (_q20))
12545 : : {
12546 : 40 : case BIT_AND_EXPR:
12547 : 40 : {
12548 : 40 : tree _q30 = TREE_OPERAND (_q20, 0);
12549 : 40 : tree _q31 = TREE_OPERAND (_q20, 1);
12550 : 40 : switch (TREE_CODE (_p1))
12551 : : {
12552 : 0 : CASE_CONVERT:
12553 : 0 : {
12554 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
12555 : 0 : switch (TREE_CODE (_q60))
12556 : : {
12557 : 0 : case BIT_AND_EXPR:
12558 : 0 : {
12559 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
12560 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
12561 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
12562 : : {
12563 : 0 : {
12564 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _q60, _q71 };
12565 : 0 : tree res = generic_simplify_99 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12566 : 0 : if (res) return res;
12567 : : }
12568 : : }
12569 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
12570 : : {
12571 : 0 : {
12572 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _q60, _q70 };
12573 : 0 : tree res = generic_simplify_99 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12574 : 0 : if (res) return res;
12575 : : }
12576 : : }
12577 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
12578 : : {
12579 : 0 : {
12580 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q31, _q30, _p1, _q60, _q71 };
12581 : 0 : tree res = generic_simplify_99 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12582 : 0 : if (res) return res;
12583 : : }
12584 : : }
12585 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
12586 : : {
12587 : 0 : {
12588 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q31, _q30, _p1, _q60, _q70 };
12589 : 0 : tree res = generic_simplify_99 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12590 : 0 : if (res) return res;
12591 : : }
12592 : : }
12593 : : break;
12594 : : }
12595 : : default:;
12596 : : }
12597 : : break;
12598 : : }
12599 : 0 : case BIT_AND_EXPR:
12600 : 0 : {
12601 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
12602 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
12603 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
12604 : : {
12605 : 0 : {
12606 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _p1, _q61 };
12607 : 0 : tree res = generic_simplify_100 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12608 : 0 : if (res) return res;
12609 : : }
12610 : : }
12611 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
12612 : : {
12613 : 0 : {
12614 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _p1, _q60 };
12615 : 0 : tree res = generic_simplify_100 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12616 : 0 : if (res) return res;
12617 : : }
12618 : : }
12619 : 0 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q31, 0) && types_match (_q60, _q31)))
12620 : : {
12621 : 0 : {
12622 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q31, _q30, _p1, _p1, _q61 };
12623 : 0 : tree res = generic_simplify_100 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12624 : 0 : if (res) return res;
12625 : : }
12626 : : }
12627 : 0 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
12628 : : {
12629 : 0 : {
12630 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q31, _q30, _p1, _p1, _q60 };
12631 : 0 : tree res = generic_simplify_100 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12632 : 0 : if (res) return res;
12633 : : }
12634 : : }
12635 : : break;
12636 : : }
12637 : : default:;
12638 : : }
12639 : : break;
12640 : : }
12641 : 1915383 : default:;
12642 : : }
12643 : 1915383 : switch (TREE_CODE (_p1))
12644 : : {
12645 : 767354 : CASE_CONVERT:
12646 : 767354 : {
12647 : 767354 : tree _q40 = TREE_OPERAND (_p1, 0);
12648 : 767354 : {
12649 : 767354 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
12650 : 767354 : tree res = generic_simplify_101 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12651 : 767354 : if (res) return res;
12652 : : }
12653 : 767354 : break;
12654 : : }
12655 : 1915383 : default:;
12656 : : }
12657 : 1915383 : {
12658 : 1915383 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
12659 : 1915383 : tree res = generic_simplify_102 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12660 : 1915383 : if (res) return res;
12661 : : }
12662 : 1915383 : break;
12663 : : }
12664 : 1560 : case BIT_IOR_EXPR:
12665 : 1560 : {
12666 : 1560 : tree _q20 = TREE_OPERAND (_p0, 0);
12667 : 1560 : tree _q21 = TREE_OPERAND (_p0, 1);
12668 : 1560 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
12669 : : {
12670 : 2 : {
12671 : 2 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
12672 : 2 : tree res = generic_simplify_103 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12673 : 2 : if (res) return res;
12674 : : }
12675 : : }
12676 : 1558 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
12677 : : {
12678 : 4 : {
12679 : 4 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
12680 : 4 : tree res = generic_simplify_103 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12681 : 4 : if (res) return res;
12682 : : }
12683 : : }
12684 : 1554 : {
12685 : 1554 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
12686 : 1554 : tree res = generic_simplify_104 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12687 : 1554 : if (res) return res;
12688 : : }
12689 : 1549 : {
12690 : 1549 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _p1 };
12691 : 1549 : tree res = generic_simplify_104 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12692 : 1549 : if (res) return res;
12693 : : }
12694 : 1549 : switch (TREE_CODE (_p1))
12695 : : {
12696 : 1 : case BIT_AND_EXPR:
12697 : 1 : {
12698 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
12699 : 1 : tree _q51 = TREE_OPERAND (_p1, 1);
12700 : 1 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
12701 : : {
12702 : 1 : {
12703 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _p1, _q51 };
12704 : 1 : tree res = generic_simplify_105 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12705 : 1 : if (res) return res;
12706 : : }
12707 : : }
12708 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
12709 : : {
12710 : 0 : {
12711 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _p1, _q50 };
12712 : 0 : tree res = generic_simplify_105 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12713 : 0 : if (res) return res;
12714 : : }
12715 : : }
12716 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
12717 : : {
12718 : 0 : {
12719 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _p1, _q51 };
12720 : 0 : tree res = generic_simplify_105 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12721 : 0 : if (res) return res;
12722 : : }
12723 : : }
12724 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
12725 : : {
12726 : 0 : {
12727 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _p1, _q50 };
12728 : 0 : tree res = generic_simplify_105 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12729 : 0 : if (res) return res;
12730 : : }
12731 : : }
12732 : : break;
12733 : : }
12734 : 168 : case BIT_NOT_EXPR:
12735 : 168 : {
12736 : 168 : tree _q50 = TREE_OPERAND (_p1, 0);
12737 : 168 : switch (TREE_CODE (_q50))
12738 : : {
12739 : 9 : case BIT_IOR_EXPR:
12740 : 9 : {
12741 : 9 : tree _q60 = TREE_OPERAND (_q50, 0);
12742 : 9 : tree _q61 = TREE_OPERAND (_q50, 1);
12743 : 9 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
12744 : : {
12745 : 0 : {
12746 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _p1, _q61 };
12747 : 0 : tree res = generic_simplify_106 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12748 : 0 : if (res) return res;
12749 : : }
12750 : : }
12751 : 9 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
12752 : : {
12753 : 1 : {
12754 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _p1, _q60 };
12755 : 1 : tree res = generic_simplify_106 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12756 : 1 : if (res) return res;
12757 : : }
12758 : : }
12759 : 8 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
12760 : : {
12761 : 0 : {
12762 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _p1, _q61 };
12763 : 0 : tree res = generic_simplify_106 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12764 : 0 : if (res) return res;
12765 : : }
12766 : : }
12767 : 8 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
12768 : : {
12769 : 0 : {
12770 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _p1, _q60 };
12771 : 0 : tree res = generic_simplify_106 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12772 : 0 : if (res) return res;
12773 : : }
12774 : : }
12775 : : break;
12776 : : }
12777 : : default:;
12778 : : }
12779 : : break;
12780 : : }
12781 : : default:;
12782 : : }
12783 : : break;
12784 : : }
12785 : 6294074 : default:;
12786 : : }
12787 : 6294074 : switch (TREE_CODE (_p1))
12788 : : {
12789 : 476 : case BIT_IOR_EXPR:
12790 : 476 : {
12791 : 476 : tree _q30 = TREE_OPERAND (_p1, 0);
12792 : 476 : tree _q31 = TREE_OPERAND (_p1, 1);
12793 : 476 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
12794 : : {
12795 : 0 : {
12796 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
12797 : 0 : tree res = generic_simplify_103 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12798 : 0 : if (res) return res;
12799 : : }
12800 : : }
12801 : 476 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
12802 : : {
12803 : 0 : {
12804 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
12805 : 0 : tree res = generic_simplify_103 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12806 : 0 : if (res) return res;
12807 : : }
12808 : : }
12809 : 476 : {
12810 : 476 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p0 };
12811 : 476 : tree res = generic_simplify_104 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12812 : 476 : if (res) return res;
12813 : : }
12814 : 476 : {
12815 : 476 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _p0 };
12816 : 476 : tree res = generic_simplify_104 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12817 : 476 : if (res) return res;
12818 : : }
12819 : 475 : break;
12820 : : }
12821 : 6294073 : default:;
12822 : : }
12823 : 6294073 : switch (TREE_CODE (_p0))
12824 : : {
12825 : 1641 : case BIT_AND_EXPR:
12826 : 1641 : {
12827 : 1641 : tree _q20 = TREE_OPERAND (_p0, 0);
12828 : 1641 : tree _q21 = TREE_OPERAND (_p0, 1);
12829 : 1641 : switch (TREE_CODE (_p1))
12830 : : {
12831 : 16 : case BIT_IOR_EXPR:
12832 : 16 : {
12833 : 16 : tree _q50 = TREE_OPERAND (_p1, 0);
12834 : 16 : tree _q51 = TREE_OPERAND (_p1, 1);
12835 : 16 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
12836 : : {
12837 : 0 : {
12838 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q51, _p0, _q21 };
12839 : 0 : tree res = generic_simplify_109 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12840 : 0 : if (res) return res;
12841 : : }
12842 : : }
12843 : 16 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
12844 : : {
12845 : 0 : {
12846 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q51, _p0, _q20 };
12847 : 0 : tree res = generic_simplify_109 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12848 : 0 : if (res) return res;
12849 : : }
12850 : : }
12851 : 16 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
12852 : : {
12853 : 0 : {
12854 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q50, _p0, _q21 };
12855 : 0 : tree res = generic_simplify_109 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12856 : 0 : if (res) return res;
12857 : : }
12858 : : }
12859 : 16 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
12860 : : {
12861 : 0 : {
12862 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q50, _p0, _q20 };
12863 : 0 : tree res = generic_simplify_109 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12864 : 0 : if (res) return res;
12865 : : }
12866 : : }
12867 : : break;
12868 : : }
12869 : : default:;
12870 : : }
12871 : : break;
12872 : : }
12873 : 38363 : case BIT_NOT_EXPR:
12874 : 38363 : {
12875 : 38363 : tree _q20 = TREE_OPERAND (_p0, 0);
12876 : 38363 : switch (TREE_CODE (_q20))
12877 : : {
12878 : 11 : case BIT_IOR_EXPR:
12879 : 11 : {
12880 : 11 : tree _q30 = TREE_OPERAND (_q20, 0);
12881 : 11 : tree _q31 = TREE_OPERAND (_q20, 1);
12882 : 11 : switch (TREE_CODE (_p1))
12883 : : {
12884 : 0 : case BIT_IOR_EXPR:
12885 : 0 : {
12886 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
12887 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
12888 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
12889 : : {
12890 : 0 : {
12891 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q60, _q30, _p0, _q31 };
12892 : 0 : tree res = generic_simplify_110 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12893 : 0 : if (res) return res;
12894 : : }
12895 : : }
12896 : 0 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
12897 : : {
12898 : 0 : {
12899 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q60, _q31, _p0, _q30 };
12900 : 0 : tree res = generic_simplify_110 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12901 : 0 : if (res) return res;
12902 : : }
12903 : : }
12904 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
12905 : : {
12906 : 0 : {
12907 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q61, _q30, _p0, _q31 };
12908 : 0 : tree res = generic_simplify_110 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12909 : 0 : if (res) return res;
12910 : : }
12911 : : }
12912 : 0 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q31, 0) && types_match (_q60, _q31)))
12913 : : {
12914 : 0 : {
12915 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q61, _q31, _p0, _q30 };
12916 : 0 : tree res = generic_simplify_110 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12917 : 0 : if (res) return res;
12918 : : }
12919 : : }
12920 : : break;
12921 : : }
12922 : 11 : default:;
12923 : : }
12924 : 11 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
12925 : : {
12926 : 0 : {
12927 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
12928 : 0 : tree res = generic_simplify_111 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12929 : 0 : if (res) return res;
12930 : : }
12931 : : }
12932 : 11 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
12933 : : {
12934 : 1 : {
12935 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q31, _q30 };
12936 : 1 : tree res = generic_simplify_111 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12937 : 1 : if (res) return res;
12938 : : }
12939 : : }
12940 : : break;
12941 : : }
12942 : : default:;
12943 : : }
12944 : : break;
12945 : : }
12946 : 6294072 : default:;
12947 : : }
12948 : 6294072 : switch (TREE_CODE (_p1))
12949 : : {
12950 : 24303 : case BIT_NOT_EXPR:
12951 : 24303 : {
12952 : 24303 : tree _q30 = TREE_OPERAND (_p1, 0);
12953 : 24303 : switch (TREE_CODE (_q30))
12954 : : {
12955 : 8 : case BIT_IOR_EXPR:
12956 : 8 : {
12957 : 8 : tree _q40 = TREE_OPERAND (_q30, 0);
12958 : 8 : tree _q41 = TREE_OPERAND (_q30, 1);
12959 : 8 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
12960 : : {
12961 : 0 : {
12962 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
12963 : 0 : tree res = generic_simplify_111 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12964 : 0 : if (res) return res;
12965 : : }
12966 : : }
12967 : 8 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
12968 : : {
12969 : 0 : {
12970 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q40 };
12971 : 0 : tree res = generic_simplify_111 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12972 : 0 : if (res) return res;
12973 : : }
12974 : : }
12975 : : break;
12976 : : }
12977 : : default:;
12978 : : }
12979 : : break;
12980 : : }
12981 : 6294072 : default:;
12982 : : }
12983 : 6294072 : switch (TREE_CODE (_p0))
12984 : : {
12985 : 1547 : case BIT_IOR_EXPR:
12986 : 1547 : {
12987 : 1547 : tree _q20 = TREE_OPERAND (_p0, 0);
12988 : 1547 : tree _q21 = TREE_OPERAND (_p0, 1);
12989 : 1547 : if (CONSTANT_CLASS_P (_q21))
12990 : : {
12991 : 459 : if (CONSTANT_CLASS_P (_p1))
12992 : : {
12993 : 25 : {
12994 : 25 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
12995 : 25 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1707;
12996 : 25 : {
12997 : 25 : if (! tree_invariant_p (captures[2])) goto next_after_fail1707;
12998 : 25 : tree res_op0;
12999 : 25 : {
13000 : 25 : tree _o1[2], _r1;
13001 : 25 : _o1[0] = captures[0];
13002 : 25 : _o1[1] = unshare_expr (captures[2]);
13003 : 25 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
13004 : 25 : res_op0 = _r1;
13005 : : }
13006 : 25 : tree res_op1;
13007 : 25 : {
13008 : 25 : tree _o1[2], _r1;
13009 : 25 : _o1[0] = captures[1];
13010 : 25 : _o1[1] = captures[2];
13011 : 25 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
13012 : 25 : if (EXPR_P (_r1))
13013 : 0 : goto next_after_fail1707;
13014 : 25 : res_op1 = _r1;
13015 : : }
13016 : 25 : tree _r;
13017 : 25 : _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
13018 : 25 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1021, __FILE__, __LINE__, true);
13019 : 25 : return _r;
13020 : : }
13021 : 0 : next_after_fail1707:;
13022 : : }
13023 : : }
13024 : : }
13025 : : break;
13026 : : }
13027 : 1641 : case BIT_AND_EXPR:
13028 : 1641 : {
13029 : 1641 : tree _q20 = TREE_OPERAND (_p0, 0);
13030 : 1641 : tree _q21 = TREE_OPERAND (_p0, 1);
13031 : 1641 : if (CONSTANT_CLASS_P (_q21))
13032 : : {
13033 : 566 : if (CONSTANT_CLASS_P (_p1))
13034 : : {
13035 : 501 : {
13036 : 501 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
13037 : 501 : tree res = generic_simplify_117 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
13038 : 501 : if (res) return res;
13039 : : }
13040 : : }
13041 : : }
13042 : : break;
13043 : : }
13044 : 6293546 : default:;
13045 : : }
13046 : 6293546 : {
13047 : 6293546 : tree _p1_pops[1];
13048 : 6293546 : if (tree_logical_inverted_value (_p1, _p1_pops))
13049 : : {
13050 : 684 : tree _q30 = _p1_pops[0];
13051 : 684 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
13052 : : {
13053 : 1 : {
13054 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
13055 : 1 : tree res = generic_simplify_418 (loc, type, _p0, _p1, captures);
13056 : 1 : if (res) return res;
13057 : : }
13058 : : }
13059 : : }
13060 : : }
13061 : 6293545 : switch (TREE_CODE (_p0))
13062 : : {
13063 : 1915383 : CASE_CONVERT:
13064 : 1915383 : {
13065 : 1915383 : tree _q20 = TREE_OPERAND (_p0, 0);
13066 : 1915383 : switch (TREE_CODE (_q20))
13067 : : {
13068 : 6102 : case NEGATE_EXPR:
13069 : 6102 : {
13070 : 6102 : tree _q30 = TREE_OPERAND (_q20, 0);
13071 : 6102 : if (tree_zero_one_valued_p (_q30))
13072 : : {
13073 : 2 : {
13074 : 2 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p1 };
13075 : 2 : tree res = generic_simplify_413 (loc, type, _p0, _p1, captures);
13076 : 2 : if (res) return res;
13077 : : }
13078 : : }
13079 : : break;
13080 : : }
13081 : : default:;
13082 : : }
13083 : : break;
13084 : : }
13085 : 6293543 : default:;
13086 : : }
13087 : 6293543 : {
13088 : 6293543 : tree _p0_pops[1];
13089 : 6293543 : if (tree_logical_inverted_value (_p0, _p0_pops))
13090 : : {
13091 : 509 : tree _q20 = _p0_pops[0];
13092 : 509 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
13093 : : {
13094 : 12 : {
13095 : 12 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
13096 : 12 : tree res = generic_simplify_418 (loc, type, _p0, _p1, captures);
13097 : 12 : if (res) return res;
13098 : : }
13099 : : }
13100 : : }
13101 : : }
13102 : 6293531 : switch (TREE_CODE (_p1))
13103 : : {
13104 : 860228 : CASE_CONVERT:
13105 : 860228 : {
13106 : 860228 : tree _q30 = TREE_OPERAND (_p1, 0);
13107 : 860228 : switch (TREE_CODE (_q30))
13108 : : {
13109 : 108 : case NEGATE_EXPR:
13110 : 108 : {
13111 : 108 : tree _q40 = TREE_OPERAND (_q30, 0);
13112 : 108 : if (tree_zero_one_valued_p (_q40))
13113 : : {
13114 : 18 : {
13115 : 18 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _p0 };
13116 : 18 : tree res = generic_simplify_413 (loc, type, _p0, _p1, captures);
13117 : 18 : if (res) return res;
13118 : : }
13119 : : }
13120 : : break;
13121 : : }
13122 : : default:;
13123 : : }
13124 : : break;
13125 : : }
13126 : 11000 : case NEGATE_EXPR:
13127 : 11000 : {
13128 : 11000 : tree _q30 = TREE_OPERAND (_p1, 0);
13129 : 11000 : if (tree_zero_one_valued_p (_q30))
13130 : : {
13131 : 24 : {
13132 : 24 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p0 };
13133 : 24 : tree res = generic_simplify_413 (loc, type, _p0, _p1, captures);
13134 : 24 : if (res) return res;
13135 : : }
13136 : : }
13137 : : break;
13138 : : }
13139 : 6293489 : default:;
13140 : : }
13141 : 6293489 : switch (TREE_CODE (_p0))
13142 : : {
13143 : 46651 : case NEGATE_EXPR:
13144 : 46651 : {
13145 : 46651 : tree _q20 = TREE_OPERAND (_p0, 0);
13146 : 46651 : switch (TREE_CODE (_q20))
13147 : : {
13148 : 6327 : CASE_CONVERT:
13149 : 6327 : {
13150 : 6327 : tree _q30 = TREE_OPERAND (_q20, 0);
13151 : 6327 : switch (TREE_CODE (_q30))
13152 : : {
13153 : 0 : case LT_EXPR:
13154 : 0 : {
13155 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13156 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13157 : 0 : {
13158 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13159 : 0 : tree res = generic_simplify_419 (loc, type, _p0, _p1, captures, LT_EXPR);
13160 : 0 : if (res) return res;
13161 : : }
13162 : 0 : break;
13163 : : }
13164 : 0 : case LE_EXPR:
13165 : 0 : {
13166 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13167 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13168 : 0 : {
13169 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13170 : 0 : tree res = generic_simplify_419 (loc, type, _p0, _p1, captures, LE_EXPR);
13171 : 0 : if (res) return res;
13172 : : }
13173 : 0 : break;
13174 : : }
13175 : 0 : case EQ_EXPR:
13176 : 0 : {
13177 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13178 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13179 : 0 : {
13180 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13181 : 0 : tree res = generic_simplify_419 (loc, type, _p0, _p1, captures, EQ_EXPR);
13182 : 0 : if (res) return res;
13183 : : }
13184 : 0 : break;
13185 : : }
13186 : 0 : case NE_EXPR:
13187 : 0 : {
13188 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13189 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13190 : 0 : {
13191 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13192 : 0 : tree res = generic_simplify_419 (loc, type, _p0, _p1, captures, NE_EXPR);
13193 : 0 : if (res) return res;
13194 : : }
13195 : 0 : break;
13196 : : }
13197 : 0 : case GE_EXPR:
13198 : 0 : {
13199 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13200 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13201 : 0 : {
13202 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13203 : 0 : tree res = generic_simplify_419 (loc, type, _p0, _p1, captures, GE_EXPR);
13204 : 0 : if (res) return res;
13205 : : }
13206 : 0 : break;
13207 : : }
13208 : 0 : case GT_EXPR:
13209 : 0 : {
13210 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13211 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13212 : 0 : {
13213 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13214 : 0 : tree res = generic_simplify_419 (loc, type, _p0, _p1, captures, GT_EXPR);
13215 : 0 : if (res) return res;
13216 : : }
13217 : 0 : break;
13218 : : }
13219 : 0 : case UNORDERED_EXPR:
13220 : 0 : {
13221 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13222 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13223 : 0 : {
13224 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13225 : 0 : tree res = generic_simplify_419 (loc, type, _p0, _p1, captures, UNORDERED_EXPR);
13226 : 0 : if (res) return res;
13227 : : }
13228 : 0 : break;
13229 : : }
13230 : 0 : case ORDERED_EXPR:
13231 : 0 : {
13232 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13233 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13234 : 0 : {
13235 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13236 : 0 : tree res = generic_simplify_419 (loc, type, _p0, _p1, captures, ORDERED_EXPR);
13237 : 0 : if (res) return res;
13238 : : }
13239 : 0 : break;
13240 : : }
13241 : 0 : case UNLT_EXPR:
13242 : 0 : {
13243 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13244 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13245 : 0 : {
13246 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13247 : 0 : tree res = generic_simplify_419 (loc, type, _p0, _p1, captures, UNLT_EXPR);
13248 : 0 : if (res) return res;
13249 : : }
13250 : 0 : break;
13251 : : }
13252 : 0 : case UNLE_EXPR:
13253 : 0 : {
13254 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13255 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13256 : 0 : {
13257 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13258 : 0 : tree res = generic_simplify_419 (loc, type, _p0, _p1, captures, UNLE_EXPR);
13259 : 0 : if (res) return res;
13260 : : }
13261 : 0 : break;
13262 : : }
13263 : 0 : case UNGT_EXPR:
13264 : 0 : {
13265 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13266 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13267 : 0 : {
13268 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13269 : 0 : tree res = generic_simplify_419 (loc, type, _p0, _p1, captures, UNGT_EXPR);
13270 : 0 : if (res) return res;
13271 : : }
13272 : 0 : break;
13273 : : }
13274 : 0 : case UNGE_EXPR:
13275 : 0 : {
13276 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13277 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13278 : 0 : {
13279 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13280 : 0 : tree res = generic_simplify_419 (loc, type, _p0, _p1, captures, UNGE_EXPR);
13281 : 0 : if (res) return res;
13282 : : }
13283 : 0 : break;
13284 : : }
13285 : 0 : case UNEQ_EXPR:
13286 : 0 : {
13287 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13288 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13289 : 0 : {
13290 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13291 : 0 : tree res = generic_simplify_419 (loc, type, _p0, _p1, captures, UNEQ_EXPR);
13292 : 0 : if (res) return res;
13293 : : }
13294 : 0 : break;
13295 : : }
13296 : 0 : case LTGT_EXPR:
13297 : 0 : {
13298 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13299 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13300 : 0 : {
13301 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13302 : 0 : tree res = generic_simplify_419 (loc, type, _p0, _p1, captures, LTGT_EXPR);
13303 : 0 : if (res) return res;
13304 : : }
13305 : 0 : break;
13306 : : }
13307 : : default:;
13308 : : }
13309 : : break;
13310 : : }
13311 : : default:;
13312 : : }
13313 : : break;
13314 : : }
13315 : 6293489 : default:;
13316 : : }
13317 : 6293489 : switch (TREE_CODE (_p1))
13318 : : {
13319 : 10976 : case NEGATE_EXPR:
13320 : 10976 : {
13321 : 10976 : tree _q30 = TREE_OPERAND (_p1, 0);
13322 : 10976 : switch (TREE_CODE (_q30))
13323 : : {
13324 : 65 : CASE_CONVERT:
13325 : 65 : {
13326 : 65 : tree _q40 = TREE_OPERAND (_q30, 0);
13327 : 65 : switch (TREE_CODE (_q40))
13328 : : {
13329 : 0 : case LT_EXPR:
13330 : 0 : {
13331 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13332 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13333 : 0 : {
13334 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13335 : 0 : tree res = generic_simplify_420 (loc, type, _p0, _p1, captures, LT_EXPR);
13336 : 0 : if (res) return res;
13337 : : }
13338 : 0 : break;
13339 : : }
13340 : 0 : case LE_EXPR:
13341 : 0 : {
13342 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13343 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13344 : 0 : {
13345 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13346 : 0 : tree res = generic_simplify_420 (loc, type, _p0, _p1, captures, LE_EXPR);
13347 : 0 : if (res) return res;
13348 : : }
13349 : 0 : break;
13350 : : }
13351 : 0 : case EQ_EXPR:
13352 : 0 : {
13353 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13354 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13355 : 0 : {
13356 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13357 : 0 : tree res = generic_simplify_420 (loc, type, _p0, _p1, captures, EQ_EXPR);
13358 : 0 : if (res) return res;
13359 : : }
13360 : 0 : break;
13361 : : }
13362 : 0 : case NE_EXPR:
13363 : 0 : {
13364 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13365 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13366 : 0 : {
13367 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13368 : 0 : tree res = generic_simplify_420 (loc, type, _p0, _p1, captures, NE_EXPR);
13369 : 0 : if (res) return res;
13370 : : }
13371 : 0 : break;
13372 : : }
13373 : 0 : case GE_EXPR:
13374 : 0 : {
13375 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13376 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13377 : 0 : {
13378 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13379 : 0 : tree res = generic_simplify_420 (loc, type, _p0, _p1, captures, GE_EXPR);
13380 : 0 : if (res) return res;
13381 : : }
13382 : 0 : break;
13383 : : }
13384 : 0 : case GT_EXPR:
13385 : 0 : {
13386 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13387 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13388 : 0 : {
13389 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13390 : 0 : tree res = generic_simplify_420 (loc, type, _p0, _p1, captures, GT_EXPR);
13391 : 0 : if (res) return res;
13392 : : }
13393 : 0 : break;
13394 : : }
13395 : 0 : case UNORDERED_EXPR:
13396 : 0 : {
13397 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13398 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13399 : 0 : {
13400 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13401 : 0 : tree res = generic_simplify_420 (loc, type, _p0, _p1, captures, UNORDERED_EXPR);
13402 : 0 : if (res) return res;
13403 : : }
13404 : 0 : break;
13405 : : }
13406 : 0 : case ORDERED_EXPR:
13407 : 0 : {
13408 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13409 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13410 : 0 : {
13411 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13412 : 0 : tree res = generic_simplify_420 (loc, type, _p0, _p1, captures, ORDERED_EXPR);
13413 : 0 : if (res) return res;
13414 : : }
13415 : 0 : break;
13416 : : }
13417 : 0 : case UNLT_EXPR:
13418 : 0 : {
13419 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13420 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13421 : 0 : {
13422 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13423 : 0 : tree res = generic_simplify_420 (loc, type, _p0, _p1, captures, UNLT_EXPR);
13424 : 0 : if (res) return res;
13425 : : }
13426 : 0 : break;
13427 : : }
13428 : 0 : case UNLE_EXPR:
13429 : 0 : {
13430 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13431 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13432 : 0 : {
13433 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13434 : 0 : tree res = generic_simplify_420 (loc, type, _p0, _p1, captures, UNLE_EXPR);
13435 : 0 : if (res) return res;
13436 : : }
13437 : 0 : break;
13438 : : }
13439 : 0 : case UNGT_EXPR:
13440 : 0 : {
13441 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13442 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13443 : 0 : {
13444 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13445 : 0 : tree res = generic_simplify_420 (loc, type, _p0, _p1, captures, UNGT_EXPR);
13446 : 0 : if (res) return res;
13447 : : }
13448 : 0 : break;
13449 : : }
13450 : 0 : case UNGE_EXPR:
13451 : 0 : {
13452 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13453 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13454 : 0 : {
13455 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13456 : 0 : tree res = generic_simplify_420 (loc, type, _p0, _p1, captures, UNGE_EXPR);
13457 : 0 : if (res) return res;
13458 : : }
13459 : 0 : break;
13460 : : }
13461 : 0 : case UNEQ_EXPR:
13462 : 0 : {
13463 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13464 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13465 : 0 : {
13466 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13467 : 0 : tree res = generic_simplify_420 (loc, type, _p0, _p1, captures, UNEQ_EXPR);
13468 : 0 : if (res) return res;
13469 : : }
13470 : 0 : break;
13471 : : }
13472 : 0 : case LTGT_EXPR:
13473 : 0 : {
13474 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13475 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13476 : 0 : {
13477 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13478 : 0 : tree res = generic_simplify_420 (loc, type, _p0, _p1, captures, LTGT_EXPR);
13479 : 0 : if (res) return res;
13480 : : }
13481 : 0 : break;
13482 : : }
13483 : : default:;
13484 : : }
13485 : : break;
13486 : : }
13487 : : default:;
13488 : : }
13489 : : break;
13490 : : }
13491 : 6293489 : default:;
13492 : : }
13493 : 6293489 : switch (TREE_CODE (_p0))
13494 : : {
13495 : 1915379 : CASE_CONVERT:
13496 : 1915379 : {
13497 : 1915379 : tree _q20 = TREE_OPERAND (_p0, 0);
13498 : 1915379 : switch (TREE_CODE (_p1))
13499 : : {
13500 : 943025 : case INTEGER_CST:
13501 : 943025 : {
13502 : 943025 : {
13503 : 943025 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
13504 : 943025 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures);
13505 : 943025 : if (res) return res;
13506 : : }
13507 : 939275 : break;
13508 : : }
13509 : 1911629 : default:;
13510 : : }
13511 : 1911629 : switch (TREE_CODE (_q20))
13512 : : {
13513 : 70351 : case LSHIFT_EXPR:
13514 : 70351 : {
13515 : 70351 : tree _q30 = TREE_OPERAND (_q20, 0);
13516 : 70351 : tree _q31 = TREE_OPERAND (_q20, 1);
13517 : 70351 : switch (TREE_CODE (_q30))
13518 : : {
13519 : 79 : CASE_CONVERT:
13520 : 79 : {
13521 : 79 : tree _q40 = TREE_OPERAND (_q30, 0);
13522 : 79 : switch (TREE_CODE (_q31))
13523 : : {
13524 : 79 : case INTEGER_CST:
13525 : 79 : {
13526 : 79 : switch (TREE_CODE (_p1))
13527 : : {
13528 : 79 : case INTEGER_CST:
13529 : 79 : {
13530 : 79 : {
13531 : 79 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q40, _q31, _p1 };
13532 : 79 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
13533 : 79 : if (res) return res;
13534 : : }
13535 : 79 : break;
13536 : : }
13537 : : default:;
13538 : : }
13539 : : break;
13540 : : }
13541 : : default:;
13542 : : }
13543 : : break;
13544 : : }
13545 : 70351 : default:;
13546 : : }
13547 : 70351 : switch (TREE_CODE (_q31))
13548 : : {
13549 : 79 : case INTEGER_CST:
13550 : 79 : {
13551 : 79 : switch (TREE_CODE (_p1))
13552 : : {
13553 : 79 : case INTEGER_CST:
13554 : 79 : {
13555 : 79 : {
13556 : 79 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q30, _q31, _p1 };
13557 : 79 : tree res = generic_simplify_423 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
13558 : 79 : if (res) return res;
13559 : : }
13560 : 79 : break;
13561 : : }
13562 : : default:;
13563 : : }
13564 : : break;
13565 : : }
13566 : : default:;
13567 : : }
13568 : : break;
13569 : : }
13570 : 68083 : case RSHIFT_EXPR:
13571 : 68083 : {
13572 : 68083 : tree _q30 = TREE_OPERAND (_q20, 0);
13573 : 68083 : tree _q31 = TREE_OPERAND (_q20, 1);
13574 : 68083 : switch (TREE_CODE (_q30))
13575 : : {
13576 : 43770 : CASE_CONVERT:
13577 : 43770 : {
13578 : 43770 : tree _q40 = TREE_OPERAND (_q30, 0);
13579 : 43770 : switch (TREE_CODE (_q31))
13580 : : {
13581 : 43643 : case INTEGER_CST:
13582 : 43643 : {
13583 : 43643 : switch (TREE_CODE (_p1))
13584 : : {
13585 : 43643 : case INTEGER_CST:
13586 : 43643 : {
13587 : 43643 : {
13588 : 43643 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q40, _q31, _p1 };
13589 : 43643 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, RSHIFT_EXPR);
13590 : 43643 : if (res) return res;
13591 : : }
13592 : 43586 : break;
13593 : : }
13594 : : default:;
13595 : : }
13596 : : break;
13597 : : }
13598 : 43713 : default:;
13599 : : }
13600 : 43713 : switch (TREE_CODE (_q40))
13601 : : {
13602 : 2 : case CALL_EXPR:
13603 : 2 : switch (get_call_combined_fn (_q40))
13604 : : {
13605 : 0 : case CFN_BUILT_IN_BSWAP128:
13606 : 0 : if (call_expr_nargs (_q40) == 1)
13607 : : {
13608 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
13609 : 0 : switch (TREE_CODE (_q31))
13610 : : {
13611 : 0 : case INTEGER_CST:
13612 : 0 : {
13613 : 0 : switch (TREE_CODE (_p1))
13614 : : {
13615 : 0 : case INTEGER_CST:
13616 : 0 : {
13617 : 0 : {
13618 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q40, _q50, _q31, _p1 };
13619 : 0 : tree res = generic_simplify_424 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP128);
13620 : 0 : if (res) return res;
13621 : : }
13622 : 0 : break;
13623 : : }
13624 : : default:;
13625 : : }
13626 : : break;
13627 : : }
13628 : : default:;
13629 : : }
13630 : : }
13631 : : break;
13632 : 2 : case CFN_BUILT_IN_BSWAP16:
13633 : 2 : if (call_expr_nargs (_q40) == 1)
13634 : : {
13635 : 2 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
13636 : 2 : switch (TREE_CODE (_q31))
13637 : : {
13638 : 2 : case INTEGER_CST:
13639 : 2 : {
13640 : 2 : switch (TREE_CODE (_p1))
13641 : : {
13642 : 2 : case INTEGER_CST:
13643 : 2 : {
13644 : 2 : {
13645 : 2 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q40, _q50, _q31, _p1 };
13646 : 2 : tree res = generic_simplify_424 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP16);
13647 : 2 : if (res) return res;
13648 : : }
13649 : 0 : break;
13650 : : }
13651 : : default:;
13652 : : }
13653 : : break;
13654 : : }
13655 : : default:;
13656 : : }
13657 : : }
13658 : : break;
13659 : 0 : case CFN_BUILT_IN_BSWAP32:
13660 : 0 : if (call_expr_nargs (_q40) == 1)
13661 : : {
13662 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
13663 : 0 : switch (TREE_CODE (_q31))
13664 : : {
13665 : 0 : case INTEGER_CST:
13666 : 0 : {
13667 : 0 : switch (TREE_CODE (_p1))
13668 : : {
13669 : 0 : case INTEGER_CST:
13670 : 0 : {
13671 : 0 : {
13672 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q40, _q50, _q31, _p1 };
13673 : 0 : tree res = generic_simplify_424 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP32);
13674 : 0 : if (res) return res;
13675 : : }
13676 : 0 : break;
13677 : : }
13678 : : default:;
13679 : : }
13680 : : break;
13681 : : }
13682 : : default:;
13683 : : }
13684 : : }
13685 : : break;
13686 : 0 : case CFN_BUILT_IN_BSWAP64:
13687 : 0 : if (call_expr_nargs (_q40) == 1)
13688 : : {
13689 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
13690 : 0 : switch (TREE_CODE (_q31))
13691 : : {
13692 : 0 : case INTEGER_CST:
13693 : 0 : {
13694 : 0 : switch (TREE_CODE (_p1))
13695 : : {
13696 : 0 : case INTEGER_CST:
13697 : 0 : {
13698 : 0 : {
13699 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q40, _q50, _q31, _p1 };
13700 : 0 : tree res = generic_simplify_424 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP64);
13701 : 0 : if (res) return res;
13702 : : }
13703 : 0 : break;
13704 : : }
13705 : : default:;
13706 : : }
13707 : : break;
13708 : : }
13709 : : default:;
13710 : : }
13711 : : }
13712 : : break;
13713 : : default:;
13714 : : }
13715 : : break;
13716 : : default:;
13717 : : }
13718 : : break;
13719 : : }
13720 : 68024 : default:;
13721 : : }
13722 : 68024 : switch (TREE_CODE (_q31))
13723 : : {
13724 : 49390 : case INTEGER_CST:
13725 : 49390 : {
13726 : 49390 : switch (TREE_CODE (_p1))
13727 : : {
13728 : 49318 : case INTEGER_CST:
13729 : 49318 : {
13730 : 49318 : {
13731 : 49318 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q30, _q31, _p1 };
13732 : 49318 : tree res = generic_simplify_423 (loc, type, _p0, _p1, captures, RSHIFT_EXPR);
13733 : 49318 : if (res) return res;
13734 : : }
13735 : 49280 : break;
13736 : : }
13737 : : default:;
13738 : : }
13739 : : break;
13740 : : }
13741 : 67986 : default:;
13742 : : }
13743 : 67986 : switch (TREE_CODE (_q30))
13744 : : {
13745 : 80 : case CALL_EXPR:
13746 : 80 : switch (get_call_combined_fn (_q30))
13747 : : {
13748 : 0 : case CFN_BUILT_IN_BSWAP128:
13749 : 0 : if (call_expr_nargs (_q30) == 1)
13750 : : {
13751 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
13752 : 0 : switch (TREE_CODE (_q31))
13753 : : {
13754 : 0 : case INTEGER_CST:
13755 : 0 : {
13756 : 0 : switch (TREE_CODE (_p1))
13757 : : {
13758 : 0 : case INTEGER_CST:
13759 : 0 : {
13760 : 0 : {
13761 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q30, _q40, _q31, _p1 };
13762 : 0 : tree res = generic_simplify_424 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP128);
13763 : 0 : if (res) return res;
13764 : : }
13765 : 0 : break;
13766 : : }
13767 : : default:;
13768 : : }
13769 : : break;
13770 : : }
13771 : : default:;
13772 : : }
13773 : : }
13774 : : break;
13775 : 9 : case CFN_BUILT_IN_BSWAP16:
13776 : 9 : if (call_expr_nargs (_q30) == 1)
13777 : : {
13778 : 9 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
13779 : 9 : switch (TREE_CODE (_q31))
13780 : : {
13781 : 9 : case INTEGER_CST:
13782 : 9 : {
13783 : 9 : switch (TREE_CODE (_p1))
13784 : : {
13785 : 9 : case INTEGER_CST:
13786 : 9 : {
13787 : 9 : {
13788 : 9 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q30, _q40, _q31, _p1 };
13789 : 9 : tree res = generic_simplify_424 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP16);
13790 : 9 : if (res) return res;
13791 : : }
13792 : 0 : break;
13793 : : }
13794 : : default:;
13795 : : }
13796 : : break;
13797 : : }
13798 : : default:;
13799 : : }
13800 : : }
13801 : : break;
13802 : 0 : case CFN_BUILT_IN_BSWAP32:
13803 : 0 : if (call_expr_nargs (_q30) == 1)
13804 : : {
13805 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
13806 : 0 : switch (TREE_CODE (_q31))
13807 : : {
13808 : 0 : case INTEGER_CST:
13809 : 0 : {
13810 : 0 : switch (TREE_CODE (_p1))
13811 : : {
13812 : 0 : case INTEGER_CST:
13813 : 0 : {
13814 : 0 : {
13815 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q30, _q40, _q31, _p1 };
13816 : 0 : tree res = generic_simplify_424 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP32);
13817 : 0 : if (res) return res;
13818 : : }
13819 : 0 : break;
13820 : : }
13821 : : default:;
13822 : : }
13823 : : break;
13824 : : }
13825 : : default:;
13826 : : }
13827 : : }
13828 : : break;
13829 : 71 : case CFN_BUILT_IN_BSWAP64:
13830 : 71 : if (call_expr_nargs (_q30) == 1)
13831 : : {
13832 : 71 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
13833 : 71 : switch (TREE_CODE (_q31))
13834 : : {
13835 : 70 : case INTEGER_CST:
13836 : 70 : {
13837 : 70 : switch (TREE_CODE (_p1))
13838 : : {
13839 : 70 : case INTEGER_CST:
13840 : 70 : {
13841 : 70 : {
13842 : 70 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q30, _q40, _q31, _p1 };
13843 : 70 : tree res = generic_simplify_424 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP64);
13844 : 70 : if (res) return res;
13845 : : }
13846 : 0 : break;
13847 : : }
13848 : : default:;
13849 : : }
13850 : : break;
13851 : : }
13852 : : default:;
13853 : : }
13854 : : }
13855 : : break;
13856 : : default:;
13857 : : }
13858 : : break;
13859 : : default:;
13860 : : }
13861 : : break;
13862 : : }
13863 : 31270 : case CALL_EXPR:
13864 : 31270 : switch (get_call_combined_fn (_q20))
13865 : : {
13866 : 0 : case CFN_BUILT_IN_BSWAP128:
13867 : 0 : if (call_expr_nargs (_q20) == 1)
13868 : : {
13869 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
13870 : 0 : switch (TREE_CODE (_p1))
13871 : : {
13872 : 0 : case INTEGER_CST:
13873 : 0 : {
13874 : 0 : {
13875 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
13876 : 0 : tree res = generic_simplify_425 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP128);
13877 : 0 : if (res) return res;
13878 : : }
13879 : 0 : break;
13880 : : }
13881 : : default:;
13882 : : }
13883 : : }
13884 : : break;
13885 : 10 : case CFN_BUILT_IN_BSWAP16:
13886 : 10 : if (call_expr_nargs (_q20) == 1)
13887 : : {
13888 : 10 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
13889 : 10 : switch (TREE_CODE (_p1))
13890 : : {
13891 : 10 : case INTEGER_CST:
13892 : 10 : {
13893 : 10 : {
13894 : 10 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
13895 : 10 : tree res = generic_simplify_425 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP16);
13896 : 10 : if (res) return res;
13897 : : }
13898 : 0 : break;
13899 : : }
13900 : : default:;
13901 : : }
13902 : : }
13903 : : break;
13904 : 4 : case CFN_BUILT_IN_BSWAP32:
13905 : 4 : if (call_expr_nargs (_q20) == 1)
13906 : : {
13907 : 4 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
13908 : 4 : switch (TREE_CODE (_p1))
13909 : : {
13910 : 4 : case INTEGER_CST:
13911 : 4 : {
13912 : 4 : {
13913 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
13914 : 4 : tree res = generic_simplify_425 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP32);
13915 : 4 : if (res) return res;
13916 : : }
13917 : 0 : break;
13918 : : }
13919 : : default:;
13920 : : }
13921 : : }
13922 : : break;
13923 : 4 : case CFN_BUILT_IN_BSWAP64:
13924 : 4 : if (call_expr_nargs (_q20) == 1)
13925 : : {
13926 : 4 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
13927 : 4 : switch (TREE_CODE (_p1))
13928 : : {
13929 : 4 : case INTEGER_CST:
13930 : 4 : {
13931 : 4 : {
13932 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
13933 : 4 : tree res = generic_simplify_425 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP64);
13934 : 4 : if (res) return res;
13935 : : }
13936 : 0 : break;
13937 : : }
13938 : : default:;
13939 : : }
13940 : : }
13941 : : break;
13942 : : default:;
13943 : : }
13944 : : break;
13945 : : default:;
13946 : : }
13947 : : break;
13948 : : }
13949 : 6289545 : default:;
13950 : : }
13951 : 6289545 : switch (TREE_CODE (_p1))
13952 : : {
13953 : 4444005 : case INTEGER_CST:
13954 : 4444005 : {
13955 : 4444005 : {
13956 : 4444005 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
13957 : 4444005 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures);
13958 : 4444005 : if (res) return res;
13959 : : }
13960 : 4444005 : break;
13961 : : }
13962 : 6289545 : default:;
13963 : : }
13964 : 6289545 : switch (TREE_CODE (_p0))
13965 : : {
13966 : 327 : case GT_EXPR:
13967 : 327 : {
13968 : 327 : tree _q20 = TREE_OPERAND (_p0, 0);
13969 : 327 : tree _q21 = TREE_OPERAND (_p0, 1);
13970 : 327 : switch (TREE_CODE (_p1))
13971 : : {
13972 : 34 : case EQ_EXPR:
13973 : 34 : {
13974 : 34 : tree _q50 = TREE_OPERAND (_p1, 0);
13975 : 34 : tree _q51 = TREE_OPERAND (_p1, 1);
13976 : 34 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
13977 : : {
13978 : 4 : if (tree_min_value (_q51))
13979 : : {
13980 : 0 : {
13981 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
13982 : 0 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, EQ_EXPR);
13983 : 0 : if (res) return res;
13984 : : }
13985 : : }
13986 : : }
13987 : 34 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
13988 : : {
13989 : 0 : if (tree_max_value (_q51))
13990 : : {
13991 : 0 : {
13992 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
13993 : 0 : tree res = generic_simplify_427 (loc, type, _p0, _p1, captures, EQ_EXPR);
13994 : 0 : if (res) return res;
13995 : : }
13996 : : }
13997 : : }
13998 : : break;
13999 : : }
14000 : 0 : case NE_EXPR:
14001 : 0 : {
14002 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
14003 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
14004 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14005 : : {
14006 : 0 : if (tree_min_value (_q51))
14007 : : {
14008 : 0 : {
14009 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
14010 : 0 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, NE_EXPR);
14011 : 0 : if (res) return res;
14012 : : }
14013 : : }
14014 : : }
14015 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14016 : : {
14017 : 0 : if (tree_max_value (_q51))
14018 : : {
14019 : 0 : {
14020 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
14021 : 0 : tree res = generic_simplify_427 (loc, type, _p0, _p1, captures, NE_EXPR);
14022 : 0 : if (res) return res;
14023 : : }
14024 : : }
14025 : : }
14026 : : break;
14027 : : }
14028 : 327 : default:;
14029 : : }
14030 : 327 : switch (TREE_CODE (_q20))
14031 : : {
14032 : 0 : CASE_CONVERT:
14033 : 0 : {
14034 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
14035 : 0 : switch (TREE_CODE (_p1))
14036 : : {
14037 : 0 : case EQ_EXPR:
14038 : 0 : {
14039 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14040 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14041 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
14042 : : {
14043 : 0 : {
14044 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
14045 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
14046 : 0 : if (res) return res;
14047 : : }
14048 : : }
14049 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
14050 : : {
14051 : 0 : {
14052 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
14053 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
14054 : 0 : if (res) return res;
14055 : : }
14056 : : }
14057 : : break;
14058 : : }
14059 : 0 : case NE_EXPR:
14060 : 0 : {
14061 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14062 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14063 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
14064 : : {
14065 : 0 : {
14066 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
14067 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
14068 : 0 : if (res) return res;
14069 : : }
14070 : : }
14071 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
14072 : : {
14073 : 0 : {
14074 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
14075 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
14076 : 0 : if (res) return res;
14077 : : }
14078 : : }
14079 : : break;
14080 : : }
14081 : : default:;
14082 : : }
14083 : : break;
14084 : : }
14085 : 327 : default:;
14086 : : }
14087 : 327 : switch (TREE_CODE (_q21))
14088 : : {
14089 : 0 : CASE_CONVERT:
14090 : 0 : {
14091 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
14092 : 0 : switch (TREE_CODE (_p1))
14093 : : {
14094 : 0 : case EQ_EXPR:
14095 : 0 : {
14096 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14097 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14098 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
14099 : : {
14100 : 0 : {
14101 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
14102 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
14103 : 0 : if (res) return res;
14104 : : }
14105 : : }
14106 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
14107 : : {
14108 : 0 : {
14109 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
14110 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
14111 : 0 : if (res) return res;
14112 : : }
14113 : : }
14114 : : break;
14115 : : }
14116 : 0 : case NE_EXPR:
14117 : 0 : {
14118 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14119 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14120 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
14121 : : {
14122 : 0 : {
14123 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
14124 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
14125 : 0 : if (res) return res;
14126 : : }
14127 : : }
14128 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
14129 : : {
14130 : 0 : {
14131 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
14132 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
14133 : 0 : if (res) return res;
14134 : : }
14135 : : }
14136 : : break;
14137 : : }
14138 : : default:;
14139 : : }
14140 : : break;
14141 : : }
14142 : 327 : default:;
14143 : : }
14144 : 327 : switch (TREE_CODE (_p1))
14145 : : {
14146 : 34 : case EQ_EXPR:
14147 : 34 : {
14148 : 34 : tree _q50 = TREE_OPERAND (_p1, 0);
14149 : 34 : tree _q51 = TREE_OPERAND (_p1, 1);
14150 : 34 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14151 : : {
14152 : 4 : {
14153 : 4 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
14154 : 4 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
14155 : 4 : if (res) return res;
14156 : : }
14157 : : }
14158 : 34 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14159 : : {
14160 : 0 : {
14161 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
14162 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
14163 : 0 : if (res) return res;
14164 : : }
14165 : : }
14166 : 34 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14167 : : {
14168 : 0 : {
14169 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
14170 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
14171 : 0 : if (res) return res;
14172 : : }
14173 : : }
14174 : 34 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14175 : : {
14176 : 0 : {
14177 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
14178 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
14179 : 0 : if (res) return res;
14180 : : }
14181 : : }
14182 : : break;
14183 : : }
14184 : 0 : case NE_EXPR:
14185 : 0 : {
14186 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
14187 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
14188 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14189 : : {
14190 : 0 : {
14191 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
14192 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
14193 : 0 : if (res) return res;
14194 : : }
14195 : : }
14196 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14197 : : {
14198 : 0 : {
14199 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
14200 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
14201 : 0 : if (res) return res;
14202 : : }
14203 : : }
14204 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14205 : : {
14206 : 0 : {
14207 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
14208 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
14209 : 0 : if (res) return res;
14210 : : }
14211 : : }
14212 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14213 : : {
14214 : 0 : {
14215 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
14216 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
14217 : 0 : if (res) return res;
14218 : : }
14219 : : }
14220 : : break;
14221 : : }
14222 : 67 : case LT_EXPR:
14223 : 67 : {
14224 : 67 : tree _q50 = TREE_OPERAND (_p1, 0);
14225 : 67 : tree _q51 = TREE_OPERAND (_p1, 1);
14226 : 67 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14227 : : {
14228 : 4 : {
14229 : 4 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14230 : 4 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
14231 : 4 : if (res) return res;
14232 : : }
14233 : : }
14234 : 67 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14235 : : {
14236 : 0 : {
14237 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14238 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, GT_EXPR);
14239 : 0 : if (res) return res;
14240 : : }
14241 : : }
14242 : 67 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14243 : : {
14244 : 0 : {
14245 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
14246 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, LT_EXPR);
14247 : 0 : if (res) return res;
14248 : : }
14249 : : }
14250 : 67 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14251 : : {
14252 : 4 : {
14253 : 4 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
14254 : 4 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
14255 : 4 : if (res) return res;
14256 : : }
14257 : : }
14258 : : break;
14259 : : }
14260 : 72 : case LE_EXPR:
14261 : 72 : {
14262 : 72 : tree _q50 = TREE_OPERAND (_p1, 0);
14263 : 72 : tree _q51 = TREE_OPERAND (_p1, 1);
14264 : 72 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14265 : : {
14266 : 23 : {
14267 : 23 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14268 : 23 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR);
14269 : 23 : if (res) return res;
14270 : : }
14271 : : }
14272 : 72 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14273 : : {
14274 : 0 : {
14275 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14276 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, GT_EXPR);
14277 : 0 : if (res) return res;
14278 : : }
14279 : : }
14280 : 72 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14281 : : {
14282 : 0 : {
14283 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
14284 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, LT_EXPR);
14285 : 0 : if (res) return res;
14286 : : }
14287 : : }
14288 : 72 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14289 : : {
14290 : 0 : {
14291 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
14292 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, LT_EXPR);
14293 : 0 : if (res) return res;
14294 : : }
14295 : : }
14296 : : break;
14297 : : }
14298 : 85 : case GT_EXPR:
14299 : 85 : {
14300 : 85 : tree _q50 = TREE_OPERAND (_p1, 0);
14301 : 85 : tree _q51 = TREE_OPERAND (_p1, 1);
14302 : 85 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14303 : : {
14304 : 0 : {
14305 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14306 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, GT_EXPR);
14307 : 0 : if (res) return res;
14308 : : }
14309 : : }
14310 : 85 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14311 : : {
14312 : 0 : {
14313 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14314 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
14315 : 0 : if (res) return res;
14316 : : }
14317 : : }
14318 : 85 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14319 : : {
14320 : 0 : {
14321 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
14322 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
14323 : 0 : if (res) return res;
14324 : : }
14325 : : }
14326 : 85 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14327 : : {
14328 : 35 : {
14329 : 35 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
14330 : 35 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, LT_EXPR);
14331 : 35 : if (res) return res;
14332 : : }
14333 : : }
14334 : : break;
14335 : : }
14336 : 0 : case GE_EXPR:
14337 : 0 : {
14338 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
14339 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
14340 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14341 : : {
14342 : 0 : {
14343 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14344 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, GT_EXPR);
14345 : 0 : if (res) return res;
14346 : : }
14347 : : }
14348 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14349 : : {
14350 : 0 : {
14351 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14352 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR);
14353 : 0 : if (res) return res;
14354 : : }
14355 : : }
14356 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14357 : : {
14358 : 0 : {
14359 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
14360 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, LT_EXPR);
14361 : 0 : if (res) return res;
14362 : : }
14363 : : }
14364 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14365 : : {
14366 : 0 : {
14367 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
14368 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, LT_EXPR);
14369 : 0 : if (res) return res;
14370 : : }
14371 : : }
14372 : : break;
14373 : : }
14374 : : default:;
14375 : : }
14376 : : break;
14377 : : }
14378 : 53 : case LT_EXPR:
14379 : 53 : {
14380 : 53 : tree _q20 = TREE_OPERAND (_p0, 0);
14381 : 53 : tree _q21 = TREE_OPERAND (_p0, 1);
14382 : 53 : switch (TREE_CODE (_p1))
14383 : : {
14384 : 4 : case EQ_EXPR:
14385 : 4 : {
14386 : 4 : tree _q50 = TREE_OPERAND (_p1, 0);
14387 : 4 : tree _q51 = TREE_OPERAND (_p1, 1);
14388 : 4 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14389 : : {
14390 : 0 : if (tree_min_value (_q51))
14391 : : {
14392 : 0 : {
14393 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
14394 : 0 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, EQ_EXPR);
14395 : 0 : if (res) return res;
14396 : : }
14397 : : }
14398 : : }
14399 : 4 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14400 : : {
14401 : 0 : if (tree_max_value (_q51))
14402 : : {
14403 : 0 : {
14404 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
14405 : 0 : tree res = generic_simplify_427 (loc, type, _p0, _p1, captures, EQ_EXPR);
14406 : 0 : if (res) return res;
14407 : : }
14408 : : }
14409 : : }
14410 : : break;
14411 : : }
14412 : 2 : case NE_EXPR:
14413 : 2 : {
14414 : 2 : tree _q50 = TREE_OPERAND (_p1, 0);
14415 : 2 : tree _q51 = TREE_OPERAND (_p1, 1);
14416 : 2 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14417 : : {
14418 : 0 : if (tree_min_value (_q51))
14419 : : {
14420 : 0 : {
14421 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
14422 : 0 : tree res = generic_simplify_426 (loc, type, _p0, _p1, captures, NE_EXPR);
14423 : 0 : if (res) return res;
14424 : : }
14425 : : }
14426 : : }
14427 : 2 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14428 : : {
14429 : 0 : if (tree_max_value (_q51))
14430 : : {
14431 : 0 : {
14432 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
14433 : 0 : tree res = generic_simplify_427 (loc, type, _p0, _p1, captures, NE_EXPR);
14434 : 0 : if (res) return res;
14435 : : }
14436 : : }
14437 : : }
14438 : : break;
14439 : : }
14440 : 53 : default:;
14441 : : }
14442 : 53 : switch (TREE_CODE (_q20))
14443 : : {
14444 : 8 : CASE_CONVERT:
14445 : 8 : {
14446 : 8 : tree _q30 = TREE_OPERAND (_q20, 0);
14447 : 8 : switch (TREE_CODE (_p1))
14448 : : {
14449 : 0 : case EQ_EXPR:
14450 : 0 : {
14451 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14452 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14453 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
14454 : : {
14455 : 0 : {
14456 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
14457 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
14458 : 0 : if (res) return res;
14459 : : }
14460 : : }
14461 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
14462 : : {
14463 : 0 : {
14464 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
14465 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
14466 : 0 : if (res) return res;
14467 : : }
14468 : : }
14469 : : break;
14470 : : }
14471 : 0 : case NE_EXPR:
14472 : 0 : {
14473 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14474 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14475 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
14476 : : {
14477 : 0 : {
14478 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
14479 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
14480 : 0 : if (res) return res;
14481 : : }
14482 : : }
14483 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
14484 : : {
14485 : 0 : {
14486 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
14487 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
14488 : 0 : if (res) return res;
14489 : : }
14490 : : }
14491 : : break;
14492 : : }
14493 : : default:;
14494 : : }
14495 : : break;
14496 : : }
14497 : 53 : default:;
14498 : : }
14499 : 53 : switch (TREE_CODE (_q21))
14500 : : {
14501 : 2 : CASE_CONVERT:
14502 : 2 : {
14503 : 2 : tree _q40 = TREE_OPERAND (_q21, 0);
14504 : 2 : switch (TREE_CODE (_p1))
14505 : : {
14506 : 0 : case EQ_EXPR:
14507 : 0 : {
14508 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14509 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14510 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
14511 : : {
14512 : 0 : {
14513 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
14514 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
14515 : 0 : if (res) return res;
14516 : : }
14517 : : }
14518 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
14519 : : {
14520 : 0 : {
14521 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
14522 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
14523 : 0 : if (res) return res;
14524 : : }
14525 : : }
14526 : : break;
14527 : : }
14528 : 0 : case NE_EXPR:
14529 : 0 : {
14530 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14531 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14532 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
14533 : : {
14534 : 0 : {
14535 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
14536 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
14537 : 0 : if (res) return res;
14538 : : }
14539 : : }
14540 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
14541 : : {
14542 : 0 : {
14543 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
14544 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
14545 : 0 : if (res) return res;
14546 : : }
14547 : : }
14548 : : break;
14549 : : }
14550 : : default:;
14551 : : }
14552 : : break;
14553 : : }
14554 : 53 : default:;
14555 : : }
14556 : 53 : switch (TREE_CODE (_p1))
14557 : : {
14558 : 4 : case EQ_EXPR:
14559 : 4 : {
14560 : 4 : tree _q50 = TREE_OPERAND (_p1, 0);
14561 : 4 : tree _q51 = TREE_OPERAND (_p1, 1);
14562 : 4 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14563 : : {
14564 : 0 : {
14565 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
14566 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
14567 : 0 : if (res) return res;
14568 : : }
14569 : : }
14570 : 4 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14571 : : {
14572 : 0 : {
14573 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
14574 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
14575 : 0 : if (res) return res;
14576 : : }
14577 : : }
14578 : 4 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14579 : : {
14580 : 0 : {
14581 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
14582 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
14583 : 0 : if (res) return res;
14584 : : }
14585 : : }
14586 : 4 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14587 : : {
14588 : 0 : {
14589 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
14590 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
14591 : 0 : if (res) return res;
14592 : : }
14593 : : }
14594 : : break;
14595 : : }
14596 : 2 : case NE_EXPR:
14597 : 2 : {
14598 : 2 : tree _q50 = TREE_OPERAND (_p1, 0);
14599 : 2 : tree _q51 = TREE_OPERAND (_p1, 1);
14600 : 2 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14601 : : {
14602 : 0 : {
14603 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
14604 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
14605 : 0 : if (res) return res;
14606 : : }
14607 : : }
14608 : 2 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14609 : : {
14610 : 0 : {
14611 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
14612 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
14613 : 0 : if (res) return res;
14614 : : }
14615 : : }
14616 : 2 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14617 : : {
14618 : 0 : {
14619 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
14620 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
14621 : 0 : if (res) return res;
14622 : : }
14623 : : }
14624 : 2 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14625 : : {
14626 : 2 : {
14627 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
14628 : 2 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
14629 : 2 : if (res) return res;
14630 : : }
14631 : : }
14632 : : break;
14633 : : }
14634 : 8 : case LT_EXPR:
14635 : 8 : {
14636 : 8 : tree _q50 = TREE_OPERAND (_p1, 0);
14637 : 8 : tree _q51 = TREE_OPERAND (_p1, 1);
14638 : 8 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14639 : : {
14640 : 0 : {
14641 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14642 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, LT_EXPR);
14643 : 0 : if (res) return res;
14644 : : }
14645 : : }
14646 : 8 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14647 : : {
14648 : 0 : {
14649 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14650 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
14651 : 0 : if (res) return res;
14652 : : }
14653 : : }
14654 : 8 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14655 : : {
14656 : 0 : {
14657 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
14658 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
14659 : 0 : if (res) return res;
14660 : : }
14661 : : }
14662 : 8 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14663 : : {
14664 : 0 : {
14665 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
14666 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, GT_EXPR);
14667 : 0 : if (res) return res;
14668 : : }
14669 : : }
14670 : : break;
14671 : : }
14672 : 0 : case LE_EXPR:
14673 : 0 : {
14674 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
14675 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
14676 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14677 : : {
14678 : 0 : {
14679 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14680 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, LT_EXPR);
14681 : 0 : if (res) return res;
14682 : : }
14683 : : }
14684 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14685 : : {
14686 : 0 : {
14687 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14688 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, LT_EXPR);
14689 : 0 : if (res) return res;
14690 : : }
14691 : : }
14692 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14693 : : {
14694 : 0 : {
14695 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
14696 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR);
14697 : 0 : if (res) return res;
14698 : : }
14699 : : }
14700 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14701 : : {
14702 : 0 : {
14703 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
14704 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, GT_EXPR);
14705 : 0 : if (res) return res;
14706 : : }
14707 : : }
14708 : : break;
14709 : : }
14710 : 1 : case GT_EXPR:
14711 : 1 : {
14712 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
14713 : 1 : tree _q51 = TREE_OPERAND (_p1, 1);
14714 : 1 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14715 : : {
14716 : 0 : {
14717 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14718 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
14719 : 0 : if (res) return res;
14720 : : }
14721 : : }
14722 : 1 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14723 : : {
14724 : 0 : {
14725 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14726 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, LT_EXPR);
14727 : 0 : if (res) return res;
14728 : : }
14729 : : }
14730 : 1 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14731 : : {
14732 : 0 : {
14733 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
14734 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, GT_EXPR);
14735 : 0 : if (res) return res;
14736 : : }
14737 : : }
14738 : 1 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14739 : : {
14740 : 0 : {
14741 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
14742 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
14743 : 0 : if (res) return res;
14744 : : }
14745 : : }
14746 : : break;
14747 : : }
14748 : 0 : case GE_EXPR:
14749 : 0 : {
14750 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
14751 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
14752 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14753 : : {
14754 : 0 : {
14755 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14756 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, LT_EXPR);
14757 : 0 : if (res) return res;
14758 : : }
14759 : : }
14760 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14761 : : {
14762 : 0 : {
14763 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14764 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, LT_EXPR);
14765 : 0 : if (res) return res;
14766 : : }
14767 : : }
14768 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14769 : : {
14770 : 0 : {
14771 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
14772 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, GT_EXPR);
14773 : 0 : if (res) return res;
14774 : : }
14775 : : }
14776 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14777 : : {
14778 : 0 : {
14779 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
14780 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR);
14781 : 0 : if (res) return res;
14782 : : }
14783 : : }
14784 : : break;
14785 : : }
14786 : : default:;
14787 : : }
14788 : : break;
14789 : : }
14790 : 589 : case EQ_EXPR:
14791 : 589 : {
14792 : 589 : tree _q20 = TREE_OPERAND (_p0, 0);
14793 : 589 : tree _q21 = TREE_OPERAND (_p0, 1);
14794 : 589 : if (tree_min_value (_q21))
14795 : : {
14796 : 40 : switch (TREE_CODE (_p1))
14797 : : {
14798 : 0 : case GT_EXPR:
14799 : 0 : {
14800 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
14801 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
14802 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14803 : : {
14804 : 0 : {
14805 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q51 };
14806 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, EQ_EXPR);
14807 : 0 : if (res) return res;
14808 : : }
14809 : : }
14810 : : break;
14811 : : }
14812 : 14 : case LT_EXPR:
14813 : 14 : {
14814 : 14 : tree _q50 = TREE_OPERAND (_p1, 0);
14815 : 14 : tree _q51 = TREE_OPERAND (_p1, 1);
14816 : 14 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14817 : : {
14818 : 0 : {
14819 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q50 };
14820 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, EQ_EXPR);
14821 : 0 : if (res) return res;
14822 : : }
14823 : : }
14824 : : break;
14825 : : }
14826 : 0 : case LE_EXPR:
14827 : 0 : {
14828 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
14829 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
14830 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14831 : : {
14832 : 0 : {
14833 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q51, _p0 };
14834 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures);
14835 : 0 : if (res) return res;
14836 : : }
14837 : : }
14838 : : break;
14839 : : }
14840 : 0 : case GE_EXPR:
14841 : 0 : {
14842 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
14843 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
14844 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14845 : : {
14846 : 0 : {
14847 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q50, _p0 };
14848 : 0 : tree res = generic_simplify_432 (loc, type, _p0, _p1, captures);
14849 : 0 : if (res) return res;
14850 : : }
14851 : : }
14852 : : break;
14853 : : }
14854 : : default:;
14855 : : }
14856 : : }
14857 : 589 : if (tree_max_value (_q21))
14858 : : {
14859 : 0 : switch (TREE_CODE (_p1))
14860 : : {
14861 : 0 : case LT_EXPR:
14862 : 0 : {
14863 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
14864 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
14865 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14866 : : {
14867 : 0 : {
14868 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q51 };
14869 : 0 : tree res = generic_simplify_433 (loc, type, _p0, _p1, captures, EQ_EXPR);
14870 : 0 : if (res) return res;
14871 : : }
14872 : : }
14873 : : break;
14874 : : }
14875 : 0 : case GT_EXPR:
14876 : 0 : {
14877 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
14878 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
14879 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14880 : : {
14881 : 0 : {
14882 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q50 };
14883 : 0 : tree res = generic_simplify_433 (loc, type, _p0, _p1, captures, EQ_EXPR);
14884 : 0 : if (res) return res;
14885 : : }
14886 : : }
14887 : : break;
14888 : : }
14889 : 0 : case GE_EXPR:
14890 : 0 : {
14891 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
14892 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
14893 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14894 : : {
14895 : 0 : {
14896 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q51, _p0 };
14897 : 0 : tree res = generic_simplify_434 (loc, type, _p0, _p1, captures);
14898 : 0 : if (res) return res;
14899 : : }
14900 : : }
14901 : : break;
14902 : : }
14903 : 0 : case LE_EXPR:
14904 : 0 : {
14905 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
14906 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
14907 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14908 : : {
14909 : 0 : {
14910 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q50, _p0 };
14911 : 0 : tree res = generic_simplify_434 (loc, type, _p0, _p1, captures);
14912 : 0 : if (res) return res;
14913 : : }
14914 : : }
14915 : : break;
14916 : : }
14917 : : default:;
14918 : : }
14919 : : }
14920 : 589 : switch (TREE_CODE (_p1))
14921 : : {
14922 : 82 : case EQ_EXPR:
14923 : 82 : {
14924 : 82 : tree _q50 = TREE_OPERAND (_p1, 0);
14925 : 82 : tree _q51 = TREE_OPERAND (_p1, 1);
14926 : 82 : switch (TREE_CODE (_q50))
14927 : : {
14928 : 0 : CASE_CONVERT:
14929 : 0 : {
14930 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
14931 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
14932 : : {
14933 : 0 : {
14934 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
14935 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
14936 : 0 : if (res) return res;
14937 : : }
14938 : : }
14939 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
14940 : : {
14941 : 0 : {
14942 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
14943 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
14944 : 0 : if (res) return res;
14945 : : }
14946 : : }
14947 : : break;
14948 : : }
14949 : 82 : default:;
14950 : : }
14951 : 82 : switch (TREE_CODE (_q51))
14952 : : {
14953 : 0 : CASE_CONVERT:
14954 : 0 : {
14955 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
14956 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
14957 : : {
14958 : 0 : {
14959 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
14960 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
14961 : 0 : if (res) return res;
14962 : : }
14963 : : }
14964 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
14965 : : {
14966 : 0 : {
14967 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
14968 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
14969 : 0 : if (res) return res;
14970 : : }
14971 : : }
14972 : : break;
14973 : : }
14974 : : default:;
14975 : : }
14976 : : break;
14977 : : }
14978 : 33 : case NE_EXPR:
14979 : 33 : {
14980 : 33 : tree _q50 = TREE_OPERAND (_p1, 0);
14981 : 33 : tree _q51 = TREE_OPERAND (_p1, 1);
14982 : 33 : switch (TREE_CODE (_q50))
14983 : : {
14984 : 0 : CASE_CONVERT:
14985 : 0 : {
14986 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
14987 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
14988 : : {
14989 : 0 : {
14990 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
14991 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
14992 : 0 : if (res) return res;
14993 : : }
14994 : : }
14995 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
14996 : : {
14997 : 0 : {
14998 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
14999 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
15000 : 0 : if (res) return res;
15001 : : }
15002 : : }
15003 : : break;
15004 : : }
15005 : 33 : default:;
15006 : : }
15007 : 33 : switch (TREE_CODE (_q51))
15008 : : {
15009 : 0 : CASE_CONVERT:
15010 : 0 : {
15011 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
15012 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
15013 : : {
15014 : 0 : {
15015 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15016 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
15017 : 0 : if (res) return res;
15018 : : }
15019 : : }
15020 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
15021 : : {
15022 : 0 : {
15023 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15024 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
15025 : 0 : if (res) return res;
15026 : : }
15027 : : }
15028 : : break;
15029 : : }
15030 : : default:;
15031 : : }
15032 : : break;
15033 : : }
15034 : 19 : case LT_EXPR:
15035 : 19 : {
15036 : 19 : tree _q50 = TREE_OPERAND (_p1, 0);
15037 : 19 : tree _q51 = TREE_OPERAND (_p1, 1);
15038 : 19 : switch (TREE_CODE (_q50))
15039 : : {
15040 : 0 : CASE_CONVERT:
15041 : 0 : {
15042 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
15043 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
15044 : : {
15045 : 0 : {
15046 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15047 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15048 : 0 : if (res) return res;
15049 : : }
15050 : : }
15051 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
15052 : : {
15053 : 0 : {
15054 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15055 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15056 : 0 : if (res) return res;
15057 : : }
15058 : : }
15059 : : break;
15060 : : }
15061 : 19 : default:;
15062 : : }
15063 : 19 : switch (TREE_CODE (_q51))
15064 : : {
15065 : 0 : CASE_CONVERT:
15066 : 0 : {
15067 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
15068 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
15069 : : {
15070 : 0 : {
15071 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15072 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15073 : 0 : if (res) return res;
15074 : : }
15075 : : }
15076 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
15077 : : {
15078 : 0 : {
15079 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15080 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15081 : 0 : if (res) return res;
15082 : : }
15083 : : }
15084 : : break;
15085 : : }
15086 : : default:;
15087 : : }
15088 : : break;
15089 : : }
15090 : 12 : case GT_EXPR:
15091 : 12 : {
15092 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
15093 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
15094 : 12 : switch (TREE_CODE (_q50))
15095 : : {
15096 : 0 : CASE_CONVERT:
15097 : 0 : {
15098 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
15099 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
15100 : : {
15101 : 0 : {
15102 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15103 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15104 : 0 : if (res) return res;
15105 : : }
15106 : : }
15107 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
15108 : : {
15109 : 0 : {
15110 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15111 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15112 : 0 : if (res) return res;
15113 : : }
15114 : : }
15115 : : break;
15116 : : }
15117 : 12 : default:;
15118 : : }
15119 : 12 : switch (TREE_CODE (_q51))
15120 : : {
15121 : 0 : CASE_CONVERT:
15122 : 0 : {
15123 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
15124 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
15125 : : {
15126 : 0 : {
15127 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15128 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15129 : 0 : if (res) return res;
15130 : : }
15131 : : }
15132 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
15133 : : {
15134 : 0 : {
15135 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15136 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15137 : 0 : if (res) return res;
15138 : : }
15139 : : }
15140 : : break;
15141 : : }
15142 : : default:;
15143 : : }
15144 : : break;
15145 : : }
15146 : 12 : case LE_EXPR:
15147 : 12 : {
15148 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
15149 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
15150 : 12 : switch (TREE_CODE (_q50))
15151 : : {
15152 : 0 : CASE_CONVERT:
15153 : 0 : {
15154 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
15155 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
15156 : : {
15157 : 0 : {
15158 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15159 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
15160 : 0 : if (res) return res;
15161 : : }
15162 : : }
15163 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
15164 : : {
15165 : 0 : {
15166 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15167 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
15168 : 0 : if (res) return res;
15169 : : }
15170 : : }
15171 : : break;
15172 : : }
15173 : 12 : default:;
15174 : : }
15175 : 12 : switch (TREE_CODE (_q51))
15176 : : {
15177 : 0 : CASE_CONVERT:
15178 : 0 : {
15179 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
15180 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
15181 : : {
15182 : 0 : {
15183 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15184 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
15185 : 0 : if (res) return res;
15186 : : }
15187 : : }
15188 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
15189 : : {
15190 : 0 : {
15191 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15192 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
15193 : 0 : if (res) return res;
15194 : : }
15195 : : }
15196 : : break;
15197 : : }
15198 : : default:;
15199 : : }
15200 : : break;
15201 : : }
15202 : 4 : case GE_EXPR:
15203 : 4 : {
15204 : 4 : tree _q50 = TREE_OPERAND (_p1, 0);
15205 : 4 : tree _q51 = TREE_OPERAND (_p1, 1);
15206 : 4 : switch (TREE_CODE (_q50))
15207 : : {
15208 : 0 : CASE_CONVERT:
15209 : 0 : {
15210 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
15211 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
15212 : : {
15213 : 0 : {
15214 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15215 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
15216 : 0 : if (res) return res;
15217 : : }
15218 : : }
15219 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
15220 : : {
15221 : 0 : {
15222 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15223 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
15224 : 0 : if (res) return res;
15225 : : }
15226 : : }
15227 : : break;
15228 : : }
15229 : 4 : default:;
15230 : : }
15231 : 4 : switch (TREE_CODE (_q51))
15232 : : {
15233 : 0 : CASE_CONVERT:
15234 : 0 : {
15235 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
15236 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
15237 : : {
15238 : 0 : {
15239 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15240 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
15241 : 0 : if (res) return res;
15242 : : }
15243 : : }
15244 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
15245 : : {
15246 : 0 : {
15247 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15248 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
15249 : 0 : if (res) return res;
15250 : : }
15251 : : }
15252 : : break;
15253 : : }
15254 : : default:;
15255 : : }
15256 : : break;
15257 : : }
15258 : 589 : default:;
15259 : : }
15260 : 589 : switch (TREE_CODE (_q20))
15261 : : {
15262 : 0 : CASE_CONVERT:
15263 : 0 : {
15264 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
15265 : 0 : switch (TREE_CODE (_p1))
15266 : : {
15267 : 0 : case EQ_EXPR:
15268 : 0 : {
15269 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
15270 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
15271 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
15272 : : {
15273 : 0 : {
15274 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
15275 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15276 : 0 : if (res) return res;
15277 : : }
15278 : : }
15279 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
15280 : : {
15281 : 0 : {
15282 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
15283 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15284 : 0 : if (res) return res;
15285 : : }
15286 : : }
15287 : : break;
15288 : : }
15289 : 0 : case NE_EXPR:
15290 : 0 : {
15291 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
15292 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
15293 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
15294 : : {
15295 : 0 : {
15296 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
15297 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15298 : 0 : if (res) return res;
15299 : : }
15300 : : }
15301 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
15302 : : {
15303 : 0 : {
15304 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
15305 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15306 : 0 : if (res) return res;
15307 : : }
15308 : : }
15309 : : break;
15310 : : }
15311 : : default:;
15312 : : }
15313 : : break;
15314 : : }
15315 : 589 : default:;
15316 : : }
15317 : 589 : switch (TREE_CODE (_q21))
15318 : : {
15319 : 0 : CASE_CONVERT:
15320 : 0 : {
15321 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
15322 : 0 : switch (TREE_CODE (_p1))
15323 : : {
15324 : 0 : case EQ_EXPR:
15325 : 0 : {
15326 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
15327 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
15328 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
15329 : : {
15330 : 0 : {
15331 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
15332 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15333 : 0 : if (res) return res;
15334 : : }
15335 : : }
15336 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
15337 : : {
15338 : 0 : {
15339 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
15340 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15341 : 0 : if (res) return res;
15342 : : }
15343 : : }
15344 : : break;
15345 : : }
15346 : 0 : case NE_EXPR:
15347 : 0 : {
15348 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
15349 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
15350 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
15351 : : {
15352 : 0 : {
15353 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
15354 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15355 : 0 : if (res) return res;
15356 : : }
15357 : : }
15358 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
15359 : : {
15360 : 0 : {
15361 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
15362 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15363 : 0 : if (res) return res;
15364 : : }
15365 : : }
15366 : : break;
15367 : : }
15368 : : default:;
15369 : : }
15370 : : break;
15371 : : }
15372 : 589 : default:;
15373 : : }
15374 : 589 : switch (TREE_CODE (_p1))
15375 : : {
15376 : 82 : case EQ_EXPR:
15377 : 82 : {
15378 : 82 : tree _q50 = TREE_OPERAND (_p1, 0);
15379 : 82 : tree _q51 = TREE_OPERAND (_p1, 1);
15380 : 82 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15381 : : {
15382 : 0 : {
15383 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15384 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15385 : 0 : if (res) return res;
15386 : : }
15387 : 0 : {
15388 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
15389 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15390 : 0 : if (res) return res;
15391 : : }
15392 : : }
15393 : 82 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15394 : : {
15395 : 0 : {
15396 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15397 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15398 : 0 : if (res) return res;
15399 : : }
15400 : : }
15401 : 82 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15402 : : {
15403 : 0 : {
15404 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15405 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15406 : 0 : if (res) return res;
15407 : : }
15408 : 0 : {
15409 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
15410 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15411 : 0 : if (res) return res;
15412 : : }
15413 : : }
15414 : 82 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15415 : : {
15416 : 20 : {
15417 : 20 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15418 : 20 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15419 : 20 : if (res) return res;
15420 : : }
15421 : 20 : {
15422 : 20 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
15423 : 20 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15424 : 20 : if (res) return res;
15425 : : }
15426 : : }
15427 : 82 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15428 : : {
15429 : 0 : {
15430 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
15431 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15432 : 0 : if (res) return res;
15433 : : }
15434 : : }
15435 : : break;
15436 : : }
15437 : 33 : case NE_EXPR:
15438 : 33 : {
15439 : 33 : tree _q50 = TREE_OPERAND (_p1, 0);
15440 : 33 : tree _q51 = TREE_OPERAND (_p1, 1);
15441 : 33 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15442 : : {
15443 : 0 : {
15444 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15445 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
15446 : 0 : if (res) return res;
15447 : : }
15448 : 0 : {
15449 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
15450 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15451 : 0 : if (res) return res;
15452 : : }
15453 : : }
15454 : 33 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15455 : : {
15456 : 0 : {
15457 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15458 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
15459 : 0 : if (res) return res;
15460 : : }
15461 : : }
15462 : 33 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15463 : : {
15464 : 0 : {
15465 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15466 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
15467 : 0 : if (res) return res;
15468 : : }
15469 : 0 : {
15470 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
15471 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15472 : 0 : if (res) return res;
15473 : : }
15474 : : }
15475 : 33 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15476 : : {
15477 : 11 : {
15478 : 11 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15479 : 11 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
15480 : 11 : if (res) return res;
15481 : : }
15482 : 11 : {
15483 : 11 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
15484 : 11 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15485 : 11 : if (res) return res;
15486 : : }
15487 : : }
15488 : 33 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15489 : : {
15490 : 0 : {
15491 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
15492 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15493 : 0 : if (res) return res;
15494 : : }
15495 : : }
15496 : : break;
15497 : : }
15498 : 19 : case LT_EXPR:
15499 : 19 : {
15500 : 19 : tree _q50 = TREE_OPERAND (_p1, 0);
15501 : 19 : tree _q51 = TREE_OPERAND (_p1, 1);
15502 : 19 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15503 : : {
15504 : 0 : {
15505 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15506 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15507 : 0 : if (res) return res;
15508 : : }
15509 : : }
15510 : 19 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15511 : : {
15512 : 0 : {
15513 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15514 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15515 : 0 : if (res) return res;
15516 : : }
15517 : : }
15518 : 19 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15519 : : {
15520 : 0 : {
15521 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15522 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15523 : 0 : if (res) return res;
15524 : : }
15525 : : }
15526 : 19 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15527 : : {
15528 : 0 : {
15529 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15530 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15531 : 0 : if (res) return res;
15532 : : }
15533 : : }
15534 : : break;
15535 : : }
15536 : 12 : case GT_EXPR:
15537 : 12 : {
15538 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
15539 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
15540 : 12 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15541 : : {
15542 : 0 : {
15543 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15544 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15545 : 0 : if (res) return res;
15546 : : }
15547 : : }
15548 : 12 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15549 : : {
15550 : 0 : {
15551 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15552 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15553 : 0 : if (res) return res;
15554 : : }
15555 : : }
15556 : 12 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15557 : : {
15558 : 0 : {
15559 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15560 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15561 : 0 : if (res) return res;
15562 : : }
15563 : : }
15564 : 12 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15565 : : {
15566 : 0 : {
15567 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15568 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15569 : 0 : if (res) return res;
15570 : : }
15571 : : }
15572 : : break;
15573 : : }
15574 : 12 : case LE_EXPR:
15575 : 12 : {
15576 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
15577 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
15578 : 12 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15579 : : {
15580 : 0 : {
15581 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15582 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
15583 : 0 : if (res) return res;
15584 : : }
15585 : : }
15586 : 12 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15587 : : {
15588 : 0 : {
15589 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15590 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
15591 : 0 : if (res) return res;
15592 : : }
15593 : : }
15594 : 12 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15595 : : {
15596 : 0 : {
15597 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15598 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
15599 : 0 : if (res) return res;
15600 : : }
15601 : : }
15602 : 12 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15603 : : {
15604 : 0 : {
15605 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15606 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
15607 : 0 : if (res) return res;
15608 : : }
15609 : : }
15610 : : break;
15611 : : }
15612 : 4 : case GE_EXPR:
15613 : 4 : {
15614 : 4 : tree _q50 = TREE_OPERAND (_p1, 0);
15615 : 4 : tree _q51 = TREE_OPERAND (_p1, 1);
15616 : 4 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15617 : : {
15618 : 0 : {
15619 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15620 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
15621 : 0 : if (res) return res;
15622 : : }
15623 : : }
15624 : 4 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15625 : : {
15626 : 0 : {
15627 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15628 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
15629 : 0 : if (res) return res;
15630 : : }
15631 : : }
15632 : 4 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15633 : : {
15634 : 0 : {
15635 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15636 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
15637 : 0 : if (res) return res;
15638 : : }
15639 : : }
15640 : 4 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15641 : : {
15642 : 0 : {
15643 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15644 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
15645 : 0 : if (res) return res;
15646 : : }
15647 : : }
15648 : : break;
15649 : : }
15650 : : default:;
15651 : : }
15652 : : break;
15653 : : }
15654 : 130 : case NE_EXPR:
15655 : 130 : {
15656 : 130 : tree _q20 = TREE_OPERAND (_p0, 0);
15657 : 130 : tree _q21 = TREE_OPERAND (_p0, 1);
15658 : 130 : if (tree_min_value (_q21))
15659 : : {
15660 : 16 : switch (TREE_CODE (_p1))
15661 : : {
15662 : 0 : case GT_EXPR:
15663 : 0 : {
15664 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15665 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15666 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15667 : : {
15668 : 0 : {
15669 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q51 };
15670 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, NE_EXPR);
15671 : 0 : if (res) return res;
15672 : : }
15673 : : }
15674 : : break;
15675 : : }
15676 : 0 : case LT_EXPR:
15677 : 0 : {
15678 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15679 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15680 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15681 : : {
15682 : 0 : {
15683 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q50 };
15684 : 0 : tree res = generic_simplify_431 (loc, type, _p0, _p1, captures, NE_EXPR);
15685 : 0 : if (res) return res;
15686 : : }
15687 : : }
15688 : : break;
15689 : : }
15690 : 3 : case GE_EXPR:
15691 : 3 : {
15692 : 3 : tree _q50 = TREE_OPERAND (_p1, 0);
15693 : 3 : tree _q51 = TREE_OPERAND (_p1, 1);
15694 : 3 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15695 : : {
15696 : 3 : {
15697 : 3 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q50 };
15698 : 3 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures);
15699 : 3 : if (res) return res;
15700 : : }
15701 : : }
15702 : : break;
15703 : : }
15704 : 0 : case LE_EXPR:
15705 : 0 : {
15706 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15707 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15708 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15709 : : {
15710 : 0 : {
15711 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q51 };
15712 : 0 : tree res = generic_simplify_437 (loc, type, _p0, _p1, captures);
15713 : 0 : if (res) return res;
15714 : : }
15715 : : }
15716 : : break;
15717 : : }
15718 : : default:;
15719 : : }
15720 : : }
15721 : 127 : if (tree_max_value (_q21))
15722 : : {
15723 : 0 : switch (TREE_CODE (_p1))
15724 : : {
15725 : 0 : case LT_EXPR:
15726 : 0 : {
15727 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15728 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15729 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15730 : : {
15731 : 0 : {
15732 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q51 };
15733 : 0 : tree res = generic_simplify_433 (loc, type, _p0, _p1, captures, NE_EXPR);
15734 : 0 : if (res) return res;
15735 : : }
15736 : : }
15737 : : break;
15738 : : }
15739 : 0 : case GT_EXPR:
15740 : 0 : {
15741 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15742 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15743 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15744 : : {
15745 : 0 : {
15746 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q50 };
15747 : 0 : tree res = generic_simplify_433 (loc, type, _p0, _p1, captures, NE_EXPR);
15748 : 0 : if (res) return res;
15749 : : }
15750 : : }
15751 : : break;
15752 : : }
15753 : : default:;
15754 : : }
15755 : : }
15756 : 127 : switch (TREE_CODE (_p1))
15757 : : {
15758 : 12 : case EQ_EXPR:
15759 : 12 : {
15760 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
15761 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
15762 : 12 : switch (TREE_CODE (_q50))
15763 : : {
15764 : 0 : CASE_CONVERT:
15765 : 0 : {
15766 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
15767 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
15768 : : {
15769 : 0 : {
15770 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15771 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15772 : 0 : if (res) return res;
15773 : : }
15774 : : }
15775 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
15776 : : {
15777 : 0 : {
15778 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15779 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15780 : 0 : if (res) return res;
15781 : : }
15782 : : }
15783 : : break;
15784 : : }
15785 : 12 : default:;
15786 : : }
15787 : 12 : switch (TREE_CODE (_q51))
15788 : : {
15789 : 0 : CASE_CONVERT:
15790 : 0 : {
15791 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
15792 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
15793 : : {
15794 : 0 : {
15795 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15796 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15797 : 0 : if (res) return res;
15798 : : }
15799 : : }
15800 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
15801 : : {
15802 : 0 : {
15803 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15804 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15805 : 0 : if (res) return res;
15806 : : }
15807 : : }
15808 : : break;
15809 : : }
15810 : : default:;
15811 : : }
15812 : : break;
15813 : : }
15814 : 2 : case NE_EXPR:
15815 : 2 : {
15816 : 2 : tree _q50 = TREE_OPERAND (_p1, 0);
15817 : 2 : tree _q51 = TREE_OPERAND (_p1, 1);
15818 : 2 : switch (TREE_CODE (_q50))
15819 : : {
15820 : 0 : CASE_CONVERT:
15821 : 0 : {
15822 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
15823 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
15824 : : {
15825 : 0 : {
15826 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15827 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
15828 : 0 : if (res) return res;
15829 : : }
15830 : : }
15831 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
15832 : : {
15833 : 0 : {
15834 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15835 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
15836 : 0 : if (res) return res;
15837 : : }
15838 : : }
15839 : : break;
15840 : : }
15841 : 2 : default:;
15842 : : }
15843 : 2 : switch (TREE_CODE (_q51))
15844 : : {
15845 : 0 : CASE_CONVERT:
15846 : 0 : {
15847 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
15848 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
15849 : : {
15850 : 0 : {
15851 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15852 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
15853 : 0 : if (res) return res;
15854 : : }
15855 : : }
15856 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
15857 : : {
15858 : 0 : {
15859 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15860 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
15861 : 0 : if (res) return res;
15862 : : }
15863 : : }
15864 : : break;
15865 : : }
15866 : : default:;
15867 : : }
15868 : : break;
15869 : : }
15870 : 0 : case LT_EXPR:
15871 : 0 : {
15872 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15873 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15874 : 0 : switch (TREE_CODE (_q50))
15875 : : {
15876 : 0 : CASE_CONVERT:
15877 : 0 : {
15878 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
15879 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
15880 : : {
15881 : 0 : {
15882 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15883 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
15884 : 0 : if (res) return res;
15885 : : }
15886 : : }
15887 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
15888 : : {
15889 : 0 : {
15890 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15891 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
15892 : 0 : if (res) return res;
15893 : : }
15894 : : }
15895 : : break;
15896 : : }
15897 : 0 : default:;
15898 : : }
15899 : 0 : switch (TREE_CODE (_q51))
15900 : : {
15901 : 0 : CASE_CONVERT:
15902 : 0 : {
15903 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
15904 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
15905 : : {
15906 : 0 : {
15907 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15908 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
15909 : 0 : if (res) return res;
15910 : : }
15911 : : }
15912 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
15913 : : {
15914 : 0 : {
15915 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15916 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
15917 : 0 : if (res) return res;
15918 : : }
15919 : : }
15920 : : break;
15921 : : }
15922 : : default:;
15923 : : }
15924 : : break;
15925 : : }
15926 : 4 : case GT_EXPR:
15927 : 4 : {
15928 : 4 : tree _q50 = TREE_OPERAND (_p1, 0);
15929 : 4 : tree _q51 = TREE_OPERAND (_p1, 1);
15930 : 4 : switch (TREE_CODE (_q50))
15931 : : {
15932 : 0 : CASE_CONVERT:
15933 : 0 : {
15934 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
15935 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
15936 : : {
15937 : 0 : {
15938 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15939 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
15940 : 0 : if (res) return res;
15941 : : }
15942 : : }
15943 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
15944 : : {
15945 : 0 : {
15946 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15947 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
15948 : 0 : if (res) return res;
15949 : : }
15950 : : }
15951 : : break;
15952 : : }
15953 : 4 : default:;
15954 : : }
15955 : 4 : switch (TREE_CODE (_q51))
15956 : : {
15957 : 0 : CASE_CONVERT:
15958 : 0 : {
15959 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
15960 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
15961 : : {
15962 : 0 : {
15963 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15964 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
15965 : 0 : if (res) return res;
15966 : : }
15967 : : }
15968 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
15969 : : {
15970 : 0 : {
15971 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15972 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
15973 : 0 : if (res) return res;
15974 : : }
15975 : : }
15976 : : break;
15977 : : }
15978 : : default:;
15979 : : }
15980 : : break;
15981 : : }
15982 : 0 : case LE_EXPR:
15983 : 0 : {
15984 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15985 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15986 : 0 : switch (TREE_CODE (_q50))
15987 : : {
15988 : 0 : CASE_CONVERT:
15989 : 0 : {
15990 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
15991 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
15992 : : {
15993 : 0 : {
15994 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15995 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
15996 : 0 : if (res) return res;
15997 : : }
15998 : : }
15999 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
16000 : : {
16001 : 0 : {
16002 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16003 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16004 : 0 : if (res) return res;
16005 : : }
16006 : : }
16007 : : break;
16008 : : }
16009 : 0 : default:;
16010 : : }
16011 : 0 : switch (TREE_CODE (_q51))
16012 : : {
16013 : 0 : CASE_CONVERT:
16014 : 0 : {
16015 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
16016 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
16017 : : {
16018 : 0 : {
16019 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16020 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16021 : 0 : if (res) return res;
16022 : : }
16023 : : }
16024 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
16025 : : {
16026 : 0 : {
16027 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16028 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16029 : 0 : if (res) return res;
16030 : : }
16031 : : }
16032 : : break;
16033 : : }
16034 : : default:;
16035 : : }
16036 : : break;
16037 : : }
16038 : 14 : case GE_EXPR:
16039 : 14 : {
16040 : 14 : tree _q50 = TREE_OPERAND (_p1, 0);
16041 : 14 : tree _q51 = TREE_OPERAND (_p1, 1);
16042 : 14 : switch (TREE_CODE (_q50))
16043 : : {
16044 : 0 : CASE_CONVERT:
16045 : 0 : {
16046 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
16047 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
16048 : : {
16049 : 0 : {
16050 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16051 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16052 : 0 : if (res) return res;
16053 : : }
16054 : : }
16055 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
16056 : : {
16057 : 0 : {
16058 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16059 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16060 : 0 : if (res) return res;
16061 : : }
16062 : : }
16063 : : break;
16064 : : }
16065 : 14 : default:;
16066 : : }
16067 : 14 : switch (TREE_CODE (_q51))
16068 : : {
16069 : 0 : CASE_CONVERT:
16070 : 0 : {
16071 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
16072 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
16073 : : {
16074 : 0 : {
16075 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16076 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16077 : 0 : if (res) return res;
16078 : : }
16079 : : }
16080 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
16081 : : {
16082 : 0 : {
16083 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16084 : 0 : tree res = generic_simplify_435 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16085 : 0 : if (res) return res;
16086 : : }
16087 : : }
16088 : : break;
16089 : : }
16090 : : default:;
16091 : : }
16092 : : break;
16093 : : }
16094 : 127 : default:;
16095 : : }
16096 : 127 : switch (TREE_CODE (_q20))
16097 : : {
16098 : 0 : CASE_CONVERT:
16099 : 0 : {
16100 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
16101 : 0 : switch (TREE_CODE (_p1))
16102 : : {
16103 : 0 : case EQ_EXPR:
16104 : 0 : {
16105 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
16106 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
16107 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
16108 : : {
16109 : 0 : {
16110 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
16111 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16112 : 0 : if (res) return res;
16113 : : }
16114 : : }
16115 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
16116 : : {
16117 : 0 : {
16118 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
16119 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16120 : 0 : if (res) return res;
16121 : : }
16122 : : }
16123 : : break;
16124 : : }
16125 : 0 : case NE_EXPR:
16126 : 0 : {
16127 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
16128 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
16129 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
16130 : : {
16131 : 0 : {
16132 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
16133 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16134 : 0 : if (res) return res;
16135 : : }
16136 : : }
16137 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
16138 : : {
16139 : 0 : {
16140 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
16141 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16142 : 0 : if (res) return res;
16143 : : }
16144 : : }
16145 : : break;
16146 : : }
16147 : : default:;
16148 : : }
16149 : : break;
16150 : : }
16151 : 127 : default:;
16152 : : }
16153 : 127 : switch (TREE_CODE (_q21))
16154 : : {
16155 : 0 : CASE_CONVERT:
16156 : 0 : {
16157 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
16158 : 0 : switch (TREE_CODE (_p1))
16159 : : {
16160 : 0 : case EQ_EXPR:
16161 : 0 : {
16162 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
16163 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
16164 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
16165 : : {
16166 : 0 : {
16167 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
16168 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16169 : 0 : if (res) return res;
16170 : : }
16171 : : }
16172 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
16173 : : {
16174 : 0 : {
16175 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
16176 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16177 : 0 : if (res) return res;
16178 : : }
16179 : : }
16180 : : break;
16181 : : }
16182 : 0 : case NE_EXPR:
16183 : 0 : {
16184 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
16185 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
16186 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
16187 : : {
16188 : 0 : {
16189 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
16190 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16191 : 0 : if (res) return res;
16192 : : }
16193 : : }
16194 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
16195 : : {
16196 : 0 : {
16197 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
16198 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16199 : 0 : if (res) return res;
16200 : : }
16201 : : }
16202 : : break;
16203 : : }
16204 : : default:;
16205 : : }
16206 : : break;
16207 : : }
16208 : 127 : default:;
16209 : : }
16210 : 127 : switch (TREE_CODE (_p1))
16211 : : {
16212 : 12 : case EQ_EXPR:
16213 : 12 : {
16214 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
16215 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
16216 : 12 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16217 : : {
16218 : 0 : {
16219 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16220 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16221 : 0 : if (res) return res;
16222 : : }
16223 : 0 : {
16224 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
16225 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16226 : 0 : if (res) return res;
16227 : : }
16228 : : }
16229 : 12 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16230 : : {
16231 : 0 : {
16232 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16233 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16234 : 0 : if (res) return res;
16235 : : }
16236 : : }
16237 : 12 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16238 : : {
16239 : 0 : {
16240 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16241 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16242 : 0 : if (res) return res;
16243 : : }
16244 : 0 : {
16245 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
16246 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16247 : 0 : if (res) return res;
16248 : : }
16249 : : }
16250 : 12 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16251 : : {
16252 : 4 : {
16253 : 4 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16254 : 4 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16255 : 4 : if (res) return res;
16256 : : }
16257 : 4 : {
16258 : 4 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
16259 : 4 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16260 : 4 : if (res) return res;
16261 : : }
16262 : : }
16263 : 12 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16264 : : {
16265 : 0 : {
16266 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
16267 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16268 : 0 : if (res) return res;
16269 : : }
16270 : : }
16271 : : break;
16272 : : }
16273 : 2 : case NE_EXPR:
16274 : 2 : {
16275 : 2 : tree _q50 = TREE_OPERAND (_p1, 0);
16276 : 2 : tree _q51 = TREE_OPERAND (_p1, 1);
16277 : 2 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16278 : : {
16279 : 2 : {
16280 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16281 : 2 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16282 : 2 : if (res) return res;
16283 : : }
16284 : 2 : {
16285 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
16286 : 2 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16287 : 2 : if (res) return res;
16288 : : }
16289 : : }
16290 : 2 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16291 : : {
16292 : 0 : {
16293 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16294 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16295 : 0 : if (res) return res;
16296 : : }
16297 : : }
16298 : 2 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16299 : : {
16300 : 0 : {
16301 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16302 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16303 : 0 : if (res) return res;
16304 : : }
16305 : 0 : {
16306 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
16307 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16308 : 0 : if (res) return res;
16309 : : }
16310 : : }
16311 : 2 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16312 : : {
16313 : 0 : {
16314 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16315 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16316 : 0 : if (res) return res;
16317 : : }
16318 : 0 : {
16319 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
16320 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16321 : 0 : if (res) return res;
16322 : : }
16323 : : }
16324 : 2 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16325 : : {
16326 : 0 : {
16327 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
16328 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16329 : 0 : if (res) return res;
16330 : : }
16331 : : }
16332 : : break;
16333 : : }
16334 : 0 : case LT_EXPR:
16335 : 0 : {
16336 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16337 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16338 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16339 : : {
16340 : 0 : {
16341 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16342 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
16343 : 0 : if (res) return res;
16344 : : }
16345 : : }
16346 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16347 : : {
16348 : 0 : {
16349 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16350 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
16351 : 0 : if (res) return res;
16352 : : }
16353 : : }
16354 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16355 : : {
16356 : 0 : {
16357 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16358 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
16359 : 0 : if (res) return res;
16360 : : }
16361 : : }
16362 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16363 : : {
16364 : 0 : {
16365 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16366 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
16367 : 0 : if (res) return res;
16368 : : }
16369 : : }
16370 : : break;
16371 : : }
16372 : 4 : case GT_EXPR:
16373 : 4 : {
16374 : 4 : tree _q50 = TREE_OPERAND (_p1, 0);
16375 : 4 : tree _q51 = TREE_OPERAND (_p1, 1);
16376 : 4 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16377 : : {
16378 : 4 : {
16379 : 4 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16380 : 4 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
16381 : 4 : if (res) return res;
16382 : : }
16383 : : }
16384 : 4 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16385 : : {
16386 : 0 : {
16387 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16388 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
16389 : 0 : if (res) return res;
16390 : : }
16391 : : }
16392 : 4 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16393 : : {
16394 : 0 : {
16395 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16396 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
16397 : 0 : if (res) return res;
16398 : : }
16399 : : }
16400 : 4 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16401 : : {
16402 : 0 : {
16403 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16404 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
16405 : 0 : if (res) return res;
16406 : : }
16407 : : }
16408 : : break;
16409 : : }
16410 : 0 : case LE_EXPR:
16411 : 0 : {
16412 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16413 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16414 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16415 : : {
16416 : 0 : {
16417 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16418 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16419 : 0 : if (res) return res;
16420 : : }
16421 : : }
16422 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16423 : : {
16424 : 0 : {
16425 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16426 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16427 : 0 : if (res) return res;
16428 : : }
16429 : : }
16430 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16431 : : {
16432 : 0 : {
16433 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16434 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16435 : 0 : if (res) return res;
16436 : : }
16437 : : }
16438 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16439 : : {
16440 : 0 : {
16441 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16442 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16443 : 0 : if (res) return res;
16444 : : }
16445 : : }
16446 : : break;
16447 : : }
16448 : 14 : case GE_EXPR:
16449 : 14 : {
16450 : 14 : tree _q50 = TREE_OPERAND (_p1, 0);
16451 : 14 : tree _q51 = TREE_OPERAND (_p1, 1);
16452 : 14 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16453 : : {
16454 : 0 : {
16455 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16456 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16457 : 0 : if (res) return res;
16458 : : }
16459 : : }
16460 : 14 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16461 : : {
16462 : 0 : {
16463 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16464 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16465 : 0 : if (res) return res;
16466 : : }
16467 : : }
16468 : 14 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16469 : : {
16470 : 0 : {
16471 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16472 : 0 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16473 : 0 : if (res) return res;
16474 : : }
16475 : : }
16476 : 14 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16477 : : {
16478 : 14 : {
16479 : 14 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16480 : 14 : tree res = generic_simplify_436 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16481 : 14 : if (res) return res;
16482 : : }
16483 : : }
16484 : : break;
16485 : : }
16486 : : default:;
16487 : : }
16488 : : break;
16489 : : }
16490 : 31 : case LE_EXPR:
16491 : 31 : {
16492 : 31 : tree _q20 = TREE_OPERAND (_p0, 0);
16493 : 31 : tree _q21 = TREE_OPERAND (_p0, 1);
16494 : 31 : switch (TREE_CODE (_p1))
16495 : : {
16496 : 12 : case EQ_EXPR:
16497 : 12 : {
16498 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
16499 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
16500 : 12 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16501 : : {
16502 : 0 : if (tree_min_value (_q51))
16503 : : {
16504 : 0 : {
16505 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
16506 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures);
16507 : 0 : if (res) return res;
16508 : : }
16509 : : }
16510 : : }
16511 : 12 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16512 : : {
16513 : 0 : if (tree_max_value (_q51))
16514 : : {
16515 : 0 : {
16516 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _p1 };
16517 : 0 : tree res = generic_simplify_439 (loc, type, _p0, _p1, captures);
16518 : 0 : if (res) return res;
16519 : : }
16520 : : }
16521 : : }
16522 : : break;
16523 : : }
16524 : 0 : case NE_EXPR:
16525 : 0 : {
16526 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16527 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16528 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16529 : : {
16530 : 0 : if (tree_min_value (_q51))
16531 : : {
16532 : 0 : {
16533 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q20, _p0, _q21 };
16534 : 0 : tree res = generic_simplify_440 (loc, type, _p0, _p1, captures);
16535 : 0 : if (res) return res;
16536 : : }
16537 : : }
16538 : : }
16539 : : break;
16540 : : }
16541 : 31 : default:;
16542 : : }
16543 : 31 : switch (TREE_CODE (_q20))
16544 : : {
16545 : 0 : CASE_CONVERT:
16546 : 0 : {
16547 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
16548 : 0 : switch (TREE_CODE (_p1))
16549 : : {
16550 : 0 : case EQ_EXPR:
16551 : 0 : {
16552 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
16553 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
16554 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
16555 : : {
16556 : 0 : {
16557 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
16558 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
16559 : 0 : if (res) return res;
16560 : : }
16561 : : }
16562 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
16563 : : {
16564 : 0 : {
16565 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
16566 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
16567 : 0 : if (res) return res;
16568 : : }
16569 : : }
16570 : : break;
16571 : : }
16572 : 0 : case NE_EXPR:
16573 : 0 : {
16574 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
16575 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
16576 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
16577 : : {
16578 : 0 : {
16579 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
16580 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16581 : 0 : if (res) return res;
16582 : : }
16583 : : }
16584 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
16585 : : {
16586 : 0 : {
16587 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
16588 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16589 : 0 : if (res) return res;
16590 : : }
16591 : : }
16592 : : break;
16593 : : }
16594 : : default:;
16595 : : }
16596 : : break;
16597 : : }
16598 : 31 : default:;
16599 : : }
16600 : 31 : switch (TREE_CODE (_q21))
16601 : : {
16602 : 0 : CASE_CONVERT:
16603 : 0 : {
16604 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
16605 : 0 : switch (TREE_CODE (_p1))
16606 : : {
16607 : 0 : case EQ_EXPR:
16608 : 0 : {
16609 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
16610 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
16611 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
16612 : : {
16613 : 0 : {
16614 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
16615 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
16616 : 0 : if (res) return res;
16617 : : }
16618 : : }
16619 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
16620 : : {
16621 : 0 : {
16622 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
16623 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
16624 : 0 : if (res) return res;
16625 : : }
16626 : : }
16627 : : break;
16628 : : }
16629 : 0 : case NE_EXPR:
16630 : 0 : {
16631 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
16632 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
16633 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
16634 : : {
16635 : 0 : {
16636 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
16637 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16638 : 0 : if (res) return res;
16639 : : }
16640 : : }
16641 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
16642 : : {
16643 : 0 : {
16644 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
16645 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16646 : 0 : if (res) return res;
16647 : : }
16648 : : }
16649 : : break;
16650 : : }
16651 : : default:;
16652 : : }
16653 : : break;
16654 : : }
16655 : 31 : default:;
16656 : : }
16657 : 31 : switch (TREE_CODE (_p1))
16658 : : {
16659 : 12 : case EQ_EXPR:
16660 : 12 : {
16661 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
16662 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
16663 : 12 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16664 : : {
16665 : 0 : {
16666 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
16667 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
16668 : 0 : if (res) return res;
16669 : : }
16670 : : }
16671 : 12 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16672 : : {
16673 : 0 : {
16674 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
16675 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
16676 : 0 : if (res) return res;
16677 : : }
16678 : : }
16679 : 12 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16680 : : {
16681 : 0 : {
16682 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
16683 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
16684 : 0 : if (res) return res;
16685 : : }
16686 : : }
16687 : 12 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16688 : : {
16689 : 0 : {
16690 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
16691 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
16692 : 0 : if (res) return res;
16693 : : }
16694 : : }
16695 : : break;
16696 : : }
16697 : 0 : case NE_EXPR:
16698 : 0 : {
16699 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16700 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16701 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16702 : : {
16703 : 0 : {
16704 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
16705 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16706 : 0 : if (res) return res;
16707 : : }
16708 : : }
16709 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16710 : : {
16711 : 0 : {
16712 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
16713 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16714 : 0 : if (res) return res;
16715 : : }
16716 : : }
16717 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16718 : : {
16719 : 0 : {
16720 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
16721 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16722 : 0 : if (res) return res;
16723 : : }
16724 : : }
16725 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16726 : : {
16727 : 0 : {
16728 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
16729 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16730 : 0 : if (res) return res;
16731 : : }
16732 : : }
16733 : : break;
16734 : : }
16735 : 0 : case LT_EXPR:
16736 : 0 : {
16737 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16738 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16739 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16740 : : {
16741 : 0 : {
16742 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
16743 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, LE_EXPR);
16744 : 0 : if (res) return res;
16745 : : }
16746 : : }
16747 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16748 : : {
16749 : 0 : {
16750 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
16751 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
16752 : 0 : if (res) return res;
16753 : : }
16754 : : }
16755 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16756 : : {
16757 : 0 : {
16758 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
16759 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR);
16760 : 0 : if (res) return res;
16761 : : }
16762 : : }
16763 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16764 : : {
16765 : 0 : {
16766 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
16767 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, GE_EXPR);
16768 : 0 : if (res) return res;
16769 : : }
16770 : : }
16771 : : break;
16772 : : }
16773 : 4 : case LE_EXPR:
16774 : 4 : {
16775 : 4 : tree _q50 = TREE_OPERAND (_p1, 0);
16776 : 4 : tree _q51 = TREE_OPERAND (_p1, 1);
16777 : 4 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16778 : : {
16779 : 0 : {
16780 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
16781 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, LE_EXPR);
16782 : 0 : if (res) return res;
16783 : : }
16784 : : }
16785 : 4 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16786 : : {
16787 : 0 : {
16788 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
16789 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, LE_EXPR);
16790 : 0 : if (res) return res;
16791 : : }
16792 : : }
16793 : 4 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16794 : : {
16795 : 0 : {
16796 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
16797 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR);
16798 : 0 : if (res) return res;
16799 : : }
16800 : : }
16801 : 4 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16802 : : {
16803 : 4 : {
16804 : 4 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
16805 : 4 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, GE_EXPR);
16806 : 4 : if (res) return res;
16807 : : }
16808 : : }
16809 : : break;
16810 : : }
16811 : 4 : case GT_EXPR:
16812 : 4 : {
16813 : 4 : tree _q50 = TREE_OPERAND (_p1, 0);
16814 : 4 : tree _q51 = TREE_OPERAND (_p1, 1);
16815 : 4 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16816 : : {
16817 : 0 : {
16818 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
16819 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
16820 : 0 : if (res) return res;
16821 : : }
16822 : : }
16823 : 4 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16824 : : {
16825 : 0 : {
16826 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
16827 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, LE_EXPR);
16828 : 0 : if (res) return res;
16829 : : }
16830 : : }
16831 : 4 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16832 : : {
16833 : 0 : {
16834 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
16835 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, GE_EXPR);
16836 : 0 : if (res) return res;
16837 : : }
16838 : : }
16839 : 4 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16840 : : {
16841 : 0 : {
16842 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
16843 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR);
16844 : 0 : if (res) return res;
16845 : : }
16846 : : }
16847 : : break;
16848 : : }
16849 : 0 : case GE_EXPR:
16850 : 0 : {
16851 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16852 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16853 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16854 : : {
16855 : 0 : {
16856 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
16857 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, LE_EXPR);
16858 : 0 : if (res) return res;
16859 : : }
16860 : : }
16861 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16862 : : {
16863 : 0 : {
16864 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
16865 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, LE_EXPR);
16866 : 0 : if (res) return res;
16867 : : }
16868 : : }
16869 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16870 : : {
16871 : 0 : {
16872 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
16873 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, GE_EXPR);
16874 : 0 : if (res) return res;
16875 : : }
16876 : : }
16877 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16878 : : {
16879 : 0 : {
16880 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
16881 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR);
16882 : 0 : if (res) return res;
16883 : : }
16884 : : }
16885 : : break;
16886 : : }
16887 : : default:;
16888 : : }
16889 : : break;
16890 : : }
16891 : 53 : case GE_EXPR:
16892 : 53 : {
16893 : 53 : tree _q20 = TREE_OPERAND (_p0, 0);
16894 : 53 : tree _q21 = TREE_OPERAND (_p0, 1);
16895 : 53 : switch (TREE_CODE (_p1))
16896 : : {
16897 : 6 : case EQ_EXPR:
16898 : 6 : {
16899 : 6 : tree _q50 = TREE_OPERAND (_p1, 0);
16900 : 6 : tree _q51 = TREE_OPERAND (_p1, 1);
16901 : 6 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16902 : : {
16903 : 0 : if (tree_min_value (_q51))
16904 : : {
16905 : 0 : {
16906 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _p1 };
16907 : 0 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures);
16908 : 0 : if (res) return res;
16909 : : }
16910 : : }
16911 : : }
16912 : 6 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16913 : : {
16914 : 0 : if (tree_max_value (_q51))
16915 : : {
16916 : 0 : {
16917 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
16918 : 0 : tree res = generic_simplify_439 (loc, type, _p0, _p1, captures);
16919 : 0 : if (res) return res;
16920 : : }
16921 : : }
16922 : : }
16923 : : break;
16924 : : }
16925 : 0 : case NE_EXPR:
16926 : 0 : {
16927 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16928 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16929 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16930 : : {
16931 : 0 : if (tree_min_value (_q51))
16932 : : {
16933 : 0 : {
16934 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q21, _p0, _q20 };
16935 : 0 : tree res = generic_simplify_440 (loc, type, _p0, _p1, captures);
16936 : 0 : if (res) return res;
16937 : : }
16938 : : }
16939 : : }
16940 : : break;
16941 : : }
16942 : 53 : default:;
16943 : : }
16944 : 53 : switch (TREE_CODE (_q20))
16945 : : {
16946 : 4 : CASE_CONVERT:
16947 : 4 : {
16948 : 4 : tree _q30 = TREE_OPERAND (_q20, 0);
16949 : 4 : switch (TREE_CODE (_p1))
16950 : : {
16951 : 0 : case EQ_EXPR:
16952 : 0 : {
16953 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
16954 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
16955 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
16956 : : {
16957 : 0 : {
16958 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
16959 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
16960 : 0 : if (res) return res;
16961 : : }
16962 : : }
16963 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
16964 : : {
16965 : 0 : {
16966 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
16967 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
16968 : 0 : if (res) return res;
16969 : : }
16970 : : }
16971 : : break;
16972 : : }
16973 : 0 : case NE_EXPR:
16974 : 0 : {
16975 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
16976 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
16977 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
16978 : : {
16979 : 0 : {
16980 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
16981 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16982 : 0 : if (res) return res;
16983 : : }
16984 : : }
16985 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
16986 : : {
16987 : 0 : {
16988 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
16989 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16990 : 0 : if (res) return res;
16991 : : }
16992 : : }
16993 : : break;
16994 : : }
16995 : : default:;
16996 : : }
16997 : : break;
16998 : : }
16999 : 53 : default:;
17000 : : }
17001 : 53 : switch (TREE_CODE (_q21))
17002 : : {
17003 : 0 : CASE_CONVERT:
17004 : 0 : {
17005 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
17006 : 0 : switch (TREE_CODE (_p1))
17007 : : {
17008 : 0 : case EQ_EXPR:
17009 : 0 : {
17010 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
17011 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
17012 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
17013 : : {
17014 : 0 : {
17015 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
17016 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
17017 : 0 : if (res) return res;
17018 : : }
17019 : : }
17020 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
17021 : : {
17022 : 0 : {
17023 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
17024 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
17025 : 0 : if (res) return res;
17026 : : }
17027 : : }
17028 : : break;
17029 : : }
17030 : 0 : case NE_EXPR:
17031 : 0 : {
17032 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
17033 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
17034 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
17035 : : {
17036 : 0 : {
17037 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
17038 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
17039 : 0 : if (res) return res;
17040 : : }
17041 : : }
17042 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
17043 : : {
17044 : 0 : {
17045 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
17046 : 0 : tree res = generic_simplify_428 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
17047 : 0 : if (res) return res;
17048 : : }
17049 : : }
17050 : : break;
17051 : : }
17052 : : default:;
17053 : : }
17054 : : break;
17055 : : }
17056 : 53 : default:;
17057 : : }
17058 : 53 : switch (TREE_CODE (_p1))
17059 : : {
17060 : 6 : case EQ_EXPR:
17061 : 6 : {
17062 : 6 : tree _q50 = TREE_OPERAND (_p1, 0);
17063 : 6 : tree _q51 = TREE_OPERAND (_p1, 1);
17064 : 6 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17065 : : {
17066 : 0 : {
17067 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
17068 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
17069 : 0 : if (res) return res;
17070 : : }
17071 : : }
17072 : 6 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17073 : : {
17074 : 0 : {
17075 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
17076 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
17077 : 0 : if (res) return res;
17078 : : }
17079 : : }
17080 : 6 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17081 : : {
17082 : 0 : {
17083 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
17084 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
17085 : 0 : if (res) return res;
17086 : : }
17087 : : }
17088 : 6 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17089 : : {
17090 : 0 : {
17091 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
17092 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
17093 : 0 : if (res) return res;
17094 : : }
17095 : : }
17096 : : break;
17097 : : }
17098 : 0 : case NE_EXPR:
17099 : 0 : {
17100 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
17101 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
17102 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17103 : : {
17104 : 0 : {
17105 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
17106 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
17107 : 0 : if (res) return res;
17108 : : }
17109 : : }
17110 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17111 : : {
17112 : 0 : {
17113 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
17114 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
17115 : 0 : if (res) return res;
17116 : : }
17117 : : }
17118 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17119 : : {
17120 : 0 : {
17121 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
17122 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
17123 : 0 : if (res) return res;
17124 : : }
17125 : : }
17126 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17127 : : {
17128 : 0 : {
17129 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
17130 : 0 : tree res = generic_simplify_429 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
17131 : 0 : if (res) return res;
17132 : : }
17133 : : }
17134 : : break;
17135 : : }
17136 : 0 : case LT_EXPR:
17137 : 0 : {
17138 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
17139 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
17140 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17141 : : {
17142 : 0 : {
17143 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
17144 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR);
17145 : 0 : if (res) return res;
17146 : : }
17147 : : }
17148 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17149 : : {
17150 : 0 : {
17151 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
17152 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, GE_EXPR);
17153 : 0 : if (res) return res;
17154 : : }
17155 : : }
17156 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17157 : : {
17158 : 0 : {
17159 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
17160 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, LE_EXPR);
17161 : 0 : if (res) return res;
17162 : : }
17163 : : }
17164 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17165 : : {
17166 : 0 : {
17167 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
17168 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
17169 : 0 : if (res) return res;
17170 : : }
17171 : : }
17172 : : break;
17173 : : }
17174 : 8 : case LE_EXPR:
17175 : 8 : {
17176 : 8 : tree _q50 = TREE_OPERAND (_p1, 0);
17177 : 8 : tree _q51 = TREE_OPERAND (_p1, 1);
17178 : 8 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17179 : : {
17180 : 7 : {
17181 : 7 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
17182 : 7 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR);
17183 : 7 : if (res) return res;
17184 : : }
17185 : : }
17186 : 8 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17187 : : {
17188 : 0 : {
17189 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
17190 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, GE_EXPR);
17191 : 0 : if (res) return res;
17192 : : }
17193 : : }
17194 : 8 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17195 : : {
17196 : 0 : {
17197 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
17198 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, LE_EXPR);
17199 : 0 : if (res) return res;
17200 : : }
17201 : : }
17202 : 8 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17203 : : {
17204 : 0 : {
17205 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
17206 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, LE_EXPR);
17207 : 0 : if (res) return res;
17208 : : }
17209 : : }
17210 : : break;
17211 : : }
17212 : 0 : case GT_EXPR:
17213 : 0 : {
17214 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
17215 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
17216 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17217 : : {
17218 : 0 : {
17219 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
17220 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, GE_EXPR);
17221 : 0 : if (res) return res;
17222 : : }
17223 : : }
17224 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17225 : : {
17226 : 0 : {
17227 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
17228 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR);
17229 : 0 : if (res) return res;
17230 : : }
17231 : : }
17232 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17233 : : {
17234 : 0 : {
17235 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
17236 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
17237 : 0 : if (res) return res;
17238 : : }
17239 : : }
17240 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17241 : : {
17242 : 0 : {
17243 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
17244 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LT_EXPR, LE_EXPR);
17245 : 0 : if (res) return res;
17246 : : }
17247 : : }
17248 : : break;
17249 : : }
17250 : 11 : case GE_EXPR:
17251 : 11 : {
17252 : 11 : tree _q50 = TREE_OPERAND (_p1, 0);
17253 : 11 : tree _q51 = TREE_OPERAND (_p1, 1);
17254 : 11 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17255 : : {
17256 : 7 : {
17257 : 7 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
17258 : 7 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, GE_EXPR);
17259 : 7 : if (res) return res;
17260 : : }
17261 : : }
17262 : 11 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17263 : : {
17264 : 0 : {
17265 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
17266 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR);
17267 : 0 : if (res) return res;
17268 : : }
17269 : : }
17270 : 11 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17271 : : {
17272 : 4 : {
17273 : 4 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
17274 : 4 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, GE_EXPR, LE_EXPR);
17275 : 4 : if (res) return res;
17276 : : }
17277 : : }
17278 : 11 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17279 : : {
17280 : 0 : {
17281 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
17282 : 0 : tree res = generic_simplify_430 (loc, type, _p0, _p1, captures, LE_EXPR, LE_EXPR);
17283 : 0 : if (res) return res;
17284 : : }
17285 : : }
17286 : : break;
17287 : : }
17288 : : default:;
17289 : : }
17290 : : break;
17291 : : }
17292 : 0 : case MIN_EXPR:
17293 : 0 : {
17294 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
17295 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
17296 : 0 : switch (TREE_CODE (_p1))
17297 : : {
17298 : 0 : case MAX_EXPR:
17299 : 0 : {
17300 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
17301 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
17302 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17303 : : {
17304 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17305 : : {
17306 : 0 : {
17307 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
17308 : 0 : if (!HONOR_NANS (captures[0])
17309 : : )
17310 : : {
17311 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1708;
17312 : 0 : {
17313 : 0 : tree res_op0;
17314 : 0 : res_op0 = captures[0];
17315 : 0 : tree res_op1;
17316 : 0 : res_op1 = captures[1];
17317 : 0 : tree _r;
17318 : 0 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
17319 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 894, __FILE__, __LINE__, true);
17320 : 0 : return _r;
17321 : : }
17322 : 0 : next_after_fail1708:;
17323 : : }
17324 : : }
17325 : : }
17326 : : }
17327 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17328 : : {
17329 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17330 : : {
17331 : 0 : {
17332 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
17333 : 0 : if (!HONOR_NANS (captures[0])
17334 : : )
17335 : : {
17336 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1709;
17337 : 0 : {
17338 : 0 : tree res_op0;
17339 : 0 : res_op0 = captures[0];
17340 : 0 : tree res_op1;
17341 : 0 : res_op1 = captures[1];
17342 : 0 : tree _r;
17343 : 0 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
17344 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 894, __FILE__, __LINE__, true);
17345 : 0 : return _r;
17346 : : }
17347 : 0 : next_after_fail1709:;
17348 : : }
17349 : : }
17350 : : }
17351 : : }
17352 : : break;
17353 : : }
17354 : : default:;
17355 : : }
17356 : : break;
17357 : : }
17358 : 80 : case MAX_EXPR:
17359 : 80 : {
17360 : 80 : tree _q20 = TREE_OPERAND (_p0, 0);
17361 : 80 : tree _q21 = TREE_OPERAND (_p0, 1);
17362 : 80 : switch (TREE_CODE (_p1))
17363 : : {
17364 : 0 : case MIN_EXPR:
17365 : 0 : {
17366 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
17367 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
17368 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17369 : : {
17370 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17371 : : {
17372 : 0 : {
17373 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
17374 : 0 : if (!HONOR_NANS (captures[0])
17375 : : )
17376 : : {
17377 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1710;
17378 : 0 : {
17379 : 0 : tree res_op0;
17380 : 0 : res_op0 = captures[0];
17381 : 0 : tree res_op1;
17382 : 0 : res_op1 = captures[1];
17383 : 0 : tree _r;
17384 : 0 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
17385 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 894, __FILE__, __LINE__, true);
17386 : 0 : return _r;
17387 : : }
17388 : 0 : next_after_fail1710:;
17389 : : }
17390 : : }
17391 : : }
17392 : : }
17393 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17394 : : {
17395 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17396 : : {
17397 : 0 : {
17398 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
17399 : 0 : if (!HONOR_NANS (captures[0])
17400 : : )
17401 : : {
17402 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1711;
17403 : 0 : {
17404 : 0 : tree res_op0;
17405 : 0 : res_op0 = captures[0];
17406 : 0 : tree res_op1;
17407 : 0 : res_op1 = captures[1];
17408 : 0 : tree _r;
17409 : 0 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
17410 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 894, __FILE__, __LINE__, true);
17411 : 0 : return _r;
17412 : : }
17413 : 0 : next_after_fail1711:;
17414 : : }
17415 : : }
17416 : : }
17417 : : }
17418 : : break;
17419 : : }
17420 : : default:;
17421 : : }
17422 : : break;
17423 : : }
17424 : 35286 : case LSHIFT_EXPR:
17425 : 35286 : {
17426 : 35286 : tree _q20 = TREE_OPERAND (_p0, 0);
17427 : 35286 : tree _q21 = TREE_OPERAND (_p0, 1);
17428 : 35286 : switch (TREE_CODE (_q20))
17429 : : {
17430 : 5965 : case INTEGER_CST:
17431 : 5965 : {
17432 : 5965 : if (integer_onep (_p1))
17433 : : {
17434 : 44 : {
17435 : 44 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
17436 : 44 : if ((wi::to_wide (captures[0]) & 1) != 0
17437 : : )
17438 : : {
17439 : 40 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1712;
17440 : 40 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1712;
17441 : 40 : {
17442 : 40 : tree res_op0;
17443 : 40 : {
17444 : 40 : tree _o1[2], _r1;
17445 : 40 : _o1[0] = captures[1];
17446 : 40 : _o1[1] = build_zero_cst (TREE_TYPE (captures[1]));
17447 : 40 : _r1 = fold_build2_loc (loc, EQ_EXPR, boolean_type_node, _o1[0], _o1[1]);
17448 : 40 : res_op0 = _r1;
17449 : : }
17450 : 40 : tree _r;
17451 : 40 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
17452 : 40 : if (TREE_SIDE_EFFECTS (captures[0]))
17453 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
17454 : 40 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1022, __FILE__, __LINE__, true);
17455 : 40 : return _r;
17456 : : }
17457 : 0 : next_after_fail1712:;
17458 : : }
17459 : : else
17460 : : {
17461 : 4 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1713;
17462 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1713;
17463 : 4 : {
17464 : 4 : tree _r;
17465 : 4 : _r = build_zero_cst (type);
17466 : 4 : if (TREE_SIDE_EFFECTS (captures[0]))
17467 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
17468 : 4 : if (TREE_SIDE_EFFECTS (captures[1]))
17469 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
17470 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1023, __FILE__, __LINE__, true);
17471 : 4 : return _r;
17472 : : }
17473 : 0 : next_after_fail1713:;
17474 : : }
17475 : : }
17476 : : }
17477 : : break;
17478 : : }
17479 : 4388 : CASE_CONVERT:
17480 : 4388 : {
17481 : 4388 : tree _q30 = TREE_OPERAND (_q20, 0);
17482 : 4388 : switch (TREE_CODE (_q21))
17483 : : {
17484 : 4301 : case INTEGER_CST:
17485 : 4301 : {
17486 : 4301 : switch (TREE_CODE (_p1))
17487 : : {
17488 : 4301 : case INTEGER_CST:
17489 : 4301 : {
17490 : 4301 : {
17491 : 4301 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q30, _q21, _p1 };
17492 : 4301 : tree res = generic_simplify_441 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
17493 : 4301 : if (res) return res;
17494 : : }
17495 : 3685 : break;
17496 : : }
17497 : : default:;
17498 : : }
17499 : : break;
17500 : : }
17501 : : default:;
17502 : : }
17503 : : break;
17504 : : }
17505 : 34626 : default:;
17506 : : }
17507 : 34626 : switch (TREE_CODE (_q21))
17508 : : {
17509 : 28334 : case INTEGER_CST:
17510 : 28334 : {
17511 : 28334 : switch (TREE_CODE (_p1))
17512 : : {
17513 : 28297 : case INTEGER_CST:
17514 : 28297 : {
17515 : 28297 : {
17516 : 28297 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q20, _q21, _p1 };
17517 : 28297 : tree res = generic_simplify_442 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
17518 : 28297 : if (res) return res;
17519 : : }
17520 : 17889 : break;
17521 : : }
17522 : : default:;
17523 : : }
17524 : : break;
17525 : : }
17526 : : default:;
17527 : : }
17528 : : break;
17529 : : }
17530 : 66171 : case RSHIFT_EXPR:
17531 : 66171 : {
17532 : 66171 : tree _q20 = TREE_OPERAND (_p0, 0);
17533 : 66171 : tree _q21 = TREE_OPERAND (_p0, 1);
17534 : 66171 : switch (TREE_CODE (_q20))
17535 : : {
17536 : 42922 : CASE_CONVERT:
17537 : 42922 : {
17538 : 42922 : tree _q30 = TREE_OPERAND (_q20, 0);
17539 : 42922 : switch (TREE_CODE (_q21))
17540 : : {
17541 : 42177 : case INTEGER_CST:
17542 : 42177 : {
17543 : 42177 : switch (TREE_CODE (_p1))
17544 : : {
17545 : 42177 : case INTEGER_CST:
17546 : 42177 : {
17547 : 42177 : {
17548 : 42177 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q30, _q21, _p1 };
17549 : 42177 : tree res = generic_simplify_441 (loc, type, _p0, _p1, captures, RSHIFT_EXPR);
17550 : 42177 : if (res) return res;
17551 : : }
17552 : 41922 : break;
17553 : : }
17554 : : default:;
17555 : : }
17556 : : break;
17557 : : }
17558 : 42667 : default:;
17559 : : }
17560 : 42667 : switch (TREE_CODE (_q30))
17561 : : {
17562 : 22 : case CALL_EXPR:
17563 : 22 : switch (get_call_combined_fn (_q30))
17564 : : {
17565 : 0 : case CFN_BUILT_IN_BSWAP128:
17566 : 0 : if (call_expr_nargs (_q30) == 1)
17567 : : {
17568 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
17569 : 0 : switch (TREE_CODE (_q21))
17570 : : {
17571 : 0 : case INTEGER_CST:
17572 : 0 : {
17573 : 0 : switch (TREE_CODE (_p1))
17574 : : {
17575 : 0 : case INTEGER_CST:
17576 : 0 : {
17577 : 0 : {
17578 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q30, _q40, _q21, _p1 };
17579 : 0 : tree res = generic_simplify_424 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP128);
17580 : 0 : if (res) return res;
17581 : : }
17582 : 0 : break;
17583 : : }
17584 : : default:;
17585 : : }
17586 : : break;
17587 : : }
17588 : : default:;
17589 : : }
17590 : : }
17591 : : break;
17592 : 1 : case CFN_BUILT_IN_BSWAP16:
17593 : 1 : if (call_expr_nargs (_q30) == 1)
17594 : : {
17595 : 1 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
17596 : 1 : switch (TREE_CODE (_q21))
17597 : : {
17598 : 0 : case INTEGER_CST:
17599 : 0 : {
17600 : 0 : switch (TREE_CODE (_p1))
17601 : : {
17602 : 0 : case INTEGER_CST:
17603 : 0 : {
17604 : 0 : {
17605 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q30, _q40, _q21, _p1 };
17606 : 0 : tree res = generic_simplify_424 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP16);
17607 : 0 : if (res) return res;
17608 : : }
17609 : 0 : break;
17610 : : }
17611 : : default:;
17612 : : }
17613 : : break;
17614 : : }
17615 : : default:;
17616 : : }
17617 : : }
17618 : : break;
17619 : 9 : case CFN_BUILT_IN_BSWAP32:
17620 : 9 : if (call_expr_nargs (_q30) == 1)
17621 : : {
17622 : 9 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
17623 : 9 : switch (TREE_CODE (_q21))
17624 : : {
17625 : 9 : case INTEGER_CST:
17626 : 9 : {
17627 : 9 : switch (TREE_CODE (_p1))
17628 : : {
17629 : 9 : case INTEGER_CST:
17630 : 9 : {
17631 : 9 : {
17632 : 9 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q30, _q40, _q21, _p1 };
17633 : 9 : tree res = generic_simplify_424 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP32);
17634 : 9 : if (res) return res;
17635 : : }
17636 : 0 : break;
17637 : : }
17638 : : default:;
17639 : : }
17640 : : break;
17641 : : }
17642 : : default:;
17643 : : }
17644 : : }
17645 : : break;
17646 : 12 : case CFN_BUILT_IN_BSWAP64:
17647 : 12 : if (call_expr_nargs (_q30) == 1)
17648 : : {
17649 : 12 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
17650 : 12 : switch (TREE_CODE (_q21))
17651 : : {
17652 : 12 : case INTEGER_CST:
17653 : 12 : {
17654 : 12 : switch (TREE_CODE (_p1))
17655 : : {
17656 : 12 : case INTEGER_CST:
17657 : 12 : {
17658 : 12 : {
17659 : 12 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q30, _q40, _q21, _p1 };
17660 : 12 : tree res = generic_simplify_424 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP64);
17661 : 12 : if (res) return res;
17662 : : }
17663 : 0 : break;
17664 : : }
17665 : : default:;
17666 : : }
17667 : : break;
17668 : : }
17669 : : default:;
17670 : : }
17671 : : }
17672 : : break;
17673 : : default:;
17674 : : }
17675 : : break;
17676 : : default:;
17677 : : }
17678 : : break;
17679 : : }
17680 : 65895 : default:;
17681 : : }
17682 : 65895 : switch (TREE_CODE (_q21))
17683 : : {
17684 : 50381 : case INTEGER_CST:
17685 : 50381 : {
17686 : 50381 : switch (TREE_CODE (_p1))
17687 : : {
17688 : 50236 : case INTEGER_CST:
17689 : 50236 : {
17690 : 50236 : {
17691 : 50236 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q20, _q21, _p1 };
17692 : 50236 : tree res = generic_simplify_442 (loc, type, _p0, _p1, captures, RSHIFT_EXPR);
17693 : 50236 : if (res) return res;
17694 : : }
17695 : 48781 : break;
17696 : : }
17697 : : default:;
17698 : : }
17699 : : break;
17700 : : }
17701 : 64440 : default:;
17702 : : }
17703 : 64440 : switch (TREE_CODE (_q20))
17704 : : {
17705 : 140 : case CALL_EXPR:
17706 : 140 : switch (get_call_combined_fn (_q20))
17707 : : {
17708 : 0 : case CFN_BUILT_IN_BSWAP128:
17709 : 0 : if (call_expr_nargs (_q20) == 1)
17710 : : {
17711 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
17712 : 0 : switch (TREE_CODE (_q21))
17713 : : {
17714 : 0 : case INTEGER_CST:
17715 : 0 : {
17716 : 0 : switch (TREE_CODE (_p1))
17717 : : {
17718 : 0 : case INTEGER_CST:
17719 : 0 : {
17720 : 0 : {
17721 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _p1 };
17722 : 0 : tree res = generic_simplify_424 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP128);
17723 : 0 : if (res) return res;
17724 : : }
17725 : 0 : break;
17726 : : }
17727 : : default:;
17728 : : }
17729 : : break;
17730 : : }
17731 : : default:;
17732 : : }
17733 : : }
17734 : : break;
17735 : 0 : case CFN_BUILT_IN_BSWAP16:
17736 : 0 : if (call_expr_nargs (_q20) == 1)
17737 : : {
17738 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
17739 : 0 : switch (TREE_CODE (_q21))
17740 : : {
17741 : 0 : case INTEGER_CST:
17742 : 0 : {
17743 : 0 : switch (TREE_CODE (_p1))
17744 : : {
17745 : 0 : case INTEGER_CST:
17746 : 0 : {
17747 : 0 : {
17748 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _p1 };
17749 : 0 : tree res = generic_simplify_424 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP16);
17750 : 0 : if (res) return res;
17751 : : }
17752 : 0 : break;
17753 : : }
17754 : : default:;
17755 : : }
17756 : : break;
17757 : : }
17758 : : default:;
17759 : : }
17760 : : }
17761 : : break;
17762 : 60 : case CFN_BUILT_IN_BSWAP32:
17763 : 60 : if (call_expr_nargs (_q20) == 1)
17764 : : {
17765 : 60 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
17766 : 60 : switch (TREE_CODE (_q21))
17767 : : {
17768 : 59 : case INTEGER_CST:
17769 : 59 : {
17770 : 59 : switch (TREE_CODE (_p1))
17771 : : {
17772 : 59 : case INTEGER_CST:
17773 : 59 : {
17774 : 59 : {
17775 : 59 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _p1 };
17776 : 59 : tree res = generic_simplify_424 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP32);
17777 : 59 : if (res) return res;
17778 : : }
17779 : 0 : break;
17780 : : }
17781 : : default:;
17782 : : }
17783 : : break;
17784 : : }
17785 : : default:;
17786 : : }
17787 : : }
17788 : : break;
17789 : 73 : case CFN_BUILT_IN_BSWAP64:
17790 : 73 : if (call_expr_nargs (_q20) == 1)
17791 : : {
17792 : 73 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
17793 : 73 : switch (TREE_CODE (_q21))
17794 : : {
17795 : 73 : case INTEGER_CST:
17796 : 73 : {
17797 : 73 : switch (TREE_CODE (_p1))
17798 : : {
17799 : 73 : case INTEGER_CST:
17800 : 73 : {
17801 : 73 : {
17802 : 73 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _p1 };
17803 : 73 : tree res = generic_simplify_424 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP64);
17804 : 73 : if (res) return res;
17805 : : }
17806 : 0 : break;
17807 : : }
17808 : : default:;
17809 : : }
17810 : : break;
17811 : : }
17812 : : default:;
17813 : : }
17814 : : }
17815 : : break;
17816 : : default:;
17817 : : }
17818 : : break;
17819 : : default:;
17820 : : }
17821 : : break;
17822 : : }
17823 : 65 : case VEC_COND_EXPR:
17824 : 65 : {
17825 : 65 : tree _q20 = TREE_OPERAND (_p0, 0);
17826 : 65 : tree _q21 = TREE_OPERAND (_p0, 1);
17827 : 65 : tree _q22 = TREE_OPERAND (_p0, 2);
17828 : 65 : switch (TREE_CODE (_p1))
17829 : : {
17830 : 47 : case VEC_COND_EXPR:
17831 : 47 : {
17832 : 47 : tree _q60 = TREE_OPERAND (_p1, 0);
17833 : 47 : tree _q61 = TREE_OPERAND (_p1, 1);
17834 : 47 : tree _q62 = TREE_OPERAND (_p1, 2);
17835 : 47 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
17836 : : {
17837 : 0 : {
17838 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
17839 : 0 : if (VECTOR_TYPE_P (type)
17840 : 0 : && (TREE_CODE_CLASS (BIT_AND_EXPR) != tcc_comparison
17841 : : || types_match (type, TREE_TYPE (captures[2]))
17842 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
17843 : : || (optimize_vectors_before_lowering_p ()
17844 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
17845 : : )
17846 : : {
17847 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1714;
17848 : 0 : {
17849 : 0 : tree res_op0;
17850 : 0 : res_op0 = captures[1];
17851 : 0 : tree res_op1;
17852 : 0 : {
17853 : 0 : tree _o1[2], _r1;
17854 : 0 : _o1[0] = captures[2];
17855 : 0 : _o1[1] = captures[5];
17856 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
17857 : 0 : if (EXPR_P (_r1))
17858 : 0 : goto next_after_fail1714;
17859 : 0 : res_op1 = _r1;
17860 : : }
17861 : 0 : tree res_op2;
17862 : 0 : {
17863 : 0 : tree _o1[2], _r1;
17864 : 0 : _o1[0] = captures[3];
17865 : 0 : _o1[1] = captures[6];
17866 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
17867 : 0 : if (EXPR_P (_r1))
17868 : 0 : goto next_after_fail1714;
17869 : 0 : res_op2 = _r1;
17870 : : }
17871 : 0 : tree _r;
17872 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
17873 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 898, __FILE__, __LINE__, true);
17874 : 0 : return _r;
17875 : : }
17876 : 0 : next_after_fail1714:;
17877 : : }
17878 : : }
17879 : : }
17880 : : break;
17881 : : }
17882 : 65 : default:;
17883 : : }
17884 : 65 : {
17885 : 65 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
17886 : 65 : if (VECTOR_TYPE_P (type)
17887 : 65 : && (TREE_CODE_CLASS (BIT_AND_EXPR) != tcc_comparison
17888 : : || types_match (type, TREE_TYPE (captures[2]))
17889 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
17890 : : || (optimize_vectors_before_lowering_p ()
17891 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
17892 : : )
17893 : : {
17894 : 65 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1715;
17895 : 65 : {
17896 : 65 : if (! tree_invariant_p (captures[4])) goto next_after_fail1715;
17897 : 14 : tree res_op0;
17898 : 14 : res_op0 = captures[1];
17899 : 14 : tree res_op1;
17900 : 14 : {
17901 : 14 : tree _o1[2], _r1;
17902 : 14 : _o1[0] = captures[2];
17903 : 14 : _o1[1] = unshare_expr (captures[4]);
17904 : 14 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
17905 : 14 : if (EXPR_P (_r1))
17906 : 0 : goto next_after_fail1715;
17907 : 14 : res_op1 = _r1;
17908 : : }
17909 : 14 : tree res_op2;
17910 : 14 : {
17911 : 14 : tree _o1[2], _r1;
17912 : 14 : _o1[0] = captures[3];
17913 : 14 : _o1[1] = captures[4];
17914 : 14 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
17915 : 14 : if (EXPR_P (_r1))
17916 : 0 : goto next_after_fail1715;
17917 : 14 : res_op2 = _r1;
17918 : : }
17919 : 14 : tree _r;
17920 : 14 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
17921 : 14 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 899, __FILE__, __LINE__, true);
17922 : 14 : return _r;
17923 : : }
17924 : 51 : next_after_fail1715:;
17925 : : }
17926 : : }
17927 : 51 : break;
17928 : : }
17929 : 133954 : case CALL_EXPR:
17930 : 133954 : switch (get_call_combined_fn (_p0))
17931 : : {
17932 : 0 : case CFN_BUILT_IN_BSWAP128:
17933 : 0 : if (call_expr_nargs (_p0) == 1)
17934 : : {
17935 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
17936 : 0 : switch (TREE_CODE (_p1))
17937 : : {
17938 : 0 : case INTEGER_CST:
17939 : 0 : {
17940 : 0 : {
17941 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
17942 : 0 : tree res = generic_simplify_425 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP128);
17943 : 0 : if (res) return res;
17944 : : }
17945 : 0 : break;
17946 : : }
17947 : : default:;
17948 : : }
17949 : : }
17950 : : break;
17951 : 0 : case CFN_BUILT_IN_BSWAP16:
17952 : 0 : if (call_expr_nargs (_p0) == 1)
17953 : : {
17954 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
17955 : 0 : switch (TREE_CODE (_p1))
17956 : : {
17957 : 0 : case INTEGER_CST:
17958 : 0 : {
17959 : 0 : {
17960 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
17961 : 0 : tree res = generic_simplify_425 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP16);
17962 : 0 : if (res) return res;
17963 : : }
17964 : 0 : break;
17965 : : }
17966 : : default:;
17967 : : }
17968 : : }
17969 : : break;
17970 : 10 : case CFN_BUILT_IN_BSWAP32:
17971 : 10 : if (call_expr_nargs (_p0) == 1)
17972 : : {
17973 : 10 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
17974 : 10 : switch (TREE_CODE (_p1))
17975 : : {
17976 : 9 : case INTEGER_CST:
17977 : 9 : {
17978 : 9 : {
17979 : 9 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
17980 : 9 : tree res = generic_simplify_425 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP32);
17981 : 9 : if (res) return res;
17982 : : }
17983 : 1 : break;
17984 : : }
17985 : : default:;
17986 : : }
17987 : : }
17988 : : break;
17989 : 8 : case CFN_BUILT_IN_BSWAP64:
17990 : 8 : if (call_expr_nargs (_p0) == 1)
17991 : : {
17992 : 8 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
17993 : 8 : switch (TREE_CODE (_p1))
17994 : : {
17995 : 7 : case INTEGER_CST:
17996 : 7 : {
17997 : 7 : {
17998 : 7 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
17999 : 7 : tree res = generic_simplify_425 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP64);
18000 : 7 : if (res) return res;
18001 : : }
18002 : 1 : break;
18003 : : }
18004 : : default:;
18005 : : }
18006 : : }
18007 : : break;
18008 : : default:;
18009 : : }
18010 : : break;
18011 : 6276583 : default:;
18012 : : }
18013 : 6276583 : switch (TREE_CODE (_p1))
18014 : : {
18015 : 48 : case VEC_COND_EXPR:
18016 : 48 : {
18017 : 48 : tree _q30 = TREE_OPERAND (_p1, 0);
18018 : 48 : tree _q31 = TREE_OPERAND (_p1, 1);
18019 : 48 : tree _q32 = TREE_OPERAND (_p1, 2);
18020 : 48 : {
18021 : 48 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
18022 : 48 : if (VECTOR_TYPE_P (type)
18023 : 48 : && (TREE_CODE_CLASS (BIT_AND_EXPR) != tcc_comparison
18024 : : || types_match (type, TREE_TYPE (captures[3]))
18025 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
18026 : : || (optimize_vectors_before_lowering_p ()
18027 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
18028 : : )
18029 : : {
18030 : 48 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1716;
18031 : 48 : {
18032 : 48 : if (! tree_invariant_p (captures[0])) goto next_after_fail1716;
18033 : 0 : tree res_op0;
18034 : 0 : res_op0 = captures[2];
18035 : 0 : tree res_op1;
18036 : 0 : {
18037 : 0 : tree _o1[2], _r1;
18038 : 0 : _o1[0] = unshare_expr (captures[0]);
18039 : 0 : _o1[1] = captures[3];
18040 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18041 : 0 : if (EXPR_P (_r1))
18042 : 0 : goto next_after_fail1716;
18043 : 0 : res_op1 = _r1;
18044 : : }
18045 : 0 : tree res_op2;
18046 : 0 : {
18047 : 0 : tree _o1[2], _r1;
18048 : 0 : _o1[0] = captures[0];
18049 : 0 : _o1[1] = captures[4];
18050 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18051 : 0 : if (EXPR_P (_r1))
18052 : 0 : goto next_after_fail1716;
18053 : 0 : res_op2 = _r1;
18054 : : }
18055 : 0 : tree _r;
18056 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18057 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 900, __FILE__, __LINE__, true);
18058 : 0 : return _r;
18059 : : }
18060 : 48 : next_after_fail1716:;
18061 : : }
18062 : : }
18063 : 48 : break;
18064 : : }
18065 : 6276583 : default:;
18066 : : }
18067 : 6276583 : switch (TREE_CODE (_p0))
18068 : : {
18069 : 0 : case ORDERED_EXPR:
18070 : 0 : {
18071 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
18072 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
18073 : 0 : switch (TREE_CODE (_p1))
18074 : : {
18075 : 0 : case NE_EXPR:
18076 : 0 : {
18077 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
18078 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
18079 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
18080 : : {
18081 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
18082 : : {
18083 : 0 : {
18084 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
18085 : 0 : tree res = generic_simplify_443 (loc, type, _p0, _p1, captures);
18086 : 0 : if (res) return res;
18087 : : }
18088 : : }
18089 : : }
18090 : : break;
18091 : : }
18092 : 0 : default:;
18093 : : }
18094 : 0 : if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
18095 : : {
18096 : 0 : switch (TREE_CODE (_p1))
18097 : : {
18098 : 0 : case ORDERED_EXPR:
18099 : 0 : {
18100 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
18101 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
18102 : 0 : if ((_q51 == _q50 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q50, 0) && types_match (_q51, _q50)))
18103 : : {
18104 : 0 : {
18105 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q50 };
18106 : 0 : if (types_match (captures[0], captures[1])
18107 : : )
18108 : : {
18109 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1717;
18110 : 0 : {
18111 : 0 : tree res_op0;
18112 : 0 : res_op0 = captures[0];
18113 : 0 : tree res_op1;
18114 : 0 : res_op1 = captures[1];
18115 : 0 : tree _r;
18116 : 0 : _r = fold_build2_loc (loc, ORDERED_EXPR, type, res_op0, res_op1);
18117 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1024, __FILE__, __LINE__, true);
18118 : 0 : return _r;
18119 : : }
18120 : 0 : next_after_fail1717:;
18121 : : }
18122 : : }
18123 : : }
18124 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
18125 : : {
18126 : 0 : {
18127 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p1, _q51 };
18128 : 0 : tree res = generic_simplify_444 (loc, type, _p0, _p1, captures);
18129 : 0 : if (res) return res;
18130 : : }
18131 : : }
18132 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
18133 : : {
18134 : 0 : {
18135 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p1, _q50 };
18136 : 0 : tree res = generic_simplify_444 (loc, type, _p0, _p1, captures);
18137 : 0 : if (res) return res;
18138 : : }
18139 : : }
18140 : : break;
18141 : : }
18142 : : default:;
18143 : : }
18144 : : }
18145 : 0 : switch (TREE_CODE (_p1))
18146 : : {
18147 : 0 : case ORDERED_EXPR:
18148 : 0 : {
18149 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
18150 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
18151 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
18152 : : {
18153 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
18154 : : {
18155 : 0 : {
18156 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p0, _q21 };
18157 : 0 : tree res = generic_simplify_445 (loc, type, _p0, _p1, captures);
18158 : 0 : if (res) return res;
18159 : : }
18160 : : }
18161 : : }
18162 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
18163 : : {
18164 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
18165 : : {
18166 : 0 : {
18167 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _p0, _q20 };
18168 : 0 : tree res = generic_simplify_445 (loc, type, _p0, _p1, captures);
18169 : 0 : if (res) return res;
18170 : : }
18171 : : }
18172 : : }
18173 : : break;
18174 : : }
18175 : : default:;
18176 : : }
18177 : : break;
18178 : : }
18179 : 127 : case NE_EXPR:
18180 : 127 : {
18181 : 127 : tree _q20 = TREE_OPERAND (_p0, 0);
18182 : 127 : tree _q21 = TREE_OPERAND (_p0, 1);
18183 : 127 : switch (TREE_CODE (_p1))
18184 : : {
18185 : 0 : case ORDERED_EXPR:
18186 : 0 : {
18187 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
18188 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
18189 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
18190 : : {
18191 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
18192 : : {
18193 : 0 : {
18194 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
18195 : 0 : tree res = generic_simplify_443 (loc, type, _p0, _p1, captures);
18196 : 0 : if (res) return res;
18197 : : }
18198 : : }
18199 : : }
18200 : : break;
18201 : : }
18202 : : default:;
18203 : : }
18204 : : break;
18205 : : }
18206 : 501983 : case MINUS_EXPR:
18207 : 501983 : {
18208 : 501983 : tree _q20 = TREE_OPERAND (_p0, 0);
18209 : 501983 : tree _q21 = TREE_OPERAND (_p0, 1);
18210 : 501983 : switch (TREE_CODE (_q20))
18211 : : {
18212 : 437206 : CASE_CONVERT:
18213 : 437206 : {
18214 : 437206 : tree _q30 = TREE_OPERAND (_q20, 0);
18215 : 437206 : switch (TREE_CODE (_q21))
18216 : : {
18217 : 432141 : CASE_CONVERT:
18218 : 432141 : {
18219 : 432141 : tree _q50 = TREE_OPERAND (_q21, 0);
18220 : 432141 : switch (TREE_CODE (_p1))
18221 : : {
18222 : 432117 : case INTEGER_CST:
18223 : 432117 : {
18224 : 432117 : {
18225 : 432117 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1 };
18226 : 432117 : tree res = generic_simplify_446 (loc, type, _p0, _p1, captures, MINUS_EXPR);
18227 : 432117 : if (res) return res;
18228 : : }
18229 : 432107 : break;
18230 : : }
18231 : : default:;
18232 : : }
18233 : : break;
18234 : : }
18235 : : default:;
18236 : : }
18237 : : break;
18238 : : }
18239 : : default:;
18240 : : }
18241 : : break;
18242 : : }
18243 : 172095 : case PLUS_EXPR:
18244 : 172095 : {
18245 : 172095 : tree _q20 = TREE_OPERAND (_p0, 0);
18246 : 172095 : tree _q21 = TREE_OPERAND (_p0, 1);
18247 : 172095 : switch (TREE_CODE (_q20))
18248 : : {
18249 : 50245 : CASE_CONVERT:
18250 : 50245 : {
18251 : 50245 : tree _q30 = TREE_OPERAND (_q20, 0);
18252 : 50245 : switch (TREE_CODE (_q21))
18253 : : {
18254 : 117 : CASE_CONVERT:
18255 : 117 : {
18256 : 117 : tree _q50 = TREE_OPERAND (_q21, 0);
18257 : 117 : switch (TREE_CODE (_p1))
18258 : : {
18259 : 60 : case INTEGER_CST:
18260 : 60 : {
18261 : 60 : {
18262 : 60 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1 };
18263 : 60 : tree res = generic_simplify_446 (loc, type, _p0, _p1, captures, PLUS_EXPR);
18264 : 60 : if (res) return res;
18265 : : }
18266 : 45 : break;
18267 : : }
18268 : : default:;
18269 : : }
18270 : : break;
18271 : : }
18272 : : default:;
18273 : : }
18274 : : break;
18275 : : }
18276 : : default:;
18277 : : }
18278 : : break;
18279 : : }
18280 : 53 : case LT_EXPR:
18281 : 53 : {
18282 : 53 : tree _q20 = TREE_OPERAND (_p0, 0);
18283 : 53 : tree _q21 = TREE_OPERAND (_p0, 1);
18284 : 53 : switch (TREE_CODE (_p1))
18285 : : {
18286 : 8 : case LT_EXPR:
18287 : 8 : {
18288 : 8 : tree _q50 = TREE_OPERAND (_p1, 0);
18289 : 8 : tree _q51 = TREE_OPERAND (_p1, 1);
18290 : 8 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
18291 : : {
18292 : 0 : {
18293 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
18294 : 0 : tree res = generic_simplify_148 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LT_EXPR, MIN_EXPR);
18295 : 0 : if (res) return res;
18296 : : }
18297 : : }
18298 : 8 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
18299 : : {
18300 : 0 : {
18301 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
18302 : 0 : tree res = generic_simplify_148 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GT_EXPR, MAX_EXPR);
18303 : 0 : if (res) return res;
18304 : : }
18305 : : }
18306 : : break;
18307 : : }
18308 : 1 : case GT_EXPR:
18309 : 1 : {
18310 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
18311 : 1 : tree _q51 = TREE_OPERAND (_p1, 1);
18312 : 1 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
18313 : : {
18314 : 0 : {
18315 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
18316 : 0 : tree res = generic_simplify_148 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LT_EXPR, MIN_EXPR);
18317 : 0 : if (res) return res;
18318 : : }
18319 : : }
18320 : 1 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
18321 : : {
18322 : 0 : {
18323 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
18324 : 0 : tree res = generic_simplify_148 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GT_EXPR, MAX_EXPR);
18325 : 0 : if (res) return res;
18326 : : }
18327 : : }
18328 : : break;
18329 : : }
18330 : : default:;
18331 : : }
18332 : : break;
18333 : : }
18334 : 31 : case LE_EXPR:
18335 : 31 : {
18336 : 31 : tree _q20 = TREE_OPERAND (_p0, 0);
18337 : 31 : tree _q21 = TREE_OPERAND (_p0, 1);
18338 : 31 : switch (TREE_CODE (_p1))
18339 : : {
18340 : 4 : case LE_EXPR:
18341 : 4 : {
18342 : 4 : tree _q50 = TREE_OPERAND (_p1, 0);
18343 : 4 : tree _q51 = TREE_OPERAND (_p1, 1);
18344 : 4 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
18345 : : {
18346 : 0 : {
18347 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
18348 : 0 : tree res = generic_simplify_148 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LE_EXPR, MIN_EXPR);
18349 : 0 : if (res) return res;
18350 : : }
18351 : : }
18352 : 4 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
18353 : : {
18354 : 4 : {
18355 : 4 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
18356 : 4 : tree res = generic_simplify_148 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GE_EXPR, MAX_EXPR);
18357 : 4 : if (res) return res;
18358 : : }
18359 : : }
18360 : : break;
18361 : : }
18362 : 0 : case GE_EXPR:
18363 : 0 : {
18364 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
18365 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
18366 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
18367 : : {
18368 : 0 : {
18369 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
18370 : 0 : tree res = generic_simplify_148 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LE_EXPR, MIN_EXPR);
18371 : 0 : if (res) return res;
18372 : : }
18373 : : }
18374 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
18375 : : {
18376 : 0 : {
18377 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
18378 : 0 : tree res = generic_simplify_148 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GE_EXPR, MAX_EXPR);
18379 : 0 : if (res) return res;
18380 : : }
18381 : : }
18382 : : break;
18383 : : }
18384 : : default:;
18385 : : }
18386 : : break;
18387 : : }
18388 : 327 : case GT_EXPR:
18389 : 327 : {
18390 : 327 : tree _q20 = TREE_OPERAND (_p0, 0);
18391 : 327 : tree _q21 = TREE_OPERAND (_p0, 1);
18392 : 327 : switch (TREE_CODE (_p1))
18393 : : {
18394 : 85 : case GT_EXPR:
18395 : 85 : {
18396 : 85 : tree _q50 = TREE_OPERAND (_p1, 0);
18397 : 85 : tree _q51 = TREE_OPERAND (_p1, 1);
18398 : 85 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
18399 : : {
18400 : 0 : {
18401 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
18402 : 0 : tree res = generic_simplify_148 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GT_EXPR, MAX_EXPR);
18403 : 0 : if (res) return res;
18404 : : }
18405 : : }
18406 : 85 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
18407 : : {
18408 : 35 : {
18409 : 35 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
18410 : 35 : tree res = generic_simplify_148 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LT_EXPR, MIN_EXPR);
18411 : 35 : if (res) return res;
18412 : : }
18413 : : }
18414 : : break;
18415 : : }
18416 : 67 : case LT_EXPR:
18417 : 67 : {
18418 : 67 : tree _q50 = TREE_OPERAND (_p1, 0);
18419 : 67 : tree _q51 = TREE_OPERAND (_p1, 1);
18420 : 67 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
18421 : : {
18422 : 0 : {
18423 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
18424 : 0 : tree res = generic_simplify_148 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GT_EXPR, MAX_EXPR);
18425 : 0 : if (res) return res;
18426 : : }
18427 : : }
18428 : 67 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
18429 : : {
18430 : 0 : {
18431 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
18432 : 0 : tree res = generic_simplify_148 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LT_EXPR, MIN_EXPR);
18433 : 0 : if (res) return res;
18434 : : }
18435 : : }
18436 : : break;
18437 : : }
18438 : : default:;
18439 : : }
18440 : : break;
18441 : : }
18442 : 53 : case GE_EXPR:
18443 : 53 : {
18444 : 53 : tree _q20 = TREE_OPERAND (_p0, 0);
18445 : 53 : tree _q21 = TREE_OPERAND (_p0, 1);
18446 : 53 : switch (TREE_CODE (_p1))
18447 : : {
18448 : 11 : case GE_EXPR:
18449 : 11 : {
18450 : 11 : tree _q50 = TREE_OPERAND (_p1, 0);
18451 : 11 : tree _q51 = TREE_OPERAND (_p1, 1);
18452 : 11 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
18453 : : {
18454 : 7 : {
18455 : 7 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
18456 : 7 : tree res = generic_simplify_148 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GE_EXPR, MAX_EXPR);
18457 : 7 : if (res) return res;
18458 : : }
18459 : : }
18460 : 11 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
18461 : : {
18462 : 0 : {
18463 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
18464 : 0 : tree res = generic_simplify_148 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LE_EXPR, MIN_EXPR);
18465 : 0 : if (res) return res;
18466 : : }
18467 : : }
18468 : : break;
18469 : : }
18470 : 8 : case LE_EXPR:
18471 : 8 : {
18472 : 8 : tree _q50 = TREE_OPERAND (_p1, 0);
18473 : 8 : tree _q51 = TREE_OPERAND (_p1, 1);
18474 : 8 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
18475 : : {
18476 : 0 : {
18477 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
18478 : 0 : tree res = generic_simplify_148 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GE_EXPR, MAX_EXPR);
18479 : 0 : if (res) return res;
18480 : : }
18481 : : }
18482 : 8 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
18483 : : {
18484 : 0 : {
18485 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
18486 : 0 : tree res = generic_simplify_148 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LE_EXPR, MIN_EXPR);
18487 : 0 : if (res) return res;
18488 : : }
18489 : : }
18490 : : break;
18491 : : }
18492 : : default:;
18493 : : }
18494 : : break;
18495 : : }
18496 : 46651 : case NEGATE_EXPR:
18497 : 46651 : {
18498 : 46651 : tree _q20 = TREE_OPERAND (_p0, 0);
18499 : 46651 : if (integer_onep (_p1))
18500 : : {
18501 : 2120 : {
18502 : 2120 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
18503 : 2120 : if (!TYPE_OVERFLOW_SANITIZED (type)
18504 : : )
18505 : : {
18506 : 2107 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1718;
18507 : 2107 : {
18508 : 2107 : tree res_op0;
18509 : 2107 : res_op0 = captures[0];
18510 : 2107 : tree res_op1;
18511 : 2107 : res_op1 = captures[1];
18512 : 2107 : tree _r;
18513 : 2107 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
18514 : 2107 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1025, __FILE__, __LINE__, true);
18515 : 2107 : return _r;
18516 : : }
18517 : 0 : next_after_fail1718:;
18518 : : }
18519 : : }
18520 : : }
18521 : : break;
18522 : : }
18523 : 1 : case VEC_PERM_EXPR:
18524 : 1 : {
18525 : 1 : tree _q20 = TREE_OPERAND (_p0, 0);
18526 : 1 : tree _q21 = TREE_OPERAND (_p0, 1);
18527 : 1 : tree _q22 = TREE_OPERAND (_p0, 2);
18528 : 1 : if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
18529 : : {
18530 : 0 : switch (TREE_CODE (_p1))
18531 : : {
18532 : 0 : case VEC_PERM_EXPR:
18533 : 0 : {
18534 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
18535 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
18536 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
18537 : 0 : if ((_q61 == _q60 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q60, 0) && types_match (_q61, _q60)))
18538 : : {
18539 : 0 : if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
18540 : : {
18541 : 0 : {
18542 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q22, _q60 };
18543 : 0 : if (VECTOR_INTEGER_TYPE_P (type)
18544 : : )
18545 : : {
18546 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1719;
18547 : 0 : {
18548 : 0 : tree res_op0;
18549 : 0 : {
18550 : 0 : tree _o1[2], _r1;
18551 : 0 : _o1[0] = captures[0];
18552 : 0 : _o1[1] = captures[2];
18553 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18554 : 0 : captures[3] = _r1;
18555 : : }
18556 : 0 : res_op0 = unshare_expr (captures[3]);
18557 : 0 : tree res_op1;
18558 : 0 : res_op1 = captures[3];
18559 : 0 : tree res_op2;
18560 : 0 : res_op2 = captures[1];
18561 : 0 : tree _r;
18562 : 0 : _r = fold_build3_loc (loc, VEC_PERM_EXPR, type, res_op0, res_op1, res_op2);
18563 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 901, __FILE__, __LINE__, true);
18564 : 0 : return _r;
18565 : : }
18566 : 0 : next_after_fail1719:;
18567 : : }
18568 : : }
18569 : : }
18570 : : }
18571 : : break;
18572 : : }
18573 : : default:;
18574 : : }
18575 : : }
18576 : : break;
18577 : : }
18578 : 133940 : case CALL_EXPR:
18579 : 133940 : switch (get_call_combined_fn (_p0))
18580 : : {
18581 : 1 : case CFN_BUILT_IN_POPCOUNT:
18582 : 1 : if (call_expr_nargs (_p0) == 1)
18583 : : {
18584 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
18585 : 1 : if (integer_onep (_p1))
18586 : : {
18587 : 1 : {
18588 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
18589 : 1 : tree res = generic_simplify_447 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNT, CFN_BUILT_IN_PARITY);
18590 : 1 : if (res) return res;
18591 : : }
18592 : : }
18593 : : }
18594 : : break;
18595 : 1 : case CFN_BUILT_IN_POPCOUNTLL:
18596 : 1 : if (call_expr_nargs (_p0) == 1)
18597 : : {
18598 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
18599 : 1 : if (integer_onep (_p1))
18600 : : {
18601 : 1 : {
18602 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
18603 : 1 : tree res = generic_simplify_447 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTLL, CFN_BUILT_IN_PARITYLL);
18604 : 1 : if (res) return res;
18605 : : }
18606 : : }
18607 : : }
18608 : : break;
18609 : 0 : case CFN_POPCOUNT:
18610 : 0 : if (call_expr_nargs (_p0) == 1)
18611 : : {
18612 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
18613 : 0 : if (integer_onep (_p1))
18614 : : {
18615 : 0 : {
18616 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
18617 : 0 : tree res = generic_simplify_447 (loc, type, _p0, _p1, captures, CFN_POPCOUNT, CFN_PARITY);
18618 : 0 : if (res) return res;
18619 : : }
18620 : : }
18621 : : }
18622 : : break;
18623 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
18624 : 0 : if (call_expr_nargs (_p0) == 1)
18625 : : {
18626 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
18627 : 0 : if (integer_onep (_p1))
18628 : : {
18629 : 0 : {
18630 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
18631 : 0 : tree res = generic_simplify_447 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTIMAX, CFN_BUILT_IN_PARITYIMAX);
18632 : 0 : if (res) return res;
18633 : : }
18634 : : }
18635 : : }
18636 : : break;
18637 : 1 : case CFN_BUILT_IN_POPCOUNTL:
18638 : 1 : if (call_expr_nargs (_p0) == 1)
18639 : : {
18640 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
18641 : 1 : if (integer_onep (_p1))
18642 : : {
18643 : 1 : {
18644 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
18645 : 1 : tree res = generic_simplify_447 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTL, CFN_BUILT_IN_PARITYL);
18646 : 1 : if (res) return res;
18647 : : }
18648 : : }
18649 : : }
18650 : : break;
18651 : : default:;
18652 : : }
18653 : : break;
18654 : : default:;
18655 : : }
18656 : : return NULL_TREE;
18657 : : }
18658 : : #pragma GCC diagnostic pop
|