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 : 1653002 : tree_power_of_two_cand (tree t, tree *res_ops)
11 : : {
12 : 1653002 : const tree type = TREE_TYPE (t);
13 : 1653002 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
14 : 1653002 : if (TREE_SIDE_EFFECTS (t)) return false;
15 : 1652296 : switch (TREE_CODE (t))
16 : : {
17 : 1389271 : case INTEGER_CST:
18 : 1389271 : {
19 : 1389271 : {
20 : 1389271 : tree captures[1] ATTRIBUTE_UNUSED = { t };
21 : 1389271 : {
22 : 1389271 : res_ops[0] = captures[0];
23 : 1389271 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 12, __FILE__, __LINE__, false);
24 : : return true;
25 : : }
26 : : }
27 : 16 : break;
28 : : }
29 : 16 : case LSHIFT_EXPR:
30 : 16 : {
31 : 16 : tree _p0 = TREE_OPERAND (t, 0);
32 : 16 : tree _p1 = TREE_OPERAND (t, 1);
33 : 16 : switch (TREE_CODE (_p0))
34 : : {
35 : 16 : case INTEGER_CST:
36 : 16 : {
37 : 16 : {
38 : 16 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
39 : 16 : {
40 : 16 : res_ops[0] = captures[0];
41 : 16 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 13, __FILE__, __LINE__, false);
42 : 16 : return true;
43 : : }
44 : : }
45 : : break;
46 : : }
47 : : default:;
48 : : }
49 : : break;
50 : : }
51 : : default:;
52 : : }
53 : : return false;
54 : : }
55 : :
56 : : bool
57 : 77157482 : tree_with_possible_nonzero_bits (tree t)
58 : : {
59 : 77157482 : const tree type = TREE_TYPE (t);
60 : 77157482 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
61 : 77157482 : if (TREE_SIDE_EFFECTS (t)) return false;
62 : 72316910 : switch (TREE_CODE (t))
63 : : {
64 : 2067243 : case BIT_AND_EXPR:
65 : 2067243 : {
66 : 2067243 : tree _p0 = TREE_OPERAND (t, 0);
67 : 2067243 : tree _p1 = TREE_OPERAND (t, 1);
68 : 2067243 : if (tree_with_possible_nonzero_bits_1 (_p0))
69 : : {
70 : 992074 : {
71 : 992074 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
72 : 992074 : {
73 : 992074 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 35, __FILE__, __LINE__, false);
74 : 992074 : return true;
75 : : }
76 : : }
77 : : }
78 : 1075169 : if (tree_with_possible_nonzero_bits_1 (_p1))
79 : : {
80 : 924575 : {
81 : 924575 : tree captures[2] ATTRIBUTE_UNUSED = { _p1, _p0 };
82 : 924575 : {
83 : 924575 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 35, __FILE__, __LINE__, false);
84 : 924575 : return true;
85 : : }
86 : : }
87 : : }
88 : : break;
89 : : }
90 : 70400261 : default:;
91 : : }
92 : 70400261 : if (tree_with_possible_nonzero_bits_1 (t))
93 : : {
94 : 41535539 : {
95 : 41535539 : tree captures[1] ATTRIBUTE_UNUSED = { t };
96 : 41535539 : {
97 : 41535539 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 36, __FILE__, __LINE__, false);
98 : 41535539 : return true;
99 : : }
100 : : }
101 : : }
102 : : return false;
103 : : }
104 : :
105 : : bool
106 : 0 : tree_unsigned_integer_narrow_clip (tree t, tree *res_ops)
107 : : {
108 : 0 : const tree type = TREE_TYPE (t);
109 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
110 : 0 : if (TREE_SIDE_EFFECTS (t)) return false;
111 : 0 : switch (TREE_CODE (t))
112 : : {
113 : 0 : CASE_CONVERT:
114 : 0 : {
115 : 0 : tree _p0 = TREE_OPERAND (t, 0);
116 : 0 : switch (TREE_CODE (_p0))
117 : : {
118 : 0 : case COND_EXPR:
119 : 0 : {
120 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
121 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
122 : 0 : tree _q22 = TREE_OPERAND (_p0, 2);
123 : 0 : switch (TREE_CODE (_q20))
124 : : {
125 : 0 : case GT_EXPR:
126 : 0 : {
127 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
128 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
129 : 0 : {
130 : 0 : tree _q30_pops[1];
131 : 0 : if (tree_nop_convert (_q30, _q30_pops))
132 : : {
133 : 0 : tree _q40 = _q30_pops[0];
134 : 0 : switch (TREE_CODE (_q31))
135 : : {
136 : 0 : case INTEGER_CST:
137 : 0 : {
138 : 0 : switch (TREE_CODE (_q21))
139 : : {
140 : 0 : case RSHIFT_EXPR:
141 : 0 : {
142 : 0 : tree _q70 = TREE_OPERAND (_q21, 0);
143 : 0 : tree _q71 = TREE_OPERAND (_q21, 1);
144 : 0 : {
145 : 0 : tree _q70_pops[1];
146 : 0 : if (tree_nop_convert (_q70, _q70_pops))
147 : : {
148 : 0 : tree _q80 = _q70_pops[0];
149 : 0 : switch (TREE_CODE (_q80))
150 : : {
151 : 0 : case NEGATE_EXPR:
152 : 0 : {
153 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
154 : 0 : {
155 : 0 : tree _q90_pops[1];
156 : 0 : if (tree_nop_convert (_q90, _q90_pops))
157 : : {
158 : 0 : tree _q100 = _q90_pops[0];
159 : 0 : if ((_q100 == _q40 && ! TREE_SIDE_EFFECTS (_q100)) || (operand_equal_p (_q100, _q40, 0) && types_match (_q100, _q40)))
160 : : {
161 : 0 : switch (TREE_CODE (_q71))
162 : : {
163 : 0 : case INTEGER_CST:
164 : 0 : {
165 : 0 : if ((_q22 == _q40 && ! TREE_SIDE_EFFECTS (_q22)) || (operand_equal_p (_q22, _q40, 0) && types_match (_q22, _q40)))
166 : : {
167 : 0 : {
168 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q31, _q21, _q71 };
169 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
170 : : )
171 : : {
172 : 0 : if (! TYPE_UNSIGNED (TREE_TYPE (captures[0]))
173 : : )
174 : : {
175 : 0 : {
176 : 0 : unsigned itype_precision = TYPE_PRECISION (TREE_TYPE (captures[0]));
177 : 0 : unsigned otype_precision = TYPE_PRECISION (type);
178 : 0 : wide_int trunc_max = wi::mask (otype_precision, false, itype_precision);
179 : 0 : wide_int int_cst_1 = wi::to_wide (captures[1], itype_precision);
180 : 0 : wide_int int_cst_2 = wi::to_wide (captures[3], itype_precision);
181 : 0 : wide_int shift_amount = wi::uhwi (itype_precision - 1,
182 : 0 : itype_precision);
183 : 0 : int cmp = 0;
184 : 0 : cmp = wi::cmp (int_cst_2, shift_amount, TYPE_SIGN (TREE_TYPE (captures[0])));
185 : 0 : if (otype_precision < itype_precision && wi::eq_p (trunc_max,
186 : 0 : int_cst_1) && (cmp >= 0)
187 : : )
188 : : {
189 : 0 : {
190 : 0 : res_ops[0] = captures[0];
191 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 69, __FILE__, __LINE__, false);
192 : 0 : return true;
193 : : }
194 : : }
195 : 0 : }
196 : : }
197 : : }
198 : : }
199 : : }
200 : : break;
201 : : }
202 : : default:;
203 : : }
204 : : }
205 : : }
206 : : }
207 : 0 : break;
208 : : }
209 : : default:;
210 : : }
211 : : }
212 : : }
213 : 0 : break;
214 : : }
215 : : default:;
216 : : }
217 : : break;
218 : : }
219 : : default:;
220 : : }
221 : : }
222 : : }
223 : 0 : switch (TREE_CODE (_q31))
224 : : {
225 : 0 : case INTEGER_CST:
226 : 0 : {
227 : 0 : switch (TREE_CODE (_q21))
228 : : {
229 : 0 : case RSHIFT_EXPR:
230 : 0 : {
231 : 0 : tree _q60 = TREE_OPERAND (_q21, 0);
232 : 0 : tree _q61 = TREE_OPERAND (_q21, 1);
233 : 0 : switch (TREE_CODE (_q60))
234 : : {
235 : 0 : case NEGATE_EXPR:
236 : 0 : {
237 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
238 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
239 : : {
240 : 0 : switch (TREE_CODE (_q61))
241 : : {
242 : 0 : case INTEGER_CST:
243 : 0 : {
244 : 0 : if ((_q22 == _q30 && ! TREE_SIDE_EFFECTS (_q22)) || (operand_equal_p (_q22, _q30, 0) && types_match (_q22, _q30)))
245 : : {
246 : 0 : {
247 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q21, _q61 };
248 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
249 : : )
250 : : {
251 : 0 : if (! TYPE_UNSIGNED (TREE_TYPE (captures[0]))
252 : : )
253 : : {
254 : 0 : {
255 : 0 : unsigned itype_precision = TYPE_PRECISION (TREE_TYPE (captures[0]));
256 : 0 : unsigned otype_precision = TYPE_PRECISION (type);
257 : 0 : wide_int trunc_max = wi::mask (otype_precision, false, itype_precision);
258 : 0 : wide_int int_cst_1 = wi::to_wide (captures[1], itype_precision);
259 : 0 : wide_int int_cst_2 = wi::to_wide (captures[3], itype_precision);
260 : 0 : wide_int shift_amount = wi::uhwi (itype_precision - 1,
261 : 0 : itype_precision);
262 : 0 : int cmp = 0;
263 : 0 : cmp = wi::cmp (int_cst_2, shift_amount, TYPE_SIGN (TREE_TYPE (captures[0])));
264 : 0 : if (otype_precision < itype_precision && wi::eq_p (trunc_max,
265 : 0 : int_cst_1) && (cmp >= 0)
266 : : )
267 : : {
268 : 0 : {
269 : 0 : res_ops[0] = captures[0];
270 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 69, __FILE__, __LINE__, false);
271 : 0 : return true;
272 : : }
273 : : }
274 : 0 : }
275 : : }
276 : : }
277 : : }
278 : : }
279 : : break;
280 : : }
281 : : default:;
282 : : }
283 : : }
284 : : break;
285 : : }
286 : : default:;
287 : : }
288 : : break;
289 : : }
290 : : default:;
291 : : }
292 : : break;
293 : : }
294 : : default:;
295 : : }
296 : : break;
297 : : }
298 : : default:;
299 : : }
300 : : break;
301 : : }
302 : : default:;
303 : : }
304 : : break;
305 : : }
306 : : default:;
307 : : }
308 : : return false;
309 : : }
310 : :
311 : : bool
312 : 0 : tree_double_value_p (tree t)
313 : : {
314 : 0 : const tree type = TREE_TYPE (t);
315 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
316 : 0 : if (TREE_SIDE_EFFECTS (t)) return false;
317 : 0 : {
318 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { t };
319 : 0 : if (TYPE_MAIN_VARIANT (TREE_TYPE (captures[0])) == double_type_node
320 : : )
321 : : {
322 : 0 : {
323 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 95, __FILE__, __LINE__, false);
324 : 0 : return true;
325 : : }
326 : : }
327 : : }
328 : : return false;
329 : : }
330 : :
331 : : bool
332 : 714179 : tree_vec_same_elem_p (tree t)
333 : : {
334 : 714179 : const tree type = TREE_TYPE (t);
335 : 714179 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
336 : 714179 : if (TREE_SIDE_EFFECTS (t)) return false;
337 : 714179 : switch (TREE_CODE (t))
338 : : {
339 : 0 : case VEC_DUPLICATE_EXPR:
340 : 0 : {
341 : 0 : tree _p0 = TREE_OPERAND (t, 0);
342 : 0 : {
343 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
344 : 0 : {
345 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 97, __FILE__, __LINE__, false);
346 : 0 : return true;
347 : : }
348 : : }
349 : : break;
350 : : }
351 : : case CONSTRUCTOR:
352 : : {
353 : : {
354 : : tree captures[1] ATTRIBUTE_UNUSED = { t };
355 : : if (TREE_CODE (captures[0]) == SSA_NAME
356 : : && uniform_vector_p (gimple_assign_rhs1 (SSA_NAME_DEF_STMT (captures[0])))
357 : : )
358 : : {
359 : : {
360 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 98, __FILE__, __LINE__, false);
361 : : return true;
362 : : }
363 : : }
364 : : }
365 : : break;
366 : : }
367 : 714179 : default:;
368 : : }
369 : 714179 : {
370 : 714179 : tree captures[1] ATTRIBUTE_UNUSED = { t };
371 : 714179 : if (uniform_vector_p (captures[0])
372 : : )
373 : : {
374 : 13839 : {
375 : 13839 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 99, __FILE__, __LINE__, false);
376 : 13839 : return true;
377 : : }
378 : : }
379 : : }
380 : : return false;
381 : : }
382 : :
383 : : bool
384 : 0 : tree_clz_table_index (tree t, tree *res_ops)
385 : : {
386 : 0 : const tree type = TREE_TYPE (t);
387 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
388 : 0 : if (TREE_SIDE_EFFECTS (t)) return false;
389 : 0 : switch (TREE_CODE (t))
390 : : {
391 : 0 : case RSHIFT_EXPR:
392 : 0 : {
393 : 0 : tree _p0 = TREE_OPERAND (t, 0);
394 : 0 : tree _p1 = TREE_OPERAND (t, 1);
395 : 0 : switch (TREE_CODE (_p0))
396 : : {
397 : 0 : case MULT_EXPR:
398 : 0 : {
399 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
400 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
401 : 0 : switch (TREE_CODE (_q20))
402 : : {
403 : 0 : case BIT_IOR_EXPR:
404 : 0 : {
405 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
406 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
407 : 0 : switch (TREE_CODE (_q30))
408 : : {
409 : 0 : case RSHIFT_EXPR:
410 : 0 : {
411 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
412 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
413 : 0 : switch (TREE_CODE (_q40))
414 : : {
415 : 0 : case BIT_IOR_EXPR:
416 : 0 : {
417 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
418 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
419 : 0 : switch (TREE_CODE (_q50))
420 : : {
421 : 0 : case RSHIFT_EXPR:
422 : 0 : {
423 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
424 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
425 : 0 : switch (TREE_CODE (_q60))
426 : : {
427 : 0 : case BIT_IOR_EXPR:
428 : 0 : {
429 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
430 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
431 : 0 : switch (TREE_CODE (_q70))
432 : : {
433 : 0 : case RSHIFT_EXPR:
434 : 0 : {
435 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
436 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
437 : 0 : switch (TREE_CODE (_q80))
438 : : {
439 : 0 : case BIT_IOR_EXPR:
440 : 0 : {
441 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
442 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
443 : 0 : switch (TREE_CODE (_q90))
444 : : {
445 : 0 : case RSHIFT_EXPR:
446 : 0 : {
447 : 0 : tree _q100 = TREE_OPERAND (_q90, 0);
448 : 0 : tree _q101 = TREE_OPERAND (_q90, 1);
449 : 0 : switch (TREE_CODE (_q100))
450 : : {
451 : 0 : case BIT_IOR_EXPR:
452 : 0 : {
453 : 0 : tree _q110 = TREE_OPERAND (_q100, 0);
454 : 0 : tree _q111 = TREE_OPERAND (_q100, 1);
455 : 0 : switch (TREE_CODE (_q110))
456 : : {
457 : 0 : case RSHIFT_EXPR:
458 : 0 : {
459 : 0 : tree _q120 = TREE_OPERAND (_q110, 0);
460 : 0 : tree _q121 = TREE_OPERAND (_q110, 1);
461 : 0 : switch (TREE_CODE (_q121))
462 : : {
463 : 0 : case INTEGER_CST:
464 : 0 : {
465 : 0 : if ((_q111 == _q120 && ! TREE_SIDE_EFFECTS (_q111)) || (operand_equal_p (_q111, _q120, 0) && types_match (_q111, _q120)))
466 : : {
467 : 0 : switch (TREE_CODE (_q101))
468 : : {
469 : 0 : case INTEGER_CST:
470 : 0 : {
471 : 0 : if ((_q91 == _q100 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q100, 0) && types_match (_q91, _q100)))
472 : : {
473 : 0 : switch (TREE_CODE (_q81))
474 : : {
475 : 0 : case INTEGER_CST:
476 : 0 : {
477 : 0 : if ((_q71 == _q80 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q80, 0) && types_match (_q71, _q80)))
478 : : {
479 : 0 : switch (TREE_CODE (_q61))
480 : : {
481 : 0 : case INTEGER_CST:
482 : 0 : {
483 : 0 : if ((_q51 == _q60 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q60, 0) && types_match (_q51, _q60)))
484 : : {
485 : 0 : switch (TREE_CODE (_q41))
486 : : {
487 : 0 : case INTEGER_CST:
488 : 0 : {
489 : 0 : if ((_q31 == _q40 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _q40, 0) && types_match (_q31, _q40)))
490 : : {
491 : 0 : switch (TREE_CODE (_q21))
492 : : {
493 : 0 : case INTEGER_CST:
494 : 0 : {
495 : 0 : switch (TREE_CODE (_p1))
496 : : {
497 : 0 : case INTEGER_CST:
498 : 0 : {
499 : 0 : {
500 : 0 : tree captures[12] ATTRIBUTE_UNUSED = { _q120, _q21, _p1, _q40, _q60, _q80, _q100, _q121, _q101, _q81, _q61, _q41 };
501 : 0 : if (INTEGRAL_TYPE_P (type)
502 : 0 : && TYPE_UNSIGNED (type)
503 : 0 : && TYPE_PRECISION (type) == 32
504 : 0 : && compare_tree_int (captures[7], 1) == 0
505 : 0 : && compare_tree_int (captures[8], 2) == 0
506 : 0 : && compare_tree_int (captures[9], 4) == 0
507 : 0 : && compare_tree_int (captures[10], 8) == 0
508 : 0 : && compare_tree_int (captures[11], 16) == 0
509 : : )
510 : : {
511 : 0 : {
512 : 0 : res_ops[0] = captures[0];
513 : 0 : res_ops[1] = captures[1];
514 : 0 : res_ops[2] = captures[2];
515 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 101, __FILE__, __LINE__, false);
516 : 0 : return true;
517 : : }
518 : : }
519 : : }
520 : 0 : break;
521 : : }
522 : : default:;
523 : : }
524 : : break;
525 : : }
526 : : default:;
527 : : }
528 : : }
529 : : break;
530 : : }
531 : : default:;
532 : : }
533 : : }
534 : : break;
535 : : }
536 : : default:;
537 : : }
538 : : }
539 : : break;
540 : : }
541 : : default:;
542 : : }
543 : : }
544 : : break;
545 : : }
546 : : default:;
547 : : }
548 : : }
549 : : break;
550 : : }
551 : 0 : default:;
552 : : }
553 : 0 : switch (TREE_CODE (_q120))
554 : : {
555 : 0 : case BIT_IOR_EXPR:
556 : 0 : {
557 : 0 : tree _q130 = TREE_OPERAND (_q120, 0);
558 : 0 : tree _q131 = TREE_OPERAND (_q120, 1);
559 : 0 : switch (TREE_CODE (_q130))
560 : : {
561 : 0 : case RSHIFT_EXPR:
562 : 0 : {
563 : 0 : tree _q140 = TREE_OPERAND (_q130, 0);
564 : 0 : tree _q141 = TREE_OPERAND (_q130, 1);
565 : 0 : switch (TREE_CODE (_q141))
566 : : {
567 : 0 : case INTEGER_CST:
568 : 0 : {
569 : 0 : if ((_q131 == _q140 && ! TREE_SIDE_EFFECTS (_q131)) || (operand_equal_p (_q131, _q140, 0) && types_match (_q131, _q140)))
570 : : {
571 : 0 : switch (TREE_CODE (_q121))
572 : : {
573 : 0 : case INTEGER_CST:
574 : 0 : {
575 : 0 : if ((_q111 == _q120 && ! TREE_SIDE_EFFECTS (_q111)) || (operand_equal_p (_q111, _q120, 0) && types_match (_q111, _q120)))
576 : : {
577 : 0 : switch (TREE_CODE (_q101))
578 : : {
579 : 0 : case INTEGER_CST:
580 : 0 : {
581 : 0 : if ((_q91 == _q100 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q100, 0) && types_match (_q91, _q100)))
582 : : {
583 : 0 : switch (TREE_CODE (_q81))
584 : : {
585 : 0 : case INTEGER_CST:
586 : 0 : {
587 : 0 : if ((_q71 == _q80 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q80, 0) && types_match (_q71, _q80)))
588 : : {
589 : 0 : switch (TREE_CODE (_q61))
590 : : {
591 : 0 : case INTEGER_CST:
592 : 0 : {
593 : 0 : if ((_q51 == _q60 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q60, 0) && types_match (_q51, _q60)))
594 : : {
595 : 0 : switch (TREE_CODE (_q41))
596 : : {
597 : 0 : case INTEGER_CST:
598 : 0 : {
599 : 0 : if ((_q31 == _q40 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _q40, 0) && types_match (_q31, _q40)))
600 : : {
601 : 0 : switch (TREE_CODE (_q21))
602 : : {
603 : 0 : case INTEGER_CST:
604 : 0 : {
605 : 0 : switch (TREE_CODE (_p1))
606 : : {
607 : 0 : case INTEGER_CST:
608 : 0 : {
609 : 0 : {
610 : 0 : tree captures[14] ATTRIBUTE_UNUSED = { _q140, _q21, _p1, _q40, _q60, _q80, _q100, _q120, _q141, _q121, _q101, _q81, _q61, _q41 };
611 : 0 : if (INTEGRAL_TYPE_P (type)
612 : 0 : && TYPE_UNSIGNED (type)
613 : 0 : && TYPE_PRECISION (type) == 64
614 : 0 : && compare_tree_int (captures[8], 1) == 0
615 : 0 : && compare_tree_int (captures[9], 2) == 0
616 : 0 : && compare_tree_int (captures[10], 4) == 0
617 : 0 : && compare_tree_int (captures[11], 8) == 0
618 : 0 : && compare_tree_int (captures[12], 16) == 0
619 : 0 : && compare_tree_int (captures[13], 32) == 0
620 : : )
621 : : {
622 : 0 : {
623 : 0 : res_ops[0] = captures[0];
624 : 0 : res_ops[1] = captures[1];
625 : 0 : res_ops[2] = captures[2];
626 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 102, __FILE__, __LINE__, false);
627 : 0 : return true;
628 : : }
629 : : }
630 : : }
631 : 0 : break;
632 : : }
633 : : default:;
634 : : }
635 : : break;
636 : : }
637 : : default:;
638 : : }
639 : : }
640 : : break;
641 : : }
642 : : default:;
643 : : }
644 : : }
645 : : break;
646 : : }
647 : : default:;
648 : : }
649 : : }
650 : : break;
651 : : }
652 : : default:;
653 : : }
654 : : }
655 : : break;
656 : : }
657 : : default:;
658 : : }
659 : : }
660 : : break;
661 : : }
662 : : default:;
663 : : }
664 : : }
665 : : break;
666 : : }
667 : : default:;
668 : : }
669 : : break;
670 : : }
671 : : default:;
672 : : }
673 : : break;
674 : : }
675 : : default:;
676 : : }
677 : : break;
678 : : }
679 : : default:;
680 : : }
681 : : break;
682 : : }
683 : : default:;
684 : : }
685 : : break;
686 : : }
687 : : default:;
688 : : }
689 : : break;
690 : : }
691 : : default:;
692 : : }
693 : : break;
694 : : }
695 : : default:;
696 : : }
697 : : break;
698 : : }
699 : : default:;
700 : : }
701 : : break;
702 : : }
703 : : default:;
704 : : }
705 : : break;
706 : : }
707 : : default:;
708 : : }
709 : : break;
710 : : }
711 : : default:;
712 : : }
713 : : break;
714 : : }
715 : : default:;
716 : : }
717 : : break;
718 : : }
719 : : default:;
720 : : }
721 : : break;
722 : : }
723 : : default:;
724 : : }
725 : : return false;
726 : : }
727 : :
728 : : tree
729 : 496 : generic_simplify_11 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
730 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
731 : : const enum tree_code ARG_UNUSED (op))
732 : : {
733 : 496 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
734 : 496 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[1]))
735 : 496 : && tree_nop_conversion_p (type, TREE_TYPE (captures[4]))
736 : 992 : && (wi::to_wide (captures[2]) & wi::to_wide (captures[5])) == 0
737 : : )
738 : : {
739 : 101 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail258;
740 : 101 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail258;
741 : 101 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail258;
742 : 101 : {
743 : 101 : tree res_op0;
744 : 101 : {
745 : 101 : tree _o1[1], _r1;
746 : 101 : _o1[0] = captures[0];
747 : 101 : if (TREE_TYPE (_o1[0]) != type)
748 : : {
749 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
750 : : }
751 : : else
752 : : _r1 = _o1[0];
753 : 101 : res_op0 = _r1;
754 : : }
755 : 101 : tree res_op1;
756 : 101 : {
757 : 101 : tree _o1[1], _r1;
758 : 101 : _o1[0] = captures[3];
759 : 101 : if (TREE_TYPE (_o1[0]) != type)
760 : : {
761 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
762 : : }
763 : : else
764 : : _r1 = _o1[0];
765 : 101 : res_op1 = _r1;
766 : : }
767 : 101 : tree _r;
768 : 101 : _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
769 : 101 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 121, __FILE__, __LINE__, true);
770 : 101 : return _r;
771 : : }
772 : : next_after_fail258:;
773 : : }
774 : : return NULL_TREE;
775 : : }
776 : :
777 : : tree
778 : 24 : generic_simplify_16 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
779 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
780 : : const enum tree_code ARG_UNUSED (op),
781 : : const enum tree_code ARG_UNUSED (cmp),
782 : : const enum tree_code ARG_UNUSED (icmp))
783 : : {
784 : 24 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
785 : 24 : if (invert_tree_comparison (cmp, HONOR_NANS (captures[2])) == icmp
786 : : )
787 : : {
788 : 24 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail263;
789 : 24 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail263;
790 : 24 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail263;
791 : 24 : {
792 : 24 : tree res_op0;
793 : 24 : res_op0 = captures[1];
794 : 24 : tree res_op1;
795 : 24 : res_op1 = captures[4];
796 : 24 : tree res_op2;
797 : 24 : res_op2 = captures[7];
798 : 24 : tree _r;
799 : 24 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
800 : 24 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 126, __FILE__, __LINE__, true);
801 : 24 : return _r;
802 : : }
803 : : next_after_fail263:;
804 : : }
805 : : return NULL_TREE;
806 : : }
807 : :
808 : : tree
809 : 3035203 : generic_simplify_17 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
810 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
811 : : const enum tree_code ARG_UNUSED (inner_op),
812 : : const enum tree_code ARG_UNUSED (neg_inner_op),
813 : : const enum tree_code ARG_UNUSED (outer_op))
814 : : {
815 : 3035203 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
816 : 3035203 : if (!TYPE_SATURATING (type)
817 : : )
818 : : {
819 : 3035203 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
820 : 6070156 : && !FIXED_POINT_TYPE_P (type)
821 : : )
822 : : {
823 : 3034953 : if (!ANY_INTEGRAL_TYPE_P (type) || TYPE_OVERFLOW_WRAPS (type)
824 : : )
825 : : {
826 : 2009876 : if (!CONSTANT_CLASS_P (captures[0])
827 : : )
828 : : {
829 : 2009869 : if (outer_op == PLUS_EXPR
830 : : )
831 : : {
832 : 2009869 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail264;
833 : 2009869 : {
834 : 2009869 : tree res_op0;
835 : 2009869 : {
836 : 2009869 : tree _o1[1], _r1;
837 : 2009869 : _o1[0] = captures[0];
838 : 2009869 : if (TREE_TYPE (_o1[0]) != type)
839 : : {
840 : 828944 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
841 : : }
842 : : else
843 : : _r1 = _o1[0];
844 : 2009869 : res_op0 = _r1;
845 : : }
846 : 2009869 : tree res_op1;
847 : 2009869 : {
848 : 2009869 : tree _o1[2], _r1;
849 : 2009869 : _o1[0] = captures[2];
850 : 2009869 : {
851 : 2009869 : tree _o2[1], _r2;
852 : 2009869 : _o2[0] = captures[1];
853 : 2009869 : if (TREE_TYPE (_o2[0]) != type)
854 : : {
855 : 823489 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o2[0]);
856 : : }
857 : : else
858 : : _r2 = _o2[0];
859 : 2009869 : _o1[1] = _r2;
860 : : }
861 : 2009869 : _r1 = fold_build2_loc (loc, inner_op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
862 : 2009869 : if (EXPR_P (_r1))
863 : 0 : goto next_after_fail264;
864 : 2009869 : res_op1 = _r1;
865 : : }
866 : 2009869 : tree _r;
867 : 2009869 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
868 : 2009869 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 127, __FILE__, __LINE__, true);
869 : 2009869 : return _r;
870 : : }
871 : : next_after_fail264:;
872 : : }
873 : : else
874 : : {
875 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail265;
876 : 0 : {
877 : 0 : tree res_op0;
878 : 0 : {
879 : 0 : tree _o1[1], _r1;
880 : 0 : _o1[0] = captures[0];
881 : 0 : if (TREE_TYPE (_o1[0]) != type)
882 : : {
883 : 0 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
884 : : }
885 : : else
886 : : _r1 = _o1[0];
887 : 0 : res_op0 = _r1;
888 : : }
889 : 0 : tree res_op1;
890 : 0 : {
891 : 0 : tree _o1[2], _r1;
892 : 0 : _o1[0] = captures[2];
893 : 0 : {
894 : 0 : tree _o2[1], _r2;
895 : 0 : _o2[0] = captures[1];
896 : 0 : if (TREE_TYPE (_o2[0]) != type)
897 : : {
898 : 0 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o2[0]);
899 : : }
900 : : else
901 : : _r2 = _o2[0];
902 : 0 : _o1[1] = _r2;
903 : : }
904 : 0 : _r1 = fold_build2_loc (loc, neg_inner_op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
905 : 0 : if (EXPR_P (_r1))
906 : 0 : goto next_after_fail265;
907 : 0 : res_op1 = _r1;
908 : : }
909 : 0 : tree _r;
910 : 0 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
911 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 128, __FILE__, __LINE__, true);
912 : 0 : return _r;
913 : : }
914 : : next_after_fail265:;
915 : : }
916 : : }
917 : : }
918 : : else
919 : : {
920 : 2050154 : if (!ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
921 : 2050154 : || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[0]))
922 : : )
923 : : {
924 : 233038 : if (outer_op == PLUS_EXPR
925 : : )
926 : : {
927 : 233038 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail266;
928 : 233038 : {
929 : 233038 : tree res_op0;
930 : 233038 : {
931 : 233038 : tree _o1[2], _r1;
932 : 233038 : _o1[0] = captures[0];
933 : 233038 : {
934 : 233038 : tree _o2[2], _r2;
935 : 233038 : {
936 : 233038 : tree _o3[1], _r3;
937 : 233038 : _o3[0] = captures[2];
938 : 233038 : if (TREE_TYPE (_o3[0]) != TREE_TYPE (_o1[0]))
939 : : {
940 : 233038 : _r3 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, TREE_TYPE (_o1[0]), _o3[0]);
941 : : }
942 : : else
943 : : _r3 = _o3[0];
944 : 233038 : _o2[0] = _r3;
945 : : }
946 : 233038 : _o2[1] = captures[1];
947 : 233038 : _r2 = fold_build2_loc (loc, inner_op, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
948 : 233038 : if (EXPR_P (_r2))
949 : 0 : goto next_after_fail266;
950 : 233038 : _o1[1] = _r2;
951 : : }
952 : 233038 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
953 : 233038 : res_op0 = _r1;
954 : : }
955 : 233038 : tree _r;
956 : 233038 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
957 : 233038 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 129, __FILE__, __LINE__, true);
958 : 233038 : return _r;
959 : : }
960 : : next_after_fail266:;
961 : : }
962 : : else
963 : : {
964 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail267;
965 : 0 : {
966 : 0 : tree res_op0;
967 : 0 : {
968 : 0 : tree _o1[2], _r1;
969 : 0 : _o1[0] = captures[0];
970 : 0 : {
971 : 0 : tree _o2[2], _r2;
972 : 0 : {
973 : 0 : tree _o3[1], _r3;
974 : 0 : _o3[0] = captures[2];
975 : 0 : if (TREE_TYPE (_o3[0]) != TREE_TYPE (_o1[0]))
976 : : {
977 : 0 : _r3 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, TREE_TYPE (_o1[0]), _o3[0]);
978 : : }
979 : : else
980 : : _r3 = _o3[0];
981 : 0 : _o2[0] = _r3;
982 : : }
983 : 0 : _o2[1] = captures[1];
984 : 0 : _r2 = fold_build2_loc (loc, neg_inner_op, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
985 : 0 : if (EXPR_P (_r2))
986 : 0 : goto next_after_fail267;
987 : 0 : _o1[1] = _r2;
988 : : }
989 : 0 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
990 : 0 : res_op0 = _r1;
991 : : }
992 : 0 : tree _r;
993 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
994 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 130, __FILE__, __LINE__, true);
995 : 0 : return _r;
996 : : }
997 : : next_after_fail267:;
998 : : }
999 : : }
1000 : : else
1001 : : {
1002 : 792039 : if (types_match (type, captures[0]) && !TYPE_OVERFLOW_SANITIZED (type)
1003 : : )
1004 : : {
1005 : 790860 : {
1006 : 790860 : tree cst = const_binop (outer_op == inner_op
1007 : : ? PLUS_EXPR : MINUS_EXPR,
1008 : : type, captures[1], captures[2]);
1009 : 790860 : if (cst
1010 : : )
1011 : : {
1012 : 790860 : if (INTEGRAL_TYPE_P (type) && !TREE_OVERFLOW (cst)
1013 : : )
1014 : : {
1015 : 790846 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail268;
1016 : 790846 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail268;
1017 : 790846 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail268;
1018 : 790846 : {
1019 : 790846 : tree res_op0;
1020 : 790846 : res_op0 = captures[0];
1021 : 790846 : tree res_op1;
1022 : 790846 : res_op1 = cst;
1023 : 790846 : tree _r;
1024 : 790846 : _r = fold_build2_loc (loc, inner_op, type, res_op0, res_op1);
1025 : 790846 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 131, __FILE__, __LINE__, true);
1026 : 790846 : return _r;
1027 : : }
1028 : : next_after_fail268:;
1029 : : }
1030 : : else
1031 : : {
1032 : 28 : if (INTEGRAL_TYPE_P (type)
1033 : 28 : && wi::to_wide (cst) == wi::min_value (type)
1034 : : )
1035 : : {
1036 : 7 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail269;
1037 : 7 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail269;
1038 : 7 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail269;
1039 : 7 : {
1040 : 7 : tree res_op0;
1041 : 7 : res_op0 = captures[0];
1042 : 7 : tree res_op1;
1043 : 7 : res_op1 = wide_int_to_tree (type, wi::to_wide (cst));
1044 : 7 : tree _r;
1045 : 7 : _r = fold_build2_loc (loc, neg_inner_op, type, res_op0, res_op1);
1046 : 7 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 132, __FILE__, __LINE__, true);
1047 : 7 : return _r;
1048 : : }
1049 : : next_after_fail269:;
1050 : : }
1051 : : else
1052 : : {
1053 : 7 : {
1054 : 7 : tree utype = unsigned_type_for (type);
1055 : 7 : if (utype
1056 : : )
1057 : : {
1058 : 7 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail270;
1059 : 7 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail270;
1060 : 7 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail270;
1061 : 7 : {
1062 : 7 : tree res_op0;
1063 : 7 : {
1064 : 7 : tree _o1[2], _r1;
1065 : 7 : {
1066 : 7 : tree _o2[1], _r2;
1067 : 7 : _o2[0] = captures[0];
1068 : 7 : if (TREE_TYPE (_o2[0]) != utype)
1069 : : {
1070 : 7 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, utype, _o2[0]);
1071 : : }
1072 : : else
1073 : : _r2 = _o2[0];
1074 : 7 : _o1[0] = _r2;
1075 : : }
1076 : 7 : {
1077 : 7 : tree _o2[1], _r2;
1078 : 7 : _o2[0] = TREE_OVERFLOW (cst)
1079 : 7 : ? drop_tree_overflow (cst) : cst;
1080 : 7 : if (TREE_TYPE (_o2[0]) != utype)
1081 : : {
1082 : 7 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, utype, _o2[0]);
1083 : : }
1084 : : else
1085 : : _r2 = _o2[0];
1086 : 7 : _o1[1] = _r2;
1087 : : }
1088 : 7 : _r1 = fold_build2_loc (loc, inner_op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1089 : 7 : res_op0 = _r1;
1090 : : }
1091 : 7 : tree _r;
1092 : 7 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
1093 : 7 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 133, __FILE__, __LINE__, true);
1094 : 7 : return _r;
1095 : : }
1096 : : next_after_fail270:;
1097 : : }
1098 : : }
1099 : : }
1100 : : }
1101 : : }
1102 : : }
1103 : : }
1104 : : }
1105 : : }
1106 : : }
1107 : : }
1108 : : return NULL_TREE;
1109 : : }
1110 : :
1111 : : tree
1112 : 0 : generic_simplify_39 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1113 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1114 : : const enum tree_code ARG_UNUSED (op))
1115 : : {
1116 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1117 : 0 : if (VECTOR_FLOAT_TYPE_P (type)
1118 : 0 : && TYPE_VECTOR_SUBPARTS (type).is_constant ()
1119 : : )
1120 : : {
1121 : 0 : {
1122 : 0 : tree perm_cst = captures[1];
1123 : 0 : vec_perm_builder builder;
1124 : 0 : bool full_perm_p = false;
1125 : 0 : if (tree_to_vec_perm_builder (&builder, perm_cst))
1126 : : {
1127 : 0 : unsigned HOST_WIDE_INT nelts;
1128 : 0 : nelts = TYPE_VECTOR_SUBPARTS (type).to_constant ();
1129 : 0 : vec_perm_indices sel (builder, 1, nelts);
1130 : 0 : if (sel.encoding ().encoded_full_vector_p ())
1131 : : {
1132 : 0 : auto_sbitmap seen (nelts);
1133 : 0 : bitmap_clear (seen);
1134 : 0 : unsigned HOST_WIDE_INT count = 0, i;
1135 : 0 : for (i = 0; i < nelts; i++)
1136 : : {
1137 : 0 : if (!bitmap_set_bit (seen, sel[i].to_constant ()))
1138 : : break;
1139 : 0 : count++;
1140 : : }
1141 : 0 : full_perm_p = count == nelts;
1142 : 0 : }
1143 : 0 : }
1144 : 0 : if (full_perm_p
1145 : : )
1146 : : {
1147 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail296;
1148 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail296;
1149 : 0 : {
1150 : 0 : tree res_op0;
1151 : 0 : {
1152 : 0 : tree _o1[2], _r1;
1153 : 0 : _o1[0] = captures[0];
1154 : 0 : _o1[1] = captures[2];
1155 : 0 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1156 : 0 : captures[3] = _r1;
1157 : : }
1158 : 0 : res_op0 = unshare_expr (captures[3]);
1159 : 0 : tree res_op1;
1160 : 0 : res_op1 = captures[3];
1161 : 0 : tree res_op2;
1162 : 0 : res_op2 = captures[1];
1163 : 0 : tree _r;
1164 : 0 : _r = fold_build3_loc (loc, VEC_PERM_EXPR, type, res_op0, res_op1, res_op2);
1165 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 159, __FILE__, __LINE__, true);
1166 : 0 : return _r;
1167 : : }
1168 : 0 : next_after_fail296:;
1169 : : }
1170 : 0 : }
1171 : : }
1172 : : return NULL_TREE;
1173 : : }
1174 : :
1175 : : tree
1176 : 186 : generic_simplify_51 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1177 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1178 : : {
1179 : 186 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1180 : 186 : if (!TYPE_SATURATING (type)
1181 : : )
1182 : : {
1183 : 186 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
1184 : 372 : && !FIXED_POINT_TYPE_P (type)
1185 : : )
1186 : : {
1187 : 0 : if (!ANY_INTEGRAL_TYPE_P (type)
1188 : 186 : || TYPE_OVERFLOW_WRAPS (type)
1189 : : )
1190 : : {
1191 : 110 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail308;
1192 : 110 : {
1193 : 110 : tree res_op0;
1194 : 110 : {
1195 : 110 : tree _o1[1], _r1;
1196 : 110 : _o1[0] = captures[1];
1197 : 110 : if (TREE_TYPE (_o1[0]) != type)
1198 : : {
1199 : 0 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
1200 : : }
1201 : : else
1202 : : _r1 = _o1[0];
1203 : 110 : res_op0 = _r1;
1204 : : }
1205 : 110 : tree _r;
1206 : 110 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
1207 : 110 : if (TREE_SIDE_EFFECTS (captures[0]))
1208 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1209 : 110 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 170, __FILE__, __LINE__, true);
1210 : 110 : return _r;
1211 : : }
1212 : 0 : next_after_fail308:;
1213 : : }
1214 : : else
1215 : : {
1216 : 76 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail309;
1217 : 76 : {
1218 : 76 : tree res_op0;
1219 : 76 : {
1220 : 76 : tree _o1[1], _r1;
1221 : 76 : _o1[0] = captures[1];
1222 : 76 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
1223 : 76 : res_op0 = _r1;
1224 : : }
1225 : 76 : tree _r;
1226 : 76 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
1227 : 76 : if (TREE_SIDE_EFFECTS (captures[0]))
1228 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1229 : 76 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 171, __FILE__, __LINE__, true);
1230 : 76 : return _r;
1231 : : }
1232 : 0 : next_after_fail309:;
1233 : : }
1234 : : }
1235 : : }
1236 : : return NULL_TREE;
1237 : : }
1238 : :
1239 : : tree
1240 : 0 : generic_simplify_64 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1241 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1242 : : {
1243 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1244 : 0 : if (TREE_CODE (captures[1]) == SSA_NAME && num_imm_uses (captures[1]) == 2
1245 : : )
1246 : : {
1247 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail327;
1248 : 0 : {
1249 : 0 : if (! tree_invariant_p (captures[2])) goto next_after_fail327;
1250 : 0 : tree res_op0;
1251 : 0 : {
1252 : 0 : tree _o1[2], _r1;
1253 : 0 : {
1254 : 0 : tree _o2[3], _r2;
1255 : 0 : _o2[0] = unshare_expr (captures[2]);
1256 : 0 : _o2[1] = captures[2];
1257 : 0 : _o2[2] = captures[4];
1258 : 0 : _r2 = fold_build3_loc (loc, VEC_PERM_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1], _o2[2]);
1259 : 0 : _o1[0] = _r2;
1260 : : }
1261 : 0 : _o1[1] = captures[3];
1262 : 0 : _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1263 : 0 : res_op0 = _r1;
1264 : : }
1265 : 0 : tree res_op1;
1266 : 0 : res_op1 = captures[5];
1267 : 0 : tree _r;
1268 : 0 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
1269 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 189, __FILE__, __LINE__, true);
1270 : 0 : return _r;
1271 : : }
1272 : : next_after_fail327:;
1273 : : }
1274 : : return NULL_TREE;
1275 : : }
1276 : :
1277 : : tree
1278 : 6447 : generic_simplify_71 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1279 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1280 : : {
1281 : 6447 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1282 : 6447 : {
1283 : 6447 : bool wascmp;
1284 : 6447 : if (bitwise_inverted_equal_p (captures[0], captures[2], wascmp)
1285 : 6447 : && (!wascmp || element_precision (type) == 1)
1286 : : )
1287 : : {
1288 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail334;
1289 : 1 : {
1290 : 1 : tree res_op0;
1291 : 1 : res_op0 = captures[0];
1292 : 1 : tree res_op1;
1293 : 1 : {
1294 : 1 : tree _o1[1], _r1;
1295 : 1 : _o1[0] = captures[3];
1296 : 1 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
1297 : 1 : res_op1 = _r1;
1298 : : }
1299 : 1 : tree _r;
1300 : 1 : _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
1301 : 1 : if (TREE_SIDE_EFFECTS (captures[2]))
1302 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1303 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 196, __FILE__, __LINE__, true);
1304 : 1 : return _r;
1305 : : }
1306 : 0 : next_after_fail334:;
1307 : : }
1308 : : }
1309 : 6446 : return NULL_TREE;
1310 : : }
1311 : :
1312 : : tree
1313 : 0 : generic_simplify_77 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1314 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1315 : : const enum tree_code ARG_UNUSED (bit_op))
1316 : : {
1317 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1318 : 0 : if (bit_op == BIT_AND_EXPR
1319 : : )
1320 : : {
1321 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail342;
1322 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail342;
1323 : 0 : {
1324 : 0 : tree _r;
1325 : 0 : _r = build_zero_cst (type);
1326 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 201, __FILE__, __LINE__, true);
1327 : 0 : return _r;
1328 : : }
1329 : : next_after_fail342:;
1330 : : }
1331 : : else
1332 : : {
1333 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail343;
1334 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail343;
1335 : 0 : {
1336 : 0 : tree _r;
1337 : 0 : _r = build_minus_one_cst (type);
1338 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 202, __FILE__, __LINE__, true);
1339 : 0 : return _r;
1340 : : }
1341 : : next_after_fail343:;
1342 : : }
1343 : : return NULL_TREE;
1344 : : }
1345 : :
1346 : : tree
1347 : 15 : generic_simplify_90 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1348 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1349 : : const enum tree_code ARG_UNUSED (bitop))
1350 : : {
1351 : 15 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1352 : 15 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail357;
1353 : 15 : {
1354 : 15 : tree res_op0;
1355 : 15 : res_op0 = captures[0];
1356 : 15 : tree res_op1;
1357 : 15 : {
1358 : 15 : tree _o1[1], _r1;
1359 : 15 : _o1[0] = captures[2];
1360 : 15 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
1361 : 15 : res_op1 = _r1;
1362 : : }
1363 : 15 : tree _r;
1364 : 15 : _r = fold_build2_loc (loc, bitop, type, res_op0, res_op1);
1365 : 15 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 210, __FILE__, __LINE__, true);
1366 : : return _r;
1367 : : }
1368 : 0 : next_after_fail357:;
1369 : 0 : return NULL_TREE;
1370 : : }
1371 : :
1372 : : tree
1373 : 0 : generic_simplify_99 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1374 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1375 : : const enum tree_code ARG_UNUSED (op))
1376 : : {
1377 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1378 : 0 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[3]))
1379 : 0 : && tree_nop_conversion_p (type, TREE_TYPE (captures[6]))
1380 : : )
1381 : : {
1382 : 0 : if (single_use (captures[4]) && single_use (captures[5])
1383 : : )
1384 : : {
1385 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail366;
1386 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail366;
1387 : 0 : {
1388 : 0 : tree res_op0;
1389 : 0 : res_op0 = captures[0];
1390 : 0 : tree res_op1;
1391 : 0 : {
1392 : 0 : tree _o1[1], _r1;
1393 : 0 : _o1[0] = captures[6];
1394 : 0 : if (TREE_TYPE (_o1[0]) != type)
1395 : : {
1396 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1397 : : }
1398 : : else
1399 : : _r1 = _o1[0];
1400 : 0 : res_op1 = _r1;
1401 : : }
1402 : 0 : tree _r;
1403 : 0 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
1404 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 217, __FILE__, __LINE__, true);
1405 : 0 : return _r;
1406 : : }
1407 : : next_after_fail366:;
1408 : : }
1409 : : else
1410 : : {
1411 : : if (single_use (captures[0]) && single_use (captures[1])
1412 : : )
1413 : : {
1414 : : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail367;
1415 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail367;
1416 : : {
1417 : : tree res_op0;
1418 : : {
1419 : : tree _o1[1], _r1;
1420 : : _o1[0] = captures[3];
1421 : : if (TREE_TYPE (_o1[0]) != type)
1422 : : {
1423 : : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1424 : : }
1425 : : else
1426 : : _r1 = _o1[0];
1427 : : res_op0 = _r1;
1428 : : }
1429 : : tree res_op1;
1430 : : res_op1 = captures[4];
1431 : : tree _r;
1432 : : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
1433 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 218, __FILE__, __LINE__, true);
1434 : : return _r;
1435 : : }
1436 : : next_after_fail367:;
1437 : : }
1438 : : }
1439 : : }
1440 : : return NULL_TREE;
1441 : : }
1442 : :
1443 : : tree
1444 : 82 : generic_simplify_109 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1445 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1446 : : const enum tree_code ARG_UNUSED (op))
1447 : : {
1448 : 82 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1449 : 82 : if (bitwise_equal_p (captures[4], captures[7])
1450 : : )
1451 : : {
1452 : 16 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail380;
1453 : 16 : {
1454 : 16 : tree res_op0;
1455 : 16 : {
1456 : 16 : tree _o1[2], _r1;
1457 : 16 : {
1458 : 16 : tree _o2[2], _r2;
1459 : 16 : _o2[0] = captures[5];
1460 : 16 : {
1461 : 16 : tree _o3[1], _r3;
1462 : 16 : _o3[0] = captures[6];
1463 : 16 : if (TREE_TYPE (_o3[0]) != TREE_TYPE (_o2[0]))
1464 : : {
1465 : 16 : _r3 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (_o2[0]), _o3[0]);
1466 : : }
1467 : : else
1468 : : _r3 = _o3[0];
1469 : 16 : _o2[1] = _r3;
1470 : : }
1471 : 16 : _r2 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
1472 : 16 : _o1[0] = _r2;
1473 : : }
1474 : 16 : {
1475 : 16 : tree _o2[1], _r2;
1476 : 16 : _o2[0] = captures[4];
1477 : 16 : if (TREE_TYPE (_o2[0]) != TREE_TYPE (_o1[0]))
1478 : : {
1479 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (_o1[0]), _o2[0]);
1480 : : }
1481 : : else
1482 : : _r2 = _o2[0];
1483 : 16 : _o1[1] = _r2;
1484 : : }
1485 : 16 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1486 : 16 : res_op0 = _r1;
1487 : : }
1488 : 16 : tree _r;
1489 : 16 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1490 : 16 : if (TREE_SIDE_EFFECTS (captures[7]))
1491 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[7]), _r);
1492 : 16 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 224, __FILE__, __LINE__, true);
1493 : 16 : return _r;
1494 : : }
1495 : 0 : next_after_fail380:;
1496 : : }
1497 : : return NULL_TREE;
1498 : : }
1499 : :
1500 : : tree
1501 : 0 : generic_simplify_121 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1502 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1503 : : const enum tree_code ARG_UNUSED (cmp),
1504 : : const enum tree_code ARG_UNUSED (icmp))
1505 : : {
1506 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1507 : 0 : if (INTEGRAL_TYPE_P (type)
1508 : 0 : && invert_tree_comparison (cmp, HONOR_NANS (captures[1])) == icmp
1509 : 0 : && canonicalize_math_after_vectorization_p ()
1510 : : )
1511 : : {
1512 : : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail395;
1513 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail395;
1514 : : {
1515 : : tree res_op0;
1516 : : {
1517 : : tree _o1[3], _r1;
1518 : : _o1[0] = captures[0];
1519 : : _o1[1] = captures[3];
1520 : : _o1[2] = captures[5];
1521 : : _r1 = fold_build3_loc (loc, COND_EXPR, TREE_TYPE (_o1[1]), _o1[0], _o1[1], _o1[2]);
1522 : : res_op0 = _r1;
1523 : : }
1524 : : tree res_op1;
1525 : : res_op1 = build_one_cst (type);
1526 : : tree _r;
1527 : : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
1528 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 234, __FILE__, __LINE__, true);
1529 : : return _r;
1530 : : }
1531 : 0 : next_after_fail395:;
1532 : : }
1533 : 0 : return NULL_TREE;
1534 : : }
1535 : :
1536 : : tree
1537 : 0 : generic_simplify_131 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1538 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1539 : : const enum tree_code ARG_UNUSED (cmp))
1540 : : {
1541 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1542 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail427;
1543 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail427;
1544 : 0 : {
1545 : 0 : tree res_op0;
1546 : 0 : {
1547 : 0 : tree _o1[2], _r1;
1548 : 0 : _o1[0] = build_zero_cst (TREE_TYPE (captures[0]));
1549 : 0 : _o1[1] = captures[3];
1550 : 0 : _r1 = fold_build2_loc (loc, cmp, type, _o1[0], _o1[1]);
1551 : 0 : res_op0 = _r1;
1552 : : }
1553 : 0 : tree res_op1;
1554 : 0 : res_op1 = captures[4];
1555 : 0 : tree _r;
1556 : 0 : _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
1557 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
1558 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1559 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 259, __FILE__, __LINE__, true);
1560 : : return _r;
1561 : : }
1562 : : next_after_fail427:;
1563 : : return NULL_TREE;
1564 : : }
1565 : :
1566 : : tree
1567 : 0 : generic_simplify_136 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1568 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1569 : : const enum tree_code ARG_UNUSED (eqne))
1570 : : {
1571 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1572 : 0 : if (eqne == EQ_EXPR
1573 : : )
1574 : : {
1575 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail432;
1576 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail432;
1577 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail432;
1578 : 0 : {
1579 : 0 : tree _r;
1580 : 0 : _r = captures[0];
1581 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 262, __FILE__, __LINE__, true);
1582 : 0 : return _r;
1583 : : }
1584 : : next_after_fail432:;
1585 : : }
1586 : : else
1587 : : {
1588 : 0 : if (eqne == NE_EXPR
1589 : : )
1590 : : {
1591 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail433;
1592 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail433;
1593 : 0 : {
1594 : 0 : tree _r;
1595 : 0 : _r = constant_boolean_node (true, type);
1596 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
1597 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1598 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 263, __FILE__, __LINE__, true);
1599 : 0 : return _r;
1600 : : }
1601 : : next_after_fail433:;
1602 : : }
1603 : : }
1604 : : return NULL_TREE;
1605 : : }
1606 : :
1607 : : tree
1608 : 19 : generic_simplify_143 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1609 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1610 : : const enum tree_code ARG_UNUSED (op))
1611 : : {
1612 : 19 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1613 : 38 : if (INTEGRAL_TYPE_P (type)
1614 : 19 : && operand_equal_p (captures[2], captures[6], 0)
1615 : 38 : && (tree_nonzero_bits (captures[0]) & tree_nonzero_bits (captures[4])) == 0
1616 : : )
1617 : : {
1618 : 0 : {
1619 : 0 : tree t = type;
1620 : 0 : if (!TYPE_OVERFLOW_WRAPS (t))
1621 : 0 : t = unsigned_type_for (t);
1622 : 0 : wide_int c = wi::add (wi::to_wide (captures[3]), wi::to_wide (captures[7]));
1623 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail453;
1624 : 0 : if (TREE_SIDE_EFFECTS (captures[7])) goto next_after_fail453;
1625 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail453;
1626 : 0 : {
1627 : 0 : tree res_op0;
1628 : 0 : {
1629 : 0 : tree _o1[2], _r1;
1630 : 0 : {
1631 : 0 : tree _o2[1], _r2;
1632 : 0 : _o2[0] = captures[2];
1633 : 0 : if (TREE_TYPE (_o2[0]) != t)
1634 : : {
1635 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, t, _o2[0]);
1636 : : }
1637 : : else
1638 : : _r2 = _o2[0];
1639 : 0 : _o1[0] = _r2;
1640 : : }
1641 : 0 : _o1[1] = wide_int_to_tree (t, c);
1642 : 0 : _r1 = fold_build2_loc (loc, MULT_EXPR, t, _o1[0], _o1[1]);
1643 : 0 : res_op0 = _r1;
1644 : : }
1645 : 0 : tree _r;
1646 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1647 : 0 : if (TREE_SIDE_EFFECTS (captures[6]))
1648 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[6]), _r);
1649 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 227, __FILE__, __LINE__, true);
1650 : 0 : return _r;
1651 : : }
1652 : 0 : next_after_fail453:;
1653 : 0 : }
1654 : : }
1655 : : return NULL_TREE;
1656 : : }
1657 : :
1658 : : tree
1659 : 495 : generic_simplify_147 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1660 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1661 : : const enum tree_code ARG_UNUSED (op))
1662 : : {
1663 : 495 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1664 : 990 : if (INTEGRAL_TYPE_P (type)
1665 : 493 : && tree_int_cst_sgn (captures[2]) > 0
1666 : 1976 : && (tree_nonzero_bits (captures[0]) & tree_nonzero_bits (captures[1])) == 0
1667 : : )
1668 : : {
1669 : 6 : {
1670 : 6 : tree t = type;
1671 : 6 : if (!TYPE_OVERFLOW_WRAPS (t))
1672 : 6 : t = unsigned_type_for (t);
1673 : 6 : wide_int wone = wi::one (TYPE_PRECISION (t));
1674 : 6 : wide_int c = wi::add (wi::lshift (wone, wi::to_wide (captures[2])), wone);
1675 : 6 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail457;
1676 : 6 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail457;
1677 : 6 : {
1678 : 6 : tree res_op0;
1679 : 6 : {
1680 : 6 : tree _o1[2], _r1;
1681 : 6 : {
1682 : 6 : tree _o2[1], _r2;
1683 : 6 : _o2[0] = captures[1];
1684 : 6 : if (TREE_TYPE (_o2[0]) != t)
1685 : : {
1686 : 6 : _r2 = fold_build1_loc (loc, NOP_EXPR, t, _o2[0]);
1687 : : }
1688 : : else
1689 : : _r2 = _o2[0];
1690 : 6 : _o1[0] = _r2;
1691 : : }
1692 : 6 : _o1[1] = wide_int_to_tree (t, c);
1693 : 6 : _r1 = fold_build2_loc (loc, MULT_EXPR, t, _o1[0], _o1[1]);
1694 : 6 : res_op0 = _r1;
1695 : : }
1696 : 6 : tree _r;
1697 : 6 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1698 : 6 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 266, __FILE__, __LINE__, true);
1699 : 6 : return _r;
1700 : : }
1701 : 0 : next_after_fail457:;
1702 : 6 : }
1703 : : }
1704 : : return NULL_TREE;
1705 : : }
1706 : :
1707 : : tree
1708 : 196 : generic_simplify_154 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1709 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1710 : : {
1711 : 196 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1712 : 196 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail464;
1713 : 196 : {
1714 : 196 : if (! tree_invariant_p (captures[3])) goto next_after_fail464;
1715 : 15 : tree res_op0;
1716 : 15 : {
1717 : 15 : tree _o1[2], _r1;
1718 : 15 : _o1[0] = captures[2];
1719 : 15 : _o1[1] = unshare_expr (captures[3]);
1720 : 15 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1721 : 15 : res_op0 = _r1;
1722 : : }
1723 : 15 : tree res_op1;
1724 : 15 : {
1725 : 15 : tree _o1[2], _r1;
1726 : 15 : _o1[0] = captures[4];
1727 : 15 : _o1[1] = captures[3];
1728 : 15 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1729 : 15 : if (EXPR_P (_r1))
1730 : 14 : goto next_after_fail464;
1731 : 1 : res_op1 = _r1;
1732 : : }
1733 : 1 : tree _r;
1734 : 1 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
1735 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 272, __FILE__, __LINE__, true);
1736 : : return _r;
1737 : : }
1738 : : next_after_fail464:;
1739 : : return NULL_TREE;
1740 : : }
1741 : :
1742 : : tree
1743 : 10 : generic_simplify_163 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1744 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1745 : : {
1746 : 10 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1747 : 10 : if (element_precision (type) <= element_precision (TREE_TYPE (captures[0]))
1748 : 10 : && element_precision (type) <= element_precision (TREE_TYPE (captures[1]))
1749 : : )
1750 : : {
1751 : 10 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail473;
1752 : 10 : {
1753 : 10 : tree res_op0;
1754 : 10 : {
1755 : 10 : tree _o1[1], _r1;
1756 : 10 : _o1[0] = captures[0];
1757 : 10 : if (TREE_TYPE (_o1[0]) != type)
1758 : : {
1759 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1760 : : }
1761 : : else
1762 : : _r1 = _o1[0];
1763 : 10 : res_op0 = _r1;
1764 : : }
1765 : 10 : tree res_op1;
1766 : 10 : {
1767 : 10 : tree _o1[1], _r1;
1768 : 10 : _o1[0] = captures[1];
1769 : 10 : if (TREE_TYPE (_o1[0]) != type)
1770 : : {
1771 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1772 : : }
1773 : : else
1774 : : _r1 = _o1[0];
1775 : 10 : res_op1 = _r1;
1776 : : }
1777 : 10 : tree _r;
1778 : 10 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
1779 : 10 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 281, __FILE__, __LINE__, true);
1780 : 10 : return _r;
1781 : : }
1782 : 0 : next_after_fail473:;
1783 : : }
1784 : : return NULL_TREE;
1785 : : }
1786 : :
1787 : : tree
1788 : 64 : generic_simplify_170 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1789 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1790 : : const enum tree_code ARG_UNUSED (cmp),
1791 : : const enum tree_code ARG_UNUSED (icmp),
1792 : : const enum tree_code ARG_UNUSED (ncmp))
1793 : : {
1794 : 64 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1795 : 64 : {
1796 : 64 : enum tree_code ic = invert_tree_comparison
1797 : 64 : (cmp, HONOR_NANS (captures[0]));
1798 : 64 : if (ic == icmp
1799 : : )
1800 : : {
1801 : 64 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail480;
1802 : 64 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail480;
1803 : 64 : {
1804 : 64 : tree res_op0;
1805 : 64 : res_op0 = captures[0];
1806 : 64 : tree res_op1;
1807 : 64 : res_op1 = captures[1];
1808 : 64 : tree _r;
1809 : 64 : _r = fold_build2_loc (loc, icmp, type, res_op0, res_op1);
1810 : 64 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 287, __FILE__, __LINE__, true);
1811 : 64 : return _r;
1812 : : }
1813 : : next_after_fail480:;
1814 : : }
1815 : : else
1816 : : {
1817 : 0 : if (ic == ncmp
1818 : : )
1819 : : {
1820 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail481;
1821 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail481;
1822 : 0 : {
1823 : 0 : tree res_op0;
1824 : 0 : res_op0 = captures[0];
1825 : 0 : tree res_op1;
1826 : 0 : res_op1 = captures[1];
1827 : 0 : tree _r;
1828 : 0 : _r = fold_build2_loc (loc, ncmp, type, res_op0, res_op1);
1829 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 288, __FILE__, __LINE__, true);
1830 : 0 : return _r;
1831 : : }
1832 : : next_after_fail481:;
1833 : : }
1834 : : }
1835 : : }
1836 : : return NULL_TREE;
1837 : : }
1838 : :
1839 : : tree
1840 : 0 : generic_simplify_184 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1841 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1842 : : {
1843 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1844 : 0 : if (INTEGRAL_TYPE_P (type)
1845 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
1846 : 0 : && !TYPE_UNSIGNED (TREE_TYPE (captures[0]))
1847 : : )
1848 : : {
1849 : 0 : if (TYPE_UNSIGNED (type)
1850 : : )
1851 : : {
1852 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail497;
1853 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail497;
1854 : 0 : {
1855 : 0 : tree res_op0;
1856 : 0 : res_op0 = captures[0];
1857 : 0 : tree _r;
1858 : 0 : _r = fold_build1_loc (loc, ABSU_EXPR, type, res_op0);
1859 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 299, __FILE__, __LINE__, true);
1860 : 0 : return _r;
1861 : : }
1862 : : next_after_fail497:;
1863 : : }
1864 : : else
1865 : : {
1866 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail498;
1867 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail498;
1868 : 0 : {
1869 : 0 : tree res_op0;
1870 : 0 : res_op0 = captures[0];
1871 : 0 : tree _r;
1872 : 0 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
1873 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 300, __FILE__, __LINE__, true);
1874 : 0 : return _r;
1875 : : }
1876 : : next_after_fail498:;
1877 : : }
1878 : : }
1879 : : return NULL_TREE;
1880 : : }
1881 : :
1882 : : tree
1883 : 8 : generic_simplify_194 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1884 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1885 : : const combined_fn ARG_UNUSED (POW))
1886 : : {
1887 : 8 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1888 : 8 : if (flag_unsafe_math_optimizations && canonicalize_math_p ()
1889 : : )
1890 : : {
1891 : 8 : if (!TREE_OVERFLOW (captures[2])
1892 : : )
1893 : : {
1894 : 8 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail509;
1895 : 8 : {
1896 : 8 : tree res_op0;
1897 : 8 : res_op0 = captures[0];
1898 : 8 : tree res_op1;
1899 : 8 : {
1900 : 8 : tree _o1[2], _r1;
1901 : 8 : _o1[0] = captures[2];
1902 : 8 : _o1[1] = build_one_cst (type);
1903 : 8 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1904 : 8 : res_op1 = _r1;
1905 : : }
1906 : 8 : tree _r;
1907 : 8 : _r = maybe_build_call_expr_loc (loc, POW, type, 2, res_op0, res_op1);
1908 : 8 : if (!_r)
1909 : 0 : goto next_after_fail509;
1910 : 8 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 310, __FILE__, __LINE__, true);
1911 : 8 : return _r;
1912 : : }
1913 : : next_after_fail509:;
1914 : : }
1915 : : }
1916 : : return NULL_TREE;
1917 : : }
1918 : :
1919 : : tree
1920 : 172 : generic_simplify_203 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1921 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1922 : : const enum tree_code ARG_UNUSED (op))
1923 : : {
1924 : 172 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1925 : 344 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
1926 : 344 : && (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[2]))
1927 : 172 : || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[2])))
1928 : : && (CONSTANT_CLASS_P (captures[2]) || (single_use (captures[1]) && single_use (captures[0])))
1929 : 172 : && tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
1930 : 516 : && tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[3]))
1931 : : )
1932 : : {
1933 : 172 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail518;
1934 : 172 : {
1935 : 172 : tree res_op0;
1936 : 172 : res_op0 = captures[2];
1937 : 172 : tree res_op1;
1938 : 172 : res_op1 = build_zero_cst (TREE_TYPE (captures[2]));
1939 : 172 : tree _r;
1940 : 172 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
1941 : 172 : if (TREE_SIDE_EFFECTS (captures[3]))
1942 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
1943 : 172 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 319, __FILE__, __LINE__, true);
1944 : 172 : return _r;
1945 : : }
1946 : 0 : next_after_fail518:;
1947 : : }
1948 : : return NULL_TREE;
1949 : : }
1950 : :
1951 : : tree
1952 : 5139 : generic_simplify_212 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1953 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1954 : : const enum tree_code ARG_UNUSED (op))
1955 : : {
1956 : 5139 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1957 : 5139 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail543;
1958 : 5139 : {
1959 : 5139 : tree res_op0;
1960 : 5139 : res_op0 = captures[1];
1961 : 5139 : tree res_op1;
1962 : 5139 : res_op1 = captures[2];
1963 : 5139 : tree _r;
1964 : 5139 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
1965 : 5139 : if (TREE_SIDE_EFFECTS (captures[0]))
1966 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1967 : 5139 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 343, __FILE__, __LINE__, true);
1968 : : return _r;
1969 : : }
1970 : 0 : next_after_fail543:;
1971 : 0 : return NULL_TREE;
1972 : : }
1973 : :
1974 : : tree
1975 : 61236 : generic_simplify_218 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1976 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1977 : : const enum tree_code ARG_UNUSED (neeq))
1978 : : {
1979 : 61236 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1980 : 61236 : {
1981 : 61236 : poly_int64 diff; tree inner_type = TREE_TYPE (captures[1]);
1982 : 61236 : if (ptr_difference_const (captures[2], captures[0], &diff)
1983 : : )
1984 : : {
1985 : 13078 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail549;
1986 : 13078 : {
1987 : 13078 : tree res_op0;
1988 : 13078 : res_op0 = build_int_cst_type (inner_type, diff);
1989 : 13078 : tree res_op1;
1990 : 13078 : res_op1 = captures[1];
1991 : 13078 : tree _r;
1992 : 13078 : _r = fold_build2_loc (loc, neeq, type, res_op0, res_op1);
1993 : 13078 : if (TREE_SIDE_EFFECTS (captures[0]))
1994 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1995 : 13078 : if (TREE_SIDE_EFFECTS (captures[2]))
1996 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1997 : 13078 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 348, __FILE__, __LINE__, true);
1998 : 13078 : return _r;
1999 : : }
2000 : 0 : next_after_fail549:;
2001 : : }
2002 : : }
2003 : 48158 : return NULL_TREE;
2004 : : }
2005 : :
2006 : : tree
2007 : 0 : generic_simplify_225 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2008 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2009 : : const enum tree_code ARG_UNUSED (cmp))
2010 : : {
2011 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2012 : 0 : if (wi::lt_p (wi::to_wide (captures[1]), wi::to_wide (captures[2]),
2013 : 0 : TYPE_SIGN (TREE_TYPE (captures[0])))
2014 : : )
2015 : : {
2016 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail556;
2017 : 0 : {
2018 : 0 : tree _r;
2019 : 0 : _r = constant_boolean_node (cmp == NE_EXPR, type);
2020 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
2021 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2022 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2023 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2024 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
2025 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2026 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 355, __FILE__, __LINE__, true);
2027 : 0 : return _r;
2028 : : }
2029 : 0 : next_after_fail556:;
2030 : : }
2031 : : else
2032 : : {
2033 : 0 : if (wi::gt_p (wi::to_wide (captures[1]), wi::to_wide (captures[2]),
2034 : 0 : TYPE_SIGN (TREE_TYPE (captures[0])))
2035 : : )
2036 : : {
2037 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail557;
2038 : 0 : {
2039 : 0 : tree res_op0;
2040 : 0 : res_op0 = captures[0];
2041 : 0 : tree res_op1;
2042 : 0 : res_op1 = captures[2];
2043 : 0 : tree _r;
2044 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2045 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2046 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2047 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 356, __FILE__, __LINE__, true);
2048 : 0 : return _r;
2049 : : }
2050 : 0 : next_after_fail557:;
2051 : : }
2052 : : }
2053 : : return NULL_TREE;
2054 : : }
2055 : :
2056 : : tree
2057 : 124 : generic_simplify_235 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2058 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2059 : : const enum tree_code ARG_UNUSED (rotate),
2060 : : const enum tree_code ARG_UNUSED (invrot),
2061 : : const enum tree_code ARG_UNUSED (cmp))
2062 : : {
2063 : 124 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2064 : 124 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail578;
2065 : 124 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail578;
2066 : 124 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail578;
2067 : 124 : {
2068 : 124 : tree res_op0;
2069 : 124 : res_op0 = captures[0];
2070 : 124 : tree res_op1;
2071 : 124 : res_op1 = const_binop (invrot, TREE_TYPE (captures[0]), captures[2], captures[1]);
2072 : 124 : tree _r;
2073 : 124 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2074 : 124 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 377, __FILE__, __LINE__, true);
2075 : : return _r;
2076 : : }
2077 : : next_after_fail578:;
2078 : : return NULL_TREE;
2079 : : }
2080 : :
2081 : : tree
2082 : 22 : generic_simplify_239 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2083 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2084 : : const enum tree_code ARG_UNUSED (cmp),
2085 : : const combined_fn ARG_UNUSED (bswap))
2086 : : {
2087 : 22 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2088 : 22 : {
2089 : 22 : tree ctype = TREE_TYPE (captures[1]);
2090 : 22 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail582;
2091 : 22 : {
2092 : 22 : tree res_op0;
2093 : 22 : {
2094 : 22 : tree _o1[1], _r1;
2095 : 22 : _o1[0] = captures[0];
2096 : 22 : if (TREE_TYPE (_o1[0]) != ctype)
2097 : : {
2098 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, ctype, _o1[0]);
2099 : : }
2100 : : else
2101 : : _r1 = _o1[0];
2102 : 22 : res_op0 = _r1;
2103 : : }
2104 : 22 : tree res_op1;
2105 : 22 : {
2106 : 22 : tree _o1[1], _r1;
2107 : 22 : _o1[0] = captures[1];
2108 : 22 : _r1 = maybe_build_call_expr_loc (loc, bswap, TREE_TYPE (_o1[0]), 1, _o1[0]);
2109 : 22 : if (!_r1)
2110 : 0 : goto next_after_fail582;
2111 : 22 : if (EXPR_P (_r1))
2112 : 22 : goto next_after_fail582;
2113 : 0 : res_op1 = _r1;
2114 : : }
2115 : 0 : tree _r;
2116 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2117 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 381, __FILE__, __LINE__, true);
2118 : : return _r;
2119 : : }
2120 : : next_after_fail582:;
2121 : : }
2122 : : return NULL_TREE;
2123 : : }
2124 : :
2125 : : tree
2126 : 0 : generic_simplify_248 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2127 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2128 : : const enum tree_code ARG_UNUSED (cmp))
2129 : : {
2130 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2131 : 0 : if (single_use (captures[1]) && single_use (captures[3])
2132 : : )
2133 : : {
2134 : 0 : {
2135 : 0 : tree otype = TREE_TYPE (captures[0]);
2136 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail597;
2137 : 0 : {
2138 : 0 : tree res_op0;
2139 : 0 : {
2140 : 0 : tree _o1[1], _r1;
2141 : 0 : _o1[0] = captures[4];
2142 : 0 : if (TREE_TYPE (_o1[0]) != otype)
2143 : : {
2144 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, otype, _o1[0]);
2145 : : }
2146 : : else
2147 : : _r1 = _o1[0];
2148 : 0 : res_op0 = _r1;
2149 : : }
2150 : 0 : tree res_op1;
2151 : 0 : {
2152 : 0 : tree _o1[1], _r1;
2153 : 0 : _o1[0] = captures[2];
2154 : 0 : if (TREE_TYPE (_o1[0]) != otype)
2155 : : {
2156 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, otype, _o1[0]);
2157 : : }
2158 : : else
2159 : : _r1 = _o1[0];
2160 : 0 : res_op1 = _r1;
2161 : : }
2162 : 0 : tree _r;
2163 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2164 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 395, __FILE__, __LINE__, true);
2165 : 0 : return _r;
2166 : : }
2167 : 0 : next_after_fail597:;
2168 : : }
2169 : : }
2170 : 0 : return NULL_TREE;
2171 : : }
2172 : :
2173 : : tree
2174 : 20478 : generic_simplify_253 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2175 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2176 : : const enum tree_code ARG_UNUSED (cmp))
2177 : : {
2178 : 20478 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2179 : 20478 : if (flag_associative_math
2180 : : )
2181 : : {
2182 : 13 : {
2183 : 13 : tree tem = const_binop (MINUS_EXPR, TREE_TYPE (captures[1]), captures[0], captures[2]);
2184 : 13 : if (tem && !TREE_OVERFLOW (tem)
2185 : : )
2186 : : {
2187 : 13 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail616;
2188 : 13 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail616;
2189 : 13 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail616;
2190 : 13 : {
2191 : 13 : tree res_op0;
2192 : 13 : res_op0 = tem;
2193 : 13 : tree res_op1;
2194 : 13 : res_op1 = captures[1];
2195 : 13 : tree _r;
2196 : 13 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2197 : 13 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 413, __FILE__, __LINE__, true);
2198 : 13 : return _r;
2199 : : }
2200 : : next_after_fail616:;
2201 : : }
2202 : : }
2203 : : }
2204 : : return NULL_TREE;
2205 : : }
2206 : :
2207 : : tree
2208 : 69 : generic_simplify_258 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2209 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2210 : : const enum tree_code ARG_UNUSED (cmp))
2211 : : {
2212 : 69 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2213 : 69 : if (!integer_zerop (captures[1])
2214 : : )
2215 : : {
2216 : 69 : if (wi::to_wide (captures[2]) == 0
2217 : : )
2218 : : {
2219 : 22 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail646;
2220 : 22 : {
2221 : 22 : tree res_op0;
2222 : 22 : res_op0 = captures[0];
2223 : 22 : tree res_op1;
2224 : 22 : res_op1 = captures[2];
2225 : 22 : tree _r;
2226 : 22 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2227 : 22 : if (TREE_SIDE_EFFECTS (captures[1]))
2228 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2229 : 22 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 443, __FILE__, __LINE__, true);
2230 : 22 : return _r;
2231 : : }
2232 : 0 : next_after_fail646:;
2233 : : }
2234 : : else
2235 : : {
2236 : 47 : if (TREE_CODE (captures[1]) == INTEGER_CST
2237 : : )
2238 : : {
2239 : 47 : {
2240 : 47 : wi::overflow_type ovf;
2241 : 47 : wide_int prod = wi::mul (wi::to_wide (captures[2]), wi::to_wide (captures[1]),
2242 : 94 : TYPE_SIGN (TREE_TYPE (captures[1])), &ovf);
2243 : 47 : if (ovf
2244 : : )
2245 : : {
2246 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail647;
2247 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail647;
2248 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail647;
2249 : 0 : {
2250 : 0 : tree _r;
2251 : 0 : _r = constant_boolean_node (cmp == NE_EXPR, type);
2252 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
2253 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2254 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 444, __FILE__, __LINE__, true);
2255 : 0 : return _r;
2256 : : }
2257 : 0 : next_after_fail647:;
2258 : : }
2259 : : else
2260 : : {
2261 : 47 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail648;
2262 : 47 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail648;
2263 : 47 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail648;
2264 : 47 : {
2265 : 47 : tree res_op0;
2266 : 47 : res_op0 = captures[0];
2267 : 47 : tree res_op1;
2268 : 47 : res_op1 = wide_int_to_tree (TREE_TYPE (captures[0]), prod);
2269 : 47 : tree _r;
2270 : 47 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2271 : 47 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 445, __FILE__, __LINE__, true);
2272 : 47 : return _r;
2273 : : }
2274 : 0 : next_after_fail648:;
2275 : : }
2276 : 47 : }
2277 : : }
2278 : : }
2279 : : }
2280 : : return NULL_TREE;
2281 : : }
2282 : :
2283 : : tree
2284 : 7622 : generic_simplify_265 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2285 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2286 : : const enum tree_code ARG_UNUSED (cmp))
2287 : : {
2288 : 7622 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2289 : 7622 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail670;
2290 : 7622 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail670;
2291 : 7622 : {
2292 : 7622 : tree res_op0;
2293 : 7622 : res_op0 = captures[0];
2294 : 7622 : tree res_op1;
2295 : 7622 : res_op1 = captures[1];
2296 : 7622 : tree _r;
2297 : 7622 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2298 : 7622 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 460, __FILE__, __LINE__, true);
2299 : : return _r;
2300 : : }
2301 : : next_after_fail670:;
2302 : : return NULL_TREE;
2303 : : }
2304 : :
2305 : : tree
2306 : 156231 : generic_simplify_267 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2307 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2308 : : const enum tree_code ARG_UNUSED (cmp))
2309 : : {
2310 : 156231 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2311 : 156231 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail672;
2312 : 156231 : {
2313 : 156231 : tree res_op0;
2314 : 156231 : {
2315 : 156231 : tree _o1[2], _r1;
2316 : 156231 : _o1[0] = captures[0];
2317 : 156231 : {
2318 : 156231 : tree _o2[1], _r2;
2319 : 156231 : _o2[0] = captures[1];
2320 : 156231 : _r2 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
2321 : 156231 : if (EXPR_P (_r2))
2322 : 156202 : goto next_after_fail672;
2323 : 29 : _o1[1] = _r2;
2324 : : }
2325 : 29 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2326 : 29 : res_op0 = _r1;
2327 : : }
2328 : 29 : tree res_op1;
2329 : 29 : res_op1 = build_zero_cst (TREE_TYPE (captures[0]));
2330 : 29 : tree _r;
2331 : 29 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2332 : 29 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 462, __FILE__, __LINE__, true);
2333 : : return _r;
2334 : : }
2335 : : next_after_fail672:;
2336 : : return NULL_TREE;
2337 : : }
2338 : :
2339 : : tree
2340 : 26 : generic_simplify_270 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2341 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2342 : : const enum tree_code ARG_UNUSED (cmp))
2343 : : {
2344 : 26 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2345 : 26 : if (tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
2346 : : )
2347 : : {
2348 : 26 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail675;
2349 : 26 : {
2350 : 26 : tree res_op0;
2351 : 26 : res_op0 = captures[1];
2352 : 26 : tree res_op1;
2353 : 26 : {
2354 : 26 : tree _o1[2], _r1;
2355 : 26 : _o1[0] = captures[2];
2356 : 26 : {
2357 : 26 : tree _o2[1], _r2;
2358 : 26 : _o2[0] = captures[3];
2359 : 26 : if (TREE_TYPE (_o2[0]) != TREE_TYPE (res_op0))
2360 : : {
2361 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o2[0]);
2362 : : }
2363 : : else
2364 : : _r2 = _o2[0];
2365 : 26 : _o1[1] = _r2;
2366 : : }
2367 : 26 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2368 : 26 : res_op1 = _r1;
2369 : : }
2370 : 26 : tree _r;
2371 : 26 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2372 : 26 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 465, __FILE__, __LINE__, true);
2373 : 26 : return _r;
2374 : : }
2375 : 0 : next_after_fail675:;
2376 : : }
2377 : : return NULL_TREE;
2378 : : }
2379 : :
2380 : : tree
2381 : 98206 : generic_simplify_274 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2382 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2383 : : const enum tree_code ARG_UNUSED (cmp),
2384 : : const enum tree_code ARG_UNUSED (ncmp))
2385 : : {
2386 : 98206 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2387 : 195828 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
2388 : 48238 : && type_has_mode_precision_p (TREE_TYPE (captures[1]))
2389 : 47342 : && element_precision (captures[0]) >= element_precision (captures[1])
2390 : 196412 : && wi::only_sign_bit_p (wi::to_wide (captures[2]), element_precision (captures[1]))
2391 : : )
2392 : : {
2393 : 9755 : {
2394 : 9755 : tree stype = signed_type_for (TREE_TYPE (captures[1]));
2395 : 9755 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail679;
2396 : 9755 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail679;
2397 : 9755 : {
2398 : 9755 : tree res_op0;
2399 : 9755 : {
2400 : 9755 : tree _o1[1], _r1;
2401 : 9755 : _o1[0] = captures[1];
2402 : 9755 : if (TREE_TYPE (_o1[0]) != stype)
2403 : : {
2404 : 9091 : _r1 = fold_build1_loc (loc, NOP_EXPR, stype, _o1[0]);
2405 : : }
2406 : : else
2407 : : _r1 = _o1[0];
2408 : 9755 : res_op0 = _r1;
2409 : : }
2410 : 9755 : tree res_op1;
2411 : 9755 : res_op1 = build_zero_cst (stype);
2412 : 9755 : tree _r;
2413 : 9755 : _r = fold_build2_loc (loc, ncmp, type, res_op0, res_op1);
2414 : 9755 : if (TREE_SIDE_EFFECTS (captures[2]))
2415 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2416 : 9755 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 469, __FILE__, __LINE__, true);
2417 : 9755 : return _r;
2418 : : }
2419 : : next_after_fail679:;
2420 : : }
2421 : : }
2422 : : return NULL_TREE;
2423 : : }
2424 : :
2425 : : tree
2426 : 119875 : generic_simplify_280 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2427 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2428 : : const enum tree_code ARG_UNUSED (cmp))
2429 : : {
2430 : 119875 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2431 : 119875 : {
2432 : 119875 : poly_int64 off0, off1;
2433 : 119875 : tree base0, base1;
2434 : 119875 : int equal = address_compare (cmp, TREE_TYPE (captures[0]), captures[1], captures[2], base0, base1,
2435 : : off0, off1,
2436 : : 1
2437 : : );
2438 : 119875 : if (equal == 1
2439 : : )
2440 : : {
2441 : 109757 : if (cmp == EQ_EXPR && (known_eq (off0, off1) || known_ne (off0, off1))
2442 : : )
2443 : : {
2444 : 7944 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail692;
2445 : 7944 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail692;
2446 : 7944 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail692;
2447 : 7944 : {
2448 : 7944 : tree _r;
2449 : 7944 : _r = constant_boolean_node (known_eq (off0, off1), type);
2450 : 7944 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 472, __FILE__, __LINE__, true);
2451 : 111009 : return _r;
2452 : : }
2453 : 8866 : next_after_fail692:;
2454 : : }
2455 : : else
2456 : : {
2457 : 59811 : if (cmp == NE_EXPR && (known_eq (off0, off1) || known_ne (off0, off1))
2458 : : )
2459 : : {
2460 : 59811 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail693;
2461 : 59811 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail693;
2462 : 59811 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail693;
2463 : 59811 : {
2464 : 59811 : tree _r;
2465 : 59811 : _r = constant_boolean_node (known_ne (off0, off1), type);
2466 : 59811 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 473, __FILE__, __LINE__, true);
2467 : 59811 : return _r;
2468 : : }
2469 : 8866 : next_after_fail693:;
2470 : : }
2471 : : else
2472 : : {
2473 : 30014 : if (cmp == LT_EXPR && (known_lt (off0, off1) || known_ge (off0, off1))
2474 : : )
2475 : : {
2476 : 30014 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail694;
2477 : 30014 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail694;
2478 : 30014 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail694;
2479 : 30014 : {
2480 : 30014 : tree _r;
2481 : 30014 : _r = constant_boolean_node (known_lt (off0, off1), type);
2482 : 30014 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 474, __FILE__, __LINE__, true);
2483 : 30014 : return _r;
2484 : : }
2485 : 8866 : next_after_fail694:;
2486 : : }
2487 : : else
2488 : : {
2489 : 223 : if (cmp == LE_EXPR && (known_le (off0, off1) || known_gt (off0, off1))
2490 : : )
2491 : : {
2492 : 223 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail695;
2493 : 223 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail695;
2494 : 223 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail695;
2495 : 223 : {
2496 : 223 : tree _r;
2497 : 223 : _r = constant_boolean_node (known_le (off0, off1), type);
2498 : 223 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 475, __FILE__, __LINE__, true);
2499 : 223 : return _r;
2500 : : }
2501 : 8866 : next_after_fail695:;
2502 : : }
2503 : : else
2504 : : {
2505 : 8148 : if (cmp == GE_EXPR && (known_ge (off0, off1) || known_lt (off0, off1))
2506 : : )
2507 : : {
2508 : 8148 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail696;
2509 : 8148 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail696;
2510 : 8148 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail696;
2511 : 8148 : {
2512 : 8148 : tree _r;
2513 : 8148 : _r = constant_boolean_node (known_ge (off0, off1), type);
2514 : 8148 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 476, __FILE__, __LINE__, true);
2515 : 8148 : return _r;
2516 : : }
2517 : 8866 : next_after_fail696:;
2518 : : }
2519 : : else
2520 : : {
2521 : 3617 : if (cmp == GT_EXPR && (known_gt (off0, off1) || known_le (off0, off1))
2522 : : )
2523 : : {
2524 : 3617 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail697;
2525 : 3617 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail697;
2526 : 3617 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail697;
2527 : 3617 : {
2528 : 3617 : tree _r;
2529 : 3617 : _r = constant_boolean_node (known_gt (off0, off1), type);
2530 : 3617 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 477, __FILE__, __LINE__, true);
2531 : 3617 : return _r;
2532 : : }
2533 : 8866 : next_after_fail697:;
2534 : : }
2535 : : }
2536 : : }
2537 : : }
2538 : : }
2539 : : }
2540 : : }
2541 : : else
2542 : : {
2543 : 10118 : if (equal == 0
2544 : : )
2545 : : {
2546 : 1252 : if (cmp == EQ_EXPR
2547 : : )
2548 : : {
2549 : 729 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail698;
2550 : 729 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail698;
2551 : 729 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail698;
2552 : 729 : {
2553 : 729 : tree _r;
2554 : 729 : _r = constant_boolean_node (false, type);
2555 : 729 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 478, __FILE__, __LINE__, true);
2556 : 729 : return _r;
2557 : : }
2558 : 8866 : next_after_fail698:;
2559 : : }
2560 : : else
2561 : : {
2562 : 523 : if (cmp == NE_EXPR
2563 : : )
2564 : : {
2565 : 523 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail699;
2566 : 523 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail699;
2567 : 523 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail699;
2568 : 523 : {
2569 : 523 : tree _r;
2570 : 523 : _r = constant_boolean_node (true, type);
2571 : 523 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 479, __FILE__, __LINE__, true);
2572 : 523 : return _r;
2573 : : }
2574 : 8866 : next_after_fail699:;
2575 : : }
2576 : : }
2577 : : }
2578 : : }
2579 : : }
2580 : 8866 : return NULL_TREE;
2581 : : }
2582 : :
2583 : : tree
2584 : 0 : generic_simplify_293 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2585 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2586 : : const enum tree_code ARG_UNUSED (cmp))
2587 : : {
2588 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2589 : 0 : if (VECTOR_MODE_P (TYPE_MODE (TREE_TYPE (captures[0])))
2590 : 0 : && can_compare_p (cmp == EQ_EXPR ? EQ : NE, TYPE_MODE (TREE_TYPE (captures[0])),
2591 : : ccp_jump)
2592 : : )
2593 : : {
2594 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail731;
2595 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail731;
2596 : 0 : {
2597 : 0 : tree res_op0;
2598 : 0 : res_op0 = captures[0];
2599 : 0 : tree res_op1;
2600 : 0 : res_op1 = build_zero_cst (TREE_TYPE (captures[0]));
2601 : 0 : tree _r;
2602 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2603 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 511, __FILE__, __LINE__, true);
2604 : 0 : return _r;
2605 : : }
2606 : : next_after_fail731:;
2607 : : }
2608 : : return NULL_TREE;
2609 : : }
2610 : :
2611 : : tree
2612 : 0 : generic_simplify_299 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2613 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2614 : : const combined_fn ARG_UNUSED (copysigns))
2615 : : {
2616 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2617 : 0 : if (!REAL_VALUE_NEGATIVE (TREE_REAL_CST (captures[1]))
2618 : : )
2619 : : {
2620 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail738;
2621 : 0 : {
2622 : 0 : tree res_op0;
2623 : 0 : res_op0 = captures[0];
2624 : 0 : tree _r;
2625 : 0 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
2626 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2627 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2628 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 518, __FILE__, __LINE__, true);
2629 : 0 : return _r;
2630 : : }
2631 : 0 : next_after_fail738:;
2632 : : }
2633 : : return NULL_TREE;
2634 : : }
2635 : :
2636 : : tree
2637 : 7 : generic_simplify_304 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2638 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2639 : : const enum tree_code ARG_UNUSED (div))
2640 : : {
2641 : 7 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2642 : 14 : if ((TYPE_UNSIGNED (type) || tree_expr_nonnegative_p (captures[0]))
2643 : 0 : && (!VECTOR_TYPE_P (type)
2644 : 0 : || target_supports_op_p (type, RSHIFT_EXPR, optab_vector)
2645 : 0 : || target_supports_op_p (type, RSHIFT_EXPR, optab_scalar))
2646 : 7 : && (useless_type_conversion_p (type, TREE_TYPE (captures[2]))
2647 : 0 : || (element_precision (type) >= element_precision (TREE_TYPE (captures[2]))
2648 : 0 : && (TYPE_UNSIGNED (TREE_TYPE (captures[2]))
2649 : 0 : || (element_precision (type)
2650 : 0 : == element_precision (TREE_TYPE (captures[2])))
2651 : 0 : || (INTEGRAL_TYPE_P (type)
2652 : 0 : && (tree_nonzero_bits (captures[0])
2653 : 7 : & wi::mask (element_precision (TREE_TYPE (captures[2])) - 1,
2654 : : true,
2655 : 7 : element_precision (type))) == 0))))
2656 : : )
2657 : : {
2658 : 0 : if (!VECTOR_TYPE_P (type)
2659 : 0 : && useless_type_conversion_p (TREE_TYPE (captures[1]), TREE_TYPE (captures[2]))
2660 : 0 : && element_precision (TREE_TYPE (captures[1])) < element_precision (type)
2661 : : )
2662 : : {
2663 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail743;
2664 : 0 : {
2665 : 0 : tree res_op0;
2666 : 0 : {
2667 : 0 : tree _o1[2], _r1;
2668 : 0 : _o1[0] = captures[1];
2669 : 0 : _o1[1] = captures[3];
2670 : 0 : _r1 = fold_build2_loc (loc, RSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2671 : 0 : res_op0 = _r1;
2672 : : }
2673 : 0 : tree _r;
2674 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
2675 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
2676 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2677 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 523, __FILE__, __LINE__, true);
2678 : 0 : return _r;
2679 : : }
2680 : 0 : next_after_fail743:;
2681 : : }
2682 : : else
2683 : : {
2684 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail744;
2685 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail744;
2686 : 0 : {
2687 : 0 : tree res_op0;
2688 : 0 : res_op0 = captures[0];
2689 : 0 : tree res_op1;
2690 : 0 : res_op1 = captures[3];
2691 : 0 : tree _r;
2692 : 0 : _r = fold_build2_loc (loc, RSHIFT_EXPR, type, res_op0, res_op1);
2693 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
2694 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2695 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 524, __FILE__, __LINE__, true);
2696 : 0 : return _r;
2697 : : }
2698 : : next_after_fail744:;
2699 : : }
2700 : : }
2701 : : return NULL_TREE;
2702 : : }
2703 : :
2704 : : tree
2705 : 529 : generic_simplify_320 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2706 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2707 : : const enum tree_code ARG_UNUSED (mod))
2708 : : {
2709 : 529 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2710 : 529 : if (!TYPE_UNSIGNED (type)
2711 : : )
2712 : : {
2713 : 20 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail762;
2714 : 20 : {
2715 : 20 : tree _r;
2716 : 20 : _r = build_zero_cst (type);
2717 : 20 : if (TREE_SIDE_EFFECTS (captures[0]))
2718 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2719 : 20 : if (TREE_SIDE_EFFECTS (captures[1]))
2720 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2721 : 20 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 540, __FILE__, __LINE__, true);
2722 : 20 : return _r;
2723 : : }
2724 : 0 : next_after_fail762:;
2725 : : }
2726 : : return NULL_TREE;
2727 : : }
2728 : :
2729 : : tree
2730 : 5 : generic_simplify_330 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2731 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2732 : : const combined_fn ARG_UNUSED (SINH),
2733 : : const combined_fn ARG_UNUSED (COSH),
2734 : : const combined_fn ARG_UNUSED (TANH))
2735 : : {
2736 : 5 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2737 : 5 : if (flag_unsafe_math_optimizations && canonicalize_math_p ()
2738 : : )
2739 : : {
2740 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail774;
2741 : 3 : {
2742 : 3 : tree res_op0;
2743 : 3 : res_op0 = captures[1];
2744 : 3 : tree _r;
2745 : 3 : _r = maybe_build_call_expr_loc (loc, TANH, type, 1, res_op0);
2746 : 3 : if (!_r)
2747 : 0 : goto next_after_fail774;
2748 : 3 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 552, __FILE__, __LINE__, true);
2749 : 3 : return _r;
2750 : : }
2751 : : next_after_fail774:;
2752 : : }
2753 : : return NULL_TREE;
2754 : : }
2755 : :
2756 : : tree
2757 : 0 : generic_simplify_336 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2758 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
2759 : : const enum tree_code ARG_UNUSED (op),
2760 : : const combined_fn ARG_UNUSED (bt),
2761 : : const combined_fn ARG_UNUSED (bf),
2762 : : const combined_fn ARG_UNUSED (floor),
2763 : : const combined_fn ARG_UNUSED (ceil))
2764 : : {
2765 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2766 : 0 : if (!HONOR_SIGNED_ZEROS (type) && !HONOR_SIGN_DEPENDENT_ROUNDING (type)
2767 : : )
2768 : : {
2769 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail780;
2770 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail780;
2771 : 0 : {
2772 : 0 : tree res_op0;
2773 : 0 : {
2774 : 0 : tree _o1[2], _r1;
2775 : 0 : _o1[0] = captures[1];
2776 : 0 : _o1[1] = build_real (type, dconsthalf);
2777 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2778 : 0 : res_op0 = _r1;
2779 : : }
2780 : 0 : tree _r;
2781 : 0 : _r = maybe_build_call_expr_loc (loc, floor, type, 1, res_op0);
2782 : 0 : if (!_r)
2783 : 0 : goto next_after_fail780;
2784 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 558, __FILE__, __LINE__, true);
2785 : 0 : return _r;
2786 : : }
2787 : : next_after_fail780:;
2788 : : }
2789 : : return NULL_TREE;
2790 : : }
2791 : :
2792 : : tree
2793 : 2063 : generic_simplify_344 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2794 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
2795 : : {
2796 : 2063 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2797 : 2063 : if (INTEGRAL_TYPE_P (type)
2798 : : )
2799 : : {
2800 : 2063 : {
2801 : 2063 : tree itype = TREE_TYPE (captures[2]);
2802 : 2063 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail794;
2803 : 2063 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail794;
2804 : 2063 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail794;
2805 : 2063 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail794;
2806 : 2063 : {
2807 : 2063 : tree res_op0;
2808 : 2063 : {
2809 : 2063 : tree _o1[2], _r1;
2810 : 2063 : _o1[0] = captures[2];
2811 : 2063 : {
2812 : 2063 : tree _o2[1], _r2;
2813 : 2063 : _o2[0] = captures[0];
2814 : 2063 : if (TREE_TYPE (_o2[0]) != itype)
2815 : : {
2816 : 2063 : _r2 = fold_build1_loc (loc, NOP_EXPR, itype, _o2[0]);
2817 : : }
2818 : : else
2819 : : _r2 = _o2[0];
2820 : 2063 : _o1[1] = _r2;
2821 : : }
2822 : 2063 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2823 : 2063 : res_op0 = _r1;
2824 : : }
2825 : 2063 : tree _r;
2826 : 2063 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
2827 : 2063 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 571, __FILE__, __LINE__, true);
2828 : 2063 : return _r;
2829 : : }
2830 : : next_after_fail794:;
2831 : : }
2832 : : }
2833 : : return NULL_TREE;
2834 : : }
2835 : :
2836 : : tree
2837 : 0 : generic_simplify_348 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2838 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
2839 : : {
2840 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2841 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail798;
2842 : 0 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail798;
2843 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail798;
2844 : 0 : {
2845 : 0 : tree _r;
2846 : 0 : _r = captures[2];
2847 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 575, __FILE__, __LINE__, true);
2848 : : return _r;
2849 : : }
2850 : : next_after_fail798:;
2851 : : return NULL_TREE;
2852 : : }
2853 : :
2854 : : tree
2855 : 21 : generic_simplify_353 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2856 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
2857 : : {
2858 : 21 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2859 : 21 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail803;
2860 : 21 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail803;
2861 : 21 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail803;
2862 : 21 : {
2863 : 21 : tree _r;
2864 : 21 : _r = captures[2];
2865 : 21 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 580, __FILE__, __LINE__, true);
2866 : : return _r;
2867 : : }
2868 : : next_after_fail803:;
2869 : : return NULL_TREE;
2870 : : }
2871 : :
2872 : : tree
2873 : 6 : generic_simplify_359 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2874 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
2875 : : const enum tree_code ARG_UNUSED (neeq),
2876 : : const combined_fn ARG_UNUSED (sign))
2877 : : {
2878 : 6 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2879 : 6 : if (neeq == NE_EXPR
2880 : : )
2881 : : {
2882 : 3 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail809;
2883 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail809;
2884 : 3 : {
2885 : 3 : tree res_op0;
2886 : 3 : res_op0 = captures[0];
2887 : 3 : tree _r;
2888 : 3 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
2889 : 3 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 586, __FILE__, __LINE__, true);
2890 : 3 : return _r;
2891 : : }
2892 : : next_after_fail809:;
2893 : : }
2894 : : else
2895 : : {
2896 : 3 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail810;
2897 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail810;
2898 : 3 : {
2899 : 3 : tree res_op0;
2900 : 3 : {
2901 : 3 : tree _o1[1], _r1;
2902 : 3 : _o1[0] = captures[0];
2903 : 3 : _r1 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
2904 : 3 : res_op0 = _r1;
2905 : : }
2906 : 3 : tree _r;
2907 : 3 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
2908 : 3 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 587, __FILE__, __LINE__, true);
2909 : 3 : return _r;
2910 : : }
2911 : : next_after_fail810:;
2912 : : }
2913 : : return NULL_TREE;
2914 : : }
2915 : :
2916 : : tree
2917 : 155769 : generic_simplify_371 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2918 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2919 : : const enum tree_code ARG_UNUSED (op))
2920 : : {
2921 : 155769 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2922 : 311538 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
2923 : 311538 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
2924 : : )
2925 : : {
2926 : 64375 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail826;
2927 : 64375 : {
2928 : 64375 : tree res_op0;
2929 : 64375 : res_op0 = captures[0];
2930 : 64375 : tree res_op1;
2931 : 64375 : res_op1 = captures[2];
2932 : 64375 : tree _r;
2933 : 64375 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
2934 : 64375 : if (TREE_SIDE_EFFECTS (captures[1]))
2935 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2936 : 64375 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 602, __FILE__, __LINE__, true);
2937 : 64375 : return _r;
2938 : : }
2939 : 0 : next_after_fail826:;
2940 : : }
2941 : : return NULL_TREE;
2942 : : }
2943 : :
2944 : : tree
2945 : 3936 : generic_simplify_376 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2946 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2947 : : const enum tree_code ARG_UNUSED (cmp),
2948 : : const enum tree_code ARG_UNUSED (bitop))
2949 : : {
2950 : 3936 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2951 : 3936 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
2952 : : )
2953 : : {
2954 : 3936 : if (bitop == BIT_AND_EXPR || tree_expr_nonnegative_p (captures[1])
2955 : : )
2956 : : {
2957 : 3936 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail831;
2958 : 3936 : {
2959 : 3936 : tree _r;
2960 : 3936 : _r = constant_boolean_node (cmp == GE_EXPR || cmp == LE_EXPR, type);
2961 : 3936 : if (TREE_SIDE_EFFECTS (captures[0]))
2962 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2963 : 3936 : if (TREE_SIDE_EFFECTS (captures[1]))
2964 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2965 : 3936 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 607, __FILE__, __LINE__, true);
2966 : 3936 : return _r;
2967 : : }
2968 : 0 : next_after_fail831:;
2969 : : }
2970 : : else
2971 : : {
2972 : 0 : if (TREE_CODE (captures[1]) == INTEGER_CST && wi::neg_p (wi::to_wide (captures[1]))
2973 : : )
2974 : : {
2975 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail832;
2976 : 0 : {
2977 : 0 : tree _r;
2978 : 0 : _r = constant_boolean_node (cmp == LT_EXPR, type);
2979 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
2980 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2981 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2982 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2983 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 608, __FILE__, __LINE__, true);
2984 : 0 : return _r;
2985 : : }
2986 : 0 : next_after_fail832:;
2987 : : }
2988 : : }
2989 : : }
2990 : : return NULL_TREE;
2991 : : }
2992 : :
2993 : : tree
2994 : 0 : generic_simplify_388 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2995 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2996 : : const enum tree_code ARG_UNUSED (cmp),
2997 : : const enum tree_code ARG_UNUSED (out))
2998 : : {
2999 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3000 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[1]))
3001 : 0 : && types_match (TREE_TYPE (captures[1]), TREE_TYPE (captures[2]))
3002 : : )
3003 : : {
3004 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail876;
3005 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail876;
3006 : 0 : {
3007 : 0 : tree res_op0;
3008 : 0 : {
3009 : 0 : tree _o1[1], _r1;
3010 : 0 : _o1[0] = captures[0];
3011 : 0 : _r1 = fold_build1_loc (loc, IMAGPART_EXPR, TREE_TYPE (TREE_TYPE (_o1[0])), _o1[0]);
3012 : 0 : res_op0 = _r1;
3013 : : }
3014 : 0 : tree res_op1;
3015 : 0 : res_op1 = build_zero_cst (TREE_TYPE (captures[1]));
3016 : 0 : tree _r;
3017 : 0 : _r = fold_build2_loc (loc, out, type, res_op0, res_op1);
3018 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 635, __FILE__, __LINE__, true);
3019 : 0 : return _r;
3020 : : }
3021 : : next_after_fail876:;
3022 : : }
3023 : : return NULL_TREE;
3024 : : }
3025 : :
3026 : : tree
3027 : 0 : generic_simplify_394 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3028 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3029 : : const enum tree_code ARG_UNUSED (op),
3030 : : const enum tree_code ARG_UNUSED (cmp))
3031 : : {
3032 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3033 : 0 : {
3034 : 0 : bool ok = true;
3035 : 0 : HOST_WIDE_INT val = 0;
3036 : 0 : if (!tree_fits_shwi_p (captures[3]))
3037 : : ok = false;
3038 : : else
3039 : : {
3040 : 0 : val = tree_to_shwi (captures[3]);
3041 : 0 : if (op == GT_EXPR || op == LE_EXPR)
3042 : : {
3043 : 0 : if (val == HOST_WIDE_INT_MAX)
3044 : : ok = false;
3045 : : else
3046 : 0 : val++;
3047 : : }
3048 : : }
3049 : 0 : HOST_WIDE_INT zero_val = tree_to_shwi (captures[2]);
3050 : 0 : tree type0 = TREE_TYPE (captures[1]);
3051 : 0 : int prec = TYPE_PRECISION (type0);
3052 : 0 : if (prec > MAX_FIXED_MODE_SIZE)
3053 : 0 : ok = false;
3054 : 0 : if (val <= 0
3055 : : )
3056 : : {
3057 : 0 : if (ok && zero_val >= val
3058 : : )
3059 : : {
3060 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail887;
3061 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail887;
3062 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail887;
3063 : 0 : {
3064 : 0 : tree _r;
3065 : 0 : _r = constant_boolean_node (cmp == EQ_EXPR ? true : false, type);
3066 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
3067 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3068 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 646, __FILE__, __LINE__, true);
3069 : 0 : return _r;
3070 : : }
3071 : : next_after_fail887:;
3072 : : }
3073 : : }
3074 : : else
3075 : : {
3076 : 0 : if (val >= prec
3077 : : )
3078 : : {
3079 : 0 : if (ok && zero_val < val
3080 : : )
3081 : : {
3082 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail888;
3083 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail888;
3084 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail888;
3085 : 0 : {
3086 : 0 : tree _r;
3087 : 0 : _r = constant_boolean_node (cmp == EQ_EXPR ? false : true, type);
3088 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
3089 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3090 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 647, __FILE__, __LINE__, true);
3091 : 0 : return _r;
3092 : : }
3093 : : next_after_fail888:;
3094 : : }
3095 : : }
3096 : : else
3097 : : {
3098 : 0 : if (ok && (zero_val < 0 || zero_val >= prec)
3099 : : )
3100 : : {
3101 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail889;
3102 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail889;
3103 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail889;
3104 : 0 : {
3105 : 0 : tree res_op0;
3106 : 0 : {
3107 : 0 : tree _o1[2], _r1;
3108 : 0 : _o1[0] = captures[1];
3109 : 0 : _o1[1] = wide_int_to_tree (type0,
3110 : 0 : wi::mask (val, false, prec));
3111 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3112 : 0 : res_op0 = _r1;
3113 : : }
3114 : 0 : tree res_op1;
3115 : 0 : res_op1 = build_zero_cst (type0);
3116 : 0 : tree _r;
3117 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
3118 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 648, __FILE__, __LINE__, true);
3119 : 0 : return _r;
3120 : : }
3121 : : next_after_fail889:;
3122 : : }
3123 : : }
3124 : : }
3125 : : }
3126 : : return NULL_TREE;
3127 : : }
3128 : :
3129 : : tree
3130 : 94 : generic_simplify_405 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3131 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3132 : : {
3133 : 94 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3134 : 188 : if (INTEGRAL_TYPE_P (type)
3135 : 93 : && !TYPE_UNSIGNED (type)
3136 : 93 : && !TYPE_OVERFLOW_TRAPS (type)
3137 : 93 : && tree_nop_conversion_p (type, TREE_TYPE (captures[1]))
3138 : 281 : && (expr_not_equal_to (captures[0], wi::to_wide (TYPE_MIN_VALUE (type)))
3139 : 187 : || expr_not_equal_to (captures[1], wi::minus_one (TYPE_PRECISION
3140 : : (TREE_TYPE (captures[1])))))
3141 : : )
3142 : : {
3143 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail904;
3144 : 0 : {
3145 : 0 : tree res_op0;
3146 : 0 : res_op0 = captures[0];
3147 : 0 : tree res_op1;
3148 : 0 : {
3149 : 0 : tree _o1[1], _r1;
3150 : 0 : _o1[0] = captures[1];
3151 : 0 : if (TREE_TYPE (_o1[0]) != type)
3152 : : {
3153 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
3154 : : }
3155 : : else
3156 : : _r1 = _o1[0];
3157 : 0 : res_op1 = _r1;
3158 : : }
3159 : 0 : tree _r;
3160 : 0 : _r = fold_build2_loc (loc, TRUNC_MOD_EXPR, type, res_op0, res_op1);
3161 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 659, __FILE__, __LINE__, true);
3162 : 0 : return _r;
3163 : : }
3164 : 0 : next_after_fail904:;
3165 : : }
3166 : : return NULL_TREE;
3167 : : }
3168 : :
3169 : : tree
3170 : 0 : generic_simplify_411 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3171 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3172 : : const enum tree_code ARG_UNUSED (shiftrotate))
3173 : : {
3174 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3175 : 0 : {
3176 : 0 : tree tem = uniform_vector_p (captures[1]);
3177 : 0 : if (tem
3178 : : )
3179 : : {
3180 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail910;
3181 : 0 : {
3182 : 0 : tree res_op0;
3183 : 0 : res_op0 = captures[0];
3184 : 0 : tree res_op1;
3185 : 0 : res_op1 = tem;
3186 : 0 : tree _r;
3187 : 0 : _r = fold_build2_loc (loc, shiftrotate, type, res_op0, res_op1);
3188 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
3189 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3190 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 665, __FILE__, __LINE__, true);
3191 : 0 : return _r;
3192 : : }
3193 : 0 : next_after_fail910:;
3194 : : }
3195 : : }
3196 : : return NULL_TREE;
3197 : : }
3198 : :
3199 : : tree
3200 : 267 : generic_simplify_417 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3201 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3202 : : const combined_fn ARG_UNUSED (bswap))
3203 : : {
3204 : 267 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3205 : 267 : if (BITS_PER_UNIT == 8
3206 : : && CHAR_TYPE_SIZE == 8
3207 : 267 : && tree_fits_uhwi_p (captures[2])
3208 : : )
3209 : : {
3210 : 267 : {
3211 : 267 : unsigned HOST_WIDE_INT prec = TYPE_PRECISION (TREE_TYPE (captures[0]));
3212 : 267 : unsigned HOST_WIDE_INT bits = tree_to_uhwi (captures[2]);
3213 : 267 : tree st = TYPE_PRECISION (type) > prec ? TREE_TYPE (captures[0]) : type;
3214 : 267 : if (TYPE_PRECISION (type) > prec
3215 : 0 : && !TYPE_UNSIGNED (TREE_TYPE (captures[0]))
3216 : 0 : && TYPE_UNSIGNED (type)
3217 : 267 : && bits < prec && bits + 8 >= prec
3218 : : )
3219 : : {
3220 : 0 : {
3221 : 0 : tree nst = build_int_cst (integer_type_node, prec - 8);
3222 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail920;
3223 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail920;
3224 : 0 : {
3225 : 0 : tree res_op0;
3226 : 0 : {
3227 : 0 : tree _o1[1], _r1;
3228 : 0 : {
3229 : 0 : tree _o2[2], _r2;
3230 : 0 : {
3231 : 0 : tree _o3[1], _r3;
3232 : 0 : _o3[0] = captures[1];
3233 : 0 : if (TREE_TYPE (_o3[0]) != st)
3234 : : {
3235 : 0 : _r3 = fold_build1_loc (loc, NOP_EXPR, st, _o3[0]);
3236 : : }
3237 : : else
3238 : : _r3 = _o3[0];
3239 : 0 : _o2[0] = _r3;
3240 : : }
3241 : 0 : _o2[1] = nst;
3242 : 0 : _r2 = fold_build2_loc (loc, LSHIFT_EXPR, st, _o2[0], _o2[1]);
3243 : 0 : _o1[0] = _r2;
3244 : : }
3245 : 0 : if (TREE_TYPE (_o1[0]) != type)
3246 : : {
3247 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
3248 : : }
3249 : : else
3250 : : _r1 = _o1[0];
3251 : 0 : res_op0 = _r1;
3252 : : }
3253 : 0 : tree res_op1;
3254 : 0 : res_op1 = captures[2];
3255 : 0 : tree _r;
3256 : 0 : _r = fold_build2_loc (loc, RSHIFT_EXPR, type, res_op0, res_op1);
3257 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 673, __FILE__, __LINE__, true);
3258 : 0 : return _r;
3259 : : }
3260 : : next_after_fail920:;
3261 : : }
3262 : : }
3263 : : else
3264 : : {
3265 : 267 : if (bits + 8 == prec
3266 : : )
3267 : : {
3268 : 46 : if (TYPE_UNSIGNED (st)
3269 : : )
3270 : : {
3271 : 36 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail921;
3272 : 36 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail921;
3273 : 36 : {
3274 : 36 : tree res_op0;
3275 : 36 : {
3276 : 36 : tree _o1[1], _r1;
3277 : 36 : _o1[0] = captures[1];
3278 : 36 : if (TREE_TYPE (_o1[0]) != unsigned_char_type_node)
3279 : : {
3280 : 36 : _r1 = fold_build1_loc (loc, NOP_EXPR, unsigned_char_type_node, _o1[0]);
3281 : : }
3282 : : else
3283 : : _r1 = _o1[0];
3284 : 36 : res_op0 = _r1;
3285 : : }
3286 : 36 : tree _r;
3287 : 36 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3288 : 36 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 674, __FILE__, __LINE__, true);
3289 : 36 : return _r;
3290 : : }
3291 : : next_after_fail921:;
3292 : : }
3293 : : else
3294 : : {
3295 : 10 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail922;
3296 : 10 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail922;
3297 : 10 : {
3298 : 10 : tree res_op0;
3299 : 10 : {
3300 : 10 : tree _o1[1], _r1;
3301 : 10 : _o1[0] = captures[1];
3302 : 10 : if (TREE_TYPE (_o1[0]) != signed_char_type_node)
3303 : : {
3304 : 10 : _r1 = fold_build1_loc (loc, NOP_EXPR, signed_char_type_node, _o1[0]);
3305 : : }
3306 : : else
3307 : : _r1 = _o1[0];
3308 : 10 : res_op0 = _r1;
3309 : : }
3310 : 10 : tree _r;
3311 : 10 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3312 : 10 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 675, __FILE__, __LINE__, true);
3313 : 10 : return _r;
3314 : : }
3315 : : next_after_fail922:;
3316 : : }
3317 : : }
3318 : : else
3319 : : {
3320 : 221 : if (bits < prec && bits + 8 > prec
3321 : : )
3322 : : {
3323 : 57 : {
3324 : 57 : tree nst = build_int_cst (integer_type_node, bits & 7);
3325 : 57 : tree bt = TYPE_UNSIGNED (st) ? unsigned_char_type_node
3326 : 57 : : signed_char_type_node;
3327 : 57 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail923;
3328 : 57 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail923;
3329 : 57 : {
3330 : 57 : tree res_op0;
3331 : 57 : {
3332 : 57 : tree _o1[2], _r1;
3333 : 57 : {
3334 : 57 : tree _o2[1], _r2;
3335 : 57 : _o2[0] = captures[1];
3336 : 57 : if (TREE_TYPE (_o2[0]) != bt)
3337 : : {
3338 : 57 : _r2 = fold_build1_loc (loc, NOP_EXPR, bt, _o2[0]);
3339 : : }
3340 : : else
3341 : : _r2 = _o2[0];
3342 : 57 : _o1[0] = _r2;
3343 : : }
3344 : 57 : _o1[1] = nst;
3345 : 57 : _r1 = fold_build2_loc (loc, RSHIFT_EXPR, bt, _o1[0], _o1[1]);
3346 : 57 : res_op0 = _r1;
3347 : : }
3348 : 57 : tree _r;
3349 : 57 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3350 : 57 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 676, __FILE__, __LINE__, true);
3351 : 57 : return _r;
3352 : : }
3353 : : next_after_fail923:;
3354 : : }
3355 : : }
3356 : : }
3357 : : }
3358 : : }
3359 : : }
3360 : : return NULL_TREE;
3361 : : }
3362 : :
3363 : : tree
3364 : 0 : generic_simplify_429 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3365 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3366 : : const combined_fn ARG_UNUSED (copysigns),
3367 : : const combined_fn ARG_UNUSED (pows))
3368 : : {
3369 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3370 : 0 : {
3371 : 0 : HOST_WIDE_INT n;
3372 : 0 : if (real_isinteger (&TREE_REAL_CST (captures[2]), &n) && (n & 1) == 0
3373 : : )
3374 : : {
3375 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail948;
3376 : 0 : {
3377 : 0 : tree res_op0;
3378 : 0 : res_op0 = captures[0];
3379 : 0 : tree res_op1;
3380 : 0 : res_op1 = captures[2];
3381 : 0 : tree _r;
3382 : 0 : _r = maybe_build_call_expr_loc (loc, pows, type, 2, res_op0, res_op1);
3383 : 0 : if (!_r)
3384 : 0 : goto next_after_fail948;
3385 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
3386 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3387 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 689, __FILE__, __LINE__, true);
3388 : 0 : return _r;
3389 : : }
3390 : 0 : next_after_fail948:;
3391 : : }
3392 : : }
3393 : 0 : return NULL_TREE;
3394 : : }
3395 : :
3396 : : tree
3397 : 0 : generic_simplify_431 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3398 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3399 : : const combined_fn ARG_UNUSED (pow))
3400 : : {
3401 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3402 : 0 : if (flag_unsafe_math_optimizations
3403 : : )
3404 : : {
3405 : 0 : if (! HONOR_INFINITIES (type)
3406 : 0 : && ! flag_trapping_math
3407 : 0 : && ! flag_errno_math
3408 : : )
3409 : : {
3410 : 0 : if (! HONOR_NANS (type) && ! HONOR_SIGNED_ZEROS (type)
3411 : : )
3412 : : {
3413 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail950;
3414 : 0 : {
3415 : 0 : tree _r;
3416 : 0 : _r = captures[0];
3417 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
3418 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3419 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 691, __FILE__, __LINE__, true);
3420 : 0 : return _r;
3421 : : }
3422 : 0 : next_after_fail950:;
3423 : : }
3424 : : }
3425 : : }
3426 : : return NULL_TREE;
3427 : : }
3428 : :
3429 : : tree
3430 : 4874243 : generic_simplify_438 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3431 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3432 : : {
3433 : 4874243 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3434 : 4874243 : {
3435 : 4874243 : bool wascmp;
3436 : 4874243 : if (types_match (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
3437 : 4874243 : && bitwise_inverted_equal_p (captures[0], captures[1], wascmp)
3438 : : )
3439 : : {
3440 : 113 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail957;
3441 : 113 : {
3442 : 113 : tree _r;
3443 : 113 : _r = wascmp ? constant_boolean_node (false, type) : build_zero_cst (type);
3444 : 113 : if (TREE_SIDE_EFFECTS (captures[0]))
3445 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
3446 : 113 : if (TREE_SIDE_EFFECTS (captures[1]))
3447 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3448 : 113 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 698, __FILE__, __LINE__, true);
3449 : 113 : return _r;
3450 : : }
3451 : 0 : next_after_fail957:;
3452 : : }
3453 : : }
3454 : 4874130 : return NULL_TREE;
3455 : : }
3456 : :
3457 : : tree
3458 : 42645 : generic_simplify_443 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3459 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3460 : : {
3461 : 42645 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3462 : 42645 : {
3463 : 42645 : bool wascmp;
3464 : 42645 : if (bitwise_inverted_equal_p (captures[0], captures[1], wascmp)
3465 : 42645 : && (!wascmp || element_precision (type) == 1)
3466 : : )
3467 : : {
3468 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail962;
3469 : 1 : {
3470 : 1 : tree res_op0;
3471 : 1 : res_op0 = captures[0];
3472 : 1 : tree res_op1;
3473 : 1 : res_op1 = captures[2];
3474 : 1 : tree _r;
3475 : 1 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
3476 : 1 : if (TREE_SIDE_EFFECTS (captures[1]))
3477 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3478 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 703, __FILE__, __LINE__, true);
3479 : 1 : return _r;
3480 : : }
3481 : 0 : next_after_fail962:;
3482 : : }
3483 : : }
3484 : 42644 : return NULL_TREE;
3485 : : }
3486 : :
3487 : : tree
3488 : 63 : generic_simplify_450 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3489 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3490 : : {
3491 : 63 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3492 : 63 : if (INTEGRAL_TYPE_P (type)
3493 : 63 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
3494 : 63 : && TREE_CODE (TREE_TYPE (captures[0])) != BOOLEAN_TYPE
3495 : 126 : && (!TYPE_UNSIGNED (TREE_TYPE (captures[0]))
3496 : 17 : || TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0])))
3497 : : )
3498 : : {
3499 : 63 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail969;
3500 : 63 : {
3501 : 63 : tree res_op0;
3502 : 63 : {
3503 : 63 : tree _o1[1], _r1;
3504 : 63 : _o1[0] = captures[0];
3505 : 63 : if (TREE_TYPE (_o1[0]) != type)
3506 : : {
3507 : 20 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
3508 : : }
3509 : : else
3510 : : _r1 = _o1[0];
3511 : 63 : res_op0 = _r1;
3512 : : }
3513 : 63 : tree res_op1;
3514 : 63 : res_op1 = captures[1];
3515 : 63 : tree _r;
3516 : 63 : _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
3517 : 63 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 709, __FILE__, __LINE__, true);
3518 : 63 : return _r;
3519 : : }
3520 : 0 : next_after_fail969:;
3521 : : }
3522 : : return NULL_TREE;
3523 : : }
3524 : :
3525 : : tree
3526 : 5322214 : generic_simplify_458 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3527 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3528 : : {
3529 : 5322214 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3530 : 10451021 : if (POINTER_TYPE_P (TREE_TYPE (captures[0]))
3531 : 5322226 : && tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
3532 : : )
3533 : : {
3534 : 193419 : {
3535 : 193419 : unsigned int align;
3536 : 193419 : unsigned HOST_WIDE_INT bitpos;
3537 : 193419 : get_pointer_alignment_1 (captures[0], &align, &bitpos);
3538 : 193419 : if (wi::ltu_p (wi::to_wide (captures[1]), align / BITS_PER_UNIT)
3539 : : )
3540 : : {
3541 : 4736 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail977;
3542 : 4736 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail977;
3543 : 4736 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail977;
3544 : 4736 : {
3545 : 4736 : tree _r;
3546 : 9472 : _r = wide_int_to_tree (type, (wi::to_wide (captures[1])
3547 : 9472 : & (bitpos / BITS_PER_UNIT)));
3548 : 4736 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 716, __FILE__, __LINE__, true);
3549 : 4736 : return _r;
3550 : : }
3551 : 188683 : next_after_fail977:;
3552 : : }
3553 : : }
3554 : : }
3555 : : return NULL_TREE;
3556 : : }
3557 : :
3558 : : tree
3559 : 109 : generic_simplify_467 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3560 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3561 : : const enum tree_code ARG_UNUSED (code2),
3562 : : const enum tree_code ARG_UNUSED (code1))
3563 : : {
3564 : 109 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3565 : 109 : if ((TREE_CODE (captures[2]) == INTEGER_CST
3566 : 47 : && TREE_CODE (captures[4]) == INTEGER_CST)
3567 : 109 : || ((INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
3568 : 12 : || (VECTOR_TYPE_P (TREE_TYPE (captures[2]))
3569 : 4 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, code2))
3570 : 8 : || POINTER_TYPE_P (TREE_TYPE (captures[2])))
3571 : 54 : && operand_equal_p (captures[2], captures[4]))
3572 : : )
3573 : : {
3574 : 51 : {
3575 : 51 : int cmp = 0;
3576 : 51 : if (TREE_CODE (captures[2]) == INTEGER_CST
3577 : 47 : && TREE_CODE (captures[4]) == INTEGER_CST)
3578 : 47 : cmp = tree_int_cst_compare (captures[2], captures[4]);
3579 : 51 : if ((code1 == LT_EXPR || code1 == LE_EXPR)
3580 : 4 : && (code2 == LT_EXPR || code2 == LE_EXPR)
3581 : : )
3582 : : {
3583 : 0 : if ((cmp < 0) || (cmp == 0 && code1 == LT_EXPR)
3584 : : )
3585 : : {
3586 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1005;
3587 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1005;
3588 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1005;
3589 : 0 : {
3590 : 0 : tree _r;
3591 : 0 : _r = captures[0];
3592 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 734, __FILE__, __LINE__, true);
3593 : 0 : return _r;
3594 : : }
3595 : : next_after_fail1005:;
3596 : : }
3597 : : else
3598 : : {
3599 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1006;
3600 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1006;
3601 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1006;
3602 : 0 : {
3603 : 0 : tree _r;
3604 : 0 : _r = captures[3];
3605 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 735, __FILE__, __LINE__, true);
3606 : 0 : return _r;
3607 : : }
3608 : : next_after_fail1006:;
3609 : : }
3610 : : }
3611 : : else
3612 : : {
3613 : 51 : if ((code1 == GT_EXPR || code1 == GE_EXPR)
3614 : 47 : && (code2 == GT_EXPR || code2 == GE_EXPR)
3615 : : )
3616 : : {
3617 : 0 : if ((cmp > 0) || (cmp == 0 && code1 == GT_EXPR)
3618 : : )
3619 : : {
3620 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1007;
3621 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1007;
3622 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1007;
3623 : 0 : {
3624 : 0 : tree _r;
3625 : 0 : _r = captures[0];
3626 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 736, __FILE__, __LINE__, true);
3627 : 0 : return _r;
3628 : : }
3629 : : next_after_fail1007:;
3630 : : }
3631 : : else
3632 : : {
3633 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1008;
3634 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1008;
3635 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1008;
3636 : 0 : {
3637 : 0 : tree _r;
3638 : 0 : _r = captures[3];
3639 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 737, __FILE__, __LINE__, true);
3640 : 0 : return _r;
3641 : : }
3642 : : next_after_fail1008:;
3643 : : }
3644 : : }
3645 : : else
3646 : : {
3647 : 51 : if (cmp == 0
3648 : 4 : && ((code1 == LE_EXPR && code2 == GE_EXPR)
3649 : 4 : || (code1 == GE_EXPR && code2 == LE_EXPR))
3650 : : )
3651 : : {
3652 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1009;
3653 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1009;
3654 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1009;
3655 : 0 : {
3656 : 0 : tree res_op0;
3657 : 0 : res_op0 = captures[1];
3658 : 0 : tree res_op1;
3659 : 0 : res_op1 = captures[2];
3660 : 0 : tree _r;
3661 : 0 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
3662 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 738, __FILE__, __LINE__, true);
3663 : 0 : return _r;
3664 : : }
3665 : : next_after_fail1009:;
3666 : : }
3667 : : else
3668 : : {
3669 : 51 : if (cmp <= 0
3670 : 50 : && (code1 == LT_EXPR || code1 == LE_EXPR)
3671 : 4 : && (code2 == GT_EXPR || code2 == GE_EXPR)
3672 : : )
3673 : : {
3674 : 4 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1010;
3675 : 4 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1010;
3676 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1010;
3677 : 4 : {
3678 : 4 : tree _r;
3679 : 4 : _r = constant_boolean_node (false, type);
3680 : 4 : if (TREE_SIDE_EFFECTS (captures[1]))
3681 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3682 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 739, __FILE__, __LINE__, true);
3683 : 4 : return _r;
3684 : : }
3685 : : next_after_fail1010:;
3686 : : }
3687 : : else
3688 : : {
3689 : 46 : if (cmp >= 0
3690 : 1 : && (code1 == GT_EXPR || code1 == GE_EXPR)
3691 : 1 : && (code2 == LT_EXPR || code2 == LE_EXPR)
3692 : : )
3693 : : {
3694 : 1 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1011;
3695 : 1 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1011;
3696 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1011;
3697 : 1 : {
3698 : 1 : tree _r;
3699 : 1 : _r = constant_boolean_node (false, type);
3700 : 1 : if (TREE_SIDE_EFFECTS (captures[1]))
3701 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3702 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 740, __FILE__, __LINE__, true);
3703 : 1 : return _r;
3704 : : }
3705 : : next_after_fail1011:;
3706 : : }
3707 : : }
3708 : : }
3709 : : }
3710 : : }
3711 : : }
3712 : : }
3713 : : return NULL_TREE;
3714 : : }
3715 : :
3716 : : tree
3717 : 3 : generic_simplify_484 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3718 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3719 : : const combined_fn ARG_UNUSED (POPCOUNT),
3720 : : const combined_fn ARG_UNUSED (PARITY))
3721 : : {
3722 : 3 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3723 : 3 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1047;
3724 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1047;
3725 : 3 : {
3726 : 3 : tree res_op0;
3727 : 3 : res_op0 = captures[0];
3728 : 3 : tree _r;
3729 : 3 : _r = maybe_build_call_expr_loc (loc, PARITY, type, 1, res_op0);
3730 : 3 : if (!_r)
3731 : 0 : goto next_after_fail1047;
3732 : 3 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 748, __FILE__, __LINE__, true);
3733 : : return _r;
3734 : : }
3735 : : next_after_fail1047:;
3736 : : return NULL_TREE;
3737 : : }
3738 : :
3739 : : tree
3740 : 108 : generic_simplify_486 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3741 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
3742 : : {
3743 : 108 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3744 : 108 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1049;
3745 : 108 : {
3746 : 108 : tree res_op0;
3747 : 108 : res_op0 = captures[1];
3748 : 108 : tree res_op1;
3749 : 108 : {
3750 : 108 : tree _o1[1], _r1;
3751 : 108 : _o1[0] = captures[2];
3752 : 108 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
3753 : 108 : res_op1 = _r1;
3754 : : }
3755 : 108 : tree _r;
3756 : 108 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
3757 : 108 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 750, __FILE__, __LINE__, true);
3758 : : return _r;
3759 : : }
3760 : 0 : next_after_fail1049:;
3761 : 0 : return NULL_TREE;
3762 : : }
3763 : :
3764 : : tree
3765 : 17 : generic_simplify_488 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3766 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
3767 : : {
3768 : 17 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3769 : 17 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1051;
3770 : 17 : {
3771 : 17 : tree res_op0;
3772 : 17 : res_op0 = captures[0];
3773 : 17 : tree res_op1;
3774 : 17 : res_op1 = captures[1];
3775 : 17 : tree _r;
3776 : 17 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
3777 : 17 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 752, __FILE__, __LINE__, true);
3778 : : return _r;
3779 : : }
3780 : 0 : next_after_fail1051:;
3781 : 0 : return NULL_TREE;
3782 : : }
3783 : :
3784 : : tree
3785 : 31 : generic_simplify_490 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3786 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
3787 : : {
3788 : 31 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3789 : 31 : if (!TYPE_UNSIGNED (TREE_TYPE (captures[2]))
3790 : 54 : && (element_precision (TREE_TYPE (captures[2]))
3791 : 23 : <= element_precision (TREE_TYPE (captures[3]))
3792 : 1 : || !TYPE_UNSIGNED (TREE_TYPE (captures[3])))
3793 : : )
3794 : : {
3795 : 22 : {
3796 : 22 : tree shift_type = TREE_TYPE (captures[2]);
3797 : 22 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1053;
3798 : 22 : {
3799 : 22 : tree res_op0;
3800 : 22 : {
3801 : 22 : tree _o1[2], _r1;
3802 : 22 : {
3803 : 22 : tree _o2[1], _r2;
3804 : 22 : _o2[0] = captures[3];
3805 : 22 : if (TREE_TYPE (_o2[0]) != shift_type)
3806 : : {
3807 : 1 : _r2 = fold_build1_loc (loc, NOP_EXPR, shift_type, _o2[0]);
3808 : : }
3809 : : else
3810 : : _r2 = _o2[0];
3811 : 22 : _o1[0] = _r2;
3812 : : }
3813 : 22 : _o1[1] = captures[4];
3814 : 22 : _r1 = fold_build2_loc (loc, RSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3815 : 22 : res_op0 = _r1;
3816 : : }
3817 : 22 : tree _r;
3818 : 22 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3819 : 22 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 754, __FILE__, __LINE__, true);
3820 : 22 : return _r;
3821 : : }
3822 : 0 : next_after_fail1053:;
3823 : : }
3824 : : }
3825 : : return NULL_TREE;
3826 : : }
3827 : :
3828 : : tree
3829 : 0 : generic_simplify_496 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3830 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
3831 : : const enum tree_code ARG_UNUSED (minmax),
3832 : : const enum tree_code ARG_UNUSED (maxmin))
3833 : : {
3834 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3835 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1059;
3836 : 0 : {
3837 : 0 : tree res_op0;
3838 : 0 : res_op0 = captures[1];
3839 : 0 : tree res_op1;
3840 : 0 : {
3841 : 0 : tree _o1[1], _r1;
3842 : 0 : _o1[0] = captures[2];
3843 : 0 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
3844 : 0 : res_op1 = _r1;
3845 : : }
3846 : 0 : tree _r;
3847 : 0 : _r = fold_build2_loc (loc, maxmin, type, res_op0, res_op1);
3848 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 759, __FILE__, __LINE__, true);
3849 : : return _r;
3850 : : }
3851 : 0 : next_after_fail1059:;
3852 : 0 : return NULL_TREE;
3853 : : }
3854 : :
3855 : : tree
3856 : 147 : generic_simplify_501 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3857 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
3858 : : {
3859 : 147 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3860 : 147 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1065;
3861 : 147 : {
3862 : 147 : tree res_op0;
3863 : 147 : {
3864 : 147 : tree _o1[1], _r1;
3865 : 147 : _o1[0] = captures[0];
3866 : 147 : if (TREE_TYPE (_o1[0]) != type)
3867 : : {
3868 : 0 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
3869 : : }
3870 : : else
3871 : : _r1 = _o1[0];
3872 : 147 : res_op0 = _r1;
3873 : : }
3874 : 147 : tree res_op1;
3875 : 147 : res_op1 = build_each_one_cst (type);
3876 : 147 : tree _r;
3877 : 147 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
3878 : 147 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 764, __FILE__, __LINE__, true);
3879 : : return _r;
3880 : : }
3881 : 0 : next_after_fail1065:;
3882 : 0 : return NULL_TREE;
3883 : : }
3884 : :
3885 : : tree
3886 : 2 : generic_simplify_510 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3887 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3888 : : {
3889 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3890 : 2 : if (TREE_CODE (type) != COMPLEX_TYPE
3891 : 2 : && (! ANY_INTEGRAL_TYPE_P (type)
3892 : 1 : || TYPE_OVERFLOW_UNDEFINED (type))
3893 : : )
3894 : : {
3895 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1075;
3896 : 2 : {
3897 : 2 : tree res_op0;
3898 : 2 : {
3899 : 2 : tree _o1[1], _r1;
3900 : 2 : _o1[0] = captures[0];
3901 : 2 : _r1 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
3902 : 2 : res_op0 = _r1;
3903 : : }
3904 : 2 : tree _r;
3905 : 2 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
3906 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 773, __FILE__, __LINE__, true);
3907 : 2 : return _r;
3908 : : }
3909 : 0 : next_after_fail1075:;
3910 : : }
3911 : : return NULL_TREE;
3912 : : }
3913 : :
3914 : : tree
3915 : 2 : generic_simplify_518 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3916 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3917 : : {
3918 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3919 : 2 : if (TREE_CODE (type) != COMPLEX_TYPE
3920 : 2 : && (! ANY_INTEGRAL_TYPE_P (type)
3921 : 1 : || TYPE_OVERFLOW_UNDEFINED (type))
3922 : : )
3923 : : {
3924 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1095;
3925 : 2 : {
3926 : 2 : tree res_op0;
3927 : 2 : res_op0 = captures[0];
3928 : 2 : tree _r;
3929 : 2 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
3930 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 781, __FILE__, __LINE__, true);
3931 : 2 : return _r;
3932 : : }
3933 : 0 : next_after_fail1095:;
3934 : : }
3935 : : return NULL_TREE;
3936 : : }
3937 : :
3938 : : tree
3939 : 0 : generic_simplify_523 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3940 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3941 : : const enum tree_code ARG_UNUSED (rotate))
3942 : : {
3943 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3944 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1100;
3945 : 0 : {
3946 : 0 : tree _r;
3947 : 0 : _r = captures[0];
3948 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
3949 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3950 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 786, __FILE__, __LINE__, true);
3951 : : return _r;
3952 : : }
3953 : 0 : next_after_fail1100:;
3954 : 0 : return NULL_TREE;
3955 : : }
3956 : :
3957 : : tree
3958 : 0 : generic_simplify_528 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3959 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
3960 : : const combined_fn ARG_UNUSED (bswap))
3961 : : {
3962 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3963 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1108;
3964 : 0 : {
3965 : 0 : tree res_op0;
3966 : 0 : res_op0 = captures[0];
3967 : 0 : tree _r;
3968 : 0 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
3969 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 794, __FILE__, __LINE__, true);
3970 : : return _r;
3971 : : }
3972 : 0 : next_after_fail1108:;
3973 : 0 : return NULL_TREE;
3974 : : }
3975 : :
3976 : : tree
3977 : 0 : generic_simplify_534 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3978 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
3979 : : const enum tree_code ARG_UNUSED (cmp))
3980 : : {
3981 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3982 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1114;
3983 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1114;
3984 : 0 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1114;
3985 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1114;
3986 : 0 : {
3987 : 0 : tree _r;
3988 : 0 : _r = captures[0];
3989 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 588, __FILE__, __LINE__, true);
3990 : : return _r;
3991 : : }
3992 : : next_after_fail1114:;
3993 : : return NULL_TREE;
3994 : : }
3995 : :
3996 : : tree
3997 : 0 : generic_simplify_542 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3998 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
3999 : : const combined_fn ARG_UNUSED (cond_len_op))
4000 : : {
4001 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4002 : 0 : {
4003 : 0 : tree op_type = TREE_TYPE (captures[6]);
4004 : 0 : if (inverse_conditions_p (captures[0], captures[2])
4005 : 0 : && element_precision (type) == element_precision (op_type)
4006 : : )
4007 : : {
4008 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1122;
4009 : 0 : {
4010 : 0 : tree res_op0;
4011 : 0 : {
4012 : 0 : tree _o1[7], _r1;
4013 : 0 : _o1[0] = captures[2];
4014 : 0 : _o1[1] = captures[3];
4015 : 0 : _o1[2] = captures[4];
4016 : 0 : _o1[3] = captures[5];
4017 : 0 : {
4018 : 0 : tree _o2[1], _r2;
4019 : 0 : _o2[0] = captures[1];
4020 : 0 : if (TREE_TYPE (_o2[0]) != op_type)
4021 : : {
4022 : 0 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, op_type, _o2[0]);
4023 : : }
4024 : : else
4025 : : _r2 = _o2[0];
4026 : 0 : _o1[4] = _r2;
4027 : : }
4028 : 0 : _o1[5] = captures[7];
4029 : 0 : _o1[6] = captures[8];
4030 : 0 : _r1 = maybe_build_call_expr_loc (loc, cond_len_op, TREE_TYPE (_o1[1]), 7, _o1[0], _o1[1], _o1[2], _o1[3], _o1[4], _o1[5], _o1[6]);
4031 : 0 : if (!_r1)
4032 : 0 : goto next_after_fail1122;
4033 : 0 : res_op0 = _r1;
4034 : : }
4035 : 0 : tree _r;
4036 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
4037 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
4038 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
4039 : 0 : if (TREE_SIDE_EFFECTS (captures[6]))
4040 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[6]), _r);
4041 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 803, __FILE__, __LINE__, true);
4042 : 0 : return _r;
4043 : : }
4044 : : next_after_fail1122:;
4045 : : }
4046 : : }
4047 : : return NULL_TREE;
4048 : : }
4049 : :
4050 : : tree
4051 : 0 : generic_simplify_552 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4052 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4053 : : const combined_fn ARG_UNUSED (logs),
4054 : : const combined_fn ARG_UNUSED (pows))
4055 : : {
4056 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4057 : 0 : if (flag_unsafe_math_optimizations
4058 : : )
4059 : : {
4060 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1132;
4061 : 0 : {
4062 : 0 : tree res_op0;
4063 : 0 : res_op0 = captures[1];
4064 : 0 : tree res_op1;
4065 : 0 : {
4066 : 0 : tree _o1[1], _r1;
4067 : 0 : _o1[0] = captures[0];
4068 : 0 : _r1 = maybe_build_call_expr_loc (loc, logs, TREE_TYPE (_o1[0]), 1, _o1[0]);
4069 : 0 : if (!_r1)
4070 : 0 : goto next_after_fail1132;
4071 : 0 : res_op1 = _r1;
4072 : : }
4073 : 0 : tree _r;
4074 : 0 : _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
4075 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 813, __FILE__, __LINE__, true);
4076 : 0 : return _r;
4077 : : }
4078 : : next_after_fail1132:;
4079 : : }
4080 : : return NULL_TREE;
4081 : : }
4082 : :
4083 : : tree
4084 : 0 : generic_simplify_562 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4085 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
4086 : : {
4087 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4088 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1142;
4089 : 0 : {
4090 : 0 : tree _r;
4091 : 0 : _r = captures[0];
4092 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
4093 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
4094 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 823, __FILE__, __LINE__, true);
4095 : : return _r;
4096 : : }
4097 : 0 : next_after_fail1142:;
4098 : 0 : return NULL_TREE;
4099 : : }
4100 : :
4101 : : tree
4102 : 0 : generic_simplify_570 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4103 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4104 : : const combined_fn ARG_UNUSED (SIGNBIT))
4105 : : {
4106 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4107 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1150;
4108 : 0 : {
4109 : 0 : tree _r;
4110 : 0 : _r = integer_zero_node;
4111 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
4112 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
4113 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 831, __FILE__, __LINE__, true);
4114 : : return _r;
4115 : : }
4116 : 0 : next_after_fail1150:;
4117 : 0 : return NULL_TREE;
4118 : : }
4119 : :
4120 : : tree
4121 : 0 : generic_simplify_577 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4122 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
4123 : : {
4124 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4125 : 0 : if (canonicalize_math_after_vectorization_p ()
4126 : : )
4127 : : {
4128 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1157;
4129 : : {
4130 : : tree res_op0;
4131 : : res_op0 = captures[0];
4132 : : tree res_op1;
4133 : : res_op1 = captures[1];
4134 : : tree res_op2;
4135 : : res_op2 = captures[2];
4136 : : tree _r;
4137 : : _r = maybe_build_call_expr_loc (loc, CFN_FMA, type, 3, res_op0, res_op1, res_op2);
4138 : : if (!_r)
4139 : : goto next_after_fail1157;
4140 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 838, __FILE__, __LINE__, true);
4141 : : return _r;
4142 : : }
4143 : 0 : next_after_fail1157:;
4144 : : }
4145 : 0 : return NULL_TREE;
4146 : : }
4147 : :
4148 : : tree
4149 : 0 : generic_simplify_587 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4150 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4151 : : const combined_fn ARG_UNUSED (bswap),
4152 : : const combined_fn ARG_UNUSED (popcount))
4153 : : {
4154 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4155 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
4156 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
4157 : : )
4158 : : {
4159 : 0 : {
4160 : 0 : tree type0 = TREE_TYPE (captures[0]);
4161 : 0 : tree type1 = TREE_TYPE (captures[1]);
4162 : 0 : unsigned int prec0 = TYPE_PRECISION (type0);
4163 : 0 : unsigned int prec1 = TYPE_PRECISION (type1);
4164 : 0 : if (prec0 == prec1 || (prec0 > prec1 && TYPE_UNSIGNED (type1))
4165 : : )
4166 : : {
4167 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1167;
4168 : 0 : {
4169 : 0 : tree res_op0;
4170 : 0 : {
4171 : 0 : tree _o1[1], _r1;
4172 : 0 : {
4173 : 0 : tree _o2[1], _r2;
4174 : 0 : _o2[0] = captures[2];
4175 : 0 : if (TREE_TYPE (_o2[0]) != type1)
4176 : : {
4177 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, type1, _o2[0]);
4178 : : }
4179 : : else
4180 : : _r2 = _o2[0];
4181 : 0 : _o1[0] = _r2;
4182 : : }
4183 : 0 : if (TREE_TYPE (_o1[0]) != type0)
4184 : : {
4185 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type0, _o1[0]);
4186 : : }
4187 : : else
4188 : : _r1 = _o1[0];
4189 : 0 : res_op0 = _r1;
4190 : : }
4191 : 0 : tree _r;
4192 : 0 : _r = maybe_build_call_expr_loc (loc, popcount, type, 1, res_op0);
4193 : 0 : if (!_r)
4194 : 0 : goto next_after_fail1167;
4195 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 843, __FILE__, __LINE__, true);
4196 : 0 : return _r;
4197 : : }
4198 : : next_after_fail1167:;
4199 : : }
4200 : : }
4201 : : }
4202 : : return NULL_TREE;
4203 : : }
4204 : :
4205 : : tree
4206 : 0 : generic_simplify_598 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4207 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
4208 : : {
4209 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4210 : 0 : {
4211 : 0 : bool can_fold = false;
4212 : 0 : unsigned HOST_WIDE_INT nelts;
4213 : 0 : vec_perm_builder builder;
4214 : 0 : if (TYPE_VECTOR_SUBPARTS (type).is_constant (&nelts)
4215 : 0 : && tree_to_vec_perm_builder (&builder, captures[2]))
4216 : : {
4217 : 0 : vec_perm_indices sel0 (builder, 2, VECTOR_CST_NELTS (captures[2]));
4218 : 0 : unsigned int sel0_first_idx = sel0[0].to_constant ();
4219 : 0 : unsigned int elt_size = vector_element_bits (TREE_TYPE (captures[0]));
4220 : 0 : unsigned int ia_size = tree_to_uhwi (TYPE_SIZE (type))
4221 : 0 : - elt_size * sel0_first_idx;
4222 : 0 : unsigned int ib_start;
4223 : 0 : if (sel0.series_p (0, 1, sel0_first_idx, 1)
4224 : 0 : && multiple_p (ia_size, vector_element_bits (type), &ib_start)
4225 : 0 : && tree_to_vec_perm_builder (&builder, captures[5]))
4226 : : {
4227 : 0 : vec_perm_indices sel1 (builder, 2, VECTOR_CST_NELTS (captures[5]));
4228 : 0 : can_fold = sel1.series_p (ib_start, 1, nelts + ib_start, 1);
4229 : 0 : if (can_fold)
4230 : 0 : for (unsigned int i = 0; i < ib_start; i++)
4231 : 0 : if (sel1[i].to_constant () != i)
4232 : : {
4233 : : can_fold = false;
4234 : : break;
4235 : : }
4236 : 0 : }
4237 : 0 : }
4238 : 0 : if (can_fold
4239 : : )
4240 : : {
4241 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1180;
4242 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail1180;
4243 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1180;
4244 : 0 : {
4245 : 0 : tree res_op0;
4246 : 0 : {
4247 : 0 : tree _o1[3], _r1;
4248 : 0 : _o1[0] = captures[0];
4249 : 0 : _o1[1] = captures[4];
4250 : 0 : _o1[2] = captures[2];
4251 : 0 : _r1 = fold_build3_loc (loc, VEC_PERM_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1], _o1[2]);
4252 : 0 : res_op0 = _r1;
4253 : : }
4254 : 0 : tree _r;
4255 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
4256 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
4257 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
4258 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
4259 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
4260 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 854, __FILE__, __LINE__, true);
4261 : 0 : return _r;
4262 : : }
4263 : 0 : next_after_fail1180:;
4264 : : }
4265 : 0 : }
4266 : 0 : return NULL_TREE;
4267 : : }
4268 : :
4269 : : tree
4270 : 3339 : generic_simplify_PAREN_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0)
4271 : : {
4272 : 3339 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4273 : 3339 : switch (TREE_CODE (_p0))
4274 : : {
4275 : 2 : case PAREN_EXPR:
4276 : 2 : {
4277 : 2 : tree _q20 = TREE_OPERAND (_p0, 0);
4278 : 2 : {
4279 : 2 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
4280 : 2 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1270;
4281 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1270;
4282 : 2 : {
4283 : 2 : tree _r;
4284 : 2 : _r = captures[0];
4285 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 902, __FILE__, __LINE__, true);
4286 : 2 : return _r;
4287 : : }
4288 : 0 : next_after_fail1270:;
4289 : : }
4290 : 0 : break;
4291 : : }
4292 : 3337 : default:;
4293 : : }
4294 : 3337 : if (CONSTANT_CLASS_P (_p0))
4295 : : {
4296 : 1 : {
4297 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4298 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1271;
4299 : 1 : {
4300 : 1 : tree _r;
4301 : 1 : _r = captures[0];
4302 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 903, __FILE__, __LINE__, true);
4303 : 1 : return _r;
4304 : : }
4305 : 0 : next_after_fail1271:;
4306 : : }
4307 : : }
4308 : : return NULL_TREE;
4309 : : }
4310 : :
4311 : : tree
4312 : 1843941 : generic_simplify_REALPART_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0)
4313 : : {
4314 : 1843941 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4315 : 1843941 : switch (TREE_CODE (_p0))
4316 : : {
4317 : 9611 : case COMPLEX_EXPR:
4318 : 9611 : {
4319 : 9611 : tree _q20 = TREE_OPERAND (_p0, 0);
4320 : 9611 : tree _q21 = TREE_OPERAND (_p0, 1);
4321 : 9611 : {
4322 : 9611 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4323 : 9611 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1272;
4324 : 9611 : {
4325 : 9611 : tree _r;
4326 : 9611 : _r = captures[0];
4327 : 9611 : if (TREE_SIDE_EFFECTS (captures[1]))
4328 : 1366 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
4329 : 9611 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 904, __FILE__, __LINE__, true);
4330 : 9611 : return _r;
4331 : : }
4332 : 0 : next_after_fail1272:;
4333 : : }
4334 : 0 : break;
4335 : : }
4336 : 48949 : CASE_CONVERT:
4337 : 48949 : {
4338 : 48949 : tree _q20 = TREE_OPERAND (_p0, 0);
4339 : 48949 : switch (TREE_CODE (_q20))
4340 : : {
4341 : 0 : case CONJ_EXPR:
4342 : 0 : {
4343 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
4344 : 0 : {
4345 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
4346 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1273;
4347 : 0 : {
4348 : 0 : tree res_op0;
4349 : 0 : {
4350 : 0 : tree _o1[1], _r1;
4351 : 0 : _o1[0] = captures[2];
4352 : 0 : _r1 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o1[0])), _o1[0]);
4353 : 0 : res_op0 = _r1;
4354 : : }
4355 : 0 : tree _r;
4356 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4357 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 905, __FILE__, __LINE__, true);
4358 : 0 : return _r;
4359 : : }
4360 : 0 : next_after_fail1273:;
4361 : : }
4362 : 0 : break;
4363 : : }
4364 : 0 : case PLUS_EXPR:
4365 : 0 : {
4366 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
4367 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
4368 : 0 : {
4369 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31 };
4370 : 0 : const enum tree_code op = PLUS_EXPR;
4371 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1274;
4372 : 0 : {
4373 : 0 : tree res_op0;
4374 : 0 : {
4375 : 0 : tree _o1[2], _r1;
4376 : 0 : {
4377 : 0 : tree _o2[1], _r2;
4378 : 0 : _o2[0] = captures[2];
4379 : 0 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4380 : 0 : _o1[0] = _r2;
4381 : : }
4382 : 0 : {
4383 : 0 : tree _o2[1], _r2;
4384 : 0 : _o2[0] = captures[3];
4385 : 0 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4386 : 0 : _o1[1] = _r2;
4387 : : }
4388 : 0 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4389 : 0 : res_op0 = _r1;
4390 : : }
4391 : 0 : tree _r;
4392 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4393 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 906, __FILE__, __LINE__, true);
4394 : 0 : return _r;
4395 : : }
4396 : 0 : next_after_fail1274:;
4397 : : }
4398 : 0 : break;
4399 : : }
4400 : 0 : case MINUS_EXPR:
4401 : 0 : {
4402 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
4403 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
4404 : 0 : {
4405 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31 };
4406 : 0 : const enum tree_code op = MINUS_EXPR;
4407 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1275;
4408 : 0 : {
4409 : 0 : tree res_op0;
4410 : 0 : {
4411 : 0 : tree _o1[2], _r1;
4412 : 0 : {
4413 : 0 : tree _o2[1], _r2;
4414 : 0 : _o2[0] = captures[2];
4415 : 0 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4416 : 0 : _o1[0] = _r2;
4417 : : }
4418 : 0 : {
4419 : 0 : tree _o2[1], _r2;
4420 : 0 : _o2[0] = captures[3];
4421 : 0 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4422 : 0 : _o1[1] = _r2;
4423 : : }
4424 : 0 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4425 : 0 : res_op0 = _r1;
4426 : : }
4427 : 0 : tree _r;
4428 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4429 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 906, __FILE__, __LINE__, true);
4430 : 0 : return _r;
4431 : : }
4432 : 0 : next_after_fail1275:;
4433 : : }
4434 : 0 : break;
4435 : : }
4436 : 0 : case CALL_EXPR:
4437 : 0 : switch (get_call_combined_fn (_q20))
4438 : : {
4439 : 0 : case CFN_BUILT_IN_CEXPIF:
4440 : 0 : if (call_expr_nargs (_q20) == 1)
4441 : : {
4442 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
4443 : 0 : {
4444 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
4445 : 0 : if (single_use (captures[1]) && single_use (captures[0])
4446 : : )
4447 : : {
4448 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1276;
4449 : 0 : {
4450 : 0 : tree res_op0;
4451 : 0 : {
4452 : 0 : tree _o1[1], _r1;
4453 : 0 : _o1[0] = captures[2];
4454 : 0 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_COSF, TREE_TYPE (_o1[0]), 1, _o1[0]);
4455 : 0 : if (!_r1)
4456 : 0 : goto next_after_fail1276;
4457 : 0 : res_op0 = _r1;
4458 : : }
4459 : 0 : tree _r;
4460 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4461 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 907, __FILE__, __LINE__, true);
4462 : 0 : return _r;
4463 : : }
4464 : 0 : next_after_fail1276:;
4465 : : }
4466 : : }
4467 : : }
4468 : : break;
4469 : 0 : case CFN_BUILT_IN_CEXPIL:
4470 : 0 : if (call_expr_nargs (_q20) == 1)
4471 : : {
4472 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
4473 : 0 : {
4474 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
4475 : 0 : if (single_use (captures[1]) && single_use (captures[0])
4476 : : )
4477 : : {
4478 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1277;
4479 : 0 : {
4480 : 0 : tree res_op0;
4481 : 0 : {
4482 : 0 : tree _o1[1], _r1;
4483 : 0 : _o1[0] = captures[2];
4484 : 0 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_COSL, TREE_TYPE (_o1[0]), 1, _o1[0]);
4485 : 0 : if (!_r1)
4486 : 0 : goto next_after_fail1277;
4487 : 0 : res_op0 = _r1;
4488 : : }
4489 : 0 : tree _r;
4490 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4491 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 907, __FILE__, __LINE__, true);
4492 : 0 : return _r;
4493 : : }
4494 : 0 : next_after_fail1277:;
4495 : : }
4496 : : }
4497 : : }
4498 : : break;
4499 : 0 : case CFN_BUILT_IN_CEXPI:
4500 : 0 : if (call_expr_nargs (_q20) == 1)
4501 : : {
4502 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
4503 : 0 : {
4504 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
4505 : 0 : if (single_use (captures[1]) && single_use (captures[0])
4506 : : )
4507 : : {
4508 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1278;
4509 : 0 : {
4510 : 0 : tree res_op0;
4511 : 0 : {
4512 : 0 : tree _o1[1], _r1;
4513 : 0 : _o1[0] = captures[2];
4514 : 0 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_COS, TREE_TYPE (_o1[0]), 1, _o1[0]);
4515 : 0 : if (!_r1)
4516 : 0 : goto next_after_fail1278;
4517 : 0 : res_op0 = _r1;
4518 : : }
4519 : 0 : tree _r;
4520 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4521 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 907, __FILE__, __LINE__, true);
4522 : 0 : return _r;
4523 : : }
4524 : 0 : next_after_fail1278:;
4525 : : }
4526 : : }
4527 : : }
4528 : : break;
4529 : : default:;
4530 : : }
4531 : : break;
4532 : : default:;
4533 : : }
4534 : : break;
4535 : : }
4536 : 16 : case CONJ_EXPR:
4537 : 16 : {
4538 : 16 : tree _q20 = TREE_OPERAND (_p0, 0);
4539 : 16 : {
4540 : 16 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q20 };
4541 : 16 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1279;
4542 : 16 : {
4543 : 16 : tree res_op0;
4544 : 16 : {
4545 : 16 : tree _o1[1], _r1;
4546 : 16 : _o1[0] = captures[2];
4547 : 16 : _r1 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o1[0])), _o1[0]);
4548 : 16 : res_op0 = _r1;
4549 : : }
4550 : 16 : tree _r;
4551 : 16 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4552 : 16 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 905, __FILE__, __LINE__, true);
4553 : 16 : return _r;
4554 : : }
4555 : 0 : next_after_fail1279:;
4556 : : }
4557 : 0 : break;
4558 : : }
4559 : 407 : case PLUS_EXPR:
4560 : 407 : {
4561 : 407 : tree _q20 = TREE_OPERAND (_p0, 0);
4562 : 407 : tree _q21 = TREE_OPERAND (_p0, 1);
4563 : 407 : {
4564 : 407 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21 };
4565 : 407 : const enum tree_code op = PLUS_EXPR;
4566 : 407 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1280;
4567 : 407 : {
4568 : 407 : tree res_op0;
4569 : 407 : {
4570 : 407 : tree _o1[2], _r1;
4571 : 407 : {
4572 : 407 : tree _o2[1], _r2;
4573 : 407 : _o2[0] = captures[2];
4574 : 407 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4575 : 407 : _o1[0] = _r2;
4576 : : }
4577 : 407 : {
4578 : 407 : tree _o2[1], _r2;
4579 : 407 : _o2[0] = captures[3];
4580 : 407 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4581 : 407 : _o1[1] = _r2;
4582 : : }
4583 : 407 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4584 : 407 : res_op0 = _r1;
4585 : : }
4586 : 407 : tree _r;
4587 : 407 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4588 : 407 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 906, __FILE__, __LINE__, true);
4589 : 407 : return _r;
4590 : : }
4591 : 0 : next_after_fail1280:;
4592 : : }
4593 : 0 : break;
4594 : : }
4595 : 47 : case MINUS_EXPR:
4596 : 47 : {
4597 : 47 : tree _q20 = TREE_OPERAND (_p0, 0);
4598 : 47 : tree _q21 = TREE_OPERAND (_p0, 1);
4599 : 47 : {
4600 : 47 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21 };
4601 : 47 : const enum tree_code op = MINUS_EXPR;
4602 : 47 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1281;
4603 : 47 : {
4604 : 47 : tree res_op0;
4605 : 47 : {
4606 : 47 : tree _o1[2], _r1;
4607 : 47 : {
4608 : 47 : tree _o2[1], _r2;
4609 : 47 : _o2[0] = captures[2];
4610 : 47 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4611 : 47 : _o1[0] = _r2;
4612 : : }
4613 : 47 : {
4614 : 47 : tree _o2[1], _r2;
4615 : 47 : _o2[0] = captures[3];
4616 : 47 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4617 : 47 : _o1[1] = _r2;
4618 : : }
4619 : 47 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4620 : 47 : res_op0 = _r1;
4621 : : }
4622 : 47 : tree _r;
4623 : 47 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4624 : 47 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 906, __FILE__, __LINE__, true);
4625 : 47 : return _r;
4626 : : }
4627 : 0 : next_after_fail1281:;
4628 : : }
4629 : 0 : break;
4630 : : }
4631 : 257 : case CALL_EXPR:
4632 : 257 : switch (get_call_combined_fn (_p0))
4633 : : {
4634 : 0 : case CFN_BUILT_IN_CEXPIF:
4635 : 0 : if (call_expr_nargs (_p0) == 1)
4636 : : {
4637 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4638 : 0 : {
4639 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q20 };
4640 : 0 : if (single_use (captures[1]) && single_use (captures[0])
4641 : : )
4642 : : {
4643 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1282;
4644 : 0 : {
4645 : 0 : tree res_op0;
4646 : 0 : {
4647 : 0 : tree _o1[1], _r1;
4648 : 0 : _o1[0] = captures[2];
4649 : 0 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_COSF, TREE_TYPE (_o1[0]), 1, _o1[0]);
4650 : 0 : if (!_r1)
4651 : 0 : goto next_after_fail1282;
4652 : 0 : res_op0 = _r1;
4653 : : }
4654 : 0 : tree _r;
4655 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4656 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 907, __FILE__, __LINE__, true);
4657 : 0 : return _r;
4658 : : }
4659 : 0 : next_after_fail1282:;
4660 : : }
4661 : : }
4662 : : }
4663 : : break;
4664 : 0 : case CFN_BUILT_IN_CEXPIL:
4665 : 0 : if (call_expr_nargs (_p0) == 1)
4666 : : {
4667 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4668 : 0 : {
4669 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q20 };
4670 : 0 : if (single_use (captures[1]) && single_use (captures[0])
4671 : : )
4672 : : {
4673 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1283;
4674 : 0 : {
4675 : 0 : tree res_op0;
4676 : 0 : {
4677 : 0 : tree _o1[1], _r1;
4678 : 0 : _o1[0] = captures[2];
4679 : 0 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_COSL, TREE_TYPE (_o1[0]), 1, _o1[0]);
4680 : 0 : if (!_r1)
4681 : 0 : goto next_after_fail1283;
4682 : 0 : res_op0 = _r1;
4683 : : }
4684 : 0 : tree _r;
4685 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4686 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 907, __FILE__, __LINE__, true);
4687 : 0 : return _r;
4688 : : }
4689 : 0 : next_after_fail1283:;
4690 : : }
4691 : : }
4692 : : }
4693 : : break;
4694 : 1 : case CFN_BUILT_IN_CEXPI:
4695 : 1 : if (call_expr_nargs (_p0) == 1)
4696 : : {
4697 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4698 : 1 : {
4699 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q20 };
4700 : 1 : if (single_use (captures[1]) && single_use (captures[0])
4701 : : )
4702 : : {
4703 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1284;
4704 : 1 : {
4705 : 1 : tree res_op0;
4706 : 1 : {
4707 : 1 : tree _o1[1], _r1;
4708 : 1 : _o1[0] = captures[2];
4709 : 1 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_COS, TREE_TYPE (_o1[0]), 1, _o1[0]);
4710 : 1 : if (!_r1)
4711 : 0 : goto next_after_fail1284;
4712 : 1 : res_op0 = _r1;
4713 : : }
4714 : 1 : tree _r;
4715 : 1 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4716 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 907, __FILE__, __LINE__, true);
4717 : 1 : return _r;
4718 : : }
4719 : 0 : next_after_fail1284:;
4720 : : }
4721 : : }
4722 : : }
4723 : : break;
4724 : : default:;
4725 : : }
4726 : : break;
4727 : : default:;
4728 : : }
4729 : : return NULL_TREE;
4730 : : }
4731 : :
4732 : : tree
4733 : 2775259 : 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)
4734 : : {
4735 : 2775259 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4736 : 2775259 : if (integer_zerop (_p1))
4737 : : {
4738 : 29 : {
4739 : 29 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4740 : 29 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1509;
4741 : 29 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1509;
4742 : 29 : {
4743 : 29 : tree res_op0;
4744 : 29 : res_op0 = captures[0];
4745 : 29 : tree _r;
4746 : 29 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4747 : 29 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 971, __FILE__, __LINE__, true);
4748 : 29 : return _r;
4749 : : }
4750 : : next_after_fail1509:;
4751 : : }
4752 : : }
4753 : 2775230 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _p0, 0))
4754 : : {
4755 : 46419 : {
4756 : 46419 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p0 };
4757 : 46419 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1510;
4758 : 46419 : {
4759 : 46419 : tree _r;
4760 : 46419 : _r = build_zero_cst (type);
4761 : 46419 : if (TREE_SIDE_EFFECTS (captures[1]))
4762 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
4763 : 46419 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 972, __FILE__, __LINE__, true);
4764 : 46419 : return _r;
4765 : : }
4766 : 0 : next_after_fail1510:;
4767 : : }
4768 : : }
4769 : 2728811 : switch (TREE_CODE (_p0))
4770 : : {
4771 : 106071 : case POINTER_PLUS_EXPR:
4772 : 106071 : {
4773 : 106071 : tree _q20 = TREE_OPERAND (_p0, 0);
4774 : 106071 : tree _q21 = TREE_OPERAND (_p0, 1);
4775 : 106071 : switch (TREE_CODE (_p1))
4776 : : {
4777 : 24813 : case POINTER_PLUS_EXPR:
4778 : 24813 : {
4779 : 24813 : tree _q50 = TREE_OPERAND (_p1, 0);
4780 : 24813 : tree _q51 = TREE_OPERAND (_p1, 1);
4781 : 24813 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
4782 : : {
4783 : 24808 : {
4784 : 24808 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
4785 : 24808 : if (TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[1]))
4786 : : )
4787 : : {
4788 : 24808 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1511;
4789 : 24808 : {
4790 : 24808 : tree res_op0;
4791 : 24808 : {
4792 : 24808 : tree _o1[2], _r1;
4793 : 24808 : _o1[0] = captures[1];
4794 : 24808 : _o1[1] = captures[2];
4795 : 24808 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4796 : 24808 : res_op0 = _r1;
4797 : : }
4798 : 24808 : tree _r;
4799 : 24808 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4800 : 24808 : if (TREE_SIDE_EFFECTS (captures[0]))
4801 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
4802 : 24808 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 973, __FILE__, __LINE__, true);
4803 : 24808 : return _r;
4804 : : }
4805 : 0 : next_after_fail1511:;
4806 : : }
4807 : : }
4808 : : }
4809 : : break;
4810 : : }
4811 : : default:;
4812 : : }
4813 : : break;
4814 : : }
4815 : 158911 : CASE_CONVERT:
4816 : 158911 : {
4817 : 158911 : tree _q20 = TREE_OPERAND (_p0, 0);
4818 : 158911 : switch (TREE_CODE (_q20))
4819 : : {
4820 : 3628 : case ADDR_EXPR:
4821 : 3628 : {
4822 : 3628 : switch (TREE_CODE (_p1))
4823 : : {
4824 : 324 : CASE_CONVERT:
4825 : 324 : {
4826 : 324 : tree _q40 = TREE_OPERAND (_p1, 0);
4827 : 324 : {
4828 : 324 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
4829 : 324 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
4830 : 324 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
4831 : : )
4832 : : {
4833 : 324 : {
4834 : 324 : poly_int64 diff;
4835 : 324 : if (ptr_difference_const (captures[1], captures[3], &diff)
4836 : : )
4837 : : {
4838 : 189 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1512;
4839 : 189 : {
4840 : 189 : tree _r;
4841 : 189 : _r = build_int_cst_type (type, diff);
4842 : 189 : if (TREE_SIDE_EFFECTS (captures[1]))
4843 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
4844 : 189 : if (TREE_SIDE_EFFECTS (captures[3]))
4845 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
4846 : 189 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 974, __FILE__, __LINE__, true);
4847 : 189 : return _r;
4848 : : }
4849 : 0 : next_after_fail1512:;
4850 : : }
4851 : : }
4852 : : }
4853 : : }
4854 : 135 : break;
4855 : : }
4856 : 3439 : default:;
4857 : : }
4858 : 3439 : {
4859 : 3439 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
4860 : 3439 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
4861 : 3439 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
4862 : : )
4863 : : {
4864 : 3439 : {
4865 : 3439 : poly_int64 diff;
4866 : 3439 : if (ptr_difference_const (captures[1], captures[3], &diff)
4867 : : )
4868 : : {
4869 : 128 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1513;
4870 : 128 : {
4871 : 128 : tree _r;
4872 : 128 : _r = build_int_cst_type (type, diff);
4873 : 128 : if (TREE_SIDE_EFFECTS (captures[1]))
4874 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
4875 : 128 : if (TREE_SIDE_EFFECTS (captures[2]))
4876 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
4877 : 128 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 974, __FILE__, __LINE__, true);
4878 : 128 : return _r;
4879 : : }
4880 : 0 : next_after_fail1513:;
4881 : : }
4882 : : }
4883 : : }
4884 : : }
4885 : 3311 : break;
4886 : : }
4887 : 158594 : default:;
4888 : : }
4889 : 158594 : switch (TREE_CODE (_p1))
4890 : : {
4891 : 80992 : CASE_CONVERT:
4892 : 80992 : {
4893 : 80992 : tree _q40 = TREE_OPERAND (_p1, 0);
4894 : 80992 : switch (TREE_CODE (_q40))
4895 : : {
4896 : 468 : case ADDR_EXPR:
4897 : 468 : {
4898 : 468 : {
4899 : 468 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
4900 : 468 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
4901 : 468 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
4902 : : )
4903 : : {
4904 : 468 : {
4905 : 468 : poly_int64 diff;
4906 : 468 : if (ptr_difference_const (captures[1], captures[3], &diff)
4907 : : )
4908 : : {
4909 : 21 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1514;
4910 : 21 : {
4911 : 21 : tree _r;
4912 : 21 : _r = build_int_cst_type (type, diff);
4913 : 21 : if (TREE_SIDE_EFFECTS (captures[1]))
4914 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
4915 : 21 : if (TREE_SIDE_EFFECTS (captures[3]))
4916 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
4917 : 21 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 975, __FILE__, __LINE__, true);
4918 : 21 : return _r;
4919 : : }
4920 : 0 : next_after_fail1514:;
4921 : : }
4922 : : }
4923 : : }
4924 : : }
4925 : 447 : break;
4926 : : }
4927 : : default:;
4928 : : }
4929 : : break;
4930 : : }
4931 : 12 : case ADDR_EXPR:
4932 : 12 : {
4933 : 12 : {
4934 : 12 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
4935 : 12 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
4936 : 12 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
4937 : : )
4938 : : {
4939 : 12 : {
4940 : 12 : poly_int64 diff;
4941 : 12 : if (ptr_difference_const (captures[1], captures[3], &diff)
4942 : : )
4943 : : {
4944 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1515;
4945 : 0 : {
4946 : 0 : tree _r;
4947 : 0 : _r = build_int_cst_type (type, diff);
4948 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
4949 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
4950 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
4951 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
4952 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 975, __FILE__, __LINE__, true);
4953 : 0 : return _r;
4954 : : }
4955 : 0 : next_after_fail1515:;
4956 : : }
4957 : : }
4958 : : }
4959 : : }
4960 : 12 : break;
4961 : : }
4962 : : default:;
4963 : : }
4964 : : break;
4965 : : }
4966 : 1559 : case ADDR_EXPR:
4967 : 1559 : {
4968 : 1559 : switch (TREE_CODE (_p1))
4969 : : {
4970 : 50 : CASE_CONVERT:
4971 : 50 : {
4972 : 50 : tree _q30 = TREE_OPERAND (_p1, 0);
4973 : 50 : {
4974 : 50 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _p1, _q30 };
4975 : 50 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
4976 : 50 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
4977 : : )
4978 : : {
4979 : 50 : {
4980 : 50 : poly_int64 diff;
4981 : 50 : if (ptr_difference_const (captures[1], captures[3], &diff)
4982 : : )
4983 : : {
4984 : 29 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1516;
4985 : 29 : {
4986 : 29 : tree _r;
4987 : 29 : _r = build_int_cst_type (type, diff);
4988 : 29 : if (TREE_SIDE_EFFECTS (captures[0]))
4989 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
4990 : 29 : if (TREE_SIDE_EFFECTS (captures[3]))
4991 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
4992 : 29 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 974, __FILE__, __LINE__, true);
4993 : 29 : return _r;
4994 : : }
4995 : 0 : next_after_fail1516:;
4996 : : }
4997 : : }
4998 : : }
4999 : : }
5000 : 21 : break;
5001 : : }
5002 : 1530 : default:;
5003 : : }
5004 : 1530 : {
5005 : 1530 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _p1, _p1 };
5006 : 1530 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
5007 : 1530 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
5008 : : )
5009 : : {
5010 : 1530 : {
5011 : 1530 : poly_int64 diff;
5012 : 1530 : if (ptr_difference_const (captures[1], captures[3], &diff)
5013 : : )
5014 : : {
5015 : 242 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1517;
5016 : 242 : {
5017 : 242 : tree _r;
5018 : 242 : _r = build_int_cst_type (type, diff);
5019 : 242 : if (TREE_SIDE_EFFECTS (captures[0]))
5020 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
5021 : 242 : if (TREE_SIDE_EFFECTS (captures[2]))
5022 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
5023 : 242 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 974, __FILE__, __LINE__, true);
5024 : 242 : return _r;
5025 : : }
5026 : 0 : next_after_fail1517:;
5027 : : }
5028 : : }
5029 : : }
5030 : : }
5031 : 1288 : break;
5032 : : }
5033 : 2703394 : default:;
5034 : : }
5035 : 2703394 : switch (TREE_CODE (_p1))
5036 : : {
5037 : 288974 : CASE_CONVERT:
5038 : 288974 : {
5039 : 288974 : tree _q30 = TREE_OPERAND (_p1, 0);
5040 : 288974 : switch (TREE_CODE (_q30))
5041 : : {
5042 : 136742 : case ADDR_EXPR:
5043 : 136742 : {
5044 : 136742 : {
5045 : 136742 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _p1, _q30 };
5046 : 136742 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
5047 : 136742 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
5048 : : )
5049 : : {
5050 : 136742 : {
5051 : 136742 : poly_int64 diff;
5052 : 136742 : if (ptr_difference_const (captures[1], captures[3], &diff)
5053 : : )
5054 : : {
5055 : 70071 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1518;
5056 : 70071 : {
5057 : 70071 : tree _r;
5058 : 70071 : _r = build_int_cst_type (type, diff);
5059 : 70071 : if (TREE_SIDE_EFFECTS (captures[0]))
5060 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
5061 : 70071 : if (TREE_SIDE_EFFECTS (captures[3]))
5062 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
5063 : 70071 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 975, __FILE__, __LINE__, true);
5064 : 70071 : return _r;
5065 : : }
5066 : 0 : next_after_fail1518:;
5067 : : }
5068 : : }
5069 : : }
5070 : : }
5071 : 66671 : break;
5072 : : }
5073 : : default:;
5074 : : }
5075 : : break;
5076 : : }
5077 : 7675 : case ADDR_EXPR:
5078 : 7675 : {
5079 : 7675 : {
5080 : 7675 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _p1, _p1 };
5081 : 7675 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
5082 : 7675 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
5083 : : )
5084 : : {
5085 : 7675 : {
5086 : 7675 : poly_int64 diff;
5087 : 7675 : if (ptr_difference_const (captures[1], captures[3], &diff)
5088 : : )
5089 : : {
5090 : 38 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1519;
5091 : 38 : {
5092 : 38 : tree _r;
5093 : 38 : _r = build_int_cst_type (type, diff);
5094 : 38 : if (TREE_SIDE_EFFECTS (captures[0]))
5095 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
5096 : 38 : if (TREE_SIDE_EFFECTS (captures[2]))
5097 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
5098 : 38 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 975, __FILE__, __LINE__, true);
5099 : 38 : return _r;
5100 : : }
5101 : 0 : next_after_fail1519:;
5102 : : }
5103 : : }
5104 : : }
5105 : : }
5106 : 7637 : break;
5107 : : }
5108 : 2633285 : default:;
5109 : : }
5110 : 2633285 : switch (TREE_CODE (_p0))
5111 : : {
5112 : 11154 : case POINTER_PLUS_EXPR:
5113 : 11154 : {
5114 : 11154 : tree _q20 = TREE_OPERAND (_p0, 0);
5115 : 11154 : tree _q21 = TREE_OPERAND (_p0, 1);
5116 : 11154 : switch (TREE_CODE (_q20))
5117 : : {
5118 : 65 : case ADDR_EXPR:
5119 : 65 : {
5120 : 65 : switch (TREE_CODE (_p1))
5121 : : {
5122 : 0 : case POINTER_PLUS_EXPR:
5123 : 0 : {
5124 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
5125 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
5126 : 0 : switch (TREE_CODE (_q50))
5127 : : {
5128 : 0 : case ADDR_EXPR:
5129 : 0 : {
5130 : 0 : {
5131 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q50, _q51 };
5132 : 0 : {
5133 : 0 : poly_int64 diff;
5134 : 0 : if (ptr_difference_const (captures[0], captures[2], &diff)
5135 : : )
5136 : : {
5137 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1520;
5138 : 0 : {
5139 : 0 : tree res_op0;
5140 : 0 : res_op0 = build_int_cst_type (type, diff);
5141 : 0 : tree res_op1;
5142 : 0 : {
5143 : 0 : tree _o1[1], _r1;
5144 : 0 : {
5145 : 0 : tree _o2[2], _r2;
5146 : 0 : _o2[0] = captures[1];
5147 : 0 : _o2[1] = captures[3];
5148 : 0 : _r2 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
5149 : 0 : _o1[0] = _r2;
5150 : : }
5151 : 0 : if (TREE_TYPE (_o1[0]) != type)
5152 : : {
5153 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
5154 : : }
5155 : : else
5156 : : _r1 = _o1[0];
5157 : 0 : res_op1 = _r1;
5158 : : }
5159 : 0 : tree _r;
5160 : 0 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
5161 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
5162 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
5163 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
5164 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
5165 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 976, __FILE__, __LINE__, true);
5166 : 0 : return _r;
5167 : : }
5168 : 0 : next_after_fail1520:;
5169 : : }
5170 : : }
5171 : : }
5172 : 0 : break;
5173 : : }
5174 : : default:;
5175 : : }
5176 : : break;
5177 : : }
5178 : : default:;
5179 : : }
5180 : : break;
5181 : : }
5182 : 11154 : default:;
5183 : : }
5184 : 11154 : switch (TREE_CODE (_p1))
5185 : : {
5186 : 110 : case ADDR_EXPR:
5187 : 110 : {
5188 : 110 : {
5189 : 110 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
5190 : 110 : {
5191 : 110 : poly_int64 diff;
5192 : 110 : if (ptr_difference_const (captures[0], captures[2], &diff)
5193 : : )
5194 : : {
5195 : 98 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1521;
5196 : 98 : {
5197 : 98 : tree res_op0;
5198 : 98 : res_op0 = build_int_cst_type (type, diff);
5199 : 98 : tree res_op1;
5200 : 98 : {
5201 : 98 : tree _o1[1], _r1;
5202 : 98 : _o1[0] = captures[1];
5203 : 98 : if (TREE_TYPE (_o1[0]) != type)
5204 : : {
5205 : 98 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
5206 : : }
5207 : : else
5208 : : _r1 = _o1[0];
5209 : 98 : res_op1 = _r1;
5210 : : }
5211 : 98 : tree _r;
5212 : 98 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
5213 : 98 : if (TREE_SIDE_EFFECTS (captures[0]))
5214 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
5215 : 98 : if (TREE_SIDE_EFFECTS (captures[2]))
5216 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
5217 : 98 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 977, __FILE__, __LINE__, true);
5218 : 98 : return _r;
5219 : : }
5220 : 0 : next_after_fail1521:;
5221 : : }
5222 : : }
5223 : : }
5224 : 12 : break;
5225 : : }
5226 : 11056 : default:;
5227 : : }
5228 : 11056 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q20, 0))
5229 : : {
5230 : 5602 : {
5231 : 5602 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q20 };
5232 : 5602 : if (!TYPE_SATURATING (type)
5233 : : )
5234 : : {
5235 : 5602 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
5236 : 11204 : && !FIXED_POINT_TYPE_P (type)
5237 : : )
5238 : : {
5239 : 5602 : {
5240 : 5602 : tree stype = signed_type_for (TREE_TYPE (captures[1]));
5241 : 5602 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1522;
5242 : 5602 : {
5243 : 5602 : tree res_op0;
5244 : 5602 : {
5245 : 5602 : tree _o1[1], _r1;
5246 : 5602 : _o1[0] = captures[1];
5247 : 5602 : if (TREE_TYPE (_o1[0]) != stype)
5248 : : {
5249 : 5602 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, stype, _o1[0]);
5250 : : }
5251 : : else
5252 : : _r1 = _o1[0];
5253 : 5602 : res_op0 = _r1;
5254 : : }
5255 : 5602 : tree _r;
5256 : 5602 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
5257 : 5602 : if (TREE_SIDE_EFFECTS (captures[2]))
5258 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
5259 : 5602 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 978, __FILE__, __LINE__, true);
5260 : 5602 : return _r;
5261 : : }
5262 : 0 : next_after_fail1522:;
5263 : : }
5264 : : }
5265 : : }
5266 : : }
5267 : : }
5268 : : break;
5269 : : }
5270 : 1288 : case ADDR_EXPR:
5271 : 1288 : {
5272 : 1288 : switch (TREE_CODE (_p1))
5273 : : {
5274 : 9 : case POINTER_PLUS_EXPR:
5275 : 9 : {
5276 : 9 : tree _q30 = TREE_OPERAND (_p1, 0);
5277 : 9 : tree _q31 = TREE_OPERAND (_p1, 1);
5278 : 9 : {
5279 : 9 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q31 };
5280 : 9 : {
5281 : 9 : poly_int64 diff;
5282 : 9 : if (ptr_difference_const (captures[0], captures[1], &diff)
5283 : : )
5284 : : {
5285 : 9 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1523;
5286 : 9 : {
5287 : 9 : tree res_op0;
5288 : 9 : res_op0 = build_int_cst_type (type, diff);
5289 : 9 : tree res_op1;
5290 : 9 : {
5291 : 9 : tree _o1[1], _r1;
5292 : 9 : _o1[0] = captures[2];
5293 : 9 : if (TREE_TYPE (_o1[0]) != type)
5294 : : {
5295 : 9 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
5296 : : }
5297 : : else
5298 : : _r1 = _o1[0];
5299 : 9 : res_op1 = _r1;
5300 : : }
5301 : 9 : tree _r;
5302 : 9 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
5303 : 9 : if (TREE_SIDE_EFFECTS (captures[0]))
5304 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
5305 : 9 : if (TREE_SIDE_EFFECTS (captures[1]))
5306 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
5307 : 9 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 979, __FILE__, __LINE__, true);
5308 : 9 : return _r;
5309 : : }
5310 : 0 : next_after_fail1523:;
5311 : : }
5312 : : }
5313 : : }
5314 : 0 : break;
5315 : : }
5316 : : default:;
5317 : : }
5318 : : break;
5319 : : }
5320 : 2627576 : default:;
5321 : : }
5322 : 2627576 : switch (TREE_CODE (_p1))
5323 : : {
5324 : 196 : case POINTER_PLUS_EXPR:
5325 : 196 : {
5326 : 196 : tree _q30 = TREE_OPERAND (_p1, 0);
5327 : 196 : tree _q31 = TREE_OPERAND (_p1, 1);
5328 : 196 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || operand_equal_p (_q30, _p0, 0))
5329 : : {
5330 : 136 : {
5331 : 136 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p0 };
5332 : 136 : if (!TYPE_SATURATING (type)
5333 : : )
5334 : : {
5335 : 136 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
5336 : 272 : && !FIXED_POINT_TYPE_P (type)
5337 : : )
5338 : : {
5339 : 136 : {
5340 : 136 : tree stype = signed_type_for (TREE_TYPE (captures[1]));
5341 : 136 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1524;
5342 : 136 : {
5343 : 136 : tree res_op0;
5344 : 136 : {
5345 : 136 : tree _o1[1], _r1;
5346 : 136 : {
5347 : 136 : tree _o2[1], _r2;
5348 : 136 : _o2[0] = captures[1];
5349 : 136 : if (TREE_TYPE (_o2[0]) != stype)
5350 : : {
5351 : 136 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, stype, _o2[0]);
5352 : : }
5353 : : else
5354 : : _r2 = _o2[0];
5355 : 136 : _o1[0] = _r2;
5356 : : }
5357 : 136 : if (TREE_TYPE (_o1[0]) != type)
5358 : : {
5359 : 136 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
5360 : : }
5361 : : else
5362 : : _r1 = _o1[0];
5363 : 136 : res_op0 = _r1;
5364 : : }
5365 : 136 : tree _r;
5366 : 136 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
5367 : 136 : if (TREE_SIDE_EFFECTS (captures[2]))
5368 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
5369 : 136 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 980, __FILE__, __LINE__, true);
5370 : 136 : return _r;
5371 : : }
5372 : 0 : next_after_fail1524:;
5373 : : }
5374 : : }
5375 : : }
5376 : : }
5377 : : }
5378 : : break;
5379 : : }
5380 : 2627440 : default:;
5381 : : }
5382 : 2627440 : switch (TREE_CODE (_p0))
5383 : : {
5384 : 5454 : case POINTER_PLUS_EXPR:
5385 : 5454 : {
5386 : 5454 : tree _q20 = TREE_OPERAND (_p0, 0);
5387 : 5454 : tree _q21 = TREE_OPERAND (_p0, 1);
5388 : 5454 : switch (TREE_CODE (_p1))
5389 : : {
5390 : 5 : case POINTER_PLUS_EXPR:
5391 : 5 : {
5392 : 5 : tree _q50 = TREE_OPERAND (_p1, 0);
5393 : 5 : tree _q51 = TREE_OPERAND (_p1, 1);
5394 : 5 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5395 : : {
5396 : 1 : {
5397 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
5398 : 1 : if (!TYPE_SATURATING (type)
5399 : : )
5400 : : {
5401 : 1 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
5402 : 2 : && !FIXED_POINT_TYPE_P (type)
5403 : : )
5404 : : {
5405 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1525;
5406 : 1 : {
5407 : 1 : tree res_op0;
5408 : 1 : res_op0 = captures[0];
5409 : 1 : tree res_op1;
5410 : 1 : res_op1 = captures[2];
5411 : 1 : tree _r;
5412 : 1 : _r = fold_build2_loc (loc, POINTER_DIFF_EXPR, type, res_op0, res_op1);
5413 : 1 : if (TREE_SIDE_EFFECTS (captures[1]))
5414 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
5415 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 981, __FILE__, __LINE__, true);
5416 : 1 : return _r;
5417 : : }
5418 : 0 : next_after_fail1525:;
5419 : : }
5420 : : }
5421 : : }
5422 : : }
5423 : 4 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
5424 : : {
5425 : 4 : {
5426 : 4 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q51, _q20 };
5427 : 4 : if (!TYPE_SATURATING (type)
5428 : : )
5429 : : {
5430 : 4 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
5431 : 8 : && !FIXED_POINT_TYPE_P (type)
5432 : : )
5433 : : {
5434 : 4 : {
5435 : 4 : tree stype = signed_type_for (TREE_TYPE (captures[1]));
5436 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1526;
5437 : 4 : {
5438 : 4 : tree res_op0;
5439 : 4 : {
5440 : 4 : tree _o1[1], _r1;
5441 : 4 : {
5442 : 4 : tree _o2[1], _r2;
5443 : 4 : _o2[0] = captures[1];
5444 : 4 : if (TREE_TYPE (_o2[0]) != stype)
5445 : : {
5446 : 4 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, stype, _o2[0]);
5447 : : }
5448 : : else
5449 : : _r2 = _o2[0];
5450 : 4 : _o1[0] = _r2;
5451 : : }
5452 : 4 : if (TREE_TYPE (_o1[0]) != type)
5453 : : {
5454 : 4 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
5455 : : }
5456 : : else
5457 : : _r1 = _o1[0];
5458 : 4 : res_op0 = _r1;
5459 : : }
5460 : 4 : tree res_op1;
5461 : 4 : {
5462 : 4 : tree _o1[1], _r1;
5463 : 4 : {
5464 : 4 : tree _o2[1], _r2;
5465 : 4 : _o2[0] = captures[2];
5466 : 4 : if (TREE_TYPE (_o2[0]) != stype)
5467 : : {
5468 : 4 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, stype, _o2[0]);
5469 : : }
5470 : : else
5471 : : _r2 = _o2[0];
5472 : 4 : _o1[0] = _r2;
5473 : : }
5474 : 4 : if (TREE_TYPE (_o1[0]) != type)
5475 : : {
5476 : 4 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
5477 : : }
5478 : : else
5479 : : _r1 = _o1[0];
5480 : 4 : res_op1 = _r1;
5481 : : }
5482 : 4 : tree _r;
5483 : 4 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
5484 : 4 : if (TREE_SIDE_EFFECTS (captures[3]))
5485 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
5486 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 982, __FILE__, __LINE__, true);
5487 : 4 : return _r;
5488 : : }
5489 : 0 : next_after_fail1526:;
5490 : : }
5491 : : }
5492 : : }
5493 : : }
5494 : : }
5495 : : break;
5496 : : }
5497 : : default:;
5498 : : }
5499 : : break;
5500 : : }
5501 : 2627435 : default:;
5502 : : }
5503 : 2627435 : if (integer_zerop (_p0))
5504 : : {
5505 : 0 : {
5506 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p1 };
5507 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1527;
5508 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1527;
5509 : 0 : {
5510 : 0 : tree res_op0;
5511 : 0 : {
5512 : 0 : tree _o1[1], _r1;
5513 : 0 : _o1[0] = captures[0];
5514 : 0 : if (TREE_TYPE (_o1[0]) != type)
5515 : : {
5516 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
5517 : : }
5518 : : else
5519 : : _r1 = _o1[0];
5520 : 0 : res_op0 = _r1;
5521 : : }
5522 : 0 : tree _r;
5523 : 0 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
5524 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 983, __FILE__, __LINE__, true);
5525 : 0 : return _r;
5526 : : }
5527 : : next_after_fail1527:;
5528 : : }
5529 : : }
5530 : : return NULL_TREE;
5531 : : }
5532 : :
5533 : : tree
5534 : 2315302 : 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)
5535 : : {
5536 : 2315302 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
5537 : 2315302 : if (integer_onep (_p1))
5538 : : {
5539 : 793196 : {
5540 : 793196 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5541 : 793196 : tree res = generic_simplify_178 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5542 : 793196 : if (res) return res;
5543 : : }
5544 : : }
5545 : 1522106 : if (integer_zerop (_p0))
5546 : : {
5547 : 4 : {
5548 : 4 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5549 : 4 : tree res = generic_simplify_306 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5550 : 4 : if (res) return res;
5551 : : }
5552 : : }
5553 : 1522102 : switch (TREE_CODE (_p1))
5554 : : {
5555 : 727 : case SSA_NAME:
5556 : 727 : {
5557 : 727 : {
5558 : 727 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5559 : 727 : tree res = generic_simplify_308 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5560 : 727 : if (res) return res;
5561 : : }
5562 : 727 : break;
5563 : : }
5564 : 1522102 : default:;
5565 : : }
5566 : 1522102 : if (integer_minus_onep (_p1))
5567 : : {
5568 : 229 : {
5569 : 229 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5570 : 229 : tree res = generic_simplify_307 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5571 : 229 : if (res) return res;
5572 : : }
5573 : : }
5574 : 1522041 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
5575 : : {
5576 : 0 : {
5577 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5578 : 0 : tree res = generic_simplify_309 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5579 : 0 : if (res) return res;
5580 : : }
5581 : : }
5582 : 1522041 : switch (TREE_CODE (_p1))
5583 : : {
5584 : 0 : case ABS_EXPR:
5585 : 0 : {
5586 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
5587 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
5588 : : {
5589 : 0 : {
5590 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5591 : 0 : tree res = generic_simplify_310 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5592 : 0 : if (res) return res;
5593 : : }
5594 : : }
5595 : : break;
5596 : : }
5597 : 1522041 : default:;
5598 : : }
5599 : 1522041 : switch (TREE_CODE (_p0))
5600 : : {
5601 : 0 : case ABS_EXPR:
5602 : 0 : {
5603 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
5604 : 0 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
5605 : : {
5606 : 0 : {
5607 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
5608 : 0 : tree res = generic_simplify_310 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5609 : 0 : if (res) return res;
5610 : : }
5611 : : }
5612 : : break;
5613 : : }
5614 : 1522041 : default:;
5615 : : }
5616 : 1522041 : switch (TREE_CODE (_p1))
5617 : : {
5618 : 0 : case NEGATE_EXPR:
5619 : 0 : {
5620 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
5621 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
5622 : : {
5623 : 0 : {
5624 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5625 : 0 : tree res = generic_simplify_311 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5626 : 0 : if (res) return res;
5627 : : }
5628 : : }
5629 : : break;
5630 : : }
5631 : 1522041 : default:;
5632 : : }
5633 : 1522041 : switch (TREE_CODE (_p0))
5634 : : {
5635 : 320 : case NEGATE_EXPR:
5636 : 320 : {
5637 : 320 : tree _q20 = TREE_OPERAND (_p0, 0);
5638 : 320 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
5639 : : {
5640 : 0 : {
5641 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
5642 : 0 : tree res = generic_simplify_311 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5643 : 0 : if (res) return res;
5644 : : }
5645 : : }
5646 : : break;
5647 : : }
5648 : 1522041 : default:;
5649 : : }
5650 : 1522041 : {
5651 : 1522041 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5652 : 1522041 : tree res = generic_simplify_317 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR, TRUNC_DIV_EXPR);
5653 : 1522041 : if (res) return res;
5654 : : }
5655 : 5250 : switch (TREE_CODE (_p0))
5656 : : {
5657 : 388 : CASE_CONVERT:
5658 : 388 : {
5659 : 388 : tree _q20 = TREE_OPERAND (_p0, 0);
5660 : 388 : switch (TREE_CODE (_q20))
5661 : : {
5662 : 0 : case BIT_AND_EXPR:
5663 : 0 : {
5664 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
5665 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
5666 : 0 : switch (TREE_CODE (_q31))
5667 : : {
5668 : 0 : case INTEGER_CST:
5669 : 0 : {
5670 : 0 : switch (TREE_CODE (_p1))
5671 : : {
5672 : 0 : case INTEGER_CST:
5673 : 0 : {
5674 : 0 : {
5675 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
5676 : 0 : tree res = generic_simplify_313 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5677 : 0 : if (res) return res;
5678 : : }
5679 : 0 : break;
5680 : : }
5681 : : default:;
5682 : : }
5683 : : break;
5684 : : }
5685 : : default:;
5686 : : }
5687 : : break;
5688 : : }
5689 : : default:;
5690 : : }
5691 : : break;
5692 : : }
5693 : 0 : case BIT_AND_EXPR:
5694 : 0 : {
5695 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
5696 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
5697 : 0 : switch (TREE_CODE (_q21))
5698 : : {
5699 : 0 : case INTEGER_CST:
5700 : 0 : {
5701 : 0 : switch (TREE_CODE (_p1))
5702 : : {
5703 : 0 : case INTEGER_CST:
5704 : 0 : {
5705 : 0 : {
5706 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
5707 : 0 : tree res = generic_simplify_313 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5708 : 0 : if (res) return res;
5709 : : }
5710 : 0 : break;
5711 : : }
5712 : : default:;
5713 : : }
5714 : : break;
5715 : : }
5716 : : default:;
5717 : : }
5718 : : break;
5719 : : }
5720 : 0 : case MULT_EXPR:
5721 : 0 : {
5722 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
5723 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
5724 : 0 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
5725 : : {
5726 : 0 : {
5727 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5728 : 0 : tree res = generic_simplify_315 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5729 : 0 : if (res) return res;
5730 : : }
5731 : : }
5732 : 0 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
5733 : : {
5734 : 0 : {
5735 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
5736 : 0 : tree res = generic_simplify_315 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5737 : 0 : if (res) return res;
5738 : : }
5739 : : }
5740 : 0 : switch (TREE_CODE (_q21))
5741 : : {
5742 : 0 : case INTEGER_CST:
5743 : 0 : {
5744 : 0 : switch (TREE_CODE (_p1))
5745 : : {
5746 : 0 : case MULT_EXPR:
5747 : 0 : {
5748 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
5749 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
5750 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5751 : : {
5752 : 0 : switch (TREE_CODE (_q51))
5753 : : {
5754 : 0 : case INTEGER_CST:
5755 : 0 : {
5756 : 0 : {
5757 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
5758 : 0 : tree res = generic_simplify_316 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
5759 : 0 : if (res) return res;
5760 : : }
5761 : 0 : break;
5762 : : }
5763 : : default:;
5764 : : }
5765 : : }
5766 : : break;
5767 : : }
5768 : : default:;
5769 : : }
5770 : : break;
5771 : : }
5772 : : default:;
5773 : : }
5774 : : break;
5775 : : }
5776 : 0 : case VEC_COND_EXPR:
5777 : 0 : {
5778 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
5779 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
5780 : 0 : tree _q22 = TREE_OPERAND (_p0, 2);
5781 : 0 : switch (TREE_CODE (_p1))
5782 : : {
5783 : 0 : case VEC_COND_EXPR:
5784 : 0 : {
5785 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
5786 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
5787 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
5788 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
5789 : : {
5790 : 0 : {
5791 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
5792 : 0 : if (VECTOR_TYPE_P (type)
5793 : 0 : && (TREE_CODE_CLASS (FLOOR_DIV_EXPR) != tcc_comparison
5794 : : || types_match (type, TREE_TYPE (captures[2]))
5795 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
5796 : : || (optimize_vectors_before_lowering_p ()
5797 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
5798 : : )
5799 : : {
5800 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1719;
5801 : 0 : {
5802 : 0 : tree res_op0;
5803 : 0 : res_op0 = captures[1];
5804 : 0 : tree res_op1;
5805 : 0 : {
5806 : 0 : tree _o1[2], _r1;
5807 : 0 : _o1[0] = captures[2];
5808 : 0 : _o1[1] = captures[5];
5809 : 0 : _r1 = fold_build2_loc (loc, FLOOR_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5810 : 0 : if (EXPR_P (_r1))
5811 : 0 : goto next_after_fail1719;
5812 : 0 : res_op1 = _r1;
5813 : : }
5814 : 0 : tree res_op2;
5815 : 0 : {
5816 : 0 : tree _o1[2], _r1;
5817 : 0 : _o1[0] = captures[3];
5818 : 0 : _o1[1] = captures[6];
5819 : 0 : _r1 = fold_build2_loc (loc, FLOOR_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5820 : 0 : if (EXPR_P (_r1))
5821 : 0 : goto next_after_fail1719;
5822 : 0 : res_op2 = _r1;
5823 : : }
5824 : 0 : tree _r;
5825 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
5826 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 919, __FILE__, __LINE__, true);
5827 : 0 : return _r;
5828 : : }
5829 : 0 : next_after_fail1719:;
5830 : : }
5831 : : }
5832 : : }
5833 : : break;
5834 : : }
5835 : 0 : default:;
5836 : : }
5837 : 0 : {
5838 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
5839 : 0 : if (VECTOR_TYPE_P (type)
5840 : 0 : && (TREE_CODE_CLASS (FLOOR_DIV_EXPR) != tcc_comparison
5841 : : || types_match (type, TREE_TYPE (captures[2]))
5842 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
5843 : : || (optimize_vectors_before_lowering_p ()
5844 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
5845 : : )
5846 : : {
5847 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1720;
5848 : 0 : {
5849 : 0 : if (! tree_invariant_p (captures[4])) goto next_after_fail1720;
5850 : 0 : tree res_op0;
5851 : 0 : res_op0 = captures[1];
5852 : 0 : tree res_op1;
5853 : 0 : {
5854 : 0 : tree _o1[2], _r1;
5855 : 0 : _o1[0] = captures[2];
5856 : 0 : _o1[1] = unshare_expr (captures[4]);
5857 : 0 : _r1 = fold_build2_loc (loc, FLOOR_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5858 : 0 : if (EXPR_P (_r1))
5859 : 0 : goto next_after_fail1720;
5860 : 0 : res_op1 = _r1;
5861 : : }
5862 : 0 : tree res_op2;
5863 : 0 : {
5864 : 0 : tree _o1[2], _r1;
5865 : 0 : _o1[0] = captures[3];
5866 : 0 : _o1[1] = captures[4];
5867 : 0 : _r1 = fold_build2_loc (loc, FLOOR_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5868 : 0 : if (EXPR_P (_r1))
5869 : 0 : goto next_after_fail1720;
5870 : 0 : res_op2 = _r1;
5871 : : }
5872 : 0 : tree _r;
5873 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
5874 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 920, __FILE__, __LINE__, true);
5875 : 0 : return _r;
5876 : : }
5877 : 0 : next_after_fail1720:;
5878 : : }
5879 : : }
5880 : 0 : break;
5881 : : }
5882 : 5250 : default:;
5883 : : }
5884 : 5250 : switch (TREE_CODE (_p1))
5885 : : {
5886 : 0 : case VEC_COND_EXPR:
5887 : 0 : {
5888 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
5889 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
5890 : 0 : tree _q32 = TREE_OPERAND (_p1, 2);
5891 : 0 : {
5892 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
5893 : 0 : if (VECTOR_TYPE_P (type)
5894 : 0 : && (TREE_CODE_CLASS (FLOOR_DIV_EXPR) != tcc_comparison
5895 : : || types_match (type, TREE_TYPE (captures[3]))
5896 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
5897 : : || (optimize_vectors_before_lowering_p ()
5898 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
5899 : : )
5900 : : {
5901 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1721;
5902 : 0 : {
5903 : 0 : if (! tree_invariant_p (captures[0])) goto next_after_fail1721;
5904 : 0 : tree res_op0;
5905 : 0 : res_op0 = captures[2];
5906 : 0 : tree res_op1;
5907 : 0 : {
5908 : 0 : tree _o1[2], _r1;
5909 : 0 : _o1[0] = unshare_expr (captures[0]);
5910 : 0 : _o1[1] = captures[3];
5911 : 0 : _r1 = fold_build2_loc (loc, FLOOR_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5912 : 0 : if (EXPR_P (_r1))
5913 : 0 : goto next_after_fail1721;
5914 : 0 : res_op1 = _r1;
5915 : : }
5916 : 0 : tree res_op2;
5917 : 0 : {
5918 : 0 : tree _o1[2], _r1;
5919 : 0 : _o1[0] = captures[0];
5920 : 0 : _o1[1] = captures[4];
5921 : 0 : _r1 = fold_build2_loc (loc, FLOOR_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
5922 : 0 : if (EXPR_P (_r1))
5923 : 0 : goto next_after_fail1721;
5924 : 0 : res_op2 = _r1;
5925 : : }
5926 : 0 : tree _r;
5927 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
5928 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 921, __FILE__, __LINE__, true);
5929 : 0 : return _r;
5930 : : }
5931 : 0 : next_after_fail1721:;
5932 : : }
5933 : : }
5934 : 0 : break;
5935 : : }
5936 : : default:;
5937 : : }
5938 : : return NULL_TREE;
5939 : : }
5940 : :
5941 : : tree
5942 : 921850 : 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)
5943 : : {
5944 : 921850 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
5945 : 921850 : {
5946 : 921850 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5947 : 921850 : tree res = generic_simplify_317 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR, TRUNC_MOD_EXPR);
5948 : 921850 : if (res) return res;
5949 : : }
5950 : 3553 : if (integer_zerop (_p0))
5951 : : {
5952 : 0 : {
5953 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5954 : 0 : tree res = generic_simplify_318 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
5955 : 0 : if (res) return res;
5956 : : }
5957 : : }
5958 : 3553 : if (integer_onep (_p1))
5959 : : {
5960 : 0 : {
5961 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5962 : 0 : tree res = generic_simplify_319 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
5963 : 0 : if (res) return res;
5964 : : }
5965 : : }
5966 : 3553 : if (integer_minus_onep (_p1))
5967 : : {
5968 : 0 : {
5969 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5970 : 0 : tree res = generic_simplify_320 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
5971 : 0 : if (res) return res;
5972 : : }
5973 : : }
5974 : 3553 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
5975 : : {
5976 : 0 : {
5977 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5978 : 0 : tree res = generic_simplify_321 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
5979 : 0 : if (res) return res;
5980 : : }
5981 : : }
5982 : 3553 : switch (TREE_CODE (_p0))
5983 : : {
5984 : 0 : case FLOOR_MOD_EXPR:
5985 : 0 : {
5986 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
5987 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
5988 : 0 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
5989 : : {
5990 : 0 : {
5991 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
5992 : 0 : tree res = generic_simplify_322 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
5993 : 0 : if (res) return res;
5994 : : }
5995 : : }
5996 : : break;
5997 : : }
5998 : 4 : case MULT_EXPR:
5999 : 4 : {
6000 : 4 : tree _q20 = TREE_OPERAND (_p0, 0);
6001 : 4 : tree _q21 = TREE_OPERAND (_p0, 1);
6002 : 4 : switch (TREE_CODE (_q21))
6003 : : {
6004 : 4 : case INTEGER_CST:
6005 : 4 : {
6006 : 4 : switch (TREE_CODE (_p1))
6007 : : {
6008 : 4 : case INTEGER_CST:
6009 : 4 : {
6010 : 4 : {
6011 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
6012 : 4 : tree res = generic_simplify_323 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
6013 : 4 : if (res) return res;
6014 : : }
6015 : 4 : break;
6016 : : }
6017 : : default:;
6018 : : }
6019 : : break;
6020 : : }
6021 : : default:;
6022 : : }
6023 : : break;
6024 : : }
6025 : 3553 : default:;
6026 : : }
6027 : 3553 : switch (TREE_CODE (_p1))
6028 : : {
6029 : 1 : CASE_CONVERT:
6030 : 1 : {
6031 : 1 : tree _q30 = TREE_OPERAND (_p1, 0);
6032 : 1 : {
6033 : 1 : tree _q30_pops[1];
6034 : 1 : if (tree_power_of_two_cand (_q30, _q30_pops))
6035 : : {
6036 : 0 : tree _q40 = _q30_pops[0];
6037 : 0 : {
6038 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q40 };
6039 : 0 : tree res = generic_simplify_324 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
6040 : 0 : if (res) return res;
6041 : : }
6042 : : }
6043 : : }
6044 : 1 : break;
6045 : : }
6046 : 3553 : default:;
6047 : : }
6048 : 3553 : {
6049 : 3553 : tree _p1_pops[1];
6050 : 3553 : if (tree_power_of_two_cand (_p1, _p1_pops))
6051 : : {
6052 : 1778 : tree _q30 = _p1_pops[0];
6053 : 1778 : {
6054 : 1778 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q30 };
6055 : 1778 : tree res = generic_simplify_324 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
6056 : 1778 : if (res) return res;
6057 : : }
6058 : : }
6059 : : }
6060 : 3513 : switch (TREE_CODE (_p0))
6061 : : {
6062 : 0 : case VEC_COND_EXPR:
6063 : 0 : {
6064 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
6065 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
6066 : 0 : tree _q22 = TREE_OPERAND (_p0, 2);
6067 : 0 : switch (TREE_CODE (_p1))
6068 : : {
6069 : 0 : case VEC_COND_EXPR:
6070 : 0 : {
6071 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
6072 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
6073 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
6074 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
6075 : : {
6076 : 0 : {
6077 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
6078 : 0 : if (VECTOR_TYPE_P (type)
6079 : 0 : && (TREE_CODE_CLASS (FLOOR_MOD_EXPR) != tcc_comparison
6080 : : || types_match (type, TREE_TYPE (captures[2]))
6081 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
6082 : : || (optimize_vectors_before_lowering_p ()
6083 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
6084 : : )
6085 : : {
6086 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1728;
6087 : 0 : {
6088 : 0 : tree res_op0;
6089 : 0 : res_op0 = captures[1];
6090 : 0 : tree res_op1;
6091 : 0 : {
6092 : 0 : tree _o1[2], _r1;
6093 : 0 : _o1[0] = captures[2];
6094 : 0 : _o1[1] = captures[5];
6095 : 0 : _r1 = fold_build2_loc (loc, FLOOR_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
6096 : 0 : if (EXPR_P (_r1))
6097 : 0 : goto next_after_fail1728;
6098 : 0 : res_op1 = _r1;
6099 : : }
6100 : 0 : tree res_op2;
6101 : 0 : {
6102 : 0 : tree _o1[2], _r1;
6103 : 0 : _o1[0] = captures[3];
6104 : 0 : _o1[1] = captures[6];
6105 : 0 : _r1 = fold_build2_loc (loc, FLOOR_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
6106 : 0 : if (EXPR_P (_r1))
6107 : 0 : goto next_after_fail1728;
6108 : 0 : res_op2 = _r1;
6109 : : }
6110 : 0 : tree _r;
6111 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
6112 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 919, __FILE__, __LINE__, true);
6113 : 0 : return _r;
6114 : : }
6115 : 0 : next_after_fail1728:;
6116 : : }
6117 : : }
6118 : : }
6119 : : break;
6120 : : }
6121 : 0 : default:;
6122 : : }
6123 : 0 : {
6124 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
6125 : 0 : if (VECTOR_TYPE_P (type)
6126 : 0 : && (TREE_CODE_CLASS (FLOOR_MOD_EXPR) != tcc_comparison
6127 : : || types_match (type, TREE_TYPE (captures[2]))
6128 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
6129 : : || (optimize_vectors_before_lowering_p ()
6130 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
6131 : : )
6132 : : {
6133 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1729;
6134 : 0 : {
6135 : 0 : if (! tree_invariant_p (captures[4])) goto next_after_fail1729;
6136 : 0 : tree res_op0;
6137 : 0 : res_op0 = captures[1];
6138 : 0 : tree res_op1;
6139 : 0 : {
6140 : 0 : tree _o1[2], _r1;
6141 : 0 : _o1[0] = captures[2];
6142 : 0 : _o1[1] = unshare_expr (captures[4]);
6143 : 0 : _r1 = fold_build2_loc (loc, FLOOR_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
6144 : 0 : if (EXPR_P (_r1))
6145 : 0 : goto next_after_fail1729;
6146 : 0 : res_op1 = _r1;
6147 : : }
6148 : 0 : tree res_op2;
6149 : 0 : {
6150 : 0 : tree _o1[2], _r1;
6151 : 0 : _o1[0] = captures[3];
6152 : 0 : _o1[1] = captures[4];
6153 : 0 : _r1 = fold_build2_loc (loc, FLOOR_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
6154 : 0 : if (EXPR_P (_r1))
6155 : 0 : goto next_after_fail1729;
6156 : 0 : res_op2 = _r1;
6157 : : }
6158 : 0 : tree _r;
6159 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
6160 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 920, __FILE__, __LINE__, true);
6161 : 0 : return _r;
6162 : : }
6163 : 0 : next_after_fail1729:;
6164 : : }
6165 : : }
6166 : 0 : break;
6167 : : }
6168 : 3513 : default:;
6169 : : }
6170 : 3513 : switch (TREE_CODE (_p1))
6171 : : {
6172 : 0 : case VEC_COND_EXPR:
6173 : 0 : {
6174 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
6175 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
6176 : 0 : tree _q32 = TREE_OPERAND (_p1, 2);
6177 : 0 : {
6178 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
6179 : 0 : if (VECTOR_TYPE_P (type)
6180 : 0 : && (TREE_CODE_CLASS (FLOOR_MOD_EXPR) != tcc_comparison
6181 : : || types_match (type, TREE_TYPE (captures[3]))
6182 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
6183 : : || (optimize_vectors_before_lowering_p ()
6184 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
6185 : : )
6186 : : {
6187 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1730;
6188 : 0 : {
6189 : 0 : if (! tree_invariant_p (captures[0])) goto next_after_fail1730;
6190 : 0 : tree res_op0;
6191 : 0 : res_op0 = captures[2];
6192 : 0 : tree res_op1;
6193 : 0 : {
6194 : 0 : tree _o1[2], _r1;
6195 : 0 : _o1[0] = unshare_expr (captures[0]);
6196 : 0 : _o1[1] = captures[3];
6197 : 0 : _r1 = fold_build2_loc (loc, FLOOR_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
6198 : 0 : if (EXPR_P (_r1))
6199 : 0 : goto next_after_fail1730;
6200 : 0 : res_op1 = _r1;
6201 : : }
6202 : 0 : tree res_op2;
6203 : 0 : {
6204 : 0 : tree _o1[2], _r1;
6205 : 0 : _o1[0] = captures[0];
6206 : 0 : _o1[1] = captures[4];
6207 : 0 : _r1 = fold_build2_loc (loc, FLOOR_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
6208 : 0 : if (EXPR_P (_r1))
6209 : 0 : goto next_after_fail1730;
6210 : 0 : res_op2 = _r1;
6211 : : }
6212 : 0 : tree _r;
6213 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
6214 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 921, __FILE__, __LINE__, true);
6215 : 0 : return _r;
6216 : : }
6217 : 0 : next_after_fail1730:;
6218 : : }
6219 : : }
6220 : 0 : break;
6221 : : }
6222 : : default:;
6223 : : }
6224 : : return NULL_TREE;
6225 : : }
6226 : :
6227 : : tree
6228 : 16677833 : generic_simplify_LT_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
6229 : : {
6230 : 16677833 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
6231 : 16677833 : switch (TREE_CODE (_p0))
6232 : : {
6233 : 2167 : case RDIV_EXPR:
6234 : 2167 : {
6235 : 2167 : tree _q20 = TREE_OPERAND (_p0, 0);
6236 : 2167 : tree _q21 = TREE_OPERAND (_p0, 1);
6237 : 2167 : switch (TREE_CODE (_q20))
6238 : : {
6239 : 677 : case REAL_CST:
6240 : 677 : {
6241 : 677 : if (real_zerop (_p1))
6242 : : {
6243 : 392 : {
6244 : 392 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
6245 : 392 : tree res = generic_simplify_366 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
6246 : 392 : if (res) return res;
6247 : : }
6248 : : }
6249 : : break;
6250 : : }
6251 : : default:;
6252 : : }
6253 : : break;
6254 : : }
6255 : 3558 : case LSHIFT_EXPR:
6256 : 3558 : {
6257 : 3558 : tree _q20 = TREE_OPERAND (_p0, 0);
6258 : 3558 : tree _q21 = TREE_OPERAND (_p0, 1);
6259 : 3558 : {
6260 : 3558 : tree _p1_pops[1];
6261 : 3558 : if (tree_nop_convert (_p1, _p1_pops))
6262 : : {
6263 : 2683 : tree _q50 = _p1_pops[0];
6264 : 2683 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
6265 : : {
6266 : 4 : {
6267 : 4 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
6268 : 4 : tree res = generic_simplify_367 (loc, type, _p0, _p1, captures, LT_EXPR);
6269 : 4 : if (res) return res;
6270 : : }
6271 : : }
6272 : : }
6273 : : }
6274 : 3557 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6275 : : {
6276 : 57 : {
6277 : 57 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
6278 : 57 : tree res = generic_simplify_367 (loc, type, _p0, _p1, captures, LT_EXPR);
6279 : 57 : if (res) return res;
6280 : : }
6281 : : }
6282 : : break;
6283 : : }
6284 : 16677828 : default:;
6285 : : }
6286 : 16677828 : {
6287 : 16677828 : tree _p0_pops[1];
6288 : 16677828 : if (tree_nop_convert (_p0, _p0_pops))
6289 : : {
6290 : 1824025 : tree _q20 = _p0_pops[0];
6291 : 1824025 : switch (TREE_CODE (_q20))
6292 : : {
6293 : 1 : case LSHIFT_EXPR:
6294 : 1 : {
6295 : 1 : tree _q30 = TREE_OPERAND (_q20, 0);
6296 : 1 : tree _q31 = TREE_OPERAND (_q20, 1);
6297 : 1 : {
6298 : 1 : tree _p1_pops[1];
6299 : 1 : if (tree_nop_convert (_p1, _p1_pops))
6300 : : {
6301 : 0 : tree _q60 = _p1_pops[0];
6302 : 0 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q31, 0) && types_match (_q60, _q31)))
6303 : : {
6304 : 0 : {
6305 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
6306 : 0 : tree res = generic_simplify_367 (loc, type, _p0, _p1, captures, LT_EXPR);
6307 : 0 : if (res) return res;
6308 : : }
6309 : : }
6310 : : }
6311 : : }
6312 : 1 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
6313 : : {
6314 : 1 : {
6315 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
6316 : 1 : tree res = generic_simplify_367 (loc, type, _p0, _p1, captures, LT_EXPR);
6317 : 1 : if (res) return res;
6318 : : }
6319 : : }
6320 : : break;
6321 : : }
6322 : 1824024 : default:;
6323 : : }
6324 : 1824024 : switch (TREE_CODE (_p1))
6325 : : {
6326 : 0 : case LSHIFT_EXPR:
6327 : 0 : {
6328 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
6329 : 0 : tree _q41 = TREE_OPERAND (_p1, 1);
6330 : 0 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _q20, 0) && types_match (_q41, _q20)))
6331 : : {
6332 : 0 : {
6333 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q20 };
6334 : 0 : tree res = generic_simplify_368 (loc, type, _p0, _p1, captures, GT_EXPR);
6335 : 0 : if (res) return res;
6336 : : }
6337 : : }
6338 : : break;
6339 : : }
6340 : 1824024 : default:;
6341 : : }
6342 : 1824024 : {
6343 : 1824024 : tree _p1_pops[1];
6344 : 1824024 : if (tree_nop_convert (_p1, _p1_pops))
6345 : : {
6346 : 433476 : tree _q40 = _p1_pops[0];
6347 : 433476 : switch (TREE_CODE (_q40))
6348 : : {
6349 : 1 : case LSHIFT_EXPR:
6350 : 1 : {
6351 : 1 : tree _q50 = TREE_OPERAND (_q40, 0);
6352 : 1 : tree _q51 = TREE_OPERAND (_q40, 1);
6353 : 1 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
6354 : : {
6355 : 0 : {
6356 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q50, _q20 };
6357 : 0 : tree res = generic_simplify_368 (loc, type, _p0, _p1, captures, GT_EXPR);
6358 : 0 : if (res) return res;
6359 : : }
6360 : : }
6361 : : break;
6362 : : }
6363 : : default:;
6364 : : }
6365 : : }
6366 : : }
6367 : : }
6368 : : }
6369 : 16677827 : switch (TREE_CODE (_p1))
6370 : : {
6371 : 171 : case LSHIFT_EXPR:
6372 : 171 : {
6373 : 171 : tree _q30 = TREE_OPERAND (_p1, 0);
6374 : 171 : tree _q31 = TREE_OPERAND (_p1, 1);
6375 : 171 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
6376 : : {
6377 : 0 : {
6378 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p0 };
6379 : 0 : tree res = generic_simplify_368 (loc, type, _p0, _p1, captures, GT_EXPR);
6380 : 0 : if (res) return res;
6381 : : }
6382 : : }
6383 : : break;
6384 : : }
6385 : 16677827 : default:;
6386 : : }
6387 : 16677827 : {
6388 : 16677827 : tree _p1_pops[1];
6389 : 16677827 : if (tree_nop_convert (_p1, _p1_pops))
6390 : : {
6391 : 927191 : tree _q30 = _p1_pops[0];
6392 : 927191 : switch (TREE_CODE (_q30))
6393 : : {
6394 : 1 : case LSHIFT_EXPR:
6395 : 1 : {
6396 : 1 : tree _q40 = TREE_OPERAND (_q30, 0);
6397 : 1 : tree _q41 = TREE_OPERAND (_q30, 1);
6398 : 1 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
6399 : : {
6400 : 0 : {
6401 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _p0 };
6402 : 0 : tree res = generic_simplify_368 (loc, type, _p0, _p1, captures, GT_EXPR);
6403 : 0 : if (res) return res;
6404 : : }
6405 : : }
6406 : : break;
6407 : : }
6408 : : default:;
6409 : : }
6410 : : }
6411 : : }
6412 : 16677827 : switch (TREE_CODE (_p0))
6413 : : {
6414 : 2849 : case TRUNC_MOD_EXPR:
6415 : 2849 : {
6416 : 2849 : tree _q20 = TREE_OPERAND (_p0, 0);
6417 : 2849 : tree _q21 = TREE_OPERAND (_p0, 1);
6418 : 2849 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6419 : : {
6420 : 69 : {
6421 : 69 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
6422 : 69 : tree res = generic_simplify_369 (loc, type, _p0, _p1, captures, LT_EXPR);
6423 : 69 : if (res) return res;
6424 : : }
6425 : : }
6426 : : break;
6427 : : }
6428 : 148316 : case MULT_EXPR:
6429 : 148316 : {
6430 : 148316 : tree _q20 = TREE_OPERAND (_p0, 0);
6431 : 148316 : tree _q21 = TREE_OPERAND (_p0, 1);
6432 : 148316 : switch (TREE_CODE (_p1))
6433 : : {
6434 : 53639 : case MULT_EXPR:
6435 : 53639 : {
6436 : 53639 : tree _q50 = TREE_OPERAND (_p1, 0);
6437 : 53639 : tree _q51 = TREE_OPERAND (_p1, 1);
6438 : 53639 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
6439 : : {
6440 : 10315 : {
6441 : 10315 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
6442 : 10315 : tree res = generic_simplify_370 (loc, type, _p0, _p1, captures, LT_EXPR);
6443 : 10315 : if (res) return res;
6444 : : }
6445 : : }
6446 : 45341 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
6447 : : {
6448 : 0 : {
6449 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
6450 : 0 : tree res = generic_simplify_370 (loc, type, _p0, _p1, captures, LT_EXPR);
6451 : 0 : if (res) return res;
6452 : : }
6453 : : }
6454 : 45341 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
6455 : : {
6456 : 0 : {
6457 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
6458 : 0 : tree res = generic_simplify_370 (loc, type, _p0, _p1, captures, LT_EXPR);
6459 : 0 : if (res) return res;
6460 : : }
6461 : : }
6462 : 45341 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
6463 : : {
6464 : 1400 : {
6465 : 1400 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
6466 : 1400 : tree res = generic_simplify_370 (loc, type, _p0, _p1, captures, LT_EXPR);
6467 : 1400 : if (res) return res;
6468 : : }
6469 : : }
6470 : : break;
6471 : : }
6472 : : default:;
6473 : : }
6474 : : break;
6475 : : }
6476 : 2795253 : CASE_CONVERT:
6477 : 2795253 : {
6478 : 2795253 : tree _q20 = TREE_OPERAND (_p0, 0);
6479 : 2795253 : switch (TREE_CODE (_q20))
6480 : : {
6481 : 116 : case EXACT_DIV_EXPR:
6482 : 116 : {
6483 : 116 : tree _q30 = TREE_OPERAND (_q20, 0);
6484 : 116 : tree _q31 = TREE_OPERAND (_q20, 1);
6485 : 116 : switch (TREE_CODE (_q31))
6486 : : {
6487 : 116 : case INTEGER_CST:
6488 : 116 : {
6489 : 116 : switch (TREE_CODE (_p1))
6490 : : {
6491 : 43 : CASE_CONVERT:
6492 : 43 : {
6493 : 43 : tree _q60 = TREE_OPERAND (_p1, 0);
6494 : 43 : switch (TREE_CODE (_q60))
6495 : : {
6496 : 0 : case EXACT_DIV_EXPR:
6497 : 0 : {
6498 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
6499 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
6500 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
6501 : : {
6502 : 0 : {
6503 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q31, _q70 };
6504 : 0 : tree res = generic_simplify_209 (loc, type, _p0, _p1, captures, LT_EXPR);
6505 : 0 : if (res) return res;
6506 : : }
6507 : : }
6508 : : break;
6509 : : }
6510 : : default:;
6511 : : }
6512 : : break;
6513 : : }
6514 : : default:;
6515 : : }
6516 : : break;
6517 : : }
6518 : : default:;
6519 : : }
6520 : : break;
6521 : : }
6522 : : default:;
6523 : : }
6524 : : break;
6525 : : }
6526 : 1005 : case EXACT_DIV_EXPR:
6527 : 1005 : {
6528 : 1005 : tree _q20 = TREE_OPERAND (_p0, 0);
6529 : 1005 : tree _q21 = TREE_OPERAND (_p0, 1);
6530 : 1005 : switch (TREE_CODE (_q21))
6531 : : {
6532 : 1005 : case INTEGER_CST:
6533 : 1005 : {
6534 : 1005 : switch (TREE_CODE (_p1))
6535 : : {
6536 : 2 : case EXACT_DIV_EXPR:
6537 : 2 : {
6538 : 2 : tree _q50 = TREE_OPERAND (_p1, 0);
6539 : 2 : tree _q51 = TREE_OPERAND (_p1, 1);
6540 : 2 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
6541 : : {
6542 : 0 : {
6543 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50 };
6544 : 0 : tree res = generic_simplify_209 (loc, type, _p0, _p1, captures, LT_EXPR);
6545 : 0 : if (res) return res;
6546 : : }
6547 : : }
6548 : : break;
6549 : : }
6550 : : default:;
6551 : : }
6552 : : break;
6553 : : }
6554 : : default:;
6555 : : }
6556 : : break;
6557 : : }
6558 : 12278 : case TRUNC_DIV_EXPR:
6559 : 12278 : {
6560 : 12278 : tree _q20 = TREE_OPERAND (_p0, 0);
6561 : 12278 : tree _q21 = TREE_OPERAND (_p0, 1);
6562 : 12278 : switch (TREE_CODE (_q21))
6563 : : {
6564 : 3479 : case INTEGER_CST:
6565 : 3479 : {
6566 : 3479 : switch (TREE_CODE (_p1))
6567 : : {
6568 : 1457 : case INTEGER_CST:
6569 : 1457 : {
6570 : 1457 : {
6571 : 1457 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
6572 : 1457 : tree res = generic_simplify_211 (loc, type, _p0, _p1, captures, LT_EXPR);
6573 : 1457 : if (res) return res;
6574 : : }
6575 : 695 : break;
6576 : : }
6577 : : default:;
6578 : : }
6579 : : break;
6580 : : }
6581 : : default:;
6582 : : }
6583 : : break;
6584 : : }
6585 : 2302515 : case PLUS_EXPR:
6586 : 2302515 : {
6587 : 2302515 : tree _q20 = TREE_OPERAND (_p0, 0);
6588 : 2302515 : tree _q21 = TREE_OPERAND (_p0, 1);
6589 : 2302515 : switch (TREE_CODE (_p1))
6590 : : {
6591 : 337137 : case PLUS_EXPR:
6592 : 337137 : {
6593 : 337137 : tree _q50 = TREE_OPERAND (_p1, 0);
6594 : 337137 : tree _q51 = TREE_OPERAND (_p1, 1);
6595 : 337137 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
6596 : : {
6597 : 133281 : {
6598 : 133281 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
6599 : 133281 : tree res = generic_simplify_371 (loc, type, _p0, _p1, captures, LT_EXPR);
6600 : 133281 : if (res) return res;
6601 : : }
6602 : : }
6603 : 280395 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
6604 : : {
6605 : 24 : {
6606 : 24 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
6607 : 24 : tree res = generic_simplify_371 (loc, type, _p0, _p1, captures, LT_EXPR);
6608 : 24 : if (res) return res;
6609 : : }
6610 : : }
6611 : 280379 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
6612 : : {
6613 : 35 : {
6614 : 35 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
6615 : 35 : tree res = generic_simplify_371 (loc, type, _p0, _p1, captures, LT_EXPR);
6616 : 35 : if (res) return res;
6617 : : }
6618 : : }
6619 : 280363 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
6620 : : {
6621 : 1738 : {
6622 : 1738 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
6623 : 1738 : tree res = generic_simplify_371 (loc, type, _p0, _p1, captures, LT_EXPR);
6624 : 1738 : if (res) return res;
6625 : : }
6626 : : }
6627 : : break;
6628 : : }
6629 : 2245391 : default:;
6630 : : }
6631 : 2245391 : switch (TREE_CODE (_q21))
6632 : : {
6633 : 1717319 : case INTEGER_CST:
6634 : 1717319 : {
6635 : 1717319 : switch (TREE_CODE (_p1))
6636 : : {
6637 : 275032 : case PLUS_EXPR:
6638 : 275032 : {
6639 : 275032 : tree _q50 = TREE_OPERAND (_p1, 0);
6640 : 275032 : tree _q51 = TREE_OPERAND (_p1, 1);
6641 : 275032 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
6642 : : {
6643 : 76539 : {
6644 : 76539 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
6645 : 76539 : tree res = generic_simplify_372 (loc, type, _p0, _p1, captures, LT_EXPR);
6646 : 76539 : if (res) return res;
6647 : : }
6648 : : }
6649 : : break;
6650 : : }
6651 : : default:;
6652 : : }
6653 : : break;
6654 : : }
6655 : 2245386 : default:;
6656 : : }
6657 : 2245386 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6658 : : {
6659 : 196071 : {
6660 : 196071 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
6661 : 196071 : tree res = generic_simplify_373 (loc, type, _p0, _p1, captures, LT_EXPR);
6662 : 196071 : if (res) return res;
6663 : : }
6664 : : }
6665 : 2075985 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
6666 : : {
6667 : 55781 : {
6668 : 55781 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
6669 : 55781 : tree res = generic_simplify_373 (loc, type, _p0, _p1, captures, LT_EXPR);
6670 : 55781 : if (res) return res;
6671 : : }
6672 : : }
6673 : : break;
6674 : : }
6675 : 187488 : case MINUS_EXPR:
6676 : 187488 : {
6677 : 187488 : tree _q20 = TREE_OPERAND (_p0, 0);
6678 : 187488 : tree _q21 = TREE_OPERAND (_p0, 1);
6679 : 187488 : switch (TREE_CODE (_p1))
6680 : : {
6681 : 4932 : case MINUS_EXPR:
6682 : 4932 : {
6683 : 4932 : tree _q50 = TREE_OPERAND (_p1, 0);
6684 : 4932 : tree _q51 = TREE_OPERAND (_p1, 1);
6685 : 4932 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
6686 : : {
6687 : 0 : {
6688 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
6689 : 0 : tree res = generic_simplify_374 (loc, type, _p0, _p1, captures, LT_EXPR);
6690 : 0 : if (res) return res;
6691 : : }
6692 : : }
6693 : 4932 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
6694 : : {
6695 : 217 : {
6696 : 217 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
6697 : 217 : tree res = generic_simplify_375 (loc, type, _p0, _p1, captures, LT_EXPR);
6698 : 217 : if (res) return res;
6699 : : }
6700 : : }
6701 : : break;
6702 : : }
6703 : : default:;
6704 : : }
6705 : : break;
6706 : : }
6707 : 102202 : case POINTER_DIFF_EXPR:
6708 : 102202 : {
6709 : 102202 : tree _q20 = TREE_OPERAND (_p0, 0);
6710 : 102202 : tree _q21 = TREE_OPERAND (_p0, 1);
6711 : 102202 : switch (TREE_CODE (_p1))
6712 : : {
6713 : 509 : case POINTER_DIFF_EXPR:
6714 : 509 : {
6715 : 509 : tree _q50 = TREE_OPERAND (_p1, 0);
6716 : 509 : tree _q51 = TREE_OPERAND (_p1, 1);
6717 : 509 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
6718 : : {
6719 : 0 : {
6720 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50 };
6721 : 0 : tree res = generic_simplify_215 (loc, type, _p0, _p1, captures, LT_EXPR);
6722 : 0 : if (res) return res;
6723 : : }
6724 : : }
6725 : 509 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
6726 : : {
6727 : 0 : {
6728 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q51 };
6729 : 0 : tree res = generic_simplify_216 (loc, type, _p0, _p1, captures, LT_EXPR);
6730 : 0 : if (res) return res;
6731 : : }
6732 : : }
6733 : : break;
6734 : : }
6735 : : default:;
6736 : : }
6737 : : break;
6738 : : }
6739 : 16441705 : default:;
6740 : : }
6741 : 16441705 : switch (TREE_CODE (_p1))
6742 : : {
6743 : 345674 : case PLUS_EXPR:
6744 : 345674 : {
6745 : 345674 : tree _q30 = TREE_OPERAND (_p1, 0);
6746 : 345674 : tree _q31 = TREE_OPERAND (_p1, 1);
6747 : 345674 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
6748 : : {
6749 : 120 : {
6750 : 120 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q30, _p0 };
6751 : 120 : tree res = generic_simplify_373 (loc, type, _p0, _p1, captures, GT_EXPR);
6752 : 120 : if (res) return res;
6753 : : }
6754 : : }
6755 : 345554 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
6756 : : {
6757 : 80 : {
6758 : 80 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q31, _p0 };
6759 : 80 : tree res = generic_simplify_373 (loc, type, _p0, _p1, captures, GT_EXPR);
6760 : 80 : if (res) return res;
6761 : : }
6762 : : }
6763 : : break;
6764 : : }
6765 : 23420 : case MINUS_EXPR:
6766 : 23420 : {
6767 : 23420 : tree _q30 = TREE_OPERAND (_p1, 0);
6768 : 23420 : tree _q31 = TREE_OPERAND (_p1, 1);
6769 : 23420 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
6770 : : {
6771 : 0 : {
6772 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q31 };
6773 : 0 : tree res = generic_simplify_214 (loc, type, _p0, _p1, captures, LT_EXPR);
6774 : 0 : if (res) return res;
6775 : : }
6776 : : }
6777 : : break;
6778 : : }
6779 : 16441585 : default:;
6780 : : }
6781 : 16441585 : switch (TREE_CODE (_p0))
6782 : : {
6783 : 187488 : case MINUS_EXPR:
6784 : 187488 : {
6785 : 187488 : tree _q20 = TREE_OPERAND (_p0, 0);
6786 : 187488 : tree _q21 = TREE_OPERAND (_p0, 1);
6787 : 187488 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
6788 : : {
6789 : 3834 : {
6790 : 3834 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p0, _q21 };
6791 : 3834 : tree res = generic_simplify_214 (loc, type, _p0, _p1, captures, GT_EXPR);
6792 : 3834 : if (res) return res;
6793 : : }
6794 : : }
6795 : : break;
6796 : : }
6797 : 1880 : case BIT_IOR_EXPR:
6798 : 1880 : {
6799 : 1880 : tree _q20 = TREE_OPERAND (_p0, 0);
6800 : 1880 : tree _q21 = TREE_OPERAND (_p0, 1);
6801 : 1880 : if (tree_expr_nonnegative_p (_q20))
6802 : : {
6803 : 582 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
6804 : : {
6805 : 0 : {
6806 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
6807 : 0 : tree res = generic_simplify_376 (loc, type, _p0, _p1, captures, LT_EXPR, BIT_IOR_EXPR);
6808 : 0 : if (res) return res;
6809 : : }
6810 : : }
6811 : : }
6812 : 1880 : if (tree_expr_nonnegative_p (_q21))
6813 : : {
6814 : 1206 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6815 : : {
6816 : 0 : {
6817 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
6818 : 0 : tree res = generic_simplify_376 (loc, type, _p0, _p1, captures, LT_EXPR, BIT_IOR_EXPR);
6819 : 0 : if (res) return res;
6820 : : }
6821 : : }
6822 : : }
6823 : : break;
6824 : : }
6825 : 16439161 : default:;
6826 : : }
6827 : 16439161 : switch (TREE_CODE (_p1))
6828 : : {
6829 : 445 : case BIT_AND_EXPR:
6830 : 445 : {
6831 : 445 : tree _q30 = TREE_OPERAND (_p1, 0);
6832 : 445 : tree _q31 = TREE_OPERAND (_p1, 1);
6833 : 445 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
6834 : : {
6835 : 0 : if (tree_expr_nonnegative_p (_q30))
6836 : : {
6837 : 0 : {
6838 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
6839 : 0 : tree res = generic_simplify_376 (loc, type, _p0, _p1, captures, GT_EXPR, BIT_AND_EXPR);
6840 : 0 : if (res) return res;
6841 : : }
6842 : : }
6843 : : }
6844 : 445 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
6845 : : {
6846 : 0 : if (tree_expr_nonnegative_p (_q31))
6847 : : {
6848 : 0 : {
6849 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
6850 : 0 : tree res = generic_simplify_376 (loc, type, _p0, _p1, captures, GT_EXPR, BIT_AND_EXPR);
6851 : 0 : if (res) return res;
6852 : : }
6853 : : }
6854 : : }
6855 : : break;
6856 : : }
6857 : 16439161 : default:;
6858 : : }
6859 : 16439161 : switch (TREE_CODE (_p0))
6860 : : {
6861 : 9868 : case MIN_EXPR:
6862 : 9868 : {
6863 : 9868 : tree _q20 = TREE_OPERAND (_p0, 0);
6864 : 9868 : tree _q21 = TREE_OPERAND (_p0, 1);
6865 : 9868 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
6866 : : {
6867 : 1 : {
6868 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
6869 : 1 : tree res = generic_simplify_224 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR, GT_EXPR);
6870 : 1 : if (res) return res;
6871 : : }
6872 : : }
6873 : 9867 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6874 : : {
6875 : 5 : {
6876 : 5 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
6877 : 5 : tree res = generic_simplify_224 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR, GT_EXPR);
6878 : 5 : if (res) return res;
6879 : : }
6880 : : }
6881 : 9865 : switch (TREE_CODE (_q21))
6882 : : {
6883 : 532 : case INTEGER_CST:
6884 : 532 : {
6885 : 532 : switch (TREE_CODE (_p1))
6886 : : {
6887 : 2 : case INTEGER_CST:
6888 : 2 : {
6889 : 2 : {
6890 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
6891 : 2 : tree res = generic_simplify_377 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR, BIT_IOR_EXPR);
6892 : 2 : if (res) return res;
6893 : : }
6894 : 0 : break;
6895 : : }
6896 : : default:;
6897 : : }
6898 : : break;
6899 : : }
6900 : : default:;
6901 : : }
6902 : : break;
6903 : : }
6904 : 16439156 : default:;
6905 : : }
6906 : 16439156 : switch (TREE_CODE (_p1))
6907 : : {
6908 : 1595 : case MAX_EXPR:
6909 : 1595 : {
6910 : 1595 : tree _q30 = TREE_OPERAND (_p1, 0);
6911 : 1595 : tree _q31 = TREE_OPERAND (_p1, 1);
6912 : 1595 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
6913 : : {
6914 : 0 : {
6915 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
6916 : 0 : tree res = generic_simplify_224 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR, LT_EXPR);
6917 : 0 : if (res) return res;
6918 : : }
6919 : : }
6920 : 1595 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
6921 : : {
6922 : 0 : {
6923 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
6924 : 0 : tree res = generic_simplify_224 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR, LT_EXPR);
6925 : 0 : if (res) return res;
6926 : : }
6927 : : }
6928 : : break;
6929 : : }
6930 : 927 : case MIN_EXPR:
6931 : 927 : {
6932 : 927 : tree _q30 = TREE_OPERAND (_p1, 0);
6933 : 927 : tree _q31 = TREE_OPERAND (_p1, 1);
6934 : 927 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
6935 : : {
6936 : 0 : {
6937 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
6938 : 0 : tree res = generic_simplify_378 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR);
6939 : 0 : if (res) return res;
6940 : : }
6941 : : }
6942 : 927 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
6943 : : {
6944 : 0 : {
6945 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
6946 : 0 : tree res = generic_simplify_378 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR);
6947 : 0 : if (res) return res;
6948 : : }
6949 : : }
6950 : : break;
6951 : : }
6952 : 16439156 : default:;
6953 : : }
6954 : 16439156 : switch (TREE_CODE (_p0))
6955 : : {
6956 : 6175 : case MAX_EXPR:
6957 : 6175 : {
6958 : 6175 : tree _q20 = TREE_OPERAND (_p0, 0);
6959 : 6175 : tree _q21 = TREE_OPERAND (_p0, 1);
6960 : 6175 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
6961 : : {
6962 : 1 : {
6963 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
6964 : 1 : tree res = generic_simplify_378 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR);
6965 : 1 : if (res) return res;
6966 : : }
6967 : : }
6968 : 6174 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6969 : : {
6970 : 1 : {
6971 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
6972 : 1 : tree res = generic_simplify_378 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR);
6973 : 1 : if (res) return res;
6974 : : }
6975 : : }
6976 : 6173 : switch (TREE_CODE (_q21))
6977 : : {
6978 : 5650 : case INTEGER_CST:
6979 : 5650 : {
6980 : 5650 : switch (TREE_CODE (_p1))
6981 : : {
6982 : 1 : case INTEGER_CST:
6983 : 1 : {
6984 : 1 : {
6985 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
6986 : 1 : tree res = generic_simplify_377 (loc, type, _p0, _p1, captures, MAX_EXPR, LT_EXPR, BIT_AND_EXPR);
6987 : 1 : if (res) return res;
6988 : : }
6989 : 0 : break;
6990 : : }
6991 : : default:;
6992 : : }
6993 : : break;
6994 : : }
6995 : : default:;
6996 : : }
6997 : : break;
6998 : : }
6999 : 904 : case VEC_COND_EXPR:
7000 : 904 : {
7001 : 904 : tree _q20 = TREE_OPERAND (_p0, 0);
7002 : 904 : tree _q21 = TREE_OPERAND (_p0, 1);
7003 : 904 : tree _q22 = TREE_OPERAND (_p0, 2);
7004 : 904 : switch (TREE_CODE (_p1))
7005 : : {
7006 : 0 : case VEC_COND_EXPR:
7007 : 0 : {
7008 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
7009 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
7010 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
7011 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
7012 : : {
7013 : 0 : {
7014 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
7015 : 0 : if (VECTOR_TYPE_P (type)
7016 : 0 : && (TREE_CODE_CLASS (LT_EXPR) != tcc_comparison
7017 : 0 : || types_match (type, TREE_TYPE (captures[2]))
7018 : 0 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
7019 : : || (optimize_vectors_before_lowering_p ()
7020 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
7021 : : )
7022 : : {
7023 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1769;
7024 : 0 : {
7025 : 0 : tree res_op0;
7026 : 0 : res_op0 = captures[1];
7027 : 0 : tree res_op1;
7028 : 0 : {
7029 : 0 : tree _o1[2], _r1;
7030 : 0 : _o1[0] = captures[2];
7031 : 0 : _o1[1] = captures[5];
7032 : 0 : _r1 = fold_build2_loc (loc, LT_EXPR, type, _o1[0], _o1[1]);
7033 : 0 : if (EXPR_P (_r1))
7034 : 0 : goto next_after_fail1769;
7035 : 0 : res_op1 = _r1;
7036 : : }
7037 : 0 : tree res_op2;
7038 : 0 : {
7039 : 0 : tree _o1[2], _r1;
7040 : 0 : _o1[0] = captures[3];
7041 : 0 : _o1[1] = captures[6];
7042 : 0 : _r1 = fold_build2_loc (loc, LT_EXPR, type, _o1[0], _o1[1]);
7043 : 0 : if (EXPR_P (_r1))
7044 : 0 : goto next_after_fail1769;
7045 : 0 : res_op2 = _r1;
7046 : : }
7047 : 0 : tree _r;
7048 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
7049 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 919, __FILE__, __LINE__, true);
7050 : 0 : return _r;
7051 : : }
7052 : 0 : next_after_fail1769:;
7053 : : }
7054 : : }
7055 : : }
7056 : : break;
7057 : : }
7058 : 904 : default:;
7059 : : }
7060 : 904 : {
7061 : 904 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
7062 : 904 : if (VECTOR_TYPE_P (type)
7063 : 904 : && (TREE_CODE_CLASS (LT_EXPR) != tcc_comparison
7064 : 904 : || types_match (type, TREE_TYPE (captures[2]))
7065 : 904 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
7066 : : || (optimize_vectors_before_lowering_p ()
7067 : 1 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
7068 : : )
7069 : : {
7070 : 904 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1770;
7071 : 904 : {
7072 : 904 : if (! tree_invariant_p (captures[4])) goto next_after_fail1770;
7073 : 36 : tree res_op0;
7074 : 36 : res_op0 = captures[1];
7075 : 36 : tree res_op1;
7076 : 36 : {
7077 : 36 : tree _o1[2], _r1;
7078 : 36 : _o1[0] = captures[2];
7079 : 36 : _o1[1] = unshare_expr (captures[4]);
7080 : 36 : _r1 = fold_build2_loc (loc, LT_EXPR, type, _o1[0], _o1[1]);
7081 : 36 : if (EXPR_P (_r1))
7082 : 35 : goto next_after_fail1770;
7083 : 1 : res_op1 = _r1;
7084 : : }
7085 : 1 : tree res_op2;
7086 : 1 : {
7087 : 1 : tree _o1[2], _r1;
7088 : 1 : _o1[0] = captures[3];
7089 : 1 : _o1[1] = captures[4];
7090 : 1 : _r1 = fold_build2_loc (loc, LT_EXPR, type, _o1[0], _o1[1]);
7091 : 1 : if (EXPR_P (_r1))
7092 : 0 : goto next_after_fail1770;
7093 : 1 : res_op2 = _r1;
7094 : : }
7095 : 1 : tree _r;
7096 : 1 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
7097 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 920, __FILE__, __LINE__, true);
7098 : 1 : return _r;
7099 : : }
7100 : 903 : next_after_fail1770:;
7101 : : }
7102 : : }
7103 : 903 : break;
7104 : : }
7105 : 16439152 : default:;
7106 : : }
7107 : 16439152 : switch (TREE_CODE (_p1))
7108 : : {
7109 : 58 : case VEC_COND_EXPR:
7110 : 58 : {
7111 : 58 : tree _q30 = TREE_OPERAND (_p1, 0);
7112 : 58 : tree _q31 = TREE_OPERAND (_p1, 1);
7113 : 58 : tree _q32 = TREE_OPERAND (_p1, 2);
7114 : 58 : {
7115 : 58 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
7116 : 58 : if (VECTOR_TYPE_P (type)
7117 : 58 : && (TREE_CODE_CLASS (LT_EXPR) != tcc_comparison
7118 : 58 : || types_match (type, TREE_TYPE (captures[3]))
7119 : 58 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
7120 : : || (optimize_vectors_before_lowering_p ()
7121 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
7122 : : )
7123 : : {
7124 : 58 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1771;
7125 : 58 : {
7126 : 58 : if (! tree_invariant_p (captures[0])) goto next_after_fail1771;
7127 : 0 : tree res_op0;
7128 : 0 : res_op0 = captures[2];
7129 : 0 : tree res_op1;
7130 : 0 : {
7131 : 0 : tree _o1[2], _r1;
7132 : 0 : _o1[0] = unshare_expr (captures[0]);
7133 : 0 : _o1[1] = captures[3];
7134 : 0 : _r1 = fold_build2_loc (loc, LT_EXPR, type, _o1[0], _o1[1]);
7135 : 0 : if (EXPR_P (_r1))
7136 : 0 : goto next_after_fail1771;
7137 : 0 : res_op1 = _r1;
7138 : : }
7139 : 0 : tree res_op2;
7140 : 0 : {
7141 : 0 : tree _o1[2], _r1;
7142 : 0 : _o1[0] = captures[0];
7143 : 0 : _o1[1] = captures[4];
7144 : 0 : _r1 = fold_build2_loc (loc, LT_EXPR, type, _o1[0], _o1[1]);
7145 : 0 : if (EXPR_P (_r1))
7146 : 0 : goto next_after_fail1771;
7147 : 0 : res_op2 = _r1;
7148 : : }
7149 : 0 : tree _r;
7150 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
7151 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 921, __FILE__, __LINE__, true);
7152 : 0 : return _r;
7153 : : }
7154 : 58 : next_after_fail1771:;
7155 : : }
7156 : : }
7157 : 58 : break;
7158 : : }
7159 : 16439152 : default:;
7160 : : }
7161 : 16439152 : if (uniform_integer_cst_p (_p1))
7162 : : {
7163 : 5656306 : {
7164 : 5656306 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
7165 : 5656306 : tree res = generic_simplify_379 (loc, type, _p0, _p1, captures, LT_EXPR, LE_EXPR);
7166 : 5656306 : if (res) return res;
7167 : : }
7168 : : }
7169 : 14097903 : switch (TREE_CODE (_p0))
7170 : : {
7171 : 131767 : case MULT_EXPR:
7172 : 131767 : {
7173 : 131767 : tree _q20 = TREE_OPERAND (_p0, 0);
7174 : 131767 : tree _q21 = TREE_OPERAND (_p0, 1);
7175 : 131767 : switch (TREE_CODE (_q21))
7176 : : {
7177 : 71703 : case INTEGER_CST:
7178 : 71703 : {
7179 : 71703 : if (integer_zerop (_p1))
7180 : : {
7181 : 5780 : {
7182 : 5780 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
7183 : 5780 : tree res = generic_simplify_244 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
7184 : 5780 : if (res) return res;
7185 : : }
7186 : : }
7187 : : break;
7188 : : }
7189 : : default:;
7190 : : }
7191 : : break;
7192 : : }
7193 : 14094959 : default:;
7194 : : }
7195 : 14094959 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
7196 : : {
7197 : 3546 : {
7198 : 3546 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
7199 : 3546 : tree res = generic_simplify_297 (loc, type, _p0, _p1, captures, LT_EXPR);
7200 : 3546 : if (res) return res;
7201 : : }
7202 : : }
7203 : 14091413 : switch (TREE_CODE (_p0))
7204 : : {
7205 : 2487 : case BIT_NOT_EXPR:
7206 : 2487 : {
7207 : 2487 : tree _q20 = TREE_OPERAND (_p0, 0);
7208 : 2487 : switch (TREE_CODE (_p1))
7209 : : {
7210 : 7 : case BIT_NOT_EXPR:
7211 : 7 : {
7212 : 7 : tree _q40 = TREE_OPERAND (_p1, 0);
7213 : 7 : {
7214 : 7 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _p1, _q40 };
7215 : 7 : tree res = generic_simplify_250 (loc, type, _p0, _p1, captures, LT_EXPR);
7216 : 7 : if (res) return res;
7217 : : }
7218 : 0 : break;
7219 : : }
7220 : 2480 : default:;
7221 : : }
7222 : 2480 : {
7223 : 2480 : tree _p1_pops[1];
7224 : 2480 : if (tree_nop_convert (_p1, _p1_pops))
7225 : : {
7226 : 24 : tree _q40 = _p1_pops[0];
7227 : 24 : switch (TREE_CODE (_q40))
7228 : : {
7229 : 0 : case BIT_NOT_EXPR:
7230 : 0 : {
7231 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
7232 : 0 : {
7233 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q40, _q50 };
7234 : 0 : tree res = generic_simplify_250 (loc, type, _p0, _p1, captures, LT_EXPR);
7235 : 0 : if (res) return res;
7236 : : }
7237 : 0 : break;
7238 : : }
7239 : : default:;
7240 : : }
7241 : : }
7242 : : }
7243 : 2480 : if (CONSTANT_CLASS_P (_p1))
7244 : : {
7245 : 23 : {
7246 : 23 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
7247 : 23 : tree res = generic_simplify_249 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
7248 : 23 : if (res) return res;
7249 : : }
7250 : : }
7251 : : break;
7252 : : }
7253 : 14091383 : default:;
7254 : : }
7255 : 14091383 : {
7256 : 14091383 : tree _p0_pops[1];
7257 : 14091383 : if (tree_nop_convert (_p0, _p0_pops))
7258 : : {
7259 : 1593471 : tree _q20 = _p0_pops[0];
7260 : 1593471 : switch (TREE_CODE (_q20))
7261 : : {
7262 : 0 : case BIT_NOT_EXPR:
7263 : 0 : {
7264 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7265 : 0 : switch (TREE_CODE (_p1))
7266 : : {
7267 : 0 : case BIT_NOT_EXPR:
7268 : 0 : {
7269 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
7270 : 0 : {
7271 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _p1, _q50 };
7272 : 0 : tree res = generic_simplify_248 (loc, type, _p0, _p1, captures, LT_EXPR);
7273 : 0 : if (res) return res;
7274 : : }
7275 : 0 : break;
7276 : : }
7277 : 0 : default:;
7278 : : }
7279 : 0 : {
7280 : 0 : tree _p1_pops[1];
7281 : 0 : if (tree_nop_convert (_p1, _p1_pops))
7282 : : {
7283 : 0 : tree _q50 = _p1_pops[0];
7284 : 0 : switch (TREE_CODE (_q50))
7285 : : {
7286 : 0 : case BIT_NOT_EXPR:
7287 : 0 : {
7288 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
7289 : 0 : {
7290 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q50, _q60 };
7291 : 0 : tree res = generic_simplify_248 (loc, type, _p0, _p1, captures, LT_EXPR);
7292 : 0 : if (res) return res;
7293 : : }
7294 : 0 : break;
7295 : : }
7296 : : default:;
7297 : : }
7298 : : }
7299 : : }
7300 : 0 : if (CONSTANT_CLASS_P (_p1))
7301 : : {
7302 : 0 : {
7303 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
7304 : 0 : tree res = generic_simplify_249 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
7305 : 0 : if (res) return res;
7306 : : }
7307 : : }
7308 : : break;
7309 : : }
7310 : : default:;
7311 : : }
7312 : : }
7313 : : }
7314 : 14091383 : switch (TREE_CODE (_p1))
7315 : : {
7316 : 3131091 : case REAL_CST:
7317 : 3131091 : {
7318 : 3131091 : {
7319 : 3131091 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
7320 : 3131091 : tree res = generic_simplify_251 (loc, type, _p0, _p1, captures, LT_EXPR);
7321 : 3131091 : if (res) return res;
7322 : : }
7323 : 3130992 : break;
7324 : : }
7325 : 14091284 : default:;
7326 : : }
7327 : 14091284 : switch (TREE_CODE (_p0))
7328 : : {
7329 : 1956037 : case PLUS_EXPR:
7330 : 1956037 : {
7331 : 1956037 : tree _q20 = TREE_OPERAND (_p0, 0);
7332 : 1956037 : tree _q21 = TREE_OPERAND (_p0, 1);
7333 : 1956037 : switch (TREE_CODE (_q21))
7334 : : {
7335 : 593 : case REAL_CST:
7336 : 593 : {
7337 : 593 : switch (TREE_CODE (_p1))
7338 : : {
7339 : 223 : case REAL_CST:
7340 : 223 : {
7341 : 223 : {
7342 : 223 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7343 : 223 : tree res = generic_simplify_252 (loc, type, _p0, _p1, captures, PLUS_EXPR, LT_EXPR);
7344 : 223 : if (res) return res;
7345 : : }
7346 : 221 : break;
7347 : : }
7348 : : default:;
7349 : : }
7350 : : break;
7351 : : }
7352 : 1436648 : case INTEGER_CST:
7353 : 1436648 : {
7354 : 1436648 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
7355 : : {
7356 : 18271 : {
7357 : 18271 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q20, _q21 };
7358 : 18271 : tree res = generic_simplify_380 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
7359 : 18271 : if (res) return res;
7360 : : }
7361 : : }
7362 : : break;
7363 : : }
7364 : : default:;
7365 : : }
7366 : : break;
7367 : : }
7368 : 178165 : case MINUS_EXPR:
7369 : 178165 : {
7370 : 178165 : tree _q20 = TREE_OPERAND (_p0, 0);
7371 : 178165 : tree _q21 = TREE_OPERAND (_p0, 1);
7372 : 178165 : switch (TREE_CODE (_q21))
7373 : : {
7374 : 210 : case REAL_CST:
7375 : 210 : {
7376 : 210 : switch (TREE_CODE (_p1))
7377 : : {
7378 : 195 : case REAL_CST:
7379 : 195 : {
7380 : 195 : {
7381 : 195 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7382 : 195 : tree res = generic_simplify_252 (loc, type, _p0, _p1, captures, MINUS_EXPR, LT_EXPR);
7383 : 195 : if (res) return res;
7384 : : }
7385 : 195 : break;
7386 : : }
7387 : : default:;
7388 : : }
7389 : : break;
7390 : : }
7391 : 178165 : default:;
7392 : : }
7393 : 178165 : switch (TREE_CODE (_q20))
7394 : : {
7395 : 20336 : case REAL_CST:
7396 : 20336 : {
7397 : 20336 : switch (TREE_CODE (_p1))
7398 : : {
7399 : 20152 : case REAL_CST:
7400 : 20152 : {
7401 : 20152 : {
7402 : 20152 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7403 : 20152 : tree res = generic_simplify_253 (loc, type, _p0, _p1, captures, LT_EXPR);
7404 : 20152 : if (res) return res;
7405 : : }
7406 : 20142 : break;
7407 : : }
7408 : : default:;
7409 : : }
7410 : : break;
7411 : : }
7412 : : default:;
7413 : : }
7414 : : break;
7415 : : }
7416 : 52955 : case FLOAT_EXPR:
7417 : 52955 : {
7418 : 52955 : tree _q20 = TREE_OPERAND (_p0, 0);
7419 : 52955 : switch (TREE_CODE (_p1))
7420 : : {
7421 : 102 : case FLOAT_EXPR:
7422 : 102 : {
7423 : 102 : tree _q40 = TREE_OPERAND (_p1, 0);
7424 : 102 : {
7425 : 102 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
7426 : 102 : tree res = generic_simplify_256 (loc, type, _p0, _p1, captures, LT_EXPR, LT_EXPR);
7427 : 102 : if (res) return res;
7428 : : }
7429 : 71 : break;
7430 : : }
7431 : 659 : case REAL_CST:
7432 : 659 : {
7433 : 659 : {
7434 : 659 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
7435 : 659 : tree res = generic_simplify_257 (loc, type, _p0, _p1, captures, LT_EXPR, LE_EXPR);
7436 : 659 : if (res) return res;
7437 : : }
7438 : 555 : break;
7439 : : }
7440 : : default:;
7441 : : }
7442 : : break;
7443 : : }
7444 : 658 : case EXACT_DIV_EXPR:
7445 : 658 : {
7446 : 658 : tree _q20 = TREE_OPERAND (_p0, 0);
7447 : 658 : tree _q21 = TREE_OPERAND (_p0, 1);
7448 : 658 : switch (TREE_CODE (_q21))
7449 : : {
7450 : 658 : case INTEGER_CST:
7451 : 658 : {
7452 : 658 : switch (TREE_CODE (_p1))
7453 : : {
7454 : 19 : case INTEGER_CST:
7455 : 19 : {
7456 : 19 : {
7457 : 19 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7458 : 19 : tree res = generic_simplify_381 (loc, type, _p0, _p1, captures, LT_EXPR);
7459 : 19 : if (res) return res;
7460 : : }
7461 : 0 : break;
7462 : : }
7463 : : default:;
7464 : : }
7465 : : break;
7466 : : }
7467 : : default:;
7468 : : }
7469 : : break;
7470 : : }
7471 : 2372411 : CASE_CONVERT:
7472 : 2372411 : {
7473 : 2372411 : tree _q20 = TREE_OPERAND (_p0, 0);
7474 : 2372411 : switch (TREE_CODE (_q20))
7475 : : {
7476 : 116 : case EXACT_DIV_EXPR:
7477 : 116 : {
7478 : 116 : tree _q30 = TREE_OPERAND (_q20, 0);
7479 : 116 : tree _q31 = TREE_OPERAND (_q20, 1);
7480 : 116 : switch (TREE_CODE (_q31))
7481 : : {
7482 : 116 : case INTEGER_CST:
7483 : 116 : {
7484 : 116 : switch (TREE_CODE (_p1))
7485 : : {
7486 : 0 : case INTEGER_CST:
7487 : 0 : {
7488 : 0 : {
7489 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
7490 : 0 : tree res = generic_simplify_382 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR);
7491 : 0 : if (res) return res;
7492 : : }
7493 : 0 : break;
7494 : : }
7495 : : default:;
7496 : : }
7497 : : break;
7498 : : }
7499 : : default:;
7500 : : }
7501 : : break;
7502 : : }
7503 : 2372411 : default:;
7504 : : }
7505 : 2372411 : switch (TREE_CODE (_p1))
7506 : : {
7507 : 1356191 : CASE_CONVERT:
7508 : 1356191 : {
7509 : 1356191 : tree _q40 = TREE_OPERAND (_p1, 0);
7510 : 1356191 : {
7511 : 1356191 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
7512 : 1356191 : tree res = generic_simplify_261 (loc, type, _p0, _p1, captures, LT_EXPR);
7513 : 1356191 : if (res) return res;
7514 : : }
7515 : 1118207 : break;
7516 : : }
7517 : 2134427 : default:;
7518 : : }
7519 : 2134427 : {
7520 : 2134427 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
7521 : 2134427 : tree res = generic_simplify_262 (loc, type, _p0, _p1, captures, LT_EXPR);
7522 : 2134427 : if (res) return res;
7523 : : }
7524 : 1850240 : switch (TREE_CODE (_q20))
7525 : : {
7526 : 50660 : case ADDR_EXPR:
7527 : 50660 : {
7528 : 50660 : switch (TREE_CODE (_p1))
7529 : : {
7530 : 50162 : CASE_CONVERT:
7531 : 50162 : {
7532 : 50162 : tree _q40 = TREE_OPERAND (_p1, 0);
7533 : 50162 : switch (TREE_CODE (_q40))
7534 : : {
7535 : 50162 : case ADDR_EXPR:
7536 : 50162 : {
7537 : 50162 : {
7538 : 50162 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
7539 : 50162 : tree res = generic_simplify_279 (loc, type, _p0, _p1, captures, LT_EXPR);
7540 : 50162 : if (res) return res;
7541 : : }
7542 : 309 : break;
7543 : : }
7544 : : default:;
7545 : : }
7546 : : break;
7547 : : }
7548 : 468 : case ADDR_EXPR:
7549 : 468 : {
7550 : 468 : {
7551 : 468 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
7552 : 468 : tree res = generic_simplify_279 (loc, type, _p0, _p1, captures, LT_EXPR);
7553 : 468 : if (res) return res;
7554 : : }
7555 : 0 : break;
7556 : : }
7557 : : default:;
7558 : : }
7559 : : break;
7560 : : }
7561 : 1799919 : default:;
7562 : : }
7563 : 1799919 : if (uniform_integer_cst_p (_p1))
7564 : : {
7565 : 194578 : {
7566 : 194578 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
7567 : 194578 : tree res = generic_simplify_383 (loc, type, _p0, _p1, captures, LT_EXPR);
7568 : 194578 : if (res) return res;
7569 : : }
7570 : : }
7571 : : break;
7572 : : }
7573 : 2690 : case NEGATE_EXPR:
7574 : 2690 : {
7575 : 2690 : tree _q20 = TREE_OPERAND (_p0, 0);
7576 : 2690 : switch (TREE_CODE (_p1))
7577 : : {
7578 : 0 : case NEGATE_EXPR:
7579 : 0 : {
7580 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
7581 : 0 : {
7582 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
7583 : 0 : tree res = generic_simplify_259 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
7584 : 0 : if (res) return res;
7585 : : }
7586 : 0 : break;
7587 : : }
7588 : 2690 : default:;
7589 : : }
7590 : 2690 : if (CONSTANT_CLASS_P (_p1))
7591 : : {
7592 : 301 : {
7593 : 301 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
7594 : 301 : tree res = generic_simplify_260 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
7595 : 301 : if (res) return res;
7596 : : }
7597 : : }
7598 : : break;
7599 : : }
7600 : 30799 : case ADDR_EXPR:
7601 : 30799 : {
7602 : 30799 : switch (TREE_CODE (_p1))
7603 : : {
7604 : 0 : CASE_CONVERT:
7605 : 0 : {
7606 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
7607 : 0 : switch (TREE_CODE (_q30))
7608 : : {
7609 : 0 : case ADDR_EXPR:
7610 : 0 : {
7611 : 0 : {
7612 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q30 };
7613 : 0 : tree res = generic_simplify_280 (loc, type, _p0, _p1, captures, LT_EXPR);
7614 : 0 : if (res) return res;
7615 : : }
7616 : 0 : break;
7617 : : }
7618 : : default:;
7619 : : }
7620 : : break;
7621 : : }
7622 : 30376 : case ADDR_EXPR:
7623 : 30376 : {
7624 : 30376 : {
7625 : 30376 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _p1 };
7626 : 30376 : tree res = generic_simplify_280 (loc, type, _p0, _p1, captures, LT_EXPR);
7627 : 30376 : if (res) return res;
7628 : : }
7629 : 362 : break;
7630 : : }
7631 : : default:;
7632 : : }
7633 : : break;
7634 : : }
7635 : 1659709 : case CALL_EXPR:
7636 : 1659709 : switch (get_call_combined_fn (_p0))
7637 : : {
7638 : 5 : case CFN_BUILT_IN_SQRTF:
7639 : 5 : if (call_expr_nargs (_p0) == 1)
7640 : : {
7641 : 5 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
7642 : 5 : switch (TREE_CODE (_p1))
7643 : : {
7644 : 5 : case REAL_CST:
7645 : 5 : {
7646 : 5 : {
7647 : 5 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
7648 : 5 : tree res = generic_simplify_254 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTF, LT_EXPR);
7649 : 5 : if (res) return res;
7650 : : }
7651 : 0 : break;
7652 : : }
7653 : 0 : case CALL_EXPR:
7654 : 0 : switch (get_call_combined_fn (_p1))
7655 : : {
7656 : 0 : case CFN_BUILT_IN_SQRTF:
7657 : 0 : if (call_expr_nargs (_p1) == 1)
7658 : : {
7659 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
7660 : 0 : {
7661 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
7662 : 0 : tree res = generic_simplify_255 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTF, LT_EXPR);
7663 : 0 : if (res) return res;
7664 : : }
7665 : : }
7666 : : break;
7667 : : default:;
7668 : : }
7669 : : break;
7670 : : default:;
7671 : : }
7672 : : }
7673 : : break;
7674 : 0 : case CFN_BUILT_IN_SQRTL:
7675 : 0 : if (call_expr_nargs (_p0) == 1)
7676 : : {
7677 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
7678 : 0 : switch (TREE_CODE (_p1))
7679 : : {
7680 : 0 : case REAL_CST:
7681 : 0 : {
7682 : 0 : {
7683 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
7684 : 0 : tree res = generic_simplify_254 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTL, LT_EXPR);
7685 : 0 : if (res) return res;
7686 : : }
7687 : 0 : break;
7688 : : }
7689 : 0 : case CALL_EXPR:
7690 : 0 : switch (get_call_combined_fn (_p1))
7691 : : {
7692 : 0 : case CFN_BUILT_IN_SQRTL:
7693 : 0 : if (call_expr_nargs (_p1) == 1)
7694 : : {
7695 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
7696 : 0 : {
7697 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
7698 : 0 : tree res = generic_simplify_255 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTL, LT_EXPR);
7699 : 0 : if (res) return res;
7700 : : }
7701 : : }
7702 : : break;
7703 : : default:;
7704 : : }
7705 : : break;
7706 : : default:;
7707 : : }
7708 : : }
7709 : : break;
7710 : 4 : case CFN_BUILT_IN_SQRT:
7711 : 4 : if (call_expr_nargs (_p0) == 1)
7712 : : {
7713 : 4 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
7714 : 4 : switch (TREE_CODE (_p1))
7715 : : {
7716 : 4 : case REAL_CST:
7717 : 4 : {
7718 : 4 : {
7719 : 4 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
7720 : 4 : tree res = generic_simplify_254 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRT, LT_EXPR);
7721 : 4 : if (res) return res;
7722 : : }
7723 : 1 : break;
7724 : : }
7725 : 0 : case CALL_EXPR:
7726 : 0 : switch (get_call_combined_fn (_p1))
7727 : : {
7728 : 0 : case CFN_BUILT_IN_SQRT:
7729 : 0 : if (call_expr_nargs (_p1) == 1)
7730 : : {
7731 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
7732 : 0 : {
7733 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
7734 : 0 : tree res = generic_simplify_255 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRT, LT_EXPR);
7735 : 0 : if (res) return res;
7736 : : }
7737 : : }
7738 : : break;
7739 : : default:;
7740 : : }
7741 : : break;
7742 : : default:;
7743 : : }
7744 : : }
7745 : : break;
7746 : 0 : case CFN_SQRT:
7747 : 0 : if (call_expr_nargs (_p0) == 1)
7748 : : {
7749 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
7750 : 0 : switch (TREE_CODE (_p1))
7751 : : {
7752 : 0 : case REAL_CST:
7753 : 0 : {
7754 : 0 : {
7755 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
7756 : 0 : tree res = generic_simplify_254 (loc, type, _p0, _p1, captures, CFN_SQRT, LT_EXPR);
7757 : 0 : if (res) return res;
7758 : : }
7759 : 0 : break;
7760 : : }
7761 : 0 : case CALL_EXPR:
7762 : 0 : switch (get_call_combined_fn (_p1))
7763 : : {
7764 : 0 : case CFN_SQRT:
7765 : 0 : if (call_expr_nargs (_p1) == 1)
7766 : : {
7767 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
7768 : 0 : {
7769 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
7770 : 0 : tree res = generic_simplify_255 (loc, type, _p0, _p1, captures, CFN_SQRT, LT_EXPR);
7771 : 0 : if (res) return res;
7772 : : }
7773 : : }
7774 : : break;
7775 : : default:;
7776 : : }
7777 : : break;
7778 : : default:;
7779 : : }
7780 : : }
7781 : : break;
7782 : : default:;
7783 : : }
7784 : : break;
7785 : 13467502 : default:;
7786 : : }
7787 : 13467502 : switch (TREE_CODE (_p1))
7788 : : {
7789 : 1616321 : CASE_CONVERT:
7790 : 1616321 : {
7791 : 1616321 : tree _q30 = TREE_OPERAND (_p1, 0);
7792 : 1616321 : switch (TREE_CODE (_q30))
7793 : : {
7794 : 0 : case NE_EXPR:
7795 : 0 : {
7796 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
7797 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
7798 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
7799 : : {
7800 : 0 : if (integer_zerop (_q41))
7801 : : {
7802 : 0 : {
7803 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
7804 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0]))
7805 : : )
7806 : : {
7807 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1772;
7808 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1772;
7809 : 0 : {
7810 : 0 : tree _r;
7811 : 0 : _r = constant_boolean_node (false, type);
7812 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1028, __FILE__, __LINE__, true);
7813 : 0 : return _r;
7814 : : }
7815 : : next_after_fail1772:;
7816 : : }
7817 : : }
7818 : : }
7819 : : }
7820 : : break;
7821 : : }
7822 : : default:;
7823 : : }
7824 : : break;
7825 : : }
7826 : 13467502 : default:;
7827 : : }
7828 : 13467502 : if (uniform_integer_cst_p (_p1))
7829 : : {
7830 : 3025530 : {
7831 : 3025530 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _p1 };
7832 : 3025530 : tree res = generic_simplify_384 (loc, type, _p0, _p1, captures, LT_EXPR);
7833 : 3025530 : if (res) return res;
7834 : : }
7835 : : }
7836 : 13032879 : switch (TREE_CODE (_p0))
7837 : : {
7838 : 1796546 : CASE_CONVERT:
7839 : 1796546 : {
7840 : 1796546 : tree _q20 = TREE_OPERAND (_p0, 0);
7841 : 1796546 : switch (TREE_CODE (_q20))
7842 : : {
7843 : 92699 : case PLUS_EXPR:
7844 : 92699 : {
7845 : 92699 : tree _q30 = TREE_OPERAND (_q20, 0);
7846 : 92699 : tree _q31 = TREE_OPERAND (_q20, 1);
7847 : 92699 : switch (TREE_CODE (_q30))
7848 : : {
7849 : 66596 : CASE_CONVERT:
7850 : 66596 : {
7851 : 66596 : tree _q40 = TREE_OPERAND (_q30, 0);
7852 : 66596 : switch (TREE_CODE (_q31))
7853 : : {
7854 : 66559 : case INTEGER_CST:
7855 : 66559 : {
7856 : 66559 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
7857 : : {
7858 : 27 : {
7859 : 27 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q40, _q31 };
7860 : 27 : tree res = generic_simplify_385 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
7861 : 27 : if (res) return res;
7862 : : }
7863 : : }
7864 : : break;
7865 : : }
7866 : : default:;
7867 : : }
7868 : : break;
7869 : : }
7870 : : default:;
7871 : : }
7872 : : break;
7873 : : }
7874 : : default:;
7875 : : }
7876 : : break;
7877 : : }
7878 : 13032852 : default:;
7879 : : }
7880 : 13032852 : switch (TREE_CODE (_p1))
7881 : : {
7882 : 1616321 : CASE_CONVERT:
7883 : 1616321 : {
7884 : 1616321 : tree _q30 = TREE_OPERAND (_p1, 0);
7885 : 1616321 : switch (TREE_CODE (_q30))
7886 : : {
7887 : 21458 : case PLUS_EXPR:
7888 : 21458 : {
7889 : 21458 : tree _q40 = TREE_OPERAND (_q30, 0);
7890 : 21458 : tree _q41 = TREE_OPERAND (_q30, 1);
7891 : 21458 : switch (TREE_CODE (_q40))
7892 : : {
7893 : 20305 : CASE_CONVERT:
7894 : 20305 : {
7895 : 20305 : tree _q50 = TREE_OPERAND (_q40, 0);
7896 : 20305 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
7897 : : {
7898 : 0 : switch (TREE_CODE (_q41))
7899 : : {
7900 : 0 : case INTEGER_CST:
7901 : 0 : {
7902 : 0 : {
7903 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q30, _q40, _p0, _q41 };
7904 : 0 : tree res = generic_simplify_385 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
7905 : 0 : if (res) return res;
7906 : : }
7907 : 0 : break;
7908 : : }
7909 : : default:;
7910 : : }
7911 : : }
7912 : : break;
7913 : : }
7914 : : default:;
7915 : : }
7916 : : break;
7917 : : }
7918 : : default:;
7919 : : }
7920 : : break;
7921 : : }
7922 : 345554 : case PLUS_EXPR:
7923 : 345554 : {
7924 : 345554 : tree _q30 = TREE_OPERAND (_p1, 0);
7925 : 345554 : tree _q31 = TREE_OPERAND (_p1, 1);
7926 : 345554 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
7927 : : {
7928 : 80 : switch (TREE_CODE (_q31))
7929 : : {
7930 : 64 : case INTEGER_CST:
7931 : 64 : {
7932 : 64 : {
7933 : 64 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _p1, _q30, _p0, _q31 };
7934 : 64 : tree res = generic_simplify_380 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
7935 : 64 : if (res) return res;
7936 : : }
7937 : 0 : break;
7938 : : }
7939 : : default:;
7940 : : }
7941 : : }
7942 : : break;
7943 : : }
7944 : 23420 : case MINUS_EXPR:
7945 : 23420 : {
7946 : 23420 : tree _q30 = TREE_OPERAND (_p1, 0);
7947 : 23420 : tree _q31 = TREE_OPERAND (_p1, 1);
7948 : 23420 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
7949 : : {
7950 : 0 : {
7951 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _p0, _q31 };
7952 : 0 : tree res = generic_simplify_386 (loc, type, _p0, _p1, captures, GT_EXPR);
7953 : 0 : if (res) return res;
7954 : : }
7955 : : }
7956 : : break;
7957 : : }
7958 : 13032788 : default:;
7959 : : }
7960 : 13032788 : switch (TREE_CODE (_p0))
7961 : : {
7962 : 1921126 : case PLUS_EXPR:
7963 : 1921126 : {
7964 : 1921126 : tree _q20 = TREE_OPERAND (_p0, 0);
7965 : 1921126 : tree _q21 = TREE_OPERAND (_p0, 1);
7966 : 1921126 : switch (TREE_CODE (_q20))
7967 : : {
7968 : 1343 : case MINUS_EXPR:
7969 : 1343 : {
7970 : 1343 : tree _q30 = TREE_OPERAND (_q20, 0);
7971 : 1343 : tree _q31 = TREE_OPERAND (_q20, 1);
7972 : 1343 : if (integer_minus_onep (_q21))
7973 : : {
7974 : 49 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
7975 : : {
7976 : 1 : {
7977 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
7978 : 1 : tree res = generic_simplify_387 (loc, type, _p0, _p1, captures, LT_EXPR);
7979 : 1 : if (res) return res;
7980 : : }
7981 : : }
7982 : : }
7983 : : break;
7984 : : }
7985 : : default:;
7986 : : }
7987 : : break;
7988 : : }
7989 : 13032787 : default:;
7990 : : }
7991 : 13032787 : switch (TREE_CODE (_p1))
7992 : : {
7993 : 0 : case REALPART_EXPR:
7994 : 0 : {
7995 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
7996 : 0 : switch (TREE_CODE (_q30))
7997 : : {
7998 : 0 : case CALL_EXPR:
7999 : 0 : switch (get_call_combined_fn (_q30))
8000 : : {
8001 : 0 : case CFN_SUB_OVERFLOW:
8002 : 0 : if (call_expr_nargs (_q30) == 2)
8003 : : {
8004 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
8005 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
8006 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
8007 : : {
8008 : 0 : {
8009 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _p0, _q41 };
8010 : 0 : tree res = generic_simplify_388 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
8011 : 0 : if (res) return res;
8012 : : }
8013 : : }
8014 : : }
8015 : : break;
8016 : : default:;
8017 : : }
8018 : : break;
8019 : : default:;
8020 : : }
8021 : : break;
8022 : : }
8023 : 13032787 : default:;
8024 : : }
8025 : 13032787 : switch (TREE_CODE (_p0))
8026 : : {
8027 : 20 : case REALPART_EXPR:
8028 : 20 : {
8029 : 20 : tree _q20 = TREE_OPERAND (_p0, 0);
8030 : 20 : switch (TREE_CODE (_q20))
8031 : : {
8032 : 0 : case CALL_EXPR:
8033 : 0 : switch (get_call_combined_fn (_q20))
8034 : : {
8035 : 0 : case CFN_ADD_OVERFLOW:
8036 : 0 : if (call_expr_nargs (_q20) == 2)
8037 : : {
8038 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
8039 : 0 : tree _q31 = CALL_EXPR_ARG (_q20, 1);
8040 : 0 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
8041 : : {
8042 : 0 : {
8043 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
8044 : 0 : tree res = generic_simplify_389 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
8045 : 0 : if (res) return res;
8046 : : }
8047 : : }
8048 : 0 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
8049 : : {
8050 : 0 : {
8051 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q31, _q30 };
8052 : 0 : tree res = generic_simplify_389 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
8053 : 0 : if (res) return res;
8054 : : }
8055 : : }
8056 : : }
8057 : : break;
8058 : : default:;
8059 : : }
8060 : : break;
8061 : : default:;
8062 : : }
8063 : : break;
8064 : : }
8065 : 7144 : case TRUNC_DIV_EXPR:
8066 : 7144 : {
8067 : 7144 : tree _q20 = TREE_OPERAND (_p0, 0);
8068 : 7144 : tree _q21 = TREE_OPERAND (_p0, 1);
8069 : 7144 : if (integer_all_onesp (_q20))
8070 : : {
8071 : 1018 : {
8072 : 1018 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _p1 };
8073 : 1018 : tree res = generic_simplify_390 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
8074 : 1018 : if (res) return res;
8075 : : }
8076 : : }
8077 : : break;
8078 : : }
8079 : 124102 : case MULT_EXPR:
8080 : 124102 : {
8081 : 124102 : tree _q20 = TREE_OPERAND (_p0, 0);
8082 : 124102 : tree _q21 = TREE_OPERAND (_p0, 1);
8083 : 124102 : switch (TREE_CODE (_q21))
8084 : : {
8085 : 12028 : case REAL_CST:
8086 : 12028 : {
8087 : 12028 : switch (TREE_CODE (_p1))
8088 : : {
8089 : 451 : case REAL_CST:
8090 : 451 : {
8091 : 451 : {
8092 : 451 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
8093 : 451 : tree res = generic_simplify_391 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
8094 : 451 : if (res) return res;
8095 : : }
8096 : 451 : break;
8097 : : }
8098 : : default:;
8099 : : }
8100 : : break;
8101 : : }
8102 : : default:;
8103 : : }
8104 : : break;
8105 : : }
8106 : 1921125 : case PLUS_EXPR:
8107 : 1921125 : {
8108 : 1921125 : tree _q20 = TREE_OPERAND (_p0, 0);
8109 : 1921125 : tree _q21 = TREE_OPERAND (_p0, 1);
8110 : 1921125 : switch (TREE_CODE (_q21))
8111 : : {
8112 : 1417046 : case INTEGER_CST:
8113 : 1417046 : {
8114 : 1417046 : switch (TREE_CODE (_p1))
8115 : : {
8116 : 224115 : case INTEGER_CST:
8117 : 224115 : {
8118 : 224115 : {
8119 : 224115 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
8120 : 224115 : tree res = generic_simplify_392 (loc, type, _p0, _p1, captures, PLUS_EXPR, MINUS_EXPR, LT_EXPR, GT_EXPR);
8121 : 224115 : if (res) return res;
8122 : : }
8123 : 15272 : break;
8124 : : }
8125 : : default:;
8126 : : }
8127 : : break;
8128 : : }
8129 : : default:;
8130 : : }
8131 : : break;
8132 : : }
8133 : 178005 : case MINUS_EXPR:
8134 : 178005 : {
8135 : 178005 : tree _q20 = TREE_OPERAND (_p0, 0);
8136 : 178005 : tree _q21 = TREE_OPERAND (_p0, 1);
8137 : 178005 : switch (TREE_CODE (_q21))
8138 : : {
8139 : 0 : case INTEGER_CST:
8140 : 0 : {
8141 : 0 : switch (TREE_CODE (_p1))
8142 : : {
8143 : 0 : case INTEGER_CST:
8144 : 0 : {
8145 : 0 : {
8146 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
8147 : 0 : tree res = generic_simplify_392 (loc, type, _p0, _p1, captures, MINUS_EXPR, PLUS_EXPR, LT_EXPR, GT_EXPR);
8148 : 0 : if (res) return res;
8149 : : }
8150 : 0 : break;
8151 : : }
8152 : : default:;
8153 : : }
8154 : : break;
8155 : : }
8156 : 178005 : default:;
8157 : : }
8158 : 178005 : switch (TREE_CODE (_q20))
8159 : : {
8160 : 42472 : case INTEGER_CST:
8161 : 42472 : {
8162 : 42472 : switch (TREE_CODE (_p1))
8163 : : {
8164 : 1561 : case INTEGER_CST:
8165 : 1561 : {
8166 : 1561 : {
8167 : 1561 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
8168 : 1561 : tree res = generic_simplify_286 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
8169 : 1561 : if (res) return res;
8170 : : }
8171 : 0 : break;
8172 : : }
8173 : : default:;
8174 : : }
8175 : : break;
8176 : : }
8177 : : default:;
8178 : : }
8179 : : break;
8180 : : }
8181 : 1659681 : case CALL_EXPR:
8182 : 1659681 : switch (get_call_combined_fn (_p0))
8183 : : {
8184 : 3 : case CFN_BUILT_IN_CTZ:
8185 : 3 : if (call_expr_nargs (_p0) == 1)
8186 : : {
8187 : 3 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8188 : 3 : switch (TREE_CODE (_p1))
8189 : : {
8190 : 3 : case INTEGER_CST:
8191 : 3 : {
8192 : 3 : {
8193 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
8194 : 3 : tree res = generic_simplify_393 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR, CFN_BUILT_IN_CTZ);
8195 : 3 : if (res) return res;
8196 : : }
8197 : 0 : break;
8198 : : }
8199 : : default:;
8200 : : }
8201 : : }
8202 : : break;
8203 : 2 : case CFN_BUILT_IN_CTZL:
8204 : 2 : if (call_expr_nargs (_p0) == 1)
8205 : : {
8206 : 2 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8207 : 2 : switch (TREE_CODE (_p1))
8208 : : {
8209 : 2 : case INTEGER_CST:
8210 : 2 : {
8211 : 2 : {
8212 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
8213 : 2 : tree res = generic_simplify_393 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR, CFN_BUILT_IN_CTZL);
8214 : 2 : if (res) return res;
8215 : : }
8216 : 0 : break;
8217 : : }
8218 : : default:;
8219 : : }
8220 : : }
8221 : : break;
8222 : 0 : case CFN_BUILT_IN_CTZIMAX:
8223 : 0 : if (call_expr_nargs (_p0) == 1)
8224 : : {
8225 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8226 : 0 : switch (TREE_CODE (_p1))
8227 : : {
8228 : 0 : case INTEGER_CST:
8229 : 0 : {
8230 : 0 : {
8231 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
8232 : 0 : tree res = generic_simplify_393 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR, CFN_BUILT_IN_CTZIMAX);
8233 : 0 : if (res) return res;
8234 : : }
8235 : 0 : break;
8236 : : }
8237 : : default:;
8238 : : }
8239 : : }
8240 : : break;
8241 : 0 : case CFN_CTZ:
8242 : 0 : if (call_expr_nargs (_p0) == 1)
8243 : : {
8244 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8245 : 0 : switch (TREE_CODE (_p1))
8246 : : {
8247 : 0 : case INTEGER_CST:
8248 : 0 : {
8249 : 0 : {
8250 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
8251 : 0 : tree res = generic_simplify_393 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR, CFN_CTZ);
8252 : 0 : if (res) return res;
8253 : : }
8254 : 0 : break;
8255 : : }
8256 : : default:;
8257 : : }
8258 : : }
8259 : 0 : if (call_expr_nargs (_p0) == 2)
8260 : : {
8261 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8262 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
8263 : 0 : switch (TREE_CODE (_p1))
8264 : : {
8265 : 0 : case INTEGER_CST:
8266 : 0 : {
8267 : 0 : {
8268 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
8269 : 0 : tree res = generic_simplify_394 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
8270 : 0 : if (res) return res;
8271 : : }
8272 : 0 : break;
8273 : : }
8274 : : default:;
8275 : : }
8276 : : }
8277 : : break;
8278 : 2 : case CFN_BUILT_IN_CTZLL:
8279 : 2 : if (call_expr_nargs (_p0) == 1)
8280 : : {
8281 : 2 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8282 : 2 : switch (TREE_CODE (_p1))
8283 : : {
8284 : 2 : case INTEGER_CST:
8285 : 2 : {
8286 : 2 : {
8287 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
8288 : 2 : tree res = generic_simplify_393 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR, CFN_BUILT_IN_CTZLL);
8289 : 2 : if (res) return res;
8290 : : }
8291 : 0 : break;
8292 : : }
8293 : : default:;
8294 : : }
8295 : : }
8296 : : break;
8297 : : default:;
8298 : : }
8299 : : break;
8300 : : default:;
8301 : : }
8302 : : return NULL_TREE;
8303 : : }
8304 : :
8305 : : tree
8306 : 19267118 : generic_simplify_GT_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
8307 : : {
8308 : 19267118 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
8309 : 19267118 : switch (TREE_CODE (_p0))
8310 : : {
8311 : 1006 : case RDIV_EXPR:
8312 : 1006 : {
8313 : 1006 : tree _q20 = TREE_OPERAND (_p0, 0);
8314 : 1006 : tree _q21 = TREE_OPERAND (_p0, 1);
8315 : 1006 : switch (TREE_CODE (_q20))
8316 : : {
8317 : 29 : case REAL_CST:
8318 : 29 : {
8319 : 29 : if (real_zerop (_p1))
8320 : : {
8321 : 0 : {
8322 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
8323 : 0 : tree res = generic_simplify_366 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
8324 : 0 : if (res) return res;
8325 : : }
8326 : : }
8327 : : break;
8328 : : }
8329 : : default:;
8330 : : }
8331 : : break;
8332 : : }
8333 : 19267118 : default:;
8334 : : }
8335 : 19267118 : {
8336 : 19267118 : tree _p0_pops[1];
8337 : 19267118 : if (tree_nop_convert (_p0, _p0_pops))
8338 : : {
8339 : 755793 : tree _q20 = _p0_pops[0];
8340 : 755793 : switch (TREE_CODE (_p1))
8341 : : {
8342 : 0 : case LSHIFT_EXPR:
8343 : 0 : {
8344 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
8345 : 0 : tree _q41 = TREE_OPERAND (_p1, 1);
8346 : 0 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _q20, 0) && types_match (_q41, _q20)))
8347 : : {
8348 : 0 : {
8349 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q20 };
8350 : 0 : tree res = generic_simplify_367 (loc, type, _p0, _p1, captures, LT_EXPR);
8351 : 0 : if (res) return res;
8352 : : }
8353 : : }
8354 : : break;
8355 : : }
8356 : 755793 : default:;
8357 : : }
8358 : 755793 : {
8359 : 755793 : tree _p1_pops[1];
8360 : 755793 : if (tree_nop_convert (_p1, _p1_pops))
8361 : : {
8362 : 156928 : tree _q40 = _p1_pops[0];
8363 : 156928 : switch (TREE_CODE (_q40))
8364 : : {
8365 : 0 : case LSHIFT_EXPR:
8366 : 0 : {
8367 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
8368 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
8369 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
8370 : : {
8371 : 0 : {
8372 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q50, _q20 };
8373 : 0 : tree res = generic_simplify_367 (loc, type, _p0, _p1, captures, LT_EXPR);
8374 : 0 : if (res) return res;
8375 : : }
8376 : : }
8377 : : break;
8378 : : }
8379 : : default:;
8380 : : }
8381 : : }
8382 : : }
8383 : 755793 : switch (TREE_CODE (_q20))
8384 : : {
8385 : 7 : case LSHIFT_EXPR:
8386 : 7 : {
8387 : 7 : tree _q30 = TREE_OPERAND (_q20, 0);
8388 : 7 : tree _q31 = TREE_OPERAND (_q20, 1);
8389 : 7 : {
8390 : 7 : tree _p1_pops[1];
8391 : 7 : if (tree_nop_convert (_p1, _p1_pops))
8392 : : {
8393 : 0 : tree _q60 = _p1_pops[0];
8394 : 0 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q31, 0) && types_match (_q60, _q31)))
8395 : : {
8396 : 0 : {
8397 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
8398 : 0 : tree res = generic_simplify_368 (loc, type, _p0, _p1, captures, GT_EXPR);
8399 : 0 : if (res) return res;
8400 : : }
8401 : : }
8402 : : }
8403 : : }
8404 : 7 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
8405 : : {
8406 : 1 : {
8407 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
8408 : 1 : tree res = generic_simplify_368 (loc, type, _p0, _p1, captures, GT_EXPR);
8409 : 1 : if (res) return res;
8410 : : }
8411 : : }
8412 : : break;
8413 : : }
8414 : : default:;
8415 : : }
8416 : : }
8417 : : }
8418 : 19267117 : switch (TREE_CODE (_p1))
8419 : : {
8420 : 71 : case LSHIFT_EXPR:
8421 : 71 : {
8422 : 71 : tree _q30 = TREE_OPERAND (_p1, 0);
8423 : 71 : tree _q31 = TREE_OPERAND (_p1, 1);
8424 : 71 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
8425 : : {
8426 : 0 : {
8427 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p0 };
8428 : 0 : tree res = generic_simplify_367 (loc, type, _p0, _p1, captures, LT_EXPR);
8429 : 0 : if (res) return res;
8430 : : }
8431 : : }
8432 : : break;
8433 : : }
8434 : 19267117 : default:;
8435 : : }
8436 : 19267117 : {
8437 : 19267117 : tree _p1_pops[1];
8438 : 19267117 : if (tree_nop_convert (_p1, _p1_pops))
8439 : : {
8440 : 555042 : tree _q30 = _p1_pops[0];
8441 : 555042 : switch (TREE_CODE (_q30))
8442 : : {
8443 : 0 : case LSHIFT_EXPR:
8444 : 0 : {
8445 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
8446 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
8447 : 0 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
8448 : : {
8449 : 0 : {
8450 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _p0 };
8451 : 0 : tree res = generic_simplify_367 (loc, type, _p0, _p1, captures, LT_EXPR);
8452 : 0 : if (res) return res;
8453 : : }
8454 : : }
8455 : : break;
8456 : : }
8457 : : default:;
8458 : : }
8459 : : }
8460 : : }
8461 : 19267117 : switch (TREE_CODE (_p0))
8462 : : {
8463 : 3361 : case LSHIFT_EXPR:
8464 : 3361 : {
8465 : 3361 : tree _q20 = TREE_OPERAND (_p0, 0);
8466 : 3361 : tree _q21 = TREE_OPERAND (_p0, 1);
8467 : 3361 : {
8468 : 3361 : tree _p1_pops[1];
8469 : 3361 : if (tree_nop_convert (_p1, _p1_pops))
8470 : : {
8471 : 796 : tree _q50 = _p1_pops[0];
8472 : 796 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
8473 : : {
8474 : 4 : {
8475 : 4 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8476 : 4 : tree res = generic_simplify_368 (loc, type, _p0, _p1, captures, GT_EXPR);
8477 : 4 : if (res) return res;
8478 : : }
8479 : : }
8480 : : }
8481 : : }
8482 : 3360 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
8483 : : {
8484 : 60 : {
8485 : 60 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8486 : 60 : tree res = generic_simplify_368 (loc, type, _p0, _p1, captures, GT_EXPR);
8487 : 60 : if (res) return res;
8488 : : }
8489 : : }
8490 : : break;
8491 : : }
8492 : 19267112 : default:;
8493 : : }
8494 : 19267112 : switch (TREE_CODE (_p1))
8495 : : {
8496 : 84 : case TRUNC_MOD_EXPR:
8497 : 84 : {
8498 : 84 : tree _q30 = TREE_OPERAND (_p1, 0);
8499 : 84 : tree _q31 = TREE_OPERAND (_p1, 1);
8500 : 84 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
8501 : : {
8502 : 0 : {
8503 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p0 };
8504 : 0 : tree res = generic_simplify_369 (loc, type, _p0, _p1, captures, LT_EXPR);
8505 : 0 : if (res) return res;
8506 : : }
8507 : : }
8508 : : break;
8509 : : }
8510 : 19267112 : default:;
8511 : : }
8512 : 19267112 : switch (TREE_CODE (_p0))
8513 : : {
8514 : 136920 : case MULT_EXPR:
8515 : 136920 : {
8516 : 136920 : tree _q20 = TREE_OPERAND (_p0, 0);
8517 : 136920 : tree _q21 = TREE_OPERAND (_p0, 1);
8518 : 136920 : switch (TREE_CODE (_p1))
8519 : : {
8520 : 7219 : case MULT_EXPR:
8521 : 7219 : {
8522 : 7219 : tree _q50 = TREE_OPERAND (_p1, 0);
8523 : 7219 : tree _q51 = TREE_OPERAND (_p1, 1);
8524 : 7219 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8525 : : {
8526 : 108 : {
8527 : 108 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
8528 : 108 : tree res = generic_simplify_370 (loc, type, _p0, _p1, captures, GT_EXPR);
8529 : 108 : if (res) return res;
8530 : : }
8531 : : }
8532 : 7215 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
8533 : : {
8534 : 8 : {
8535 : 8 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
8536 : 8 : tree res = generic_simplify_370 (loc, type, _p0, _p1, captures, GT_EXPR);
8537 : 8 : if (res) return res;
8538 : : }
8539 : : }
8540 : 7215 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
8541 : : {
8542 : 0 : {
8543 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
8544 : 0 : tree res = generic_simplify_370 (loc, type, _p0, _p1, captures, GT_EXPR);
8545 : 0 : if (res) return res;
8546 : : }
8547 : : }
8548 : 7215 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8549 : : {
8550 : 659 : {
8551 : 659 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
8552 : 659 : tree res = generic_simplify_370 (loc, type, _p0, _p1, captures, GT_EXPR);
8553 : 659 : if (res) return res;
8554 : : }
8555 : : }
8556 : : break;
8557 : : }
8558 : : default:;
8559 : : }
8560 : : break;
8561 : : }
8562 : 2130350 : case PLUS_EXPR:
8563 : 2130350 : {
8564 : 2130350 : tree _q20 = TREE_OPERAND (_p0, 0);
8565 : 2130350 : tree _q21 = TREE_OPERAND (_p0, 1);
8566 : 2130350 : if (integer_minus_onep (_q21))
8567 : : {
8568 : 558979 : switch (TREE_CODE (_p1))
8569 : : {
8570 : 421462 : case INTEGER_CST:
8571 : 421462 : {
8572 : 421462 : {
8573 : 421462 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
8574 : 421462 : tree res = generic_simplify_395 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
8575 : 421462 : if (res) return res;
8576 : : }
8577 : 416398 : break;
8578 : : }
8579 : : default:;
8580 : : }
8581 : : }
8582 : 2125286 : switch (TREE_CODE (_p1))
8583 : : {
8584 : 60064 : case PLUS_EXPR:
8585 : 60064 : {
8586 : 60064 : tree _q50 = TREE_OPERAND (_p1, 0);
8587 : 60064 : tree _q51 = TREE_OPERAND (_p1, 1);
8588 : 60064 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8589 : : {
8590 : 4146 : {
8591 : 4146 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
8592 : 4146 : tree res = generic_simplify_371 (loc, type, _p0, _p1, captures, GT_EXPR);
8593 : 4146 : if (res) return res;
8594 : : }
8595 : : }
8596 : 57268 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
8597 : : {
8598 : 303 : {
8599 : 303 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
8600 : 303 : tree res = generic_simplify_371 (loc, type, _p0, _p1, captures, GT_EXPR);
8601 : 303 : if (res) return res;
8602 : : }
8603 : : }
8604 : 57268 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
8605 : : {
8606 : 31 : {
8607 : 31 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
8608 : 31 : tree res = generic_simplify_371 (loc, type, _p0, _p1, captures, GT_EXPR);
8609 : 31 : if (res) return res;
8610 : : }
8611 : : }
8612 : 57268 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8613 : : {
8614 : 300 : {
8615 : 300 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
8616 : 300 : tree res = generic_simplify_371 (loc, type, _p0, _p1, captures, GT_EXPR);
8617 : 300 : if (res) return res;
8618 : : }
8619 : : }
8620 : : break;
8621 : : }
8622 : 2122490 : default:;
8623 : : }
8624 : 2122490 : switch (TREE_CODE (_q21))
8625 : : {
8626 : 1968946 : case INTEGER_CST:
8627 : 1968946 : {
8628 : 1968946 : switch (TREE_CODE (_p1))
8629 : : {
8630 : 34418 : case PLUS_EXPR:
8631 : 34418 : {
8632 : 34418 : tree _q50 = TREE_OPERAND (_p1, 0);
8633 : 34418 : tree _q51 = TREE_OPERAND (_p1, 1);
8634 : 34418 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8635 : : {
8636 : 1324 : {
8637 : 1324 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
8638 : 1324 : tree res = generic_simplify_372 (loc, type, _p0, _p1, captures, GT_EXPR);
8639 : 1324 : if (res) return res;
8640 : : }
8641 : : }
8642 : : break;
8643 : : }
8644 : : default:;
8645 : : }
8646 : : break;
8647 : : }
8648 : 2122490 : default:;
8649 : : }
8650 : 2122490 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
8651 : : {
8652 : 61055 : {
8653 : 61055 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8654 : 61055 : tree res = generic_simplify_373 (loc, type, _p0, _p1, captures, GT_EXPR);
8655 : 61055 : if (res) return res;
8656 : : }
8657 : : }
8658 : 2086627 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
8659 : : {
8660 : 6288 : {
8661 : 6288 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
8662 : 6288 : tree res = generic_simplify_373 (loc, type, _p0, _p1, captures, GT_EXPR);
8663 : 6288 : if (res) return res;
8664 : : }
8665 : : }
8666 : : break;
8667 : : }
8668 : 2062257 : CASE_CONVERT:
8669 : 2062257 : {
8670 : 2062257 : tree _q20 = TREE_OPERAND (_p0, 0);
8671 : 2062257 : switch (TREE_CODE (_q20))
8672 : : {
8673 : 5 : case EXACT_DIV_EXPR:
8674 : 5 : {
8675 : 5 : tree _q30 = TREE_OPERAND (_q20, 0);
8676 : 5 : tree _q31 = TREE_OPERAND (_q20, 1);
8677 : 5 : switch (TREE_CODE (_q31))
8678 : : {
8679 : 5 : case INTEGER_CST:
8680 : 5 : {
8681 : 5 : switch (TREE_CODE (_p1))
8682 : : {
8683 : 2 : CASE_CONVERT:
8684 : 2 : {
8685 : 2 : tree _q60 = TREE_OPERAND (_p1, 0);
8686 : 2 : switch (TREE_CODE (_q60))
8687 : : {
8688 : 0 : case EXACT_DIV_EXPR:
8689 : 0 : {
8690 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
8691 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
8692 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
8693 : : {
8694 : 0 : {
8695 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q31, _q70 };
8696 : 0 : tree res = generic_simplify_209 (loc, type, _p0, _p1, captures, GT_EXPR);
8697 : 0 : if (res) return res;
8698 : : }
8699 : : }
8700 : : break;
8701 : : }
8702 : : default:;
8703 : : }
8704 : : break;
8705 : : }
8706 : : default:;
8707 : : }
8708 : : break;
8709 : : }
8710 : : default:;
8711 : : }
8712 : : break;
8713 : : }
8714 : : default:;
8715 : : }
8716 : : break;
8717 : : }
8718 : 7485 : case EXACT_DIV_EXPR:
8719 : 7485 : {
8720 : 7485 : tree _q20 = TREE_OPERAND (_p0, 0);
8721 : 7485 : tree _q21 = TREE_OPERAND (_p0, 1);
8722 : 7485 : switch (TREE_CODE (_q21))
8723 : : {
8724 : 7485 : case INTEGER_CST:
8725 : 7485 : {
8726 : 7485 : switch (TREE_CODE (_p1))
8727 : : {
8728 : 6 : case EXACT_DIV_EXPR:
8729 : 6 : {
8730 : 6 : tree _q50 = TREE_OPERAND (_p1, 0);
8731 : 6 : tree _q51 = TREE_OPERAND (_p1, 1);
8732 : 6 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8733 : : {
8734 : 0 : {
8735 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50 };
8736 : 0 : tree res = generic_simplify_209 (loc, type, _p0, _p1, captures, GT_EXPR);
8737 : 0 : if (res) return res;
8738 : : }
8739 : : }
8740 : : break;
8741 : : }
8742 : : default:;
8743 : : }
8744 : : break;
8745 : : }
8746 : : default:;
8747 : : }
8748 : : break;
8749 : : }
8750 : 1693518 : case TRUNC_DIV_EXPR:
8751 : 1693518 : {
8752 : 1693518 : tree _q20 = TREE_OPERAND (_p0, 0);
8753 : 1693518 : tree _q21 = TREE_OPERAND (_p0, 1);
8754 : 1693518 : switch (TREE_CODE (_q21))
8755 : : {
8756 : 1685194 : case INTEGER_CST:
8757 : 1685194 : {
8758 : 1685194 : switch (TREE_CODE (_p1))
8759 : : {
8760 : 1671376 : case INTEGER_CST:
8761 : 1671376 : {
8762 : 1671376 : {
8763 : 1671376 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
8764 : 1671376 : tree res = generic_simplify_211 (loc, type, _p0, _p1, captures, GT_EXPR);
8765 : 1671376 : if (res) return res;
8766 : : }
8767 : 69 : break;
8768 : : }
8769 : : default:;
8770 : : }
8771 : : break;
8772 : : }
8773 : : default:;
8774 : : }
8775 : : break;
8776 : : }
8777 : 744156 : case MINUS_EXPR:
8778 : 744156 : {
8779 : 744156 : tree _q20 = TREE_OPERAND (_p0, 0);
8780 : 744156 : tree _q21 = TREE_OPERAND (_p0, 1);
8781 : 744156 : switch (TREE_CODE (_p1))
8782 : : {
8783 : 3191 : case MINUS_EXPR:
8784 : 3191 : {
8785 : 3191 : tree _q50 = TREE_OPERAND (_p1, 0);
8786 : 3191 : tree _q51 = TREE_OPERAND (_p1, 1);
8787 : 3191 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8788 : : {
8789 : 925 : {
8790 : 925 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
8791 : 925 : tree res = generic_simplify_374 (loc, type, _p0, _p1, captures, GT_EXPR);
8792 : 925 : if (res) return res;
8793 : : }
8794 : : }
8795 : 3191 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8796 : : {
8797 : 174 : {
8798 : 174 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
8799 : 174 : tree res = generic_simplify_375 (loc, type, _p0, _p1, captures, GT_EXPR);
8800 : 174 : if (res) return res;
8801 : : }
8802 : : }
8803 : : break;
8804 : : }
8805 : : default:;
8806 : : }
8807 : : break;
8808 : : }
8809 : 52820 : case POINTER_DIFF_EXPR:
8810 : 52820 : {
8811 : 52820 : tree _q20 = TREE_OPERAND (_p0, 0);
8812 : 52820 : tree _q21 = TREE_OPERAND (_p0, 1);
8813 : 52820 : switch (TREE_CODE (_p1))
8814 : : {
8815 : 404 : case POINTER_DIFF_EXPR:
8816 : 404 : {
8817 : 404 : tree _q50 = TREE_OPERAND (_p1, 0);
8818 : 404 : tree _q51 = TREE_OPERAND (_p1, 1);
8819 : 404 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8820 : : {
8821 : 43 : {
8822 : 43 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50 };
8823 : 43 : tree res = generic_simplify_215 (loc, type, _p0, _p1, captures, GT_EXPR);
8824 : 43 : if (res) return res;
8825 : : }
8826 : : }
8827 : 361 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8828 : : {
8829 : 0 : {
8830 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q51 };
8831 : 0 : tree res = generic_simplify_216 (loc, type, _p0, _p1, captures, GT_EXPR);
8832 : 0 : if (res) return res;
8833 : : }
8834 : : }
8835 : : break;
8836 : : }
8837 : : default:;
8838 : : }
8839 : : break;
8840 : : }
8841 : 17550666 : default:;
8842 : : }
8843 : 17550666 : switch (TREE_CODE (_p1))
8844 : : {
8845 : 110624 : case PLUS_EXPR:
8846 : 110624 : {
8847 : 110624 : tree _q30 = TREE_OPERAND (_p1, 0);
8848 : 110624 : tree _q31 = TREE_OPERAND (_p1, 1);
8849 : 110624 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
8850 : : {
8851 : 0 : {
8852 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q30, _p0 };
8853 : 0 : tree res = generic_simplify_373 (loc, type, _p0, _p1, captures, LT_EXPR);
8854 : 0 : if (res) return res;
8855 : : }
8856 : : }
8857 : 110624 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
8858 : : {
8859 : 4 : {
8860 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q31, _p0 };
8861 : 4 : tree res = generic_simplify_373 (loc, type, _p0, _p1, captures, LT_EXPR);
8862 : 4 : if (res) return res;
8863 : : }
8864 : : }
8865 : : break;
8866 : : }
8867 : 11594 : case MINUS_EXPR:
8868 : 11594 : {
8869 : 11594 : tree _q30 = TREE_OPERAND (_p1, 0);
8870 : 11594 : tree _q31 = TREE_OPERAND (_p1, 1);
8871 : 11594 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
8872 : : {
8873 : 0 : {
8874 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q31 };
8875 : 0 : tree res = generic_simplify_214 (loc, type, _p0, _p1, captures, GT_EXPR);
8876 : 0 : if (res) return res;
8877 : : }
8878 : : }
8879 : : break;
8880 : : }
8881 : 17550666 : default:;
8882 : : }
8883 : 17550666 : switch (TREE_CODE (_p0))
8884 : : {
8885 : 744156 : case MINUS_EXPR:
8886 : 744156 : {
8887 : 744156 : tree _q20 = TREE_OPERAND (_p0, 0);
8888 : 744156 : tree _q21 = TREE_OPERAND (_p0, 1);
8889 : 744156 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
8890 : : {
8891 : 17197 : {
8892 : 17197 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p0, _q21 };
8893 : 17197 : tree res = generic_simplify_214 (loc, type, _p0, _p1, captures, LT_EXPR);
8894 : 17197 : if (res) return res;
8895 : : }
8896 : : }
8897 : : break;
8898 : : }
8899 : 19884 : case BIT_AND_EXPR:
8900 : 19884 : {
8901 : 19884 : tree _q20 = TREE_OPERAND (_p0, 0);
8902 : 19884 : tree _q21 = TREE_OPERAND (_p0, 1);
8903 : 19884 : if (tree_expr_nonnegative_p (_q20))
8904 : : {
8905 : 17936 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
8906 : : {
8907 : 0 : {
8908 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8909 : 0 : tree res = generic_simplify_376 (loc, type, _p0, _p1, captures, GT_EXPR, BIT_AND_EXPR);
8910 : 0 : if (res) return res;
8911 : : }
8912 : : }
8913 : : }
8914 : 19884 : if (tree_expr_nonnegative_p (_q21))
8915 : : {
8916 : 18977 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
8917 : : {
8918 : 3936 : {
8919 : 3936 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
8920 : 3936 : tree res = generic_simplify_376 (loc, type, _p0, _p1, captures, GT_EXPR, BIT_AND_EXPR);
8921 : 3936 : if (res) return res;
8922 : : }
8923 : : }
8924 : : }
8925 : : break;
8926 : : }
8927 : 17546687 : default:;
8928 : : }
8929 : 17546687 : switch (TREE_CODE (_p1))
8930 : : {
8931 : 147 : case BIT_IOR_EXPR:
8932 : 147 : {
8933 : 147 : tree _q30 = TREE_OPERAND (_p1, 0);
8934 : 147 : tree _q31 = TREE_OPERAND (_p1, 1);
8935 : 147 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
8936 : : {
8937 : 0 : if (tree_expr_nonnegative_p (_q30))
8938 : : {
8939 : 0 : {
8940 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
8941 : 0 : tree res = generic_simplify_376 (loc, type, _p0, _p1, captures, LT_EXPR, BIT_IOR_EXPR);
8942 : 0 : if (res) return res;
8943 : : }
8944 : : }
8945 : : }
8946 : 147 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
8947 : : {
8948 : 0 : if (tree_expr_nonnegative_p (_q31))
8949 : : {
8950 : 0 : {
8951 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
8952 : 0 : tree res = generic_simplify_376 (loc, type, _p0, _p1, captures, LT_EXPR, BIT_IOR_EXPR);
8953 : 0 : if (res) return res;
8954 : : }
8955 : : }
8956 : : }
8957 : : break;
8958 : : }
8959 : 17546687 : default:;
8960 : : }
8961 : 17546687 : switch (TREE_CODE (_p0))
8962 : : {
8963 : 14077 : case MAX_EXPR:
8964 : 14077 : {
8965 : 14077 : tree _q20 = TREE_OPERAND (_p0, 0);
8966 : 14077 : tree _q21 = TREE_OPERAND (_p0, 1);
8967 : 14077 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
8968 : : {
8969 : 1 : {
8970 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8971 : 1 : tree res = generic_simplify_224 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR, LT_EXPR);
8972 : 1 : if (res) return res;
8973 : : }
8974 : : }
8975 : 14076 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
8976 : : {
8977 : 12 : {
8978 : 12 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
8979 : 12 : tree res = generic_simplify_224 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR, LT_EXPR);
8980 : 12 : if (res) return res;
8981 : : }
8982 : : }
8983 : 14067 : switch (TREE_CODE (_q21))
8984 : : {
8985 : 13397 : case INTEGER_CST:
8986 : 13397 : {
8987 : 13397 : switch (TREE_CODE (_p1))
8988 : : {
8989 : 0 : case INTEGER_CST:
8990 : 0 : {
8991 : 0 : {
8992 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
8993 : 0 : tree res = generic_simplify_377 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR, BIT_IOR_EXPR);
8994 : 0 : if (res) return res;
8995 : : }
8996 : 0 : break;
8997 : : }
8998 : : default:;
8999 : : }
9000 : : break;
9001 : : }
9002 : : default:;
9003 : : }
9004 : : break;
9005 : : }
9006 : 17546677 : default:;
9007 : : }
9008 : 17546677 : switch (TREE_CODE (_p1))
9009 : : {
9010 : 208 : case MIN_EXPR:
9011 : 208 : {
9012 : 208 : tree _q30 = TREE_OPERAND (_p1, 0);
9013 : 208 : tree _q31 = TREE_OPERAND (_p1, 1);
9014 : 208 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
9015 : : {
9016 : 0 : {
9017 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
9018 : 0 : tree res = generic_simplify_224 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR, GT_EXPR);
9019 : 0 : if (res) return res;
9020 : : }
9021 : : }
9022 : 208 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
9023 : : {
9024 : 0 : {
9025 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
9026 : 0 : tree res = generic_simplify_224 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR, GT_EXPR);
9027 : 0 : if (res) return res;
9028 : : }
9029 : : }
9030 : : break;
9031 : : }
9032 : 691 : case MAX_EXPR:
9033 : 691 : {
9034 : 691 : tree _q30 = TREE_OPERAND (_p1, 0);
9035 : 691 : tree _q31 = TREE_OPERAND (_p1, 1);
9036 : 691 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
9037 : : {
9038 : 0 : {
9039 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
9040 : 0 : tree res = generic_simplify_378 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR);
9041 : 0 : if (res) return res;
9042 : : }
9043 : : }
9044 : 691 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
9045 : : {
9046 : 0 : {
9047 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
9048 : 0 : tree res = generic_simplify_378 (loc, type, _p0, _p1, captures, MAX_EXPR, GT_EXPR);
9049 : 0 : if (res) return res;
9050 : : }
9051 : : }
9052 : : break;
9053 : : }
9054 : 17546677 : default:;
9055 : : }
9056 : 17546677 : switch (TREE_CODE (_p0))
9057 : : {
9058 : 33393 : case MIN_EXPR:
9059 : 33393 : {
9060 : 33393 : tree _q20 = TREE_OPERAND (_p0, 0);
9061 : 33393 : tree _q21 = TREE_OPERAND (_p0, 1);
9062 : 33393 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
9063 : : {
9064 : 1 : {
9065 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9066 : 1 : tree res = generic_simplify_378 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR);
9067 : 1 : if (res) return res;
9068 : : }
9069 : : }
9070 : 33392 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
9071 : : {
9072 : 1 : {
9073 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
9074 : 1 : tree res = generic_simplify_378 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR);
9075 : 1 : if (res) return res;
9076 : : }
9077 : : }
9078 : 33391 : switch (TREE_CODE (_q21))
9079 : : {
9080 : 20254 : case INTEGER_CST:
9081 : 20254 : {
9082 : 20254 : switch (TREE_CODE (_p1))
9083 : : {
9084 : 61 : case INTEGER_CST:
9085 : 61 : {
9086 : 61 : {
9087 : 61 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
9088 : 61 : tree res = generic_simplify_377 (loc, type, _p0, _p1, captures, MIN_EXPR, GT_EXPR, BIT_AND_EXPR);
9089 : 61 : if (res) return res;
9090 : : }
9091 : 0 : break;
9092 : : }
9093 : : default:;
9094 : : }
9095 : : break;
9096 : : }
9097 : : default:;
9098 : : }
9099 : : break;
9100 : : }
9101 : 854 : case VEC_COND_EXPR:
9102 : 854 : {
9103 : 854 : tree _q20 = TREE_OPERAND (_p0, 0);
9104 : 854 : tree _q21 = TREE_OPERAND (_p0, 1);
9105 : 854 : tree _q22 = TREE_OPERAND (_p0, 2);
9106 : 854 : switch (TREE_CODE (_p1))
9107 : : {
9108 : 14 : case VEC_COND_EXPR:
9109 : 14 : {
9110 : 14 : tree _q60 = TREE_OPERAND (_p1, 0);
9111 : 14 : tree _q61 = TREE_OPERAND (_p1, 1);
9112 : 14 : tree _q62 = TREE_OPERAND (_p1, 2);
9113 : 14 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
9114 : : {
9115 : 0 : {
9116 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
9117 : 0 : if (VECTOR_TYPE_P (type)
9118 : 0 : && (TREE_CODE_CLASS (GT_EXPR) != tcc_comparison
9119 : 0 : || types_match (type, TREE_TYPE (captures[2]))
9120 : 0 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
9121 : : || (optimize_vectors_before_lowering_p ()
9122 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
9123 : : )
9124 : : {
9125 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1776;
9126 : 0 : {
9127 : 0 : tree res_op0;
9128 : 0 : res_op0 = captures[1];
9129 : 0 : tree res_op1;
9130 : 0 : {
9131 : 0 : tree _o1[2], _r1;
9132 : 0 : _o1[0] = captures[2];
9133 : 0 : _o1[1] = captures[5];
9134 : 0 : _r1 = fold_build2_loc (loc, GT_EXPR, type, _o1[0], _o1[1]);
9135 : 0 : if (EXPR_P (_r1))
9136 : 0 : goto next_after_fail1776;
9137 : 0 : res_op1 = _r1;
9138 : : }
9139 : 0 : tree res_op2;
9140 : 0 : {
9141 : 0 : tree _o1[2], _r1;
9142 : 0 : _o1[0] = captures[3];
9143 : 0 : _o1[1] = captures[6];
9144 : 0 : _r1 = fold_build2_loc (loc, GT_EXPR, type, _o1[0], _o1[1]);
9145 : 0 : if (EXPR_P (_r1))
9146 : 0 : goto next_after_fail1776;
9147 : 0 : res_op2 = _r1;
9148 : : }
9149 : 0 : tree _r;
9150 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
9151 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 919, __FILE__, __LINE__, true);
9152 : 0 : return _r;
9153 : : }
9154 : 0 : next_after_fail1776:;
9155 : : }
9156 : : }
9157 : : }
9158 : : break;
9159 : : }
9160 : 854 : default:;
9161 : : }
9162 : 854 : {
9163 : 854 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
9164 : 854 : if (VECTOR_TYPE_P (type)
9165 : 854 : && (TREE_CODE_CLASS (GT_EXPR) != tcc_comparison
9166 : 854 : || types_match (type, TREE_TYPE (captures[2]))
9167 : 854 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
9168 : : || (optimize_vectors_before_lowering_p ()
9169 : 10 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
9170 : : )
9171 : : {
9172 : 854 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1777;
9173 : 854 : {
9174 : 854 : if (! tree_invariant_p (captures[4])) goto next_after_fail1777;
9175 : 9 : tree res_op0;
9176 : 9 : res_op0 = captures[1];
9177 : 9 : tree res_op1;
9178 : 9 : {
9179 : 9 : tree _o1[2], _r1;
9180 : 9 : _o1[0] = captures[2];
9181 : 9 : _o1[1] = unshare_expr (captures[4]);
9182 : 9 : _r1 = fold_build2_loc (loc, GT_EXPR, type, _o1[0], _o1[1]);
9183 : 9 : if (EXPR_P (_r1))
9184 : 6 : goto next_after_fail1777;
9185 : 3 : res_op1 = _r1;
9186 : : }
9187 : 3 : tree res_op2;
9188 : 3 : {
9189 : 3 : tree _o1[2], _r1;
9190 : 3 : _o1[0] = captures[3];
9191 : 3 : _o1[1] = captures[4];
9192 : 3 : _r1 = fold_build2_loc (loc, GT_EXPR, type, _o1[0], _o1[1]);
9193 : 3 : if (EXPR_P (_r1))
9194 : 3 : goto next_after_fail1777;
9195 : 0 : res_op2 = _r1;
9196 : : }
9197 : 0 : tree _r;
9198 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
9199 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 920, __FILE__, __LINE__, true);
9200 : 0 : return _r;
9201 : : }
9202 : 854 : next_after_fail1777:;
9203 : : }
9204 : : }
9205 : 854 : break;
9206 : : }
9207 : 17546614 : default:;
9208 : : }
9209 : 17546614 : switch (TREE_CODE (_p1))
9210 : : {
9211 : 74 : case VEC_COND_EXPR:
9212 : 74 : {
9213 : 74 : tree _q30 = TREE_OPERAND (_p1, 0);
9214 : 74 : tree _q31 = TREE_OPERAND (_p1, 1);
9215 : 74 : tree _q32 = TREE_OPERAND (_p1, 2);
9216 : 74 : {
9217 : 74 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
9218 : 74 : if (VECTOR_TYPE_P (type)
9219 : 74 : && (TREE_CODE_CLASS (GT_EXPR) != tcc_comparison
9220 : 74 : || types_match (type, TREE_TYPE (captures[3]))
9221 : 74 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
9222 : : || (optimize_vectors_before_lowering_p ()
9223 : 7 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
9224 : : )
9225 : : {
9226 : 74 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1778;
9227 : 74 : {
9228 : 74 : if (! tree_invariant_p (captures[0])) goto next_after_fail1778;
9229 : 0 : tree res_op0;
9230 : 0 : res_op0 = captures[2];
9231 : 0 : tree res_op1;
9232 : 0 : {
9233 : 0 : tree _o1[2], _r1;
9234 : 0 : _o1[0] = unshare_expr (captures[0]);
9235 : 0 : _o1[1] = captures[3];
9236 : 0 : _r1 = fold_build2_loc (loc, GT_EXPR, type, _o1[0], _o1[1]);
9237 : 0 : if (EXPR_P (_r1))
9238 : 0 : goto next_after_fail1778;
9239 : 0 : res_op1 = _r1;
9240 : : }
9241 : 0 : tree res_op2;
9242 : 0 : {
9243 : 0 : tree _o1[2], _r1;
9244 : 0 : _o1[0] = captures[0];
9245 : 0 : _o1[1] = captures[4];
9246 : 0 : _r1 = fold_build2_loc (loc, GT_EXPR, type, _o1[0], _o1[1]);
9247 : 0 : if (EXPR_P (_r1))
9248 : 0 : goto next_after_fail1778;
9249 : 0 : res_op2 = _r1;
9250 : : }
9251 : 0 : tree _r;
9252 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
9253 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 921, __FILE__, __LINE__, true);
9254 : 0 : return _r;
9255 : : }
9256 : 74 : next_after_fail1778:;
9257 : : }
9258 : : }
9259 : 74 : break;
9260 : : }
9261 : 17546614 : default:;
9262 : : }
9263 : 17546614 : if (uniform_integer_cst_p (_p1))
9264 : : {
9265 : 12302347 : {
9266 : 12302347 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
9267 : 12302347 : tree res = generic_simplify_396 (loc, type, _p0, _p1, captures, GT_EXPR, GE_EXPR);
9268 : 12302347 : if (res) return res;
9269 : : }
9270 : : }
9271 : 17476379 : switch (TREE_CODE (_p0))
9272 : : {
9273 : 136598 : case MULT_EXPR:
9274 : 136598 : {
9275 : 136598 : tree _q20 = TREE_OPERAND (_p0, 0);
9276 : 136598 : tree _q21 = TREE_OPERAND (_p0, 1);
9277 : 136598 : switch (TREE_CODE (_q21))
9278 : : {
9279 : 96372 : case INTEGER_CST:
9280 : 96372 : {
9281 : 96372 : if (integer_zerop (_p1))
9282 : : {
9283 : 7382 : {
9284 : 7382 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
9285 : 7382 : tree res = generic_simplify_244 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
9286 : 7382 : if (res) return res;
9287 : : }
9288 : : }
9289 : : break;
9290 : : }
9291 : : default:;
9292 : : }
9293 : : break;
9294 : : }
9295 : 17473958 : default:;
9296 : : }
9297 : 17473958 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
9298 : : {
9299 : 1931 : {
9300 : 1931 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
9301 : 1931 : tree res = generic_simplify_297 (loc, type, _p0, _p1, captures, GT_EXPR);
9302 : 1931 : if (res) return res;
9303 : : }
9304 : : }
9305 : 17472027 : switch (TREE_CODE (_p0))
9306 : : {
9307 : 898977 : case BIT_NOT_EXPR:
9308 : 898977 : {
9309 : 898977 : tree _q20 = TREE_OPERAND (_p0, 0);
9310 : 898977 : switch (TREE_CODE (_p1))
9311 : : {
9312 : 10 : case BIT_NOT_EXPR:
9313 : 10 : {
9314 : 10 : tree _q40 = TREE_OPERAND (_p1, 0);
9315 : 10 : {
9316 : 10 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _p1, _q40 };
9317 : 10 : tree res = generic_simplify_250 (loc, type, _p0, _p1, captures, GT_EXPR);
9318 : 10 : if (res) return res;
9319 : : }
9320 : 0 : break;
9321 : : }
9322 : 898967 : default:;
9323 : : }
9324 : 898967 : {
9325 : 898967 : tree _p1_pops[1];
9326 : 898967 : if (tree_nop_convert (_p1, _p1_pops))
9327 : : {
9328 : 2 : tree _q40 = _p1_pops[0];
9329 : 2 : switch (TREE_CODE (_q40))
9330 : : {
9331 : 0 : case BIT_NOT_EXPR:
9332 : 0 : {
9333 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
9334 : 0 : {
9335 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q40, _q50 };
9336 : 0 : tree res = generic_simplify_250 (loc, type, _p0, _p1, captures, GT_EXPR);
9337 : 0 : if (res) return res;
9338 : : }
9339 : 0 : break;
9340 : : }
9341 : : default:;
9342 : : }
9343 : : }
9344 : : }
9345 : 898967 : if (CONSTANT_CLASS_P (_p1))
9346 : : {
9347 : 895582 : {
9348 : 895582 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
9349 : 895582 : tree res = generic_simplify_249 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
9350 : 895582 : if (res) return res;
9351 : : }
9352 : : }
9353 : : break;
9354 : : }
9355 : 16576435 : default:;
9356 : : }
9357 : 16576435 : {
9358 : 16576435 : tree _p0_pops[1];
9359 : 16576435 : if (tree_nop_convert (_p0, _p0_pops))
9360 : : {
9361 : 755340 : tree _q20 = _p0_pops[0];
9362 : 755340 : switch (TREE_CODE (_q20))
9363 : : {
9364 : 0 : case BIT_NOT_EXPR:
9365 : 0 : {
9366 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
9367 : 0 : switch (TREE_CODE (_p1))
9368 : : {
9369 : 0 : case BIT_NOT_EXPR:
9370 : 0 : {
9371 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9372 : 0 : {
9373 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _p1, _q50 };
9374 : 0 : tree res = generic_simplify_248 (loc, type, _p0, _p1, captures, GT_EXPR);
9375 : 0 : if (res) return res;
9376 : : }
9377 : 0 : break;
9378 : : }
9379 : 0 : default:;
9380 : : }
9381 : 0 : {
9382 : 0 : tree _p1_pops[1];
9383 : 0 : if (tree_nop_convert (_p1, _p1_pops))
9384 : : {
9385 : 0 : tree _q50 = _p1_pops[0];
9386 : 0 : switch (TREE_CODE (_q50))
9387 : : {
9388 : 0 : case BIT_NOT_EXPR:
9389 : 0 : {
9390 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
9391 : 0 : {
9392 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q50, _q60 };
9393 : 0 : tree res = generic_simplify_248 (loc, type, _p0, _p1, captures, GT_EXPR);
9394 : 0 : if (res) return res;
9395 : : }
9396 : 0 : break;
9397 : : }
9398 : : default:;
9399 : : }
9400 : : }
9401 : : }
9402 : 0 : if (CONSTANT_CLASS_P (_p1))
9403 : : {
9404 : 0 : {
9405 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
9406 : 0 : tree res = generic_simplify_249 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
9407 : 0 : if (res) return res;
9408 : : }
9409 : : }
9410 : : break;
9411 : : }
9412 : : default:;
9413 : : }
9414 : : }
9415 : : }
9416 : 16576435 : switch (TREE_CODE (_p1))
9417 : : {
9418 : 803859 : case REAL_CST:
9419 : 803859 : {
9420 : 803859 : {
9421 : 803859 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
9422 : 803859 : tree res = generic_simplify_251 (loc, type, _p0, _p1, captures, GT_EXPR);
9423 : 803859 : if (res) return res;
9424 : : }
9425 : 803803 : break;
9426 : : }
9427 : 16576379 : default:;
9428 : : }
9429 : 16576379 : switch (TREE_CODE (_p0))
9430 : : {
9431 : 2084472 : case PLUS_EXPR:
9432 : 2084472 : {
9433 : 2084472 : tree _q20 = TREE_OPERAND (_p0, 0);
9434 : 2084472 : tree _q21 = TREE_OPERAND (_p0, 1);
9435 : 2084472 : switch (TREE_CODE (_q21))
9436 : : {
9437 : 540 : case REAL_CST:
9438 : 540 : {
9439 : 540 : switch (TREE_CODE (_p1))
9440 : : {
9441 : 230 : case REAL_CST:
9442 : 230 : {
9443 : 230 : {
9444 : 230 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
9445 : 230 : tree res = generic_simplify_252 (loc, type, _p0, _p1, captures, PLUS_EXPR, GT_EXPR);
9446 : 230 : if (res) return res;
9447 : : }
9448 : 230 : break;
9449 : : }
9450 : : default:;
9451 : : }
9452 : : break;
9453 : : }
9454 : 1932272 : case INTEGER_CST:
9455 : 1932272 : {
9456 : 1932272 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
9457 : : {
9458 : 1411 : {
9459 : 1411 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q20, _q21 };
9460 : 1411 : tree res = generic_simplify_380 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
9461 : 1411 : if (res) return res;
9462 : : }
9463 : : }
9464 : : break;
9465 : : }
9466 : : default:;
9467 : : }
9468 : : break;
9469 : : }
9470 : 733908 : case MINUS_EXPR:
9471 : 733908 : {
9472 : 733908 : tree _q20 = TREE_OPERAND (_p0, 0);
9473 : 733908 : tree _q21 = TREE_OPERAND (_p0, 1);
9474 : 733908 : switch (TREE_CODE (_q21))
9475 : : {
9476 : 751 : case REAL_CST:
9477 : 751 : {
9478 : 751 : switch (TREE_CODE (_p1))
9479 : : {
9480 : 537 : case REAL_CST:
9481 : 537 : {
9482 : 537 : {
9483 : 537 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
9484 : 537 : tree res = generic_simplify_252 (loc, type, _p0, _p1, captures, MINUS_EXPR, GT_EXPR);
9485 : 537 : if (res) return res;
9486 : : }
9487 : 535 : break;
9488 : : }
9489 : : default:;
9490 : : }
9491 : : break;
9492 : : }
9493 : 733906 : default:;
9494 : : }
9495 : 733906 : switch (TREE_CODE (_q20))
9496 : : {
9497 : 43 : case REAL_CST:
9498 : 43 : {
9499 : 43 : switch (TREE_CODE (_p1))
9500 : : {
9501 : 37 : case REAL_CST:
9502 : 37 : {
9503 : 37 : {
9504 : 37 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
9505 : 37 : tree res = generic_simplify_253 (loc, type, _p0, _p1, captures, GT_EXPR);
9506 : 37 : if (res) return res;
9507 : : }
9508 : 35 : break;
9509 : : }
9510 : : default:;
9511 : : }
9512 : : break;
9513 : : }
9514 : : default:;
9515 : : }
9516 : : break;
9517 : : }
9518 : 42766 : case FLOAT_EXPR:
9519 : 42766 : {
9520 : 42766 : tree _q20 = TREE_OPERAND (_p0, 0);
9521 : 42766 : switch (TREE_CODE (_p1))
9522 : : {
9523 : 30 : case FLOAT_EXPR:
9524 : 30 : {
9525 : 30 : tree _q40 = TREE_OPERAND (_p1, 0);
9526 : 30 : {
9527 : 30 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
9528 : 30 : tree res = generic_simplify_256 (loc, type, _p0, _p1, captures, GT_EXPR, GT_EXPR);
9529 : 30 : if (res) return res;
9530 : : }
9531 : 30 : break;
9532 : : }
9533 : 40956 : case REAL_CST:
9534 : 40956 : {
9535 : 40956 : {
9536 : 40956 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9537 : 40956 : tree res = generic_simplify_257 (loc, type, _p0, _p1, captures, GT_EXPR, GE_EXPR);
9538 : 40956 : if (res) return res;
9539 : : }
9540 : 20655 : break;
9541 : : }
9542 : : default:;
9543 : : }
9544 : : break;
9545 : : }
9546 : 7485 : case EXACT_DIV_EXPR:
9547 : 7485 : {
9548 : 7485 : tree _q20 = TREE_OPERAND (_p0, 0);
9549 : 7485 : tree _q21 = TREE_OPERAND (_p0, 1);
9550 : 7485 : switch (TREE_CODE (_q21))
9551 : : {
9552 : 7485 : case INTEGER_CST:
9553 : 7485 : {
9554 : 7485 : switch (TREE_CODE (_p1))
9555 : : {
9556 : 191 : case INTEGER_CST:
9557 : 191 : {
9558 : 191 : {
9559 : 191 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
9560 : 191 : tree res = generic_simplify_381 (loc, type, _p0, _p1, captures, GT_EXPR);
9561 : 191 : if (res) return res;
9562 : : }
9563 : 0 : break;
9564 : : }
9565 : : default:;
9566 : : }
9567 : : break;
9568 : : }
9569 : : default:;
9570 : : }
9571 : : break;
9572 : : }
9573 : 2058886 : CASE_CONVERT:
9574 : 2058886 : {
9575 : 2058886 : tree _q20 = TREE_OPERAND (_p0, 0);
9576 : 2058886 : switch (TREE_CODE (_q20))
9577 : : {
9578 : 5 : case EXACT_DIV_EXPR:
9579 : 5 : {
9580 : 5 : tree _q30 = TREE_OPERAND (_q20, 0);
9581 : 5 : tree _q31 = TREE_OPERAND (_q20, 1);
9582 : 5 : switch (TREE_CODE (_q31))
9583 : : {
9584 : 5 : case INTEGER_CST:
9585 : 5 : {
9586 : 5 : switch (TREE_CODE (_p1))
9587 : : {
9588 : 0 : case INTEGER_CST:
9589 : 0 : {
9590 : 0 : {
9591 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
9592 : 0 : tree res = generic_simplify_382 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
9593 : 0 : if (res) return res;
9594 : : }
9595 : 0 : break;
9596 : : }
9597 : : default:;
9598 : : }
9599 : : break;
9600 : : }
9601 : : default:;
9602 : : }
9603 : : break;
9604 : : }
9605 : 2058886 : default:;
9606 : : }
9607 : 2058886 : switch (TREE_CODE (_p1))
9608 : : {
9609 : 177298 : CASE_CONVERT:
9610 : 177298 : {
9611 : 177298 : tree _q40 = TREE_OPERAND (_p1, 0);
9612 : 177298 : {
9613 : 177298 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
9614 : 177298 : tree res = generic_simplify_261 (loc, type, _p0, _p1, captures, GT_EXPR);
9615 : 177298 : if (res) return res;
9616 : : }
9617 : 143691 : break;
9618 : : }
9619 : 2025279 : default:;
9620 : : }
9621 : 2025279 : {
9622 : 2025279 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
9623 : 2025279 : tree res = generic_simplify_262 (loc, type, _p0, _p1, captures, GT_EXPR);
9624 : 2025279 : if (res) return res;
9625 : : }
9626 : 1074265 : switch (TREE_CODE (_q20))
9627 : : {
9628 : 407 : case ADDR_EXPR:
9629 : 407 : {
9630 : 407 : switch (TREE_CODE (_p1))
9631 : : {
9632 : 280 : CASE_CONVERT:
9633 : 280 : {
9634 : 280 : tree _q40 = TREE_OPERAND (_p1, 0);
9635 : 280 : switch (TREE_CODE (_q40))
9636 : : {
9637 : 280 : case ADDR_EXPR:
9638 : 280 : {
9639 : 280 : {
9640 : 280 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
9641 : 280 : tree res = generic_simplify_279 (loc, type, _p0, _p1, captures, GT_EXPR);
9642 : 280 : if (res) return res;
9643 : : }
9644 : 213 : break;
9645 : : }
9646 : : default:;
9647 : : }
9648 : : break;
9649 : : }
9650 : 0 : case ADDR_EXPR:
9651 : 0 : {
9652 : 0 : {
9653 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
9654 : 0 : tree res = generic_simplify_279 (loc, type, _p0, _p1, captures, GT_EXPR);
9655 : 0 : if (res) return res;
9656 : : }
9657 : 0 : break;
9658 : : }
9659 : : default:;
9660 : : }
9661 : : break;
9662 : : }
9663 : 1074198 : default:;
9664 : : }
9665 : 1074198 : if (uniform_integer_cst_p (_p1))
9666 : : {
9667 : 306287 : {
9668 : 306287 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
9669 : 306287 : tree res = generic_simplify_383 (loc, type, _p0, _p1, captures, GT_EXPR);
9670 : 306287 : if (res) return res;
9671 : : }
9672 : : }
9673 : : break;
9674 : : }
9675 : 15945 : case BIT_AND_EXPR:
9676 : 15945 : {
9677 : 15945 : tree _q20 = TREE_OPERAND (_p0, 0);
9678 : 15945 : tree _q21 = TREE_OPERAND (_p0, 1);
9679 : 15945 : switch (TREE_CODE (_q21))
9680 : : {
9681 : 14926 : case INTEGER_CST:
9682 : 14926 : {
9683 : 14926 : switch (TREE_CODE (_p1))
9684 : : {
9685 : 9258 : case INTEGER_CST:
9686 : 9258 : {
9687 : 9258 : {
9688 : 9258 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
9689 : 9258 : tree res = generic_simplify_397 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
9690 : 9258 : if (res) return res;
9691 : : }
9692 : 8739 : break;
9693 : : }
9694 : : default:;
9695 : : }
9696 : : break;
9697 : : }
9698 : : default:;
9699 : : }
9700 : : break;
9701 : : }
9702 : 10810 : case NEGATE_EXPR:
9703 : 10810 : {
9704 : 10810 : tree _q20 = TREE_OPERAND (_p0, 0);
9705 : 10810 : switch (TREE_CODE (_p1))
9706 : : {
9707 : 4 : case NEGATE_EXPR:
9708 : 4 : {
9709 : 4 : tree _q40 = TREE_OPERAND (_p1, 0);
9710 : 4 : {
9711 : 4 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
9712 : 4 : tree res = generic_simplify_259 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
9713 : 4 : if (res) return res;
9714 : : }
9715 : 4 : break;
9716 : : }
9717 : 10810 : default:;
9718 : : }
9719 : 10810 : if (CONSTANT_CLASS_P (_p1))
9720 : : {
9721 : 700 : {
9722 : 700 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9723 : 700 : tree res = generic_simplify_260 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
9724 : 700 : if (res) return res;
9725 : : }
9726 : : }
9727 : : break;
9728 : : }
9729 : 4584 : case ADDR_EXPR:
9730 : 4584 : {
9731 : 4584 : switch (TREE_CODE (_p1))
9732 : : {
9733 : 0 : CASE_CONVERT:
9734 : 0 : {
9735 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
9736 : 0 : switch (TREE_CODE (_q30))
9737 : : {
9738 : 0 : case ADDR_EXPR:
9739 : 0 : {
9740 : 0 : {
9741 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q30 };
9742 : 0 : tree res = generic_simplify_280 (loc, type, _p0, _p1, captures, GT_EXPR);
9743 : 0 : if (res) return res;
9744 : : }
9745 : 0 : break;
9746 : : }
9747 : : default:;
9748 : : }
9749 : : break;
9750 : : }
9751 : 4275 : case ADDR_EXPR:
9752 : 4275 : {
9753 : 4275 : {
9754 : 4275 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _p1 };
9755 : 4275 : tree res = generic_simplify_280 (loc, type, _p0, _p1, captures, GT_EXPR);
9756 : 4275 : if (res) return res;
9757 : : }
9758 : 658 : break;
9759 : : }
9760 : : default:;
9761 : : }
9762 : : break;
9763 : : }
9764 : 295957 : case CALL_EXPR:
9765 : 295957 : switch (get_call_combined_fn (_p0))
9766 : : {
9767 : 1 : case CFN_BUILT_IN_SQRTF:
9768 : 1 : if (call_expr_nargs (_p0) == 1)
9769 : : {
9770 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9771 : 1 : switch (TREE_CODE (_p1))
9772 : : {
9773 : 1 : case REAL_CST:
9774 : 1 : {
9775 : 1 : {
9776 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9777 : 1 : tree res = generic_simplify_254 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTF, GT_EXPR);
9778 : 1 : if (res) return res;
9779 : : }
9780 : 0 : break;
9781 : : }
9782 : 0 : case CALL_EXPR:
9783 : 0 : switch (get_call_combined_fn (_p1))
9784 : : {
9785 : 0 : case CFN_BUILT_IN_SQRTF:
9786 : 0 : if (call_expr_nargs (_p1) == 1)
9787 : : {
9788 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9789 : 0 : {
9790 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
9791 : 0 : tree res = generic_simplify_255 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTF, GT_EXPR);
9792 : 0 : if (res) return res;
9793 : : }
9794 : : }
9795 : : break;
9796 : : default:;
9797 : : }
9798 : : break;
9799 : : default:;
9800 : : }
9801 : : }
9802 : : break;
9803 : 0 : case CFN_BUILT_IN_SQRTL:
9804 : 0 : if (call_expr_nargs (_p0) == 1)
9805 : : {
9806 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9807 : 0 : switch (TREE_CODE (_p1))
9808 : : {
9809 : 0 : case REAL_CST:
9810 : 0 : {
9811 : 0 : {
9812 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9813 : 0 : tree res = generic_simplify_254 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTL, GT_EXPR);
9814 : 0 : if (res) return res;
9815 : : }
9816 : 0 : break;
9817 : : }
9818 : 0 : case CALL_EXPR:
9819 : 0 : switch (get_call_combined_fn (_p1))
9820 : : {
9821 : 0 : case CFN_BUILT_IN_SQRTL:
9822 : 0 : if (call_expr_nargs (_p1) == 1)
9823 : : {
9824 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9825 : 0 : {
9826 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
9827 : 0 : tree res = generic_simplify_255 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTL, GT_EXPR);
9828 : 0 : if (res) return res;
9829 : : }
9830 : : }
9831 : : break;
9832 : : default:;
9833 : : }
9834 : : break;
9835 : : default:;
9836 : : }
9837 : : }
9838 : : break;
9839 : 3 : case CFN_BUILT_IN_SQRT:
9840 : 3 : if (call_expr_nargs (_p0) == 1)
9841 : : {
9842 : 3 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9843 : 3 : switch (TREE_CODE (_p1))
9844 : : {
9845 : 3 : case REAL_CST:
9846 : 3 : {
9847 : 3 : {
9848 : 3 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9849 : 3 : tree res = generic_simplify_254 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRT, GT_EXPR);
9850 : 3 : if (res) return res;
9851 : : }
9852 : 0 : break;
9853 : : }
9854 : 0 : case CALL_EXPR:
9855 : 0 : switch (get_call_combined_fn (_p1))
9856 : : {
9857 : 0 : case CFN_BUILT_IN_SQRT:
9858 : 0 : if (call_expr_nargs (_p1) == 1)
9859 : : {
9860 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9861 : 0 : {
9862 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
9863 : 0 : tree res = generic_simplify_255 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRT, GT_EXPR);
9864 : 0 : if (res) return res;
9865 : : }
9866 : : }
9867 : : break;
9868 : : default:;
9869 : : }
9870 : : break;
9871 : : default:;
9872 : : }
9873 : : }
9874 : : break;
9875 : 0 : case CFN_SQRT:
9876 : 0 : if (call_expr_nargs (_p0) == 1)
9877 : : {
9878 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9879 : 0 : switch (TREE_CODE (_p1))
9880 : : {
9881 : 0 : case REAL_CST:
9882 : 0 : {
9883 : 0 : {
9884 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9885 : 0 : tree res = generic_simplify_254 (loc, type, _p0, _p1, captures, CFN_SQRT, GT_EXPR);
9886 : 0 : if (res) return res;
9887 : : }
9888 : 0 : break;
9889 : : }
9890 : 0 : case CALL_EXPR:
9891 : 0 : switch (get_call_combined_fn (_p1))
9892 : : {
9893 : 0 : case CFN_SQRT:
9894 : 0 : if (call_expr_nargs (_p1) == 1)
9895 : : {
9896 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9897 : 0 : {
9898 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
9899 : 0 : tree res = generic_simplify_255 (loc, type, _p0, _p1, captures, CFN_SQRT, GT_EXPR);
9900 : 0 : if (res) return res;
9901 : : }
9902 : : }
9903 : : break;
9904 : : default:;
9905 : : }
9906 : : break;
9907 : : default:;
9908 : : }
9909 : : }
9910 : : break;
9911 : : default:;
9912 : : }
9913 : : break;
9914 : 15539072 : default:;
9915 : : }
9916 : 15539072 : if (uniform_integer_cst_p (_p1))
9917 : : {
9918 : 10356257 : {
9919 : 10356257 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _p1 };
9920 : 10356257 : tree res = generic_simplify_384 (loc, type, _p0, _p1, captures, GT_EXPR);
9921 : 10356257 : if (res) return res;
9922 : : }
9923 : : }
9924 : 14784289 : switch (TREE_CODE (_p0))
9925 : : {
9926 : 1005269 : CASE_CONVERT:
9927 : 1005269 : {
9928 : 1005269 : tree _q20 = TREE_OPERAND (_p0, 0);
9929 : 1005269 : switch (TREE_CODE (_q20))
9930 : : {
9931 : 1 : case NE_EXPR:
9932 : 1 : {
9933 : 1 : tree _q30 = TREE_OPERAND (_q20, 0);
9934 : 1 : tree _q31 = TREE_OPERAND (_q20, 1);
9935 : 1 : if (integer_zerop (_q31))
9936 : : {
9937 : 1 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
9938 : : {
9939 : 1 : {
9940 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _q30 };
9941 : 1 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0]))
9942 : : )
9943 : : {
9944 : 1 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1779;
9945 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1779;
9946 : 1 : {
9947 : 1 : tree _r;
9948 : 1 : _r = constant_boolean_node (false, type);
9949 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1028, __FILE__, __LINE__, true);
9950 : 1 : return _r;
9951 : : }
9952 : : next_after_fail1779:;
9953 : : }
9954 : : }
9955 : : }
9956 : : }
9957 : : break;
9958 : : }
9959 : 50913 : case PLUS_EXPR:
9960 : 50913 : {
9961 : 50913 : tree _q30 = TREE_OPERAND (_q20, 0);
9962 : 50913 : tree _q31 = TREE_OPERAND (_q20, 1);
9963 : 50913 : switch (TREE_CODE (_q30))
9964 : : {
9965 : 34302 : CASE_CONVERT:
9966 : 34302 : {
9967 : 34302 : tree _q40 = TREE_OPERAND (_q30, 0);
9968 : 34302 : switch (TREE_CODE (_q31))
9969 : : {
9970 : 34298 : case INTEGER_CST:
9971 : 34298 : {
9972 : 34298 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
9973 : : {
9974 : 2 : {
9975 : 2 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q40, _q31 };
9976 : 2 : tree res = generic_simplify_385 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
9977 : 2 : if (res) return res;
9978 : : }
9979 : : }
9980 : : break;
9981 : : }
9982 : : default:;
9983 : : }
9984 : : break;
9985 : : }
9986 : : default:;
9987 : : }
9988 : : break;
9989 : : }
9990 : : default:;
9991 : : }
9992 : : break;
9993 : : }
9994 : 14784286 : default:;
9995 : : }
9996 : 14784286 : switch (TREE_CODE (_p1))
9997 : : {
9998 : 562587 : CASE_CONVERT:
9999 : 562587 : {
10000 : 562587 : tree _q30 = TREE_OPERAND (_p1, 0);
10001 : 562587 : switch (TREE_CODE (_q30))
10002 : : {
10003 : 3305 : case PLUS_EXPR:
10004 : 3305 : {
10005 : 3305 : tree _q40 = TREE_OPERAND (_q30, 0);
10006 : 3305 : tree _q41 = TREE_OPERAND (_q30, 1);
10007 : 3305 : switch (TREE_CODE (_q40))
10008 : : {
10009 : 3243 : CASE_CONVERT:
10010 : 3243 : {
10011 : 3243 : tree _q50 = TREE_OPERAND (_q40, 0);
10012 : 3243 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
10013 : : {
10014 : 0 : switch (TREE_CODE (_q41))
10015 : : {
10016 : 0 : case INTEGER_CST:
10017 : 0 : {
10018 : 0 : {
10019 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q30, _q40, _p0, _q41 };
10020 : 0 : tree res = generic_simplify_385 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
10021 : 0 : if (res) return res;
10022 : : }
10023 : 0 : break;
10024 : : }
10025 : : default:;
10026 : : }
10027 : : }
10028 : : break;
10029 : : }
10030 : : default:;
10031 : : }
10032 : : break;
10033 : : }
10034 : : default:;
10035 : : }
10036 : : break;
10037 : : }
10038 : 110624 : case PLUS_EXPR:
10039 : 110624 : {
10040 : 110624 : tree _q30 = TREE_OPERAND (_p1, 0);
10041 : 110624 : tree _q31 = TREE_OPERAND (_p1, 1);
10042 : 110624 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
10043 : : {
10044 : 4 : switch (TREE_CODE (_q31))
10045 : : {
10046 : 4 : case INTEGER_CST:
10047 : 4 : {
10048 : 4 : {
10049 : 4 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _p1, _q30, _p0, _q31 };
10050 : 4 : tree res = generic_simplify_380 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
10051 : 4 : if (res) return res;
10052 : : }
10053 : 0 : break;
10054 : : }
10055 : : default:;
10056 : : }
10057 : : }
10058 : : break;
10059 : : }
10060 : 14784282 : default:;
10061 : : }
10062 : 14784282 : switch (TREE_CODE (_p0))
10063 : : {
10064 : 639273 : case MINUS_EXPR:
10065 : 639273 : {
10066 : 639273 : tree _q20 = TREE_OPERAND (_p0, 0);
10067 : 639273 : tree _q21 = TREE_OPERAND (_p0, 1);
10068 : 639273 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
10069 : : {
10070 : 6951 : {
10071 : 6951 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
10072 : 6951 : tree res = generic_simplify_386 (loc, type, _p0, _p1, captures, GT_EXPR);
10073 : 6951 : if (res) return res;
10074 : : }
10075 : : }
10076 : : break;
10077 : : }
10078 : 14777343 : default:;
10079 : : }
10080 : 14777343 : switch (TREE_CODE (_p1))
10081 : : {
10082 : 110620 : case PLUS_EXPR:
10083 : 110620 : {
10084 : 110620 : tree _q30 = TREE_OPERAND (_p1, 0);
10085 : 110620 : tree _q31 = TREE_OPERAND (_p1, 1);
10086 : 110620 : switch (TREE_CODE (_q30))
10087 : : {
10088 : 3 : case MINUS_EXPR:
10089 : 3 : {
10090 : 3 : tree _q40 = TREE_OPERAND (_q30, 0);
10091 : 3 : tree _q41 = TREE_OPERAND (_q30, 1);
10092 : 3 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
10093 : : {
10094 : 0 : if (integer_minus_onep (_q31))
10095 : : {
10096 : 0 : {
10097 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
10098 : 0 : tree res = generic_simplify_398 (loc, type, _p0, _p1, captures, LT_EXPR);
10099 : 0 : if (res) return res;
10100 : : }
10101 : : }
10102 : : }
10103 : : break;
10104 : : }
10105 : : default:;
10106 : : }
10107 : : break;
10108 : : }
10109 : 14777343 : default:;
10110 : : }
10111 : 14777343 : switch (TREE_CODE (_p0))
10112 : : {
10113 : 83 : case REALPART_EXPR:
10114 : 83 : {
10115 : 83 : tree _q20 = TREE_OPERAND (_p0, 0);
10116 : 83 : switch (TREE_CODE (_q20))
10117 : : {
10118 : 0 : case CALL_EXPR:
10119 : 0 : switch (get_call_combined_fn (_q20))
10120 : : {
10121 : 0 : case CFN_SUB_OVERFLOW:
10122 : 0 : if (call_expr_nargs (_q20) == 2)
10123 : : {
10124 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
10125 : 0 : tree _q31 = CALL_EXPR_ARG (_q20, 1);
10126 : 0 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
10127 : : {
10128 : 0 : {
10129 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
10130 : 0 : tree res = generic_simplify_399 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
10131 : 0 : if (res) return res;
10132 : : }
10133 : : }
10134 : : }
10135 : : break;
10136 : : default:;
10137 : : }
10138 : : break;
10139 : : default:;
10140 : : }
10141 : : break;
10142 : : }
10143 : 14777343 : default:;
10144 : : }
10145 : 14777343 : switch (TREE_CODE (_p1))
10146 : : {
10147 : 20 : case REALPART_EXPR:
10148 : 20 : {
10149 : 20 : tree _q30 = TREE_OPERAND (_p1, 0);
10150 : 20 : switch (TREE_CODE (_q30))
10151 : : {
10152 : 0 : case CALL_EXPR:
10153 : 0 : switch (get_call_combined_fn (_q30))
10154 : : {
10155 : 0 : case CFN_ADD_OVERFLOW:
10156 : 0 : if (call_expr_nargs (_q30) == 2)
10157 : : {
10158 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
10159 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
10160 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
10161 : : {
10162 : 0 : {
10163 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _p0, _q41 };
10164 : 0 : tree res = generic_simplify_400 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
10165 : 0 : if (res) return res;
10166 : : }
10167 : : }
10168 : 0 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
10169 : : {
10170 : 0 : {
10171 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _p0, _q40 };
10172 : 0 : tree res = generic_simplify_400 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
10173 : 0 : if (res) return res;
10174 : : }
10175 : : }
10176 : : }
10177 : : break;
10178 : : default:;
10179 : : }
10180 : : break;
10181 : : default:;
10182 : : }
10183 : : break;
10184 : : }
10185 : 1096 : case TRUNC_DIV_EXPR:
10186 : 1096 : {
10187 : 1096 : tree _q30 = TREE_OPERAND (_p1, 0);
10188 : 1096 : tree _q31 = TREE_OPERAND (_p1, 1);
10189 : 1096 : if (integer_all_onesp (_q30))
10190 : : {
10191 : 0 : {
10192 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q31, _p0 };
10193 : 0 : tree res = generic_simplify_401 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
10194 : 0 : if (res) return res;
10195 : : }
10196 : : }
10197 : : break;
10198 : : }
10199 : 14777343 : default:;
10200 : : }
10201 : 14777343 : switch (TREE_CODE (_p0))
10202 : : {
10203 : 126821 : case MULT_EXPR:
10204 : 126821 : {
10205 : 126821 : tree _q20 = TREE_OPERAND (_p0, 0);
10206 : 126821 : tree _q21 = TREE_OPERAND (_p0, 1);
10207 : 126821 : switch (TREE_CODE (_q21))
10208 : : {
10209 : 23749 : case REAL_CST:
10210 : 23749 : {
10211 : 23749 : switch (TREE_CODE (_p1))
10212 : : {
10213 : 59 : case REAL_CST:
10214 : 59 : {
10215 : 59 : {
10216 : 59 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
10217 : 59 : tree res = generic_simplify_391 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
10218 : 59 : if (res) return res;
10219 : : }
10220 : 58 : break;
10221 : : }
10222 : : default:;
10223 : : }
10224 : : break;
10225 : : }
10226 : : default:;
10227 : : }
10228 : : break;
10229 : : }
10230 : 1964183 : case PLUS_EXPR:
10231 : 1964183 : {
10232 : 1964183 : tree _q20 = TREE_OPERAND (_p0, 0);
10233 : 1964183 : tree _q21 = TREE_OPERAND (_p0, 1);
10234 : 1964183 : switch (TREE_CODE (_q21))
10235 : : {
10236 : 1812078 : case INTEGER_CST:
10237 : 1812078 : {
10238 : 1812078 : switch (TREE_CODE (_p1))
10239 : : {
10240 : 1245262 : case INTEGER_CST:
10241 : 1245262 : {
10242 : 1245262 : {
10243 : 1245262 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
10244 : 1245262 : tree res = generic_simplify_392 (loc, type, _p0, _p1, captures, PLUS_EXPR, MINUS_EXPR, GT_EXPR, LT_EXPR);
10245 : 1245262 : if (res) return res;
10246 : : }
10247 : 795585 : break;
10248 : : }
10249 : : default:;
10250 : : }
10251 : : break;
10252 : : }
10253 : : default:;
10254 : : }
10255 : : break;
10256 : : }
10257 : 632334 : case MINUS_EXPR:
10258 : 632334 : {
10259 : 632334 : tree _q20 = TREE_OPERAND (_p0, 0);
10260 : 632334 : tree _q21 = TREE_OPERAND (_p0, 1);
10261 : 632334 : switch (TREE_CODE (_q21))
10262 : : {
10263 : 2215 : case INTEGER_CST:
10264 : 2215 : {
10265 : 2215 : switch (TREE_CODE (_p1))
10266 : : {
10267 : 2067 : case INTEGER_CST:
10268 : 2067 : {
10269 : 2067 : {
10270 : 2067 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
10271 : 2067 : tree res = generic_simplify_392 (loc, type, _p0, _p1, captures, MINUS_EXPR, PLUS_EXPR, GT_EXPR, LT_EXPR);
10272 : 2067 : if (res) return res;
10273 : : }
10274 : 1909 : break;
10275 : : }
10276 : : default:;
10277 : : }
10278 : : break;
10279 : : }
10280 : 632176 : default:;
10281 : : }
10282 : 632176 : switch (TREE_CODE (_q20))
10283 : : {
10284 : 541690 : case INTEGER_CST:
10285 : 541690 : {
10286 : 541690 : switch (TREE_CODE (_p1))
10287 : : {
10288 : 538875 : case INTEGER_CST:
10289 : 538875 : {
10290 : 538875 : {
10291 : 538875 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
10292 : 538875 : tree res = generic_simplify_286 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
10293 : 538875 : if (res) return res;
10294 : : }
10295 : 0 : break;
10296 : : }
10297 : : default:;
10298 : : }
10299 : : break;
10300 : : }
10301 : : default:;
10302 : : }
10303 : : break;
10304 : : }
10305 : 287089 : case CALL_EXPR:
10306 : 287089 : switch (get_call_combined_fn (_p0))
10307 : : {
10308 : 4 : case CFN_BUILT_IN_CTZ:
10309 : 4 : if (call_expr_nargs (_p0) == 1)
10310 : : {
10311 : 4 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10312 : 4 : switch (TREE_CODE (_p1))
10313 : : {
10314 : 4 : case INTEGER_CST:
10315 : 4 : {
10316 : 4 : {
10317 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10318 : 4 : tree res = generic_simplify_393 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR, CFN_BUILT_IN_CTZ);
10319 : 4 : if (res) return res;
10320 : : }
10321 : 0 : break;
10322 : : }
10323 : : default:;
10324 : : }
10325 : : }
10326 : : break;
10327 : 12 : case CFN_BUILT_IN_FFS:
10328 : 12 : if (call_expr_nargs (_p0) == 1)
10329 : : {
10330 : 12 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10331 : 12 : switch (TREE_CODE (_p1))
10332 : : {
10333 : 12 : case INTEGER_CST:
10334 : 12 : {
10335 : 12 : {
10336 : 12 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10337 : 12 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, EQ_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_FFS);
10338 : 12 : if (res) return res;
10339 : : }
10340 : 6 : break;
10341 : : }
10342 : : default:;
10343 : : }
10344 : : }
10345 : : break;
10346 : 0 : case CFN_BUILT_IN_FFSIMAX:
10347 : 0 : if (call_expr_nargs (_p0) == 1)
10348 : : {
10349 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10350 : 0 : switch (TREE_CODE (_p1))
10351 : : {
10352 : 0 : case INTEGER_CST:
10353 : 0 : {
10354 : 0 : {
10355 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10356 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, EQ_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_FFSIMAX);
10357 : 0 : if (res) return res;
10358 : : }
10359 : 0 : break;
10360 : : }
10361 : : default:;
10362 : : }
10363 : : }
10364 : : break;
10365 : 75 : case CFN_BUILT_IN_POPCOUNT:
10366 : 75 : if (call_expr_nargs (_p0) == 1)
10367 : : {
10368 : 75 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10369 : 75 : if (integer_zerop (_p1))
10370 : : {
10371 : 36 : {
10372 : 36 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
10373 : 36 : tree res = generic_simplify_291 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, CFN_BUILT_IN_POPCOUNT);
10374 : 36 : if (res) return res;
10375 : : }
10376 : : }
10377 : : }
10378 : : break;
10379 : 2 : case CFN_BUILT_IN_CTZL:
10380 : 2 : if (call_expr_nargs (_p0) == 1)
10381 : : {
10382 : 2 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10383 : 2 : switch (TREE_CODE (_p1))
10384 : : {
10385 : 2 : case INTEGER_CST:
10386 : 2 : {
10387 : 2 : {
10388 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10389 : 2 : tree res = generic_simplify_393 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR, CFN_BUILT_IN_CTZL);
10390 : 2 : if (res) return res;
10391 : : }
10392 : 0 : break;
10393 : : }
10394 : : default:;
10395 : : }
10396 : : }
10397 : : break;
10398 : 8 : case CFN_BUILT_IN_FFSL:
10399 : 8 : if (call_expr_nargs (_p0) == 1)
10400 : : {
10401 : 8 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10402 : 8 : switch (TREE_CODE (_p1))
10403 : : {
10404 : 8 : case INTEGER_CST:
10405 : 8 : {
10406 : 8 : {
10407 : 8 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10408 : 8 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, EQ_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_FFSL);
10409 : 8 : if (res) return res;
10410 : : }
10411 : 4 : break;
10412 : : }
10413 : : default:;
10414 : : }
10415 : : }
10416 : : break;
10417 : 3 : case CFN_BUILT_IN_POPCOUNTLL:
10418 : 3 : if (call_expr_nargs (_p0) == 1)
10419 : : {
10420 : 3 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10421 : 3 : if (integer_zerop (_p1))
10422 : : {
10423 : 0 : {
10424 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
10425 : 0 : tree res = generic_simplify_291 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, CFN_BUILT_IN_POPCOUNTLL);
10426 : 0 : if (res) return res;
10427 : : }
10428 : : }
10429 : : }
10430 : : break;
10431 : 0 : case CFN_BUILT_IN_CTZIMAX:
10432 : 0 : if (call_expr_nargs (_p0) == 1)
10433 : : {
10434 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10435 : 0 : switch (TREE_CODE (_p1))
10436 : : {
10437 : 0 : case INTEGER_CST:
10438 : 0 : {
10439 : 0 : {
10440 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10441 : 0 : tree res = generic_simplify_393 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR, CFN_BUILT_IN_CTZIMAX);
10442 : 0 : if (res) return res;
10443 : : }
10444 : 0 : break;
10445 : : }
10446 : : default:;
10447 : : }
10448 : : }
10449 : : break;
10450 : 0 : case CFN_POPCOUNT:
10451 : 0 : if (call_expr_nargs (_p0) == 1)
10452 : : {
10453 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10454 : 0 : if (integer_zerop (_p1))
10455 : : {
10456 : 0 : {
10457 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
10458 : 0 : tree res = generic_simplify_291 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, CFN_POPCOUNT);
10459 : 0 : if (res) return res;
10460 : : }
10461 : : }
10462 : : }
10463 : : break;
10464 : 0 : case CFN_CTZ:
10465 : 0 : if (call_expr_nargs (_p0) == 2)
10466 : : {
10467 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10468 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
10469 : 0 : switch (TREE_CODE (_p1))
10470 : : {
10471 : 0 : case INTEGER_CST:
10472 : 0 : {
10473 : 0 : {
10474 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
10475 : 0 : tree res = generic_simplify_394 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
10476 : 0 : if (res) return res;
10477 : : }
10478 : 0 : break;
10479 : : }
10480 : : default:;
10481 : : }
10482 : : }
10483 : 0 : if (call_expr_nargs (_p0) == 1)
10484 : : {
10485 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10486 : 0 : switch (TREE_CODE (_p1))
10487 : : {
10488 : 0 : case INTEGER_CST:
10489 : 0 : {
10490 : 0 : {
10491 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10492 : 0 : tree res = generic_simplify_393 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR, CFN_CTZ);
10493 : 0 : if (res) return res;
10494 : : }
10495 : 0 : break;
10496 : : }
10497 : : default:;
10498 : : }
10499 : : }
10500 : : break;
10501 : 0 : case CFN_FFS:
10502 : 0 : if (call_expr_nargs (_p0) == 1)
10503 : : {
10504 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10505 : 0 : switch (TREE_CODE (_p1))
10506 : : {
10507 : 0 : case INTEGER_CST:
10508 : 0 : {
10509 : 0 : {
10510 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10511 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, EQ_EXPR, BIT_AND_EXPR, CFN_FFS);
10512 : 0 : if (res) return res;
10513 : : }
10514 : 0 : break;
10515 : : }
10516 : : default:;
10517 : : }
10518 : : }
10519 : : break;
10520 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
10521 : 0 : if (call_expr_nargs (_p0) == 1)
10522 : : {
10523 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10524 : 0 : if (integer_zerop (_p1))
10525 : : {
10526 : 0 : {
10527 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
10528 : 0 : tree res = generic_simplify_291 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
10529 : 0 : if (res) return res;
10530 : : }
10531 : : }
10532 : : }
10533 : : break;
10534 : 3 : case CFN_BUILT_IN_POPCOUNTL:
10535 : 3 : if (call_expr_nargs (_p0) == 1)
10536 : : {
10537 : 3 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10538 : 3 : if (integer_zerop (_p1))
10539 : : {
10540 : 0 : {
10541 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
10542 : 0 : tree res = generic_simplify_291 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, CFN_BUILT_IN_POPCOUNTL);
10543 : 0 : if (res) return res;
10544 : : }
10545 : : }
10546 : : }
10547 : : break;
10548 : 18 : case CFN_BUILT_IN_CTZLL:
10549 : 18 : if (call_expr_nargs (_p0) == 1)
10550 : : {
10551 : 18 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10552 : 18 : switch (TREE_CODE (_p1))
10553 : : {
10554 : 18 : case INTEGER_CST:
10555 : 18 : {
10556 : 18 : {
10557 : 18 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10558 : 18 : tree res = generic_simplify_393 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR, CFN_BUILT_IN_CTZLL);
10559 : 18 : if (res) return res;
10560 : : }
10561 : 16 : break;
10562 : : }
10563 : : default:;
10564 : : }
10565 : : }
10566 : : break;
10567 : 9 : case CFN_BUILT_IN_FFSLL:
10568 : 9 : if (call_expr_nargs (_p0) == 1)
10569 : : {
10570 : 9 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10571 : 9 : switch (TREE_CODE (_p1))
10572 : : {
10573 : 9 : case INTEGER_CST:
10574 : 9 : {
10575 : 9 : {
10576 : 9 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
10577 : 9 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR, EQ_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_FFSLL);
10578 : 9 : if (res) return res;
10579 : : }
10580 : 4 : break;
10581 : : }
10582 : : default:;
10583 : : }
10584 : : }
10585 : : break;
10586 : : default:;
10587 : : }
10588 : : break;
10589 : : default:;
10590 : : }
10591 : : return NULL_TREE;
10592 : : }
10593 : :
10594 : : tree
10595 : 6710789 : 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)
10596 : : {
10597 : 6710789 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
10598 : 6710789 : switch (TREE_CODE (_p0))
10599 : : {
10600 : 36650 : case LSHIFT_EXPR:
10601 : 36650 : {
10602 : 36650 : tree _q20 = TREE_OPERAND (_p0, 0);
10603 : 36650 : tree _q21 = TREE_OPERAND (_p0, 1);
10604 : 36650 : switch (TREE_CODE (_p1))
10605 : : {
10606 : 1 : case LSHIFT_EXPR:
10607 : 1 : {
10608 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
10609 : 1 : tree _q51 = TREE_OPERAND (_p1, 1);
10610 : 1 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10611 : : {
10612 : 1 : {
10613 : 1 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
10614 : 1 : tree res = generic_simplify_65 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10615 : 1 : if (res) return res;
10616 : : }
10617 : : }
10618 : : break;
10619 : : }
10620 : : default:;
10621 : : }
10622 : : break;
10623 : : }
10624 : 74160 : case RSHIFT_EXPR:
10625 : 74160 : {
10626 : 74160 : tree _q20 = TREE_OPERAND (_p0, 0);
10627 : 74160 : tree _q21 = TREE_OPERAND (_p0, 1);
10628 : 74160 : switch (TREE_CODE (_p1))
10629 : : {
10630 : 2 : case RSHIFT_EXPR:
10631 : 2 : {
10632 : 2 : tree _q50 = TREE_OPERAND (_p1, 0);
10633 : 2 : tree _q51 = TREE_OPERAND (_p1, 1);
10634 : 2 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10635 : : {
10636 : 2 : {
10637 : 2 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
10638 : 2 : tree res = generic_simplify_66 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10639 : 2 : if (res) return res;
10640 : : }
10641 : : }
10642 : : break;
10643 : : }
10644 : : default:;
10645 : : }
10646 : : break;
10647 : : }
10648 : 1942601 : CASE_CONVERT:
10649 : 1942601 : {
10650 : 1942601 : tree _q20 = TREE_OPERAND (_p0, 0);
10651 : 1942601 : switch (TREE_CODE (_p1))
10652 : : {
10653 : 799428 : CASE_CONVERT:
10654 : 799428 : {
10655 : 799428 : tree _q40 = TREE_OPERAND (_p1, 0);
10656 : 799428 : {
10657 : 799428 : tree _q40_pops[1];
10658 : 799428 : if (tree_maybe_bit_not (_q40, _q40_pops))
10659 : : {
10660 : 250 : tree _q50 = _q40_pops[0];
10661 : 250 : {
10662 : 250 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q50 };
10663 : 250 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures);
10664 : 250 : if (res) return res;
10665 : : }
10666 : : }
10667 : : }
10668 : 799428 : break;
10669 : : }
10670 : 1942601 : default:;
10671 : : }
10672 : 1942601 : {
10673 : 1942601 : tree _q20_pops[1];
10674 : 1942601 : if (tree_maybe_bit_not (_q20, _q20_pops))
10675 : : {
10676 : 437 : tree _q30 = _q20_pops[0];
10677 : 437 : switch (TREE_CODE (_p1))
10678 : : {
10679 : 254 : CASE_CONVERT:
10680 : 254 : {
10681 : 254 : tree _q50 = TREE_OPERAND (_p1, 0);
10682 : 254 : {
10683 : 254 : tree captures[2] ATTRIBUTE_UNUSED = { _q50, _q30 };
10684 : 254 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures);
10685 : 254 : if (res) return res;
10686 : : }
10687 : 254 : break;
10688 : : }
10689 : : default:;
10690 : : }
10691 : : }
10692 : : }
10693 : 1942601 : break;
10694 : : }
10695 : 6710786 : default:;
10696 : : }
10697 : 6710786 : {
10698 : 6710786 : tree _p1_pops[1];
10699 : 6710786 : if (tree_maybe_bit_not (_p1, _p1_pops))
10700 : : {
10701 : 4821995 : tree _q30 = _p1_pops[0];
10702 : 4821995 : {
10703 : 4821995 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
10704 : 4821995 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures);
10705 : 4821995 : if (res) return res;
10706 : : }
10707 : : }
10708 : : }
10709 : 6710770 : {
10710 : 6710770 : tree _p0_pops[1];
10711 : 6710770 : if (tree_maybe_bit_not (_p0, _p0_pops))
10712 : : {
10713 : 51744 : tree _q20 = _p0_pops[0];
10714 : 51744 : {
10715 : 51744 : tree captures[2] ATTRIBUTE_UNUSED = { _p1, _q20 };
10716 : 51744 : tree res = generic_simplify_438 (loc, type, _p0, _p1, captures);
10717 : 51744 : if (res) return res;
10718 : : }
10719 : : }
10720 : : }
10721 : 6710673 : switch (TREE_CODE (_p1))
10722 : : {
10723 : 21228 : case PLUS_EXPR:
10724 : 21228 : {
10725 : 21228 : tree _q30 = TREE_OPERAND (_p1, 0);
10726 : 21228 : tree _q31 = TREE_OPERAND (_p1, 1);
10727 : 21228 : switch (TREE_CODE (_q30))
10728 : : {
10729 : 163 : case LSHIFT_EXPR:
10730 : 163 : {
10731 : 163 : tree _q40 = TREE_OPERAND (_q30, 0);
10732 : 163 : tree _q41 = TREE_OPERAND (_q30, 1);
10733 : 163 : if (integer_onep (_q40))
10734 : : {
10735 : 163 : if (integer_minus_onep (_q31))
10736 : : {
10737 : 163 : {
10738 : 163 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q41 };
10739 : 163 : if (TYPE_UNSIGNED (type)
10740 : : )
10741 : : {
10742 : 163 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1812;
10743 : 163 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1812;
10744 : 163 : {
10745 : 163 : tree res_op0;
10746 : 163 : res_op0 = captures[0];
10747 : 163 : tree res_op1;
10748 : 163 : {
10749 : 163 : tree _o1[1], _r1;
10750 : 163 : {
10751 : 163 : tree _o2[2], _r2;
10752 : 163 : _o2[0] = build_all_ones_cst (type);
10753 : 163 : _o2[1] = captures[3];
10754 : 163 : _r2 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
10755 : 163 : _o1[0] = _r2;
10756 : : }
10757 : 163 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
10758 : 163 : res_op1 = _r1;
10759 : : }
10760 : 163 : tree _r;
10761 : 163 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
10762 : 163 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1039, __FILE__, __LINE__, true);
10763 : 163 : return _r;
10764 : : }
10765 : 0 : next_after_fail1812:;
10766 : : }
10767 : : }
10768 : : }
10769 : : }
10770 : : break;
10771 : : }
10772 : : default:;
10773 : : }
10774 : : break;
10775 : : }
10776 : 6710510 : default:;
10777 : : }
10778 : 6710510 : switch (TREE_CODE (_p0))
10779 : : {
10780 : 314036 : case PLUS_EXPR:
10781 : 314036 : {
10782 : 314036 : tree _q20 = TREE_OPERAND (_p0, 0);
10783 : 314036 : tree _q21 = TREE_OPERAND (_p0, 1);
10784 : 314036 : switch (TREE_CODE (_q20))
10785 : : {
10786 : 169 : case LSHIFT_EXPR:
10787 : 169 : {
10788 : 169 : tree _q30 = TREE_OPERAND (_q20, 0);
10789 : 169 : tree _q31 = TREE_OPERAND (_q20, 1);
10790 : 169 : if (integer_onep (_q30))
10791 : : {
10792 : 162 : if (integer_minus_onep (_q21))
10793 : : {
10794 : 162 : {
10795 : 162 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _p0, _q20, _q31 };
10796 : 162 : if (TYPE_UNSIGNED (type)
10797 : : )
10798 : : {
10799 : 134 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1813;
10800 : 134 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1813;
10801 : 134 : {
10802 : 134 : tree res_op0;
10803 : 134 : res_op0 = captures[0];
10804 : 134 : tree res_op1;
10805 : 134 : {
10806 : 134 : tree _o1[1], _r1;
10807 : 134 : {
10808 : 134 : tree _o2[2], _r2;
10809 : 134 : _o2[0] = build_all_ones_cst (type);
10810 : 134 : _o2[1] = captures[3];
10811 : 134 : _r2 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
10812 : 134 : _o1[0] = _r2;
10813 : : }
10814 : 134 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
10815 : 134 : res_op1 = _r1;
10816 : : }
10817 : 134 : tree _r;
10818 : 134 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
10819 : 134 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1039, __FILE__, __LINE__, true);
10820 : 134 : return _r;
10821 : : }
10822 : 28 : next_after_fail1813:;
10823 : : }
10824 : : }
10825 : : }
10826 : : }
10827 : : break;
10828 : : }
10829 : : default:;
10830 : : }
10831 : : break;
10832 : : }
10833 : 1850 : case EQ_EXPR:
10834 : 1850 : {
10835 : 1850 : tree _q20 = TREE_OPERAND (_p0, 0);
10836 : 1850 : tree _q21 = TREE_OPERAND (_p0, 1);
10837 : 1850 : if (integer_zerop (_q21))
10838 : : {
10839 : 751 : switch (TREE_CODE (_p1))
10840 : : {
10841 : 67 : case EQ_EXPR:
10842 : 67 : {
10843 : 67 : tree _q50 = TREE_OPERAND (_p1, 0);
10844 : 67 : tree _q51 = TREE_OPERAND (_p1, 1);
10845 : 67 : if (integer_zerop (_q51))
10846 : : {
10847 : 29 : {
10848 : 29 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
10849 : 29 : tree res = generic_simplify_67 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, EQ_EXPR);
10850 : 29 : if (res) return res;
10851 : : }
10852 : : }
10853 : : break;
10854 : : }
10855 : : default:;
10856 : : }
10857 : : }
10858 : 1821 : if (integer_all_onesp (_q21))
10859 : : {
10860 : 0 : switch (TREE_CODE (_p1))
10861 : : {
10862 : 0 : case EQ_EXPR:
10863 : 0 : {
10864 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
10865 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
10866 : 0 : if (integer_all_onesp (_q51))
10867 : : {
10868 : 0 : {
10869 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
10870 : 0 : tree res = generic_simplify_68 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, EQ_EXPR);
10871 : 0 : if (res) return res;
10872 : : }
10873 : : }
10874 : : break;
10875 : : }
10876 : : default:;
10877 : : }
10878 : : }
10879 : 1821 : switch (TREE_CODE (_p1))
10880 : : {
10881 : 8 : case BIT_IOR_EXPR:
10882 : 8 : {
10883 : 8 : tree _q50 = TREE_OPERAND (_p1, 0);
10884 : 8 : tree _q51 = TREE_OPERAND (_p1, 1);
10885 : 8 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
10886 : : {
10887 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10888 : : {
10889 : 0 : {
10890 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10891 : 0 : tree res = generic_simplify_439 (loc, type, _p0, _p1, captures);
10892 : 0 : if (res) return res;
10893 : : }
10894 : : }
10895 : : }
10896 : 8 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
10897 : : {
10898 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
10899 : : {
10900 : 0 : {
10901 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
10902 : 0 : tree res = generic_simplify_439 (loc, type, _p0, _p1, captures);
10903 : 0 : if (res) return res;
10904 : : }
10905 : : }
10906 : : }
10907 : : break;
10908 : : }
10909 : 1821 : default:;
10910 : : }
10911 : 1821 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
10912 : : {
10913 : 12 : {
10914 : 12 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10915 : 12 : tree res = generic_simplify_440 (loc, type, _p0, _p1, captures);
10916 : 12 : if (res) return res;
10917 : : }
10918 : : }
10919 : 1821 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
10920 : : {
10921 : 8 : {
10922 : 8 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
10923 : 8 : tree res = generic_simplify_440 (loc, type, _p0, _p1, captures);
10924 : 8 : if (res) return res;
10925 : : }
10926 : : }
10927 : : break;
10928 : : }
10929 : 1613 : case BIT_IOR_EXPR:
10930 : 1613 : {
10931 : 1613 : tree _q20 = TREE_OPERAND (_p0, 0);
10932 : 1613 : tree _q21 = TREE_OPERAND (_p0, 1);
10933 : 1613 : switch (TREE_CODE (_p1))
10934 : : {
10935 : 169 : case BIT_NOT_EXPR:
10936 : 169 : {
10937 : 169 : tree _q50 = TREE_OPERAND (_p1, 0);
10938 : 169 : switch (TREE_CODE (_q50))
10939 : : {
10940 : 6 : case BIT_XOR_EXPR:
10941 : 6 : {
10942 : 6 : tree _q60 = TREE_OPERAND (_q50, 0);
10943 : 6 : tree _q61 = TREE_OPERAND (_q50, 1);
10944 : 6 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
10945 : : {
10946 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
10947 : : {
10948 : 0 : {
10949 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10950 : 0 : tree res = generic_simplify_441 (loc, type, _p0, _p1, captures);
10951 : 0 : if (res) return res;
10952 : : }
10953 : : }
10954 : : }
10955 : 6 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
10956 : : {
10957 : 0 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
10958 : : {
10959 : 0 : {
10960 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10961 : 0 : tree res = generic_simplify_441 (loc, type, _p0, _p1, captures);
10962 : 0 : if (res) return res;
10963 : : }
10964 : : }
10965 : : }
10966 : : break;
10967 : : }
10968 : : default:;
10969 : : }
10970 : : break;
10971 : : }
10972 : 24 : case EQ_EXPR:
10973 : 24 : {
10974 : 24 : tree _q50 = TREE_OPERAND (_p1, 0);
10975 : 24 : tree _q51 = TREE_OPERAND (_p1, 1);
10976 : 24 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
10977 : : {
10978 : 8 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10979 : : {
10980 : 8 : {
10981 : 8 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10982 : 8 : tree res = generic_simplify_439 (loc, type, _p0, _p1, captures);
10983 : 8 : if (res) return res;
10984 : : }
10985 : : }
10986 : : }
10987 : 24 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
10988 : : {
10989 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
10990 : : {
10991 : 0 : {
10992 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10993 : 0 : tree res = generic_simplify_439 (loc, type, _p0, _p1, captures);
10994 : 0 : if (res) return res;
10995 : : }
10996 : : }
10997 : : }
10998 : : break;
10999 : : }
11000 : 1613 : default:;
11001 : : }
11002 : 1613 : {
11003 : 1613 : tree _p1_pops[1];
11004 : 1613 : if (tree_nop_convert (_p1, _p1_pops))
11005 : : {
11006 : 139 : tree _q50 = _p1_pops[0];
11007 : 139 : switch (TREE_CODE (_q50))
11008 : : {
11009 : 0 : case EQ_EXPR:
11010 : 0 : {
11011 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
11012 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
11013 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
11014 : : {
11015 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
11016 : : {
11017 : 0 : {
11018 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11019 : 0 : tree res = generic_simplify_439 (loc, type, _p0, _p1, captures);
11020 : 0 : if (res) return res;
11021 : : }
11022 : : }
11023 : : }
11024 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
11025 : : {
11026 : 0 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
11027 : : {
11028 : 0 : {
11029 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11030 : 0 : tree res = generic_simplify_439 (loc, type, _p0, _p1, captures);
11031 : 0 : if (res) return res;
11032 : : }
11033 : : }
11034 : : }
11035 : : break;
11036 : : }
11037 : : default:;
11038 : : }
11039 : : }
11040 : : }
11041 : 1613 : break;
11042 : : }
11043 : 47892 : case BIT_NOT_EXPR:
11044 : 47892 : {
11045 : 47892 : tree _q20 = TREE_OPERAND (_p0, 0);
11046 : 47892 : switch (TREE_CODE (_q20))
11047 : : {
11048 : 140 : case BIT_XOR_EXPR:
11049 : 140 : {
11050 : 140 : tree _q30 = TREE_OPERAND (_q20, 0);
11051 : 140 : tree _q31 = TREE_OPERAND (_q20, 1);
11052 : 140 : switch (TREE_CODE (_p1))
11053 : : {
11054 : 48 : case BIT_IOR_EXPR:
11055 : 48 : {
11056 : 48 : tree _q60 = TREE_OPERAND (_p1, 0);
11057 : 48 : tree _q61 = TREE_OPERAND (_p1, 1);
11058 : 48 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
11059 : : {
11060 : 6 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
11061 : : {
11062 : 0 : {
11063 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
11064 : 0 : tree res = generic_simplify_441 (loc, type, _p0, _p1, captures);
11065 : 0 : if (res) return res;
11066 : : }
11067 : : }
11068 : : }
11069 : 48 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q31, 0) && types_match (_q60, _q31)))
11070 : : {
11071 : 3 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
11072 : : {
11073 : 0 : {
11074 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q31, _q30 };
11075 : 0 : tree res = generic_simplify_441 (loc, type, _p0, _p1, captures);
11076 : 0 : if (res) return res;
11077 : : }
11078 : : }
11079 : : }
11080 : : break;
11081 : : }
11082 : 140 : default:;
11083 : : }
11084 : 140 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
11085 : : {
11086 : 1 : {
11087 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
11088 : 1 : tree res = generic_simplify_442 (loc, type, _p0, _p1, captures);
11089 : 1 : if (res) return res;
11090 : : }
11091 : : }
11092 : 139 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
11093 : : {
11094 : 0 : {
11095 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q31, _q30 };
11096 : 0 : tree res = generic_simplify_442 (loc, type, _p0, _p1, captures);
11097 : 0 : if (res) return res;
11098 : : }
11099 : : }
11100 : : break;
11101 : : }
11102 : : default:;
11103 : : }
11104 : : break;
11105 : : }
11106 : 6710346 : default:;
11107 : : }
11108 : 6710346 : {
11109 : 6710346 : tree _p0_pops[1];
11110 : 6710346 : if (tree_nop_convert (_p0, _p0_pops))
11111 : : {
11112 : 1311850 : tree _q20 = _p0_pops[0];
11113 : 1311850 : switch (TREE_CODE (_q20))
11114 : : {
11115 : 0 : case EQ_EXPR:
11116 : 0 : {
11117 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
11118 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
11119 : 0 : switch (TREE_CODE (_p1))
11120 : : {
11121 : 0 : case BIT_IOR_EXPR:
11122 : 0 : {
11123 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
11124 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
11125 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
11126 : : {
11127 : 0 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
11128 : : {
11129 : 0 : {
11130 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
11131 : 0 : tree res = generic_simplify_439 (loc, type, _p0, _p1, captures);
11132 : 0 : if (res) return res;
11133 : : }
11134 : : }
11135 : : }
11136 : 0 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q31, 0) && types_match (_q60, _q31)))
11137 : : {
11138 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
11139 : : {
11140 : 0 : {
11141 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q31, _q30 };
11142 : 0 : tree res = generic_simplify_439 (loc, type, _p0, _p1, captures);
11143 : 0 : if (res) return res;
11144 : : }
11145 : : }
11146 : : }
11147 : : break;
11148 : : }
11149 : 0 : default:;
11150 : : }
11151 : 0 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
11152 : : {
11153 : 0 : {
11154 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
11155 : 0 : tree res = generic_simplify_440 (loc, type, _p0, _p1, captures);
11156 : 0 : if (res) return res;
11157 : : }
11158 : : }
11159 : 0 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
11160 : : {
11161 : 0 : {
11162 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q31, _q30 };
11163 : 0 : tree res = generic_simplify_440 (loc, type, _p0, _p1, captures);
11164 : 0 : if (res) return res;
11165 : : }
11166 : : }
11167 : : break;
11168 : : }
11169 : : default:;
11170 : : }
11171 : : }
11172 : : }
11173 : 6710346 : switch (TREE_CODE (_p1))
11174 : : {
11175 : 33716 : case BIT_NOT_EXPR:
11176 : 33716 : {
11177 : 33716 : tree _q30 = TREE_OPERAND (_p1, 0);
11178 : 33716 : switch (TREE_CODE (_q30))
11179 : : {
11180 : 6 : case BIT_XOR_EXPR:
11181 : 6 : {
11182 : 6 : tree _q40 = TREE_OPERAND (_q30, 0);
11183 : 6 : tree _q41 = TREE_OPERAND (_q30, 1);
11184 : 6 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
11185 : : {
11186 : 0 : {
11187 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
11188 : 0 : tree res = generic_simplify_442 (loc, type, _p0, _p1, captures);
11189 : 0 : if (res) return res;
11190 : : }
11191 : : }
11192 : 6 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
11193 : : {
11194 : 0 : {
11195 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q40 };
11196 : 0 : tree res = generic_simplify_442 (loc, type, _p0, _p1, captures);
11197 : 0 : if (res) return res;
11198 : : }
11199 : : }
11200 : : break;
11201 : : }
11202 : : default:;
11203 : : }
11204 : : break;
11205 : : }
11206 : 6710346 : default:;
11207 : : }
11208 : 6710346 : switch (TREE_CODE (_p0))
11209 : : {
11210 : 313902 : case PLUS_EXPR:
11211 : 313902 : {
11212 : 313902 : tree _q20 = TREE_OPERAND (_p0, 0);
11213 : 313902 : tree _q21 = TREE_OPERAND (_p0, 1);
11214 : 313902 : if (integer_minus_onep (_q21))
11215 : : {
11216 : 118696 : switch (TREE_CODE (_p1))
11217 : : {
11218 : 11067 : case NEGATE_EXPR:
11219 : 11067 : {
11220 : 11067 : tree _q50 = TREE_OPERAND (_p1, 0);
11221 : 11067 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
11222 : : {
11223 : 9 : {
11224 : 9 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
11225 : 9 : tree res = generic_simplify_75 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
11226 : 9 : if (res) return res;
11227 : : }
11228 : : }
11229 : : break;
11230 : : }
11231 : : default:;
11232 : : }
11233 : : }
11234 : : break;
11235 : : }
11236 : 47849 : case NEGATE_EXPR:
11237 : 47849 : {
11238 : 47849 : tree _q20 = TREE_OPERAND (_p0, 0);
11239 : 47849 : switch (TREE_CODE (_p1))
11240 : : {
11241 : 26 : case PLUS_EXPR:
11242 : 26 : {
11243 : 26 : tree _q40 = TREE_OPERAND (_p1, 0);
11244 : 26 : tree _q41 = TREE_OPERAND (_p1, 1);
11245 : 26 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
11246 : : {
11247 : 0 : if (integer_minus_onep (_q41))
11248 : : {
11249 : 0 : {
11250 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
11251 : 0 : tree res = generic_simplify_76 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
11252 : 0 : if (res) return res;
11253 : : }
11254 : : }
11255 : : }
11256 : : break;
11257 : : }
11258 : 0 : case MINUS_EXPR:
11259 : 0 : {
11260 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
11261 : 0 : tree _q41 = TREE_OPERAND (_p1, 1);
11262 : 0 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
11263 : : {
11264 : 0 : if (integer_onep (_q41))
11265 : : {
11266 : 0 : {
11267 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
11268 : 0 : tree res = generic_simplify_77 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
11269 : 0 : if (res) return res;
11270 : : }
11271 : : }
11272 : : }
11273 : : break;
11274 : : }
11275 : : default:;
11276 : : }
11277 : : break;
11278 : : }
11279 : 719382 : case MINUS_EXPR:
11280 : 719382 : {
11281 : 719382 : tree _q20 = TREE_OPERAND (_p0, 0);
11282 : 719382 : tree _q21 = TREE_OPERAND (_p0, 1);
11283 : 719382 : if (integer_onep (_q21))
11284 : : {
11285 : 1536 : switch (TREE_CODE (_p1))
11286 : : {
11287 : 0 : case NEGATE_EXPR:
11288 : 0 : {
11289 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
11290 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
11291 : : {
11292 : 0 : {
11293 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
11294 : 0 : tree res = generic_simplify_78 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
11295 : 0 : if (res) return res;
11296 : : }
11297 : : }
11298 : : break;
11299 : : }
11300 : : default:;
11301 : : }
11302 : : }
11303 : : break;
11304 : : }
11305 : 6710337 : default:;
11306 : : }
11307 : 6710337 : switch (TREE_CODE (_p1))
11308 : : {
11309 : 1894 : case EQ_EXPR:
11310 : 1894 : {
11311 : 1894 : tree _q30 = TREE_OPERAND (_p1, 0);
11312 : 1894 : tree _q31 = TREE_OPERAND (_p1, 1);
11313 : 1894 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
11314 : : {
11315 : 1 : {
11316 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
11317 : 1 : tree res = generic_simplify_440 (loc, type, _p0, _p1, captures);
11318 : 1 : if (res) return res;
11319 : : }
11320 : : }
11321 : 1894 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
11322 : : {
11323 : 0 : {
11324 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
11325 : 0 : tree res = generic_simplify_440 (loc, type, _p0, _p1, captures);
11326 : 0 : if (res) return res;
11327 : : }
11328 : : }
11329 : : break;
11330 : : }
11331 : 257 : case BIT_XOR_EXPR:
11332 : 257 : {
11333 : 257 : tree _q30 = TREE_OPERAND (_p1, 0);
11334 : 257 : tree _q31 = TREE_OPERAND (_p1, 1);
11335 : 257 : {
11336 : 257 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q31 };
11337 : 257 : tree res = generic_simplify_443 (loc, type, _p0, _p1, captures);
11338 : 257 : if (res) return res;
11339 : : }
11340 : 256 : {
11341 : 256 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q31, _q30 };
11342 : 256 : tree res = generic_simplify_443 (loc, type, _p0, _p1, captures);
11343 : 256 : if (res) return res;
11344 : : }
11345 : 256 : break;
11346 : : }
11347 : 6710336 : default:;
11348 : : }
11349 : 6710336 : {
11350 : 6710336 : tree _p1_pops[1];
11351 : 6710336 : if (tree_nop_convert (_p1, _p1_pops))
11352 : : {
11353 : 917627 : tree _q30 = _p1_pops[0];
11354 : 917627 : switch (TREE_CODE (_q30))
11355 : : {
11356 : 0 : case EQ_EXPR:
11357 : 0 : {
11358 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
11359 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
11360 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
11361 : : {
11362 : 0 : {
11363 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
11364 : 0 : tree res = generic_simplify_440 (loc, type, _p0, _p1, captures);
11365 : 0 : if (res) return res;
11366 : : }
11367 : : }
11368 : 0 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
11369 : : {
11370 : 0 : {
11371 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q40 };
11372 : 0 : tree res = generic_simplify_440 (loc, type, _p0, _p1, captures);
11373 : 0 : if (res) return res;
11374 : : }
11375 : : }
11376 : : break;
11377 : : }
11378 : : default:;
11379 : : }
11380 : : }
11381 : : }
11382 : 6710336 : switch (TREE_CODE (_p0))
11383 : : {
11384 : 21066 : case BIT_XOR_EXPR:
11385 : 21066 : {
11386 : 21066 : tree _q20 = TREE_OPERAND (_p0, 0);
11387 : 21066 : tree _q21 = TREE_OPERAND (_p0, 1);
11388 : 21066 : {
11389 : 21066 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q21 };
11390 : 21066 : tree res = generic_simplify_443 (loc, type, _p0, _p1, captures);
11391 : 21066 : if (res) return res;
11392 : : }
11393 : 21066 : {
11394 : 21066 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q21, _q20 };
11395 : 21066 : tree res = generic_simplify_443 (loc, type, _p0, _p1, captures);
11396 : 21066 : if (res) return res;
11397 : : }
11398 : 21066 : switch (TREE_CODE (_p1))
11399 : : {
11400 : 152 : case BIT_XOR_EXPR:
11401 : 152 : {
11402 : 152 : tree _q50 = TREE_OPERAND (_p1, 0);
11403 : 152 : tree _q51 = TREE_OPERAND (_p1, 1);
11404 : 152 : switch (TREE_CODE (_q50))
11405 : : {
11406 : 3 : case BIT_XOR_EXPR:
11407 : 3 : {
11408 : 3 : tree _q60 = TREE_OPERAND (_q50, 0);
11409 : 3 : tree _q61 = TREE_OPERAND (_q50, 1);
11410 : 3 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
11411 : : {
11412 : 2 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
11413 : : {
11414 : 1 : {
11415 : 1 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q61 };
11416 : 1 : tree res = generic_simplify_444 (loc, type, _p0, _p1, captures);
11417 : 1 : if (res) return res;
11418 : : }
11419 : : }
11420 : : }
11421 : 2 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
11422 : : {
11423 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
11424 : : {
11425 : 0 : {
11426 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q60 };
11427 : 0 : tree res = generic_simplify_444 (loc, type, _p0, _p1, captures);
11428 : 0 : if (res) return res;
11429 : : }
11430 : : }
11431 : : }
11432 : 2 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
11433 : : {
11434 : 1 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
11435 : : {
11436 : 1 : {
11437 : 1 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q61 };
11438 : 1 : tree res = generic_simplify_444 (loc, type, _p0, _p1, captures);
11439 : 1 : if (res) return res;
11440 : : }
11441 : : }
11442 : : }
11443 : 1 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
11444 : : {
11445 : 1 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
11446 : : {
11447 : 0 : {
11448 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q60 };
11449 : 0 : tree res = generic_simplify_444 (loc, type, _p0, _p1, captures);
11450 : 0 : if (res) return res;
11451 : : }
11452 : : }
11453 : : }
11454 : : break;
11455 : : }
11456 : 150 : default:;
11457 : : }
11458 : 150 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
11459 : : {
11460 : 47 : switch (TREE_CODE (_q51))
11461 : : {
11462 : 0 : case BIT_XOR_EXPR:
11463 : 0 : {
11464 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
11465 : 0 : tree _q71 = TREE_OPERAND (_q51, 1);
11466 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
11467 : : {
11468 : 0 : {
11469 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q71 };
11470 : 0 : tree res = generic_simplify_444 (loc, type, _p0, _p1, captures);
11471 : 0 : if (res) return res;
11472 : : }
11473 : : }
11474 : 0 : if ((_q71 == _q21 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q21, 0) && types_match (_q71, _q21)))
11475 : : {
11476 : 0 : {
11477 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q70 };
11478 : 0 : tree res = generic_simplify_444 (loc, type, _p0, _p1, captures);
11479 : 0 : if (res) return res;
11480 : : }
11481 : : }
11482 : : break;
11483 : : }
11484 : : default:;
11485 : : }
11486 : : }
11487 : 150 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
11488 : : {
11489 : 0 : switch (TREE_CODE (_q51))
11490 : : {
11491 : 0 : case BIT_XOR_EXPR:
11492 : 0 : {
11493 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
11494 : 0 : tree _q71 = TREE_OPERAND (_q51, 1);
11495 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
11496 : : {
11497 : 0 : {
11498 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q71 };
11499 : 0 : tree res = generic_simplify_444 (loc, type, _p0, _p1, captures);
11500 : 0 : if (res) return res;
11501 : : }
11502 : : }
11503 : 0 : if ((_q71 == _q20 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q20, 0) && types_match (_q71, _q20)))
11504 : : {
11505 : 0 : {
11506 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q70 };
11507 : 0 : tree res = generic_simplify_444 (loc, type, _p0, _p1, captures);
11508 : 0 : if (res) return res;
11509 : : }
11510 : : }
11511 : : break;
11512 : : }
11513 : : default:;
11514 : : }
11515 : : }
11516 : : break;
11517 : : }
11518 : 21064 : default:;
11519 : : }
11520 : 21064 : switch (TREE_CODE (_q20))
11521 : : {
11522 : 11 : case BIT_XOR_EXPR:
11523 : 11 : {
11524 : 11 : tree _q30 = TREE_OPERAND (_q20, 0);
11525 : 11 : tree _q31 = TREE_OPERAND (_q20, 1);
11526 : 11 : switch (TREE_CODE (_p1))
11527 : : {
11528 : 0 : case BIT_XOR_EXPR:
11529 : 0 : {
11530 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
11531 : 0 : tree _q71 = TREE_OPERAND (_p1, 1);
11532 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
11533 : : {
11534 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
11535 : : {
11536 : 0 : {
11537 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q30, _p0, _q20, _q31 };
11538 : 0 : tree res = generic_simplify_445 (loc, type, _p0, _p1, captures);
11539 : 0 : if (res) return res;
11540 : : }
11541 : : }
11542 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
11543 : : {
11544 : 0 : {
11545 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q31, _p0, _q20, _q30 };
11546 : 0 : tree res = generic_simplify_445 (loc, type, _p0, _p1, captures);
11547 : 0 : if (res) return res;
11548 : : }
11549 : : }
11550 : : }
11551 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
11552 : : {
11553 : 0 : if ((_q71 == _q21 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q21, 0) && types_match (_q71, _q21)))
11554 : : {
11555 : 0 : {
11556 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q30, _p0, _q20, _q31 };
11557 : 0 : tree res = generic_simplify_445 (loc, type, _p0, _p1, captures);
11558 : 0 : if (res) return res;
11559 : : }
11560 : : }
11561 : : }
11562 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
11563 : : {
11564 : 0 : if ((_q71 == _q21 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q21, 0) && types_match (_q71, _q21)))
11565 : : {
11566 : 0 : {
11567 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q31, _p0, _q20, _q30 };
11568 : 0 : tree res = generic_simplify_445 (loc, type, _p0, _p1, captures);
11569 : 0 : if (res) return res;
11570 : : }
11571 : : }
11572 : : }
11573 : : break;
11574 : : }
11575 : : default:;
11576 : : }
11577 : : break;
11578 : : }
11579 : 21064 : default:;
11580 : : }
11581 : 21064 : switch (TREE_CODE (_q21))
11582 : : {
11583 : 0 : case BIT_XOR_EXPR:
11584 : 0 : {
11585 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
11586 : 0 : tree _q41 = TREE_OPERAND (_q21, 1);
11587 : 0 : switch (TREE_CODE (_p1))
11588 : : {
11589 : 0 : case BIT_XOR_EXPR:
11590 : 0 : {
11591 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
11592 : 0 : tree _q71 = TREE_OPERAND (_p1, 1);
11593 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
11594 : : {
11595 : 0 : if ((_q71 == _q40 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q40, 0) && types_match (_q71, _q40)))
11596 : : {
11597 : 0 : {
11598 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q40, _p0, _q21, _q41 };
11599 : 0 : tree res = generic_simplify_445 (loc, type, _p0, _p1, captures);
11600 : 0 : if (res) return res;
11601 : : }
11602 : : }
11603 : 0 : if ((_q71 == _q41 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q41, 0) && types_match (_q71, _q41)))
11604 : : {
11605 : 0 : {
11606 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q41, _p0, _q21, _q40 };
11607 : 0 : tree res = generic_simplify_445 (loc, type, _p0, _p1, captures);
11608 : 0 : if (res) return res;
11609 : : }
11610 : : }
11611 : : }
11612 : 0 : if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
11613 : : {
11614 : 0 : if ((_q71 == _q20 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q20, 0) && types_match (_q71, _q20)))
11615 : : {
11616 : 0 : {
11617 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q40, _p0, _q21, _q41 };
11618 : 0 : tree res = generic_simplify_445 (loc, type, _p0, _p1, captures);
11619 : 0 : if (res) return res;
11620 : : }
11621 : : }
11622 : : }
11623 : 0 : if ((_q70 == _q41 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q41, 0) && types_match (_q70, _q41)))
11624 : : {
11625 : 0 : if ((_q71 == _q20 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q20, 0) && types_match (_q71, _q20)))
11626 : : {
11627 : 0 : {
11628 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q41, _p0, _q21, _q40 };
11629 : 0 : tree res = generic_simplify_445 (loc, type, _p0, _p1, captures);
11630 : 0 : if (res) return res;
11631 : : }
11632 : : }
11633 : : }
11634 : : break;
11635 : : }
11636 : : default:;
11637 : : }
11638 : : break;
11639 : : }
11640 : : default:;
11641 : : }
11642 : : break;
11643 : : }
11644 : 47890 : case BIT_NOT_EXPR:
11645 : 47890 : {
11646 : 47890 : tree _q20 = TREE_OPERAND (_p0, 0);
11647 : 47890 : switch (TREE_CODE (_q20))
11648 : : {
11649 : 211 : case SSA_NAME:
11650 : 211 : {
11651 : 211 : switch (TREE_CODE (_p1))
11652 : : {
11653 : 211 : case INTEGER_CST:
11654 : 211 : {
11655 : 211 : {
11656 : 211 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
11657 : 422 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
11658 : 633 : && wi::bit_and_not (get_nonzero_bits (captures[0]), wi::to_wide (captures[1])) == 0
11659 : : )
11660 : : {
11661 : 27 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1814;
11662 : 27 : {
11663 : 27 : tree res_op0;
11664 : 27 : res_op0 = captures[0];
11665 : 27 : tree res_op1;
11666 : 27 : res_op1 = captures[1];
11667 : 27 : tree _r;
11668 : 27 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
11669 : 27 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1040, __FILE__, __LINE__, true);
11670 : 27 : return _r;
11671 : : }
11672 : 0 : next_after_fail1814:;
11673 : : }
11674 : : }
11675 : 184 : break;
11676 : : }
11677 : : default:;
11678 : : }
11679 : : break;
11680 : : }
11681 : : default:;
11682 : : }
11683 : : break;
11684 : : }
11685 : 313893 : case PLUS_EXPR:
11686 : 313893 : {
11687 : 313893 : tree _q20 = TREE_OPERAND (_p0, 0);
11688 : 313893 : tree _q21 = TREE_OPERAND (_p0, 1);
11689 : 313893 : switch (TREE_CODE (_q20))
11690 : : {
11691 : 22 : case BIT_AND_EXPR:
11692 : 22 : {
11693 : 22 : tree _q30 = TREE_OPERAND (_q20, 0);
11694 : 22 : tree _q31 = TREE_OPERAND (_q20, 1);
11695 : 22 : switch (TREE_CODE (_q31))
11696 : : {
11697 : 18 : case INTEGER_CST:
11698 : 18 : {
11699 : 18 : switch (TREE_CODE (_p1))
11700 : : {
11701 : 18 : case INTEGER_CST:
11702 : 18 : {
11703 : 18 : {
11704 : 18 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
11705 : 18 : tree res = generic_simplify_446 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, PLUS_EXPR);
11706 : 18 : if (res) return res;
11707 : : }
11708 : 12 : break;
11709 : : }
11710 : : default:;
11711 : : }
11712 : : break;
11713 : : }
11714 : : default:;
11715 : : }
11716 : : break;
11717 : : }
11718 : 64 : case BIT_IOR_EXPR:
11719 : 64 : {
11720 : 64 : tree _q30 = TREE_OPERAND (_q20, 0);
11721 : 64 : tree _q31 = TREE_OPERAND (_q20, 1);
11722 : 64 : switch (TREE_CODE (_q31))
11723 : : {
11724 : 52 : case INTEGER_CST:
11725 : 52 : {
11726 : 52 : switch (TREE_CODE (_p1))
11727 : : {
11728 : 52 : case INTEGER_CST:
11729 : 52 : {
11730 : 52 : {
11731 : 52 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
11732 : 52 : tree res = generic_simplify_446 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, PLUS_EXPR);
11733 : 52 : if (res) return res;
11734 : : }
11735 : 48 : break;
11736 : : }
11737 : : default:;
11738 : : }
11739 : : break;
11740 : : }
11741 : : default:;
11742 : : }
11743 : : break;
11744 : : }
11745 : 24 : case BIT_XOR_EXPR:
11746 : 24 : {
11747 : 24 : tree _q30 = TREE_OPERAND (_q20, 0);
11748 : 24 : tree _q31 = TREE_OPERAND (_q20, 1);
11749 : 24 : switch (TREE_CODE (_q31))
11750 : : {
11751 : 4 : case INTEGER_CST:
11752 : 4 : {
11753 : 4 : switch (TREE_CODE (_p1))
11754 : : {
11755 : 4 : case INTEGER_CST:
11756 : 4 : {
11757 : 4 : {
11758 : 4 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
11759 : 4 : tree res = generic_simplify_446 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, PLUS_EXPR);
11760 : 4 : if (res) return res;
11761 : : }
11762 : 0 : break;
11763 : : }
11764 : : default:;
11765 : : }
11766 : : break;
11767 : : }
11768 : : default:;
11769 : : }
11770 : : break;
11771 : : }
11772 : 313879 : default:;
11773 : : }
11774 : 313879 : switch (TREE_CODE (_q21))
11775 : : {
11776 : 0 : case BIT_AND_EXPR:
11777 : 0 : {
11778 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
11779 : 0 : tree _q41 = TREE_OPERAND (_q21, 1);
11780 : 0 : switch (TREE_CODE (_q41))
11781 : : {
11782 : 0 : case INTEGER_CST:
11783 : 0 : {
11784 : 0 : switch (TREE_CODE (_p1))
11785 : : {
11786 : 0 : case INTEGER_CST:
11787 : 0 : {
11788 : 0 : {
11789 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q41, _p1 };
11790 : 0 : tree res = generic_simplify_447 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, PLUS_EXPR);
11791 : 0 : if (res) return res;
11792 : : }
11793 : 0 : break;
11794 : : }
11795 : : default:;
11796 : : }
11797 : : break;
11798 : : }
11799 : : default:;
11800 : : }
11801 : : break;
11802 : : }
11803 : 0 : case BIT_IOR_EXPR:
11804 : 0 : {
11805 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
11806 : 0 : tree _q41 = TREE_OPERAND (_q21, 1);
11807 : 0 : switch (TREE_CODE (_q41))
11808 : : {
11809 : 0 : case INTEGER_CST:
11810 : 0 : {
11811 : 0 : switch (TREE_CODE (_p1))
11812 : : {
11813 : 0 : case INTEGER_CST:
11814 : 0 : {
11815 : 0 : {
11816 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q41, _p1 };
11817 : 0 : tree res = generic_simplify_447 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, PLUS_EXPR);
11818 : 0 : if (res) return res;
11819 : : }
11820 : 0 : break;
11821 : : }
11822 : : default:;
11823 : : }
11824 : : break;
11825 : : }
11826 : : default:;
11827 : : }
11828 : : break;
11829 : : }
11830 : 0 : case BIT_XOR_EXPR:
11831 : 0 : {
11832 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
11833 : 0 : tree _q41 = TREE_OPERAND (_q21, 1);
11834 : 0 : switch (TREE_CODE (_q41))
11835 : : {
11836 : 0 : case INTEGER_CST:
11837 : 0 : {
11838 : 0 : switch (TREE_CODE (_p1))
11839 : : {
11840 : 0 : case INTEGER_CST:
11841 : 0 : {
11842 : 0 : {
11843 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q41, _p1 };
11844 : 0 : tree res = generic_simplify_447 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, PLUS_EXPR);
11845 : 0 : if (res) return res;
11846 : : }
11847 : 0 : break;
11848 : : }
11849 : : default:;
11850 : : }
11851 : : break;
11852 : : }
11853 : : default:;
11854 : : }
11855 : : break;
11856 : : }
11857 : 313879 : default:;
11858 : : }
11859 : 313879 : switch (TREE_CODE (_p1))
11860 : : {
11861 : 228150 : case INTEGER_CST:
11862 : 228150 : {
11863 : 228150 : {
11864 : 228150 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
11865 : 228150 : tree res = generic_simplify_448 (loc, type, _p0, _p1, captures, PLUS_EXPR);
11866 : 228150 : if (res) return res;
11867 : : }
11868 : 91650 : break;
11869 : : }
11870 : : default:;
11871 : : }
11872 : : break;
11873 : : }
11874 : 719382 : case MINUS_EXPR:
11875 : 719382 : {
11876 : 719382 : tree _q20 = TREE_OPERAND (_p0, 0);
11877 : 719382 : tree _q21 = TREE_OPERAND (_p0, 1);
11878 : 719382 : switch (TREE_CODE (_q20))
11879 : : {
11880 : 4 : case BIT_AND_EXPR:
11881 : 4 : {
11882 : 4 : tree _q30 = TREE_OPERAND (_q20, 0);
11883 : 4 : tree _q31 = TREE_OPERAND (_q20, 1);
11884 : 4 : switch (TREE_CODE (_q31))
11885 : : {
11886 : 2 : case INTEGER_CST:
11887 : 2 : {
11888 : 2 : switch (TREE_CODE (_p1))
11889 : : {
11890 : 2 : case INTEGER_CST:
11891 : 2 : {
11892 : 2 : {
11893 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
11894 : 2 : tree res = generic_simplify_446 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, MINUS_EXPR);
11895 : 2 : if (res) return res;
11896 : : }
11897 : 0 : break;
11898 : : }
11899 : : default:;
11900 : : }
11901 : : break;
11902 : : }
11903 : : default:;
11904 : : }
11905 : : break;
11906 : : }
11907 : 4 : case BIT_IOR_EXPR:
11908 : 4 : {
11909 : 4 : tree _q30 = TREE_OPERAND (_q20, 0);
11910 : 4 : tree _q31 = TREE_OPERAND (_q20, 1);
11911 : 4 : switch (TREE_CODE (_q31))
11912 : : {
11913 : 2 : case INTEGER_CST:
11914 : 2 : {
11915 : 2 : switch (TREE_CODE (_p1))
11916 : : {
11917 : 2 : case INTEGER_CST:
11918 : 2 : {
11919 : 2 : {
11920 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
11921 : 2 : tree res = generic_simplify_446 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, MINUS_EXPR);
11922 : 2 : if (res) return res;
11923 : : }
11924 : 0 : break;
11925 : : }
11926 : : default:;
11927 : : }
11928 : : break;
11929 : : }
11930 : : default:;
11931 : : }
11932 : : break;
11933 : : }
11934 : 4 : case BIT_XOR_EXPR:
11935 : 4 : {
11936 : 4 : tree _q30 = TREE_OPERAND (_q20, 0);
11937 : 4 : tree _q31 = TREE_OPERAND (_q20, 1);
11938 : 4 : switch (TREE_CODE (_q31))
11939 : : {
11940 : 2 : case INTEGER_CST:
11941 : 2 : {
11942 : 2 : switch (TREE_CODE (_p1))
11943 : : {
11944 : 2 : case INTEGER_CST:
11945 : 2 : {
11946 : 2 : {
11947 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
11948 : 2 : tree res = generic_simplify_446 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, MINUS_EXPR);
11949 : 2 : if (res) return res;
11950 : : }
11951 : 0 : break;
11952 : : }
11953 : : default:;
11954 : : }
11955 : : break;
11956 : : }
11957 : : default:;
11958 : : }
11959 : : break;
11960 : : }
11961 : 719376 : default:;
11962 : : }
11963 : 719376 : switch (TREE_CODE (_q21))
11964 : : {
11965 : 337 : case BIT_AND_EXPR:
11966 : 337 : {
11967 : 337 : tree _q40 = TREE_OPERAND (_q21, 0);
11968 : 337 : tree _q41 = TREE_OPERAND (_q21, 1);
11969 : 337 : switch (TREE_CODE (_q41))
11970 : : {
11971 : 335 : case INTEGER_CST:
11972 : 335 : {
11973 : 335 : switch (TREE_CODE (_p1))
11974 : : {
11975 : 335 : case INTEGER_CST:
11976 : 335 : {
11977 : 335 : {
11978 : 335 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q41, _p1 };
11979 : 335 : tree res = generic_simplify_447 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, MINUS_EXPR);
11980 : 335 : if (res) return res;
11981 : : }
11982 : 1 : break;
11983 : : }
11984 : : default:;
11985 : : }
11986 : : break;
11987 : : }
11988 : : default:;
11989 : : }
11990 : : break;
11991 : : }
11992 : 4 : case BIT_IOR_EXPR:
11993 : 4 : {
11994 : 4 : tree _q40 = TREE_OPERAND (_q21, 0);
11995 : 4 : tree _q41 = TREE_OPERAND (_q21, 1);
11996 : 4 : switch (TREE_CODE (_q41))
11997 : : {
11998 : 2 : case INTEGER_CST:
11999 : 2 : {
12000 : 2 : switch (TREE_CODE (_p1))
12001 : : {
12002 : 2 : case INTEGER_CST:
12003 : 2 : {
12004 : 2 : {
12005 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q41, _p1 };
12006 : 2 : tree res = generic_simplify_447 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, MINUS_EXPR);
12007 : 2 : if (res) return res;
12008 : : }
12009 : 0 : break;
12010 : : }
12011 : : default:;
12012 : : }
12013 : : break;
12014 : : }
12015 : : default:;
12016 : : }
12017 : : break;
12018 : : }
12019 : 4 : case BIT_XOR_EXPR:
12020 : 4 : {
12021 : 4 : tree _q40 = TREE_OPERAND (_q21, 0);
12022 : 4 : tree _q41 = TREE_OPERAND (_q21, 1);
12023 : 4 : switch (TREE_CODE (_q41))
12024 : : {
12025 : 2 : case INTEGER_CST:
12026 : 2 : {
12027 : 2 : switch (TREE_CODE (_p1))
12028 : : {
12029 : 2 : case INTEGER_CST:
12030 : 2 : {
12031 : 2 : {
12032 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q41, _p1 };
12033 : 2 : tree res = generic_simplify_447 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, MINUS_EXPR);
12034 : 2 : if (res) return res;
12035 : : }
12036 : 0 : break;
12037 : : }
12038 : : default:;
12039 : : }
12040 : : break;
12041 : : }
12042 : : default:;
12043 : : }
12044 : : break;
12045 : : }
12046 : 719038 : default:;
12047 : : }
12048 : 719038 : switch (TREE_CODE (_p1))
12049 : : {
12050 : 718836 : case INTEGER_CST:
12051 : 718836 : {
12052 : 718836 : {
12053 : 718836 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
12054 : 718836 : tree res = generic_simplify_448 (loc, type, _p0, _p1, captures, MINUS_EXPR);
12055 : 718836 : if (res) return res;
12056 : : }
12057 : 523977 : break;
12058 : : }
12059 : : default:;
12060 : : }
12061 : : break;
12062 : : }
12063 : 47849 : case NEGATE_EXPR:
12064 : 47849 : {
12065 : 47849 : tree _q20 = TREE_OPERAND (_p0, 0);
12066 : 47849 : switch (TREE_CODE (_q20))
12067 : : {
12068 : 25 : case BIT_AND_EXPR:
12069 : 25 : {
12070 : 25 : tree _q30 = TREE_OPERAND (_q20, 0);
12071 : 25 : tree _q31 = TREE_OPERAND (_q20, 1);
12072 : 25 : switch (TREE_CODE (_q31))
12073 : : {
12074 : 21 : case INTEGER_CST:
12075 : 21 : {
12076 : 21 : switch (TREE_CODE (_p1))
12077 : : {
12078 : 11 : case INTEGER_CST:
12079 : 11 : {
12080 : 11 : {
12081 : 11 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1 };
12082 : 11 : tree res = generic_simplify_449 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12083 : 11 : if (res) return res;
12084 : : }
12085 : 8 : break;
12086 : : }
12087 : : default:;
12088 : : }
12089 : : break;
12090 : : }
12091 : : default:;
12092 : : }
12093 : : break;
12094 : : }
12095 : 44 : case BIT_IOR_EXPR:
12096 : 44 : {
12097 : 44 : tree _q30 = TREE_OPERAND (_q20, 0);
12098 : 44 : tree _q31 = TREE_OPERAND (_q20, 1);
12099 : 44 : switch (TREE_CODE (_q31))
12100 : : {
12101 : 2 : case INTEGER_CST:
12102 : 2 : {
12103 : 2 : switch (TREE_CODE (_p1))
12104 : : {
12105 : 2 : case INTEGER_CST:
12106 : 2 : {
12107 : 2 : {
12108 : 2 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1 };
12109 : 2 : tree res = generic_simplify_449 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR);
12110 : 2 : if (res) return res;
12111 : : }
12112 : 0 : break;
12113 : : }
12114 : : default:;
12115 : : }
12116 : : break;
12117 : : }
12118 : : default:;
12119 : : }
12120 : : break;
12121 : : }
12122 : 4 : case BIT_XOR_EXPR:
12123 : 4 : {
12124 : 4 : tree _q30 = TREE_OPERAND (_q20, 0);
12125 : 4 : tree _q31 = TREE_OPERAND (_q20, 1);
12126 : 4 : switch (TREE_CODE (_q31))
12127 : : {
12128 : 2 : case INTEGER_CST:
12129 : 2 : {
12130 : 2 : switch (TREE_CODE (_p1))
12131 : : {
12132 : 2 : case INTEGER_CST:
12133 : 2 : {
12134 : 2 : {
12135 : 2 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1 };
12136 : 2 : tree res = generic_simplify_449 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
12137 : 2 : if (res) return res;
12138 : : }
12139 : 0 : break;
12140 : : }
12141 : : default:;
12142 : : }
12143 : : break;
12144 : : }
12145 : : default:;
12146 : : }
12147 : : break;
12148 : : }
12149 : 47842 : default:;
12150 : : }
12151 : 47842 : if (tree_zero_one_valued_p (_q20))
12152 : : {
12153 : 19 : {
12154 : 19 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
12155 : 19 : tree res = generic_simplify_450 (loc, type, _p0, _p1, captures);
12156 : 19 : if (res) return res;
12157 : : }
12158 : : }
12159 : : break;
12160 : : }
12161 : 6378564 : default:;
12162 : : }
12163 : 6378564 : if (integer_zerop (_p1))
12164 : : {
12165 : 3862 : {
12166 : 3862 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
12167 : 3862 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1815;
12168 : 3862 : {
12169 : 3862 : tree _r;
12170 : 3862 : _r = captures[1];
12171 : 3862 : if (TREE_SIDE_EFFECTS (captures[0]))
12172 : 49 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
12173 : 3862 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1041, __FILE__, __LINE__, true);
12174 : 3862 : return _r;
12175 : : }
12176 : 0 : next_after_fail1815:;
12177 : : }
12178 : : }
12179 : 6374702 : if (integer_all_onesp (_p1))
12180 : : {
12181 : 24974 : {
12182 : 24974 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
12183 : 24974 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1816;
12184 : 24974 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1816;
12185 : 24974 : {
12186 : 24974 : tree res_op0;
12187 : 24974 : res_op0 = captures[0];
12188 : 24974 : tree _r;
12189 : 24974 : _r = non_lvalue_loc (loc, res_op0);
12190 : 24974 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1042, __FILE__, __LINE__, true);
12191 : 24974 : return _r;
12192 : : }
12193 : : next_after_fail1816:;
12194 : : }
12195 : : }
12196 : 6349728 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
12197 : : {
12198 : 129 : {
12199 : 129 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
12200 : 129 : tree res = generic_simplify_89 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12201 : 129 : if (res) return res;
12202 : : }
12203 : : }
12204 : 6349599 : switch (TREE_CODE (_p1))
12205 : : {
12206 : 33716 : case BIT_NOT_EXPR:
12207 : 33716 : {
12208 : 33716 : tree _q30 = TREE_OPERAND (_p1, 0);
12209 : 33716 : switch (TREE_CODE (_q30))
12210 : : {
12211 : 13 : case BIT_AND_EXPR:
12212 : 13 : {
12213 : 13 : tree _q40 = TREE_OPERAND (_q30, 0);
12214 : 13 : tree _q41 = TREE_OPERAND (_q30, 1);
12215 : 13 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
12216 : : {
12217 : 0 : {
12218 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q41 };
12219 : 0 : tree res = generic_simplify_90 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12220 : 0 : if (res) return res;
12221 : : }
12222 : : }
12223 : 13 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
12224 : : {
12225 : 0 : {
12226 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q40 };
12227 : 0 : tree res = generic_simplify_90 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12228 : 0 : if (res) return res;
12229 : : }
12230 : : }
12231 : : break;
12232 : : }
12233 : : default:;
12234 : : }
12235 : : break;
12236 : : }
12237 : 6349599 : default:;
12238 : : }
12239 : 6349599 : switch (TREE_CODE (_p0))
12240 : : {
12241 : 47847 : case BIT_NOT_EXPR:
12242 : 47847 : {
12243 : 47847 : tree _q20 = TREE_OPERAND (_p0, 0);
12244 : 47847 : switch (TREE_CODE (_q20))
12245 : : {
12246 : 28 : case BIT_AND_EXPR:
12247 : 28 : {
12248 : 28 : tree _q30 = TREE_OPERAND (_q20, 0);
12249 : 28 : tree _q31 = TREE_OPERAND (_q20, 1);
12250 : 28 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
12251 : : {
12252 : 4 : {
12253 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q20, _q31 };
12254 : 4 : tree res = generic_simplify_90 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12255 : 4 : if (res) return res;
12256 : : }
12257 : : }
12258 : 24 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
12259 : : {
12260 : 3 : {
12261 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q20, _q30 };
12262 : 3 : tree res = generic_simplify_90 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12263 : 3 : if (res) return res;
12264 : : }
12265 : : }
12266 : 21 : switch (TREE_CODE (_p1))
12267 : : {
12268 : 0 : case BIT_IOR_EXPR:
12269 : 0 : {
12270 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
12271 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
12272 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
12273 : : {
12274 : 0 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
12275 : : {
12276 : 0 : {
12277 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
12278 : 0 : tree res = generic_simplify_451 (loc, type, _p0, _p1, captures);
12279 : 0 : if (res) return res;
12280 : : }
12281 : : }
12282 : : }
12283 : : break;
12284 : : }
12285 : : default:;
12286 : : }
12287 : : break;
12288 : : }
12289 : 47840 : default:;
12290 : : }
12291 : 47840 : switch (TREE_CODE (_p1))
12292 : : {
12293 : 7687 : CASE_CONVERT:
12294 : 7687 : {
12295 : 7687 : tree _q40 = TREE_OPERAND (_p1, 0);
12296 : 7687 : switch (TREE_CODE (_q40))
12297 : : {
12298 : 0 : case BIT_NOT_EXPR:
12299 : 0 : {
12300 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
12301 : 0 : {
12302 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q50 };
12303 : 0 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12304 : 0 : if (res) return res;
12305 : : }
12306 : 0 : break;
12307 : : }
12308 : : default:;
12309 : : }
12310 : : break;
12311 : : }
12312 : 44 : case BIT_NOT_EXPR:
12313 : 44 : {
12314 : 44 : tree _q40 = TREE_OPERAND (_p1, 0);
12315 : 44 : {
12316 : 44 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
12317 : 44 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12318 : 44 : if (res) return res;
12319 : : }
12320 : 0 : break;
12321 : : }
12322 : : default:;
12323 : : }
12324 : : break;
12325 : : }
12326 : 1583 : case BIT_IOR_EXPR:
12327 : 1583 : {
12328 : 1583 : tree _q20 = TREE_OPERAND (_p0, 0);
12329 : 1583 : tree _q21 = TREE_OPERAND (_p0, 1);
12330 : 1583 : switch (TREE_CODE (_p1))
12331 : : {
12332 : 169 : case BIT_NOT_EXPR:
12333 : 169 : {
12334 : 169 : tree _q50 = TREE_OPERAND (_p1, 0);
12335 : 169 : switch (TREE_CODE (_q50))
12336 : : {
12337 : 0 : case BIT_AND_EXPR:
12338 : 0 : {
12339 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
12340 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
12341 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
12342 : : {
12343 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
12344 : : {
12345 : 0 : {
12346 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
12347 : 0 : tree res = generic_simplify_451 (loc, type, _p0, _p1, captures);
12348 : 0 : if (res) return res;
12349 : : }
12350 : : }
12351 : : }
12352 : : break;
12353 : : }
12354 : : default:;
12355 : : }
12356 : : break;
12357 : : }
12358 : 2 : case BIT_XOR_EXPR:
12359 : 2 : {
12360 : 2 : tree _q50 = TREE_OPERAND (_p1, 0);
12361 : 2 : tree _q51 = TREE_OPERAND (_p1, 1);
12362 : 2 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
12363 : : {
12364 : 0 : {
12365 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
12366 : 0 : tree res = generic_simplify_452 (loc, type, _p0, _p1, captures);
12367 : 0 : if (res) return res;
12368 : : }
12369 : : }
12370 : 2 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
12371 : : {
12372 : 2 : {
12373 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
12374 : 2 : tree res = generic_simplify_452 (loc, type, _p0, _p1, captures);
12375 : 2 : if (res) return res;
12376 : : }
12377 : : }
12378 : 2 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
12379 : : {
12380 : 0 : {
12381 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
12382 : 0 : tree res = generic_simplify_452 (loc, type, _p0, _p1, captures);
12383 : 0 : if (res) return res;
12384 : : }
12385 : : }
12386 : 2 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
12387 : : {
12388 : 0 : {
12389 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
12390 : 0 : tree res = generic_simplify_452 (loc, type, _p0, _p1, captures);
12391 : 0 : if (res) return res;
12392 : : }
12393 : : }
12394 : : break;
12395 : : }
12396 : 1583 : default:;
12397 : : }
12398 : 1583 : switch (TREE_CODE (_q20))
12399 : : {
12400 : 127 : case BIT_NOT_EXPR:
12401 : 127 : {
12402 : 127 : tree _q30 = TREE_OPERAND (_q20, 0);
12403 : 127 : switch (TREE_CODE (_p1))
12404 : : {
12405 : 2 : case BIT_IOR_EXPR:
12406 : 2 : {
12407 : 2 : tree _q60 = TREE_OPERAND (_p1, 0);
12408 : 2 : tree _q61 = TREE_OPERAND (_p1, 1);
12409 : 2 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
12410 : : {
12411 : 0 : switch (TREE_CODE (_q61))
12412 : : {
12413 : 0 : case BIT_NOT_EXPR:
12414 : 0 : {
12415 : 0 : tree _q80 = TREE_OPERAND (_q61, 0);
12416 : 0 : if ((_q80 == _q21 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q21, 0) && types_match (_q80, _q21)))
12417 : : {
12418 : 0 : {
12419 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q21, _p1 };
12420 : 0 : tree res = generic_simplify_453 (loc, type, _p0, _p1, captures);
12421 : 0 : if (res) return res;
12422 : : }
12423 : : }
12424 : : break;
12425 : : }
12426 : : default:;
12427 : : }
12428 : : }
12429 : 2 : switch (TREE_CODE (_q60))
12430 : : {
12431 : 2 : case BIT_NOT_EXPR:
12432 : 2 : {
12433 : 2 : tree _q70 = TREE_OPERAND (_q60, 0);
12434 : 2 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
12435 : : {
12436 : 2 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
12437 : : {
12438 : 2 : {
12439 : 2 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q21, _p1 };
12440 : 2 : tree res = generic_simplify_453 (loc, type, _p0, _p1, captures);
12441 : 2 : if (res) return res;
12442 : : }
12443 : : }
12444 : : }
12445 : : break;
12446 : : }
12447 : : default:;
12448 : : }
12449 : : break;
12450 : : }
12451 : : default:;
12452 : : }
12453 : : break;
12454 : : }
12455 : 1581 : default:;
12456 : : }
12457 : 1581 : switch (TREE_CODE (_q21))
12458 : : {
12459 : 0 : case BIT_NOT_EXPR:
12460 : 0 : {
12461 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
12462 : 0 : switch (TREE_CODE (_p1))
12463 : : {
12464 : 0 : case BIT_IOR_EXPR:
12465 : 0 : {
12466 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
12467 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
12468 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
12469 : : {
12470 : 0 : switch (TREE_CODE (_q61))
12471 : : {
12472 : 0 : case BIT_NOT_EXPR:
12473 : 0 : {
12474 : 0 : tree _q80 = TREE_OPERAND (_q61, 0);
12475 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
12476 : : {
12477 : 0 : {
12478 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q40, _q20, _p1 };
12479 : 0 : tree res = generic_simplify_453 (loc, type, _p0, _p1, captures);
12480 : 0 : if (res) return res;
12481 : : }
12482 : : }
12483 : : break;
12484 : : }
12485 : : default:;
12486 : : }
12487 : : }
12488 : 0 : switch (TREE_CODE (_q60))
12489 : : {
12490 : 0 : case BIT_NOT_EXPR:
12491 : 0 : {
12492 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
12493 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
12494 : : {
12495 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
12496 : : {
12497 : 0 : {
12498 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q40, _q20, _p1 };
12499 : 0 : tree res = generic_simplify_453 (loc, type, _p0, _p1, captures);
12500 : 0 : if (res) return res;
12501 : : }
12502 : : }
12503 : : }
12504 : : break;
12505 : : }
12506 : : default:;
12507 : : }
12508 : : break;
12509 : : }
12510 : : default:;
12511 : : }
12512 : : break;
12513 : : }
12514 : : default:;
12515 : : }
12516 : : break;
12517 : : }
12518 : 21008 : case BIT_XOR_EXPR:
12519 : 21008 : {
12520 : 21008 : tree _q20 = TREE_OPERAND (_p0, 0);
12521 : 21008 : tree _q21 = TREE_OPERAND (_p0, 1);
12522 : 21008 : switch (TREE_CODE (_p1))
12523 : : {
12524 : 133 : case BIT_IOR_EXPR:
12525 : 133 : {
12526 : 133 : tree _q50 = TREE_OPERAND (_p1, 0);
12527 : 133 : tree _q51 = TREE_OPERAND (_p1, 1);
12528 : 133 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
12529 : : {
12530 : 18 : {
12531 : 18 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q20, _q21 };
12532 : 18 : tree res = generic_simplify_452 (loc, type, _p0, _p1, captures);
12533 : 18 : if (res) return res;
12534 : : }
12535 : : }
12536 : 133 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
12537 : : {
12538 : 33 : {
12539 : 33 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q21, _q20 };
12540 : 33 : tree res = generic_simplify_452 (loc, type, _p0, _p1, captures);
12541 : 33 : if (res) return res;
12542 : : }
12543 : : }
12544 : 133 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
12545 : : {
12546 : 30 : {
12547 : 30 : tree captures[3] ATTRIBUTE_UNUSED = { _q51, _q20, _q21 };
12548 : 30 : tree res = generic_simplify_452 (loc, type, _p0, _p1, captures);
12549 : 30 : if (res) return res;
12550 : : }
12551 : : }
12552 : 133 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
12553 : : {
12554 : 21 : {
12555 : 21 : tree captures[3] ATTRIBUTE_UNUSED = { _q51, _q21, _q20 };
12556 : 21 : tree res = generic_simplify_452 (loc, type, _p0, _p1, captures);
12557 : 21 : if (res) return res;
12558 : : }
12559 : : }
12560 : : break;
12561 : : }
12562 : 21008 : default:;
12563 : : }
12564 : 21008 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
12565 : : {
12566 : 31 : {
12567 : 31 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
12568 : 31 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_XOR_EXPR);
12569 : 31 : if (res) return res;
12570 : : }
12571 : : }
12572 : 20977 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
12573 : : {
12574 : 2 : {
12575 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
12576 : 2 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_XOR_EXPR);
12577 : 2 : if (res) return res;
12578 : : }
12579 : : }
12580 : : break;
12581 : : }
12582 : 1924822 : CASE_CONVERT:
12583 : 1924822 : {
12584 : 1924822 : tree _q20 = TREE_OPERAND (_p0, 0);
12585 : 1924822 : switch (TREE_CODE (_q20))
12586 : : {
12587 : 174 : case BIT_NOT_EXPR:
12588 : 174 : {
12589 : 174 : tree _q30 = TREE_OPERAND (_q20, 0);
12590 : 174 : switch (TREE_CODE (_p1))
12591 : : {
12592 : 34 : CASE_CONVERT:
12593 : 34 : {
12594 : 34 : tree _q50 = TREE_OPERAND (_p1, 0);
12595 : 34 : switch (TREE_CODE (_q50))
12596 : : {
12597 : 0 : case BIT_NOT_EXPR:
12598 : 0 : {
12599 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
12600 : 0 : {
12601 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q60 };
12602 : 0 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12603 : 0 : if (res) return res;
12604 : : }
12605 : 0 : break;
12606 : : }
12607 : : default:;
12608 : : }
12609 : : break;
12610 : : }
12611 : 1 : case BIT_NOT_EXPR:
12612 : 1 : {
12613 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
12614 : 1 : {
12615 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q50 };
12616 : 1 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12617 : 1 : if (res) return res;
12618 : : }
12619 : 0 : break;
12620 : : }
12621 : : default:;
12622 : : }
12623 : : break;
12624 : : }
12625 : : default:;
12626 : : }
12627 : : break;
12628 : : }
12629 : 6349512 : default:;
12630 : : }
12631 : 6349512 : switch (TREE_CODE (_p1))
12632 : : {
12633 : 254 : case BIT_XOR_EXPR:
12634 : 254 : {
12635 : 254 : tree _q30 = TREE_OPERAND (_p1, 0);
12636 : 254 : tree _q31 = TREE_OPERAND (_p1, 1);
12637 : 254 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
12638 : : {
12639 : 0 : {
12640 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q30, _p0 };
12641 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_XOR_EXPR);
12642 : 0 : if (res) return res;
12643 : : }
12644 : : }
12645 : 254 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
12646 : : {
12647 : 1 : {
12648 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q31, _p0 };
12649 : 1 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_XOR_EXPR);
12650 : 1 : if (res) return res;
12651 : : }
12652 : : }
12653 : : break;
12654 : : }
12655 : 6349511 : default:;
12656 : : }
12657 : 6349511 : switch (TREE_CODE (_p0))
12658 : : {
12659 : 1924821 : CASE_CONVERT:
12660 : 1924821 : {
12661 : 1924821 : tree _q20 = TREE_OPERAND (_p0, 0);
12662 : 1924821 : switch (TREE_CODE (_q20))
12663 : : {
12664 : 171 : case BIT_IOR_EXPR:
12665 : 171 : {
12666 : 171 : tree _q30 = TREE_OPERAND (_q20, 0);
12667 : 171 : tree _q31 = TREE_OPERAND (_q20, 1);
12668 : 171 : switch (TREE_CODE (_p1))
12669 : : {
12670 : 12 : CASE_CONVERT:
12671 : 12 : {
12672 : 12 : tree _q60 = TREE_OPERAND (_p1, 0);
12673 : 12 : switch (TREE_CODE (_q60))
12674 : : {
12675 : 0 : case BIT_IOR_EXPR:
12676 : 0 : {
12677 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
12678 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
12679 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q30, 0))
12680 : : {
12681 : 0 : {
12682 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q71, _q30 };
12683 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12684 : 0 : if (res) return res;
12685 : : }
12686 : : }
12687 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || operand_equal_p (_q71, _q30, 0))
12688 : : {
12689 : 0 : {
12690 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q70, _q30 };
12691 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12692 : 0 : if (res) return res;
12693 : : }
12694 : : }
12695 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q31, 0))
12696 : : {
12697 : 0 : {
12698 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q31, _q30, _q71, _q31 };
12699 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12700 : 0 : if (res) return res;
12701 : : }
12702 : : }
12703 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || operand_equal_p (_q71, _q31, 0))
12704 : : {
12705 : 0 : {
12706 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q31, _q30, _q70, _q31 };
12707 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12708 : 0 : if (res) return res;
12709 : : }
12710 : : }
12711 : : break;
12712 : : }
12713 : : default:;
12714 : : }
12715 : : break;
12716 : : }
12717 : : default:;
12718 : : }
12719 : : break;
12720 : : }
12721 : 40 : case BIT_AND_EXPR:
12722 : 40 : {
12723 : 40 : tree _q30 = TREE_OPERAND (_q20, 0);
12724 : 40 : tree _q31 = TREE_OPERAND (_q20, 1);
12725 : 40 : switch (TREE_CODE (_p1))
12726 : : {
12727 : 0 : CASE_CONVERT:
12728 : 0 : {
12729 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
12730 : 0 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q31, 0))
12731 : : {
12732 : 0 : {
12733 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q31, _q31 };
12734 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12735 : 0 : if (res) return res;
12736 : : }
12737 : : }
12738 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q30, 0))
12739 : : {
12740 : 0 : {
12741 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q31, _q30, _q30 };
12742 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12743 : 0 : if (res) return res;
12744 : : }
12745 : : }
12746 : : break;
12747 : : }
12748 : 40 : default:;
12749 : : }
12750 : 40 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q31, 0))
12751 : : {
12752 : 0 : {
12753 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q31, _q31 };
12754 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12755 : 0 : if (res) return res;
12756 : : }
12757 : : }
12758 : 40 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q30, 0))
12759 : : {
12760 : 0 : {
12761 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q31, _q30, _q30 };
12762 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12763 : 0 : if (res) return res;
12764 : : }
12765 : : }
12766 : : break;
12767 : : }
12768 : 1924821 : default:;
12769 : : }
12770 : 1924821 : switch (TREE_CODE (_p1))
12771 : : {
12772 : 799428 : CASE_CONVERT:
12773 : 799428 : {
12774 : 799428 : tree _q40 = TREE_OPERAND (_p1, 0);
12775 : 799428 : switch (TREE_CODE (_q40))
12776 : : {
12777 : 0 : case BIT_AND_EXPR:
12778 : 0 : {
12779 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
12780 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
12781 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q20, 0))
12782 : : {
12783 : 0 : {
12784 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q50, _q51, _q20 };
12785 : 0 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12786 : 0 : if (res) return res;
12787 : : }
12788 : : }
12789 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
12790 : : {
12791 : 0 : {
12792 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q51, _q50, _q20 };
12793 : 0 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12794 : 0 : if (res) return res;
12795 : : }
12796 : : }
12797 : : break;
12798 : : }
12799 : : default:;
12800 : : }
12801 : : break;
12802 : : }
12803 : 47 : case BIT_AND_EXPR:
12804 : 47 : {
12805 : 47 : tree _q40 = TREE_OPERAND (_p1, 0);
12806 : 47 : tree _q41 = TREE_OPERAND (_p1, 1);
12807 : 47 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _q20, 0))
12808 : : {
12809 : 0 : {
12810 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q40, _q41, _q20 };
12811 : 0 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12812 : 0 : if (res) return res;
12813 : : }
12814 : : }
12815 : 47 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _q20, 0))
12816 : : {
12817 : 0 : {
12818 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q41, _q40, _q20 };
12819 : 0 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12820 : 0 : if (res) return res;
12821 : : }
12822 : : }
12823 : : break;
12824 : : }
12825 : : default:;
12826 : : }
12827 : : break;
12828 : : }
12829 : 1581 : case BIT_IOR_EXPR:
12830 : 1581 : {
12831 : 1581 : tree _q20 = TREE_OPERAND (_p0, 0);
12832 : 1581 : tree _q21 = TREE_OPERAND (_p0, 1);
12833 : 1581 : switch (TREE_CODE (_p1))
12834 : : {
12835 : 9 : case BIT_IOR_EXPR:
12836 : 9 : {
12837 : 9 : tree _q50 = TREE_OPERAND (_p1, 0);
12838 : 9 : tree _q51 = TREE_OPERAND (_p1, 1);
12839 : 9 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
12840 : : {
12841 : 0 : {
12842 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q51, _q20 };
12843 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12844 : 0 : if (res) return res;
12845 : : }
12846 : : }
12847 : 9 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q20, 0))
12848 : : {
12849 : 0 : {
12850 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q50, _q20 };
12851 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12852 : 0 : if (res) return res;
12853 : : }
12854 : : }
12855 : 9 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q21, 0))
12856 : : {
12857 : 0 : {
12858 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q51, _q21 };
12859 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12860 : 0 : if (res) return res;
12861 : : }
12862 : : }
12863 : 9 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q21, 0))
12864 : : {
12865 : 0 : {
12866 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q50, _q21 };
12867 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
12868 : 0 : if (res) return res;
12869 : : }
12870 : : }
12871 : : break;
12872 : : }
12873 : : default:;
12874 : : }
12875 : : break;
12876 : : }
12877 : 6349511 : default:;
12878 : : }
12879 : 6349511 : switch (TREE_CODE (_p1))
12880 : : {
12881 : 901286 : CASE_CONVERT:
12882 : 901286 : {
12883 : 901286 : tree _q30 = TREE_OPERAND (_p1, 0);
12884 : 901286 : switch (TREE_CODE (_q30))
12885 : : {
12886 : 8 : case BIT_AND_EXPR:
12887 : 8 : {
12888 : 8 : tree _q40 = TREE_OPERAND (_q30, 0);
12889 : 8 : tree _q41 = TREE_OPERAND (_q30, 1);
12890 : 8 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _p0, 0))
12891 : : {
12892 : 0 : {
12893 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q40, _q41, _p0 };
12894 : 0 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12895 : 0 : if (res) return res;
12896 : : }
12897 : : }
12898 : 8 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _p0, 0))
12899 : : {
12900 : 0 : {
12901 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q41, _q40, _p0 };
12902 : 0 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12903 : 0 : if (res) return res;
12904 : : }
12905 : : }
12906 : : break;
12907 : : }
12908 : : default:;
12909 : : }
12910 : : break;
12911 : : }
12912 : 6349511 : default:;
12913 : : }
12914 : 6349511 : switch (TREE_CODE (_p0))
12915 : : {
12916 : 1591 : case BIT_AND_EXPR:
12917 : 1591 : {
12918 : 1591 : tree _q20 = TREE_OPERAND (_p0, 0);
12919 : 1591 : tree _q21 = TREE_OPERAND (_p0, 1);
12920 : 1591 : switch (TREE_CODE (_p1))
12921 : : {
12922 : 82 : CASE_CONVERT:
12923 : 82 : {
12924 : 82 : tree _q50 = TREE_OPERAND (_p1, 0);
12925 : 82 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q21, 0))
12926 : : {
12927 : 0 : {
12928 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q21 };
12929 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12930 : 0 : if (res) return res;
12931 : : }
12932 : : }
12933 : 82 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
12934 : : {
12935 : 0 : {
12936 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _q20 };
12937 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12938 : 0 : if (res) return res;
12939 : : }
12940 : : }
12941 : : break;
12942 : : }
12943 : 1591 : default:;
12944 : : }
12945 : 1591 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q21, 0))
12946 : : {
12947 : 0 : {
12948 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q21 };
12949 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12950 : 0 : if (res) return res;
12951 : : }
12952 : : }
12953 : 1591 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q20, 0))
12954 : : {
12955 : 0 : {
12956 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _q20 };
12957 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12958 : 0 : if (res) return res;
12959 : : }
12960 : : }
12961 : 1591 : {
12962 : 1591 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
12963 : 1591 : tree res = generic_simplify_454 (loc, type, _p0, _p1, captures);
12964 : 1591 : if (res) return res;
12965 : : }
12966 : 1583 : switch (TREE_CODE (_p1))
12967 : : {
12968 : 82 : CASE_CONVERT:
12969 : 82 : {
12970 : 82 : tree _q50 = TREE_OPERAND (_p1, 0);
12971 : 82 : switch (TREE_CODE (_q50))
12972 : : {
12973 : 8 : case BIT_AND_EXPR:
12974 : 8 : {
12975 : 8 : tree _q60 = TREE_OPERAND (_q50, 0);
12976 : 8 : tree _q61 = TREE_OPERAND (_q50, 1);
12977 : 8 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
12978 : : {
12979 : 0 : {
12980 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1, _q50, _q61 };
12981 : 0 : tree res = generic_simplify_99 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12982 : 0 : if (res) return res;
12983 : : }
12984 : : }
12985 : 8 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
12986 : : {
12987 : 0 : {
12988 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1, _q50, _q60 };
12989 : 0 : tree res = generic_simplify_99 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12990 : 0 : if (res) return res;
12991 : : }
12992 : : }
12993 : 8 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
12994 : : {
12995 : 0 : {
12996 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q21, _q20, _p1, _q50, _q61 };
12997 : 0 : tree res = generic_simplify_99 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
12998 : 0 : if (res) return res;
12999 : : }
13000 : : }
13001 : 8 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
13002 : : {
13003 : 0 : {
13004 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q21, _q20, _p1, _q50, _q60 };
13005 : 0 : tree res = generic_simplify_99 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
13006 : 0 : if (res) return res;
13007 : : }
13008 : : }
13009 : : break;
13010 : : }
13011 : : default:;
13012 : : }
13013 : : break;
13014 : : }
13015 : 12 : case BIT_AND_EXPR:
13016 : 12 : {
13017 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
13018 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
13019 : 12 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
13020 : : {
13021 : 0 : {
13022 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1, _p1, _q51 };
13023 : 0 : tree res = generic_simplify_100 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
13024 : 0 : if (res) return res;
13025 : : }
13026 : : }
13027 : 12 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
13028 : : {
13029 : 0 : {
13030 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1, _p1, _q50 };
13031 : 0 : tree res = generic_simplify_100 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
13032 : 0 : if (res) return res;
13033 : : }
13034 : : }
13035 : 12 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
13036 : : {
13037 : 0 : {
13038 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q21, _q20, _p1, _p1, _q51 };
13039 : 0 : tree res = generic_simplify_100 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
13040 : 0 : if (res) return res;
13041 : : }
13042 : : }
13043 : 12 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
13044 : : {
13045 : 0 : {
13046 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q21, _q20, _p1, _p1, _q50 };
13047 : 0 : tree res = generic_simplify_100 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
13048 : 0 : if (res) return res;
13049 : : }
13050 : : }
13051 : : break;
13052 : : }
13053 : : default:;
13054 : : }
13055 : : break;
13056 : : }
13057 : 6349503 : default:;
13058 : : }
13059 : 6349503 : switch (TREE_CODE (_p1))
13060 : : {
13061 : 76 : case BIT_AND_EXPR:
13062 : 76 : {
13063 : 76 : tree _q30 = TREE_OPERAND (_p1, 0);
13064 : 76 : tree _q31 = TREE_OPERAND (_p1, 1);
13065 : 76 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || operand_equal_p (_q31, _p0, 0))
13066 : : {
13067 : 0 : {
13068 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q30, _q31, _p0 };
13069 : 0 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
13070 : 0 : if (res) return res;
13071 : : }
13072 : : }
13073 : 76 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || operand_equal_p (_q30, _p0, 0))
13074 : : {
13075 : 0 : {
13076 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q31, _q30, _p0 };
13077 : 0 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
13078 : 0 : if (res) return res;
13079 : : }
13080 : : }
13081 : 76 : {
13082 : 76 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p0 };
13083 : 76 : tree res = generic_simplify_454 (loc, type, _p0, _p1, captures);
13084 : 76 : if (res) return res;
13085 : : }
13086 : 76 : break;
13087 : : }
13088 : 6349503 : default:;
13089 : : }
13090 : 6349503 : switch (TREE_CODE (_p0))
13091 : : {
13092 : 1924821 : CASE_CONVERT:
13093 : 1924821 : {
13094 : 1924821 : tree _q20 = TREE_OPERAND (_p0, 0);
13095 : 1924821 : switch (TREE_CODE (_q20))
13096 : : {
13097 : 40 : case BIT_AND_EXPR:
13098 : 40 : {
13099 : 40 : tree _q30 = TREE_OPERAND (_q20, 0);
13100 : 40 : tree _q31 = TREE_OPERAND (_q20, 1);
13101 : 40 : switch (TREE_CODE (_p1))
13102 : : {
13103 : 0 : CASE_CONVERT:
13104 : 0 : {
13105 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
13106 : 0 : switch (TREE_CODE (_q60))
13107 : : {
13108 : 0 : case BIT_AND_EXPR:
13109 : 0 : {
13110 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
13111 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
13112 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
13113 : : {
13114 : 0 : {
13115 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _q60, _q71 };
13116 : 0 : tree res = generic_simplify_101 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
13117 : 0 : if (res) return res;
13118 : : }
13119 : : }
13120 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
13121 : : {
13122 : 0 : {
13123 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _q60, _q70 };
13124 : 0 : tree res = generic_simplify_101 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
13125 : 0 : if (res) return res;
13126 : : }
13127 : : }
13128 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
13129 : : {
13130 : 0 : {
13131 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q31, _q30, _p1, _q60, _q71 };
13132 : 0 : tree res = generic_simplify_101 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
13133 : 0 : if (res) return res;
13134 : : }
13135 : : }
13136 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
13137 : : {
13138 : 0 : {
13139 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q31, _q30, _p1, _q60, _q70 };
13140 : 0 : tree res = generic_simplify_101 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
13141 : 0 : if (res) return res;
13142 : : }
13143 : : }
13144 : : break;
13145 : : }
13146 : : default:;
13147 : : }
13148 : : break;
13149 : : }
13150 : 0 : case BIT_AND_EXPR:
13151 : 0 : {
13152 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
13153 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
13154 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
13155 : : {
13156 : 0 : {
13157 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _p1, _q61 };
13158 : 0 : tree res = generic_simplify_102 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
13159 : 0 : if (res) return res;
13160 : : }
13161 : : }
13162 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
13163 : : {
13164 : 0 : {
13165 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _p1, _q60 };
13166 : 0 : tree res = generic_simplify_102 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
13167 : 0 : if (res) return res;
13168 : : }
13169 : : }
13170 : 0 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q31, 0) && types_match (_q60, _q31)))
13171 : : {
13172 : 0 : {
13173 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q31, _q30, _p1, _p1, _q61 };
13174 : 0 : tree res = generic_simplify_102 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
13175 : 0 : if (res) return res;
13176 : : }
13177 : : }
13178 : 0 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
13179 : : {
13180 : 0 : {
13181 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q31, _q30, _p1, _p1, _q60 };
13182 : 0 : tree res = generic_simplify_102 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
13183 : 0 : if (res) return res;
13184 : : }
13185 : : }
13186 : : break;
13187 : : }
13188 : : default:;
13189 : : }
13190 : : break;
13191 : : }
13192 : 1924821 : default:;
13193 : : }
13194 : 1924821 : switch (TREE_CODE (_p1))
13195 : : {
13196 : 799428 : CASE_CONVERT:
13197 : 799428 : {
13198 : 799428 : tree _q40 = TREE_OPERAND (_p1, 0);
13199 : 799428 : {
13200 : 799428 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
13201 : 799428 : tree res = generic_simplify_103 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
13202 : 799428 : if (res) return res;
13203 : : }
13204 : 799428 : break;
13205 : : }
13206 : 1924821 : default:;
13207 : : }
13208 : 1924821 : {
13209 : 1924821 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
13210 : 1924821 : tree res = generic_simplify_104 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
13211 : 1924821 : if (res) return res;
13212 : : }
13213 : 1924821 : break;
13214 : : }
13215 : 1581 : case BIT_IOR_EXPR:
13216 : 1581 : {
13217 : 1581 : tree _q20 = TREE_OPERAND (_p0, 0);
13218 : 1581 : tree _q21 = TREE_OPERAND (_p0, 1);
13219 : 1581 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
13220 : : {
13221 : 2 : {
13222 : 2 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
13223 : 2 : tree res = generic_simplify_105 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13224 : 2 : if (res) return res;
13225 : : }
13226 : : }
13227 : 1579 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
13228 : : {
13229 : 4 : {
13230 : 4 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
13231 : 4 : tree res = generic_simplify_105 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13232 : 4 : if (res) return res;
13233 : : }
13234 : : }
13235 : 1575 : {
13236 : 1575 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
13237 : 1575 : tree res = generic_simplify_106 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13238 : 1575 : if (res) return res;
13239 : : }
13240 : 1570 : {
13241 : 1570 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _p1 };
13242 : 1570 : tree res = generic_simplify_106 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13243 : 1570 : if (res) return res;
13244 : : }
13245 : 1570 : switch (TREE_CODE (_p1))
13246 : : {
13247 : 1 : case BIT_AND_EXPR:
13248 : 1 : {
13249 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
13250 : 1 : tree _q51 = TREE_OPERAND (_p1, 1);
13251 : 1 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
13252 : : {
13253 : 1 : {
13254 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _p1, _q51 };
13255 : 1 : tree res = generic_simplify_107 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13256 : 1 : if (res) return res;
13257 : : }
13258 : : }
13259 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
13260 : : {
13261 : 0 : {
13262 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _p1, _q50 };
13263 : 0 : tree res = generic_simplify_107 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13264 : 0 : if (res) return res;
13265 : : }
13266 : : }
13267 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
13268 : : {
13269 : 0 : {
13270 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _p1, _q51 };
13271 : 0 : tree res = generic_simplify_107 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13272 : 0 : if (res) return res;
13273 : : }
13274 : : }
13275 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
13276 : : {
13277 : 0 : {
13278 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _p1, _q50 };
13279 : 0 : tree res = generic_simplify_107 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13280 : 0 : if (res) return res;
13281 : : }
13282 : : }
13283 : : break;
13284 : : }
13285 : 168 : case BIT_NOT_EXPR:
13286 : 168 : {
13287 : 168 : tree _q50 = TREE_OPERAND (_p1, 0);
13288 : 168 : switch (TREE_CODE (_q50))
13289 : : {
13290 : 9 : case BIT_IOR_EXPR:
13291 : 9 : {
13292 : 9 : tree _q60 = TREE_OPERAND (_q50, 0);
13293 : 9 : tree _q61 = TREE_OPERAND (_q50, 1);
13294 : 9 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
13295 : : {
13296 : 0 : {
13297 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _p1, _q61 };
13298 : 0 : tree res = generic_simplify_108 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13299 : 0 : if (res) return res;
13300 : : }
13301 : : }
13302 : 9 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
13303 : : {
13304 : 1 : {
13305 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _p1, _q60 };
13306 : 1 : tree res = generic_simplify_108 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13307 : 1 : if (res) return res;
13308 : : }
13309 : : }
13310 : 8 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
13311 : : {
13312 : 0 : {
13313 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _p1, _q61 };
13314 : 0 : tree res = generic_simplify_108 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13315 : 0 : if (res) return res;
13316 : : }
13317 : : }
13318 : 8 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
13319 : : {
13320 : 0 : {
13321 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _p1, _q60 };
13322 : 0 : tree res = generic_simplify_108 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13323 : 0 : if (res) return res;
13324 : : }
13325 : : }
13326 : : break;
13327 : : }
13328 : : default:;
13329 : : }
13330 : : break;
13331 : : }
13332 : : default:;
13333 : : }
13334 : : break;
13335 : : }
13336 : 6349490 : default:;
13337 : : }
13338 : 6349490 : switch (TREE_CODE (_p1))
13339 : : {
13340 : 476 : case BIT_IOR_EXPR:
13341 : 476 : {
13342 : 476 : tree _q30 = TREE_OPERAND (_p1, 0);
13343 : 476 : tree _q31 = TREE_OPERAND (_p1, 1);
13344 : 476 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
13345 : : {
13346 : 0 : {
13347 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
13348 : 0 : tree res = generic_simplify_105 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13349 : 0 : if (res) return res;
13350 : : }
13351 : : }
13352 : 476 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
13353 : : {
13354 : 0 : {
13355 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
13356 : 0 : tree res = generic_simplify_105 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13357 : 0 : if (res) return res;
13358 : : }
13359 : : }
13360 : 476 : {
13361 : 476 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p0 };
13362 : 476 : tree res = generic_simplify_106 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13363 : 476 : if (res) return res;
13364 : : }
13365 : 476 : {
13366 : 476 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _p0 };
13367 : 476 : tree res = generic_simplify_106 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13368 : 476 : if (res) return res;
13369 : : }
13370 : 475 : break;
13371 : : }
13372 : 6349489 : default:;
13373 : : }
13374 : 6349489 : switch (TREE_CODE (_p0))
13375 : : {
13376 : 1583 : case BIT_AND_EXPR:
13377 : 1583 : {
13378 : 1583 : tree _q20 = TREE_OPERAND (_p0, 0);
13379 : 1583 : tree _q21 = TREE_OPERAND (_p0, 1);
13380 : 1583 : switch (TREE_CODE (_p1))
13381 : : {
13382 : 16 : case BIT_IOR_EXPR:
13383 : 16 : {
13384 : 16 : tree _q50 = TREE_OPERAND (_p1, 0);
13385 : 16 : tree _q51 = TREE_OPERAND (_p1, 1);
13386 : 16 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
13387 : : {
13388 : 0 : {
13389 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q51, _p0, _q21 };
13390 : 0 : tree res = generic_simplify_111 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13391 : 0 : if (res) return res;
13392 : : }
13393 : : }
13394 : 16 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
13395 : : {
13396 : 0 : {
13397 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q51, _p0, _q20 };
13398 : 0 : tree res = generic_simplify_111 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13399 : 0 : if (res) return res;
13400 : : }
13401 : : }
13402 : 16 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
13403 : : {
13404 : 0 : {
13405 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q50, _p0, _q21 };
13406 : 0 : tree res = generic_simplify_111 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13407 : 0 : if (res) return res;
13408 : : }
13409 : : }
13410 : 16 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
13411 : : {
13412 : 0 : {
13413 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q50, _p0, _q20 };
13414 : 0 : tree res = generic_simplify_111 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13415 : 0 : if (res) return res;
13416 : : }
13417 : : }
13418 : : break;
13419 : : }
13420 : : default:;
13421 : : }
13422 : : break;
13423 : : }
13424 : 47795 : case BIT_NOT_EXPR:
13425 : 47795 : {
13426 : 47795 : tree _q20 = TREE_OPERAND (_p0, 0);
13427 : 47795 : switch (TREE_CODE (_q20))
13428 : : {
13429 : 11 : case BIT_IOR_EXPR:
13430 : 11 : {
13431 : 11 : tree _q30 = TREE_OPERAND (_q20, 0);
13432 : 11 : tree _q31 = TREE_OPERAND (_q20, 1);
13433 : 11 : switch (TREE_CODE (_p1))
13434 : : {
13435 : 0 : case BIT_IOR_EXPR:
13436 : 0 : {
13437 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
13438 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
13439 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
13440 : : {
13441 : 0 : {
13442 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q60, _q30, _p0, _q31 };
13443 : 0 : tree res = generic_simplify_112 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13444 : 0 : if (res) return res;
13445 : : }
13446 : : }
13447 : 0 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
13448 : : {
13449 : 0 : {
13450 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q60, _q31, _p0, _q30 };
13451 : 0 : tree res = generic_simplify_112 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13452 : 0 : if (res) return res;
13453 : : }
13454 : : }
13455 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
13456 : : {
13457 : 0 : {
13458 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q61, _q30, _p0, _q31 };
13459 : 0 : tree res = generic_simplify_112 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13460 : 0 : if (res) return res;
13461 : : }
13462 : : }
13463 : 0 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q31, 0) && types_match (_q60, _q31)))
13464 : : {
13465 : 0 : {
13466 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q61, _q31, _p0, _q30 };
13467 : 0 : tree res = generic_simplify_112 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13468 : 0 : if (res) return res;
13469 : : }
13470 : : }
13471 : : break;
13472 : : }
13473 : 11 : default:;
13474 : : }
13475 : 11 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
13476 : : {
13477 : 0 : {
13478 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
13479 : 0 : tree res = generic_simplify_113 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13480 : 0 : if (res) return res;
13481 : : }
13482 : : }
13483 : 11 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
13484 : : {
13485 : 1 : {
13486 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q31, _q30 };
13487 : 1 : tree res = generic_simplify_113 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13488 : 1 : if (res) return res;
13489 : : }
13490 : : }
13491 : : break;
13492 : : }
13493 : : default:;
13494 : : }
13495 : : break;
13496 : : }
13497 : 6349488 : default:;
13498 : : }
13499 : 6349488 : switch (TREE_CODE (_p1))
13500 : : {
13501 : 33669 : case BIT_NOT_EXPR:
13502 : 33669 : {
13503 : 33669 : tree _q30 = TREE_OPERAND (_p1, 0);
13504 : 33669 : switch (TREE_CODE (_q30))
13505 : : {
13506 : 8 : case BIT_IOR_EXPR:
13507 : 8 : {
13508 : 8 : tree _q40 = TREE_OPERAND (_q30, 0);
13509 : 8 : tree _q41 = TREE_OPERAND (_q30, 1);
13510 : 8 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
13511 : : {
13512 : 0 : {
13513 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
13514 : 0 : tree res = generic_simplify_113 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13515 : 0 : if (res) return res;
13516 : : }
13517 : : }
13518 : 8 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
13519 : : {
13520 : 0 : {
13521 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q40 };
13522 : 0 : tree res = generic_simplify_113 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
13523 : 0 : if (res) return res;
13524 : : }
13525 : : }
13526 : : break;
13527 : : }
13528 : : default:;
13529 : : }
13530 : : break;
13531 : : }
13532 : 6349488 : default:;
13533 : : }
13534 : 6349488 : switch (TREE_CODE (_p0))
13535 : : {
13536 : 1568 : case BIT_IOR_EXPR:
13537 : 1568 : {
13538 : 1568 : tree _q20 = TREE_OPERAND (_p0, 0);
13539 : 1568 : tree _q21 = TREE_OPERAND (_p0, 1);
13540 : 1568 : if (CONSTANT_CLASS_P (_q21))
13541 : : {
13542 : 459 : if (CONSTANT_CLASS_P (_p1))
13543 : : {
13544 : 25 : {
13545 : 25 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
13546 : 25 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1817;
13547 : 25 : {
13548 : 25 : if (! tree_invariant_p (captures[2])) goto next_after_fail1817;
13549 : 25 : tree res_op0;
13550 : 25 : {
13551 : 25 : tree _o1[2], _r1;
13552 : 25 : _o1[0] = captures[0];
13553 : 25 : _o1[1] = unshare_expr (captures[2]);
13554 : 25 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
13555 : 25 : res_op0 = _r1;
13556 : : }
13557 : 25 : tree res_op1;
13558 : 25 : {
13559 : 25 : tree _o1[2], _r1;
13560 : 25 : _o1[0] = captures[1];
13561 : 25 : _o1[1] = captures[2];
13562 : 25 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
13563 : 25 : if (EXPR_P (_r1))
13564 : 0 : goto next_after_fail1817;
13565 : 25 : res_op1 = _r1;
13566 : : }
13567 : 25 : tree _r;
13568 : 25 : _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
13569 : 25 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1043, __FILE__, __LINE__, true);
13570 : 25 : return _r;
13571 : : }
13572 : 0 : next_after_fail1817:;
13573 : : }
13574 : : }
13575 : : }
13576 : : break;
13577 : : }
13578 : 1583 : case BIT_AND_EXPR:
13579 : 1583 : {
13580 : 1583 : tree _q20 = TREE_OPERAND (_p0, 0);
13581 : 1583 : tree _q21 = TREE_OPERAND (_p0, 1);
13582 : 1583 : if (CONSTANT_CLASS_P (_q21))
13583 : : {
13584 : 508 : if (CONSTANT_CLASS_P (_p1))
13585 : : {
13586 : 441 : {
13587 : 441 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
13588 : 441 : tree res = generic_simplify_119 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
13589 : 441 : if (res) return res;
13590 : : }
13591 : : }
13592 : : }
13593 : : break;
13594 : : }
13595 : 6349022 : default:;
13596 : : }
13597 : 6349022 : {
13598 : 6349022 : tree _p1_pops[1];
13599 : 6349022 : if (tree_logical_inverted_value (_p1, _p1_pops))
13600 : : {
13601 : 906 : tree _q30 = _p1_pops[0];
13602 : 906 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
13603 : : {
13604 : 1 : {
13605 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
13606 : 1 : tree res = generic_simplify_455 (loc, type, _p0, _p1, captures);
13607 : 1 : if (res) return res;
13608 : : }
13609 : : }
13610 : : }
13611 : : }
13612 : 6349021 : switch (TREE_CODE (_p0))
13613 : : {
13614 : 1924821 : CASE_CONVERT:
13615 : 1924821 : {
13616 : 1924821 : tree _q20 = TREE_OPERAND (_p0, 0);
13617 : 1924821 : switch (TREE_CODE (_q20))
13618 : : {
13619 : 6116 : case NEGATE_EXPR:
13620 : 6116 : {
13621 : 6116 : tree _q30 = TREE_OPERAND (_q20, 0);
13622 : 6116 : if (tree_zero_one_valued_p (_q30))
13623 : : {
13624 : 2 : {
13625 : 2 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p1 };
13626 : 2 : tree res = generic_simplify_450 (loc, type, _p0, _p1, captures);
13627 : 2 : if (res) return res;
13628 : : }
13629 : : }
13630 : : break;
13631 : : }
13632 : : default:;
13633 : : }
13634 : : break;
13635 : : }
13636 : 6349019 : default:;
13637 : : }
13638 : 6349019 : {
13639 : 6349019 : tree _p0_pops[1];
13640 : 6349019 : if (tree_logical_inverted_value (_p0, _p0_pops))
13641 : : {
13642 : 525 : tree _q20 = _p0_pops[0];
13643 : 525 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
13644 : : {
13645 : 12 : {
13646 : 12 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
13647 : 12 : tree res = generic_simplify_455 (loc, type, _p0, _p1, captures);
13648 : 12 : if (res) return res;
13649 : : }
13650 : : }
13651 : : }
13652 : : }
13653 : 6349007 : switch (TREE_CODE (_p1))
13654 : : {
13655 : 901286 : CASE_CONVERT:
13656 : 901286 : {
13657 : 901286 : tree _q30 = TREE_OPERAND (_p1, 0);
13658 : 901286 : switch (TREE_CODE (_q30))
13659 : : {
13660 : 108 : case NEGATE_EXPR:
13661 : 108 : {
13662 : 108 : tree _q40 = TREE_OPERAND (_q30, 0);
13663 : 108 : if (tree_zero_one_valued_p (_q40))
13664 : : {
13665 : 18 : {
13666 : 18 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _p0 };
13667 : 18 : tree res = generic_simplify_450 (loc, type, _p0, _p1, captures);
13668 : 18 : if (res) return res;
13669 : : }
13670 : : }
13671 : : break;
13672 : : }
13673 : : default:;
13674 : : }
13675 : : break;
13676 : : }
13677 : 11206 : case NEGATE_EXPR:
13678 : 11206 : {
13679 : 11206 : tree _q30 = TREE_OPERAND (_p1, 0);
13680 : 11206 : if (tree_zero_one_valued_p (_q30))
13681 : : {
13682 : 24 : {
13683 : 24 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p0 };
13684 : 24 : tree res = generic_simplify_450 (loc, type, _p0, _p1, captures);
13685 : 24 : if (res) return res;
13686 : : }
13687 : : }
13688 : : break;
13689 : : }
13690 : 6348965 : default:;
13691 : : }
13692 : 6348965 : switch (TREE_CODE (_p0))
13693 : : {
13694 : 47810 : case NEGATE_EXPR:
13695 : 47810 : {
13696 : 47810 : tree _q20 = TREE_OPERAND (_p0, 0);
13697 : 47810 : switch (TREE_CODE (_q20))
13698 : : {
13699 : 6303 : CASE_CONVERT:
13700 : 6303 : {
13701 : 6303 : tree _q30 = TREE_OPERAND (_q20, 0);
13702 : 6303 : switch (TREE_CODE (_q30))
13703 : : {
13704 : 0 : case LT_EXPR:
13705 : 0 : {
13706 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13707 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13708 : 0 : {
13709 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13710 : 0 : tree res = generic_simplify_456 (loc, type, _p0, _p1, captures, LT_EXPR);
13711 : 0 : if (res) return res;
13712 : : }
13713 : 0 : break;
13714 : : }
13715 : 0 : case LE_EXPR:
13716 : 0 : {
13717 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13718 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13719 : 0 : {
13720 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13721 : 0 : tree res = generic_simplify_456 (loc, type, _p0, _p1, captures, LE_EXPR);
13722 : 0 : if (res) return res;
13723 : : }
13724 : 0 : break;
13725 : : }
13726 : 0 : case EQ_EXPR:
13727 : 0 : {
13728 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13729 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13730 : 0 : {
13731 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13732 : 0 : tree res = generic_simplify_456 (loc, type, _p0, _p1, captures, EQ_EXPR);
13733 : 0 : if (res) return res;
13734 : : }
13735 : 0 : break;
13736 : : }
13737 : 0 : case NE_EXPR:
13738 : 0 : {
13739 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13740 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13741 : 0 : {
13742 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13743 : 0 : tree res = generic_simplify_456 (loc, type, _p0, _p1, captures, NE_EXPR);
13744 : 0 : if (res) return res;
13745 : : }
13746 : 0 : break;
13747 : : }
13748 : 0 : case GE_EXPR:
13749 : 0 : {
13750 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13751 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13752 : 0 : {
13753 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13754 : 0 : tree res = generic_simplify_456 (loc, type, _p0, _p1, captures, GE_EXPR);
13755 : 0 : if (res) return res;
13756 : : }
13757 : 0 : break;
13758 : : }
13759 : 0 : case GT_EXPR:
13760 : 0 : {
13761 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13762 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13763 : 0 : {
13764 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13765 : 0 : tree res = generic_simplify_456 (loc, type, _p0, _p1, captures, GT_EXPR);
13766 : 0 : if (res) return res;
13767 : : }
13768 : 0 : break;
13769 : : }
13770 : 0 : case UNORDERED_EXPR:
13771 : 0 : {
13772 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13773 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13774 : 0 : {
13775 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13776 : 0 : tree res = generic_simplify_456 (loc, type, _p0, _p1, captures, UNORDERED_EXPR);
13777 : 0 : if (res) return res;
13778 : : }
13779 : 0 : break;
13780 : : }
13781 : 0 : case ORDERED_EXPR:
13782 : 0 : {
13783 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13784 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13785 : 0 : {
13786 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13787 : 0 : tree res = generic_simplify_456 (loc, type, _p0, _p1, captures, ORDERED_EXPR);
13788 : 0 : if (res) return res;
13789 : : }
13790 : 0 : break;
13791 : : }
13792 : 0 : case UNLT_EXPR:
13793 : 0 : {
13794 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13795 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13796 : 0 : {
13797 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13798 : 0 : tree res = generic_simplify_456 (loc, type, _p0, _p1, captures, UNLT_EXPR);
13799 : 0 : if (res) return res;
13800 : : }
13801 : 0 : break;
13802 : : }
13803 : 0 : case UNLE_EXPR:
13804 : 0 : {
13805 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13806 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13807 : 0 : {
13808 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13809 : 0 : tree res = generic_simplify_456 (loc, type, _p0, _p1, captures, UNLE_EXPR);
13810 : 0 : if (res) return res;
13811 : : }
13812 : 0 : break;
13813 : : }
13814 : 0 : case UNGT_EXPR:
13815 : 0 : {
13816 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13817 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13818 : 0 : {
13819 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13820 : 0 : tree res = generic_simplify_456 (loc, type, _p0, _p1, captures, UNGT_EXPR);
13821 : 0 : if (res) return res;
13822 : : }
13823 : 0 : break;
13824 : : }
13825 : 0 : case UNGE_EXPR:
13826 : 0 : {
13827 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13828 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13829 : 0 : {
13830 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13831 : 0 : tree res = generic_simplify_456 (loc, type, _p0, _p1, captures, UNGE_EXPR);
13832 : 0 : if (res) return res;
13833 : : }
13834 : 0 : break;
13835 : : }
13836 : 0 : case UNEQ_EXPR:
13837 : 0 : {
13838 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13839 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13840 : 0 : {
13841 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13842 : 0 : tree res = generic_simplify_456 (loc, type, _p0, _p1, captures, UNEQ_EXPR);
13843 : 0 : if (res) return res;
13844 : : }
13845 : 0 : break;
13846 : : }
13847 : 0 : case LTGT_EXPR:
13848 : 0 : {
13849 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
13850 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
13851 : 0 : {
13852 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
13853 : 0 : tree res = generic_simplify_456 (loc, type, _p0, _p1, captures, LTGT_EXPR);
13854 : 0 : if (res) return res;
13855 : : }
13856 : 0 : break;
13857 : : }
13858 : : default:;
13859 : : }
13860 : : break;
13861 : : }
13862 : : default:;
13863 : : }
13864 : : break;
13865 : : }
13866 : 6348965 : default:;
13867 : : }
13868 : 6348965 : switch (TREE_CODE (_p1))
13869 : : {
13870 : 11182 : case NEGATE_EXPR:
13871 : 11182 : {
13872 : 11182 : tree _q30 = TREE_OPERAND (_p1, 0);
13873 : 11182 : switch (TREE_CODE (_q30))
13874 : : {
13875 : 65 : CASE_CONVERT:
13876 : 65 : {
13877 : 65 : tree _q40 = TREE_OPERAND (_q30, 0);
13878 : 65 : switch (TREE_CODE (_q40))
13879 : : {
13880 : 0 : case LT_EXPR:
13881 : 0 : {
13882 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13883 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13884 : 0 : {
13885 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13886 : 0 : tree res = generic_simplify_457 (loc, type, _p0, _p1, captures, LT_EXPR);
13887 : 0 : if (res) return res;
13888 : : }
13889 : 0 : break;
13890 : : }
13891 : 0 : case LE_EXPR:
13892 : 0 : {
13893 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13894 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13895 : 0 : {
13896 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13897 : 0 : tree res = generic_simplify_457 (loc, type, _p0, _p1, captures, LE_EXPR);
13898 : 0 : if (res) return res;
13899 : : }
13900 : 0 : break;
13901 : : }
13902 : 0 : case EQ_EXPR:
13903 : 0 : {
13904 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13905 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13906 : 0 : {
13907 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13908 : 0 : tree res = generic_simplify_457 (loc, type, _p0, _p1, captures, EQ_EXPR);
13909 : 0 : if (res) return res;
13910 : : }
13911 : 0 : break;
13912 : : }
13913 : 0 : case NE_EXPR:
13914 : 0 : {
13915 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13916 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13917 : 0 : {
13918 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13919 : 0 : tree res = generic_simplify_457 (loc, type, _p0, _p1, captures, NE_EXPR);
13920 : 0 : if (res) return res;
13921 : : }
13922 : 0 : break;
13923 : : }
13924 : 0 : case GE_EXPR:
13925 : 0 : {
13926 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13927 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13928 : 0 : {
13929 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13930 : 0 : tree res = generic_simplify_457 (loc, type, _p0, _p1, captures, GE_EXPR);
13931 : 0 : if (res) return res;
13932 : : }
13933 : 0 : break;
13934 : : }
13935 : 0 : case GT_EXPR:
13936 : 0 : {
13937 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13938 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13939 : 0 : {
13940 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13941 : 0 : tree res = generic_simplify_457 (loc, type, _p0, _p1, captures, GT_EXPR);
13942 : 0 : if (res) return res;
13943 : : }
13944 : 0 : break;
13945 : : }
13946 : 0 : case UNORDERED_EXPR:
13947 : 0 : {
13948 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13949 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13950 : 0 : {
13951 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13952 : 0 : tree res = generic_simplify_457 (loc, type, _p0, _p1, captures, UNORDERED_EXPR);
13953 : 0 : if (res) return res;
13954 : : }
13955 : 0 : break;
13956 : : }
13957 : 0 : case ORDERED_EXPR:
13958 : 0 : {
13959 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13960 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13961 : 0 : {
13962 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13963 : 0 : tree res = generic_simplify_457 (loc, type, _p0, _p1, captures, ORDERED_EXPR);
13964 : 0 : if (res) return res;
13965 : : }
13966 : 0 : break;
13967 : : }
13968 : 0 : case UNLT_EXPR:
13969 : 0 : {
13970 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13971 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13972 : 0 : {
13973 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13974 : 0 : tree res = generic_simplify_457 (loc, type, _p0, _p1, captures, UNLT_EXPR);
13975 : 0 : if (res) return res;
13976 : : }
13977 : 0 : break;
13978 : : }
13979 : 0 : case UNLE_EXPR:
13980 : 0 : {
13981 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13982 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13983 : 0 : {
13984 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13985 : 0 : tree res = generic_simplify_457 (loc, type, _p0, _p1, captures, UNLE_EXPR);
13986 : 0 : if (res) return res;
13987 : : }
13988 : 0 : break;
13989 : : }
13990 : 0 : case UNGT_EXPR:
13991 : 0 : {
13992 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
13993 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
13994 : 0 : {
13995 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
13996 : 0 : tree res = generic_simplify_457 (loc, type, _p0, _p1, captures, UNGT_EXPR);
13997 : 0 : if (res) return res;
13998 : : }
13999 : 0 : break;
14000 : : }
14001 : 0 : case UNGE_EXPR:
14002 : 0 : {
14003 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
14004 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
14005 : 0 : {
14006 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
14007 : 0 : tree res = generic_simplify_457 (loc, type, _p0, _p1, captures, UNGE_EXPR);
14008 : 0 : if (res) return res;
14009 : : }
14010 : 0 : break;
14011 : : }
14012 : 0 : case UNEQ_EXPR:
14013 : 0 : {
14014 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
14015 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
14016 : 0 : {
14017 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
14018 : 0 : tree res = generic_simplify_457 (loc, type, _p0, _p1, captures, UNEQ_EXPR);
14019 : 0 : if (res) return res;
14020 : : }
14021 : 0 : break;
14022 : : }
14023 : 0 : case LTGT_EXPR:
14024 : 0 : {
14025 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
14026 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
14027 : 0 : {
14028 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
14029 : 0 : tree res = generic_simplify_457 (loc, type, _p0, _p1, captures, LTGT_EXPR);
14030 : 0 : if (res) return res;
14031 : : }
14032 : 0 : break;
14033 : : }
14034 : : default:;
14035 : : }
14036 : : break;
14037 : : }
14038 : : default:;
14039 : : }
14040 : : break;
14041 : : }
14042 : 6348965 : default:;
14043 : : }
14044 : 6348965 : switch (TREE_CODE (_p0))
14045 : : {
14046 : 1924817 : CASE_CONVERT:
14047 : 1924817 : {
14048 : 1924817 : tree _q20 = TREE_OPERAND (_p0, 0);
14049 : 1924817 : switch (TREE_CODE (_p1))
14050 : : {
14051 : 903821 : case INTEGER_CST:
14052 : 903821 : {
14053 : 903821 : {
14054 : 903821 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
14055 : 903821 : tree res = generic_simplify_458 (loc, type, _p0, _p1, captures);
14056 : 903821 : if (res) return res;
14057 : : }
14058 : 899085 : break;
14059 : : }
14060 : 1920081 : default:;
14061 : : }
14062 : 1920081 : switch (TREE_CODE (_q20))
14063 : : {
14064 : 74683 : case LSHIFT_EXPR:
14065 : 74683 : {
14066 : 74683 : tree _q30 = TREE_OPERAND (_q20, 0);
14067 : 74683 : tree _q31 = TREE_OPERAND (_q20, 1);
14068 : 74683 : switch (TREE_CODE (_q30))
14069 : : {
14070 : 147 : CASE_CONVERT:
14071 : 147 : {
14072 : 147 : tree _q40 = TREE_OPERAND (_q30, 0);
14073 : 147 : switch (TREE_CODE (_q31))
14074 : : {
14075 : 79 : case INTEGER_CST:
14076 : 79 : {
14077 : 79 : switch (TREE_CODE (_p1))
14078 : : {
14079 : 79 : case INTEGER_CST:
14080 : 79 : {
14081 : 79 : {
14082 : 79 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q40, _q31, _p1 };
14083 : 79 : tree res = generic_simplify_459 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
14084 : 79 : if (res) return res;
14085 : : }
14086 : 79 : break;
14087 : : }
14088 : : default:;
14089 : : }
14090 : : break;
14091 : : }
14092 : : default:;
14093 : : }
14094 : : break;
14095 : : }
14096 : 74683 : default:;
14097 : : }
14098 : 74683 : switch (TREE_CODE (_q31))
14099 : : {
14100 : 79 : case INTEGER_CST:
14101 : 79 : {
14102 : 79 : switch (TREE_CODE (_p1))
14103 : : {
14104 : 79 : case INTEGER_CST:
14105 : 79 : {
14106 : 79 : {
14107 : 79 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q30, _q31, _p1 };
14108 : 79 : tree res = generic_simplify_460 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
14109 : 79 : if (res) return res;
14110 : : }
14111 : 79 : break;
14112 : : }
14113 : : default:;
14114 : : }
14115 : : break;
14116 : : }
14117 : : default:;
14118 : : }
14119 : : break;
14120 : : }
14121 : 71617 : case RSHIFT_EXPR:
14122 : 71617 : {
14123 : 71617 : tree _q30 = TREE_OPERAND (_q20, 0);
14124 : 71617 : tree _q31 = TREE_OPERAND (_q20, 1);
14125 : 71617 : switch (TREE_CODE (_q30))
14126 : : {
14127 : 45760 : CASE_CONVERT:
14128 : 45760 : {
14129 : 45760 : tree _q40 = TREE_OPERAND (_q30, 0);
14130 : 45760 : switch (TREE_CODE (_q31))
14131 : : {
14132 : 45633 : case INTEGER_CST:
14133 : 45633 : {
14134 : 45633 : switch (TREE_CODE (_p1))
14135 : : {
14136 : 45633 : case INTEGER_CST:
14137 : 45633 : {
14138 : 45633 : {
14139 : 45633 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q40, _q31, _p1 };
14140 : 45633 : tree res = generic_simplify_459 (loc, type, _p0, _p1, captures, RSHIFT_EXPR);
14141 : 45633 : if (res) return res;
14142 : : }
14143 : 45576 : break;
14144 : : }
14145 : : default:;
14146 : : }
14147 : : break;
14148 : : }
14149 : 45703 : default:;
14150 : : }
14151 : 45703 : switch (TREE_CODE (_q40))
14152 : : {
14153 : 2 : case CALL_EXPR:
14154 : 2 : switch (get_call_combined_fn (_q40))
14155 : : {
14156 : 0 : case CFN_BUILT_IN_BSWAP128:
14157 : 0 : if (call_expr_nargs (_q40) == 1)
14158 : : {
14159 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
14160 : 0 : switch (TREE_CODE (_q31))
14161 : : {
14162 : 0 : case INTEGER_CST:
14163 : 0 : {
14164 : 0 : switch (TREE_CODE (_p1))
14165 : : {
14166 : 0 : case INTEGER_CST:
14167 : 0 : {
14168 : 0 : {
14169 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q40, _q50, _q31, _p1 };
14170 : 0 : tree res = generic_simplify_461 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP128);
14171 : 0 : if (res) return res;
14172 : : }
14173 : 0 : break;
14174 : : }
14175 : : default:;
14176 : : }
14177 : : break;
14178 : : }
14179 : : default:;
14180 : : }
14181 : : }
14182 : : break;
14183 : 2 : case CFN_BUILT_IN_BSWAP16:
14184 : 2 : if (call_expr_nargs (_q40) == 1)
14185 : : {
14186 : 2 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
14187 : 2 : switch (TREE_CODE (_q31))
14188 : : {
14189 : 2 : case INTEGER_CST:
14190 : 2 : {
14191 : 2 : switch (TREE_CODE (_p1))
14192 : : {
14193 : 2 : case INTEGER_CST:
14194 : 2 : {
14195 : 2 : {
14196 : 2 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q40, _q50, _q31, _p1 };
14197 : 2 : tree res = generic_simplify_461 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP16);
14198 : 2 : if (res) return res;
14199 : : }
14200 : 0 : break;
14201 : : }
14202 : : default:;
14203 : : }
14204 : : break;
14205 : : }
14206 : : default:;
14207 : : }
14208 : : }
14209 : : break;
14210 : 0 : case CFN_BUILT_IN_BSWAP32:
14211 : 0 : if (call_expr_nargs (_q40) == 1)
14212 : : {
14213 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
14214 : 0 : switch (TREE_CODE (_q31))
14215 : : {
14216 : 0 : case INTEGER_CST:
14217 : 0 : {
14218 : 0 : switch (TREE_CODE (_p1))
14219 : : {
14220 : 0 : case INTEGER_CST:
14221 : 0 : {
14222 : 0 : {
14223 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q40, _q50, _q31, _p1 };
14224 : 0 : tree res = generic_simplify_461 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP32);
14225 : 0 : if (res) return res;
14226 : : }
14227 : 0 : break;
14228 : : }
14229 : : default:;
14230 : : }
14231 : : break;
14232 : : }
14233 : : default:;
14234 : : }
14235 : : }
14236 : : break;
14237 : 0 : case CFN_BUILT_IN_BSWAP64:
14238 : 0 : if (call_expr_nargs (_q40) == 1)
14239 : : {
14240 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
14241 : 0 : switch (TREE_CODE (_q31))
14242 : : {
14243 : 0 : case INTEGER_CST:
14244 : 0 : {
14245 : 0 : switch (TREE_CODE (_p1))
14246 : : {
14247 : 0 : case INTEGER_CST:
14248 : 0 : {
14249 : 0 : {
14250 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q40, _q50, _q31, _p1 };
14251 : 0 : tree res = generic_simplify_461 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP64);
14252 : 0 : if (res) return res;
14253 : : }
14254 : 0 : break;
14255 : : }
14256 : : default:;
14257 : : }
14258 : : break;
14259 : : }
14260 : : default:;
14261 : : }
14262 : : }
14263 : : break;
14264 : : default:;
14265 : : }
14266 : : break;
14267 : : default:;
14268 : : }
14269 : : break;
14270 : : }
14271 : 71558 : default:;
14272 : : }
14273 : 71558 : switch (TREE_CODE (_q31))
14274 : : {
14275 : 52073 : case INTEGER_CST:
14276 : 52073 : {
14277 : 52073 : switch (TREE_CODE (_p1))
14278 : : {
14279 : 52001 : case INTEGER_CST:
14280 : 52001 : {
14281 : 52001 : {
14282 : 52001 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q30, _q31, _p1 };
14283 : 52001 : tree res = generic_simplify_460 (loc, type, _p0, _p1, captures, RSHIFT_EXPR);
14284 : 52001 : if (res) return res;
14285 : : }
14286 : 51929 : break;
14287 : : }
14288 : : default:;
14289 : : }
14290 : : break;
14291 : : }
14292 : 71486 : default:;
14293 : : }
14294 : 71486 : switch (TREE_CODE (_q30))
14295 : : {
14296 : 80 : case CALL_EXPR:
14297 : 80 : switch (get_call_combined_fn (_q30))
14298 : : {
14299 : 0 : case CFN_BUILT_IN_BSWAP128:
14300 : 0 : if (call_expr_nargs (_q30) == 1)
14301 : : {
14302 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
14303 : 0 : switch (TREE_CODE (_q31))
14304 : : {
14305 : 0 : case INTEGER_CST:
14306 : 0 : {
14307 : 0 : switch (TREE_CODE (_p1))
14308 : : {
14309 : 0 : case INTEGER_CST:
14310 : 0 : {
14311 : 0 : {
14312 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q30, _q40, _q31, _p1 };
14313 : 0 : tree res = generic_simplify_461 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP128);
14314 : 0 : if (res) return res;
14315 : : }
14316 : 0 : break;
14317 : : }
14318 : : default:;
14319 : : }
14320 : : break;
14321 : : }
14322 : : default:;
14323 : : }
14324 : : }
14325 : : break;
14326 : 9 : case CFN_BUILT_IN_BSWAP16:
14327 : 9 : if (call_expr_nargs (_q30) == 1)
14328 : : {
14329 : 9 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
14330 : 9 : switch (TREE_CODE (_q31))
14331 : : {
14332 : 9 : case INTEGER_CST:
14333 : 9 : {
14334 : 9 : switch (TREE_CODE (_p1))
14335 : : {
14336 : 9 : case INTEGER_CST:
14337 : 9 : {
14338 : 9 : {
14339 : 9 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q30, _q40, _q31, _p1 };
14340 : 9 : tree res = generic_simplify_461 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP16);
14341 : 9 : if (res) return res;
14342 : : }
14343 : 0 : break;
14344 : : }
14345 : : default:;
14346 : : }
14347 : : break;
14348 : : }
14349 : : default:;
14350 : : }
14351 : : }
14352 : : break;
14353 : 0 : case CFN_BUILT_IN_BSWAP32:
14354 : 0 : if (call_expr_nargs (_q30) == 1)
14355 : : {
14356 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
14357 : 0 : switch (TREE_CODE (_q31))
14358 : : {
14359 : 0 : case INTEGER_CST:
14360 : 0 : {
14361 : 0 : switch (TREE_CODE (_p1))
14362 : : {
14363 : 0 : case INTEGER_CST:
14364 : 0 : {
14365 : 0 : {
14366 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q30, _q40, _q31, _p1 };
14367 : 0 : tree res = generic_simplify_461 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP32);
14368 : 0 : if (res) return res;
14369 : : }
14370 : 0 : break;
14371 : : }
14372 : : default:;
14373 : : }
14374 : : break;
14375 : : }
14376 : : default:;
14377 : : }
14378 : : }
14379 : : break;
14380 : 71 : case CFN_BUILT_IN_BSWAP64:
14381 : 71 : if (call_expr_nargs (_q30) == 1)
14382 : : {
14383 : 71 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
14384 : 71 : switch (TREE_CODE (_q31))
14385 : : {
14386 : 70 : case INTEGER_CST:
14387 : 70 : {
14388 : 70 : switch (TREE_CODE (_p1))
14389 : : {
14390 : 70 : case INTEGER_CST:
14391 : 70 : {
14392 : 70 : {
14393 : 70 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q30, _q40, _q31, _p1 };
14394 : 70 : tree res = generic_simplify_461 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP64);
14395 : 70 : if (res) return res;
14396 : : }
14397 : 0 : break;
14398 : : }
14399 : : default:;
14400 : : }
14401 : : break;
14402 : : }
14403 : : default:;
14404 : : }
14405 : : }
14406 : : break;
14407 : : default:;
14408 : : }
14409 : : break;
14410 : : default:;
14411 : : }
14412 : : break;
14413 : : }
14414 : 31837 : case CALL_EXPR:
14415 : 31837 : switch (get_call_combined_fn (_q20))
14416 : : {
14417 : 0 : case CFN_BUILT_IN_BSWAP128:
14418 : 0 : if (call_expr_nargs (_q20) == 1)
14419 : : {
14420 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
14421 : 0 : switch (TREE_CODE (_p1))
14422 : : {
14423 : 0 : case INTEGER_CST:
14424 : 0 : {
14425 : 0 : {
14426 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
14427 : 0 : tree res = generic_simplify_462 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP128);
14428 : 0 : if (res) return res;
14429 : : }
14430 : 0 : break;
14431 : : }
14432 : : default:;
14433 : : }
14434 : : }
14435 : : break;
14436 : 10 : case CFN_BUILT_IN_BSWAP16:
14437 : 10 : if (call_expr_nargs (_q20) == 1)
14438 : : {
14439 : 10 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
14440 : 10 : switch (TREE_CODE (_p1))
14441 : : {
14442 : 10 : case INTEGER_CST:
14443 : 10 : {
14444 : 10 : {
14445 : 10 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
14446 : 10 : tree res = generic_simplify_462 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP16);
14447 : 10 : if (res) return res;
14448 : : }
14449 : 0 : break;
14450 : : }
14451 : : default:;
14452 : : }
14453 : : }
14454 : : break;
14455 : 4 : case CFN_BUILT_IN_BSWAP32:
14456 : 4 : if (call_expr_nargs (_q20) == 1)
14457 : : {
14458 : 4 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
14459 : 4 : switch (TREE_CODE (_p1))
14460 : : {
14461 : 4 : case INTEGER_CST:
14462 : 4 : {
14463 : 4 : {
14464 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
14465 : 4 : tree res = generic_simplify_462 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP32);
14466 : 4 : if (res) return res;
14467 : : }
14468 : 0 : break;
14469 : : }
14470 : : default:;
14471 : : }
14472 : : }
14473 : : break;
14474 : 4 : case CFN_BUILT_IN_BSWAP64:
14475 : 4 : if (call_expr_nargs (_q20) == 1)
14476 : : {
14477 : 4 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
14478 : 4 : switch (TREE_CODE (_p1))
14479 : : {
14480 : 4 : case INTEGER_CST:
14481 : 4 : {
14482 : 4 : {
14483 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
14484 : 4 : tree res = generic_simplify_462 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP64);
14485 : 4 : if (res) return res;
14486 : : }
14487 : 0 : break;
14488 : : }
14489 : : default:;
14490 : : }
14491 : : }
14492 : : break;
14493 : : default:;
14494 : : }
14495 : : break;
14496 : : default:;
14497 : : }
14498 : : break;
14499 : : }
14500 : 6344001 : default:;
14501 : : }
14502 : 6344001 : switch (TREE_CODE (_p1))
14503 : : {
14504 : 4418393 : case INTEGER_CST:
14505 : 4418393 : {
14506 : 4418393 : {
14507 : 4418393 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
14508 : 4418393 : tree res = generic_simplify_458 (loc, type, _p0, _p1, captures);
14509 : 4418393 : if (res) return res;
14510 : : }
14511 : 4418393 : break;
14512 : : }
14513 : 6344001 : default:;
14514 : : }
14515 : 6344001 : switch (TREE_CODE (_p0))
14516 : : {
14517 : 356 : case GT_EXPR:
14518 : 356 : {
14519 : 356 : tree _q20 = TREE_OPERAND (_p0, 0);
14520 : 356 : tree _q21 = TREE_OPERAND (_p0, 1);
14521 : 356 : switch (TREE_CODE (_p1))
14522 : : {
14523 : 59 : case EQ_EXPR:
14524 : 59 : {
14525 : 59 : tree _q50 = TREE_OPERAND (_p1, 0);
14526 : 59 : tree _q51 = TREE_OPERAND (_p1, 1);
14527 : 59 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14528 : : {
14529 : 8 : if (tree_min_value (_q51))
14530 : : {
14531 : 4 : {
14532 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
14533 : 4 : tree res = generic_simplify_463 (loc, type, _p0, _p1, captures, EQ_EXPR);
14534 : 4 : if (res) return res;
14535 : : }
14536 : : }
14537 : : }
14538 : 55 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14539 : : {
14540 : 0 : if (tree_max_value (_q51))
14541 : : {
14542 : 0 : {
14543 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
14544 : 0 : tree res = generic_simplify_464 (loc, type, _p0, _p1, captures, EQ_EXPR);
14545 : 0 : if (res) return res;
14546 : : }
14547 : : }
14548 : : }
14549 : : break;
14550 : : }
14551 : 4 : case NE_EXPR:
14552 : 4 : {
14553 : 4 : tree _q50 = TREE_OPERAND (_p1, 0);
14554 : 4 : tree _q51 = TREE_OPERAND (_p1, 1);
14555 : 4 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14556 : : {
14557 : 4 : if (tree_min_value (_q51))
14558 : : {
14559 : 4 : {
14560 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
14561 : 4 : tree res = generic_simplify_463 (loc, type, _p0, _p1, captures, NE_EXPR);
14562 : 4 : if (res) return res;
14563 : : }
14564 : : }
14565 : : }
14566 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14567 : : {
14568 : 0 : if (tree_max_value (_q51))
14569 : : {
14570 : 0 : {
14571 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
14572 : 0 : tree res = generic_simplify_464 (loc, type, _p0, _p1, captures, NE_EXPR);
14573 : 0 : if (res) return res;
14574 : : }
14575 : : }
14576 : : }
14577 : : break;
14578 : : }
14579 : 348 : default:;
14580 : : }
14581 : 348 : switch (TREE_CODE (_q20))
14582 : : {
14583 : 0 : CASE_CONVERT:
14584 : 0 : {
14585 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
14586 : 0 : switch (TREE_CODE (_p1))
14587 : : {
14588 : 0 : case EQ_EXPR:
14589 : 0 : {
14590 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14591 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14592 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
14593 : : {
14594 : 0 : {
14595 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
14596 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
14597 : 0 : if (res) return res;
14598 : : }
14599 : : }
14600 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
14601 : : {
14602 : 0 : {
14603 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
14604 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
14605 : 0 : if (res) return res;
14606 : : }
14607 : : }
14608 : : break;
14609 : : }
14610 : 0 : case NE_EXPR:
14611 : 0 : {
14612 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14613 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14614 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
14615 : : {
14616 : 0 : {
14617 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
14618 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
14619 : 0 : if (res) return res;
14620 : : }
14621 : : }
14622 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
14623 : : {
14624 : 0 : {
14625 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
14626 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
14627 : 0 : if (res) return res;
14628 : : }
14629 : : }
14630 : : break;
14631 : : }
14632 : : default:;
14633 : : }
14634 : : break;
14635 : : }
14636 : 348 : default:;
14637 : : }
14638 : 348 : switch (TREE_CODE (_q21))
14639 : : {
14640 : 0 : CASE_CONVERT:
14641 : 0 : {
14642 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
14643 : 0 : switch (TREE_CODE (_p1))
14644 : : {
14645 : 0 : case EQ_EXPR:
14646 : 0 : {
14647 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14648 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14649 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
14650 : : {
14651 : 0 : {
14652 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
14653 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
14654 : 0 : if (res) return res;
14655 : : }
14656 : : }
14657 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
14658 : : {
14659 : 0 : {
14660 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
14661 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
14662 : 0 : if (res) return res;
14663 : : }
14664 : : }
14665 : : break;
14666 : : }
14667 : 0 : case NE_EXPR:
14668 : 0 : {
14669 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14670 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14671 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
14672 : : {
14673 : 0 : {
14674 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
14675 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
14676 : 0 : if (res) return res;
14677 : : }
14678 : : }
14679 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
14680 : : {
14681 : 0 : {
14682 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
14683 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
14684 : 0 : if (res) return res;
14685 : : }
14686 : : }
14687 : : break;
14688 : : }
14689 : : default:;
14690 : : }
14691 : : break;
14692 : : }
14693 : 348 : default:;
14694 : : }
14695 : 348 : switch (TREE_CODE (_p1))
14696 : : {
14697 : 55 : case EQ_EXPR:
14698 : 55 : {
14699 : 55 : tree _q50 = TREE_OPERAND (_p1, 0);
14700 : 55 : tree _q51 = TREE_OPERAND (_p1, 1);
14701 : 55 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14702 : : {
14703 : 4 : {
14704 : 4 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
14705 : 4 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
14706 : 4 : if (res) return res;
14707 : : }
14708 : : }
14709 : 55 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14710 : : {
14711 : 0 : {
14712 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
14713 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
14714 : 0 : if (res) return res;
14715 : : }
14716 : : }
14717 : 55 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14718 : : {
14719 : 0 : {
14720 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
14721 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
14722 : 0 : if (res) return res;
14723 : : }
14724 : : }
14725 : 55 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14726 : : {
14727 : 0 : {
14728 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
14729 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
14730 : 0 : if (res) return res;
14731 : : }
14732 : : }
14733 : : break;
14734 : : }
14735 : 0 : case NE_EXPR:
14736 : 0 : {
14737 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
14738 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
14739 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14740 : : {
14741 : 0 : {
14742 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
14743 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
14744 : 0 : if (res) return res;
14745 : : }
14746 : : }
14747 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14748 : : {
14749 : 0 : {
14750 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
14751 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
14752 : 0 : if (res) return res;
14753 : : }
14754 : : }
14755 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14756 : : {
14757 : 0 : {
14758 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
14759 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
14760 : 0 : if (res) return res;
14761 : : }
14762 : : }
14763 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14764 : : {
14765 : 0 : {
14766 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
14767 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
14768 : 0 : if (res) return res;
14769 : : }
14770 : : }
14771 : : break;
14772 : : }
14773 : 67 : case LT_EXPR:
14774 : 67 : {
14775 : 67 : tree _q50 = TREE_OPERAND (_p1, 0);
14776 : 67 : tree _q51 = TREE_OPERAND (_p1, 1);
14777 : 67 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14778 : : {
14779 : 4 : {
14780 : 4 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14781 : 4 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
14782 : 4 : if (res) return res;
14783 : : }
14784 : : }
14785 : 67 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14786 : : {
14787 : 0 : {
14788 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14789 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GT_EXPR, GT_EXPR);
14790 : 0 : if (res) return res;
14791 : : }
14792 : : }
14793 : 67 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14794 : : {
14795 : 0 : {
14796 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
14797 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LT_EXPR, LT_EXPR);
14798 : 0 : if (res) return res;
14799 : : }
14800 : : }
14801 : 67 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14802 : : {
14803 : 4 : {
14804 : 4 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
14805 : 4 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
14806 : 4 : if (res) return res;
14807 : : }
14808 : : }
14809 : : break;
14810 : : }
14811 : 72 : case LE_EXPR:
14812 : 72 : {
14813 : 72 : tree _q50 = TREE_OPERAND (_p1, 0);
14814 : 72 : tree _q51 = TREE_OPERAND (_p1, 1);
14815 : 72 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14816 : : {
14817 : 23 : {
14818 : 23 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14819 : 23 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR);
14820 : 23 : if (res) return res;
14821 : : }
14822 : : }
14823 : 72 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14824 : : {
14825 : 0 : {
14826 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14827 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GE_EXPR, GT_EXPR);
14828 : 0 : if (res) return res;
14829 : : }
14830 : : }
14831 : 72 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14832 : : {
14833 : 0 : {
14834 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
14835 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LE_EXPR, LT_EXPR);
14836 : 0 : if (res) return res;
14837 : : }
14838 : : }
14839 : 72 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14840 : : {
14841 : 0 : {
14842 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
14843 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GE_EXPR, LT_EXPR);
14844 : 0 : if (res) return res;
14845 : : }
14846 : : }
14847 : : break;
14848 : : }
14849 : 85 : case GT_EXPR:
14850 : 85 : {
14851 : 85 : tree _q50 = TREE_OPERAND (_p1, 0);
14852 : 85 : tree _q51 = TREE_OPERAND (_p1, 1);
14853 : 85 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14854 : : {
14855 : 0 : {
14856 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14857 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GT_EXPR, GT_EXPR);
14858 : 0 : if (res) return res;
14859 : : }
14860 : : }
14861 : 85 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14862 : : {
14863 : 0 : {
14864 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14865 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
14866 : 0 : if (res) return res;
14867 : : }
14868 : : }
14869 : 85 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14870 : : {
14871 : 0 : {
14872 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
14873 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
14874 : 0 : if (res) return res;
14875 : : }
14876 : : }
14877 : 85 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14878 : : {
14879 : 35 : {
14880 : 35 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
14881 : 35 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LT_EXPR, LT_EXPR);
14882 : 35 : if (res) return res;
14883 : : }
14884 : : }
14885 : : break;
14886 : : }
14887 : 0 : case GE_EXPR:
14888 : 0 : {
14889 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
14890 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
14891 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14892 : : {
14893 : 0 : {
14894 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14895 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GE_EXPR, GT_EXPR);
14896 : 0 : if (res) return res;
14897 : : }
14898 : : }
14899 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14900 : : {
14901 : 0 : {
14902 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14903 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR);
14904 : 0 : if (res) return res;
14905 : : }
14906 : : }
14907 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14908 : : {
14909 : 0 : {
14910 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
14911 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GE_EXPR, LT_EXPR);
14912 : 0 : if (res) return res;
14913 : : }
14914 : : }
14915 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14916 : : {
14917 : 0 : {
14918 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
14919 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LE_EXPR, LT_EXPR);
14920 : 0 : if (res) return res;
14921 : : }
14922 : : }
14923 : : break;
14924 : : }
14925 : : default:;
14926 : : }
14927 : : break;
14928 : : }
14929 : 92 : case LT_EXPR:
14930 : 92 : {
14931 : 92 : tree _q20 = TREE_OPERAND (_p0, 0);
14932 : 92 : tree _q21 = TREE_OPERAND (_p0, 1);
14933 : 92 : switch (TREE_CODE (_p1))
14934 : : {
14935 : 35 : case EQ_EXPR:
14936 : 35 : {
14937 : 35 : tree _q50 = TREE_OPERAND (_p1, 0);
14938 : 35 : tree _q51 = TREE_OPERAND (_p1, 1);
14939 : 35 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14940 : : {
14941 : 0 : if (tree_min_value (_q51))
14942 : : {
14943 : 0 : {
14944 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
14945 : 0 : tree res = generic_simplify_463 (loc, type, _p0, _p1, captures, EQ_EXPR);
14946 : 0 : if (res) return res;
14947 : : }
14948 : : }
14949 : : }
14950 : 35 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14951 : : {
14952 : 4 : if (tree_max_value (_q51))
14953 : : {
14954 : 4 : {
14955 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
14956 : 4 : tree res = generic_simplify_464 (loc, type, _p0, _p1, captures, EQ_EXPR);
14957 : 4 : if (res) return res;
14958 : : }
14959 : : }
14960 : : }
14961 : : break;
14962 : : }
14963 : 6 : case NE_EXPR:
14964 : 6 : {
14965 : 6 : tree _q50 = TREE_OPERAND (_p1, 0);
14966 : 6 : tree _q51 = TREE_OPERAND (_p1, 1);
14967 : 6 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14968 : : {
14969 : 0 : if (tree_min_value (_q51))
14970 : : {
14971 : 0 : {
14972 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
14973 : 0 : tree res = generic_simplify_463 (loc, type, _p0, _p1, captures, NE_EXPR);
14974 : 0 : if (res) return res;
14975 : : }
14976 : : }
14977 : : }
14978 : 6 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14979 : : {
14980 : 4 : if (tree_max_value (_q51))
14981 : : {
14982 : 4 : {
14983 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
14984 : 4 : tree res = generic_simplify_464 (loc, type, _p0, _p1, captures, NE_EXPR);
14985 : 4 : if (res) return res;
14986 : : }
14987 : : }
14988 : : }
14989 : : break;
14990 : : }
14991 : 84 : default:;
14992 : : }
14993 : 84 : switch (TREE_CODE (_q20))
14994 : : {
14995 : 8 : CASE_CONVERT:
14996 : 8 : {
14997 : 8 : tree _q30 = TREE_OPERAND (_q20, 0);
14998 : 8 : switch (TREE_CODE (_p1))
14999 : : {
15000 : 0 : case EQ_EXPR:
15001 : 0 : {
15002 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
15003 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
15004 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
15005 : : {
15006 : 0 : {
15007 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
15008 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15009 : 0 : if (res) return res;
15010 : : }
15011 : : }
15012 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
15013 : : {
15014 : 0 : {
15015 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
15016 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15017 : 0 : if (res) return res;
15018 : : }
15019 : : }
15020 : : break;
15021 : : }
15022 : 0 : case NE_EXPR:
15023 : 0 : {
15024 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
15025 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
15026 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
15027 : : {
15028 : 0 : {
15029 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
15030 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
15031 : 0 : if (res) return res;
15032 : : }
15033 : : }
15034 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
15035 : : {
15036 : 0 : {
15037 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
15038 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
15039 : 0 : if (res) return res;
15040 : : }
15041 : : }
15042 : : break;
15043 : : }
15044 : : default:;
15045 : : }
15046 : : break;
15047 : : }
15048 : 84 : default:;
15049 : : }
15050 : 84 : switch (TREE_CODE (_q21))
15051 : : {
15052 : 5 : CASE_CONVERT:
15053 : 5 : {
15054 : 5 : tree _q40 = TREE_OPERAND (_q21, 0);
15055 : 5 : switch (TREE_CODE (_p1))
15056 : : {
15057 : 0 : case EQ_EXPR:
15058 : 0 : {
15059 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
15060 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
15061 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
15062 : : {
15063 : 0 : {
15064 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
15065 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15066 : 0 : if (res) return res;
15067 : : }
15068 : : }
15069 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
15070 : : {
15071 : 0 : {
15072 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
15073 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15074 : 0 : if (res) return res;
15075 : : }
15076 : : }
15077 : : break;
15078 : : }
15079 : 0 : case NE_EXPR:
15080 : 0 : {
15081 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
15082 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
15083 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
15084 : : {
15085 : 0 : {
15086 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
15087 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
15088 : 0 : if (res) return res;
15089 : : }
15090 : : }
15091 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
15092 : : {
15093 : 0 : {
15094 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
15095 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
15096 : 0 : if (res) return res;
15097 : : }
15098 : : }
15099 : : break;
15100 : : }
15101 : : default:;
15102 : : }
15103 : : break;
15104 : : }
15105 : 84 : default:;
15106 : : }
15107 : 84 : switch (TREE_CODE (_p1))
15108 : : {
15109 : 31 : case EQ_EXPR:
15110 : 31 : {
15111 : 31 : tree _q50 = TREE_OPERAND (_p1, 0);
15112 : 31 : tree _q51 = TREE_OPERAND (_p1, 1);
15113 : 31 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15114 : : {
15115 : 0 : {
15116 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
15117 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15118 : 0 : if (res) return res;
15119 : : }
15120 : : }
15121 : 31 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15122 : : {
15123 : 0 : {
15124 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
15125 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15126 : 0 : if (res) return res;
15127 : : }
15128 : : }
15129 : 31 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15130 : : {
15131 : 0 : {
15132 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
15133 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15134 : 0 : if (res) return res;
15135 : : }
15136 : : }
15137 : 31 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15138 : : {
15139 : 0 : {
15140 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
15141 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15142 : 0 : if (res) return res;
15143 : : }
15144 : : }
15145 : : break;
15146 : : }
15147 : 2 : case NE_EXPR:
15148 : 2 : {
15149 : 2 : tree _q50 = TREE_OPERAND (_p1, 0);
15150 : 2 : tree _q51 = TREE_OPERAND (_p1, 1);
15151 : 2 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15152 : : {
15153 : 0 : {
15154 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
15155 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
15156 : 0 : if (res) return res;
15157 : : }
15158 : : }
15159 : 2 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15160 : : {
15161 : 0 : {
15162 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
15163 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
15164 : 0 : if (res) return res;
15165 : : }
15166 : : }
15167 : 2 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15168 : : {
15169 : 0 : {
15170 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
15171 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
15172 : 0 : if (res) return res;
15173 : : }
15174 : : }
15175 : 2 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15176 : : {
15177 : 2 : {
15178 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
15179 : 2 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
15180 : 2 : if (res) return res;
15181 : : }
15182 : : }
15183 : : break;
15184 : : }
15185 : 8 : case LT_EXPR:
15186 : 8 : {
15187 : 8 : tree _q50 = TREE_OPERAND (_p1, 0);
15188 : 8 : tree _q51 = TREE_OPERAND (_p1, 1);
15189 : 8 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15190 : : {
15191 : 0 : {
15192 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
15193 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LT_EXPR, LT_EXPR);
15194 : 0 : if (res) return res;
15195 : : }
15196 : : }
15197 : 8 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15198 : : {
15199 : 0 : {
15200 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
15201 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
15202 : 0 : if (res) return res;
15203 : : }
15204 : : }
15205 : 8 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15206 : : {
15207 : 0 : {
15208 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
15209 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
15210 : 0 : if (res) return res;
15211 : : }
15212 : : }
15213 : 8 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15214 : : {
15215 : 0 : {
15216 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
15217 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GT_EXPR, GT_EXPR);
15218 : 0 : if (res) return res;
15219 : : }
15220 : : }
15221 : : break;
15222 : : }
15223 : 0 : case LE_EXPR:
15224 : 0 : {
15225 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15226 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15227 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15228 : : {
15229 : 0 : {
15230 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
15231 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LE_EXPR, LT_EXPR);
15232 : 0 : if (res) return res;
15233 : : }
15234 : : }
15235 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15236 : : {
15237 : 0 : {
15238 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
15239 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GE_EXPR, LT_EXPR);
15240 : 0 : if (res) return res;
15241 : : }
15242 : : }
15243 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15244 : : {
15245 : 0 : {
15246 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
15247 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR);
15248 : 0 : if (res) return res;
15249 : : }
15250 : : }
15251 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15252 : : {
15253 : 0 : {
15254 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
15255 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GE_EXPR, GT_EXPR);
15256 : 0 : if (res) return res;
15257 : : }
15258 : : }
15259 : : break;
15260 : : }
15261 : 5 : case GT_EXPR:
15262 : 5 : {
15263 : 5 : tree _q50 = TREE_OPERAND (_p1, 0);
15264 : 5 : tree _q51 = TREE_OPERAND (_p1, 1);
15265 : 5 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15266 : : {
15267 : 4 : {
15268 : 4 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
15269 : 4 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
15270 : 4 : if (res) return res;
15271 : : }
15272 : : }
15273 : 1 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15274 : : {
15275 : 0 : {
15276 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
15277 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LT_EXPR, LT_EXPR);
15278 : 0 : if (res) return res;
15279 : : }
15280 : : }
15281 : 1 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15282 : : {
15283 : 0 : {
15284 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
15285 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GT_EXPR, GT_EXPR);
15286 : 0 : if (res) return res;
15287 : : }
15288 : : }
15289 : 1 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15290 : : {
15291 : 0 : {
15292 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
15293 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
15294 : 0 : if (res) return res;
15295 : : }
15296 : : }
15297 : : break;
15298 : : }
15299 : 0 : case GE_EXPR:
15300 : 0 : {
15301 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15302 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15303 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15304 : : {
15305 : 0 : {
15306 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
15307 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GE_EXPR, LT_EXPR);
15308 : 0 : if (res) return res;
15309 : : }
15310 : : }
15311 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15312 : : {
15313 : 0 : {
15314 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
15315 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LE_EXPR, LT_EXPR);
15316 : 0 : if (res) return res;
15317 : : }
15318 : : }
15319 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15320 : : {
15321 : 0 : {
15322 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
15323 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GE_EXPR, GT_EXPR);
15324 : 0 : if (res) return res;
15325 : : }
15326 : : }
15327 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15328 : : {
15329 : 0 : {
15330 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
15331 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR);
15332 : 0 : if (res) return res;
15333 : : }
15334 : : }
15335 : : break;
15336 : : }
15337 : : default:;
15338 : : }
15339 : : break;
15340 : : }
15341 : 1069 : case EQ_EXPR:
15342 : 1069 : {
15343 : 1069 : tree _q20 = TREE_OPERAND (_p0, 0);
15344 : 1069 : tree _q21 = TREE_OPERAND (_p0, 1);
15345 : 1069 : if (tree_min_value (_q21))
15346 : : {
15347 : 40 : switch (TREE_CODE (_p1))
15348 : : {
15349 : 0 : case GT_EXPR:
15350 : 0 : {
15351 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15352 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15353 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15354 : : {
15355 : 0 : {
15356 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q51 };
15357 : 0 : tree res = generic_simplify_468 (loc, type, _p0, _p1, captures, EQ_EXPR);
15358 : 0 : if (res) return res;
15359 : : }
15360 : : }
15361 : : break;
15362 : : }
15363 : 14 : case LT_EXPR:
15364 : 14 : {
15365 : 14 : tree _q50 = TREE_OPERAND (_p1, 0);
15366 : 14 : tree _q51 = TREE_OPERAND (_p1, 1);
15367 : 14 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15368 : : {
15369 : 0 : {
15370 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q50 };
15371 : 0 : tree res = generic_simplify_468 (loc, type, _p0, _p1, captures, EQ_EXPR);
15372 : 0 : if (res) return res;
15373 : : }
15374 : : }
15375 : : break;
15376 : : }
15377 : 0 : case LE_EXPR:
15378 : 0 : {
15379 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15380 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15381 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15382 : : {
15383 : 0 : {
15384 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q51, _p0 };
15385 : 0 : tree res = generic_simplify_469 (loc, type, _p0, _p1, captures);
15386 : 0 : if (res) return res;
15387 : : }
15388 : : }
15389 : : break;
15390 : : }
15391 : 0 : case GE_EXPR:
15392 : 0 : {
15393 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15394 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15395 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15396 : : {
15397 : 0 : {
15398 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q50, _p0 };
15399 : 0 : tree res = generic_simplify_469 (loc, type, _p0, _p1, captures);
15400 : 0 : if (res) return res;
15401 : : }
15402 : : }
15403 : : break;
15404 : : }
15405 : : default:;
15406 : : }
15407 : : }
15408 : 1069 : if (tree_max_value (_q21))
15409 : : {
15410 : 0 : switch (TREE_CODE (_p1))
15411 : : {
15412 : 0 : case LT_EXPR:
15413 : 0 : {
15414 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15415 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15416 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15417 : : {
15418 : 0 : {
15419 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q51 };
15420 : 0 : tree res = generic_simplify_470 (loc, type, _p0, _p1, captures, EQ_EXPR);
15421 : 0 : if (res) return res;
15422 : : }
15423 : : }
15424 : : break;
15425 : : }
15426 : 0 : case GT_EXPR:
15427 : 0 : {
15428 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15429 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15430 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15431 : : {
15432 : 0 : {
15433 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q50 };
15434 : 0 : tree res = generic_simplify_470 (loc, type, _p0, _p1, captures, EQ_EXPR);
15435 : 0 : if (res) return res;
15436 : : }
15437 : : }
15438 : : break;
15439 : : }
15440 : 0 : case GE_EXPR:
15441 : 0 : {
15442 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15443 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15444 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15445 : : {
15446 : 0 : {
15447 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q51, _p0 };
15448 : 0 : tree res = generic_simplify_471 (loc, type, _p0, _p1, captures);
15449 : 0 : if (res) return res;
15450 : : }
15451 : : }
15452 : : break;
15453 : : }
15454 : 0 : case LE_EXPR:
15455 : 0 : {
15456 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15457 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15458 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15459 : : {
15460 : 0 : {
15461 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q50, _p0 };
15462 : 0 : tree res = generic_simplify_471 (loc, type, _p0, _p1, captures);
15463 : 0 : if (res) return res;
15464 : : }
15465 : : }
15466 : : break;
15467 : : }
15468 : : default:;
15469 : : }
15470 : : }
15471 : 1069 : switch (TREE_CODE (_p1))
15472 : : {
15473 : 534 : case EQ_EXPR:
15474 : 534 : {
15475 : 534 : tree _q50 = TREE_OPERAND (_p1, 0);
15476 : 534 : tree _q51 = TREE_OPERAND (_p1, 1);
15477 : 534 : switch (TREE_CODE (_q50))
15478 : : {
15479 : 0 : CASE_CONVERT:
15480 : 0 : {
15481 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
15482 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
15483 : : {
15484 : 0 : {
15485 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15486 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15487 : 0 : if (res) return res;
15488 : : }
15489 : : }
15490 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
15491 : : {
15492 : 0 : {
15493 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15494 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15495 : 0 : if (res) return res;
15496 : : }
15497 : : }
15498 : : break;
15499 : : }
15500 : 534 : default:;
15501 : : }
15502 : 534 : switch (TREE_CODE (_q51))
15503 : : {
15504 : 0 : CASE_CONVERT:
15505 : 0 : {
15506 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
15507 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
15508 : : {
15509 : 0 : {
15510 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15511 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15512 : 0 : if (res) return res;
15513 : : }
15514 : : }
15515 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
15516 : : {
15517 : 0 : {
15518 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15519 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15520 : 0 : if (res) return res;
15521 : : }
15522 : : }
15523 : : break;
15524 : : }
15525 : : default:;
15526 : : }
15527 : : break;
15528 : : }
15529 : 33 : case NE_EXPR:
15530 : 33 : {
15531 : 33 : tree _q50 = TREE_OPERAND (_p1, 0);
15532 : 33 : tree _q51 = TREE_OPERAND (_p1, 1);
15533 : 33 : switch (TREE_CODE (_q50))
15534 : : {
15535 : 0 : CASE_CONVERT:
15536 : 0 : {
15537 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
15538 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
15539 : : {
15540 : 0 : {
15541 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15542 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
15543 : 0 : if (res) return res;
15544 : : }
15545 : : }
15546 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
15547 : : {
15548 : 0 : {
15549 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15550 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
15551 : 0 : if (res) return res;
15552 : : }
15553 : : }
15554 : : break;
15555 : : }
15556 : 33 : default:;
15557 : : }
15558 : 33 : switch (TREE_CODE (_q51))
15559 : : {
15560 : 0 : CASE_CONVERT:
15561 : 0 : {
15562 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
15563 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
15564 : : {
15565 : 0 : {
15566 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15567 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
15568 : 0 : if (res) return res;
15569 : : }
15570 : : }
15571 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
15572 : : {
15573 : 0 : {
15574 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15575 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
15576 : 0 : if (res) return res;
15577 : : }
15578 : : }
15579 : : break;
15580 : : }
15581 : : default:;
15582 : : }
15583 : : break;
15584 : : }
15585 : 19 : case LT_EXPR:
15586 : 19 : {
15587 : 19 : tree _q50 = TREE_OPERAND (_p1, 0);
15588 : 19 : tree _q51 = TREE_OPERAND (_p1, 1);
15589 : 19 : switch (TREE_CODE (_q50))
15590 : : {
15591 : 0 : CASE_CONVERT:
15592 : 0 : {
15593 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
15594 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
15595 : : {
15596 : 0 : {
15597 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15598 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15599 : 0 : if (res) return res;
15600 : : }
15601 : : }
15602 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
15603 : : {
15604 : 0 : {
15605 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15606 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15607 : 0 : if (res) return res;
15608 : : }
15609 : : }
15610 : : break;
15611 : : }
15612 : 19 : default:;
15613 : : }
15614 : 19 : switch (TREE_CODE (_q51))
15615 : : {
15616 : 0 : CASE_CONVERT:
15617 : 0 : {
15618 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
15619 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
15620 : : {
15621 : 0 : {
15622 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15623 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15624 : 0 : if (res) return res;
15625 : : }
15626 : : }
15627 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
15628 : : {
15629 : 0 : {
15630 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15631 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15632 : 0 : if (res) return res;
15633 : : }
15634 : : }
15635 : : break;
15636 : : }
15637 : : default:;
15638 : : }
15639 : : break;
15640 : : }
15641 : 12 : case GT_EXPR:
15642 : 12 : {
15643 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
15644 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
15645 : 12 : switch (TREE_CODE (_q50))
15646 : : {
15647 : 0 : CASE_CONVERT:
15648 : 0 : {
15649 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
15650 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
15651 : : {
15652 : 0 : {
15653 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15654 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15655 : 0 : if (res) return res;
15656 : : }
15657 : : }
15658 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
15659 : : {
15660 : 0 : {
15661 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15662 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
15663 : 0 : if (res) return res;
15664 : : }
15665 : : }
15666 : : break;
15667 : : }
15668 : 12 : default:;
15669 : : }
15670 : 12 : switch (TREE_CODE (_q51))
15671 : : {
15672 : 0 : CASE_CONVERT:
15673 : 0 : {
15674 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
15675 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
15676 : : {
15677 : 0 : {
15678 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15679 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15680 : 0 : if (res) return res;
15681 : : }
15682 : : }
15683 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
15684 : : {
15685 : 0 : {
15686 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15687 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
15688 : 0 : if (res) return res;
15689 : : }
15690 : : }
15691 : : break;
15692 : : }
15693 : : default:;
15694 : : }
15695 : : break;
15696 : : }
15697 : 36 : case LE_EXPR:
15698 : 36 : {
15699 : 36 : tree _q50 = TREE_OPERAND (_p1, 0);
15700 : 36 : tree _q51 = TREE_OPERAND (_p1, 1);
15701 : 36 : switch (TREE_CODE (_q50))
15702 : : {
15703 : 12 : CASE_CONVERT:
15704 : 12 : {
15705 : 12 : tree _q60 = TREE_OPERAND (_q50, 0);
15706 : 12 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
15707 : : {
15708 : 0 : {
15709 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15710 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
15711 : 0 : if (res) return res;
15712 : : }
15713 : : }
15714 : 12 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
15715 : : {
15716 : 0 : {
15717 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15718 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
15719 : 0 : if (res) return res;
15720 : : }
15721 : : }
15722 : : break;
15723 : : }
15724 : 36 : default:;
15725 : : }
15726 : 36 : switch (TREE_CODE (_q51))
15727 : : {
15728 : 0 : CASE_CONVERT:
15729 : 0 : {
15730 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
15731 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
15732 : : {
15733 : 0 : {
15734 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15735 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
15736 : 0 : if (res) return res;
15737 : : }
15738 : : }
15739 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
15740 : : {
15741 : 0 : {
15742 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15743 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
15744 : 0 : if (res) return res;
15745 : : }
15746 : : }
15747 : : break;
15748 : : }
15749 : : default:;
15750 : : }
15751 : : break;
15752 : : }
15753 : 4 : case GE_EXPR:
15754 : 4 : {
15755 : 4 : tree _q50 = TREE_OPERAND (_p1, 0);
15756 : 4 : tree _q51 = TREE_OPERAND (_p1, 1);
15757 : 4 : switch (TREE_CODE (_q50))
15758 : : {
15759 : 0 : CASE_CONVERT:
15760 : 0 : {
15761 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
15762 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
15763 : : {
15764 : 0 : {
15765 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15766 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
15767 : 0 : if (res) return res;
15768 : : }
15769 : : }
15770 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
15771 : : {
15772 : 0 : {
15773 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15774 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
15775 : 0 : if (res) return res;
15776 : : }
15777 : : }
15778 : : break;
15779 : : }
15780 : 4 : default:;
15781 : : }
15782 : 4 : switch (TREE_CODE (_q51))
15783 : : {
15784 : 0 : CASE_CONVERT:
15785 : 0 : {
15786 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
15787 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
15788 : : {
15789 : 0 : {
15790 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15791 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
15792 : 0 : if (res) return res;
15793 : : }
15794 : : }
15795 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
15796 : : {
15797 : 0 : {
15798 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15799 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
15800 : 0 : if (res) return res;
15801 : : }
15802 : : }
15803 : : break;
15804 : : }
15805 : : default:;
15806 : : }
15807 : : break;
15808 : : }
15809 : 1069 : default:;
15810 : : }
15811 : 1069 : switch (TREE_CODE (_q20))
15812 : : {
15813 : 0 : CASE_CONVERT:
15814 : 0 : {
15815 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
15816 : 0 : switch (TREE_CODE (_p1))
15817 : : {
15818 : 0 : case EQ_EXPR:
15819 : 0 : {
15820 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
15821 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
15822 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
15823 : : {
15824 : 0 : {
15825 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
15826 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15827 : 0 : if (res) return res;
15828 : : }
15829 : : }
15830 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
15831 : : {
15832 : 0 : {
15833 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
15834 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15835 : 0 : if (res) return res;
15836 : : }
15837 : : }
15838 : : break;
15839 : : }
15840 : 0 : case NE_EXPR:
15841 : 0 : {
15842 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
15843 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
15844 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
15845 : : {
15846 : 0 : {
15847 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
15848 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15849 : 0 : if (res) return res;
15850 : : }
15851 : : }
15852 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
15853 : : {
15854 : 0 : {
15855 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
15856 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15857 : 0 : if (res) return res;
15858 : : }
15859 : : }
15860 : : break;
15861 : : }
15862 : : default:;
15863 : : }
15864 : : break;
15865 : : }
15866 : 1069 : default:;
15867 : : }
15868 : 1069 : switch (TREE_CODE (_q21))
15869 : : {
15870 : 0 : CASE_CONVERT:
15871 : 0 : {
15872 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
15873 : 0 : switch (TREE_CODE (_p1))
15874 : : {
15875 : 0 : case EQ_EXPR:
15876 : 0 : {
15877 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
15878 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
15879 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
15880 : : {
15881 : 0 : {
15882 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
15883 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15884 : 0 : if (res) return res;
15885 : : }
15886 : : }
15887 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
15888 : : {
15889 : 0 : {
15890 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
15891 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15892 : 0 : if (res) return res;
15893 : : }
15894 : : }
15895 : : break;
15896 : : }
15897 : 0 : case NE_EXPR:
15898 : 0 : {
15899 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
15900 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
15901 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
15902 : : {
15903 : 0 : {
15904 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
15905 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15906 : 0 : if (res) return res;
15907 : : }
15908 : : }
15909 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
15910 : : {
15911 : 0 : {
15912 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
15913 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
15914 : 0 : if (res) return res;
15915 : : }
15916 : : }
15917 : : break;
15918 : : }
15919 : : default:;
15920 : : }
15921 : : break;
15922 : : }
15923 : 1069 : default:;
15924 : : }
15925 : 1069 : switch (TREE_CODE (_p1))
15926 : : {
15927 : 534 : case EQ_EXPR:
15928 : 534 : {
15929 : 534 : tree _q50 = TREE_OPERAND (_p1, 0);
15930 : 534 : tree _q51 = TREE_OPERAND (_p1, 1);
15931 : 534 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15932 : : {
15933 : 0 : {
15934 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15935 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15936 : 0 : if (res) return res;
15937 : : }
15938 : 0 : {
15939 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
15940 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15941 : 0 : if (res) return res;
15942 : : }
15943 : : }
15944 : 534 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15945 : : {
15946 : 0 : {
15947 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
15948 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15949 : 0 : if (res) return res;
15950 : : }
15951 : : }
15952 : 534 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15953 : : {
15954 : 0 : {
15955 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
15956 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15957 : 0 : if (res) return res;
15958 : : }
15959 : 0 : {
15960 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
15961 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15962 : 0 : if (res) return res;
15963 : : }
15964 : : }
15965 : 534 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15966 : : {
15967 : 178 : {
15968 : 178 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
15969 : 178 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15970 : 178 : if (res) return res;
15971 : : }
15972 : 178 : {
15973 : 178 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
15974 : 178 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15975 : 178 : if (res) return res;
15976 : : }
15977 : : }
15978 : 534 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15979 : : {
15980 : 0 : {
15981 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
15982 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
15983 : 0 : if (res) return res;
15984 : : }
15985 : : }
15986 : : break;
15987 : : }
15988 : 33 : case NE_EXPR:
15989 : 33 : {
15990 : 33 : tree _q50 = TREE_OPERAND (_p1, 0);
15991 : 33 : tree _q51 = TREE_OPERAND (_p1, 1);
15992 : 33 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15993 : : {
15994 : 0 : {
15995 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
15996 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
15997 : 0 : if (res) return res;
15998 : : }
15999 : 0 : {
16000 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
16001 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16002 : 0 : if (res) return res;
16003 : : }
16004 : : }
16005 : 33 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16006 : : {
16007 : 0 : {
16008 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16009 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16010 : 0 : if (res) return res;
16011 : : }
16012 : : }
16013 : 33 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16014 : : {
16015 : 0 : {
16016 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16017 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16018 : 0 : if (res) return res;
16019 : : }
16020 : 0 : {
16021 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
16022 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16023 : 0 : if (res) return res;
16024 : : }
16025 : : }
16026 : 33 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16027 : : {
16028 : 11 : {
16029 : 11 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16030 : 11 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16031 : 11 : if (res) return res;
16032 : : }
16033 : 11 : {
16034 : 11 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
16035 : 11 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16036 : 11 : if (res) return res;
16037 : : }
16038 : : }
16039 : 33 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16040 : : {
16041 : 0 : {
16042 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
16043 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16044 : 0 : if (res) return res;
16045 : : }
16046 : : }
16047 : : break;
16048 : : }
16049 : 19 : case LT_EXPR:
16050 : 19 : {
16051 : 19 : tree _q50 = TREE_OPERAND (_p1, 0);
16052 : 19 : tree _q51 = TREE_OPERAND (_p1, 1);
16053 : 19 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16054 : : {
16055 : 0 : {
16056 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16057 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
16058 : 0 : if (res) return res;
16059 : : }
16060 : : }
16061 : 19 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16062 : : {
16063 : 0 : {
16064 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16065 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
16066 : 0 : if (res) return res;
16067 : : }
16068 : : }
16069 : 19 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16070 : : {
16071 : 0 : {
16072 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16073 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
16074 : 0 : if (res) return res;
16075 : : }
16076 : : }
16077 : 19 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16078 : : {
16079 : 0 : {
16080 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16081 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
16082 : 0 : if (res) return res;
16083 : : }
16084 : : }
16085 : : break;
16086 : : }
16087 : 12 : case GT_EXPR:
16088 : 12 : {
16089 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
16090 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
16091 : 12 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16092 : : {
16093 : 0 : {
16094 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16095 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
16096 : 0 : if (res) return res;
16097 : : }
16098 : : }
16099 : 12 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16100 : : {
16101 : 0 : {
16102 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16103 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
16104 : 0 : if (res) return res;
16105 : : }
16106 : : }
16107 : 12 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16108 : : {
16109 : 0 : {
16110 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16111 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
16112 : 0 : if (res) return res;
16113 : : }
16114 : : }
16115 : 12 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16116 : : {
16117 : 0 : {
16118 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16119 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
16120 : 0 : if (res) return res;
16121 : : }
16122 : : }
16123 : : break;
16124 : : }
16125 : 36 : case LE_EXPR:
16126 : 36 : {
16127 : 36 : tree _q50 = TREE_OPERAND (_p1, 0);
16128 : 36 : tree _q51 = TREE_OPERAND (_p1, 1);
16129 : 36 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16130 : : {
16131 : 0 : {
16132 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16133 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
16134 : 0 : if (res) return res;
16135 : : }
16136 : : }
16137 : 36 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16138 : : {
16139 : 0 : {
16140 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16141 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
16142 : 0 : if (res) return res;
16143 : : }
16144 : : }
16145 : 36 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16146 : : {
16147 : 0 : {
16148 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16149 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
16150 : 0 : if (res) return res;
16151 : : }
16152 : : }
16153 : 36 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16154 : : {
16155 : 0 : {
16156 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16157 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
16158 : 0 : if (res) return res;
16159 : : }
16160 : : }
16161 : : break;
16162 : : }
16163 : 4 : case GE_EXPR:
16164 : 4 : {
16165 : 4 : tree _q50 = TREE_OPERAND (_p1, 0);
16166 : 4 : tree _q51 = TREE_OPERAND (_p1, 1);
16167 : 4 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16168 : : {
16169 : 0 : {
16170 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16171 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
16172 : 0 : if (res) return res;
16173 : : }
16174 : : }
16175 : 4 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16176 : : {
16177 : 0 : {
16178 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16179 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
16180 : 0 : if (res) return res;
16181 : : }
16182 : : }
16183 : 4 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16184 : : {
16185 : 0 : {
16186 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16187 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
16188 : 0 : if (res) return res;
16189 : : }
16190 : : }
16191 : 4 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16192 : : {
16193 : 0 : {
16194 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16195 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
16196 : 0 : if (res) return res;
16197 : : }
16198 : : }
16199 : : break;
16200 : : }
16201 : : default:;
16202 : : }
16203 : : break;
16204 : : }
16205 : 132 : case NE_EXPR:
16206 : 132 : {
16207 : 132 : tree _q20 = TREE_OPERAND (_p0, 0);
16208 : 132 : tree _q21 = TREE_OPERAND (_p0, 1);
16209 : 132 : if (tree_min_value (_q21))
16210 : : {
16211 : 16 : switch (TREE_CODE (_p1))
16212 : : {
16213 : 0 : case GT_EXPR:
16214 : 0 : {
16215 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16216 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16217 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16218 : : {
16219 : 0 : {
16220 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q51 };
16221 : 0 : tree res = generic_simplify_468 (loc, type, _p0, _p1, captures, NE_EXPR);
16222 : 0 : if (res) return res;
16223 : : }
16224 : : }
16225 : : break;
16226 : : }
16227 : 0 : case LT_EXPR:
16228 : 0 : {
16229 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16230 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16231 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16232 : : {
16233 : 0 : {
16234 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q50 };
16235 : 0 : tree res = generic_simplify_468 (loc, type, _p0, _p1, captures, NE_EXPR);
16236 : 0 : if (res) return res;
16237 : : }
16238 : : }
16239 : : break;
16240 : : }
16241 : 3 : case GE_EXPR:
16242 : 3 : {
16243 : 3 : tree _q50 = TREE_OPERAND (_p1, 0);
16244 : 3 : tree _q51 = TREE_OPERAND (_p1, 1);
16245 : 3 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16246 : : {
16247 : 3 : {
16248 : 3 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q50 };
16249 : 3 : tree res = generic_simplify_474 (loc, type, _p0, _p1, captures);
16250 : 3 : if (res) return res;
16251 : : }
16252 : : }
16253 : : break;
16254 : : }
16255 : 0 : case LE_EXPR:
16256 : 0 : {
16257 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16258 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16259 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16260 : : {
16261 : 0 : {
16262 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q51 };
16263 : 0 : tree res = generic_simplify_474 (loc, type, _p0, _p1, captures);
16264 : 0 : if (res) return res;
16265 : : }
16266 : : }
16267 : : break;
16268 : : }
16269 : : default:;
16270 : : }
16271 : : }
16272 : 129 : if (tree_max_value (_q21))
16273 : : {
16274 : 0 : switch (TREE_CODE (_p1))
16275 : : {
16276 : 0 : case LT_EXPR:
16277 : 0 : {
16278 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16279 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16280 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16281 : : {
16282 : 0 : {
16283 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q51 };
16284 : 0 : tree res = generic_simplify_470 (loc, type, _p0, _p1, captures, NE_EXPR);
16285 : 0 : if (res) return res;
16286 : : }
16287 : : }
16288 : : break;
16289 : : }
16290 : 0 : case GT_EXPR:
16291 : 0 : {
16292 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16293 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16294 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16295 : : {
16296 : 0 : {
16297 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q50 };
16298 : 0 : tree res = generic_simplify_470 (loc, type, _p0, _p1, captures, NE_EXPR);
16299 : 0 : if (res) return res;
16300 : : }
16301 : : }
16302 : : break;
16303 : : }
16304 : : default:;
16305 : : }
16306 : : }
16307 : 129 : switch (TREE_CODE (_p1))
16308 : : {
16309 : 13 : case EQ_EXPR:
16310 : 13 : {
16311 : 13 : tree _q50 = TREE_OPERAND (_p1, 0);
16312 : 13 : tree _q51 = TREE_OPERAND (_p1, 1);
16313 : 13 : switch (TREE_CODE (_q50))
16314 : : {
16315 : 0 : CASE_CONVERT:
16316 : 0 : {
16317 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
16318 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
16319 : : {
16320 : 0 : {
16321 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16322 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16323 : 0 : if (res) return res;
16324 : : }
16325 : : }
16326 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
16327 : : {
16328 : 0 : {
16329 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16330 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16331 : 0 : if (res) return res;
16332 : : }
16333 : : }
16334 : : break;
16335 : : }
16336 : 13 : default:;
16337 : : }
16338 : 13 : switch (TREE_CODE (_q51))
16339 : : {
16340 : 0 : CASE_CONVERT:
16341 : 0 : {
16342 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
16343 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
16344 : : {
16345 : 0 : {
16346 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16347 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16348 : 0 : if (res) return res;
16349 : : }
16350 : : }
16351 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
16352 : : {
16353 : 0 : {
16354 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16355 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16356 : 0 : if (res) return res;
16357 : : }
16358 : : }
16359 : : break;
16360 : : }
16361 : : default:;
16362 : : }
16363 : : break;
16364 : : }
16365 : 3 : case NE_EXPR:
16366 : 3 : {
16367 : 3 : tree _q50 = TREE_OPERAND (_p1, 0);
16368 : 3 : tree _q51 = TREE_OPERAND (_p1, 1);
16369 : 3 : switch (TREE_CODE (_q50))
16370 : : {
16371 : 0 : CASE_CONVERT:
16372 : 0 : {
16373 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
16374 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
16375 : : {
16376 : 0 : {
16377 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16378 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16379 : 0 : if (res) return res;
16380 : : }
16381 : : }
16382 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
16383 : : {
16384 : 0 : {
16385 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16386 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16387 : 0 : if (res) return res;
16388 : : }
16389 : : }
16390 : : break;
16391 : : }
16392 : 3 : default:;
16393 : : }
16394 : 3 : switch (TREE_CODE (_q51))
16395 : : {
16396 : 0 : CASE_CONVERT:
16397 : 0 : {
16398 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
16399 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
16400 : : {
16401 : 0 : {
16402 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16403 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16404 : 0 : if (res) return res;
16405 : : }
16406 : : }
16407 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
16408 : : {
16409 : 0 : {
16410 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16411 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16412 : 0 : if (res) return res;
16413 : : }
16414 : : }
16415 : : break;
16416 : : }
16417 : : default:;
16418 : : }
16419 : : break;
16420 : : }
16421 : 0 : case LT_EXPR:
16422 : 0 : {
16423 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16424 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16425 : 0 : switch (TREE_CODE (_q50))
16426 : : {
16427 : 0 : CASE_CONVERT:
16428 : 0 : {
16429 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
16430 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
16431 : : {
16432 : 0 : {
16433 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16434 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
16435 : 0 : if (res) return res;
16436 : : }
16437 : : }
16438 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
16439 : : {
16440 : 0 : {
16441 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16442 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
16443 : 0 : if (res) return res;
16444 : : }
16445 : : }
16446 : : break;
16447 : : }
16448 : 0 : default:;
16449 : : }
16450 : 0 : switch (TREE_CODE (_q51))
16451 : : {
16452 : 0 : CASE_CONVERT:
16453 : 0 : {
16454 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
16455 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
16456 : : {
16457 : 0 : {
16458 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16459 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
16460 : 0 : if (res) return res;
16461 : : }
16462 : : }
16463 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
16464 : : {
16465 : 0 : {
16466 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16467 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
16468 : 0 : if (res) return res;
16469 : : }
16470 : : }
16471 : : break;
16472 : : }
16473 : : default:;
16474 : : }
16475 : : break;
16476 : : }
16477 : 4 : case GT_EXPR:
16478 : 4 : {
16479 : 4 : tree _q50 = TREE_OPERAND (_p1, 0);
16480 : 4 : tree _q51 = TREE_OPERAND (_p1, 1);
16481 : 4 : switch (TREE_CODE (_q50))
16482 : : {
16483 : 0 : CASE_CONVERT:
16484 : 0 : {
16485 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
16486 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
16487 : : {
16488 : 0 : {
16489 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16490 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
16491 : 0 : if (res) return res;
16492 : : }
16493 : : }
16494 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
16495 : : {
16496 : 0 : {
16497 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16498 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
16499 : 0 : if (res) return res;
16500 : : }
16501 : : }
16502 : : break;
16503 : : }
16504 : 4 : default:;
16505 : : }
16506 : 4 : switch (TREE_CODE (_q51))
16507 : : {
16508 : 0 : CASE_CONVERT:
16509 : 0 : {
16510 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
16511 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
16512 : : {
16513 : 0 : {
16514 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16515 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
16516 : 0 : if (res) return res;
16517 : : }
16518 : : }
16519 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
16520 : : {
16521 : 0 : {
16522 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16523 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
16524 : 0 : if (res) return res;
16525 : : }
16526 : : }
16527 : : break;
16528 : : }
16529 : : default:;
16530 : : }
16531 : : break;
16532 : : }
16533 : 0 : case LE_EXPR:
16534 : 0 : {
16535 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16536 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16537 : 0 : switch (TREE_CODE (_q50))
16538 : : {
16539 : 0 : CASE_CONVERT:
16540 : 0 : {
16541 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
16542 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
16543 : : {
16544 : 0 : {
16545 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16546 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16547 : 0 : if (res) return res;
16548 : : }
16549 : : }
16550 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
16551 : : {
16552 : 0 : {
16553 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16554 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16555 : 0 : if (res) return res;
16556 : : }
16557 : : }
16558 : : break;
16559 : : }
16560 : 0 : default:;
16561 : : }
16562 : 0 : switch (TREE_CODE (_q51))
16563 : : {
16564 : 0 : CASE_CONVERT:
16565 : 0 : {
16566 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
16567 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
16568 : : {
16569 : 0 : {
16570 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16571 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16572 : 0 : if (res) return res;
16573 : : }
16574 : : }
16575 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
16576 : : {
16577 : 0 : {
16578 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16579 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16580 : 0 : if (res) return res;
16581 : : }
16582 : : }
16583 : : break;
16584 : : }
16585 : : default:;
16586 : : }
16587 : : break;
16588 : : }
16589 : 14 : case GE_EXPR:
16590 : 14 : {
16591 : 14 : tree _q50 = TREE_OPERAND (_p1, 0);
16592 : 14 : tree _q51 = TREE_OPERAND (_p1, 1);
16593 : 14 : switch (TREE_CODE (_q50))
16594 : : {
16595 : 0 : CASE_CONVERT:
16596 : 0 : {
16597 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
16598 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
16599 : : {
16600 : 0 : {
16601 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16602 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16603 : 0 : if (res) return res;
16604 : : }
16605 : : }
16606 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
16607 : : {
16608 : 0 : {
16609 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16610 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16611 : 0 : if (res) return res;
16612 : : }
16613 : : }
16614 : : break;
16615 : : }
16616 : 14 : default:;
16617 : : }
16618 : 14 : switch (TREE_CODE (_q51))
16619 : : {
16620 : 0 : CASE_CONVERT:
16621 : 0 : {
16622 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
16623 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
16624 : : {
16625 : 0 : {
16626 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16627 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16628 : 0 : if (res) return res;
16629 : : }
16630 : : }
16631 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
16632 : : {
16633 : 0 : {
16634 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16635 : 0 : tree res = generic_simplify_472 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16636 : 0 : if (res) return res;
16637 : : }
16638 : : }
16639 : : break;
16640 : : }
16641 : : default:;
16642 : : }
16643 : : break;
16644 : : }
16645 : 129 : default:;
16646 : : }
16647 : 129 : switch (TREE_CODE (_q20))
16648 : : {
16649 : 0 : CASE_CONVERT:
16650 : 0 : {
16651 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
16652 : 0 : switch (TREE_CODE (_p1))
16653 : : {
16654 : 0 : case EQ_EXPR:
16655 : 0 : {
16656 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
16657 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
16658 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
16659 : : {
16660 : 0 : {
16661 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
16662 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16663 : 0 : if (res) return res;
16664 : : }
16665 : : }
16666 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
16667 : : {
16668 : 0 : {
16669 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
16670 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16671 : 0 : if (res) return res;
16672 : : }
16673 : : }
16674 : : break;
16675 : : }
16676 : 0 : case NE_EXPR:
16677 : 0 : {
16678 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
16679 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
16680 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
16681 : : {
16682 : 0 : {
16683 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
16684 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16685 : 0 : if (res) return res;
16686 : : }
16687 : : }
16688 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
16689 : : {
16690 : 0 : {
16691 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
16692 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16693 : 0 : if (res) return res;
16694 : : }
16695 : : }
16696 : : break;
16697 : : }
16698 : : default:;
16699 : : }
16700 : : break;
16701 : : }
16702 : 129 : default:;
16703 : : }
16704 : 129 : switch (TREE_CODE (_q21))
16705 : : {
16706 : 0 : CASE_CONVERT:
16707 : 0 : {
16708 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
16709 : 0 : switch (TREE_CODE (_p1))
16710 : : {
16711 : 0 : case EQ_EXPR:
16712 : 0 : {
16713 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
16714 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
16715 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
16716 : : {
16717 : 0 : {
16718 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
16719 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16720 : 0 : if (res) return res;
16721 : : }
16722 : : }
16723 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
16724 : : {
16725 : 0 : {
16726 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
16727 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16728 : 0 : if (res) return res;
16729 : : }
16730 : : }
16731 : : break;
16732 : : }
16733 : 0 : case NE_EXPR:
16734 : 0 : {
16735 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
16736 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
16737 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
16738 : : {
16739 : 0 : {
16740 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
16741 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16742 : 0 : if (res) return res;
16743 : : }
16744 : : }
16745 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
16746 : : {
16747 : 0 : {
16748 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
16749 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16750 : 0 : if (res) return res;
16751 : : }
16752 : : }
16753 : : break;
16754 : : }
16755 : : default:;
16756 : : }
16757 : : break;
16758 : : }
16759 : 129 : default:;
16760 : : }
16761 : 129 : switch (TREE_CODE (_p1))
16762 : : {
16763 : 13 : case EQ_EXPR:
16764 : 13 : {
16765 : 13 : tree _q50 = TREE_OPERAND (_p1, 0);
16766 : 13 : tree _q51 = TREE_OPERAND (_p1, 1);
16767 : 13 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16768 : : {
16769 : 0 : {
16770 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16771 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16772 : 0 : if (res) return res;
16773 : : }
16774 : 0 : {
16775 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
16776 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16777 : 0 : if (res) return res;
16778 : : }
16779 : : }
16780 : 13 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16781 : : {
16782 : 0 : {
16783 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16784 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16785 : 0 : if (res) return res;
16786 : : }
16787 : : }
16788 : 13 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16789 : : {
16790 : 0 : {
16791 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16792 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16793 : 0 : if (res) return res;
16794 : : }
16795 : 0 : {
16796 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
16797 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16798 : 0 : if (res) return res;
16799 : : }
16800 : : }
16801 : 13 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16802 : : {
16803 : 4 : {
16804 : 4 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16805 : 4 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
16806 : 4 : if (res) return res;
16807 : : }
16808 : 4 : {
16809 : 4 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
16810 : 4 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16811 : 4 : if (res) return res;
16812 : : }
16813 : : }
16814 : 13 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16815 : : {
16816 : 0 : {
16817 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
16818 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
16819 : 0 : if (res) return res;
16820 : : }
16821 : : }
16822 : : break;
16823 : : }
16824 : 3 : case NE_EXPR:
16825 : 3 : {
16826 : 3 : tree _q50 = TREE_OPERAND (_p1, 0);
16827 : 3 : tree _q51 = TREE_OPERAND (_p1, 1);
16828 : 3 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16829 : : {
16830 : 2 : {
16831 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16832 : 2 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16833 : 2 : if (res) return res;
16834 : : }
16835 : 2 : {
16836 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
16837 : 2 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16838 : 2 : if (res) return res;
16839 : : }
16840 : : }
16841 : 3 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16842 : : {
16843 : 0 : {
16844 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16845 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16846 : 0 : if (res) return res;
16847 : : }
16848 : : }
16849 : 3 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16850 : : {
16851 : 0 : {
16852 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16853 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16854 : 0 : if (res) return res;
16855 : : }
16856 : 0 : {
16857 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
16858 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16859 : 0 : if (res) return res;
16860 : : }
16861 : : }
16862 : 3 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16863 : : {
16864 : 0 : {
16865 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16866 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16867 : 0 : if (res) return res;
16868 : : }
16869 : 0 : {
16870 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
16871 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16872 : 0 : if (res) return res;
16873 : : }
16874 : : }
16875 : 3 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16876 : : {
16877 : 0 : {
16878 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
16879 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
16880 : 0 : if (res) return res;
16881 : : }
16882 : : }
16883 : : break;
16884 : : }
16885 : 0 : case LT_EXPR:
16886 : 0 : {
16887 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16888 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16889 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16890 : : {
16891 : 0 : {
16892 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16893 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
16894 : 0 : if (res) return res;
16895 : : }
16896 : : }
16897 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16898 : : {
16899 : 0 : {
16900 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16901 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
16902 : 0 : if (res) return res;
16903 : : }
16904 : : }
16905 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16906 : : {
16907 : 0 : {
16908 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16909 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
16910 : 0 : if (res) return res;
16911 : : }
16912 : : }
16913 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16914 : : {
16915 : 0 : {
16916 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16917 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
16918 : 0 : if (res) return res;
16919 : : }
16920 : : }
16921 : : break;
16922 : : }
16923 : 4 : case GT_EXPR:
16924 : 4 : {
16925 : 4 : tree _q50 = TREE_OPERAND (_p1, 0);
16926 : 4 : tree _q51 = TREE_OPERAND (_p1, 1);
16927 : 4 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16928 : : {
16929 : 4 : {
16930 : 4 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16931 : 4 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
16932 : 4 : if (res) return res;
16933 : : }
16934 : : }
16935 : 4 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16936 : : {
16937 : 0 : {
16938 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16939 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
16940 : 0 : if (res) return res;
16941 : : }
16942 : : }
16943 : 4 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16944 : : {
16945 : 0 : {
16946 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16947 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
16948 : 0 : if (res) return res;
16949 : : }
16950 : : }
16951 : 4 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16952 : : {
16953 : 0 : {
16954 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16955 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
16956 : 0 : if (res) return res;
16957 : : }
16958 : : }
16959 : : break;
16960 : : }
16961 : 0 : case LE_EXPR:
16962 : 0 : {
16963 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
16964 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
16965 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
16966 : : {
16967 : 0 : {
16968 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
16969 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16970 : 0 : if (res) return res;
16971 : : }
16972 : : }
16973 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
16974 : : {
16975 : 0 : {
16976 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
16977 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16978 : 0 : if (res) return res;
16979 : : }
16980 : : }
16981 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
16982 : : {
16983 : 0 : {
16984 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
16985 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
16986 : 0 : if (res) return res;
16987 : : }
16988 : : }
16989 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
16990 : : {
16991 : 0 : {
16992 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
16993 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
16994 : 0 : if (res) return res;
16995 : : }
16996 : : }
16997 : : break;
16998 : : }
16999 : 14 : case GE_EXPR:
17000 : 14 : {
17001 : 14 : tree _q50 = TREE_OPERAND (_p1, 0);
17002 : 14 : tree _q51 = TREE_OPERAND (_p1, 1);
17003 : 14 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17004 : : {
17005 : 0 : {
17006 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
17007 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
17008 : 0 : if (res) return res;
17009 : : }
17010 : : }
17011 : 14 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17012 : : {
17013 : 0 : {
17014 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
17015 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
17016 : 0 : if (res) return res;
17017 : : }
17018 : : }
17019 : 14 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17020 : : {
17021 : 0 : {
17022 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
17023 : 0 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
17024 : 0 : if (res) return res;
17025 : : }
17026 : : }
17027 : 14 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17028 : : {
17029 : 14 : {
17030 : 14 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
17031 : 14 : tree res = generic_simplify_473 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
17032 : 14 : if (res) return res;
17033 : : }
17034 : : }
17035 : : break;
17036 : : }
17037 : : default:;
17038 : : }
17039 : : break;
17040 : : }
17041 : 36 : case LE_EXPR:
17042 : 36 : {
17043 : 36 : tree _q20 = TREE_OPERAND (_p0, 0);
17044 : 36 : tree _q21 = TREE_OPERAND (_p0, 1);
17045 : 36 : switch (TREE_CODE (_p1))
17046 : : {
17047 : 16 : case EQ_EXPR:
17048 : 16 : {
17049 : 16 : tree _q50 = TREE_OPERAND (_p1, 0);
17050 : 16 : tree _q51 = TREE_OPERAND (_p1, 1);
17051 : 16 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17052 : : {
17053 : 4 : if (tree_min_value (_q51))
17054 : : {
17055 : 4 : {
17056 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
17057 : 4 : tree res = generic_simplify_475 (loc, type, _p0, _p1, captures);
17058 : 4 : if (res) return res;
17059 : : }
17060 : : }
17061 : : }
17062 : 12 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17063 : : {
17064 : 0 : if (tree_max_value (_q51))
17065 : : {
17066 : 0 : {
17067 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _p1 };
17068 : 0 : tree res = generic_simplify_476 (loc, type, _p0, _p1, captures);
17069 : 0 : if (res) return res;
17070 : : }
17071 : : }
17072 : : }
17073 : : break;
17074 : : }
17075 : 0 : case NE_EXPR:
17076 : 0 : {
17077 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
17078 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
17079 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17080 : : {
17081 : 0 : if (tree_min_value (_q51))
17082 : : {
17083 : 0 : {
17084 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q20, _p0, _q21 };
17085 : 0 : tree res = generic_simplify_477 (loc, type, _p0, _p1, captures);
17086 : 0 : if (res) return res;
17087 : : }
17088 : : }
17089 : : }
17090 : : break;
17091 : : }
17092 : 32 : default:;
17093 : : }
17094 : 32 : switch (TREE_CODE (_q20))
17095 : : {
17096 : 0 : CASE_CONVERT:
17097 : 0 : {
17098 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
17099 : 0 : switch (TREE_CODE (_p1))
17100 : : {
17101 : 0 : case EQ_EXPR:
17102 : 0 : {
17103 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
17104 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
17105 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
17106 : : {
17107 : 0 : {
17108 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
17109 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
17110 : 0 : if (res) return res;
17111 : : }
17112 : : }
17113 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
17114 : : {
17115 : 0 : {
17116 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
17117 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
17118 : 0 : if (res) return res;
17119 : : }
17120 : : }
17121 : : break;
17122 : : }
17123 : 0 : case NE_EXPR:
17124 : 0 : {
17125 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
17126 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
17127 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
17128 : : {
17129 : 0 : {
17130 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
17131 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
17132 : 0 : if (res) return res;
17133 : : }
17134 : : }
17135 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
17136 : : {
17137 : 0 : {
17138 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
17139 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
17140 : 0 : if (res) return res;
17141 : : }
17142 : : }
17143 : : break;
17144 : : }
17145 : : default:;
17146 : : }
17147 : : break;
17148 : : }
17149 : 32 : default:;
17150 : : }
17151 : 32 : switch (TREE_CODE (_q21))
17152 : : {
17153 : 0 : CASE_CONVERT:
17154 : 0 : {
17155 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
17156 : 0 : switch (TREE_CODE (_p1))
17157 : : {
17158 : 0 : case EQ_EXPR:
17159 : 0 : {
17160 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
17161 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
17162 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
17163 : : {
17164 : 0 : {
17165 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
17166 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
17167 : 0 : if (res) return res;
17168 : : }
17169 : : }
17170 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
17171 : : {
17172 : 0 : {
17173 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
17174 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
17175 : 0 : if (res) return res;
17176 : : }
17177 : : }
17178 : : break;
17179 : : }
17180 : 0 : case NE_EXPR:
17181 : 0 : {
17182 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
17183 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
17184 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
17185 : : {
17186 : 0 : {
17187 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
17188 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
17189 : 0 : if (res) return res;
17190 : : }
17191 : : }
17192 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
17193 : : {
17194 : 0 : {
17195 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
17196 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
17197 : 0 : if (res) return res;
17198 : : }
17199 : : }
17200 : : break;
17201 : : }
17202 : : default:;
17203 : : }
17204 : : break;
17205 : : }
17206 : 32 : default:;
17207 : : }
17208 : 32 : switch (TREE_CODE (_p1))
17209 : : {
17210 : 12 : case EQ_EXPR:
17211 : 12 : {
17212 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
17213 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
17214 : 12 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17215 : : {
17216 : 0 : {
17217 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
17218 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
17219 : 0 : if (res) return res;
17220 : : }
17221 : : }
17222 : 12 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17223 : : {
17224 : 0 : {
17225 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
17226 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
17227 : 0 : if (res) return res;
17228 : : }
17229 : : }
17230 : 12 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17231 : : {
17232 : 0 : {
17233 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
17234 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
17235 : 0 : if (res) return res;
17236 : : }
17237 : : }
17238 : 12 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17239 : : {
17240 : 0 : {
17241 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
17242 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
17243 : 0 : if (res) return res;
17244 : : }
17245 : : }
17246 : : break;
17247 : : }
17248 : 0 : case NE_EXPR:
17249 : 0 : {
17250 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
17251 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
17252 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17253 : : {
17254 : 0 : {
17255 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
17256 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
17257 : 0 : if (res) return res;
17258 : : }
17259 : : }
17260 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17261 : : {
17262 : 0 : {
17263 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
17264 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
17265 : 0 : if (res) return res;
17266 : : }
17267 : : }
17268 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17269 : : {
17270 : 0 : {
17271 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
17272 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
17273 : 0 : if (res) return res;
17274 : : }
17275 : : }
17276 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17277 : : {
17278 : 0 : {
17279 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
17280 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
17281 : 0 : if (res) return res;
17282 : : }
17283 : : }
17284 : : break;
17285 : : }
17286 : 0 : case LT_EXPR:
17287 : 0 : {
17288 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
17289 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
17290 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17291 : : {
17292 : 0 : {
17293 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
17294 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LT_EXPR, LE_EXPR);
17295 : 0 : if (res) return res;
17296 : : }
17297 : : }
17298 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17299 : : {
17300 : 0 : {
17301 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
17302 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
17303 : 0 : if (res) return res;
17304 : : }
17305 : : }
17306 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17307 : : {
17308 : 0 : {
17309 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
17310 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR);
17311 : 0 : if (res) return res;
17312 : : }
17313 : : }
17314 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17315 : : {
17316 : 0 : {
17317 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
17318 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GT_EXPR, GE_EXPR);
17319 : 0 : if (res) return res;
17320 : : }
17321 : : }
17322 : : break;
17323 : : }
17324 : 5 : case LE_EXPR:
17325 : 5 : {
17326 : 5 : tree _q50 = TREE_OPERAND (_p1, 0);
17327 : 5 : tree _q51 = TREE_OPERAND (_p1, 1);
17328 : 5 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17329 : : {
17330 : 0 : {
17331 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
17332 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LE_EXPR, LE_EXPR);
17333 : 0 : if (res) return res;
17334 : : }
17335 : : }
17336 : 5 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17337 : : {
17338 : 0 : {
17339 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
17340 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GE_EXPR, LE_EXPR);
17341 : 0 : if (res) return res;
17342 : : }
17343 : : }
17344 : 5 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17345 : : {
17346 : 0 : {
17347 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
17348 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR);
17349 : 0 : if (res) return res;
17350 : : }
17351 : : }
17352 : 5 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17353 : : {
17354 : 4 : {
17355 : 4 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
17356 : 4 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GE_EXPR, GE_EXPR);
17357 : 4 : if (res) return res;
17358 : : }
17359 : : }
17360 : : break;
17361 : : }
17362 : 4 : case GT_EXPR:
17363 : 4 : {
17364 : 4 : tree _q50 = TREE_OPERAND (_p1, 0);
17365 : 4 : tree _q51 = TREE_OPERAND (_p1, 1);
17366 : 4 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17367 : : {
17368 : 0 : {
17369 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
17370 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
17371 : 0 : if (res) return res;
17372 : : }
17373 : : }
17374 : 4 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17375 : : {
17376 : 0 : {
17377 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
17378 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LT_EXPR, LE_EXPR);
17379 : 0 : if (res) return res;
17380 : : }
17381 : : }
17382 : 4 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17383 : : {
17384 : 0 : {
17385 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
17386 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GT_EXPR, GE_EXPR);
17387 : 0 : if (res) return res;
17388 : : }
17389 : : }
17390 : 4 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17391 : : {
17392 : 0 : {
17393 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
17394 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR);
17395 : 0 : if (res) return res;
17396 : : }
17397 : : }
17398 : : break;
17399 : : }
17400 : 0 : case GE_EXPR:
17401 : 0 : {
17402 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
17403 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
17404 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17405 : : {
17406 : 0 : {
17407 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
17408 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GE_EXPR, LE_EXPR);
17409 : 0 : if (res) return res;
17410 : : }
17411 : : }
17412 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17413 : : {
17414 : 0 : {
17415 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
17416 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LE_EXPR, LE_EXPR);
17417 : 0 : if (res) return res;
17418 : : }
17419 : : }
17420 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17421 : : {
17422 : 0 : {
17423 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
17424 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GE_EXPR, GE_EXPR);
17425 : 0 : if (res) return res;
17426 : : }
17427 : : }
17428 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17429 : : {
17430 : 0 : {
17431 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
17432 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR);
17433 : 0 : if (res) return res;
17434 : : }
17435 : : }
17436 : : break;
17437 : : }
17438 : : default:;
17439 : : }
17440 : : break;
17441 : : }
17442 : 76 : case GE_EXPR:
17443 : 76 : {
17444 : 76 : tree _q20 = TREE_OPERAND (_p0, 0);
17445 : 76 : tree _q21 = TREE_OPERAND (_p0, 1);
17446 : 76 : switch (TREE_CODE (_p1))
17447 : : {
17448 : 10 : case EQ_EXPR:
17449 : 10 : {
17450 : 10 : tree _q50 = TREE_OPERAND (_p1, 0);
17451 : 10 : tree _q51 = TREE_OPERAND (_p1, 1);
17452 : 10 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17453 : : {
17454 : 0 : if (tree_min_value (_q51))
17455 : : {
17456 : 0 : {
17457 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _p1 };
17458 : 0 : tree res = generic_simplify_475 (loc, type, _p0, _p1, captures);
17459 : 0 : if (res) return res;
17460 : : }
17461 : : }
17462 : : }
17463 : 10 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17464 : : {
17465 : 4 : if (tree_max_value (_q51))
17466 : : {
17467 : 4 : {
17468 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
17469 : 4 : tree res = generic_simplify_476 (loc, type, _p0, _p1, captures);
17470 : 4 : if (res) return res;
17471 : : }
17472 : : }
17473 : : }
17474 : : break;
17475 : : }
17476 : 0 : case NE_EXPR:
17477 : 0 : {
17478 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
17479 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
17480 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17481 : : {
17482 : 0 : if (tree_min_value (_q51))
17483 : : {
17484 : 0 : {
17485 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q21, _p0, _q20 };
17486 : 0 : tree res = generic_simplify_477 (loc, type, _p0, _p1, captures);
17487 : 0 : if (res) return res;
17488 : : }
17489 : : }
17490 : : }
17491 : : break;
17492 : : }
17493 : 72 : default:;
17494 : : }
17495 : 72 : switch (TREE_CODE (_q20))
17496 : : {
17497 : 4 : CASE_CONVERT:
17498 : 4 : {
17499 : 4 : tree _q30 = TREE_OPERAND (_q20, 0);
17500 : 4 : switch (TREE_CODE (_p1))
17501 : : {
17502 : 0 : case EQ_EXPR:
17503 : 0 : {
17504 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
17505 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
17506 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
17507 : : {
17508 : 0 : {
17509 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
17510 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
17511 : 0 : if (res) return res;
17512 : : }
17513 : : }
17514 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
17515 : : {
17516 : 0 : {
17517 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
17518 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
17519 : 0 : if (res) return res;
17520 : : }
17521 : : }
17522 : : break;
17523 : : }
17524 : 0 : case NE_EXPR:
17525 : 0 : {
17526 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
17527 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
17528 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
17529 : : {
17530 : 0 : {
17531 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
17532 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
17533 : 0 : if (res) return res;
17534 : : }
17535 : : }
17536 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
17537 : : {
17538 : 0 : {
17539 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
17540 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
17541 : 0 : if (res) return res;
17542 : : }
17543 : : }
17544 : : break;
17545 : : }
17546 : : default:;
17547 : : }
17548 : : break;
17549 : : }
17550 : 72 : default:;
17551 : : }
17552 : 72 : switch (TREE_CODE (_q21))
17553 : : {
17554 : 0 : CASE_CONVERT:
17555 : 0 : {
17556 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
17557 : 0 : switch (TREE_CODE (_p1))
17558 : : {
17559 : 0 : case EQ_EXPR:
17560 : 0 : {
17561 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
17562 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
17563 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
17564 : : {
17565 : 0 : {
17566 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
17567 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
17568 : 0 : if (res) return res;
17569 : : }
17570 : : }
17571 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
17572 : : {
17573 : 0 : {
17574 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
17575 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
17576 : 0 : if (res) return res;
17577 : : }
17578 : : }
17579 : : break;
17580 : : }
17581 : 0 : case NE_EXPR:
17582 : 0 : {
17583 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
17584 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
17585 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
17586 : : {
17587 : 0 : {
17588 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
17589 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
17590 : 0 : if (res) return res;
17591 : : }
17592 : : }
17593 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
17594 : : {
17595 : 0 : {
17596 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
17597 : 0 : tree res = generic_simplify_465 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
17598 : 0 : if (res) return res;
17599 : : }
17600 : : }
17601 : : break;
17602 : : }
17603 : : default:;
17604 : : }
17605 : : break;
17606 : : }
17607 : 72 : default:;
17608 : : }
17609 : 72 : switch (TREE_CODE (_p1))
17610 : : {
17611 : 6 : case EQ_EXPR:
17612 : 6 : {
17613 : 6 : tree _q50 = TREE_OPERAND (_p1, 0);
17614 : 6 : tree _q51 = TREE_OPERAND (_p1, 1);
17615 : 6 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17616 : : {
17617 : 0 : {
17618 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
17619 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
17620 : 0 : if (res) return res;
17621 : : }
17622 : : }
17623 : 6 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17624 : : {
17625 : 0 : {
17626 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
17627 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
17628 : 0 : if (res) return res;
17629 : : }
17630 : : }
17631 : 6 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17632 : : {
17633 : 0 : {
17634 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
17635 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
17636 : 0 : if (res) return res;
17637 : : }
17638 : : }
17639 : 6 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17640 : : {
17641 : 0 : {
17642 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
17643 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
17644 : 0 : if (res) return res;
17645 : : }
17646 : : }
17647 : : break;
17648 : : }
17649 : 0 : case NE_EXPR:
17650 : 0 : {
17651 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
17652 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
17653 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17654 : : {
17655 : 0 : {
17656 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
17657 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
17658 : 0 : if (res) return res;
17659 : : }
17660 : : }
17661 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17662 : : {
17663 : 0 : {
17664 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
17665 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
17666 : 0 : if (res) return res;
17667 : : }
17668 : : }
17669 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17670 : : {
17671 : 0 : {
17672 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
17673 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
17674 : 0 : if (res) return res;
17675 : : }
17676 : : }
17677 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17678 : : {
17679 : 0 : {
17680 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
17681 : 0 : tree res = generic_simplify_466 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
17682 : 0 : if (res) return res;
17683 : : }
17684 : : }
17685 : : break;
17686 : : }
17687 : 10 : case LT_EXPR:
17688 : 10 : {
17689 : 10 : tree _q50 = TREE_OPERAND (_p1, 0);
17690 : 10 : tree _q51 = TREE_OPERAND (_p1, 1);
17691 : 10 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17692 : : {
17693 : 10 : {
17694 : 10 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
17695 : 10 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR);
17696 : 10 : if (res) return res;
17697 : : }
17698 : : }
17699 : 9 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17700 : : {
17701 : 0 : {
17702 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
17703 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GT_EXPR, GE_EXPR);
17704 : 0 : if (res) return res;
17705 : : }
17706 : : }
17707 : 9 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17708 : : {
17709 : 0 : {
17710 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
17711 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LT_EXPR, LE_EXPR);
17712 : 0 : if (res) return res;
17713 : : }
17714 : : }
17715 : 9 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17716 : : {
17717 : 0 : {
17718 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
17719 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
17720 : 0 : if (res) return res;
17721 : : }
17722 : : }
17723 : : break;
17724 : : }
17725 : 17 : case LE_EXPR:
17726 : 17 : {
17727 : 17 : tree _q50 = TREE_OPERAND (_p1, 0);
17728 : 17 : tree _q51 = TREE_OPERAND (_p1, 1);
17729 : 17 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17730 : : {
17731 : 14 : {
17732 : 14 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
17733 : 14 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR);
17734 : 14 : if (res) return res;
17735 : : }
17736 : : }
17737 : 17 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17738 : : {
17739 : 0 : {
17740 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
17741 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GE_EXPR, GE_EXPR);
17742 : 0 : if (res) return res;
17743 : : }
17744 : : }
17745 : 17 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17746 : : {
17747 : 0 : {
17748 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
17749 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LE_EXPR, LE_EXPR);
17750 : 0 : if (res) return res;
17751 : : }
17752 : : }
17753 : 17 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17754 : : {
17755 : 0 : {
17756 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
17757 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GE_EXPR, LE_EXPR);
17758 : 0 : if (res) return res;
17759 : : }
17760 : : }
17761 : : break;
17762 : : }
17763 : 0 : case GT_EXPR:
17764 : 0 : {
17765 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
17766 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
17767 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17768 : : {
17769 : 0 : {
17770 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
17771 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GT_EXPR, GE_EXPR);
17772 : 0 : if (res) return res;
17773 : : }
17774 : : }
17775 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17776 : : {
17777 : 0 : {
17778 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
17779 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR);
17780 : 0 : if (res) return res;
17781 : : }
17782 : : }
17783 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17784 : : {
17785 : 0 : {
17786 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
17787 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
17788 : 0 : if (res) return res;
17789 : : }
17790 : : }
17791 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17792 : : {
17793 : 0 : {
17794 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
17795 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LT_EXPR, LE_EXPR);
17796 : 0 : if (res) return res;
17797 : : }
17798 : : }
17799 : : break;
17800 : : }
17801 : 11 : case GE_EXPR:
17802 : 11 : {
17803 : 11 : tree _q50 = TREE_OPERAND (_p1, 0);
17804 : 11 : tree _q51 = TREE_OPERAND (_p1, 1);
17805 : 11 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17806 : : {
17807 : 7 : {
17808 : 7 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
17809 : 7 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GE_EXPR, GE_EXPR);
17810 : 7 : if (res) return res;
17811 : : }
17812 : : }
17813 : 11 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17814 : : {
17815 : 0 : {
17816 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
17817 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR);
17818 : 0 : if (res) return res;
17819 : : }
17820 : : }
17821 : 11 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17822 : : {
17823 : 4 : {
17824 : 4 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
17825 : 4 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, GE_EXPR, LE_EXPR);
17826 : 4 : if (res) return res;
17827 : : }
17828 : : }
17829 : 11 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17830 : : {
17831 : 0 : {
17832 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
17833 : 0 : tree res = generic_simplify_467 (loc, type, _p0, _p1, captures, LE_EXPR, LE_EXPR);
17834 : 0 : if (res) return res;
17835 : : }
17836 : : }
17837 : : break;
17838 : : }
17839 : : default:;
17840 : : }
17841 : : break;
17842 : : }
17843 : 0 : case MIN_EXPR:
17844 : 0 : {
17845 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
17846 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
17847 : 0 : switch (TREE_CODE (_p1))
17848 : : {
17849 : 0 : case MAX_EXPR:
17850 : 0 : {
17851 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
17852 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
17853 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17854 : : {
17855 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17856 : : {
17857 : 0 : {
17858 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
17859 : 0 : if (!HONOR_NANS (captures[0])
17860 : : )
17861 : : {
17862 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1818;
17863 : 0 : {
17864 : 0 : tree res_op0;
17865 : 0 : res_op0 = captures[0];
17866 : 0 : tree res_op1;
17867 : 0 : res_op1 = captures[1];
17868 : 0 : tree _r;
17869 : 0 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
17870 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 915, __FILE__, __LINE__, true);
17871 : 0 : return _r;
17872 : : }
17873 : 0 : next_after_fail1818:;
17874 : : }
17875 : : }
17876 : : }
17877 : : }
17878 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17879 : : {
17880 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17881 : : {
17882 : 0 : {
17883 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
17884 : 0 : if (!HONOR_NANS (captures[0])
17885 : : )
17886 : : {
17887 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1819;
17888 : 0 : {
17889 : 0 : tree res_op0;
17890 : 0 : res_op0 = captures[0];
17891 : 0 : tree res_op1;
17892 : 0 : res_op1 = captures[1];
17893 : 0 : tree _r;
17894 : 0 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
17895 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 915, __FILE__, __LINE__, true);
17896 : 0 : return _r;
17897 : : }
17898 : 0 : next_after_fail1819:;
17899 : : }
17900 : : }
17901 : : }
17902 : : }
17903 : : break;
17904 : : }
17905 : : default:;
17906 : : }
17907 : : break;
17908 : : }
17909 : 80 : case MAX_EXPR:
17910 : 80 : {
17911 : 80 : tree _q20 = TREE_OPERAND (_p0, 0);
17912 : 80 : tree _q21 = TREE_OPERAND (_p0, 1);
17913 : 80 : switch (TREE_CODE (_p1))
17914 : : {
17915 : 0 : case MIN_EXPR:
17916 : 0 : {
17917 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
17918 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
17919 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
17920 : : {
17921 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
17922 : : {
17923 : 0 : {
17924 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
17925 : 0 : if (!HONOR_NANS (captures[0])
17926 : : )
17927 : : {
17928 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1820;
17929 : 0 : {
17930 : 0 : tree res_op0;
17931 : 0 : res_op0 = captures[0];
17932 : 0 : tree res_op1;
17933 : 0 : res_op1 = captures[1];
17934 : 0 : tree _r;
17935 : 0 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
17936 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 915, __FILE__, __LINE__, true);
17937 : 0 : return _r;
17938 : : }
17939 : 0 : next_after_fail1820:;
17940 : : }
17941 : : }
17942 : : }
17943 : : }
17944 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
17945 : : {
17946 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
17947 : : {
17948 : 0 : {
17949 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
17950 : 0 : if (!HONOR_NANS (captures[0])
17951 : : )
17952 : : {
17953 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1821;
17954 : 0 : {
17955 : 0 : tree res_op0;
17956 : 0 : res_op0 = captures[0];
17957 : 0 : tree res_op1;
17958 : 0 : res_op1 = captures[1];
17959 : 0 : tree _r;
17960 : 0 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
17961 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 915, __FILE__, __LINE__, true);
17962 : 0 : return _r;
17963 : : }
17964 : 0 : next_after_fail1821:;
17965 : : }
17966 : : }
17967 : : }
17968 : : }
17969 : : break;
17970 : : }
17971 : : default:;
17972 : : }
17973 : : break;
17974 : : }
17975 : 35964 : case LSHIFT_EXPR:
17976 : 35964 : {
17977 : 35964 : tree _q20 = TREE_OPERAND (_p0, 0);
17978 : 35964 : tree _q21 = TREE_OPERAND (_p0, 1);
17979 : 35964 : switch (TREE_CODE (_q20))
17980 : : {
17981 : 5555 : case INTEGER_CST:
17982 : 5555 : {
17983 : 5555 : if (integer_onep (_p1))
17984 : : {
17985 : 44 : {
17986 : 44 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
17987 : 44 : if ((wi::to_wide (captures[0]) & 1) != 0
17988 : : )
17989 : : {
17990 : 40 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1822;
17991 : 40 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1822;
17992 : 40 : {
17993 : 40 : tree res_op0;
17994 : 40 : {
17995 : 40 : tree _o1[2], _r1;
17996 : 40 : _o1[0] = captures[1];
17997 : 40 : _o1[1] = build_zero_cst (TREE_TYPE (captures[1]));
17998 : 40 : _r1 = fold_build2_loc (loc, EQ_EXPR, boolean_type_node, _o1[0], _o1[1]);
17999 : 40 : res_op0 = _r1;
18000 : : }
18001 : 40 : tree _r;
18002 : 40 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
18003 : 40 : if (TREE_SIDE_EFFECTS (captures[0]))
18004 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
18005 : 40 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1044, __FILE__, __LINE__, true);
18006 : 40 : return _r;
18007 : : }
18008 : 0 : next_after_fail1822:;
18009 : : }
18010 : : else
18011 : : {
18012 : 4 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1823;
18013 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1823;
18014 : 4 : {
18015 : 4 : tree _r;
18016 : 4 : _r = build_zero_cst (type);
18017 : 4 : if (TREE_SIDE_EFFECTS (captures[0]))
18018 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
18019 : 4 : if (TREE_SIDE_EFFECTS (captures[1]))
18020 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
18021 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1045, __FILE__, __LINE__, true);
18022 : 4 : return _r;
18023 : : }
18024 : 0 : next_after_fail1823:;
18025 : : }
18026 : : }
18027 : : }
18028 : : break;
18029 : : }
18030 : 5195 : CASE_CONVERT:
18031 : 5195 : {
18032 : 5195 : tree _q30 = TREE_OPERAND (_q20, 0);
18033 : 5195 : switch (TREE_CODE (_q21))
18034 : : {
18035 : 5091 : case INTEGER_CST:
18036 : 5091 : {
18037 : 5091 : switch (TREE_CODE (_p1))
18038 : : {
18039 : 5091 : case INTEGER_CST:
18040 : 5091 : {
18041 : 5091 : {
18042 : 5091 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q30, _q21, _p1 };
18043 : 5091 : tree res = generic_simplify_478 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
18044 : 5091 : if (res) return res;
18045 : : }
18046 : 4417 : break;
18047 : : }
18048 : : default:;
18049 : : }
18050 : : break;
18051 : : }
18052 : : default:;
18053 : : }
18054 : : break;
18055 : : }
18056 : 35246 : default:;
18057 : : }
18058 : 35246 : switch (TREE_CODE (_q21))
18059 : : {
18060 : 29330 : case INTEGER_CST:
18061 : 29330 : {
18062 : 29330 : switch (TREE_CODE (_p1))
18063 : : {
18064 : 29293 : case INTEGER_CST:
18065 : 29293 : {
18066 : 29293 : {
18067 : 29293 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q20, _q21, _p1 };
18068 : 29293 : tree res = generic_simplify_479 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
18069 : 29293 : if (res) return res;
18070 : : }
18071 : 18520 : break;
18072 : : }
18073 : : default:;
18074 : : }
18075 : : break;
18076 : : }
18077 : : default:;
18078 : : }
18079 : : break;
18080 : : }
18081 : 72313 : case RSHIFT_EXPR:
18082 : 72313 : {
18083 : 72313 : tree _q20 = TREE_OPERAND (_p0, 0);
18084 : 72313 : tree _q21 = TREE_OPERAND (_p0, 1);
18085 : 72313 : switch (TREE_CODE (_q20))
18086 : : {
18087 : 48274 : CASE_CONVERT:
18088 : 48274 : {
18089 : 48274 : tree _q30 = TREE_OPERAND (_q20, 0);
18090 : 48274 : switch (TREE_CODE (_q21))
18091 : : {
18092 : 45190 : case INTEGER_CST:
18093 : 45190 : {
18094 : 45190 : switch (TREE_CODE (_p1))
18095 : : {
18096 : 45190 : case INTEGER_CST:
18097 : 45190 : {
18098 : 45190 : {
18099 : 45190 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q30, _q21, _p1 };
18100 : 45190 : tree res = generic_simplify_478 (loc, type, _p0, _p1, captures, RSHIFT_EXPR);
18101 : 45190 : if (res) return res;
18102 : : }
18103 : 44880 : break;
18104 : : }
18105 : : default:;
18106 : : }
18107 : : break;
18108 : : }
18109 : 47964 : default:;
18110 : : }
18111 : 47964 : switch (TREE_CODE (_q30))
18112 : : {
18113 : 22 : case CALL_EXPR:
18114 : 22 : switch (get_call_combined_fn (_q30))
18115 : : {
18116 : 0 : case CFN_BUILT_IN_BSWAP128:
18117 : 0 : if (call_expr_nargs (_q30) == 1)
18118 : : {
18119 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
18120 : 0 : switch (TREE_CODE (_q21))
18121 : : {
18122 : 0 : case INTEGER_CST:
18123 : 0 : {
18124 : 0 : switch (TREE_CODE (_p1))
18125 : : {
18126 : 0 : case INTEGER_CST:
18127 : 0 : {
18128 : 0 : {
18129 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q30, _q40, _q21, _p1 };
18130 : 0 : tree res = generic_simplify_461 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP128);
18131 : 0 : if (res) return res;
18132 : : }
18133 : 0 : break;
18134 : : }
18135 : : default:;
18136 : : }
18137 : : break;
18138 : : }
18139 : : default:;
18140 : : }
18141 : : }
18142 : : break;
18143 : 1 : case CFN_BUILT_IN_BSWAP16:
18144 : 1 : if (call_expr_nargs (_q30) == 1)
18145 : : {
18146 : 1 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
18147 : 1 : switch (TREE_CODE (_q21))
18148 : : {
18149 : 0 : case INTEGER_CST:
18150 : 0 : {
18151 : 0 : switch (TREE_CODE (_p1))
18152 : : {
18153 : 0 : case INTEGER_CST:
18154 : 0 : {
18155 : 0 : {
18156 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q30, _q40, _q21, _p1 };
18157 : 0 : tree res = generic_simplify_461 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP16);
18158 : 0 : if (res) return res;
18159 : : }
18160 : 0 : break;
18161 : : }
18162 : : default:;
18163 : : }
18164 : : break;
18165 : : }
18166 : : default:;
18167 : : }
18168 : : }
18169 : : break;
18170 : 9 : case CFN_BUILT_IN_BSWAP32:
18171 : 9 : if (call_expr_nargs (_q30) == 1)
18172 : : {
18173 : 9 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
18174 : 9 : switch (TREE_CODE (_q21))
18175 : : {
18176 : 9 : case INTEGER_CST:
18177 : 9 : {
18178 : 9 : switch (TREE_CODE (_p1))
18179 : : {
18180 : 9 : case INTEGER_CST:
18181 : 9 : {
18182 : 9 : {
18183 : 9 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q30, _q40, _q21, _p1 };
18184 : 9 : tree res = generic_simplify_461 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP32);
18185 : 9 : if (res) return res;
18186 : : }
18187 : 0 : break;
18188 : : }
18189 : : default:;
18190 : : }
18191 : : break;
18192 : : }
18193 : : default:;
18194 : : }
18195 : : }
18196 : : break;
18197 : 12 : case CFN_BUILT_IN_BSWAP64:
18198 : 12 : if (call_expr_nargs (_q30) == 1)
18199 : : {
18200 : 12 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
18201 : 12 : switch (TREE_CODE (_q21))
18202 : : {
18203 : 12 : case INTEGER_CST:
18204 : 12 : {
18205 : 12 : switch (TREE_CODE (_p1))
18206 : : {
18207 : 12 : case INTEGER_CST:
18208 : 12 : {
18209 : 12 : {
18210 : 12 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q30, _q40, _q21, _p1 };
18211 : 12 : tree res = generic_simplify_461 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP64);
18212 : 12 : if (res) return res;
18213 : : }
18214 : 0 : break;
18215 : : }
18216 : : default:;
18217 : : }
18218 : : break;
18219 : : }
18220 : : default:;
18221 : : }
18222 : : }
18223 : : break;
18224 : : default:;
18225 : : }
18226 : : break;
18227 : : default:;
18228 : : }
18229 : : break;
18230 : : }
18231 : 71982 : default:;
18232 : : }
18233 : 71982 : switch (TREE_CODE (_q21))
18234 : : {
18235 : 54050 : case INTEGER_CST:
18236 : 54050 : {
18237 : 54050 : switch (TREE_CODE (_p1))
18238 : : {
18239 : 53905 : case INTEGER_CST:
18240 : 53905 : {
18241 : 53905 : {
18242 : 53905 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q20, _q21, _p1 };
18243 : 53905 : tree res = generic_simplify_479 (loc, type, _p0, _p1, captures, RSHIFT_EXPR);
18244 : 53905 : if (res) return res;
18245 : : }
18246 : 52220 : break;
18247 : : }
18248 : : default:;
18249 : : }
18250 : : break;
18251 : : }
18252 : 70297 : default:;
18253 : : }
18254 : 70297 : switch (TREE_CODE (_q20))
18255 : : {
18256 : 140 : case CALL_EXPR:
18257 : 140 : switch (get_call_combined_fn (_q20))
18258 : : {
18259 : 0 : case CFN_BUILT_IN_BSWAP128:
18260 : 0 : if (call_expr_nargs (_q20) == 1)
18261 : : {
18262 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
18263 : 0 : switch (TREE_CODE (_q21))
18264 : : {
18265 : 0 : case INTEGER_CST:
18266 : 0 : {
18267 : 0 : switch (TREE_CODE (_p1))
18268 : : {
18269 : 0 : case INTEGER_CST:
18270 : 0 : {
18271 : 0 : {
18272 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _p1 };
18273 : 0 : tree res = generic_simplify_461 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP128);
18274 : 0 : if (res) return res;
18275 : : }
18276 : 0 : break;
18277 : : }
18278 : : default:;
18279 : : }
18280 : : break;
18281 : : }
18282 : : default:;
18283 : : }
18284 : : }
18285 : : break;
18286 : 0 : case CFN_BUILT_IN_BSWAP16:
18287 : 0 : if (call_expr_nargs (_q20) == 1)
18288 : : {
18289 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
18290 : 0 : switch (TREE_CODE (_q21))
18291 : : {
18292 : 0 : case INTEGER_CST:
18293 : 0 : {
18294 : 0 : switch (TREE_CODE (_p1))
18295 : : {
18296 : 0 : case INTEGER_CST:
18297 : 0 : {
18298 : 0 : {
18299 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _p1 };
18300 : 0 : tree res = generic_simplify_461 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP16);
18301 : 0 : if (res) return res;
18302 : : }
18303 : 0 : break;
18304 : : }
18305 : : default:;
18306 : : }
18307 : : break;
18308 : : }
18309 : : default:;
18310 : : }
18311 : : }
18312 : : break;
18313 : 60 : case CFN_BUILT_IN_BSWAP32:
18314 : 60 : if (call_expr_nargs (_q20) == 1)
18315 : : {
18316 : 60 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
18317 : 60 : switch (TREE_CODE (_q21))
18318 : : {
18319 : 59 : case INTEGER_CST:
18320 : 59 : {
18321 : 59 : switch (TREE_CODE (_p1))
18322 : : {
18323 : 59 : case INTEGER_CST:
18324 : 59 : {
18325 : 59 : {
18326 : 59 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _p1 };
18327 : 59 : tree res = generic_simplify_461 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP32);
18328 : 59 : if (res) return res;
18329 : : }
18330 : 0 : break;
18331 : : }
18332 : : default:;
18333 : : }
18334 : : break;
18335 : : }
18336 : : default:;
18337 : : }
18338 : : }
18339 : : break;
18340 : 73 : case CFN_BUILT_IN_BSWAP64:
18341 : 73 : if (call_expr_nargs (_q20) == 1)
18342 : : {
18343 : 73 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
18344 : 73 : switch (TREE_CODE (_q21))
18345 : : {
18346 : 73 : case INTEGER_CST:
18347 : 73 : {
18348 : 73 : switch (TREE_CODE (_p1))
18349 : : {
18350 : 73 : case INTEGER_CST:
18351 : 73 : {
18352 : 73 : {
18353 : 73 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _p1 };
18354 : 73 : tree res = generic_simplify_461 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP64);
18355 : 73 : if (res) return res;
18356 : : }
18357 : 0 : break;
18358 : : }
18359 : : default:;
18360 : : }
18361 : : break;
18362 : : }
18363 : : default:;
18364 : : }
18365 : : }
18366 : : break;
18367 : : default:;
18368 : : }
18369 : : break;
18370 : : default:;
18371 : : }
18372 : : break;
18373 : : }
18374 : 65 : case VEC_COND_EXPR:
18375 : 65 : {
18376 : 65 : tree _q20 = TREE_OPERAND (_p0, 0);
18377 : 65 : tree _q21 = TREE_OPERAND (_p0, 1);
18378 : 65 : tree _q22 = TREE_OPERAND (_p0, 2);
18379 : 65 : switch (TREE_CODE (_p1))
18380 : : {
18381 : 47 : case VEC_COND_EXPR:
18382 : 47 : {
18383 : 47 : tree _q60 = TREE_OPERAND (_p1, 0);
18384 : 47 : tree _q61 = TREE_OPERAND (_p1, 1);
18385 : 47 : tree _q62 = TREE_OPERAND (_p1, 2);
18386 : 47 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
18387 : : {
18388 : 0 : {
18389 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
18390 : 0 : if (VECTOR_TYPE_P (type)
18391 : 0 : && (TREE_CODE_CLASS (BIT_AND_EXPR) != tcc_comparison
18392 : : || types_match (type, TREE_TYPE (captures[2]))
18393 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
18394 : : || (optimize_vectors_before_lowering_p ()
18395 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
18396 : : )
18397 : : {
18398 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1824;
18399 : 0 : {
18400 : 0 : tree res_op0;
18401 : 0 : res_op0 = captures[1];
18402 : 0 : tree res_op1;
18403 : 0 : {
18404 : 0 : tree _o1[2], _r1;
18405 : 0 : _o1[0] = captures[2];
18406 : 0 : _o1[1] = captures[5];
18407 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18408 : 0 : if (EXPR_P (_r1))
18409 : 0 : goto next_after_fail1824;
18410 : 0 : res_op1 = _r1;
18411 : : }
18412 : 0 : tree res_op2;
18413 : 0 : {
18414 : 0 : tree _o1[2], _r1;
18415 : 0 : _o1[0] = captures[3];
18416 : 0 : _o1[1] = captures[6];
18417 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18418 : 0 : if (EXPR_P (_r1))
18419 : 0 : goto next_after_fail1824;
18420 : 0 : res_op2 = _r1;
18421 : : }
18422 : 0 : tree _r;
18423 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18424 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 919, __FILE__, __LINE__, true);
18425 : 0 : return _r;
18426 : : }
18427 : 0 : next_after_fail1824:;
18428 : : }
18429 : : }
18430 : : }
18431 : : break;
18432 : : }
18433 : 65 : default:;
18434 : : }
18435 : 65 : if (integer_minus_onep (_q21))
18436 : : {
18437 : 65 : if (integer_zerop (_q22))
18438 : : {
18439 : 65 : switch (TREE_CODE (_p1))
18440 : : {
18441 : 47 : case VEC_COND_EXPR:
18442 : 47 : {
18443 : 47 : tree _q60 = TREE_OPERAND (_p1, 0);
18444 : 47 : tree _q61 = TREE_OPERAND (_p1, 1);
18445 : 47 : tree _q62 = TREE_OPERAND (_p1, 2);
18446 : 47 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
18447 : : {
18448 : 47 : if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
18449 : : {
18450 : 47 : {
18451 : 47 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18452 : 47 : const enum tree_code lop = BIT_AND_EXPR;
18453 : 47 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18454 : : )
18455 : : {
18456 : 47 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1825;
18457 : 47 : {
18458 : 47 : tree res_op0;
18459 : 47 : {
18460 : 47 : tree _o1[2], _r1;
18461 : 47 : _o1[0] = captures[0];
18462 : 47 : _o1[1] = captures[3];
18463 : 47 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18464 : 47 : res_op0 = _r1;
18465 : : }
18466 : 47 : tree res_op1;
18467 : 47 : res_op1 = captures[1];
18468 : 47 : tree res_op2;
18469 : 47 : res_op2 = captures[2];
18470 : 47 : tree _r;
18471 : 47 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18472 : 47 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
18473 : 47 : return _r;
18474 : : }
18475 : 0 : next_after_fail1825:;
18476 : : }
18477 : : }
18478 : 0 : {
18479 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18480 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18481 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18482 : : )
18483 : : {
18484 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1826;
18485 : 0 : {
18486 : 0 : tree res_op0;
18487 : 0 : {
18488 : 0 : tree _o1[2], _r1;
18489 : 0 : _o1[0] = captures[0];
18490 : 0 : _o1[1] = captures[3];
18491 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18492 : 0 : res_op0 = _r1;
18493 : : }
18494 : 0 : tree res_op1;
18495 : 0 : res_op1 = captures[1];
18496 : 0 : tree res_op2;
18497 : 0 : res_op2 = captures[2];
18498 : 0 : tree _r;
18499 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18500 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
18501 : 0 : return _r;
18502 : : }
18503 : 0 : next_after_fail1826:;
18504 : : }
18505 : : }
18506 : 0 : {
18507 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18508 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18509 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18510 : : )
18511 : : {
18512 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1827;
18513 : 0 : {
18514 : 0 : tree res_op0;
18515 : 0 : {
18516 : 0 : tree _o1[2], _r1;
18517 : 0 : _o1[0] = captures[0];
18518 : 0 : _o1[1] = captures[3];
18519 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18520 : 0 : res_op0 = _r1;
18521 : : }
18522 : 0 : tree res_op1;
18523 : 0 : res_op1 = captures[1];
18524 : 0 : tree res_op2;
18525 : 0 : res_op2 = captures[2];
18526 : 0 : tree _r;
18527 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18528 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
18529 : 0 : return _r;
18530 : : }
18531 : 0 : next_after_fail1827:;
18532 : : }
18533 : : }
18534 : 0 : {
18535 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18536 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18537 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18538 : : )
18539 : : {
18540 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1828;
18541 : 0 : {
18542 : 0 : tree res_op0;
18543 : 0 : {
18544 : 0 : tree _o1[2], _r1;
18545 : 0 : _o1[0] = captures[0];
18546 : 0 : _o1[1] = captures[3];
18547 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18548 : 0 : res_op0 = _r1;
18549 : : }
18550 : 0 : tree res_op1;
18551 : 0 : res_op1 = captures[1];
18552 : 0 : tree res_op2;
18553 : 0 : res_op2 = captures[2];
18554 : 0 : tree _r;
18555 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18556 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
18557 : 0 : return _r;
18558 : : }
18559 : 0 : next_after_fail1828:;
18560 : : }
18561 : : }
18562 : 0 : {
18563 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18564 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18565 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18566 : : )
18567 : : {
18568 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1829;
18569 : 0 : {
18570 : 0 : tree res_op0;
18571 : 0 : {
18572 : 0 : tree _o1[2], _r1;
18573 : 0 : _o1[0] = captures[0];
18574 : 0 : _o1[1] = captures[3];
18575 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18576 : 0 : res_op0 = _r1;
18577 : : }
18578 : 0 : tree res_op1;
18579 : 0 : res_op1 = captures[1];
18580 : 0 : tree res_op2;
18581 : 0 : res_op2 = captures[2];
18582 : 0 : tree _r;
18583 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18584 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
18585 : 0 : return _r;
18586 : : }
18587 : 0 : next_after_fail1829:;
18588 : : }
18589 : : }
18590 : 0 : {
18591 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18592 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18593 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18594 : : )
18595 : : {
18596 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1830;
18597 : 0 : {
18598 : 0 : tree res_op0;
18599 : 0 : {
18600 : 0 : tree _o1[2], _r1;
18601 : 0 : _o1[0] = captures[0];
18602 : 0 : _o1[1] = captures[3];
18603 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18604 : 0 : res_op0 = _r1;
18605 : : }
18606 : 0 : tree res_op1;
18607 : 0 : res_op1 = captures[1];
18608 : 0 : tree res_op2;
18609 : 0 : res_op2 = captures[2];
18610 : 0 : tree _r;
18611 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18612 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
18613 : 0 : return _r;
18614 : : }
18615 : 0 : next_after_fail1830:;
18616 : : }
18617 : : }
18618 : 0 : {
18619 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18620 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18621 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18622 : : )
18623 : : {
18624 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1831;
18625 : 0 : {
18626 : 0 : tree res_op0;
18627 : 0 : {
18628 : 0 : tree _o1[2], _r1;
18629 : 0 : _o1[0] = captures[0];
18630 : 0 : _o1[1] = captures[3];
18631 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18632 : 0 : res_op0 = _r1;
18633 : : }
18634 : 0 : tree res_op1;
18635 : 0 : res_op1 = captures[1];
18636 : 0 : tree res_op2;
18637 : 0 : res_op2 = captures[2];
18638 : 0 : tree _r;
18639 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18640 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
18641 : 0 : return _r;
18642 : : }
18643 : 0 : next_after_fail1831:;
18644 : : }
18645 : : }
18646 : 0 : {
18647 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18648 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18649 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18650 : : )
18651 : : {
18652 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1832;
18653 : 0 : {
18654 : 0 : tree res_op0;
18655 : 0 : {
18656 : 0 : tree _o1[2], _r1;
18657 : 0 : _o1[0] = captures[0];
18658 : 0 : _o1[1] = captures[3];
18659 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18660 : 0 : res_op0 = _r1;
18661 : : }
18662 : 0 : tree res_op1;
18663 : 0 : res_op1 = captures[1];
18664 : 0 : tree res_op2;
18665 : 0 : res_op2 = captures[2];
18666 : 0 : tree _r;
18667 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18668 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
18669 : 0 : return _r;
18670 : : }
18671 : 0 : next_after_fail1832:;
18672 : : }
18673 : : }
18674 : 0 : {
18675 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18676 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18677 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18678 : : )
18679 : : {
18680 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1833;
18681 : 0 : {
18682 : 0 : tree res_op0;
18683 : 0 : {
18684 : 0 : tree _o1[2], _r1;
18685 : 0 : _o1[0] = captures[0];
18686 : 0 : _o1[1] = captures[3];
18687 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18688 : 0 : res_op0 = _r1;
18689 : : }
18690 : 0 : tree res_op1;
18691 : 0 : res_op1 = captures[1];
18692 : 0 : tree res_op2;
18693 : 0 : res_op2 = captures[2];
18694 : 0 : tree _r;
18695 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18696 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
18697 : 0 : return _r;
18698 : : }
18699 : 0 : next_after_fail1833:;
18700 : : }
18701 : : }
18702 : 0 : {
18703 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18704 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18705 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18706 : : )
18707 : : {
18708 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1834;
18709 : 0 : {
18710 : 0 : tree res_op0;
18711 : 0 : {
18712 : 0 : tree _o1[2], _r1;
18713 : 0 : _o1[0] = captures[0];
18714 : 0 : _o1[1] = captures[3];
18715 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18716 : 0 : res_op0 = _r1;
18717 : : }
18718 : 0 : tree res_op1;
18719 : 0 : res_op1 = captures[1];
18720 : 0 : tree res_op2;
18721 : 0 : res_op2 = captures[2];
18722 : 0 : tree _r;
18723 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18724 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
18725 : 0 : return _r;
18726 : : }
18727 : 0 : next_after_fail1834:;
18728 : : }
18729 : : }
18730 : 0 : {
18731 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18732 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18733 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18734 : : )
18735 : : {
18736 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1835;
18737 : 0 : {
18738 : 0 : tree res_op0;
18739 : 0 : {
18740 : 0 : tree _o1[2], _r1;
18741 : 0 : _o1[0] = captures[0];
18742 : 0 : _o1[1] = captures[3];
18743 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18744 : 0 : res_op0 = _r1;
18745 : : }
18746 : 0 : tree res_op1;
18747 : 0 : res_op1 = captures[1];
18748 : 0 : tree res_op2;
18749 : 0 : res_op2 = captures[2];
18750 : 0 : tree _r;
18751 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18752 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
18753 : 0 : return _r;
18754 : : }
18755 : 0 : next_after_fail1835:;
18756 : : }
18757 : : }
18758 : 0 : {
18759 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18760 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18761 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18762 : : )
18763 : : {
18764 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1836;
18765 : 0 : {
18766 : 0 : tree res_op0;
18767 : 0 : {
18768 : 0 : tree _o1[2], _r1;
18769 : 0 : _o1[0] = captures[0];
18770 : 0 : _o1[1] = captures[3];
18771 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18772 : 0 : res_op0 = _r1;
18773 : : }
18774 : 0 : tree res_op1;
18775 : 0 : res_op1 = captures[1];
18776 : 0 : tree res_op2;
18777 : 0 : res_op2 = captures[2];
18778 : 0 : tree _r;
18779 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18780 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
18781 : 0 : return _r;
18782 : : }
18783 : 0 : next_after_fail1836:;
18784 : : }
18785 : : }
18786 : 0 : {
18787 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18788 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18789 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18790 : : )
18791 : : {
18792 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1837;
18793 : 0 : {
18794 : 0 : tree res_op0;
18795 : 0 : {
18796 : 0 : tree _o1[2], _r1;
18797 : 0 : _o1[0] = captures[0];
18798 : 0 : _o1[1] = captures[3];
18799 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18800 : 0 : res_op0 = _r1;
18801 : : }
18802 : 0 : tree res_op1;
18803 : 0 : res_op1 = captures[1];
18804 : 0 : tree res_op2;
18805 : 0 : res_op2 = captures[2];
18806 : 0 : tree _r;
18807 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18808 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
18809 : 0 : return _r;
18810 : : }
18811 : 0 : next_after_fail1837:;
18812 : : }
18813 : : }
18814 : 0 : {
18815 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18816 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18817 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18818 : : )
18819 : : {
18820 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1838;
18821 : 0 : {
18822 : 0 : tree res_op0;
18823 : 0 : {
18824 : 0 : tree _o1[2], _r1;
18825 : 0 : _o1[0] = captures[0];
18826 : 0 : _o1[1] = captures[3];
18827 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18828 : 0 : res_op0 = _r1;
18829 : : }
18830 : 0 : tree res_op1;
18831 : 0 : res_op1 = captures[1];
18832 : 0 : tree res_op2;
18833 : 0 : res_op2 = captures[2];
18834 : 0 : tree _r;
18835 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18836 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
18837 : 0 : return _r;
18838 : : }
18839 : 0 : next_after_fail1838:;
18840 : : }
18841 : : }
18842 : 0 : {
18843 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18844 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18845 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18846 : : )
18847 : : {
18848 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1839;
18849 : 0 : {
18850 : 0 : tree res_op0;
18851 : 0 : {
18852 : 0 : tree _o1[2], _r1;
18853 : 0 : _o1[0] = captures[0];
18854 : 0 : _o1[1] = captures[3];
18855 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18856 : 0 : res_op0 = _r1;
18857 : : }
18858 : 0 : tree res_op1;
18859 : 0 : res_op1 = captures[1];
18860 : 0 : tree res_op2;
18861 : 0 : res_op2 = captures[2];
18862 : 0 : tree _r;
18863 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18864 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
18865 : 0 : return _r;
18866 : : }
18867 : 0 : next_after_fail1839:;
18868 : : }
18869 : : }
18870 : 0 : {
18871 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18872 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18873 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18874 : : )
18875 : : {
18876 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1840;
18877 : 0 : {
18878 : 0 : tree res_op0;
18879 : 0 : {
18880 : 0 : tree _o1[2], _r1;
18881 : 0 : _o1[0] = captures[0];
18882 : 0 : _o1[1] = captures[3];
18883 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18884 : 0 : res_op0 = _r1;
18885 : : }
18886 : 0 : tree res_op1;
18887 : 0 : res_op1 = captures[1];
18888 : 0 : tree res_op2;
18889 : 0 : res_op2 = captures[2];
18890 : 0 : tree _r;
18891 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18892 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
18893 : 0 : return _r;
18894 : : }
18895 : 0 : next_after_fail1840:;
18896 : : }
18897 : : }
18898 : 0 : {
18899 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18900 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18901 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18902 : : )
18903 : : {
18904 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1841;
18905 : 0 : {
18906 : 0 : tree res_op0;
18907 : 0 : {
18908 : 0 : tree _o1[2], _r1;
18909 : 0 : _o1[0] = captures[0];
18910 : 0 : _o1[1] = captures[3];
18911 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18912 : 0 : res_op0 = _r1;
18913 : : }
18914 : 0 : tree res_op1;
18915 : 0 : res_op1 = captures[1];
18916 : 0 : tree res_op2;
18917 : 0 : res_op2 = captures[2];
18918 : 0 : tree _r;
18919 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18920 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
18921 : 0 : return _r;
18922 : : }
18923 : 0 : next_after_fail1841:;
18924 : : }
18925 : : }
18926 : 0 : {
18927 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18928 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18929 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18930 : : )
18931 : : {
18932 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1842;
18933 : 0 : {
18934 : 0 : tree res_op0;
18935 : 0 : {
18936 : 0 : tree _o1[2], _r1;
18937 : 0 : _o1[0] = captures[0];
18938 : 0 : _o1[1] = captures[3];
18939 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18940 : 0 : res_op0 = _r1;
18941 : : }
18942 : 0 : tree res_op1;
18943 : 0 : res_op1 = captures[1];
18944 : 0 : tree res_op2;
18945 : 0 : res_op2 = captures[2];
18946 : 0 : tree _r;
18947 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18948 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
18949 : 0 : return _r;
18950 : : }
18951 : 0 : next_after_fail1842:;
18952 : : }
18953 : : }
18954 : 0 : {
18955 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18956 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18957 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18958 : : )
18959 : : {
18960 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1843;
18961 : 0 : {
18962 : 0 : tree res_op0;
18963 : 0 : {
18964 : 0 : tree _o1[2], _r1;
18965 : 0 : _o1[0] = captures[0];
18966 : 0 : _o1[1] = captures[3];
18967 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18968 : 0 : res_op0 = _r1;
18969 : : }
18970 : 0 : tree res_op1;
18971 : 0 : res_op1 = captures[1];
18972 : 0 : tree res_op2;
18973 : 0 : res_op2 = captures[2];
18974 : 0 : tree _r;
18975 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
18976 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
18977 : 0 : return _r;
18978 : : }
18979 : 0 : next_after_fail1843:;
18980 : : }
18981 : : }
18982 : 0 : {
18983 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
18984 : 0 : const enum tree_code lop = BIT_AND_EXPR;
18985 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
18986 : : )
18987 : : {
18988 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1844;
18989 : 0 : {
18990 : 0 : tree res_op0;
18991 : 0 : {
18992 : 0 : tree _o1[2], _r1;
18993 : 0 : _o1[0] = captures[0];
18994 : 0 : _o1[1] = captures[3];
18995 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18996 : 0 : res_op0 = _r1;
18997 : : }
18998 : 0 : tree res_op1;
18999 : 0 : res_op1 = captures[1];
19000 : 0 : tree res_op2;
19001 : 0 : res_op2 = captures[2];
19002 : 0 : tree _r;
19003 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19004 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
19005 : 0 : return _r;
19006 : : }
19007 : 0 : next_after_fail1844:;
19008 : : }
19009 : : }
19010 : 0 : {
19011 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
19012 : 0 : const enum tree_code lop = BIT_AND_EXPR;
19013 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
19014 : : )
19015 : : {
19016 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1845;
19017 : 0 : {
19018 : 0 : tree res_op0;
19019 : 0 : {
19020 : 0 : tree _o1[2], _r1;
19021 : 0 : _o1[0] = captures[0];
19022 : 0 : _o1[1] = captures[3];
19023 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19024 : 0 : res_op0 = _r1;
19025 : : }
19026 : 0 : tree res_op1;
19027 : 0 : res_op1 = captures[1];
19028 : 0 : tree res_op2;
19029 : 0 : res_op2 = captures[2];
19030 : 0 : tree _r;
19031 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19032 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
19033 : 0 : return _r;
19034 : : }
19035 : 0 : next_after_fail1845:;
19036 : : }
19037 : : }
19038 : 0 : {
19039 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
19040 : 0 : const enum tree_code lop = BIT_AND_EXPR;
19041 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
19042 : : )
19043 : : {
19044 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1846;
19045 : 0 : {
19046 : 0 : tree res_op0;
19047 : 0 : {
19048 : 0 : tree _o1[2], _r1;
19049 : 0 : _o1[0] = captures[0];
19050 : 0 : _o1[1] = captures[3];
19051 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19052 : 0 : res_op0 = _r1;
19053 : : }
19054 : 0 : tree res_op1;
19055 : 0 : res_op1 = captures[1];
19056 : 0 : tree res_op2;
19057 : 0 : res_op2 = captures[2];
19058 : 0 : tree _r;
19059 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19060 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
19061 : 0 : return _r;
19062 : : }
19063 : 0 : next_after_fail1846:;
19064 : : }
19065 : : }
19066 : 0 : {
19067 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
19068 : 0 : const enum tree_code lop = BIT_AND_EXPR;
19069 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
19070 : : )
19071 : : {
19072 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1847;
19073 : 0 : {
19074 : 0 : tree res_op0;
19075 : 0 : {
19076 : 0 : tree _o1[2], _r1;
19077 : 0 : _o1[0] = captures[0];
19078 : 0 : _o1[1] = captures[3];
19079 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19080 : 0 : res_op0 = _r1;
19081 : : }
19082 : 0 : tree res_op1;
19083 : 0 : res_op1 = captures[1];
19084 : 0 : tree res_op2;
19085 : 0 : res_op2 = captures[2];
19086 : 0 : tree _r;
19087 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19088 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
19089 : 0 : return _r;
19090 : : }
19091 : 0 : next_after_fail1847:;
19092 : : }
19093 : : }
19094 : 0 : {
19095 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
19096 : 0 : const enum tree_code lop = BIT_AND_EXPR;
19097 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
19098 : : )
19099 : : {
19100 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1848;
19101 : 0 : {
19102 : 0 : tree res_op0;
19103 : 0 : {
19104 : 0 : tree _o1[2], _r1;
19105 : 0 : _o1[0] = captures[0];
19106 : 0 : _o1[1] = captures[3];
19107 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19108 : 0 : res_op0 = _r1;
19109 : : }
19110 : 0 : tree res_op1;
19111 : 0 : res_op1 = captures[1];
19112 : 0 : tree res_op2;
19113 : 0 : res_op2 = captures[2];
19114 : 0 : tree _r;
19115 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19116 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
19117 : 0 : return _r;
19118 : : }
19119 : 0 : next_after_fail1848:;
19120 : : }
19121 : : }
19122 : 0 : {
19123 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
19124 : 0 : const enum tree_code lop = BIT_AND_EXPR;
19125 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
19126 : : )
19127 : : {
19128 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1849;
19129 : 0 : {
19130 : 0 : tree res_op0;
19131 : 0 : {
19132 : 0 : tree _o1[2], _r1;
19133 : 0 : _o1[0] = captures[0];
19134 : 0 : _o1[1] = captures[3];
19135 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19136 : 0 : res_op0 = _r1;
19137 : : }
19138 : 0 : tree res_op1;
19139 : 0 : res_op1 = captures[1];
19140 : 0 : tree res_op2;
19141 : 0 : res_op2 = captures[2];
19142 : 0 : tree _r;
19143 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19144 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
19145 : 0 : return _r;
19146 : : }
19147 : 0 : next_after_fail1849:;
19148 : : }
19149 : : }
19150 : 0 : {
19151 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
19152 : 0 : const enum tree_code lop = BIT_AND_EXPR;
19153 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
19154 : : )
19155 : : {
19156 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1850;
19157 : 0 : {
19158 : 0 : tree res_op0;
19159 : 0 : {
19160 : 0 : tree _o1[2], _r1;
19161 : 0 : _o1[0] = captures[0];
19162 : 0 : _o1[1] = captures[3];
19163 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19164 : 0 : res_op0 = _r1;
19165 : : }
19166 : 0 : tree res_op1;
19167 : 0 : res_op1 = captures[1];
19168 : 0 : tree res_op2;
19169 : 0 : res_op2 = captures[2];
19170 : 0 : tree _r;
19171 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19172 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
19173 : 0 : return _r;
19174 : : }
19175 : 0 : next_after_fail1850:;
19176 : : }
19177 : : }
19178 : 0 : {
19179 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
19180 : 0 : const enum tree_code lop = BIT_AND_EXPR;
19181 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
19182 : : )
19183 : : {
19184 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1851;
19185 : 0 : {
19186 : 0 : tree res_op0;
19187 : 0 : {
19188 : 0 : tree _o1[2], _r1;
19189 : 0 : _o1[0] = captures[0];
19190 : 0 : _o1[1] = captures[3];
19191 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19192 : 0 : res_op0 = _r1;
19193 : : }
19194 : 0 : tree res_op1;
19195 : 0 : res_op1 = captures[1];
19196 : 0 : tree res_op2;
19197 : 0 : res_op2 = captures[2];
19198 : 0 : tree _r;
19199 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19200 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
19201 : 0 : return _r;
19202 : : }
19203 : 0 : next_after_fail1851:;
19204 : : }
19205 : : }
19206 : 0 : {
19207 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
19208 : 0 : const enum tree_code lop = BIT_AND_EXPR;
19209 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
19210 : : )
19211 : : {
19212 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1852;
19213 : 0 : {
19214 : 0 : tree res_op0;
19215 : 0 : {
19216 : 0 : tree _o1[2], _r1;
19217 : 0 : _o1[0] = captures[0];
19218 : 0 : _o1[1] = captures[3];
19219 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19220 : 0 : res_op0 = _r1;
19221 : : }
19222 : 0 : tree res_op1;
19223 : 0 : res_op1 = captures[1];
19224 : 0 : tree res_op2;
19225 : 0 : res_op2 = captures[2];
19226 : 0 : tree _r;
19227 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19228 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
19229 : 0 : return _r;
19230 : : }
19231 : 0 : next_after_fail1852:;
19232 : : }
19233 : : }
19234 : 0 : {
19235 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
19236 : 0 : const enum tree_code lop = BIT_AND_EXPR;
19237 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
19238 : : )
19239 : : {
19240 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1853;
19241 : 0 : {
19242 : 0 : tree res_op0;
19243 : 0 : {
19244 : 0 : tree _o1[2], _r1;
19245 : 0 : _o1[0] = captures[0];
19246 : 0 : _o1[1] = captures[3];
19247 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19248 : 0 : res_op0 = _r1;
19249 : : }
19250 : 0 : tree res_op1;
19251 : 0 : res_op1 = captures[1];
19252 : 0 : tree res_op2;
19253 : 0 : res_op2 = captures[2];
19254 : 0 : tree _r;
19255 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19256 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
19257 : 0 : return _r;
19258 : : }
19259 : 0 : next_after_fail1853:;
19260 : : }
19261 : : }
19262 : 0 : {
19263 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
19264 : 0 : const enum tree_code lop = BIT_AND_EXPR;
19265 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
19266 : : )
19267 : : {
19268 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1854;
19269 : 0 : {
19270 : 0 : tree res_op0;
19271 : 0 : {
19272 : 0 : tree _o1[2], _r1;
19273 : 0 : _o1[0] = captures[0];
19274 : 0 : _o1[1] = captures[3];
19275 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19276 : 0 : res_op0 = _r1;
19277 : : }
19278 : 0 : tree res_op1;
19279 : 0 : res_op1 = captures[1];
19280 : 0 : tree res_op2;
19281 : 0 : res_op2 = captures[2];
19282 : 0 : tree _r;
19283 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19284 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
19285 : 0 : return _r;
19286 : : }
19287 : 0 : next_after_fail1854:;
19288 : : }
19289 : : }
19290 : 0 : {
19291 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
19292 : 0 : const enum tree_code lop = BIT_AND_EXPR;
19293 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
19294 : : )
19295 : : {
19296 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1855;
19297 : 0 : {
19298 : 0 : tree res_op0;
19299 : 0 : {
19300 : 0 : tree _o1[2], _r1;
19301 : 0 : _o1[0] = captures[0];
19302 : 0 : _o1[1] = captures[3];
19303 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19304 : 0 : res_op0 = _r1;
19305 : : }
19306 : 0 : tree res_op1;
19307 : 0 : res_op1 = captures[1];
19308 : 0 : tree res_op2;
19309 : 0 : res_op2 = captures[2];
19310 : 0 : tree _r;
19311 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19312 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
19313 : 0 : return _r;
19314 : : }
19315 : 0 : next_after_fail1855:;
19316 : : }
19317 : : }
19318 : 0 : {
19319 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
19320 : 0 : const enum tree_code lop = BIT_AND_EXPR;
19321 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
19322 : : )
19323 : : {
19324 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1856;
19325 : 0 : {
19326 : 0 : tree res_op0;
19327 : 0 : {
19328 : 0 : tree _o1[2], _r1;
19329 : 0 : _o1[0] = captures[0];
19330 : 0 : _o1[1] = captures[3];
19331 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19332 : 0 : res_op0 = _r1;
19333 : : }
19334 : 0 : tree res_op1;
19335 : 0 : res_op1 = captures[1];
19336 : 0 : tree res_op2;
19337 : 0 : res_op2 = captures[2];
19338 : 0 : tree _r;
19339 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19340 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
19341 : 0 : return _r;
19342 : : }
19343 : 0 : next_after_fail1856:;
19344 : : }
19345 : : }
19346 : 0 : {
19347 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
19348 : 0 : const enum tree_code lop = BIT_AND_EXPR;
19349 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
19350 : : )
19351 : : {
19352 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1857;
19353 : 0 : {
19354 : 0 : tree res_op0;
19355 : 0 : {
19356 : 0 : tree _o1[2], _r1;
19357 : 0 : _o1[0] = captures[0];
19358 : 0 : _o1[1] = captures[3];
19359 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19360 : 0 : res_op0 = _r1;
19361 : : }
19362 : 0 : tree res_op1;
19363 : 0 : res_op1 = captures[1];
19364 : 0 : tree res_op2;
19365 : 0 : res_op2 = captures[2];
19366 : 0 : tree _r;
19367 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19368 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
19369 : 0 : return _r;
19370 : : }
19371 : 0 : next_after_fail1857:;
19372 : : }
19373 : : }
19374 : 0 : {
19375 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
19376 : 0 : const enum tree_code lop = BIT_AND_EXPR;
19377 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
19378 : : )
19379 : : {
19380 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1858;
19381 : 0 : {
19382 : 0 : tree res_op0;
19383 : 0 : {
19384 : 0 : tree _o1[2], _r1;
19385 : 0 : _o1[0] = captures[0];
19386 : 0 : _o1[1] = captures[3];
19387 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19388 : 0 : res_op0 = _r1;
19389 : : }
19390 : 0 : tree res_op1;
19391 : 0 : res_op1 = captures[1];
19392 : 0 : tree res_op2;
19393 : 0 : res_op2 = captures[2];
19394 : 0 : tree _r;
19395 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19396 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
19397 : 0 : return _r;
19398 : : }
19399 : 0 : next_after_fail1858:;
19400 : : }
19401 : : }
19402 : : }
19403 : : }
19404 : : break;
19405 : : }
19406 : : default:;
19407 : : }
19408 : : }
19409 : : }
19410 : 18 : {
19411 : 18 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
19412 : 18 : if (VECTOR_TYPE_P (type)
19413 : 18 : && (TREE_CODE_CLASS (BIT_AND_EXPR) != tcc_comparison
19414 : : || types_match (type, TREE_TYPE (captures[2]))
19415 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
19416 : : || (optimize_vectors_before_lowering_p ()
19417 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
19418 : : )
19419 : : {
19420 : 18 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1859;
19421 : 18 : {
19422 : 18 : if (! tree_invariant_p (captures[4])) goto next_after_fail1859;
19423 : 14 : tree res_op0;
19424 : 14 : res_op0 = captures[1];
19425 : 14 : tree res_op1;
19426 : 14 : {
19427 : 14 : tree _o1[2], _r1;
19428 : 14 : _o1[0] = captures[2];
19429 : 14 : _o1[1] = unshare_expr (captures[4]);
19430 : 14 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19431 : 14 : if (EXPR_P (_r1))
19432 : 0 : goto next_after_fail1859;
19433 : 14 : res_op1 = _r1;
19434 : : }
19435 : 14 : tree res_op2;
19436 : 14 : {
19437 : 14 : tree _o1[2], _r1;
19438 : 14 : _o1[0] = captures[3];
19439 : 14 : _o1[1] = captures[4];
19440 : 14 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19441 : 14 : if (EXPR_P (_r1))
19442 : 0 : goto next_after_fail1859;
19443 : 14 : res_op2 = _r1;
19444 : : }
19445 : 14 : tree _r;
19446 : 14 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19447 : 14 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 920, __FILE__, __LINE__, true);
19448 : 14 : return _r;
19449 : : }
19450 : 4 : next_after_fail1859:;
19451 : : }
19452 : : }
19453 : 4 : break;
19454 : : }
19455 : 137694 : case CALL_EXPR:
19456 : 137694 : switch (get_call_combined_fn (_p0))
19457 : : {
19458 : 0 : case CFN_BUILT_IN_BSWAP128:
19459 : 0 : if (call_expr_nargs (_p0) == 1)
19460 : : {
19461 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
19462 : 0 : switch (TREE_CODE (_p1))
19463 : : {
19464 : 0 : case INTEGER_CST:
19465 : 0 : {
19466 : 0 : {
19467 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
19468 : 0 : tree res = generic_simplify_462 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP128);
19469 : 0 : if (res) return res;
19470 : : }
19471 : 0 : break;
19472 : : }
19473 : : default:;
19474 : : }
19475 : : }
19476 : : break;
19477 : 0 : case CFN_BUILT_IN_BSWAP16:
19478 : 0 : if (call_expr_nargs (_p0) == 1)
19479 : : {
19480 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
19481 : 0 : switch (TREE_CODE (_p1))
19482 : : {
19483 : 0 : case INTEGER_CST:
19484 : 0 : {
19485 : 0 : {
19486 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
19487 : 0 : tree res = generic_simplify_462 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP16);
19488 : 0 : if (res) return res;
19489 : : }
19490 : 0 : break;
19491 : : }
19492 : : default:;
19493 : : }
19494 : : }
19495 : : break;
19496 : 10 : case CFN_BUILT_IN_BSWAP32:
19497 : 10 : if (call_expr_nargs (_p0) == 1)
19498 : : {
19499 : 10 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
19500 : 10 : switch (TREE_CODE (_p1))
19501 : : {
19502 : 9 : case INTEGER_CST:
19503 : 9 : {
19504 : 9 : {
19505 : 9 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
19506 : 9 : tree res = generic_simplify_462 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP32);
19507 : 9 : if (res) return res;
19508 : : }
19509 : 1 : break;
19510 : : }
19511 : : default:;
19512 : : }
19513 : : }
19514 : : break;
19515 : 8 : case CFN_BUILT_IN_BSWAP64:
19516 : 8 : if (call_expr_nargs (_p0) == 1)
19517 : : {
19518 : 8 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
19519 : 8 : switch (TREE_CODE (_p1))
19520 : : {
19521 : 7 : case INTEGER_CST:
19522 : 7 : {
19523 : 7 : {
19524 : 7 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
19525 : 7 : tree res = generic_simplify_462 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP64);
19526 : 7 : if (res) return res;
19527 : : }
19528 : 1 : break;
19529 : : }
19530 : : default:;
19531 : : }
19532 : : }
19533 : : break;
19534 : : default:;
19535 : : }
19536 : : break;
19537 : 6330255 : default:;
19538 : : }
19539 : 6330255 : switch (TREE_CODE (_p1))
19540 : : {
19541 : 1 : case VEC_COND_EXPR:
19542 : 1 : {
19543 : 1 : tree _q30 = TREE_OPERAND (_p1, 0);
19544 : 1 : tree _q31 = TREE_OPERAND (_p1, 1);
19545 : 1 : tree _q32 = TREE_OPERAND (_p1, 2);
19546 : 1 : {
19547 : 1 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
19548 : 1 : if (VECTOR_TYPE_P (type)
19549 : 1 : && (TREE_CODE_CLASS (BIT_AND_EXPR) != tcc_comparison
19550 : : || types_match (type, TREE_TYPE (captures[3]))
19551 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
19552 : : || (optimize_vectors_before_lowering_p ()
19553 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
19554 : : )
19555 : : {
19556 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1860;
19557 : 1 : {
19558 : 1 : if (! tree_invariant_p (captures[0])) goto next_after_fail1860;
19559 : 0 : tree res_op0;
19560 : 0 : res_op0 = captures[2];
19561 : 0 : tree res_op1;
19562 : 0 : {
19563 : 0 : tree _o1[2], _r1;
19564 : 0 : _o1[0] = unshare_expr (captures[0]);
19565 : 0 : _o1[1] = captures[3];
19566 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19567 : 0 : if (EXPR_P (_r1))
19568 : 0 : goto next_after_fail1860;
19569 : 0 : res_op1 = _r1;
19570 : : }
19571 : 0 : tree res_op2;
19572 : 0 : {
19573 : 0 : tree _o1[2], _r1;
19574 : 0 : _o1[0] = captures[0];
19575 : 0 : _o1[1] = captures[4];
19576 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19577 : 0 : if (EXPR_P (_r1))
19578 : 0 : goto next_after_fail1860;
19579 : 0 : res_op2 = _r1;
19580 : : }
19581 : 0 : tree _r;
19582 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
19583 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 921, __FILE__, __LINE__, true);
19584 : 0 : return _r;
19585 : : }
19586 : 1 : next_after_fail1860:;
19587 : : }
19588 : : }
19589 : 1 : break;
19590 : : }
19591 : 6330255 : default:;
19592 : : }
19593 : 6330255 : switch (TREE_CODE (_p0))
19594 : : {
19595 : 0 : case ORDERED_EXPR:
19596 : 0 : {
19597 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
19598 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
19599 : 0 : switch (TREE_CODE (_p1))
19600 : : {
19601 : 0 : case NE_EXPR:
19602 : 0 : {
19603 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
19604 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
19605 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19606 : : {
19607 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
19608 : : {
19609 : 0 : {
19610 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
19611 : 0 : tree res = generic_simplify_480 (loc, type, _p0, _p1, captures);
19612 : 0 : if (res) return res;
19613 : : }
19614 : : }
19615 : : }
19616 : : break;
19617 : : }
19618 : 0 : default:;
19619 : : }
19620 : 0 : if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
19621 : : {
19622 : 0 : switch (TREE_CODE (_p1))
19623 : : {
19624 : 0 : case ORDERED_EXPR:
19625 : 0 : {
19626 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
19627 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
19628 : 0 : if ((_q51 == _q50 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q50, 0) && types_match (_q51, _q50)))
19629 : : {
19630 : 0 : {
19631 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q50 };
19632 : 0 : if (types_match (captures[0], captures[1])
19633 : : )
19634 : : {
19635 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1861;
19636 : 0 : {
19637 : 0 : tree res_op0;
19638 : 0 : res_op0 = captures[0];
19639 : 0 : tree res_op1;
19640 : 0 : res_op1 = captures[1];
19641 : 0 : tree _r;
19642 : 0 : _r = fold_build2_loc (loc, ORDERED_EXPR, type, res_op0, res_op1);
19643 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1046, __FILE__, __LINE__, true);
19644 : 0 : return _r;
19645 : : }
19646 : 0 : next_after_fail1861:;
19647 : : }
19648 : : }
19649 : : }
19650 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19651 : : {
19652 : 0 : {
19653 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p1, _q51 };
19654 : 0 : tree res = generic_simplify_481 (loc, type, _p0, _p1, captures);
19655 : 0 : if (res) return res;
19656 : : }
19657 : : }
19658 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
19659 : : {
19660 : 0 : {
19661 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p1, _q50 };
19662 : 0 : tree res = generic_simplify_481 (loc, type, _p0, _p1, captures);
19663 : 0 : if (res) return res;
19664 : : }
19665 : : }
19666 : : break;
19667 : : }
19668 : : default:;
19669 : : }
19670 : : }
19671 : 0 : switch (TREE_CODE (_p1))
19672 : : {
19673 : 0 : case ORDERED_EXPR:
19674 : 0 : {
19675 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
19676 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
19677 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19678 : : {
19679 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
19680 : : {
19681 : 0 : {
19682 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p0, _q21 };
19683 : 0 : tree res = generic_simplify_482 (loc, type, _p0, _p1, captures);
19684 : 0 : if (res) return res;
19685 : : }
19686 : : }
19687 : : }
19688 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
19689 : : {
19690 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
19691 : : {
19692 : 0 : {
19693 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _p0, _q20 };
19694 : 0 : tree res = generic_simplify_482 (loc, type, _p0, _p1, captures);
19695 : 0 : if (res) return res;
19696 : : }
19697 : : }
19698 : : }
19699 : : break;
19700 : : }
19701 : : default:;
19702 : : }
19703 : : break;
19704 : : }
19705 : 129 : case NE_EXPR:
19706 : 129 : {
19707 : 129 : tree _q20 = TREE_OPERAND (_p0, 0);
19708 : 129 : tree _q21 = TREE_OPERAND (_p0, 1);
19709 : 129 : switch (TREE_CODE (_p1))
19710 : : {
19711 : 0 : case ORDERED_EXPR:
19712 : 0 : {
19713 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
19714 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
19715 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19716 : : {
19717 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
19718 : : {
19719 : 0 : {
19720 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
19721 : 0 : tree res = generic_simplify_480 (loc, type, _p0, _p1, captures);
19722 : 0 : if (res) return res;
19723 : : }
19724 : : }
19725 : : }
19726 : : break;
19727 : : }
19728 : : default:;
19729 : : }
19730 : : break;
19731 : : }
19732 : 524142 : case MINUS_EXPR:
19733 : 524142 : {
19734 : 524142 : tree _q20 = TREE_OPERAND (_p0, 0);
19735 : 524142 : tree _q21 = TREE_OPERAND (_p0, 1);
19736 : 524142 : switch (TREE_CODE (_q20))
19737 : : {
19738 : 457879 : CASE_CONVERT:
19739 : 457879 : {
19740 : 457879 : tree _q30 = TREE_OPERAND (_q20, 0);
19741 : 457879 : switch (TREE_CODE (_q21))
19742 : : {
19743 : 452280 : CASE_CONVERT:
19744 : 452280 : {
19745 : 452280 : tree _q50 = TREE_OPERAND (_q21, 0);
19746 : 452280 : switch (TREE_CODE (_p1))
19747 : : {
19748 : 452256 : case INTEGER_CST:
19749 : 452256 : {
19750 : 452256 : {
19751 : 452256 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1 };
19752 : 452256 : tree res = generic_simplify_483 (loc, type, _p0, _p1, captures, MINUS_EXPR);
19753 : 452256 : if (res) return res;
19754 : : }
19755 : 452246 : break;
19756 : : }
19757 : : default:;
19758 : : }
19759 : : break;
19760 : : }
19761 : : default:;
19762 : : }
19763 : : break;
19764 : : }
19765 : : default:;
19766 : : }
19767 : : break;
19768 : : }
19769 : 175929 : case PLUS_EXPR:
19770 : 175929 : {
19771 : 175929 : tree _q20 = TREE_OPERAND (_p0, 0);
19772 : 175929 : tree _q21 = TREE_OPERAND (_p0, 1);
19773 : 175929 : switch (TREE_CODE (_q20))
19774 : : {
19775 : 51147 : CASE_CONVERT:
19776 : 51147 : {
19777 : 51147 : tree _q30 = TREE_OPERAND (_q20, 0);
19778 : 51147 : switch (TREE_CODE (_q21))
19779 : : {
19780 : 117 : CASE_CONVERT:
19781 : 117 : {
19782 : 117 : tree _q50 = TREE_OPERAND (_q21, 0);
19783 : 117 : switch (TREE_CODE (_p1))
19784 : : {
19785 : 60 : case INTEGER_CST:
19786 : 60 : {
19787 : 60 : {
19788 : 60 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1 };
19789 : 60 : tree res = generic_simplify_483 (loc, type, _p0, _p1, captures, PLUS_EXPR);
19790 : 60 : if (res) return res;
19791 : : }
19792 : 45 : break;
19793 : : }
19794 : : default:;
19795 : : }
19796 : : break;
19797 : : }
19798 : : default:;
19799 : : }
19800 : : break;
19801 : : }
19802 : : default:;
19803 : : }
19804 : : break;
19805 : : }
19806 : 80 : case LT_EXPR:
19807 : 80 : {
19808 : 80 : tree _q20 = TREE_OPERAND (_p0, 0);
19809 : 80 : tree _q21 = TREE_OPERAND (_p0, 1);
19810 : 80 : switch (TREE_CODE (_p1))
19811 : : {
19812 : 8 : case LT_EXPR:
19813 : 8 : {
19814 : 8 : tree _q50 = TREE_OPERAND (_p1, 0);
19815 : 8 : tree _q51 = TREE_OPERAND (_p1, 1);
19816 : 8 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19817 : : {
19818 : 0 : {
19819 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
19820 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LT_EXPR, MIN_EXPR);
19821 : 0 : if (res) return res;
19822 : : }
19823 : : }
19824 : 8 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
19825 : : {
19826 : 0 : {
19827 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
19828 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GT_EXPR, MAX_EXPR);
19829 : 0 : if (res) return res;
19830 : : }
19831 : : }
19832 : : break;
19833 : : }
19834 : 1 : case GT_EXPR:
19835 : 1 : {
19836 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
19837 : 1 : tree _q51 = TREE_OPERAND (_p1, 1);
19838 : 1 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
19839 : : {
19840 : 0 : {
19841 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
19842 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LT_EXPR, MIN_EXPR);
19843 : 0 : if (res) return res;
19844 : : }
19845 : : }
19846 : 1 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
19847 : : {
19848 : 0 : {
19849 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
19850 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GT_EXPR, MAX_EXPR);
19851 : 0 : if (res) return res;
19852 : : }
19853 : : }
19854 : : break;
19855 : : }
19856 : : default:;
19857 : : }
19858 : : break;
19859 : : }
19860 : 32 : case LE_EXPR:
19861 : 32 : {
19862 : 32 : tree _q20 = TREE_OPERAND (_p0, 0);
19863 : 32 : tree _q21 = TREE_OPERAND (_p0, 1);
19864 : 32 : switch (TREE_CODE (_p1))
19865 : : {
19866 : 5 : case LE_EXPR:
19867 : 5 : {
19868 : 5 : tree _q50 = TREE_OPERAND (_p1, 0);
19869 : 5 : tree _q51 = TREE_OPERAND (_p1, 1);
19870 : 5 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19871 : : {
19872 : 0 : {
19873 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
19874 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LE_EXPR, MIN_EXPR);
19875 : 0 : if (res) return res;
19876 : : }
19877 : : }
19878 : 5 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
19879 : : {
19880 : 4 : {
19881 : 4 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
19882 : 4 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GE_EXPR, MAX_EXPR);
19883 : 4 : if (res) return res;
19884 : : }
19885 : : }
19886 : : break;
19887 : : }
19888 : 0 : case GE_EXPR:
19889 : 0 : {
19890 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
19891 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
19892 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
19893 : : {
19894 : 0 : {
19895 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
19896 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LE_EXPR, MIN_EXPR);
19897 : 0 : if (res) return res;
19898 : : }
19899 : : }
19900 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
19901 : : {
19902 : 0 : {
19903 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
19904 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GE_EXPR, MAX_EXPR);
19905 : 0 : if (res) return res;
19906 : : }
19907 : : }
19908 : : break;
19909 : : }
19910 : : default:;
19911 : : }
19912 : : break;
19913 : : }
19914 : 348 : case GT_EXPR:
19915 : 348 : {
19916 : 348 : tree _q20 = TREE_OPERAND (_p0, 0);
19917 : 348 : tree _q21 = TREE_OPERAND (_p0, 1);
19918 : 348 : switch (TREE_CODE (_p1))
19919 : : {
19920 : 85 : case GT_EXPR:
19921 : 85 : {
19922 : 85 : tree _q50 = TREE_OPERAND (_p1, 0);
19923 : 85 : tree _q51 = TREE_OPERAND (_p1, 1);
19924 : 85 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19925 : : {
19926 : 0 : {
19927 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
19928 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GT_EXPR, MAX_EXPR);
19929 : 0 : if (res) return res;
19930 : : }
19931 : : }
19932 : 85 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
19933 : : {
19934 : 35 : {
19935 : 35 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
19936 : 35 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LT_EXPR, MIN_EXPR);
19937 : 35 : if (res) return res;
19938 : : }
19939 : : }
19940 : : break;
19941 : : }
19942 : 67 : case LT_EXPR:
19943 : 67 : {
19944 : 67 : tree _q50 = TREE_OPERAND (_p1, 0);
19945 : 67 : tree _q51 = TREE_OPERAND (_p1, 1);
19946 : 67 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
19947 : : {
19948 : 0 : {
19949 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
19950 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GT_EXPR, MAX_EXPR);
19951 : 0 : if (res) return res;
19952 : : }
19953 : : }
19954 : 67 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
19955 : : {
19956 : 0 : {
19957 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
19958 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LT_EXPR, MIN_EXPR);
19959 : 0 : if (res) return res;
19960 : : }
19961 : : }
19962 : : break;
19963 : : }
19964 : : default:;
19965 : : }
19966 : : break;
19967 : : }
19968 : 71 : case GE_EXPR:
19969 : 71 : {
19970 : 71 : tree _q20 = TREE_OPERAND (_p0, 0);
19971 : 71 : tree _q21 = TREE_OPERAND (_p0, 1);
19972 : 71 : switch (TREE_CODE (_p1))
19973 : : {
19974 : 11 : case GE_EXPR:
19975 : 11 : {
19976 : 11 : tree _q50 = TREE_OPERAND (_p1, 0);
19977 : 11 : tree _q51 = TREE_OPERAND (_p1, 1);
19978 : 11 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19979 : : {
19980 : 7 : {
19981 : 7 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
19982 : 7 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GE_EXPR, MAX_EXPR);
19983 : 7 : if (res) return res;
19984 : : }
19985 : : }
19986 : 11 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
19987 : : {
19988 : 0 : {
19989 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
19990 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LE_EXPR, MIN_EXPR);
19991 : 0 : if (res) return res;
19992 : : }
19993 : : }
19994 : : break;
19995 : : }
19996 : 17 : case LE_EXPR:
19997 : 17 : {
19998 : 17 : tree _q50 = TREE_OPERAND (_p1, 0);
19999 : 17 : tree _q51 = TREE_OPERAND (_p1, 1);
20000 : 17 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
20001 : : {
20002 : 0 : {
20003 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
20004 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GE_EXPR, MAX_EXPR);
20005 : 0 : if (res) return res;
20006 : : }
20007 : : }
20008 : 17 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
20009 : : {
20010 : 0 : {
20011 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
20012 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LE_EXPR, MIN_EXPR);
20013 : 0 : if (res) return res;
20014 : : }
20015 : : }
20016 : : break;
20017 : : }
20018 : : default:;
20019 : : }
20020 : : break;
20021 : : }
20022 : 47810 : case NEGATE_EXPR:
20023 : 47810 : {
20024 : 47810 : tree _q20 = TREE_OPERAND (_p0, 0);
20025 : 47810 : if (integer_onep (_p1))
20026 : : {
20027 : 2090 : {
20028 : 2090 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
20029 : 2090 : if (!TYPE_OVERFLOW_SANITIZED (type)
20030 : : )
20031 : : {
20032 : 2077 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1862;
20033 : 2077 : {
20034 : 2077 : tree res_op0;
20035 : 2077 : res_op0 = captures[0];
20036 : 2077 : tree res_op1;
20037 : 2077 : res_op1 = captures[1];
20038 : 2077 : tree _r;
20039 : 2077 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
20040 : 2077 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1047, __FILE__, __LINE__, true);
20041 : 2077 : return _r;
20042 : : }
20043 : 0 : next_after_fail1862:;
20044 : : }
20045 : : }
20046 : : }
20047 : : break;
20048 : : }
20049 : 1 : case VEC_PERM_EXPR:
20050 : 1 : {
20051 : 1 : tree _q20 = TREE_OPERAND (_p0, 0);
20052 : 1 : tree _q21 = TREE_OPERAND (_p0, 1);
20053 : 1 : tree _q22 = TREE_OPERAND (_p0, 2);
20054 : 1 : if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
20055 : : {
20056 : 0 : switch (TREE_CODE (_p1))
20057 : : {
20058 : 0 : case VEC_PERM_EXPR:
20059 : 0 : {
20060 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
20061 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
20062 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
20063 : 0 : if ((_q61 == _q60 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q60, 0) && types_match (_q61, _q60)))
20064 : : {
20065 : 0 : if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
20066 : : {
20067 : 0 : {
20068 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q22, _q60 };
20069 : 0 : if (VECTOR_INTEGER_TYPE_P (type)
20070 : : )
20071 : : {
20072 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1863;
20073 : 0 : {
20074 : 0 : tree res_op0;
20075 : 0 : {
20076 : 0 : tree _o1[2], _r1;
20077 : 0 : _o1[0] = captures[0];
20078 : 0 : _o1[1] = captures[2];
20079 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
20080 : 0 : captures[3] = _r1;
20081 : : }
20082 : 0 : res_op0 = unshare_expr (captures[3]);
20083 : 0 : tree res_op1;
20084 : 0 : res_op1 = captures[3];
20085 : 0 : tree res_op2;
20086 : 0 : res_op2 = captures[1];
20087 : 0 : tree _r;
20088 : 0 : _r = fold_build3_loc (loc, VEC_PERM_EXPR, type, res_op0, res_op1, res_op2);
20089 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 922, __FILE__, __LINE__, true);
20090 : 0 : return _r;
20091 : : }
20092 : 0 : next_after_fail1863:;
20093 : : }
20094 : : }
20095 : : }
20096 : : }
20097 : : break;
20098 : : }
20099 : : default:;
20100 : : }
20101 : : }
20102 : : break;
20103 : : }
20104 : 137680 : case CALL_EXPR:
20105 : 137680 : switch (get_call_combined_fn (_p0))
20106 : : {
20107 : 1 : case CFN_BUILT_IN_POPCOUNT:
20108 : 1 : if (call_expr_nargs (_p0) == 1)
20109 : : {
20110 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
20111 : 1 : if (integer_onep (_p1))
20112 : : {
20113 : 1 : {
20114 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
20115 : 1 : tree res = generic_simplify_484 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNT, CFN_BUILT_IN_PARITY);
20116 : 1 : if (res) return res;
20117 : : }
20118 : : }
20119 : : }
20120 : : break;
20121 : 1 : case CFN_BUILT_IN_POPCOUNTLL:
20122 : 1 : if (call_expr_nargs (_p0) == 1)
20123 : : {
20124 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
20125 : 1 : if (integer_onep (_p1))
20126 : : {
20127 : 1 : {
20128 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
20129 : 1 : tree res = generic_simplify_484 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTLL, CFN_BUILT_IN_PARITYLL);
20130 : 1 : if (res) return res;
20131 : : }
20132 : : }
20133 : : }
20134 : : break;
20135 : 0 : case CFN_POPCOUNT:
20136 : 0 : if (call_expr_nargs (_p0) == 1)
20137 : : {
20138 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
20139 : 0 : if (integer_onep (_p1))
20140 : : {
20141 : 0 : {
20142 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
20143 : 0 : tree res = generic_simplify_484 (loc, type, _p0, _p1, captures, CFN_POPCOUNT, CFN_PARITY);
20144 : 0 : if (res) return res;
20145 : : }
20146 : : }
20147 : : }
20148 : : break;
20149 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
20150 : 0 : if (call_expr_nargs (_p0) == 1)
20151 : : {
20152 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
20153 : 0 : if (integer_onep (_p1))
20154 : : {
20155 : 0 : {
20156 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
20157 : 0 : tree res = generic_simplify_484 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTIMAX, CFN_BUILT_IN_PARITYIMAX);
20158 : 0 : if (res) return res;
20159 : : }
20160 : : }
20161 : : }
20162 : : break;
20163 : 1 : case CFN_BUILT_IN_POPCOUNTL:
20164 : 1 : if (call_expr_nargs (_p0) == 1)
20165 : : {
20166 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
20167 : 1 : if (integer_onep (_p1))
20168 : : {
20169 : 1 : {
20170 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
20171 : 1 : tree res = generic_simplify_484 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTL, CFN_BUILT_IN_PARITYL);
20172 : 1 : if (res) return res;
20173 : : }
20174 : : }
20175 : : }
20176 : : break;
20177 : : default:;
20178 : : }
20179 : : break;
20180 : : default:;
20181 : : }
20182 : : return NULL_TREE;
20183 : : }
20184 : : #pragma GCC diagnostic pop
|