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 : 1363544 : tree_power_of_two_cand (tree t, tree *res_ops)
11 : : {
12 : 1363544 : const tree type = TREE_TYPE (t);
13 : 1363544 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
14 : 1363544 : if (TREE_SIDE_EFFECTS (t)) return false;
15 : 1362830 : switch (TREE_CODE (t))
16 : : {
17 : 1142026 : case INTEGER_CST:
18 : 1142026 : {
19 : 1142026 : {
20 : 1142026 : tree captures[1] ATTRIBUTE_UNUSED = { t };
21 : 1142026 : {
22 : 1142026 : res_ops[0] = captures[0];
23 : 1142026 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 2, __FILE__, __LINE__, false);
24 : : return true;
25 : : }
26 : : }
27 : 16 : break;
28 : : }
29 : 16 : case LSHIFT_EXPR:
30 : 16 : {
31 : 16 : tree _p0 = TREE_OPERAND (t, 0);
32 : 16 : tree _p1 = TREE_OPERAND (t, 1);
33 : 16 : switch (TREE_CODE (_p0))
34 : : {
35 : 16 : case INTEGER_CST:
36 : 16 : {
37 : 16 : {
38 : 16 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
39 : 16 : {
40 : 16 : res_ops[0] = captures[0];
41 : 16 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 3, __FILE__, __LINE__, false);
42 : 16 : return true;
43 : : }
44 : : }
45 : : break;
46 : : }
47 : : default:;
48 : : }
49 : : break;
50 : : }
51 : : default:;
52 : : }
53 : : return false;
54 : : }
55 : :
56 : : bool
57 : 0 : tree_double_value_p (tree t)
58 : : {
59 : 0 : const tree type = TREE_TYPE (t);
60 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
61 : 0 : if (TREE_SIDE_EFFECTS (t)) return false;
62 : 0 : {
63 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { t };
64 : 0 : if (TYPE_MAIN_VARIANT (TREE_TYPE (captures[0])) == double_type_node
65 : : )
66 : : {
67 : 0 : {
68 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 31, __FILE__, __LINE__, false);
69 : 0 : return true;
70 : : }
71 : : }
72 : : }
73 : : return false;
74 : : }
75 : :
76 : : bool
77 : 0 : tree_bitwise_induction_p (tree t, tree *res_ops)
78 : : {
79 : 0 : const tree type = TREE_TYPE (t);
80 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
81 : 0 : if (TREE_SIDE_EFFECTS (t)) return false;
82 : 0 : switch (TREE_CODE (t))
83 : : {
84 : 0 : case BIT_AND_EXPR:
85 : 0 : case BIT_IOR_EXPR:
86 : 0 : case BIT_XOR_EXPR:
87 : 0 : {
88 : 0 : tree _p0 = TREE_OPERAND (t, 0);
89 : 0 : tree _p1 = TREE_OPERAND (t, 1);
90 : 0 : {
91 : 0 : tree _p0_pops[1];
92 : 0 : if (tree_nop_convert (_p0, _p0_pops))
93 : : {
94 : 0 : tree _q20 = _p0_pops[0];
95 : 0 : switch (TREE_CODE (_q20))
96 : : {
97 : 0 : case BIT_NOT_EXPR:
98 : 0 : {
99 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
100 : 0 : switch (TREE_CODE (_q30))
101 : : {
102 : 0 : CASE_CONVERT:
103 : 0 : {
104 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
105 : 0 : switch (TREE_CODE (_q40))
106 : : {
107 : 0 : case LSHIFT_EXPR:
108 : 0 : {
109 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
110 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
111 : 0 : if (integer_onep (_q50))
112 : : {
113 : 0 : {
114 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q51, _p1, _q50 };
115 : 0 : {
116 : 0 : res_ops[0] = captures[0];
117 : 0 : res_ops[1] = captures[1];
118 : 0 : res_ops[2] = captures[2];
119 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 38, __FILE__, __LINE__, false);
120 : 0 : return true;
121 : : }
122 : : }
123 : : }
124 : : break;
125 : : }
126 : : default:;
127 : : }
128 : : break;
129 : : }
130 : 0 : case LSHIFT_EXPR:
131 : 0 : {
132 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
133 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
134 : 0 : if (integer_onep (_q40))
135 : : {
136 : 0 : {
137 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q41, _p1, _q40 };
138 : 0 : {
139 : 0 : res_ops[0] = captures[0];
140 : 0 : res_ops[1] = captures[1];
141 : 0 : res_ops[2] = captures[2];
142 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 38, __FILE__, __LINE__, false);
143 : 0 : return true;
144 : : }
145 : : }
146 : : }
147 : : break;
148 : : }
149 : : default:;
150 : : }
151 : : break;
152 : : }
153 : 0 : CASE_CONVERT:
154 : 0 : {
155 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
156 : 0 : switch (TREE_CODE (_q30))
157 : : {
158 : 0 : case LSHIFT_EXPR:
159 : 0 : {
160 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
161 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
162 : 0 : if (integer_onep (_q40))
163 : : {
164 : 0 : {
165 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q41, _p1, _q40 };
166 : 0 : {
167 : 0 : res_ops[0] = captures[0];
168 : 0 : res_ops[1] = captures[1];
169 : 0 : res_ops[2] = captures[2];
170 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 38, __FILE__, __LINE__, false);
171 : 0 : return true;
172 : : }
173 : : }
174 : : }
175 : : break;
176 : : }
177 : : default:;
178 : : }
179 : : break;
180 : : }
181 : 0 : case LSHIFT_EXPR:
182 : 0 : {
183 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
184 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
185 : 0 : if (integer_onep (_q30))
186 : : {
187 : 0 : {
188 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q31, _p1, _q30 };
189 : 0 : {
190 : 0 : res_ops[0] = captures[0];
191 : 0 : res_ops[1] = captures[1];
192 : 0 : res_ops[2] = captures[2];
193 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 38, __FILE__, __LINE__, false);
194 : 0 : return true;
195 : : }
196 : : }
197 : : }
198 : : break;
199 : : }
200 : : default:;
201 : : }
202 : : }
203 : : }
204 : 0 : {
205 : 0 : tree _p1_pops[1];
206 : 0 : if (tree_nop_convert (_p1, _p1_pops))
207 : : {
208 : 0 : tree _q30 = _p1_pops[0];
209 : 0 : switch (TREE_CODE (_q30))
210 : : {
211 : 0 : case BIT_NOT_EXPR:
212 : 0 : {
213 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
214 : 0 : switch (TREE_CODE (_q40))
215 : : {
216 : 0 : CASE_CONVERT:
217 : 0 : {
218 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
219 : 0 : switch (TREE_CODE (_q50))
220 : : {
221 : 0 : case LSHIFT_EXPR:
222 : 0 : {
223 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
224 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
225 : 0 : if (integer_onep (_q60))
226 : : {
227 : 0 : {
228 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q61, _p0, _q60 };
229 : 0 : {
230 : 0 : res_ops[0] = captures[0];
231 : 0 : res_ops[1] = captures[1];
232 : 0 : res_ops[2] = captures[2];
233 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 38, __FILE__, __LINE__, false);
234 : 0 : return true;
235 : : }
236 : : }
237 : : }
238 : : break;
239 : : }
240 : : default:;
241 : : }
242 : : break;
243 : : }
244 : 0 : case LSHIFT_EXPR:
245 : 0 : {
246 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
247 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
248 : 0 : if (integer_onep (_q50))
249 : : {
250 : 0 : {
251 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q51, _p0, _q50 };
252 : 0 : {
253 : 0 : res_ops[0] = captures[0];
254 : 0 : res_ops[1] = captures[1];
255 : 0 : res_ops[2] = captures[2];
256 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 38, __FILE__, __LINE__, false);
257 : 0 : return true;
258 : : }
259 : : }
260 : : }
261 : : break;
262 : : }
263 : : default:;
264 : : }
265 : : break;
266 : : }
267 : 0 : CASE_CONVERT:
268 : 0 : {
269 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
270 : 0 : switch (TREE_CODE (_q40))
271 : : {
272 : 0 : case LSHIFT_EXPR:
273 : 0 : {
274 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
275 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
276 : 0 : if (integer_onep (_q50))
277 : : {
278 : 0 : {
279 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q51, _p0, _q50 };
280 : 0 : {
281 : 0 : res_ops[0] = captures[0];
282 : 0 : res_ops[1] = captures[1];
283 : 0 : res_ops[2] = captures[2];
284 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 38, __FILE__, __LINE__, false);
285 : 0 : return true;
286 : : }
287 : : }
288 : : }
289 : : break;
290 : : }
291 : : default:;
292 : : }
293 : : break;
294 : : }
295 : 0 : case LSHIFT_EXPR:
296 : 0 : {
297 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
298 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
299 : 0 : if (integer_onep (_q40))
300 : : {
301 : 0 : {
302 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q41, _p0, _q40 };
303 : 0 : {
304 : 0 : res_ops[0] = captures[0];
305 : 0 : res_ops[1] = captures[1];
306 : 0 : res_ops[2] = captures[2];
307 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 38, __FILE__, __LINE__, false);
308 : 0 : return true;
309 : : }
310 : : }
311 : : }
312 : : break;
313 : : }
314 : : default:;
315 : : }
316 : : }
317 : : }
318 : 0 : switch (TREE_CODE (_p0))
319 : : {
320 : 0 : case BIT_NOT_EXPR:
321 : 0 : {
322 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
323 : 0 : switch (TREE_CODE (_q20))
324 : : {
325 : 0 : CASE_CONVERT:
326 : 0 : {
327 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
328 : 0 : switch (TREE_CODE (_q30))
329 : : {
330 : 0 : case LSHIFT_EXPR:
331 : 0 : {
332 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
333 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
334 : 0 : if (integer_onep (_q40))
335 : : {
336 : 0 : {
337 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q41, _p1, _q40 };
338 : 0 : {
339 : 0 : res_ops[0] = captures[0];
340 : 0 : res_ops[1] = captures[1];
341 : 0 : res_ops[2] = captures[2];
342 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 38, __FILE__, __LINE__, false);
343 : 0 : return true;
344 : : }
345 : : }
346 : : }
347 : : break;
348 : : }
349 : : default:;
350 : : }
351 : : break;
352 : : }
353 : 0 : case LSHIFT_EXPR:
354 : 0 : {
355 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
356 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
357 : 0 : if (integer_onep (_q30))
358 : : {
359 : 0 : {
360 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q31, _p1, _q30 };
361 : 0 : {
362 : 0 : res_ops[0] = captures[0];
363 : 0 : res_ops[1] = captures[1];
364 : 0 : res_ops[2] = captures[2];
365 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 38, __FILE__, __LINE__, false);
366 : 0 : return true;
367 : : }
368 : : }
369 : : }
370 : : break;
371 : : }
372 : : default:;
373 : : }
374 : : break;
375 : : }
376 : 0 : default:;
377 : : }
378 : 0 : switch (TREE_CODE (_p1))
379 : : {
380 : 0 : case BIT_NOT_EXPR:
381 : 0 : {
382 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
383 : 0 : switch (TREE_CODE (_q30))
384 : : {
385 : 0 : CASE_CONVERT:
386 : 0 : {
387 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
388 : 0 : switch (TREE_CODE (_q40))
389 : : {
390 : 0 : case LSHIFT_EXPR:
391 : 0 : {
392 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
393 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
394 : 0 : if (integer_onep (_q50))
395 : : {
396 : 0 : {
397 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q51, _p0, _q50 };
398 : 0 : {
399 : 0 : res_ops[0] = captures[0];
400 : 0 : res_ops[1] = captures[1];
401 : 0 : res_ops[2] = captures[2];
402 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 38, __FILE__, __LINE__, false);
403 : 0 : return true;
404 : : }
405 : : }
406 : : }
407 : : break;
408 : : }
409 : : default:;
410 : : }
411 : : break;
412 : : }
413 : 0 : case LSHIFT_EXPR:
414 : 0 : {
415 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
416 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
417 : 0 : if (integer_onep (_q40))
418 : : {
419 : 0 : {
420 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q41, _p0, _q40 };
421 : 0 : {
422 : 0 : res_ops[0] = captures[0];
423 : 0 : res_ops[1] = captures[1];
424 : 0 : res_ops[2] = captures[2];
425 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 38, __FILE__, __LINE__, false);
426 : 0 : return true;
427 : : }
428 : : }
429 : : }
430 : : break;
431 : : }
432 : : default:;
433 : : }
434 : : break;
435 : : }
436 : 0 : default:;
437 : : }
438 : 0 : switch (TREE_CODE (_p0))
439 : : {
440 : 0 : CASE_CONVERT:
441 : 0 : {
442 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
443 : 0 : switch (TREE_CODE (_q20))
444 : : {
445 : 0 : case LSHIFT_EXPR:
446 : 0 : {
447 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
448 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
449 : 0 : if (integer_onep (_q30))
450 : : {
451 : 0 : {
452 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q31, _p1, _q30 };
453 : 0 : {
454 : 0 : res_ops[0] = captures[0];
455 : 0 : res_ops[1] = captures[1];
456 : 0 : res_ops[2] = captures[2];
457 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 38, __FILE__, __LINE__, false);
458 : 0 : return true;
459 : : }
460 : : }
461 : : }
462 : : break;
463 : : }
464 : : default:;
465 : : }
466 : : break;
467 : : }
468 : 0 : default:;
469 : : }
470 : 0 : switch (TREE_CODE (_p1))
471 : : {
472 : 0 : CASE_CONVERT:
473 : 0 : {
474 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
475 : 0 : switch (TREE_CODE (_q30))
476 : : {
477 : 0 : case LSHIFT_EXPR:
478 : 0 : {
479 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
480 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
481 : 0 : if (integer_onep (_q40))
482 : : {
483 : 0 : {
484 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q41, _p0, _q40 };
485 : 0 : {
486 : 0 : res_ops[0] = captures[0];
487 : 0 : res_ops[1] = captures[1];
488 : 0 : res_ops[2] = captures[2];
489 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 38, __FILE__, __LINE__, false);
490 : 0 : return true;
491 : : }
492 : : }
493 : : }
494 : : break;
495 : : }
496 : : default:;
497 : : }
498 : : break;
499 : : }
500 : 0 : default:;
501 : : }
502 : 0 : switch (TREE_CODE (_p0))
503 : : {
504 : 0 : case LSHIFT_EXPR:
505 : 0 : {
506 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
507 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
508 : 0 : if (integer_onep (_q20))
509 : : {
510 : 0 : {
511 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q21, _p1, _q20 };
512 : 0 : {
513 : 0 : res_ops[0] = captures[0];
514 : 0 : res_ops[1] = captures[1];
515 : 0 : res_ops[2] = captures[2];
516 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 38, __FILE__, __LINE__, false);
517 : 0 : return true;
518 : : }
519 : : }
520 : : }
521 : : break;
522 : : }
523 : 0 : default:;
524 : : }
525 : 0 : switch (TREE_CODE (_p1))
526 : : {
527 : 0 : case LSHIFT_EXPR:
528 : 0 : {
529 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
530 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
531 : 0 : if (integer_onep (_q30))
532 : : {
533 : 0 : {
534 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q31, _p0, _q30 };
535 : 0 : {
536 : 0 : res_ops[0] = captures[0];
537 : 0 : res_ops[1] = captures[1];
538 : 0 : res_ops[2] = captures[2];
539 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 38, __FILE__, __LINE__, false);
540 : 0 : return true;
541 : : }
542 : : }
543 : : }
544 : : break;
545 : : }
546 : : default:;
547 : : }
548 : : break;
549 : : }
550 : 0 : case BIT_NOT_EXPR:
551 : 0 : {
552 : 0 : tree _p0 = TREE_OPERAND (t, 0);
553 : 0 : switch (TREE_CODE (_p0))
554 : : {
555 : 0 : case BIT_XOR_EXPR:
556 : 0 : {
557 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
558 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
559 : 0 : switch (TREE_CODE (_q20))
560 : : {
561 : 0 : CASE_CONVERT:
562 : 0 : {
563 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
564 : 0 : switch (TREE_CODE (_q30))
565 : : {
566 : 0 : case LSHIFT_EXPR:
567 : 0 : {
568 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
569 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
570 : 0 : if (integer_onep (_q40))
571 : : {
572 : 0 : {
573 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q41, _q21, _q40 };
574 : 0 : {
575 : 0 : res_ops[0] = captures[0];
576 : 0 : res_ops[1] = captures[1];
577 : 0 : res_ops[2] = captures[2];
578 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 39, __FILE__, __LINE__, false);
579 : 0 : return true;
580 : : }
581 : : }
582 : : }
583 : : break;
584 : : }
585 : : default:;
586 : : }
587 : : break;
588 : : }
589 : 0 : case LSHIFT_EXPR:
590 : 0 : {
591 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
592 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
593 : 0 : if (integer_onep (_q30))
594 : : {
595 : 0 : {
596 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q31, _q21, _q30 };
597 : 0 : {
598 : 0 : res_ops[0] = captures[0];
599 : 0 : res_ops[1] = captures[1];
600 : 0 : res_ops[2] = captures[2];
601 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 39, __FILE__, __LINE__, false);
602 : 0 : return true;
603 : : }
604 : : }
605 : : }
606 : : break;
607 : : }
608 : : default:;
609 : : }
610 : : break;
611 : : }
612 : 0 : default:;
613 : : }
614 : 0 : {
615 : 0 : tree _p0_pops[1];
616 : 0 : if (tree_nop_convert (_p0, _p0_pops))
617 : : {
618 : 0 : tree _q20 = _p0_pops[0];
619 : 0 : switch (TREE_CODE (_q20))
620 : : {
621 : 0 : case BIT_XOR_EXPR:
622 : 0 : {
623 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
624 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
625 : 0 : switch (TREE_CODE (_q30))
626 : : {
627 : 0 : CASE_CONVERT:
628 : 0 : {
629 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
630 : 0 : switch (TREE_CODE (_q40))
631 : : {
632 : 0 : case LSHIFT_EXPR:
633 : 0 : {
634 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
635 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
636 : 0 : if (integer_onep (_q50))
637 : : {
638 : 0 : {
639 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q51, _q31, _q50 };
640 : 0 : {
641 : 0 : res_ops[0] = captures[0];
642 : 0 : res_ops[1] = captures[1];
643 : 0 : res_ops[2] = captures[2];
644 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 39, __FILE__, __LINE__, false);
645 : 0 : return true;
646 : : }
647 : : }
648 : : }
649 : : break;
650 : : }
651 : : default:;
652 : : }
653 : : break;
654 : : }
655 : 0 : case LSHIFT_EXPR:
656 : 0 : {
657 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
658 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
659 : 0 : if (integer_onep (_q40))
660 : : {
661 : 0 : {
662 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q41, _q31, _q40 };
663 : 0 : {
664 : 0 : res_ops[0] = captures[0];
665 : 0 : res_ops[1] = captures[1];
666 : 0 : res_ops[2] = captures[2];
667 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 39, __FILE__, __LINE__, false);
668 : 0 : return true;
669 : : }
670 : : }
671 : : }
672 : : break;
673 : : }
674 : : default:;
675 : : }
676 : : break;
677 : : }
678 : : default:;
679 : : }
680 : : }
681 : : }
682 : 0 : break;
683 : : }
684 : : default:;
685 : : }
686 : : return false;
687 : : }
688 : :
689 : : tree
690 : 7 : generic_simplify_106 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
691 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
692 : : const enum tree_code ARG_UNUSED (op))
693 : : {
694 : 7 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
695 : 7 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail209;
696 : 7 : {
697 : 7 : tree _r;
698 : 7 : _r = constant_boolean_node (true, type);
699 : 7 : if (TREE_SIDE_EFFECTS (captures[0]))
700 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
701 : 7 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 148, __FILE__, __LINE__, true);
702 : : return _r;
703 : : }
704 : 0 : next_after_fail209:;
705 : 0 : return NULL_TREE;
706 : : }
707 : :
708 : : tree
709 : 0 : generic_simplify_110 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
710 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
711 : : const enum tree_code ARG_UNUSED (cmp),
712 : : const enum tree_code ARG_UNUSED (icmp))
713 : : {
714 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
715 : 0 : if (INTEGRAL_TYPE_P (type)
716 : 0 : && invert_tree_comparison (cmp, HONOR_NANS (captures[1])) == icmp
717 : 0 : && canonicalize_math_after_vectorization_p ()
718 : : )
719 : : {
720 : : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail216;
721 : : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail216;
722 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail216;
723 : : {
724 : : tree res_op0;
725 : : res_op0 = captures[0];
726 : : tree res_op1;
727 : : res_op1 = captures[3];
728 : : tree res_op2;
729 : : res_op2 = captures[5];
730 : : tree _r;
731 : : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
732 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 155, __FILE__, __LINE__, true);
733 : : return _r;
734 : : }
735 : 0 : next_after_fail216:;
736 : : }
737 : 0 : return NULL_TREE;
738 : : }
739 : :
740 : : tree
741 : 7 : generic_simplify_118 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
742 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
743 : : const enum tree_code ARG_UNUSED (code2),
744 : : const enum tree_code ARG_UNUSED (code1))
745 : : {
746 : 7 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
747 : 7 : if ((TREE_CODE (captures[2]) == INTEGER_CST
748 : 7 : && TREE_CODE (captures[4]) == INTEGER_CST)
749 : 7 : || ((INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
750 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[2])))
751 : 0 : && operand_equal_p (captures[2], captures[4]))
752 : : )
753 : : {
754 : 7 : {
755 : 7 : int cmp = 0;
756 : 7 : if (TREE_CODE (captures[2]) == INTEGER_CST
757 : 7 : && TREE_CODE (captures[4]) == INTEGER_CST)
758 : 7 : cmp = tree_int_cst_compare (captures[2], captures[4]);
759 : 7 : if ((code1 == LT_EXPR || code1 == LE_EXPR)
760 : 7 : && (code2 == LT_EXPR || code2 == LE_EXPR)
761 : : )
762 : : {
763 : 7 : if ((cmp < 0) || (cmp == 0 && code1 == LT_EXPR)
764 : : )
765 : : {
766 : 7 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail237;
767 : 7 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail237;
768 : 7 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail237;
769 : 7 : {
770 : 7 : tree _r;
771 : 7 : _r = captures[3];
772 : 7 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 169, __FILE__, __LINE__, true);
773 : 7 : return _r;
774 : : }
775 : : next_after_fail237:;
776 : : }
777 : : else
778 : : {
779 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail238;
780 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail238;
781 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail238;
782 : 0 : {
783 : 0 : tree _r;
784 : 0 : _r = captures[0];
785 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 170, __FILE__, __LINE__, true);
786 : 0 : return _r;
787 : : }
788 : : next_after_fail238:;
789 : : }
790 : : }
791 : : else
792 : : {
793 : 0 : if ((code1 == GT_EXPR || code1 == GE_EXPR)
794 : 0 : && (code2 == GT_EXPR || code2 == GE_EXPR)
795 : : )
796 : : {
797 : 0 : if ((cmp > 0) || (cmp == 0 && code1 == GT_EXPR)
798 : : )
799 : : {
800 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail239;
801 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail239;
802 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail239;
803 : 0 : {
804 : 0 : tree _r;
805 : 0 : _r = captures[3];
806 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 171, __FILE__, __LINE__, true);
807 : 0 : return _r;
808 : : }
809 : : next_after_fail239:;
810 : : }
811 : : else
812 : : {
813 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail240;
814 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail240;
815 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail240;
816 : 0 : {
817 : 0 : tree _r;
818 : 0 : _r = captures[0];
819 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 172, __FILE__, __LINE__, true);
820 : 0 : return _r;
821 : : }
822 : : next_after_fail240:;
823 : : }
824 : : }
825 : : else
826 : : {
827 : 0 : if (cmp == 0
828 : 0 : && ((code1 == LT_EXPR && code2 == GT_EXPR)
829 : 0 : || (code1 == GT_EXPR && code2 == LT_EXPR))
830 : : )
831 : : {
832 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail241;
833 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail241;
834 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail241;
835 : 0 : {
836 : 0 : tree res_op0;
837 : 0 : res_op0 = captures[1];
838 : 0 : tree res_op1;
839 : 0 : res_op1 = captures[4];
840 : 0 : tree _r;
841 : 0 : _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
842 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 173, __FILE__, __LINE__, true);
843 : 0 : return _r;
844 : : }
845 : : next_after_fail241:;
846 : : }
847 : : else
848 : : {
849 : 0 : if (cmp >= 0
850 : 0 : && (code1 == LT_EXPR || code1 == LE_EXPR)
851 : 0 : && (code2 == GT_EXPR || code2 == GE_EXPR)
852 : : )
853 : : {
854 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail242;
855 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail242;
856 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail242;
857 : 0 : {
858 : 0 : tree _r;
859 : 0 : _r = constant_boolean_node (true, type);
860 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
861 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
862 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 174, __FILE__, __LINE__, true);
863 : 0 : return _r;
864 : : }
865 : : next_after_fail242:;
866 : : }
867 : : else
868 : : {
869 : 0 : if (cmp <= 0
870 : 0 : && (code1 == GT_EXPR || code1 == GE_EXPR)
871 : 0 : && (code2 == LT_EXPR || code2 == LE_EXPR)
872 : : )
873 : : {
874 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail243;
875 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail243;
876 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail243;
877 : 0 : {
878 : 0 : tree _r;
879 : 0 : _r = constant_boolean_node (true, type);
880 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
881 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
882 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 175, __FILE__, __LINE__, true);
883 : 0 : return _r;
884 : : }
885 : : next_after_fail243:;
886 : : }
887 : : }
888 : : }
889 : : }
890 : : }
891 : : }
892 : : }
893 : : return NULL_TREE;
894 : : }
895 : :
896 : : tree
897 : 401 : generic_simplify_145 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
898 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
899 : : {
900 : 401 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
901 : 401 : if (bitwise_equal_p (captures[0], captures[2])
902 : : )
903 : : {
904 : 88 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail284;
905 : 88 : {
906 : 88 : tree res_op0;
907 : 88 : {
908 : 88 : tree _o1[1], _r1;
909 : 88 : {
910 : 88 : tree _o2[2], _r2;
911 : 88 : _o2[0] = captures[0];
912 : 88 : {
913 : 88 : tree _o3[1], _r3;
914 : 88 : _o3[0] = captures[1];
915 : 88 : if (TREE_TYPE (_o3[0]) != TREE_TYPE (_o2[0]))
916 : : {
917 : 8 : _r3 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (_o2[0]), _o3[0]);
918 : : }
919 : : else
920 : : _r3 = _o3[0];
921 : 88 : _o2[1] = _r3;
922 : : }
923 : 88 : _r2 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
924 : 88 : _o1[0] = _r2;
925 : : }
926 : 88 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
927 : 88 : res_op0 = _r1;
928 : : }
929 : 88 : tree _r;
930 : 88 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
931 : 88 : if (TREE_SIDE_EFFECTS (captures[2]))
932 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
933 : 88 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 195, __FILE__, __LINE__, true);
934 : 88 : return _r;
935 : : }
936 : 0 : next_after_fail284:;
937 : : }
938 : : return NULL_TREE;
939 : : }
940 : :
941 : : tree
942 : 2 : generic_simplify_155 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
943 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
944 : : {
945 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
946 : 2 : if (INTEGRAL_TYPE_P (type)
947 : 2 : && (
948 : :
949 : 2 : || !TREE_SIDE_EFFECTS (captures[1]))
950 : : )
951 : : {
952 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail294;
953 : 2 : {
954 : 2 : tree res_op0;
955 : 2 : {
956 : 2 : tree _o1[1], _r1;
957 : 2 : _o1[0] = captures[2];
958 : 2 : if (TREE_TYPE (_o1[0]) != boolean_type_node)
959 : : {
960 : 2 : _r1 = fold_build1_loc (loc, NOP_EXPR, boolean_type_node, _o1[0]);
961 : : }
962 : : else
963 : : _r1 = _o1[0];
964 : 2 : res_op0 = _r1;
965 : : }
966 : 2 : tree res_op1;
967 : 2 : res_op1 = captures[1];
968 : 2 : tree res_op2;
969 : 2 : res_op2 = captures[0];
970 : 2 : tree _r;
971 : 2 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
972 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 204, __FILE__, __LINE__, true);
973 : 2 : return _r;
974 : : }
975 : 0 : next_after_fail294:;
976 : : }
977 : : return NULL_TREE;
978 : : }
979 : :
980 : : tree
981 : 4980800 : generic_simplify_164 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
982 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
983 : : const enum tree_code ARG_UNUSED (op))
984 : : {
985 : 4980800 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
986 : 4980800 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail305;
987 : 4980800 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail305;
988 : 4980800 : {
989 : 4980800 : tree res_op0;
990 : 4980800 : res_op0 = captures[0];
991 : 4980800 : tree _r;
992 : 4980800 : _r = non_lvalue_loc (loc, res_op0);
993 : 4980800 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 213, __FILE__, __LINE__, true);
994 : : return _r;
995 : : }
996 : : next_after_fail305:;
997 : : return NULL_TREE;
998 : : }
999 : :
1000 : : tree
1001 : 85609 : generic_simplify_171 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1002 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1003 : : {
1004 : 85609 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1005 : 85609 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
1006 : 85609 : && tree_nop_conversion_p (type, TREE_TYPE (captures[1]))
1007 : : )
1008 : : {
1009 : 24329 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail314;
1010 : 24329 : {
1011 : 24329 : tree res_op0;
1012 : 24329 : {
1013 : 24329 : tree _o1[1], _r1;
1014 : 24329 : _o1[0] = captures[0];
1015 : 24329 : if (TREE_TYPE (_o1[0]) != type)
1016 : : {
1017 : 8789 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1018 : : }
1019 : : else
1020 : : _r1 = _o1[0];
1021 : 24329 : res_op0 = _r1;
1022 : : }
1023 : 24329 : tree res_op1;
1024 : 24329 : {
1025 : 24329 : tree _o1[1], _r1;
1026 : 24329 : {
1027 : 24329 : tree _o2[1], _r2;
1028 : 24329 : _o2[0] = captures[1];
1029 : 24329 : _r2 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
1030 : 24329 : _o1[0] = _r2;
1031 : : }
1032 : 24329 : if (TREE_TYPE (_o1[0]) != type)
1033 : : {
1034 : 7 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1035 : : }
1036 : : else
1037 : : _r1 = _o1[0];
1038 : 24329 : res_op1 = _r1;
1039 : : }
1040 : 24329 : tree _r;
1041 : 24329 : _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
1042 : 24329 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 219, __FILE__, __LINE__, true);
1043 : 24329 : return _r;
1044 : : }
1045 : 0 : next_after_fail314:;
1046 : : }
1047 : : return NULL_TREE;
1048 : : }
1049 : :
1050 : : tree
1051 : 5 : generic_simplify_185 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1052 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1053 : : {
1054 : 5 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1055 : 10 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
1056 : 10 : && TYPE_PRECISION (TREE_TYPE (captures[1])) == 1
1057 : : )
1058 : : {
1059 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail329;
1060 : 0 : {
1061 : 0 : tree res_op0;
1062 : 0 : {
1063 : 0 : tree _o1[2], _r1;
1064 : 0 : _o1[0] = captures[1];
1065 : 0 : _o1[1] = captures[2];
1066 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1067 : 0 : res_op0 = _r1;
1068 : : }
1069 : 0 : tree _r;
1070 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1071 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 233, __FILE__, __LINE__, true);
1072 : 0 : return _r;
1073 : : }
1074 : 0 : next_after_fail329:;
1075 : : }
1076 : : return NULL_TREE;
1077 : : }
1078 : :
1079 : : tree
1080 : 10443 : generic_simplify_193 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1081 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1082 : : const enum tree_code ARG_UNUSED (op))
1083 : : {
1084 : 10443 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1085 : 10443 : if (tree_nop_conversion_p (TREE_TYPE (captures[1]), TREE_TYPE (captures[2]))
1086 : 10443 : && tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[2]))
1087 : 10443 : && (CONSTANT_CLASS_P (captures[3]) || (single_use (captures[1]) && single_use (captures[0])))
1088 : : )
1089 : : {
1090 : 10443 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail353;
1091 : 10443 : {
1092 : 10443 : tree res_op0;
1093 : 10443 : res_op0 = captures[3];
1094 : 10443 : tree res_op1;
1095 : 10443 : res_op1 = build_zero_cst (TREE_TYPE (captures[3]));
1096 : 10443 : tree _r;
1097 : 10443 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
1098 : 10443 : if (TREE_SIDE_EFFECTS (captures[2]))
1099 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1100 : 10443 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 256, __FILE__, __LINE__, true);
1101 : 10443 : return _r;
1102 : : }
1103 : 0 : next_after_fail353:;
1104 : : }
1105 : : return NULL_TREE;
1106 : : }
1107 : :
1108 : : tree
1109 : 9 : generic_simplify_201 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1110 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1111 : : const enum tree_code ARG_UNUSED (cmp))
1112 : : {
1113 : 9 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1114 : 9 : if (TREE_INT_CST_LOW (captures[1]) & 1
1115 : : )
1116 : : {
1117 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail361;
1118 : 2 : {
1119 : 2 : tree _r;
1120 : 2 : _r = constant_boolean_node (cmp == NE_EXPR, type);
1121 : 2 : if (TREE_SIDE_EFFECTS (captures[0]))
1122 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1123 : 2 : if (TREE_SIDE_EFFECTS (captures[1]))
1124 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1125 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 263, __FILE__, __LINE__, true);
1126 : 2 : return _r;
1127 : : }
1128 : 0 : next_after_fail361:;
1129 : : }
1130 : : return NULL_TREE;
1131 : : }
1132 : :
1133 : : tree
1134 : 681 : generic_simplify_206 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1135 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1136 : : const enum tree_code ARG_UNUSED (cmp))
1137 : : {
1138 : 681 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1139 : 681 : if (wi::gt_p (wi::to_wide (captures[1]), wi::to_wide (captures[2]),
1140 : 681 : TYPE_SIGN (TREE_TYPE (captures[0])))
1141 : : )
1142 : : {
1143 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail367;
1144 : 12 : {
1145 : 12 : tree _r;
1146 : 12 : _r = constant_boolean_node (cmp == NE_EXPR, type);
1147 : 12 : if (TREE_SIDE_EFFECTS (captures[0]))
1148 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1149 : 12 : if (TREE_SIDE_EFFECTS (captures[1]))
1150 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1151 : 12 : if (TREE_SIDE_EFFECTS (captures[2]))
1152 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1153 : 12 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 269, __FILE__, __LINE__, true);
1154 : 12 : return _r;
1155 : : }
1156 : 0 : next_after_fail367:;
1157 : : }
1158 : : else
1159 : : {
1160 : 669 : if (wi::lt_p (wi::to_wide (captures[1]), wi::to_wide (captures[2]),
1161 : 669 : TYPE_SIGN (TREE_TYPE (captures[0])))
1162 : : )
1163 : : {
1164 : 669 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail368;
1165 : 669 : {
1166 : 669 : tree res_op0;
1167 : 669 : res_op0 = captures[0];
1168 : 669 : tree res_op1;
1169 : 669 : res_op1 = captures[2];
1170 : 669 : tree _r;
1171 : 669 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
1172 : 669 : if (TREE_SIDE_EFFECTS (captures[1]))
1173 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1174 : 669 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 270, __FILE__, __LINE__, true);
1175 : 669 : return _r;
1176 : : }
1177 : 0 : next_after_fail368:;
1178 : : }
1179 : : }
1180 : : return NULL_TREE;
1181 : : }
1182 : :
1183 : : tree
1184 : 379 : generic_simplify_216 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1185 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1186 : : const enum tree_code ARG_UNUSED (rotate),
1187 : : const enum tree_code ARG_UNUSED (invrot),
1188 : : const enum tree_code ARG_UNUSED (cmp))
1189 : : {
1190 : 379 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1191 : 379 : if (integer_zerop (captures[2]) || integer_all_onesp (captures[2])
1192 : : )
1193 : : {
1194 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail388;
1195 : 0 : {
1196 : 0 : tree res_op0;
1197 : 0 : res_op0 = captures[0];
1198 : 0 : tree res_op1;
1199 : 0 : res_op1 = captures[2];
1200 : 0 : tree _r;
1201 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
1202 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
1203 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1204 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 290, __FILE__, __LINE__, true);
1205 : 0 : return _r;
1206 : : }
1207 : 0 : next_after_fail388:;
1208 : : }
1209 : : return NULL_TREE;
1210 : : }
1211 : :
1212 : : tree
1213 : 25917 : generic_simplify_224 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1214 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1215 : : const enum tree_code ARG_UNUSED (cmp),
1216 : : const enum tree_code ARG_UNUSED (scmp))
1217 : : {
1218 : 25917 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1219 : 25917 : if (integer_zerop (captures[2])
1220 : : )
1221 : : {
1222 : 7 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail397;
1223 : 7 : {
1224 : 7 : tree res_op0;
1225 : 7 : res_op0 = captures[2];
1226 : 7 : tree res_op1;
1227 : 7 : res_op1 = captures[3];
1228 : 7 : tree _r;
1229 : 7 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
1230 : 7 : if (TREE_SIDE_EFFECTS (captures[1]))
1231 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1232 : 7 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 298, __FILE__, __LINE__, true);
1233 : 7 : return _r;
1234 : : }
1235 : 0 : next_after_fail397:;
1236 : : }
1237 : : else
1238 : : {
1239 : 51820 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
1240 : 51820 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[1]))
1241 : 51820 : && single_use (captures[0])
1242 : : )
1243 : : {
1244 : 4450 : if (tree_int_cst_sgn (captures[2]) < 0
1245 : : )
1246 : : {
1247 : 15 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail398;
1248 : 15 : {
1249 : 15 : tree res_op0;
1250 : 15 : res_op0 = captures[1];
1251 : 15 : tree res_op1;
1252 : 15 : res_op1 = captures[3];
1253 : 15 : tree _r;
1254 : 15 : _r = fold_build2_loc (loc, scmp, type, res_op0, res_op1);
1255 : 15 : if (TREE_SIDE_EFFECTS (captures[2]))
1256 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1257 : 15 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 299, __FILE__, __LINE__, true);
1258 : 15 : return _r;
1259 : : }
1260 : 0 : next_after_fail398:;
1261 : : }
1262 : : else
1263 : : {
1264 : 4435 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail399;
1265 : 4435 : {
1266 : 4435 : tree res_op0;
1267 : 4435 : res_op0 = captures[1];
1268 : 4435 : tree res_op1;
1269 : 4435 : res_op1 = captures[3];
1270 : 4435 : tree _r;
1271 : 4435 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
1272 : 4435 : if (TREE_SIDE_EFFECTS (captures[2]))
1273 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1274 : 4435 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 300, __FILE__, __LINE__, true);
1275 : 4435 : return _r;
1276 : : }
1277 : 0 : next_after_fail399:;
1278 : : }
1279 : : }
1280 : : }
1281 : : return NULL_TREE;
1282 : : }
1283 : :
1284 : : tree
1285 : 78913 : generic_simplify_237 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1286 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1287 : : const enum tree_code ARG_UNUSED (cmp),
1288 : : const enum tree_code ARG_UNUSED (icmp))
1289 : : {
1290 : 78913 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1291 : 78913 : if (SCALAR_FLOAT_TYPE_P (TREE_TYPE (captures[1]))
1292 : 78913 : && ! DECIMAL_FLOAT_TYPE_P (TREE_TYPE (captures[1]))
1293 : : )
1294 : : {
1295 : 78422 : {
1296 : 78422 : tree itype = TREE_TYPE (captures[0]);
1297 : 78422 : format_helper fmt (REAL_MODE_FORMAT (TYPE_MODE (TREE_TYPE (captures[1]))));
1298 : 78422 : const REAL_VALUE_TYPE *cst = TREE_REAL_CST_PTR (captures[1]);
1299 : 78422 : bool exception_p
1300 : 78422 : = real_isnan (cst) && (cst->signalling
1301 : 76 : || (cmp != EQ_EXPR && cmp != NE_EXPR));
1302 : 78422 : if (fmt.can_represent_integral_type_p (itype) && ! exception_p
1303 : : )
1304 : : {
1305 : 38563 : {
1306 : 38563 : signop isign = TYPE_SIGN (itype);
1307 : 38563 : REAL_VALUE_TYPE imin, imax;
1308 : 38563 : real_from_integer (&imin, fmt, wi::min_value (itype), isign);
1309 : 38563 : real_from_integer (&imax, fmt, wi::max_value (itype), isign);
1310 : 38563 : REAL_VALUE_TYPE icst;
1311 : 38563 : if (cmp == GT_EXPR || cmp == GE_EXPR)
1312 : 38178 : real_ceil (&icst, fmt, cst);
1313 : 385 : else if (cmp == LT_EXPR || cmp == LE_EXPR)
1314 : 221 : real_floor (&icst, fmt, cst);
1315 : : else
1316 : 164 : real_trunc (&icst, fmt, cst);
1317 : 38563 : bool cst_int_p = !real_isnan (cst) && real_identical (&icst, cst);
1318 : 38563 : bool overflow_p = false;
1319 : 38563 : wide_int icst_val
1320 : 38563 : = real_to_integer (&icst, &overflow_p, TYPE_PRECISION (itype));
1321 : 38563 : if (real_compare (LT_EXPR, cst, &imin)
1322 : : )
1323 : : {
1324 : 19094 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail450;
1325 : 19094 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail450;
1326 : 19094 : {
1327 : 19094 : tree _r;
1328 : 19094 : _r = constant_boolean_node (cmp == GT_EXPR || cmp == GE_EXPR || cmp == NE_EXPR,
1329 : : type);
1330 : 19094 : if (TREE_SIDE_EFFECTS (captures[0]))
1331 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1332 : 19094 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 350, __FILE__, __LINE__, true);
1333 : 19094 : return _r;
1334 : : }
1335 : 0 : next_after_fail450:;
1336 : : }
1337 : : else
1338 : : {
1339 : 19469 : if (real_compare (GT_EXPR, cst, &imax)
1340 : : )
1341 : : {
1342 : 115 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail451;
1343 : 115 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail451;
1344 : 115 : {
1345 : 115 : tree _r;
1346 : 115 : _r = constant_boolean_node (cmp == LT_EXPR || cmp == LE_EXPR || cmp == NE_EXPR,
1347 : : type);
1348 : 115 : if (TREE_SIDE_EFFECTS (captures[0]))
1349 : 1 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1350 : 115 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 351, __FILE__, __LINE__, true);
1351 : 115 : return _r;
1352 : : }
1353 : 0 : next_after_fail451:;
1354 : : }
1355 : : else
1356 : : {
1357 : 19354 : if (cst_int_p
1358 : : )
1359 : : {
1360 : 19224 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail452;
1361 : 19224 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail452;
1362 : 19224 : {
1363 : 19224 : tree res_op0;
1364 : 19224 : res_op0 = captures[0];
1365 : 19224 : tree res_op1;
1366 : 19224 : gcc_assert (!overflow_p); res_op1 =
1367 : 19224 : wide_int_to_tree (itype, icst_val);
1368 : 19224 : tree _r;
1369 : 19224 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
1370 : 19224 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 352, __FILE__, __LINE__, true);
1371 : 19224 : return _r;
1372 : : }
1373 : 0 : next_after_fail452:;
1374 : : }
1375 : : else
1376 : : {
1377 : 130 : if (cmp == EQ_EXPR || cmp == NE_EXPR
1378 : : )
1379 : : {
1380 : 18 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail453;
1381 : 18 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail453;
1382 : 18 : {
1383 : 18 : tree _r;
1384 : 18 : _r = constant_boolean_node (cmp == NE_EXPR, type);
1385 : 18 : if (TREE_SIDE_EFFECTS (captures[0]))
1386 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1387 : 18 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 353, __FILE__, __LINE__, true);
1388 : 18 : return _r;
1389 : : }
1390 : 0 : next_after_fail453:;
1391 : : }
1392 : : else
1393 : : {
1394 : 112 : {
1395 : 112 : gcc_checking_assert (!overflow_p);
1396 : 112 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail454;
1397 : 112 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail454;
1398 : 112 : {
1399 : 112 : tree res_op0;
1400 : 112 : res_op0 = captures[0];
1401 : 112 : tree res_op1;
1402 : 112 : res_op1 = wide_int_to_tree (itype, icst_val);
1403 : 112 : tree _r;
1404 : 112 : _r = fold_build2_loc (loc, icmp, type, res_op0, res_op1);
1405 : 112 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 354, __FILE__, __LINE__, true);
1406 : 112 : return _r;
1407 : : }
1408 : 0 : next_after_fail454:;
1409 : : }
1410 : : }
1411 : : }
1412 : : }
1413 : : }
1414 : 38563 : }
1415 : : }
1416 : : }
1417 : : }
1418 : : return NULL_TREE;
1419 : : }
1420 : :
1421 : : tree
1422 : 10839 : generic_simplify_252 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1423 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1424 : : const enum tree_code ARG_UNUSED (cmp))
1425 : : {
1426 : 10839 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1427 : 10839 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail486;
1428 : 10839 : {
1429 : 10839 : tree res_op0;
1430 : 10839 : {
1431 : 10839 : tree _o1[2], _r1;
1432 : 10839 : {
1433 : 10839 : tree _o2[2], _r2;
1434 : 10839 : _o2[0] = captures[1];
1435 : 10839 : _o2[1] = captures[4];
1436 : 10839 : _r2 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
1437 : 10839 : _o1[0] = _r2;
1438 : : }
1439 : 10839 : _o1[1] = captures[2];
1440 : 10839 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1441 : 10839 : res_op0 = _r1;
1442 : : }
1443 : 10839 : tree res_op1;
1444 : 10839 : res_op1 = build_zero_cst (TREE_TYPE (captures[2]));
1445 : 10839 : tree _r;
1446 : 10839 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
1447 : 10839 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 379, __FILE__, __LINE__, true);
1448 : : return _r;
1449 : : }
1450 : 0 : next_after_fail486:;
1451 : 0 : return NULL_TREE;
1452 : : }
1453 : :
1454 : : tree
1455 : 637329 : generic_simplify_259 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1456 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1457 : : const enum tree_code ARG_UNUSED (cmp))
1458 : : {
1459 : 637329 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1460 : 637329 : {
1461 : 637329 : poly_int64 off0, off1;
1462 : 637329 : tree base0, base1;
1463 : 637329 : int equal = address_compare (cmp, TREE_TYPE (captures[0]), captures[1], captures[2], base0, base1,
1464 : : off0, off1,
1465 : : 1
1466 : : );
1467 : 637329 : if (equal == 1
1468 : : )
1469 : : {
1470 : 611074 : if (cmp == EQ_EXPR && (known_eq (off0, off1) || known_ne (off0, off1))
1471 : : )
1472 : : {
1473 : 42593 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail493;
1474 : 42593 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail493;
1475 : 42593 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail493;
1476 : 42593 : {
1477 : 42593 : tree _r;
1478 : 42593 : _r = constant_boolean_node (known_eq (off0, off1), type);
1479 : 42593 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 384, __FILE__, __LINE__, true);
1480 : 621570 : return _r;
1481 : : }
1482 : 15759 : next_after_fail493:;
1483 : : }
1484 : : else
1485 : : {
1486 : 566245 : if (cmp == NE_EXPR && (known_eq (off0, off1) || known_ne (off0, off1))
1487 : : )
1488 : : {
1489 : 566245 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail494;
1490 : 566245 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail494;
1491 : 566245 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail494;
1492 : 566245 : {
1493 : 566245 : tree _r;
1494 : 566245 : _r = constant_boolean_node (known_ne (off0, off1), type);
1495 : 566245 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 385, __FILE__, __LINE__, true);
1496 : 566245 : return _r;
1497 : : }
1498 : 15759 : next_after_fail494:;
1499 : : }
1500 : : else
1501 : : {
1502 : 2047 : if (cmp == LT_EXPR && (known_lt (off0, off1) || known_ge (off0, off1))
1503 : : )
1504 : : {
1505 : 2047 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail495;
1506 : 2047 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail495;
1507 : 2047 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail495;
1508 : 2047 : {
1509 : 2047 : tree _r;
1510 : 2047 : _r = constant_boolean_node (known_lt (off0, off1), type);
1511 : 2047 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 386, __FILE__, __LINE__, true);
1512 : 2047 : return _r;
1513 : : }
1514 : 15759 : next_after_fail495:;
1515 : : }
1516 : : else
1517 : : {
1518 : 55 : if (cmp == LE_EXPR && (known_le (off0, off1) || known_gt (off0, off1))
1519 : : )
1520 : : {
1521 : 55 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail496;
1522 : 55 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail496;
1523 : 55 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail496;
1524 : 55 : {
1525 : 55 : tree _r;
1526 : 55 : _r = constant_boolean_node (known_le (off0, off1), type);
1527 : 55 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 387, __FILE__, __LINE__, true);
1528 : 55 : return _r;
1529 : : }
1530 : 15759 : next_after_fail496:;
1531 : : }
1532 : : else
1533 : : {
1534 : 61 : if (cmp == GE_EXPR && (known_ge (off0, off1) || known_lt (off0, off1))
1535 : : )
1536 : : {
1537 : 61 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail497;
1538 : 61 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail497;
1539 : 61 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail497;
1540 : 61 : {
1541 : 61 : tree _r;
1542 : 61 : _r = constant_boolean_node (known_ge (off0, off1), type);
1543 : 61 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 388, __FILE__, __LINE__, true);
1544 : 61 : return _r;
1545 : : }
1546 : 15759 : next_after_fail497:;
1547 : : }
1548 : : else
1549 : : {
1550 : 73 : if (cmp == GT_EXPR && (known_gt (off0, off1) || known_le (off0, off1))
1551 : : )
1552 : : {
1553 : 73 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail498;
1554 : 73 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail498;
1555 : 73 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail498;
1556 : 73 : {
1557 : 73 : tree _r;
1558 : 73 : _r = constant_boolean_node (known_gt (off0, off1), type);
1559 : 73 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 389, __FILE__, __LINE__, true);
1560 : 73 : return _r;
1561 : : }
1562 : 15759 : next_after_fail498:;
1563 : : }
1564 : : }
1565 : : }
1566 : : }
1567 : : }
1568 : : }
1569 : : }
1570 : : else
1571 : : {
1572 : 26255 : if (equal == 0
1573 : : )
1574 : : {
1575 : 10496 : if (cmp == EQ_EXPR
1576 : : )
1577 : : {
1578 : 5341 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail499;
1579 : 5341 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail499;
1580 : 5341 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail499;
1581 : 5341 : {
1582 : 5341 : tree _r;
1583 : 5341 : _r = constant_boolean_node (false, type);
1584 : 5341 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 390, __FILE__, __LINE__, true);
1585 : 5341 : return _r;
1586 : : }
1587 : 15759 : next_after_fail499:;
1588 : : }
1589 : : else
1590 : : {
1591 : 5155 : if (cmp == NE_EXPR
1592 : : )
1593 : : {
1594 : 5155 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail500;
1595 : 5155 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail500;
1596 : 5155 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail500;
1597 : 5155 : {
1598 : 5155 : tree _r;
1599 : 5155 : _r = constant_boolean_node (true, type);
1600 : 5155 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 391, __FILE__, __LINE__, true);
1601 : 5155 : return _r;
1602 : : }
1603 : 15759 : next_after_fail500:;
1604 : : }
1605 : : }
1606 : : }
1607 : : }
1608 : : }
1609 : 15759 : return NULL_TREE;
1610 : : }
1611 : :
1612 : : tree
1613 : 238879 : generic_simplify_272 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1614 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1615 : : const enum tree_code ARG_UNUSED (cmp),
1616 : : const enum tree_code ARG_UNUSED (icmp),
1617 : : const enum tree_code ARG_UNUSED (ncmp))
1618 : : {
1619 : 238879 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1620 : 238879 : if (types_match (type, TREE_TYPE (captures[0]))
1621 : : )
1622 : : {
1623 : 36957 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail531;
1624 : 36957 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail531;
1625 : 36957 : {
1626 : 36957 : tree res_op0;
1627 : 36957 : res_op0 = captures[1];
1628 : 36957 : tree res_op1;
1629 : 36957 : res_op1 = captures[2];
1630 : 36957 : tree _r;
1631 : 36957 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
1632 : 36957 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 414, __FILE__, __LINE__, true);
1633 : 36957 : return _r;
1634 : : }
1635 : : next_after_fail531:;
1636 : : }
1637 : : return NULL_TREE;
1638 : : }
1639 : :
1640 : : tree
1641 : 0 : generic_simplify_278 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1642 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1643 : : const combined_fn ARG_UNUSED (COPYSIGN_ALL))
1644 : : {
1645 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1646 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail538;
1647 : 0 : {
1648 : 0 : tree _r;
1649 : 0 : _r = captures[0];
1650 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 421, __FILE__, __LINE__, true);
1651 : : return _r;
1652 : : }
1653 : 0 : next_after_fail538:;
1654 : 0 : return NULL_TREE;
1655 : : }
1656 : :
1657 : : tree
1658 : 2483 : generic_simplify_283 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1659 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1660 : : const enum tree_code ARG_UNUSED (div))
1661 : : {
1662 : 2483 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1663 : 2483 : if (!integer_zerop (captures[1])
1664 : : )
1665 : : {
1666 : 1663 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail545;
1667 : 1663 : {
1668 : 1663 : tree _r;
1669 : 1663 : _r = captures[0];
1670 : 1663 : if (TREE_SIDE_EFFECTS (captures[1]))
1671 : 67 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1672 : 1663 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 426, __FILE__, __LINE__, true);
1673 : 1663 : return _r;
1674 : : }
1675 : 0 : next_after_fail545:;
1676 : : }
1677 : : return NULL_TREE;
1678 : : }
1679 : :
1680 : : tree
1681 : 1964 : generic_simplify_289 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1682 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1683 : : const enum tree_code ARG_UNUSED (div))
1684 : : {
1685 : 1964 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1686 : 1964 : {
1687 : 1964 : wi::overflow_type overflow;
1688 : 1964 : wide_int mul = wi::mul (wi::to_wide (captures[2]), wi::to_wide (captures[3]),
1689 : 3928 : TYPE_SIGN (type), &overflow);
1690 : 1964 : if (div == EXACT_DIV_EXPR
1691 : 1964 : || optimize_successive_divisions_p (captures[3], captures[0])
1692 : : )
1693 : : {
1694 : 0 : if (!overflow
1695 : : )
1696 : : {
1697 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail551;
1698 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail551;
1699 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail551;
1700 : 0 : {
1701 : 0 : tree res_op0;
1702 : 0 : res_op0 = captures[1];
1703 : 0 : tree res_op1;
1704 : 0 : res_op1 = wide_int_to_tree (type, mul);
1705 : 0 : tree _r;
1706 : 0 : _r = fold_build2_loc (loc, div, type, res_op0, res_op1);
1707 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 432, __FILE__, __LINE__, true);
1708 : 0 : return _r;
1709 : : }
1710 : 1964 : next_after_fail551:;
1711 : : }
1712 : : else
1713 : : {
1714 : 0 : if (TYPE_UNSIGNED (type)
1715 : 0 : || mul != wi::min_value (TYPE_PRECISION (type), SIGNED)
1716 : : )
1717 : : {
1718 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail552;
1719 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail552;
1720 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail552;
1721 : 0 : {
1722 : 0 : tree _r;
1723 : 0 : _r = build_zero_cst (type);
1724 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
1725 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1726 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 433, __FILE__, __LINE__, true);
1727 : 0 : return _r;
1728 : : }
1729 : 1964 : next_after_fail552:;
1730 : : }
1731 : : }
1732 : : }
1733 : 0 : }
1734 : 1964 : return NULL_TREE;
1735 : : }
1736 : :
1737 : : tree
1738 : 6 : generic_simplify_304 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1739 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1740 : : const combined_fn ARG_UNUSED (SIN),
1741 : : const combined_fn ARG_UNUSED (TAN),
1742 : : const combined_fn ARG_UNUSED (COS))
1743 : : {
1744 : 6 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1745 : 6 : if (flag_unsafe_math_optimizations && canonicalize_math_p ()
1746 : : )
1747 : : {
1748 : 6 : if (! HONOR_NANS (captures[1])
1749 : 6 : && ! HONOR_INFINITIES (captures[1])
1750 : : )
1751 : : {
1752 : 6 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail569;
1753 : 6 : {
1754 : 6 : tree res_op0;
1755 : 6 : res_op0 = captures[1];
1756 : 6 : tree _r;
1757 : 6 : _r = maybe_build_call_expr_loc (loc, COS, type, 1, res_op0);
1758 : 6 : if (!_r)
1759 : 0 : goto next_after_fail569;
1760 : 6 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 450, __FILE__, __LINE__, true);
1761 : 6 : return _r;
1762 : : }
1763 : : next_after_fail569:;
1764 : : }
1765 : : }
1766 : : return NULL_TREE;
1767 : : }
1768 : :
1769 : : tree
1770 : 79 : generic_simplify_312 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1771 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1772 : : const enum tree_code ARG_UNUSED (cmp))
1773 : : {
1774 : 79 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1775 : 79 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0]))
1776 : : )
1777 : : {
1778 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail578;
1779 : 0 : {
1780 : 0 : tree _r;
1781 : 0 : _r = constant_boolean_node (cmp == LT_EXPR, type);
1782 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
1783 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1784 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
1785 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1786 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 459, __FILE__, __LINE__, true);
1787 : 0 : return _r;
1788 : : }
1789 : 0 : next_after_fail578:;
1790 : : }
1791 : : return NULL_TREE;
1792 : : }
1793 : :
1794 : : tree
1795 : 64 : generic_simplify_320 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1796 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1797 : : const enum tree_code ARG_UNUSED (minmax),
1798 : : const enum tree_code ARG_UNUSED (cmp),
1799 : : const enum tree_code ARG_UNUSED (comb))
1800 : : {
1801 : 64 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1802 : 64 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail588;
1803 : 64 : {
1804 : 64 : if (! tree_invariant_p (captures[2])) goto next_after_fail588;
1805 : 64 : tree res_op0;
1806 : 64 : {
1807 : 64 : tree _o1[2], _r1;
1808 : 64 : _o1[0] = captures[0];
1809 : 64 : _o1[1] = unshare_expr (captures[2]);
1810 : 64 : _r1 = fold_build2_loc (loc, cmp, type, _o1[0], _o1[1]);
1811 : 64 : res_op0 = _r1;
1812 : : }
1813 : 64 : tree res_op1;
1814 : 64 : {
1815 : 64 : tree _o1[2], _r1;
1816 : 64 : _o1[0] = captures[1];
1817 : 64 : _o1[1] = captures[2];
1818 : 64 : _r1 = fold_build2_loc (loc, cmp, type, _o1[0], _o1[1]);
1819 : 64 : res_op1 = _r1;
1820 : : }
1821 : 64 : tree _r;
1822 : 64 : _r = fold_build2_loc (loc, comb, type, res_op0, res_op1);
1823 : 64 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 469, __FILE__, __LINE__, true);
1824 : : return _r;
1825 : : }
1826 : : next_after_fail588:;
1827 : : return NULL_TREE;
1828 : : }
1829 : :
1830 : : tree
1831 : 9178 : generic_simplify_329 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1832 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1833 : : const enum tree_code ARG_UNUSED (cmp))
1834 : : {
1835 : 9178 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1836 : 9178 : if (single_use (captures[0])
1837 : 9178 : && ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
1838 : 9162 : && TYPE_UNSIGNED (TREE_TYPE (captures[1]))
1839 : : )
1840 : : {
1841 : 6853 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail629;
1842 : 6853 : {
1843 : 6853 : tree res_op0;
1844 : 6853 : res_op0 = captures[2];
1845 : 6853 : tree res_op1;
1846 : 6853 : res_op1 = captures[1];
1847 : 6853 : tree _r;
1848 : 6853 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
1849 : 6853 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 493, __FILE__, __LINE__, true);
1850 : 6853 : return _r;
1851 : : }
1852 : 0 : next_after_fail629:;
1853 : : }
1854 : : return NULL_TREE;
1855 : : }
1856 : :
1857 : : tree
1858 : 1606 : generic_simplify_334 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1859 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1860 : : const enum tree_code ARG_UNUSED (cmp),
1861 : : const enum tree_code ARG_UNUSED (neg_cmp))
1862 : : {
1863 : 1606 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1864 : 1606 : if (flag_unsafe_math_optimizations
1865 : : )
1866 : : {
1867 : 7 : {
1868 : 7 : tree tem = const_binop (RDIV_EXPR, type, captures[2], captures[1]);
1869 : 7 : if (tem
1870 : 21 : && !(REAL_VALUE_ISINF (TREE_REAL_CST (tem))
1871 : 11 : || (real_zerop (tem) && !real_zerop (captures[1])))
1872 : : )
1873 : : {
1874 : 3 : if (real_less (&dconst0, TREE_REAL_CST_PTR (captures[1]))
1875 : : )
1876 : : {
1877 : 2 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail634;
1878 : 2 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail634;
1879 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail634;
1880 : 2 : {
1881 : 2 : tree res_op0;
1882 : 2 : res_op0 = captures[0];
1883 : 2 : tree res_op1;
1884 : 2 : res_op1 = tem;
1885 : 2 : tree _r;
1886 : 2 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
1887 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 498, __FILE__, __LINE__, true);
1888 : 2 : return _r;
1889 : : }
1890 : : next_after_fail634:;
1891 : : }
1892 : : else
1893 : : {
1894 : 1 : if (real_less (TREE_REAL_CST_PTR (captures[1]), &dconst0)
1895 : : )
1896 : : {
1897 : 1 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail635;
1898 : 1 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail635;
1899 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail635;
1900 : 1 : {
1901 : 1 : tree res_op0;
1902 : 1 : res_op0 = captures[0];
1903 : 1 : tree res_op1;
1904 : 1 : res_op1 = tem;
1905 : 1 : tree _r;
1906 : 1 : _r = fold_build2_loc (loc, neg_cmp, type, res_op0, res_op1);
1907 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 499, __FILE__, __LINE__, true);
1908 : 1 : return _r;
1909 : : }
1910 : : next_after_fail635:;
1911 : : }
1912 : : }
1913 : : }
1914 : : }
1915 : : }
1916 : : return NULL_TREE;
1917 : : }
1918 : :
1919 : : tree
1920 : 0 : generic_simplify_342 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1921 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1922 : : const enum tree_code ARG_UNUSED (cmp),
1923 : : const enum tree_code ARG_UNUSED (out))
1924 : : {
1925 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1926 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[1]))
1927 : 0 : && types_match (TREE_TYPE (captures[1]), TREE_TYPE (captures[2]))
1928 : : )
1929 : : {
1930 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail648;
1931 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail648;
1932 : 0 : {
1933 : 0 : tree res_op0;
1934 : 0 : {
1935 : 0 : tree _o1[1], _r1;
1936 : 0 : _o1[0] = captures[0];
1937 : 0 : _r1 = fold_build1_loc (loc, IMAGPART_EXPR, TREE_TYPE (TREE_TYPE (_o1[0])), _o1[0]);
1938 : 0 : res_op0 = _r1;
1939 : : }
1940 : 0 : tree res_op1;
1941 : 0 : res_op1 = build_zero_cst (TREE_TYPE (captures[1]));
1942 : 0 : tree _r;
1943 : 0 : _r = fold_build2_loc (loc, out, type, res_op0, res_op1);
1944 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 495, __FILE__, __LINE__, true);
1945 : 0 : return _r;
1946 : : }
1947 : : next_after_fail648:;
1948 : : }
1949 : : return NULL_TREE;
1950 : : }
1951 : :
1952 : : tree
1953 : 1076917 : generic_simplify_348 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1954 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1955 : : const enum tree_code ARG_UNUSED (shift))
1956 : : {
1957 : 1076917 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1958 : 1076917 : if ((
1959 : :
1960 : 1076917 : || !sanitize_flags_p (SANITIZE_SHIFT_EXPONENT))
1961 : 1075291 : && (TYPE_UNSIGNED (type)
1962 : 216788 : || shift == LSHIFT_EXPR
1963 : 117560 : || tree_expr_nonnegative_p (captures[0]))
1964 : 2036308 : && wi::ges_p (wi::to_wide (uniform_integer_cst_p (captures[1])),
1965 : 2035079 : element_precision (type))
1966 : : )
1967 : : {
1968 : 1229 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail658;
1969 : 1229 : {
1970 : 1229 : tree _r;
1971 : 1229 : _r = build_zero_cst (type);
1972 : 1229 : if (TREE_SIDE_EFFECTS (captures[0]))
1973 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1974 : 1229 : if (TREE_SIDE_EFFECTS (captures[1]))
1975 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1976 : 1229 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 518, __FILE__, __LINE__, true);
1977 : 1229 : return _r;
1978 : : }
1979 : 0 : next_after_fail658:;
1980 : : }
1981 : : return NULL_TREE;
1982 : : }
1983 : :
1984 : : tree
1985 : 25328 : generic_simplify_356 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1986 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1987 : : const enum tree_code ARG_UNUSED (bit_op),
1988 : : const enum tree_code ARG_UNUSED (shift))
1989 : : {
1990 : 25328 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1991 : 25328 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[2]))
1992 : : )
1993 : : {
1994 : 25328 : {
1995 : 25328 : tree mask = int_const_binop (shift, fold_convert (type, captures[3]), captures[4]);
1996 : 25328 : if (mask
1997 : : )
1998 : : {
1999 : 25321 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail669;
2000 : 25321 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail669;
2001 : 25321 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail669;
2002 : 25321 : {
2003 : 25321 : tree res_op0;
2004 : 25321 : {
2005 : 25321 : tree _o1[2], _r1;
2006 : 25321 : {
2007 : 25321 : tree _o2[1], _r2;
2008 : 25321 : _o2[0] = captures[2];
2009 : 25321 : if (TREE_TYPE (_o2[0]) != type)
2010 : : {
2011 : 62 : _r2 = fold_build1_loc (loc, NOP_EXPR, type, _o2[0]);
2012 : : }
2013 : : else
2014 : : _r2 = _o2[0];
2015 : 25321 : _o1[0] = _r2;
2016 : : }
2017 : 25321 : _o1[1] = captures[4];
2018 : 25321 : _r1 = fold_build2_loc (loc, shift, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2019 : 25321 : res_op0 = _r1;
2020 : : }
2021 : 25321 : tree res_op1;
2022 : 25321 : res_op1 = mask;
2023 : 25321 : tree _r;
2024 : 25321 : _r = fold_build2_loc (loc, bit_op, type, res_op0, res_op1);
2025 : 25321 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 527, __FILE__, __LINE__, true);
2026 : 25321 : return _r;
2027 : : }
2028 : : next_after_fail669:;
2029 : : }
2030 : : }
2031 : : }
2032 : : return NULL_TREE;
2033 : : }
2034 : :
2035 : : tree
2036 : 710462 : generic_simplify_362 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2037 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
2038 : : const enum tree_code ARG_UNUSED (op))
2039 : : {
2040 : 710462 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2041 : 710462 : if (INTEGRAL_TYPE_P (type)
2042 : 626045 : && op != MULT_EXPR
2043 : 626045 : && op != RDIV_EXPR
2044 : 333955 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
2045 : 310098 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
2046 : 310098 : && type_has_mode_precision_p (TREE_TYPE (captures[2]))
2047 : 260607 : && type_has_mode_precision_p (TREE_TYPE (captures[4]))
2048 : 260355 : && type_has_mode_precision_p (type)
2049 : 260333 : && TYPE_PRECISION (TREE_TYPE (captures[1])) > TYPE_PRECISION (TREE_TYPE (captures[2]))
2050 : 15375 : && types_match (captures[2], type)
2051 : 711078 : && (types_match (captures[2], captures[4])
2052 : 565 : || poly_int_tree_p (captures[3]))
2053 : : )
2054 : : {
2055 : 51 : if (TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[2]))
2056 : : )
2057 : : {
2058 : 7 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail680;
2059 : 7 : {
2060 : 7 : tree res_op0;
2061 : 7 : res_op0 = captures[2];
2062 : 7 : tree res_op1;
2063 : 7 : {
2064 : 7 : tree _o1[1], _r1;
2065 : 7 : _o1[0] = captures[4];
2066 : 7 : if (TREE_TYPE (_o1[0]) != type)
2067 : : {
2068 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
2069 : : }
2070 : : else
2071 : : _r1 = _o1[0];
2072 : 7 : res_op1 = _r1;
2073 : : }
2074 : 7 : tree _r;
2075 : 7 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
2076 : 7 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 538, __FILE__, __LINE__, true);
2077 : 7 : return _r;
2078 : : }
2079 : 0 : next_after_fail680:;
2080 : : }
2081 : : else
2082 : : {
2083 : 44 : {
2084 : 44 : tree utype = unsigned_type_for (TREE_TYPE (captures[2]));
2085 : 44 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail681;
2086 : 44 : {
2087 : 44 : tree res_op0;
2088 : 44 : {
2089 : 44 : tree _o1[2], _r1;
2090 : 44 : {
2091 : 44 : tree _o2[1], _r2;
2092 : 44 : _o2[0] = captures[2];
2093 : 44 : if (TREE_TYPE (_o2[0]) != utype)
2094 : : {
2095 : 44 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
2096 : : }
2097 : : else
2098 : : _r2 = _o2[0];
2099 : 44 : _o1[0] = _r2;
2100 : : }
2101 : 44 : {
2102 : 44 : tree _o2[1], _r2;
2103 : 44 : _o2[0] = captures[4];
2104 : 44 : if (TREE_TYPE (_o2[0]) != utype)
2105 : : {
2106 : 44 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
2107 : : }
2108 : : else
2109 : : _r2 = _o2[0];
2110 : 44 : _o1[1] = _r2;
2111 : : }
2112 : 44 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2113 : 44 : res_op0 = _r1;
2114 : : }
2115 : 44 : tree _r;
2116 : 44 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
2117 : 44 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 539, __FILE__, __LINE__, true);
2118 : 44 : return _r;
2119 : : }
2120 : 0 : next_after_fail681:;
2121 : : }
2122 : : }
2123 : : }
2124 : : else
2125 : : {
2126 : 697248 : if (FLOAT_TYPE_P (type)
2127 : 723574 : && DECIMAL_FLOAT_TYPE_P (TREE_TYPE (captures[0]))
2128 : 13163 : == DECIMAL_FLOAT_TYPE_P (type)
2129 : : )
2130 : : {
2131 : 13135 : {
2132 : 13135 : tree arg0 = strip_float_extensions (captures[2]);
2133 : 13135 : tree arg1 = strip_float_extensions (captures[4]);
2134 : 13135 : tree itype = TREE_TYPE (captures[0]);
2135 : 13135 : tree ty1 = TREE_TYPE (arg0);
2136 : 13135 : tree ty2 = TREE_TYPE (arg1);
2137 : 13135 : enum tree_code code = TREE_CODE (itype);
2138 : 0 : if (FLOAT_TYPE_P (ty1)
2139 : 13135 : && FLOAT_TYPE_P (ty2)
2140 : : )
2141 : : {
2142 : 13135 : {
2143 : 13135 : tree newtype = type;
2144 : 13135 : if (TYPE_MODE (ty1) == SDmode
2145 : 13124 : || TYPE_MODE (ty2) == SDmode
2146 : 26259 : || TYPE_MODE (type) == SDmode)
2147 : 11 : newtype = dfloat32_type_node;
2148 : 13135 : if (TYPE_MODE (ty1) == DDmode
2149 : 13128 : || TYPE_MODE (ty2) == DDmode
2150 : 26263 : || TYPE_MODE (type) == DDmode)
2151 : 7 : newtype = dfloat64_type_node;
2152 : 13135 : if (TYPE_MODE (ty1) == TDmode
2153 : 13135 : || TYPE_MODE (ty2) == TDmode
2154 : 26270 : || TYPE_MODE (type) == TDmode)
2155 : 18 : newtype = dfloat128_type_node;
2156 : 13135 : if ((newtype == dfloat32_type_node
2157 : 13135 : || newtype == dfloat64_type_node
2158 : 13135 : || newtype == dfloat128_type_node)
2159 : 18 : && newtype == type
2160 : 13141 : && types_match (newtype, type)
2161 : : )
2162 : : {
2163 : 6 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail682;
2164 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail682;
2165 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail682;
2166 : 0 : {
2167 : 0 : tree res_op0;
2168 : 0 : {
2169 : 0 : tree _o1[1], _r1;
2170 : 0 : _o1[0] = captures[2];
2171 : 0 : if (TREE_TYPE (_o1[0]) != newtype)
2172 : : {
2173 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, newtype, _o1[0]);
2174 : : }
2175 : : else
2176 : : _r1 = _o1[0];
2177 : 0 : res_op0 = _r1;
2178 : : }
2179 : 0 : tree res_op1;
2180 : 0 : {
2181 : 0 : tree _o1[1], _r1;
2182 : 0 : _o1[0] = captures[4];
2183 : 0 : if (TREE_TYPE (_o1[0]) != newtype)
2184 : : {
2185 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, newtype, _o1[0]);
2186 : : }
2187 : : else
2188 : : _r1 = _o1[0];
2189 : 0 : res_op1 = _r1;
2190 : : }
2191 : 0 : tree _r;
2192 : 0 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
2193 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 540, __FILE__, __LINE__, true);
2194 : 0 : return _r;
2195 : : }
2196 : : next_after_fail682:;
2197 : : }
2198 : : else
2199 : : {
2200 : 13129 : {
2201 : 13129 : if (element_precision (ty1) > element_precision (newtype))
2202 : 4 : newtype = ty1;
2203 : 13129 : if (element_precision (ty2) > element_precision (newtype))
2204 : 1 : newtype = ty2;
2205 : 13129 : if (element_precision (newtype) < element_precision (itype)
2206 : 12964 : && (!VECTOR_MODE_P (TYPE_MODE (newtype))
2207 : 0 : || target_supports_op_p (newtype, op, optab_default))
2208 : 12964 : && (flag_unsafe_math_optimizations
2209 : 12963 : || (element_precision (newtype) == element_precision (type)
2210 : 12959 : && real_can_shorten_arithmetic (element_mode (itype),
2211 : : element_mode (type))
2212 : 4801 : && !excess_precision_type (newtype)))
2213 : 13138 : && !types_match (itype, newtype)
2214 : : )
2215 : : {
2216 : 9 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail683;
2217 : 9 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail683;
2218 : 9 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail683;
2219 : 9 : {
2220 : 9 : tree res_op0;
2221 : 9 : {
2222 : 9 : tree _o1[2], _r1;
2223 : 9 : {
2224 : 9 : tree _o2[1], _r2;
2225 : 9 : _o2[0] = captures[2];
2226 : 9 : if (TREE_TYPE (_o2[0]) != newtype)
2227 : : {
2228 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, newtype, _o2[0]);
2229 : : }
2230 : : else
2231 : : _r2 = _o2[0];
2232 : 9 : _o1[0] = _r2;
2233 : : }
2234 : 9 : {
2235 : 9 : tree _o2[1], _r2;
2236 : 9 : _o2[0] = captures[4];
2237 : 9 : if (TREE_TYPE (_o2[0]) != newtype)
2238 : : {
2239 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, newtype, _o2[0]);
2240 : : }
2241 : : else
2242 : : _r2 = _o2[0];
2243 : 9 : _o1[1] = _r2;
2244 : : }
2245 : 9 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2246 : 9 : res_op0 = _r1;
2247 : : }
2248 : 9 : tree _r;
2249 : 9 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
2250 : 9 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 541, __FILE__, __LINE__, true);
2251 : 9 : return _r;
2252 : : }
2253 : : next_after_fail683:;
2254 : : }
2255 : : }
2256 : : }
2257 : : }
2258 : : }
2259 : : }
2260 : : }
2261 : : }
2262 : : return NULL_TREE;
2263 : : }
2264 : :
2265 : : tree
2266 : 0 : generic_simplify_390 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2267 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
2268 : : {
2269 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2270 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail720;
2271 : 0 : {
2272 : 0 : tree res_op0;
2273 : 0 : res_op0 = captures[0];
2274 : 0 : tree res_op1;
2275 : 0 : res_op1 = captures[1];
2276 : 0 : tree _r;
2277 : 0 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
2278 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 565, __FILE__, __LINE__, true);
2279 : : return _r;
2280 : : }
2281 : 0 : next_after_fail720:;
2282 : 0 : return NULL_TREE;
2283 : : }
2284 : :
2285 : : tree
2286 : 12 : generic_simplify_394 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2287 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
2288 : : {
2289 : 12 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2290 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail724;
2291 : 12 : {
2292 : 12 : tree _r;
2293 : 12 : _r = build_zero_cst (type);
2294 : 12 : if (TREE_SIDE_EFFECTS (captures[0]))
2295 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2296 : 12 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 569, __FILE__, __LINE__, true);
2297 : : return _r;
2298 : : }
2299 : 0 : next_after_fail724:;
2300 : 0 : return NULL_TREE;
2301 : : }
2302 : :
2303 : : tree
2304 : 45515 : generic_simplify_399 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2305 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2306 : : const enum tree_code ARG_UNUSED (shift))
2307 : : {
2308 : 45515 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2309 : 45515 : if (tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
2310 : 22739 : && TYPE_PRECISION (type) <= HOST_BITS_PER_WIDE_INT
2311 : 22739 : && tree_fits_uhwi_p (captures[4])
2312 : 22739 : && tree_to_uhwi (captures[4]) > 0
2313 : 68252 : && tree_to_uhwi (captures[4]) < TYPE_PRECISION (type)
2314 : : )
2315 : : {
2316 : 22737 : {
2317 : 22737 : unsigned int shiftc = tree_to_uhwi (captures[4]);
2318 : 22737 : unsigned HOST_WIDE_INT mask = TREE_INT_CST_LOW (captures[5]);
2319 : 22737 : unsigned HOST_WIDE_INT newmask, zerobits = 0;
2320 : 22737 : tree shift_type = TREE_TYPE (captures[2]);
2321 : 22737 : unsigned int prec;
2322 : 22737 : if (shift == LSHIFT_EXPR)
2323 : 0 : zerobits = ((HOST_WIDE_INT_1U << shiftc) - 1);
2324 : 22737 : else if (shift == RSHIFT_EXPR
2325 : 22737 : && type_has_mode_precision_p (shift_type))
2326 : : {
2327 : 22737 : prec = TYPE_PRECISION (TREE_TYPE (captures[2]));
2328 : 22737 : tree arg00 = captures[3];
2329 : 22737 : if (captures[2] != captures[3]
2330 : 22737 : && TYPE_UNSIGNED (TREE_TYPE (captures[3])))
2331 : : {
2332 : 0 : tree inner_type = TREE_TYPE (captures[3]);
2333 : 0 : if (type_has_mode_precision_p (inner_type)
2334 : 0 : && TYPE_PRECISION (inner_type) < prec)
2335 : : {
2336 : 0 : prec = TYPE_PRECISION (inner_type);
2337 : 0 : if (shiftc < prec)
2338 : 0 : shift_type = inner_type;
2339 : : }
2340 : : }
2341 : 22737 : zerobits = HOST_WIDE_INT_M1U;
2342 : 22737 : if (shiftc < prec)
2343 : : {
2344 : 22737 : zerobits >>= HOST_BITS_PER_WIDE_INT - shiftc;
2345 : 22737 : zerobits <<= prec - shiftc;
2346 : : }
2347 : 22737 : if (!TYPE_UNSIGNED (TREE_TYPE (captures[2]))
2348 : 22737 : && prec == TYPE_PRECISION (TREE_TYPE (captures[2])))
2349 : : {
2350 : 60 : if ((mask & zerobits) == 0)
2351 : 44 : shift_type = unsigned_type_for (TREE_TYPE (captures[2]));
2352 : : else
2353 : : zerobits = 0;
2354 : : }
2355 : : }
2356 : 22737 : if ((mask & zerobits) == mask
2357 : : )
2358 : : {
2359 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail731;
2360 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail731;
2361 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail731;
2362 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail731;
2363 : 0 : {
2364 : 0 : tree _r;
2365 : 0 : _r = build_int_cst (type, 0);
2366 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 572, __FILE__, __LINE__, true);
2367 : 0 : return _r;
2368 : : }
2369 : : next_after_fail731:;
2370 : : }
2371 : : else
2372 : : {
2373 : 22737 : {
2374 : 22737 : newmask = mask | zerobits;
2375 : 22737 : if (newmask != mask && (newmask & (newmask + 1)) == 0
2376 : : )
2377 : : {
2378 : : {
2379 : 75 : for (prec = BITS_PER_UNIT;
2380 : 113 : prec < HOST_BITS_PER_WIDE_INT; prec <<= 1)
2381 : 103 : if (newmask == (HOST_WIDE_INT_1U << prec) - 1)
2382 : : break;
2383 : 38 : if (prec < HOST_BITS_PER_WIDE_INT
2384 : 10 : || newmask == HOST_WIDE_INT_M1U
2385 : : )
2386 : : {
2387 : 38 : {
2388 : 38 : tree newmaskt = build_int_cst_type (TREE_TYPE (captures[5]), newmask);
2389 : 38 : if (!tree_int_cst_equal (newmaskt, captures[5])
2390 : : )
2391 : : {
2392 : 38 : if (shift_type != TREE_TYPE (captures[2])
2393 : : )
2394 : : {
2395 : 11 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail732;
2396 : 11 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail732;
2397 : 11 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail732;
2398 : 11 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail732;
2399 : 11 : {
2400 : 11 : tree res_op0;
2401 : 11 : {
2402 : 11 : tree _o1[1], _r1;
2403 : 11 : {
2404 : 11 : tree _o2[2], _r2;
2405 : 11 : {
2406 : 11 : tree _o3[1], _r3;
2407 : 11 : _o3[0] = captures[2];
2408 : 11 : if (TREE_TYPE (_o3[0]) != shift_type)
2409 : : {
2410 : 11 : _r3 = fold_build1_loc (loc, NOP_EXPR, shift_type, _o3[0]);
2411 : : }
2412 : : else
2413 : : _r3 = _o3[0];
2414 : 11 : _o2[0] = _r3;
2415 : : }
2416 : 11 : _o2[1] = captures[4];
2417 : 11 : _r2 = fold_build2_loc (loc, shift, shift_type, _o2[0], _o2[1]);
2418 : 11 : _o1[0] = _r2;
2419 : : }
2420 : 11 : if (TREE_TYPE (_o1[0]) != type)
2421 : : {
2422 : 11 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
2423 : : }
2424 : : else
2425 : : _r1 = _o1[0];
2426 : 11 : res_op0 = _r1;
2427 : : }
2428 : 11 : tree res_op1;
2429 : 11 : res_op1 = newmaskt;
2430 : 11 : tree _r;
2431 : 11 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
2432 : 11 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 573, __FILE__, __LINE__, true);
2433 : 11 : return _r;
2434 : : }
2435 : : next_after_fail732:;
2436 : : }
2437 : : else
2438 : : {
2439 : 27 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail733;
2440 : 27 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail733;
2441 : 27 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail733;
2442 : 27 : {
2443 : 27 : tree res_op0;
2444 : 27 : res_op0 = captures[0];
2445 : 27 : tree res_op1;
2446 : 27 : res_op1 = newmaskt;
2447 : 27 : tree _r;
2448 : 27 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
2449 : 27 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 574, __FILE__, __LINE__, true);
2450 : 27 : return _r;
2451 : : }
2452 : : next_after_fail733:;
2453 : : }
2454 : : }
2455 : : }
2456 : : }
2457 : : }
2458 : : }
2459 : : }
2460 : : }
2461 : : }
2462 : : }
2463 : : return NULL_TREE;
2464 : : }
2465 : :
2466 : : tree
2467 : 324942 : generic_simplify_421 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2468 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2469 : : const enum tree_code ARG_UNUSED (op))
2470 : : {
2471 : 324942 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2472 : 649884 : if (INTEGRAL_TYPE_P (type)
2473 : 324942 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
2474 : 62667 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
2475 : 62667 : && type_has_mode_precision_p (TREE_TYPE (captures[2]))
2476 : 62667 : && type_has_mode_precision_p (TREE_TYPE (captures[4]))
2477 : 62667 : && type_has_mode_precision_p (type)
2478 : 62667 : && TYPE_PRECISION (TREE_TYPE (captures[1])) > TYPE_PRECISION (TREE_TYPE (captures[2]))
2479 : 34 : && types_match (captures[2], captures[4])
2480 : 33 : && (tree_int_cst_min_precision (captures[5], TYPE_SIGN (TREE_TYPE (captures[2])))
2481 : 33 : <= TYPE_PRECISION (TREE_TYPE (captures[2])))
2482 : 324969 : && (wi::to_wide (captures[5])
2483 : 325023 : & wi::mask (TYPE_PRECISION (TREE_TYPE (captures[2])),
2484 : 324996 : true, TYPE_PRECISION (type))) == 0
2485 : : )
2486 : : {
2487 : 25 : if (TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[2]))
2488 : : )
2489 : : {
2490 : 12 : {
2491 : 12 : tree ntype = TREE_TYPE (captures[2]);
2492 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail794;
2493 : 12 : {
2494 : 12 : tree res_op0;
2495 : 12 : {
2496 : 12 : tree _o1[2], _r1;
2497 : 12 : {
2498 : 12 : tree _o2[2], _r2;
2499 : 12 : _o2[0] = captures[2];
2500 : 12 : _o2[1] = captures[4];
2501 : 12 : _r2 = fold_build2_loc (loc, op, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
2502 : 12 : _o1[0] = _r2;
2503 : : }
2504 : 12 : {
2505 : 12 : tree _o2[1], _r2;
2506 : 12 : _o2[0] = captures[5];
2507 : 12 : if (TREE_TYPE (_o2[0]) != ntype)
2508 : : {
2509 : 12 : _r2 = fold_build1_loc (loc, NOP_EXPR, ntype, _o2[0]);
2510 : : }
2511 : : else
2512 : : _r2 = _o2[0];
2513 : 12 : _o1[1] = _r2;
2514 : : }
2515 : 12 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2516 : 12 : res_op0 = _r1;
2517 : : }
2518 : 12 : tree _r;
2519 : 12 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
2520 : 12 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 600, __FILE__, __LINE__, true);
2521 : 12 : return _r;
2522 : : }
2523 : 0 : next_after_fail794:;
2524 : : }
2525 : : }
2526 : : else
2527 : : {
2528 : 13 : {
2529 : 13 : tree utype = unsigned_type_for (TREE_TYPE (captures[2]));
2530 : 13 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail795;
2531 : 13 : {
2532 : 13 : tree res_op0;
2533 : 13 : {
2534 : 13 : tree _o1[2], _r1;
2535 : 13 : {
2536 : 13 : tree _o2[2], _r2;
2537 : 13 : {
2538 : 13 : tree _o3[1], _r3;
2539 : 13 : _o3[0] = captures[2];
2540 : 13 : if (TREE_TYPE (_o3[0]) != utype)
2541 : : {
2542 : 13 : _r3 = fold_build1_loc (loc, NOP_EXPR, utype, _o3[0]);
2543 : : }
2544 : : else
2545 : : _r3 = _o3[0];
2546 : 13 : _o2[0] = _r3;
2547 : : }
2548 : 13 : {
2549 : 13 : tree _o3[1], _r3;
2550 : 13 : _o3[0] = captures[4];
2551 : 13 : if (TREE_TYPE (_o3[0]) != utype)
2552 : : {
2553 : 13 : _r3 = fold_build1_loc (loc, NOP_EXPR, utype, _o3[0]);
2554 : : }
2555 : : else
2556 : : _r3 = _o3[0];
2557 : 13 : _o2[1] = _r3;
2558 : : }
2559 : 13 : _r2 = fold_build2_loc (loc, op, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
2560 : 13 : _o1[0] = _r2;
2561 : : }
2562 : 13 : {
2563 : 13 : tree _o2[1], _r2;
2564 : 13 : _o2[0] = captures[5];
2565 : 13 : if (TREE_TYPE (_o2[0]) != utype)
2566 : : {
2567 : 13 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
2568 : : }
2569 : : else
2570 : : _r2 = _o2[0];
2571 : 13 : _o1[1] = _r2;
2572 : : }
2573 : 13 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2574 : 13 : res_op0 = _r1;
2575 : : }
2576 : 13 : tree _r;
2577 : 13 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
2578 : 13 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 601, __FILE__, __LINE__, true);
2579 : 13 : return _r;
2580 : : }
2581 : 0 : next_after_fail795:;
2582 : : }
2583 : : }
2584 : : }
2585 : : return NULL_TREE;
2586 : : }
2587 : :
2588 : : tree
2589 : 37218 : generic_simplify_437 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2590 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
2591 : : {
2592 : 37218 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2593 : 37218 : if (!HONOR_SIGN_DEPENDENT_ROUNDING (type)
2594 : 37218 : && !HONOR_SIGNED_ZEROS (type)
2595 : : )
2596 : : {
2597 : 37218 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail812;
2598 : 37218 : {
2599 : 37218 : tree res_op0;
2600 : 37218 : {
2601 : 37218 : tree _o1[1], _r1;
2602 : 37218 : _o1[0] = captures[1];
2603 : 37218 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
2604 : 37218 : res_op0 = _r1;
2605 : : }
2606 : 37218 : tree res_op1;
2607 : 37218 : res_op1 = captures[0];
2608 : 37218 : tree _r;
2609 : 37218 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
2610 : 37218 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 616, __FILE__, __LINE__, true);
2611 : 37218 : return _r;
2612 : : }
2613 : 0 : next_after_fail812:;
2614 : : }
2615 : : return NULL_TREE;
2616 : : }
2617 : :
2618 : : tree
2619 : 0 : generic_simplify_444 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2620 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2621 : : const enum tree_code ARG_UNUSED (minmax))
2622 : : {
2623 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2624 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail820;
2625 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail820;
2626 : 0 : {
2627 : 0 : tree _r;
2628 : 0 : _r = captures[0];
2629 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 624, __FILE__, __LINE__, true);
2630 : : return _r;
2631 : : }
2632 : : next_after_fail820:;
2633 : : return NULL_TREE;
2634 : : }
2635 : :
2636 : : tree
2637 : 14 : generic_simplify_453 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2638 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2639 : : const enum tree_code ARG_UNUSED (op),
2640 : : const enum tree_code ARG_UNUSED (logic))
2641 : : {
2642 : 14 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2643 : 14 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail841;
2644 : 14 : {
2645 : 14 : tree res_op0;
2646 : 14 : res_op0 = captures[0];
2647 : 14 : tree res_op1;
2648 : 14 : res_op1 = captures[1];
2649 : 14 : tree _r;
2650 : 14 : _r = fold_build2_loc (loc, logic, type, res_op0, res_op1);
2651 : 14 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 632, __FILE__, __LINE__, true);
2652 : : return _r;
2653 : : }
2654 : 0 : next_after_fail841:;
2655 : 0 : return NULL_TREE;
2656 : : }
2657 : :
2658 : : tree
2659 : 0 : generic_simplify_457 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2660 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2661 : : const combined_fn ARG_UNUSED (minmax))
2662 : : {
2663 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2664 : 0 : if (real_isnan (TREE_REAL_CST_PTR (captures[1]))
2665 : 0 : && (!HONOR_SNANS (captures[1]) || !TREE_REAL_CST (captures[1]).signalling)
2666 : 0 : && !tree_expr_maybe_signaling_nan_p (captures[0])
2667 : : )
2668 : : {
2669 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail845;
2670 : 0 : {
2671 : 0 : tree _r;
2672 : 0 : _r = captures[0];
2673 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2674 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2675 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 636, __FILE__, __LINE__, true);
2676 : 0 : return _r;
2677 : : }
2678 : 0 : next_after_fail845:;
2679 : : }
2680 : : return NULL_TREE;
2681 : : }
2682 : :
2683 : : tree
2684 : 0 : generic_simplify_465 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2685 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
2686 : : const enum tree_code ARG_UNUSED (op))
2687 : : {
2688 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2689 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail858;
2690 : 0 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail858;
2691 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail858;
2692 : 0 : {
2693 : 0 : tree _r;
2694 : 0 : _r = captures[2];
2695 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 649, __FILE__, __LINE__, true);
2696 : : return _r;
2697 : : }
2698 : : next_after_fail858:;
2699 : : return NULL_TREE;
2700 : : }
2701 : :
2702 : : tree
2703 : 0 : generic_simplify_469 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2704 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
2705 : : const enum tree_code ARG_UNUSED (op))
2706 : : {
2707 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2708 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail862;
2709 : 0 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail862;
2710 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail862;
2711 : 0 : {
2712 : 0 : tree _r;
2713 : 0 : _r = captures[2];
2714 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 653, __FILE__, __LINE__, true);
2715 : : return _r;
2716 : : }
2717 : : next_after_fail862:;
2718 : : return NULL_TREE;
2719 : : }
2720 : :
2721 : : tree
2722 : 6 : generic_simplify_475 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2723 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
2724 : : const enum tree_code ARG_UNUSED (neeq),
2725 : : const combined_fn ARG_UNUSED (sign))
2726 : : {
2727 : 6 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2728 : 6 : if (neeq == NE_EXPR
2729 : : )
2730 : : {
2731 : 3 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail868;
2732 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail868;
2733 : 3 : {
2734 : 3 : tree res_op0;
2735 : 3 : res_op0 = captures[0];
2736 : 3 : tree _r;
2737 : 3 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
2738 : 3 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 659, __FILE__, __LINE__, true);
2739 : 3 : return _r;
2740 : : }
2741 : : next_after_fail868:;
2742 : : }
2743 : : else
2744 : : {
2745 : 3 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail869;
2746 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail869;
2747 : 3 : {
2748 : 3 : tree res_op0;
2749 : 3 : {
2750 : 3 : tree _o1[1], _r1;
2751 : 3 : _o1[0] = captures[0];
2752 : 3 : _r1 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
2753 : 3 : res_op0 = _r1;
2754 : : }
2755 : 3 : tree _r;
2756 : 3 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
2757 : 3 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 660, __FILE__, __LINE__, true);
2758 : 3 : return _r;
2759 : : }
2760 : : next_after_fail869:;
2761 : : }
2762 : : return NULL_TREE;
2763 : : }
2764 : :
2765 : : tree
2766 : 0 : generic_simplify_485 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2767 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
2768 : : const combined_fn ARG_UNUSED (bswap))
2769 : : {
2770 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2771 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail883;
2772 : 0 : {
2773 : 0 : tree _r;
2774 : 0 : _r = captures[0];
2775 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 673, __FILE__, __LINE__, true);
2776 : : return _r;
2777 : : }
2778 : 0 : next_after_fail883:;
2779 : 0 : return NULL_TREE;
2780 : : }
2781 : :
2782 : : tree
2783 : 16 : generic_simplify_490 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2784 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
2785 : : const enum tree_code ARG_UNUSED (op))
2786 : : {
2787 : 16 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2788 : 16 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail888;
2789 : 16 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail888;
2790 : 16 : {
2791 : 16 : tree _r;
2792 : 16 : _r = captures[2];
2793 : 16 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 657, __FILE__, __LINE__, true);
2794 : : return _r;
2795 : : }
2796 : : next_after_fail888:;
2797 : : return NULL_TREE;
2798 : : }
2799 : :
2800 : : tree
2801 : 0 : generic_simplify_495 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2802 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
2803 : : const combined_fn ARG_UNUSED (cond_op))
2804 : : {
2805 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2806 : 0 : {
2807 : 0 : tree op_type = TREE_TYPE (captures[4]);
2808 : 0 : if (element_precision (type) == element_precision (op_type)
2809 : : )
2810 : : {
2811 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail893;
2812 : 0 : {
2813 : 0 : tree res_op0;
2814 : 0 : {
2815 : 0 : tree _o1[5], _r1;
2816 : 0 : _o1[0] = captures[0];
2817 : 0 : _o1[1] = captures[1];
2818 : 0 : _o1[2] = captures[2];
2819 : 0 : _o1[3] = captures[3];
2820 : 0 : {
2821 : 0 : tree _o2[1], _r2;
2822 : 0 : _o2[0] = captures[5];
2823 : 0 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, op_type, _o2[0]);
2824 : 0 : _o1[4] = _r2;
2825 : : }
2826 : 0 : _r1 = maybe_build_call_expr_loc (loc, cond_op, TREE_TYPE (_o1[1]), 5, _o1[0], _o1[1], _o1[2], _o1[3], _o1[4]);
2827 : 0 : if (!_r1)
2828 : 0 : goto next_after_fail893;
2829 : 0 : res_op0 = _r1;
2830 : : }
2831 : 0 : tree _r;
2832 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
2833 : 0 : if (TREE_SIDE_EFFECTS (captures[4]))
2834 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[4]), _r);
2835 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 678, __FILE__, __LINE__, true);
2836 : 0 : return _r;
2837 : : }
2838 : : next_after_fail893:;
2839 : : }
2840 : : }
2841 : : return NULL_TREE;
2842 : : }
2843 : :
2844 : : tree
2845 : 2080737 : generic_simplify_503 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2846 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2847 : : const enum tree_code ARG_UNUSED (cmp))
2848 : : {
2849 : 2080737 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2850 : 2080737 : if (REAL_VALUE_ISNAN (TREE_REAL_CST (captures[1]))
2851 : 2080737 : && (cmp != LTGT_EXPR || ! flag_trapping_math)
2852 : : )
2853 : : {
2854 : 10 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail901;
2855 : 10 : {
2856 : 10 : tree _r;
2857 : 20 : _r = constant_boolean_node (cmp == ORDERED_EXPR || cmp == LTGT_EXPR
2858 : 10 : ? false : true, type);
2859 : 10 : if (TREE_SIDE_EFFECTS (captures[0]))
2860 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2861 : 10 : if (TREE_SIDE_EFFECTS (captures[1]))
2862 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2863 : 10 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 686, __FILE__, __LINE__, true);
2864 : 10 : return _r;
2865 : : }
2866 : 0 : next_after_fail901:;
2867 : : }
2868 : : return NULL_TREE;
2869 : : }
2870 : :
2871 : : tree
2872 : 0 : generic_simplify_514 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2873 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
2874 : : const combined_fn ARG_UNUSED (froms),
2875 : : const combined_fn ARG_UNUSED (tos))
2876 : : {
2877 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2878 : 0 : if (optimize && canonicalize_math_p ()
2879 : 0 : && targetm.libc_has_function (function_c99_misc, NULL_TREE)
2880 : : )
2881 : : {
2882 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail912;
2883 : 0 : {
2884 : 0 : tree res_op0;
2885 : 0 : {
2886 : 0 : tree _o1[1], _r1;
2887 : 0 : _o1[0] = captures[0];
2888 : 0 : _r1 = maybe_build_call_expr_loc (loc, tos, TREE_TYPE (_o1[0]), 1, _o1[0]);
2889 : 0 : if (!_r1)
2890 : 0 : goto next_after_fail912;
2891 : 0 : res_op0 = _r1;
2892 : : }
2893 : 0 : tree _r;
2894 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
2895 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 697, __FILE__, __LINE__, true);
2896 : 0 : return _r;
2897 : : }
2898 : : next_after_fail912:;
2899 : : }
2900 : : return NULL_TREE;
2901 : : }
2902 : :
2903 : : tree
2904 : 0 : generic_simplify_525 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2905 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
2906 : : const combined_fn ARG_UNUSED (rints))
2907 : : {
2908 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2909 : 0 : if (canonicalize_math_p ()
2910 : : )
2911 : : {
2912 : 0 : if (!flag_errno_math
2913 : : )
2914 : : {
2915 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail923;
2916 : 0 : {
2917 : 0 : tree res_op0;
2918 : 0 : res_op0 = captures[0];
2919 : 0 : tree _r;
2920 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
2921 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 708, __FILE__, __LINE__, true);
2922 : 0 : return _r;
2923 : : }
2924 : 0 : next_after_fail923:;
2925 : : }
2926 : : }
2927 : : return NULL_TREE;
2928 : : }
2929 : :
2930 : : tree
2931 : 0 : generic_simplify_532 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2932 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
2933 : : {
2934 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2935 : 0 : if (canonicalize_math_after_vectorization_p ()
2936 : : )
2937 : : {
2938 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail930;
2939 : : {
2940 : : tree res_op0;
2941 : : res_op0 = captures[0];
2942 : : tree res_op1;
2943 : : res_op1 = captures[1];
2944 : : tree res_op2;
2945 : : res_op2 = captures[2];
2946 : : tree _r;
2947 : : _r = maybe_build_call_expr_loc (loc, CFN_FNMA, type, 3, res_op0, res_op1, res_op2);
2948 : : if (!_r)
2949 : : goto next_after_fail930;
2950 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 715, __FILE__, __LINE__, true);
2951 : : return _r;
2952 : : }
2953 : 0 : next_after_fail930:;
2954 : : }
2955 : 0 : return NULL_TREE;
2956 : : }
2957 : :
2958 : : tree
2959 : 0 : generic_simplify_542 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2960 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
2961 : : const combined_fn ARG_UNUSED (PARITY))
2962 : : {
2963 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2964 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail941;
2965 : 0 : {
2966 : 0 : tree res_op0;
2967 : 0 : res_op0 = captures[0];
2968 : 0 : tree _r;
2969 : 0 : _r = maybe_build_call_expr_loc (loc, PARITY, type, 1, res_op0);
2970 : 0 : if (!_r)
2971 : 0 : goto next_after_fail941;
2972 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 724, __FILE__, __LINE__, true);
2973 : : return _r;
2974 : : }
2975 : : next_after_fail941:;
2976 : : return NULL_TREE;
2977 : : }
2978 : :
2979 : : tree
2980 : 0 : generic_simplify_547 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2981 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
2982 : : const combined_fn ARG_UNUSED (reduc))
2983 : : {
2984 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2985 : 0 : {
2986 : 0 : int i = single_nonzero_element (captures[1]);
2987 : 0 : if (i >= 0
2988 : : )
2989 : : {
2990 : 0 : {
2991 : 0 : tree elt = vector_cst_elt (captures[1], i);
2992 : 0 : tree elt_type = TREE_TYPE (elt);
2993 : 0 : unsigned int elt_bits = tree_to_uhwi (TYPE_SIZE (elt_type));
2994 : 0 : tree size = bitsize_int (elt_bits);
2995 : 0 : tree pos = bitsize_int (elt_bits * i);
2996 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail946;
2997 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail946;
2998 : 0 : {
2999 : 0 : tree res_op0;
3000 : 0 : {
3001 : 0 : tree _o1[2], _r1;
3002 : 0 : {
3003 : 0 : tree _o2[3], _r2;
3004 : 0 : _o2[0] = captures[0];
3005 : 0 : _o2[1] = size;
3006 : 0 : _o2[2] = pos;
3007 : 0 : _r2 = fold_build3_loc (loc, BIT_FIELD_REF, elt_type, _o2[0], _o2[1], _o2[2]);
3008 : 0 : _o1[0] = _r2;
3009 : : }
3010 : 0 : _o1[1] = elt;
3011 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, elt_type, _o1[0], _o1[1]);
3012 : 0 : res_op0 = _r1;
3013 : : }
3014 : 0 : tree _r;
3015 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
3016 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 727, __FILE__, __LINE__, true);
3017 : 0 : return _r;
3018 : : }
3019 : : next_after_fail946:;
3020 : : }
3021 : : }
3022 : : }
3023 : : return NULL_TREE;
3024 : : }
3025 : :
3026 : : tree
3027 : 3436 : generic_simplify_PAREN_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0)
3028 : : {
3029 : 3436 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3030 : 3436 : switch (TREE_CODE (_p0))
3031 : : {
3032 : 2 : case PAREN_EXPR:
3033 : 2 : {
3034 : 2 : tree _q20 = TREE_OPERAND (_p0, 0);
3035 : 2 : {
3036 : 2 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
3037 : 2 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1039;
3038 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1039;
3039 : 2 : {
3040 : 2 : tree _r;
3041 : 2 : _r = captures[0];
3042 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 778, __FILE__, __LINE__, true);
3043 : 2 : return _r;
3044 : : }
3045 : 0 : next_after_fail1039:;
3046 : : }
3047 : 0 : break;
3048 : : }
3049 : 3434 : default:;
3050 : : }
3051 : 3434 : if (CONSTANT_CLASS_P (_p0))
3052 : : {
3053 : 1 : {
3054 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
3055 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1040;
3056 : 1 : {
3057 : 1 : tree _r;
3058 : 1 : _r = captures[0];
3059 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 779, __FILE__, __LINE__, true);
3060 : 1 : return _r;
3061 : : }
3062 : 0 : next_after_fail1040:;
3063 : : }
3064 : : }
3065 : : return NULL_TREE;
3066 : : }
3067 : :
3068 : : tree
3069 : 1648587 : generic_simplify_REALPART_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0)
3070 : : {
3071 : 1648587 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3072 : 1648587 : switch (TREE_CODE (_p0))
3073 : : {
3074 : 9554 : case COMPLEX_EXPR:
3075 : 9554 : {
3076 : 9554 : tree _q20 = TREE_OPERAND (_p0, 0);
3077 : 9554 : tree _q21 = TREE_OPERAND (_p0, 1);
3078 : 9554 : {
3079 : 9554 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
3080 : 9554 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1041;
3081 : 9554 : {
3082 : 9554 : tree _r;
3083 : 9554 : _r = captures[0];
3084 : 9554 : if (TREE_SIDE_EFFECTS (captures[1]))
3085 : 1283 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3086 : 9554 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 780, __FILE__, __LINE__, true);
3087 : 9554 : return _r;
3088 : : }
3089 : 0 : next_after_fail1041:;
3090 : : }
3091 : 0 : break;
3092 : : }
3093 : 46162 : CASE_CONVERT:
3094 : 46162 : {
3095 : 46162 : tree _q20 = TREE_OPERAND (_p0, 0);
3096 : 46162 : switch (TREE_CODE (_q20))
3097 : : {
3098 : 0 : case CONJ_EXPR:
3099 : 0 : {
3100 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
3101 : 0 : {
3102 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
3103 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1042;
3104 : 0 : {
3105 : 0 : tree res_op0;
3106 : 0 : {
3107 : 0 : tree _o1[1], _r1;
3108 : 0 : _o1[0] = captures[2];
3109 : 0 : _r1 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o1[0])), _o1[0]);
3110 : 0 : res_op0 = _r1;
3111 : : }
3112 : 0 : tree _r;
3113 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3114 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 781, __FILE__, __LINE__, true);
3115 : 0 : return _r;
3116 : : }
3117 : 0 : next_after_fail1042:;
3118 : : }
3119 : 0 : break;
3120 : : }
3121 : 0 : case PLUS_EXPR:
3122 : 0 : {
3123 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
3124 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
3125 : 0 : {
3126 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31 };
3127 : 0 : const enum tree_code op = PLUS_EXPR;
3128 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1043;
3129 : 0 : {
3130 : 0 : tree res_op0;
3131 : 0 : {
3132 : 0 : tree _o1[2], _r1;
3133 : 0 : {
3134 : 0 : tree _o2[1], _r2;
3135 : 0 : _o2[0] = captures[2];
3136 : 0 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
3137 : 0 : _o1[0] = _r2;
3138 : : }
3139 : 0 : {
3140 : 0 : tree _o2[1], _r2;
3141 : 0 : _o2[0] = captures[3];
3142 : 0 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
3143 : 0 : _o1[1] = _r2;
3144 : : }
3145 : 0 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3146 : 0 : res_op0 = _r1;
3147 : : }
3148 : 0 : tree _r;
3149 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3150 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 782, __FILE__, __LINE__, true);
3151 : 0 : return _r;
3152 : : }
3153 : 0 : next_after_fail1043:;
3154 : : }
3155 : 0 : break;
3156 : : }
3157 : 0 : case MINUS_EXPR:
3158 : 0 : {
3159 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
3160 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
3161 : 0 : {
3162 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31 };
3163 : 0 : const enum tree_code op = MINUS_EXPR;
3164 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1044;
3165 : 0 : {
3166 : 0 : tree res_op0;
3167 : 0 : {
3168 : 0 : tree _o1[2], _r1;
3169 : 0 : {
3170 : 0 : tree _o2[1], _r2;
3171 : 0 : _o2[0] = captures[2];
3172 : 0 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
3173 : 0 : _o1[0] = _r2;
3174 : : }
3175 : 0 : {
3176 : 0 : tree _o2[1], _r2;
3177 : 0 : _o2[0] = captures[3];
3178 : 0 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
3179 : 0 : _o1[1] = _r2;
3180 : : }
3181 : 0 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3182 : 0 : res_op0 = _r1;
3183 : : }
3184 : 0 : tree _r;
3185 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3186 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 782, __FILE__, __LINE__, true);
3187 : 0 : return _r;
3188 : : }
3189 : 0 : next_after_fail1044:;
3190 : : }
3191 : 0 : break;
3192 : : }
3193 : 0 : case CALL_EXPR:
3194 : 0 : switch (get_call_combined_fn (_q20))
3195 : : {
3196 : 0 : case CFN_BUILT_IN_CEXPIF:
3197 : 0 : if (call_expr_nargs (_q20) == 1)
3198 : : {
3199 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
3200 : 0 : {
3201 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
3202 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1045;
3203 : 0 : {
3204 : 0 : tree res_op0;
3205 : 0 : {
3206 : 0 : tree _o1[1], _r1;
3207 : 0 : _o1[0] = captures[2];
3208 : 0 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_COSF, TREE_TYPE (_o1[0]), 1, _o1[0]);
3209 : 0 : if (!_r1)
3210 : 0 : goto next_after_fail1045;
3211 : 0 : res_op0 = _r1;
3212 : : }
3213 : 0 : tree _r;
3214 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3215 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 783, __FILE__, __LINE__, true);
3216 : 0 : return _r;
3217 : : }
3218 : 0 : next_after_fail1045:;
3219 : : }
3220 : : }
3221 : : break;
3222 : 0 : case CFN_BUILT_IN_CEXPIL:
3223 : 0 : if (call_expr_nargs (_q20) == 1)
3224 : : {
3225 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
3226 : 0 : {
3227 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
3228 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1046;
3229 : 0 : {
3230 : 0 : tree res_op0;
3231 : 0 : {
3232 : 0 : tree _o1[1], _r1;
3233 : 0 : _o1[0] = captures[2];
3234 : 0 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_COSL, TREE_TYPE (_o1[0]), 1, _o1[0]);
3235 : 0 : if (!_r1)
3236 : 0 : goto next_after_fail1046;
3237 : 0 : res_op0 = _r1;
3238 : : }
3239 : 0 : tree _r;
3240 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3241 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 783, __FILE__, __LINE__, true);
3242 : 0 : return _r;
3243 : : }
3244 : 0 : next_after_fail1046:;
3245 : : }
3246 : : }
3247 : : break;
3248 : 0 : case CFN_BUILT_IN_CEXPI:
3249 : 0 : if (call_expr_nargs (_q20) == 1)
3250 : : {
3251 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
3252 : 0 : {
3253 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
3254 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1047;
3255 : 0 : {
3256 : 0 : tree res_op0;
3257 : 0 : {
3258 : 0 : tree _o1[1], _r1;
3259 : 0 : _o1[0] = captures[2];
3260 : 0 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_COS, TREE_TYPE (_o1[0]), 1, _o1[0]);
3261 : 0 : if (!_r1)
3262 : 0 : goto next_after_fail1047;
3263 : 0 : res_op0 = _r1;
3264 : : }
3265 : 0 : tree _r;
3266 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3267 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 783, __FILE__, __LINE__, true);
3268 : 0 : return _r;
3269 : : }
3270 : 0 : next_after_fail1047:;
3271 : : }
3272 : : }
3273 : : break;
3274 : : default:;
3275 : : }
3276 : : break;
3277 : : default:;
3278 : : }
3279 : : break;
3280 : : }
3281 : 8 : case CONJ_EXPR:
3282 : 8 : {
3283 : 8 : tree _q20 = TREE_OPERAND (_p0, 0);
3284 : 8 : {
3285 : 8 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q20 };
3286 : 8 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1048;
3287 : 8 : {
3288 : 8 : tree res_op0;
3289 : 8 : {
3290 : 8 : tree _o1[1], _r1;
3291 : 8 : _o1[0] = captures[2];
3292 : 8 : _r1 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o1[0])), _o1[0]);
3293 : 8 : res_op0 = _r1;
3294 : : }
3295 : 8 : tree _r;
3296 : 8 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3297 : 8 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 781, __FILE__, __LINE__, true);
3298 : 8 : return _r;
3299 : : }
3300 : 0 : next_after_fail1048:;
3301 : : }
3302 : 0 : break;
3303 : : }
3304 : 404 : case PLUS_EXPR:
3305 : 404 : {
3306 : 404 : tree _q20 = TREE_OPERAND (_p0, 0);
3307 : 404 : tree _q21 = TREE_OPERAND (_p0, 1);
3308 : 404 : {
3309 : 404 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21 };
3310 : 404 : const enum tree_code op = PLUS_EXPR;
3311 : 404 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1049;
3312 : 404 : {
3313 : 404 : tree res_op0;
3314 : 404 : {
3315 : 404 : tree _o1[2], _r1;
3316 : 404 : {
3317 : 404 : tree _o2[1], _r2;
3318 : 404 : _o2[0] = captures[2];
3319 : 404 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
3320 : 404 : _o1[0] = _r2;
3321 : : }
3322 : 404 : {
3323 : 404 : tree _o2[1], _r2;
3324 : 404 : _o2[0] = captures[3];
3325 : 404 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
3326 : 404 : _o1[1] = _r2;
3327 : : }
3328 : 404 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3329 : 404 : res_op0 = _r1;
3330 : : }
3331 : 404 : tree _r;
3332 : 404 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3333 : 404 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 782, __FILE__, __LINE__, true);
3334 : 404 : return _r;
3335 : : }
3336 : 0 : next_after_fail1049:;
3337 : : }
3338 : 0 : break;
3339 : : }
3340 : 52 : case MINUS_EXPR:
3341 : 52 : {
3342 : 52 : tree _q20 = TREE_OPERAND (_p0, 0);
3343 : 52 : tree _q21 = TREE_OPERAND (_p0, 1);
3344 : 52 : {
3345 : 52 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21 };
3346 : 52 : const enum tree_code op = MINUS_EXPR;
3347 : 52 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1050;
3348 : 52 : {
3349 : 52 : tree res_op0;
3350 : 52 : {
3351 : 52 : tree _o1[2], _r1;
3352 : 52 : {
3353 : 52 : tree _o2[1], _r2;
3354 : 52 : _o2[0] = captures[2];
3355 : 52 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
3356 : 52 : _o1[0] = _r2;
3357 : : }
3358 : 52 : {
3359 : 52 : tree _o2[1], _r2;
3360 : 52 : _o2[0] = captures[3];
3361 : 52 : _r2 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
3362 : 52 : _o1[1] = _r2;
3363 : : }
3364 : 52 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3365 : 52 : res_op0 = _r1;
3366 : : }
3367 : 52 : tree _r;
3368 : 52 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3369 : 52 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 782, __FILE__, __LINE__, true);
3370 : 52 : return _r;
3371 : : }
3372 : 0 : next_after_fail1050:;
3373 : : }
3374 : 0 : break;
3375 : : }
3376 : 347 : case CALL_EXPR:
3377 : 347 : switch (get_call_combined_fn (_p0))
3378 : : {
3379 : 0 : case CFN_BUILT_IN_CEXPIF:
3380 : 0 : if (call_expr_nargs (_p0) == 1)
3381 : : {
3382 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
3383 : 0 : {
3384 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q20 };
3385 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1051;
3386 : 0 : {
3387 : 0 : tree res_op0;
3388 : 0 : {
3389 : 0 : tree _o1[1], _r1;
3390 : 0 : _o1[0] = captures[2];
3391 : 0 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_COSF, TREE_TYPE (_o1[0]), 1, _o1[0]);
3392 : 0 : if (!_r1)
3393 : 0 : goto next_after_fail1051;
3394 : 0 : res_op0 = _r1;
3395 : : }
3396 : 0 : tree _r;
3397 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3398 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 783, __FILE__, __LINE__, true);
3399 : 0 : return _r;
3400 : : }
3401 : 0 : next_after_fail1051:;
3402 : : }
3403 : : }
3404 : : break;
3405 : 0 : case CFN_BUILT_IN_CEXPIL:
3406 : 0 : if (call_expr_nargs (_p0) == 1)
3407 : : {
3408 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
3409 : 0 : {
3410 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q20 };
3411 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1052;
3412 : 0 : {
3413 : 0 : tree res_op0;
3414 : 0 : {
3415 : 0 : tree _o1[1], _r1;
3416 : 0 : _o1[0] = captures[2];
3417 : 0 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_COSL, TREE_TYPE (_o1[0]), 1, _o1[0]);
3418 : 0 : if (!_r1)
3419 : 0 : goto next_after_fail1052;
3420 : 0 : res_op0 = _r1;
3421 : : }
3422 : 0 : tree _r;
3423 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3424 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 783, __FILE__, __LINE__, true);
3425 : 0 : return _r;
3426 : : }
3427 : 0 : next_after_fail1052:;
3428 : : }
3429 : : }
3430 : : break;
3431 : 1 : case CFN_BUILT_IN_CEXPI:
3432 : 1 : if (call_expr_nargs (_p0) == 1)
3433 : : {
3434 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
3435 : 1 : {
3436 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q20 };
3437 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1053;
3438 : 1 : {
3439 : 1 : tree res_op0;
3440 : 1 : {
3441 : 1 : tree _o1[1], _r1;
3442 : 1 : _o1[0] = captures[2];
3443 : 1 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_COS, TREE_TYPE (_o1[0]), 1, _o1[0]);
3444 : 1 : if (!_r1)
3445 : 0 : goto next_after_fail1053;
3446 : 1 : res_op0 = _r1;
3447 : : }
3448 : 1 : tree _r;
3449 : 1 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3450 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 783, __FILE__, __LINE__, true);
3451 : 1 : return _r;
3452 : : }
3453 : 0 : next_after_fail1053:;
3454 : : }
3455 : : }
3456 : : break;
3457 : : default:;
3458 : : }
3459 : : break;
3460 : : default:;
3461 : : }
3462 : : return NULL_TREE;
3463 : : }
3464 : :
3465 : : tree
3466 : 2342000 : generic_simplify_POINTER_DIFF_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
3467 : : {
3468 : 2342000 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3469 : 2342000 : if (integer_zerop (_p1))
3470 : : {
3471 : 31 : {
3472 : 31 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
3473 : 31 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1211;
3474 : 31 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1211;
3475 : 31 : {
3476 : 31 : tree res_op0;
3477 : 31 : res_op0 = captures[0];
3478 : 31 : tree _r;
3479 : 31 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3480 : 31 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 841, __FILE__, __LINE__, true);
3481 : 31 : return _r;
3482 : : }
3483 : : next_after_fail1211:;
3484 : : }
3485 : : }
3486 : 2341969 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _p0, 0))
3487 : : {
3488 : 11104 : {
3489 : 11104 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p0 };
3490 : 11104 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1212;
3491 : 11104 : {
3492 : 11104 : tree _r;
3493 : 11104 : _r = build_zero_cst (type);
3494 : 11104 : if (TREE_SIDE_EFFECTS (captures[1]))
3495 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3496 : 11104 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 842, __FILE__, __LINE__, true);
3497 : 11104 : return _r;
3498 : : }
3499 : 0 : next_after_fail1212:;
3500 : : }
3501 : : }
3502 : 2330865 : switch (TREE_CODE (_p0))
3503 : : {
3504 : 29530 : case POINTER_PLUS_EXPR:
3505 : 29530 : {
3506 : 29530 : tree _q20 = TREE_OPERAND (_p0, 0);
3507 : 29530 : tree _q21 = TREE_OPERAND (_p0, 1);
3508 : 29530 : switch (TREE_CODE (_p1))
3509 : : {
3510 : 8836 : case POINTER_PLUS_EXPR:
3511 : 8836 : {
3512 : 8836 : tree _q50 = TREE_OPERAND (_p1, 0);
3513 : 8836 : tree _q51 = TREE_OPERAND (_p1, 1);
3514 : 8836 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
3515 : : {
3516 : 8414 : {
3517 : 8414 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
3518 : 8414 : if (TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[1]))
3519 : : )
3520 : : {
3521 : 8414 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1213;
3522 : 8414 : {
3523 : 8414 : tree res_op0;
3524 : 8414 : {
3525 : 8414 : tree _o1[2], _r1;
3526 : 8414 : _o1[0] = captures[1];
3527 : 8414 : _o1[1] = captures[2];
3528 : 8414 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3529 : 8414 : res_op0 = _r1;
3530 : : }
3531 : 8414 : tree _r;
3532 : 8414 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3533 : 8414 : if (TREE_SIDE_EFFECTS (captures[0]))
3534 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
3535 : 8414 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 843, __FILE__, __LINE__, true);
3536 : 8414 : return _r;
3537 : : }
3538 : 0 : next_after_fail1213:;
3539 : : }
3540 : : }
3541 : : }
3542 : : break;
3543 : : }
3544 : : default:;
3545 : : }
3546 : : break;
3547 : : }
3548 : 146133 : CASE_CONVERT:
3549 : 146133 : {
3550 : 146133 : tree _q20 = TREE_OPERAND (_p0, 0);
3551 : 146133 : switch (TREE_CODE (_q20))
3552 : : {
3553 : 2747 : case ADDR_EXPR:
3554 : 2747 : {
3555 : 2747 : switch (TREE_CODE (_p1))
3556 : : {
3557 : 346 : CASE_CONVERT:
3558 : 346 : {
3559 : 346 : tree _q40 = TREE_OPERAND (_p1, 0);
3560 : 346 : {
3561 : 346 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
3562 : 346 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
3563 : 346 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
3564 : : )
3565 : : {
3566 : 346 : {
3567 : 346 : poly_int64 diff;
3568 : 346 : if (ptr_difference_const (captures[1], captures[3], &diff)
3569 : : )
3570 : : {
3571 : 205 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1214;
3572 : 205 : {
3573 : 205 : tree _r;
3574 : 205 : _r = build_int_cst_type (type, diff);
3575 : 205 : if (TREE_SIDE_EFFECTS (captures[1]))
3576 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3577 : 205 : if (TREE_SIDE_EFFECTS (captures[3]))
3578 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
3579 : 205 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 844, __FILE__, __LINE__, true);
3580 : 205 : return _r;
3581 : : }
3582 : 0 : next_after_fail1214:;
3583 : : }
3584 : : }
3585 : : }
3586 : : }
3587 : 141 : break;
3588 : : }
3589 : 2542 : default:;
3590 : : }
3591 : 2542 : {
3592 : 2542 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
3593 : 2542 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
3594 : 2542 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
3595 : : )
3596 : : {
3597 : 2542 : {
3598 : 2542 : poly_int64 diff;
3599 : 2542 : if (ptr_difference_const (captures[1], captures[3], &diff)
3600 : : )
3601 : : {
3602 : 119 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1215;
3603 : 119 : {
3604 : 119 : tree _r;
3605 : 119 : _r = build_int_cst_type (type, diff);
3606 : 119 : if (TREE_SIDE_EFFECTS (captures[1]))
3607 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3608 : 119 : if (TREE_SIDE_EFFECTS (captures[2]))
3609 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3610 : 119 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 844, __FILE__, __LINE__, true);
3611 : 119 : return _r;
3612 : : }
3613 : 0 : next_after_fail1215:;
3614 : : }
3615 : : }
3616 : : }
3617 : : }
3618 : 2423 : break;
3619 : : }
3620 : 145809 : default:;
3621 : : }
3622 : 145809 : switch (TREE_CODE (_p1))
3623 : : {
3624 : 85882 : CASE_CONVERT:
3625 : 85882 : {
3626 : 85882 : tree _q40 = TREE_OPERAND (_p1, 0);
3627 : 85882 : switch (TREE_CODE (_q40))
3628 : : {
3629 : 478 : case ADDR_EXPR:
3630 : 478 : {
3631 : 478 : {
3632 : 478 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
3633 : 478 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
3634 : 478 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
3635 : : )
3636 : : {
3637 : 478 : {
3638 : 478 : poly_int64 diff;
3639 : 478 : if (ptr_difference_const (captures[1], captures[3], &diff)
3640 : : )
3641 : : {
3642 : 28 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1216;
3643 : 28 : {
3644 : 28 : tree _r;
3645 : 28 : _r = build_int_cst_type (type, diff);
3646 : 28 : if (TREE_SIDE_EFFECTS (captures[1]))
3647 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3648 : 28 : if (TREE_SIDE_EFFECTS (captures[3]))
3649 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
3650 : 28 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 845, __FILE__, __LINE__, true);
3651 : 28 : return _r;
3652 : : }
3653 : 0 : next_after_fail1216:;
3654 : : }
3655 : : }
3656 : : }
3657 : : }
3658 : 450 : break;
3659 : : }
3660 : : default:;
3661 : : }
3662 : : break;
3663 : : }
3664 : 16 : case ADDR_EXPR:
3665 : 16 : {
3666 : 16 : {
3667 : 16 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
3668 : 16 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
3669 : 16 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
3670 : : )
3671 : : {
3672 : 16 : {
3673 : 16 : poly_int64 diff;
3674 : 16 : if (ptr_difference_const (captures[1], captures[3], &diff)
3675 : : )
3676 : : {
3677 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1217;
3678 : 0 : {
3679 : 0 : tree _r;
3680 : 0 : _r = build_int_cst_type (type, diff);
3681 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
3682 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3683 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
3684 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3685 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 845, __FILE__, __LINE__, true);
3686 : 0 : return _r;
3687 : : }
3688 : 0 : next_after_fail1217:;
3689 : : }
3690 : : }
3691 : : }
3692 : : }
3693 : 16 : break;
3694 : : }
3695 : : default:;
3696 : : }
3697 : : break;
3698 : : }
3699 : 1075 : case ADDR_EXPR:
3700 : 1075 : {
3701 : 1075 : switch (TREE_CODE (_p1))
3702 : : {
3703 : 50 : CASE_CONVERT:
3704 : 50 : {
3705 : 50 : tree _q30 = TREE_OPERAND (_p1, 0);
3706 : 50 : {
3707 : 50 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _p1, _q30 };
3708 : 50 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
3709 : 50 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
3710 : : )
3711 : : {
3712 : 50 : {
3713 : 50 : poly_int64 diff;
3714 : 50 : if (ptr_difference_const (captures[1], captures[3], &diff)
3715 : : )
3716 : : {
3717 : 34 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1218;
3718 : 34 : {
3719 : 34 : tree _r;
3720 : 34 : _r = build_int_cst_type (type, diff);
3721 : 34 : if (TREE_SIDE_EFFECTS (captures[0]))
3722 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
3723 : 34 : if (TREE_SIDE_EFFECTS (captures[3]))
3724 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
3725 : 34 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 844, __FILE__, __LINE__, true);
3726 : 34 : return _r;
3727 : : }
3728 : 0 : next_after_fail1218:;
3729 : : }
3730 : : }
3731 : : }
3732 : : }
3733 : 16 : break;
3734 : : }
3735 : 1041 : default:;
3736 : : }
3737 : 1041 : {
3738 : 1041 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _p1, _p1 };
3739 : 1041 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
3740 : 1041 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
3741 : : )
3742 : : {
3743 : 1041 : {
3744 : 1041 : poly_int64 diff;
3745 : 1041 : if (ptr_difference_const (captures[1], captures[3], &diff)
3746 : : )
3747 : : {
3748 : 123 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1219;
3749 : 123 : {
3750 : 123 : tree _r;
3751 : 123 : _r = build_int_cst_type (type, diff);
3752 : 123 : if (TREE_SIDE_EFFECTS (captures[0]))
3753 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
3754 : 123 : if (TREE_SIDE_EFFECTS (captures[2]))
3755 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3756 : 123 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 844, __FILE__, __LINE__, true);
3757 : 123 : return _r;
3758 : : }
3759 : 0 : next_after_fail1219:;
3760 : : }
3761 : : }
3762 : : }
3763 : : }
3764 : 918 : break;
3765 : : }
3766 : 2321942 : default:;
3767 : : }
3768 : 2321942 : switch (TREE_CODE (_p1))
3769 : : {
3770 : 214469 : CASE_CONVERT:
3771 : 214469 : {
3772 : 214469 : tree _q30 = TREE_OPERAND (_p1, 0);
3773 : 214469 : switch (TREE_CODE (_q30))
3774 : : {
3775 : 63791 : case ADDR_EXPR:
3776 : 63791 : {
3777 : 63791 : {
3778 : 63791 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _p1, _q30 };
3779 : 63791 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
3780 : 63791 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
3781 : : )
3782 : : {
3783 : 63791 : {
3784 : 63791 : poly_int64 diff;
3785 : 63791 : if (ptr_difference_const (captures[1], captures[3], &diff)
3786 : : )
3787 : : {
3788 : 15973 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1220;
3789 : 15973 : {
3790 : 15973 : tree _r;
3791 : 15973 : _r = build_int_cst_type (type, diff);
3792 : 15973 : if (TREE_SIDE_EFFECTS (captures[0]))
3793 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
3794 : 15973 : if (TREE_SIDE_EFFECTS (captures[3]))
3795 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
3796 : 15973 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 845, __FILE__, __LINE__, true);
3797 : 15973 : return _r;
3798 : : }
3799 : 0 : next_after_fail1220:;
3800 : : }
3801 : : }
3802 : : }
3803 : : }
3804 : 47818 : break;
3805 : : }
3806 : : default:;
3807 : : }
3808 : : break;
3809 : : }
3810 : 7616 : case ADDR_EXPR:
3811 : 7616 : {
3812 : 7616 : {
3813 : 7616 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _p1, _p1 };
3814 : 7616 : if (tree_nop_conversion_p (TREE_TYPE(captures[0]), TREE_TYPE (captures[1]))
3815 : 7616 : && tree_nop_conversion_p (TREE_TYPE(captures[2]), TREE_TYPE (captures[3]))
3816 : : )
3817 : : {
3818 : 7616 : {
3819 : 7616 : poly_int64 diff;
3820 : 7616 : if (ptr_difference_const (captures[1], captures[3], &diff)
3821 : : )
3822 : : {
3823 : 6 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1221;
3824 : 6 : {
3825 : 6 : tree _r;
3826 : 6 : _r = build_int_cst_type (type, diff);
3827 : 6 : if (TREE_SIDE_EFFECTS (captures[0]))
3828 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
3829 : 6 : if (TREE_SIDE_EFFECTS (captures[2]))
3830 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3831 : 6 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 845, __FILE__, __LINE__, true);
3832 : 6 : return _r;
3833 : : }
3834 : 0 : next_after_fail1221:;
3835 : : }
3836 : : }
3837 : : }
3838 : : }
3839 : 7610 : break;
3840 : : }
3841 : 2305963 : default:;
3842 : : }
3843 : 2305963 : switch (TREE_CODE (_p0))
3844 : : {
3845 : 5137 : case POINTER_PLUS_EXPR:
3846 : 5137 : {
3847 : 5137 : tree _q20 = TREE_OPERAND (_p0, 0);
3848 : 5137 : tree _q21 = TREE_OPERAND (_p0, 1);
3849 : 5137 : switch (TREE_CODE (_q20))
3850 : : {
3851 : 25 : case ADDR_EXPR:
3852 : 25 : {
3853 : 25 : switch (TREE_CODE (_p1))
3854 : : {
3855 : 6 : case POINTER_PLUS_EXPR:
3856 : 6 : {
3857 : 6 : tree _q50 = TREE_OPERAND (_p1, 0);
3858 : 6 : tree _q51 = TREE_OPERAND (_p1, 1);
3859 : 6 : switch (TREE_CODE (_q50))
3860 : : {
3861 : 0 : case ADDR_EXPR:
3862 : 0 : {
3863 : 0 : {
3864 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q50, _q51 };
3865 : 0 : {
3866 : 0 : poly_int64 diff;
3867 : 0 : if (ptr_difference_const (captures[0], captures[2], &diff)
3868 : : )
3869 : : {
3870 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1222;
3871 : 0 : {
3872 : 0 : tree res_op0;
3873 : 0 : res_op0 = build_int_cst_type (type, diff);
3874 : 0 : tree res_op1;
3875 : 0 : {
3876 : 0 : tree _o1[1], _r1;
3877 : 0 : {
3878 : 0 : tree _o2[2], _r2;
3879 : 0 : _o2[0] = captures[1];
3880 : 0 : _o2[1] = captures[3];
3881 : 0 : _r2 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
3882 : 0 : _o1[0] = _r2;
3883 : : }
3884 : 0 : if (TREE_TYPE (_o1[0]) != type)
3885 : : {
3886 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
3887 : : }
3888 : : else
3889 : : _r1 = _o1[0];
3890 : 0 : res_op1 = _r1;
3891 : : }
3892 : 0 : tree _r;
3893 : 0 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
3894 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
3895 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
3896 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
3897 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3898 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 846, __FILE__, __LINE__, true);
3899 : 0 : return _r;
3900 : : }
3901 : 0 : next_after_fail1222:;
3902 : : }
3903 : : }
3904 : : }
3905 : 0 : break;
3906 : : }
3907 : : default:;
3908 : : }
3909 : : break;
3910 : : }
3911 : : default:;
3912 : : }
3913 : : break;
3914 : : }
3915 : 5137 : default:;
3916 : : }
3917 : 5137 : switch (TREE_CODE (_p1))
3918 : : {
3919 : 77 : case ADDR_EXPR:
3920 : 77 : {
3921 : 77 : {
3922 : 77 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
3923 : 77 : {
3924 : 77 : poly_int64 diff;
3925 : 77 : if (ptr_difference_const (captures[0], captures[2], &diff)
3926 : : )
3927 : : {
3928 : 63 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1223;
3929 : 63 : {
3930 : 63 : tree res_op0;
3931 : 63 : res_op0 = build_int_cst_type (type, diff);
3932 : 63 : tree res_op1;
3933 : 63 : {
3934 : 63 : tree _o1[1], _r1;
3935 : 63 : _o1[0] = captures[1];
3936 : 63 : if (TREE_TYPE (_o1[0]) != type)
3937 : : {
3938 : 63 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
3939 : : }
3940 : : else
3941 : : _r1 = _o1[0];
3942 : 63 : res_op1 = _r1;
3943 : : }
3944 : 63 : tree _r;
3945 : 63 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
3946 : 63 : if (TREE_SIDE_EFFECTS (captures[0]))
3947 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
3948 : 63 : if (TREE_SIDE_EFFECTS (captures[2]))
3949 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3950 : 63 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 847, __FILE__, __LINE__, true);
3951 : 63 : return _r;
3952 : : }
3953 : 0 : next_after_fail1223:;
3954 : : }
3955 : : }
3956 : : }
3957 : 14 : break;
3958 : : }
3959 : 5074 : default:;
3960 : : }
3961 : 5074 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q20, 0))
3962 : : {
3963 : 1488 : {
3964 : 1488 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q20 };
3965 : 1488 : if (!TYPE_SATURATING (type)
3966 : : )
3967 : : {
3968 : 1488 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
3969 : 2976 : && !FIXED_POINT_TYPE_P (type)
3970 : : )
3971 : : {
3972 : 1488 : {
3973 : 1488 : tree stype = signed_type_for (TREE_TYPE (captures[1]));
3974 : 1488 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1224;
3975 : 1488 : {
3976 : 1488 : tree res_op0;
3977 : 1488 : {
3978 : 1488 : tree _o1[1], _r1;
3979 : 1488 : _o1[0] = captures[1];
3980 : 1488 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, stype, _o1[0]);
3981 : 1488 : res_op0 = _r1;
3982 : : }
3983 : 1488 : tree _r;
3984 : 1488 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3985 : 1488 : if (TREE_SIDE_EFFECTS (captures[2]))
3986 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3987 : 1488 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 848, __FILE__, __LINE__, true);
3988 : 1488 : return _r;
3989 : : }
3990 : 0 : next_after_fail1224:;
3991 : : }
3992 : : }
3993 : : }
3994 : : }
3995 : : }
3996 : : break;
3997 : : }
3998 : 918 : case ADDR_EXPR:
3999 : 918 : {
4000 : 918 : switch (TREE_CODE (_p1))
4001 : : {
4002 : 36 : case POINTER_PLUS_EXPR:
4003 : 36 : {
4004 : 36 : tree _q30 = TREE_OPERAND (_p1, 0);
4005 : 36 : tree _q31 = TREE_OPERAND (_p1, 1);
4006 : 36 : {
4007 : 36 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q31 };
4008 : 36 : {
4009 : 36 : poly_int64 diff;
4010 : 36 : if (ptr_difference_const (captures[0], captures[1], &diff)
4011 : : )
4012 : : {
4013 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1225;
4014 : 12 : {
4015 : 12 : tree res_op0;
4016 : 12 : res_op0 = build_int_cst_type (type, diff);
4017 : 12 : tree res_op1;
4018 : 12 : {
4019 : 12 : tree _o1[1], _r1;
4020 : 12 : _o1[0] = captures[2];
4021 : 12 : if (TREE_TYPE (_o1[0]) != type)
4022 : : {
4023 : 12 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
4024 : : }
4025 : : else
4026 : : _r1 = _o1[0];
4027 : 12 : res_op1 = _r1;
4028 : : }
4029 : 12 : tree _r;
4030 : 12 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
4031 : 12 : if (TREE_SIDE_EFFECTS (captures[0]))
4032 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
4033 : 12 : if (TREE_SIDE_EFFECTS (captures[1]))
4034 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
4035 : 12 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 849, __FILE__, __LINE__, true);
4036 : 12 : return _r;
4037 : : }
4038 : 0 : next_after_fail1225:;
4039 : : }
4040 : : }
4041 : : }
4042 : 24 : break;
4043 : : }
4044 : : default:;
4045 : : }
4046 : : break;
4047 : : }
4048 : 2304400 : default:;
4049 : : }
4050 : 2304400 : switch (TREE_CODE (_p1))
4051 : : {
4052 : 2478 : case POINTER_PLUS_EXPR:
4053 : 2478 : {
4054 : 2478 : tree _q30 = TREE_OPERAND (_p1, 0);
4055 : 2478 : tree _q31 = TREE_OPERAND (_p1, 1);
4056 : 2478 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || operand_equal_p (_q30, _p0, 0))
4057 : : {
4058 : 204 : {
4059 : 204 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p0 };
4060 : 204 : if (!TYPE_SATURATING (type)
4061 : : )
4062 : : {
4063 : 204 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
4064 : 408 : && !FIXED_POINT_TYPE_P (type)
4065 : : )
4066 : : {
4067 : 204 : {
4068 : 204 : tree stype = signed_type_for (TREE_TYPE (captures[1]));
4069 : 204 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1226;
4070 : 204 : {
4071 : 204 : tree res_op0;
4072 : 204 : {
4073 : 204 : tree _o1[1], _r1;
4074 : 204 : {
4075 : 204 : tree _o2[1], _r2;
4076 : 204 : _o2[0] = captures[1];
4077 : 204 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, stype, _o2[0]);
4078 : 204 : _o1[0] = _r2;
4079 : : }
4080 : 204 : if (TREE_TYPE (_o1[0]) != type)
4081 : : {
4082 : 204 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
4083 : : }
4084 : : else
4085 : : _r1 = _o1[0];
4086 : 204 : res_op0 = _r1;
4087 : : }
4088 : 204 : tree _r;
4089 : 204 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
4090 : 204 : if (TREE_SIDE_EFFECTS (captures[2]))
4091 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
4092 : 204 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 850, __FILE__, __LINE__, true);
4093 : 204 : return _r;
4094 : : }
4095 : 0 : next_after_fail1226:;
4096 : : }
4097 : : }
4098 : : }
4099 : : }
4100 : : }
4101 : : break;
4102 : : }
4103 : 2304196 : default:;
4104 : : }
4105 : 2304196 : switch (TREE_CODE (_p0))
4106 : : {
4107 : 3586 : case POINTER_PLUS_EXPR:
4108 : 3586 : {
4109 : 3586 : tree _q20 = TREE_OPERAND (_p0, 0);
4110 : 3586 : tree _q21 = TREE_OPERAND (_p0, 1);
4111 : 3586 : switch (TREE_CODE (_p1))
4112 : : {
4113 : 422 : case POINTER_PLUS_EXPR:
4114 : 422 : {
4115 : 422 : tree _q50 = TREE_OPERAND (_p1, 0);
4116 : 422 : tree _q51 = TREE_OPERAND (_p1, 1);
4117 : 422 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
4118 : : {
4119 : 9 : {
4120 : 9 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
4121 : 9 : if (!TYPE_SATURATING (type)
4122 : : )
4123 : : {
4124 : 9 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
4125 : 18 : && !FIXED_POINT_TYPE_P (type)
4126 : : )
4127 : : {
4128 : 9 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1227;
4129 : 9 : {
4130 : 9 : tree res_op0;
4131 : 9 : res_op0 = captures[0];
4132 : 9 : tree res_op1;
4133 : 9 : res_op1 = captures[2];
4134 : 9 : tree _r;
4135 : 9 : _r = fold_build2_loc (loc, POINTER_DIFF_EXPR, type, res_op0, res_op1);
4136 : 9 : if (TREE_SIDE_EFFECTS (captures[1]))
4137 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
4138 : 9 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 851, __FILE__, __LINE__, true);
4139 : 9 : return _r;
4140 : : }
4141 : 0 : next_after_fail1227:;
4142 : : }
4143 : : }
4144 : : }
4145 : : }
4146 : 413 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
4147 : : {
4148 : 6 : {
4149 : 6 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q51, _q20 };
4150 : 6 : if (!TYPE_SATURATING (type)
4151 : : )
4152 : : {
4153 : 6 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
4154 : 12 : && !FIXED_POINT_TYPE_P (type)
4155 : : )
4156 : : {
4157 : 6 : {
4158 : 6 : tree stype = signed_type_for (TREE_TYPE (captures[1]));
4159 : 6 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1228;
4160 : 6 : {
4161 : 6 : tree res_op0;
4162 : 6 : {
4163 : 6 : tree _o1[1], _r1;
4164 : 6 : {
4165 : 6 : tree _o2[1], _r2;
4166 : 6 : _o2[0] = captures[1];
4167 : 6 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, stype, _o2[0]);
4168 : 6 : _o1[0] = _r2;
4169 : : }
4170 : 6 : if (TREE_TYPE (_o1[0]) != type)
4171 : : {
4172 : 6 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
4173 : : }
4174 : : else
4175 : : _r1 = _o1[0];
4176 : 6 : res_op0 = _r1;
4177 : : }
4178 : 6 : tree res_op1;
4179 : 6 : {
4180 : 6 : tree _o1[1], _r1;
4181 : 6 : {
4182 : 6 : tree _o2[1], _r2;
4183 : 6 : _o2[0] = captures[2];
4184 : 6 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, stype, _o2[0]);
4185 : 6 : _o1[0] = _r2;
4186 : : }
4187 : 6 : if (TREE_TYPE (_o1[0]) != type)
4188 : : {
4189 : 6 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
4190 : : }
4191 : : else
4192 : : _r1 = _o1[0];
4193 : 6 : res_op1 = _r1;
4194 : : }
4195 : 6 : tree _r;
4196 : 6 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
4197 : 6 : if (TREE_SIDE_EFFECTS (captures[3]))
4198 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
4199 : 6 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 852, __FILE__, __LINE__, true);
4200 : 6 : return _r;
4201 : : }
4202 : 0 : next_after_fail1228:;
4203 : : }
4204 : : }
4205 : : }
4206 : : }
4207 : : }
4208 : : break;
4209 : : }
4210 : : default:;
4211 : : }
4212 : : break;
4213 : : }
4214 : 2304181 : default:;
4215 : : }
4216 : 2304181 : if (integer_zerop (_p0))
4217 : : {
4218 : 0 : {
4219 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p1 };
4220 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1229;
4221 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1229;
4222 : 0 : {
4223 : 0 : tree res_op0;
4224 : 0 : {
4225 : 0 : tree _o1[1], _r1;
4226 : 0 : _o1[0] = captures[0];
4227 : 0 : if (TREE_TYPE (_o1[0]) != type)
4228 : : {
4229 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
4230 : : }
4231 : : else
4232 : : _r1 = _o1[0];
4233 : 0 : res_op0 = _r1;
4234 : : }
4235 : 0 : tree _r;
4236 : 0 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
4237 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 853, __FILE__, __LINE__, true);
4238 : 0 : return _r;
4239 : : }
4240 : : next_after_fail1229:;
4241 : : }
4242 : : }
4243 : : return NULL_TREE;
4244 : : }
4245 : :
4246 : : tree
4247 : 1806483 : generic_simplify_FLOOR_DIV_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
4248 : : {
4249 : 1806483 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4250 : 1806483 : if (integer_onep (_p1))
4251 : : {
4252 : 660191 : {
4253 : 660191 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4254 : 660191 : tree res = generic_simplify_164 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
4255 : 660191 : if (res) return res;
4256 : : }
4257 : : }
4258 : 1146292 : if (integer_zerop (_p0))
4259 : : {
4260 : 4 : {
4261 : 4 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
4262 : 4 : tree res = generic_simplify_283 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
4263 : 4 : if (res) return res;
4264 : : }
4265 : : }
4266 : 1146288 : switch (TREE_CODE (_p1))
4267 : : {
4268 : 413 : case SSA_NAME:
4269 : 413 : {
4270 : 413 : {
4271 : 413 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
4272 : 413 : tree res = generic_simplify_285 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
4273 : 413 : if (res) return res;
4274 : : }
4275 : 413 : break;
4276 : : }
4277 : 1146288 : default:;
4278 : : }
4279 : 1146288 : if (integer_minus_onep (_p1))
4280 : : {
4281 : 109 : {
4282 : 109 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
4283 : 109 : tree res = generic_simplify_284 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
4284 : 109 : if (res) return res;
4285 : : }
4286 : : }
4287 : 1146275 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
4288 : : {
4289 : 0 : {
4290 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4291 : 0 : tree res = generic_simplify_286 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
4292 : 0 : if (res) return res;
4293 : : }
4294 : : }
4295 : 1146275 : switch (TREE_CODE (_p1))
4296 : : {
4297 : 0 : case ABS_EXPR:
4298 : 0 : {
4299 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
4300 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
4301 : : {
4302 : 0 : {
4303 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4304 : 0 : tree res = generic_simplify_287 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
4305 : 0 : if (res) return res;
4306 : : }
4307 : : }
4308 : : break;
4309 : : }
4310 : 1146275 : default:;
4311 : : }
4312 : 1146275 : switch (TREE_CODE (_p0))
4313 : : {
4314 : 0 : case ABS_EXPR:
4315 : 0 : {
4316 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
4317 : 0 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
4318 : : {
4319 : 0 : {
4320 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
4321 : 0 : tree res = generic_simplify_287 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
4322 : 0 : if (res) return res;
4323 : : }
4324 : : }
4325 : : break;
4326 : : }
4327 : 1146275 : default:;
4328 : : }
4329 : 1146275 : switch (TREE_CODE (_p1))
4330 : : {
4331 : 0 : case NEGATE_EXPR:
4332 : 0 : {
4333 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
4334 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
4335 : : {
4336 : 0 : {
4337 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4338 : 0 : tree res = generic_simplify_288 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
4339 : 0 : if (res) return res;
4340 : : }
4341 : : }
4342 : : break;
4343 : : }
4344 : 1146275 : default:;
4345 : : }
4346 : 1146275 : switch (TREE_CODE (_p0))
4347 : : {
4348 : 289 : case NEGATE_EXPR:
4349 : 289 : {
4350 : 289 : tree _q20 = TREE_OPERAND (_p0, 0);
4351 : 289 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
4352 : : {
4353 : 0 : {
4354 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
4355 : 0 : tree res = generic_simplify_288 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
4356 : 0 : if (res) return res;
4357 : : }
4358 : : }
4359 : : break;
4360 : : }
4361 : 1146275 : default:;
4362 : : }
4363 : 1146275 : {
4364 : 1146275 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
4365 : 1146275 : tree res = generic_simplify_293 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR, TRUNC_DIV_EXPR);
4366 : 1146275 : if (res) return res;
4367 : : }
4368 : 3776 : switch (TREE_CODE (_p0))
4369 : : {
4370 : 388 : CASE_CONVERT:
4371 : 388 : {
4372 : 388 : tree _q20 = TREE_OPERAND (_p0, 0);
4373 : 388 : switch (TREE_CODE (_q20))
4374 : : {
4375 : 0 : case BIT_AND_EXPR:
4376 : 0 : {
4377 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
4378 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
4379 : 0 : switch (TREE_CODE (_q31))
4380 : : {
4381 : 0 : case INTEGER_CST:
4382 : 0 : {
4383 : 0 : switch (TREE_CODE (_p1))
4384 : : {
4385 : 0 : case INTEGER_CST:
4386 : 0 : {
4387 : 0 : {
4388 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
4389 : 0 : tree res = generic_simplify_290 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
4390 : 0 : if (res) return res;
4391 : : }
4392 : 0 : break;
4393 : : }
4394 : : default:;
4395 : : }
4396 : : break;
4397 : : }
4398 : : default:;
4399 : : }
4400 : : break;
4401 : : }
4402 : : default:;
4403 : : }
4404 : : break;
4405 : : }
4406 : 0 : case BIT_AND_EXPR:
4407 : 0 : {
4408 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
4409 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
4410 : 0 : switch (TREE_CODE (_q21))
4411 : : {
4412 : 0 : case INTEGER_CST:
4413 : 0 : {
4414 : 0 : switch (TREE_CODE (_p1))
4415 : : {
4416 : 0 : case INTEGER_CST:
4417 : 0 : {
4418 : 0 : {
4419 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
4420 : 0 : tree res = generic_simplify_290 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
4421 : 0 : if (res) return res;
4422 : : }
4423 : 0 : break;
4424 : : }
4425 : : default:;
4426 : : }
4427 : : break;
4428 : : }
4429 : : default:;
4430 : : }
4431 : : break;
4432 : : }
4433 : 0 : case MULT_EXPR:
4434 : 0 : {
4435 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
4436 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
4437 : 0 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
4438 : : {
4439 : 0 : {
4440 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4441 : 0 : tree res = generic_simplify_291 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
4442 : 0 : if (res) return res;
4443 : : }
4444 : : }
4445 : 0 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
4446 : : {
4447 : 0 : {
4448 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
4449 : 0 : tree res = generic_simplify_291 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
4450 : 0 : if (res) return res;
4451 : : }
4452 : : }
4453 : 0 : switch (TREE_CODE (_q21))
4454 : : {
4455 : 0 : case INTEGER_CST:
4456 : 0 : {
4457 : 0 : switch (TREE_CODE (_p1))
4458 : : {
4459 : 0 : case MULT_EXPR:
4460 : 0 : {
4461 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
4462 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
4463 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
4464 : : {
4465 : 0 : switch (TREE_CODE (_q51))
4466 : : {
4467 : 0 : case INTEGER_CST:
4468 : 0 : {
4469 : 0 : {
4470 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
4471 : 0 : tree res = generic_simplify_292 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR);
4472 : 0 : if (res) return res;
4473 : : }
4474 : 0 : break;
4475 : : }
4476 : : default:;
4477 : : }
4478 : : }
4479 : : break;
4480 : : }
4481 : : default:;
4482 : : }
4483 : : break;
4484 : : }
4485 : : default:;
4486 : : }
4487 : : break;
4488 : : }
4489 : 0 : case VEC_COND_EXPR:
4490 : 0 : {
4491 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
4492 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
4493 : 0 : tree _q22 = TREE_OPERAND (_p0, 2);
4494 : 0 : switch (TREE_CODE (_p1))
4495 : : {
4496 : 0 : case VEC_COND_EXPR:
4497 : 0 : {
4498 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
4499 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
4500 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
4501 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
4502 : : {
4503 : 0 : {
4504 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
4505 : 0 : if (TREE_CODE_CLASS (FLOOR_DIV_EXPR) != tcc_comparison
4506 : : || types_match (type, TREE_TYPE (captures[2]))
4507 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
4508 : : || (optimize_vectors_before_lowering_p ()
4509 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
4510 : : TREE_TYPE (captures[1]), ERROR_MARK))
4511 : : )
4512 : : {
4513 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1430;
4514 : 0 : {
4515 : 0 : tree res_op0;
4516 : 0 : res_op0 = captures[1];
4517 : 0 : tree res_op1;
4518 : 0 : {
4519 : 0 : tree _o1[2], _r1;
4520 : 0 : _o1[0] = captures[2];
4521 : 0 : _o1[1] = captures[5];
4522 : 0 : _r1 = fold_build2_loc (loc, FLOOR_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4523 : 0 : if (EXPR_P (_r1))
4524 : 0 : goto next_after_fail1430;
4525 : 0 : res_op1 = _r1;
4526 : : }
4527 : 0 : tree res_op2;
4528 : 0 : {
4529 : 0 : tree _o1[2], _r1;
4530 : 0 : _o1[0] = captures[3];
4531 : 0 : _o1[1] = captures[6];
4532 : 0 : _r1 = fold_build2_loc (loc, FLOOR_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4533 : 0 : if (EXPR_P (_r1))
4534 : 0 : goto next_after_fail1430;
4535 : 0 : res_op2 = _r1;
4536 : : }
4537 : 0 : tree _r;
4538 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
4539 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 793, __FILE__, __LINE__, true);
4540 : 0 : return _r;
4541 : : }
4542 : 0 : next_after_fail1430:;
4543 : : }
4544 : : }
4545 : : }
4546 : : break;
4547 : : }
4548 : 0 : default:;
4549 : : }
4550 : 0 : {
4551 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
4552 : 0 : if (TREE_CODE_CLASS (FLOOR_DIV_EXPR) != tcc_comparison
4553 : : || types_match (type, TREE_TYPE (captures[2]))
4554 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
4555 : : || (optimize_vectors_before_lowering_p ()
4556 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
4557 : : TREE_TYPE (captures[1]), ERROR_MARK))
4558 : : )
4559 : : {
4560 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1431;
4561 : 0 : {
4562 : 0 : if (! tree_invariant_p (captures[4])) goto next_after_fail1431;
4563 : 0 : tree res_op0;
4564 : 0 : res_op0 = captures[1];
4565 : 0 : tree res_op1;
4566 : 0 : {
4567 : 0 : tree _o1[2], _r1;
4568 : 0 : _o1[0] = captures[2];
4569 : 0 : _o1[1] = unshare_expr (captures[4]);
4570 : 0 : _r1 = fold_build2_loc (loc, FLOOR_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4571 : 0 : if (EXPR_P (_r1))
4572 : 0 : goto next_after_fail1431;
4573 : 0 : res_op1 = _r1;
4574 : : }
4575 : 0 : tree res_op2;
4576 : 0 : {
4577 : 0 : tree _o1[2], _r1;
4578 : 0 : _o1[0] = captures[3];
4579 : 0 : _o1[1] = captures[4];
4580 : 0 : _r1 = fold_build2_loc (loc, FLOOR_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4581 : 0 : if (EXPR_P (_r1))
4582 : 0 : goto next_after_fail1431;
4583 : 0 : res_op2 = _r1;
4584 : : }
4585 : 0 : tree _r;
4586 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
4587 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 794, __FILE__, __LINE__, true);
4588 : 0 : return _r;
4589 : : }
4590 : 0 : next_after_fail1431:;
4591 : : }
4592 : : }
4593 : 0 : break;
4594 : : }
4595 : 3776 : default:;
4596 : : }
4597 : 3776 : switch (TREE_CODE (_p1))
4598 : : {
4599 : 0 : case VEC_COND_EXPR:
4600 : 0 : {
4601 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
4602 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
4603 : 0 : tree _q32 = TREE_OPERAND (_p1, 2);
4604 : 0 : {
4605 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
4606 : 0 : if (TREE_CODE_CLASS (FLOOR_DIV_EXPR) != tcc_comparison
4607 : : || types_match (type, TREE_TYPE (captures[3]))
4608 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]), ERROR_MARK)
4609 : : || (optimize_vectors_before_lowering_p ()
4610 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]),
4611 : : TREE_TYPE (captures[2]), ERROR_MARK))
4612 : : )
4613 : : {
4614 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1432;
4615 : 0 : {
4616 : 0 : if (! tree_invariant_p (captures[0])) goto next_after_fail1432;
4617 : 0 : tree res_op0;
4618 : 0 : res_op0 = captures[2];
4619 : 0 : tree res_op1;
4620 : 0 : {
4621 : 0 : tree _o1[2], _r1;
4622 : 0 : _o1[0] = unshare_expr (captures[0]);
4623 : 0 : _o1[1] = captures[3];
4624 : 0 : _r1 = fold_build2_loc (loc, FLOOR_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4625 : 0 : if (EXPR_P (_r1))
4626 : 0 : goto next_after_fail1432;
4627 : 0 : res_op1 = _r1;
4628 : : }
4629 : 0 : tree res_op2;
4630 : 0 : {
4631 : 0 : tree _o1[2], _r1;
4632 : 0 : _o1[0] = captures[0];
4633 : 0 : _o1[1] = captures[4];
4634 : 0 : _r1 = fold_build2_loc (loc, FLOOR_DIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4635 : 0 : if (EXPR_P (_r1))
4636 : 0 : goto next_after_fail1432;
4637 : 0 : res_op2 = _r1;
4638 : : }
4639 : 0 : tree _r;
4640 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
4641 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 795, __FILE__, __LINE__, true);
4642 : 0 : return _r;
4643 : : }
4644 : 0 : next_after_fail1432:;
4645 : : }
4646 : : }
4647 : 0 : break;
4648 : : }
4649 : : default:;
4650 : : }
4651 : : return NULL_TREE;
4652 : : }
4653 : :
4654 : : tree
4655 : 694255 : generic_simplify_FLOOR_MOD_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
4656 : : {
4657 : 694255 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4658 : 694255 : {
4659 : 694255 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
4660 : 694255 : tree res = generic_simplify_293 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR, TRUNC_MOD_EXPR);
4661 : 694255 : if (res) return res;
4662 : : }
4663 : 3361 : if (integer_zerop (_p0))
4664 : : {
4665 : 0 : {
4666 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
4667 : 0 : tree res = generic_simplify_294 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
4668 : 0 : if (res) return res;
4669 : : }
4670 : : }
4671 : 3361 : if (integer_onep (_p1))
4672 : : {
4673 : 0 : {
4674 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4675 : 0 : tree res = generic_simplify_295 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
4676 : 0 : if (res) return res;
4677 : : }
4678 : : }
4679 : 3361 : if (integer_minus_onep (_p1))
4680 : : {
4681 : 0 : {
4682 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
4683 : 0 : tree res = generic_simplify_296 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
4684 : 0 : if (res) return res;
4685 : : }
4686 : : }
4687 : 3361 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
4688 : : {
4689 : 0 : {
4690 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4691 : 0 : tree res = generic_simplify_297 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
4692 : 0 : if (res) return res;
4693 : : }
4694 : : }
4695 : 3361 : switch (TREE_CODE (_p0))
4696 : : {
4697 : 0 : case FLOOR_MOD_EXPR:
4698 : 0 : {
4699 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
4700 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
4701 : 0 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
4702 : : {
4703 : 0 : {
4704 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
4705 : 0 : tree res = generic_simplify_298 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
4706 : 0 : if (res) return res;
4707 : : }
4708 : : }
4709 : : break;
4710 : : }
4711 : 24 : case MULT_EXPR:
4712 : 24 : {
4713 : 24 : tree _q20 = TREE_OPERAND (_p0, 0);
4714 : 24 : tree _q21 = TREE_OPERAND (_p0, 1);
4715 : 24 : switch (TREE_CODE (_q21))
4716 : : {
4717 : 24 : case INTEGER_CST:
4718 : 24 : {
4719 : 24 : switch (TREE_CODE (_p1))
4720 : : {
4721 : 24 : case INTEGER_CST:
4722 : 24 : {
4723 : 24 : {
4724 : 24 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
4725 : 24 : tree res = generic_simplify_299 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
4726 : 24 : if (res) return res;
4727 : : }
4728 : 24 : break;
4729 : : }
4730 : : default:;
4731 : : }
4732 : : break;
4733 : : }
4734 : : default:;
4735 : : }
4736 : : break;
4737 : : }
4738 : 3361 : default:;
4739 : : }
4740 : 3361 : switch (TREE_CODE (_p1))
4741 : : {
4742 : 1 : CASE_CONVERT:
4743 : 1 : {
4744 : 1 : tree _q30 = TREE_OPERAND (_p1, 0);
4745 : 1 : {
4746 : 1 : tree _q30_pops[1];
4747 : 1 : if (tree_power_of_two_cand (_q30, _q30_pops))
4748 : : {
4749 : 0 : tree _q40 = _q30_pops[0];
4750 : 0 : {
4751 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q40 };
4752 : 0 : tree res = generic_simplify_300 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
4753 : 0 : if (res) return res;
4754 : : }
4755 : : }
4756 : : }
4757 : 1 : break;
4758 : : }
4759 : 3361 : default:;
4760 : : }
4761 : 3361 : {
4762 : 3361 : tree _p1_pops[1];
4763 : 3361 : if (tree_power_of_two_cand (_p1, _p1_pops))
4764 : : {
4765 : 1836 : tree _q30 = _p1_pops[0];
4766 : 1836 : {
4767 : 1836 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q30 };
4768 : 1836 : tree res = generic_simplify_300 (loc, type, _p0, _p1, captures, FLOOR_MOD_EXPR);
4769 : 1836 : if (res) return res;
4770 : : }
4771 : : }
4772 : : }
4773 : 3321 : switch (TREE_CODE (_p0))
4774 : : {
4775 : 0 : case VEC_COND_EXPR:
4776 : 0 : {
4777 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
4778 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
4779 : 0 : tree _q22 = TREE_OPERAND (_p0, 2);
4780 : 0 : switch (TREE_CODE (_p1))
4781 : : {
4782 : 0 : case VEC_COND_EXPR:
4783 : 0 : {
4784 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
4785 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
4786 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
4787 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
4788 : : {
4789 : 0 : {
4790 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
4791 : 0 : if (TREE_CODE_CLASS (FLOOR_MOD_EXPR) != tcc_comparison
4792 : : || types_match (type, TREE_TYPE (captures[2]))
4793 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
4794 : : || (optimize_vectors_before_lowering_p ()
4795 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
4796 : : TREE_TYPE (captures[1]), ERROR_MARK))
4797 : : )
4798 : : {
4799 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1436;
4800 : 0 : {
4801 : 0 : tree res_op0;
4802 : 0 : res_op0 = captures[1];
4803 : 0 : tree res_op1;
4804 : 0 : {
4805 : 0 : tree _o1[2], _r1;
4806 : 0 : _o1[0] = captures[2];
4807 : 0 : _o1[1] = captures[5];
4808 : 0 : _r1 = fold_build2_loc (loc, FLOOR_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4809 : 0 : if (EXPR_P (_r1))
4810 : 0 : goto next_after_fail1436;
4811 : 0 : res_op1 = _r1;
4812 : : }
4813 : 0 : tree res_op2;
4814 : 0 : {
4815 : 0 : tree _o1[2], _r1;
4816 : 0 : _o1[0] = captures[3];
4817 : 0 : _o1[1] = captures[6];
4818 : 0 : _r1 = fold_build2_loc (loc, FLOOR_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4819 : 0 : if (EXPR_P (_r1))
4820 : 0 : goto next_after_fail1436;
4821 : 0 : res_op2 = _r1;
4822 : : }
4823 : 0 : tree _r;
4824 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
4825 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 793, __FILE__, __LINE__, true);
4826 : 0 : return _r;
4827 : : }
4828 : 0 : next_after_fail1436:;
4829 : : }
4830 : : }
4831 : : }
4832 : : break;
4833 : : }
4834 : 0 : default:;
4835 : : }
4836 : 0 : {
4837 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
4838 : 0 : if (TREE_CODE_CLASS (FLOOR_MOD_EXPR) != tcc_comparison
4839 : : || types_match (type, TREE_TYPE (captures[2]))
4840 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
4841 : : || (optimize_vectors_before_lowering_p ()
4842 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
4843 : : TREE_TYPE (captures[1]), ERROR_MARK))
4844 : : )
4845 : : {
4846 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1437;
4847 : 0 : {
4848 : 0 : if (! tree_invariant_p (captures[4])) goto next_after_fail1437;
4849 : 0 : tree res_op0;
4850 : 0 : res_op0 = captures[1];
4851 : 0 : tree res_op1;
4852 : 0 : {
4853 : 0 : tree _o1[2], _r1;
4854 : 0 : _o1[0] = captures[2];
4855 : 0 : _o1[1] = unshare_expr (captures[4]);
4856 : 0 : _r1 = fold_build2_loc (loc, FLOOR_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4857 : 0 : if (EXPR_P (_r1))
4858 : 0 : goto next_after_fail1437;
4859 : 0 : res_op1 = _r1;
4860 : : }
4861 : 0 : tree res_op2;
4862 : 0 : {
4863 : 0 : tree _o1[2], _r1;
4864 : 0 : _o1[0] = captures[3];
4865 : 0 : _o1[1] = captures[4];
4866 : 0 : _r1 = fold_build2_loc (loc, FLOOR_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4867 : 0 : if (EXPR_P (_r1))
4868 : 0 : goto next_after_fail1437;
4869 : 0 : res_op2 = _r1;
4870 : : }
4871 : 0 : tree _r;
4872 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
4873 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 794, __FILE__, __LINE__, true);
4874 : 0 : return _r;
4875 : : }
4876 : 0 : next_after_fail1437:;
4877 : : }
4878 : : }
4879 : 0 : break;
4880 : : }
4881 : 3321 : default:;
4882 : : }
4883 : 3321 : switch (TREE_CODE (_p1))
4884 : : {
4885 : 0 : case VEC_COND_EXPR:
4886 : 0 : {
4887 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
4888 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
4889 : 0 : tree _q32 = TREE_OPERAND (_p1, 2);
4890 : 0 : {
4891 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
4892 : 0 : if (TREE_CODE_CLASS (FLOOR_MOD_EXPR) != tcc_comparison
4893 : : || types_match (type, TREE_TYPE (captures[3]))
4894 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]), ERROR_MARK)
4895 : : || (optimize_vectors_before_lowering_p ()
4896 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]),
4897 : : TREE_TYPE (captures[2]), ERROR_MARK))
4898 : : )
4899 : : {
4900 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1438;
4901 : 0 : {
4902 : 0 : if (! tree_invariant_p (captures[0])) goto next_after_fail1438;
4903 : 0 : tree res_op0;
4904 : 0 : res_op0 = captures[2];
4905 : 0 : tree res_op1;
4906 : 0 : {
4907 : 0 : tree _o1[2], _r1;
4908 : 0 : _o1[0] = unshare_expr (captures[0]);
4909 : 0 : _o1[1] = captures[3];
4910 : 0 : _r1 = fold_build2_loc (loc, FLOOR_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4911 : 0 : if (EXPR_P (_r1))
4912 : 0 : goto next_after_fail1438;
4913 : 0 : res_op1 = _r1;
4914 : : }
4915 : 0 : tree res_op2;
4916 : 0 : {
4917 : 0 : tree _o1[2], _r1;
4918 : 0 : _o1[0] = captures[0];
4919 : 0 : _o1[1] = captures[4];
4920 : 0 : _r1 = fold_build2_loc (loc, FLOOR_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4921 : 0 : if (EXPR_P (_r1))
4922 : 0 : goto next_after_fail1438;
4923 : 0 : res_op2 = _r1;
4924 : : }
4925 : 0 : tree _r;
4926 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
4927 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 795, __FILE__, __LINE__, true);
4928 : 0 : return _r;
4929 : : }
4930 : 0 : next_after_fail1438:;
4931 : : }
4932 : : }
4933 : 0 : break;
4934 : : }
4935 : : default:;
4936 : : }
4937 : : return NULL_TREE;
4938 : : }
4939 : :
4940 : : tree
4941 : 7969711 : generic_simplify_LE_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
4942 : : {
4943 : 7969711 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4944 : 7969711 : switch (TREE_CODE (_p0))
4945 : : {
4946 : 2354 : case RDIV_EXPR:
4947 : 2354 : {
4948 : 2354 : tree _q20 = TREE_OPERAND (_p0, 0);
4949 : 2354 : tree _q21 = TREE_OPERAND (_p0, 1);
4950 : 2354 : switch (TREE_CODE (_q20))
4951 : : {
4952 : 556 : case REAL_CST:
4953 : 556 : {
4954 : 556 : if (real_zerop (_p1))
4955 : : {
4956 : 2 : {
4957 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
4958 : 2 : tree res = generic_simplify_311 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR);
4959 : 2 : if (res) return res;
4960 : : }
4961 : : }
4962 : : break;
4963 : : }
4964 : : default:;
4965 : : }
4966 : : break;
4967 : : }
4968 : 7969709 : default:;
4969 : : }
4970 : 7969709 : switch (TREE_CODE (_p1))
4971 : : {
4972 : 6 : case TRUNC_MOD_EXPR:
4973 : 6 : {
4974 : 6 : tree _q30 = TREE_OPERAND (_p1, 0);
4975 : 6 : tree _q31 = TREE_OPERAND (_p1, 1);
4976 : 6 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
4977 : : {
4978 : 0 : {
4979 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p0 };
4980 : 0 : tree res = generic_simplify_312 (loc, type, _p0, _p1, captures, GE_EXPR);
4981 : 0 : if (res) return res;
4982 : : }
4983 : : }
4984 : : break;
4985 : : }
4986 : 7969709 : default:;
4987 : : }
4988 : 7969709 : switch (TREE_CODE (_p0))
4989 : : {
4990 : 47238 : case MULT_EXPR:
4991 : 47238 : {
4992 : 47238 : tree _q20 = TREE_OPERAND (_p0, 0);
4993 : 47238 : tree _q21 = TREE_OPERAND (_p0, 1);
4994 : 47238 : switch (TREE_CODE (_p1))
4995 : : {
4996 : 2539 : case MULT_EXPR:
4997 : 2539 : {
4998 : 2539 : tree _q50 = TREE_OPERAND (_p1, 0);
4999 : 2539 : tree _q51 = TREE_OPERAND (_p1, 1);
5000 : 2539 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5001 : : {
5002 : 1715 : {
5003 : 1715 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
5004 : 1715 : tree res = generic_simplify_313 (loc, type, _p0, _p1, captures, LE_EXPR);
5005 : 1715 : if (res) return res;
5006 : : }
5007 : : }
5008 : 2052 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
5009 : : {
5010 : 1 : {
5011 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
5012 : 1 : tree res = generic_simplify_313 (loc, type, _p0, _p1, captures, LE_EXPR);
5013 : 1 : if (res) return res;
5014 : : }
5015 : : }
5016 : 2052 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
5017 : : {
5018 : 4 : {
5019 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
5020 : 4 : tree res = generic_simplify_313 (loc, type, _p0, _p1, captures, LE_EXPR);
5021 : 4 : if (res) return res;
5022 : : }
5023 : : }
5024 : 2052 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5025 : : {
5026 : 299 : {
5027 : 299 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
5028 : 299 : tree res = generic_simplify_313 (loc, type, _p0, _p1, captures, LE_EXPR);
5029 : 299 : if (res) return res;
5030 : : }
5031 : : }
5032 : : break;
5033 : : }
5034 : : default:;
5035 : : }
5036 : : break;
5037 : : }
5038 : 1659228 : case PLUS_EXPR:
5039 : 1659228 : {
5040 : 1659228 : tree _q20 = TREE_OPERAND (_p0, 0);
5041 : 1659228 : tree _q21 = TREE_OPERAND (_p0, 1);
5042 : 1659228 : if (integer_minus_onep (_q21))
5043 : : {
5044 : 411957 : switch (TREE_CODE (_p1))
5045 : : {
5046 : 248755 : case INTEGER_CST:
5047 : 248755 : {
5048 : 248755 : {
5049 : 248755 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
5050 : 248755 : tree res = generic_simplify_338 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR);
5051 : 248755 : if (res) return res;
5052 : : }
5053 : 248753 : break;
5054 : : }
5055 : : default:;
5056 : : }
5057 : : }
5058 : 1659226 : switch (TREE_CODE (_p1))
5059 : : {
5060 : 77829 : case PLUS_EXPR:
5061 : 77829 : {
5062 : 77829 : tree _q50 = TREE_OPERAND (_p1, 0);
5063 : 77829 : tree _q51 = TREE_OPERAND (_p1, 1);
5064 : 77829 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5065 : : {
5066 : 5405 : {
5067 : 5405 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
5068 : 5405 : tree res = generic_simplify_314 (loc, type, _p0, _p1, captures, LE_EXPR);
5069 : 5405 : if (res) return res;
5070 : : }
5071 : : }
5072 : 74338 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
5073 : : {
5074 : 18 : {
5075 : 18 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
5076 : 18 : tree res = generic_simplify_314 (loc, type, _p0, _p1, captures, LE_EXPR);
5077 : 18 : if (res) return res;
5078 : : }
5079 : : }
5080 : 74338 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
5081 : : {
5082 : 147 : {
5083 : 147 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
5084 : 147 : tree res = generic_simplify_314 (loc, type, _p0, _p1, captures, LE_EXPR);
5085 : 147 : if (res) return res;
5086 : : }
5087 : : }
5088 : 74330 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5089 : : {
5090 : 4117 : {
5091 : 4117 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
5092 : 4117 : tree res = generic_simplify_314 (loc, type, _p0, _p1, captures, LE_EXPR);
5093 : 4117 : if (res) return res;
5094 : : }
5095 : : }
5096 : : break;
5097 : : }
5098 : 1655152 : default:;
5099 : : }
5100 : 1655152 : switch (TREE_CODE (_q21))
5101 : : {
5102 : 1567002 : case INTEGER_CST:
5103 : 1567002 : {
5104 : 1567002 : switch (TREE_CODE (_p1))
5105 : : {
5106 : 71869 : case PLUS_EXPR:
5107 : 71869 : {
5108 : 71869 : tree _q50 = TREE_OPERAND (_p1, 0);
5109 : 71869 : tree _q51 = TREE_OPERAND (_p1, 1);
5110 : 71869 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5111 : : {
5112 : 1862 : {
5113 : 1862 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
5114 : 1862 : tree res = generic_simplify_315 (loc, type, _p0, _p1, captures, LE_EXPR);
5115 : 1862 : if (res) return res;
5116 : : }
5117 : : }
5118 : : break;
5119 : : }
5120 : : default:;
5121 : : }
5122 : : break;
5123 : : }
5124 : 1655152 : default:;
5125 : : }
5126 : 1655152 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
5127 : : {
5128 : 68343 : {
5129 : 68343 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
5130 : 68343 : tree res = generic_simplify_316 (loc, type, _p0, _p1, captures, LE_EXPR);
5131 : 68343 : if (res) return res;
5132 : : }
5133 : : }
5134 : 1616426 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
5135 : : {
5136 : 2729 : {
5137 : 2729 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
5138 : 2729 : tree res = generic_simplify_316 (loc, type, _p0, _p1, captures, LE_EXPR);
5139 : 2729 : if (res) return res;
5140 : : }
5141 : : }
5142 : : break;
5143 : : }
5144 : 1175603 : CASE_CONVERT:
5145 : 1175603 : {
5146 : 1175603 : tree _q20 = TREE_OPERAND (_p0, 0);
5147 : 1175603 : switch (TREE_CODE (_q20))
5148 : : {
5149 : 0 : case EXACT_DIV_EXPR:
5150 : 0 : {
5151 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
5152 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
5153 : 0 : switch (TREE_CODE (_q31))
5154 : : {
5155 : 0 : case INTEGER_CST:
5156 : 0 : {
5157 : 0 : switch (TREE_CODE (_p1))
5158 : : {
5159 : 0 : CASE_CONVERT:
5160 : 0 : {
5161 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
5162 : 0 : switch (TREE_CODE (_q60))
5163 : : {
5164 : 0 : case EXACT_DIV_EXPR:
5165 : 0 : {
5166 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
5167 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
5168 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
5169 : : {
5170 : 0 : {
5171 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q31, _q70 };
5172 : 0 : tree res = generic_simplify_188 (loc, type, _p0, _p1, captures, LE_EXPR);
5173 : 0 : if (res) return res;
5174 : : }
5175 : : }
5176 : : break;
5177 : : }
5178 : : default:;
5179 : : }
5180 : : break;
5181 : : }
5182 : : default:;
5183 : : }
5184 : : break;
5185 : : }
5186 : : default:;
5187 : : }
5188 : : break;
5189 : : }
5190 : : default:;
5191 : : }
5192 : : break;
5193 : : }
5194 : 307 : case EXACT_DIV_EXPR:
5195 : 307 : {
5196 : 307 : tree _q20 = TREE_OPERAND (_p0, 0);
5197 : 307 : tree _q21 = TREE_OPERAND (_p0, 1);
5198 : 307 : switch (TREE_CODE (_q21))
5199 : : {
5200 : 307 : case INTEGER_CST:
5201 : 307 : {
5202 : 307 : switch (TREE_CODE (_p1))
5203 : : {
5204 : 0 : case EXACT_DIV_EXPR:
5205 : 0 : {
5206 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
5207 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
5208 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5209 : : {
5210 : 0 : {
5211 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50 };
5212 : 0 : tree res = generic_simplify_188 (loc, type, _p0, _p1, captures, LE_EXPR);
5213 : 0 : if (res) return res;
5214 : : }
5215 : : }
5216 : : break;
5217 : : }
5218 : : default:;
5219 : : }
5220 : : break;
5221 : : }
5222 : : default:;
5223 : : }
5224 : : break;
5225 : : }
5226 : 9078 : case TRUNC_DIV_EXPR:
5227 : 9078 : {
5228 : 9078 : tree _q20 = TREE_OPERAND (_p0, 0);
5229 : 9078 : tree _q21 = TREE_OPERAND (_p0, 1);
5230 : 9078 : switch (TREE_CODE (_q21))
5231 : : {
5232 : 1743 : case INTEGER_CST:
5233 : 1743 : {
5234 : 1743 : switch (TREE_CODE (_p1))
5235 : : {
5236 : 824 : case INTEGER_CST:
5237 : 824 : {
5238 : 824 : {
5239 : 824 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
5240 : 824 : tree res = generic_simplify_191 (loc, type, _p0, _p1, captures, LE_EXPR);
5241 : 824 : if (res) return res;
5242 : : }
5243 : 397 : break;
5244 : : }
5245 : : default:;
5246 : : }
5247 : : break;
5248 : : }
5249 : : default:;
5250 : : }
5251 : : break;
5252 : : }
5253 : 55003 : case MINUS_EXPR:
5254 : 55003 : {
5255 : 55003 : tree _q20 = TREE_OPERAND (_p0, 0);
5256 : 55003 : tree _q21 = TREE_OPERAND (_p0, 1);
5257 : 55003 : switch (TREE_CODE (_p1))
5258 : : {
5259 : 218 : case MINUS_EXPR:
5260 : 218 : {
5261 : 218 : tree _q50 = TREE_OPERAND (_p1, 0);
5262 : 218 : tree _q51 = TREE_OPERAND (_p1, 1);
5263 : 218 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5264 : : {
5265 : 60 : {
5266 : 60 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
5267 : 60 : tree res = generic_simplify_317 (loc, type, _p0, _p1, captures, LE_EXPR);
5268 : 60 : if (res) return res;
5269 : : }
5270 : : }
5271 : 218 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5272 : : {
5273 : 26 : {
5274 : 26 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
5275 : 26 : tree res = generic_simplify_318 (loc, type, _p0, _p1, captures, LE_EXPR);
5276 : 26 : if (res) return res;
5277 : : }
5278 : : }
5279 : : break;
5280 : : }
5281 : : default:;
5282 : : }
5283 : : break;
5284 : : }
5285 : 3849 : case POINTER_DIFF_EXPR:
5286 : 3849 : {
5287 : 3849 : tree _q20 = TREE_OPERAND (_p0, 0);
5288 : 3849 : tree _q21 = TREE_OPERAND (_p0, 1);
5289 : 3849 : switch (TREE_CODE (_p1))
5290 : : {
5291 : 7 : case POINTER_DIFF_EXPR:
5292 : 7 : {
5293 : 7 : tree _q50 = TREE_OPERAND (_p1, 0);
5294 : 7 : tree _q51 = TREE_OPERAND (_p1, 1);
5295 : 7 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5296 : : {
5297 : 0 : {
5298 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50 };
5299 : 0 : tree res = generic_simplify_195 (loc, type, _p0, _p1, captures, LE_EXPR);
5300 : 0 : if (res) return res;
5301 : : }
5302 : : }
5303 : 7 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5304 : : {
5305 : 0 : {
5306 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q51 };
5307 : 0 : tree res = generic_simplify_196 (loc, type, _p0, _p1, captures, LE_EXPR);
5308 : 0 : if (res) return res;
5309 : : }
5310 : : }
5311 : : break;
5312 : : }
5313 : : default:;
5314 : : }
5315 : : break;
5316 : : }
5317 : 7925686 : default:;
5318 : : }
5319 : 7925686 : switch (TREE_CODE (_p1))
5320 : : {
5321 : 95984 : case PLUS_EXPR:
5322 : 95984 : {
5323 : 95984 : tree _q30 = TREE_OPERAND (_p1, 0);
5324 : 95984 : tree _q31 = TREE_OPERAND (_p1, 1);
5325 : 95984 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
5326 : : {
5327 : 0 : {
5328 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q30, _p0 };
5329 : 0 : tree res = generic_simplify_316 (loc, type, _p0, _p1, captures, GE_EXPR);
5330 : 0 : if (res) return res;
5331 : : }
5332 : : }
5333 : 95984 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
5334 : : {
5335 : 61 : {
5336 : 61 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q31, _p0 };
5337 : 61 : tree res = generic_simplify_316 (loc, type, _p0, _p1, captures, GE_EXPR);
5338 : 61 : if (res) return res;
5339 : : }
5340 : : }
5341 : : break;
5342 : : }
5343 : 867 : case MINUS_EXPR:
5344 : 867 : {
5345 : 867 : tree _q30 = TREE_OPERAND (_p1, 0);
5346 : 867 : tree _q31 = TREE_OPERAND (_p1, 1);
5347 : 867 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
5348 : : {
5349 : 0 : {
5350 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q31 };
5351 : 0 : tree res = generic_simplify_194 (loc, type, _p0, _p1, captures, LE_EXPR);
5352 : 0 : if (res) return res;
5353 : : }
5354 : : }
5355 : : break;
5356 : : }
5357 : 7925659 : default:;
5358 : : }
5359 : 7925659 : switch (TREE_CODE (_p0))
5360 : : {
5361 : 55003 : case MINUS_EXPR:
5362 : 55003 : {
5363 : 55003 : tree _q20 = TREE_OPERAND (_p0, 0);
5364 : 55003 : tree _q21 = TREE_OPERAND (_p0, 1);
5365 : 55003 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
5366 : : {
5367 : 2526 : {
5368 : 2526 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p0, _q21 };
5369 : 2526 : tree res = generic_simplify_194 (loc, type, _p0, _p1, captures, GE_EXPR);
5370 : 2526 : if (res) return res;
5371 : : }
5372 : : }
5373 : : break;
5374 : : }
5375 : 4108 : case BIT_AND_EXPR:
5376 : 4108 : {
5377 : 4108 : tree _q20 = TREE_OPERAND (_p0, 0);
5378 : 4108 : tree _q21 = TREE_OPERAND (_p0, 1);
5379 : 4108 : if (tree_expr_nonnegative_p (_q20))
5380 : : {
5381 : 3448 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
5382 : : {
5383 : 0 : {
5384 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5385 : 0 : tree res = generic_simplify_319 (loc, type, _p0, _p1, captures, LE_EXPR, BIT_AND_EXPR);
5386 : 0 : if (res) return res;
5387 : : }
5388 : : }
5389 : : }
5390 : 4108 : if (tree_expr_nonnegative_p (_q21))
5391 : : {
5392 : 3800 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
5393 : : {
5394 : 0 : {
5395 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
5396 : 0 : tree res = generic_simplify_319 (loc, type, _p0, _p1, captures, LE_EXPR, BIT_AND_EXPR);
5397 : 0 : if (res) return res;
5398 : : }
5399 : : }
5400 : : }
5401 : : break;
5402 : : }
5403 : 7925651 : default:;
5404 : : }
5405 : 7925651 : switch (TREE_CODE (_p1))
5406 : : {
5407 : 40 : case BIT_IOR_EXPR:
5408 : 40 : {
5409 : 40 : tree _q30 = TREE_OPERAND (_p1, 0);
5410 : 40 : tree _q31 = TREE_OPERAND (_p1, 1);
5411 : 40 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
5412 : : {
5413 : 0 : if (tree_expr_nonnegative_p (_q30))
5414 : : {
5415 : 0 : {
5416 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
5417 : 0 : tree res = generic_simplify_319 (loc, type, _p0, _p1, captures, GE_EXPR, BIT_IOR_EXPR);
5418 : 0 : if (res) return res;
5419 : : }
5420 : : }
5421 : : }
5422 : 40 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
5423 : : {
5424 : 0 : if (tree_expr_nonnegative_p (_q31))
5425 : : {
5426 : 0 : {
5427 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
5428 : 0 : tree res = generic_simplify_319 (loc, type, _p0, _p1, captures, GE_EXPR, BIT_IOR_EXPR);
5429 : 0 : if (res) return res;
5430 : : }
5431 : : }
5432 : : }
5433 : : break;
5434 : : }
5435 : 7925651 : default:;
5436 : : }
5437 : 7925651 : switch (TREE_CODE (_p0))
5438 : : {
5439 : 3983 : case MAX_EXPR:
5440 : 3983 : {
5441 : 3983 : tree _q20 = TREE_OPERAND (_p0, 0);
5442 : 3983 : tree _q21 = TREE_OPERAND (_p0, 1);
5443 : 3983 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
5444 : : {
5445 : 0 : {
5446 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5447 : 0 : tree res = generic_simplify_204 (loc, type, _p0, _p1, captures, MAX_EXPR, LE_EXPR, GE_EXPR);
5448 : 0 : if (res) return res;
5449 : : }
5450 : : }
5451 : 3983 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
5452 : : {
5453 : 1 : {
5454 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
5455 : 1 : tree res = generic_simplify_204 (loc, type, _p0, _p1, captures, MAX_EXPR, LE_EXPR, GE_EXPR);
5456 : 1 : if (res) return res;
5457 : : }
5458 : : }
5459 : 3982 : switch (TREE_CODE (_q21))
5460 : : {
5461 : 3777 : case INTEGER_CST:
5462 : 3777 : {
5463 : 3777 : switch (TREE_CODE (_p1))
5464 : : {
5465 : 0 : case INTEGER_CST:
5466 : 0 : {
5467 : 0 : {
5468 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
5469 : 0 : tree res = generic_simplify_320 (loc, type, _p0, _p1, captures, MAX_EXPR, LE_EXPR, BIT_AND_EXPR);
5470 : 0 : if (res) return res;
5471 : : }
5472 : 0 : break;
5473 : : }
5474 : : default:;
5475 : : }
5476 : : break;
5477 : : }
5478 : : default:;
5479 : : }
5480 : : break;
5481 : : }
5482 : 7925650 : default:;
5483 : : }
5484 : 7925650 : switch (TREE_CODE (_p1))
5485 : : {
5486 : 232 : case MIN_EXPR:
5487 : 232 : {
5488 : 232 : tree _q30 = TREE_OPERAND (_p1, 0);
5489 : 232 : tree _q31 = TREE_OPERAND (_p1, 1);
5490 : 232 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
5491 : : {
5492 : 0 : {
5493 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
5494 : 0 : tree res = generic_simplify_204 (loc, type, _p0, _p1, captures, MIN_EXPR, GE_EXPR, LE_EXPR);
5495 : 0 : if (res) return res;
5496 : : }
5497 : : }
5498 : 232 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
5499 : : {
5500 : 0 : {
5501 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
5502 : 0 : tree res = generic_simplify_204 (loc, type, _p0, _p1, captures, MIN_EXPR, GE_EXPR, LE_EXPR);
5503 : 0 : if (res) return res;
5504 : : }
5505 : : }
5506 : : break;
5507 : : }
5508 : 11 : case MAX_EXPR:
5509 : 11 : {
5510 : 11 : tree _q30 = TREE_OPERAND (_p1, 0);
5511 : 11 : tree _q31 = TREE_OPERAND (_p1, 1);
5512 : 11 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
5513 : : {
5514 : 0 : {
5515 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
5516 : 0 : tree res = generic_simplify_321 (loc, type, _p0, _p1, captures, MAX_EXPR, LE_EXPR);
5517 : 0 : if (res) return res;
5518 : : }
5519 : : }
5520 : 11 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
5521 : : {
5522 : 0 : {
5523 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
5524 : 0 : tree res = generic_simplify_321 (loc, type, _p0, _p1, captures, MAX_EXPR, LE_EXPR);
5525 : 0 : if (res) return res;
5526 : : }
5527 : : }
5528 : : break;
5529 : : }
5530 : 7925650 : default:;
5531 : : }
5532 : 7925650 : switch (TREE_CODE (_p0))
5533 : : {
5534 : 4311 : case MIN_EXPR:
5535 : 4311 : {
5536 : 4311 : tree _q20 = TREE_OPERAND (_p0, 0);
5537 : 4311 : tree _q21 = TREE_OPERAND (_p0, 1);
5538 : 4311 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
5539 : : {
5540 : 0 : {
5541 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5542 : 0 : tree res = generic_simplify_321 (loc, type, _p0, _p1, captures, MIN_EXPR, GE_EXPR);
5543 : 0 : if (res) return res;
5544 : : }
5545 : : }
5546 : 4311 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
5547 : : {
5548 : 0 : {
5549 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
5550 : 0 : tree res = generic_simplify_321 (loc, type, _p0, _p1, captures, MIN_EXPR, GE_EXPR);
5551 : 0 : if (res) return res;
5552 : : }
5553 : : }
5554 : 4311 : switch (TREE_CODE (_q21))
5555 : : {
5556 : 731 : case INTEGER_CST:
5557 : 731 : {
5558 : 731 : switch (TREE_CODE (_p1))
5559 : : {
5560 : 0 : case INTEGER_CST:
5561 : 0 : {
5562 : 0 : {
5563 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
5564 : 0 : tree res = generic_simplify_320 (loc, type, _p0, _p1, captures, MIN_EXPR, LE_EXPR, BIT_IOR_EXPR);
5565 : 0 : if (res) return res;
5566 : : }
5567 : 0 : break;
5568 : : }
5569 : : default:;
5570 : : }
5571 : : break;
5572 : : }
5573 : : default:;
5574 : : }
5575 : : break;
5576 : : }
5577 : 9 : case VEC_COND_EXPR:
5578 : 9 : {
5579 : 9 : tree _q20 = TREE_OPERAND (_p0, 0);
5580 : 9 : tree _q21 = TREE_OPERAND (_p0, 1);
5581 : 9 : tree _q22 = TREE_OPERAND (_p0, 2);
5582 : 9 : switch (TREE_CODE (_p1))
5583 : : {
5584 : 2 : case VEC_COND_EXPR:
5585 : 2 : {
5586 : 2 : tree _q60 = TREE_OPERAND (_p1, 0);
5587 : 2 : tree _q61 = TREE_OPERAND (_p1, 1);
5588 : 2 : tree _q62 = TREE_OPERAND (_p1, 2);
5589 : 2 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
5590 : : {
5591 : 0 : {
5592 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
5593 : 0 : if (TREE_CODE_CLASS (LE_EXPR) != tcc_comparison
5594 : 0 : || types_match (type, TREE_TYPE (captures[2]))
5595 : 0 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
5596 : : || (optimize_vectors_before_lowering_p ()
5597 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
5598 : 0 : TREE_TYPE (captures[1]), ERROR_MARK))
5599 : : )
5600 : : {
5601 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1481;
5602 : 0 : {
5603 : 0 : tree res_op0;
5604 : 0 : res_op0 = captures[1];
5605 : 0 : tree res_op1;
5606 : 0 : {
5607 : 0 : tree _o1[2], _r1;
5608 : 0 : _o1[0] = captures[2];
5609 : 0 : _o1[1] = captures[5];
5610 : 0 : _r1 = fold_build2_loc (loc, LE_EXPR, type, _o1[0], _o1[1]);
5611 : 0 : if (EXPR_P (_r1))
5612 : 0 : goto next_after_fail1481;
5613 : 0 : res_op1 = _r1;
5614 : : }
5615 : 0 : tree res_op2;
5616 : 0 : {
5617 : 0 : tree _o1[2], _r1;
5618 : 0 : _o1[0] = captures[3];
5619 : 0 : _o1[1] = captures[6];
5620 : 0 : _r1 = fold_build2_loc (loc, LE_EXPR, type, _o1[0], _o1[1]);
5621 : 0 : if (EXPR_P (_r1))
5622 : 0 : goto next_after_fail1481;
5623 : 0 : res_op2 = _r1;
5624 : : }
5625 : 0 : tree _r;
5626 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
5627 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 793, __FILE__, __LINE__, true);
5628 : 0 : return _r;
5629 : : }
5630 : 0 : next_after_fail1481:;
5631 : : }
5632 : : }
5633 : : }
5634 : : break;
5635 : : }
5636 : 9 : default:;
5637 : : }
5638 : 9 : {
5639 : 9 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
5640 : 9 : if (TREE_CODE_CLASS (LE_EXPR) != tcc_comparison
5641 : 9 : || types_match (type, TREE_TYPE (captures[2]))
5642 : 9 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
5643 : : || (optimize_vectors_before_lowering_p ()
5644 : 1 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
5645 : 1 : TREE_TYPE (captures[1]), ERROR_MARK))
5646 : : )
5647 : : {
5648 : 9 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1482;
5649 : 9 : {
5650 : 9 : if (! tree_invariant_p (captures[4])) goto next_after_fail1482;
5651 : 7 : tree res_op0;
5652 : 7 : res_op0 = captures[1];
5653 : 7 : tree res_op1;
5654 : 7 : {
5655 : 7 : tree _o1[2], _r1;
5656 : 7 : _o1[0] = captures[2];
5657 : 7 : _o1[1] = unshare_expr (captures[4]);
5658 : 7 : _r1 = fold_build2_loc (loc, LE_EXPR, type, _o1[0], _o1[1]);
5659 : 7 : if (EXPR_P (_r1))
5660 : 0 : goto next_after_fail1482;
5661 : 7 : res_op1 = _r1;
5662 : : }
5663 : 7 : tree res_op2;
5664 : 7 : {
5665 : 7 : tree _o1[2], _r1;
5666 : 7 : _o1[0] = captures[3];
5667 : 7 : _o1[1] = captures[4];
5668 : 7 : _r1 = fold_build2_loc (loc, LE_EXPR, type, _o1[0], _o1[1]);
5669 : 7 : if (EXPR_P (_r1))
5670 : 0 : goto next_after_fail1482;
5671 : 7 : res_op2 = _r1;
5672 : : }
5673 : 7 : tree _r;
5674 : 7 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
5675 : 7 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 794, __FILE__, __LINE__, true);
5676 : 7 : return _r;
5677 : : }
5678 : 2 : next_after_fail1482:;
5679 : : }
5680 : : }
5681 : 2 : break;
5682 : : }
5683 : 7925643 : default:;
5684 : : }
5685 : 7925643 : switch (TREE_CODE (_p1))
5686 : : {
5687 : 2 : case VEC_COND_EXPR:
5688 : 2 : {
5689 : 2 : tree _q30 = TREE_OPERAND (_p1, 0);
5690 : 2 : tree _q31 = TREE_OPERAND (_p1, 1);
5691 : 2 : tree _q32 = TREE_OPERAND (_p1, 2);
5692 : 2 : {
5693 : 2 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
5694 : 2 : if (TREE_CODE_CLASS (LE_EXPR) != tcc_comparison
5695 : 2 : || types_match (type, TREE_TYPE (captures[3]))
5696 : 2 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]), ERROR_MARK)
5697 : : || (optimize_vectors_before_lowering_p ()
5698 : 1 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]),
5699 : 1 : TREE_TYPE (captures[2]), ERROR_MARK))
5700 : : )
5701 : : {
5702 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1483;
5703 : 2 : {
5704 : 2 : if (! tree_invariant_p (captures[0])) goto next_after_fail1483;
5705 : 0 : tree res_op0;
5706 : 0 : res_op0 = captures[2];
5707 : 0 : tree res_op1;
5708 : 0 : {
5709 : 0 : tree _o1[2], _r1;
5710 : 0 : _o1[0] = unshare_expr (captures[0]);
5711 : 0 : _o1[1] = captures[3];
5712 : 0 : _r1 = fold_build2_loc (loc, LE_EXPR, type, _o1[0], _o1[1]);
5713 : 0 : if (EXPR_P (_r1))
5714 : 0 : goto next_after_fail1483;
5715 : 0 : res_op1 = _r1;
5716 : : }
5717 : 0 : tree res_op2;
5718 : 0 : {
5719 : 0 : tree _o1[2], _r1;
5720 : 0 : _o1[0] = captures[0];
5721 : 0 : _o1[1] = captures[4];
5722 : 0 : _r1 = fold_build2_loc (loc, LE_EXPR, type, _o1[0], _o1[1]);
5723 : 0 : if (EXPR_P (_r1))
5724 : 0 : goto next_after_fail1483;
5725 : 0 : res_op2 = _r1;
5726 : : }
5727 : 0 : tree _r;
5728 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
5729 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 795, __FILE__, __LINE__, true);
5730 : 0 : return _r;
5731 : : }
5732 : 2 : next_after_fail1483:;
5733 : : }
5734 : : }
5735 : 2 : break;
5736 : : }
5737 : 7925643 : default:;
5738 : : }
5739 : 7925643 : if (uniform_integer_cst_p (_p1))
5740 : : {
5741 : 5815662 : {
5742 : 5815662 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5743 : 5815662 : tree res = generic_simplify_339 (loc, type, _p0, _p1, captures, LE_EXPR, LT_EXPR);
5744 : 5815662 : if (res) return res;
5745 : : }
5746 : : }
5747 : 7845298 : switch (TREE_CODE (_p0))
5748 : : {
5749 : 46580 : case MULT_EXPR:
5750 : 46580 : {
5751 : 46580 : tree _q20 = TREE_OPERAND (_p0, 0);
5752 : 46580 : tree _q21 = TREE_OPERAND (_p0, 1);
5753 : 46580 : switch (TREE_CODE (_q21))
5754 : : {
5755 : 41110 : case INTEGER_CST:
5756 : 41110 : {
5757 : 41110 : if (integer_zerop (_p1))
5758 : : {
5759 : 538 : {
5760 : 538 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
5761 : 538 : tree res = generic_simplify_224 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR);
5762 : 538 : if (res) return res;
5763 : : }
5764 : : }
5765 : : break;
5766 : : }
5767 : : default:;
5768 : : }
5769 : : break;
5770 : : }
5771 : 7844847 : default:;
5772 : : }
5773 : 7844847 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
5774 : : {
5775 : 2694 : {
5776 : 2694 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5777 : 2694 : tree res = generic_simplify_226 (loc, type, _p0, _p1, captures, LE_EXPR);
5778 : 2694 : if (res) return res;
5779 : : }
5780 : : }
5781 : 7842190 : switch (TREE_CODE (_p0))
5782 : : {
5783 : 2112 : case BIT_NOT_EXPR:
5784 : 2112 : {
5785 : 2112 : tree _q20 = TREE_OPERAND (_p0, 0);
5786 : 2112 : switch (TREE_CODE (_p1))
5787 : : {
5788 : 0 : case BIT_NOT_EXPR:
5789 : 0 : {
5790 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
5791 : 0 : {
5792 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _p1, _q40 };
5793 : 0 : tree res = generic_simplify_228 (loc, type, _p0, _p1, captures, LE_EXPR);
5794 : 0 : if (res) return res;
5795 : : }
5796 : 0 : break;
5797 : : }
5798 : 2112 : default:;
5799 : : }
5800 : 2112 : {
5801 : 2112 : tree _p1_pops[1];
5802 : 2112 : if (tree_nop_convert (_p1, _p1_pops))
5803 : : {
5804 : 1 : tree _q40 = _p1_pops[0];
5805 : 1 : switch (TREE_CODE (_q40))
5806 : : {
5807 : 0 : case BIT_NOT_EXPR:
5808 : 0 : {
5809 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
5810 : 0 : {
5811 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q40, _q50 };
5812 : 0 : tree res = generic_simplify_228 (loc, type, _p0, _p1, captures, LE_EXPR);
5813 : 0 : if (res) return res;
5814 : : }
5815 : 0 : break;
5816 : : }
5817 : : default:;
5818 : : }
5819 : : }
5820 : : }
5821 : 2112 : if (CONSTANT_CLASS_P (_p1))
5822 : : {
5823 : 2110 : {
5824 : 2110 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
5825 : 2110 : tree res = generic_simplify_229 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR);
5826 : 2110 : if (res) return res;
5827 : : }
5828 : : }
5829 : : break;
5830 : : }
5831 : 7840080 : default:;
5832 : : }
5833 : 7840080 : {
5834 : 7840080 : tree _p0_pops[1];
5835 : 7840080 : if (tree_nop_convert (_p0, _p0_pops))
5836 : : {
5837 : 623929 : tree _q20 = _p0_pops[0];
5838 : 623929 : switch (TREE_CODE (_q20))
5839 : : {
5840 : 0 : case BIT_NOT_EXPR:
5841 : 0 : {
5842 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
5843 : 0 : switch (TREE_CODE (_p1))
5844 : : {
5845 : 0 : case BIT_NOT_EXPR:
5846 : 0 : {
5847 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
5848 : 0 : {
5849 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _p1, _q50 };
5850 : 0 : tree res = generic_simplify_230 (loc, type, _p0, _p1, captures, LE_EXPR);
5851 : 0 : if (res) return res;
5852 : : }
5853 : 0 : break;
5854 : : }
5855 : 0 : default:;
5856 : : }
5857 : 0 : {
5858 : 0 : tree _p1_pops[1];
5859 : 0 : if (tree_nop_convert (_p1, _p1_pops))
5860 : : {
5861 : 0 : tree _q50 = _p1_pops[0];
5862 : 0 : switch (TREE_CODE (_q50))
5863 : : {
5864 : 0 : case BIT_NOT_EXPR:
5865 : 0 : {
5866 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
5867 : 0 : {
5868 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q50, _q60 };
5869 : 0 : tree res = generic_simplify_230 (loc, type, _p0, _p1, captures, LE_EXPR);
5870 : 0 : if (res) return res;
5871 : : }
5872 : 0 : break;
5873 : : }
5874 : : default:;
5875 : : }
5876 : : }
5877 : : }
5878 : 0 : if (CONSTANT_CLASS_P (_p1))
5879 : : {
5880 : 0 : {
5881 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
5882 : 0 : tree res = generic_simplify_229 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR);
5883 : 0 : if (res) return res;
5884 : : }
5885 : : }
5886 : : break;
5887 : : }
5888 : : default:;
5889 : : }
5890 : : }
5891 : : }
5892 : 7840080 : switch (TREE_CODE (_p1))
5893 : : {
5894 : 163318 : case REAL_CST:
5895 : 163318 : {
5896 : 163318 : {
5897 : 163318 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5898 : 163318 : tree res = generic_simplify_231 (loc, type, _p0, _p1, captures, LE_EXPR);
5899 : 163318 : if (res) return res;
5900 : : }
5901 : 163245 : break;
5902 : : }
5903 : 7840007 : default:;
5904 : : }
5905 : 7840007 : switch (TREE_CODE (_p0))
5906 : : {
5907 : 1614812 : case PLUS_EXPR:
5908 : 1614812 : {
5909 : 1614812 : tree _q20 = TREE_OPERAND (_p0, 0);
5910 : 1614812 : tree _q21 = TREE_OPERAND (_p0, 1);
5911 : 1614812 : switch (TREE_CODE (_q21))
5912 : : {
5913 : 85 : case REAL_CST:
5914 : 85 : {
5915 : 85 : switch (TREE_CODE (_p1))
5916 : : {
5917 : 80 : case REAL_CST:
5918 : 80 : {
5919 : 80 : {
5920 : 80 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
5921 : 80 : tree res = generic_simplify_232 (loc, type, _p0, _p1, captures, PLUS_EXPR, LE_EXPR);
5922 : 80 : if (res) return res;
5923 : : }
5924 : 80 : break;
5925 : : }
5926 : : default:;
5927 : : }
5928 : : break;
5929 : : }
5930 : 1545471 : case INTEGER_CST:
5931 : 1545471 : {
5932 : 1545471 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
5933 : : {
5934 : 1712 : {
5935 : 1712 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q20, _q21 };
5936 : 1712 : tree res = generic_simplify_323 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR);
5937 : 1712 : if (res) return res;
5938 : : }
5939 : : }
5940 : : break;
5941 : : }
5942 : : default:;
5943 : : }
5944 : : break;
5945 : : }
5946 : 51937 : case MINUS_EXPR:
5947 : 51937 : {
5948 : 51937 : tree _q20 = TREE_OPERAND (_p0, 0);
5949 : 51937 : tree _q21 = TREE_OPERAND (_p0, 1);
5950 : 51937 : switch (TREE_CODE (_q21))
5951 : : {
5952 : 1219 : case REAL_CST:
5953 : 1219 : {
5954 : 1219 : switch (TREE_CODE (_p1))
5955 : : {
5956 : 1202 : case REAL_CST:
5957 : 1202 : {
5958 : 1202 : {
5959 : 1202 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
5960 : 1202 : tree res = generic_simplify_232 (loc, type, _p0, _p1, captures, MINUS_EXPR, LE_EXPR);
5961 : 1202 : if (res) return res;
5962 : : }
5963 : 1202 : break;
5964 : : }
5965 : : default:;
5966 : : }
5967 : : break;
5968 : : }
5969 : 51937 : default:;
5970 : : }
5971 : 51937 : switch (TREE_CODE (_q20))
5972 : : {
5973 : 2 : case REAL_CST:
5974 : 2 : {
5975 : 2 : switch (TREE_CODE (_p1))
5976 : : {
5977 : 0 : case REAL_CST:
5978 : 0 : {
5979 : 0 : {
5980 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
5981 : 0 : tree res = generic_simplify_233 (loc, type, _p0, _p1, captures, LE_EXPR);
5982 : 0 : if (res) return res;
5983 : : }
5984 : 0 : break;
5985 : : }
5986 : : default:;
5987 : : }
5988 : : break;
5989 : : }
5990 : : default:;
5991 : : }
5992 : : break;
5993 : : }
5994 : 11710 : case FLOAT_EXPR:
5995 : 11710 : {
5996 : 11710 : tree _q20 = TREE_OPERAND (_p0, 0);
5997 : 11710 : switch (TREE_CODE (_p1))
5998 : : {
5999 : 0 : case FLOAT_EXPR:
6000 : 0 : {
6001 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
6002 : 0 : {
6003 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
6004 : 0 : tree res = generic_simplify_236 (loc, type, _p0, _p1, captures, LE_EXPR, LE_EXPR);
6005 : 0 : if (res) return res;
6006 : : }
6007 : 0 : break;
6008 : : }
6009 : 257 : case REAL_CST:
6010 : 257 : {
6011 : 257 : {
6012 : 257 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
6013 : 257 : tree res = generic_simplify_237 (loc, type, _p0, _p1, captures, LE_EXPR, LE_EXPR);
6014 : 257 : if (res) return res;
6015 : : }
6016 : 162 : break;
6017 : : }
6018 : : default:;
6019 : : }
6020 : : break;
6021 : : }
6022 : 307 : case EXACT_DIV_EXPR:
6023 : 307 : {
6024 : 307 : tree _q20 = TREE_OPERAND (_p0, 0);
6025 : 307 : tree _q21 = TREE_OPERAND (_p0, 1);
6026 : 307 : switch (TREE_CODE (_q21))
6027 : : {
6028 : 307 : case INTEGER_CST:
6029 : 307 : {
6030 : 307 : switch (TREE_CODE (_p1))
6031 : : {
6032 : 241 : case INTEGER_CST:
6033 : 241 : {
6034 : 241 : {
6035 : 241 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
6036 : 241 : tree res = generic_simplify_324 (loc, type, _p0, _p1, captures, LE_EXPR);
6037 : 241 : if (res) return res;
6038 : : }
6039 : 0 : break;
6040 : : }
6041 : : default:;
6042 : : }
6043 : : break;
6044 : : }
6045 : : default:;
6046 : : }
6047 : : break;
6048 : : }
6049 : 1173918 : CASE_CONVERT:
6050 : 1173918 : {
6051 : 1173918 : tree _q20 = TREE_OPERAND (_p0, 0);
6052 : 1173918 : switch (TREE_CODE (_q20))
6053 : : {
6054 : 0 : case EXACT_DIV_EXPR:
6055 : 0 : {
6056 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
6057 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
6058 : 0 : switch (TREE_CODE (_q31))
6059 : : {
6060 : 0 : case INTEGER_CST:
6061 : 0 : {
6062 : 0 : switch (TREE_CODE (_p1))
6063 : : {
6064 : 0 : case INTEGER_CST:
6065 : 0 : {
6066 : 0 : {
6067 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
6068 : 0 : tree res = generic_simplify_325 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR);
6069 : 0 : if (res) return res;
6070 : : }
6071 : 0 : break;
6072 : : }
6073 : : default:;
6074 : : }
6075 : : break;
6076 : : }
6077 : : default:;
6078 : : }
6079 : : break;
6080 : : }
6081 : 1173918 : default:;
6082 : : }
6083 : 1173918 : switch (TREE_CODE (_p1))
6084 : : {
6085 : 42199 : CASE_CONVERT:
6086 : 42199 : {
6087 : 42199 : tree _q40 = TREE_OPERAND (_p1, 0);
6088 : 42199 : {
6089 : 42199 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
6090 : 42199 : tree res = generic_simplify_241 (loc, type, _p0, _p1, captures, LE_EXPR);
6091 : 42199 : if (res) return res;
6092 : : }
6093 : 24936 : break;
6094 : : }
6095 : 1156655 : default:;
6096 : : }
6097 : 1156655 : {
6098 : 1156655 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
6099 : 1156655 : tree res = generic_simplify_242 (loc, type, _p0, _p1, captures, LE_EXPR);
6100 : 1156655 : if (res) return res;
6101 : : }
6102 : 751931 : switch (TREE_CODE (_q20))
6103 : : {
6104 : 490 : case ADDR_EXPR:
6105 : 490 : {
6106 : 490 : switch (TREE_CODE (_p1))
6107 : : {
6108 : 196 : CASE_CONVERT:
6109 : 196 : {
6110 : 196 : tree _q40 = TREE_OPERAND (_p1, 0);
6111 : 196 : switch (TREE_CODE (_q40))
6112 : : {
6113 : 170 : case ADDR_EXPR:
6114 : 170 : {
6115 : 170 : {
6116 : 170 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
6117 : 170 : tree res = generic_simplify_259 (loc, type, _p0, _p1, captures, LE_EXPR);
6118 : 170 : if (res) return res;
6119 : : }
6120 : 115 : break;
6121 : : }
6122 : : default:;
6123 : : }
6124 : : break;
6125 : : }
6126 : 0 : case ADDR_EXPR:
6127 : 0 : {
6128 : 0 : {
6129 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
6130 : 0 : tree res = generic_simplify_259 (loc, type, _p0, _p1, captures, LE_EXPR);
6131 : 0 : if (res) return res;
6132 : : }
6133 : 0 : break;
6134 : : }
6135 : : default:;
6136 : : }
6137 : : break;
6138 : : }
6139 : 751876 : default:;
6140 : : }
6141 : 751876 : if (uniform_integer_cst_p (_p1))
6142 : : {
6143 : 331664 : {
6144 : 331664 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
6145 : 331664 : tree res = generic_simplify_326 (loc, type, _p0, _p1, captures, LE_EXPR);
6146 : 331664 : if (res) return res;
6147 : : }
6148 : : }
6149 : : break;
6150 : : }
6151 : 4108 : case BIT_AND_EXPR:
6152 : 4108 : {
6153 : 4108 : tree _q20 = TREE_OPERAND (_p0, 0);
6154 : 4108 : tree _q21 = TREE_OPERAND (_p0, 1);
6155 : 4108 : switch (TREE_CODE (_q21))
6156 : : {
6157 : 3679 : case INTEGER_CST:
6158 : 3679 : {
6159 : 3679 : switch (TREE_CODE (_p1))
6160 : : {
6161 : 2357 : case INTEGER_CST:
6162 : 2357 : {
6163 : 2357 : {
6164 : 2357 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
6165 : 2357 : tree res = generic_simplify_340 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
6166 : 2357 : if (res) return res;
6167 : : }
6168 : 2308 : break;
6169 : : }
6170 : : default:;
6171 : : }
6172 : : break;
6173 : : }
6174 : : default:;
6175 : : }
6176 : : break;
6177 : : }
6178 : 706 : case NEGATE_EXPR:
6179 : 706 : {
6180 : 706 : tree _q20 = TREE_OPERAND (_p0, 0);
6181 : 706 : switch (TREE_CODE (_p1))
6182 : : {
6183 : 32 : case NEGATE_EXPR:
6184 : 32 : {
6185 : 32 : tree _q40 = TREE_OPERAND (_p1, 0);
6186 : 32 : {
6187 : 32 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
6188 : 32 : tree res = generic_simplify_239 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR);
6189 : 32 : if (res) return res;
6190 : : }
6191 : 32 : break;
6192 : : }
6193 : 706 : default:;
6194 : : }
6195 : 706 : if (CONSTANT_CLASS_P (_p1))
6196 : : {
6197 : 374 : {
6198 : 374 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
6199 : 374 : tree res = generic_simplify_240 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR);
6200 : 374 : if (res) return res;
6201 : : }
6202 : : }
6203 : : break;
6204 : : }
6205 : 17818 : case ADDR_EXPR:
6206 : 17818 : {
6207 : 17818 : switch (TREE_CODE (_p1))
6208 : : {
6209 : 344 : CASE_CONVERT:
6210 : 344 : {
6211 : 344 : tree _q30 = TREE_OPERAND (_p1, 0);
6212 : 344 : switch (TREE_CODE (_q30))
6213 : : {
6214 : 35 : case ADDR_EXPR:
6215 : 35 : {
6216 : 35 : {
6217 : 35 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q30 };
6218 : 35 : tree res = generic_simplify_260 (loc, type, _p0, _p1, captures, LE_EXPR);
6219 : 35 : if (res) return res;
6220 : : }
6221 : 0 : break;
6222 : : }
6223 : : default:;
6224 : : }
6225 : : break;
6226 : : }
6227 : 2658 : case ADDR_EXPR:
6228 : 2658 : {
6229 : 2658 : {
6230 : 2658 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _p1 };
6231 : 2658 : tree res = generic_simplify_260 (loc, type, _p0, _p1, captures, LE_EXPR);
6232 : 2658 : if (res) return res;
6233 : : }
6234 : 267 : break;
6235 : : }
6236 : : default:;
6237 : : }
6238 : : break;
6239 : : }
6240 : 45764 : case CALL_EXPR:
6241 : 45764 : switch (get_call_combined_fn (_p0))
6242 : : {
6243 : 2 : case CFN_BUILT_IN_SQRTF:
6244 : 2 : if (call_expr_nargs (_p0) == 1)
6245 : : {
6246 : 2 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6247 : 2 : switch (TREE_CODE (_p1))
6248 : : {
6249 : 2 : case REAL_CST:
6250 : 2 : {
6251 : 2 : {
6252 : 2 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
6253 : 2 : tree res = generic_simplify_234 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTF, LE_EXPR);
6254 : 2 : if (res) return res;
6255 : : }
6256 : 0 : break;
6257 : : }
6258 : 0 : case CALL_EXPR:
6259 : 0 : switch (get_call_combined_fn (_p1))
6260 : : {
6261 : 0 : case CFN_BUILT_IN_SQRTF:
6262 : 0 : if (call_expr_nargs (_p1) == 1)
6263 : : {
6264 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
6265 : 0 : {
6266 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
6267 : 0 : tree res = generic_simplify_235 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTF, LE_EXPR);
6268 : 0 : if (res) return res;
6269 : : }
6270 : : }
6271 : : break;
6272 : : default:;
6273 : : }
6274 : : break;
6275 : : default:;
6276 : : }
6277 : : }
6278 : : break;
6279 : 0 : case CFN_BUILT_IN_SQRTL:
6280 : 0 : if (call_expr_nargs (_p0) == 1)
6281 : : {
6282 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6283 : 0 : switch (TREE_CODE (_p1))
6284 : : {
6285 : 0 : case REAL_CST:
6286 : 0 : {
6287 : 0 : {
6288 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
6289 : 0 : tree res = generic_simplify_234 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTL, LE_EXPR);
6290 : 0 : if (res) return res;
6291 : : }
6292 : 0 : break;
6293 : : }
6294 : 0 : case CALL_EXPR:
6295 : 0 : switch (get_call_combined_fn (_p1))
6296 : : {
6297 : 0 : case CFN_BUILT_IN_SQRTL:
6298 : 0 : if (call_expr_nargs (_p1) == 1)
6299 : : {
6300 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
6301 : 0 : {
6302 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
6303 : 0 : tree res = generic_simplify_235 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTL, LE_EXPR);
6304 : 0 : if (res) return res;
6305 : : }
6306 : : }
6307 : : break;
6308 : : default:;
6309 : : }
6310 : : break;
6311 : : default:;
6312 : : }
6313 : : }
6314 : : break;
6315 : 2 : case CFN_BUILT_IN_SQRT:
6316 : 2 : if (call_expr_nargs (_p0) == 1)
6317 : : {
6318 : 2 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6319 : 2 : switch (TREE_CODE (_p1))
6320 : : {
6321 : 2 : case REAL_CST:
6322 : 2 : {
6323 : 2 : {
6324 : 2 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
6325 : 2 : tree res = generic_simplify_234 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRT, LE_EXPR);
6326 : 2 : if (res) return res;
6327 : : }
6328 : 2 : break;
6329 : : }
6330 : 0 : case CALL_EXPR:
6331 : 0 : switch (get_call_combined_fn (_p1))
6332 : : {
6333 : 0 : case CFN_BUILT_IN_SQRT:
6334 : 0 : if (call_expr_nargs (_p1) == 1)
6335 : : {
6336 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
6337 : 0 : {
6338 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
6339 : 0 : tree res = generic_simplify_235 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRT, LE_EXPR);
6340 : 0 : if (res) return res;
6341 : : }
6342 : : }
6343 : : break;
6344 : : default:;
6345 : : }
6346 : : break;
6347 : : default:;
6348 : : }
6349 : : }
6350 : : break;
6351 : 0 : case CFN_SQRT:
6352 : 0 : if (call_expr_nargs (_p0) == 1)
6353 : : {
6354 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6355 : 0 : switch (TREE_CODE (_p1))
6356 : : {
6357 : 0 : case REAL_CST:
6358 : 0 : {
6359 : 0 : {
6360 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
6361 : 0 : tree res = generic_simplify_234 (loc, type, _p0, _p1, captures, CFN_SQRT, LE_EXPR);
6362 : 0 : if (res) return res;
6363 : : }
6364 : 0 : break;
6365 : : }
6366 : 0 : case CALL_EXPR:
6367 : 0 : switch (get_call_combined_fn (_p1))
6368 : : {
6369 : 0 : case CFN_SQRT:
6370 : 0 : if (call_expr_nargs (_p1) == 1)
6371 : : {
6372 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
6373 : 0 : {
6374 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
6375 : 0 : tree res = generic_simplify_235 (loc, type, _p0, _p1, captures, CFN_SQRT, LE_EXPR);
6376 : 0 : if (res) return res;
6377 : : }
6378 : : }
6379 : : break;
6380 : : default:;
6381 : : }
6382 : : break;
6383 : : default:;
6384 : : }
6385 : : }
6386 : : break;
6387 : : default:;
6388 : : }
6389 : : break;
6390 : 7391770 : default:;
6391 : : }
6392 : 7391770 : if (uniform_integer_cst_p (_p1))
6393 : : {
6394 : 5306178 : {
6395 : 5306178 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _p1 };
6396 : 5306178 : tree res = generic_simplify_327 (loc, type, _p0, _p1, captures, LE_EXPR);
6397 : 5306178 : if (res) return res;
6398 : : }
6399 : : }
6400 : 7035271 : switch (TREE_CODE (_p0))
6401 : : {
6402 : 718105 : CASE_CONVERT:
6403 : 718105 : {
6404 : 718105 : tree _q20 = TREE_OPERAND (_p0, 0);
6405 : 718105 : switch (TREE_CODE (_q20))
6406 : : {
6407 : 69553 : case PLUS_EXPR:
6408 : 69553 : {
6409 : 69553 : tree _q30 = TREE_OPERAND (_q20, 0);
6410 : 69553 : tree _q31 = TREE_OPERAND (_q20, 1);
6411 : 69553 : switch (TREE_CODE (_q30))
6412 : : {
6413 : 63532 : CASE_CONVERT:
6414 : 63532 : {
6415 : 63532 : tree _q40 = TREE_OPERAND (_q30, 0);
6416 : 63532 : switch (TREE_CODE (_q31))
6417 : : {
6418 : 63528 : case INTEGER_CST:
6419 : 63528 : {
6420 : 63528 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
6421 : : {
6422 : 15 : {
6423 : 15 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q40, _q31 };
6424 : 15 : tree res = generic_simplify_328 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR);
6425 : 15 : if (res) return res;
6426 : : }
6427 : : }
6428 : : break;
6429 : : }
6430 : : default:;
6431 : : }
6432 : : break;
6433 : : }
6434 : : default:;
6435 : : }
6436 : : break;
6437 : : }
6438 : : default:;
6439 : : }
6440 : : break;
6441 : : }
6442 : 7035256 : default:;
6443 : : }
6444 : 7035256 : switch (TREE_CODE (_p1))
6445 : : {
6446 : 129545 : CASE_CONVERT:
6447 : 129545 : {
6448 : 129545 : tree _q30 = TREE_OPERAND (_p1, 0);
6449 : 129545 : switch (TREE_CODE (_q30))
6450 : : {
6451 : 1373 : case PLUS_EXPR:
6452 : 1373 : {
6453 : 1373 : tree _q40 = TREE_OPERAND (_q30, 0);
6454 : 1373 : tree _q41 = TREE_OPERAND (_q30, 1);
6455 : 1373 : switch (TREE_CODE (_q40))
6456 : : {
6457 : 322 : CASE_CONVERT:
6458 : 322 : {
6459 : 322 : tree _q50 = TREE_OPERAND (_q40, 0);
6460 : 322 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
6461 : : {
6462 : 92 : switch (TREE_CODE (_q41))
6463 : : {
6464 : 92 : case INTEGER_CST:
6465 : 92 : {
6466 : 92 : {
6467 : 92 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q30, _q40, _p0, _q41 };
6468 : 92 : tree res = generic_simplify_328 (loc, type, _p0, _p1, captures, GE_EXPR, LE_EXPR);
6469 : 92 : if (res) return res;
6470 : : }
6471 : 92 : break;
6472 : : }
6473 : : default:;
6474 : : }
6475 : : }
6476 : : break;
6477 : : }
6478 : : default:;
6479 : : }
6480 : : break;
6481 : : }
6482 : : default:;
6483 : : }
6484 : : break;
6485 : : }
6486 : 95641 : case PLUS_EXPR:
6487 : 95641 : {
6488 : 95641 : tree _q30 = TREE_OPERAND (_p1, 0);
6489 : 95641 : tree _q31 = TREE_OPERAND (_p1, 1);
6490 : 95641 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
6491 : : {
6492 : 34 : switch (TREE_CODE (_q31))
6493 : : {
6494 : 34 : case INTEGER_CST:
6495 : 34 : {
6496 : 34 : {
6497 : 34 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _p1, _q30, _p0, _q31 };
6498 : 34 : tree res = generic_simplify_323 (loc, type, _p0, _p1, captures, GE_EXPR, LE_EXPR);
6499 : 34 : if (res) return res;
6500 : : }
6501 : 0 : break;
6502 : : }
6503 : : default:;
6504 : : }
6505 : : }
6506 : : break;
6507 : : }
6508 : 7035222 : default:;
6509 : : }
6510 : 7035222 : switch (TREE_CODE (_p0))
6511 : : {
6512 : 51032 : case MINUS_EXPR:
6513 : 51032 : {
6514 : 51032 : tree _q20 = TREE_OPERAND (_p0, 0);
6515 : 51032 : tree _q21 = TREE_OPERAND (_p0, 1);
6516 : 51032 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
6517 : : {
6518 : 2518 : {
6519 : 2518 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
6520 : 2518 : tree res = generic_simplify_329 (loc, type, _p0, _p1, captures, LE_EXPR);
6521 : 2518 : if (res) return res;
6522 : : }
6523 : : }
6524 : : break;
6525 : : }
6526 : 7035017 : default:;
6527 : : }
6528 : 7035017 : switch (TREE_CODE (_p1))
6529 : : {
6530 : 95607 : case PLUS_EXPR:
6531 : 95607 : {
6532 : 95607 : tree _q30 = TREE_OPERAND (_p1, 0);
6533 : 95607 : tree _q31 = TREE_OPERAND (_p1, 1);
6534 : 95607 : switch (TREE_CODE (_q30))
6535 : : {
6536 : 4 : case MINUS_EXPR:
6537 : 4 : {
6538 : 4 : tree _q40 = TREE_OPERAND (_q30, 0);
6539 : 4 : tree _q41 = TREE_OPERAND (_q30, 1);
6540 : 4 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
6541 : : {
6542 : 0 : if (integer_minus_onep (_q31))
6543 : : {
6544 : 0 : {
6545 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
6546 : 0 : tree res = generic_simplify_341 (loc, type, _p0, _p1, captures, GE_EXPR);
6547 : 0 : if (res) return res;
6548 : : }
6549 : : }
6550 : : }
6551 : : break;
6552 : : }
6553 : : default:;
6554 : : }
6555 : : break;
6556 : : }
6557 : 7035017 : default:;
6558 : : }
6559 : 7035017 : switch (TREE_CODE (_p0))
6560 : : {
6561 : 12 : case REALPART_EXPR:
6562 : 12 : {
6563 : 12 : tree _q20 = TREE_OPERAND (_p0, 0);
6564 : 12 : switch (TREE_CODE (_q20))
6565 : : {
6566 : 0 : case CALL_EXPR:
6567 : 0 : switch (get_call_combined_fn (_q20))
6568 : : {
6569 : 0 : case CFN_SUB_OVERFLOW:
6570 : 0 : if (call_expr_nargs (_q20) == 2)
6571 : : {
6572 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
6573 : 0 : tree _q31 = CALL_EXPR_ARG (_q20, 1);
6574 : 0 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
6575 : : {
6576 : 0 : {
6577 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
6578 : 0 : tree res = generic_simplify_342 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
6579 : 0 : if (res) return res;
6580 : : }
6581 : : }
6582 : : }
6583 : : break;
6584 : : default:;
6585 : : }
6586 : : break;
6587 : : default:;
6588 : : }
6589 : : break;
6590 : : }
6591 : 7035017 : default:;
6592 : : }
6593 : 7035017 : switch (TREE_CODE (_p1))
6594 : : {
6595 : 0 : case REALPART_EXPR:
6596 : 0 : {
6597 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
6598 : 0 : switch (TREE_CODE (_q30))
6599 : : {
6600 : 0 : case CALL_EXPR:
6601 : 0 : switch (get_call_combined_fn (_q30))
6602 : : {
6603 : 0 : case CFN_ADD_OVERFLOW:
6604 : 0 : if (call_expr_nargs (_q30) == 2)
6605 : : {
6606 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
6607 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
6608 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
6609 : : {
6610 : 0 : {
6611 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _p0, _q41 };
6612 : 0 : tree res = generic_simplify_343 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
6613 : 0 : if (res) return res;
6614 : : }
6615 : : }
6616 : 0 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
6617 : : {
6618 : 0 : {
6619 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _p0, _q40 };
6620 : 0 : tree res = generic_simplify_343 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
6621 : 0 : if (res) return res;
6622 : : }
6623 : : }
6624 : : }
6625 : : break;
6626 : : default:;
6627 : : }
6628 : : break;
6629 : : default:;
6630 : : }
6631 : : break;
6632 : : }
6633 : 260 : case TRUNC_DIV_EXPR:
6634 : 260 : {
6635 : 260 : tree _q30 = TREE_OPERAND (_p1, 0);
6636 : 260 : tree _q31 = TREE_OPERAND (_p1, 1);
6637 : 260 : if (integer_all_onesp (_q30))
6638 : : {
6639 : 0 : {
6640 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q31, _p0 };
6641 : 0 : tree res = generic_simplify_344 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
6642 : 0 : if (res) return res;
6643 : : }
6644 : : }
6645 : : break;
6646 : : }
6647 : 7035017 : default:;
6648 : : }
6649 : 7035017 : switch (TREE_CODE (_p0))
6650 : : {
6651 : 45056 : case MULT_EXPR:
6652 : 45056 : {
6653 : 45056 : tree _q20 = TREE_OPERAND (_p0, 0);
6654 : 45056 : tree _q21 = TREE_OPERAND (_p0, 1);
6655 : 45056 : switch (TREE_CODE (_q21))
6656 : : {
6657 : 1163 : case REAL_CST:
6658 : 1163 : {
6659 : 1163 : switch (TREE_CODE (_p1))
6660 : : {
6661 : 939 : case REAL_CST:
6662 : 939 : {
6663 : 939 : {
6664 : 939 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
6665 : 939 : tree res = generic_simplify_334 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR);
6666 : 939 : if (res) return res;
6667 : : }
6668 : 937 : break;
6669 : : }
6670 : : default:;
6671 : : }
6672 : : break;
6673 : : }
6674 : : default:;
6675 : : }
6676 : : break;
6677 : : }
6678 : 1539564 : case PLUS_EXPR:
6679 : 1539564 : {
6680 : 1539564 : tree _q20 = TREE_OPERAND (_p0, 0);
6681 : 1539564 : tree _q21 = TREE_OPERAND (_p0, 1);
6682 : 1539564 : switch (TREE_CODE (_q21))
6683 : : {
6684 : 1471415 : case INTEGER_CST:
6685 : 1471415 : {
6686 : 1471415 : switch (TREE_CODE (_p1))
6687 : : {
6688 : 1046157 : case INTEGER_CST:
6689 : 1046157 : {
6690 : 1046157 : {
6691 : 1046157 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
6692 : 1046157 : tree res = generic_simplify_335 (loc, type, _p0, _p1, captures, PLUS_EXPR, MINUS_EXPR, LE_EXPR);
6693 : 1046157 : if (res) return res;
6694 : : }
6695 : 912092 : break;
6696 : : }
6697 : : default:;
6698 : : }
6699 : : break;
6700 : : }
6701 : : default:;
6702 : : }
6703 : : break;
6704 : : }
6705 : 50827 : case MINUS_EXPR:
6706 : 50827 : {
6707 : 50827 : tree _q20 = TREE_OPERAND (_p0, 0);
6708 : 50827 : tree _q21 = TREE_OPERAND (_p0, 1);
6709 : 50827 : switch (TREE_CODE (_q21))
6710 : : {
6711 : 1551 : case INTEGER_CST:
6712 : 1551 : {
6713 : 1551 : switch (TREE_CODE (_p1))
6714 : : {
6715 : 1551 : case INTEGER_CST:
6716 : 1551 : {
6717 : 1551 : {
6718 : 1551 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
6719 : 1551 : tree res = generic_simplify_335 (loc, type, _p0, _p1, captures, MINUS_EXPR, PLUS_EXPR, LE_EXPR);
6720 : 1551 : if (res) return res;
6721 : : }
6722 : 1550 : break;
6723 : : }
6724 : : default:;
6725 : : }
6726 : : break;
6727 : : }
6728 : : default:;
6729 : : }
6730 : : break;
6731 : : }
6732 : 45034 : case CALL_EXPR:
6733 : 45034 : switch (get_call_combined_fn (_p0))
6734 : : {
6735 : 2 : case CFN_BUILT_IN_CTZ:
6736 : 2 : if (call_expr_nargs (_p0) == 1)
6737 : : {
6738 : 2 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6739 : 2 : switch (TREE_CODE (_p1))
6740 : : {
6741 : 2 : case INTEGER_CST:
6742 : 2 : {
6743 : 2 : {
6744 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
6745 : 2 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR, CFN_BUILT_IN_CTZ);
6746 : 2 : if (res) return res;
6747 : : }
6748 : 0 : break;
6749 : : }
6750 : : default:;
6751 : : }
6752 : : }
6753 : : break;
6754 : 8 : case CFN_BUILT_IN_FFS:
6755 : 8 : if (call_expr_nargs (_p0) == 1)
6756 : : {
6757 : 8 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6758 : 8 : switch (TREE_CODE (_p1))
6759 : : {
6760 : 8 : case INTEGER_CST:
6761 : 8 : {
6762 : 8 : {
6763 : 8 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
6764 : 8 : tree res = generic_simplify_345 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR, NE_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_FFS);
6765 : 8 : if (res) return res;
6766 : : }
6767 : 2 : break;
6768 : : }
6769 : : default:;
6770 : : }
6771 : : }
6772 : : break;
6773 : 0 : case CFN_BUILT_IN_FFSIMAX:
6774 : 0 : if (call_expr_nargs (_p0) == 1)
6775 : : {
6776 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6777 : 0 : switch (TREE_CODE (_p1))
6778 : : {
6779 : 0 : case INTEGER_CST:
6780 : 0 : {
6781 : 0 : {
6782 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
6783 : 0 : tree res = generic_simplify_345 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR, NE_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_FFSIMAX);
6784 : 0 : if (res) return res;
6785 : : }
6786 : 0 : break;
6787 : : }
6788 : : default:;
6789 : : }
6790 : : }
6791 : : break;
6792 : 37 : case CFN_BUILT_IN_POPCOUNT:
6793 : 37 : if (call_expr_nargs (_p0) == 1)
6794 : : {
6795 : 37 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6796 : 37 : if (integer_zerop (_p1))
6797 : : {
6798 : 1 : {
6799 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
6800 : 1 : tree res = generic_simplify_270 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR, CFN_BUILT_IN_POPCOUNT);
6801 : 1 : if (res) return res;
6802 : : }
6803 : : }
6804 : : }
6805 : : break;
6806 : 0 : case CFN_BUILT_IN_CTZL:
6807 : 0 : if (call_expr_nargs (_p0) == 1)
6808 : : {
6809 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6810 : 0 : switch (TREE_CODE (_p1))
6811 : : {
6812 : 0 : case INTEGER_CST:
6813 : 0 : {
6814 : 0 : {
6815 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
6816 : 0 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR, CFN_BUILT_IN_CTZL);
6817 : 0 : if (res) return res;
6818 : : }
6819 : 0 : break;
6820 : : }
6821 : : default:;
6822 : : }
6823 : : }
6824 : : break;
6825 : 3 : case CFN_BUILT_IN_FFSL:
6826 : 3 : if (call_expr_nargs (_p0) == 1)
6827 : : {
6828 : 3 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6829 : 3 : switch (TREE_CODE (_p1))
6830 : : {
6831 : 3 : case INTEGER_CST:
6832 : 3 : {
6833 : 3 : {
6834 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
6835 : 3 : tree res = generic_simplify_345 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR, NE_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_FFSL);
6836 : 3 : if (res) return res;
6837 : : }
6838 : 0 : break;
6839 : : }
6840 : : default:;
6841 : : }
6842 : : }
6843 : : break;
6844 : 1 : case CFN_BUILT_IN_POPCOUNTLL:
6845 : 1 : if (call_expr_nargs (_p0) == 1)
6846 : : {
6847 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6848 : 1 : if (integer_zerop (_p1))
6849 : : {
6850 : 1 : {
6851 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
6852 : 1 : tree res = generic_simplify_270 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR, CFN_BUILT_IN_POPCOUNTLL);
6853 : 1 : if (res) return res;
6854 : : }
6855 : : }
6856 : : }
6857 : : break;
6858 : 0 : case CFN_BUILT_IN_CTZIMAX:
6859 : 0 : if (call_expr_nargs (_p0) == 1)
6860 : : {
6861 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6862 : 0 : switch (TREE_CODE (_p1))
6863 : : {
6864 : 0 : case INTEGER_CST:
6865 : 0 : {
6866 : 0 : {
6867 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
6868 : 0 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR, CFN_BUILT_IN_CTZIMAX);
6869 : 0 : if (res) return res;
6870 : : }
6871 : 0 : break;
6872 : : }
6873 : : default:;
6874 : : }
6875 : : }
6876 : : break;
6877 : 0 : case CFN_POPCOUNT:
6878 : 0 : if (call_expr_nargs (_p0) == 1)
6879 : : {
6880 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6881 : 0 : if (integer_zerop (_p1))
6882 : : {
6883 : 0 : {
6884 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
6885 : 0 : tree res = generic_simplify_270 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR, CFN_POPCOUNT);
6886 : 0 : if (res) return res;
6887 : : }
6888 : : }
6889 : : }
6890 : : break;
6891 : 0 : case CFN_CTZ:
6892 : 0 : if (call_expr_nargs (_p0) == 2)
6893 : : {
6894 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6895 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
6896 : 0 : switch (TREE_CODE (_p1))
6897 : : {
6898 : 0 : case INTEGER_CST:
6899 : 0 : {
6900 : 0 : {
6901 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
6902 : 0 : tree res = generic_simplify_337 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
6903 : 0 : if (res) return res;
6904 : : }
6905 : 0 : break;
6906 : : }
6907 : : default:;
6908 : : }
6909 : : }
6910 : 0 : if (call_expr_nargs (_p0) == 1)
6911 : : {
6912 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6913 : 0 : switch (TREE_CODE (_p1))
6914 : : {
6915 : 0 : case INTEGER_CST:
6916 : 0 : {
6917 : 0 : {
6918 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
6919 : 0 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR, CFN_CTZ);
6920 : 0 : if (res) return res;
6921 : : }
6922 : 0 : break;
6923 : : }
6924 : : default:;
6925 : : }
6926 : : }
6927 : : break;
6928 : 0 : case CFN_FFS:
6929 : 0 : if (call_expr_nargs (_p0) == 1)
6930 : : {
6931 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6932 : 0 : switch (TREE_CODE (_p1))
6933 : : {
6934 : 0 : case INTEGER_CST:
6935 : 0 : {
6936 : 0 : {
6937 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
6938 : 0 : tree res = generic_simplify_345 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR, NE_EXPR, BIT_IOR_EXPR, CFN_FFS);
6939 : 0 : if (res) return res;
6940 : : }
6941 : 0 : break;
6942 : : }
6943 : : default:;
6944 : : }
6945 : : }
6946 : : break;
6947 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
6948 : 0 : if (call_expr_nargs (_p0) == 1)
6949 : : {
6950 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6951 : 0 : if (integer_zerop (_p1))
6952 : : {
6953 : 0 : {
6954 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
6955 : 0 : tree res = generic_simplify_270 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
6956 : 0 : if (res) return res;
6957 : : }
6958 : : }
6959 : : }
6960 : : break;
6961 : 1 : case CFN_BUILT_IN_POPCOUNTL:
6962 : 1 : if (call_expr_nargs (_p0) == 1)
6963 : : {
6964 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6965 : 1 : if (integer_zerop (_p1))
6966 : : {
6967 : 1 : {
6968 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
6969 : 1 : tree res = generic_simplify_270 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR, CFN_BUILT_IN_POPCOUNTL);
6970 : 1 : if (res) return res;
6971 : : }
6972 : : }
6973 : : }
6974 : : break;
6975 : 0 : case CFN_BUILT_IN_CTZLL:
6976 : 0 : if (call_expr_nargs (_p0) == 1)
6977 : : {
6978 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6979 : 0 : switch (TREE_CODE (_p1))
6980 : : {
6981 : 0 : case INTEGER_CST:
6982 : 0 : {
6983 : 0 : {
6984 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
6985 : 0 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR, CFN_BUILT_IN_CTZLL);
6986 : 0 : if (res) return res;
6987 : : }
6988 : 0 : break;
6989 : : }
6990 : : default:;
6991 : : }
6992 : : }
6993 : : break;
6994 : 3 : case CFN_BUILT_IN_FFSLL:
6995 : 3 : if (call_expr_nargs (_p0) == 1)
6996 : : {
6997 : 3 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6998 : 3 : switch (TREE_CODE (_p1))
6999 : : {
7000 : 3 : case INTEGER_CST:
7001 : 3 : {
7002 : 3 : {
7003 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
7004 : 3 : tree res = generic_simplify_345 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR, NE_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_FFSLL);
7005 : 3 : if (res) return res;
7006 : : }
7007 : 0 : break;
7008 : : }
7009 : : default:;
7010 : : }
7011 : : }
7012 : : break;
7013 : : default:;
7014 : : }
7015 : : break;
7016 : : default:;
7017 : : }
7018 : : return NULL_TREE;
7019 : : }
7020 : :
7021 : : tree
7022 : 5183293 : generic_simplify_GE_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
7023 : : {
7024 : 5183293 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
7025 : 5183293 : switch (TREE_CODE (_p0))
7026 : : {
7027 : 2481 : case RDIV_EXPR:
7028 : 2481 : {
7029 : 2481 : tree _q20 = TREE_OPERAND (_p0, 0);
7030 : 2481 : tree _q21 = TREE_OPERAND (_p0, 1);
7031 : 2481 : switch (TREE_CODE (_q20))
7032 : : {
7033 : 42 : case REAL_CST:
7034 : 42 : {
7035 : 42 : if (real_zerop (_p1))
7036 : : {
7037 : 2 : {
7038 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7039 : 2 : tree res = generic_simplify_311 (loc, type, _p0, _p1, captures, GE_EXPR, LE_EXPR);
7040 : 2 : if (res) return res;
7041 : : }
7042 : : }
7043 : : break;
7044 : : }
7045 : : default:;
7046 : : }
7047 : : break;
7048 : : }
7049 : 844 : case TRUNC_MOD_EXPR:
7050 : 844 : {
7051 : 844 : tree _q20 = TREE_OPERAND (_p0, 0);
7052 : 844 : tree _q21 = TREE_OPERAND (_p0, 1);
7053 : 844 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
7054 : : {
7055 : 12 : {
7056 : 12 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7057 : 12 : tree res = generic_simplify_312 (loc, type, _p0, _p1, captures, GE_EXPR);
7058 : 12 : if (res) return res;
7059 : : }
7060 : : }
7061 : : break;
7062 : : }
7063 : 24231 : case MULT_EXPR:
7064 : 24231 : {
7065 : 24231 : tree _q20 = TREE_OPERAND (_p0, 0);
7066 : 24231 : tree _q21 = TREE_OPERAND (_p0, 1);
7067 : 24231 : switch (TREE_CODE (_p1))
7068 : : {
7069 : 3355 : case MULT_EXPR:
7070 : 3355 : {
7071 : 3355 : tree _q50 = TREE_OPERAND (_p1, 0);
7072 : 3355 : tree _q51 = TREE_OPERAND (_p1, 1);
7073 : 3355 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7074 : : {
7075 : 1667 : {
7076 : 1667 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
7077 : 1667 : tree res = generic_simplify_313 (loc, type, _p0, _p1, captures, GE_EXPR);
7078 : 1667 : if (res) return res;
7079 : : }
7080 : : }
7081 : 1933 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7082 : : {
7083 : 0 : {
7084 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
7085 : 0 : tree res = generic_simplify_313 (loc, type, _p0, _p1, captures, GE_EXPR);
7086 : 0 : if (res) return res;
7087 : : }
7088 : : }
7089 : 1933 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
7090 : : {
7091 : 0 : {
7092 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
7093 : 0 : tree res = generic_simplify_313 (loc, type, _p0, _p1, captures, GE_EXPR);
7094 : 0 : if (res) return res;
7095 : : }
7096 : : }
7097 : 1933 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
7098 : : {
7099 : 1 : {
7100 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
7101 : 1 : tree res = generic_simplify_313 (loc, type, _p0, _p1, captures, GE_EXPR);
7102 : 1 : if (res) return res;
7103 : : }
7104 : : }
7105 : : break;
7106 : : }
7107 : : default:;
7108 : : }
7109 : : break;
7110 : : }
7111 : 537685 : CASE_CONVERT:
7112 : 537685 : {
7113 : 537685 : tree _q20 = TREE_OPERAND (_p0, 0);
7114 : 537685 : switch (TREE_CODE (_q20))
7115 : : {
7116 : 129 : case EXACT_DIV_EXPR:
7117 : 129 : {
7118 : 129 : tree _q30 = TREE_OPERAND (_q20, 0);
7119 : 129 : tree _q31 = TREE_OPERAND (_q20, 1);
7120 : 129 : switch (TREE_CODE (_q31))
7121 : : {
7122 : 129 : case INTEGER_CST:
7123 : 129 : {
7124 : 129 : switch (TREE_CODE (_p1))
7125 : : {
7126 : 45 : CASE_CONVERT:
7127 : 45 : {
7128 : 45 : tree _q60 = TREE_OPERAND (_p1, 0);
7129 : 45 : switch (TREE_CODE (_q60))
7130 : : {
7131 : 0 : case EXACT_DIV_EXPR:
7132 : 0 : {
7133 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
7134 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
7135 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
7136 : : {
7137 : 0 : {
7138 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q31, _q70 };
7139 : 0 : tree res = generic_simplify_188 (loc, type, _p0, _p1, captures, GE_EXPR);
7140 : 0 : if (res) return res;
7141 : : }
7142 : : }
7143 : : break;
7144 : : }
7145 : : default:;
7146 : : }
7147 : : break;
7148 : : }
7149 : : default:;
7150 : : }
7151 : : break;
7152 : : }
7153 : : default:;
7154 : : }
7155 : : break;
7156 : : }
7157 : : default:;
7158 : : }
7159 : : break;
7160 : : }
7161 : 3355 : case EXACT_DIV_EXPR:
7162 : 3355 : {
7163 : 3355 : tree _q20 = TREE_OPERAND (_p0, 0);
7164 : 3355 : tree _q21 = TREE_OPERAND (_p0, 1);
7165 : 3355 : switch (TREE_CODE (_q21))
7166 : : {
7167 : 3355 : case INTEGER_CST:
7168 : 3355 : {
7169 : 3355 : switch (TREE_CODE (_p1))
7170 : : {
7171 : 0 : case EXACT_DIV_EXPR:
7172 : 0 : {
7173 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
7174 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
7175 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7176 : : {
7177 : 0 : {
7178 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50 };
7179 : 0 : tree res = generic_simplify_188 (loc, type, _p0, _p1, captures, GE_EXPR);
7180 : 0 : if (res) return res;
7181 : : }
7182 : : }
7183 : : break;
7184 : : }
7185 : : default:;
7186 : : }
7187 : : break;
7188 : : }
7189 : : default:;
7190 : : }
7191 : : break;
7192 : : }
7193 : 31435 : case TRUNC_DIV_EXPR:
7194 : 31435 : {
7195 : 31435 : tree _q20 = TREE_OPERAND (_p0, 0);
7196 : 31435 : tree _q21 = TREE_OPERAND (_p0, 1);
7197 : 31435 : switch (TREE_CODE (_q21))
7198 : : {
7199 : 30905 : case INTEGER_CST:
7200 : 30905 : {
7201 : 30905 : switch (TREE_CODE (_p1))
7202 : : {
7203 : 29926 : case INTEGER_CST:
7204 : 29926 : {
7205 : 29926 : {
7206 : 29926 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
7207 : 29926 : tree res = generic_simplify_191 (loc, type, _p0, _p1, captures, GE_EXPR);
7208 : 29926 : if (res) return res;
7209 : : }
7210 : 0 : break;
7211 : : }
7212 : : default:;
7213 : : }
7214 : : break;
7215 : : }
7216 : : default:;
7217 : : }
7218 : : break;
7219 : : }
7220 : 688719 : case PLUS_EXPR:
7221 : 688719 : {
7222 : 688719 : tree _q20 = TREE_OPERAND (_p0, 0);
7223 : 688719 : tree _q21 = TREE_OPERAND (_p0, 1);
7224 : 688719 : switch (TREE_CODE (_p1))
7225 : : {
7226 : 43501 : case PLUS_EXPR:
7227 : 43501 : {
7228 : 43501 : tree _q50 = TREE_OPERAND (_p1, 0);
7229 : 43501 : tree _q51 = TREE_OPERAND (_p1, 1);
7230 : 43501 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7231 : : {
7232 : 760 : {
7233 : 760 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
7234 : 760 : tree res = generic_simplify_314 (loc, type, _p0, _p1, captures, GE_EXPR);
7235 : 760 : if (res) return res;
7236 : : }
7237 : : }
7238 : 43501 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7239 : : {
7240 : 17 : {
7241 : 17 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
7242 : 17 : tree res = generic_simplify_314 (loc, type, _p0, _p1, captures, GE_EXPR);
7243 : 17 : if (res) return res;
7244 : : }
7245 : : }
7246 : 43501 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
7247 : : {
7248 : 12 : {
7249 : 12 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
7250 : 12 : tree res = generic_simplify_314 (loc, type, _p0, _p1, captures, GE_EXPR);
7251 : 12 : if (res) return res;
7252 : : }
7253 : : }
7254 : 43501 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
7255 : : {
7256 : 234 : {
7257 : 234 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
7258 : 234 : tree res = generic_simplify_314 (loc, type, _p0, _p1, captures, GE_EXPR);
7259 : 234 : if (res) return res;
7260 : : }
7261 : : }
7262 : : break;
7263 : : }
7264 : 688719 : default:;
7265 : : }
7266 : 688719 : switch (TREE_CODE (_q21))
7267 : : {
7268 : 594433 : case INTEGER_CST:
7269 : 594433 : {
7270 : 594433 : switch (TREE_CODE (_p1))
7271 : : {
7272 : 9169 : case PLUS_EXPR:
7273 : 9169 : {
7274 : 9169 : tree _q50 = TREE_OPERAND (_p1, 0);
7275 : 9169 : tree _q51 = TREE_OPERAND (_p1, 1);
7276 : 9169 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7277 : : {
7278 : 756 : {
7279 : 756 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
7280 : 756 : tree res = generic_simplify_315 (loc, type, _p0, _p1, captures, GE_EXPR);
7281 : 756 : if (res) return res;
7282 : : }
7283 : : }
7284 : : break;
7285 : : }
7286 : : default:;
7287 : : }
7288 : : break;
7289 : : }
7290 : 688719 : default:;
7291 : : }
7292 : 688719 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
7293 : : {
7294 : 41303 : {
7295 : 41303 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
7296 : 41303 : tree res = generic_simplify_316 (loc, type, _p0, _p1, captures, GE_EXPR);
7297 : 41303 : if (res) return res;
7298 : : }
7299 : : }
7300 : 664528 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
7301 : : {
7302 : 24061 : {
7303 : 24061 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
7304 : 24061 : tree res = generic_simplify_316 (loc, type, _p0, _p1, captures, GE_EXPR);
7305 : 24061 : if (res) return res;
7306 : : }
7307 : : }
7308 : : break;
7309 : : }
7310 : 102010 : case MINUS_EXPR:
7311 : 102010 : {
7312 : 102010 : tree _q20 = TREE_OPERAND (_p0, 0);
7313 : 102010 : tree _q21 = TREE_OPERAND (_p0, 1);
7314 : 102010 : switch (TREE_CODE (_p1))
7315 : : {
7316 : 3065 : case MINUS_EXPR:
7317 : 3065 : {
7318 : 3065 : tree _q50 = TREE_OPERAND (_p1, 0);
7319 : 3065 : tree _q51 = TREE_OPERAND (_p1, 1);
7320 : 3065 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7321 : : {
7322 : 14 : {
7323 : 14 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
7324 : 14 : tree res = generic_simplify_317 (loc, type, _p0, _p1, captures, GE_EXPR);
7325 : 14 : if (res) return res;
7326 : : }
7327 : : }
7328 : 3065 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
7329 : : {
7330 : 22 : {
7331 : 22 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
7332 : 22 : tree res = generic_simplify_318 (loc, type, _p0, _p1, captures, GE_EXPR);
7333 : 22 : if (res) return res;
7334 : : }
7335 : : }
7336 : : break;
7337 : : }
7338 : : default:;
7339 : : }
7340 : : break;
7341 : : }
7342 : 1002 : case POINTER_DIFF_EXPR:
7343 : 1002 : {
7344 : 1002 : tree _q20 = TREE_OPERAND (_p0, 0);
7345 : 1002 : tree _q21 = TREE_OPERAND (_p0, 1);
7346 : 1002 : switch (TREE_CODE (_p1))
7347 : : {
7348 : 9 : case POINTER_DIFF_EXPR:
7349 : 9 : {
7350 : 9 : tree _q50 = TREE_OPERAND (_p1, 0);
7351 : 9 : tree _q51 = TREE_OPERAND (_p1, 1);
7352 : 9 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7353 : : {
7354 : 0 : {
7355 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50 };
7356 : 0 : tree res = generic_simplify_195 (loc, type, _p0, _p1, captures, GE_EXPR);
7357 : 0 : if (res) return res;
7358 : : }
7359 : : }
7360 : 9 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
7361 : : {
7362 : 0 : {
7363 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q51 };
7364 : 0 : tree res = generic_simplify_196 (loc, type, _p0, _p1, captures, GE_EXPR);
7365 : 0 : if (res) return res;
7366 : : }
7367 : : }
7368 : : break;
7369 : : }
7370 : : default:;
7371 : : }
7372 : : break;
7373 : : }
7374 : 5124856 : default:;
7375 : : }
7376 : 5124856 : switch (TREE_CODE (_p1))
7377 : : {
7378 : 49369 : case PLUS_EXPR:
7379 : 49369 : {
7380 : 49369 : tree _q30 = TREE_OPERAND (_p1, 0);
7381 : 49369 : tree _q31 = TREE_OPERAND (_p1, 1);
7382 : 49369 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
7383 : : {
7384 : 0 : {
7385 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q30, _p0 };
7386 : 0 : tree res = generic_simplify_316 (loc, type, _p0, _p1, captures, LE_EXPR);
7387 : 0 : if (res) return res;
7388 : : }
7389 : : }
7390 : 49369 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
7391 : : {
7392 : 0 : {
7393 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q31, _p0 };
7394 : 0 : tree res = generic_simplify_316 (loc, type, _p0, _p1, captures, LE_EXPR);
7395 : 0 : if (res) return res;
7396 : : }
7397 : : }
7398 : : break;
7399 : : }
7400 : 4074 : case MINUS_EXPR:
7401 : 4074 : {
7402 : 4074 : tree _q30 = TREE_OPERAND (_p1, 0);
7403 : 4074 : tree _q31 = TREE_OPERAND (_p1, 1);
7404 : 4074 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
7405 : : {
7406 : 0 : {
7407 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q31 };
7408 : 0 : tree res = generic_simplify_194 (loc, type, _p0, _p1, captures, GE_EXPR);
7409 : 0 : if (res) return res;
7410 : : }
7411 : : }
7412 : : break;
7413 : : }
7414 : 5124856 : default:;
7415 : : }
7416 : 5124856 : switch (TREE_CODE (_p0))
7417 : : {
7418 : 102010 : case MINUS_EXPR:
7419 : 102010 : {
7420 : 102010 : tree _q20 = TREE_OPERAND (_p0, 0);
7421 : 102010 : tree _q21 = TREE_OPERAND (_p0, 1);
7422 : 102010 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
7423 : : {
7424 : 4670 : {
7425 : 4670 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p0, _q21 };
7426 : 4670 : tree res = generic_simplify_194 (loc, type, _p0, _p1, captures, LE_EXPR);
7427 : 4670 : if (res) return res;
7428 : : }
7429 : : }
7430 : : break;
7431 : : }
7432 : 1014 : case BIT_IOR_EXPR:
7433 : 1014 : {
7434 : 1014 : tree _q20 = TREE_OPERAND (_p0, 0);
7435 : 1014 : tree _q21 = TREE_OPERAND (_p0, 1);
7436 : 1014 : if (tree_expr_nonnegative_p (_q20))
7437 : : {
7438 : 157 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
7439 : : {
7440 : 0 : {
7441 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7442 : 0 : tree res = generic_simplify_319 (loc, type, _p0, _p1, captures, GE_EXPR, BIT_IOR_EXPR);
7443 : 0 : if (res) return res;
7444 : : }
7445 : : }
7446 : : }
7447 : 1014 : if (tree_expr_nonnegative_p (_q21))
7448 : : {
7449 : 400 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
7450 : : {
7451 : 0 : {
7452 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
7453 : 0 : tree res = generic_simplify_319 (loc, type, _p0, _p1, captures, GE_EXPR, BIT_IOR_EXPR);
7454 : 0 : if (res) return res;
7455 : : }
7456 : : }
7457 : : }
7458 : : break;
7459 : : }
7460 : 5124855 : default:;
7461 : : }
7462 : 5124855 : switch (TREE_CODE (_p1))
7463 : : {
7464 : 152 : case BIT_AND_EXPR:
7465 : 152 : {
7466 : 152 : tree _q30 = TREE_OPERAND (_p1, 0);
7467 : 152 : tree _q31 = TREE_OPERAND (_p1, 1);
7468 : 152 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
7469 : : {
7470 : 0 : if (tree_expr_nonnegative_p (_q30))
7471 : : {
7472 : 0 : {
7473 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
7474 : 0 : tree res = generic_simplify_319 (loc, type, _p0, _p1, captures, LE_EXPR, BIT_AND_EXPR);
7475 : 0 : if (res) return res;
7476 : : }
7477 : : }
7478 : : }
7479 : 152 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
7480 : : {
7481 : 0 : if (tree_expr_nonnegative_p (_q31))
7482 : : {
7483 : 0 : {
7484 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
7485 : 0 : tree res = generic_simplify_319 (loc, type, _p0, _p1, captures, LE_EXPR, BIT_AND_EXPR);
7486 : 0 : if (res) return res;
7487 : : }
7488 : : }
7489 : : }
7490 : : break;
7491 : : }
7492 : 5124855 : default:;
7493 : : }
7494 : 5124855 : switch (TREE_CODE (_p0))
7495 : : {
7496 : 2886 : case MIN_EXPR:
7497 : 2886 : {
7498 : 2886 : tree _q20 = TREE_OPERAND (_p0, 0);
7499 : 2886 : tree _q21 = TREE_OPERAND (_p0, 1);
7500 : 2886 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
7501 : : {
7502 : 0 : {
7503 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7504 : 0 : tree res = generic_simplify_204 (loc, type, _p0, _p1, captures, MIN_EXPR, GE_EXPR, LE_EXPR);
7505 : 0 : if (res) return res;
7506 : : }
7507 : : }
7508 : 2886 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
7509 : : {
7510 : 1 : {
7511 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
7512 : 1 : tree res = generic_simplify_204 (loc, type, _p0, _p1, captures, MIN_EXPR, GE_EXPR, LE_EXPR);
7513 : 1 : if (res) return res;
7514 : : }
7515 : : }
7516 : 2885 : switch (TREE_CODE (_q21))
7517 : : {
7518 : 889 : case INTEGER_CST:
7519 : 889 : {
7520 : 889 : switch (TREE_CODE (_p1))
7521 : : {
7522 : 0 : case INTEGER_CST:
7523 : 0 : {
7524 : 0 : {
7525 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7526 : 0 : tree res = generic_simplify_320 (loc, type, _p0, _p1, captures, MIN_EXPR, GE_EXPR, BIT_AND_EXPR);
7527 : 0 : if (res) return res;
7528 : : }
7529 : 0 : break;
7530 : : }
7531 : : default:;
7532 : : }
7533 : : break;
7534 : : }
7535 : : default:;
7536 : : }
7537 : : break;
7538 : : }
7539 : 5124854 : default:;
7540 : : }
7541 : 5124854 : switch (TREE_CODE (_p1))
7542 : : {
7543 : 255 : case MAX_EXPR:
7544 : 255 : {
7545 : 255 : tree _q30 = TREE_OPERAND (_p1, 0);
7546 : 255 : tree _q31 = TREE_OPERAND (_p1, 1);
7547 : 255 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
7548 : : {
7549 : 0 : {
7550 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
7551 : 0 : tree res = generic_simplify_204 (loc, type, _p0, _p1, captures, MAX_EXPR, LE_EXPR, GE_EXPR);
7552 : 0 : if (res) return res;
7553 : : }
7554 : : }
7555 : 255 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
7556 : : {
7557 : 0 : {
7558 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
7559 : 0 : tree res = generic_simplify_204 (loc, type, _p0, _p1, captures, MAX_EXPR, LE_EXPR, GE_EXPR);
7560 : 0 : if (res) return res;
7561 : : }
7562 : : }
7563 : : break;
7564 : : }
7565 : 46 : case MIN_EXPR:
7566 : 46 : {
7567 : 46 : tree _q30 = TREE_OPERAND (_p1, 0);
7568 : 46 : tree _q31 = TREE_OPERAND (_p1, 1);
7569 : 46 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
7570 : : {
7571 : 0 : {
7572 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
7573 : 0 : tree res = generic_simplify_321 (loc, type, _p0, _p1, captures, MIN_EXPR, GE_EXPR);
7574 : 0 : if (res) return res;
7575 : : }
7576 : : }
7577 : 46 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
7578 : : {
7579 : 0 : {
7580 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
7581 : 0 : tree res = generic_simplify_321 (loc, type, _p0, _p1, captures, MIN_EXPR, GE_EXPR);
7582 : 0 : if (res) return res;
7583 : : }
7584 : : }
7585 : : break;
7586 : : }
7587 : 5124854 : default:;
7588 : : }
7589 : 5124854 : switch (TREE_CODE (_p0))
7590 : : {
7591 : 792 : case MAX_EXPR:
7592 : 792 : {
7593 : 792 : tree _q20 = TREE_OPERAND (_p0, 0);
7594 : 792 : tree _q21 = TREE_OPERAND (_p0, 1);
7595 : 792 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
7596 : : {
7597 : 0 : {
7598 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7599 : 0 : tree res = generic_simplify_321 (loc, type, _p0, _p1, captures, MAX_EXPR, LE_EXPR);
7600 : 0 : if (res) return res;
7601 : : }
7602 : : }
7603 : 792 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
7604 : : {
7605 : 2 : {
7606 : 2 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
7607 : 2 : tree res = generic_simplify_321 (loc, type, _p0, _p1, captures, MAX_EXPR, LE_EXPR);
7608 : 2 : if (res) return res;
7609 : : }
7610 : : }
7611 : 790 : switch (TREE_CODE (_q21))
7612 : : {
7613 : 713 : case INTEGER_CST:
7614 : 713 : {
7615 : 713 : switch (TREE_CODE (_p1))
7616 : : {
7617 : 0 : case INTEGER_CST:
7618 : 0 : {
7619 : 0 : {
7620 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7621 : 0 : tree res = generic_simplify_320 (loc, type, _p0, _p1, captures, MAX_EXPR, GE_EXPR, BIT_IOR_EXPR);
7622 : 0 : if (res) return res;
7623 : : }
7624 : 0 : break;
7625 : : }
7626 : : default:;
7627 : : }
7628 : : break;
7629 : : }
7630 : : default:;
7631 : : }
7632 : : break;
7633 : : }
7634 : 6 : case VEC_COND_EXPR:
7635 : 6 : {
7636 : 6 : tree _q20 = TREE_OPERAND (_p0, 0);
7637 : 6 : tree _q21 = TREE_OPERAND (_p0, 1);
7638 : 6 : tree _q22 = TREE_OPERAND (_p0, 2);
7639 : 6 : switch (TREE_CODE (_p1))
7640 : : {
7641 : 0 : case VEC_COND_EXPR:
7642 : 0 : {
7643 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
7644 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
7645 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
7646 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
7647 : : {
7648 : 0 : {
7649 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
7650 : 0 : if (TREE_CODE_CLASS (GE_EXPR) != tcc_comparison
7651 : 0 : || types_match (type, TREE_TYPE (captures[2]))
7652 : 0 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
7653 : : || (optimize_vectors_before_lowering_p ()
7654 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
7655 : 0 : TREE_TYPE (captures[1]), ERROR_MARK))
7656 : : )
7657 : : {
7658 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1488;
7659 : 0 : {
7660 : 0 : tree res_op0;
7661 : 0 : res_op0 = captures[1];
7662 : 0 : tree res_op1;
7663 : 0 : {
7664 : 0 : tree _o1[2], _r1;
7665 : 0 : _o1[0] = captures[2];
7666 : 0 : _o1[1] = captures[5];
7667 : 0 : _r1 = fold_build2_loc (loc, GE_EXPR, type, _o1[0], _o1[1]);
7668 : 0 : if (EXPR_P (_r1))
7669 : 0 : goto next_after_fail1488;
7670 : 0 : res_op1 = _r1;
7671 : : }
7672 : 0 : tree res_op2;
7673 : 0 : {
7674 : 0 : tree _o1[2], _r1;
7675 : 0 : _o1[0] = captures[3];
7676 : 0 : _o1[1] = captures[6];
7677 : 0 : _r1 = fold_build2_loc (loc, GE_EXPR, type, _o1[0], _o1[1]);
7678 : 0 : if (EXPR_P (_r1))
7679 : 0 : goto next_after_fail1488;
7680 : 0 : res_op2 = _r1;
7681 : : }
7682 : 0 : tree _r;
7683 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
7684 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 793, __FILE__, __LINE__, true);
7685 : 0 : return _r;
7686 : : }
7687 : 0 : next_after_fail1488:;
7688 : : }
7689 : : }
7690 : : }
7691 : : break;
7692 : : }
7693 : 6 : default:;
7694 : : }
7695 : 6 : {
7696 : 6 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
7697 : 6 : if (TREE_CODE_CLASS (GE_EXPR) != tcc_comparison
7698 : 6 : || types_match (type, TREE_TYPE (captures[2]))
7699 : 6 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
7700 : : || (optimize_vectors_before_lowering_p ()
7701 : 4 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
7702 : 4 : TREE_TYPE (captures[1]), ERROR_MARK))
7703 : : )
7704 : : {
7705 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1489;
7706 : 3 : {
7707 : 3 : if (! tree_invariant_p (captures[4])) goto next_after_fail1489;
7708 : 2 : tree res_op0;
7709 : 2 : res_op0 = captures[1];
7710 : 2 : tree res_op1;
7711 : 2 : {
7712 : 2 : tree _o1[2], _r1;
7713 : 2 : _o1[0] = captures[2];
7714 : 2 : _o1[1] = unshare_expr (captures[4]);
7715 : 2 : _r1 = fold_build2_loc (loc, GE_EXPR, type, _o1[0], _o1[1]);
7716 : 2 : if (EXPR_P (_r1))
7717 : 0 : goto next_after_fail1489;
7718 : 2 : res_op1 = _r1;
7719 : : }
7720 : 2 : tree res_op2;
7721 : 2 : {
7722 : 2 : tree _o1[2], _r1;
7723 : 2 : _o1[0] = captures[3];
7724 : 2 : _o1[1] = captures[4];
7725 : 2 : _r1 = fold_build2_loc (loc, GE_EXPR, type, _o1[0], _o1[1]);
7726 : 2 : if (EXPR_P (_r1))
7727 : 0 : goto next_after_fail1489;
7728 : 2 : res_op2 = _r1;
7729 : : }
7730 : 2 : tree _r;
7731 : 2 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
7732 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 794, __FILE__, __LINE__, true);
7733 : 2 : return _r;
7734 : : }
7735 : 4 : next_after_fail1489:;
7736 : : }
7737 : : }
7738 : 4 : break;
7739 : : }
7740 : 5124850 : default:;
7741 : : }
7742 : 5124850 : switch (TREE_CODE (_p1))
7743 : : {
7744 : 0 : case VEC_COND_EXPR:
7745 : 0 : {
7746 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
7747 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
7748 : 0 : tree _q32 = TREE_OPERAND (_p1, 2);
7749 : 0 : {
7750 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
7751 : 0 : if (TREE_CODE_CLASS (GE_EXPR) != tcc_comparison
7752 : 0 : || types_match (type, TREE_TYPE (captures[3]))
7753 : 0 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]), ERROR_MARK)
7754 : : || (optimize_vectors_before_lowering_p ()
7755 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]),
7756 : 0 : TREE_TYPE (captures[2]), ERROR_MARK))
7757 : : )
7758 : : {
7759 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1490;
7760 : 0 : {
7761 : 0 : if (! tree_invariant_p (captures[0])) goto next_after_fail1490;
7762 : 0 : tree res_op0;
7763 : 0 : res_op0 = captures[2];
7764 : 0 : tree res_op1;
7765 : 0 : {
7766 : 0 : tree _o1[2], _r1;
7767 : 0 : _o1[0] = unshare_expr (captures[0]);
7768 : 0 : _o1[1] = captures[3];
7769 : 0 : _r1 = fold_build2_loc (loc, GE_EXPR, type, _o1[0], _o1[1]);
7770 : 0 : if (EXPR_P (_r1))
7771 : 0 : goto next_after_fail1490;
7772 : 0 : res_op1 = _r1;
7773 : : }
7774 : 0 : tree res_op2;
7775 : 0 : {
7776 : 0 : tree _o1[2], _r1;
7777 : 0 : _o1[0] = captures[0];
7778 : 0 : _o1[1] = captures[4];
7779 : 0 : _r1 = fold_build2_loc (loc, GE_EXPR, type, _o1[0], _o1[1]);
7780 : 0 : if (EXPR_P (_r1))
7781 : 0 : goto next_after_fail1490;
7782 : 0 : res_op2 = _r1;
7783 : : }
7784 : 0 : tree _r;
7785 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
7786 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 795, __FILE__, __LINE__, true);
7787 : 0 : return _r;
7788 : : }
7789 : 0 : next_after_fail1490:;
7790 : : }
7791 : : }
7792 : 0 : break;
7793 : : }
7794 : 5124850 : default:;
7795 : : }
7796 : 5124850 : if (uniform_integer_cst_p (_p1))
7797 : : {
7798 : 2412578 : {
7799 : 2412578 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
7800 : 2412578 : tree res = generic_simplify_322 (loc, type, _p0, _p1, captures, GE_EXPR, GT_EXPR);
7801 : 2412578 : if (res) return res;
7802 : : }
7803 : : }
7804 : 3950766 : switch (TREE_CODE (_p0))
7805 : : {
7806 : 19359 : case MULT_EXPR:
7807 : 19359 : {
7808 : 19359 : tree _q20 = TREE_OPERAND (_p0, 0);
7809 : 19359 : tree _q21 = TREE_OPERAND (_p0, 1);
7810 : 19359 : switch (TREE_CODE (_q21))
7811 : : {
7812 : 15777 : case INTEGER_CST:
7813 : 15777 : {
7814 : 15777 : if (integer_zerop (_p1))
7815 : : {
7816 : 2583 : {
7817 : 2583 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
7818 : 2583 : tree res = generic_simplify_224 (loc, type, _p0, _p1, captures, GE_EXPR, LE_EXPR);
7819 : 2583 : if (res) return res;
7820 : : }
7821 : : }
7822 : : break;
7823 : : }
7824 : : default:;
7825 : : }
7826 : : break;
7827 : : }
7828 : 3950361 : default:;
7829 : : }
7830 : 3950361 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
7831 : : {
7832 : 264 : {
7833 : 264 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
7834 : 264 : tree res = generic_simplify_226 (loc, type, _p0, _p1, captures, GE_EXPR);
7835 : 264 : if (res) return res;
7836 : : }
7837 : : }
7838 : 3950131 : switch (TREE_CODE (_p0))
7839 : : {
7840 : 402 : case BIT_NOT_EXPR:
7841 : 402 : {
7842 : 402 : tree _q20 = TREE_OPERAND (_p0, 0);
7843 : 402 : switch (TREE_CODE (_p1))
7844 : : {
7845 : 1 : case BIT_NOT_EXPR:
7846 : 1 : {
7847 : 1 : tree _q40 = TREE_OPERAND (_p1, 0);
7848 : 1 : {
7849 : 1 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _p1, _q40 };
7850 : 1 : tree res = generic_simplify_228 (loc, type, _p0, _p1, captures, GE_EXPR);
7851 : 1 : if (res) return res;
7852 : : }
7853 : 0 : break;
7854 : : }
7855 : 401 : default:;
7856 : : }
7857 : 401 : {
7858 : 401 : tree _p1_pops[1];
7859 : 401 : if (tree_nop_convert (_p1, _p1_pops))
7860 : : {
7861 : 50 : tree _q40 = _p1_pops[0];
7862 : 50 : switch (TREE_CODE (_q40))
7863 : : {
7864 : 0 : case BIT_NOT_EXPR:
7865 : 0 : {
7866 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
7867 : 0 : {
7868 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q40, _q50 };
7869 : 0 : tree res = generic_simplify_228 (loc, type, _p0, _p1, captures, GE_EXPR);
7870 : 0 : if (res) return res;
7871 : : }
7872 : 0 : break;
7873 : : }
7874 : : default:;
7875 : : }
7876 : : }
7877 : : }
7878 : 401 : if (CONSTANT_CLASS_P (_p1))
7879 : : {
7880 : 92 : {
7881 : 92 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
7882 : 92 : tree res = generic_simplify_229 (loc, type, _p0, _p1, captures, GE_EXPR, LE_EXPR);
7883 : 92 : if (res) return res;
7884 : : }
7885 : : }
7886 : : break;
7887 : : }
7888 : 3950038 : default:;
7889 : : }
7890 : 3950038 : {
7891 : 3950038 : tree _p0_pops[1];
7892 : 3950038 : if (tree_nop_convert (_p0, _p0_pops))
7893 : : {
7894 : 171315 : tree _q20 = _p0_pops[0];
7895 : 171315 : switch (TREE_CODE (_q20))
7896 : : {
7897 : 4 : case BIT_NOT_EXPR:
7898 : 4 : {
7899 : 4 : tree _q30 = TREE_OPERAND (_q20, 0);
7900 : 4 : switch (TREE_CODE (_p1))
7901 : : {
7902 : 0 : case BIT_NOT_EXPR:
7903 : 0 : {
7904 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
7905 : 0 : {
7906 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _p1, _q50 };
7907 : 0 : tree res = generic_simplify_230 (loc, type, _p0, _p1, captures, GE_EXPR);
7908 : 0 : if (res) return res;
7909 : : }
7910 : 0 : break;
7911 : : }
7912 : 4 : default:;
7913 : : }
7914 : 4 : {
7915 : 4 : tree _p1_pops[1];
7916 : 4 : if (tree_nop_convert (_p1, _p1_pops))
7917 : : {
7918 : 0 : tree _q50 = _p1_pops[0];
7919 : 0 : switch (TREE_CODE (_q50))
7920 : : {
7921 : 0 : case BIT_NOT_EXPR:
7922 : 0 : {
7923 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
7924 : 0 : {
7925 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q50, _q60 };
7926 : 0 : tree res = generic_simplify_230 (loc, type, _p0, _p1, captures, GE_EXPR);
7927 : 0 : if (res) return res;
7928 : : }
7929 : 0 : break;
7930 : : }
7931 : : default:;
7932 : : }
7933 : : }
7934 : : }
7935 : 4 : if (CONSTANT_CLASS_P (_p1))
7936 : : {
7937 : 0 : {
7938 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
7939 : 0 : tree res = generic_simplify_229 (loc, type, _p0, _p1, captures, GE_EXPR, LE_EXPR);
7940 : 0 : if (res) return res;
7941 : : }
7942 : : }
7943 : : break;
7944 : : }
7945 : : default:;
7946 : : }
7947 : : }
7948 : : }
7949 : 3950038 : switch (TREE_CODE (_p1))
7950 : : {
7951 : 597089 : case REAL_CST:
7952 : 597089 : {
7953 : 597089 : {
7954 : 597089 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
7955 : 597089 : tree res = generic_simplify_231 (loc, type, _p0, _p1, captures, GE_EXPR);
7956 : 597089 : if (res) return res;
7957 : : }
7958 : 597008 : break;
7959 : : }
7960 : 3949957 : default:;
7961 : : }
7962 : 3949957 : switch (TREE_CODE (_p0))
7963 : : {
7964 : 598482 : case PLUS_EXPR:
7965 : 598482 : {
7966 : 598482 : tree _q20 = TREE_OPERAND (_p0, 0);
7967 : 598482 : tree _q21 = TREE_OPERAND (_p0, 1);
7968 : 598482 : switch (TREE_CODE (_q21))
7969 : : {
7970 : 148 : case REAL_CST:
7971 : 148 : {
7972 : 148 : switch (TREE_CODE (_p1))
7973 : : {
7974 : 28 : case REAL_CST:
7975 : 28 : {
7976 : 28 : {
7977 : 28 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7978 : 28 : tree res = generic_simplify_232 (loc, type, _p0, _p1, captures, PLUS_EXPR, GE_EXPR);
7979 : 28 : if (res) return res;
7980 : : }
7981 : 28 : break;
7982 : : }
7983 : : default:;
7984 : : }
7985 : : break;
7986 : : }
7987 : 504277 : case INTEGER_CST:
7988 : 504277 : {
7989 : 504277 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
7990 : : {
7991 : 15706 : {
7992 : 15706 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q20, _q21 };
7993 : 15706 : tree res = generic_simplify_323 (loc, type, _p0, _p1, captures, GE_EXPR, LE_EXPR);
7994 : 15706 : if (res) return res;
7995 : : }
7996 : : }
7997 : : break;
7998 : : }
7999 : : default:;
8000 : : }
8001 : : break;
8002 : : }
8003 : 49513 : case MINUS_EXPR:
8004 : 49513 : {
8005 : 49513 : tree _q20 = TREE_OPERAND (_p0, 0);
8006 : 49513 : tree _q21 = TREE_OPERAND (_p0, 1);
8007 : 49513 : switch (TREE_CODE (_q21))
8008 : : {
8009 : 31 : case REAL_CST:
8010 : 31 : {
8011 : 31 : switch (TREE_CODE (_p1))
8012 : : {
8013 : 31 : case REAL_CST:
8014 : 31 : {
8015 : 31 : {
8016 : 31 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
8017 : 31 : tree res = generic_simplify_232 (loc, type, _p0, _p1, captures, MINUS_EXPR, GE_EXPR);
8018 : 31 : if (res) return res;
8019 : : }
8020 : 31 : break;
8021 : : }
8022 : : default:;
8023 : : }
8024 : : break;
8025 : : }
8026 : 49513 : default:;
8027 : : }
8028 : 49513 : switch (TREE_CODE (_q20))
8029 : : {
8030 : 24 : case REAL_CST:
8031 : 24 : {
8032 : 24 : switch (TREE_CODE (_p1))
8033 : : {
8034 : 0 : case REAL_CST:
8035 : 0 : {
8036 : 0 : {
8037 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
8038 : 0 : tree res = generic_simplify_233 (loc, type, _p0, _p1, captures, GE_EXPR);
8039 : 0 : if (res) return res;
8040 : : }
8041 : 0 : break;
8042 : : }
8043 : : default:;
8044 : : }
8045 : : break;
8046 : : }
8047 : : default:;
8048 : : }
8049 : : break;
8050 : : }
8051 : 39651 : case FLOAT_EXPR:
8052 : 39651 : {
8053 : 39651 : tree _q20 = TREE_OPERAND (_p0, 0);
8054 : 39651 : switch (TREE_CODE (_p1))
8055 : : {
8056 : 7 : case FLOAT_EXPR:
8057 : 7 : {
8058 : 7 : tree _q40 = TREE_OPERAND (_p1, 0);
8059 : 7 : {
8060 : 7 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
8061 : 7 : tree res = generic_simplify_236 (loc, type, _p0, _p1, captures, GE_EXPR, GE_EXPR);
8062 : 7 : if (res) return res;
8063 : : }
8064 : 0 : break;
8065 : : }
8066 : 38200 : case REAL_CST:
8067 : 38200 : {
8068 : 38200 : {
8069 : 38200 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
8070 : 38200 : tree res = generic_simplify_237 (loc, type, _p0, _p1, captures, GE_EXPR, GE_EXPR);
8071 : 38200 : if (res) return res;
8072 : : }
8073 : 19141 : break;
8074 : : }
8075 : : default:;
8076 : : }
8077 : : break;
8078 : : }
8079 : 1335 : case EXACT_DIV_EXPR:
8080 : 1335 : {
8081 : 1335 : tree _q20 = TREE_OPERAND (_p0, 0);
8082 : 1335 : tree _q21 = TREE_OPERAND (_p0, 1);
8083 : 1335 : switch (TREE_CODE (_q21))
8084 : : {
8085 : 1335 : case INTEGER_CST:
8086 : 1335 : {
8087 : 1335 : switch (TREE_CODE (_p1))
8088 : : {
8089 : 0 : case INTEGER_CST:
8090 : 0 : {
8091 : 0 : {
8092 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
8093 : 0 : tree res = generic_simplify_324 (loc, type, _p0, _p1, captures, GE_EXPR);
8094 : 0 : if (res) return res;
8095 : : }
8096 : 0 : break;
8097 : : }
8098 : : default:;
8099 : : }
8100 : : break;
8101 : : }
8102 : : default:;
8103 : : }
8104 : : break;
8105 : : }
8106 : 323415 : CASE_CONVERT:
8107 : 323415 : {
8108 : 323415 : tree _q20 = TREE_OPERAND (_p0, 0);
8109 : 323415 : switch (TREE_CODE (_q20))
8110 : : {
8111 : 129 : case EXACT_DIV_EXPR:
8112 : 129 : {
8113 : 129 : tree _q30 = TREE_OPERAND (_q20, 0);
8114 : 129 : tree _q31 = TREE_OPERAND (_q20, 1);
8115 : 129 : switch (TREE_CODE (_q31))
8116 : : {
8117 : 129 : case INTEGER_CST:
8118 : 129 : {
8119 : 129 : switch (TREE_CODE (_p1))
8120 : : {
8121 : 0 : case INTEGER_CST:
8122 : 0 : {
8123 : 0 : {
8124 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
8125 : 0 : tree res = generic_simplify_325 (loc, type, _p0, _p1, captures, GE_EXPR, LT_EXPR);
8126 : 0 : if (res) return res;
8127 : : }
8128 : 0 : break;
8129 : : }
8130 : : default:;
8131 : : }
8132 : : break;
8133 : : }
8134 : : default:;
8135 : : }
8136 : : break;
8137 : : }
8138 : 323415 : default:;
8139 : : }
8140 : 323415 : switch (TREE_CODE (_p1))
8141 : : {
8142 : 63217 : CASE_CONVERT:
8143 : 63217 : {
8144 : 63217 : tree _q40 = TREE_OPERAND (_p1, 0);
8145 : 63217 : {
8146 : 63217 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
8147 : 63217 : tree res = generic_simplify_241 (loc, type, _p0, _p1, captures, GE_EXPR);
8148 : 63217 : if (res) return res;
8149 : : }
8150 : 52293 : break;
8151 : : }
8152 : 312491 : default:;
8153 : : }
8154 : 312491 : {
8155 : 312491 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
8156 : 312491 : tree res = generic_simplify_242 (loc, type, _p0, _p1, captures, GE_EXPR);
8157 : 312491 : if (res) return res;
8158 : : }
8159 : 273637 : switch (TREE_CODE (_q20))
8160 : : {
8161 : 524 : case ADDR_EXPR:
8162 : 524 : {
8163 : 524 : switch (TREE_CODE (_p1))
8164 : : {
8165 : 198 : CASE_CONVERT:
8166 : 198 : {
8167 : 198 : tree _q40 = TREE_OPERAND (_p1, 0);
8168 : 198 : switch (TREE_CODE (_q40))
8169 : : {
8170 : 198 : case ADDR_EXPR:
8171 : 198 : {
8172 : 198 : {
8173 : 198 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
8174 : 198 : tree res = generic_simplify_259 (loc, type, _p0, _p1, captures, GE_EXPR);
8175 : 198 : if (res) return res;
8176 : : }
8177 : 137 : break;
8178 : : }
8179 : : default:;
8180 : : }
8181 : : break;
8182 : : }
8183 : 0 : case ADDR_EXPR:
8184 : 0 : {
8185 : 0 : {
8186 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
8187 : 0 : tree res = generic_simplify_259 (loc, type, _p0, _p1, captures, GE_EXPR);
8188 : 0 : if (res) return res;
8189 : : }
8190 : 0 : break;
8191 : : }
8192 : : default:;
8193 : : }
8194 : : break;
8195 : : }
8196 : 273576 : default:;
8197 : : }
8198 : 273576 : if (uniform_integer_cst_p (_p1))
8199 : : {
8200 : 93482 : {
8201 : 93482 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
8202 : 93482 : tree res = generic_simplify_326 (loc, type, _p0, _p1, captures, GE_EXPR);
8203 : 93482 : if (res) return res;
8204 : : }
8205 : : }
8206 : : break;
8207 : : }
8208 : 611 : case NEGATE_EXPR:
8209 : 611 : {
8210 : 611 : tree _q20 = TREE_OPERAND (_p0, 0);
8211 : 611 : switch (TREE_CODE (_p1))
8212 : : {
8213 : 0 : case NEGATE_EXPR:
8214 : 0 : {
8215 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
8216 : 0 : {
8217 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
8218 : 0 : tree res = generic_simplify_239 (loc, type, _p0, _p1, captures, GE_EXPR, LE_EXPR);
8219 : 0 : if (res) return res;
8220 : : }
8221 : 0 : break;
8222 : : }
8223 : 611 : default:;
8224 : : }
8225 : 611 : if (CONSTANT_CLASS_P (_p1))
8226 : : {
8227 : 135 : {
8228 : 135 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
8229 : 135 : tree res = generic_simplify_240 (loc, type, _p0, _p1, captures, GE_EXPR, LE_EXPR);
8230 : 135 : if (res) return res;
8231 : : }
8232 : : }
8233 : : break;
8234 : : }
8235 : 3240 : case ADDR_EXPR:
8236 : 3240 : {
8237 : 3240 : switch (TREE_CODE (_p1))
8238 : : {
8239 : 5 : CASE_CONVERT:
8240 : 5 : {
8241 : 5 : tree _q30 = TREE_OPERAND (_p1, 0);
8242 : 5 : switch (TREE_CODE (_q30))
8243 : : {
8244 : 0 : case ADDR_EXPR:
8245 : 0 : {
8246 : 0 : {
8247 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q30 };
8248 : 0 : tree res = generic_simplify_260 (loc, type, _p0, _p1, captures, GE_EXPR);
8249 : 0 : if (res) return res;
8250 : : }
8251 : 0 : break;
8252 : : }
8253 : : default:;
8254 : : }
8255 : : break;
8256 : : }
8257 : 744 : case ADDR_EXPR:
8258 : 744 : {
8259 : 744 : {
8260 : 744 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _p1 };
8261 : 744 : tree res = generic_simplify_260 (loc, type, _p0, _p1, captures, GE_EXPR);
8262 : 744 : if (res) return res;
8263 : : }
8264 : 60 : break;
8265 : : }
8266 : : default:;
8267 : : }
8268 : : break;
8269 : : }
8270 : 108384 : case CALL_EXPR:
8271 : 108384 : switch (get_call_combined_fn (_p0))
8272 : : {
8273 : 2 : case CFN_BUILT_IN_SQRTF:
8274 : 2 : if (call_expr_nargs (_p0) == 1)
8275 : : {
8276 : 2 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8277 : 2 : switch (TREE_CODE (_p1))
8278 : : {
8279 : 2 : case REAL_CST:
8280 : 2 : {
8281 : 2 : {
8282 : 2 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
8283 : 2 : tree res = generic_simplify_234 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTF, GE_EXPR);
8284 : 2 : if (res) return res;
8285 : : }
8286 : 0 : break;
8287 : : }
8288 : 0 : case CALL_EXPR:
8289 : 0 : switch (get_call_combined_fn (_p1))
8290 : : {
8291 : 0 : case CFN_BUILT_IN_SQRTF:
8292 : 0 : if (call_expr_nargs (_p1) == 1)
8293 : : {
8294 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
8295 : 0 : {
8296 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
8297 : 0 : tree res = generic_simplify_235 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTF, GE_EXPR);
8298 : 0 : if (res) return res;
8299 : : }
8300 : : }
8301 : : break;
8302 : : default:;
8303 : : }
8304 : : break;
8305 : : default:;
8306 : : }
8307 : : }
8308 : : break;
8309 : 0 : case CFN_BUILT_IN_SQRTL:
8310 : 0 : if (call_expr_nargs (_p0) == 1)
8311 : : {
8312 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8313 : 0 : switch (TREE_CODE (_p1))
8314 : : {
8315 : 0 : case REAL_CST:
8316 : 0 : {
8317 : 0 : {
8318 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
8319 : 0 : tree res = generic_simplify_234 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTL, GE_EXPR);
8320 : 0 : if (res) return res;
8321 : : }
8322 : 0 : break;
8323 : : }
8324 : 0 : case CALL_EXPR:
8325 : 0 : switch (get_call_combined_fn (_p1))
8326 : : {
8327 : 0 : case CFN_BUILT_IN_SQRTL:
8328 : 0 : if (call_expr_nargs (_p1) == 1)
8329 : : {
8330 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
8331 : 0 : {
8332 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
8333 : 0 : tree res = generic_simplify_235 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTL, GE_EXPR);
8334 : 0 : if (res) return res;
8335 : : }
8336 : : }
8337 : : break;
8338 : : default:;
8339 : : }
8340 : : break;
8341 : : default:;
8342 : : }
8343 : : }
8344 : : break;
8345 : 1 : case CFN_BUILT_IN_SQRT:
8346 : 1 : if (call_expr_nargs (_p0) == 1)
8347 : : {
8348 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8349 : 1 : switch (TREE_CODE (_p1))
8350 : : {
8351 : 1 : case REAL_CST:
8352 : 1 : {
8353 : 1 : {
8354 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
8355 : 1 : tree res = generic_simplify_234 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRT, GE_EXPR);
8356 : 1 : if (res) return res;
8357 : : }
8358 : 1 : break;
8359 : : }
8360 : 0 : case CALL_EXPR:
8361 : 0 : switch (get_call_combined_fn (_p1))
8362 : : {
8363 : 0 : case CFN_BUILT_IN_SQRT:
8364 : 0 : if (call_expr_nargs (_p1) == 1)
8365 : : {
8366 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
8367 : 0 : {
8368 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
8369 : 0 : tree res = generic_simplify_235 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRT, GE_EXPR);
8370 : 0 : if (res) return res;
8371 : : }
8372 : : }
8373 : : break;
8374 : : default:;
8375 : : }
8376 : : break;
8377 : : default:;
8378 : : }
8379 : : }
8380 : : break;
8381 : 0 : case CFN_SQRT:
8382 : 0 : if (call_expr_nargs (_p0) == 1)
8383 : : {
8384 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8385 : 0 : switch (TREE_CODE (_p1))
8386 : : {
8387 : 0 : case REAL_CST:
8388 : 0 : {
8389 : 0 : {
8390 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
8391 : 0 : tree res = generic_simplify_234 (loc, type, _p0, _p1, captures, CFN_SQRT, GE_EXPR);
8392 : 0 : if (res) return res;
8393 : : }
8394 : 0 : break;
8395 : : }
8396 : 0 : case CALL_EXPR:
8397 : 0 : switch (get_call_combined_fn (_p1))
8398 : : {
8399 : 0 : case CFN_SQRT:
8400 : 0 : if (call_expr_nargs (_p1) == 1)
8401 : : {
8402 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
8403 : 0 : {
8404 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
8405 : 0 : tree res = generic_simplify_235 (loc, type, _p0, _p1, captures, CFN_SQRT, GE_EXPR);
8406 : 0 : if (res) return res;
8407 : : }
8408 : : }
8409 : : break;
8410 : : default:;
8411 : : }
8412 : : break;
8413 : : default:;
8414 : : }
8415 : : }
8416 : : break;
8417 : : default:;
8418 : : }
8419 : : break;
8420 : 3855403 : default:;
8421 : : }
8422 : 3855403 : if (uniform_integer_cst_p (_p1))
8423 : : {
8424 : 1190084 : {
8425 : 1190084 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _p1 };
8426 : 1190084 : tree res = generic_simplify_327 (loc, type, _p0, _p1, captures, GE_EXPR);
8427 : 1190084 : if (res) return res;
8428 : : }
8429 : : }
8430 : 3604865 : switch (TREE_CODE (_p0))
8431 : : {
8432 : 263799 : CASE_CONVERT:
8433 : 263799 : {
8434 : 263799 : tree _q20 = TREE_OPERAND (_p0, 0);
8435 : 263799 : switch (TREE_CODE (_q20))
8436 : : {
8437 : 31409 : case PLUS_EXPR:
8438 : 31409 : {
8439 : 31409 : tree _q30 = TREE_OPERAND (_q20, 0);
8440 : 31409 : tree _q31 = TREE_OPERAND (_q20, 1);
8441 : 31409 : switch (TREE_CODE (_q30))
8442 : : {
8443 : 21288 : CASE_CONVERT:
8444 : 21288 : {
8445 : 21288 : tree _q40 = TREE_OPERAND (_q30, 0);
8446 : 21288 : switch (TREE_CODE (_q31))
8447 : : {
8448 : 21287 : case INTEGER_CST:
8449 : 21287 : {
8450 : 21287 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
8451 : : {
8452 : 123 : {
8453 : 123 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q40, _q31 };
8454 : 123 : tree res = generic_simplify_328 (loc, type, _p0, _p1, captures, GE_EXPR, LE_EXPR);
8455 : 123 : if (res) return res;
8456 : : }
8457 : : }
8458 : : break;
8459 : : }
8460 : : default:;
8461 : : }
8462 : : break;
8463 : : }
8464 : : default:;
8465 : : }
8466 : : break;
8467 : : }
8468 : : default:;
8469 : : }
8470 : : break;
8471 : : }
8472 : 3604750 : default:;
8473 : : }
8474 : 3604750 : switch (TREE_CODE (_p1))
8475 : : {
8476 : 135371 : CASE_CONVERT:
8477 : 135371 : {
8478 : 135371 : tree _q30 = TREE_OPERAND (_p1, 0);
8479 : 135371 : switch (TREE_CODE (_q30))
8480 : : {
8481 : 184 : case PLUS_EXPR:
8482 : 184 : {
8483 : 184 : tree _q40 = TREE_OPERAND (_q30, 0);
8484 : 184 : tree _q41 = TREE_OPERAND (_q30, 1);
8485 : 184 : switch (TREE_CODE (_q40))
8486 : : {
8487 : 180 : CASE_CONVERT:
8488 : 180 : {
8489 : 180 : tree _q50 = TREE_OPERAND (_q40, 0);
8490 : 180 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
8491 : : {
8492 : 0 : switch (TREE_CODE (_q41))
8493 : : {
8494 : 0 : case INTEGER_CST:
8495 : 0 : {
8496 : 0 : {
8497 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q30, _q40, _p0, _q41 };
8498 : 0 : tree res = generic_simplify_328 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR);
8499 : 0 : if (res) return res;
8500 : : }
8501 : 0 : break;
8502 : : }
8503 : : default:;
8504 : : }
8505 : : }
8506 : : break;
8507 : : }
8508 : : default:;
8509 : : }
8510 : : break;
8511 : : }
8512 : : default:;
8513 : : }
8514 : : break;
8515 : : }
8516 : 49369 : case PLUS_EXPR:
8517 : 49369 : {
8518 : 49369 : tree _q30 = TREE_OPERAND (_p1, 0);
8519 : 49369 : tree _q31 = TREE_OPERAND (_p1, 1);
8520 : 49369 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
8521 : : {
8522 : 0 : switch (TREE_CODE (_q31))
8523 : : {
8524 : 0 : case INTEGER_CST:
8525 : 0 : {
8526 : 0 : {
8527 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _p1, _q30, _p0, _q31 };
8528 : 0 : tree res = generic_simplify_323 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR);
8529 : 0 : if (res) return res;
8530 : : }
8531 : 0 : break;
8532 : : }
8533 : : default:;
8534 : : }
8535 : : }
8536 : : break;
8537 : : }
8538 : 4074 : case MINUS_EXPR:
8539 : 4074 : {
8540 : 4074 : tree _q30 = TREE_OPERAND (_p1, 0);
8541 : 4074 : tree _q31 = TREE_OPERAND (_p1, 1);
8542 : 4074 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
8543 : : {
8544 : 0 : {
8545 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _p0, _q31 };
8546 : 0 : tree res = generic_simplify_329 (loc, type, _p0, _p1, captures, LE_EXPR);
8547 : 0 : if (res) return res;
8548 : : }
8549 : : }
8550 : : break;
8551 : : }
8552 : 3604750 : default:;
8553 : : }
8554 : 3604750 : switch (TREE_CODE (_p0))
8555 : : {
8556 : 520279 : case PLUS_EXPR:
8557 : 520279 : {
8558 : 520279 : tree _q20 = TREE_OPERAND (_p0, 0);
8559 : 520279 : tree _q21 = TREE_OPERAND (_p0, 1);
8560 : 520279 : switch (TREE_CODE (_q20))
8561 : : {
8562 : 142 : case MINUS_EXPR:
8563 : 142 : {
8564 : 142 : tree _q30 = TREE_OPERAND (_q20, 0);
8565 : 142 : tree _q31 = TREE_OPERAND (_q20, 1);
8566 : 142 : if (integer_minus_onep (_q21))
8567 : : {
8568 : 1 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
8569 : : {
8570 : 1 : {
8571 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
8572 : 1 : tree res = generic_simplify_330 (loc, type, _p0, _p1, captures, GE_EXPR);
8573 : 1 : if (res) return res;
8574 : : }
8575 : : }
8576 : : }
8577 : : break;
8578 : : }
8579 : : default:;
8580 : : }
8581 : : break;
8582 : : }
8583 : 3604749 : default:;
8584 : : }
8585 : 3604749 : switch (TREE_CODE (_p1))
8586 : : {
8587 : 0 : case REALPART_EXPR:
8588 : 0 : {
8589 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
8590 : 0 : switch (TREE_CODE (_q30))
8591 : : {
8592 : 0 : case CALL_EXPR:
8593 : 0 : switch (get_call_combined_fn (_q30))
8594 : : {
8595 : 0 : case CFN_SUB_OVERFLOW:
8596 : 0 : if (call_expr_nargs (_q30) == 2)
8597 : : {
8598 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
8599 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
8600 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
8601 : : {
8602 : 0 : {
8603 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _p0, _q41 };
8604 : 0 : tree res = generic_simplify_331 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
8605 : 0 : if (res) return res;
8606 : : }
8607 : : }
8608 : : }
8609 : : break;
8610 : : default:;
8611 : : }
8612 : : break;
8613 : : default:;
8614 : : }
8615 : : break;
8616 : : }
8617 : 3604749 : default:;
8618 : : }
8619 : 3604749 : switch (TREE_CODE (_p0))
8620 : : {
8621 : 0 : case REALPART_EXPR:
8622 : 0 : {
8623 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
8624 : 0 : switch (TREE_CODE (_q20))
8625 : : {
8626 : 0 : case CALL_EXPR:
8627 : 0 : switch (get_call_combined_fn (_q20))
8628 : : {
8629 : 0 : case CFN_ADD_OVERFLOW:
8630 : 0 : if (call_expr_nargs (_q20) == 2)
8631 : : {
8632 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
8633 : 0 : tree _q31 = CALL_EXPR_ARG (_q20, 1);
8634 : 0 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
8635 : : {
8636 : 0 : {
8637 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
8638 : 0 : tree res = generic_simplify_332 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
8639 : 0 : if (res) return res;
8640 : : }
8641 : : }
8642 : 0 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
8643 : : {
8644 : 0 : {
8645 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q31, _q30 };
8646 : 0 : tree res = generic_simplify_332 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
8647 : 0 : if (res) return res;
8648 : : }
8649 : : }
8650 : : }
8651 : : break;
8652 : : default:;
8653 : : }
8654 : : break;
8655 : : default:;
8656 : : }
8657 : : break;
8658 : : }
8659 : 1502 : case TRUNC_DIV_EXPR:
8660 : 1502 : {
8661 : 1502 : tree _q20 = TREE_OPERAND (_p0, 0);
8662 : 1502 : tree _q21 = TREE_OPERAND (_p0, 1);
8663 : 1502 : if (integer_all_onesp (_q20))
8664 : : {
8665 : 33 : {
8666 : 33 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _p1 };
8667 : 33 : tree res = generic_simplify_333 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
8668 : 33 : if (res) return res;
8669 : : }
8670 : : }
8671 : : break;
8672 : : }
8673 : 17721 : case MULT_EXPR:
8674 : 17721 : {
8675 : 17721 : tree _q20 = TREE_OPERAND (_p0, 0);
8676 : 17721 : tree _q21 = TREE_OPERAND (_p0, 1);
8677 : 17721 : switch (TREE_CODE (_q21))
8678 : : {
8679 : 338 : case REAL_CST:
8680 : 338 : {
8681 : 338 : switch (TREE_CODE (_p1))
8682 : : {
8683 : 91 : case REAL_CST:
8684 : 91 : {
8685 : 91 : {
8686 : 91 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
8687 : 91 : tree res = generic_simplify_334 (loc, type, _p0, _p1, captures, GE_EXPR, LE_EXPR);
8688 : 91 : if (res) return res;
8689 : : }
8690 : 91 : break;
8691 : : }
8692 : : default:;
8693 : : }
8694 : : break;
8695 : : }
8696 : : default:;
8697 : : }
8698 : : break;
8699 : : }
8700 : 520278 : case PLUS_EXPR:
8701 : 520278 : {
8702 : 520278 : tree _q20 = TREE_OPERAND (_p0, 0);
8703 : 520278 : tree _q21 = TREE_OPERAND (_p0, 1);
8704 : 520278 : switch (TREE_CODE (_q21))
8705 : : {
8706 : 426073 : case INTEGER_CST:
8707 : 426073 : {
8708 : 426073 : switch (TREE_CODE (_p1))
8709 : : {
8710 : 105296 : case INTEGER_CST:
8711 : 105296 : {
8712 : 105296 : {
8713 : 105296 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
8714 : 105296 : tree res = generic_simplify_335 (loc, type, _p0, _p1, captures, PLUS_EXPR, MINUS_EXPR, GE_EXPR);
8715 : 105296 : if (res) return res;
8716 : : }
8717 : 55906 : break;
8718 : : }
8719 : : default:;
8720 : : }
8721 : : break;
8722 : : }
8723 : : default:;
8724 : : }
8725 : : break;
8726 : : }
8727 : 49069 : case MINUS_EXPR:
8728 : 49069 : {
8729 : 49069 : tree _q20 = TREE_OPERAND (_p0, 0);
8730 : 49069 : tree _q21 = TREE_OPERAND (_p0, 1);
8731 : 49069 : switch (TREE_CODE (_q21))
8732 : : {
8733 : 7 : case INTEGER_CST:
8734 : 7 : {
8735 : 7 : switch (TREE_CODE (_p1))
8736 : : {
8737 : 7 : case INTEGER_CST:
8738 : 7 : {
8739 : 7 : {
8740 : 7 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
8741 : 7 : tree res = generic_simplify_335 (loc, type, _p0, _p1, captures, MINUS_EXPR, PLUS_EXPR, GE_EXPR);
8742 : 7 : if (res) return res;
8743 : : }
8744 : 0 : break;
8745 : : }
8746 : : default:;
8747 : : }
8748 : : break;
8749 : : }
8750 : : default:;
8751 : : }
8752 : : break;
8753 : : }
8754 : 108372 : case CALL_EXPR:
8755 : 108372 : switch (get_call_combined_fn (_p0))
8756 : : {
8757 : 1 : case CFN_BUILT_IN_CTZ:
8758 : 1 : if (call_expr_nargs (_p0) == 1)
8759 : : {
8760 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8761 : 1 : switch (TREE_CODE (_p1))
8762 : : {
8763 : 1 : case INTEGER_CST:
8764 : 1 : {
8765 : 1 : {
8766 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
8767 : 1 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR, CFN_BUILT_IN_CTZ);
8768 : 1 : if (res) return res;
8769 : : }
8770 : 0 : break;
8771 : : }
8772 : : default:;
8773 : : }
8774 : : }
8775 : : break;
8776 : 0 : case CFN_BUILT_IN_CTZL:
8777 : 0 : if (call_expr_nargs (_p0) == 1)
8778 : : {
8779 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8780 : 0 : switch (TREE_CODE (_p1))
8781 : : {
8782 : 0 : case INTEGER_CST:
8783 : 0 : {
8784 : 0 : {
8785 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
8786 : 0 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR, CFN_BUILT_IN_CTZL);
8787 : 0 : if (res) return res;
8788 : : }
8789 : 0 : break;
8790 : : }
8791 : : default:;
8792 : : }
8793 : : }
8794 : : break;
8795 : 0 : case CFN_BUILT_IN_CTZIMAX:
8796 : 0 : if (call_expr_nargs (_p0) == 1)
8797 : : {
8798 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8799 : 0 : switch (TREE_CODE (_p1))
8800 : : {
8801 : 0 : case INTEGER_CST:
8802 : 0 : {
8803 : 0 : {
8804 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
8805 : 0 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR, CFN_BUILT_IN_CTZIMAX);
8806 : 0 : if (res) return res;
8807 : : }
8808 : 0 : break;
8809 : : }
8810 : : default:;
8811 : : }
8812 : : }
8813 : : break;
8814 : 0 : case CFN_CTZ:
8815 : 0 : if (call_expr_nargs (_p0) == 1)
8816 : : {
8817 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8818 : 0 : switch (TREE_CODE (_p1))
8819 : : {
8820 : 0 : case INTEGER_CST:
8821 : 0 : {
8822 : 0 : {
8823 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
8824 : 0 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR, CFN_CTZ);
8825 : 0 : if (res) return res;
8826 : : }
8827 : 0 : break;
8828 : : }
8829 : : default:;
8830 : : }
8831 : : }
8832 : 0 : if (call_expr_nargs (_p0) == 2)
8833 : : {
8834 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8835 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
8836 : 0 : switch (TREE_CODE (_p1))
8837 : : {
8838 : 0 : case INTEGER_CST:
8839 : 0 : {
8840 : 0 : {
8841 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
8842 : 0 : tree res = generic_simplify_337 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
8843 : 0 : if (res) return res;
8844 : : }
8845 : 0 : break;
8846 : : }
8847 : : default:;
8848 : : }
8849 : : }
8850 : : break;
8851 : 0 : case CFN_BUILT_IN_CTZLL:
8852 : 0 : if (call_expr_nargs (_p0) == 1)
8853 : : {
8854 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
8855 : 0 : switch (TREE_CODE (_p1))
8856 : : {
8857 : 0 : case INTEGER_CST:
8858 : 0 : {
8859 : 0 : {
8860 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
8861 : 0 : tree res = generic_simplify_336 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR, CFN_BUILT_IN_CTZLL);
8862 : 0 : if (res) return res;
8863 : : }
8864 : 0 : break;
8865 : : }
8866 : : default:;
8867 : : }
8868 : : }
8869 : : break;
8870 : : default:;
8871 : : }
8872 : : break;
8873 : : default:;
8874 : : }
8875 : : return NULL_TREE;
8876 : : }
8877 : :
8878 : : tree
8879 : 59037 : generic_simplify_MIN_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
8880 : : {
8881 : 59037 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
8882 : 59037 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
8883 : : {
8884 : 0 : {
8885 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
8886 : 0 : tree res = generic_simplify_443 (loc, type, _p0, _p1, captures, MIN_EXPR);
8887 : 0 : if (res) return res;
8888 : : }
8889 : : }
8890 : 59037 : switch (TREE_CODE (_p0))
8891 : : {
8892 : 4 : case MIN_EXPR:
8893 : 4 : {
8894 : 4 : tree _q20 = TREE_OPERAND (_p0, 0);
8895 : 4 : tree _q21 = TREE_OPERAND (_p0, 1);
8896 : 4 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
8897 : : {
8898 : 0 : {
8899 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8900 : 0 : tree res = generic_simplify_444 (loc, type, _p0, _p1, captures, MIN_EXPR);
8901 : 0 : if (res) return res;
8902 : : }
8903 : : }
8904 : 4 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
8905 : : {
8906 : 0 : {
8907 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
8908 : 0 : tree res = generic_simplify_444 (loc, type, _p0, _p1, captures, MIN_EXPR);
8909 : 0 : if (res) return res;
8910 : : }
8911 : : }
8912 : : break;
8913 : : }
8914 : 59037 : default:;
8915 : : }
8916 : 59037 : switch (TREE_CODE (_p1))
8917 : : {
8918 : 0 : case MIN_EXPR:
8919 : 0 : {
8920 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
8921 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
8922 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
8923 : : {
8924 : 0 : {
8925 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _p0, _q31 };
8926 : 0 : tree res = generic_simplify_445 (loc, type, _p0, _p1, captures, MIN_EXPR);
8927 : 0 : if (res) return res;
8928 : : }
8929 : : }
8930 : 0 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
8931 : : {
8932 : 0 : {
8933 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _p0, _q30 };
8934 : 0 : tree res = generic_simplify_445 (loc, type, _p0, _p1, captures, MIN_EXPR);
8935 : 0 : if (res) return res;
8936 : : }
8937 : : }
8938 : : break;
8939 : : }
8940 : 59037 : default:;
8941 : : }
8942 : 59037 : switch (TREE_CODE (_p0))
8943 : : {
8944 : 4 : case MAX_EXPR:
8945 : 4 : {
8946 : 4 : tree _q20 = TREE_OPERAND (_p0, 0);
8947 : 4 : tree _q21 = TREE_OPERAND (_p0, 1);
8948 : 4 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
8949 : : {
8950 : 3 : {
8951 : 3 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8952 : 3 : tree res = generic_simplify_446 (loc, type, _p0, _p1, captures);
8953 : 3 : if (res) return res;
8954 : : }
8955 : : }
8956 : 1 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
8957 : : {
8958 : 1 : {
8959 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
8960 : 1 : tree res = generic_simplify_446 (loc, type, _p0, _p1, captures);
8961 : 1 : if (res) return res;
8962 : : }
8963 : : }
8964 : : break;
8965 : : }
8966 : 59033 : default:;
8967 : : }
8968 : 59033 : switch (TREE_CODE (_p1))
8969 : : {
8970 : 0 : case MAX_EXPR:
8971 : 0 : {
8972 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
8973 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
8974 : 0 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
8975 : : {
8976 : 0 : {
8977 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p0 };
8978 : 0 : tree res = generic_simplify_446 (loc, type, _p0, _p1, captures);
8979 : 0 : if (res) return res;
8980 : : }
8981 : : }
8982 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
8983 : : {
8984 : 0 : {
8985 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q31, _p0 };
8986 : 0 : tree res = generic_simplify_446 (loc, type, _p0, _p1, captures);
8987 : 0 : if (res) return res;
8988 : : }
8989 : : }
8990 : : break;
8991 : : }
8992 : 0 : case NEGATE_EXPR:
8993 : 0 : {
8994 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
8995 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
8996 : : {
8997 : 0 : {
8998 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
8999 : 0 : tree res = generic_simplify_447 (loc, type, _p0, _p1, captures);
9000 : 0 : if (res) return res;
9001 : : }
9002 : : }
9003 : : break;
9004 : : }
9005 : 59033 : default:;
9006 : : }
9007 : 59033 : switch (TREE_CODE (_p0))
9008 : : {
9009 : 2 : case NEGATE_EXPR:
9010 : 2 : {
9011 : 2 : tree _q20 = TREE_OPERAND (_p0, 0);
9012 : 2 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
9013 : : {
9014 : 2 : {
9015 : 2 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9016 : 2 : tree res = generic_simplify_447 (loc, type, _p0, _p1, captures);
9017 : 2 : if (res) return res;
9018 : : }
9019 : : }
9020 : : break;
9021 : : }
9022 : 59031 : default:;
9023 : : }
9024 : 59031 : {
9025 : 59031 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
9026 : 59031 : if (INTEGRAL_TYPE_P (type)
9027 : 57449 : && TYPE_MIN_VALUE (type)
9028 : 116480 : && operand_equal_p (captures[1], TYPE_MIN_VALUE (type), OEP_ONLY_CONST)
9029 : : )
9030 : : {
9031 : 540 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1533;
9032 : 540 : {
9033 : 540 : tree _r;
9034 : 540 : _r = captures[1];
9035 : 540 : if (TREE_SIDE_EFFECTS (captures[0]))
9036 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
9037 : 540 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 916, __FILE__, __LINE__, true);
9038 : 540 : return _r;
9039 : : }
9040 : 0 : next_after_fail1533:;
9041 : : }
9042 : : else
9043 : : {
9044 : 58491 : if (INTEGRAL_TYPE_P (type)
9045 : 56909 : && TYPE_MAX_VALUE (type)
9046 : 115400 : && operand_equal_p (captures[1], TYPE_MAX_VALUE (type), OEP_ONLY_CONST)
9047 : : )
9048 : : {
9049 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1534;
9050 : 1 : {
9051 : 1 : tree _r;
9052 : 1 : _r = captures[0];
9053 : 1 : if (TREE_SIDE_EFFECTS (captures[1]))
9054 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
9055 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 917, __FILE__, __LINE__, true);
9056 : 1 : return _r;
9057 : : }
9058 : 0 : next_after_fail1534:;
9059 : : }
9060 : : }
9061 : : }
9062 : 58490 : switch (TREE_CODE (_p1))
9063 : : {
9064 : 19 : case PLUS_EXPR:
9065 : 19 : {
9066 : 19 : tree _q30 = TREE_OPERAND (_p1, 0);
9067 : 19 : tree _q31 = TREE_OPERAND (_p1, 1);
9068 : 19 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
9069 : : {
9070 : 0 : switch (TREE_CODE (_q31))
9071 : : {
9072 : 0 : case INTEGER_CST:
9073 : 0 : {
9074 : 0 : {
9075 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q31 };
9076 : 0 : if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
9077 : : )
9078 : : {
9079 : 0 : if (tree_int_cst_sgn (captures[2]) > 0
9080 : : )
9081 : : {
9082 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1535;
9083 : 0 : {
9084 : 0 : tree _r;
9085 : 0 : _r = captures[0];
9086 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
9087 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
9088 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 918, __FILE__, __LINE__, true);
9089 : 0 : return _r;
9090 : : }
9091 : 0 : next_after_fail1535:;
9092 : : }
9093 : : else
9094 : : {
9095 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1536;
9096 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1536;
9097 : 0 : {
9098 : 0 : tree _r;
9099 : 0 : _r = captures[1];
9100 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 919, __FILE__, __LINE__, true);
9101 : 0 : return _r;
9102 : : }
9103 : 0 : next_after_fail1536:;
9104 : : }
9105 : : }
9106 : : }
9107 : 0 : break;
9108 : : }
9109 : : default:;
9110 : : }
9111 : : }
9112 : : break;
9113 : : }
9114 : 58490 : default:;
9115 : : }
9116 : 58490 : switch (TREE_CODE (_p0))
9117 : : {
9118 : 5693 : case PLUS_EXPR:
9119 : 5693 : {
9120 : 5693 : tree _q20 = TREE_OPERAND (_p0, 0);
9121 : 5693 : tree _q21 = TREE_OPERAND (_p0, 1);
9122 : 5693 : switch (TREE_CODE (_q21))
9123 : : {
9124 : 5558 : case INTEGER_CST:
9125 : 5558 : {
9126 : 5558 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
9127 : : {
9128 : 0 : {
9129 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p0, _q21 };
9130 : 0 : if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
9131 : : )
9132 : : {
9133 : 0 : if (tree_int_cst_sgn (captures[2]) > 0
9134 : : )
9135 : : {
9136 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1537;
9137 : 0 : {
9138 : 0 : tree _r;
9139 : 0 : _r = captures[0];
9140 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
9141 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
9142 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 918, __FILE__, __LINE__, true);
9143 : 0 : return _r;
9144 : : }
9145 : 0 : next_after_fail1537:;
9146 : : }
9147 : : else
9148 : : {
9149 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1538;
9150 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1538;
9151 : 0 : {
9152 : 0 : tree _r;
9153 : 0 : _r = captures[1];
9154 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 919, __FILE__, __LINE__, true);
9155 : 0 : return _r;
9156 : : }
9157 : 0 : next_after_fail1538:;
9158 : : }
9159 : : }
9160 : : }
9161 : : }
9162 : : break;
9163 : : }
9164 : : default:;
9165 : : }
9166 : : break;
9167 : : }
9168 : 479 : CASE_CONVERT:
9169 : 479 : {
9170 : 479 : tree _q20 = TREE_OPERAND (_p0, 0);
9171 : 479 : switch (TREE_CODE (_q20))
9172 : : {
9173 : 3 : case ADDR_EXPR:
9174 : 3 : {
9175 : 3 : switch (TREE_CODE (_p1))
9176 : : {
9177 : 2 : CASE_CONVERT:
9178 : 2 : {
9179 : 2 : tree _q40 = TREE_OPERAND (_p1, 0);
9180 : 2 : switch (TREE_CODE (_q40))
9181 : : {
9182 : 2 : case ADDR_EXPR:
9183 : 2 : {
9184 : 2 : {
9185 : 2 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
9186 : 2 : tree res = generic_simplify_448 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR);
9187 : 2 : if (res) return res;
9188 : : }
9189 : 2 : break;
9190 : : }
9191 : : default:;
9192 : : }
9193 : : break;
9194 : : }
9195 : 0 : case ADDR_EXPR:
9196 : 0 : {
9197 : 0 : {
9198 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
9199 : 0 : tree res = generic_simplify_449 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR);
9200 : 0 : if (res) return res;
9201 : : }
9202 : 0 : break;
9203 : : }
9204 : : default:;
9205 : : }
9206 : : break;
9207 : : }
9208 : : default:;
9209 : : }
9210 : : break;
9211 : : }
9212 : 18 : case ADDR_EXPR:
9213 : 18 : {
9214 : 18 : switch (TREE_CODE (_p1))
9215 : : {
9216 : 0 : CASE_CONVERT:
9217 : 0 : {
9218 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
9219 : 0 : switch (TREE_CODE (_q30))
9220 : : {
9221 : 0 : case ADDR_EXPR:
9222 : 0 : {
9223 : 0 : {
9224 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _p1, _q30 };
9225 : 0 : tree res = generic_simplify_450 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR);
9226 : 0 : if (res) return res;
9227 : : }
9228 : 0 : break;
9229 : : }
9230 : : default:;
9231 : : }
9232 : : break;
9233 : : }
9234 : 10 : case ADDR_EXPR:
9235 : 10 : {
9236 : 10 : {
9237 : 10 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _p1, _p1 };
9238 : 10 : tree res = generic_simplify_451 (loc, type, _p0, _p1, captures, MIN_EXPR, LT_EXPR);
9239 : 10 : if (res) return res;
9240 : : }
9241 : 10 : break;
9242 : : }
9243 : : default:;
9244 : : }
9245 : : break;
9246 : : }
9247 : 0 : case NEGATE_EXPR:
9248 : 0 : {
9249 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
9250 : 0 : switch (TREE_CODE (_p1))
9251 : : {
9252 : 0 : case NEGATE_EXPR:
9253 : 0 : {
9254 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
9255 : 0 : {
9256 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
9257 : 0 : if (FLOAT_TYPE_P (TREE_TYPE (captures[1]))
9258 : 0 : || (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
9259 : 0 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[1])))
9260 : : )
9261 : : {
9262 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1539;
9263 : 0 : {
9264 : 0 : tree res_op0;
9265 : 0 : {
9266 : 0 : tree _o1[2], _r1;
9267 : 0 : _o1[0] = captures[1];
9268 : 0 : _o1[1] = captures[3];
9269 : 0 : _r1 = fold_build2_loc (loc, MAX_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
9270 : 0 : res_op0 = _r1;
9271 : : }
9272 : 0 : tree _r;
9273 : 0 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
9274 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 920, __FILE__, __LINE__, true);
9275 : 0 : return _r;
9276 : : }
9277 : 0 : next_after_fail1539:;
9278 : : }
9279 : : }
9280 : 0 : break;
9281 : : }
9282 : : default:;
9283 : : }
9284 : : break;
9285 : : }
9286 : 0 : case BIT_NOT_EXPR:
9287 : 0 : {
9288 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
9289 : 0 : switch (TREE_CODE (_p1))
9290 : : {
9291 : 0 : case BIT_NOT_EXPR:
9292 : 0 : {
9293 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
9294 : 0 : {
9295 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
9296 : 0 : tree res = generic_simplify_452 (loc, type, _p0, _p1, captures, MIN_EXPR, MAX_EXPR);
9297 : 0 : if (res) return res;
9298 : : }
9299 : 0 : break;
9300 : : }
9301 : : default:;
9302 : : }
9303 : : break;
9304 : : }
9305 : 0 : case VEC_COND_EXPR:
9306 : 0 : {
9307 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
9308 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
9309 : 0 : tree _q22 = TREE_OPERAND (_p0, 2);
9310 : 0 : switch (TREE_CODE (_p1))
9311 : : {
9312 : 0 : case VEC_COND_EXPR:
9313 : 0 : {
9314 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
9315 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
9316 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
9317 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
9318 : : {
9319 : 0 : {
9320 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
9321 : 0 : if (TREE_CODE_CLASS (MIN_EXPR) != tcc_comparison
9322 : : || types_match (type, TREE_TYPE (captures[2]))
9323 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
9324 : : || (optimize_vectors_before_lowering_p ()
9325 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
9326 : : TREE_TYPE (captures[1]), ERROR_MARK))
9327 : : )
9328 : : {
9329 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1540;
9330 : 0 : {
9331 : 0 : tree res_op0;
9332 : 0 : res_op0 = captures[1];
9333 : 0 : tree res_op1;
9334 : 0 : {
9335 : 0 : tree _o1[2], _r1;
9336 : 0 : _o1[0] = captures[2];
9337 : 0 : _o1[1] = captures[5];
9338 : 0 : _r1 = fold_build2_loc (loc, MIN_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
9339 : 0 : if (EXPR_P (_r1))
9340 : 0 : goto next_after_fail1540;
9341 : 0 : res_op1 = _r1;
9342 : : }
9343 : 0 : tree res_op2;
9344 : 0 : {
9345 : 0 : tree _o1[2], _r1;
9346 : 0 : _o1[0] = captures[3];
9347 : 0 : _o1[1] = captures[6];
9348 : 0 : _r1 = fold_build2_loc (loc, MIN_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
9349 : 0 : if (EXPR_P (_r1))
9350 : 0 : goto next_after_fail1540;
9351 : 0 : res_op2 = _r1;
9352 : : }
9353 : 0 : tree _r;
9354 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
9355 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 793, __FILE__, __LINE__, true);
9356 : 0 : return _r;
9357 : : }
9358 : 0 : next_after_fail1540:;
9359 : : }
9360 : : }
9361 : : }
9362 : : break;
9363 : : }
9364 : 0 : default:;
9365 : : }
9366 : 0 : {
9367 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
9368 : 0 : if (TREE_CODE_CLASS (MIN_EXPR) != tcc_comparison
9369 : : || types_match (type, TREE_TYPE (captures[2]))
9370 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
9371 : : || (optimize_vectors_before_lowering_p ()
9372 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
9373 : : TREE_TYPE (captures[1]), ERROR_MARK))
9374 : : )
9375 : : {
9376 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1541;
9377 : 0 : {
9378 : 0 : if (! tree_invariant_p (captures[4])) goto next_after_fail1541;
9379 : 0 : tree res_op0;
9380 : 0 : res_op0 = captures[1];
9381 : 0 : tree res_op1;
9382 : 0 : {
9383 : 0 : tree _o1[2], _r1;
9384 : 0 : _o1[0] = captures[2];
9385 : 0 : _o1[1] = unshare_expr (captures[4]);
9386 : 0 : _r1 = fold_build2_loc (loc, MIN_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
9387 : 0 : if (EXPR_P (_r1))
9388 : 0 : goto next_after_fail1541;
9389 : 0 : res_op1 = _r1;
9390 : : }
9391 : 0 : tree res_op2;
9392 : 0 : {
9393 : 0 : tree _o1[2], _r1;
9394 : 0 : _o1[0] = captures[3];
9395 : 0 : _o1[1] = captures[4];
9396 : 0 : _r1 = fold_build2_loc (loc, MIN_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
9397 : 0 : if (EXPR_P (_r1))
9398 : 0 : goto next_after_fail1541;
9399 : 0 : res_op2 = _r1;
9400 : : }
9401 : 0 : tree _r;
9402 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
9403 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 794, __FILE__, __LINE__, true);
9404 : 0 : return _r;
9405 : : }
9406 : 0 : next_after_fail1541:;
9407 : : }
9408 : : }
9409 : 0 : break;
9410 : : }
9411 : 58490 : default:;
9412 : : }
9413 : 58490 : switch (TREE_CODE (_p1))
9414 : : {
9415 : 0 : case VEC_COND_EXPR:
9416 : 0 : {
9417 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
9418 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
9419 : 0 : tree _q32 = TREE_OPERAND (_p1, 2);
9420 : 0 : {
9421 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
9422 : 0 : if (TREE_CODE_CLASS (MIN_EXPR) != tcc_comparison
9423 : : || types_match (type, TREE_TYPE (captures[3]))
9424 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]), ERROR_MARK)
9425 : : || (optimize_vectors_before_lowering_p ()
9426 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]),
9427 : : TREE_TYPE (captures[2]), ERROR_MARK))
9428 : : )
9429 : : {
9430 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1542;
9431 : 0 : {
9432 : 0 : if (! tree_invariant_p (captures[0])) goto next_after_fail1542;
9433 : 0 : tree res_op0;
9434 : 0 : res_op0 = captures[2];
9435 : 0 : tree res_op1;
9436 : 0 : {
9437 : 0 : tree _o1[2], _r1;
9438 : 0 : _o1[0] = unshare_expr (captures[0]);
9439 : 0 : _o1[1] = captures[3];
9440 : 0 : _r1 = fold_build2_loc (loc, MIN_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
9441 : 0 : if (EXPR_P (_r1))
9442 : 0 : goto next_after_fail1542;
9443 : 0 : res_op1 = _r1;
9444 : : }
9445 : 0 : tree res_op2;
9446 : 0 : {
9447 : 0 : tree _o1[2], _r1;
9448 : 0 : _o1[0] = captures[0];
9449 : 0 : _o1[1] = captures[4];
9450 : 0 : _r1 = fold_build2_loc (loc, MIN_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
9451 : 0 : if (EXPR_P (_r1))
9452 : 0 : goto next_after_fail1542;
9453 : 0 : res_op2 = _r1;
9454 : : }
9455 : 0 : tree _r;
9456 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
9457 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 795, __FILE__, __LINE__, true);
9458 : 0 : return _r;
9459 : : }
9460 : 0 : next_after_fail1542:;
9461 : : }
9462 : : }
9463 : 0 : break;
9464 : : }
9465 : 58490 : default:;
9466 : : }
9467 : 58490 : if (tree_zero_one_valued_p (_p0))
9468 : : {
9469 : 10 : if (tree_zero_one_valued_p (_p1))
9470 : : {
9471 : 2 : {
9472 : 2 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
9473 : 2 : tree res = generic_simplify_453 (loc, type, _p0, _p1, captures, MIN_EXPR, BIT_AND_EXPR);
9474 : 2 : if (res) return res;
9475 : : }
9476 : : }
9477 : : }
9478 : : return NULL_TREE;
9479 : : }
9480 : :
9481 : : tree
9482 : 477489 : generic_simplify_UNGE_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
9483 : : {
9484 : 477489 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
9485 : 477489 : switch (TREE_CODE (_p0))
9486 : : {
9487 : 0 : case VEC_COND_EXPR:
9488 : 0 : {
9489 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
9490 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
9491 : 0 : tree _q22 = TREE_OPERAND (_p0, 2);
9492 : 0 : switch (TREE_CODE (_p1))
9493 : : {
9494 : 0 : case VEC_COND_EXPR:
9495 : 0 : {
9496 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
9497 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
9498 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
9499 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
9500 : : {
9501 : 0 : {
9502 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
9503 : 0 : if (TREE_CODE_CLASS (UNGE_EXPR) != tcc_comparison
9504 : 0 : || types_match (type, TREE_TYPE (captures[2]))
9505 : 0 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
9506 : : || (optimize_vectors_before_lowering_p ()
9507 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
9508 : 0 : TREE_TYPE (captures[1]), ERROR_MARK))
9509 : : )
9510 : : {
9511 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1574;
9512 : 0 : {
9513 : 0 : tree res_op0;
9514 : 0 : res_op0 = captures[1];
9515 : 0 : tree res_op1;
9516 : 0 : {
9517 : 0 : tree _o1[2], _r1;
9518 : 0 : _o1[0] = captures[2];
9519 : 0 : _o1[1] = captures[5];
9520 : 0 : _r1 = fold_build2_loc (loc, UNGE_EXPR, type, _o1[0], _o1[1]);
9521 : 0 : if (EXPR_P (_r1))
9522 : 0 : goto next_after_fail1574;
9523 : 0 : res_op1 = _r1;
9524 : : }
9525 : 0 : tree res_op2;
9526 : 0 : {
9527 : 0 : tree _o1[2], _r1;
9528 : 0 : _o1[0] = captures[3];
9529 : 0 : _o1[1] = captures[6];
9530 : 0 : _r1 = fold_build2_loc (loc, UNGE_EXPR, type, _o1[0], _o1[1]);
9531 : 0 : if (EXPR_P (_r1))
9532 : 0 : goto next_after_fail1574;
9533 : 0 : res_op2 = _r1;
9534 : : }
9535 : 0 : tree _r;
9536 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
9537 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 793, __FILE__, __LINE__, true);
9538 : 0 : return _r;
9539 : : }
9540 : 0 : next_after_fail1574:;
9541 : : }
9542 : : }
9543 : : }
9544 : : break;
9545 : : }
9546 : 0 : default:;
9547 : : }
9548 : 0 : {
9549 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
9550 : 0 : if (TREE_CODE_CLASS (UNGE_EXPR) != tcc_comparison
9551 : 0 : || types_match (type, TREE_TYPE (captures[2]))
9552 : 0 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
9553 : : || (optimize_vectors_before_lowering_p ()
9554 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
9555 : 0 : TREE_TYPE (captures[1]), ERROR_MARK))
9556 : : )
9557 : : {
9558 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1575;
9559 : 0 : {
9560 : 0 : if (! tree_invariant_p (captures[4])) goto next_after_fail1575;
9561 : 0 : tree res_op0;
9562 : 0 : res_op0 = captures[1];
9563 : 0 : tree res_op1;
9564 : 0 : {
9565 : 0 : tree _o1[2], _r1;
9566 : 0 : _o1[0] = captures[2];
9567 : 0 : _o1[1] = unshare_expr (captures[4]);
9568 : 0 : _r1 = fold_build2_loc (loc, UNGE_EXPR, type, _o1[0], _o1[1]);
9569 : 0 : if (EXPR_P (_r1))
9570 : 0 : goto next_after_fail1575;
9571 : 0 : res_op1 = _r1;
9572 : : }
9573 : 0 : tree res_op2;
9574 : 0 : {
9575 : 0 : tree _o1[2], _r1;
9576 : 0 : _o1[0] = captures[3];
9577 : 0 : _o1[1] = captures[4];
9578 : 0 : _r1 = fold_build2_loc (loc, UNGE_EXPR, type, _o1[0], _o1[1]);
9579 : 0 : if (EXPR_P (_r1))
9580 : 0 : goto next_after_fail1575;
9581 : 0 : res_op2 = _r1;
9582 : : }
9583 : 0 : tree _r;
9584 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
9585 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 794, __FILE__, __LINE__, true);
9586 : 0 : return _r;
9587 : : }
9588 : 0 : next_after_fail1575:;
9589 : : }
9590 : : }
9591 : 0 : break;
9592 : : }
9593 : 477489 : default:;
9594 : : }
9595 : 477489 : switch (TREE_CODE (_p1))
9596 : : {
9597 : 0 : case VEC_COND_EXPR:
9598 : 0 : {
9599 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
9600 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
9601 : 0 : tree _q32 = TREE_OPERAND (_p1, 2);
9602 : 0 : {
9603 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
9604 : 0 : if (TREE_CODE_CLASS (UNGE_EXPR) != tcc_comparison
9605 : 0 : || types_match (type, TREE_TYPE (captures[3]))
9606 : 0 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]), ERROR_MARK)
9607 : : || (optimize_vectors_before_lowering_p ()
9608 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]),
9609 : 0 : TREE_TYPE (captures[2]), ERROR_MARK))
9610 : : )
9611 : : {
9612 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1576;
9613 : 0 : {
9614 : 0 : if (! tree_invariant_p (captures[0])) goto next_after_fail1576;
9615 : 0 : tree res_op0;
9616 : 0 : res_op0 = captures[2];
9617 : 0 : tree res_op1;
9618 : 0 : {
9619 : 0 : tree _o1[2], _r1;
9620 : 0 : _o1[0] = unshare_expr (captures[0]);
9621 : 0 : _o1[1] = captures[3];
9622 : 0 : _r1 = fold_build2_loc (loc, UNGE_EXPR, type, _o1[0], _o1[1]);
9623 : 0 : if (EXPR_P (_r1))
9624 : 0 : goto next_after_fail1576;
9625 : 0 : res_op1 = _r1;
9626 : : }
9627 : 0 : tree res_op2;
9628 : 0 : {
9629 : 0 : tree _o1[2], _r1;
9630 : 0 : _o1[0] = captures[0];
9631 : 0 : _o1[1] = captures[4];
9632 : 0 : _r1 = fold_build2_loc (loc, UNGE_EXPR, type, _o1[0], _o1[1]);
9633 : 0 : if (EXPR_P (_r1))
9634 : 0 : goto next_after_fail1576;
9635 : 0 : res_op2 = _r1;
9636 : : }
9637 : 0 : tree _r;
9638 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
9639 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 795, __FILE__, __LINE__, true);
9640 : 0 : return _r;
9641 : : }
9642 : 0 : next_after_fail1576:;
9643 : : }
9644 : : }
9645 : 0 : break;
9646 : : }
9647 : 477489 : default:;
9648 : : }
9649 : 477489 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
9650 : : {
9651 : 30 : {
9652 : 30 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
9653 : 30 : tree res = generic_simplify_505 (loc, type, _p0, _p1, captures, UNGE_EXPR);
9654 : 30 : if (res) return res;
9655 : : }
9656 : : }
9657 : 477459 : switch (TREE_CODE (_p0))
9658 : : {
9659 : 294 : case FLOAT_EXPR:
9660 : 294 : {
9661 : 294 : tree _q20 = TREE_OPERAND (_p0, 0);
9662 : 294 : switch (TREE_CODE (_p1))
9663 : : {
9664 : 0 : case FLOAT_EXPR:
9665 : 0 : {
9666 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
9667 : 0 : {
9668 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
9669 : 0 : tree res = generic_simplify_236 (loc, type, _p0, _p1, captures, UNGE_EXPR, GE_EXPR);
9670 : 0 : if (res) return res;
9671 : : }
9672 : 0 : break;
9673 : : }
9674 : : default:;
9675 : : }
9676 : : break;
9677 : : }
9678 : 140 : case NEGATE_EXPR:
9679 : 140 : {
9680 : 140 : tree _q20 = TREE_OPERAND (_p0, 0);
9681 : 140 : switch (TREE_CODE (_p1))
9682 : : {
9683 : 0 : case NEGATE_EXPR:
9684 : 0 : {
9685 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
9686 : 0 : {
9687 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
9688 : 0 : tree res = generic_simplify_239 (loc, type, _p0, _p1, captures, UNGE_EXPR, UNLE_EXPR);
9689 : 0 : if (res) return res;
9690 : : }
9691 : 0 : break;
9692 : : }
9693 : 140 : default:;
9694 : : }
9695 : 140 : if (CONSTANT_CLASS_P (_p1))
9696 : : {
9697 : 140 : {
9698 : 140 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9699 : 140 : tree res = generic_simplify_240 (loc, type, _p0, _p1, captures, UNGE_EXPR, UNLE_EXPR);
9700 : 140 : if (res) return res;
9701 : : }
9702 : : }
9703 : : break;
9704 : : }
9705 : 477319 : default:;
9706 : : }
9707 : 477319 : switch (TREE_CODE (_p1))
9708 : : {
9709 : 99600 : case REAL_CST:
9710 : 99600 : {
9711 : 99600 : {
9712 : 99600 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
9713 : 99600 : tree res = generic_simplify_503 (loc, type, _p0, _p1, captures, UNGE_EXPR);
9714 : 99600 : if (res) return res;
9715 : : }
9716 : 99598 : break;
9717 : : }
9718 : : default:;
9719 : : }
9720 : : return NULL_TREE;
9721 : : }
9722 : :
9723 : : tree
9724 : 485704212 : generic_simplify (location_t loc, enum tree_code code, const tree type ATTRIBUTE_UNUSED, tree _p0, tree _p1)
9725 : : {
9726 : 485704212 : switch (code)
9727 : : {
9728 : 76430639 : case PLUS_EXPR:
9729 : 76430639 : return generic_simplify_PLUS_EXPR (loc, code, type, _p0, _p1);
9730 : 30229247 : case POINTER_PLUS_EXPR:
9731 : 30229247 : return generic_simplify_POINTER_PLUS_EXPR (loc, code, type, _p0, _p1);
9732 : 27882262 : case MINUS_EXPR:
9733 : 27882262 : return generic_simplify_MINUS_EXPR (loc, code, type, _p0, _p1);
9734 : 1614462 : case BIT_IOR_EXPR:
9735 : 1614462 : return generic_simplify_BIT_IOR_EXPR (loc, code, type, _p0, _p1);
9736 : 649828 : case BIT_XOR_EXPR:
9737 : 649828 : return generic_simplify_BIT_XOR_EXPR (loc, code, type, _p0, _p1);
9738 : 2342000 : case POINTER_DIFF_EXPR:
9739 : 2342000 : return generic_simplify_POINTER_DIFF_EXPR (loc, code, type, _p0, _p1);
9740 : 60356201 : case MULT_EXPR:
9741 : 60356201 : return generic_simplify_MULT_EXPR (loc, code, type, _p0, _p1);
9742 : 23415210 : case EQ_EXPR:
9743 : 23415210 : return generic_simplify_EQ_EXPR (loc, code, type, _p0, _p1);
9744 : 30652759 : case NE_EXPR:
9745 : 30652759 : return generic_simplify_NE_EXPR (loc, code, type, _p0, _p1);
9746 : 1831487 : case TRUNC_DIV_EXPR:
9747 : 1831487 : return generic_simplify_TRUNC_DIV_EXPR (loc, code, type, _p0, _p1);
9748 : 5759 : case CEIL_DIV_EXPR:
9749 : 5759 : return generic_simplify_CEIL_DIV_EXPR (loc, code, type, _p0, _p1);
9750 : 1806483 : case FLOOR_DIV_EXPR:
9751 : 1806483 : return generic_simplify_FLOOR_DIV_EXPR (loc, code, type, _p0, _p1);
9752 : 0 : case ROUND_DIV_EXPR:
9753 : 0 : return generic_simplify_ROUND_DIV_EXPR (loc, code, type, _p0, _p1);
9754 : 2955533 : case EXACT_DIV_EXPR:
9755 : 2955533 : return generic_simplify_EXACT_DIV_EXPR (loc, code, type, _p0, _p1);
9756 : 694255 : case FLOOR_MOD_EXPR:
9757 : 694255 : return generic_simplify_FLOOR_MOD_EXPR (loc, code, type, _p0, _p1);
9758 : 6192176 : case RDIV_EXPR:
9759 : 6192176 : return generic_simplify_RDIV_EXPR (loc, code, type, _p0, _p1);
9760 : 14817271 : case LT_EXPR:
9761 : 14817271 : return generic_simplify_LT_EXPR (loc, code, type, _p0, _p1);
9762 : 7969711 : case LE_EXPR:
9763 : 7969711 : return generic_simplify_LE_EXPR (loc, code, type, _p0, _p1);
9764 : 16901059 : case GT_EXPR:
9765 : 16901059 : return generic_simplify_GT_EXPR (loc, code, type, _p0, _p1);
9766 : 5183293 : case GE_EXPR:
9767 : 5183293 : return generic_simplify_GE_EXPR (loc, code, type, _p0, _p1);
9768 : 4024 : case CEIL_MOD_EXPR:
9769 : 4024 : return generic_simplify_CEIL_MOD_EXPR (loc, code, type, _p0, _p1);
9770 : 0 : case ROUND_MOD_EXPR:
9771 : 0 : return generic_simplify_ROUND_MOD_EXPR (loc, code, type, _p0, _p1);
9772 : 1510647 : case TRUNC_MOD_EXPR:
9773 : 1510647 : return generic_simplify_TRUNC_MOD_EXPR (loc, code, type, _p0, _p1);
9774 : 833039 : case LSHIFT_EXPR:
9775 : 833039 : return generic_simplify_LSHIFT_EXPR (loc, code, type, _p0, _p1);
9776 : 716094 : case RSHIFT_EXPR:
9777 : 716094 : return generic_simplify_RSHIFT_EXPR (loc, code, type, _p0, _p1);
9778 : 5678008 : case BIT_AND_EXPR:
9779 : 5678008 : return generic_simplify_BIT_AND_EXPR (loc, code, type, _p0, _p1);
9780 : 59037 : case MIN_EXPR:
9781 : 59037 : return generic_simplify_MIN_EXPR (loc, code, type, _p0, _p1);
9782 : 327357 : case MAX_EXPR:
9783 : 327357 : return generic_simplify_MAX_EXPR (loc, code, type, _p0, _p1);
9784 : 1355 : case LROTATE_EXPR:
9785 : 1355 : return generic_simplify_LROTATE_EXPR (loc, code, type, _p0, _p1);
9786 : 2202 : case RROTATE_EXPR:
9787 : 2202 : return generic_simplify_RROTATE_EXPR (loc, code, type, _p0, _p1);
9788 : 691143 : case COMPLEX_EXPR:
9789 : 691143 : return generic_simplify_COMPLEX_EXPR (loc, code, type, _p0, _p1);
9790 : 786312 : case UNORDERED_EXPR:
9791 : 786312 : return generic_simplify_UNORDERED_EXPR (loc, code, type, _p0, _p1);
9792 : 207417 : case ORDERED_EXPR:
9793 : 207417 : return generic_simplify_ORDERED_EXPR (loc, code, type, _p0, _p1);
9794 : 751923 : case UNLT_EXPR:
9795 : 751923 : return generic_simplify_UNLT_EXPR (loc, code, type, _p0, _p1);
9796 : 947249 : case UNLE_EXPR:
9797 : 947249 : return generic_simplify_UNLE_EXPR (loc, code, type, _p0, _p1);
9798 : 1407622 : case UNGT_EXPR:
9799 : 1407622 : return generic_simplify_UNGT_EXPR (loc, code, type, _p0, _p1);
9800 : 477489 : case UNGE_EXPR:
9801 : 477489 : return generic_simplify_UNGE_EXPR (loc, code, type, _p0, _p1);
9802 : 374129 : case UNEQ_EXPR:
9803 : 374129 : return generic_simplify_UNEQ_EXPR (loc, code, type, _p0, _p1);
9804 : 85 : case LTGT_EXPR:
9805 : 85 : return generic_simplify_LTGT_EXPR (loc, code, type, _p0, _p1);
9806 : 3195098 : case TRUTH_ORIF_EXPR:
9807 : 3195098 : return generic_simplify_TRUTH_ORIF_EXPR (loc, code, type, _p0, _p1);
9808 : 8072631 : case TRUTH_OR_EXPR:
9809 : 8072631 : return generic_simplify_TRUTH_OR_EXPR (loc, code, type, _p0, _p1);
9810 : : default:;
9811 : : }
9812 : : return NULL_TREE;
9813 : : }
9814 : :
9815 : : tree
9816 : 640597 : 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)
9817 : : {
9818 : 640597 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
9819 : 640597 : switch (TREE_CODE (_p0))
9820 : : {
9821 : 0 : case BIT_FIELD_REF:
9822 : 0 : {
9823 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
9824 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
9825 : 0 : tree _q22 = TREE_OPERAND (_p0, 2);
9826 : 0 : {
9827 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _p1, _p2 };
9828 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1714;
9829 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1714;
9830 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1714;
9831 : 0 : {
9832 : 0 : tree res_op0;
9833 : 0 : res_op0 = captures[0];
9834 : 0 : tree res_op1;
9835 : 0 : res_op1 = captures[3];
9836 : 0 : tree res_op2;
9837 : 0 : res_op2 = const_binop (PLUS_EXPR, bitsizetype, captures[2], captures[4]);
9838 : 0 : tree _r;
9839 : 0 : _r = fold_build3_loc (loc, BIT_FIELD_REF, type, res_op0, res_op1, res_op2);
9840 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
9841 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
9842 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 969, __FILE__, __LINE__, true);
9843 : 0 : return _r;
9844 : : }
9845 : 0 : next_after_fail1714:;
9846 : : }
9847 : 0 : break;
9848 : : }
9849 : 4 : case VIEW_CONVERT_EXPR:
9850 : 4 : {
9851 : 4 : tree _q20 = TREE_OPERAND (_p0, 0);
9852 : 4 : {
9853 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p1, _p2 };
9854 : 8 : if (! INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9855 : 8 : || type_has_mode_precision_p (TREE_TYPE (captures[0]))
9856 : : )
9857 : : {
9858 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1715;
9859 : 0 : {
9860 : 0 : tree res_op0;
9861 : 0 : res_op0 = captures[0];
9862 : 0 : tree res_op1;
9863 : 0 : res_op1 = captures[1];
9864 : 0 : tree res_op2;
9865 : 0 : res_op2 = captures[2];
9866 : 0 : tree _r;
9867 : 0 : _r = fold_build3_loc (loc, BIT_FIELD_REF, type, res_op0, res_op1, res_op2);
9868 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 970, __FILE__, __LINE__, true);
9869 : 0 : return _r;
9870 : : }
9871 : 0 : next_after_fail1715:;
9872 : : }
9873 : : }
9874 : 4 : break;
9875 : : }
9876 : 640597 : default:;
9877 : : }
9878 : 640597 : if (integer_zerop (_p2))
9879 : : {
9880 : 203433 : {
9881 : 203433 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
9882 : 203433 : if (tree_int_cst_equal (captures[1], TYPE_SIZE (TREE_TYPE (captures[0])))
9883 : : )
9884 : : {
9885 : 2582 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1716;
9886 : 2582 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1716;
9887 : 2582 : {
9888 : 2582 : tree res_op0;
9889 : 2582 : res_op0 = captures[0];
9890 : 2582 : tree _r;
9891 : 2582 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
9892 : 2582 : if (TREE_SIDE_EFFECTS (captures[1]))
9893 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
9894 : 2582 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 971, __FILE__, __LINE__, true);
9895 : 2582 : return _r;
9896 : : }
9897 : 200851 : next_after_fail1716:;
9898 : : }
9899 : : }
9900 : : }
9901 : 638015 : {
9902 : 638015 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _p2 };
9903 : 638015 : if (TREE_CODE (TREE_TYPE (captures[0])) == COMPLEX_TYPE
9904 : 638015 : && tree_int_cst_equal (captures[1], TYPE_SIZE (TREE_TYPE (TREE_TYPE (captures[0]))))
9905 : : )
9906 : : {
9907 : 0 : if (integer_zerop (captures[2])
9908 : : )
9909 : : {
9910 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1717;
9911 : 0 : {
9912 : 0 : tree res_op0;
9913 : 0 : {
9914 : 0 : tree _o1[1], _r1;
9915 : 0 : _o1[0] = captures[0];
9916 : 0 : _r1 = fold_build1_loc (loc, REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o1[0])), _o1[0]);
9917 : 0 : res_op0 = _r1;
9918 : : }
9919 : 0 : tree _r;
9920 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
9921 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
9922 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
9923 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
9924 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
9925 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 972, __FILE__, __LINE__, true);
9926 : 0 : return _r;
9927 : : }
9928 : 0 : next_after_fail1717:;
9929 : : }
9930 : : else
9931 : : {
9932 : 0 : if (tree_int_cst_equal (captures[2], TYPE_SIZE (TREE_TYPE (TREE_TYPE (captures[0]))))
9933 : : )
9934 : : {
9935 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1718;
9936 : 0 : {
9937 : 0 : tree res_op0;
9938 : 0 : {
9939 : 0 : tree _o1[1], _r1;
9940 : 0 : _o1[0] = captures[0];
9941 : 0 : _r1 = fold_build1_loc (loc, IMAGPART_EXPR, TREE_TYPE (TREE_TYPE (_o1[0])), _o1[0]);
9942 : 0 : res_op0 = _r1;
9943 : : }
9944 : 0 : tree _r;
9945 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
9946 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
9947 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
9948 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
9949 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
9950 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 973, __FILE__, __LINE__, true);
9951 : 0 : return _r;
9952 : : }
9953 : 0 : next_after_fail1718:;
9954 : : }
9955 : : }
9956 : : }
9957 : : else
9958 : : {
9959 : 1275968 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9960 : 19519 : && INTEGRAL_TYPE_P (type)
9961 : : && (!
9962 : :
9963 : : || is_gimple_reg (captures[0]))
9964 : 656551 : && ((compare_tree_int (captures[1], TYPE_PRECISION (TREE_TYPE (captures[0]))) == 0
9965 : 0 : && integer_zerop (captures[2]))
9966 : : || (BYTES_BIG_ENDIAN == WORDS_BIG_ENDIAN
9967 : : && canonicalize_math_after_vectorization_p ()
9968 : : && TYPE_PRECISION (TREE_TYPE (captures[0])) % BITS_PER_UNIT == 0
9969 : : && TYPE_PRECISION (type) % BITS_PER_UNIT == 0
9970 : : && compare_tree_int (captures[2], (BYTES_BIG_ENDIAN
9971 : : ? (TYPE_PRECISION (TREE_TYPE (captures[0]))
9972 : : - TYPE_PRECISION (type))
9973 : : : 0)) == 0))
9974 : : )
9975 : : {
9976 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1719;
9977 : 0 : {
9978 : 0 : tree res_op0;
9979 : 0 : res_op0 = captures[0];
9980 : 0 : tree _r;
9981 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
9982 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
9983 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
9984 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
9985 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
9986 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 974, __FILE__, __LINE__, true);
9987 : 0 : return _r;
9988 : : }
9989 : 0 : next_after_fail1719:;
9990 : : }
9991 : : }
9992 : : }
9993 : 638015 : switch (TREE_CODE (_p0))
9994 : : {
9995 : 857 : case CONSTRUCTOR:
9996 : 857 : {
9997 : 857 : {
9998 : 857 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _p2 };
9999 : 857 : if (VECTOR_TYPE_P (TREE_TYPE (captures[0]))
10000 : 857 : && tree_fits_uhwi_p (TYPE_SIZE (type))
10001 : 1714 : && ((tree_to_uhwi (TYPE_SIZE (type))
10002 : 857 : == tree_to_uhwi (TYPE_SIZE (TREE_TYPE (TREE_TYPE (captures[0])))))
10003 : 0 : || (VECTOR_TYPE_P (type)
10004 : 0 : && (tree_to_uhwi (TYPE_SIZE (TREE_TYPE (type)))
10005 : 0 : == tree_to_uhwi (TYPE_SIZE (TREE_TYPE (TREE_TYPE (captures[0])))))))
10006 : : )
10007 : : {
10008 : 857 : {
10009 : 857 : tree ctor = (TREE_CODE (captures[0]) == SSA_NAME
10010 : 857 : ? gimple_assign_rhs1 (SSA_NAME_DEF_STMT (captures[0])) : captures[0]);
10011 : 857 : tree eltype = TREE_TYPE (TREE_TYPE (ctor));
10012 : 857 : unsigned HOST_WIDE_INT width = tree_to_uhwi (TYPE_SIZE (eltype));
10013 : 857 : unsigned HOST_WIDE_INT n = tree_to_uhwi (captures[1]);
10014 : 857 : unsigned HOST_WIDE_INT idx = tree_to_uhwi (captures[2]);
10015 : 857 : if (n != 0
10016 : 857 : && (idx % width) == 0
10017 : 857 : && (n % width) == 0
10018 : 1714 : && known_le ((idx + n) / width,
10019 : : TYPE_VECTOR_SUBPARTS (TREE_TYPE (ctor)))
10020 : : )
10021 : : {
10022 : 857 : {
10023 : 857 : idx = idx / width;
10024 : 857 : n = n / width;
10025 : 857 : poly_uint64 k = 1;
10026 : 857 : if (CONSTRUCTOR_NELTS (ctor) != 0)
10027 : : {
10028 : 857 : tree cons_elem = TREE_TYPE (CONSTRUCTOR_ELT (ctor, 0)->value);
10029 : 857 : if (TREE_CODE (cons_elem) == VECTOR_TYPE)
10030 : 857 : k = TYPE_VECTOR_SUBPARTS (cons_elem);
10031 : : }
10032 : 857 : unsigned HOST_WIDE_INT elt, count, const_k;
10033 : 857 : if (multiple_p (idx, k, &elt) && multiple_p (n, k, &count)
10034 : : )
10035 : : {
10036 : 8 : if (CONSTRUCTOR_NELTS (ctor) == 0
10037 : : )
10038 : : {
10039 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1720;
10040 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1720;
10041 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1720;
10042 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1720;
10043 : 0 : {
10044 : 0 : tree _r;
10045 : 0 : _r = build_zero_cst (type);
10046 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 975, __FILE__, __LINE__, true);
10047 : 857 : return _r;
10048 : : }
10049 : : next_after_fail1720:;
10050 : : }
10051 : : else
10052 : : {
10053 : 8 : if (count == 1
10054 : : )
10055 : : {
10056 : 8 : if (elt < CONSTRUCTOR_NELTS (ctor)
10057 : : )
10058 : : {
10059 : 8 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1721;
10060 : 8 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1721;
10061 : 8 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1721;
10062 : 8 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1721;
10063 : 8 : {
10064 : 8 : tree res_op0;
10065 : 8 : res_op0 = CONSTRUCTOR_ELT (ctor, elt)->value;
10066 : 8 : tree _r;
10067 : 8 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
10068 : 8 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 976, __FILE__, __LINE__, true);
10069 : 8 : return _r;
10070 : : }
10071 : : next_after_fail1721:;
10072 : : }
10073 : : else
10074 : : {
10075 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1722;
10076 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1722;
10077 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1722;
10078 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1722;
10079 : 0 : {
10080 : 0 : tree _r;
10081 : 0 : _r = build_zero_cst (type);
10082 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 977, __FILE__, __LINE__, true);
10083 : 0 : return _r;
10084 : : }
10085 : : next_after_fail1722:;
10086 : : }
10087 : : }
10088 : : else
10089 : : {
10090 : 0 : if (single_use (captures[0])
10091 : : )
10092 : : {
10093 : 0 : {
10094 : 0 : vec<constructor_elt, va_gc> *vals;
10095 : 0 : vec_alloc (vals, count);
10096 : 0 : bool constant_p = true;
10097 : 0 : tree res;
10098 : 0 : for (unsigned i = 0;
10099 : 0 : i < count && elt + i < CONSTRUCTOR_NELTS (ctor); ++i)
10100 : : {
10101 : 0 : tree e = CONSTRUCTOR_ELT (ctor, elt + i)->value;
10102 : 0 : CONSTRUCTOR_APPEND_ELT (vals, NULL_TREE, e);
10103 : 0 : if (!CONSTANT_CLASS_P (e))
10104 : 0 : constant_p = false;
10105 : : }
10106 : 0 : tree evtype = (types_match (TREE_TYPE (type),
10107 : 0 : TREE_TYPE (TREE_TYPE (ctor)))
10108 : 0 : ? type
10109 : 0 : : build_vector_type (TREE_TYPE (TREE_TYPE (ctor)),
10110 : 0 : count * k));
10111 : 0 : res = (constant_p ? build_vector_from_ctor (evtype, vals)
10112 : : : (
10113 : :
10114 : 0 : ? NULL_TREE : build_constructor (evtype, vals)));
10115 : 0 : if (res
10116 : : )
10117 : : {
10118 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1723;
10119 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1723;
10120 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1723;
10121 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1723;
10122 : 0 : {
10123 : 0 : tree res_op0;
10124 : 0 : res_op0 = res;
10125 : 0 : tree _r;
10126 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
10127 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 978, __FILE__, __LINE__, true);
10128 : 0 : return _r;
10129 : : }
10130 : 0 : next_after_fail1723:;
10131 : : }
10132 : : }
10133 : : }
10134 : : }
10135 : : }
10136 : : }
10137 : : else
10138 : : {
10139 : 849 : if (k.is_constant (&const_k)
10140 : 849 : && idx + n <= (idx / const_k + 1) * const_k
10141 : : )
10142 : : {
10143 : 1698 : if (CONSTRUCTOR_NELTS (ctor) <= idx / const_k
10144 : : )
10145 : : {
10146 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1724;
10147 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1724;
10148 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1724;
10149 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1724;
10150 : 0 : {
10151 : 0 : tree _r;
10152 : 0 : _r = build_zero_cst (type);
10153 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 979, __FILE__, __LINE__, true);
10154 : 0 : return _r;
10155 : : }
10156 : : next_after_fail1724:;
10157 : : }
10158 : : else
10159 : : {
10160 : 849 : if (n == const_k
10161 : : )
10162 : : {
10163 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1725;
10164 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1725;
10165 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1725;
10166 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1725;
10167 : 0 : {
10168 : 0 : tree res_op0;
10169 : 0 : res_op0 = CONSTRUCTOR_ELT (ctor, idx / const_k)->value;
10170 : 0 : tree _r;
10171 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
10172 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 980, __FILE__, __LINE__, true);
10173 : 0 : return _r;
10174 : : }
10175 : : next_after_fail1725:;
10176 : : }
10177 : : else
10178 : : {
10179 : 849 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1726;
10180 : 849 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1726;
10181 : 849 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1726;
10182 : 849 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1726;
10183 : 849 : {
10184 : 849 : tree res_op0;
10185 : 849 : res_op0 = CONSTRUCTOR_ELT (ctor, idx / const_k)->value;
10186 : 849 : tree res_op1;
10187 : 849 : res_op1 = captures[1];
10188 : 849 : tree res_op2;
10189 : 849 : res_op2 = bitsize_int ((idx % const_k) * width);
10190 : 849 : tree _r;
10191 : 849 : _r = fold_build3_loc (loc, BIT_FIELD_REF, type, res_op0, res_op1, res_op2);
10192 : 849 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 981, __FILE__, __LINE__, true);
10193 : 849 : return _r;
10194 : : }
10195 : : next_after_fail1726:;
10196 : : }
10197 : : }
10198 : : }
10199 : : }
10200 : : }
10201 : : }
10202 : : }
10203 : : }
10204 : : }
10205 : 0 : break;
10206 : : }
10207 : 0 : case BIT_INSERT_EXPR:
10208 : 0 : {
10209 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
10210 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
10211 : 0 : tree _q22 = TREE_OPERAND (_p0, 2);
10212 : 0 : {
10213 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _p1, _p2 };
10214 : 0 : {
10215 : 0 : unsigned HOST_WIDE_INT isize;
10216 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1])))
10217 : 0 : isize = TYPE_PRECISION (TREE_TYPE (captures[1]));
10218 : : else
10219 : 0 : isize = tree_to_uhwi (TYPE_SIZE (TREE_TYPE (captures[1])));
10220 : 0 : if ((!INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
10221 : 0 : || type_has_mode_precision_p (TREE_TYPE (captures[1])))
10222 : 0 : && wi::leu_p (wi::to_wide (captures[2]), wi::to_wide (captures[4]))
10223 : 0 : && wi::leu_p (wi::to_wide (captures[4]) + wi::to_wide (captures[3]),
10224 : 0 : wi::to_wide (captures[2]) + isize)
10225 : : )
10226 : : {
10227 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1727;
10228 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1727;
10229 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1727;
10230 : 0 : {
10231 : 0 : tree res_op0;
10232 : 0 : res_op0 = captures[1];
10233 : 0 : tree res_op1;
10234 : 0 : res_op1 = captures[3];
10235 : 0 : tree res_op2;
10236 : 0 : res_op2 = wide_int_to_tree (bitsizetype,
10237 : 0 : wi::to_wide (captures[4])
10238 : 0 : - wi::to_wide (captures[2]));
10239 : 0 : tree _r;
10240 : 0 : _r = fold_build3_loc (loc, BIT_FIELD_REF, type, res_op0, res_op1, res_op2);
10241 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
10242 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
10243 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 982, __FILE__, __LINE__, true);
10244 : 0 : return _r;
10245 : : }
10246 : 0 : next_after_fail1727:;
10247 : : }
10248 : : else
10249 : : {
10250 : 0 : if (wi::eq_p (wi::to_wide (captures[2]), wi::to_wide (captures[4]))
10251 : 0 : && compare_tree_int (captures[3], isize) == 0
10252 : : )
10253 : : {
10254 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1728;
10255 : 0 : {
10256 : 0 : tree res_op0;
10257 : 0 : res_op0 = captures[1];
10258 : 0 : tree _r;
10259 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
10260 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
10261 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
10262 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
10263 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
10264 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
10265 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
10266 : 0 : if (TREE_SIDE_EFFECTS (captures[4]))
10267 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[4]), _r);
10268 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 983, __FILE__, __LINE__, true);
10269 : 0 : return _r;
10270 : : }
10271 : 0 : next_after_fail1728:;
10272 : : }
10273 : : else
10274 : : {
10275 : 0 : if (wi::geu_p (wi::to_wide (captures[2]),
10276 : 0 : wi::to_wide (captures[4]) + wi::to_wide (captures[3]))
10277 : 0 : || wi::geu_p (wi::to_wide (captures[4]),
10278 : 0 : wi::to_wide (captures[2]) + isize)
10279 : : )
10280 : : {
10281 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1729;
10282 : 0 : {
10283 : 0 : tree res_op0;
10284 : 0 : res_op0 = captures[0];
10285 : 0 : tree res_op1;
10286 : 0 : res_op1 = captures[3];
10287 : 0 : tree res_op2;
10288 : 0 : res_op2 = captures[4];
10289 : 0 : tree _r;
10290 : 0 : _r = fold_build3_loc (loc, BIT_FIELD_REF, type, res_op0, res_op1, res_op2);
10291 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
10292 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
10293 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
10294 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
10295 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 984, __FILE__, __LINE__, true);
10296 : 0 : return _r;
10297 : : }
10298 : 0 : next_after_fail1729:;
10299 : : }
10300 : : }
10301 : : }
10302 : : }
10303 : : }
10304 : 0 : break;
10305 : : }
10306 : : default:;
10307 : : }
10308 : : return NULL_TREE;
10309 : : }
10310 : :
10311 : : tree
10312 : 26211711 : generic_simplify (location_t loc, enum tree_code code, const tree type ATTRIBUTE_UNUSED, tree _p0, tree _p1, tree _p2)
10313 : : {
10314 : 26211711 : switch (code)
10315 : : {
10316 : 9619789 : case COND_EXPR:
10317 : 9619789 : return generic_simplify_COND_EXPR (loc, code, type, _p0, _p1, _p2);
10318 : 286984 : case VEC_COND_EXPR:
10319 : 286984 : return generic_simplify_VEC_COND_EXPR (loc, code, type, _p0, _p1, _p2);
10320 : 640597 : case BIT_FIELD_REF:
10321 : 640597 : return generic_simplify_BIT_FIELD_REF (loc, code, type, _p0, _p1, _p2);
10322 : 11665 : case BIT_INSERT_EXPR:
10323 : 11665 : return generic_simplify_BIT_INSERT_EXPR (loc, code, type, _p0, _p1, _p2);
10324 : 579898 : case VEC_PERM_EXPR:
10325 : 579898 : return generic_simplify_VEC_PERM_EXPR (loc, code, type, _p0, _p1, _p2);
10326 : : default:;
10327 : : }
10328 : : return NULL_TREE;
10329 : : }
10330 : :
10331 : : tree
10332 : 0 : generic_simplify (location_t, enum tree_code,
10333 : : const tree, tree, tree, tree, tree)
10334 : : {
10335 : 0 : return NULL_TREE;
10336 : : }
10337 : :
10338 : : tree
10339 : 0 : generic_simplify (location_t, enum tree_code,
10340 : : const tree, tree, tree, tree, tree, tree)
10341 : : {
10342 : 0 : return NULL_TREE;
10343 : : }
10344 : :
10345 : : tree
10346 : 0 : generic_simplify (location_t, enum tree_code,
10347 : : const tree, tree, tree, tree, tree, tree, tree)
10348 : : {
10349 : 0 : return NULL_TREE;
10350 : : }
10351 : :
10352 : : tree
10353 : 0 : generic_simplify (location_t, enum tree_code,
10354 : : const tree, tree, tree, tree, tree, tree, tree, tree)
10355 : : {
10356 : 0 : return NULL_TREE;
10357 : : }
10358 : : void
10359 : 14130 : generic_dump_logs (const char *file1, int line1_id, const char *file2, int line2, bool simplify)
10360 : : {
10361 : 14130 : static int dbg_line_numbers[998] = {
10362 : : 160, 163, 897, 899, 2011, 2017, 2019, 2022, 2027, 2030, 2243, 2247, 2249, 2251, 2253, 2255, 2257, 2259, 2286, 2302,
10363 : : 2310, 2292, 2833, 2835, 2840, 2838, 2845, 2847, 3027, 3037, 4969, 7971, 7992, 9964, 9967, 9972, 10185, 10188, 10209, 10214,
10364 : : 7804, 236, 263, 264, 458, 1255, 1391, 1711, 1761, 1766, 1870, 1829, 3494, 3432, 3537, 3538, 3542, 3543, 3553, 3557,
10365 : : 3561, 3576, 3579, 3583, 3509, 3512, 3517, 3664, 3670, 3676, 3858, 3859, 3885, 3904, 4217, 4891, 6030, 7510, 8902, 8950,
10366 : : 8964, 9991, 10302, 881, 887, 1371, 1380, 1847, 1838, 1785, 2498, 3445, 3485, 3490, 3491, 3499, 3500, 3503, 3520, 3595,
10367 : : 3598, 3602, 3684, 3706, 3744, 3755, 3794, 3809, 4223, 6040, 8960, 9995, 1261, 1265, 1357, 1366, 1396, 1401, 1443, 1428,
10368 : : 1435, 1469, 1924, 1474, 1481, 1501, 1604, 1857, 1916, 1628, 1718, 1723, 1733, 1743, 1944, 1954, 1956, 2157, 2176, 2184,
10369 : : 2189, 2194, 2210, 2200, 2201, 2224, 2235, 2238, 2270, 2338, 2365, 2367, 2372, 2374, 2491, 2353, 2383, 2896, 2898, 3083,
10370 : : 3098, 3116, 3299, 3300, 3301, 3306, 3311, 3317, 3323, 3355, 3356, 3361, 3362, 3367, 3372, 3376, 3088, 3107, 3109, 3093,
10371 : : 3956, 3967, 3973, 3989, 4001, 6681, 8368, 1406, 1411, 1506, 1511, 1876, 1728, 1818, 1738, 1882, 1748, 1753, 1928, 1889,
10372 : : 1895, 2472, 1902, 1962, 4229, 6099, 6101, 6150, 6158, 9047, 9053, 426, 432, 464, 1200, 1220, 1225, 2003, 2004, 2041,
10373 : : 2507, 4884, 4913, 4915, 4964, 7503, 7839, 7833, 7878, 7883, 294, 849, 2275, 2486, 2525, 2535, 2574, 2580, 2583, 2588,
10374 : : 2753, 2604, 2606, 2607, 2610, 2612, 2613, 2615, 2617, 2619, 2621, 2623, 2625, 2639, 2640, 2674, 2759, 2784, 2700, 2727,
10375 : : 2767, 2772, 2797, 2804, 2855, 3397, 4169, 4177, 4180, 4186, 4189, 4431, 4432, 4472, 4476, 4605, 4439, 4440, 4490, 4493,
10376 : : 4494, 4499, 4502, 4505, 4506, 4446, 4458, 4461, 4650, 4654, 4659, 4897, 5029, 5033, 6110, 6126, 6128, 6140, 6170, 6176,
10377 : : 6177, 6192, 6193, 6197, 6215, 6220, 6246, 6254, 6264, 6273, 6277, 6283, 6290, 6306, 6310, 6314, 6321, 6322, 6327, 6328,
10378 : : 6335, 6336, 6338, 6339, 6355, 6366, 6378, 6382, 6384, 6389, 6392, 6395, 6403, 6465, 6466, 6470, 6471, 6478, 6482, 6486,
10379 : : 6489, 6495, 6496, 6500, 6503, 6510, 6530, 6533, 6536, 6539, 6588, 6591, 6595, 6602, 6608, 6616, 6625, 6626, 6724, 6734,
10380 : : 6773, 6779, 6795, 6808, 6810, 6812, 6838, 6880, 6859, 6860, 6867, 6869, 6885, 6891, 6896, 6905, 6911, 6917, 6922, 6927,
10381 : : 6959, 7036, 6941, 6951, 7074, 7076, 7078, 7080, 7082, 7084, 7088, 7090, 7112, 7135, 7247, 7254, 7255, 7263, 7264, 7427,
10382 : : 8412, 8414, 8712, 8715, 8729, 8738, 8783, 8784, 8838, 8840, 8910, 9319, 9321, 9323, 6106, 6117, 6119, 6227, 438, 1173,
10383 : : 1194, 7789, 7794, 7799, 497, 498, 509, 514, 521, 530, 538, 547, 593, 596, 784, 948, 979, 558, 814, 818,
10384 : : 823, 829, 833, 841, 924, 709, 719, 721, 723, 7844, 7866, 7849, 7854, 7859, 7873, 7894, 7899, 771, 774, 1579,
10385 : : 2548, 2551, 2648, 2660, 2742, 2686, 2713, 2825, 2828, 4207, 4199, 6064, 7357, 6638, 6641, 6667, 6668, 7160, 7162, 7164,
10386 : : 7166, 7170, 7172, 7174, 7176, 7180, 7185, 7192, 7197, 7217, 7219, 7221, 7223, 7370, 7378, 7388, 7396, 7406, 7524, 7526,
10387 : : 8425, 8444, 8768, 8770, 8771, 8819, 8822, 8824, 2564, 6054, 6711, 9340, 9342, 9344, 9346, 9350, 875, 906, 1245, 4311,
10388 : : 4355, 4358, 4366, 4406, 4408, 4409, 4410, 4617, 4336, 4345, 5083, 5086, 5087, 5095, 2168, 3408, 3413, 4115, 8251, 8253,
10389 : : 8284, 8319, 10246, 1137, 7737, 7758, 1146, 7784, 8198, 1160, 1164, 7779, 7949, 1339, 1423, 1455, 1416, 1448, 1463, 1496,
10390 : : 1537, 1548, 1559, 1571, 2395, 1800, 1808, 1813, 1936, 2265, 2513, 3023, 4576, 4594, 4595, 5054, 5060, 5108, 3053, 3055,
10391 : : 3065, 3067, 3172, 3173, 3174, 3179, 3184, 3190, 3196, 3228, 3229, 3234, 3235, 3240, 3245, 3249, 3073, 3078, 3123, 6684,
10392 : : 8354, 8356, 8945, 1486, 1491, 2451, 1659, 2456, 4628, 2431, 2462, 2466, 4642, 4158, 6091, 6093, 2048, 2086, 2109, 2110,
10393 : : 2436, 3470, 8659, 4008, 4012, 4022, 4040, 4098, 4100, 4102, 4104, 4153, 8376, 4026, 4033, 4018, 4125, 4134, 4137, 5567,
10394 : : 5569, 5571, 5671, 5674, 5790, 5792, 5806, 5810, 4247, 4266, 4273, 4279, 4285, 4291, 4259, 5751, 5755, 5763, 5974, 8385,
10395 : : 8386, 5984, 9107, 9115, 6989, 6990, 7004, 7005, 4298, 7456, 7459, 7478, 5005, 5017, 5020, 5024, 9549, 9555, 9563, 9569,
10396 : : 9578, 9584, 9592, 9598, 9644, 9652, 7279, 6235, 6231, 7437, 7444, 7628, 7700, 7717, 7749, 7769, 7774, 8012, 7989, 7968,
10397 : : 7810, 7814, 8092, 8102, 8109, 8118, 8136, 8143, 8124, 8391, 8397, 8649, 8655, 8652, 8663, 8669, 8677, 8683, 8691, 8697,
10398 : : 8925, 8940, 9206, 9209, 9014, 9028, 9041, 9725, 9739, 9821, 9822, 201, 1968, 1978, 5140, 1987, 1087, 2404, 3004, 4670,
10399 : : 4672, 4682, 4774, 4785, 4798, 4821, 4831, 4840, 4852, 4878, 5148, 5521, 1656, 1670, 1677, 1699, 1706, 2280, 2479, 1973,
10400 : : 1982, 1991, 2057, 2061, 2092, 2098, 3457, 6017, 3465, 8673, 8687, 8701, 4687, 4696, 4708, 4718, 4724, 5157, 4733, 4730,
10401 : : 4977, 4985, 4993, 4996, 4980, 4988, 4999, 5011, 219, 691, 4926, 4932, 4934, 5175, 5186, 5195, 10261, 2903, 2907, 224,
10402 : : 2924, 2928, 2940, 242, 279, 1375, 1665, 1773, 1780, 1790, 1795, 2067, 2948, 2960, 2954, 2966, 2078, 2669, 2694, 2721,
10403 : : 2705, 2732, 3718, 3690, 3765, 3774, 3817, 3828, 4939, 4950, 10227, 10228, 1584, 1589, 6674, 9703, 9707, 1612, 1617, 2444,
10404 : : 3388, 229, 282, 2678, 2973, 2980, 2987, 2993, 3727, 2998, 3783, 3831, 3840, 4942, 338, 286, 306, 315, 323, 397,
10405 : : 412, 420, 610, 650, 940, 1125, 1130, 1228, 1231, 1331, 2323, 4955, 7532, 7538, 7676, 7888, 2424, 6741, 7311, 7337,
10406 : : 7338, 2414, 7305, 931, 573, 576, 700, 729, 735, 741, 749, 754, 759, 802, 806, 7544, 7550, 7229, 860, 1286,
10407 : : 4327, 1275, 1278, 1310, 1321, 4304, 4350, 1345, 1518, 1594, 1622, 2215, 4417, 4418, 6678, 10234, 4047, 4051, 4079, 4080,
10408 : : 4146, 4058, 4062, 4070, 4071, 4387, 4974, 7287, 7289, 7296, 7298, 6239, 4235, 5770, 5775, 5843, 5849, 5858, 5859, 5126,
10409 : : 5128, 5866, 5872, 5875, 5884, 5888, 5893, 5919, 5924, 5971, 5932, 5937, 5981, 7019, 7021, 5947, 5948, 5992, 5962, 5963,
10410 : : 6004, 6005, 7050, 7055, 5898, 5132, 5134, 5347, 5349, 8450, 8456, 8461, 8470, 8472, 8492, 8537, 8540, 8541, 8573, 8579,
10411 : : 8581, 8582, 8604, 8609, 8614, 8642, 9845, 9847, 9882, 9956, 9959, 10042, 9979, 9985, 10111, 10113, 10175, 10177
10412 : : };
10413 : :
10414 : 19853 : fprintf (dump_file, "%s %s:%d, %s:%d\n",
10415 : : simplify ? "Applying pattern" : "Matching expression", file1, dbg_line_numbers[line1_id], file2, line2);
10416 : 14130 : }
10417 : :
10418 : : #pragma GCC diagnostic pop
|