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 : 154716376 : tree_truth_valued_p (tree t)
11 : : {
12 : 154716376 : const tree type = TREE_TYPE (t);
13 : 154716376 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
14 : 154716376 : if (TREE_SIDE_EFFECTS (t)) return false;
15 : 149841878 : {
16 : 149841878 : tree captures[1] ATTRIBUTE_UNUSED = { t };
17 : 149841878 : if (INTEGRAL_TYPE_P (type) && TYPE_PRECISION (type) == 1
18 : : )
19 : : {
20 : 5563602 : {
21 : 5563602 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 20, __FILE__, __LINE__, false);
22 : 5563602 : return true;
23 : : }
24 : : }
25 : : }
26 : 144278276 : switch (TREE_CODE (t))
27 : : {
28 : 834 : case LT_EXPR:
29 : 834 : {
30 : 834 : tree _p0 = TREE_OPERAND (t, 0);
31 : 834 : tree _p1 = TREE_OPERAND (t, 1);
32 : 834 : {
33 : 834 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
34 : 834 : {
35 : 834 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 21, __FILE__, __LINE__, false);
36 : 834 : return true;
37 : : }
38 : : }
39 : 709 : break;
40 : : }
41 : 709 : case LE_EXPR:
42 : 709 : {
43 : 709 : tree _p0 = TREE_OPERAND (t, 0);
44 : 709 : tree _p1 = TREE_OPERAND (t, 1);
45 : 709 : {
46 : 709 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
47 : 709 : {
48 : 709 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 21, __FILE__, __LINE__, false);
49 : 709 : return true;
50 : : }
51 : : }
52 : 12276 : break;
53 : : }
54 : 12276 : case EQ_EXPR:
55 : 12276 : {
56 : 12276 : tree _p0 = TREE_OPERAND (t, 0);
57 : 12276 : tree _p1 = TREE_OPERAND (t, 1);
58 : 12276 : {
59 : 12276 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
60 : 12276 : {
61 : 12276 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 21, __FILE__, __LINE__, false);
62 : 12276 : return true;
63 : : }
64 : : }
65 : 4301 : break;
66 : : }
67 : 4301 : case NE_EXPR:
68 : 4301 : {
69 : 4301 : tree _p0 = TREE_OPERAND (t, 0);
70 : 4301 : tree _p1 = TREE_OPERAND (t, 1);
71 : 4301 : {
72 : 4301 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
73 : 4301 : {
74 : 4301 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 21, __FILE__, __LINE__, false);
75 : 4301 : return true;
76 : : }
77 : : }
78 : 398 : break;
79 : : }
80 : 398 : case GE_EXPR:
81 : 398 : {
82 : 398 : tree _p0 = TREE_OPERAND (t, 0);
83 : 398 : tree _p1 = TREE_OPERAND (t, 1);
84 : 398 : {
85 : 398 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
86 : 398 : {
87 : 398 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 21, __FILE__, __LINE__, false);
88 : 398 : return true;
89 : : }
90 : : }
91 : 103725 : break;
92 : : }
93 : 103725 : case GT_EXPR:
94 : 103725 : {
95 : 103725 : tree _p0 = TREE_OPERAND (t, 0);
96 : 103725 : tree _p1 = TREE_OPERAND (t, 1);
97 : 103725 : {
98 : 103725 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
99 : 103725 : {
100 : 103725 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 21, __FILE__, __LINE__, false);
101 : 103725 : return true;
102 : : }
103 : : }
104 : 151553 : break;
105 : : }
106 : 151553 : case UNORDERED_EXPR:
107 : 151553 : {
108 : 151553 : tree _p0 = TREE_OPERAND (t, 0);
109 : 151553 : tree _p1 = TREE_OPERAND (t, 1);
110 : 151553 : {
111 : 151553 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
112 : 151553 : {
113 : 151553 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 21, __FILE__, __LINE__, false);
114 : 151553 : return true;
115 : : }
116 : : }
117 : 16 : break;
118 : : }
119 : 16 : case ORDERED_EXPR:
120 : 16 : {
121 : 16 : tree _p0 = TREE_OPERAND (t, 0);
122 : 16 : tree _p1 = TREE_OPERAND (t, 1);
123 : 16 : {
124 : 16 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
125 : 16 : {
126 : 16 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 21, __FILE__, __LINE__, false);
127 : 16 : return true;
128 : : }
129 : : }
130 : 79 : break;
131 : : }
132 : 79 : case UNLT_EXPR:
133 : 79 : {
134 : 79 : tree _p0 = TREE_OPERAND (t, 0);
135 : 79 : tree _p1 = TREE_OPERAND (t, 1);
136 : 79 : {
137 : 79 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
138 : 79 : {
139 : 79 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 21, __FILE__, __LINE__, false);
140 : 79 : return true;
141 : : }
142 : : }
143 : 1166 : break;
144 : : }
145 : 1166 : case UNLE_EXPR:
146 : 1166 : {
147 : 1166 : tree _p0 = TREE_OPERAND (t, 0);
148 : 1166 : tree _p1 = TREE_OPERAND (t, 1);
149 : 1166 : {
150 : 1166 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
151 : 1166 : {
152 : 1166 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 21, __FILE__, __LINE__, false);
153 : 1166 : return true;
154 : : }
155 : : }
156 : 79 : break;
157 : : }
158 : 79 : case UNGT_EXPR:
159 : 79 : {
160 : 79 : tree _p0 = TREE_OPERAND (t, 0);
161 : 79 : tree _p1 = TREE_OPERAND (t, 1);
162 : 79 : {
163 : 79 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
164 : 79 : {
165 : 79 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 21, __FILE__, __LINE__, false);
166 : 79 : return true;
167 : : }
168 : : }
169 : 79 : break;
170 : : }
171 : 79 : case UNGE_EXPR:
172 : 79 : {
173 : 79 : tree _p0 = TREE_OPERAND (t, 0);
174 : 79 : tree _p1 = TREE_OPERAND (t, 1);
175 : 79 : {
176 : 79 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
177 : 79 : {
178 : 79 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 21, __FILE__, __LINE__, false);
179 : 79 : return true;
180 : : }
181 : : }
182 : 95 : break;
183 : : }
184 : 95 : case UNEQ_EXPR:
185 : 95 : {
186 : 95 : tree _p0 = TREE_OPERAND (t, 0);
187 : 95 : tree _p1 = TREE_OPERAND (t, 1);
188 : 95 : {
189 : 95 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
190 : 95 : {
191 : 95 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 21, __FILE__, __LINE__, false);
192 : 95 : return true;
193 : : }
194 : : }
195 : 27 : break;
196 : : }
197 : 27 : case LTGT_EXPR:
198 : 27 : {
199 : 27 : tree _p0 = TREE_OPERAND (t, 0);
200 : 27 : tree _p1 = TREE_OPERAND (t, 1);
201 : 27 : {
202 : 27 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
203 : 27 : {
204 : 27 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 21, __FILE__, __LINE__, false);
205 : 27 : return true;
206 : : }
207 : : }
208 : 102 : break;
209 : : }
210 : 102 : case TRUTH_AND_EXPR:
211 : 102 : {
212 : 102 : tree _p0 = TREE_OPERAND (t, 0);
213 : 102 : tree _p1 = TREE_OPERAND (t, 1);
214 : 102 : {
215 : 102 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
216 : 102 : {
217 : 102 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 21, __FILE__, __LINE__, false);
218 : 102 : return true;
219 : : }
220 : : }
221 : 516 : break;
222 : : }
223 : 516 : case TRUTH_ANDIF_EXPR:
224 : 516 : {
225 : 516 : tree _p0 = TREE_OPERAND (t, 0);
226 : 516 : tree _p1 = TREE_OPERAND (t, 1);
227 : 516 : {
228 : 516 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
229 : 516 : {
230 : 516 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 21, __FILE__, __LINE__, false);
231 : 516 : return true;
232 : : }
233 : : }
234 : 43 : break;
235 : : }
236 : 43 : case TRUTH_OR_EXPR:
237 : 43 : {
238 : 43 : tree _p0 = TREE_OPERAND (t, 0);
239 : 43 : tree _p1 = TREE_OPERAND (t, 1);
240 : 43 : {
241 : 43 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
242 : 43 : {
243 : 43 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 21, __FILE__, __LINE__, false);
244 : 43 : return true;
245 : : }
246 : : }
247 : 1405 : break;
248 : : }
249 : 1405 : case TRUTH_ORIF_EXPR:
250 : 1405 : {
251 : 1405 : tree _p0 = TREE_OPERAND (t, 0);
252 : 1405 : tree _p1 = TREE_OPERAND (t, 1);
253 : 1405 : {
254 : 1405 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
255 : 1405 : {
256 : 1405 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 21, __FILE__, __LINE__, false);
257 : 1405 : return true;
258 : : }
259 : : }
260 : 0 : break;
261 : : }
262 : 0 : case TRUTH_XOR_EXPR:
263 : 0 : {
264 : 0 : tree _p0 = TREE_OPERAND (t, 0);
265 : 0 : tree _p1 = TREE_OPERAND (t, 1);
266 : 0 : {
267 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
268 : 0 : {
269 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 21, __FILE__, __LINE__, false);
270 : 0 : return true;
271 : : }
272 : : }
273 : 598509 : break;
274 : : }
275 : 598509 : case TRUTH_NOT_EXPR:
276 : 598509 : {
277 : 598509 : tree _p0 = TREE_OPERAND (t, 0);
278 : 598509 : {
279 : 598509 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
280 : 598509 : {
281 : 598509 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 22, __FILE__, __LINE__, false);
282 : 598509 : return true;
283 : : }
284 : : }
285 : : break;
286 : : }
287 : : default:;
288 : : }
289 : : return false;
290 : : }
291 : :
292 : : bool
293 : 0 : tree_unsigned_integer_sat_mul (tree t, tree *res_ops)
294 : : {
295 : 0 : const tree type = TREE_TYPE (t);
296 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
297 : 0 : if (TREE_SIDE_EFFECTS (t)) return false;
298 : 0 : switch (TREE_CODE (t))
299 : : {
300 : 0 : CASE_CONVERT:
301 : 0 : {
302 : 0 : tree _p0 = TREE_OPERAND (t, 0);
303 : 0 : switch (TREE_CODE (_p0))
304 : : {
305 : 0 : case MIN_EXPR:
306 : 0 : {
307 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
308 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
309 : 0 : {
310 : 0 : tree _q20_pops[2];
311 : 0 : if (tree_usmul_widen_mult (_q20, _q20_pops))
312 : : {
313 : 0 : tree _q30 = _q20_pops[0];
314 : 0 : tree _q31 = _q20_pops[1];
315 : 0 : switch (TREE_CODE (_q21))
316 : : {
317 : 0 : case INTEGER_CST:
318 : 0 : {
319 : 0 : {
320 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q20, _q21 };
321 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
322 : : )
323 : : {
324 : 0 : if (types_match (type, captures[0], captures[1])
325 : : )
326 : : {
327 : 0 : {
328 : 0 : unsigned prec = TYPE_PRECISION (type);
329 : 0 : unsigned widen_prec = TYPE_PRECISION (TREE_TYPE (captures[2]));
330 : 0 : wide_int max = wi::mask (prec, false, widen_prec);
331 : 0 : bool c2_is_max_p = wi::eq_p (wi::to_wide (captures[3]), max);
332 : 0 : if (c2_is_max_p
333 : : )
334 : : {
335 : 0 : {
336 : 0 : res_ops[0] = captures[0];
337 : 0 : res_ops[1] = captures[1];
338 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 90, __FILE__, __LINE__, false);
339 : 0 : return true;
340 : : }
341 : : }
342 : 0 : }
343 : : }
344 : : }
345 : : }
346 : 0 : break;
347 : : }
348 : : default:;
349 : : }
350 : : }
351 : : }
352 : 0 : break;
353 : : }
354 : 0 : case COND_EXPR:
355 : 0 : {
356 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
357 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
358 : 0 : tree _q22 = TREE_OPERAND (_p0, 2);
359 : 0 : switch (TREE_CODE (_q20))
360 : : {
361 : 0 : case EQ_EXPR:
362 : 0 : {
363 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
364 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
365 : 0 : switch (TREE_CODE (_q30))
366 : : {
367 : 0 : case RSHIFT_EXPR:
368 : 0 : {
369 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
370 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
371 : 0 : switch (TREE_CODE (_q40))
372 : : {
373 : 0 : case MULT_EXPR:
374 : 0 : {
375 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
376 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
377 : 0 : switch (TREE_CODE (_q50))
378 : : {
379 : 0 : CASE_CONVERT:
380 : 0 : {
381 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
382 : 0 : switch (TREE_CODE (_q51))
383 : : {
384 : 0 : CASE_CONVERT:
385 : 0 : {
386 : 0 : tree _q80 = TREE_OPERAND (_q51, 0);
387 : 0 : switch (TREE_CODE (_q41))
388 : : {
389 : 0 : case INTEGER_CST:
390 : 0 : {
391 : 0 : if (integer_zerop (_q31))
392 : : {
393 : 0 : if ((_q21 == _q40 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q40, 0) && types_match (_q21, _q40)))
394 : : {
395 : 0 : switch (TREE_CODE (_q22))
396 : : {
397 : 0 : case INTEGER_CST:
398 : 0 : {
399 : 0 : {
400 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q60, _q80, _q40, _q41, _q22 };
401 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
402 : : )
403 : : {
404 : 0 : if (types_match (type, captures[0], captures[1])
405 : : )
406 : : {
407 : 0 : {
408 : 0 : unsigned prec = TYPE_PRECISION (type);
409 : 0 : unsigned widen_prec = TYPE_PRECISION (TREE_TYPE (captures[2]));
410 : 0 : wide_int c4 = wi::to_wide (captures[4]);
411 : 0 : wide_int max = wi::mask (prec, false, widen_prec);
412 : 0 : bool c4_is_max_p = wi::eq_p (c4, max);
413 : 0 : unsigned c2 = tree_to_uhwi (captures[3]);
414 : 0 : bool c2_is_type_precision_p = c2 == prec;
415 : 0 : if (widen_prec > prec && c2_is_type_precision_p && c4_is_max_p
416 : : )
417 : : {
418 : 0 : {
419 : 0 : res_ops[0] = captures[0];
420 : 0 : res_ops[1] = captures[1];
421 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 91, __FILE__, __LINE__, false);
422 : 0 : return true;
423 : : }
424 : : }
425 : 0 : }
426 : : }
427 : : }
428 : : }
429 : 0 : {
430 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q80, _q60, _q40, _q41, _q22 };
431 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
432 : : )
433 : : {
434 : 0 : if (types_match (type, captures[0], captures[1])
435 : : )
436 : : {
437 : 0 : {
438 : 0 : unsigned prec = TYPE_PRECISION (type);
439 : 0 : unsigned widen_prec = TYPE_PRECISION (TREE_TYPE (captures[2]));
440 : 0 : wide_int c4 = wi::to_wide (captures[4]);
441 : 0 : wide_int max = wi::mask (prec, false, widen_prec);
442 : 0 : bool c4_is_max_p = wi::eq_p (c4, max);
443 : 0 : unsigned c2 = tree_to_uhwi (captures[3]);
444 : 0 : bool c2_is_type_precision_p = c2 == prec;
445 : 0 : if (widen_prec > prec && c2_is_type_precision_p && c4_is_max_p
446 : : )
447 : : {
448 : 0 : {
449 : 0 : res_ops[0] = captures[0];
450 : 0 : res_ops[1] = captures[1];
451 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 91, __FILE__, __LINE__, false);
452 : 0 : return true;
453 : : }
454 : : }
455 : 0 : }
456 : : }
457 : : }
458 : : }
459 : 0 : break;
460 : : }
461 : : default:;
462 : : }
463 : : }
464 : : }
465 : : break;
466 : : }
467 : : default:;
468 : : }
469 : : break;
470 : : }
471 : : default:;
472 : : }
473 : : break;
474 : : }
475 : : default:;
476 : : }
477 : : break;
478 : : }
479 : : default:;
480 : : }
481 : : break;
482 : : }
483 : : default:;
484 : : }
485 : : break;
486 : : }
487 : : default:;
488 : : }
489 : : break;
490 : : }
491 : 0 : case BIT_IOR_EXPR:
492 : 0 : {
493 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
494 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
495 : 0 : switch (TREE_CODE (_q20))
496 : : {
497 : 0 : CASE_CONVERT:
498 : 0 : {
499 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
500 : 0 : switch (TREE_CODE (_q30))
501 : : {
502 : 0 : case NEGATE_EXPR:
503 : 0 : {
504 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
505 : 0 : switch (TREE_CODE (_q40))
506 : : {
507 : 0 : CASE_CONVERT:
508 : 0 : {
509 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
510 : 0 : switch (TREE_CODE (_q50))
511 : : {
512 : 0 : case NE_EXPR:
513 : 0 : {
514 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
515 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
516 : 0 : switch (TREE_CODE (_q60))
517 : : {
518 : 0 : CASE_CONVERT:
519 : 0 : {
520 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
521 : 0 : switch (TREE_CODE (_q70))
522 : : {
523 : 0 : case RSHIFT_EXPR:
524 : 0 : {
525 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
526 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
527 : 0 : switch (TREE_CODE (_q81))
528 : : {
529 : 0 : case INTEGER_CST:
530 : 0 : {
531 : 0 : if (integer_zerop (_q61))
532 : : {
533 : 0 : switch (TREE_CODE (_q21))
534 : : {
535 : 0 : CASE_CONVERT:
536 : 0 : {
537 : 0 : tree _q120 = TREE_OPERAND (_q21, 0);
538 : 0 : if ((_q120 == _q80 && ! TREE_SIDE_EFFECTS (_q120)) || (operand_equal_p (_q120, _q80, 0) && types_match (_q120, _q80)))
539 : : {
540 : 0 : {
541 : 0 : tree _q120_pops[2];
542 : 0 : if (tree_usmul_widen_mult (_q120, _q120_pops))
543 : : {
544 : 0 : tree _q140 = _q120_pops[0];
545 : 0 : tree _q141 = _q120_pops[1];
546 : 0 : {
547 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q140, _q141, _q80, _q81 };
548 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
549 : : )
550 : : {
551 : 0 : if (types_match (type, captures[0], captures[1])
552 : : )
553 : : {
554 : 0 : {
555 : 0 : unsigned prec = TYPE_PRECISION (type);
556 : 0 : bool c2_is_type_precision_p = tree_to_uhwi (captures[3]) == prec;
557 : 0 : if (c2_is_type_precision_p
558 : : )
559 : : {
560 : 0 : {
561 : 0 : res_ops[0] = captures[0];
562 : 0 : res_ops[1] = captures[1];
563 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 92, __FILE__, __LINE__, false);
564 : 0 : return true;
565 : : }
566 : : }
567 : : }
568 : : }
569 : : }
570 : : }
571 : : }
572 : : }
573 : : }
574 : : break;
575 : : }
576 : : default:;
577 : : }
578 : : }
579 : : break;
580 : : }
581 : : default:;
582 : : }
583 : : break;
584 : : }
585 : : default:;
586 : : }
587 : : break;
588 : : }
589 : 0 : case RSHIFT_EXPR:
590 : 0 : {
591 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
592 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
593 : 0 : switch (TREE_CODE (_q71))
594 : : {
595 : 0 : case INTEGER_CST:
596 : 0 : {
597 : 0 : if (integer_zerop (_q61))
598 : : {
599 : 0 : switch (TREE_CODE (_q21))
600 : : {
601 : 0 : CASE_CONVERT:
602 : 0 : {
603 : 0 : tree _q110 = TREE_OPERAND (_q21, 0);
604 : 0 : if ((_q110 == _q70 && ! TREE_SIDE_EFFECTS (_q110)) || (operand_equal_p (_q110, _q70, 0) && types_match (_q110, _q70)))
605 : : {
606 : 0 : {
607 : 0 : tree _q110_pops[2];
608 : 0 : if (tree_usmul_widen_mult (_q110, _q110_pops))
609 : : {
610 : 0 : tree _q130 = _q110_pops[0];
611 : 0 : tree _q131 = _q110_pops[1];
612 : 0 : {
613 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q130, _q131, _q70, _q71 };
614 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
615 : : )
616 : : {
617 : 0 : if (types_match (type, captures[0], captures[1])
618 : : )
619 : : {
620 : 0 : {
621 : 0 : unsigned prec = TYPE_PRECISION (type);
622 : 0 : bool c2_is_type_precision_p = tree_to_uhwi (captures[3]) == prec;
623 : 0 : if (c2_is_type_precision_p
624 : : )
625 : : {
626 : 0 : {
627 : 0 : res_ops[0] = captures[0];
628 : 0 : res_ops[1] = captures[1];
629 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 92, __FILE__, __LINE__, false);
630 : 0 : return true;
631 : : }
632 : : }
633 : : }
634 : : }
635 : : }
636 : : }
637 : : }
638 : : }
639 : : }
640 : : break;
641 : : }
642 : : default:;
643 : : }
644 : : }
645 : : break;
646 : : }
647 : : default:;
648 : : }
649 : : break;
650 : : }
651 : : default:;
652 : : }
653 : : break;
654 : : }
655 : : default:;
656 : : }
657 : : break;
658 : : }
659 : : default:;
660 : : }
661 : : break;
662 : : }
663 : : default:;
664 : : }
665 : : break;
666 : : }
667 : 0 : case NEGATE_EXPR:
668 : 0 : {
669 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
670 : 0 : switch (TREE_CODE (_q30))
671 : : {
672 : 0 : CASE_CONVERT:
673 : 0 : {
674 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
675 : 0 : switch (TREE_CODE (_q40))
676 : : {
677 : 0 : case NE_EXPR:
678 : 0 : {
679 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
680 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
681 : 0 : switch (TREE_CODE (_q50))
682 : : {
683 : 0 : CASE_CONVERT:
684 : 0 : {
685 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
686 : 0 : switch (TREE_CODE (_q60))
687 : : {
688 : 0 : case RSHIFT_EXPR:
689 : 0 : {
690 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
691 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
692 : 0 : switch (TREE_CODE (_q71))
693 : : {
694 : 0 : case INTEGER_CST:
695 : 0 : {
696 : 0 : if (integer_zerop (_q51))
697 : : {
698 : 0 : switch (TREE_CODE (_q21))
699 : : {
700 : 0 : CASE_CONVERT:
701 : 0 : {
702 : 0 : tree _q110 = TREE_OPERAND (_q21, 0);
703 : 0 : if ((_q110 == _q70 && ! TREE_SIDE_EFFECTS (_q110)) || (operand_equal_p (_q110, _q70, 0) && types_match (_q110, _q70)))
704 : : {
705 : 0 : {
706 : 0 : tree _q110_pops[2];
707 : 0 : if (tree_usmul_widen_mult (_q110, _q110_pops))
708 : : {
709 : 0 : tree _q130 = _q110_pops[0];
710 : 0 : tree _q131 = _q110_pops[1];
711 : 0 : {
712 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q130, _q131, _q70, _q71 };
713 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
714 : : )
715 : : {
716 : 0 : if (types_match (type, captures[0], captures[1])
717 : : )
718 : : {
719 : 0 : {
720 : 0 : unsigned prec = TYPE_PRECISION (type);
721 : 0 : bool c2_is_type_precision_p = tree_to_uhwi (captures[3]) == prec;
722 : 0 : if (c2_is_type_precision_p
723 : : )
724 : : {
725 : 0 : {
726 : 0 : res_ops[0] = captures[0];
727 : 0 : res_ops[1] = captures[1];
728 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 92, __FILE__, __LINE__, false);
729 : 0 : return true;
730 : : }
731 : : }
732 : : }
733 : : }
734 : : }
735 : : }
736 : : }
737 : : }
738 : : }
739 : : break;
740 : : }
741 : : default:;
742 : : }
743 : : }
744 : : break;
745 : : }
746 : : default:;
747 : : }
748 : : break;
749 : : }
750 : : default:;
751 : : }
752 : : break;
753 : : }
754 : 0 : case RSHIFT_EXPR:
755 : 0 : {
756 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
757 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
758 : 0 : switch (TREE_CODE (_q61))
759 : : {
760 : 0 : case INTEGER_CST:
761 : 0 : {
762 : 0 : if (integer_zerop (_q51))
763 : : {
764 : 0 : switch (TREE_CODE (_q21))
765 : : {
766 : 0 : CASE_CONVERT:
767 : 0 : {
768 : 0 : tree _q100 = TREE_OPERAND (_q21, 0);
769 : 0 : if ((_q100 == _q60 && ! TREE_SIDE_EFFECTS (_q100)) || (operand_equal_p (_q100, _q60, 0) && types_match (_q100, _q60)))
770 : : {
771 : 0 : {
772 : 0 : tree _q100_pops[2];
773 : 0 : if (tree_usmul_widen_mult (_q100, _q100_pops))
774 : : {
775 : 0 : tree _q120 = _q100_pops[0];
776 : 0 : tree _q121 = _q100_pops[1];
777 : 0 : {
778 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q120, _q121, _q60, _q61 };
779 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
780 : : )
781 : : {
782 : 0 : if (types_match (type, captures[0], captures[1])
783 : : )
784 : : {
785 : 0 : {
786 : 0 : unsigned prec = TYPE_PRECISION (type);
787 : 0 : bool c2_is_type_precision_p = tree_to_uhwi (captures[3]) == prec;
788 : 0 : if (c2_is_type_precision_p
789 : : )
790 : : {
791 : 0 : {
792 : 0 : res_ops[0] = captures[0];
793 : 0 : res_ops[1] = captures[1];
794 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 92, __FILE__, __LINE__, false);
795 : 0 : return true;
796 : : }
797 : : }
798 : : }
799 : : }
800 : : }
801 : : }
802 : : }
803 : : }
804 : : }
805 : : break;
806 : : }
807 : : default:;
808 : : }
809 : : }
810 : : break;
811 : : }
812 : : default:;
813 : : }
814 : : break;
815 : : }
816 : : default:;
817 : : }
818 : : break;
819 : : }
820 : : default:;
821 : : }
822 : : break;
823 : : }
824 : : default:;
825 : : }
826 : : break;
827 : : }
828 : : default:;
829 : : }
830 : : break;
831 : : }
832 : : default:;
833 : : }
834 : : break;
835 : : }
836 : 0 : case COND_EXPR:
837 : 0 : {
838 : 0 : tree _p0 = TREE_OPERAND (t, 0);
839 : 0 : tree _p1 = TREE_OPERAND (t, 1);
840 : 0 : tree _p2 = TREE_OPERAND (t, 2);
841 : 0 : switch (TREE_CODE (_p0))
842 : : {
843 : 0 : case NE_EXPR:
844 : 0 : {
845 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
846 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
847 : 0 : switch (TREE_CODE (_q20))
848 : : {
849 : 0 : case IMAGPART_EXPR:
850 : 0 : {
851 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
852 : 0 : switch (TREE_CODE (_q30))
853 : : {
854 : 0 : case CALL_EXPR:
855 : 0 : switch (get_call_combined_fn (_q30))
856 : : {
857 : 0 : case CFN_MUL_OVERFLOW:
858 : 0 : if (call_expr_nargs (_q30) == 2)
859 : : {
860 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
861 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
862 : 0 : if (integer_zerop (_q21))
863 : : {
864 : 0 : if (integer_minus_onep (_p1))
865 : : {
866 : 0 : switch (TREE_CODE (_p2))
867 : : {
868 : 0 : case REALPART_EXPR:
869 : 0 : {
870 : 0 : tree _q90 = TREE_OPERAND (_p2, 0);
871 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
872 : : {
873 : 0 : {
874 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _q30 };
875 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
876 : : )
877 : : {
878 : 0 : if (types_match (type, captures[0], captures[1])
879 : : )
880 : : {
881 : 0 : {
882 : 0 : res_ops[0] = captures[0];
883 : 0 : res_ops[1] = captures[1];
884 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 93, __FILE__, __LINE__, false);
885 : 0 : return true;
886 : : }
887 : : }
888 : : }
889 : : }
890 : 0 : {
891 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _q30 };
892 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
893 : : )
894 : : {
895 : 0 : if (types_match (type, captures[0], captures[1])
896 : : )
897 : : {
898 : 0 : {
899 : 0 : res_ops[0] = captures[0];
900 : 0 : res_ops[1] = captures[1];
901 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 93, __FILE__, __LINE__, false);
902 : 0 : return true;
903 : : }
904 : : }
905 : : }
906 : : }
907 : : }
908 : : break;
909 : : }
910 : : default:;
911 : : }
912 : : }
913 : : }
914 : : }
915 : : break;
916 : : default:;
917 : : }
918 : : break;
919 : : default:;
920 : : }
921 : : break;
922 : : }
923 : : default:;
924 : : }
925 : : break;
926 : : }
927 : : default:;
928 : : }
929 : : break;
930 : : }
931 : 0 : case BIT_IOR_EXPR:
932 : 0 : {
933 : 0 : tree _p0 = TREE_OPERAND (t, 0);
934 : 0 : tree _p1 = TREE_OPERAND (t, 1);
935 : 0 : switch (TREE_CODE (_p0))
936 : : {
937 : 0 : CASE_CONVERT:
938 : 0 : {
939 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
940 : 0 : switch (TREE_CODE (_q20))
941 : : {
942 : 0 : case NEGATE_EXPR:
943 : 0 : {
944 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
945 : 0 : switch (TREE_CODE (_q30))
946 : : {
947 : 0 : CASE_CONVERT:
948 : 0 : {
949 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
950 : 0 : switch (TREE_CODE (_q40))
951 : : {
952 : 0 : case NE_EXPR:
953 : 0 : {
954 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
955 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
956 : 0 : switch (TREE_CODE (_q50))
957 : : {
958 : 0 : CASE_CONVERT:
959 : 0 : {
960 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
961 : 0 : switch (TREE_CODE (_q60))
962 : : {
963 : 0 : case RSHIFT_EXPR:
964 : 0 : {
965 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
966 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
967 : 0 : switch (TREE_CODE (_q71))
968 : : {
969 : 0 : case INTEGER_CST:
970 : 0 : {
971 : 0 : if (integer_zerop (_q51))
972 : : {
973 : 0 : switch (TREE_CODE (_p1))
974 : : {
975 : 0 : CASE_CONVERT:
976 : 0 : {
977 : 0 : tree _q110 = TREE_OPERAND (_p1, 0);
978 : 0 : if ((_q110 == _q70 && ! TREE_SIDE_EFFECTS (_q110)) || (operand_equal_p (_q110, _q70, 0) && types_match (_q110, _q70)))
979 : : {
980 : 0 : {
981 : 0 : tree _q110_pops[2];
982 : 0 : if (tree_usmul_widen_mult (_q110, _q110_pops))
983 : : {
984 : 0 : tree _q130 = _q110_pops[0];
985 : 0 : tree _q131 = _q110_pops[1];
986 : 0 : {
987 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q130, _q131, _q70, _q71 };
988 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
989 : : )
990 : : {
991 : 0 : if (types_match (type, captures[0], captures[1])
992 : : )
993 : : {
994 : 0 : {
995 : 0 : unsigned prec = TYPE_PRECISION (type);
996 : 0 : bool c2_is_type_precision_p = tree_to_uhwi (captures[3]) == prec;
997 : 0 : if (c2_is_type_precision_p
998 : : )
999 : : {
1000 : 0 : {
1001 : 0 : res_ops[0] = captures[0];
1002 : 0 : res_ops[1] = captures[1];
1003 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 92, __FILE__, __LINE__, false);
1004 : 0 : return true;
1005 : : }
1006 : : }
1007 : : }
1008 : : }
1009 : : }
1010 : : }
1011 : : }
1012 : : }
1013 : : }
1014 : : break;
1015 : : }
1016 : : default:;
1017 : : }
1018 : : }
1019 : : break;
1020 : : }
1021 : : default:;
1022 : : }
1023 : : break;
1024 : : }
1025 : : default:;
1026 : : }
1027 : : break;
1028 : : }
1029 : 0 : case RSHIFT_EXPR:
1030 : 0 : {
1031 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
1032 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
1033 : 0 : switch (TREE_CODE (_q61))
1034 : : {
1035 : 0 : case INTEGER_CST:
1036 : 0 : {
1037 : 0 : if (integer_zerop (_q51))
1038 : : {
1039 : 0 : switch (TREE_CODE (_p1))
1040 : : {
1041 : 0 : CASE_CONVERT:
1042 : 0 : {
1043 : 0 : tree _q100 = TREE_OPERAND (_p1, 0);
1044 : 0 : if ((_q100 == _q60 && ! TREE_SIDE_EFFECTS (_q100)) || (operand_equal_p (_q100, _q60, 0) && types_match (_q100, _q60)))
1045 : : {
1046 : 0 : {
1047 : 0 : tree _q100_pops[2];
1048 : 0 : if (tree_usmul_widen_mult (_q100, _q100_pops))
1049 : : {
1050 : 0 : tree _q120 = _q100_pops[0];
1051 : 0 : tree _q121 = _q100_pops[1];
1052 : 0 : {
1053 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q120, _q121, _q60, _q61 };
1054 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
1055 : : )
1056 : : {
1057 : 0 : if (types_match (type, captures[0], captures[1])
1058 : : )
1059 : : {
1060 : 0 : {
1061 : 0 : unsigned prec = TYPE_PRECISION (type);
1062 : 0 : bool c2_is_type_precision_p = tree_to_uhwi (captures[3]) == prec;
1063 : 0 : if (c2_is_type_precision_p
1064 : : )
1065 : : {
1066 : 0 : {
1067 : 0 : res_ops[0] = captures[0];
1068 : 0 : res_ops[1] = captures[1];
1069 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 92, __FILE__, __LINE__, false);
1070 : 0 : return true;
1071 : : }
1072 : : }
1073 : : }
1074 : : }
1075 : : }
1076 : : }
1077 : : }
1078 : : }
1079 : : }
1080 : : break;
1081 : : }
1082 : : default:;
1083 : : }
1084 : : }
1085 : : break;
1086 : : }
1087 : : default:;
1088 : : }
1089 : : break;
1090 : : }
1091 : : default:;
1092 : : }
1093 : : break;
1094 : : }
1095 : : default:;
1096 : : }
1097 : : break;
1098 : : }
1099 : : default:;
1100 : : }
1101 : : break;
1102 : : }
1103 : : default:;
1104 : : }
1105 : : break;
1106 : : }
1107 : 0 : case NEGATE_EXPR:
1108 : 0 : {
1109 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
1110 : 0 : switch (TREE_CODE (_q20))
1111 : : {
1112 : 0 : CASE_CONVERT:
1113 : 0 : {
1114 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
1115 : 0 : switch (TREE_CODE (_q30))
1116 : : {
1117 : 0 : case NE_EXPR:
1118 : 0 : {
1119 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
1120 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
1121 : 0 : switch (TREE_CODE (_q40))
1122 : : {
1123 : 0 : CASE_CONVERT:
1124 : 0 : {
1125 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
1126 : 0 : switch (TREE_CODE (_q50))
1127 : : {
1128 : 0 : case RSHIFT_EXPR:
1129 : 0 : {
1130 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
1131 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
1132 : 0 : switch (TREE_CODE (_q61))
1133 : : {
1134 : 0 : case INTEGER_CST:
1135 : 0 : {
1136 : 0 : if (integer_zerop (_q41))
1137 : : {
1138 : 0 : switch (TREE_CODE (_p1))
1139 : : {
1140 : 0 : CASE_CONVERT:
1141 : 0 : {
1142 : 0 : tree _q100 = TREE_OPERAND (_p1, 0);
1143 : 0 : if ((_q100 == _q60 && ! TREE_SIDE_EFFECTS (_q100)) || (operand_equal_p (_q100, _q60, 0) && types_match (_q100, _q60)))
1144 : : {
1145 : 0 : {
1146 : 0 : tree _q100_pops[2];
1147 : 0 : if (tree_usmul_widen_mult (_q100, _q100_pops))
1148 : : {
1149 : 0 : tree _q120 = _q100_pops[0];
1150 : 0 : tree _q121 = _q100_pops[1];
1151 : 0 : {
1152 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q120, _q121, _q60, _q61 };
1153 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
1154 : : )
1155 : : {
1156 : 0 : if (types_match (type, captures[0], captures[1])
1157 : : )
1158 : : {
1159 : 0 : {
1160 : 0 : unsigned prec = TYPE_PRECISION (type);
1161 : 0 : bool c2_is_type_precision_p = tree_to_uhwi (captures[3]) == prec;
1162 : 0 : if (c2_is_type_precision_p
1163 : : )
1164 : : {
1165 : 0 : {
1166 : 0 : res_ops[0] = captures[0];
1167 : 0 : res_ops[1] = captures[1];
1168 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 92, __FILE__, __LINE__, false);
1169 : 0 : return true;
1170 : : }
1171 : : }
1172 : : }
1173 : : }
1174 : : }
1175 : : }
1176 : : }
1177 : : }
1178 : : }
1179 : : break;
1180 : : }
1181 : : default:;
1182 : : }
1183 : : }
1184 : : break;
1185 : : }
1186 : : default:;
1187 : : }
1188 : : break;
1189 : : }
1190 : : default:;
1191 : : }
1192 : : break;
1193 : : }
1194 : 0 : case RSHIFT_EXPR:
1195 : 0 : {
1196 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
1197 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
1198 : 0 : switch (TREE_CODE (_q51))
1199 : : {
1200 : 0 : case INTEGER_CST:
1201 : 0 : {
1202 : 0 : if (integer_zerop (_q41))
1203 : : {
1204 : 0 : switch (TREE_CODE (_p1))
1205 : : {
1206 : 0 : CASE_CONVERT:
1207 : 0 : {
1208 : 0 : tree _q90 = TREE_OPERAND (_p1, 0);
1209 : 0 : if ((_q90 == _q50 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q50, 0) && types_match (_q90, _q50)))
1210 : : {
1211 : 0 : {
1212 : 0 : tree _q90_pops[2];
1213 : 0 : if (tree_usmul_widen_mult (_q90, _q90_pops))
1214 : : {
1215 : 0 : tree _q110 = _q90_pops[0];
1216 : 0 : tree _q111 = _q90_pops[1];
1217 : 0 : {
1218 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q110, _q111, _q50, _q51 };
1219 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
1220 : : )
1221 : : {
1222 : 0 : if (types_match (type, captures[0], captures[1])
1223 : : )
1224 : : {
1225 : 0 : {
1226 : 0 : unsigned prec = TYPE_PRECISION (type);
1227 : 0 : bool c2_is_type_precision_p = tree_to_uhwi (captures[3]) == prec;
1228 : 0 : if (c2_is_type_precision_p
1229 : : )
1230 : : {
1231 : 0 : {
1232 : 0 : res_ops[0] = captures[0];
1233 : 0 : res_ops[1] = captures[1];
1234 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 92, __FILE__, __LINE__, false);
1235 : 0 : return true;
1236 : : }
1237 : : }
1238 : : }
1239 : : }
1240 : : }
1241 : : }
1242 : : }
1243 : : }
1244 : : }
1245 : : break;
1246 : : }
1247 : : default:;
1248 : : }
1249 : : }
1250 : : break;
1251 : : }
1252 : : default:;
1253 : : }
1254 : : break;
1255 : : }
1256 : : default:;
1257 : : }
1258 : : break;
1259 : : }
1260 : : default:;
1261 : : }
1262 : : break;
1263 : : }
1264 : : default:;
1265 : : }
1266 : : break;
1267 : : }
1268 : : default:;
1269 : : }
1270 : : break;
1271 : : }
1272 : : default:;
1273 : : }
1274 : : return false;
1275 : : }
1276 : :
1277 : : tree
1278 : 2 : generic_simplify_44 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1279 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1280 : : {
1281 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1282 : 2 : if (!TYPE_OVERFLOW_SANITIZED (type) && !TYPE_OVERFLOW_TRAPS (type)
1283 : 2 : && !TYPE_SATURATING (type) && !TYPE_OVERFLOW_SANITIZED (TREE_TYPE (captures[2]))
1284 : 2 : && !TYPE_OVERFLOW_TRAPS (TREE_TYPE (captures[2]))
1285 : 4 : && !TYPE_SATURATING (TREE_TYPE (captures[2]))
1286 : : )
1287 : : {
1288 : 2 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail301;
1289 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail301;
1290 : 2 : {
1291 : 2 : tree res_op0;
1292 : 2 : {
1293 : 2 : tree _o1[1], _r1;
1294 : 2 : {
1295 : 2 : tree _o2[2], _r2;
1296 : 2 : _o2[0] = captures[0];
1297 : 2 : _o2[1] = captures[1];
1298 : 2 : _r2 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
1299 : 2 : _o1[0] = _r2;
1300 : : }
1301 : 2 : if (TREE_TYPE (_o1[0]) != type)
1302 : : {
1303 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1304 : : }
1305 : : else
1306 : : _r1 = _o1[0];
1307 : 2 : res_op0 = _r1;
1308 : : }
1309 : 2 : tree _r;
1310 : 2 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
1311 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 164, __FILE__, __LINE__, true);
1312 : 2 : return _r;
1313 : : }
1314 : : next_after_fail301:;
1315 : : }
1316 : : return NULL_TREE;
1317 : : }
1318 : :
1319 : : tree
1320 : 136 : generic_simplify_53 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1321 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1322 : : {
1323 : 136 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1324 : 136 : if (!TYPE_SATURATING (type)
1325 : : )
1326 : : {
1327 : 136 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
1328 : 272 : && !FIXED_POINT_TYPE_P (type)
1329 : : )
1330 : : {
1331 : 136 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail312;
1332 : 136 : {
1333 : 136 : tree res_op0;
1334 : 136 : res_op0 = captures[1];
1335 : 136 : tree _r;
1336 : 136 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
1337 : 136 : if (TREE_SIDE_EFFECTS (captures[0]))
1338 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1339 : 136 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 174, __FILE__, __LINE__, true);
1340 : 136 : return _r;
1341 : : }
1342 : 0 : next_after_fail312:;
1343 : : }
1344 : : }
1345 : : return NULL_TREE;
1346 : : }
1347 : :
1348 : : tree
1349 : 9 : generic_simplify_60 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1350 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1351 : : {
1352 : 9 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1353 : 9 : if (INTEGRAL_TYPE_P (type)
1354 : 9 : && (
1355 : :
1356 : 9 : || !TREE_SIDE_EFFECTS (captures[1]))
1357 : : )
1358 : : {
1359 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail323;
1360 : 2 : {
1361 : 2 : tree res_op0;
1362 : 2 : {
1363 : 2 : tree _o1[1], _r1;
1364 : 2 : _o1[0] = captures[2];
1365 : 2 : if (TREE_TYPE (_o1[0]) != boolean_type_node)
1366 : : {
1367 : 2 : _r1 = fold_build1_loc (loc, NOP_EXPR, boolean_type_node, _o1[0]);
1368 : : }
1369 : : else
1370 : : _r1 = _o1[0];
1371 : 2 : res_op0 = _r1;
1372 : : }
1373 : 2 : tree res_op1;
1374 : 2 : res_op1 = captures[1];
1375 : 2 : tree res_op2;
1376 : 2 : res_op2 = captures[0];
1377 : 2 : tree _r;
1378 : 2 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
1379 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 185, __FILE__, __LINE__, true);
1380 : 2 : return _r;
1381 : : }
1382 : 0 : next_after_fail323:;
1383 : : }
1384 : : return NULL_TREE;
1385 : : }
1386 : :
1387 : : tree
1388 : 15 : generic_simplify_66 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1389 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1390 : : const enum tree_code ARG_UNUSED (op))
1391 : : {
1392 : 15 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1393 : 15 : if (INTEGRAL_TYPE_P (type)
1394 : : )
1395 : : {
1396 : 15 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail329;
1397 : 15 : {
1398 : 15 : tree res_op0;
1399 : 15 : {
1400 : 15 : tree _o1[2], _r1;
1401 : 15 : _o1[0] = captures[1];
1402 : 15 : _o1[1] = captures[4];
1403 : 15 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1404 : 15 : res_op0 = _r1;
1405 : : }
1406 : 15 : tree res_op1;
1407 : 15 : res_op1 = captures[2];
1408 : 15 : tree _r;
1409 : 15 : _r = fold_build2_loc (loc, RSHIFT_EXPR, type, res_op0, res_op1);
1410 : 15 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 191, __FILE__, __LINE__, true);
1411 : 15 : return _r;
1412 : : }
1413 : 0 : next_after_fail329:;
1414 : : }
1415 : : return NULL_TREE;
1416 : : }
1417 : :
1418 : : tree
1419 : 0 : generic_simplify_72 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1420 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1421 : : {
1422 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1423 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail335;
1424 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail335;
1425 : 0 : {
1426 : 0 : tree _r;
1427 : 0 : _r = captures[2];
1428 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 195, __FILE__, __LINE__, true);
1429 : : return _r;
1430 : : }
1431 : : next_after_fail335:;
1432 : : return NULL_TREE;
1433 : : }
1434 : :
1435 : : tree
1436 : 0 : generic_simplify_76 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1437 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1438 : : const enum tree_code ARG_UNUSED (bit_op))
1439 : : {
1440 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1441 : 0 : if (bit_op == BIT_AND_EXPR
1442 : : )
1443 : : {
1444 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail340;
1445 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail340;
1446 : 0 : {
1447 : 0 : tree _r;
1448 : 0 : _r = build_zero_cst (type);
1449 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 199, __FILE__, __LINE__, true);
1450 : 0 : return _r;
1451 : : }
1452 : : next_after_fail340:;
1453 : : }
1454 : : else
1455 : : {
1456 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail341;
1457 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail341;
1458 : 0 : {
1459 : 0 : tree _r;
1460 : 0 : _r = build_minus_one_cst (type);
1461 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 200, __FILE__, __LINE__, true);
1462 : 0 : return _r;
1463 : : }
1464 : : next_after_fail341:;
1465 : : }
1466 : : return NULL_TREE;
1467 : : }
1468 : :
1469 : : tree
1470 : 219153 : generic_simplify_88 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1471 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1472 : : const enum tree_code ARG_UNUSED (op))
1473 : : {
1474 : 219153 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1475 : 219153 : {
1476 : 219153 : bool wascmp;
1477 : 219153 : if (types_match (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
1478 : 219153 : && bitwise_inverted_equal_p (captures[0], captures[1], wascmp)
1479 : : )
1480 : : {
1481 : 47 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail355;
1482 : 47 : {
1483 : 47 : tree res_op0;
1484 : 47 : res_op0 = wascmp
1485 : 47 : ? constant_boolean_node (true, type)
1486 : 40 : : build_all_ones_cst (TREE_TYPE (captures[0]));
1487 : 47 : tree _r;
1488 : 47 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1489 : 47 : if (TREE_SIDE_EFFECTS (captures[0]))
1490 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1491 : 47 : if (TREE_SIDE_EFFECTS (captures[1]))
1492 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1493 : 47 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 208, __FILE__, __LINE__, true);
1494 : 47 : return _r;
1495 : : }
1496 : 0 : next_after_fail355:;
1497 : : }
1498 : : }
1499 : 219106 : return NULL_TREE;
1500 : : }
1501 : :
1502 : : tree
1503 : 1818799 : generic_simplify_103 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1504 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1505 : : const enum tree_code ARG_UNUSED (bitop))
1506 : : {
1507 : 1818799 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1508 : 1818799 : if (((TREE_CODE (captures[3]) == INTEGER_CST
1509 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
1510 : 0 : && (int_fits_type_p (captures[3], TREE_TYPE (captures[1]))
1511 : 0 : || tree_nop_conversion_p (TREE_TYPE (captures[1]), type)))
1512 : 1818799 : || types_match (captures[1], captures[3]))
1513 : 1727206 : && !POINTER_TYPE_P (TREE_TYPE (captures[1]))
1514 : 1726943 : && !VECTOR_TYPE_P (TREE_TYPE (captures[1]))
1515 : 1726943 : && TREE_CODE (TREE_TYPE (captures[1])) != OFFSET_TYPE
1516 : 1726943 : && (bitop != BIT_AND_EXPR ||
1517 : :
1518 : : )
1519 : 1818799 : && (
1520 : 967195 : TYPE_PRECISION (TREE_TYPE (captures[1])) < TYPE_PRECISION (type)
1521 : : || (
1522 : :
1523 : : && TYPE_PRECISION (TREE_TYPE (captures[1])) == TYPE_PRECISION (type))
1524 : 941395 : || GET_MODE_CLASS (TYPE_MODE (type)) != MODE_INT
1525 : 941395 : || !type_has_mode_precision_p (type)
1526 : 941395 : || (
1527 : :
1528 : : && TREE_CODE (captures[3]) != INTEGER_CST
1529 : : && tree_nop_conversion_p (type, TREE_TYPE (captures[1]))
1530 : : && single_use (captures[0])
1531 : : && single_use (captures[2])))
1532 : : )
1533 : : {
1534 : 25800 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail374;
1535 : 25800 : {
1536 : 25800 : tree res_op0;
1537 : 25800 : {
1538 : 25800 : tree _o1[2], _r1;
1539 : 25800 : _o1[0] = captures[1];
1540 : 25800 : {
1541 : 25800 : tree _o2[1], _r2;
1542 : 25800 : _o2[0] = captures[3];
1543 : 25800 : if (TREE_TYPE (_o2[0]) != TREE_TYPE (_o1[0]))
1544 : : {
1545 : 14867 : _r2 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (_o1[0]), _o2[0]);
1546 : : }
1547 : : else
1548 : : _r2 = _o2[0];
1549 : 25800 : _o1[1] = _r2;
1550 : : }
1551 : 25800 : _r1 = fold_build2_loc (loc, bitop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1552 : 25800 : res_op0 = _r1;
1553 : : }
1554 : 25800 : tree _r;
1555 : 25800 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1556 : 25800 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 219, __FILE__, __LINE__, true);
1557 : 25800 : return _r;
1558 : : }
1559 : 0 : next_after_fail374:;
1560 : : }
1561 : : return NULL_TREE;
1562 : : }
1563 : :
1564 : : tree
1565 : 0 : generic_simplify_115 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1566 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1567 : : const enum tree_code ARG_UNUSED (op))
1568 : : {
1569 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1570 : 0 : if (bitwise_equal_p (captures[4], captures[7])
1571 : : )
1572 : : {
1573 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail387;
1574 : 0 : {
1575 : 0 : tree res_op0;
1576 : 0 : {
1577 : 0 : tree _o1[2], _r1;
1578 : 0 : {
1579 : 0 : tree _o2[2], _r2;
1580 : 0 : _o2[0] = captures[5];
1581 : 0 : {
1582 : 0 : tree _o3[1], _r3;
1583 : 0 : _o3[0] = captures[6];
1584 : 0 : if (TREE_TYPE (_o3[0]) != TREE_TYPE (_o2[0]))
1585 : : {
1586 : 0 : _r3 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (_o2[0]), _o3[0]);
1587 : : }
1588 : : else
1589 : : _r3 = _o3[0];
1590 : 0 : _o2[1] = _r3;
1591 : : }
1592 : 0 : _r2 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
1593 : 0 : _o1[0] = _r2;
1594 : : }
1595 : 0 : {
1596 : 0 : tree _o2[1], _r2;
1597 : 0 : _o2[0] = captures[4];
1598 : 0 : if (TREE_TYPE (_o2[0]) != TREE_TYPE (_o1[0]))
1599 : : {
1600 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (_o1[0]), _o2[0]);
1601 : : }
1602 : : else
1603 : : _r2 = _o2[0];
1604 : 0 : _o1[1] = _r2;
1605 : : }
1606 : 0 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1607 : 0 : res_op0 = _r1;
1608 : : }
1609 : 0 : tree _r;
1610 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1611 : 0 : if (TREE_SIDE_EFFECTS (captures[7]))
1612 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[7]), _r);
1613 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 224, __FILE__, __LINE__, true);
1614 : 0 : return _r;
1615 : : }
1616 : 0 : next_after_fail387:;
1617 : : }
1618 : : return NULL_TREE;
1619 : : }
1620 : :
1621 : : tree
1622 : 56 : generic_simplify_124 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1623 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1624 : : const enum tree_code ARG_UNUSED (inner_op),
1625 : : const enum tree_code ARG_UNUSED (outer_op))
1626 : : {
1627 : 56 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1628 : 56 : {
1629 : 56 : bool fail = false;
1630 : 56 : wide_int zero_mask_not;
1631 : 56 : wide_int C0;
1632 : 56 : wide_int cst_emit;
1633 : 56 : if (TREE_CODE (captures[1]) == SSA_NAME)
1634 : 0 : zero_mask_not = get_nonzero_bits (captures[1]);
1635 : : else
1636 : : fail = true;
1637 : 56 : if (inner_op == BIT_XOR_EXPR)
1638 : : {
1639 : 33 : C0 = wi::bit_and_not (wi::to_wide (captures[2]), wi::to_wide (captures[3]));
1640 : 33 : cst_emit = C0 | wi::to_wide (captures[3]);
1641 : : }
1642 : : else
1643 : : {
1644 : 23 : C0 = wi::to_wide (captures[2]);
1645 : 23 : cst_emit = C0 ^ wi::to_wide (captures[3]);
1646 : : }
1647 : 56 : if (!fail && (C0 & zero_mask_not) == 0
1648 : : )
1649 : : {
1650 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail401;
1651 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail401;
1652 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail401;
1653 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail401;
1654 : 0 : {
1655 : 0 : tree res_op0;
1656 : 0 : res_op0 = captures[1];
1657 : 0 : tree res_op1;
1658 : 0 : res_op1 = wide_int_to_tree (type, cst_emit);
1659 : 0 : tree _r;
1660 : 0 : _r = fold_build2_loc (loc, outer_op, type, res_op0, res_op1);
1661 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 240, __FILE__, __LINE__, true);
1662 : 0 : return _r;
1663 : : }
1664 : 56 : next_after_fail401:;
1665 : : }
1666 : : else
1667 : : {
1668 : 56 : if (!fail && (wi::to_wide (captures[3]) & zero_mask_not) == 0
1669 : : )
1670 : : {
1671 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail402;
1672 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail402;
1673 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail402;
1674 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail402;
1675 : 0 : {
1676 : 0 : tree res_op0;
1677 : 0 : res_op0 = captures[1];
1678 : 0 : tree res_op1;
1679 : 0 : res_op1 = wide_int_to_tree (type, cst_emit);
1680 : 0 : tree _r;
1681 : 0 : _r = fold_build2_loc (loc, inner_op, type, res_op0, res_op1);
1682 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 241, __FILE__, __LINE__, true);
1683 : 0 : return _r;
1684 : : }
1685 : 56 : next_after_fail402:;
1686 : : }
1687 : : }
1688 : 56 : }
1689 : 56 : return NULL_TREE;
1690 : : }
1691 : :
1692 : : tree
1693 : 4 : generic_simplify_139 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1694 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1695 : : {
1696 : 4 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1697 : 4 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail448;
1698 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail448;
1699 : 4 : {
1700 : 4 : tree _r;
1701 : 4 : _r = constant_boolean_node (true, type);
1702 : 4 : if (TREE_SIDE_EFFECTS (captures[1]))
1703 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1704 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 261, __FILE__, __LINE__, true);
1705 : : return _r;
1706 : : }
1707 : : next_after_fail448:;
1708 : : return NULL_TREE;
1709 : : }
1710 : :
1711 : : tree
1712 : 4 : generic_simplify_141 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1713 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1714 : : {
1715 : 4 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1716 : 4 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail451;
1717 : 4 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail451;
1718 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail451;
1719 : 4 : {
1720 : 4 : tree _r;
1721 : 4 : _r = captures[0];
1722 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 264, __FILE__, __LINE__, true);
1723 : : return _r;
1724 : : }
1725 : : next_after_fail451:;
1726 : : return NULL_TREE;
1727 : : }
1728 : :
1729 : : tree
1730 : 0 : generic_simplify_144 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1731 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1732 : : const enum tree_code ARG_UNUSED (op))
1733 : : {
1734 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1735 : 0 : if (INTEGRAL_TYPE_P (type)
1736 : 0 : && tree_int_cst_sgn (captures[5]) > 0
1737 : 0 : && (tree_nonzero_bits (captures[0]) & tree_nonzero_bits (captures[4])) == 0
1738 : : )
1739 : : {
1740 : 0 : {
1741 : 0 : tree t = type;
1742 : 0 : if (!TYPE_OVERFLOW_WRAPS (t))
1743 : 0 : t = unsigned_type_for (t);
1744 : 0 : wide_int wone = wi::one (TYPE_PRECISION (type));
1745 : 0 : wide_int c = wi::add (wi::to_wide (captures[3]),
1746 : 0 : wi::lshift (wone, wi::to_wide (captures[5])));
1747 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail454;
1748 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail454;
1749 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail454;
1750 : 0 : {
1751 : 0 : tree res_op0;
1752 : 0 : {
1753 : 0 : tree _o1[2], _r1;
1754 : 0 : {
1755 : 0 : tree _o2[1], _r2;
1756 : 0 : _o2[0] = captures[2];
1757 : 0 : if (TREE_TYPE (_o2[0]) != t)
1758 : : {
1759 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, t, _o2[0]);
1760 : : }
1761 : : else
1762 : : _r2 = _o2[0];
1763 : 0 : _o1[0] = _r2;
1764 : : }
1765 : 0 : _o1[1] = wide_int_to_tree (t, c);
1766 : 0 : _r1 = fold_build2_loc (loc, MULT_EXPR, t, _o1[0], _o1[1]);
1767 : 0 : res_op0 = _r1;
1768 : : }
1769 : 0 : tree _r;
1770 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1771 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 228, __FILE__, __LINE__, true);
1772 : 0 : return _r;
1773 : : }
1774 : 0 : next_after_fail454:;
1775 : 0 : }
1776 : : }
1777 : : return NULL_TREE;
1778 : : }
1779 : :
1780 : : tree
1781 : 0 : generic_simplify_148 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1782 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1783 : : {
1784 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1785 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail458;
1786 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail458;
1787 : 0 : {
1788 : 0 : tree _r;
1789 : 0 : _r = captures[1];
1790 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 267, __FILE__, __LINE__, true);
1791 : : return _r;
1792 : : }
1793 : : next_after_fail458:;
1794 : : return NULL_TREE;
1795 : : }
1796 : :
1797 : : tree
1798 : 46 : generic_simplify_150 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1799 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1800 : : const enum tree_code ARG_UNUSED (logic),
1801 : : const enum tree_code ARG_UNUSED (op),
1802 : : const enum tree_code ARG_UNUSED (ext))
1803 : : {
1804 : 46 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1805 : 92 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
1806 : 92 : && TREE_CODE (captures[1]) != INTEGER_CST
1807 : : )
1808 : : {
1809 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail460;
1810 : 0 : {
1811 : 0 : tree res_op0;
1812 : 0 : res_op0 = captures[1];
1813 : 0 : tree res_op1;
1814 : 0 : {
1815 : 0 : tree _o1[2], _r1;
1816 : 0 : _o1[0] = captures[2];
1817 : 0 : _o1[1] = captures[4];
1818 : 0 : _r1 = fold_build2_loc (loc, ext, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1819 : 0 : res_op1 = _r1;
1820 : : }
1821 : 0 : tree _r;
1822 : 0 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
1823 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 268, __FILE__, __LINE__, true);
1824 : 0 : return _r;
1825 : : }
1826 : 0 : next_after_fail460:;
1827 : : }
1828 : : return NULL_TREE;
1829 : : }
1830 : :
1831 : : tree
1832 : 1 : generic_simplify_157 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1833 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1834 : : {
1835 : 1 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1836 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail467;
1837 : 1 : {
1838 : 1 : tree res_op0;
1839 : 1 : res_op0 = captures[1];
1840 : 1 : tree res_op1;
1841 : 1 : {
1842 : 1 : tree _o1[1], _r1;
1843 : 1 : _o1[0] = captures[2];
1844 : 1 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
1845 : 1 : res_op1 = _r1;
1846 : : }
1847 : 1 : tree _r;
1848 : 1 : _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
1849 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 275, __FILE__, __LINE__, true);
1850 : : return _r;
1851 : : }
1852 : 0 : next_after_fail467:;
1853 : 0 : return NULL_TREE;
1854 : : }
1855 : :
1856 : : tree
1857 : 11 : generic_simplify_162 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1858 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1859 : : {
1860 : 11 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1861 : 11 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail472;
1862 : 11 : {
1863 : 11 : tree res_op0;
1864 : 11 : res_op0 = captures[0];
1865 : 11 : tree _r;
1866 : 11 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1867 : 11 : if (TREE_SIDE_EFFECTS (captures[2]))
1868 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1869 : 11 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 280, __FILE__, __LINE__, true);
1870 : : return _r;
1871 : : }
1872 : 0 : next_after_fail472:;
1873 : 0 : return NULL_TREE;
1874 : : }
1875 : :
1876 : : tree
1877 : 0 : generic_simplify_167 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1878 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1879 : : {
1880 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1881 : 0 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[1]))
1882 : 0 : && tree_nop_conversion_p (type, TREE_TYPE (captures[2]))
1883 : : )
1884 : : {
1885 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail477;
1886 : 0 : {
1887 : 0 : tree res_op0;
1888 : 0 : {
1889 : 0 : tree _o1[1], _r1;
1890 : 0 : _o1[0] = captures[1];
1891 : 0 : if (TREE_TYPE (_o1[0]) != type)
1892 : : {
1893 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1894 : : }
1895 : : else
1896 : : _r1 = _o1[0];
1897 : 0 : res_op0 = _r1;
1898 : : }
1899 : 0 : tree res_op1;
1900 : 0 : {
1901 : 0 : tree _o1[1], _r1;
1902 : 0 : _o1[0] = captures[2];
1903 : 0 : if (TREE_TYPE (_o1[0]) != type)
1904 : : {
1905 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1906 : : }
1907 : : else
1908 : : _r1 = _o1[0];
1909 : 0 : res_op1 = _r1;
1910 : : }
1911 : 0 : tree _r;
1912 : 0 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
1913 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
1914 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1915 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 285, __FILE__, __LINE__, true);
1916 : 0 : return _r;
1917 : : }
1918 : 0 : next_after_fail477:;
1919 : : }
1920 : : return NULL_TREE;
1921 : : }
1922 : :
1923 : : tree
1924 : 0 : generic_simplify_177 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1925 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1926 : : const combined_fn ARG_UNUSED (COPYSIGN_ALL))
1927 : : {
1928 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1929 : 0 : if (!tree_expr_maybe_nan_p (captures[0]) && !HONOR_SIGNED_ZEROS (type)
1930 : : )
1931 : : {
1932 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail489;
1933 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail489;
1934 : 0 : {
1935 : 0 : tree res_op0;
1936 : 0 : {
1937 : 0 : tree _o1[1], _r1;
1938 : 0 : _o1[0] = captures[0];
1939 : 0 : _r1 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
1940 : 0 : res_op0 = _r1;
1941 : : }
1942 : 0 : tree _r;
1943 : 0 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
1944 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 294, __FILE__, __LINE__, true);
1945 : 0 : return _r;
1946 : : }
1947 : : next_after_fail489:;
1948 : : }
1949 : : return NULL_TREE;
1950 : : }
1951 : :
1952 : : tree
1953 : 1206 : generic_simplify_186 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1954 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1955 : : const enum tree_code ARG_UNUSED (cmp))
1956 : : {
1957 : 1206 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1958 : 1206 : if (!canonicalize_math_p ()
1959 : : )
1960 : : {
1961 : 0 : if (INTEGRAL_TYPE_P (type)
1962 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
1963 : : )
1964 : : {
1965 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail500;
1966 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail500;
1967 : 0 : {
1968 : 0 : tree res_op0;
1969 : 0 : res_op0 = captures[0];
1970 : 0 : tree res_op1;
1971 : 0 : res_op1 = captures[3];
1972 : 0 : tree res_op2;
1973 : 0 : res_op2 = build_zero_cst (type);
1974 : 0 : tree _r;
1975 : 0 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
1976 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 302, __FILE__, __LINE__, true);
1977 : 0 : return _r;
1978 : : }
1979 : : next_after_fail500:;
1980 : : }
1981 : : }
1982 : : return NULL_TREE;
1983 : : }
1984 : :
1985 : : tree
1986 : 118556 : generic_simplify_192 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1987 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1988 : : {
1989 : 118556 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1990 : 118556 : if (TREE_CODE (captures[3]) != INTEGER_CST
1991 : : && single_use (captures[0])
1992 : 118556 : && !integer_zerop (captures[2]) && !integer_minus_onep (captures[2])
1993 : : )
1994 : : {
1995 : 118526 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail507;
1996 : 118526 : {
1997 : 118526 : tree res_op0;
1998 : 118526 : {
1999 : 118526 : tree _o1[2], _r1;
2000 : 118526 : _o1[0] = captures[1];
2001 : 118526 : _o1[1] = captures[3];
2002 : 118526 : _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2003 : 118526 : res_op0 = _r1;
2004 : : }
2005 : 118526 : tree res_op1;
2006 : 118526 : res_op1 = captures[2];
2007 : 118526 : tree _r;
2008 : 118526 : _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
2009 : 118526 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 308, __FILE__, __LINE__, true);
2010 : 118526 : return _r;
2011 : : }
2012 : 0 : next_after_fail507:;
2013 : : }
2014 : : return NULL_TREE;
2015 : : }
2016 : :
2017 : : tree
2018 : 171 : generic_simplify_200 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2019 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2020 : : const enum tree_code ARG_UNUSED (cmp))
2021 : : {
2022 : 171 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2023 : 342 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
2024 : 338 : && !TYPE_OVERFLOW_WRAPS (TREE_TYPE(captures[0]))
2025 : : )
2026 : : {
2027 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail515;
2028 : 3 : {
2029 : 3 : tree res_op0;
2030 : 3 : res_op0 = captures[0];
2031 : 3 : tree res_op1;
2032 : 3 : res_op1 = build_zero_cst (TREE_TYPE(captures[0]));
2033 : 3 : tree _r;
2034 : 3 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2035 : 3 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 316, __FILE__, __LINE__, true);
2036 : 3 : return _r;
2037 : : }
2038 : 0 : next_after_fail515:;
2039 : : }
2040 : : return NULL_TREE;
2041 : : }
2042 : :
2043 : : tree
2044 : 2501 : generic_simplify_207 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2045 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2046 : : const enum tree_code ARG_UNUSED (cmp))
2047 : : {
2048 : 2501 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2049 : 5002 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
2050 : 3220 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
2051 : 4132 : && tree_expr_nonzero_p (captures[1])
2052 : : )
2053 : : {
2054 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail522;
2055 : 12 : {
2056 : 12 : tree res_op0;
2057 : 12 : res_op0 = captures[0];
2058 : 12 : tree res_op1;
2059 : 12 : res_op1 = captures[2];
2060 : 12 : tree _r;
2061 : 12 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2062 : 12 : if (TREE_SIDE_EFFECTS (captures[1]))
2063 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2064 : 12 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 323, __FILE__, __LINE__, true);
2065 : 12 : return _r;
2066 : : }
2067 : 0 : next_after_fail522:;
2068 : : }
2069 : : return NULL_TREE;
2070 : : }
2071 : :
2072 : : tree
2073 : 43 : generic_simplify_215 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2074 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2075 : : const enum tree_code ARG_UNUSED (op))
2076 : : {
2077 : 43 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2078 : 43 : if (!TYPE_OVERFLOW_SANITIZED (TREE_TYPE (captures[2]))
2079 : : )
2080 : : {
2081 : 43 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail546;
2082 : 43 : {
2083 : 43 : tree res_op0;
2084 : 43 : res_op0 = captures[1];
2085 : 43 : tree res_op1;
2086 : 43 : res_op1 = captures[3];
2087 : 43 : tree _r;
2088 : 43 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
2089 : 43 : if (TREE_SIDE_EFFECTS (captures[2]))
2090 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2091 : 43 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 346, __FILE__, __LINE__, true);
2092 : 43 : return _r;
2093 : : }
2094 : 0 : next_after_fail546:;
2095 : : }
2096 : : return NULL_TREE;
2097 : : }
2098 : :
2099 : : tree
2100 : 0 : generic_simplify_219 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2101 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2102 : : const enum tree_code ARG_UNUSED (neeq))
2103 : : {
2104 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2105 : 0 : {
2106 : 0 : poly_int64 diff; tree inner_type = TREE_TYPE (captures[1]);
2107 : 0 : if (ptr_difference_const (captures[0], captures[2], &diff)
2108 : : )
2109 : : {
2110 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail550;
2111 : 0 : {
2112 : 0 : tree res_op0;
2113 : 0 : {
2114 : 0 : tree _o1[2], _r1;
2115 : 0 : _o1[0] = build_int_cst_type (inner_type, diff);
2116 : 0 : _o1[1] = captures[1];
2117 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2118 : 0 : res_op0 = _r1;
2119 : : }
2120 : 0 : tree res_op1;
2121 : 0 : res_op1 = captures[3];
2122 : 0 : tree _r;
2123 : 0 : _r = fold_build2_loc (loc, neeq, type, res_op0, res_op1);
2124 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
2125 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2126 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
2127 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2128 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 349, __FILE__, __LINE__, true);
2129 : 0 : return _r;
2130 : : }
2131 : 0 : next_after_fail550:;
2132 : : }
2133 : : }
2134 : 0 : return NULL_TREE;
2135 : : }
2136 : :
2137 : : tree
2138 : 0 : generic_simplify_230 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2139 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2140 : : const enum tree_code ARG_UNUSED (cmp),
2141 : : const enum tree_code ARG_UNUSED (icmp))
2142 : : {
2143 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2144 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
2145 : : )
2146 : : {
2147 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail565;
2148 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail565;
2149 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail565;
2150 : 0 : {
2151 : 0 : tree res_op0;
2152 : 0 : res_op0 = captures[0];
2153 : 0 : tree res_op1;
2154 : 0 : res_op1 = wide_int_to_tree (TREE_TYPE (captures[0]),
2155 : 0 : wi::exact_log2 (wi::to_wide (captures[1])));
2156 : 0 : tree _r;
2157 : 0 : _r = fold_build2_loc (loc, icmp, type, res_op0, res_op1);
2158 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 364, __FILE__, __LINE__, true);
2159 : 0 : return _r;
2160 : : }
2161 : : next_after_fail565:;
2162 : : }
2163 : : return NULL_TREE;
2164 : : }
2165 : :
2166 : : tree
2167 : 659 : generic_simplify_232 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2168 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2169 : : const enum tree_code ARG_UNUSED (cmp))
2170 : : {
2171 : 659 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2172 : 659 : if (tree_fits_shwi_p (captures[3])
2173 : 659 : && tree_to_shwi (captures[3]) > 0
2174 : 1304 : && tree_to_shwi (captures[3]) < TYPE_PRECISION (TREE_TYPE (captures[2]))
2175 : : )
2176 : : {
2177 : 645 : {
2178 : 645 : tree t0 = TREE_TYPE (captures[2]);
2179 : 645 : unsigned int prec = TYPE_PRECISION (t0);
2180 : 645 : wide_int c1 = wi::to_wide (captures[3]);
2181 : 645 : wide_int c2 = wi::to_wide (captures[4]);
2182 : 645 : wide_int c3 = wi::to_wide (captures[5]);
2183 : 645 : wide_int sb = wi::set_bit_in_zero (prec - 1, prec);
2184 : 645 : if ((c2 & c3) != c3
2185 : : )
2186 : : {
2187 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail568;
2188 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail568;
2189 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail568;
2190 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail568;
2191 : 0 : {
2192 : 0 : tree _r;
2193 : 0 : _r = constant_boolean_node (cmp == NE_EXPR, type);
2194 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
2195 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2196 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 367, __FILE__, __LINE__, true);
2197 : 0 : return _r;
2198 : : }
2199 : 0 : next_after_fail568:;
2200 : : }
2201 : : else
2202 : : {
2203 : 645 : if (TYPE_UNSIGNED (t0)
2204 : : )
2205 : : {
2206 : 535 : if ((c3 & wi::arshift (sb, c1 - 1)) != 0
2207 : : )
2208 : : {
2209 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail569;
2210 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail569;
2211 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail569;
2212 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail569;
2213 : 0 : {
2214 : 0 : tree _r;
2215 : 0 : _r = constant_boolean_node (cmp == NE_EXPR, type);
2216 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
2217 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2218 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 368, __FILE__, __LINE__, true);
2219 : 0 : return _r;
2220 : : }
2221 : 0 : next_after_fail569:;
2222 : : }
2223 : : else
2224 : : {
2225 : 535 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail570;
2226 : 535 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail570;
2227 : 535 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail570;
2228 : 535 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail570;
2229 : 535 : {
2230 : 535 : tree res_op0;
2231 : 535 : {
2232 : 535 : tree _o1[2], _r1;
2233 : 535 : _o1[0] = captures[2];
2234 : 535 : _o1[1] = wide_int_to_tree (t0, c2 << c1);
2235 : 535 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2236 : 535 : res_op0 = _r1;
2237 : : }
2238 : 535 : tree res_op1;
2239 : 535 : res_op1 = wide_int_to_tree (t0, c3 << c1);
2240 : 535 : tree _r;
2241 : 535 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2242 : 535 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 369, __FILE__, __LINE__, true);
2243 : 535 : return _r;
2244 : : }
2245 : 0 : next_after_fail570:;
2246 : : }
2247 : : }
2248 : : else
2249 : : {
2250 : 110 : {
2251 : 110 : wide_int smask = wi::arshift (sb, c1);
2252 : 110 : if ((c2 & smask) == 0
2253 : : )
2254 : : {
2255 : 108 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail571;
2256 : 108 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail571;
2257 : 108 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail571;
2258 : 108 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail571;
2259 : 108 : {
2260 : 108 : tree res_op0;
2261 : 108 : {
2262 : 108 : tree _o1[2], _r1;
2263 : 108 : _o1[0] = captures[2];
2264 : 108 : _o1[1] = wide_int_to_tree (t0, c2 << c1);
2265 : 108 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2266 : 108 : res_op0 = _r1;
2267 : : }
2268 : 108 : tree res_op1;
2269 : 108 : res_op1 = wide_int_to_tree (t0, c3 << c1);
2270 : 108 : tree _r;
2271 : 108 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2272 : 108 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 370, __FILE__, __LINE__, true);
2273 : 108 : return _r;
2274 : : }
2275 : 0 : next_after_fail571:;
2276 : : }
2277 : : else
2278 : : {
2279 : 2 : if ((c3 & smask) == 0
2280 : : )
2281 : : {
2282 : 2 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail572;
2283 : 2 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail572;
2284 : 2 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail572;
2285 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail572;
2286 : 2 : {
2287 : 2 : tree res_op0;
2288 : 2 : {
2289 : 2 : tree _o1[2], _r1;
2290 : 2 : _o1[0] = captures[2];
2291 : 2 : _o1[1] = wide_int_to_tree (t0, (c2 << c1) | sb);
2292 : 2 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2293 : 2 : res_op0 = _r1;
2294 : : }
2295 : 2 : tree res_op1;
2296 : 2 : res_op1 = wide_int_to_tree (t0, c3 << c1);
2297 : 2 : tree _r;
2298 : 2 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2299 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 371, __FILE__, __LINE__, true);
2300 : 2 : return _r;
2301 : : }
2302 : 0 : next_after_fail572:;
2303 : : }
2304 : : else
2305 : : {
2306 : 0 : if ((c2 & smask) != (c3 & smask)
2307 : : )
2308 : : {
2309 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail573;
2310 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail573;
2311 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail573;
2312 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail573;
2313 : 0 : {
2314 : 0 : tree _r;
2315 : 0 : _r = constant_boolean_node (cmp == NE_EXPR, type);
2316 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
2317 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2318 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 372, __FILE__, __LINE__, true);
2319 : 0 : return _r;
2320 : : }
2321 : 0 : next_after_fail573:;
2322 : : }
2323 : : else
2324 : : {
2325 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail574;
2326 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail574;
2327 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail574;
2328 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail574;
2329 : 0 : {
2330 : 0 : tree res_op0;
2331 : 0 : {
2332 : 0 : tree _o1[2], _r1;
2333 : 0 : _o1[0] = captures[2];
2334 : 0 : _o1[1] = wide_int_to_tree (t0, (c2 << c1) | sb);
2335 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2336 : 0 : res_op0 = _r1;
2337 : : }
2338 : 0 : tree res_op1;
2339 : 0 : res_op1 = wide_int_to_tree (t0, (c3 << c1) | sb);
2340 : 0 : tree _r;
2341 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2342 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 373, __FILE__, __LINE__, true);
2343 : 0 : return _r;
2344 : : }
2345 : 0 : next_after_fail574:;
2346 : : }
2347 : : }
2348 : : }
2349 : 110 : }
2350 : : }
2351 : : }
2352 : 645 : }
2353 : : }
2354 : : return NULL_TREE;
2355 : : }
2356 : :
2357 : : tree
2358 : 696 : generic_simplify_263 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2359 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2360 : : const enum tree_code ARG_UNUSED (cmp))
2361 : : {
2362 : 696 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2363 : 696 : if (tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
2364 : 1392 : && wi::bit_and_not (wi::to_wide (captures[2]), wi::to_wide (captures[3])) != 0
2365 : : )
2366 : : {
2367 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail665;
2368 : 0 : {
2369 : 0 : tree _r;
2370 : 0 : _r = constant_boolean_node (cmp == NE_EXPR, type);
2371 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2372 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2373 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
2374 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2375 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
2376 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
2377 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 455, __FILE__, __LINE__, true);
2378 : 0 : return _r;
2379 : : }
2380 : 0 : next_after_fail665:;
2381 : : }
2382 : : return NULL_TREE;
2383 : : }
2384 : :
2385 : : tree
2386 : 62 : generic_simplify_266 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2387 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2388 : : const enum tree_code ARG_UNUSED (cmp))
2389 : : {
2390 : 62 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2391 : 62 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail671;
2392 : 62 : {
2393 : 62 : tree res_op0;
2394 : 62 : res_op0 = captures[1];
2395 : 62 : tree res_op1;
2396 : 62 : res_op1 = build_zero_cst (TREE_TYPE (captures[1]));
2397 : 62 : tree _r;
2398 : 62 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2399 : 62 : if (TREE_SIDE_EFFECTS (captures[0]))
2400 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2401 : 62 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 461, __FILE__, __LINE__, true);
2402 : : return _r;
2403 : : }
2404 : 0 : next_after_fail671:;
2405 : 0 : return NULL_TREE;
2406 : : }
2407 : :
2408 : : tree
2409 : 445 : generic_simplify_269 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2410 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2411 : : const enum tree_code ARG_UNUSED (cmp))
2412 : : {
2413 : 445 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2414 : 445 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail674;
2415 : 445 : {
2416 : 445 : tree res_op0;
2417 : 445 : {
2418 : 445 : tree _o1[2], _r1;
2419 : 445 : _o1[0] = captures[0];
2420 : 445 : {
2421 : 445 : tree _o2[1], _r2;
2422 : 445 : _o2[0] = captures[1];
2423 : 445 : _r2 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
2424 : 445 : if (EXPR_P (_r2))
2425 : 437 : goto next_after_fail674;
2426 : 8 : _o1[1] = _r2;
2427 : : }
2428 : 8 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2429 : 8 : res_op0 = _r1;
2430 : : }
2431 : 8 : tree res_op1;
2432 : 8 : res_op1 = build_zero_cst (TREE_TYPE (captures[0]));
2433 : 8 : tree _r;
2434 : 8 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2435 : 8 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 464, __FILE__, __LINE__, true);
2436 : : return _r;
2437 : : }
2438 : : next_after_fail674:;
2439 : : return NULL_TREE;
2440 : : }
2441 : :
2442 : : tree
2443 : 115586 : generic_simplify_273 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2444 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2445 : : const enum tree_code ARG_UNUSED (cmp),
2446 : : const enum tree_code ARG_UNUSED (icmp))
2447 : : {
2448 : 115586 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2449 : 115586 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail678;
2450 : 115564 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail678;
2451 : 115564 : {
2452 : 115564 : tree res_op0;
2453 : 115564 : res_op0 = captures[0];
2454 : 115564 : tree res_op1;
2455 : 115564 : res_op1 = build_zero_cst (TREE_TYPE (captures[1]));
2456 : 115564 : tree _r;
2457 : 115564 : _r = fold_build2_loc (loc, icmp, type, res_op0, res_op1);
2458 : 115564 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 468, __FILE__, __LINE__, true);
2459 : : return _r;
2460 : : }
2461 : : next_after_fail678:;
2462 : : return NULL_TREE;
2463 : : }
2464 : :
2465 : : tree
2466 : 4 : generic_simplify_277 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2467 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2468 : : const enum tree_code ARG_UNUSED (cmp),
2469 : : const enum tree_code ARG_UNUSED (ncmp))
2470 : : {
2471 : 4 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2472 : 8 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
2473 : 4 : && !TYPE_UNSIGNED (TREE_TYPE (captures[0]))
2474 : 8 : && types_match (captures[0], captures[2])
2475 : : )
2476 : : {
2477 : 4 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail682;
2478 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail682;
2479 : 4 : {
2480 : 4 : tree res_op0;
2481 : 4 : {
2482 : 4 : tree _o1[2], _r1;
2483 : 4 : _o1[0] = captures[0];
2484 : 4 : _o1[1] = captures[2];
2485 : 4 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2486 : 4 : res_op0 = _r1;
2487 : : }
2488 : 4 : tree res_op1;
2489 : 4 : res_op1 = captures[1];
2490 : 4 : tree _r;
2491 : 4 : _r = fold_build2_loc (loc, ncmp, type, res_op0, res_op1);
2492 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 471, __FILE__, __LINE__, true);
2493 : 4 : return _r;
2494 : : }
2495 : : next_after_fail682:;
2496 : : }
2497 : : return NULL_TREE;
2498 : : }
2499 : :
2500 : : tree
2501 : 940994 : generic_simplify_282 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2502 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2503 : : const enum tree_code ARG_UNUSED (cmp))
2504 : : {
2505 : 940994 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2506 : 1475425 : if (((POINTER_TYPE_P (TREE_TYPE (captures[0]))
2507 : 408398 : && !FUNC_OR_METHOD_TYPE_P (TREE_TYPE (TREE_TYPE (captures[0])))
2508 : 368457 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
2509 : 7890 : && !(
2510 : : 1
2511 : 7862 : && TREE_CODE (TREE_TYPE (captures[0])) == REFERENCE_TYPE
2512 : 28 : && (flag_sanitize & (SANITIZE_NULL | SANITIZE_ALIGNMENT))))
2513 : 933144 : || (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
2514 : 532467 : && POINTER_TYPE_P (TREE_TYPE (captures[1]))
2515 : 1554 : && !FUNC_OR_METHOD_TYPE_P (TREE_TYPE (TREE_TYPE (captures[1])))))
2516 : 949908 : && TYPE_PRECISION (TREE_TYPE (captures[0])) == TYPE_PRECISION (TREE_TYPE (captures[1]))
2517 : : )
2518 : : {
2519 : 8668 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail701;
2520 : 8668 : {
2521 : 8668 : tree res_op0;
2522 : 8668 : res_op0 = captures[0];
2523 : 8668 : tree res_op1;
2524 : 8668 : {
2525 : 8668 : tree _o1[1], _r1;
2526 : 8668 : _o1[0] = captures[1];
2527 : 8668 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
2528 : : {
2529 : 8668 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
2530 : : }
2531 : : else
2532 : : _r1 = _o1[0];
2533 : 8668 : res_op1 = _r1;
2534 : : }
2535 : 8668 : tree _r;
2536 : 8668 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2537 : 8668 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 481, __FILE__, __LINE__, true);
2538 : 8668 : return _r;
2539 : : }
2540 : 0 : next_after_fail701:;
2541 : : }
2542 : : return NULL_TREE;
2543 : : }
2544 : :
2545 : : tree
2546 : 1058472 : generic_simplify_285 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2547 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2548 : : const enum tree_code ARG_UNUSED (op),
2549 : : const enum tree_code ARG_UNUSED (rop),
2550 : : const enum tree_code ARG_UNUSED (cmp))
2551 : : {
2552 : 1058472 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2553 : 2116944 : if (!TREE_OVERFLOW (captures[2]) && !TREE_OVERFLOW (captures[3])
2554 : 1058472 : && !TYPE_OVERFLOW_SANITIZED (TREE_TYPE (captures[1]))
2555 : 1058158 : && !TYPE_OVERFLOW_TRAPS (TREE_TYPE (captures[1]))
2556 : 2116486 : && !TYPE_SATURATING (TREE_TYPE (captures[1]))
2557 : : )
2558 : : {
2559 : 1058014 : {
2560 : 1058014 : tree res = int_const_binop (rop, captures[3], captures[2]);
2561 : 1058014 : if (TREE_OVERFLOW (res)
2562 : 1058014 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[1]))
2563 : : )
2564 : : {
2565 : 7782 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail708;
2566 : 7782 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail708;
2567 : 7782 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail708;
2568 : 7782 : {
2569 : 7782 : tree _r;
2570 : 7782 : _r = constant_boolean_node (cmp == NE_EXPR, type);
2571 : 7782 : if (TREE_SIDE_EFFECTS (captures[1]))
2572 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2573 : 7782 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 488, __FILE__, __LINE__, true);
2574 : 7782 : return _r;
2575 : : }
2576 : : next_after_fail708:;
2577 : : }
2578 : : else
2579 : : {
2580 : 1050232 : if (single_use (captures[0])
2581 : : )
2582 : : {
2583 : 1050232 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail709;
2584 : 1050232 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail709;
2585 : 1050232 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail709;
2586 : 1050232 : {
2587 : 1050232 : tree res_op0;
2588 : 1050232 : res_op0 = captures[1];
2589 : 1050232 : tree res_op1;
2590 : 1050232 : res_op1 = TREE_OVERFLOW (res)
2591 : 1050232 : ? drop_tree_overflow (res) : res;
2592 : 1050232 : tree _r;
2593 : 1050232 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2594 : 1050232 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 489, __FILE__, __LINE__, true);
2595 : 1050232 : return _r;
2596 : : }
2597 : : next_after_fail709:;
2598 : : }
2599 : : }
2600 : : }
2601 : : }
2602 : : return NULL_TREE;
2603 : : }
2604 : :
2605 : : tree
2606 : 0 : generic_simplify_290 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2607 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2608 : : const enum tree_code ARG_UNUSED (op))
2609 : : {
2610 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2611 : 0 : {
2612 : 0 : HOST_WIDE_INT zero_val = tree_to_shwi (captures[2]);
2613 : 0 : tree type0 = TREE_TYPE (captures[1]);
2614 : 0 : int prec = TYPE_PRECISION (type0);
2615 : 0 : if (prec <= MAX_FIXED_MODE_SIZE
2616 : : )
2617 : : {
2618 : 0 : if (tree_int_cst_sgn (captures[3]) < 0 || wi::to_widest (captures[3]) >= prec
2619 : : )
2620 : : {
2621 : 0 : if (zero_val != wi::to_widest (captures[3])
2622 : : )
2623 : : {
2624 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail725;
2625 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail725;
2626 : 0 : {
2627 : 0 : tree _r;
2628 : 0 : _r = constant_boolean_node (op == EQ_EXPR ? false : true, type);
2629 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2630 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2631 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
2632 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
2633 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 505, __FILE__, __LINE__, true);
2634 : 0 : return _r;
2635 : : }
2636 : 0 : next_after_fail725:;
2637 : : }
2638 : : }
2639 : : else
2640 : : {
2641 : 0 : if (zero_val < 0 || zero_val >= prec
2642 : : )
2643 : : {
2644 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail726;
2645 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail726;
2646 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail726;
2647 : 0 : {
2648 : 0 : tree res_op0;
2649 : 0 : {
2650 : 0 : tree _o1[2], _r1;
2651 : 0 : _o1[0] = captures[1];
2652 : 0 : _o1[1] = wide_int_to_tree (type0,
2653 : 0 : wi::mask (tree_to_uhwi (captures[3]) + 1,
2654 : : false, prec));
2655 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2656 : 0 : res_op0 = _r1;
2657 : : }
2658 : 0 : tree res_op1;
2659 : 0 : res_op1 = wide_int_to_tree (type0,
2660 : 0 : wi::shifted_mask (tree_to_uhwi (captures[3]), 1,
2661 : : false, prec));
2662 : 0 : tree _r;
2663 : 0 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
2664 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 506, __FILE__, __LINE__, true);
2665 : 0 : return _r;
2666 : : }
2667 : 0 : next_after_fail726:;
2668 : : }
2669 : : }
2670 : : }
2671 : : }
2672 : 0 : return NULL_TREE;
2673 : : }
2674 : :
2675 : : tree
2676 : 54234 : generic_simplify_297 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2677 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2678 : : const enum tree_code ARG_UNUSED (cmp))
2679 : : {
2680 : 54234 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2681 : 54234 : if (cmp != NE_EXPR
2682 : 48757 : || ! FLOAT_TYPE_P (TREE_TYPE (captures[0]))
2683 : 66689 : || ! tree_expr_maybe_nan_p (captures[0])
2684 : : )
2685 : : {
2686 : 47593 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail736;
2687 : 47593 : {
2688 : 47593 : tree _r;
2689 : 47593 : _r = constant_boolean_node (false, type);
2690 : 47593 : if (TREE_SIDE_EFFECTS (captures[0]))
2691 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2692 : 47593 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 516, __FILE__, __LINE__, true);
2693 : 47593 : return _r;
2694 : : }
2695 : 0 : next_after_fail736:;
2696 : : }
2697 : : return NULL_TREE;
2698 : : }
2699 : :
2700 : : tree
2701 : 0 : generic_simplify_303 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2702 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2703 : : const combined_fn ARG_UNUSED (COPYSIGN_ALL))
2704 : : {
2705 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2706 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail742;
2707 : 0 : {
2708 : 0 : tree res_op0;
2709 : 0 : res_op0 = captures[0];
2710 : 0 : tree _r;
2711 : 0 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
2712 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2713 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2714 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 522, __FILE__, __LINE__, true);
2715 : : return _r;
2716 : : }
2717 : 0 : next_after_fail742:;
2718 : 0 : return NULL_TREE;
2719 : : }
2720 : :
2721 : : tree
2722 : 1 : generic_simplify_310 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2723 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2724 : : const enum tree_code ARG_UNUSED (div))
2725 : : {
2726 : 1 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2727 : 1 : if (INTEGRAL_TYPE_P (type)
2728 : 1 : && TYPE_OVERFLOW_UNDEFINED (type)
2729 : 1 : && !integer_zerop (captures[0])
2730 : 2 : && (!flag_non_call_exceptions || tree_expr_nonzero_p (captures[0]))
2731 : : )
2732 : : {
2733 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail751;
2734 : 1 : {
2735 : 1 : tree res_op0;
2736 : 1 : {
2737 : 1 : tree _o1[2], _r1;
2738 : 1 : _o1[0] = captures[0];
2739 : 1 : _o1[1] = build_zero_cst (type);
2740 : 1 : _r1 = fold_build2_loc (loc, LT_EXPR, boolean_type_node, _o1[0], _o1[1]);
2741 : 1 : res_op0 = _r1;
2742 : : }
2743 : 1 : tree res_op1;
2744 : 1 : res_op1 = build_minus_one_cst (type);
2745 : 1 : tree res_op2;
2746 : 1 : res_op2 = build_one_cst (type);
2747 : 1 : tree _r;
2748 : 1 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
2749 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 529, __FILE__, __LINE__, true);
2750 : 1 : return _r;
2751 : : }
2752 : 0 : next_after_fail751:;
2753 : : }
2754 : : return NULL_TREE;
2755 : : }
2756 : :
2757 : : tree
2758 : 2443891 : generic_simplify_317 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2759 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2760 : : const enum tree_code ARG_UNUSED (floor_divmod),
2761 : : const enum tree_code ARG_UNUSED (trunc_divmod))
2762 : : {
2763 : 2443891 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2764 : 0 : if ((INTEGRAL_TYPE_P (type) || VECTOR_INTEGER_TYPE_P (type))
2765 : 2443891 : && TYPE_UNSIGNED (type)
2766 : : )
2767 : : {
2768 : 2435088 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail759;
2769 : 2435088 : {
2770 : 2435088 : tree res_op0;
2771 : 2435088 : res_op0 = captures[0];
2772 : 2435088 : tree res_op1;
2773 : 2435088 : res_op1 = captures[1];
2774 : 2435088 : tree _r;
2775 : 2435088 : _r = fold_build2_loc (loc, trunc_divmod, type, res_op0, res_op1);
2776 : 2435088 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 537, __FILE__, __LINE__, true);
2777 : 2435088 : return _r;
2778 : : }
2779 : 0 : next_after_fail759:;
2780 : : }
2781 : : return NULL_TREE;
2782 : : }
2783 : :
2784 : : tree
2785 : 52 : generic_simplify_322 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2786 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2787 : : const enum tree_code ARG_UNUSED (mod))
2788 : : {
2789 : 52 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2790 : 52 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail764;
2791 : 52 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail764;
2792 : 52 : {
2793 : 52 : tree _r;
2794 : 52 : _r = captures[0];
2795 : 52 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 542, __FILE__, __LINE__, true);
2796 : : return _r;
2797 : : }
2798 : : next_after_fail764:;
2799 : : return NULL_TREE;
2800 : : }
2801 : :
2802 : : tree
2803 : 6 : generic_simplify_329 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2804 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2805 : : const combined_fn ARG_UNUSED (SIN),
2806 : : const combined_fn ARG_UNUSED (TAN),
2807 : : const combined_fn ARG_UNUSED (COS))
2808 : : {
2809 : 6 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2810 : 6 : if (flag_unsafe_math_optimizations && canonicalize_math_p ()
2811 : : )
2812 : : {
2813 : 6 : if (! HONOR_NANS (captures[1])
2814 : 6 : && ! HONOR_INFINITIES (captures[1])
2815 : : )
2816 : : {
2817 : 6 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail773;
2818 : 6 : {
2819 : 6 : tree res_op0;
2820 : 6 : res_op0 = captures[1];
2821 : 6 : tree _r;
2822 : 6 : _r = maybe_build_call_expr_loc (loc, COS, type, 1, res_op0);
2823 : 6 : if (!_r)
2824 : 0 : goto next_after_fail773;
2825 : 6 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 551, __FILE__, __LINE__, true);
2826 : 6 : return _r;
2827 : : }
2828 : : next_after_fail773:;
2829 : : }
2830 : : }
2831 : : return NULL_TREE;
2832 : : }
2833 : :
2834 : : tree
2835 : 127588 : generic_simplify_337 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2836 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
2837 : : const enum tree_code ARG_UNUSED (cmp))
2838 : : {
2839 : 127588 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2840 : 127588 : {
2841 : 127588 : tree from_type = TREE_TYPE (captures[0]);
2842 : 127588 : tree c1_type = TREE_TYPE (captures[1]), c2_type = TREE_TYPE (captures[2]);
2843 : 127588 : enum tree_code code = ERROR_MARK;
2844 : 127588 : if (integer_zerop (captures[1])
2845 : 49046 : && INTEGRAL_TYPE_P (from_type)
2846 : 48556 : && (cmp == GE_EXPR || cmp == LT_EXPR)
2847 : 15860 : && TYPE_UNSIGNED (from_type)
2848 : 2099 : && !TYPE_UNSIGNED (c1_type)
2849 : 2099 : && TYPE_PRECISION (from_type) == TYPE_PRECISION (c1_type)
2850 : 587 : && int_fits_type_p (captures[2], from_type)
2851 : 128175 : && (types_match (c2_type, from_type)
2852 : 0 : || (TYPE_PRECISION (c2_type) > TYPE_PRECISION (from_type)
2853 : 0 : && (TYPE_UNSIGNED (from_type)
2854 : 0 : || TYPE_SIGN (c2_type) == TYPE_SIGN (from_type)))))
2855 : : {
2856 : 587 : tree_code ncmp = cmp == GE_EXPR ? LE_EXPR : GT_EXPR;
2857 : 587 : widest_int c1 = wi::mask<widest_int>(TYPE_PRECISION (type) - 1, 0);
2858 : 587 : code = minmax_from_comparison (ncmp, captures[0], c1, wi::to_widest (captures[2]));
2859 : 587 : }
2860 : 587 : if (code == ERROR_MARK
2861 : 127583 : && INTEGRAL_TYPE_P (from_type)
2862 : 127093 : && int_fits_type_p (captures[2], from_type)
2863 : 127092 : && (types_match (c1_type, from_type)
2864 : 6260 : || (TYPE_PRECISION (c1_type) > TYPE_PRECISION (from_type)
2865 : 0 : && (TYPE_UNSIGNED (from_type)
2866 : 0 : || TYPE_SIGN (c1_type) == TYPE_SIGN (from_type))))
2867 : 121419 : && (types_match (c2_type, from_type)
2868 : 25808 : || (TYPE_PRECISION (c2_type) > TYPE_PRECISION (from_type)
2869 : 5603 : && (TYPE_UNSIGNED (from_type)
2870 : 698 : || TYPE_SIGN (c2_type) == TYPE_SIGN (from_type)))))
2871 : : {
2872 : 100017 : if (cmp != EQ_EXPR)
2873 : 100005 : code = minmax_from_comparison (cmp, captures[0], captures[1], captures[0], captures[2]);
2874 : 12 : else if (int_fits_type_p (captures[1], from_type))
2875 : : code = EQ_EXPR;
2876 : : }
2877 : 127576 : if (code == MAX_EXPR
2878 : : )
2879 : : {
2880 : 18757 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail781;
2881 : 18757 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail781;
2882 : 18757 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail781;
2883 : 18757 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail781;
2884 : 18757 : {
2885 : 18757 : tree res_op0;
2886 : 18757 : {
2887 : 18757 : tree _o1[2], _r1;
2888 : 18757 : _o1[0] = captures[0];
2889 : 18757 : {
2890 : 18757 : tree _o2[1], _r2;
2891 : 18757 : _o2[0] = captures[2];
2892 : 18757 : if (TREE_TYPE (_o2[0]) != TREE_TYPE (_o1[0]))
2893 : : {
2894 : 166 : _r2 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (_o1[0]), _o2[0]);
2895 : : }
2896 : : else
2897 : : _r2 = _o2[0];
2898 : 18757 : _o1[1] = _r2;
2899 : : }
2900 : 18757 : _r1 = fold_build2_loc (loc, MAX_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2901 : 18757 : res_op0 = _r1;
2902 : : }
2903 : 18757 : tree _r;
2904 : 18757 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
2905 : 18757 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 559, __FILE__, __LINE__, true);
2906 : 18757 : return _r;
2907 : : }
2908 : : next_after_fail781:;
2909 : : }
2910 : : else
2911 : : {
2912 : 108831 : if (code == MIN_EXPR
2913 : : )
2914 : : {
2915 : 247 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail782;
2916 : 247 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail782;
2917 : 247 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail782;
2918 : 247 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail782;
2919 : 247 : {
2920 : 247 : tree res_op0;
2921 : 247 : {
2922 : 247 : tree _o1[2], _r1;
2923 : 247 : _o1[0] = captures[0];
2924 : 247 : {
2925 : 247 : tree _o2[1], _r2;
2926 : 247 : _o2[0] = captures[2];
2927 : 247 : if (TREE_TYPE (_o2[0]) != TREE_TYPE (_o1[0]))
2928 : : {
2929 : 92 : _r2 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (_o1[0]), _o2[0]);
2930 : : }
2931 : : else
2932 : : _r2 = _o2[0];
2933 : 247 : _o1[1] = _r2;
2934 : : }
2935 : 247 : _r1 = fold_build2_loc (loc, MIN_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2936 : 247 : res_op0 = _r1;
2937 : : }
2938 : 247 : tree _r;
2939 : 247 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
2940 : 247 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 560, __FILE__, __LINE__, true);
2941 : 247 : return _r;
2942 : : }
2943 : : next_after_fail782:;
2944 : : }
2945 : : else
2946 : : {
2947 : 108584 : if (code == EQ_EXPR
2948 : : )
2949 : : {
2950 : 12 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail783;
2951 : 12 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail783;
2952 : 12 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail783;
2953 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail783;
2954 : 12 : {
2955 : 12 : if (! tree_invariant_p (captures[1])) goto next_after_fail783;
2956 : 12 : tree res_op0;
2957 : 12 : {
2958 : 12 : tree _o1[3], _r1;
2959 : 12 : {
2960 : 12 : tree _o2[2], _r2;
2961 : 12 : _o2[0] = captures[0];
2962 : 12 : {
2963 : 12 : tree _o3[1], _r3;
2964 : 12 : _o3[0] = unshare_expr (captures[1]);
2965 : 12 : if (TREE_TYPE (_o3[0]) != TREE_TYPE (_o2[0]))
2966 : : {
2967 : 0 : _r3 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (_o2[0]), _o3[0]);
2968 : : }
2969 : : else
2970 : : _r3 = _o3[0];
2971 : 12 : _o2[1] = _r3;
2972 : : }
2973 : 12 : _r2 = fold_build2_loc (loc, EQ_EXPR, boolean_type_node, _o2[0], _o2[1]);
2974 : 12 : _o1[0] = _r2;
2975 : : }
2976 : 12 : {
2977 : 12 : tree _o2[1], _r2;
2978 : 12 : _o2[0] = captures[1];
2979 : 12 : if (TREE_TYPE (_o2[0]) != from_type)
2980 : : {
2981 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, from_type, _o2[0]);
2982 : : }
2983 : : else
2984 : : _r2 = _o2[0];
2985 : 12 : _o1[1] = _r2;
2986 : : }
2987 : 12 : {
2988 : 12 : tree _o2[1], _r2;
2989 : 12 : _o2[0] = captures[2];
2990 : 12 : if (TREE_TYPE (_o2[0]) != from_type)
2991 : : {
2992 : 7 : _r2 = fold_build1_loc (loc, NOP_EXPR, from_type, _o2[0]);
2993 : : }
2994 : : else
2995 : : _r2 = _o2[0];
2996 : 12 : _o1[2] = _r2;
2997 : : }
2998 : 12 : _r1 = fold_build3_loc (loc, COND_EXPR, TREE_TYPE (_o1[1]), _o1[0], _o1[1], _o1[2]);
2999 : 12 : res_op0 = _r1;
3000 : : }
3001 : 12 : tree _r;
3002 : 12 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3003 : 12 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 561, __FILE__, __LINE__, true);
3004 : 12 : return _r;
3005 : : }
3006 : : next_after_fail783:;
3007 : : }
3008 : : }
3009 : : }
3010 : : }
3011 : : return NULL_TREE;
3012 : : }
3013 : :
3014 : : tree
3015 : 476244 : generic_simplify_373 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3016 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3017 : : const enum tree_code ARG_UNUSED (op))
3018 : : {
3019 : 476244 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3020 : 952487 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
3021 : 952384 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[1]))
3022 : 284686 : && !TYPE_OVERFLOW_SANITIZED (TREE_TYPE (captures[1]))
3023 : 952436 : && (CONSTANT_CLASS_P (captures[1]) || single_use (captures[0]))
3024 : : )
3025 : : {
3026 : 284614 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail828;
3027 : 284614 : {
3028 : 284614 : tree res_op0;
3029 : 284614 : res_op0 = captures[1];
3030 : 284614 : tree res_op1;
3031 : 284614 : res_op1 = build_zero_cst (TREE_TYPE (captures[1]));
3032 : 284614 : tree _r;
3033 : 284614 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
3034 : 284614 : if (TREE_SIDE_EFFECTS (captures[2]))
3035 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3036 : 284614 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 604, __FILE__, __LINE__, true);
3037 : 284614 : return _r;
3038 : : }
3039 : 0 : next_after_fail828:;
3040 : : }
3041 : : return NULL_TREE;
3042 : : }
3043 : :
3044 : : tree
3045 : 559 : generic_simplify_381 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3046 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3047 : : const enum tree_code ARG_UNUSED (cmp))
3048 : : {
3049 : 559 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3050 : 559 : if (wi::gt_p (wi::to_wide (captures[1]), 0, TYPE_SIGN (TREE_TYPE (captures[1])))
3051 : : )
3052 : : {
3053 : 559 : {
3054 : 559 : wi::overflow_type ovf;
3055 : 559 : wide_int prod = wi::mul (wi::to_wide (captures[2]), wi::to_wide (captures[1]),
3056 : 1118 : TYPE_SIGN (TREE_TYPE (captures[1])), &ovf);
3057 : 559 : if (ovf
3058 : : )
3059 : : {
3060 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail837;
3061 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail837;
3062 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail837;
3063 : 0 : {
3064 : 0 : tree _r;
3065 : 0 : _r = constant_boolean_node (wi::lt_p (wi::to_wide (captures[2]), 0,
3066 : 0 : TYPE_SIGN (TREE_TYPE (captures[2])))
3067 : 0 : != (cmp == LT_EXPR || cmp == LE_EXPR), type);
3068 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
3069 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
3070 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 613, __FILE__, __LINE__, true);
3071 : 0 : return _r;
3072 : : }
3073 : 0 : next_after_fail837:;
3074 : : }
3075 : : else
3076 : : {
3077 : 559 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail838;
3078 : 559 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail838;
3079 : 559 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail838;
3080 : 559 : {
3081 : 559 : tree res_op0;
3082 : 559 : res_op0 = captures[0];
3083 : 559 : tree res_op1;
3084 : 559 : res_op1 = wide_int_to_tree (TREE_TYPE (captures[0]), prod);
3085 : 559 : tree _r;
3086 : 559 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
3087 : 559 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 614, __FILE__, __LINE__, true);
3088 : 559 : return _r;
3089 : : }
3090 : 0 : next_after_fail838:;
3091 : : }
3092 : 559 : }
3093 : : }
3094 : : return NULL_TREE;
3095 : : }
3096 : :
3097 : : tree
3098 : 2437783 : generic_simplify_392 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3099 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3100 : : const enum tree_code ARG_UNUSED (op),
3101 : : const enum tree_code ARG_UNUSED (rop),
3102 : : const enum tree_code ARG_UNUSED (cmp),
3103 : : const enum tree_code ARG_UNUSED (rcmp))
3104 : : {
3105 : 2437783 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3106 : 4875552 : if (!TREE_OVERFLOW (captures[2]) && !TREE_OVERFLOW (captures[3])
3107 : 4875552 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[1]))
3108 : : )
3109 : : {
3110 : 868555 : {
3111 : 868555 : tree res = int_const_binop (rop, captures[3], captures[2]);
3112 : 868555 : if (TREE_OVERFLOW (res)
3113 : : )
3114 : : {
3115 : 13168 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail881;
3116 : 13168 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail881;
3117 : 13168 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail881;
3118 : 13168 : {
3119 : 13168 : tree _r;
3120 : 13168 : fold_overflow_warning (("assuming signed overflow does not occur "
3121 : : "when simplifying conditional to constant"),
3122 : : WARN_STRICT_OVERFLOW_CONDITIONAL);
3123 : 13168 : bool less = cmp == LE_EXPR || cmp == LT_EXPR;
3124 : 13168 : bool ovf_high = wi::lt_p (wi::to_wide (captures[2]), 0,
3125 : 13168 : TYPE_SIGN (TREE_TYPE (captures[2])))
3126 : 13168 : != (op == MINUS_EXPR); _r =
3127 : 13168 : constant_boolean_node (less == ovf_high, type);
3128 : 13168 : if (TREE_SIDE_EFFECTS (captures[1]))
3129 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3130 : 13168 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 640, __FILE__, __LINE__, true);
3131 : 13168 : return _r;
3132 : : }
3133 : : next_after_fail881:;
3134 : : }
3135 : : else
3136 : : {
3137 : 855387 : if (single_use (captures[0])
3138 : : )
3139 : : {
3140 : 855387 : {
3141 : 855387 : fold_overflow_warning (("assuming signed overflow does not occur "
3142 : : "when changing X +- C1 cmp C2 to "
3143 : : "X cmp C2 -+ C1"),
3144 : : WARN_STRICT_OVERFLOW_COMPARISON);
3145 : 855387 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail882;
3146 : 855387 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail882;
3147 : 855387 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail882;
3148 : 855387 : {
3149 : 855387 : tree res_op0;
3150 : 855387 : res_op0 = captures[1];
3151 : 855387 : tree res_op1;
3152 : 855387 : res_op1 = res;
3153 : 855387 : tree _r;
3154 : 855387 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
3155 : 855387 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 641, __FILE__, __LINE__, true);
3156 : 855387 : return _r;
3157 : : }
3158 : : next_after_fail882:;
3159 : : }
3160 : : }
3161 : : }
3162 : : }
3163 : : }
3164 : : else
3165 : : {
3166 : 1569228 : if (TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[1]))
3167 : : )
3168 : : {
3169 : 1569105 : {
3170 : 1569105 : wide_int max = wi::max_value (TREE_TYPE (captures[1]));
3171 : 1569105 : wide_int min = wi::min_value (TREE_TYPE (captures[1]));
3172 : 1569105 : wide_int c2 = rop == PLUS_EXPR
3173 : 1569105 : ? wi::add (wi::to_wide (captures[3]), wi::to_wide (captures[2]))
3174 : 1569105 : : wi::sub (wi::to_wide (captures[3]), wi::to_wide (captures[2]));
3175 : 1496793 : if (((cmp == LE_EXPR || cmp == GT_EXPR) && wi::eq_p (c2, max))
3176 : 3039557 : || ((cmp == LT_EXPR || cmp == GE_EXPR) && wi::eq_p (c2, min))
3177 : : )
3178 : : {
3179 : 26497 : {
3180 : 26497 : wide_int c1 = rop == PLUS_EXPR
3181 : 26497 : ? wi::add (wi::bit_not (c2), wi::to_wide (captures[2]))
3182 : 52994 : : wi::sub (wi::bit_not (c2), wi::to_wide (captures[2]));
3183 : 26497 : tree c1_cst = wide_int_to_tree (TREE_TYPE (captures[1]), c1);
3184 : 26497 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail883;
3185 : 26497 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail883;
3186 : 26497 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail883;
3187 : 26497 : {
3188 : 26497 : tree res_op0;
3189 : 26497 : res_op0 = captures[1];
3190 : 26497 : tree res_op1;
3191 : 26497 : res_op1 = c1_cst;
3192 : 26497 : tree _r;
3193 : 26497 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
3194 : 26497 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 642, __FILE__, __LINE__, true);
3195 : 26497 : return _r;
3196 : : }
3197 : 0 : next_after_fail883:;
3198 : 26497 : }
3199 : : }
3200 : 1569105 : }
3201 : : }
3202 : : }
3203 : : return NULL_TREE;
3204 : : }
3205 : :
3206 : : tree
3207 : 1576809 : generic_simplify_407 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3208 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3209 : : const enum tree_code ARG_UNUSED (shift))
3210 : : {
3211 : 1576809 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3212 : 1576809 : if ((
3213 : :
3214 : 1576809 : || !sanitize_flags_p (SANITIZE_SHIFT_EXPONENT))
3215 : 1574814 : && (TYPE_UNSIGNED (type)
3216 : 331844 : || shift == LSHIFT_EXPR
3217 : 136286 : || tree_expr_nonnegative_p (captures[0]))
3218 : 3017289 : && wi::ges_p (wi::to_wide (uniform_integer_cst_p (captures[1])),
3219 : 3016067 : element_precision (type))
3220 : : )
3221 : : {
3222 : 1222 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail906;
3223 : 1222 : {
3224 : 1222 : tree _r;
3225 : 1222 : _r = build_zero_cst (type);
3226 : 1222 : if (TREE_SIDE_EFFECTS (captures[0]))
3227 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
3228 : 1222 : if (TREE_SIDE_EFFECTS (captures[1]))
3229 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3230 : 1222 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 661, __FILE__, __LINE__, true);
3231 : 1222 : return _r;
3232 : : }
3233 : 0 : next_after_fail906:;
3234 : : }
3235 : : return NULL_TREE;
3236 : : }
3237 : :
3238 : : tree
3239 : 28935 : generic_simplify_415 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3240 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3241 : : const enum tree_code ARG_UNUSED (bit_op),
3242 : : const enum tree_code ARG_UNUSED (shift))
3243 : : {
3244 : 28935 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3245 : 28935 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[2]))
3246 : : )
3247 : : {
3248 : 28935 : {
3249 : 28935 : tree mask = int_const_binop (shift, fold_convert (type, captures[3]), captures[4]);
3250 : 28935 : if (mask
3251 : : )
3252 : : {
3253 : 28928 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail917;
3254 : 28928 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail917;
3255 : 28928 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail917;
3256 : 28928 : {
3257 : 28928 : tree res_op0;
3258 : 28928 : {
3259 : 28928 : tree _o1[2], _r1;
3260 : 28928 : {
3261 : 28928 : tree _o2[1], _r2;
3262 : 28928 : _o2[0] = captures[2];
3263 : 28928 : if (TREE_TYPE (_o2[0]) != type)
3264 : : {
3265 : 70 : _r2 = fold_build1_loc (loc, NOP_EXPR, type, _o2[0]);
3266 : : }
3267 : : else
3268 : : _r2 = _o2[0];
3269 : 28928 : _o1[0] = _r2;
3270 : : }
3271 : 28928 : _o1[1] = captures[4];
3272 : 28928 : _r1 = fold_build2_loc (loc, shift, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3273 : 28928 : res_op0 = _r1;
3274 : : }
3275 : 28928 : tree res_op1;
3276 : 28928 : res_op1 = mask;
3277 : 28928 : tree _r;
3278 : 28928 : _r = fold_build2_loc (loc, bit_op, type, res_op0, res_op1);
3279 : 28928 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 670, __FILE__, __LINE__, true);
3280 : 28928 : return _r;
3281 : : }
3282 : : next_after_fail917:;
3283 : : }
3284 : : }
3285 : : }
3286 : : return NULL_TREE;
3287 : : }
3288 : :
3289 : : tree
3290 : 7006 : generic_simplify_420 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3291 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
3292 : : const enum tree_code ARG_UNUSED (minmax))
3293 : : {
3294 : 7006 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3295 : 7006 : if (INTEGRAL_TYPE_P (type)
3296 : 7006 : && types_match (captures[1], type) && int_fits_type_p (captures[2], type)
3297 : 624 : && TYPE_SIGN (TREE_TYPE (captures[0])) == TYPE_SIGN (type)
3298 : 7006 : && TYPE_PRECISION (TREE_TYPE (captures[0])) > TYPE_PRECISION (type)
3299 : : )
3300 : : {
3301 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail927;
3302 : 0 : {
3303 : 0 : tree res_op0;
3304 : 0 : res_op0 = captures[1];
3305 : 0 : tree res_op1;
3306 : 0 : {
3307 : 0 : tree _o1[1], _r1;
3308 : 0 : _o1[0] = captures[2];
3309 : 0 : if (TREE_TYPE (_o1[0]) != type)
3310 : : {
3311 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
3312 : : }
3313 : : else
3314 : : _r1 = _o1[0];
3315 : 0 : res_op1 = _r1;
3316 : : }
3317 : 0 : tree _r;
3318 : 0 : _r = fold_build2_loc (loc, minmax, type, res_op0, res_op1);
3319 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 680, __FILE__, __LINE__, true);
3320 : 0 : return _r;
3321 : : }
3322 : 0 : next_after_fail927:;
3323 : : }
3324 : : return NULL_TREE;
3325 : : }
3326 : :
3327 : : tree
3328 : 2462793 : generic_simplify_423 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3329 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
3330 : : const enum tree_code ARG_UNUSED (op))
3331 : : {
3332 : 2462793 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3333 : 2462793 : if (INTEGRAL_TYPE_P (type)
3334 : 2004566 : && op != MULT_EXPR
3335 : 2004566 : && op != RDIV_EXPR
3336 : 1311144 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
3337 : 1311144 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
3338 : 1311144 : && type_has_mode_precision_p (TREE_TYPE (captures[2]))
3339 : 1310769 : && type_has_mode_precision_p (TREE_TYPE (captures[4]))
3340 : 1309989 : && type_has_mode_precision_p (type)
3341 : 1306184 : && TYPE_PRECISION (TREE_TYPE (captures[1])) > TYPE_PRECISION (TREE_TYPE (captures[2]))
3342 : 0 : && types_match (captures[2], type)
3343 : 2462793 : && (types_match (captures[2], captures[4])
3344 : 0 : || poly_int_tree_p (captures[3]))
3345 : : )
3346 : : {
3347 : 0 : if (TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[2]))
3348 : : )
3349 : : {
3350 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail936;
3351 : 0 : {
3352 : 0 : tree res_op0;
3353 : 0 : res_op0 = captures[2];
3354 : 0 : tree res_op1;
3355 : 0 : {
3356 : 0 : tree _o1[1], _r1;
3357 : 0 : _o1[0] = captures[4];
3358 : 0 : if (TREE_TYPE (_o1[0]) != type)
3359 : : {
3360 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
3361 : : }
3362 : : else
3363 : : _r1 = _o1[0];
3364 : 0 : res_op1 = _r1;
3365 : : }
3366 : 0 : tree _r;
3367 : 0 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
3368 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 681, __FILE__, __LINE__, true);
3369 : 0 : return _r;
3370 : : }
3371 : 0 : next_after_fail936:;
3372 : : }
3373 : : else
3374 : : {
3375 : 0 : {
3376 : 0 : tree utype = unsigned_type_for (TREE_TYPE (captures[2]));
3377 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail937;
3378 : 0 : {
3379 : 0 : tree res_op0;
3380 : 0 : {
3381 : 0 : tree _o1[2], _r1;
3382 : 0 : {
3383 : 0 : tree _o2[1], _r2;
3384 : 0 : _o2[0] = captures[2];
3385 : 0 : if (TREE_TYPE (_o2[0]) != utype)
3386 : : {
3387 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
3388 : : }
3389 : : else
3390 : : _r2 = _o2[0];
3391 : 0 : _o1[0] = _r2;
3392 : : }
3393 : 0 : {
3394 : 0 : tree _o2[1], _r2;
3395 : 0 : _o2[0] = captures[4];
3396 : 0 : if (TREE_TYPE (_o2[0]) != utype)
3397 : : {
3398 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
3399 : : }
3400 : : else
3401 : : _r2 = _o2[0];
3402 : 0 : _o1[1] = _r2;
3403 : : }
3404 : 0 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3405 : 0 : res_op0 = _r1;
3406 : : }
3407 : 0 : tree _r;
3408 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3409 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 682, __FILE__, __LINE__, true);
3410 : 0 : return _r;
3411 : : }
3412 : 0 : next_after_fail937:;
3413 : : }
3414 : : }
3415 : : }
3416 : : else
3417 : : {
3418 : 2444056 : if (FLOAT_TYPE_P (type)
3419 : 2481530 : && DECIMAL_FLOAT_TYPE_P (TREE_TYPE (captures[0]))
3420 : 18737 : == DECIMAL_FLOAT_TYPE_P (type)
3421 : : )
3422 : : {
3423 : 18714 : {
3424 : 18714 : tree arg0 = strip_float_extensions (captures[2]);
3425 : 18714 : tree arg1 = strip_float_extensions (captures[4]);
3426 : 18714 : tree itype = TREE_TYPE (captures[0]);
3427 : 18714 : tree ty1 = TREE_TYPE (arg0);
3428 : 18714 : tree ty2 = TREE_TYPE (arg1);
3429 : 18714 : enum tree_code code = TREE_CODE (itype);
3430 : 0 : if (FLOAT_TYPE_P (ty1)
3431 : 18714 : && FLOAT_TYPE_P (ty2)
3432 : : )
3433 : : {
3434 : 18714 : {
3435 : 18714 : tree newtype = type;
3436 : 18714 : if (TYPE_MODE (ty1) == SDmode
3437 : 18705 : || TYPE_MODE (ty2) == SDmode
3438 : 37419 : || TYPE_MODE (type) == SDmode)
3439 : 9 : newtype = dfloat32_type_node;
3440 : 18714 : if (TYPE_MODE (ty1) == DDmode
3441 : 18708 : || TYPE_MODE (ty2) == DDmode
3442 : 37422 : || TYPE_MODE (type) == DDmode)
3443 : 6 : newtype = dfloat64_type_node;
3444 : 18714 : if (TYPE_MODE (ty1) == TDmode
3445 : 18714 : || TYPE_MODE (ty2) == TDmode
3446 : 37428 : || TYPE_MODE (type) == TDmode)
3447 : 15 : newtype = dfloat128_type_node;
3448 : 18714 : if ((newtype == dfloat32_type_node
3449 : 18714 : || newtype == dfloat64_type_node
3450 : 18714 : || newtype == dfloat128_type_node)
3451 : 15 : && newtype == type
3452 : 18720 : && types_match (newtype, type)
3453 : : )
3454 : : {
3455 : 6 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail938;
3456 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail938;
3457 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail938;
3458 : 0 : {
3459 : 0 : tree res_op0;
3460 : 0 : {
3461 : 0 : tree _o1[1], _r1;
3462 : 0 : _o1[0] = captures[2];
3463 : 0 : if (TREE_TYPE (_o1[0]) != newtype)
3464 : : {
3465 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, newtype, _o1[0]);
3466 : : }
3467 : : else
3468 : : _r1 = _o1[0];
3469 : 0 : res_op0 = _r1;
3470 : : }
3471 : 0 : tree res_op1;
3472 : 0 : {
3473 : 0 : tree _o1[1], _r1;
3474 : 0 : _o1[0] = captures[4];
3475 : 0 : if (TREE_TYPE (_o1[0]) != newtype)
3476 : : {
3477 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, newtype, _o1[0]);
3478 : : }
3479 : : else
3480 : : _r1 = _o1[0];
3481 : 0 : res_op1 = _r1;
3482 : : }
3483 : 0 : tree _r;
3484 : 0 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
3485 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 683, __FILE__, __LINE__, true);
3486 : 0 : return _r;
3487 : : }
3488 : : next_after_fail938:;
3489 : : }
3490 : : else
3491 : : {
3492 : 18708 : {
3493 : 18708 : if (element_precision (ty1) > element_precision (newtype))
3494 : 745 : newtype = ty1;
3495 : 18708 : if (element_precision (ty2) > element_precision (newtype))
3496 : 1 : newtype = ty2;
3497 : 18708 : if (element_precision (newtype) < element_precision (itype)
3498 : 17408 : && (!VECTOR_MODE_P (TYPE_MODE (newtype))
3499 : 0 : || target_supports_op_p (newtype, op, optab_default))
3500 : 17408 : && (flag_unsafe_math_optimizations
3501 : 17396 : || (element_precision (newtype) == element_precision (type)
3502 : 17392 : && real_can_shorten_arithmetic (element_mode (itype),
3503 : : element_mode (type))
3504 : 7214 : && !excess_precision_type (newtype)))
3505 : 19381 : && !types_match (itype, newtype)
3506 : : )
3507 : : {
3508 : 673 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail939;
3509 : 673 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail939;
3510 : 655 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail939;
3511 : 655 : {
3512 : 655 : tree res_op0;
3513 : 655 : {
3514 : 655 : tree _o1[2], _r1;
3515 : 655 : {
3516 : 655 : tree _o2[1], _r2;
3517 : 655 : _o2[0] = captures[2];
3518 : 655 : if (TREE_TYPE (_o2[0]) != newtype)
3519 : : {
3520 : 655 : _r2 = fold_build1_loc (loc, NOP_EXPR, newtype, _o2[0]);
3521 : : }
3522 : : else
3523 : : _r2 = _o2[0];
3524 : 655 : _o1[0] = _r2;
3525 : : }
3526 : 655 : {
3527 : 655 : tree _o2[1], _r2;
3528 : 655 : _o2[0] = captures[4];
3529 : 655 : if (TREE_TYPE (_o2[0]) != newtype)
3530 : : {
3531 : 604 : _r2 = fold_build1_loc (loc, NOP_EXPR, newtype, _o2[0]);
3532 : : }
3533 : : else
3534 : : _r2 = _o2[0];
3535 : 655 : _o1[1] = _r2;
3536 : : }
3537 : 655 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3538 : 655 : res_op0 = _r1;
3539 : : }
3540 : 655 : tree _r;
3541 : 655 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3542 : 655 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 684, __FILE__, __LINE__, true);
3543 : 655 : return _r;
3544 : : }
3545 : : next_after_fail939:;
3546 : : }
3547 : : }
3548 : : }
3549 : : }
3550 : : }
3551 : : }
3552 : : }
3553 : : }
3554 : : return NULL_TREE;
3555 : : }
3556 : :
3557 : : tree
3558 : 0 : generic_simplify_451 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3559 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3560 : : {
3561 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3562 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail970;
3563 : 0 : {
3564 : 0 : tree res_op0;
3565 : 0 : res_op0 = captures[0];
3566 : 0 : tree res_op1;
3567 : 0 : res_op1 = captures[1];
3568 : 0 : tree _r;
3569 : 0 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
3570 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 710, __FILE__, __LINE__, true);
3571 : : return _r;
3572 : : }
3573 : 0 : next_after_fail970:;
3574 : 0 : return NULL_TREE;
3575 : : }
3576 : :
3577 : : tree
3578 : 13 : generic_simplify_455 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3579 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3580 : : {
3581 : 13 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3582 : 13 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail974;
3583 : 13 : {
3584 : 13 : tree _r;
3585 : 13 : _r = build_zero_cst (type);
3586 : 13 : if (TREE_SIDE_EFFECTS (captures[0]))
3587 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
3588 : 13 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 714, __FILE__, __LINE__, true);
3589 : : return _r;
3590 : : }
3591 : 0 : next_after_fail974:;
3592 : 0 : return NULL_TREE;
3593 : : }
3594 : :
3595 : : tree
3596 : 45712 : generic_simplify_459 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3597 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3598 : : const enum tree_code ARG_UNUSED (shift))
3599 : : {
3600 : 45712 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3601 : 45712 : if (tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
3602 : 22322 : && TYPE_PRECISION (type) <= HOST_BITS_PER_WIDE_INT
3603 : 22322 : && tree_fits_uhwi_p (captures[4])
3604 : 22322 : && tree_to_uhwi (captures[4]) > 0
3605 : 68034 : && tree_to_uhwi (captures[4]) < TYPE_PRECISION (type)
3606 : : )
3607 : : {
3608 : 22322 : {
3609 : 22322 : unsigned int shiftc = tree_to_uhwi (captures[4]);
3610 : 22322 : unsigned HOST_WIDE_INT mask = TREE_INT_CST_LOW (captures[5]);
3611 : 22322 : unsigned HOST_WIDE_INT newmask, zerobits = 0;
3612 : 22322 : tree shift_type = TREE_TYPE (captures[2]);
3613 : 22322 : unsigned int prec;
3614 : 22322 : if (shift == LSHIFT_EXPR)
3615 : 0 : zerobits = ((HOST_WIDE_INT_1U << shiftc) - 1);
3616 : 22322 : else if (shift == RSHIFT_EXPR
3617 : 22322 : && type_has_mode_precision_p (shift_type))
3618 : : {
3619 : 22322 : prec = TYPE_PRECISION (TREE_TYPE (captures[2]));
3620 : 22322 : tree arg00 = captures[3];
3621 : 22322 : if (captures[2] != captures[3]
3622 : 22322 : && TYPE_UNSIGNED (TREE_TYPE (captures[3])))
3623 : : {
3624 : 21915 : tree inner_type = TREE_TYPE (captures[3]);
3625 : 21915 : if (type_has_mode_precision_p (inner_type)
3626 : 21915 : && TYPE_PRECISION (inner_type) < prec)
3627 : : {
3628 : 34 : prec = TYPE_PRECISION (inner_type);
3629 : 34 : if (shiftc < prec)
3630 : 34 : shift_type = inner_type;
3631 : : }
3632 : : }
3633 : 22322 : zerobits = HOST_WIDE_INT_M1U;
3634 : 22322 : if (shiftc < prec)
3635 : : {
3636 : 22322 : zerobits >>= HOST_BITS_PER_WIDE_INT - shiftc;
3637 : 22322 : zerobits <<= prec - shiftc;
3638 : : }
3639 : 22322 : if (!TYPE_UNSIGNED (TREE_TYPE (captures[2]))
3640 : 22322 : && prec == TYPE_PRECISION (TREE_TYPE (captures[2])))
3641 : : {
3642 : 73 : if ((mask & zerobits) == 0)
3643 : 59 : shift_type = unsigned_type_for (TREE_TYPE (captures[2]));
3644 : : else
3645 : : zerobits = 0;
3646 : : }
3647 : : }
3648 : 22308 : if ((mask & zerobits) == mask
3649 : : )
3650 : : {
3651 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail978;
3652 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail978;
3653 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail978;
3654 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail978;
3655 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail978;
3656 : 0 : {
3657 : 0 : tree _r;
3658 : 0 : _r = build_int_cst (type, 0);
3659 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 717, __FILE__, __LINE__, true);
3660 : 0 : return _r;
3661 : : }
3662 : : next_after_fail978:;
3663 : : }
3664 : : else
3665 : : {
3666 : 22322 : {
3667 : 22322 : newmask = mask | zerobits;
3668 : 22322 : if (newmask != mask && (newmask & (newmask + 1)) == 0
3669 : : )
3670 : : {
3671 : : {
3672 : 65 : for (prec = BITS_PER_UNIT;
3673 : 122 : prec < HOST_BITS_PER_WIDE_INT; prec <<= 1)
3674 : 118 : if (newmask == (HOST_WIDE_INT_1U << prec) - 1)
3675 : : break;
3676 : 57 : if (prec < HOST_BITS_PER_WIDE_INT
3677 : 4 : || newmask == HOST_WIDE_INT_M1U
3678 : : )
3679 : : {
3680 : 57 : {
3681 : 57 : tree newmaskt = build_int_cst_type (TREE_TYPE (captures[5]), newmask);
3682 : 57 : if (!tree_int_cst_equal (newmaskt, captures[5])
3683 : : )
3684 : : {
3685 : 57 : if (shift_type != TREE_TYPE (captures[2])
3686 : : )
3687 : : {
3688 : 47 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail979;
3689 : 47 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail979;
3690 : 47 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail979;
3691 : 47 : {
3692 : 47 : tree res_op0;
3693 : 47 : {
3694 : 47 : tree _o1[1], _r1;
3695 : 47 : {
3696 : 47 : tree _o2[2], _r2;
3697 : 47 : {
3698 : 47 : tree _o3[1], _r3;
3699 : 47 : _o3[0] = captures[2];
3700 : 47 : if (TREE_TYPE (_o3[0]) != shift_type)
3701 : : {
3702 : 47 : _r3 = fold_build1_loc (loc, NOP_EXPR, shift_type, _o3[0]);
3703 : : }
3704 : : else
3705 : : _r3 = _o3[0];
3706 : 47 : _o2[0] = _r3;
3707 : : }
3708 : 47 : _o2[1] = captures[4];
3709 : 47 : _r2 = fold_build2_loc (loc, shift, shift_type, _o2[0], _o2[1]);
3710 : 47 : _o1[0] = _r2;
3711 : : }
3712 : 47 : if (TREE_TYPE (_o1[0]) != type)
3713 : : {
3714 : 47 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
3715 : : }
3716 : : else
3717 : : _r1 = _o1[0];
3718 : 47 : res_op0 = _r1;
3719 : : }
3720 : 47 : tree res_op1;
3721 : 47 : res_op1 = newmaskt;
3722 : 47 : tree _r;
3723 : 47 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
3724 : 47 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 718, __FILE__, __LINE__, true);
3725 : 47 : return _r;
3726 : : }
3727 : : next_after_fail979:;
3728 : : }
3729 : : else
3730 : : {
3731 : 10 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail980;
3732 : 10 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail980;
3733 : 10 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail980;
3734 : 10 : {
3735 : 10 : tree res_op0;
3736 : 10 : res_op0 = captures[0];
3737 : 10 : tree res_op1;
3738 : 10 : res_op1 = newmaskt;
3739 : 10 : tree _r;
3740 : 10 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
3741 : 10 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 719, __FILE__, __LINE__, true);
3742 : 10 : return _r;
3743 : : }
3744 : : next_after_fail980:;
3745 : : }
3746 : : }
3747 : : }
3748 : : }
3749 : : }
3750 : : }
3751 : : }
3752 : : }
3753 : : }
3754 : : }
3755 : : return NULL_TREE;
3756 : : }
3757 : :
3758 : : tree
3759 : 83198 : generic_simplify_479 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3760 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3761 : : const enum tree_code ARG_UNUSED (shift))
3762 : : {
3763 : 83198 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3764 : 83198 : if (tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
3765 : 83198 : && TYPE_PRECISION (type) <= HOST_BITS_PER_WIDE_INT
3766 : 83056 : && tree_fits_uhwi_p (captures[4])
3767 : 83007 : && tree_to_uhwi (captures[4]) > 0
3768 : 166204 : && tree_to_uhwi (captures[4]) < TYPE_PRECISION (type)
3769 : : )
3770 : : {
3771 : 83006 : {
3772 : 83006 : unsigned int shiftc = tree_to_uhwi (captures[4]);
3773 : 83006 : unsigned HOST_WIDE_INT mask = TREE_INT_CST_LOW (captures[5]);
3774 : 83006 : unsigned HOST_WIDE_INT newmask, zerobits = 0;
3775 : 83006 : tree shift_type = TREE_TYPE (captures[2]);
3776 : 83006 : unsigned int prec;
3777 : 83006 : if (shift == LSHIFT_EXPR)
3778 : 29281 : zerobits = ((HOST_WIDE_INT_1U << shiftc) - 1);
3779 : 53725 : else if (shift == RSHIFT_EXPR
3780 : 53725 : && type_has_mode_precision_p (shift_type))
3781 : : {
3782 : 53725 : prec = TYPE_PRECISION (TREE_TYPE (captures[2]));
3783 : 53725 : tree arg00 = captures[3];
3784 : 53725 : if (captures[2] != captures[3]
3785 : 53725 : && TYPE_UNSIGNED (TREE_TYPE (captures[3])))
3786 : : {
3787 : 0 : tree inner_type = TREE_TYPE (captures[3]);
3788 : 0 : if (type_has_mode_precision_p (inner_type)
3789 : 0 : && TYPE_PRECISION (inner_type) < prec)
3790 : : {
3791 : 0 : prec = TYPE_PRECISION (inner_type);
3792 : 0 : if (shiftc < prec)
3793 : 0 : shift_type = inner_type;
3794 : : }
3795 : : }
3796 : 53725 : zerobits = HOST_WIDE_INT_M1U;
3797 : 53725 : if (shiftc < prec)
3798 : : {
3799 : 53725 : zerobits >>= HOST_BITS_PER_WIDE_INT - shiftc;
3800 : 53725 : zerobits <<= prec - shiftc;
3801 : : }
3802 : 53725 : if (!TYPE_UNSIGNED (TREE_TYPE (captures[2]))
3803 : 53725 : && prec == TYPE_PRECISION (TREE_TYPE (captures[2])))
3804 : : {
3805 : 2861 : if ((mask & zerobits) == 0)
3806 : 2850 : shift_type = unsigned_type_for (TREE_TYPE (captures[2]));
3807 : : else
3808 : : zerobits = 0;
3809 : : }
3810 : : }
3811 : 82995 : if ((mask & zerobits) == mask
3812 : : )
3813 : : {
3814 : 3 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1039;
3815 : 3 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1039;
3816 : 3 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail1039;
3817 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1039;
3818 : 3 : {
3819 : 3 : tree _r;
3820 : 3 : _r = build_int_cst (type, 0);
3821 : 3 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 717, __FILE__, __LINE__, true);
3822 : 3 : return _r;
3823 : : }
3824 : : next_after_fail1039:;
3825 : : }
3826 : : else
3827 : : {
3828 : 83003 : {
3829 : 83003 : newmask = mask | zerobits;
3830 : 83003 : if (newmask != mask && (newmask & (newmask + 1)) == 0
3831 : : )
3832 : : {
3833 : : {
3834 : 18154 : for (prec = BITS_PER_UNIT;
3835 : 33432 : prec < HOST_BITS_PER_WIDE_INT; prec <<= 1)
3836 : 31391 : if (newmask == (HOST_WIDE_INT_1U << prec) - 1)
3837 : : break;
3838 : 15278 : if (prec < HOST_BITS_PER_WIDE_INT
3839 : 2041 : || newmask == HOST_WIDE_INT_M1U
3840 : : )
3841 : : {
3842 : 13391 : {
3843 : 13391 : tree newmaskt = build_int_cst_type (TREE_TYPE (captures[5]), newmask);
3844 : 13391 : if (!tree_int_cst_equal (newmaskt, captures[5])
3845 : : )
3846 : : {
3847 : 13391 : if (shift_type != TREE_TYPE (captures[2])
3848 : : )
3849 : : {
3850 : 84 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1040;
3851 : 84 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1040;
3852 : 84 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail1040;
3853 : 84 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1040;
3854 : 84 : {
3855 : 84 : tree res_op0;
3856 : 84 : {
3857 : 84 : tree _o1[1], _r1;
3858 : 84 : {
3859 : 84 : tree _o2[2], _r2;
3860 : 84 : {
3861 : 84 : tree _o3[1], _r3;
3862 : 84 : _o3[0] = captures[2];
3863 : 84 : if (TREE_TYPE (_o3[0]) != shift_type)
3864 : : {
3865 : 84 : _r3 = fold_build1_loc (loc, NOP_EXPR, shift_type, _o3[0]);
3866 : : }
3867 : : else
3868 : : _r3 = _o3[0];
3869 : 84 : _o2[0] = _r3;
3870 : : }
3871 : 84 : _o2[1] = captures[4];
3872 : 84 : _r2 = fold_build2_loc (loc, shift, shift_type, _o2[0], _o2[1]);
3873 : 84 : _o1[0] = _r2;
3874 : : }
3875 : 84 : if (TREE_TYPE (_o1[0]) != type)
3876 : : {
3877 : 84 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
3878 : : }
3879 : : else
3880 : : _r1 = _o1[0];
3881 : 84 : res_op0 = _r1;
3882 : : }
3883 : 84 : tree res_op1;
3884 : 84 : res_op1 = newmaskt;
3885 : 84 : tree _r;
3886 : 84 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
3887 : 84 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 718, __FILE__, __LINE__, true);
3888 : 84 : return _r;
3889 : : }
3890 : : next_after_fail1040:;
3891 : : }
3892 : : else
3893 : : {
3894 : 13307 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1041;
3895 : 12371 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail1041;
3896 : 12371 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1041;
3897 : 12371 : {
3898 : 12371 : tree res_op0;
3899 : 12371 : res_op0 = captures[0];
3900 : 12371 : tree res_op1;
3901 : 12371 : res_op1 = newmaskt;
3902 : 12371 : tree _r;
3903 : 12371 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
3904 : 12371 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 719, __FILE__, __LINE__, true);
3905 : 12371 : return _r;
3906 : : }
3907 : : next_after_fail1041:;
3908 : : }
3909 : : }
3910 : : }
3911 : : }
3912 : : }
3913 : : }
3914 : : }
3915 : : }
3916 : : }
3917 : : }
3918 : : return NULL_TREE;
3919 : : }
3920 : :
3921 : : tree
3922 : 16 : generic_simplify_500 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3923 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
3924 : : {
3925 : 16 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3926 : 16 : if (ANY_INTEGRAL_TYPE_P (type) && !TYPE_OVERFLOW_SANITIZED (type)
3927 : : )
3928 : : {
3929 : 16 : {
3930 : 16 : tree ptrdifftype = TREE_TYPE (captures[0]);
3931 : 16 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1064;
3932 : 16 : {
3933 : 16 : tree res_op0;
3934 : 16 : {
3935 : 16 : tree _o1[2], _r1;
3936 : 16 : _o1[0] = captures[2];
3937 : 16 : _o1[1] = captures[1];
3938 : 16 : _r1 = fold_build2_loc (loc, POINTER_DIFF_EXPR, ptrdifftype, _o1[0], _o1[1]);
3939 : 16 : res_op0 = _r1;
3940 : : }
3941 : 16 : tree _r;
3942 : 16 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3943 : 16 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 763, __FILE__, __LINE__, true);
3944 : 16 : return _r;
3945 : : }
3946 : 0 : next_after_fail1064:;
3947 : : }
3948 : : }
3949 : : return NULL_TREE;
3950 : : }
3951 : :
3952 : : tree
3953 : 0 : generic_simplify_506 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3954 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3955 : : const enum tree_code ARG_UNUSED (minmax))
3956 : : {
3957 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3958 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1071;
3959 : 0 : {
3960 : 0 : tree _r;
3961 : 0 : _r = captures[0];
3962 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 770, __FILE__, __LINE__, true);
3963 : : return _r;
3964 : : }
3965 : 0 : next_after_fail1071:;
3966 : 0 : return NULL_TREE;
3967 : : }
3968 : :
3969 : : tree
3970 : 0 : generic_simplify_512 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3971 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3972 : : const enum tree_code ARG_UNUSED (minmax),
3973 : : const enum tree_code ARG_UNUSED (cmp))
3974 : : {
3975 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3976 : 0 : {
3977 : 0 : poly_int64 off0, off1;
3978 : 0 : tree base0, base1;
3979 : 0 : int equal = address_compare (cmp, TREE_TYPE (captures[0]), captures[1], captures[3], base0, base1,
3980 : : off0, off1,
3981 : : 1
3982 : : );
3983 : 0 : if (equal == 1
3984 : : )
3985 : : {
3986 : 0 : if (minmax == MIN_EXPR
3987 : : )
3988 : : {
3989 : 0 : if (known_le (off0, off1)
3990 : : )
3991 : : {
3992 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1080;
3993 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1080;
3994 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1080;
3995 : 0 : {
3996 : 0 : tree _r;
3997 : 0 : _r = captures[0];
3998 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 774, __FILE__, __LINE__, true);
3999 : 0 : return _r;
4000 : : }
4001 : 0 : next_after_fail1080:;
4002 : : }
4003 : : else
4004 : : {
4005 : 0 : if (known_gt (off0, off1)
4006 : : )
4007 : : {
4008 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1081;
4009 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1081;
4010 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1081;
4011 : 0 : {
4012 : 0 : tree _r;
4013 : 0 : _r = captures[2];
4014 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 775, __FILE__, __LINE__, true);
4015 : 0 : return _r;
4016 : : }
4017 : 0 : next_after_fail1081:;
4018 : : }
4019 : : }
4020 : : }
4021 : : else
4022 : : {
4023 : 0 : if (known_ge (off0, off1)
4024 : : )
4025 : : {
4026 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1082;
4027 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1082;
4028 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1082;
4029 : 0 : {
4030 : 0 : tree _r;
4031 : 0 : _r = captures[0];
4032 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 776, __FILE__, __LINE__, true);
4033 : 0 : return _r;
4034 : : }
4035 : 0 : next_after_fail1082:;
4036 : : }
4037 : : else
4038 : : {
4039 : 0 : if (known_lt (off0, off1)
4040 : : )
4041 : : {
4042 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1083;
4043 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1083;
4044 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1083;
4045 : 0 : {
4046 : 0 : tree _r;
4047 : 0 : _r = captures[2];
4048 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 777, __FILE__, __LINE__, true);
4049 : 0 : return _r;
4050 : : }
4051 : 0 : next_after_fail1083:;
4052 : : }
4053 : : }
4054 : : }
4055 : : }
4056 : : }
4057 : 0 : return NULL_TREE;
4058 : : }
4059 : :
4060 : : tree
4061 : 6 : generic_simplify_530 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4062 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
4063 : : {
4064 : 6 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4065 : 6 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1110;
4066 : 6 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1110;
4067 : 6 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1110;
4068 : 6 : {
4069 : 6 : tree _r;
4070 : 6 : _r = captures[2];
4071 : 6 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 575, __FILE__, __LINE__, true);
4072 : : return _r;
4073 : : }
4074 : : next_after_fail1110:;
4075 : : return NULL_TREE;
4076 : : }
4077 : :
4078 : : tree
4079 : 0 : generic_simplify_537 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4080 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
4081 : : const combined_fn ARG_UNUSED (cond_op))
4082 : : {
4083 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4084 : 0 : {
4085 : 0 : tree op_type = TREE_TYPE (captures[4]);
4086 : 0 : if (element_precision (type) == element_precision (op_type)
4087 : : )
4088 : : {
4089 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1117;
4090 : 0 : {
4091 : 0 : tree res_op0;
4092 : 0 : {
4093 : 0 : tree _o1[5], _r1;
4094 : 0 : _o1[0] = captures[0];
4095 : 0 : _o1[1] = captures[1];
4096 : 0 : _o1[2] = captures[2];
4097 : 0 : _o1[3] = captures[3];
4098 : 0 : {
4099 : 0 : tree _o2[1], _r2;
4100 : 0 : _o2[0] = captures[5];
4101 : 0 : if (TREE_TYPE (_o2[0]) != op_type)
4102 : : {
4103 : 0 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, op_type, _o2[0]);
4104 : : }
4105 : : else
4106 : : _r2 = _o2[0];
4107 : 0 : _o1[4] = _r2;
4108 : : }
4109 : 0 : _r1 = maybe_build_call_expr_loc (loc, cond_op, TREE_TYPE (_o1[1]), 5, _o1[0], _o1[1], _o1[2], _o1[3], _o1[4]);
4110 : 0 : if (!_r1)
4111 : 0 : goto next_after_fail1117;
4112 : 0 : res_op0 = _r1;
4113 : : }
4114 : 0 : tree _r;
4115 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
4116 : 0 : if (TREE_SIDE_EFFECTS (captures[4]))
4117 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[4]), _r);
4118 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 798, __FILE__, __LINE__, true);
4119 : 0 : return _r;
4120 : : }
4121 : : next_after_fail1117:;
4122 : : }
4123 : : }
4124 : : return NULL_TREE;
4125 : : }
4126 : :
4127 : : tree
4128 : 2442585 : generic_simplify_545 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4129 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
4130 : : const enum tree_code ARG_UNUSED (cmp))
4131 : : {
4132 : 2442585 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4133 : 2442585 : if (REAL_VALUE_ISNAN (TREE_REAL_CST (captures[1]))
4134 : 2442585 : && (cmp != LTGT_EXPR || ! flag_trapping_math)
4135 : : )
4136 : : {
4137 : 10 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1125;
4138 : 10 : {
4139 : 10 : tree _r;
4140 : 20 : _r = constant_boolean_node (cmp == ORDERED_EXPR || cmp == LTGT_EXPR
4141 : 10 : ? false : true, type);
4142 : 10 : if (TREE_SIDE_EFFECTS (captures[0]))
4143 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
4144 : 10 : if (TREE_SIDE_EFFECTS (captures[1]))
4145 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
4146 : 10 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 806, __FILE__, __LINE__, true);
4147 : 10 : return _r;
4148 : : }
4149 : 0 : next_after_fail1125:;
4150 : : }
4151 : : return NULL_TREE;
4152 : : }
4153 : :
4154 : : tree
4155 : 0 : generic_simplify_557 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4156 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4157 : : const combined_fn ARG_UNUSED (fns))
4158 : : {
4159 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4160 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1137;
4161 : 0 : {
4162 : 0 : tree _r;
4163 : 0 : _r = captures[0];
4164 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 818, __FILE__, __LINE__, true);
4165 : : return _r;
4166 : : }
4167 : 0 : next_after_fail1137:;
4168 : 0 : return NULL_TREE;
4169 : : }
4170 : :
4171 : : tree
4172 : 0 : generic_simplify_563 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4173 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4174 : : const combined_fn ARG_UNUSED (froms),
4175 : : const combined_fn ARG_UNUSED (tos))
4176 : : {
4177 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4178 : 0 : if (optimize && canonicalize_math_p ()
4179 : : )
4180 : : {
4181 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1143;
4182 : 0 : {
4183 : 0 : tree res_op0;
4184 : 0 : res_op0 = captures[0];
4185 : 0 : tree _r;
4186 : 0 : _r = maybe_build_call_expr_loc (loc, tos, type, 1, res_op0);
4187 : 0 : if (!_r)
4188 : 0 : goto next_after_fail1143;
4189 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 824, __FILE__, __LINE__, true);
4190 : 0 : return _r;
4191 : : }
4192 : : next_after_fail1143:;
4193 : : }
4194 : : return NULL_TREE;
4195 : : }
4196 : :
4197 : : tree
4198 : 0 : generic_simplify_571 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4199 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4200 : : const combined_fn ARG_UNUSED (SIGNBIT))
4201 : : {
4202 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4203 : 0 : if (!HONOR_SIGNED_ZEROS (captures[0])
4204 : : )
4205 : : {
4206 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1151;
4207 : 0 : {
4208 : 0 : tree res_op0;
4209 : 0 : {
4210 : 0 : tree _o1[2], _r1;
4211 : 0 : _o1[0] = captures[0];
4212 : 0 : _o1[1] = build_real (TREE_TYPE (captures[0]), dconst0);
4213 : 0 : _r1 = fold_build2_loc (loc, LT_EXPR, boolean_type_node, _o1[0], _o1[1]);
4214 : 0 : res_op0 = _r1;
4215 : : }
4216 : 0 : tree _r;
4217 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4218 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 832, __FILE__, __LINE__, true);
4219 : 0 : return _r;
4220 : : }
4221 : 0 : next_after_fail1151:;
4222 : : }
4223 : : return NULL_TREE;
4224 : : }
4225 : :
4226 : : tree
4227 : 0 : generic_simplify_580 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4228 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
4229 : : {
4230 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4231 : 0 : if (canonicalize_math_after_vectorization_p ()
4232 : : )
4233 : : {
4234 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1160;
4235 : : {
4236 : : tree res_op0;
4237 : : res_op0 = captures[0];
4238 : : tree res_op1;
4239 : : res_op1 = captures[1];
4240 : : tree res_op2;
4241 : : res_op2 = captures[2];
4242 : : tree _r;
4243 : : _r = maybe_build_call_expr_loc (loc, CFN_FMA, type, 3, res_op0, res_op1, res_op2);
4244 : : if (!_r)
4245 : : goto next_after_fail1160;
4246 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 841, __FILE__, __LINE__, true);
4247 : : return _r;
4248 : : }
4249 : 0 : next_after_fail1160:;
4250 : : }
4251 : 0 : return NULL_TREE;
4252 : : }
4253 : :
4254 : : tree
4255 : 0 : generic_simplify_590 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4256 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4257 : : const combined_fn ARG_UNUSED (PARITY))
4258 : : {
4259 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4260 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1171;
4261 : 0 : {
4262 : 0 : tree res_op0;
4263 : 0 : res_op0 = captures[0];
4264 : 0 : tree _r;
4265 : 0 : _r = maybe_build_call_expr_loc (loc, PARITY, type, 1, res_op0);
4266 : 0 : if (!_r)
4267 : 0 : goto next_after_fail1171;
4268 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 847, __FILE__, __LINE__, true);
4269 : : return _r;
4270 : : }
4271 : : next_after_fail1171:;
4272 : : return NULL_TREE;
4273 : : }
4274 : :
4275 : : tree
4276 : 0 : generic_simplify_595 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4277 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4278 : : const combined_fn ARG_UNUSED (reduc))
4279 : : {
4280 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4281 : 0 : {
4282 : 0 : int i = single_nonzero_element (captures[1]);
4283 : 0 : if (i >= 0
4284 : : )
4285 : : {
4286 : 0 : {
4287 : 0 : tree elt = vector_cst_elt (captures[1], i);
4288 : 0 : tree elt_type = TREE_TYPE (elt);
4289 : 0 : unsigned int elt_bits = tree_to_uhwi (TYPE_SIZE (elt_type));
4290 : 0 : tree size = bitsize_int (elt_bits);
4291 : 0 : tree pos = bitsize_int (elt_bits * i);
4292 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1176;
4293 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1176;
4294 : 0 : {
4295 : 0 : tree res_op0;
4296 : 0 : {
4297 : 0 : tree _o1[2], _r1;
4298 : 0 : {
4299 : 0 : tree _o2[3], _r2;
4300 : 0 : _o2[0] = captures[0];
4301 : 0 : _o2[1] = size;
4302 : 0 : _o2[2] = pos;
4303 : 0 : _r2 = fold_build3_loc (loc, BIT_FIELD_REF, elt_type, _o2[0], _o2[1], _o2[2]);
4304 : 0 : _o1[0] = _r2;
4305 : : }
4306 : 0 : _o1[1] = elt;
4307 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, elt_type, _o1[0], _o1[1]);
4308 : 0 : res_op0 = _r1;
4309 : : }
4310 : 0 : tree _r;
4311 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
4312 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 850, __FILE__, __LINE__, true);
4313 : 0 : return _r;
4314 : : }
4315 : : next_after_fail1176:;
4316 : : }
4317 : : }
4318 : : }
4319 : : return NULL_TREE;
4320 : : }
4321 : :
4322 : : tree
4323 : 521630 : generic_simplify_FIX_TRUNC_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0)
4324 : : {
4325 : 521630 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4326 : 521630 : {
4327 : 521630 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4328 : 1043260 : if ((
4329 : :
4330 : : && useless_type_conversion_p (type, TREE_TYPE (captures[0])))
4331 : : || (
4332 : : 1
4333 : 521630 : && type == TREE_TYPE (captures[0]))
4334 : : )
4335 : : {
4336 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1255;
4337 : 0 : {
4338 : 0 : tree _r;
4339 : 0 : _r = captures[0];
4340 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 865, __FILE__, __LINE__, true);
4341 : 0 : return _r;
4342 : : }
4343 : 0 : next_after_fail1255:;
4344 : : }
4345 : : }
4346 : 521630 : switch (TREE_CODE (_p0))
4347 : : {
4348 : 14978 : CASE_CONVERT:
4349 : 14978 : {
4350 : 14978 : tree _q20 = TREE_OPERAND (_p0, 0);
4351 : 14978 : {
4352 : 14978 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
4353 : 14978 : {
4354 : 14978 : tree inside_type = TREE_TYPE (captures[1]);
4355 : 14978 : tree inter_type = TREE_TYPE (captures[0]);
4356 : 14978 : int inside_int = INTEGRAL_TYPE_P (inside_type);
4357 : 14978 : int inside_ptr = POINTER_TYPE_P (inside_type);
4358 : 14978 : int inside_float = FLOAT_TYPE_P (inside_type);
4359 : 14978 : int inside_vec = VECTOR_TYPE_P (inside_type);
4360 : 14978 : unsigned int inside_prec = element_precision (inside_type);
4361 : 14978 : int inside_unsignedp = TYPE_UNSIGNED (inside_type);
4362 : 14978 : int inter_int = INTEGRAL_TYPE_P (inter_type);
4363 : 14978 : int inter_ptr = POINTER_TYPE_P (inter_type);
4364 : 14978 : int inter_float = FLOAT_TYPE_P (inter_type);
4365 : 14978 : int inter_vec = VECTOR_TYPE_P (inter_type);
4366 : 14978 : unsigned int inter_prec = element_precision (inter_type);
4367 : 14978 : int inter_unsignedp = TYPE_UNSIGNED (inter_type);
4368 : 14978 : int final_int = INTEGRAL_TYPE_P (type);
4369 : 14978 : int final_ptr = POINTER_TYPE_P (type);
4370 : 14978 : int final_float = FLOAT_TYPE_P (type);
4371 : 14978 : int final_vec = VECTOR_TYPE_P (type);
4372 : 14978 : unsigned int final_prec = element_precision (type);
4373 : 14978 : int final_unsignedp = TYPE_UNSIGNED (type);
4374 : 14978 : if (((
4375 : :
4376 : : && useless_type_conversion_p (type, inside_type))
4377 : : || (
4378 : : 1
4379 : 14978 : && TYPE_MAIN_VARIANT (type) == TYPE_MAIN_VARIANT (inside_type)))
4380 : 0 : && (((inter_int || inter_ptr) && final_int)
4381 : 0 : || (inter_float && final_float))
4382 : 14978 : && inter_prec >= final_prec
4383 : : )
4384 : : {
4385 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1256;
4386 : 0 : {
4387 : 0 : tree res_op0;
4388 : 0 : res_op0 = captures[1];
4389 : 0 : tree _r;
4390 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4391 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 866, __FILE__, __LINE__, true);
4392 : 0 : return _r;
4393 : : }
4394 : 0 : next_after_fail1256:;
4395 : : }
4396 : : else
4397 : : {
4398 : 14978 : if (((inter_int && inside_int) || (inter_float && inside_float))
4399 : 14978 : && (final_int || final_float)
4400 : 14978 : && inter_prec >= inside_prec
4401 : 14760 : && (inter_float || inter_unsignedp == inside_unsignedp)
4402 : : )
4403 : : {
4404 : 14760 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1257;
4405 : 14760 : {
4406 : 14760 : tree res_op0;
4407 : 14760 : res_op0 = captures[1];
4408 : 14760 : tree _r;
4409 : 14760 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4410 : 14760 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 867, __FILE__, __LINE__, true);
4411 : 14760 : return _r;
4412 : : }
4413 : 0 : next_after_fail1257:;
4414 : 0 : }
4415 : : else
4416 : : {
4417 : 218 : if (inside_int && inter_int && final_int
4418 : 0 : && ((inside_prec < inter_prec && inter_prec < final_prec
4419 : 0 : && inside_unsignedp && !inter_unsignedp)
4420 : 0 : || final_prec == inter_prec
4421 : 0 : || (inside_prec < inter_prec && inter_prec > final_prec
4422 : 0 : && !inside_unsignedp && inter_unsignedp))
4423 : : )
4424 : : {
4425 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1258;
4426 : 0 : {
4427 : 0 : tree res_op0;
4428 : 0 : res_op0 = captures[1];
4429 : 0 : tree _r;
4430 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4431 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 868, __FILE__, __LINE__, true);
4432 : 0 : return _r;
4433 : : }
4434 : 0 : next_after_fail1258:;
4435 : 0 : }
4436 : : else
4437 : : {
4438 : 218 : if (! inside_float && ! inter_float && ! final_float
4439 : : && ! inside_vec && ! inter_vec && ! final_vec
4440 : 0 : && (inter_prec >= inside_prec || inter_prec >= final_prec)
4441 : 0 : && ! (inside_int && inter_int
4442 : 0 : && inter_unsignedp != inside_unsignedp
4443 : 0 : && inter_prec < final_prec)
4444 : 0 : && ((inter_unsignedp && inter_prec > inside_prec)
4445 : 0 : == (final_unsignedp && final_prec > inter_prec))
4446 : 0 : && ! (inside_ptr && inter_prec != final_prec)
4447 : 0 : && ! (final_ptr && inside_prec != inter_prec)
4448 : : )
4449 : : {
4450 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1259;
4451 : 0 : {
4452 : 0 : tree res_op0;
4453 : 0 : res_op0 = captures[1];
4454 : 0 : tree _r;
4455 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4456 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 869, __FILE__, __LINE__, true);
4457 : 0 : return _r;
4458 : : }
4459 : 0 : next_after_fail1259:;
4460 : 0 : }
4461 : : else
4462 : : {
4463 : 218 : if (inside_int && inter_int && final_int
4464 : 0 : && final_prec <= inside_prec
4465 : 0 : && inter_prec >= inside_prec
4466 : : )
4467 : : {
4468 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1260;
4469 : 0 : {
4470 : 0 : tree res_op0;
4471 : 0 : res_op0 = captures[1];
4472 : 0 : tree _r;
4473 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4474 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 870, __FILE__, __LINE__, true);
4475 : 0 : return _r;
4476 : : }
4477 : 0 : next_after_fail1260:;
4478 : 0 : }
4479 : : else
4480 : : {
4481 : : if (0
4482 : : && final_int && inter_int && inside_int
4483 : : && final_prec >= inside_prec
4484 : : && inside_prec > inter_prec
4485 : : && inter_unsignedp
4486 : : )
4487 : : {
4488 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1261;
4489 : : {
4490 : : tree res_op0;
4491 : : {
4492 : : tree _o1[2], _r1;
4493 : : _o1[0] = captures[1];
4494 : : _o1[1] = wide_int_to_tree
4495 : : (inside_type,
4496 : : wi::mask (inter_prec, false,
4497 : : TYPE_PRECISION (inside_type)));
4498 : : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4499 : : res_op0 = _r1;
4500 : : }
4501 : : tree _r;
4502 : : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4503 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 871, __FILE__, __LINE__, true);
4504 : : return _r;
4505 : : }
4506 : : next_after_fail1261:;
4507 : : }
4508 : : else
4509 : : {
4510 : : if (0
4511 : : && inside_int && inter_float && final_int &&
4512 : : (unsigned) significand_size (TYPE_MODE (inter_type))
4513 : : >= inside_prec - !inside_unsignedp
4514 : : )
4515 : : {
4516 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1262;
4517 : : {
4518 : : tree res_op0;
4519 : : res_op0 = captures[1];
4520 : : tree _r;
4521 : : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4522 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 872, __FILE__, __LINE__, true);
4523 : : return _r;
4524 : : }
4525 : : next_after_fail1262:;
4526 : : }
4527 : : }
4528 : : }
4529 : : }
4530 : : }
4531 : : }
4532 : : }
4533 : : }
4534 : : }
4535 : 218 : break;
4536 : : }
4537 : 589 : case FLOAT_EXPR:
4538 : 589 : {
4539 : 589 : tree _q20 = TREE_OPERAND (_p0, 0);
4540 : 589 : {
4541 : 589 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
4542 : 589 : {
4543 : 589 : tree inside_type = TREE_TYPE (captures[1]);
4544 : 589 : tree inter_type = TREE_TYPE (captures[0]);
4545 : 589 : int inside_int = INTEGRAL_TYPE_P (inside_type);
4546 : 589 : int inside_ptr = POINTER_TYPE_P (inside_type);
4547 : 589 : int inside_float = FLOAT_TYPE_P (inside_type);
4548 : 589 : int inside_vec = VECTOR_TYPE_P (inside_type);
4549 : 589 : unsigned int inside_prec = element_precision (inside_type);
4550 : 589 : int inside_unsignedp = TYPE_UNSIGNED (inside_type);
4551 : 589 : int inter_int = INTEGRAL_TYPE_P (inter_type);
4552 : 589 : int inter_ptr = POINTER_TYPE_P (inter_type);
4553 : 589 : int inter_float = FLOAT_TYPE_P (inter_type);
4554 : 589 : int inter_vec = VECTOR_TYPE_P (inter_type);
4555 : 589 : unsigned int inter_prec = element_precision (inter_type);
4556 : 589 : int inter_unsignedp = TYPE_UNSIGNED (inter_type);
4557 : 589 : int final_int = INTEGRAL_TYPE_P (type);
4558 : 589 : int final_ptr = POINTER_TYPE_P (type);
4559 : 589 : int final_float = FLOAT_TYPE_P (type);
4560 : 589 : int final_vec = VECTOR_TYPE_P (type);
4561 : 589 : unsigned int final_prec = element_precision (type);
4562 : 589 : int final_unsignedp = TYPE_UNSIGNED (type);
4563 : 589 : if (((
4564 : :
4565 : : && useless_type_conversion_p (type, inside_type))
4566 : : || (
4567 : : 1
4568 : 589 : && TYPE_MAIN_VARIANT (type) == TYPE_MAIN_VARIANT (inside_type)))
4569 : 44 : && (((inter_int || inter_ptr) && final_int)
4570 : 44 : || (inter_float && final_float))
4571 : 589 : && inter_prec >= final_prec
4572 : : )
4573 : : {
4574 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1263;
4575 : 0 : {
4576 : 0 : tree res_op0;
4577 : 0 : res_op0 = captures[1];
4578 : 0 : tree _r;
4579 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4580 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 866, __FILE__, __LINE__, true);
4581 : 0 : return _r;
4582 : : }
4583 : 0 : next_after_fail1263:;
4584 : : }
4585 : : else
4586 : : {
4587 : 589 : if (((inter_int && inside_int) || (inter_float && inside_float))
4588 : 0 : && (final_int || final_float)
4589 : 0 : && inter_prec >= inside_prec
4590 : 0 : && (inter_float || inter_unsignedp == inside_unsignedp)
4591 : : )
4592 : : {
4593 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1264;
4594 : 0 : {
4595 : 0 : tree res_op0;
4596 : 0 : res_op0 = captures[1];
4597 : 0 : tree _r;
4598 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4599 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 867, __FILE__, __LINE__, true);
4600 : 0 : return _r;
4601 : : }
4602 : 0 : next_after_fail1264:;
4603 : 0 : }
4604 : : else
4605 : : {
4606 : 589 : if (inside_int && inter_int && final_int
4607 : 0 : && ((inside_prec < inter_prec && inter_prec < final_prec
4608 : 0 : && inside_unsignedp && !inter_unsignedp)
4609 : 0 : || final_prec == inter_prec
4610 : 0 : || (inside_prec < inter_prec && inter_prec > final_prec
4611 : 0 : && !inside_unsignedp && inter_unsignedp))
4612 : : )
4613 : : {
4614 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1265;
4615 : 0 : {
4616 : 0 : tree res_op0;
4617 : 0 : res_op0 = captures[1];
4618 : 0 : tree _r;
4619 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4620 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 868, __FILE__, __LINE__, true);
4621 : 0 : return _r;
4622 : : }
4623 : 0 : next_after_fail1265:;
4624 : 0 : }
4625 : : else
4626 : : {
4627 : 589 : if (! inside_float && ! inter_float && ! final_float
4628 : : && ! inside_vec && ! inter_vec && ! final_vec
4629 : 0 : && (inter_prec >= inside_prec || inter_prec >= final_prec)
4630 : 0 : && ! (inside_int && inter_int
4631 : 0 : && inter_unsignedp != inside_unsignedp
4632 : 0 : && inter_prec < final_prec)
4633 : 0 : && ((inter_unsignedp && inter_prec > inside_prec)
4634 : 0 : == (final_unsignedp && final_prec > inter_prec))
4635 : 0 : && ! (inside_ptr && inter_prec != final_prec)
4636 : 0 : && ! (final_ptr && inside_prec != inter_prec)
4637 : : )
4638 : : {
4639 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1266;
4640 : 0 : {
4641 : 0 : tree res_op0;
4642 : 0 : res_op0 = captures[1];
4643 : 0 : tree _r;
4644 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4645 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 869, __FILE__, __LINE__, true);
4646 : 0 : return _r;
4647 : : }
4648 : 0 : next_after_fail1266:;
4649 : 0 : }
4650 : : else
4651 : : {
4652 : 589 : if (inside_int && inter_int && final_int
4653 : 0 : && final_prec <= inside_prec
4654 : 0 : && inter_prec >= inside_prec
4655 : : )
4656 : : {
4657 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1267;
4658 : 0 : {
4659 : 0 : tree res_op0;
4660 : 0 : res_op0 = captures[1];
4661 : 0 : tree _r;
4662 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4663 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 870, __FILE__, __LINE__, true);
4664 : 0 : return _r;
4665 : : }
4666 : 0 : next_after_fail1267:;
4667 : 0 : }
4668 : : else
4669 : : {
4670 : : if (0
4671 : : && final_int && inter_int && inside_int
4672 : : && final_prec >= inside_prec
4673 : : && inside_prec > inter_prec
4674 : : && inter_unsignedp
4675 : : )
4676 : : {
4677 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1268;
4678 : : {
4679 : : tree res_op0;
4680 : : {
4681 : : tree _o1[2], _r1;
4682 : : _o1[0] = captures[1];
4683 : : _o1[1] = wide_int_to_tree
4684 : : (inside_type,
4685 : : wi::mask (inter_prec, false,
4686 : : TYPE_PRECISION (inside_type)));
4687 : : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4688 : : res_op0 = _r1;
4689 : : }
4690 : : tree _r;
4691 : : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4692 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 871, __FILE__, __LINE__, true);
4693 : : return _r;
4694 : : }
4695 : : next_after_fail1268:;
4696 : : }
4697 : : else
4698 : : {
4699 : : if (0
4700 : : && inside_int && inter_float && final_int &&
4701 : : (unsigned) significand_size (TYPE_MODE (inter_type))
4702 : : >= inside_prec - !inside_unsignedp
4703 : : )
4704 : : {
4705 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1269;
4706 : : {
4707 : : tree res_op0;
4708 : : res_op0 = captures[1];
4709 : : tree _r;
4710 : : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4711 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 872, __FILE__, __LINE__, true);
4712 : : return _r;
4713 : : }
4714 : : next_after_fail1269:;
4715 : : }
4716 : : }
4717 : : }
4718 : : }
4719 : : }
4720 : : }
4721 : : }
4722 : : }
4723 : : }
4724 : 589 : break;
4725 : : }
4726 : : default:;
4727 : : }
4728 : : return NULL_TREE;
4729 : : }
4730 : :
4731 : : tree
4732 : 708644 : 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)
4733 : : {
4734 : 708644 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4735 : 708644 : if (integer_zerop (_p1))
4736 : : {
4737 : 536 : {
4738 : 536 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4739 : 536 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1432;
4740 : 536 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1432;
4741 : 536 : {
4742 : 536 : tree res_op0;
4743 : 536 : res_op0 = captures[0];
4744 : 536 : tree _r;
4745 : 536 : _r = non_lvalue_loc (loc, res_op0);
4746 : 536 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 912, __FILE__, __LINE__, true);
4747 : 536 : return _r;
4748 : : }
4749 : : next_after_fail1432:;
4750 : : }
4751 : : }
4752 : 708108 : switch (TREE_CODE (_p0))
4753 : : {
4754 : 2953 : case LSHIFT_EXPR:
4755 : 2953 : {
4756 : 2953 : tree _q20 = TREE_OPERAND (_p0, 0);
4757 : 2953 : tree _q21 = TREE_OPERAND (_p0, 1);
4758 : 2953 : switch (TREE_CODE (_p1))
4759 : : {
4760 : 10 : case LSHIFT_EXPR:
4761 : 10 : {
4762 : 10 : tree _q50 = TREE_OPERAND (_p1, 0);
4763 : 10 : tree _q51 = TREE_OPERAND (_p1, 1);
4764 : 10 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
4765 : : {
4766 : 1 : {
4767 : 1 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
4768 : 1 : tree res = generic_simplify_65 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4769 : 1 : if (res) return res;
4770 : : }
4771 : : }
4772 : : break;
4773 : : }
4774 : : default:;
4775 : : }
4776 : : break;
4777 : : }
4778 : 9064 : case RSHIFT_EXPR:
4779 : 9064 : {
4780 : 9064 : tree _q20 = TREE_OPERAND (_p0, 0);
4781 : 9064 : tree _q21 = TREE_OPERAND (_p0, 1);
4782 : 9064 : switch (TREE_CODE (_p1))
4783 : : {
4784 : 20 : case RSHIFT_EXPR:
4785 : 20 : {
4786 : 20 : tree _q50 = TREE_OPERAND (_p1, 0);
4787 : 20 : tree _q51 = TREE_OPERAND (_p1, 1);
4788 : 20 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
4789 : : {
4790 : 10 : {
4791 : 10 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
4792 : 10 : tree res = generic_simplify_66 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4793 : 10 : if (res) return res;
4794 : : }
4795 : : }
4796 : : break;
4797 : : }
4798 : : default:;
4799 : : }
4800 : : break;
4801 : : }
4802 : 2844 : case BIT_AND_EXPR:
4803 : 2844 : {
4804 : 2844 : tree _q20 = TREE_OPERAND (_p0, 0);
4805 : 2844 : tree _q21 = TREE_OPERAND (_p0, 1);
4806 : 2844 : switch (TREE_CODE (_p1))
4807 : : {
4808 : 354 : case BIT_AND_EXPR:
4809 : 354 : {
4810 : 354 : tree _q50 = TREE_OPERAND (_p1, 0);
4811 : 354 : tree _q51 = TREE_OPERAND (_p1, 1);
4812 : 354 : {
4813 : 354 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q50, _q51 };
4814 : 354 : tree res = generic_simplify_7 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4815 : 354 : if (res) return res;
4816 : : }
4817 : 354 : {
4818 : 354 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q51, _q50 };
4819 : 354 : tree res = generic_simplify_7 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4820 : 354 : if (res) return res;
4821 : : }
4822 : 354 : {
4823 : 354 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q50, _q51 };
4824 : 354 : tree res = generic_simplify_7 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4825 : 354 : if (res) return res;
4826 : : }
4827 : 354 : {
4828 : 354 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q51, _q50 };
4829 : 354 : tree res = generic_simplify_7 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4830 : 354 : if (res) return res;
4831 : : }
4832 : 354 : break;
4833 : : }
4834 : 2844 : default:;
4835 : : }
4836 : 2844 : switch (TREE_CODE (_q21))
4837 : : {
4838 : 41 : case BIT_NOT_EXPR:
4839 : 41 : {
4840 : 41 : tree _q40 = TREE_OPERAND (_q21, 0);
4841 : 41 : switch (TREE_CODE (_p1))
4842 : : {
4843 : 0 : case BIT_NOT_EXPR:
4844 : 0 : {
4845 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
4846 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
4847 : : {
4848 : 0 : {
4849 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
4850 : 0 : tree res = generic_simplify_151 (loc, type, _p0, _p1, captures);
4851 : 0 : if (res) return res;
4852 : : }
4853 : : }
4854 : : break;
4855 : : }
4856 : : default:;
4857 : : }
4858 : : break;
4859 : : }
4860 : 2844 : default:;
4861 : : }
4862 : 2844 : switch (TREE_CODE (_q20))
4863 : : {
4864 : 90 : case BIT_NOT_EXPR:
4865 : 90 : {
4866 : 90 : tree _q30 = TREE_OPERAND (_q20, 0);
4867 : 90 : switch (TREE_CODE (_p1))
4868 : : {
4869 : 0 : case BIT_NOT_EXPR:
4870 : 0 : {
4871 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
4872 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
4873 : : {
4874 : 0 : {
4875 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q30 };
4876 : 0 : tree res = generic_simplify_151 (loc, type, _p0, _p1, captures);
4877 : 0 : if (res) return res;
4878 : : }
4879 : : }
4880 : : break;
4881 : : }
4882 : 90 : default:;
4883 : : }
4884 : 90 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
4885 : : {
4886 : 0 : {
4887 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q21 };
4888 : 0 : tree res = generic_simplify_152 (loc, type, _p0, _p1, captures);
4889 : 0 : if (res) return res;
4890 : : }
4891 : : }
4892 : : break;
4893 : : }
4894 : 2844 : default:;
4895 : : }
4896 : 2844 : switch (TREE_CODE (_q21))
4897 : : {
4898 : 41 : case BIT_NOT_EXPR:
4899 : 41 : {
4900 : 41 : tree _q40 = TREE_OPERAND (_q21, 0);
4901 : 41 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
4902 : : {
4903 : 0 : {
4904 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q40, _q20 };
4905 : 0 : tree res = generic_simplify_152 (loc, type, _p0, _p1, captures);
4906 : 0 : if (res) return res;
4907 : : }
4908 : : }
4909 : : break;
4910 : : }
4911 : : default:;
4912 : : }
4913 : : break;
4914 : : }
4915 : 498 : case BIT_NOT_EXPR:
4916 : 498 : {
4917 : 498 : tree _q20 = TREE_OPERAND (_p0, 0);
4918 : 498 : switch (TREE_CODE (_p1))
4919 : : {
4920 : 51 : case BIT_AND_EXPR:
4921 : 51 : {
4922 : 51 : tree _q40 = TREE_OPERAND (_p1, 0);
4923 : 51 : tree _q41 = TREE_OPERAND (_p1, 1);
4924 : 51 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
4925 : : {
4926 : 0 : switch (TREE_CODE (_q41))
4927 : : {
4928 : 0 : case BIT_NOT_EXPR:
4929 : 0 : {
4930 : 0 : tree _q60 = TREE_OPERAND (_q41, 0);
4931 : 0 : {
4932 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q60 };
4933 : 0 : tree res = generic_simplify_151 (loc, type, _p0, _p1, captures);
4934 : 0 : if (res) return res;
4935 : : }
4936 : 0 : break;
4937 : : }
4938 : : default:;
4939 : : }
4940 : : }
4941 : 51 : switch (TREE_CODE (_q40))
4942 : : {
4943 : 7 : case BIT_NOT_EXPR:
4944 : 7 : {
4945 : 7 : tree _q50 = TREE_OPERAND (_q40, 0);
4946 : 7 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _q20, 0) && types_match (_q41, _q20)))
4947 : : {
4948 : 0 : {
4949 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q50 };
4950 : 0 : tree res = generic_simplify_151 (loc, type, _p0, _p1, captures);
4951 : 0 : if (res) return res;
4952 : : }
4953 : : }
4954 : : break;
4955 : : }
4956 : : default:;
4957 : : }
4958 : : break;
4959 : : }
4960 : : default:;
4961 : : }
4962 : : break;
4963 : : }
4964 : 708097 : default:;
4965 : : }
4966 : 708097 : switch (TREE_CODE (_p1))
4967 : : {
4968 : 707 : case BIT_AND_EXPR:
4969 : 707 : {
4970 : 707 : tree _q30 = TREE_OPERAND (_p1, 0);
4971 : 707 : tree _q31 = TREE_OPERAND (_p1, 1);
4972 : 707 : switch (TREE_CODE (_q30))
4973 : : {
4974 : 57 : case BIT_NOT_EXPR:
4975 : 57 : {
4976 : 57 : tree _q40 = TREE_OPERAND (_q30, 0);
4977 : 57 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
4978 : : {
4979 : 0 : {
4980 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _p0, _q31 };
4981 : 0 : tree res = generic_simplify_152 (loc, type, _p0, _p1, captures);
4982 : 0 : if (res) return res;
4983 : : }
4984 : : }
4985 : : break;
4986 : : }
4987 : 707 : default:;
4988 : : }
4989 : 707 : switch (TREE_CODE (_q31))
4990 : : {
4991 : 8 : case BIT_NOT_EXPR:
4992 : 8 : {
4993 : 8 : tree _q50 = TREE_OPERAND (_q31, 0);
4994 : 8 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
4995 : : {
4996 : 0 : {
4997 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _p0, _q30 };
4998 : 0 : tree res = generic_simplify_152 (loc, type, _p0, _p1, captures);
4999 : 0 : if (res) return res;
5000 : : }
5001 : : }
5002 : : break;
5003 : : }
5004 : : default:;
5005 : : }
5006 : : break;
5007 : : }
5008 : 708097 : default:;
5009 : : }
5010 : 708097 : switch (TREE_CODE (_p0))
5011 : : {
5012 : 21336 : case PLUS_EXPR:
5013 : 21336 : {
5014 : 21336 : tree _q20 = TREE_OPERAND (_p0, 0);
5015 : 21336 : tree _q21 = TREE_OPERAND (_p0, 1);
5016 : 21336 : if (integer_minus_onep (_q21))
5017 : : {
5018 : 10406 : switch (TREE_CODE (_p1))
5019 : : {
5020 : 11 : case NEGATE_EXPR:
5021 : 11 : {
5022 : 11 : tree _q50 = TREE_OPERAND (_p1, 0);
5023 : 11 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5024 : : {
5025 : 11 : {
5026 : 11 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
5027 : 11 : tree res = generic_simplify_75 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5028 : 11 : if (res) return res;
5029 : : }
5030 : : }
5031 : : break;
5032 : : }
5033 : : default:;
5034 : : }
5035 : : }
5036 : : break;
5037 : : }
5038 : 142 : case NEGATE_EXPR:
5039 : 142 : {
5040 : 142 : tree _q20 = TREE_OPERAND (_p0, 0);
5041 : 142 : switch (TREE_CODE (_p1))
5042 : : {
5043 : 0 : case PLUS_EXPR:
5044 : 0 : {
5045 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
5046 : 0 : tree _q41 = TREE_OPERAND (_p1, 1);
5047 : 0 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
5048 : : {
5049 : 0 : if (integer_minus_onep (_q41))
5050 : : {
5051 : 0 : {
5052 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
5053 : 0 : tree res = generic_simplify_76 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5054 : 0 : if (res) return res;
5055 : : }
5056 : : }
5057 : : }
5058 : : break;
5059 : : }
5060 : 0 : case MINUS_EXPR:
5061 : 0 : {
5062 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
5063 : 0 : tree _q41 = TREE_OPERAND (_p1, 1);
5064 : 0 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
5065 : : {
5066 : 0 : if (integer_onep (_q41))
5067 : : {
5068 : 0 : {
5069 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
5070 : 0 : tree res = generic_simplify_77 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5071 : 0 : if (res) return res;
5072 : : }
5073 : : }
5074 : : }
5075 : : break;
5076 : : }
5077 : : default:;
5078 : : }
5079 : : break;
5080 : : }
5081 : 102 : case MINUS_EXPR:
5082 : 102 : {
5083 : 102 : tree _q20 = TREE_OPERAND (_p0, 0);
5084 : 102 : tree _q21 = TREE_OPERAND (_p0, 1);
5085 : 102 : if (integer_onep (_q21))
5086 : : {
5087 : 0 : switch (TREE_CODE (_p1))
5088 : : {
5089 : 0 : case NEGATE_EXPR:
5090 : 0 : {
5091 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
5092 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5093 : : {
5094 : 0 : {
5095 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
5096 : 0 : tree res = generic_simplify_78 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5097 : 0 : if (res) return res;
5098 : : }
5099 : : }
5100 : : break;
5101 : : }
5102 : : default:;
5103 : : }
5104 : : }
5105 : : break;
5106 : : }
5107 : 1310 : case BIT_IOR_EXPR:
5108 : 1310 : {
5109 : 1310 : tree _q20 = TREE_OPERAND (_p0, 0);
5110 : 1310 : tree _q21 = TREE_OPERAND (_p0, 1);
5111 : 1310 : switch (TREE_CODE (_q20))
5112 : : {
5113 : 481 : case BIT_NOT_EXPR:
5114 : 481 : {
5115 : 481 : tree _q30 = TREE_OPERAND (_q20, 0);
5116 : 481 : {
5117 : 481 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _p1 };
5118 : 481 : tree res = generic_simplify_153 (loc, type, _p0, _p1, captures);
5119 : 481 : if (res) return res;
5120 : : }
5121 : 480 : break;
5122 : : }
5123 : 1309 : default:;
5124 : : }
5125 : 1309 : switch (TREE_CODE (_q21))
5126 : : {
5127 : 62 : case BIT_NOT_EXPR:
5128 : 62 : {
5129 : 62 : tree _q40 = TREE_OPERAND (_q21, 0);
5130 : 62 : {
5131 : 62 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q40, _q20, _p1 };
5132 : 62 : tree res = generic_simplify_153 (loc, type, _p0, _p1, captures);
5133 : 62 : if (res) return res;
5134 : : }
5135 : 62 : break;
5136 : : }
5137 : : default:;
5138 : : }
5139 : : break;
5140 : : }
5141 : 708085 : default:;
5142 : : }
5143 : 708085 : switch (TREE_CODE (_p1))
5144 : : {
5145 : 521 : case BIT_IOR_EXPR:
5146 : 521 : {
5147 : 521 : tree _q30 = TREE_OPERAND (_p1, 0);
5148 : 521 : tree _q31 = TREE_OPERAND (_p1, 1);
5149 : 521 : switch (TREE_CODE (_q30))
5150 : : {
5151 : 21 : case BIT_NOT_EXPR:
5152 : 21 : {
5153 : 21 : tree _q40 = TREE_OPERAND (_q30, 0);
5154 : 21 : {
5155 : 21 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q30, _q40, _q31, _p0 };
5156 : 21 : tree res = generic_simplify_153 (loc, type, _p0, _p1, captures);
5157 : 21 : if (res) return res;
5158 : : }
5159 : 21 : break;
5160 : : }
5161 : 521 : default:;
5162 : : }
5163 : 521 : switch (TREE_CODE (_q31))
5164 : : {
5165 : 25 : case BIT_NOT_EXPR:
5166 : 25 : {
5167 : 25 : tree _q50 = TREE_OPERAND (_q31, 0);
5168 : 25 : {
5169 : 25 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q31, _q50, _q30, _p0 };
5170 : 25 : tree res = generic_simplify_153 (loc, type, _p0, _p1, captures);
5171 : 25 : if (res) return res;
5172 : : }
5173 : 25 : break;
5174 : : }
5175 : : default:;
5176 : : }
5177 : : break;
5178 : : }
5179 : 708085 : default:;
5180 : : }
5181 : 708085 : switch (TREE_CODE (_p0))
5182 : : {
5183 : 2844 : case BIT_AND_EXPR:
5184 : 2844 : {
5185 : 2844 : tree _q20 = TREE_OPERAND (_p0, 0);
5186 : 2844 : tree _q21 = TREE_OPERAND (_p0, 1);
5187 : 2844 : switch (TREE_CODE (_q20))
5188 : : {
5189 : 90 : case BIT_NOT_EXPR:
5190 : 90 : {
5191 : 90 : tree _q30 = TREE_OPERAND (_q20, 0);
5192 : 90 : {
5193 : 90 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _p1 };
5194 : 90 : tree res = generic_simplify_154 (loc, type, _p0, _p1, captures);
5195 : 90 : if (res) return res;
5196 : : }
5197 : 89 : break;
5198 : : }
5199 : 2843 : default:;
5200 : : }
5201 : 2843 : switch (TREE_CODE (_q21))
5202 : : {
5203 : 41 : case BIT_NOT_EXPR:
5204 : 41 : {
5205 : 41 : tree _q40 = TREE_OPERAND (_q21, 0);
5206 : 41 : {
5207 : 41 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q40, _q20, _p1 };
5208 : 41 : tree res = generic_simplify_154 (loc, type, _p0, _p1, captures);
5209 : 41 : if (res) return res;
5210 : : }
5211 : 41 : break;
5212 : : }
5213 : : default:;
5214 : : }
5215 : : break;
5216 : : }
5217 : 708084 : default:;
5218 : : }
5219 : 708084 : switch (TREE_CODE (_p1))
5220 : : {
5221 : 707 : case BIT_AND_EXPR:
5222 : 707 : {
5223 : 707 : tree _q30 = TREE_OPERAND (_p1, 0);
5224 : 707 : tree _q31 = TREE_OPERAND (_p1, 1);
5225 : 707 : switch (TREE_CODE (_q30))
5226 : : {
5227 : 57 : case BIT_NOT_EXPR:
5228 : 57 : {
5229 : 57 : tree _q40 = TREE_OPERAND (_q30, 0);
5230 : 57 : {
5231 : 57 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q30, _q40, _q31, _p0 };
5232 : 57 : tree res = generic_simplify_154 (loc, type, _p0, _p1, captures);
5233 : 57 : if (res) return res;
5234 : : }
5235 : 57 : break;
5236 : : }
5237 : 707 : default:;
5238 : : }
5239 : 707 : switch (TREE_CODE (_q31))
5240 : : {
5241 : 8 : case BIT_NOT_EXPR:
5242 : 8 : {
5243 : 8 : tree _q50 = TREE_OPERAND (_q31, 0);
5244 : 8 : {
5245 : 8 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q31, _q50, _q30, _p0 };
5246 : 8 : tree res = generic_simplify_154 (loc, type, _p0, _p1, captures);
5247 : 8 : if (res) return res;
5248 : : }
5249 : 8 : break;
5250 : : }
5251 : : default:;
5252 : : }
5253 : : break;
5254 : : }
5255 : 708084 : default:;
5256 : : }
5257 : 708084 : switch (TREE_CODE (_p0))
5258 : : {
5259 : 511591 : CASE_CONVERT:
5260 : 511591 : {
5261 : 511591 : tree _q20 = TREE_OPERAND (_p0, 0);
5262 : 511591 : switch (TREE_CODE (_p1))
5263 : : {
5264 : 507551 : CASE_CONVERT:
5265 : 507551 : {
5266 : 507551 : tree _q40 = TREE_OPERAND (_p1, 0);
5267 : 507551 : {
5268 : 507551 : tree _q40_pops[1];
5269 : 507551 : if (tree_maybe_bit_not (_q40, _q40_pops))
5270 : : {
5271 : 0 : tree _q50 = _q40_pops[0];
5272 : 0 : {
5273 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q50 };
5274 : 0 : tree res = generic_simplify_88 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5275 : 0 : if (res) return res;
5276 : : }
5277 : : }
5278 : : }
5279 : 507551 : break;
5280 : : }
5281 : 511591 : default:;
5282 : : }
5283 : 511591 : {
5284 : 511591 : tree _q20_pops[1];
5285 : 511591 : if (tree_maybe_bit_not (_q20, _q20_pops))
5286 : : {
5287 : 15485 : tree _q30 = _q20_pops[0];
5288 : 15485 : switch (TREE_CODE (_p1))
5289 : : {
5290 : 15435 : CASE_CONVERT:
5291 : 15435 : {
5292 : 15435 : tree _q50 = TREE_OPERAND (_p1, 0);
5293 : 15435 : {
5294 : 15435 : tree captures[2] ATTRIBUTE_UNUSED = { _q50, _q30 };
5295 : 15435 : tree res = generic_simplify_88 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5296 : 15435 : if (res) return res;
5297 : : }
5298 : 15435 : break;
5299 : : }
5300 : : default:;
5301 : : }
5302 : : }
5303 : : }
5304 : 511591 : break;
5305 : : }
5306 : 708084 : default:;
5307 : : }
5308 : 708084 : {
5309 : 708084 : tree _p1_pops[1];
5310 : 708084 : if (tree_maybe_bit_not (_p1, _p1_pops))
5311 : : {
5312 : 8689 : tree _q30 = _p1_pops[0];
5313 : 8689 : {
5314 : 8689 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
5315 : 8689 : tree res = generic_simplify_88 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5316 : 8689 : if (res) return res;
5317 : : }
5318 : : }
5319 : : }
5320 : 708084 : {
5321 : 708084 : tree _p0_pops[1];
5322 : 708084 : if (tree_maybe_bit_not (_p0, _p0_pops))
5323 : : {
5324 : 1039 : tree _q20 = _p0_pops[0];
5325 : 1039 : {
5326 : 1039 : tree captures[2] ATTRIBUTE_UNUSED = { _p1, _q20 };
5327 : 1039 : tree res = generic_simplify_88 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5328 : 1039 : if (res) return res;
5329 : : }
5330 : : }
5331 : : }
5332 : 708063 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
5333 : : {
5334 : 151 : {
5335 : 151 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5336 : 151 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1433;
5337 : 151 : {
5338 : 151 : tree _r;
5339 : 151 : _r = build_zero_cst (type);
5340 : 151 : if (TREE_SIDE_EFFECTS (captures[0]))
5341 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
5342 : 151 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 967, __FILE__, __LINE__, true);
5343 : 151 : return _r;
5344 : : }
5345 : 0 : next_after_fail1433:;
5346 : : }
5347 : : }
5348 : 707912 : if (integer_all_onesp (_p1))
5349 : : {
5350 : 1040 : {
5351 : 1040 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5352 : 1040 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1434;
5353 : 1040 : {
5354 : 1040 : tree res_op0;
5355 : 1040 : res_op0 = captures[0];
5356 : 1040 : tree _r;
5357 : 1040 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
5358 : 1040 : if (TREE_SIDE_EFFECTS (captures[1]))
5359 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
5360 : 1040 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 968, __FILE__, __LINE__, true);
5361 : 1040 : return _r;
5362 : : }
5363 : 0 : next_after_fail1434:;
5364 : : }
5365 : : }
5366 : 706872 : switch (TREE_CODE (_p0))
5367 : : {
5368 : 1302 : case BIT_IOR_EXPR:
5369 : 1302 : {
5370 : 1302 : tree _q20 = TREE_OPERAND (_p0, 0);
5371 : 1302 : tree _q21 = TREE_OPERAND (_p0, 1);
5372 : 1302 : switch (TREE_CODE (_p1))
5373 : : {
5374 : 179 : case BIT_IOR_EXPR:
5375 : 179 : {
5376 : 179 : tree _q50 = TREE_OPERAND (_p1, 0);
5377 : 179 : tree _q51 = TREE_OPERAND (_p1, 1);
5378 : 179 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5379 : : {
5380 : 0 : switch (TREE_CODE (_q51))
5381 : : {
5382 : 0 : case BIT_NOT_EXPR:
5383 : 0 : {
5384 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
5385 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
5386 : : {
5387 : 0 : {
5388 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5389 : 0 : tree res = generic_simplify_155 (loc, type, _p0, _p1, captures);
5390 : 0 : if (res) return res;
5391 : : }
5392 : : }
5393 : : break;
5394 : : }
5395 : : default:;
5396 : : }
5397 : : }
5398 : 179 : switch (TREE_CODE (_q50))
5399 : : {
5400 : 20 : case BIT_NOT_EXPR:
5401 : 20 : {
5402 : 20 : tree _q60 = TREE_OPERAND (_q50, 0);
5403 : 20 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
5404 : : {
5405 : 2 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
5406 : : {
5407 : 1 : {
5408 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5409 : 1 : tree res = generic_simplify_155 (loc, type, _p0, _p1, captures);
5410 : 1 : if (res) return res;
5411 : : }
5412 : : }
5413 : : }
5414 : 19 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
5415 : : {
5416 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5417 : : {
5418 : 0 : {
5419 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
5420 : 0 : tree res = generic_simplify_155 (loc, type, _p0, _p1, captures);
5421 : 0 : if (res) return res;
5422 : : }
5423 : : }
5424 : : }
5425 : : break;
5426 : : }
5427 : 178 : default:;
5428 : : }
5429 : 178 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
5430 : : {
5431 : 0 : switch (TREE_CODE (_q51))
5432 : : {
5433 : 0 : case BIT_NOT_EXPR:
5434 : 0 : {
5435 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
5436 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
5437 : : {
5438 : 0 : {
5439 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
5440 : 0 : tree res = generic_simplify_155 (loc, type, _p0, _p1, captures);
5441 : 0 : if (res) return res;
5442 : : }
5443 : : }
5444 : : break;
5445 : : }
5446 : : default:;
5447 : : }
5448 : : }
5449 : : break;
5450 : : }
5451 : 1301 : default:;
5452 : : }
5453 : 1301 : switch (TREE_CODE (_q21))
5454 : : {
5455 : 62 : case BIT_NOT_EXPR:
5456 : 62 : {
5457 : 62 : tree _q40 = TREE_OPERAND (_q21, 0);
5458 : 62 : switch (TREE_CODE (_p1))
5459 : : {
5460 : 9 : case BIT_IOR_EXPR:
5461 : 9 : {
5462 : 9 : tree _q60 = TREE_OPERAND (_p1, 0);
5463 : 9 : tree _q61 = TREE_OPERAND (_p1, 1);
5464 : 9 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
5465 : : {
5466 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
5467 : : {
5468 : 0 : {
5469 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
5470 : 0 : tree res = generic_simplify_155 (loc, type, _p0, _p1, captures);
5471 : 0 : if (res) return res;
5472 : : }
5473 : : }
5474 : : }
5475 : : break;
5476 : : }
5477 : : default:;
5478 : : }
5479 : : break;
5480 : : }
5481 : 1301 : default:;
5482 : : }
5483 : 1301 : switch (TREE_CODE (_q20))
5484 : : {
5485 : 480 : case BIT_NOT_EXPR:
5486 : 480 : {
5487 : 480 : tree _q30 = TREE_OPERAND (_q20, 0);
5488 : 480 : switch (TREE_CODE (_p1))
5489 : : {
5490 : 28 : case BIT_IOR_EXPR:
5491 : 28 : {
5492 : 28 : tree _q60 = TREE_OPERAND (_p1, 0);
5493 : 28 : tree _q61 = TREE_OPERAND (_p1, 1);
5494 : 28 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
5495 : : {
5496 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
5497 : : {
5498 : 0 : {
5499 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q30 };
5500 : 0 : tree res = generic_simplify_155 (loc, type, _p0, _p1, captures);
5501 : 0 : if (res) return res;
5502 : : }
5503 : : }
5504 : : }
5505 : 28 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
5506 : : {
5507 : 9 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
5508 : : {
5509 : 0 : {
5510 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q30 };
5511 : 0 : tree res = generic_simplify_155 (loc, type, _p0, _p1, captures);
5512 : 0 : if (res) return res;
5513 : : }
5514 : : }
5515 : 9 : switch (TREE_CODE (_q61))
5516 : : {
5517 : 0 : case BIT_NOT_EXPR:
5518 : 0 : {
5519 : 0 : tree _q80 = TREE_OPERAND (_q61, 0);
5520 : 0 : if ((_q80 == _q21 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q21, 0) && types_match (_q80, _q21)))
5521 : : {
5522 : 0 : {
5523 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q21 };
5524 : 0 : tree res = generic_simplify_156 (loc, type, _p0, _p1, captures);
5525 : 0 : if (res) return res;
5526 : : }
5527 : : }
5528 : : break;
5529 : : }
5530 : : default:;
5531 : : }
5532 : : }
5533 : 28 : switch (TREE_CODE (_q60))
5534 : : {
5535 : 1 : case BIT_NOT_EXPR:
5536 : 1 : {
5537 : 1 : tree _q70 = TREE_OPERAND (_q60, 0);
5538 : 1 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
5539 : : {
5540 : 1 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
5541 : : {
5542 : 1 : {
5543 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q21 };
5544 : 1 : tree res = generic_simplify_156 (loc, type, _p0, _p1, captures);
5545 : 1 : if (res) return res;
5546 : : }
5547 : : }
5548 : : }
5549 : : break;
5550 : : }
5551 : : default:;
5552 : : }
5553 : : break;
5554 : : }
5555 : 9 : case BIT_XOR_EXPR:
5556 : 9 : {
5557 : 9 : tree _q60 = TREE_OPERAND (_p1, 0);
5558 : 9 : tree _q61 = TREE_OPERAND (_p1, 1);
5559 : 9 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
5560 : : {
5561 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
5562 : : {
5563 : 0 : {
5564 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q21, _p1 };
5565 : 0 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
5566 : 0 : if (res) return res;
5567 : : }
5568 : : }
5569 : : }
5570 : : break;
5571 : : }
5572 : 479 : default:;
5573 : : }
5574 : 479 : {
5575 : 479 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q21, _p1 };
5576 : 479 : tree res = generic_simplify_158 (loc, type, _p0, _p1, captures);
5577 : 479 : if (res) return res;
5578 : : }
5579 : 431 : break;
5580 : : }
5581 : 1252 : default:;
5582 : : }
5583 : 1252 : switch (TREE_CODE (_q21))
5584 : : {
5585 : 62 : case BIT_NOT_EXPR:
5586 : 62 : {
5587 : 62 : tree _q40 = TREE_OPERAND (_q21, 0);
5588 : 62 : switch (TREE_CODE (_p1))
5589 : : {
5590 : 9 : case BIT_IOR_EXPR:
5591 : 9 : {
5592 : 9 : tree _q60 = TREE_OPERAND (_p1, 0);
5593 : 9 : tree _q61 = TREE_OPERAND (_p1, 1);
5594 : 9 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
5595 : : {
5596 : 0 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
5597 : : {
5598 : 0 : {
5599 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
5600 : 0 : tree res = generic_simplify_155 (loc, type, _p0, _p1, captures);
5601 : 0 : if (res) return res;
5602 : : }
5603 : : }
5604 : : }
5605 : : break;
5606 : : }
5607 : 9 : case BIT_XOR_EXPR:
5608 : 9 : {
5609 : 9 : tree _q60 = TREE_OPERAND (_p1, 0);
5610 : 9 : tree _q61 = TREE_OPERAND (_p1, 1);
5611 : 9 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
5612 : : {
5613 : 0 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
5614 : : {
5615 : 0 : {
5616 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q40, _q20, _p1 };
5617 : 0 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
5618 : 0 : if (res) return res;
5619 : : }
5620 : : }
5621 : : }
5622 : : break;
5623 : : }
5624 : : default:;
5625 : : }
5626 : : break;
5627 : : }
5628 : 1252 : default:;
5629 : : }
5630 : 1252 : switch (TREE_CODE (_p1))
5631 : : {
5632 : 65 : case BIT_AND_EXPR:
5633 : 65 : {
5634 : 65 : tree _q50 = TREE_OPERAND (_p1, 0);
5635 : 65 : tree _q51 = TREE_OPERAND (_p1, 1);
5636 : 65 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5637 : : {
5638 : 6 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5639 : : {
5640 : 0 : {
5641 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5642 : 0 : tree res = generic_simplify_159 (loc, type, _p0, _p1, captures);
5643 : 0 : if (res) return res;
5644 : : }
5645 : : }
5646 : : }
5647 : : break;
5648 : : }
5649 : 36 : case BIT_XOR_EXPR:
5650 : 36 : {
5651 : 36 : tree _q50 = TREE_OPERAND (_p1, 0);
5652 : 36 : tree _q51 = TREE_OPERAND (_p1, 1);
5653 : 36 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5654 : : {
5655 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5656 : : {
5657 : 0 : {
5658 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5659 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
5660 : 0 : if (res) return res;
5661 : : }
5662 : : }
5663 : : }
5664 : : break;
5665 : : }
5666 : 1252 : default:;
5667 : : }
5668 : 1252 : switch (TREE_CODE (_q21))
5669 : : {
5670 : 62 : case BIT_NOT_EXPR:
5671 : 62 : {
5672 : 62 : tree _q40 = TREE_OPERAND (_q21, 0);
5673 : 62 : switch (TREE_CODE (_p1))
5674 : : {
5675 : 9 : case BIT_IOR_EXPR:
5676 : 9 : {
5677 : 9 : tree _q60 = TREE_OPERAND (_p1, 0);
5678 : 9 : tree _q61 = TREE_OPERAND (_p1, 1);
5679 : 9 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
5680 : : {
5681 : 0 : switch (TREE_CODE (_q61))
5682 : : {
5683 : 0 : case BIT_NOT_EXPR:
5684 : 0 : {
5685 : 0 : tree _q80 = TREE_OPERAND (_q61, 0);
5686 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
5687 : : {
5688 : 0 : {
5689 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q20 };
5690 : 0 : tree res = generic_simplify_156 (loc, type, _p0, _p1, captures);
5691 : 0 : if (res) return res;
5692 : : }
5693 : : }
5694 : : break;
5695 : : }
5696 : : default:;
5697 : : }
5698 : : }
5699 : 9 : switch (TREE_CODE (_q60))
5700 : : {
5701 : 0 : case BIT_NOT_EXPR:
5702 : 0 : {
5703 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
5704 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
5705 : : {
5706 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
5707 : : {
5708 : 0 : {
5709 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q20 };
5710 : 0 : tree res = generic_simplify_156 (loc, type, _p0, _p1, captures);
5711 : 0 : if (res) return res;
5712 : : }
5713 : : }
5714 : : }
5715 : : break;
5716 : : }
5717 : : default:;
5718 : : }
5719 : : break;
5720 : : }
5721 : : default:;
5722 : : }
5723 : : break;
5724 : : }
5725 : 1252 : default:;
5726 : : }
5727 : 1252 : switch (TREE_CODE (_p1))
5728 : : {
5729 : 24 : CASE_CONVERT:
5730 : 24 : {
5731 : 24 : tree _q50 = TREE_OPERAND (_p1, 0);
5732 : 24 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
5733 : : {
5734 : 0 : {
5735 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q20 };
5736 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
5737 : 0 : if (res) return res;
5738 : : }
5739 : : }
5740 : 24 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q21, 0))
5741 : : {
5742 : 0 : {
5743 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q21 };
5744 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
5745 : 0 : if (res) return res;
5746 : : }
5747 : : }
5748 : : break;
5749 : : }
5750 : 1252 : default:;
5751 : : }
5752 : 1252 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q20, 0))
5753 : : {
5754 : 3 : {
5755 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q20 };
5756 : 3 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
5757 : 3 : if (res) return res;
5758 : : }
5759 : : }
5760 : 1249 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q21, 0))
5761 : : {
5762 : 3 : {
5763 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q21 };
5764 : 3 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
5765 : 3 : if (res) return res;
5766 : : }
5767 : : }
5768 : 1246 : {
5769 : 1246 : tree _q20_pops[1];
5770 : 1246 : if (tree_nop_convert (_q20, _q20_pops))
5771 : : {
5772 : 8 : tree _q30 = _q20_pops[0];
5773 : 8 : switch (TREE_CODE (_q30))
5774 : : {
5775 : 8 : case BIT_NOT_EXPR:
5776 : 8 : {
5777 : 8 : tree _q40 = TREE_OPERAND (_q30, 0);
5778 : 8 : {
5779 : 8 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q21, _p1 };
5780 : 8 : tree res = generic_simplify_158 (loc, type, _p0, _p1, captures);
5781 : 8 : if (res) return res;
5782 : : }
5783 : 0 : break;
5784 : : }
5785 : : default:;
5786 : : }
5787 : : }
5788 : : }
5789 : 1238 : switch (TREE_CODE (_q21))
5790 : : {
5791 : 62 : case BIT_NOT_EXPR:
5792 : 62 : {
5793 : 62 : tree _q40 = TREE_OPERAND (_q21, 0);
5794 : 62 : {
5795 : 62 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q20, _p1 };
5796 : 62 : tree res = generic_simplify_158 (loc, type, _p0, _p1, captures);
5797 : 62 : if (res) return res;
5798 : : }
5799 : 54 : break;
5800 : : }
5801 : 1230 : default:;
5802 : : }
5803 : 1230 : {
5804 : 1230 : tree _q21_pops[1];
5805 : 1230 : if (tree_nop_convert (_q21, _q21_pops))
5806 : : {
5807 : 0 : tree _q40 = _q21_pops[0];
5808 : 0 : switch (TREE_CODE (_q40))
5809 : : {
5810 : 0 : case BIT_NOT_EXPR:
5811 : 0 : {
5812 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
5813 : 0 : {
5814 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q20, _p1 };
5815 : 0 : tree res = generic_simplify_158 (loc, type, _p0, _p1, captures);
5816 : 0 : if (res) return res;
5817 : : }
5818 : 0 : break;
5819 : : }
5820 : : default:;
5821 : : }
5822 : : }
5823 : : }
5824 : 1230 : break;
5825 : : }
5826 : 3897 : case BIT_XOR_EXPR:
5827 : 3897 : {
5828 : 3897 : tree _q20 = TREE_OPERAND (_p0, 0);
5829 : 3897 : tree _q21 = TREE_OPERAND (_p0, 1);
5830 : 3897 : switch (TREE_CODE (_p1))
5831 : : {
5832 : 203 : case BIT_IOR_EXPR:
5833 : 203 : {
5834 : 203 : tree _q50 = TREE_OPERAND (_p1, 0);
5835 : 203 : tree _q51 = TREE_OPERAND (_p1, 1);
5836 : 203 : switch (TREE_CODE (_q50))
5837 : : {
5838 : 1 : case BIT_NOT_EXPR:
5839 : 1 : {
5840 : 1 : tree _q60 = TREE_OPERAND (_q50, 0);
5841 : 1 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
5842 : : {
5843 : 1 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5844 : : {
5845 : 1 : {
5846 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q20, _q21, _p0 };
5847 : 1 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
5848 : 1 : if (res) return res;
5849 : : }
5850 : : }
5851 : : }
5852 : : break;
5853 : : }
5854 : 202 : default:;
5855 : : }
5856 : 202 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
5857 : : {
5858 : 0 : switch (TREE_CODE (_q51))
5859 : : {
5860 : 0 : case BIT_NOT_EXPR:
5861 : 0 : {
5862 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
5863 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
5864 : : {
5865 : 0 : {
5866 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q20, _q21, _p0 };
5867 : 0 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
5868 : 0 : if (res) return res;
5869 : : }
5870 : : }
5871 : : break;
5872 : : }
5873 : : default:;
5874 : : }
5875 : : }
5876 : 202 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5877 : : {
5878 : 1 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5879 : : {
5880 : 0 : {
5881 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5882 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
5883 : 0 : if (res) return res;
5884 : : }
5885 : : }
5886 : : }
5887 : : break;
5888 : : }
5889 : 41 : case BIT_AND_EXPR:
5890 : 41 : {
5891 : 41 : tree _q50 = TREE_OPERAND (_p1, 0);
5892 : 41 : tree _q51 = TREE_OPERAND (_p1, 1);
5893 : 41 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5894 : : {
5895 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5896 : : {
5897 : 0 : {
5898 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5899 : 0 : tree res = generic_simplify_9 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5900 : 0 : if (res) return res;
5901 : : }
5902 : : }
5903 : : }
5904 : : break;
5905 : : }
5906 : 198 : CASE_CONVERT:
5907 : 198 : {
5908 : 198 : tree _q50 = TREE_OPERAND (_p1, 0);
5909 : 198 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q21, 0))
5910 : : {
5911 : 0 : {
5912 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q21 };
5913 : 0 : tree res = generic_simplify_162 (loc, type, _p0, _p1, captures);
5914 : 0 : if (res) return res;
5915 : : }
5916 : : }
5917 : 198 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
5918 : : {
5919 : 0 : {
5920 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q20 };
5921 : 0 : tree res = generic_simplify_162 (loc, type, _p0, _p1, captures);
5922 : 0 : if (res) return res;
5923 : : }
5924 : : }
5925 : : break;
5926 : : }
5927 : 3896 : default:;
5928 : : }
5929 : 3896 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q21, 0))
5930 : : {
5931 : 0 : {
5932 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q21 };
5933 : 0 : tree res = generic_simplify_162 (loc, type, _p0, _p1, captures);
5934 : 0 : if (res) return res;
5935 : : }
5936 : : }
5937 : 3896 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q20, 0))
5938 : : {
5939 : 11 : {
5940 : 11 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q20 };
5941 : 11 : tree res = generic_simplify_162 (loc, type, _p0, _p1, captures);
5942 : 11 : if (res) return res;
5943 : : }
5944 : : }
5945 : : break;
5946 : : }
5947 : 2843 : case BIT_AND_EXPR:
5948 : 2843 : {
5949 : 2843 : tree _q20 = TREE_OPERAND (_p0, 0);
5950 : 2843 : tree _q21 = TREE_OPERAND (_p0, 1);
5951 : 2843 : switch (TREE_CODE (_p1))
5952 : : {
5953 : 74 : case BIT_IOR_EXPR:
5954 : 74 : {
5955 : 74 : tree _q50 = TREE_OPERAND (_p1, 0);
5956 : 74 : tree _q51 = TREE_OPERAND (_p1, 1);
5957 : 74 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5958 : : {
5959 : 18 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5960 : : {
5961 : 0 : {
5962 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5963 : 0 : tree res = generic_simplify_159 (loc, type, _p0, _p1, captures);
5964 : 0 : if (res) return res;
5965 : : }
5966 : : }
5967 : : }
5968 : : break;
5969 : : }
5970 : 30 : case BIT_XOR_EXPR:
5971 : 30 : {
5972 : 30 : tree _q50 = TREE_OPERAND (_p1, 0);
5973 : 30 : tree _q51 = TREE_OPERAND (_p1, 1);
5974 : 30 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5975 : : {
5976 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5977 : : {
5978 : 0 : {
5979 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5980 : 0 : tree res = generic_simplify_9 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5981 : 0 : if (res) return res;
5982 : : }
5983 : : }
5984 : : }
5985 : : break;
5986 : : }
5987 : 2843 : default:;
5988 : : }
5989 : 2843 : switch (TREE_CODE (_q21))
5990 : : {
5991 : 1018 : case INTEGER_CST:
5992 : 1018 : {
5993 : 1018 : switch (TREE_CODE (_p1))
5994 : : {
5995 : 15 : CASE_CONVERT:
5996 : 15 : {
5997 : 15 : tree _q50 = TREE_OPERAND (_p1, 0);
5998 : 15 : switch (TREE_CODE (_q50))
5999 : : {
6000 : 0 : case BIT_AND_EXPR:
6001 : 0 : {
6002 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
6003 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
6004 : 0 : switch (TREE_CODE (_q61))
6005 : : {
6006 : 0 : case INTEGER_CST:
6007 : 0 : {
6008 : 0 : {
6009 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50, _q60, _q61 };
6010 : 0 : tree res = generic_simplify_11 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
6011 : 0 : if (res) return res;
6012 : : }
6013 : 0 : break;
6014 : : }
6015 : : default:;
6016 : : }
6017 : : break;
6018 : : }
6019 : : default:;
6020 : : }
6021 : : break;
6022 : : }
6023 : 210 : case BIT_AND_EXPR:
6024 : 210 : {
6025 : 210 : tree _q50 = TREE_OPERAND (_p1, 0);
6026 : 210 : tree _q51 = TREE_OPERAND (_p1, 1);
6027 : 210 : switch (TREE_CODE (_q51))
6028 : : {
6029 : 210 : case INTEGER_CST:
6030 : 210 : {
6031 : 210 : {
6032 : 210 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
6033 : 210 : tree res = generic_simplify_11 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
6034 : 210 : if (res) return res;
6035 : : }
6036 : 209 : break;
6037 : : }
6038 : : default:;
6039 : : }
6040 : : break;
6041 : : }
6042 : : default:;
6043 : : }
6044 : : break;
6045 : : }
6046 : : default:;
6047 : : }
6048 : : break;
6049 : : }
6050 : 511434 : CASE_CONVERT:
6051 : 511434 : {
6052 : 511434 : tree _q20 = TREE_OPERAND (_p0, 0);
6053 : 511434 : switch (TREE_CODE (_q20))
6054 : : {
6055 : 24 : case BIT_AND_EXPR:
6056 : 24 : {
6057 : 24 : tree _q30 = TREE_OPERAND (_q20, 0);
6058 : 24 : tree _q31 = TREE_OPERAND (_q20, 1);
6059 : 24 : switch (TREE_CODE (_q31))
6060 : : {
6061 : 0 : case INTEGER_CST:
6062 : 0 : {
6063 : 0 : switch (TREE_CODE (_p1))
6064 : : {
6065 : 0 : CASE_CONVERT:
6066 : 0 : {
6067 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
6068 : 0 : switch (TREE_CODE (_q60))
6069 : : {
6070 : 0 : case BIT_AND_EXPR:
6071 : 0 : {
6072 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
6073 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
6074 : 0 : switch (TREE_CODE (_q71))
6075 : : {
6076 : 0 : case INTEGER_CST:
6077 : 0 : {
6078 : 0 : {
6079 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q60, _q70, _q71 };
6080 : 0 : tree res = generic_simplify_11 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
6081 : 0 : if (res) return res;
6082 : : }
6083 : 0 : break;
6084 : : }
6085 : : default:;
6086 : : }
6087 : : break;
6088 : : }
6089 : : default:;
6090 : : }
6091 : : break;
6092 : : }
6093 : 0 : case BIT_AND_EXPR:
6094 : 0 : {
6095 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
6096 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
6097 : 0 : switch (TREE_CODE (_q61))
6098 : : {
6099 : 0 : case INTEGER_CST:
6100 : 0 : {
6101 : 0 : {
6102 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _p1, _q60, _q61 };
6103 : 0 : tree res = generic_simplify_11 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
6104 : 0 : if (res) return res;
6105 : : }
6106 : 0 : break;
6107 : : }
6108 : : default:;
6109 : : }
6110 : : break;
6111 : : }
6112 : : default:;
6113 : : }
6114 : : break;
6115 : : }
6116 : : default:;
6117 : : }
6118 : : break;
6119 : : }
6120 : 17 : case BIT_IOR_EXPR:
6121 : 17 : {
6122 : 17 : tree _q30 = TREE_OPERAND (_q20, 0);
6123 : 17 : tree _q31 = TREE_OPERAND (_q20, 1);
6124 : 17 : switch (TREE_CODE (_p1))
6125 : : {
6126 : 16 : CASE_CONVERT:
6127 : 16 : {
6128 : 16 : tree _q60 = TREE_OPERAND (_p1, 0);
6129 : 16 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q30, 0))
6130 : : {
6131 : 0 : {
6132 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q30 };
6133 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6134 : 0 : if (res) return res;
6135 : : }
6136 : : }
6137 : 16 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q31, 0))
6138 : : {
6139 : 0 : {
6140 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q31 };
6141 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6142 : 0 : if (res) return res;
6143 : : }
6144 : : }
6145 : : break;
6146 : : }
6147 : 17 : default:;
6148 : : }
6149 : 17 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q30, 0))
6150 : : {
6151 : 0 : {
6152 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q30 };
6153 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6154 : 0 : if (res) return res;
6155 : : }
6156 : : }
6157 : 17 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q31, 0))
6158 : : {
6159 : 0 : {
6160 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q31 };
6161 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6162 : 0 : if (res) return res;
6163 : : }
6164 : : }
6165 : : break;
6166 : : }
6167 : 511434 : default:;
6168 : : }
6169 : 511434 : switch (TREE_CODE (_p1))
6170 : : {
6171 : 507544 : CASE_CONVERT:
6172 : 507544 : {
6173 : 507544 : tree _q40 = TREE_OPERAND (_p1, 0);
6174 : 507544 : switch (TREE_CODE (_q40))
6175 : : {
6176 : 0 : case BIT_IOR_EXPR:
6177 : 0 : {
6178 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
6179 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
6180 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
6181 : : {
6182 : 0 : {
6183 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q51, _q20 };
6184 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6185 : 0 : if (res) return res;
6186 : : }
6187 : : }
6188 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q20, 0))
6189 : : {
6190 : 0 : {
6191 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q51, _q50, _q20 };
6192 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6193 : 0 : if (res) return res;
6194 : : }
6195 : : }
6196 : : break;
6197 : : }
6198 : : default:;
6199 : : }
6200 : : break;
6201 : : }
6202 : 26 : case BIT_IOR_EXPR:
6203 : 26 : {
6204 : 26 : tree _q40 = TREE_OPERAND (_p1, 0);
6205 : 26 : tree _q41 = TREE_OPERAND (_p1, 1);
6206 : 26 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _q20, 0))
6207 : : {
6208 : 0 : {
6209 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _q20 };
6210 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6211 : 0 : if (res) return res;
6212 : : }
6213 : : }
6214 : 26 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _q20, 0))
6215 : : {
6216 : 0 : {
6217 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _q20 };
6218 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6219 : 0 : if (res) return res;
6220 : : }
6221 : : }
6222 : : break;
6223 : : }
6224 : : default:;
6225 : : }
6226 : : break;
6227 : : }
6228 : 706787 : default:;
6229 : : }
6230 : 706787 : switch (TREE_CODE (_p1))
6231 : : {
6232 : 552017 : CASE_CONVERT:
6233 : 552017 : {
6234 : 552017 : tree _q30 = TREE_OPERAND (_p1, 0);
6235 : 552017 : switch (TREE_CODE (_q30))
6236 : : {
6237 : 6 : case BIT_IOR_EXPR:
6238 : 6 : {
6239 : 6 : tree _q40 = TREE_OPERAND (_q30, 0);
6240 : 6 : tree _q41 = TREE_OPERAND (_q30, 1);
6241 : 6 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _p0, 0))
6242 : : {
6243 : 0 : {
6244 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _p0 };
6245 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6246 : 0 : if (res) return res;
6247 : : }
6248 : : }
6249 : 6 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _p0, 0))
6250 : : {
6251 : 0 : {
6252 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _p0 };
6253 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6254 : 0 : if (res) return res;
6255 : : }
6256 : : }
6257 : : break;
6258 : : }
6259 : : default:;
6260 : : }
6261 : : break;
6262 : : }
6263 : 518 : case BIT_IOR_EXPR:
6264 : 518 : {
6265 : 518 : tree _q30 = TREE_OPERAND (_p1, 0);
6266 : 518 : tree _q31 = TREE_OPERAND (_p1, 1);
6267 : 518 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || operand_equal_p (_q30, _p0, 0))
6268 : : {
6269 : 1 : {
6270 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p0 };
6271 : 1 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6272 : 1 : if (res) return res;
6273 : : }
6274 : : }
6275 : 517 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || operand_equal_p (_q31, _p0, 0))
6276 : : {
6277 : 1 : {
6278 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _p0 };
6279 : 1 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6280 : 1 : if (res) return res;
6281 : : }
6282 : : }
6283 : : break;
6284 : : }
6285 : 706785 : default:;
6286 : : }
6287 : 706785 : {
6288 : 706785 : tree _p0_pops[1];
6289 : 706785 : if (tree_nop_convert (_p0, _p0_pops))
6290 : : {
6291 : 492163 : tree _q20 = _p0_pops[0];
6292 : 492163 : switch (TREE_CODE (_q20))
6293 : : {
6294 : 16 : case BIT_IOR_EXPR:
6295 : 16 : {
6296 : 16 : tree _q30 = TREE_OPERAND (_q20, 0);
6297 : 16 : tree _q31 = TREE_OPERAND (_q20, 1);
6298 : 16 : {
6299 : 16 : tree _q30_pops[1];
6300 : 16 : if (tree_nop_convert (_q30, _q30_pops))
6301 : : {
6302 : 0 : tree _q40 = _q30_pops[0];
6303 : 0 : switch (TREE_CODE (_q40))
6304 : : {
6305 : 0 : case BIT_NOT_EXPR:
6306 : 0 : {
6307 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
6308 : 0 : {
6309 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q31, _p1 };
6310 : 0 : tree res = generic_simplify_158 (loc, type, _p0, _p1, captures);
6311 : 0 : if (res) return res;
6312 : : }
6313 : 0 : break;
6314 : : }
6315 : : default:;
6316 : : }
6317 : : }
6318 : : }
6319 : 16 : {
6320 : 16 : tree _q31_pops[1];
6321 : 16 : if (tree_nop_convert (_q31, _q31_pops))
6322 : : {
6323 : 0 : tree _q50 = _q31_pops[0];
6324 : 0 : switch (TREE_CODE (_q50))
6325 : : {
6326 : 0 : case BIT_NOT_EXPR:
6327 : 0 : {
6328 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
6329 : 0 : {
6330 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q60, _q30, _p1 };
6331 : 0 : tree res = generic_simplify_158 (loc, type, _p0, _p1, captures);
6332 : 0 : if (res) return res;
6333 : : }
6334 : 0 : break;
6335 : : }
6336 : : default:;
6337 : : }
6338 : : }
6339 : : }
6340 : 16 : switch (TREE_CODE (_q30))
6341 : : {
6342 : 16 : case BIT_NOT_EXPR:
6343 : 16 : {
6344 : 16 : tree _q40 = TREE_OPERAND (_q30, 0);
6345 : 16 : {
6346 : 16 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q31, _p1 };
6347 : 16 : tree res = generic_simplify_158 (loc, type, _p0, _p1, captures);
6348 : 16 : if (res) return res;
6349 : : }
6350 : 0 : break;
6351 : : }
6352 : 0 : default:;
6353 : : }
6354 : 0 : switch (TREE_CODE (_q31))
6355 : : {
6356 : 0 : case BIT_NOT_EXPR:
6357 : 0 : {
6358 : 0 : tree _q50 = TREE_OPERAND (_q31, 0);
6359 : 0 : {
6360 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q30, _p1 };
6361 : 0 : tree res = generic_simplify_158 (loc, type, _p0, _p1, captures);
6362 : 0 : if (res) return res;
6363 : : }
6364 : 0 : break;
6365 : : }
6366 : : default:;
6367 : : }
6368 : : break;
6369 : : }
6370 : : default:;
6371 : : }
6372 : : }
6373 : : }
6374 : 706769 : switch (TREE_CODE (_p1))
6375 : : {
6376 : 516 : case BIT_IOR_EXPR:
6377 : 516 : {
6378 : 516 : tree _q30 = TREE_OPERAND (_p1, 0);
6379 : 516 : tree _q31 = TREE_OPERAND (_p1, 1);
6380 : 516 : {
6381 : 516 : tree _q30_pops[1];
6382 : 516 : if (tree_nop_convert (_q30, _q30_pops))
6383 : : {
6384 : 2 : tree _q40 = _q30_pops[0];
6385 : 2 : switch (TREE_CODE (_q40))
6386 : : {
6387 : 0 : case BIT_NOT_EXPR:
6388 : 0 : {
6389 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
6390 : 0 : {
6391 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q31, _p0 };
6392 : 0 : tree res = generic_simplify_158 (loc, type, _p0, _p1, captures);
6393 : 0 : if (res) return res;
6394 : : }
6395 : 0 : break;
6396 : : }
6397 : : default:;
6398 : : }
6399 : : }
6400 : : }
6401 : 516 : {
6402 : 516 : tree _q31_pops[1];
6403 : 516 : if (tree_nop_convert (_q31, _q31_pops))
6404 : : {
6405 : 2 : tree _q50 = _q31_pops[0];
6406 : 2 : switch (TREE_CODE (_q50))
6407 : : {
6408 : 0 : case BIT_NOT_EXPR:
6409 : 0 : {
6410 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
6411 : 0 : {
6412 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q60, _q30, _p0 };
6413 : 0 : tree res = generic_simplify_158 (loc, type, _p0, _p1, captures);
6414 : 0 : if (res) return res;
6415 : : }
6416 : 0 : break;
6417 : : }
6418 : : default:;
6419 : : }
6420 : : }
6421 : : }
6422 : 516 : switch (TREE_CODE (_q30))
6423 : : {
6424 : 18 : case BIT_NOT_EXPR:
6425 : 18 : {
6426 : 18 : tree _q40 = TREE_OPERAND (_q30, 0);
6427 : 18 : {
6428 : 18 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q31, _p0 };
6429 : 18 : tree res = generic_simplify_158 (loc, type, _p0, _p1, captures);
6430 : 18 : if (res) return res;
6431 : : }
6432 : 18 : break;
6433 : : }
6434 : 516 : default:;
6435 : : }
6436 : 516 : switch (TREE_CODE (_q31))
6437 : : {
6438 : 25 : case BIT_NOT_EXPR:
6439 : 25 : {
6440 : 25 : tree _q50 = TREE_OPERAND (_q31, 0);
6441 : 25 : {
6442 : 25 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q30, _p0 };
6443 : 25 : tree res = generic_simplify_158 (loc, type, _p0, _p1, captures);
6444 : 25 : if (res) return res;
6445 : : }
6446 : 17 : break;
6447 : : }
6448 : : default:;
6449 : : }
6450 : : break;
6451 : : }
6452 : 706761 : default:;
6453 : : }
6454 : 706761 : {
6455 : 706761 : tree _p1_pops[1];
6456 : 706761 : if (tree_nop_convert (_p1, _p1_pops))
6457 : : {
6458 : 535052 : tree _q30 = _p1_pops[0];
6459 : 535052 : switch (TREE_CODE (_q30))
6460 : : {
6461 : 0 : case BIT_IOR_EXPR:
6462 : 0 : {
6463 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
6464 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
6465 : 0 : {
6466 : 0 : tree _q40_pops[1];
6467 : 0 : if (tree_nop_convert (_q40, _q40_pops))
6468 : : {
6469 : 0 : tree _q50 = _q40_pops[0];
6470 : 0 : switch (TREE_CODE (_q50))
6471 : : {
6472 : 0 : case BIT_NOT_EXPR:
6473 : 0 : {
6474 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
6475 : 0 : {
6476 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q60, _q41, _p0 };
6477 : 0 : tree res = generic_simplify_158 (loc, type, _p0, _p1, captures);
6478 : 0 : if (res) return res;
6479 : : }
6480 : 0 : break;
6481 : : }
6482 : : default:;
6483 : : }
6484 : : }
6485 : : }
6486 : 0 : {
6487 : 0 : tree _q41_pops[1];
6488 : 0 : if (tree_nop_convert (_q41, _q41_pops))
6489 : : {
6490 : 0 : tree _q60 = _q41_pops[0];
6491 : 0 : switch (TREE_CODE (_q60))
6492 : : {
6493 : 0 : case BIT_NOT_EXPR:
6494 : 0 : {
6495 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
6496 : 0 : {
6497 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q70, _q40, _p0 };
6498 : 0 : tree res = generic_simplify_158 (loc, type, _p0, _p1, captures);
6499 : 0 : if (res) return res;
6500 : : }
6501 : 0 : break;
6502 : : }
6503 : : default:;
6504 : : }
6505 : : }
6506 : : }
6507 : 0 : switch (TREE_CODE (_q40))
6508 : : {
6509 : 0 : case BIT_NOT_EXPR:
6510 : 0 : {
6511 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
6512 : 0 : {
6513 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q41, _p0 };
6514 : 0 : tree res = generic_simplify_158 (loc, type, _p0, _p1, captures);
6515 : 0 : if (res) return res;
6516 : : }
6517 : 0 : break;
6518 : : }
6519 : 0 : default:;
6520 : : }
6521 : 0 : switch (TREE_CODE (_q41))
6522 : : {
6523 : 0 : case BIT_NOT_EXPR:
6524 : 0 : {
6525 : 0 : tree _q60 = TREE_OPERAND (_q41, 0);
6526 : 0 : {
6527 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q60, _q40, _p0 };
6528 : 0 : tree res = generic_simplify_158 (loc, type, _p0, _p1, captures);
6529 : 0 : if (res) return res;
6530 : : }
6531 : 0 : break;
6532 : : }
6533 : : default:;
6534 : : }
6535 : : break;
6536 : : }
6537 : : default:;
6538 : : }
6539 : : }
6540 : : }
6541 : 706761 : switch (TREE_CODE (_p0))
6542 : : {
6543 : 511410 : CASE_CONVERT:
6544 : 511410 : {
6545 : 511410 : tree _q20 = TREE_OPERAND (_p0, 0);
6546 : 511410 : switch (TREE_CODE (_q20))
6547 : : {
6548 : 50 : case BIT_NOT_EXPR:
6549 : 50 : {
6550 : 50 : tree _q30 = TREE_OPERAND (_q20, 0);
6551 : 50 : switch (TREE_CODE (_p1))
6552 : : {
6553 : 0 : CASE_CONVERT:
6554 : 0 : {
6555 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
6556 : 0 : switch (TREE_CODE (_q50))
6557 : : {
6558 : 0 : case BIT_NOT_EXPR:
6559 : 0 : {
6560 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
6561 : 0 : {
6562 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q60 };
6563 : 0 : tree res = generic_simplify_163 (loc, type, _p0, _p1, captures);
6564 : 0 : if (res) return res;
6565 : : }
6566 : 0 : break;
6567 : : }
6568 : : default:;
6569 : : }
6570 : : break;
6571 : : }
6572 : 0 : case BIT_NOT_EXPR:
6573 : 0 : {
6574 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
6575 : 0 : {
6576 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q50 };
6577 : 0 : tree res = generic_simplify_163 (loc, type, _p0, _p1, captures);
6578 : 0 : if (res) return res;
6579 : : }
6580 : 0 : break;
6581 : : }
6582 : 26 : case INTEGER_CST:
6583 : 26 : {
6584 : 26 : {
6585 : 26 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p1 };
6586 : 26 : tree res = generic_simplify_164 (loc, type, _p0, _p1, captures);
6587 : 26 : if (res) return res;
6588 : : }
6589 : 24 : break;
6590 : : }
6591 : : default:;
6592 : : }
6593 : : break;
6594 : : }
6595 : : default:;
6596 : : }
6597 : : break;
6598 : : }
6599 : 477 : case BIT_NOT_EXPR:
6600 : 477 : {
6601 : 477 : tree _q20 = TREE_OPERAND (_p0, 0);
6602 : 477 : switch (TREE_CODE (_p1))
6603 : : {
6604 : 18 : CASE_CONVERT:
6605 : 18 : {
6606 : 18 : tree _q40 = TREE_OPERAND (_p1, 0);
6607 : 18 : switch (TREE_CODE (_q40))
6608 : : {
6609 : 0 : case BIT_NOT_EXPR:
6610 : 0 : {
6611 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
6612 : 0 : {
6613 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q50 };
6614 : 0 : tree res = generic_simplify_163 (loc, type, _p0, _p1, captures);
6615 : 0 : if (res) return res;
6616 : : }
6617 : 0 : break;
6618 : : }
6619 : : default:;
6620 : : }
6621 : : break;
6622 : : }
6623 : 10 : case BIT_NOT_EXPR:
6624 : 10 : {
6625 : 10 : tree _q40 = TREE_OPERAND (_p1, 0);
6626 : 10 : {
6627 : 10 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
6628 : 10 : tree res = generic_simplify_163 (loc, type, _p0, _p1, captures);
6629 : 10 : if (res) return res;
6630 : : }
6631 : 0 : break;
6632 : : }
6633 : 24 : case INTEGER_CST:
6634 : 24 : {
6635 : 24 : {
6636 : 24 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
6637 : 24 : tree res = generic_simplify_164 (loc, type, _p0, _p1, captures);
6638 : 24 : if (res) return res;
6639 : : }
6640 : 0 : break;
6641 : : }
6642 : 443 : default:;
6643 : : }
6644 : 443 : {
6645 : 443 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _p1 };
6646 : 443 : tree res = generic_simplify_165 (loc, type, _p0, _p1, captures);
6647 : 443 : if (res) return res;
6648 : : }
6649 : 0 : break;
6650 : : }
6651 : 2840 : case BIT_AND_EXPR:
6652 : 2840 : {
6653 : 2840 : tree _q20 = TREE_OPERAND (_p0, 0);
6654 : 2840 : tree _q21 = TREE_OPERAND (_p0, 1);
6655 : 2840 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6656 : : {
6657 : 75 : {
6658 : 75 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
6659 : 75 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6660 : 75 : if (res) return res;
6661 : : }
6662 : : }
6663 : 2765 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
6664 : : {
6665 : 3 : {
6666 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
6667 : 3 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6668 : 3 : if (res) return res;
6669 : : }
6670 : : }
6671 : 2762 : switch (TREE_CODE (_p1))
6672 : : {
6673 : 353 : case BIT_AND_EXPR:
6674 : 353 : {
6675 : 353 : tree _q50 = TREE_OPERAND (_p1, 0);
6676 : 353 : tree _q51 = TREE_OPERAND (_p1, 1);
6677 : 353 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
6678 : : {
6679 : 21 : {
6680 : 21 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q51, _q20 };
6681 : 21 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6682 : 21 : if (res) return res;
6683 : : }
6684 : : }
6685 : 332 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q20, 0))
6686 : : {
6687 : 0 : {
6688 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q50, _q20 };
6689 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6690 : 0 : if (res) return res;
6691 : : }
6692 : : }
6693 : 332 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q21, 0))
6694 : : {
6695 : 0 : {
6696 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q51, _q21 };
6697 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6698 : 0 : if (res) return res;
6699 : : }
6700 : : }
6701 : 332 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q21, 0))
6702 : : {
6703 : 201 : {
6704 : 201 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q50, _q21 };
6705 : 201 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6706 : 201 : if (res) return res;
6707 : : }
6708 : : }
6709 : : break;
6710 : : }
6711 : : default:;
6712 : : }
6713 : : break;
6714 : : }
6715 : 705982 : default:;
6716 : : }
6717 : 705982 : switch (TREE_CODE (_p1))
6718 : : {
6719 : 431 : case BIT_AND_EXPR:
6720 : 431 : {
6721 : 431 : tree _q30 = TREE_OPERAND (_p1, 0);
6722 : 431 : tree _q31 = TREE_OPERAND (_p1, 1);
6723 : 431 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
6724 : : {
6725 : 0 : {
6726 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q30, _p0 };
6727 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6728 : 0 : if (res) return res;
6729 : : }
6730 : : }
6731 : 431 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
6732 : : {
6733 : 0 : {
6734 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q31, _p0 };
6735 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6736 : 0 : if (res) return res;
6737 : : }
6738 : : }
6739 : : break;
6740 : : }
6741 : 705982 : default:;
6742 : : }
6743 : 705982 : switch (TREE_CODE (_p0))
6744 : : {
6745 : 511408 : CASE_CONVERT:
6746 : 511408 : {
6747 : 511408 : tree _q20 = TREE_OPERAND (_p0, 0);
6748 : 511408 : switch (TREE_CODE (_q20))
6749 : : {
6750 : 24 : case BIT_AND_EXPR:
6751 : 24 : {
6752 : 24 : tree _q30 = TREE_OPERAND (_q20, 0);
6753 : 24 : tree _q31 = TREE_OPERAND (_q20, 1);
6754 : 24 : switch (TREE_CODE (_p1))
6755 : : {
6756 : 8 : CASE_CONVERT:
6757 : 8 : {
6758 : 8 : tree _q60 = TREE_OPERAND (_p1, 0);
6759 : 8 : switch (TREE_CODE (_q60))
6760 : : {
6761 : 0 : case BIT_AND_EXPR:
6762 : 0 : {
6763 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
6764 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
6765 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q30, 0))
6766 : : {
6767 : 0 : {
6768 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q71, _q30 };
6769 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6770 : 0 : if (res) return res;
6771 : : }
6772 : : }
6773 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || operand_equal_p (_q71, _q30, 0))
6774 : : {
6775 : 0 : {
6776 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q70, _q30 };
6777 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6778 : 0 : if (res) return res;
6779 : : }
6780 : : }
6781 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q31, 0))
6782 : : {
6783 : 0 : {
6784 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q31, _q30, _q71, _q31 };
6785 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6786 : 0 : if (res) return res;
6787 : : }
6788 : : }
6789 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || operand_equal_p (_q71, _q31, 0))
6790 : : {
6791 : 0 : {
6792 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q31, _q30, _q70, _q31 };
6793 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6794 : 0 : if (res) return res;
6795 : : }
6796 : : }
6797 : : break;
6798 : : }
6799 : : default:;
6800 : : }
6801 : : break;
6802 : : }
6803 : : default:;
6804 : : }
6805 : : break;
6806 : : }
6807 : 15548 : case BIT_XOR_EXPR:
6808 : 15548 : {
6809 : 15548 : tree _q30 = TREE_OPERAND (_q20, 0);
6810 : 15548 : tree _q31 = TREE_OPERAND (_q20, 1);
6811 : 15548 : switch (TREE_CODE (_p1))
6812 : : {
6813 : 15483 : CASE_CONVERT:
6814 : 15483 : {
6815 : 15483 : tree _q60 = TREE_OPERAND (_p1, 0);
6816 : 15483 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q31, 0))
6817 : : {
6818 : 0 : {
6819 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q31 };
6820 : 0 : tree res = generic_simplify_162 (loc, type, _p0, _p1, captures);
6821 : 0 : if (res) return res;
6822 : : }
6823 : : }
6824 : 15483 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q30, 0))
6825 : : {
6826 : 0 : {
6827 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q30 };
6828 : 0 : tree res = generic_simplify_162 (loc, type, _p0, _p1, captures);
6829 : 0 : if (res) return res;
6830 : : }
6831 : : }
6832 : : break;
6833 : : }
6834 : 15548 : default:;
6835 : : }
6836 : 15548 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q31, 0))
6837 : : {
6838 : 0 : {
6839 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q31 };
6840 : 0 : tree res = generic_simplify_162 (loc, type, _p0, _p1, captures);
6841 : 0 : if (res) return res;
6842 : : }
6843 : : }
6844 : 15548 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q30, 0))
6845 : : {
6846 : 0 : {
6847 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q30 };
6848 : 0 : tree res = generic_simplify_162 (loc, type, _p0, _p1, captures);
6849 : 0 : if (res) return res;
6850 : : }
6851 : : }
6852 : : break;
6853 : : }
6854 : 511408 : default:;
6855 : : }
6856 : 511408 : switch (TREE_CODE (_p1))
6857 : : {
6858 : 507528 : CASE_CONVERT:
6859 : 507528 : {
6860 : 507528 : tree _q40 = TREE_OPERAND (_p1, 0);
6861 : 507528 : switch (TREE_CODE (_q40))
6862 : : {
6863 : 0 : case BIT_XOR_EXPR:
6864 : 0 : {
6865 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
6866 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
6867 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q20, 0))
6868 : : {
6869 : 0 : {
6870 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q51, _q20 };
6871 : 0 : tree res = generic_simplify_162 (loc, type, _p0, _p1, captures);
6872 : 0 : if (res) return res;
6873 : : }
6874 : : }
6875 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
6876 : : {
6877 : 0 : {
6878 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q51, _q50, _q20 };
6879 : 0 : tree res = generic_simplify_162 (loc, type, _p0, _p1, captures);
6880 : 0 : if (res) return res;
6881 : : }
6882 : : }
6883 : : break;
6884 : : }
6885 : : default:;
6886 : : }
6887 : : break;
6888 : : }
6889 : 2 : case BIT_XOR_EXPR:
6890 : 2 : {
6891 : 2 : tree _q40 = TREE_OPERAND (_p1, 0);
6892 : 2 : tree _q41 = TREE_OPERAND (_p1, 1);
6893 : 2 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _q20, 0))
6894 : : {
6895 : 0 : {
6896 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _q20 };
6897 : 0 : tree res = generic_simplify_162 (loc, type, _p0, _p1, captures);
6898 : 0 : if (res) return res;
6899 : : }
6900 : : }
6901 : 2 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _q20, 0))
6902 : : {
6903 : 0 : {
6904 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _q20 };
6905 : 0 : tree res = generic_simplify_162 (loc, type, _p0, _p1, captures);
6906 : 0 : if (res) return res;
6907 : : }
6908 : : }
6909 : : break;
6910 : : }
6911 : : default:;
6912 : : }
6913 : : break;
6914 : : }
6915 : 705982 : default:;
6916 : : }
6917 : 705982 : switch (TREE_CODE (_p1))
6918 : : {
6919 : 551983 : CASE_CONVERT:
6920 : 551983 : {
6921 : 551983 : tree _q30 = TREE_OPERAND (_p1, 0);
6922 : 551983 : switch (TREE_CODE (_q30))
6923 : : {
6924 : 8 : case BIT_XOR_EXPR:
6925 : 8 : {
6926 : 8 : tree _q40 = TREE_OPERAND (_q30, 0);
6927 : 8 : tree _q41 = TREE_OPERAND (_q30, 1);
6928 : 8 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _p0, 0))
6929 : : {
6930 : 0 : {
6931 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _p0 };
6932 : 0 : tree res = generic_simplify_162 (loc, type, _p0, _p1, captures);
6933 : 0 : if (res) return res;
6934 : : }
6935 : : }
6936 : 8 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _p0, 0))
6937 : : {
6938 : 0 : {
6939 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _p0 };
6940 : 0 : tree res = generic_simplify_162 (loc, type, _p0, _p1, captures);
6941 : 0 : if (res) return res;
6942 : : }
6943 : : }
6944 : : break;
6945 : : }
6946 : : default:;
6947 : : }
6948 : : break;
6949 : : }
6950 : 78 : case BIT_XOR_EXPR:
6951 : 78 : {
6952 : 78 : tree _q30 = TREE_OPERAND (_p1, 0);
6953 : 78 : tree _q31 = TREE_OPERAND (_p1, 1);
6954 : 78 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || operand_equal_p (_q31, _p0, 0))
6955 : : {
6956 : 0 : {
6957 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p0 };
6958 : 0 : tree res = generic_simplify_162 (loc, type, _p0, _p1, captures);
6959 : 0 : if (res) return res;
6960 : : }
6961 : : }
6962 : 78 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || operand_equal_p (_q30, _p0, 0))
6963 : : {
6964 : 0 : {
6965 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _p0 };
6966 : 0 : tree res = generic_simplify_162 (loc, type, _p0, _p1, captures);
6967 : 0 : if (res) return res;
6968 : : }
6969 : : }
6970 : : break;
6971 : : }
6972 : 705982 : default:;
6973 : : }
6974 : 705982 : switch (TREE_CODE (_p0))
6975 : : {
6976 : 511408 : CASE_CONVERT:
6977 : 511408 : {
6978 : 511408 : tree _q20 = TREE_OPERAND (_p0, 0);
6979 : 511408 : switch (TREE_CODE (_q20))
6980 : : {
6981 : 15548 : case BIT_XOR_EXPR:
6982 : 15548 : {
6983 : 15548 : tree _q30 = TREE_OPERAND (_q20, 0);
6984 : 15548 : tree _q31 = TREE_OPERAND (_q20, 1);
6985 : 15548 : switch (TREE_CODE (_p1))
6986 : : {
6987 : 15483 : CASE_CONVERT:
6988 : 15483 : {
6989 : 15483 : tree _q60 = TREE_OPERAND (_p1, 0);
6990 : 15483 : switch (TREE_CODE (_q60))
6991 : : {
6992 : 0 : case BIT_XOR_EXPR:
6993 : 0 : {
6994 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
6995 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
6996 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
6997 : : {
6998 : 0 : {
6999 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q71 };
7000 : 0 : tree res = generic_simplify_167 (loc, type, _p0, _p1, captures);
7001 : 0 : if (res) return res;
7002 : : }
7003 : : }
7004 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
7005 : : {
7006 : 0 : {
7007 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q70 };
7008 : 0 : tree res = generic_simplify_167 (loc, type, _p0, _p1, captures);
7009 : 0 : if (res) return res;
7010 : : }
7011 : : }
7012 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
7013 : : {
7014 : 0 : {
7015 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q71 };
7016 : 0 : tree res = generic_simplify_167 (loc, type, _p0, _p1, captures);
7017 : 0 : if (res) return res;
7018 : : }
7019 : : }
7020 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
7021 : : {
7022 : 0 : {
7023 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q70 };
7024 : 0 : tree res = generic_simplify_167 (loc, type, _p0, _p1, captures);
7025 : 0 : if (res) return res;
7026 : : }
7027 : : }
7028 : : break;
7029 : : }
7030 : : default:;
7031 : : }
7032 : : break;
7033 : : }
7034 : 0 : case BIT_XOR_EXPR:
7035 : 0 : {
7036 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
7037 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
7038 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
7039 : : {
7040 : 0 : {
7041 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q61 };
7042 : 0 : tree res = generic_simplify_167 (loc, type, _p0, _p1, captures);
7043 : 0 : if (res) return res;
7044 : : }
7045 : : }
7046 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
7047 : : {
7048 : 0 : {
7049 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q60 };
7050 : 0 : tree res = generic_simplify_167 (loc, type, _p0, _p1, captures);
7051 : 0 : if (res) return res;
7052 : : }
7053 : : }
7054 : 0 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q31, 0) && types_match (_q60, _q31)))
7055 : : {
7056 : 0 : {
7057 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q61 };
7058 : 0 : tree res = generic_simplify_167 (loc, type, _p0, _p1, captures);
7059 : 0 : if (res) return res;
7060 : : }
7061 : : }
7062 : 0 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
7063 : : {
7064 : 0 : {
7065 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q60 };
7066 : 0 : tree res = generic_simplify_167 (loc, type, _p0, _p1, captures);
7067 : 0 : if (res) return res;
7068 : : }
7069 : : }
7070 : : break;
7071 : : }
7072 : : default:;
7073 : : }
7074 : : break;
7075 : : }
7076 : 511408 : default:;
7077 : : }
7078 : 511408 : switch (TREE_CODE (_p1))
7079 : : {
7080 : 507528 : CASE_CONVERT:
7081 : 507528 : {
7082 : 507528 : tree _q40 = TREE_OPERAND (_p1, 0);
7083 : 507528 : {
7084 : 507528 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
7085 : 507528 : tree res = generic_simplify_103 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
7086 : 507528 : if (res) return res;
7087 : : }
7088 : 482959 : break;
7089 : : }
7090 : 486839 : default:;
7091 : : }
7092 : 486839 : {
7093 : 486839 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
7094 : 486839 : tree res = generic_simplify_104 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
7095 : 486839 : if (res) return res;
7096 : : }
7097 : 486731 : break;
7098 : : }
7099 : 3885 : case BIT_XOR_EXPR:
7100 : 3885 : {
7101 : 3885 : tree _q20 = TREE_OPERAND (_p0, 0);
7102 : 3885 : tree _q21 = TREE_OPERAND (_p0, 1);
7103 : 3885 : switch (TREE_CODE (_p1))
7104 : : {
7105 : 198 : CASE_CONVERT:
7106 : 198 : {
7107 : 198 : tree _q50 = TREE_OPERAND (_p1, 0);
7108 : 198 : switch (TREE_CODE (_q50))
7109 : : {
7110 : 0 : case BIT_XOR_EXPR:
7111 : 0 : {
7112 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
7113 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
7114 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
7115 : : {
7116 : 0 : {
7117 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q61 };
7118 : 0 : tree res = generic_simplify_167 (loc, type, _p0, _p1, captures);
7119 : 0 : if (res) return res;
7120 : : }
7121 : : }
7122 : 0 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
7123 : : {
7124 : 0 : {
7125 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q60 };
7126 : 0 : tree res = generic_simplify_167 (loc, type, _p0, _p1, captures);
7127 : 0 : if (res) return res;
7128 : : }
7129 : : }
7130 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
7131 : : {
7132 : 0 : {
7133 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q61 };
7134 : 0 : tree res = generic_simplify_167 (loc, type, _p0, _p1, captures);
7135 : 0 : if (res) return res;
7136 : : }
7137 : : }
7138 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
7139 : : {
7140 : 0 : {
7141 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q60 };
7142 : 0 : tree res = generic_simplify_167 (loc, type, _p0, _p1, captures);
7143 : 0 : if (res) return res;
7144 : : }
7145 : : }
7146 : : break;
7147 : : }
7148 : : default:;
7149 : : }
7150 : : break;
7151 : : }
7152 : 10 : case BIT_XOR_EXPR:
7153 : 10 : {
7154 : 10 : tree _q50 = TREE_OPERAND (_p1, 0);
7155 : 10 : tree _q51 = TREE_OPERAND (_p1, 1);
7156 : 10 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
7157 : : {
7158 : 0 : {
7159 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
7160 : 0 : tree res = generic_simplify_167 (loc, type, _p0, _p1, captures);
7161 : 0 : if (res) return res;
7162 : : }
7163 : : }
7164 : 10 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
7165 : : {
7166 : 0 : {
7167 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
7168 : 0 : tree res = generic_simplify_167 (loc, type, _p0, _p1, captures);
7169 : 0 : if (res) return res;
7170 : : }
7171 : : }
7172 : 10 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7173 : : {
7174 : 0 : {
7175 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
7176 : 0 : tree res = generic_simplify_167 (loc, type, _p0, _p1, captures);
7177 : 0 : if (res) return res;
7178 : : }
7179 : : }
7180 : 10 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7181 : : {
7182 : 0 : {
7183 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
7184 : 0 : tree res = generic_simplify_167 (loc, type, _p0, _p1, captures);
7185 : 0 : if (res) return res;
7186 : : }
7187 : : }
7188 : : break;
7189 : : }
7190 : 3885 : default:;
7191 : : }
7192 : 3885 : if (CONSTANT_CLASS_P (_q21))
7193 : : {
7194 : 49 : if (CONSTANT_CLASS_P (_p1))
7195 : : {
7196 : 30 : {
7197 : 30 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7198 : 30 : tree res = generic_simplify_119 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
7199 : 30 : if (res) return res;
7200 : : }
7201 : : }
7202 : : }
7203 : : break;
7204 : : }
7205 : 63 : case COND_EXPR:
7206 : 63 : {
7207 : 63 : tree _q20 = TREE_OPERAND (_p0, 0);
7208 : 63 : tree _q21 = TREE_OPERAND (_p0, 1);
7209 : 63 : tree _q22 = TREE_OPERAND (_p0, 2);
7210 : 63 : if (integer_zerop (_q22))
7211 : : {
7212 : 63 : switch (TREE_CODE (_p1))
7213 : : {
7214 : 4 : case COND_EXPR:
7215 : 4 : {
7216 : 4 : tree _q60 = TREE_OPERAND (_p1, 0);
7217 : 4 : tree _q61 = TREE_OPERAND (_p1, 1);
7218 : 4 : tree _q62 = TREE_OPERAND (_p1, 2);
7219 : 4 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
7220 : : {
7221 : 0 : if (integer_zerop (_q61))
7222 : : {
7223 : 0 : {
7224 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q62 };
7225 : 0 : const enum tree_code op = BIT_XOR_EXPR;
7226 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1435;
7227 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1435;
7228 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1435;
7229 : 0 : {
7230 : 0 : tree res_op0;
7231 : 0 : res_op0 = captures[1];
7232 : 0 : tree res_op1;
7233 : 0 : res_op1 = captures[2];
7234 : 0 : tree res_op2;
7235 : 0 : res_op2 = captures[4];
7236 : 0 : tree _r;
7237 : 0 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
7238 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 914, __FILE__, __LINE__, true);
7239 : 0 : return _r;
7240 : : }
7241 : 0 : next_after_fail1435:;
7242 : : }
7243 : : }
7244 : : }
7245 : : break;
7246 : : }
7247 : : default:;
7248 : : }
7249 : : }
7250 : 63 : if (integer_zerop (_q21))
7251 : : {
7252 : 0 : switch (TREE_CODE (_p1))
7253 : : {
7254 : 0 : case COND_EXPR:
7255 : 0 : {
7256 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
7257 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
7258 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
7259 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
7260 : : {
7261 : 0 : if (integer_zerop (_q62))
7262 : : {
7263 : 0 : {
7264 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q20, _q61, _p0, _q22 };
7265 : 0 : const enum tree_code op = BIT_XOR_EXPR;
7266 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1436;
7267 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1436;
7268 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1436;
7269 : 0 : {
7270 : 0 : tree res_op0;
7271 : 0 : res_op0 = captures[1];
7272 : 0 : tree res_op1;
7273 : 0 : res_op1 = captures[2];
7274 : 0 : tree res_op2;
7275 : 0 : res_op2 = captures[4];
7276 : 0 : tree _r;
7277 : 0 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
7278 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 914, __FILE__, __LINE__, true);
7279 : 0 : return _r;
7280 : : }
7281 : 0 : next_after_fail1436:;
7282 : : }
7283 : : }
7284 : : }
7285 : : break;
7286 : : }
7287 : : default:;
7288 : : }
7289 : : }
7290 : 63 : switch (TREE_CODE (_q20))
7291 : : {
7292 : 0 : case LT_EXPR:
7293 : 0 : {
7294 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7295 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7296 : 0 : if (zerop (_q22))
7297 : : {
7298 : 0 : switch (TREE_CODE (_p1))
7299 : : {
7300 : 0 : case COND_EXPR:
7301 : 0 : {
7302 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7303 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7304 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7305 : 0 : switch (TREE_CODE (_q80))
7306 : : {
7307 : 0 : case GE_EXPR:
7308 : 0 : {
7309 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7310 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7311 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7312 : : {
7313 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7314 : : {
7315 : 0 : if (zerop (_q82))
7316 : : {
7317 : 0 : {
7318 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7319 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, LT_EXPR, GE_EXPR);
7320 : 0 : if (res) return res;
7321 : : }
7322 : : }
7323 : : }
7324 : : }
7325 : : break;
7326 : : }
7327 : : default:;
7328 : : }
7329 : : break;
7330 : : }
7331 : : default:;
7332 : : }
7333 : : }
7334 : : break;
7335 : : }
7336 : 32 : case LE_EXPR:
7337 : 32 : {
7338 : 32 : tree _q30 = TREE_OPERAND (_q20, 0);
7339 : 32 : tree _q31 = TREE_OPERAND (_q20, 1);
7340 : 32 : if (zerop (_q22))
7341 : : {
7342 : 32 : switch (TREE_CODE (_p1))
7343 : : {
7344 : 0 : case COND_EXPR:
7345 : 0 : {
7346 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7347 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7348 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7349 : 0 : switch (TREE_CODE (_q80))
7350 : : {
7351 : 0 : case GT_EXPR:
7352 : 0 : {
7353 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7354 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7355 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7356 : : {
7357 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7358 : : {
7359 : 0 : if (zerop (_q82))
7360 : : {
7361 : 0 : {
7362 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7363 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, LE_EXPR, GT_EXPR);
7364 : 0 : if (res) return res;
7365 : : }
7366 : : }
7367 : : }
7368 : : }
7369 : : break;
7370 : : }
7371 : : default:;
7372 : : }
7373 : : break;
7374 : : }
7375 : : default:;
7376 : : }
7377 : : }
7378 : : break;
7379 : : }
7380 : 0 : case EQ_EXPR:
7381 : 0 : {
7382 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7383 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7384 : 0 : if (zerop (_q22))
7385 : : {
7386 : 0 : switch (TREE_CODE (_p1))
7387 : : {
7388 : 0 : case COND_EXPR:
7389 : 0 : {
7390 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7391 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7392 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7393 : 0 : switch (TREE_CODE (_q80))
7394 : : {
7395 : 0 : case NE_EXPR:
7396 : 0 : {
7397 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7398 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7399 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7400 : : {
7401 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7402 : : {
7403 : 0 : if (zerop (_q82))
7404 : : {
7405 : 0 : {
7406 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7407 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, EQ_EXPR, NE_EXPR);
7408 : 0 : if (res) return res;
7409 : : }
7410 : : }
7411 : : }
7412 : : }
7413 : : break;
7414 : : }
7415 : : default:;
7416 : : }
7417 : : break;
7418 : : }
7419 : : default:;
7420 : : }
7421 : : }
7422 : : break;
7423 : : }
7424 : 31 : case NE_EXPR:
7425 : 31 : {
7426 : 31 : tree _q30 = TREE_OPERAND (_q20, 0);
7427 : 31 : tree _q31 = TREE_OPERAND (_q20, 1);
7428 : 31 : if (zerop (_q22))
7429 : : {
7430 : 31 : switch (TREE_CODE (_p1))
7431 : : {
7432 : 4 : case COND_EXPR:
7433 : 4 : {
7434 : 4 : tree _q80 = TREE_OPERAND (_p1, 0);
7435 : 4 : tree _q81 = TREE_OPERAND (_p1, 1);
7436 : 4 : tree _q82 = TREE_OPERAND (_p1, 2);
7437 : 4 : switch (TREE_CODE (_q80))
7438 : : {
7439 : 0 : case EQ_EXPR:
7440 : 0 : {
7441 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7442 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7443 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7444 : : {
7445 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7446 : : {
7447 : 0 : if (zerop (_q82))
7448 : : {
7449 : 0 : {
7450 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7451 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, NE_EXPR, EQ_EXPR);
7452 : 0 : if (res) return res;
7453 : : }
7454 : : }
7455 : : }
7456 : : }
7457 : : break;
7458 : : }
7459 : : default:;
7460 : : }
7461 : : break;
7462 : : }
7463 : : default:;
7464 : : }
7465 : : }
7466 : : break;
7467 : : }
7468 : 0 : case GE_EXPR:
7469 : 0 : {
7470 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7471 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7472 : 0 : if (zerop (_q22))
7473 : : {
7474 : 0 : switch (TREE_CODE (_p1))
7475 : : {
7476 : 0 : case COND_EXPR:
7477 : 0 : {
7478 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7479 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7480 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7481 : 0 : switch (TREE_CODE (_q80))
7482 : : {
7483 : 0 : case LT_EXPR:
7484 : 0 : {
7485 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7486 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7487 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7488 : : {
7489 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7490 : : {
7491 : 0 : if (zerop (_q82))
7492 : : {
7493 : 0 : {
7494 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7495 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, GE_EXPR, LT_EXPR);
7496 : 0 : if (res) return res;
7497 : : }
7498 : : }
7499 : : }
7500 : : }
7501 : : break;
7502 : : }
7503 : : default:;
7504 : : }
7505 : : break;
7506 : : }
7507 : : default:;
7508 : : }
7509 : : }
7510 : : break;
7511 : : }
7512 : 0 : case GT_EXPR:
7513 : 0 : {
7514 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7515 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7516 : 0 : if (zerop (_q22))
7517 : : {
7518 : 0 : switch (TREE_CODE (_p1))
7519 : : {
7520 : 0 : case COND_EXPR:
7521 : 0 : {
7522 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7523 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7524 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7525 : 0 : switch (TREE_CODE (_q80))
7526 : : {
7527 : 0 : case LE_EXPR:
7528 : 0 : {
7529 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7530 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7531 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7532 : : {
7533 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7534 : : {
7535 : 0 : if (zerop (_q82))
7536 : : {
7537 : 0 : {
7538 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7539 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, GT_EXPR, LE_EXPR);
7540 : 0 : if (res) return res;
7541 : : }
7542 : : }
7543 : : }
7544 : : }
7545 : : break;
7546 : : }
7547 : : default:;
7548 : : }
7549 : : break;
7550 : : }
7551 : : default:;
7552 : : }
7553 : : }
7554 : : break;
7555 : : }
7556 : 0 : case UNORDERED_EXPR:
7557 : 0 : {
7558 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7559 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7560 : 0 : if (zerop (_q22))
7561 : : {
7562 : 0 : switch (TREE_CODE (_p1))
7563 : : {
7564 : 0 : case COND_EXPR:
7565 : 0 : {
7566 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7567 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7568 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7569 : 0 : switch (TREE_CODE (_q80))
7570 : : {
7571 : 0 : case ORDERED_EXPR:
7572 : 0 : {
7573 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7574 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7575 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7576 : : {
7577 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7578 : : {
7579 : 0 : if (zerop (_q82))
7580 : : {
7581 : 0 : {
7582 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7583 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNORDERED_EXPR, ORDERED_EXPR);
7584 : 0 : if (res) return res;
7585 : : }
7586 : : }
7587 : : }
7588 : : }
7589 : : break;
7590 : : }
7591 : : default:;
7592 : : }
7593 : : break;
7594 : : }
7595 : : default:;
7596 : : }
7597 : : }
7598 : : break;
7599 : : }
7600 : 0 : case ORDERED_EXPR:
7601 : 0 : {
7602 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7603 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7604 : 0 : if (zerop (_q22))
7605 : : {
7606 : 0 : switch (TREE_CODE (_p1))
7607 : : {
7608 : 0 : case COND_EXPR:
7609 : 0 : {
7610 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7611 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7612 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7613 : 0 : switch (TREE_CODE (_q80))
7614 : : {
7615 : 0 : case UNORDERED_EXPR:
7616 : 0 : {
7617 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7618 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7619 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7620 : : {
7621 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7622 : : {
7623 : 0 : if (zerop (_q82))
7624 : : {
7625 : 0 : {
7626 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7627 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, ORDERED_EXPR, UNORDERED_EXPR);
7628 : 0 : if (res) return res;
7629 : : }
7630 : : }
7631 : : }
7632 : : }
7633 : : break;
7634 : : }
7635 : : default:;
7636 : : }
7637 : : break;
7638 : : }
7639 : : default:;
7640 : : }
7641 : : }
7642 : : break;
7643 : : }
7644 : 0 : case UNLT_EXPR:
7645 : 0 : {
7646 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7647 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7648 : 0 : if (zerop (_q22))
7649 : : {
7650 : 0 : switch (TREE_CODE (_p1))
7651 : : {
7652 : 0 : case COND_EXPR:
7653 : 0 : {
7654 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7655 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7656 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7657 : 0 : switch (TREE_CODE (_q80))
7658 : : {
7659 : 0 : case GE_EXPR:
7660 : 0 : {
7661 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7662 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7663 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7664 : : {
7665 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7666 : : {
7667 : 0 : if (zerop (_q82))
7668 : : {
7669 : 0 : {
7670 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7671 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNLT_EXPR, GE_EXPR);
7672 : 0 : if (res) return res;
7673 : : }
7674 : : }
7675 : : }
7676 : : }
7677 : : break;
7678 : : }
7679 : : default:;
7680 : : }
7681 : : break;
7682 : : }
7683 : : default:;
7684 : : }
7685 : : }
7686 : : break;
7687 : : }
7688 : 0 : case UNLE_EXPR:
7689 : 0 : {
7690 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7691 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7692 : 0 : if (zerop (_q22))
7693 : : {
7694 : 0 : switch (TREE_CODE (_p1))
7695 : : {
7696 : 0 : case COND_EXPR:
7697 : 0 : {
7698 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7699 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7700 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7701 : 0 : switch (TREE_CODE (_q80))
7702 : : {
7703 : 0 : case GT_EXPR:
7704 : 0 : {
7705 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7706 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7707 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7708 : : {
7709 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7710 : : {
7711 : 0 : if (zerop (_q82))
7712 : : {
7713 : 0 : {
7714 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7715 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNLE_EXPR, GT_EXPR);
7716 : 0 : if (res) return res;
7717 : : }
7718 : : }
7719 : : }
7720 : : }
7721 : : break;
7722 : : }
7723 : : default:;
7724 : : }
7725 : : break;
7726 : : }
7727 : : default:;
7728 : : }
7729 : : }
7730 : : break;
7731 : : }
7732 : 0 : case UNGT_EXPR:
7733 : 0 : {
7734 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7735 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7736 : 0 : if (zerop (_q22))
7737 : : {
7738 : 0 : switch (TREE_CODE (_p1))
7739 : : {
7740 : 0 : case COND_EXPR:
7741 : 0 : {
7742 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7743 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7744 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7745 : 0 : switch (TREE_CODE (_q80))
7746 : : {
7747 : 0 : case LE_EXPR:
7748 : 0 : {
7749 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7750 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7751 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7752 : : {
7753 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7754 : : {
7755 : 0 : if (zerop (_q82))
7756 : : {
7757 : 0 : {
7758 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7759 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNGT_EXPR, LE_EXPR);
7760 : 0 : if (res) return res;
7761 : : }
7762 : : }
7763 : : }
7764 : : }
7765 : : break;
7766 : : }
7767 : : default:;
7768 : : }
7769 : : break;
7770 : : }
7771 : : default:;
7772 : : }
7773 : : }
7774 : : break;
7775 : : }
7776 : 0 : case UNGE_EXPR:
7777 : 0 : {
7778 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7779 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7780 : 0 : if (zerop (_q22))
7781 : : {
7782 : 0 : switch (TREE_CODE (_p1))
7783 : : {
7784 : 0 : case COND_EXPR:
7785 : 0 : {
7786 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7787 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7788 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7789 : 0 : switch (TREE_CODE (_q80))
7790 : : {
7791 : 0 : case LT_EXPR:
7792 : 0 : {
7793 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7794 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7795 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7796 : : {
7797 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7798 : : {
7799 : 0 : if (zerop (_q82))
7800 : : {
7801 : 0 : {
7802 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7803 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNGE_EXPR, LT_EXPR);
7804 : 0 : if (res) return res;
7805 : : }
7806 : : }
7807 : : }
7808 : : }
7809 : : break;
7810 : : }
7811 : : default:;
7812 : : }
7813 : : break;
7814 : : }
7815 : : default:;
7816 : : }
7817 : : }
7818 : : break;
7819 : : }
7820 : 0 : case UNEQ_EXPR:
7821 : 0 : {
7822 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7823 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7824 : 0 : if (zerop (_q22))
7825 : : {
7826 : 0 : switch (TREE_CODE (_p1))
7827 : : {
7828 : 0 : case COND_EXPR:
7829 : 0 : {
7830 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7831 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7832 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7833 : 0 : switch (TREE_CODE (_q80))
7834 : : {
7835 : 0 : case LTGT_EXPR:
7836 : 0 : {
7837 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7838 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7839 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7840 : : {
7841 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7842 : : {
7843 : 0 : if (zerop (_q82))
7844 : : {
7845 : 0 : {
7846 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7847 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNEQ_EXPR, LTGT_EXPR);
7848 : 0 : if (res) return res;
7849 : : }
7850 : : }
7851 : : }
7852 : : }
7853 : : break;
7854 : : }
7855 : : default:;
7856 : : }
7857 : : break;
7858 : : }
7859 : : default:;
7860 : : }
7861 : : }
7862 : : break;
7863 : : }
7864 : 0 : case LTGT_EXPR:
7865 : 0 : {
7866 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7867 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7868 : 0 : if (zerop (_q22))
7869 : : {
7870 : 0 : switch (TREE_CODE (_p1))
7871 : : {
7872 : 0 : case COND_EXPR:
7873 : 0 : {
7874 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7875 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7876 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7877 : 0 : switch (TREE_CODE (_q80))
7878 : : {
7879 : 0 : case UNEQ_EXPR:
7880 : 0 : {
7881 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7882 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7883 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7884 : : {
7885 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7886 : : {
7887 : 0 : if (zerop (_q82))
7888 : : {
7889 : 0 : {
7890 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7891 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, LTGT_EXPR, UNEQ_EXPR);
7892 : 0 : if (res) return res;
7893 : : }
7894 : : }
7895 : : }
7896 : : }
7897 : : break;
7898 : : }
7899 : : default:;
7900 : : }
7901 : : break;
7902 : : }
7903 : : default:;
7904 : : }
7905 : : }
7906 : : break;
7907 : : }
7908 : : default:;
7909 : : }
7910 : : break;
7911 : : }
7912 : 1 : case VEC_COND_EXPR:
7913 : 1 : {
7914 : 1 : tree _q20 = TREE_OPERAND (_p0, 0);
7915 : 1 : tree _q21 = TREE_OPERAND (_p0, 1);
7916 : 1 : tree _q22 = TREE_OPERAND (_p0, 2);
7917 : 1 : if (integer_zerop (_q22))
7918 : : {
7919 : 1 : switch (TREE_CODE (_p1))
7920 : : {
7921 : 0 : case VEC_COND_EXPR:
7922 : 0 : {
7923 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
7924 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
7925 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
7926 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
7927 : : {
7928 : 0 : if (integer_zerop (_q61))
7929 : : {
7930 : 0 : {
7931 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q62 };
7932 : 0 : const enum tree_code op = BIT_XOR_EXPR;
7933 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1437;
7934 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1437;
7935 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1437;
7936 : 0 : {
7937 : 0 : tree res_op0;
7938 : 0 : res_op0 = captures[1];
7939 : 0 : tree res_op1;
7940 : 0 : res_op1 = captures[2];
7941 : 0 : tree res_op2;
7942 : 0 : res_op2 = captures[4];
7943 : 0 : tree _r;
7944 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
7945 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 914, __FILE__, __LINE__, true);
7946 : 0 : return _r;
7947 : : }
7948 : 0 : next_after_fail1437:;
7949 : : }
7950 : : }
7951 : : }
7952 : : break;
7953 : : }
7954 : : default:;
7955 : : }
7956 : : }
7957 : 1 : if (integer_zerop (_q21))
7958 : : {
7959 : 0 : switch (TREE_CODE (_p1))
7960 : : {
7961 : 0 : case VEC_COND_EXPR:
7962 : 0 : {
7963 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
7964 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
7965 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
7966 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
7967 : : {
7968 : 0 : if (integer_zerop (_q62))
7969 : : {
7970 : 0 : {
7971 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q20, _q61, _p0, _q22 };
7972 : 0 : const enum tree_code op = BIT_XOR_EXPR;
7973 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1438;
7974 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1438;
7975 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1438;
7976 : 0 : {
7977 : 0 : tree res_op0;
7978 : 0 : res_op0 = captures[1];
7979 : 0 : tree res_op1;
7980 : 0 : res_op1 = captures[2];
7981 : 0 : tree res_op2;
7982 : 0 : res_op2 = captures[4];
7983 : 0 : tree _r;
7984 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
7985 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 914, __FILE__, __LINE__, true);
7986 : 0 : return _r;
7987 : : }
7988 : 0 : next_after_fail1438:;
7989 : : }
7990 : : }
7991 : : }
7992 : : break;
7993 : : }
7994 : : default:;
7995 : : }
7996 : : }
7997 : 1 : switch (TREE_CODE (_q20))
7998 : : {
7999 : 0 : case LT_EXPR:
8000 : 0 : {
8001 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8002 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8003 : 0 : if (integer_zerop (_q22))
8004 : : {
8005 : 0 : switch (TREE_CODE (_p1))
8006 : : {
8007 : 0 : case VEC_COND_EXPR:
8008 : 0 : {
8009 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8010 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8011 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8012 : 0 : switch (TREE_CODE (_q80))
8013 : : {
8014 : 0 : case GE_EXPR:
8015 : 0 : {
8016 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8017 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8018 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8019 : : {
8020 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8021 : : {
8022 : 0 : if (integer_zerop (_q82))
8023 : : {
8024 : 0 : {
8025 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8026 : 0 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, LT_EXPR, GE_EXPR);
8027 : 0 : if (res) return res;
8028 : : }
8029 : : }
8030 : : }
8031 : : }
8032 : : break;
8033 : : }
8034 : : default:;
8035 : : }
8036 : : break;
8037 : : }
8038 : : default:;
8039 : : }
8040 : : }
8041 : : break;
8042 : : }
8043 : 0 : case LE_EXPR:
8044 : 0 : {
8045 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8046 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8047 : 0 : if (integer_zerop (_q22))
8048 : : {
8049 : 0 : switch (TREE_CODE (_p1))
8050 : : {
8051 : 0 : case VEC_COND_EXPR:
8052 : 0 : {
8053 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8054 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8055 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8056 : 0 : switch (TREE_CODE (_q80))
8057 : : {
8058 : 0 : case GT_EXPR:
8059 : 0 : {
8060 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8061 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8062 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8063 : : {
8064 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8065 : : {
8066 : 0 : if (integer_zerop (_q82))
8067 : : {
8068 : 0 : {
8069 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8070 : 0 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, LE_EXPR, GT_EXPR);
8071 : 0 : if (res) return res;
8072 : : }
8073 : : }
8074 : : }
8075 : : }
8076 : : break;
8077 : : }
8078 : : default:;
8079 : : }
8080 : : break;
8081 : : }
8082 : : default:;
8083 : : }
8084 : : }
8085 : : break;
8086 : : }
8087 : 0 : case EQ_EXPR:
8088 : 0 : {
8089 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8090 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8091 : 0 : if (integer_zerop (_q22))
8092 : : {
8093 : 0 : switch (TREE_CODE (_p1))
8094 : : {
8095 : 0 : case VEC_COND_EXPR:
8096 : 0 : {
8097 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8098 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8099 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8100 : 0 : switch (TREE_CODE (_q80))
8101 : : {
8102 : 0 : case NE_EXPR:
8103 : 0 : {
8104 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8105 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8106 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8107 : : {
8108 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8109 : : {
8110 : 0 : if (integer_zerop (_q82))
8111 : : {
8112 : 0 : {
8113 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8114 : 0 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, EQ_EXPR, NE_EXPR);
8115 : 0 : if (res) return res;
8116 : : }
8117 : : }
8118 : : }
8119 : : }
8120 : : break;
8121 : : }
8122 : : default:;
8123 : : }
8124 : : break;
8125 : : }
8126 : : default:;
8127 : : }
8128 : : }
8129 : : break;
8130 : : }
8131 : 1 : case NE_EXPR:
8132 : 1 : {
8133 : 1 : tree _q30 = TREE_OPERAND (_q20, 0);
8134 : 1 : tree _q31 = TREE_OPERAND (_q20, 1);
8135 : 1 : if (integer_zerop (_q22))
8136 : : {
8137 : 1 : switch (TREE_CODE (_p1))
8138 : : {
8139 : 0 : case VEC_COND_EXPR:
8140 : 0 : {
8141 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8142 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8143 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8144 : 0 : switch (TREE_CODE (_q80))
8145 : : {
8146 : 0 : case EQ_EXPR:
8147 : 0 : {
8148 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8149 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8150 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8151 : : {
8152 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8153 : : {
8154 : 0 : if (integer_zerop (_q82))
8155 : : {
8156 : 0 : {
8157 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8158 : 0 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, NE_EXPR, EQ_EXPR);
8159 : 0 : if (res) return res;
8160 : : }
8161 : : }
8162 : : }
8163 : : }
8164 : : break;
8165 : : }
8166 : : default:;
8167 : : }
8168 : : break;
8169 : : }
8170 : : default:;
8171 : : }
8172 : : }
8173 : : break;
8174 : : }
8175 : 0 : case GE_EXPR:
8176 : 0 : {
8177 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8178 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8179 : 0 : if (integer_zerop (_q22))
8180 : : {
8181 : 0 : switch (TREE_CODE (_p1))
8182 : : {
8183 : 0 : case VEC_COND_EXPR:
8184 : 0 : {
8185 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8186 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8187 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8188 : 0 : switch (TREE_CODE (_q80))
8189 : : {
8190 : 0 : case LT_EXPR:
8191 : 0 : {
8192 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8193 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8194 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8195 : : {
8196 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8197 : : {
8198 : 0 : if (integer_zerop (_q82))
8199 : : {
8200 : 0 : {
8201 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8202 : 0 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, GE_EXPR, LT_EXPR);
8203 : 0 : if (res) return res;
8204 : : }
8205 : : }
8206 : : }
8207 : : }
8208 : : break;
8209 : : }
8210 : : default:;
8211 : : }
8212 : : break;
8213 : : }
8214 : : default:;
8215 : : }
8216 : : }
8217 : : break;
8218 : : }
8219 : 0 : case GT_EXPR:
8220 : 0 : {
8221 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8222 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8223 : 0 : if (integer_zerop (_q22))
8224 : : {
8225 : 0 : switch (TREE_CODE (_p1))
8226 : : {
8227 : 0 : case VEC_COND_EXPR:
8228 : 0 : {
8229 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8230 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8231 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8232 : 0 : switch (TREE_CODE (_q80))
8233 : : {
8234 : 0 : case LE_EXPR:
8235 : 0 : {
8236 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8237 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8238 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8239 : : {
8240 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8241 : : {
8242 : 0 : if (integer_zerop (_q82))
8243 : : {
8244 : 0 : {
8245 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8246 : 0 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, GT_EXPR, LE_EXPR);
8247 : 0 : if (res) return res;
8248 : : }
8249 : : }
8250 : : }
8251 : : }
8252 : : break;
8253 : : }
8254 : : default:;
8255 : : }
8256 : : break;
8257 : : }
8258 : : default:;
8259 : : }
8260 : : }
8261 : : break;
8262 : : }
8263 : 0 : case UNORDERED_EXPR:
8264 : 0 : {
8265 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8266 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8267 : 0 : if (integer_zerop (_q22))
8268 : : {
8269 : 0 : switch (TREE_CODE (_p1))
8270 : : {
8271 : 0 : case VEC_COND_EXPR:
8272 : 0 : {
8273 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8274 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8275 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8276 : 0 : switch (TREE_CODE (_q80))
8277 : : {
8278 : 0 : case ORDERED_EXPR:
8279 : 0 : {
8280 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8281 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8282 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8283 : : {
8284 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8285 : : {
8286 : 0 : if (integer_zerop (_q82))
8287 : : {
8288 : 0 : {
8289 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8290 : 0 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNORDERED_EXPR, ORDERED_EXPR);
8291 : 0 : if (res) return res;
8292 : : }
8293 : : }
8294 : : }
8295 : : }
8296 : : break;
8297 : : }
8298 : : default:;
8299 : : }
8300 : : break;
8301 : : }
8302 : : default:;
8303 : : }
8304 : : }
8305 : : break;
8306 : : }
8307 : 0 : case ORDERED_EXPR:
8308 : 0 : {
8309 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8310 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8311 : 0 : if (integer_zerop (_q22))
8312 : : {
8313 : 0 : switch (TREE_CODE (_p1))
8314 : : {
8315 : 0 : case VEC_COND_EXPR:
8316 : 0 : {
8317 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8318 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8319 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8320 : 0 : switch (TREE_CODE (_q80))
8321 : : {
8322 : 0 : case UNORDERED_EXPR:
8323 : 0 : {
8324 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8325 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8326 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8327 : : {
8328 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8329 : : {
8330 : 0 : if (integer_zerop (_q82))
8331 : : {
8332 : 0 : {
8333 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8334 : 0 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, ORDERED_EXPR, UNORDERED_EXPR);
8335 : 0 : if (res) return res;
8336 : : }
8337 : : }
8338 : : }
8339 : : }
8340 : : break;
8341 : : }
8342 : : default:;
8343 : : }
8344 : : break;
8345 : : }
8346 : : default:;
8347 : : }
8348 : : }
8349 : : break;
8350 : : }
8351 : 0 : case UNLT_EXPR:
8352 : 0 : {
8353 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8354 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8355 : 0 : if (integer_zerop (_q22))
8356 : : {
8357 : 0 : switch (TREE_CODE (_p1))
8358 : : {
8359 : 0 : case VEC_COND_EXPR:
8360 : 0 : {
8361 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8362 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8363 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8364 : 0 : switch (TREE_CODE (_q80))
8365 : : {
8366 : 0 : case GE_EXPR:
8367 : 0 : {
8368 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8369 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8370 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8371 : : {
8372 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8373 : : {
8374 : 0 : if (integer_zerop (_q82))
8375 : : {
8376 : 0 : {
8377 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8378 : 0 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNLT_EXPR, GE_EXPR);
8379 : 0 : if (res) return res;
8380 : : }
8381 : : }
8382 : : }
8383 : : }
8384 : : break;
8385 : : }
8386 : : default:;
8387 : : }
8388 : : break;
8389 : : }
8390 : : default:;
8391 : : }
8392 : : }
8393 : : break;
8394 : : }
8395 : 0 : case UNLE_EXPR:
8396 : 0 : {
8397 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8398 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8399 : 0 : if (integer_zerop (_q22))
8400 : : {
8401 : 0 : switch (TREE_CODE (_p1))
8402 : : {
8403 : 0 : case VEC_COND_EXPR:
8404 : 0 : {
8405 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8406 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8407 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8408 : 0 : switch (TREE_CODE (_q80))
8409 : : {
8410 : 0 : case GT_EXPR:
8411 : 0 : {
8412 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8413 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8414 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8415 : : {
8416 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8417 : : {
8418 : 0 : if (integer_zerop (_q82))
8419 : : {
8420 : 0 : {
8421 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8422 : 0 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNLE_EXPR, GT_EXPR);
8423 : 0 : if (res) return res;
8424 : : }
8425 : : }
8426 : : }
8427 : : }
8428 : : break;
8429 : : }
8430 : : default:;
8431 : : }
8432 : : break;
8433 : : }
8434 : : default:;
8435 : : }
8436 : : }
8437 : : break;
8438 : : }
8439 : 0 : case UNGT_EXPR:
8440 : 0 : {
8441 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8442 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8443 : 0 : if (integer_zerop (_q22))
8444 : : {
8445 : 0 : switch (TREE_CODE (_p1))
8446 : : {
8447 : 0 : case VEC_COND_EXPR:
8448 : 0 : {
8449 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8450 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8451 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8452 : 0 : switch (TREE_CODE (_q80))
8453 : : {
8454 : 0 : case LE_EXPR:
8455 : 0 : {
8456 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8457 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8458 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8459 : : {
8460 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8461 : : {
8462 : 0 : if (integer_zerop (_q82))
8463 : : {
8464 : 0 : {
8465 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8466 : 0 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNGT_EXPR, LE_EXPR);
8467 : 0 : if (res) return res;
8468 : : }
8469 : : }
8470 : : }
8471 : : }
8472 : : break;
8473 : : }
8474 : : default:;
8475 : : }
8476 : : break;
8477 : : }
8478 : : default:;
8479 : : }
8480 : : }
8481 : : break;
8482 : : }
8483 : 0 : case UNGE_EXPR:
8484 : 0 : {
8485 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8486 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8487 : 0 : if (integer_zerop (_q22))
8488 : : {
8489 : 0 : switch (TREE_CODE (_p1))
8490 : : {
8491 : 0 : case VEC_COND_EXPR:
8492 : 0 : {
8493 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8494 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8495 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8496 : 0 : switch (TREE_CODE (_q80))
8497 : : {
8498 : 0 : case LT_EXPR:
8499 : 0 : {
8500 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8501 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8502 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8503 : : {
8504 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8505 : : {
8506 : 0 : if (integer_zerop (_q82))
8507 : : {
8508 : 0 : {
8509 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8510 : 0 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNGE_EXPR, LT_EXPR);
8511 : 0 : if (res) return res;
8512 : : }
8513 : : }
8514 : : }
8515 : : }
8516 : : break;
8517 : : }
8518 : : default:;
8519 : : }
8520 : : break;
8521 : : }
8522 : : default:;
8523 : : }
8524 : : }
8525 : : break;
8526 : : }
8527 : 0 : case UNEQ_EXPR:
8528 : 0 : {
8529 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8530 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8531 : 0 : if (integer_zerop (_q22))
8532 : : {
8533 : 0 : switch (TREE_CODE (_p1))
8534 : : {
8535 : 0 : case VEC_COND_EXPR:
8536 : 0 : {
8537 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8538 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8539 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8540 : 0 : switch (TREE_CODE (_q80))
8541 : : {
8542 : 0 : case LTGT_EXPR:
8543 : 0 : {
8544 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8545 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8546 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8547 : : {
8548 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8549 : : {
8550 : 0 : if (integer_zerop (_q82))
8551 : : {
8552 : 0 : {
8553 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8554 : 0 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNEQ_EXPR, LTGT_EXPR);
8555 : 0 : if (res) return res;
8556 : : }
8557 : : }
8558 : : }
8559 : : }
8560 : : break;
8561 : : }
8562 : : default:;
8563 : : }
8564 : : break;
8565 : : }
8566 : : default:;
8567 : : }
8568 : : }
8569 : : break;
8570 : : }
8571 : 0 : case LTGT_EXPR:
8572 : 0 : {
8573 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8574 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8575 : 0 : if (integer_zerop (_q22))
8576 : : {
8577 : 0 : switch (TREE_CODE (_p1))
8578 : : {
8579 : 0 : case VEC_COND_EXPR:
8580 : 0 : {
8581 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8582 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8583 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8584 : 0 : switch (TREE_CODE (_q80))
8585 : : {
8586 : 0 : case UNEQ_EXPR:
8587 : 0 : {
8588 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8589 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8590 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8591 : : {
8592 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8593 : : {
8594 : 0 : if (integer_zerop (_q82))
8595 : : {
8596 : 0 : {
8597 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8598 : 0 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, LTGT_EXPR, UNEQ_EXPR);
8599 : 0 : if (res) return res;
8600 : : }
8601 : : }
8602 : : }
8603 : : }
8604 : : break;
8605 : : }
8606 : : default:;
8607 : : }
8608 : : break;
8609 : : }
8610 : : default:;
8611 : : }
8612 : : }
8613 : : break;
8614 : : }
8615 : : default:;
8616 : : }
8617 : : break;
8618 : : }
8619 : 2540 : case BIT_AND_EXPR:
8620 : 2540 : {
8621 : 2540 : tree _q20 = TREE_OPERAND (_p0, 0);
8622 : 2540 : tree _q21 = TREE_OPERAND (_p0, 1);
8623 : 2540 : if (tree_truth_valued_p (_q20))
8624 : : {
8625 : 0 : if (tree_truth_valued_p (_q21))
8626 : : {
8627 : 0 : switch (TREE_CODE (_p1))
8628 : : {
8629 : 0 : case EQ_EXPR:
8630 : 0 : {
8631 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
8632 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
8633 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8634 : : {
8635 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8636 : : {
8637 : 0 : {
8638 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8639 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1439;
8640 : 0 : {
8641 : 0 : tree res_op0;
8642 : 0 : {
8643 : 0 : tree _o1[2], _r1;
8644 : 0 : _o1[0] = captures[0];
8645 : 0 : _o1[1] = captures[1];
8646 : 0 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
8647 : 0 : res_op0 = _r1;
8648 : : }
8649 : 0 : tree _r;
8650 : 0 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
8651 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 969, __FILE__, __LINE__, true);
8652 : 0 : return _r;
8653 : : }
8654 : 0 : next_after_fail1439:;
8655 : : }
8656 : : }
8657 : : }
8658 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
8659 : : {
8660 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
8661 : : {
8662 : 0 : {
8663 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
8664 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1440;
8665 : 0 : {
8666 : 0 : tree res_op0;
8667 : 0 : {
8668 : 0 : tree _o1[2], _r1;
8669 : 0 : _o1[0] = captures[0];
8670 : 0 : _o1[1] = captures[1];
8671 : 0 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
8672 : 0 : res_op0 = _r1;
8673 : : }
8674 : 0 : tree _r;
8675 : 0 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
8676 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 969, __FILE__, __LINE__, true);
8677 : 0 : return _r;
8678 : : }
8679 : 0 : next_after_fail1440:;
8680 : : }
8681 : : }
8682 : : }
8683 : : break;
8684 : : }
8685 : : default:;
8686 : : }
8687 : : }
8688 : : }
8689 : : break;
8690 : : }
8691 : 118 : case EQ_EXPR:
8692 : 118 : {
8693 : 118 : tree _q20 = TREE_OPERAND (_p0, 0);
8694 : 118 : tree _q21 = TREE_OPERAND (_p0, 1);
8695 : 118 : switch (TREE_CODE (_p1))
8696 : : {
8697 : 0 : case BIT_AND_EXPR:
8698 : 0 : {
8699 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
8700 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
8701 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8702 : : {
8703 : 0 : if (tree_truth_valued_p (_q50))
8704 : : {
8705 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8706 : : {
8707 : 0 : if (tree_truth_valued_p (_q51))
8708 : : {
8709 : 0 : {
8710 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8711 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1441;
8712 : 0 : {
8713 : 0 : tree res_op0;
8714 : 0 : {
8715 : 0 : tree _o1[2], _r1;
8716 : 0 : _o1[0] = captures[0];
8717 : 0 : _o1[1] = captures[1];
8718 : 0 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
8719 : 0 : res_op0 = _r1;
8720 : : }
8721 : 0 : tree _r;
8722 : 0 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
8723 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 969, __FILE__, __LINE__, true);
8724 : 0 : return _r;
8725 : : }
8726 : 0 : next_after_fail1441:;
8727 : : }
8728 : : }
8729 : : }
8730 : : }
8731 : : }
8732 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
8733 : : {
8734 : 0 : if (tree_truth_valued_p (_q50))
8735 : : {
8736 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
8737 : : {
8738 : 0 : if (tree_truth_valued_p (_q51))
8739 : : {
8740 : 0 : {
8741 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8742 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1442;
8743 : 0 : {
8744 : 0 : tree res_op0;
8745 : 0 : {
8746 : 0 : tree _o1[2], _r1;
8747 : 0 : _o1[0] = captures[0];
8748 : 0 : _o1[1] = captures[1];
8749 : 0 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
8750 : 0 : res_op0 = _r1;
8751 : : }
8752 : 0 : tree _r;
8753 : 0 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
8754 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 969, __FILE__, __LINE__, true);
8755 : 0 : return _r;
8756 : : }
8757 : 0 : next_after_fail1442:;
8758 : : }
8759 : : }
8760 : : }
8761 : : }
8762 : : }
8763 : : break;
8764 : : }
8765 : : default:;
8766 : : }
8767 : : break;
8768 : : }
8769 : 681275 : default:;
8770 : : }
8771 : 681275 : {
8772 : 681275 : tree _p0_pops[1];
8773 : 681275 : if (tree_logical_inverted_value (_p0, _p0_pops))
8774 : : {
8775 : 45 : tree _q20 = _p0_pops[0];
8776 : 45 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
8777 : : {
8778 : 4 : if (tree_truth_valued_p (_p1))
8779 : : {
8780 : 4 : {
8781 : 4 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
8782 : 4 : tree res = generic_simplify_120 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
8783 : 4 : if (res) return res;
8784 : : }
8785 : : }
8786 : : }
8787 : : }
8788 : : }
8789 : 681271 : {
8790 : 681271 : tree _p0_pops[1];
8791 : 681271 : if (tree_nop_convert (_p0, _p0_pops))
8792 : : {
8793 : 492145 : tree _q20 = _p0_pops[0];
8794 : 492145 : switch (TREE_CODE (_q20))
8795 : : {
8796 : 24 : case BIT_NOT_EXPR:
8797 : 24 : {
8798 : 24 : tree _q30 = TREE_OPERAND (_q20, 0);
8799 : 24 : {
8800 : 24 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _p1 };
8801 : 24 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures);
8802 : 24 : if (res) return res;
8803 : : }
8804 : 0 : break;
8805 : : }
8806 : 20 : case MULT_EXPR:
8807 : 20 : {
8808 : 20 : tree _q30 = TREE_OPERAND (_q20, 0);
8809 : 20 : tree _q31 = TREE_OPERAND (_q20, 1);
8810 : 20 : {
8811 : 20 : tree _q30_pops[1];
8812 : 20 : if (tree_nop_convert (_q30, _q30_pops))
8813 : : {
8814 : 0 : tree _q40 = _q30_pops[0];
8815 : 0 : switch (TREE_CODE (_q31))
8816 : : {
8817 : 0 : case INTEGER_CST:
8818 : 0 : {
8819 : 0 : switch (TREE_CODE (_p1))
8820 : : {
8821 : 0 : case LSHIFT_EXPR:
8822 : 0 : {
8823 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
8824 : 0 : tree _q71 = TREE_OPERAND (_p1, 1);
8825 : 0 : if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
8826 : : {
8827 : 0 : switch (TREE_CODE (_q71))
8828 : : {
8829 : 0 : case INTEGER_CST:
8830 : 0 : {
8831 : 0 : {
8832 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q40, _q31, _p1, _q71 };
8833 : 0 : tree res = generic_simplify_117 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
8834 : 0 : if (res) return res;
8835 : : }
8836 : 0 : break;
8837 : : }
8838 : : default:;
8839 : : }
8840 : : }
8841 : : break;
8842 : : }
8843 : 0 : default:;
8844 : : }
8845 : 0 : {
8846 : 0 : tree _p1_pops[1];
8847 : 0 : if (tree_nop_convert (_p1, _p1_pops))
8848 : : {
8849 : 0 : tree _q70 = _p1_pops[0];
8850 : 0 : switch (TREE_CODE (_q70))
8851 : : {
8852 : 0 : case MULT_EXPR:
8853 : 0 : {
8854 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
8855 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
8856 : 0 : {
8857 : 0 : tree _q80_pops[1];
8858 : 0 : if (tree_nop_convert (_q80, _q80_pops))
8859 : : {
8860 : 0 : tree _q90 = _q80_pops[0];
8861 : 0 : switch (TREE_CODE (_q81))
8862 : : {
8863 : 0 : case INTEGER_CST:
8864 : 0 : {
8865 : 0 : {
8866 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q40, _q31, _p1, _q70, _q90, _q81 };
8867 : 0 : tree res = generic_simplify_116 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
8868 : 0 : if (res) return res;
8869 : : }
8870 : 0 : break;
8871 : : }
8872 : : default:;
8873 : : }
8874 : : }
8875 : : }
8876 : 0 : break;
8877 : : }
8878 : : default:;
8879 : : }
8880 : : }
8881 : : }
8882 : 0 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
8883 : : {
8884 : 0 : {
8885 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q40, _q31 };
8886 : 0 : tree res = generic_simplify_118 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
8887 : 0 : if (res) return res;
8888 : : }
8889 : : }
8890 : : break;
8891 : : }
8892 : : default:;
8893 : : }
8894 : : }
8895 : : }
8896 : 20 : break;
8897 : : }
8898 : : default:;
8899 : : }
8900 : : }
8901 : : }
8902 : 681247 : if (tree_truth_valued_p (_p0))
8903 : : {
8904 : 36534 : {
8905 : 36534 : tree _p1_pops[1];
8906 : 36534 : if (tree_logical_inverted_value (_p1, _p1_pops))
8907 : : {
8908 : 7 : tree _q30 = _p1_pops[0];
8909 : 7 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
8910 : : {
8911 : 0 : {
8912 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
8913 : 0 : tree res = generic_simplify_120 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
8914 : 0 : if (res) return res;
8915 : : }
8916 : : }
8917 : : }
8918 : : }
8919 : : }
8920 : 681247 : switch (TREE_CODE (_p1))
8921 : : {
8922 : 288 : case BIT_NOT_EXPR:
8923 : 288 : {
8924 : 288 : tree _q30 = TREE_OPERAND (_p1, 0);
8925 : 288 : {
8926 : 288 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _p1, _q30, _p0 };
8927 : 288 : tree res = generic_simplify_165 (loc, type, _p0, _p1, captures);
8928 : 288 : if (res) return res;
8929 : : }
8930 : 0 : break;
8931 : : }
8932 : 680959 : default:;
8933 : : }
8934 : 680959 : {
8935 : 680959 : tree _p1_pops[1];
8936 : 680959 : if (tree_nop_convert (_p1, _p1_pops))
8937 : : {
8938 : 535043 : tree _q30 = _p1_pops[0];
8939 : 535043 : switch (TREE_CODE (_q30))
8940 : : {
8941 : 0 : case BIT_NOT_EXPR:
8942 : 0 : {
8943 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
8944 : 0 : {
8945 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q30, _q40, _p0 };
8946 : 0 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures);
8947 : 0 : if (res) return res;
8948 : : }
8949 : 0 : break;
8950 : : }
8951 : : default:;
8952 : : }
8953 : : }
8954 : : }
8955 : 680959 : switch (TREE_CODE (_p0))
8956 : : {
8957 : 1131 : case BIT_IOR_EXPR:
8958 : 1131 : {
8959 : 1131 : tree _q20 = TREE_OPERAND (_p0, 0);
8960 : 1131 : tree _q21 = TREE_OPERAND (_p0, 1);
8961 : 1131 : switch (TREE_CODE (_q21))
8962 : : {
8963 : 23 : case INTEGER_CST:
8964 : 23 : {
8965 : 23 : switch (TREE_CODE (_p1))
8966 : : {
8967 : 23 : case INTEGER_CST:
8968 : 23 : {
8969 : 23 : {
8970 : 23 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
8971 : 23 : tree res = generic_simplify_124 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_XOR_EXPR);
8972 : 23 : if (res) return res;
8973 : : }
8974 : 23 : break;
8975 : : }
8976 : : default:;
8977 : : }
8978 : : break;
8979 : : }
8980 : : default:;
8981 : : }
8982 : : break;
8983 : : }
8984 : 90 : case LT_EXPR:
8985 : 90 : {
8986 : 90 : tree _q20 = TREE_OPERAND (_p0, 0);
8987 : 90 : tree _q21 = TREE_OPERAND (_p0, 1);
8988 : 90 : switch (TREE_CODE (_p1))
8989 : : {
8990 : 0 : case GT_EXPR:
8991 : 0 : {
8992 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
8993 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
8994 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8995 : : {
8996 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8997 : : {
8998 : 0 : {
8999 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9000 : 0 : const enum tree_code cmp1 = LT_EXPR;
9001 : 0 : const enum tree_code cmp2 = GT_EXPR;
9002 : 0 : const enum tree_code rcmp = NE_EXPR;
9003 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9004 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9005 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9006 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9007 : : )
9008 : : {
9009 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1443;
9010 : 0 : {
9011 : 0 : tree res_op0;
9012 : 0 : res_op0 = captures[0];
9013 : 0 : tree res_op1;
9014 : 0 : res_op1 = captures[1];
9015 : 0 : tree _r;
9016 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9017 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 970, __FILE__, __LINE__, true);
9018 : 0 : return _r;
9019 : : }
9020 : 0 : next_after_fail1443:;
9021 : : }
9022 : : }
9023 : : }
9024 : : }
9025 : : break;
9026 : : }
9027 : 0 : case EQ_EXPR:
9028 : 0 : {
9029 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9030 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9031 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9032 : : {
9033 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9034 : : {
9035 : 0 : {
9036 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9037 : 0 : const enum tree_code cmp1 = LT_EXPR;
9038 : 0 : const enum tree_code cmp2 = EQ_EXPR;
9039 : 0 : const enum tree_code rcmp = LE_EXPR;
9040 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9041 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9042 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9043 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9044 : : )
9045 : : {
9046 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1444;
9047 : 0 : {
9048 : 0 : tree res_op0;
9049 : 0 : res_op0 = captures[0];
9050 : 0 : tree res_op1;
9051 : 0 : res_op1 = captures[1];
9052 : 0 : tree _r;
9053 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9054 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 970, __FILE__, __LINE__, true);
9055 : 0 : return _r;
9056 : : }
9057 : 0 : next_after_fail1444:;
9058 : : }
9059 : : }
9060 : : }
9061 : : }
9062 : : break;
9063 : : }
9064 : 0 : case NE_EXPR:
9065 : 0 : {
9066 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9067 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9068 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9069 : : {
9070 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9071 : : {
9072 : 0 : {
9073 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9074 : 0 : const enum tree_code cmp1 = LT_EXPR;
9075 : 0 : const enum tree_code cmp2 = NE_EXPR;
9076 : 0 : const enum tree_code rcmp = GT_EXPR;
9077 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9078 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9079 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9080 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9081 : : )
9082 : : {
9083 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1445;
9084 : 0 : {
9085 : 0 : tree res_op0;
9086 : 0 : res_op0 = captures[0];
9087 : 0 : tree res_op1;
9088 : 0 : res_op1 = captures[1];
9089 : 0 : tree _r;
9090 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9091 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 970, __FILE__, __LINE__, true);
9092 : 0 : return _r;
9093 : : }
9094 : 0 : next_after_fail1445:;
9095 : : }
9096 : : }
9097 : : }
9098 : : }
9099 : : break;
9100 : : }
9101 : : default:;
9102 : : }
9103 : : break;
9104 : : }
9105 : 78 : case LE_EXPR:
9106 : 78 : {
9107 : 78 : tree _q20 = TREE_OPERAND (_p0, 0);
9108 : 78 : tree _q21 = TREE_OPERAND (_p0, 1);
9109 : 78 : switch (TREE_CODE (_p1))
9110 : : {
9111 : 0 : case GE_EXPR:
9112 : 0 : {
9113 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9114 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9115 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9116 : : {
9117 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9118 : : {
9119 : 0 : {
9120 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9121 : 0 : const enum tree_code cmp1 = LE_EXPR;
9122 : 0 : const enum tree_code cmp2 = GE_EXPR;
9123 : 0 : const enum tree_code rcmp = NE_EXPR;
9124 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9125 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9126 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9127 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9128 : : )
9129 : : {
9130 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1446;
9131 : 0 : {
9132 : 0 : tree res_op0;
9133 : 0 : res_op0 = captures[0];
9134 : 0 : tree res_op1;
9135 : 0 : res_op1 = captures[1];
9136 : 0 : tree _r;
9137 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9138 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 970, __FILE__, __LINE__, true);
9139 : 0 : return _r;
9140 : : }
9141 : 0 : next_after_fail1446:;
9142 : : }
9143 : : }
9144 : : }
9145 : : }
9146 : : break;
9147 : : }
9148 : 0 : case EQ_EXPR:
9149 : 0 : {
9150 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9151 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9152 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9153 : : {
9154 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9155 : : {
9156 : 0 : {
9157 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9158 : 0 : const enum tree_code cmp1 = LE_EXPR;
9159 : 0 : const enum tree_code cmp2 = EQ_EXPR;
9160 : 0 : const enum tree_code rcmp = LT_EXPR;
9161 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9162 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9163 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9164 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9165 : : )
9166 : : {
9167 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1447;
9168 : 0 : {
9169 : 0 : tree res_op0;
9170 : 0 : res_op0 = captures[0];
9171 : 0 : tree res_op1;
9172 : 0 : res_op1 = captures[1];
9173 : 0 : tree _r;
9174 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9175 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 970, __FILE__, __LINE__, true);
9176 : 0 : return _r;
9177 : : }
9178 : 0 : next_after_fail1447:;
9179 : : }
9180 : : }
9181 : : }
9182 : : }
9183 : : break;
9184 : : }
9185 : 0 : case NE_EXPR:
9186 : 0 : {
9187 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9188 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9189 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9190 : : {
9191 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9192 : : {
9193 : 0 : {
9194 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9195 : 0 : const enum tree_code cmp1 = LE_EXPR;
9196 : 0 : const enum tree_code cmp2 = NE_EXPR;
9197 : 0 : const enum tree_code rcmp = GE_EXPR;
9198 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9199 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9200 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9201 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9202 : : )
9203 : : {
9204 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1448;
9205 : 0 : {
9206 : 0 : tree res_op0;
9207 : 0 : res_op0 = captures[0];
9208 : 0 : tree res_op1;
9209 : 0 : res_op1 = captures[1];
9210 : 0 : tree _r;
9211 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9212 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 970, __FILE__, __LINE__, true);
9213 : 0 : return _r;
9214 : : }
9215 : 0 : next_after_fail1448:;
9216 : : }
9217 : : }
9218 : : }
9219 : : }
9220 : : break;
9221 : : }
9222 : : default:;
9223 : : }
9224 : : break;
9225 : : }
9226 : 100 : case GT_EXPR:
9227 : 100 : {
9228 : 100 : tree _q20 = TREE_OPERAND (_p0, 0);
9229 : 100 : tree _q21 = TREE_OPERAND (_p0, 1);
9230 : 100 : switch (TREE_CODE (_p1))
9231 : : {
9232 : 0 : case GT_EXPR:
9233 : 0 : {
9234 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9235 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9236 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9237 : : {
9238 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9239 : : {
9240 : 0 : {
9241 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
9242 : 0 : const enum tree_code cmp1 = LT_EXPR;
9243 : 0 : const enum tree_code cmp2 = GT_EXPR;
9244 : 0 : const enum tree_code rcmp = NE_EXPR;
9245 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9246 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9247 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9248 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9249 : : )
9250 : : {
9251 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1449;
9252 : 0 : {
9253 : 0 : tree res_op0;
9254 : 0 : res_op0 = captures[0];
9255 : 0 : tree res_op1;
9256 : 0 : res_op1 = captures[1];
9257 : 0 : tree _r;
9258 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9259 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 970, __FILE__, __LINE__, true);
9260 : 0 : return _r;
9261 : : }
9262 : 0 : next_after_fail1449:;
9263 : : }
9264 : : }
9265 : 0 : {
9266 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9267 : 0 : const enum tree_code cmp1 = LT_EXPR;
9268 : 0 : const enum tree_code cmp2 = GT_EXPR;
9269 : 0 : const enum tree_code rcmp = NE_EXPR;
9270 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9271 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9272 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9273 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9274 : : )
9275 : : {
9276 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1450;
9277 : 0 : {
9278 : 0 : tree res_op0;
9279 : 0 : res_op0 = captures[0];
9280 : 0 : tree res_op1;
9281 : 0 : res_op1 = captures[1];
9282 : 0 : tree _r;
9283 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9284 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 970, __FILE__, __LINE__, true);
9285 : 0 : return _r;
9286 : : }
9287 : 0 : next_after_fail1450:;
9288 : : }
9289 : : }
9290 : : }
9291 : : }
9292 : : break;
9293 : : }
9294 : 0 : case EQ_EXPR:
9295 : 0 : {
9296 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9297 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9298 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9299 : : {
9300 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9301 : : {
9302 : 0 : {
9303 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
9304 : 0 : const enum tree_code cmp1 = LT_EXPR;
9305 : 0 : const enum tree_code cmp2 = EQ_EXPR;
9306 : 0 : const enum tree_code rcmp = LE_EXPR;
9307 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9308 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9309 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9310 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9311 : : )
9312 : : {
9313 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1451;
9314 : 0 : {
9315 : 0 : tree res_op0;
9316 : 0 : res_op0 = captures[0];
9317 : 0 : tree res_op1;
9318 : 0 : res_op1 = captures[1];
9319 : 0 : tree _r;
9320 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9321 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 970, __FILE__, __LINE__, true);
9322 : 0 : return _r;
9323 : : }
9324 : 0 : next_after_fail1451:;
9325 : : }
9326 : : }
9327 : : }
9328 : : }
9329 : : break;
9330 : : }
9331 : 12 : case NE_EXPR:
9332 : 12 : {
9333 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
9334 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
9335 : 12 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9336 : : {
9337 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9338 : : {
9339 : 0 : {
9340 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
9341 : 0 : const enum tree_code cmp1 = LT_EXPR;
9342 : 0 : const enum tree_code cmp2 = NE_EXPR;
9343 : 0 : const enum tree_code rcmp = GT_EXPR;
9344 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9345 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9346 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9347 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9348 : : )
9349 : : {
9350 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1452;
9351 : 0 : {
9352 : 0 : tree res_op0;
9353 : 0 : res_op0 = captures[0];
9354 : 0 : tree res_op1;
9355 : 0 : res_op1 = captures[1];
9356 : 0 : tree _r;
9357 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9358 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 970, __FILE__, __LINE__, true);
9359 : 0 : return _r;
9360 : : }
9361 : 0 : next_after_fail1452:;
9362 : : }
9363 : : }
9364 : : }
9365 : : }
9366 : : break;
9367 : : }
9368 : 0 : case LT_EXPR:
9369 : 0 : {
9370 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9371 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9372 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9373 : : {
9374 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9375 : : {
9376 : 0 : {
9377 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9378 : 0 : const enum tree_code cmp1 = LT_EXPR;
9379 : 0 : const enum tree_code cmp2 = GT_EXPR;
9380 : 0 : const enum tree_code rcmp = NE_EXPR;
9381 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9382 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9383 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9384 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9385 : : )
9386 : : {
9387 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1453;
9388 : 0 : {
9389 : 0 : tree res_op0;
9390 : 0 : res_op0 = captures[0];
9391 : 0 : tree res_op1;
9392 : 0 : res_op1 = captures[1];
9393 : 0 : tree _r;
9394 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9395 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 970, __FILE__, __LINE__, true);
9396 : 0 : return _r;
9397 : : }
9398 : 0 : next_after_fail1453:;
9399 : : }
9400 : : }
9401 : : }
9402 : : }
9403 : : break;
9404 : : }
9405 : : default:;
9406 : : }
9407 : : break;
9408 : : }
9409 : 62 : case GE_EXPR:
9410 : 62 : {
9411 : 62 : tree _q20 = TREE_OPERAND (_p0, 0);
9412 : 62 : tree _q21 = TREE_OPERAND (_p0, 1);
9413 : 62 : switch (TREE_CODE (_p1))
9414 : : {
9415 : 1 : case GE_EXPR:
9416 : 1 : {
9417 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
9418 : 1 : tree _q51 = TREE_OPERAND (_p1, 1);
9419 : 1 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9420 : : {
9421 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9422 : : {
9423 : 0 : {
9424 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
9425 : 0 : const enum tree_code cmp1 = LE_EXPR;
9426 : 0 : const enum tree_code cmp2 = GE_EXPR;
9427 : 0 : const enum tree_code rcmp = NE_EXPR;
9428 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9429 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9430 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9431 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9432 : : )
9433 : : {
9434 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1454;
9435 : 0 : {
9436 : 0 : tree res_op0;
9437 : 0 : res_op0 = captures[0];
9438 : 0 : tree res_op1;
9439 : 0 : res_op1 = captures[1];
9440 : 0 : tree _r;
9441 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9442 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 970, __FILE__, __LINE__, true);
9443 : 0 : return _r;
9444 : : }
9445 : 0 : next_after_fail1454:;
9446 : : }
9447 : : }
9448 : 0 : {
9449 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9450 : 0 : const enum tree_code cmp1 = LE_EXPR;
9451 : 0 : const enum tree_code cmp2 = GE_EXPR;
9452 : 0 : const enum tree_code rcmp = NE_EXPR;
9453 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9454 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9455 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9456 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9457 : : )
9458 : : {
9459 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1455;
9460 : 0 : {
9461 : 0 : tree res_op0;
9462 : 0 : res_op0 = captures[0];
9463 : 0 : tree res_op1;
9464 : 0 : res_op1 = captures[1];
9465 : 0 : tree _r;
9466 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9467 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 970, __FILE__, __LINE__, true);
9468 : 0 : return _r;
9469 : : }
9470 : 0 : next_after_fail1455:;
9471 : : }
9472 : : }
9473 : : }
9474 : : }
9475 : : break;
9476 : : }
9477 : 0 : case EQ_EXPR:
9478 : 0 : {
9479 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9480 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9481 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9482 : : {
9483 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9484 : : {
9485 : 0 : {
9486 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
9487 : 0 : const enum tree_code cmp1 = LE_EXPR;
9488 : 0 : const enum tree_code cmp2 = EQ_EXPR;
9489 : 0 : const enum tree_code rcmp = LT_EXPR;
9490 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9491 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9492 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9493 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9494 : : )
9495 : : {
9496 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1456;
9497 : 0 : {
9498 : 0 : tree res_op0;
9499 : 0 : res_op0 = captures[0];
9500 : 0 : tree res_op1;
9501 : 0 : res_op1 = captures[1];
9502 : 0 : tree _r;
9503 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9504 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 970, __FILE__, __LINE__, true);
9505 : 0 : return _r;
9506 : : }
9507 : 0 : next_after_fail1456:;
9508 : : }
9509 : : }
9510 : : }
9511 : : }
9512 : : break;
9513 : : }
9514 : 8 : case NE_EXPR:
9515 : 8 : {
9516 : 8 : tree _q50 = TREE_OPERAND (_p1, 0);
9517 : 8 : tree _q51 = TREE_OPERAND (_p1, 1);
9518 : 8 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9519 : : {
9520 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9521 : : {
9522 : 0 : {
9523 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
9524 : 0 : const enum tree_code cmp1 = LE_EXPR;
9525 : 0 : const enum tree_code cmp2 = NE_EXPR;
9526 : 0 : const enum tree_code rcmp = GE_EXPR;
9527 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9528 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9529 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9530 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9531 : : )
9532 : : {
9533 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1457;
9534 : 0 : {
9535 : 0 : tree res_op0;
9536 : 0 : res_op0 = captures[0];
9537 : 0 : tree res_op1;
9538 : 0 : res_op1 = captures[1];
9539 : 0 : tree _r;
9540 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9541 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 970, __FILE__, __LINE__, true);
9542 : 0 : return _r;
9543 : : }
9544 : 0 : next_after_fail1457:;
9545 : : }
9546 : : }
9547 : : }
9548 : : }
9549 : : break;
9550 : : }
9551 : 0 : case LE_EXPR:
9552 : 0 : {
9553 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9554 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9555 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9556 : : {
9557 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9558 : : {
9559 : 0 : {
9560 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9561 : 0 : const enum tree_code cmp1 = LE_EXPR;
9562 : 0 : const enum tree_code cmp2 = GE_EXPR;
9563 : 0 : const enum tree_code rcmp = NE_EXPR;
9564 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9565 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9566 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9567 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9568 : : )
9569 : : {
9570 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1458;
9571 : 0 : {
9572 : 0 : tree res_op0;
9573 : 0 : res_op0 = captures[0];
9574 : 0 : tree res_op1;
9575 : 0 : res_op1 = captures[1];
9576 : 0 : tree _r;
9577 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9578 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 970, __FILE__, __LINE__, true);
9579 : 0 : return _r;
9580 : : }
9581 : 0 : next_after_fail1458:;
9582 : : }
9583 : : }
9584 : : }
9585 : : }
9586 : : break;
9587 : : }
9588 : : default:;
9589 : : }
9590 : : break;
9591 : : }
9592 : 118 : case EQ_EXPR:
9593 : 118 : {
9594 : 118 : tree _q20 = TREE_OPERAND (_p0, 0);
9595 : 118 : tree _q21 = TREE_OPERAND (_p0, 1);
9596 : 118 : switch (TREE_CODE (_p1))
9597 : : {
9598 : 0 : case LT_EXPR:
9599 : 0 : {
9600 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9601 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9602 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9603 : : {
9604 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9605 : : {
9606 : 0 : {
9607 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9608 : 0 : const enum tree_code cmp1 = LT_EXPR;
9609 : 0 : const enum tree_code cmp2 = EQ_EXPR;
9610 : 0 : const enum tree_code rcmp = LE_EXPR;
9611 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9612 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9613 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9614 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9615 : : )
9616 : : {
9617 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1459;
9618 : 0 : {
9619 : 0 : tree res_op0;
9620 : 0 : res_op0 = captures[0];
9621 : 0 : tree res_op1;
9622 : 0 : res_op1 = captures[1];
9623 : 0 : tree _r;
9624 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9625 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 970, __FILE__, __LINE__, true);
9626 : 0 : return _r;
9627 : : }
9628 : 0 : next_after_fail1459:;
9629 : : }
9630 : : }
9631 : : }
9632 : : }
9633 : : break;
9634 : : }
9635 : 0 : case LE_EXPR:
9636 : 0 : {
9637 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9638 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9639 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9640 : : {
9641 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9642 : : {
9643 : 0 : {
9644 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9645 : 0 : const enum tree_code cmp1 = LE_EXPR;
9646 : 0 : const enum tree_code cmp2 = EQ_EXPR;
9647 : 0 : const enum tree_code rcmp = LT_EXPR;
9648 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9649 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9650 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9651 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9652 : : )
9653 : : {
9654 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1460;
9655 : 0 : {
9656 : 0 : tree res_op0;
9657 : 0 : res_op0 = captures[0];
9658 : 0 : tree res_op1;
9659 : 0 : res_op1 = captures[1];
9660 : 0 : tree _r;
9661 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9662 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 970, __FILE__, __LINE__, true);
9663 : 0 : return _r;
9664 : : }
9665 : 0 : next_after_fail1460:;
9666 : : }
9667 : : }
9668 : : }
9669 : : }
9670 : : break;
9671 : : }
9672 : 0 : case GT_EXPR:
9673 : 0 : {
9674 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9675 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9676 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9677 : : {
9678 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9679 : : {
9680 : 0 : {
9681 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9682 : 0 : const enum tree_code cmp1 = LT_EXPR;
9683 : 0 : const enum tree_code cmp2 = EQ_EXPR;
9684 : 0 : const enum tree_code rcmp = LE_EXPR;
9685 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9686 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9687 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9688 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9689 : : )
9690 : : {
9691 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1461;
9692 : 0 : {
9693 : 0 : tree res_op0;
9694 : 0 : res_op0 = captures[0];
9695 : 0 : tree res_op1;
9696 : 0 : res_op1 = captures[1];
9697 : 0 : tree _r;
9698 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9699 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 970, __FILE__, __LINE__, true);
9700 : 0 : return _r;
9701 : : }
9702 : 0 : next_after_fail1461:;
9703 : : }
9704 : : }
9705 : : }
9706 : : }
9707 : : break;
9708 : : }
9709 : 8 : case GE_EXPR:
9710 : 8 : {
9711 : 8 : tree _q50 = TREE_OPERAND (_p1, 0);
9712 : 8 : tree _q51 = TREE_OPERAND (_p1, 1);
9713 : 8 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9714 : : {
9715 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9716 : : {
9717 : 0 : {
9718 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9719 : 0 : const enum tree_code cmp1 = LE_EXPR;
9720 : 0 : const enum tree_code cmp2 = EQ_EXPR;
9721 : 0 : const enum tree_code rcmp = LT_EXPR;
9722 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9723 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9724 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9725 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9726 : : )
9727 : : {
9728 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1462;
9729 : 0 : {
9730 : 0 : tree res_op0;
9731 : 0 : res_op0 = captures[0];
9732 : 0 : tree res_op1;
9733 : 0 : res_op1 = captures[1];
9734 : 0 : tree _r;
9735 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9736 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 970, __FILE__, __LINE__, true);
9737 : 0 : return _r;
9738 : : }
9739 : 0 : next_after_fail1462:;
9740 : : }
9741 : : }
9742 : : }
9743 : : }
9744 : : break;
9745 : : }
9746 : : default:;
9747 : : }
9748 : : break;
9749 : : }
9750 : 113 : case NE_EXPR:
9751 : 113 : {
9752 : 113 : tree _q20 = TREE_OPERAND (_p0, 0);
9753 : 113 : tree _q21 = TREE_OPERAND (_p0, 1);
9754 : 113 : switch (TREE_CODE (_p1))
9755 : : {
9756 : 0 : case LT_EXPR:
9757 : 0 : {
9758 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9759 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9760 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9761 : : {
9762 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9763 : : {
9764 : 0 : {
9765 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9766 : 0 : const enum tree_code cmp1 = LT_EXPR;
9767 : 0 : const enum tree_code cmp2 = NE_EXPR;
9768 : 0 : const enum tree_code rcmp = GT_EXPR;
9769 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9770 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9771 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9772 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9773 : : )
9774 : : {
9775 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1463;
9776 : 0 : {
9777 : 0 : tree res_op0;
9778 : 0 : res_op0 = captures[0];
9779 : 0 : tree res_op1;
9780 : 0 : res_op1 = captures[1];
9781 : 0 : tree _r;
9782 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9783 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 970, __FILE__, __LINE__, true);
9784 : 0 : return _r;
9785 : : }
9786 : 0 : next_after_fail1463:;
9787 : : }
9788 : : }
9789 : : }
9790 : : }
9791 : : break;
9792 : : }
9793 : 0 : case LE_EXPR:
9794 : 0 : {
9795 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9796 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9797 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9798 : : {
9799 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9800 : : {
9801 : 0 : {
9802 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9803 : 0 : const enum tree_code cmp1 = LE_EXPR;
9804 : 0 : const enum tree_code cmp2 = NE_EXPR;
9805 : 0 : const enum tree_code rcmp = GE_EXPR;
9806 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9807 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9808 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9809 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9810 : : )
9811 : : {
9812 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1464;
9813 : 0 : {
9814 : 0 : tree res_op0;
9815 : 0 : res_op0 = captures[0];
9816 : 0 : tree res_op1;
9817 : 0 : res_op1 = captures[1];
9818 : 0 : tree _r;
9819 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9820 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 970, __FILE__, __LINE__, true);
9821 : 0 : return _r;
9822 : : }
9823 : 0 : next_after_fail1464:;
9824 : : }
9825 : : }
9826 : : }
9827 : : }
9828 : : break;
9829 : : }
9830 : 0 : case GT_EXPR:
9831 : 0 : {
9832 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9833 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9834 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9835 : : {
9836 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9837 : : {
9838 : 0 : {
9839 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9840 : 0 : const enum tree_code cmp1 = LT_EXPR;
9841 : 0 : const enum tree_code cmp2 = NE_EXPR;
9842 : 0 : const enum tree_code rcmp = GT_EXPR;
9843 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9844 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9845 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9846 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9847 : : )
9848 : : {
9849 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1465;
9850 : 0 : {
9851 : 0 : tree res_op0;
9852 : 0 : res_op0 = captures[0];
9853 : 0 : tree res_op1;
9854 : 0 : res_op1 = captures[1];
9855 : 0 : tree _r;
9856 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9857 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 970, __FILE__, __LINE__, true);
9858 : 0 : return _r;
9859 : : }
9860 : 0 : next_after_fail1465:;
9861 : : }
9862 : : }
9863 : : }
9864 : : }
9865 : : break;
9866 : : }
9867 : 6 : case GE_EXPR:
9868 : 6 : {
9869 : 6 : tree _q50 = TREE_OPERAND (_p1, 0);
9870 : 6 : tree _q51 = TREE_OPERAND (_p1, 1);
9871 : 6 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9872 : : {
9873 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9874 : : {
9875 : 0 : {
9876 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9877 : 0 : const enum tree_code cmp1 = LE_EXPR;
9878 : 0 : const enum tree_code cmp2 = NE_EXPR;
9879 : 0 : const enum tree_code rcmp = GE_EXPR;
9880 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9881 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9882 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9883 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9884 : : )
9885 : : {
9886 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1466;
9887 : 0 : {
9888 : 0 : tree res_op0;
9889 : 0 : res_op0 = captures[0];
9890 : 0 : tree res_op1;
9891 : 0 : res_op1 = captures[1];
9892 : 0 : tree _r;
9893 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9894 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 970, __FILE__, __LINE__, true);
9895 : 0 : return _r;
9896 : : }
9897 : 0 : next_after_fail1466:;
9898 : : }
9899 : : }
9900 : : }
9901 : : }
9902 : : break;
9903 : : }
9904 : : default:;
9905 : : }
9906 : : break;
9907 : : }
9908 : 523 : case MULT_EXPR:
9909 : 523 : {
9910 : 523 : tree _q20 = TREE_OPERAND (_p0, 0);
9911 : 523 : tree _q21 = TREE_OPERAND (_p0, 1);
9912 : 523 : switch (TREE_CODE (_q21))
9913 : : {
9914 : 498 : case INTEGER_CST:
9915 : 498 : {
9916 : 498 : switch (TREE_CODE (_p1))
9917 : : {
9918 : 12 : case MULT_EXPR:
9919 : 12 : {
9920 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
9921 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
9922 : 12 : switch (TREE_CODE (_q51))
9923 : : {
9924 : 12 : case INTEGER_CST:
9925 : 12 : {
9926 : 12 : {
9927 : 12 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1, _p1, _q50, _q51 };
9928 : 12 : tree res = generic_simplify_143 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
9929 : 12 : if (res) return res;
9930 : : }
9931 : 12 : break;
9932 : : }
9933 : : default:;
9934 : : }
9935 : : break;
9936 : : }
9937 : 0 : case LSHIFT_EXPR:
9938 : 0 : {
9939 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9940 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9941 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9942 : : {
9943 : 0 : switch (TREE_CODE (_q51))
9944 : : {
9945 : 0 : case INTEGER_CST:
9946 : 0 : {
9947 : 0 : {
9948 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1, _q51 };
9949 : 0 : tree res = generic_simplify_144 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
9950 : 0 : if (res) return res;
9951 : : }
9952 : 0 : break;
9953 : : }
9954 : : default:;
9955 : : }
9956 : : }
9957 : : break;
9958 : : }
9959 : 498 : default:;
9960 : : }
9961 : 498 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
9962 : : {
9963 : 18 : {
9964 : 18 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21 };
9965 : 18 : tree res = generic_simplify_145 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
9966 : 18 : if (res) return res;
9967 : : }
9968 : : }
9969 : : break;
9970 : : }
9971 : 523 : default:;
9972 : : }
9973 : 523 : switch (TREE_CODE (_q20))
9974 : : {
9975 : 0 : case BIT_XOR_EXPR:
9976 : 0 : {
9977 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
9978 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
9979 : 0 : if (tree_zero_one_valued_p (_q21))
9980 : : {
9981 : 0 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
9982 : : {
9983 : 0 : {
9984 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q21 };
9985 : 0 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures);
9986 : 0 : if (res) return res;
9987 : : }
9988 : : }
9989 : 0 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
9990 : : {
9991 : 0 : {
9992 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q21 };
9993 : 0 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures);
9994 : 0 : if (res) return res;
9995 : : }
9996 : : }
9997 : : }
9998 : : break;
9999 : : }
10000 : 523 : default:;
10001 : : }
10002 : 523 : if (tree_zero_one_valued_p (_q20))
10003 : : {
10004 : 8 : switch (TREE_CODE (_q21))
10005 : : {
10006 : 2 : case BIT_XOR_EXPR:
10007 : 2 : {
10008 : 2 : tree _q40 = TREE_OPERAND (_q21, 0);
10009 : 2 : tree _q41 = TREE_OPERAND (_q21, 1);
10010 : 2 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
10011 : : {
10012 : 2 : {
10013 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _q20 };
10014 : 2 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures);
10015 : 2 : if (res) return res;
10016 : : }
10017 : : }
10018 : 0 : if ((_p1 == _q41 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q41, 0) && types_match (_p1, _q41)))
10019 : : {
10020 : 0 : {
10021 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _q20 };
10022 : 0 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures);
10023 : 0 : if (res) return res;
10024 : : }
10025 : : }
10026 : : break;
10027 : : }
10028 : : default:;
10029 : : }
10030 : : }
10031 : : break;
10032 : : }
10033 : 2489 : case LSHIFT_EXPR:
10034 : 2489 : {
10035 : 2489 : tree _q20 = TREE_OPERAND (_p0, 0);
10036 : 2489 : tree _q21 = TREE_OPERAND (_p0, 1);
10037 : 2489 : switch (TREE_CODE (_q21))
10038 : : {
10039 : 1108 : case INTEGER_CST:
10040 : 1108 : {
10041 : 1108 : switch (TREE_CODE (_p1))
10042 : : {
10043 : 0 : case MULT_EXPR:
10044 : 0 : {
10045 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
10046 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
10047 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
10048 : : {
10049 : 0 : switch (TREE_CODE (_q51))
10050 : : {
10051 : 0 : case INTEGER_CST:
10052 : 0 : {
10053 : 0 : {
10054 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _p1, _q20, _q51, _p0, _q21 };
10055 : 0 : tree res = generic_simplify_144 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
10056 : 0 : if (res) return res;
10057 : : }
10058 : 0 : break;
10059 : : }
10060 : : default:;
10061 : : }
10062 : : }
10063 : : break;
10064 : : }
10065 : 1108 : default:;
10066 : : }
10067 : 1108 : {
10068 : 1108 : tree _p1_pops[1];
10069 : 1108 : if (tree_nop_convert (_p1, _p1_pops))
10070 : : {
10071 : 23 : tree _q50 = _p1_pops[0];
10072 : 23 : switch (TREE_CODE (_q50))
10073 : : {
10074 : 0 : case MULT_EXPR:
10075 : 0 : {
10076 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
10077 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
10078 : 0 : {
10079 : 0 : tree _q60_pops[1];
10080 : 0 : if (tree_nop_convert (_q60, _q60_pops))
10081 : : {
10082 : 0 : tree _q70 = _q60_pops[0];
10083 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
10084 : : {
10085 : 0 : switch (TREE_CODE (_q61))
10086 : : {
10087 : 0 : case INTEGER_CST:
10088 : 0 : {
10089 : 0 : {
10090 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q50, _q20, _q61, _p0, _q21 };
10091 : 0 : tree res = generic_simplify_117 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
10092 : 0 : if (res) return res;
10093 : : }
10094 : 0 : break;
10095 : : }
10096 : : default:;
10097 : : }
10098 : : }
10099 : : }
10100 : : }
10101 : 0 : break;
10102 : : }
10103 : : default:;
10104 : : }
10105 : : }
10106 : : }
10107 : 1108 : break;
10108 : : }
10109 : : default:;
10110 : : }
10111 : : break;
10112 : : }
10113 : 680957 : default:;
10114 : : }
10115 : 680957 : switch (TREE_CODE (_p1))
10116 : : {
10117 : 243 : case MULT_EXPR:
10118 : 243 : {
10119 : 243 : tree _q30 = TREE_OPERAND (_p1, 0);
10120 : 243 : tree _q31 = TREE_OPERAND (_p1, 1);
10121 : 243 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
10122 : : {
10123 : 0 : switch (TREE_CODE (_q31))
10124 : : {
10125 : 0 : case INTEGER_CST:
10126 : 0 : {
10127 : 0 : {
10128 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _p1, _p0, _q31 };
10129 : 0 : tree res = generic_simplify_145 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
10130 : 0 : if (res) return res;
10131 : : }
10132 : 0 : break;
10133 : : }
10134 : : default:;
10135 : : }
10136 : : }
10137 : : break;
10138 : : }
10139 : 680957 : default:;
10140 : : }
10141 : 680957 : {
10142 : 680957 : tree _p1_pops[1];
10143 : 680957 : if (tree_nop_convert (_p1, _p1_pops))
10144 : : {
10145 : 535043 : tree _q30 = _p1_pops[0];
10146 : 535043 : switch (TREE_CODE (_q30))
10147 : : {
10148 : 17 : case MULT_EXPR:
10149 : 17 : {
10150 : 17 : tree _q40 = TREE_OPERAND (_q30, 0);
10151 : 17 : tree _q41 = TREE_OPERAND (_q30, 1);
10152 : 17 : {
10153 : 17 : tree _q40_pops[1];
10154 : 17 : if (tree_nop_convert (_q40, _q40_pops))
10155 : : {
10156 : 0 : tree _q50 = _q40_pops[0];
10157 : 0 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
10158 : : {
10159 : 0 : switch (TREE_CODE (_q41))
10160 : : {
10161 : 0 : case INTEGER_CST:
10162 : 0 : {
10163 : 0 : {
10164 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q30, _p0, _q41 };
10165 : 0 : tree res = generic_simplify_118 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
10166 : 0 : if (res) return res;
10167 : : }
10168 : 0 : break;
10169 : : }
10170 : : default:;
10171 : : }
10172 : : }
10173 : : }
10174 : : }
10175 : 17 : break;
10176 : : }
10177 : : default:;
10178 : : }
10179 : : }
10180 : : }
10181 : 680957 : switch (TREE_CODE (_p0))
10182 : : {
10183 : 2489 : case LSHIFT_EXPR:
10184 : 2489 : {
10185 : 2489 : tree _q20 = TREE_OPERAND (_p0, 0);
10186 : 2489 : tree _q21 = TREE_OPERAND (_p0, 1);
10187 : 2489 : switch (TREE_CODE (_q21))
10188 : : {
10189 : 1108 : case INTEGER_CST:
10190 : 1108 : {
10191 : 1108 : switch (TREE_CODE (_p1))
10192 : : {
10193 : 9 : case LSHIFT_EXPR:
10194 : 9 : {
10195 : 9 : tree _q50 = TREE_OPERAND (_p1, 0);
10196 : 9 : tree _q51 = TREE_OPERAND (_p1, 1);
10197 : 9 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
10198 : : {
10199 : 3 : switch (TREE_CODE (_q51))
10200 : : {
10201 : 3 : case INTEGER_CST:
10202 : 3 : {
10203 : 3 : {
10204 : 3 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
10205 : 3 : tree res = generic_simplify_146 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
10206 : 3 : if (res) return res;
10207 : : }
10208 : 1 : break;
10209 : : }
10210 : : default:;
10211 : : }
10212 : : }
10213 : : break;
10214 : : }
10215 : 1106 : default:;
10216 : : }
10217 : 1106 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
10218 : : {
10219 : 57 : {
10220 : 57 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
10221 : 57 : tree res = generic_simplify_147 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
10222 : 57 : if (res) return res;
10223 : : }
10224 : : }
10225 : : break;
10226 : : }
10227 : : default:;
10228 : : }
10229 : : break;
10230 : : }
10231 : 680955 : default:;
10232 : : }
10233 : 680955 : switch (TREE_CODE (_p1))
10234 : : {
10235 : 1982 : case LSHIFT_EXPR:
10236 : 1982 : {
10237 : 1982 : tree _q30 = TREE_OPERAND (_p1, 0);
10238 : 1982 : tree _q31 = TREE_OPERAND (_p1, 1);
10239 : 1982 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
10240 : : {
10241 : 3 : switch (TREE_CODE (_q31))
10242 : : {
10243 : 3 : case INTEGER_CST:
10244 : 3 : {
10245 : 3 : {
10246 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _p0, _q31 };
10247 : 3 : tree res = generic_simplify_147 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
10248 : 3 : if (res) return res;
10249 : : }
10250 : 0 : break;
10251 : : }
10252 : : default:;
10253 : : }
10254 : : }
10255 : : break;
10256 : : }
10257 : 680952 : default:;
10258 : : }
10259 : 680952 : switch (TREE_CODE (_p0))
10260 : : {
10261 : 0 : case MIN_EXPR:
10262 : 0 : {
10263 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
10264 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
10265 : 0 : switch (TREE_CODE (_p1))
10266 : : {
10267 : 0 : case MAX_EXPR:
10268 : 0 : {
10269 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
10270 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
10271 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
10272 : : {
10273 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10274 : : {
10275 : 0 : {
10276 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10277 : 0 : if (!HONOR_NANS (captures[0])
10278 : : )
10279 : : {
10280 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1467;
10281 : 0 : {
10282 : 0 : tree res_op0;
10283 : 0 : res_op0 = captures[0];
10284 : 0 : tree res_op1;
10285 : 0 : res_op1 = captures[1];
10286 : 0 : tree _r;
10287 : 0 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
10288 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 915, __FILE__, __LINE__, true);
10289 : 0 : return _r;
10290 : : }
10291 : 0 : next_after_fail1467:;
10292 : : }
10293 : : }
10294 : : }
10295 : : }
10296 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
10297 : : {
10298 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
10299 : : {
10300 : 0 : {
10301 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
10302 : 0 : if (!HONOR_NANS (captures[0])
10303 : : )
10304 : : {
10305 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1468;
10306 : 0 : {
10307 : 0 : tree res_op0;
10308 : 0 : res_op0 = captures[0];
10309 : 0 : tree res_op1;
10310 : 0 : res_op1 = captures[1];
10311 : 0 : tree _r;
10312 : 0 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
10313 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 915, __FILE__, __LINE__, true);
10314 : 0 : return _r;
10315 : : }
10316 : 0 : next_after_fail1468:;
10317 : : }
10318 : : }
10319 : : }
10320 : : }
10321 : : break;
10322 : : }
10323 : : default:;
10324 : : }
10325 : : break;
10326 : : }
10327 : 0 : case MAX_EXPR:
10328 : 0 : {
10329 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
10330 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
10331 : 0 : switch (TREE_CODE (_p1))
10332 : : {
10333 : 0 : case MIN_EXPR:
10334 : 0 : {
10335 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
10336 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
10337 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
10338 : : {
10339 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10340 : : {
10341 : 0 : {
10342 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10343 : 0 : if (!HONOR_NANS (captures[0])
10344 : : )
10345 : : {
10346 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1469;
10347 : 0 : {
10348 : 0 : tree res_op0;
10349 : 0 : res_op0 = captures[0];
10350 : 0 : tree res_op1;
10351 : 0 : res_op1 = captures[1];
10352 : 0 : tree _r;
10353 : 0 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
10354 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 915, __FILE__, __LINE__, true);
10355 : 0 : return _r;
10356 : : }
10357 : 0 : next_after_fail1469:;
10358 : : }
10359 : : }
10360 : : }
10361 : : }
10362 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
10363 : : {
10364 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
10365 : : {
10366 : 0 : {
10367 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10368 : 0 : if (!HONOR_NANS (captures[0])
10369 : : )
10370 : : {
10371 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1470;
10372 : 0 : {
10373 : 0 : tree res_op0;
10374 : 0 : res_op0 = captures[0];
10375 : 0 : tree res_op1;
10376 : 0 : res_op1 = captures[1];
10377 : 0 : tree _r;
10378 : 0 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
10379 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 915, __FILE__, __LINE__, true);
10380 : 0 : return _r;
10381 : : }
10382 : 0 : next_after_fail1470:;
10383 : : }
10384 : : }
10385 : : }
10386 : : }
10387 : : break;
10388 : : }
10389 : : default:;
10390 : : }
10391 : : break;
10392 : : }
10393 : 680952 : default:;
10394 : : }
10395 : 680952 : switch (TREE_CODE (_p1))
10396 : : {
10397 : 243 : case MULT_EXPR:
10398 : 243 : {
10399 : 243 : tree _q30 = TREE_OPERAND (_p1, 0);
10400 : 243 : tree _q31 = TREE_OPERAND (_p1, 1);
10401 : 243 : switch (TREE_CODE (_q30))
10402 : : {
10403 : 0 : case BIT_XOR_EXPR:
10404 : 0 : {
10405 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
10406 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
10407 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
10408 : : {
10409 : 0 : if (tree_zero_one_valued_p (_q31))
10410 : : {
10411 : 0 : {
10412 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q41, _q31 };
10413 : 0 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures);
10414 : 0 : if (res) return res;
10415 : : }
10416 : : }
10417 : : }
10418 : 0 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
10419 : : {
10420 : 0 : if (tree_zero_one_valued_p (_q31))
10421 : : {
10422 : 0 : {
10423 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q40, _q31 };
10424 : 0 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures);
10425 : 0 : if (res) return res;
10426 : : }
10427 : : }
10428 : : }
10429 : : break;
10430 : : }
10431 : 243 : default:;
10432 : : }
10433 : 243 : if (tree_zero_one_valued_p (_q30))
10434 : : {
10435 : 17 : switch (TREE_CODE (_q31))
10436 : : {
10437 : 0 : case BIT_XOR_EXPR:
10438 : 0 : {
10439 : 0 : tree _q50 = TREE_OPERAND (_q31, 0);
10440 : 0 : tree _q51 = TREE_OPERAND (_q31, 1);
10441 : 0 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
10442 : : {
10443 : 0 : {
10444 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q51, _q30 };
10445 : 0 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures);
10446 : 0 : if (res) return res;
10447 : : }
10448 : : }
10449 : 0 : if ((_q51 == _p0 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _p0, 0) && types_match (_q51, _p0)))
10450 : : {
10451 : 0 : {
10452 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q50, _q30 };
10453 : 0 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures);
10454 : 0 : if (res) return res;
10455 : : }
10456 : : }
10457 : : break;
10458 : : }
10459 : : default:;
10460 : : }
10461 : : }
10462 : : break;
10463 : : }
10464 : 680952 : default:;
10465 : : }
10466 : 680952 : switch (TREE_CODE (_p0))
10467 : : {
10468 : 1 : case VEC_COND_EXPR:
10469 : 1 : {
10470 : 1 : tree _q20 = TREE_OPERAND (_p0, 0);
10471 : 1 : tree _q21 = TREE_OPERAND (_p0, 1);
10472 : 1 : tree _q22 = TREE_OPERAND (_p0, 2);
10473 : 1 : switch (TREE_CODE (_p1))
10474 : : {
10475 : 0 : case VEC_COND_EXPR:
10476 : 0 : {
10477 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
10478 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
10479 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
10480 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
10481 : : {
10482 : 0 : {
10483 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
10484 : 0 : if (VECTOR_TYPE_P (type)
10485 : 0 : && (TREE_CODE_CLASS (BIT_XOR_EXPR) != tcc_comparison
10486 : : || types_match (type, TREE_TYPE (captures[2]))
10487 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
10488 : : || (optimize_vectors_before_lowering_p ()
10489 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
10490 : : )
10491 : : {
10492 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1471;
10493 : 0 : {
10494 : 0 : tree res_op0;
10495 : 0 : res_op0 = captures[1];
10496 : 0 : tree res_op1;
10497 : 0 : {
10498 : 0 : tree _o1[2], _r1;
10499 : 0 : _o1[0] = captures[2];
10500 : 0 : _o1[1] = captures[5];
10501 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10502 : 0 : if (EXPR_P (_r1))
10503 : 0 : goto next_after_fail1471;
10504 : 0 : res_op1 = _r1;
10505 : : }
10506 : 0 : tree res_op2;
10507 : 0 : {
10508 : 0 : tree _o1[2], _r1;
10509 : 0 : _o1[0] = captures[3];
10510 : 0 : _o1[1] = captures[6];
10511 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10512 : 0 : if (EXPR_P (_r1))
10513 : 0 : goto next_after_fail1471;
10514 : 0 : res_op2 = _r1;
10515 : : }
10516 : 0 : tree _r;
10517 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10518 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 919, __FILE__, __LINE__, true);
10519 : 0 : return _r;
10520 : : }
10521 : 0 : next_after_fail1471:;
10522 : : }
10523 : : }
10524 : : }
10525 : : break;
10526 : : }
10527 : 1 : default:;
10528 : : }
10529 : 1 : if (integer_minus_onep (_q21))
10530 : : {
10531 : 1 : if (integer_zerop (_q22))
10532 : : {
10533 : 1 : switch (TREE_CODE (_p1))
10534 : : {
10535 : 0 : case VEC_COND_EXPR:
10536 : 0 : {
10537 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
10538 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
10539 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
10540 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
10541 : : {
10542 : 0 : if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
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_fail1472;
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", 963, __FILE__, __LINE__, true);
10567 : 0 : return _r;
10568 : : }
10569 : 0 : next_after_fail1472:;
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_fail1473;
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", 963, __FILE__, __LINE__, true);
10595 : 0 : return _r;
10596 : : }
10597 : 0 : next_after_fail1473:;
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_fail1474;
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", 963, __FILE__, __LINE__, true);
10623 : 0 : return _r;
10624 : : }
10625 : 0 : next_after_fail1474:;
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_fail1475;
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", 963, __FILE__, __LINE__, true);
10651 : 0 : return _r;
10652 : : }
10653 : 0 : next_after_fail1475:;
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_fail1476;
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", 963, __FILE__, __LINE__, true);
10679 : 0 : return _r;
10680 : : }
10681 : 0 : next_after_fail1476:;
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_fail1477;
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", 963, __FILE__, __LINE__, true);
10707 : 0 : return _r;
10708 : : }
10709 : 0 : next_after_fail1477:;
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_fail1478;
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", 963, __FILE__, __LINE__, true);
10735 : 0 : return _r;
10736 : : }
10737 : 0 : next_after_fail1478:;
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_fail1479;
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", 963, __FILE__, __LINE__, true);
10763 : 0 : return _r;
10764 : : }
10765 : 0 : next_after_fail1479:;
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_fail1480;
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", 963, __FILE__, __LINE__, true);
10791 : 0 : return _r;
10792 : : }
10793 : 0 : next_after_fail1480:;
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_fail1481;
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", 963, __FILE__, __LINE__, true);
10819 : 0 : return _r;
10820 : : }
10821 : 0 : next_after_fail1481:;
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_fail1482;
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", 963, __FILE__, __LINE__, true);
10847 : 0 : return _r;
10848 : : }
10849 : 0 : next_after_fail1482:;
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_fail1483;
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", 963, __FILE__, __LINE__, true);
10875 : 0 : return _r;
10876 : : }
10877 : 0 : next_after_fail1483:;
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_fail1484;
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", 963, __FILE__, __LINE__, true);
10903 : 0 : return _r;
10904 : : }
10905 : 0 : next_after_fail1484:;
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_fail1485;
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", 963, __FILE__, __LINE__, true);
10931 : 0 : return _r;
10932 : : }
10933 : 0 : next_after_fail1485:;
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_fail1486;
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", 963, __FILE__, __LINE__, true);
10959 : 0 : return _r;
10960 : : }
10961 : 0 : next_after_fail1486:;
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_fail1487;
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", 963, __FILE__, __LINE__, true);
10987 : 0 : return _r;
10988 : : }
10989 : 0 : next_after_fail1487:;
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_fail1488;
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", 963, __FILE__, __LINE__, true);
11015 : 0 : return _r;
11016 : : }
11017 : 0 : next_after_fail1488:;
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_fail1489;
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", 963, __FILE__, __LINE__, true);
11043 : 0 : return _r;
11044 : : }
11045 : 0 : next_after_fail1489:;
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_fail1490;
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", 963, __FILE__, __LINE__, true);
11071 : 0 : return _r;
11072 : : }
11073 : 0 : next_after_fail1490:;
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_fail1491;
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", 963, __FILE__, __LINE__, true);
11099 : 0 : return _r;
11100 : : }
11101 : 0 : next_after_fail1491:;
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_fail1492;
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", 963, __FILE__, __LINE__, true);
11127 : 0 : return _r;
11128 : : }
11129 : 0 : next_after_fail1492:;
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_fail1493;
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", 963, __FILE__, __LINE__, true);
11155 : 0 : return _r;
11156 : : }
11157 : 0 : next_after_fail1493:;
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_fail1494;
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", 963, __FILE__, __LINE__, true);
11183 : 0 : return _r;
11184 : : }
11185 : 0 : next_after_fail1494:;
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_fail1495;
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", 963, __FILE__, __LINE__, true);
11211 : 0 : return _r;
11212 : : }
11213 : 0 : next_after_fail1495:;
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_fail1496;
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", 963, __FILE__, __LINE__, true);
11239 : 0 : return _r;
11240 : : }
11241 : 0 : next_after_fail1496:;
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_fail1497;
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", 963, __FILE__, __LINE__, true);
11267 : 0 : return _r;
11268 : : }
11269 : 0 : next_after_fail1497:;
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_fail1498;
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", 963, __FILE__, __LINE__, true);
11295 : 0 : return _r;
11296 : : }
11297 : 0 : next_after_fail1498:;
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_fail1499;
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", 963, __FILE__, __LINE__, true);
11323 : 0 : return _r;
11324 : : }
11325 : 0 : next_after_fail1499:;
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_fail1500;
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", 963, __FILE__, __LINE__, true);
11351 : 0 : return _r;
11352 : : }
11353 : 0 : next_after_fail1500:;
11354 : : }
11355 : : }
11356 : 0 : {
11357 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11358 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11359 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11360 : : )
11361 : : {
11362 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1501;
11363 : 0 : {
11364 : 0 : tree res_op0;
11365 : 0 : {
11366 : 0 : tree _o1[2], _r1;
11367 : 0 : _o1[0] = captures[0];
11368 : 0 : _o1[1] = captures[3];
11369 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11370 : 0 : res_op0 = _r1;
11371 : : }
11372 : 0 : tree res_op1;
11373 : 0 : res_op1 = captures[1];
11374 : 0 : tree res_op2;
11375 : 0 : res_op2 = captures[2];
11376 : 0 : tree _r;
11377 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11378 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
11379 : 0 : return _r;
11380 : : }
11381 : 0 : next_after_fail1501:;
11382 : : }
11383 : : }
11384 : 0 : {
11385 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11386 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11387 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11388 : : )
11389 : : {
11390 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1502;
11391 : 0 : {
11392 : 0 : tree res_op0;
11393 : 0 : {
11394 : 0 : tree _o1[2], _r1;
11395 : 0 : _o1[0] = captures[0];
11396 : 0 : _o1[1] = captures[3];
11397 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11398 : 0 : res_op0 = _r1;
11399 : : }
11400 : 0 : tree res_op1;
11401 : 0 : res_op1 = captures[1];
11402 : 0 : tree res_op2;
11403 : 0 : res_op2 = captures[2];
11404 : 0 : tree _r;
11405 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11406 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
11407 : 0 : return _r;
11408 : : }
11409 : 0 : next_after_fail1502:;
11410 : : }
11411 : : }
11412 : 0 : {
11413 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11414 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11415 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11416 : : )
11417 : : {
11418 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1503;
11419 : 0 : {
11420 : 0 : tree res_op0;
11421 : 0 : {
11422 : 0 : tree _o1[2], _r1;
11423 : 0 : _o1[0] = captures[0];
11424 : 0 : _o1[1] = captures[3];
11425 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11426 : 0 : res_op0 = _r1;
11427 : : }
11428 : 0 : tree res_op1;
11429 : 0 : res_op1 = captures[1];
11430 : 0 : tree res_op2;
11431 : 0 : res_op2 = captures[2];
11432 : 0 : tree _r;
11433 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11434 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
11435 : 0 : return _r;
11436 : : }
11437 : 0 : next_after_fail1503:;
11438 : : }
11439 : : }
11440 : 0 : {
11441 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11442 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11443 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11444 : : )
11445 : : {
11446 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1504;
11447 : 0 : {
11448 : 0 : tree res_op0;
11449 : 0 : {
11450 : 0 : tree _o1[2], _r1;
11451 : 0 : _o1[0] = captures[0];
11452 : 0 : _o1[1] = captures[3];
11453 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11454 : 0 : res_op0 = _r1;
11455 : : }
11456 : 0 : tree res_op1;
11457 : 0 : res_op1 = captures[1];
11458 : 0 : tree res_op2;
11459 : 0 : res_op2 = captures[2];
11460 : 0 : tree _r;
11461 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11462 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
11463 : 0 : return _r;
11464 : : }
11465 : 0 : next_after_fail1504:;
11466 : : }
11467 : : }
11468 : 0 : {
11469 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11470 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11471 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11472 : : )
11473 : : {
11474 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1505;
11475 : 0 : {
11476 : 0 : tree res_op0;
11477 : 0 : {
11478 : 0 : tree _o1[2], _r1;
11479 : 0 : _o1[0] = captures[0];
11480 : 0 : _o1[1] = captures[3];
11481 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11482 : 0 : res_op0 = _r1;
11483 : : }
11484 : 0 : tree res_op1;
11485 : 0 : res_op1 = captures[1];
11486 : 0 : tree res_op2;
11487 : 0 : res_op2 = captures[2];
11488 : 0 : tree _r;
11489 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11490 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 963, __FILE__, __LINE__, true);
11491 : 0 : return _r;
11492 : : }
11493 : 0 : next_after_fail1505:;
11494 : : }
11495 : : }
11496 : : }
11497 : : }
11498 : : break;
11499 : : }
11500 : : default:;
11501 : : }
11502 : : }
11503 : : }
11504 : 1 : {
11505 : 1 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
11506 : 1 : if (VECTOR_TYPE_P (type)
11507 : 1 : && (TREE_CODE_CLASS (BIT_XOR_EXPR) != tcc_comparison
11508 : : || types_match (type, TREE_TYPE (captures[2]))
11509 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
11510 : : || (optimize_vectors_before_lowering_p ()
11511 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
11512 : : )
11513 : : {
11514 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1506;
11515 : 1 : {
11516 : 1 : if (! tree_invariant_p (captures[4])) goto next_after_fail1506;
11517 : 0 : tree res_op0;
11518 : 0 : res_op0 = captures[1];
11519 : 0 : tree res_op1;
11520 : 0 : {
11521 : 0 : tree _o1[2], _r1;
11522 : 0 : _o1[0] = captures[2];
11523 : 0 : _o1[1] = unshare_expr (captures[4]);
11524 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11525 : 0 : if (EXPR_P (_r1))
11526 : 0 : goto next_after_fail1506;
11527 : 0 : res_op1 = _r1;
11528 : : }
11529 : 0 : tree res_op2;
11530 : 0 : {
11531 : 0 : tree _o1[2], _r1;
11532 : 0 : _o1[0] = captures[3];
11533 : 0 : _o1[1] = captures[4];
11534 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11535 : 0 : if (EXPR_P (_r1))
11536 : 0 : goto next_after_fail1506;
11537 : 0 : res_op2 = _r1;
11538 : : }
11539 : 0 : tree _r;
11540 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11541 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 920, __FILE__, __LINE__, true);
11542 : 0 : return _r;
11543 : : }
11544 : 1 : next_after_fail1506:;
11545 : : }
11546 : : }
11547 : 1 : break;
11548 : : }
11549 : 680952 : default:;
11550 : : }
11551 : 680952 : switch (TREE_CODE (_p1))
11552 : : {
11553 : 0 : case VEC_COND_EXPR:
11554 : 0 : {
11555 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
11556 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
11557 : 0 : tree _q32 = TREE_OPERAND (_p1, 2);
11558 : 0 : {
11559 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
11560 : 0 : if (VECTOR_TYPE_P (type)
11561 : 0 : && (TREE_CODE_CLASS (BIT_XOR_EXPR) != tcc_comparison
11562 : : || types_match (type, TREE_TYPE (captures[3]))
11563 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
11564 : : || (optimize_vectors_before_lowering_p ()
11565 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
11566 : : )
11567 : : {
11568 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1507;
11569 : 0 : {
11570 : 0 : if (! tree_invariant_p (captures[0])) goto next_after_fail1507;
11571 : 0 : tree res_op0;
11572 : 0 : res_op0 = captures[2];
11573 : 0 : tree res_op1;
11574 : 0 : {
11575 : 0 : tree _o1[2], _r1;
11576 : 0 : _o1[0] = unshare_expr (captures[0]);
11577 : 0 : _o1[1] = captures[3];
11578 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11579 : 0 : if (EXPR_P (_r1))
11580 : 0 : goto next_after_fail1507;
11581 : 0 : res_op1 = _r1;
11582 : : }
11583 : 0 : tree res_op2;
11584 : 0 : {
11585 : 0 : tree _o1[2], _r1;
11586 : 0 : _o1[0] = captures[0];
11587 : 0 : _o1[1] = captures[4];
11588 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11589 : 0 : if (EXPR_P (_r1))
11590 : 0 : goto next_after_fail1507;
11591 : 0 : res_op2 = _r1;
11592 : : }
11593 : 0 : tree _r;
11594 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11595 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 921, __FILE__, __LINE__, true);
11596 : 0 : return _r;
11597 : : }
11598 : 0 : next_after_fail1507:;
11599 : : }
11600 : : }
11601 : 0 : break;
11602 : : }
11603 : 680952 : default:;
11604 : : }
11605 : 680952 : switch (TREE_CODE (_p0))
11606 : : {
11607 : 90 : case LT_EXPR:
11608 : 90 : {
11609 : 90 : tree _q20 = TREE_OPERAND (_p0, 0);
11610 : 90 : tree _q21 = TREE_OPERAND (_p0, 1);
11611 : 90 : if (integer_truep (_p1))
11612 : : {
11613 : 14 : {
11614 : 14 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11615 : 14 : tree res = generic_simplify_170 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR, UNGE_EXPR);
11616 : 14 : if (res) return res;
11617 : : }
11618 : : }
11619 : 76 : if (integer_zerop (_q21))
11620 : : {
11621 : 24 : switch (TREE_CODE (_p1))
11622 : : {
11623 : 17 : case LT_EXPR:
11624 : 17 : {
11625 : 17 : tree _q50 = TREE_OPERAND (_p1, 0);
11626 : 17 : tree _q51 = TREE_OPERAND (_p1, 1);
11627 : 17 : if (integer_zerop (_q51))
11628 : : {
11629 : 17 : {
11630 : 17 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q50 };
11631 : 17 : tree res = generic_simplify_171 (loc, type, _p0, _p1, captures, LT_EXPR);
11632 : 17 : if (res) return res;
11633 : : }
11634 : : }
11635 : : break;
11636 : : }
11637 : 0 : case GE_EXPR:
11638 : 0 : {
11639 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
11640 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
11641 : 0 : if (integer_zerop (_q51))
11642 : : {
11643 : 0 : {
11644 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q50 };
11645 : 0 : tree res = generic_simplify_172 (loc, type, _p0, _p1, captures);
11646 : 0 : if (res) return res;
11647 : : }
11648 : : }
11649 : : break;
11650 : : }
11651 : : default:;
11652 : : }
11653 : : }
11654 : : break;
11655 : : }
11656 : 78 : case LE_EXPR:
11657 : 78 : {
11658 : 78 : tree _q20 = TREE_OPERAND (_p0, 0);
11659 : 78 : tree _q21 = TREE_OPERAND (_p0, 1);
11660 : 78 : if (integer_truep (_p1))
11661 : : {
11662 : 15 : {
11663 : 15 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11664 : 15 : tree res = generic_simplify_170 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR, UNGT_EXPR);
11665 : 15 : if (res) return res;
11666 : : }
11667 : : }
11668 : : break;
11669 : : }
11670 : 118 : case EQ_EXPR:
11671 : 118 : {
11672 : 118 : tree _q20 = TREE_OPERAND (_p0, 0);
11673 : 118 : tree _q21 = TREE_OPERAND (_p0, 1);
11674 : 118 : if (integer_truep (_p1))
11675 : : {
11676 : 14 : {
11677 : 14 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11678 : 14 : tree res = generic_simplify_170 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR, NE_EXPR);
11679 : 14 : if (res) return res;
11680 : : }
11681 : : }
11682 : : break;
11683 : : }
11684 : 113 : case NE_EXPR:
11685 : 113 : {
11686 : 113 : tree _q20 = TREE_OPERAND (_p0, 0);
11687 : 113 : tree _q21 = TREE_OPERAND (_p0, 1);
11688 : 113 : if (integer_truep (_p1))
11689 : : {
11690 : 7 : {
11691 : 7 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11692 : 7 : tree res = generic_simplify_170 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR, EQ_EXPR);
11693 : 7 : if (res) return res;
11694 : : }
11695 : : }
11696 : : break;
11697 : : }
11698 : 62 : case GE_EXPR:
11699 : 62 : {
11700 : 62 : tree _q20 = TREE_OPERAND (_p0, 0);
11701 : 62 : tree _q21 = TREE_OPERAND (_p0, 1);
11702 : 62 : if (integer_truep (_p1))
11703 : : {
11704 : 0 : {
11705 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11706 : 0 : tree res = generic_simplify_170 (loc, type, _p0, _p1, captures, GE_EXPR, LT_EXPR, UNLT_EXPR);
11707 : 0 : if (res) return res;
11708 : : }
11709 : : }
11710 : 62 : if (integer_zerop (_q21))
11711 : : {
11712 : 26 : switch (TREE_CODE (_p1))
11713 : : {
11714 : 1 : case GE_EXPR:
11715 : 1 : {
11716 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
11717 : 1 : tree _q51 = TREE_OPERAND (_p1, 1);
11718 : 1 : if (integer_zerop (_q51))
11719 : : {
11720 : 1 : {
11721 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q50 };
11722 : 1 : tree res = generic_simplify_171 (loc, type, _p0, _p1, captures, GE_EXPR);
11723 : 1 : if (res) return res;
11724 : : }
11725 : : }
11726 : : break;
11727 : : }
11728 : 5 : case LT_EXPR:
11729 : 5 : {
11730 : 5 : tree _q50 = TREE_OPERAND (_p1, 0);
11731 : 5 : tree _q51 = TREE_OPERAND (_p1, 1);
11732 : 5 : if (integer_zerop (_q51))
11733 : : {
11734 : 5 : {
11735 : 5 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q50, _p0, _q20 };
11736 : 5 : tree res = generic_simplify_172 (loc, type, _p0, _p1, captures);
11737 : 5 : if (res) return res;
11738 : : }
11739 : : }
11740 : : break;
11741 : : }
11742 : : default:;
11743 : : }
11744 : : }
11745 : : break;
11746 : : }
11747 : 100 : case GT_EXPR:
11748 : 100 : {
11749 : 100 : tree _q20 = TREE_OPERAND (_p0, 0);
11750 : 100 : tree _q21 = TREE_OPERAND (_p0, 1);
11751 : 100 : if (integer_truep (_p1))
11752 : : {
11753 : 14 : {
11754 : 14 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11755 : 14 : tree res = generic_simplify_170 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR, UNLE_EXPR);
11756 : 14 : if (res) return res;
11757 : : }
11758 : : }
11759 : : break;
11760 : : }
11761 : 0 : case UNORDERED_EXPR:
11762 : 0 : {
11763 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11764 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11765 : 0 : if (integer_truep (_p1))
11766 : : {
11767 : 0 : {
11768 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11769 : 0 : tree res = generic_simplify_170 (loc, type, _p0, _p1, captures, UNORDERED_EXPR, ORDERED_EXPR, ORDERED_EXPR);
11770 : 0 : if (res) return res;
11771 : : }
11772 : : }
11773 : : break;
11774 : : }
11775 : 0 : case ORDERED_EXPR:
11776 : 0 : {
11777 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11778 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11779 : 0 : if (integer_truep (_p1))
11780 : : {
11781 : 0 : {
11782 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11783 : 0 : tree res = generic_simplify_170 (loc, type, _p0, _p1, captures, ORDERED_EXPR, UNORDERED_EXPR, UNORDERED_EXPR);
11784 : 0 : if (res) return res;
11785 : : }
11786 : : }
11787 : : break;
11788 : : }
11789 : 0 : case UNLT_EXPR:
11790 : 0 : {
11791 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11792 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11793 : 0 : if (integer_truep (_p1))
11794 : : {
11795 : 0 : {
11796 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11797 : 0 : tree res = generic_simplify_170 (loc, type, _p0, _p1, captures, UNLT_EXPR, GE_EXPR, GE_EXPR);
11798 : 0 : if (res) return res;
11799 : : }
11800 : : }
11801 : : break;
11802 : : }
11803 : 0 : case UNLE_EXPR:
11804 : 0 : {
11805 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11806 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11807 : 0 : if (integer_truep (_p1))
11808 : : {
11809 : 0 : {
11810 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11811 : 0 : tree res = generic_simplify_170 (loc, type, _p0, _p1, captures, UNLE_EXPR, GT_EXPR, GT_EXPR);
11812 : 0 : if (res) return res;
11813 : : }
11814 : : }
11815 : : break;
11816 : : }
11817 : 0 : case UNGT_EXPR:
11818 : 0 : {
11819 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11820 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11821 : 0 : if (integer_truep (_p1))
11822 : : {
11823 : 0 : {
11824 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11825 : 0 : tree res = generic_simplify_170 (loc, type, _p0, _p1, captures, UNGT_EXPR, LE_EXPR, LE_EXPR);
11826 : 0 : if (res) return res;
11827 : : }
11828 : : }
11829 : : break;
11830 : : }
11831 : 0 : case UNGE_EXPR:
11832 : 0 : {
11833 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11834 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11835 : 0 : if (integer_truep (_p1))
11836 : : {
11837 : 0 : {
11838 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11839 : 0 : tree res = generic_simplify_170 (loc, type, _p0, _p1, captures, UNGE_EXPR, LT_EXPR, LT_EXPR);
11840 : 0 : if (res) return res;
11841 : : }
11842 : : }
11843 : : break;
11844 : : }
11845 : 0 : case UNEQ_EXPR:
11846 : 0 : {
11847 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11848 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11849 : 0 : if (integer_truep (_p1))
11850 : : {
11851 : 0 : {
11852 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11853 : 0 : tree res = generic_simplify_170 (loc, type, _p0, _p1, captures, UNEQ_EXPR, LTGT_EXPR, LTGT_EXPR);
11854 : 0 : if (res) return res;
11855 : : }
11856 : : }
11857 : : break;
11858 : : }
11859 : 0 : case LTGT_EXPR:
11860 : 0 : {
11861 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11862 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11863 : 0 : if (integer_truep (_p1))
11864 : : {
11865 : 0 : {
11866 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11867 : 0 : tree res = generic_simplify_170 (loc, type, _p0, _p1, captures, LTGT_EXPR, UNEQ_EXPR, UNEQ_EXPR);
11868 : 0 : if (res) return res;
11869 : : }
11870 : : }
11871 : : break;
11872 : : }
11873 : 7 : case VEC_PERM_EXPR:
11874 : 7 : {
11875 : 7 : tree _q20 = TREE_OPERAND (_p0, 0);
11876 : 7 : tree _q21 = TREE_OPERAND (_p0, 1);
11877 : 7 : tree _q22 = TREE_OPERAND (_p0, 2);
11878 : 7 : if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
11879 : : {
11880 : 0 : switch (TREE_CODE (_p1))
11881 : : {
11882 : 0 : case VEC_PERM_EXPR:
11883 : 0 : {
11884 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
11885 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
11886 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
11887 : 0 : if ((_q61 == _q60 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q60, 0) && types_match (_q61, _q60)))
11888 : : {
11889 : 0 : if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
11890 : : {
11891 : 0 : {
11892 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q22, _q60 };
11893 : 0 : if (VECTOR_INTEGER_TYPE_P (type)
11894 : : )
11895 : : {
11896 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1508;
11897 : 0 : {
11898 : 0 : tree res_op0;
11899 : 0 : {
11900 : 0 : tree _o1[2], _r1;
11901 : 0 : _o1[0] = captures[0];
11902 : 0 : _o1[1] = captures[2];
11903 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11904 : 0 : captures[3] = _r1;
11905 : : }
11906 : 0 : res_op0 = unshare_expr (captures[3]);
11907 : 0 : tree res_op1;
11908 : 0 : res_op1 = captures[3];
11909 : 0 : tree res_op2;
11910 : 0 : res_op2 = captures[1];
11911 : 0 : tree _r;
11912 : 0 : _r = fold_build3_loc (loc, VEC_PERM_EXPR, type, res_op0, res_op1, res_op2);
11913 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 922, __FILE__, __LINE__, true);
11914 : 0 : return _r;
11915 : : }
11916 : 0 : next_after_fail1508:;
11917 : : }
11918 : : }
11919 : : }
11920 : : }
11921 : : break;
11922 : : }
11923 : : default:;
11924 : : }
11925 : : }
11926 : : break;
11927 : : }
11928 : 2963 : case CALL_EXPR:
11929 : 2963 : switch (get_call_combined_fn (_p0))
11930 : : {
11931 : 1 : case CFN_PARITY:
11932 : 1 : if (call_expr_nargs (_p0) == 1)
11933 : : {
11934 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11935 : 1 : switch (TREE_CODE (_p1))
11936 : : {
11937 : 1 : case CALL_EXPR:
11938 : 1 : switch (get_call_combined_fn (_p1))
11939 : : {
11940 : 1 : case CFN_PARITY:
11941 : 1 : if (call_expr_nargs (_p1) == 1)
11942 : : {
11943 : 1 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
11944 : 1 : {
11945 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
11946 : 1 : tree res = generic_simplify_173 (loc, type, _p0, _p1, captures, CFN_PARITY);
11947 : 1 : if (res) return res;
11948 : : }
11949 : : }
11950 : : break;
11951 : : default:;
11952 : : }
11953 : : break;
11954 : : default:;
11955 : : }
11956 : : }
11957 : : break;
11958 : 1 : case CFN_BUILT_IN_PARITYL:
11959 : 1 : if (call_expr_nargs (_p0) == 1)
11960 : : {
11961 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11962 : 1 : switch (TREE_CODE (_p1))
11963 : : {
11964 : 1 : case CALL_EXPR:
11965 : 1 : switch (get_call_combined_fn (_p1))
11966 : : {
11967 : 1 : case CFN_BUILT_IN_PARITYL:
11968 : 1 : if (call_expr_nargs (_p1) == 1)
11969 : : {
11970 : 1 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
11971 : 1 : {
11972 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
11973 : 1 : tree res = generic_simplify_173 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_PARITYL);
11974 : 1 : if (res) return res;
11975 : : }
11976 : : }
11977 : : break;
11978 : : default:;
11979 : : }
11980 : : break;
11981 : : default:;
11982 : : }
11983 : : }
11984 : : break;
11985 : 0 : case CFN_BUILT_IN_PARITYIMAX:
11986 : 0 : if (call_expr_nargs (_p0) == 1)
11987 : : {
11988 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11989 : 0 : switch (TREE_CODE (_p1))
11990 : : {
11991 : 0 : case CALL_EXPR:
11992 : 0 : switch (get_call_combined_fn (_p1))
11993 : : {
11994 : 0 : case CFN_BUILT_IN_PARITYIMAX:
11995 : 0 : if (call_expr_nargs (_p1) == 1)
11996 : : {
11997 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
11998 : 0 : {
11999 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
12000 : 0 : tree res = generic_simplify_173 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_PARITYIMAX);
12001 : 0 : if (res) return res;
12002 : : }
12003 : : }
12004 : : break;
12005 : : default:;
12006 : : }
12007 : : break;
12008 : : default:;
12009 : : }
12010 : : }
12011 : : break;
12012 : 1 : case CFN_BUILT_IN_PARITY:
12013 : 1 : if (call_expr_nargs (_p0) == 1)
12014 : : {
12015 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
12016 : 1 : switch (TREE_CODE (_p1))
12017 : : {
12018 : 1 : case CALL_EXPR:
12019 : 1 : switch (get_call_combined_fn (_p1))
12020 : : {
12021 : 1 : case CFN_BUILT_IN_PARITY:
12022 : 1 : if (call_expr_nargs (_p1) == 1)
12023 : : {
12024 : 1 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
12025 : 1 : {
12026 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
12027 : 1 : tree res = generic_simplify_173 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_PARITY);
12028 : 1 : if (res) return res;
12029 : : }
12030 : : }
12031 : : break;
12032 : : default:;
12033 : : }
12034 : : break;
12035 : : default:;
12036 : : }
12037 : : }
12038 : : break;
12039 : 8 : case CFN_BUILT_IN_PARITYLL:
12040 : 8 : if (call_expr_nargs (_p0) == 1)
12041 : : {
12042 : 8 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
12043 : 8 : switch (TREE_CODE (_p1))
12044 : : {
12045 : 8 : case CALL_EXPR:
12046 : 8 : switch (get_call_combined_fn (_p1))
12047 : : {
12048 : 8 : case CFN_BUILT_IN_PARITYLL:
12049 : 8 : if (call_expr_nargs (_p1) == 1)
12050 : : {
12051 : 8 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
12052 : 8 : {
12053 : 8 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
12054 : 8 : tree res = generic_simplify_173 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_PARITYLL);
12055 : 8 : if (res) return res;
12056 : : }
12057 : : }
12058 : : break;
12059 : : default:;
12060 : : }
12061 : : break;
12062 : : default:;
12063 : : }
12064 : : }
12065 : : break;
12066 : : default:;
12067 : : }
12068 : : break;
12069 : : default:;
12070 : : }
12071 : : return NULL_TREE;
12072 : : }
12073 : :
12074 : : tree
12075 : 28517201 : generic_simplify (location_t loc, enum tree_code code, const tree type ATTRIBUTE_UNUSED, tree _p0, tree _p1, tree _p2)
12076 : : {
12077 : 28517201 : switch (code)
12078 : : {
12079 : 11506741 : case COND_EXPR:
12080 : 11506741 : return generic_simplify_COND_EXPR (loc, code, type, _p0, _p1, _p2);
12081 : 334055 : case VEC_COND_EXPR:
12082 : 334055 : return generic_simplify_VEC_COND_EXPR (loc, code, type, _p0, _p1, _p2);
12083 : 644898 : case BIT_FIELD_REF:
12084 : 644898 : return generic_simplify_BIT_FIELD_REF (loc, code, type, _p0, _p1, _p2);
12085 : 14304 : case BIT_INSERT_EXPR:
12086 : 14304 : return generic_simplify_BIT_INSERT_EXPR (loc, code, type, _p0, _p1, _p2);
12087 : 725213 : case VEC_PERM_EXPR:
12088 : 725213 : return generic_simplify_VEC_PERM_EXPR (loc, code, type, _p0, _p1, _p2);
12089 : : default:;
12090 : : }
12091 : : return NULL_TREE;
12092 : : }
12093 : :
12094 : : tree
12095 : 0 : generic_simplify (location_t, enum tree_code,
12096 : : const tree, tree, tree, tree, tree)
12097 : : {
12098 : 0 : return NULL_TREE;
12099 : : }
12100 : :
12101 : : tree
12102 : 0 : generic_simplify (location_t, enum tree_code,
12103 : : const tree, tree, tree, tree, tree, tree)
12104 : : {
12105 : 0 : return NULL_TREE;
12106 : : }
12107 : :
12108 : : tree
12109 : 0 : generic_simplify (location_t, enum tree_code,
12110 : : const tree, tree, tree, tree, tree, tree, tree)
12111 : : {
12112 : 0 : return NULL_TREE;
12113 : : }
12114 : :
12115 : : tree
12116 : 0 : generic_simplify (location_t, enum tree_code,
12117 : : const tree, tree, tree, tree, tree, tree, tree, tree)
12118 : : {
12119 : 0 : return NULL_TREE;
12120 : : }
12121 : : void
12122 : 19463 : generic_dump_logs (const char *file1, int line1_id, const char *file2, int line2, bool simplify)
12123 : : {
12124 : 19463 : static int dbg_line_numbers[1134] = {
12125 : : /* 0 */ 161, 164, 173, 175, 178, 181, 183, 189, 197, 195,
12126 : : /* 10 */ 199, 201, 959, 961, 2143, 2149, 2151, 2154, 2159, 2162,
12127 : : /* 20 */ 2388, 2392, 2394, 2396, 2398, 2400, 2402, 2404, 2431, 2447,
12128 : : /* 30 */ 2455, 2437, 3006, 3008, 3010, 3017, 3014, 3024, 3026, 3033,
12129 : : /* 40 */ 3030, 3241, 3251, 3262, 3267, 3272, 3305, 3310, 3276, 3280,
12130 : : /* 50 */ 3284, 3334, 3288, 3316, 3322, 3328, 3292, 3351, 3355, 3380,
12131 : : /* 60 */ 3386, 3408, 3392, 3421, 3360, 3364, 3374, 3368, 3425, 3440,
12132 : : /* 70 */ 3467, 3502, 3479, 3520, 3527, 3579, 3536, 3607, 3554, 3545,
12133 : : /* 80 */ 3570, 3564, 3590, 3620, 3629, 3638, 3647, 3657, 3691, 3701,
12134 : : /* 90 */ 3704, 3736, 3761, 3724, 6001, 9300, 9321, 11498, 11501, 11506,
12135 : : /* 100 */ 11721, 11728, 11747, 11772, 11840, 11797, 11810, 11824, 11854, 11859,
12136 : : /* 110 */ 2110, 9120, 254, 281, 282, 493, 1330, 1498, 1834, 1884,
12137 : : /* 120 */ 1889, 1993, 1952, 4308, 4246, 2521, 2553, 4351, 4352, 4356,
12138 : : /* 130 */ 4357, 4367, 4371, 4375, 4390, 4393, 4397, 4323, 4326, 4331,
12139 : : /* 140 */ 4478, 4484, 4490, 4672, 4673, 4699, 4718, 4737, 5080, 5900,
12140 : : /* 150 */ 7238, 7323, 7325, 8748, 8823, 10426, 10474, 10488, 11525, 11947,
12141 : : /* 160 */ 943, 949, 1478, 1487, 1970, 1961, 1908, 2670, 4259, 4299,
12142 : : /* 170 */ 4304, 4305, 4313, 4314, 4317, 4334, 4409, 4412, 4416, 4498,
12143 : : /* 180 */ 4520, 4558, 4569, 4608, 4623, 5086, 7248, 8828, 10484, 11529,
12144 : : /* 190 */ 1336, 1340, 1464, 1473, 1503, 1508, 1550, 1535, 1542, 1565,
12145 : : /* 200 */ 1566, 1570, 1571, 1592, 2047, 1597, 1604, 1624, 1727, 1751,
12146 : : /* 210 */ 1841, 1846, 1856, 1866, 1980, 2039, 2067, 2077, 2079, 2302,
12147 : : /* 220 */ 2321, 2329, 2334, 2339, 2355, 2345, 2346, 4794, 4807, 4817,
12148 : : /* 230 */ 2369, 2380, 2383, 2415, 2504, 2533, 2535, 2540, 2542, 2663,
12149 : : /* 240 */ 3083, 3085, 3832, 3847, 3865, 4065, 4066, 4067, 4075, 4083,
12150 : : /* 250 */ 4092, 4101, 4133, 4134, 4139, 4140, 4145, 4150, 4154, 4209,
12151 : : /* 260 */ 4223, 3837, 3856, 3858, 3842, 4831, 4843, 7911, 9697, 1513,
12152 : : /* 270 */ 1518, 1629, 1634, 1851, 1941, 1861, 2005, 1871, 1876, 1999,
12153 : : /* 280 */ 2051, 2012, 2018, 2644, 2025, 2085, 5092, 7307, 7309, 7374,
12154 : : /* 290 */ 7382, 10571, 10577, 461, 467, 499, 1275, 1295, 1300, 2135,
12155 : : /* 300 */ 2136, 2173, 2679, 5585, 5886, 5893, 5943, 5946, 5996, 8741,
12156 : : /* 310 */ 9155, 8985, 8992, 9149, 9194, 9199, 329, 906, 1347, 2925,
12157 : : /* 320 */ 2420, 2658, 2473, 2697, 2707, 2746, 2752, 2755, 2760, 2776,
12158 : : /* 330 */ 2778, 2779, 2782, 2784, 2785, 2787, 2789, 2791, 2793, 2795,
12159 : : /* 340 */ 2797, 2811, 2812, 2846, 2931, 2956, 2872, 2899, 2939, 2944,
12160 : : /* 350 */ 2969, 2976, 3042, 4181, 5022, 5030, 5033, 5039, 5042, 5069,
12161 : : /* 360 */ 5377, 5378, 5412, 5416, 5545, 5385, 5386, 5430, 5433, 5434,
12162 : : /* 370 */ 5439, 5442, 5445, 5446, 5398, 5401, 5618, 5622, 5627, 5911,
12163 : : /* 380 */ 6063, 6067, 7334, 7350, 7352, 7364, 7394, 7400, 7401, 7416,
12164 : : /* 390 */ 7417, 7421, 7439, 7444, 7476, 7484, 7494, 7503, 7507, 7513,
12165 : : /* 400 */ 7520, 7536, 7540, 7544, 7551, 7552, 7557, 7558, 7565, 7566,
12166 : : /* 410 */ 7568, 7569, 7585, 7596, 7608, 7612, 7614, 7619, 7622, 7625,
12167 : : /* 420 */ 7633, 7695, 7696, 7700, 7701, 7708, 7712, 7716, 7719, 7725,
12168 : : /* 430 */ 7726, 7730, 7733, 7740, 7760, 7763, 7766, 7769, 7818, 7821,
12169 : : /* 440 */ 7825, 7832, 7838, 7846, 7855, 7856, 7954, 7964, 8003, 8009,
12170 : : /* 450 */ 8025, 8038, 8040, 8042, 8068, 8110, 8089, 8090, 8097, 8099,
12171 : : /* 460 */ 8115, 8121, 8126, 8135, 8141, 8147, 8152, 8157, 8189, 8252,
12172 : : /* 470 */ 8171, 8181, 8290, 8292, 8294, 8296, 8298, 8300, 8304, 8306,
12173 : : /* 480 */ 8329, 8352, 8464, 8471, 8472, 8480, 8481, 8661, 9741, 9743,
12174 : : /* 490 */ 9831, 9833, 9834, 9840, 9856, 9858, 9860, 9878, 9879, 10211,
12175 : : /* 500 */ 10214, 10228, 10237, 10301, 10302, 10356, 10358, 10434, 10843, 10845,
12176 : : /* 510 */ 10847, 11280, 1363, 7330, 7341, 7343, 7451, 473, 1248, 1269,
12177 : : /* 520 */ 9105, 9110, 9115, 533, 534, 545, 550, 557, 566, 574,
12178 : : /* 530 */ 583, 629, 632, 841, 994, 1022, 1053, 594, 871, 875,
12179 : : /* 540 */ 880, 886, 890, 898, 986, 745, 755, 757, 759, 8735,
12180 : : /* 550 */ 9160, 9182, 9165, 9170, 9175, 9189, 9223, 9228, 816, 6656,
12181 : : /* 560 */ 6658, 6660, 6760, 6763, 6937, 6939, 6953, 6957, 6980, 6986,
12182 : : /* 570 */ 7044, 3793, 5122, 5165, 5178, 6870, 6874, 6882, 5110, 5129,
12183 : : /* 580 */ 5136, 5142, 5148, 5154, 7050, 7182, 9714, 9715, 7192, 10631,
12184 : : /* 590 */ 10639, 8205, 8206, 8220, 8221, 828, 831, 1356, 1372, 1702,
12185 : : /* 600 */ 2720, 2723, 2820, 2832, 2914, 2858, 2885, 2997, 3000, 5060,
12186 : : /* 610 */ 5052, 7272, 8591, 7868, 7871, 7897, 7898, 8377, 8379, 8381,
12187 : : /* 620 */ 8383, 8387, 8389, 8391, 8393, 8397, 8402, 8409, 8414, 8434,
12188 : : /* 630 */ 8436, 8438, 8440, 8604, 8612, 8622, 8630, 8640, 8762, 8764,
12189 : : /* 640 */ 9755, 9774, 9814, 10279, 10281, 10282, 10337, 10340, 10342, 2736,
12190 : : /* 650 */ 7262, 7941, 8836, 8841, 10864, 10866, 10868, 10870, 10874, 932,
12191 : : /* 660 */ 968, 1320, 5198, 5268, 5271, 5279, 5346, 5348, 5349, 5350,
12192 : : /* 670 */ 5557, 5249, 5258, 6117, 6120, 6121, 6129, 2313, 4192, 4197,
12193 : : /* 680 */ 4964, 9580, 9582, 9613, 9648, 11891, 1212, 9053, 9074, 1221,
12194 : : /* 690 */ 8797, 8803, 9100, 9527, 1235, 1239, 9095, 9278, 1446, 1530,
12195 : : /* 700 */ 1578, 1523, 1555, 1586, 1619, 1660, 1671, 1682, 1694, 2565,
12196 : : /* 710 */ 1923, 1931, 1936, 2059, 2410, 2685, 3237, 5516, 5534, 5535,
12197 : : /* 720 */ 6088, 6094, 6142, 3802, 3804, 3814, 3816, 3923, 3924, 3925,
12198 : : /* 730 */ 3933, 3941, 3950, 3959, 3993, 3994, 3999, 4000, 4005, 4010,
12199 : : /* 740 */ 4014, 3822, 3827, 3872, 7466, 7914, 9683, 9685, 10469, 1609,
12200 : : /* 750 */ 1614, 2623, 1782, 2628, 5596, 2603, 2634, 2638, 5610, 5007,
12201 : : /* 760 */ 7299, 7301, 2180, 2194, 2608, 4284, 2219, 2242, 2243, 10154,
12202 : : /* 770 */ 4850, 4854, 4864, 4882, 4947, 4949, 4951, 4953, 5002, 9705,
12203 : : /* 780 */ 4868, 4875, 4860, 4974, 4983, 4986, 5185, 5318, 5328, 8690,
12204 : : /* 790 */ 8693, 8712, 6039, 6051, 6054, 6058, 11073, 11079, 11087, 11093,
12205 : : /* 800 */ 11102, 11108, 11116, 11122, 11168, 11176, 8496, 7459, 7455, 8671,
12206 : : /* 810 */ 8678, 8813, 8818, 8919, 9016, 9033, 9065, 9085, 9090, 9341,
12207 : : /* 820 */ 9318, 9297, 9126, 9130, 9421, 9431, 9438, 9447, 9465, 9472,
12208 : : /* 830 */ 9453, 9720, 9726, 10144, 10150, 10147, 10158, 10164, 10172, 10178,
12209 : : /* 840 */ 10186, 10192, 10246, 10449, 10464, 10730, 10733, 10538, 10552, 10565,
12210 : : /* 850 */ 11249, 11264, 11355, 11356, 12000, 219, 2091, 2101, 6174, 2119,
12211 : : /* 860 */ 1162, 2576, 3218, 5638, 5640, 5650, 5767, 5778, 5791, 5814,
12212 : : /* 870 */ 5824, 5833, 5845, 5871, 6182, 6588, 1779, 1793, 1800, 1822,
12213 : : /* 880 */ 1829, 2425, 2651, 2096, 2114, 2123, 2189, 2225, 2231, 4271,
12214 : : /* 890 */ 7225, 4279, 10168, 10182, 10196, 5655, 5665, 5674, 5701, 5711,
12215 : : /* 900 */ 5717, 6191, 5726, 5723, 6009, 6017, 6025, 6029, 6012, 6020,
12216 : : /* 910 */ 6033, 6045, 237, 727, 2489, 4929, 5958, 5964, 5966, 6209,
12217 : : /* 920 */ 6229, 6238, 11906, 3090, 3094, 242, 3111, 3115, 3146, 3154,
12218 : : /* 930 */ 3127, 3141, 260, 297, 1482, 1788, 1896, 1903, 1913, 1918,
12219 : : /* 940 */ 2200, 3162, 3174, 3168, 3180, 2211, 2841, 2866, 2893, 2877,
12220 : : /* 950 */ 2904, 4532, 4504, 4579, 4588, 4631, 4642, 5971, 5982, 11872,
12221 : : /* 960 */ 11873, 1707, 1712, 6218, 7904, 11227, 11231, 1735, 1740, 2616,
12222 : : /* 970 */ 4169, 247, 300, 2850, 3187, 3194, 3201, 3207, 4541, 3212,
12223 : : /* 980 */ 4597, 4645, 4654, 5974, 373, 304, 341, 350, 358, 432,
12224 : : /* 990 */ 447, 455, 646, 686, 1003, 1200, 1205, 1303, 1306, 1438,
12225 : : /* 1000 */ 2479, 5987, 8770, 8776, 8967, 9217, 2596, 6395, 6403, 7971,
12226 : : /* 1010 */ 8528, 8571, 8572, 2586, 8522, 609, 612, 736, 765, 771,
12227 : : /* 1020 */ 777, 785, 790, 795, 859, 863, 8782, 8788, 8446, 917,
12228 : : /* 1030 */ 1393, 5214, 1382, 1385, 1417, 1428, 5191, 5263, 5356, 1452,
12229 : : /* 1040 */ 1641, 1717, 1745, 2360, 5362, 5363, 7908, 11879, 4889, 4893,
12230 : : /* 1050 */ 4921, 4922, 4995, 4900, 4904, 4912, 4913, 5300, 6006, 8504,
12231 : : /* 1060 */ 8506, 8513, 8515, 7463, 7057, 5098, 6889, 6894, 7019, 7025,
12232 : : /* 1070 */ 7034, 7035, 6160, 6162, 7063, 7066, 7075, 7079, 7084, 7113,
12233 : : /* 1080 */ 7118, 7179, 7126, 7131, 7189, 8235, 8237, 7148, 7149, 7150,
12234 : : /* 1090 */ 7200, 7169, 7170, 7171, 7212, 7213, 8266, 8271, 7092, 6166,
12235 : : /* 1100 */ 6168, 6414, 6416, 9886, 9892, 9897, 9906, 9908, 9928, 9973,
12236 : : /* 1110 */ 9976, 9977, 10009, 10015, 10017, 10018, 10074, 10075, 10096, 10101,
12237 : : /* 1120 */ 10106, 10136, 11379, 11381, 11416, 11490, 11493, 11578, 11513, 11519,
12238 : : /* 1130 */ 11647, 11649, 11711, 11713
12239 : : };
12240 : :
12241 : 29187 : fprintf (dump_file, "%s %s:%d, %s:%d\n",
12242 : : simplify ? "Applying pattern" : "Matching expression", file1, dbg_line_numbers[line1_id], file2, line2);
12243 : 19463 : }
12244 : :
12245 : : #pragma GCC diagnostic pop
|