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 : 152310200 : tree_maybe_bit_not (tree t, tree *res_ops)
11 : : {
12 : 152310200 : const tree type = TREE_TYPE (t);
13 : 152310200 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
14 : 152310200 : if (TREE_SIDE_EFFECTS (t)) return false;
15 : 145235227 : switch (TREE_CODE (t))
16 : : {
17 : 48946232 : case INTEGER_CST:
18 : 48946232 : {
19 : 48946232 : {
20 : 48946232 : tree captures[1] ATTRIBUTE_UNUSED = { t };
21 : 48946232 : {
22 : 48946232 : res_ops[0] = captures[0];
23 : 48946232 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 8, __FILE__, __LINE__, false);
24 : : return true;
25 : : }
26 : : }
27 : 96288995 : break;
28 : : }
29 : 96288995 : default:;
30 : : }
31 : 96288995 : {
32 : 96288995 : tree t_pops[1];
33 : 96288995 : if (tree_bit_not_with_nop (t, t_pops))
34 : : {
35 : 107711 : tree _p0 = t_pops[0];
36 : 107711 : {
37 : 107711 : tree captures[2] ATTRIBUTE_UNUSED = { t, _p0 };
38 : 107711 : {
39 : 107711 : res_ops[0] = captures[0];
40 : 107711 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 9, __FILE__, __LINE__, false);
41 : 107711 : return true;
42 : : }
43 : : }
44 : : }
45 : : }
46 : 96181284 : {
47 : 96181284 : tree t_pops[1];
48 : 96181284 : if (tree_maybe_cmp (t, t_pops))
49 : : {
50 : 429811 : tree _p0 = t_pops[0];
51 : 429811 : {
52 : 429811 : tree captures[2] ATTRIBUTE_UNUSED = { t, _p0 };
53 : 429811 : {
54 : 429811 : res_ops[0] = captures[0];
55 : 429811 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 10, __FILE__, __LINE__, false);
56 : 429811 : return true;
57 : : }
58 : : }
59 : : }
60 : : }
61 : 95751473 : {
62 : 95751473 : tree t_pops[2];
63 : 95751473 : if (tree_bit_xor_cst (t, t_pops))
64 : : {
65 : 1586 : tree _p0 = t_pops[0];
66 : 1586 : tree _p1 = t_pops[1];
67 : 1586 : {
68 : 1586 : tree captures[3] ATTRIBUTE_UNUSED = { t, _p0, _p1 };
69 : 1586 : {
70 : 1586 : res_ops[0] = captures[0];
71 : 1586 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 11, __FILE__, __LINE__, false);
72 : 1586 : return true;
73 : : }
74 : : }
75 : : }
76 : : }
77 : 95749887 : return false;
78 : : }
79 : :
80 : : bool
81 : 1998 : tree_min_value (tree t)
82 : : {
83 : 1998 : const tree type = TREE_TYPE (t);
84 : 1998 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
85 : 1998 : if (TREE_SIDE_EFFECTS (t)) return false;
86 : 1990 : if (uniform_integer_cst_p (t))
87 : : {
88 : 1735 : {
89 : 1735 : {
90 : 1735 : tree int_cst = uniform_integer_cst_p (t);
91 : 1735 : tree inner_type = TREE_TYPE (int_cst);
92 : 3470 : if ((INTEGRAL_TYPE_P (inner_type)
93 : 17 : || POINTER_TYPE_P (inner_type))
94 : 3487 : && wi::eq_p (wi::to_wide (int_cst), wi::min_value (inner_type))
95 : : )
96 : : {
97 : 138 : {
98 : 138 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 41, __FILE__, __LINE__, false);
99 : 138 : return true;
100 : : }
101 : : }
102 : : }
103 : : }
104 : : }
105 : : return false;
106 : : }
107 : :
108 : : bool
109 : 0 : tree_unsigned_integer_sat_trunc (tree t, tree *res_ops)
110 : : {
111 : 0 : const tree type = TREE_TYPE (t);
112 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
113 : 0 : if (TREE_SIDE_EFFECTS (t)) return false;
114 : 0 : switch (TREE_CODE (t))
115 : : {
116 : 0 : case BIT_IOR_EXPR:
117 : 0 : {
118 : 0 : tree _p0 = TREE_OPERAND (t, 0);
119 : 0 : tree _p1 = TREE_OPERAND (t, 1);
120 : 0 : switch (TREE_CODE (_p0))
121 : : {
122 : 0 : case NEGATE_EXPR:
123 : 0 : {
124 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
125 : 0 : switch (TREE_CODE (_q20))
126 : : {
127 : 0 : CASE_CONVERT:
128 : 0 : {
129 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
130 : 0 : switch (TREE_CODE (_q30))
131 : : {
132 : 0 : case GT_EXPR:
133 : 0 : {
134 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
135 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
136 : 0 : switch (TREE_CODE (_q41))
137 : : {
138 : 0 : case INTEGER_CST:
139 : 0 : {
140 : 0 : switch (TREE_CODE (_p1))
141 : : {
142 : 0 : CASE_CONVERT:
143 : 0 : {
144 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
145 : 0 : if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
146 : : {
147 : 0 : {
148 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q41 };
149 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
150 : : )
151 : : {
152 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0]))
153 : : )
154 : : {
155 : 0 : {
156 : 0 : unsigned itype_precision = TYPE_PRECISION (TREE_TYPE (captures[0]));
157 : 0 : unsigned otype_precision = TYPE_PRECISION (type);
158 : 0 : wide_int trunc_max = wi::mask (otype_precision, false, itype_precision);
159 : 0 : wide_int int_cst = wi::to_wide (captures[1], itype_precision);
160 : 0 : if (otype_precision < itype_precision && wi::eq_p (trunc_max, int_cst)
161 : : )
162 : : {
163 : 0 : {
164 : 0 : res_ops[0] = captures[0];
165 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 70, __FILE__, __LINE__, false);
166 : 0 : return true;
167 : : }
168 : : }
169 : 0 : }
170 : : }
171 : : }
172 : : }
173 : : }
174 : : break;
175 : : }
176 : : default:;
177 : : }
178 : : break;
179 : : }
180 : : default:;
181 : : }
182 : : break;
183 : : }
184 : : default:;
185 : : }
186 : : break;
187 : : }
188 : : default:;
189 : : }
190 : : break;
191 : : }
192 : 0 : CASE_CONVERT:
193 : 0 : {
194 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
195 : 0 : switch (TREE_CODE (_p1))
196 : : {
197 : 0 : case NEGATE_EXPR:
198 : 0 : {
199 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
200 : 0 : switch (TREE_CODE (_q40))
201 : : {
202 : 0 : CASE_CONVERT:
203 : 0 : {
204 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
205 : 0 : switch (TREE_CODE (_q50))
206 : : {
207 : 0 : case GT_EXPR:
208 : 0 : {
209 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
210 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
211 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
212 : : {
213 : 0 : switch (TREE_CODE (_q61))
214 : : {
215 : 0 : case INTEGER_CST:
216 : 0 : {
217 : 0 : {
218 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q61 };
219 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
220 : : )
221 : : {
222 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0]))
223 : : )
224 : : {
225 : 0 : {
226 : 0 : unsigned itype_precision = TYPE_PRECISION (TREE_TYPE (captures[0]));
227 : 0 : unsigned otype_precision = TYPE_PRECISION (type);
228 : 0 : wide_int trunc_max = wi::mask (otype_precision, false, itype_precision);
229 : 0 : wide_int int_cst = wi::to_wide (captures[1], itype_precision);
230 : 0 : if (otype_precision < itype_precision && wi::eq_p (trunc_max, int_cst)
231 : : )
232 : : {
233 : 0 : {
234 : 0 : res_ops[0] = captures[0];
235 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 70, __FILE__, __LINE__, false);
236 : 0 : return true;
237 : : }
238 : : }
239 : 0 : }
240 : : }
241 : : }
242 : : }
243 : 0 : break;
244 : : }
245 : : default:;
246 : : }
247 : : }
248 : : break;
249 : : }
250 : : default:;
251 : : }
252 : : break;
253 : : }
254 : : default:;
255 : : }
256 : : break;
257 : : }
258 : 0 : case PLUS_EXPR:
259 : 0 : {
260 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
261 : 0 : tree _q41 = TREE_OPERAND (_p1, 1);
262 : 0 : switch (TREE_CODE (_q40))
263 : : {
264 : 0 : CASE_CONVERT:
265 : 0 : {
266 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
267 : 0 : switch (TREE_CODE (_q50))
268 : : {
269 : 0 : case LE_EXPR:
270 : 0 : {
271 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
272 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
273 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
274 : : {
275 : 0 : switch (TREE_CODE (_q61))
276 : : {
277 : 0 : case INTEGER_CST:
278 : 0 : {
279 : 0 : switch (TREE_CODE (_q41))
280 : : {
281 : 0 : case INTEGER_CST:
282 : 0 : {
283 : 0 : {
284 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q61, _q41 };
285 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
286 : : )
287 : : {
288 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0]))
289 : : )
290 : : {
291 : 0 : {
292 : 0 : unsigned itype_precision = TYPE_PRECISION (TREE_TYPE (captures[0]));
293 : 0 : unsigned otype_precision = TYPE_PRECISION (type);
294 : 0 : wide_int trunc_max = wi::mask (otype_precision, false, itype_precision);
295 : 0 : wide_int max = wi::mask (otype_precision, false, otype_precision);
296 : 0 : wide_int int_cst_1 = wi::to_wide (captures[1]);
297 : 0 : wide_int int_cst_2 = wi::to_wide (captures[2]);
298 : 0 : if (wi::eq_p (trunc_max, int_cst_1) && wi::eq_p (max, int_cst_2)
299 : : )
300 : : {
301 : 0 : {
302 : 0 : res_ops[0] = captures[0];
303 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 71, __FILE__, __LINE__, false);
304 : 0 : return true;
305 : : }
306 : : }
307 : 0 : }
308 : : }
309 : : }
310 : : }
311 : 0 : break;
312 : : }
313 : : default:;
314 : : }
315 : : break;
316 : : }
317 : : default:;
318 : : }
319 : : }
320 : : break;
321 : : }
322 : : default:;
323 : : }
324 : : break;
325 : : }
326 : 0 : case INTEGER_CST:
327 : 0 : {
328 : 0 : switch (TREE_CODE (_q41))
329 : : {
330 : 0 : CASE_CONVERT:
331 : 0 : {
332 : 0 : tree _q60 = TREE_OPERAND (_q41, 0);
333 : 0 : switch (TREE_CODE (_q60))
334 : : {
335 : 0 : case LE_EXPR:
336 : 0 : {
337 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
338 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
339 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
340 : : {
341 : 0 : switch (TREE_CODE (_q71))
342 : : {
343 : 0 : case INTEGER_CST:
344 : 0 : {
345 : 0 : {
346 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q71, _q40 };
347 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
348 : : )
349 : : {
350 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0]))
351 : : )
352 : : {
353 : 0 : {
354 : 0 : unsigned itype_precision = TYPE_PRECISION (TREE_TYPE (captures[0]));
355 : 0 : unsigned otype_precision = TYPE_PRECISION (type);
356 : 0 : wide_int trunc_max = wi::mask (otype_precision, false, itype_precision);
357 : 0 : wide_int max = wi::mask (otype_precision, false, otype_precision);
358 : 0 : wide_int int_cst_1 = wi::to_wide (captures[1]);
359 : 0 : wide_int int_cst_2 = wi::to_wide (captures[2]);
360 : 0 : if (wi::eq_p (trunc_max, int_cst_1) && wi::eq_p (max, int_cst_2)
361 : : )
362 : : {
363 : 0 : {
364 : 0 : res_ops[0] = captures[0];
365 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 71, __FILE__, __LINE__, false);
366 : 0 : return true;
367 : : }
368 : : }
369 : 0 : }
370 : : }
371 : : }
372 : : }
373 : 0 : break;
374 : : }
375 : : default:;
376 : : }
377 : : }
378 : : break;
379 : : }
380 : : default:;
381 : : }
382 : : break;
383 : : }
384 : : default:;
385 : : }
386 : : break;
387 : : }
388 : : default:;
389 : : }
390 : : break;
391 : : }
392 : : default:;
393 : : }
394 : : break;
395 : : }
396 : 0 : case PLUS_EXPR:
397 : 0 : {
398 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
399 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
400 : 0 : switch (TREE_CODE (_q20))
401 : : {
402 : 0 : CASE_CONVERT:
403 : 0 : {
404 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
405 : 0 : switch (TREE_CODE (_q30))
406 : : {
407 : 0 : case LE_EXPR:
408 : 0 : {
409 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
410 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
411 : 0 : switch (TREE_CODE (_q41))
412 : : {
413 : 0 : case INTEGER_CST:
414 : 0 : {
415 : 0 : switch (TREE_CODE (_q21))
416 : : {
417 : 0 : case INTEGER_CST:
418 : 0 : {
419 : 0 : switch (TREE_CODE (_p1))
420 : : {
421 : 0 : CASE_CONVERT:
422 : 0 : {
423 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
424 : 0 : if ((_q80 == _q40 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q40, 0) && types_match (_q80, _q40)))
425 : : {
426 : 0 : {
427 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _q21 };
428 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
429 : : )
430 : : {
431 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0]))
432 : : )
433 : : {
434 : 0 : {
435 : 0 : unsigned itype_precision = TYPE_PRECISION (TREE_TYPE (captures[0]));
436 : 0 : unsigned otype_precision = TYPE_PRECISION (type);
437 : 0 : wide_int trunc_max = wi::mask (otype_precision, false, itype_precision);
438 : 0 : wide_int max = wi::mask (otype_precision, false, otype_precision);
439 : 0 : wide_int int_cst_1 = wi::to_wide (captures[1]);
440 : 0 : wide_int int_cst_2 = wi::to_wide (captures[2]);
441 : 0 : if (wi::eq_p (trunc_max, int_cst_1) && wi::eq_p (max, int_cst_2)
442 : : )
443 : : {
444 : 0 : {
445 : 0 : res_ops[0] = captures[0];
446 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 71, __FILE__, __LINE__, false);
447 : 0 : return true;
448 : : }
449 : : }
450 : 0 : }
451 : : }
452 : : }
453 : : }
454 : : }
455 : : break;
456 : : }
457 : : default:;
458 : : }
459 : : break;
460 : : }
461 : : default:;
462 : : }
463 : : break;
464 : : }
465 : : default:;
466 : : }
467 : : break;
468 : : }
469 : : default:;
470 : : }
471 : : break;
472 : : }
473 : 0 : case INTEGER_CST:
474 : 0 : {
475 : 0 : switch (TREE_CODE (_q21))
476 : : {
477 : 0 : CASE_CONVERT:
478 : 0 : {
479 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
480 : 0 : switch (TREE_CODE (_q40))
481 : : {
482 : 0 : case LE_EXPR:
483 : 0 : {
484 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
485 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
486 : 0 : switch (TREE_CODE (_q51))
487 : : {
488 : 0 : case INTEGER_CST:
489 : 0 : {
490 : 0 : switch (TREE_CODE (_p1))
491 : : {
492 : 0 : CASE_CONVERT:
493 : 0 : {
494 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
495 : 0 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
496 : : {
497 : 0 : {
498 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q51, _q20 };
499 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
500 : : )
501 : : {
502 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0]))
503 : : )
504 : : {
505 : 0 : {
506 : 0 : unsigned itype_precision = TYPE_PRECISION (TREE_TYPE (captures[0]));
507 : 0 : unsigned otype_precision = TYPE_PRECISION (type);
508 : 0 : wide_int trunc_max = wi::mask (otype_precision, false, itype_precision);
509 : 0 : wide_int max = wi::mask (otype_precision, false, otype_precision);
510 : 0 : wide_int int_cst_1 = wi::to_wide (captures[1]);
511 : 0 : wide_int int_cst_2 = wi::to_wide (captures[2]);
512 : 0 : if (wi::eq_p (trunc_max, int_cst_1) && wi::eq_p (max, int_cst_2)
513 : : )
514 : : {
515 : 0 : {
516 : 0 : res_ops[0] = captures[0];
517 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 71, __FILE__, __LINE__, false);
518 : 0 : return true;
519 : : }
520 : : }
521 : 0 : }
522 : : }
523 : : }
524 : : }
525 : : }
526 : : break;
527 : : }
528 : : default:;
529 : : }
530 : : break;
531 : : }
532 : : default:;
533 : : }
534 : : break;
535 : : }
536 : : default:;
537 : : }
538 : : break;
539 : : }
540 : : default:;
541 : : }
542 : : break;
543 : : }
544 : : default:;
545 : : }
546 : : break;
547 : : }
548 : : default:;
549 : : }
550 : : break;
551 : : }
552 : 0 : CASE_CONVERT:
553 : 0 : {
554 : 0 : tree _p0 = TREE_OPERAND (t, 0);
555 : 0 : switch (TREE_CODE (_p0))
556 : : {
557 : 0 : case MIN_EXPR:
558 : 0 : {
559 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
560 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
561 : 0 : switch (TREE_CODE (_q21))
562 : : {
563 : 0 : case INTEGER_CST:
564 : 0 : {
565 : 0 : {
566 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p0, _q21 };
567 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
568 : : )
569 : : {
570 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0])) && single_use (captures[1])
571 : : )
572 : : {
573 : 0 : {
574 : 0 : unsigned itype_precision = TYPE_PRECISION (TREE_TYPE (captures[0]));
575 : 0 : unsigned otype_precision = TYPE_PRECISION (type);
576 : 0 : wide_int trunc_max = wi::mask (otype_precision, false, itype_precision);
577 : 0 : wide_int int_cst = wi::to_wide (captures[2], itype_precision);
578 : 0 : if (otype_precision < itype_precision && wi::eq_p (trunc_max, int_cst)
579 : : )
580 : : {
581 : 0 : {
582 : 0 : res_ops[0] = captures[0];
583 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 72, __FILE__, __LINE__, false);
584 : 0 : return true;
585 : : }
586 : : }
587 : 0 : }
588 : : }
589 : : }
590 : : }
591 : 0 : break;
592 : : }
593 : : default:;
594 : : }
595 : : break;
596 : : }
597 : : default:;
598 : : }
599 : : break;
600 : : }
601 : : default:;
602 : : }
603 : : return false;
604 : : }
605 : :
606 : : tree
607 : 3 : generic_simplify_1 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
608 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
609 : : const enum tree_code ARG_UNUSED (op))
610 : : {
611 : 3 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
612 : 3 : if (!flag_trapping_math
613 : : )
614 : : {
615 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail247;
616 : 2 : {
617 : 2 : tree res_op0;
618 : 2 : res_op0 = captures[0];
619 : 2 : tree _r;
620 : 2 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
621 : 2 : if (TREE_SIDE_EFFECTS (captures[1]))
622 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
623 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 110, __FILE__, __LINE__, true);
624 : 2 : return _r;
625 : : }
626 : 0 : next_after_fail247:;
627 : : }
628 : : return NULL_TREE;
629 : : }
630 : :
631 : : tree
632 : 1 : generic_simplify_2 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
633 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
634 : : const combined_fn ARG_UNUSED (COPYSIGN_ALL))
635 : : {
636 : 1 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
637 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail248;
638 : 1 : {
639 : 1 : tree res_op0;
640 : 1 : res_op0 = captures[0];
641 : 1 : tree _r;
642 : 1 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
643 : 1 : if (TREE_SIDE_EFFECTS (captures[1]))
644 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
645 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 111, __FILE__, __LINE__, true);
646 : : return _r;
647 : : }
648 : 0 : next_after_fail248:;
649 : 0 : return NULL_TREE;
650 : : }
651 : :
652 : : tree
653 : 5272 : generic_simplify_3 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
654 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
655 : : {
656 : 5272 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
657 : 5272 : if (fold_real_zero_addition_p (type, captures[0], captures[1], 0)
658 : : )
659 : : {
660 : 95 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail249;
661 : 95 : {
662 : 95 : tree res_op0;
663 : 95 : res_op0 = captures[0];
664 : 95 : tree _r;
665 : 95 : _r = non_lvalue_loc (loc, res_op0);
666 : 95 : if (TREE_SIDE_EFFECTS (captures[1]))
667 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
668 : 95 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 112, __FILE__, __LINE__, true);
669 : 95 : return _r;
670 : : }
671 : 0 : next_after_fail249:;
672 : : }
673 : : return NULL_TREE;
674 : : }
675 : :
676 : : tree
677 : 66 : generic_simplify_5 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
678 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
679 : : {
680 : 66 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
681 : 66 : if (ANY_INTEGRAL_TYPE_P (type) && TYPE_OVERFLOW_UNDEFINED (type)
682 : : )
683 : : {
684 : 66 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail252;
685 : 66 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail252;
686 : 66 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail252;
687 : 66 : {
688 : 66 : tree res_op0;
689 : 66 : res_op0 = captures[0];
690 : 66 : tree _r;
691 : 66 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
692 : 66 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 115, __FILE__, __LINE__, true);
693 : 66 : return _r;
694 : : }
695 : : next_after_fail252:;
696 : : }
697 : : return NULL_TREE;
698 : : }
699 : :
700 : : tree
701 : 7 : generic_simplify_6 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
702 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
703 : : const enum tree_code ARG_UNUSED (op))
704 : : {
705 : 7 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
706 : 7 : if (INTEGRAL_TYPE_P (type)
707 : 7 : && TYPE_OVERFLOW_WRAPS (type)
708 : 14 : && !TYPE_SATURATING (type)
709 : : )
710 : : {
711 : 7 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail253;
712 : 7 : {
713 : 7 : tree res_op0;
714 : 7 : {
715 : 7 : tree _o1[2], _r1;
716 : 7 : _o1[0] = captures[1];
717 : 7 : _o1[1] = captures[4];
718 : 7 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
719 : 7 : res_op0 = _r1;
720 : : }
721 : 7 : tree res_op1;
722 : 7 : res_op1 = captures[2];
723 : 7 : tree _r;
724 : 7 : _r = fold_build2_loc (loc, LSHIFT_EXPR, type, res_op0, res_op1);
725 : 7 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 116, __FILE__, __LINE__, true);
726 : 7 : return _r;
727 : : }
728 : 0 : next_after_fail253:;
729 : : }
730 : : return NULL_TREE;
731 : : }
732 : :
733 : : tree
734 : 45 : generic_simplify_8 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
735 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
736 : : {
737 : 45 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
738 : 45 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail255;
739 : 45 : {
740 : 45 : if (! tree_invariant_p (captures[2])) goto next_after_fail255;
741 : 45 : tree res_op0;
742 : 45 : {
743 : 45 : tree _o1[2], _r1;
744 : 45 : _o1[0] = captures[0];
745 : 45 : _o1[1] = unshare_expr (captures[2]);
746 : 45 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
747 : 45 : res_op0 = _r1;
748 : : }
749 : 45 : tree res_op1;
750 : 45 : {
751 : 45 : tree _o1[1], _r1;
752 : 45 : _o1[0] = captures[2];
753 : 45 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
754 : 45 : res_op1 = _r1;
755 : : }
756 : 45 : tree _r;
757 : 45 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
758 : 45 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 118, __FILE__, __LINE__, true);
759 : : return _r;
760 : : }
761 : : next_after_fail255:;
762 : : return NULL_TREE;
763 : : }
764 : :
765 : : tree
766 : 0 : generic_simplify_10 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
767 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
768 : : {
769 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
770 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail257;
771 : 0 : {
772 : 0 : tree res_op0;
773 : 0 : res_op0 = captures[0];
774 : 0 : tree res_op1;
775 : 0 : res_op1 = captures[1];
776 : 0 : tree _r;
777 : 0 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
778 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 120, __FILE__, __LINE__, true);
779 : : return _r;
780 : : }
781 : 0 : next_after_fail257:;
782 : 0 : return NULL_TREE;
783 : : }
784 : :
785 : : tree
786 : 48151 : generic_simplify_13 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
787 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
788 : : {
789 : 48151 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
790 : 48151 : if (!TYPE_SATURATING (type)
791 : : )
792 : : {
793 : 48151 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
794 : 96228 : && !FIXED_POINT_TYPE_P (type)
795 : : )
796 : : {
797 : 48077 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail260;
798 : 48077 : {
799 : 48077 : tree res_op0;
800 : 48077 : res_op0 = captures[0];
801 : 48077 : tree _r;
802 : 48077 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
803 : 48077 : if (TREE_SIDE_EFFECTS (captures[1]))
804 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
805 : 48077 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 123, __FILE__, __LINE__, true);
806 : 48077 : return _r;
807 : : }
808 : 0 : next_after_fail260:;
809 : : }
810 : : }
811 : : return NULL_TREE;
812 : : }
813 : :
814 : : tree
815 : 209341 : generic_simplify_14 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
816 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
817 : : {
818 : 209341 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
819 : 209341 : if (!TYPE_SATURATING (type)
820 : : )
821 : : {
822 : 209341 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[1]))
823 : 209341 : && !TYPE_OVERFLOW_SANITIZED (type)
824 : : )
825 : : {
826 : 207201 : {
827 : 207201 : tree t1 = type;
828 : 207201 : if (INTEGRAL_TYPE_P (type)
829 : 356064 : && TYPE_OVERFLOW_WRAPS (type) != TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[1])))
830 : 2357 : t1 = TYPE_OVERFLOW_WRAPS (type) ? type : TREE_TYPE (captures[1]);
831 : 207201 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail261;
832 : 207201 : {
833 : 207201 : tree res_op0;
834 : 207201 : {
835 : 207201 : tree _o1[2], _r1;
836 : 207201 : {
837 : 207201 : tree _o2[1], _r2;
838 : 207201 : _o2[0] = captures[0];
839 : 207201 : if (TREE_TYPE (_o2[0]) != t1)
840 : : {
841 : 2056 : _r2 = fold_build1_loc (loc, NOP_EXPR, t1, _o2[0]);
842 : : }
843 : : else
844 : : _r2 = _o2[0];
845 : 207201 : _o1[0] = _r2;
846 : : }
847 : 207201 : {
848 : 207201 : tree _o2[1], _r2;
849 : 207201 : _o2[0] = captures[1];
850 : 207201 : if (TREE_TYPE (_o2[0]) != t1)
851 : : {
852 : 1861 : _r2 = fold_build1_loc (loc, NOP_EXPR, t1, _o2[0]);
853 : : }
854 : : else
855 : : _r2 = _o2[0];
856 : 207201 : _o1[1] = _r2;
857 : : }
858 : 207201 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
859 : 207201 : res_op0 = _r1;
860 : : }
861 : 207201 : tree _r;
862 : 207201 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
863 : 207201 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 124, __FILE__, __LINE__, true);
864 : 207201 : return _r;
865 : : }
866 : 0 : next_after_fail261:;
867 : : }
868 : : }
869 : : }
870 : : return NULL_TREE;
871 : : }
872 : :
873 : : tree
874 : 745 : generic_simplify_19 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
875 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
876 : : {
877 : 745 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
878 : 745 : if (!TYPE_SATURATING (type)
879 : : )
880 : : {
881 : 745 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
882 : 1490 : && !FIXED_POINT_TYPE_P (type)
883 : : )
884 : : {
885 : 745 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail274;
886 : 745 : {
887 : 745 : tree res_op0;
888 : 745 : res_op0 = captures[2];
889 : 745 : tree res_op1;
890 : 745 : res_op1 = captures[1];
891 : 745 : tree _r;
892 : 745 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
893 : 745 : if (TREE_SIDE_EFFECTS (captures[0]))
894 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
895 : 745 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 137, __FILE__, __LINE__, true);
896 : 745 : return _r;
897 : : }
898 : 0 : next_after_fail274:;
899 : : }
900 : : }
901 : : return NULL_TREE;
902 : : }
903 : :
904 : : tree
905 : 10 : generic_simplify_20 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
906 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
907 : : {
908 : 10 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
909 : 10 : if (!TYPE_SATURATING (type)
910 : : )
911 : : {
912 : 10 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
913 : 20 : && !FIXED_POINT_TYPE_P (type)
914 : : )
915 : : {
916 : 10 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail275;
917 : 10 : {
918 : 10 : tree res_op0;
919 : 10 : res_op0 = captures[2];
920 : 10 : tree res_op1;
921 : 10 : res_op1 = captures[1];
922 : 10 : tree _r;
923 : 10 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
924 : 10 : if (TREE_SIDE_EFFECTS (captures[0]))
925 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
926 : 10 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 138, __FILE__, __LINE__, true);
927 : 10 : return _r;
928 : : }
929 : 0 : next_after_fail275:;
930 : : }
931 : : }
932 : : return NULL_TREE;
933 : : }
934 : :
935 : : tree
936 : 7 : generic_simplify_21 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
937 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
938 : : {
939 : 7 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
940 : 7 : if (!TYPE_SATURATING (type)
941 : : )
942 : : {
943 : 7 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
944 : 14 : && !FIXED_POINT_TYPE_P (type)
945 : : )
946 : : {
947 : 7 : if (TYPE_OVERFLOW_UNDEFINED (type)
948 : 14 : && !TYPE_OVERFLOW_SANITIZED (TREE_TYPE (captures[0]))
949 : : )
950 : : {
951 : 7 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail276;
952 : 7 : {
953 : 7 : tree res_op0;
954 : 7 : res_op0 = captures[2];
955 : 7 : tree res_op1;
956 : 7 : res_op1 = captures[1];
957 : 7 : tree _r;
958 : 7 : _r = fold_build2_loc (loc, POINTER_DIFF_EXPR, type, res_op0, res_op1);
959 : 7 : if (TREE_SIDE_EFFECTS (captures[0]))
960 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
961 : 7 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 139, __FILE__, __LINE__, true);
962 : 7 : return _r;
963 : : }
964 : 0 : next_after_fail276:;
965 : : }
966 : : }
967 : : }
968 : : return NULL_TREE;
969 : : }
970 : :
971 : : tree
972 : 6544343 : generic_simplify_22 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
973 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
974 : : const enum tree_code ARG_UNUSED (op))
975 : : {
976 : 6544343 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
977 : 6544343 : if (!TYPE_SATURATING (type)
978 : : )
979 : : {
980 : 6544343 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
981 : 12674183 : && !FIXED_POINT_TYPE_P (type)
982 : : )
983 : : {
984 : 6129840 : if (INTEGRAL_TYPE_P (type)
985 : 6129548 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
986 : 4841186 : && TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
987 : 4191118 : && types_match (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
988 : 3640783 : && !TYPE_OVERFLOW_TRAPS (type)
989 : 9770623 : && !TYPE_OVERFLOW_SANITIZED (type)
990 : : )
991 : : {
992 : 3640512 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail277;
993 : 3640512 : {
994 : 3640512 : tree res_op0;
995 : 3640512 : {
996 : 3640512 : tree _o1[2], _r1;
997 : 3640512 : _o1[0] = captures[0];
998 : 3640512 : _o1[1] = captures[1];
999 : 3640512 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1000 : 3640512 : if (EXPR_P (_r1))
1001 : 3626447 : goto next_after_fail277;
1002 : 14065 : res_op0 = _r1;
1003 : : }
1004 : 14065 : tree _r;
1005 : 14065 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1006 : 14065 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 140, __FILE__, __LINE__, true);
1007 : 14065 : return _r;
1008 : : }
1009 : : next_after_fail277:;
1010 : : }
1011 : : }
1012 : : }
1013 : : return NULL_TREE;
1014 : : }
1015 : :
1016 : : tree
1017 : 8923 : generic_simplify_26 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1018 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1019 : : const enum tree_code ARG_UNUSED (plusminus))
1020 : : {
1021 : 8923 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1022 : 8923 : if (!TYPE_SATURATING (type)
1023 : 8923 : && (!FLOAT_TYPE_P (type) || flag_associative_math)
1024 : : )
1025 : : {
1026 : 8757 : if (!ALL_FRACT_MODE_P (TYPE_MODE (type))
1027 : : )
1028 : : {
1029 : 4 : if ((!ANY_INTEGRAL_TYPE_P (type)
1030 : 8753 : || TYPE_OVERFLOW_WRAPS (type)
1031 : 3087 : || (INTEGRAL_TYPE_P (type)
1032 : 3087 : && ((tree_expr_nonzero_p (captures[0])
1033 : 132 : && expr_not_equal_to (captures[0],
1034 : 8889 : wi::minus_one (TYPE_PRECISION (type))))
1035 : : || (plusminus == PLUS_EXPR
1036 : 2955 : ? expr_not_equal_to (captures[2],
1037 : 8775 : wi::max_value (TYPE_PRECISION (type), SIGNED))
1038 : 2937 : : (expr_not_equal_to (captures[2],
1039 : 11694 : wi::min_value (TYPE_PRECISION (type), SIGNED))
1040 : 2883 : && expr_not_equal_to (captures[2],
1041 : 5766 : wi::min_value (TYPE_PRECISION (type), SIGNED)
1042 : 17406 : + 1))))))
1043 : 11712 : && single_use (captures[1])
1044 : : )
1045 : : {
1046 : 8703 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail282;
1047 : 8703 : {
1048 : 8703 : tree res_op0;
1049 : 8703 : {
1050 : 8703 : tree _o1[2], _r1;
1051 : 8703 : _o1[0] = build_one_cst (type);
1052 : 8703 : _o1[1] = captures[2];
1053 : 8703 : _r1 = fold_build2_loc (loc, plusminus, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1054 : 8703 : res_op0 = _r1;
1055 : : }
1056 : 8703 : tree res_op1;
1057 : 8703 : res_op1 = captures[0];
1058 : 8703 : tree _r;
1059 : 8703 : _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
1060 : 8703 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 145, __FILE__, __LINE__, true);
1061 : 8703 : return _r;
1062 : : }
1063 : 0 : next_after_fail282:;
1064 : : }
1065 : : }
1066 : : }
1067 : : return NULL_TREE;
1068 : : }
1069 : :
1070 : : tree
1071 : 2 : generic_simplify_30 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1072 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1073 : : const enum tree_code ARG_UNUSED (div),
1074 : : const enum tree_code ARG_UNUSED (mod))
1075 : : {
1076 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1077 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail286;
1078 : 2 : {
1079 : 2 : tree _r;
1080 : 2 : _r = captures[0];
1081 : 2 : if (TREE_SIDE_EFFECTS (captures[1]))
1082 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1083 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 149, __FILE__, __LINE__, true);
1084 : : return _r;
1085 : : }
1086 : 0 : next_after_fail286:;
1087 : 0 : return NULL_TREE;
1088 : : }
1089 : :
1090 : : tree
1091 : 20252 : generic_simplify_33 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1092 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1093 : : const enum tree_code ARG_UNUSED (op))
1094 : : {
1095 : 20252 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1096 : 20252 : if (flag_unsafe_math_optimizations
1097 : : )
1098 : : {
1099 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail290;
1100 : 12 : {
1101 : 12 : tree res_op0;
1102 : 12 : {
1103 : 12 : tree _o1[2], _r1;
1104 : 12 : _o1[0] = captures[0];
1105 : 12 : _o1[1] = captures[2];
1106 : 12 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1107 : 12 : res_op0 = _r1;
1108 : : }
1109 : 12 : tree res_op1;
1110 : 12 : res_op1 = captures[1];
1111 : 12 : tree _r;
1112 : 12 : _r = fold_build2_loc (loc, RDIV_EXPR, type, res_op0, res_op1);
1113 : 12 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 153, __FILE__, __LINE__, true);
1114 : 12 : return _r;
1115 : : }
1116 : 0 : next_after_fail290:;
1117 : : }
1118 : : return NULL_TREE;
1119 : : }
1120 : :
1121 : : tree
1122 : 4 : generic_simplify_36 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1123 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1124 : : const combined_fn ARG_UNUSED (POPCOUNT))
1125 : : {
1126 : 4 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1127 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail293;
1128 : 4 : {
1129 : 4 : tree res_op0;
1130 : 4 : {
1131 : 4 : tree _o1[1], _r1;
1132 : 4 : _o1[0] = captures[2];
1133 : 4 : _r1 = maybe_build_call_expr_loc (loc, POPCOUNT, type, 1, _o1[0]);
1134 : 4 : if (!_r1)
1135 : 0 : goto next_after_fail293;
1136 : 4 : res_op0 = _r1;
1137 : : }
1138 : 4 : tree res_op1;
1139 : 4 : {
1140 : 4 : tree _o1[1], _r1;
1141 : 4 : _o1[0] = captures[3];
1142 : 4 : _r1 = maybe_build_call_expr_loc (loc, POPCOUNT, type, 1, _o1[0]);
1143 : 4 : if (!_r1)
1144 : 0 : goto next_after_fail293;
1145 : 4 : res_op1 = _r1;
1146 : : }
1147 : 4 : tree _r;
1148 : 4 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
1149 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 156, __FILE__, __LINE__, true);
1150 : : return _r;
1151 : : }
1152 : : next_after_fail293:;
1153 : : return NULL_TREE;
1154 : : }
1155 : :
1156 : : tree
1157 : 21 : generic_simplify_42 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1158 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1159 : : {
1160 : 21 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1161 : 21 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail299;
1162 : 21 : {
1163 : 21 : tree res_op0;
1164 : 21 : {
1165 : 21 : tree _o1[2], _r1;
1166 : 21 : _o1[0] = captures[1];
1167 : 21 : _o1[1] = unshare_expr (captures[2]);
1168 : 21 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1169 : 21 : res_op0 = _r1;
1170 : : }
1171 : 21 : tree res_op1;
1172 : 21 : res_op1 = captures[2];
1173 : 21 : tree _r;
1174 : 21 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
1175 : 21 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 162, __FILE__, __LINE__, true);
1176 : : return _r;
1177 : : }
1178 : 0 : next_after_fail299:;
1179 : 0 : return NULL_TREE;
1180 : : }
1181 : :
1182 : : tree
1183 : 1 : generic_simplify_47 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1184 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1185 : : {
1186 : 1 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1187 : 1 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
1188 : 1 : && tree_nop_conversion_p (type, TREE_TYPE (captures[3]))
1189 : : )
1190 : : {
1191 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail304;
1192 : 1 : {
1193 : 1 : tree res_op0;
1194 : 1 : {
1195 : 1 : tree _o1[2], _r1;
1196 : 1 : {
1197 : 1 : tree _o2[1], _r2;
1198 : 1 : _o2[0] = captures[3];
1199 : 1 : _r2 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
1200 : 1 : _o1[0] = _r2;
1201 : : }
1202 : 1 : _o1[1] = captures[0];
1203 : 1 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1204 : 1 : res_op0 = _r1;
1205 : : }
1206 : 1 : tree _r;
1207 : 1 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1208 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 167, __FILE__, __LINE__, true);
1209 : 1 : return _r;
1210 : : }
1211 : 0 : next_after_fail304:;
1212 : : }
1213 : : return NULL_TREE;
1214 : : }
1215 : :
1216 : : tree
1217 : 41 : generic_simplify_56 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1218 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1219 : : {
1220 : 41 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1221 : 41 : if (!TYPE_SATURATING (type)
1222 : : )
1223 : : {
1224 : 41 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
1225 : 82 : && !FIXED_POINT_TYPE_P (type)
1226 : : )
1227 : : {
1228 : 82 : if (!TYPE_OVERFLOW_TRAPS (type)
1229 : 41 : && TREE_CODE (type) != COMPLEX_TYPE
1230 : 81 : && tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
1231 : : )
1232 : : {
1233 : 40 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail317;
1234 : 40 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail317;
1235 : 40 : {
1236 : 40 : tree res_op0;
1237 : 40 : {
1238 : 40 : tree _o1[1], _r1;
1239 : 40 : _o1[0] = captures[0];
1240 : 40 : if (TREE_TYPE (_o1[0]) != type)
1241 : : {
1242 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1243 : : }
1244 : : else
1245 : : _r1 = _o1[0];
1246 : 40 : res_op0 = _r1;
1247 : : }
1248 : 40 : tree _r;
1249 : 40 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
1250 : 40 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 179, __FILE__, __LINE__, true);
1251 : 40 : return _r;
1252 : : }
1253 : : next_after_fail317:;
1254 : : }
1255 : : }
1256 : : }
1257 : : return NULL_TREE;
1258 : : }
1259 : :
1260 : : tree
1261 : 4 : generic_simplify_63 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1262 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1263 : : const enum tree_code ARG_UNUSED (log1),
1264 : : const enum tree_code ARG_UNUSED (log2),
1265 : : const combined_fn ARG_UNUSED (popcount))
1266 : : {
1267 : 4 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1268 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail326;
1269 : 4 : {
1270 : 4 : tree res_op0;
1271 : 4 : {
1272 : 4 : tree _o1[2], _r1;
1273 : 4 : _o1[0] = captures[2];
1274 : 4 : _o1[1] = captures[4];
1275 : 4 : _r1 = fold_build2_loc (loc, log2, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1276 : 4 : res_op0 = _r1;
1277 : : }
1278 : 4 : tree _r;
1279 : 4 : _r = maybe_build_call_expr_loc (loc, popcount, type, 1, res_op0);
1280 : 4 : if (!_r)
1281 : 0 : goto next_after_fail326;
1282 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 188, __FILE__, __LINE__, true);
1283 : : return _r;
1284 : : }
1285 : : next_after_fail326:;
1286 : : return NULL_TREE;
1287 : : }
1288 : :
1289 : : tree
1290 : 36 : generic_simplify_67 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1291 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1292 : : const enum tree_code ARG_UNUSED (bitop),
1293 : : const enum tree_code ARG_UNUSED (cmp))
1294 : : {
1295 : 36 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1296 : 72 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
1297 : 36 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
1298 : 72 : && TYPE_PRECISION (TREE_TYPE (captures[0])) == TYPE_PRECISION (TREE_TYPE (captures[2]))
1299 : : )
1300 : : {
1301 : 36 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail330;
1302 : 36 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail330;
1303 : 36 : {
1304 : 36 : tree res_op0;
1305 : 36 : {
1306 : 36 : tree _o1[2], _r1;
1307 : 36 : _o1[0] = captures[0];
1308 : 36 : {
1309 : 36 : tree _o2[1], _r2;
1310 : 36 : _o2[0] = captures[2];
1311 : 36 : if (TREE_TYPE (_o2[0]) != TREE_TYPE (_o1[0]))
1312 : : {
1313 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (_o1[0]), _o2[0]);
1314 : : }
1315 : : else
1316 : : _r2 = _o2[0];
1317 : 36 : _o1[1] = _r2;
1318 : : }
1319 : 36 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1320 : 36 : res_op0 = _r1;
1321 : : }
1322 : 36 : tree res_op1;
1323 : 36 : res_op1 = captures[1];
1324 : 36 : tree _r;
1325 : 36 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
1326 : 36 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 192, __FILE__, __LINE__, true);
1327 : 36 : return _r;
1328 : : }
1329 : : next_after_fail330:;
1330 : : }
1331 : : return NULL_TREE;
1332 : : }
1333 : :
1334 : : tree
1335 : 0 : generic_simplify_79 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1336 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1337 : : const enum tree_code ARG_UNUSED (op))
1338 : : {
1339 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1340 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail346;
1341 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail346;
1342 : 0 : {
1343 : 0 : tree _r;
1344 : 0 : _r = captures[0];
1345 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 203, __FILE__, __LINE__, true);
1346 : : return _r;
1347 : : }
1348 : : next_after_fail346:;
1349 : : return NULL_TREE;
1350 : : }
1351 : :
1352 : : tree
1353 : 0 : generic_simplify_85 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1354 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1355 : : {
1356 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1357 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail352;
1358 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail352;
1359 : 0 : {
1360 : 0 : tree res_op0;
1361 : 0 : res_op0 = captures[0];
1362 : 0 : tree res_op1;
1363 : 0 : res_op1 = captures[3];
1364 : 0 : tree _r;
1365 : 0 : _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
1366 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 207, __FILE__, __LINE__, true);
1367 : : return _r;
1368 : : }
1369 : : next_after_fail352:;
1370 : : return NULL_TREE;
1371 : : }
1372 : :
1373 : : tree
1374 : 0 : generic_simplify_95 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1375 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1376 : : {
1377 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1378 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail362;
1379 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail362;
1380 : 0 : {
1381 : 0 : tree _r;
1382 : 0 : _r = captures[0];
1383 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 211, __FILE__, __LINE__, true);
1384 : : return _r;
1385 : : }
1386 : : next_after_fail362:;
1387 : : return NULL_TREE;
1388 : : }
1389 : :
1390 : : tree
1391 : 0 : generic_simplify_102 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1392 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1393 : : const enum tree_code ARG_UNUSED (op))
1394 : : {
1395 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1396 : 0 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[3]))
1397 : 0 : && tree_nop_conversion_p (type, TREE_TYPE (captures[6]))
1398 : : )
1399 : : {
1400 : 0 : if (single_use (captures[4]) && single_use (captures[5])
1401 : : )
1402 : : {
1403 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail372;
1404 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail372;
1405 : 0 : {
1406 : 0 : tree res_op0;
1407 : 0 : res_op0 = captures[0];
1408 : 0 : tree res_op1;
1409 : 0 : {
1410 : 0 : tree _o1[1], _r1;
1411 : 0 : _o1[0] = captures[6];
1412 : 0 : if (TREE_TYPE (_o1[0]) != type)
1413 : : {
1414 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1415 : : }
1416 : : else
1417 : : _r1 = _o1[0];
1418 : 0 : res_op1 = _r1;
1419 : : }
1420 : 0 : tree _r;
1421 : 0 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
1422 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 217, __FILE__, __LINE__, true);
1423 : 0 : return _r;
1424 : : }
1425 : : next_after_fail372:;
1426 : : }
1427 : : else
1428 : : {
1429 : : if (single_use (captures[0]) && single_use (captures[1])
1430 : : )
1431 : : {
1432 : : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail373;
1433 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail373;
1434 : : {
1435 : : tree res_op0;
1436 : : {
1437 : : tree _o1[1], _r1;
1438 : : _o1[0] = captures[3];
1439 : : if (TREE_TYPE (_o1[0]) != type)
1440 : : {
1441 : : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1442 : : }
1443 : : else
1444 : : _r1 = _o1[0];
1445 : : res_op0 = _r1;
1446 : : }
1447 : : tree res_op1;
1448 : : res_op1 = captures[4];
1449 : : tree _r;
1450 : : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
1451 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 218, __FILE__, __LINE__, true);
1452 : : return _r;
1453 : : }
1454 : : next_after_fail373:;
1455 : : }
1456 : : }
1457 : : }
1458 : : return NULL_TREE;
1459 : : }
1460 : :
1461 : : tree
1462 : 0 : generic_simplify_114 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1463 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1464 : : const enum tree_code ARG_UNUSED (op))
1465 : : {
1466 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1467 : 0 : if (bitwise_equal_p (captures[4], captures[7])
1468 : : )
1469 : : {
1470 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail386;
1471 : 0 : {
1472 : 0 : tree res_op0;
1473 : 0 : {
1474 : 0 : tree _o1[2], _r1;
1475 : 0 : {
1476 : 0 : tree _o2[2], _r2;
1477 : 0 : _o2[0] = captures[5];
1478 : 0 : {
1479 : 0 : tree _o3[1], _r3;
1480 : 0 : _o3[0] = captures[6];
1481 : 0 : if (TREE_TYPE (_o3[0]) != TREE_TYPE (_o2[0]))
1482 : : {
1483 : 0 : _r3 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (_o2[0]), _o3[0]);
1484 : : }
1485 : : else
1486 : : _r3 = _o3[0];
1487 : 0 : _o2[1] = _r3;
1488 : : }
1489 : 0 : _r2 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
1490 : 0 : _o1[0] = _r2;
1491 : : }
1492 : 0 : {
1493 : 0 : tree _o2[1], _r2;
1494 : 0 : _o2[0] = captures[4];
1495 : 0 : if (TREE_TYPE (_o2[0]) != TREE_TYPE (_o1[0]))
1496 : : {
1497 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (_o1[0]), _o2[0]);
1498 : : }
1499 : : else
1500 : : _r2 = _o2[0];
1501 : 0 : _o1[1] = _r2;
1502 : : }
1503 : 0 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1504 : 0 : res_op0 = _r1;
1505 : : }
1506 : 0 : tree _r;
1507 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1508 : 0 : if (TREE_SIDE_EFFECTS (captures[7]))
1509 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[7]), _r);
1510 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 224, __FILE__, __LINE__, true);
1511 : 0 : return _r;
1512 : : }
1513 : 0 : next_after_fail386:;
1514 : : }
1515 : : return NULL_TREE;
1516 : : }
1517 : :
1518 : : tree
1519 : 300 : generic_simplify_123 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1520 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1521 : : {
1522 : 300 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1523 : 300 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail400;
1524 : 300 : {
1525 : 300 : if (! tree_invariant_p (captures[1])) goto next_after_fail400;
1526 : 0 : tree res_op0;
1527 : 0 : {
1528 : 0 : tree _o1[2], _r1;
1529 : 0 : {
1530 : 0 : tree _o2[2], _r2;
1531 : 0 : _o2[0] = unshare_expr (captures[1]);
1532 : 0 : _o2[1] = captures[4];
1533 : 0 : _r2 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
1534 : 0 : _o1[0] = _r2;
1535 : : }
1536 : 0 : _o1[1] = captures[2];
1537 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1538 : 0 : res_op0 = _r1;
1539 : : }
1540 : 0 : tree res_op1;
1541 : 0 : res_op1 = captures[1];
1542 : 0 : tree _r;
1543 : 0 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
1544 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 239, __FILE__, __LINE__, true);
1545 : : return _r;
1546 : : }
1547 : : next_after_fail400:;
1548 : : return NULL_TREE;
1549 : : }
1550 : :
1551 : : tree
1552 : 0 : generic_simplify_132 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1553 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1554 : : const enum tree_code ARG_UNUSED (cmp))
1555 : : {
1556 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1557 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail428;
1558 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail428;
1559 : 0 : {
1560 : 0 : tree res_op0;
1561 : 0 : {
1562 : 0 : tree _o1[2], _r1;
1563 : 0 : _o1[0] = build_zero_cst (TREE_TYPE (captures[0]));
1564 : 0 : _o1[1] = captures[2];
1565 : 0 : _r1 = fold_build2_loc (loc, cmp, type, _o1[0], _o1[1]);
1566 : 0 : res_op0 = _r1;
1567 : : }
1568 : 0 : tree res_op1;
1569 : 0 : res_op1 = captures[3];
1570 : 0 : tree _r;
1571 : 0 : _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
1572 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 260, __FILE__, __LINE__, true);
1573 : : return _r;
1574 : : }
1575 : : next_after_fail428:;
1576 : : return NULL_TREE;
1577 : : }
1578 : :
1579 : : tree
1580 : 0 : generic_simplify_135 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1581 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1582 : : {
1583 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1584 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail431;
1585 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail431;
1586 : 0 : {
1587 : 0 : tree _r;
1588 : 0 : _r = captures[2];
1589 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
1590 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1591 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 243, __FILE__, __LINE__, true);
1592 : : return _r;
1593 : : }
1594 : : next_after_fail431:;
1595 : : return NULL_TREE;
1596 : : }
1597 : :
1598 : : tree
1599 : 8 : generic_simplify_140 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1600 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1601 : : const enum tree_code ARG_UNUSED (eqne))
1602 : : {
1603 : 8 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1604 : 8 : if (eqne == EQ_EXPR
1605 : : )
1606 : : {
1607 : 4 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail449;
1608 : 4 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail449;
1609 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail449;
1610 : 4 : {
1611 : 4 : tree _r;
1612 : 4 : _r = captures[0];
1613 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 262, __FILE__, __LINE__, true);
1614 : 4 : return _r;
1615 : : }
1616 : : next_after_fail449:;
1617 : : }
1618 : : else
1619 : : {
1620 : 4 : if (eqne == NE_EXPR
1621 : : )
1622 : : {
1623 : 4 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail450;
1624 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail450;
1625 : 4 : {
1626 : 4 : tree _r;
1627 : 4 : _r = constant_boolean_node (true, type);
1628 : 4 : if (TREE_SIDE_EFFECTS (captures[2]))
1629 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1630 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 263, __FILE__, __LINE__, true);
1631 : 4 : return _r;
1632 : : }
1633 : : next_after_fail450:;
1634 : : }
1635 : : }
1636 : : return NULL_TREE;
1637 : : }
1638 : :
1639 : : tree
1640 : 18 : generic_simplify_145 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1641 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1642 : : const enum tree_code ARG_UNUSED (op))
1643 : : {
1644 : 18 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1645 : 36 : if (INTEGRAL_TYPE_P (type)
1646 : 54 : && (tree_nonzero_bits (captures[0]) & tree_nonzero_bits (captures[2])) == 0
1647 : : )
1648 : : {
1649 : 0 : {
1650 : 0 : tree t = type;
1651 : 0 : if (!TYPE_OVERFLOW_WRAPS (t))
1652 : 0 : t = unsigned_type_for (t);
1653 : 0 : wide_int c = wi::add (wi::to_wide (captures[3]), 1);
1654 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail455;
1655 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail455;
1656 : 0 : {
1657 : 0 : tree res_op0;
1658 : 0 : {
1659 : 0 : tree _o1[2], _r1;
1660 : 0 : {
1661 : 0 : tree _o2[1], _r2;
1662 : 0 : _o2[0] = captures[2];
1663 : 0 : if (TREE_TYPE (_o2[0]) != t)
1664 : : {
1665 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, t, _o2[0]);
1666 : : }
1667 : : else
1668 : : _r2 = _o2[0];
1669 : 0 : _o1[0] = _r2;
1670 : : }
1671 : 0 : _o1[1] = wide_int_to_tree (t, c);
1672 : 0 : _r1 = fold_build2_loc (loc, MULT_EXPR, t, _o1[0], _o1[1]);
1673 : 0 : res_op0 = _r1;
1674 : : }
1675 : 0 : tree _r;
1676 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1677 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 229, __FILE__, __LINE__, true);
1678 : 0 : return _r;
1679 : : }
1680 : 0 : next_after_fail455:;
1681 : 0 : }
1682 : : }
1683 : : return NULL_TREE;
1684 : : }
1685 : :
1686 : : tree
1687 : 0 : generic_simplify_149 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1688 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1689 : : {
1690 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1691 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail459;
1692 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail459;
1693 : 0 : {
1694 : 0 : tree _r;
1695 : 0 : _r = captures[1];
1696 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 267, __FILE__, __LINE__, true);
1697 : : return _r;
1698 : : }
1699 : : next_after_fail459:;
1700 : : return NULL_TREE;
1701 : : }
1702 : :
1703 : : tree
1704 : 0 : generic_simplify_152 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1705 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1706 : : {
1707 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1708 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail462;
1709 : 0 : {
1710 : 0 : tree res_op0;
1711 : 0 : res_op0 = captures[1];
1712 : 0 : tree res_op1;
1713 : 0 : res_op1 = captures[2];
1714 : 0 : tree _r;
1715 : 0 : _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
1716 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 270, __FILE__, __LINE__, true);
1717 : : return _r;
1718 : : }
1719 : 0 : next_after_fail462:;
1720 : 0 : return NULL_TREE;
1721 : : }
1722 : :
1723 : : tree
1724 : 1 : generic_simplify_155 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1725 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1726 : : {
1727 : 1 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1728 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail465;
1729 : 1 : {
1730 : 1 : tree res_op0;
1731 : 1 : res_op0 = captures[0];
1732 : 1 : tree _r;
1733 : 1 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
1734 : 1 : if (TREE_SIDE_EFFECTS (captures[1]))
1735 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1736 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 273, __FILE__, __LINE__, true);
1737 : : return _r;
1738 : : }
1739 : 0 : next_after_fail465:;
1740 : 0 : return NULL_TREE;
1741 : : }
1742 : :
1743 : : tree
1744 : 0 : generic_simplify_160 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1745 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1746 : : {
1747 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1748 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail470;
1749 : 0 : {
1750 : 0 : tree res_op0;
1751 : 0 : res_op0 = captures[0];
1752 : 0 : tree res_op1;
1753 : 0 : res_op1 = captures[1];
1754 : 0 : tree _r;
1755 : 0 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
1756 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 278, __FILE__, __LINE__, true);
1757 : : return _r;
1758 : : }
1759 : 0 : next_after_fail470:;
1760 : 0 : return NULL_TREE;
1761 : : }
1762 : :
1763 : : tree
1764 : 731 : generic_simplify_165 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1765 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1766 : : {
1767 : 731 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1768 : 731 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[2]))
1769 : : )
1770 : : {
1771 : 731 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail475;
1772 : 731 : {
1773 : 731 : tree res_op0;
1774 : 731 : {
1775 : 731 : tree _o1[2], _r1;
1776 : 731 : {
1777 : 731 : tree _o2[1], _r2;
1778 : 731 : _o2[0] = captures[2];
1779 : 731 : if (TREE_TYPE (_o2[0]) != type)
1780 : : {
1781 : 0 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o2[0]);
1782 : : }
1783 : : else
1784 : : _r2 = _o2[0];
1785 : 731 : _o1[0] = _r2;
1786 : : }
1787 : 731 : _o1[1] = captures[3];
1788 : 731 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1789 : 731 : res_op0 = _r1;
1790 : : }
1791 : 731 : tree _r;
1792 : 731 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
1793 : 731 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 283, __FILE__, __LINE__, true);
1794 : 731 : return _r;
1795 : : }
1796 : 0 : next_after_fail475:;
1797 : : }
1798 : : return NULL_TREE;
1799 : : }
1800 : :
1801 : : tree
1802 : 11 : generic_simplify_173 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1803 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1804 : : const combined_fn ARG_UNUSED (PARITY))
1805 : : {
1806 : 11 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1807 : 11 : if (types_match (TREE_TYPE (captures[1]), TREE_TYPE (captures[3]))
1808 : : )
1809 : : {
1810 : 10 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail484;
1811 : 10 : {
1812 : 10 : tree res_op0;
1813 : 10 : {
1814 : 10 : tree _o1[2], _r1;
1815 : 10 : _o1[0] = captures[1];
1816 : 10 : _o1[1] = captures[3];
1817 : 10 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1818 : 10 : res_op0 = _r1;
1819 : : }
1820 : 10 : tree _r;
1821 : 10 : _r = maybe_build_call_expr_loc (loc, PARITY, type, 1, res_op0);
1822 : 10 : if (!_r)
1823 : 0 : goto next_after_fail484;
1824 : 10 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 291, __FILE__, __LINE__, true);
1825 : 10 : return _r;
1826 : : }
1827 : : next_after_fail484:;
1828 : : }
1829 : : else
1830 : : {
1831 : 2 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
1832 : 2 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[3]))
1833 : : )
1834 : : {
1835 : 1 : {
1836 : 1 : tree utype = TREE_TYPE (captures[1]);
1837 : 1 : if (TYPE_PRECISION (utype) < TYPE_PRECISION (TREE_TYPE (captures[3])))
1838 : 1 : utype = TREE_TYPE (captures[3]);
1839 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail485;
1840 : 1 : {
1841 : 1 : tree res_op0;
1842 : 1 : {
1843 : 1 : tree _o1[2], _r1;
1844 : 1 : {
1845 : 1 : tree _o2[1], _r2;
1846 : 1 : _o2[0] = captures[1];
1847 : 1 : if (TREE_TYPE (_o2[0]) != utype)
1848 : : {
1849 : 1 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
1850 : : }
1851 : : else
1852 : : _r2 = _o2[0];
1853 : 1 : _o1[0] = _r2;
1854 : : }
1855 : 1 : {
1856 : 1 : tree _o2[1], _r2;
1857 : 1 : _o2[0] = captures[3];
1858 : 1 : if (TREE_TYPE (_o2[0]) != utype)
1859 : : {
1860 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
1861 : : }
1862 : : else
1863 : : _r2 = _o2[0];
1864 : 1 : _o1[1] = _r2;
1865 : : }
1866 : 1 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1867 : 1 : res_op0 = _r1;
1868 : : }
1869 : 1 : tree _r;
1870 : 1 : _r = maybe_build_call_expr_loc (loc, PARITY, type, 1, res_op0);
1871 : 1 : if (!_r)
1872 : 1 : goto next_after_fail485;
1873 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 292, __FILE__, __LINE__, true);
1874 : 0 : return _r;
1875 : : }
1876 : : next_after_fail485:;
1877 : : }
1878 : : }
1879 : : }
1880 : : return NULL_TREE;
1881 : : }
1882 : :
1883 : : tree
1884 : 4367 : generic_simplify_191 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1885 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1886 : : const enum tree_code ARG_UNUSED (op))
1887 : : {
1888 : 4367 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1889 : 4367 : {
1890 : 4367 : poly_widest_int factor;
1891 : 4367 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[2]))
1892 : 4336 : && tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[2]))
1893 : 8703 : && multiple_p (wi::to_poly_widest (captures[3]), wi::to_widest (captures[1]), &factor)
1894 : : )
1895 : : {
1896 : 4287 : {
1897 : 4287 : wi::overflow_type overflow;
1898 : 4287 : wide_int mul;
1899 : 4287 : if (types_match (type, TREE_TYPE (captures[2]))
1900 : 4241 : && types_match (TREE_TYPE (captures[0]), TREE_TYPE (captures[2]))
1901 : 0 : && TREE_CODE (captures[2]) == INTEGER_CST
1902 : 0 : && TREE_CODE (captures[3]) == INTEGER_CST
1903 : 4287 : && (mul = wi::mul (wi::to_wide (captures[2]), wi::to_wide (captures[3]),
1904 : 0 : TYPE_SIGN (type), &overflow),
1905 : 0 : !overflow)
1906 : 4287 : && (TYPE_UNSIGNED (type)
1907 : 4287 : || known_eq (factor, 1)
1908 : 0 : || (get_range_pos_neg (captures[0])
1909 : 0 : | (((op == PLUS_EXPR) ^ (tree_int_cst_sgn (captures[2]) < 0))
1910 : 0 : ? 1 : 2)) != 3)
1911 : : )
1912 : : {
1913 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail505;
1914 : 0 : {
1915 : 0 : tree res_op0;
1916 : 0 : {
1917 : 0 : tree _o1[2], _r1;
1918 : 0 : _o1[0] = captures[0];
1919 : 0 : _o1[1] = wide_int_to_tree (type, factor);
1920 : 0 : _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1921 : 0 : res_op0 = _r1;
1922 : : }
1923 : 0 : tree res_op1;
1924 : 0 : res_op1 = wide_int_to_tree (type, mul);
1925 : 0 : tree _r;
1926 : 0 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
1927 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
1928 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1929 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
1930 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1931 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
1932 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
1933 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 306, __FILE__, __LINE__, true);
1934 : 0 : return _r;
1935 : : }
1936 : 0 : next_after_fail505:;
1937 : : }
1938 : : else
1939 : : {
1940 : 4287 : {
1941 : 4287 : tree utype = unsigned_type_for (type);
1942 : 4287 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail506;
1943 : 4287 : {
1944 : 4287 : tree res_op0;
1945 : 4287 : {
1946 : 4287 : tree _o1[2], _r1;
1947 : 4287 : {
1948 : 4287 : tree _o2[2], _r2;
1949 : 4287 : {
1950 : 4287 : tree _o3[1], _r3;
1951 : 4287 : _o3[0] = captures[0];
1952 : 4287 : if (TREE_TYPE (_o3[0]) != utype)
1953 : : {
1954 : 4287 : _r3 = fold_build1_loc (loc, NOP_EXPR, utype, _o3[0]);
1955 : : }
1956 : : else
1957 : : _r3 = _o3[0];
1958 : 4287 : _o2[0] = _r3;
1959 : : }
1960 : 4287 : _o2[1] = wide_int_to_tree (utype, factor);
1961 : 4287 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
1962 : 4287 : _o1[0] = _r2;
1963 : : }
1964 : 4287 : {
1965 : 4287 : tree _o2[2], _r2;
1966 : 4287 : {
1967 : 4287 : tree _o3[1], _r3;
1968 : 4287 : _o3[0] = captures[3];
1969 : 4287 : if (TREE_TYPE (_o3[0]) != utype)
1970 : : {
1971 : 14 : _r3 = fold_build1_loc (loc, NOP_EXPR, utype, _o3[0]);
1972 : : }
1973 : : else
1974 : : _r3 = _o3[0];
1975 : 4287 : _o2[0] = _r3;
1976 : : }
1977 : 4287 : {
1978 : 4287 : tree _o3[1], _r3;
1979 : 4287 : _o3[0] = captures[2];
1980 : 4287 : if (TREE_TYPE (_o3[0]) != utype)
1981 : : {
1982 : 46 : _r3 = fold_build1_loc (loc, NOP_EXPR, utype, _o3[0]);
1983 : : }
1984 : : else
1985 : : _r3 = _o3[0];
1986 : 4287 : _o2[1] = _r3;
1987 : : }
1988 : 4287 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
1989 : 4287 : _o1[1] = _r2;
1990 : : }
1991 : 4287 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1992 : 4287 : res_op0 = _r1;
1993 : : }
1994 : 4287 : tree _r;
1995 : 4287 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1996 : 4287 : if (TREE_SIDE_EFFECTS (captures[1]))
1997 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1998 : 4287 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 307, __FILE__, __LINE__, true);
1999 : 4287 : return _r;
2000 : : }
2001 : 0 : next_after_fail506:;
2002 : : }
2003 : : }
2004 : 0 : }
2005 : : }
2006 : 4367 : }
2007 : 80 : return NULL_TREE;
2008 : : }
2009 : :
2010 : : tree
2011 : 3 : generic_simplify_221 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2012 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2013 : : const enum tree_code ARG_UNUSED (cmp))
2014 : : {
2015 : 3 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2016 : 3 : if (TREE_INT_CST_LOW (captures[1]) & 1
2017 : : )
2018 : : {
2019 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail552;
2020 : 2 : {
2021 : 2 : tree _r;
2022 : 2 : _r = constant_boolean_node (cmp == NE_EXPR, type);
2023 : 2 : if (TREE_SIDE_EFFECTS (captures[0]))
2024 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2025 : 2 : if (TREE_SIDE_EFFECTS (captures[1]))
2026 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2027 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 351, __FILE__, __LINE__, true);
2028 : 2 : return _r;
2029 : : }
2030 : 0 : next_after_fail552:;
2031 : : }
2032 : : return NULL_TREE;
2033 : : }
2034 : :
2035 : : tree
2036 : 45 : generic_simplify_227 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2037 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2038 : : const enum tree_code ARG_UNUSED (cmp))
2039 : : {
2040 : 45 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2041 : 45 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0]))
2042 : : )
2043 : : {
2044 : 0 : {
2045 : 0 : tree utype = unsigned_type_for (TREE_TYPE (captures[0]));
2046 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail560;
2047 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail560;
2048 : 0 : {
2049 : 0 : tree res_op0;
2050 : 0 : {
2051 : 0 : tree _o1[2], _r1;
2052 : 0 : {
2053 : 0 : tree _o2[1], _r2;
2054 : 0 : _o2[0] = captures[0];
2055 : 0 : if (TREE_TYPE (_o2[0]) != utype)
2056 : : {
2057 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
2058 : : }
2059 : : else
2060 : : _r2 = _o2[0];
2061 : 0 : _o1[0] = _r2;
2062 : : }
2063 : 0 : {
2064 : 0 : tree _o2[1], _r2;
2065 : 0 : _o2[0] = captures[1];
2066 : 0 : if (TREE_TYPE (_o2[0]) != utype)
2067 : : {
2068 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
2069 : : }
2070 : : else
2071 : : _r2 = _o2[0];
2072 : 0 : _o1[1] = _r2;
2073 : : }
2074 : 0 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2075 : 0 : res_op0 = _r1;
2076 : : }
2077 : 0 : tree res_op1;
2078 : 0 : res_op1 = build_zero_cst (utype);
2079 : 0 : tree _r;
2080 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2081 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 359, __FILE__, __LINE__, true);
2082 : 0 : return _r;
2083 : : }
2084 : : next_after_fail560:;
2085 : : }
2086 : : }
2087 : : return NULL_TREE;
2088 : : }
2089 : :
2090 : : tree
2091 : 0 : generic_simplify_234 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2092 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2093 : : const enum tree_code ARG_UNUSED (rotate),
2094 : : const enum tree_code ARG_UNUSED (invrot),
2095 : : const enum tree_code ARG_UNUSED (cmp))
2096 : : {
2097 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2098 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail577;
2099 : 0 : {
2100 : 0 : tree res_op0;
2101 : 0 : res_op0 = captures[0];
2102 : 0 : tree res_op1;
2103 : 0 : res_op1 = captures[2];
2104 : 0 : tree _r;
2105 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2106 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2107 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2108 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 376, __FILE__, __LINE__, true);
2109 : : return _r;
2110 : : }
2111 : 0 : next_after_fail577:;
2112 : 0 : return NULL_TREE;
2113 : : }
2114 : :
2115 : : tree
2116 : 14 : generic_simplify_238 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2117 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2118 : : const enum tree_code ARG_UNUSED (cmp),
2119 : : const combined_fn ARG_UNUSED (bswap))
2120 : : {
2121 : 14 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2122 : 14 : {
2123 : 14 : tree ctype = TREE_TYPE (captures[0]);
2124 : 14 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail581;
2125 : 14 : {
2126 : 14 : tree res_op0;
2127 : 14 : {
2128 : 14 : tree _o1[1], _r1;
2129 : 14 : _o1[0] = captures[1];
2130 : 14 : if (TREE_TYPE (_o1[0]) != ctype)
2131 : : {
2132 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, ctype, _o1[0]);
2133 : : }
2134 : : else
2135 : : _r1 = _o1[0];
2136 : 14 : res_op0 = _r1;
2137 : : }
2138 : 14 : tree res_op1;
2139 : 14 : {
2140 : 14 : tree _o1[1], _r1;
2141 : 14 : _o1[0] = captures[2];
2142 : 14 : if (TREE_TYPE (_o1[0]) != ctype)
2143 : : {
2144 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, ctype, _o1[0]);
2145 : : }
2146 : : else
2147 : : _r1 = _o1[0];
2148 : 14 : res_op1 = _r1;
2149 : : }
2150 : 14 : tree _r;
2151 : 14 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2152 : 14 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 380, __FILE__, __LINE__, true);
2153 : : return _r;
2154 : : }
2155 : 0 : next_after_fail581:;
2156 : : }
2157 : 0 : return NULL_TREE;
2158 : : }
2159 : :
2160 : : tree
2161 : 44387573 : generic_simplify_247 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2162 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2163 : : const enum tree_code ARG_UNUSED (cmp))
2164 : : {
2165 : 44387573 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2166 : 44387573 : {
2167 : 44387573 : bool wascmp;
2168 : 44387573 : if (types_match (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
2169 : 44387573 : && bitwise_inverted_equal_p (captures[0], captures[1], wascmp)
2170 : : )
2171 : : {
2172 : 5 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail596;
2173 : 5 : {
2174 : 5 : tree _r;
2175 : 5 : _r = constant_boolean_node (cmp == NE_EXPR, type);
2176 : 5 : if (TREE_SIDE_EFFECTS (captures[0]))
2177 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2178 : 5 : if (TREE_SIDE_EFFECTS (captures[1]))
2179 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2180 : 5 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 394, __FILE__, __LINE__, true);
2181 : 5 : return _r;
2182 : : }
2183 : 0 : next_after_fail596:;
2184 : : }
2185 : : }
2186 : 44387568 : return NULL_TREE;
2187 : : }
2188 : :
2189 : : tree
2190 : 6402042 : generic_simplify_251 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2191 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2192 : : const enum tree_code ARG_UNUSED (cmp))
2193 : : {
2194 : 6402042 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2195 : 6402042 : if (REAL_VALUE_MINUS_ZERO (TREE_REAL_CST (captures[1]))
2196 : : )
2197 : : {
2198 : 1708 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail600;
2199 : 1708 : {
2200 : 1708 : tree res_op0;
2201 : 1708 : res_op0 = captures[0];
2202 : 1708 : tree res_op1;
2203 : 1708 : res_op1 = build_real (TREE_TYPE (captures[1]), dconst0);
2204 : 1708 : tree _r;
2205 : 1708 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2206 : 1708 : if (TREE_SIDE_EFFECTS (captures[1]))
2207 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2208 : 1708 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 397, __FILE__, __LINE__, true);
2209 : 1708 : return _r;
2210 : : }
2211 : 0 : next_after_fail600:;
2212 : : }
2213 : : else
2214 : : {
2215 : 6400334 : if (TREE_CODE (captures[0]) == REAL_CST
2216 : 6400334 : && REAL_VALUE_MINUS_ZERO (TREE_REAL_CST (captures[0]))
2217 : : )
2218 : : {
2219 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail601;
2220 : 0 : {
2221 : 0 : tree res_op0;
2222 : 0 : res_op0 = build_real (TREE_TYPE (captures[0]), dconst0);
2223 : 0 : tree res_op1;
2224 : 0 : res_op1 = captures[1];
2225 : 0 : tree _r;
2226 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2227 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
2228 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2229 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 398, __FILE__, __LINE__, true);
2230 : 0 : return _r;
2231 : : }
2232 : 0 : next_after_fail601:;
2233 : : }
2234 : : else
2235 : : {
2236 : 6400334 : if (REAL_VALUE_ISNAN (TREE_REAL_CST (captures[1]))
2237 : 959 : && (cmp == EQ_EXPR || cmp == NE_EXPR || !flag_trapping_math)
2238 : 290 : && !tree_expr_signaling_nan_p (captures[1])
2239 : 6400594 : && !tree_expr_maybe_signaling_nan_p (captures[0])
2240 : : )
2241 : : {
2242 : 260 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail602;
2243 : 260 : {
2244 : 260 : tree _r;
2245 : 260 : _r = constant_boolean_node (cmp == NE_EXPR, type);
2246 : 260 : if (TREE_SIDE_EFFECTS (captures[0]))
2247 : 6 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2248 : 260 : if (TREE_SIDE_EFFECTS (captures[1]))
2249 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2250 : 260 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 399, __FILE__, __LINE__, true);
2251 : 260 : return _r;
2252 : : }
2253 : 0 : next_after_fail602:;
2254 : : }
2255 : : else
2256 : : {
2257 : 6400074 : if (TREE_CODE (captures[0]) == REAL_CST
2258 : 2324 : && REAL_VALUE_ISNAN (TREE_REAL_CST (captures[0]))
2259 : 2010 : && (cmp == EQ_EXPR || cmp == NE_EXPR || !flag_trapping_math)
2260 : 0 : && !tree_expr_signaling_nan_p (captures[0])
2261 : 6400074 : && !tree_expr_signaling_nan_p (captures[1])
2262 : : )
2263 : : {
2264 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail603;
2265 : 0 : {
2266 : 0 : tree _r;
2267 : 0 : _r = constant_boolean_node (cmp == NE_EXPR, type);
2268 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
2269 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2270 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2271 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2272 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 400, __FILE__, __LINE__, true);
2273 : 0 : return _r;
2274 : : }
2275 : 0 : next_after_fail603:;
2276 : : }
2277 : : else
2278 : : {
2279 : 6400074 : if (REAL_VALUE_ISINF (TREE_REAL_CST (captures[1]))
2280 : 7209127 : && MODE_HAS_INFINITIES (TYPE_MODE (TREE_TYPE (captures[1])))
2281 : : )
2282 : : {
2283 : 269712 : {
2284 : 269712 : REAL_VALUE_TYPE max;
2285 : 269712 : enum tree_code code = cmp;
2286 : 269712 : bool neg = REAL_VALUE_NEGATIVE (TREE_REAL_CST (captures[1]));
2287 : 269712 : if (neg)
2288 : 35255 : code = swap_tree_comparison (code);
2289 : 269712 : if (code == GT_EXPR
2290 : 269712 : && !(HONOR_NANS (captures[0]) && flag_trapping_math)
2291 : : )
2292 : : {
2293 : 8 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail604;
2294 : 8 : {
2295 : 8 : tree _r;
2296 : 8 : _r = constant_boolean_node (false, type);
2297 : 8 : if (TREE_SIDE_EFFECTS (captures[0]))
2298 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2299 : 8 : if (TREE_SIDE_EFFECTS (captures[1]))
2300 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2301 : 8 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 401, __FILE__, __LINE__, true);
2302 : 79359 : return _r;
2303 : : }
2304 : 0 : next_after_fail604:;
2305 : : }
2306 : : else
2307 : : {
2308 : 269704 : if (code == LE_EXPR
2309 : : )
2310 : : {
2311 : 33116 : if (! HONOR_NANS (captures[0])
2312 : : )
2313 : : {
2314 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail605;
2315 : 0 : {
2316 : 0 : tree _r;
2317 : 0 : _r = constant_boolean_node (true, type);
2318 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
2319 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2320 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2321 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2322 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 402, __FILE__, __LINE__, true);
2323 : 0 : return _r;
2324 : : }
2325 : 0 : next_after_fail605:;
2326 : : }
2327 : : else
2328 : : {
2329 : 33116 : if (!flag_trapping_math
2330 : : )
2331 : : {
2332 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail606;
2333 : 2 : {
2334 : 2 : if (! tree_invariant_p (captures[0])) goto next_after_fail606;
2335 : 0 : tree res_op0;
2336 : 0 : res_op0 = unshare_expr (captures[0]);
2337 : 0 : tree res_op1;
2338 : 0 : res_op1 = captures[0];
2339 : 0 : tree _r;
2340 : 0 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
2341 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2342 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2343 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 403, __FILE__, __LINE__, true);
2344 : 0 : return _r;
2345 : : }
2346 : 190353 : next_after_fail606:;
2347 : : }
2348 : : }
2349 : : }
2350 : : else
2351 : : {
2352 : 156961 : if ((code == EQ_EXPR && !(HONOR_NANS (captures[0]) && flag_trapping_math))
2353 : 393525 : || code == GE_EXPR
2354 : : )
2355 : : {
2356 : 140 : {
2357 : 140 : real_maxval (&max, neg, TYPE_MODE (TREE_TYPE (captures[0])));
2358 : 140 : if (neg
2359 : : )
2360 : : {
2361 : 61 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail607;
2362 : 61 : {
2363 : 61 : tree res_op0;
2364 : 61 : res_op0 = captures[0];
2365 : 61 : tree res_op1;
2366 : 61 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
2367 : 61 : tree _r;
2368 : 61 : _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
2369 : 61 : if (TREE_SIDE_EFFECTS (captures[1]))
2370 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2371 : 61 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 404, __FILE__, __LINE__, true);
2372 : 61 : return _r;
2373 : : }
2374 : 0 : next_after_fail607:;
2375 : : }
2376 : : else
2377 : : {
2378 : 79 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail608;
2379 : 79 : {
2380 : 79 : tree res_op0;
2381 : 79 : res_op0 = captures[0];
2382 : 79 : tree res_op1;
2383 : 79 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
2384 : 79 : tree _r;
2385 : 79 : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
2386 : 79 : if (TREE_SIDE_EFFECTS (captures[1]))
2387 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2388 : 79 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 405, __FILE__, __LINE__, true);
2389 : 79 : return _r;
2390 : : }
2391 : 0 : next_after_fail608:;
2392 : : }
2393 : : }
2394 : : }
2395 : : else
2396 : : {
2397 : 236448 : if (code == LT_EXPR
2398 : : )
2399 : : {
2400 : 100 : {
2401 : 100 : real_maxval (&max, neg, TYPE_MODE (TREE_TYPE (captures[0])));
2402 : 100 : if (neg
2403 : : )
2404 : : {
2405 : 26 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail609;
2406 : 26 : {
2407 : 26 : tree res_op0;
2408 : 26 : res_op0 = captures[0];
2409 : 26 : tree res_op1;
2410 : 26 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
2411 : 26 : tree _r;
2412 : 26 : _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
2413 : 26 : if (TREE_SIDE_EFFECTS (captures[1]))
2414 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2415 : 26 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 406, __FILE__, __LINE__, true);
2416 : 26 : return _r;
2417 : : }
2418 : 0 : next_after_fail609:;
2419 : : }
2420 : : else
2421 : : {
2422 : 74 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail610;
2423 : 74 : {
2424 : 74 : tree res_op0;
2425 : 74 : res_op0 = captures[0];
2426 : 74 : tree res_op1;
2427 : 74 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
2428 : 74 : tree _r;
2429 : 74 : _r = fold_build2_loc (loc, LE_EXPR, type, res_op0, res_op1);
2430 : 74 : if (TREE_SIDE_EFFECTS (captures[1]))
2431 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2432 : 74 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 407, __FILE__, __LINE__, true);
2433 : 74 : return _r;
2434 : : }
2435 : 0 : next_after_fail610:;
2436 : : }
2437 : : }
2438 : : }
2439 : : else
2440 : : {
2441 : 236348 : if (code == NE_EXPR
2442 : : )
2443 : : {
2444 : 79111 : {
2445 : 79111 : real_maxval (&max, neg, TYPE_MODE (TREE_TYPE (captures[0])));
2446 : 79111 : if (! HONOR_NANS (captures[0])
2447 : : )
2448 : : {
2449 : 0 : if (neg
2450 : : )
2451 : : {
2452 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail611;
2453 : 0 : {
2454 : 0 : tree res_op0;
2455 : 0 : res_op0 = captures[0];
2456 : 0 : tree res_op1;
2457 : 0 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
2458 : 0 : tree _r;
2459 : 0 : _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
2460 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2461 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2462 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 408, __FILE__, __LINE__, true);
2463 : 0 : return _r;
2464 : : }
2465 : 0 : next_after_fail611:;
2466 : : }
2467 : : else
2468 : : {
2469 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail612;
2470 : 0 : {
2471 : 0 : tree res_op0;
2472 : 0 : res_op0 = captures[0];
2473 : 0 : tree res_op1;
2474 : 0 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
2475 : 0 : tree _r;
2476 : 0 : _r = fold_build2_loc (loc, LE_EXPR, type, res_op0, res_op1);
2477 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2478 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2479 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 409, __FILE__, __LINE__, true);
2480 : 0 : return _r;
2481 : : }
2482 : 0 : next_after_fail612:;
2483 : : }
2484 : : }
2485 : : else
2486 : : {
2487 : 79111 : if (neg
2488 : : )
2489 : : {
2490 : 561 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail613;
2491 : 561 : {
2492 : 561 : tree res_op0;
2493 : 561 : res_op0 = captures[0];
2494 : 561 : tree res_op1;
2495 : 561 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
2496 : 561 : tree _r;
2497 : 561 : _r = fold_build2_loc (loc, UNGE_EXPR, type, res_op0, res_op1);
2498 : 561 : if (TREE_SIDE_EFFECTS (captures[1]))
2499 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2500 : 561 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 410, __FILE__, __LINE__, true);
2501 : 561 : return _r;
2502 : : }
2503 : 0 : next_after_fail613:;
2504 : : }
2505 : : else
2506 : : {
2507 : 78550 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail614;
2508 : 78550 : {
2509 : 78550 : tree res_op0;
2510 : 78550 : res_op0 = captures[0];
2511 : 78550 : tree res_op1;
2512 : 78550 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
2513 : 78550 : tree _r;
2514 : 78550 : _r = fold_build2_loc (loc, UNLE_EXPR, type, res_op0, res_op1);
2515 : 78550 : if (TREE_SIDE_EFFECTS (captures[1]))
2516 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2517 : 78550 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 411, __FILE__, __LINE__, true);
2518 : 78550 : return _r;
2519 : : }
2520 : 0 : next_after_fail614:;
2521 : : }
2522 : : }
2523 : : }
2524 : : }
2525 : : }
2526 : : }
2527 : : }
2528 : : }
2529 : : }
2530 : : }
2531 : : }
2532 : : }
2533 : : }
2534 : : }
2535 : : return NULL_TREE;
2536 : : }
2537 : :
2538 : : tree
2539 : 374 : generic_simplify_289 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2540 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2541 : : const enum tree_code ARG_UNUSED (op),
2542 : : const combined_fn ARG_UNUSED (ctz))
2543 : : {
2544 : 374 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2545 : 374 : {
2546 : 374 : tree type0 = TREE_TYPE (captures[1]);
2547 : 374 : int prec = TYPE_PRECISION (type0);
2548 : 374 : bool ok = true;
2549 : 374 : if (sanitize_flags_p (SANITIZE_BUILTIN)
2550 : 374 : && (!cfun
2551 : 64 : || (cfun->curr_properties & PROP_ssa) == 0))
2552 : : ok = false;
2553 : 620 : if (ok && prec <= MAX_FIXED_MODE_SIZE
2554 : : )
2555 : : {
2556 : 310 : if (tree_int_cst_sgn (captures[2]) < 0 || wi::to_widest (captures[2]) >= prec
2557 : : )
2558 : : {
2559 : 36 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail723;
2560 : 36 : {
2561 : 36 : tree _r;
2562 : 36 : _r = constant_boolean_node (op == EQ_EXPR ? false : true, type);
2563 : 36 : if (TREE_SIDE_EFFECTS (captures[1]))
2564 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2565 : 36 : if (TREE_SIDE_EFFECTS (captures[2]))
2566 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2567 : 36 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 503, __FILE__, __LINE__, true);
2568 : 310 : return _r;
2569 : : }
2570 : 0 : next_after_fail723:;
2571 : : }
2572 : : else
2573 : : {
2574 : 274 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail724;
2575 : 274 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail724;
2576 : 274 : {
2577 : 274 : tree res_op0;
2578 : 274 : {
2579 : 274 : tree _o1[2], _r1;
2580 : 274 : _o1[0] = captures[1];
2581 : 274 : _o1[1] = wide_int_to_tree (type0,
2582 : 274 : wi::mask (tree_to_uhwi (captures[2]) + 1,
2583 : : false, prec));
2584 : 274 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2585 : 274 : res_op0 = _r1;
2586 : : }
2587 : 274 : tree res_op1;
2588 : 274 : res_op1 = wide_int_to_tree (type0,
2589 : 274 : wi::shifted_mask (tree_to_uhwi (captures[2]), 1,
2590 : : false, prec));
2591 : 274 : tree _r;
2592 : 274 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
2593 : 274 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 504, __FILE__, __LINE__, true);
2594 : 274 : return _r;
2595 : : }
2596 : 64 : next_after_fail724:;
2597 : : }
2598 : : }
2599 : : }
2600 : 64 : return NULL_TREE;
2601 : : }
2602 : :
2603 : : tree
2604 : 29171 : generic_simplify_296 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2605 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2606 : : const enum tree_code ARG_UNUSED (cmp),
2607 : : const enum tree_code ARG_UNUSED (icmp),
2608 : : const enum tree_code ARG_UNUSED (ncmp))
2609 : : {
2610 : 29171 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2611 : 29171 : if (types_match (type, TREE_TYPE (captures[0]))
2612 : : )
2613 : : {
2614 : 28433 : {
2615 : 28433 : enum tree_code ic = invert_tree_comparison
2616 : 28433 : (cmp, HONOR_NANS (captures[1]));
2617 : 28433 : if (ic == icmp
2618 : : )
2619 : : {
2620 : 22031 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail734;
2621 : 22031 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail734;
2622 : 22031 : {
2623 : 22031 : tree res_op0;
2624 : 22031 : res_op0 = captures[1];
2625 : 22031 : tree res_op1;
2626 : 22031 : res_op1 = captures[2];
2627 : 22031 : tree _r;
2628 : 22031 : _r = fold_build2_loc (loc, icmp, type, res_op0, res_op1);
2629 : 22031 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 514, __FILE__, __LINE__, true);
2630 : 22031 : return _r;
2631 : : }
2632 : : next_after_fail734:;
2633 : : }
2634 : : else
2635 : : {
2636 : 6402 : if (ic == ncmp
2637 : : )
2638 : : {
2639 : 5 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail735;
2640 : 5 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail735;
2641 : 5 : {
2642 : 5 : tree res_op0;
2643 : 5 : res_op0 = captures[1];
2644 : 5 : tree res_op1;
2645 : 5 : res_op1 = captures[2];
2646 : 5 : tree _r;
2647 : 5 : _r = fold_build2_loc (loc, ncmp, type, res_op0, res_op1);
2648 : 5 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 515, __FILE__, __LINE__, true);
2649 : 5 : return _r;
2650 : : }
2651 : : next_after_fail735:;
2652 : : }
2653 : : }
2654 : : }
2655 : : }
2656 : : return NULL_TREE;
2657 : : }
2658 : :
2659 : : tree
2660 : 2749 : generic_simplify_307 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2661 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2662 : : const enum tree_code ARG_UNUSED (div))
2663 : : {
2664 : 2749 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2665 : 2749 : if (!TYPE_UNSIGNED (type)
2666 : : )
2667 : : {
2668 : 1683 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail748;
2669 : 1683 : {
2670 : 1683 : tree res_op0;
2671 : 1683 : res_op0 = captures[0];
2672 : 1683 : tree _r;
2673 : 1683 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
2674 : 1683 : if (TREE_SIDE_EFFECTS (captures[1]))
2675 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2676 : 1683 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 526, __FILE__, __LINE__, true);
2677 : 1683 : return _r;
2678 : : }
2679 : 0 : next_after_fail748:;
2680 : : }
2681 : : return NULL_TREE;
2682 : : }
2683 : :
2684 : : tree
2685 : 2443 : generic_simplify_312 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2686 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2687 : : const enum tree_code ARG_UNUSED (div))
2688 : : {
2689 : 2443 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2690 : 2443 : {
2691 : 2443 : wi::overflow_type overflow;
2692 : 2443 : wide_int mul = wi::mul (wi::to_wide (captures[2]), wi::to_wide (captures[3]),
2693 : 4886 : TYPE_SIGN (type), &overflow);
2694 : 2443 : if (div == EXACT_DIV_EXPR
2695 : 2443 : || optimize_successive_divisions_p (captures[3], captures[0])
2696 : : )
2697 : : {
2698 : 0 : if (!overflow
2699 : : )
2700 : : {
2701 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail753;
2702 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail753;
2703 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail753;
2704 : 0 : {
2705 : 0 : tree res_op0;
2706 : 0 : res_op0 = captures[1];
2707 : 0 : tree res_op1;
2708 : 0 : res_op1 = wide_int_to_tree (type, mul);
2709 : 0 : tree _r;
2710 : 0 : _r = fold_build2_loc (loc, div, type, res_op0, res_op1);
2711 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 531, __FILE__, __LINE__, true);
2712 : 0 : return _r;
2713 : : }
2714 : 2443 : next_after_fail753:;
2715 : : }
2716 : : else
2717 : : {
2718 : 0 : if (TYPE_UNSIGNED (type)
2719 : 0 : || mul != wi::min_value (TYPE_PRECISION (type), SIGNED)
2720 : : )
2721 : : {
2722 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail754;
2723 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail754;
2724 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail754;
2725 : 0 : {
2726 : 0 : tree _r;
2727 : 0 : _r = build_zero_cst (type);
2728 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2729 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2730 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 532, __FILE__, __LINE__, true);
2731 : 0 : return _r;
2732 : : }
2733 : 2443 : next_after_fail754:;
2734 : : }
2735 : : }
2736 : : }
2737 : 0 : }
2738 : 2443 : return NULL_TREE;
2739 : : }
2740 : :
2741 : : tree
2742 : 2 : generic_simplify_325 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2743 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
2744 : : {
2745 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2746 : 0 : if (FLOAT_TYPE_P (type)
2747 : 2 : && ! HONOR_NANS (type)
2748 : 2 : && ! HONOR_INFINITIES (type)
2749 : : )
2750 : : {
2751 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail767;
2752 : 0 : {
2753 : 0 : tree _r;
2754 : 0 : _r = build_minus_one_cst (type);
2755 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
2756 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2757 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 545, __FILE__, __LINE__, true);
2758 : 0 : return _r;
2759 : : }
2760 : 0 : next_after_fail767:;
2761 : : }
2762 : : return NULL_TREE;
2763 : : }
2764 : :
2765 : : tree
2766 : 3 : generic_simplify_331 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2767 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2768 : : const combined_fn ARG_UNUSED (TANH),
2769 : : const combined_fn ARG_UNUSED (SINH),
2770 : : const combined_fn ARG_UNUSED (COSH))
2771 : : {
2772 : 3 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2773 : 3 : if (flag_unsafe_math_optimizations && canonicalize_math_p ()
2774 : : )
2775 : : {
2776 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail775;
2777 : 3 : {
2778 : 3 : tree res_op0;
2779 : 3 : res_op0 = build_one_cst (type);
2780 : 3 : tree res_op1;
2781 : 3 : {
2782 : 3 : tree _o1[1], _r1;
2783 : 3 : _o1[0] = captures[1];
2784 : 3 : _r1 = maybe_build_call_expr_loc (loc, COSH, TREE_TYPE (_o1[0]), 1, _o1[0]);
2785 : 3 : if (!_r1)
2786 : 0 : goto next_after_fail775;
2787 : 3 : res_op1 = _r1;
2788 : : }
2789 : 3 : tree _r;
2790 : 3 : _r = fold_build2_loc (loc, RDIV_EXPR, type, res_op0, res_op1);
2791 : 3 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 553, __FILE__, __LINE__, true);
2792 : 3 : return _r;
2793 : : }
2794 : : next_after_fail775:;
2795 : : }
2796 : : return NULL_TREE;
2797 : : }
2798 : :
2799 : : tree
2800 : 2 : generic_simplify_339 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2801 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
2802 : : const enum tree_code ARG_UNUSED (cmp),
2803 : : const enum tree_code ARG_UNUSED (minmax))
2804 : : {
2805 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2806 : 2 : {
2807 : 2 : tree_code code = minmax_from_comparison (cmp, captures[0], captures[3], captures[0], captures[1]);
2808 : 2 : if (code == MIN_EXPR
2809 : : )
2810 : : {
2811 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail786;
2812 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail786;
2813 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail786;
2814 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail786;
2815 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail786;
2816 : 0 : {
2817 : 0 : tree res_op0;
2818 : 0 : {
2819 : 0 : tree _o1[2], _r1;
2820 : 0 : _o1[0] = captures[0];
2821 : 0 : _o1[1] = captures[3];
2822 : 0 : _r1 = fold_build2_loc (loc, MIN_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2823 : 0 : res_op0 = _r1;
2824 : : }
2825 : 0 : tree res_op1;
2826 : 0 : res_op1 = captures[2];
2827 : 0 : tree _r;
2828 : 0 : _r = fold_build2_loc (loc, minmax, type, res_op0, res_op1);
2829 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 564, __FILE__, __LINE__, true);
2830 : 0 : return _r;
2831 : : }
2832 : : next_after_fail786:;
2833 : : }
2834 : : else
2835 : : {
2836 : 2 : if (code == MAX_EXPR
2837 : : )
2838 : : {
2839 : 2 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail787;
2840 : 2 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail787;
2841 : 2 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail787;
2842 : 2 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail787;
2843 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail787;
2844 : 2 : {
2845 : 2 : tree res_op0;
2846 : 2 : {
2847 : 2 : tree _o1[2], _r1;
2848 : 2 : _o1[0] = captures[0];
2849 : 2 : _o1[1] = captures[3];
2850 : 2 : _r1 = fold_build2_loc (loc, MAX_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2851 : 2 : res_op0 = _r1;
2852 : : }
2853 : 2 : tree res_op1;
2854 : 2 : res_op1 = captures[2];
2855 : 2 : tree _r;
2856 : 2 : _r = fold_build2_loc (loc, minmax, type, res_op0, res_op1);
2857 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 565, __FILE__, __LINE__, true);
2858 : 2 : return _r;
2859 : : }
2860 : : next_after_fail787:;
2861 : : }
2862 : : }
2863 : : }
2864 : : return NULL_TREE;
2865 : : }
2866 : :
2867 : : tree
2868 : 3 : generic_simplify_351 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2869 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
2870 : : const enum tree_code ARG_UNUSED (op))
2871 : : {
2872 : 3 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2873 : 3 : if (INTEGRAL_TYPE_P (type)
2874 : 3 : && TYPE_PRECISION (type) > 1
2875 : 6 : && (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])))
2876 : : )
2877 : : {
2878 : 3 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail801;
2879 : 3 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail801;
2880 : 3 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail801;
2881 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail801;
2882 : 3 : {
2883 : 3 : tree res_op0;
2884 : 3 : {
2885 : 3 : tree _o1[2], _r1;
2886 : 3 : {
2887 : 3 : tree _o2[1], _r2;
2888 : 3 : _o2[0] = captures[0];
2889 : 3 : if (TREE_TYPE (_o2[0]) != type)
2890 : : {
2891 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, type, _o2[0]);
2892 : : }
2893 : : else
2894 : : _r2 = _o2[0];
2895 : 3 : _o1[0] = _r2;
2896 : : }
2897 : 3 : _o1[1] = captures[2];
2898 : 3 : _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2899 : 3 : res_op0 = _r1;
2900 : : }
2901 : 3 : tree res_op1;
2902 : 3 : res_op1 = captures[1];
2903 : 3 : tree _r;
2904 : 3 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
2905 : 3 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 578, __FILE__, __LINE__, true);
2906 : 3 : return _r;
2907 : : }
2908 : : next_after_fail801:;
2909 : : }
2910 : : return NULL_TREE;
2911 : : }
2912 : :
2913 : : tree
2914 : 22 : generic_simplify_364 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2915 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
2916 : : const enum tree_code ARG_UNUSED (cmp))
2917 : : {
2918 : 22 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2919 : 22 : if (INTEGRAL_TYPE_P (type)
2920 : 22 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
2921 : 22 : && !TYPE_UNSIGNED (TREE_TYPE (captures[0]))
2922 : 44 : && TYPE_PRECISION (TREE_TYPE (captures[0])) == TYPE_PRECISION (type)
2923 : : )
2924 : : {
2925 : 22 : {
2926 : 22 : tree shifter = build_int_cst (integer_type_node, TYPE_PRECISION (type) - 1);
2927 : 22 : if (cmp == LT_EXPR
2928 : : )
2929 : : {
2930 : 13 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail815;
2931 : 13 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail815;
2932 : 13 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail815;
2933 : 13 : {
2934 : 13 : tree res_op0;
2935 : 13 : {
2936 : 13 : tree _o1[1], _r1;
2937 : 13 : {
2938 : 13 : tree _o2[2], _r2;
2939 : 13 : _o2[0] = captures[0];
2940 : 13 : _o2[1] = shifter;
2941 : 13 : _r2 = fold_build2_loc (loc, RSHIFT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
2942 : 13 : _o1[0] = _r2;
2943 : : }
2944 : 13 : if (TREE_TYPE (_o1[0]) != type)
2945 : : {
2946 : 1 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
2947 : : }
2948 : : else
2949 : : _r1 = _o1[0];
2950 : 13 : res_op0 = _r1;
2951 : : }
2952 : 13 : tree res_op1;
2953 : 13 : res_op1 = captures[1];
2954 : 13 : tree _r;
2955 : 13 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
2956 : 13 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 591, __FILE__, __LINE__, true);
2957 : 13 : return _r;
2958 : : }
2959 : : next_after_fail815:;
2960 : : }
2961 : : else
2962 : : {
2963 : 9 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail816;
2964 : 9 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail816;
2965 : 9 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail816;
2966 : 9 : {
2967 : 9 : tree res_op0;
2968 : 9 : {
2969 : 9 : tree _o1[2], _r1;
2970 : 9 : {
2971 : 9 : tree _o2[1], _r2;
2972 : 9 : {
2973 : 9 : tree _o3[2], _r3;
2974 : 9 : _o3[0] = captures[0];
2975 : 9 : _o3[1] = shifter;
2976 : 9 : _r3 = fold_build2_loc (loc, RSHIFT_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
2977 : 9 : _o2[0] = _r3;
2978 : : }
2979 : 9 : if (TREE_TYPE (_o2[0]) != type)
2980 : : {
2981 : 1 : _r2 = fold_build1_loc (loc, NOP_EXPR, type, _o2[0]);
2982 : : }
2983 : : else
2984 : : _r2 = _o2[0];
2985 : 9 : _o1[0] = _r2;
2986 : : }
2987 : 9 : _o1[1] = captures[1];
2988 : 9 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2989 : 9 : res_op0 = _r1;
2990 : : }
2991 : 9 : tree _r;
2992 : 9 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
2993 : 9 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 592, __FILE__, __LINE__, true);
2994 : 9 : return _r;
2995 : : }
2996 : : next_after_fail816:;
2997 : : }
2998 : : }
2999 : : }
3000 : : return NULL_TREE;
3001 : : }
3002 : :
3003 : : tree
3004 : 0 : generic_simplify_382 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3005 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3006 : : const enum tree_code ARG_UNUSED (cmp),
3007 : : const enum tree_code ARG_UNUSED (cmp2))
3008 : : {
3009 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3010 : 0 : if (tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[2]))
3011 : 0 : && TYPE_UNSIGNED (TREE_TYPE (captures[2])) && !TYPE_UNSIGNED (TREE_TYPE (captures[0]))
3012 : 0 : && wi::gt_p (wi::to_wide (captures[1]), 0, TYPE_SIGN (TREE_TYPE (captures[1])))
3013 : : )
3014 : : {
3015 : 0 : {
3016 : 0 : tree utype = TREE_TYPE (captures[2]);
3017 : 0 : wide_int denom = wi::to_wide (captures[1]);
3018 : 0 : wide_int right = wi::to_wide (captures[2]);
3019 : 0 : wide_int smax = wi::sdiv_trunc (wi::max_value (TREE_TYPE (captures[0])), denom);
3020 : 0 : wide_int smin = wi::sdiv_trunc (wi::min_value (TREE_TYPE (captures[0])), denom);
3021 : 0 : bool small = wi::leu_p (right, smax);
3022 : 0 : bool large = wi::geu_p (right, smin);
3023 : 0 : if (small || large
3024 : : )
3025 : : {
3026 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail839;
3027 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail839;
3028 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail839;
3029 : 0 : {
3030 : 0 : tree res_op0;
3031 : 0 : {
3032 : 0 : tree _o1[1], _r1;
3033 : 0 : _o1[0] = captures[0];
3034 : 0 : if (TREE_TYPE (_o1[0]) != utype)
3035 : : {
3036 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, utype, _o1[0]);
3037 : : }
3038 : : else
3039 : : _r1 = _o1[0];
3040 : 0 : res_op0 = _r1;
3041 : : }
3042 : 0 : tree res_op1;
3043 : 0 : {
3044 : 0 : tree _o1[2], _r1;
3045 : 0 : _o1[0] = captures[2];
3046 : 0 : {
3047 : 0 : tree _o2[1], _r2;
3048 : 0 : _o2[0] = captures[1];
3049 : 0 : if (TREE_TYPE (_o2[0]) != TREE_TYPE (res_op0))
3050 : : {
3051 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o2[0]);
3052 : : }
3053 : : else
3054 : : _r2 = _o2[0];
3055 : 0 : _o1[1] = _r2;
3056 : : }
3057 : 0 : _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3058 : 0 : res_op1 = _r1;
3059 : : }
3060 : 0 : tree _r;
3061 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
3062 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 615, __FILE__, __LINE__, true);
3063 : 0 : return _r;
3064 : : }
3065 : 0 : next_after_fail839:;
3066 : : }
3067 : : else
3068 : : {
3069 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail840;
3070 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail840;
3071 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail840;
3072 : 0 : {
3073 : 0 : tree res_op0;
3074 : 0 : res_op0 = captures[0];
3075 : 0 : tree res_op1;
3076 : 0 : res_op1 = build_zero_cst (TREE_TYPE (captures[0]));
3077 : 0 : tree _r;
3078 : 0 : _r = fold_build2_loc (loc, cmp2, type, res_op0, res_op1);
3079 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 616, __FILE__, __LINE__, true);
3080 : 0 : return _r;
3081 : : }
3082 : 0 : next_after_fail840:;
3083 : : }
3084 : 0 : }
3085 : : }
3086 : : return NULL_TREE;
3087 : : }
3088 : :
3089 : : tree
3090 : 11972 : generic_simplify_397 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3091 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3092 : : const enum tree_code ARG_UNUSED (cmp),
3093 : : const enum tree_code ARG_UNUSED (eqcmp))
3094 : : {
3095 : 11972 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3096 : 11972 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
3097 : : )
3098 : : {
3099 : 11972 : {
3100 : 11972 : tree ty = TREE_TYPE (captures[0]);
3101 : 11972 : unsigned prec = TYPE_PRECISION (ty);
3102 : 11972 : wide_int mask = wi::to_wide (captures[2], prec);
3103 : 11972 : wide_int rhs = wi::to_wide (captures[3], prec);
3104 : 11972 : signop sgn = TYPE_SIGN (ty);
3105 : 33681 : if ((mask & (mask + 1)) == 0 && wi::gt_p (rhs, 0, sgn)
3106 : 43254 : && (rhs & (rhs + 1)) == 0 && wi::ge_p (mask, rhs, sgn)
3107 : : )
3108 : : {
3109 : 566 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail892;
3110 : 566 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail892;
3111 : 566 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail892;
3112 : 566 : {
3113 : 566 : tree res_op0;
3114 : 566 : {
3115 : 566 : tree _o1[2], _r1;
3116 : 566 : _o1[0] = captures[1];
3117 : 566 : _o1[1] = wide_int_to_tree (ty, mask - rhs);
3118 : 566 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3119 : 566 : res_op0 = _r1;
3120 : : }
3121 : 566 : tree res_op1;
3122 : 566 : res_op1 = build_zero_cst (ty);
3123 : 566 : tree _r;
3124 : 566 : _r = fold_build2_loc (loc, eqcmp, type, res_op0, res_op1);
3125 : 566 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 651, __FILE__, __LINE__, true);
3126 : 566 : return _r;
3127 : : }
3128 : 11406 : next_after_fail892:;
3129 : : }
3130 : 11972 : }
3131 : : }
3132 : : return NULL_TREE;
3133 : : }
3134 : :
3135 : : tree
3136 : 0 : generic_simplify_401 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3137 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3138 : : const enum tree_code ARG_UNUSED (cmp),
3139 : : const enum tree_code ARG_UNUSED (out))
3140 : : {
3141 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3142 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[2])) && !VECTOR_TYPE_P (TREE_TYPE (captures[2]))
3143 : : )
3144 : : {
3145 : 0 : {
3146 : 0 : tree t = TREE_TYPE (captures[2]), cpx = build_complex_type (t);
3147 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail896;
3148 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail896;
3149 : 0 : {
3150 : 0 : tree res_op0;
3151 : 0 : {
3152 : 0 : tree _o1[1], _r1;
3153 : 0 : {
3154 : 0 : tree _o2[2], _r2;
3155 : 0 : _o2[0] = captures[2];
3156 : 0 : _o2[1] = captures[1];
3157 : 0 : _r2 = maybe_build_call_expr_loc (loc, CFN_MUL_OVERFLOW, cpx, 2, _o2[0], _o2[1]);
3158 : 0 : if (!_r2)
3159 : 0 : goto next_after_fail896;
3160 : 0 : _o1[0] = _r2;
3161 : : }
3162 : 0 : _r1 = fold_build1_loc (loc, IMAGPART_EXPR, TREE_TYPE (TREE_TYPE (_o1[0])), _o1[0]);
3163 : 0 : res_op0 = _r1;
3164 : : }
3165 : 0 : tree res_op1;
3166 : 0 : res_op1 = build_zero_cst (t);
3167 : 0 : tree _r;
3168 : 0 : _r = fold_build2_loc (loc, out, type, res_op0, res_op1);
3169 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 637, __FILE__, __LINE__, true);
3170 : 0 : return _r;
3171 : : }
3172 : : next_after_fail896:;
3173 : : }
3174 : : }
3175 : : return NULL_TREE;
3176 : : }
3177 : :
3178 : : tree
3179 : 11 : generic_simplify_408 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3180 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3181 : : {
3182 : 11 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3183 : 11 : if (wi::ltu_p (wi::to_wide (captures[1]), element_precision (type))
3184 : : )
3185 : : {
3186 : 11 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail907;
3187 : 11 : {
3188 : 11 : tree res_op0;
3189 : 11 : {
3190 : 11 : tree _o1[1], _r1;
3191 : 11 : _o1[0] = captures[0];
3192 : 11 : if (TREE_TYPE (_o1[0]) != type)
3193 : : {
3194 : 8 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
3195 : : }
3196 : : else
3197 : : _r1 = _o1[0];
3198 : 11 : res_op0 = _r1;
3199 : : }
3200 : 11 : tree res_op1;
3201 : 11 : {
3202 : 11 : tree _o1[2], _r1;
3203 : 11 : _o1[0] = build_minus_one_cst (type);
3204 : 11 : _o1[1] = captures[1];
3205 : 11 : _r1 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3206 : 11 : res_op1 = _r1;
3207 : : }
3208 : 11 : tree _r;
3209 : 11 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
3210 : 11 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 662, __FILE__, __LINE__, true);
3211 : 11 : return _r;
3212 : : }
3213 : 0 : next_after_fail907:;
3214 : : }
3215 : : return NULL_TREE;
3216 : : }
3217 : :
3218 : : tree
3219 : 67 : generic_simplify_416 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3220 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3221 : : {
3222 : 67 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3223 : 67 : if (wi::ltu_p (wi::to_wide (captures[1]), element_precision (type))
3224 : : )
3225 : : {
3226 : 67 : if (TYPE_UNSIGNED (type)
3227 : : )
3228 : : {
3229 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail918;
3230 : 2 : {
3231 : 2 : tree res_op0;
3232 : 2 : {
3233 : 2 : tree _o1[1], _r1;
3234 : 2 : _o1[0] = captures[0];
3235 : 2 : if (TREE_TYPE (_o1[0]) != type)
3236 : : {
3237 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
3238 : : }
3239 : : else
3240 : : _r1 = _o1[0];
3241 : 2 : res_op0 = _r1;
3242 : : }
3243 : 2 : tree res_op1;
3244 : 2 : {
3245 : 2 : tree _o1[2], _r1;
3246 : 2 : _o1[0] = build_minus_one_cst (type);
3247 : 2 : _o1[1] = captures[1];
3248 : 2 : _r1 = fold_build2_loc (loc, RSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3249 : 2 : res_op1 = _r1;
3250 : : }
3251 : 2 : tree _r;
3252 : 2 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
3253 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 671, __FILE__, __LINE__, true);
3254 : 2 : return _r;
3255 : : }
3256 : 0 : next_after_fail918:;
3257 : : }
3258 : : else
3259 : : {
3260 : 65 : if (INTEGRAL_TYPE_P (type)
3261 : : )
3262 : : {
3263 : 65 : {
3264 : 65 : int width = element_precision (type) - tree_to_uhwi (captures[1]);
3265 : 65 : tree stype = NULL_TREE;
3266 : 130 : if (width <= MAX_FIXED_MODE_SIZE)
3267 : 65 : stype = build_nonstandard_integer_type (width, 0);
3268 : 65 : if (stype && (width == 1 || type_has_mode_precision_p (stype))
3269 : : )
3270 : : {
3271 : 25 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail919;
3272 : 25 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail919;
3273 : 25 : {
3274 : 25 : tree res_op0;
3275 : 25 : {
3276 : 25 : tree _o1[1], _r1;
3277 : 25 : _o1[0] = captures[0];
3278 : 25 : if (TREE_TYPE (_o1[0]) != stype)
3279 : : {
3280 : 25 : _r1 = fold_build1_loc (loc, NOP_EXPR, stype, _o1[0]);
3281 : : }
3282 : : else
3283 : : _r1 = _o1[0];
3284 : 25 : res_op0 = _r1;
3285 : : }
3286 : 25 : tree _r;
3287 : 25 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3288 : 25 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 672, __FILE__, __LINE__, true);
3289 : 25 : return _r;
3290 : : }
3291 : : next_after_fail919:;
3292 : : }
3293 : : }
3294 : : }
3295 : : }
3296 : : }
3297 : : return NULL_TREE;
3298 : : }
3299 : :
3300 : : tree
3301 : 8492390 : generic_simplify_422 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3302 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
3303 : : const enum tree_code ARG_UNUSED (op))
3304 : : {
3305 : 8492390 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3306 : 8492390 : if (INTEGRAL_TYPE_P (type)
3307 : 7644219 : && op != MULT_EXPR
3308 : 7644219 : && op != RDIV_EXPR
3309 : 4032072 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
3310 : 3629917 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
3311 : 3629917 : && type_has_mode_precision_p (TREE_TYPE (captures[2]))
3312 : 3568700 : && type_has_mode_precision_p (TREE_TYPE (captures[4]))
3313 : 3568692 : && type_has_mode_precision_p (type)
3314 : 3560703 : && TYPE_PRECISION (TREE_TYPE (captures[1])) > TYPE_PRECISION (TREE_TYPE (captures[2]))
3315 : 1119351 : && types_match (captures[2], type)
3316 : 8508609 : && (types_match (captures[2], captures[4])
3317 : 16219 : || poly_int_tree_p (captures[3]))
3318 : : )
3319 : : {
3320 : 10947 : if (TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[2]))
3321 : : )
3322 : : {
3323 : 5978 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail932;
3324 : 5978 : {
3325 : 5978 : tree res_op0;
3326 : 5978 : res_op0 = captures[2];
3327 : 5978 : tree res_op1;
3328 : 5978 : {
3329 : 5978 : tree _o1[1], _r1;
3330 : 5978 : _o1[0] = captures[4];
3331 : 5978 : if (TREE_TYPE (_o1[0]) != type)
3332 : : {
3333 : 5978 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
3334 : : }
3335 : : else
3336 : : _r1 = _o1[0];
3337 : 5978 : res_op1 = _r1;
3338 : : }
3339 : 5978 : tree _r;
3340 : 5978 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
3341 : 5978 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 681, __FILE__, __LINE__, true);
3342 : 5978 : return _r;
3343 : : }
3344 : 0 : next_after_fail932:;
3345 : : }
3346 : : else
3347 : : {
3348 : 4969 : {
3349 : 4969 : tree utype = unsigned_type_for (TREE_TYPE (captures[2]));
3350 : 4969 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail933;
3351 : 4969 : {
3352 : 4969 : tree res_op0;
3353 : 4969 : {
3354 : 4969 : tree _o1[2], _r1;
3355 : 4969 : {
3356 : 4969 : tree _o2[1], _r2;
3357 : 4969 : _o2[0] = captures[2];
3358 : 4969 : if (TREE_TYPE (_o2[0]) != utype)
3359 : : {
3360 : 4969 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
3361 : : }
3362 : : else
3363 : : _r2 = _o2[0];
3364 : 4969 : _o1[0] = _r2;
3365 : : }
3366 : 4969 : {
3367 : 4969 : tree _o2[1], _r2;
3368 : 4969 : _o2[0] = captures[4];
3369 : 4969 : if (TREE_TYPE (_o2[0]) != utype)
3370 : : {
3371 : 4969 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
3372 : : }
3373 : : else
3374 : : _r2 = _o2[0];
3375 : 4969 : _o1[1] = _r2;
3376 : : }
3377 : 4969 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3378 : 4969 : res_op0 = _r1;
3379 : : }
3380 : 4969 : tree _r;
3381 : 4969 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3382 : 4969 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 682, __FILE__, __LINE__, true);
3383 : 4969 : return _r;
3384 : : }
3385 : 0 : next_after_fail933:;
3386 : : }
3387 : : }
3388 : : }
3389 : : else
3390 : : {
3391 : 8441241 : if (FLOAT_TYPE_P (type)
3392 : 8521645 : && DECIMAL_FLOAT_TYPE_P (TREE_TYPE (captures[0]))
3393 : 40202 : == DECIMAL_FLOAT_TYPE_P (type)
3394 : : )
3395 : : {
3396 : 40176 : {
3397 : 40176 : tree arg0 = strip_float_extensions (captures[2]);
3398 : 40176 : tree arg1 = strip_float_extensions (captures[4]);
3399 : 40176 : tree itype = TREE_TYPE (captures[0]);
3400 : 40176 : tree ty1 = TREE_TYPE (arg0);
3401 : 40176 : tree ty2 = TREE_TYPE (arg1);
3402 : 40176 : enum tree_code code = TREE_CODE (itype);
3403 : 0 : if (FLOAT_TYPE_P (ty1)
3404 : 40176 : && FLOAT_TYPE_P (ty2)
3405 : : )
3406 : : {
3407 : 40176 : {
3408 : 40176 : tree newtype = type;
3409 : 40176 : if (TYPE_MODE (ty1) == SDmode
3410 : 39914 : || TYPE_MODE (ty2) == SDmode
3411 : 80090 : || TYPE_MODE (type) == SDmode)
3412 : 262 : newtype = dfloat32_type_node;
3413 : 40176 : if (TYPE_MODE (ty1) == DDmode
3414 : 40044 : || TYPE_MODE (ty2) == DDmode
3415 : 80093 : || TYPE_MODE (type) == DDmode)
3416 : 259 : newtype = dfloat64_type_node;
3417 : 40176 : if (TYPE_MODE (ty1) == TDmode
3418 : 40176 : || TYPE_MODE (ty2) == TDmode
3419 : 80100 : || TYPE_MODE (type) == TDmode)
3420 : 267 : newtype = dfloat128_type_node;
3421 : 40176 : if ((newtype == dfloat32_type_node
3422 : 40176 : || newtype == dfloat64_type_node
3423 : 40049 : || newtype == dfloat128_type_node)
3424 : 394 : && newtype == type
3425 : 40182 : && types_match (newtype, type)
3426 : : )
3427 : : {
3428 : 6 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail934;
3429 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail934;
3430 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail934;
3431 : 0 : {
3432 : 0 : tree res_op0;
3433 : 0 : {
3434 : 0 : tree _o1[1], _r1;
3435 : 0 : _o1[0] = captures[2];
3436 : 0 : if (TREE_TYPE (_o1[0]) != newtype)
3437 : : {
3438 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, newtype, _o1[0]);
3439 : : }
3440 : : else
3441 : : _r1 = _o1[0];
3442 : 0 : res_op0 = _r1;
3443 : : }
3444 : 0 : tree res_op1;
3445 : 0 : {
3446 : 0 : tree _o1[1], _r1;
3447 : 0 : _o1[0] = captures[4];
3448 : 0 : if (TREE_TYPE (_o1[0]) != newtype)
3449 : : {
3450 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, newtype, _o1[0]);
3451 : : }
3452 : : else
3453 : : _r1 = _o1[0];
3454 : 0 : res_op1 = _r1;
3455 : : }
3456 : 0 : tree _r;
3457 : 0 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
3458 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 683, __FILE__, __LINE__, true);
3459 : 0 : return _r;
3460 : : }
3461 : : next_after_fail934:;
3462 : : }
3463 : : else
3464 : : {
3465 : 40170 : {
3466 : 40170 : if (element_precision (ty1) > element_precision (newtype))
3467 : 14 : newtype = ty1;
3468 : 40170 : if (element_precision (ty2) > element_precision (newtype))
3469 : 5628 : newtype = ty2;
3470 : 40170 : if (element_precision (newtype) < element_precision (itype)
3471 : 21760 : && (!VECTOR_MODE_P (TYPE_MODE (newtype))
3472 : 0 : || target_supports_op_p (newtype, op, optab_default))
3473 : 21760 : && (flag_unsafe_math_optimizations
3474 : 21735 : || (element_precision (newtype) == element_precision (type)
3475 : 21711 : && real_can_shorten_arithmetic (element_mode (itype),
3476 : : element_mode (type))
3477 : 9796 : && !excess_precision_type (newtype)))
3478 : 43436 : && !types_match (itype, newtype)
3479 : : )
3480 : : {
3481 : 3266 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail935;
3482 : 3265 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail935;
3483 : 3257 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail935;
3484 : 3257 : {
3485 : 3257 : tree res_op0;
3486 : 3257 : {
3487 : 3257 : tree _o1[2], _r1;
3488 : 3257 : {
3489 : 3257 : tree _o2[1], _r2;
3490 : 3257 : _o2[0] = captures[2];
3491 : 3257 : if (TREE_TYPE (_o2[0]) != newtype)
3492 : : {
3493 : 3 : _r2 = fold_build1_loc (loc, NOP_EXPR, newtype, _o2[0]);
3494 : : }
3495 : : else
3496 : : _r2 = _o2[0];
3497 : 3257 : _o1[0] = _r2;
3498 : : }
3499 : 3257 : {
3500 : 3257 : tree _o2[1], _r2;
3501 : 3257 : _o2[0] = captures[4];
3502 : 3257 : if (TREE_TYPE (_o2[0]) != newtype)
3503 : : {
3504 : 3257 : _r2 = fold_build1_loc (loc, NOP_EXPR, newtype, _o2[0]);
3505 : : }
3506 : : else
3507 : : _r2 = _o2[0];
3508 : 3257 : _o1[1] = _r2;
3509 : : }
3510 : 3257 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3511 : 3257 : res_op0 = _r1;
3512 : : }
3513 : 3257 : tree _r;
3514 : 3257 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3515 : 3257 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 684, __FILE__, __LINE__, true);
3516 : 3257 : return _r;
3517 : : }
3518 : : next_after_fail935:;
3519 : : }
3520 : : }
3521 : : }
3522 : : }
3523 : : }
3524 : : }
3525 : : }
3526 : : }
3527 : : return NULL_TREE;
3528 : : }
3529 : :
3530 : : tree
3531 : 15 : generic_simplify_449 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3532 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3533 : : const enum tree_code ARG_UNUSED (bitop))
3534 : : {
3535 : 15 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3536 : 15 : {
3537 : 15 : tree pmop[2];
3538 : 15 : tree utype = fold_bit_and_mask (TREE_TYPE (captures[1]), captures[4], NEGATE_EXPR, captures[1],
3539 : : bitop, captures[2], captures[3], NULL_TREE, ERROR_MARK,
3540 : : NULL_TREE, NULL_TREE, pmop);
3541 : 15 : if (utype
3542 : : )
3543 : : {
3544 : 7 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail968;
3545 : 7 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail968;
3546 : 7 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail968;
3547 : 7 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail968;
3548 : 7 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail968;
3549 : 7 : {
3550 : 7 : tree res_op0;
3551 : 7 : {
3552 : 7 : tree _o1[2], _r1;
3553 : 7 : {
3554 : 7 : tree _o2[1], _r2;
3555 : 7 : {
3556 : 7 : tree _o3[1], _r3;
3557 : 7 : _o3[0] = pmop[0];
3558 : 7 : if (TREE_TYPE (_o3[0]) != utype)
3559 : : {
3560 : 4 : _r3 = fold_build1_loc (loc, NOP_EXPR, utype, _o3[0]);
3561 : : }
3562 : : else
3563 : : _r3 = _o3[0];
3564 : 7 : _o2[0] = _r3;
3565 : : }
3566 : 7 : _r2 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
3567 : 7 : _o1[0] = _r2;
3568 : : }
3569 : 7 : {
3570 : 7 : tree _o2[1], _r2;
3571 : 7 : _o2[0] = captures[4];
3572 : 7 : if (TREE_TYPE (_o2[0]) != utype)
3573 : : {
3574 : 4 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
3575 : : }
3576 : : else
3577 : : _r2 = _o2[0];
3578 : 7 : _o1[1] = _r2;
3579 : : }
3580 : 7 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3581 : 7 : res_op0 = _r1;
3582 : : }
3583 : 7 : tree _r;
3584 : 7 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3585 : 7 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 708, __FILE__, __LINE__, true);
3586 : 7 : return _r;
3587 : : }
3588 : 8 : next_after_fail968:;
3589 : : }
3590 : : }
3591 : 8 : return NULL_TREE;
3592 : : }
3593 : :
3594 : : tree
3595 : 8 : generic_simplify_464 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3596 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3597 : : const enum tree_code ARG_UNUSED (eqne))
3598 : : {
3599 : 8 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3600 : 8 : if (eqne == EQ_EXPR
3601 : : )
3602 : : {
3603 : 4 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail989;
3604 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail989;
3605 : 4 : {
3606 : 4 : tree _r;
3607 : 4 : _r = constant_boolean_node (false, type);
3608 : 4 : if (TREE_SIDE_EFFECTS (captures[2]))
3609 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3610 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 725, __FILE__, __LINE__, true);
3611 : 4 : return _r;
3612 : : }
3613 : : next_after_fail989:;
3614 : : }
3615 : : else
3616 : : {
3617 : 4 : if (eqne == NE_EXPR
3618 : : )
3619 : : {
3620 : 4 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail990;
3621 : 4 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail990;
3622 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail990;
3623 : 4 : {
3624 : 4 : tree _r;
3625 : 4 : _r = captures[0];
3626 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 726, __FILE__, __LINE__, true);
3627 : 4 : return _r;
3628 : : }
3629 : : next_after_fail990:;
3630 : : }
3631 : : }
3632 : : return NULL_TREE;
3633 : : }
3634 : :
3635 : : tree
3636 : 0 : generic_simplify_469 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3637 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3638 : : {
3639 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3640 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1014;
3641 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1014;
3642 : 0 : {
3643 : 0 : tree _r;
3644 : 0 : _r = captures[2];
3645 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
3646 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3647 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 741, __FILE__, __LINE__, true);
3648 : : return _r;
3649 : : }
3650 : : next_after_fail1014:;
3651 : : return NULL_TREE;
3652 : : }
3653 : :
3654 : : tree
3655 : 0 : generic_simplify_471 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3656 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3657 : : {
3658 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3659 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1017;
3660 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1017;
3661 : 0 : {
3662 : 0 : tree _r;
3663 : 0 : _r = captures[2];
3664 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
3665 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3666 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 742, __FILE__, __LINE__, true);
3667 : : return _r;
3668 : : }
3669 : : next_after_fail1017:;
3670 : : return NULL_TREE;
3671 : : }
3672 : :
3673 : : tree
3674 : 3 : generic_simplify_474 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3675 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3676 : : {
3677 : 3 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3678 : 6 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
3679 : 6 : && TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[1]))
3680 : : )
3681 : : {
3682 : 3 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1032;
3683 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1032;
3684 : 3 : {
3685 : 3 : tree res_op0;
3686 : 3 : res_op0 = captures[3];
3687 : 3 : tree res_op1;
3688 : 3 : {
3689 : 3 : tree _o1[2], _r1;
3690 : 3 : _o1[0] = captures[1];
3691 : 3 : _o1[1] = build_int_cst (TREE_TYPE (captures[1]), 1);
3692 : 3 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3693 : 3 : res_op1 = _r1;
3694 : : }
3695 : 3 : tree _r;
3696 : 3 : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
3697 : 3 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 743, __FILE__, __LINE__, true);
3698 : 3 : return _r;
3699 : : }
3700 : : next_after_fail1032:;
3701 : : }
3702 : : return NULL_TREE;
3703 : : }
3704 : :
3705 : : tree
3706 : 0 : generic_simplify_477 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3707 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3708 : : {
3709 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3710 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
3711 : 0 : && TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[1]))
3712 : : )
3713 : : {
3714 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1035;
3715 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1035;
3716 : 0 : {
3717 : 0 : tree res_op0;
3718 : 0 : res_op0 = captures[3];
3719 : 0 : tree res_op1;
3720 : 0 : {
3721 : 0 : tree _o1[2], _r1;
3722 : 0 : _o1[0] = captures[1];
3723 : 0 : _o1[1] = build_int_cst (TREE_TYPE (captures[1]), 1);
3724 : 0 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3725 : 0 : res_op1 = _r1;
3726 : : }
3727 : 0 : tree _r;
3728 : 0 : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
3729 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 743, __FILE__, __LINE__, true);
3730 : 0 : return _r;
3731 : : }
3732 : : next_after_fail1035:;
3733 : : }
3734 : : return NULL_TREE;
3735 : : }
3736 : :
3737 : : tree
3738 : 0 : generic_simplify_481 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3739 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3740 : : {
3741 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3742 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1043;
3743 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1043;
3744 : 0 : {
3745 : 0 : tree _r;
3746 : 0 : _r = captures[1];
3747 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 745, __FILE__, __LINE__, true);
3748 : : return _r;
3749 : : }
3750 : : next_after_fail1043:;
3751 : : return NULL_TREE;
3752 : : }
3753 : :
3754 : : tree
3755 : 0 : generic_simplify_482 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3756 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3757 : : {
3758 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3759 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1044;
3760 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1044;
3761 : 0 : {
3762 : 0 : tree _r;
3763 : 0 : _r = captures[1];
3764 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 745, __FILE__, __LINE__, true);
3765 : : return _r;
3766 : : }
3767 : : next_after_fail1044:;
3768 : : return NULL_TREE;
3769 : : }
3770 : :
3771 : : tree
3772 : 42 : generic_simplify_485 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3773 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
3774 : : {
3775 : 42 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3776 : 42 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1048;
3777 : 42 : {
3778 : 42 : tree res_op0;
3779 : 42 : res_op0 = captures[1];
3780 : 42 : tree res_op1;
3781 : 42 : {
3782 : 42 : tree _o1[1], _r1;
3783 : 42 : _o1[0] = captures[2];
3784 : 42 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
3785 : 42 : res_op1 = _r1;
3786 : : }
3787 : 42 : tree _r;
3788 : 42 : _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
3789 : 42 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 749, __FILE__, __LINE__, true);
3790 : : return _r;
3791 : : }
3792 : 0 : next_after_fail1048:;
3793 : 0 : return NULL_TREE;
3794 : : }
3795 : :
3796 : : tree
3797 : 28 : generic_simplify_487 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3798 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
3799 : : {
3800 : 28 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3801 : 28 : if (element_precision (type) <= element_precision (TREE_TYPE (captures[0]))
3802 : 28 : || !TYPE_UNSIGNED (TREE_TYPE (captures[0]))
3803 : : )
3804 : : {
3805 : 28 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1050;
3806 : 28 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1050;
3807 : 28 : {
3808 : 28 : tree res_op0;
3809 : 28 : {
3810 : 28 : tree _o1[1], _r1;
3811 : 28 : _o1[0] = captures[0];
3812 : 28 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
3813 : 28 : res_op0 = _r1;
3814 : : }
3815 : 28 : tree _r;
3816 : 28 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3817 : 28 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 751, __FILE__, __LINE__, true);
3818 : 28 : return _r;
3819 : : }
3820 : : next_after_fail1050:;
3821 : : }
3822 : : return NULL_TREE;
3823 : : }
3824 : :
3825 : : tree
3826 : 3909 : generic_simplify_489 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3827 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
3828 : : {
3829 : 3909 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3830 : 3909 : if (element_precision (type) <= element_precision (TREE_TYPE (captures[0]))
3831 : 3909 : || !TYPE_UNSIGNED (TREE_TYPE (captures[0]))
3832 : : )
3833 : : {
3834 : 3474 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1052;
3835 : 3474 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1052;
3836 : 3474 : {
3837 : 3474 : tree res_op0;
3838 : 3474 : {
3839 : 3474 : tree _o1[1], _r1;
3840 : 3474 : _o1[0] = captures[0];
3841 : 3474 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
3842 : 3474 : res_op0 = _r1;
3843 : : }
3844 : 3474 : tree _r;
3845 : 3474 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3846 : 3474 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 753, __FILE__, __LINE__, true);
3847 : 3474 : return _r;
3848 : : }
3849 : : next_after_fail1052:;
3850 : : }
3851 : : return NULL_TREE;
3852 : : }
3853 : :
3854 : : tree
3855 : 0 : generic_simplify_493 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3856 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
3857 : : {
3858 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3859 : 0 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
3860 : : )
3861 : : {
3862 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1056;
3863 : 0 : {
3864 : 0 : tree res_op0;
3865 : 0 : {
3866 : 0 : tree _o1[2], _r1;
3867 : 0 : _o1[0] = captures[0];
3868 : 0 : _o1[1] = captures[1];
3869 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3870 : 0 : res_op0 = _r1;
3871 : : }
3872 : 0 : tree _r;
3873 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3874 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 757, __FILE__, __LINE__, true);
3875 : 0 : return _r;
3876 : : }
3877 : 0 : next_after_fail1056:;
3878 : : }
3879 : : return NULL_TREE;
3880 : : }
3881 : :
3882 : : tree
3883 : 38896 : generic_simplify_499 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3884 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
3885 : : {
3886 : 38896 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3887 : 38896 : if (!HONOR_SIGN_DEPENDENT_ROUNDING (type)
3888 : 38896 : && !HONOR_SIGNED_ZEROS (type)
3889 : : )
3890 : : {
3891 : 38896 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1063;
3892 : 38896 : {
3893 : 38896 : tree res_op0;
3894 : 38896 : {
3895 : 38896 : tree _o1[1], _r1;
3896 : 38896 : _o1[0] = captures[1];
3897 : 38896 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
3898 : 38896 : res_op0 = _r1;
3899 : : }
3900 : 38896 : tree res_op1;
3901 : 38896 : res_op1 = captures[0];
3902 : 38896 : tree _r;
3903 : 38896 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
3904 : 38896 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 762, __FILE__, __LINE__, true);
3905 : 38896 : return _r;
3906 : : }
3907 : 0 : next_after_fail1063:;
3908 : : }
3909 : : return NULL_TREE;
3910 : : }
3911 : :
3912 : : tree
3913 : 398 : generic_simplify_504 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3914 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
3915 : : {
3916 : 398 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3917 : 398 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
3918 : 398 : && wi::to_wide (captures[1]) == element_precision (type) - 1
3919 : : )
3920 : : {
3921 : 44 : {
3922 : 44 : tree stype = TREE_TYPE (captures[0]);
3923 : 44 : tree ntype = TYPE_UNSIGNED (stype) ? signed_type_for (stype)
3924 : 9 : : unsigned_type_for (stype);
3925 : 44 : if (VECTOR_TYPE_P (type)
3926 : : )
3927 : : {
3928 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1068;
3929 : 0 : {
3930 : 0 : tree res_op0;
3931 : 0 : {
3932 : 0 : tree _o1[2], _r1;
3933 : 0 : {
3934 : 0 : tree _o2[1], _r2;
3935 : 0 : _o2[0] = captures[0];
3936 : 0 : if (TREE_TYPE (_o2[0]) != ntype)
3937 : : {
3938 : 0 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, ntype, _o2[0]);
3939 : : }
3940 : : else
3941 : : _r2 = _o2[0];
3942 : 0 : _o1[0] = _r2;
3943 : : }
3944 : 0 : _o1[1] = captures[1];
3945 : 0 : _r1 = fold_build2_loc (loc, RSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3946 : 0 : res_op0 = _r1;
3947 : : }
3948 : 0 : tree _r;
3949 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
3950 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 767, __FILE__, __LINE__, true);
3951 : 0 : return _r;
3952 : : }
3953 : 0 : next_after_fail1068:;
3954 : : }
3955 : : else
3956 : : {
3957 : 44 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1069;
3958 : 44 : {
3959 : 44 : tree res_op0;
3960 : 44 : {
3961 : 44 : tree _o1[2], _r1;
3962 : 44 : {
3963 : 44 : tree _o2[1], _r2;
3964 : 44 : _o2[0] = captures[0];
3965 : 44 : if (TREE_TYPE (_o2[0]) != ntype)
3966 : : {
3967 : 44 : _r2 = fold_build1_loc (loc, NOP_EXPR, ntype, _o2[0]);
3968 : : }
3969 : : else
3970 : : _r2 = _o2[0];
3971 : 44 : _o1[0] = _r2;
3972 : : }
3973 : 44 : _o1[1] = captures[1];
3974 : 44 : _r1 = fold_build2_loc (loc, RSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3975 : 44 : res_op0 = _r1;
3976 : : }
3977 : 44 : tree _r;
3978 : 44 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3979 : 44 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 768, __FILE__, __LINE__, true);
3980 : 44 : return _r;
3981 : : }
3982 : 0 : next_after_fail1069:;
3983 : : }
3984 : : }
3985 : : }
3986 : : return NULL_TREE;
3987 : : }
3988 : :
3989 : : tree
3990 : 0 : generic_simplify_522 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3991 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3992 : : const combined_fn ARG_UNUSED (FMAX_ALL))
3993 : : {
3994 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3995 : 0 : if (flag_finite_math_only
3996 : : )
3997 : : {
3998 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1099;
3999 : 0 : {
4000 : 0 : tree res_op0;
4001 : 0 : res_op0 = captures[0];
4002 : 0 : tree res_op1;
4003 : 0 : res_op1 = captures[1];
4004 : 0 : tree _r;
4005 : 0 : _r = fold_build2_loc (loc, MAX_EXPR, type, res_op0, res_op1);
4006 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 785, __FILE__, __LINE__, true);
4007 : 0 : return _r;
4008 : : }
4009 : 0 : next_after_fail1099:;
4010 : : }
4011 : : return NULL_TREE;
4012 : : }
4013 : :
4014 : : tree
4015 : 0 : generic_simplify_527 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4016 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4017 : : const combined_fn ARG_UNUSED (bswap))
4018 : : {
4019 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4020 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1107;
4021 : 0 : {
4022 : 0 : tree _r;
4023 : 0 : _r = captures[0];
4024 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 793, __FILE__, __LINE__, true);
4025 : : return _r;
4026 : : }
4027 : 0 : next_after_fail1107:;
4028 : 0 : return NULL_TREE;
4029 : : }
4030 : :
4031 : : tree
4032 : 12 : generic_simplify_532 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4033 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
4034 : : const enum tree_code ARG_UNUSED (op))
4035 : : {
4036 : 12 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4037 : 12 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1112;
4038 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1112;
4039 : 12 : {
4040 : 12 : tree _r;
4041 : 12 : _r = captures[2];
4042 : 12 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 577, __FILE__, __LINE__, true);
4043 : : return _r;
4044 : : }
4045 : : next_after_fail1112:;
4046 : : return NULL_TREE;
4047 : : }
4048 : :
4049 : : tree
4050 : 0 : generic_simplify_539 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4051 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
4052 : : const combined_fn ARG_UNUSED (cond_len_op))
4053 : : {
4054 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4055 : 0 : {
4056 : 0 : tree op_type = TREE_TYPE (captures[3]);
4057 : 0 : if (element_precision (type) == element_precision (op_type)
4058 : : )
4059 : : {
4060 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1119;
4061 : 0 : {
4062 : 0 : tree res_op0;
4063 : 0 : {
4064 : 0 : tree _o1[6], _r1;
4065 : 0 : _o1[0] = captures[0];
4066 : 0 : _o1[1] = captures[1];
4067 : 0 : _o1[2] = captures[2];
4068 : 0 : {
4069 : 0 : tree _o2[1], _r2;
4070 : 0 : _o2[0] = captures[6];
4071 : 0 : if (TREE_TYPE (_o2[0]) != op_type)
4072 : : {
4073 : 0 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, op_type, _o2[0]);
4074 : : }
4075 : : else
4076 : : _r2 = _o2[0];
4077 : 0 : _o1[3] = _r2;
4078 : : }
4079 : 0 : _o1[4] = captures[4];
4080 : 0 : _o1[5] = captures[5];
4081 : 0 : _r1 = maybe_build_call_expr_loc (loc, cond_len_op, TREE_TYPE (_o1[1]), 6, _o1[0], _o1[1], _o1[2], _o1[3], _o1[4], _o1[5]);
4082 : 0 : if (!_r1)
4083 : 0 : goto next_after_fail1119;
4084 : 0 : res_op0 = _r1;
4085 : : }
4086 : 0 : tree _r;
4087 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
4088 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
4089 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
4090 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 800, __FILE__, __LINE__, true);
4091 : 0 : return _r;
4092 : : }
4093 : : next_after_fail1119:;
4094 : : }
4095 : : }
4096 : : return NULL_TREE;
4097 : : }
4098 : :
4099 : : tree
4100 : 0 : generic_simplify_548 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4101 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
4102 : : const combined_fn ARG_UNUSED (ovf))
4103 : : {
4104 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4105 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
4106 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
4107 : 0 : && TYPE_PRECISION (TREE_TYPE (captures[0])) > TYPE_PRECISION (TREE_TYPE (captures[1]))
4108 : 0 : && (!TYPE_UNSIGNED (TREE_TYPE (captures[0])) || TYPE_UNSIGNED (TREE_TYPE (captures[1])))
4109 : : )
4110 : : {
4111 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1128;
4112 : 0 : {
4113 : 0 : tree res_op0;
4114 : 0 : res_op0 = captures[1];
4115 : 0 : tree res_op1;
4116 : 0 : res_op1 = captures[2];
4117 : 0 : tree _r;
4118 : 0 : _r = maybe_build_call_expr_loc (loc, ovf, type, 2, res_op0, res_op1);
4119 : 0 : if (!_r)
4120 : 0 : goto next_after_fail1128;
4121 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 809, __FILE__, __LINE__, true);
4122 : 0 : return _r;
4123 : : }
4124 : : next_after_fail1128:;
4125 : : }
4126 : : return NULL_TREE;
4127 : : }
4128 : :
4129 : : tree
4130 : 0 : generic_simplify_558 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4131 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4132 : : const combined_fn ARG_UNUSED (froms),
4133 : : const combined_fn ARG_UNUSED (tos))
4134 : : {
4135 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4136 : 0 : if (optimize && canonicalize_math_p ()
4137 : 0 : && targetm.libc_has_function (function_c99_misc, NULL_TREE)
4138 : : )
4139 : : {
4140 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1138;
4141 : 0 : {
4142 : 0 : tree res_op0;
4143 : 0 : {
4144 : 0 : tree _o1[1], _r1;
4145 : 0 : _o1[0] = captures[0];
4146 : 0 : _r1 = maybe_build_call_expr_loc (loc, tos, TREE_TYPE (_o1[0]), 1, _o1[0]);
4147 : 0 : if (!_r1)
4148 : 0 : goto next_after_fail1138;
4149 : 0 : res_op0 = _r1;
4150 : : }
4151 : 0 : tree _r;
4152 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4153 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 819, __FILE__, __LINE__, true);
4154 : 0 : return _r;
4155 : : }
4156 : : next_after_fail1138:;
4157 : : }
4158 : : return NULL_TREE;
4159 : : }
4160 : :
4161 : : tree
4162 : 0 : generic_simplify_567 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4163 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4164 : : const combined_fn ARG_UNUSED (ifn),
4165 : : const combined_fn ARG_UNUSED (lfn),
4166 : : const combined_fn ARG_UNUSED (llfn))
4167 : : {
4168 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4169 : 0 : if (canonicalize_math_p ()
4170 : : )
4171 : : {
4172 : 0 : if (TYPE_PRECISION (integer_type_node)
4173 : 0 : == TYPE_PRECISION (long_integer_type_node)
4174 : : )
4175 : : {
4176 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1147;
4177 : 0 : {
4178 : 0 : tree res_op0;
4179 : 0 : res_op0 = captures[0];
4180 : 0 : tree _r;
4181 : 0 : _r = maybe_build_call_expr_loc (loc, lfn, type, 1, res_op0);
4182 : 0 : if (!_r)
4183 : 0 : goto next_after_fail1147;
4184 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 828, __FILE__, __LINE__, true);
4185 : 0 : return _r;
4186 : : }
4187 : : next_after_fail1147:;
4188 : : }
4189 : : }
4190 : : return NULL_TREE;
4191 : : }
4192 : :
4193 : : tree
4194 : 0 : generic_simplify_578 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4195 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
4196 : : {
4197 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4198 : 0 : if (canonicalize_math_after_vectorization_p ()
4199 : : )
4200 : : {
4201 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1158;
4202 : : {
4203 : : tree res_op0;
4204 : : res_op0 = captures[0];
4205 : : tree res_op1;
4206 : : res_op1 = captures[1];
4207 : : tree res_op2;
4208 : : res_op2 = captures[2];
4209 : : tree _r;
4210 : : _r = maybe_build_call_expr_loc (loc, CFN_FMS, type, 3, res_op0, res_op1, res_op2);
4211 : : if (!_r)
4212 : : goto next_after_fail1158;
4213 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 839, __FILE__, __LINE__, true);
4214 : : return _r;
4215 : : }
4216 : 0 : next_after_fail1158:;
4217 : : }
4218 : 0 : return NULL_TREE;
4219 : : }
4220 : :
4221 : : tree
4222 : 0 : generic_simplify_588 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4223 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4224 : : const enum tree_code ARG_UNUSED (rot),
4225 : : const combined_fn ARG_UNUSED (popcount))
4226 : : {
4227 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4228 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
4229 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
4230 : 0 : && (
4231 : :
4232 : 0 : || !TREE_SIDE_EFFECTS (captures[3]))
4233 : : )
4234 : : {
4235 : 0 : {
4236 : 0 : tree type0 = TREE_TYPE (captures[0]);
4237 : 0 : tree type1 = TREE_TYPE (captures[1]);
4238 : 0 : unsigned int prec0 = TYPE_PRECISION (type0);
4239 : 0 : unsigned int prec1 = TYPE_PRECISION (type1);
4240 : 0 : if (prec0 == prec1 || (prec0 > prec1 && TYPE_UNSIGNED (type1))
4241 : : )
4242 : : {
4243 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1168;
4244 : 0 : {
4245 : 0 : tree res_op0;
4246 : 0 : {
4247 : 0 : tree _o1[1], _r1;
4248 : 0 : _o1[0] = captures[2];
4249 : 0 : if (TREE_TYPE (_o1[0]) != type0)
4250 : : {
4251 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type0, _o1[0]);
4252 : : }
4253 : : else
4254 : : _r1 = _o1[0];
4255 : 0 : res_op0 = _r1;
4256 : : }
4257 : 0 : tree _r;
4258 : 0 : _r = maybe_build_call_expr_loc (loc, popcount, type, 1, res_op0);
4259 : 0 : if (!_r)
4260 : 0 : goto next_after_fail1168;
4261 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
4262 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
4263 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 844, __FILE__, __LINE__, true);
4264 : 0 : return _r;
4265 : : }
4266 : : next_after_fail1168:;
4267 : : }
4268 : : }
4269 : : }
4270 : : return NULL_TREE;
4271 : : }
4272 : :
4273 : : tree
4274 : 2733668 : generic_simplify_ABS_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0)
4275 : : {
4276 : 2733668 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4277 : 2733668 : switch (TREE_CODE (_p0))
4278 : : {
4279 : 207824 : CASE_CONVERT:
4280 : 207824 : {
4281 : 207824 : tree _q20 = TREE_OPERAND (_p0, 0);
4282 : 207824 : {
4283 : 207824 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
4284 : 415646 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
4285 : 914 : && !TYPE_UNSIGNED (TREE_TYPE (captures[0]))
4286 : 208664 : && element_precision (type) > element_precision (TREE_TYPE (captures[0]))
4287 : : )
4288 : : {
4289 : 225 : {
4290 : 225 : tree utype = unsigned_type_for (TREE_TYPE (captures[0]));
4291 : 225 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1181;
4292 : 225 : {
4293 : 225 : tree res_op0;
4294 : 225 : {
4295 : 225 : tree _o1[1], _r1;
4296 : 225 : _o1[0] = captures[0];
4297 : 225 : _r1 = fold_build1_loc (loc, ABSU_EXPR, utype, _o1[0]);
4298 : 225 : res_op0 = _r1;
4299 : : }
4300 : 225 : tree _r;
4301 : 225 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4302 : 225 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 855, __FILE__, __LINE__, true);
4303 : 225 : return _r;
4304 : : }
4305 : 0 : next_after_fail1181:;
4306 : : }
4307 : : }
4308 : : }
4309 : : break;
4310 : : }
4311 : 12 : case ABS_EXPR:
4312 : 12 : {
4313 : 12 : tree _q20 = TREE_OPERAND (_p0, 0);
4314 : 12 : {
4315 : 12 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
4316 : 12 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1182;
4317 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1182;
4318 : 12 : {
4319 : 12 : tree _r;
4320 : 12 : _r = captures[0];
4321 : 12 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 856, __FILE__, __LINE__, true);
4322 : 12 : return _r;
4323 : : }
4324 : 0 : next_after_fail1182:;
4325 : : }
4326 : 0 : break;
4327 : : }
4328 : 57 : case NEGATE_EXPR:
4329 : 57 : {
4330 : 57 : tree _q20 = TREE_OPERAND (_p0, 0);
4331 : 57 : {
4332 : 57 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
4333 : 57 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1183;
4334 : 57 : {
4335 : 57 : tree res_op0;
4336 : 57 : res_op0 = captures[0];
4337 : 57 : tree _r;
4338 : 57 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
4339 : 57 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 857, __FILE__, __LINE__, true);
4340 : 2733668 : return _r;
4341 : : }
4342 : 0 : next_after_fail1183:;
4343 : : }
4344 : 0 : break;
4345 : : }
4346 : 317 : case PLUS_EXPR:
4347 : 317 : {
4348 : 317 : tree _q20 = TREE_OPERAND (_p0, 0);
4349 : 317 : tree _q21 = TREE_OPERAND (_p0, 1);
4350 : 317 : if (real_zerop (_q21))
4351 : : {
4352 : 3 : {
4353 : 3 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4354 : 3 : tree res = generic_simplify_1 (loc, type, _p0, captures, PLUS_EXPR);
4355 : 3 : if (res) return res;
4356 : : }
4357 : : }
4358 : : break;
4359 : : }
4360 : 7271 : case MINUS_EXPR:
4361 : 7271 : {
4362 : 7271 : tree _q20 = TREE_OPERAND (_p0, 0);
4363 : 7271 : tree _q21 = TREE_OPERAND (_p0, 1);
4364 : 7271 : if (real_zerop (_q21))
4365 : : {
4366 : 0 : {
4367 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4368 : 0 : tree res = generic_simplify_1 (loc, type, _p0, captures, MINUS_EXPR);
4369 : 0 : if (res) return res;
4370 : : }
4371 : : }
4372 : : break;
4373 : : }
4374 : 0 : case VEC_COND_EXPR:
4375 : 0 : {
4376 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
4377 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
4378 : 0 : tree _q22 = TREE_OPERAND (_p0, 2);
4379 : 0 : {
4380 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22 };
4381 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1184;
4382 : 0 : {
4383 : 0 : tree res_op0;
4384 : 0 : res_op0 = captures[1];
4385 : 0 : tree res_op1;
4386 : 0 : {
4387 : 0 : tree _o1[1], _r1;
4388 : 0 : _o1[0] = captures[2];
4389 : 0 : _r1 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
4390 : 0 : if (EXPR_P (_r1))
4391 : 0 : goto next_after_fail1184;
4392 : 0 : res_op1 = _r1;
4393 : : }
4394 : 0 : tree res_op2;
4395 : 0 : {
4396 : 0 : tree _o1[1], _r1;
4397 : 0 : _o1[0] = captures[3];
4398 : 0 : _r1 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
4399 : 0 : if (EXPR_P (_r1))
4400 : 0 : goto next_after_fail1184;
4401 : 0 : res_op2 = _r1;
4402 : : }
4403 : 0 : tree _r;
4404 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
4405 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 858, __FILE__, __LINE__, true);
4406 : 0 : return _r;
4407 : : }
4408 : 0 : next_after_fail1184:;
4409 : : }
4410 : 0 : break;
4411 : : }
4412 : 1088 : case CALL_EXPR:
4413 : 1088 : switch (get_call_combined_fn (_p0))
4414 : : {
4415 : 0 : case CFN_BUILT_IN_COPYSIGNF16:
4416 : 0 : if (call_expr_nargs (_p0) == 2)
4417 : : {
4418 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4419 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
4420 : 0 : {
4421 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4422 : 0 : tree res = generic_simplify_2 (loc, type, _p0, captures, CFN_BUILT_IN_COPYSIGNF16);
4423 : 0 : if (res) return res;
4424 : : }
4425 : : }
4426 : : break;
4427 : 0 : case CFN_BUILT_IN_COPYSIGNF32:
4428 : 0 : if (call_expr_nargs (_p0) == 2)
4429 : : {
4430 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4431 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
4432 : 0 : {
4433 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4434 : 0 : tree res = generic_simplify_2 (loc, type, _p0, captures, CFN_BUILT_IN_COPYSIGNF32);
4435 : 0 : if (res) return res;
4436 : : }
4437 : : }
4438 : : break;
4439 : 0 : case CFN_BUILT_IN_COPYSIGNF64:
4440 : 0 : if (call_expr_nargs (_p0) == 2)
4441 : : {
4442 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4443 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
4444 : 0 : {
4445 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4446 : 0 : tree res = generic_simplify_2 (loc, type, _p0, captures, CFN_BUILT_IN_COPYSIGNF64);
4447 : 0 : if (res) return res;
4448 : : }
4449 : : }
4450 : : break;
4451 : 0 : case CFN_BUILT_IN_COPYSIGNF128X:
4452 : 0 : if (call_expr_nargs (_p0) == 2)
4453 : : {
4454 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4455 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
4456 : 0 : {
4457 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4458 : 0 : tree res = generic_simplify_2 (loc, type, _p0, captures, CFN_BUILT_IN_COPYSIGNF128X);
4459 : 0 : if (res) return res;
4460 : : }
4461 : : }
4462 : : break;
4463 : 0 : case CFN_BUILT_IN_COPYSIGNF128:
4464 : 0 : if (call_expr_nargs (_p0) == 2)
4465 : : {
4466 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4467 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
4468 : 0 : {
4469 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4470 : 0 : tree res = generic_simplify_2 (loc, type, _p0, captures, CFN_BUILT_IN_COPYSIGNF128);
4471 : 0 : if (res) return res;
4472 : : }
4473 : : }
4474 : : break;
4475 : 0 : case CFN_BUILT_IN_COPYSIGNF32X:
4476 : 0 : if (call_expr_nargs (_p0) == 2)
4477 : : {
4478 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4479 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
4480 : 0 : {
4481 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4482 : 0 : tree res = generic_simplify_2 (loc, type, _p0, captures, CFN_BUILT_IN_COPYSIGNF32X);
4483 : 0 : if (res) return res;
4484 : : }
4485 : : }
4486 : : break;
4487 : 0 : case CFN_BUILT_IN_COPYSIGNF64X:
4488 : 0 : if (call_expr_nargs (_p0) == 2)
4489 : : {
4490 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4491 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
4492 : 0 : {
4493 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4494 : 0 : tree res = generic_simplify_2 (loc, type, _p0, captures, CFN_BUILT_IN_COPYSIGNF64X);
4495 : 0 : if (res) return res;
4496 : : }
4497 : : }
4498 : : break;
4499 : 0 : case CFN_BUILT_IN_COPYSIGN:
4500 : 0 : if (call_expr_nargs (_p0) == 2)
4501 : : {
4502 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4503 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
4504 : 0 : {
4505 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4506 : 0 : tree res = generic_simplify_2 (loc, type, _p0, captures, CFN_BUILT_IN_COPYSIGN);
4507 : 0 : if (res) return res;
4508 : : }
4509 : : }
4510 : : break;
4511 : 1 : case CFN_BUILT_IN_COPYSIGNF:
4512 : 1 : if (call_expr_nargs (_p0) == 2)
4513 : : {
4514 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4515 : 1 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
4516 : 1 : {
4517 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4518 : 1 : tree res = generic_simplify_2 (loc, type, _p0, captures, CFN_BUILT_IN_COPYSIGNF);
4519 : 1 : if (res) return res;
4520 : : }
4521 : : }
4522 : : break;
4523 : 0 : case CFN_BUILT_IN_COPYSIGNL:
4524 : 0 : if (call_expr_nargs (_p0) == 2)
4525 : : {
4526 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4527 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
4528 : 0 : {
4529 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4530 : 0 : tree res = generic_simplify_2 (loc, type, _p0, captures, CFN_BUILT_IN_COPYSIGNL);
4531 : 0 : if (res) return res;
4532 : : }
4533 : : }
4534 : : break;
4535 : 0 : case CFN_COPYSIGN:
4536 : 0 : if (call_expr_nargs (_p0) == 2)
4537 : : {
4538 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4539 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
4540 : 0 : {
4541 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4542 : 0 : tree res = generic_simplify_2 (loc, type, _p0, captures, CFN_COPYSIGN);
4543 : 0 : if (res) return res;
4544 : : }
4545 : : }
4546 : : break;
4547 : : default:;
4548 : : }
4549 : : break;
4550 : 2733371 : default:;
4551 : : }
4552 : 2733371 : if (tree_expr_nonnegative_p (_p0))
4553 : : {
4554 : 549 : {
4555 : 549 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4556 : 549 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1185;
4557 : 549 : {
4558 : 549 : tree _r;
4559 : 549 : _r = captures[0];
4560 : 549 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 859, __FILE__, __LINE__, true);
4561 : 549 : return _r;
4562 : : }
4563 : 0 : next_after_fail1185:;
4564 : : }
4565 : : }
4566 : : return NULL_TREE;
4567 : : }
4568 : :
4569 : : tree
4570 : 95096840 : generic_simplify_PLUS_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
4571 : : {
4572 : 95096840 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4573 : 95096840 : if (integer_zerop (_p1))
4574 : : {
4575 : 27160102 : {
4576 : 27160102 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4577 : 27160102 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1300;
4578 : 27160102 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1300;
4579 : 27160102 : {
4580 : 27160102 : tree res_op0;
4581 : 27160102 : res_op0 = captures[0];
4582 : 27160102 : tree _r;
4583 : 27160102 : _r = non_lvalue_loc (loc, res_op0);
4584 : 27160102 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 912, __FILE__, __LINE__, true);
4585 : 27160102 : return _r;
4586 : : }
4587 : : next_after_fail1300:;
4588 : : }
4589 : : }
4590 : 67936738 : if (real_zerop (_p1))
4591 : : {
4592 : 5272 : {
4593 : 5272 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
4594 : 5272 : tree res = generic_simplify_3 (loc, type, _p0, _p1, captures);
4595 : 5272 : if (res) return res;
4596 : : }
4597 : : }
4598 : 67936643 : switch (TREE_CODE (_p0))
4599 : : {
4600 : 6481925 : case PLUS_EXPR:
4601 : 6481925 : {
4602 : 6481925 : tree _q20 = TREE_OPERAND (_p0, 0);
4603 : 6481925 : tree _q21 = TREE_OPERAND (_p0, 1);
4604 : 6481925 : switch (TREE_CODE (_q21))
4605 : : {
4606 : 124298 : case REAL_CST:
4607 : 124298 : {
4608 : 124298 : switch (TREE_CODE (_p1))
4609 : : {
4610 : 70 : case REAL_CST:
4611 : 70 : {
4612 : 70 : {
4613 : 70 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
4614 : 70 : tree res = generic_simplify_4 (loc, type, _p0, _p1, captures, PLUS_EXPR, PLUS_EXPR);
4615 : 70 : if (res) return res;
4616 : : }
4617 : 67 : break;
4618 : : }
4619 : : default:;
4620 : : }
4621 : : break;
4622 : : }
4623 : : default:;
4624 : : }
4625 : : break;
4626 : : }
4627 : 2009007 : case MINUS_EXPR:
4628 : 2009007 : {
4629 : 2009007 : tree _q20 = TREE_OPERAND (_p0, 0);
4630 : 2009007 : tree _q21 = TREE_OPERAND (_p0, 1);
4631 : 2009007 : switch (TREE_CODE (_q21))
4632 : : {
4633 : 23333 : case REAL_CST:
4634 : 23333 : {
4635 : 23333 : switch (TREE_CODE (_p1))
4636 : : {
4637 : 195 : case REAL_CST:
4638 : 195 : {
4639 : 195 : {
4640 : 195 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
4641 : 195 : tree res = generic_simplify_4 (loc, type, _p0, _p1, captures, PLUS_EXPR, MINUS_EXPR);
4642 : 195 : if (res) return res;
4643 : : }
4644 : 193 : break;
4645 : : }
4646 : : default:;
4647 : : }
4648 : : break;
4649 : : }
4650 : : default:;
4651 : : }
4652 : : break;
4653 : : }
4654 : 11601 : case MAX_EXPR:
4655 : 11601 : {
4656 : 11601 : tree _q20 = TREE_OPERAND (_p0, 0);
4657 : 11601 : tree _q21 = TREE_OPERAND (_p0, 1);
4658 : 11601 : if (integer_zerop (_q21))
4659 : : {
4660 : 4545 : switch (TREE_CODE (_p1))
4661 : : {
4662 : 113 : case MAX_EXPR:
4663 : 113 : {
4664 : 113 : tree _q50 = TREE_OPERAND (_p1, 0);
4665 : 113 : tree _q51 = TREE_OPERAND (_p1, 1);
4666 : 113 : switch (TREE_CODE (_q50))
4667 : : {
4668 : 48 : case NEGATE_EXPR:
4669 : 48 : {
4670 : 48 : tree _q60 = TREE_OPERAND (_q50, 0);
4671 : 48 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
4672 : : {
4673 : 48 : if (integer_zerop (_q51))
4674 : : {
4675 : 48 : {
4676 : 48 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
4677 : 48 : tree res = generic_simplify_5 (loc, type, _p0, _p1, captures);
4678 : 48 : if (res) return res;
4679 : : }
4680 : : }
4681 : : }
4682 : : break;
4683 : : }
4684 : : default:;
4685 : : }
4686 : : break;
4687 : : }
4688 : : default:;
4689 : : }
4690 : : }
4691 : 11553 : switch (TREE_CODE (_q20))
4692 : : {
4693 : 18 : case NEGATE_EXPR:
4694 : 18 : {
4695 : 18 : tree _q30 = TREE_OPERAND (_q20, 0);
4696 : 18 : if (integer_zerop (_q21))
4697 : : {
4698 : 18 : switch (TREE_CODE (_p1))
4699 : : {
4700 : 18 : case MAX_EXPR:
4701 : 18 : {
4702 : 18 : tree _q60 = TREE_OPERAND (_p1, 0);
4703 : 18 : tree _q61 = TREE_OPERAND (_p1, 1);
4704 : 18 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
4705 : : {
4706 : 18 : if (integer_zerop (_q61))
4707 : : {
4708 : 18 : {
4709 : 18 : tree captures[1] ATTRIBUTE_UNUSED = { _q30 };
4710 : 18 : tree res = generic_simplify_5 (loc, type, _p0, _p1, captures);
4711 : 18 : if (res) return res;
4712 : : }
4713 : : }
4714 : : }
4715 : : break;
4716 : : }
4717 : : default:;
4718 : : }
4719 : : }
4720 : : break;
4721 : : }
4722 : : default:;
4723 : : }
4724 : : break;
4725 : : }
4726 : 12782332 : case MULT_EXPR:
4727 : 12782332 : {
4728 : 12782332 : tree _q20 = TREE_OPERAND (_p0, 0);
4729 : 12782332 : tree _q21 = TREE_OPERAND (_p0, 1);
4730 : 12782332 : switch (TREE_CODE (_q20))
4731 : : {
4732 : 1809655 : case PLUS_EXPR:
4733 : 1809655 : {
4734 : 1809655 : tree _q30 = TREE_OPERAND (_q20, 0);
4735 : 1809655 : tree _q31 = TREE_OPERAND (_q20, 1);
4736 : 1809655 : switch (TREE_CODE (_q31))
4737 : : {
4738 : 479494 : case INTEGER_CST:
4739 : 479494 : {
4740 : 479494 : switch (TREE_CODE (_q21))
4741 : : {
4742 : 165622 : case INTEGER_CST:
4743 : 165622 : {
4744 : 165622 : switch (TREE_CODE (_p1))
4745 : : {
4746 : 113874 : case INTEGER_CST:
4747 : 113874 : {
4748 : 113874 : {
4749 : 113874 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
4750 : 113874 : {
4751 : 113874 : bool overflowed = true;
4752 : 113874 : wi::overflow_type ovf1;
4753 : 113874 : wi::overflow_type ovf2;
4754 : 113874 : wide_int mul = wi::mul (wi::to_wide (captures[3]), wi::to_wide (captures[4]),
4755 : 227748 : TYPE_SIGN (type), &ovf1);
4756 : 341622 : wide_int add = wi::add (mul, wi::to_wide (captures[5]),
4757 : 113874 : TYPE_SIGN (type), &ovf2);
4758 : 113874 : if (TYPE_OVERFLOW_UNDEFINED (type))
4759 : : {
4760 : : }
4761 : : else
4762 : 52098 : overflowed = false;
4763 : 52098 : if (!overflowed
4764 : : )
4765 : : {
4766 : 52098 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1301;
4767 : 52098 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1301;
4768 : 52098 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail1301;
4769 : 52098 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1301;
4770 : 52098 : {
4771 : 52098 : tree res_op0;
4772 : 52098 : {
4773 : 52098 : tree _o1[2], _r1;
4774 : 52098 : _o1[0] = captures[2];
4775 : 52098 : _o1[1] = captures[4];
4776 : 52098 : _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4777 : 52098 : res_op0 = _r1;
4778 : : }
4779 : 52098 : tree res_op1;
4780 : 52098 : res_op1 = wide_int_to_tree (type, add);
4781 : 52098 : tree _r;
4782 : 52098 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
4783 : 52098 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 913, __FILE__, __LINE__, true);
4784 : 52098 : return _r;
4785 : : }
4786 : 61776 : next_after_fail1301:;
4787 : : }
4788 : 113874 : }
4789 : : }
4790 : 61776 : break;
4791 : : }
4792 : : default:;
4793 : : }
4794 : : break;
4795 : : }
4796 : : default:;
4797 : : }
4798 : : break;
4799 : : }
4800 : : default:;
4801 : : }
4802 : : break;
4803 : : }
4804 : : default:;
4805 : : }
4806 : : break;
4807 : : }
4808 : 19110 : case LSHIFT_EXPR:
4809 : 19110 : {
4810 : 19110 : tree _q20 = TREE_OPERAND (_p0, 0);
4811 : 19110 : tree _q21 = TREE_OPERAND (_p0, 1);
4812 : 19110 : switch (TREE_CODE (_p1))
4813 : : {
4814 : 688 : case LSHIFT_EXPR:
4815 : 688 : {
4816 : 688 : tree _q50 = TREE_OPERAND (_p1, 0);
4817 : 688 : tree _q51 = TREE_OPERAND (_p1, 1);
4818 : 688 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
4819 : : {
4820 : 7 : {
4821 : 7 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
4822 : 7 : tree res = generic_simplify_6 (loc, type, _p0, _p1, captures, PLUS_EXPR);
4823 : 7 : if (res) return res;
4824 : : }
4825 : : }
4826 : : break;
4827 : : }
4828 : : default:;
4829 : : }
4830 : : break;
4831 : : }
4832 : 191732 : case BIT_AND_EXPR:
4833 : 191732 : {
4834 : 191732 : tree _q20 = TREE_OPERAND (_p0, 0);
4835 : 191732 : tree _q21 = TREE_OPERAND (_p0, 1);
4836 : 191732 : switch (TREE_CODE (_p1))
4837 : : {
4838 : 286 : case BIT_AND_EXPR:
4839 : 286 : {
4840 : 286 : tree _q50 = TREE_OPERAND (_p1, 0);
4841 : 286 : tree _q51 = TREE_OPERAND (_p1, 1);
4842 : 286 : {
4843 : 286 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q50, _q51 };
4844 : 286 : tree res = generic_simplify_7 (loc, type, _p0, _p1, captures, PLUS_EXPR);
4845 : 286 : if (res) return res;
4846 : : }
4847 : 286 : {
4848 : 286 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q51, _q50 };
4849 : 286 : tree res = generic_simplify_7 (loc, type, _p0, _p1, captures, PLUS_EXPR);
4850 : 286 : if (res) return res;
4851 : : }
4852 : 286 : {
4853 : 286 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q50, _q51 };
4854 : 286 : tree res = generic_simplify_7 (loc, type, _p0, _p1, captures, PLUS_EXPR);
4855 : 286 : if (res) return res;
4856 : : }
4857 : 286 : {
4858 : 286 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q51, _q50 };
4859 : 286 : tree res = generic_simplify_7 (loc, type, _p0, _p1, captures, PLUS_EXPR);
4860 : 286 : if (res) return res;
4861 : : }
4862 : 286 : break;
4863 : : }
4864 : 191732 : default:;
4865 : : }
4866 : 191732 : if (integer_onep (_q21))
4867 : : {
4868 : 125990 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
4869 : : {
4870 : 29 : {
4871 : 29 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p0, _q21 };
4872 : 29 : tree res = generic_simplify_8 (loc, type, _p0, _p1, captures);
4873 : 29 : if (res) return res;
4874 : : }
4875 : : }
4876 : : }
4877 : : break;
4878 : : }
4879 : 67884438 : default:;
4880 : : }
4881 : 67884438 : if (real_zerop (_p0))
4882 : : {
4883 : 0 : {
4884 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p1, _p0 };
4885 : 0 : tree res = generic_simplify_3 (loc, type, _p0, _p1, captures);
4886 : 0 : if (res) return res;
4887 : : }
4888 : : }
4889 : 67884438 : switch (TREE_CODE (_p1))
4890 : : {
4891 : 5301 : case BIT_AND_EXPR:
4892 : 5301 : {
4893 : 5301 : tree _q30 = TREE_OPERAND (_p1, 0);
4894 : 5301 : tree _q31 = TREE_OPERAND (_p1, 1);
4895 : 5301 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
4896 : : {
4897 : 16 : if (integer_onep (_q31))
4898 : : {
4899 : 16 : {
4900 : 16 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q31 };
4901 : 16 : tree res = generic_simplify_8 (loc, type, _p0, _p1, captures);
4902 : 16 : if (res) return res;
4903 : : }
4904 : : }
4905 : : }
4906 : : break;
4907 : : }
4908 : 67884422 : default:;
4909 : : }
4910 : 67884422 : switch (TREE_CODE (_p0))
4911 : : {
4912 : 191703 : case BIT_AND_EXPR:
4913 : 191703 : {
4914 : 191703 : tree _q20 = TREE_OPERAND (_p0, 0);
4915 : 191703 : tree _q21 = TREE_OPERAND (_p0, 1);
4916 : 191703 : switch (TREE_CODE (_p1))
4917 : : {
4918 : 9 : case BIT_XOR_EXPR:
4919 : 9 : {
4920 : 9 : tree _q50 = TREE_OPERAND (_p1, 0);
4921 : 9 : tree _q51 = TREE_OPERAND (_p1, 1);
4922 : 9 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
4923 : : {
4924 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
4925 : : {
4926 : 0 : {
4927 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4928 : 0 : tree res = generic_simplify_9 (loc, type, _p0, _p1, captures, PLUS_EXPR);
4929 : 0 : if (res) return res;
4930 : : }
4931 : : }
4932 : : }
4933 : : break;
4934 : : }
4935 : 1 : case BIT_IOR_EXPR:
4936 : 1 : {
4937 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
4938 : 1 : tree _q51 = TREE_OPERAND (_p1, 1);
4939 : 1 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
4940 : : {
4941 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
4942 : : {
4943 : 0 : {
4944 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4945 : 0 : tree res = generic_simplify_10 (loc, type, _p0, _p1, captures);
4946 : 0 : if (res) return res;
4947 : : }
4948 : : }
4949 : : }
4950 : : break;
4951 : : }
4952 : 191703 : default:;
4953 : : }
4954 : 191703 : switch (TREE_CODE (_q21))
4955 : : {
4956 : 191398 : case INTEGER_CST:
4957 : 191398 : {
4958 : 191398 : switch (TREE_CODE (_p1))
4959 : : {
4960 : 15024 : CASE_CONVERT:
4961 : 15024 : {
4962 : 15024 : tree _q50 = TREE_OPERAND (_p1, 0);
4963 : 15024 : switch (TREE_CODE (_q50))
4964 : : {
4965 : 0 : case BIT_AND_EXPR:
4966 : 0 : {
4967 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
4968 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
4969 : 0 : switch (TREE_CODE (_q61))
4970 : : {
4971 : 0 : case INTEGER_CST:
4972 : 0 : {
4973 : 0 : {
4974 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50, _q60, _q61 };
4975 : 0 : tree res = generic_simplify_11 (loc, type, _p0, _p1, captures, PLUS_EXPR);
4976 : 0 : if (res) return res;
4977 : : }
4978 : 0 : break;
4979 : : }
4980 : : default:;
4981 : : }
4982 : : break;
4983 : : }
4984 : : default:;
4985 : : }
4986 : : break;
4987 : : }
4988 : 286 : case BIT_AND_EXPR:
4989 : 286 : {
4990 : 286 : tree _q50 = TREE_OPERAND (_p1, 0);
4991 : 286 : tree _q51 = TREE_OPERAND (_p1, 1);
4992 : 286 : switch (TREE_CODE (_q51))
4993 : : {
4994 : 286 : case INTEGER_CST:
4995 : 286 : {
4996 : 286 : {
4997 : 286 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
4998 : 286 : tree res = generic_simplify_11 (loc, type, _p0, _p1, captures, PLUS_EXPR);
4999 : 286 : if (res) return res;
5000 : : }
5001 : 186 : break;
5002 : : }
5003 : : default:;
5004 : : }
5005 : : break;
5006 : : }
5007 : : default:;
5008 : : }
5009 : : break;
5010 : : }
5011 : : default:;
5012 : : }
5013 : : break;
5014 : : }
5015 : 1520 : case BIT_XOR_EXPR:
5016 : 1520 : {
5017 : 1520 : tree _q20 = TREE_OPERAND (_p0, 0);
5018 : 1520 : tree _q21 = TREE_OPERAND (_p0, 1);
5019 : 1520 : switch (TREE_CODE (_p1))
5020 : : {
5021 : 0 : case BIT_AND_EXPR:
5022 : 0 : {
5023 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
5024 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
5025 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5026 : : {
5027 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5028 : : {
5029 : 0 : {
5030 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5031 : 0 : tree res = generic_simplify_9 (loc, type, _p0, _p1, captures, PLUS_EXPR);
5032 : 0 : if (res) return res;
5033 : : }
5034 : : }
5035 : : }
5036 : : break;
5037 : : }
5038 : : default:;
5039 : : }
5040 : : break;
5041 : : }
5042 : 552 : case BIT_IOR_EXPR:
5043 : 552 : {
5044 : 552 : tree _q20 = TREE_OPERAND (_p0, 0);
5045 : 552 : tree _q21 = TREE_OPERAND (_p0, 1);
5046 : 552 : switch (TREE_CODE (_p1))
5047 : : {
5048 : 0 : case BIT_AND_EXPR:
5049 : 0 : {
5050 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
5051 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
5052 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5053 : : {
5054 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5055 : : {
5056 : 0 : {
5057 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5058 : 0 : tree res = generic_simplify_10 (loc, type, _p0, _p1, captures);
5059 : 0 : if (res) return res;
5060 : : }
5061 : : }
5062 : : }
5063 : : break;
5064 : : }
5065 : : default:;
5066 : : }
5067 : : break;
5068 : : }
5069 : 2009005 : case MINUS_EXPR:
5070 : 2009005 : {
5071 : 2009005 : tree _q20 = TREE_OPERAND (_p0, 0);
5072 : 2009005 : tree _q21 = TREE_OPERAND (_p0, 1);
5073 : 2009005 : switch (TREE_CODE (_q20))
5074 : : {
5075 : 2 : case BIT_AND_EXPR:
5076 : 2 : {
5077 : 2 : tree _q30 = TREE_OPERAND (_q20, 0);
5078 : 2 : tree _q31 = TREE_OPERAND (_q20, 1);
5079 : 2 : switch (TREE_CODE (_q21))
5080 : : {
5081 : 1 : case BIT_IOR_EXPR:
5082 : 1 : {
5083 : 1 : tree _q60 = TREE_OPERAND (_q21, 0);
5084 : 1 : tree _q61 = TREE_OPERAND (_q21, 1);
5085 : 1 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
5086 : : {
5087 : 1 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
5088 : : {
5089 : 1 : if (integer_all_onesp (_p1))
5090 : : {
5091 : 1 : {
5092 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q31 };
5093 : 1 : tree res = generic_simplify_12 (loc, type, _p0, _p1, captures);
5094 : 1 : if (res) return res;
5095 : : }
5096 : : }
5097 : : }
5098 : : }
5099 : 0 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q31, 0) && types_match (_q60, _q31)))
5100 : : {
5101 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
5102 : : {
5103 : 0 : if (integer_all_onesp (_p1))
5104 : : {
5105 : 0 : {
5106 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q31, _q30 };
5107 : 0 : tree res = generic_simplify_12 (loc, type, _p0, _p1, captures);
5108 : 0 : if (res) return res;
5109 : : }
5110 : : }
5111 : : }
5112 : : }
5113 : : break;
5114 : : }
5115 : : default:;
5116 : : }
5117 : : break;
5118 : : }
5119 : 2009004 : default:;
5120 : : }
5121 : 2009004 : {
5122 : 2009004 : tree _q20_pops[1];
5123 : 2009004 : if (tree_nop_convert (_q20, _q20_pops))
5124 : : {
5125 : 881533 : tree _q30 = _q20_pops[0];
5126 : 881533 : switch (TREE_CODE (_q30))
5127 : : {
5128 : 0 : case BIT_AND_EXPR:
5129 : 0 : {
5130 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
5131 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
5132 : 0 : {
5133 : 0 : tree _q21_pops[1];
5134 : 0 : if (tree_nop_convert (_q21, _q21_pops))
5135 : : {
5136 : 0 : tree _q70 = _q21_pops[0];
5137 : 0 : switch (TREE_CODE (_q70))
5138 : : {
5139 : 0 : case BIT_IOR_EXPR:
5140 : 0 : {
5141 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
5142 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
5143 : 0 : if ((_q80 == _q40 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q40, 0) && types_match (_q80, _q40)))
5144 : : {
5145 : 0 : if ((_q81 == _q41 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q41, 0) && types_match (_q81, _q41)))
5146 : : {
5147 : 0 : if (integer_all_onesp (_p1))
5148 : : {
5149 : 0 : {
5150 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q40, _q41 };
5151 : 0 : tree res = generic_simplify_12 (loc, type, _p0, _p1, captures);
5152 : 0 : if (res) return res;
5153 : : }
5154 : : }
5155 : : }
5156 : : }
5157 : 0 : if ((_q80 == _q41 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q41, 0) && types_match (_q80, _q41)))
5158 : : {
5159 : 0 : if ((_q81 == _q40 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q40, 0) && types_match (_q81, _q40)))
5160 : : {
5161 : 0 : if (integer_all_onesp (_p1))
5162 : : {
5163 : 0 : {
5164 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q41, _q40 };
5165 : 0 : tree res = generic_simplify_12 (loc, type, _p0, _p1, captures);
5166 : 0 : if (res) return res;
5167 : : }
5168 : : }
5169 : : }
5170 : : }
5171 : : break;
5172 : : }
5173 : : default:;
5174 : : }
5175 : : }
5176 : : }
5177 : 0 : break;
5178 : : }
5179 : : default:;
5180 : : }
5181 : : }
5182 : : }
5183 : 2009004 : {
5184 : 2009004 : tree _q21_pops[1];
5185 : 2009004 : if (tree_nop_convert (_q21, _q21_pops))
5186 : : {
5187 : 1107847 : tree _q40 = _q21_pops[0];
5188 : 1107847 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
5189 : : {
5190 : 66 : {
5191 : 66 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
5192 : 66 : tree res = generic_simplify_13 (loc, type, _p0, _p1, captures);
5193 : 66 : if (res) return res;
5194 : : }
5195 : : }
5196 : : }
5197 : : }
5198 : 2008942 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
5199 : : {
5200 : 47731 : {
5201 : 47731 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5202 : 47731 : tree res = generic_simplify_13 (loc, type, _p0, _p1, captures);
5203 : 47731 : if (res) return res;
5204 : : }
5205 : : }
5206 : : break;
5207 : : }
5208 : 18101493 : CASE_CONVERT:
5209 : 18101493 : {
5210 : 18101493 : tree _q20 = TREE_OPERAND (_p0, 0);
5211 : 18101493 : switch (TREE_CODE (_q20))
5212 : : {
5213 : 72 : case BIT_AND_EXPR:
5214 : 72 : {
5215 : 72 : tree _q30 = TREE_OPERAND (_q20, 0);
5216 : 72 : tree _q31 = TREE_OPERAND (_q20, 1);
5217 : 72 : switch (TREE_CODE (_q31))
5218 : : {
5219 : 8 : case INTEGER_CST:
5220 : 8 : {
5221 : 8 : switch (TREE_CODE (_p1))
5222 : : {
5223 : 0 : CASE_CONVERT:
5224 : 0 : {
5225 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
5226 : 0 : switch (TREE_CODE (_q60))
5227 : : {
5228 : 0 : case BIT_AND_EXPR:
5229 : 0 : {
5230 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
5231 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
5232 : 0 : switch (TREE_CODE (_q71))
5233 : : {
5234 : 0 : case INTEGER_CST:
5235 : 0 : {
5236 : 0 : {
5237 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q60, _q70, _q71 };
5238 : 0 : tree res = generic_simplify_11 (loc, type, _p0, _p1, captures, PLUS_EXPR);
5239 : 0 : if (res) return res;
5240 : : }
5241 : 0 : break;
5242 : : }
5243 : : default:;
5244 : : }
5245 : : break;
5246 : : }
5247 : : default:;
5248 : : }
5249 : : break;
5250 : : }
5251 : 0 : case BIT_AND_EXPR:
5252 : 0 : {
5253 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
5254 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
5255 : 0 : switch (TREE_CODE (_q61))
5256 : : {
5257 : 0 : case INTEGER_CST:
5258 : 0 : {
5259 : 0 : {
5260 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _p1, _q60, _q61 };
5261 : 0 : tree res = generic_simplify_11 (loc, type, _p0, _p1, captures, PLUS_EXPR);
5262 : 0 : if (res) return res;
5263 : : }
5264 : 0 : break;
5265 : : }
5266 : : default:;
5267 : : }
5268 : : break;
5269 : : }
5270 : : default:;
5271 : : }
5272 : : break;
5273 : : }
5274 : : default:;
5275 : : }
5276 : : break;
5277 : : }
5278 : 4588 : case NEGATE_EXPR:
5279 : 4588 : {
5280 : 4588 : tree _q30 = TREE_OPERAND (_q20, 0);
5281 : 4588 : {
5282 : 4588 : tree captures[2] ATTRIBUTE_UNUSED = { _p1, _q30 };
5283 : 4588 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures);
5284 : 4588 : if (res) return res;
5285 : : }
5286 : 1702 : break;
5287 : : }
5288 : : default:;
5289 : : }
5290 : : break;
5291 : : }
5292 : 124551 : case COND_EXPR:
5293 : 124551 : {
5294 : 124551 : tree _q20 = TREE_OPERAND (_p0, 0);
5295 : 124551 : tree _q21 = TREE_OPERAND (_p0, 1);
5296 : 124551 : tree _q22 = TREE_OPERAND (_p0, 2);
5297 : 124551 : if (integer_zerop (_q22))
5298 : : {
5299 : 115792 : switch (TREE_CODE (_p1))
5300 : : {
5301 : 44 : case COND_EXPR:
5302 : 44 : {
5303 : 44 : tree _q60 = TREE_OPERAND (_p1, 0);
5304 : 44 : tree _q61 = TREE_OPERAND (_p1, 1);
5305 : 44 : tree _q62 = TREE_OPERAND (_p1, 2);
5306 : 44 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
5307 : : {
5308 : 6 : if (integer_zerop (_q61))
5309 : : {
5310 : 0 : {
5311 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q62 };
5312 : 0 : const enum tree_code op = PLUS_EXPR;
5313 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1302;
5314 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1302;
5315 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1302;
5316 : 0 : {
5317 : 0 : tree res_op0;
5318 : 0 : res_op0 = captures[1];
5319 : 0 : tree res_op1;
5320 : 0 : res_op1 = captures[2];
5321 : 0 : tree res_op2;
5322 : 0 : res_op2 = captures[4];
5323 : 0 : tree _r;
5324 : 0 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
5325 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 914, __FILE__, __LINE__, true);
5326 : 0 : return _r;
5327 : : }
5328 : 0 : next_after_fail1302:;
5329 : : }
5330 : : }
5331 : : }
5332 : : break;
5333 : : }
5334 : : default:;
5335 : : }
5336 : : }
5337 : 124551 : if (integer_zerop (_q21))
5338 : : {
5339 : 1003 : switch (TREE_CODE (_p1))
5340 : : {
5341 : 0 : case COND_EXPR:
5342 : 0 : {
5343 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
5344 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
5345 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
5346 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
5347 : : {
5348 : 0 : if (integer_zerop (_q62))
5349 : : {
5350 : 0 : {
5351 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q20, _q61, _p0, _q22 };
5352 : 0 : const enum tree_code op = PLUS_EXPR;
5353 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1303;
5354 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1303;
5355 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1303;
5356 : 0 : {
5357 : 0 : tree res_op0;
5358 : 0 : res_op0 = captures[1];
5359 : 0 : tree res_op1;
5360 : 0 : res_op1 = captures[2];
5361 : 0 : tree res_op2;
5362 : 0 : res_op2 = captures[4];
5363 : 0 : tree _r;
5364 : 0 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
5365 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 914, __FILE__, __LINE__, true);
5366 : 0 : return _r;
5367 : : }
5368 : 0 : next_after_fail1303:;
5369 : : }
5370 : : }
5371 : : }
5372 : : break;
5373 : : }
5374 : : default:;
5375 : : }
5376 : : }
5377 : 124551 : switch (TREE_CODE (_q20))
5378 : : {
5379 : 29663 : case LT_EXPR:
5380 : 29663 : {
5381 : 29663 : tree _q30 = TREE_OPERAND (_q20, 0);
5382 : 29663 : tree _q31 = TREE_OPERAND (_q20, 1);
5383 : 29663 : if (zerop (_q22))
5384 : : {
5385 : 29601 : switch (TREE_CODE (_p1))
5386 : : {
5387 : 0 : case COND_EXPR:
5388 : 0 : {
5389 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
5390 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
5391 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
5392 : 0 : switch (TREE_CODE (_q80))
5393 : : {
5394 : 0 : case GE_EXPR:
5395 : 0 : {
5396 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5397 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5398 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5399 : : {
5400 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5401 : : {
5402 : 0 : if (zerop (_q82))
5403 : : {
5404 : 0 : {
5405 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
5406 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, PLUS_EXPR, LT_EXPR, GE_EXPR);
5407 : 0 : if (res) return res;
5408 : : }
5409 : : }
5410 : : }
5411 : : }
5412 : : break;
5413 : : }
5414 : : default:;
5415 : : }
5416 : : break;
5417 : : }
5418 : : default:;
5419 : : }
5420 : : }
5421 : : break;
5422 : : }
5423 : 30894 : case LE_EXPR:
5424 : 30894 : {
5425 : 30894 : tree _q30 = TREE_OPERAND (_q20, 0);
5426 : 30894 : tree _q31 = TREE_OPERAND (_q20, 1);
5427 : 30894 : if (zerop (_q22))
5428 : : {
5429 : 30612 : switch (TREE_CODE (_p1))
5430 : : {
5431 : 5 : case COND_EXPR:
5432 : 5 : {
5433 : 5 : tree _q80 = TREE_OPERAND (_p1, 0);
5434 : 5 : tree _q81 = TREE_OPERAND (_p1, 1);
5435 : 5 : tree _q82 = TREE_OPERAND (_p1, 2);
5436 : 5 : switch (TREE_CODE (_q80))
5437 : : {
5438 : 0 : case GT_EXPR:
5439 : 0 : {
5440 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5441 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5442 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5443 : : {
5444 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5445 : : {
5446 : 0 : if (zerop (_q82))
5447 : : {
5448 : 0 : {
5449 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
5450 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, PLUS_EXPR, LE_EXPR, GT_EXPR);
5451 : 0 : if (res) return res;
5452 : : }
5453 : : }
5454 : : }
5455 : : }
5456 : : break;
5457 : : }
5458 : : default:;
5459 : : }
5460 : : break;
5461 : : }
5462 : : default:;
5463 : : }
5464 : : }
5465 : : break;
5466 : : }
5467 : 1048 : case EQ_EXPR:
5468 : 1048 : {
5469 : 1048 : tree _q30 = TREE_OPERAND (_q20, 0);
5470 : 1048 : tree _q31 = TREE_OPERAND (_q20, 1);
5471 : 1048 : if (zerop (_q22))
5472 : : {
5473 : 567 : switch (TREE_CODE (_p1))
5474 : : {
5475 : 32 : case COND_EXPR:
5476 : 32 : {
5477 : 32 : tree _q80 = TREE_OPERAND (_p1, 0);
5478 : 32 : tree _q81 = TREE_OPERAND (_p1, 1);
5479 : 32 : tree _q82 = TREE_OPERAND (_p1, 2);
5480 : 32 : switch (TREE_CODE (_q80))
5481 : : {
5482 : 0 : case NE_EXPR:
5483 : 0 : {
5484 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5485 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5486 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5487 : : {
5488 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5489 : : {
5490 : 0 : if (zerop (_q82))
5491 : : {
5492 : 0 : {
5493 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
5494 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, PLUS_EXPR, EQ_EXPR, NE_EXPR);
5495 : 0 : if (res) return res;
5496 : : }
5497 : : }
5498 : : }
5499 : : }
5500 : : break;
5501 : : }
5502 : : default:;
5503 : : }
5504 : : break;
5505 : : }
5506 : : default:;
5507 : : }
5508 : : }
5509 : : break;
5510 : : }
5511 : 7746 : case NE_EXPR:
5512 : 7746 : {
5513 : 7746 : tree _q30 = TREE_OPERAND (_q20, 0);
5514 : 7746 : tree _q31 = TREE_OPERAND (_q20, 1);
5515 : 7746 : if (zerop (_q22))
5516 : : {
5517 : 5149 : switch (TREE_CODE (_p1))
5518 : : {
5519 : 7 : case COND_EXPR:
5520 : 7 : {
5521 : 7 : tree _q80 = TREE_OPERAND (_p1, 0);
5522 : 7 : tree _q81 = TREE_OPERAND (_p1, 1);
5523 : 7 : tree _q82 = TREE_OPERAND (_p1, 2);
5524 : 7 : switch (TREE_CODE (_q80))
5525 : : {
5526 : 0 : case EQ_EXPR:
5527 : 0 : {
5528 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5529 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5530 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5531 : : {
5532 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5533 : : {
5534 : 0 : if (zerop (_q82))
5535 : : {
5536 : 0 : {
5537 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
5538 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, PLUS_EXPR, NE_EXPR, EQ_EXPR);
5539 : 0 : if (res) return res;
5540 : : }
5541 : : }
5542 : : }
5543 : : }
5544 : : break;
5545 : : }
5546 : : default:;
5547 : : }
5548 : : break;
5549 : : }
5550 : : default:;
5551 : : }
5552 : : }
5553 : : break;
5554 : : }
5555 : 20137 : case GE_EXPR:
5556 : 20137 : {
5557 : 20137 : tree _q30 = TREE_OPERAND (_q20, 0);
5558 : 20137 : tree _q31 = TREE_OPERAND (_q20, 1);
5559 : 20137 : if (zerop (_q22))
5560 : : {
5561 : 18862 : switch (TREE_CODE (_p1))
5562 : : {
5563 : 0 : case COND_EXPR:
5564 : 0 : {
5565 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
5566 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
5567 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
5568 : 0 : switch (TREE_CODE (_q80))
5569 : : {
5570 : 0 : case LT_EXPR:
5571 : 0 : {
5572 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5573 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5574 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5575 : : {
5576 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5577 : : {
5578 : 0 : if (zerop (_q82))
5579 : : {
5580 : 0 : {
5581 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
5582 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, PLUS_EXPR, GE_EXPR, LT_EXPR);
5583 : 0 : if (res) return res;
5584 : : }
5585 : : }
5586 : : }
5587 : : }
5588 : : break;
5589 : : }
5590 : : default:;
5591 : : }
5592 : : break;
5593 : : }
5594 : : default:;
5595 : : }
5596 : : }
5597 : : break;
5598 : : }
5599 : 28341 : case GT_EXPR:
5600 : 28341 : {
5601 : 28341 : tree _q30 = TREE_OPERAND (_q20, 0);
5602 : 28341 : tree _q31 = TREE_OPERAND (_q20, 1);
5603 : 28341 : if (zerop (_q22))
5604 : : {
5605 : 28312 : switch (TREE_CODE (_p1))
5606 : : {
5607 : 0 : case COND_EXPR:
5608 : 0 : {
5609 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
5610 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
5611 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
5612 : 0 : switch (TREE_CODE (_q80))
5613 : : {
5614 : 0 : case LE_EXPR:
5615 : 0 : {
5616 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5617 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5618 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5619 : : {
5620 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5621 : : {
5622 : 0 : if (zerop (_q82))
5623 : : {
5624 : 0 : {
5625 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
5626 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, PLUS_EXPR, GT_EXPR, LE_EXPR);
5627 : 0 : if (res) return res;
5628 : : }
5629 : : }
5630 : : }
5631 : : }
5632 : : break;
5633 : : }
5634 : : default:;
5635 : : }
5636 : : break;
5637 : : }
5638 : : default:;
5639 : : }
5640 : : }
5641 : : break;
5642 : : }
5643 : 0 : case UNORDERED_EXPR:
5644 : 0 : {
5645 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
5646 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
5647 : 0 : if (zerop (_q22))
5648 : : {
5649 : 0 : switch (TREE_CODE (_p1))
5650 : : {
5651 : 0 : case COND_EXPR:
5652 : 0 : {
5653 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
5654 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
5655 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
5656 : 0 : switch (TREE_CODE (_q80))
5657 : : {
5658 : 0 : case ORDERED_EXPR:
5659 : 0 : {
5660 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5661 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5662 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5663 : : {
5664 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5665 : : {
5666 : 0 : if (zerop (_q82))
5667 : : {
5668 : 0 : {
5669 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
5670 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, PLUS_EXPR, UNORDERED_EXPR, ORDERED_EXPR);
5671 : 0 : if (res) return res;
5672 : : }
5673 : : }
5674 : : }
5675 : : }
5676 : : break;
5677 : : }
5678 : : default:;
5679 : : }
5680 : : break;
5681 : : }
5682 : : default:;
5683 : : }
5684 : : }
5685 : : break;
5686 : : }
5687 : 0 : case ORDERED_EXPR:
5688 : 0 : {
5689 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
5690 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
5691 : 0 : if (zerop (_q22))
5692 : : {
5693 : 0 : switch (TREE_CODE (_p1))
5694 : : {
5695 : 0 : case COND_EXPR:
5696 : 0 : {
5697 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
5698 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
5699 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
5700 : 0 : switch (TREE_CODE (_q80))
5701 : : {
5702 : 0 : case UNORDERED_EXPR:
5703 : 0 : {
5704 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5705 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5706 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5707 : : {
5708 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5709 : : {
5710 : 0 : if (zerop (_q82))
5711 : : {
5712 : 0 : {
5713 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
5714 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, PLUS_EXPR, ORDERED_EXPR, UNORDERED_EXPR);
5715 : 0 : if (res) return res;
5716 : : }
5717 : : }
5718 : : }
5719 : : }
5720 : : break;
5721 : : }
5722 : : default:;
5723 : : }
5724 : : break;
5725 : : }
5726 : : default:;
5727 : : }
5728 : : }
5729 : : break;
5730 : : }
5731 : 0 : case UNLT_EXPR:
5732 : 0 : {
5733 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
5734 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
5735 : 0 : if (zerop (_q22))
5736 : : {
5737 : 0 : switch (TREE_CODE (_p1))
5738 : : {
5739 : 0 : case COND_EXPR:
5740 : 0 : {
5741 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
5742 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
5743 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
5744 : 0 : switch (TREE_CODE (_q80))
5745 : : {
5746 : 0 : case GE_EXPR:
5747 : 0 : {
5748 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5749 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5750 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5751 : : {
5752 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5753 : : {
5754 : 0 : if (zerop (_q82))
5755 : : {
5756 : 0 : {
5757 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
5758 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, PLUS_EXPR, UNLT_EXPR, GE_EXPR);
5759 : 0 : if (res) return res;
5760 : : }
5761 : : }
5762 : : }
5763 : : }
5764 : : break;
5765 : : }
5766 : : default:;
5767 : : }
5768 : : break;
5769 : : }
5770 : : default:;
5771 : : }
5772 : : }
5773 : : break;
5774 : : }
5775 : 0 : case UNLE_EXPR:
5776 : 0 : {
5777 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
5778 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
5779 : 0 : if (zerop (_q22))
5780 : : {
5781 : 0 : switch (TREE_CODE (_p1))
5782 : : {
5783 : 0 : case COND_EXPR:
5784 : 0 : {
5785 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
5786 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
5787 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
5788 : 0 : switch (TREE_CODE (_q80))
5789 : : {
5790 : 0 : case GT_EXPR:
5791 : 0 : {
5792 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5793 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5794 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5795 : : {
5796 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5797 : : {
5798 : 0 : if (zerop (_q82))
5799 : : {
5800 : 0 : {
5801 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
5802 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, PLUS_EXPR, UNLE_EXPR, GT_EXPR);
5803 : 0 : if (res) return res;
5804 : : }
5805 : : }
5806 : : }
5807 : : }
5808 : : break;
5809 : : }
5810 : : default:;
5811 : : }
5812 : : break;
5813 : : }
5814 : : default:;
5815 : : }
5816 : : }
5817 : : break;
5818 : : }
5819 : 0 : case UNGT_EXPR:
5820 : 0 : {
5821 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
5822 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
5823 : 0 : if (zerop (_q22))
5824 : : {
5825 : 0 : switch (TREE_CODE (_p1))
5826 : : {
5827 : 0 : case COND_EXPR:
5828 : 0 : {
5829 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
5830 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
5831 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
5832 : 0 : switch (TREE_CODE (_q80))
5833 : : {
5834 : 0 : case LE_EXPR:
5835 : 0 : {
5836 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5837 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5838 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5839 : : {
5840 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5841 : : {
5842 : 0 : if (zerop (_q82))
5843 : : {
5844 : 0 : {
5845 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
5846 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, PLUS_EXPR, UNGT_EXPR, LE_EXPR);
5847 : 0 : if (res) return res;
5848 : : }
5849 : : }
5850 : : }
5851 : : }
5852 : : break;
5853 : : }
5854 : : default:;
5855 : : }
5856 : : break;
5857 : : }
5858 : : default:;
5859 : : }
5860 : : }
5861 : : break;
5862 : : }
5863 : 0 : case UNGE_EXPR:
5864 : 0 : {
5865 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
5866 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
5867 : 0 : if (zerop (_q22))
5868 : : {
5869 : 0 : switch (TREE_CODE (_p1))
5870 : : {
5871 : 0 : case COND_EXPR:
5872 : 0 : {
5873 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
5874 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
5875 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
5876 : 0 : switch (TREE_CODE (_q80))
5877 : : {
5878 : 0 : case LT_EXPR:
5879 : 0 : {
5880 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5881 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5882 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5883 : : {
5884 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5885 : : {
5886 : 0 : if (zerop (_q82))
5887 : : {
5888 : 0 : {
5889 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
5890 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, PLUS_EXPR, UNGE_EXPR, LT_EXPR);
5891 : 0 : if (res) return res;
5892 : : }
5893 : : }
5894 : : }
5895 : : }
5896 : : break;
5897 : : }
5898 : : default:;
5899 : : }
5900 : : break;
5901 : : }
5902 : : default:;
5903 : : }
5904 : : }
5905 : : break;
5906 : : }
5907 : 0 : case UNEQ_EXPR:
5908 : 0 : {
5909 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
5910 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
5911 : 0 : if (zerop (_q22))
5912 : : {
5913 : 0 : switch (TREE_CODE (_p1))
5914 : : {
5915 : 0 : case COND_EXPR:
5916 : 0 : {
5917 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
5918 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
5919 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
5920 : 0 : switch (TREE_CODE (_q80))
5921 : : {
5922 : 0 : case LTGT_EXPR:
5923 : 0 : {
5924 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5925 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5926 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5927 : : {
5928 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5929 : : {
5930 : 0 : if (zerop (_q82))
5931 : : {
5932 : 0 : {
5933 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
5934 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, PLUS_EXPR, UNEQ_EXPR, LTGT_EXPR);
5935 : 0 : if (res) return res;
5936 : : }
5937 : : }
5938 : : }
5939 : : }
5940 : : break;
5941 : : }
5942 : : default:;
5943 : : }
5944 : : break;
5945 : : }
5946 : : default:;
5947 : : }
5948 : : }
5949 : : break;
5950 : : }
5951 : 0 : case LTGT_EXPR:
5952 : 0 : {
5953 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
5954 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
5955 : 0 : if (zerop (_q22))
5956 : : {
5957 : 0 : switch (TREE_CODE (_p1))
5958 : : {
5959 : 0 : case COND_EXPR:
5960 : 0 : {
5961 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
5962 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
5963 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
5964 : 0 : switch (TREE_CODE (_q80))
5965 : : {
5966 : 0 : case UNEQ_EXPR:
5967 : 0 : {
5968 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5969 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5970 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5971 : : {
5972 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5973 : : {
5974 : 0 : if (zerop (_q82))
5975 : : {
5976 : 0 : {
5977 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
5978 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, PLUS_EXPR, LTGT_EXPR, UNEQ_EXPR);
5979 : 0 : if (res) return res;
5980 : : }
5981 : : }
5982 : : }
5983 : : }
5984 : : break;
5985 : : }
5986 : : default:;
5987 : : }
5988 : : break;
5989 : : }
5990 : : default:;
5991 : : }
5992 : : }
5993 : : break;
5994 : : }
5995 : : default:;
5996 : : }
5997 : : break;
5998 : : }
5999 : 168 : case VEC_COND_EXPR:
6000 : 168 : {
6001 : 168 : tree _q20 = TREE_OPERAND (_p0, 0);
6002 : 168 : tree _q21 = TREE_OPERAND (_p0, 1);
6003 : 168 : tree _q22 = TREE_OPERAND (_p0, 2);
6004 : 168 : if (integer_zerop (_q22))
6005 : : {
6006 : 106 : switch (TREE_CODE (_p1))
6007 : : {
6008 : 24 : case VEC_COND_EXPR:
6009 : 24 : {
6010 : 24 : tree _q60 = TREE_OPERAND (_p1, 0);
6011 : 24 : tree _q61 = TREE_OPERAND (_p1, 1);
6012 : 24 : tree _q62 = TREE_OPERAND (_p1, 2);
6013 : 24 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
6014 : : {
6015 : 0 : if (integer_zerop (_q61))
6016 : : {
6017 : 0 : {
6018 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q62 };
6019 : 0 : const enum tree_code op = PLUS_EXPR;
6020 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1304;
6021 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1304;
6022 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1304;
6023 : 0 : {
6024 : 0 : tree res_op0;
6025 : 0 : res_op0 = captures[1];
6026 : 0 : tree res_op1;
6027 : 0 : res_op1 = captures[2];
6028 : 0 : tree res_op2;
6029 : 0 : res_op2 = captures[4];
6030 : 0 : tree _r;
6031 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
6032 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 914, __FILE__, __LINE__, true);
6033 : 0 : return _r;
6034 : : }
6035 : 0 : next_after_fail1304:;
6036 : : }
6037 : : }
6038 : : }
6039 : : break;
6040 : : }
6041 : : default:;
6042 : : }
6043 : : }
6044 : 168 : if (integer_zerop (_q21))
6045 : : {
6046 : 0 : switch (TREE_CODE (_p1))
6047 : : {
6048 : 0 : case VEC_COND_EXPR:
6049 : 0 : {
6050 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
6051 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
6052 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
6053 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
6054 : : {
6055 : 0 : if (integer_zerop (_q62))
6056 : : {
6057 : 0 : {
6058 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q20, _q61, _p0, _q22 };
6059 : 0 : const enum tree_code op = PLUS_EXPR;
6060 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1305;
6061 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1305;
6062 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1305;
6063 : 0 : {
6064 : 0 : tree res_op0;
6065 : 0 : res_op0 = captures[1];
6066 : 0 : tree res_op1;
6067 : 0 : res_op1 = captures[2];
6068 : 0 : tree res_op2;
6069 : 0 : res_op2 = captures[4];
6070 : 0 : tree _r;
6071 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
6072 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 914, __FILE__, __LINE__, true);
6073 : 0 : return _r;
6074 : : }
6075 : 0 : next_after_fail1305:;
6076 : : }
6077 : : }
6078 : : }
6079 : : break;
6080 : : }
6081 : : default:;
6082 : : }
6083 : : }
6084 : 168 : switch (TREE_CODE (_q20))
6085 : : {
6086 : 8 : case LT_EXPR:
6087 : 8 : {
6088 : 8 : tree _q30 = TREE_OPERAND (_q20, 0);
6089 : 8 : tree _q31 = TREE_OPERAND (_q20, 1);
6090 : 8 : if (integer_zerop (_q22))
6091 : : {
6092 : 8 : switch (TREE_CODE (_p1))
6093 : : {
6094 : 0 : case VEC_COND_EXPR:
6095 : 0 : {
6096 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
6097 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
6098 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
6099 : 0 : switch (TREE_CODE (_q80))
6100 : : {
6101 : 0 : case GE_EXPR:
6102 : 0 : {
6103 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
6104 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
6105 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
6106 : : {
6107 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
6108 : : {
6109 : 0 : if (integer_zerop (_q82))
6110 : : {
6111 : 0 : {
6112 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
6113 : 0 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, PLUS_EXPR, LT_EXPR, GE_EXPR);
6114 : 0 : if (res) return res;
6115 : : }
6116 : : }
6117 : : }
6118 : : }
6119 : : break;
6120 : : }
6121 : : default:;
6122 : : }
6123 : : break;
6124 : : }
6125 : : default:;
6126 : : }
6127 : : }
6128 : : break;
6129 : : }
6130 : 8 : case LE_EXPR:
6131 : 8 : {
6132 : 8 : tree _q30 = TREE_OPERAND (_q20, 0);
6133 : 8 : tree _q31 = TREE_OPERAND (_q20, 1);
6134 : 8 : if (integer_zerop (_q22))
6135 : : {
6136 : 8 : switch (TREE_CODE (_p1))
6137 : : {
6138 : 0 : case VEC_COND_EXPR:
6139 : 0 : {
6140 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
6141 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
6142 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
6143 : 0 : switch (TREE_CODE (_q80))
6144 : : {
6145 : 0 : case GT_EXPR:
6146 : 0 : {
6147 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
6148 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
6149 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
6150 : : {
6151 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
6152 : : {
6153 : 0 : if (integer_zerop (_q82))
6154 : : {
6155 : 0 : {
6156 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
6157 : 0 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, PLUS_EXPR, LE_EXPR, GT_EXPR);
6158 : 0 : if (res) return res;
6159 : : }
6160 : : }
6161 : : }
6162 : : }
6163 : : break;
6164 : : }
6165 : : default:;
6166 : : }
6167 : : break;
6168 : : }
6169 : : default:;
6170 : : }
6171 : : }
6172 : : break;
6173 : : }
6174 : 34 : case EQ_EXPR:
6175 : 34 : {
6176 : 34 : tree _q30 = TREE_OPERAND (_q20, 0);
6177 : 34 : tree _q31 = TREE_OPERAND (_q20, 1);
6178 : 34 : if (integer_zerop (_q22))
6179 : : {
6180 : 34 : switch (TREE_CODE (_p1))
6181 : : {
6182 : 24 : case VEC_COND_EXPR:
6183 : 24 : {
6184 : 24 : tree _q80 = TREE_OPERAND (_p1, 0);
6185 : 24 : tree _q81 = TREE_OPERAND (_p1, 1);
6186 : 24 : tree _q82 = TREE_OPERAND (_p1, 2);
6187 : 24 : switch (TREE_CODE (_q80))
6188 : : {
6189 : 24 : case NE_EXPR:
6190 : 24 : {
6191 : 24 : tree _q90 = TREE_OPERAND (_q80, 0);
6192 : 24 : tree _q91 = TREE_OPERAND (_q80, 1);
6193 : 24 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
6194 : : {
6195 : 24 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
6196 : : {
6197 : 24 : if (integer_zerop (_q82))
6198 : : {
6199 : 24 : {
6200 : 24 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
6201 : 24 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, PLUS_EXPR, EQ_EXPR, NE_EXPR);
6202 : 24 : if (res) return res;
6203 : : }
6204 : : }
6205 : : }
6206 : : }
6207 : : break;
6208 : : }
6209 : : default:;
6210 : : }
6211 : : break;
6212 : : }
6213 : : default:;
6214 : : }
6215 : : }
6216 : : break;
6217 : : }
6218 : 22 : case NE_EXPR:
6219 : 22 : {
6220 : 22 : tree _q30 = TREE_OPERAND (_q20, 0);
6221 : 22 : tree _q31 = TREE_OPERAND (_q20, 1);
6222 : 22 : if (integer_zerop (_q22))
6223 : : {
6224 : 8 : switch (TREE_CODE (_p1))
6225 : : {
6226 : 0 : case VEC_COND_EXPR:
6227 : 0 : {
6228 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
6229 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
6230 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
6231 : 0 : switch (TREE_CODE (_q80))
6232 : : {
6233 : 0 : case EQ_EXPR:
6234 : 0 : {
6235 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
6236 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
6237 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
6238 : : {
6239 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
6240 : : {
6241 : 0 : if (integer_zerop (_q82))
6242 : : {
6243 : 0 : {
6244 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
6245 : 0 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, PLUS_EXPR, NE_EXPR, EQ_EXPR);
6246 : 0 : if (res) return res;
6247 : : }
6248 : : }
6249 : : }
6250 : : }
6251 : : break;
6252 : : }
6253 : : default:;
6254 : : }
6255 : : break;
6256 : : }
6257 : : default:;
6258 : : }
6259 : : }
6260 : : break;
6261 : : }
6262 : 15 : case GE_EXPR:
6263 : 15 : {
6264 : 15 : tree _q30 = TREE_OPERAND (_q20, 0);
6265 : 15 : tree _q31 = TREE_OPERAND (_q20, 1);
6266 : 15 : if (integer_zerop (_q22))
6267 : : {
6268 : 15 : switch (TREE_CODE (_p1))
6269 : : {
6270 : 0 : case VEC_COND_EXPR:
6271 : 0 : {
6272 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
6273 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
6274 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
6275 : 0 : switch (TREE_CODE (_q80))
6276 : : {
6277 : 0 : case LT_EXPR:
6278 : 0 : {
6279 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
6280 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
6281 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
6282 : : {
6283 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
6284 : : {
6285 : 0 : if (integer_zerop (_q82))
6286 : : {
6287 : 0 : {
6288 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
6289 : 0 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, PLUS_EXPR, GE_EXPR, LT_EXPR);
6290 : 0 : if (res) return res;
6291 : : }
6292 : : }
6293 : : }
6294 : : }
6295 : : break;
6296 : : }
6297 : : default:;
6298 : : }
6299 : : break;
6300 : : }
6301 : : default:;
6302 : : }
6303 : : }
6304 : : break;
6305 : : }
6306 : 81 : case GT_EXPR:
6307 : 81 : {
6308 : 81 : tree _q30 = TREE_OPERAND (_q20, 0);
6309 : 81 : tree _q31 = TREE_OPERAND (_q20, 1);
6310 : 81 : if (integer_zerop (_q22))
6311 : : {
6312 : 33 : switch (TREE_CODE (_p1))
6313 : : {
6314 : 0 : case VEC_COND_EXPR:
6315 : 0 : {
6316 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
6317 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
6318 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
6319 : 0 : switch (TREE_CODE (_q80))
6320 : : {
6321 : 0 : case LE_EXPR:
6322 : 0 : {
6323 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
6324 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
6325 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
6326 : : {
6327 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
6328 : : {
6329 : 0 : if (integer_zerop (_q82))
6330 : : {
6331 : 0 : {
6332 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
6333 : 0 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, PLUS_EXPR, GT_EXPR, LE_EXPR);
6334 : 0 : if (res) return res;
6335 : : }
6336 : : }
6337 : : }
6338 : : }
6339 : : break;
6340 : : }
6341 : : default:;
6342 : : }
6343 : : break;
6344 : : }
6345 : : default:;
6346 : : }
6347 : : }
6348 : : break;
6349 : : }
6350 : 0 : case UNORDERED_EXPR:
6351 : 0 : {
6352 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
6353 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
6354 : 0 : if (integer_zerop (_q22))
6355 : : {
6356 : 0 : switch (TREE_CODE (_p1))
6357 : : {
6358 : 0 : case VEC_COND_EXPR:
6359 : 0 : {
6360 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
6361 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
6362 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
6363 : 0 : switch (TREE_CODE (_q80))
6364 : : {
6365 : 0 : case ORDERED_EXPR:
6366 : 0 : {
6367 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
6368 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
6369 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
6370 : : {
6371 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
6372 : : {
6373 : 0 : if (integer_zerop (_q82))
6374 : : {
6375 : 0 : {
6376 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
6377 : 0 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, PLUS_EXPR, UNORDERED_EXPR, ORDERED_EXPR);
6378 : 0 : if (res) return res;
6379 : : }
6380 : : }
6381 : : }
6382 : : }
6383 : : break;
6384 : : }
6385 : : default:;
6386 : : }
6387 : : break;
6388 : : }
6389 : : default:;
6390 : : }
6391 : : }
6392 : : break;
6393 : : }
6394 : 0 : case ORDERED_EXPR:
6395 : 0 : {
6396 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
6397 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
6398 : 0 : if (integer_zerop (_q22))
6399 : : {
6400 : 0 : switch (TREE_CODE (_p1))
6401 : : {
6402 : 0 : case VEC_COND_EXPR:
6403 : 0 : {
6404 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
6405 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
6406 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
6407 : 0 : switch (TREE_CODE (_q80))
6408 : : {
6409 : 0 : case UNORDERED_EXPR:
6410 : 0 : {
6411 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
6412 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
6413 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
6414 : : {
6415 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
6416 : : {
6417 : 0 : if (integer_zerop (_q82))
6418 : : {
6419 : 0 : {
6420 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
6421 : 0 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, PLUS_EXPR, ORDERED_EXPR, UNORDERED_EXPR);
6422 : 0 : if (res) return res;
6423 : : }
6424 : : }
6425 : : }
6426 : : }
6427 : : break;
6428 : : }
6429 : : default:;
6430 : : }
6431 : : break;
6432 : : }
6433 : : default:;
6434 : : }
6435 : : }
6436 : : break;
6437 : : }
6438 : 0 : case UNLT_EXPR:
6439 : 0 : {
6440 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
6441 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
6442 : 0 : if (integer_zerop (_q22))
6443 : : {
6444 : 0 : switch (TREE_CODE (_p1))
6445 : : {
6446 : 0 : case VEC_COND_EXPR:
6447 : 0 : {
6448 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
6449 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
6450 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
6451 : 0 : switch (TREE_CODE (_q80))
6452 : : {
6453 : 0 : case GE_EXPR:
6454 : 0 : {
6455 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
6456 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
6457 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
6458 : : {
6459 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
6460 : : {
6461 : 0 : if (integer_zerop (_q82))
6462 : : {
6463 : 0 : {
6464 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
6465 : 0 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, PLUS_EXPR, UNLT_EXPR, GE_EXPR);
6466 : 0 : if (res) return res;
6467 : : }
6468 : : }
6469 : : }
6470 : : }
6471 : : break;
6472 : : }
6473 : : default:;
6474 : : }
6475 : : break;
6476 : : }
6477 : : default:;
6478 : : }
6479 : : }
6480 : : break;
6481 : : }
6482 : 0 : case UNLE_EXPR:
6483 : 0 : {
6484 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
6485 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
6486 : 0 : if (integer_zerop (_q22))
6487 : : {
6488 : 0 : switch (TREE_CODE (_p1))
6489 : : {
6490 : 0 : case VEC_COND_EXPR:
6491 : 0 : {
6492 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
6493 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
6494 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
6495 : 0 : switch (TREE_CODE (_q80))
6496 : : {
6497 : 0 : case GT_EXPR:
6498 : 0 : {
6499 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
6500 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
6501 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
6502 : : {
6503 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
6504 : : {
6505 : 0 : if (integer_zerop (_q82))
6506 : : {
6507 : 0 : {
6508 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
6509 : 0 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, PLUS_EXPR, UNLE_EXPR, GT_EXPR);
6510 : 0 : if (res) return res;
6511 : : }
6512 : : }
6513 : : }
6514 : : }
6515 : : break;
6516 : : }
6517 : : default:;
6518 : : }
6519 : : break;
6520 : : }
6521 : : default:;
6522 : : }
6523 : : }
6524 : : break;
6525 : : }
6526 : 0 : case UNGT_EXPR:
6527 : 0 : {
6528 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
6529 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
6530 : 0 : if (integer_zerop (_q22))
6531 : : {
6532 : 0 : switch (TREE_CODE (_p1))
6533 : : {
6534 : 0 : case VEC_COND_EXPR:
6535 : 0 : {
6536 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
6537 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
6538 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
6539 : 0 : switch (TREE_CODE (_q80))
6540 : : {
6541 : 0 : case LE_EXPR:
6542 : 0 : {
6543 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
6544 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
6545 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
6546 : : {
6547 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
6548 : : {
6549 : 0 : if (integer_zerop (_q82))
6550 : : {
6551 : 0 : {
6552 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
6553 : 0 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, PLUS_EXPR, UNGT_EXPR, LE_EXPR);
6554 : 0 : if (res) return res;
6555 : : }
6556 : : }
6557 : : }
6558 : : }
6559 : : break;
6560 : : }
6561 : : default:;
6562 : : }
6563 : : break;
6564 : : }
6565 : : default:;
6566 : : }
6567 : : }
6568 : : break;
6569 : : }
6570 : 0 : case UNGE_EXPR:
6571 : 0 : {
6572 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
6573 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
6574 : 0 : if (integer_zerop (_q22))
6575 : : {
6576 : 0 : switch (TREE_CODE (_p1))
6577 : : {
6578 : 0 : case VEC_COND_EXPR:
6579 : 0 : {
6580 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
6581 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
6582 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
6583 : 0 : switch (TREE_CODE (_q80))
6584 : : {
6585 : 0 : case LT_EXPR:
6586 : 0 : {
6587 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
6588 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
6589 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
6590 : : {
6591 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
6592 : : {
6593 : 0 : if (integer_zerop (_q82))
6594 : : {
6595 : 0 : {
6596 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
6597 : 0 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, PLUS_EXPR, UNGE_EXPR, LT_EXPR);
6598 : 0 : if (res) return res;
6599 : : }
6600 : : }
6601 : : }
6602 : : }
6603 : : break;
6604 : : }
6605 : : default:;
6606 : : }
6607 : : break;
6608 : : }
6609 : : default:;
6610 : : }
6611 : : }
6612 : : break;
6613 : : }
6614 : 0 : case UNEQ_EXPR:
6615 : 0 : {
6616 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
6617 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
6618 : 0 : if (integer_zerop (_q22))
6619 : : {
6620 : 0 : switch (TREE_CODE (_p1))
6621 : : {
6622 : 0 : case VEC_COND_EXPR:
6623 : 0 : {
6624 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
6625 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
6626 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
6627 : 0 : switch (TREE_CODE (_q80))
6628 : : {
6629 : 0 : case LTGT_EXPR:
6630 : 0 : {
6631 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
6632 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
6633 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
6634 : : {
6635 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
6636 : : {
6637 : 0 : if (integer_zerop (_q82))
6638 : : {
6639 : 0 : {
6640 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
6641 : 0 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, PLUS_EXPR, UNEQ_EXPR, LTGT_EXPR);
6642 : 0 : if (res) return res;
6643 : : }
6644 : : }
6645 : : }
6646 : : }
6647 : : break;
6648 : : }
6649 : : default:;
6650 : : }
6651 : : break;
6652 : : }
6653 : : default:;
6654 : : }
6655 : : }
6656 : : break;
6657 : : }
6658 : 0 : case LTGT_EXPR:
6659 : 0 : {
6660 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
6661 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
6662 : 0 : if (integer_zerop (_q22))
6663 : : {
6664 : 0 : switch (TREE_CODE (_p1))
6665 : : {
6666 : 0 : case VEC_COND_EXPR:
6667 : 0 : {
6668 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
6669 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
6670 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
6671 : 0 : switch (TREE_CODE (_q80))
6672 : : {
6673 : 0 : case UNEQ_EXPR:
6674 : 0 : {
6675 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
6676 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
6677 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
6678 : : {
6679 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
6680 : : {
6681 : 0 : if (integer_zerop (_q82))
6682 : : {
6683 : 0 : {
6684 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
6685 : 0 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, PLUS_EXPR, LTGT_EXPR, UNEQ_EXPR);
6686 : 0 : if (res) return res;
6687 : : }
6688 : : }
6689 : : }
6690 : : }
6691 : : break;
6692 : : }
6693 : : default:;
6694 : : }
6695 : : break;
6696 : : }
6697 : : default:;
6698 : : }
6699 : : }
6700 : : break;
6701 : : }
6702 : : default:;
6703 : : }
6704 : : break;
6705 : : }
6706 : 67833688 : default:;
6707 : : }
6708 : 67833688 : {
6709 : 67833688 : tree _p0_pops[1];
6710 : 67833688 : if (tree_nop_convert (_p0, _p0_pops))
6711 : : {
6712 : 13571354 : tree _q20 = _p0_pops[0];
6713 : 13571354 : switch (TREE_CODE (_q20))
6714 : : {
6715 : 140967 : case MINUS_EXPR:
6716 : 140967 : {
6717 : 140967 : tree _q30 = TREE_OPERAND (_q20, 0);
6718 : 140967 : tree _q31 = TREE_OPERAND (_q20, 1);
6719 : 140967 : switch (TREE_CODE (_q30))
6720 : : {
6721 : 2 : case BIT_AND_EXPR:
6722 : 2 : {
6723 : 2 : tree _q40 = TREE_OPERAND (_q30, 0);
6724 : 2 : tree _q41 = TREE_OPERAND (_q30, 1);
6725 : 2 : switch (TREE_CODE (_q31))
6726 : : {
6727 : 1 : case BIT_IOR_EXPR:
6728 : 1 : {
6729 : 1 : tree _q70 = TREE_OPERAND (_q31, 0);
6730 : 1 : tree _q71 = TREE_OPERAND (_q31, 1);
6731 : 1 : if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
6732 : : {
6733 : 1 : if ((_q71 == _q41 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q41, 0) && types_match (_q71, _q41)))
6734 : : {
6735 : 1 : if (integer_all_onesp (_p1))
6736 : : {
6737 : 1 : {
6738 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q40, _q41 };
6739 : 1 : tree res = generic_simplify_12 (loc, type, _p0, _p1, captures);
6740 : 1 : if (res) return res;
6741 : : }
6742 : : }
6743 : : }
6744 : : }
6745 : 0 : if ((_q70 == _q41 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q41, 0) && types_match (_q70, _q41)))
6746 : : {
6747 : 0 : if ((_q71 == _q40 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q40, 0) && types_match (_q71, _q40)))
6748 : : {
6749 : 0 : if (integer_all_onesp (_p1))
6750 : : {
6751 : 0 : {
6752 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q41, _q40 };
6753 : 0 : tree res = generic_simplify_12 (loc, type, _p0, _p1, captures);
6754 : 0 : if (res) return res;
6755 : : }
6756 : : }
6757 : : }
6758 : : }
6759 : : break;
6760 : : }
6761 : : default:;
6762 : : }
6763 : : break;
6764 : : }
6765 : 140966 : default:;
6766 : : }
6767 : 140966 : {
6768 : 140966 : tree _q30_pops[1];
6769 : 140966 : if (tree_nop_convert (_q30, _q30_pops))
6770 : : {
6771 : 90602 : tree _q40 = _q30_pops[0];
6772 : 90602 : switch (TREE_CODE (_q40))
6773 : : {
6774 : 0 : case BIT_AND_EXPR:
6775 : 0 : {
6776 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
6777 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
6778 : 0 : {
6779 : 0 : tree _q31_pops[1];
6780 : 0 : if (tree_nop_convert (_q31, _q31_pops))
6781 : : {
6782 : 0 : tree _q80 = _q31_pops[0];
6783 : 0 : switch (TREE_CODE (_q80))
6784 : : {
6785 : 0 : case BIT_IOR_EXPR:
6786 : 0 : {
6787 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
6788 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
6789 : 0 : if ((_q90 == _q50 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q50, 0) && types_match (_q90, _q50)))
6790 : : {
6791 : 0 : if ((_q91 == _q51 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q51, 0) && types_match (_q91, _q51)))
6792 : : {
6793 : 0 : if (integer_all_onesp (_p1))
6794 : : {
6795 : 0 : {
6796 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q50, _q51 };
6797 : 0 : tree res = generic_simplify_12 (loc, type, _p0, _p1, captures);
6798 : 0 : if (res) return res;
6799 : : }
6800 : : }
6801 : : }
6802 : : }
6803 : 0 : if ((_q90 == _q51 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q51, 0) && types_match (_q90, _q51)))
6804 : : {
6805 : 0 : if ((_q91 == _q50 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q50, 0) && types_match (_q91, _q50)))
6806 : : {
6807 : 0 : if (integer_all_onesp (_p1))
6808 : : {
6809 : 0 : {
6810 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q51, _q50 };
6811 : 0 : tree res = generic_simplify_12 (loc, type, _p0, _p1, captures);
6812 : 0 : if (res) return res;
6813 : : }
6814 : : }
6815 : : }
6816 : : }
6817 : : break;
6818 : : }
6819 : : default:;
6820 : : }
6821 : : }
6822 : : }
6823 : 0 : break;
6824 : : }
6825 : : default:;
6826 : : }
6827 : : }
6828 : : }
6829 : 140966 : break;
6830 : : }
6831 : : default:;
6832 : : }
6833 : : }
6834 : : }
6835 : 67833687 : switch (TREE_CODE (_p1))
6836 : : {
6837 : 7781824 : CASE_CONVERT:
6838 : 7781824 : {
6839 : 7781824 : tree _q30 = TREE_OPERAND (_p1, 0);
6840 : 7781824 : switch (TREE_CODE (_q30))
6841 : : {
6842 : 361 : case NEGATE_EXPR:
6843 : 361 : {
6844 : 361 : tree _q40 = TREE_OPERAND (_q30, 0);
6845 : 361 : {
6846 : 361 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q40 };
6847 : 361 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures);
6848 : 361 : if (res) return res;
6849 : : }
6850 : 304 : break;
6851 : : }
6852 : : default:;
6853 : : }
6854 : : break;
6855 : : }
6856 : 9462 : case NEGATE_EXPR:
6857 : 9462 : {
6858 : 9462 : tree _q30 = TREE_OPERAND (_p1, 0);
6859 : 9462 : {
6860 : 9462 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
6861 : 9462 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures);
6862 : 9462 : if (res) return res;
6863 : : }
6864 : 0 : break;
6865 : : }
6866 : 67824168 : default:;
6867 : : }
6868 : 67824168 : switch (TREE_CODE (_p0))
6869 : : {
6870 : 194930 : case NEGATE_EXPR:
6871 : 194930 : {
6872 : 194930 : tree _q20 = TREE_OPERAND (_p0, 0);
6873 : 194930 : {
6874 : 194930 : tree captures[2] ATTRIBUTE_UNUSED = { _p1, _q20 };
6875 : 194930 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures);
6876 : 194930 : if (res) return res;
6877 : : }
6878 : 134 : break;
6879 : : }
6880 : 67629372 : default:;
6881 : : }
6882 : 67629372 : {
6883 : 67629372 : tree _p0_pops[1];
6884 : 67629372 : if (tree_nop_convert (_p0, _p0_pops))
6885 : : {
6886 : 13565342 : tree _q20 = _p0_pops[0];
6887 : 13565342 : switch (TREE_CODE (_q20))
6888 : : {
6889 : 140552 : case MINUS_EXPR:
6890 : 140552 : {
6891 : 140552 : tree _q30 = TREE_OPERAND (_q20, 0);
6892 : 140552 : tree _q31 = TREE_OPERAND (_q20, 1);
6893 : 140552 : {
6894 : 140552 : tree _q31_pops[1];
6895 : 140552 : if (tree_nop_convert (_q31, _q31_pops))
6896 : : {
6897 : 107341 : tree _q50 = _q31_pops[0];
6898 : 107341 : if ((_p1 == _q50 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q50, 0) && types_match (_p1, _q50)))
6899 : : {
6900 : 64 : {
6901 : 64 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q50 };
6902 : 64 : tree res = generic_simplify_13 (loc, type, _p0, _p1, captures);
6903 : 64 : if (res) return res;
6904 : : }
6905 : : }
6906 : : }
6907 : : }
6908 : 140488 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
6909 : : {
6910 : 0 : {
6911 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
6912 : 0 : tree res = generic_simplify_13 (loc, type, _p0, _p1, captures);
6913 : 0 : if (res) return res;
6914 : : }
6915 : : }
6916 : 140488 : if (CONSTANT_CLASS_P (_q31))
6917 : : {
6918 : 13935 : if (CONSTANT_CLASS_P (_p1))
6919 : : {
6920 : 13819 : {
6921 : 13819 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
6922 : 13819 : tree res = generic_simplify_17 (loc, type, _p0, _p1, captures, MINUS_EXPR, PLUS_EXPR, PLUS_EXPR);
6923 : 13819 : if (res) return res;
6924 : : }
6925 : : }
6926 : : }
6927 : 126669 : if (CONSTANT_CLASS_P (_q30))
6928 : : {
6929 : 21034 : if (CONSTANT_CLASS_P (_p1))
6930 : : {
6931 : 5737 : {
6932 : 5737 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
6933 : 5737 : tree res = generic_simplify_18 (loc, type, _p0, _p1, captures, PLUS_EXPR);
6934 : 5737 : if (res) return res;
6935 : : }
6936 : : }
6937 : : }
6938 : : break;
6939 : : }
6940 : 1349409 : case PLUS_EXPR:
6941 : 1349409 : {
6942 : 1349409 : tree _q30 = TREE_OPERAND (_q20, 0);
6943 : 1349409 : tree _q31 = TREE_OPERAND (_q20, 1);
6944 : 1349409 : if (CONSTANT_CLASS_P (_q31))
6945 : : {
6946 : 1151566 : if (CONSTANT_CLASS_P (_p1))
6947 : : {
6948 : 1043844 : {
6949 : 1043844 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
6950 : 1043844 : tree res = generic_simplify_17 (loc, type, _p0, _p1, captures, PLUS_EXPR, MINUS_EXPR, PLUS_EXPR);
6951 : 1043844 : if (res) return res;
6952 : : }
6953 : : }
6954 : : }
6955 : : break;
6956 : : }
6957 : : default:;
6958 : : }
6959 : : }
6960 : : }
6961 : 66566808 : switch (TREE_CODE (_p1))
6962 : : {
6963 : 181729 : case MINUS_EXPR:
6964 : 181729 : {
6965 : 181729 : tree _q30 = TREE_OPERAND (_p1, 0);
6966 : 181729 : tree _q31 = TREE_OPERAND (_p1, 1);
6967 : 181729 : {
6968 : 181729 : tree _q31_pops[1];
6969 : 181729 : if (tree_nop_convert (_q31, _q31_pops))
6970 : : {
6971 : 60845 : tree _q50 = _q31_pops[0];
6972 : 60845 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
6973 : : {
6974 : 0 : {
6975 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p0 };
6976 : 0 : tree res = generic_simplify_13 (loc, type, _p0, _p1, captures);
6977 : 0 : if (res) return res;
6978 : : }
6979 : : }
6980 : : }
6981 : : }
6982 : 181729 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
6983 : : {
6984 : 290 : {
6985 : 290 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p0 };
6986 : 290 : tree res = generic_simplify_13 (loc, type, _p0, _p1, captures);
6987 : 290 : if (res) return res;
6988 : : }
6989 : : }
6990 : : break;
6991 : : }
6992 : 66566518 : default:;
6993 : : }
6994 : 66566518 : {
6995 : 66566518 : tree _p1_pops[1];
6996 : 66566518 : if (tree_nop_convert (_p1, _p1_pops))
6997 : : {
6998 : 7541680 : tree _q30 = _p1_pops[0];
6999 : 7541680 : switch (TREE_CODE (_q30))
7000 : : {
7001 : 2739 : case MINUS_EXPR:
7002 : 2739 : {
7003 : 2739 : tree _q40 = TREE_OPERAND (_q30, 0);
7004 : 2739 : tree _q41 = TREE_OPERAND (_q30, 1);
7005 : 2739 : {
7006 : 2739 : tree _q41_pops[1];
7007 : 2739 : if (tree_nop_convert (_q41, _q41_pops))
7008 : : {
7009 : 507 : tree _q60 = _q41_pops[0];
7010 : 507 : if ((_q60 == _p0 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _p0, 0) && types_match (_q60, _p0)))
7011 : : {
7012 : 0 : {
7013 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _p0 };
7014 : 0 : tree res = generic_simplify_13 (loc, type, _p0, _p1, captures);
7015 : 0 : if (res) return res;
7016 : : }
7017 : : }
7018 : : }
7019 : : }
7020 : 2739 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
7021 : : {
7022 : 0 : {
7023 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _p0 };
7024 : 0 : tree res = generic_simplify_13 (loc, type, _p0, _p1, captures);
7025 : 0 : if (res) return res;
7026 : : }
7027 : : }
7028 : : break;
7029 : : }
7030 : : default:;
7031 : : }
7032 : : }
7033 : : }
7034 : 66566518 : switch (TREE_CODE (_p0))
7035 : : {
7036 : 6481394 : case PLUS_EXPR:
7037 : 6481394 : {
7038 : 6481394 : tree _q20 = TREE_OPERAND (_p0, 0);
7039 : 6481394 : tree _q21 = TREE_OPERAND (_p0, 1);
7040 : 6481394 : switch (TREE_CODE (_p1))
7041 : : {
7042 : 46745 : case MINUS_EXPR:
7043 : 46745 : {
7044 : 46745 : tree _q50 = TREE_OPERAND (_p1, 0);
7045 : 46745 : tree _q51 = TREE_OPERAND (_p1, 1);
7046 : 46745 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
7047 : : {
7048 : 148 : {
7049 : 148 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
7050 : 148 : tree res = generic_simplify_19 (loc, type, _p0, _p1, captures);
7051 : 148 : if (res) return res;
7052 : : }
7053 : : }
7054 : 46597 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7055 : : {
7056 : 219 : {
7057 : 219 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
7058 : 219 : tree res = generic_simplify_19 (loc, type, _p0, _p1, captures);
7059 : 219 : if (res) return res;
7060 : : }
7061 : : }
7062 : : break;
7063 : : }
7064 : 6481027 : default:;
7065 : : }
7066 : 6481027 : if (CONSTANT_CLASS_P (_q21))
7067 : : {
7068 : 2579322 : if (CONSTANT_CLASS_P (_p1))
7069 : : {
7070 : 1900421 : {
7071 : 1900421 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7072 : 1900421 : tree res = generic_simplify_17 (loc, type, _p0, _p1, captures, PLUS_EXPR, MINUS_EXPR, PLUS_EXPR);
7073 : 1900421 : if (res) return res;
7074 : : }
7075 : : }
7076 : : }
7077 : : break;
7078 : : }
7079 : 1960069 : case MINUS_EXPR:
7080 : 1960069 : {
7081 : 1960069 : tree _q20 = TREE_OPERAND (_p0, 0);
7082 : 1960069 : tree _q21 = TREE_OPERAND (_p0, 1);
7083 : 1960069 : switch (TREE_CODE (_p1))
7084 : : {
7085 : 1873 : case PLUS_EXPR:
7086 : 1873 : {
7087 : 1873 : tree _q50 = TREE_OPERAND (_p1, 0);
7088 : 1873 : tree _q51 = TREE_OPERAND (_p1, 1);
7089 : 1873 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7090 : : {
7091 : 349 : {
7092 : 349 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q51, _q20 };
7093 : 349 : tree res = generic_simplify_19 (loc, type, _p0, _p1, captures);
7094 : 349 : if (res) return res;
7095 : : }
7096 : : }
7097 : 1524 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7098 : : {
7099 : 29 : {
7100 : 29 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q50, _q20 };
7101 : 29 : tree res = generic_simplify_19 (loc, type, _p0, _p1, captures);
7102 : 29 : if (res) return res;
7103 : : }
7104 : : }
7105 : : break;
7106 : : }
7107 : 455 : case MINUS_EXPR:
7108 : 455 : {
7109 : 455 : tree _q50 = TREE_OPERAND (_p1, 0);
7110 : 455 : tree _q51 = TREE_OPERAND (_p1, 1);
7111 : 455 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
7112 : : {
7113 : 1 : {
7114 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
7115 : 1 : tree res = generic_simplify_20 (loc, type, _p0, _p1, captures);
7116 : 1 : if (res) return res;
7117 : : }
7118 : : }
7119 : 454 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7120 : : {
7121 : 9 : {
7122 : 9 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q51, _q20 };
7123 : 9 : tree res = generic_simplify_20 (loc, type, _p0, _p1, captures);
7124 : 9 : if (res) return res;
7125 : : }
7126 : : }
7127 : : break;
7128 : : }
7129 : 1959681 : default:;
7130 : : }
7131 : 1959681 : if (CONSTANT_CLASS_P (_q21))
7132 : : {
7133 : 114604 : if (CONSTANT_CLASS_P (_p1))
7134 : : {
7135 : 77094 : {
7136 : 77094 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7137 : 77094 : tree res = generic_simplify_17 (loc, type, _p0, _p1, captures, MINUS_EXPR, PLUS_EXPR, PLUS_EXPR);
7138 : 77094 : if (res) return res;
7139 : : }
7140 : : }
7141 : : }
7142 : 1882784 : if (CONSTANT_CLASS_P (_q20))
7143 : : {
7144 : 408673 : if (CONSTANT_CLASS_P (_p1))
7145 : : {
7146 : 234308 : {
7147 : 234308 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7148 : 234308 : tree res = generic_simplify_18 (loc, type, _p0, _p1, captures, PLUS_EXPR);
7149 : 234308 : if (res) return res;
7150 : : }
7151 : : }
7152 : : }
7153 : : break;
7154 : : }
7155 : 474 : case POINTER_DIFF_EXPR:
7156 : 474 : {
7157 : 474 : tree _q20 = TREE_OPERAND (_p0, 0);
7158 : 474 : tree _q21 = TREE_OPERAND (_p0, 1);
7159 : 474 : switch (TREE_CODE (_p1))
7160 : : {
7161 : 7 : case POINTER_DIFF_EXPR:
7162 : 7 : {
7163 : 7 : tree _q50 = TREE_OPERAND (_p1, 0);
7164 : 7 : tree _q51 = TREE_OPERAND (_p1, 1);
7165 : 7 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
7166 : : {
7167 : 7 : {
7168 : 7 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
7169 : 7 : tree res = generic_simplify_21 (loc, type, _p0, _p1, captures);
7170 : 7 : if (res) return res;
7171 : : }
7172 : : }
7173 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7174 : : {
7175 : 0 : {
7176 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q51, _q20 };
7177 : 0 : tree res = generic_simplify_21 (loc, type, _p0, _p1, captures);
7178 : 0 : if (res) return res;
7179 : : }
7180 : : }
7181 : : break;
7182 : : }
7183 : : default:;
7184 : : }
7185 : : break;
7186 : : }
7187 : 17029510 : CASE_CONVERT:
7188 : 17029510 : {
7189 : 17029510 : tree _q20 = TREE_OPERAND (_p0, 0);
7190 : 17029510 : switch (TREE_CODE (_p1))
7191 : : {
7192 : 2625726 : CASE_CONVERT:
7193 : 2625726 : {
7194 : 2625726 : tree _q40 = TREE_OPERAND (_p1, 0);
7195 : 2625726 : {
7196 : 2625726 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
7197 : 2625726 : tree res = generic_simplify_22 (loc, type, _p0, _p1, captures, PLUS_EXPR);
7198 : 2625726 : if (res) return res;
7199 : : }
7200 : 2625571 : break;
7201 : : }
7202 : 17029355 : default:;
7203 : : }
7204 : 17029355 : switch (TREE_CODE (_q20))
7205 : : {
7206 : 125408 : case BIT_NOT_EXPR:
7207 : 125408 : {
7208 : 125408 : tree _q30 = TREE_OPERAND (_q20, 0);
7209 : 125408 : switch (TREE_CODE (_p1))
7210 : : {
7211 : 181 : CASE_CONVERT:
7212 : 181 : {
7213 : 181 : tree _q50 = TREE_OPERAND (_p1, 0);
7214 : 181 : if ((_q50 == _q30 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q30, 0) && types_match (_q50, _q30)))
7215 : : {
7216 : 0 : {
7217 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q30 };
7218 : 0 : tree res = generic_simplify_23 (loc, type, _p0, _p1, captures);
7219 : 0 : if (res) return res;
7220 : : }
7221 : : }
7222 : : break;
7223 : : }
7224 : : default:;
7225 : : }
7226 : : break;
7227 : : }
7228 : 17029355 : default:;
7229 : : }
7230 : 17029355 : switch (TREE_CODE (_p1))
7231 : : {
7232 : 2625571 : CASE_CONVERT:
7233 : 2625571 : {
7234 : 2625571 : tree _q40 = TREE_OPERAND (_p1, 0);
7235 : 2625571 : switch (TREE_CODE (_q40))
7236 : : {
7237 : 347 : case BIT_NOT_EXPR:
7238 : 347 : {
7239 : 347 : tree _q50 = TREE_OPERAND (_q40, 0);
7240 : 347 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
7241 : : {
7242 : 0 : {
7243 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
7244 : 0 : tree res = generic_simplify_23 (loc, type, _p0, _p1, captures);
7245 : 0 : if (res) return res;
7246 : : }
7247 : : }
7248 : : break;
7249 : : }
7250 : : default:;
7251 : : }
7252 : : break;
7253 : : }
7254 : : default:;
7255 : : }
7256 : : break;
7257 : : }
7258 : 335468 : case BIT_NOT_EXPR:
7259 : 335468 : {
7260 : 335468 : tree _q20 = TREE_OPERAND (_p0, 0);
7261 : 335468 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
7262 : : {
7263 : 536 : {
7264 : 536 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
7265 : 536 : tree res = generic_simplify_23 (loc, type, _p0, _p1, captures);
7266 : 536 : if (res) return res;
7267 : : }
7268 : : }
7269 : 334932 : if (integer_each_onep (_p1))
7270 : : {
7271 : 2719 : {
7272 : 2719 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
7273 : 2719 : tree res = generic_simplify_24 (loc, type, _p0, _p1, captures);
7274 : 2719 : if (res) return res;
7275 : : }
7276 : : }
7277 : : break;
7278 : : }
7279 : 64351076 : default:;
7280 : : }
7281 : 64351076 : switch (TREE_CODE (_p1))
7282 : : {
7283 : 37973 : case BIT_NOT_EXPR:
7284 : 37973 : {
7285 : 37973 : tree _q30 = TREE_OPERAND (_p1, 0);
7286 : 37973 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
7287 : : {
7288 : 0 : {
7289 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
7290 : 0 : tree res = generic_simplify_23 (loc, type, _p0, _p1, captures);
7291 : 0 : if (res) return res;
7292 : : }
7293 : : }
7294 : : break;
7295 : : }
7296 : 64351076 : default:;
7297 : : }
7298 : 64351076 : switch (TREE_CODE (_p0))
7299 : : {
7300 : 17029355 : CASE_CONVERT:
7301 : 17029355 : {
7302 : 17029355 : tree _q20 = TREE_OPERAND (_p0, 0);
7303 : 17029355 : switch (TREE_CODE (_q20))
7304 : : {
7305 : 125408 : case BIT_NOT_EXPR:
7306 : 125408 : {
7307 : 125408 : tree _q30 = TREE_OPERAND (_q20, 0);
7308 : 125408 : if (integer_each_onep (_p1))
7309 : : {
7310 : 121839 : {
7311 : 121839 : tree captures[1] ATTRIBUTE_UNUSED = { _q30 };
7312 : 121839 : tree res = generic_simplify_24 (loc, type, _p0, _p1, captures);
7313 : 121839 : if (res) return res;
7314 : : }
7315 : : }
7316 : : break;
7317 : : }
7318 : : default:;
7319 : : }
7320 : : break;
7321 : : }
7322 : 12729767 : case MULT_EXPR:
7323 : 12729767 : {
7324 : 12729767 : tree _q20 = TREE_OPERAND (_p0, 0);
7325 : 12729767 : tree _q21 = TREE_OPERAND (_p0, 1);
7326 : 12729767 : switch (TREE_CODE (_p1))
7327 : : {
7328 : 3295640 : case MULT_EXPR:
7329 : 3295640 : {
7330 : 3295640 : tree _q50 = TREE_OPERAND (_p1, 0);
7331 : 3295640 : tree _q51 = TREE_OPERAND (_p1, 1);
7332 : 3295640 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
7333 : : {
7334 : 792134 : {
7335 : 792134 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
7336 : 792134 : tree res = generic_simplify_25 (loc, type, _p0, _p1, captures, PLUS_EXPR);
7337 : 792134 : if (res) return res;
7338 : : }
7339 : : }
7340 : 3290843 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
7341 : : {
7342 : 21 : {
7343 : 21 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
7344 : 21 : tree res = generic_simplify_25 (loc, type, _p0, _p1, captures, PLUS_EXPR);
7345 : 21 : if (res) return res;
7346 : : }
7347 : : }
7348 : 3290838 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7349 : : {
7350 : 241 : {
7351 : 241 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
7352 : 241 : tree res = generic_simplify_25 (loc, type, _p0, _p1, captures, PLUS_EXPR);
7353 : 241 : if (res) return res;
7354 : : }
7355 : : }
7356 : 3290667 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7357 : : {
7358 : 1234828 : {
7359 : 1234828 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
7360 : 1234828 : tree res = generic_simplify_25 (loc, type, _p0, _p1, captures, PLUS_EXPR);
7361 : 1234828 : if (res) return res;
7362 : : }
7363 : : }
7364 : : break;
7365 : : }
7366 : : default:;
7367 : : }
7368 : : break;
7369 : : }
7370 : 62990530 : default:;
7371 : : }
7372 : 62990530 : switch (TREE_CODE (_p1))
7373 : : {
7374 : 3495390 : case MULT_EXPR:
7375 : 3495390 : {
7376 : 3495390 : tree _q30 = TREE_OPERAND (_p1, 0);
7377 : 3495390 : tree _q31 = TREE_OPERAND (_p1, 1);
7378 : 3495390 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
7379 : : {
7380 : 3913 : {
7381 : 3913 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q31 };
7382 : 3913 : tree res = generic_simplify_26 (loc, type, _p0, _p1, captures, PLUS_EXPR);
7383 : 3913 : if (res) return res;
7384 : : }
7385 : : }
7386 : 3491524 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
7387 : : {
7388 : 2 : {
7389 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q30 };
7390 : 2 : tree res = generic_simplify_26 (loc, type, _p0, _p1, captures, PLUS_EXPR);
7391 : 2 : if (res) return res;
7392 : : }
7393 : : }
7394 : : break;
7395 : : }
7396 : 62986662 : default:;
7397 : : }
7398 : 62986662 : switch (TREE_CODE (_p0))
7399 : : {
7400 : 11490220 : case MULT_EXPR:
7401 : 11490220 : {
7402 : 11490220 : tree _q20 = TREE_OPERAND (_p0, 0);
7403 : 11490220 : tree _q21 = TREE_OPERAND (_p0, 1);
7404 : 11490220 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
7405 : : {
7406 : 33246 : {
7407 : 33246 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
7408 : 33246 : tree res = generic_simplify_27 (loc, type, _p0, _p1, captures, PLUS_EXPR);
7409 : 33246 : if (res) return res;
7410 : : }
7411 : : }
7412 : 11457620 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
7413 : : {
7414 : 302795 : {
7415 : 302795 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
7416 : 302795 : tree res = generic_simplify_27 (loc, type, _p0, _p1, captures, PLUS_EXPR);
7417 : 302795 : if (res) return res;
7418 : : }
7419 : : }
7420 : 11155464 : if (integer_nonzerop (_q20))
7421 : : {
7422 : 102 : switch (TREE_CODE (_p1))
7423 : : {
7424 : 50 : case INTEGER_CST:
7425 : 50 : {
7426 : 50 : {
7427 : 50 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
7428 : 50 : tree res = generic_simplify_28 (loc, type, _p0, _p1, captures);
7429 : 50 : if (res) return res;
7430 : : }
7431 : 50 : break;
7432 : : }
7433 : : default:;
7434 : : }
7435 : : }
7436 : 11155464 : if (integer_nonzerop (_q21))
7437 : : {
7438 : 7230401 : switch (TREE_CODE (_p1))
7439 : : {
7440 : 3555536 : case INTEGER_CST:
7441 : 3555536 : {
7442 : 3555536 : {
7443 : 3555536 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1 };
7444 : 3555536 : tree res = generic_simplify_28 (loc, type, _p0, _p1, captures);
7445 : 3555536 : if (res) return res;
7446 : : }
7447 : 3163776 : break;
7448 : : }
7449 : : default:;
7450 : : }
7451 : : }
7452 : 10763704 : switch (TREE_CODE (_q20))
7453 : : {
7454 : 191481 : case MINUS_EXPR:
7455 : 191481 : {
7456 : 191481 : tree _q30 = TREE_OPERAND (_q20, 0);
7457 : 191481 : tree _q31 = TREE_OPERAND (_q20, 1);
7458 : 191481 : if (tree_zero_one_valued_p (_q21))
7459 : : {
7460 : 0 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
7461 : : {
7462 : 0 : {
7463 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q21 };
7464 : 0 : tree res = generic_simplify_29 (loc, type, _p0, _p1, captures);
7465 : 0 : if (res) return res;
7466 : : }
7467 : : }
7468 : : }
7469 : : break;
7470 : : }
7471 : 10763704 : default:;
7472 : : }
7473 : 10763704 : if (tree_zero_one_valued_p (_q20))
7474 : : {
7475 : 37704 : switch (TREE_CODE (_q21))
7476 : : {
7477 : 9 : case MINUS_EXPR:
7478 : 9 : {
7479 : 9 : tree _q40 = TREE_OPERAND (_q21, 0);
7480 : 9 : tree _q41 = TREE_OPERAND (_q21, 1);
7481 : 9 : if ((_p1 == _q41 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q41, 0) && types_match (_p1, _q41)))
7482 : : {
7483 : 9 : {
7484 : 9 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _q20 };
7485 : 9 : tree res = generic_simplify_29 (loc, type, _p0, _p1, captures);
7486 : 9 : if (res) return res;
7487 : : }
7488 : : }
7489 : : break;
7490 : : }
7491 : : default:;
7492 : : }
7493 : : }
7494 : : break;
7495 : : }
7496 : 3101 : case MIN_EXPR:
7497 : 3101 : {
7498 : 3101 : tree _q20 = TREE_OPERAND (_p0, 0);
7499 : 3101 : tree _q21 = TREE_OPERAND (_p0, 1);
7500 : 3101 : switch (TREE_CODE (_p1))
7501 : : {
7502 : 0 : case MAX_EXPR:
7503 : 0 : {
7504 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
7505 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
7506 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
7507 : : {
7508 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7509 : : {
7510 : 0 : {
7511 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7512 : 0 : if (!HONOR_NANS (captures[0])
7513 : : )
7514 : : {
7515 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1306;
7516 : 0 : {
7517 : 0 : tree res_op0;
7518 : 0 : res_op0 = captures[0];
7519 : 0 : tree res_op1;
7520 : 0 : res_op1 = captures[1];
7521 : 0 : tree _r;
7522 : 0 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
7523 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 915, __FILE__, __LINE__, true);
7524 : 0 : return _r;
7525 : : }
7526 : 0 : next_after_fail1306:;
7527 : : }
7528 : : }
7529 : : }
7530 : : }
7531 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7532 : : {
7533 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
7534 : : {
7535 : 0 : {
7536 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
7537 : 0 : if (!HONOR_NANS (captures[0])
7538 : : )
7539 : : {
7540 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1307;
7541 : 0 : {
7542 : 0 : tree res_op0;
7543 : 0 : res_op0 = captures[0];
7544 : 0 : tree res_op1;
7545 : 0 : res_op1 = captures[1];
7546 : 0 : tree _r;
7547 : 0 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
7548 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 915, __FILE__, __LINE__, true);
7549 : 0 : return _r;
7550 : : }
7551 : 0 : next_after_fail1307:;
7552 : : }
7553 : : }
7554 : : }
7555 : : }
7556 : : break;
7557 : : }
7558 : : default:;
7559 : : }
7560 : : break;
7561 : : }
7562 : 11535 : case MAX_EXPR:
7563 : 11535 : {
7564 : 11535 : tree _q20 = TREE_OPERAND (_p0, 0);
7565 : 11535 : tree _q21 = TREE_OPERAND (_p0, 1);
7566 : 11535 : switch (TREE_CODE (_p1))
7567 : : {
7568 : 0 : case MIN_EXPR:
7569 : 0 : {
7570 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
7571 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
7572 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
7573 : : {
7574 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7575 : : {
7576 : 0 : {
7577 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7578 : 0 : if (!HONOR_NANS (captures[0])
7579 : : )
7580 : : {
7581 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1308;
7582 : 0 : {
7583 : 0 : tree res_op0;
7584 : 0 : res_op0 = captures[0];
7585 : 0 : tree res_op1;
7586 : 0 : res_op1 = captures[1];
7587 : 0 : tree _r;
7588 : 0 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
7589 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 915, __FILE__, __LINE__, true);
7590 : 0 : return _r;
7591 : : }
7592 : 0 : next_after_fail1308:;
7593 : : }
7594 : : }
7595 : : }
7596 : : }
7597 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7598 : : {
7599 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
7600 : : {
7601 : 0 : {
7602 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7603 : 0 : if (!HONOR_NANS (captures[0])
7604 : : )
7605 : : {
7606 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1309;
7607 : 0 : {
7608 : 0 : tree res_op0;
7609 : 0 : res_op0 = captures[0];
7610 : 0 : tree res_op1;
7611 : 0 : res_op1 = captures[1];
7612 : 0 : tree _r;
7613 : 0 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
7614 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 915, __FILE__, __LINE__, true);
7615 : 0 : return _r;
7616 : : }
7617 : 0 : next_after_fail1309:;
7618 : : }
7619 : : }
7620 : : }
7621 : : }
7622 : : break;
7623 : : }
7624 : : default:;
7625 : : }
7626 : : break;
7627 : : }
7628 : 62260144 : default:;
7629 : : }
7630 : 62260144 : switch (TREE_CODE (_p1))
7631 : : {
7632 : 3491458 : case MULT_EXPR:
7633 : 3491458 : {
7634 : 3491458 : tree _q30 = TREE_OPERAND (_p1, 0);
7635 : 3491458 : tree _q31 = TREE_OPERAND (_p1, 1);
7636 : 3491458 : switch (TREE_CODE (_q30))
7637 : : {
7638 : 118531 : case MINUS_EXPR:
7639 : 118531 : {
7640 : 118531 : tree _q40 = TREE_OPERAND (_q30, 0);
7641 : 118531 : tree _q41 = TREE_OPERAND (_q30, 1);
7642 : 118531 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
7643 : : {
7644 : 16 : if (tree_zero_one_valued_p (_q31))
7645 : : {
7646 : 0 : {
7647 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q40, _q31 };
7648 : 0 : tree res = generic_simplify_29 (loc, type, _p0, _p1, captures);
7649 : 0 : if (res) return res;
7650 : : }
7651 : : }
7652 : : }
7653 : : break;
7654 : : }
7655 : 3491458 : default:;
7656 : : }
7657 : 3491458 : if (tree_zero_one_valued_p (_q30))
7658 : : {
7659 : 13826 : switch (TREE_CODE (_q31))
7660 : : {
7661 : 0 : case MINUS_EXPR:
7662 : 0 : {
7663 : 0 : tree _q50 = TREE_OPERAND (_q31, 0);
7664 : 0 : tree _q51 = TREE_OPERAND (_q31, 1);
7665 : 0 : if ((_q51 == _p0 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _p0, 0) && types_match (_q51, _p0)))
7666 : : {
7667 : 0 : {
7668 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q50, _q30 };
7669 : 0 : tree res = generic_simplify_29 (loc, type, _p0, _p1, captures);
7670 : 0 : if (res) return res;
7671 : : }
7672 : : }
7673 : : break;
7674 : : }
7675 : : default:;
7676 : : }
7677 : : }
7678 : : break;
7679 : : }
7680 : 62260144 : default:;
7681 : : }
7682 : 62260144 : switch (TREE_CODE (_p0))
7683 : : {
7684 : 10763702 : case MULT_EXPR:
7685 : 10763702 : {
7686 : 10763702 : tree _q20 = TREE_OPERAND (_p0, 0);
7687 : 10763702 : tree _q21 = TREE_OPERAND (_p0, 1);
7688 : 10763702 : switch (TREE_CODE (_q20))
7689 : : {
7690 : 19505 : case TRUNC_DIV_EXPR:
7691 : 19505 : {
7692 : 19505 : tree _q30 = TREE_OPERAND (_q20, 0);
7693 : 19505 : tree _q31 = TREE_OPERAND (_q20, 1);
7694 : 19505 : if ((_q21 == _q31 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q31, 0) && types_match (_q21, _q31)))
7695 : : {
7696 : 2335 : switch (TREE_CODE (_p1))
7697 : : {
7698 : 2 : case TRUNC_MOD_EXPR:
7699 : 2 : {
7700 : 2 : tree _q70 = TREE_OPERAND (_p1, 0);
7701 : 2 : tree _q71 = TREE_OPERAND (_p1, 1);
7702 : 2 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
7703 : : {
7704 : 2 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
7705 : : {
7706 : 2 : {
7707 : 2 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
7708 : 2 : tree res = generic_simplify_30 (loc, type, _p0, _p1, captures, TRUNC_DIV_EXPR, TRUNC_MOD_EXPR);
7709 : 2 : if (res) return res;
7710 : : }
7711 : : }
7712 : : }
7713 : : break;
7714 : : }
7715 : : default:;
7716 : : }
7717 : : }
7718 : : break;
7719 : : }
7720 : 0 : case CEIL_DIV_EXPR:
7721 : 0 : {
7722 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7723 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7724 : 0 : if ((_q21 == _q31 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q31, 0) && types_match (_q21, _q31)))
7725 : : {
7726 : 0 : switch (TREE_CODE (_p1))
7727 : : {
7728 : 0 : case CEIL_MOD_EXPR:
7729 : 0 : {
7730 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
7731 : 0 : tree _q71 = TREE_OPERAND (_p1, 1);
7732 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
7733 : : {
7734 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
7735 : : {
7736 : 0 : {
7737 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
7738 : 0 : tree res = generic_simplify_30 (loc, type, _p0, _p1, captures, CEIL_DIV_EXPR, CEIL_MOD_EXPR);
7739 : 0 : if (res) return res;
7740 : : }
7741 : : }
7742 : : }
7743 : : break;
7744 : : }
7745 : : default:;
7746 : : }
7747 : : }
7748 : : break;
7749 : : }
7750 : 0 : case FLOOR_DIV_EXPR:
7751 : 0 : {
7752 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7753 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7754 : 0 : if ((_q21 == _q31 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q31, 0) && types_match (_q21, _q31)))
7755 : : {
7756 : 0 : switch (TREE_CODE (_p1))
7757 : : {
7758 : 0 : case FLOOR_MOD_EXPR:
7759 : 0 : {
7760 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
7761 : 0 : tree _q71 = TREE_OPERAND (_p1, 1);
7762 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
7763 : : {
7764 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
7765 : : {
7766 : 0 : {
7767 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
7768 : 0 : tree res = generic_simplify_30 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR, FLOOR_MOD_EXPR);
7769 : 0 : if (res) return res;
7770 : : }
7771 : : }
7772 : : }
7773 : : break;
7774 : : }
7775 : : default:;
7776 : : }
7777 : : }
7778 : : break;
7779 : : }
7780 : 0 : case ROUND_DIV_EXPR:
7781 : 0 : {
7782 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7783 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7784 : 0 : if ((_q21 == _q31 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q31, 0) && types_match (_q21, _q31)))
7785 : : {
7786 : 0 : switch (TREE_CODE (_p1))
7787 : : {
7788 : 0 : case ROUND_MOD_EXPR:
7789 : 0 : {
7790 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
7791 : 0 : tree _q71 = TREE_OPERAND (_p1, 1);
7792 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
7793 : : {
7794 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
7795 : : {
7796 : 0 : {
7797 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
7798 : 0 : tree res = generic_simplify_30 (loc, type, _p0, _p1, captures, ROUND_DIV_EXPR, ROUND_MOD_EXPR);
7799 : 0 : if (res) return res;
7800 : : }
7801 : : }
7802 : : }
7803 : : break;
7804 : : }
7805 : : default:;
7806 : : }
7807 : : }
7808 : : break;
7809 : : }
7810 : 10763700 : default:;
7811 : : }
7812 : 10763700 : switch (TREE_CODE (_q21))
7813 : : {
7814 : 5 : case TRUNC_DIV_EXPR:
7815 : 5 : {
7816 : 5 : tree _q40 = TREE_OPERAND (_q21, 0);
7817 : 5 : tree _q41 = TREE_OPERAND (_q21, 1);
7818 : 5 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _q20, 0) && types_match (_q41, _q20)))
7819 : : {
7820 : 0 : switch (TREE_CODE (_p1))
7821 : : {
7822 : 0 : case TRUNC_MOD_EXPR:
7823 : 0 : {
7824 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
7825 : 0 : tree _q71 = TREE_OPERAND (_p1, 1);
7826 : 0 : if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
7827 : : {
7828 : 0 : if ((_q71 == _q20 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q20, 0) && types_match (_q71, _q20)))
7829 : : {
7830 : 0 : {
7831 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q20 };
7832 : 0 : tree res = generic_simplify_30 (loc, type, _p0, _p1, captures, TRUNC_DIV_EXPR, TRUNC_MOD_EXPR);
7833 : 0 : if (res) return res;
7834 : : }
7835 : : }
7836 : : }
7837 : : break;
7838 : : }
7839 : : default:;
7840 : : }
7841 : : }
7842 : : break;
7843 : : }
7844 : 4 : case CEIL_DIV_EXPR:
7845 : 4 : {
7846 : 4 : tree _q40 = TREE_OPERAND (_q21, 0);
7847 : 4 : tree _q41 = TREE_OPERAND (_q21, 1);
7848 : 4 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _q20, 0) && types_match (_q41, _q20)))
7849 : : {
7850 : 0 : switch (TREE_CODE (_p1))
7851 : : {
7852 : 0 : case CEIL_MOD_EXPR:
7853 : 0 : {
7854 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
7855 : 0 : tree _q71 = TREE_OPERAND (_p1, 1);
7856 : 0 : if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
7857 : : {
7858 : 0 : if ((_q71 == _q20 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q20, 0) && types_match (_q71, _q20)))
7859 : : {
7860 : 0 : {
7861 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q20 };
7862 : 0 : tree res = generic_simplify_30 (loc, type, _p0, _p1, captures, CEIL_DIV_EXPR, CEIL_MOD_EXPR);
7863 : 0 : if (res) return res;
7864 : : }
7865 : : }
7866 : : }
7867 : : break;
7868 : : }
7869 : : default:;
7870 : : }
7871 : : }
7872 : : break;
7873 : : }
7874 : 0 : case FLOOR_DIV_EXPR:
7875 : 0 : {
7876 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
7877 : 0 : tree _q41 = TREE_OPERAND (_q21, 1);
7878 : 0 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _q20, 0) && types_match (_q41, _q20)))
7879 : : {
7880 : 0 : switch (TREE_CODE (_p1))
7881 : : {
7882 : 0 : case FLOOR_MOD_EXPR:
7883 : 0 : {
7884 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
7885 : 0 : tree _q71 = TREE_OPERAND (_p1, 1);
7886 : 0 : if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
7887 : : {
7888 : 0 : if ((_q71 == _q20 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q20, 0) && types_match (_q71, _q20)))
7889 : : {
7890 : 0 : {
7891 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q20 };
7892 : 0 : tree res = generic_simplify_30 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR, FLOOR_MOD_EXPR);
7893 : 0 : if (res) return res;
7894 : : }
7895 : : }
7896 : : }
7897 : : break;
7898 : : }
7899 : : default:;
7900 : : }
7901 : : }
7902 : : break;
7903 : : }
7904 : 0 : case ROUND_DIV_EXPR:
7905 : 0 : {
7906 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
7907 : 0 : tree _q41 = TREE_OPERAND (_q21, 1);
7908 : 0 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _q20, 0) && types_match (_q41, _q20)))
7909 : : {
7910 : 0 : switch (TREE_CODE (_p1))
7911 : : {
7912 : 0 : case ROUND_MOD_EXPR:
7913 : 0 : {
7914 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
7915 : 0 : tree _q71 = TREE_OPERAND (_p1, 1);
7916 : 0 : if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
7917 : : {
7918 : 0 : if ((_q71 == _q20 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q20, 0) && types_match (_q71, _q20)))
7919 : : {
7920 : 0 : {
7921 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q20 };
7922 : 0 : tree res = generic_simplify_30 (loc, type, _p0, _p1, captures, ROUND_DIV_EXPR, ROUND_MOD_EXPR);
7923 : 0 : if (res) return res;
7924 : : }
7925 : : }
7926 : : }
7927 : : break;
7928 : : }
7929 : : default:;
7930 : : }
7931 : : }
7932 : : break;
7933 : : }
7934 : : default:;
7935 : : }
7936 : : break;
7937 : : }
7938 : 9945 : case TRUNC_MOD_EXPR:
7939 : 9945 : {
7940 : 9945 : tree _q20 = TREE_OPERAND (_p0, 0);
7941 : 9945 : tree _q21 = TREE_OPERAND (_p0, 1);
7942 : 9945 : switch (TREE_CODE (_p1))
7943 : : {
7944 : 119 : case MULT_EXPR:
7945 : 119 : {
7946 : 119 : tree _q50 = TREE_OPERAND (_p1, 0);
7947 : 119 : tree _q51 = TREE_OPERAND (_p1, 1);
7948 : 119 : switch (TREE_CODE (_q50))
7949 : : {
7950 : 106 : case TRUNC_DIV_EXPR:
7951 : 106 : {
7952 : 106 : tree _q60 = TREE_OPERAND (_q50, 0);
7953 : 106 : tree _q61 = TREE_OPERAND (_q50, 1);
7954 : 106 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
7955 : : {
7956 : 106 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
7957 : : {
7958 : 94 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7959 : : {
7960 : 0 : {
7961 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7962 : 0 : tree res = generic_simplify_30 (loc, type, _p0, _p1, captures, TRUNC_DIV_EXPR, TRUNC_MOD_EXPR);
7963 : 0 : if (res) return res;
7964 : : }
7965 : : }
7966 : : }
7967 : : }
7968 : : break;
7969 : : }
7970 : 119 : default:;
7971 : : }
7972 : 119 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7973 : : {
7974 : 0 : switch (TREE_CODE (_q51))
7975 : : {
7976 : 0 : case TRUNC_DIV_EXPR:
7977 : 0 : {
7978 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
7979 : 0 : tree _q71 = TREE_OPERAND (_q51, 1);
7980 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
7981 : : {
7982 : 0 : if ((_q71 == _q21 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q21, 0) && types_match (_q71, _q21)))
7983 : : {
7984 : 0 : {
7985 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7986 : 0 : tree res = generic_simplify_30 (loc, type, _p0, _p1, captures, TRUNC_DIV_EXPR, TRUNC_MOD_EXPR);
7987 : 0 : if (res) return res;
7988 : : }
7989 : : }
7990 : : }
7991 : : break;
7992 : : }
7993 : : default:;
7994 : : }
7995 : : }
7996 : : break;
7997 : : }
7998 : : default:;
7999 : : }
8000 : : break;
8001 : : }
8002 : 0 : case CEIL_MOD_EXPR:
8003 : 0 : {
8004 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
8005 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
8006 : 0 : switch (TREE_CODE (_p1))
8007 : : {
8008 : 0 : case MULT_EXPR:
8009 : 0 : {
8010 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
8011 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
8012 : 0 : switch (TREE_CODE (_q50))
8013 : : {
8014 : 0 : case CEIL_DIV_EXPR:
8015 : 0 : {
8016 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
8017 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
8018 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
8019 : : {
8020 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
8021 : : {
8022 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8023 : : {
8024 : 0 : {
8025 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8026 : 0 : tree res = generic_simplify_30 (loc, type, _p0, _p1, captures, CEIL_DIV_EXPR, CEIL_MOD_EXPR);
8027 : 0 : if (res) return res;
8028 : : }
8029 : : }
8030 : : }
8031 : : }
8032 : : break;
8033 : : }
8034 : 0 : default:;
8035 : : }
8036 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
8037 : : {
8038 : 0 : switch (TREE_CODE (_q51))
8039 : : {
8040 : 0 : case CEIL_DIV_EXPR:
8041 : 0 : {
8042 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
8043 : 0 : tree _q71 = TREE_OPERAND (_q51, 1);
8044 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
8045 : : {
8046 : 0 : if ((_q71 == _q21 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q21, 0) && types_match (_q71, _q21)))
8047 : : {
8048 : 0 : {
8049 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8050 : 0 : tree res = generic_simplify_30 (loc, type, _p0, _p1, captures, CEIL_DIV_EXPR, CEIL_MOD_EXPR);
8051 : 0 : if (res) return res;
8052 : : }
8053 : : }
8054 : : }
8055 : : break;
8056 : : }
8057 : : default:;
8058 : : }
8059 : : }
8060 : : break;
8061 : : }
8062 : : default:;
8063 : : }
8064 : : break;
8065 : : }
8066 : 118 : case FLOOR_MOD_EXPR:
8067 : 118 : {
8068 : 118 : tree _q20 = TREE_OPERAND (_p0, 0);
8069 : 118 : tree _q21 = TREE_OPERAND (_p0, 1);
8070 : 118 : switch (TREE_CODE (_p1))
8071 : : {
8072 : 0 : case MULT_EXPR:
8073 : 0 : {
8074 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
8075 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
8076 : 0 : switch (TREE_CODE (_q50))
8077 : : {
8078 : 0 : case FLOOR_DIV_EXPR:
8079 : 0 : {
8080 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
8081 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
8082 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
8083 : : {
8084 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
8085 : : {
8086 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8087 : : {
8088 : 0 : {
8089 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8090 : 0 : tree res = generic_simplify_30 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR, FLOOR_MOD_EXPR);
8091 : 0 : if (res) return res;
8092 : : }
8093 : : }
8094 : : }
8095 : : }
8096 : : break;
8097 : : }
8098 : 0 : default:;
8099 : : }
8100 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
8101 : : {
8102 : 0 : switch (TREE_CODE (_q51))
8103 : : {
8104 : 0 : case FLOOR_DIV_EXPR:
8105 : 0 : {
8106 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
8107 : 0 : tree _q71 = TREE_OPERAND (_q51, 1);
8108 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
8109 : : {
8110 : 0 : if ((_q71 == _q21 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q21, 0) && types_match (_q71, _q21)))
8111 : : {
8112 : 0 : {
8113 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8114 : 0 : tree res = generic_simplify_30 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR, FLOOR_MOD_EXPR);
8115 : 0 : if (res) return res;
8116 : : }
8117 : : }
8118 : : }
8119 : : break;
8120 : : }
8121 : : default:;
8122 : : }
8123 : : }
8124 : : break;
8125 : : }
8126 : : default:;
8127 : : }
8128 : : break;
8129 : : }
8130 : 0 : case ROUND_MOD_EXPR:
8131 : 0 : {
8132 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
8133 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
8134 : 0 : switch (TREE_CODE (_p1))
8135 : : {
8136 : 0 : case MULT_EXPR:
8137 : 0 : {
8138 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
8139 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
8140 : 0 : switch (TREE_CODE (_q50))
8141 : : {
8142 : 0 : case ROUND_DIV_EXPR:
8143 : 0 : {
8144 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
8145 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
8146 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
8147 : : {
8148 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
8149 : : {
8150 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8151 : : {
8152 : 0 : {
8153 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8154 : 0 : tree res = generic_simplify_30 (loc, type, _p0, _p1, captures, ROUND_DIV_EXPR, ROUND_MOD_EXPR);
8155 : 0 : if (res) return res;
8156 : : }
8157 : : }
8158 : : }
8159 : : }
8160 : : break;
8161 : : }
8162 : 0 : default:;
8163 : : }
8164 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
8165 : : {
8166 : 0 : switch (TREE_CODE (_q51))
8167 : : {
8168 : 0 : case ROUND_DIV_EXPR:
8169 : 0 : {
8170 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
8171 : 0 : tree _q71 = TREE_OPERAND (_q51, 1);
8172 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
8173 : : {
8174 : 0 : if ((_q71 == _q21 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q21, 0) && types_match (_q71, _q21)))
8175 : : {
8176 : 0 : {
8177 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8178 : 0 : tree res = generic_simplify_30 (loc, type, _p0, _p1, captures, ROUND_DIV_EXPR, ROUND_MOD_EXPR);
8179 : 0 : if (res) return res;
8180 : : }
8181 : : }
8182 : : }
8183 : : break;
8184 : : }
8185 : : default:;
8186 : : }
8187 : : }
8188 : : break;
8189 : : }
8190 : : default:;
8191 : : }
8192 : : break;
8193 : : }
8194 : 62260142 : default:;
8195 : : }
8196 : 62260142 : switch (TREE_CODE (_p1))
8197 : : {
8198 : 3305440 : case REAL_CST:
8199 : 3305440 : {
8200 : 3305440 : {
8201 : 3305440 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
8202 : 3305440 : if (REAL_VALUE_NEGATIVE (TREE_REAL_CST (captures[1]))
8203 : : )
8204 : : {
8205 : 122540 : {
8206 : 122540 : tree tem = const_unop (NEGATE_EXPR, type, captures[1]);
8207 : 122540 : if (!TREE_OVERFLOW (tem) || !flag_trapping_math
8208 : : )
8209 : : {
8210 : 122540 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1310;
8211 : 122540 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1310;
8212 : 122540 : {
8213 : 122540 : tree res_op0;
8214 : 122540 : res_op0 = captures[0];
8215 : 122540 : tree res_op1;
8216 : 122540 : res_op1 = tem;
8217 : 122540 : tree _r;
8218 : 122540 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
8219 : 122540 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 916, __FILE__, __LINE__, true);
8220 : 122540 : return _r;
8221 : : }
8222 : 3182900 : next_after_fail1310:;
8223 : : }
8224 : : }
8225 : : }
8226 : : }
8227 : 3182900 : break;
8228 : : }
8229 : 62137602 : default:;
8230 : : }
8231 : 62137602 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
8232 : : {
8233 : 1595866 : {
8234 : 1595866 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
8235 : 1595866 : if (SCALAR_FLOAT_TYPE_P (type)
8236 : : )
8237 : : {
8238 : 691 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1311;
8239 : 691 : {
8240 : 691 : tree res_op0;
8241 : 691 : res_op0 = captures[0];
8242 : 691 : tree res_op1;
8243 : 691 : res_op1 = build_real (type, dconst2);
8244 : 691 : tree _r;
8245 : 691 : _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
8246 : 691 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 917, __FILE__, __LINE__, true);
8247 : 691 : return _r;
8248 : : }
8249 : 0 : next_after_fail1311:;
8250 : : }
8251 : : else
8252 : : {
8253 : 1595175 : if (INTEGRAL_TYPE_P (type)
8254 : : )
8255 : : {
8256 : 1595125 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1312;
8257 : 1595125 : {
8258 : 1595125 : tree res_op0;
8259 : 1595125 : res_op0 = captures[0];
8260 : 1595125 : tree res_op1;
8261 : 1595125 : res_op1 = build_int_cst (type, 2);
8262 : 1595125 : tree _r;
8263 : 1595125 : _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
8264 : 1595125 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 918, __FILE__, __LINE__, true);
8265 : 1595125 : return _r;
8266 : : }
8267 : 0 : next_after_fail1312:;
8268 : : }
8269 : : }
8270 : : }
8271 : : }
8272 : 60541786 : switch (TREE_CODE (_p0))
8273 : : {
8274 : 144 : case VEC_COND_EXPR:
8275 : 144 : {
8276 : 144 : tree _q20 = TREE_OPERAND (_p0, 0);
8277 : 144 : tree _q21 = TREE_OPERAND (_p0, 1);
8278 : 144 : tree _q22 = TREE_OPERAND (_p0, 2);
8279 : 144 : switch (TREE_CODE (_p1))
8280 : : {
8281 : 48 : case VEC_COND_EXPR:
8282 : 48 : {
8283 : 48 : tree _q60 = TREE_OPERAND (_p1, 0);
8284 : 48 : tree _q61 = TREE_OPERAND (_p1, 1);
8285 : 48 : tree _q62 = TREE_OPERAND (_p1, 2);
8286 : 48 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
8287 : : {
8288 : 24 : {
8289 : 24 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
8290 : 24 : if (VECTOR_TYPE_P (type)
8291 : 24 : && (TREE_CODE_CLASS (PLUS_EXPR) != tcc_comparison
8292 : : || types_match (type, TREE_TYPE (captures[2]))
8293 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
8294 : : || (optimize_vectors_before_lowering_p ()
8295 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
8296 : : )
8297 : : {
8298 : 24 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1313;
8299 : 24 : {
8300 : 24 : tree res_op0;
8301 : 24 : res_op0 = captures[1];
8302 : 24 : tree res_op1;
8303 : 24 : {
8304 : 24 : tree _o1[2], _r1;
8305 : 24 : _o1[0] = captures[2];
8306 : 24 : _o1[1] = captures[5];
8307 : 24 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
8308 : 24 : if (EXPR_P (_r1))
8309 : 0 : goto next_after_fail1313;
8310 : 24 : res_op1 = _r1;
8311 : : }
8312 : 24 : tree res_op2;
8313 : 24 : {
8314 : 24 : tree _o1[2], _r1;
8315 : 24 : _o1[0] = captures[3];
8316 : 24 : _o1[1] = captures[6];
8317 : 24 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
8318 : 24 : if (EXPR_P (_r1))
8319 : 0 : goto next_after_fail1313;
8320 : 24 : res_op2 = _r1;
8321 : : }
8322 : 24 : tree _r;
8323 : 24 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
8324 : 24 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 919, __FILE__, __LINE__, true);
8325 : 24 : return _r;
8326 : : }
8327 : 0 : next_after_fail1313:;
8328 : : }
8329 : : }
8330 : : }
8331 : : break;
8332 : : }
8333 : 120 : default:;
8334 : : }
8335 : 120 : {
8336 : 120 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
8337 : 120 : if (VECTOR_TYPE_P (type)
8338 : 120 : && (TREE_CODE_CLASS (PLUS_EXPR) != tcc_comparison
8339 : : || types_match (type, TREE_TYPE (captures[2]))
8340 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
8341 : : || (optimize_vectors_before_lowering_p ()
8342 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
8343 : : )
8344 : : {
8345 : 120 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1314;
8346 : 120 : {
8347 : 120 : if (! tree_invariant_p (captures[4])) goto next_after_fail1314;
8348 : 26 : tree res_op0;
8349 : 26 : res_op0 = captures[1];
8350 : 26 : tree res_op1;
8351 : 26 : {
8352 : 26 : tree _o1[2], _r1;
8353 : 26 : _o1[0] = captures[2];
8354 : 26 : _o1[1] = unshare_expr (captures[4]);
8355 : 26 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
8356 : 26 : if (EXPR_P (_r1))
8357 : 0 : goto next_after_fail1314;
8358 : 26 : res_op1 = _r1;
8359 : : }
8360 : 26 : tree res_op2;
8361 : 26 : {
8362 : 26 : tree _o1[2], _r1;
8363 : 26 : _o1[0] = captures[3];
8364 : 26 : _o1[1] = captures[4];
8365 : 26 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
8366 : 26 : if (EXPR_P (_r1))
8367 : 0 : goto next_after_fail1314;
8368 : 26 : res_op2 = _r1;
8369 : : }
8370 : 26 : tree _r;
8371 : 26 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
8372 : 26 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 920, __FILE__, __LINE__, true);
8373 : 26 : return _r;
8374 : : }
8375 : 94 : next_after_fail1314:;
8376 : : }
8377 : : }
8378 : 94 : if (integer_each_onep (_q21))
8379 : : {
8380 : 0 : if (integer_zerop (_q22))
8381 : : {
8382 : 0 : {
8383 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _p0, _q20, _q21, _q22 };
8384 : 0 : tree res = generic_simplify_31 (loc, type, _p0, _p1, captures);
8385 : 0 : if (res) return res;
8386 : : }
8387 : : }
8388 : : }
8389 : : break;
8390 : : }
8391 : 60541736 : default:;
8392 : : }
8393 : 60541736 : switch (TREE_CODE (_p1))
8394 : : {
8395 : 40 : case VEC_COND_EXPR:
8396 : 40 : {
8397 : 40 : tree _q30 = TREE_OPERAND (_p1, 0);
8398 : 40 : tree _q31 = TREE_OPERAND (_p1, 1);
8399 : 40 : tree _q32 = TREE_OPERAND (_p1, 2);
8400 : 40 : {
8401 : 40 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
8402 : 40 : if (VECTOR_TYPE_P (type)
8403 : 40 : && (TREE_CODE_CLASS (PLUS_EXPR) != tcc_comparison
8404 : : || types_match (type, TREE_TYPE (captures[3]))
8405 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
8406 : : || (optimize_vectors_before_lowering_p ()
8407 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
8408 : : )
8409 : : {
8410 : 40 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1315;
8411 : 40 : {
8412 : 40 : if (! tree_invariant_p (captures[0])) goto next_after_fail1315;
8413 : 0 : tree res_op0;
8414 : 0 : res_op0 = captures[2];
8415 : 0 : tree res_op1;
8416 : 0 : {
8417 : 0 : tree _o1[2], _r1;
8418 : 0 : _o1[0] = unshare_expr (captures[0]);
8419 : 0 : _o1[1] = captures[3];
8420 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
8421 : 0 : if (EXPR_P (_r1))
8422 : 0 : goto next_after_fail1315;
8423 : 0 : res_op1 = _r1;
8424 : : }
8425 : 0 : tree res_op2;
8426 : 0 : {
8427 : 0 : tree _o1[2], _r1;
8428 : 0 : _o1[0] = captures[0];
8429 : 0 : _o1[1] = captures[4];
8430 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
8431 : 0 : if (EXPR_P (_r1))
8432 : 0 : goto next_after_fail1315;
8433 : 0 : res_op2 = _r1;
8434 : : }
8435 : 0 : tree _r;
8436 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
8437 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 921, __FILE__, __LINE__, true);
8438 : 0 : return _r;
8439 : : }
8440 : 40 : next_after_fail1315:;
8441 : : }
8442 : : }
8443 : 40 : break;
8444 : : }
8445 : 300721 : case VIEW_CONVERT_EXPR:
8446 : 300721 : {
8447 : 300721 : tree _q30 = TREE_OPERAND (_p1, 0);
8448 : 300721 : switch (TREE_CODE (_q30))
8449 : : {
8450 : 0 : case VEC_COND_EXPR:
8451 : 0 : {
8452 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
8453 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
8454 : 0 : tree _q42 = TREE_OPERAND (_q30, 2);
8455 : 0 : if (integer_each_onep (_q41))
8456 : : {
8457 : 0 : if (integer_zerop (_q42))
8458 : : {
8459 : 0 : {
8460 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q30, _q40, _q41, _q42 };
8461 : 0 : tree res = generic_simplify_31 (loc, type, _p0, _p1, captures);
8462 : 0 : if (res) return res;
8463 : : }
8464 : : }
8465 : : }
8466 : : break;
8467 : : }
8468 : : default:;
8469 : : }
8470 : : break;
8471 : : }
8472 : 60541736 : default:;
8473 : : }
8474 : 60541736 : switch (TREE_CODE (_p0))
8475 : : {
8476 : 297547 : case VIEW_CONVERT_EXPR:
8477 : 297547 : {
8478 : 297547 : tree _q20 = TREE_OPERAND (_p0, 0);
8479 : 297547 : switch (TREE_CODE (_q20))
8480 : : {
8481 : 0 : case VEC_COND_EXPR:
8482 : 0 : {
8483 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8484 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8485 : 0 : tree _q32 = TREE_OPERAND (_q20, 2);
8486 : 0 : if (integer_each_onep (_q31))
8487 : : {
8488 : 0 : if (integer_zerop (_q32))
8489 : : {
8490 : 0 : {
8491 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q20, _q30, _q31, _q32 };
8492 : 0 : tree res = generic_simplify_31 (loc, type, _p0, _p1, captures);
8493 : 0 : if (res) return res;
8494 : : }
8495 : : }
8496 : : }
8497 : : break;
8498 : : }
8499 : : default:;
8500 : : }
8501 : : break;
8502 : : }
8503 : 60541736 : default:;
8504 : : }
8505 : 60541736 : switch (TREE_CODE (_p1))
8506 : : {
8507 : 40 : case VEC_COND_EXPR:
8508 : 40 : {
8509 : 40 : tree _q30 = TREE_OPERAND (_p1, 0);
8510 : 40 : tree _q31 = TREE_OPERAND (_p1, 1);
8511 : 40 : tree _q32 = TREE_OPERAND (_p1, 2);
8512 : 40 : if (integer_each_onep (_q31))
8513 : : {
8514 : 0 : if (integer_zerop (_q32))
8515 : : {
8516 : 0 : {
8517 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
8518 : 0 : tree res = generic_simplify_31 (loc, type, _p0, _p1, captures);
8519 : 0 : if (res) return res;
8520 : : }
8521 : : }
8522 : : }
8523 : : break;
8524 : : }
8525 : 60541736 : default:;
8526 : : }
8527 : 60541736 : switch (TREE_CODE (_p0))
8528 : : {
8529 : 16901747 : CASE_CONVERT:
8530 : 16901747 : {
8531 : 16901747 : tree _q20 = TREE_OPERAND (_p0, 0);
8532 : 16901747 : switch (TREE_CODE (_q20))
8533 : : {
8534 : 0 : case LT_EXPR:
8535 : 0 : {
8536 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8537 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8538 : 0 : if (integer_minus_onep (_p1))
8539 : : {
8540 : 0 : {
8541 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
8542 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR, UNGE_EXPR);
8543 : 0 : if (res) return res;
8544 : : }
8545 : : }
8546 : : break;
8547 : : }
8548 : 0 : case LE_EXPR:
8549 : 0 : {
8550 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8551 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8552 : 0 : if (integer_minus_onep (_p1))
8553 : : {
8554 : 0 : {
8555 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
8556 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR, UNGT_EXPR);
8557 : 0 : if (res) return res;
8558 : : }
8559 : : }
8560 : : break;
8561 : : }
8562 : 78 : case EQ_EXPR:
8563 : 78 : {
8564 : 78 : tree _q30 = TREE_OPERAND (_q20, 0);
8565 : 78 : tree _q31 = TREE_OPERAND (_q20, 1);
8566 : 78 : if (integer_minus_onep (_p1))
8567 : : {
8568 : 0 : {
8569 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
8570 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR, NE_EXPR);
8571 : 0 : if (res) return res;
8572 : : }
8573 : : }
8574 : : break;
8575 : : }
8576 : 212 : case NE_EXPR:
8577 : 212 : {
8578 : 212 : tree _q30 = TREE_OPERAND (_q20, 0);
8579 : 212 : tree _q31 = TREE_OPERAND (_q20, 1);
8580 : 212 : if (integer_minus_onep (_p1))
8581 : : {
8582 : 0 : {
8583 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
8584 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR, EQ_EXPR);
8585 : 0 : if (res) return res;
8586 : : }
8587 : : }
8588 : : break;
8589 : : }
8590 : 12 : case GE_EXPR:
8591 : 12 : {
8592 : 12 : tree _q30 = TREE_OPERAND (_q20, 0);
8593 : 12 : tree _q31 = TREE_OPERAND (_q20, 1);
8594 : 12 : if (integer_minus_onep (_p1))
8595 : : {
8596 : 0 : {
8597 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
8598 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, GE_EXPR, LT_EXPR, UNLT_EXPR);
8599 : 0 : if (res) return res;
8600 : : }
8601 : : }
8602 : : break;
8603 : : }
8604 : 1 : case GT_EXPR:
8605 : 1 : {
8606 : 1 : tree _q30 = TREE_OPERAND (_q20, 0);
8607 : 1 : tree _q31 = TREE_OPERAND (_q20, 1);
8608 : 1 : if (integer_minus_onep (_p1))
8609 : : {
8610 : 0 : {
8611 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
8612 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR, UNLE_EXPR);
8613 : 0 : if (res) return res;
8614 : : }
8615 : : }
8616 : : break;
8617 : : }
8618 : 0 : case UNORDERED_EXPR:
8619 : 0 : {
8620 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8621 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8622 : 0 : if (integer_minus_onep (_p1))
8623 : : {
8624 : 0 : {
8625 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
8626 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, UNORDERED_EXPR, ORDERED_EXPR, ORDERED_EXPR);
8627 : 0 : if (res) return res;
8628 : : }
8629 : : }
8630 : : break;
8631 : : }
8632 : 0 : case ORDERED_EXPR:
8633 : 0 : {
8634 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8635 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8636 : 0 : if (integer_minus_onep (_p1))
8637 : : {
8638 : 0 : {
8639 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
8640 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, ORDERED_EXPR, UNORDERED_EXPR, UNORDERED_EXPR);
8641 : 0 : if (res) return res;
8642 : : }
8643 : : }
8644 : : break;
8645 : : }
8646 : 0 : case UNLT_EXPR:
8647 : 0 : {
8648 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8649 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8650 : 0 : if (integer_minus_onep (_p1))
8651 : : {
8652 : 0 : {
8653 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
8654 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, UNLT_EXPR, GE_EXPR, GE_EXPR);
8655 : 0 : if (res) return res;
8656 : : }
8657 : : }
8658 : : break;
8659 : : }
8660 : 0 : case UNLE_EXPR:
8661 : 0 : {
8662 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8663 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8664 : 0 : if (integer_minus_onep (_p1))
8665 : : {
8666 : 0 : {
8667 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
8668 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, UNLE_EXPR, GT_EXPR, GT_EXPR);
8669 : 0 : if (res) return res;
8670 : : }
8671 : : }
8672 : : break;
8673 : : }
8674 : 0 : case UNGT_EXPR:
8675 : 0 : {
8676 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8677 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8678 : 0 : if (integer_minus_onep (_p1))
8679 : : {
8680 : 0 : {
8681 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
8682 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, UNGT_EXPR, LE_EXPR, LE_EXPR);
8683 : 0 : if (res) return res;
8684 : : }
8685 : : }
8686 : : break;
8687 : : }
8688 : 0 : case UNGE_EXPR:
8689 : 0 : {
8690 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8691 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8692 : 0 : if (integer_minus_onep (_p1))
8693 : : {
8694 : 0 : {
8695 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
8696 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, UNGE_EXPR, LT_EXPR, LT_EXPR);
8697 : 0 : if (res) return res;
8698 : : }
8699 : : }
8700 : : break;
8701 : : }
8702 : 0 : case UNEQ_EXPR:
8703 : 0 : {
8704 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8705 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8706 : 0 : if (integer_minus_onep (_p1))
8707 : : {
8708 : 0 : {
8709 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
8710 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, UNEQ_EXPR, LTGT_EXPR, LTGT_EXPR);
8711 : 0 : if (res) return res;
8712 : : }
8713 : : }
8714 : : break;
8715 : : }
8716 : 0 : case LTGT_EXPR:
8717 : 0 : {
8718 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8719 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8720 : 0 : if (integer_minus_onep (_p1))
8721 : : {
8722 : 0 : {
8723 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
8724 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, LTGT_EXPR, UNEQ_EXPR, UNEQ_EXPR);
8725 : 0 : if (res) return res;
8726 : : }
8727 : : }
8728 : : break;
8729 : : }
8730 : : default:;
8731 : : }
8732 : : break;
8733 : : }
8734 : 155 : case LT_EXPR:
8735 : 155 : {
8736 : 155 : tree _q20 = TREE_OPERAND (_p0, 0);
8737 : 155 : tree _q21 = TREE_OPERAND (_p0, 1);
8738 : 155 : if (integer_minus_onep (_p1))
8739 : : {
8740 : 0 : {
8741 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8742 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR, UNGE_EXPR);
8743 : 0 : if (res) return res;
8744 : : }
8745 : : }
8746 : : break;
8747 : : }
8748 : 49 : case LE_EXPR:
8749 : 49 : {
8750 : 49 : tree _q20 = TREE_OPERAND (_p0, 0);
8751 : 49 : tree _q21 = TREE_OPERAND (_p0, 1);
8752 : 49 : if (integer_minus_onep (_p1))
8753 : : {
8754 : 0 : {
8755 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8756 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR, UNGT_EXPR);
8757 : 0 : if (res) return res;
8758 : : }
8759 : : }
8760 : : break;
8761 : : }
8762 : 42162 : case EQ_EXPR:
8763 : 42162 : {
8764 : 42162 : tree _q20 = TREE_OPERAND (_p0, 0);
8765 : 42162 : tree _q21 = TREE_OPERAND (_p0, 1);
8766 : 42162 : if (integer_minus_onep (_p1))
8767 : : {
8768 : 23 : {
8769 : 23 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8770 : 23 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR, NE_EXPR);
8771 : 23 : if (res) return res;
8772 : : }
8773 : : }
8774 : : break;
8775 : : }
8776 : 1670 : case NE_EXPR:
8777 : 1670 : {
8778 : 1670 : tree _q20 = TREE_OPERAND (_p0, 0);
8779 : 1670 : tree _q21 = TREE_OPERAND (_p0, 1);
8780 : 1670 : if (integer_minus_onep (_p1))
8781 : : {
8782 : 33 : {
8783 : 33 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8784 : 33 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR, EQ_EXPR);
8785 : 33 : if (res) return res;
8786 : : }
8787 : : }
8788 : : break;
8789 : : }
8790 : 35 : case GE_EXPR:
8791 : 35 : {
8792 : 35 : tree _q20 = TREE_OPERAND (_p0, 0);
8793 : 35 : tree _q21 = TREE_OPERAND (_p0, 1);
8794 : 35 : if (integer_minus_onep (_p1))
8795 : : {
8796 : 0 : {
8797 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8798 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, GE_EXPR, LT_EXPR, UNLT_EXPR);
8799 : 0 : if (res) return res;
8800 : : }
8801 : : }
8802 : : break;
8803 : : }
8804 : 103 : case GT_EXPR:
8805 : 103 : {
8806 : 103 : tree _q20 = TREE_OPERAND (_p0, 0);
8807 : 103 : tree _q21 = TREE_OPERAND (_p0, 1);
8808 : 103 : if (integer_minus_onep (_p1))
8809 : : {
8810 : 0 : {
8811 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8812 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR, UNLE_EXPR);
8813 : 0 : if (res) return res;
8814 : : }
8815 : : }
8816 : : break;
8817 : : }
8818 : 0 : case UNORDERED_EXPR:
8819 : 0 : {
8820 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
8821 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
8822 : 0 : if (integer_minus_onep (_p1))
8823 : : {
8824 : 0 : {
8825 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8826 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, UNORDERED_EXPR, ORDERED_EXPR, ORDERED_EXPR);
8827 : 0 : if (res) return res;
8828 : : }
8829 : : }
8830 : : break;
8831 : : }
8832 : 0 : case ORDERED_EXPR:
8833 : 0 : {
8834 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
8835 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
8836 : 0 : if (integer_minus_onep (_p1))
8837 : : {
8838 : 0 : {
8839 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8840 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, ORDERED_EXPR, UNORDERED_EXPR, UNORDERED_EXPR);
8841 : 0 : if (res) return res;
8842 : : }
8843 : : }
8844 : : break;
8845 : : }
8846 : 0 : case UNLT_EXPR:
8847 : 0 : {
8848 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
8849 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
8850 : 0 : if (integer_minus_onep (_p1))
8851 : : {
8852 : 0 : {
8853 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8854 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, UNLT_EXPR, GE_EXPR, GE_EXPR);
8855 : 0 : if (res) return res;
8856 : : }
8857 : : }
8858 : : break;
8859 : : }
8860 : 0 : case UNLE_EXPR:
8861 : 0 : {
8862 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
8863 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
8864 : 0 : if (integer_minus_onep (_p1))
8865 : : {
8866 : 0 : {
8867 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8868 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, UNLE_EXPR, GT_EXPR, GT_EXPR);
8869 : 0 : if (res) return res;
8870 : : }
8871 : : }
8872 : : break;
8873 : : }
8874 : 0 : case UNGT_EXPR:
8875 : 0 : {
8876 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
8877 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
8878 : 0 : if (integer_minus_onep (_p1))
8879 : : {
8880 : 0 : {
8881 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8882 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, UNGT_EXPR, LE_EXPR, LE_EXPR);
8883 : 0 : if (res) return res;
8884 : : }
8885 : : }
8886 : : break;
8887 : : }
8888 : 0 : case UNGE_EXPR:
8889 : 0 : {
8890 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
8891 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
8892 : 0 : if (integer_minus_onep (_p1))
8893 : : {
8894 : 0 : {
8895 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8896 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, UNGE_EXPR, LT_EXPR, LT_EXPR);
8897 : 0 : if (res) return res;
8898 : : }
8899 : : }
8900 : : break;
8901 : : }
8902 : 0 : case UNEQ_EXPR:
8903 : 0 : {
8904 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
8905 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
8906 : 0 : if (integer_minus_onep (_p1))
8907 : : {
8908 : 0 : {
8909 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8910 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, UNEQ_EXPR, LTGT_EXPR, LTGT_EXPR);
8911 : 0 : if (res) return res;
8912 : : }
8913 : : }
8914 : : break;
8915 : : }
8916 : 0 : case LTGT_EXPR:
8917 : 0 : {
8918 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
8919 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
8920 : 0 : if (integer_minus_onep (_p1))
8921 : : {
8922 : 0 : {
8923 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8924 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, LTGT_EXPR, UNEQ_EXPR, UNEQ_EXPR);
8925 : 0 : if (res) return res;
8926 : : }
8927 : : }
8928 : : break;
8929 : : }
8930 : 562687 : case RDIV_EXPR:
8931 : 562687 : {
8932 : 562687 : tree _q20 = TREE_OPERAND (_p0, 0);
8933 : 562687 : tree _q21 = TREE_OPERAND (_p0, 1);
8934 : 562687 : switch (TREE_CODE (_p1))
8935 : : {
8936 : 119874 : case RDIV_EXPR:
8937 : 119874 : {
8938 : 119874 : tree _q50 = TREE_OPERAND (_p1, 0);
8939 : 119874 : tree _q51 = TREE_OPERAND (_p1, 1);
8940 : 119874 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8941 : : {
8942 : 1 : {
8943 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
8944 : 1 : tree res = generic_simplify_33 (loc, type, _p0, _p1, captures, PLUS_EXPR);
8945 : 1 : if (res) return res;
8946 : : }
8947 : : }
8948 : : break;
8949 : : }
8950 : : default:;
8951 : : }
8952 : : break;
8953 : : }
8954 : 1648481 : case MINUS_EXPR:
8955 : 1648481 : {
8956 : 1648481 : tree _q20 = TREE_OPERAND (_p0, 0);
8957 : 1648481 : tree _q21 = TREE_OPERAND (_p0, 1);
8958 : 1648481 : switch (TREE_CODE (_q20))
8959 : : {
8960 : 37 : case CALL_EXPR:
8961 : 37 : switch (get_call_combined_fn (_q20))
8962 : : {
8963 : 4 : case CFN_BUILT_IN_POPCOUNT:
8964 : 4 : if (call_expr_nargs (_q20) == 1)
8965 : : {
8966 : 4 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
8967 : 4 : switch (TREE_CODE (_q21))
8968 : : {
8969 : 4 : case CALL_EXPR:
8970 : 4 : switch (get_call_combined_fn (_q21))
8971 : : {
8972 : 4 : case CFN_BUILT_IN_POPCOUNT:
8973 : 4 : if (call_expr_nargs (_q21) == 1)
8974 : : {
8975 : 4 : tree _q50 = CALL_EXPR_ARG (_q21, 0);
8976 : 4 : switch (TREE_CODE (_q50))
8977 : : {
8978 : 2 : case BIT_AND_EXPR:
8979 : 2 : {
8980 : 2 : tree _q60 = TREE_OPERAND (_q50, 0);
8981 : 2 : tree _q61 = TREE_OPERAND (_q50, 1);
8982 : 2 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
8983 : : {
8984 : 1 : switch (TREE_CODE (_p1))
8985 : : {
8986 : 1 : case CALL_EXPR:
8987 : 1 : switch (get_call_combined_fn (_p1))
8988 : : {
8989 : 1 : case CFN_BUILT_IN_POPCOUNT:
8990 : 1 : if (call_expr_nargs (_p1) == 1)
8991 : : {
8992 : 1 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
8993 : 1 : if ((_q90 == _q61 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q61, 0) && types_match (_q90, _q61)))
8994 : : {
8995 : 1 : {
8996 : 1 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q61, _p1 };
8997 : 1 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNT);
8998 : 1 : if (res) return res;
8999 : : }
9000 : : }
9001 : : }
9002 : : break;
9003 : : default:;
9004 : : }
9005 : : break;
9006 : : default:;
9007 : : }
9008 : : }
9009 : 1 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
9010 : : {
9011 : 1 : switch (TREE_CODE (_p1))
9012 : : {
9013 : 1 : case CALL_EXPR:
9014 : 1 : switch (get_call_combined_fn (_p1))
9015 : : {
9016 : 1 : case CFN_BUILT_IN_POPCOUNT:
9017 : 1 : if (call_expr_nargs (_p1) == 1)
9018 : : {
9019 : 1 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
9020 : 1 : if ((_q90 == _q60 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q60, 0) && types_match (_q90, _q60)))
9021 : : {
9022 : 1 : {
9023 : 1 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q60, _p1 };
9024 : 1 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNT);
9025 : 1 : if (res) return res;
9026 : : }
9027 : : }
9028 : : }
9029 : : break;
9030 : : default:;
9031 : : }
9032 : : break;
9033 : : default:;
9034 : : }
9035 : : }
9036 : : break;
9037 : : }
9038 : 2 : case BIT_IOR_EXPR:
9039 : 2 : {
9040 : 2 : tree _q60 = TREE_OPERAND (_q50, 0);
9041 : 2 : tree _q61 = TREE_OPERAND (_q50, 1);
9042 : 2 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
9043 : : {
9044 : 1 : switch (TREE_CODE (_p1))
9045 : : {
9046 : 1 : case CALL_EXPR:
9047 : 1 : switch (get_call_combined_fn (_p1))
9048 : : {
9049 : 1 : case CFN_BUILT_IN_POPCOUNT:
9050 : 1 : if (call_expr_nargs (_p1) == 1)
9051 : : {
9052 : 1 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
9053 : 1 : if ((_q90 == _q61 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q61, 0) && types_match (_q90, _q61)))
9054 : : {
9055 : 1 : {
9056 : 1 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q61, _p1 };
9057 : 1 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNT);
9058 : 1 : if (res) return res;
9059 : : }
9060 : : }
9061 : : }
9062 : : break;
9063 : : default:;
9064 : : }
9065 : : break;
9066 : : default:;
9067 : : }
9068 : : }
9069 : 1 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
9070 : : {
9071 : 1 : switch (TREE_CODE (_p1))
9072 : : {
9073 : 1 : case CALL_EXPR:
9074 : 1 : switch (get_call_combined_fn (_p1))
9075 : : {
9076 : 1 : case CFN_BUILT_IN_POPCOUNT:
9077 : 1 : if (call_expr_nargs (_p1) == 1)
9078 : : {
9079 : 1 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
9080 : 1 : if ((_q90 == _q60 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q60, 0) && types_match (_q90, _q60)))
9081 : : {
9082 : 1 : {
9083 : 1 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q60, _p1 };
9084 : 1 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNT);
9085 : 1 : if (res) return res;
9086 : : }
9087 : : }
9088 : : }
9089 : : break;
9090 : : default:;
9091 : : }
9092 : : break;
9093 : : default:;
9094 : : }
9095 : : }
9096 : : break;
9097 : : }
9098 : : default:;
9099 : : }
9100 : : }
9101 : : break;
9102 : : default:;
9103 : : }
9104 : : break;
9105 : : default:;
9106 : : }
9107 : : }
9108 : : break;
9109 : 0 : case CFN_BUILT_IN_POPCOUNTLL:
9110 : 0 : if (call_expr_nargs (_q20) == 1)
9111 : : {
9112 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
9113 : 0 : switch (TREE_CODE (_q21))
9114 : : {
9115 : 0 : case CALL_EXPR:
9116 : 0 : switch (get_call_combined_fn (_q21))
9117 : : {
9118 : 0 : case CFN_BUILT_IN_POPCOUNTLL:
9119 : 0 : if (call_expr_nargs (_q21) == 1)
9120 : : {
9121 : 0 : tree _q50 = CALL_EXPR_ARG (_q21, 0);
9122 : 0 : switch (TREE_CODE (_q50))
9123 : : {
9124 : 0 : case BIT_AND_EXPR:
9125 : 0 : {
9126 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
9127 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
9128 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
9129 : : {
9130 : 0 : switch (TREE_CODE (_p1))
9131 : : {
9132 : 0 : case CALL_EXPR:
9133 : 0 : switch (get_call_combined_fn (_p1))
9134 : : {
9135 : 0 : case CFN_BUILT_IN_POPCOUNTLL:
9136 : 0 : if (call_expr_nargs (_p1) == 1)
9137 : : {
9138 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
9139 : 0 : if ((_q90 == _q61 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q61, 0) && types_match (_q90, _q61)))
9140 : : {
9141 : 0 : {
9142 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q61, _p1 };
9143 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTLL);
9144 : 0 : if (res) return res;
9145 : : }
9146 : : }
9147 : : }
9148 : : break;
9149 : : default:;
9150 : : }
9151 : : break;
9152 : : default:;
9153 : : }
9154 : : }
9155 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
9156 : : {
9157 : 0 : switch (TREE_CODE (_p1))
9158 : : {
9159 : 0 : case CALL_EXPR:
9160 : 0 : switch (get_call_combined_fn (_p1))
9161 : : {
9162 : 0 : case CFN_BUILT_IN_POPCOUNTLL:
9163 : 0 : if (call_expr_nargs (_p1) == 1)
9164 : : {
9165 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
9166 : 0 : if ((_q90 == _q60 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q60, 0) && types_match (_q90, _q60)))
9167 : : {
9168 : 0 : {
9169 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q60, _p1 };
9170 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTLL);
9171 : 0 : if (res) return res;
9172 : : }
9173 : : }
9174 : : }
9175 : : break;
9176 : : default:;
9177 : : }
9178 : : break;
9179 : : default:;
9180 : : }
9181 : : }
9182 : : break;
9183 : : }
9184 : 0 : case BIT_IOR_EXPR:
9185 : 0 : {
9186 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
9187 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
9188 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
9189 : : {
9190 : 0 : switch (TREE_CODE (_p1))
9191 : : {
9192 : 0 : case CALL_EXPR:
9193 : 0 : switch (get_call_combined_fn (_p1))
9194 : : {
9195 : 0 : case CFN_BUILT_IN_POPCOUNTLL:
9196 : 0 : if (call_expr_nargs (_p1) == 1)
9197 : : {
9198 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
9199 : 0 : if ((_q90 == _q61 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q61, 0) && types_match (_q90, _q61)))
9200 : : {
9201 : 0 : {
9202 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q61, _p1 };
9203 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTLL);
9204 : 0 : if (res) return res;
9205 : : }
9206 : : }
9207 : : }
9208 : : break;
9209 : : default:;
9210 : : }
9211 : : break;
9212 : : default:;
9213 : : }
9214 : : }
9215 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
9216 : : {
9217 : 0 : switch (TREE_CODE (_p1))
9218 : : {
9219 : 0 : case CALL_EXPR:
9220 : 0 : switch (get_call_combined_fn (_p1))
9221 : : {
9222 : 0 : case CFN_BUILT_IN_POPCOUNTLL:
9223 : 0 : if (call_expr_nargs (_p1) == 1)
9224 : : {
9225 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
9226 : 0 : if ((_q90 == _q60 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q60, 0) && types_match (_q90, _q60)))
9227 : : {
9228 : 0 : {
9229 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q60, _p1 };
9230 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTLL);
9231 : 0 : if (res) return res;
9232 : : }
9233 : : }
9234 : : }
9235 : : break;
9236 : : default:;
9237 : : }
9238 : : break;
9239 : : default:;
9240 : : }
9241 : : }
9242 : : break;
9243 : : }
9244 : : default:;
9245 : : }
9246 : : }
9247 : : break;
9248 : : default:;
9249 : : }
9250 : : break;
9251 : : default:;
9252 : : }
9253 : : }
9254 : : break;
9255 : 0 : case CFN_POPCOUNT:
9256 : 0 : if (call_expr_nargs (_q20) == 1)
9257 : : {
9258 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
9259 : 0 : switch (TREE_CODE (_q21))
9260 : : {
9261 : 0 : case CALL_EXPR:
9262 : 0 : switch (get_call_combined_fn (_q21))
9263 : : {
9264 : 0 : case CFN_POPCOUNT:
9265 : 0 : if (call_expr_nargs (_q21) == 1)
9266 : : {
9267 : 0 : tree _q50 = CALL_EXPR_ARG (_q21, 0);
9268 : 0 : switch (TREE_CODE (_q50))
9269 : : {
9270 : 0 : case BIT_AND_EXPR:
9271 : 0 : {
9272 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
9273 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
9274 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
9275 : : {
9276 : 0 : switch (TREE_CODE (_p1))
9277 : : {
9278 : 0 : case CALL_EXPR:
9279 : 0 : switch (get_call_combined_fn (_p1))
9280 : : {
9281 : 0 : case CFN_POPCOUNT:
9282 : 0 : if (call_expr_nargs (_p1) == 1)
9283 : : {
9284 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
9285 : 0 : if ((_q90 == _q61 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q61, 0) && types_match (_q90, _q61)))
9286 : : {
9287 : 0 : {
9288 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q61, _p1 };
9289 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_POPCOUNT);
9290 : 0 : if (res) return res;
9291 : : }
9292 : : }
9293 : : }
9294 : : break;
9295 : : default:;
9296 : : }
9297 : : break;
9298 : : default:;
9299 : : }
9300 : : }
9301 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
9302 : : {
9303 : 0 : switch (TREE_CODE (_p1))
9304 : : {
9305 : 0 : case CALL_EXPR:
9306 : 0 : switch (get_call_combined_fn (_p1))
9307 : : {
9308 : 0 : case CFN_POPCOUNT:
9309 : 0 : if (call_expr_nargs (_p1) == 1)
9310 : : {
9311 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
9312 : 0 : if ((_q90 == _q60 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q60, 0) && types_match (_q90, _q60)))
9313 : : {
9314 : 0 : {
9315 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q60, _p1 };
9316 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_POPCOUNT);
9317 : 0 : if (res) return res;
9318 : : }
9319 : : }
9320 : : }
9321 : : break;
9322 : : default:;
9323 : : }
9324 : : break;
9325 : : default:;
9326 : : }
9327 : : }
9328 : : break;
9329 : : }
9330 : 0 : case BIT_IOR_EXPR:
9331 : 0 : {
9332 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
9333 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
9334 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
9335 : : {
9336 : 0 : switch (TREE_CODE (_p1))
9337 : : {
9338 : 0 : case CALL_EXPR:
9339 : 0 : switch (get_call_combined_fn (_p1))
9340 : : {
9341 : 0 : case CFN_POPCOUNT:
9342 : 0 : if (call_expr_nargs (_p1) == 1)
9343 : : {
9344 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
9345 : 0 : if ((_q90 == _q61 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q61, 0) && types_match (_q90, _q61)))
9346 : : {
9347 : 0 : {
9348 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q61, _p1 };
9349 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_POPCOUNT);
9350 : 0 : if (res) return res;
9351 : : }
9352 : : }
9353 : : }
9354 : : break;
9355 : : default:;
9356 : : }
9357 : : break;
9358 : : default:;
9359 : : }
9360 : : }
9361 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
9362 : : {
9363 : 0 : switch (TREE_CODE (_p1))
9364 : : {
9365 : 0 : case CALL_EXPR:
9366 : 0 : switch (get_call_combined_fn (_p1))
9367 : : {
9368 : 0 : case CFN_POPCOUNT:
9369 : 0 : if (call_expr_nargs (_p1) == 1)
9370 : : {
9371 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
9372 : 0 : if ((_q90 == _q60 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q60, 0) && types_match (_q90, _q60)))
9373 : : {
9374 : 0 : {
9375 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q60, _p1 };
9376 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_POPCOUNT);
9377 : 0 : if (res) return res;
9378 : : }
9379 : : }
9380 : : }
9381 : : break;
9382 : : default:;
9383 : : }
9384 : : break;
9385 : : default:;
9386 : : }
9387 : : }
9388 : : break;
9389 : : }
9390 : : default:;
9391 : : }
9392 : : }
9393 : : break;
9394 : : default:;
9395 : : }
9396 : : break;
9397 : : default:;
9398 : : }
9399 : : }
9400 : : break;
9401 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
9402 : 0 : if (call_expr_nargs (_q20) == 1)
9403 : : {
9404 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
9405 : 0 : switch (TREE_CODE (_q21))
9406 : : {
9407 : 0 : case CALL_EXPR:
9408 : 0 : switch (get_call_combined_fn (_q21))
9409 : : {
9410 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
9411 : 0 : if (call_expr_nargs (_q21) == 1)
9412 : : {
9413 : 0 : tree _q50 = CALL_EXPR_ARG (_q21, 0);
9414 : 0 : switch (TREE_CODE (_q50))
9415 : : {
9416 : 0 : case BIT_AND_EXPR:
9417 : 0 : {
9418 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
9419 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
9420 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
9421 : : {
9422 : 0 : switch (TREE_CODE (_p1))
9423 : : {
9424 : 0 : case CALL_EXPR:
9425 : 0 : switch (get_call_combined_fn (_p1))
9426 : : {
9427 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
9428 : 0 : if (call_expr_nargs (_p1) == 1)
9429 : : {
9430 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
9431 : 0 : if ((_q90 == _q61 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q61, 0) && types_match (_q90, _q61)))
9432 : : {
9433 : 0 : {
9434 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q61, _p1 };
9435 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
9436 : 0 : if (res) return res;
9437 : : }
9438 : : }
9439 : : }
9440 : : break;
9441 : : default:;
9442 : : }
9443 : : break;
9444 : : default:;
9445 : : }
9446 : : }
9447 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
9448 : : {
9449 : 0 : switch (TREE_CODE (_p1))
9450 : : {
9451 : 0 : case CALL_EXPR:
9452 : 0 : switch (get_call_combined_fn (_p1))
9453 : : {
9454 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
9455 : 0 : if (call_expr_nargs (_p1) == 1)
9456 : : {
9457 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
9458 : 0 : if ((_q90 == _q60 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q60, 0) && types_match (_q90, _q60)))
9459 : : {
9460 : 0 : {
9461 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q60, _p1 };
9462 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
9463 : 0 : if (res) return res;
9464 : : }
9465 : : }
9466 : : }
9467 : : break;
9468 : : default:;
9469 : : }
9470 : : break;
9471 : : default:;
9472 : : }
9473 : : }
9474 : : break;
9475 : : }
9476 : 0 : case BIT_IOR_EXPR:
9477 : 0 : {
9478 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
9479 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
9480 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
9481 : : {
9482 : 0 : switch (TREE_CODE (_p1))
9483 : : {
9484 : 0 : case CALL_EXPR:
9485 : 0 : switch (get_call_combined_fn (_p1))
9486 : : {
9487 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
9488 : 0 : if (call_expr_nargs (_p1) == 1)
9489 : : {
9490 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
9491 : 0 : if ((_q90 == _q61 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q61, 0) && types_match (_q90, _q61)))
9492 : : {
9493 : 0 : {
9494 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q61, _p1 };
9495 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
9496 : 0 : if (res) return res;
9497 : : }
9498 : : }
9499 : : }
9500 : : break;
9501 : : default:;
9502 : : }
9503 : : break;
9504 : : default:;
9505 : : }
9506 : : }
9507 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
9508 : : {
9509 : 0 : switch (TREE_CODE (_p1))
9510 : : {
9511 : 0 : case CALL_EXPR:
9512 : 0 : switch (get_call_combined_fn (_p1))
9513 : : {
9514 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
9515 : 0 : if (call_expr_nargs (_p1) == 1)
9516 : : {
9517 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
9518 : 0 : if ((_q90 == _q60 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q60, 0) && types_match (_q90, _q60)))
9519 : : {
9520 : 0 : {
9521 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q60, _p1 };
9522 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
9523 : 0 : if (res) return res;
9524 : : }
9525 : : }
9526 : : }
9527 : : break;
9528 : : default:;
9529 : : }
9530 : : break;
9531 : : default:;
9532 : : }
9533 : : }
9534 : : break;
9535 : : }
9536 : : default:;
9537 : : }
9538 : : }
9539 : : break;
9540 : : default:;
9541 : : }
9542 : : break;
9543 : : default:;
9544 : : }
9545 : : }
9546 : : break;
9547 : 0 : case CFN_BUILT_IN_POPCOUNTL:
9548 : 0 : if (call_expr_nargs (_q20) == 1)
9549 : : {
9550 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
9551 : 0 : switch (TREE_CODE (_q21))
9552 : : {
9553 : 0 : case CALL_EXPR:
9554 : 0 : switch (get_call_combined_fn (_q21))
9555 : : {
9556 : 0 : case CFN_BUILT_IN_POPCOUNTL:
9557 : 0 : if (call_expr_nargs (_q21) == 1)
9558 : : {
9559 : 0 : tree _q50 = CALL_EXPR_ARG (_q21, 0);
9560 : 0 : switch (TREE_CODE (_q50))
9561 : : {
9562 : 0 : case BIT_AND_EXPR:
9563 : 0 : {
9564 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
9565 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
9566 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
9567 : : {
9568 : 0 : switch (TREE_CODE (_p1))
9569 : : {
9570 : 0 : case CALL_EXPR:
9571 : 0 : switch (get_call_combined_fn (_p1))
9572 : : {
9573 : 0 : case CFN_BUILT_IN_POPCOUNTL:
9574 : 0 : if (call_expr_nargs (_p1) == 1)
9575 : : {
9576 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
9577 : 0 : if ((_q90 == _q61 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q61, 0) && types_match (_q90, _q61)))
9578 : : {
9579 : 0 : {
9580 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q61, _p1 };
9581 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTL);
9582 : 0 : if (res) return res;
9583 : : }
9584 : : }
9585 : : }
9586 : : break;
9587 : : default:;
9588 : : }
9589 : : break;
9590 : : default:;
9591 : : }
9592 : : }
9593 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
9594 : : {
9595 : 0 : switch (TREE_CODE (_p1))
9596 : : {
9597 : 0 : case CALL_EXPR:
9598 : 0 : switch (get_call_combined_fn (_p1))
9599 : : {
9600 : 0 : case CFN_BUILT_IN_POPCOUNTL:
9601 : 0 : if (call_expr_nargs (_p1) == 1)
9602 : : {
9603 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
9604 : 0 : if ((_q90 == _q60 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q60, 0) && types_match (_q90, _q60)))
9605 : : {
9606 : 0 : {
9607 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q60, _p1 };
9608 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTL);
9609 : 0 : if (res) return res;
9610 : : }
9611 : : }
9612 : : }
9613 : : break;
9614 : : default:;
9615 : : }
9616 : : break;
9617 : : default:;
9618 : : }
9619 : : }
9620 : : break;
9621 : : }
9622 : 0 : case BIT_IOR_EXPR:
9623 : 0 : {
9624 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
9625 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
9626 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
9627 : : {
9628 : 0 : switch (TREE_CODE (_p1))
9629 : : {
9630 : 0 : case CALL_EXPR:
9631 : 0 : switch (get_call_combined_fn (_p1))
9632 : : {
9633 : 0 : case CFN_BUILT_IN_POPCOUNTL:
9634 : 0 : if (call_expr_nargs (_p1) == 1)
9635 : : {
9636 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
9637 : 0 : if ((_q90 == _q61 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q61, 0) && types_match (_q90, _q61)))
9638 : : {
9639 : 0 : {
9640 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q61, _p1 };
9641 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTL);
9642 : 0 : if (res) return res;
9643 : : }
9644 : : }
9645 : : }
9646 : : break;
9647 : : default:;
9648 : : }
9649 : : break;
9650 : : default:;
9651 : : }
9652 : : }
9653 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
9654 : : {
9655 : 0 : switch (TREE_CODE (_p1))
9656 : : {
9657 : 0 : case CALL_EXPR:
9658 : 0 : switch (get_call_combined_fn (_p1))
9659 : : {
9660 : 0 : case CFN_BUILT_IN_POPCOUNTL:
9661 : 0 : if (call_expr_nargs (_p1) == 1)
9662 : : {
9663 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
9664 : 0 : if ((_q90 == _q60 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q60, 0) && types_match (_q90, _q60)))
9665 : : {
9666 : 0 : {
9667 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q60, _p1 };
9668 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTL);
9669 : 0 : if (res) return res;
9670 : : }
9671 : : }
9672 : : }
9673 : : break;
9674 : : default:;
9675 : : }
9676 : : break;
9677 : : default:;
9678 : : }
9679 : : }
9680 : : break;
9681 : : }
9682 : : default:;
9683 : : }
9684 : : }
9685 : : break;
9686 : : default:;
9687 : : }
9688 : : break;
9689 : : default:;
9690 : : }
9691 : : }
9692 : : break;
9693 : : default:;
9694 : : }
9695 : : break;
9696 : : default:;
9697 : : }
9698 : : break;
9699 : : }
9700 : 1 : case VEC_PERM_EXPR:
9701 : 1 : {
9702 : 1 : tree _q20 = TREE_OPERAND (_p0, 0);
9703 : 1 : tree _q21 = TREE_OPERAND (_p0, 1);
9704 : 1 : tree _q22 = TREE_OPERAND (_p0, 2);
9705 : 1 : switch (TREE_CODE (_q20))
9706 : : {
9707 : 0 : case MULT_EXPR:
9708 : 0 : {
9709 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
9710 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
9711 : 0 : if (tree_vec_same_elem_p (_q31))
9712 : : {
9713 : 0 : if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
9714 : : {
9715 : 0 : {
9716 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q22, _p1 };
9717 : 0 : tree res = generic_simplify_38 (loc, type, _p0, _p1, captures);
9718 : 0 : if (res) return res;
9719 : : }
9720 : : }
9721 : : }
9722 : 0 : if (tree_vec_same_elem_p (_q30))
9723 : : {
9724 : 0 : if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
9725 : : {
9726 : 0 : {
9727 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q31, _q30, _q22, _p1 };
9728 : 0 : tree res = generic_simplify_38 (loc, type, _p0, _p1, captures);
9729 : 0 : if (res) return res;
9730 : : }
9731 : : }
9732 : : }
9733 : : break;
9734 : : }
9735 : 1 : default:;
9736 : : }
9737 : 1 : if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
9738 : : {
9739 : 0 : switch (TREE_CODE (_p1))
9740 : : {
9741 : 0 : case VEC_PERM_EXPR:
9742 : 0 : {
9743 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
9744 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
9745 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
9746 : 0 : if ((_q61 == _q60 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q60, 0) && types_match (_q61, _q60)))
9747 : : {
9748 : 0 : if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
9749 : : {
9750 : 0 : {
9751 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q22, _q60 };
9752 : 0 : if (VECTOR_INTEGER_TYPE_P (type)
9753 : : )
9754 : : {
9755 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1316;
9756 : 0 : {
9757 : 0 : tree res_op0;
9758 : 0 : {
9759 : 0 : tree _o1[2], _r1;
9760 : 0 : _o1[0] = captures[0];
9761 : 0 : _o1[1] = captures[2];
9762 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
9763 : 0 : captures[3] = _r1;
9764 : : }
9765 : 0 : res_op0 = unshare_expr (captures[3]);
9766 : 0 : tree res_op1;
9767 : 0 : res_op1 = captures[3];
9768 : 0 : tree res_op2;
9769 : 0 : res_op2 = captures[1];
9770 : 0 : tree _r;
9771 : 0 : _r = fold_build3_loc (loc, VEC_PERM_EXPR, type, res_op0, res_op1, res_op2);
9772 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 922, __FILE__, __LINE__, true);
9773 : 0 : return _r;
9774 : : }
9775 : 0 : next_after_fail1316:;
9776 : : }
9777 : : }
9778 : : }
9779 : : }
9780 : : break;
9781 : : }
9782 : 0 : default:;
9783 : : }
9784 : 0 : switch (TREE_CODE (_q22))
9785 : : {
9786 : 0 : case VECTOR_CST:
9787 : 0 : {
9788 : 0 : switch (TREE_CODE (_p1))
9789 : : {
9790 : 0 : case VEC_PERM_EXPR:
9791 : 0 : {
9792 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
9793 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
9794 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
9795 : 0 : if ((_q61 == _q60 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q60, 0) && types_match (_q61, _q60)))
9796 : : {
9797 : 0 : if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
9798 : : {
9799 : 0 : switch (TREE_CODE (_q62))
9800 : : {
9801 : 0 : case VECTOR_CST:
9802 : 0 : {
9803 : 0 : {
9804 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q22, _q60 };
9805 : 0 : tree res = generic_simplify_39 (loc, type, _p0, _p1, captures, PLUS_EXPR);
9806 : 0 : if (res) return res;
9807 : : }
9808 : 0 : break;
9809 : : }
9810 : : default:;
9811 : : }
9812 : : }
9813 : : }
9814 : : break;
9815 : : }
9816 : : default:;
9817 : : }
9818 : : break;
9819 : : }
9820 : : default:;
9821 : : }
9822 : : }
9823 : : break;
9824 : : }
9825 : 1162447 : case CALL_EXPR:
9826 : 1162447 : switch (get_call_combined_fn (_p0))
9827 : : {
9828 : 9 : case CFN_BUILT_IN_LOG:
9829 : 9 : if (call_expr_nargs (_p0) == 1)
9830 : : {
9831 : 9 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9832 : 9 : switch (TREE_CODE (_p1))
9833 : : {
9834 : 0 : case CALL_EXPR:
9835 : 0 : switch (get_call_combined_fn (_p1))
9836 : : {
9837 : 0 : case CFN_BUILT_IN_LOG:
9838 : 0 : if (call_expr_nargs (_p1) == 1)
9839 : : {
9840 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9841 : 0 : {
9842 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
9843 : 0 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOG);
9844 : 0 : if (res) return res;
9845 : : }
9846 : : }
9847 : : break;
9848 : : default:;
9849 : : }
9850 : : break;
9851 : : default:;
9852 : : }
9853 : : }
9854 : : break;
9855 : 450 : case CFN_BUILT_IN_POPCOUNT:
9856 : 450 : if (call_expr_nargs (_p0) == 1)
9857 : : {
9858 : 450 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9859 : 450 : switch (TREE_CODE (_p1))
9860 : : {
9861 : 22 : case CALL_EXPR:
9862 : 22 : switch (get_call_combined_fn (_p1))
9863 : : {
9864 : 22 : case CFN_BUILT_IN_POPCOUNT:
9865 : 22 : if (call_expr_nargs (_p1) == 1)
9866 : : {
9867 : 22 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9868 : 22 : {
9869 : 22 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
9870 : 22 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNT);
9871 : 22 : if (res) return res;
9872 : : }
9873 : : }
9874 : : break;
9875 : : default:;
9876 : : }
9877 : : break;
9878 : 449 : default:;
9879 : : }
9880 : 449 : switch (TREE_CODE (_q20))
9881 : : {
9882 : 9 : case BIT_AND_EXPR:
9883 : 9 : {
9884 : 9 : tree _q30 = TREE_OPERAND (_q20, 0);
9885 : 9 : tree _q31 = TREE_OPERAND (_q20, 1);
9886 : 9 : switch (TREE_CODE (_p1))
9887 : : {
9888 : 9 : case CALL_EXPR:
9889 : 9 : switch (get_call_combined_fn (_p1))
9890 : : {
9891 : 9 : case CFN_BUILT_IN_POPCOUNT:
9892 : 9 : if (call_expr_nargs (_p1) == 1)
9893 : : {
9894 : 9 : tree _q60 = CALL_EXPR_ARG (_p1, 0);
9895 : 9 : switch (TREE_CODE (_q60))
9896 : : {
9897 : 9 : case BIT_IOR_EXPR:
9898 : 9 : {
9899 : 9 : tree _q70 = TREE_OPERAND (_q60, 0);
9900 : 9 : tree _q71 = TREE_OPERAND (_q60, 1);
9901 : 9 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
9902 : : {
9903 : 1 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
9904 : : {
9905 : 1 : {
9906 : 1 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _q60 };
9907 : 1 : tree res = generic_simplify_36 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNT);
9908 : 1 : if (res) return res;
9909 : : }
9910 : : }
9911 : : }
9912 : 8 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
9913 : : {
9914 : 1 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
9915 : : {
9916 : 1 : {
9917 : 1 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _q60 };
9918 : 1 : tree res = generic_simplify_36 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNT);
9919 : 1 : if (res) return res;
9920 : : }
9921 : : }
9922 : : }
9923 : : break;
9924 : : }
9925 : : default:;
9926 : : }
9927 : : }
9928 : : break;
9929 : : default:;
9930 : : }
9931 : : break;
9932 : : default:;
9933 : : }
9934 : : break;
9935 : : }
9936 : 2 : case BIT_IOR_EXPR:
9937 : 2 : {
9938 : 2 : tree _q30 = TREE_OPERAND (_q20, 0);
9939 : 2 : tree _q31 = TREE_OPERAND (_q20, 1);
9940 : 2 : switch (TREE_CODE (_p1))
9941 : : {
9942 : 2 : case CALL_EXPR:
9943 : 2 : switch (get_call_combined_fn (_p1))
9944 : : {
9945 : 2 : case CFN_BUILT_IN_POPCOUNT:
9946 : 2 : if (call_expr_nargs (_p1) == 1)
9947 : : {
9948 : 2 : tree _q60 = CALL_EXPR_ARG (_p1, 0);
9949 : 2 : switch (TREE_CODE (_q60))
9950 : : {
9951 : 2 : case BIT_AND_EXPR:
9952 : 2 : {
9953 : 2 : tree _q70 = TREE_OPERAND (_q60, 0);
9954 : 2 : tree _q71 = TREE_OPERAND (_q60, 1);
9955 : 2 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
9956 : : {
9957 : 1 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
9958 : : {
9959 : 1 : {
9960 : 1 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q60, _q30, _q31, _p0, _q20 };
9961 : 1 : tree res = generic_simplify_36 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNT);
9962 : 1 : if (res) return res;
9963 : : }
9964 : : }
9965 : : }
9966 : 1 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
9967 : : {
9968 : 1 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
9969 : : {
9970 : 1 : {
9971 : 1 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q60, _q31, _q30, _p0, _q20 };
9972 : 1 : tree res = generic_simplify_36 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNT);
9973 : 1 : if (res) return res;
9974 : : }
9975 : : }
9976 : : }
9977 : : break;
9978 : : }
9979 : : default:;
9980 : : }
9981 : : }
9982 : : break;
9983 : : default:;
9984 : : }
9985 : : break;
9986 : : default:;
9987 : : }
9988 : : break;
9989 : : }
9990 : 445 : default:;
9991 : : }
9992 : 445 : switch (TREE_CODE (_p1))
9993 : : {
9994 : 0 : case MINUS_EXPR:
9995 : 0 : {
9996 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
9997 : 0 : tree _q41 = TREE_OPERAND (_p1, 1);
9998 : 0 : switch (TREE_CODE (_q40))
9999 : : {
10000 : 0 : case CALL_EXPR:
10001 : 0 : switch (get_call_combined_fn (_q40))
10002 : : {
10003 : 0 : case CFN_BUILT_IN_POPCOUNT:
10004 : 0 : if (call_expr_nargs (_q40) == 1)
10005 : : {
10006 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
10007 : 0 : switch (TREE_CODE (_q41))
10008 : : {
10009 : 0 : case CALL_EXPR:
10010 : 0 : switch (get_call_combined_fn (_q41))
10011 : : {
10012 : 0 : case CFN_BUILT_IN_POPCOUNT:
10013 : 0 : if (call_expr_nargs (_q41) == 1)
10014 : : {
10015 : 0 : tree _q70 = CALL_EXPR_ARG (_q41, 0);
10016 : 0 : switch (TREE_CODE (_q70))
10017 : : {
10018 : 0 : case BIT_AND_EXPR:
10019 : 0 : {
10020 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
10021 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
10022 : 0 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
10023 : : {
10024 : 0 : if ((_q81 == _q20 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q20, 0) && types_match (_q81, _q20)))
10025 : : {
10026 : 0 : {
10027 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
10028 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNT);
10029 : 0 : if (res) return res;
10030 : : }
10031 : : }
10032 : : }
10033 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
10034 : : {
10035 : 0 : if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
10036 : : {
10037 : 0 : {
10038 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
10039 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNT);
10040 : 0 : if (res) return res;
10041 : : }
10042 : : }
10043 : : }
10044 : : break;
10045 : : }
10046 : 0 : case BIT_IOR_EXPR:
10047 : 0 : {
10048 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
10049 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
10050 : 0 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
10051 : : {
10052 : 0 : if ((_q81 == _q20 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q20, 0) && types_match (_q81, _q20)))
10053 : : {
10054 : 0 : {
10055 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
10056 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNT);
10057 : 0 : if (res) return res;
10058 : : }
10059 : : }
10060 : : }
10061 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
10062 : : {
10063 : 0 : if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
10064 : : {
10065 : 0 : {
10066 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
10067 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNT);
10068 : 0 : if (res) return res;
10069 : : }
10070 : : }
10071 : : }
10072 : : break;
10073 : : }
10074 : : default:;
10075 : : }
10076 : : }
10077 : : break;
10078 : : default:;
10079 : : }
10080 : : break;
10081 : : default:;
10082 : : }
10083 : : }
10084 : : break;
10085 : : default:;
10086 : : }
10087 : : break;
10088 : : default:;
10089 : : }
10090 : : break;
10091 : : }
10092 : : default:;
10093 : : }
10094 : : }
10095 : : break;
10096 : 1 : case CFN_BUILT_IN_LOG2:
10097 : 1 : if (call_expr_nargs (_p0) == 1)
10098 : : {
10099 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10100 : 1 : switch (TREE_CODE (_p1))
10101 : : {
10102 : 1 : case CALL_EXPR:
10103 : 1 : switch (get_call_combined_fn (_p1))
10104 : : {
10105 : 1 : case CFN_BUILT_IN_LOG2:
10106 : 1 : if (call_expr_nargs (_p1) == 1)
10107 : : {
10108 : 1 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
10109 : 1 : {
10110 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
10111 : 1 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOG2);
10112 : 1 : if (res) return res;
10113 : : }
10114 : : }
10115 : : break;
10116 : : default:;
10117 : : }
10118 : : break;
10119 : : default:;
10120 : : }
10121 : : }
10122 : : break;
10123 : 0 : case CFN_BUILT_IN_LOGF:
10124 : 0 : if (call_expr_nargs (_p0) == 1)
10125 : : {
10126 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10127 : 0 : switch (TREE_CODE (_p1))
10128 : : {
10129 : 0 : case CALL_EXPR:
10130 : 0 : switch (get_call_combined_fn (_p1))
10131 : : {
10132 : 0 : case CFN_BUILT_IN_LOGF:
10133 : 0 : if (call_expr_nargs (_p1) == 1)
10134 : : {
10135 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
10136 : 0 : {
10137 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
10138 : 0 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOGF);
10139 : 0 : if (res) return res;
10140 : : }
10141 : : }
10142 : : break;
10143 : : default:;
10144 : : }
10145 : : break;
10146 : : default:;
10147 : : }
10148 : : }
10149 : : break;
10150 : 0 : case CFN_BUILT_IN_LOGL:
10151 : 0 : if (call_expr_nargs (_p0) == 1)
10152 : : {
10153 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10154 : 0 : switch (TREE_CODE (_p1))
10155 : : {
10156 : 0 : case CALL_EXPR:
10157 : 0 : switch (get_call_combined_fn (_p1))
10158 : : {
10159 : 0 : case CFN_BUILT_IN_LOGL:
10160 : 0 : if (call_expr_nargs (_p1) == 1)
10161 : : {
10162 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
10163 : 0 : {
10164 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
10165 : 0 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOGL);
10166 : 0 : if (res) return res;
10167 : : }
10168 : : }
10169 : : break;
10170 : : default:;
10171 : : }
10172 : : break;
10173 : : default:;
10174 : : }
10175 : : }
10176 : : break;
10177 : 26 : case CFN_BUILT_IN_POPCOUNTLL:
10178 : 26 : if (call_expr_nargs (_p0) == 1)
10179 : : {
10180 : 26 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10181 : 26 : switch (TREE_CODE (_p1))
10182 : : {
10183 : 24 : case CALL_EXPR:
10184 : 24 : switch (get_call_combined_fn (_p1))
10185 : : {
10186 : 24 : case CFN_BUILT_IN_POPCOUNTLL:
10187 : 24 : if (call_expr_nargs (_p1) == 1)
10188 : : {
10189 : 24 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
10190 : 24 : {
10191 : 24 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
10192 : 24 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTLL);
10193 : 24 : if (res) return res;
10194 : : }
10195 : : }
10196 : : break;
10197 : : default:;
10198 : : }
10199 : : break;
10200 : 26 : default:;
10201 : : }
10202 : 26 : switch (TREE_CODE (_q20))
10203 : : {
10204 : 0 : case BIT_AND_EXPR:
10205 : 0 : {
10206 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
10207 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
10208 : 0 : switch (TREE_CODE (_p1))
10209 : : {
10210 : 0 : case CALL_EXPR:
10211 : 0 : switch (get_call_combined_fn (_p1))
10212 : : {
10213 : 0 : case CFN_BUILT_IN_POPCOUNTLL:
10214 : 0 : if (call_expr_nargs (_p1) == 1)
10215 : : {
10216 : 0 : tree _q60 = CALL_EXPR_ARG (_p1, 0);
10217 : 0 : switch (TREE_CODE (_q60))
10218 : : {
10219 : 0 : case BIT_IOR_EXPR:
10220 : 0 : {
10221 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
10222 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
10223 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
10224 : : {
10225 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
10226 : : {
10227 : 0 : {
10228 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _q60 };
10229 : 0 : tree res = generic_simplify_36 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTLL);
10230 : 0 : if (res) return res;
10231 : : }
10232 : : }
10233 : : }
10234 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
10235 : : {
10236 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
10237 : : {
10238 : 0 : {
10239 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _q60 };
10240 : 0 : tree res = generic_simplify_36 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTLL);
10241 : 0 : if (res) return res;
10242 : : }
10243 : : }
10244 : : }
10245 : : break;
10246 : : }
10247 : : default:;
10248 : : }
10249 : : }
10250 : : break;
10251 : : default:;
10252 : : }
10253 : : break;
10254 : : default:;
10255 : : }
10256 : : break;
10257 : : }
10258 : 0 : case BIT_IOR_EXPR:
10259 : 0 : {
10260 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
10261 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
10262 : 0 : switch (TREE_CODE (_p1))
10263 : : {
10264 : 0 : case CALL_EXPR:
10265 : 0 : switch (get_call_combined_fn (_p1))
10266 : : {
10267 : 0 : case CFN_BUILT_IN_POPCOUNTLL:
10268 : 0 : if (call_expr_nargs (_p1) == 1)
10269 : : {
10270 : 0 : tree _q60 = CALL_EXPR_ARG (_p1, 0);
10271 : 0 : switch (TREE_CODE (_q60))
10272 : : {
10273 : 0 : case BIT_AND_EXPR:
10274 : 0 : {
10275 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
10276 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
10277 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
10278 : : {
10279 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
10280 : : {
10281 : 0 : {
10282 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q60, _q30, _q31, _p0, _q20 };
10283 : 0 : tree res = generic_simplify_36 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTLL);
10284 : 0 : if (res) return res;
10285 : : }
10286 : : }
10287 : : }
10288 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
10289 : : {
10290 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
10291 : : {
10292 : 0 : {
10293 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q60, _q31, _q30, _p0, _q20 };
10294 : 0 : tree res = generic_simplify_36 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTLL);
10295 : 0 : if (res) return res;
10296 : : }
10297 : : }
10298 : : }
10299 : : break;
10300 : : }
10301 : : default:;
10302 : : }
10303 : : }
10304 : : break;
10305 : : default:;
10306 : : }
10307 : : break;
10308 : : default:;
10309 : : }
10310 : : break;
10311 : : }
10312 : 26 : default:;
10313 : : }
10314 : 26 : switch (TREE_CODE (_p1))
10315 : : {
10316 : 0 : case MINUS_EXPR:
10317 : 0 : {
10318 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
10319 : 0 : tree _q41 = TREE_OPERAND (_p1, 1);
10320 : 0 : switch (TREE_CODE (_q40))
10321 : : {
10322 : 0 : case CALL_EXPR:
10323 : 0 : switch (get_call_combined_fn (_q40))
10324 : : {
10325 : 0 : case CFN_BUILT_IN_POPCOUNTLL:
10326 : 0 : if (call_expr_nargs (_q40) == 1)
10327 : : {
10328 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
10329 : 0 : switch (TREE_CODE (_q41))
10330 : : {
10331 : 0 : case CALL_EXPR:
10332 : 0 : switch (get_call_combined_fn (_q41))
10333 : : {
10334 : 0 : case CFN_BUILT_IN_POPCOUNTLL:
10335 : 0 : if (call_expr_nargs (_q41) == 1)
10336 : : {
10337 : 0 : tree _q70 = CALL_EXPR_ARG (_q41, 0);
10338 : 0 : switch (TREE_CODE (_q70))
10339 : : {
10340 : 0 : case BIT_AND_EXPR:
10341 : 0 : {
10342 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
10343 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
10344 : 0 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
10345 : : {
10346 : 0 : if ((_q81 == _q20 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q20, 0) && types_match (_q81, _q20)))
10347 : : {
10348 : 0 : {
10349 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
10350 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTLL);
10351 : 0 : if (res) return res;
10352 : : }
10353 : : }
10354 : : }
10355 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
10356 : : {
10357 : 0 : if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
10358 : : {
10359 : 0 : {
10360 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
10361 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTLL);
10362 : 0 : if (res) return res;
10363 : : }
10364 : : }
10365 : : }
10366 : : break;
10367 : : }
10368 : 0 : case BIT_IOR_EXPR:
10369 : 0 : {
10370 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
10371 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
10372 : 0 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
10373 : : {
10374 : 0 : if ((_q81 == _q20 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q20, 0) && types_match (_q81, _q20)))
10375 : : {
10376 : 0 : {
10377 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
10378 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTLL);
10379 : 0 : if (res) return res;
10380 : : }
10381 : : }
10382 : : }
10383 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
10384 : : {
10385 : 0 : if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
10386 : : {
10387 : 0 : {
10388 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
10389 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTLL);
10390 : 0 : if (res) return res;
10391 : : }
10392 : : }
10393 : : }
10394 : : break;
10395 : : }
10396 : : default:;
10397 : : }
10398 : : }
10399 : : break;
10400 : : default:;
10401 : : }
10402 : : break;
10403 : : default:;
10404 : : }
10405 : : }
10406 : : break;
10407 : : default:;
10408 : : }
10409 : : break;
10410 : : default:;
10411 : : }
10412 : : break;
10413 : : }
10414 : : default:;
10415 : : }
10416 : : }
10417 : : break;
10418 : 0 : case CFN_BUILT_IN_LOG10F:
10419 : 0 : if (call_expr_nargs (_p0) == 1)
10420 : : {
10421 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10422 : 0 : switch (TREE_CODE (_p1))
10423 : : {
10424 : 0 : case CALL_EXPR:
10425 : 0 : switch (get_call_combined_fn (_p1))
10426 : : {
10427 : 0 : case CFN_BUILT_IN_LOG10F:
10428 : 0 : if (call_expr_nargs (_p1) == 1)
10429 : : {
10430 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
10431 : 0 : {
10432 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
10433 : 0 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOG10F);
10434 : 0 : if (res) return res;
10435 : : }
10436 : : }
10437 : : break;
10438 : : default:;
10439 : : }
10440 : : break;
10441 : : default:;
10442 : : }
10443 : : }
10444 : : break;
10445 : 0 : case CFN_BUILT_IN_LOG10L:
10446 : 0 : if (call_expr_nargs (_p0) == 1)
10447 : : {
10448 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10449 : 0 : switch (TREE_CODE (_p1))
10450 : : {
10451 : 0 : case CALL_EXPR:
10452 : 0 : switch (get_call_combined_fn (_p1))
10453 : : {
10454 : 0 : case CFN_BUILT_IN_LOG10L:
10455 : 0 : if (call_expr_nargs (_p1) == 1)
10456 : : {
10457 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
10458 : 0 : {
10459 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
10460 : 0 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOG10L);
10461 : 0 : if (res) return res;
10462 : : }
10463 : : }
10464 : : break;
10465 : : default:;
10466 : : }
10467 : : break;
10468 : : default:;
10469 : : }
10470 : : }
10471 : : break;
10472 : 4 : case CFN_POPCOUNT:
10473 : 4 : if (call_expr_nargs (_p0) == 1)
10474 : : {
10475 : 4 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10476 : 4 : switch (TREE_CODE (_p1))
10477 : : {
10478 : 1 : case CALL_EXPR:
10479 : 1 : switch (get_call_combined_fn (_p1))
10480 : : {
10481 : 1 : case CFN_POPCOUNT:
10482 : 1 : if (call_expr_nargs (_p1) == 1)
10483 : : {
10484 : 1 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
10485 : 1 : {
10486 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
10487 : 1 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, CFN_POPCOUNT);
10488 : 1 : if (res) return res;
10489 : : }
10490 : : }
10491 : : break;
10492 : : default:;
10493 : : }
10494 : : break;
10495 : 4 : default:;
10496 : : }
10497 : 4 : switch (TREE_CODE (_q20))
10498 : : {
10499 : 0 : case BIT_AND_EXPR:
10500 : 0 : {
10501 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
10502 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
10503 : 0 : switch (TREE_CODE (_p1))
10504 : : {
10505 : 0 : case CALL_EXPR:
10506 : 0 : switch (get_call_combined_fn (_p1))
10507 : : {
10508 : 0 : case CFN_POPCOUNT:
10509 : 0 : if (call_expr_nargs (_p1) == 1)
10510 : : {
10511 : 0 : tree _q60 = CALL_EXPR_ARG (_p1, 0);
10512 : 0 : switch (TREE_CODE (_q60))
10513 : : {
10514 : 0 : case BIT_IOR_EXPR:
10515 : 0 : {
10516 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
10517 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
10518 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
10519 : : {
10520 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
10521 : : {
10522 : 0 : {
10523 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _q60 };
10524 : 0 : tree res = generic_simplify_36 (loc, type, _p0, _p1, captures, CFN_POPCOUNT);
10525 : 0 : if (res) return res;
10526 : : }
10527 : : }
10528 : : }
10529 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
10530 : : {
10531 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
10532 : : {
10533 : 0 : {
10534 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _q60 };
10535 : 0 : tree res = generic_simplify_36 (loc, type, _p0, _p1, captures, CFN_POPCOUNT);
10536 : 0 : if (res) return res;
10537 : : }
10538 : : }
10539 : : }
10540 : : break;
10541 : : }
10542 : : default:;
10543 : : }
10544 : : }
10545 : : break;
10546 : : default:;
10547 : : }
10548 : : break;
10549 : : default:;
10550 : : }
10551 : : break;
10552 : : }
10553 : 0 : case BIT_IOR_EXPR:
10554 : 0 : {
10555 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
10556 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
10557 : 0 : switch (TREE_CODE (_p1))
10558 : : {
10559 : 0 : case CALL_EXPR:
10560 : 0 : switch (get_call_combined_fn (_p1))
10561 : : {
10562 : 0 : case CFN_POPCOUNT:
10563 : 0 : if (call_expr_nargs (_p1) == 1)
10564 : : {
10565 : 0 : tree _q60 = CALL_EXPR_ARG (_p1, 0);
10566 : 0 : switch (TREE_CODE (_q60))
10567 : : {
10568 : 0 : case BIT_AND_EXPR:
10569 : 0 : {
10570 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
10571 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
10572 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
10573 : : {
10574 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
10575 : : {
10576 : 0 : {
10577 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q60, _q30, _q31, _p0, _q20 };
10578 : 0 : tree res = generic_simplify_36 (loc, type, _p0, _p1, captures, CFN_POPCOUNT);
10579 : 0 : if (res) return res;
10580 : : }
10581 : : }
10582 : : }
10583 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
10584 : : {
10585 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
10586 : : {
10587 : 0 : {
10588 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q60, _q31, _q30, _p0, _q20 };
10589 : 0 : tree res = generic_simplify_36 (loc, type, _p0, _p1, captures, CFN_POPCOUNT);
10590 : 0 : if (res) return res;
10591 : : }
10592 : : }
10593 : : }
10594 : : break;
10595 : : }
10596 : : default:;
10597 : : }
10598 : : }
10599 : : break;
10600 : : default:;
10601 : : }
10602 : : break;
10603 : : default:;
10604 : : }
10605 : : break;
10606 : : }
10607 : 4 : default:;
10608 : : }
10609 : 4 : switch (TREE_CODE (_p1))
10610 : : {
10611 : 0 : case MINUS_EXPR:
10612 : 0 : {
10613 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
10614 : 0 : tree _q41 = TREE_OPERAND (_p1, 1);
10615 : 0 : switch (TREE_CODE (_q40))
10616 : : {
10617 : 0 : case CALL_EXPR:
10618 : 0 : switch (get_call_combined_fn (_q40))
10619 : : {
10620 : 0 : case CFN_POPCOUNT:
10621 : 0 : if (call_expr_nargs (_q40) == 1)
10622 : : {
10623 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
10624 : 0 : switch (TREE_CODE (_q41))
10625 : : {
10626 : 0 : case CALL_EXPR:
10627 : 0 : switch (get_call_combined_fn (_q41))
10628 : : {
10629 : 0 : case CFN_POPCOUNT:
10630 : 0 : if (call_expr_nargs (_q41) == 1)
10631 : : {
10632 : 0 : tree _q70 = CALL_EXPR_ARG (_q41, 0);
10633 : 0 : switch (TREE_CODE (_q70))
10634 : : {
10635 : 0 : case BIT_AND_EXPR:
10636 : 0 : {
10637 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
10638 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
10639 : 0 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
10640 : : {
10641 : 0 : if ((_q81 == _q20 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q20, 0) && types_match (_q81, _q20)))
10642 : : {
10643 : 0 : {
10644 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
10645 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_POPCOUNT);
10646 : 0 : if (res) return res;
10647 : : }
10648 : : }
10649 : : }
10650 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
10651 : : {
10652 : 0 : if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
10653 : : {
10654 : 0 : {
10655 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
10656 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_POPCOUNT);
10657 : 0 : if (res) return res;
10658 : : }
10659 : : }
10660 : : }
10661 : : break;
10662 : : }
10663 : 0 : case BIT_IOR_EXPR:
10664 : 0 : {
10665 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
10666 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
10667 : 0 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
10668 : : {
10669 : 0 : if ((_q81 == _q20 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q20, 0) && types_match (_q81, _q20)))
10670 : : {
10671 : 0 : {
10672 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
10673 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_POPCOUNT);
10674 : 0 : if (res) return res;
10675 : : }
10676 : : }
10677 : : }
10678 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
10679 : : {
10680 : 0 : if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
10681 : : {
10682 : 0 : {
10683 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
10684 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_POPCOUNT);
10685 : 0 : if (res) return res;
10686 : : }
10687 : : }
10688 : : }
10689 : : break;
10690 : : }
10691 : : default:;
10692 : : }
10693 : : }
10694 : : break;
10695 : : default:;
10696 : : }
10697 : : break;
10698 : : default:;
10699 : : }
10700 : : }
10701 : : break;
10702 : : default:;
10703 : : }
10704 : : break;
10705 : : default:;
10706 : : }
10707 : : break;
10708 : : }
10709 : : default:;
10710 : : }
10711 : : }
10712 : : break;
10713 : 0 : case CFN_LOG:
10714 : 0 : if (call_expr_nargs (_p0) == 1)
10715 : : {
10716 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10717 : 0 : switch (TREE_CODE (_p1))
10718 : : {
10719 : 0 : case CALL_EXPR:
10720 : 0 : switch (get_call_combined_fn (_p1))
10721 : : {
10722 : 0 : case CFN_LOG:
10723 : 0 : if (call_expr_nargs (_p1) == 1)
10724 : : {
10725 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
10726 : 0 : {
10727 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
10728 : 0 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_LOG);
10729 : 0 : if (res) return res;
10730 : : }
10731 : : }
10732 : : break;
10733 : : default:;
10734 : : }
10735 : : break;
10736 : : default:;
10737 : : }
10738 : : }
10739 : : break;
10740 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
10741 : 0 : if (call_expr_nargs (_p0) == 1)
10742 : : {
10743 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10744 : 0 : switch (TREE_CODE (_p1))
10745 : : {
10746 : 0 : case CALL_EXPR:
10747 : 0 : switch (get_call_combined_fn (_p1))
10748 : : {
10749 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
10750 : 0 : if (call_expr_nargs (_p1) == 1)
10751 : : {
10752 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
10753 : 0 : {
10754 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
10755 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTIMAX);
10756 : 0 : if (res) return res;
10757 : : }
10758 : : }
10759 : : break;
10760 : : default:;
10761 : : }
10762 : : break;
10763 : 0 : default:;
10764 : : }
10765 : 0 : switch (TREE_CODE (_q20))
10766 : : {
10767 : 0 : case BIT_AND_EXPR:
10768 : 0 : {
10769 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
10770 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
10771 : 0 : switch (TREE_CODE (_p1))
10772 : : {
10773 : 0 : case CALL_EXPR:
10774 : 0 : switch (get_call_combined_fn (_p1))
10775 : : {
10776 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
10777 : 0 : if (call_expr_nargs (_p1) == 1)
10778 : : {
10779 : 0 : tree _q60 = CALL_EXPR_ARG (_p1, 0);
10780 : 0 : switch (TREE_CODE (_q60))
10781 : : {
10782 : 0 : case BIT_IOR_EXPR:
10783 : 0 : {
10784 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
10785 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
10786 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
10787 : : {
10788 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
10789 : : {
10790 : 0 : {
10791 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _q60 };
10792 : 0 : tree res = generic_simplify_36 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTIMAX);
10793 : 0 : if (res) return res;
10794 : : }
10795 : : }
10796 : : }
10797 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
10798 : : {
10799 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
10800 : : {
10801 : 0 : {
10802 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _q60 };
10803 : 0 : tree res = generic_simplify_36 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTIMAX);
10804 : 0 : if (res) return res;
10805 : : }
10806 : : }
10807 : : }
10808 : : break;
10809 : : }
10810 : : default:;
10811 : : }
10812 : : }
10813 : : break;
10814 : : default:;
10815 : : }
10816 : : break;
10817 : : default:;
10818 : : }
10819 : : break;
10820 : : }
10821 : 0 : case BIT_IOR_EXPR:
10822 : 0 : {
10823 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
10824 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
10825 : 0 : switch (TREE_CODE (_p1))
10826 : : {
10827 : 0 : case CALL_EXPR:
10828 : 0 : switch (get_call_combined_fn (_p1))
10829 : : {
10830 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
10831 : 0 : if (call_expr_nargs (_p1) == 1)
10832 : : {
10833 : 0 : tree _q60 = CALL_EXPR_ARG (_p1, 0);
10834 : 0 : switch (TREE_CODE (_q60))
10835 : : {
10836 : 0 : case BIT_AND_EXPR:
10837 : 0 : {
10838 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
10839 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
10840 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
10841 : : {
10842 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
10843 : : {
10844 : 0 : {
10845 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q60, _q30, _q31, _p0, _q20 };
10846 : 0 : tree res = generic_simplify_36 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTIMAX);
10847 : 0 : if (res) return res;
10848 : : }
10849 : : }
10850 : : }
10851 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
10852 : : {
10853 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
10854 : : {
10855 : 0 : {
10856 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q60, _q31, _q30, _p0, _q20 };
10857 : 0 : tree res = generic_simplify_36 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTIMAX);
10858 : 0 : if (res) return res;
10859 : : }
10860 : : }
10861 : : }
10862 : : break;
10863 : : }
10864 : : default:;
10865 : : }
10866 : : }
10867 : : break;
10868 : : default:;
10869 : : }
10870 : : break;
10871 : : default:;
10872 : : }
10873 : : break;
10874 : : }
10875 : 0 : default:;
10876 : : }
10877 : 0 : switch (TREE_CODE (_p1))
10878 : : {
10879 : 0 : case MINUS_EXPR:
10880 : 0 : {
10881 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
10882 : 0 : tree _q41 = TREE_OPERAND (_p1, 1);
10883 : 0 : switch (TREE_CODE (_q40))
10884 : : {
10885 : 0 : case CALL_EXPR:
10886 : 0 : switch (get_call_combined_fn (_q40))
10887 : : {
10888 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
10889 : 0 : if (call_expr_nargs (_q40) == 1)
10890 : : {
10891 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
10892 : 0 : switch (TREE_CODE (_q41))
10893 : : {
10894 : 0 : case CALL_EXPR:
10895 : 0 : switch (get_call_combined_fn (_q41))
10896 : : {
10897 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
10898 : 0 : if (call_expr_nargs (_q41) == 1)
10899 : : {
10900 : 0 : tree _q70 = CALL_EXPR_ARG (_q41, 0);
10901 : 0 : switch (TREE_CODE (_q70))
10902 : : {
10903 : 0 : case BIT_AND_EXPR:
10904 : 0 : {
10905 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
10906 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
10907 : 0 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
10908 : : {
10909 : 0 : if ((_q81 == _q20 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q20, 0) && types_match (_q81, _q20)))
10910 : : {
10911 : 0 : {
10912 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
10913 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
10914 : 0 : if (res) return res;
10915 : : }
10916 : : }
10917 : : }
10918 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
10919 : : {
10920 : 0 : if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
10921 : : {
10922 : 0 : {
10923 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
10924 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
10925 : 0 : if (res) return res;
10926 : : }
10927 : : }
10928 : : }
10929 : : break;
10930 : : }
10931 : 0 : case BIT_IOR_EXPR:
10932 : 0 : {
10933 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
10934 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
10935 : 0 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
10936 : : {
10937 : 0 : if ((_q81 == _q20 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q20, 0) && types_match (_q81, _q20)))
10938 : : {
10939 : 0 : {
10940 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
10941 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
10942 : 0 : if (res) return res;
10943 : : }
10944 : : }
10945 : : }
10946 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
10947 : : {
10948 : 0 : if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
10949 : : {
10950 : 0 : {
10951 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
10952 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
10953 : 0 : if (res) return res;
10954 : : }
10955 : : }
10956 : : }
10957 : : break;
10958 : : }
10959 : : default:;
10960 : : }
10961 : : }
10962 : : break;
10963 : : default:;
10964 : : }
10965 : : break;
10966 : : default:;
10967 : : }
10968 : : }
10969 : : break;
10970 : : default:;
10971 : : }
10972 : : break;
10973 : : default:;
10974 : : }
10975 : : break;
10976 : : }
10977 : : default:;
10978 : : }
10979 : : }
10980 : : break;
10981 : 0 : case CFN_LOG2:
10982 : 0 : if (call_expr_nargs (_p0) == 1)
10983 : : {
10984 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10985 : 0 : switch (TREE_CODE (_p1))
10986 : : {
10987 : 0 : case CALL_EXPR:
10988 : 0 : switch (get_call_combined_fn (_p1))
10989 : : {
10990 : 0 : case CFN_LOG2:
10991 : 0 : if (call_expr_nargs (_p1) == 1)
10992 : : {
10993 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
10994 : 0 : {
10995 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
10996 : 0 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_LOG2);
10997 : 0 : if (res) return res;
10998 : : }
10999 : : }
11000 : : break;
11001 : : default:;
11002 : : }
11003 : : break;
11004 : : default:;
11005 : : }
11006 : : }
11007 : : break;
11008 : 145 : case CFN_BUILT_IN_POPCOUNTL:
11009 : 145 : if (call_expr_nargs (_p0) == 1)
11010 : : {
11011 : 145 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11012 : 145 : switch (TREE_CODE (_p1))
11013 : : {
11014 : 79 : case CALL_EXPR:
11015 : 79 : switch (get_call_combined_fn (_p1))
11016 : : {
11017 : 79 : case CFN_BUILT_IN_POPCOUNTL:
11018 : 79 : if (call_expr_nargs (_p1) == 1)
11019 : : {
11020 : 79 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
11021 : 79 : {
11022 : 79 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
11023 : 79 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTL);
11024 : 79 : if (res) return res;
11025 : : }
11026 : : }
11027 : : break;
11028 : : default:;
11029 : : }
11030 : : break;
11031 : 145 : default:;
11032 : : }
11033 : 145 : switch (TREE_CODE (_q20))
11034 : : {
11035 : 0 : case BIT_AND_EXPR:
11036 : 0 : {
11037 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
11038 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
11039 : 0 : switch (TREE_CODE (_p1))
11040 : : {
11041 : 0 : case CALL_EXPR:
11042 : 0 : switch (get_call_combined_fn (_p1))
11043 : : {
11044 : 0 : case CFN_BUILT_IN_POPCOUNTL:
11045 : 0 : if (call_expr_nargs (_p1) == 1)
11046 : : {
11047 : 0 : tree _q60 = CALL_EXPR_ARG (_p1, 0);
11048 : 0 : switch (TREE_CODE (_q60))
11049 : : {
11050 : 0 : case BIT_IOR_EXPR:
11051 : 0 : {
11052 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
11053 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
11054 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
11055 : : {
11056 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
11057 : : {
11058 : 0 : {
11059 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _q60 };
11060 : 0 : tree res = generic_simplify_36 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTL);
11061 : 0 : if (res) return res;
11062 : : }
11063 : : }
11064 : : }
11065 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
11066 : : {
11067 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
11068 : : {
11069 : 0 : {
11070 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _q60 };
11071 : 0 : tree res = generic_simplify_36 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTL);
11072 : 0 : if (res) return res;
11073 : : }
11074 : : }
11075 : : }
11076 : : break;
11077 : : }
11078 : : default:;
11079 : : }
11080 : : }
11081 : : break;
11082 : : default:;
11083 : : }
11084 : : break;
11085 : : default:;
11086 : : }
11087 : : break;
11088 : : }
11089 : 0 : case BIT_IOR_EXPR:
11090 : 0 : {
11091 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
11092 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
11093 : 0 : switch (TREE_CODE (_p1))
11094 : : {
11095 : 0 : case CALL_EXPR:
11096 : 0 : switch (get_call_combined_fn (_p1))
11097 : : {
11098 : 0 : case CFN_BUILT_IN_POPCOUNTL:
11099 : 0 : if (call_expr_nargs (_p1) == 1)
11100 : : {
11101 : 0 : tree _q60 = CALL_EXPR_ARG (_p1, 0);
11102 : 0 : switch (TREE_CODE (_q60))
11103 : : {
11104 : 0 : case BIT_AND_EXPR:
11105 : 0 : {
11106 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
11107 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
11108 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
11109 : : {
11110 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
11111 : : {
11112 : 0 : {
11113 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q60, _q30, _q31, _p0, _q20 };
11114 : 0 : tree res = generic_simplify_36 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTL);
11115 : 0 : if (res) return res;
11116 : : }
11117 : : }
11118 : : }
11119 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
11120 : : {
11121 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
11122 : : {
11123 : 0 : {
11124 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q60, _q31, _q30, _p0, _q20 };
11125 : 0 : tree res = generic_simplify_36 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTL);
11126 : 0 : if (res) return res;
11127 : : }
11128 : : }
11129 : : }
11130 : : break;
11131 : : }
11132 : : default:;
11133 : : }
11134 : : }
11135 : : break;
11136 : : default:;
11137 : : }
11138 : : break;
11139 : : default:;
11140 : : }
11141 : : break;
11142 : : }
11143 : 145 : default:;
11144 : : }
11145 : 145 : switch (TREE_CODE (_p1))
11146 : : {
11147 : 0 : case MINUS_EXPR:
11148 : 0 : {
11149 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
11150 : 0 : tree _q41 = TREE_OPERAND (_p1, 1);
11151 : 0 : switch (TREE_CODE (_q40))
11152 : : {
11153 : 0 : case CALL_EXPR:
11154 : 0 : switch (get_call_combined_fn (_q40))
11155 : : {
11156 : 0 : case CFN_BUILT_IN_POPCOUNTL:
11157 : 0 : if (call_expr_nargs (_q40) == 1)
11158 : : {
11159 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
11160 : 0 : switch (TREE_CODE (_q41))
11161 : : {
11162 : 0 : case CALL_EXPR:
11163 : 0 : switch (get_call_combined_fn (_q41))
11164 : : {
11165 : 0 : case CFN_BUILT_IN_POPCOUNTL:
11166 : 0 : if (call_expr_nargs (_q41) == 1)
11167 : : {
11168 : 0 : tree _q70 = CALL_EXPR_ARG (_q41, 0);
11169 : 0 : switch (TREE_CODE (_q70))
11170 : : {
11171 : 0 : case BIT_AND_EXPR:
11172 : 0 : {
11173 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
11174 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
11175 : 0 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
11176 : : {
11177 : 0 : if ((_q81 == _q20 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q20, 0) && types_match (_q81, _q20)))
11178 : : {
11179 : 0 : {
11180 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
11181 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTL);
11182 : 0 : if (res) return res;
11183 : : }
11184 : : }
11185 : : }
11186 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
11187 : : {
11188 : 0 : if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
11189 : : {
11190 : 0 : {
11191 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
11192 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTL);
11193 : 0 : if (res) return res;
11194 : : }
11195 : : }
11196 : : }
11197 : : break;
11198 : : }
11199 : 0 : case BIT_IOR_EXPR:
11200 : 0 : {
11201 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
11202 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
11203 : 0 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
11204 : : {
11205 : 0 : if ((_q81 == _q20 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q20, 0) && types_match (_q81, _q20)))
11206 : : {
11207 : 0 : {
11208 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
11209 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTL);
11210 : 0 : if (res) return res;
11211 : : }
11212 : : }
11213 : : }
11214 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
11215 : : {
11216 : 0 : if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
11217 : : {
11218 : 0 : {
11219 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
11220 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTL);
11221 : 0 : if (res) return res;
11222 : : }
11223 : : }
11224 : : }
11225 : : break;
11226 : : }
11227 : : default:;
11228 : : }
11229 : : }
11230 : : break;
11231 : : default:;
11232 : : }
11233 : : break;
11234 : : default:;
11235 : : }
11236 : : }
11237 : : break;
11238 : : default:;
11239 : : }
11240 : : break;
11241 : : default:;
11242 : : }
11243 : : break;
11244 : : }
11245 : : default:;
11246 : : }
11247 : : }
11248 : : break;
11249 : 0 : case CFN_LOG10:
11250 : 0 : if (call_expr_nargs (_p0) == 1)
11251 : : {
11252 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11253 : 0 : switch (TREE_CODE (_p1))
11254 : : {
11255 : 0 : case CALL_EXPR:
11256 : 0 : switch (get_call_combined_fn (_p1))
11257 : : {
11258 : 0 : case CFN_LOG10:
11259 : 0 : if (call_expr_nargs (_p1) == 1)
11260 : : {
11261 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
11262 : 0 : {
11263 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
11264 : 0 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_LOG10);
11265 : 0 : if (res) return res;
11266 : : }
11267 : : }
11268 : : break;
11269 : : default:;
11270 : : }
11271 : : break;
11272 : : default:;
11273 : : }
11274 : : }
11275 : : break;
11276 : 0 : case CFN_BUILT_IN_LOG10:
11277 : 0 : if (call_expr_nargs (_p0) == 1)
11278 : : {
11279 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11280 : 0 : switch (TREE_CODE (_p1))
11281 : : {
11282 : 0 : case CALL_EXPR:
11283 : 0 : switch (get_call_combined_fn (_p1))
11284 : : {
11285 : 0 : case CFN_BUILT_IN_LOG10:
11286 : 0 : if (call_expr_nargs (_p1) == 1)
11287 : : {
11288 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
11289 : 0 : {
11290 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
11291 : 0 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOG10);
11292 : 0 : if (res) return res;
11293 : : }
11294 : : }
11295 : : break;
11296 : : default:;
11297 : : }
11298 : : break;
11299 : : default:;
11300 : : }
11301 : : }
11302 : : break;
11303 : 0 : case CFN_BUILT_IN_LOG2F:
11304 : 0 : if (call_expr_nargs (_p0) == 1)
11305 : : {
11306 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11307 : 0 : switch (TREE_CODE (_p1))
11308 : : {
11309 : 0 : case CALL_EXPR:
11310 : 0 : switch (get_call_combined_fn (_p1))
11311 : : {
11312 : 0 : case CFN_BUILT_IN_LOG2F:
11313 : 0 : if (call_expr_nargs (_p1) == 1)
11314 : : {
11315 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
11316 : 0 : {
11317 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
11318 : 0 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOG2F);
11319 : 0 : if (res) return res;
11320 : : }
11321 : : }
11322 : : break;
11323 : : default:;
11324 : : }
11325 : : break;
11326 : : default:;
11327 : : }
11328 : : }
11329 : : break;
11330 : 0 : case CFN_BUILT_IN_LOG2L:
11331 : 0 : if (call_expr_nargs (_p0) == 1)
11332 : : {
11333 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11334 : 0 : switch (TREE_CODE (_p1))
11335 : : {
11336 : 0 : case CALL_EXPR:
11337 : 0 : switch (get_call_combined_fn (_p1))
11338 : : {
11339 : 0 : case CFN_BUILT_IN_LOG2L:
11340 : 0 : if (call_expr_nargs (_p1) == 1)
11341 : : {
11342 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
11343 : 0 : {
11344 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
11345 : 0 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOG2L);
11346 : 0 : if (res) return res;
11347 : : }
11348 : : }
11349 : : break;
11350 : : default:;
11351 : : }
11352 : : break;
11353 : : default:;
11354 : : }
11355 : : }
11356 : : break;
11357 : : default:;
11358 : : }
11359 : : break;
11360 : 60541725 : default:;
11361 : : }
11362 : 60541725 : switch (TREE_CODE (_p1))
11363 : : {
11364 : 0 : case VEC_PERM_EXPR:
11365 : 0 : {
11366 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
11367 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
11368 : 0 : tree _q32 = TREE_OPERAND (_p1, 2);
11369 : 0 : switch (TREE_CODE (_q30))
11370 : : {
11371 : 0 : case MULT_EXPR:
11372 : 0 : {
11373 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
11374 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
11375 : 0 : if (tree_vec_same_elem_p (_q41))
11376 : : {
11377 : 0 : if ((_q31 == _q30 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _q30, 0) && types_match (_q31, _q30)))
11378 : : {
11379 : 0 : {
11380 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q40, _q41, _q32, _p0 };
11381 : 0 : tree res = generic_simplify_38 (loc, type, _p0, _p1, captures);
11382 : 0 : if (res) return res;
11383 : : }
11384 : : }
11385 : : }
11386 : 0 : if (tree_vec_same_elem_p (_q40))
11387 : : {
11388 : 0 : if ((_q31 == _q30 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _q30, 0) && types_match (_q31, _q30)))
11389 : : {
11390 : 0 : {
11391 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q41, _q40, _q32, _p0 };
11392 : 0 : tree res = generic_simplify_38 (loc, type, _p0, _p1, captures);
11393 : 0 : if (res) return res;
11394 : : }
11395 : : }
11396 : : }
11397 : : break;
11398 : : }
11399 : : default:;
11400 : : }
11401 : : break;
11402 : : }
11403 : : default:;
11404 : : }
11405 : : return NULL_TREE;
11406 : : }
11407 : :
11408 : : tree
11409 : 85 : generic_simplify_LTGT_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
11410 : : {
11411 : 85 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
11412 : 85 : switch (TREE_CODE (_p0))
11413 : : {
11414 : 0 : case VEC_COND_EXPR:
11415 : 0 : {
11416 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11417 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11418 : 0 : tree _q22 = TREE_OPERAND (_p0, 2);
11419 : 0 : switch (TREE_CODE (_p1))
11420 : : {
11421 : 0 : case VEC_COND_EXPR:
11422 : 0 : {
11423 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
11424 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
11425 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
11426 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
11427 : : {
11428 : 0 : {
11429 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
11430 : 0 : if (VECTOR_TYPE_P (type)
11431 : 0 : && (TREE_CODE_CLASS (LTGT_EXPR) != tcc_comparison
11432 : 0 : || types_match (type, TREE_TYPE (captures[2]))
11433 : 0 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
11434 : : || (optimize_vectors_before_lowering_p ()
11435 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
11436 : : )
11437 : : {
11438 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1919;
11439 : 0 : {
11440 : 0 : tree res_op0;
11441 : 0 : res_op0 = captures[1];
11442 : 0 : tree res_op1;
11443 : 0 : {
11444 : 0 : tree _o1[2], _r1;
11445 : 0 : _o1[0] = captures[2];
11446 : 0 : _o1[1] = captures[5];
11447 : 0 : _r1 = fold_build2_loc (loc, LTGT_EXPR, type, _o1[0], _o1[1]);
11448 : 0 : if (EXPR_P (_r1))
11449 : 0 : goto next_after_fail1919;
11450 : 0 : res_op1 = _r1;
11451 : : }
11452 : 0 : tree res_op2;
11453 : 0 : {
11454 : 0 : tree _o1[2], _r1;
11455 : 0 : _o1[0] = captures[3];
11456 : 0 : _o1[1] = captures[6];
11457 : 0 : _r1 = fold_build2_loc (loc, LTGT_EXPR, type, _o1[0], _o1[1]);
11458 : 0 : if (EXPR_P (_r1))
11459 : 0 : goto next_after_fail1919;
11460 : 0 : res_op2 = _r1;
11461 : : }
11462 : 0 : tree _r;
11463 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11464 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 919, __FILE__, __LINE__, true);
11465 : 0 : return _r;
11466 : : }
11467 : 0 : next_after_fail1919:;
11468 : : }
11469 : : }
11470 : : }
11471 : : break;
11472 : : }
11473 : 0 : default:;
11474 : : }
11475 : 0 : {
11476 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
11477 : 0 : if (VECTOR_TYPE_P (type)
11478 : 0 : && (TREE_CODE_CLASS (LTGT_EXPR) != tcc_comparison
11479 : 0 : || types_match (type, TREE_TYPE (captures[2]))
11480 : 0 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
11481 : : || (optimize_vectors_before_lowering_p ()
11482 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
11483 : : )
11484 : : {
11485 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1920;
11486 : 0 : {
11487 : 0 : if (! tree_invariant_p (captures[4])) goto next_after_fail1920;
11488 : 0 : tree res_op0;
11489 : 0 : res_op0 = captures[1];
11490 : 0 : tree res_op1;
11491 : 0 : {
11492 : 0 : tree _o1[2], _r1;
11493 : 0 : _o1[0] = captures[2];
11494 : 0 : _o1[1] = unshare_expr (captures[4]);
11495 : 0 : _r1 = fold_build2_loc (loc, LTGT_EXPR, type, _o1[0], _o1[1]);
11496 : 0 : if (EXPR_P (_r1))
11497 : 0 : goto next_after_fail1920;
11498 : 0 : res_op1 = _r1;
11499 : : }
11500 : 0 : tree res_op2;
11501 : 0 : {
11502 : 0 : tree _o1[2], _r1;
11503 : 0 : _o1[0] = captures[3];
11504 : 0 : _o1[1] = captures[4];
11505 : 0 : _r1 = fold_build2_loc (loc, LTGT_EXPR, type, _o1[0], _o1[1]);
11506 : 0 : if (EXPR_P (_r1))
11507 : 0 : goto next_after_fail1920;
11508 : 0 : res_op2 = _r1;
11509 : : }
11510 : 0 : tree _r;
11511 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11512 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 920, __FILE__, __LINE__, true);
11513 : 0 : return _r;
11514 : : }
11515 : 0 : next_after_fail1920:;
11516 : : }
11517 : : }
11518 : 0 : break;
11519 : : }
11520 : 85 : default:;
11521 : : }
11522 : 85 : switch (TREE_CODE (_p1))
11523 : : {
11524 : 0 : case VEC_COND_EXPR:
11525 : 0 : {
11526 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
11527 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
11528 : 0 : tree _q32 = TREE_OPERAND (_p1, 2);
11529 : 0 : {
11530 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
11531 : 0 : if (VECTOR_TYPE_P (type)
11532 : 0 : && (TREE_CODE_CLASS (LTGT_EXPR) != tcc_comparison
11533 : 0 : || types_match (type, TREE_TYPE (captures[3]))
11534 : 0 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
11535 : : || (optimize_vectors_before_lowering_p ()
11536 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
11537 : : )
11538 : : {
11539 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1921;
11540 : 0 : {
11541 : 0 : if (! tree_invariant_p (captures[0])) goto next_after_fail1921;
11542 : 0 : tree res_op0;
11543 : 0 : res_op0 = captures[2];
11544 : 0 : tree res_op1;
11545 : 0 : {
11546 : 0 : tree _o1[2], _r1;
11547 : 0 : _o1[0] = unshare_expr (captures[0]);
11548 : 0 : _o1[1] = captures[3];
11549 : 0 : _r1 = fold_build2_loc (loc, LTGT_EXPR, type, _o1[0], _o1[1]);
11550 : 0 : if (EXPR_P (_r1))
11551 : 0 : goto next_after_fail1921;
11552 : 0 : res_op1 = _r1;
11553 : : }
11554 : 0 : tree res_op2;
11555 : 0 : {
11556 : 0 : tree _o1[2], _r1;
11557 : 0 : _o1[0] = captures[0];
11558 : 0 : _o1[1] = captures[4];
11559 : 0 : _r1 = fold_build2_loc (loc, LTGT_EXPR, type, _o1[0], _o1[1]);
11560 : 0 : if (EXPR_P (_r1))
11561 : 0 : goto next_after_fail1921;
11562 : 0 : res_op2 = _r1;
11563 : : }
11564 : 0 : tree _r;
11565 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11566 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 921, __FILE__, __LINE__, true);
11567 : 0 : return _r;
11568 : : }
11569 : 0 : next_after_fail1921:;
11570 : : }
11571 : : }
11572 : 0 : break;
11573 : : }
11574 : 85 : default:;
11575 : : }
11576 : 85 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
11577 : : {
11578 : 0 : {
11579 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
11580 : 0 : if (!flag_trapping_math || !tree_expr_maybe_nan_p (captures[0])
11581 : : )
11582 : : {
11583 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1922;
11584 : 0 : {
11585 : 0 : tree _r;
11586 : 0 : _r = constant_boolean_node (false, type);
11587 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
11588 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
11589 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1063, __FILE__, __LINE__, true);
11590 : 0 : return _r;
11591 : : }
11592 : 0 : next_after_fail1922:;
11593 : : }
11594 : : }
11595 : : }
11596 : 85 : switch (TREE_CODE (_p0))
11597 : : {
11598 : 0 : case FLOAT_EXPR:
11599 : 0 : {
11600 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11601 : 0 : switch (TREE_CODE (_p1))
11602 : : {
11603 : 0 : case FLOAT_EXPR:
11604 : 0 : {
11605 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
11606 : 0 : {
11607 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
11608 : 0 : tree res = generic_simplify_256 (loc, type, _p0, _p1, captures, LTGT_EXPR, NE_EXPR);
11609 : 0 : if (res) return res;
11610 : : }
11611 : 0 : break;
11612 : : }
11613 : : default:;
11614 : : }
11615 : : break;
11616 : : }
11617 : 0 : case NEGATE_EXPR:
11618 : 0 : {
11619 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11620 : 0 : switch (TREE_CODE (_p1))
11621 : : {
11622 : 0 : case NEGATE_EXPR:
11623 : 0 : {
11624 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
11625 : 0 : {
11626 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
11627 : 0 : tree res = generic_simplify_259 (loc, type, _p0, _p1, captures, LTGT_EXPR, LTGT_EXPR);
11628 : 0 : if (res) return res;
11629 : : }
11630 : 0 : break;
11631 : : }
11632 : 0 : default:;
11633 : : }
11634 : 0 : if (CONSTANT_CLASS_P (_p1))
11635 : : {
11636 : 0 : {
11637 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
11638 : 0 : tree res = generic_simplify_260 (loc, type, _p0, _p1, captures, LTGT_EXPR, LTGT_EXPR);
11639 : 0 : if (res) return res;
11640 : : }
11641 : : }
11642 : : break;
11643 : : }
11644 : 85 : default:;
11645 : : }
11646 : 85 : switch (TREE_CODE (_p1))
11647 : : {
11648 : 0 : case REAL_CST:
11649 : 0 : {
11650 : 0 : {
11651 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
11652 : 0 : tree res = generic_simplify_545 (loc, type, _p0, _p1, captures, LTGT_EXPR);
11653 : 0 : if (res) return res;
11654 : : }
11655 : 0 : break;
11656 : : }
11657 : : default:;
11658 : : }
11659 : : return NULL_TREE;
11660 : : }
11661 : :
11662 : : tree
11663 : 644898 : generic_simplify_BIT_FIELD_REF (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1, tree _p2)
11664 : : {
11665 : 644898 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
11666 : 644898 : switch (TREE_CODE (_p0))
11667 : : {
11668 : 0 : case BIT_FIELD_REF:
11669 : 0 : {
11670 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11671 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11672 : 0 : tree _q22 = TREE_OPERAND (_p0, 2);
11673 : 0 : {
11674 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _p1, _p2 };
11675 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail2085;
11676 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail2085;
11677 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2085;
11678 : 0 : {
11679 : 0 : tree res_op0;
11680 : 0 : res_op0 = captures[0];
11681 : 0 : tree res_op1;
11682 : 0 : res_op1 = captures[3];
11683 : 0 : tree res_op2;
11684 : 0 : res_op2 = const_binop (PLUS_EXPR, bitsizetype, captures[2], captures[4]);
11685 : 0 : tree _r;
11686 : 0 : _r = fold_build3_loc (loc, BIT_FIELD_REF, type, res_op0, res_op1, res_op2);
11687 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
11688 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
11689 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1103, __FILE__, __LINE__, true);
11690 : 0 : return _r;
11691 : : }
11692 : 0 : next_after_fail2085:;
11693 : : }
11694 : 0 : break;
11695 : : }
11696 : 3 : case VIEW_CONVERT_EXPR:
11697 : 3 : {
11698 : 3 : tree _q20 = TREE_OPERAND (_p0, 0);
11699 : 3 : {
11700 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p1, _p2 };
11701 : 6 : if (! INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
11702 : 6 : || type_has_mode_precision_p (TREE_TYPE (captures[0]))
11703 : : )
11704 : : {
11705 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2086;
11706 : 0 : {
11707 : 0 : tree res_op0;
11708 : 0 : res_op0 = captures[0];
11709 : 0 : tree res_op1;
11710 : 0 : res_op1 = captures[1];
11711 : 0 : tree res_op2;
11712 : 0 : res_op2 = captures[2];
11713 : 0 : tree _r;
11714 : 0 : _r = fold_build3_loc (loc, BIT_FIELD_REF, type, res_op0, res_op1, res_op2);
11715 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1104, __FILE__, __LINE__, true);
11716 : 0 : return _r;
11717 : : }
11718 : 0 : next_after_fail2086:;
11719 : : }
11720 : : }
11721 : 3 : break;
11722 : : }
11723 : 644898 : default:;
11724 : : }
11725 : 644898 : if (integer_zerop (_p2))
11726 : : {
11727 : 211351 : {
11728 : 211351 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
11729 : 211351 : if (tree_int_cst_equal (captures[1], TYPE_SIZE (TREE_TYPE (captures[0])))
11730 : : )
11731 : : {
11732 : 2450 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail2087;
11733 : 2450 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2087;
11734 : 2450 : {
11735 : 2450 : tree res_op0;
11736 : 2450 : res_op0 = captures[0];
11737 : 2450 : tree _r;
11738 : 2450 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
11739 : 2450 : if (TREE_SIDE_EFFECTS (captures[1]))
11740 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
11741 : 2450 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1105, __FILE__, __LINE__, true);
11742 : 2450 : return _r;
11743 : : }
11744 : 208901 : next_after_fail2087:;
11745 : : }
11746 : : }
11747 : : }
11748 : 642448 : {
11749 : 642448 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _p2 };
11750 : 642448 : if (TREE_CODE (TREE_TYPE (captures[0])) == COMPLEX_TYPE
11751 : 642448 : && tree_int_cst_equal (captures[1], TYPE_SIZE (TREE_TYPE (TREE_TYPE (captures[0]))))
11752 : : )
11753 : : {
11754 : 2 : if (integer_zerop (captures[2])
11755 : : )
11756 : : {
11757 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2088;
11758 : 0 : {
11759 : 0 : tree res_op0;
11760 : 0 : {
11761 : 0 : tree _o1[1], _r1;
11762 : 0 : _o1[0] = captures[0];
11763 : 0 : _r1 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o1[0])), _o1[0]);
11764 : 0 : res_op0 = _r1;
11765 : : }
11766 : 0 : tree _r;
11767 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
11768 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
11769 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
11770 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
11771 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
11772 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1106, __FILE__, __LINE__, true);
11773 : 0 : return _r;
11774 : : }
11775 : 0 : next_after_fail2088:;
11776 : : }
11777 : : else
11778 : : {
11779 : 2 : if (tree_int_cst_equal (captures[2], TYPE_SIZE (TREE_TYPE (TREE_TYPE (captures[0]))))
11780 : : )
11781 : : {
11782 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2089;
11783 : 0 : {
11784 : 0 : tree res_op0;
11785 : 0 : {
11786 : 0 : tree _o1[1], _r1;
11787 : 0 : _o1[0] = captures[0];
11788 : 0 : _r1 = fold_build1_loc (loc, IMAGPART_EXPR, TREE_TYPE (TREE_TYPE (_o1[0])), _o1[0]);
11789 : 0 : res_op0 = _r1;
11790 : : }
11791 : 0 : tree _r;
11792 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
11793 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
11794 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
11795 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
11796 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
11797 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1107, __FILE__, __LINE__, true);
11798 : 0 : return _r;
11799 : : }
11800 : 0 : next_after_fail2089:;
11801 : : }
11802 : : }
11803 : : }
11804 : : else
11805 : : {
11806 : 1284830 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
11807 : 20395 : && INTEGRAL_TYPE_P (type)
11808 : : && (!
11809 : :
11810 : : || is_gimple_reg (captures[0]))
11811 : 661863 : && ((compare_tree_int (captures[1], TYPE_PRECISION (TREE_TYPE (captures[0]))) == 0
11812 : 0 : && integer_zerop (captures[2]))
11813 : : || (BYTES_BIG_ENDIAN == WORDS_BIG_ENDIAN
11814 : : && canonicalize_math_after_vectorization_p ()
11815 : : && TYPE_PRECISION (TREE_TYPE (captures[0])) % BITS_PER_UNIT == 0
11816 : : && TYPE_PRECISION (type) % BITS_PER_UNIT == 0
11817 : : && compare_tree_int (captures[2], (BYTES_BIG_ENDIAN
11818 : : ? (TYPE_PRECISION (TREE_TYPE (captures[0]))
11819 : : - TYPE_PRECISION (type))
11820 : : : 0)) == 0))
11821 : : )
11822 : : {
11823 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2090;
11824 : 0 : {
11825 : 0 : tree res_op0;
11826 : 0 : res_op0 = captures[0];
11827 : 0 : tree _r;
11828 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
11829 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
11830 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
11831 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
11832 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
11833 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1108, __FILE__, __LINE__, true);
11834 : 0 : return _r;
11835 : : }
11836 : 0 : next_after_fail2090:;
11837 : : }
11838 : : }
11839 : : }
11840 : 642448 : switch (TREE_CODE (_p0))
11841 : : {
11842 : 907 : case CONSTRUCTOR:
11843 : 907 : {
11844 : 907 : {
11845 : 907 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _p2 };
11846 : 907 : if (VECTOR_TYPE_P (TREE_TYPE (captures[0]))
11847 : 907 : && tree_fits_uhwi_p (TYPE_SIZE (type))
11848 : 1814 : && ((tree_to_uhwi (TYPE_SIZE (type))
11849 : 907 : == tree_to_uhwi (TYPE_SIZE (TREE_TYPE (TREE_TYPE (captures[0])))))
11850 : 0 : || (VECTOR_TYPE_P (type)
11851 : 0 : && (tree_to_uhwi (TYPE_SIZE (TREE_TYPE (type)))
11852 : 0 : == tree_to_uhwi (TYPE_SIZE (TREE_TYPE (TREE_TYPE (captures[0])))))))
11853 : : )
11854 : : {
11855 : 907 : {
11856 : 907 : tree ctor = (TREE_CODE (captures[0]) == SSA_NAME
11857 : : ? gimple_assign_rhs1 (SSA_NAME_DEF_STMT (captures[0])) : captures[0]);
11858 : 907 : tree eltype = TREE_TYPE (TREE_TYPE (ctor));
11859 : 907 : unsigned HOST_WIDE_INT width = tree_to_uhwi (TYPE_SIZE (eltype));
11860 : 907 : unsigned HOST_WIDE_INT n = tree_to_uhwi (captures[1]);
11861 : 907 : unsigned HOST_WIDE_INT idx = tree_to_uhwi (captures[2]);
11862 : 907 : if (n != 0
11863 : 907 : && (idx % width) == 0
11864 : 907 : && (n % width) == 0
11865 : 1814 : && known_le ((idx + n) / width,
11866 : : TYPE_VECTOR_SUBPARTS (TREE_TYPE (ctor)))
11867 : : )
11868 : : {
11869 : 907 : {
11870 : 907 : idx = idx / width;
11871 : 907 : n = n / width;
11872 : 907 : poly_uint64 k = 1;
11873 : 907 : if (CONSTRUCTOR_NELTS (ctor) != 0)
11874 : : {
11875 : 907 : tree cons_elem = TREE_TYPE (CONSTRUCTOR_ELT (ctor, 0)->value);
11876 : 907 : if (TREE_CODE (cons_elem) == VECTOR_TYPE)
11877 : 907 : k = TYPE_VECTOR_SUBPARTS (cons_elem);
11878 : : }
11879 : 907 : unsigned HOST_WIDE_INT elt, count, const_k;
11880 : 907 : if (multiple_p (idx, k, &elt) && multiple_p (n, k, &count)
11881 : : )
11882 : : {
11883 : 6 : if (CONSTRUCTOR_NELTS (ctor) == 0
11884 : : )
11885 : : {
11886 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail2091;
11887 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail2091;
11888 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail2091;
11889 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2091;
11890 : 0 : {
11891 : 0 : tree _r;
11892 : 0 : _r = build_zero_cst (type);
11893 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1109, __FILE__, __LINE__, true);
11894 : 907 : return _r;
11895 : : }
11896 : : next_after_fail2091:;
11897 : : }
11898 : : else
11899 : : {
11900 : 6 : if (count == 1
11901 : : )
11902 : : {
11903 : 6 : if (elt < CONSTRUCTOR_NELTS (ctor)
11904 : : )
11905 : : {
11906 : 6 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail2092;
11907 : 6 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail2092;
11908 : 6 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail2092;
11909 : 6 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2092;
11910 : 6 : {
11911 : 6 : tree res_op0;
11912 : 6 : res_op0 = CONSTRUCTOR_ELT (ctor, elt)->value;
11913 : 6 : tree _r;
11914 : 6 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
11915 : 6 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1110, __FILE__, __LINE__, true);
11916 : 6 : return _r;
11917 : : }
11918 : : next_after_fail2092:;
11919 : : }
11920 : : else
11921 : : {
11922 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail2093;
11923 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail2093;
11924 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail2093;
11925 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2093;
11926 : 0 : {
11927 : 0 : tree _r;
11928 : 0 : _r = build_zero_cst (type);
11929 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1111, __FILE__, __LINE__, true);
11930 : 0 : return _r;
11931 : : }
11932 : : next_after_fail2093:;
11933 : : }
11934 : : }
11935 : : else
11936 : : {
11937 : 0 : if (single_use (captures[0])
11938 : : )
11939 : : {
11940 : 0 : {
11941 : 0 : vec<constructor_elt, va_gc> *vals;
11942 : 0 : vec_alloc (vals, count);
11943 : 0 : bool constant_p = true;
11944 : 0 : tree res;
11945 : 0 : for (unsigned i = 0;
11946 : 0 : i < count && elt + i < CONSTRUCTOR_NELTS (ctor); ++i)
11947 : : {
11948 : 0 : tree e = CONSTRUCTOR_ELT (ctor, elt + i)->value;
11949 : 0 : CONSTRUCTOR_APPEND_ELT (vals, NULL_TREE, e);
11950 : 0 : if (!CONSTANT_CLASS_P (e))
11951 : 0 : constant_p = false;
11952 : : }
11953 : 0 : tree evtype = (types_match (TREE_TYPE (type),
11954 : 0 : TREE_TYPE (TREE_TYPE (ctor)))
11955 : 0 : ? type
11956 : 0 : : build_vector_type (TREE_TYPE (TREE_TYPE (ctor)),
11957 : 0 : count * k));
11958 : 0 : res = (constant_p ? build_vector_from_ctor (evtype, vals)
11959 : : : (
11960 : :
11961 : 0 : ? NULL_TREE : build_constructor (evtype, vals)));
11962 : 0 : if (res
11963 : : )
11964 : : {
11965 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail2094;
11966 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail2094;
11967 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail2094;
11968 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2094;
11969 : 0 : {
11970 : 0 : tree res_op0;
11971 : 0 : res_op0 = res;
11972 : 0 : tree _r;
11973 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
11974 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1112, __FILE__, __LINE__, true);
11975 : 0 : return _r;
11976 : : }
11977 : 0 : next_after_fail2094:;
11978 : : }
11979 : : }
11980 : : }
11981 : : }
11982 : : }
11983 : : }
11984 : : else
11985 : : {
11986 : 901 : if (k.is_constant (&const_k)
11987 : 901 : && idx + n <= (idx / const_k + 1) * const_k
11988 : : )
11989 : : {
11990 : 901 : if (CONSTRUCTOR_NELTS (ctor) <= idx / const_k
11991 : : )
11992 : : {
11993 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail2095;
11994 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail2095;
11995 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail2095;
11996 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2095;
11997 : 0 : {
11998 : 0 : tree _r;
11999 : 0 : _r = build_zero_cst (type);
12000 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1113, __FILE__, __LINE__, true);
12001 : 0 : return _r;
12002 : : }
12003 : : next_after_fail2095:;
12004 : : }
12005 : : else
12006 : : {
12007 : 901 : if (n == const_k
12008 : : )
12009 : : {
12010 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail2096;
12011 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail2096;
12012 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail2096;
12013 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2096;
12014 : 0 : {
12015 : 0 : tree res_op0;
12016 : 0 : res_op0 = CONSTRUCTOR_ELT (ctor, idx / const_k)->value;
12017 : 0 : tree _r;
12018 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
12019 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1114, __FILE__, __LINE__, true);
12020 : 0 : return _r;
12021 : : }
12022 : : next_after_fail2096:;
12023 : : }
12024 : : else
12025 : : {
12026 : 901 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail2097;
12027 : 901 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail2097;
12028 : 901 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail2097;
12029 : 901 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2097;
12030 : 901 : {
12031 : 901 : tree res_op0;
12032 : 901 : res_op0 = CONSTRUCTOR_ELT (ctor, idx / const_k)->value;
12033 : 901 : tree res_op1;
12034 : 901 : res_op1 = captures[1];
12035 : 901 : tree res_op2;
12036 : 901 : res_op2 = bitsize_int ((idx % const_k) * width);
12037 : 901 : tree _r;
12038 : 901 : _r = fold_build3_loc (loc, BIT_FIELD_REF, type, res_op0, res_op1, res_op2);
12039 : 901 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1115, __FILE__, __LINE__, true);
12040 : 901 : return _r;
12041 : : }
12042 : : next_after_fail2097:;
12043 : : }
12044 : : }
12045 : : }
12046 : : }
12047 : : }
12048 : : }
12049 : : }
12050 : : }
12051 : : }
12052 : 0 : break;
12053 : : }
12054 : 0 : case VEC_PERM_EXPR:
12055 : 0 : {
12056 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
12057 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
12058 : 0 : tree _q22 = TREE_OPERAND (_p0, 2);
12059 : 0 : switch (TREE_CODE (_q22))
12060 : : {
12061 : 0 : case VECTOR_CST:
12062 : 0 : {
12063 : 0 : {
12064 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _p2 };
12065 : 0 : {
12066 : 0 : tree elem_type = TREE_TYPE (TREE_TYPE (captures[0]));
12067 : 0 : poly_uint64 elem_size = tree_to_poly_uint64 (TYPE_SIZE (elem_type));
12068 : 0 : poly_uint64 size = tree_to_poly_uint64 (TYPE_SIZE (type));
12069 : 0 : unsigned HOST_WIDE_INT nelts, idx;
12070 : 0 : unsigned HOST_WIDE_INT nelts_op = 0;
12071 : 0 : if (constant_multiple_p (tree_to_poly_uint64 (captures[5]), elem_size, &idx)
12072 : 0 : && VECTOR_CST_NELTS (captures[3]).is_constant (&nelts)
12073 : 0 : && (known_eq (size, elem_size)
12074 : 0 : || (constant_multiple_p (size, elem_size, &nelts_op)
12075 : 0 : && pow2p_hwi (nelts_op)))
12076 : : )
12077 : : {
12078 : 0 : {
12079 : 0 : bool ok = true;
12080 : 0 : if (known_eq (size, elem_size))
12081 : 0 : idx = TREE_INT_CST_LOW (VECTOR_CST_ELT (captures[3], idx)) % (2 * nelts);
12082 : : else
12083 : : {
12084 : 0 : unsigned start
12085 : 0 : = TREE_INT_CST_LOW (vector_cst_elt (captures[3], idx)) % (2 * nelts);
12086 : 0 : unsigned end
12087 : 0 : = (TREE_INT_CST_LOW (vector_cst_elt (captures[3], idx + nelts_op - 1))
12088 : 0 : % (2 * nelts));
12089 : 0 : if ((start < nelts) != (end < nelts))
12090 : : ok = false;
12091 : : else
12092 : 0 : for (unsigned HOST_WIDE_INT i = 1; i != nelts_op; i++)
12093 : : {
12094 : 0 : if ((TREE_INT_CST_LOW (vector_cst_elt (captures[3], idx + i))
12095 : 0 : % (2 * nelts) - 1)
12096 : 0 : != (TREE_INT_CST_LOW (vector_cst_elt (captures[3], idx + i - 1))
12097 : 0 : % (2 * nelts)))
12098 : : {
12099 : : ok = false;
12100 : : break;
12101 : : }
12102 : : }
12103 : 0 : if (start % nelts_op)
12104 : : ok = false;
12105 : 0 : idx = start;
12106 : : }
12107 : 0 : if (ok
12108 : : )
12109 : : {
12110 : 0 : if (idx < nelts
12111 : : )
12112 : : {
12113 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail2098;
12114 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2098;
12115 : 0 : {
12116 : 0 : tree res_op0;
12117 : 0 : res_op0 = captures[1];
12118 : 0 : tree res_op1;
12119 : 0 : res_op1 = captures[4];
12120 : 0 : tree res_op2;
12121 : 0 : res_op2 = bitsize_int (idx * elem_size);
12122 : 0 : tree _r;
12123 : 0 : _r = fold_build3_loc (loc, BIT_FIELD_REF, type, res_op0, res_op1, res_op2);
12124 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
12125 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
12126 : 0 : if (TREE_SIDE_EFFECTS (captures[5]))
12127 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[5]), _r);
12128 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1116, __FILE__, __LINE__, true);
12129 : 0 : return _r;
12130 : : }
12131 : 0 : next_after_fail2098:;
12132 : : }
12133 : : else
12134 : : {
12135 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail2099;
12136 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2099;
12137 : 0 : {
12138 : 0 : tree res_op0;
12139 : 0 : res_op0 = captures[2];
12140 : 0 : tree res_op1;
12141 : 0 : res_op1 = captures[4];
12142 : 0 : tree res_op2;
12143 : 0 : res_op2 = bitsize_int ((idx - nelts) * elem_size);
12144 : 0 : tree _r;
12145 : 0 : _r = fold_build3_loc (loc, BIT_FIELD_REF, type, res_op0, res_op1, res_op2);
12146 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
12147 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
12148 : 0 : if (TREE_SIDE_EFFECTS (captures[5]))
12149 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[5]), _r);
12150 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1117, __FILE__, __LINE__, true);
12151 : 0 : return _r;
12152 : : }
12153 : 0 : next_after_fail2099:;
12154 : : }
12155 : : }
12156 : : }
12157 : : }
12158 : : }
12159 : : }
12160 : 0 : break;
12161 : : }
12162 : : default:;
12163 : : }
12164 : : break;
12165 : : }
12166 : 0 : case BIT_INSERT_EXPR:
12167 : 0 : {
12168 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
12169 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
12170 : 0 : tree _q22 = TREE_OPERAND (_p0, 2);
12171 : 0 : {
12172 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _p1, _p2 };
12173 : 0 : {
12174 : 0 : unsigned HOST_WIDE_INT isize;
12175 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1])))
12176 : 0 : isize = TYPE_PRECISION (TREE_TYPE (captures[1]));
12177 : : else
12178 : 0 : isize = tree_to_uhwi (TYPE_SIZE (TREE_TYPE (captures[1])));
12179 : 0 : if ((!INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
12180 : 0 : || type_has_mode_precision_p (TREE_TYPE (captures[1])))
12181 : 0 : && wi::leu_p (wi::to_wide (captures[2]), wi::to_wide (captures[4]))
12182 : 0 : && wi::leu_p (wi::to_wide (captures[4]) + wi::to_wide (captures[3]),
12183 : 0 : wi::to_wide (captures[2]) + isize)
12184 : : )
12185 : : {
12186 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail2100;
12187 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail2100;
12188 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2100;
12189 : 0 : {
12190 : 0 : tree res_op0;
12191 : 0 : res_op0 = captures[1];
12192 : 0 : tree res_op1;
12193 : 0 : res_op1 = captures[3];
12194 : 0 : tree res_op2;
12195 : 0 : res_op2 = wide_int_to_tree (bitsizetype,
12196 : 0 : wi::to_wide (captures[4])
12197 : 0 : - wi::to_wide (captures[2]));
12198 : 0 : tree _r;
12199 : 0 : _r = fold_build3_loc (loc, BIT_FIELD_REF, type, res_op0, res_op1, res_op2);
12200 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
12201 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
12202 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1118, __FILE__, __LINE__, true);
12203 : 0 : return _r;
12204 : : }
12205 : 0 : next_after_fail2100:;
12206 : : }
12207 : : else
12208 : : {
12209 : 0 : if (wi::eq_p (wi::to_wide (captures[2]), wi::to_wide (captures[4]))
12210 : 0 : && compare_tree_int (captures[3], isize) == 0
12211 : : )
12212 : : {
12213 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2101;
12214 : 0 : {
12215 : 0 : tree res_op0;
12216 : 0 : res_op0 = captures[1];
12217 : 0 : tree _r;
12218 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
12219 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
12220 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
12221 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
12222 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
12223 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
12224 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
12225 : 0 : if (TREE_SIDE_EFFECTS (captures[4]))
12226 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[4]), _r);
12227 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1119, __FILE__, __LINE__, true);
12228 : 0 : return _r;
12229 : : }
12230 : 0 : next_after_fail2101:;
12231 : : }
12232 : : else
12233 : : {
12234 : 0 : if (wi::geu_p (wi::to_wide (captures[2]),
12235 : 0 : wi::to_wide (captures[4]) + wi::to_wide (captures[3]))
12236 : 0 : || wi::geu_p (wi::to_wide (captures[4]),
12237 : 0 : wi::to_wide (captures[2]) + isize)
12238 : : )
12239 : : {
12240 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2102;
12241 : 0 : {
12242 : 0 : tree res_op0;
12243 : 0 : res_op0 = captures[0];
12244 : 0 : tree res_op1;
12245 : 0 : res_op1 = captures[3];
12246 : 0 : tree res_op2;
12247 : 0 : res_op2 = captures[4];
12248 : 0 : tree _r;
12249 : 0 : _r = fold_build3_loc (loc, BIT_FIELD_REF, type, res_op0, res_op1, res_op2);
12250 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
12251 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
12252 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
12253 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
12254 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1120, __FILE__, __LINE__, true);
12255 : 0 : return _r;
12256 : : }
12257 : 0 : next_after_fail2102:;
12258 : : }
12259 : : }
12260 : : }
12261 : : }
12262 : : }
12263 : 0 : break;
12264 : : }
12265 : : default:;
12266 : : }
12267 : : return NULL_TREE;
12268 : : }
12269 : : #pragma GCC diagnostic pop
|