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 : 95956961 : tree_maybe_cmp (tree t, tree *res_ops)
11 : : {
12 : 95956961 : const tree type = TREE_TYPE (t);
13 : 95956961 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
14 : 95956961 : if (TREE_SIDE_EFFECTS (t)) return false;
15 : 95956961 : switch (TREE_CODE (t))
16 : : {
17 : 398052 : case LT_EXPR:
18 : 398052 : case LE_EXPR:
19 : 398052 : case EQ_EXPR:
20 : 398052 : case NE_EXPR:
21 : 398052 : case GE_EXPR:
22 : 398052 : case GT_EXPR:
23 : 398052 : case UNORDERED_EXPR:
24 : 398052 : case ORDERED_EXPR:
25 : 398052 : case UNLT_EXPR:
26 : 398052 : case UNLE_EXPR:
27 : 398052 : case UNGT_EXPR:
28 : 398052 : case UNGE_EXPR:
29 : 398052 : case UNEQ_EXPR:
30 : 398052 : case LTGT_EXPR:
31 : 398052 : {
32 : 398052 : tree _p0 = TREE_OPERAND (t, 0);
33 : 398052 : tree _p1 = TREE_OPERAND (t, 1);
34 : 398052 : {
35 : 398052 : tree captures[3] ATTRIBUTE_UNUSED = { t, _p0, _p1 };
36 : 398052 : {
37 : 398052 : res_ops[0] = captures[0];
38 : 398052 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 5, __FILE__, __LINE__, false);
39 : 398052 : return true;
40 : : }
41 : : }
42 : 16395055 : break;
43 : : }
44 : 16395055 : CASE_CONVERT:
45 : 16395055 : {
46 : 16395055 : tree _p0 = TREE_OPERAND (t, 0);
47 : 16395055 : switch (TREE_CODE (_p0))
48 : : {
49 : 1426 : case LT_EXPR:
50 : 1426 : case LE_EXPR:
51 : 1426 : case EQ_EXPR:
52 : 1426 : case NE_EXPR:
53 : 1426 : case GE_EXPR:
54 : 1426 : case GT_EXPR:
55 : 1426 : case UNORDERED_EXPR:
56 : 1426 : case ORDERED_EXPR:
57 : 1426 : case UNLT_EXPR:
58 : 1426 : case UNLE_EXPR:
59 : 1426 : case UNGT_EXPR:
60 : 1426 : case UNGE_EXPR:
61 : 1426 : case UNEQ_EXPR:
62 : 1426 : case LTGT_EXPR:
63 : 1426 : {
64 : 1426 : tree _q20 = TREE_OPERAND (_p0, 0);
65 : 1426 : tree _q21 = TREE_OPERAND (_p0, 1);
66 : 1426 : {
67 : 1426 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
68 : 1426 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
69 : : )
70 : : {
71 : 759 : {
72 : 759 : res_ops[0] = captures[0];
73 : 759 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 6, __FILE__, __LINE__, false);
74 : 759 : return true;
75 : : }
76 : : }
77 : : }
78 : : break;
79 : : }
80 : : default:;
81 : : }
82 : : break;
83 : : }
84 : 58992 : case BIT_XOR_EXPR:
85 : 58992 : {
86 : 58992 : tree _p0 = TREE_OPERAND (t, 0);
87 : 58992 : tree _p1 = TREE_OPERAND (t, 1);
88 : 58992 : {
89 : 58992 : tree captures[3] ATTRIBUTE_UNUSED = { t, _p0, _p1 };
90 : 58992 : if (INTEGRAL_TYPE_P (type)
91 : 58992 : && TYPE_PRECISION (type) == 1
92 : : )
93 : : {
94 : 23878 : {
95 : 23878 : res_ops[0] = captures[0];
96 : 23878 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 7, __FILE__, __LINE__, false);
97 : 23878 : return true;
98 : : }
99 : : }
100 : : }
101 : : break;
102 : : }
103 : : default:;
104 : : }
105 : : return false;
106 : : }
107 : :
108 : : bool
109 : 0 : tree_unsigned_integer_sat_sub (tree t, tree *res_ops)
110 : : {
111 : 0 : const tree type = TREE_TYPE (t);
112 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
113 : 0 : if (TREE_SIDE_EFFECTS (t)) return false;
114 : 0 : switch (TREE_CODE (t))
115 : : {
116 : 0 : case COND_EXPR:
117 : 0 : {
118 : 0 : tree _p0 = TREE_OPERAND (t, 0);
119 : 0 : tree _p1 = TREE_OPERAND (t, 1);
120 : 0 : tree _p2 = TREE_OPERAND (t, 2);
121 : 0 : switch (TREE_CODE (_p0))
122 : : {
123 : 0 : case GT_EXPR:
124 : 0 : {
125 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
126 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
127 : 0 : switch (TREE_CODE (_p1))
128 : : {
129 : 0 : case MINUS_EXPR:
130 : 0 : {
131 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
132 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
133 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
134 : : {
135 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
136 : : {
137 : 0 : if (integer_zerop (_p2))
138 : : {
139 : 0 : {
140 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
141 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
142 : : )
143 : : {
144 : 0 : if (types_match (type, captures[0], captures[1])
145 : : )
146 : : {
147 : 0 : {
148 : 0 : res_ops[0] = captures[0];
149 : 0 : res_ops[1] = captures[1];
150 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 57, __FILE__, __LINE__, false);
151 : 0 : return true;
152 : : }
153 : : }
154 : : }
155 : : }
156 : : }
157 : : }
158 : : }
159 : : break;
160 : : }
161 : : default:;
162 : : }
163 : : break;
164 : : }
165 : 0 : case GE_EXPR:
166 : 0 : {
167 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
168 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
169 : 0 : switch (TREE_CODE (_p1))
170 : : {
171 : 0 : CASE_CONVERT:
172 : 0 : {
173 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
174 : 0 : switch (TREE_CODE (_q50))
175 : : {
176 : 0 : case MINUS_EXPR:
177 : 0 : {
178 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
179 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
180 : 0 : switch (TREE_CODE (_q60))
181 : : {
182 : 0 : CASE_CONVERT:
183 : 0 : {
184 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
185 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
186 : : {
187 : 0 : switch (TREE_CODE (_q61))
188 : : {
189 : 0 : CASE_CONVERT:
190 : 0 : {
191 : 0 : tree _q90 = TREE_OPERAND (_q61, 0);
192 : 0 : if ((_q90 == _q21 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q21, 0) && types_match (_q90, _q21)))
193 : : {
194 : 0 : if (integer_zerop (_p2))
195 : : {
196 : 0 : {
197 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
198 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
199 : : )
200 : : {
201 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0])) && types_match (captures[0], captures[1])
202 : : )
203 : : {
204 : 0 : {
205 : 0 : res_ops[0] = captures[0];
206 : 0 : res_ops[1] = captures[1];
207 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 58, __FILE__, __LINE__, false);
208 : 0 : return true;
209 : : }
210 : : }
211 : : }
212 : : }
213 : : }
214 : : }
215 : : break;
216 : : }
217 : : default:;
218 : : }
219 : : }
220 : : break;
221 : : }
222 : 0 : default:;
223 : : }
224 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
225 : : {
226 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
227 : : {
228 : 0 : if (integer_zerop (_p2))
229 : : {
230 : 0 : {
231 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
232 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
233 : : )
234 : : {
235 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0])) && types_match (captures[0], captures[1])
236 : : )
237 : : {
238 : 0 : {
239 : 0 : res_ops[0] = captures[0];
240 : 0 : res_ops[1] = captures[1];
241 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 58, __FILE__, __LINE__, false);
242 : 0 : return true;
243 : : }
244 : : }
245 : : }
246 : : }
247 : : }
248 : : }
249 : : }
250 : : break;
251 : : }
252 : : default:;
253 : : }
254 : : break;
255 : : }
256 : 0 : case MINUS_EXPR:
257 : 0 : {
258 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
259 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
260 : 0 : switch (TREE_CODE (_q50))
261 : : {
262 : 0 : CASE_CONVERT:
263 : 0 : {
264 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
265 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
266 : : {
267 : 0 : switch (TREE_CODE (_q51))
268 : : {
269 : 0 : CASE_CONVERT:
270 : 0 : {
271 : 0 : tree _q80 = TREE_OPERAND (_q51, 0);
272 : 0 : if ((_q80 == _q21 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q21, 0) && types_match (_q80, _q21)))
273 : : {
274 : 0 : if (integer_zerop (_p2))
275 : : {
276 : 0 : {
277 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
278 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
279 : : )
280 : : {
281 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0])) && types_match (captures[0], captures[1])
282 : : )
283 : : {
284 : 0 : {
285 : 0 : res_ops[0] = captures[0];
286 : 0 : res_ops[1] = captures[1];
287 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 58, __FILE__, __LINE__, false);
288 : 0 : return true;
289 : : }
290 : : }
291 : : }
292 : : }
293 : : }
294 : : }
295 : : break;
296 : : }
297 : : default:;
298 : : }
299 : : }
300 : : break;
301 : : }
302 : 0 : default:;
303 : : }
304 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
305 : : {
306 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
307 : : {
308 : 0 : if (integer_zerop (_p2))
309 : : {
310 : 0 : {
311 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
312 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
313 : : )
314 : : {
315 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0])) && types_match (captures[0], captures[1])
316 : : )
317 : : {
318 : 0 : {
319 : 0 : res_ops[0] = captures[0];
320 : 0 : res_ops[1] = captures[1];
321 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 58, __FILE__, __LINE__, false);
322 : 0 : return true;
323 : : }
324 : : }
325 : : }
326 : : }
327 : : }
328 : : }
329 : : }
330 : : break;
331 : : }
332 : : default:;
333 : : }
334 : : break;
335 : : }
336 : 0 : case EQ_EXPR:
337 : 0 : {
338 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
339 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
340 : 0 : switch (TREE_CODE (_q20))
341 : : {
342 : 0 : case IMAGPART_EXPR:
343 : 0 : {
344 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
345 : 0 : switch (TREE_CODE (_q30))
346 : : {
347 : 0 : case CALL_EXPR:
348 : 0 : switch (get_call_combined_fn (_q30))
349 : : {
350 : 0 : case CFN_SUB_OVERFLOW:
351 : 0 : if (call_expr_nargs (_q30) == 2)
352 : : {
353 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
354 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
355 : 0 : if (integer_zerop (_q21))
356 : : {
357 : 0 : switch (TREE_CODE (_p1))
358 : : {
359 : 0 : case REALPART_EXPR:
360 : 0 : {
361 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
362 : 0 : if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
363 : : {
364 : 0 : if (integer_zerop (_p2))
365 : : {
366 : 0 : {
367 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _q30 };
368 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
369 : : )
370 : : {
371 : 0 : if (types_match (type, captures[0], captures[1])
372 : : )
373 : : {
374 : 0 : {
375 : 0 : res_ops[0] = captures[0];
376 : 0 : res_ops[1] = captures[1];
377 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 59, __FILE__, __LINE__, false);
378 : 0 : return true;
379 : : }
380 : : }
381 : : }
382 : : }
383 : : }
384 : : }
385 : : break;
386 : : }
387 : : default:;
388 : : }
389 : : }
390 : : }
391 : : break;
392 : : default:;
393 : : }
394 : : break;
395 : : default:;
396 : : }
397 : : break;
398 : : }
399 : : default:;
400 : : }
401 : : break;
402 : : }
403 : 0 : case NE_EXPR:
404 : 0 : {
405 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
406 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
407 : 0 : switch (TREE_CODE (_q20))
408 : : {
409 : 0 : case IMAGPART_EXPR:
410 : 0 : {
411 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
412 : 0 : switch (TREE_CODE (_q30))
413 : : {
414 : 0 : case CALL_EXPR:
415 : 0 : switch (get_call_combined_fn (_q30))
416 : : {
417 : 0 : case CFN_SUB_OVERFLOW:
418 : 0 : if (call_expr_nargs (_q30) == 2)
419 : : {
420 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
421 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
422 : 0 : if (integer_zerop (_q21))
423 : : {
424 : 0 : if (integer_zerop (_p1))
425 : : {
426 : 0 : switch (TREE_CODE (_p2))
427 : : {
428 : 0 : case REALPART_EXPR:
429 : 0 : {
430 : 0 : tree _q90 = TREE_OPERAND (_p2, 0);
431 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
432 : : {
433 : 0 : {
434 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _q30 };
435 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
436 : : )
437 : : {
438 : 0 : if (types_match (type, captures[0], captures[1])
439 : : )
440 : : {
441 : 0 : {
442 : 0 : res_ops[0] = captures[0];
443 : 0 : res_ops[1] = captures[1];
444 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 60, __FILE__, __LINE__, false);
445 : 0 : return true;
446 : : }
447 : : }
448 : : }
449 : : }
450 : : }
451 : : break;
452 : : }
453 : : default:;
454 : : }
455 : : }
456 : : }
457 : : }
458 : : break;
459 : : default:;
460 : : }
461 : : break;
462 : : default:;
463 : : }
464 : : break;
465 : : }
466 : 0 : default:;
467 : : }
468 : 0 : switch (TREE_CODE (_q21))
469 : : {
470 : 0 : case INTEGER_CST:
471 : 0 : {
472 : 0 : switch (TREE_CODE (_p1))
473 : : {
474 : 0 : case MINUS_EXPR:
475 : 0 : {
476 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
477 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
478 : 0 : switch (TREE_CODE (_q50))
479 : : {
480 : 0 : case INTEGER_CST:
481 : 0 : {
482 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
483 : : {
484 : 0 : if (integer_zerop (_p2))
485 : : {
486 : 0 : {
487 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q20, _q21 };
488 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
489 : : )
490 : : {
491 : 0 : if (types_match (type, captures[1])
492 : : )
493 : : {
494 : 0 : {
495 : 0 : unsigned precision = TYPE_PRECISION (type);
496 : 0 : wide_int max = wi::mask (precision, false, precision);
497 : 0 : wide_int c0 = wi::to_wide (captures[0]);
498 : 0 : wide_int c2 = wi::to_wide (captures[2]);
499 : 0 : wide_int c0_add_1 = wi::add (c0, wi::uhwi (1, precision));
500 : 0 : if (wi::eq_p (c2, max) && wi::eq_p (c0_add_1, max)
501 : : )
502 : : {
503 : 0 : {
504 : 0 : res_ops[0] = captures[0];
505 : 0 : res_ops[1] = captures[1];
506 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 61, __FILE__, __LINE__, false);
507 : 0 : return true;
508 : : }
509 : : }
510 : 0 : }
511 : : }
512 : : }
513 : : }
514 : : }
515 : : }
516 : : break;
517 : : }
518 : : default:;
519 : : }
520 : : break;
521 : : }
522 : : default:;
523 : : }
524 : : break;
525 : : }
526 : : default:;
527 : : }
528 : : break;
529 : : }
530 : 0 : case LE_EXPR:
531 : 0 : {
532 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
533 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
534 : 0 : switch (TREE_CODE (_q21))
535 : : {
536 : 0 : case INTEGER_CST:
537 : 0 : {
538 : 0 : switch (TREE_CODE (_p1))
539 : : {
540 : 0 : case MINUS_EXPR:
541 : 0 : {
542 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
543 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
544 : 0 : switch (TREE_CODE (_q50))
545 : : {
546 : 0 : case INTEGER_CST:
547 : 0 : {
548 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
549 : : {
550 : 0 : if (integer_zerop (_p2))
551 : : {
552 : 0 : {
553 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q20, _q21 };
554 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
555 : : )
556 : : {
557 : 0 : if (types_match (type, captures[1]) && int_fits_type_p (captures[0], type)
558 : : )
559 : : {
560 : 0 : {
561 : 0 : unsigned precision = TYPE_PRECISION (type);
562 : 0 : wide_int max = wi::mask (precision, false, precision);
563 : 0 : wide_int c0 = wi::to_wide (captures[0]);
564 : 0 : wide_int c2 = wi::to_wide (captures[2]);
565 : 0 : wide_int c2_add_1 = wi::add (c2, wi::uhwi (1, precision));
566 : 0 : bool equal_p = wi::eq_p (c0, c2);
567 : 0 : bool less_than_1_p = !wi::eq_p (c2, max) && wi::eq_p (c2_add_1, c0);
568 : 0 : if (equal_p || less_than_1_p
569 : : )
570 : : {
571 : 0 : {
572 : 0 : res_ops[0] = captures[0];
573 : 0 : res_ops[1] = captures[1];
574 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 62, __FILE__, __LINE__, false);
575 : 0 : return true;
576 : : }
577 : : }
578 : 0 : }
579 : : }
580 : : }
581 : : }
582 : : }
583 : : }
584 : : break;
585 : : }
586 : : default:;
587 : : }
588 : : break;
589 : : }
590 : : default:;
591 : : }
592 : : break;
593 : : }
594 : 0 : default:;
595 : : }
596 : 0 : if (integer_onep (_q21))
597 : : {
598 : 0 : switch (TREE_CODE (_p1))
599 : : {
600 : 0 : case BIT_XOR_EXPR:
601 : 0 : {
602 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
603 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
604 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
605 : : {
606 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
607 : : {
608 : 0 : if (integer_onep (_q51))
609 : : {
610 : 0 : if (integer_zerop (_p2))
611 : : {
612 : 0 : {
613 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
614 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
615 : : )
616 : : {
617 : 0 : if (types_match (type, captures[1])
618 : : )
619 : : {
620 : 0 : {
621 : 0 : res_ops[0] = captures[0];
622 : 0 : res_ops[1] = captures[1];
623 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 63, __FILE__, __LINE__, false);
624 : 0 : return true;
625 : : }
626 : : }
627 : : }
628 : : }
629 : : }
630 : : }
631 : : }
632 : : }
633 : : break;
634 : : }
635 : : default:;
636 : : }
637 : : }
638 : : break;
639 : : }
640 : : default:;
641 : : }
642 : : break;
643 : : }
644 : 0 : case MULT_EXPR:
645 : 0 : {
646 : 0 : tree _p0 = TREE_OPERAND (t, 0);
647 : 0 : tree _p1 = TREE_OPERAND (t, 1);
648 : 0 : switch (TREE_CODE (_p0))
649 : : {
650 : 0 : case MINUS_EXPR:
651 : 0 : {
652 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
653 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
654 : 0 : switch (TREE_CODE (_p1))
655 : : {
656 : 0 : CASE_CONVERT:
657 : 0 : {
658 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
659 : 0 : switch (TREE_CODE (_q50))
660 : : {
661 : 0 : case GT_EXPR:
662 : 0 : {
663 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
664 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
665 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
666 : : {
667 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
668 : : {
669 : 0 : {
670 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
671 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
672 : : )
673 : : {
674 : 0 : if (types_match (type, captures[0], captures[1])
675 : : )
676 : : {
677 : 0 : {
678 : 0 : res_ops[0] = captures[0];
679 : 0 : res_ops[1] = captures[1];
680 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 64, __FILE__, __LINE__, false);
681 : 0 : return true;
682 : : }
683 : : }
684 : : }
685 : : }
686 : : }
687 : : }
688 : : break;
689 : : }
690 : 0 : case GE_EXPR:
691 : 0 : {
692 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
693 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
694 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
695 : : {
696 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
697 : : {
698 : 0 : {
699 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
700 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
701 : : )
702 : : {
703 : 0 : if (types_match (type, captures[0], captures[1])
704 : : )
705 : : {
706 : 0 : {
707 : 0 : res_ops[0] = captures[0];
708 : 0 : res_ops[1] = captures[1];
709 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 65, __FILE__, __LINE__, false);
710 : 0 : return true;
711 : : }
712 : : }
713 : : }
714 : : }
715 : : }
716 : : }
717 : : break;
718 : : }
719 : : default:;
720 : : }
721 : : break;
722 : : }
723 : : default:;
724 : : }
725 : : break;
726 : : }
727 : 0 : CASE_CONVERT:
728 : 0 : {
729 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
730 : 0 : switch (TREE_CODE (_q20))
731 : : {
732 : 0 : case GT_EXPR:
733 : 0 : {
734 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
735 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
736 : 0 : switch (TREE_CODE (_p1))
737 : : {
738 : 0 : case MINUS_EXPR:
739 : 0 : {
740 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
741 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
742 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
743 : : {
744 : 0 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
745 : : {
746 : 0 : {
747 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
748 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
749 : : )
750 : : {
751 : 0 : if (types_match (type, captures[0], captures[1])
752 : : )
753 : : {
754 : 0 : {
755 : 0 : res_ops[0] = captures[0];
756 : 0 : res_ops[1] = captures[1];
757 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 64, __FILE__, __LINE__, false);
758 : 0 : return true;
759 : : }
760 : : }
761 : : }
762 : : }
763 : : }
764 : : }
765 : : break;
766 : : }
767 : : default:;
768 : : }
769 : : break;
770 : : }
771 : 0 : case GE_EXPR:
772 : 0 : {
773 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
774 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
775 : 0 : switch (TREE_CODE (_p1))
776 : : {
777 : 0 : case MINUS_EXPR:
778 : 0 : {
779 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
780 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
781 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
782 : : {
783 : 0 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
784 : : {
785 : 0 : {
786 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
787 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
788 : : )
789 : : {
790 : 0 : if (types_match (type, captures[0], captures[1])
791 : : )
792 : : {
793 : 0 : {
794 : 0 : res_ops[0] = captures[0];
795 : 0 : res_ops[1] = captures[1];
796 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 65, __FILE__, __LINE__, false);
797 : 0 : return true;
798 : : }
799 : : }
800 : : }
801 : : }
802 : : }
803 : : }
804 : : break;
805 : : }
806 : : default:;
807 : : }
808 : : break;
809 : : }
810 : : default:;
811 : : }
812 : : break;
813 : : }
814 : 0 : case REALPART_EXPR:
815 : 0 : {
816 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
817 : 0 : switch (TREE_CODE (_q20))
818 : : {
819 : 0 : case CALL_EXPR:
820 : 0 : switch (get_call_combined_fn (_q20))
821 : : {
822 : 0 : case CFN_SUB_OVERFLOW:
823 : 0 : if (call_expr_nargs (_q20) == 2)
824 : : {
825 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
826 : 0 : tree _q31 = CALL_EXPR_ARG (_q20, 1);
827 : 0 : switch (TREE_CODE (_p1))
828 : : {
829 : 0 : case BIT_XOR_EXPR:
830 : 0 : {
831 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
832 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
833 : 0 : switch (TREE_CODE (_q60))
834 : : {
835 : 0 : case IMAGPART_EXPR:
836 : 0 : {
837 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
838 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
839 : : {
840 : 0 : if (integer_onep (_q61))
841 : : {
842 : 0 : {
843 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q20 };
844 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
845 : : )
846 : : {
847 : 0 : if (types_match (type, captures[0], captures[1])
848 : : )
849 : : {
850 : 0 : {
851 : 0 : res_ops[0] = captures[0];
852 : 0 : res_ops[1] = captures[1];
853 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 66, __FILE__, __LINE__, false);
854 : 0 : return true;
855 : : }
856 : : }
857 : : }
858 : : }
859 : : }
860 : : }
861 : : break;
862 : : }
863 : : default:;
864 : : }
865 : : break;
866 : : }
867 : : default:;
868 : : }
869 : : }
870 : : break;
871 : : default:;
872 : : }
873 : : break;
874 : : default:;
875 : : }
876 : : break;
877 : : }
878 : 0 : case BIT_XOR_EXPR:
879 : 0 : {
880 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
881 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
882 : 0 : switch (TREE_CODE (_q20))
883 : : {
884 : 0 : case IMAGPART_EXPR:
885 : 0 : {
886 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
887 : 0 : if (integer_onep (_q21))
888 : : {
889 : 0 : switch (TREE_CODE (_p1))
890 : : {
891 : 0 : case REALPART_EXPR:
892 : 0 : {
893 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
894 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
895 : : {
896 : 0 : switch (TREE_CODE (_q60))
897 : : {
898 : 0 : case CALL_EXPR:
899 : 0 : switch (get_call_combined_fn (_q60))
900 : : {
901 : 0 : case CFN_SUB_OVERFLOW:
902 : 0 : if (call_expr_nargs (_q60) == 2)
903 : : {
904 : 0 : tree _q80 = CALL_EXPR_ARG (_q60, 0);
905 : 0 : tree _q81 = CALL_EXPR_ARG (_q60, 1);
906 : 0 : {
907 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q80, _q81, _q30 };
908 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
909 : : )
910 : : {
911 : 0 : if (types_match (type, captures[0], captures[1])
912 : : )
913 : : {
914 : 0 : {
915 : 0 : res_ops[0] = captures[0];
916 : 0 : res_ops[1] = captures[1];
917 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 66, __FILE__, __LINE__, false);
918 : 0 : return true;
919 : : }
920 : : }
921 : : }
922 : : }
923 : : }
924 : : break;
925 : : default:;
926 : : }
927 : : break;
928 : : default:;
929 : : }
930 : : }
931 : : break;
932 : : }
933 : : default:;
934 : : }
935 : : }
936 : : break;
937 : : }
938 : : default:;
939 : : }
940 : : break;
941 : : }
942 : : default:;
943 : : }
944 : : break;
945 : : }
946 : 0 : case BIT_AND_EXPR:
947 : 0 : {
948 : 0 : tree _p0 = TREE_OPERAND (t, 0);
949 : 0 : tree _p1 = TREE_OPERAND (t, 1);
950 : 0 : switch (TREE_CODE (_p0))
951 : : {
952 : 0 : case REALPART_EXPR:
953 : 0 : {
954 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
955 : 0 : switch (TREE_CODE (_q20))
956 : : {
957 : 0 : case CALL_EXPR:
958 : 0 : switch (get_call_combined_fn (_q20))
959 : : {
960 : 0 : case CFN_SUB_OVERFLOW:
961 : 0 : if (call_expr_nargs (_q20) == 2)
962 : : {
963 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
964 : 0 : tree _q31 = CALL_EXPR_ARG (_q20, 1);
965 : 0 : switch (TREE_CODE (_p1))
966 : : {
967 : 0 : case PLUS_EXPR:
968 : 0 : {
969 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
970 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
971 : 0 : switch (TREE_CODE (_q60))
972 : : {
973 : 0 : case IMAGPART_EXPR:
974 : 0 : {
975 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
976 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
977 : : {
978 : 0 : if (integer_minus_onep (_q61))
979 : : {
980 : 0 : {
981 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q20 };
982 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
983 : : )
984 : : {
985 : 0 : if (types_match (type, captures[0], captures[1])
986 : : )
987 : : {
988 : 0 : {
989 : 0 : res_ops[0] = captures[0];
990 : 0 : res_ops[1] = captures[1];
991 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 67, __FILE__, __LINE__, false);
992 : 0 : return true;
993 : : }
994 : : }
995 : : }
996 : : }
997 : : }
998 : : }
999 : : break;
1000 : : }
1001 : : default:;
1002 : : }
1003 : : break;
1004 : : }
1005 : : default:;
1006 : : }
1007 : : }
1008 : : break;
1009 : : default:;
1010 : : }
1011 : : break;
1012 : : default:;
1013 : : }
1014 : : break;
1015 : : }
1016 : 0 : case PLUS_EXPR:
1017 : 0 : {
1018 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
1019 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
1020 : 0 : switch (TREE_CODE (_q20))
1021 : : {
1022 : 0 : case IMAGPART_EXPR:
1023 : 0 : {
1024 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
1025 : 0 : if (integer_minus_onep (_q21))
1026 : : {
1027 : 0 : switch (TREE_CODE (_p1))
1028 : : {
1029 : 0 : case REALPART_EXPR:
1030 : 0 : {
1031 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
1032 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
1033 : : {
1034 : 0 : switch (TREE_CODE (_q60))
1035 : : {
1036 : 0 : case CALL_EXPR:
1037 : 0 : switch (get_call_combined_fn (_q60))
1038 : : {
1039 : 0 : case CFN_SUB_OVERFLOW:
1040 : 0 : if (call_expr_nargs (_q60) == 2)
1041 : : {
1042 : 0 : tree _q80 = CALL_EXPR_ARG (_q60, 0);
1043 : 0 : tree _q81 = CALL_EXPR_ARG (_q60, 1);
1044 : 0 : {
1045 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q80, _q81, _q30 };
1046 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
1047 : : )
1048 : : {
1049 : 0 : if (types_match (type, captures[0], captures[1])
1050 : : )
1051 : : {
1052 : 0 : {
1053 : 0 : res_ops[0] = captures[0];
1054 : 0 : res_ops[1] = captures[1];
1055 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 67, __FILE__, __LINE__, false);
1056 : 0 : return true;
1057 : : }
1058 : : }
1059 : : }
1060 : : }
1061 : : }
1062 : : break;
1063 : : default:;
1064 : : }
1065 : : break;
1066 : : default:;
1067 : : }
1068 : : }
1069 : : break;
1070 : : }
1071 : : default:;
1072 : : }
1073 : : }
1074 : : break;
1075 : : }
1076 : : default:;
1077 : : }
1078 : : break;
1079 : : }
1080 : : default:;
1081 : : }
1082 : : break;
1083 : : }
1084 : 0 : case PLUS_EXPR:
1085 : 0 : {
1086 : 0 : tree _p0 = TREE_OPERAND (t, 0);
1087 : 0 : tree _p1 = TREE_OPERAND (t, 1);
1088 : 0 : switch (TREE_CODE (_p0))
1089 : : {
1090 : 0 : case MAX_EXPR:
1091 : 0 : {
1092 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
1093 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
1094 : 0 : switch (TREE_CODE (_q21))
1095 : : {
1096 : 0 : case INTEGER_CST:
1097 : 0 : {
1098 : 0 : switch (TREE_CODE (_p1))
1099 : : {
1100 : 0 : case INTEGER_CST:
1101 : 0 : {
1102 : 0 : {
1103 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
1104 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
1105 : : )
1106 : : {
1107 : 0 : if (types_match (type, captures[1]) && int_fits_type_p (captures[1], type)
1108 : : )
1109 : : {
1110 : 0 : {
1111 : 0 : unsigned precision = TYPE_PRECISION (type);
1112 : 0 : wide_int c1 = wi::to_wide (captures[1]);
1113 : 0 : wide_int c2 = wi::to_wide (captures[2]);
1114 : 0 : wide_int sum = wi::add (c1, c2);
1115 : 0 : if (wi::eq_p (sum, wi::uhwi (0, precision))
1116 : : )
1117 : : {
1118 : 0 : {
1119 : 0 : res_ops[0] = captures[0];
1120 : 0 : res_ops[1] = captures[1];
1121 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 68, __FILE__, __LINE__, false);
1122 : 0 : return true;
1123 : : }
1124 : : }
1125 : 0 : }
1126 : : }
1127 : : }
1128 : : }
1129 : 0 : break;
1130 : : }
1131 : : default:;
1132 : : }
1133 : : break;
1134 : : }
1135 : : default:;
1136 : : }
1137 : : break;
1138 : : }
1139 : : default:;
1140 : : }
1141 : : break;
1142 : : }
1143 : : default:;
1144 : : }
1145 : : return false;
1146 : : }
1147 : :
1148 : : tree
1149 : 0 : generic_simplify_53 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1150 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1151 : : {
1152 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1153 : 0 : if (!TYPE_SATURATING (type)
1154 : : )
1155 : : {
1156 : 0 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
1157 : 0 : && !FIXED_POINT_TYPE_P (type)
1158 : : )
1159 : : {
1160 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail293;
1161 : 0 : {
1162 : 0 : tree res_op0;
1163 : 0 : res_op0 = captures[1];
1164 : 0 : tree res_op1;
1165 : 0 : res_op1 = captures[2];
1166 : 0 : tree _r;
1167 : 0 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
1168 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
1169 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1170 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 168, __FILE__, __LINE__, true);
1171 : 0 : return _r;
1172 : : }
1173 : 0 : next_after_fail293:;
1174 : : }
1175 : : }
1176 : : return NULL_TREE;
1177 : : }
1178 : :
1179 : : tree
1180 : 142621 : generic_simplify_58 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1181 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1182 : : {
1183 : 142621 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1184 : 142621 : if (!TYPE_SATURATING (type)
1185 : : )
1186 : : {
1187 : 142621 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
1188 : 285242 : && !FIXED_POINT_TYPE_P (type)
1189 : : )
1190 : : {
1191 : 142621 : if (INTEGRAL_TYPE_P (type)
1192 : 142621 : && TYPE_OVERFLOW_UNDEFINED (type)
1193 : 47 : && element_precision (type) <= element_precision (TREE_TYPE (captures[1]))
1194 : 142668 : && element_precision (type) <= element_precision (TREE_TYPE (captures[2]))
1195 : : )
1196 : : {
1197 : 47 : {
1198 : 47 : tree utype = unsigned_type_for (type);
1199 : 47 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail301;
1200 : 47 : {
1201 : 47 : tree res_op0;
1202 : 47 : {
1203 : 47 : tree _o1[2], _r1;
1204 : 47 : {
1205 : 47 : tree _o2[1], _r2;
1206 : 47 : _o2[0] = captures[1];
1207 : 47 : if (TREE_TYPE (_o2[0]) != utype)
1208 : : {
1209 : 39 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
1210 : : }
1211 : : else
1212 : : _r2 = _o2[0];
1213 : 47 : _o1[0] = _r2;
1214 : : }
1215 : 47 : {
1216 : 47 : tree _o2[1], _r2;
1217 : 47 : _o2[0] = captures[2];
1218 : 47 : if (TREE_TYPE (_o2[0]) != utype)
1219 : : {
1220 : 38 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
1221 : : }
1222 : : else
1223 : : _r2 = _o2[0];
1224 : 47 : _o1[1] = _r2;
1225 : : }
1226 : 47 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1227 : 47 : res_op0 = _r1;
1228 : : }
1229 : 47 : tree _r;
1230 : 47 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1231 : 47 : if (TREE_SIDE_EFFECTS (captures[3]))
1232 : 2 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
1233 : 47 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 176, __FILE__, __LINE__, true);
1234 : 47 : return _r;
1235 : : }
1236 : 0 : next_after_fail301:;
1237 : : }
1238 : : }
1239 : : else
1240 : : {
1241 : 142574 : if (((element_precision (type) <= element_precision (TREE_TYPE (captures[1])))
1242 : 142574 : == (element_precision (type) <= element_precision (TREE_TYPE (captures[2]))))
1243 : 142574 : && (element_precision (type) <= element_precision (TREE_TYPE (captures[1]))
1244 : 48 : || (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
1245 : 48 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
1246 : 48 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[1]))
1247 : 48 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[2]))))
1248 : : )
1249 : : {
1250 : 125982 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail302;
1251 : 125982 : {
1252 : 125982 : tree res_op0;
1253 : 125982 : {
1254 : 125982 : tree _o1[1], _r1;
1255 : 125982 : _o1[0] = captures[1];
1256 : 125982 : if (TREE_TYPE (_o1[0]) != type)
1257 : : {
1258 : 125982 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1259 : : }
1260 : : else
1261 : : _r1 = _o1[0];
1262 : 125982 : res_op0 = _r1;
1263 : : }
1264 : 125982 : tree res_op1;
1265 : 125982 : {
1266 : 125982 : tree _o1[1], _r1;
1267 : 125982 : _o1[0] = captures[2];
1268 : 125982 : if (TREE_TYPE (_o1[0]) != type)
1269 : : {
1270 : 125982 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1271 : : }
1272 : : else
1273 : : _r1 = _o1[0];
1274 : 125982 : res_op1 = _r1;
1275 : : }
1276 : 125982 : tree _r;
1277 : 125982 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
1278 : 125982 : if (TREE_SIDE_EFFECTS (captures[3]))
1279 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
1280 : 125982 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 177, __FILE__, __LINE__, true);
1281 : 125982 : return _r;
1282 : : }
1283 : 0 : next_after_fail302:;
1284 : : }
1285 : : }
1286 : : }
1287 : : }
1288 : : return NULL_TREE;
1289 : : }
1290 : :
1291 : : tree
1292 : 0 : generic_simplify_77 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1293 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1294 : : const enum tree_code ARG_UNUSED (bit_op))
1295 : : {
1296 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1297 : 0 : if (bit_op == BIT_AND_EXPR
1298 : : )
1299 : : {
1300 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail324;
1301 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail324;
1302 : 0 : {
1303 : 0 : tree _r;
1304 : 0 : _r = build_zero_cst (type);
1305 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 194, __FILE__, __LINE__, true);
1306 : 0 : return _r;
1307 : : }
1308 : : next_after_fail324:;
1309 : : }
1310 : : else
1311 : : {
1312 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail325;
1313 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail325;
1314 : 0 : {
1315 : 0 : tree _r;
1316 : 0 : _r = build_minus_one_cst (type);
1317 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 195, __FILE__, __LINE__, true);
1318 : 0 : return _r;
1319 : : }
1320 : : next_after_fail325:;
1321 : : }
1322 : : return NULL_TREE;
1323 : : }
1324 : :
1325 : : tree
1326 : 1 : generic_simplify_90 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1327 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1328 : : {
1329 : 1 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1330 : 1 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail338;
1331 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail338;
1332 : 1 : {
1333 : 1 : tree _r;
1334 : 1 : _r = captures[0];
1335 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 204, __FILE__, __LINE__, true);
1336 : : return _r;
1337 : : }
1338 : : next_after_fail338:;
1339 : : return NULL_TREE;
1340 : : }
1341 : :
1342 : : tree
1343 : 390 : generic_simplify_95 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1344 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1345 : : const enum tree_code ARG_UNUSED (op),
1346 : : const enum tree_code ARG_UNUSED (rop))
1347 : : {
1348 : 390 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1349 : 390 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[1]))
1350 : 390 : && tree_nop_conversion_p (type, TREE_TYPE (captures[2]))
1351 : : )
1352 : : {
1353 : 390 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail343;
1354 : 390 : {
1355 : 390 : tree res_op0;
1356 : 390 : {
1357 : 390 : tree _o1[1], _r1;
1358 : 390 : _o1[0] = captures[0];
1359 : 390 : if (TREE_TYPE (_o1[0]) != type)
1360 : : {
1361 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1362 : : }
1363 : : else
1364 : : _r1 = _o1[0];
1365 : 390 : res_op0 = _r1;
1366 : : }
1367 : 390 : tree res_op1;
1368 : 390 : {
1369 : 390 : tree _o1[2], _r1;
1370 : 390 : {
1371 : 390 : tree _o2[1], _r2;
1372 : 390 : _o2[0] = captures[1];
1373 : 390 : if (TREE_TYPE (_o2[0]) != type)
1374 : : {
1375 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, type, _o2[0]);
1376 : : }
1377 : : else
1378 : : _r2 = _o2[0];
1379 : 390 : _o1[0] = _r2;
1380 : : }
1381 : 390 : {
1382 : 390 : tree _o2[1], _r2;
1383 : 390 : _o2[0] = captures[2];
1384 : 390 : if (TREE_TYPE (_o2[0]) != type)
1385 : : {
1386 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, type, _o2[0]);
1387 : : }
1388 : : else
1389 : : _r2 = _o2[0];
1390 : 390 : _o1[1] = _r2;
1391 : : }
1392 : 390 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1393 : 390 : res_op1 = _r1;
1394 : : }
1395 : 390 : tree _r;
1396 : 390 : _r = fold_build2_loc (loc, rop, type, res_op0, res_op1);
1397 : 390 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 208, __FILE__, __LINE__, true);
1398 : 390 : return _r;
1399 : : }
1400 : 0 : next_after_fail343:;
1401 : : }
1402 : : return NULL_TREE;
1403 : : }
1404 : :
1405 : : tree
1406 : 2 : generic_simplify_106 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1407 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1408 : : const enum tree_code ARG_UNUSED (bitop),
1409 : : const enum tree_code ARG_UNUSED (rbitop))
1410 : : {
1411 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1412 : 2 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail358;
1413 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail358;
1414 : 2 : {
1415 : 2 : tree _r;
1416 : 2 : _r = captures[2];
1417 : 2 : if (TREE_SIDE_EFFECTS (captures[1]))
1418 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1419 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 215, __FILE__, __LINE__, true);
1420 : : return _r;
1421 : : }
1422 : : next_after_fail358:;
1423 : : return NULL_TREE;
1424 : : }
1425 : :
1426 : : tree
1427 : 0 : generic_simplify_111 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1428 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1429 : : const enum tree_code ARG_UNUSED (bitop),
1430 : : const enum tree_code ARG_UNUSED (rbitop))
1431 : : {
1432 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1433 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail363;
1434 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail363;
1435 : 0 : {
1436 : 0 : tree res_op0;
1437 : 0 : res_op0 = captures[0];
1438 : 0 : tree res_op1;
1439 : 0 : res_op1 = captures[2];
1440 : 0 : tree _r;
1441 : 0 : _r = fold_build2_loc (loc, bitop, type, res_op0, res_op1);
1442 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 216, __FILE__, __LINE__, true);
1443 : : return _r;
1444 : : }
1445 : : next_after_fail363:;
1446 : : return NULL_TREE;
1447 : : }
1448 : :
1449 : : tree
1450 : 659 : generic_simplify_118 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1451 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1452 : : const enum tree_code ARG_UNUSED (bitop))
1453 : : {
1454 : 659 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1455 : 659 : if (!CONSTANT_CLASS_P (captures[0])
1456 : : )
1457 : : {
1458 : 659 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail371;
1459 : 659 : {
1460 : 659 : tree res_op0;
1461 : 659 : res_op0 = captures[0];
1462 : 659 : tree res_op1;
1463 : 659 : {
1464 : 659 : tree _o1[2], _r1;
1465 : 659 : _o1[0] = captures[1];
1466 : 659 : _o1[1] = captures[2];
1467 : 659 : _r1 = fold_build2_loc (loc, bitop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1468 : 659 : if (EXPR_P (_r1))
1469 : 0 : goto next_after_fail371;
1470 : 659 : res_op1 = _r1;
1471 : : }
1472 : 659 : tree _r;
1473 : 659 : _r = fold_build2_loc (loc, bitop, type, res_op0, res_op1);
1474 : 659 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 223, __FILE__, __LINE__, true);
1475 : 659 : return _r;
1476 : : }
1477 : : next_after_fail371:;
1478 : : }
1479 : : else
1480 : : {
1481 : 0 : {
1482 : 0 : tree cst1 = const_binop (bitop, type, captures[0], captures[2]);
1483 : 0 : if (cst1
1484 : : )
1485 : : {
1486 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail372;
1487 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail372;
1488 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail372;
1489 : 0 : {
1490 : 0 : tree res_op0;
1491 : 0 : res_op0 = captures[1];
1492 : 0 : tree res_op1;
1493 : 0 : res_op1 = cst1;
1494 : 0 : tree _r;
1495 : 0 : _r = fold_build2_loc (loc, bitop, type, res_op0, res_op1);
1496 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 224, __FILE__, __LINE__, true);
1497 : 0 : return _r;
1498 : : }
1499 : : next_after_fail372:;
1500 : : }
1501 : : else
1502 : : {
1503 : 0 : {
1504 : 0 : tree cst2 = const_binop (bitop, type, captures[1], captures[2]);
1505 : 0 : if (cst2
1506 : : )
1507 : : {
1508 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail373;
1509 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail373;
1510 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail373;
1511 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail373;
1512 : 0 : {
1513 : 0 : tree res_op0;
1514 : 0 : res_op0 = captures[0];
1515 : 0 : tree res_op1;
1516 : 0 : res_op1 = cst2;
1517 : 0 : tree _r;
1518 : 0 : _r = fold_build2_loc (loc, bitop, type, res_op0, res_op1);
1519 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 225, __FILE__, __LINE__, true);
1520 : 0 : return _r;
1521 : : }
1522 : : next_after_fail373:;
1523 : : }
1524 : : }
1525 : : }
1526 : : }
1527 : : }
1528 : : return NULL_TREE;
1529 : : }
1530 : :
1531 : : tree
1532 : 0 : generic_simplify_133 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1533 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1534 : : {
1535 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1536 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail410;
1537 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail410;
1538 : 0 : {
1539 : 0 : tree _r;
1540 : 0 : _r = constant_boolean_node (true, type);
1541 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
1542 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1543 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 254, __FILE__, __LINE__, true);
1544 : : return _r;
1545 : : }
1546 : : next_after_fail410:;
1547 : : return NULL_TREE;
1548 : : }
1549 : :
1550 : : tree
1551 : 121 : generic_simplify_137 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1552 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1553 : : const enum tree_code ARG_UNUSED (code2),
1554 : : const enum tree_code ARG_UNUSED (code1))
1555 : : {
1556 : 121 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1557 : 121 : if ((TREE_CODE (captures[2]) == INTEGER_CST
1558 : 97 : && TREE_CODE (captures[5]) == INTEGER_CST)
1559 : 121 : || ((INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
1560 : 1 : || (VECTOR_TYPE_P (TREE_TYPE (captures[2])))
1561 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[2])))
1562 : 24 : && bitwise_equal_p (captures[2], captures[5]))
1563 : : )
1564 : : {
1565 : 97 : {
1566 : 97 : bool one_before = false;
1567 : 97 : bool one_after = false;
1568 : 97 : int cmp = 0;
1569 : 97 : bool allbits = true;
1570 : 97 : if (TREE_CODE (captures[2]) == INTEGER_CST
1571 : 97 : && TREE_CODE (captures[5]) == INTEGER_CST)
1572 : : {
1573 : 97 : allbits = TYPE_PRECISION (TREE_TYPE (captures[2])) <= TYPE_PRECISION (TREE_TYPE (captures[5]));
1574 : 97 : auto t1 = wi::to_wide (fold_convert (TREE_TYPE (captures[5]), captures[2]));
1575 : 97 : auto t2 = wi::to_wide (captures[5]);
1576 : 97 : cmp = wi::cmp (t1, t2, TYPE_SIGN (TREE_TYPE (captures[5])));
1577 : 97 : if (cmp < 0
1578 : 97 : && t1 == t2 - 1)
1579 : : one_before = true;
1580 : 97 : if (cmp > 0
1581 : 97 : && t1 == t2 + 1)
1582 : : one_after = true;
1583 : : }
1584 : 97 : bool val;
1585 : 97 : switch (code2)
1586 : : {
1587 : 88 : case EQ_EXPR: val = (cmp == 0); break;
1588 : 0 : case NE_EXPR: val = (cmp != 0); break;
1589 : 0 : case LT_EXPR: val = (cmp < 0); break;
1590 : 9 : case GT_EXPR: val = (cmp > 0); break;
1591 : 0 : case LE_EXPR: val = (cmp <= 0); break;
1592 : 0 : case GE_EXPR: val = (cmp >= 0); break;
1593 : 0 : default: gcc_unreachable ();
1594 : : }
1595 : 97 : if (code1 == EQ_EXPR && val
1596 : : )
1597 : : {
1598 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail421;
1599 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail421;
1600 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail421;
1601 : 0 : {
1602 : 0 : tree _r;
1603 : 0 : _r = captures[3];
1604 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 238, __FILE__, __LINE__, true);
1605 : 0 : return _r;
1606 : : }
1607 : : next_after_fail421:;
1608 : : }
1609 : : else
1610 : : {
1611 : 97 : if (code1 == NE_EXPR && val && allbits
1612 : : )
1613 : : {
1614 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail422;
1615 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail422;
1616 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail422;
1617 : 0 : {
1618 : 0 : tree _r;
1619 : 0 : _r = constant_boolean_node (true, type);
1620 : 0 : if (TREE_SIDE_EFFECTS (captures[4]))
1621 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[4]), _r);
1622 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 239, __FILE__, __LINE__, true);
1623 : 0 : return _r;
1624 : : }
1625 : : next_after_fail422:;
1626 : : }
1627 : : else
1628 : : {
1629 : 97 : if (code1 == NE_EXPR && !val && allbits
1630 : : )
1631 : : {
1632 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail423;
1633 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail423;
1634 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail423;
1635 : 0 : {
1636 : 0 : tree _r;
1637 : 0 : _r = captures[0];
1638 : 0 : if (TREE_SIDE_EFFECTS (captures[4]))
1639 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[4]), _r);
1640 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 240, __FILE__, __LINE__, true);
1641 : 0 : return _r;
1642 : : }
1643 : : next_after_fail423:;
1644 : : }
1645 : : else
1646 : : {
1647 : 97 : if (code1 == EQ_EXPR
1648 : 97 : && code2 == GT_EXPR
1649 : 9 : && cmp == 0
1650 : 9 : && allbits
1651 : 97 : && ((VECTOR_BOOLEAN_TYPE_P (type)
1652 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, GE_EXPR))
1653 : 0 : || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
1654 : : )
1655 : : {
1656 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail424;
1657 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail424;
1658 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail424;
1659 : 0 : {
1660 : 0 : tree res_op0;
1661 : 0 : res_op0 = captures[4];
1662 : 0 : tree res_op1;
1663 : 0 : res_op1 = captures[5];
1664 : 0 : tree _r;
1665 : 0 : _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
1666 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 241, __FILE__, __LINE__, true);
1667 : 0 : return _r;
1668 : : }
1669 : : next_after_fail424:;
1670 : : }
1671 : : else
1672 : : {
1673 : 97 : if (code1 == EQ_EXPR
1674 : 97 : && code2 == LT_EXPR
1675 : 0 : && cmp == 0
1676 : 0 : && allbits
1677 : 97 : && ((VECTOR_BOOLEAN_TYPE_P (type)
1678 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, LE_EXPR))
1679 : 0 : || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
1680 : : )
1681 : : {
1682 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail425;
1683 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail425;
1684 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail425;
1685 : 0 : {
1686 : 0 : tree res_op0;
1687 : 0 : res_op0 = captures[4];
1688 : 0 : tree res_op1;
1689 : 0 : res_op1 = captures[5];
1690 : 0 : tree _r;
1691 : 0 : _r = fold_build2_loc (loc, LE_EXPR, type, res_op0, res_op1);
1692 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 242, __FILE__, __LINE__, true);
1693 : 0 : return _r;
1694 : : }
1695 : : next_after_fail425:;
1696 : : }
1697 : : else
1698 : : {
1699 : 97 : if (code1 == EQ_EXPR
1700 : 97 : && code2 == GE_EXPR
1701 : : && one_before
1702 : 0 : && allbits
1703 : 97 : && ((VECTOR_BOOLEAN_TYPE_P (type)
1704 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, GE_EXPR))
1705 : 0 : || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
1706 : : )
1707 : : {
1708 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail426;
1709 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail426;
1710 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail426;
1711 : 0 : {
1712 : 0 : tree res_op0;
1713 : 0 : res_op0 = captures[4];
1714 : 0 : tree res_op1;
1715 : 0 : {
1716 : 0 : tree _o1[1], _r1;
1717 : 0 : _o1[0] = captures[2];
1718 : 0 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
1719 : : {
1720 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
1721 : : }
1722 : : else
1723 : : _r1 = _o1[0];
1724 : 0 : res_op1 = _r1;
1725 : : }
1726 : 0 : tree _r;
1727 : 0 : _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
1728 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 243, __FILE__, __LINE__, true);
1729 : 0 : return _r;
1730 : : }
1731 : : next_after_fail426:;
1732 : : }
1733 : : else
1734 : : {
1735 : 97 : if (code1 == EQ_EXPR
1736 : 97 : && code2 == LE_EXPR
1737 : : && one_after
1738 : 0 : && allbits
1739 : 97 : && ((VECTOR_BOOLEAN_TYPE_P (type)
1740 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, LE_EXPR))
1741 : 0 : || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
1742 : : )
1743 : : {
1744 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail427;
1745 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail427;
1746 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail427;
1747 : 0 : {
1748 : 0 : tree res_op0;
1749 : 0 : res_op0 = captures[4];
1750 : 0 : tree res_op1;
1751 : 0 : {
1752 : 0 : tree _o1[1], _r1;
1753 : 0 : _o1[0] = captures[2];
1754 : 0 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
1755 : : {
1756 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
1757 : : }
1758 : : else
1759 : : _r1 = _o1[0];
1760 : 0 : res_op1 = _r1;
1761 : : }
1762 : 0 : tree _r;
1763 : 0 : _r = fold_build2_loc (loc, LE_EXPR, type, res_op0, res_op1);
1764 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 244, __FILE__, __LINE__, true);
1765 : 0 : return _r;
1766 : : }
1767 : : next_after_fail427:;
1768 : : }
1769 : : }
1770 : : }
1771 : : }
1772 : : }
1773 : : }
1774 : : }
1775 : : }
1776 : : }
1777 : : return NULL_TREE;
1778 : : }
1779 : :
1780 : : tree
1781 : 4 : generic_simplify_174 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1782 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1783 : : const combined_fn ARG_UNUSED (COPYSIGN_ALL))
1784 : : {
1785 : 4 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1786 : 4 : if (!tree_expr_maybe_nan_p (captures[0]) && !HONOR_SIGNED_ZEROS (type)
1787 : : )
1788 : : {
1789 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail467;
1790 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail467;
1791 : 0 : {
1792 : 0 : tree res_op0;
1793 : 0 : res_op0 = captures[0];
1794 : 0 : tree _r;
1795 : 0 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
1796 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 286, __FILE__, __LINE__, true);
1797 : 0 : return _r;
1798 : : }
1799 : : next_after_fail467:;
1800 : : }
1801 : : return NULL_TREE;
1802 : : }
1803 : :
1804 : : tree
1805 : 0 : generic_simplify_181 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1806 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1807 : : {
1808 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1809 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail474;
1810 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail474;
1811 : 0 : {
1812 : 0 : tree _r;
1813 : 0 : _r = build_zero_cst (type);
1814 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 291, __FILE__, __LINE__, true);
1815 : : return _r;
1816 : : }
1817 : : next_after_fail474:;
1818 : : return NULL_TREE;
1819 : : }
1820 : :
1821 : : tree
1822 : 11 : generic_simplify_187 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1823 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1824 : : {
1825 : 11 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1826 : 11 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
1827 : 11 : && wi::ltu_p (wi::to_widest (captures[1]), TYPE_PRECISION (type))
1828 : : )
1829 : : {
1830 : 11 : {
1831 : 11 : unsigned int shift = tree_to_uhwi (captures[1]);
1832 : 11 : unsigned int prec = TYPE_PRECISION (type);
1833 : 11 : if ((prec <= TYPE_PRECISION (TREE_TYPE (captures[2])) + shift
1834 : 0 : || tree_int_cst_sgn (captures[2]) >= 0)
1835 : 22 : && wi::to_wide (captures[3]) == wi::set_bit_in_zero (shift, prec)
1836 : : )
1837 : : {
1838 : 3 : {
1839 : 3 : auto mask = wide_int::from (wi::to_wide (captures[2]), prec, UNSIGNED);
1840 : 3 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail482;
1841 : 3 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail482;
1842 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail482;
1843 : 3 : {
1844 : 3 : tree res_op0;
1845 : 3 : {
1846 : 3 : tree _o1[1], _r1;
1847 : 3 : _o1[0] = captures[0];
1848 : 3 : if (TREE_TYPE (_o1[0]) != type)
1849 : : {
1850 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1851 : : }
1852 : : else
1853 : : _r1 = _o1[0];
1854 : 3 : res_op0 = _r1;
1855 : : }
1856 : 3 : tree res_op1;
1857 : 3 : res_op1 = wide_int_to_tree (type, mask << shift);
1858 : 3 : tree _r;
1859 : 3 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
1860 : 3 : if (TREE_SIDE_EFFECTS (captures[3]))
1861 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
1862 : 3 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 296, __FILE__, __LINE__, true);
1863 : 3 : return _r;
1864 : : }
1865 : 0 : next_after_fail482:;
1866 : 3 : }
1867 : : }
1868 : : }
1869 : : }
1870 : : return NULL_TREE;
1871 : : }
1872 : :
1873 : : tree
1874 : 6535 : generic_simplify_200 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1875 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1876 : : const enum tree_code ARG_UNUSED (cmp),
1877 : : const enum tree_code ARG_UNUSED (mod))
1878 : : {
1879 : 6535 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1880 : 6535 : if (!TYPE_UNSIGNED (TREE_TYPE (captures[0]))
1881 : : )
1882 : : {
1883 : 6535 : {
1884 : 6535 : tree utype = unsigned_type_for (TREE_TYPE (captures[0]));
1885 : 6535 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail496;
1886 : 6535 : {
1887 : 6535 : tree res_op0;
1888 : 6535 : {
1889 : 6535 : tree _o1[2], _r1;
1890 : 6535 : {
1891 : 6535 : tree _o2[1], _r2;
1892 : 6535 : _o2[0] = captures[0];
1893 : 6535 : if (TREE_TYPE (_o2[0]) != utype)
1894 : : {
1895 : 6535 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
1896 : : }
1897 : : else
1898 : : _r2 = _o2[0];
1899 : 6535 : _o1[0] = _r2;
1900 : : }
1901 : 6535 : {
1902 : 6535 : tree _o2[1], _r2;
1903 : 6535 : _o2[0] = captures[1];
1904 : 6535 : if (TREE_TYPE (_o2[0]) != utype)
1905 : : {
1906 : 6535 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
1907 : : }
1908 : : else
1909 : : _r2 = _o2[0];
1910 : 6535 : _o1[1] = _r2;
1911 : : }
1912 : 6535 : _r1 = fold_build2_loc (loc, mod, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1913 : 6535 : res_op0 = _r1;
1914 : : }
1915 : 6535 : tree res_op1;
1916 : 6535 : {
1917 : 6535 : tree _o1[1], _r1;
1918 : 6535 : _o1[0] = captures[2];
1919 : 6535 : if (TREE_TYPE (_o1[0]) != utype)
1920 : : {
1921 : 6535 : _r1 = fold_build1_loc (loc, NOP_EXPR, utype, _o1[0]);
1922 : : }
1923 : : else
1924 : : _r1 = _o1[0];
1925 : 6535 : res_op1 = _r1;
1926 : : }
1927 : 6535 : tree _r;
1928 : 6535 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
1929 : 6535 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 310, __FILE__, __LINE__, true);
1930 : 6535 : return _r;
1931 : : }
1932 : 0 : next_after_fail496:;
1933 : : }
1934 : : }
1935 : : return NULL_TREE;
1936 : : }
1937 : :
1938 : : tree
1939 : 43 : generic_simplify_212 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1940 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1941 : : const enum tree_code ARG_UNUSED (op))
1942 : : {
1943 : 43 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1944 : 43 : if (!TYPE_OVERFLOW_SANITIZED (TREE_TYPE (captures[2]))
1945 : : )
1946 : : {
1947 : 43 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail524;
1948 : 43 : {
1949 : 43 : tree res_op0;
1950 : 43 : res_op0 = captures[1];
1951 : 43 : tree res_op1;
1952 : 43 : res_op1 = captures[3];
1953 : 43 : tree _r;
1954 : 43 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
1955 : 43 : if (TREE_SIDE_EFFECTS (captures[2]))
1956 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1957 : 43 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 337, __FILE__, __LINE__, true);
1958 : 43 : return _r;
1959 : : }
1960 : 0 : next_after_fail524:;
1961 : : }
1962 : : return NULL_TREE;
1963 : : }
1964 : :
1965 : : tree
1966 : 3 : generic_simplify_218 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1967 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1968 : : const enum tree_code ARG_UNUSED (cmp))
1969 : : {
1970 : 3 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1971 : 3 : if (TREE_INT_CST_LOW (captures[1]) & 1
1972 : : )
1973 : : {
1974 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail530;
1975 : 2 : {
1976 : 2 : tree _r;
1977 : 2 : _r = constant_boolean_node (cmp == NE_EXPR, type);
1978 : 2 : if (TREE_SIDE_EFFECTS (captures[0]))
1979 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1980 : 2 : if (TREE_SIDE_EFFECTS (captures[1]))
1981 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1982 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 342, __FILE__, __LINE__, true);
1983 : 2 : return _r;
1984 : : }
1985 : 0 : next_after_fail530:;
1986 : : }
1987 : : return NULL_TREE;
1988 : : }
1989 : :
1990 : : tree
1991 : 725 : generic_simplify_223 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1992 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1993 : : const enum tree_code ARG_UNUSED (cmp))
1994 : : {
1995 : 725 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1996 : 725 : if (wi::gt_p (wi::to_wide (captures[1]), wi::to_wide (captures[2]),
1997 : 725 : TYPE_SIGN (TREE_TYPE (captures[0])))
1998 : : )
1999 : : {
2000 : 42 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail536;
2001 : 42 : {
2002 : 42 : tree _r;
2003 : 42 : _r = constant_boolean_node (cmp == NE_EXPR, type);
2004 : 42 : if (TREE_SIDE_EFFECTS (captures[0]))
2005 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2006 : 42 : if (TREE_SIDE_EFFECTS (captures[1]))
2007 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2008 : 42 : if (TREE_SIDE_EFFECTS (captures[2]))
2009 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2010 : 42 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 348, __FILE__, __LINE__, true);
2011 : 42 : return _r;
2012 : : }
2013 : 0 : next_after_fail536:;
2014 : : }
2015 : : else
2016 : : {
2017 : 683 : if (wi::lt_p (wi::to_wide (captures[1]), wi::to_wide (captures[2]),
2018 : 683 : TYPE_SIGN (TREE_TYPE (captures[0])))
2019 : : )
2020 : : {
2021 : 683 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail537;
2022 : 683 : {
2023 : 683 : tree res_op0;
2024 : 683 : res_op0 = captures[0];
2025 : 683 : tree res_op1;
2026 : 683 : res_op1 = captures[2];
2027 : 683 : tree _r;
2028 : 683 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2029 : 683 : if (TREE_SIDE_EFFECTS (captures[1]))
2030 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2031 : 683 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 349, __FILE__, __LINE__, true);
2032 : 683 : return _r;
2033 : : }
2034 : 0 : next_after_fail537:;
2035 : : }
2036 : : }
2037 : : return NULL_TREE;
2038 : : }
2039 : :
2040 : : tree
2041 : 391 : generic_simplify_233 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2042 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2043 : : const enum tree_code ARG_UNUSED (rotate),
2044 : : const enum tree_code ARG_UNUSED (invrot),
2045 : : const enum tree_code ARG_UNUSED (cmp))
2046 : : {
2047 : 391 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2048 : 391 : if (integer_zerop (captures[2]) || integer_all_onesp (captures[2])
2049 : : )
2050 : : {
2051 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail557;
2052 : 0 : {
2053 : 0 : tree res_op0;
2054 : 0 : res_op0 = captures[0];
2055 : 0 : tree res_op1;
2056 : 0 : res_op1 = captures[2];
2057 : 0 : tree _r;
2058 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2059 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2060 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2061 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 369, __FILE__, __LINE__, true);
2062 : 0 : return _r;
2063 : : }
2064 : 0 : next_after_fail557:;
2065 : : }
2066 : : return NULL_TREE;
2067 : : }
2068 : :
2069 : : tree
2070 : 64907 : generic_simplify_239 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2071 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2072 : : const enum tree_code ARG_UNUSED (cmp))
2073 : : {
2074 : 64907 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2075 : 64907 : if (single_use (captures[0])
2076 : : )
2077 : : {
2078 : 64907 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail564;
2079 : 64907 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail564;
2080 : 64907 : {
2081 : 64907 : tree res_op0;
2082 : 64907 : res_op0 = captures[1];
2083 : 64907 : tree res_op1;
2084 : 64907 : res_op1 = captures[2];
2085 : 64907 : tree _r;
2086 : 64907 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2087 : 64907 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 376, __FILE__, __LINE__, true);
2088 : 64907 : return _r;
2089 : : }
2090 : : next_after_fail564:;
2091 : : }
2092 : : return NULL_TREE;
2093 : : }
2094 : :
2095 : : tree
2096 : 44214274 : generic_simplify_244 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2097 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2098 : : const enum tree_code ARG_UNUSED (cmp))
2099 : : {
2100 : 44214274 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2101 : 44214274 : {
2102 : 44214274 : bool wascmp;
2103 : 44214274 : if (types_match (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
2104 : 44214274 : && bitwise_inverted_equal_p (captures[0], captures[1], wascmp)
2105 : : )
2106 : : {
2107 : 5 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail574;
2108 : 5 : {
2109 : 5 : tree _r;
2110 : 5 : _r = constant_boolean_node (cmp == NE_EXPR, type);
2111 : 5 : if (TREE_SIDE_EFFECTS (captures[0]))
2112 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2113 : 5 : if (TREE_SIDE_EFFECTS (captures[1]))
2114 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2115 : 5 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 385, __FILE__, __LINE__, true);
2116 : 5 : return _r;
2117 : : }
2118 : 0 : next_after_fail574:;
2119 : : }
2120 : : }
2121 : 44214269 : return NULL_TREE;
2122 : : }
2123 : :
2124 : : tree
2125 : 6389950 : generic_simplify_248 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2126 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2127 : : const enum tree_code ARG_UNUSED (cmp))
2128 : : {
2129 : 6389950 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2130 : 6389950 : if (REAL_VALUE_MINUS_ZERO (TREE_REAL_CST (captures[1]))
2131 : : )
2132 : : {
2133 : 812 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail578;
2134 : 812 : {
2135 : 812 : tree res_op0;
2136 : 812 : res_op0 = captures[0];
2137 : 812 : tree res_op1;
2138 : 812 : res_op1 = build_real (TREE_TYPE (captures[1]), dconst0);
2139 : 812 : tree _r;
2140 : 812 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2141 : 812 : if (TREE_SIDE_EFFECTS (captures[1]))
2142 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2143 : 812 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 388, __FILE__, __LINE__, true);
2144 : 812 : return _r;
2145 : : }
2146 : 0 : next_after_fail578:;
2147 : : }
2148 : : else
2149 : : {
2150 : 6389138 : if (TREE_CODE (captures[0]) == REAL_CST
2151 : 6389138 : && REAL_VALUE_MINUS_ZERO (TREE_REAL_CST (captures[0]))
2152 : : )
2153 : : {
2154 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail579;
2155 : 0 : {
2156 : 0 : tree res_op0;
2157 : 0 : res_op0 = build_real (TREE_TYPE (captures[0]), dconst0);
2158 : 0 : tree res_op1;
2159 : 0 : res_op1 = captures[1];
2160 : 0 : tree _r;
2161 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2162 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
2163 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2164 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 389, __FILE__, __LINE__, true);
2165 : 0 : return _r;
2166 : : }
2167 : 0 : next_after_fail579:;
2168 : : }
2169 : : else
2170 : : {
2171 : 6389138 : if (REAL_VALUE_ISNAN (TREE_REAL_CST (captures[1]))
2172 : 977 : && (cmp == EQ_EXPR || cmp == NE_EXPR || !flag_trapping_math)
2173 : 296 : && !tree_expr_signaling_nan_p (captures[1])
2174 : 6389404 : && !tree_expr_maybe_signaling_nan_p (captures[0])
2175 : : )
2176 : : {
2177 : 266 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail580;
2178 : 266 : {
2179 : 266 : tree _r;
2180 : 266 : _r = constant_boolean_node (cmp == NE_EXPR, type);
2181 : 266 : if (TREE_SIDE_EFFECTS (captures[0]))
2182 : 6 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2183 : 266 : if (TREE_SIDE_EFFECTS (captures[1]))
2184 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2185 : 266 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 390, __FILE__, __LINE__, true);
2186 : 266 : return _r;
2187 : : }
2188 : 0 : next_after_fail580:;
2189 : : }
2190 : : else
2191 : : {
2192 : 6388872 : if (TREE_CODE (captures[0]) == REAL_CST
2193 : 2329 : && REAL_VALUE_ISNAN (TREE_REAL_CST (captures[0]))
2194 : 2015 : && (cmp == EQ_EXPR || cmp == NE_EXPR || !flag_trapping_math)
2195 : 0 : && !tree_expr_signaling_nan_p (captures[0])
2196 : 6388872 : && !tree_expr_signaling_nan_p (captures[1])
2197 : : )
2198 : : {
2199 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail581;
2200 : 0 : {
2201 : 0 : tree _r;
2202 : 0 : _r = constant_boolean_node (cmp == NE_EXPR, type);
2203 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
2204 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2205 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2206 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2207 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 391, __FILE__, __LINE__, true);
2208 : 0 : return _r;
2209 : : }
2210 : 0 : next_after_fail581:;
2211 : : }
2212 : : else
2213 : : {
2214 : 6388872 : if (REAL_VALUE_ISINF (TREE_REAL_CST (captures[1]))
2215 : 7194316 : && MODE_HAS_INFINITIES (TYPE_MODE (TREE_TYPE (captures[1])))
2216 : : )
2217 : : {
2218 : 268509 : {
2219 : 268509 : REAL_VALUE_TYPE max;
2220 : 268509 : enum tree_code code = cmp;
2221 : 268509 : bool neg = REAL_VALUE_NEGATIVE (TREE_REAL_CST (captures[1]));
2222 : 268509 : if (neg)
2223 : 35312 : code = swap_tree_comparison (code);
2224 : 268509 : if (code == GT_EXPR
2225 : 268509 : && !(HONOR_NANS (captures[0]) && flag_trapping_math)
2226 : : )
2227 : : {
2228 : 8 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail582;
2229 : 8 : {
2230 : 8 : tree _r;
2231 : 8 : _r = constant_boolean_node (false, type);
2232 : 8 : if (TREE_SIDE_EFFECTS (captures[0]))
2233 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2234 : 8 : if (TREE_SIDE_EFFECTS (captures[1]))
2235 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2236 : 8 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 392, __FILE__, __LINE__, true);
2237 : 78821 : return _r;
2238 : : }
2239 : 0 : next_after_fail582:;
2240 : : }
2241 : : else
2242 : : {
2243 : 268501 : if (code == LE_EXPR
2244 : : )
2245 : : {
2246 : 33202 : if (! HONOR_NANS (captures[0])
2247 : : )
2248 : : {
2249 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail583;
2250 : 0 : {
2251 : 0 : tree _r;
2252 : 0 : _r = constant_boolean_node (true, type);
2253 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
2254 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2255 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2256 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2257 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 393, __FILE__, __LINE__, true);
2258 : 0 : return _r;
2259 : : }
2260 : 0 : next_after_fail583:;
2261 : : }
2262 : : else
2263 : : {
2264 : 33202 : if (!flag_trapping_math
2265 : : )
2266 : : {
2267 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail584;
2268 : 2 : {
2269 : 2 : if (! tree_invariant_p (captures[0])) goto next_after_fail584;
2270 : 0 : tree res_op0;
2271 : 0 : res_op0 = unshare_expr (captures[0]);
2272 : 0 : tree res_op1;
2273 : 0 : res_op1 = captures[0];
2274 : 0 : tree _r;
2275 : 0 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
2276 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2277 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2278 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 394, __FILE__, __LINE__, true);
2279 : 0 : return _r;
2280 : : }
2281 : 189688 : next_after_fail584:;
2282 : : }
2283 : : }
2284 : : }
2285 : : else
2286 : : {
2287 : 156204 : if ((code == EQ_EXPR && !(HONOR_NANS (captures[0]) && flag_trapping_math))
2288 : 391479 : || code == GE_EXPR
2289 : : )
2290 : : {
2291 : 140 : {
2292 : 140 : real_maxval (&max, neg, TYPE_MODE (TREE_TYPE (captures[0])));
2293 : 140 : if (neg
2294 : : )
2295 : : {
2296 : 61 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail585;
2297 : 61 : {
2298 : 61 : tree res_op0;
2299 : 61 : res_op0 = captures[0];
2300 : 61 : tree res_op1;
2301 : 61 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
2302 : 61 : tree _r;
2303 : 61 : _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
2304 : 61 : if (TREE_SIDE_EFFECTS (captures[1]))
2305 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2306 : 61 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 395, __FILE__, __LINE__, true);
2307 : 61 : return _r;
2308 : : }
2309 : 0 : next_after_fail585:;
2310 : : }
2311 : : else
2312 : : {
2313 : 79 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail586;
2314 : 79 : {
2315 : 79 : tree res_op0;
2316 : 79 : res_op0 = captures[0];
2317 : 79 : tree res_op1;
2318 : 79 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
2319 : 79 : tree _r;
2320 : 79 : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
2321 : 79 : if (TREE_SIDE_EFFECTS (captures[1]))
2322 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2323 : 79 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 396, __FILE__, __LINE__, true);
2324 : 79 : return _r;
2325 : : }
2326 : 0 : next_after_fail586:;
2327 : : }
2328 : : }
2329 : : }
2330 : : else
2331 : : {
2332 : 235159 : if (code == LT_EXPR
2333 : : )
2334 : : {
2335 : 100 : {
2336 : 100 : real_maxval (&max, neg, TYPE_MODE (TREE_TYPE (captures[0])));
2337 : 100 : if (neg
2338 : : )
2339 : : {
2340 : 26 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail587;
2341 : 26 : {
2342 : 26 : tree res_op0;
2343 : 26 : res_op0 = captures[0];
2344 : 26 : tree res_op1;
2345 : 26 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
2346 : 26 : tree _r;
2347 : 26 : _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
2348 : 26 : if (TREE_SIDE_EFFECTS (captures[1]))
2349 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2350 : 26 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 397, __FILE__, __LINE__, true);
2351 : 26 : return _r;
2352 : : }
2353 : 0 : next_after_fail587:;
2354 : : }
2355 : : else
2356 : : {
2357 : 74 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail588;
2358 : 74 : {
2359 : 74 : tree res_op0;
2360 : 74 : res_op0 = captures[0];
2361 : 74 : tree res_op1;
2362 : 74 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
2363 : 74 : tree _r;
2364 : 74 : _r = fold_build2_loc (loc, LE_EXPR, type, res_op0, res_op1);
2365 : 74 : if (TREE_SIDE_EFFECTS (captures[1]))
2366 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2367 : 74 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 398, __FILE__, __LINE__, true);
2368 : 74 : return _r;
2369 : : }
2370 : 0 : next_after_fail588:;
2371 : : }
2372 : : }
2373 : : }
2374 : : else
2375 : : {
2376 : 235059 : if (code == NE_EXPR
2377 : : )
2378 : : {
2379 : 78573 : {
2380 : 78573 : real_maxval (&max, neg, TYPE_MODE (TREE_TYPE (captures[0])));
2381 : 78573 : if (! HONOR_NANS (captures[0])
2382 : : )
2383 : : {
2384 : 0 : if (neg
2385 : : )
2386 : : {
2387 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail589;
2388 : 0 : {
2389 : 0 : tree res_op0;
2390 : 0 : res_op0 = captures[0];
2391 : 0 : tree res_op1;
2392 : 0 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
2393 : 0 : tree _r;
2394 : 0 : _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
2395 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2396 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2397 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 399, __FILE__, __LINE__, true);
2398 : 0 : return _r;
2399 : : }
2400 : 0 : next_after_fail589:;
2401 : : }
2402 : : else
2403 : : {
2404 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail590;
2405 : 0 : {
2406 : 0 : tree res_op0;
2407 : 0 : res_op0 = captures[0];
2408 : 0 : tree res_op1;
2409 : 0 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
2410 : 0 : tree _r;
2411 : 0 : _r = fold_build2_loc (loc, LE_EXPR, type, res_op0, res_op1);
2412 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2413 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2414 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 400, __FILE__, __LINE__, true);
2415 : 0 : return _r;
2416 : : }
2417 : 0 : next_after_fail590:;
2418 : : }
2419 : : }
2420 : : else
2421 : : {
2422 : 78573 : if (neg
2423 : : )
2424 : : {
2425 : 561 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail591;
2426 : 561 : {
2427 : 561 : tree res_op0;
2428 : 561 : res_op0 = captures[0];
2429 : 561 : tree res_op1;
2430 : 561 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
2431 : 561 : tree _r;
2432 : 561 : _r = fold_build2_loc (loc, UNGE_EXPR, type, res_op0, res_op1);
2433 : 561 : if (TREE_SIDE_EFFECTS (captures[1]))
2434 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2435 : 561 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 401, __FILE__, __LINE__, true);
2436 : 561 : return _r;
2437 : : }
2438 : 0 : next_after_fail591:;
2439 : : }
2440 : : else
2441 : : {
2442 : 78012 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail592;
2443 : 78012 : {
2444 : 78012 : tree res_op0;
2445 : 78012 : res_op0 = captures[0];
2446 : 78012 : tree res_op1;
2447 : 78012 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
2448 : 78012 : tree _r;
2449 : 78012 : _r = fold_build2_loc (loc, UNLE_EXPR, type, res_op0, res_op1);
2450 : 78012 : if (TREE_SIDE_EFFECTS (captures[1]))
2451 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2452 : 78012 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 402, __FILE__, __LINE__, true);
2453 : 78012 : return _r;
2454 : : }
2455 : 0 : next_after_fail592:;
2456 : : }
2457 : : }
2458 : : }
2459 : : }
2460 : : }
2461 : : }
2462 : : }
2463 : : }
2464 : : }
2465 : : }
2466 : : }
2467 : : }
2468 : : }
2469 : : }
2470 : : return NULL_TREE;
2471 : : }
2472 : :
2473 : : tree
2474 : 0 : generic_simplify_287 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2475 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2476 : : const enum tree_code ARG_UNUSED (op))
2477 : : {
2478 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2479 : 0 : {
2480 : 0 : HOST_WIDE_INT zero_val = tree_to_shwi (captures[2]);
2481 : 0 : tree type0 = TREE_TYPE (captures[1]);
2482 : 0 : int prec = TYPE_PRECISION (type0);
2483 : 0 : if (prec <= MAX_FIXED_MODE_SIZE
2484 : : )
2485 : : {
2486 : 0 : if (tree_int_cst_sgn (captures[3]) < 0 || wi::to_widest (captures[3]) >= prec
2487 : : )
2488 : : {
2489 : 0 : if (zero_val != wi::to_widest (captures[3])
2490 : : )
2491 : : {
2492 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail703;
2493 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail703;
2494 : 0 : {
2495 : 0 : tree _r;
2496 : 0 : _r = constant_boolean_node (op == EQ_EXPR ? false : true, type);
2497 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2498 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2499 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
2500 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
2501 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 496, __FILE__, __LINE__, true);
2502 : 0 : return _r;
2503 : : }
2504 : 0 : next_after_fail703:;
2505 : : }
2506 : : }
2507 : : else
2508 : : {
2509 : 0 : if (zero_val < 0 || zero_val >= prec
2510 : : )
2511 : : {
2512 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail704;
2513 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail704;
2514 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail704;
2515 : 0 : {
2516 : 0 : tree res_op0;
2517 : 0 : {
2518 : 0 : tree _o1[2], _r1;
2519 : 0 : _o1[0] = captures[1];
2520 : 0 : _o1[1] = wide_int_to_tree (type0,
2521 : 0 : wi::mask (tree_to_uhwi (captures[3]) + 1,
2522 : : false, prec));
2523 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2524 : 0 : res_op0 = _r1;
2525 : : }
2526 : 0 : tree res_op1;
2527 : 0 : res_op1 = wide_int_to_tree (type0,
2528 : 0 : wi::shifted_mask (tree_to_uhwi (captures[3]), 1,
2529 : : false, prec));
2530 : 0 : tree _r;
2531 : 0 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
2532 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 497, __FILE__, __LINE__, true);
2533 : 0 : return _r;
2534 : : }
2535 : 0 : next_after_fail704:;
2536 : : }
2537 : : }
2538 : : }
2539 : : }
2540 : 0 : return NULL_TREE;
2541 : : }
2542 : :
2543 : : tree
2544 : 0 : generic_simplify_296 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2545 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2546 : : const combined_fn ARG_UNUSED (copysigns))
2547 : : {
2548 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2549 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail716;
2550 : 0 : {
2551 : 0 : tree res_op0;
2552 : 0 : res_op0 = captures[0];
2553 : 0 : tree res_op1;
2554 : 0 : res_op1 = captures[2];
2555 : 0 : tree _r;
2556 : 0 : _r = maybe_build_call_expr_loc (loc, copysigns, type, 2, res_op0, res_op1);
2557 : 0 : if (!_r)
2558 : 0 : goto next_after_fail716;
2559 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2560 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2561 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 509, __FILE__, __LINE__, true);
2562 : : return _r;
2563 : : }
2564 : : next_after_fail716:;
2565 : : return NULL_TREE;
2566 : : }
2567 : :
2568 : : tree
2569 : 2317 : generic_simplify_303 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2570 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2571 : : const enum tree_code ARG_UNUSED (div))
2572 : : {
2573 : 2317 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2574 : 2317 : if (!TYPE_UNSIGNED (type)
2575 : : )
2576 : : {
2577 : 1683 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail725;
2578 : 1683 : {
2579 : 1683 : tree res_op0;
2580 : 1683 : res_op0 = captures[0];
2581 : 1683 : tree _r;
2582 : 1683 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
2583 : 1683 : if (TREE_SIDE_EFFECTS (captures[1]))
2584 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2585 : 1683 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 516, __FILE__, __LINE__, true);
2586 : 1683 : return _r;
2587 : : }
2588 : 0 : next_after_fail725:;
2589 : : }
2590 : : return NULL_TREE;
2591 : : }
2592 : :
2593 : : tree
2594 : 2374 : generic_simplify_308 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2595 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2596 : : const enum tree_code ARG_UNUSED (div))
2597 : : {
2598 : 2374 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2599 : 2374 : {
2600 : 2374 : wi::overflow_type overflow;
2601 : 2374 : wide_int mul = wi::mul (wi::to_wide (captures[2]), wi::to_wide (captures[3]),
2602 : 4748 : TYPE_SIGN (type), &overflow);
2603 : 2374 : if (div == EXACT_DIV_EXPR
2604 : 2374 : || optimize_successive_divisions_p (captures[3], captures[0])
2605 : : )
2606 : : {
2607 : 0 : if (!overflow
2608 : : )
2609 : : {
2610 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail730;
2611 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail730;
2612 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail730;
2613 : 0 : {
2614 : 0 : tree res_op0;
2615 : 0 : res_op0 = captures[1];
2616 : 0 : tree res_op1;
2617 : 0 : res_op1 = wide_int_to_tree (type, mul);
2618 : 0 : tree _r;
2619 : 0 : _r = fold_build2_loc (loc, div, type, res_op0, res_op1);
2620 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 521, __FILE__, __LINE__, true);
2621 : 0 : return _r;
2622 : : }
2623 : 2374 : next_after_fail730:;
2624 : : }
2625 : : else
2626 : : {
2627 : 0 : if (TYPE_UNSIGNED (type)
2628 : 0 : || mul != wi::min_value (TYPE_PRECISION (type), SIGNED)
2629 : : )
2630 : : {
2631 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail731;
2632 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail731;
2633 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail731;
2634 : 0 : {
2635 : 0 : tree _r;
2636 : 0 : _r = build_zero_cst (type);
2637 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2638 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2639 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 522, __FILE__, __LINE__, true);
2640 : 0 : return _r;
2641 : : }
2642 : 2374 : next_after_fail731:;
2643 : : }
2644 : : }
2645 : : }
2646 : 0 : }
2647 : 2374 : return NULL_TREE;
2648 : : }
2649 : :
2650 : : tree
2651 : 1386578 : generic_simplify_320 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2652 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2653 : : const enum tree_code ARG_UNUSED (mod))
2654 : : {
2655 : 1386578 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2656 : 1573022 : if ((TYPE_UNSIGNED (type) || tree_expr_nonnegative_p (captures[0]))
2657 : 1202694 : && INTEGRAL_TYPE_P (type)
2658 : 1202694 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
2659 : 1202694 : && (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[1]))
2660 : 3 : || TYPE_UNSIGNED (TREE_TYPE (captures[1]))
2661 : 1 : || !TYPE_UNSIGNED (type))
2662 : 2589272 : && integer_pow2p (captures[2]) && tree_int_cst_sgn (captures[2]) > 0
2663 : : )
2664 : : {
2665 : 980556 : {
2666 : 980556 : tree utype = TREE_TYPE (captures[1]);
2667 : 980556 : if (!TYPE_OVERFLOW_WRAPS (utype))
2668 : 303 : utype = unsigned_type_for (utype);
2669 : 980556 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail743;
2670 : 980556 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail743;
2671 : 980556 : {
2672 : 980556 : tree res_op0;
2673 : 980556 : res_op0 = captures[0];
2674 : 980556 : tree res_op1;
2675 : 980556 : {
2676 : 980556 : tree _o1[1], _r1;
2677 : 980556 : {
2678 : 980556 : tree _o2[2], _r2;
2679 : 980556 : {
2680 : 980556 : tree _o3[1], _r3;
2681 : 980556 : _o3[0] = captures[1];
2682 : 980556 : if (TREE_TYPE (_o3[0]) != utype)
2683 : : {
2684 : 303 : _r3 = fold_build1_loc (loc, NOP_EXPR, utype, _o3[0]);
2685 : : }
2686 : : else
2687 : : _r3 = _o3[0];
2688 : 980556 : _o2[0] = _r3;
2689 : : }
2690 : 980556 : _o2[1] = build_one_cst (utype);
2691 : 980556 : _r2 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
2692 : 980556 : _o1[0] = _r2;
2693 : : }
2694 : 980556 : if (TREE_TYPE (_o1[0]) != type)
2695 : : {
2696 : 903 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
2697 : : }
2698 : : else
2699 : : _r1 = _o1[0];
2700 : 980556 : res_op1 = _r1;
2701 : : }
2702 : 980556 : tree _r;
2703 : 980556 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
2704 : 980556 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 534, __FILE__, __LINE__, true);
2705 : 980556 : return _r;
2706 : : }
2707 : : next_after_fail743:;
2708 : : }
2709 : : }
2710 : : return NULL_TREE;
2711 : : }
2712 : :
2713 : : tree
2714 : 153797 : generic_simplify_335 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2715 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2716 : : const enum tree_code ARG_UNUSED (op))
2717 : : {
2718 : 153797 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2719 : 307594 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
2720 : 307594 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
2721 : : )
2722 : : {
2723 : 64263 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail762;
2724 : 64263 : {
2725 : 64263 : tree res_op0;
2726 : 64263 : res_op0 = captures[0];
2727 : 64263 : tree res_op1;
2728 : 64263 : res_op1 = captures[2];
2729 : 64263 : tree _r;
2730 : 64263 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
2731 : 64263 : if (TREE_SIDE_EFFECTS (captures[1]))
2732 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2733 : 64263 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 553, __FILE__, __LINE__, true);
2734 : 64263 : return _r;
2735 : : }
2736 : 0 : next_after_fail762:;
2737 : : }
2738 : : return NULL_TREE;
2739 : : }
2740 : :
2741 : : tree
2742 : 64 : generic_simplify_341 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2743 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2744 : : const enum tree_code ARG_UNUSED (minmax),
2745 : : const enum tree_code ARG_UNUSED (cmp),
2746 : : const enum tree_code ARG_UNUSED (comb))
2747 : : {
2748 : 64 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2749 : 64 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail769;
2750 : 64 : {
2751 : 64 : if (! tree_invariant_p (captures[2])) goto next_after_fail769;
2752 : 64 : tree res_op0;
2753 : 64 : {
2754 : 64 : tree _o1[2], _r1;
2755 : 64 : _o1[0] = captures[0];
2756 : 64 : _o1[1] = unshare_expr (captures[2]);
2757 : 64 : _r1 = fold_build2_loc (loc, cmp, type, _o1[0], _o1[1]);
2758 : 64 : res_op0 = _r1;
2759 : : }
2760 : 64 : tree res_op1;
2761 : 64 : {
2762 : 64 : tree _o1[2], _r1;
2763 : 64 : _o1[0] = captures[1];
2764 : 64 : _o1[1] = captures[2];
2765 : 64 : _r1 = fold_build2_loc (loc, cmp, type, _o1[0], _o1[1]);
2766 : 64 : res_op1 = _r1;
2767 : : }
2768 : 64 : tree _r;
2769 : 64 : _r = fold_build2_loc (loc, comb, type, res_op0, res_op1);
2770 : 64 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 560, __FILE__, __LINE__, true);
2771 : : return _r;
2772 : : }
2773 : : next_after_fail769:;
2774 : : return NULL_TREE;
2775 : : }
2776 : :
2777 : : tree
2778 : 253 : generic_simplify_349 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2779 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2780 : : const enum tree_code ARG_UNUSED (cmp),
2781 : : const enum tree_code ARG_UNUSED (out))
2782 : : {
2783 : 253 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2784 : 253 : if (TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[1]))
2785 : 253 : && types_match (TREE_TYPE (captures[3]), TREE_TYPE (captures[0]))
2786 : 143 : && tree_nop_conversion_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[3]))
2787 : 253 : && wi::to_wide (captures[4]) != 0
2788 : 0 : && single_use (captures[1])
2789 : : )
2790 : : {
2791 : 143 : {
2792 : 143 : unsigned int prec = TYPE_PRECISION (TREE_TYPE (captures[3]));
2793 : 143 : signop sign = TYPE_SIGN (TREE_TYPE (captures[3]));
2794 : 143 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail809;
2795 : 143 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail809;
2796 : 143 : {
2797 : 143 : tree res_op0;
2798 : 143 : res_op0 = captures[3];
2799 : 143 : tree res_op1;
2800 : 143 : res_op1 = wide_int_to_tree (TREE_TYPE (captures[3]),
2801 : 143 : wi::max_value (prec, sign)
2802 : 429 : - wi::to_wide (captures[4]));
2803 : 143 : tree _r;
2804 : 143 : _r = fold_build2_loc (loc, out, type, res_op0, res_op1);
2805 : 143 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 563, __FILE__, __LINE__, true);
2806 : 143 : return _r;
2807 : : }
2808 : : next_after_fail809:;
2809 : : }
2810 : : }
2811 : : return NULL_TREE;
2812 : : }
2813 : :
2814 : : tree
2815 : 50 : generic_simplify_357 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2816 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2817 : : const enum tree_code ARG_UNUSED (op),
2818 : : const enum tree_code ARG_UNUSED (cmp),
2819 : : const combined_fn ARG_UNUSED (ctz))
2820 : : {
2821 : 50 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2822 : 50 : {
2823 : 50 : bool ok = true;
2824 : 50 : HOST_WIDE_INT val = 0;
2825 : 50 : if (sanitize_flags_p (SANITIZE_BUILTIN)
2826 : 50 : && (!cfun
2827 : 32 : || (cfun->curr_properties & PROP_ssa) == 0))
2828 : : ok = false;
2829 : 18 : else if (!tree_fits_shwi_p (captures[2]))
2830 : : ok = false;
2831 : : else
2832 : : {
2833 : 18 : val = tree_to_shwi (captures[2]);
2834 : 18 : if (op == GT_EXPR || op == LE_EXPR)
2835 : : {
2836 : 10 : if (val == HOST_WIDE_INT_MAX)
2837 : : ok = false;
2838 : : else
2839 : 10 : val++;
2840 : : }
2841 : : }
2842 : 50 : tree type0 = TREE_TYPE (captures[1]);
2843 : 50 : int prec = TYPE_PRECISION (type0);
2844 : 68 : if (ok && prec <= MAX_FIXED_MODE_SIZE
2845 : : )
2846 : : {
2847 : 18 : if (val <= 0
2848 : : )
2849 : : {
2850 : 8 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail820;
2851 : 8 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail820;
2852 : 8 : {
2853 : 8 : tree _r;
2854 : 8 : _r = constant_boolean_node (cmp == EQ_EXPR ? true : false, type);
2855 : 8 : if (TREE_SIDE_EFFECTS (captures[1]))
2856 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2857 : 8 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 594, __FILE__, __LINE__, true);
2858 : 8 : return _r;
2859 : : }
2860 : : next_after_fail820:;
2861 : : }
2862 : : else
2863 : : {
2864 : 10 : if (val >= prec
2865 : : )
2866 : : {
2867 : 5 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail821;
2868 : 5 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail821;
2869 : 5 : {
2870 : 5 : tree _r;
2871 : 5 : _r = constant_boolean_node (cmp == EQ_EXPR ? false : true, type);
2872 : 5 : if (TREE_SIDE_EFFECTS (captures[1]))
2873 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2874 : 5 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 595, __FILE__, __LINE__, true);
2875 : 5 : return _r;
2876 : : }
2877 : : next_after_fail821:;
2878 : : }
2879 : : else
2880 : : {
2881 : 5 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail822;
2882 : 5 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail822;
2883 : 5 : {
2884 : 5 : tree res_op0;
2885 : 5 : {
2886 : 5 : tree _o1[2], _r1;
2887 : 5 : _o1[0] = captures[1];
2888 : 5 : _o1[1] = wide_int_to_tree (type0,
2889 : 5 : wi::mask (val, false, prec));
2890 : 5 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2891 : 5 : res_op0 = _r1;
2892 : : }
2893 : 5 : tree res_op1;
2894 : 5 : res_op1 = build_zero_cst (type0);
2895 : 5 : tree _r;
2896 : 5 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2897 : 5 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 596, __FILE__, __LINE__, true);
2898 : 5 : return _r;
2899 : : }
2900 : : next_after_fail822:;
2901 : : }
2902 : : }
2903 : : }
2904 : : }
2905 : : return NULL_TREE;
2906 : : }
2907 : :
2908 : : tree
2909 : 1 : generic_simplify_367 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2910 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2911 : : const combined_fn ARG_UNUSED (logs),
2912 : : const combined_fn ARG_UNUSED (exps),
2913 : : const enum tree_code ARG_UNUSED (cmp))
2914 : : {
2915 : 1 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2916 : 1 : if (flag_unsafe_math_optimizations
2917 : : )
2918 : : {
2919 : 1 : if (! HONOR_SIGN_DEPENDENT_ROUNDING (type)
2920 : 1 : && ! HONOR_NANS (type) && ! HONOR_INFINITIES (type)
2921 : 1 : && ! flag_trapping_math
2922 : 2 : && ! flag_errno_math
2923 : : )
2924 : : {
2925 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail834;
2926 : 1 : {
2927 : 1 : tree res_op0;
2928 : 1 : res_op0 = captures[1];
2929 : 1 : tree res_op1;
2930 : 1 : {
2931 : 1 : tree _o1[1], _r1;
2932 : 1 : _o1[0] = captures[2];
2933 : 1 : _r1 = maybe_build_call_expr_loc (loc, logs, TREE_TYPE (_o1[0]), 1, _o1[0]);
2934 : 1 : if (!_r1)
2935 : 0 : goto next_after_fail834;
2936 : 1 : if (EXPR_P (_r1))
2937 : 1 : goto next_after_fail834;
2938 : 0 : res_op1 = _r1;
2939 : : }
2940 : 0 : tree _r;
2941 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2942 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 604, __FILE__, __LINE__, true);
2943 : 0 : return _r;
2944 : : }
2945 : : next_after_fail834:;
2946 : : }
2947 : : }
2948 : : return NULL_TREE;
2949 : : }
2950 : :
2951 : : tree
2952 : 316 : generic_simplify_374 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2953 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2954 : : const enum tree_code ARG_UNUSED (shiftrotate))
2955 : : {
2956 : 316 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2957 : 316 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail845;
2958 : 316 : {
2959 : 316 : tree _r;
2960 : 316 : _r = captures[0];
2961 : 316 : if (TREE_SIDE_EFFECTS (captures[1]))
2962 : 44 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2963 : 316 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 615, __FILE__, __LINE__, true);
2964 : : return _r;
2965 : : }
2966 : 0 : next_after_fail845:;
2967 : 0 : return NULL_TREE;
2968 : : }
2969 : :
2970 : : tree
2971 : 28104 : generic_simplify_379 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2972 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2973 : : const enum tree_code ARG_UNUSED (bit_op),
2974 : : const enum tree_code ARG_UNUSED (shift))
2975 : : {
2976 : 28104 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2977 : 28104 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[2]))
2978 : : )
2979 : : {
2980 : 28104 : {
2981 : 28104 : tree mask = int_const_binop (shift, fold_convert (type, captures[3]), captures[4]);
2982 : 28104 : if (mask
2983 : : )
2984 : : {
2985 : 28097 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail853;
2986 : 28097 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail853;
2987 : 28097 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail853;
2988 : 28097 : {
2989 : 28097 : tree res_op0;
2990 : 28097 : {
2991 : 28097 : tree _o1[2], _r1;
2992 : 28097 : {
2993 : 28097 : tree _o2[1], _r2;
2994 : 28097 : _o2[0] = captures[2];
2995 : 28097 : if (TREE_TYPE (_o2[0]) != type)
2996 : : {
2997 : 70 : _r2 = fold_build1_loc (loc, NOP_EXPR, type, _o2[0]);
2998 : : }
2999 : : else
3000 : : _r2 = _o2[0];
3001 : 28097 : _o1[0] = _r2;
3002 : : }
3003 : 28097 : _o1[1] = captures[4];
3004 : 28097 : _r1 = fold_build2_loc (loc, shift, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3005 : 28097 : res_op0 = _r1;
3006 : : }
3007 : 28097 : tree res_op1;
3008 : 28097 : res_op1 = mask;
3009 : 28097 : tree _r;
3010 : 28097 : _r = fold_build2_loc (loc, bit_op, type, res_op0, res_op1);
3011 : 28097 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 621, __FILE__, __LINE__, true);
3012 : 28097 : return _r;
3013 : : }
3014 : : next_after_fail853:;
3015 : : }
3016 : : }
3017 : : }
3018 : : return NULL_TREE;
3019 : : }
3020 : :
3021 : : tree
3022 : 7524 : generic_simplify_384 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3023 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
3024 : : const enum tree_code ARG_UNUSED (minmax))
3025 : : {
3026 : 7524 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3027 : 7524 : if (INTEGRAL_TYPE_P (type)
3028 : 7524 : && types_match (captures[1], type) && int_fits_type_p (captures[2], type)
3029 : 636 : && TYPE_SIGN (TREE_TYPE (captures[0])) == TYPE_SIGN (type)
3030 : 7524 : && TYPE_PRECISION (TREE_TYPE (captures[0])) > TYPE_PRECISION (type)
3031 : : )
3032 : : {
3033 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail863;
3034 : 0 : {
3035 : 0 : tree res_op0;
3036 : 0 : res_op0 = captures[1];
3037 : 0 : tree res_op1;
3038 : 0 : {
3039 : 0 : tree _o1[1], _r1;
3040 : 0 : _o1[0] = captures[2];
3041 : 0 : if (TREE_TYPE (_o1[0]) != type)
3042 : : {
3043 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
3044 : : }
3045 : : else
3046 : : _r1 = _o1[0];
3047 : 0 : res_op1 = _r1;
3048 : : }
3049 : 0 : tree _r;
3050 : 0 : _r = fold_build2_loc (loc, minmax, type, res_op0, res_op1);
3051 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 631, __FILE__, __LINE__, true);
3052 : 0 : return _r;
3053 : : }
3054 : 0 : next_after_fail863:;
3055 : : }
3056 : : return NULL_TREE;
3057 : : }
3058 : :
3059 : : tree
3060 : 2364155 : generic_simplify_387 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3061 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
3062 : : const enum tree_code ARG_UNUSED (op))
3063 : : {
3064 : 2364155 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3065 : 2364155 : if (INTEGRAL_TYPE_P (type)
3066 : 1920226 : && op != MULT_EXPR
3067 : 1920226 : && op != RDIV_EXPR
3068 : 1249131 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
3069 : 1249131 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
3070 : 1249131 : && type_has_mode_precision_p (TREE_TYPE (captures[2]))
3071 : 1248764 : && type_has_mode_precision_p (TREE_TYPE (captures[4]))
3072 : 1247947 : && type_has_mode_precision_p (type)
3073 : 1244142 : && TYPE_PRECISION (TREE_TYPE (captures[1])) > TYPE_PRECISION (TREE_TYPE (captures[2]))
3074 : 0 : && types_match (captures[2], type)
3075 : 2364155 : && (types_match (captures[2], captures[4])
3076 : 0 : || poly_int_tree_p (captures[3]))
3077 : : )
3078 : : {
3079 : 0 : if (TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[2]))
3080 : : )
3081 : : {
3082 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail872;
3083 : 0 : {
3084 : 0 : tree res_op0;
3085 : 0 : res_op0 = captures[2];
3086 : 0 : tree res_op1;
3087 : 0 : {
3088 : 0 : tree _o1[1], _r1;
3089 : 0 : _o1[0] = captures[4];
3090 : 0 : if (TREE_TYPE (_o1[0]) != type)
3091 : : {
3092 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
3093 : : }
3094 : : else
3095 : : _r1 = _o1[0];
3096 : 0 : res_op1 = _r1;
3097 : : }
3098 : 0 : tree _r;
3099 : 0 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
3100 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 632, __FILE__, __LINE__, true);
3101 : 0 : return _r;
3102 : : }
3103 : 0 : next_after_fail872:;
3104 : : }
3105 : : else
3106 : : {
3107 : 0 : {
3108 : 0 : tree utype = unsigned_type_for (TREE_TYPE (captures[2]));
3109 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail873;
3110 : 0 : {
3111 : 0 : tree res_op0;
3112 : 0 : {
3113 : 0 : tree _o1[2], _r1;
3114 : 0 : {
3115 : 0 : tree _o2[1], _r2;
3116 : 0 : _o2[0] = captures[2];
3117 : 0 : if (TREE_TYPE (_o2[0]) != utype)
3118 : : {
3119 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
3120 : : }
3121 : : else
3122 : : _r2 = _o2[0];
3123 : 0 : _o1[0] = _r2;
3124 : : }
3125 : 0 : {
3126 : 0 : tree _o2[1], _r2;
3127 : 0 : _o2[0] = captures[4];
3128 : 0 : if (TREE_TYPE (_o2[0]) != utype)
3129 : : {
3130 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
3131 : : }
3132 : : else
3133 : : _r2 = _o2[0];
3134 : 0 : _o1[1] = _r2;
3135 : : }
3136 : 0 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3137 : 0 : res_op0 = _r1;
3138 : : }
3139 : 0 : tree _r;
3140 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3141 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 633, __FILE__, __LINE__, true);
3142 : 0 : return _r;
3143 : : }
3144 : 0 : next_after_fail873:;
3145 : : }
3146 : : }
3147 : : }
3148 : : else
3149 : : {
3150 : 2345960 : if (FLOAT_TYPE_P (type)
3151 : 2382350 : && DECIMAL_FLOAT_TYPE_P (TREE_TYPE (captures[0]))
3152 : 18195 : == DECIMAL_FLOAT_TYPE_P (type)
3153 : : )
3154 : : {
3155 : 18172 : {
3156 : 18172 : tree arg0 = strip_float_extensions (captures[2]);
3157 : 18172 : tree arg1 = strip_float_extensions (captures[4]);
3158 : 18172 : tree itype = TREE_TYPE (captures[0]);
3159 : 18172 : tree ty1 = TREE_TYPE (arg0);
3160 : 18172 : tree ty2 = TREE_TYPE (arg1);
3161 : 18172 : enum tree_code code = TREE_CODE (itype);
3162 : 0 : if (FLOAT_TYPE_P (ty1)
3163 : 18172 : && FLOAT_TYPE_P (ty2)
3164 : : )
3165 : : {
3166 : 18172 : {
3167 : 18172 : tree newtype = type;
3168 : 18172 : if (TYPE_MODE (ty1) == SDmode
3169 : 18163 : || TYPE_MODE (ty2) == SDmode
3170 : 36335 : || TYPE_MODE (type) == SDmode)
3171 : 9 : newtype = dfloat32_type_node;
3172 : 18172 : if (TYPE_MODE (ty1) == DDmode
3173 : 18166 : || TYPE_MODE (ty2) == DDmode
3174 : 36338 : || TYPE_MODE (type) == DDmode)
3175 : 6 : newtype = dfloat64_type_node;
3176 : 18172 : if (TYPE_MODE (ty1) == TDmode
3177 : 18172 : || TYPE_MODE (ty2) == TDmode
3178 : 36344 : || TYPE_MODE (type) == TDmode)
3179 : 15 : newtype = dfloat128_type_node;
3180 : 18172 : if ((newtype == dfloat32_type_node
3181 : 18172 : || newtype == dfloat64_type_node
3182 : 18172 : || newtype == dfloat128_type_node)
3183 : 15 : && newtype == type
3184 : 18178 : && types_match (newtype, type)
3185 : : )
3186 : : {
3187 : 6 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail874;
3188 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail874;
3189 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail874;
3190 : 0 : {
3191 : 0 : tree res_op0;
3192 : 0 : {
3193 : 0 : tree _o1[1], _r1;
3194 : 0 : _o1[0] = captures[2];
3195 : 0 : if (TREE_TYPE (_o1[0]) != newtype)
3196 : : {
3197 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, newtype, _o1[0]);
3198 : : }
3199 : : else
3200 : : _r1 = _o1[0];
3201 : 0 : res_op0 = _r1;
3202 : : }
3203 : 0 : tree res_op1;
3204 : 0 : {
3205 : 0 : tree _o1[1], _r1;
3206 : 0 : _o1[0] = captures[4];
3207 : 0 : if (TREE_TYPE (_o1[0]) != newtype)
3208 : : {
3209 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, newtype, _o1[0]);
3210 : : }
3211 : : else
3212 : : _r1 = _o1[0];
3213 : 0 : res_op1 = _r1;
3214 : : }
3215 : 0 : tree _r;
3216 : 0 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
3217 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 634, __FILE__, __LINE__, true);
3218 : 0 : return _r;
3219 : : }
3220 : : next_after_fail874:;
3221 : : }
3222 : : else
3223 : : {
3224 : 18166 : {
3225 : 18166 : if (element_precision (ty1) > element_precision (newtype))
3226 : 745 : newtype = ty1;
3227 : 18166 : if (element_precision (ty2) > element_precision (newtype))
3228 : 1 : newtype = ty2;
3229 : 18166 : if (element_precision (newtype) < element_precision (itype)
3230 : 16942 : && (!VECTOR_MODE_P (TYPE_MODE (newtype))
3231 : 0 : || target_supports_op_p (newtype, op, optab_default))
3232 : 16942 : && (flag_unsafe_math_optimizations
3233 : 16930 : || (element_precision (newtype) == element_precision (type)
3234 : 16926 : && real_can_shorten_arithmetic (element_mode (itype),
3235 : : element_mode (type))
3236 : 6978 : && !excess_precision_type (newtype)))
3237 : 18833 : && !types_match (itype, newtype)
3238 : : )
3239 : : {
3240 : 667 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail875;
3241 : 667 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail875;
3242 : 652 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail875;
3243 : 652 : {
3244 : 652 : tree res_op0;
3245 : 652 : {
3246 : 652 : tree _o1[2], _r1;
3247 : 652 : {
3248 : 652 : tree _o2[1], _r2;
3249 : 652 : _o2[0] = captures[2];
3250 : 652 : if (TREE_TYPE (_o2[0]) != newtype)
3251 : : {
3252 : 652 : _r2 = fold_build1_loc (loc, NOP_EXPR, newtype, _o2[0]);
3253 : : }
3254 : : else
3255 : : _r2 = _o2[0];
3256 : 652 : _o1[0] = _r2;
3257 : : }
3258 : 652 : {
3259 : 652 : tree _o2[1], _r2;
3260 : 652 : _o2[0] = captures[4];
3261 : 652 : if (TREE_TYPE (_o2[0]) != newtype)
3262 : : {
3263 : 604 : _r2 = fold_build1_loc (loc, NOP_EXPR, newtype, _o2[0]);
3264 : : }
3265 : : else
3266 : : _r2 = _o2[0];
3267 : 652 : _o1[1] = _r2;
3268 : : }
3269 : 652 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3270 : 652 : res_op0 = _r1;
3271 : : }
3272 : 652 : tree _r;
3273 : 652 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3274 : 652 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 635, __FILE__, __LINE__, true);
3275 : 652 : return _r;
3276 : : }
3277 : : next_after_fail875:;
3278 : : }
3279 : : }
3280 : : }
3281 : : }
3282 : : }
3283 : : }
3284 : : }
3285 : : }
3286 : : return NULL_TREE;
3287 : : }
3288 : :
3289 : : tree
3290 : 104 : generic_simplify_416 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3291 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3292 : : {
3293 : 104 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3294 : 104 : {
3295 : 104 : bool wascmp;
3296 : 104 : if (bitwise_inverted_equal_p (captures[0], captures[2], wascmp)
3297 : 104 : && (!wascmp || element_precision (type) == 1)
3298 : : )
3299 : : {
3300 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail907;
3301 : 0 : {
3302 : 0 : tree res_op0;
3303 : 0 : res_op0 = captures[0];
3304 : 0 : tree res_op1;
3305 : 0 : res_op1 = captures[1];
3306 : 0 : tree _r;
3307 : 0 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
3308 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
3309 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3310 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 662, __FILE__, __LINE__, true);
3311 : 0 : return _r;
3312 : : }
3313 : 0 : next_after_fail907:;
3314 : : }
3315 : : }
3316 : 104 : return NULL_TREE;
3317 : : }
3318 : :
3319 : : tree
3320 : 5468012 : generic_simplify_422 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3321 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3322 : : {
3323 : 5468012 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3324 : 10743885 : if (POINTER_TYPE_P (TREE_TYPE (captures[0]))
3325 : 5468024 : && tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
3326 : : )
3327 : : {
3328 : 192151 : {
3329 : 192151 : unsigned int align;
3330 : 192151 : unsigned HOST_WIDE_INT bitpos;
3331 : 192151 : get_pointer_alignment_1 (captures[0], &align, &bitpos);
3332 : 192151 : if (wi::ltu_p (wi::to_wide (captures[1]), align / BITS_PER_UNIT)
3333 : : )
3334 : : {
3335 : 3750 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail913;
3336 : 3750 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail913;
3337 : 3750 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail913;
3338 : 3750 : {
3339 : 3750 : tree _r;
3340 : 7500 : _r = wide_int_to_tree (type, (wi::to_wide (captures[1])
3341 : 7500 : & (bitpos / BITS_PER_UNIT)));
3342 : 3750 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 667, __FILE__, __LINE__, true);
3343 : 3750 : return _r;
3344 : : }
3345 : 188401 : next_after_fail913:;
3346 : : }
3347 : : }
3348 : : }
3349 : : return NULL_TREE;
3350 : : }
3351 : :
3352 : : tree
3353 : 92 : generic_simplify_431 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3354 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3355 : : const enum tree_code ARG_UNUSED (code2),
3356 : : const enum tree_code ARG_UNUSED (code1))
3357 : : {
3358 : 92 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3359 : 92 : if ((TREE_CODE (captures[2]) == INTEGER_CST
3360 : 30 : && TREE_CODE (captures[4]) == INTEGER_CST)
3361 : 92 : || ((INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
3362 : 12 : || (VECTOR_TYPE_P (TREE_TYPE (captures[2]))
3363 : 4 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, code2))
3364 : 8 : || POINTER_TYPE_P (TREE_TYPE (captures[2])))
3365 : 54 : && operand_equal_p (captures[2], captures[4]))
3366 : : )
3367 : : {
3368 : 34 : {
3369 : 34 : int cmp = 0;
3370 : 34 : if (TREE_CODE (captures[2]) == INTEGER_CST
3371 : 30 : && TREE_CODE (captures[4]) == INTEGER_CST)
3372 : 30 : cmp = tree_int_cst_compare (captures[2], captures[4]);
3373 : 34 : if ((code1 == LT_EXPR || code1 == LE_EXPR)
3374 : 4 : && (code2 == LT_EXPR || code2 == LE_EXPR)
3375 : : )
3376 : : {
3377 : 0 : if ((cmp < 0) || (cmp == 0 && code1 == LT_EXPR)
3378 : : )
3379 : : {
3380 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail941;
3381 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail941;
3382 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail941;
3383 : 0 : {
3384 : 0 : tree _r;
3385 : 0 : _r = captures[0];
3386 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 685, __FILE__, __LINE__, true);
3387 : 0 : return _r;
3388 : : }
3389 : : next_after_fail941:;
3390 : : }
3391 : : else
3392 : : {
3393 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail942;
3394 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail942;
3395 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail942;
3396 : 0 : {
3397 : 0 : tree _r;
3398 : 0 : _r = captures[3];
3399 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 686, __FILE__, __LINE__, true);
3400 : 0 : return _r;
3401 : : }
3402 : : next_after_fail942:;
3403 : : }
3404 : : }
3405 : : else
3406 : : {
3407 : 34 : if ((code1 == GT_EXPR || code1 == GE_EXPR)
3408 : 30 : && (code2 == GT_EXPR || code2 == GE_EXPR)
3409 : : )
3410 : : {
3411 : 0 : if ((cmp > 0) || (cmp == 0 && code1 == GT_EXPR)
3412 : : )
3413 : : {
3414 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail943;
3415 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail943;
3416 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail943;
3417 : 0 : {
3418 : 0 : tree _r;
3419 : 0 : _r = captures[0];
3420 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 687, __FILE__, __LINE__, true);
3421 : 0 : return _r;
3422 : : }
3423 : : next_after_fail943:;
3424 : : }
3425 : : else
3426 : : {
3427 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail944;
3428 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail944;
3429 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail944;
3430 : 0 : {
3431 : 0 : tree _r;
3432 : 0 : _r = captures[3];
3433 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 688, __FILE__, __LINE__, true);
3434 : 0 : return _r;
3435 : : }
3436 : : next_after_fail944:;
3437 : : }
3438 : : }
3439 : : else
3440 : : {
3441 : 34 : if (cmp == 0
3442 : 4 : && ((code1 == LE_EXPR && code2 == GE_EXPR)
3443 : 4 : || (code1 == GE_EXPR && code2 == LE_EXPR))
3444 : : )
3445 : : {
3446 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail945;
3447 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail945;
3448 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail945;
3449 : 0 : {
3450 : 0 : tree res_op0;
3451 : 0 : res_op0 = captures[1];
3452 : 0 : tree res_op1;
3453 : 0 : res_op1 = captures[2];
3454 : 0 : tree _r;
3455 : 0 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
3456 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 689, __FILE__, __LINE__, true);
3457 : 0 : return _r;
3458 : : }
3459 : : next_after_fail945:;
3460 : : }
3461 : : else
3462 : : {
3463 : 34 : if (cmp <= 0
3464 : 34 : && (code1 == LT_EXPR || code1 == LE_EXPR)
3465 : 4 : && (code2 == GT_EXPR || code2 == GE_EXPR)
3466 : : )
3467 : : {
3468 : 4 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail946;
3469 : 4 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail946;
3470 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail946;
3471 : 4 : {
3472 : 4 : tree _r;
3473 : 4 : _r = constant_boolean_node (false, type);
3474 : 4 : if (TREE_SIDE_EFFECTS (captures[1]))
3475 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3476 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 690, __FILE__, __LINE__, true);
3477 : 4 : return _r;
3478 : : }
3479 : : next_after_fail946:;
3480 : : }
3481 : : else
3482 : : {
3483 : 30 : if (cmp >= 0
3484 : 0 : && (code1 == GT_EXPR || code1 == GE_EXPR)
3485 : 0 : && (code2 == LT_EXPR || code2 == LE_EXPR)
3486 : : )
3487 : : {
3488 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail947;
3489 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail947;
3490 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail947;
3491 : 0 : {
3492 : 0 : tree _r;
3493 : 0 : _r = constant_boolean_node (false, type);
3494 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
3495 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3496 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 691, __FILE__, __LINE__, true);
3497 : 0 : return _r;
3498 : : }
3499 : : next_after_fail947:;
3500 : : }
3501 : : }
3502 : : }
3503 : : }
3504 : : }
3505 : : }
3506 : : }
3507 : : return NULL_TREE;
3508 : : }
3509 : :
3510 : : tree
3511 : 3 : generic_simplify_448 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3512 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3513 : : const combined_fn ARG_UNUSED (POPCOUNT),
3514 : : const combined_fn ARG_UNUSED (PARITY))
3515 : : {
3516 : 3 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3517 : 3 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail983;
3518 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail983;
3519 : 3 : {
3520 : 3 : tree res_op0;
3521 : 3 : res_op0 = captures[0];
3522 : 3 : tree _r;
3523 : 3 : _r = maybe_build_call_expr_loc (loc, PARITY, type, 1, res_op0);
3524 : 3 : if (!_r)
3525 : 0 : goto next_after_fail983;
3526 : 3 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 699, __FILE__, __LINE__, true);
3527 : : return _r;
3528 : : }
3529 : : next_after_fail983:;
3530 : : return NULL_TREE;
3531 : : }
3532 : :
3533 : : tree
3534 : 108 : generic_simplify_450 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3535 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
3536 : : {
3537 : 108 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3538 : 108 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail985;
3539 : 108 : {
3540 : 108 : tree res_op0;
3541 : 108 : res_op0 = captures[1];
3542 : 108 : tree res_op1;
3543 : 108 : {
3544 : 108 : tree _o1[1], _r1;
3545 : 108 : _o1[0] = captures[2];
3546 : 108 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
3547 : 108 : res_op1 = _r1;
3548 : : }
3549 : 108 : tree _r;
3550 : 108 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
3551 : 108 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 701, __FILE__, __LINE__, true);
3552 : : return _r;
3553 : : }
3554 : 0 : next_after_fail985:;
3555 : 0 : return NULL_TREE;
3556 : : }
3557 : :
3558 : : tree
3559 : 17 : generic_simplify_452 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3560 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
3561 : : {
3562 : 17 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3563 : 17 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail987;
3564 : 17 : {
3565 : 17 : tree res_op0;
3566 : 17 : res_op0 = captures[0];
3567 : 17 : tree res_op1;
3568 : 17 : res_op1 = captures[1];
3569 : 17 : tree _r;
3570 : 17 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
3571 : 17 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 703, __FILE__, __LINE__, true);
3572 : : return _r;
3573 : : }
3574 : 0 : next_after_fail987:;
3575 : 0 : return NULL_TREE;
3576 : : }
3577 : :
3578 : : tree
3579 : 31 : generic_simplify_454 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3580 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
3581 : : {
3582 : 31 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3583 : 31 : if (!TYPE_UNSIGNED (TREE_TYPE (captures[2]))
3584 : 54 : && (element_precision (TREE_TYPE (captures[2]))
3585 : 23 : <= element_precision (TREE_TYPE (captures[3]))
3586 : 1 : || !TYPE_UNSIGNED (TREE_TYPE (captures[3])))
3587 : : )
3588 : : {
3589 : 22 : {
3590 : 22 : tree shift_type = TREE_TYPE (captures[2]);
3591 : 22 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail989;
3592 : 22 : {
3593 : 22 : tree res_op0;
3594 : 22 : {
3595 : 22 : tree _o1[2], _r1;
3596 : 22 : {
3597 : 22 : tree _o2[1], _r2;
3598 : 22 : _o2[0] = captures[3];
3599 : 22 : if (TREE_TYPE (_o2[0]) != shift_type)
3600 : : {
3601 : 1 : _r2 = fold_build1_loc (loc, NOP_EXPR, shift_type, _o2[0]);
3602 : : }
3603 : : else
3604 : : _r2 = _o2[0];
3605 : 22 : _o1[0] = _r2;
3606 : : }
3607 : 22 : _o1[1] = captures[4];
3608 : 22 : _r1 = fold_build2_loc (loc, RSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3609 : 22 : res_op0 = _r1;
3610 : : }
3611 : 22 : tree _r;
3612 : 22 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3613 : 22 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 705, __FILE__, __LINE__, true);
3614 : 22 : return _r;
3615 : : }
3616 : 0 : next_after_fail989:;
3617 : : }
3618 : : }
3619 : : return NULL_TREE;
3620 : : }
3621 : :
3622 : : tree
3623 : 0 : generic_simplify_460 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3624 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
3625 : : const enum tree_code ARG_UNUSED (minmax),
3626 : : const enum tree_code ARG_UNUSED (maxmin))
3627 : : {
3628 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3629 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail995;
3630 : 0 : {
3631 : 0 : tree res_op0;
3632 : 0 : res_op0 = captures[1];
3633 : 0 : tree res_op1;
3634 : 0 : {
3635 : 0 : tree _o1[1], _r1;
3636 : 0 : _o1[0] = captures[2];
3637 : 0 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
3638 : 0 : res_op1 = _r1;
3639 : : }
3640 : 0 : tree _r;
3641 : 0 : _r = fold_build2_loc (loc, maxmin, type, res_op0, res_op1);
3642 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 710, __FILE__, __LINE__, true);
3643 : : return _r;
3644 : : }
3645 : 0 : next_after_fail995:;
3646 : 0 : return NULL_TREE;
3647 : : }
3648 : :
3649 : : tree
3650 : 378 : generic_simplify_465 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3651 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
3652 : : {
3653 : 378 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3654 : 378 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
3655 : 378 : && wi::to_wide (captures[1]) == element_precision (type) - 1
3656 : : )
3657 : : {
3658 : 44 : {
3659 : 44 : tree stype = TREE_TYPE (captures[0]);
3660 : 44 : tree ntype = TYPE_UNSIGNED (stype) ? signed_type_for (stype)
3661 : 9 : : unsigned_type_for (stype);
3662 : 44 : if (VECTOR_TYPE_P (type)
3663 : : )
3664 : : {
3665 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1001;
3666 : 0 : {
3667 : 0 : tree res_op0;
3668 : 0 : {
3669 : 0 : tree _o1[2], _r1;
3670 : 0 : {
3671 : 0 : tree _o2[1], _r2;
3672 : 0 : _o2[0] = captures[0];
3673 : 0 : if (TREE_TYPE (_o2[0]) != ntype)
3674 : : {
3675 : 0 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, ntype, _o2[0]);
3676 : : }
3677 : : else
3678 : : _r2 = _o2[0];
3679 : 0 : _o1[0] = _r2;
3680 : : }
3681 : 0 : _o1[1] = captures[1];
3682 : 0 : _r1 = fold_build2_loc (loc, RSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3683 : 0 : res_op0 = _r1;
3684 : : }
3685 : 0 : tree _r;
3686 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
3687 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 715, __FILE__, __LINE__, true);
3688 : 0 : return _r;
3689 : : }
3690 : 0 : next_after_fail1001:;
3691 : : }
3692 : : else
3693 : : {
3694 : 44 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1002;
3695 : 44 : {
3696 : 44 : tree res_op0;
3697 : 44 : {
3698 : 44 : tree _o1[2], _r1;
3699 : 44 : {
3700 : 44 : tree _o2[1], _r2;
3701 : 44 : _o2[0] = captures[0];
3702 : 44 : if (TREE_TYPE (_o2[0]) != ntype)
3703 : : {
3704 : 44 : _r2 = fold_build1_loc (loc, NOP_EXPR, ntype, _o2[0]);
3705 : : }
3706 : : else
3707 : : _r2 = _o2[0];
3708 : 44 : _o1[0] = _r2;
3709 : : }
3710 : 44 : _o1[1] = captures[1];
3711 : 44 : _r1 = fold_build2_loc (loc, RSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3712 : 44 : res_op0 = _r1;
3713 : : }
3714 : 44 : tree _r;
3715 : 44 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3716 : 44 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 716, __FILE__, __LINE__, true);
3717 : 44 : return _r;
3718 : : }
3719 : 0 : next_after_fail1002:;
3720 : : }
3721 : : }
3722 : : }
3723 : : return NULL_TREE;
3724 : : }
3725 : :
3726 : : tree
3727 : 21 : generic_simplify_484 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3728 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
3729 : : {
3730 : 21 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3731 : 21 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1026;
3732 : 21 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1026;
3733 : 21 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1026;
3734 : 21 : {
3735 : 21 : tree _r;
3736 : 21 : _r = captures[2];
3737 : 21 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 739, __FILE__, __LINE__, true);
3738 : : return _r;
3739 : : }
3740 : : next_after_fail1026:;
3741 : : return NULL_TREE;
3742 : : }
3743 : :
3744 : : tree
3745 : 0 : generic_simplify_488 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3746 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
3747 : : {
3748 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3749 : 0 : if (INTEGRAL_TYPE_P (type)
3750 : : )
3751 : : {
3752 : 0 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1030;
3753 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1030;
3754 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1030;
3755 : 0 : {
3756 : 0 : tree _r;
3757 : 0 : _r = captures[2];
3758 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 743, __FILE__, __LINE__, true);
3759 : 0 : return _r;
3760 : : }
3761 : : next_after_fail1030:;
3762 : : }
3763 : : return NULL_TREE;
3764 : : }
3765 : :
3766 : : tree
3767 : 0 : generic_simplify_493 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3768 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
3769 : : const combined_fn ARG_UNUSED (func))
3770 : : {
3771 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3772 : 0 : if (wi::to_widest (captures[4]) == TYPE_PRECISION (TREE_TYPE (captures[3])) - 1
3773 : : )
3774 : : {
3775 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1036;
3776 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1036;
3777 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1036;
3778 : 0 : {
3779 : 0 : tree _r;
3780 : 0 : _r = captures[2];
3781 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
3782 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3783 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 749, __FILE__, __LINE__, true);
3784 : 0 : return _r;
3785 : : }
3786 : : next_after_fail1036:;
3787 : : }
3788 : : return NULL_TREE;
3789 : : }
3790 : :
3791 : : tree
3792 : 0 : generic_simplify_499 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3793 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3794 : : const enum tree_code ARG_UNUSED (minmax))
3795 : : {
3796 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3797 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1044;
3798 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1044;
3799 : 0 : {
3800 : 0 : tree _r;
3801 : 0 : _r = captures[0];
3802 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 755, __FILE__, __LINE__, true);
3803 : : return _r;
3804 : : }
3805 : : next_after_fail1044:;
3806 : : return NULL_TREE;
3807 : : }
3808 : :
3809 : : tree
3810 : 0 : generic_simplify_504 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3811 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3812 : : const enum tree_code ARG_UNUSED (minmax),
3813 : : const enum tree_code ARG_UNUSED (cmp))
3814 : : {
3815 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3816 : 0 : {
3817 : 0 : poly_int64 off0, off1;
3818 : 0 : tree base0, base1;
3819 : 0 : int equal = address_compare (cmp, TREE_TYPE (captures[0]), captures[1], captures[3], base0, base1,
3820 : : off0, off1,
3821 : : 1
3822 : : );
3823 : 0 : if (equal == 1
3824 : : )
3825 : : {
3826 : 0 : if (minmax == MIN_EXPR
3827 : : )
3828 : : {
3829 : 0 : if (known_le (off0, off1)
3830 : : )
3831 : : {
3832 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1055;
3833 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1055;
3834 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1055;
3835 : 0 : {
3836 : 0 : tree _r;
3837 : 0 : _r = captures[0];
3838 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 758, __FILE__, __LINE__, true);
3839 : 0 : return _r;
3840 : : }
3841 : 0 : next_after_fail1055:;
3842 : : }
3843 : : else
3844 : : {
3845 : 0 : if (known_gt (off0, off1)
3846 : : )
3847 : : {
3848 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1056;
3849 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1056;
3850 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1056;
3851 : 0 : {
3852 : 0 : tree _r;
3853 : 0 : _r = captures[2];
3854 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 759, __FILE__, __LINE__, true);
3855 : 0 : return _r;
3856 : : }
3857 : 0 : next_after_fail1056:;
3858 : : }
3859 : : }
3860 : : }
3861 : : else
3862 : : {
3863 : 0 : if (known_ge (off0, off1)
3864 : : )
3865 : : {
3866 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1057;
3867 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1057;
3868 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1057;
3869 : 0 : {
3870 : 0 : tree _r;
3871 : 0 : _r = captures[0];
3872 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 760, __FILE__, __LINE__, true);
3873 : 0 : return _r;
3874 : : }
3875 : 0 : next_after_fail1057:;
3876 : : }
3877 : : else
3878 : : {
3879 : 0 : if (known_lt (off0, off1)
3880 : : )
3881 : : {
3882 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1058;
3883 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1058;
3884 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1058;
3885 : 0 : {
3886 : 0 : tree _r;
3887 : 0 : _r = captures[2];
3888 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 761, __FILE__, __LINE__, true);
3889 : 0 : return _r;
3890 : : }
3891 : 0 : next_after_fail1058:;
3892 : : }
3893 : : }
3894 : : }
3895 : : }
3896 : : }
3897 : 0 : return NULL_TREE;
3898 : : }
3899 : :
3900 : : tree
3901 : 6 : generic_simplify_521 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3902 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
3903 : : {
3904 : 6 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3905 : 6 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1081;
3906 : 6 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1081;
3907 : 6 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1081;
3908 : 6 : {
3909 : 6 : tree _r;
3910 : 6 : _r = captures[2];
3911 : 6 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 727, __FILE__, __LINE__, true);
3912 : : return _r;
3913 : : }
3914 : : next_after_fail1081:;
3915 : : return NULL_TREE;
3916 : : }
3917 : :
3918 : : tree
3919 : 0 : generic_simplify_527 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3920 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
3921 : : const combined_fn ARG_UNUSED (cond_op))
3922 : : {
3923 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3924 : 0 : {
3925 : 0 : tree op_type = TREE_TYPE (captures[5]);
3926 : 0 : if (inverse_conditions_p (captures[0], captures[2])
3927 : 0 : && element_precision (type) == element_precision (op_type)
3928 : : )
3929 : : {
3930 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1087;
3931 : 0 : {
3932 : 0 : tree res_op0;
3933 : 0 : {
3934 : 0 : tree _o1[4], _r1;
3935 : 0 : _o1[0] = captures[2];
3936 : 0 : _o1[1] = captures[3];
3937 : 0 : _o1[2] = captures[4];
3938 : 0 : {
3939 : 0 : tree _o2[1], _r2;
3940 : 0 : _o2[0] = captures[1];
3941 : 0 : if (TREE_TYPE (_o2[0]) != op_type)
3942 : : {
3943 : 0 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, op_type, _o2[0]);
3944 : : }
3945 : : else
3946 : : _r2 = _o2[0];
3947 : 0 : _o1[3] = _r2;
3948 : : }
3949 : 0 : _r1 = maybe_build_call_expr_loc (loc, cond_op, TREE_TYPE (_o1[1]), 4, _o1[0], _o1[1], _o1[2], _o1[3]);
3950 : 0 : if (!_r1)
3951 : 0 : goto next_after_fail1087;
3952 : 0 : res_op0 = _r1;
3953 : : }
3954 : 0 : tree _r;
3955 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
3956 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
3957 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
3958 : 0 : if (TREE_SIDE_EFFECTS (captures[5]))
3959 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[5]), _r);
3960 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 781, __FILE__, __LINE__, true);
3961 : 0 : return _r;
3962 : : }
3963 : : next_after_fail1087:;
3964 : : }
3965 : : }
3966 : : return NULL_TREE;
3967 : : }
3968 : :
3969 : : tree
3970 : 0 : generic_simplify_535 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3971 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
3972 : : const combined_fn ARG_UNUSED (cond_op))
3973 : : {
3974 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3975 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1095;
3976 : 0 : {
3977 : 0 : tree res_op0;
3978 : 0 : {
3979 : 0 : tree _o1[2], _r1;
3980 : 0 : _o1[0] = captures[2];
3981 : 0 : _o1[1] = captures[0];
3982 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3983 : 0 : res_op0 = _r1;
3984 : : }
3985 : 0 : tree res_op1;
3986 : 0 : res_op1 = captures[3];
3987 : 0 : tree res_op2;
3988 : 0 : res_op2 = captures[4];
3989 : 0 : tree res_op3;
3990 : 0 : res_op3 = captures[5];
3991 : 0 : tree res_op4;
3992 : 0 : res_op4 = captures[6];
3993 : 0 : tree _r;
3994 : 0 : _r = maybe_build_call_expr_loc (loc, cond_op, type, 5, res_op0, res_op1, res_op2, res_op3, res_op4);
3995 : 0 : if (!_r)
3996 : 0 : goto next_after_fail1095;
3997 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 789, __FILE__, __LINE__, true);
3998 : : return _r;
3999 : : }
4000 : : next_after_fail1095:;
4001 : : return NULL_TREE;
4002 : : }
4003 : :
4004 : : tree
4005 : 0 : generic_simplify_547 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4006 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4007 : : const combined_fn ARG_UNUSED (fns))
4008 : : {
4009 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4010 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1107;
4011 : 0 : {
4012 : 0 : tree res_op0;
4013 : 0 : res_op0 = captures[0];
4014 : 0 : tree _r;
4015 : 0 : _r = maybe_build_call_expr_loc (loc, fns, type, 1, res_op0);
4016 : 0 : if (!_r)
4017 : 0 : goto next_after_fail1107;
4018 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 801, __FILE__, __LINE__, true);
4019 : : return _r;
4020 : : }
4021 : : next_after_fail1107:;
4022 : : return NULL_TREE;
4023 : : }
4024 : :
4025 : : tree
4026 : 0 : generic_simplify_551 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4027 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4028 : : const combined_fn ARG_UNUSED (floors),
4029 : : const combined_fn ARG_UNUSED (truncs))
4030 : : {
4031 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4032 : 0 : if (canonicalize_math_p ()
4033 : : )
4034 : : {
4035 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1111;
4036 : 0 : {
4037 : 0 : tree res_op0;
4038 : 0 : res_op0 = captures[0];
4039 : 0 : tree _r;
4040 : 0 : _r = maybe_build_call_expr_loc (loc, truncs, type, 1, res_op0);
4041 : 0 : if (!_r)
4042 : 0 : goto next_after_fail1111;
4043 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 805, __FILE__, __LINE__, true);
4044 : 0 : return _r;
4045 : : }
4046 : : next_after_fail1111:;
4047 : : }
4048 : : return NULL_TREE;
4049 : : }
4050 : :
4051 : : tree
4052 : 0 : generic_simplify_559 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4053 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4054 : : const combined_fn ARG_UNUSED (ifn),
4055 : : const combined_fn ARG_UNUSED (lfn),
4056 : : const combined_fn ARG_UNUSED (llfn))
4057 : : {
4058 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4059 : 0 : if (canonicalize_math_p ()
4060 : : )
4061 : : {
4062 : 0 : if (TYPE_PRECISION (long_long_integer_type_node)
4063 : 0 : == TYPE_PRECISION (long_integer_type_node)
4064 : : )
4065 : : {
4066 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1119;
4067 : 0 : {
4068 : 0 : tree res_op0;
4069 : 0 : res_op0 = captures[0];
4070 : 0 : tree _r;
4071 : 0 : _r = maybe_build_call_expr_loc (loc, lfn, type, 1, res_op0);
4072 : 0 : if (!_r)
4073 : 0 : goto next_after_fail1119;
4074 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 813, __FILE__, __LINE__, true);
4075 : 0 : return _r;
4076 : : }
4077 : : next_after_fail1119:;
4078 : : }
4079 : : }
4080 : : return NULL_TREE;
4081 : : }
4082 : :
4083 : : tree
4084 : 0 : generic_simplify_570 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4085 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
4086 : : {
4087 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4088 : 0 : if (canonicalize_math_after_vectorization_p ()
4089 : : )
4090 : : {
4091 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1130;
4092 : : {
4093 : : tree res_op0;
4094 : : res_op0 = captures[0];
4095 : : tree res_op1;
4096 : : res_op1 = captures[1];
4097 : : tree res_op2;
4098 : : res_op2 = captures[2];
4099 : : tree _r;
4100 : : _r = maybe_build_call_expr_loc (loc, CFN_FMS, type, 3, res_op0, res_op1, res_op2);
4101 : : if (!_r)
4102 : : goto next_after_fail1130;
4103 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 824, __FILE__, __LINE__, true);
4104 : : return _r;
4105 : : }
4106 : 0 : next_after_fail1130:;
4107 : : }
4108 : 0 : return NULL_TREE;
4109 : : }
4110 : :
4111 : : tree
4112 : 0 : generic_simplify_580 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4113 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4114 : : const combined_fn ARG_UNUSED (pfun))
4115 : : {
4116 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4117 : 0 : if (INTEGRAL_TYPE_P (type)
4118 : : )
4119 : : {
4120 : 0 : {
4121 : 0 : wide_int nz = tree_nonzero_bits (captures[0]);
4122 : 0 : if (nz == 1
4123 : : )
4124 : : {
4125 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1140;
4126 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1140;
4127 : 0 : {
4128 : 0 : tree res_op0;
4129 : 0 : res_op0 = captures[0];
4130 : 0 : tree _r;
4131 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4132 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 829, __FILE__, __LINE__, true);
4133 : 0 : return _r;
4134 : : }
4135 : 0 : next_after_fail1140:;
4136 : : }
4137 : : else
4138 : : {
4139 : 0 : if (wi::popcount (nz) == 1
4140 : : )
4141 : : {
4142 : 0 : {
4143 : 0 : tree utype = unsigned_type_for (TREE_TYPE (captures[0]));
4144 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1141;
4145 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1141;
4146 : 0 : {
4147 : 0 : tree res_op0;
4148 : 0 : {
4149 : 0 : tree _o1[2], _r1;
4150 : 0 : {
4151 : 0 : tree _o2[1], _r2;
4152 : 0 : _o2[0] = captures[0];
4153 : 0 : if (TREE_TYPE (_o2[0]) != utype)
4154 : : {
4155 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
4156 : : }
4157 : : else
4158 : : _r2 = _o2[0];
4159 : 0 : _o1[0] = _r2;
4160 : : }
4161 : 0 : _o1[1] = build_int_cst (integer_type_node,
4162 : 0 : wi::ctz (nz));
4163 : 0 : _r1 = fold_build2_loc (loc, RSHIFT_EXPR, utype, _o1[0], _o1[1]);
4164 : 0 : res_op0 = _r1;
4165 : : }
4166 : 0 : tree _r;
4167 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4168 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 830, __FILE__, __LINE__, true);
4169 : 0 : return _r;
4170 : : }
4171 : 0 : next_after_fail1141:;
4172 : : }
4173 : : }
4174 : : }
4175 : 0 : }
4176 : : }
4177 : : return NULL_TREE;
4178 : : }
4179 : :
4180 : : tree
4181 : 939 : generic_simplify_ABSU_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0)
4182 : : {
4183 : 939 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4184 : 939 : switch (TREE_CODE (_p0))
4185 : : {
4186 : 541 : CASE_CONVERT:
4187 : 541 : {
4188 : 541 : tree _q20 = TREE_OPERAND (_p0, 0);
4189 : 541 : switch (TREE_CODE (_q20))
4190 : : {
4191 : 0 : case ABSU_EXPR:
4192 : 0 : {
4193 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
4194 : 0 : {
4195 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
4196 : 0 : if (tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
4197 : : )
4198 : : {
4199 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1187;
4200 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1187;
4201 : 0 : {
4202 : 0 : tree _r;
4203 : 0 : _r = captures[1];
4204 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 866, __FILE__, __LINE__, true);
4205 : 0 : return _r;
4206 : : }
4207 : 0 : next_after_fail1187:;
4208 : : }
4209 : : }
4210 : 0 : break;
4211 : : }
4212 : : default:;
4213 : : }
4214 : : break;
4215 : : }
4216 : 6 : case NEGATE_EXPR:
4217 : 6 : {
4218 : 6 : tree _q20 = TREE_OPERAND (_p0, 0);
4219 : 6 : {
4220 : 6 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
4221 : 6 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1188;
4222 : 6 : {
4223 : 6 : tree res_op0;
4224 : 6 : res_op0 = captures[0];
4225 : 6 : tree _r;
4226 : 6 : _r = fold_build1_loc (loc, ABSU_EXPR, type, res_op0);
4227 : 6 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 867, __FILE__, __LINE__, true);
4228 : 939 : return _r;
4229 : : }
4230 : 0 : next_after_fail1188:;
4231 : : }
4232 : 0 : break;
4233 : : }
4234 : 0 : case VEC_COND_EXPR:
4235 : 0 : {
4236 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
4237 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
4238 : 0 : tree _q22 = TREE_OPERAND (_p0, 2);
4239 : 0 : {
4240 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22 };
4241 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1189;
4242 : 0 : {
4243 : 0 : tree res_op0;
4244 : 0 : res_op0 = captures[1];
4245 : 0 : tree res_op1;
4246 : 0 : {
4247 : 0 : tree _o1[1], _r1;
4248 : 0 : _o1[0] = captures[2];
4249 : 0 : _r1 = fold_build1_loc (loc, ABSU_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
4250 : 0 : if (EXPR_P (_r1))
4251 : 0 : goto next_after_fail1189;
4252 : 0 : res_op1 = _r1;
4253 : : }
4254 : 0 : tree res_op2;
4255 : 0 : {
4256 : 0 : tree _o1[1], _r1;
4257 : 0 : _o1[0] = captures[3];
4258 : 0 : _r1 = fold_build1_loc (loc, ABSU_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
4259 : 0 : if (EXPR_P (_r1))
4260 : 0 : goto next_after_fail1189;
4261 : 0 : res_op2 = _r1;
4262 : : }
4263 : 0 : tree _r;
4264 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
4265 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 841, __FILE__, __LINE__, true);
4266 : 0 : return _r;
4267 : : }
4268 : 0 : next_after_fail1189:;
4269 : : }
4270 : 0 : break;
4271 : : }
4272 : 933 : default:;
4273 : : }
4274 : 933 : if (tree_expr_nonnegative_p (_p0))
4275 : : {
4276 : 0 : {
4277 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4278 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1190;
4279 : 0 : {
4280 : 0 : tree res_op0;
4281 : 0 : res_op0 = captures[0];
4282 : 0 : tree _r;
4283 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4284 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 868, __FILE__, __LINE__, true);
4285 : 0 : return _r;
4286 : : }
4287 : 0 : next_after_fail1190:;
4288 : : }
4289 : : }
4290 : : return NULL_TREE;
4291 : : }
4292 : :
4293 : : tree
4294 : 2082381 : generic_simplify_IMAGPART_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0)
4295 : : {
4296 : 2082381 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4297 : 2082381 : switch (TREE_CODE (_p0))
4298 : : {
4299 : 1731 : case COMPLEX_EXPR:
4300 : 1731 : {
4301 : 1731 : tree _q20 = TREE_OPERAND (_p0, 0);
4302 : 1731 : tree _q21 = TREE_OPERAND (_p0, 1);
4303 : 1731 : {
4304 : 1731 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4305 : 1731 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1255;
4306 : 1731 : {
4307 : 1731 : tree _r;
4308 : 1731 : _r = captures[1];
4309 : 1731 : if (TREE_SIDE_EFFECTS (captures[0]))
4310 : 522 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
4311 : 1731 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 891, __FILE__, __LINE__, true);
4312 : 1731 : return _r;
4313 : : }
4314 : 0 : next_after_fail1255:;
4315 : : }
4316 : 0 : break;
4317 : : }
4318 : 48959 : CASE_CONVERT:
4319 : 48959 : {
4320 : 48959 : tree _q20 = TREE_OPERAND (_p0, 0);
4321 : 48959 : switch (TREE_CODE (_q20))
4322 : : {
4323 : 0 : case CONJ_EXPR:
4324 : 0 : {
4325 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
4326 : 0 : {
4327 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
4328 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1256;
4329 : 0 : {
4330 : 0 : tree res_op0;
4331 : 0 : {
4332 : 0 : tree _o1[1], _r1;
4333 : 0 : {
4334 : 0 : tree _o2[1], _r2;
4335 : 0 : _o2[0] = captures[2];
4336 : 0 : _r2 = fold_build1_loc (loc, IMAGPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4337 : 0 : _o1[0] = _r2;
4338 : : }
4339 : 0 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
4340 : 0 : res_op0 = _r1;
4341 : : }
4342 : 0 : tree _r;
4343 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4344 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 892, __FILE__, __LINE__, true);
4345 : 0 : return _r;
4346 : : }
4347 : 0 : next_after_fail1256:;
4348 : : }
4349 : 0 : break;
4350 : : }
4351 : 0 : case PLUS_EXPR:
4352 : 0 : {
4353 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
4354 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
4355 : 0 : {
4356 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31 };
4357 : 0 : const enum tree_code op = PLUS_EXPR;
4358 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1257;
4359 : 0 : {
4360 : 0 : tree res_op0;
4361 : 0 : {
4362 : 0 : tree _o1[2], _r1;
4363 : 0 : {
4364 : 0 : tree _o2[1], _r2;
4365 : 0 : _o2[0] = captures[2];
4366 : 0 : _r2 = fold_build1_loc (loc, IMAGPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4367 : 0 : _o1[0] = _r2;
4368 : : }
4369 : 0 : {
4370 : 0 : tree _o2[1], _r2;
4371 : 0 : _o2[0] = captures[3];
4372 : 0 : _r2 = fold_build1_loc (loc, IMAGPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4373 : 0 : _o1[1] = _r2;
4374 : : }
4375 : 0 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4376 : 0 : res_op0 = _r1;
4377 : : }
4378 : 0 : tree _r;
4379 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4380 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 889, __FILE__, __LINE__, true);
4381 : 0 : return _r;
4382 : : }
4383 : 0 : next_after_fail1257:;
4384 : : }
4385 : 0 : break;
4386 : : }
4387 : 0 : case MINUS_EXPR:
4388 : 0 : {
4389 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
4390 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
4391 : 0 : {
4392 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31 };
4393 : 0 : const enum tree_code op = MINUS_EXPR;
4394 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1258;
4395 : 0 : {
4396 : 0 : tree res_op0;
4397 : 0 : {
4398 : 0 : tree _o1[2], _r1;
4399 : 0 : {
4400 : 0 : tree _o2[1], _r2;
4401 : 0 : _o2[0] = captures[2];
4402 : 0 : _r2 = fold_build1_loc (loc, IMAGPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4403 : 0 : _o1[0] = _r2;
4404 : : }
4405 : 0 : {
4406 : 0 : tree _o2[1], _r2;
4407 : 0 : _o2[0] = captures[3];
4408 : 0 : _r2 = fold_build1_loc (loc, IMAGPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4409 : 0 : _o1[1] = _r2;
4410 : : }
4411 : 0 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4412 : 0 : res_op0 = _r1;
4413 : : }
4414 : 0 : tree _r;
4415 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4416 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 889, __FILE__, __LINE__, true);
4417 : 0 : return _r;
4418 : : }
4419 : 0 : next_after_fail1258:;
4420 : : }
4421 : 0 : break;
4422 : : }
4423 : 0 : case CALL_EXPR:
4424 : 0 : switch (get_call_combined_fn (_q20))
4425 : : {
4426 : 0 : case CFN_BUILT_IN_CEXPIF:
4427 : 0 : if (call_expr_nargs (_q20) == 1)
4428 : : {
4429 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
4430 : 0 : {
4431 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
4432 : 0 : if (single_use (captures[1]) && single_use (captures[0])
4433 : : )
4434 : : {
4435 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1259;
4436 : 0 : {
4437 : 0 : tree res_op0;
4438 : 0 : {
4439 : 0 : tree _o1[1], _r1;
4440 : 0 : _o1[0] = captures[2];
4441 : 0 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_SINF, TREE_TYPE (_o1[0]), 1, _o1[0]);
4442 : 0 : if (!_r1)
4443 : 0 : goto next_after_fail1259;
4444 : 0 : res_op0 = _r1;
4445 : : }
4446 : 0 : tree _r;
4447 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4448 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 893, __FILE__, __LINE__, true);
4449 : 0 : return _r;
4450 : : }
4451 : 0 : next_after_fail1259:;
4452 : : }
4453 : : }
4454 : : }
4455 : : break;
4456 : 0 : case CFN_BUILT_IN_CEXPIL:
4457 : 0 : if (call_expr_nargs (_q20) == 1)
4458 : : {
4459 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
4460 : 0 : {
4461 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
4462 : 0 : if (single_use (captures[1]) && single_use (captures[0])
4463 : : )
4464 : : {
4465 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1260;
4466 : 0 : {
4467 : 0 : tree res_op0;
4468 : 0 : {
4469 : 0 : tree _o1[1], _r1;
4470 : 0 : _o1[0] = captures[2];
4471 : 0 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_SINL, TREE_TYPE (_o1[0]), 1, _o1[0]);
4472 : 0 : if (!_r1)
4473 : 0 : goto next_after_fail1260;
4474 : 0 : res_op0 = _r1;
4475 : : }
4476 : 0 : tree _r;
4477 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4478 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 893, __FILE__, __LINE__, true);
4479 : 0 : return _r;
4480 : : }
4481 : 0 : next_after_fail1260:;
4482 : : }
4483 : : }
4484 : : }
4485 : : break;
4486 : 0 : case CFN_BUILT_IN_CEXPI:
4487 : 0 : if (call_expr_nargs (_q20) == 1)
4488 : : {
4489 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
4490 : 0 : {
4491 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
4492 : 0 : if (single_use (captures[1]) && single_use (captures[0])
4493 : : )
4494 : : {
4495 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1261;
4496 : 0 : {
4497 : 0 : tree res_op0;
4498 : 0 : {
4499 : 0 : tree _o1[1], _r1;
4500 : 0 : _o1[0] = captures[2];
4501 : 0 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_SIN, TREE_TYPE (_o1[0]), 1, _o1[0]);
4502 : 0 : if (!_r1)
4503 : 0 : goto next_after_fail1261;
4504 : 0 : res_op0 = _r1;
4505 : : }
4506 : 0 : tree _r;
4507 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4508 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 893, __FILE__, __LINE__, true);
4509 : 0 : return _r;
4510 : : }
4511 : 0 : next_after_fail1261:;
4512 : : }
4513 : : }
4514 : : }
4515 : : break;
4516 : : default:;
4517 : : }
4518 : : break;
4519 : : default:;
4520 : : }
4521 : : break;
4522 : : }
4523 : 16 : case CONJ_EXPR:
4524 : 16 : {
4525 : 16 : tree _q20 = TREE_OPERAND (_p0, 0);
4526 : 16 : {
4527 : 16 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q20 };
4528 : 16 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1262;
4529 : 16 : {
4530 : 16 : tree res_op0;
4531 : 16 : {
4532 : 16 : tree _o1[1], _r1;
4533 : 16 : {
4534 : 16 : tree _o2[1], _r2;
4535 : 16 : _o2[0] = captures[2];
4536 : 16 : _r2 = fold_build1_loc (loc, IMAGPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4537 : 16 : _o1[0] = _r2;
4538 : : }
4539 : 16 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
4540 : 16 : res_op0 = _r1;
4541 : : }
4542 : 16 : tree _r;
4543 : 16 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4544 : 16 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 892, __FILE__, __LINE__, true);
4545 : 16 : return _r;
4546 : : }
4547 : 0 : next_after_fail1262:;
4548 : : }
4549 : 0 : break;
4550 : : }
4551 : 365 : case PLUS_EXPR:
4552 : 365 : {
4553 : 365 : tree _q20 = TREE_OPERAND (_p0, 0);
4554 : 365 : tree _q21 = TREE_OPERAND (_p0, 1);
4555 : 365 : {
4556 : 365 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21 };
4557 : 365 : const enum tree_code op = PLUS_EXPR;
4558 : 365 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1263;
4559 : 365 : {
4560 : 365 : tree res_op0;
4561 : 365 : {
4562 : 365 : tree _o1[2], _r1;
4563 : 365 : {
4564 : 365 : tree _o2[1], _r2;
4565 : 365 : _o2[0] = captures[2];
4566 : 365 : _r2 = fold_build1_loc (loc, IMAGPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4567 : 365 : _o1[0] = _r2;
4568 : : }
4569 : 365 : {
4570 : 365 : tree _o2[1], _r2;
4571 : 365 : _o2[0] = captures[3];
4572 : 365 : _r2 = fold_build1_loc (loc, IMAGPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4573 : 365 : _o1[1] = _r2;
4574 : : }
4575 : 365 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4576 : 365 : res_op0 = _r1;
4577 : : }
4578 : 365 : tree _r;
4579 : 365 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4580 : 365 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 889, __FILE__, __LINE__, true);
4581 : 365 : return _r;
4582 : : }
4583 : 0 : next_after_fail1263:;
4584 : : }
4585 : 0 : break;
4586 : : }
4587 : 47 : case MINUS_EXPR:
4588 : 47 : {
4589 : 47 : tree _q20 = TREE_OPERAND (_p0, 0);
4590 : 47 : tree _q21 = TREE_OPERAND (_p0, 1);
4591 : 47 : {
4592 : 47 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21 };
4593 : 47 : const enum tree_code op = MINUS_EXPR;
4594 : 47 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1264;
4595 : 47 : {
4596 : 47 : tree res_op0;
4597 : 47 : {
4598 : 47 : tree _o1[2], _r1;
4599 : 47 : {
4600 : 47 : tree _o2[1], _r2;
4601 : 47 : _o2[0] = captures[2];
4602 : 47 : _r2 = fold_build1_loc (loc, IMAGPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4603 : 47 : _o1[0] = _r2;
4604 : : }
4605 : 47 : {
4606 : 47 : tree _o2[1], _r2;
4607 : 47 : _o2[0] = captures[3];
4608 : 47 : _r2 = fold_build1_loc (loc, IMAGPART_EXPR, TREE_TYPE (TREE_TYPE (_o2[0])), _o2[0]);
4609 : 47 : _o1[1] = _r2;
4610 : : }
4611 : 47 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4612 : 47 : res_op0 = _r1;
4613 : : }
4614 : 47 : tree _r;
4615 : 47 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4616 : 47 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 889, __FILE__, __LINE__, true);
4617 : 47 : return _r;
4618 : : }
4619 : 0 : next_after_fail1264:;
4620 : : }
4621 : 0 : break;
4622 : : }
4623 : 54884 : case CALL_EXPR:
4624 : 54884 : switch (get_call_combined_fn (_p0))
4625 : : {
4626 : 20548 : case CFN_MUL_OVERFLOW:
4627 : 20548 : if (call_expr_nargs (_p0) == 2)
4628 : : {
4629 : 20548 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4630 : 20548 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
4631 : 20548 : if (integer_nonzerop (_q21))
4632 : : {
4633 : 2777 : {
4634 : 2777 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
4635 : 2777 : tree res = generic_simplify_516 (loc, type, _p0, captures);
4636 : 2777 : if (res) return res;
4637 : : }
4638 : : }
4639 : 19602 : if (integer_nonzerop (_q20))
4640 : : {
4641 : 3002 : {
4642 : 3002 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
4643 : 3002 : tree res = generic_simplify_516 (loc, type, _p0, captures);
4644 : 3002 : if (res) return res;
4645 : : }
4646 : : }
4647 : : }
4648 : : break;
4649 : 0 : case CFN_BUILT_IN_CEXPIF:
4650 : 0 : if (call_expr_nargs (_p0) == 1)
4651 : : {
4652 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4653 : 0 : {
4654 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q20 };
4655 : 0 : if (single_use (captures[1]) && single_use (captures[0])
4656 : : )
4657 : : {
4658 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1265;
4659 : 0 : {
4660 : 0 : tree res_op0;
4661 : 0 : {
4662 : 0 : tree _o1[1], _r1;
4663 : 0 : _o1[0] = captures[2];
4664 : 0 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_SINF, TREE_TYPE (_o1[0]), 1, _o1[0]);
4665 : 0 : if (!_r1)
4666 : 0 : goto next_after_fail1265;
4667 : 0 : res_op0 = _r1;
4668 : : }
4669 : 0 : tree _r;
4670 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4671 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 893, __FILE__, __LINE__, true);
4672 : 0 : return _r;
4673 : : }
4674 : 0 : next_after_fail1265:;
4675 : : }
4676 : : }
4677 : : }
4678 : : break;
4679 : 0 : case CFN_BUILT_IN_CEXPIL:
4680 : 0 : if (call_expr_nargs (_p0) == 1)
4681 : : {
4682 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4683 : 0 : {
4684 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q20 };
4685 : 0 : if (single_use (captures[1]) && single_use (captures[0])
4686 : : )
4687 : : {
4688 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1266;
4689 : 0 : {
4690 : 0 : tree res_op0;
4691 : 0 : {
4692 : 0 : tree _o1[1], _r1;
4693 : 0 : _o1[0] = captures[2];
4694 : 0 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_SINL, TREE_TYPE (_o1[0]), 1, _o1[0]);
4695 : 0 : if (!_r1)
4696 : 0 : goto next_after_fail1266;
4697 : 0 : res_op0 = _r1;
4698 : : }
4699 : 0 : tree _r;
4700 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4701 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 893, __FILE__, __LINE__, true);
4702 : 0 : return _r;
4703 : : }
4704 : 0 : next_after_fail1266:;
4705 : : }
4706 : : }
4707 : : }
4708 : : break;
4709 : 1 : case CFN_BUILT_IN_CEXPI:
4710 : 1 : if (call_expr_nargs (_p0) == 1)
4711 : : {
4712 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
4713 : 1 : {
4714 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q20 };
4715 : 1 : if (single_use (captures[1]) && single_use (captures[0])
4716 : : )
4717 : : {
4718 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1267;
4719 : 1 : {
4720 : 1 : tree res_op0;
4721 : 1 : {
4722 : 1 : tree _o1[1], _r1;
4723 : 1 : _o1[0] = captures[2];
4724 : 1 : _r1 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_SIN, TREE_TYPE (_o1[0]), 1, _o1[0]);
4725 : 1 : if (!_r1)
4726 : 0 : goto next_after_fail1267;
4727 : 1 : res_op0 = _r1;
4728 : : }
4729 : 1 : tree _r;
4730 : 1 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4731 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 893, __FILE__, __LINE__, true);
4732 : 1 : return _r;
4733 : : }
4734 : 0 : next_after_fail1267:;
4735 : : }
4736 : : }
4737 : : }
4738 : : break;
4739 : : default:;
4740 : : }
4741 : : break;
4742 : : default:;
4743 : : }
4744 : : return NULL_TREE;
4745 : : }
4746 : :
4747 : : tree
4748 : 69058015 : generic_simplify_MULT_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
4749 : : {
4750 : 69058015 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4751 : 69058015 : switch (TREE_CODE (_p1))
4752 : : {
4753 : 343 : case VECTOR_CST:
4754 : 343 : {
4755 : 343 : {
4756 : 343 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
4757 : 343 : if (initializer_each_zero_or_onep (captures[1])
4758 : 5 : && !HONOR_SNANS (type)
4759 : 348 : && !HONOR_SIGNED_ZEROS (type)
4760 : : )
4761 : : {
4762 : 5 : {
4763 : 5 : tree itype = FLOAT_TYPE_P (type) ? unsigned_type_for (type) : type;
4764 : 5 : if (itype
4765 : 5 : && (!VECTOR_MODE_P (TYPE_MODE (type))
4766 : 5 : || (VECTOR_MODE_P (TYPE_MODE (itype))
4767 : 5 : && optab_handler (and_optab,
4768 : 5 : TYPE_MODE (itype)) != CODE_FOR_nothing))
4769 : : )
4770 : : {
4771 : 5 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1498;
4772 : 5 : {
4773 : 5 : tree res_op0;
4774 : 5 : {
4775 : 5 : tree _o1[2], _r1;
4776 : 5 : {
4777 : 5 : tree _o2[1], _r2;
4778 : 5 : _o2[0] = captures[0];
4779 : 5 : if (TREE_TYPE (_o2[0]) != itype)
4780 : : {
4781 : 1 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, itype, _o2[0]);
4782 : : }
4783 : : else
4784 : : _r2 = _o2[0];
4785 : 5 : _o1[0] = _r2;
4786 : : }
4787 : 5 : {
4788 : 5 : tree _o2[2], _r2;
4789 : 5 : _o2[0] = captures[1];
4790 : 5 : _o2[1] = build_zero_cst (type);
4791 : 5 : _r2 = fold_build2_loc (loc, NE_EXPR, itype, _o2[0], _o2[1]);
4792 : 5 : _o1[1] = _r2;
4793 : : }
4794 : 5 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, itype, _o1[0], _o1[1]);
4795 : 5 : res_op0 = _r1;
4796 : : }
4797 : 5 : tree _r;
4798 : 5 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
4799 : 5 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 967, __FILE__, __LINE__, true);
4800 : 5 : return _r;
4801 : : }
4802 : 0 : next_after_fail1498:;
4803 : : }
4804 : : }
4805 : : }
4806 : : }
4807 : 338 : break;
4808 : : }
4809 : 69058010 : default:;
4810 : : }
4811 : 69058010 : if (integer_zerop (_p1))
4812 : : {
4813 : 32478 : {
4814 : 32478 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
4815 : 32478 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1499;
4816 : 32478 : {
4817 : 32478 : tree _r;
4818 : 32478 : _r = captures[1];
4819 : 32478 : if (TREE_SIDE_EFFECTS (captures[0]))
4820 : 2458 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
4821 : 32478 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 968, __FILE__, __LINE__, true);
4822 : 32478 : return _r;
4823 : : }
4824 : 0 : next_after_fail1499:;
4825 : : }
4826 : : }
4827 : 69025532 : if (real_zerop (_p1))
4828 : : {
4829 : 345 : {
4830 : 345 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
4831 : 345 : if (!tree_expr_maybe_nan_p (captures[0])
4832 : 137 : && (!HONOR_NANS (type) || !tree_expr_maybe_infinite_p (captures[0]))
4833 : 355 : && (!HONOR_SIGNED_ZEROS (type) || tree_expr_nonnegative_p (captures[0]))
4834 : : )
4835 : : {
4836 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1500;
4837 : 4 : {
4838 : 4 : tree _r;
4839 : 4 : _r = captures[1];
4840 : 4 : if (TREE_SIDE_EFFECTS (captures[0]))
4841 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
4842 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 969, __FILE__, __LINE__, true);
4843 : 4 : return _r;
4844 : : }
4845 : 0 : next_after_fail1500:;
4846 : : }
4847 : : }
4848 : : }
4849 : 69025528 : if (real_onep (_p1))
4850 : : {
4851 : 1233 : {
4852 : 1233 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4853 : 1233 : if (!tree_expr_maybe_signaling_nan_p (captures[0])
4854 : 1233 : && (!HONOR_SIGNED_ZEROS (type)
4855 : 1113 : || !COMPLEX_FLOAT_TYPE_P (type))
4856 : : )
4857 : : {
4858 : 750 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1501;
4859 : 750 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1501;
4860 : 750 : {
4861 : 750 : tree res_op0;
4862 : 750 : res_op0 = captures[0];
4863 : 750 : tree _r;
4864 : 750 : _r = non_lvalue_loc (loc, res_op0);
4865 : 750 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 970, __FILE__, __LINE__, true);
4866 : 750 : return _r;
4867 : : }
4868 : : next_after_fail1501:;
4869 : : }
4870 : : }
4871 : : }
4872 : 69024778 : if (real_minus_onep (_p1))
4873 : : {
4874 : 45177 : {
4875 : 45177 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4876 : 45177 : if (!tree_expr_maybe_signaling_nan_p (captures[0])
4877 : 45177 : && (!HONOR_SIGNED_ZEROS (type)
4878 : 42312 : || !COMPLEX_FLOAT_TYPE_P (type))
4879 : : )
4880 : : {
4881 : 44793 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1502;
4882 : 44793 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1502;
4883 : 44793 : {
4884 : 44793 : tree res_op0;
4885 : 44793 : res_op0 = captures[0];
4886 : 44793 : tree _r;
4887 : 44793 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
4888 : 44793 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 971, __FILE__, __LINE__, true);
4889 : 44793 : return _r;
4890 : : }
4891 : : next_after_fail1502:;
4892 : : }
4893 : : }
4894 : : }
4895 : 68979985 : switch (TREE_CODE (_p0))
4896 : : {
4897 : 33424 : case BIT_AND_EXPR:
4898 : 33424 : {
4899 : 33424 : tree _q20 = TREE_OPERAND (_p0, 0);
4900 : 33424 : tree _q21 = TREE_OPERAND (_p0, 1);
4901 : 33424 : switch (TREE_CODE (_q20))
4902 : : {
4903 : 272 : case RSHIFT_EXPR:
4904 : 272 : {
4905 : 272 : tree _q30 = TREE_OPERAND (_q20, 0);
4906 : 272 : tree _q31 = TREE_OPERAND (_q20, 1);
4907 : 272 : if (uniform_integer_cst_p (_q31))
4908 : : {
4909 : 11 : if (uniform_integer_cst_p (_q21))
4910 : : {
4911 : 11 : if (uniform_integer_cst_p (_p1))
4912 : : {
4913 : 11 : {
4914 : 11 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q21, _p1 };
4915 : 11 : {
4916 : 11 : tree rshift_cst = uniform_integer_cst_p (captures[1]);
4917 : 11 : tree bit_and_cst = uniform_integer_cst_p (captures[2]);
4918 : 11 : tree mult_cst = uniform_integer_cst_p (captures[3]);
4919 : 11 : if (VECTOR_TYPE_P (type)
4920 : 0 : && tree_fits_uhwi_p (rshift_cst)
4921 : 0 : && tree_fits_uhwi_p (mult_cst)
4922 : 0 : && tree_fits_uhwi_p (bit_and_cst)
4923 : : )
4924 : : {
4925 : 0 : {
4926 : 0 : HOST_WIDE_INT vec_elem_bits = vector_element_bits (type);
4927 : 0 : poly_int64 vec_nelts = TYPE_VECTOR_SUBPARTS (type);
4928 : 0 : poly_int64 vec_bits = vec_elem_bits * vec_nelts;
4929 : 0 : unsigned HOST_WIDE_INT cmp_bits_i, bit_and_i, mult_i;
4930 : 0 : unsigned HOST_WIDE_INT target_mult_i, target_bit_and_i;
4931 : 0 : cmp_bits_i = tree_to_uhwi (rshift_cst) + 1;
4932 : 0 : mult_i = tree_to_uhwi (mult_cst);
4933 : 0 : target_mult_i = (HOST_WIDE_INT_1U << cmp_bits_i) - 1;
4934 : 0 : bit_and_i = tree_to_uhwi (bit_and_cst);
4935 : 0 : target_bit_and_i = 0;
4936 : 0 : for (unsigned i = 0; i < vec_elem_bits / cmp_bits_i; i++)
4937 : 0 : target_bit_and_i = (target_bit_and_i << cmp_bits_i) | 1U;
4938 : 0 : if ((exact_log2 (cmp_bits_i)) >= 0
4939 : 0 : && cmp_bits_i < HOST_BITS_PER_WIDE_INT
4940 : 0 : && multiple_p (vec_bits, cmp_bits_i)
4941 : 0 : && vec_elem_bits <= HOST_BITS_PER_WIDE_INT
4942 : 0 : && target_mult_i == mult_i
4943 : 0 : && target_bit_and_i == bit_and_i
4944 : : )
4945 : : {
4946 : 0 : {
4947 : 0 : tree cmp_type = build_nonstandard_integer_type (cmp_bits_i, 0);
4948 : 0 : poly_int64 vector_type_nelts = exact_div (vec_bits, cmp_bits_i);
4949 : 0 : tree vec_cmp_type = build_vector_type (cmp_type, vector_type_nelts);
4950 : 0 : tree vec_truth_type = truth_type_for (vec_cmp_type);
4951 : 0 : tree zeros = build_zero_cst (vec_cmp_type);
4952 : 0 : tree ones = build_all_ones_cst (vec_cmp_type);
4953 : 0 : if (expand_vec_cmp_expr_p (vec_cmp_type, vec_truth_type, LT_EXPR)
4954 : 0 : && expand_vec_cond_expr_p (vec_cmp_type, vec_truth_type)
4955 : : )
4956 : : {
4957 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1503;
4958 : 0 : {
4959 : 0 : tree res_op0;
4960 : 0 : {
4961 : 0 : tree _o1[3], _r1;
4962 : 0 : {
4963 : 0 : tree _o2[2], _r2;
4964 : 0 : {
4965 : 0 : tree _o3[1], _r3;
4966 : 0 : _o3[0] = captures[0];
4967 : 0 : if (TREE_TYPE (_o3[0]) != vec_cmp_type)
4968 : : {
4969 : 0 : _r3 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, vec_cmp_type, _o3[0]);
4970 : : }
4971 : : else
4972 : : _r3 = _o3[0];
4973 : 0 : _o2[0] = _r3;
4974 : : }
4975 : 0 : _o2[1] = zeros;
4976 : 0 : _r2 = fold_build2_loc (loc, LT_EXPR, vec_truth_type, _o2[0], _o2[1]);
4977 : 0 : _o1[0] = _r2;
4978 : : }
4979 : 0 : _o1[1] = ones;
4980 : 0 : _o1[2] = zeros;
4981 : 0 : _r1 = fold_build3_loc (loc, VEC_COND_EXPR, TREE_TYPE (_o1[1]), _o1[0], _o1[1], _o1[2]);
4982 : 0 : res_op0 = _r1;
4983 : : }
4984 : 0 : tree _r;
4985 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
4986 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
4987 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
4988 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
4989 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
4990 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
4991 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
4992 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 972, __FILE__, __LINE__, true);
4993 : 0 : return _r;
4994 : : }
4995 : 0 : next_after_fail1503:;
4996 : : }
4997 : : }
4998 : : }
4999 : : }
5000 : : }
5001 : : }
5002 : : }
5003 : : }
5004 : : }
5005 : : }
5006 : : break;
5007 : : }
5008 : : default:;
5009 : : }
5010 : : break;
5011 : : }
5012 : 68979985 : default:;
5013 : : }
5014 : 68979985 : switch (TREE_CODE (_p1))
5015 : : {
5016 : 2656 : case COND_EXPR:
5017 : 2656 : {
5018 : 2656 : tree _q30 = TREE_OPERAND (_p1, 0);
5019 : 2656 : tree _q31 = TREE_OPERAND (_p1, 1);
5020 : 2656 : tree _q32 = TREE_OPERAND (_p1, 2);
5021 : 2656 : switch (TREE_CODE (_q30))
5022 : : {
5023 : 540 : case GT_EXPR:
5024 : 540 : {
5025 : 540 : tree _q40 = TREE_OPERAND (_q30, 0);
5026 : 540 : tree _q41 = TREE_OPERAND (_q30, 1);
5027 : 540 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
5028 : : {
5029 : 0 : if (real_zerop (_q41))
5030 : : {
5031 : 0 : if (real_onep (_q31))
5032 : : {
5033 : 0 : if (real_minus_onep (_q32))
5034 : : {
5035 : 0 : {
5036 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
5037 : 0 : if (!tree_expr_maybe_nan_p (captures[0]) && !HONOR_SIGNED_ZEROS (type)
5038 : : )
5039 : : {
5040 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1504;
5041 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1504;
5042 : 0 : {
5043 : 0 : tree res_op0;
5044 : 0 : {
5045 : 0 : tree _o1[1], _r1;
5046 : 0 : _o1[0] = captures[0];
5047 : 0 : _r1 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
5048 : 0 : res_op0 = _r1;
5049 : : }
5050 : 0 : tree _r;
5051 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
5052 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 973, __FILE__, __LINE__, true);
5053 : 0 : return _r;
5054 : : }
5055 : 0 : next_after_fail1504:;
5056 : : }
5057 : : }
5058 : : }
5059 : : }
5060 : : }
5061 : : }
5062 : : break;
5063 : : }
5064 : 0 : case GE_EXPR:
5065 : 0 : {
5066 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
5067 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
5068 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
5069 : : {
5070 : 0 : if (real_zerop (_q41))
5071 : : {
5072 : 0 : if (real_onep (_q31))
5073 : : {
5074 : 0 : if (real_minus_onep (_q32))
5075 : : {
5076 : 0 : {
5077 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
5078 : 0 : if (!tree_expr_maybe_nan_p (captures[0]) && !HONOR_SIGNED_ZEROS (type)
5079 : : )
5080 : : {
5081 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1505;
5082 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1505;
5083 : 0 : {
5084 : 0 : tree res_op0;
5085 : 0 : {
5086 : 0 : tree _o1[1], _r1;
5087 : 0 : _o1[0] = captures[0];
5088 : 0 : _r1 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
5089 : 0 : res_op0 = _r1;
5090 : : }
5091 : 0 : tree _r;
5092 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
5093 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 973, __FILE__, __LINE__, true);
5094 : 0 : return _r;
5095 : : }
5096 : 0 : next_after_fail1505:;
5097 : : }
5098 : : }
5099 : : }
5100 : : }
5101 : : }
5102 : : }
5103 : : break;
5104 : : }
5105 : 48 : case LT_EXPR:
5106 : 48 : {
5107 : 48 : tree _q40 = TREE_OPERAND (_q30, 0);
5108 : 48 : tree _q41 = TREE_OPERAND (_q30, 1);
5109 : 48 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
5110 : : {
5111 : 0 : if (real_zerop (_q41))
5112 : : {
5113 : 0 : if (real_onep (_q31))
5114 : : {
5115 : 0 : if (real_minus_onep (_q32))
5116 : : {
5117 : 0 : {
5118 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
5119 : 0 : if (!tree_expr_maybe_nan_p (captures[0]) && !HONOR_SIGNED_ZEROS (type)
5120 : : )
5121 : : {
5122 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1506;
5123 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1506;
5124 : 0 : {
5125 : 0 : tree res_op0;
5126 : 0 : {
5127 : 0 : tree _o1[1], _r1;
5128 : 0 : _o1[0] = captures[0];
5129 : 0 : _r1 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
5130 : 0 : res_op0 = _r1;
5131 : : }
5132 : 0 : tree _r;
5133 : 0 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
5134 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 973, __FILE__, __LINE__, true);
5135 : 0 : return _r;
5136 : : }
5137 : 0 : next_after_fail1506:;
5138 : : }
5139 : : }
5140 : : }
5141 : : }
5142 : : }
5143 : : }
5144 : : break;
5145 : : }
5146 : 6 : case LE_EXPR:
5147 : 6 : {
5148 : 6 : tree _q40 = TREE_OPERAND (_q30, 0);
5149 : 6 : tree _q41 = TREE_OPERAND (_q30, 1);
5150 : 6 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
5151 : : {
5152 : 0 : if (real_zerop (_q41))
5153 : : {
5154 : 0 : if (real_onep (_q31))
5155 : : {
5156 : 0 : if (real_minus_onep (_q32))
5157 : : {
5158 : 0 : {
5159 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
5160 : 0 : if (!tree_expr_maybe_nan_p (captures[0]) && !HONOR_SIGNED_ZEROS (type)
5161 : : )
5162 : : {
5163 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1507;
5164 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1507;
5165 : 0 : {
5166 : 0 : tree res_op0;
5167 : 0 : {
5168 : 0 : tree _o1[1], _r1;
5169 : 0 : _o1[0] = captures[0];
5170 : 0 : _r1 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
5171 : 0 : res_op0 = _r1;
5172 : : }
5173 : 0 : tree _r;
5174 : 0 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
5175 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 973, __FILE__, __LINE__, true);
5176 : 0 : return _r;
5177 : : }
5178 : 0 : next_after_fail1507:;
5179 : : }
5180 : : }
5181 : : }
5182 : : }
5183 : : }
5184 : : }
5185 : : break;
5186 : : }
5187 : : default:;
5188 : : }
5189 : : break;
5190 : : }
5191 : 68979985 : default:;
5192 : : }
5193 : 68979985 : switch (TREE_CODE (_p0))
5194 : : {
5195 : 84834 : case COND_EXPR:
5196 : 84834 : {
5197 : 84834 : tree _q20 = TREE_OPERAND (_p0, 0);
5198 : 84834 : tree _q21 = TREE_OPERAND (_p0, 1);
5199 : 84834 : tree _q22 = TREE_OPERAND (_p0, 2);
5200 : 84834 : switch (TREE_CODE (_q20))
5201 : : {
5202 : 19960 : case GT_EXPR:
5203 : 19960 : {
5204 : 19960 : tree _q30 = TREE_OPERAND (_q20, 0);
5205 : 19960 : tree _q31 = TREE_OPERAND (_q20, 1);
5206 : 19960 : if (real_zerop (_q31))
5207 : : {
5208 : 10 : if (real_onep (_q21))
5209 : : {
5210 : 9 : if (real_minus_onep (_q22))
5211 : : {
5212 : 1 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
5213 : : {
5214 : 1 : {
5215 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q21 };
5216 : 1 : if (!tree_expr_maybe_nan_p (captures[0]) && !HONOR_SIGNED_ZEROS (type)
5217 : : )
5218 : : {
5219 : 1 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1508;
5220 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1508;
5221 : 1 : {
5222 : 1 : tree res_op0;
5223 : 1 : {
5224 : 1 : tree _o1[1], _r1;
5225 : 1 : _o1[0] = captures[0];
5226 : 1 : _r1 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
5227 : 1 : res_op0 = _r1;
5228 : : }
5229 : 1 : tree _r;
5230 : 1 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
5231 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 973, __FILE__, __LINE__, true);
5232 : 1 : return _r;
5233 : : }
5234 : 0 : next_after_fail1508:;
5235 : : }
5236 : : }
5237 : : }
5238 : : }
5239 : : }
5240 : 9 : if (real_minus_onep (_q21))
5241 : : {
5242 : 1 : if (real_onep (_q22))
5243 : : {
5244 : 1 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
5245 : : {
5246 : 1 : {
5247 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q22 };
5248 : 1 : if (!tree_expr_maybe_nan_p (captures[0]) && !HONOR_SIGNED_ZEROS (type)
5249 : : )
5250 : : {
5251 : 1 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1509;
5252 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1509;
5253 : 1 : {
5254 : 1 : tree res_op0;
5255 : 1 : {
5256 : 1 : tree _o1[1], _r1;
5257 : 1 : _o1[0] = captures[0];
5258 : 1 : _r1 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
5259 : 1 : res_op0 = _r1;
5260 : : }
5261 : 1 : tree _r;
5262 : 1 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
5263 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 974, __FILE__, __LINE__, true);
5264 : 1 : return _r;
5265 : : }
5266 : 0 : next_after_fail1509:;
5267 : : }
5268 : : }
5269 : : }
5270 : : }
5271 : : }
5272 : : }
5273 : : break;
5274 : : }
5275 : 7697 : case GE_EXPR:
5276 : 7697 : {
5277 : 7697 : tree _q30 = TREE_OPERAND (_q20, 0);
5278 : 7697 : tree _q31 = TREE_OPERAND (_q20, 1);
5279 : 7697 : if (real_zerop (_q31))
5280 : : {
5281 : 2 : if (real_onep (_q21))
5282 : : {
5283 : 1 : if (real_minus_onep (_q22))
5284 : : {
5285 : 1 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
5286 : : {
5287 : 1 : {
5288 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q21 };
5289 : 1 : if (!tree_expr_maybe_nan_p (captures[0]) && !HONOR_SIGNED_ZEROS (type)
5290 : : )
5291 : : {
5292 : 1 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1510;
5293 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1510;
5294 : 1 : {
5295 : 1 : tree res_op0;
5296 : 1 : {
5297 : 1 : tree _o1[1], _r1;
5298 : 1 : _o1[0] = captures[0];
5299 : 1 : _r1 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
5300 : 1 : res_op0 = _r1;
5301 : : }
5302 : 1 : tree _r;
5303 : 1 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
5304 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 973, __FILE__, __LINE__, true);
5305 : 1 : return _r;
5306 : : }
5307 : 0 : next_after_fail1510:;
5308 : : }
5309 : : }
5310 : : }
5311 : : }
5312 : : }
5313 : 1 : if (real_minus_onep (_q21))
5314 : : {
5315 : 1 : if (real_onep (_q22))
5316 : : {
5317 : 1 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
5318 : : {
5319 : 1 : {
5320 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q22 };
5321 : 1 : if (!tree_expr_maybe_nan_p (captures[0]) && !HONOR_SIGNED_ZEROS (type)
5322 : : )
5323 : : {
5324 : 1 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1511;
5325 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1511;
5326 : 1 : {
5327 : 1 : tree res_op0;
5328 : 1 : {
5329 : 1 : tree _o1[1], _r1;
5330 : 1 : _o1[0] = captures[0];
5331 : 1 : _r1 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
5332 : 1 : res_op0 = _r1;
5333 : : }
5334 : 1 : tree _r;
5335 : 1 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
5336 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 974, __FILE__, __LINE__, true);
5337 : 1 : return _r;
5338 : : }
5339 : 0 : next_after_fail1511:;
5340 : : }
5341 : : }
5342 : : }
5343 : : }
5344 : : }
5345 : : }
5346 : : break;
5347 : : }
5348 : 7427 : case LT_EXPR:
5349 : 7427 : {
5350 : 7427 : tree _q30 = TREE_OPERAND (_q20, 0);
5351 : 7427 : tree _q31 = TREE_OPERAND (_q20, 1);
5352 : 7427 : if (real_zerop (_q31))
5353 : : {
5354 : 2 : if (real_onep (_q21))
5355 : : {
5356 : 1 : if (real_minus_onep (_q22))
5357 : : {
5358 : 1 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
5359 : : {
5360 : 1 : {
5361 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q21 };
5362 : 1 : if (!tree_expr_maybe_nan_p (captures[0]) && !HONOR_SIGNED_ZEROS (type)
5363 : : )
5364 : : {
5365 : 1 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1512;
5366 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1512;
5367 : 1 : {
5368 : 1 : tree res_op0;
5369 : 1 : {
5370 : 1 : tree _o1[1], _r1;
5371 : 1 : _o1[0] = captures[0];
5372 : 1 : _r1 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
5373 : 1 : res_op0 = _r1;
5374 : : }
5375 : 1 : tree _r;
5376 : 1 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
5377 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 973, __FILE__, __LINE__, true);
5378 : 1 : return _r;
5379 : : }
5380 : 0 : next_after_fail1512:;
5381 : : }
5382 : : }
5383 : : }
5384 : : }
5385 : : }
5386 : 1 : if (real_minus_onep (_q21))
5387 : : {
5388 : 1 : if (real_onep (_q22))
5389 : : {
5390 : 1 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
5391 : : {
5392 : 1 : {
5393 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q22 };
5394 : 1 : if (!tree_expr_maybe_nan_p (captures[0]) && !HONOR_SIGNED_ZEROS (type)
5395 : : )
5396 : : {
5397 : 1 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1513;
5398 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1513;
5399 : 1 : {
5400 : 1 : tree res_op0;
5401 : 1 : {
5402 : 1 : tree _o1[1], _r1;
5403 : 1 : _o1[0] = captures[0];
5404 : 1 : _r1 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
5405 : 1 : res_op0 = _r1;
5406 : : }
5407 : 1 : tree _r;
5408 : 1 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
5409 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 974, __FILE__, __LINE__, true);
5410 : 1 : return _r;
5411 : : }
5412 : 0 : next_after_fail1513:;
5413 : : }
5414 : : }
5415 : : }
5416 : : }
5417 : : }
5418 : : }
5419 : : break;
5420 : : }
5421 : 2943 : case LE_EXPR:
5422 : 2943 : {
5423 : 2943 : tree _q30 = TREE_OPERAND (_q20, 0);
5424 : 2943 : tree _q31 = TREE_OPERAND (_q20, 1);
5425 : 2943 : if (real_zerop (_q31))
5426 : : {
5427 : 2 : if (real_onep (_q21))
5428 : : {
5429 : 1 : if (real_minus_onep (_q22))
5430 : : {
5431 : 1 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
5432 : : {
5433 : 1 : {
5434 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q21 };
5435 : 1 : if (!tree_expr_maybe_nan_p (captures[0]) && !HONOR_SIGNED_ZEROS (type)
5436 : : )
5437 : : {
5438 : 1 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1514;
5439 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1514;
5440 : 1 : {
5441 : 1 : tree res_op0;
5442 : 1 : {
5443 : 1 : tree _o1[1], _r1;
5444 : 1 : _o1[0] = captures[0];
5445 : 1 : _r1 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
5446 : 1 : res_op0 = _r1;
5447 : : }
5448 : 1 : tree _r;
5449 : 1 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
5450 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 973, __FILE__, __LINE__, true);
5451 : 1 : return _r;
5452 : : }
5453 : 0 : next_after_fail1514:;
5454 : : }
5455 : : }
5456 : : }
5457 : : }
5458 : : }
5459 : 1 : if (real_minus_onep (_q21))
5460 : : {
5461 : 1 : if (real_onep (_q22))
5462 : : {
5463 : 1 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
5464 : : {
5465 : 1 : {
5466 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q22 };
5467 : 1 : if (!tree_expr_maybe_nan_p (captures[0]) && !HONOR_SIGNED_ZEROS (type)
5468 : : )
5469 : : {
5470 : 1 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1515;
5471 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1515;
5472 : 1 : {
5473 : 1 : tree res_op0;
5474 : 1 : {
5475 : 1 : tree _o1[1], _r1;
5476 : 1 : _o1[0] = captures[0];
5477 : 1 : _r1 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
5478 : 1 : res_op0 = _r1;
5479 : : }
5480 : 1 : tree _r;
5481 : 1 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
5482 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 974, __FILE__, __LINE__, true);
5483 : 1 : return _r;
5484 : : }
5485 : 0 : next_after_fail1515:;
5486 : : }
5487 : : }
5488 : : }
5489 : : }
5490 : : }
5491 : : }
5492 : : break;
5493 : : }
5494 : : default:;
5495 : : }
5496 : : break;
5497 : : }
5498 : 68979977 : default:;
5499 : : }
5500 : 68979977 : switch (TREE_CODE (_p1))
5501 : : {
5502 : 2656 : case COND_EXPR:
5503 : 2656 : {
5504 : 2656 : tree _q30 = TREE_OPERAND (_p1, 0);
5505 : 2656 : tree _q31 = TREE_OPERAND (_p1, 1);
5506 : 2656 : tree _q32 = TREE_OPERAND (_p1, 2);
5507 : 2656 : switch (TREE_CODE (_q30))
5508 : : {
5509 : 540 : case GT_EXPR:
5510 : 540 : {
5511 : 540 : tree _q40 = TREE_OPERAND (_q30, 0);
5512 : 540 : tree _q41 = TREE_OPERAND (_q30, 1);
5513 : 540 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
5514 : : {
5515 : 0 : if (real_zerop (_q41))
5516 : : {
5517 : 0 : if (real_minus_onep (_q31))
5518 : : {
5519 : 0 : if (real_onep (_q32))
5520 : : {
5521 : 0 : {
5522 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q32 };
5523 : 0 : if (!tree_expr_maybe_nan_p (captures[0]) && !HONOR_SIGNED_ZEROS (type)
5524 : : )
5525 : : {
5526 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1516;
5527 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1516;
5528 : 0 : {
5529 : 0 : tree res_op0;
5530 : 0 : {
5531 : 0 : tree _o1[1], _r1;
5532 : 0 : _o1[0] = captures[0];
5533 : 0 : _r1 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
5534 : 0 : res_op0 = _r1;
5535 : : }
5536 : 0 : tree _r;
5537 : 0 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
5538 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 974, __FILE__, __LINE__, true);
5539 : 0 : return _r;
5540 : : }
5541 : 0 : next_after_fail1516:;
5542 : : }
5543 : : }
5544 : : }
5545 : : }
5546 : : }
5547 : : }
5548 : : break;
5549 : : }
5550 : 0 : case GE_EXPR:
5551 : 0 : {
5552 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
5553 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
5554 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
5555 : : {
5556 : 0 : if (real_zerop (_q41))
5557 : : {
5558 : 0 : if (real_minus_onep (_q31))
5559 : : {
5560 : 0 : if (real_onep (_q32))
5561 : : {
5562 : 0 : {
5563 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q32 };
5564 : 0 : if (!tree_expr_maybe_nan_p (captures[0]) && !HONOR_SIGNED_ZEROS (type)
5565 : : )
5566 : : {
5567 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1517;
5568 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1517;
5569 : 0 : {
5570 : 0 : tree res_op0;
5571 : 0 : {
5572 : 0 : tree _o1[1], _r1;
5573 : 0 : _o1[0] = captures[0];
5574 : 0 : _r1 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
5575 : 0 : res_op0 = _r1;
5576 : : }
5577 : 0 : tree _r;
5578 : 0 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
5579 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 974, __FILE__, __LINE__, true);
5580 : 0 : return _r;
5581 : : }
5582 : 0 : next_after_fail1517:;
5583 : : }
5584 : : }
5585 : : }
5586 : : }
5587 : : }
5588 : : }
5589 : : break;
5590 : : }
5591 : 48 : case LT_EXPR:
5592 : 48 : {
5593 : 48 : tree _q40 = TREE_OPERAND (_q30, 0);
5594 : 48 : tree _q41 = TREE_OPERAND (_q30, 1);
5595 : 48 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
5596 : : {
5597 : 0 : if (real_zerop (_q41))
5598 : : {
5599 : 0 : if (real_minus_onep (_q31))
5600 : : {
5601 : 0 : if (real_onep (_q32))
5602 : : {
5603 : 0 : {
5604 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q32 };
5605 : 0 : if (!tree_expr_maybe_nan_p (captures[0]) && !HONOR_SIGNED_ZEROS (type)
5606 : : )
5607 : : {
5608 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1518;
5609 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1518;
5610 : 0 : {
5611 : 0 : tree res_op0;
5612 : 0 : {
5613 : 0 : tree _o1[1], _r1;
5614 : 0 : _o1[0] = captures[0];
5615 : 0 : _r1 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
5616 : 0 : res_op0 = _r1;
5617 : : }
5618 : 0 : tree _r;
5619 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
5620 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 974, __FILE__, __LINE__, true);
5621 : 0 : return _r;
5622 : : }
5623 : 0 : next_after_fail1518:;
5624 : : }
5625 : : }
5626 : : }
5627 : : }
5628 : : }
5629 : : }
5630 : : break;
5631 : : }
5632 : 6 : case LE_EXPR:
5633 : 6 : {
5634 : 6 : tree _q40 = TREE_OPERAND (_q30, 0);
5635 : 6 : tree _q41 = TREE_OPERAND (_q30, 1);
5636 : 6 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
5637 : : {
5638 : 0 : if (real_zerop (_q41))
5639 : : {
5640 : 0 : if (real_minus_onep (_q31))
5641 : : {
5642 : 0 : if (real_onep (_q32))
5643 : : {
5644 : 0 : {
5645 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q32 };
5646 : 0 : if (!tree_expr_maybe_nan_p (captures[0]) && !HONOR_SIGNED_ZEROS (type)
5647 : : )
5648 : : {
5649 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1519;
5650 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1519;
5651 : 0 : {
5652 : 0 : tree res_op0;
5653 : 0 : {
5654 : 0 : tree _o1[1], _r1;
5655 : 0 : _o1[0] = captures[0];
5656 : 0 : _r1 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
5657 : 0 : res_op0 = _r1;
5658 : : }
5659 : 0 : tree _r;
5660 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
5661 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 974, __FILE__, __LINE__, true);
5662 : 0 : return _r;
5663 : : }
5664 : 0 : next_after_fail1519:;
5665 : : }
5666 : : }
5667 : : }
5668 : : }
5669 : : }
5670 : : }
5671 : : break;
5672 : : }
5673 : : default:;
5674 : : }
5675 : : break;
5676 : : }
5677 : 932494 : case CALL_EXPR:
5678 : 932494 : switch (get_call_combined_fn (_p1))
5679 : : {
5680 : 20 : case CFN_BUILT_IN_COPYSIGNF16:
5681 : 20 : if (call_expr_nargs (_p1) == 2)
5682 : : {
5683 : 20 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
5684 : 20 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
5685 : 20 : if (real_onep (_q30))
5686 : : {
5687 : 20 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
5688 : : {
5689 : 0 : {
5690 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5691 : 0 : tree res = generic_simplify_173 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF16);
5692 : 0 : if (res) return res;
5693 : : }
5694 : : }
5695 : : }
5696 : : }
5697 : : break;
5698 : 0 : case CFN_BUILT_IN_COPYSIGNF32:
5699 : 0 : if (call_expr_nargs (_p1) == 2)
5700 : : {
5701 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
5702 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
5703 : 0 : if (real_onep (_q30))
5704 : : {
5705 : 0 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
5706 : : {
5707 : 0 : {
5708 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5709 : 0 : tree res = generic_simplify_173 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF32);
5710 : 0 : if (res) return res;
5711 : : }
5712 : : }
5713 : : }
5714 : : }
5715 : : break;
5716 : 0 : case CFN_BUILT_IN_COPYSIGNF64:
5717 : 0 : if (call_expr_nargs (_p1) == 2)
5718 : : {
5719 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
5720 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
5721 : 0 : if (real_onep (_q30))
5722 : : {
5723 : 0 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
5724 : : {
5725 : 0 : {
5726 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5727 : 0 : tree res = generic_simplify_173 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF64);
5728 : 0 : if (res) return res;
5729 : : }
5730 : : }
5731 : : }
5732 : : }
5733 : : break;
5734 : 0 : case CFN_BUILT_IN_COPYSIGNF128X:
5735 : 0 : if (call_expr_nargs (_p1) == 2)
5736 : : {
5737 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
5738 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
5739 : 0 : if (real_onep (_q30))
5740 : : {
5741 : 0 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
5742 : : {
5743 : 0 : {
5744 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5745 : 0 : tree res = generic_simplify_173 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF128X);
5746 : 0 : if (res) return res;
5747 : : }
5748 : : }
5749 : : }
5750 : : }
5751 : : break;
5752 : 0 : case CFN_BUILT_IN_COPYSIGNF128:
5753 : 0 : if (call_expr_nargs (_p1) == 2)
5754 : : {
5755 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
5756 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
5757 : 0 : if (real_onep (_q30))
5758 : : {
5759 : 0 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
5760 : : {
5761 : 0 : {
5762 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5763 : 0 : tree res = generic_simplify_173 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF128);
5764 : 0 : if (res) return res;
5765 : : }
5766 : : }
5767 : : }
5768 : : }
5769 : : break;
5770 : 0 : case CFN_BUILT_IN_COPYSIGNF32X:
5771 : 0 : if (call_expr_nargs (_p1) == 2)
5772 : : {
5773 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
5774 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
5775 : 0 : if (real_onep (_q30))
5776 : : {
5777 : 0 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
5778 : : {
5779 : 0 : {
5780 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5781 : 0 : tree res = generic_simplify_173 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF32X);
5782 : 0 : if (res) return res;
5783 : : }
5784 : : }
5785 : : }
5786 : : }
5787 : : break;
5788 : 0 : case CFN_BUILT_IN_COPYSIGNF64X:
5789 : 0 : if (call_expr_nargs (_p1) == 2)
5790 : : {
5791 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
5792 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
5793 : 0 : if (real_onep (_q30))
5794 : : {
5795 : 0 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
5796 : : {
5797 : 0 : {
5798 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5799 : 0 : tree res = generic_simplify_173 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF64X);
5800 : 0 : if (res) return res;
5801 : : }
5802 : : }
5803 : : }
5804 : : }
5805 : : break;
5806 : 18 : case CFN_BUILT_IN_COPYSIGN:
5807 : 18 : if (call_expr_nargs (_p1) == 2)
5808 : : {
5809 : 18 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
5810 : 18 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
5811 : 18 : if (real_onep (_q30))
5812 : : {
5813 : 14 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
5814 : : {
5815 : 0 : {
5816 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5817 : 0 : tree res = generic_simplify_173 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGN);
5818 : 0 : if (res) return res;
5819 : : }
5820 : : }
5821 : : }
5822 : : }
5823 : : break;
5824 : 14 : case CFN_BUILT_IN_COPYSIGNF:
5825 : 14 : if (call_expr_nargs (_p1) == 2)
5826 : : {
5827 : 14 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
5828 : 14 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
5829 : 14 : if (real_onep (_q30))
5830 : : {
5831 : 12 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
5832 : : {
5833 : 0 : {
5834 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5835 : 0 : tree res = generic_simplify_173 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF);
5836 : 0 : if (res) return res;
5837 : : }
5838 : : }
5839 : : }
5840 : : }
5841 : : break;
5842 : 0 : case CFN_BUILT_IN_COPYSIGNL:
5843 : 0 : if (call_expr_nargs (_p1) == 2)
5844 : : {
5845 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
5846 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
5847 : 0 : if (real_onep (_q30))
5848 : : {
5849 : 0 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
5850 : : {
5851 : 0 : {
5852 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5853 : 0 : tree res = generic_simplify_173 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNL);
5854 : 0 : if (res) return res;
5855 : : }
5856 : : }
5857 : : }
5858 : : }
5859 : : break;
5860 : 0 : case CFN_COPYSIGN:
5861 : 0 : if (call_expr_nargs (_p1) == 2)
5862 : : {
5863 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
5864 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
5865 : 0 : if (real_onep (_q30))
5866 : : {
5867 : 0 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
5868 : : {
5869 : 0 : {
5870 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5871 : 0 : tree res = generic_simplify_173 (loc, type, _p0, _p1, captures, CFN_COPYSIGN);
5872 : 0 : if (res) return res;
5873 : : }
5874 : : }
5875 : : }
5876 : : }
5877 : : break;
5878 : : default:;
5879 : : }
5880 : : break;
5881 : 68979977 : default:;
5882 : : }
5883 : 68979977 : switch (TREE_CODE (_p0))
5884 : : {
5885 : 2663491 : case CALL_EXPR:
5886 : 2663491 : switch (get_call_combined_fn (_p0))
5887 : : {
5888 : 1 : case CFN_BUILT_IN_COPYSIGNF16:
5889 : 1 : if (call_expr_nargs (_p0) == 2)
5890 : : {
5891 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
5892 : 1 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
5893 : 1 : if (real_onep (_q20))
5894 : : {
5895 : 1 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
5896 : : {
5897 : 0 : {
5898 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q21 };
5899 : 0 : tree res = generic_simplify_174 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF16);
5900 : 0 : if (res) return res;
5901 : : }
5902 : : }
5903 : 1 : switch (TREE_CODE (_q21))
5904 : : {
5905 : 0 : case NEGATE_EXPR:
5906 : 0 : {
5907 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
5908 : 0 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
5909 : : {
5910 : 0 : {
5911 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q40 };
5912 : 0 : tree res = generic_simplify_175 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF16);
5913 : 0 : if (res) return res;
5914 : : }
5915 : : }
5916 : : break;
5917 : : }
5918 : : default:;
5919 : : }
5920 : : }
5921 : : }
5922 : : break;
5923 : 0 : case CFN_BUILT_IN_COPYSIGNF32:
5924 : 0 : if (call_expr_nargs (_p0) == 2)
5925 : : {
5926 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
5927 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
5928 : 0 : if (real_onep (_q20))
5929 : : {
5930 : 0 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
5931 : : {
5932 : 0 : {
5933 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q21 };
5934 : 0 : tree res = generic_simplify_174 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF32);
5935 : 0 : if (res) return res;
5936 : : }
5937 : : }
5938 : 0 : switch (TREE_CODE (_q21))
5939 : : {
5940 : 0 : case NEGATE_EXPR:
5941 : 0 : {
5942 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
5943 : 0 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
5944 : : {
5945 : 0 : {
5946 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q40 };
5947 : 0 : tree res = generic_simplify_175 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF32);
5948 : 0 : if (res) return res;
5949 : : }
5950 : : }
5951 : : break;
5952 : : }
5953 : : default:;
5954 : : }
5955 : : }
5956 : : }
5957 : : break;
5958 : 0 : case CFN_BUILT_IN_COPYSIGNF64:
5959 : 0 : if (call_expr_nargs (_p0) == 2)
5960 : : {
5961 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
5962 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
5963 : 0 : if (real_onep (_q20))
5964 : : {
5965 : 0 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
5966 : : {
5967 : 0 : {
5968 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q21 };
5969 : 0 : tree res = generic_simplify_174 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF64);
5970 : 0 : if (res) return res;
5971 : : }
5972 : : }
5973 : 0 : switch (TREE_CODE (_q21))
5974 : : {
5975 : 0 : case NEGATE_EXPR:
5976 : 0 : {
5977 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
5978 : 0 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
5979 : : {
5980 : 0 : {
5981 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q40 };
5982 : 0 : tree res = generic_simplify_175 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF64);
5983 : 0 : if (res) return res;
5984 : : }
5985 : : }
5986 : : break;
5987 : : }
5988 : : default:;
5989 : : }
5990 : : }
5991 : : }
5992 : : break;
5993 : 0 : case CFN_BUILT_IN_COPYSIGNF128X:
5994 : 0 : if (call_expr_nargs (_p0) == 2)
5995 : : {
5996 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
5997 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
5998 : 0 : if (real_onep (_q20))
5999 : : {
6000 : 0 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6001 : : {
6002 : 0 : {
6003 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q21 };
6004 : 0 : tree res = generic_simplify_174 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF128X);
6005 : 0 : if (res) return res;
6006 : : }
6007 : : }
6008 : 0 : switch (TREE_CODE (_q21))
6009 : : {
6010 : 0 : case NEGATE_EXPR:
6011 : 0 : {
6012 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
6013 : 0 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
6014 : : {
6015 : 0 : {
6016 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q40 };
6017 : 0 : tree res = generic_simplify_175 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF128X);
6018 : 0 : if (res) return res;
6019 : : }
6020 : : }
6021 : : break;
6022 : : }
6023 : : default:;
6024 : : }
6025 : : }
6026 : : }
6027 : : break;
6028 : 8 : case CFN_BUILT_IN_COPYSIGNF128:
6029 : 8 : if (call_expr_nargs (_p0) == 2)
6030 : : {
6031 : 8 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6032 : 8 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
6033 : 8 : if (real_onep (_q20))
6034 : : {
6035 : 0 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6036 : : {
6037 : 0 : {
6038 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q21 };
6039 : 0 : tree res = generic_simplify_174 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF128);
6040 : 0 : if (res) return res;
6041 : : }
6042 : : }
6043 : 0 : switch (TREE_CODE (_q21))
6044 : : {
6045 : 0 : case NEGATE_EXPR:
6046 : 0 : {
6047 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
6048 : 0 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
6049 : : {
6050 : 0 : {
6051 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q40 };
6052 : 0 : tree res = generic_simplify_175 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF128);
6053 : 0 : if (res) return res;
6054 : : }
6055 : : }
6056 : : break;
6057 : : }
6058 : : default:;
6059 : : }
6060 : : }
6061 : : }
6062 : : break;
6063 : 0 : case CFN_BUILT_IN_COPYSIGNF32X:
6064 : 0 : if (call_expr_nargs (_p0) == 2)
6065 : : {
6066 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6067 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
6068 : 0 : if (real_onep (_q20))
6069 : : {
6070 : 0 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6071 : : {
6072 : 0 : {
6073 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q21 };
6074 : 0 : tree res = generic_simplify_174 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF32X);
6075 : 0 : if (res) return res;
6076 : : }
6077 : : }
6078 : 0 : switch (TREE_CODE (_q21))
6079 : : {
6080 : 0 : case NEGATE_EXPR:
6081 : 0 : {
6082 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
6083 : 0 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
6084 : : {
6085 : 0 : {
6086 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q40 };
6087 : 0 : tree res = generic_simplify_175 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF32X);
6088 : 0 : if (res) return res;
6089 : : }
6090 : : }
6091 : : break;
6092 : : }
6093 : : default:;
6094 : : }
6095 : : }
6096 : : }
6097 : : break;
6098 : 0 : case CFN_BUILT_IN_COPYSIGNF64X:
6099 : 0 : if (call_expr_nargs (_p0) == 2)
6100 : : {
6101 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6102 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
6103 : 0 : if (real_onep (_q20))
6104 : : {
6105 : 0 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6106 : : {
6107 : 0 : {
6108 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q21 };
6109 : 0 : tree res = generic_simplify_174 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF64X);
6110 : 0 : if (res) return res;
6111 : : }
6112 : : }
6113 : 0 : switch (TREE_CODE (_q21))
6114 : : {
6115 : 0 : case NEGATE_EXPR:
6116 : 0 : {
6117 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
6118 : 0 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
6119 : : {
6120 : 0 : {
6121 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q40 };
6122 : 0 : tree res = generic_simplify_175 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF64X);
6123 : 0 : if (res) return res;
6124 : : }
6125 : : }
6126 : : break;
6127 : : }
6128 : : default:;
6129 : : }
6130 : : }
6131 : : }
6132 : : break;
6133 : 21 : case CFN_BUILT_IN_COPYSIGN:
6134 : 21 : if (call_expr_nargs (_p0) == 2)
6135 : : {
6136 : 21 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6137 : 21 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
6138 : 21 : if (real_onep (_q20))
6139 : : {
6140 : 3 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6141 : : {
6142 : 0 : {
6143 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q21 };
6144 : 0 : tree res = generic_simplify_174 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGN);
6145 : 0 : if (res) return res;
6146 : : }
6147 : : }
6148 : 3 : switch (TREE_CODE (_q21))
6149 : : {
6150 : 0 : case NEGATE_EXPR:
6151 : 0 : {
6152 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
6153 : 0 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
6154 : : {
6155 : 0 : {
6156 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q40 };
6157 : 0 : tree res = generic_simplify_175 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGN);
6158 : 0 : if (res) return res;
6159 : : }
6160 : : }
6161 : : break;
6162 : : }
6163 : : default:;
6164 : : }
6165 : : }
6166 : : }
6167 : : break;
6168 : 36 : case CFN_BUILT_IN_COPYSIGNF:
6169 : 36 : if (call_expr_nargs (_p0) == 2)
6170 : : {
6171 : 36 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6172 : 36 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
6173 : 36 : if (real_onep (_q20))
6174 : : {
6175 : 12 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6176 : : {
6177 : 4 : {
6178 : 4 : tree captures[1] ATTRIBUTE_UNUSED = { _q21 };
6179 : 4 : tree res = generic_simplify_174 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF);
6180 : 4 : if (res) return res;
6181 : : }
6182 : : }
6183 : 12 : switch (TREE_CODE (_q21))
6184 : : {
6185 : 0 : case NEGATE_EXPR:
6186 : 0 : {
6187 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
6188 : 0 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
6189 : : {
6190 : 0 : {
6191 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q40 };
6192 : 0 : tree res = generic_simplify_175 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF);
6193 : 0 : if (res) return res;
6194 : : }
6195 : : }
6196 : : break;
6197 : : }
6198 : : default:;
6199 : : }
6200 : : }
6201 : : }
6202 : : break;
6203 : 8 : case CFN_BUILT_IN_COPYSIGNL:
6204 : 8 : if (call_expr_nargs (_p0) == 2)
6205 : : {
6206 : 8 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6207 : 8 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
6208 : 8 : if (real_onep (_q20))
6209 : : {
6210 : 0 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6211 : : {
6212 : 0 : {
6213 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q21 };
6214 : 0 : tree res = generic_simplify_174 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNL);
6215 : 0 : if (res) return res;
6216 : : }
6217 : : }
6218 : 0 : switch (TREE_CODE (_q21))
6219 : : {
6220 : 0 : case NEGATE_EXPR:
6221 : 0 : {
6222 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
6223 : 0 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
6224 : : {
6225 : 0 : {
6226 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q40 };
6227 : 0 : tree res = generic_simplify_175 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNL);
6228 : 0 : if (res) return res;
6229 : : }
6230 : : }
6231 : : break;
6232 : : }
6233 : : default:;
6234 : : }
6235 : : }
6236 : : }
6237 : : break;
6238 : 0 : case CFN_COPYSIGN:
6239 : 0 : if (call_expr_nargs (_p0) == 2)
6240 : : {
6241 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6242 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
6243 : 0 : if (real_onep (_q20))
6244 : : {
6245 : 0 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6246 : : {
6247 : 0 : {
6248 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q21 };
6249 : 0 : tree res = generic_simplify_174 (loc, type, _p0, _p1, captures, CFN_COPYSIGN);
6250 : 0 : if (res) return res;
6251 : : }
6252 : : }
6253 : 0 : switch (TREE_CODE (_q21))
6254 : : {
6255 : 0 : case NEGATE_EXPR:
6256 : 0 : {
6257 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
6258 : 0 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
6259 : : {
6260 : 0 : {
6261 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q40 };
6262 : 0 : tree res = generic_simplify_175 (loc, type, _p0, _p1, captures, CFN_COPYSIGN);
6263 : 0 : if (res) return res;
6264 : : }
6265 : : }
6266 : : break;
6267 : : }
6268 : : default:;
6269 : : }
6270 : : }
6271 : : }
6272 : : break;
6273 : : default:;
6274 : : }
6275 : : break;
6276 : 68979977 : default:;
6277 : : }
6278 : 68979977 : switch (TREE_CODE (_p1))
6279 : : {
6280 : 932494 : case CALL_EXPR:
6281 : 932494 : switch (get_call_combined_fn (_p1))
6282 : : {
6283 : 20 : case CFN_BUILT_IN_COPYSIGNF16:
6284 : 20 : if (call_expr_nargs (_p1) == 2)
6285 : : {
6286 : 20 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
6287 : 20 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
6288 : 20 : if (real_onep (_q30))
6289 : : {
6290 : 20 : switch (TREE_CODE (_q31))
6291 : : {
6292 : 0 : case NEGATE_EXPR:
6293 : 0 : {
6294 : 0 : tree _q50 = TREE_OPERAND (_q31, 0);
6295 : 0 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
6296 : : {
6297 : 0 : {
6298 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
6299 : 0 : tree res = generic_simplify_176 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF16);
6300 : 0 : if (res) return res;
6301 : : }
6302 : : }
6303 : : break;
6304 : : }
6305 : : default:;
6306 : : }
6307 : : }
6308 : : }
6309 : : break;
6310 : 0 : case CFN_BUILT_IN_COPYSIGNF32:
6311 : 0 : if (call_expr_nargs (_p1) == 2)
6312 : : {
6313 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
6314 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
6315 : 0 : if (real_onep (_q30))
6316 : : {
6317 : 0 : switch (TREE_CODE (_q31))
6318 : : {
6319 : 0 : case NEGATE_EXPR:
6320 : 0 : {
6321 : 0 : tree _q50 = TREE_OPERAND (_q31, 0);
6322 : 0 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
6323 : : {
6324 : 0 : {
6325 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
6326 : 0 : tree res = generic_simplify_176 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF32);
6327 : 0 : if (res) return res;
6328 : : }
6329 : : }
6330 : : break;
6331 : : }
6332 : : default:;
6333 : : }
6334 : : }
6335 : : }
6336 : : break;
6337 : 0 : case CFN_BUILT_IN_COPYSIGNF64:
6338 : 0 : if (call_expr_nargs (_p1) == 2)
6339 : : {
6340 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
6341 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
6342 : 0 : if (real_onep (_q30))
6343 : : {
6344 : 0 : switch (TREE_CODE (_q31))
6345 : : {
6346 : 0 : case NEGATE_EXPR:
6347 : 0 : {
6348 : 0 : tree _q50 = TREE_OPERAND (_q31, 0);
6349 : 0 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
6350 : : {
6351 : 0 : {
6352 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
6353 : 0 : tree res = generic_simplify_176 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF64);
6354 : 0 : if (res) return res;
6355 : : }
6356 : : }
6357 : : break;
6358 : : }
6359 : : default:;
6360 : : }
6361 : : }
6362 : : }
6363 : : break;
6364 : 0 : case CFN_BUILT_IN_COPYSIGNF128X:
6365 : 0 : if (call_expr_nargs (_p1) == 2)
6366 : : {
6367 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
6368 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
6369 : 0 : if (real_onep (_q30))
6370 : : {
6371 : 0 : switch (TREE_CODE (_q31))
6372 : : {
6373 : 0 : case NEGATE_EXPR:
6374 : 0 : {
6375 : 0 : tree _q50 = TREE_OPERAND (_q31, 0);
6376 : 0 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
6377 : : {
6378 : 0 : {
6379 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
6380 : 0 : tree res = generic_simplify_176 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF128X);
6381 : 0 : if (res) return res;
6382 : : }
6383 : : }
6384 : : break;
6385 : : }
6386 : : default:;
6387 : : }
6388 : : }
6389 : : }
6390 : : break;
6391 : 0 : case CFN_BUILT_IN_COPYSIGNF128:
6392 : 0 : if (call_expr_nargs (_p1) == 2)
6393 : : {
6394 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
6395 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
6396 : 0 : if (real_onep (_q30))
6397 : : {
6398 : 0 : switch (TREE_CODE (_q31))
6399 : : {
6400 : 0 : case NEGATE_EXPR:
6401 : 0 : {
6402 : 0 : tree _q50 = TREE_OPERAND (_q31, 0);
6403 : 0 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
6404 : : {
6405 : 0 : {
6406 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
6407 : 0 : tree res = generic_simplify_176 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF128);
6408 : 0 : if (res) return res;
6409 : : }
6410 : : }
6411 : : break;
6412 : : }
6413 : : default:;
6414 : : }
6415 : : }
6416 : : }
6417 : : break;
6418 : 0 : case CFN_BUILT_IN_COPYSIGNF32X:
6419 : 0 : if (call_expr_nargs (_p1) == 2)
6420 : : {
6421 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
6422 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
6423 : 0 : if (real_onep (_q30))
6424 : : {
6425 : 0 : switch (TREE_CODE (_q31))
6426 : : {
6427 : 0 : case NEGATE_EXPR:
6428 : 0 : {
6429 : 0 : tree _q50 = TREE_OPERAND (_q31, 0);
6430 : 0 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
6431 : : {
6432 : 0 : {
6433 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
6434 : 0 : tree res = generic_simplify_176 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF32X);
6435 : 0 : if (res) return res;
6436 : : }
6437 : : }
6438 : : break;
6439 : : }
6440 : : default:;
6441 : : }
6442 : : }
6443 : : }
6444 : : break;
6445 : 0 : case CFN_BUILT_IN_COPYSIGNF64X:
6446 : 0 : if (call_expr_nargs (_p1) == 2)
6447 : : {
6448 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
6449 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
6450 : 0 : if (real_onep (_q30))
6451 : : {
6452 : 0 : switch (TREE_CODE (_q31))
6453 : : {
6454 : 0 : case NEGATE_EXPR:
6455 : 0 : {
6456 : 0 : tree _q50 = TREE_OPERAND (_q31, 0);
6457 : 0 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
6458 : : {
6459 : 0 : {
6460 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
6461 : 0 : tree res = generic_simplify_176 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF64X);
6462 : 0 : if (res) return res;
6463 : : }
6464 : : }
6465 : : break;
6466 : : }
6467 : : default:;
6468 : : }
6469 : : }
6470 : : }
6471 : : break;
6472 : 18 : case CFN_BUILT_IN_COPYSIGN:
6473 : 18 : if (call_expr_nargs (_p1) == 2)
6474 : : {
6475 : 18 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
6476 : 18 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
6477 : 18 : if (real_onep (_q30))
6478 : : {
6479 : 14 : switch (TREE_CODE (_q31))
6480 : : {
6481 : 0 : case NEGATE_EXPR:
6482 : 0 : {
6483 : 0 : tree _q50 = TREE_OPERAND (_q31, 0);
6484 : 0 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
6485 : : {
6486 : 0 : {
6487 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
6488 : 0 : tree res = generic_simplify_176 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGN);
6489 : 0 : if (res) return res;
6490 : : }
6491 : : }
6492 : : break;
6493 : : }
6494 : : default:;
6495 : : }
6496 : : }
6497 : : }
6498 : : break;
6499 : 14 : case CFN_BUILT_IN_COPYSIGNF:
6500 : 14 : if (call_expr_nargs (_p1) == 2)
6501 : : {
6502 : 14 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
6503 : 14 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
6504 : 14 : if (real_onep (_q30))
6505 : : {
6506 : 12 : switch (TREE_CODE (_q31))
6507 : : {
6508 : 0 : case NEGATE_EXPR:
6509 : 0 : {
6510 : 0 : tree _q50 = TREE_OPERAND (_q31, 0);
6511 : 0 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
6512 : : {
6513 : 0 : {
6514 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
6515 : 0 : tree res = generic_simplify_176 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF);
6516 : 0 : if (res) return res;
6517 : : }
6518 : : }
6519 : : break;
6520 : : }
6521 : : default:;
6522 : : }
6523 : : }
6524 : : }
6525 : : break;
6526 : 0 : case CFN_BUILT_IN_COPYSIGNL:
6527 : 0 : if (call_expr_nargs (_p1) == 2)
6528 : : {
6529 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
6530 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
6531 : 0 : if (real_onep (_q30))
6532 : : {
6533 : 0 : switch (TREE_CODE (_q31))
6534 : : {
6535 : 0 : case NEGATE_EXPR:
6536 : 0 : {
6537 : 0 : tree _q50 = TREE_OPERAND (_q31, 0);
6538 : 0 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
6539 : : {
6540 : 0 : {
6541 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
6542 : 0 : tree res = generic_simplify_176 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNL);
6543 : 0 : if (res) return res;
6544 : : }
6545 : : }
6546 : : break;
6547 : : }
6548 : : default:;
6549 : : }
6550 : : }
6551 : : }
6552 : : break;
6553 : 0 : case CFN_COPYSIGN:
6554 : 0 : if (call_expr_nargs (_p1) == 2)
6555 : : {
6556 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
6557 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
6558 : 0 : if (real_onep (_q30))
6559 : : {
6560 : 0 : switch (TREE_CODE (_q31))
6561 : : {
6562 : 0 : case NEGATE_EXPR:
6563 : 0 : {
6564 : 0 : tree _q50 = TREE_OPERAND (_q31, 0);
6565 : 0 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
6566 : : {
6567 : 0 : {
6568 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
6569 : 0 : tree res = generic_simplify_176 (loc, type, _p0, _p1, captures, CFN_COPYSIGN);
6570 : 0 : if (res) return res;
6571 : : }
6572 : : }
6573 : : break;
6574 : : }
6575 : : default:;
6576 : : }
6577 : : }
6578 : : }
6579 : : break;
6580 : : default:;
6581 : : }
6582 : : break;
6583 : 68979977 : default:;
6584 : : }
6585 : 68979977 : if (integer_onep (_p1))
6586 : : {
6587 : 2794072 : {
6588 : 2794072 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
6589 : 2794072 : tree res = generic_simplify_177 (loc, type, _p0, _p1, captures, MULT_EXPR);
6590 : 2794072 : if (res) return res;
6591 : : }
6592 : : }
6593 : 66185905 : switch (TREE_CODE (_p0))
6594 : : {
6595 : 5871581 : case MULT_EXPR:
6596 : 5871581 : {
6597 : 5871581 : tree _q20 = TREE_OPERAND (_p0, 0);
6598 : 5871581 : tree _q21 = TREE_OPERAND (_p0, 1);
6599 : 5871581 : switch (TREE_CODE (_q21))
6600 : : {
6601 : 1079561 : case INTEGER_CST:
6602 : 1079561 : {
6603 : 1079561 : switch (TREE_CODE (_p1))
6604 : : {
6605 : 979432 : case INTEGER_CST:
6606 : 979432 : {
6607 : 979432 : {
6608 : 979432 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
6609 : 979432 : {
6610 : 979432 : wi::overflow_type overflow;
6611 : 979432 : wide_int mul = wi::mul (wi::to_wide (captures[1]), wi::to_wide (captures[2]),
6612 : 1958864 : TYPE_SIGN (type), &overflow);
6613 : 979432 : if (!overflow || TYPE_OVERFLOW_WRAPS (type)
6614 : : )
6615 : : {
6616 : 979402 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1520;
6617 : 979402 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1520;
6618 : 979402 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1520;
6619 : 979402 : {
6620 : 979402 : tree res_op0;
6621 : 979402 : res_op0 = captures[0];
6622 : 979402 : tree res_op1;
6623 : 979402 : res_op1 = wide_int_to_tree (type, mul);
6624 : 979402 : tree _r;
6625 : 979402 : _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
6626 : 979402 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 975, __FILE__, __LINE__, true);
6627 : 979402 : return _r;
6628 : : }
6629 : 30 : next_after_fail1520:;
6630 : : }
6631 : 979402 : }
6632 : : }
6633 : 30 : break;
6634 : : }
6635 : : default:;
6636 : : }
6637 : : break;
6638 : : }
6639 : : default:;
6640 : : }
6641 : : break;
6642 : : }
6643 : 7172606 : case PLUS_EXPR:
6644 : 7172606 : {
6645 : 7172606 : tree _q20 = TREE_OPERAND (_p0, 0);
6646 : 7172606 : tree _q21 = TREE_OPERAND (_p0, 1);
6647 : 7172606 : switch (TREE_CODE (_q20))
6648 : : {
6649 : 1175184 : case MULT_EXPR:
6650 : 1175184 : {
6651 : 1175184 : tree _q30 = TREE_OPERAND (_q20, 0);
6652 : 1175184 : tree _q31 = TREE_OPERAND (_q20, 1);
6653 : 1175184 : switch (TREE_CODE (_q31))
6654 : : {
6655 : 308393 : case INTEGER_CST:
6656 : 308393 : {
6657 : 308393 : switch (TREE_CODE (_q21))
6658 : : {
6659 : 36285 : case INTEGER_CST:
6660 : 36285 : {
6661 : 36285 : switch (TREE_CODE (_p1))
6662 : : {
6663 : 13017 : case INTEGER_CST:
6664 : 13017 : {
6665 : 13017 : {
6666 : 13017 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
6667 : 13017 : {
6668 : 13017 : bool overflowed = true;
6669 : 13017 : wi::overflow_type ovf1, ovf2;
6670 : 13017 : wide_int mul = wi::mul (wi::to_wide (captures[3]), wi::to_wide (captures[5]),
6671 : 26034 : TYPE_SIGN (type), &ovf1);
6672 : 13017 : wide_int add = wi::mul (wi::to_wide (captures[4]), wi::to_wide (captures[5]),
6673 : 26034 : TYPE_SIGN (type), &ovf2);
6674 : 13017 : if (TYPE_OVERFLOW_UNDEFINED (type))
6675 : : {
6676 : : }
6677 : : else
6678 : 5459 : overflowed = false;
6679 : 5459 : if (!overflowed
6680 : : )
6681 : : {
6682 : 5459 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1521;
6683 : 5459 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1521;
6684 : 5459 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail1521;
6685 : 5459 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1521;
6686 : 5459 : {
6687 : 5459 : tree res_op0;
6688 : 5459 : {
6689 : 5459 : tree _o1[2], _r1;
6690 : 5459 : _o1[0] = captures[2];
6691 : 5459 : _o1[1] = wide_int_to_tree (type, mul);
6692 : 5459 : _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
6693 : 5459 : res_op0 = _r1;
6694 : : }
6695 : 5459 : tree res_op1;
6696 : 5459 : res_op1 = wide_int_to_tree (type, add);
6697 : 5459 : tree _r;
6698 : 5459 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
6699 : 5459 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 976, __FILE__, __LINE__, true);
6700 : 5459 : return _r;
6701 : : }
6702 : 7558 : next_after_fail1521:;
6703 : : }
6704 : 13017 : }
6705 : : }
6706 : 7558 : break;
6707 : : }
6708 : : default:;
6709 : : }
6710 : : break;
6711 : : }
6712 : : default:;
6713 : : }
6714 : : break;
6715 : : }
6716 : : default:;
6717 : : }
6718 : : break;
6719 : : }
6720 : : default:;
6721 : : }
6722 : : break;
6723 : : }
6724 : 86148 : case TRUNC_DIV_EXPR:
6725 : 86148 : {
6726 : 86148 : tree _q20 = TREE_OPERAND (_p0, 0);
6727 : 86148 : tree _q21 = TREE_OPERAND (_p0, 1);
6728 : 86148 : if (integer_pow2p (_q21))
6729 : : {
6730 : 64595 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6731 : : {
6732 : 40629 : {
6733 : 40629 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
6734 : 40629 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])) && TYPE_UNSIGNED (TREE_TYPE (captures[0]))
6735 : : )
6736 : : {
6737 : 40565 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1522;
6738 : 40565 : {
6739 : 40565 : tree res_op0;
6740 : 40565 : res_op0 = captures[0];
6741 : 40565 : tree res_op1;
6742 : 40565 : {
6743 : 40565 : tree _o1[1], _r1;
6744 : 40565 : _o1[0] = captures[1];
6745 : 40565 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
6746 : 40565 : res_op1 = _r1;
6747 : : }
6748 : 40565 : tree _r;
6749 : 40565 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
6750 : 40565 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 977, __FILE__, __LINE__, true);
6751 : 40565 : return _r;
6752 : : }
6753 : 0 : next_after_fail1522:;
6754 : : }
6755 : : }
6756 : : }
6757 : : }
6758 : : break;
6759 : : }
6760 : 266 : case ABS_EXPR:
6761 : 266 : {
6762 : 266 : tree _q20 = TREE_OPERAND (_p0, 0);
6763 : 266 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
6764 : : {
6765 : 2 : {
6766 : 2 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
6767 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1523;
6768 : 2 : {
6769 : 2 : if (! tree_invariant_p (captures[1])) goto next_after_fail1523;
6770 : 0 : tree res_op0;
6771 : 0 : res_op0 = unshare_expr (captures[1]);
6772 : 0 : tree res_op1;
6773 : 0 : res_op1 = captures[1];
6774 : 0 : tree _r;
6775 : 0 : _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
6776 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 978, __FILE__, __LINE__, true);
6777 : 0 : return _r;
6778 : : }
6779 : 2 : next_after_fail1523:;
6780 : : }
6781 : : }
6782 : : break;
6783 : : }
6784 : 0 : case ABSU_EXPR:
6785 : 0 : {
6786 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
6787 : 0 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
6788 : : {
6789 : 0 : {
6790 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20 };
6791 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1524;
6792 : 0 : {
6793 : 0 : tree res_op0;
6794 : 0 : {
6795 : 0 : tree _o1[1], _r1;
6796 : 0 : _o1[0] = captures[1];
6797 : 0 : if (TREE_TYPE (_o1[0]) != type)
6798 : : {
6799 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
6800 : : }
6801 : : else
6802 : : _r1 = _o1[0];
6803 : 0 : captures[2] = _r1;
6804 : : }
6805 : 0 : res_op0 = unshare_expr (captures[2]);
6806 : 0 : tree res_op1;
6807 : 0 : res_op1 = captures[2];
6808 : 0 : tree _r;
6809 : 0 : _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
6810 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 979, __FILE__, __LINE__, true);
6811 : 0 : return _r;
6812 : : }
6813 : 0 : next_after_fail1524:;
6814 : : }
6815 : : }
6816 : : break;
6817 : : }
6818 : 2502622 : case CALL_EXPR:
6819 : 2502622 : switch (get_call_combined_fn (_p0))
6820 : : {
6821 : 1 : case CFN_BUILT_IN_COPYSIGNF16:
6822 : 1 : if (call_expr_nargs (_p0) == 2)
6823 : : {
6824 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6825 : 1 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
6826 : 1 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
6827 : : {
6828 : 0 : {
6829 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
6830 : 0 : tree res = generic_simplify_178 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF16);
6831 : 0 : if (res) return res;
6832 : : }
6833 : : }
6834 : : }
6835 : : break;
6836 : 0 : case CFN_BUILT_IN_COPYSIGNF32:
6837 : 0 : if (call_expr_nargs (_p0) == 2)
6838 : : {
6839 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6840 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
6841 : 0 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
6842 : : {
6843 : 0 : {
6844 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
6845 : 0 : tree res = generic_simplify_178 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF32);
6846 : 0 : if (res) return res;
6847 : : }
6848 : : }
6849 : : }
6850 : : break;
6851 : 0 : case CFN_BUILT_IN_COPYSIGNF64:
6852 : 0 : if (call_expr_nargs (_p0) == 2)
6853 : : {
6854 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6855 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
6856 : 0 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
6857 : : {
6858 : 0 : {
6859 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
6860 : 0 : tree res = generic_simplify_178 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF64);
6861 : 0 : if (res) return res;
6862 : : }
6863 : : }
6864 : : }
6865 : : break;
6866 : 0 : case CFN_BUILT_IN_COPYSIGNF128X:
6867 : 0 : if (call_expr_nargs (_p0) == 2)
6868 : : {
6869 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6870 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
6871 : 0 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
6872 : : {
6873 : 0 : {
6874 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
6875 : 0 : tree res = generic_simplify_178 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF128X);
6876 : 0 : if (res) return res;
6877 : : }
6878 : : }
6879 : : }
6880 : : break;
6881 : 8 : case CFN_BUILT_IN_COPYSIGNF128:
6882 : 8 : if (call_expr_nargs (_p0) == 2)
6883 : : {
6884 : 8 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6885 : 8 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
6886 : 8 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
6887 : : {
6888 : 0 : {
6889 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
6890 : 0 : tree res = generic_simplify_178 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF128);
6891 : 0 : if (res) return res;
6892 : : }
6893 : : }
6894 : : }
6895 : : break;
6896 : 0 : case CFN_BUILT_IN_COPYSIGNF32X:
6897 : 0 : if (call_expr_nargs (_p0) == 2)
6898 : : {
6899 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6900 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
6901 : 0 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
6902 : : {
6903 : 0 : {
6904 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
6905 : 0 : tree res = generic_simplify_178 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF32X);
6906 : 0 : if (res) return res;
6907 : : }
6908 : : }
6909 : : }
6910 : : break;
6911 : 0 : case CFN_BUILT_IN_COPYSIGNF64X:
6912 : 0 : if (call_expr_nargs (_p0) == 2)
6913 : : {
6914 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6915 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
6916 : 0 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
6917 : : {
6918 : 0 : {
6919 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
6920 : 0 : tree res = generic_simplify_178 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF64X);
6921 : 0 : if (res) return res;
6922 : : }
6923 : : }
6924 : : }
6925 : : break;
6926 : 21 : case CFN_BUILT_IN_COPYSIGN:
6927 : 21 : if (call_expr_nargs (_p0) == 2)
6928 : : {
6929 : 21 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6930 : 21 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
6931 : 21 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
6932 : : {
6933 : 0 : {
6934 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
6935 : 0 : tree res = generic_simplify_178 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGN);
6936 : 0 : if (res) return res;
6937 : : }
6938 : : }
6939 : : }
6940 : : break;
6941 : 36 : case CFN_BUILT_IN_COPYSIGNF:
6942 : 36 : if (call_expr_nargs (_p0) == 2)
6943 : : {
6944 : 36 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6945 : 36 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
6946 : 36 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
6947 : : {
6948 : 0 : {
6949 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
6950 : 0 : tree res = generic_simplify_178 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNF);
6951 : 0 : if (res) return res;
6952 : : }
6953 : : }
6954 : : }
6955 : : break;
6956 : 8 : case CFN_BUILT_IN_COPYSIGNL:
6957 : 8 : if (call_expr_nargs (_p0) == 2)
6958 : : {
6959 : 8 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6960 : 8 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
6961 : 8 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
6962 : : {
6963 : 0 : {
6964 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
6965 : 0 : tree res = generic_simplify_178 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_COPYSIGNL);
6966 : 0 : if (res) return res;
6967 : : }
6968 : : }
6969 : : }
6970 : : break;
6971 : 0 : case CFN_COPYSIGN:
6972 : 0 : if (call_expr_nargs (_p0) == 2)
6973 : : {
6974 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
6975 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
6976 : 0 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
6977 : : {
6978 : 0 : {
6979 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
6980 : 0 : tree res = generic_simplify_178 (loc, type, _p0, _p1, captures, CFN_COPYSIGN);
6981 : 0 : if (res) return res;
6982 : : }
6983 : : }
6984 : : }
6985 : : break;
6986 : : default:;
6987 : : }
6988 : : break;
6989 : 65160479 : default:;
6990 : : }
6991 : 65160479 : switch (TREE_CODE (_p1))
6992 : : {
6993 : 7373732 : CASE_CONVERT:
6994 : 7373732 : {
6995 : 7373732 : tree _q30 = TREE_OPERAND (_p1, 0);
6996 : 7373732 : switch (TREE_CODE (_q30))
6997 : : {
6998 : 0 : case LSHIFT_EXPR:
6999 : 0 : {
7000 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
7001 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
7002 : 0 : if (integer_onep (_q40))
7003 : : {
7004 : 0 : {
7005 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q40, _q41 };
7006 : 0 : tree res = generic_simplify_179 (loc, type, _p0, _p1, captures);
7007 : 0 : if (res) return res;
7008 : : }
7009 : : }
7010 : : break;
7011 : : }
7012 : : default:;
7013 : : }
7014 : : break;
7015 : : }
7016 : 65160479 : default:;
7017 : : }
7018 : 65160479 : switch (TREE_CODE (_p0))
7019 : : {
7020 : 30532448 : CASE_CONVERT:
7021 : 30532448 : {
7022 : 30532448 : tree _q20 = TREE_OPERAND (_p0, 0);
7023 : 30532448 : switch (TREE_CODE (_q20))
7024 : : {
7025 : 20 : case LSHIFT_EXPR:
7026 : 20 : {
7027 : 20 : tree _q30 = TREE_OPERAND (_q20, 0);
7028 : 20 : tree _q31 = TREE_OPERAND (_q20, 1);
7029 : 20 : if (integer_onep (_q30))
7030 : : {
7031 : 1 : {
7032 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q30, _q31 };
7033 : 1 : tree res = generic_simplify_179 (loc, type, _p0, _p1, captures);
7034 : 1 : if (res) return res;
7035 : : }
7036 : : }
7037 : : break;
7038 : : }
7039 : 1 : case EQ_EXPR:
7040 : 1 : {
7041 : 1 : tree _q30 = TREE_OPERAND (_q20, 0);
7042 : 1 : tree _q31 = TREE_OPERAND (_q20, 1);
7043 : 1 : if (integer_zerop (_q31))
7044 : : {
7045 : 1 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
7046 : : {
7047 : 0 : {
7048 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q30 };
7049 : 0 : tree res = generic_simplify_180 (loc, type, _p0, _p1, captures);
7050 : 0 : if (res) return res;
7051 : : }
7052 : : }
7053 : : }
7054 : : break;
7055 : : }
7056 : : default:;
7057 : : }
7058 : : break;
7059 : : }
7060 : 65160479 : default:;
7061 : : }
7062 : 65160479 : switch (TREE_CODE (_p1))
7063 : : {
7064 : 848 : case LSHIFT_EXPR:
7065 : 848 : {
7066 : 848 : tree _q30 = TREE_OPERAND (_p1, 0);
7067 : 848 : tree _q31 = TREE_OPERAND (_p1, 1);
7068 : 848 : if (integer_onep (_q30))
7069 : : {
7070 : 169 : {
7071 : 169 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q31 };
7072 : 169 : tree res = generic_simplify_179 (loc, type, _p0, _p1, captures);
7073 : 169 : if (res) return res;
7074 : : }
7075 : : }
7076 : : break;
7077 : : }
7078 : 65160310 : default:;
7079 : : }
7080 : 65160310 : switch (TREE_CODE (_p0))
7081 : : {
7082 : 3111 : case LSHIFT_EXPR:
7083 : 3111 : {
7084 : 3111 : tree _q20 = TREE_OPERAND (_p0, 0);
7085 : 3111 : tree _q21 = TREE_OPERAND (_p0, 1);
7086 : 3111 : if (integer_onep (_q20))
7087 : : {
7088 : 2889 : {
7089 : 2889 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q21 };
7090 : 2889 : tree res = generic_simplify_179 (loc, type, _p0, _p1, captures);
7091 : 2889 : if (res) return res;
7092 : : }
7093 : : }
7094 : : break;
7095 : : }
7096 : 65157421 : default:;
7097 : : }
7098 : 65157421 : switch (TREE_CODE (_p1))
7099 : : {
7100 : 7373370 : CASE_CONVERT:
7101 : 7373370 : {
7102 : 7373370 : tree _q30 = TREE_OPERAND (_p1, 0);
7103 : 7373370 : switch (TREE_CODE (_q30))
7104 : : {
7105 : 0 : case EQ_EXPR:
7106 : 0 : {
7107 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
7108 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
7109 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
7110 : : {
7111 : 0 : if (integer_zerop (_q41))
7112 : : {
7113 : 0 : {
7114 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
7115 : 0 : tree res = generic_simplify_181 (loc, type, _p0, _p1, captures);
7116 : 0 : if (res) return res;
7117 : : }
7118 : : }
7119 : : }
7120 : : break;
7121 : : }
7122 : : default:;
7123 : : }
7124 : : break;
7125 : : }
7126 : 0 : case EQ_EXPR:
7127 : 0 : {
7128 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
7129 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
7130 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
7131 : : {
7132 : 0 : if (integer_zerop (_q31))
7133 : : {
7134 : 0 : {
7135 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
7136 : 0 : tree res = generic_simplify_181 (loc, type, _p0, _p1, captures);
7137 : 0 : if (res) return res;
7138 : : }
7139 : : }
7140 : : }
7141 : : break;
7142 : : }
7143 : 65157421 : default:;
7144 : : }
7145 : 65157421 : switch (TREE_CODE (_p0))
7146 : : {
7147 : 180 : case EQ_EXPR:
7148 : 180 : {
7149 : 180 : tree _q20 = TREE_OPERAND (_p0, 0);
7150 : 180 : tree _q21 = TREE_OPERAND (_p0, 1);
7151 : 180 : if (integer_zerop (_q21))
7152 : : {
7153 : 59 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
7154 : : {
7155 : 3 : {
7156 : 3 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
7157 : 3 : tree res = generic_simplify_180 (loc, type, _p0, _p1, captures);
7158 : 3 : if (res) return res;
7159 : : }
7160 : : }
7161 : : }
7162 : : break;
7163 : : }
7164 : 65157418 : default:;
7165 : : }
7166 : 65157418 : switch (TREE_CODE (_p1))
7167 : : {
7168 : 0 : case VEC_COND_EXPR:
7169 : 0 : {
7170 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
7171 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
7172 : 0 : tree _q32 = TREE_OPERAND (_p1, 2);
7173 : 0 : switch (TREE_CODE (_q30))
7174 : : {
7175 : 0 : case EQ_EXPR:
7176 : 0 : {
7177 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
7178 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
7179 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
7180 : : {
7181 : 0 : if (integer_zerop (_q41))
7182 : : {
7183 : 0 : if (integer_zerop (_q32))
7184 : : {
7185 : 0 : {
7186 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
7187 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1525;
7188 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1525;
7189 : 0 : {
7190 : 0 : tree _r;
7191 : 0 : _r = build_zero_cst (type);
7192 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 980, __FILE__, __LINE__, true);
7193 : 0 : return _r;
7194 : : }
7195 : 0 : next_after_fail1525:;
7196 : : }
7197 : : }
7198 : : }
7199 : : }
7200 : : break;
7201 : : }
7202 : : default:;
7203 : : }
7204 : : break;
7205 : : }
7206 : 65157418 : default:;
7207 : : }
7208 : 65157418 : switch (TREE_CODE (_p0))
7209 : : {
7210 : 37 : case VEC_COND_EXPR:
7211 : 37 : {
7212 : 37 : tree _q20 = TREE_OPERAND (_p0, 0);
7213 : 37 : tree _q21 = TREE_OPERAND (_p0, 1);
7214 : 37 : tree _q22 = TREE_OPERAND (_p0, 2);
7215 : 37 : switch (TREE_CODE (_q20))
7216 : : {
7217 : 1 : case EQ_EXPR:
7218 : 1 : {
7219 : 1 : tree _q30 = TREE_OPERAND (_q20, 0);
7220 : 1 : tree _q31 = TREE_OPERAND (_q20, 1);
7221 : 1 : if (integer_zerop (_q31))
7222 : : {
7223 : 1 : if (integer_zerop (_q22))
7224 : : {
7225 : 1 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
7226 : : {
7227 : 1 : {
7228 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q21 };
7229 : 1 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1526;
7230 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1526;
7231 : 1 : {
7232 : 1 : tree _r;
7233 : 1 : _r = build_zero_cst (type);
7234 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 980, __FILE__, __LINE__, true);
7235 : 1 : return _r;
7236 : : }
7237 : 0 : next_after_fail1526:;
7238 : : }
7239 : : }
7240 : : }
7241 : : }
7242 : : break;
7243 : : }
7244 : 0 : case NE_EXPR:
7245 : 0 : {
7246 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7247 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7248 : 0 : if (integer_zerop (_q31))
7249 : : {
7250 : 0 : if (integer_zerop (_q21))
7251 : : {
7252 : 0 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
7253 : : {
7254 : 0 : {
7255 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q22 };
7256 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1527;
7257 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1527;
7258 : 0 : {
7259 : 0 : tree _r;
7260 : 0 : _r = build_zero_cst (type);
7261 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 981, __FILE__, __LINE__, true);
7262 : 0 : return _r;
7263 : : }
7264 : 0 : next_after_fail1527:;
7265 : : }
7266 : : }
7267 : : }
7268 : : }
7269 : : break;
7270 : : }
7271 : : default:;
7272 : : }
7273 : : break;
7274 : : }
7275 : 65157417 : default:;
7276 : : }
7277 : 65157417 : switch (TREE_CODE (_p1))
7278 : : {
7279 : 0 : case VEC_COND_EXPR:
7280 : 0 : {
7281 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
7282 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
7283 : 0 : tree _q32 = TREE_OPERAND (_p1, 2);
7284 : 0 : switch (TREE_CODE (_q30))
7285 : : {
7286 : 0 : case NE_EXPR:
7287 : 0 : {
7288 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
7289 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
7290 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
7291 : : {
7292 : 0 : if (integer_zerop (_q41))
7293 : : {
7294 : 0 : if (integer_zerop (_q31))
7295 : : {
7296 : 0 : {
7297 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q32 };
7298 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1528;
7299 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1528;
7300 : 0 : {
7301 : 0 : tree _r;
7302 : 0 : _r = build_zero_cst (type);
7303 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 981, __FILE__, __LINE__, true);
7304 : 0 : return _r;
7305 : : }
7306 : 0 : next_after_fail1528:;
7307 : : }
7308 : : }
7309 : : }
7310 : : }
7311 : : break;
7312 : : }
7313 : : default:;
7314 : : }
7315 : : break;
7316 : : }
7317 : 65157417 : default:;
7318 : : }
7319 : 65157417 : switch (TREE_CODE (_p0))
7320 : : {
7321 : 822225 : case RDIV_EXPR:
7322 : 822225 : {
7323 : 822225 : tree _q20 = TREE_OPERAND (_p0, 0);
7324 : 822225 : tree _q21 = TREE_OPERAND (_p0, 1);
7325 : 822225 : switch (TREE_CODE (_q20))
7326 : : {
7327 : 60607 : case REAL_CST:
7328 : 60607 : {
7329 : 60607 : switch (TREE_CODE (_p1))
7330 : : {
7331 : 1 : case REAL_CST:
7332 : 1 : {
7333 : 1 : {
7334 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
7335 : 1 : if (flag_associative_math
7336 : 1 : && single_use (captures[0])
7337 : : )
7338 : : {
7339 : 1 : {
7340 : 1 : tree tem = const_binop (MULT_EXPR, type, captures[1], captures[3]);
7341 : 1 : if (tem
7342 : : )
7343 : : {
7344 : 1 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1529;
7345 : 1 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1529;
7346 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1529;
7347 : 1 : {
7348 : 1 : tree res_op0;
7349 : 1 : res_op0 = tem;
7350 : 1 : tree res_op1;
7351 : 1 : res_op1 = captures[2];
7352 : 1 : tree _r;
7353 : 1 : _r = fold_build2_loc (loc, RDIV_EXPR, type, res_op0, res_op1);
7354 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 982, __FILE__, __LINE__, true);
7355 : 1 : return _r;
7356 : : }
7357 : 0 : next_after_fail1529:;
7358 : : }
7359 : : }
7360 : : }
7361 : : }
7362 : 0 : break;
7363 : : }
7364 : : default:;
7365 : : }
7366 : : break;
7367 : : }
7368 : : default:;
7369 : : }
7370 : : break;
7371 : : }
7372 : 65157416 : default:;
7373 : : }
7374 : 65157416 : {
7375 : 65157416 : tree _p0_pops[1];
7376 : 65157416 : if (tree_nop_convert (_p0, _p0_pops))
7377 : : {
7378 : 22085562 : tree _q20 = _p0_pops[0];
7379 : 22085562 : switch (TREE_CODE (_q20))
7380 : : {
7381 : 4 : case BIT_IOR_EXPR:
7382 : 4 : {
7383 : 4 : tree _q30 = TREE_OPERAND (_q20, 0);
7384 : 4 : tree _q31 = TREE_OPERAND (_q20, 1);
7385 : 4 : switch (TREE_CODE (_q30))
7386 : : {
7387 : 4 : case NEGATE_EXPR:
7388 : 4 : {
7389 : 4 : tree _q40 = TREE_OPERAND (_q30, 0);
7390 : 4 : switch (TREE_CODE (_q40))
7391 : : {
7392 : 0 : CASE_CONVERT:
7393 : 0 : {
7394 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
7395 : 0 : switch (TREE_CODE (_q50))
7396 : : {
7397 : 0 : case LT_EXPR:
7398 : 0 : {
7399 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
7400 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
7401 : 0 : if (integer_zerop (_q61))
7402 : : {
7403 : 0 : if (integer_onep (_q31))
7404 : : {
7405 : 0 : {
7406 : 0 : tree _p1_pops[1];
7407 : 0 : if (tree_nop_convert (_p1, _p1_pops))
7408 : : {
7409 : 0 : tree _q100 = _p1_pops[0];
7410 : 0 : if ((_q100 == _q60 && ! TREE_SIDE_EFFECTS (_q100)) || (operand_equal_p (_q100, _q60, 0) && types_match (_q100, _q60)))
7411 : : {
7412 : 0 : {
7413 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q60 };
7414 : 0 : tree res = generic_simplify_182 (loc, type, _p0, _p1, captures);
7415 : 0 : if (res) return res;
7416 : : }
7417 : : }
7418 : : }
7419 : : }
7420 : 0 : if ((_p1 == _q60 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q60, 0) && types_match (_p1, _q60)))
7421 : : {
7422 : 0 : {
7423 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q60 };
7424 : 0 : tree res = generic_simplify_182 (loc, type, _p0, _p1, captures);
7425 : 0 : if (res) return res;
7426 : : }
7427 : : }
7428 : : }
7429 : : }
7430 : : break;
7431 : : }
7432 : : default:;
7433 : : }
7434 : : break;
7435 : : }
7436 : 4 : case LT_EXPR:
7437 : 4 : {
7438 : 4 : tree _q50 = TREE_OPERAND (_q40, 0);
7439 : 4 : tree _q51 = TREE_OPERAND (_q40, 1);
7440 : 4 : if (integer_zerop (_q51))
7441 : : {
7442 : 4 : if (integer_onep (_q31))
7443 : : {
7444 : 4 : {
7445 : 4 : tree _p1_pops[1];
7446 : 4 : if (tree_nop_convert (_p1, _p1_pops))
7447 : : {
7448 : 4 : tree _q90 = _p1_pops[0];
7449 : 4 : if ((_q90 == _q50 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q50, 0) && types_match (_q90, _q50)))
7450 : : {
7451 : 4 : {
7452 : 4 : tree captures[1] ATTRIBUTE_UNUSED = { _q50 };
7453 : 4 : tree res = generic_simplify_182 (loc, type, _p0, _p1, captures);
7454 : 4 : if (res) return res;
7455 : : }
7456 : : }
7457 : : }
7458 : : }
7459 : 0 : if ((_p1 == _q50 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q50, 0) && types_match (_p1, _q50)))
7460 : : {
7461 : 0 : {
7462 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q50 };
7463 : 0 : tree res = generic_simplify_182 (loc, type, _p0, _p1, captures);
7464 : 0 : if (res) return res;
7465 : : }
7466 : : }
7467 : : }
7468 : : }
7469 : : break;
7470 : : }
7471 : : default:;
7472 : : }
7473 : : break;
7474 : : }
7475 : 0 : default:;
7476 : : }
7477 : 0 : {
7478 : 0 : tree _q30_pops[1];
7479 : 0 : if (tree_nop_convert (_q30, _q30_pops))
7480 : : {
7481 : 0 : tree _q40 = _q30_pops[0];
7482 : 0 : switch (TREE_CODE (_q40))
7483 : : {
7484 : 0 : case NEGATE_EXPR:
7485 : 0 : {
7486 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
7487 : 0 : switch (TREE_CODE (_q50))
7488 : : {
7489 : 0 : CASE_CONVERT:
7490 : 0 : {
7491 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
7492 : 0 : switch (TREE_CODE (_q60))
7493 : : {
7494 : 0 : case LT_EXPR:
7495 : 0 : {
7496 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
7497 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
7498 : 0 : if (integer_zerop (_q71))
7499 : : {
7500 : 0 : if (integer_onep (_q31))
7501 : : {
7502 : 0 : {
7503 : 0 : tree _p1_pops[1];
7504 : 0 : if (tree_nop_convert (_p1, _p1_pops))
7505 : : {
7506 : 0 : tree _q110 = _p1_pops[0];
7507 : 0 : if ((_q110 == _q70 && ! TREE_SIDE_EFFECTS (_q110)) || (operand_equal_p (_q110, _q70, 0) && types_match (_q110, _q70)))
7508 : : {
7509 : 0 : {
7510 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q70 };
7511 : 0 : tree res = generic_simplify_182 (loc, type, _p0, _p1, captures);
7512 : 0 : if (res) return res;
7513 : : }
7514 : : }
7515 : : }
7516 : : }
7517 : 0 : if ((_p1 == _q70 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q70, 0) && types_match (_p1, _q70)))
7518 : : {
7519 : 0 : {
7520 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q70 };
7521 : 0 : tree res = generic_simplify_182 (loc, type, _p0, _p1, captures);
7522 : 0 : if (res) return res;
7523 : : }
7524 : : }
7525 : : }
7526 : : }
7527 : : break;
7528 : : }
7529 : : default:;
7530 : : }
7531 : : break;
7532 : : }
7533 : 0 : case LT_EXPR:
7534 : 0 : {
7535 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
7536 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
7537 : 0 : if (integer_zerop (_q61))
7538 : : {
7539 : 0 : if (integer_onep (_q31))
7540 : : {
7541 : 0 : {
7542 : 0 : tree _p1_pops[1];
7543 : 0 : if (tree_nop_convert (_p1, _p1_pops))
7544 : : {
7545 : 0 : tree _q100 = _p1_pops[0];
7546 : 0 : if ((_q100 == _q60 && ! TREE_SIDE_EFFECTS (_q100)) || (operand_equal_p (_q100, _q60, 0) && types_match (_q100, _q60)))
7547 : : {
7548 : 0 : {
7549 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q60 };
7550 : 0 : tree res = generic_simplify_182 (loc, type, _p0, _p1, captures);
7551 : 0 : if (res) return res;
7552 : : }
7553 : : }
7554 : : }
7555 : : }
7556 : 0 : if ((_p1 == _q60 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q60, 0) && types_match (_p1, _q60)))
7557 : : {
7558 : 0 : {
7559 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q60 };
7560 : 0 : tree res = generic_simplify_182 (loc, type, _p0, _p1, captures);
7561 : 0 : if (res) return res;
7562 : : }
7563 : : }
7564 : : }
7565 : : }
7566 : : break;
7567 : : }
7568 : : default:;
7569 : : }
7570 : : break;
7571 : : }
7572 : : default:;
7573 : : }
7574 : : }
7575 : : }
7576 : 0 : break;
7577 : : }
7578 : 22085558 : default:;
7579 : : }
7580 : 22085558 : switch (TREE_CODE (_p1))
7581 : : {
7582 : 0 : case BIT_IOR_EXPR:
7583 : 0 : {
7584 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
7585 : 0 : tree _q41 = TREE_OPERAND (_p1, 1);
7586 : 0 : switch (TREE_CODE (_q40))
7587 : : {
7588 : 0 : case NEGATE_EXPR:
7589 : 0 : {
7590 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
7591 : 0 : switch (TREE_CODE (_q50))
7592 : : {
7593 : 0 : CASE_CONVERT:
7594 : 0 : {
7595 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
7596 : 0 : switch (TREE_CODE (_q60))
7597 : : {
7598 : 0 : case LT_EXPR:
7599 : 0 : {
7600 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
7601 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
7602 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
7603 : : {
7604 : 0 : if (integer_zerop (_q71))
7605 : : {
7606 : 0 : if (integer_onep (_q41))
7607 : : {
7608 : 0 : {
7609 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
7610 : 0 : tree res = generic_simplify_183 (loc, type, _p0, _p1, captures);
7611 : 0 : if (res) return res;
7612 : : }
7613 : : }
7614 : : }
7615 : : }
7616 : : break;
7617 : : }
7618 : : default:;
7619 : : }
7620 : : break;
7621 : : }
7622 : 0 : case LT_EXPR:
7623 : 0 : {
7624 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
7625 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
7626 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
7627 : : {
7628 : 0 : if (integer_zerop (_q61))
7629 : : {
7630 : 0 : if (integer_onep (_q41))
7631 : : {
7632 : 0 : {
7633 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
7634 : 0 : tree res = generic_simplify_183 (loc, type, _p0, _p1, captures);
7635 : 0 : if (res) return res;
7636 : : }
7637 : : }
7638 : : }
7639 : : }
7640 : : break;
7641 : : }
7642 : : default:;
7643 : : }
7644 : : break;
7645 : : }
7646 : 0 : default:;
7647 : : }
7648 : 0 : {
7649 : 0 : tree _q40_pops[1];
7650 : 0 : if (tree_nop_convert (_q40, _q40_pops))
7651 : : {
7652 : 0 : tree _q50 = _q40_pops[0];
7653 : 0 : switch (TREE_CODE (_q50))
7654 : : {
7655 : 0 : case NEGATE_EXPR:
7656 : 0 : {
7657 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
7658 : 0 : switch (TREE_CODE (_q60))
7659 : : {
7660 : 0 : CASE_CONVERT:
7661 : 0 : {
7662 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
7663 : 0 : switch (TREE_CODE (_q70))
7664 : : {
7665 : 0 : case LT_EXPR:
7666 : 0 : {
7667 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
7668 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
7669 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
7670 : : {
7671 : 0 : if (integer_zerop (_q81))
7672 : : {
7673 : 0 : if (integer_onep (_q41))
7674 : : {
7675 : 0 : {
7676 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
7677 : 0 : tree res = generic_simplify_183 (loc, type, _p0, _p1, captures);
7678 : 0 : if (res) return res;
7679 : : }
7680 : : }
7681 : : }
7682 : : }
7683 : : break;
7684 : : }
7685 : : default:;
7686 : : }
7687 : : break;
7688 : : }
7689 : 0 : case LT_EXPR:
7690 : 0 : {
7691 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
7692 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
7693 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
7694 : : {
7695 : 0 : if (integer_zerop (_q71))
7696 : : {
7697 : 0 : if (integer_onep (_q41))
7698 : : {
7699 : 0 : {
7700 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
7701 : 0 : tree res = generic_simplify_183 (loc, type, _p0, _p1, captures);
7702 : 0 : if (res) return res;
7703 : : }
7704 : : }
7705 : : }
7706 : : }
7707 : : break;
7708 : : }
7709 : : default:;
7710 : : }
7711 : : break;
7712 : : }
7713 : : default:;
7714 : : }
7715 : : }
7716 : : }
7717 : 0 : break;
7718 : : }
7719 : 22085558 : default:;
7720 : : }
7721 : 22085558 : {
7722 : 22085558 : tree _p1_pops[1];
7723 : 22085558 : if (tree_nop_convert (_p1, _p1_pops))
7724 : : {
7725 : 2513470 : tree _q40 = _p1_pops[0];
7726 : 2513470 : switch (TREE_CODE (_q40))
7727 : : {
7728 : 0 : case BIT_IOR_EXPR:
7729 : 0 : {
7730 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
7731 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
7732 : 0 : switch (TREE_CODE (_q50))
7733 : : {
7734 : 0 : case NEGATE_EXPR:
7735 : 0 : {
7736 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
7737 : 0 : switch (TREE_CODE (_q60))
7738 : : {
7739 : 0 : CASE_CONVERT:
7740 : 0 : {
7741 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
7742 : 0 : switch (TREE_CODE (_q70))
7743 : : {
7744 : 0 : case LT_EXPR:
7745 : 0 : {
7746 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
7747 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
7748 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
7749 : : {
7750 : 0 : if (integer_zerop (_q81))
7751 : : {
7752 : 0 : if (integer_onep (_q51))
7753 : : {
7754 : 0 : {
7755 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
7756 : 0 : tree res = generic_simplify_183 (loc, type, _p0, _p1, captures);
7757 : 0 : if (res) return res;
7758 : : }
7759 : : }
7760 : : }
7761 : : }
7762 : : break;
7763 : : }
7764 : : default:;
7765 : : }
7766 : : break;
7767 : : }
7768 : 0 : case LT_EXPR:
7769 : 0 : {
7770 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
7771 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
7772 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
7773 : : {
7774 : 0 : if (integer_zerop (_q71))
7775 : : {
7776 : 0 : if (integer_onep (_q51))
7777 : : {
7778 : 0 : {
7779 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
7780 : 0 : tree res = generic_simplify_183 (loc, type, _p0, _p1, captures);
7781 : 0 : if (res) return res;
7782 : : }
7783 : : }
7784 : : }
7785 : : }
7786 : : break;
7787 : : }
7788 : : default:;
7789 : : }
7790 : : break;
7791 : : }
7792 : 0 : default:;
7793 : : }
7794 : 0 : {
7795 : 0 : tree _q50_pops[1];
7796 : 0 : if (tree_nop_convert (_q50, _q50_pops))
7797 : : {
7798 : 0 : tree _q60 = _q50_pops[0];
7799 : 0 : switch (TREE_CODE (_q60))
7800 : : {
7801 : 0 : case NEGATE_EXPR:
7802 : 0 : {
7803 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
7804 : 0 : switch (TREE_CODE (_q70))
7805 : : {
7806 : 0 : CASE_CONVERT:
7807 : 0 : {
7808 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
7809 : 0 : switch (TREE_CODE (_q80))
7810 : : {
7811 : 0 : case LT_EXPR:
7812 : 0 : {
7813 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7814 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7815 : 0 : if ((_q90 == _q20 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q20, 0) && types_match (_q90, _q20)))
7816 : : {
7817 : 0 : if (integer_zerop (_q91))
7818 : : {
7819 : 0 : if (integer_onep (_q51))
7820 : : {
7821 : 0 : {
7822 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
7823 : 0 : tree res = generic_simplify_183 (loc, type, _p0, _p1, captures);
7824 : 0 : if (res) return res;
7825 : : }
7826 : : }
7827 : : }
7828 : : }
7829 : : break;
7830 : : }
7831 : : default:;
7832 : : }
7833 : : break;
7834 : : }
7835 : 0 : case LT_EXPR:
7836 : 0 : {
7837 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
7838 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
7839 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
7840 : : {
7841 : 0 : if (integer_zerop (_q81))
7842 : : {
7843 : 0 : if (integer_onep (_q51))
7844 : : {
7845 : 0 : {
7846 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
7847 : 0 : tree res = generic_simplify_183 (loc, type, _p0, _p1, captures);
7848 : 0 : if (res) return res;
7849 : : }
7850 : : }
7851 : : }
7852 : : }
7853 : : break;
7854 : : }
7855 : : default:;
7856 : : }
7857 : : break;
7858 : : }
7859 : : default:;
7860 : : }
7861 : : }
7862 : : }
7863 : 0 : break;
7864 : : }
7865 : : default:;
7866 : : }
7867 : : }
7868 : : }
7869 : : }
7870 : : }
7871 : 65157412 : {
7872 : 65157412 : tree _p1_pops[1];
7873 : 65157412 : if (tree_nop_convert (_p1, _p1_pops))
7874 : : {
7875 : 7314987 : tree _q30 = _p1_pops[0];
7876 : 7314987 : switch (TREE_CODE (_q30))
7877 : : {
7878 : 0 : case BIT_IOR_EXPR:
7879 : 0 : {
7880 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
7881 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
7882 : 0 : switch (TREE_CODE (_q40))
7883 : : {
7884 : 0 : case NEGATE_EXPR:
7885 : 0 : {
7886 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
7887 : 0 : switch (TREE_CODE (_q50))
7888 : : {
7889 : 0 : CASE_CONVERT:
7890 : 0 : {
7891 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
7892 : 0 : switch (TREE_CODE (_q60))
7893 : : {
7894 : 0 : case LT_EXPR:
7895 : 0 : {
7896 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
7897 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
7898 : 0 : if ((_q70 == _p0 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _p0, 0) && types_match (_q70, _p0)))
7899 : : {
7900 : 0 : if (integer_zerop (_q71))
7901 : : {
7902 : 0 : if (integer_onep (_q41))
7903 : : {
7904 : 0 : {
7905 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
7906 : 0 : tree res = generic_simplify_183 (loc, type, _p0, _p1, captures);
7907 : 0 : if (res) return res;
7908 : : }
7909 : : }
7910 : : }
7911 : : }
7912 : : break;
7913 : : }
7914 : : default:;
7915 : : }
7916 : : break;
7917 : : }
7918 : : default:;
7919 : : }
7920 : : break;
7921 : : }
7922 : 0 : default:;
7923 : : }
7924 : 0 : {
7925 : 0 : tree _q40_pops[1];
7926 : 0 : if (tree_nop_convert (_q40, _q40_pops))
7927 : : {
7928 : 0 : tree _q50 = _q40_pops[0];
7929 : 0 : switch (TREE_CODE (_q50))
7930 : : {
7931 : 0 : case NEGATE_EXPR:
7932 : 0 : {
7933 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
7934 : 0 : switch (TREE_CODE (_q60))
7935 : : {
7936 : 0 : CASE_CONVERT:
7937 : 0 : {
7938 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
7939 : 0 : switch (TREE_CODE (_q70))
7940 : : {
7941 : 0 : case LT_EXPR:
7942 : 0 : {
7943 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
7944 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
7945 : 0 : if ((_q80 == _p0 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _p0, 0) && types_match (_q80, _p0)))
7946 : : {
7947 : 0 : if (integer_zerop (_q81))
7948 : : {
7949 : 0 : if (integer_onep (_q41))
7950 : : {
7951 : 0 : {
7952 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
7953 : 0 : tree res = generic_simplify_183 (loc, type, _p0, _p1, captures);
7954 : 0 : if (res) return res;
7955 : : }
7956 : : }
7957 : : }
7958 : : }
7959 : : break;
7960 : : }
7961 : : default:;
7962 : : }
7963 : : break;
7964 : : }
7965 : : default:;
7966 : : }
7967 : : break;
7968 : : }
7969 : : default:;
7970 : : }
7971 : : }
7972 : : }
7973 : 0 : break;
7974 : : }
7975 : : default:;
7976 : : }
7977 : : }
7978 : : }
7979 : 65157412 : switch (TREE_CODE (_p0))
7980 : : {
7981 : 292 : case BIT_IOR_EXPR:
7982 : 292 : {
7983 : 292 : tree _q20 = TREE_OPERAND (_p0, 0);
7984 : 292 : tree _q21 = TREE_OPERAND (_p0, 1);
7985 : 292 : switch (TREE_CODE (_q20))
7986 : : {
7987 : 1 : case NEGATE_EXPR:
7988 : 1 : {
7989 : 1 : tree _q30 = TREE_OPERAND (_q20, 0);
7990 : 1 : switch (TREE_CODE (_q30))
7991 : : {
7992 : 0 : CASE_CONVERT:
7993 : 0 : {
7994 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
7995 : 0 : switch (TREE_CODE (_q40))
7996 : : {
7997 : 0 : case LT_EXPR:
7998 : 0 : {
7999 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
8000 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
8001 : 0 : if (integer_zerop (_q51))
8002 : : {
8003 : 0 : if (integer_onep (_q21))
8004 : : {
8005 : 0 : {
8006 : 0 : tree _p1_pops[1];
8007 : 0 : if (tree_nop_convert (_p1, _p1_pops))
8008 : : {
8009 : 0 : tree _q90 = _p1_pops[0];
8010 : 0 : if ((_q90 == _q50 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q50, 0) && types_match (_q90, _q50)))
8011 : : {
8012 : 0 : {
8013 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q50 };
8014 : 0 : tree res = generic_simplify_182 (loc, type, _p0, _p1, captures);
8015 : 0 : if (res) return res;
8016 : : }
8017 : : }
8018 : : }
8019 : : }
8020 : 0 : if ((_p1 == _q50 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q50, 0) && types_match (_p1, _q50)))
8021 : : {
8022 : 0 : {
8023 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q50 };
8024 : 0 : tree res = generic_simplify_182 (loc, type, _p0, _p1, captures);
8025 : 0 : if (res) return res;
8026 : : }
8027 : : }
8028 : : }
8029 : : }
8030 : : break;
8031 : : }
8032 : : default:;
8033 : : }
8034 : : break;
8035 : : }
8036 : 1 : case LT_EXPR:
8037 : 1 : {
8038 : 1 : tree _q40 = TREE_OPERAND (_q30, 0);
8039 : 1 : tree _q41 = TREE_OPERAND (_q30, 1);
8040 : 1 : if (integer_zerop (_q41))
8041 : : {
8042 : 1 : if (integer_onep (_q21))
8043 : : {
8044 : 1 : {
8045 : 1 : tree _p1_pops[1];
8046 : 1 : if (tree_nop_convert (_p1, _p1_pops))
8047 : : {
8048 : 0 : tree _q80 = _p1_pops[0];
8049 : 0 : if ((_q80 == _q40 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q40, 0) && types_match (_q80, _q40)))
8050 : : {
8051 : 0 : {
8052 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q40 };
8053 : 0 : tree res = generic_simplify_182 (loc, type, _p0, _p1, captures);
8054 : 0 : if (res) return res;
8055 : : }
8056 : : }
8057 : : }
8058 : : }
8059 : 1 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
8060 : : {
8061 : 1 : {
8062 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _q40 };
8063 : 1 : tree res = generic_simplify_182 (loc, type, _p0, _p1, captures);
8064 : 1 : if (res) return res;
8065 : : }
8066 : : }
8067 : : }
8068 : : }
8069 : : break;
8070 : : }
8071 : : default:;
8072 : : }
8073 : : break;
8074 : : }
8075 : 291 : default:;
8076 : : }
8077 : 291 : {
8078 : 291 : tree _q20_pops[1];
8079 : 291 : if (tree_nop_convert (_q20, _q20_pops))
8080 : : {
8081 : 1 : tree _q30 = _q20_pops[0];
8082 : 1 : switch (TREE_CODE (_q30))
8083 : : {
8084 : 1 : case NEGATE_EXPR:
8085 : 1 : {
8086 : 1 : tree _q40 = TREE_OPERAND (_q30, 0);
8087 : 1 : switch (TREE_CODE (_q40))
8088 : : {
8089 : 0 : CASE_CONVERT:
8090 : 0 : {
8091 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
8092 : 0 : switch (TREE_CODE (_q50))
8093 : : {
8094 : 0 : case LT_EXPR:
8095 : 0 : {
8096 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
8097 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
8098 : 0 : if (integer_zerop (_q61))
8099 : : {
8100 : 0 : if (integer_onep (_q21))
8101 : : {
8102 : 0 : {
8103 : 0 : tree _p1_pops[1];
8104 : 0 : if (tree_nop_convert (_p1, _p1_pops))
8105 : : {
8106 : 0 : tree _q100 = _p1_pops[0];
8107 : 0 : if ((_q100 == _q60 && ! TREE_SIDE_EFFECTS (_q100)) || (operand_equal_p (_q100, _q60, 0) && types_match (_q100, _q60)))
8108 : : {
8109 : 0 : {
8110 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q60 };
8111 : 0 : tree res = generic_simplify_182 (loc, type, _p0, _p1, captures);
8112 : 0 : if (res) return res;
8113 : : }
8114 : : }
8115 : : }
8116 : : }
8117 : 0 : if ((_p1 == _q60 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q60, 0) && types_match (_p1, _q60)))
8118 : : {
8119 : 0 : {
8120 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q60 };
8121 : 0 : tree res = generic_simplify_182 (loc, type, _p0, _p1, captures);
8122 : 0 : if (res) return res;
8123 : : }
8124 : : }
8125 : : }
8126 : : }
8127 : : break;
8128 : : }
8129 : : default:;
8130 : : }
8131 : : break;
8132 : : }
8133 : 1 : case LT_EXPR:
8134 : 1 : {
8135 : 1 : tree _q50 = TREE_OPERAND (_q40, 0);
8136 : 1 : tree _q51 = TREE_OPERAND (_q40, 1);
8137 : 1 : if (integer_zerop (_q51))
8138 : : {
8139 : 1 : if (integer_onep (_q21))
8140 : : {
8141 : 1 : {
8142 : 1 : tree _p1_pops[1];
8143 : 1 : if (tree_nop_convert (_p1, _p1_pops))
8144 : : {
8145 : 1 : tree _q90 = _p1_pops[0];
8146 : 1 : if ((_q90 == _q50 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q50, 0) && types_match (_q90, _q50)))
8147 : : {
8148 : 1 : {
8149 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _q50 };
8150 : 1 : tree res = generic_simplify_182 (loc, type, _p0, _p1, captures);
8151 : 1 : if (res) return res;
8152 : : }
8153 : : }
8154 : : }
8155 : : }
8156 : 0 : if ((_p1 == _q50 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q50, 0) && types_match (_p1, _q50)))
8157 : : {
8158 : 0 : {
8159 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q50 };
8160 : 0 : tree res = generic_simplify_182 (loc, type, _p0, _p1, captures);
8161 : 0 : if (res) return res;
8162 : : }
8163 : : }
8164 : : }
8165 : : }
8166 : : break;
8167 : : }
8168 : : default:;
8169 : : }
8170 : : break;
8171 : : }
8172 : : default:;
8173 : : }
8174 : : }
8175 : : }
8176 : 290 : break;
8177 : : }
8178 : 65157410 : default:;
8179 : : }
8180 : 65157410 : switch (TREE_CODE (_p1))
8181 : : {
8182 : 0 : case BIT_IOR_EXPR:
8183 : 0 : {
8184 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
8185 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
8186 : 0 : switch (TREE_CODE (_q30))
8187 : : {
8188 : 0 : case NEGATE_EXPR:
8189 : 0 : {
8190 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
8191 : 0 : switch (TREE_CODE (_q40))
8192 : : {
8193 : 0 : CASE_CONVERT:
8194 : 0 : {
8195 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
8196 : 0 : switch (TREE_CODE (_q50))
8197 : : {
8198 : 0 : case LT_EXPR:
8199 : 0 : {
8200 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
8201 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
8202 : 0 : if ((_q60 == _p0 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _p0, 0) && types_match (_q60, _p0)))
8203 : : {
8204 : 0 : if (integer_zerop (_q61))
8205 : : {
8206 : 0 : if (integer_onep (_q31))
8207 : : {
8208 : 0 : {
8209 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
8210 : 0 : tree res = generic_simplify_183 (loc, type, _p0, _p1, captures);
8211 : 0 : if (res) return res;
8212 : : }
8213 : : }
8214 : : }
8215 : : }
8216 : : break;
8217 : : }
8218 : : default:;
8219 : : }
8220 : : break;
8221 : : }
8222 : 0 : case LT_EXPR:
8223 : 0 : {
8224 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
8225 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
8226 : 0 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
8227 : : {
8228 : 0 : if (integer_zerop (_q51))
8229 : : {
8230 : 0 : if (integer_onep (_q31))
8231 : : {
8232 : 0 : {
8233 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
8234 : 0 : tree res = generic_simplify_183 (loc, type, _p0, _p1, captures);
8235 : 0 : if (res) return res;
8236 : : }
8237 : : }
8238 : : }
8239 : : }
8240 : : break;
8241 : : }
8242 : : default:;
8243 : : }
8244 : : break;
8245 : : }
8246 : 0 : default:;
8247 : : }
8248 : 0 : {
8249 : 0 : tree _q30_pops[1];
8250 : 0 : if (tree_nop_convert (_q30, _q30_pops))
8251 : : {
8252 : 0 : tree _q40 = _q30_pops[0];
8253 : 0 : switch (TREE_CODE (_q40))
8254 : : {
8255 : 0 : case NEGATE_EXPR:
8256 : 0 : {
8257 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
8258 : 0 : switch (TREE_CODE (_q50))
8259 : : {
8260 : 0 : CASE_CONVERT:
8261 : 0 : {
8262 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
8263 : 0 : switch (TREE_CODE (_q60))
8264 : : {
8265 : 0 : case LT_EXPR:
8266 : 0 : {
8267 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
8268 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
8269 : 0 : if ((_q70 == _p0 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _p0, 0) && types_match (_q70, _p0)))
8270 : : {
8271 : 0 : if (integer_zerop (_q71))
8272 : : {
8273 : 0 : if (integer_onep (_q31))
8274 : : {
8275 : 0 : {
8276 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
8277 : 0 : tree res = generic_simplify_183 (loc, type, _p0, _p1, captures);
8278 : 0 : if (res) return res;
8279 : : }
8280 : : }
8281 : : }
8282 : : }
8283 : : break;
8284 : : }
8285 : : default:;
8286 : : }
8287 : : break;
8288 : : }
8289 : 0 : case LT_EXPR:
8290 : 0 : {
8291 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
8292 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
8293 : 0 : if ((_q60 == _p0 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _p0, 0) && types_match (_q60, _p0)))
8294 : : {
8295 : 0 : if (integer_zerop (_q61))
8296 : : {
8297 : 0 : if (integer_onep (_q31))
8298 : : {
8299 : 0 : {
8300 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
8301 : 0 : tree res = generic_simplify_183 (loc, type, _p0, _p1, captures);
8302 : 0 : if (res) return res;
8303 : : }
8304 : : }
8305 : : }
8306 : : }
8307 : : break;
8308 : : }
8309 : : default:;
8310 : : }
8311 : : break;
8312 : : }
8313 : : default:;
8314 : : }
8315 : : }
8316 : : }
8317 : 0 : break;
8318 : : }
8319 : 65157410 : default:;
8320 : : }
8321 : 65157410 : {
8322 : 65157410 : tree _p1_pops[1];
8323 : 65157410 : if (tree_nop_convert (_p1, _p1_pops))
8324 : : {
8325 : 7314986 : tree _q30 = _p1_pops[0];
8326 : 7314986 : switch (TREE_CODE (_q30))
8327 : : {
8328 : 0 : case BIT_IOR_EXPR:
8329 : 0 : {
8330 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
8331 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
8332 : 0 : switch (TREE_CODE (_q40))
8333 : : {
8334 : 0 : case NEGATE_EXPR:
8335 : 0 : {
8336 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
8337 : 0 : switch (TREE_CODE (_q50))
8338 : : {
8339 : 0 : case LT_EXPR:
8340 : 0 : {
8341 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
8342 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
8343 : 0 : if ((_q60 == _p0 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _p0, 0) && types_match (_q60, _p0)))
8344 : : {
8345 : 0 : if (integer_zerop (_q61))
8346 : : {
8347 : 0 : if (integer_onep (_q41))
8348 : : {
8349 : 0 : {
8350 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
8351 : 0 : tree res = generic_simplify_183 (loc, type, _p0, _p1, captures);
8352 : 0 : if (res) return res;
8353 : : }
8354 : : }
8355 : : }
8356 : : }
8357 : : break;
8358 : : }
8359 : : default:;
8360 : : }
8361 : : break;
8362 : : }
8363 : 0 : default:;
8364 : : }
8365 : 0 : {
8366 : 0 : tree _q40_pops[1];
8367 : 0 : if (tree_nop_convert (_q40, _q40_pops))
8368 : : {
8369 : 0 : tree _q50 = _q40_pops[0];
8370 : 0 : switch (TREE_CODE (_q50))
8371 : : {
8372 : 0 : case NEGATE_EXPR:
8373 : 0 : {
8374 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
8375 : 0 : switch (TREE_CODE (_q60))
8376 : : {
8377 : 0 : case LT_EXPR:
8378 : 0 : {
8379 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
8380 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
8381 : 0 : if ((_q70 == _p0 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _p0, 0) && types_match (_q70, _p0)))
8382 : : {
8383 : 0 : if (integer_zerop (_q71))
8384 : : {
8385 : 0 : if (integer_onep (_q41))
8386 : : {
8387 : 0 : {
8388 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
8389 : 0 : tree res = generic_simplify_183 (loc, type, _p0, _p1, captures);
8390 : 0 : if (res) return res;
8391 : : }
8392 : : }
8393 : : }
8394 : : }
8395 : : break;
8396 : : }
8397 : : default:;
8398 : : }
8399 : : break;
8400 : : }
8401 : : default:;
8402 : : }
8403 : : }
8404 : : }
8405 : 0 : break;
8406 : : }
8407 : : default:;
8408 : : }
8409 : : }
8410 : : }
8411 : 65157410 : switch (TREE_CODE (_p0))
8412 : : {
8413 : 30532308 : CASE_CONVERT:
8414 : 30532308 : {
8415 : 30532308 : tree _q20 = TREE_OPERAND (_p0, 0);
8416 : 30532308 : switch (TREE_CODE (_q20))
8417 : : {
8418 : 75443 : case NEGATE_EXPR:
8419 : 75443 : {
8420 : 75443 : tree _q30 = TREE_OPERAND (_q20, 0);
8421 : 75443 : switch (TREE_CODE (_p1))
8422 : : {
8423 : 335 : CASE_CONVERT:
8424 : 335 : {
8425 : 335 : tree _q50 = TREE_OPERAND (_p1, 0);
8426 : 335 : if (tree_negate_expr_p (_q50))
8427 : : {
8428 : 0 : {
8429 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q50 };
8430 : 0 : tree res = generic_simplify_184 (loc, type, _p0, _p1, captures);
8431 : 0 : if (res) return res;
8432 : : }
8433 : : }
8434 : : break;
8435 : : }
8436 : 75443 : default:;
8437 : : }
8438 : 75443 : if (tree_negate_expr_p (_p1))
8439 : : {
8440 : 74873 : {
8441 : 74873 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p1 };
8442 : 74873 : tree res = generic_simplify_184 (loc, type, _p0, _p1, captures);
8443 : 74873 : if (res) return res;
8444 : : }
8445 : : }
8446 : : break;
8447 : : }
8448 : 4 : case LT_EXPR:
8449 : 4 : {
8450 : 4 : tree _q30 = TREE_OPERAND (_q20, 0);
8451 : 4 : tree _q31 = TREE_OPERAND (_q20, 1);
8452 : 4 : {
8453 : 4 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _p1 };
8454 : 4 : tree res = generic_simplify_185 (loc, type, _p0, _p1, captures, LT_EXPR);
8455 : 4 : if (res) return res;
8456 : : }
8457 : 4 : break;
8458 : : }
8459 : 6 : case LE_EXPR:
8460 : 6 : {
8461 : 6 : tree _q30 = TREE_OPERAND (_q20, 0);
8462 : 6 : tree _q31 = TREE_OPERAND (_q20, 1);
8463 : 6 : {
8464 : 6 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _p1 };
8465 : 6 : tree res = generic_simplify_185 (loc, type, _p0, _p1, captures, LE_EXPR);
8466 : 6 : if (res) return res;
8467 : : }
8468 : 6 : break;
8469 : : }
8470 : 1 : case EQ_EXPR:
8471 : 1 : {
8472 : 1 : tree _q30 = TREE_OPERAND (_q20, 0);
8473 : 1 : tree _q31 = TREE_OPERAND (_q20, 1);
8474 : 1 : {
8475 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _p1 };
8476 : 1 : tree res = generic_simplify_185 (loc, type, _p0, _p1, captures, EQ_EXPR);
8477 : 1 : if (res) return res;
8478 : : }
8479 : 1 : break;
8480 : : }
8481 : 1157 : case NE_EXPR:
8482 : 1157 : {
8483 : 1157 : tree _q30 = TREE_OPERAND (_q20, 0);
8484 : 1157 : tree _q31 = TREE_OPERAND (_q20, 1);
8485 : 1157 : {
8486 : 1157 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _p1 };
8487 : 1157 : tree res = generic_simplify_185 (loc, type, _p0, _p1, captures, NE_EXPR);
8488 : 1157 : if (res) return res;
8489 : : }
8490 : 1157 : break;
8491 : : }
8492 : 19 : case GE_EXPR:
8493 : 19 : {
8494 : 19 : tree _q30 = TREE_OPERAND (_q20, 0);
8495 : 19 : tree _q31 = TREE_OPERAND (_q20, 1);
8496 : 19 : {
8497 : 19 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _p1 };
8498 : 19 : tree res = generic_simplify_185 (loc, type, _p0, _p1, captures, GE_EXPR);
8499 : 19 : if (res) return res;
8500 : : }
8501 : 19 : break;
8502 : : }
8503 : 19 : case GT_EXPR:
8504 : 19 : {
8505 : 19 : tree _q30 = TREE_OPERAND (_q20, 0);
8506 : 19 : tree _q31 = TREE_OPERAND (_q20, 1);
8507 : 19 : {
8508 : 19 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _p1 };
8509 : 19 : tree res = generic_simplify_185 (loc, type, _p0, _p1, captures, GT_EXPR);
8510 : 19 : if (res) return res;
8511 : : }
8512 : 19 : break;
8513 : : }
8514 : 0 : case UNORDERED_EXPR:
8515 : 0 : {
8516 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8517 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8518 : 0 : {
8519 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _p1 };
8520 : 0 : tree res = generic_simplify_185 (loc, type, _p0, _p1, captures, UNORDERED_EXPR);
8521 : 0 : if (res) return res;
8522 : : }
8523 : 0 : break;
8524 : : }
8525 : 0 : case ORDERED_EXPR:
8526 : 0 : {
8527 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8528 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8529 : 0 : {
8530 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _p1 };
8531 : 0 : tree res = generic_simplify_185 (loc, type, _p0, _p1, captures, ORDERED_EXPR);
8532 : 0 : if (res) return res;
8533 : : }
8534 : 0 : break;
8535 : : }
8536 : 0 : case UNLT_EXPR:
8537 : 0 : {
8538 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8539 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8540 : 0 : {
8541 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _p1 };
8542 : 0 : tree res = generic_simplify_185 (loc, type, _p0, _p1, captures, UNLT_EXPR);
8543 : 0 : if (res) return res;
8544 : : }
8545 : 0 : break;
8546 : : }
8547 : 0 : case UNLE_EXPR:
8548 : 0 : {
8549 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8550 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8551 : 0 : {
8552 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _p1 };
8553 : 0 : tree res = generic_simplify_185 (loc, type, _p0, _p1, captures, UNLE_EXPR);
8554 : 0 : if (res) return res;
8555 : : }
8556 : 0 : break;
8557 : : }
8558 : 0 : case UNGT_EXPR:
8559 : 0 : {
8560 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8561 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8562 : 0 : {
8563 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _p1 };
8564 : 0 : tree res = generic_simplify_185 (loc, type, _p0, _p1, captures, UNGT_EXPR);
8565 : 0 : if (res) return res;
8566 : : }
8567 : 0 : break;
8568 : : }
8569 : 0 : case UNGE_EXPR:
8570 : 0 : {
8571 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8572 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8573 : 0 : {
8574 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _p1 };
8575 : 0 : tree res = generic_simplify_185 (loc, type, _p0, _p1, captures, UNGE_EXPR);
8576 : 0 : if (res) return res;
8577 : : }
8578 : 0 : break;
8579 : : }
8580 : 0 : case UNEQ_EXPR:
8581 : 0 : {
8582 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8583 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8584 : 0 : {
8585 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _p1 };
8586 : 0 : tree res = generic_simplify_185 (loc, type, _p0, _p1, captures, UNEQ_EXPR);
8587 : 0 : if (res) return res;
8588 : : }
8589 : 0 : break;
8590 : : }
8591 : 0 : case LTGT_EXPR:
8592 : 0 : {
8593 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8594 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8595 : 0 : {
8596 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _p1 };
8597 : 0 : tree res = generic_simplify_185 (loc, type, _p0, _p1, captures, LTGT_EXPR);
8598 : 0 : if (res) return res;
8599 : : }
8600 : 0 : break;
8601 : : }
8602 : 30523547 : default:;
8603 : : }
8604 : 30523547 : if (tree_negate_expr_p (_q20))
8605 : : {
8606 : 82315 : switch (TREE_CODE (_p1))
8607 : : {
8608 : 2502 : CASE_CONVERT:
8609 : 2502 : {
8610 : 2502 : tree _q40 = TREE_OPERAND (_p1, 0);
8611 : 2502 : switch (TREE_CODE (_q40))
8612 : : {
8613 : 0 : case NEGATE_EXPR:
8614 : 0 : {
8615 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
8616 : 0 : {
8617 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q50, _q20 };
8618 : 0 : tree res = generic_simplify_184 (loc, type, _p0, _p1, captures);
8619 : 0 : if (res) return res;
8620 : : }
8621 : 0 : break;
8622 : : }
8623 : : default:;
8624 : : }
8625 : : break;
8626 : : }
8627 : 6 : case NEGATE_EXPR:
8628 : 6 : {
8629 : 6 : tree _q40 = TREE_OPERAND (_p1, 0);
8630 : 6 : {
8631 : 6 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q20 };
8632 : 6 : tree res = generic_simplify_184 (loc, type, _p0, _p1, captures);
8633 : 6 : if (res) return res;
8634 : : }
8635 : 0 : break;
8636 : : }
8637 : : default:;
8638 : : }
8639 : : }
8640 : : break;
8641 : : }
8642 : 445275 : case NEGATE_EXPR:
8643 : 445275 : {
8644 : 445275 : tree _q20 = TREE_OPERAND (_p0, 0);
8645 : 445275 : switch (TREE_CODE (_p1))
8646 : : {
8647 : 161381 : CASE_CONVERT:
8648 : 161381 : {
8649 : 161381 : tree _q40 = TREE_OPERAND (_p1, 0);
8650 : 161381 : if (tree_negate_expr_p (_q40))
8651 : : {
8652 : 0 : {
8653 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
8654 : 0 : tree res = generic_simplify_184 (loc, type, _p0, _p1, captures);
8655 : 0 : if (res) return res;
8656 : : }
8657 : : }
8658 : : break;
8659 : : }
8660 : 445275 : default:;
8661 : : }
8662 : 445275 : if (tree_negate_expr_p (_p1))
8663 : : {
8664 : 21207 : {
8665 : 21207 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
8666 : 21207 : tree res = generic_simplify_184 (loc, type, _p0, _p1, captures);
8667 : 21207 : if (res) return res;
8668 : : }
8669 : : }
8670 : : break;
8671 : : }
8672 : 65127436 : default:;
8673 : : }
8674 : 65127436 : if (tree_negate_expr_p (_p0))
8675 : : {
8676 : 680006 : switch (TREE_CODE (_p1))
8677 : : {
8678 : 165845 : CASE_CONVERT:
8679 : 165845 : {
8680 : 165845 : tree _q30 = TREE_OPERAND (_p1, 0);
8681 : 165845 : switch (TREE_CODE (_q30))
8682 : : {
8683 : 0 : case NEGATE_EXPR:
8684 : 0 : {
8685 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
8686 : 0 : {
8687 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _p0 };
8688 : 0 : tree res = generic_simplify_184 (loc, type, _p0, _p1, captures);
8689 : 0 : if (res) return res;
8690 : : }
8691 : 0 : break;
8692 : : }
8693 : : default:;
8694 : : }
8695 : : break;
8696 : : }
8697 : 6 : case NEGATE_EXPR:
8698 : 6 : {
8699 : 6 : tree _q30 = TREE_OPERAND (_p1, 0);
8700 : 6 : {
8701 : 6 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p0 };
8702 : 6 : tree res = generic_simplify_184 (loc, type, _p0, _p1, captures);
8703 : 6 : if (res) return res;
8704 : : }
8705 : 0 : break;
8706 : : }
8707 : : default:;
8708 : : }
8709 : : }
8710 : 65127430 : if (tree_zero_one_valued_p (_p0))
8711 : : {
8712 : 174669 : if (tree_zero_one_valued_p (_p1))
8713 : : {
8714 : 3063 : {
8715 : 3063 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
8716 : 3063 : if (INTEGRAL_TYPE_P (type)
8717 : : )
8718 : : {
8719 : 3063 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1530;
8720 : 3063 : {
8721 : 3063 : tree res_op0;
8722 : 3063 : res_op0 = captures[0];
8723 : 3063 : tree res_op1;
8724 : 3063 : res_op1 = captures[1];
8725 : 3063 : tree _r;
8726 : 3063 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
8727 : 3063 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 983, __FILE__, __LINE__, true);
8728 : 3063 : return _r;
8729 : : }
8730 : 0 : next_after_fail1530:;
8731 : : }
8732 : : }
8733 : : }
8734 : : }
8735 : 65124367 : switch (TREE_CODE (_p1))
8736 : : {
8737 : 7370303 : CASE_CONVERT:
8738 : 7370303 : {
8739 : 7370303 : tree _q30 = TREE_OPERAND (_p1, 0);
8740 : 7370303 : switch (TREE_CODE (_q30))
8741 : : {
8742 : 0 : case LT_EXPR:
8743 : 0 : {
8744 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
8745 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
8746 : 0 : {
8747 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p0 };
8748 : 0 : tree res = generic_simplify_186 (loc, type, _p0, _p1, captures, LT_EXPR);
8749 : 0 : if (res) return res;
8750 : : }
8751 : 0 : break;
8752 : : }
8753 : 0 : case LE_EXPR:
8754 : 0 : {
8755 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
8756 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
8757 : 0 : {
8758 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p0 };
8759 : 0 : tree res = generic_simplify_186 (loc, type, _p0, _p1, captures, LE_EXPR);
8760 : 0 : if (res) return res;
8761 : : }
8762 : 0 : break;
8763 : : }
8764 : 0 : case EQ_EXPR:
8765 : 0 : {
8766 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
8767 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
8768 : 0 : {
8769 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p0 };
8770 : 0 : tree res = generic_simplify_186 (loc, type, _p0, _p1, captures, EQ_EXPR);
8771 : 0 : if (res) return res;
8772 : : }
8773 : 0 : break;
8774 : : }
8775 : 0 : case NE_EXPR:
8776 : 0 : {
8777 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
8778 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
8779 : 0 : {
8780 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p0 };
8781 : 0 : tree res = generic_simplify_186 (loc, type, _p0, _p1, captures, NE_EXPR);
8782 : 0 : if (res) return res;
8783 : : }
8784 : 0 : break;
8785 : : }
8786 : 0 : case GE_EXPR:
8787 : 0 : {
8788 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
8789 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
8790 : 0 : {
8791 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p0 };
8792 : 0 : tree res = generic_simplify_186 (loc, type, _p0, _p1, captures, GE_EXPR);
8793 : 0 : if (res) return res;
8794 : : }
8795 : 0 : break;
8796 : : }
8797 : 0 : case GT_EXPR:
8798 : 0 : {
8799 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
8800 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
8801 : 0 : {
8802 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p0 };
8803 : 0 : tree res = generic_simplify_186 (loc, type, _p0, _p1, captures, GT_EXPR);
8804 : 0 : if (res) return res;
8805 : : }
8806 : 0 : break;
8807 : : }
8808 : 0 : case UNORDERED_EXPR:
8809 : 0 : {
8810 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
8811 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
8812 : 0 : {
8813 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p0 };
8814 : 0 : tree res = generic_simplify_186 (loc, type, _p0, _p1, captures, UNORDERED_EXPR);
8815 : 0 : if (res) return res;
8816 : : }
8817 : 0 : break;
8818 : : }
8819 : 0 : case ORDERED_EXPR:
8820 : 0 : {
8821 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
8822 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
8823 : 0 : {
8824 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p0 };
8825 : 0 : tree res = generic_simplify_186 (loc, type, _p0, _p1, captures, ORDERED_EXPR);
8826 : 0 : if (res) return res;
8827 : : }
8828 : 0 : break;
8829 : : }
8830 : 0 : case UNLT_EXPR:
8831 : 0 : {
8832 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
8833 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
8834 : 0 : {
8835 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p0 };
8836 : 0 : tree res = generic_simplify_186 (loc, type, _p0, _p1, captures, UNLT_EXPR);
8837 : 0 : if (res) return res;
8838 : : }
8839 : 0 : break;
8840 : : }
8841 : 0 : case UNLE_EXPR:
8842 : 0 : {
8843 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
8844 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
8845 : 0 : {
8846 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p0 };
8847 : 0 : tree res = generic_simplify_186 (loc, type, _p0, _p1, captures, UNLE_EXPR);
8848 : 0 : if (res) return res;
8849 : : }
8850 : 0 : break;
8851 : : }
8852 : 0 : case UNGT_EXPR:
8853 : 0 : {
8854 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
8855 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
8856 : 0 : {
8857 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p0 };
8858 : 0 : tree res = generic_simplify_186 (loc, type, _p0, _p1, captures, UNGT_EXPR);
8859 : 0 : if (res) return res;
8860 : : }
8861 : 0 : break;
8862 : : }
8863 : 0 : case UNGE_EXPR:
8864 : 0 : {
8865 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
8866 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
8867 : 0 : {
8868 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p0 };
8869 : 0 : tree res = generic_simplify_186 (loc, type, _p0, _p1, captures, UNGE_EXPR);
8870 : 0 : if (res) return res;
8871 : : }
8872 : 0 : break;
8873 : : }
8874 : 0 : case UNEQ_EXPR:
8875 : 0 : {
8876 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
8877 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
8878 : 0 : {
8879 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p0 };
8880 : 0 : tree res = generic_simplify_186 (loc, type, _p0, _p1, captures, UNEQ_EXPR);
8881 : 0 : if (res) return res;
8882 : : }
8883 : 0 : break;
8884 : : }
8885 : 0 : case LTGT_EXPR:
8886 : 0 : {
8887 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
8888 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
8889 : 0 : {
8890 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p0 };
8891 : 0 : tree res = generic_simplify_186 (loc, type, _p0, _p1, captures, LTGT_EXPR);
8892 : 0 : if (res) return res;
8893 : : }
8894 : 0 : break;
8895 : : }
8896 : : default:;
8897 : : }
8898 : : break;
8899 : : }
8900 : 65124367 : default:;
8901 : : }
8902 : 65124367 : switch (TREE_CODE (_p0))
8903 : : {
8904 : 3 : case MIN_EXPR:
8905 : 3 : {
8906 : 3 : tree _q20 = TREE_OPERAND (_p0, 0);
8907 : 3 : tree _q21 = TREE_OPERAND (_p0, 1);
8908 : 3 : switch (TREE_CODE (_p1))
8909 : : {
8910 : 0 : case MAX_EXPR:
8911 : 0 : {
8912 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
8913 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
8914 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8915 : : {
8916 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8917 : : {
8918 : 0 : {
8919 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8920 : 0 : if (!HONOR_NANS (captures[0])
8921 : : )
8922 : : {
8923 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1531;
8924 : 0 : {
8925 : 0 : tree res_op0;
8926 : 0 : res_op0 = captures[0];
8927 : 0 : tree res_op1;
8928 : 0 : res_op1 = captures[1];
8929 : 0 : tree _r;
8930 : 0 : _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
8931 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 898, __FILE__, __LINE__, true);
8932 : 0 : return _r;
8933 : : }
8934 : 0 : next_after_fail1531:;
8935 : : }
8936 : : }
8937 : : }
8938 : : }
8939 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
8940 : : {
8941 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
8942 : : {
8943 : 0 : {
8944 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
8945 : 0 : if (!HONOR_NANS (captures[0])
8946 : : )
8947 : : {
8948 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1532;
8949 : 0 : {
8950 : 0 : tree res_op0;
8951 : 0 : res_op0 = captures[0];
8952 : 0 : tree res_op1;
8953 : 0 : res_op1 = captures[1];
8954 : 0 : tree _r;
8955 : 0 : _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
8956 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 898, __FILE__, __LINE__, true);
8957 : 0 : return _r;
8958 : : }
8959 : 0 : next_after_fail1532:;
8960 : : }
8961 : : }
8962 : : }
8963 : : }
8964 : : break;
8965 : : }
8966 : : default:;
8967 : : }
8968 : : break;
8969 : : }
8970 : 136 : case MAX_EXPR:
8971 : 136 : {
8972 : 136 : tree _q20 = TREE_OPERAND (_p0, 0);
8973 : 136 : tree _q21 = TREE_OPERAND (_p0, 1);
8974 : 136 : switch (TREE_CODE (_p1))
8975 : : {
8976 : 0 : case MIN_EXPR:
8977 : 0 : {
8978 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
8979 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
8980 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8981 : : {
8982 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8983 : : {
8984 : 0 : {
8985 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8986 : 0 : if (!HONOR_NANS (captures[0])
8987 : : )
8988 : : {
8989 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1533;
8990 : 0 : {
8991 : 0 : tree res_op0;
8992 : 0 : res_op0 = captures[0];
8993 : 0 : tree res_op1;
8994 : 0 : res_op1 = captures[1];
8995 : 0 : tree _r;
8996 : 0 : _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
8997 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 898, __FILE__, __LINE__, true);
8998 : 0 : return _r;
8999 : : }
9000 : 0 : next_after_fail1533:;
9001 : : }
9002 : : }
9003 : : }
9004 : : }
9005 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9006 : : {
9007 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9008 : : {
9009 : 0 : {
9010 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9011 : 0 : if (!HONOR_NANS (captures[0])
9012 : : )
9013 : : {
9014 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1534;
9015 : 0 : {
9016 : 0 : tree res_op0;
9017 : 0 : res_op0 = captures[0];
9018 : 0 : tree res_op1;
9019 : 0 : res_op1 = captures[1];
9020 : 0 : tree _r;
9021 : 0 : _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
9022 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 898, __FILE__, __LINE__, true);
9023 : 0 : return _r;
9024 : : }
9025 : 0 : next_after_fail1534:;
9026 : : }
9027 : : }
9028 : : }
9029 : : }
9030 : : break;
9031 : : }
9032 : : default:;
9033 : : }
9034 : : break;
9035 : : }
9036 : 30520479 : CASE_CONVERT:
9037 : 30520479 : {
9038 : 30520479 : tree _q20 = TREE_OPERAND (_p0, 0);
9039 : 30520479 : switch (TREE_CODE (_q20))
9040 : : {
9041 : 82 : case BIT_AND_EXPR:
9042 : 82 : {
9043 : 82 : tree _q30 = TREE_OPERAND (_q20, 0);
9044 : 82 : tree _q31 = TREE_OPERAND (_q20, 1);
9045 : 82 : switch (TREE_CODE (_q30))
9046 : : {
9047 : 0 : CASE_CONVERT:
9048 : 0 : {
9049 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
9050 : 0 : switch (TREE_CODE (_q40))
9051 : : {
9052 : 0 : case RSHIFT_EXPR:
9053 : 0 : {
9054 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
9055 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
9056 : 0 : switch (TREE_CODE (_q51))
9057 : : {
9058 : 0 : case INTEGER_CST:
9059 : 0 : {
9060 : 0 : switch (TREE_CODE (_q31))
9061 : : {
9062 : 0 : case INTEGER_CST:
9063 : 0 : {
9064 : 0 : switch (TREE_CODE (_p1))
9065 : : {
9066 : 0 : case INTEGER_CST:
9067 : 0 : {
9068 : 0 : {
9069 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q50, _q51, _q31, _p1 };
9070 : 0 : tree res = generic_simplify_187 (loc, type, _p0, _p1, captures);
9071 : 0 : if (res) return res;
9072 : : }
9073 : 0 : break;
9074 : : }
9075 : : default:;
9076 : : }
9077 : : break;
9078 : : }
9079 : : default:;
9080 : : }
9081 : : break;
9082 : : }
9083 : : default:;
9084 : : }
9085 : : break;
9086 : : }
9087 : : default:;
9088 : : }
9089 : : break;
9090 : : }
9091 : : default:;
9092 : : }
9093 : : break;
9094 : : }
9095 : 22406 : case EXACT_DIV_EXPR:
9096 : 22406 : {
9097 : 22406 : tree _q30 = TREE_OPERAND (_q20, 0);
9098 : 22406 : tree _q31 = TREE_OPERAND (_q20, 1);
9099 : 22406 : switch (TREE_CODE (_p1))
9100 : : {
9101 : 0 : CASE_CONVERT:
9102 : 0 : {
9103 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
9104 : 0 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q31, 0))
9105 : : {
9106 : 0 : {
9107 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q31 };
9108 : 0 : tree res = generic_simplify_188 (loc, type, _p0, _p1, captures);
9109 : 0 : if (res) return res;
9110 : : }
9111 : : }
9112 : : break;
9113 : : }
9114 : 22406 : default:;
9115 : : }
9116 : 22406 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q31, 0))
9117 : : {
9118 : 19579 : {
9119 : 19579 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q31 };
9120 : 19579 : tree res = generic_simplify_188 (loc, type, _p0, _p1, captures);
9121 : 19579 : if (res) return res;
9122 : : }
9123 : : }
9124 : 2827 : switch (TREE_CODE (_q31))
9125 : : {
9126 : 2827 : case INTEGER_CST:
9127 : 2827 : {
9128 : 2827 : if (poly_int_tree_p (_p1))
9129 : : {
9130 : 2827 : {
9131 : 2827 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
9132 : 2827 : tree res = generic_simplify_189 (loc, type, _p0, _p1, captures);
9133 : 2827 : if (res) return res;
9134 : : }
9135 : : }
9136 : : break;
9137 : : }
9138 : : default:;
9139 : : }
9140 : : break;
9141 : : }
9142 : 1321502 : case PLUS_EXPR:
9143 : 1321502 : {
9144 : 1321502 : tree _q30 = TREE_OPERAND (_q20, 0);
9145 : 1321502 : tree _q31 = TREE_OPERAND (_q20, 1);
9146 : 1321502 : switch (TREE_CODE (_q30))
9147 : : {
9148 : 173416 : CASE_CONVERT:
9149 : 173416 : {
9150 : 173416 : tree _q40 = TREE_OPERAND (_q30, 0);
9151 : 173416 : switch (TREE_CODE (_q40))
9152 : : {
9153 : 0 : case EXACT_DIV_EXPR:
9154 : 0 : {
9155 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
9156 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
9157 : 0 : switch (TREE_CODE (_q51))
9158 : : {
9159 : 0 : case INTEGER_CST:
9160 : 0 : {
9161 : 0 : if (poly_int_tree_p (_q31))
9162 : : {
9163 : 0 : if (poly_int_tree_p (_p1))
9164 : : {
9165 : 0 : {
9166 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q50, _q51, _q31, _p1 };
9167 : 0 : tree res = generic_simplify_190 (loc, type, _p0, _p1, captures, PLUS_EXPR);
9168 : 0 : if (res) return res;
9169 : : }
9170 : : }
9171 : : }
9172 : : break;
9173 : : }
9174 : : default:;
9175 : : }
9176 : : break;
9177 : : }
9178 : : default:;
9179 : : }
9180 : : break;
9181 : : }
9182 : 112 : case EXACT_DIV_EXPR:
9183 : 112 : {
9184 : 112 : tree _q40 = TREE_OPERAND (_q30, 0);
9185 : 112 : tree _q41 = TREE_OPERAND (_q30, 1);
9186 : 112 : switch (TREE_CODE (_q41))
9187 : : {
9188 : 112 : case INTEGER_CST:
9189 : 112 : {
9190 : 112 : if (poly_int_tree_p (_q31))
9191 : : {
9192 : 112 : if (poly_int_tree_p (_p1))
9193 : : {
9194 : 112 : {
9195 : 112 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q41, _q31, _p1 };
9196 : 112 : tree res = generic_simplify_190 (loc, type, _p0, _p1, captures, PLUS_EXPR);
9197 : 112 : if (res) return res;
9198 : : }
9199 : : }
9200 : : }
9201 : : break;
9202 : : }
9203 : : default:;
9204 : : }
9205 : : break;
9206 : : }
9207 : : default:;
9208 : : }
9209 : : break;
9210 : : }
9211 : 96247 : case MINUS_EXPR:
9212 : 96247 : {
9213 : 96247 : tree _q30 = TREE_OPERAND (_q20, 0);
9214 : 96247 : tree _q31 = TREE_OPERAND (_q20, 1);
9215 : 96247 : switch (TREE_CODE (_q30))
9216 : : {
9217 : 25098 : CASE_CONVERT:
9218 : 25098 : {
9219 : 25098 : tree _q40 = TREE_OPERAND (_q30, 0);
9220 : 25098 : switch (TREE_CODE (_q40))
9221 : : {
9222 : 0 : case EXACT_DIV_EXPR:
9223 : 0 : {
9224 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
9225 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
9226 : 0 : switch (TREE_CODE (_q51))
9227 : : {
9228 : 0 : case INTEGER_CST:
9229 : 0 : {
9230 : 0 : if (poly_int_tree_p (_q31))
9231 : : {
9232 : 0 : if (poly_int_tree_p (_p1))
9233 : : {
9234 : 0 : {
9235 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q50, _q51, _q31, _p1 };
9236 : 0 : tree res = generic_simplify_190 (loc, type, _p0, _p1, captures, MINUS_EXPR);
9237 : 0 : if (res) return res;
9238 : : }
9239 : : }
9240 : : }
9241 : : break;
9242 : : }
9243 : : default:;
9244 : : }
9245 : : break;
9246 : : }
9247 : : default:;
9248 : : }
9249 : : break;
9250 : : }
9251 : 0 : case EXACT_DIV_EXPR:
9252 : 0 : {
9253 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
9254 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
9255 : 0 : switch (TREE_CODE (_q41))
9256 : : {
9257 : 0 : case INTEGER_CST:
9258 : 0 : {
9259 : 0 : if (poly_int_tree_p (_q31))
9260 : : {
9261 : 0 : if (poly_int_tree_p (_p1))
9262 : : {
9263 : 0 : {
9264 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q41, _q31, _p1 };
9265 : 0 : tree res = generic_simplify_190 (loc, type, _p0, _p1, captures, MINUS_EXPR);
9266 : 0 : if (res) return res;
9267 : : }
9268 : : }
9269 : : }
9270 : : break;
9271 : : }
9272 : : default:;
9273 : : }
9274 : : break;
9275 : : }
9276 : : default:;
9277 : : }
9278 : : break;
9279 : : }
9280 : : default:;
9281 : : }
9282 : : break;
9283 : : }
9284 : 32263 : case BIT_AND_EXPR:
9285 : 32263 : {
9286 : 32263 : tree _q20 = TREE_OPERAND (_p0, 0);
9287 : 32263 : tree _q21 = TREE_OPERAND (_p0, 1);
9288 : 32263 : switch (TREE_CODE (_q20))
9289 : : {
9290 : 272 : case RSHIFT_EXPR:
9291 : 272 : {
9292 : 272 : tree _q30 = TREE_OPERAND (_q20, 0);
9293 : 272 : tree _q31 = TREE_OPERAND (_q20, 1);
9294 : 272 : switch (TREE_CODE (_q31))
9295 : : {
9296 : 11 : case INTEGER_CST:
9297 : 11 : {
9298 : 11 : switch (TREE_CODE (_q21))
9299 : : {
9300 : 11 : case INTEGER_CST:
9301 : 11 : {
9302 : 11 : switch (TREE_CODE (_p1))
9303 : : {
9304 : 11 : case INTEGER_CST:
9305 : 11 : {
9306 : 11 : {
9307 : 11 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q21, _p1 };
9308 : 11 : tree res = generic_simplify_187 (loc, type, _p0, _p1, captures);
9309 : 11 : if (res) return res;
9310 : : }
9311 : 8 : break;
9312 : : }
9313 : : default:;
9314 : : }
9315 : : break;
9316 : : }
9317 : : default:;
9318 : : }
9319 : : break;
9320 : : }
9321 : : default:;
9322 : : }
9323 : : break;
9324 : : }
9325 : : default:;
9326 : : }
9327 : : break;
9328 : : }
9329 : 160900 : case EXACT_DIV_EXPR:
9330 : 160900 : {
9331 : 160900 : tree _q20 = TREE_OPERAND (_p0, 0);
9332 : 160900 : tree _q21 = TREE_OPERAND (_p0, 1);
9333 : 160900 : switch (TREE_CODE (_p1))
9334 : : {
9335 : 102 : CASE_CONVERT:
9336 : 102 : {
9337 : 102 : tree _q50 = TREE_OPERAND (_p1, 0);
9338 : 102 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q21, 0))
9339 : : {
9340 : 0 : {
9341 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q21 };
9342 : 0 : tree res = generic_simplify_188 (loc, type, _p0, _p1, captures);
9343 : 0 : if (res) return res;
9344 : : }
9345 : : }
9346 : : break;
9347 : : }
9348 : 160900 : default:;
9349 : : }
9350 : 160900 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q21, 0))
9351 : : {
9352 : 16038 : {
9353 : 16038 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q21 };
9354 : 16038 : tree res = generic_simplify_188 (loc, type, _p0, _p1, captures);
9355 : 16038 : if (res) return res;
9356 : : }
9357 : : }
9358 : 144862 : switch (TREE_CODE (_q21))
9359 : : {
9360 : 144862 : case INTEGER_CST:
9361 : 144862 : {
9362 : 144862 : if (poly_int_tree_p (_p1))
9363 : : {
9364 : 144760 : {
9365 : 144760 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
9366 : 144760 : tree res = generic_simplify_189 (loc, type, _p0, _p1, captures);
9367 : 144760 : if (res) return res;
9368 : : }
9369 : : }
9370 : : break;
9371 : : }
9372 : : default:;
9373 : : }
9374 : : break;
9375 : : }
9376 : 7167120 : case PLUS_EXPR:
9377 : 7167120 : {
9378 : 7167120 : tree _q20 = TREE_OPERAND (_p0, 0);
9379 : 7167120 : tree _q21 = TREE_OPERAND (_p0, 1);
9380 : 7167120 : switch (TREE_CODE (_q20))
9381 : : {
9382 : 3306452 : CASE_CONVERT:
9383 : 3306452 : {
9384 : 3306452 : tree _q30 = TREE_OPERAND (_q20, 0);
9385 : 3306452 : switch (TREE_CODE (_q30))
9386 : : {
9387 : 4024 : case EXACT_DIV_EXPR:
9388 : 4024 : {
9389 : 4024 : tree _q40 = TREE_OPERAND (_q30, 0);
9390 : 4024 : tree _q41 = TREE_OPERAND (_q30, 1);
9391 : 4024 : switch (TREE_CODE (_q41))
9392 : : {
9393 : 4024 : case INTEGER_CST:
9394 : 4024 : {
9395 : 4024 : if (poly_int_tree_p (_q21))
9396 : : {
9397 : 4024 : if (poly_int_tree_p (_p1))
9398 : : {
9399 : 4024 : {
9400 : 4024 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q41, _q21, _p1 };
9401 : 4024 : tree res = generic_simplify_190 (loc, type, _p0, _p1, captures, PLUS_EXPR);
9402 : 4024 : if (res) return res;
9403 : : }
9404 : : }
9405 : : }
9406 : : break;
9407 : : }
9408 : : default:;
9409 : : }
9410 : : break;
9411 : : }
9412 : : default:;
9413 : : }
9414 : : break;
9415 : : }
9416 : 0 : case EXACT_DIV_EXPR:
9417 : 0 : {
9418 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
9419 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
9420 : 0 : switch (TREE_CODE (_q31))
9421 : : {
9422 : 0 : case INTEGER_CST:
9423 : 0 : {
9424 : 0 : if (poly_int_tree_p (_q21))
9425 : : {
9426 : 0 : if (poly_int_tree_p (_p1))
9427 : : {
9428 : 0 : {
9429 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q21, _p1 };
9430 : 0 : tree res = generic_simplify_190 (loc, type, _p0, _p1, captures, PLUS_EXPR);
9431 : 0 : if (res) return res;
9432 : : }
9433 : : }
9434 : : }
9435 : : break;
9436 : : }
9437 : : default:;
9438 : : }
9439 : : break;
9440 : : }
9441 : : default:;
9442 : : }
9443 : : break;
9444 : : }
9445 : 1092838 : case MINUS_EXPR:
9446 : 1092838 : {
9447 : 1092838 : tree _q20 = TREE_OPERAND (_p0, 0);
9448 : 1092838 : tree _q21 = TREE_OPERAND (_p0, 1);
9449 : 1092838 : switch (TREE_CODE (_q20))
9450 : : {
9451 : 251562 : CASE_CONVERT:
9452 : 251562 : {
9453 : 251562 : tree _q30 = TREE_OPERAND (_q20, 0);
9454 : 251562 : switch (TREE_CODE (_q30))
9455 : : {
9456 : 0 : case EXACT_DIV_EXPR:
9457 : 0 : {
9458 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
9459 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
9460 : 0 : switch (TREE_CODE (_q41))
9461 : : {
9462 : 0 : case INTEGER_CST:
9463 : 0 : {
9464 : 0 : if (poly_int_tree_p (_q21))
9465 : : {
9466 : 0 : if (poly_int_tree_p (_p1))
9467 : : {
9468 : 0 : {
9469 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q41, _q21, _p1 };
9470 : 0 : tree res = generic_simplify_190 (loc, type, _p0, _p1, captures, MINUS_EXPR);
9471 : 0 : if (res) return res;
9472 : : }
9473 : : }
9474 : : }
9475 : : break;
9476 : : }
9477 : : default:;
9478 : : }
9479 : : break;
9480 : : }
9481 : : default:;
9482 : : }
9483 : : break;
9484 : : }
9485 : 0 : case EXACT_DIV_EXPR:
9486 : 0 : {
9487 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
9488 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
9489 : 0 : switch (TREE_CODE (_q31))
9490 : : {
9491 : 0 : case INTEGER_CST:
9492 : 0 : {
9493 : 0 : if (poly_int_tree_p (_q21))
9494 : : {
9495 : 0 : if (poly_int_tree_p (_p1))
9496 : : {
9497 : 0 : {
9498 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q21, _p1 };
9499 : 0 : tree res = generic_simplify_190 (loc, type, _p0, _p1, captures, MINUS_EXPR);
9500 : 0 : if (res) return res;
9501 : : }
9502 : : }
9503 : : }
9504 : : break;
9505 : : }
9506 : : default:;
9507 : : }
9508 : : break;
9509 : : }
9510 : : default:;
9511 : : }
9512 : : break;
9513 : : }
9514 : 65038492 : default:;
9515 : : }
9516 : 65038492 : if (integer_minus_onep (_p1))
9517 : : {
9518 : 237705 : {
9519 : 237705 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
9520 : 237705 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1535;
9521 : 237705 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1535;
9522 : 237705 : {
9523 : 237705 : tree res_op0;
9524 : 237705 : res_op0 = captures[0];
9525 : 237705 : tree _r;
9526 : 237705 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
9527 : 237705 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 984, __FILE__, __LINE__, true);
9528 : 237705 : return _r;
9529 : : }
9530 : : next_after_fail1535:;
9531 : : }
9532 : : }
9533 : 64800787 : switch (TREE_CODE (_p0))
9534 : : {
9535 : 4892002 : case MULT_EXPR:
9536 : 4892002 : {
9537 : 4892002 : tree _q20 = TREE_OPERAND (_p0, 0);
9538 : 4892002 : tree _q21 = TREE_OPERAND (_p0, 1);
9539 : 4892002 : switch (TREE_CODE (_q21))
9540 : : {
9541 : 100159 : case INTEGER_CST:
9542 : 100159 : {
9543 : 100159 : {
9544 : 100159 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
9545 : 100159 : tree res = generic_simplify_191 (loc, type, _p0, _p1, captures);
9546 : 100159 : if (res) return res;
9547 : : }
9548 : 30 : break;
9549 : : }
9550 : : default:;
9551 : : }
9552 : : break;
9553 : : }
9554 : 64700658 : default:;
9555 : : }
9556 : 64700658 : switch (TREE_CODE (_p1))
9557 : : {
9558 : 23324 : case MULT_EXPR:
9559 : 23324 : {
9560 : 23324 : tree _q30 = TREE_OPERAND (_p1, 0);
9561 : 23324 : tree _q31 = TREE_OPERAND (_p1, 1);
9562 : 23324 : switch (TREE_CODE (_q31))
9563 : : {
9564 : 17069 : case INTEGER_CST:
9565 : 17069 : {
9566 : 17069 : {
9567 : 17069 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q30, _q31, _p0 };
9568 : 17069 : tree res = generic_simplify_191 (loc, type, _p0, _p1, captures);
9569 : 17069 : if (res) return res;
9570 : : }
9571 : 0 : break;
9572 : : }
9573 : : default:;
9574 : : }
9575 : : break;
9576 : : }
9577 : 64683589 : default:;
9578 : : }
9579 : 64683589 : switch (TREE_CODE (_p0))
9580 : : {
9581 : 36 : case VEC_COND_EXPR:
9582 : 36 : {
9583 : 36 : tree _q20 = TREE_OPERAND (_p0, 0);
9584 : 36 : tree _q21 = TREE_OPERAND (_p0, 1);
9585 : 36 : tree _q22 = TREE_OPERAND (_p0, 2);
9586 : 36 : switch (TREE_CODE (_p1))
9587 : : {
9588 : 0 : case VEC_COND_EXPR:
9589 : 0 : {
9590 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
9591 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
9592 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
9593 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
9594 : : {
9595 : 0 : {
9596 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
9597 : 0 : if (VECTOR_TYPE_P (type)
9598 : 0 : && (TREE_CODE_CLASS (MULT_EXPR) != tcc_comparison
9599 : : || types_match (type, TREE_TYPE (captures[2]))
9600 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
9601 : : || (optimize_vectors_before_lowering_p ()
9602 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
9603 : : )
9604 : : {
9605 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1536;
9606 : 0 : {
9607 : 0 : tree res_op0;
9608 : 0 : res_op0 = captures[1];
9609 : 0 : tree res_op1;
9610 : 0 : {
9611 : 0 : tree _o1[2], _r1;
9612 : 0 : _o1[0] = captures[2];
9613 : 0 : _o1[1] = captures[5];
9614 : 0 : _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
9615 : 0 : if (EXPR_P (_r1))
9616 : 0 : goto next_after_fail1536;
9617 : 0 : res_op1 = _r1;
9618 : : }
9619 : 0 : tree res_op2;
9620 : 0 : {
9621 : 0 : tree _o1[2], _r1;
9622 : 0 : _o1[0] = captures[3];
9623 : 0 : _o1[1] = captures[6];
9624 : 0 : _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
9625 : 0 : if (EXPR_P (_r1))
9626 : 0 : goto next_after_fail1536;
9627 : 0 : res_op2 = _r1;
9628 : : }
9629 : 0 : tree _r;
9630 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
9631 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 902, __FILE__, __LINE__, true);
9632 : 0 : return _r;
9633 : : }
9634 : 0 : next_after_fail1536:;
9635 : : }
9636 : : }
9637 : : }
9638 : : break;
9639 : : }
9640 : 36 : default:;
9641 : : }
9642 : 36 : {
9643 : 36 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
9644 : 36 : if (VECTOR_TYPE_P (type)
9645 : 36 : && (TREE_CODE_CLASS (MULT_EXPR) != tcc_comparison
9646 : : || types_match (type, TREE_TYPE (captures[2]))
9647 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
9648 : : || (optimize_vectors_before_lowering_p ()
9649 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
9650 : : )
9651 : : {
9652 : 36 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1537;
9653 : 36 : {
9654 : 36 : if (! tree_invariant_p (captures[4])) goto next_after_fail1537;
9655 : 0 : tree res_op0;
9656 : 0 : res_op0 = captures[1];
9657 : 0 : tree res_op1;
9658 : 0 : {
9659 : 0 : tree _o1[2], _r1;
9660 : 0 : _o1[0] = captures[2];
9661 : 0 : _o1[1] = unshare_expr (captures[4]);
9662 : 0 : _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
9663 : 0 : if (EXPR_P (_r1))
9664 : 0 : goto next_after_fail1537;
9665 : 0 : res_op1 = _r1;
9666 : : }
9667 : 0 : tree res_op2;
9668 : 0 : {
9669 : 0 : tree _o1[2], _r1;
9670 : 0 : _o1[0] = captures[3];
9671 : 0 : _o1[1] = captures[4];
9672 : 0 : _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
9673 : 0 : if (EXPR_P (_r1))
9674 : 0 : goto next_after_fail1537;
9675 : 0 : res_op2 = _r1;
9676 : : }
9677 : 0 : tree _r;
9678 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
9679 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 903, __FILE__, __LINE__, true);
9680 : 0 : return _r;
9681 : : }
9682 : 36 : next_after_fail1537:;
9683 : : }
9684 : : }
9685 : 36 : break;
9686 : : }
9687 : 64683589 : default:;
9688 : : }
9689 : 64683589 : switch (TREE_CODE (_p1))
9690 : : {
9691 : 0 : case VEC_COND_EXPR:
9692 : 0 : {
9693 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
9694 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
9695 : 0 : tree _q32 = TREE_OPERAND (_p1, 2);
9696 : 0 : {
9697 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
9698 : 0 : if (VECTOR_TYPE_P (type)
9699 : 0 : && (TREE_CODE_CLASS (MULT_EXPR) != tcc_comparison
9700 : : || types_match (type, TREE_TYPE (captures[3]))
9701 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
9702 : : || (optimize_vectors_before_lowering_p ()
9703 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
9704 : : )
9705 : : {
9706 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1538;
9707 : 0 : {
9708 : 0 : if (! tree_invariant_p (captures[0])) goto next_after_fail1538;
9709 : 0 : tree res_op0;
9710 : 0 : res_op0 = captures[2];
9711 : 0 : tree res_op1;
9712 : 0 : {
9713 : 0 : tree _o1[2], _r1;
9714 : 0 : _o1[0] = unshare_expr (captures[0]);
9715 : 0 : _o1[1] = captures[3];
9716 : 0 : _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
9717 : 0 : if (EXPR_P (_r1))
9718 : 0 : goto next_after_fail1538;
9719 : 0 : res_op1 = _r1;
9720 : : }
9721 : 0 : tree res_op2;
9722 : 0 : {
9723 : 0 : tree _o1[2], _r1;
9724 : 0 : _o1[0] = captures[0];
9725 : 0 : _o1[1] = captures[4];
9726 : 0 : _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
9727 : 0 : if (EXPR_P (_r1))
9728 : 0 : goto next_after_fail1538;
9729 : 0 : res_op2 = _r1;
9730 : : }
9731 : 0 : tree _r;
9732 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
9733 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 904, __FILE__, __LINE__, true);
9734 : 0 : return _r;
9735 : : }
9736 : 0 : next_after_fail1538:;
9737 : : }
9738 : : }
9739 : 0 : break;
9740 : : }
9741 : 64683589 : default:;
9742 : : }
9743 : 64683589 : switch (TREE_CODE (_p0))
9744 : : {
9745 : 2399 : case REAL_CST:
9746 : 2399 : {
9747 : 2399 : switch (TREE_CODE (_p1))
9748 : : {
9749 : 0 : case CALL_EXPR:
9750 : 0 : switch (get_call_combined_fn (_p1))
9751 : : {
9752 : 0 : case CFN_BUILT_IN_LDEXPF:
9753 : 0 : if (call_expr_nargs (_p1) == 2)
9754 : : {
9755 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
9756 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
9757 : 0 : {
9758 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q31 };
9759 : 0 : tree res = generic_simplify_194 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LDEXPF);
9760 : 0 : if (res) return res;
9761 : : }
9762 : : }
9763 : : break;
9764 : 0 : case CFN_BUILT_IN_LDEXPL:
9765 : 0 : if (call_expr_nargs (_p1) == 2)
9766 : : {
9767 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
9768 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
9769 : 0 : {
9770 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q31 };
9771 : 0 : tree res = generic_simplify_194 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LDEXPL);
9772 : 0 : if (res) return res;
9773 : : }
9774 : : }
9775 : : break;
9776 : 0 : case CFN_LDEXP:
9777 : 0 : if (call_expr_nargs (_p1) == 2)
9778 : : {
9779 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
9780 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
9781 : 0 : {
9782 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q31 };
9783 : 0 : tree res = generic_simplify_194 (loc, type, _p0, _p1, captures, CFN_LDEXP);
9784 : 0 : if (res) return res;
9785 : : }
9786 : : }
9787 : : break;
9788 : 0 : case CFN_BUILT_IN_LDEXP:
9789 : 0 : if (call_expr_nargs (_p1) == 2)
9790 : : {
9791 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
9792 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
9793 : 0 : {
9794 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q31 };
9795 : 0 : tree res = generic_simplify_194 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LDEXP);
9796 : 0 : if (res) return res;
9797 : : }
9798 : : }
9799 : : break;
9800 : : default:;
9801 : : }
9802 : : break;
9803 : : default:;
9804 : : }
9805 : : break;
9806 : : }
9807 : 2502622 : case CALL_EXPR:
9808 : 2502622 : switch (get_call_combined_fn (_p0))
9809 : : {
9810 : 55 : case CFN_BUILT_IN_SQRTF:
9811 : 55 : if (call_expr_nargs (_p0) == 1)
9812 : : {
9813 : 55 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9814 : 55 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
9815 : : {
9816 : 0 : {
9817 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
9818 : 0 : tree res = generic_simplify_192 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTF);
9819 : 0 : if (res) return res;
9820 : : }
9821 : : }
9822 : 55 : switch (TREE_CODE (_p1))
9823 : : {
9824 : 13 : case CALL_EXPR:
9825 : 13 : switch (get_call_combined_fn (_p1))
9826 : : {
9827 : 13 : case CFN_BUILT_IN_SQRTF:
9828 : 13 : if (call_expr_nargs (_p1) == 1)
9829 : : {
9830 : 13 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9831 : 13 : {
9832 : 13 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
9833 : 13 : if (flag_unsafe_math_optimizations
9834 : : )
9835 : : {
9836 : 13 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1539;
9837 : 13 : {
9838 : 13 : tree res_op0;
9839 : 13 : {
9840 : 13 : tree _o1[2], _r1;
9841 : 13 : _o1[0] = captures[1];
9842 : 13 : _o1[1] = captures[3];
9843 : 13 : _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
9844 : 13 : res_op0 = _r1;
9845 : : }
9846 : 13 : tree _r;
9847 : 13 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_SQRTF, type, 1, res_op0);
9848 : 13 : if (!_r)
9849 : 0 : goto next_after_fail1539;
9850 : 13 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 985, __FILE__, __LINE__, true);
9851 : 13 : return _r;
9852 : : }
9853 : 0 : next_after_fail1539:;
9854 : : }
9855 : : }
9856 : : }
9857 : : break;
9858 : : default:;
9859 : : }
9860 : : break;
9861 : : default:;
9862 : : }
9863 : : }
9864 : : break;
9865 : 48 : case CFN_BUILT_IN_SQRTL:
9866 : 48 : if (call_expr_nargs (_p0) == 1)
9867 : : {
9868 : 48 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9869 : 48 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
9870 : : {
9871 : 0 : {
9872 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
9873 : 0 : tree res = generic_simplify_192 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTL);
9874 : 0 : if (res) return res;
9875 : : }
9876 : : }
9877 : 48 : switch (TREE_CODE (_p1))
9878 : : {
9879 : 13 : case CALL_EXPR:
9880 : 13 : switch (get_call_combined_fn (_p1))
9881 : : {
9882 : 13 : case CFN_BUILT_IN_SQRTL:
9883 : 13 : if (call_expr_nargs (_p1) == 1)
9884 : : {
9885 : 13 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9886 : 13 : {
9887 : 13 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
9888 : 13 : if (flag_unsafe_math_optimizations
9889 : : )
9890 : : {
9891 : 13 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1540;
9892 : 13 : {
9893 : 13 : tree res_op0;
9894 : 13 : {
9895 : 13 : tree _o1[2], _r1;
9896 : 13 : _o1[0] = captures[1];
9897 : 13 : _o1[1] = captures[3];
9898 : 13 : _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
9899 : 13 : res_op0 = _r1;
9900 : : }
9901 : 13 : tree _r;
9902 : 13 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_SQRTL, type, 1, res_op0);
9903 : 13 : if (!_r)
9904 : 0 : goto next_after_fail1540;
9905 : 13 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 985, __FILE__, __LINE__, true);
9906 : 13 : return _r;
9907 : : }
9908 : 0 : next_after_fail1540:;
9909 : : }
9910 : : }
9911 : : }
9912 : : break;
9913 : : default:;
9914 : : }
9915 : : break;
9916 : : default:;
9917 : : }
9918 : : }
9919 : : break;
9920 : 287 : case CFN_BUILT_IN_EXP:
9921 : 287 : if (call_expr_nargs (_p0) == 1)
9922 : : {
9923 : 287 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9924 : 287 : switch (TREE_CODE (_p1))
9925 : : {
9926 : 81 : case CALL_EXPR:
9927 : 81 : switch (get_call_combined_fn (_p1))
9928 : : {
9929 : 31 : case CFN_BUILT_IN_EXP:
9930 : 31 : if (call_expr_nargs (_p1) == 1)
9931 : : {
9932 : 31 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9933 : 31 : {
9934 : 31 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
9935 : 31 : if (flag_unsafe_math_optimizations
9936 : : )
9937 : : {
9938 : 27 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1541;
9939 : 27 : {
9940 : 27 : tree res_op0;
9941 : 27 : {
9942 : 27 : tree _o1[2], _r1;
9943 : 27 : _o1[0] = captures[1];
9944 : 27 : _o1[1] = captures[3];
9945 : 27 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
9946 : 27 : res_op0 = _r1;
9947 : : }
9948 : 27 : tree _r;
9949 : 27 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXP, type, 1, res_op0);
9950 : 27 : if (!_r)
9951 : 0 : goto next_after_fail1541;
9952 : 27 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 986, __FILE__, __LINE__, true);
9953 : 27 : return _r;
9954 : : }
9955 : 4 : next_after_fail1541:;
9956 : : }
9957 : : }
9958 : : }
9959 : : break;
9960 : 0 : case CFN_BUILT_IN_POW:
9961 : 0 : if (call_expr_nargs (_p1) == 2)
9962 : : {
9963 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9964 : 0 : tree _q41 = CALL_EXPR_ARG (_p1, 1);
9965 : 0 : switch (TREE_CODE (_q40))
9966 : : {
9967 : 0 : case REAL_CST:
9968 : 0 : {
9969 : 0 : {
9970 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q40, _q41, _p0, _q20 };
9971 : 0 : if (flag_unsafe_math_optimizations
9972 : : )
9973 : : {
9974 : 0 : if (real_compare (GT_EXPR, TREE_REAL_CST_PTR (captures[1]), &dconst0)
9975 : 0 : && real_isfinite (TREE_REAL_CST_PTR (captures[1]))
9976 : : )
9977 : : {
9978 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1542;
9979 : 0 : {
9980 : 0 : tree res_op0;
9981 : 0 : {
9982 : 0 : tree _o1[2], _r1;
9983 : 0 : {
9984 : 0 : tree _o2[2], _r2;
9985 : 0 : {
9986 : 0 : tree _o3[1], _r3;
9987 : 0 : _o3[0] = captures[1];
9988 : 0 : _r3 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_LOG, TREE_TYPE (_o3[0]), 1, _o3[0]);
9989 : 0 : if (!_r3)
9990 : 0 : goto next_after_fail1542;
9991 : 0 : _o2[0] = _r3;
9992 : : }
9993 : 0 : _o2[1] = captures[2];
9994 : 0 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
9995 : 0 : _o1[0] = _r2;
9996 : : }
9997 : 0 : _o1[1] = captures[4];
9998 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
9999 : 0 : res_op0 = _r1;
10000 : : }
10001 : 0 : tree _r;
10002 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXP, type, 1, res_op0);
10003 : 0 : if (!_r)
10004 : 0 : goto next_after_fail1542;
10005 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 987, __FILE__, __LINE__, true);
10006 : 0 : return _r;
10007 : : }
10008 : 0 : next_after_fail1542:;
10009 : : }
10010 : : }
10011 : : }
10012 : 0 : break;
10013 : : }
10014 : : default:;
10015 : : }
10016 : : }
10017 : : break;
10018 : : default:;
10019 : : }
10020 : : break;
10021 : : default:;
10022 : : }
10023 : : }
10024 : : break;
10025 : 123 : case CFN_BUILT_IN_POW:
10026 : 123 : if (call_expr_nargs (_p0) == 2)
10027 : : {
10028 : 123 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10029 : 123 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
10030 : 123 : switch (TREE_CODE (_q20))
10031 : : {
10032 : 1 : case REAL_CST:
10033 : 1 : {
10034 : 1 : switch (TREE_CODE (_p1))
10035 : : {
10036 : 1 : case CALL_EXPR:
10037 : 1 : switch (get_call_combined_fn (_p1))
10038 : : {
10039 : 0 : case CFN_BUILT_IN_EXP:
10040 : 0 : if (call_expr_nargs (_p1) == 1)
10041 : : {
10042 : 0 : tree _q50 = CALL_EXPR_ARG (_p1, 0);
10043 : 0 : {
10044 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
10045 : 0 : if (flag_unsafe_math_optimizations
10046 : : )
10047 : : {
10048 : 0 : if (real_compare (GT_EXPR, TREE_REAL_CST_PTR (captures[1]), &dconst0)
10049 : 0 : && real_isfinite (TREE_REAL_CST_PTR (captures[1]))
10050 : : )
10051 : : {
10052 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1543;
10053 : 0 : {
10054 : 0 : tree res_op0;
10055 : 0 : {
10056 : 0 : tree _o1[2], _r1;
10057 : 0 : {
10058 : 0 : tree _o2[2], _r2;
10059 : 0 : {
10060 : 0 : tree _o3[1], _r3;
10061 : 0 : _o3[0] = captures[1];
10062 : 0 : _r3 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_LOG, TREE_TYPE (_o3[0]), 1, _o3[0]);
10063 : 0 : if (!_r3)
10064 : 0 : goto next_after_fail1543;
10065 : 0 : _o2[0] = _r3;
10066 : : }
10067 : 0 : _o2[1] = captures[2];
10068 : 0 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
10069 : 0 : _o1[0] = _r2;
10070 : : }
10071 : 0 : _o1[1] = captures[4];
10072 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10073 : 0 : res_op0 = _r1;
10074 : : }
10075 : 0 : tree _r;
10076 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXP, type, 1, res_op0);
10077 : 0 : if (!_r)
10078 : 0 : goto next_after_fail1543;
10079 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 987, __FILE__, __LINE__, true);
10080 : 0 : return _r;
10081 : : }
10082 : 0 : next_after_fail1543:;
10083 : : }
10084 : : }
10085 : : }
10086 : : }
10087 : : break;
10088 : 0 : case CFN_BUILT_IN_EXP2:
10089 : 0 : if (call_expr_nargs (_p1) == 1)
10090 : : {
10091 : 0 : tree _q50 = CALL_EXPR_ARG (_p1, 0);
10092 : 0 : {
10093 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
10094 : 0 : if (flag_unsafe_math_optimizations
10095 : : )
10096 : : {
10097 : 0 : if (real_compare (GT_EXPR, TREE_REAL_CST_PTR (captures[1]), &dconst0)
10098 : 0 : && real_isfinite (TREE_REAL_CST_PTR (captures[1]))
10099 : : )
10100 : : {
10101 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1544;
10102 : 0 : {
10103 : 0 : tree res_op0;
10104 : 0 : {
10105 : 0 : tree _o1[2], _r1;
10106 : 0 : {
10107 : 0 : tree _o2[2], _r2;
10108 : 0 : {
10109 : 0 : tree _o3[1], _r3;
10110 : 0 : _o3[0] = captures[1];
10111 : 0 : _r3 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_LOG2, TREE_TYPE (_o3[0]), 1, _o3[0]);
10112 : 0 : if (!_r3)
10113 : 0 : goto next_after_fail1544;
10114 : 0 : _o2[0] = _r3;
10115 : : }
10116 : 0 : _o2[1] = captures[2];
10117 : 0 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
10118 : 0 : _o1[0] = _r2;
10119 : : }
10120 : 0 : _o1[1] = captures[4];
10121 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10122 : 0 : res_op0 = _r1;
10123 : : }
10124 : 0 : tree _r;
10125 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXP2, type, 1, res_op0);
10126 : 0 : if (!_r)
10127 : 0 : goto next_after_fail1544;
10128 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 987, __FILE__, __LINE__, true);
10129 : 0 : return _r;
10130 : : }
10131 : 0 : next_after_fail1544:;
10132 : : }
10133 : : }
10134 : : }
10135 : : }
10136 : : break;
10137 : 0 : case CFN_BUILT_IN_EXP10:
10138 : 0 : if (call_expr_nargs (_p1) == 1)
10139 : : {
10140 : 0 : tree _q50 = CALL_EXPR_ARG (_p1, 0);
10141 : 0 : {
10142 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
10143 : 0 : if (flag_unsafe_math_optimizations
10144 : : )
10145 : : {
10146 : 0 : if (real_compare (GT_EXPR, TREE_REAL_CST_PTR (captures[1]), &dconst0)
10147 : 0 : && real_isfinite (TREE_REAL_CST_PTR (captures[1]))
10148 : : )
10149 : : {
10150 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1545;
10151 : 0 : {
10152 : 0 : tree res_op0;
10153 : 0 : {
10154 : 0 : tree _o1[2], _r1;
10155 : 0 : {
10156 : 0 : tree _o2[2], _r2;
10157 : 0 : {
10158 : 0 : tree _o3[1], _r3;
10159 : 0 : _o3[0] = captures[1];
10160 : 0 : _r3 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_LOG10, TREE_TYPE (_o3[0]), 1, _o3[0]);
10161 : 0 : if (!_r3)
10162 : 0 : goto next_after_fail1545;
10163 : 0 : _o2[0] = _r3;
10164 : : }
10165 : 0 : _o2[1] = captures[2];
10166 : 0 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
10167 : 0 : _o1[0] = _r2;
10168 : : }
10169 : 0 : _o1[1] = captures[4];
10170 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10171 : 0 : res_op0 = _r1;
10172 : : }
10173 : 0 : tree _r;
10174 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXP10, type, 1, res_op0);
10175 : 0 : if (!_r)
10176 : 0 : goto next_after_fail1545;
10177 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 987, __FILE__, __LINE__, true);
10178 : 0 : return _r;
10179 : : }
10180 : 0 : next_after_fail1545:;
10181 : : }
10182 : : }
10183 : : }
10184 : : }
10185 : : break;
10186 : 0 : case CFN_BUILT_IN_POW10:
10187 : 0 : if (call_expr_nargs (_p1) == 1)
10188 : : {
10189 : 0 : tree _q50 = CALL_EXPR_ARG (_p1, 0);
10190 : 0 : {
10191 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
10192 : 0 : if (flag_unsafe_math_optimizations
10193 : : )
10194 : : {
10195 : 0 : if (real_compare (GT_EXPR, TREE_REAL_CST_PTR (captures[1]), &dconst0)
10196 : 0 : && real_isfinite (TREE_REAL_CST_PTR (captures[1]))
10197 : : )
10198 : : {
10199 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1546;
10200 : 0 : {
10201 : 0 : tree res_op0;
10202 : 0 : {
10203 : 0 : tree _o1[2], _r1;
10204 : 0 : {
10205 : 0 : tree _o2[2], _r2;
10206 : 0 : {
10207 : 0 : tree _o3[1], _r3;
10208 : 0 : _o3[0] = captures[1];
10209 : 0 : _r3 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_LOG10, TREE_TYPE (_o3[0]), 1, _o3[0]);
10210 : 0 : if (!_r3)
10211 : 0 : goto next_after_fail1546;
10212 : 0 : _o2[0] = _r3;
10213 : : }
10214 : 0 : _o2[1] = captures[2];
10215 : 0 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
10216 : 0 : _o1[0] = _r2;
10217 : : }
10218 : 0 : _o1[1] = captures[4];
10219 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10220 : 0 : res_op0 = _r1;
10221 : : }
10222 : 0 : tree _r;
10223 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_POW10, type, 1, res_op0);
10224 : 0 : if (!_r)
10225 : 0 : goto next_after_fail1546;
10226 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 987, __FILE__, __LINE__, true);
10227 : 0 : return _r;
10228 : : }
10229 : 0 : next_after_fail1546:;
10230 : : }
10231 : : }
10232 : : }
10233 : : }
10234 : : break;
10235 : : default:;
10236 : : }
10237 : : break;
10238 : : default:;
10239 : : }
10240 : : break;
10241 : : }
10242 : 123 : default:;
10243 : : }
10244 : 123 : switch (TREE_CODE (_q21))
10245 : : {
10246 : 12 : case REAL_CST:
10247 : 12 : {
10248 : 12 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
10249 : : {
10250 : 8 : {
10251 : 8 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p0, _q21 };
10252 : 8 : tree res = generic_simplify_193 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POW);
10253 : 8 : if (res) return res;
10254 : : }
10255 : : }
10256 : : break;
10257 : : }
10258 : : default:;
10259 : : }
10260 : : }
10261 : : break;
10262 : 48 : case CFN_BUILT_IN_EXP10F:
10263 : 48 : if (call_expr_nargs (_p0) == 1)
10264 : : {
10265 : 48 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10266 : 48 : switch (TREE_CODE (_p1))
10267 : : {
10268 : 24 : case CALL_EXPR:
10269 : 24 : switch (get_call_combined_fn (_p1))
10270 : : {
10271 : 24 : case CFN_BUILT_IN_EXP10F:
10272 : 24 : if (call_expr_nargs (_p1) == 1)
10273 : : {
10274 : 24 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
10275 : 24 : {
10276 : 24 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
10277 : 24 : if (flag_unsafe_math_optimizations
10278 : : )
10279 : : {
10280 : 24 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1547;
10281 : 24 : {
10282 : 24 : tree res_op0;
10283 : 24 : {
10284 : 24 : tree _o1[2], _r1;
10285 : 24 : _o1[0] = captures[1];
10286 : 24 : _o1[1] = captures[3];
10287 : 24 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10288 : 24 : res_op0 = _r1;
10289 : : }
10290 : 24 : tree _r;
10291 : 24 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXP10F, type, 1, res_op0);
10292 : 24 : if (!_r)
10293 : 0 : goto next_after_fail1547;
10294 : 24 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 986, __FILE__, __LINE__, true);
10295 : 24 : return _r;
10296 : : }
10297 : 0 : next_after_fail1547:;
10298 : : }
10299 : : }
10300 : : }
10301 : : break;
10302 : 0 : case CFN_BUILT_IN_POWF:
10303 : 0 : if (call_expr_nargs (_p1) == 2)
10304 : : {
10305 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
10306 : 0 : tree _q41 = CALL_EXPR_ARG (_p1, 1);
10307 : 0 : switch (TREE_CODE (_q40))
10308 : : {
10309 : 0 : case REAL_CST:
10310 : 0 : {
10311 : 0 : {
10312 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q40, _q41, _p0, _q20 };
10313 : 0 : if (flag_unsafe_math_optimizations
10314 : : )
10315 : : {
10316 : 0 : if (real_compare (GT_EXPR, TREE_REAL_CST_PTR (captures[1]), &dconst0)
10317 : 0 : && real_isfinite (TREE_REAL_CST_PTR (captures[1]))
10318 : : )
10319 : : {
10320 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1548;
10321 : 0 : {
10322 : 0 : tree res_op0;
10323 : 0 : {
10324 : 0 : tree _o1[2], _r1;
10325 : 0 : {
10326 : 0 : tree _o2[2], _r2;
10327 : 0 : {
10328 : 0 : tree _o3[1], _r3;
10329 : 0 : _o3[0] = captures[1];
10330 : 0 : _r3 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_LOG10F, TREE_TYPE (_o3[0]), 1, _o3[0]);
10331 : 0 : if (!_r3)
10332 : 0 : goto next_after_fail1548;
10333 : 0 : _o2[0] = _r3;
10334 : : }
10335 : 0 : _o2[1] = captures[2];
10336 : 0 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
10337 : 0 : _o1[0] = _r2;
10338 : : }
10339 : 0 : _o1[1] = captures[4];
10340 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10341 : 0 : res_op0 = _r1;
10342 : : }
10343 : 0 : tree _r;
10344 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXP10F, type, 1, res_op0);
10345 : 0 : if (!_r)
10346 : 0 : goto next_after_fail1548;
10347 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 987, __FILE__, __LINE__, true);
10348 : 0 : return _r;
10349 : : }
10350 : 0 : next_after_fail1548:;
10351 : : }
10352 : : }
10353 : : }
10354 : 0 : break;
10355 : : }
10356 : : default:;
10357 : : }
10358 : : }
10359 : : break;
10360 : : default:;
10361 : : }
10362 : : break;
10363 : : default:;
10364 : : }
10365 : : }
10366 : : break;
10367 : 48 : case CFN_BUILT_IN_EXP10L:
10368 : 48 : if (call_expr_nargs (_p0) == 1)
10369 : : {
10370 : 48 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10371 : 48 : switch (TREE_CODE (_p1))
10372 : : {
10373 : 24 : case CALL_EXPR:
10374 : 24 : switch (get_call_combined_fn (_p1))
10375 : : {
10376 : 24 : case CFN_BUILT_IN_EXP10L:
10377 : 24 : if (call_expr_nargs (_p1) == 1)
10378 : : {
10379 : 24 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
10380 : 24 : {
10381 : 24 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
10382 : 24 : if (flag_unsafe_math_optimizations
10383 : : )
10384 : : {
10385 : 24 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1549;
10386 : 24 : {
10387 : 24 : tree res_op0;
10388 : 24 : {
10389 : 24 : tree _o1[2], _r1;
10390 : 24 : _o1[0] = captures[1];
10391 : 24 : _o1[1] = captures[3];
10392 : 24 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10393 : 24 : res_op0 = _r1;
10394 : : }
10395 : 24 : tree _r;
10396 : 24 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXP10L, type, 1, res_op0);
10397 : 24 : if (!_r)
10398 : 0 : goto next_after_fail1549;
10399 : 24 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 986, __FILE__, __LINE__, true);
10400 : 24 : return _r;
10401 : : }
10402 : 0 : next_after_fail1549:;
10403 : : }
10404 : : }
10405 : : }
10406 : : break;
10407 : 0 : case CFN_BUILT_IN_POWL:
10408 : 0 : if (call_expr_nargs (_p1) == 2)
10409 : : {
10410 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
10411 : 0 : tree _q41 = CALL_EXPR_ARG (_p1, 1);
10412 : 0 : switch (TREE_CODE (_q40))
10413 : : {
10414 : 0 : case REAL_CST:
10415 : 0 : {
10416 : 0 : {
10417 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q40, _q41, _p0, _q20 };
10418 : 0 : if (flag_unsafe_math_optimizations
10419 : : )
10420 : : {
10421 : 0 : if (real_compare (GT_EXPR, TREE_REAL_CST_PTR (captures[1]), &dconst0)
10422 : 0 : && real_isfinite (TREE_REAL_CST_PTR (captures[1]))
10423 : : )
10424 : : {
10425 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1550;
10426 : 0 : {
10427 : 0 : tree res_op0;
10428 : 0 : {
10429 : 0 : tree _o1[2], _r1;
10430 : 0 : {
10431 : 0 : tree _o2[2], _r2;
10432 : 0 : {
10433 : 0 : tree _o3[1], _r3;
10434 : 0 : _o3[0] = captures[1];
10435 : 0 : _r3 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_LOG10L, TREE_TYPE (_o3[0]), 1, _o3[0]);
10436 : 0 : if (!_r3)
10437 : 0 : goto next_after_fail1550;
10438 : 0 : _o2[0] = _r3;
10439 : : }
10440 : 0 : _o2[1] = captures[2];
10441 : 0 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
10442 : 0 : _o1[0] = _r2;
10443 : : }
10444 : 0 : _o1[1] = captures[4];
10445 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10446 : 0 : res_op0 = _r1;
10447 : : }
10448 : 0 : tree _r;
10449 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXP10L, type, 1, res_op0);
10450 : 0 : if (!_r)
10451 : 0 : goto next_after_fail1550;
10452 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 987, __FILE__, __LINE__, true);
10453 : 0 : return _r;
10454 : : }
10455 : 0 : next_after_fail1550:;
10456 : : }
10457 : : }
10458 : : }
10459 : 0 : break;
10460 : : }
10461 : : default:;
10462 : : }
10463 : : }
10464 : : break;
10465 : : default:;
10466 : : }
10467 : : break;
10468 : : default:;
10469 : : }
10470 : : }
10471 : : break;
10472 : 18 : case CFN_BUILT_IN_CBRT:
10473 : 18 : if (call_expr_nargs (_p0) == 1)
10474 : : {
10475 : 18 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10476 : 18 : switch (TREE_CODE (_p1))
10477 : : {
10478 : 14 : case CALL_EXPR:
10479 : 14 : switch (get_call_combined_fn (_p1))
10480 : : {
10481 : 14 : case CFN_BUILT_IN_CBRT:
10482 : 14 : if (call_expr_nargs (_p1) == 1)
10483 : : {
10484 : 14 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
10485 : 14 : {
10486 : 14 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
10487 : 14 : if (flag_unsafe_math_optimizations
10488 : : )
10489 : : {
10490 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1551;
10491 : 12 : {
10492 : 12 : tree res_op0;
10493 : 12 : {
10494 : 12 : tree _o1[2], _r1;
10495 : 12 : _o1[0] = captures[1];
10496 : 12 : _o1[1] = captures[3];
10497 : 12 : _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10498 : 12 : res_op0 = _r1;
10499 : : }
10500 : 12 : tree _r;
10501 : 12 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_CBRT, type, 1, res_op0);
10502 : 12 : if (!_r)
10503 : 0 : goto next_after_fail1551;
10504 : 12 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 985, __FILE__, __LINE__, true);
10505 : 12 : return _r;
10506 : : }
10507 : 2 : next_after_fail1551:;
10508 : : }
10509 : : }
10510 : : }
10511 : : break;
10512 : : default:;
10513 : : }
10514 : : break;
10515 : : default:;
10516 : : }
10517 : : }
10518 : : break;
10519 : 48 : case CFN_BUILT_IN_EXP2:
10520 : 48 : if (call_expr_nargs (_p0) == 1)
10521 : : {
10522 : 48 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10523 : 48 : switch (TREE_CODE (_p1))
10524 : : {
10525 : 24 : case CALL_EXPR:
10526 : 24 : switch (get_call_combined_fn (_p1))
10527 : : {
10528 : 0 : case CFN_BUILT_IN_POW:
10529 : 0 : if (call_expr_nargs (_p1) == 2)
10530 : : {
10531 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
10532 : 0 : tree _q41 = CALL_EXPR_ARG (_p1, 1);
10533 : 0 : switch (TREE_CODE (_q40))
10534 : : {
10535 : 0 : case REAL_CST:
10536 : 0 : {
10537 : 0 : {
10538 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q40, _q41, _p0, _q20 };
10539 : 0 : if (flag_unsafe_math_optimizations
10540 : : )
10541 : : {
10542 : 0 : if (real_compare (GT_EXPR, TREE_REAL_CST_PTR (captures[1]), &dconst0)
10543 : 0 : && real_isfinite (TREE_REAL_CST_PTR (captures[1]))
10544 : : )
10545 : : {
10546 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1552;
10547 : 0 : {
10548 : 0 : tree res_op0;
10549 : 0 : {
10550 : 0 : tree _o1[2], _r1;
10551 : 0 : {
10552 : 0 : tree _o2[2], _r2;
10553 : 0 : {
10554 : 0 : tree _o3[1], _r3;
10555 : 0 : _o3[0] = captures[1];
10556 : 0 : _r3 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_LOG2, TREE_TYPE (_o3[0]), 1, _o3[0]);
10557 : 0 : if (!_r3)
10558 : 0 : goto next_after_fail1552;
10559 : 0 : _o2[0] = _r3;
10560 : : }
10561 : 0 : _o2[1] = captures[2];
10562 : 0 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
10563 : 0 : _o1[0] = _r2;
10564 : : }
10565 : 0 : _o1[1] = captures[4];
10566 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10567 : 0 : res_op0 = _r1;
10568 : : }
10569 : 0 : tree _r;
10570 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXP2, type, 1, res_op0);
10571 : 0 : if (!_r)
10572 : 0 : goto next_after_fail1552;
10573 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 987, __FILE__, __LINE__, true);
10574 : 0 : return _r;
10575 : : }
10576 : 0 : next_after_fail1552:;
10577 : : }
10578 : : }
10579 : : }
10580 : 0 : break;
10581 : : }
10582 : : default:;
10583 : : }
10584 : : }
10585 : : break;
10586 : 24 : case CFN_BUILT_IN_EXP2:
10587 : 24 : if (call_expr_nargs (_p1) == 1)
10588 : : {
10589 : 24 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
10590 : 24 : {
10591 : 24 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
10592 : 24 : if (flag_unsafe_math_optimizations
10593 : : )
10594 : : {
10595 : 24 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1553;
10596 : 24 : {
10597 : 24 : tree res_op0;
10598 : 24 : {
10599 : 24 : tree _o1[2], _r1;
10600 : 24 : _o1[0] = captures[1];
10601 : 24 : _o1[1] = captures[3];
10602 : 24 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10603 : 24 : res_op0 = _r1;
10604 : : }
10605 : 24 : tree _r;
10606 : 24 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXP2, type, 1, res_op0);
10607 : 24 : if (!_r)
10608 : 0 : goto next_after_fail1553;
10609 : 24 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 986, __FILE__, __LINE__, true);
10610 : 24 : return _r;
10611 : : }
10612 : 0 : next_after_fail1553:;
10613 : : }
10614 : : }
10615 : : }
10616 : : break;
10617 : : default:;
10618 : : }
10619 : : break;
10620 : : default:;
10621 : : }
10622 : : }
10623 : : break;
10624 : 66 : case CFN_BUILT_IN_EXPF:
10625 : 66 : if (call_expr_nargs (_p0) == 1)
10626 : : {
10627 : 66 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10628 : 66 : switch (TREE_CODE (_p1))
10629 : : {
10630 : 36 : case CALL_EXPR:
10631 : 36 : switch (get_call_combined_fn (_p1))
10632 : : {
10633 : 29 : case CFN_BUILT_IN_EXPF:
10634 : 29 : if (call_expr_nargs (_p1) == 1)
10635 : : {
10636 : 29 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
10637 : 29 : {
10638 : 29 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
10639 : 29 : if (flag_unsafe_math_optimizations
10640 : : )
10641 : : {
10642 : 25 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1554;
10643 : 25 : {
10644 : 25 : tree res_op0;
10645 : 25 : {
10646 : 25 : tree _o1[2], _r1;
10647 : 25 : _o1[0] = captures[1];
10648 : 25 : _o1[1] = captures[3];
10649 : 25 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10650 : 25 : res_op0 = _r1;
10651 : : }
10652 : 25 : tree _r;
10653 : 25 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXPF, type, 1, res_op0);
10654 : 25 : if (!_r)
10655 : 0 : goto next_after_fail1554;
10656 : 25 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 986, __FILE__, __LINE__, true);
10657 : 25 : return _r;
10658 : : }
10659 : 4 : next_after_fail1554:;
10660 : : }
10661 : : }
10662 : : }
10663 : : break;
10664 : 0 : case CFN_BUILT_IN_POWF:
10665 : 0 : if (call_expr_nargs (_p1) == 2)
10666 : : {
10667 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
10668 : 0 : tree _q41 = CALL_EXPR_ARG (_p1, 1);
10669 : 0 : switch (TREE_CODE (_q40))
10670 : : {
10671 : 0 : case REAL_CST:
10672 : 0 : {
10673 : 0 : {
10674 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q40, _q41, _p0, _q20 };
10675 : 0 : if (flag_unsafe_math_optimizations
10676 : : )
10677 : : {
10678 : 0 : if (real_compare (GT_EXPR, TREE_REAL_CST_PTR (captures[1]), &dconst0)
10679 : 0 : && real_isfinite (TREE_REAL_CST_PTR (captures[1]))
10680 : : )
10681 : : {
10682 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1555;
10683 : 0 : {
10684 : 0 : tree res_op0;
10685 : 0 : {
10686 : 0 : tree _o1[2], _r1;
10687 : 0 : {
10688 : 0 : tree _o2[2], _r2;
10689 : 0 : {
10690 : 0 : tree _o3[1], _r3;
10691 : 0 : _o3[0] = captures[1];
10692 : 0 : _r3 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_LOGF, TREE_TYPE (_o3[0]), 1, _o3[0]);
10693 : 0 : if (!_r3)
10694 : 0 : goto next_after_fail1555;
10695 : 0 : _o2[0] = _r3;
10696 : : }
10697 : 0 : _o2[1] = captures[2];
10698 : 0 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
10699 : 0 : _o1[0] = _r2;
10700 : : }
10701 : 0 : _o1[1] = captures[4];
10702 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10703 : 0 : res_op0 = _r1;
10704 : : }
10705 : 0 : tree _r;
10706 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXPF, type, 1, res_op0);
10707 : 0 : if (!_r)
10708 : 0 : goto next_after_fail1555;
10709 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 987, __FILE__, __LINE__, true);
10710 : 0 : return _r;
10711 : : }
10712 : 0 : next_after_fail1555:;
10713 : : }
10714 : : }
10715 : : }
10716 : 0 : break;
10717 : : }
10718 : : default:;
10719 : : }
10720 : : }
10721 : : break;
10722 : : default:;
10723 : : }
10724 : : break;
10725 : : default:;
10726 : : }
10727 : : }
10728 : : break;
10729 : 59 : case CFN_BUILT_IN_EXPL:
10730 : 59 : if (call_expr_nargs (_p0) == 1)
10731 : : {
10732 : 59 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10733 : 59 : switch (TREE_CODE (_p1))
10734 : : {
10735 : 29 : case CALL_EXPR:
10736 : 29 : switch (get_call_combined_fn (_p1))
10737 : : {
10738 : 29 : case CFN_BUILT_IN_EXPL:
10739 : 29 : if (call_expr_nargs (_p1) == 1)
10740 : : {
10741 : 29 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
10742 : 29 : {
10743 : 29 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
10744 : 29 : if (flag_unsafe_math_optimizations
10745 : : )
10746 : : {
10747 : 25 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1556;
10748 : 25 : {
10749 : 25 : tree res_op0;
10750 : 25 : {
10751 : 25 : tree _o1[2], _r1;
10752 : 25 : _o1[0] = captures[1];
10753 : 25 : _o1[1] = captures[3];
10754 : 25 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10755 : 25 : res_op0 = _r1;
10756 : : }
10757 : 25 : tree _r;
10758 : 25 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXPL, type, 1, res_op0);
10759 : 25 : if (!_r)
10760 : 0 : goto next_after_fail1556;
10761 : 25 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 986, __FILE__, __LINE__, true);
10762 : 25 : return _r;
10763 : : }
10764 : 4 : next_after_fail1556:;
10765 : : }
10766 : : }
10767 : : }
10768 : : break;
10769 : 0 : case CFN_BUILT_IN_POWL:
10770 : 0 : if (call_expr_nargs (_p1) == 2)
10771 : : {
10772 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
10773 : 0 : tree _q41 = CALL_EXPR_ARG (_p1, 1);
10774 : 0 : switch (TREE_CODE (_q40))
10775 : : {
10776 : 0 : case REAL_CST:
10777 : 0 : {
10778 : 0 : {
10779 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q40, _q41, _p0, _q20 };
10780 : 0 : if (flag_unsafe_math_optimizations
10781 : : )
10782 : : {
10783 : 0 : if (real_compare (GT_EXPR, TREE_REAL_CST_PTR (captures[1]), &dconst0)
10784 : 0 : && real_isfinite (TREE_REAL_CST_PTR (captures[1]))
10785 : : )
10786 : : {
10787 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1557;
10788 : 0 : {
10789 : 0 : tree res_op0;
10790 : 0 : {
10791 : 0 : tree _o1[2], _r1;
10792 : 0 : {
10793 : 0 : tree _o2[2], _r2;
10794 : 0 : {
10795 : 0 : tree _o3[1], _r3;
10796 : 0 : _o3[0] = captures[1];
10797 : 0 : _r3 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_LOGL, TREE_TYPE (_o3[0]), 1, _o3[0]);
10798 : 0 : if (!_r3)
10799 : 0 : goto next_after_fail1557;
10800 : 0 : _o2[0] = _r3;
10801 : : }
10802 : 0 : _o2[1] = captures[2];
10803 : 0 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
10804 : 0 : _o1[0] = _r2;
10805 : : }
10806 : 0 : _o1[1] = captures[4];
10807 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10808 : 0 : res_op0 = _r1;
10809 : : }
10810 : 0 : tree _r;
10811 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXPL, type, 1, res_op0);
10812 : 0 : if (!_r)
10813 : 0 : goto next_after_fail1557;
10814 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 987, __FILE__, __LINE__, true);
10815 : 0 : return _r;
10816 : : }
10817 : 0 : next_after_fail1557:;
10818 : : }
10819 : : }
10820 : : }
10821 : 0 : break;
10822 : : }
10823 : : default:;
10824 : : }
10825 : : }
10826 : : break;
10827 : : default:;
10828 : : }
10829 : : break;
10830 : : default:;
10831 : : }
10832 : : }
10833 : : break;
10834 : 19 : case CFN_BUILT_IN_POWF:
10835 : 19 : if (call_expr_nargs (_p0) == 2)
10836 : : {
10837 : 19 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10838 : 19 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
10839 : 19 : switch (TREE_CODE (_q20))
10840 : : {
10841 : 0 : case REAL_CST:
10842 : 0 : {
10843 : 0 : switch (TREE_CODE (_p1))
10844 : : {
10845 : 0 : case CALL_EXPR:
10846 : 0 : switch (get_call_combined_fn (_p1))
10847 : : {
10848 : 0 : case CFN_BUILT_IN_EXP10F:
10849 : 0 : if (call_expr_nargs (_p1) == 1)
10850 : : {
10851 : 0 : tree _q50 = CALL_EXPR_ARG (_p1, 0);
10852 : 0 : {
10853 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
10854 : 0 : if (flag_unsafe_math_optimizations
10855 : : )
10856 : : {
10857 : 0 : if (real_compare (GT_EXPR, TREE_REAL_CST_PTR (captures[1]), &dconst0)
10858 : 0 : && real_isfinite (TREE_REAL_CST_PTR (captures[1]))
10859 : : )
10860 : : {
10861 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1558;
10862 : 0 : {
10863 : 0 : tree res_op0;
10864 : 0 : {
10865 : 0 : tree _o1[2], _r1;
10866 : 0 : {
10867 : 0 : tree _o2[2], _r2;
10868 : 0 : {
10869 : 0 : tree _o3[1], _r3;
10870 : 0 : _o3[0] = captures[1];
10871 : 0 : _r3 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_LOG10F, TREE_TYPE (_o3[0]), 1, _o3[0]);
10872 : 0 : if (!_r3)
10873 : 0 : goto next_after_fail1558;
10874 : 0 : _o2[0] = _r3;
10875 : : }
10876 : 0 : _o2[1] = captures[2];
10877 : 0 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
10878 : 0 : _o1[0] = _r2;
10879 : : }
10880 : 0 : _o1[1] = captures[4];
10881 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10882 : 0 : res_op0 = _r1;
10883 : : }
10884 : 0 : tree _r;
10885 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXP10F, type, 1, res_op0);
10886 : 0 : if (!_r)
10887 : 0 : goto next_after_fail1558;
10888 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 987, __FILE__, __LINE__, true);
10889 : 0 : return _r;
10890 : : }
10891 : 0 : next_after_fail1558:;
10892 : : }
10893 : : }
10894 : : }
10895 : : }
10896 : : break;
10897 : 0 : case CFN_BUILT_IN_EXPF:
10898 : 0 : if (call_expr_nargs (_p1) == 1)
10899 : : {
10900 : 0 : tree _q50 = CALL_EXPR_ARG (_p1, 0);
10901 : 0 : {
10902 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
10903 : 0 : if (flag_unsafe_math_optimizations
10904 : : )
10905 : : {
10906 : 0 : if (real_compare (GT_EXPR, TREE_REAL_CST_PTR (captures[1]), &dconst0)
10907 : 0 : && real_isfinite (TREE_REAL_CST_PTR (captures[1]))
10908 : : )
10909 : : {
10910 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1559;
10911 : 0 : {
10912 : 0 : tree res_op0;
10913 : 0 : {
10914 : 0 : tree _o1[2], _r1;
10915 : 0 : {
10916 : 0 : tree _o2[2], _r2;
10917 : 0 : {
10918 : 0 : tree _o3[1], _r3;
10919 : 0 : _o3[0] = captures[1];
10920 : 0 : _r3 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_LOGF, TREE_TYPE (_o3[0]), 1, _o3[0]);
10921 : 0 : if (!_r3)
10922 : 0 : goto next_after_fail1559;
10923 : 0 : _o2[0] = _r3;
10924 : : }
10925 : 0 : _o2[1] = captures[2];
10926 : 0 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
10927 : 0 : _o1[0] = _r2;
10928 : : }
10929 : 0 : _o1[1] = captures[4];
10930 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10931 : 0 : res_op0 = _r1;
10932 : : }
10933 : 0 : tree _r;
10934 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXPF, type, 1, res_op0);
10935 : 0 : if (!_r)
10936 : 0 : goto next_after_fail1559;
10937 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 987, __FILE__, __LINE__, true);
10938 : 0 : return _r;
10939 : : }
10940 : 0 : next_after_fail1559:;
10941 : : }
10942 : : }
10943 : : }
10944 : : }
10945 : : break;
10946 : 0 : case CFN_BUILT_IN_POW10F:
10947 : 0 : if (call_expr_nargs (_p1) == 1)
10948 : : {
10949 : 0 : tree _q50 = CALL_EXPR_ARG (_p1, 0);
10950 : 0 : {
10951 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
10952 : 0 : if (flag_unsafe_math_optimizations
10953 : : )
10954 : : {
10955 : 0 : if (real_compare (GT_EXPR, TREE_REAL_CST_PTR (captures[1]), &dconst0)
10956 : 0 : && real_isfinite (TREE_REAL_CST_PTR (captures[1]))
10957 : : )
10958 : : {
10959 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1560;
10960 : 0 : {
10961 : 0 : tree res_op0;
10962 : 0 : {
10963 : 0 : tree _o1[2], _r1;
10964 : 0 : {
10965 : 0 : tree _o2[2], _r2;
10966 : 0 : {
10967 : 0 : tree _o3[1], _r3;
10968 : 0 : _o3[0] = captures[1];
10969 : 0 : _r3 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_LOG10F, TREE_TYPE (_o3[0]), 1, _o3[0]);
10970 : 0 : if (!_r3)
10971 : 0 : goto next_after_fail1560;
10972 : 0 : _o2[0] = _r3;
10973 : : }
10974 : 0 : _o2[1] = captures[2];
10975 : 0 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
10976 : 0 : _o1[0] = _r2;
10977 : : }
10978 : 0 : _o1[1] = captures[4];
10979 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10980 : 0 : res_op0 = _r1;
10981 : : }
10982 : 0 : tree _r;
10983 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_POW10F, type, 1, res_op0);
10984 : 0 : if (!_r)
10985 : 0 : goto next_after_fail1560;
10986 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 987, __FILE__, __LINE__, true);
10987 : 0 : return _r;
10988 : : }
10989 : 0 : next_after_fail1560:;
10990 : : }
10991 : : }
10992 : : }
10993 : : }
10994 : : break;
10995 : 0 : case CFN_BUILT_IN_EXP2F:
10996 : 0 : if (call_expr_nargs (_p1) == 1)
10997 : : {
10998 : 0 : tree _q50 = CALL_EXPR_ARG (_p1, 0);
10999 : 0 : {
11000 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
11001 : 0 : if (flag_unsafe_math_optimizations
11002 : : )
11003 : : {
11004 : 0 : if (real_compare (GT_EXPR, TREE_REAL_CST_PTR (captures[1]), &dconst0)
11005 : 0 : && real_isfinite (TREE_REAL_CST_PTR (captures[1]))
11006 : : )
11007 : : {
11008 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1561;
11009 : 0 : {
11010 : 0 : tree res_op0;
11011 : 0 : {
11012 : 0 : tree _o1[2], _r1;
11013 : 0 : {
11014 : 0 : tree _o2[2], _r2;
11015 : 0 : {
11016 : 0 : tree _o3[1], _r3;
11017 : 0 : _o3[0] = captures[1];
11018 : 0 : _r3 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_LOG2F, TREE_TYPE (_o3[0]), 1, _o3[0]);
11019 : 0 : if (!_r3)
11020 : 0 : goto next_after_fail1561;
11021 : 0 : _o2[0] = _r3;
11022 : : }
11023 : 0 : _o2[1] = captures[2];
11024 : 0 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
11025 : 0 : _o1[0] = _r2;
11026 : : }
11027 : 0 : _o1[1] = captures[4];
11028 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11029 : 0 : res_op0 = _r1;
11030 : : }
11031 : 0 : tree _r;
11032 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXP2F, type, 1, res_op0);
11033 : 0 : if (!_r)
11034 : 0 : goto next_after_fail1561;
11035 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 987, __FILE__, __LINE__, true);
11036 : 0 : return _r;
11037 : : }
11038 : 0 : next_after_fail1561:;
11039 : : }
11040 : : }
11041 : : }
11042 : : }
11043 : : break;
11044 : : default:;
11045 : : }
11046 : : break;
11047 : : default:;
11048 : : }
11049 : : break;
11050 : : }
11051 : 19 : default:;
11052 : : }
11053 : 19 : switch (TREE_CODE (_q21))
11054 : : {
11055 : 5 : case REAL_CST:
11056 : 5 : {
11057 : 5 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
11058 : : {
11059 : 0 : {
11060 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p0, _q21 };
11061 : 0 : tree res = generic_simplify_193 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POWF);
11062 : 0 : if (res) return res;
11063 : : }
11064 : : }
11065 : : break;
11066 : : }
11067 : : default:;
11068 : : }
11069 : : }
11070 : : break;
11071 : 12 : case CFN_BUILT_IN_POWL:
11072 : 12 : if (call_expr_nargs (_p0) == 2)
11073 : : {
11074 : 12 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11075 : 12 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
11076 : 12 : switch (TREE_CODE (_q20))
11077 : : {
11078 : 0 : case REAL_CST:
11079 : 0 : {
11080 : 0 : switch (TREE_CODE (_p1))
11081 : : {
11082 : 0 : case CALL_EXPR:
11083 : 0 : switch (get_call_combined_fn (_p1))
11084 : : {
11085 : 0 : case CFN_BUILT_IN_EXP10L:
11086 : 0 : if (call_expr_nargs (_p1) == 1)
11087 : : {
11088 : 0 : tree _q50 = CALL_EXPR_ARG (_p1, 0);
11089 : 0 : {
11090 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
11091 : 0 : if (flag_unsafe_math_optimizations
11092 : : )
11093 : : {
11094 : 0 : if (real_compare (GT_EXPR, TREE_REAL_CST_PTR (captures[1]), &dconst0)
11095 : 0 : && real_isfinite (TREE_REAL_CST_PTR (captures[1]))
11096 : : )
11097 : : {
11098 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1562;
11099 : 0 : {
11100 : 0 : tree res_op0;
11101 : 0 : {
11102 : 0 : tree _o1[2], _r1;
11103 : 0 : {
11104 : 0 : tree _o2[2], _r2;
11105 : 0 : {
11106 : 0 : tree _o3[1], _r3;
11107 : 0 : _o3[0] = captures[1];
11108 : 0 : _r3 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_LOG10L, TREE_TYPE (_o3[0]), 1, _o3[0]);
11109 : 0 : if (!_r3)
11110 : 0 : goto next_after_fail1562;
11111 : 0 : _o2[0] = _r3;
11112 : : }
11113 : 0 : _o2[1] = captures[2];
11114 : 0 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
11115 : 0 : _o1[0] = _r2;
11116 : : }
11117 : 0 : _o1[1] = captures[4];
11118 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11119 : 0 : res_op0 = _r1;
11120 : : }
11121 : 0 : tree _r;
11122 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXP10L, type, 1, res_op0);
11123 : 0 : if (!_r)
11124 : 0 : goto next_after_fail1562;
11125 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 987, __FILE__, __LINE__, true);
11126 : 0 : return _r;
11127 : : }
11128 : 0 : next_after_fail1562:;
11129 : : }
11130 : : }
11131 : : }
11132 : : }
11133 : : break;
11134 : 0 : case CFN_BUILT_IN_EXPL:
11135 : 0 : if (call_expr_nargs (_p1) == 1)
11136 : : {
11137 : 0 : tree _q50 = CALL_EXPR_ARG (_p1, 0);
11138 : 0 : {
11139 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
11140 : 0 : if (flag_unsafe_math_optimizations
11141 : : )
11142 : : {
11143 : 0 : if (real_compare (GT_EXPR, TREE_REAL_CST_PTR (captures[1]), &dconst0)
11144 : 0 : && real_isfinite (TREE_REAL_CST_PTR (captures[1]))
11145 : : )
11146 : : {
11147 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1563;
11148 : 0 : {
11149 : 0 : tree res_op0;
11150 : 0 : {
11151 : 0 : tree _o1[2], _r1;
11152 : 0 : {
11153 : 0 : tree _o2[2], _r2;
11154 : 0 : {
11155 : 0 : tree _o3[1], _r3;
11156 : 0 : _o3[0] = captures[1];
11157 : 0 : _r3 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_LOGL, TREE_TYPE (_o3[0]), 1, _o3[0]);
11158 : 0 : if (!_r3)
11159 : 0 : goto next_after_fail1563;
11160 : 0 : _o2[0] = _r3;
11161 : : }
11162 : 0 : _o2[1] = captures[2];
11163 : 0 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
11164 : 0 : _o1[0] = _r2;
11165 : : }
11166 : 0 : _o1[1] = captures[4];
11167 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11168 : 0 : res_op0 = _r1;
11169 : : }
11170 : 0 : tree _r;
11171 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXPL, type, 1, res_op0);
11172 : 0 : if (!_r)
11173 : 0 : goto next_after_fail1563;
11174 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 987, __FILE__, __LINE__, true);
11175 : 0 : return _r;
11176 : : }
11177 : 0 : next_after_fail1563:;
11178 : : }
11179 : : }
11180 : : }
11181 : : }
11182 : : break;
11183 : 0 : case CFN_BUILT_IN_POW10L:
11184 : 0 : if (call_expr_nargs (_p1) == 1)
11185 : : {
11186 : 0 : tree _q50 = CALL_EXPR_ARG (_p1, 0);
11187 : 0 : {
11188 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
11189 : 0 : if (flag_unsafe_math_optimizations
11190 : : )
11191 : : {
11192 : 0 : if (real_compare (GT_EXPR, TREE_REAL_CST_PTR (captures[1]), &dconst0)
11193 : 0 : && real_isfinite (TREE_REAL_CST_PTR (captures[1]))
11194 : : )
11195 : : {
11196 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1564;
11197 : 0 : {
11198 : 0 : tree res_op0;
11199 : 0 : {
11200 : 0 : tree _o1[2], _r1;
11201 : 0 : {
11202 : 0 : tree _o2[2], _r2;
11203 : 0 : {
11204 : 0 : tree _o3[1], _r3;
11205 : 0 : _o3[0] = captures[1];
11206 : 0 : _r3 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_LOG10L, TREE_TYPE (_o3[0]), 1, _o3[0]);
11207 : 0 : if (!_r3)
11208 : 0 : goto next_after_fail1564;
11209 : 0 : _o2[0] = _r3;
11210 : : }
11211 : 0 : _o2[1] = captures[2];
11212 : 0 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
11213 : 0 : _o1[0] = _r2;
11214 : : }
11215 : 0 : _o1[1] = captures[4];
11216 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11217 : 0 : res_op0 = _r1;
11218 : : }
11219 : 0 : tree _r;
11220 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_POW10L, type, 1, res_op0);
11221 : 0 : if (!_r)
11222 : 0 : goto next_after_fail1564;
11223 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 987, __FILE__, __LINE__, true);
11224 : 0 : return _r;
11225 : : }
11226 : 0 : next_after_fail1564:;
11227 : : }
11228 : : }
11229 : : }
11230 : : }
11231 : : break;
11232 : 0 : case CFN_BUILT_IN_EXP2L:
11233 : 0 : if (call_expr_nargs (_p1) == 1)
11234 : : {
11235 : 0 : tree _q50 = CALL_EXPR_ARG (_p1, 0);
11236 : 0 : {
11237 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
11238 : 0 : if (flag_unsafe_math_optimizations
11239 : : )
11240 : : {
11241 : 0 : if (real_compare (GT_EXPR, TREE_REAL_CST_PTR (captures[1]), &dconst0)
11242 : 0 : && real_isfinite (TREE_REAL_CST_PTR (captures[1]))
11243 : : )
11244 : : {
11245 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1565;
11246 : 0 : {
11247 : 0 : tree res_op0;
11248 : 0 : {
11249 : 0 : tree _o1[2], _r1;
11250 : 0 : {
11251 : 0 : tree _o2[2], _r2;
11252 : 0 : {
11253 : 0 : tree _o3[1], _r3;
11254 : 0 : _o3[0] = captures[1];
11255 : 0 : _r3 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_LOG2L, TREE_TYPE (_o3[0]), 1, _o3[0]);
11256 : 0 : if (!_r3)
11257 : 0 : goto next_after_fail1565;
11258 : 0 : _o2[0] = _r3;
11259 : : }
11260 : 0 : _o2[1] = captures[2];
11261 : 0 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
11262 : 0 : _o1[0] = _r2;
11263 : : }
11264 : 0 : _o1[1] = captures[4];
11265 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11266 : 0 : res_op0 = _r1;
11267 : : }
11268 : 0 : tree _r;
11269 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXP2L, type, 1, res_op0);
11270 : 0 : if (!_r)
11271 : 0 : goto next_after_fail1565;
11272 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 987, __FILE__, __LINE__, true);
11273 : 0 : return _r;
11274 : : }
11275 : 0 : next_after_fail1565:;
11276 : : }
11277 : : }
11278 : : }
11279 : : }
11280 : : break;
11281 : : default:;
11282 : : }
11283 : : break;
11284 : : default:;
11285 : : }
11286 : : break;
11287 : : }
11288 : 12 : default:;
11289 : : }
11290 : 12 : switch (TREE_CODE (_q21))
11291 : : {
11292 : 0 : case REAL_CST:
11293 : 0 : {
11294 : 0 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
11295 : : {
11296 : 0 : {
11297 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p0, _q21 };
11298 : 0 : tree res = generic_simplify_193 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POWL);
11299 : 0 : if (res) return res;
11300 : : }
11301 : : }
11302 : : break;
11303 : : }
11304 : : default:;
11305 : : }
11306 : : }
11307 : : break;
11308 : 20490 : case CFN_BUILT_IN_SQRT:
11309 : 20490 : if (call_expr_nargs (_p0) == 1)
11310 : : {
11311 : 20490 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11312 : 20490 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
11313 : : {
11314 : 2 : {
11315 : 2 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
11316 : 2 : tree res = generic_simplify_192 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRT);
11317 : 2 : if (res) return res;
11318 : : }
11319 : : }
11320 : 20488 : switch (TREE_CODE (_p1))
11321 : : {
11322 : 100 : case CALL_EXPR:
11323 : 100 : switch (get_call_combined_fn (_p1))
11324 : : {
11325 : 37 : case CFN_BUILT_IN_SQRT:
11326 : 37 : if (call_expr_nargs (_p1) == 1)
11327 : : {
11328 : 37 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
11329 : 37 : {
11330 : 37 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
11331 : 37 : if (flag_unsafe_math_optimizations
11332 : : )
11333 : : {
11334 : 15 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1566;
11335 : 15 : {
11336 : 15 : tree res_op0;
11337 : 15 : {
11338 : 15 : tree _o1[2], _r1;
11339 : 15 : _o1[0] = captures[1];
11340 : 15 : _o1[1] = captures[3];
11341 : 15 : _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11342 : 15 : res_op0 = _r1;
11343 : : }
11344 : 15 : tree _r;
11345 : 15 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_SQRT, type, 1, res_op0);
11346 : 15 : if (!_r)
11347 : 0 : goto next_after_fail1566;
11348 : 15 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 985, __FILE__, __LINE__, true);
11349 : 15 : return _r;
11350 : : }
11351 : 22 : next_after_fail1566:;
11352 : : }
11353 : : }
11354 : : }
11355 : : break;
11356 : : default:;
11357 : : }
11358 : : break;
11359 : : default:;
11360 : : }
11361 : : }
11362 : : break;
11363 : 5 : case CFN_BUILT_IN_LDEXPF:
11364 : 5 : if (call_expr_nargs (_p0) == 2)
11365 : : {
11366 : 5 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11367 : 5 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
11368 : 5 : switch (TREE_CODE (_p1))
11369 : : {
11370 : 2 : case REAL_CST:
11371 : 2 : {
11372 : 2 : {
11373 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q21 };
11374 : 2 : tree res = generic_simplify_194 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LDEXPF);
11375 : 2 : if (res) return res;
11376 : : }
11377 : 1 : break;
11378 : : }
11379 : 4 : default:;
11380 : : }
11381 : 4 : switch (TREE_CODE (_q20))
11382 : : {
11383 : 3 : case REAL_CST:
11384 : 3 : {
11385 : 3 : {
11386 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q21 };
11387 : 3 : tree res = generic_simplify_195 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LDEXPF);
11388 : 3 : if (res) return res;
11389 : : }
11390 : 0 : break;
11391 : : }
11392 : : default:;
11393 : : }
11394 : : }
11395 : : break;
11396 : 5 : case CFN_BUILT_IN_LDEXPL:
11397 : 5 : if (call_expr_nargs (_p0) == 2)
11398 : : {
11399 : 5 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11400 : 5 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
11401 : 5 : switch (TREE_CODE (_p1))
11402 : : {
11403 : 2 : case REAL_CST:
11404 : 2 : {
11405 : 2 : {
11406 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q21 };
11407 : 2 : tree res = generic_simplify_194 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LDEXPL);
11408 : 2 : if (res) return res;
11409 : : }
11410 : 1 : break;
11411 : : }
11412 : 4 : default:;
11413 : : }
11414 : 4 : switch (TREE_CODE (_q20))
11415 : : {
11416 : 3 : case REAL_CST:
11417 : 3 : {
11418 : 3 : {
11419 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q21 };
11420 : 3 : tree res = generic_simplify_195 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LDEXPL);
11421 : 3 : if (res) return res;
11422 : : }
11423 : 0 : break;
11424 : : }
11425 : : default:;
11426 : : }
11427 : : }
11428 : : break;
11429 : 4 : case CFN_BUILT_IN_SQRTF128:
11430 : 4 : if (call_expr_nargs (_p0) == 1)
11431 : : {
11432 : 4 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11433 : 4 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
11434 : : {
11435 : 0 : {
11436 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
11437 : 0 : tree res = generic_simplify_192 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTF128);
11438 : 0 : if (res) return res;
11439 : : }
11440 : : }
11441 : : }
11442 : : break;
11443 : 0 : case CFN_BUILT_IN_SQRTF32X:
11444 : 0 : if (call_expr_nargs (_p0) == 1)
11445 : : {
11446 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11447 : 0 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
11448 : : {
11449 : 0 : {
11450 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
11451 : 0 : tree res = generic_simplify_192 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTF32X);
11452 : 0 : if (res) return res;
11453 : : }
11454 : : }
11455 : : }
11456 : : break;
11457 : 0 : case CFN_BUILT_IN_SQRTF64X:
11458 : 0 : if (call_expr_nargs (_p0) == 1)
11459 : : {
11460 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11461 : 0 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
11462 : : {
11463 : 0 : {
11464 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
11465 : 0 : tree res = generic_simplify_192 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTF64X);
11466 : 0 : if (res) return res;
11467 : : }
11468 : : }
11469 : : }
11470 : : break;
11471 : 0 : case CFN_BUILT_IN_SQRTF16:
11472 : 0 : if (call_expr_nargs (_p0) == 1)
11473 : : {
11474 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11475 : 0 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
11476 : : {
11477 : 0 : {
11478 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
11479 : 0 : tree res = generic_simplify_192 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTF16);
11480 : 0 : if (res) return res;
11481 : : }
11482 : : }
11483 : : }
11484 : : break;
11485 : 0 : case CFN_BUILT_IN_SQRTF32:
11486 : 0 : if (call_expr_nargs (_p0) == 1)
11487 : : {
11488 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11489 : 0 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
11490 : : {
11491 : 0 : {
11492 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
11493 : 0 : tree res = generic_simplify_192 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTF32);
11494 : 0 : if (res) return res;
11495 : : }
11496 : : }
11497 : : }
11498 : : break;
11499 : 0 : case CFN_BUILT_IN_SQRTF64:
11500 : 0 : if (call_expr_nargs (_p0) == 1)
11501 : : {
11502 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11503 : 0 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
11504 : : {
11505 : 0 : {
11506 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
11507 : 0 : tree res = generic_simplify_192 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTF64);
11508 : 0 : if (res) return res;
11509 : : }
11510 : : }
11511 : : }
11512 : : break;
11513 : 0 : case CFN_EXP:
11514 : 0 : if (call_expr_nargs (_p0) == 1)
11515 : : {
11516 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11517 : 0 : switch (TREE_CODE (_p1))
11518 : : {
11519 : 0 : case CALL_EXPR:
11520 : 0 : switch (get_call_combined_fn (_p1))
11521 : : {
11522 : 0 : case CFN_EXP:
11523 : 0 : if (call_expr_nargs (_p1) == 1)
11524 : : {
11525 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
11526 : 0 : {
11527 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
11528 : 0 : if (flag_unsafe_math_optimizations
11529 : : )
11530 : : {
11531 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1567;
11532 : 0 : {
11533 : 0 : tree res_op0;
11534 : 0 : {
11535 : 0 : tree _o1[2], _r1;
11536 : 0 : _o1[0] = captures[1];
11537 : 0 : _o1[1] = captures[3];
11538 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11539 : 0 : res_op0 = _r1;
11540 : : }
11541 : 0 : tree _r;
11542 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_EXP, type, 1, res_op0);
11543 : 0 : if (!_r)
11544 : 0 : goto next_after_fail1567;
11545 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 986, __FILE__, __LINE__, true);
11546 : 0 : return _r;
11547 : : }
11548 : 0 : next_after_fail1567:;
11549 : : }
11550 : : }
11551 : : }
11552 : : break;
11553 : 0 : case CFN_POW:
11554 : 0 : if (call_expr_nargs (_p1) == 2)
11555 : : {
11556 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
11557 : 0 : tree _q41 = CALL_EXPR_ARG (_p1, 1);
11558 : 0 : switch (TREE_CODE (_q40))
11559 : : {
11560 : 0 : case REAL_CST:
11561 : 0 : {
11562 : 0 : {
11563 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q40, _q41, _p0, _q20 };
11564 : 0 : if (flag_unsafe_math_optimizations
11565 : : )
11566 : : {
11567 : 0 : if (real_compare (GT_EXPR, TREE_REAL_CST_PTR (captures[1]), &dconst0)
11568 : 0 : && real_isfinite (TREE_REAL_CST_PTR (captures[1]))
11569 : : )
11570 : : {
11571 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1568;
11572 : 0 : {
11573 : 0 : tree res_op0;
11574 : 0 : {
11575 : 0 : tree _o1[2], _r1;
11576 : 0 : {
11577 : 0 : tree _o2[2], _r2;
11578 : 0 : {
11579 : 0 : tree _o3[1], _r3;
11580 : 0 : _o3[0] = captures[1];
11581 : 0 : _r3 = maybe_build_call_expr_loc (loc, CFN_LOG, TREE_TYPE (_o3[0]), 1, _o3[0]);
11582 : 0 : if (!_r3)
11583 : 0 : goto next_after_fail1568;
11584 : 0 : _o2[0] = _r3;
11585 : : }
11586 : 0 : _o2[1] = captures[2];
11587 : 0 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
11588 : 0 : _o1[0] = _r2;
11589 : : }
11590 : 0 : _o1[1] = captures[4];
11591 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11592 : 0 : res_op0 = _r1;
11593 : : }
11594 : 0 : tree _r;
11595 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_EXP, type, 1, res_op0);
11596 : 0 : if (!_r)
11597 : 0 : goto next_after_fail1568;
11598 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 987, __FILE__, __LINE__, true);
11599 : 0 : return _r;
11600 : : }
11601 : 0 : next_after_fail1568:;
11602 : : }
11603 : : }
11604 : : }
11605 : 0 : break;
11606 : : }
11607 : : default:;
11608 : : }
11609 : : }
11610 : : break;
11611 : : default:;
11612 : : }
11613 : : break;
11614 : : default:;
11615 : : }
11616 : : }
11617 : : break;
11618 : 0 : case CFN_POW:
11619 : 0 : if (call_expr_nargs (_p0) == 2)
11620 : : {
11621 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11622 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
11623 : 0 : switch (TREE_CODE (_q20))
11624 : : {
11625 : 0 : case REAL_CST:
11626 : 0 : {
11627 : 0 : switch (TREE_CODE (_p1))
11628 : : {
11629 : 0 : case CALL_EXPR:
11630 : 0 : switch (get_call_combined_fn (_p1))
11631 : : {
11632 : 0 : case CFN_EXP:
11633 : 0 : if (call_expr_nargs (_p1) == 1)
11634 : : {
11635 : 0 : tree _q50 = CALL_EXPR_ARG (_p1, 0);
11636 : 0 : {
11637 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
11638 : 0 : if (flag_unsafe_math_optimizations
11639 : : )
11640 : : {
11641 : 0 : if (real_compare (GT_EXPR, TREE_REAL_CST_PTR (captures[1]), &dconst0)
11642 : 0 : && real_isfinite (TREE_REAL_CST_PTR (captures[1]))
11643 : : )
11644 : : {
11645 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1569;
11646 : 0 : {
11647 : 0 : tree res_op0;
11648 : 0 : {
11649 : 0 : tree _o1[2], _r1;
11650 : 0 : {
11651 : 0 : tree _o2[2], _r2;
11652 : 0 : {
11653 : 0 : tree _o3[1], _r3;
11654 : 0 : _o3[0] = captures[1];
11655 : 0 : _r3 = maybe_build_call_expr_loc (loc, CFN_LOG, TREE_TYPE (_o3[0]), 1, _o3[0]);
11656 : 0 : if (!_r3)
11657 : 0 : goto next_after_fail1569;
11658 : 0 : _o2[0] = _r3;
11659 : : }
11660 : 0 : _o2[1] = captures[2];
11661 : 0 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
11662 : 0 : _o1[0] = _r2;
11663 : : }
11664 : 0 : _o1[1] = captures[4];
11665 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11666 : 0 : res_op0 = _r1;
11667 : : }
11668 : 0 : tree _r;
11669 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_EXP, type, 1, res_op0);
11670 : 0 : if (!_r)
11671 : 0 : goto next_after_fail1569;
11672 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 987, __FILE__, __LINE__, true);
11673 : 0 : return _r;
11674 : : }
11675 : 0 : next_after_fail1569:;
11676 : : }
11677 : : }
11678 : : }
11679 : : }
11680 : : break;
11681 : 0 : case CFN_EXP2:
11682 : 0 : if (call_expr_nargs (_p1) == 1)
11683 : : {
11684 : 0 : tree _q50 = CALL_EXPR_ARG (_p1, 0);
11685 : 0 : {
11686 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
11687 : 0 : if (flag_unsafe_math_optimizations
11688 : : )
11689 : : {
11690 : 0 : if (real_compare (GT_EXPR, TREE_REAL_CST_PTR (captures[1]), &dconst0)
11691 : 0 : && real_isfinite (TREE_REAL_CST_PTR (captures[1]))
11692 : : )
11693 : : {
11694 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1570;
11695 : 0 : {
11696 : 0 : tree res_op0;
11697 : 0 : {
11698 : 0 : tree _o1[2], _r1;
11699 : 0 : {
11700 : 0 : tree _o2[2], _r2;
11701 : 0 : {
11702 : 0 : tree _o3[1], _r3;
11703 : 0 : _o3[0] = captures[1];
11704 : 0 : _r3 = maybe_build_call_expr_loc (loc, CFN_LOG2, TREE_TYPE (_o3[0]), 1, _o3[0]);
11705 : 0 : if (!_r3)
11706 : 0 : goto next_after_fail1570;
11707 : 0 : _o2[0] = _r3;
11708 : : }
11709 : 0 : _o2[1] = captures[2];
11710 : 0 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
11711 : 0 : _o1[0] = _r2;
11712 : : }
11713 : 0 : _o1[1] = captures[4];
11714 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11715 : 0 : res_op0 = _r1;
11716 : : }
11717 : 0 : tree _r;
11718 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_EXP2, type, 1, res_op0);
11719 : 0 : if (!_r)
11720 : 0 : goto next_after_fail1570;
11721 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 987, __FILE__, __LINE__, true);
11722 : 0 : return _r;
11723 : : }
11724 : 0 : next_after_fail1570:;
11725 : : }
11726 : : }
11727 : : }
11728 : : }
11729 : : break;
11730 : 0 : case CFN_EXP10:
11731 : 0 : if (call_expr_nargs (_p1) == 1)
11732 : : {
11733 : 0 : tree _q50 = CALL_EXPR_ARG (_p1, 0);
11734 : 0 : {
11735 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
11736 : 0 : if (flag_unsafe_math_optimizations
11737 : : )
11738 : : {
11739 : 0 : if (real_compare (GT_EXPR, TREE_REAL_CST_PTR (captures[1]), &dconst0)
11740 : 0 : && real_isfinite (TREE_REAL_CST_PTR (captures[1]))
11741 : : )
11742 : : {
11743 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1571;
11744 : 0 : {
11745 : 0 : tree res_op0;
11746 : 0 : {
11747 : 0 : tree _o1[2], _r1;
11748 : 0 : {
11749 : 0 : tree _o2[2], _r2;
11750 : 0 : {
11751 : 0 : tree _o3[1], _r3;
11752 : 0 : _o3[0] = captures[1];
11753 : 0 : _r3 = maybe_build_call_expr_loc (loc, CFN_LOG10, TREE_TYPE (_o3[0]), 1, _o3[0]);
11754 : 0 : if (!_r3)
11755 : 0 : goto next_after_fail1571;
11756 : 0 : _o2[0] = _r3;
11757 : : }
11758 : 0 : _o2[1] = captures[2];
11759 : 0 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
11760 : 0 : _o1[0] = _r2;
11761 : : }
11762 : 0 : _o1[1] = captures[4];
11763 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11764 : 0 : res_op0 = _r1;
11765 : : }
11766 : 0 : tree _r;
11767 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_EXP10, type, 1, res_op0);
11768 : 0 : if (!_r)
11769 : 0 : goto next_after_fail1571;
11770 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 987, __FILE__, __LINE__, true);
11771 : 0 : return _r;
11772 : : }
11773 : 0 : next_after_fail1571:;
11774 : : }
11775 : : }
11776 : : }
11777 : : }
11778 : : break;
11779 : : default:;
11780 : : }
11781 : : break;
11782 : : default:;
11783 : : }
11784 : : break;
11785 : : }
11786 : 0 : default:;
11787 : : }
11788 : 0 : switch (TREE_CODE (_q21))
11789 : : {
11790 : 0 : case REAL_CST:
11791 : 0 : {
11792 : 0 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
11793 : : {
11794 : 0 : {
11795 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p0, _q21 };
11796 : 0 : tree res = generic_simplify_193 (loc, type, _p0, _p1, captures, CFN_POW);
11797 : 0 : if (res) return res;
11798 : : }
11799 : : }
11800 : : break;
11801 : : }
11802 : : default:;
11803 : : }
11804 : : }
11805 : : break;
11806 : 24 : case CFN_BUILT_IN_POW10F:
11807 : 24 : if (call_expr_nargs (_p0) == 1)
11808 : : {
11809 : 24 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11810 : 24 : switch (TREE_CODE (_p1))
11811 : : {
11812 : 12 : case CALL_EXPR:
11813 : 12 : switch (get_call_combined_fn (_p1))
11814 : : {
11815 : 0 : case CFN_BUILT_IN_POWF:
11816 : 0 : if (call_expr_nargs (_p1) == 2)
11817 : : {
11818 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
11819 : 0 : tree _q41 = CALL_EXPR_ARG (_p1, 1);
11820 : 0 : switch (TREE_CODE (_q40))
11821 : : {
11822 : 0 : case REAL_CST:
11823 : 0 : {
11824 : 0 : {
11825 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q40, _q41, _p0, _q20 };
11826 : 0 : if (flag_unsafe_math_optimizations
11827 : : )
11828 : : {
11829 : 0 : if (real_compare (GT_EXPR, TREE_REAL_CST_PTR (captures[1]), &dconst0)
11830 : 0 : && real_isfinite (TREE_REAL_CST_PTR (captures[1]))
11831 : : )
11832 : : {
11833 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1572;
11834 : 0 : {
11835 : 0 : tree res_op0;
11836 : 0 : {
11837 : 0 : tree _o1[2], _r1;
11838 : 0 : {
11839 : 0 : tree _o2[2], _r2;
11840 : 0 : {
11841 : 0 : tree _o3[1], _r3;
11842 : 0 : _o3[0] = captures[1];
11843 : 0 : _r3 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_LOG10F, TREE_TYPE (_o3[0]), 1, _o3[0]);
11844 : 0 : if (!_r3)
11845 : 0 : goto next_after_fail1572;
11846 : 0 : _o2[0] = _r3;
11847 : : }
11848 : 0 : _o2[1] = captures[2];
11849 : 0 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
11850 : 0 : _o1[0] = _r2;
11851 : : }
11852 : 0 : _o1[1] = captures[4];
11853 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11854 : 0 : res_op0 = _r1;
11855 : : }
11856 : 0 : tree _r;
11857 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_POW10F, type, 1, res_op0);
11858 : 0 : if (!_r)
11859 : 0 : goto next_after_fail1572;
11860 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 987, __FILE__, __LINE__, true);
11861 : 0 : return _r;
11862 : : }
11863 : 0 : next_after_fail1572:;
11864 : : }
11865 : : }
11866 : : }
11867 : 0 : break;
11868 : : }
11869 : : default:;
11870 : : }
11871 : : }
11872 : : break;
11873 : 12 : case CFN_BUILT_IN_POW10F:
11874 : 12 : if (call_expr_nargs (_p1) == 1)
11875 : : {
11876 : 12 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
11877 : 12 : {
11878 : 12 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
11879 : 12 : if (flag_unsafe_math_optimizations
11880 : : )
11881 : : {
11882 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1573;
11883 : 12 : {
11884 : 12 : tree res_op0;
11885 : 12 : {
11886 : 12 : tree _o1[2], _r1;
11887 : 12 : _o1[0] = captures[1];
11888 : 12 : _o1[1] = captures[3];
11889 : 12 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11890 : 12 : res_op0 = _r1;
11891 : : }
11892 : 12 : tree _r;
11893 : 12 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_POW10F, type, 1, res_op0);
11894 : 12 : if (!_r)
11895 : 12 : goto next_after_fail1573;
11896 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 986, __FILE__, __LINE__, true);
11897 : 0 : return _r;
11898 : : }
11899 : 12 : next_after_fail1573:;
11900 : : }
11901 : : }
11902 : : }
11903 : : break;
11904 : : default:;
11905 : : }
11906 : : break;
11907 : : default:;
11908 : : }
11909 : : }
11910 : : break;
11911 : 24 : case CFN_BUILT_IN_POW10L:
11912 : 24 : if (call_expr_nargs (_p0) == 1)
11913 : : {
11914 : 24 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11915 : 24 : switch (TREE_CODE (_p1))
11916 : : {
11917 : 12 : case CALL_EXPR:
11918 : 12 : switch (get_call_combined_fn (_p1))
11919 : : {
11920 : 0 : case CFN_BUILT_IN_POWL:
11921 : 0 : if (call_expr_nargs (_p1) == 2)
11922 : : {
11923 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
11924 : 0 : tree _q41 = CALL_EXPR_ARG (_p1, 1);
11925 : 0 : switch (TREE_CODE (_q40))
11926 : : {
11927 : 0 : case REAL_CST:
11928 : 0 : {
11929 : 0 : {
11930 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q40, _q41, _p0, _q20 };
11931 : 0 : if (flag_unsafe_math_optimizations
11932 : : )
11933 : : {
11934 : 0 : if (real_compare (GT_EXPR, TREE_REAL_CST_PTR (captures[1]), &dconst0)
11935 : 0 : && real_isfinite (TREE_REAL_CST_PTR (captures[1]))
11936 : : )
11937 : : {
11938 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1574;
11939 : 0 : {
11940 : 0 : tree res_op0;
11941 : 0 : {
11942 : 0 : tree _o1[2], _r1;
11943 : 0 : {
11944 : 0 : tree _o2[2], _r2;
11945 : 0 : {
11946 : 0 : tree _o3[1], _r3;
11947 : 0 : _o3[0] = captures[1];
11948 : 0 : _r3 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_LOG10L, TREE_TYPE (_o3[0]), 1, _o3[0]);
11949 : 0 : if (!_r3)
11950 : 0 : goto next_after_fail1574;
11951 : 0 : _o2[0] = _r3;
11952 : : }
11953 : 0 : _o2[1] = captures[2];
11954 : 0 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
11955 : 0 : _o1[0] = _r2;
11956 : : }
11957 : 0 : _o1[1] = captures[4];
11958 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11959 : 0 : res_op0 = _r1;
11960 : : }
11961 : 0 : tree _r;
11962 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_POW10L, type, 1, res_op0);
11963 : 0 : if (!_r)
11964 : 0 : goto next_after_fail1574;
11965 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 987, __FILE__, __LINE__, true);
11966 : 0 : return _r;
11967 : : }
11968 : 0 : next_after_fail1574:;
11969 : : }
11970 : : }
11971 : : }
11972 : 0 : break;
11973 : : }
11974 : : default:;
11975 : : }
11976 : : }
11977 : : break;
11978 : 12 : case CFN_BUILT_IN_POW10L:
11979 : 12 : if (call_expr_nargs (_p1) == 1)
11980 : : {
11981 : 12 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
11982 : 12 : {
11983 : 12 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
11984 : 12 : if (flag_unsafe_math_optimizations
11985 : : )
11986 : : {
11987 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1575;
11988 : 12 : {
11989 : 12 : tree res_op0;
11990 : 12 : {
11991 : 12 : tree _o1[2], _r1;
11992 : 12 : _o1[0] = captures[1];
11993 : 12 : _o1[1] = captures[3];
11994 : 12 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11995 : 12 : res_op0 = _r1;
11996 : : }
11997 : 12 : tree _r;
11998 : 12 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_POW10L, type, 1, res_op0);
11999 : 12 : if (!_r)
12000 : 12 : goto next_after_fail1575;
12001 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 986, __FILE__, __LINE__, true);
12002 : 0 : return _r;
12003 : : }
12004 : 12 : next_after_fail1575:;
12005 : : }
12006 : : }
12007 : : }
12008 : : break;
12009 : : default:;
12010 : : }
12011 : : break;
12012 : : default:;
12013 : : }
12014 : : }
12015 : : break;
12016 : 0 : case CFN_BUILT_IN_SQRTF128X:
12017 : 0 : if (call_expr_nargs (_p0) == 1)
12018 : : {
12019 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
12020 : 0 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
12021 : : {
12022 : 0 : {
12023 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
12024 : 0 : tree res = generic_simplify_192 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_SQRTF128X);
12025 : 0 : if (res) return res;
12026 : : }
12027 : : }
12028 : : }
12029 : : break;
12030 : 0 : case CFN_EXP2:
12031 : 0 : if (call_expr_nargs (_p0) == 1)
12032 : : {
12033 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
12034 : 0 : switch (TREE_CODE (_p1))
12035 : : {
12036 : 0 : case CALL_EXPR:
12037 : 0 : switch (get_call_combined_fn (_p1))
12038 : : {
12039 : 0 : case CFN_POW:
12040 : 0 : if (call_expr_nargs (_p1) == 2)
12041 : : {
12042 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
12043 : 0 : tree _q41 = CALL_EXPR_ARG (_p1, 1);
12044 : 0 : switch (TREE_CODE (_q40))
12045 : : {
12046 : 0 : case REAL_CST:
12047 : 0 : {
12048 : 0 : {
12049 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q40, _q41, _p0, _q20 };
12050 : 0 : if (flag_unsafe_math_optimizations
12051 : : )
12052 : : {
12053 : 0 : if (real_compare (GT_EXPR, TREE_REAL_CST_PTR (captures[1]), &dconst0)
12054 : 0 : && real_isfinite (TREE_REAL_CST_PTR (captures[1]))
12055 : : )
12056 : : {
12057 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1576;
12058 : 0 : {
12059 : 0 : tree res_op0;
12060 : 0 : {
12061 : 0 : tree _o1[2], _r1;
12062 : 0 : {
12063 : 0 : tree _o2[2], _r2;
12064 : 0 : {
12065 : 0 : tree _o3[1], _r3;
12066 : 0 : _o3[0] = captures[1];
12067 : 0 : _r3 = maybe_build_call_expr_loc (loc, CFN_LOG2, TREE_TYPE (_o3[0]), 1, _o3[0]);
12068 : 0 : if (!_r3)
12069 : 0 : goto next_after_fail1576;
12070 : 0 : _o2[0] = _r3;
12071 : : }
12072 : 0 : _o2[1] = captures[2];
12073 : 0 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
12074 : 0 : _o1[0] = _r2;
12075 : : }
12076 : 0 : _o1[1] = captures[4];
12077 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
12078 : 0 : res_op0 = _r1;
12079 : : }
12080 : 0 : tree _r;
12081 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_EXP2, type, 1, res_op0);
12082 : 0 : if (!_r)
12083 : 0 : goto next_after_fail1576;
12084 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 987, __FILE__, __LINE__, true);
12085 : 0 : return _r;
12086 : : }
12087 : 0 : next_after_fail1576:;
12088 : : }
12089 : : }
12090 : : }
12091 : 0 : break;
12092 : : }
12093 : : default:;
12094 : : }
12095 : : }
12096 : : break;
12097 : 0 : case CFN_EXP2:
12098 : 0 : if (call_expr_nargs (_p1) == 1)
12099 : : {
12100 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
12101 : 0 : {
12102 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
12103 : 0 : if (flag_unsafe_math_optimizations
12104 : : )
12105 : : {
12106 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1577;
12107 : 0 : {
12108 : 0 : tree res_op0;
12109 : 0 : {
12110 : 0 : tree _o1[2], _r1;
12111 : 0 : _o1[0] = captures[1];
12112 : 0 : _o1[1] = captures[3];
12113 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
12114 : 0 : res_op0 = _r1;
12115 : : }
12116 : 0 : tree _r;
12117 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_EXP2, type, 1, res_op0);
12118 : 0 : if (!_r)
12119 : 0 : goto next_after_fail1577;
12120 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 986, __FILE__, __LINE__, true);
12121 : 0 : return _r;
12122 : : }
12123 : 0 : next_after_fail1577:;
12124 : : }
12125 : : }
12126 : : }
12127 : : break;
12128 : : default:;
12129 : : }
12130 : : break;
12131 : : default:;
12132 : : }
12133 : : }
12134 : : break;
12135 : 0 : case CFN_SQRT:
12136 : 0 : if (call_expr_nargs (_p0) == 1)
12137 : : {
12138 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
12139 : 0 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
12140 : : {
12141 : 0 : {
12142 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
12143 : 0 : tree res = generic_simplify_192 (loc, type, _p0, _p1, captures, CFN_SQRT);
12144 : 0 : if (res) return res;
12145 : : }
12146 : : }
12147 : 0 : switch (TREE_CODE (_p1))
12148 : : {
12149 : 0 : case CALL_EXPR:
12150 : 0 : switch (get_call_combined_fn (_p1))
12151 : : {
12152 : 0 : case CFN_SQRT:
12153 : 0 : if (call_expr_nargs (_p1) == 1)
12154 : : {
12155 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
12156 : 0 : {
12157 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
12158 : 0 : if (flag_unsafe_math_optimizations
12159 : : )
12160 : : {
12161 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1578;
12162 : 0 : {
12163 : 0 : tree res_op0;
12164 : 0 : {
12165 : 0 : tree _o1[2], _r1;
12166 : 0 : _o1[0] = captures[1];
12167 : 0 : _o1[1] = captures[3];
12168 : 0 : _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
12169 : 0 : res_op0 = _r1;
12170 : : }
12171 : 0 : tree _r;
12172 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_SQRT, type, 1, res_op0);
12173 : 0 : if (!_r)
12174 : 0 : goto next_after_fail1578;
12175 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 985, __FILE__, __LINE__, true);
12176 : 0 : return _r;
12177 : : }
12178 : 0 : next_after_fail1578:;
12179 : : }
12180 : : }
12181 : : }
12182 : : break;
12183 : : default:;
12184 : : }
12185 : : break;
12186 : : default:;
12187 : : }
12188 : : }
12189 : : break;
12190 : 0 : case CFN_EXP10:
12191 : 0 : if (call_expr_nargs (_p0) == 1)
12192 : : {
12193 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
12194 : 0 : switch (TREE_CODE (_p1))
12195 : : {
12196 : 0 : case CALL_EXPR:
12197 : 0 : switch (get_call_combined_fn (_p1))
12198 : : {
12199 : 0 : case CFN_POW:
12200 : 0 : if (call_expr_nargs (_p1) == 2)
12201 : : {
12202 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
12203 : 0 : tree _q41 = CALL_EXPR_ARG (_p1, 1);
12204 : 0 : switch (TREE_CODE (_q40))
12205 : : {
12206 : 0 : case REAL_CST:
12207 : 0 : {
12208 : 0 : {
12209 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q40, _q41, _p0, _q20 };
12210 : 0 : if (flag_unsafe_math_optimizations
12211 : : )
12212 : : {
12213 : 0 : if (real_compare (GT_EXPR, TREE_REAL_CST_PTR (captures[1]), &dconst0)
12214 : 0 : && real_isfinite (TREE_REAL_CST_PTR (captures[1]))
12215 : : )
12216 : : {
12217 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1579;
12218 : 0 : {
12219 : 0 : tree res_op0;
12220 : 0 : {
12221 : 0 : tree _o1[2], _r1;
12222 : 0 : {
12223 : 0 : tree _o2[2], _r2;
12224 : 0 : {
12225 : 0 : tree _o3[1], _r3;
12226 : 0 : _o3[0] = captures[1];
12227 : 0 : _r3 = maybe_build_call_expr_loc (loc, CFN_LOG10, TREE_TYPE (_o3[0]), 1, _o3[0]);
12228 : 0 : if (!_r3)
12229 : 0 : goto next_after_fail1579;
12230 : 0 : _o2[0] = _r3;
12231 : : }
12232 : 0 : _o2[1] = captures[2];
12233 : 0 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
12234 : 0 : _o1[0] = _r2;
12235 : : }
12236 : 0 : _o1[1] = captures[4];
12237 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
12238 : 0 : res_op0 = _r1;
12239 : : }
12240 : 0 : tree _r;
12241 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_EXP10, type, 1, res_op0);
12242 : 0 : if (!_r)
12243 : 0 : goto next_after_fail1579;
12244 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 987, __FILE__, __LINE__, true);
12245 : 0 : return _r;
12246 : : }
12247 : 0 : next_after_fail1579:;
12248 : : }
12249 : : }
12250 : : }
12251 : 0 : break;
12252 : : }
12253 : : default:;
12254 : : }
12255 : : }
12256 : : break;
12257 : 0 : case CFN_EXP10:
12258 : 0 : if (call_expr_nargs (_p1) == 1)
12259 : : {
12260 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
12261 : 0 : {
12262 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
12263 : 0 : if (flag_unsafe_math_optimizations
12264 : : )
12265 : : {
12266 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1580;
12267 : 0 : {
12268 : 0 : tree res_op0;
12269 : 0 : {
12270 : 0 : tree _o1[2], _r1;
12271 : 0 : _o1[0] = captures[1];
12272 : 0 : _o1[1] = captures[3];
12273 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
12274 : 0 : res_op0 = _r1;
12275 : : }
12276 : 0 : tree _r;
12277 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_EXP10, type, 1, res_op0);
12278 : 0 : if (!_r)
12279 : 0 : goto next_after_fail1580;
12280 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 986, __FILE__, __LINE__, true);
12281 : 0 : return _r;
12282 : : }
12283 : 0 : next_after_fail1580:;
12284 : : }
12285 : : }
12286 : : }
12287 : : break;
12288 : : default:;
12289 : : }
12290 : : break;
12291 : : default:;
12292 : : }
12293 : : }
12294 : : break;
12295 : 12 : case CFN_BUILT_IN_CBRTF:
12296 : 12 : if (call_expr_nargs (_p0) == 1)
12297 : : {
12298 : 12 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
12299 : 12 : switch (TREE_CODE (_p1))
12300 : : {
12301 : 12 : case CALL_EXPR:
12302 : 12 : switch (get_call_combined_fn (_p1))
12303 : : {
12304 : 12 : case CFN_BUILT_IN_CBRTF:
12305 : 12 : if (call_expr_nargs (_p1) == 1)
12306 : : {
12307 : 12 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
12308 : 12 : {
12309 : 12 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
12310 : 12 : if (flag_unsafe_math_optimizations
12311 : : )
12312 : : {
12313 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1581;
12314 : 12 : {
12315 : 12 : tree res_op0;
12316 : 12 : {
12317 : 12 : tree _o1[2], _r1;
12318 : 12 : _o1[0] = captures[1];
12319 : 12 : _o1[1] = captures[3];
12320 : 12 : _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
12321 : 12 : res_op0 = _r1;
12322 : : }
12323 : 12 : tree _r;
12324 : 12 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_CBRTF, type, 1, res_op0);
12325 : 12 : if (!_r)
12326 : 0 : goto next_after_fail1581;
12327 : 12 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 985, __FILE__, __LINE__, true);
12328 : 12 : return _r;
12329 : : }
12330 : 0 : next_after_fail1581:;
12331 : : }
12332 : : }
12333 : : }
12334 : : break;
12335 : : default:;
12336 : : }
12337 : : break;
12338 : : default:;
12339 : : }
12340 : : }
12341 : : break;
12342 : 12 : case CFN_BUILT_IN_CBRTL:
12343 : 12 : if (call_expr_nargs (_p0) == 1)
12344 : : {
12345 : 12 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
12346 : 12 : switch (TREE_CODE (_p1))
12347 : : {
12348 : 12 : case CALL_EXPR:
12349 : 12 : switch (get_call_combined_fn (_p1))
12350 : : {
12351 : 12 : case CFN_BUILT_IN_CBRTL:
12352 : 12 : if (call_expr_nargs (_p1) == 1)
12353 : : {
12354 : 12 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
12355 : 12 : {
12356 : 12 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
12357 : 12 : if (flag_unsafe_math_optimizations
12358 : : )
12359 : : {
12360 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1582;
12361 : 12 : {
12362 : 12 : tree res_op0;
12363 : 12 : {
12364 : 12 : tree _o1[2], _r1;
12365 : 12 : _o1[0] = captures[1];
12366 : 12 : _o1[1] = captures[3];
12367 : 12 : _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
12368 : 12 : res_op0 = _r1;
12369 : : }
12370 : 12 : tree _r;
12371 : 12 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_CBRTL, type, 1, res_op0);
12372 : 12 : if (!_r)
12373 : 0 : goto next_after_fail1582;
12374 : 12 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 985, __FILE__, __LINE__, true);
12375 : 12 : return _r;
12376 : : }
12377 : 0 : next_after_fail1582:;
12378 : : }
12379 : : }
12380 : : }
12381 : : break;
12382 : : default:;
12383 : : }
12384 : : break;
12385 : : default:;
12386 : : }
12387 : : }
12388 : : break;
12389 : 0 : case CFN_LDEXP:
12390 : 0 : if (call_expr_nargs (_p0) == 2)
12391 : : {
12392 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
12393 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
12394 : 0 : switch (TREE_CODE (_p1))
12395 : : {
12396 : 0 : case REAL_CST:
12397 : 0 : {
12398 : 0 : {
12399 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q21 };
12400 : 0 : tree res = generic_simplify_194 (loc, type, _p0, _p1, captures, CFN_LDEXP);
12401 : 0 : if (res) return res;
12402 : : }
12403 : 0 : break;
12404 : : }
12405 : 0 : default:;
12406 : : }
12407 : 0 : switch (TREE_CODE (_q20))
12408 : : {
12409 : 0 : case REAL_CST:
12410 : 0 : {
12411 : 0 : {
12412 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q21 };
12413 : 0 : tree res = generic_simplify_195 (loc, type, _p0, _p1, captures, CFN_LDEXP);
12414 : 0 : if (res) return res;
12415 : : }
12416 : 0 : break;
12417 : : }
12418 : : default:;
12419 : : }
12420 : : }
12421 : : break;
12422 : 48 : case CFN_BUILT_IN_EXP10:
12423 : 48 : if (call_expr_nargs (_p0) == 1)
12424 : : {
12425 : 48 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
12426 : 48 : switch (TREE_CODE (_p1))
12427 : : {
12428 : 24 : case CALL_EXPR:
12429 : 24 : switch (get_call_combined_fn (_p1))
12430 : : {
12431 : 0 : case CFN_BUILT_IN_POW:
12432 : 0 : if (call_expr_nargs (_p1) == 2)
12433 : : {
12434 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
12435 : 0 : tree _q41 = CALL_EXPR_ARG (_p1, 1);
12436 : 0 : switch (TREE_CODE (_q40))
12437 : : {
12438 : 0 : case REAL_CST:
12439 : 0 : {
12440 : 0 : {
12441 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q40, _q41, _p0, _q20 };
12442 : 0 : if (flag_unsafe_math_optimizations
12443 : : )
12444 : : {
12445 : 0 : if (real_compare (GT_EXPR, TREE_REAL_CST_PTR (captures[1]), &dconst0)
12446 : 0 : && real_isfinite (TREE_REAL_CST_PTR (captures[1]))
12447 : : )
12448 : : {
12449 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1583;
12450 : 0 : {
12451 : 0 : tree res_op0;
12452 : 0 : {
12453 : 0 : tree _o1[2], _r1;
12454 : 0 : {
12455 : 0 : tree _o2[2], _r2;
12456 : 0 : {
12457 : 0 : tree _o3[1], _r3;
12458 : 0 : _o3[0] = captures[1];
12459 : 0 : _r3 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_LOG10, TREE_TYPE (_o3[0]), 1, _o3[0]);
12460 : 0 : if (!_r3)
12461 : 0 : goto next_after_fail1583;
12462 : 0 : _o2[0] = _r3;
12463 : : }
12464 : 0 : _o2[1] = captures[2];
12465 : 0 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
12466 : 0 : _o1[0] = _r2;
12467 : : }
12468 : 0 : _o1[1] = captures[4];
12469 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
12470 : 0 : res_op0 = _r1;
12471 : : }
12472 : 0 : tree _r;
12473 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXP10, type, 1, res_op0);
12474 : 0 : if (!_r)
12475 : 0 : goto next_after_fail1583;
12476 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 987, __FILE__, __LINE__, true);
12477 : 0 : return _r;
12478 : : }
12479 : 0 : next_after_fail1583:;
12480 : : }
12481 : : }
12482 : : }
12483 : 0 : break;
12484 : : }
12485 : : default:;
12486 : : }
12487 : : }
12488 : : break;
12489 : 24 : case CFN_BUILT_IN_EXP10:
12490 : 24 : if (call_expr_nargs (_p1) == 1)
12491 : : {
12492 : 24 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
12493 : 24 : {
12494 : 24 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
12495 : 24 : if (flag_unsafe_math_optimizations
12496 : : )
12497 : : {
12498 : 24 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1584;
12499 : 24 : {
12500 : 24 : tree res_op0;
12501 : 24 : {
12502 : 24 : tree _o1[2], _r1;
12503 : 24 : _o1[0] = captures[1];
12504 : 24 : _o1[1] = captures[3];
12505 : 24 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
12506 : 24 : res_op0 = _r1;
12507 : : }
12508 : 24 : tree _r;
12509 : 24 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXP10, type, 1, res_op0);
12510 : 24 : if (!_r)
12511 : 0 : goto next_after_fail1584;
12512 : 24 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 986, __FILE__, __LINE__, true);
12513 : 24 : return _r;
12514 : : }
12515 : 0 : next_after_fail1584:;
12516 : : }
12517 : : }
12518 : : }
12519 : : break;
12520 : : default:;
12521 : : }
12522 : : break;
12523 : : default:;
12524 : : }
12525 : : }
12526 : : break;
12527 : 48 : case CFN_BUILT_IN_EXP2F:
12528 : 48 : if (call_expr_nargs (_p0) == 1)
12529 : : {
12530 : 48 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
12531 : 48 : switch (TREE_CODE (_p1))
12532 : : {
12533 : 24 : case CALL_EXPR:
12534 : 24 : switch (get_call_combined_fn (_p1))
12535 : : {
12536 : 0 : case CFN_BUILT_IN_POWF:
12537 : 0 : if (call_expr_nargs (_p1) == 2)
12538 : : {
12539 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
12540 : 0 : tree _q41 = CALL_EXPR_ARG (_p1, 1);
12541 : 0 : switch (TREE_CODE (_q40))
12542 : : {
12543 : 0 : case REAL_CST:
12544 : 0 : {
12545 : 0 : {
12546 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q40, _q41, _p0, _q20 };
12547 : 0 : if (flag_unsafe_math_optimizations
12548 : : )
12549 : : {
12550 : 0 : if (real_compare (GT_EXPR, TREE_REAL_CST_PTR (captures[1]), &dconst0)
12551 : 0 : && real_isfinite (TREE_REAL_CST_PTR (captures[1]))
12552 : : )
12553 : : {
12554 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1585;
12555 : 0 : {
12556 : 0 : tree res_op0;
12557 : 0 : {
12558 : 0 : tree _o1[2], _r1;
12559 : 0 : {
12560 : 0 : tree _o2[2], _r2;
12561 : 0 : {
12562 : 0 : tree _o3[1], _r3;
12563 : 0 : _o3[0] = captures[1];
12564 : 0 : _r3 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_LOG2F, TREE_TYPE (_o3[0]), 1, _o3[0]);
12565 : 0 : if (!_r3)
12566 : 0 : goto next_after_fail1585;
12567 : 0 : _o2[0] = _r3;
12568 : : }
12569 : 0 : _o2[1] = captures[2];
12570 : 0 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
12571 : 0 : _o1[0] = _r2;
12572 : : }
12573 : 0 : _o1[1] = captures[4];
12574 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
12575 : 0 : res_op0 = _r1;
12576 : : }
12577 : 0 : tree _r;
12578 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXP2F, type, 1, res_op0);
12579 : 0 : if (!_r)
12580 : 0 : goto next_after_fail1585;
12581 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 987, __FILE__, __LINE__, true);
12582 : 0 : return _r;
12583 : : }
12584 : 0 : next_after_fail1585:;
12585 : : }
12586 : : }
12587 : : }
12588 : 0 : break;
12589 : : }
12590 : : default:;
12591 : : }
12592 : : }
12593 : : break;
12594 : 24 : case CFN_BUILT_IN_EXP2F:
12595 : 24 : if (call_expr_nargs (_p1) == 1)
12596 : : {
12597 : 24 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
12598 : 24 : {
12599 : 24 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
12600 : 24 : if (flag_unsafe_math_optimizations
12601 : : )
12602 : : {
12603 : 24 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1586;
12604 : 24 : {
12605 : 24 : tree res_op0;
12606 : 24 : {
12607 : 24 : tree _o1[2], _r1;
12608 : 24 : _o1[0] = captures[1];
12609 : 24 : _o1[1] = captures[3];
12610 : 24 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
12611 : 24 : res_op0 = _r1;
12612 : : }
12613 : 24 : tree _r;
12614 : 24 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXP2F, type, 1, res_op0);
12615 : 24 : if (!_r)
12616 : 0 : goto next_after_fail1586;
12617 : 24 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 986, __FILE__, __LINE__, true);
12618 : 24 : return _r;
12619 : : }
12620 : 0 : next_after_fail1586:;
12621 : : }
12622 : : }
12623 : : }
12624 : : break;
12625 : : default:;
12626 : : }
12627 : : break;
12628 : : default:;
12629 : : }
12630 : : }
12631 : : break;
12632 : 48 : case CFN_BUILT_IN_EXP2L:
12633 : 48 : if (call_expr_nargs (_p0) == 1)
12634 : : {
12635 : 48 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
12636 : 48 : switch (TREE_CODE (_p1))
12637 : : {
12638 : 24 : case CALL_EXPR:
12639 : 24 : switch (get_call_combined_fn (_p1))
12640 : : {
12641 : 0 : case CFN_BUILT_IN_POWL:
12642 : 0 : if (call_expr_nargs (_p1) == 2)
12643 : : {
12644 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
12645 : 0 : tree _q41 = CALL_EXPR_ARG (_p1, 1);
12646 : 0 : switch (TREE_CODE (_q40))
12647 : : {
12648 : 0 : case REAL_CST:
12649 : 0 : {
12650 : 0 : {
12651 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q40, _q41, _p0, _q20 };
12652 : 0 : if (flag_unsafe_math_optimizations
12653 : : )
12654 : : {
12655 : 0 : if (real_compare (GT_EXPR, TREE_REAL_CST_PTR (captures[1]), &dconst0)
12656 : 0 : && real_isfinite (TREE_REAL_CST_PTR (captures[1]))
12657 : : )
12658 : : {
12659 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1587;
12660 : 0 : {
12661 : 0 : tree res_op0;
12662 : 0 : {
12663 : 0 : tree _o1[2], _r1;
12664 : 0 : {
12665 : 0 : tree _o2[2], _r2;
12666 : 0 : {
12667 : 0 : tree _o3[1], _r3;
12668 : 0 : _o3[0] = captures[1];
12669 : 0 : _r3 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_LOG2L, TREE_TYPE (_o3[0]), 1, _o3[0]);
12670 : 0 : if (!_r3)
12671 : 0 : goto next_after_fail1587;
12672 : 0 : _o2[0] = _r3;
12673 : : }
12674 : 0 : _o2[1] = captures[2];
12675 : 0 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
12676 : 0 : _o1[0] = _r2;
12677 : : }
12678 : 0 : _o1[1] = captures[4];
12679 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
12680 : 0 : res_op0 = _r1;
12681 : : }
12682 : 0 : tree _r;
12683 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXP2L, type, 1, res_op0);
12684 : 0 : if (!_r)
12685 : 0 : goto next_after_fail1587;
12686 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 987, __FILE__, __LINE__, true);
12687 : 0 : return _r;
12688 : : }
12689 : 0 : next_after_fail1587:;
12690 : : }
12691 : : }
12692 : : }
12693 : 0 : break;
12694 : : }
12695 : : default:;
12696 : : }
12697 : : }
12698 : : break;
12699 : 24 : case CFN_BUILT_IN_EXP2L:
12700 : 24 : if (call_expr_nargs (_p1) == 1)
12701 : : {
12702 : 24 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
12703 : 24 : {
12704 : 24 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
12705 : 24 : if (flag_unsafe_math_optimizations
12706 : : )
12707 : : {
12708 : 24 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1588;
12709 : 24 : {
12710 : 24 : tree res_op0;
12711 : 24 : {
12712 : 24 : tree _o1[2], _r1;
12713 : 24 : _o1[0] = captures[1];
12714 : 24 : _o1[1] = captures[3];
12715 : 24 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
12716 : 24 : res_op0 = _r1;
12717 : : }
12718 : 24 : tree _r;
12719 : 24 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_EXP2L, type, 1, res_op0);
12720 : 24 : if (!_r)
12721 : 0 : goto next_after_fail1588;
12722 : 24 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 986, __FILE__, __LINE__, true);
12723 : 24 : return _r;
12724 : : }
12725 : 0 : next_after_fail1588:;
12726 : : }
12727 : : }
12728 : : }
12729 : : break;
12730 : : default:;
12731 : : }
12732 : : break;
12733 : : default:;
12734 : : }
12735 : : }
12736 : : break;
12737 : 5 : case CFN_BUILT_IN_LDEXP:
12738 : 5 : if (call_expr_nargs (_p0) == 2)
12739 : : {
12740 : 5 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
12741 : 5 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
12742 : 5 : switch (TREE_CODE (_p1))
12743 : : {
12744 : 2 : case REAL_CST:
12745 : 2 : {
12746 : 2 : {
12747 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q21 };
12748 : 2 : tree res = generic_simplify_194 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LDEXP);
12749 : 2 : if (res) return res;
12750 : : }
12751 : 1 : break;
12752 : : }
12753 : 4 : default:;
12754 : : }
12755 : 4 : switch (TREE_CODE (_q20))
12756 : : {
12757 : 3 : case REAL_CST:
12758 : 3 : {
12759 : 3 : {
12760 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q21 };
12761 : 3 : tree res = generic_simplify_195 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LDEXP);
12762 : 3 : if (res) return res;
12763 : : }
12764 : 0 : break;
12765 : : }
12766 : : default:;
12767 : : }
12768 : : }
12769 : : break;
12770 : 24 : case CFN_BUILT_IN_POW10:
12771 : 24 : if (call_expr_nargs (_p0) == 1)
12772 : : {
12773 : 24 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
12774 : 24 : switch (TREE_CODE (_p1))
12775 : : {
12776 : 12 : case CALL_EXPR:
12777 : 12 : switch (get_call_combined_fn (_p1))
12778 : : {
12779 : 0 : case CFN_BUILT_IN_POW:
12780 : 0 : if (call_expr_nargs (_p1) == 2)
12781 : : {
12782 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
12783 : 0 : tree _q41 = CALL_EXPR_ARG (_p1, 1);
12784 : 0 : switch (TREE_CODE (_q40))
12785 : : {
12786 : 0 : case REAL_CST:
12787 : 0 : {
12788 : 0 : {
12789 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q40, _q41, _p0, _q20 };
12790 : 0 : if (flag_unsafe_math_optimizations
12791 : : )
12792 : : {
12793 : 0 : if (real_compare (GT_EXPR, TREE_REAL_CST_PTR (captures[1]), &dconst0)
12794 : 0 : && real_isfinite (TREE_REAL_CST_PTR (captures[1]))
12795 : : )
12796 : : {
12797 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1589;
12798 : 0 : {
12799 : 0 : tree res_op0;
12800 : 0 : {
12801 : 0 : tree _o1[2], _r1;
12802 : 0 : {
12803 : 0 : tree _o2[2], _r2;
12804 : 0 : {
12805 : 0 : tree _o3[1], _r3;
12806 : 0 : _o3[0] = captures[1];
12807 : 0 : _r3 = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_LOG10, TREE_TYPE (_o3[0]), 1, _o3[0]);
12808 : 0 : if (!_r3)
12809 : 0 : goto next_after_fail1589;
12810 : 0 : _o2[0] = _r3;
12811 : : }
12812 : 0 : _o2[1] = captures[2];
12813 : 0 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
12814 : 0 : _o1[0] = _r2;
12815 : : }
12816 : 0 : _o1[1] = captures[4];
12817 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
12818 : 0 : res_op0 = _r1;
12819 : : }
12820 : 0 : tree _r;
12821 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_POW10, type, 1, res_op0);
12822 : 0 : if (!_r)
12823 : 0 : goto next_after_fail1589;
12824 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 987, __FILE__, __LINE__, true);
12825 : 0 : return _r;
12826 : : }
12827 : 0 : next_after_fail1589:;
12828 : : }
12829 : : }
12830 : : }
12831 : 0 : break;
12832 : : }
12833 : : default:;
12834 : : }
12835 : : }
12836 : : break;
12837 : 12 : case CFN_BUILT_IN_POW10:
12838 : 12 : if (call_expr_nargs (_p1) == 1)
12839 : : {
12840 : 12 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
12841 : 12 : {
12842 : 12 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
12843 : 12 : if (flag_unsafe_math_optimizations
12844 : : )
12845 : : {
12846 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1590;
12847 : 12 : {
12848 : 12 : tree res_op0;
12849 : 12 : {
12850 : 12 : tree _o1[2], _r1;
12851 : 12 : _o1[0] = captures[1];
12852 : 12 : _o1[1] = captures[3];
12853 : 12 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
12854 : 12 : res_op0 = _r1;
12855 : : }
12856 : 12 : tree _r;
12857 : 12 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_POW10, type, 1, res_op0);
12858 : 12 : if (!_r)
12859 : 12 : goto next_after_fail1590;
12860 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 986, __FILE__, __LINE__, true);
12861 : 0 : return _r;
12862 : : }
12863 : 12 : next_after_fail1590:;
12864 : : }
12865 : : }
12866 : : }
12867 : : break;
12868 : : default:;
12869 : : }
12870 : : break;
12871 : : default:;
12872 : : }
12873 : : }
12874 : : break;
12875 : : default:;
12876 : : }
12877 : : break;
12878 : 64683269 : default:;
12879 : : }
12880 : 64683269 : switch (TREE_CODE (_p1))
12881 : : {
12882 : 932194 : case CALL_EXPR:
12883 : 932194 : switch (get_call_combined_fn (_p1))
12884 : : {
12885 : 0 : case CFN_BUILT_IN_LDEXPF:
12886 : 0 : if (call_expr_nargs (_p1) == 2)
12887 : : {
12888 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
12889 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
12890 : 0 : switch (TREE_CODE (_q30))
12891 : : {
12892 : 0 : case REAL_CST:
12893 : 0 : {
12894 : 0 : {
12895 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q31 };
12896 : 0 : tree res = generic_simplify_195 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LDEXPF);
12897 : 0 : if (res) return res;
12898 : : }
12899 : 0 : break;
12900 : : }
12901 : : default:;
12902 : : }
12903 : : }
12904 : : break;
12905 : 0 : case CFN_BUILT_IN_LDEXPL:
12906 : 0 : if (call_expr_nargs (_p1) == 2)
12907 : : {
12908 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
12909 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
12910 : 0 : switch (TREE_CODE (_q30))
12911 : : {
12912 : 0 : case REAL_CST:
12913 : 0 : {
12914 : 0 : {
12915 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q31 };
12916 : 0 : tree res = generic_simplify_195 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LDEXPL);
12917 : 0 : if (res) return res;
12918 : : }
12919 : 0 : break;
12920 : : }
12921 : : default:;
12922 : : }
12923 : : }
12924 : : break;
12925 : 0 : case CFN_LDEXP:
12926 : 0 : if (call_expr_nargs (_p1) == 2)
12927 : : {
12928 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
12929 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
12930 : 0 : switch (TREE_CODE (_q30))
12931 : : {
12932 : 0 : case REAL_CST:
12933 : 0 : {
12934 : 0 : {
12935 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q31 };
12936 : 0 : tree res = generic_simplify_195 (loc, type, _p0, _p1, captures, CFN_LDEXP);
12937 : 0 : if (res) return res;
12938 : : }
12939 : 0 : break;
12940 : : }
12941 : : default:;
12942 : : }
12943 : : }
12944 : : break;
12945 : 0 : case CFN_BUILT_IN_LDEXP:
12946 : 0 : if (call_expr_nargs (_p1) == 2)
12947 : : {
12948 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
12949 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
12950 : 0 : switch (TREE_CODE (_q30))
12951 : : {
12952 : 0 : case REAL_CST:
12953 : 0 : {
12954 : 0 : {
12955 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q31 };
12956 : 0 : tree res = generic_simplify_195 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LDEXP);
12957 : 0 : if (res) return res;
12958 : : }
12959 : 0 : break;
12960 : : }
12961 : : default:;
12962 : : }
12963 : : }
12964 : : break;
12965 : : default:;
12966 : : }
12967 : : break;
12968 : 64683269 : default:;
12969 : : }
12970 : 64683269 : switch (TREE_CODE (_p0))
12971 : : {
12972 : 2502302 : case CALL_EXPR:
12973 : 2502302 : switch (get_call_combined_fn (_p0))
12974 : : {
12975 : 29 : case CFN_BUILT_IN_COS:
12976 : 29 : if (call_expr_nargs (_p0) == 1)
12977 : : {
12978 : 29 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
12979 : 29 : switch (TREE_CODE (_p1))
12980 : : {
12981 : 4 : case CALL_EXPR:
12982 : 4 : switch (get_call_combined_fn (_p1))
12983 : : {
12984 : 2 : case CFN_BUILT_IN_TAN:
12985 : 2 : if (call_expr_nargs (_p1) == 1)
12986 : : {
12987 : 2 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
12988 : 2 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
12989 : : {
12990 : 2 : {
12991 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _p0 };
12992 : 2 : tree res = generic_simplify_196 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_TAN, CFN_BUILT_IN_COS, CFN_BUILT_IN_SIN);
12993 : 2 : if (res) return res;
12994 : : }
12995 : : }
12996 : : }
12997 : : break;
12998 : : default:;
12999 : : }
13000 : : break;
13001 : : default:;
13002 : : }
13003 : : }
13004 : : break;
13005 : 2 : case CFN_BUILT_IN_TAN:
13006 : 2 : if (call_expr_nargs (_p0) == 1)
13007 : : {
13008 : 2 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
13009 : 2 : switch (TREE_CODE (_p1))
13010 : : {
13011 : 2 : case CALL_EXPR:
13012 : 2 : switch (get_call_combined_fn (_p1))
13013 : : {
13014 : 2 : case CFN_BUILT_IN_COS:
13015 : 2 : if (call_expr_nargs (_p1) == 1)
13016 : : {
13017 : 2 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
13018 : 2 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
13019 : : {
13020 : 2 : {
13021 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
13022 : 2 : tree res = generic_simplify_196 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_TAN, CFN_BUILT_IN_COS, CFN_BUILT_IN_SIN);
13023 : 2 : if (res) return res;
13024 : : }
13025 : : }
13026 : : }
13027 : : break;
13028 : : default:;
13029 : : }
13030 : : break;
13031 : : default:;
13032 : : }
13033 : : }
13034 : : break;
13035 : 18 : case CFN_BUILT_IN_COSF:
13036 : 18 : if (call_expr_nargs (_p0) == 1)
13037 : : {
13038 : 18 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
13039 : 18 : switch (TREE_CODE (_p1))
13040 : : {
13041 : 9 : case CALL_EXPR:
13042 : 9 : switch (get_call_combined_fn (_p1))
13043 : : {
13044 : 2 : case CFN_BUILT_IN_TANF:
13045 : 2 : if (call_expr_nargs (_p1) == 1)
13046 : : {
13047 : 2 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
13048 : 2 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
13049 : : {
13050 : 2 : {
13051 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _p0 };
13052 : 2 : tree res = generic_simplify_196 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_TANF, CFN_BUILT_IN_COSF, CFN_BUILT_IN_SINF);
13053 : 2 : if (res) return res;
13054 : : }
13055 : : }
13056 : : }
13057 : : break;
13058 : : default:;
13059 : : }
13060 : : break;
13061 : : default:;
13062 : : }
13063 : : }
13064 : : break;
13065 : 2 : case CFN_BUILT_IN_COSL:
13066 : 2 : if (call_expr_nargs (_p0) == 1)
13067 : : {
13068 : 2 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
13069 : 2 : switch (TREE_CODE (_p1))
13070 : : {
13071 : 2 : case CALL_EXPR:
13072 : 2 : switch (get_call_combined_fn (_p1))
13073 : : {
13074 : 2 : case CFN_BUILT_IN_TANL:
13075 : 2 : if (call_expr_nargs (_p1) == 1)
13076 : : {
13077 : 2 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
13078 : 2 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
13079 : : {
13080 : 2 : {
13081 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _p0 };
13082 : 2 : tree res = generic_simplify_196 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_TANL, CFN_BUILT_IN_COSL, CFN_BUILT_IN_SINL);
13083 : 2 : if (res) return res;
13084 : : }
13085 : : }
13086 : : }
13087 : : break;
13088 : : default:;
13089 : : }
13090 : : break;
13091 : : default:;
13092 : : }
13093 : : }
13094 : : break;
13095 : 2 : case CFN_BUILT_IN_TANF:
13096 : 2 : if (call_expr_nargs (_p0) == 1)
13097 : : {
13098 : 2 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
13099 : 2 : switch (TREE_CODE (_p1))
13100 : : {
13101 : 2 : case CALL_EXPR:
13102 : 2 : switch (get_call_combined_fn (_p1))
13103 : : {
13104 : 2 : case CFN_BUILT_IN_COSF:
13105 : 2 : if (call_expr_nargs (_p1) == 1)
13106 : : {
13107 : 2 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
13108 : 2 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
13109 : : {
13110 : 2 : {
13111 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
13112 : 2 : tree res = generic_simplify_196 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_TANF, CFN_BUILT_IN_COSF, CFN_BUILT_IN_SINF);
13113 : 2 : if (res) return res;
13114 : : }
13115 : : }
13116 : : }
13117 : : break;
13118 : : default:;
13119 : : }
13120 : : break;
13121 : : default:;
13122 : : }
13123 : : }
13124 : : break;
13125 : 2 : case CFN_BUILT_IN_TANL:
13126 : 2 : if (call_expr_nargs (_p0) == 1)
13127 : : {
13128 : 2 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
13129 : 2 : switch (TREE_CODE (_p1))
13130 : : {
13131 : 2 : case CALL_EXPR:
13132 : 2 : switch (get_call_combined_fn (_p1))
13133 : : {
13134 : 2 : case CFN_BUILT_IN_COSL:
13135 : 2 : if (call_expr_nargs (_p1) == 1)
13136 : : {
13137 : 2 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
13138 : 2 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
13139 : : {
13140 : 2 : {
13141 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
13142 : 2 : tree res = generic_simplify_196 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_TANL, CFN_BUILT_IN_COSL, CFN_BUILT_IN_SINL);
13143 : 2 : if (res) return res;
13144 : : }
13145 : : }
13146 : : }
13147 : : break;
13148 : : default:;
13149 : : }
13150 : : break;
13151 : : default:;
13152 : : }
13153 : : }
13154 : : break;
13155 : 0 : case CFN_COS:
13156 : 0 : if (call_expr_nargs (_p0) == 1)
13157 : : {
13158 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
13159 : 0 : switch (TREE_CODE (_p1))
13160 : : {
13161 : 0 : case CALL_EXPR:
13162 : 0 : switch (get_call_combined_fn (_p1))
13163 : : {
13164 : 0 : case CFN_TAN:
13165 : 0 : if (call_expr_nargs (_p1) == 1)
13166 : : {
13167 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
13168 : 0 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
13169 : : {
13170 : 0 : {
13171 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _p0 };
13172 : 0 : tree res = generic_simplify_196 (loc, type, _p0, _p1, captures, CFN_TAN, CFN_COS, CFN_SIN);
13173 : 0 : if (res) return res;
13174 : : }
13175 : : }
13176 : : }
13177 : : break;
13178 : : default:;
13179 : : }
13180 : : break;
13181 : : default:;
13182 : : }
13183 : : }
13184 : : break;
13185 : 0 : case CFN_TAN:
13186 : 0 : if (call_expr_nargs (_p0) == 1)
13187 : : {
13188 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
13189 : 0 : switch (TREE_CODE (_p1))
13190 : : {
13191 : 0 : case CALL_EXPR:
13192 : 0 : switch (get_call_combined_fn (_p1))
13193 : : {
13194 : 0 : case CFN_COS:
13195 : 0 : if (call_expr_nargs (_p1) == 1)
13196 : : {
13197 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
13198 : 0 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
13199 : : {
13200 : 0 : {
13201 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
13202 : 0 : tree res = generic_simplify_196 (loc, type, _p0, _p1, captures, CFN_TAN, CFN_COS, CFN_SIN);
13203 : 0 : if (res) return res;
13204 : : }
13205 : : }
13206 : : }
13207 : : break;
13208 : : default:;
13209 : : }
13210 : : break;
13211 : : default:;
13212 : : }
13213 : : }
13214 : : break;
13215 : : default:;
13216 : : }
13217 : : break;
13218 : 64683257 : default:;
13219 : : }
13220 : 64683257 : switch (TREE_CODE (_p1))
13221 : : {
13222 : 932182 : case CALL_EXPR:
13223 : 932182 : switch (get_call_combined_fn (_p1))
13224 : : {
13225 : 59 : case CFN_BUILT_IN_POW:
13226 : 59 : if (call_expr_nargs (_p1) == 2)
13227 : : {
13228 : 59 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
13229 : 59 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
13230 : 59 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
13231 : : {
13232 : 0 : switch (TREE_CODE (_q31))
13233 : : {
13234 : 0 : case REAL_CST:
13235 : 0 : {
13236 : 0 : {
13237 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q31 };
13238 : 0 : tree res = generic_simplify_193 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POW);
13239 : 0 : if (res) return res;
13240 : : }
13241 : 0 : break;
13242 : : }
13243 : : default:;
13244 : : }
13245 : : }
13246 : : }
13247 : : break;
13248 : 23 : case CFN_BUILT_IN_POWF:
13249 : 23 : if (call_expr_nargs (_p1) == 2)
13250 : : {
13251 : 23 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
13252 : 23 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
13253 : 23 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
13254 : : {
13255 : 0 : switch (TREE_CODE (_q31))
13256 : : {
13257 : 0 : case REAL_CST:
13258 : 0 : {
13259 : 0 : {
13260 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q31 };
13261 : 0 : tree res = generic_simplify_193 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POWF);
13262 : 0 : if (res) return res;
13263 : : }
13264 : 0 : break;
13265 : : }
13266 : : default:;
13267 : : }
13268 : : }
13269 : : }
13270 : : break;
13271 : 12 : case CFN_BUILT_IN_POWL:
13272 : 12 : if (call_expr_nargs (_p1) == 2)
13273 : : {
13274 : 12 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
13275 : 12 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
13276 : 12 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
13277 : : {
13278 : 0 : switch (TREE_CODE (_q31))
13279 : : {
13280 : 0 : case REAL_CST:
13281 : 0 : {
13282 : 0 : {
13283 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q31 };
13284 : 0 : tree res = generic_simplify_193 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POWL);
13285 : 0 : if (res) return res;
13286 : : }
13287 : 0 : break;
13288 : : }
13289 : : default:;
13290 : : }
13291 : : }
13292 : : }
13293 : : break;
13294 : 0 : case CFN_POW:
13295 : 0 : if (call_expr_nargs (_p1) == 2)
13296 : : {
13297 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
13298 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
13299 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
13300 : : {
13301 : 0 : switch (TREE_CODE (_q31))
13302 : : {
13303 : 0 : case REAL_CST:
13304 : 0 : {
13305 : 0 : {
13306 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q31 };
13307 : 0 : tree res = generic_simplify_193 (loc, type, _p0, _p1, captures, CFN_POW);
13308 : 0 : if (res) return res;
13309 : : }
13310 : 0 : break;
13311 : : }
13312 : : default:;
13313 : : }
13314 : : }
13315 : : }
13316 : : break;
13317 : : default:;
13318 : : }
13319 : : break;
13320 : 64683257 : default:;
13321 : : }
13322 : 64683257 : switch (TREE_CODE (_p0))
13323 : : {
13324 : 1 : case VEC_PERM_EXPR:
13325 : 1 : {
13326 : 1 : tree _q20 = TREE_OPERAND (_p0, 0);
13327 : 1 : tree _q21 = TREE_OPERAND (_p0, 1);
13328 : 1 : tree _q22 = TREE_OPERAND (_p0, 2);
13329 : 1 : if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
13330 : : {
13331 : 1 : switch (TREE_CODE (_p1))
13332 : : {
13333 : 0 : case VEC_PERM_EXPR:
13334 : 0 : {
13335 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
13336 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
13337 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
13338 : 0 : if ((_q61 == _q60 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q60, 0) && types_match (_q61, _q60)))
13339 : : {
13340 : 0 : if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
13341 : : {
13342 : 0 : {
13343 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q22, _q60 };
13344 : 0 : if (VECTOR_INTEGER_TYPE_P (type)
13345 : : )
13346 : : {
13347 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1591;
13348 : 0 : {
13349 : 0 : tree res_op0;
13350 : 0 : {
13351 : 0 : tree _o1[2], _r1;
13352 : 0 : _o1[0] = captures[0];
13353 : 0 : _o1[1] = captures[2];
13354 : 0 : _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
13355 : 0 : captures[3] = _r1;
13356 : : }
13357 : 0 : res_op0 = unshare_expr (captures[3]);
13358 : 0 : tree res_op1;
13359 : 0 : res_op1 = captures[3];
13360 : 0 : tree res_op2;
13361 : 0 : res_op2 = captures[1];
13362 : 0 : tree _r;
13363 : 0 : _r = fold_build3_loc (loc, VEC_PERM_EXPR, type, res_op0, res_op1, res_op2);
13364 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 905, __FILE__, __LINE__, true);
13365 : 0 : return _r;
13366 : : }
13367 : 0 : next_after_fail1591:;
13368 : : }
13369 : : }
13370 : : }
13371 : : }
13372 : : break;
13373 : : }
13374 : 1 : default:;
13375 : : }
13376 : 1 : switch (TREE_CODE (_q22))
13377 : : {
13378 : 0 : case VECTOR_CST:
13379 : 0 : {
13380 : 0 : switch (TREE_CODE (_p1))
13381 : : {
13382 : 0 : case VEC_PERM_EXPR:
13383 : 0 : {
13384 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
13385 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
13386 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
13387 : 0 : if ((_q61 == _q60 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q60, 0) && types_match (_q61, _q60)))
13388 : : {
13389 : 0 : if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
13390 : : {
13391 : 0 : switch (TREE_CODE (_q62))
13392 : : {
13393 : 0 : case VECTOR_CST:
13394 : 0 : {
13395 : 0 : {
13396 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q22, _q60 };
13397 : 0 : tree res = generic_simplify_38 (loc, type, _p0, _p1, captures, MULT_EXPR);
13398 : 0 : if (res) return res;
13399 : : }
13400 : 0 : break;
13401 : : }
13402 : : default:;
13403 : : }
13404 : : }
13405 : : }
13406 : : break;
13407 : : }
13408 : : default:;
13409 : : }
13410 : : break;
13411 : : }
13412 : : default:;
13413 : : }
13414 : : }
13415 : : break;
13416 : : }
13417 : 2502290 : case CALL_EXPR:
13418 : 2502290 : switch (get_call_combined_fn (_p0))
13419 : : {
13420 : 115 : case CFN_BUILT_IN_POW:
13421 : 115 : if (call_expr_nargs (_p0) == 2)
13422 : : {
13423 : 115 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
13424 : 115 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
13425 : 115 : switch (TREE_CODE (_p1))
13426 : : {
13427 : 80 : case CALL_EXPR:
13428 : 80 : switch (get_call_combined_fn (_p1))
13429 : : {
13430 : 20 : case CFN_BUILT_IN_POW:
13431 : 20 : if (call_expr_nargs (_p1) == 2)
13432 : : {
13433 : 20 : tree _q50 = CALL_EXPR_ARG (_p1, 0);
13434 : 20 : tree _q51 = CALL_EXPR_ARG (_p1, 1);
13435 : 20 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
13436 : : {
13437 : 14 : {
13438 : 14 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
13439 : 14 : tree res = generic_simplify_197 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POW);
13440 : 14 : if (res) return res;
13441 : : }
13442 : : }
13443 : 6 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
13444 : : {
13445 : 2 : {
13446 : 2 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
13447 : 2 : tree res = generic_simplify_198 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POW);
13448 : 2 : if (res) return res;
13449 : : }
13450 : : }
13451 : : }
13452 : : break;
13453 : : default:;
13454 : : }
13455 : : break;
13456 : : default:;
13457 : : }
13458 : : }
13459 : : break;
13460 : 19 : case CFN_BUILT_IN_POWF:
13461 : 19 : if (call_expr_nargs (_p0) == 2)
13462 : : {
13463 : 19 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
13464 : 19 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
13465 : 19 : switch (TREE_CODE (_p1))
13466 : : {
13467 : 13 : case CALL_EXPR:
13468 : 13 : switch (get_call_combined_fn (_p1))
13469 : : {
13470 : 13 : case CFN_BUILT_IN_POWF:
13471 : 13 : if (call_expr_nargs (_p1) == 2)
13472 : : {
13473 : 13 : tree _q50 = CALL_EXPR_ARG (_p1, 0);
13474 : 13 : tree _q51 = CALL_EXPR_ARG (_p1, 1);
13475 : 13 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
13476 : : {
13477 : 12 : {
13478 : 12 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
13479 : 12 : tree res = generic_simplify_197 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POWF);
13480 : 12 : if (res) return res;
13481 : : }
13482 : : }
13483 : 1 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
13484 : : {
13485 : 0 : {
13486 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
13487 : 0 : tree res = generic_simplify_198 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POWF);
13488 : 0 : if (res) return res;
13489 : : }
13490 : : }
13491 : : }
13492 : : break;
13493 : : default:;
13494 : : }
13495 : : break;
13496 : : default:;
13497 : : }
13498 : : }
13499 : : break;
13500 : 35 : case CFN_BUILT_IN_POWI:
13501 : 35 : if (call_expr_nargs (_p0) == 2)
13502 : : {
13503 : 35 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
13504 : 35 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
13505 : 35 : switch (TREE_CODE (_p1))
13506 : : {
13507 : 0 : case CALL_EXPR:
13508 : 0 : switch (get_call_combined_fn (_p1))
13509 : : {
13510 : 0 : case CFN_BUILT_IN_POWI:
13511 : 0 : if (call_expr_nargs (_p1) == 2)
13512 : : {
13513 : 0 : tree _q50 = CALL_EXPR_ARG (_p1, 0);
13514 : 0 : tree _q51 = CALL_EXPR_ARG (_p1, 1);
13515 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
13516 : : {
13517 : 0 : {
13518 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
13519 : 0 : if (flag_unsafe_math_optimizations && canonicalize_math_p ()
13520 : : )
13521 : : {
13522 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1592;
13523 : 0 : {
13524 : 0 : tree res_op0;
13525 : 0 : {
13526 : 0 : tree _o1[2], _r1;
13527 : 0 : _o1[0] = captures[1];
13528 : 0 : _o1[1] = captures[4];
13529 : 0 : _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
13530 : 0 : res_op0 = _r1;
13531 : : }
13532 : 0 : tree res_op1;
13533 : 0 : res_op1 = captures[2];
13534 : 0 : tree _r;
13535 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_POWI, type, 2, res_op0, res_op1);
13536 : 0 : if (!_r)
13537 : 0 : goto next_after_fail1592;
13538 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 988, __FILE__, __LINE__, true);
13539 : 0 : return _r;
13540 : : }
13541 : 0 : next_after_fail1592:;
13542 : : }
13543 : : }
13544 : : }
13545 : : }
13546 : : break;
13547 : : default:;
13548 : : }
13549 : : break;
13550 : : default:;
13551 : : }
13552 : : }
13553 : : break;
13554 : 12 : case CFN_BUILT_IN_POWL:
13555 : 12 : if (call_expr_nargs (_p0) == 2)
13556 : : {
13557 : 12 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
13558 : 12 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
13559 : 12 : switch (TREE_CODE (_p1))
13560 : : {
13561 : 12 : case CALL_EXPR:
13562 : 12 : switch (get_call_combined_fn (_p1))
13563 : : {
13564 : 12 : case CFN_BUILT_IN_POWL:
13565 : 12 : if (call_expr_nargs (_p1) == 2)
13566 : : {
13567 : 12 : tree _q50 = CALL_EXPR_ARG (_p1, 0);
13568 : 12 : tree _q51 = CALL_EXPR_ARG (_p1, 1);
13569 : 12 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
13570 : : {
13571 : 12 : {
13572 : 12 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
13573 : 12 : tree res = generic_simplify_197 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POWL);
13574 : 12 : if (res) return res;
13575 : : }
13576 : : }
13577 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
13578 : : {
13579 : 0 : {
13580 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
13581 : 0 : tree res = generic_simplify_198 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POWL);
13582 : 0 : if (res) return res;
13583 : : }
13584 : : }
13585 : : }
13586 : : break;
13587 : : default:;
13588 : : }
13589 : : break;
13590 : : default:;
13591 : : }
13592 : : }
13593 : : break;
13594 : 0 : case CFN_POW:
13595 : 0 : if (call_expr_nargs (_p0) == 2)
13596 : : {
13597 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
13598 : 0 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
13599 : 0 : switch (TREE_CODE (_p1))
13600 : : {
13601 : 0 : case CALL_EXPR:
13602 : 0 : switch (get_call_combined_fn (_p1))
13603 : : {
13604 : 0 : case CFN_POW:
13605 : 0 : if (call_expr_nargs (_p1) == 2)
13606 : : {
13607 : 0 : tree _q50 = CALL_EXPR_ARG (_p1, 0);
13608 : 0 : tree _q51 = CALL_EXPR_ARG (_p1, 1);
13609 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
13610 : : {
13611 : 0 : {
13612 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
13613 : 0 : tree res = generic_simplify_197 (loc, type, _p0, _p1, captures, CFN_POW);
13614 : 0 : if (res) return res;
13615 : : }
13616 : : }
13617 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
13618 : : {
13619 : 0 : {
13620 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
13621 : 0 : tree res = generic_simplify_198 (loc, type, _p0, _p1, captures, CFN_POW);
13622 : 0 : if (res) return res;
13623 : : }
13624 : : }
13625 : : }
13626 : : break;
13627 : : default:;
13628 : : }
13629 : : break;
13630 : : default:;
13631 : : }
13632 : : }
13633 : : break;
13634 : 14 : case CFN_BUILT_IN_POWIF:
13635 : 14 : if (call_expr_nargs (_p0) == 2)
13636 : : {
13637 : 14 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
13638 : 14 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
13639 : 14 : switch (TREE_CODE (_p1))
13640 : : {
13641 : 0 : case CALL_EXPR:
13642 : 0 : switch (get_call_combined_fn (_p1))
13643 : : {
13644 : 0 : case CFN_BUILT_IN_POWIF:
13645 : 0 : if (call_expr_nargs (_p1) == 2)
13646 : : {
13647 : 0 : tree _q50 = CALL_EXPR_ARG (_p1, 0);
13648 : 0 : tree _q51 = CALL_EXPR_ARG (_p1, 1);
13649 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
13650 : : {
13651 : 0 : {
13652 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
13653 : 0 : if (flag_unsafe_math_optimizations && canonicalize_math_p ()
13654 : : )
13655 : : {
13656 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1593;
13657 : 0 : {
13658 : 0 : tree res_op0;
13659 : 0 : {
13660 : 0 : tree _o1[2], _r1;
13661 : 0 : _o1[0] = captures[1];
13662 : 0 : _o1[1] = captures[4];
13663 : 0 : _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
13664 : 0 : res_op0 = _r1;
13665 : : }
13666 : 0 : tree res_op1;
13667 : 0 : res_op1 = captures[2];
13668 : 0 : tree _r;
13669 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_POWIF, type, 2, res_op0, res_op1);
13670 : 0 : if (!_r)
13671 : 0 : goto next_after_fail1593;
13672 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 988, __FILE__, __LINE__, true);
13673 : 0 : return _r;
13674 : : }
13675 : 0 : next_after_fail1593:;
13676 : : }
13677 : : }
13678 : : }
13679 : : }
13680 : : break;
13681 : : default:;
13682 : : }
13683 : : break;
13684 : : default:;
13685 : : }
13686 : : }
13687 : : break;
13688 : 5 : case CFN_BUILT_IN_POWIL:
13689 : 5 : if (call_expr_nargs (_p0) == 2)
13690 : : {
13691 : 5 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
13692 : 5 : tree _q21 = CALL_EXPR_ARG (_p0, 1);
13693 : 5 : switch (TREE_CODE (_p1))
13694 : : {
13695 : 0 : case CALL_EXPR:
13696 : 0 : switch (get_call_combined_fn (_p1))
13697 : : {
13698 : 0 : case CFN_BUILT_IN_POWIL:
13699 : 0 : if (call_expr_nargs (_p1) == 2)
13700 : : {
13701 : 0 : tree _q50 = CALL_EXPR_ARG (_p1, 0);
13702 : 0 : tree _q51 = CALL_EXPR_ARG (_p1, 1);
13703 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
13704 : : {
13705 : 0 : {
13706 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
13707 : 0 : if (flag_unsafe_math_optimizations && canonicalize_math_p ()
13708 : : )
13709 : : {
13710 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1594;
13711 : 0 : {
13712 : 0 : tree res_op0;
13713 : 0 : {
13714 : 0 : tree _o1[2], _r1;
13715 : 0 : _o1[0] = captures[1];
13716 : 0 : _o1[1] = captures[4];
13717 : 0 : _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
13718 : 0 : res_op0 = _r1;
13719 : : }
13720 : 0 : tree res_op1;
13721 : 0 : res_op1 = captures[2];
13722 : 0 : tree _r;
13723 : 0 : _r = maybe_build_call_expr_loc (loc, CFN_BUILT_IN_POWIL, type, 2, res_op0, res_op1);
13724 : 0 : if (!_r)
13725 : 0 : goto next_after_fail1594;
13726 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 988, __FILE__, __LINE__, true);
13727 : 0 : return _r;
13728 : : }
13729 : 0 : next_after_fail1594:;
13730 : : }
13731 : : }
13732 : : }
13733 : : }
13734 : : break;
13735 : : default:;
13736 : : }
13737 : : break;
13738 : : default:;
13739 : : }
13740 : : }
13741 : : break;
13742 : : default:;
13743 : : }
13744 : : break;
13745 : : default:;
13746 : : }
13747 : : return NULL_TREE;
13748 : : }
13749 : : #pragma GCC diagnostic pop
|