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 : 1617491 : tree_power_of_two_cand (tree t, tree *res_ops)
11 : : {
12 : 1617491 : const tree type = TREE_TYPE (t);
13 : 1617491 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
14 : 1617491 : if (TREE_SIDE_EFFECTS (t)) return false;
15 : 1616785 : switch (TREE_CODE (t))
16 : : {
17 : 1367184 : case INTEGER_CST:
18 : 1367184 : {
19 : 1367184 : {
20 : 1367184 : tree captures[1] ATTRIBUTE_UNUSED = { t };
21 : 1367184 : {
22 : 1367184 : res_ops[0] = captures[0];
23 : 1367184 : 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 : 76200240 : tree_with_possible_nonzero_bits (tree t)
58 : : {
59 : 76200240 : const tree type = TREE_TYPE (t);
60 : 76200240 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
61 : 76200240 : if (TREE_SIDE_EFFECTS (t)) return false;
62 : 71433321 : switch (TREE_CODE (t))
63 : : {
64 : 2026730 : case BIT_AND_EXPR:
65 : 2026730 : {
66 : 2026730 : tree _p0 = TREE_OPERAND (t, 0);
67 : 2026730 : tree _p1 = TREE_OPERAND (t, 1);
68 : 2026730 : if (tree_with_possible_nonzero_bits_1 (_p0))
69 : : {
70 : 971376 : {
71 : 971376 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
72 : 971376 : {
73 : 971376 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 35, __FILE__, __LINE__, false);
74 : 971376 : return true;
75 : : }
76 : : }
77 : : }
78 : 1055354 : if (tree_with_possible_nonzero_bits_1 (_p1))
79 : : {
80 : 908495 : {
81 : 908495 : tree captures[2] ATTRIBUTE_UNUSED = { _p1, _p0 };
82 : 908495 : {
83 : 908495 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 35, __FILE__, __LINE__, false);
84 : 908495 : return true;
85 : : }
86 : : }
87 : : }
88 : : break;
89 : : }
90 : 69553450 : default:;
91 : : }
92 : 69553450 : if (tree_with_possible_nonzero_bits_1 (t))
93 : : {
94 : 41181326 : {
95 : 41181326 : tree captures[1] ATTRIBUTE_UNUSED = { t };
96 : 41181326 : {
97 : 41181326 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 36, __FILE__, __LINE__, false);
98 : 41181326 : return true;
99 : : }
100 : : }
101 : : }
102 : : return false;
103 : : }
104 : :
105 : : bool
106 : 0 : tree_unsigned_integer_sat_trunc (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 BIT_IOR_EXPR:
114 : 0 : {
115 : 0 : tree _p0 = TREE_OPERAND (t, 0);
116 : 0 : tree _p1 = TREE_OPERAND (t, 1);
117 : 0 : switch (TREE_CODE (_p0))
118 : : {
119 : 0 : case NEGATE_EXPR:
120 : 0 : {
121 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
122 : 0 : switch (TREE_CODE (_q20))
123 : : {
124 : 0 : CASE_CONVERT:
125 : 0 : {
126 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
127 : 0 : switch (TREE_CODE (_q30))
128 : : {
129 : 0 : case GT_EXPR:
130 : 0 : {
131 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
132 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
133 : 0 : switch (TREE_CODE (_q41))
134 : : {
135 : 0 : case INTEGER_CST:
136 : 0 : {
137 : 0 : switch (TREE_CODE (_p1))
138 : : {
139 : 0 : CASE_CONVERT:
140 : 0 : {
141 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
142 : 0 : if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
143 : : {
144 : 0 : {
145 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q41 };
146 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
147 : : )
148 : : {
149 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0]))
150 : : )
151 : : {
152 : 0 : {
153 : 0 : unsigned itype_precision = TYPE_PRECISION (TREE_TYPE (captures[0]));
154 : 0 : unsigned otype_precision = TYPE_PRECISION (type);
155 : 0 : wide_int trunc_max = wi::mask (otype_precision, false, itype_precision);
156 : 0 : wide_int int_cst = wi::to_wide (captures[1], itype_precision);
157 : 0 : if (otype_precision < itype_precision && wi::eq_p (trunc_max, int_cst)
158 : : )
159 : : {
160 : 0 : {
161 : 0 : res_ops[0] = captures[0];
162 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 69, __FILE__, __LINE__, false);
163 : 0 : return true;
164 : : }
165 : : }
166 : 0 : }
167 : : }
168 : : }
169 : : }
170 : : }
171 : : break;
172 : : }
173 : : default:;
174 : : }
175 : : break;
176 : : }
177 : : default:;
178 : : }
179 : : break;
180 : : }
181 : : default:;
182 : : }
183 : : break;
184 : : }
185 : : default:;
186 : : }
187 : : break;
188 : : }
189 : 0 : CASE_CONVERT:
190 : 0 : {
191 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
192 : 0 : switch (TREE_CODE (_p1))
193 : : {
194 : 0 : case NEGATE_EXPR:
195 : 0 : {
196 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
197 : 0 : switch (TREE_CODE (_q40))
198 : : {
199 : 0 : CASE_CONVERT:
200 : 0 : {
201 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
202 : 0 : switch (TREE_CODE (_q50))
203 : : {
204 : 0 : case GT_EXPR:
205 : 0 : {
206 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
207 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
208 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
209 : : {
210 : 0 : switch (TREE_CODE (_q61))
211 : : {
212 : 0 : case INTEGER_CST:
213 : 0 : {
214 : 0 : {
215 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q61 };
216 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
217 : : )
218 : : {
219 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0]))
220 : : )
221 : : {
222 : 0 : {
223 : 0 : unsigned itype_precision = TYPE_PRECISION (TREE_TYPE (captures[0]));
224 : 0 : unsigned otype_precision = TYPE_PRECISION (type);
225 : 0 : wide_int trunc_max = wi::mask (otype_precision, false, itype_precision);
226 : 0 : wide_int int_cst = wi::to_wide (captures[1], itype_precision);
227 : 0 : if (otype_precision < itype_precision && wi::eq_p (trunc_max, int_cst)
228 : : )
229 : : {
230 : 0 : {
231 : 0 : res_ops[0] = captures[0];
232 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 69, __FILE__, __LINE__, false);
233 : 0 : return true;
234 : : }
235 : : }
236 : 0 : }
237 : : }
238 : : }
239 : : }
240 : 0 : break;
241 : : }
242 : : default:;
243 : : }
244 : : }
245 : : break;
246 : : }
247 : : default:;
248 : : }
249 : : break;
250 : : }
251 : : default:;
252 : : }
253 : : break;
254 : : }
255 : 0 : case PLUS_EXPR:
256 : 0 : {
257 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
258 : 0 : tree _q41 = TREE_OPERAND (_p1, 1);
259 : 0 : switch (TREE_CODE (_q40))
260 : : {
261 : 0 : CASE_CONVERT:
262 : 0 : {
263 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
264 : 0 : switch (TREE_CODE (_q50))
265 : : {
266 : 0 : case LE_EXPR:
267 : 0 : {
268 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
269 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
270 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
271 : : {
272 : 0 : switch (TREE_CODE (_q61))
273 : : {
274 : 0 : case INTEGER_CST:
275 : 0 : {
276 : 0 : switch (TREE_CODE (_q41))
277 : : {
278 : 0 : case INTEGER_CST:
279 : 0 : {
280 : 0 : {
281 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q61, _q41 };
282 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
283 : : )
284 : : {
285 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0]))
286 : : )
287 : : {
288 : 0 : {
289 : 0 : unsigned itype_precision = TYPE_PRECISION (TREE_TYPE (captures[0]));
290 : 0 : unsigned otype_precision = TYPE_PRECISION (type);
291 : 0 : wide_int trunc_max = wi::mask (otype_precision, false, itype_precision);
292 : 0 : wide_int max = wi::mask (otype_precision, false, otype_precision);
293 : 0 : wide_int int_cst_1 = wi::to_wide (captures[1]);
294 : 0 : wide_int int_cst_2 = wi::to_wide (captures[2]);
295 : 0 : if (wi::eq_p (trunc_max, int_cst_1) && wi::eq_p (max, int_cst_2)
296 : : )
297 : : {
298 : 0 : {
299 : 0 : res_ops[0] = captures[0];
300 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 70, __FILE__, __LINE__, false);
301 : 0 : return true;
302 : : }
303 : : }
304 : 0 : }
305 : : }
306 : : }
307 : : }
308 : 0 : break;
309 : : }
310 : : default:;
311 : : }
312 : : break;
313 : : }
314 : : default:;
315 : : }
316 : : }
317 : : break;
318 : : }
319 : : default:;
320 : : }
321 : : break;
322 : : }
323 : 0 : case INTEGER_CST:
324 : 0 : {
325 : 0 : switch (TREE_CODE (_q41))
326 : : {
327 : 0 : CASE_CONVERT:
328 : 0 : {
329 : 0 : tree _q60 = TREE_OPERAND (_q41, 0);
330 : 0 : switch (TREE_CODE (_q60))
331 : : {
332 : 0 : case LE_EXPR:
333 : 0 : {
334 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
335 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
336 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
337 : : {
338 : 0 : switch (TREE_CODE (_q71))
339 : : {
340 : 0 : case INTEGER_CST:
341 : 0 : {
342 : 0 : {
343 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q71, _q40 };
344 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
345 : : )
346 : : {
347 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0]))
348 : : )
349 : : {
350 : 0 : {
351 : 0 : unsigned itype_precision = TYPE_PRECISION (TREE_TYPE (captures[0]));
352 : 0 : unsigned otype_precision = TYPE_PRECISION (type);
353 : 0 : wide_int trunc_max = wi::mask (otype_precision, false, itype_precision);
354 : 0 : wide_int max = wi::mask (otype_precision, false, otype_precision);
355 : 0 : wide_int int_cst_1 = wi::to_wide (captures[1]);
356 : 0 : wide_int int_cst_2 = wi::to_wide (captures[2]);
357 : 0 : if (wi::eq_p (trunc_max, int_cst_1) && wi::eq_p (max, int_cst_2)
358 : : )
359 : : {
360 : 0 : {
361 : 0 : res_ops[0] = captures[0];
362 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 70, __FILE__, __LINE__, false);
363 : 0 : return true;
364 : : }
365 : : }
366 : 0 : }
367 : : }
368 : : }
369 : : }
370 : 0 : break;
371 : : }
372 : : default:;
373 : : }
374 : : }
375 : : break;
376 : : }
377 : : default:;
378 : : }
379 : : break;
380 : : }
381 : : default:;
382 : : }
383 : : break;
384 : : }
385 : : default:;
386 : : }
387 : : break;
388 : : }
389 : : default:;
390 : : }
391 : : break;
392 : : }
393 : 0 : case PLUS_EXPR:
394 : 0 : {
395 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
396 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
397 : 0 : switch (TREE_CODE (_q20))
398 : : {
399 : 0 : CASE_CONVERT:
400 : 0 : {
401 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
402 : 0 : switch (TREE_CODE (_q30))
403 : : {
404 : 0 : case LE_EXPR:
405 : 0 : {
406 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
407 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
408 : 0 : switch (TREE_CODE (_q41))
409 : : {
410 : 0 : case INTEGER_CST:
411 : 0 : {
412 : 0 : switch (TREE_CODE (_q21))
413 : : {
414 : 0 : case INTEGER_CST:
415 : 0 : {
416 : 0 : switch (TREE_CODE (_p1))
417 : : {
418 : 0 : CASE_CONVERT:
419 : 0 : {
420 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
421 : 0 : if ((_q80 == _q40 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q40, 0) && types_match (_q80, _q40)))
422 : : {
423 : 0 : {
424 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _q21 };
425 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
426 : : )
427 : : {
428 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0]))
429 : : )
430 : : {
431 : 0 : {
432 : 0 : unsigned itype_precision = TYPE_PRECISION (TREE_TYPE (captures[0]));
433 : 0 : unsigned otype_precision = TYPE_PRECISION (type);
434 : 0 : wide_int trunc_max = wi::mask (otype_precision, false, itype_precision);
435 : 0 : wide_int max = wi::mask (otype_precision, false, otype_precision);
436 : 0 : wide_int int_cst_1 = wi::to_wide (captures[1]);
437 : 0 : wide_int int_cst_2 = wi::to_wide (captures[2]);
438 : 0 : if (wi::eq_p (trunc_max, int_cst_1) && wi::eq_p (max, int_cst_2)
439 : : )
440 : : {
441 : 0 : {
442 : 0 : res_ops[0] = captures[0];
443 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 70, __FILE__, __LINE__, false);
444 : 0 : return true;
445 : : }
446 : : }
447 : 0 : }
448 : : }
449 : : }
450 : : }
451 : : }
452 : : break;
453 : : }
454 : : default:;
455 : : }
456 : : break;
457 : : }
458 : : default:;
459 : : }
460 : : break;
461 : : }
462 : : default:;
463 : : }
464 : : break;
465 : : }
466 : : default:;
467 : : }
468 : : break;
469 : : }
470 : 0 : case INTEGER_CST:
471 : 0 : {
472 : 0 : switch (TREE_CODE (_q21))
473 : : {
474 : 0 : CASE_CONVERT:
475 : 0 : {
476 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
477 : 0 : switch (TREE_CODE (_q40))
478 : : {
479 : 0 : case LE_EXPR:
480 : 0 : {
481 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
482 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
483 : 0 : switch (TREE_CODE (_q51))
484 : : {
485 : 0 : case INTEGER_CST:
486 : 0 : {
487 : 0 : switch (TREE_CODE (_p1))
488 : : {
489 : 0 : CASE_CONVERT:
490 : 0 : {
491 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
492 : 0 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
493 : : {
494 : 0 : {
495 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q51, _q20 };
496 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
497 : : )
498 : : {
499 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0]))
500 : : )
501 : : {
502 : 0 : {
503 : 0 : unsigned itype_precision = TYPE_PRECISION (TREE_TYPE (captures[0]));
504 : 0 : unsigned otype_precision = TYPE_PRECISION (type);
505 : 0 : wide_int trunc_max = wi::mask (otype_precision, false, itype_precision);
506 : 0 : wide_int max = wi::mask (otype_precision, false, otype_precision);
507 : 0 : wide_int int_cst_1 = wi::to_wide (captures[1]);
508 : 0 : wide_int int_cst_2 = wi::to_wide (captures[2]);
509 : 0 : if (wi::eq_p (trunc_max, int_cst_1) && wi::eq_p (max, int_cst_2)
510 : : )
511 : : {
512 : 0 : {
513 : 0 : res_ops[0] = captures[0];
514 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 70, __FILE__, __LINE__, false);
515 : 0 : return true;
516 : : }
517 : : }
518 : 0 : }
519 : : }
520 : : }
521 : : }
522 : : }
523 : : break;
524 : : }
525 : : default:;
526 : : }
527 : : break;
528 : : }
529 : : default:;
530 : : }
531 : : break;
532 : : }
533 : : default:;
534 : : }
535 : : break;
536 : : }
537 : : default:;
538 : : }
539 : : break;
540 : : }
541 : : default:;
542 : : }
543 : : break;
544 : : }
545 : : default:;
546 : : }
547 : : break;
548 : : }
549 : 0 : CASE_CONVERT:
550 : 0 : {
551 : 0 : tree _p0 = TREE_OPERAND (t, 0);
552 : 0 : switch (TREE_CODE (_p0))
553 : : {
554 : 0 : case MIN_EXPR:
555 : 0 : {
556 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
557 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
558 : 0 : switch (TREE_CODE (_q21))
559 : : {
560 : 0 : case INTEGER_CST:
561 : 0 : {
562 : 0 : {
563 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p0, _q21 };
564 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
565 : : )
566 : : {
567 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0])) && single_use (captures[1])
568 : : )
569 : : {
570 : 0 : {
571 : 0 : unsigned itype_precision = TYPE_PRECISION (TREE_TYPE (captures[0]));
572 : 0 : unsigned otype_precision = TYPE_PRECISION (type);
573 : 0 : wide_int trunc_max = wi::mask (otype_precision, false, itype_precision);
574 : 0 : wide_int int_cst = wi::to_wide (captures[2], itype_precision);
575 : 0 : if (otype_precision < itype_precision && wi::eq_p (trunc_max, int_cst)
576 : : )
577 : : {
578 : 0 : {
579 : 0 : res_ops[0] = captures[0];
580 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 71, __FILE__, __LINE__, false);
581 : 0 : return true;
582 : : }
583 : : }
584 : 0 : }
585 : : }
586 : : }
587 : : }
588 : 0 : break;
589 : : }
590 : : default:;
591 : : }
592 : : break;
593 : : }
594 : : default:;
595 : : }
596 : : break;
597 : : }
598 : : default:;
599 : : }
600 : : return false;
601 : : }
602 : :
603 : : tree
604 : 316 : generic_simplify_3 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
605 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
606 : : const enum tree_code ARG_UNUSED (outer_op),
607 : : const enum tree_code ARG_UNUSED (inner_op))
608 : : {
609 : 316 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
610 : 316 : if (real_zerop (captures[2])
611 : 34 : && real_zerop (captures[3])
612 : 350 : && !HONOR_SIGN_DEPENDENT_ROUNDING (type)
613 : : )
614 : : {
615 : 10 : {
616 : 10 : bool inner_plus = ((inner_op == PLUS_EXPR)
617 : 10 : ^ REAL_VALUE_MINUS_ZERO (TREE_REAL_CST (captures[2])));
618 : 10 : bool outer_plus
619 : 10 : = ((outer_op == PLUS_EXPR)
620 : 10 : ^ REAL_VALUE_MINUS_ZERO (TREE_REAL_CST (captures[3])));
621 : 10 : if (outer_plus && !inner_plus
622 : : )
623 : : {
624 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail236;
625 : 2 : {
626 : 2 : tree res_op0;
627 : 2 : res_op0 = captures[1];
628 : 2 : tree res_op1;
629 : 2 : res_op1 = captures[3];
630 : 2 : tree _r;
631 : 2 : _r = fold_build2_loc (loc, outer_op, type, res_op0, res_op1);
632 : 2 : if (TREE_SIDE_EFFECTS (captures[2]))
633 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
634 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 109, __FILE__, __LINE__, true);
635 : 2 : return _r;
636 : : }
637 : 0 : next_after_fail236:;
638 : : }
639 : : else
640 : : {
641 : 8 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail237;
642 : 8 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail237;
643 : 8 : {
644 : 8 : tree _r;
645 : 8 : _r = captures[0];
646 : 8 : if (TREE_SIDE_EFFECTS (captures[3]))
647 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
648 : 8 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 110, __FILE__, __LINE__, true);
649 : 8 : return _r;
650 : : }
651 : : next_after_fail237:;
652 : : }
653 : : }
654 : : }
655 : : return NULL_TREE;
656 : : }
657 : :
658 : : tree
659 : 0 : generic_simplify_8 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
660 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
661 : : const enum tree_code ARG_UNUSED (op))
662 : : {
663 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
664 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail242;
665 : 0 : {
666 : 0 : tree res_op0;
667 : 0 : res_op0 = captures[0];
668 : 0 : tree res_op1;
669 : 0 : res_op1 = captures[1];
670 : 0 : tree _r;
671 : 0 : _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
672 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 115, __FILE__, __LINE__, true);
673 : : return _r;
674 : : }
675 : 0 : next_after_fail242:;
676 : 0 : return NULL_TREE;
677 : : }
678 : :
679 : : tree
680 : 496 : generic_simplify_10 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
681 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
682 : : const enum tree_code ARG_UNUSED (op))
683 : : {
684 : 496 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
685 : 496 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[1]))
686 : 496 : && tree_nop_conversion_p (type, TREE_TYPE (captures[4]))
687 : 992 : && (wi::to_wide (captures[2]) & wi::to_wide (captures[5])) == 0
688 : : )
689 : : {
690 : 101 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail244;
691 : 101 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail244;
692 : 101 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail244;
693 : 101 : {
694 : 101 : tree res_op0;
695 : 101 : {
696 : 101 : tree _o1[1], _r1;
697 : 101 : _o1[0] = captures[0];
698 : 101 : if (TREE_TYPE (_o1[0]) != type)
699 : : {
700 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
701 : : }
702 : : else
703 : : _r1 = _o1[0];
704 : 101 : res_op0 = _r1;
705 : : }
706 : 101 : tree res_op1;
707 : 101 : {
708 : 101 : tree _o1[1], _r1;
709 : 101 : _o1[0] = captures[3];
710 : 101 : if (TREE_TYPE (_o1[0]) != type)
711 : : {
712 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
713 : : }
714 : : else
715 : : _r1 = _o1[0];
716 : 101 : res_op1 = _r1;
717 : : }
718 : 101 : tree _r;
719 : 101 : _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
720 : 101 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 117, __FILE__, __LINE__, true);
721 : 101 : return _r;
722 : : }
723 : : next_after_fail244:;
724 : : }
725 : : return NULL_TREE;
726 : : }
727 : :
728 : : tree
729 : 24 : generic_simplify_15 (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 : : const enum tree_code ARG_UNUSED (cmp),
733 : : const enum tree_code ARG_UNUSED (icmp))
734 : : {
735 : 24 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
736 : 24 : if (invert_tree_comparison (cmp, HONOR_NANS (captures[2])) == icmp
737 : : )
738 : : {
739 : 24 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail249;
740 : 24 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail249;
741 : 24 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail249;
742 : 24 : {
743 : 24 : tree res_op0;
744 : 24 : res_op0 = captures[1];
745 : 24 : tree res_op1;
746 : 24 : res_op1 = captures[4];
747 : 24 : tree res_op2;
748 : 24 : res_op2 = captures[7];
749 : 24 : tree _r;
750 : 24 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
751 : 24 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 122, __FILE__, __LINE__, true);
752 : 24 : return _r;
753 : : }
754 : : next_after_fail249:;
755 : : }
756 : : return NULL_TREE;
757 : : }
758 : :
759 : : tree
760 : 10 : generic_simplify_19 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
761 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
762 : : {
763 : 10 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
764 : 10 : if (!TYPE_SATURATING (type)
765 : : )
766 : : {
767 : 10 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
768 : 20 : && !FIXED_POINT_TYPE_P (type)
769 : : )
770 : : {
771 : 10 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail261;
772 : 10 : {
773 : 10 : tree res_op0;
774 : 10 : res_op0 = captures[2];
775 : 10 : tree res_op1;
776 : 10 : res_op1 = captures[1];
777 : 10 : tree _r;
778 : 10 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
779 : 10 : if (TREE_SIDE_EFFECTS (captures[0]))
780 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
781 : 10 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 134, __FILE__, __LINE__, true);
782 : 10 : return _r;
783 : : }
784 : 0 : next_after_fail261:;
785 : : }
786 : : }
787 : : return NULL_TREE;
788 : : }
789 : :
790 : : tree
791 : 6338474 : generic_simplify_21 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
792 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
793 : : const enum tree_code ARG_UNUSED (op))
794 : : {
795 : 6338474 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
796 : 6338474 : if (!TYPE_SATURATING (type)
797 : : )
798 : : {
799 : 6338474 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
800 : 12265813 : && !FIXED_POINT_TYPE_P (type)
801 : : )
802 : : {
803 : 5927339 : if (INTEGRAL_TYPE_P (type)
804 : 5927047 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
805 : 4734617 : && TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
806 : 4100861 : && types_match (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
807 : 3556638 : && !TYPE_OVERFLOW_TRAPS (type)
808 : 9483977 : && !TYPE_OVERFLOW_SANITIZED (type)
809 : : )
810 : : {
811 : 3556367 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail263;
812 : 3556367 : {
813 : 3556367 : tree res_op0;
814 : 3556367 : {
815 : 3556367 : tree _o1[2], _r1;
816 : 3556367 : _o1[0] = captures[0];
817 : 3556367 : _o1[1] = captures[1];
818 : 3556367 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
819 : 3556367 : if (EXPR_P (_r1))
820 : 3543073 : goto next_after_fail263;
821 : 13294 : res_op0 = _r1;
822 : : }
823 : 13294 : tree _r;
824 : 13294 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
825 : 13294 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 136, __FILE__, __LINE__, true);
826 : 13294 : return _r;
827 : : }
828 : : next_after_fail263:;
829 : : }
830 : : }
831 : : }
832 : : return NULL_TREE;
833 : : }
834 : :
835 : : tree
836 : 123402 : generic_simplify_23 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
837 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
838 : : {
839 : 123402 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
840 : 123402 : if (!TYPE_SATURATING (type)
841 : : )
842 : : {
843 : 123402 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
844 : 246804 : && !FIXED_POINT_TYPE_P (type)
845 : : )
846 : : {
847 : 123402 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
848 : : )
849 : : {
850 : 122577 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail265;
851 : 122577 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail265;
852 : 122577 : {
853 : 122577 : tree res_op0;
854 : 122577 : {
855 : 122577 : tree _o1[1], _r1;
856 : 122577 : _o1[0] = captures[0];
857 : 122577 : if (TREE_TYPE (_o1[0]) != type)
858 : : {
859 : 119826 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
860 : : }
861 : : else
862 : : _r1 = _o1[0];
863 : 122577 : res_op0 = _r1;
864 : : }
865 : 122577 : tree _r;
866 : 122577 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
867 : 122577 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 138, __FILE__, __LINE__, true);
868 : 122577 : return _r;
869 : : }
870 : : next_after_fail265:;
871 : : }
872 : : }
873 : : }
874 : : return NULL_TREE;
875 : : }
876 : :
877 : : tree
878 : 8775 : generic_simplify_25 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
879 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
880 : : const enum tree_code ARG_UNUSED (plusminus))
881 : : {
882 : 8775 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
883 : 8775 : if (!TYPE_SATURATING (type)
884 : 8775 : && (!FLOAT_TYPE_P (type) || flag_associative_math)
885 : : )
886 : : {
887 : 8609 : if (!ALL_FRACT_MODE_P (TYPE_MODE (type))
888 : : )
889 : : {
890 : 4 : if ((!ANY_INTEGRAL_TYPE_P (type)
891 : 8605 : || TYPE_OVERFLOW_WRAPS (type)
892 : 3079 : || (INTEGRAL_TYPE_P (type)
893 : 3079 : && ((tree_expr_nonzero_p (captures[0])
894 : 132 : && expr_not_equal_to (captures[0],
895 : 8741 : wi::minus_one (TYPE_PRECISION (type))))
896 : : || (plusminus == PLUS_EXPR
897 : 2947 : ? expr_not_equal_to (captures[2],
898 : 8627 : wi::max_value (TYPE_PRECISION (type), SIGNED))
899 : 2929 : : (expr_not_equal_to (captures[2],
900 : 11538 : wi::min_value (TYPE_PRECISION (type), SIGNED))
901 : 2875 : && expr_not_equal_to (captures[2],
902 : 5750 : wi::min_value (TYPE_PRECISION (type), SIGNED)
903 : 17234 : + 1))))))
904 : 11556 : && single_use (captures[1])
905 : : )
906 : : {
907 : 8555 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail268;
908 : 8555 : {
909 : 8555 : tree res_op0;
910 : 8555 : {
911 : 8555 : tree _o1[2], _r1;
912 : 8555 : _o1[0] = build_one_cst (type);
913 : 8555 : _o1[1] = captures[2];
914 : 8555 : _r1 = fold_build2_loc (loc, plusminus, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
915 : 8555 : res_op0 = _r1;
916 : : }
917 : 8555 : tree res_op1;
918 : 8555 : res_op1 = captures[0];
919 : 8555 : tree _r;
920 : 8555 : _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
921 : 8555 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 141, __FILE__, __LINE__, true);
922 : 8555 : return _r;
923 : : }
924 : 0 : next_after_fail268:;
925 : : }
926 : : }
927 : : }
928 : : return NULL_TREE;
929 : : }
930 : :
931 : : tree
932 : 2 : generic_simplify_29 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
933 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
934 : : const enum tree_code ARG_UNUSED (div),
935 : : const enum tree_code ARG_UNUSED (mod))
936 : : {
937 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
938 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail272;
939 : 2 : {
940 : 2 : tree _r;
941 : 2 : _r = captures[0];
942 : 2 : if (TREE_SIDE_EFFECTS (captures[1]))
943 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
944 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 145, __FILE__, __LINE__, true);
945 : : return _r;
946 : : }
947 : 0 : next_after_fail272:;
948 : 0 : return NULL_TREE;
949 : : }
950 : :
951 : : tree
952 : 56 : generic_simplify_31 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
953 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
954 : : const enum tree_code ARG_UNUSED (cmp),
955 : : const enum tree_code ARG_UNUSED (icmp),
956 : : const enum tree_code ARG_UNUSED (ncmp))
957 : : {
958 : 56 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
959 : 56 : if (TYPE_PRECISION (type) > 1
960 : 56 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[0])) && TYPE_PRECISION (TREE_TYPE (captures[0])) == 1
961 : : )
962 : : {
963 : 0 : {
964 : 0 : enum tree_code ic = invert_tree_comparison
965 : 0 : (cmp, HONOR_NANS (captures[1]));
966 : 0 : tree cmptype = TREE_TYPE (captures[0]);
967 : 0 : if (ic == icmp
968 : : )
969 : : {
970 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail274;
971 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail274;
972 : 0 : {
973 : 0 : tree res_op0;
974 : 0 : {
975 : 0 : tree _o1[1], _r1;
976 : 0 : {
977 : 0 : tree _o2[2], _r2;
978 : 0 : _o2[0] = captures[1];
979 : 0 : _o2[1] = captures[2];
980 : 0 : _r2 = fold_build2_loc (loc, icmp, cmptype, _o2[0], _o2[1]);
981 : 0 : _o1[0] = _r2;
982 : : }
983 : 0 : if (TREE_TYPE (_o1[0]) != type)
984 : : {
985 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
986 : : }
987 : : else
988 : : _r1 = _o1[0];
989 : 0 : res_op0 = _r1;
990 : : }
991 : 0 : tree _r;
992 : 0 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
993 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 147, __FILE__, __LINE__, true);
994 : 0 : return _r;
995 : : }
996 : : next_after_fail274:;
997 : : }
998 : : else
999 : : {
1000 : 0 : if (ic == ncmp
1001 : : )
1002 : : {
1003 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail275;
1004 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail275;
1005 : 0 : {
1006 : 0 : tree res_op0;
1007 : 0 : {
1008 : 0 : tree _o1[1], _r1;
1009 : 0 : {
1010 : 0 : tree _o2[2], _r2;
1011 : 0 : _o2[0] = captures[1];
1012 : 0 : _o2[1] = captures[2];
1013 : 0 : _r2 = fold_build2_loc (loc, ncmp, cmptype, _o2[0], _o2[1]);
1014 : 0 : _o1[0] = _r2;
1015 : : }
1016 : 0 : if (TREE_TYPE (_o1[0]) != type)
1017 : : {
1018 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1019 : : }
1020 : : else
1021 : : _r1 = _o1[0];
1022 : 0 : res_op0 = _r1;
1023 : : }
1024 : 0 : tree _r;
1025 : 0 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
1026 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 148, __FILE__, __LINE__, true);
1027 : 0 : return _r;
1028 : : }
1029 : : next_after_fail275:;
1030 : : }
1031 : : }
1032 : : }
1033 : : }
1034 : : return NULL_TREE;
1035 : : }
1036 : :
1037 : : tree
1038 : 78 : generic_simplify_39 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1039 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1040 : : {
1041 : 78 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1042 : 78 : if (INTEGRAL_TYPE_P (type)
1043 : 78 : || (VECTOR_INTEGER_TYPE_P (type)
1044 : : && ((optimize_vectors_before_lowering_p ()
1045 : 1 : && TREE_CODE (TYPE_SIZE (type)) == INTEGER_CST)
1046 : 0 : || target_supports_op_p (type, TRUNC_MOD_EXPR,
1047 : : optab_vector)))
1048 : : )
1049 : : {
1050 : 78 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail283;
1051 : 78 : {
1052 : 78 : tree res_op0;
1053 : 78 : {
1054 : 78 : tree _o1[2], _r1;
1055 : 78 : _o1[0] = captures[0];
1056 : 78 : _o1[1] = captures[1];
1057 : 78 : _r1 = fold_build2_loc (loc, TRUNC_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1058 : 78 : res_op0 = _r1;
1059 : : }
1060 : 78 : tree _r;
1061 : 78 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1062 : 78 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 156, __FILE__, __LINE__, true);
1063 : 78 : return _r;
1064 : : }
1065 : 0 : next_after_fail283:;
1066 : : }
1067 : : return NULL_TREE;
1068 : : }
1069 : :
1070 : : tree
1071 : 2 : generic_simplify_43 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1072 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1073 : : {
1074 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1075 : 2 : if (!TYPE_OVERFLOW_SANITIZED (type) && !TYPE_OVERFLOW_TRAPS (type)
1076 : 2 : && !TYPE_SATURATING (type) && !TYPE_OVERFLOW_SANITIZED (TREE_TYPE (captures[2]))
1077 : 2 : && !TYPE_OVERFLOW_TRAPS (TREE_TYPE (captures[2]))
1078 : 4 : && !TYPE_SATURATING (TREE_TYPE (captures[2]))
1079 : : )
1080 : : {
1081 : 2 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail287;
1082 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail287;
1083 : 2 : {
1084 : 2 : tree res_op0;
1085 : 2 : {
1086 : 2 : tree _o1[1], _r1;
1087 : 2 : {
1088 : 2 : tree _o2[2], _r2;
1089 : 2 : _o2[0] = captures[0];
1090 : 2 : _o2[1] = captures[1];
1091 : 2 : _r2 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
1092 : 2 : _o1[0] = _r2;
1093 : : }
1094 : 2 : if (TREE_TYPE (_o1[0]) != type)
1095 : : {
1096 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1097 : : }
1098 : : else
1099 : : _r1 = _o1[0];
1100 : 2 : res_op0 = _r1;
1101 : : }
1102 : 2 : tree _r;
1103 : 2 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
1104 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 160, __FILE__, __LINE__, true);
1105 : 2 : return _r;
1106 : : }
1107 : : next_after_fail287:;
1108 : : }
1109 : : return NULL_TREE;
1110 : : }
1111 : :
1112 : : tree
1113 : 136 : generic_simplify_52 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1114 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1115 : : {
1116 : 136 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1117 : 136 : if (!TYPE_SATURATING (type)
1118 : : )
1119 : : {
1120 : 136 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
1121 : 272 : && !FIXED_POINT_TYPE_P (type)
1122 : : )
1123 : : {
1124 : 136 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail298;
1125 : 136 : {
1126 : 136 : tree res_op0;
1127 : 136 : res_op0 = captures[1];
1128 : 136 : tree _r;
1129 : 136 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
1130 : 136 : if (TREE_SIDE_EFFECTS (captures[0]))
1131 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1132 : 136 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 170, __FILE__, __LINE__, true);
1133 : 136 : return _r;
1134 : : }
1135 : 0 : next_after_fail298:;
1136 : : }
1137 : : }
1138 : : return NULL_TREE;
1139 : : }
1140 : :
1141 : : tree
1142 : 9887 : generic_simplify_57 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1143 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1144 : : {
1145 : 9887 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1146 : 9887 : if (!TYPE_SATURATING (type)
1147 : : )
1148 : : {
1149 : 9887 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
1150 : 19774 : && !FIXED_POINT_TYPE_P (type)
1151 : : )
1152 : : {
1153 : 9887 : if (INTEGRAL_TYPE_P (type)
1154 : 9887 : && TYPE_OVERFLOW_UNDEFINED (type)
1155 : 2905 : && TREE_CODE (captures[1]) != INTEGER_CST
1156 : 10916 : && element_precision (type) <= element_precision (TREE_TYPE (captures[1]))
1157 : : )
1158 : : {
1159 : 1029 : {
1160 : 1029 : tree utype = unsigned_type_for (type);
1161 : 1029 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail305;
1162 : 1029 : {
1163 : 1029 : tree res_op0;
1164 : 1029 : {
1165 : 1029 : tree _o1[1], _r1;
1166 : 1029 : {
1167 : 1029 : tree _o2[1], _r2;
1168 : 1029 : _o2[0] = captures[1];
1169 : 1029 : if (TREE_TYPE (_o2[0]) != utype)
1170 : : {
1171 : 1029 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
1172 : : }
1173 : : else
1174 : : _r2 = _o2[0];
1175 : 1029 : _o1[0] = _r2;
1176 : : }
1177 : 1029 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
1178 : 1029 : res_op0 = _r1;
1179 : : }
1180 : 1029 : tree _r;
1181 : 1029 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1182 : 1029 : if (TREE_SIDE_EFFECTS (captures[2]))
1183 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1184 : 1029 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 177, __FILE__, __LINE__, true);
1185 : 1029 : return _r;
1186 : : }
1187 : 0 : next_after_fail305:;
1188 : : }
1189 : : }
1190 : : else
1191 : : {
1192 : 8858 : if (element_precision (type) <= element_precision (TREE_TYPE (captures[1]))
1193 : 8858 : || (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
1194 : 2119 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[1])))
1195 : : )
1196 : : {
1197 : 8615 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail306;
1198 : 8615 : {
1199 : 8615 : tree res_op0;
1200 : 8615 : {
1201 : 8615 : tree _o1[1], _r1;
1202 : 8615 : _o1[0] = captures[1];
1203 : 8615 : if (TREE_TYPE (_o1[0]) != type)
1204 : : {
1205 : 8615 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1206 : : }
1207 : : else
1208 : : _r1 = _o1[0];
1209 : 8615 : res_op0 = _r1;
1210 : : }
1211 : 8615 : tree _r;
1212 : 8615 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
1213 : 8615 : if (TREE_SIDE_EFFECTS (captures[2]))
1214 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1215 : 8615 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 178, __FILE__, __LINE__, true);
1216 : 8615 : return _r;
1217 : : }
1218 : 0 : next_after_fail306:;
1219 : : }
1220 : : }
1221 : : }
1222 : : }
1223 : : return NULL_TREE;
1224 : : }
1225 : :
1226 : : tree
1227 : 0 : generic_simplify_71 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1228 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1229 : : {
1230 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1231 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail321;
1232 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail321;
1233 : 0 : {
1234 : 0 : tree _r;
1235 : 0 : _r = captures[2];
1236 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 191, __FILE__, __LINE__, true);
1237 : : return _r;
1238 : : }
1239 : : next_after_fail321:;
1240 : : return NULL_TREE;
1241 : : }
1242 : :
1243 : : tree
1244 : 0 : generic_simplify_76 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1245 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1246 : : const enum tree_code ARG_UNUSED (bit_op))
1247 : : {
1248 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1249 : 0 : if (bit_op == BIT_AND_EXPR
1250 : : )
1251 : : {
1252 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail328;
1253 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail328;
1254 : 0 : {
1255 : 0 : tree _r;
1256 : 0 : _r = build_zero_cst (type);
1257 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 197, __FILE__, __LINE__, true);
1258 : 0 : return _r;
1259 : : }
1260 : : next_after_fail328:;
1261 : : }
1262 : : else
1263 : : {
1264 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail329;
1265 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail329;
1266 : 0 : {
1267 : 0 : tree _r;
1268 : 0 : _r = build_minus_one_cst (type);
1269 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 198, __FILE__, __LINE__, true);
1270 : 0 : return _r;
1271 : : }
1272 : : next_after_fail329:;
1273 : : }
1274 : : return NULL_TREE;
1275 : : }
1276 : :
1277 : : tree
1278 : 211389 : generic_simplify_87 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1279 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1280 : : const enum tree_code ARG_UNUSED (op))
1281 : : {
1282 : 211389 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1283 : 211389 : {
1284 : 211389 : bool wascmp;
1285 : 211389 : if (types_match (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
1286 : 211389 : && bitwise_inverted_equal_p (captures[0], captures[1], wascmp)
1287 : : )
1288 : : {
1289 : 47 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail341;
1290 : 47 : {
1291 : 47 : tree res_op0;
1292 : 47 : res_op0 = wascmp
1293 : 47 : ? constant_boolean_node (true, type)
1294 : 40 : : build_all_ones_cst (TREE_TYPE (captures[0]));
1295 : 47 : tree _r;
1296 : 47 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1297 : 47 : if (TREE_SIDE_EFFECTS (captures[0]))
1298 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1299 : 47 : if (TREE_SIDE_EFFECTS (captures[1]))
1300 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1301 : 47 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 204, __FILE__, __LINE__, true);
1302 : 47 : return _r;
1303 : : }
1304 : 0 : next_after_fail341:;
1305 : : }
1306 : : }
1307 : 211342 : return NULL_TREE;
1308 : : }
1309 : :
1310 : : tree
1311 : 0 : generic_simplify_99 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1312 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1313 : : const enum tree_code ARG_UNUSED (op))
1314 : : {
1315 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1316 : 0 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[3]))
1317 : 0 : && tree_nop_conversion_p (type, TREE_TYPE (captures[6]))
1318 : : )
1319 : : {
1320 : 0 : if (single_use (captures[4]) && single_use (captures[5])
1321 : : )
1322 : : {
1323 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail354;
1324 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail354;
1325 : 0 : {
1326 : 0 : tree res_op0;
1327 : 0 : res_op0 = captures[0];
1328 : 0 : tree res_op1;
1329 : 0 : {
1330 : 0 : tree _o1[1], _r1;
1331 : 0 : _o1[0] = captures[6];
1332 : 0 : if (TREE_TYPE (_o1[0]) != type)
1333 : : {
1334 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1335 : : }
1336 : : else
1337 : : _r1 = _o1[0];
1338 : 0 : res_op1 = _r1;
1339 : : }
1340 : 0 : tree _r;
1341 : 0 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
1342 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 213, __FILE__, __LINE__, true);
1343 : 0 : return _r;
1344 : : }
1345 : : next_after_fail354:;
1346 : : }
1347 : : else
1348 : : {
1349 : : if (single_use (captures[0]) && single_use (captures[1])
1350 : : )
1351 : : {
1352 : : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail355;
1353 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail355;
1354 : : {
1355 : : tree res_op0;
1356 : : {
1357 : : tree _o1[1], _r1;
1358 : : _o1[0] = captures[3];
1359 : : if (TREE_TYPE (_o1[0]) != type)
1360 : : {
1361 : : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1362 : : }
1363 : : else
1364 : : _r1 = _o1[0];
1365 : : res_op0 = _r1;
1366 : : }
1367 : : tree res_op1;
1368 : : res_op1 = captures[4];
1369 : : tree _r;
1370 : : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
1371 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 214, __FILE__, __LINE__, true);
1372 : : return _r;
1373 : : }
1374 : : next_after_fail355:;
1375 : : }
1376 : : }
1377 : : }
1378 : : return NULL_TREE;
1379 : : }
1380 : :
1381 : : tree
1382 : 0 : generic_simplify_111 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1383 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1384 : : const enum tree_code ARG_UNUSED (bitop),
1385 : : const enum tree_code ARG_UNUSED (rbitop))
1386 : : {
1387 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1388 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail369;
1389 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail369;
1390 : 0 : {
1391 : 0 : tree res_op0;
1392 : 0 : res_op0 = captures[0];
1393 : 0 : tree res_op1;
1394 : 0 : res_op1 = captures[2];
1395 : 0 : tree _r;
1396 : 0 : _r = fold_build2_loc (loc, bitop, type, res_op0, res_op1);
1397 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 219, __FILE__, __LINE__, true);
1398 : : return _r;
1399 : : }
1400 : : next_after_fail369:;
1401 : : return NULL_TREE;
1402 : : }
1403 : :
1404 : : tree
1405 : 659 : generic_simplify_118 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1406 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1407 : : const enum tree_code ARG_UNUSED (bitop))
1408 : : {
1409 : 659 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1410 : 659 : if (!CONSTANT_CLASS_P (captures[0])
1411 : : )
1412 : : {
1413 : 659 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail377;
1414 : 659 : {
1415 : 659 : tree res_op0;
1416 : 659 : res_op0 = captures[0];
1417 : 659 : tree res_op1;
1418 : 659 : {
1419 : 659 : tree _o1[2], _r1;
1420 : 659 : _o1[0] = captures[1];
1421 : 659 : _o1[1] = captures[2];
1422 : 659 : _r1 = fold_build2_loc (loc, bitop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1423 : 659 : if (EXPR_P (_r1))
1424 : 0 : goto next_after_fail377;
1425 : 659 : res_op1 = _r1;
1426 : : }
1427 : 659 : tree _r;
1428 : 659 : _r = fold_build2_loc (loc, bitop, type, res_op0, res_op1);
1429 : 659 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 226, __FILE__, __LINE__, true);
1430 : 659 : return _r;
1431 : : }
1432 : : next_after_fail377:;
1433 : : }
1434 : : else
1435 : : {
1436 : 0 : {
1437 : 0 : tree cst1 = const_binop (bitop, type, captures[0], captures[2]);
1438 : 0 : if (cst1
1439 : : )
1440 : : {
1441 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail378;
1442 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail378;
1443 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail378;
1444 : 0 : {
1445 : 0 : tree res_op0;
1446 : 0 : res_op0 = captures[1];
1447 : 0 : tree res_op1;
1448 : 0 : res_op1 = cst1;
1449 : 0 : tree _r;
1450 : 0 : _r = fold_build2_loc (loc, bitop, type, res_op0, res_op1);
1451 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 227, __FILE__, __LINE__, true);
1452 : 0 : return _r;
1453 : : }
1454 : : next_after_fail378:;
1455 : : }
1456 : : else
1457 : : {
1458 : 0 : {
1459 : 0 : tree cst2 = const_binop (bitop, type, captures[1], captures[2]);
1460 : 0 : if (cst2
1461 : : )
1462 : : {
1463 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail379;
1464 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail379;
1465 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail379;
1466 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail379;
1467 : 0 : {
1468 : 0 : tree res_op0;
1469 : 0 : res_op0 = captures[0];
1470 : 0 : tree res_op1;
1471 : 0 : res_op1 = cst2;
1472 : 0 : tree _r;
1473 : 0 : _r = fold_build2_loc (loc, bitop, type, res_op0, res_op1);
1474 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 228, __FILE__, __LINE__, true);
1475 : 0 : return _r;
1476 : : }
1477 : : next_after_fail379:;
1478 : : }
1479 : : }
1480 : : }
1481 : : }
1482 : : }
1483 : : return NULL_TREE;
1484 : : }
1485 : :
1486 : : tree
1487 : 0 : generic_simplify_133 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1488 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1489 : : {
1490 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1491 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail416;
1492 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail416;
1493 : 0 : {
1494 : 0 : tree _r;
1495 : 0 : _r = constant_boolean_node (true, type);
1496 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
1497 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1498 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 257, __FILE__, __LINE__, true);
1499 : : return _r;
1500 : : }
1501 : : next_after_fail416:;
1502 : : return NULL_TREE;
1503 : : }
1504 : :
1505 : : tree
1506 : 148 : generic_simplify_137 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1507 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1508 : : const enum tree_code ARG_UNUSED (code2),
1509 : : const enum tree_code ARG_UNUSED (code1))
1510 : : {
1511 : 148 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1512 : 148 : if ((TREE_CODE (captures[2]) == INTEGER_CST
1513 : 124 : && TREE_CODE (captures[5]) == INTEGER_CST)
1514 : 148 : || ((INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
1515 : 1 : || (VECTOR_TYPE_P (TREE_TYPE (captures[2])))
1516 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[2])))
1517 : 24 : && bitwise_equal_p (captures[2], captures[5]))
1518 : : )
1519 : : {
1520 : 124 : {
1521 : 124 : bool one_before = false;
1522 : 124 : bool one_after = false;
1523 : 124 : int cmp = 0;
1524 : 124 : bool allbits = true;
1525 : 124 : if (TREE_CODE (captures[2]) == INTEGER_CST
1526 : 124 : && TREE_CODE (captures[5]) == INTEGER_CST)
1527 : : {
1528 : 124 : allbits = TYPE_PRECISION (TREE_TYPE (captures[2])) <= TYPE_PRECISION (TREE_TYPE (captures[5]));
1529 : 124 : auto t1 = wi::to_wide (fold_convert (TREE_TYPE (captures[5]), captures[2]));
1530 : 124 : auto t2 = wi::to_wide (captures[5]);
1531 : 124 : cmp = wi::cmp (t1, t2, TYPE_SIGN (TREE_TYPE (captures[5])));
1532 : 124 : if (cmp < 0
1533 : 124 : && t1 == t2 - 1)
1534 : : one_before = true;
1535 : 124 : if (cmp > 0
1536 : 124 : && t1 == t2 + 1)
1537 : : one_after = true;
1538 : : }
1539 : 124 : bool val;
1540 : 124 : switch (code2)
1541 : : {
1542 : 115 : case EQ_EXPR: val = (cmp == 0); break;
1543 : 0 : case NE_EXPR: val = (cmp != 0); break;
1544 : 0 : case LT_EXPR: val = (cmp < 0); break;
1545 : 9 : case GT_EXPR: val = (cmp > 0); break;
1546 : 0 : case LE_EXPR: val = (cmp <= 0); break;
1547 : 0 : case GE_EXPR: val = (cmp >= 0); break;
1548 : 0 : default: gcc_unreachable ();
1549 : : }
1550 : 124 : if (code1 == EQ_EXPR && val
1551 : : )
1552 : : {
1553 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail427;
1554 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail427;
1555 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail427;
1556 : 0 : {
1557 : 0 : tree _r;
1558 : 0 : _r = captures[3];
1559 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 241, __FILE__, __LINE__, true);
1560 : 0 : return _r;
1561 : : }
1562 : : next_after_fail427:;
1563 : : }
1564 : : else
1565 : : {
1566 : 124 : if (code1 == NE_EXPR && val && allbits
1567 : : )
1568 : : {
1569 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail428;
1570 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail428;
1571 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail428;
1572 : 0 : {
1573 : 0 : tree _r;
1574 : 0 : _r = constant_boolean_node (true, type);
1575 : 0 : if (TREE_SIDE_EFFECTS (captures[4]))
1576 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[4]), _r);
1577 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 242, __FILE__, __LINE__, true);
1578 : 0 : return _r;
1579 : : }
1580 : : next_after_fail428:;
1581 : : }
1582 : : else
1583 : : {
1584 : 124 : if (code1 == NE_EXPR && !val && allbits
1585 : : )
1586 : : {
1587 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail429;
1588 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail429;
1589 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail429;
1590 : 0 : {
1591 : 0 : tree _r;
1592 : 0 : _r = captures[0];
1593 : 0 : if (TREE_SIDE_EFFECTS (captures[4]))
1594 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[4]), _r);
1595 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 243, __FILE__, __LINE__, true);
1596 : 0 : return _r;
1597 : : }
1598 : : next_after_fail429:;
1599 : : }
1600 : : else
1601 : : {
1602 : 124 : if (code1 == EQ_EXPR
1603 : 124 : && code2 == GT_EXPR
1604 : 9 : && cmp == 0
1605 : 9 : && allbits
1606 : 124 : && ((VECTOR_BOOLEAN_TYPE_P (type)
1607 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, GE_EXPR))
1608 : 0 : || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
1609 : : )
1610 : : {
1611 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail430;
1612 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail430;
1613 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail430;
1614 : 0 : {
1615 : 0 : tree res_op0;
1616 : 0 : res_op0 = captures[4];
1617 : 0 : tree res_op1;
1618 : 0 : res_op1 = captures[5];
1619 : 0 : tree _r;
1620 : 0 : _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
1621 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 244, __FILE__, __LINE__, true);
1622 : 0 : return _r;
1623 : : }
1624 : : next_after_fail430:;
1625 : : }
1626 : : else
1627 : : {
1628 : 124 : if (code1 == EQ_EXPR
1629 : 124 : && code2 == LT_EXPR
1630 : 0 : && cmp == 0
1631 : 0 : && allbits
1632 : 124 : && ((VECTOR_BOOLEAN_TYPE_P (type)
1633 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, LE_EXPR))
1634 : 0 : || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
1635 : : )
1636 : : {
1637 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail431;
1638 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail431;
1639 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail431;
1640 : 0 : {
1641 : 0 : tree res_op0;
1642 : 0 : res_op0 = captures[4];
1643 : 0 : tree res_op1;
1644 : 0 : res_op1 = captures[5];
1645 : 0 : tree _r;
1646 : 0 : _r = fold_build2_loc (loc, LE_EXPR, type, res_op0, res_op1);
1647 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 245, __FILE__, __LINE__, true);
1648 : 0 : return _r;
1649 : : }
1650 : : next_after_fail431:;
1651 : : }
1652 : : else
1653 : : {
1654 : 124 : if (code1 == EQ_EXPR
1655 : 124 : && code2 == GE_EXPR
1656 : : && one_before
1657 : 0 : && allbits
1658 : 124 : && ((VECTOR_BOOLEAN_TYPE_P (type)
1659 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, GE_EXPR))
1660 : 0 : || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
1661 : : )
1662 : : {
1663 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail432;
1664 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail432;
1665 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail432;
1666 : 0 : {
1667 : 0 : tree res_op0;
1668 : 0 : res_op0 = captures[4];
1669 : 0 : tree res_op1;
1670 : 0 : {
1671 : 0 : tree _o1[1], _r1;
1672 : 0 : _o1[0] = captures[2];
1673 : 0 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
1674 : : {
1675 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
1676 : : }
1677 : : else
1678 : : _r1 = _o1[0];
1679 : 0 : res_op1 = _r1;
1680 : : }
1681 : 0 : tree _r;
1682 : 0 : _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
1683 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 246, __FILE__, __LINE__, true);
1684 : 0 : return _r;
1685 : : }
1686 : : next_after_fail432:;
1687 : : }
1688 : : else
1689 : : {
1690 : 124 : if (code1 == EQ_EXPR
1691 : 124 : && code2 == LE_EXPR
1692 : : && one_after
1693 : 0 : && allbits
1694 : 124 : && ((VECTOR_BOOLEAN_TYPE_P (type)
1695 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, LE_EXPR))
1696 : 0 : || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
1697 : : )
1698 : : {
1699 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail433;
1700 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail433;
1701 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail433;
1702 : 0 : {
1703 : 0 : tree res_op0;
1704 : 0 : res_op0 = captures[4];
1705 : 0 : tree res_op1;
1706 : 0 : {
1707 : 0 : tree _o1[1], _r1;
1708 : 0 : _o1[0] = captures[2];
1709 : 0 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
1710 : : {
1711 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
1712 : : }
1713 : : else
1714 : : _r1 = _o1[0];
1715 : 0 : res_op1 = _r1;
1716 : : }
1717 : 0 : tree _r;
1718 : 0 : _r = fold_build2_loc (loc, LE_EXPR, type, res_op0, res_op1);
1719 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 247, __FILE__, __LINE__, true);
1720 : 0 : return _r;
1721 : : }
1722 : : next_after_fail433:;
1723 : : }
1724 : : }
1725 : : }
1726 : : }
1727 : : }
1728 : : }
1729 : : }
1730 : : }
1731 : : }
1732 : : return NULL_TREE;
1733 : : }
1734 : :
1735 : : tree
1736 : 4 : generic_simplify_174 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1737 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1738 : : const combined_fn ARG_UNUSED (COPYSIGN_ALL))
1739 : : {
1740 : 4 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1741 : 4 : if (!tree_expr_maybe_nan_p (captures[0]) && !HONOR_SIGNED_ZEROS (type)
1742 : : )
1743 : : {
1744 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail473;
1745 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail473;
1746 : 0 : {
1747 : 0 : tree res_op0;
1748 : 0 : res_op0 = captures[0];
1749 : 0 : tree _r;
1750 : 0 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
1751 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 289, __FILE__, __LINE__, true);
1752 : 0 : return _r;
1753 : : }
1754 : : next_after_fail473:;
1755 : : }
1756 : : return NULL_TREE;
1757 : : }
1758 : :
1759 : : tree
1760 : 0 : generic_simplify_181 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1761 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1762 : : {
1763 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1764 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail480;
1765 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail480;
1766 : 0 : {
1767 : 0 : tree _r;
1768 : 0 : _r = build_zero_cst (type);
1769 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 294, __FILE__, __LINE__, true);
1770 : : return _r;
1771 : : }
1772 : : next_after_fail480:;
1773 : : return NULL_TREE;
1774 : : }
1775 : :
1776 : : tree
1777 : 11 : generic_simplify_187 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1778 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1779 : : {
1780 : 11 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1781 : 11 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
1782 : 11 : && wi::ltu_p (wi::to_widest (captures[1]), TYPE_PRECISION (type))
1783 : : )
1784 : : {
1785 : 11 : {
1786 : 11 : unsigned int shift = tree_to_uhwi (captures[1]);
1787 : 11 : unsigned int prec = TYPE_PRECISION (type);
1788 : 11 : if ((prec <= TYPE_PRECISION (TREE_TYPE (captures[2])) + shift
1789 : 0 : || tree_int_cst_sgn (captures[2]) >= 0)
1790 : 22 : && wi::to_wide (captures[3]) == wi::set_bit_in_zero (shift, prec)
1791 : : )
1792 : : {
1793 : 3 : {
1794 : 3 : auto mask = wide_int::from (wi::to_wide (captures[2]), prec, UNSIGNED);
1795 : 3 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail488;
1796 : 3 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail488;
1797 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail488;
1798 : 3 : {
1799 : 3 : tree res_op0;
1800 : 3 : {
1801 : 3 : tree _o1[1], _r1;
1802 : 3 : _o1[0] = captures[0];
1803 : 3 : if (TREE_TYPE (_o1[0]) != type)
1804 : : {
1805 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1806 : : }
1807 : : else
1808 : : _r1 = _o1[0];
1809 : 3 : res_op0 = _r1;
1810 : : }
1811 : 3 : tree res_op1;
1812 : 3 : res_op1 = wide_int_to_tree (type, mask << shift);
1813 : 3 : tree _r;
1814 : 3 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
1815 : 3 : if (TREE_SIDE_EFFECTS (captures[3]))
1816 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
1817 : 3 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 299, __FILE__, __LINE__, true);
1818 : 3 : return _r;
1819 : : }
1820 : 0 : next_after_fail488:;
1821 : 3 : }
1822 : : }
1823 : : }
1824 : : }
1825 : : return NULL_TREE;
1826 : : }
1827 : :
1828 : : tree
1829 : 0 : generic_simplify_201 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1830 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1831 : : const enum tree_code ARG_UNUSED (op))
1832 : : {
1833 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1834 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail503;
1835 : 0 : {
1836 : 0 : tree _r;
1837 : 0 : _r = constant_boolean_node (op == NE_EXPR ? true : false, type);
1838 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
1839 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1840 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 314, __FILE__, __LINE__, true);
1841 : : return _r;
1842 : : }
1843 : 0 : next_after_fail503:;
1844 : 0 : return NULL_TREE;
1845 : : }
1846 : :
1847 : : tree
1848 : 1708208 : generic_simplify_208 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1849 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1850 : : const enum tree_code ARG_UNUSED (cmp))
1851 : : {
1852 : 1708208 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1853 : 3416416 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
1854 : 1708208 : && integer_nonzerop (captures[2])
1855 : 1706426 : && !TREE_OVERFLOW (captures[2])
1856 : 3414634 : && !TREE_OVERFLOW (captures[3])
1857 : : )
1858 : : {
1859 : 1706426 : {
1860 : 1706426 : tree lo, hi; bool neg_overflow;
1861 : 1706426 : enum tree_code code = fold_div_compare (cmp, captures[2], captures[3], &lo, &hi,
1862 : : &neg_overflow);
1863 : 1706426 : if (code == LT_EXPR || code == GE_EXPR
1864 : : )
1865 : : {
1866 : 41242 : if (TREE_OVERFLOW (lo)
1867 : : )
1868 : : {
1869 : 7519 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail513;
1870 : 7519 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail513;
1871 : 7519 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail513;
1872 : 7519 : {
1873 : 7519 : tree _r;
1874 : 7519 : _r = build_int_cst (type, (code == LT_EXPR) ^ neg_overflow);
1875 : 7519 : if (TREE_SIDE_EFFECTS (captures[1]))
1876 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1877 : 7519 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 323, __FILE__, __LINE__, true);
1878 : 1706424 : return _r;
1879 : : }
1880 : 2 : next_after_fail513:;
1881 : : }
1882 : : else
1883 : : {
1884 : 33723 : if (code == LT_EXPR
1885 : : )
1886 : : {
1887 : 722 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail514;
1888 : 722 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail514;
1889 : 722 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail514;
1890 : 722 : {
1891 : 722 : tree res_op0;
1892 : 722 : res_op0 = captures[1];
1893 : 722 : tree res_op1;
1894 : 722 : res_op1 = lo;
1895 : 722 : tree _r;
1896 : 722 : _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
1897 : 722 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 324, __FILE__, __LINE__, true);
1898 : 722 : return _r;
1899 : : }
1900 : 2 : next_after_fail514:;
1901 : : }
1902 : : else
1903 : : {
1904 : 33001 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail515;
1905 : 33001 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail515;
1906 : 33001 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail515;
1907 : 33001 : {
1908 : 33001 : tree res_op0;
1909 : 33001 : res_op0 = captures[1];
1910 : 33001 : tree res_op1;
1911 : 33001 : res_op1 = lo;
1912 : 33001 : tree _r;
1913 : 33001 : _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
1914 : 33001 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 325, __FILE__, __LINE__, true);
1915 : 33001 : return _r;
1916 : : }
1917 : 2 : next_after_fail515:;
1918 : : }
1919 : : }
1920 : : }
1921 : : else
1922 : : {
1923 : 1665184 : if (code == LE_EXPR || code == GT_EXPR
1924 : : )
1925 : : {
1926 : 1662109 : if (TREE_OVERFLOW (hi)
1927 : : )
1928 : : {
1929 : 526006 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail516;
1930 : 526006 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail516;
1931 : 526006 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail516;
1932 : 526006 : {
1933 : 526006 : tree _r;
1934 : 526006 : _r = build_int_cst (type, (code == LE_EXPR) ^ neg_overflow);
1935 : 526006 : if (TREE_SIDE_EFFECTS (captures[1]))
1936 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1937 : 526006 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 326, __FILE__, __LINE__, true);
1938 : 526006 : return _r;
1939 : : }
1940 : 2 : next_after_fail516:;
1941 : : }
1942 : : else
1943 : : {
1944 : 1136103 : if (code == LE_EXPR
1945 : : )
1946 : : {
1947 : 695 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail517;
1948 : 695 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail517;
1949 : 695 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail517;
1950 : 695 : {
1951 : 695 : tree res_op0;
1952 : 695 : res_op0 = captures[1];
1953 : 695 : tree res_op1;
1954 : 695 : res_op1 = hi;
1955 : 695 : tree _r;
1956 : 695 : _r = fold_build2_loc (loc, LE_EXPR, type, res_op0, res_op1);
1957 : 695 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 327, __FILE__, __LINE__, true);
1958 : 695 : return _r;
1959 : : }
1960 : 2 : next_after_fail517:;
1961 : : }
1962 : : else
1963 : : {
1964 : 1135408 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail518;
1965 : 1135408 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail518;
1966 : 1135408 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail518;
1967 : 1135408 : {
1968 : 1135408 : tree res_op0;
1969 : 1135408 : res_op0 = captures[1];
1970 : 1135408 : tree res_op1;
1971 : 1135408 : res_op1 = hi;
1972 : 1135408 : tree _r;
1973 : 1135408 : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
1974 : 1135408 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 328, __FILE__, __LINE__, true);
1975 : 1135408 : return _r;
1976 : : }
1977 : 2 : next_after_fail518:;
1978 : : }
1979 : : }
1980 : : }
1981 : : else
1982 : : {
1983 : 3075 : if (!lo && !hi
1984 : : )
1985 : : {
1986 : 40 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail519;
1987 : 40 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail519;
1988 : 40 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail519;
1989 : 40 : {
1990 : 40 : tree _r;
1991 : 40 : _r = build_int_cst (type, code == NE_EXPR);
1992 : 40 : if (TREE_SIDE_EFFECTS (captures[1]))
1993 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1994 : 40 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 329, __FILE__, __LINE__, true);
1995 : 40 : return _r;
1996 : : }
1997 : 2 : next_after_fail519:;
1998 : : }
1999 : : else
2000 : : {
2001 : 3035 : if (code == EQ_EXPR && !hi
2002 : : )
2003 : : {
2004 : 12 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail520;
2005 : 12 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail520;
2006 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail520;
2007 : 12 : {
2008 : 12 : tree res_op0;
2009 : 12 : res_op0 = captures[1];
2010 : 12 : tree res_op1;
2011 : 12 : res_op1 = lo;
2012 : 12 : tree _r;
2013 : 12 : _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
2014 : 12 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 330, __FILE__, __LINE__, true);
2015 : 12 : return _r;
2016 : : }
2017 : 2 : next_after_fail520:;
2018 : : }
2019 : : else
2020 : : {
2021 : 920 : if (code == EQ_EXPR && !lo
2022 : : )
2023 : : {
2024 : 11 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail521;
2025 : 11 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail521;
2026 : 11 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail521;
2027 : 11 : {
2028 : 11 : tree res_op0;
2029 : 11 : res_op0 = captures[1];
2030 : 11 : tree res_op1;
2031 : 11 : res_op1 = hi;
2032 : 11 : tree _r;
2033 : 11 : _r = fold_build2_loc (loc, LE_EXPR, type, res_op0, res_op1);
2034 : 11 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 331, __FILE__, __LINE__, true);
2035 : 11 : return _r;
2036 : : }
2037 : 2 : next_after_fail521:;
2038 : : }
2039 : : else
2040 : : {
2041 : 3012 : if (code == NE_EXPR && !hi
2042 : : )
2043 : : {
2044 : 4 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail522;
2045 : 4 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail522;
2046 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail522;
2047 : 4 : {
2048 : 4 : tree res_op0;
2049 : 4 : res_op0 = captures[1];
2050 : 4 : tree res_op1;
2051 : 4 : res_op1 = lo;
2052 : 4 : tree _r;
2053 : 4 : _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
2054 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 332, __FILE__, __LINE__, true);
2055 : 4 : return _r;
2056 : : }
2057 : 2 : next_after_fail522:;
2058 : : }
2059 : : else
2060 : : {
2061 : 2099 : if (code == NE_EXPR && !lo
2062 : : )
2063 : : {
2064 : 18 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail523;
2065 : 18 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail523;
2066 : 18 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail523;
2067 : 18 : {
2068 : 18 : tree res_op0;
2069 : 18 : res_op0 = captures[1];
2070 : 18 : tree res_op1;
2071 : 18 : res_op1 = hi;
2072 : 18 : tree _r;
2073 : 18 : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
2074 : 18 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 333, __FILE__, __LINE__, true);
2075 : 18 : return _r;
2076 : : }
2077 : 2 : next_after_fail523:;
2078 : : }
2079 : : else
2080 : : {
2081 : 2990 : if (1
2082 : : )
2083 : : {
2084 : 2990 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail524;
2085 : 2988 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail524;
2086 : 2988 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail524;
2087 : 2988 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail524;
2088 : 2988 : {
2089 : 2988 : tree _r;
2090 : 2988 : _r = build_range_check (UNKNOWN_LOCATION, type, captures[1], code == EQ_EXPR,
2091 : : lo, hi);
2092 : 2988 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 334, __FILE__, __LINE__, true);
2093 : 2988 : return _r;
2094 : : }
2095 : 2 : next_after_fail524:;
2096 : : }
2097 : : else
2098 : : {
2099 : : {
2100 : : tree etype = range_check_type (TREE_TYPE (captures[1]));
2101 : : if (etype)
2102 : : {
2103 : : hi = fold_convert (etype, hi);
2104 : : lo = fold_convert (etype, lo);
2105 : : hi = const_binop (MINUS_EXPR, etype, hi, lo);
2106 : : }
2107 : : if (etype && hi && !TREE_OVERFLOW (hi)
2108 : : )
2109 : : {
2110 : : if (code == EQ_EXPR
2111 : : )
2112 : : {
2113 : : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail525;
2114 : : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail525;
2115 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail525;
2116 : : {
2117 : : tree res_op0;
2118 : : {
2119 : : tree _o1[2], _r1;
2120 : : {
2121 : : tree _o2[1], _r2;
2122 : : _o2[0] = captures[1];
2123 : : if (TREE_TYPE (_o2[0]) != etype)
2124 : : {
2125 : : _r2 = fold_build1_loc (loc, NOP_EXPR, etype, _o2[0]);
2126 : : }
2127 : : else
2128 : : _r2 = _o2[0];
2129 : : _o1[0] = _r2;
2130 : : }
2131 : : _o1[1] = lo;
2132 : : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2133 : : res_op0 = _r1;
2134 : : }
2135 : : tree res_op1;
2136 : : res_op1 = hi;
2137 : : tree _r;
2138 : : _r = fold_build2_loc (loc, LE_EXPR, type, res_op0, res_op1);
2139 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 335, __FILE__, __LINE__, true);
2140 : : return _r;
2141 : : }
2142 : : next_after_fail525:;
2143 : : }
2144 : : else
2145 : : {
2146 : : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail526;
2147 : : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail526;
2148 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail526;
2149 : : {
2150 : : tree res_op0;
2151 : : {
2152 : : tree _o1[2], _r1;
2153 : : {
2154 : : tree _o2[1], _r2;
2155 : : _o2[0] = captures[1];
2156 : : if (TREE_TYPE (_o2[0]) != etype)
2157 : : {
2158 : : _r2 = fold_build1_loc (loc, NOP_EXPR, etype, _o2[0]);
2159 : : }
2160 : : else
2161 : : _r2 = _o2[0];
2162 : : _o1[0] = _r2;
2163 : : }
2164 : : _o1[1] = lo;
2165 : : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2166 : : res_op0 = _r1;
2167 : : }
2168 : : tree res_op1;
2169 : : res_op1 = hi;
2170 : : tree _r;
2171 : : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
2172 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 336, __FILE__, __LINE__, true);
2173 : : return _r;
2174 : : }
2175 : : next_after_fail526:;
2176 : : }
2177 : : }
2178 : : }
2179 : : }
2180 : : }
2181 : : }
2182 : : }
2183 : : }
2184 : : }
2185 : : }
2186 : : }
2187 : : }
2188 : : }
2189 : : return NULL_TREE;
2190 : : }
2191 : :
2192 : : tree
2193 : 1001054 : generic_simplify_261 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2194 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2195 : : const enum tree_code ARG_UNUSED (cmp))
2196 : : {
2197 : 1001054 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2198 : 1001054 : {
2199 : 1001054 : poly_int64 off; tree base;
2200 : 1001054 : tree addr = (TREE_CODE (captures[1]) == SSA_NAME
2201 : 1001054 : ? gimple_assign_rhs1 (SSA_NAME_DEF_STMT (captures[1])) : captures[1]);
2202 : 1001054 : if (SSA_NAME_IS_DEFAULT_DEF (captures[0])
2203 : 46111 : && TREE_CODE (SSA_NAME_VAR (captures[0])) == PARM_DECL
2204 : 45920 : && (base = get_base_address (TREE_OPERAND (addr, 0)))
2205 : 45920 : && TREE_CODE (base) == VAR_DECL
2206 : 1004250 : && auto_var_in_fn_p (base, current_function_decl)
2207 : : )
2208 : : {
2209 : 0 : if (cmp == NE_EXPR
2210 : : )
2211 : : {
2212 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail650;
2213 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail650;
2214 : 0 : {
2215 : 0 : tree _r;
2216 : 0 : _r = constant_boolean_node (true, type);
2217 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
2218 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2219 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 450, __FILE__, __LINE__, true);
2220 : 2 : return _r;
2221 : : }
2222 : 1001052 : next_after_fail650:;
2223 : : }
2224 : : else
2225 : : {
2226 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail651;
2227 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail651;
2228 : 0 : {
2229 : 0 : tree _r;
2230 : 0 : _r = constant_boolean_node (false, type);
2231 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
2232 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2233 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 451, __FILE__, __LINE__, true);
2234 : 0 : return _r;
2235 : : }
2236 : 1001052 : next_after_fail651:;
2237 : : }
2238 : : }
2239 : : else
2240 : : {
2241 : 1001054 : if ((base = get_addr_base_and_unit_offset (TREE_OPERAND (addr, 0), &off))
2242 : 998942 : && TREE_CODE (base) == MEM_REF
2243 : 1126499 : && TREE_OPERAND (base, 0) == captures[0]
2244 : : )
2245 : : {
2246 : 2 : {
2247 : 2 : off += mem_ref_offset (base).force_shwi ();
2248 : 2 : if (known_ne (off, 0)
2249 : : )
2250 : : {
2251 : 2 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail652;
2252 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail652;
2253 : 2 : {
2254 : 2 : tree _r;
2255 : 2 : _r = constant_boolean_node (cmp == NE_EXPR, type);
2256 : 2 : if (TREE_SIDE_EFFECTS (captures[0]))
2257 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2258 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 452, __FILE__, __LINE__, true);
2259 : 2 : return _r;
2260 : : }
2261 : 1001052 : next_after_fail652:;
2262 : : }
2263 : : else
2264 : : {
2265 : 0 : if (known_eq (off, 0)
2266 : : )
2267 : : {
2268 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail653;
2269 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail653;
2270 : 0 : {
2271 : 0 : tree _r;
2272 : 0 : _r = constant_boolean_node (cmp == EQ_EXPR, type);
2273 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
2274 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2275 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 453, __FILE__, __LINE__, true);
2276 : 0 : return _r;
2277 : : }
2278 : 1001052 : next_after_fail653:;
2279 : : }
2280 : : }
2281 : : }
2282 : : }
2283 : : }
2284 : : }
2285 : 1001052 : return NULL_TREE;
2286 : : }
2287 : :
2288 : : tree
2289 : 96141 : generic_simplify_271 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2290 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2291 : : const enum tree_code ARG_UNUSED (cmp),
2292 : : const enum tree_code ARG_UNUSED (ncmp))
2293 : : {
2294 : 96141 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2295 : 191716 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
2296 : 46586 : && type_has_mode_precision_p (TREE_TYPE (captures[1]))
2297 : 46528 : && element_precision (captures[0]) >= element_precision (captures[1])
2298 : 192282 : && wi::only_sign_bit_p (wi::to_wide (captures[2]), element_precision (captures[1]))
2299 : : )
2300 : : {
2301 : 9477 : {
2302 : 9477 : tree stype = signed_type_for (TREE_TYPE (captures[1]));
2303 : 9477 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail663;
2304 : 9477 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail663;
2305 : 9477 : {
2306 : 9477 : tree res_op0;
2307 : 9477 : {
2308 : 9477 : tree _o1[1], _r1;
2309 : 9477 : _o1[0] = captures[1];
2310 : 9477 : if (TREE_TYPE (_o1[0]) != stype)
2311 : : {
2312 : 8813 : _r1 = fold_build1_loc (loc, NOP_EXPR, stype, _o1[0]);
2313 : : }
2314 : : else
2315 : : _r1 = _o1[0];
2316 : 9477 : res_op0 = _r1;
2317 : : }
2318 : 9477 : tree res_op1;
2319 : 9477 : res_op1 = build_zero_cst (stype);
2320 : 9477 : tree _r;
2321 : 9477 : _r = fold_build2_loc (loc, ncmp, type, res_op0, res_op1);
2322 : 9477 : if (TREE_SIDE_EFFECTS (captures[2]))
2323 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2324 : 9477 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 463, __FILE__, __LINE__, true);
2325 : 9477 : return _r;
2326 : : }
2327 : : next_after_fail663:;
2328 : : }
2329 : : }
2330 : : return NULL_TREE;
2331 : : }
2332 : :
2333 : : tree
2334 : 117730 : generic_simplify_277 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2335 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2336 : : const enum tree_code ARG_UNUSED (cmp))
2337 : : {
2338 : 117730 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2339 : 117730 : {
2340 : 117730 : poly_int64 off0, off1;
2341 : 117730 : tree base0, base1;
2342 : 117730 : int equal = address_compare (cmp, TREE_TYPE (captures[0]), captures[1], captures[2], base0, base1,
2343 : : off0, off1,
2344 : : 1
2345 : : );
2346 : 117730 : if (equal == 1
2347 : : )
2348 : : {
2349 : 107850 : if (cmp == EQ_EXPR && (known_eq (off0, off1) || known_ne (off0, off1))
2350 : : )
2351 : : {
2352 : 7442 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail676;
2353 : 7442 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail676;
2354 : 7442 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail676;
2355 : 7442 : {
2356 : 7442 : tree _r;
2357 : 7442 : _r = constant_boolean_node (known_eq (off0, off1), type);
2358 : 7442 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 466, __FILE__, __LINE__, true);
2359 : 109033 : return _r;
2360 : : }
2361 : 8697 : next_after_fail676:;
2362 : : }
2363 : : else
2364 : : {
2365 : 58828 : if (cmp == NE_EXPR && (known_eq (off0, off1) || known_ne (off0, off1))
2366 : : )
2367 : : {
2368 : 58828 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail677;
2369 : 58828 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail677;
2370 : 58828 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail677;
2371 : 58828 : {
2372 : 58828 : tree _r;
2373 : 58828 : _r = constant_boolean_node (known_ne (off0, off1), type);
2374 : 58828 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 467, __FILE__, __LINE__, true);
2375 : 58828 : return _r;
2376 : : }
2377 : 8697 : next_after_fail677:;
2378 : : }
2379 : : else
2380 : : {
2381 : 29828 : if (cmp == LT_EXPR && (known_lt (off0, off1) || known_ge (off0, off1))
2382 : : )
2383 : : {
2384 : 29828 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail678;
2385 : 29828 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail678;
2386 : 29828 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail678;
2387 : 29828 : {
2388 : 29828 : tree _r;
2389 : 29828 : _r = constant_boolean_node (known_lt (off0, off1), type);
2390 : 29828 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 468, __FILE__, __LINE__, true);
2391 : 29828 : return _r;
2392 : : }
2393 : 8697 : next_after_fail678:;
2394 : : }
2395 : : else
2396 : : {
2397 : 210 : if (cmp == LE_EXPR && (known_le (off0, off1) || known_gt (off0, off1))
2398 : : )
2399 : : {
2400 : 210 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail679;
2401 : 210 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail679;
2402 : 210 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail679;
2403 : 210 : {
2404 : 210 : tree _r;
2405 : 210 : _r = constant_boolean_node (known_le (off0, off1), type);
2406 : 210 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 469, __FILE__, __LINE__, true);
2407 : 210 : return _r;
2408 : : }
2409 : 8697 : next_after_fail679:;
2410 : : }
2411 : : else
2412 : : {
2413 : 7926 : if (cmp == GE_EXPR && (known_ge (off0, off1) || known_lt (off0, off1))
2414 : : )
2415 : : {
2416 : 7926 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail680;
2417 : 7926 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail680;
2418 : 7926 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail680;
2419 : 7926 : {
2420 : 7926 : tree _r;
2421 : 7926 : _r = constant_boolean_node (known_ge (off0, off1), type);
2422 : 7926 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 470, __FILE__, __LINE__, true);
2423 : 7926 : return _r;
2424 : : }
2425 : 8697 : next_after_fail680:;
2426 : : }
2427 : : else
2428 : : {
2429 : 3616 : if (cmp == GT_EXPR && (known_gt (off0, off1) || known_le (off0, off1))
2430 : : )
2431 : : {
2432 : 3616 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail681;
2433 : 3616 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail681;
2434 : 3616 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail681;
2435 : 3616 : {
2436 : 3616 : tree _r;
2437 : 3616 : _r = constant_boolean_node (known_gt (off0, off1), type);
2438 : 3616 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 471, __FILE__, __LINE__, true);
2439 : 3616 : return _r;
2440 : : }
2441 : 8697 : next_after_fail681:;
2442 : : }
2443 : : }
2444 : : }
2445 : : }
2446 : : }
2447 : : }
2448 : : }
2449 : : else
2450 : : {
2451 : 9880 : if (equal == 0
2452 : : )
2453 : : {
2454 : 1183 : if (cmp == EQ_EXPR
2455 : : )
2456 : : {
2457 : 659 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail682;
2458 : 659 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail682;
2459 : 659 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail682;
2460 : 659 : {
2461 : 659 : tree _r;
2462 : 659 : _r = constant_boolean_node (false, type);
2463 : 659 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 472, __FILE__, __LINE__, true);
2464 : 659 : return _r;
2465 : : }
2466 : 8697 : next_after_fail682:;
2467 : : }
2468 : : else
2469 : : {
2470 : 524 : if (cmp == NE_EXPR
2471 : : )
2472 : : {
2473 : 524 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail683;
2474 : 524 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail683;
2475 : 524 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail683;
2476 : 524 : {
2477 : 524 : tree _r;
2478 : 524 : _r = constant_boolean_node (true, type);
2479 : 524 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 473, __FILE__, __LINE__, true);
2480 : 524 : return _r;
2481 : : }
2482 : 8697 : next_after_fail683:;
2483 : : }
2484 : : }
2485 : : }
2486 : : }
2487 : : }
2488 : 8697 : return NULL_TREE;
2489 : : }
2490 : :
2491 : : tree
2492 : 0 : generic_simplify_290 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2493 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2494 : : const enum tree_code ARG_UNUSED (cmp))
2495 : : {
2496 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2497 : 0 : if (VECTOR_MODE_P (TYPE_MODE (TREE_TYPE (captures[0])))
2498 : 0 : && can_compare_p (cmp == EQ_EXPR ? EQ : NE, TYPE_MODE (TREE_TYPE (captures[0])),
2499 : : ccp_jump)
2500 : : )
2501 : : {
2502 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail715;
2503 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail715;
2504 : 0 : {
2505 : 0 : tree res_op0;
2506 : 0 : res_op0 = captures[0];
2507 : 0 : tree res_op1;
2508 : 0 : res_op1 = build_zero_cst (TREE_TYPE (captures[0]));
2509 : 0 : tree _r;
2510 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2511 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 505, __FILE__, __LINE__, true);
2512 : 0 : return _r;
2513 : : }
2514 : : next_after_fail715:;
2515 : : }
2516 : : return NULL_TREE;
2517 : : }
2518 : :
2519 : : tree
2520 : 0 : generic_simplify_294 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2521 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2522 : : const combined_fn ARG_UNUSED (COPYSIGN_ALL))
2523 : : {
2524 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2525 : 0 : if (REAL_VALUE_NEGATIVE (TREE_REAL_CST (captures[0]))
2526 : : )
2527 : : {
2528 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail720;
2529 : 0 : {
2530 : 0 : tree res_op0;
2531 : 0 : {
2532 : 0 : tree _o1[1], _r1;
2533 : 0 : _o1[0] = captures[0];
2534 : 0 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
2535 : 0 : res_op0 = _r1;
2536 : : }
2537 : 0 : tree res_op1;
2538 : 0 : res_op1 = captures[1];
2539 : 0 : tree _r;
2540 : 0 : _r = maybe_build_call_expr_loc (loc, COPYSIGN_ALL, type, 2, res_op0, res_op1);
2541 : 0 : if (!_r)
2542 : 0 : goto next_after_fail720;
2543 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 510, __FILE__, __LINE__, true);
2544 : 0 : return _r;
2545 : : }
2546 : : next_after_fail720:;
2547 : : }
2548 : : return NULL_TREE;
2549 : : }
2550 : :
2551 : : tree
2552 : 0 : generic_simplify_299 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2553 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2554 : : const combined_fn ARG_UNUSED (COPYSIGN_ALL))
2555 : : {
2556 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2557 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail725;
2558 : 0 : {
2559 : 0 : tree res_op0;
2560 : 0 : res_op0 = captures[0];
2561 : 0 : tree _r;
2562 : 0 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
2563 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2564 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2565 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 515, __FILE__, __LINE__, true);
2566 : : return _r;
2567 : : }
2568 : 0 : next_after_fail725:;
2569 : 0 : return NULL_TREE;
2570 : : }
2571 : :
2572 : : tree
2573 : 1 : generic_simplify_306 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2574 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2575 : : const enum tree_code ARG_UNUSED (div))
2576 : : {
2577 : 1 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2578 : 1 : if (INTEGRAL_TYPE_P (type)
2579 : 1 : && TYPE_OVERFLOW_UNDEFINED (type)
2580 : 1 : && !integer_zerop (captures[0])
2581 : 2 : && (!flag_non_call_exceptions || tree_expr_nonzero_p (captures[0]))
2582 : : )
2583 : : {
2584 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail734;
2585 : 1 : {
2586 : 1 : tree res_op0;
2587 : 1 : {
2588 : 1 : tree _o1[2], _r1;
2589 : 1 : _o1[0] = captures[0];
2590 : 1 : _o1[1] = build_zero_cst (type);
2591 : 1 : _r1 = fold_build2_loc (loc, LT_EXPR, boolean_type_node, _o1[0], _o1[1]);
2592 : 1 : res_op0 = _r1;
2593 : : }
2594 : 1 : tree res_op1;
2595 : 1 : res_op1 = build_minus_one_cst (type);
2596 : 1 : tree res_op2;
2597 : 1 : res_op2 = build_one_cst (type);
2598 : 1 : tree _r;
2599 : 1 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
2600 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 522, __FILE__, __LINE__, true);
2601 : 1 : return _r;
2602 : : }
2603 : 0 : next_after_fail734:;
2604 : : }
2605 : : return NULL_TREE;
2606 : : }
2607 : :
2608 : : tree
2609 : 2371936 : generic_simplify_313 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2610 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2611 : : const enum tree_code ARG_UNUSED (floor_divmod),
2612 : : const enum tree_code ARG_UNUSED (trunc_divmod))
2613 : : {
2614 : 2371936 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2615 : 0 : if ((INTEGRAL_TYPE_P (type) || VECTOR_INTEGER_TYPE_P (type))
2616 : 2371936 : && TYPE_UNSIGNED (type)
2617 : : )
2618 : : {
2619 : 2363857 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail742;
2620 : 2363857 : {
2621 : 2363857 : tree res_op0;
2622 : 2363857 : res_op0 = captures[0];
2623 : 2363857 : tree res_op1;
2624 : 2363857 : res_op1 = captures[1];
2625 : 2363857 : tree _r;
2626 : 2363857 : _r = fold_build2_loc (loc, trunc_divmod, type, res_op0, res_op1);
2627 : 2363857 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 530, __FILE__, __LINE__, true);
2628 : 2363857 : return _r;
2629 : : }
2630 : 0 : next_after_fail742:;
2631 : : }
2632 : : return NULL_TREE;
2633 : : }
2634 : :
2635 : : tree
2636 : 8740 : generic_simplify_319 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2637 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2638 : : const enum tree_code ARG_UNUSED (mod))
2639 : : {
2640 : 8740 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2641 : 0 : if (ANY_INTEGRAL_TYPE_P (type)
2642 : 8740 : && TYPE_OVERFLOW_UNDEFINED (type)
2643 : 17480 : && wi::multiple_of_p (wi::to_wide (captures[1]), wi::to_wide (captures[2]),
2644 : 193 : TYPE_SIGN (type))
2645 : : )
2646 : : {
2647 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail748;
2648 : 0 : {
2649 : 0 : tree _r;
2650 : 0 : _r = build_zero_cst (type);
2651 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
2652 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2653 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2654 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2655 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
2656 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2657 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 536, __FILE__, __LINE__, true);
2658 : 0 : return _r;
2659 : : }
2660 : 0 : next_after_fail748:;
2661 : : }
2662 : : return NULL_TREE;
2663 : : }
2664 : :
2665 : : tree
2666 : 6 : generic_simplify_328 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2667 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2668 : : const combined_fn ARG_UNUSED (COS),
2669 : : const combined_fn ARG_UNUSED (SIN),
2670 : : const combined_fn ARG_UNUSED (TAN))
2671 : : {
2672 : 6 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2673 : 6 : if (flag_unsafe_math_optimizations && canonicalize_math_p ()
2674 : : )
2675 : : {
2676 : 6 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail759;
2677 : 6 : {
2678 : 6 : tree res_op0;
2679 : 6 : res_op0 = build_one_cst (type);
2680 : 6 : tree res_op1;
2681 : 6 : {
2682 : 6 : tree _o1[1], _r1;
2683 : 6 : _o1[0] = captures[1];
2684 : 6 : _r1 = maybe_build_call_expr_loc (loc, TAN, TREE_TYPE (_o1[0]), 1, _o1[0]);
2685 : 6 : if (!_r1)
2686 : 0 : goto next_after_fail759;
2687 : 6 : res_op1 = _r1;
2688 : : }
2689 : 6 : tree _r;
2690 : 6 : _r = fold_build2_loc (loc, RDIV_EXPR, type, res_op0, res_op1);
2691 : 6 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 547, __FILE__, __LINE__, true);
2692 : 6 : return _r;
2693 : : }
2694 : : next_after_fail759:;
2695 : : }
2696 : : return NULL_TREE;
2697 : : }
2698 : :
2699 : : tree
2700 : 81735 : generic_simplify_336 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2701 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2702 : : const enum tree_code ARG_UNUSED (op))
2703 : : {
2704 : 81735 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2705 : 163470 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
2706 : 81735 : && TYPE_UNSIGNED (TREE_TYPE (captures[1]))
2707 : 163470 : && wi::only_sign_bit_p (wi::to_wide (captures[1]))
2708 : : )
2709 : : {
2710 : 5 : {
2711 : 5 : tree stype = signed_type_for (TREE_TYPE (captures[1]));
2712 : 5 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail769;
2713 : 5 : {
2714 : 5 : tree res_op0;
2715 : 5 : {
2716 : 5 : tree _o1[1], _r1;
2717 : 5 : _o1[0] = captures[0];
2718 : 5 : if (TREE_TYPE (_o1[0]) != stype)
2719 : : {
2720 : 5 : _r1 = fold_build1_loc (loc, NOP_EXPR, stype, _o1[0]);
2721 : : }
2722 : : else
2723 : : _r1 = _o1[0];
2724 : 5 : res_op0 = _r1;
2725 : : }
2726 : 5 : tree res_op1;
2727 : 5 : {
2728 : 5 : tree _o1[1], _r1;
2729 : 5 : _o1[0] = captures[2];
2730 : 5 : if (TREE_TYPE (_o1[0]) != stype)
2731 : : {
2732 : 5 : _r1 = fold_build1_loc (loc, NOP_EXPR, stype, _o1[0]);
2733 : : }
2734 : : else
2735 : : _r1 = _o1[0];
2736 : 5 : res_op1 = _r1;
2737 : : }
2738 : 5 : tree _r;
2739 : 5 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
2740 : 5 : if (TREE_SIDE_EFFECTS (captures[1]))
2741 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2742 : 5 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 557, __FILE__, __LINE__, true);
2743 : 5 : return _r;
2744 : : }
2745 : 0 : next_after_fail769:;
2746 : : }
2747 : : }
2748 : : return NULL_TREE;
2749 : : }
2750 : :
2751 : : tree
2752 : 20137453 : generic_simplify_348 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2753 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2754 : : const enum tree_code ARG_UNUSED (cmp))
2755 : : {
2756 : 20137453 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2757 : 40269201 : if ((INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
2758 : 11382 : || POINTER_TYPE_P (TREE_TYPE (captures[2]))
2759 : 1742 : || VECTOR_INTEGER_TYPE_P (TREE_TYPE (captures[2])))
2760 : 40269201 : && tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
2761 : : )
2762 : : {
2763 : 20137453 : {
2764 : 20137453 : tree cst = uniform_integer_cst_p (captures[2]);
2765 : 20137453 : tree arg1_type = TREE_TYPE (cst);
2766 : 20137453 : unsigned int prec = TYPE_PRECISION (arg1_type);
2767 : 20137453 : wide_int max = wi::max_value (arg1_type);
2768 : 20137453 : wide_int signed_max = wi::max_value (prec, SIGNED);
2769 : 20137453 : wide_int min = wi::min_value (arg1_type);
2770 : 20137453 : if (wi::to_wide (cst) == max
2771 : : )
2772 : : {
2773 : 158281 : if (cmp == GT_EXPR
2774 : : )
2775 : : {
2776 : 102640 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail799;
2777 : 102640 : {
2778 : 102640 : tree _r;
2779 : 102640 : _r = constant_boolean_node (false, type);
2780 : 102640 : if (TREE_SIDE_EFFECTS (captures[0]))
2781 : 19 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2782 : 102640 : if (TREE_SIDE_EFFECTS (captures[2]))
2783 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2784 : 102640 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 571, __FILE__, __LINE__, true);
2785 : 102640 : return _r;
2786 : : }
2787 : 0 : next_after_fail799:;
2788 : : }
2789 : : else
2790 : : {
2791 : 55641 : if (cmp == GE_EXPR
2792 : : )
2793 : : {
2794 : 13 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail800;
2795 : 13 : {
2796 : 13 : tree res_op0;
2797 : 13 : res_op0 = captures[0];
2798 : 13 : tree res_op1;
2799 : 13 : res_op1 = captures[2];
2800 : 13 : tree _r;
2801 : 13 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
2802 : 13 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 572, __FILE__, __LINE__, true);
2803 : 13 : return _r;
2804 : : }
2805 : 0 : next_after_fail800:;
2806 : : }
2807 : : else
2808 : : {
2809 : 55628 : if (cmp == LE_EXPR
2810 : : )
2811 : : {
2812 : 55618 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail801;
2813 : 55618 : {
2814 : 55618 : tree _r;
2815 : 55618 : _r = constant_boolean_node (true, type);
2816 : 55618 : if (TREE_SIDE_EFFECTS (captures[0]))
2817 : 23 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2818 : 55618 : if (TREE_SIDE_EFFECTS (captures[2]))
2819 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2820 : 55618 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 573, __FILE__, __LINE__, true);
2821 : 55618 : return _r;
2822 : : }
2823 : 0 : next_after_fail801:;
2824 : : }
2825 : : else
2826 : : {
2827 : 10 : if (cmp == LT_EXPR
2828 : : )
2829 : : {
2830 : 10 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail802;
2831 : 10 : {
2832 : 10 : tree res_op0;
2833 : 10 : res_op0 = captures[0];
2834 : 10 : tree res_op1;
2835 : 10 : res_op1 = captures[2];
2836 : 10 : tree _r;
2837 : 10 : _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
2838 : 10 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 574, __FILE__, __LINE__, true);
2839 : 10 : return _r;
2840 : : }
2841 : 0 : next_after_fail802:;
2842 : : }
2843 : : }
2844 : : }
2845 : : }
2846 : : }
2847 : : else
2848 : : {
2849 : 19979172 : if (wi::to_wide (cst) == min
2850 : : )
2851 : : {
2852 : 1192521 : if (cmp == LT_EXPR
2853 : : )
2854 : : {
2855 : 397656 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail803;
2856 : 397656 : {
2857 : 397656 : tree _r;
2858 : 397656 : _r = constant_boolean_node (false, type);
2859 : 397656 : if (TREE_SIDE_EFFECTS (captures[0]))
2860 : 41 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2861 : 397656 : if (TREE_SIDE_EFFECTS (captures[2]))
2862 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2863 : 397656 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 575, __FILE__, __LINE__, true);
2864 : 397656 : return _r;
2865 : : }
2866 : 0 : next_after_fail803:;
2867 : : }
2868 : : else
2869 : : {
2870 : 794865 : if (cmp == LE_EXPR
2871 : : )
2872 : : {
2873 : 122407 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail804;
2874 : 122407 : {
2875 : 122407 : tree res_op0;
2876 : 122407 : res_op0 = captures[0];
2877 : 122407 : tree res_op1;
2878 : 122407 : res_op1 = captures[2];
2879 : 122407 : tree _r;
2880 : 122407 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
2881 : 122407 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 576, __FILE__, __LINE__, true);
2882 : 122407 : return _r;
2883 : : }
2884 : 0 : next_after_fail804:;
2885 : : }
2886 : : else
2887 : : {
2888 : 672458 : if (cmp == GE_EXPR
2889 : : )
2890 : : {
2891 : 253813 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail805;
2892 : 253813 : {
2893 : 253813 : tree _r;
2894 : 253813 : _r = constant_boolean_node (true, type);
2895 : 253813 : if (TREE_SIDE_EFFECTS (captures[0]))
2896 : 9 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2897 : 253813 : if (TREE_SIDE_EFFECTS (captures[2]))
2898 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2899 : 253813 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 577, __FILE__, __LINE__, true);
2900 : 253813 : return _r;
2901 : : }
2902 : 0 : next_after_fail805:;
2903 : : }
2904 : : else
2905 : : {
2906 : 418645 : if (cmp == GT_EXPR
2907 : : )
2908 : : {
2909 : 418645 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail806;
2910 : 418645 : {
2911 : 418645 : tree res_op0;
2912 : 418645 : res_op0 = captures[0];
2913 : 418645 : tree res_op1;
2914 : 418645 : res_op1 = captures[2];
2915 : 418645 : tree _r;
2916 : 418645 : _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
2917 : 418645 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 578, __FILE__, __LINE__, true);
2918 : 418645 : return _r;
2919 : : }
2920 : 0 : next_after_fail806:;
2921 : : }
2922 : : }
2923 : : }
2924 : : }
2925 : : }
2926 : : else
2927 : : {
2928 : 18786654 : if (wi::to_wide (cst) == max - 1
2929 : : )
2930 : : {
2931 : 371826 : if (cmp == GT_EXPR
2932 : : )
2933 : : {
2934 : 128860 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail807;
2935 : 128860 : {
2936 : 128860 : tree res_op0;
2937 : 128860 : res_op0 = captures[0];
2938 : 128860 : tree res_op1;
2939 : 128860 : res_op1 = build_uniform_cst (TREE_TYPE (captures[2]),
2940 : 128860 : wide_int_to_tree (TREE_TYPE (cst),
2941 : 128860 : wi::to_wide (cst)
2942 : 257720 : + 1));
2943 : 128860 : tree _r;
2944 : 128860 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
2945 : 128860 : if (TREE_SIDE_EFFECTS (captures[2]))
2946 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2947 : 128860 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 579, __FILE__, __LINE__, true);
2948 : 128860 : return _r;
2949 : : }
2950 : 0 : next_after_fail807:;
2951 : : }
2952 : : else
2953 : : {
2954 : 242966 : if (cmp == LE_EXPR
2955 : : )
2956 : : {
2957 : 242966 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail808;
2958 : 242966 : {
2959 : 242966 : tree res_op0;
2960 : 242966 : res_op0 = captures[0];
2961 : 242966 : tree res_op1;
2962 : 242966 : res_op1 = build_uniform_cst (TREE_TYPE (captures[2]),
2963 : 242966 : wide_int_to_tree (TREE_TYPE (cst),
2964 : 242966 : wi::to_wide (cst)
2965 : 485932 : + 1));
2966 : 242966 : tree _r;
2967 : 242966 : _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
2968 : 242966 : if (TREE_SIDE_EFFECTS (captures[2]))
2969 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2970 : 242966 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 580, __FILE__, __LINE__, true);
2971 : 242966 : return _r;
2972 : : }
2973 : 0 : next_after_fail808:;
2974 : : }
2975 : : }
2976 : : }
2977 : : else
2978 : : {
2979 : 18414828 : if (wi::to_wide (cst) == min + 1
2980 : : )
2981 : : {
2982 : 666217 : if (cmp == GE_EXPR
2983 : : )
2984 : : {
2985 : 46508 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail809;
2986 : 46508 : {
2987 : 46508 : tree res_op0;
2988 : 46508 : res_op0 = captures[0];
2989 : 46508 : tree res_op1;
2990 : 46508 : res_op1 = build_uniform_cst (TREE_TYPE (captures[2]),
2991 : 46508 : wide_int_to_tree (TREE_TYPE (cst),
2992 : 46508 : wi::to_wide (cst)
2993 : 93016 : - 1));
2994 : 46508 : tree _r;
2995 : 46508 : _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
2996 : 46508 : if (TREE_SIDE_EFFECTS (captures[2]))
2997 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2998 : 46508 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 581, __FILE__, __LINE__, true);
2999 : 46508 : return _r;
3000 : : }
3001 : 0 : next_after_fail809:;
3002 : : }
3003 : : else
3004 : : {
3005 : 619709 : if (cmp == LT_EXPR
3006 : : )
3007 : : {
3008 : 27846 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail810;
3009 : 27846 : {
3010 : 27846 : tree res_op0;
3011 : 27846 : res_op0 = captures[0];
3012 : 27846 : tree res_op1;
3013 : 27846 : res_op1 = build_uniform_cst (TREE_TYPE (captures[2]),
3014 : 27846 : wide_int_to_tree (TREE_TYPE (cst),
3015 : 27846 : wi::to_wide (cst)
3016 : 55692 : - 1));
3017 : 27846 : tree _r;
3018 : 27846 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
3019 : 27846 : if (TREE_SIDE_EFFECTS (captures[2]))
3020 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3021 : 27846 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 582, __FILE__, __LINE__, true);
3022 : 27846 : return _r;
3023 : : }
3024 : 0 : next_after_fail810:;
3025 : : }
3026 : : }
3027 : : }
3028 : : else
3029 : : {
3030 : 17748608 : if (wi::to_wide (cst) == signed_max
3031 : 89191 : && TYPE_UNSIGNED (arg1_type)
3032 : 89191 : && TYPE_MODE (arg1_type) != BLKmode
3033 : 17748615 : && prec == GET_MODE_PRECISION (SCALAR_INT_TYPE_MODE (arg1_type))
3034 : 17837511 : && INTEGRAL_TYPE_P (arg1_type)
3035 : : )
3036 : : {
3037 : 88896 : if (cmp == LE_EXPR || cmp == GT_EXPR
3038 : : )
3039 : : {
3040 : 88896 : {
3041 : 88896 : tree st = signed_type_for (TREE_TYPE (captures[2]));
3042 : 88896 : if (cst == captures[2] && cmp == LE_EXPR
3043 : : )
3044 : : {
3045 : 39961 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail811;
3046 : 39961 : {
3047 : 39961 : tree res_op0;
3048 : 39961 : {
3049 : 39961 : tree _o1[1], _r1;
3050 : 39961 : _o1[0] = captures[1];
3051 : 39961 : if (TREE_TYPE (_o1[0]) != st)
3052 : : {
3053 : 39961 : _r1 = fold_build1_loc (loc, NOP_EXPR, st, _o1[0]);
3054 : : }
3055 : : else
3056 : : _r1 = _o1[0];
3057 : 39961 : res_op0 = _r1;
3058 : : }
3059 : 39961 : tree res_op1;
3060 : 39961 : res_op1 = build_zero_cst (st);
3061 : 39961 : tree _r;
3062 : 39961 : _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
3063 : 39961 : if (TREE_SIDE_EFFECTS (captures[2]))
3064 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3065 : 39961 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 583, __FILE__, __LINE__, true);
3066 : 39961 : return _r;
3067 : : }
3068 : 0 : next_after_fail811:;
3069 : 0 : }
3070 : : else
3071 : : {
3072 : 48935 : if (cst == captures[2] && cmp == GT_EXPR
3073 : : )
3074 : : {
3075 : 48849 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail812;
3076 : 48849 : {
3077 : 48849 : tree res_op0;
3078 : 48849 : {
3079 : 48849 : tree _o1[1], _r1;
3080 : 48849 : _o1[0] = captures[1];
3081 : 48849 : if (TREE_TYPE (_o1[0]) != st)
3082 : : {
3083 : 48849 : _r1 = fold_build1_loc (loc, NOP_EXPR, st, _o1[0]);
3084 : : }
3085 : : else
3086 : : _r1 = _o1[0];
3087 : 48849 : res_op0 = _r1;
3088 : : }
3089 : 48849 : tree res_op1;
3090 : 48849 : res_op1 = build_zero_cst (st);
3091 : 48849 : tree _r;
3092 : 48849 : _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
3093 : 48849 : if (TREE_SIDE_EFFECTS (captures[2]))
3094 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3095 : 48849 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 584, __FILE__, __LINE__, true);
3096 : 48849 : return _r;
3097 : : }
3098 : 0 : next_after_fail812:;
3099 : 0 : }
3100 : : else
3101 : : {
3102 : 86 : if (cmp == LE_EXPR
3103 : : )
3104 : : {
3105 : 30 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail813;
3106 : 30 : {
3107 : 30 : tree res_op0;
3108 : 30 : {
3109 : 30 : tree _o1[1], _r1;
3110 : 30 : _o1[0] = captures[1];
3111 : 30 : if (TREE_TYPE (_o1[0]) != st)
3112 : : {
3113 : 30 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, st, _o1[0]);
3114 : : }
3115 : : else
3116 : : _r1 = _o1[0];
3117 : 30 : res_op0 = _r1;
3118 : : }
3119 : 30 : tree res_op1;
3120 : 30 : res_op1 = build_zero_cst (st);
3121 : 30 : tree _r;
3122 : 30 : _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
3123 : 30 : if (TREE_SIDE_EFFECTS (captures[2]))
3124 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3125 : 30 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 585, __FILE__, __LINE__, true);
3126 : 30 : return _r;
3127 : : }
3128 : 0 : next_after_fail813:;
3129 : : }
3130 : : else
3131 : : {
3132 : 56 : if (cmp == GT_EXPR
3133 : : )
3134 : : {
3135 : 56 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail814;
3136 : 56 : {
3137 : 56 : tree res_op0;
3138 : 56 : {
3139 : 56 : tree _o1[1], _r1;
3140 : 56 : _o1[0] = captures[1];
3141 : 56 : if (TREE_TYPE (_o1[0]) != st)
3142 : : {
3143 : 56 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, st, _o1[0]);
3144 : : }
3145 : : else
3146 : : _r1 = _o1[0];
3147 : 56 : res_op0 = _r1;
3148 : : }
3149 : 56 : tree res_op1;
3150 : 56 : res_op1 = build_zero_cst (st);
3151 : 56 : tree _r;
3152 : 56 : _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
3153 : 56 : if (TREE_SIDE_EFFECTS (captures[2]))
3154 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3155 : 56 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 586, __FILE__, __LINE__, true);
3156 : 56 : return _r;
3157 : : }
3158 : 0 : next_after_fail814:;
3159 : : }
3160 : : }
3161 : : }
3162 : : }
3163 : : }
3164 : : }
3165 : : }
3166 : : }
3167 : : }
3168 : : }
3169 : : }
3170 : 20137459 : }
3171 : : }
3172 : : return NULL_TREE;
3173 : : }
3174 : :
3175 : : tree
3176 : 0 : generic_simplify_397 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3177 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3178 : : {
3179 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3180 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail894;
3181 : 0 : {
3182 : 0 : tree _r;
3183 : 0 : _r = captures[0];
3184 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
3185 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3186 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 647, __FILE__, __LINE__, true);
3187 : : return _r;
3188 : : }
3189 : 0 : next_after_fail894:;
3190 : 0 : return NULL_TREE;
3191 : : }
3192 : :
3193 : : tree
3194 : 0 : generic_simplify_401 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3195 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3196 : : const combined_fn ARG_UNUSED (HYPOT))
3197 : : {
3198 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3199 : 0 : if (flag_unsafe_math_optimizations && canonicalize_math_p ()
3200 : : )
3201 : : {
3202 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail898;
3203 : 0 : {
3204 : 0 : tree res_op0;
3205 : 0 : {
3206 : 0 : tree _o1[1], _r1;
3207 : 0 : _o1[0] = captures[0];
3208 : 0 : _r1 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
3209 : 0 : res_op0 = _r1;
3210 : : }
3211 : 0 : tree res_op1;
3212 : 0 : res_op1 = build_real_truncate (type, dconst_sqrt2 ());
3213 : 0 : tree _r;
3214 : 0 : _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
3215 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 651, __FILE__, __LINE__, true);
3216 : 0 : return _r;
3217 : : }
3218 : 0 : next_after_fail898:;
3219 : : }
3220 : : return NULL_TREE;
3221 : : }
3222 : :
3223 : : tree
3224 : 0 : generic_simplify_405 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3225 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3226 : : {
3227 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3228 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail902;
3229 : 0 : {
3230 : 0 : tree res_op0;
3231 : 0 : res_op0 = captures[0];
3232 : 0 : tree res_op1;
3233 : 0 : res_op1 = captures[1];
3234 : 0 : tree _r;
3235 : 0 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
3236 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 655, __FILE__, __LINE__, true);
3237 : : return _r;
3238 : : }
3239 : 0 : next_after_fail902:;
3240 : 0 : return NULL_TREE;
3241 : : }
3242 : :
3243 : : tree
3244 : 325 : generic_simplify_411 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3245 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3246 : : const enum tree_code ARG_UNUSED (bitop),
3247 : : const enum tree_code ARG_UNUSED (op))
3248 : : {
3249 : 325 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3250 : 325 : {
3251 : 325 : tree pmop[2];
3252 : 325 : tree utype = fold_bit_and_mask (TREE_TYPE (captures[1]), captures[5], op, captures[1], ERROR_MARK,
3253 : : NULL_TREE, NULL_TREE, captures[2], bitop, captures[3],
3254 : : captures[4], pmop);
3255 : 325 : if (utype
3256 : : )
3257 : : {
3258 : 324 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail908;
3259 : 324 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail908;
3260 : 324 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail908;
3261 : 324 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail908;
3262 : 324 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail908;
3263 : 324 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail908;
3264 : 324 : {
3265 : 324 : tree res_op0;
3266 : 324 : {
3267 : 324 : tree _o1[2], _r1;
3268 : 324 : {
3269 : 324 : tree _o2[2], _r2;
3270 : 324 : {
3271 : 324 : tree _o3[1], _r3;
3272 : 324 : _o3[0] = pmop[0];
3273 : 324 : if (TREE_TYPE (_o3[0]) != utype)
3274 : : {
3275 : 14 : _r3 = fold_build1_loc (loc, NOP_EXPR, utype, _o3[0]);
3276 : : }
3277 : : else
3278 : : _r3 = _o3[0];
3279 : 324 : _o2[0] = _r3;
3280 : : }
3281 : 324 : {
3282 : 324 : tree _o3[1], _r3;
3283 : 324 : _o3[0] = pmop[1];
3284 : 324 : if (TREE_TYPE (_o3[0]) != utype)
3285 : : {
3286 : 74 : _r3 = fold_build1_loc (loc, NOP_EXPR, utype, _o3[0]);
3287 : : }
3288 : : else
3289 : : _r3 = _o3[0];
3290 : 324 : _o2[1] = _r3;
3291 : : }
3292 : 324 : _r2 = fold_build2_loc (loc, op, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
3293 : 324 : _o1[0] = _r2;
3294 : : }
3295 : 324 : {
3296 : 324 : tree _o2[1], _r2;
3297 : 324 : _o2[0] = captures[5];
3298 : 324 : if (TREE_TYPE (_o2[0]) != utype)
3299 : : {
3300 : 14 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
3301 : : }
3302 : : else
3303 : : _r2 = _o2[0];
3304 : 324 : _o1[1] = _r2;
3305 : : }
3306 : 324 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3307 : 324 : res_op0 = _r1;
3308 : : }
3309 : 324 : tree _r;
3310 : 324 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3311 : 324 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 660, __FILE__, __LINE__, true);
3312 : 324 : return _r;
3313 : : }
3314 : 1 : next_after_fail908:;
3315 : : }
3316 : : }
3317 : 1 : return NULL_TREE;
3318 : : }
3319 : :
3320 : : tree
3321 : 8 : generic_simplify_427 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3322 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3323 : : const enum tree_code ARG_UNUSED (eqne))
3324 : : {
3325 : 8 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3326 : 8 : if (eqne == EQ_EXPR
3327 : : )
3328 : : {
3329 : 4 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail929;
3330 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail929;
3331 : 4 : {
3332 : 4 : tree _r;
3333 : 4 : _r = constant_boolean_node (false, type);
3334 : 4 : if (TREE_SIDE_EFFECTS (captures[2]))
3335 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3336 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 677, __FILE__, __LINE__, true);
3337 : 4 : return _r;
3338 : : }
3339 : : next_after_fail929:;
3340 : : }
3341 : : else
3342 : : {
3343 : 4 : if (eqne == NE_EXPR
3344 : : )
3345 : : {
3346 : 4 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail930;
3347 : 4 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail930;
3348 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail930;
3349 : 4 : {
3350 : 4 : tree _r;
3351 : 4 : _r = captures[0];
3352 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 678, __FILE__, __LINE__, true);
3353 : 4 : return _r;
3354 : : }
3355 : : next_after_fail930:;
3356 : : }
3357 : : }
3358 : : return NULL_TREE;
3359 : : }
3360 : :
3361 : : tree
3362 : 0 : generic_simplify_432 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3363 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3364 : : const enum tree_code ARG_UNUSED (eqne))
3365 : : {
3366 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3367 : 0 : if (eqne == EQ_EXPR
3368 : : )
3369 : : {
3370 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail954;
3371 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail954;
3372 : 0 : {
3373 : 0 : tree _r;
3374 : 0 : _r = constant_boolean_node (false, type);
3375 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
3376 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3377 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 677, __FILE__, __LINE__, true);
3378 : 0 : return _r;
3379 : : }
3380 : : next_after_fail954:;
3381 : : }
3382 : : else
3383 : : {
3384 : 0 : if (eqne == NE_EXPR
3385 : : )
3386 : : {
3387 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail955;
3388 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail955;
3389 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail955;
3390 : 0 : {
3391 : 0 : tree _r;
3392 : 0 : _r = captures[0];
3393 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 678, __FILE__, __LINE__, true);
3394 : 0 : return _r;
3395 : : }
3396 : : next_after_fail955:;
3397 : : }
3398 : : }
3399 : : return NULL_TREE;
3400 : : }
3401 : :
3402 : : tree
3403 : 0 : generic_simplify_436 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3404 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3405 : : const enum tree_code ARG_UNUSED (code2),
3406 : : const enum tree_code ARG_UNUSED (code1))
3407 : : {
3408 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3409 : 0 : if ((TREE_CODE (captures[2]) == INTEGER_CST
3410 : 0 : && TREE_CODE (captures[5]) == INTEGER_CST)
3411 : 0 : || ((INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
3412 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[2]))
3413 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, code2))
3414 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[2])))
3415 : 0 : && bitwise_equal_p (captures[2], captures[5]))
3416 : : )
3417 : : {
3418 : 0 : {
3419 : 0 : bool one_before = false;
3420 : 0 : bool one_after = false;
3421 : 0 : int cmp = 0;
3422 : 0 : bool allbits = true;
3423 : 0 : if (TREE_CODE (captures[2]) == INTEGER_CST
3424 : 0 : && TREE_CODE (captures[5]) == INTEGER_CST)
3425 : : {
3426 : 0 : allbits = TYPE_PRECISION (TREE_TYPE (captures[2])) <= TYPE_PRECISION (TREE_TYPE (captures[5]));
3427 : 0 : auto t1 = wi::to_wide (fold_convert (TREE_TYPE (captures[5]), captures[2]));
3428 : 0 : auto t2 = wi::to_wide (captures[5]);
3429 : 0 : cmp = wi::cmp (t1, t2, TYPE_SIGN (TREE_TYPE (captures[5])));
3430 : 0 : if (cmp < 0
3431 : 0 : && t1 == t2 - 1)
3432 : : one_before = true;
3433 : 0 : if (cmp > 0
3434 : 0 : && t1 == t2 + 1)
3435 : : one_after = true;
3436 : : }
3437 : 0 : bool val;
3438 : 0 : switch (code2)
3439 : : {
3440 : 0 : case EQ_EXPR: val = (cmp == 0); break;
3441 : 0 : case NE_EXPR: val = (cmp != 0); break;
3442 : 0 : case LT_EXPR: val = (cmp < 0); break;
3443 : 0 : case GT_EXPR: val = (cmp > 0); break;
3444 : 0 : case LE_EXPR: val = (cmp <= 0); break;
3445 : 0 : case GE_EXPR: val = (cmp >= 0); break;
3446 : 0 : default: gcc_unreachable ();
3447 : : }
3448 : 0 : if (code1 == EQ_EXPR && val
3449 : : )
3450 : : {
3451 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail960;
3452 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail960;
3453 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail960;
3454 : 0 : {
3455 : 0 : tree _r;
3456 : 0 : _r = captures[0];
3457 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 681, __FILE__, __LINE__, true);
3458 : 0 : return _r;
3459 : : }
3460 : : next_after_fail960:;
3461 : : }
3462 : : else
3463 : : {
3464 : 0 : if (code1 == EQ_EXPR && !val
3465 : : )
3466 : : {
3467 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail961;
3468 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail961;
3469 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail961;
3470 : 0 : {
3471 : 0 : tree _r;
3472 : 0 : _r = constant_boolean_node (false, type);
3473 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
3474 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3475 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 682, __FILE__, __LINE__, true);
3476 : 0 : return _r;
3477 : : }
3478 : : next_after_fail961:;
3479 : : }
3480 : : else
3481 : : {
3482 : 0 : if (code1 == NE_EXPR && !val && allbits
3483 : : )
3484 : : {
3485 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail962;
3486 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail962;
3487 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail962;
3488 : 0 : {
3489 : 0 : tree _r;
3490 : 0 : _r = captures[3];
3491 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 683, __FILE__, __LINE__, true);
3492 : 0 : return _r;
3493 : : }
3494 : : next_after_fail962:;
3495 : : }
3496 : : else
3497 : : {
3498 : 0 : if ((code1 == NE_EXPR
3499 : 0 : && code2 == GE_EXPR
3500 : 0 : && cmp == 0
3501 : 0 : && allbits)
3502 : 0 : && ((VECTOR_BOOLEAN_TYPE_P (type)
3503 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, GT_EXPR))
3504 : 0 : || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
3505 : : )
3506 : : {
3507 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail963;
3508 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail963;
3509 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail963;
3510 : 0 : {
3511 : 0 : tree res_op0;
3512 : 0 : res_op0 = captures[4];
3513 : 0 : tree res_op1;
3514 : 0 : {
3515 : 0 : tree _o1[1], _r1;
3516 : 0 : _o1[0] = captures[2];
3517 : 0 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
3518 : : {
3519 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
3520 : : }
3521 : : else
3522 : : _r1 = _o1[0];
3523 : 0 : res_op1 = _r1;
3524 : : }
3525 : 0 : tree _r;
3526 : 0 : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
3527 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 684, __FILE__, __LINE__, true);
3528 : 0 : return _r;
3529 : : }
3530 : : next_after_fail963:;
3531 : : }
3532 : : else
3533 : : {
3534 : 0 : if ((code1 == NE_EXPR
3535 : 0 : && code2 == LE_EXPR
3536 : 0 : && cmp == 0
3537 : 0 : && allbits)
3538 : 0 : && ((VECTOR_BOOLEAN_TYPE_P (type)
3539 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, LT_EXPR))
3540 : 0 : || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
3541 : : )
3542 : : {
3543 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail964;
3544 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail964;
3545 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail964;
3546 : 0 : {
3547 : 0 : tree res_op0;
3548 : 0 : res_op0 = captures[4];
3549 : 0 : tree res_op1;
3550 : 0 : {
3551 : 0 : tree _o1[1], _r1;
3552 : 0 : _o1[0] = captures[2];
3553 : 0 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
3554 : : {
3555 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
3556 : : }
3557 : : else
3558 : : _r1 = _o1[0];
3559 : 0 : res_op1 = _r1;
3560 : : }
3561 : 0 : tree _r;
3562 : 0 : _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
3563 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 685, __FILE__, __LINE__, true);
3564 : 0 : return _r;
3565 : : }
3566 : : next_after_fail964:;
3567 : : }
3568 : : else
3569 : : {
3570 : 0 : if ((code1 == NE_EXPR
3571 : 0 : && code2 == GT_EXPR
3572 : : && one_after
3573 : 0 : && allbits)
3574 : 0 : && ((VECTOR_BOOLEAN_TYPE_P (type)
3575 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, GT_EXPR))
3576 : 0 : || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
3577 : : )
3578 : : {
3579 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail965;
3580 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail965;
3581 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail965;
3582 : 0 : {
3583 : 0 : tree res_op0;
3584 : 0 : res_op0 = captures[4];
3585 : 0 : tree res_op1;
3586 : 0 : {
3587 : 0 : tree _o1[1], _r1;
3588 : 0 : _o1[0] = captures[2];
3589 : 0 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
3590 : : {
3591 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
3592 : : }
3593 : : else
3594 : : _r1 = _o1[0];
3595 : 0 : res_op1 = _r1;
3596 : : }
3597 : 0 : tree _r;
3598 : 0 : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
3599 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 686, __FILE__, __LINE__, true);
3600 : 0 : return _r;
3601 : : }
3602 : : next_after_fail965:;
3603 : : }
3604 : : else
3605 : : {
3606 : 0 : if ((code1 == NE_EXPR
3607 : 0 : && code2 == LT_EXPR
3608 : : && one_before
3609 : 0 : && allbits)
3610 : 0 : && ((VECTOR_BOOLEAN_TYPE_P (type)
3611 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, LT_EXPR))
3612 : 0 : || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
3613 : : )
3614 : : {
3615 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail966;
3616 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail966;
3617 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail966;
3618 : 0 : {
3619 : 0 : tree res_op0;
3620 : 0 : res_op0 = captures[4];
3621 : 0 : tree res_op1;
3622 : 0 : {
3623 : 0 : tree _o1[1], _r1;
3624 : 0 : _o1[0] = captures[2];
3625 : 0 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
3626 : : {
3627 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
3628 : : }
3629 : : else
3630 : : _r1 = _o1[0];
3631 : 0 : res_op1 = _r1;
3632 : : }
3633 : 0 : tree _r;
3634 : 0 : _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
3635 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 687, __FILE__, __LINE__, true);
3636 : 0 : return _r;
3637 : : }
3638 : : next_after_fail966:;
3639 : : }
3640 : : }
3641 : : }
3642 : : }
3643 : : }
3644 : : }
3645 : : }
3646 : : }
3647 : : }
3648 : : return NULL_TREE;
3649 : : }
3650 : :
3651 : : tree
3652 : 3806 : generic_simplify_467 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3653 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
3654 : : {
3655 : 3806 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3656 : 3806 : if (!TYPE_SATURATING (type)
3657 : : )
3658 : : {
3659 : 3771 : if (!TYPE_OVERFLOW_SANITIZED (type)
3660 : 7564 : && !TYPE_OVERFLOW_SANITIZED (TREE_TYPE (captures[0]))
3661 : : )
3662 : : {
3663 : 3793 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1010;
3664 : 3793 : {
3665 : 3793 : tree res_op0;
3666 : 3793 : {
3667 : 3793 : tree _o1[1], _r1;
3668 : 3793 : _o1[0] = captures[0];
3669 : 3793 : if (TREE_TYPE (_o1[0]) != type)
3670 : : {
3671 : 0 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
3672 : : }
3673 : : else
3674 : : _r1 = _o1[0];
3675 : 3793 : res_op0 = _r1;
3676 : : }
3677 : 3793 : tree _r;
3678 : 3793 : _r = non_lvalue_loc (loc, res_op0);
3679 : 3793 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 721, __FILE__, __LINE__, true);
3680 : 3793 : return _r;
3681 : : }
3682 : 0 : next_after_fail1010:;
3683 : : }
3684 : : }
3685 : : return NULL_TREE;
3686 : : }
3687 : :
3688 : : tree
3689 : 0 : generic_simplify_475 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3690 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
3691 : : {
3692 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3693 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1020;
3694 : 0 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1020;
3695 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1020;
3696 : 0 : {
3697 : 0 : tree _r;
3698 : 0 : _r = captures[2];
3699 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 730, __FILE__, __LINE__, true);
3700 : : return _r;
3701 : : }
3702 : : next_after_fail1020:;
3703 : : return NULL_TREE;
3704 : : }
3705 : :
3706 : : tree
3707 : 0 : generic_simplify_481 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3708 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
3709 : : const enum tree_code ARG_UNUSED (cmp))
3710 : : {
3711 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3712 : 0 : if (INTEGRAL_TYPE_P (type)
3713 : : )
3714 : : {
3715 : 0 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1029;
3716 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1029;
3717 : 0 : {
3718 : 0 : tree _r;
3719 : 0 : _r = captures[2];
3720 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
3721 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3722 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 739, __FILE__, __LINE__, true);
3723 : 0 : return _r;
3724 : : }
3725 : : next_after_fail1029:;
3726 : : }
3727 : : return NULL_TREE;
3728 : : }
3729 : :
3730 : : tree
3731 : 0 : generic_simplify_486 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3732 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
3733 : : const enum tree_code ARG_UNUSED (op))
3734 : : {
3735 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3736 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1034;
3737 : 0 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1034;
3738 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1034;
3739 : 0 : {
3740 : 0 : tree _r;
3741 : 0 : _r = captures[2];
3742 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 744, __FILE__, __LINE__, true);
3743 : : return _r;
3744 : : }
3745 : : next_after_fail1034:;
3746 : : return NULL_TREE;
3747 : : }
3748 : :
3749 : : tree
3750 : 0 : generic_simplify_491 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3751 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
3752 : : const enum tree_code ARG_UNUSED (cmp))
3753 : : {
3754 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3755 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1040;
3756 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1040;
3757 : 0 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1040;
3758 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1040;
3759 : 0 : {
3760 : 0 : tree _r;
3761 : 0 : _r = captures[0];
3762 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 750, __FILE__, __LINE__, true);
3763 : : return _r;
3764 : : }
3765 : : next_after_fail1040:;
3766 : : return NULL_TREE;
3767 : : }
3768 : :
3769 : : tree
3770 : 0 : generic_simplify_497 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3771 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3772 : : const enum tree_code ARG_UNUSED (minmax))
3773 : : {
3774 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3775 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1048;
3776 : 0 : {
3777 : 0 : tree _r;
3778 : 0 : _r = captures[0];
3779 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 757, __FILE__, __LINE__, true);
3780 : : return _r;
3781 : : }
3782 : 0 : next_after_fail1048:;
3783 : 0 : return NULL_TREE;
3784 : : }
3785 : :
3786 : : tree
3787 : 2 : generic_simplify_502 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3788 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3789 : : const enum tree_code ARG_UNUSED (minmax),
3790 : : const enum tree_code ARG_UNUSED (cmp))
3791 : : {
3792 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3793 : 2 : {
3794 : 2 : poly_int64 off0, off1;
3795 : 2 : tree base0, base1;
3796 : 2 : int equal = address_compare (cmp, TREE_TYPE (captures[0]), captures[1], captures[3], base0, base1,
3797 : : off0, off1,
3798 : : 1
3799 : : );
3800 : 2 : if (equal == 1
3801 : : )
3802 : : {
3803 : 0 : if (minmax == MIN_EXPR
3804 : : )
3805 : : {
3806 : 0 : if (known_le (off0, off1)
3807 : : )
3808 : : {
3809 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1053;
3810 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1053;
3811 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1053;
3812 : 0 : {
3813 : 0 : tree _r;
3814 : 0 : _r = captures[0];
3815 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 761, __FILE__, __LINE__, true);
3816 : 0 : return _r;
3817 : : }
3818 : 2 : next_after_fail1053:;
3819 : : }
3820 : : else
3821 : : {
3822 : 0 : if (known_gt (off0, off1)
3823 : : )
3824 : : {
3825 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1054;
3826 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1054;
3827 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1054;
3828 : 0 : {
3829 : 0 : tree _r;
3830 : 0 : _r = captures[2];
3831 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 762, __FILE__, __LINE__, true);
3832 : 0 : return _r;
3833 : : }
3834 : 2 : next_after_fail1054:;
3835 : : }
3836 : : }
3837 : : }
3838 : : else
3839 : : {
3840 : 0 : if (known_ge (off0, off1)
3841 : : )
3842 : : {
3843 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1055;
3844 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1055;
3845 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1055;
3846 : 0 : {
3847 : 0 : tree _r;
3848 : 0 : _r = captures[0];
3849 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 763, __FILE__, __LINE__, true);
3850 : 0 : return _r;
3851 : : }
3852 : 2 : next_after_fail1055:;
3853 : : }
3854 : : else
3855 : : {
3856 : 0 : if (known_lt (off0, off1)
3857 : : )
3858 : : {
3859 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1056;
3860 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1056;
3861 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1056;
3862 : 0 : {
3863 : 0 : tree _r;
3864 : 0 : _r = captures[2];
3865 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 764, __FILE__, __LINE__, true);
3866 : 0 : return _r;
3867 : : }
3868 : 2 : next_after_fail1056:;
3869 : : }
3870 : : }
3871 : : }
3872 : : }
3873 : : }
3874 : 2 : return NULL_TREE;
3875 : : }
3876 : :
3877 : : tree
3878 : 5779 : generic_simplify_516 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3879 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
3880 : : {
3881 : 5779 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3882 : 11558 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
3883 : 5779 : && TYPE_MAX_VALUE (TREE_TYPE (captures[1]))
3884 : 5779 : && types_match (TREE_TYPE (captures[1]), TREE_TYPE (TREE_TYPE (captures[0])))
3885 : 8068 : && int_fits_type_p (captures[2], TREE_TYPE (captures[1]))
3886 : : )
3887 : : {
3888 : 1897 : if (TYPE_UNSIGNED (TREE_TYPE (captures[1]))
3889 : : )
3890 : : {
3891 : 929 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1080;
3892 : 929 : {
3893 : 929 : tree res_op0;
3894 : 929 : {
3895 : 929 : tree _o1[2], _r1;
3896 : 929 : _o1[0] = captures[1];
3897 : 929 : {
3898 : 929 : tree _o2[2], _r2;
3899 : 929 : _o2[0] = TYPE_MAX_VALUE (TREE_TYPE (captures[1]));
3900 : 929 : _o2[1] = captures[2];
3901 : 929 : _r2 = fold_build2_loc (loc, TRUNC_DIV_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
3902 : 929 : if (EXPR_P (_r2))
3903 : 0 : goto next_after_fail1080;
3904 : 929 : _o1[1] = _r2;
3905 : : }
3906 : 929 : _r1 = fold_build2_loc (loc, GT_EXPR, boolean_type_node, _o1[0], _o1[1]);
3907 : 929 : res_op0 = _r1;
3908 : : }
3909 : 929 : tree _r;
3910 : 929 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3911 : 929 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 776, __FILE__, __LINE__, true);
3912 : 929 : return _r;
3913 : : }
3914 : : next_after_fail1080:;
3915 : : }
3916 : : else
3917 : : {
3918 : 968 : if (TYPE_MIN_VALUE (TREE_TYPE (captures[1]))
3919 : : )
3920 : : {
3921 : 968 : if (integer_minus_onep (captures[2])
3922 : : )
3923 : : {
3924 : 56 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1081;
3925 : 56 : {
3926 : 56 : tree res_op0;
3927 : 56 : {
3928 : 56 : tree _o1[2], _r1;
3929 : 56 : _o1[0] = captures[1];
3930 : 56 : _o1[1] = TYPE_MIN_VALUE (TREE_TYPE (captures[1]));
3931 : 56 : _r1 = fold_build2_loc (loc, EQ_EXPR, boolean_type_node, _o1[0], _o1[1]);
3932 : 56 : res_op0 = _r1;
3933 : : }
3934 : 56 : tree _r;
3935 : 56 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3936 : 56 : if (TREE_SIDE_EFFECTS (captures[2]))
3937 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3938 : 56 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 777, __FILE__, __LINE__, true);
3939 : 56 : return _r;
3940 : : }
3941 : 0 : next_after_fail1081:;
3942 : : }
3943 : : else
3944 : : {
3945 : 912 : {
3946 : 912 : tree div = fold_convert (TREE_TYPE (captures[1]), captures[2]);
3947 : 1824 : tree lo = int_const_binop (TRUNC_DIV_EXPR,
3948 : 912 : TYPE_MIN_VALUE (TREE_TYPE (captures[1])), div);
3949 : 1824 : tree hi = int_const_binop (TRUNC_DIV_EXPR,
3950 : 912 : TYPE_MAX_VALUE (TREE_TYPE (captures[1])), div);
3951 : 912 : tree etype = range_check_type (TREE_TYPE (captures[1]));
3952 : 912 : if (etype)
3953 : : {
3954 : 912 : if (wi::neg_p (wi::to_wide (div)))
3955 : 88 : std::swap (lo, hi);
3956 : 912 : lo = fold_convert (etype, lo);
3957 : 912 : hi = fold_convert (etype, hi);
3958 : 912 : hi = int_const_binop (MINUS_EXPR, hi, lo);
3959 : : }
3960 : 912 : if (etype
3961 : : )
3962 : : {
3963 : 912 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1082;
3964 : 912 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1082;
3965 : 912 : {
3966 : 912 : tree res_op0;
3967 : 912 : {
3968 : 912 : tree _o1[2], _r1;
3969 : 912 : {
3970 : 912 : tree _o2[2], _r2;
3971 : 912 : {
3972 : 912 : tree _o3[1], _r3;
3973 : 912 : _o3[0] = captures[1];
3974 : 912 : if (TREE_TYPE (_o3[0]) != etype)
3975 : : {
3976 : 912 : _r3 = fold_build1_loc (loc, NOP_EXPR, etype, _o3[0]);
3977 : : }
3978 : : else
3979 : : _r3 = _o3[0];
3980 : 912 : _o2[0] = _r3;
3981 : : }
3982 : 912 : _o2[1] = lo;
3983 : 912 : _r2 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
3984 : 912 : _o1[0] = _r2;
3985 : : }
3986 : 912 : _o1[1] = hi;
3987 : 912 : _r1 = fold_build2_loc (loc, GT_EXPR, boolean_type_node, _o1[0], _o1[1]);
3988 : 912 : res_op0 = _r1;
3989 : : }
3990 : 912 : tree _r;
3991 : 912 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3992 : 912 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 778, __FILE__, __LINE__, true);
3993 : 912 : return _r;
3994 : : }
3995 : : next_after_fail1082:;
3996 : : }
3997 : : }
3998 : : }
3999 : : }
4000 : : }
4001 : : }
4002 : : return NULL_TREE;
4003 : : }
4004 : :
4005 : : tree
4006 : 0 : generic_simplify_545 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4007 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4008 : : const combined_fn ARG_UNUSED (sins),
4009 : : const combined_fn ARG_UNUSED (atans),
4010 : : const combined_fn ARG_UNUSED (sqrts),
4011 : : const combined_fn ARG_UNUSED (copysigns))
4012 : : {
4013 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4014 : 0 : {
4015 : 0 : REAL_VALUE_TYPE r_cst;
4016 : 0 : build_sinatan_real (&r_cst, type);
4017 : 0 : tree t_cst = build_real (type, r_cst);
4018 : 0 : tree t_one = build_one_cst (type);
4019 : 0 : if (SCALAR_FLOAT_TYPE_P (type)
4020 : : )
4021 : : {
4022 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1111;
4023 : 0 : {
4024 : 0 : if (! tree_invariant_p (captures[1])) goto next_after_fail1111;
4025 : 0 : tree res_op0;
4026 : 0 : {
4027 : 0 : tree _o1[2], _r1;
4028 : 0 : {
4029 : 0 : tree _o2[1], _r2;
4030 : 0 : _o2[0] = unshare_expr (captures[1]);
4031 : 0 : _r2 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
4032 : 0 : _o1[0] = _r2;
4033 : : }
4034 : 0 : _o1[1] = t_cst;
4035 : 0 : _r1 = fold_build2_loc (loc, LT_EXPR, boolean_type_node, _o1[0], _o1[1]);
4036 : 0 : res_op0 = _r1;
4037 : : }
4038 : 0 : tree res_op1;
4039 : 0 : {
4040 : 0 : tree _o1[2], _r1;
4041 : 0 : _o1[0] = unshare_expr (captures[1]);
4042 : 0 : {
4043 : 0 : tree _o2[1], _r2;
4044 : 0 : {
4045 : 0 : tree _o3[2], _r3;
4046 : 0 : {
4047 : 0 : tree _o4[2], _r4;
4048 : 0 : _o4[0] = unshare_expr (captures[1]);
4049 : 0 : _o4[1] = unshare_expr (captures[1]);
4050 : 0 : _r4 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o4[0]), _o4[0], _o4[1]);
4051 : 0 : _o3[0] = _r4;
4052 : : }
4053 : 0 : _o3[1] = t_one;
4054 : 0 : _r3 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
4055 : 0 : _o2[0] = _r3;
4056 : : }
4057 : 0 : _r2 = maybe_build_call_expr_loc (loc, sqrts, TREE_TYPE (_o2[0]), 1, _o2[0]);
4058 : 0 : if (!_r2)
4059 : 0 : goto next_after_fail1111;
4060 : 0 : _o1[1] = _r2;
4061 : : }
4062 : 0 : _r1 = fold_build2_loc (loc, RDIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4063 : 0 : res_op1 = _r1;
4064 : : }
4065 : 0 : tree res_op2;
4066 : 0 : {
4067 : 0 : tree _o1[2], _r1;
4068 : 0 : _o1[0] = t_one;
4069 : 0 : _o1[1] = captures[1];
4070 : 0 : _r1 = maybe_build_call_expr_loc (loc, copysigns, TREE_TYPE (_o1[0]), 2, _o1[0], _o1[1]);
4071 : 0 : if (!_r1)
4072 : 0 : goto next_after_fail1111;
4073 : 0 : res_op2 = _r1;
4074 : : }
4075 : 0 : tree _r;
4076 : 0 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
4077 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 802, __FILE__, __LINE__, true);
4078 : 0 : return _r;
4079 : : }
4080 : 0 : next_after_fail1111:;
4081 : : }
4082 : : }
4083 : 0 : return NULL_TREE;
4084 : : }
4085 : :
4086 : : tree
4087 : 0 : generic_simplify_571 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4088 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
4089 : : {
4090 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4091 : 0 : if (canonicalize_math_after_vectorization_p ()
4092 : : )
4093 : : {
4094 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1137;
4095 : : {
4096 : : tree res_op0;
4097 : : res_op0 = captures[0];
4098 : : tree res_op1;
4099 : : res_op1 = captures[1];
4100 : : tree res_op2;
4101 : : res_op2 = captures[2];
4102 : : tree _r;
4103 : : _r = maybe_build_call_expr_loc (loc, CFN_FMA, type, 3, res_op0, res_op1, res_op2);
4104 : : if (!_r)
4105 : : goto next_after_fail1137;
4106 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 828, __FILE__, __LINE__, true);
4107 : : return _r;
4108 : : }
4109 : 0 : next_after_fail1137:;
4110 : : }
4111 : 0 : return NULL_TREE;
4112 : : }
4113 : :
4114 : : tree
4115 : 0 : generic_simplify_581 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4116 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4117 : : const combined_fn ARG_UNUSED (PARITY))
4118 : : {
4119 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4120 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1148;
4121 : 0 : {
4122 : 0 : tree res_op0;
4123 : 0 : res_op0 = captures[0];
4124 : 0 : tree _r;
4125 : 0 : _r = maybe_build_call_expr_loc (loc, PARITY, type, 1, res_op0);
4126 : 0 : if (!_r)
4127 : 0 : goto next_after_fail1148;
4128 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 834, __FILE__, __LINE__, true);
4129 : : return _r;
4130 : : }
4131 : : next_after_fail1148:;
4132 : : return NULL_TREE;
4133 : : }
4134 : :
4135 : : tree
4136 : 0 : generic_simplify_586 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4137 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4138 : : const combined_fn ARG_UNUSED (reduc))
4139 : : {
4140 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4141 : 0 : {
4142 : 0 : int i = single_nonzero_element (captures[1]);
4143 : 0 : if (i >= 0
4144 : : )
4145 : : {
4146 : 0 : {
4147 : 0 : tree elt = vector_cst_elt (captures[1], i);
4148 : 0 : tree elt_type = TREE_TYPE (elt);
4149 : 0 : unsigned int elt_bits = tree_to_uhwi (TYPE_SIZE (elt_type));
4150 : 0 : tree size = bitsize_int (elt_bits);
4151 : 0 : tree pos = bitsize_int (elt_bits * i);
4152 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1153;
4153 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1153;
4154 : 0 : {
4155 : 0 : tree res_op0;
4156 : 0 : {
4157 : 0 : tree _o1[2], _r1;
4158 : 0 : {
4159 : 0 : tree _o2[3], _r2;
4160 : 0 : _o2[0] = captures[0];
4161 : 0 : _o2[1] = size;
4162 : 0 : _o2[2] = pos;
4163 : 0 : _r2 = fold_build3_loc (loc, BIT_FIELD_REF, elt_type, _o2[0], _o2[1], _o2[2]);
4164 : 0 : _o1[0] = _r2;
4165 : : }
4166 : 0 : _o1[1] = elt;
4167 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, elt_type, _o1[0], _o1[1]);
4168 : 0 : res_op0 = _r1;
4169 : : }
4170 : 0 : tree _r;
4171 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
4172 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 837, __FILE__, __LINE__, true);
4173 : 0 : return _r;
4174 : : }
4175 : : next_after_fail1153:;
4176 : : }
4177 : : }
4178 : : }
4179 : : return NULL_TREE;
4180 : : }
4181 : :
4182 : : tree
4183 : 518137 : generic_simplify_FIX_TRUNC_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0)
4184 : : {
4185 : 518137 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4186 : 518137 : {
4187 : 518137 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4188 : 1036274 : if ((
4189 : :
4190 : : && useless_type_conversion_p (type, TREE_TYPE (captures[0])))
4191 : : || (
4192 : : 1
4193 : 518137 : && type == TREE_TYPE (captures[0]))
4194 : : )
4195 : : {
4196 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1231;
4197 : 0 : {
4198 : 0 : tree _r;
4199 : 0 : _r = captures[0];
4200 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 851, __FILE__, __LINE__, true);
4201 : 0 : return _r;
4202 : : }
4203 : 0 : next_after_fail1231:;
4204 : : }
4205 : : }
4206 : 518137 : switch (TREE_CODE (_p0))
4207 : : {
4208 : 14978 : CASE_CONVERT:
4209 : 14978 : {
4210 : 14978 : tree _q20 = TREE_OPERAND (_p0, 0);
4211 : 14978 : {
4212 : 14978 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
4213 : 14978 : {
4214 : 14978 : tree inside_type = TREE_TYPE (captures[1]);
4215 : 14978 : tree inter_type = TREE_TYPE (captures[0]);
4216 : 14978 : int inside_int = INTEGRAL_TYPE_P (inside_type);
4217 : 14978 : int inside_ptr = POINTER_TYPE_P (inside_type);
4218 : 14978 : int inside_float = FLOAT_TYPE_P (inside_type);
4219 : 14978 : int inside_vec = VECTOR_TYPE_P (inside_type);
4220 : 14978 : unsigned int inside_prec = element_precision (inside_type);
4221 : 14978 : int inside_unsignedp = TYPE_UNSIGNED (inside_type);
4222 : 14978 : int inter_int = INTEGRAL_TYPE_P (inter_type);
4223 : 14978 : int inter_ptr = POINTER_TYPE_P (inter_type);
4224 : 14978 : int inter_float = FLOAT_TYPE_P (inter_type);
4225 : 14978 : int inter_vec = VECTOR_TYPE_P (inter_type);
4226 : 14978 : unsigned int inter_prec = element_precision (inter_type);
4227 : 14978 : int inter_unsignedp = TYPE_UNSIGNED (inter_type);
4228 : 14978 : int final_int = INTEGRAL_TYPE_P (type);
4229 : 14978 : int final_ptr = POINTER_TYPE_P (type);
4230 : 14978 : int final_float = FLOAT_TYPE_P (type);
4231 : 14978 : int final_vec = VECTOR_TYPE_P (type);
4232 : 14978 : unsigned int final_prec = element_precision (type);
4233 : 14978 : int final_unsignedp = TYPE_UNSIGNED (type);
4234 : 14978 : if (((
4235 : :
4236 : : && useless_type_conversion_p (type, inside_type))
4237 : : || (
4238 : : 1
4239 : 14978 : && TYPE_MAIN_VARIANT (type) == TYPE_MAIN_VARIANT (inside_type)))
4240 : 0 : && (((inter_int || inter_ptr) && final_int)
4241 : 0 : || (inter_float && final_float))
4242 : 14978 : && inter_prec >= final_prec
4243 : : )
4244 : : {
4245 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1232;
4246 : 0 : {
4247 : 0 : tree res_op0;
4248 : 0 : res_op0 = captures[1];
4249 : 0 : tree _r;
4250 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4251 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 852, __FILE__, __LINE__, true);
4252 : 0 : return _r;
4253 : : }
4254 : 0 : next_after_fail1232:;
4255 : : }
4256 : : else
4257 : : {
4258 : 14978 : if (((inter_int && inside_int) || (inter_float && inside_float))
4259 : 14978 : && (final_int || final_float)
4260 : 14978 : && inter_prec >= inside_prec
4261 : 14760 : && (inter_float || inter_unsignedp == inside_unsignedp)
4262 : : )
4263 : : {
4264 : 14760 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1233;
4265 : 14760 : {
4266 : 14760 : tree res_op0;
4267 : 14760 : res_op0 = captures[1];
4268 : 14760 : tree _r;
4269 : 14760 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4270 : 14760 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 853, __FILE__, __LINE__, true);
4271 : 14760 : return _r;
4272 : : }
4273 : 0 : next_after_fail1233:;
4274 : 0 : }
4275 : : else
4276 : : {
4277 : 218 : if (inside_int && inter_int && final_int
4278 : 0 : && ((inside_prec < inter_prec && inter_prec < final_prec
4279 : 0 : && inside_unsignedp && !inter_unsignedp)
4280 : 0 : || final_prec == inter_prec
4281 : 0 : || (inside_prec < inter_prec && inter_prec > final_prec
4282 : 0 : && !inside_unsignedp && inter_unsignedp))
4283 : : )
4284 : : {
4285 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1234;
4286 : 0 : {
4287 : 0 : tree res_op0;
4288 : 0 : res_op0 = captures[1];
4289 : 0 : tree _r;
4290 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4291 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 854, __FILE__, __LINE__, true);
4292 : 0 : return _r;
4293 : : }
4294 : 0 : next_after_fail1234:;
4295 : 0 : }
4296 : : else
4297 : : {
4298 : 218 : if (! inside_float && ! inter_float && ! final_float
4299 : : && ! inside_vec && ! inter_vec && ! final_vec
4300 : 0 : && (inter_prec >= inside_prec || inter_prec >= final_prec)
4301 : 0 : && ! (inside_int && inter_int
4302 : 0 : && inter_unsignedp != inside_unsignedp
4303 : 0 : && inter_prec < final_prec)
4304 : 0 : && ((inter_unsignedp && inter_prec > inside_prec)
4305 : 0 : == (final_unsignedp && final_prec > inter_prec))
4306 : 0 : && ! (inside_ptr && inter_prec != final_prec)
4307 : 0 : && ! (final_ptr && inside_prec != inter_prec)
4308 : : )
4309 : : {
4310 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1235;
4311 : 0 : {
4312 : 0 : tree res_op0;
4313 : 0 : res_op0 = captures[1];
4314 : 0 : tree _r;
4315 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4316 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 855, __FILE__, __LINE__, true);
4317 : 0 : return _r;
4318 : : }
4319 : 0 : next_after_fail1235:;
4320 : 0 : }
4321 : : else
4322 : : {
4323 : 218 : if (inside_int && inter_int && final_int
4324 : 0 : && final_prec <= inside_prec
4325 : 0 : && inter_prec >= inside_prec
4326 : : )
4327 : : {
4328 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1236;
4329 : 0 : {
4330 : 0 : tree res_op0;
4331 : 0 : res_op0 = captures[1];
4332 : 0 : tree _r;
4333 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4334 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 856, __FILE__, __LINE__, true);
4335 : 0 : return _r;
4336 : : }
4337 : 0 : next_after_fail1236:;
4338 : 0 : }
4339 : : else
4340 : : {
4341 : : if (0
4342 : : && final_int && inter_int && inside_int
4343 : : && final_prec >= inside_prec
4344 : : && inside_prec > inter_prec
4345 : : && inter_unsignedp
4346 : : )
4347 : : {
4348 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1237;
4349 : : {
4350 : : tree res_op0;
4351 : : {
4352 : : tree _o1[2], _r1;
4353 : : _o1[0] = captures[1];
4354 : : _o1[1] = wide_int_to_tree
4355 : : (inside_type,
4356 : : wi::mask (inter_prec, false,
4357 : : TYPE_PRECISION (inside_type)));
4358 : : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4359 : : res_op0 = _r1;
4360 : : }
4361 : : tree _r;
4362 : : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4363 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 857, __FILE__, __LINE__, true);
4364 : : return _r;
4365 : : }
4366 : : next_after_fail1237:;
4367 : : }
4368 : : else
4369 : : {
4370 : : if (0
4371 : : && inside_int && inter_float && final_int &&
4372 : : (unsigned) significand_size (TYPE_MODE (inter_type))
4373 : : >= inside_prec - !inside_unsignedp
4374 : : )
4375 : : {
4376 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1238;
4377 : : {
4378 : : tree res_op0;
4379 : : res_op0 = captures[1];
4380 : : tree _r;
4381 : : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4382 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 858, __FILE__, __LINE__, true);
4383 : : return _r;
4384 : : }
4385 : : next_after_fail1238:;
4386 : : }
4387 : : }
4388 : : }
4389 : : }
4390 : : }
4391 : : }
4392 : : }
4393 : : }
4394 : : }
4395 : 218 : break;
4396 : : }
4397 : 589 : case FLOAT_EXPR:
4398 : 589 : {
4399 : 589 : tree _q20 = TREE_OPERAND (_p0, 0);
4400 : 589 : {
4401 : 589 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
4402 : 589 : {
4403 : 589 : tree inside_type = TREE_TYPE (captures[1]);
4404 : 589 : tree inter_type = TREE_TYPE (captures[0]);
4405 : 589 : int inside_int = INTEGRAL_TYPE_P (inside_type);
4406 : 589 : int inside_ptr = POINTER_TYPE_P (inside_type);
4407 : 589 : int inside_float = FLOAT_TYPE_P (inside_type);
4408 : 589 : int inside_vec = VECTOR_TYPE_P (inside_type);
4409 : 589 : unsigned int inside_prec = element_precision (inside_type);
4410 : 589 : int inside_unsignedp = TYPE_UNSIGNED (inside_type);
4411 : 589 : int inter_int = INTEGRAL_TYPE_P (inter_type);
4412 : 589 : int inter_ptr = POINTER_TYPE_P (inter_type);
4413 : 589 : int inter_float = FLOAT_TYPE_P (inter_type);
4414 : 589 : int inter_vec = VECTOR_TYPE_P (inter_type);
4415 : 589 : unsigned int inter_prec = element_precision (inter_type);
4416 : 589 : int inter_unsignedp = TYPE_UNSIGNED (inter_type);
4417 : 589 : int final_int = INTEGRAL_TYPE_P (type);
4418 : 589 : int final_ptr = POINTER_TYPE_P (type);
4419 : 589 : int final_float = FLOAT_TYPE_P (type);
4420 : 589 : int final_vec = VECTOR_TYPE_P (type);
4421 : 589 : unsigned int final_prec = element_precision (type);
4422 : 589 : int final_unsignedp = TYPE_UNSIGNED (type);
4423 : 589 : if (((
4424 : :
4425 : : && useless_type_conversion_p (type, inside_type))
4426 : : || (
4427 : : 1
4428 : 589 : && TYPE_MAIN_VARIANT (type) == TYPE_MAIN_VARIANT (inside_type)))
4429 : 44 : && (((inter_int || inter_ptr) && final_int)
4430 : 44 : || (inter_float && final_float))
4431 : 589 : && inter_prec >= final_prec
4432 : : )
4433 : : {
4434 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1239;
4435 : 0 : {
4436 : 0 : tree res_op0;
4437 : 0 : res_op0 = captures[1];
4438 : 0 : tree _r;
4439 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4440 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 852, __FILE__, __LINE__, true);
4441 : 0 : return _r;
4442 : : }
4443 : 0 : next_after_fail1239:;
4444 : : }
4445 : : else
4446 : : {
4447 : 589 : if (((inter_int && inside_int) || (inter_float && inside_float))
4448 : 0 : && (final_int || final_float)
4449 : 0 : && inter_prec >= inside_prec
4450 : 0 : && (inter_float || inter_unsignedp == inside_unsignedp)
4451 : : )
4452 : : {
4453 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1240;
4454 : 0 : {
4455 : 0 : tree res_op0;
4456 : 0 : res_op0 = captures[1];
4457 : 0 : tree _r;
4458 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4459 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 853, __FILE__, __LINE__, true);
4460 : 0 : return _r;
4461 : : }
4462 : 0 : next_after_fail1240:;
4463 : 0 : }
4464 : : else
4465 : : {
4466 : 589 : if (inside_int && inter_int && final_int
4467 : 0 : && ((inside_prec < inter_prec && inter_prec < final_prec
4468 : 0 : && inside_unsignedp && !inter_unsignedp)
4469 : 0 : || final_prec == inter_prec
4470 : 0 : || (inside_prec < inter_prec && inter_prec > final_prec
4471 : 0 : && !inside_unsignedp && inter_unsignedp))
4472 : : )
4473 : : {
4474 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1241;
4475 : 0 : {
4476 : 0 : tree res_op0;
4477 : 0 : res_op0 = captures[1];
4478 : 0 : tree _r;
4479 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4480 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 854, __FILE__, __LINE__, true);
4481 : 0 : return _r;
4482 : : }
4483 : 0 : next_after_fail1241:;
4484 : 0 : }
4485 : : else
4486 : : {
4487 : 589 : if (! inside_float && ! inter_float && ! final_float
4488 : : && ! inside_vec && ! inter_vec && ! final_vec
4489 : 0 : && (inter_prec >= inside_prec || inter_prec >= final_prec)
4490 : 0 : && ! (inside_int && inter_int
4491 : 0 : && inter_unsignedp != inside_unsignedp
4492 : 0 : && inter_prec < final_prec)
4493 : 0 : && ((inter_unsignedp && inter_prec > inside_prec)
4494 : 0 : == (final_unsignedp && final_prec > inter_prec))
4495 : 0 : && ! (inside_ptr && inter_prec != final_prec)
4496 : 0 : && ! (final_ptr && inside_prec != inter_prec)
4497 : : )
4498 : : {
4499 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1242;
4500 : 0 : {
4501 : 0 : tree res_op0;
4502 : 0 : res_op0 = captures[1];
4503 : 0 : tree _r;
4504 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4505 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 855, __FILE__, __LINE__, true);
4506 : 0 : return _r;
4507 : : }
4508 : 0 : next_after_fail1242:;
4509 : 0 : }
4510 : : else
4511 : : {
4512 : 589 : if (inside_int && inter_int && final_int
4513 : 0 : && final_prec <= inside_prec
4514 : 0 : && inter_prec >= inside_prec
4515 : : )
4516 : : {
4517 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1243;
4518 : 0 : {
4519 : 0 : tree res_op0;
4520 : 0 : res_op0 = captures[1];
4521 : 0 : tree _r;
4522 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4523 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 856, __FILE__, __LINE__, true);
4524 : 0 : return _r;
4525 : : }
4526 : 0 : next_after_fail1243:;
4527 : 0 : }
4528 : : else
4529 : : {
4530 : : if (0
4531 : : && final_int && inter_int && inside_int
4532 : : && final_prec >= inside_prec
4533 : : && inside_prec > inter_prec
4534 : : && inter_unsignedp
4535 : : )
4536 : : {
4537 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1244;
4538 : : {
4539 : : tree res_op0;
4540 : : {
4541 : : tree _o1[2], _r1;
4542 : : _o1[0] = captures[1];
4543 : : _o1[1] = wide_int_to_tree
4544 : : (inside_type,
4545 : : wi::mask (inter_prec, false,
4546 : : TYPE_PRECISION (inside_type)));
4547 : : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4548 : : res_op0 = _r1;
4549 : : }
4550 : : tree _r;
4551 : : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4552 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 857, __FILE__, __LINE__, true);
4553 : : return _r;
4554 : : }
4555 : : next_after_fail1244:;
4556 : : }
4557 : : else
4558 : : {
4559 : : if (0
4560 : : && inside_int && inter_float && final_int &&
4561 : : (unsigned) significand_size (TYPE_MODE (inter_type))
4562 : : >= inside_prec - !inside_unsignedp
4563 : : )
4564 : : {
4565 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1245;
4566 : : {
4567 : : tree res_op0;
4568 : : res_op0 = captures[1];
4569 : : tree _r;
4570 : : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4571 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 858, __FILE__, __LINE__, true);
4572 : : return _r;
4573 : : }
4574 : : next_after_fail1245:;
4575 : : }
4576 : : }
4577 : : }
4578 : : }
4579 : : }
4580 : : }
4581 : : }
4582 : : }
4583 : : }
4584 : 589 : break;
4585 : : }
4586 : : default:;
4587 : : }
4588 : : return NULL_TREE;
4589 : : }
4590 : :
4591 : : tree
4592 : 697411 : generic_simplify_BIT_XOR_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
4593 : : {
4594 : 697411 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4595 : 697411 : if (integer_zerop (_p1))
4596 : : {
4597 : 536 : {
4598 : 536 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4599 : 536 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1408;
4600 : 536 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1408;
4601 : 536 : {
4602 : 536 : tree res_op0;
4603 : 536 : res_op0 = captures[0];
4604 : 536 : tree _r;
4605 : 536 : _r = non_lvalue_loc (loc, res_op0);
4606 : 536 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 898, __FILE__, __LINE__, true);
4607 : 536 : return _r;
4608 : : }
4609 : : next_after_fail1408:;
4610 : : }
4611 : : }
4612 : 696875 : switch (TREE_CODE (_p0))
4613 : : {
4614 : 2726 : case LSHIFT_EXPR:
4615 : 2726 : {
4616 : 2726 : tree _q20 = TREE_OPERAND (_p0, 0);
4617 : 2726 : tree _q21 = TREE_OPERAND (_p0, 1);
4618 : 2726 : switch (TREE_CODE (_p1))
4619 : : {
4620 : 10 : case LSHIFT_EXPR:
4621 : 10 : {
4622 : 10 : tree _q50 = TREE_OPERAND (_p1, 0);
4623 : 10 : tree _q51 = TREE_OPERAND (_p1, 1);
4624 : 10 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
4625 : : {
4626 : 1 : {
4627 : 1 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
4628 : 1 : tree res = generic_simplify_64 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4629 : 1 : if (res) return res;
4630 : : }
4631 : : }
4632 : : break;
4633 : : }
4634 : : default:;
4635 : : }
4636 : : break;
4637 : : }
4638 : 8925 : case RSHIFT_EXPR:
4639 : 8925 : {
4640 : 8925 : tree _q20 = TREE_OPERAND (_p0, 0);
4641 : 8925 : tree _q21 = TREE_OPERAND (_p0, 1);
4642 : 8925 : switch (TREE_CODE (_p1))
4643 : : {
4644 : 20 : case RSHIFT_EXPR:
4645 : 20 : {
4646 : 20 : tree _q50 = TREE_OPERAND (_p1, 0);
4647 : 20 : tree _q51 = TREE_OPERAND (_p1, 1);
4648 : 20 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
4649 : : {
4650 : 10 : {
4651 : 10 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
4652 : 10 : tree res = generic_simplify_65 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4653 : 10 : if (res) return res;
4654 : : }
4655 : : }
4656 : : break;
4657 : : }
4658 : : default:;
4659 : : }
4660 : : break;
4661 : : }
4662 : 2836 : case BIT_AND_EXPR:
4663 : 2836 : {
4664 : 2836 : tree _q20 = TREE_OPERAND (_p0, 0);
4665 : 2836 : tree _q21 = TREE_OPERAND (_p0, 1);
4666 : 2836 : switch (TREE_CODE (_p1))
4667 : : {
4668 : 354 : case BIT_AND_EXPR:
4669 : 354 : {
4670 : 354 : tree _q50 = TREE_OPERAND (_p1, 0);
4671 : 354 : tree _q51 = TREE_OPERAND (_p1, 1);
4672 : 354 : {
4673 : 354 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q50, _q51 };
4674 : 354 : tree res = generic_simplify_6 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4675 : 354 : if (res) return res;
4676 : : }
4677 : 354 : {
4678 : 354 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q51, _q50 };
4679 : 354 : tree res = generic_simplify_6 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4680 : 354 : if (res) return res;
4681 : : }
4682 : 354 : {
4683 : 354 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q50, _q51 };
4684 : 354 : tree res = generic_simplify_6 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4685 : 354 : if (res) return res;
4686 : : }
4687 : 354 : {
4688 : 354 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q51, _q50 };
4689 : 354 : tree res = generic_simplify_6 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4690 : 354 : if (res) return res;
4691 : : }
4692 : 354 : break;
4693 : : }
4694 : 2836 : default:;
4695 : : }
4696 : 2836 : switch (TREE_CODE (_q21))
4697 : : {
4698 : 41 : case BIT_NOT_EXPR:
4699 : 41 : {
4700 : 41 : tree _q40 = TREE_OPERAND (_q21, 0);
4701 : 41 : switch (TREE_CODE (_p1))
4702 : : {
4703 : 0 : case BIT_NOT_EXPR:
4704 : 0 : {
4705 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
4706 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
4707 : : {
4708 : 0 : {
4709 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
4710 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures);
4711 : 0 : if (res) return res;
4712 : : }
4713 : : }
4714 : : break;
4715 : : }
4716 : : default:;
4717 : : }
4718 : : break;
4719 : : }
4720 : 2836 : default:;
4721 : : }
4722 : 2836 : switch (TREE_CODE (_q20))
4723 : : {
4724 : 90 : case BIT_NOT_EXPR:
4725 : 90 : {
4726 : 90 : tree _q30 = TREE_OPERAND (_q20, 0);
4727 : 90 : switch (TREE_CODE (_p1))
4728 : : {
4729 : 0 : case BIT_NOT_EXPR:
4730 : 0 : {
4731 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
4732 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
4733 : : {
4734 : 0 : {
4735 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q30 };
4736 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures);
4737 : 0 : if (res) return res;
4738 : : }
4739 : : }
4740 : : break;
4741 : : }
4742 : 90 : default:;
4743 : : }
4744 : 90 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
4745 : : {
4746 : 0 : {
4747 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q21 };
4748 : 0 : tree res = generic_simplify_151 (loc, type, _p0, _p1, captures);
4749 : 0 : if (res) return res;
4750 : : }
4751 : : }
4752 : : break;
4753 : : }
4754 : 2836 : default:;
4755 : : }
4756 : 2836 : switch (TREE_CODE (_q21))
4757 : : {
4758 : 41 : case BIT_NOT_EXPR:
4759 : 41 : {
4760 : 41 : tree _q40 = TREE_OPERAND (_q21, 0);
4761 : 41 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
4762 : : {
4763 : 0 : {
4764 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q40, _q20 };
4765 : 0 : tree res = generic_simplify_151 (loc, type, _p0, _p1, captures);
4766 : 0 : if (res) return res;
4767 : : }
4768 : : }
4769 : : break;
4770 : : }
4771 : : default:;
4772 : : }
4773 : : break;
4774 : : }
4775 : 498 : case BIT_NOT_EXPR:
4776 : 498 : {
4777 : 498 : tree _q20 = TREE_OPERAND (_p0, 0);
4778 : 498 : switch (TREE_CODE (_p1))
4779 : : {
4780 : 51 : case BIT_AND_EXPR:
4781 : 51 : {
4782 : 51 : tree _q40 = TREE_OPERAND (_p1, 0);
4783 : 51 : tree _q41 = TREE_OPERAND (_p1, 1);
4784 : 51 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
4785 : : {
4786 : 0 : switch (TREE_CODE (_q41))
4787 : : {
4788 : 0 : case BIT_NOT_EXPR:
4789 : 0 : {
4790 : 0 : tree _q60 = TREE_OPERAND (_q41, 0);
4791 : 0 : {
4792 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q60 };
4793 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures);
4794 : 0 : if (res) return res;
4795 : : }
4796 : 0 : break;
4797 : : }
4798 : : default:;
4799 : : }
4800 : : }
4801 : 51 : switch (TREE_CODE (_q40))
4802 : : {
4803 : 7 : case BIT_NOT_EXPR:
4804 : 7 : {
4805 : 7 : tree _q50 = TREE_OPERAND (_q40, 0);
4806 : 7 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _q20, 0) && types_match (_q41, _q20)))
4807 : : {
4808 : 0 : {
4809 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q50 };
4810 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures);
4811 : 0 : if (res) return res;
4812 : : }
4813 : : }
4814 : : break;
4815 : : }
4816 : : default:;
4817 : : }
4818 : : break;
4819 : : }
4820 : : default:;
4821 : : }
4822 : : break;
4823 : : }
4824 : 696864 : default:;
4825 : : }
4826 : 696864 : switch (TREE_CODE (_p1))
4827 : : {
4828 : 697 : case BIT_AND_EXPR:
4829 : 697 : {
4830 : 697 : tree _q30 = TREE_OPERAND (_p1, 0);
4831 : 697 : tree _q31 = TREE_OPERAND (_p1, 1);
4832 : 697 : switch (TREE_CODE (_q30))
4833 : : {
4834 : 57 : case BIT_NOT_EXPR:
4835 : 57 : {
4836 : 57 : tree _q40 = TREE_OPERAND (_q30, 0);
4837 : 57 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
4838 : : {
4839 : 0 : {
4840 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _p0, _q31 };
4841 : 0 : tree res = generic_simplify_151 (loc, type, _p0, _p1, captures);
4842 : 0 : if (res) return res;
4843 : : }
4844 : : }
4845 : : break;
4846 : : }
4847 : 697 : default:;
4848 : : }
4849 : 697 : switch (TREE_CODE (_q31))
4850 : : {
4851 : 8 : case BIT_NOT_EXPR:
4852 : 8 : {
4853 : 8 : tree _q50 = TREE_OPERAND (_q31, 0);
4854 : 8 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
4855 : : {
4856 : 0 : {
4857 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _p0, _q30 };
4858 : 0 : tree res = generic_simplify_151 (loc, type, _p0, _p1, captures);
4859 : 0 : if (res) return res;
4860 : : }
4861 : : }
4862 : : break;
4863 : : }
4864 : : default:;
4865 : : }
4866 : : break;
4867 : : }
4868 : 696864 : default:;
4869 : : }
4870 : 696864 : switch (TREE_CODE (_p0))
4871 : : {
4872 : 20692 : case PLUS_EXPR:
4873 : 20692 : {
4874 : 20692 : tree _q20 = TREE_OPERAND (_p0, 0);
4875 : 20692 : tree _q21 = TREE_OPERAND (_p0, 1);
4876 : 20692 : if (integer_minus_onep (_q21))
4877 : : {
4878 : 10084 : switch (TREE_CODE (_p1))
4879 : : {
4880 : 11 : case NEGATE_EXPR:
4881 : 11 : {
4882 : 11 : tree _q50 = TREE_OPERAND (_p1, 0);
4883 : 11 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
4884 : : {
4885 : 11 : {
4886 : 11 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
4887 : 11 : tree res = generic_simplify_74 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4888 : 11 : if (res) return res;
4889 : : }
4890 : : }
4891 : : break;
4892 : : }
4893 : : default:;
4894 : : }
4895 : : }
4896 : : break;
4897 : : }
4898 : 142 : case NEGATE_EXPR:
4899 : 142 : {
4900 : 142 : tree _q20 = TREE_OPERAND (_p0, 0);
4901 : 142 : switch (TREE_CODE (_p1))
4902 : : {
4903 : 0 : case PLUS_EXPR:
4904 : 0 : {
4905 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
4906 : 0 : tree _q41 = TREE_OPERAND (_p1, 1);
4907 : 0 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
4908 : : {
4909 : 0 : if (integer_minus_onep (_q41))
4910 : : {
4911 : 0 : {
4912 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
4913 : 0 : tree res = generic_simplify_75 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4914 : 0 : if (res) return res;
4915 : : }
4916 : : }
4917 : : }
4918 : : break;
4919 : : }
4920 : 0 : case MINUS_EXPR:
4921 : 0 : {
4922 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
4923 : 0 : tree _q41 = TREE_OPERAND (_p1, 1);
4924 : 0 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
4925 : : {
4926 : 0 : if (integer_onep (_q41))
4927 : : {
4928 : 0 : {
4929 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
4930 : 0 : tree res = generic_simplify_76 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4931 : 0 : if (res) return res;
4932 : : }
4933 : : }
4934 : : }
4935 : : break;
4936 : : }
4937 : : default:;
4938 : : }
4939 : : break;
4940 : : }
4941 : 102 : case MINUS_EXPR:
4942 : 102 : {
4943 : 102 : tree _q20 = TREE_OPERAND (_p0, 0);
4944 : 102 : tree _q21 = TREE_OPERAND (_p0, 1);
4945 : 102 : if (integer_onep (_q21))
4946 : : {
4947 : 0 : switch (TREE_CODE (_p1))
4948 : : {
4949 : 0 : case NEGATE_EXPR:
4950 : 0 : {
4951 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
4952 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
4953 : : {
4954 : 0 : {
4955 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
4956 : 0 : tree res = generic_simplify_77 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4957 : 0 : if (res) return res;
4958 : : }
4959 : : }
4960 : : break;
4961 : : }
4962 : : default:;
4963 : : }
4964 : : }
4965 : : break;
4966 : : }
4967 : 1310 : case BIT_IOR_EXPR:
4968 : 1310 : {
4969 : 1310 : tree _q20 = TREE_OPERAND (_p0, 0);
4970 : 1310 : tree _q21 = TREE_OPERAND (_p0, 1);
4971 : 1310 : switch (TREE_CODE (_q20))
4972 : : {
4973 : 481 : case BIT_NOT_EXPR:
4974 : 481 : {
4975 : 481 : tree _q30 = TREE_OPERAND (_q20, 0);
4976 : 481 : {
4977 : 481 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _p1 };
4978 : 481 : tree res = generic_simplify_152 (loc, type, _p0, _p1, captures);
4979 : 481 : if (res) return res;
4980 : : }
4981 : 480 : break;
4982 : : }
4983 : 1309 : default:;
4984 : : }
4985 : 1309 : switch (TREE_CODE (_q21))
4986 : : {
4987 : 62 : case BIT_NOT_EXPR:
4988 : 62 : {
4989 : 62 : tree _q40 = TREE_OPERAND (_q21, 0);
4990 : 62 : {
4991 : 62 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q40, _q20, _p1 };
4992 : 62 : tree res = generic_simplify_152 (loc, type, _p0, _p1, captures);
4993 : 62 : if (res) return res;
4994 : : }
4995 : 62 : break;
4996 : : }
4997 : : default:;
4998 : : }
4999 : : break;
5000 : : }
5001 : 696852 : default:;
5002 : : }
5003 : 696852 : switch (TREE_CODE (_p1))
5004 : : {
5005 : 521 : case BIT_IOR_EXPR:
5006 : 521 : {
5007 : 521 : tree _q30 = TREE_OPERAND (_p1, 0);
5008 : 521 : tree _q31 = TREE_OPERAND (_p1, 1);
5009 : 521 : switch (TREE_CODE (_q30))
5010 : : {
5011 : 21 : case BIT_NOT_EXPR:
5012 : 21 : {
5013 : 21 : tree _q40 = TREE_OPERAND (_q30, 0);
5014 : 21 : {
5015 : 21 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q30, _q40, _q31, _p0 };
5016 : 21 : tree res = generic_simplify_152 (loc, type, _p0, _p1, captures);
5017 : 21 : if (res) return res;
5018 : : }
5019 : 21 : break;
5020 : : }
5021 : 521 : default:;
5022 : : }
5023 : 521 : switch (TREE_CODE (_q31))
5024 : : {
5025 : 25 : case BIT_NOT_EXPR:
5026 : 25 : {
5027 : 25 : tree _q50 = TREE_OPERAND (_q31, 0);
5028 : 25 : {
5029 : 25 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q31, _q50, _q30, _p0 };
5030 : 25 : tree res = generic_simplify_152 (loc, type, _p0, _p1, captures);
5031 : 25 : if (res) return res;
5032 : : }
5033 : 25 : break;
5034 : : }
5035 : : default:;
5036 : : }
5037 : : break;
5038 : : }
5039 : 696852 : default:;
5040 : : }
5041 : 696852 : switch (TREE_CODE (_p0))
5042 : : {
5043 : 2836 : case BIT_AND_EXPR:
5044 : 2836 : {
5045 : 2836 : tree _q20 = TREE_OPERAND (_p0, 0);
5046 : 2836 : tree _q21 = TREE_OPERAND (_p0, 1);
5047 : 2836 : switch (TREE_CODE (_q20))
5048 : : {
5049 : 90 : case BIT_NOT_EXPR:
5050 : 90 : {
5051 : 90 : tree _q30 = TREE_OPERAND (_q20, 0);
5052 : 90 : {
5053 : 90 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _p1 };
5054 : 90 : tree res = generic_simplify_153 (loc, type, _p0, _p1, captures);
5055 : 90 : if (res) return res;
5056 : : }
5057 : 89 : break;
5058 : : }
5059 : 2835 : default:;
5060 : : }
5061 : 2835 : switch (TREE_CODE (_q21))
5062 : : {
5063 : 41 : case BIT_NOT_EXPR:
5064 : 41 : {
5065 : 41 : tree _q40 = TREE_OPERAND (_q21, 0);
5066 : 41 : {
5067 : 41 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q40, _q20, _p1 };
5068 : 41 : tree res = generic_simplify_153 (loc, type, _p0, _p1, captures);
5069 : 41 : if (res) return res;
5070 : : }
5071 : 41 : break;
5072 : : }
5073 : : default:;
5074 : : }
5075 : : break;
5076 : : }
5077 : 696851 : default:;
5078 : : }
5079 : 696851 : switch (TREE_CODE (_p1))
5080 : : {
5081 : 697 : case BIT_AND_EXPR:
5082 : 697 : {
5083 : 697 : tree _q30 = TREE_OPERAND (_p1, 0);
5084 : 697 : tree _q31 = TREE_OPERAND (_p1, 1);
5085 : 697 : switch (TREE_CODE (_q30))
5086 : : {
5087 : 57 : case BIT_NOT_EXPR:
5088 : 57 : {
5089 : 57 : tree _q40 = TREE_OPERAND (_q30, 0);
5090 : 57 : {
5091 : 57 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q30, _q40, _q31, _p0 };
5092 : 57 : tree res = generic_simplify_153 (loc, type, _p0, _p1, captures);
5093 : 57 : if (res) return res;
5094 : : }
5095 : 57 : break;
5096 : : }
5097 : 697 : default:;
5098 : : }
5099 : 697 : switch (TREE_CODE (_q31))
5100 : : {
5101 : 8 : case BIT_NOT_EXPR:
5102 : 8 : {
5103 : 8 : tree _q50 = TREE_OPERAND (_q31, 0);
5104 : 8 : {
5105 : 8 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q31, _q50, _q30, _p0 };
5106 : 8 : tree res = generic_simplify_153 (loc, type, _p0, _p1, captures);
5107 : 8 : if (res) return res;
5108 : : }
5109 : 8 : break;
5110 : : }
5111 : : default:;
5112 : : }
5113 : : break;
5114 : : }
5115 : 696851 : default:;
5116 : : }
5117 : 696851 : switch (TREE_CODE (_p0))
5118 : : {
5119 : 506706 : CASE_CONVERT:
5120 : 506706 : {
5121 : 506706 : tree _q20 = TREE_OPERAND (_p0, 0);
5122 : 506706 : switch (TREE_CODE (_p1))
5123 : : {
5124 : 502801 : CASE_CONVERT:
5125 : 502801 : {
5126 : 502801 : tree _q40 = TREE_OPERAND (_p1, 0);
5127 : 502801 : {
5128 : 502801 : tree _q40_pops[1];
5129 : 502801 : if (tree_maybe_bit_not (_q40, _q40_pops))
5130 : : {
5131 : 0 : tree _q50 = _q40_pops[0];
5132 : 0 : {
5133 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q50 };
5134 : 0 : tree res = generic_simplify_87 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5135 : 0 : if (res) return res;
5136 : : }
5137 : : }
5138 : : }
5139 : 502801 : break;
5140 : : }
5141 : 506706 : default:;
5142 : : }
5143 : 506706 : {
5144 : 506706 : tree _q20_pops[1];
5145 : 506706 : if (tree_maybe_bit_not (_q20, _q20_pops))
5146 : : {
5147 : 15130 : tree _q30 = _q20_pops[0];
5148 : 15130 : switch (TREE_CODE (_p1))
5149 : : {
5150 : 15080 : CASE_CONVERT:
5151 : 15080 : {
5152 : 15080 : tree _q50 = TREE_OPERAND (_p1, 0);
5153 : 15080 : {
5154 : 15080 : tree captures[2] ATTRIBUTE_UNUSED = { _q50, _q30 };
5155 : 15080 : tree res = generic_simplify_87 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5156 : 15080 : if (res) return res;
5157 : : }
5158 : 15080 : break;
5159 : : }
5160 : : default:;
5161 : : }
5162 : : }
5163 : : }
5164 : 506706 : break;
5165 : : }
5166 : 696851 : default:;
5167 : : }
5168 : 696851 : {
5169 : 696851 : tree _p1_pops[1];
5170 : 696851 : if (tree_maybe_bit_not (_p1, _p1_pops))
5171 : : {
5172 : 8242 : tree _q30 = _p1_pops[0];
5173 : 8242 : {
5174 : 8242 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
5175 : 8242 : tree res = generic_simplify_87 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5176 : 8242 : if (res) return res;
5177 : : }
5178 : : }
5179 : : }
5180 : 696851 : {
5181 : 696851 : tree _p0_pops[1];
5182 : 696851 : if (tree_maybe_bit_not (_p0, _p0_pops))
5183 : : {
5184 : 1039 : tree _q20 = _p0_pops[0];
5185 : 1039 : {
5186 : 1039 : tree captures[2] ATTRIBUTE_UNUSED = { _p1, _q20 };
5187 : 1039 : tree res = generic_simplify_87 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5188 : 1039 : if (res) return res;
5189 : : }
5190 : : }
5191 : : }
5192 : 696830 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
5193 : : {
5194 : 151 : {
5195 : 151 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5196 : 151 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1409;
5197 : 151 : {
5198 : 151 : tree _r;
5199 : 151 : _r = build_zero_cst (type);
5200 : 151 : if (TREE_SIDE_EFFECTS (captures[0]))
5201 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
5202 : 151 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
5203 : 151 : return _r;
5204 : : }
5205 : 0 : next_after_fail1409:;
5206 : : }
5207 : : }
5208 : 696679 : if (integer_all_onesp (_p1))
5209 : : {
5210 : 751 : {
5211 : 751 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5212 : 751 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1410;
5213 : 751 : {
5214 : 751 : tree res_op0;
5215 : 751 : res_op0 = captures[0];
5216 : 751 : tree _r;
5217 : 751 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
5218 : 751 : if (TREE_SIDE_EFFECTS (captures[1]))
5219 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
5220 : 751 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 954, __FILE__, __LINE__, true);
5221 : 751 : return _r;
5222 : : }
5223 : 0 : next_after_fail1410:;
5224 : : }
5225 : : }
5226 : 695928 : switch (TREE_CODE (_p0))
5227 : : {
5228 : 1302 : case BIT_IOR_EXPR:
5229 : 1302 : {
5230 : 1302 : tree _q20 = TREE_OPERAND (_p0, 0);
5231 : 1302 : tree _q21 = TREE_OPERAND (_p0, 1);
5232 : 1302 : switch (TREE_CODE (_p1))
5233 : : {
5234 : 179 : case BIT_IOR_EXPR:
5235 : 179 : {
5236 : 179 : tree _q50 = TREE_OPERAND (_p1, 0);
5237 : 179 : tree _q51 = TREE_OPERAND (_p1, 1);
5238 : 179 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5239 : : {
5240 : 0 : switch (TREE_CODE (_q51))
5241 : : {
5242 : 0 : case BIT_NOT_EXPR:
5243 : 0 : {
5244 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
5245 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
5246 : : {
5247 : 0 : {
5248 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5249 : 0 : tree res = generic_simplify_154 (loc, type, _p0, _p1, captures);
5250 : 0 : if (res) return res;
5251 : : }
5252 : : }
5253 : : break;
5254 : : }
5255 : : default:;
5256 : : }
5257 : : }
5258 : 179 : switch (TREE_CODE (_q50))
5259 : : {
5260 : 20 : case BIT_NOT_EXPR:
5261 : 20 : {
5262 : 20 : tree _q60 = TREE_OPERAND (_q50, 0);
5263 : 20 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
5264 : : {
5265 : 2 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
5266 : : {
5267 : 1 : {
5268 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5269 : 1 : tree res = generic_simplify_154 (loc, type, _p0, _p1, captures);
5270 : 1 : if (res) return res;
5271 : : }
5272 : : }
5273 : : }
5274 : 19 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
5275 : : {
5276 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5277 : : {
5278 : 0 : {
5279 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
5280 : 0 : tree res = generic_simplify_154 (loc, type, _p0, _p1, captures);
5281 : 0 : if (res) return res;
5282 : : }
5283 : : }
5284 : : }
5285 : : break;
5286 : : }
5287 : 178 : default:;
5288 : : }
5289 : 178 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
5290 : : {
5291 : 0 : switch (TREE_CODE (_q51))
5292 : : {
5293 : 0 : case BIT_NOT_EXPR:
5294 : 0 : {
5295 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
5296 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
5297 : : {
5298 : 0 : {
5299 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
5300 : 0 : tree res = generic_simplify_154 (loc, type, _p0, _p1, captures);
5301 : 0 : if (res) return res;
5302 : : }
5303 : : }
5304 : : break;
5305 : : }
5306 : : default:;
5307 : : }
5308 : : }
5309 : : break;
5310 : : }
5311 : 1301 : default:;
5312 : : }
5313 : 1301 : switch (TREE_CODE (_q21))
5314 : : {
5315 : 62 : case BIT_NOT_EXPR:
5316 : 62 : {
5317 : 62 : tree _q40 = TREE_OPERAND (_q21, 0);
5318 : 62 : switch (TREE_CODE (_p1))
5319 : : {
5320 : 9 : case BIT_IOR_EXPR:
5321 : 9 : {
5322 : 9 : tree _q60 = TREE_OPERAND (_p1, 0);
5323 : 9 : tree _q61 = TREE_OPERAND (_p1, 1);
5324 : 9 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
5325 : : {
5326 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
5327 : : {
5328 : 0 : {
5329 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
5330 : 0 : tree res = generic_simplify_154 (loc, type, _p0, _p1, captures);
5331 : 0 : if (res) return res;
5332 : : }
5333 : : }
5334 : : }
5335 : : break;
5336 : : }
5337 : : default:;
5338 : : }
5339 : : break;
5340 : : }
5341 : 1301 : default:;
5342 : : }
5343 : 1301 : switch (TREE_CODE (_q20))
5344 : : {
5345 : 480 : case BIT_NOT_EXPR:
5346 : 480 : {
5347 : 480 : tree _q30 = TREE_OPERAND (_q20, 0);
5348 : 480 : switch (TREE_CODE (_p1))
5349 : : {
5350 : 28 : case BIT_IOR_EXPR:
5351 : 28 : {
5352 : 28 : tree _q60 = TREE_OPERAND (_p1, 0);
5353 : 28 : tree _q61 = TREE_OPERAND (_p1, 1);
5354 : 28 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
5355 : : {
5356 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
5357 : : {
5358 : 0 : {
5359 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q30 };
5360 : 0 : tree res = generic_simplify_154 (loc, type, _p0, _p1, captures);
5361 : 0 : if (res) return res;
5362 : : }
5363 : : }
5364 : : }
5365 : 28 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
5366 : : {
5367 : 9 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
5368 : : {
5369 : 0 : {
5370 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q30 };
5371 : 0 : tree res = generic_simplify_154 (loc, type, _p0, _p1, captures);
5372 : 0 : if (res) return res;
5373 : : }
5374 : : }
5375 : 9 : switch (TREE_CODE (_q61))
5376 : : {
5377 : 0 : case BIT_NOT_EXPR:
5378 : 0 : {
5379 : 0 : tree _q80 = TREE_OPERAND (_q61, 0);
5380 : 0 : if ((_q80 == _q21 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q21, 0) && types_match (_q80, _q21)))
5381 : : {
5382 : 0 : {
5383 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q21 };
5384 : 0 : tree res = generic_simplify_155 (loc, type, _p0, _p1, captures);
5385 : 0 : if (res) return res;
5386 : : }
5387 : : }
5388 : : break;
5389 : : }
5390 : : default:;
5391 : : }
5392 : : }
5393 : 28 : switch (TREE_CODE (_q60))
5394 : : {
5395 : 1 : case BIT_NOT_EXPR:
5396 : 1 : {
5397 : 1 : tree _q70 = TREE_OPERAND (_q60, 0);
5398 : 1 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
5399 : : {
5400 : 1 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
5401 : : {
5402 : 1 : {
5403 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q21 };
5404 : 1 : tree res = generic_simplify_155 (loc, type, _p0, _p1, captures);
5405 : 1 : if (res) return res;
5406 : : }
5407 : : }
5408 : : }
5409 : : break;
5410 : : }
5411 : : default:;
5412 : : }
5413 : : break;
5414 : : }
5415 : 9 : case BIT_XOR_EXPR:
5416 : 9 : {
5417 : 9 : tree _q60 = TREE_OPERAND (_p1, 0);
5418 : 9 : tree _q61 = TREE_OPERAND (_p1, 1);
5419 : 9 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
5420 : : {
5421 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
5422 : : {
5423 : 0 : {
5424 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q21, _p1 };
5425 : 0 : tree res = generic_simplify_156 (loc, type, _p0, _p1, captures);
5426 : 0 : if (res) return res;
5427 : : }
5428 : : }
5429 : : }
5430 : : break;
5431 : : }
5432 : 479 : default:;
5433 : : }
5434 : 479 : {
5435 : 479 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q21, _p1 };
5436 : 479 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
5437 : 479 : if (res) return res;
5438 : : }
5439 : 431 : break;
5440 : : }
5441 : 1252 : default:;
5442 : : }
5443 : 1252 : switch (TREE_CODE (_q21))
5444 : : {
5445 : 62 : case BIT_NOT_EXPR:
5446 : 62 : {
5447 : 62 : tree _q40 = TREE_OPERAND (_q21, 0);
5448 : 62 : switch (TREE_CODE (_p1))
5449 : : {
5450 : 9 : case BIT_IOR_EXPR:
5451 : 9 : {
5452 : 9 : tree _q60 = TREE_OPERAND (_p1, 0);
5453 : 9 : tree _q61 = TREE_OPERAND (_p1, 1);
5454 : 9 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
5455 : : {
5456 : 0 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
5457 : : {
5458 : 0 : {
5459 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
5460 : 0 : tree res = generic_simplify_154 (loc, type, _p0, _p1, captures);
5461 : 0 : if (res) return res;
5462 : : }
5463 : : }
5464 : : }
5465 : : break;
5466 : : }
5467 : 9 : case BIT_XOR_EXPR:
5468 : 9 : {
5469 : 9 : tree _q60 = TREE_OPERAND (_p1, 0);
5470 : 9 : tree _q61 = TREE_OPERAND (_p1, 1);
5471 : 9 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
5472 : : {
5473 : 0 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
5474 : : {
5475 : 0 : {
5476 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q40, _q20, _p1 };
5477 : 0 : tree res = generic_simplify_156 (loc, type, _p0, _p1, captures);
5478 : 0 : if (res) return res;
5479 : : }
5480 : : }
5481 : : }
5482 : : break;
5483 : : }
5484 : : default:;
5485 : : }
5486 : : break;
5487 : : }
5488 : 1252 : default:;
5489 : : }
5490 : 1252 : switch (TREE_CODE (_p1))
5491 : : {
5492 : 65 : case BIT_AND_EXPR:
5493 : 65 : {
5494 : 65 : tree _q50 = TREE_OPERAND (_p1, 0);
5495 : 65 : tree _q51 = TREE_OPERAND (_p1, 1);
5496 : 65 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5497 : : {
5498 : 6 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5499 : : {
5500 : 0 : {
5501 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5502 : 0 : tree res = generic_simplify_158 (loc, type, _p0, _p1, captures);
5503 : 0 : if (res) return res;
5504 : : }
5505 : : }
5506 : : }
5507 : : break;
5508 : : }
5509 : 36 : case BIT_XOR_EXPR:
5510 : 36 : {
5511 : 36 : tree _q50 = TREE_OPERAND (_p1, 0);
5512 : 36 : tree _q51 = TREE_OPERAND (_p1, 1);
5513 : 36 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5514 : : {
5515 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5516 : : {
5517 : 0 : {
5518 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5519 : 0 : tree res = generic_simplify_159 (loc, type, _p0, _p1, captures);
5520 : 0 : if (res) return res;
5521 : : }
5522 : : }
5523 : : }
5524 : : break;
5525 : : }
5526 : 1252 : default:;
5527 : : }
5528 : 1252 : switch (TREE_CODE (_q21))
5529 : : {
5530 : 62 : case BIT_NOT_EXPR:
5531 : 62 : {
5532 : 62 : tree _q40 = TREE_OPERAND (_q21, 0);
5533 : 62 : switch (TREE_CODE (_p1))
5534 : : {
5535 : 9 : case BIT_IOR_EXPR:
5536 : 9 : {
5537 : 9 : tree _q60 = TREE_OPERAND (_p1, 0);
5538 : 9 : tree _q61 = TREE_OPERAND (_p1, 1);
5539 : 9 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
5540 : : {
5541 : 0 : switch (TREE_CODE (_q61))
5542 : : {
5543 : 0 : case BIT_NOT_EXPR:
5544 : 0 : {
5545 : 0 : tree _q80 = TREE_OPERAND (_q61, 0);
5546 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
5547 : : {
5548 : 0 : {
5549 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q20 };
5550 : 0 : tree res = generic_simplify_155 (loc, type, _p0, _p1, captures);
5551 : 0 : if (res) return res;
5552 : : }
5553 : : }
5554 : : break;
5555 : : }
5556 : : default:;
5557 : : }
5558 : : }
5559 : 9 : switch (TREE_CODE (_q60))
5560 : : {
5561 : 0 : case BIT_NOT_EXPR:
5562 : 0 : {
5563 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
5564 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
5565 : : {
5566 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
5567 : : {
5568 : 0 : {
5569 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q20 };
5570 : 0 : tree res = generic_simplify_155 (loc, type, _p0, _p1, captures);
5571 : 0 : if (res) return res;
5572 : : }
5573 : : }
5574 : : }
5575 : : break;
5576 : : }
5577 : : default:;
5578 : : }
5579 : : break;
5580 : : }
5581 : : default:;
5582 : : }
5583 : : break;
5584 : : }
5585 : 1252 : default:;
5586 : : }
5587 : 1252 : switch (TREE_CODE (_p1))
5588 : : {
5589 : 24 : CASE_CONVERT:
5590 : 24 : {
5591 : 24 : tree _q50 = TREE_OPERAND (_p1, 0);
5592 : 24 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
5593 : : {
5594 : 0 : {
5595 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q20 };
5596 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
5597 : 0 : if (res) return res;
5598 : : }
5599 : : }
5600 : 24 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q21, 0))
5601 : : {
5602 : 0 : {
5603 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q21 };
5604 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
5605 : 0 : if (res) return res;
5606 : : }
5607 : : }
5608 : : break;
5609 : : }
5610 : 1252 : default:;
5611 : : }
5612 : 1252 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q20, 0))
5613 : : {
5614 : 3 : {
5615 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q20 };
5616 : 3 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
5617 : 3 : if (res) return res;
5618 : : }
5619 : : }
5620 : 1249 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q21, 0))
5621 : : {
5622 : 3 : {
5623 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q21 };
5624 : 3 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
5625 : 3 : if (res) return res;
5626 : : }
5627 : : }
5628 : 1246 : {
5629 : 1246 : tree _q20_pops[1];
5630 : 1246 : if (tree_nop_convert (_q20, _q20_pops))
5631 : : {
5632 : 8 : tree _q30 = _q20_pops[0];
5633 : 8 : switch (TREE_CODE (_q30))
5634 : : {
5635 : 8 : case BIT_NOT_EXPR:
5636 : 8 : {
5637 : 8 : tree _q40 = TREE_OPERAND (_q30, 0);
5638 : 8 : {
5639 : 8 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q21, _p1 };
5640 : 8 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
5641 : 8 : if (res) return res;
5642 : : }
5643 : 0 : break;
5644 : : }
5645 : : default:;
5646 : : }
5647 : : }
5648 : : }
5649 : 1238 : switch (TREE_CODE (_q21))
5650 : : {
5651 : 62 : case BIT_NOT_EXPR:
5652 : 62 : {
5653 : 62 : tree _q40 = TREE_OPERAND (_q21, 0);
5654 : 62 : {
5655 : 62 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q20, _p1 };
5656 : 62 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
5657 : 62 : if (res) return res;
5658 : : }
5659 : 54 : break;
5660 : : }
5661 : 1230 : default:;
5662 : : }
5663 : 1230 : {
5664 : 1230 : tree _q21_pops[1];
5665 : 1230 : if (tree_nop_convert (_q21, _q21_pops))
5666 : : {
5667 : 0 : tree _q40 = _q21_pops[0];
5668 : 0 : switch (TREE_CODE (_q40))
5669 : : {
5670 : 0 : case BIT_NOT_EXPR:
5671 : 0 : {
5672 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
5673 : 0 : {
5674 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q20, _p1 };
5675 : 0 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
5676 : 0 : if (res) return res;
5677 : : }
5678 : 0 : break;
5679 : : }
5680 : : default:;
5681 : : }
5682 : : }
5683 : : }
5684 : 1230 : break;
5685 : : }
5686 : 3881 : case BIT_XOR_EXPR:
5687 : 3881 : {
5688 : 3881 : tree _q20 = TREE_OPERAND (_p0, 0);
5689 : 3881 : tree _q21 = TREE_OPERAND (_p0, 1);
5690 : 3881 : switch (TREE_CODE (_p1))
5691 : : {
5692 : 203 : case BIT_IOR_EXPR:
5693 : 203 : {
5694 : 203 : tree _q50 = TREE_OPERAND (_p1, 0);
5695 : 203 : tree _q51 = TREE_OPERAND (_p1, 1);
5696 : 203 : switch (TREE_CODE (_q50))
5697 : : {
5698 : 1 : case BIT_NOT_EXPR:
5699 : 1 : {
5700 : 1 : tree _q60 = TREE_OPERAND (_q50, 0);
5701 : 1 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
5702 : : {
5703 : 1 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5704 : : {
5705 : 1 : {
5706 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q20, _q21, _p0 };
5707 : 1 : tree res = generic_simplify_156 (loc, type, _p0, _p1, captures);
5708 : 1 : if (res) return res;
5709 : : }
5710 : : }
5711 : : }
5712 : : break;
5713 : : }
5714 : 202 : default:;
5715 : : }
5716 : 202 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
5717 : : {
5718 : 0 : switch (TREE_CODE (_q51))
5719 : : {
5720 : 0 : case BIT_NOT_EXPR:
5721 : 0 : {
5722 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
5723 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
5724 : : {
5725 : 0 : {
5726 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q20, _q21, _p0 };
5727 : 0 : tree res = generic_simplify_156 (loc, type, _p0, _p1, captures);
5728 : 0 : if (res) return res;
5729 : : }
5730 : : }
5731 : : break;
5732 : : }
5733 : : default:;
5734 : : }
5735 : : }
5736 : 202 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5737 : : {
5738 : 1 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5739 : : {
5740 : 0 : {
5741 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5742 : 0 : tree res = generic_simplify_159 (loc, type, _p0, _p1, captures);
5743 : 0 : if (res) return res;
5744 : : }
5745 : : }
5746 : : }
5747 : : break;
5748 : : }
5749 : 41 : case BIT_AND_EXPR:
5750 : 41 : {
5751 : 41 : tree _q50 = TREE_OPERAND (_p1, 0);
5752 : 41 : tree _q51 = TREE_OPERAND (_p1, 1);
5753 : 41 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5754 : : {
5755 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5756 : : {
5757 : 0 : {
5758 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5759 : 0 : tree res = generic_simplify_8 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5760 : 0 : if (res) return res;
5761 : : }
5762 : : }
5763 : : }
5764 : : break;
5765 : : }
5766 : 198 : CASE_CONVERT:
5767 : 198 : {
5768 : 198 : tree _q50 = TREE_OPERAND (_p1, 0);
5769 : 198 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q21, 0))
5770 : : {
5771 : 0 : {
5772 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q21 };
5773 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
5774 : 0 : if (res) return res;
5775 : : }
5776 : : }
5777 : 198 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
5778 : : {
5779 : 0 : {
5780 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q20 };
5781 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
5782 : 0 : if (res) return res;
5783 : : }
5784 : : }
5785 : : break;
5786 : : }
5787 : 3880 : default:;
5788 : : }
5789 : 3880 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q21, 0))
5790 : : {
5791 : 0 : {
5792 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q21 };
5793 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
5794 : 0 : if (res) return res;
5795 : : }
5796 : : }
5797 : 3880 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q20, 0))
5798 : : {
5799 : 11 : {
5800 : 11 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q20 };
5801 : 11 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
5802 : 11 : if (res) return res;
5803 : : }
5804 : : }
5805 : : break;
5806 : : }
5807 : 2835 : case BIT_AND_EXPR:
5808 : 2835 : {
5809 : 2835 : tree _q20 = TREE_OPERAND (_p0, 0);
5810 : 2835 : tree _q21 = TREE_OPERAND (_p0, 1);
5811 : 2835 : switch (TREE_CODE (_p1))
5812 : : {
5813 : 74 : case BIT_IOR_EXPR:
5814 : 74 : {
5815 : 74 : tree _q50 = TREE_OPERAND (_p1, 0);
5816 : 74 : tree _q51 = TREE_OPERAND (_p1, 1);
5817 : 74 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5818 : : {
5819 : 18 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5820 : : {
5821 : 0 : {
5822 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5823 : 0 : tree res = generic_simplify_158 (loc, type, _p0, _p1, captures);
5824 : 0 : if (res) return res;
5825 : : }
5826 : : }
5827 : : }
5828 : : break;
5829 : : }
5830 : 30 : case BIT_XOR_EXPR:
5831 : 30 : {
5832 : 30 : tree _q50 = TREE_OPERAND (_p1, 0);
5833 : 30 : tree _q51 = TREE_OPERAND (_p1, 1);
5834 : 30 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5835 : : {
5836 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5837 : : {
5838 : 0 : {
5839 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5840 : 0 : tree res = generic_simplify_8 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5841 : 0 : if (res) return res;
5842 : : }
5843 : : }
5844 : : }
5845 : : break;
5846 : : }
5847 : 2835 : default:;
5848 : : }
5849 : 2835 : switch (TREE_CODE (_q21))
5850 : : {
5851 : 1010 : case INTEGER_CST:
5852 : 1010 : {
5853 : 1010 : switch (TREE_CODE (_p1))
5854 : : {
5855 : 15 : CASE_CONVERT:
5856 : 15 : {
5857 : 15 : tree _q50 = TREE_OPERAND (_p1, 0);
5858 : 15 : switch (TREE_CODE (_q50))
5859 : : {
5860 : 0 : case BIT_AND_EXPR:
5861 : 0 : {
5862 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
5863 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
5864 : 0 : switch (TREE_CODE (_q61))
5865 : : {
5866 : 0 : case INTEGER_CST:
5867 : 0 : {
5868 : 0 : {
5869 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50, _q60, _q61 };
5870 : 0 : tree res = generic_simplify_10 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5871 : 0 : if (res) return res;
5872 : : }
5873 : 0 : break;
5874 : : }
5875 : : default:;
5876 : : }
5877 : : break;
5878 : : }
5879 : : default:;
5880 : : }
5881 : : break;
5882 : : }
5883 : 210 : case BIT_AND_EXPR:
5884 : 210 : {
5885 : 210 : tree _q50 = TREE_OPERAND (_p1, 0);
5886 : 210 : tree _q51 = TREE_OPERAND (_p1, 1);
5887 : 210 : switch (TREE_CODE (_q51))
5888 : : {
5889 : 210 : case INTEGER_CST:
5890 : 210 : {
5891 : 210 : {
5892 : 210 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
5893 : 210 : tree res = generic_simplify_10 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5894 : 210 : if (res) return res;
5895 : : }
5896 : 209 : break;
5897 : : }
5898 : : default:;
5899 : : }
5900 : : break;
5901 : : }
5902 : : default:;
5903 : : }
5904 : : break;
5905 : : }
5906 : : default:;
5907 : : }
5908 : : break;
5909 : : }
5910 : 506669 : CASE_CONVERT:
5911 : 506669 : {
5912 : 506669 : tree _q20 = TREE_OPERAND (_p0, 0);
5913 : 506669 : switch (TREE_CODE (_q20))
5914 : : {
5915 : 24 : case BIT_AND_EXPR:
5916 : 24 : {
5917 : 24 : tree _q30 = TREE_OPERAND (_q20, 0);
5918 : 24 : tree _q31 = TREE_OPERAND (_q20, 1);
5919 : 24 : switch (TREE_CODE (_q31))
5920 : : {
5921 : 0 : case INTEGER_CST:
5922 : 0 : {
5923 : 0 : switch (TREE_CODE (_p1))
5924 : : {
5925 : 0 : CASE_CONVERT:
5926 : 0 : {
5927 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
5928 : 0 : switch (TREE_CODE (_q60))
5929 : : {
5930 : 0 : case BIT_AND_EXPR:
5931 : 0 : {
5932 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
5933 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
5934 : 0 : switch (TREE_CODE (_q71))
5935 : : {
5936 : 0 : case INTEGER_CST:
5937 : 0 : {
5938 : 0 : {
5939 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q60, _q70, _q71 };
5940 : 0 : tree res = generic_simplify_10 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5941 : 0 : if (res) return res;
5942 : : }
5943 : 0 : break;
5944 : : }
5945 : : default:;
5946 : : }
5947 : : break;
5948 : : }
5949 : : default:;
5950 : : }
5951 : : break;
5952 : : }
5953 : 0 : case BIT_AND_EXPR:
5954 : 0 : {
5955 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
5956 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
5957 : 0 : switch (TREE_CODE (_q61))
5958 : : {
5959 : 0 : case INTEGER_CST:
5960 : 0 : {
5961 : 0 : {
5962 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _p1, _q60, _q61 };
5963 : 0 : tree res = generic_simplify_10 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5964 : 0 : if (res) return res;
5965 : : }
5966 : 0 : break;
5967 : : }
5968 : : default:;
5969 : : }
5970 : : break;
5971 : : }
5972 : : default:;
5973 : : }
5974 : : break;
5975 : : }
5976 : : default:;
5977 : : }
5978 : : break;
5979 : : }
5980 : 17 : case BIT_IOR_EXPR:
5981 : 17 : {
5982 : 17 : tree _q30 = TREE_OPERAND (_q20, 0);
5983 : 17 : tree _q31 = TREE_OPERAND (_q20, 1);
5984 : 17 : switch (TREE_CODE (_p1))
5985 : : {
5986 : 16 : CASE_CONVERT:
5987 : 16 : {
5988 : 16 : tree _q60 = TREE_OPERAND (_p1, 0);
5989 : 16 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q30, 0))
5990 : : {
5991 : 0 : {
5992 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q30 };
5993 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
5994 : 0 : if (res) return res;
5995 : : }
5996 : : }
5997 : 16 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q31, 0))
5998 : : {
5999 : 0 : {
6000 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q31 };
6001 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6002 : 0 : if (res) return res;
6003 : : }
6004 : : }
6005 : : break;
6006 : : }
6007 : 17 : default:;
6008 : : }
6009 : 17 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q30, 0))
6010 : : {
6011 : 0 : {
6012 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q30 };
6013 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6014 : 0 : if (res) return res;
6015 : : }
6016 : : }
6017 : 17 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q31, 0))
6018 : : {
6019 : 0 : {
6020 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q31 };
6021 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6022 : 0 : if (res) return res;
6023 : : }
6024 : : }
6025 : : break;
6026 : : }
6027 : 506669 : default:;
6028 : : }
6029 : 506669 : switch (TREE_CODE (_p1))
6030 : : {
6031 : 502794 : CASE_CONVERT:
6032 : 502794 : {
6033 : 502794 : tree _q40 = TREE_OPERAND (_p1, 0);
6034 : 502794 : switch (TREE_CODE (_q40))
6035 : : {
6036 : 0 : case BIT_IOR_EXPR:
6037 : 0 : {
6038 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
6039 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
6040 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
6041 : : {
6042 : 0 : {
6043 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q51, _q20 };
6044 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6045 : 0 : if (res) return res;
6046 : : }
6047 : : }
6048 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q20, 0))
6049 : : {
6050 : 0 : {
6051 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q51, _q50, _q20 };
6052 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6053 : 0 : if (res) return res;
6054 : : }
6055 : : }
6056 : : break;
6057 : : }
6058 : : default:;
6059 : : }
6060 : : break;
6061 : : }
6062 : 26 : case BIT_IOR_EXPR:
6063 : 26 : {
6064 : 26 : tree _q40 = TREE_OPERAND (_p1, 0);
6065 : 26 : tree _q41 = TREE_OPERAND (_p1, 1);
6066 : 26 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _q20, 0))
6067 : : {
6068 : 0 : {
6069 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _q20 };
6070 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6071 : 0 : if (res) return res;
6072 : : }
6073 : : }
6074 : 26 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _q20, 0))
6075 : : {
6076 : 0 : {
6077 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _q20 };
6078 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6079 : 0 : if (res) return res;
6080 : : }
6081 : : }
6082 : : break;
6083 : : }
6084 : : default:;
6085 : : }
6086 : : break;
6087 : : }
6088 : 695843 : default:;
6089 : : }
6090 : 695843 : switch (TREE_CODE (_p1))
6091 : : {
6092 : 546489 : CASE_CONVERT:
6093 : 546489 : {
6094 : 546489 : tree _q30 = TREE_OPERAND (_p1, 0);
6095 : 546489 : switch (TREE_CODE (_q30))
6096 : : {
6097 : 6 : case BIT_IOR_EXPR:
6098 : 6 : {
6099 : 6 : tree _q40 = TREE_OPERAND (_q30, 0);
6100 : 6 : tree _q41 = TREE_OPERAND (_q30, 1);
6101 : 6 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _p0, 0))
6102 : : {
6103 : 0 : {
6104 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _p0 };
6105 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6106 : 0 : if (res) return res;
6107 : : }
6108 : : }
6109 : 6 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _p0, 0))
6110 : : {
6111 : 0 : {
6112 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _p0 };
6113 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6114 : 0 : if (res) return res;
6115 : : }
6116 : : }
6117 : : break;
6118 : : }
6119 : : default:;
6120 : : }
6121 : : break;
6122 : : }
6123 : 518 : case BIT_IOR_EXPR:
6124 : 518 : {
6125 : 518 : tree _q30 = TREE_OPERAND (_p1, 0);
6126 : 518 : tree _q31 = TREE_OPERAND (_p1, 1);
6127 : 518 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || operand_equal_p (_q30, _p0, 0))
6128 : : {
6129 : 1 : {
6130 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p0 };
6131 : 1 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6132 : 1 : if (res) return res;
6133 : : }
6134 : : }
6135 : 517 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || operand_equal_p (_q31, _p0, 0))
6136 : : {
6137 : 1 : {
6138 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _p0 };
6139 : 1 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6140 : 1 : if (res) return res;
6141 : : }
6142 : : }
6143 : : break;
6144 : : }
6145 : 695841 : default:;
6146 : : }
6147 : 695841 : {
6148 : 695841 : tree _p0_pops[1];
6149 : 695841 : if (tree_nop_convert (_p0, _p0_pops))
6150 : : {
6151 : 487568 : tree _q20 = _p0_pops[0];
6152 : 487568 : switch (TREE_CODE (_q20))
6153 : : {
6154 : 16 : case BIT_IOR_EXPR:
6155 : 16 : {
6156 : 16 : tree _q30 = TREE_OPERAND (_q20, 0);
6157 : 16 : tree _q31 = TREE_OPERAND (_q20, 1);
6158 : 16 : {
6159 : 16 : tree _q30_pops[1];
6160 : 16 : if (tree_nop_convert (_q30, _q30_pops))
6161 : : {
6162 : 0 : tree _q40 = _q30_pops[0];
6163 : 0 : switch (TREE_CODE (_q40))
6164 : : {
6165 : 0 : case BIT_NOT_EXPR:
6166 : 0 : {
6167 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
6168 : 0 : {
6169 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q31, _p1 };
6170 : 0 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
6171 : 0 : if (res) return res;
6172 : : }
6173 : 0 : break;
6174 : : }
6175 : : default:;
6176 : : }
6177 : : }
6178 : : }
6179 : 16 : {
6180 : 16 : tree _q31_pops[1];
6181 : 16 : if (tree_nop_convert (_q31, _q31_pops))
6182 : : {
6183 : 0 : tree _q50 = _q31_pops[0];
6184 : 0 : switch (TREE_CODE (_q50))
6185 : : {
6186 : 0 : case BIT_NOT_EXPR:
6187 : 0 : {
6188 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
6189 : 0 : {
6190 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q60, _q30, _p1 };
6191 : 0 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
6192 : 0 : if (res) return res;
6193 : : }
6194 : 0 : break;
6195 : : }
6196 : : default:;
6197 : : }
6198 : : }
6199 : : }
6200 : 16 : switch (TREE_CODE (_q30))
6201 : : {
6202 : 16 : case BIT_NOT_EXPR:
6203 : 16 : {
6204 : 16 : tree _q40 = TREE_OPERAND (_q30, 0);
6205 : 16 : {
6206 : 16 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q31, _p1 };
6207 : 16 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
6208 : 16 : if (res) return res;
6209 : : }
6210 : 0 : break;
6211 : : }
6212 : 0 : default:;
6213 : : }
6214 : 0 : switch (TREE_CODE (_q31))
6215 : : {
6216 : 0 : case BIT_NOT_EXPR:
6217 : 0 : {
6218 : 0 : tree _q50 = TREE_OPERAND (_q31, 0);
6219 : 0 : {
6220 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q30, _p1 };
6221 : 0 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
6222 : 0 : if (res) return res;
6223 : : }
6224 : 0 : break;
6225 : : }
6226 : : default:;
6227 : : }
6228 : : break;
6229 : : }
6230 : : default:;
6231 : : }
6232 : : }
6233 : : }
6234 : 695825 : switch (TREE_CODE (_p1))
6235 : : {
6236 : 516 : case BIT_IOR_EXPR:
6237 : 516 : {
6238 : 516 : tree _q30 = TREE_OPERAND (_p1, 0);
6239 : 516 : tree _q31 = TREE_OPERAND (_p1, 1);
6240 : 516 : {
6241 : 516 : tree _q30_pops[1];
6242 : 516 : if (tree_nop_convert (_q30, _q30_pops))
6243 : : {
6244 : 2 : tree _q40 = _q30_pops[0];
6245 : 2 : switch (TREE_CODE (_q40))
6246 : : {
6247 : 0 : case BIT_NOT_EXPR:
6248 : 0 : {
6249 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
6250 : 0 : {
6251 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q31, _p0 };
6252 : 0 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
6253 : 0 : if (res) return res;
6254 : : }
6255 : 0 : break;
6256 : : }
6257 : : default:;
6258 : : }
6259 : : }
6260 : : }
6261 : 516 : {
6262 : 516 : tree _q31_pops[1];
6263 : 516 : if (tree_nop_convert (_q31, _q31_pops))
6264 : : {
6265 : 2 : tree _q50 = _q31_pops[0];
6266 : 2 : switch (TREE_CODE (_q50))
6267 : : {
6268 : 0 : case BIT_NOT_EXPR:
6269 : 0 : {
6270 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
6271 : 0 : {
6272 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q60, _q30, _p0 };
6273 : 0 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
6274 : 0 : if (res) return res;
6275 : : }
6276 : 0 : break;
6277 : : }
6278 : : default:;
6279 : : }
6280 : : }
6281 : : }
6282 : 516 : switch (TREE_CODE (_q30))
6283 : : {
6284 : 18 : case BIT_NOT_EXPR:
6285 : 18 : {
6286 : 18 : tree _q40 = TREE_OPERAND (_q30, 0);
6287 : 18 : {
6288 : 18 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q31, _p0 };
6289 : 18 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
6290 : 18 : if (res) return res;
6291 : : }
6292 : 18 : break;
6293 : : }
6294 : 516 : default:;
6295 : : }
6296 : 516 : switch (TREE_CODE (_q31))
6297 : : {
6298 : 25 : case BIT_NOT_EXPR:
6299 : 25 : {
6300 : 25 : tree _q50 = TREE_OPERAND (_q31, 0);
6301 : 25 : {
6302 : 25 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q30, _p0 };
6303 : 25 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
6304 : 25 : if (res) return res;
6305 : : }
6306 : 17 : break;
6307 : : }
6308 : : default:;
6309 : : }
6310 : : break;
6311 : : }
6312 : 695817 : default:;
6313 : : }
6314 : 695817 : {
6315 : 695817 : tree _p1_pops[1];
6316 : 695817 : if (tree_nop_convert (_p1, _p1_pops))
6317 : : {
6318 : 529687 : tree _q30 = _p1_pops[0];
6319 : 529687 : switch (TREE_CODE (_q30))
6320 : : {
6321 : 0 : case BIT_IOR_EXPR:
6322 : 0 : {
6323 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
6324 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
6325 : 0 : {
6326 : 0 : tree _q40_pops[1];
6327 : 0 : if (tree_nop_convert (_q40, _q40_pops))
6328 : : {
6329 : 0 : tree _q50 = _q40_pops[0];
6330 : 0 : switch (TREE_CODE (_q50))
6331 : : {
6332 : 0 : case BIT_NOT_EXPR:
6333 : 0 : {
6334 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
6335 : 0 : {
6336 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q60, _q41, _p0 };
6337 : 0 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
6338 : 0 : if (res) return res;
6339 : : }
6340 : 0 : break;
6341 : : }
6342 : : default:;
6343 : : }
6344 : : }
6345 : : }
6346 : 0 : {
6347 : 0 : tree _q41_pops[1];
6348 : 0 : if (tree_nop_convert (_q41, _q41_pops))
6349 : : {
6350 : 0 : tree _q60 = _q41_pops[0];
6351 : 0 : switch (TREE_CODE (_q60))
6352 : : {
6353 : 0 : case BIT_NOT_EXPR:
6354 : 0 : {
6355 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
6356 : 0 : {
6357 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q70, _q40, _p0 };
6358 : 0 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
6359 : 0 : if (res) return res;
6360 : : }
6361 : 0 : break;
6362 : : }
6363 : : default:;
6364 : : }
6365 : : }
6366 : : }
6367 : 0 : switch (TREE_CODE (_q40))
6368 : : {
6369 : 0 : case BIT_NOT_EXPR:
6370 : 0 : {
6371 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
6372 : 0 : {
6373 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q41, _p0 };
6374 : 0 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
6375 : 0 : if (res) return res;
6376 : : }
6377 : 0 : break;
6378 : : }
6379 : 0 : default:;
6380 : : }
6381 : 0 : switch (TREE_CODE (_q41))
6382 : : {
6383 : 0 : case BIT_NOT_EXPR:
6384 : 0 : {
6385 : 0 : tree _q60 = TREE_OPERAND (_q41, 0);
6386 : 0 : {
6387 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q60, _q40, _p0 };
6388 : 0 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
6389 : 0 : if (res) return res;
6390 : : }
6391 : 0 : break;
6392 : : }
6393 : : default:;
6394 : : }
6395 : : break;
6396 : : }
6397 : : default:;
6398 : : }
6399 : : }
6400 : : }
6401 : 695817 : switch (TREE_CODE (_p0))
6402 : : {
6403 : 506645 : CASE_CONVERT:
6404 : 506645 : {
6405 : 506645 : tree _q20 = TREE_OPERAND (_p0, 0);
6406 : 506645 : switch (TREE_CODE (_q20))
6407 : : {
6408 : 50 : case BIT_NOT_EXPR:
6409 : 50 : {
6410 : 50 : tree _q30 = TREE_OPERAND (_q20, 0);
6411 : 50 : switch (TREE_CODE (_p1))
6412 : : {
6413 : 0 : CASE_CONVERT:
6414 : 0 : {
6415 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
6416 : 0 : switch (TREE_CODE (_q50))
6417 : : {
6418 : 0 : case BIT_NOT_EXPR:
6419 : 0 : {
6420 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
6421 : 0 : {
6422 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q60 };
6423 : 0 : tree res = generic_simplify_162 (loc, type, _p0, _p1, captures);
6424 : 0 : if (res) return res;
6425 : : }
6426 : 0 : break;
6427 : : }
6428 : : default:;
6429 : : }
6430 : : break;
6431 : : }
6432 : 0 : case BIT_NOT_EXPR:
6433 : 0 : {
6434 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
6435 : 0 : {
6436 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q50 };
6437 : 0 : tree res = generic_simplify_162 (loc, type, _p0, _p1, captures);
6438 : 0 : if (res) return res;
6439 : : }
6440 : 0 : break;
6441 : : }
6442 : 26 : case INTEGER_CST:
6443 : 26 : {
6444 : 26 : {
6445 : 26 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p1 };
6446 : 26 : tree res = generic_simplify_163 (loc, type, _p0, _p1, captures);
6447 : 26 : if (res) return res;
6448 : : }
6449 : 24 : break;
6450 : : }
6451 : : default:;
6452 : : }
6453 : : break;
6454 : : }
6455 : : default:;
6456 : : }
6457 : : break;
6458 : : }
6459 : 477 : case BIT_NOT_EXPR:
6460 : 477 : {
6461 : 477 : tree _q20 = TREE_OPERAND (_p0, 0);
6462 : 477 : switch (TREE_CODE (_p1))
6463 : : {
6464 : 18 : CASE_CONVERT:
6465 : 18 : {
6466 : 18 : tree _q40 = TREE_OPERAND (_p1, 0);
6467 : 18 : switch (TREE_CODE (_q40))
6468 : : {
6469 : 0 : case BIT_NOT_EXPR:
6470 : 0 : {
6471 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
6472 : 0 : {
6473 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q50 };
6474 : 0 : tree res = generic_simplify_162 (loc, type, _p0, _p1, captures);
6475 : 0 : if (res) return res;
6476 : : }
6477 : 0 : break;
6478 : : }
6479 : : default:;
6480 : : }
6481 : : break;
6482 : : }
6483 : 10 : case BIT_NOT_EXPR:
6484 : 10 : {
6485 : 10 : tree _q40 = TREE_OPERAND (_p1, 0);
6486 : 10 : {
6487 : 10 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
6488 : 10 : tree res = generic_simplify_162 (loc, type, _p0, _p1, captures);
6489 : 10 : if (res) return res;
6490 : : }
6491 : 0 : break;
6492 : : }
6493 : 24 : case INTEGER_CST:
6494 : 24 : {
6495 : 24 : {
6496 : 24 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
6497 : 24 : tree res = generic_simplify_163 (loc, type, _p0, _p1, captures);
6498 : 24 : if (res) return res;
6499 : : }
6500 : 0 : break;
6501 : : }
6502 : 443 : default:;
6503 : : }
6504 : 443 : {
6505 : 443 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _p1 };
6506 : 443 : tree res = generic_simplify_164 (loc, type, _p0, _p1, captures);
6507 : 443 : if (res) return res;
6508 : : }
6509 : 0 : break;
6510 : : }
6511 : 2832 : case BIT_AND_EXPR:
6512 : 2832 : {
6513 : 2832 : tree _q20 = TREE_OPERAND (_p0, 0);
6514 : 2832 : tree _q21 = TREE_OPERAND (_p0, 1);
6515 : 2832 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6516 : : {
6517 : 67 : {
6518 : 67 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
6519 : 67 : tree res = generic_simplify_165 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6520 : 67 : if (res) return res;
6521 : : }
6522 : : }
6523 : 2765 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
6524 : : {
6525 : 3 : {
6526 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
6527 : 3 : tree res = generic_simplify_165 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6528 : 3 : if (res) return res;
6529 : : }
6530 : : }
6531 : 2762 : switch (TREE_CODE (_p1))
6532 : : {
6533 : 353 : case BIT_AND_EXPR:
6534 : 353 : {
6535 : 353 : tree _q50 = TREE_OPERAND (_p1, 0);
6536 : 353 : tree _q51 = TREE_OPERAND (_p1, 1);
6537 : 353 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
6538 : : {
6539 : 21 : {
6540 : 21 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q51, _q20 };
6541 : 21 : tree res = generic_simplify_95 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6542 : 21 : if (res) return res;
6543 : : }
6544 : : }
6545 : 332 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q20, 0))
6546 : : {
6547 : 0 : {
6548 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q50, _q20 };
6549 : 0 : tree res = generic_simplify_95 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6550 : 0 : if (res) return res;
6551 : : }
6552 : : }
6553 : 332 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q21, 0))
6554 : : {
6555 : 0 : {
6556 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q51, _q21 };
6557 : 0 : tree res = generic_simplify_95 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6558 : 0 : if (res) return res;
6559 : : }
6560 : : }
6561 : 332 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q21, 0))
6562 : : {
6563 : 201 : {
6564 : 201 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q50, _q21 };
6565 : 201 : tree res = generic_simplify_95 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6566 : 201 : if (res) return res;
6567 : : }
6568 : : }
6569 : : break;
6570 : : }
6571 : : default:;
6572 : : }
6573 : : break;
6574 : : }
6575 : 695046 : default:;
6576 : : }
6577 : 695046 : switch (TREE_CODE (_p1))
6578 : : {
6579 : 421 : case BIT_AND_EXPR:
6580 : 421 : {
6581 : 421 : tree _q30 = TREE_OPERAND (_p1, 0);
6582 : 421 : tree _q31 = TREE_OPERAND (_p1, 1);
6583 : 421 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
6584 : : {
6585 : 0 : {
6586 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q30, _p0 };
6587 : 0 : tree res = generic_simplify_165 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6588 : 0 : if (res) return res;
6589 : : }
6590 : : }
6591 : 421 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
6592 : : {
6593 : 0 : {
6594 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q31, _p0 };
6595 : 0 : tree res = generic_simplify_165 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6596 : 0 : if (res) return res;
6597 : : }
6598 : : }
6599 : : break;
6600 : : }
6601 : 695046 : default:;
6602 : : }
6603 : 695046 : switch (TREE_CODE (_p0))
6604 : : {
6605 : 506643 : CASE_CONVERT:
6606 : 506643 : {
6607 : 506643 : tree _q20 = TREE_OPERAND (_p0, 0);
6608 : 506643 : switch (TREE_CODE (_q20))
6609 : : {
6610 : 24 : case BIT_AND_EXPR:
6611 : 24 : {
6612 : 24 : tree _q30 = TREE_OPERAND (_q20, 0);
6613 : 24 : tree _q31 = TREE_OPERAND (_q20, 1);
6614 : 24 : switch (TREE_CODE (_p1))
6615 : : {
6616 : 8 : CASE_CONVERT:
6617 : 8 : {
6618 : 8 : tree _q60 = TREE_OPERAND (_p1, 0);
6619 : 8 : switch (TREE_CODE (_q60))
6620 : : {
6621 : 0 : case BIT_AND_EXPR:
6622 : 0 : {
6623 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
6624 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
6625 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q30, 0))
6626 : : {
6627 : 0 : {
6628 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q71, _q30 };
6629 : 0 : tree res = generic_simplify_95 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6630 : 0 : if (res) return res;
6631 : : }
6632 : : }
6633 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || operand_equal_p (_q71, _q30, 0))
6634 : : {
6635 : 0 : {
6636 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q70, _q30 };
6637 : 0 : tree res = generic_simplify_95 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6638 : 0 : if (res) return res;
6639 : : }
6640 : : }
6641 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q31, 0))
6642 : : {
6643 : 0 : {
6644 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q31, _q30, _q71, _q31 };
6645 : 0 : tree res = generic_simplify_95 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6646 : 0 : if (res) return res;
6647 : : }
6648 : : }
6649 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || operand_equal_p (_q71, _q31, 0))
6650 : : {
6651 : 0 : {
6652 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q31, _q30, _q70, _q31 };
6653 : 0 : tree res = generic_simplify_95 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6654 : 0 : if (res) return res;
6655 : : }
6656 : : }
6657 : : break;
6658 : : }
6659 : : default:;
6660 : : }
6661 : : break;
6662 : : }
6663 : : default:;
6664 : : }
6665 : : break;
6666 : : }
6667 : 15193 : case BIT_XOR_EXPR:
6668 : 15193 : {
6669 : 15193 : tree _q30 = TREE_OPERAND (_q20, 0);
6670 : 15193 : tree _q31 = TREE_OPERAND (_q20, 1);
6671 : 15193 : switch (TREE_CODE (_p1))
6672 : : {
6673 : 15128 : CASE_CONVERT:
6674 : 15128 : {
6675 : 15128 : tree _q60 = TREE_OPERAND (_p1, 0);
6676 : 15128 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q31, 0))
6677 : : {
6678 : 0 : {
6679 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q31 };
6680 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6681 : 0 : if (res) return res;
6682 : : }
6683 : : }
6684 : 15128 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q30, 0))
6685 : : {
6686 : 0 : {
6687 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q30 };
6688 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6689 : 0 : if (res) return res;
6690 : : }
6691 : : }
6692 : : break;
6693 : : }
6694 : 15193 : default:;
6695 : : }
6696 : 15193 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q31, 0))
6697 : : {
6698 : 0 : {
6699 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q31 };
6700 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6701 : 0 : if (res) return res;
6702 : : }
6703 : : }
6704 : 15193 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q30, 0))
6705 : : {
6706 : 0 : {
6707 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q30 };
6708 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6709 : 0 : if (res) return res;
6710 : : }
6711 : : }
6712 : : break;
6713 : : }
6714 : 506643 : default:;
6715 : : }
6716 : 506643 : switch (TREE_CODE (_p1))
6717 : : {
6718 : 502778 : CASE_CONVERT:
6719 : 502778 : {
6720 : 502778 : tree _q40 = TREE_OPERAND (_p1, 0);
6721 : 502778 : switch (TREE_CODE (_q40))
6722 : : {
6723 : 0 : case BIT_XOR_EXPR:
6724 : 0 : {
6725 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
6726 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
6727 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q20, 0))
6728 : : {
6729 : 0 : {
6730 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q51, _q20 };
6731 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6732 : 0 : if (res) return res;
6733 : : }
6734 : : }
6735 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
6736 : : {
6737 : 0 : {
6738 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q51, _q50, _q20 };
6739 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6740 : 0 : if (res) return res;
6741 : : }
6742 : : }
6743 : : break;
6744 : : }
6745 : : default:;
6746 : : }
6747 : : break;
6748 : : }
6749 : 2 : case BIT_XOR_EXPR:
6750 : 2 : {
6751 : 2 : tree _q40 = TREE_OPERAND (_p1, 0);
6752 : 2 : tree _q41 = TREE_OPERAND (_p1, 1);
6753 : 2 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _q20, 0))
6754 : : {
6755 : 0 : {
6756 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _q20 };
6757 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6758 : 0 : if (res) return res;
6759 : : }
6760 : : }
6761 : 2 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _q20, 0))
6762 : : {
6763 : 0 : {
6764 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _q20 };
6765 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6766 : 0 : if (res) return res;
6767 : : }
6768 : : }
6769 : : break;
6770 : : }
6771 : : default:;
6772 : : }
6773 : : break;
6774 : : }
6775 : 695046 : default:;
6776 : : }
6777 : 695046 : switch (TREE_CODE (_p1))
6778 : : {
6779 : 546455 : CASE_CONVERT:
6780 : 546455 : {
6781 : 546455 : tree _q30 = TREE_OPERAND (_p1, 0);
6782 : 546455 : switch (TREE_CODE (_q30))
6783 : : {
6784 : 8 : case BIT_XOR_EXPR:
6785 : 8 : {
6786 : 8 : tree _q40 = TREE_OPERAND (_q30, 0);
6787 : 8 : tree _q41 = TREE_OPERAND (_q30, 1);
6788 : 8 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _p0, 0))
6789 : : {
6790 : 0 : {
6791 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _p0 };
6792 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6793 : 0 : if (res) return res;
6794 : : }
6795 : : }
6796 : 8 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _p0, 0))
6797 : : {
6798 : 0 : {
6799 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _p0 };
6800 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6801 : 0 : if (res) return res;
6802 : : }
6803 : : }
6804 : : break;
6805 : : }
6806 : : default:;
6807 : : }
6808 : : break;
6809 : : }
6810 : 78 : case BIT_XOR_EXPR:
6811 : 78 : {
6812 : 78 : tree _q30 = TREE_OPERAND (_p1, 0);
6813 : 78 : tree _q31 = TREE_OPERAND (_p1, 1);
6814 : 78 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || operand_equal_p (_q31, _p0, 0))
6815 : : {
6816 : 0 : {
6817 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p0 };
6818 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6819 : 0 : if (res) return res;
6820 : : }
6821 : : }
6822 : 78 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || operand_equal_p (_q30, _p0, 0))
6823 : : {
6824 : 0 : {
6825 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _p0 };
6826 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6827 : 0 : if (res) return res;
6828 : : }
6829 : : }
6830 : : break;
6831 : : }
6832 : 695046 : default:;
6833 : : }
6834 : 695046 : switch (TREE_CODE (_p0))
6835 : : {
6836 : 506643 : CASE_CONVERT:
6837 : 506643 : {
6838 : 506643 : tree _q20 = TREE_OPERAND (_p0, 0);
6839 : 506643 : switch (TREE_CODE (_q20))
6840 : : {
6841 : 15193 : case BIT_XOR_EXPR:
6842 : 15193 : {
6843 : 15193 : tree _q30 = TREE_OPERAND (_q20, 0);
6844 : 15193 : tree _q31 = TREE_OPERAND (_q20, 1);
6845 : 15193 : switch (TREE_CODE (_p1))
6846 : : {
6847 : 15128 : CASE_CONVERT:
6848 : 15128 : {
6849 : 15128 : tree _q60 = TREE_OPERAND (_p1, 0);
6850 : 15128 : switch (TREE_CODE (_q60))
6851 : : {
6852 : 0 : case BIT_XOR_EXPR:
6853 : 0 : {
6854 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
6855 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
6856 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
6857 : : {
6858 : 0 : {
6859 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q71 };
6860 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
6861 : 0 : if (res) return res;
6862 : : }
6863 : : }
6864 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
6865 : : {
6866 : 0 : {
6867 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q70 };
6868 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
6869 : 0 : if (res) return res;
6870 : : }
6871 : : }
6872 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
6873 : : {
6874 : 0 : {
6875 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q71 };
6876 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
6877 : 0 : if (res) return res;
6878 : : }
6879 : : }
6880 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
6881 : : {
6882 : 0 : {
6883 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q70 };
6884 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
6885 : 0 : if (res) return res;
6886 : : }
6887 : : }
6888 : : break;
6889 : : }
6890 : : default:;
6891 : : }
6892 : : break;
6893 : : }
6894 : 0 : case BIT_XOR_EXPR:
6895 : 0 : {
6896 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
6897 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
6898 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
6899 : : {
6900 : 0 : {
6901 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q61 };
6902 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
6903 : 0 : if (res) return res;
6904 : : }
6905 : : }
6906 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
6907 : : {
6908 : 0 : {
6909 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q60 };
6910 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
6911 : 0 : if (res) return res;
6912 : : }
6913 : : }
6914 : 0 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q31, 0) && types_match (_q60, _q31)))
6915 : : {
6916 : 0 : {
6917 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q61 };
6918 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
6919 : 0 : if (res) return res;
6920 : : }
6921 : : }
6922 : 0 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
6923 : : {
6924 : 0 : {
6925 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q60 };
6926 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
6927 : 0 : if (res) return res;
6928 : : }
6929 : : }
6930 : : break;
6931 : : }
6932 : : default:;
6933 : : }
6934 : : break;
6935 : : }
6936 : 506643 : default:;
6937 : : }
6938 : 506643 : switch (TREE_CODE (_p1))
6939 : : {
6940 : 502778 : CASE_CONVERT:
6941 : 502778 : {
6942 : 502778 : tree _q40 = TREE_OPERAND (_p1, 0);
6943 : 502778 : {
6944 : 502778 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
6945 : 502778 : tree res = generic_simplify_102 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
6946 : 502778 : if (res) return res;
6947 : : }
6948 : 478818 : break;
6949 : : }
6950 : 482683 : default:;
6951 : : }
6952 : 482683 : {
6953 : 482683 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
6954 : 482683 : tree res = generic_simplify_103 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
6955 : 482683 : if (res) return res;
6956 : : }
6957 : 482575 : break;
6958 : : }
6959 : 3869 : case BIT_XOR_EXPR:
6960 : 3869 : {
6961 : 3869 : tree _q20 = TREE_OPERAND (_p0, 0);
6962 : 3869 : tree _q21 = TREE_OPERAND (_p0, 1);
6963 : 3869 : switch (TREE_CODE (_p1))
6964 : : {
6965 : 198 : CASE_CONVERT:
6966 : 198 : {
6967 : 198 : tree _q50 = TREE_OPERAND (_p1, 0);
6968 : 198 : switch (TREE_CODE (_q50))
6969 : : {
6970 : 0 : case BIT_XOR_EXPR:
6971 : 0 : {
6972 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
6973 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
6974 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
6975 : : {
6976 : 0 : {
6977 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q61 };
6978 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
6979 : 0 : if (res) return res;
6980 : : }
6981 : : }
6982 : 0 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
6983 : : {
6984 : 0 : {
6985 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q60 };
6986 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
6987 : 0 : if (res) return res;
6988 : : }
6989 : : }
6990 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
6991 : : {
6992 : 0 : {
6993 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q61 };
6994 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
6995 : 0 : if (res) return res;
6996 : : }
6997 : : }
6998 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
6999 : : {
7000 : 0 : {
7001 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q60 };
7002 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
7003 : 0 : if (res) return res;
7004 : : }
7005 : : }
7006 : : break;
7007 : : }
7008 : : default:;
7009 : : }
7010 : : break;
7011 : : }
7012 : 10 : case BIT_XOR_EXPR:
7013 : 10 : {
7014 : 10 : tree _q50 = TREE_OPERAND (_p1, 0);
7015 : 10 : tree _q51 = TREE_OPERAND (_p1, 1);
7016 : 10 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
7017 : : {
7018 : 0 : {
7019 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
7020 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
7021 : 0 : if (res) return res;
7022 : : }
7023 : : }
7024 : 10 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
7025 : : {
7026 : 0 : {
7027 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
7028 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
7029 : 0 : if (res) return res;
7030 : : }
7031 : : }
7032 : 10 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7033 : : {
7034 : 0 : {
7035 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
7036 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
7037 : 0 : if (res) return res;
7038 : : }
7039 : : }
7040 : 10 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7041 : : {
7042 : 0 : {
7043 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
7044 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
7045 : 0 : if (res) return res;
7046 : : }
7047 : : }
7048 : : break;
7049 : : }
7050 : 3869 : default:;
7051 : : }
7052 : 3869 : if (CONSTANT_CLASS_P (_q21))
7053 : : {
7054 : 49 : if (CONSTANT_CLASS_P (_p1))
7055 : : {
7056 : 30 : {
7057 : 30 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7058 : 30 : tree res = generic_simplify_118 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
7059 : 30 : if (res) return res;
7060 : : }
7061 : : }
7062 : : }
7063 : : break;
7064 : : }
7065 : 63 : case COND_EXPR:
7066 : 63 : {
7067 : 63 : tree _q20 = TREE_OPERAND (_p0, 0);
7068 : 63 : tree _q21 = TREE_OPERAND (_p0, 1);
7069 : 63 : tree _q22 = TREE_OPERAND (_p0, 2);
7070 : 63 : if (integer_zerop (_q22))
7071 : : {
7072 : 63 : switch (TREE_CODE (_p1))
7073 : : {
7074 : 4 : case COND_EXPR:
7075 : 4 : {
7076 : 4 : tree _q60 = TREE_OPERAND (_p1, 0);
7077 : 4 : tree _q61 = TREE_OPERAND (_p1, 1);
7078 : 4 : tree _q62 = TREE_OPERAND (_p1, 2);
7079 : 4 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
7080 : : {
7081 : 0 : if (integer_zerop (_q61))
7082 : : {
7083 : 0 : {
7084 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q62 };
7085 : 0 : const enum tree_code op = BIT_XOR_EXPR;
7086 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1411;
7087 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1411;
7088 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1411;
7089 : 0 : {
7090 : 0 : tree res_op0;
7091 : 0 : res_op0 = captures[1];
7092 : 0 : tree res_op1;
7093 : 0 : res_op1 = captures[2];
7094 : 0 : tree res_op2;
7095 : 0 : res_op2 = captures[4];
7096 : 0 : tree _r;
7097 : 0 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
7098 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 900, __FILE__, __LINE__, true);
7099 : 0 : return _r;
7100 : : }
7101 : 0 : next_after_fail1411:;
7102 : : }
7103 : : }
7104 : : }
7105 : : break;
7106 : : }
7107 : : default:;
7108 : : }
7109 : : }
7110 : 63 : if (integer_zerop (_q21))
7111 : : {
7112 : 0 : switch (TREE_CODE (_p1))
7113 : : {
7114 : 0 : case COND_EXPR:
7115 : 0 : {
7116 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
7117 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
7118 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
7119 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
7120 : : {
7121 : 0 : if (integer_zerop (_q62))
7122 : : {
7123 : 0 : {
7124 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q20, _q61, _p0, _q22 };
7125 : 0 : const enum tree_code op = BIT_XOR_EXPR;
7126 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1412;
7127 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1412;
7128 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1412;
7129 : 0 : {
7130 : 0 : tree res_op0;
7131 : 0 : res_op0 = captures[1];
7132 : 0 : tree res_op1;
7133 : 0 : res_op1 = captures[2];
7134 : 0 : tree res_op2;
7135 : 0 : res_op2 = captures[4];
7136 : 0 : tree _r;
7137 : 0 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
7138 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 900, __FILE__, __LINE__, true);
7139 : 0 : return _r;
7140 : : }
7141 : 0 : next_after_fail1412:;
7142 : : }
7143 : : }
7144 : : }
7145 : : break;
7146 : : }
7147 : : default:;
7148 : : }
7149 : : }
7150 : 63 : switch (TREE_CODE (_q20))
7151 : : {
7152 : 0 : case LT_EXPR:
7153 : 0 : {
7154 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7155 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7156 : 0 : if (zerop (_q22))
7157 : : {
7158 : 0 : switch (TREE_CODE (_p1))
7159 : : {
7160 : 0 : case COND_EXPR:
7161 : 0 : {
7162 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7163 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7164 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7165 : 0 : switch (TREE_CODE (_q80))
7166 : : {
7167 : 0 : case GE_EXPR:
7168 : 0 : {
7169 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7170 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7171 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7172 : : {
7173 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7174 : : {
7175 : 0 : if (zerop (_q82))
7176 : : {
7177 : 0 : {
7178 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7179 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, LT_EXPR, GE_EXPR);
7180 : 0 : if (res) return res;
7181 : : }
7182 : : }
7183 : : }
7184 : : }
7185 : : break;
7186 : : }
7187 : : default:;
7188 : : }
7189 : : break;
7190 : : }
7191 : : default:;
7192 : : }
7193 : : }
7194 : : break;
7195 : : }
7196 : 32 : case LE_EXPR:
7197 : 32 : {
7198 : 32 : tree _q30 = TREE_OPERAND (_q20, 0);
7199 : 32 : tree _q31 = TREE_OPERAND (_q20, 1);
7200 : 32 : if (zerop (_q22))
7201 : : {
7202 : 32 : switch (TREE_CODE (_p1))
7203 : : {
7204 : 0 : case COND_EXPR:
7205 : 0 : {
7206 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7207 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7208 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7209 : 0 : switch (TREE_CODE (_q80))
7210 : : {
7211 : 0 : case GT_EXPR:
7212 : 0 : {
7213 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7214 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7215 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7216 : : {
7217 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7218 : : {
7219 : 0 : if (zerop (_q82))
7220 : : {
7221 : 0 : {
7222 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7223 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, LE_EXPR, GT_EXPR);
7224 : 0 : if (res) return res;
7225 : : }
7226 : : }
7227 : : }
7228 : : }
7229 : : break;
7230 : : }
7231 : : default:;
7232 : : }
7233 : : break;
7234 : : }
7235 : : default:;
7236 : : }
7237 : : }
7238 : : break;
7239 : : }
7240 : 0 : case EQ_EXPR:
7241 : 0 : {
7242 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7243 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7244 : 0 : if (zerop (_q22))
7245 : : {
7246 : 0 : switch (TREE_CODE (_p1))
7247 : : {
7248 : 0 : case COND_EXPR:
7249 : 0 : {
7250 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7251 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7252 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7253 : 0 : switch (TREE_CODE (_q80))
7254 : : {
7255 : 0 : case NE_EXPR:
7256 : 0 : {
7257 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7258 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7259 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7260 : : {
7261 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7262 : : {
7263 : 0 : if (zerop (_q82))
7264 : : {
7265 : 0 : {
7266 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7267 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, EQ_EXPR, NE_EXPR);
7268 : 0 : if (res) return res;
7269 : : }
7270 : : }
7271 : : }
7272 : : }
7273 : : break;
7274 : : }
7275 : : default:;
7276 : : }
7277 : : break;
7278 : : }
7279 : : default:;
7280 : : }
7281 : : }
7282 : : break;
7283 : : }
7284 : 31 : case NE_EXPR:
7285 : 31 : {
7286 : 31 : tree _q30 = TREE_OPERAND (_q20, 0);
7287 : 31 : tree _q31 = TREE_OPERAND (_q20, 1);
7288 : 31 : if (zerop (_q22))
7289 : : {
7290 : 31 : switch (TREE_CODE (_p1))
7291 : : {
7292 : 4 : case COND_EXPR:
7293 : 4 : {
7294 : 4 : tree _q80 = TREE_OPERAND (_p1, 0);
7295 : 4 : tree _q81 = TREE_OPERAND (_p1, 1);
7296 : 4 : tree _q82 = TREE_OPERAND (_p1, 2);
7297 : 4 : switch (TREE_CODE (_q80))
7298 : : {
7299 : 0 : case EQ_EXPR:
7300 : 0 : {
7301 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7302 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7303 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7304 : : {
7305 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7306 : : {
7307 : 0 : if (zerop (_q82))
7308 : : {
7309 : 0 : {
7310 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7311 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, NE_EXPR, EQ_EXPR);
7312 : 0 : if (res) return res;
7313 : : }
7314 : : }
7315 : : }
7316 : : }
7317 : : break;
7318 : : }
7319 : : default:;
7320 : : }
7321 : : break;
7322 : : }
7323 : : default:;
7324 : : }
7325 : : }
7326 : : break;
7327 : : }
7328 : 0 : case GE_EXPR:
7329 : 0 : {
7330 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7331 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7332 : 0 : if (zerop (_q22))
7333 : : {
7334 : 0 : switch (TREE_CODE (_p1))
7335 : : {
7336 : 0 : case COND_EXPR:
7337 : 0 : {
7338 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7339 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7340 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7341 : 0 : switch (TREE_CODE (_q80))
7342 : : {
7343 : 0 : case LT_EXPR:
7344 : 0 : {
7345 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7346 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7347 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7348 : : {
7349 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7350 : : {
7351 : 0 : if (zerop (_q82))
7352 : : {
7353 : 0 : {
7354 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7355 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, GE_EXPR, LT_EXPR);
7356 : 0 : if (res) return res;
7357 : : }
7358 : : }
7359 : : }
7360 : : }
7361 : : break;
7362 : : }
7363 : : default:;
7364 : : }
7365 : : break;
7366 : : }
7367 : : default:;
7368 : : }
7369 : : }
7370 : : break;
7371 : : }
7372 : 0 : case GT_EXPR:
7373 : 0 : {
7374 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7375 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7376 : 0 : if (zerop (_q22))
7377 : : {
7378 : 0 : switch (TREE_CODE (_p1))
7379 : : {
7380 : 0 : case COND_EXPR:
7381 : 0 : {
7382 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7383 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7384 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7385 : 0 : switch (TREE_CODE (_q80))
7386 : : {
7387 : 0 : case LE_EXPR:
7388 : 0 : {
7389 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7390 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7391 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7392 : : {
7393 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7394 : : {
7395 : 0 : if (zerop (_q82))
7396 : : {
7397 : 0 : {
7398 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7399 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, GT_EXPR, LE_EXPR);
7400 : 0 : if (res) return res;
7401 : : }
7402 : : }
7403 : : }
7404 : : }
7405 : : break;
7406 : : }
7407 : : default:;
7408 : : }
7409 : : break;
7410 : : }
7411 : : default:;
7412 : : }
7413 : : }
7414 : : break;
7415 : : }
7416 : 0 : case UNORDERED_EXPR:
7417 : 0 : {
7418 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7419 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7420 : 0 : if (zerop (_q22))
7421 : : {
7422 : 0 : switch (TREE_CODE (_p1))
7423 : : {
7424 : 0 : case COND_EXPR:
7425 : 0 : {
7426 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7427 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7428 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7429 : 0 : switch (TREE_CODE (_q80))
7430 : : {
7431 : 0 : case ORDERED_EXPR:
7432 : 0 : {
7433 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7434 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7435 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7436 : : {
7437 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7438 : : {
7439 : 0 : if (zerop (_q82))
7440 : : {
7441 : 0 : {
7442 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7443 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNORDERED_EXPR, ORDERED_EXPR);
7444 : 0 : if (res) return res;
7445 : : }
7446 : : }
7447 : : }
7448 : : }
7449 : : break;
7450 : : }
7451 : : default:;
7452 : : }
7453 : : break;
7454 : : }
7455 : : default:;
7456 : : }
7457 : : }
7458 : : break;
7459 : : }
7460 : 0 : case ORDERED_EXPR:
7461 : 0 : {
7462 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7463 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7464 : 0 : if (zerop (_q22))
7465 : : {
7466 : 0 : switch (TREE_CODE (_p1))
7467 : : {
7468 : 0 : case COND_EXPR:
7469 : 0 : {
7470 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7471 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7472 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7473 : 0 : switch (TREE_CODE (_q80))
7474 : : {
7475 : 0 : case UNORDERED_EXPR:
7476 : 0 : {
7477 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7478 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7479 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7480 : : {
7481 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7482 : : {
7483 : 0 : if (zerop (_q82))
7484 : : {
7485 : 0 : {
7486 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7487 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, ORDERED_EXPR, UNORDERED_EXPR);
7488 : 0 : if (res) return res;
7489 : : }
7490 : : }
7491 : : }
7492 : : }
7493 : : break;
7494 : : }
7495 : : default:;
7496 : : }
7497 : : break;
7498 : : }
7499 : : default:;
7500 : : }
7501 : : }
7502 : : break;
7503 : : }
7504 : 0 : case UNLT_EXPR:
7505 : 0 : {
7506 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7507 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7508 : 0 : if (zerop (_q22))
7509 : : {
7510 : 0 : switch (TREE_CODE (_p1))
7511 : : {
7512 : 0 : case COND_EXPR:
7513 : 0 : {
7514 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7515 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7516 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7517 : 0 : switch (TREE_CODE (_q80))
7518 : : {
7519 : 0 : case GE_EXPR:
7520 : 0 : {
7521 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7522 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7523 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7524 : : {
7525 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7526 : : {
7527 : 0 : if (zerop (_q82))
7528 : : {
7529 : 0 : {
7530 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7531 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNLT_EXPR, GE_EXPR);
7532 : 0 : if (res) return res;
7533 : : }
7534 : : }
7535 : : }
7536 : : }
7537 : : break;
7538 : : }
7539 : : default:;
7540 : : }
7541 : : break;
7542 : : }
7543 : : default:;
7544 : : }
7545 : : }
7546 : : break;
7547 : : }
7548 : 0 : case UNLE_EXPR:
7549 : 0 : {
7550 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7551 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7552 : 0 : if (zerop (_q22))
7553 : : {
7554 : 0 : switch (TREE_CODE (_p1))
7555 : : {
7556 : 0 : case COND_EXPR:
7557 : 0 : {
7558 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7559 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7560 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7561 : 0 : switch (TREE_CODE (_q80))
7562 : : {
7563 : 0 : case GT_EXPR:
7564 : 0 : {
7565 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7566 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7567 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7568 : : {
7569 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7570 : : {
7571 : 0 : if (zerop (_q82))
7572 : : {
7573 : 0 : {
7574 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7575 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNLE_EXPR, GT_EXPR);
7576 : 0 : if (res) return res;
7577 : : }
7578 : : }
7579 : : }
7580 : : }
7581 : : break;
7582 : : }
7583 : : default:;
7584 : : }
7585 : : break;
7586 : : }
7587 : : default:;
7588 : : }
7589 : : }
7590 : : break;
7591 : : }
7592 : 0 : case UNGT_EXPR:
7593 : 0 : {
7594 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7595 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7596 : 0 : if (zerop (_q22))
7597 : : {
7598 : 0 : switch (TREE_CODE (_p1))
7599 : : {
7600 : 0 : case COND_EXPR:
7601 : 0 : {
7602 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7603 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7604 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7605 : 0 : switch (TREE_CODE (_q80))
7606 : : {
7607 : 0 : case LE_EXPR:
7608 : 0 : {
7609 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7610 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7611 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7612 : : {
7613 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7614 : : {
7615 : 0 : if (zerop (_q82))
7616 : : {
7617 : 0 : {
7618 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7619 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNGT_EXPR, LE_EXPR);
7620 : 0 : if (res) return res;
7621 : : }
7622 : : }
7623 : : }
7624 : : }
7625 : : break;
7626 : : }
7627 : : default:;
7628 : : }
7629 : : break;
7630 : : }
7631 : : default:;
7632 : : }
7633 : : }
7634 : : break;
7635 : : }
7636 : 0 : case UNGE_EXPR:
7637 : 0 : {
7638 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7639 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7640 : 0 : if (zerop (_q22))
7641 : : {
7642 : 0 : switch (TREE_CODE (_p1))
7643 : : {
7644 : 0 : case COND_EXPR:
7645 : 0 : {
7646 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7647 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7648 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7649 : 0 : switch (TREE_CODE (_q80))
7650 : : {
7651 : 0 : case LT_EXPR:
7652 : 0 : {
7653 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7654 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7655 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7656 : : {
7657 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7658 : : {
7659 : 0 : if (zerop (_q82))
7660 : : {
7661 : 0 : {
7662 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7663 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNGE_EXPR, LT_EXPR);
7664 : 0 : if (res) return res;
7665 : : }
7666 : : }
7667 : : }
7668 : : }
7669 : : break;
7670 : : }
7671 : : default:;
7672 : : }
7673 : : break;
7674 : : }
7675 : : default:;
7676 : : }
7677 : : }
7678 : : break;
7679 : : }
7680 : 0 : case UNEQ_EXPR:
7681 : 0 : {
7682 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7683 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7684 : 0 : if (zerop (_q22))
7685 : : {
7686 : 0 : switch (TREE_CODE (_p1))
7687 : : {
7688 : 0 : case COND_EXPR:
7689 : 0 : {
7690 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7691 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7692 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7693 : 0 : switch (TREE_CODE (_q80))
7694 : : {
7695 : 0 : case LTGT_EXPR:
7696 : 0 : {
7697 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7698 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7699 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7700 : : {
7701 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7702 : : {
7703 : 0 : if (zerop (_q82))
7704 : : {
7705 : 0 : {
7706 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7707 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNEQ_EXPR, LTGT_EXPR);
7708 : 0 : if (res) return res;
7709 : : }
7710 : : }
7711 : : }
7712 : : }
7713 : : break;
7714 : : }
7715 : : default:;
7716 : : }
7717 : : break;
7718 : : }
7719 : : default:;
7720 : : }
7721 : : }
7722 : : break;
7723 : : }
7724 : 0 : case LTGT_EXPR:
7725 : 0 : {
7726 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7727 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7728 : 0 : if (zerop (_q22))
7729 : : {
7730 : 0 : switch (TREE_CODE (_p1))
7731 : : {
7732 : 0 : case COND_EXPR:
7733 : 0 : {
7734 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7735 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7736 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7737 : 0 : switch (TREE_CODE (_q80))
7738 : : {
7739 : 0 : case UNEQ_EXPR:
7740 : 0 : {
7741 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7742 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7743 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7744 : : {
7745 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7746 : : {
7747 : 0 : if (zerop (_q82))
7748 : : {
7749 : 0 : {
7750 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7751 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, LTGT_EXPR, UNEQ_EXPR);
7752 : 0 : if (res) return res;
7753 : : }
7754 : : }
7755 : : }
7756 : : }
7757 : : break;
7758 : : }
7759 : : default:;
7760 : : }
7761 : : break;
7762 : : }
7763 : : default:;
7764 : : }
7765 : : }
7766 : : break;
7767 : : }
7768 : : default:;
7769 : : }
7770 : : break;
7771 : : }
7772 : 1 : case VEC_COND_EXPR:
7773 : 1 : {
7774 : 1 : tree _q20 = TREE_OPERAND (_p0, 0);
7775 : 1 : tree _q21 = TREE_OPERAND (_p0, 1);
7776 : 1 : tree _q22 = TREE_OPERAND (_p0, 2);
7777 : 1 : if (integer_zerop (_q22))
7778 : : {
7779 : 1 : switch (TREE_CODE (_p1))
7780 : : {
7781 : 0 : case VEC_COND_EXPR:
7782 : 0 : {
7783 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
7784 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
7785 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
7786 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
7787 : : {
7788 : 0 : if (integer_zerop (_q61))
7789 : : {
7790 : 0 : {
7791 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q62 };
7792 : 0 : const enum tree_code op = BIT_XOR_EXPR;
7793 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1413;
7794 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1413;
7795 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1413;
7796 : 0 : {
7797 : 0 : tree res_op0;
7798 : 0 : res_op0 = captures[1];
7799 : 0 : tree res_op1;
7800 : 0 : res_op1 = captures[2];
7801 : 0 : tree res_op2;
7802 : 0 : res_op2 = captures[4];
7803 : 0 : tree _r;
7804 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
7805 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 900, __FILE__, __LINE__, true);
7806 : 0 : return _r;
7807 : : }
7808 : 0 : next_after_fail1413:;
7809 : : }
7810 : : }
7811 : : }
7812 : : break;
7813 : : }
7814 : : default:;
7815 : : }
7816 : : }
7817 : 1 : if (integer_zerop (_q21))
7818 : : {
7819 : 0 : switch (TREE_CODE (_p1))
7820 : : {
7821 : 0 : case VEC_COND_EXPR:
7822 : 0 : {
7823 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
7824 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
7825 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
7826 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
7827 : : {
7828 : 0 : if (integer_zerop (_q62))
7829 : : {
7830 : 0 : {
7831 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q20, _q61, _p0, _q22 };
7832 : 0 : const enum tree_code op = BIT_XOR_EXPR;
7833 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1414;
7834 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1414;
7835 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1414;
7836 : 0 : {
7837 : 0 : tree res_op0;
7838 : 0 : res_op0 = captures[1];
7839 : 0 : tree res_op1;
7840 : 0 : res_op1 = captures[2];
7841 : 0 : tree res_op2;
7842 : 0 : res_op2 = captures[4];
7843 : 0 : tree _r;
7844 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
7845 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 900, __FILE__, __LINE__, true);
7846 : 0 : return _r;
7847 : : }
7848 : 0 : next_after_fail1414:;
7849 : : }
7850 : : }
7851 : : }
7852 : : break;
7853 : : }
7854 : : default:;
7855 : : }
7856 : : }
7857 : 1 : switch (TREE_CODE (_q20))
7858 : : {
7859 : 0 : case LT_EXPR:
7860 : 0 : {
7861 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7862 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7863 : 0 : if (integer_zerop (_q22))
7864 : : {
7865 : 0 : switch (TREE_CODE (_p1))
7866 : : {
7867 : 0 : case VEC_COND_EXPR:
7868 : 0 : {
7869 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7870 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7871 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7872 : 0 : switch (TREE_CODE (_q80))
7873 : : {
7874 : 0 : case GE_EXPR:
7875 : 0 : {
7876 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7877 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7878 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7879 : : {
7880 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7881 : : {
7882 : 0 : if (integer_zerop (_q82))
7883 : : {
7884 : 0 : {
7885 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
7886 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, LT_EXPR, GE_EXPR);
7887 : 0 : if (res) return res;
7888 : : }
7889 : : }
7890 : : }
7891 : : }
7892 : : break;
7893 : : }
7894 : : default:;
7895 : : }
7896 : : break;
7897 : : }
7898 : : default:;
7899 : : }
7900 : : }
7901 : : break;
7902 : : }
7903 : 0 : case LE_EXPR:
7904 : 0 : {
7905 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7906 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7907 : 0 : if (integer_zerop (_q22))
7908 : : {
7909 : 0 : switch (TREE_CODE (_p1))
7910 : : {
7911 : 0 : case VEC_COND_EXPR:
7912 : 0 : {
7913 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7914 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7915 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7916 : 0 : switch (TREE_CODE (_q80))
7917 : : {
7918 : 0 : case GT_EXPR:
7919 : 0 : {
7920 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7921 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7922 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7923 : : {
7924 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7925 : : {
7926 : 0 : if (integer_zerop (_q82))
7927 : : {
7928 : 0 : {
7929 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
7930 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, LE_EXPR, GT_EXPR);
7931 : 0 : if (res) return res;
7932 : : }
7933 : : }
7934 : : }
7935 : : }
7936 : : break;
7937 : : }
7938 : : default:;
7939 : : }
7940 : : break;
7941 : : }
7942 : : default:;
7943 : : }
7944 : : }
7945 : : break;
7946 : : }
7947 : 0 : case EQ_EXPR:
7948 : 0 : {
7949 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7950 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7951 : 0 : if (integer_zerop (_q22))
7952 : : {
7953 : 0 : switch (TREE_CODE (_p1))
7954 : : {
7955 : 0 : case VEC_COND_EXPR:
7956 : 0 : {
7957 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7958 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7959 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7960 : 0 : switch (TREE_CODE (_q80))
7961 : : {
7962 : 0 : case NE_EXPR:
7963 : 0 : {
7964 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7965 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7966 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7967 : : {
7968 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7969 : : {
7970 : 0 : if (integer_zerop (_q82))
7971 : : {
7972 : 0 : {
7973 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
7974 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, EQ_EXPR, NE_EXPR);
7975 : 0 : if (res) return res;
7976 : : }
7977 : : }
7978 : : }
7979 : : }
7980 : : break;
7981 : : }
7982 : : default:;
7983 : : }
7984 : : break;
7985 : : }
7986 : : default:;
7987 : : }
7988 : : }
7989 : : break;
7990 : : }
7991 : 1 : case NE_EXPR:
7992 : 1 : {
7993 : 1 : tree _q30 = TREE_OPERAND (_q20, 0);
7994 : 1 : tree _q31 = TREE_OPERAND (_q20, 1);
7995 : 1 : if (integer_zerop (_q22))
7996 : : {
7997 : 1 : switch (TREE_CODE (_p1))
7998 : : {
7999 : 0 : case VEC_COND_EXPR:
8000 : 0 : {
8001 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8002 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8003 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8004 : 0 : switch (TREE_CODE (_q80))
8005 : : {
8006 : 0 : case EQ_EXPR:
8007 : 0 : {
8008 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8009 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8010 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8011 : : {
8012 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8013 : : {
8014 : 0 : if (integer_zerop (_q82))
8015 : : {
8016 : 0 : {
8017 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8018 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, NE_EXPR, EQ_EXPR);
8019 : 0 : if (res) return res;
8020 : : }
8021 : : }
8022 : : }
8023 : : }
8024 : : break;
8025 : : }
8026 : : default:;
8027 : : }
8028 : : break;
8029 : : }
8030 : : default:;
8031 : : }
8032 : : }
8033 : : break;
8034 : : }
8035 : 0 : case GE_EXPR:
8036 : 0 : {
8037 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8038 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8039 : 0 : if (integer_zerop (_q22))
8040 : : {
8041 : 0 : switch (TREE_CODE (_p1))
8042 : : {
8043 : 0 : case VEC_COND_EXPR:
8044 : 0 : {
8045 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8046 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8047 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8048 : 0 : switch (TREE_CODE (_q80))
8049 : : {
8050 : 0 : case LT_EXPR:
8051 : 0 : {
8052 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8053 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8054 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8055 : : {
8056 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8057 : : {
8058 : 0 : if (integer_zerop (_q82))
8059 : : {
8060 : 0 : {
8061 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8062 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, GE_EXPR, LT_EXPR);
8063 : 0 : if (res) return res;
8064 : : }
8065 : : }
8066 : : }
8067 : : }
8068 : : break;
8069 : : }
8070 : : default:;
8071 : : }
8072 : : break;
8073 : : }
8074 : : default:;
8075 : : }
8076 : : }
8077 : : break;
8078 : : }
8079 : 0 : case GT_EXPR:
8080 : 0 : {
8081 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8082 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8083 : 0 : if (integer_zerop (_q22))
8084 : : {
8085 : 0 : switch (TREE_CODE (_p1))
8086 : : {
8087 : 0 : case VEC_COND_EXPR:
8088 : 0 : {
8089 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8090 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8091 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8092 : 0 : switch (TREE_CODE (_q80))
8093 : : {
8094 : 0 : case LE_EXPR:
8095 : 0 : {
8096 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8097 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8098 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8099 : : {
8100 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8101 : : {
8102 : 0 : if (integer_zerop (_q82))
8103 : : {
8104 : 0 : {
8105 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8106 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, GT_EXPR, LE_EXPR);
8107 : 0 : if (res) return res;
8108 : : }
8109 : : }
8110 : : }
8111 : : }
8112 : : break;
8113 : : }
8114 : : default:;
8115 : : }
8116 : : break;
8117 : : }
8118 : : default:;
8119 : : }
8120 : : }
8121 : : break;
8122 : : }
8123 : 0 : case UNORDERED_EXPR:
8124 : 0 : {
8125 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8126 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8127 : 0 : if (integer_zerop (_q22))
8128 : : {
8129 : 0 : switch (TREE_CODE (_p1))
8130 : : {
8131 : 0 : case VEC_COND_EXPR:
8132 : 0 : {
8133 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8134 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8135 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8136 : 0 : switch (TREE_CODE (_q80))
8137 : : {
8138 : 0 : case ORDERED_EXPR:
8139 : 0 : {
8140 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8141 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8142 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8143 : : {
8144 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8145 : : {
8146 : 0 : if (integer_zerop (_q82))
8147 : : {
8148 : 0 : {
8149 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8150 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNORDERED_EXPR, ORDERED_EXPR);
8151 : 0 : if (res) return res;
8152 : : }
8153 : : }
8154 : : }
8155 : : }
8156 : : break;
8157 : : }
8158 : : default:;
8159 : : }
8160 : : break;
8161 : : }
8162 : : default:;
8163 : : }
8164 : : }
8165 : : break;
8166 : : }
8167 : 0 : case ORDERED_EXPR:
8168 : 0 : {
8169 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8170 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8171 : 0 : if (integer_zerop (_q22))
8172 : : {
8173 : 0 : switch (TREE_CODE (_p1))
8174 : : {
8175 : 0 : case VEC_COND_EXPR:
8176 : 0 : {
8177 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8178 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8179 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8180 : 0 : switch (TREE_CODE (_q80))
8181 : : {
8182 : 0 : case UNORDERED_EXPR:
8183 : 0 : {
8184 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8185 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8186 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8187 : : {
8188 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8189 : : {
8190 : 0 : if (integer_zerop (_q82))
8191 : : {
8192 : 0 : {
8193 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8194 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, ORDERED_EXPR, UNORDERED_EXPR);
8195 : 0 : if (res) return res;
8196 : : }
8197 : : }
8198 : : }
8199 : : }
8200 : : break;
8201 : : }
8202 : : default:;
8203 : : }
8204 : : break;
8205 : : }
8206 : : default:;
8207 : : }
8208 : : }
8209 : : break;
8210 : : }
8211 : 0 : case UNLT_EXPR:
8212 : 0 : {
8213 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8214 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8215 : 0 : if (integer_zerop (_q22))
8216 : : {
8217 : 0 : switch (TREE_CODE (_p1))
8218 : : {
8219 : 0 : case VEC_COND_EXPR:
8220 : 0 : {
8221 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8222 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8223 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8224 : 0 : switch (TREE_CODE (_q80))
8225 : : {
8226 : 0 : case GE_EXPR:
8227 : 0 : {
8228 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8229 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8230 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8231 : : {
8232 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8233 : : {
8234 : 0 : if (integer_zerop (_q82))
8235 : : {
8236 : 0 : {
8237 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8238 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNLT_EXPR, GE_EXPR);
8239 : 0 : if (res) return res;
8240 : : }
8241 : : }
8242 : : }
8243 : : }
8244 : : break;
8245 : : }
8246 : : default:;
8247 : : }
8248 : : break;
8249 : : }
8250 : : default:;
8251 : : }
8252 : : }
8253 : : break;
8254 : : }
8255 : 0 : case UNLE_EXPR:
8256 : 0 : {
8257 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8258 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8259 : 0 : if (integer_zerop (_q22))
8260 : : {
8261 : 0 : switch (TREE_CODE (_p1))
8262 : : {
8263 : 0 : case VEC_COND_EXPR:
8264 : 0 : {
8265 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8266 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8267 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8268 : 0 : switch (TREE_CODE (_q80))
8269 : : {
8270 : 0 : case GT_EXPR:
8271 : 0 : {
8272 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8273 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8274 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8275 : : {
8276 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8277 : : {
8278 : 0 : if (integer_zerop (_q82))
8279 : : {
8280 : 0 : {
8281 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8282 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNLE_EXPR, GT_EXPR);
8283 : 0 : if (res) return res;
8284 : : }
8285 : : }
8286 : : }
8287 : : }
8288 : : break;
8289 : : }
8290 : : default:;
8291 : : }
8292 : : break;
8293 : : }
8294 : : default:;
8295 : : }
8296 : : }
8297 : : break;
8298 : : }
8299 : 0 : case UNGT_EXPR:
8300 : 0 : {
8301 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8302 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8303 : 0 : if (integer_zerop (_q22))
8304 : : {
8305 : 0 : switch (TREE_CODE (_p1))
8306 : : {
8307 : 0 : case VEC_COND_EXPR:
8308 : 0 : {
8309 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8310 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8311 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8312 : 0 : switch (TREE_CODE (_q80))
8313 : : {
8314 : 0 : case LE_EXPR:
8315 : 0 : {
8316 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8317 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8318 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8319 : : {
8320 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8321 : : {
8322 : 0 : if (integer_zerop (_q82))
8323 : : {
8324 : 0 : {
8325 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8326 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNGT_EXPR, LE_EXPR);
8327 : 0 : if (res) return res;
8328 : : }
8329 : : }
8330 : : }
8331 : : }
8332 : : break;
8333 : : }
8334 : : default:;
8335 : : }
8336 : : break;
8337 : : }
8338 : : default:;
8339 : : }
8340 : : }
8341 : : break;
8342 : : }
8343 : 0 : case UNGE_EXPR:
8344 : 0 : {
8345 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8346 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8347 : 0 : if (integer_zerop (_q22))
8348 : : {
8349 : 0 : switch (TREE_CODE (_p1))
8350 : : {
8351 : 0 : case VEC_COND_EXPR:
8352 : 0 : {
8353 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8354 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8355 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8356 : 0 : switch (TREE_CODE (_q80))
8357 : : {
8358 : 0 : case LT_EXPR:
8359 : 0 : {
8360 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8361 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8362 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8363 : : {
8364 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8365 : : {
8366 : 0 : if (integer_zerop (_q82))
8367 : : {
8368 : 0 : {
8369 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8370 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNGE_EXPR, LT_EXPR);
8371 : 0 : if (res) return res;
8372 : : }
8373 : : }
8374 : : }
8375 : : }
8376 : : break;
8377 : : }
8378 : : default:;
8379 : : }
8380 : : break;
8381 : : }
8382 : : default:;
8383 : : }
8384 : : }
8385 : : break;
8386 : : }
8387 : 0 : case UNEQ_EXPR:
8388 : 0 : {
8389 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8390 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8391 : 0 : if (integer_zerop (_q22))
8392 : : {
8393 : 0 : switch (TREE_CODE (_p1))
8394 : : {
8395 : 0 : case VEC_COND_EXPR:
8396 : 0 : {
8397 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8398 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8399 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8400 : 0 : switch (TREE_CODE (_q80))
8401 : : {
8402 : 0 : case LTGT_EXPR:
8403 : 0 : {
8404 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8405 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8406 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8407 : : {
8408 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8409 : : {
8410 : 0 : if (integer_zerop (_q82))
8411 : : {
8412 : 0 : {
8413 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8414 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNEQ_EXPR, LTGT_EXPR);
8415 : 0 : if (res) return res;
8416 : : }
8417 : : }
8418 : : }
8419 : : }
8420 : : break;
8421 : : }
8422 : : default:;
8423 : : }
8424 : : break;
8425 : : }
8426 : : default:;
8427 : : }
8428 : : }
8429 : : break;
8430 : : }
8431 : 0 : case LTGT_EXPR:
8432 : 0 : {
8433 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8434 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8435 : 0 : if (integer_zerop (_q22))
8436 : : {
8437 : 0 : switch (TREE_CODE (_p1))
8438 : : {
8439 : 0 : case VEC_COND_EXPR:
8440 : 0 : {
8441 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8442 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8443 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8444 : 0 : switch (TREE_CODE (_q80))
8445 : : {
8446 : 0 : case UNEQ_EXPR:
8447 : 0 : {
8448 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8449 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8450 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8451 : : {
8452 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8453 : : {
8454 : 0 : if (integer_zerop (_q82))
8455 : : {
8456 : 0 : {
8457 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8458 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, LTGT_EXPR, UNEQ_EXPR);
8459 : 0 : if (res) return res;
8460 : : }
8461 : : }
8462 : : }
8463 : : }
8464 : : break;
8465 : : }
8466 : : default:;
8467 : : }
8468 : : break;
8469 : : }
8470 : : default:;
8471 : : }
8472 : : }
8473 : : break;
8474 : : }
8475 : : default:;
8476 : : }
8477 : : break;
8478 : : }
8479 : 2540 : case BIT_AND_EXPR:
8480 : 2540 : {
8481 : 2540 : tree _q20 = TREE_OPERAND (_p0, 0);
8482 : 2540 : tree _q21 = TREE_OPERAND (_p0, 1);
8483 : 2540 : if (tree_truth_valued_p (_q20))
8484 : : {
8485 : 0 : if (tree_truth_valued_p (_q21))
8486 : : {
8487 : 0 : switch (TREE_CODE (_p1))
8488 : : {
8489 : 0 : case EQ_EXPR:
8490 : 0 : {
8491 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
8492 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
8493 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8494 : : {
8495 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8496 : : {
8497 : 0 : {
8498 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8499 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1415;
8500 : 0 : {
8501 : 0 : tree res_op0;
8502 : 0 : {
8503 : 0 : tree _o1[2], _r1;
8504 : 0 : _o1[0] = captures[0];
8505 : 0 : _o1[1] = captures[1];
8506 : 0 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
8507 : 0 : res_op0 = _r1;
8508 : : }
8509 : 0 : tree _r;
8510 : 0 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
8511 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 955, __FILE__, __LINE__, true);
8512 : 0 : return _r;
8513 : : }
8514 : 0 : next_after_fail1415:;
8515 : : }
8516 : : }
8517 : : }
8518 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
8519 : : {
8520 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
8521 : : {
8522 : 0 : {
8523 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
8524 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1416;
8525 : 0 : {
8526 : 0 : tree res_op0;
8527 : 0 : {
8528 : 0 : tree _o1[2], _r1;
8529 : 0 : _o1[0] = captures[0];
8530 : 0 : _o1[1] = captures[1];
8531 : 0 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
8532 : 0 : res_op0 = _r1;
8533 : : }
8534 : 0 : tree _r;
8535 : 0 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
8536 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 955, __FILE__, __LINE__, true);
8537 : 0 : return _r;
8538 : : }
8539 : 0 : next_after_fail1416:;
8540 : : }
8541 : : }
8542 : : }
8543 : : break;
8544 : : }
8545 : : default:;
8546 : : }
8547 : : }
8548 : : }
8549 : : break;
8550 : : }
8551 : 118 : case EQ_EXPR:
8552 : 118 : {
8553 : 118 : tree _q20 = TREE_OPERAND (_p0, 0);
8554 : 118 : tree _q21 = TREE_OPERAND (_p0, 1);
8555 : 118 : switch (TREE_CODE (_p1))
8556 : : {
8557 : 0 : case BIT_AND_EXPR:
8558 : 0 : {
8559 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
8560 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
8561 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8562 : : {
8563 : 0 : if (tree_truth_valued_p (_q50))
8564 : : {
8565 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8566 : : {
8567 : 0 : if (tree_truth_valued_p (_q51))
8568 : : {
8569 : 0 : {
8570 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8571 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1417;
8572 : 0 : {
8573 : 0 : tree res_op0;
8574 : 0 : {
8575 : 0 : tree _o1[2], _r1;
8576 : 0 : _o1[0] = captures[0];
8577 : 0 : _o1[1] = captures[1];
8578 : 0 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
8579 : 0 : res_op0 = _r1;
8580 : : }
8581 : 0 : tree _r;
8582 : 0 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
8583 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 955, __FILE__, __LINE__, true);
8584 : 0 : return _r;
8585 : : }
8586 : 0 : next_after_fail1417:;
8587 : : }
8588 : : }
8589 : : }
8590 : : }
8591 : : }
8592 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
8593 : : {
8594 : 0 : if (tree_truth_valued_p (_q50))
8595 : : {
8596 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
8597 : : {
8598 : 0 : if (tree_truth_valued_p (_q51))
8599 : : {
8600 : 0 : {
8601 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8602 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1418;
8603 : 0 : {
8604 : 0 : tree res_op0;
8605 : 0 : {
8606 : 0 : tree _o1[2], _r1;
8607 : 0 : _o1[0] = captures[0];
8608 : 0 : _o1[1] = captures[1];
8609 : 0 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
8610 : 0 : res_op0 = _r1;
8611 : : }
8612 : 0 : tree _r;
8613 : 0 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
8614 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 955, __FILE__, __LINE__, true);
8615 : 0 : return _r;
8616 : : }
8617 : 0 : next_after_fail1418:;
8618 : : }
8619 : : }
8620 : : }
8621 : : }
8622 : : }
8623 : : break;
8624 : : }
8625 : : default:;
8626 : : }
8627 : : break;
8628 : : }
8629 : 670948 : default:;
8630 : : }
8631 : 670948 : {
8632 : 670948 : tree _p0_pops[1];
8633 : 670948 : if (tree_logical_inverted_value (_p0, _p0_pops))
8634 : : {
8635 : 45 : tree _q20 = _p0_pops[0];
8636 : 45 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
8637 : : {
8638 : 4 : if (tree_truth_valued_p (_p1))
8639 : : {
8640 : 4 : {
8641 : 4 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
8642 : 4 : tree res = generic_simplify_119 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
8643 : 4 : if (res) return res;
8644 : : }
8645 : : }
8646 : : }
8647 : : }
8648 : : }
8649 : 670944 : {
8650 : 670944 : tree _p0_pops[1];
8651 : 670944 : if (tree_nop_convert (_p0, _p0_pops))
8652 : : {
8653 : 487550 : tree _q20 = _p0_pops[0];
8654 : 487550 : switch (TREE_CODE (_q20))
8655 : : {
8656 : 24 : case BIT_NOT_EXPR:
8657 : 24 : {
8658 : 24 : tree _q30 = TREE_OPERAND (_q20, 0);
8659 : 24 : {
8660 : 24 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _p1 };
8661 : 24 : tree res = generic_simplify_167 (loc, type, _p0, _p1, captures);
8662 : 24 : if (res) return res;
8663 : : }
8664 : 0 : break;
8665 : : }
8666 : 20 : case MULT_EXPR:
8667 : 20 : {
8668 : 20 : tree _q30 = TREE_OPERAND (_q20, 0);
8669 : 20 : tree _q31 = TREE_OPERAND (_q20, 1);
8670 : 20 : {
8671 : 20 : tree _q30_pops[1];
8672 : 20 : if (tree_nop_convert (_q30, _q30_pops))
8673 : : {
8674 : 0 : tree _q40 = _q30_pops[0];
8675 : 0 : switch (TREE_CODE (_q31))
8676 : : {
8677 : 0 : case INTEGER_CST:
8678 : 0 : {
8679 : 0 : switch (TREE_CODE (_p1))
8680 : : {
8681 : 0 : case LSHIFT_EXPR:
8682 : 0 : {
8683 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
8684 : 0 : tree _q71 = TREE_OPERAND (_p1, 1);
8685 : 0 : if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
8686 : : {
8687 : 0 : switch (TREE_CODE (_q71))
8688 : : {
8689 : 0 : case INTEGER_CST:
8690 : 0 : {
8691 : 0 : {
8692 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q40, _q31, _p1, _q71 };
8693 : 0 : tree res = generic_simplify_116 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
8694 : 0 : if (res) return res;
8695 : : }
8696 : 0 : break;
8697 : : }
8698 : : default:;
8699 : : }
8700 : : }
8701 : : break;
8702 : : }
8703 : 0 : default:;
8704 : : }
8705 : 0 : {
8706 : 0 : tree _p1_pops[1];
8707 : 0 : if (tree_nop_convert (_p1, _p1_pops))
8708 : : {
8709 : 0 : tree _q70 = _p1_pops[0];
8710 : 0 : switch (TREE_CODE (_q70))
8711 : : {
8712 : 0 : case MULT_EXPR:
8713 : 0 : {
8714 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
8715 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
8716 : 0 : {
8717 : 0 : tree _q80_pops[1];
8718 : 0 : if (tree_nop_convert (_q80, _q80_pops))
8719 : : {
8720 : 0 : tree _q90 = _q80_pops[0];
8721 : 0 : switch (TREE_CODE (_q81))
8722 : : {
8723 : 0 : case INTEGER_CST:
8724 : 0 : {
8725 : 0 : {
8726 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q40, _q31, _p1, _q70, _q90, _q81 };
8727 : 0 : tree res = generic_simplify_115 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
8728 : 0 : if (res) return res;
8729 : : }
8730 : 0 : break;
8731 : : }
8732 : : default:;
8733 : : }
8734 : : }
8735 : : }
8736 : 0 : break;
8737 : : }
8738 : : default:;
8739 : : }
8740 : : }
8741 : : }
8742 : 0 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
8743 : : {
8744 : 0 : {
8745 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q40, _q31 };
8746 : 0 : tree res = generic_simplify_117 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
8747 : 0 : if (res) return res;
8748 : : }
8749 : : }
8750 : : break;
8751 : : }
8752 : : default:;
8753 : : }
8754 : : }
8755 : : }
8756 : 20 : break;
8757 : : }
8758 : : default:;
8759 : : }
8760 : : }
8761 : : }
8762 : 670920 : if (tree_truth_valued_p (_p0))
8763 : : {
8764 : 35776 : {
8765 : 35776 : tree _p1_pops[1];
8766 : 35776 : if (tree_logical_inverted_value (_p1, _p1_pops))
8767 : : {
8768 : 7 : tree _q30 = _p1_pops[0];
8769 : 7 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
8770 : : {
8771 : 0 : {
8772 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
8773 : 0 : tree res = generic_simplify_119 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
8774 : 0 : if (res) return res;
8775 : : }
8776 : : }
8777 : : }
8778 : : }
8779 : : }
8780 : 670920 : switch (TREE_CODE (_p1))
8781 : : {
8782 : 288 : case BIT_NOT_EXPR:
8783 : 288 : {
8784 : 288 : tree _q30 = TREE_OPERAND (_p1, 0);
8785 : 288 : {
8786 : 288 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _p1, _q30, _p0 };
8787 : 288 : tree res = generic_simplify_164 (loc, type, _p0, _p1, captures);
8788 : 288 : if (res) return res;
8789 : : }
8790 : 0 : break;
8791 : : }
8792 : 670632 : default:;
8793 : : }
8794 : 670632 : {
8795 : 670632 : tree _p1_pops[1];
8796 : 670632 : if (tree_nop_convert (_p1, _p1_pops))
8797 : : {
8798 : 529678 : tree _q30 = _p1_pops[0];
8799 : 529678 : switch (TREE_CODE (_q30))
8800 : : {
8801 : 0 : case BIT_NOT_EXPR:
8802 : 0 : {
8803 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
8804 : 0 : {
8805 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q30, _q40, _p0 };
8806 : 0 : tree res = generic_simplify_167 (loc, type, _p0, _p1, captures);
8807 : 0 : if (res) return res;
8808 : : }
8809 : 0 : break;
8810 : : }
8811 : : default:;
8812 : : }
8813 : : }
8814 : : }
8815 : 670632 : switch (TREE_CODE (_p0))
8816 : : {
8817 : 1131 : case BIT_IOR_EXPR:
8818 : 1131 : {
8819 : 1131 : tree _q20 = TREE_OPERAND (_p0, 0);
8820 : 1131 : tree _q21 = TREE_OPERAND (_p0, 1);
8821 : 1131 : switch (TREE_CODE (_q21))
8822 : : {
8823 : 23 : case INTEGER_CST:
8824 : 23 : {
8825 : 23 : switch (TREE_CODE (_p1))
8826 : : {
8827 : 23 : case INTEGER_CST:
8828 : 23 : {
8829 : 23 : {
8830 : 23 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
8831 : 23 : tree res = generic_simplify_123 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_XOR_EXPR);
8832 : 23 : if (res) return res;
8833 : : }
8834 : 23 : break;
8835 : : }
8836 : : default:;
8837 : : }
8838 : : break;
8839 : : }
8840 : : default:;
8841 : : }
8842 : : break;
8843 : : }
8844 : 90 : case LT_EXPR:
8845 : 90 : {
8846 : 90 : tree _q20 = TREE_OPERAND (_p0, 0);
8847 : 90 : tree _q21 = TREE_OPERAND (_p0, 1);
8848 : 90 : switch (TREE_CODE (_p1))
8849 : : {
8850 : 0 : case GT_EXPR:
8851 : 0 : {
8852 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
8853 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
8854 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8855 : : {
8856 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8857 : : {
8858 : 0 : {
8859 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8860 : 0 : const enum tree_code cmp1 = LT_EXPR;
8861 : 0 : const enum tree_code cmp2 = GT_EXPR;
8862 : 0 : const enum tree_code rcmp = NE_EXPR;
8863 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
8864 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
8865 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
8866 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
8867 : : )
8868 : : {
8869 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1419;
8870 : 0 : {
8871 : 0 : tree res_op0;
8872 : 0 : res_op0 = captures[0];
8873 : 0 : tree res_op1;
8874 : 0 : res_op1 = captures[1];
8875 : 0 : tree _r;
8876 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
8877 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 956, __FILE__, __LINE__, true);
8878 : 0 : return _r;
8879 : : }
8880 : 0 : next_after_fail1419:;
8881 : : }
8882 : : }
8883 : : }
8884 : : }
8885 : : break;
8886 : : }
8887 : 0 : case EQ_EXPR:
8888 : 0 : {
8889 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
8890 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
8891 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8892 : : {
8893 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8894 : : {
8895 : 0 : {
8896 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8897 : 0 : const enum tree_code cmp1 = LT_EXPR;
8898 : 0 : const enum tree_code cmp2 = EQ_EXPR;
8899 : 0 : const enum tree_code rcmp = LE_EXPR;
8900 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
8901 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
8902 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
8903 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
8904 : : )
8905 : : {
8906 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1420;
8907 : 0 : {
8908 : 0 : tree res_op0;
8909 : 0 : res_op0 = captures[0];
8910 : 0 : tree res_op1;
8911 : 0 : res_op1 = captures[1];
8912 : 0 : tree _r;
8913 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
8914 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 956, __FILE__, __LINE__, true);
8915 : 0 : return _r;
8916 : : }
8917 : 0 : next_after_fail1420:;
8918 : : }
8919 : : }
8920 : : }
8921 : : }
8922 : : break;
8923 : : }
8924 : 0 : case NE_EXPR:
8925 : 0 : {
8926 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
8927 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
8928 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8929 : : {
8930 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8931 : : {
8932 : 0 : {
8933 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8934 : 0 : const enum tree_code cmp1 = LT_EXPR;
8935 : 0 : const enum tree_code cmp2 = NE_EXPR;
8936 : 0 : const enum tree_code rcmp = GT_EXPR;
8937 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
8938 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
8939 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
8940 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
8941 : : )
8942 : : {
8943 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1421;
8944 : 0 : {
8945 : 0 : tree res_op0;
8946 : 0 : res_op0 = captures[0];
8947 : 0 : tree res_op1;
8948 : 0 : res_op1 = captures[1];
8949 : 0 : tree _r;
8950 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
8951 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 956, __FILE__, __LINE__, true);
8952 : 0 : return _r;
8953 : : }
8954 : 0 : next_after_fail1421:;
8955 : : }
8956 : : }
8957 : : }
8958 : : }
8959 : : break;
8960 : : }
8961 : : default:;
8962 : : }
8963 : : break;
8964 : : }
8965 : 78 : case LE_EXPR:
8966 : 78 : {
8967 : 78 : tree _q20 = TREE_OPERAND (_p0, 0);
8968 : 78 : tree _q21 = TREE_OPERAND (_p0, 1);
8969 : 78 : switch (TREE_CODE (_p1))
8970 : : {
8971 : 0 : case GE_EXPR:
8972 : 0 : {
8973 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
8974 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
8975 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8976 : : {
8977 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8978 : : {
8979 : 0 : {
8980 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8981 : 0 : const enum tree_code cmp1 = LE_EXPR;
8982 : 0 : const enum tree_code cmp2 = GE_EXPR;
8983 : 0 : const enum tree_code rcmp = NE_EXPR;
8984 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
8985 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
8986 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
8987 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
8988 : : )
8989 : : {
8990 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1422;
8991 : 0 : {
8992 : 0 : tree res_op0;
8993 : 0 : res_op0 = captures[0];
8994 : 0 : tree res_op1;
8995 : 0 : res_op1 = captures[1];
8996 : 0 : tree _r;
8997 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
8998 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 956, __FILE__, __LINE__, true);
8999 : 0 : return _r;
9000 : : }
9001 : 0 : next_after_fail1422:;
9002 : : }
9003 : : }
9004 : : }
9005 : : }
9006 : : break;
9007 : : }
9008 : 0 : case EQ_EXPR:
9009 : 0 : {
9010 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9011 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9012 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9013 : : {
9014 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9015 : : {
9016 : 0 : {
9017 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9018 : 0 : const enum tree_code cmp1 = LE_EXPR;
9019 : 0 : const enum tree_code cmp2 = EQ_EXPR;
9020 : 0 : const enum tree_code rcmp = LT_EXPR;
9021 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9022 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9023 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9024 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9025 : : )
9026 : : {
9027 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1423;
9028 : 0 : {
9029 : 0 : tree res_op0;
9030 : 0 : res_op0 = captures[0];
9031 : 0 : tree res_op1;
9032 : 0 : res_op1 = captures[1];
9033 : 0 : tree _r;
9034 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9035 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 956, __FILE__, __LINE__, true);
9036 : 0 : return _r;
9037 : : }
9038 : 0 : next_after_fail1423:;
9039 : : }
9040 : : }
9041 : : }
9042 : : }
9043 : : break;
9044 : : }
9045 : 0 : case NE_EXPR:
9046 : 0 : {
9047 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9048 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9049 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9050 : : {
9051 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9052 : : {
9053 : 0 : {
9054 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9055 : 0 : const enum tree_code cmp1 = LE_EXPR;
9056 : 0 : const enum tree_code cmp2 = NE_EXPR;
9057 : 0 : const enum tree_code rcmp = GE_EXPR;
9058 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9059 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9060 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9061 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9062 : : )
9063 : : {
9064 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1424;
9065 : 0 : {
9066 : 0 : tree res_op0;
9067 : 0 : res_op0 = captures[0];
9068 : 0 : tree res_op1;
9069 : 0 : res_op1 = captures[1];
9070 : 0 : tree _r;
9071 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9072 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 956, __FILE__, __LINE__, true);
9073 : 0 : return _r;
9074 : : }
9075 : 0 : next_after_fail1424:;
9076 : : }
9077 : : }
9078 : : }
9079 : : }
9080 : : break;
9081 : : }
9082 : : default:;
9083 : : }
9084 : : break;
9085 : : }
9086 : 100 : case GT_EXPR:
9087 : 100 : {
9088 : 100 : tree _q20 = TREE_OPERAND (_p0, 0);
9089 : 100 : tree _q21 = TREE_OPERAND (_p0, 1);
9090 : 100 : switch (TREE_CODE (_p1))
9091 : : {
9092 : 0 : case GT_EXPR:
9093 : 0 : {
9094 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9095 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9096 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9097 : : {
9098 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9099 : : {
9100 : 0 : {
9101 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
9102 : 0 : const enum tree_code cmp1 = LT_EXPR;
9103 : 0 : const enum tree_code cmp2 = GT_EXPR;
9104 : 0 : const enum tree_code rcmp = NE_EXPR;
9105 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9106 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9107 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9108 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9109 : : )
9110 : : {
9111 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1425;
9112 : 0 : {
9113 : 0 : tree res_op0;
9114 : 0 : res_op0 = captures[0];
9115 : 0 : tree res_op1;
9116 : 0 : res_op1 = captures[1];
9117 : 0 : tree _r;
9118 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9119 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 956, __FILE__, __LINE__, true);
9120 : 0 : return _r;
9121 : : }
9122 : 0 : next_after_fail1425:;
9123 : : }
9124 : : }
9125 : 0 : {
9126 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9127 : 0 : const enum tree_code cmp1 = LT_EXPR;
9128 : 0 : const enum tree_code cmp2 = GT_EXPR;
9129 : 0 : const enum tree_code rcmp = NE_EXPR;
9130 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9131 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9132 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9133 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9134 : : )
9135 : : {
9136 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1426;
9137 : 0 : {
9138 : 0 : tree res_op0;
9139 : 0 : res_op0 = captures[0];
9140 : 0 : tree res_op1;
9141 : 0 : res_op1 = captures[1];
9142 : 0 : tree _r;
9143 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9144 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 956, __FILE__, __LINE__, true);
9145 : 0 : return _r;
9146 : : }
9147 : 0 : next_after_fail1426:;
9148 : : }
9149 : : }
9150 : : }
9151 : : }
9152 : : break;
9153 : : }
9154 : 0 : case EQ_EXPR:
9155 : 0 : {
9156 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9157 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9158 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9159 : : {
9160 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9161 : : {
9162 : 0 : {
9163 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
9164 : 0 : const enum tree_code cmp1 = LT_EXPR;
9165 : 0 : const enum tree_code cmp2 = EQ_EXPR;
9166 : 0 : const enum tree_code rcmp = LE_EXPR;
9167 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9168 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9169 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9170 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9171 : : )
9172 : : {
9173 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1427;
9174 : 0 : {
9175 : 0 : tree res_op0;
9176 : 0 : res_op0 = captures[0];
9177 : 0 : tree res_op1;
9178 : 0 : res_op1 = captures[1];
9179 : 0 : tree _r;
9180 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9181 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 956, __FILE__, __LINE__, true);
9182 : 0 : return _r;
9183 : : }
9184 : 0 : next_after_fail1427:;
9185 : : }
9186 : : }
9187 : : }
9188 : : }
9189 : : break;
9190 : : }
9191 : 12 : case NE_EXPR:
9192 : 12 : {
9193 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
9194 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
9195 : 12 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9196 : : {
9197 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9198 : : {
9199 : 0 : {
9200 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
9201 : 0 : const enum tree_code cmp1 = LT_EXPR;
9202 : 0 : const enum tree_code cmp2 = NE_EXPR;
9203 : 0 : const enum tree_code rcmp = GT_EXPR;
9204 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9205 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9206 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9207 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9208 : : )
9209 : : {
9210 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1428;
9211 : 0 : {
9212 : 0 : tree res_op0;
9213 : 0 : res_op0 = captures[0];
9214 : 0 : tree res_op1;
9215 : 0 : res_op1 = captures[1];
9216 : 0 : tree _r;
9217 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9218 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 956, __FILE__, __LINE__, true);
9219 : 0 : return _r;
9220 : : }
9221 : 0 : next_after_fail1428:;
9222 : : }
9223 : : }
9224 : : }
9225 : : }
9226 : : break;
9227 : : }
9228 : 0 : case LT_EXPR:
9229 : 0 : {
9230 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9231 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9232 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9233 : : {
9234 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9235 : : {
9236 : 0 : {
9237 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9238 : 0 : const enum tree_code cmp1 = LT_EXPR;
9239 : 0 : const enum tree_code cmp2 = GT_EXPR;
9240 : 0 : const enum tree_code rcmp = NE_EXPR;
9241 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9242 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9243 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9244 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9245 : : )
9246 : : {
9247 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1429;
9248 : 0 : {
9249 : 0 : tree res_op0;
9250 : 0 : res_op0 = captures[0];
9251 : 0 : tree res_op1;
9252 : 0 : res_op1 = captures[1];
9253 : 0 : tree _r;
9254 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9255 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 956, __FILE__, __LINE__, true);
9256 : 0 : return _r;
9257 : : }
9258 : 0 : next_after_fail1429:;
9259 : : }
9260 : : }
9261 : : }
9262 : : }
9263 : : break;
9264 : : }
9265 : : default:;
9266 : : }
9267 : : break;
9268 : : }
9269 : 62 : case GE_EXPR:
9270 : 62 : {
9271 : 62 : tree _q20 = TREE_OPERAND (_p0, 0);
9272 : 62 : tree _q21 = TREE_OPERAND (_p0, 1);
9273 : 62 : switch (TREE_CODE (_p1))
9274 : : {
9275 : 1 : case GE_EXPR:
9276 : 1 : {
9277 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
9278 : 1 : tree _q51 = TREE_OPERAND (_p1, 1);
9279 : 1 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9280 : : {
9281 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9282 : : {
9283 : 0 : {
9284 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
9285 : 0 : const enum tree_code cmp1 = LE_EXPR;
9286 : 0 : const enum tree_code cmp2 = GE_EXPR;
9287 : 0 : const enum tree_code rcmp = NE_EXPR;
9288 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9289 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9290 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9291 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9292 : : )
9293 : : {
9294 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1430;
9295 : 0 : {
9296 : 0 : tree res_op0;
9297 : 0 : res_op0 = captures[0];
9298 : 0 : tree res_op1;
9299 : 0 : res_op1 = captures[1];
9300 : 0 : tree _r;
9301 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9302 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 956, __FILE__, __LINE__, true);
9303 : 0 : return _r;
9304 : : }
9305 : 0 : next_after_fail1430:;
9306 : : }
9307 : : }
9308 : 0 : {
9309 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9310 : 0 : const enum tree_code cmp1 = LE_EXPR;
9311 : 0 : const enum tree_code cmp2 = GE_EXPR;
9312 : 0 : const enum tree_code rcmp = NE_EXPR;
9313 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9314 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9315 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9316 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9317 : : )
9318 : : {
9319 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1431;
9320 : 0 : {
9321 : 0 : tree res_op0;
9322 : 0 : res_op0 = captures[0];
9323 : 0 : tree res_op1;
9324 : 0 : res_op1 = captures[1];
9325 : 0 : tree _r;
9326 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9327 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 956, __FILE__, __LINE__, true);
9328 : 0 : return _r;
9329 : : }
9330 : 0 : next_after_fail1431:;
9331 : : }
9332 : : }
9333 : : }
9334 : : }
9335 : : break;
9336 : : }
9337 : 0 : case EQ_EXPR:
9338 : 0 : {
9339 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9340 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9341 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9342 : : {
9343 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9344 : : {
9345 : 0 : {
9346 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
9347 : 0 : const enum tree_code cmp1 = LE_EXPR;
9348 : 0 : const enum tree_code cmp2 = EQ_EXPR;
9349 : 0 : const enum tree_code rcmp = LT_EXPR;
9350 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9351 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9352 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9353 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9354 : : )
9355 : : {
9356 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1432;
9357 : 0 : {
9358 : 0 : tree res_op0;
9359 : 0 : res_op0 = captures[0];
9360 : 0 : tree res_op1;
9361 : 0 : res_op1 = captures[1];
9362 : 0 : tree _r;
9363 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9364 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 956, __FILE__, __LINE__, true);
9365 : 0 : return _r;
9366 : : }
9367 : 0 : next_after_fail1432:;
9368 : : }
9369 : : }
9370 : : }
9371 : : }
9372 : : break;
9373 : : }
9374 : 8 : case NE_EXPR:
9375 : 8 : {
9376 : 8 : tree _q50 = TREE_OPERAND (_p1, 0);
9377 : 8 : tree _q51 = TREE_OPERAND (_p1, 1);
9378 : 8 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9379 : : {
9380 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9381 : : {
9382 : 0 : {
9383 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
9384 : 0 : const enum tree_code cmp1 = LE_EXPR;
9385 : 0 : const enum tree_code cmp2 = NE_EXPR;
9386 : 0 : const enum tree_code rcmp = GE_EXPR;
9387 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9388 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9389 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9390 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9391 : : )
9392 : : {
9393 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1433;
9394 : 0 : {
9395 : 0 : tree res_op0;
9396 : 0 : res_op0 = captures[0];
9397 : 0 : tree res_op1;
9398 : 0 : res_op1 = captures[1];
9399 : 0 : tree _r;
9400 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9401 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 956, __FILE__, __LINE__, true);
9402 : 0 : return _r;
9403 : : }
9404 : 0 : next_after_fail1433:;
9405 : : }
9406 : : }
9407 : : }
9408 : : }
9409 : : break;
9410 : : }
9411 : 0 : case LE_EXPR:
9412 : 0 : {
9413 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9414 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9415 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9416 : : {
9417 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9418 : : {
9419 : 0 : {
9420 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9421 : 0 : const enum tree_code cmp1 = LE_EXPR;
9422 : 0 : const enum tree_code cmp2 = GE_EXPR;
9423 : 0 : const enum tree_code rcmp = NE_EXPR;
9424 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9425 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9426 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9427 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9428 : : )
9429 : : {
9430 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1434;
9431 : 0 : {
9432 : 0 : tree res_op0;
9433 : 0 : res_op0 = captures[0];
9434 : 0 : tree res_op1;
9435 : 0 : res_op1 = captures[1];
9436 : 0 : tree _r;
9437 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9438 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 956, __FILE__, __LINE__, true);
9439 : 0 : return _r;
9440 : : }
9441 : 0 : next_after_fail1434:;
9442 : : }
9443 : : }
9444 : : }
9445 : : }
9446 : : break;
9447 : : }
9448 : : default:;
9449 : : }
9450 : : break;
9451 : : }
9452 : 118 : case EQ_EXPR:
9453 : 118 : {
9454 : 118 : tree _q20 = TREE_OPERAND (_p0, 0);
9455 : 118 : tree _q21 = TREE_OPERAND (_p0, 1);
9456 : 118 : switch (TREE_CODE (_p1))
9457 : : {
9458 : 0 : case LT_EXPR:
9459 : 0 : {
9460 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9461 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9462 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9463 : : {
9464 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9465 : : {
9466 : 0 : {
9467 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9468 : 0 : const enum tree_code cmp1 = LT_EXPR;
9469 : 0 : const enum tree_code cmp2 = EQ_EXPR;
9470 : 0 : const enum tree_code rcmp = LE_EXPR;
9471 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9472 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9473 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9474 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9475 : : )
9476 : : {
9477 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1435;
9478 : 0 : {
9479 : 0 : tree res_op0;
9480 : 0 : res_op0 = captures[0];
9481 : 0 : tree res_op1;
9482 : 0 : res_op1 = captures[1];
9483 : 0 : tree _r;
9484 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9485 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 956, __FILE__, __LINE__, true);
9486 : 0 : return _r;
9487 : : }
9488 : 0 : next_after_fail1435:;
9489 : : }
9490 : : }
9491 : : }
9492 : : }
9493 : : break;
9494 : : }
9495 : 0 : case LE_EXPR:
9496 : 0 : {
9497 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9498 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9499 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9500 : : {
9501 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9502 : : {
9503 : 0 : {
9504 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9505 : 0 : const enum tree_code cmp1 = LE_EXPR;
9506 : 0 : const enum tree_code cmp2 = EQ_EXPR;
9507 : 0 : const enum tree_code rcmp = LT_EXPR;
9508 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9509 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9510 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9511 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9512 : : )
9513 : : {
9514 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1436;
9515 : 0 : {
9516 : 0 : tree res_op0;
9517 : 0 : res_op0 = captures[0];
9518 : 0 : tree res_op1;
9519 : 0 : res_op1 = captures[1];
9520 : 0 : tree _r;
9521 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9522 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 956, __FILE__, __LINE__, true);
9523 : 0 : return _r;
9524 : : }
9525 : 0 : next_after_fail1436:;
9526 : : }
9527 : : }
9528 : : }
9529 : : }
9530 : : break;
9531 : : }
9532 : 0 : case GT_EXPR:
9533 : 0 : {
9534 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9535 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9536 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9537 : : {
9538 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9539 : : {
9540 : 0 : {
9541 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9542 : 0 : const enum tree_code cmp1 = LT_EXPR;
9543 : 0 : const enum tree_code cmp2 = EQ_EXPR;
9544 : 0 : const enum tree_code rcmp = LE_EXPR;
9545 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9546 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9547 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9548 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9549 : : )
9550 : : {
9551 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1437;
9552 : 0 : {
9553 : 0 : tree res_op0;
9554 : 0 : res_op0 = captures[0];
9555 : 0 : tree res_op1;
9556 : 0 : res_op1 = captures[1];
9557 : 0 : tree _r;
9558 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9559 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 956, __FILE__, __LINE__, true);
9560 : 0 : return _r;
9561 : : }
9562 : 0 : next_after_fail1437:;
9563 : : }
9564 : : }
9565 : : }
9566 : : }
9567 : : break;
9568 : : }
9569 : 8 : case GE_EXPR:
9570 : 8 : {
9571 : 8 : tree _q50 = TREE_OPERAND (_p1, 0);
9572 : 8 : tree _q51 = TREE_OPERAND (_p1, 1);
9573 : 8 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9574 : : {
9575 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9576 : : {
9577 : 0 : {
9578 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9579 : 0 : const enum tree_code cmp1 = LE_EXPR;
9580 : 0 : const enum tree_code cmp2 = EQ_EXPR;
9581 : 0 : const enum tree_code rcmp = LT_EXPR;
9582 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9583 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9584 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9585 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9586 : : )
9587 : : {
9588 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1438;
9589 : 0 : {
9590 : 0 : tree res_op0;
9591 : 0 : res_op0 = captures[0];
9592 : 0 : tree res_op1;
9593 : 0 : res_op1 = captures[1];
9594 : 0 : tree _r;
9595 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9596 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 956, __FILE__, __LINE__, true);
9597 : 0 : return _r;
9598 : : }
9599 : 0 : next_after_fail1438:;
9600 : : }
9601 : : }
9602 : : }
9603 : : }
9604 : : break;
9605 : : }
9606 : : default:;
9607 : : }
9608 : : break;
9609 : : }
9610 : 113 : case NE_EXPR:
9611 : 113 : {
9612 : 113 : tree _q20 = TREE_OPERAND (_p0, 0);
9613 : 113 : tree _q21 = TREE_OPERAND (_p0, 1);
9614 : 113 : switch (TREE_CODE (_p1))
9615 : : {
9616 : 0 : case LT_EXPR:
9617 : 0 : {
9618 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9619 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9620 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9621 : : {
9622 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9623 : : {
9624 : 0 : {
9625 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9626 : 0 : const enum tree_code cmp1 = LT_EXPR;
9627 : 0 : const enum tree_code cmp2 = NE_EXPR;
9628 : 0 : const enum tree_code rcmp = GT_EXPR;
9629 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9630 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9631 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9632 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9633 : : )
9634 : : {
9635 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1439;
9636 : 0 : {
9637 : 0 : tree res_op0;
9638 : 0 : res_op0 = captures[0];
9639 : 0 : tree res_op1;
9640 : 0 : res_op1 = captures[1];
9641 : 0 : tree _r;
9642 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9643 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 956, __FILE__, __LINE__, true);
9644 : 0 : return _r;
9645 : : }
9646 : 0 : next_after_fail1439:;
9647 : : }
9648 : : }
9649 : : }
9650 : : }
9651 : : break;
9652 : : }
9653 : 0 : case LE_EXPR:
9654 : 0 : {
9655 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9656 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9657 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9658 : : {
9659 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9660 : : {
9661 : 0 : {
9662 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9663 : 0 : const enum tree_code cmp1 = LE_EXPR;
9664 : 0 : const enum tree_code cmp2 = NE_EXPR;
9665 : 0 : const enum tree_code rcmp = GE_EXPR;
9666 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9667 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9668 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9669 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9670 : : )
9671 : : {
9672 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1440;
9673 : 0 : {
9674 : 0 : tree res_op0;
9675 : 0 : res_op0 = captures[0];
9676 : 0 : tree res_op1;
9677 : 0 : res_op1 = captures[1];
9678 : 0 : tree _r;
9679 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9680 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 956, __FILE__, __LINE__, true);
9681 : 0 : return _r;
9682 : : }
9683 : 0 : next_after_fail1440:;
9684 : : }
9685 : : }
9686 : : }
9687 : : }
9688 : : break;
9689 : : }
9690 : 0 : case GT_EXPR:
9691 : 0 : {
9692 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9693 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9694 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9695 : : {
9696 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9697 : : {
9698 : 0 : {
9699 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9700 : 0 : const enum tree_code cmp1 = LT_EXPR;
9701 : 0 : const enum tree_code cmp2 = NE_EXPR;
9702 : 0 : const enum tree_code rcmp = GT_EXPR;
9703 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9704 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9705 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9706 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9707 : : )
9708 : : {
9709 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1441;
9710 : 0 : {
9711 : 0 : tree res_op0;
9712 : 0 : res_op0 = captures[0];
9713 : 0 : tree res_op1;
9714 : 0 : res_op1 = captures[1];
9715 : 0 : tree _r;
9716 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9717 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 956, __FILE__, __LINE__, true);
9718 : 0 : return _r;
9719 : : }
9720 : 0 : next_after_fail1441:;
9721 : : }
9722 : : }
9723 : : }
9724 : : }
9725 : : break;
9726 : : }
9727 : 6 : case GE_EXPR:
9728 : 6 : {
9729 : 6 : tree _q50 = TREE_OPERAND (_p1, 0);
9730 : 6 : tree _q51 = TREE_OPERAND (_p1, 1);
9731 : 6 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9732 : : {
9733 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9734 : : {
9735 : 0 : {
9736 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9737 : 0 : const enum tree_code cmp1 = LE_EXPR;
9738 : 0 : const enum tree_code cmp2 = NE_EXPR;
9739 : 0 : const enum tree_code rcmp = GE_EXPR;
9740 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9741 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9742 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9743 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9744 : : )
9745 : : {
9746 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1442;
9747 : 0 : {
9748 : 0 : tree res_op0;
9749 : 0 : res_op0 = captures[0];
9750 : 0 : tree res_op1;
9751 : 0 : res_op1 = captures[1];
9752 : 0 : tree _r;
9753 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9754 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 956, __FILE__, __LINE__, true);
9755 : 0 : return _r;
9756 : : }
9757 : 0 : next_after_fail1442:;
9758 : : }
9759 : : }
9760 : : }
9761 : : }
9762 : : break;
9763 : : }
9764 : : default:;
9765 : : }
9766 : : break;
9767 : : }
9768 : 523 : case MULT_EXPR:
9769 : 523 : {
9770 : 523 : tree _q20 = TREE_OPERAND (_p0, 0);
9771 : 523 : tree _q21 = TREE_OPERAND (_p0, 1);
9772 : 523 : switch (TREE_CODE (_q21))
9773 : : {
9774 : 498 : case INTEGER_CST:
9775 : 498 : {
9776 : 498 : switch (TREE_CODE (_p1))
9777 : : {
9778 : 12 : case MULT_EXPR:
9779 : 12 : {
9780 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
9781 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
9782 : 12 : switch (TREE_CODE (_q51))
9783 : : {
9784 : 12 : case INTEGER_CST:
9785 : 12 : {
9786 : 12 : {
9787 : 12 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1, _p1, _q50, _q51 };
9788 : 12 : tree res = generic_simplify_142 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
9789 : 12 : if (res) return res;
9790 : : }
9791 : 12 : break;
9792 : : }
9793 : : default:;
9794 : : }
9795 : : break;
9796 : : }
9797 : 0 : case LSHIFT_EXPR:
9798 : 0 : {
9799 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9800 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9801 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9802 : : {
9803 : 0 : switch (TREE_CODE (_q51))
9804 : : {
9805 : 0 : case INTEGER_CST:
9806 : 0 : {
9807 : 0 : {
9808 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1, _q51 };
9809 : 0 : tree res = generic_simplify_143 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
9810 : 0 : if (res) return res;
9811 : : }
9812 : 0 : break;
9813 : : }
9814 : : default:;
9815 : : }
9816 : : }
9817 : : break;
9818 : : }
9819 : 498 : default:;
9820 : : }
9821 : 498 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
9822 : : {
9823 : 18 : {
9824 : 18 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21 };
9825 : 18 : tree res = generic_simplify_144 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
9826 : 18 : if (res) return res;
9827 : : }
9828 : : }
9829 : : break;
9830 : : }
9831 : 523 : default:;
9832 : : }
9833 : 523 : switch (TREE_CODE (_q20))
9834 : : {
9835 : 0 : case BIT_XOR_EXPR:
9836 : 0 : {
9837 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
9838 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
9839 : 0 : if (tree_zero_one_valued_p (_q21))
9840 : : {
9841 : 0 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
9842 : : {
9843 : 0 : {
9844 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q21 };
9845 : 0 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures);
9846 : 0 : if (res) return res;
9847 : : }
9848 : : }
9849 : 0 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
9850 : : {
9851 : 0 : {
9852 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q21 };
9853 : 0 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures);
9854 : 0 : if (res) return res;
9855 : : }
9856 : : }
9857 : : }
9858 : : break;
9859 : : }
9860 : 523 : default:;
9861 : : }
9862 : 523 : if (tree_zero_one_valued_p (_q20))
9863 : : {
9864 : 8 : switch (TREE_CODE (_q21))
9865 : : {
9866 : 2 : case BIT_XOR_EXPR:
9867 : 2 : {
9868 : 2 : tree _q40 = TREE_OPERAND (_q21, 0);
9869 : 2 : tree _q41 = TREE_OPERAND (_q21, 1);
9870 : 2 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
9871 : : {
9872 : 2 : {
9873 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _q20 };
9874 : 2 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures);
9875 : 2 : if (res) return res;
9876 : : }
9877 : : }
9878 : 0 : if ((_p1 == _q41 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q41, 0) && types_match (_p1, _q41)))
9879 : : {
9880 : 0 : {
9881 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _q20 };
9882 : 0 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures);
9883 : 0 : if (res) return res;
9884 : : }
9885 : : }
9886 : : break;
9887 : : }
9888 : : default:;
9889 : : }
9890 : : }
9891 : : break;
9892 : : }
9893 : 2489 : case LSHIFT_EXPR:
9894 : 2489 : {
9895 : 2489 : tree _q20 = TREE_OPERAND (_p0, 0);
9896 : 2489 : tree _q21 = TREE_OPERAND (_p0, 1);
9897 : 2489 : switch (TREE_CODE (_q21))
9898 : : {
9899 : 1108 : case INTEGER_CST:
9900 : 1108 : {
9901 : 1108 : switch (TREE_CODE (_p1))
9902 : : {
9903 : 0 : case MULT_EXPR:
9904 : 0 : {
9905 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9906 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9907 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9908 : : {
9909 : 0 : switch (TREE_CODE (_q51))
9910 : : {
9911 : 0 : case INTEGER_CST:
9912 : 0 : {
9913 : 0 : {
9914 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _p1, _q20, _q51, _p0, _q21 };
9915 : 0 : tree res = generic_simplify_143 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
9916 : 0 : if (res) return res;
9917 : : }
9918 : 0 : break;
9919 : : }
9920 : : default:;
9921 : : }
9922 : : }
9923 : : break;
9924 : : }
9925 : 1108 : default:;
9926 : : }
9927 : 1108 : {
9928 : 1108 : tree _p1_pops[1];
9929 : 1108 : if (tree_nop_convert (_p1, _p1_pops))
9930 : : {
9931 : 23 : tree _q50 = _p1_pops[0];
9932 : 23 : switch (TREE_CODE (_q50))
9933 : : {
9934 : 0 : case MULT_EXPR:
9935 : 0 : {
9936 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
9937 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
9938 : 0 : {
9939 : 0 : tree _q60_pops[1];
9940 : 0 : if (tree_nop_convert (_q60, _q60_pops))
9941 : : {
9942 : 0 : tree _q70 = _q60_pops[0];
9943 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
9944 : : {
9945 : 0 : switch (TREE_CODE (_q61))
9946 : : {
9947 : 0 : case INTEGER_CST:
9948 : 0 : {
9949 : 0 : {
9950 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q50, _q20, _q61, _p0, _q21 };
9951 : 0 : tree res = generic_simplify_116 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
9952 : 0 : if (res) return res;
9953 : : }
9954 : 0 : break;
9955 : : }
9956 : : default:;
9957 : : }
9958 : : }
9959 : : }
9960 : : }
9961 : 0 : break;
9962 : : }
9963 : : default:;
9964 : : }
9965 : : }
9966 : : }
9967 : 1108 : break;
9968 : : }
9969 : : default:;
9970 : : }
9971 : : break;
9972 : : }
9973 : 670630 : default:;
9974 : : }
9975 : 670630 : switch (TREE_CODE (_p1))
9976 : : {
9977 : 243 : case MULT_EXPR:
9978 : 243 : {
9979 : 243 : tree _q30 = TREE_OPERAND (_p1, 0);
9980 : 243 : tree _q31 = TREE_OPERAND (_p1, 1);
9981 : 243 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
9982 : : {
9983 : 0 : switch (TREE_CODE (_q31))
9984 : : {
9985 : 0 : case INTEGER_CST:
9986 : 0 : {
9987 : 0 : {
9988 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _p1, _p0, _q31 };
9989 : 0 : tree res = generic_simplify_144 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
9990 : 0 : if (res) return res;
9991 : : }
9992 : 0 : break;
9993 : : }
9994 : : default:;
9995 : : }
9996 : : }
9997 : : break;
9998 : : }
9999 : 670630 : default:;
10000 : : }
10001 : 670630 : {
10002 : 670630 : tree _p1_pops[1];
10003 : 670630 : if (tree_nop_convert (_p1, _p1_pops))
10004 : : {
10005 : 529678 : tree _q30 = _p1_pops[0];
10006 : 529678 : switch (TREE_CODE (_q30))
10007 : : {
10008 : 17 : case MULT_EXPR:
10009 : 17 : {
10010 : 17 : tree _q40 = TREE_OPERAND (_q30, 0);
10011 : 17 : tree _q41 = TREE_OPERAND (_q30, 1);
10012 : 17 : {
10013 : 17 : tree _q40_pops[1];
10014 : 17 : if (tree_nop_convert (_q40, _q40_pops))
10015 : : {
10016 : 0 : tree _q50 = _q40_pops[0];
10017 : 0 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
10018 : : {
10019 : 0 : switch (TREE_CODE (_q41))
10020 : : {
10021 : 0 : case INTEGER_CST:
10022 : 0 : {
10023 : 0 : {
10024 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q30, _p0, _q41 };
10025 : 0 : tree res = generic_simplify_117 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
10026 : 0 : if (res) return res;
10027 : : }
10028 : 0 : break;
10029 : : }
10030 : : default:;
10031 : : }
10032 : : }
10033 : : }
10034 : : }
10035 : 17 : break;
10036 : : }
10037 : : default:;
10038 : : }
10039 : : }
10040 : : }
10041 : 670630 : switch (TREE_CODE (_p0))
10042 : : {
10043 : 2489 : case LSHIFT_EXPR:
10044 : 2489 : {
10045 : 2489 : tree _q20 = TREE_OPERAND (_p0, 0);
10046 : 2489 : tree _q21 = TREE_OPERAND (_p0, 1);
10047 : 2489 : switch (TREE_CODE (_q21))
10048 : : {
10049 : 1108 : case INTEGER_CST:
10050 : 1108 : {
10051 : 1108 : switch (TREE_CODE (_p1))
10052 : : {
10053 : 9 : case LSHIFT_EXPR:
10054 : 9 : {
10055 : 9 : tree _q50 = TREE_OPERAND (_p1, 0);
10056 : 9 : tree _q51 = TREE_OPERAND (_p1, 1);
10057 : 9 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
10058 : : {
10059 : 3 : switch (TREE_CODE (_q51))
10060 : : {
10061 : 3 : case INTEGER_CST:
10062 : 3 : {
10063 : 3 : {
10064 : 3 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
10065 : 3 : tree res = generic_simplify_145 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
10066 : 3 : if (res) return res;
10067 : : }
10068 : 1 : break;
10069 : : }
10070 : : default:;
10071 : : }
10072 : : }
10073 : : break;
10074 : : }
10075 : 1106 : default:;
10076 : : }
10077 : 1106 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
10078 : : {
10079 : 57 : {
10080 : 57 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
10081 : 57 : tree res = generic_simplify_146 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
10082 : 57 : if (res) return res;
10083 : : }
10084 : : }
10085 : : break;
10086 : : }
10087 : : default:;
10088 : : }
10089 : : break;
10090 : : }
10091 : 670628 : default:;
10092 : : }
10093 : 670628 : switch (TREE_CODE (_p1))
10094 : : {
10095 : 1982 : case LSHIFT_EXPR:
10096 : 1982 : {
10097 : 1982 : tree _q30 = TREE_OPERAND (_p1, 0);
10098 : 1982 : tree _q31 = TREE_OPERAND (_p1, 1);
10099 : 1982 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
10100 : : {
10101 : 3 : switch (TREE_CODE (_q31))
10102 : : {
10103 : 3 : case INTEGER_CST:
10104 : 3 : {
10105 : 3 : {
10106 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _p0, _q31 };
10107 : 3 : tree res = generic_simplify_146 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
10108 : 3 : if (res) return res;
10109 : : }
10110 : 0 : break;
10111 : : }
10112 : : default:;
10113 : : }
10114 : : }
10115 : : break;
10116 : : }
10117 : 670625 : default:;
10118 : : }
10119 : 670625 : switch (TREE_CODE (_p0))
10120 : : {
10121 : 0 : case MIN_EXPR:
10122 : 0 : {
10123 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
10124 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
10125 : 0 : switch (TREE_CODE (_p1))
10126 : : {
10127 : 0 : case MAX_EXPR:
10128 : 0 : {
10129 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
10130 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
10131 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
10132 : : {
10133 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10134 : : {
10135 : 0 : {
10136 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10137 : 0 : if (!HONOR_NANS (captures[0])
10138 : : )
10139 : : {
10140 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1443;
10141 : 0 : {
10142 : 0 : tree res_op0;
10143 : 0 : res_op0 = captures[0];
10144 : 0 : tree res_op1;
10145 : 0 : res_op1 = captures[1];
10146 : 0 : tree _r;
10147 : 0 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
10148 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 901, __FILE__, __LINE__, true);
10149 : 0 : return _r;
10150 : : }
10151 : 0 : next_after_fail1443:;
10152 : : }
10153 : : }
10154 : : }
10155 : : }
10156 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
10157 : : {
10158 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
10159 : : {
10160 : 0 : {
10161 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
10162 : 0 : if (!HONOR_NANS (captures[0])
10163 : : )
10164 : : {
10165 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1444;
10166 : 0 : {
10167 : 0 : tree res_op0;
10168 : 0 : res_op0 = captures[0];
10169 : 0 : tree res_op1;
10170 : 0 : res_op1 = captures[1];
10171 : 0 : tree _r;
10172 : 0 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
10173 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 901, __FILE__, __LINE__, true);
10174 : 0 : return _r;
10175 : : }
10176 : 0 : next_after_fail1444:;
10177 : : }
10178 : : }
10179 : : }
10180 : : }
10181 : : break;
10182 : : }
10183 : : default:;
10184 : : }
10185 : : break;
10186 : : }
10187 : 0 : case MAX_EXPR:
10188 : 0 : {
10189 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
10190 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
10191 : 0 : switch (TREE_CODE (_p1))
10192 : : {
10193 : 0 : case MIN_EXPR:
10194 : 0 : {
10195 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
10196 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
10197 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
10198 : : {
10199 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10200 : : {
10201 : 0 : {
10202 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10203 : 0 : if (!HONOR_NANS (captures[0])
10204 : : )
10205 : : {
10206 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1445;
10207 : 0 : {
10208 : 0 : tree res_op0;
10209 : 0 : res_op0 = captures[0];
10210 : 0 : tree res_op1;
10211 : 0 : res_op1 = captures[1];
10212 : 0 : tree _r;
10213 : 0 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
10214 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 901, __FILE__, __LINE__, true);
10215 : 0 : return _r;
10216 : : }
10217 : 0 : next_after_fail1445:;
10218 : : }
10219 : : }
10220 : : }
10221 : : }
10222 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
10223 : : {
10224 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
10225 : : {
10226 : 0 : {
10227 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10228 : 0 : if (!HONOR_NANS (captures[0])
10229 : : )
10230 : : {
10231 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1446;
10232 : 0 : {
10233 : 0 : tree res_op0;
10234 : 0 : res_op0 = captures[0];
10235 : 0 : tree res_op1;
10236 : 0 : res_op1 = captures[1];
10237 : 0 : tree _r;
10238 : 0 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
10239 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 901, __FILE__, __LINE__, true);
10240 : 0 : return _r;
10241 : : }
10242 : 0 : next_after_fail1446:;
10243 : : }
10244 : : }
10245 : : }
10246 : : }
10247 : : break;
10248 : : }
10249 : : default:;
10250 : : }
10251 : : break;
10252 : : }
10253 : 670625 : default:;
10254 : : }
10255 : 670625 : switch (TREE_CODE (_p1))
10256 : : {
10257 : 243 : case MULT_EXPR:
10258 : 243 : {
10259 : 243 : tree _q30 = TREE_OPERAND (_p1, 0);
10260 : 243 : tree _q31 = TREE_OPERAND (_p1, 1);
10261 : 243 : switch (TREE_CODE (_q30))
10262 : : {
10263 : 0 : case BIT_XOR_EXPR:
10264 : 0 : {
10265 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
10266 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
10267 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
10268 : : {
10269 : 0 : if (tree_zero_one_valued_p (_q31))
10270 : : {
10271 : 0 : {
10272 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q41, _q31 };
10273 : 0 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures);
10274 : 0 : if (res) return res;
10275 : : }
10276 : : }
10277 : : }
10278 : 0 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
10279 : : {
10280 : 0 : if (tree_zero_one_valued_p (_q31))
10281 : : {
10282 : 0 : {
10283 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q40, _q31 };
10284 : 0 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures);
10285 : 0 : if (res) return res;
10286 : : }
10287 : : }
10288 : : }
10289 : : break;
10290 : : }
10291 : 243 : default:;
10292 : : }
10293 : 243 : if (tree_zero_one_valued_p (_q30))
10294 : : {
10295 : 17 : switch (TREE_CODE (_q31))
10296 : : {
10297 : 0 : case BIT_XOR_EXPR:
10298 : 0 : {
10299 : 0 : tree _q50 = TREE_OPERAND (_q31, 0);
10300 : 0 : tree _q51 = TREE_OPERAND (_q31, 1);
10301 : 0 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
10302 : : {
10303 : 0 : {
10304 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q51, _q30 };
10305 : 0 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures);
10306 : 0 : if (res) return res;
10307 : : }
10308 : : }
10309 : 0 : if ((_q51 == _p0 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _p0, 0) && types_match (_q51, _p0)))
10310 : : {
10311 : 0 : {
10312 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q50, _q30 };
10313 : 0 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures);
10314 : 0 : if (res) return res;
10315 : : }
10316 : : }
10317 : : break;
10318 : : }
10319 : : default:;
10320 : : }
10321 : : }
10322 : : break;
10323 : : }
10324 : 670625 : default:;
10325 : : }
10326 : 670625 : switch (TREE_CODE (_p0))
10327 : : {
10328 : 1 : case VEC_COND_EXPR:
10329 : 1 : {
10330 : 1 : tree _q20 = TREE_OPERAND (_p0, 0);
10331 : 1 : tree _q21 = TREE_OPERAND (_p0, 1);
10332 : 1 : tree _q22 = TREE_OPERAND (_p0, 2);
10333 : 1 : switch (TREE_CODE (_p1))
10334 : : {
10335 : 0 : case VEC_COND_EXPR:
10336 : 0 : {
10337 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
10338 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
10339 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
10340 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
10341 : : {
10342 : 0 : {
10343 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
10344 : 0 : if (VECTOR_TYPE_P (type)
10345 : 0 : && (TREE_CODE_CLASS (BIT_XOR_EXPR) != tcc_comparison
10346 : : || types_match (type, TREE_TYPE (captures[2]))
10347 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
10348 : : || (optimize_vectors_before_lowering_p ()
10349 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
10350 : : )
10351 : : {
10352 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1447;
10353 : 0 : {
10354 : 0 : tree res_op0;
10355 : 0 : res_op0 = captures[1];
10356 : 0 : tree res_op1;
10357 : 0 : {
10358 : 0 : tree _o1[2], _r1;
10359 : 0 : _o1[0] = captures[2];
10360 : 0 : _o1[1] = captures[5];
10361 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10362 : 0 : if (EXPR_P (_r1))
10363 : 0 : goto next_after_fail1447;
10364 : 0 : res_op1 = _r1;
10365 : : }
10366 : 0 : tree res_op2;
10367 : 0 : {
10368 : 0 : tree _o1[2], _r1;
10369 : 0 : _o1[0] = captures[3];
10370 : 0 : _o1[1] = captures[6];
10371 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10372 : 0 : if (EXPR_P (_r1))
10373 : 0 : goto next_after_fail1447;
10374 : 0 : res_op2 = _r1;
10375 : : }
10376 : 0 : tree _r;
10377 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10378 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 905, __FILE__, __LINE__, true);
10379 : 0 : return _r;
10380 : : }
10381 : 0 : next_after_fail1447:;
10382 : : }
10383 : : }
10384 : : }
10385 : : break;
10386 : : }
10387 : 1 : default:;
10388 : : }
10389 : 1 : if (integer_minus_onep (_q21))
10390 : : {
10391 : 1 : if (integer_zerop (_q22))
10392 : : {
10393 : 1 : switch (TREE_CODE (_p1))
10394 : : {
10395 : 0 : case VEC_COND_EXPR:
10396 : 0 : {
10397 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
10398 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
10399 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
10400 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
10401 : : {
10402 : 0 : if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
10403 : : {
10404 : 0 : {
10405 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10406 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10407 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10408 : : )
10409 : : {
10410 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1448;
10411 : 0 : {
10412 : 0 : tree res_op0;
10413 : 0 : {
10414 : 0 : tree _o1[2], _r1;
10415 : 0 : _o1[0] = captures[0];
10416 : 0 : _o1[1] = captures[3];
10417 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10418 : 0 : res_op0 = _r1;
10419 : : }
10420 : 0 : tree res_op1;
10421 : 0 : res_op1 = captures[1];
10422 : 0 : tree res_op2;
10423 : 0 : res_op2 = captures[2];
10424 : 0 : tree _r;
10425 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10426 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
10427 : 0 : return _r;
10428 : : }
10429 : 0 : next_after_fail1448:;
10430 : : }
10431 : : }
10432 : 0 : {
10433 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10434 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10435 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10436 : : )
10437 : : {
10438 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1449;
10439 : 0 : {
10440 : 0 : tree res_op0;
10441 : 0 : {
10442 : 0 : tree _o1[2], _r1;
10443 : 0 : _o1[0] = captures[0];
10444 : 0 : _o1[1] = captures[3];
10445 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10446 : 0 : res_op0 = _r1;
10447 : : }
10448 : 0 : tree res_op1;
10449 : 0 : res_op1 = captures[1];
10450 : 0 : tree res_op2;
10451 : 0 : res_op2 = captures[2];
10452 : 0 : tree _r;
10453 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10454 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
10455 : 0 : return _r;
10456 : : }
10457 : 0 : next_after_fail1449:;
10458 : : }
10459 : : }
10460 : 0 : {
10461 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10462 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10463 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10464 : : )
10465 : : {
10466 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1450;
10467 : 0 : {
10468 : 0 : tree res_op0;
10469 : 0 : {
10470 : 0 : tree _o1[2], _r1;
10471 : 0 : _o1[0] = captures[0];
10472 : 0 : _o1[1] = captures[3];
10473 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10474 : 0 : res_op0 = _r1;
10475 : : }
10476 : 0 : tree res_op1;
10477 : 0 : res_op1 = captures[1];
10478 : 0 : tree res_op2;
10479 : 0 : res_op2 = captures[2];
10480 : 0 : tree _r;
10481 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10482 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
10483 : 0 : return _r;
10484 : : }
10485 : 0 : next_after_fail1450:;
10486 : : }
10487 : : }
10488 : 0 : {
10489 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10490 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10491 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10492 : : )
10493 : : {
10494 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1451;
10495 : 0 : {
10496 : 0 : tree res_op0;
10497 : 0 : {
10498 : 0 : tree _o1[2], _r1;
10499 : 0 : _o1[0] = captures[0];
10500 : 0 : _o1[1] = captures[3];
10501 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10502 : 0 : res_op0 = _r1;
10503 : : }
10504 : 0 : tree res_op1;
10505 : 0 : res_op1 = captures[1];
10506 : 0 : tree res_op2;
10507 : 0 : res_op2 = captures[2];
10508 : 0 : tree _r;
10509 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10510 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
10511 : 0 : return _r;
10512 : : }
10513 : 0 : next_after_fail1451:;
10514 : : }
10515 : : }
10516 : 0 : {
10517 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10518 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10519 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10520 : : )
10521 : : {
10522 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1452;
10523 : 0 : {
10524 : 0 : tree res_op0;
10525 : 0 : {
10526 : 0 : tree _o1[2], _r1;
10527 : 0 : _o1[0] = captures[0];
10528 : 0 : _o1[1] = captures[3];
10529 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10530 : 0 : res_op0 = _r1;
10531 : : }
10532 : 0 : tree res_op1;
10533 : 0 : res_op1 = captures[1];
10534 : 0 : tree res_op2;
10535 : 0 : res_op2 = captures[2];
10536 : 0 : tree _r;
10537 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10538 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
10539 : 0 : return _r;
10540 : : }
10541 : 0 : next_after_fail1452:;
10542 : : }
10543 : : }
10544 : 0 : {
10545 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10546 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10547 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10548 : : )
10549 : : {
10550 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1453;
10551 : 0 : {
10552 : 0 : tree res_op0;
10553 : 0 : {
10554 : 0 : tree _o1[2], _r1;
10555 : 0 : _o1[0] = captures[0];
10556 : 0 : _o1[1] = captures[3];
10557 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10558 : 0 : res_op0 = _r1;
10559 : : }
10560 : 0 : tree res_op1;
10561 : 0 : res_op1 = captures[1];
10562 : 0 : tree res_op2;
10563 : 0 : res_op2 = captures[2];
10564 : 0 : tree _r;
10565 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10566 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
10567 : 0 : return _r;
10568 : : }
10569 : 0 : next_after_fail1453:;
10570 : : }
10571 : : }
10572 : 0 : {
10573 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10574 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10575 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10576 : : )
10577 : : {
10578 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1454;
10579 : 0 : {
10580 : 0 : tree res_op0;
10581 : 0 : {
10582 : 0 : tree _o1[2], _r1;
10583 : 0 : _o1[0] = captures[0];
10584 : 0 : _o1[1] = captures[3];
10585 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10586 : 0 : res_op0 = _r1;
10587 : : }
10588 : 0 : tree res_op1;
10589 : 0 : res_op1 = captures[1];
10590 : 0 : tree res_op2;
10591 : 0 : res_op2 = captures[2];
10592 : 0 : tree _r;
10593 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10594 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
10595 : 0 : return _r;
10596 : : }
10597 : 0 : next_after_fail1454:;
10598 : : }
10599 : : }
10600 : 0 : {
10601 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10602 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10603 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10604 : : )
10605 : : {
10606 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1455;
10607 : 0 : {
10608 : 0 : tree res_op0;
10609 : 0 : {
10610 : 0 : tree _o1[2], _r1;
10611 : 0 : _o1[0] = captures[0];
10612 : 0 : _o1[1] = captures[3];
10613 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10614 : 0 : res_op0 = _r1;
10615 : : }
10616 : 0 : tree res_op1;
10617 : 0 : res_op1 = captures[1];
10618 : 0 : tree res_op2;
10619 : 0 : res_op2 = captures[2];
10620 : 0 : tree _r;
10621 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10622 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
10623 : 0 : return _r;
10624 : : }
10625 : 0 : next_after_fail1455:;
10626 : : }
10627 : : }
10628 : 0 : {
10629 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10630 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10631 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10632 : : )
10633 : : {
10634 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1456;
10635 : 0 : {
10636 : 0 : tree res_op0;
10637 : 0 : {
10638 : 0 : tree _o1[2], _r1;
10639 : 0 : _o1[0] = captures[0];
10640 : 0 : _o1[1] = captures[3];
10641 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10642 : 0 : res_op0 = _r1;
10643 : : }
10644 : 0 : tree res_op1;
10645 : 0 : res_op1 = captures[1];
10646 : 0 : tree res_op2;
10647 : 0 : res_op2 = captures[2];
10648 : 0 : tree _r;
10649 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10650 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
10651 : 0 : return _r;
10652 : : }
10653 : 0 : next_after_fail1456:;
10654 : : }
10655 : : }
10656 : 0 : {
10657 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10658 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10659 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10660 : : )
10661 : : {
10662 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1457;
10663 : 0 : {
10664 : 0 : tree res_op0;
10665 : 0 : {
10666 : 0 : tree _o1[2], _r1;
10667 : 0 : _o1[0] = captures[0];
10668 : 0 : _o1[1] = captures[3];
10669 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10670 : 0 : res_op0 = _r1;
10671 : : }
10672 : 0 : tree res_op1;
10673 : 0 : res_op1 = captures[1];
10674 : 0 : tree res_op2;
10675 : 0 : res_op2 = captures[2];
10676 : 0 : tree _r;
10677 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10678 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
10679 : 0 : return _r;
10680 : : }
10681 : 0 : next_after_fail1457:;
10682 : : }
10683 : : }
10684 : 0 : {
10685 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10686 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10687 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10688 : : )
10689 : : {
10690 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1458;
10691 : 0 : {
10692 : 0 : tree res_op0;
10693 : 0 : {
10694 : 0 : tree _o1[2], _r1;
10695 : 0 : _o1[0] = captures[0];
10696 : 0 : _o1[1] = captures[3];
10697 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10698 : 0 : res_op0 = _r1;
10699 : : }
10700 : 0 : tree res_op1;
10701 : 0 : res_op1 = captures[1];
10702 : 0 : tree res_op2;
10703 : 0 : res_op2 = captures[2];
10704 : 0 : tree _r;
10705 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10706 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
10707 : 0 : return _r;
10708 : : }
10709 : 0 : next_after_fail1458:;
10710 : : }
10711 : : }
10712 : 0 : {
10713 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10714 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10715 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10716 : : )
10717 : : {
10718 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1459;
10719 : 0 : {
10720 : 0 : tree res_op0;
10721 : 0 : {
10722 : 0 : tree _o1[2], _r1;
10723 : 0 : _o1[0] = captures[0];
10724 : 0 : _o1[1] = captures[3];
10725 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10726 : 0 : res_op0 = _r1;
10727 : : }
10728 : 0 : tree res_op1;
10729 : 0 : res_op1 = captures[1];
10730 : 0 : tree res_op2;
10731 : 0 : res_op2 = captures[2];
10732 : 0 : tree _r;
10733 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10734 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
10735 : 0 : return _r;
10736 : : }
10737 : 0 : next_after_fail1459:;
10738 : : }
10739 : : }
10740 : 0 : {
10741 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10742 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10743 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10744 : : )
10745 : : {
10746 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1460;
10747 : 0 : {
10748 : 0 : tree res_op0;
10749 : 0 : {
10750 : 0 : tree _o1[2], _r1;
10751 : 0 : _o1[0] = captures[0];
10752 : 0 : _o1[1] = captures[3];
10753 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10754 : 0 : res_op0 = _r1;
10755 : : }
10756 : 0 : tree res_op1;
10757 : 0 : res_op1 = captures[1];
10758 : 0 : tree res_op2;
10759 : 0 : res_op2 = captures[2];
10760 : 0 : tree _r;
10761 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10762 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
10763 : 0 : return _r;
10764 : : }
10765 : 0 : next_after_fail1460:;
10766 : : }
10767 : : }
10768 : 0 : {
10769 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10770 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10771 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10772 : : )
10773 : : {
10774 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1461;
10775 : 0 : {
10776 : 0 : tree res_op0;
10777 : 0 : {
10778 : 0 : tree _o1[2], _r1;
10779 : 0 : _o1[0] = captures[0];
10780 : 0 : _o1[1] = captures[3];
10781 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10782 : 0 : res_op0 = _r1;
10783 : : }
10784 : 0 : tree res_op1;
10785 : 0 : res_op1 = captures[1];
10786 : 0 : tree res_op2;
10787 : 0 : res_op2 = captures[2];
10788 : 0 : tree _r;
10789 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10790 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
10791 : 0 : return _r;
10792 : : }
10793 : 0 : next_after_fail1461:;
10794 : : }
10795 : : }
10796 : 0 : {
10797 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10798 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10799 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10800 : : )
10801 : : {
10802 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1462;
10803 : 0 : {
10804 : 0 : tree res_op0;
10805 : 0 : {
10806 : 0 : tree _o1[2], _r1;
10807 : 0 : _o1[0] = captures[0];
10808 : 0 : _o1[1] = captures[3];
10809 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10810 : 0 : res_op0 = _r1;
10811 : : }
10812 : 0 : tree res_op1;
10813 : 0 : res_op1 = captures[1];
10814 : 0 : tree res_op2;
10815 : 0 : res_op2 = captures[2];
10816 : 0 : tree _r;
10817 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10818 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
10819 : 0 : return _r;
10820 : : }
10821 : 0 : next_after_fail1462:;
10822 : : }
10823 : : }
10824 : 0 : {
10825 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10826 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10827 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10828 : : )
10829 : : {
10830 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1463;
10831 : 0 : {
10832 : 0 : tree res_op0;
10833 : 0 : {
10834 : 0 : tree _o1[2], _r1;
10835 : 0 : _o1[0] = captures[0];
10836 : 0 : _o1[1] = captures[3];
10837 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10838 : 0 : res_op0 = _r1;
10839 : : }
10840 : 0 : tree res_op1;
10841 : 0 : res_op1 = captures[1];
10842 : 0 : tree res_op2;
10843 : 0 : res_op2 = captures[2];
10844 : 0 : tree _r;
10845 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10846 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
10847 : 0 : return _r;
10848 : : }
10849 : 0 : next_after_fail1463:;
10850 : : }
10851 : : }
10852 : 0 : {
10853 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10854 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10855 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10856 : : )
10857 : : {
10858 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1464;
10859 : 0 : {
10860 : 0 : tree res_op0;
10861 : 0 : {
10862 : 0 : tree _o1[2], _r1;
10863 : 0 : _o1[0] = captures[0];
10864 : 0 : _o1[1] = captures[3];
10865 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10866 : 0 : res_op0 = _r1;
10867 : : }
10868 : 0 : tree res_op1;
10869 : 0 : res_op1 = captures[1];
10870 : 0 : tree res_op2;
10871 : 0 : res_op2 = captures[2];
10872 : 0 : tree _r;
10873 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10874 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
10875 : 0 : return _r;
10876 : : }
10877 : 0 : next_after_fail1464:;
10878 : : }
10879 : : }
10880 : 0 : {
10881 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10882 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10883 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10884 : : )
10885 : : {
10886 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1465;
10887 : 0 : {
10888 : 0 : tree res_op0;
10889 : 0 : {
10890 : 0 : tree _o1[2], _r1;
10891 : 0 : _o1[0] = captures[0];
10892 : 0 : _o1[1] = captures[3];
10893 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10894 : 0 : res_op0 = _r1;
10895 : : }
10896 : 0 : tree res_op1;
10897 : 0 : res_op1 = captures[1];
10898 : 0 : tree res_op2;
10899 : 0 : res_op2 = captures[2];
10900 : 0 : tree _r;
10901 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10902 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
10903 : 0 : return _r;
10904 : : }
10905 : 0 : next_after_fail1465:;
10906 : : }
10907 : : }
10908 : 0 : {
10909 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10910 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10911 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10912 : : )
10913 : : {
10914 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1466;
10915 : 0 : {
10916 : 0 : tree res_op0;
10917 : 0 : {
10918 : 0 : tree _o1[2], _r1;
10919 : 0 : _o1[0] = captures[0];
10920 : 0 : _o1[1] = captures[3];
10921 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10922 : 0 : res_op0 = _r1;
10923 : : }
10924 : 0 : tree res_op1;
10925 : 0 : res_op1 = captures[1];
10926 : 0 : tree res_op2;
10927 : 0 : res_op2 = captures[2];
10928 : 0 : tree _r;
10929 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10930 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
10931 : 0 : return _r;
10932 : : }
10933 : 0 : next_after_fail1466:;
10934 : : }
10935 : : }
10936 : 0 : {
10937 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10938 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10939 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10940 : : )
10941 : : {
10942 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1467;
10943 : 0 : {
10944 : 0 : tree res_op0;
10945 : 0 : {
10946 : 0 : tree _o1[2], _r1;
10947 : 0 : _o1[0] = captures[0];
10948 : 0 : _o1[1] = captures[3];
10949 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10950 : 0 : res_op0 = _r1;
10951 : : }
10952 : 0 : tree res_op1;
10953 : 0 : res_op1 = captures[1];
10954 : 0 : tree res_op2;
10955 : 0 : res_op2 = captures[2];
10956 : 0 : tree _r;
10957 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10958 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
10959 : 0 : return _r;
10960 : : }
10961 : 0 : next_after_fail1467:;
10962 : : }
10963 : : }
10964 : 0 : {
10965 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10966 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10967 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10968 : : )
10969 : : {
10970 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1468;
10971 : 0 : {
10972 : 0 : tree res_op0;
10973 : 0 : {
10974 : 0 : tree _o1[2], _r1;
10975 : 0 : _o1[0] = captures[0];
10976 : 0 : _o1[1] = captures[3];
10977 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10978 : 0 : res_op0 = _r1;
10979 : : }
10980 : 0 : tree res_op1;
10981 : 0 : res_op1 = captures[1];
10982 : 0 : tree res_op2;
10983 : 0 : res_op2 = captures[2];
10984 : 0 : tree _r;
10985 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10986 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
10987 : 0 : return _r;
10988 : : }
10989 : 0 : next_after_fail1468:;
10990 : : }
10991 : : }
10992 : 0 : {
10993 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10994 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10995 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10996 : : )
10997 : : {
10998 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1469;
10999 : 0 : {
11000 : 0 : tree res_op0;
11001 : 0 : {
11002 : 0 : tree _o1[2], _r1;
11003 : 0 : _o1[0] = captures[0];
11004 : 0 : _o1[1] = captures[3];
11005 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11006 : 0 : res_op0 = _r1;
11007 : : }
11008 : 0 : tree res_op1;
11009 : 0 : res_op1 = captures[1];
11010 : 0 : tree res_op2;
11011 : 0 : res_op2 = captures[2];
11012 : 0 : tree _r;
11013 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11014 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
11015 : 0 : return _r;
11016 : : }
11017 : 0 : next_after_fail1469:;
11018 : : }
11019 : : }
11020 : 0 : {
11021 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11022 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11023 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11024 : : )
11025 : : {
11026 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1470;
11027 : 0 : {
11028 : 0 : tree res_op0;
11029 : 0 : {
11030 : 0 : tree _o1[2], _r1;
11031 : 0 : _o1[0] = captures[0];
11032 : 0 : _o1[1] = captures[3];
11033 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11034 : 0 : res_op0 = _r1;
11035 : : }
11036 : 0 : tree res_op1;
11037 : 0 : res_op1 = captures[1];
11038 : 0 : tree res_op2;
11039 : 0 : res_op2 = captures[2];
11040 : 0 : tree _r;
11041 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11042 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
11043 : 0 : return _r;
11044 : : }
11045 : 0 : next_after_fail1470:;
11046 : : }
11047 : : }
11048 : 0 : {
11049 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11050 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11051 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11052 : : )
11053 : : {
11054 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1471;
11055 : 0 : {
11056 : 0 : tree res_op0;
11057 : 0 : {
11058 : 0 : tree _o1[2], _r1;
11059 : 0 : _o1[0] = captures[0];
11060 : 0 : _o1[1] = captures[3];
11061 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11062 : 0 : res_op0 = _r1;
11063 : : }
11064 : 0 : tree res_op1;
11065 : 0 : res_op1 = captures[1];
11066 : 0 : tree res_op2;
11067 : 0 : res_op2 = captures[2];
11068 : 0 : tree _r;
11069 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11070 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
11071 : 0 : return _r;
11072 : : }
11073 : 0 : next_after_fail1471:;
11074 : : }
11075 : : }
11076 : 0 : {
11077 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11078 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11079 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11080 : : )
11081 : : {
11082 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1472;
11083 : 0 : {
11084 : 0 : tree res_op0;
11085 : 0 : {
11086 : 0 : tree _o1[2], _r1;
11087 : 0 : _o1[0] = captures[0];
11088 : 0 : _o1[1] = captures[3];
11089 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11090 : 0 : res_op0 = _r1;
11091 : : }
11092 : 0 : tree res_op1;
11093 : 0 : res_op1 = captures[1];
11094 : 0 : tree res_op2;
11095 : 0 : res_op2 = captures[2];
11096 : 0 : tree _r;
11097 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11098 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
11099 : 0 : return _r;
11100 : : }
11101 : 0 : next_after_fail1472:;
11102 : : }
11103 : : }
11104 : 0 : {
11105 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11106 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11107 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11108 : : )
11109 : : {
11110 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1473;
11111 : 0 : {
11112 : 0 : tree res_op0;
11113 : 0 : {
11114 : 0 : tree _o1[2], _r1;
11115 : 0 : _o1[0] = captures[0];
11116 : 0 : _o1[1] = captures[3];
11117 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11118 : 0 : res_op0 = _r1;
11119 : : }
11120 : 0 : tree res_op1;
11121 : 0 : res_op1 = captures[1];
11122 : 0 : tree res_op2;
11123 : 0 : res_op2 = captures[2];
11124 : 0 : tree _r;
11125 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11126 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
11127 : 0 : return _r;
11128 : : }
11129 : 0 : next_after_fail1473:;
11130 : : }
11131 : : }
11132 : 0 : {
11133 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11134 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11135 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11136 : : )
11137 : : {
11138 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1474;
11139 : 0 : {
11140 : 0 : tree res_op0;
11141 : 0 : {
11142 : 0 : tree _o1[2], _r1;
11143 : 0 : _o1[0] = captures[0];
11144 : 0 : _o1[1] = captures[3];
11145 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11146 : 0 : res_op0 = _r1;
11147 : : }
11148 : 0 : tree res_op1;
11149 : 0 : res_op1 = captures[1];
11150 : 0 : tree res_op2;
11151 : 0 : res_op2 = captures[2];
11152 : 0 : tree _r;
11153 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11154 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
11155 : 0 : return _r;
11156 : : }
11157 : 0 : next_after_fail1474:;
11158 : : }
11159 : : }
11160 : 0 : {
11161 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11162 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11163 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11164 : : )
11165 : : {
11166 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1475;
11167 : 0 : {
11168 : 0 : tree res_op0;
11169 : 0 : {
11170 : 0 : tree _o1[2], _r1;
11171 : 0 : _o1[0] = captures[0];
11172 : 0 : _o1[1] = captures[3];
11173 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11174 : 0 : res_op0 = _r1;
11175 : : }
11176 : 0 : tree res_op1;
11177 : 0 : res_op1 = captures[1];
11178 : 0 : tree res_op2;
11179 : 0 : res_op2 = captures[2];
11180 : 0 : tree _r;
11181 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11182 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
11183 : 0 : return _r;
11184 : : }
11185 : 0 : next_after_fail1475:;
11186 : : }
11187 : : }
11188 : 0 : {
11189 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11190 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11191 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11192 : : )
11193 : : {
11194 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1476;
11195 : 0 : {
11196 : 0 : tree res_op0;
11197 : 0 : {
11198 : 0 : tree _o1[2], _r1;
11199 : 0 : _o1[0] = captures[0];
11200 : 0 : _o1[1] = captures[3];
11201 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11202 : 0 : res_op0 = _r1;
11203 : : }
11204 : 0 : tree res_op1;
11205 : 0 : res_op1 = captures[1];
11206 : 0 : tree res_op2;
11207 : 0 : res_op2 = captures[2];
11208 : 0 : tree _r;
11209 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11210 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
11211 : 0 : return _r;
11212 : : }
11213 : 0 : next_after_fail1476:;
11214 : : }
11215 : : }
11216 : 0 : {
11217 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11218 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11219 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11220 : : )
11221 : : {
11222 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1477;
11223 : 0 : {
11224 : 0 : tree res_op0;
11225 : 0 : {
11226 : 0 : tree _o1[2], _r1;
11227 : 0 : _o1[0] = captures[0];
11228 : 0 : _o1[1] = captures[3];
11229 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11230 : 0 : res_op0 = _r1;
11231 : : }
11232 : 0 : tree res_op1;
11233 : 0 : res_op1 = captures[1];
11234 : 0 : tree res_op2;
11235 : 0 : res_op2 = captures[2];
11236 : 0 : tree _r;
11237 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11238 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
11239 : 0 : return _r;
11240 : : }
11241 : 0 : next_after_fail1477:;
11242 : : }
11243 : : }
11244 : 0 : {
11245 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11246 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11247 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11248 : : )
11249 : : {
11250 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1478;
11251 : 0 : {
11252 : 0 : tree res_op0;
11253 : 0 : {
11254 : 0 : tree _o1[2], _r1;
11255 : 0 : _o1[0] = captures[0];
11256 : 0 : _o1[1] = captures[3];
11257 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11258 : 0 : res_op0 = _r1;
11259 : : }
11260 : 0 : tree res_op1;
11261 : 0 : res_op1 = captures[1];
11262 : 0 : tree res_op2;
11263 : 0 : res_op2 = captures[2];
11264 : 0 : tree _r;
11265 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11266 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
11267 : 0 : return _r;
11268 : : }
11269 : 0 : next_after_fail1478:;
11270 : : }
11271 : : }
11272 : 0 : {
11273 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11274 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11275 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11276 : : )
11277 : : {
11278 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1479;
11279 : 0 : {
11280 : 0 : tree res_op0;
11281 : 0 : {
11282 : 0 : tree _o1[2], _r1;
11283 : 0 : _o1[0] = captures[0];
11284 : 0 : _o1[1] = captures[3];
11285 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11286 : 0 : res_op0 = _r1;
11287 : : }
11288 : 0 : tree res_op1;
11289 : 0 : res_op1 = captures[1];
11290 : 0 : tree res_op2;
11291 : 0 : res_op2 = captures[2];
11292 : 0 : tree _r;
11293 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11294 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
11295 : 0 : return _r;
11296 : : }
11297 : 0 : next_after_fail1479:;
11298 : : }
11299 : : }
11300 : 0 : {
11301 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11302 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11303 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11304 : : )
11305 : : {
11306 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1480;
11307 : 0 : {
11308 : 0 : tree res_op0;
11309 : 0 : {
11310 : 0 : tree _o1[2], _r1;
11311 : 0 : _o1[0] = captures[0];
11312 : 0 : _o1[1] = captures[3];
11313 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11314 : 0 : res_op0 = _r1;
11315 : : }
11316 : 0 : tree res_op1;
11317 : 0 : res_op1 = captures[1];
11318 : 0 : tree res_op2;
11319 : 0 : res_op2 = captures[2];
11320 : 0 : tree _r;
11321 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11322 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
11323 : 0 : return _r;
11324 : : }
11325 : 0 : next_after_fail1480:;
11326 : : }
11327 : : }
11328 : 0 : {
11329 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11330 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11331 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11332 : : )
11333 : : {
11334 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1481;
11335 : 0 : {
11336 : 0 : tree res_op0;
11337 : 0 : {
11338 : 0 : tree _o1[2], _r1;
11339 : 0 : _o1[0] = captures[0];
11340 : 0 : _o1[1] = captures[3];
11341 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11342 : 0 : res_op0 = _r1;
11343 : : }
11344 : 0 : tree res_op1;
11345 : 0 : res_op1 = captures[1];
11346 : 0 : tree res_op2;
11347 : 0 : res_op2 = captures[2];
11348 : 0 : tree _r;
11349 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11350 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
11351 : 0 : return _r;
11352 : : }
11353 : 0 : next_after_fail1481:;
11354 : : }
11355 : : }
11356 : : }
11357 : : }
11358 : : break;
11359 : : }
11360 : : default:;
11361 : : }
11362 : : }
11363 : : }
11364 : 1 : {
11365 : 1 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
11366 : 1 : if (VECTOR_TYPE_P (type)
11367 : 1 : && (TREE_CODE_CLASS (BIT_XOR_EXPR) != tcc_comparison
11368 : : || types_match (type, TREE_TYPE (captures[2]))
11369 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
11370 : : || (optimize_vectors_before_lowering_p ()
11371 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
11372 : : )
11373 : : {
11374 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1482;
11375 : 1 : {
11376 : 1 : if (! tree_invariant_p (captures[4])) goto next_after_fail1482;
11377 : 0 : tree res_op0;
11378 : 0 : res_op0 = captures[1];
11379 : 0 : tree res_op1;
11380 : 0 : {
11381 : 0 : tree _o1[2], _r1;
11382 : 0 : _o1[0] = captures[2];
11383 : 0 : _o1[1] = unshare_expr (captures[4]);
11384 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11385 : 0 : if (EXPR_P (_r1))
11386 : 0 : goto next_after_fail1482;
11387 : 0 : res_op1 = _r1;
11388 : : }
11389 : 0 : tree res_op2;
11390 : 0 : {
11391 : 0 : tree _o1[2], _r1;
11392 : 0 : _o1[0] = captures[3];
11393 : 0 : _o1[1] = captures[4];
11394 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11395 : 0 : if (EXPR_P (_r1))
11396 : 0 : goto next_after_fail1482;
11397 : 0 : res_op2 = _r1;
11398 : : }
11399 : 0 : tree _r;
11400 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11401 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 906, __FILE__, __LINE__, true);
11402 : 0 : return _r;
11403 : : }
11404 : 1 : next_after_fail1482:;
11405 : : }
11406 : : }
11407 : 1 : break;
11408 : : }
11409 : 670625 : default:;
11410 : : }
11411 : 670625 : switch (TREE_CODE (_p1))
11412 : : {
11413 : 0 : case VEC_COND_EXPR:
11414 : 0 : {
11415 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
11416 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
11417 : 0 : tree _q32 = TREE_OPERAND (_p1, 2);
11418 : 0 : {
11419 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
11420 : 0 : if (VECTOR_TYPE_P (type)
11421 : 0 : && (TREE_CODE_CLASS (BIT_XOR_EXPR) != tcc_comparison
11422 : : || types_match (type, TREE_TYPE (captures[3]))
11423 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
11424 : : || (optimize_vectors_before_lowering_p ()
11425 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
11426 : : )
11427 : : {
11428 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1483;
11429 : 0 : {
11430 : 0 : if (! tree_invariant_p (captures[0])) goto next_after_fail1483;
11431 : 0 : tree res_op0;
11432 : 0 : res_op0 = captures[2];
11433 : 0 : tree res_op1;
11434 : 0 : {
11435 : 0 : tree _o1[2], _r1;
11436 : 0 : _o1[0] = unshare_expr (captures[0]);
11437 : 0 : _o1[1] = captures[3];
11438 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11439 : 0 : if (EXPR_P (_r1))
11440 : 0 : goto next_after_fail1483;
11441 : 0 : res_op1 = _r1;
11442 : : }
11443 : 0 : tree res_op2;
11444 : 0 : {
11445 : 0 : tree _o1[2], _r1;
11446 : 0 : _o1[0] = captures[0];
11447 : 0 : _o1[1] = captures[4];
11448 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11449 : 0 : if (EXPR_P (_r1))
11450 : 0 : goto next_after_fail1483;
11451 : 0 : res_op2 = _r1;
11452 : : }
11453 : 0 : tree _r;
11454 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11455 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 907, __FILE__, __LINE__, true);
11456 : 0 : return _r;
11457 : : }
11458 : 0 : next_after_fail1483:;
11459 : : }
11460 : : }
11461 : 0 : break;
11462 : : }
11463 : 670625 : default:;
11464 : : }
11465 : 670625 : switch (TREE_CODE (_p0))
11466 : : {
11467 : 90 : case LT_EXPR:
11468 : 90 : {
11469 : 90 : tree _q20 = TREE_OPERAND (_p0, 0);
11470 : 90 : tree _q21 = TREE_OPERAND (_p0, 1);
11471 : 90 : if (integer_truep (_p1))
11472 : : {
11473 : 14 : {
11474 : 14 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11475 : 14 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR, UNGE_EXPR);
11476 : 14 : if (res) return res;
11477 : : }
11478 : : }
11479 : 76 : if (integer_zerop (_q21))
11480 : : {
11481 : 24 : switch (TREE_CODE (_p1))
11482 : : {
11483 : 17 : case LT_EXPR:
11484 : 17 : {
11485 : 17 : tree _q50 = TREE_OPERAND (_p1, 0);
11486 : 17 : tree _q51 = TREE_OPERAND (_p1, 1);
11487 : 17 : if (integer_zerop (_q51))
11488 : : {
11489 : 17 : {
11490 : 17 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q50 };
11491 : 17 : tree res = generic_simplify_170 (loc, type, _p0, _p1, captures, LT_EXPR);
11492 : 17 : if (res) return res;
11493 : : }
11494 : : }
11495 : : break;
11496 : : }
11497 : 0 : case GE_EXPR:
11498 : 0 : {
11499 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
11500 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
11501 : 0 : if (integer_zerop (_q51))
11502 : : {
11503 : 0 : {
11504 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q50 };
11505 : 0 : tree res = generic_simplify_171 (loc, type, _p0, _p1, captures);
11506 : 0 : if (res) return res;
11507 : : }
11508 : : }
11509 : : break;
11510 : : }
11511 : : default:;
11512 : : }
11513 : : }
11514 : : break;
11515 : : }
11516 : 78 : case LE_EXPR:
11517 : 78 : {
11518 : 78 : tree _q20 = TREE_OPERAND (_p0, 0);
11519 : 78 : tree _q21 = TREE_OPERAND (_p0, 1);
11520 : 78 : if (integer_truep (_p1))
11521 : : {
11522 : 15 : {
11523 : 15 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11524 : 15 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR, UNGT_EXPR);
11525 : 15 : if (res) return res;
11526 : : }
11527 : : }
11528 : : break;
11529 : : }
11530 : 118 : case EQ_EXPR:
11531 : 118 : {
11532 : 118 : tree _q20 = TREE_OPERAND (_p0, 0);
11533 : 118 : tree _q21 = TREE_OPERAND (_p0, 1);
11534 : 118 : if (integer_truep (_p1))
11535 : : {
11536 : 14 : {
11537 : 14 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11538 : 14 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR, NE_EXPR);
11539 : 14 : if (res) return res;
11540 : : }
11541 : : }
11542 : : break;
11543 : : }
11544 : 113 : case NE_EXPR:
11545 : 113 : {
11546 : 113 : tree _q20 = TREE_OPERAND (_p0, 0);
11547 : 113 : tree _q21 = TREE_OPERAND (_p0, 1);
11548 : 113 : if (integer_truep (_p1))
11549 : : {
11550 : 7 : {
11551 : 7 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11552 : 7 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR, EQ_EXPR);
11553 : 7 : if (res) return res;
11554 : : }
11555 : : }
11556 : : break;
11557 : : }
11558 : 62 : case GE_EXPR:
11559 : 62 : {
11560 : 62 : tree _q20 = TREE_OPERAND (_p0, 0);
11561 : 62 : tree _q21 = TREE_OPERAND (_p0, 1);
11562 : 62 : if (integer_truep (_p1))
11563 : : {
11564 : 0 : {
11565 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11566 : 0 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures, GE_EXPR, LT_EXPR, UNLT_EXPR);
11567 : 0 : if (res) return res;
11568 : : }
11569 : : }
11570 : 62 : if (integer_zerop (_q21))
11571 : : {
11572 : 26 : switch (TREE_CODE (_p1))
11573 : : {
11574 : 1 : case GE_EXPR:
11575 : 1 : {
11576 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
11577 : 1 : tree _q51 = TREE_OPERAND (_p1, 1);
11578 : 1 : if (integer_zerop (_q51))
11579 : : {
11580 : 1 : {
11581 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q50 };
11582 : 1 : tree res = generic_simplify_170 (loc, type, _p0, _p1, captures, GE_EXPR);
11583 : 1 : if (res) return res;
11584 : : }
11585 : : }
11586 : : break;
11587 : : }
11588 : 5 : case LT_EXPR:
11589 : 5 : {
11590 : 5 : tree _q50 = TREE_OPERAND (_p1, 0);
11591 : 5 : tree _q51 = TREE_OPERAND (_p1, 1);
11592 : 5 : if (integer_zerop (_q51))
11593 : : {
11594 : 5 : {
11595 : 5 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q50, _p0, _q20 };
11596 : 5 : tree res = generic_simplify_171 (loc, type, _p0, _p1, captures);
11597 : 5 : if (res) return res;
11598 : : }
11599 : : }
11600 : : break;
11601 : : }
11602 : : default:;
11603 : : }
11604 : : }
11605 : : break;
11606 : : }
11607 : 100 : case GT_EXPR:
11608 : 100 : {
11609 : 100 : tree _q20 = TREE_OPERAND (_p0, 0);
11610 : 100 : tree _q21 = TREE_OPERAND (_p0, 1);
11611 : 100 : if (integer_truep (_p1))
11612 : : {
11613 : 14 : {
11614 : 14 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11615 : 14 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR, UNLE_EXPR);
11616 : 14 : if (res) return res;
11617 : : }
11618 : : }
11619 : : break;
11620 : : }
11621 : 0 : case UNORDERED_EXPR:
11622 : 0 : {
11623 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11624 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11625 : 0 : if (integer_truep (_p1))
11626 : : {
11627 : 0 : {
11628 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11629 : 0 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures, UNORDERED_EXPR, ORDERED_EXPR, ORDERED_EXPR);
11630 : 0 : if (res) return res;
11631 : : }
11632 : : }
11633 : : break;
11634 : : }
11635 : 0 : case ORDERED_EXPR:
11636 : 0 : {
11637 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11638 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11639 : 0 : if (integer_truep (_p1))
11640 : : {
11641 : 0 : {
11642 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11643 : 0 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures, ORDERED_EXPR, UNORDERED_EXPR, UNORDERED_EXPR);
11644 : 0 : if (res) return res;
11645 : : }
11646 : : }
11647 : : break;
11648 : : }
11649 : 0 : case UNLT_EXPR:
11650 : 0 : {
11651 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11652 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11653 : 0 : if (integer_truep (_p1))
11654 : : {
11655 : 0 : {
11656 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11657 : 0 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures, UNLT_EXPR, GE_EXPR, GE_EXPR);
11658 : 0 : if (res) return res;
11659 : : }
11660 : : }
11661 : : break;
11662 : : }
11663 : 0 : case UNLE_EXPR:
11664 : 0 : {
11665 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11666 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11667 : 0 : if (integer_truep (_p1))
11668 : : {
11669 : 0 : {
11670 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11671 : 0 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures, UNLE_EXPR, GT_EXPR, GT_EXPR);
11672 : 0 : if (res) return res;
11673 : : }
11674 : : }
11675 : : break;
11676 : : }
11677 : 0 : case UNGT_EXPR:
11678 : 0 : {
11679 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11680 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11681 : 0 : if (integer_truep (_p1))
11682 : : {
11683 : 0 : {
11684 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11685 : 0 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures, UNGT_EXPR, LE_EXPR, LE_EXPR);
11686 : 0 : if (res) return res;
11687 : : }
11688 : : }
11689 : : break;
11690 : : }
11691 : 0 : case UNGE_EXPR:
11692 : 0 : {
11693 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11694 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11695 : 0 : if (integer_truep (_p1))
11696 : : {
11697 : 0 : {
11698 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11699 : 0 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures, UNGE_EXPR, LT_EXPR, LT_EXPR);
11700 : 0 : if (res) return res;
11701 : : }
11702 : : }
11703 : : break;
11704 : : }
11705 : 0 : case UNEQ_EXPR:
11706 : 0 : {
11707 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11708 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11709 : 0 : if (integer_truep (_p1))
11710 : : {
11711 : 0 : {
11712 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11713 : 0 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures, UNEQ_EXPR, LTGT_EXPR, LTGT_EXPR);
11714 : 0 : if (res) return res;
11715 : : }
11716 : : }
11717 : : break;
11718 : : }
11719 : 0 : case LTGT_EXPR:
11720 : 0 : {
11721 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11722 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11723 : 0 : if (integer_truep (_p1))
11724 : : {
11725 : 0 : {
11726 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11727 : 0 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures, LTGT_EXPR, UNEQ_EXPR, UNEQ_EXPR);
11728 : 0 : if (res) return res;
11729 : : }
11730 : : }
11731 : : break;
11732 : : }
11733 : 7 : case VEC_PERM_EXPR:
11734 : 7 : {
11735 : 7 : tree _q20 = TREE_OPERAND (_p0, 0);
11736 : 7 : tree _q21 = TREE_OPERAND (_p0, 1);
11737 : 7 : tree _q22 = TREE_OPERAND (_p0, 2);
11738 : 7 : if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
11739 : : {
11740 : 0 : switch (TREE_CODE (_p1))
11741 : : {
11742 : 0 : case VEC_PERM_EXPR:
11743 : 0 : {
11744 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
11745 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
11746 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
11747 : 0 : if ((_q61 == _q60 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q60, 0) && types_match (_q61, _q60)))
11748 : : {
11749 : 0 : if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
11750 : : {
11751 : 0 : {
11752 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q22, _q60 };
11753 : 0 : if (VECTOR_INTEGER_TYPE_P (type)
11754 : : )
11755 : : {
11756 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1484;
11757 : 0 : {
11758 : 0 : tree res_op0;
11759 : 0 : {
11760 : 0 : tree _o1[2], _r1;
11761 : 0 : _o1[0] = captures[0];
11762 : 0 : _o1[1] = captures[2];
11763 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11764 : 0 : captures[3] = _r1;
11765 : : }
11766 : 0 : res_op0 = unshare_expr (captures[3]);
11767 : 0 : tree res_op1;
11768 : 0 : res_op1 = captures[3];
11769 : 0 : tree res_op2;
11770 : 0 : res_op2 = captures[1];
11771 : 0 : tree _r;
11772 : 0 : _r = fold_build3_loc (loc, VEC_PERM_EXPR, type, res_op0, res_op1, res_op2);
11773 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 908, __FILE__, __LINE__, true);
11774 : 0 : return _r;
11775 : : }
11776 : 0 : next_after_fail1484:;
11777 : : }
11778 : : }
11779 : : }
11780 : : }
11781 : : break;
11782 : : }
11783 : : default:;
11784 : : }
11785 : : }
11786 : : break;
11787 : : }
11788 : 2939 : case CALL_EXPR:
11789 : 2939 : switch (get_call_combined_fn (_p0))
11790 : : {
11791 : 1 : case CFN_PARITY:
11792 : 1 : if (call_expr_nargs (_p0) == 1)
11793 : : {
11794 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11795 : 1 : switch (TREE_CODE (_p1))
11796 : : {
11797 : 1 : case CALL_EXPR:
11798 : 1 : switch (get_call_combined_fn (_p1))
11799 : : {
11800 : 1 : case CFN_PARITY:
11801 : 1 : if (call_expr_nargs (_p1) == 1)
11802 : : {
11803 : 1 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
11804 : 1 : {
11805 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
11806 : 1 : tree res = generic_simplify_172 (loc, type, _p0, _p1, captures, CFN_PARITY);
11807 : 1 : if (res) return res;
11808 : : }
11809 : : }
11810 : : break;
11811 : : default:;
11812 : : }
11813 : : break;
11814 : : default:;
11815 : : }
11816 : : }
11817 : : break;
11818 : 1 : case CFN_BUILT_IN_PARITYL:
11819 : 1 : if (call_expr_nargs (_p0) == 1)
11820 : : {
11821 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11822 : 1 : switch (TREE_CODE (_p1))
11823 : : {
11824 : 1 : case CALL_EXPR:
11825 : 1 : switch (get_call_combined_fn (_p1))
11826 : : {
11827 : 1 : case CFN_BUILT_IN_PARITYL:
11828 : 1 : if (call_expr_nargs (_p1) == 1)
11829 : : {
11830 : 1 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
11831 : 1 : {
11832 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
11833 : 1 : tree res = generic_simplify_172 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_PARITYL);
11834 : 1 : if (res) return res;
11835 : : }
11836 : : }
11837 : : break;
11838 : : default:;
11839 : : }
11840 : : break;
11841 : : default:;
11842 : : }
11843 : : }
11844 : : break;
11845 : 0 : case CFN_BUILT_IN_PARITYIMAX:
11846 : 0 : if (call_expr_nargs (_p0) == 1)
11847 : : {
11848 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11849 : 0 : switch (TREE_CODE (_p1))
11850 : : {
11851 : 0 : case CALL_EXPR:
11852 : 0 : switch (get_call_combined_fn (_p1))
11853 : : {
11854 : 0 : case CFN_BUILT_IN_PARITYIMAX:
11855 : 0 : if (call_expr_nargs (_p1) == 1)
11856 : : {
11857 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
11858 : 0 : {
11859 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
11860 : 0 : tree res = generic_simplify_172 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_PARITYIMAX);
11861 : 0 : if (res) return res;
11862 : : }
11863 : : }
11864 : : break;
11865 : : default:;
11866 : : }
11867 : : break;
11868 : : default:;
11869 : : }
11870 : : }
11871 : : break;
11872 : 1 : case CFN_BUILT_IN_PARITY:
11873 : 1 : if (call_expr_nargs (_p0) == 1)
11874 : : {
11875 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11876 : 1 : switch (TREE_CODE (_p1))
11877 : : {
11878 : 1 : case CALL_EXPR:
11879 : 1 : switch (get_call_combined_fn (_p1))
11880 : : {
11881 : 1 : case CFN_BUILT_IN_PARITY:
11882 : 1 : if (call_expr_nargs (_p1) == 1)
11883 : : {
11884 : 1 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
11885 : 1 : {
11886 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
11887 : 1 : tree res = generic_simplify_172 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_PARITY);
11888 : 1 : if (res) return res;
11889 : : }
11890 : : }
11891 : : break;
11892 : : default:;
11893 : : }
11894 : : break;
11895 : : default:;
11896 : : }
11897 : : }
11898 : : break;
11899 : 8 : case CFN_BUILT_IN_PARITYLL:
11900 : 8 : if (call_expr_nargs (_p0) == 1)
11901 : : {
11902 : 8 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11903 : 8 : switch (TREE_CODE (_p1))
11904 : : {
11905 : 8 : case CALL_EXPR:
11906 : 8 : switch (get_call_combined_fn (_p1))
11907 : : {
11908 : 8 : case CFN_BUILT_IN_PARITYLL:
11909 : 8 : if (call_expr_nargs (_p1) == 1)
11910 : : {
11911 : 8 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
11912 : 8 : {
11913 : 8 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
11914 : 8 : tree res = generic_simplify_172 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_PARITYLL);
11915 : 8 : if (res) return res;
11916 : : }
11917 : : }
11918 : : break;
11919 : : default:;
11920 : : }
11921 : : break;
11922 : : default:;
11923 : : }
11924 : : }
11925 : : break;
11926 : : default:;
11927 : : }
11928 : : break;
11929 : : default:;
11930 : : }
11931 : : return NULL_TREE;
11932 : : }
11933 : :
11934 : : tree
11935 : 27829370 : generic_simplify (location_t loc, enum tree_code code, const tree type ATTRIBUTE_UNUSED, tree _p0, tree _p1, tree _p2)
11936 : : {
11937 : 27829370 : switch (code)
11938 : : {
11939 : 11412364 : case COND_EXPR:
11940 : 11412364 : return generic_simplify_COND_EXPR (loc, code, type, _p0, _p1, _p2);
11941 : 312323 : case VEC_COND_EXPR:
11942 : 312323 : return generic_simplify_VEC_COND_EXPR (loc, code, type, _p0, _p1, _p2);
11943 : 632680 : case BIT_FIELD_REF:
11944 : 632680 : return generic_simplify_BIT_FIELD_REF (loc, code, type, _p0, _p1, _p2);
11945 : 13720 : case BIT_INSERT_EXPR:
11946 : 13720 : return generic_simplify_BIT_INSERT_EXPR (loc, code, type, _p0, _p1, _p2);
11947 : 747545 : case VEC_PERM_EXPR:
11948 : 747545 : return generic_simplify_VEC_PERM_EXPR (loc, code, type, _p0, _p1, _p2);
11949 : : default:;
11950 : : }
11951 : : return NULL_TREE;
11952 : : }
11953 : :
11954 : : tree
11955 : 0 : generic_simplify (location_t, enum tree_code,
11956 : : const tree, tree, tree, tree, tree)
11957 : : {
11958 : 0 : return NULL_TREE;
11959 : : }
11960 : :
11961 : : tree
11962 : 0 : generic_simplify (location_t, enum tree_code,
11963 : : const tree, tree, tree, tree, tree, tree)
11964 : : {
11965 : 0 : return NULL_TREE;
11966 : : }
11967 : :
11968 : : tree
11969 : 0 : generic_simplify (location_t, enum tree_code,
11970 : : const tree, tree, tree, tree, tree, tree, tree)
11971 : : {
11972 : 0 : return NULL_TREE;
11973 : : }
11974 : :
11975 : : tree
11976 : 0 : generic_simplify (location_t, enum tree_code,
11977 : : const tree, tree, tree, tree, tree, tree, tree, tree)
11978 : : {
11979 : 0 : return NULL_TREE;
11980 : : }
11981 : : void
11982 : 19351 : generic_dump_logs (const char *file1, int line1_id, const char *file2, int line2, bool simplify)
11983 : : {
11984 : 19351 : static int dbg_line_numbers[1120] = {
11985 : : /* 0 */ 161, 164, 173, 175, 178, 181, 183, 189, 197, 195,
11986 : : /* 10 */ 199, 201, 938, 940, 2079, 2085, 2087, 2090, 2095, 2098,
11987 : : /* 20 */ 2323, 2327, 2329, 2331, 2333, 2335, 2337, 2339, 2366, 2382,
11988 : : /* 30 */ 2390, 2372, 2930, 2932, 2934, 2941, 2938, 2948, 2950, 2957,
11989 : : /* 40 */ 2954, 3165, 3175, 3186, 3191, 3196, 3229, 3234, 3200, 3204,
11990 : : /* 50 */ 3208, 3258, 3212, 3240, 3246, 3252, 3216, 3275, 3279, 3304,
11991 : : /* 60 */ 3310, 3332, 3316, 3345, 3284, 3288, 3298, 3292, 3349, 3365,
11992 : : /* 70 */ 3400, 3377, 3418, 3425, 3477, 3434, 3505, 3452, 3443, 3468,
11993 : : /* 80 */ 3462, 3488, 3518, 3527, 3536, 3545, 3555, 3588, 3614, 3638,
11994 : : /* 90 */ 3626, 5872, 9092, 9113, 11289, 11292, 11297, 11512, 11519, 11538,
11995 : : /* 100 */ 11563, 11631, 11588, 11601, 11615, 11645, 11650, 8912, 254, 281,
11996 : : /* 110 */ 282, 493, 1307, 1443, 1779, 1829, 1834, 1938, 1897, 4189,
11997 : : /* 120 */ 4127, 2445, 2477, 4232, 4233, 4237, 4238, 4248, 4252, 4256,
11998 : : /* 130 */ 4271, 4274, 4278, 4204, 4207, 4212, 4359, 4365, 4371, 4553,
11999 : : /* 140 */ 4554, 4580, 4599, 4618, 4961, 5771, 7030, 7115, 7117, 8540,
12000 : : /* 150 */ 8615, 10218, 10266, 10280, 11316, 11738, 922, 928, 1423, 1432,
12001 : : /* 160 */ 1915, 1906, 1853, 2594, 4140, 4180, 4185, 4186, 4194, 4195,
12002 : : /* 170 */ 4198, 4215, 4290, 4293, 4297, 4379, 4401, 4439, 4450, 4489,
12003 : : /* 180 */ 4504, 4967, 7040, 8620, 10276, 11320, 1313, 1317, 1409, 1418,
12004 : : /* 190 */ 1448, 1453, 1495, 1480, 1487, 1510, 1511, 1515, 1516, 1537,
12005 : : /* 200 */ 1992, 1542, 1549, 1569, 1672, 1696, 1786, 1791, 1801, 1811,
12006 : : /* 210 */ 1925, 1984, 2012, 2022, 2024, 2237, 2256, 2264, 2269, 2274,
12007 : : /* 220 */ 2290, 2280, 2281, 4675, 4688, 4698, 2304, 2315, 2318, 2350,
12008 : : /* 230 */ 2428, 2457, 2459, 2464, 2466, 2587, 3007, 3009, 3713, 3728,
12009 : : /* 240 */ 3746, 3946, 3947, 3948, 3956, 3964, 3973, 3982, 4014, 4015,
12010 : : /* 250 */ 4020, 4021, 4026, 4031, 4035, 4090, 4104, 3718, 3737, 3739,
12011 : : /* 260 */ 3723, 4712, 4724, 7703, 9489, 1458, 1463, 1574, 1579, 1796,
12012 : : /* 270 */ 1886, 1806, 1950, 1816, 1821, 1944, 1996, 1957, 1963, 2568,
12013 : : /* 280 */ 1970, 2030, 4973, 7099, 7101, 7166, 7174, 10363, 10369, 461,
12014 : : /* 290 */ 467, 499, 1252, 1272, 1277, 2071, 2072, 2109, 2603, 5466,
12015 : : /* 300 */ 5757, 5764, 5814, 5817, 5867, 8533, 8947, 8777, 8784, 8941,
12016 : : /* 310 */ 8986, 8991, 329, 885, 2355, 2582, 2621, 2631, 2670, 2676,
12017 : : /* 320 */ 2679, 2684, 2849, 2700, 2702, 2703, 2706, 2708, 2709, 2711,
12018 : : /* 330 */ 2713, 2715, 2717, 2719, 2721, 2735, 2736, 2770, 2855, 2880,
12019 : : /* 340 */ 2796, 2823, 2863, 2868, 2893, 2900, 2966, 4062, 4903, 4911,
12020 : : /* 350 */ 4914, 4920, 4923, 4950, 5258, 5259, 5293, 5297, 5426, 5266,
12021 : : /* 360 */ 5267, 5311, 5314, 5315, 5320, 5323, 5326, 5327, 5279, 5282,
12022 : : /* 370 */ 5499, 5503, 5508, 5782, 5934, 5938, 7126, 7142, 7144, 7156,
12023 : : /* 380 */ 7186, 7192, 7193, 7208, 7209, 7213, 7231, 7236, 7268, 7276,
12024 : : /* 390 */ 7286, 7295, 7299, 7305, 7312, 7328, 7332, 7336, 7343, 7344,
12025 : : /* 400 */ 7349, 7350, 7357, 7358, 7360, 7361, 7377, 7388, 7400, 7404,
12026 : : /* 410 */ 7406, 7411, 7414, 7417, 7425, 7487, 7488, 7492, 7493, 7500,
12027 : : /* 420 */ 7504, 7508, 7511, 7517, 7518, 7522, 7525, 7532, 7552, 7555,
12028 : : /* 430 */ 7558, 7561, 7610, 7613, 7617, 7624, 7630, 7638, 7647, 7648,
12029 : : /* 440 */ 7746, 7756, 7795, 7801, 7817, 7830, 7832, 7834, 7860, 7902,
12030 : : /* 450 */ 7881, 7882, 7889, 7891, 7907, 7913, 7918, 7927, 7933, 7939,
12031 : : /* 460 */ 7944, 7949, 7981, 8044, 7963, 7973, 8082, 8084, 8086, 8088,
12032 : : /* 470 */ 8090, 8092, 8096, 8098, 8121, 8144, 8256, 8263, 8264, 8272,
12033 : : /* 480 */ 8273, 8453, 9533, 9535, 9623, 9625, 9626, 9632, 9648, 9650,
12034 : : /* 490 */ 9652, 9670, 9671, 10003, 10006, 10020, 10029, 10093, 10094, 10148,
12035 : : /* 500 */ 10150, 10226, 10635, 10637, 10639, 11071, 7122, 7133, 7135, 7243,
12036 : : /* 510 */ 473, 1225, 1246, 8897, 8902, 8907, 533, 534, 545, 550,
12037 : : /* 520 */ 557, 566, 574, 583, 629, 632, 820, 973, 999, 1030,
12038 : : /* 530 */ 594, 850, 854, 859, 865, 869, 877, 965, 745, 755,
12039 : : /* 540 */ 757, 759, 8527, 8952, 8974, 8957, 8962, 8967, 8981, 9015,
12040 : : /* 550 */ 9020, 807, 810, 1647, 2644, 2647, 2744, 2756, 2838, 2782,
12041 : : /* 560 */ 2809, 2921, 2924, 4941, 4933, 7064, 8383, 7660, 7663, 7689,
12042 : : /* 570 */ 7690, 8169, 8171, 8173, 8175, 8179, 8181, 8183, 8185, 8189,
12043 : : /* 580 */ 8194, 8201, 8206, 8226, 8228, 8230, 8232, 8396, 8404, 8414,
12044 : : /* 590 */ 8422, 8432, 8554, 8556, 9547, 9566, 9606, 10071, 10073, 10074,
12045 : : /* 600 */ 10129, 10132, 10134, 2660, 7054, 7733, 8628, 8633, 10656, 10658,
12046 : : /* 610 */ 10660, 10662, 10666, 911, 947, 1297, 5079, 5149, 5152, 5160,
12047 : : /* 620 */ 5227, 5229, 5230, 5231, 5438, 5130, 5139, 5988, 5991, 5992,
12048 : : /* 630 */ 6000, 2248, 4073, 4078, 4845, 9372, 9374, 9405, 9440, 11682,
12049 : : /* 640 */ 1189, 8845, 8866, 1198, 8589, 8595, 8892, 9319, 1212, 1216,
12050 : : /* 650 */ 8887, 9070, 1391, 1475, 1523, 1468, 1500, 1531, 1564, 1605,
12051 : : /* 660 */ 1616, 1627, 1639, 2489, 1868, 1876, 1881, 2004, 2345, 2609,
12052 : : /* 670 */ 3161, 5397, 5415, 5416, 5959, 5965, 6013, 3683, 3685, 3695,
12053 : : /* 680 */ 3697, 3804, 3805, 3806, 3814, 3822, 3831, 3840, 3874, 3875,
12054 : : /* 690 */ 3880, 3881, 3886, 3891, 3895, 3703, 3708, 3753, 7258, 7706,
12055 : : /* 700 */ 9475, 9477, 10261, 1554, 1559, 2547, 1727, 2552, 5477, 2527,
12056 : : /* 710 */ 2558, 2562, 5491, 4888, 7091, 7093, 2116, 2154, 2177, 2178,
12057 : : /* 720 */ 2532, 4165, 9946, 3674, 5003, 5046, 5059, 6505, 6507, 6509,
12058 : : /* 730 */ 6719, 6723, 6731, 6758, 6760, 6609, 6612, 6774, 6778, 6836,
12059 : : /* 740 */ 4991, 5010, 5017, 5023, 5029, 5035, 6842, 6974, 9506, 9507,
12060 : : /* 750 */ 6984, 10423, 10431, 7997, 7998, 8012, 8013, 4731, 4735, 4745,
12061 : : /* 760 */ 4763, 4828, 4830, 4832, 4834, 4883, 9497, 4749, 4756, 4741,
12062 : : /* 770 */ 4855, 4864, 4867, 5066, 5199, 5209, 8482, 8485, 8504, 5910,
12063 : : /* 780 */ 5922, 5925, 5929, 10865, 10871, 10879, 10885, 10894, 10900, 10908,
12064 : : /* 790 */ 10914, 10960, 10968, 8288, 7251, 7247, 8463, 8470, 8605, 8610,
12065 : : /* 800 */ 8711, 8808, 8825, 8857, 8877, 8882, 9133, 9110, 9089, 8918,
12066 : : /* 810 */ 8922, 9213, 9223, 9230, 9239, 9257, 9264, 9245, 9512, 9518,
12067 : : /* 820 */ 9936, 9942, 9939, 9950, 9956, 9964, 9970, 9978, 9984, 10038,
12068 : : /* 830 */ 10241, 10256, 10522, 10525, 10330, 10344, 10357, 11041, 11055, 11146,
12069 : : /* 840 */ 11147, 219, 2036, 2046, 6045, 2055, 1139, 2500, 3142, 5519,
12070 : : /* 850 */ 5521, 5531, 5638, 5649, 5662, 5685, 5695, 5704, 5716, 5742,
12071 : : /* 860 */ 6053, 6459, 1724, 1738, 1745, 1767, 1774, 2360, 2575, 2041,
12072 : : /* 870 */ 2050, 2059, 2125, 2129, 2160, 2166, 4152, 7017, 4160, 9960,
12073 : : /* 880 */ 9974, 9988, 5536, 5545, 5572, 5582, 5588, 6062, 5597, 5594,
12074 : : /* 890 */ 5880, 5888, 5896, 5900, 5883, 5891, 5904, 5916, 237, 727,
12075 : : /* 900 */ 2413, 4810, 5829, 5835, 5837, 6080, 6100, 6109, 11697, 3014,
12076 : : /* 910 */ 3018, 242, 3035, 3039, 3070, 3078, 3051, 3065, 260, 297,
12077 : : /* 920 */ 1427, 1733, 1841, 1848, 1858, 1863, 2135, 3086, 3098, 3092,
12078 : : /* 930 */ 3104, 2146, 2765, 2790, 2817, 2801, 2828, 4413, 4385, 4460,
12079 : : /* 940 */ 4469, 4512, 4523, 5842, 5853, 11663, 11664, 1652, 1657, 6089,
12080 : : /* 950 */ 7696, 11019, 11023, 1680, 1685, 2540, 4050, 247, 300, 2774,
12081 : : /* 960 */ 3111, 3118, 3125, 3131, 4422, 3136, 4478, 4526, 4535, 5845,
12082 : : /* 970 */ 373, 304, 341, 350, 358, 432, 447, 455, 646, 686,
12083 : : /* 980 */ 982, 1177, 1182, 1280, 1283, 1383, 2403, 5858, 8562, 8568,
12084 : : /* 990 */ 8759, 9009, 2520, 6266, 6274, 7763, 8320, 8363, 8364, 2510,
12085 : : /* 1000 */ 8314, 609, 612, 736, 765, 771, 777, 785, 790, 795,
12086 : : /* 1010 */ 838, 842, 8574, 8580, 8238, 896, 1338, 5095, 1327, 1330,
12087 : : /* 1020 */ 1362, 1373, 5072, 5144, 5237, 1397, 1586, 1662, 1690, 2295,
12088 : : /* 1030 */ 5243, 5244, 7700, 11670, 4770, 4774, 4802, 4803, 4876, 4781,
12089 : : /* 1040 */ 4785, 4793, 4794, 5181, 5877, 8296, 8298, 8305, 8307, 7255,
12090 : : /* 1050 */ 6738, 6743, 6811, 6817, 6826, 6827, 4979, 6031, 6033, 6849,
12091 : : /* 1060 */ 6855, 6858, 6867, 6871, 6876, 6905, 6910, 6971, 6918, 6923,
12092 : : /* 1070 */ 6981, 8027, 8029, 6940, 6941, 6942, 6992, 6961, 6962, 6963,
12093 : : /* 1080 */ 7004, 7005, 8058, 8063, 6884, 6037, 6039, 6285, 6287, 9678,
12094 : : /* 1090 */ 9684, 9689, 9698, 9700, 9720, 9765, 9768, 9769, 9801, 9807,
12095 : : /* 1100 */ 9809, 9810, 9866, 9867, 9888, 9893, 9898, 9928, 11170, 11172,
12096 : : /* 1110 */ 11207, 11281, 11284, 11369, 11304, 11310, 11438, 11440, 11502, 11504
12097 : : };
12098 : :
12099 : 28963 : fprintf (dump_file, "%s %s:%d, %s:%d\n",
12100 : : simplify ? "Applying pattern" : "Matching expression", file1, dbg_line_numbers[line1_id], file2, line2);
12101 : 19351 : }
12102 : :
12103 : : #pragma GCC diagnostic pop
|