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 : 92807110 : tree_bit_xor_cst (tree t, tree *res_ops)
11 : : {
12 : 92807110 : const tree type = TREE_TYPE (t);
13 : 92807110 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
14 : 92807110 : if (TREE_SIDE_EFFECTS (t)) return false;
15 : 92807110 : switch (TREE_CODE (t))
16 : : {
17 : 34676 : case BIT_XOR_EXPR:
18 : 34676 : {
19 : 34676 : tree _p0 = TREE_OPERAND (t, 0);
20 : 34676 : tree _p1 = TREE_OPERAND (t, 1);
21 : 34676 : if (uniform_integer_cst_p (_p1))
22 : : {
23 : 1572 : {
24 : 1572 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
25 : 1572 : {
26 : 1572 : res_ops[0] = captures[0];
27 : 1572 : res_ops[1] = captures[1];
28 : 1572 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 4, __FILE__, __LINE__, false);
29 : 1572 : return true;
30 : : }
31 : : }
32 : : }
33 : : break;
34 : : }
35 : : default:;
36 : : }
37 : : return false;
38 : : }
39 : :
40 : : bool
41 : 71652184 : tree_with_possible_nonzero_bits_1 (tree t)
42 : : {
43 : 71652184 : const tree type = TREE_TYPE (t);
44 : 71652184 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
45 : 71652184 : if (TREE_SIDE_EFFECTS (t)) return false;
46 : 71652184 : switch (TREE_CODE (t))
47 : : {
48 : 16848250 : case INTEGER_CST:
49 : 16848250 : {
50 : 16848250 : {
51 : 16848250 : tree captures[1] ATTRIBUTE_UNUSED = { t };
52 : 16848250 : {
53 : 16848250 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 32, __FILE__, __LINE__, false);
54 : 16848250 : return true;
55 : : }
56 : : }
57 : 0 : break;
58 : : }
59 : 0 : case POLY_INT_CST:
60 : 0 : {
61 : 0 : {
62 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { t };
63 : 0 : {
64 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 33, __FILE__, __LINE__, false);
65 : 0 : return true;
66 : : }
67 : : }
68 : 26310898 : break;
69 : : }
70 : 26310898 : case SSA_NAME:
71 : 26310898 : {
72 : 26310898 : {
73 : 26310898 : tree captures[1] ATTRIBUTE_UNUSED = { t };
74 : 26310898 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])) || POINTER_TYPE_P (TREE_TYPE (captures[0]))
75 : : )
76 : : {
77 : 25806784 : {
78 : 25806784 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 34, __FILE__, __LINE__, false);
79 : 25806784 : return true;
80 : : }
81 : : }
82 : : }
83 : : break;
84 : : }
85 : : default:;
86 : : }
87 : : return false;
88 : : }
89 : :
90 : : bool
91 : 1438 : tree_max_value (tree t)
92 : : {
93 : 1438 : const tree type = TREE_TYPE (t);
94 : 1438 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
95 : 1438 : if (TREE_SIDE_EFFECTS (t)) return false;
96 : 1430 : if (uniform_integer_cst_p (t))
97 : : {
98 : 1189 : {
99 : 1189 : {
100 : 1189 : tree int_cst = uniform_integer_cst_p (t);
101 : 1189 : tree itype = TREE_TYPE (int_cst);
102 : 2378 : if ((INTEGRAL_TYPE_P (itype)
103 : 19 : || POINTER_TYPE_P (itype))
104 : 2395 : && wi::eq_p (wi::to_wide (int_cst), wi::max_value (itype))
105 : : )
106 : : {
107 : 0 : {
108 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 42, __FILE__, __LINE__, false);
109 : 0 : return true;
110 : : }
111 : : }
112 : : }
113 : : }
114 : : }
115 : : return false;
116 : : }
117 : :
118 : : bool
119 : 0 : tree_compositional_complex (tree t)
120 : : {
121 : 0 : const tree type = TREE_TYPE (t);
122 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
123 : 0 : if (TREE_SIDE_EFFECTS (t)) return false;
124 : 0 : switch (TREE_CODE (t))
125 : : {
126 : 0 : CASE_CONVERT:
127 : 0 : {
128 : 0 : tree _p0 = TREE_OPERAND (t, 0);
129 : 0 : switch (TREE_CODE (_p0))
130 : : {
131 : 0 : case COMPLEX_EXPR:
132 : 0 : {
133 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
134 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
135 : 0 : {
136 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
137 : 0 : {
138 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 86, __FILE__, __LINE__, false);
139 : 0 : return true;
140 : : }
141 : : }
142 : : break;
143 : : }
144 : : default:;
145 : : }
146 : : break;
147 : : }
148 : 0 : case COMPLEX_EXPR:
149 : 0 : {
150 : 0 : tree _p0 = TREE_OPERAND (t, 0);
151 : 0 : tree _p1 = TREE_OPERAND (t, 1);
152 : 0 : {
153 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
154 : 0 : {
155 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 86, __FILE__, __LINE__, false);
156 : 0 : return true;
157 : : }
158 : : }
159 : : break;
160 : : }
161 : : default:;
162 : : }
163 : : return false;
164 : : }
165 : :
166 : : bool
167 : 0 : tree_double_value_p (tree t)
168 : : {
169 : 0 : const tree type = TREE_TYPE (t);
170 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
171 : 0 : if (TREE_SIDE_EFFECTS (t)) return false;
172 : 0 : {
173 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { t };
174 : 0 : if (TYPE_MAIN_VARIANT (TREE_TYPE (captures[0])) == double_type_node
175 : : )
176 : : {
177 : 0 : {
178 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 87, __FILE__, __LINE__, false);
179 : 0 : return true;
180 : : }
181 : : }
182 : : }
183 : : return false;
184 : : }
185 : :
186 : : bool
187 : 0 : tree_float_value_p (tree t)
188 : : {
189 : 0 : const tree type = TREE_TYPE (t);
190 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
191 : 0 : if (TREE_SIDE_EFFECTS (t)) return false;
192 : 0 : {
193 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { t };
194 : 0 : if (TYPE_MAIN_VARIANT (TREE_TYPE (captures[0])) == float_type_node
195 : : )
196 : : {
197 : 0 : {
198 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 88, __FILE__, __LINE__, false);
199 : 0 : return true;
200 : : }
201 : : }
202 : : }
203 : : return false;
204 : : }
205 : :
206 : : bool
207 : 690201 : tree_vec_same_elem_p (tree t)
208 : : {
209 : 690201 : const tree type = TREE_TYPE (t);
210 : 690201 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
211 : 690201 : if (TREE_SIDE_EFFECTS (t)) return false;
212 : 690201 : switch (TREE_CODE (t))
213 : : {
214 : 0 : case VEC_DUPLICATE_EXPR:
215 : 0 : {
216 : 0 : tree _p0 = TREE_OPERAND (t, 0);
217 : 0 : {
218 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
219 : 0 : {
220 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 89, __FILE__, __LINE__, false);
221 : 0 : return true;
222 : : }
223 : : }
224 : : break;
225 : : }
226 : : case CONSTRUCTOR:
227 : : {
228 : : {
229 : : tree captures[1] ATTRIBUTE_UNUSED = { t };
230 : : if (TREE_CODE (captures[0]) == SSA_NAME
231 : : && uniform_vector_p (gimple_assign_rhs1 (SSA_NAME_DEF_STMT (captures[0])))
232 : : )
233 : : {
234 : : {
235 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 90, __FILE__, __LINE__, false);
236 : : return true;
237 : : }
238 : : }
239 : : }
240 : : break;
241 : : }
242 : 690201 : default:;
243 : : }
244 : 690201 : {
245 : 690201 : tree captures[1] ATTRIBUTE_UNUSED = { t };
246 : 690201 : if (uniform_vector_p (captures[0])
247 : : )
248 : : {
249 : 13823 : {
250 : 13823 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 91, __FILE__, __LINE__, false);
251 : 13823 : return true;
252 : : }
253 : : }
254 : : }
255 : : return false;
256 : : }
257 : :
258 : : bool
259 : 0 : tree_ctz_table_index (tree t, tree *res_ops)
260 : : {
261 : 0 : const tree type = TREE_TYPE (t);
262 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
263 : 0 : if (TREE_SIDE_EFFECTS (t)) return false;
264 : 0 : switch (TREE_CODE (t))
265 : : {
266 : 0 : case RSHIFT_EXPR:
267 : 0 : {
268 : 0 : tree _p0 = TREE_OPERAND (t, 0);
269 : 0 : tree _p1 = TREE_OPERAND (t, 1);
270 : 0 : switch (TREE_CODE (_p0))
271 : : {
272 : 0 : case MULT_EXPR:
273 : 0 : {
274 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
275 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
276 : 0 : switch (TREE_CODE (_q20))
277 : : {
278 : 0 : case BIT_AND_EXPR:
279 : 0 : {
280 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
281 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
282 : 0 : switch (TREE_CODE (_q30))
283 : : {
284 : 0 : case NEGATE_EXPR:
285 : 0 : {
286 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
287 : 0 : if ((_q31 == _q40 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _q40, 0) && types_match (_q31, _q40)))
288 : : {
289 : 0 : switch (TREE_CODE (_q21))
290 : : {
291 : 0 : case INTEGER_CST:
292 : 0 : {
293 : 0 : switch (TREE_CODE (_p1))
294 : : {
295 : 0 : case INTEGER_CST:
296 : 0 : {
297 : 0 : {
298 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q21, _p1 };
299 : 0 : {
300 : 0 : res_ops[0] = captures[0];
301 : 0 : res_ops[1] = captures[1];
302 : 0 : res_ops[2] = captures[2];
303 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 92, __FILE__, __LINE__, false);
304 : 0 : return true;
305 : : }
306 : : }
307 : : break;
308 : : }
309 : : default:;
310 : : }
311 : : break;
312 : : }
313 : : default:;
314 : : }
315 : : }
316 : : break;
317 : : }
318 : 0 : default:;
319 : : }
320 : 0 : switch (TREE_CODE (_q31))
321 : : {
322 : 0 : case NEGATE_EXPR:
323 : 0 : {
324 : 0 : tree _q50 = TREE_OPERAND (_q31, 0);
325 : 0 : if ((_q50 == _q30 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q30, 0) && types_match (_q50, _q30)))
326 : : {
327 : 0 : switch (TREE_CODE (_q21))
328 : : {
329 : 0 : case INTEGER_CST:
330 : 0 : {
331 : 0 : switch (TREE_CODE (_p1))
332 : : {
333 : 0 : case INTEGER_CST:
334 : 0 : {
335 : 0 : {
336 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q21, _p1 };
337 : 0 : {
338 : 0 : res_ops[0] = captures[0];
339 : 0 : res_ops[1] = captures[1];
340 : 0 : res_ops[2] = captures[2];
341 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 92, __FILE__, __LINE__, false);
342 : 0 : return true;
343 : : }
344 : : }
345 : : break;
346 : : }
347 : : default:;
348 : : }
349 : : break;
350 : : }
351 : : default:;
352 : : }
353 : : }
354 : : break;
355 : : }
356 : : default:;
357 : : }
358 : : break;
359 : : }
360 : : default:;
361 : : }
362 : : break;
363 : : }
364 : : default:;
365 : : }
366 : : break;
367 : : }
368 : : default:;
369 : : }
370 : : return false;
371 : : }
372 : :
373 : : tree
374 : 1 : generic_simplify_1 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
375 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
376 : : const combined_fn ARG_UNUSED (COPYSIGN_ALL))
377 : : {
378 : 1 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
379 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail218;
380 : 1 : {
381 : 1 : tree res_op0;
382 : 1 : res_op0 = captures[0];
383 : 1 : tree _r;
384 : 1 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
385 : 1 : if (TREE_SIDE_EFFECTS (captures[1]))
386 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
387 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 102, __FILE__, __LINE__, true);
388 : : return _r;
389 : : }
390 : 0 : next_after_fail218:;
391 : 0 : return NULL_TREE;
392 : : }
393 : :
394 : : tree
395 : 5257 : generic_simplify_2 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
396 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
397 : : {
398 : 5257 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
399 : 5257 : if (fold_real_zero_addition_p (type, captures[0], captures[1], 0)
400 : : )
401 : : {
402 : 94 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail219;
403 : 94 : {
404 : 94 : tree res_op0;
405 : 94 : res_op0 = captures[0];
406 : 94 : tree _r;
407 : 94 : _r = non_lvalue_loc (loc, res_op0);
408 : 94 : if (TREE_SIDE_EFFECTS (captures[1]))
409 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
410 : 94 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 103, __FILE__, __LINE__, true);
411 : 94 : return _r;
412 : : }
413 : 0 : next_after_fail219:;
414 : : }
415 : : return NULL_TREE;
416 : : }
417 : :
418 : : tree
419 : 316 : generic_simplify_3 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
420 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
421 : : const enum tree_code ARG_UNUSED (outer_op),
422 : : const enum tree_code ARG_UNUSED (inner_op))
423 : : {
424 : 316 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
425 : 316 : if (real_zerop (captures[2])
426 : 34 : && real_zerop (captures[3])
427 : 350 : && !HONOR_SIGN_DEPENDENT_ROUNDING (type)
428 : : )
429 : : {
430 : 10 : {
431 : 10 : bool inner_plus = ((inner_op == PLUS_EXPR)
432 : 10 : ^ REAL_VALUE_MINUS_ZERO (TREE_REAL_CST (captures[2])));
433 : 10 : bool outer_plus
434 : 10 : = ((outer_op == PLUS_EXPR)
435 : 10 : ^ REAL_VALUE_MINUS_ZERO (TREE_REAL_CST (captures[3])));
436 : 10 : if (outer_plus && !inner_plus
437 : : )
438 : : {
439 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail220;
440 : 2 : {
441 : 2 : tree res_op0;
442 : 2 : res_op0 = captures[1];
443 : 2 : tree res_op1;
444 : 2 : res_op1 = captures[3];
445 : 2 : tree _r;
446 : 2 : _r = fold_build2_loc (loc, outer_op, type, res_op0, res_op1);
447 : 2 : if (TREE_SIDE_EFFECTS (captures[2]))
448 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
449 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 104, __FILE__, __LINE__, true);
450 : 2 : return _r;
451 : : }
452 : 0 : next_after_fail220:;
453 : : }
454 : : else
455 : : {
456 : 8 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail221;
457 : 8 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail221;
458 : 8 : {
459 : 8 : tree _r;
460 : 8 : _r = captures[0];
461 : 8 : if (TREE_SIDE_EFFECTS (captures[3]))
462 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
463 : 8 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 105, __FILE__, __LINE__, true);
464 : 8 : return _r;
465 : : }
466 : : next_after_fail221:;
467 : : }
468 : : }
469 : : }
470 : : return NULL_TREE;
471 : : }
472 : :
473 : : tree
474 : 66 : generic_simplify_4 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
475 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
476 : : {
477 : 66 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
478 : 66 : if (ANY_INTEGRAL_TYPE_P (type) && TYPE_OVERFLOW_UNDEFINED (type)
479 : : )
480 : : {
481 : 66 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail222;
482 : 66 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail222;
483 : 66 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail222;
484 : 66 : {
485 : 66 : tree res_op0;
486 : 66 : res_op0 = captures[0];
487 : 66 : tree _r;
488 : 66 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
489 : 66 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 106, __FILE__, __LINE__, true);
490 : 66 : return _r;
491 : : }
492 : : next_after_fail222:;
493 : : }
494 : : return NULL_TREE;
495 : : }
496 : :
497 : : tree
498 : 7 : generic_simplify_5 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
499 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
500 : : const enum tree_code ARG_UNUSED (op))
501 : : {
502 : 7 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
503 : 7 : if (INTEGRAL_TYPE_P (type)
504 : 7 : && TYPE_OVERFLOW_WRAPS (type)
505 : 14 : && !TYPE_SATURATING (type)
506 : : )
507 : : {
508 : 7 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail223;
509 : 7 : {
510 : 7 : tree res_op0;
511 : 7 : {
512 : 7 : tree _o1[2], _r1;
513 : 7 : _o1[0] = captures[1];
514 : 7 : _o1[1] = captures[4];
515 : 7 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
516 : 7 : res_op0 = _r1;
517 : : }
518 : 7 : tree res_op1;
519 : 7 : res_op1 = captures[2];
520 : 7 : tree _r;
521 : 7 : _r = fold_build2_loc (loc, LSHIFT_EXPR, type, res_op0, res_op1);
522 : 7 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 107, __FILE__, __LINE__, true);
523 : 7 : return _r;
524 : : }
525 : 0 : next_after_fail223:;
526 : : }
527 : : return NULL_TREE;
528 : : }
529 : :
530 : : tree
531 : 45 : generic_simplify_7 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
532 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
533 : : {
534 : 45 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
535 : 45 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail225;
536 : 45 : {
537 : 45 : if (! tree_invariant_p (captures[2])) goto next_after_fail225;
538 : 45 : tree res_op0;
539 : 45 : {
540 : 45 : tree _o1[2], _r1;
541 : 45 : _o1[0] = captures[0];
542 : 45 : _o1[1] = unshare_expr (captures[2]);
543 : 45 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
544 : 45 : res_op0 = _r1;
545 : : }
546 : 45 : tree res_op1;
547 : 45 : {
548 : 45 : tree _o1[1], _r1;
549 : 45 : _o1[0] = captures[2];
550 : 45 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
551 : 45 : res_op1 = _r1;
552 : : }
553 : 45 : tree _r;
554 : 45 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
555 : 45 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 109, __FILE__, __LINE__, true);
556 : : return _r;
557 : : }
558 : : next_after_fail225:;
559 : : return NULL_TREE;
560 : : }
561 : :
562 : : tree
563 : 0 : generic_simplify_8 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
564 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
565 : : const enum tree_code ARG_UNUSED (op))
566 : : {
567 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
568 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail226;
569 : 0 : {
570 : 0 : tree res_op0;
571 : 0 : res_op0 = captures[0];
572 : 0 : tree res_op1;
573 : 0 : res_op1 = captures[1];
574 : 0 : tree _r;
575 : 0 : _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
576 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 110, __FILE__, __LINE__, true);
577 : : return _r;
578 : : }
579 : 0 : next_after_fail226:;
580 : 0 : return NULL_TREE;
581 : : }
582 : :
583 : : tree
584 : 2 : generic_simplify_11 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
585 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
586 : : {
587 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
588 : 2 : if (!TYPE_OVERFLOW_SANITIZED (type) && !TYPE_OVERFLOW_TRAPS (type)
589 : 2 : && !TYPE_SATURATING (type) && !TYPE_OVERFLOW_SANITIZED (TREE_TYPE (captures[0]))
590 : 2 : && !TYPE_OVERFLOW_TRAPS (TREE_TYPE (captures[0]))
591 : 4 : && !TYPE_SATURATING (TREE_TYPE (captures[0]))
592 : : )
593 : : {
594 : 2 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail229;
595 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail229;
596 : 2 : {
597 : 2 : tree res_op0;
598 : 2 : {
599 : 2 : tree _o1[1], _r1;
600 : 2 : {
601 : 2 : tree _o2[2], _r2;
602 : 2 : _o2[0] = captures[1];
603 : 2 : _o2[1] = captures[2];
604 : 2 : _r2 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
605 : 2 : _o1[0] = _r2;
606 : : }
607 : 2 : if (TREE_TYPE (_o1[0]) != type)
608 : : {
609 : 1 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
610 : : }
611 : : else
612 : : _r1 = _o1[0];
613 : 2 : res_op0 = _r1;
614 : : }
615 : 2 : tree _r;
616 : 2 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
617 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 113, __FILE__, __LINE__, true);
618 : 2 : return _r;
619 : : }
620 : : next_after_fail229:;
621 : : }
622 : : return NULL_TREE;
623 : : }
624 : :
625 : : tree
626 : 0 : generic_simplify_14 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
627 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
628 : : const enum tree_code ARG_UNUSED (op),
629 : : const enum tree_code ARG_UNUSED (cmp),
630 : : const enum tree_code ARG_UNUSED (icmp))
631 : : {
632 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
633 : 0 : if (INTEGRAL_TYPE_P (type)
634 : 0 : && invert_tree_comparison (cmp, HONOR_NANS (captures[1])) == icmp
635 : 0 : && canonicalize_math_after_vectorization_p ()
636 : : )
637 : : {
638 : : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail232;
639 : : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail232;
640 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail232;
641 : : {
642 : : tree res_op0;
643 : : res_op0 = captures[0];
644 : : tree res_op1;
645 : : res_op1 = captures[3];
646 : : tree res_op2;
647 : : res_op2 = captures[5];
648 : : tree _r;
649 : : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
650 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 116, __FILE__, __LINE__, true);
651 : : return _r;
652 : : }
653 : 0 : next_after_fail232:;
654 : : }
655 : 0 : return NULL_TREE;
656 : : }
657 : :
658 : : tree
659 : 234626 : generic_simplify_17 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
660 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
661 : : const enum tree_code ARG_UNUSED (outer_op))
662 : : {
663 : 234626 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
664 : 234626 : if (!TYPE_SATURATING (type)
665 : : )
666 : : {
667 : 234626 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
668 : 469245 : && !FIXED_POINT_TYPE_P (type)
669 : : )
670 : : {
671 : 234619 : if (!ANY_INTEGRAL_TYPE_P (type) || TYPE_OVERFLOW_WRAPS (type)
672 : : )
673 : : {
674 : 221333 : if (!CONSTANT_CLASS_P (captures[1])
675 : : )
676 : : {
677 : 221333 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail241;
678 : 221333 : {
679 : 221333 : tree res_op0;
680 : 221333 : {
681 : 221333 : tree _o1[2], _r1;
682 : 221333 : {
683 : 221333 : tree _o2[1], _r2;
684 : 221333 : _o2[0] = captures[0];
685 : 221333 : if (TREE_TYPE (_o2[0]) != type)
686 : : {
687 : 3336 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o2[0]);
688 : : }
689 : : else
690 : : _r2 = _o2[0];
691 : 221333 : _o1[0] = _r2;
692 : : }
693 : 221333 : _o1[1] = captures[2];
694 : 221333 : _r1 = fold_build2_loc (loc, outer_op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
695 : 221333 : if (EXPR_P (_r1))
696 : 0 : goto next_after_fail241;
697 : 221333 : res_op0 = _r1;
698 : : }
699 : 221333 : tree res_op1;
700 : 221333 : {
701 : 221333 : tree _o1[1], _r1;
702 : 221333 : _o1[0] = captures[1];
703 : 221333 : if (TREE_TYPE (_o1[0]) != type)
704 : : {
705 : 3380 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
706 : : }
707 : : else
708 : : _r1 = _o1[0];
709 : 221333 : res_op1 = _r1;
710 : : }
711 : 221333 : tree _r;
712 : 221333 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
713 : 221333 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 125, __FILE__, __LINE__, true);
714 : 221333 : return _r;
715 : : }
716 : : next_after_fail241:;
717 : : }
718 : : }
719 : : else
720 : : {
721 : 26572 : if (!ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
722 : 26572 : || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[1]))
723 : : )
724 : : {
725 : 2506 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail242;
726 : 2506 : {
727 : 2506 : tree res_op0;
728 : 2506 : {
729 : 2506 : tree _o1[2], _r1;
730 : 2506 : {
731 : 2506 : tree _o2[2], _r2;
732 : 2506 : _o2[0] = captures[0];
733 : 2506 : {
734 : 2506 : tree _o3[1], _r3;
735 : 2506 : _o3[0] = captures[2];
736 : 2506 : if (TREE_TYPE (_o3[0]) != TREE_TYPE (_o2[0]))
737 : : {
738 : 2506 : _r3 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, TREE_TYPE (_o2[0]), _o3[0]);
739 : : }
740 : : else
741 : : _r3 = _o3[0];
742 : 2506 : _o2[1] = _r3;
743 : : }
744 : 2506 : _r2 = fold_build2_loc (loc, outer_op, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
745 : 2506 : if (EXPR_P (_r2))
746 : 0 : goto next_after_fail242;
747 : 2506 : _o1[0] = _r2;
748 : : }
749 : 2506 : _o1[1] = captures[1];
750 : 2506 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
751 : 2506 : res_op0 = _r1;
752 : : }
753 : 2506 : tree _r;
754 : 2506 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
755 : 2506 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 126, __FILE__, __LINE__, true);
756 : 2506 : return _r;
757 : : }
758 : : next_after_fail242:;
759 : : }
760 : : else
761 : : {
762 : 10780 : if (types_match (type, captures[1]) && !TYPE_OVERFLOW_SANITIZED (type)
763 : : )
764 : : {
765 : 10752 : {
766 : 10752 : tree cst = const_binop (outer_op, type, captures[0], captures[2]);
767 : 10752 : if (cst && !TREE_OVERFLOW (cst)
768 : : )
769 : : {
770 : 10745 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail243;
771 : 10745 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail243;
772 : 10745 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail243;
773 : 10745 : {
774 : 10745 : tree res_op0;
775 : 10745 : res_op0 = cst;
776 : 10745 : tree res_op1;
777 : 10745 : res_op1 = captures[1];
778 : 10745 : tree _r;
779 : 10745 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
780 : 10745 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 127, __FILE__, __LINE__, true);
781 : 10745 : return _r;
782 : : }
783 : : next_after_fail243:;
784 : : }
785 : : }
786 : : }
787 : : }
788 : : }
789 : : }
790 : : }
791 : : return NULL_TREE;
792 : : }
793 : :
794 : : tree
795 : 358667 : generic_simplify_26 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
796 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
797 : : const enum tree_code ARG_UNUSED (plusminus))
798 : : {
799 : 358667 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
800 : 358667 : if (!TYPE_SATURATING (type)
801 : 358667 : && (!FLOAT_TYPE_P (type) || flag_associative_math)
802 : : )
803 : : {
804 : 358127 : if (!ALL_FRACT_MODE_P (TYPE_MODE (type))
805 : : )
806 : : {
807 : 55 : if ((!ANY_INTEGRAL_TYPE_P (type)
808 : 358086 : || TYPE_OVERFLOW_WRAPS (type)
809 : 85700 : || (INTEGRAL_TYPE_P (type)
810 : 85686 : && ((tree_expr_nonzero_p (captures[1])
811 : 58402 : && (plusminus == MINUS_EXPR
812 : 58262 : || expr_not_equal_to (captures[1],
813 : 416389 : wi::minus_one (TYPE_PRECISION (type)))))
814 : 27284 : || expr_not_equal_to (captures[2],
815 : : (plusminus == PLUS_EXPR
816 : 385411 : ? wi::max_value (TYPE_PRECISION (type), SIGNED)
817 : 1586 : : wi::min_value (TYPE_PRECISION (type), SIGNED))))))
818 : 358127 : && single_use (captures[0])
819 : : )
820 : : {
821 : 356783 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail253;
822 : 356783 : {
823 : 356783 : tree res_op0;
824 : 356783 : {
825 : 356783 : tree _o1[2], _r1;
826 : 356783 : _o1[0] = captures[2];
827 : 356783 : _o1[1] = build_one_cst (type);
828 : 356783 : _r1 = fold_build2_loc (loc, plusminus, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
829 : 356783 : res_op0 = _r1;
830 : : }
831 : 356783 : tree res_op1;
832 : 356783 : res_op1 = captures[1];
833 : 356783 : tree _r;
834 : 356783 : _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
835 : 356783 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 137, __FILE__, __LINE__, true);
836 : 356783 : return _r;
837 : : }
838 : 0 : next_after_fail253:;
839 : : }
840 : : }
841 : : }
842 : : return NULL_TREE;
843 : : }
844 : :
845 : : tree
846 : 0 : generic_simplify_30 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
847 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
848 : : {
849 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
850 : 0 : if (VECTOR_TYPE_P (type)
851 : 0 : && known_eq (TYPE_VECTOR_SUBPARTS (type),
852 : : TYPE_VECTOR_SUBPARTS (TREE_TYPE (captures[3])))
853 : 0 : && (TYPE_MODE (TREE_TYPE (type))
854 : 0 : == TYPE_MODE (TREE_TYPE (TREE_TYPE (captures[3]))))
855 : : )
856 : : {
857 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail257;
858 : 0 : {
859 : 0 : tree res_op0;
860 : 0 : res_op0 = captures[0];
861 : 0 : tree res_op1;
862 : 0 : {
863 : 0 : tree _o1[1], _r1;
864 : 0 : {
865 : 0 : tree _o2[3], _r2;
866 : 0 : _o2[0] = captures[2];
867 : 0 : {
868 : 0 : tree _o3[1], _r3;
869 : 0 : _o3[0] = captures[3];
870 : 0 : _r3 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o3[0]), _o3[0]);
871 : 0 : _o2[1] = _r3;
872 : : }
873 : 0 : _o2[2] = captures[4];
874 : 0 : _r2 = fold_build3_loc (loc, VEC_COND_EXPR, TREE_TYPE (_o2[1]), _o2[0], _o2[1], _o2[2]);
875 : 0 : _o1[0] = _r2;
876 : : }
877 : 0 : if (TREE_TYPE (_o1[0]) != type)
878 : : {
879 : 0 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
880 : : }
881 : : else
882 : : _r1 = _o1[0];
883 : 0 : res_op1 = _r1;
884 : : }
885 : 0 : tree _r;
886 : 0 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
887 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 141, __FILE__, __LINE__, true);
888 : 0 : return _r;
889 : : }
890 : 0 : next_after_fail257:;
891 : : }
892 : : return NULL_TREE;
893 : : }
894 : :
895 : : tree
896 : 4 : generic_simplify_34 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
897 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
898 : : const combined_fn ARG_UNUSED (POPCOUNT))
899 : : {
900 : 4 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
901 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail261;
902 : 4 : {
903 : 4 : tree res_op0;
904 : 4 : {
905 : 4 : tree _o1[1], _r1;
906 : 4 : _o1[0] = captures[2];
907 : 4 : _r1 = maybe_build_call_expr_loc (loc, POPCOUNT, type, 1, _o1[0]);
908 : 4 : if (!_r1)
909 : 0 : goto next_after_fail261;
910 : 4 : res_op0 = _r1;
911 : : }
912 : 4 : tree res_op1;
913 : 4 : {
914 : 4 : tree _o1[1], _r1;
915 : 4 : _o1[0] = captures[3];
916 : 4 : _r1 = maybe_build_call_expr_loc (loc, POPCOUNT, type, 1, _o1[0]);
917 : 4 : if (!_r1)
918 : 0 : goto next_after_fail261;
919 : 4 : res_op1 = _r1;
920 : : }
921 : 4 : tree _r;
922 : 4 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
923 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 145, __FILE__, __LINE__, true);
924 : : return _r;
925 : : }
926 : : next_after_fail261:;
927 : : return NULL_TREE;
928 : : }
929 : :
930 : : tree
931 : 1 : generic_simplify_39 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
932 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
933 : : {
934 : 1 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
935 : 1 : if (INTEGRAL_TYPE_P (type)
936 : : )
937 : : {
938 : 1 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail266;
939 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail266;
940 : 1 : {
941 : 1 : tree res_op0;
942 : 1 : res_op0 = unshare_expr (captures[1]);
943 : 1 : tree res_op1;
944 : 1 : {
945 : 1 : tree _o1[2], _r1;
946 : 1 : _o1[0] = captures[4];
947 : 1 : _o1[1] = captures[1];
948 : 1 : _r1 = fold_build2_loc (loc, TRUNC_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
949 : 1 : res_op1 = _r1;
950 : : }
951 : 1 : tree _r;
952 : 1 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
953 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 150, __FILE__, __LINE__, true);
954 : 1 : return _r;
955 : : }
956 : : next_after_fail266:;
957 : : }
958 : : return NULL_TREE;
959 : : }
960 : :
961 : : tree
962 : 2 : generic_simplify_42 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
963 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
964 : : {
965 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
966 : 2 : if (!TYPE_OVERFLOW_SANITIZED (type) && !TYPE_OVERFLOW_TRAPS (type)
967 : 2 : && !TYPE_SATURATING (type) && !TYPE_OVERFLOW_SANITIZED (TREE_TYPE (captures[2]))
968 : 2 : && !TYPE_OVERFLOW_TRAPS (TREE_TYPE (captures[2]))
969 : 4 : && !TYPE_SATURATING (TREE_TYPE (captures[2]))
970 : : )
971 : : {
972 : 2 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail269;
973 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail269;
974 : 2 : {
975 : 2 : tree res_op0;
976 : 2 : {
977 : 2 : tree _o1[1], _r1;
978 : 2 : {
979 : 2 : tree _o2[2], _r2;
980 : 2 : _o2[0] = captures[0];
981 : 2 : _o2[1] = captures[1];
982 : 2 : _r2 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
983 : 2 : _o1[0] = _r2;
984 : : }
985 : 2 : if (TREE_TYPE (_o1[0]) != type)
986 : : {
987 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
988 : : }
989 : : else
990 : : _r1 = _o1[0];
991 : 2 : res_op0 = _r1;
992 : : }
993 : 2 : tree _r;
994 : 2 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
995 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 153, __FILE__, __LINE__, true);
996 : 2 : return _r;
997 : : }
998 : : next_after_fail269:;
999 : : }
1000 : : return NULL_TREE;
1001 : : }
1002 : :
1003 : : tree
1004 : 50965 : generic_simplify_48 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1005 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1006 : : {
1007 : 50965 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1008 : 50965 : if (!TYPE_SATURATING (type)
1009 : : )
1010 : : {
1011 : 50965 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
1012 : 101919 : && !FIXED_POINT_TYPE_P (type)
1013 : : )
1014 : : {
1015 : 50954 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail275;
1016 : 50954 : {
1017 : 50954 : tree res_op0;
1018 : 50954 : res_op0 = captures[1];
1019 : 50954 : tree _r;
1020 : 50954 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
1021 : 50954 : if (TREE_SIDE_EFFECTS (captures[0]))
1022 : 15 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1023 : 50954 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 158, __FILE__, __LINE__, true);
1024 : 50954 : return _r;
1025 : : }
1026 : 0 : next_after_fail275:;
1027 : : }
1028 : : }
1029 : : return NULL_TREE;
1030 : : }
1031 : :
1032 : : tree
1033 : 0 : generic_simplify_52 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1034 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1035 : : {
1036 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1037 : 0 : if (!TYPE_SATURATING (type)
1038 : : )
1039 : : {
1040 : 0 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
1041 : 0 : && !FIXED_POINT_TYPE_P (type)
1042 : : )
1043 : : {
1044 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail281;
1045 : 0 : {
1046 : 0 : tree res_op0;
1047 : 0 : res_op0 = captures[1];
1048 : 0 : tree res_op1;
1049 : 0 : res_op1 = captures[2];
1050 : 0 : tree _r;
1051 : 0 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
1052 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
1053 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1054 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 164, __FILE__, __LINE__, true);
1055 : 0 : return _r;
1056 : : }
1057 : 0 : next_after_fail281:;
1058 : : }
1059 : : }
1060 : : return NULL_TREE;
1061 : : }
1062 : :
1063 : : tree
1064 : 141699 : generic_simplify_57 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1065 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1066 : : {
1067 : 141699 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1068 : 141699 : if (!TYPE_SATURATING (type)
1069 : : )
1070 : : {
1071 : 141699 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
1072 : 283398 : && !FIXED_POINT_TYPE_P (type)
1073 : : )
1074 : : {
1075 : 141699 : if (INTEGRAL_TYPE_P (type)
1076 : 141699 : && TYPE_OVERFLOW_UNDEFINED (type)
1077 : 47 : && element_precision (type) <= element_precision (TREE_TYPE (captures[1]))
1078 : 141746 : && element_precision (type) <= element_precision (TREE_TYPE (captures[2]))
1079 : : )
1080 : : {
1081 : 47 : {
1082 : 47 : tree utype = unsigned_type_for (type);
1083 : 47 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail289;
1084 : 47 : {
1085 : 47 : tree res_op0;
1086 : 47 : {
1087 : 47 : tree _o1[2], _r1;
1088 : 47 : {
1089 : 47 : tree _o2[1], _r2;
1090 : 47 : _o2[0] = captures[1];
1091 : 47 : if (TREE_TYPE (_o2[0]) != utype)
1092 : : {
1093 : 39 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
1094 : : }
1095 : : else
1096 : : _r2 = _o2[0];
1097 : 47 : _o1[0] = _r2;
1098 : : }
1099 : 47 : {
1100 : 47 : tree _o2[1], _r2;
1101 : 47 : _o2[0] = captures[2];
1102 : 47 : if (TREE_TYPE (_o2[0]) != utype)
1103 : : {
1104 : 38 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
1105 : : }
1106 : : else
1107 : : _r2 = _o2[0];
1108 : 47 : _o1[1] = _r2;
1109 : : }
1110 : 47 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1111 : 47 : res_op0 = _r1;
1112 : : }
1113 : 47 : tree _r;
1114 : 47 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1115 : 47 : if (TREE_SIDE_EFFECTS (captures[3]))
1116 : 2 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
1117 : 47 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 172, __FILE__, __LINE__, true);
1118 : 47 : return _r;
1119 : : }
1120 : 0 : next_after_fail289:;
1121 : : }
1122 : : }
1123 : : else
1124 : : {
1125 : 141652 : if (((element_precision (type) <= element_precision (TREE_TYPE (captures[1])))
1126 : 141652 : == (element_precision (type) <= element_precision (TREE_TYPE (captures[2]))))
1127 : 141652 : && (element_precision (type) <= element_precision (TREE_TYPE (captures[1]))
1128 : 48 : || (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
1129 : 48 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
1130 : 48 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[1]))
1131 : 48 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[2]))))
1132 : : )
1133 : : {
1134 : 125060 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail290;
1135 : 125060 : {
1136 : 125060 : tree res_op0;
1137 : 125060 : {
1138 : 125060 : tree _o1[1], _r1;
1139 : 125060 : _o1[0] = captures[1];
1140 : 125060 : if (TREE_TYPE (_o1[0]) != type)
1141 : : {
1142 : 125060 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1143 : : }
1144 : : else
1145 : : _r1 = _o1[0];
1146 : 125060 : res_op0 = _r1;
1147 : : }
1148 : 125060 : tree res_op1;
1149 : 125060 : {
1150 : 125060 : tree _o1[1], _r1;
1151 : 125060 : _o1[0] = captures[2];
1152 : 125060 : if (TREE_TYPE (_o1[0]) != type)
1153 : : {
1154 : 125060 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1155 : : }
1156 : : else
1157 : : _r1 = _o1[0];
1158 : 125060 : res_op1 = _r1;
1159 : : }
1160 : 125060 : tree _r;
1161 : 125060 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
1162 : 125060 : if (TREE_SIDE_EFFECTS (captures[3]))
1163 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
1164 : 125060 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 173, __FILE__, __LINE__, true);
1165 : 125060 : return _r;
1166 : : }
1167 : 0 : next_after_fail290:;
1168 : : }
1169 : : }
1170 : : }
1171 : : }
1172 : : return NULL_TREE;
1173 : : }
1174 : :
1175 : : tree
1176 : 0 : generic_simplify_74 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1177 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1178 : : const enum tree_code ARG_UNUSED (bit_op))
1179 : : {
1180 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1181 : 0 : if (bit_op == BIT_AND_EXPR
1182 : : )
1183 : : {
1184 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail308;
1185 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail308;
1186 : 0 : {
1187 : 0 : tree _r;
1188 : 0 : _r = build_zero_cst (type);
1189 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 188, __FILE__, __LINE__, true);
1190 : 0 : return _r;
1191 : : }
1192 : : next_after_fail308:;
1193 : : }
1194 : : else
1195 : : {
1196 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail309;
1197 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail309;
1198 : 0 : {
1199 : 0 : tree _r;
1200 : 0 : _r = build_minus_one_cst (type);
1201 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 189, __FILE__, __LINE__, true);
1202 : 0 : return _r;
1203 : : }
1204 : : next_after_fail309:;
1205 : : }
1206 : : return NULL_TREE;
1207 : : }
1208 : :
1209 : : tree
1210 : 0 : generic_simplify_85 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1211 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1212 : : {
1213 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1214 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
1215 : 0 : && TYPE_PRECISION (TREE_TYPE (captures[0])) == 1
1216 : : )
1217 : : {
1218 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail322;
1219 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail322;
1220 : 0 : {
1221 : 0 : tree _r;
1222 : 0 : _r = captures[2];
1223 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 195, __FILE__, __LINE__, true);
1224 : 0 : return _r;
1225 : : }
1226 : : next_after_fail322:;
1227 : : }
1228 : : return NULL_TREE;
1229 : : }
1230 : :
1231 : : tree
1232 : 0 : generic_simplify_93 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1233 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1234 : : {
1235 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1236 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail330;
1237 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail330;
1238 : 0 : {
1239 : 0 : tree _r;
1240 : 0 : _r = captures[0];
1241 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 200, __FILE__, __LINE__, true);
1242 : : return _r;
1243 : : }
1244 : : next_after_fail330:;
1245 : : return NULL_TREE;
1246 : : }
1247 : :
1248 : : tree
1249 : 0 : generic_simplify_99 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1250 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1251 : : const enum tree_code ARG_UNUSED (op))
1252 : : {
1253 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1254 : 0 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[3]))
1255 : 0 : && tree_nop_conversion_p (type, TREE_TYPE (captures[6]))
1256 : : )
1257 : : {
1258 : 0 : if (single_use (captures[4]) && single_use (captures[5])
1259 : : )
1260 : : {
1261 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail338;
1262 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail338;
1263 : 0 : {
1264 : 0 : tree res_op0;
1265 : 0 : res_op0 = captures[0];
1266 : 0 : tree res_op1;
1267 : 0 : {
1268 : 0 : tree _o1[1], _r1;
1269 : 0 : _o1[0] = captures[6];
1270 : 0 : if (TREE_TYPE (_o1[0]) != type)
1271 : : {
1272 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1273 : : }
1274 : : else
1275 : : _r1 = _o1[0];
1276 : 0 : res_op1 = _r1;
1277 : : }
1278 : 0 : tree _r;
1279 : 0 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
1280 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 206, __FILE__, __LINE__, true);
1281 : 0 : return _r;
1282 : : }
1283 : : next_after_fail338:;
1284 : : }
1285 : : else
1286 : : {
1287 : : if (single_use (captures[0]) && single_use (captures[1])
1288 : : )
1289 : : {
1290 : : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail339;
1291 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail339;
1292 : : {
1293 : : tree res_op0;
1294 : : {
1295 : : tree _o1[1], _r1;
1296 : : _o1[0] = captures[3];
1297 : : if (TREE_TYPE (_o1[0]) != type)
1298 : : {
1299 : : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1300 : : }
1301 : : else
1302 : : _r1 = _o1[0];
1303 : : res_op0 = _r1;
1304 : : }
1305 : : tree res_op1;
1306 : : res_op1 = captures[4];
1307 : : tree _r;
1308 : : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
1309 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 207, __FILE__, __LINE__, true);
1310 : : return _r;
1311 : : }
1312 : : next_after_fail339:;
1313 : : }
1314 : : }
1315 : : }
1316 : : return NULL_TREE;
1317 : : }
1318 : :
1319 : : tree
1320 : 2 : generic_simplify_111 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1321 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1322 : : const enum tree_code ARG_UNUSED (bitop),
1323 : : const enum tree_code ARG_UNUSED (rbitop))
1324 : : {
1325 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1326 : 2 : if (bitop == BIT_AND_EXPR
1327 : : )
1328 : : {
1329 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail352;
1330 : 1 : {
1331 : 1 : tree _r;
1332 : 1 : _r = build_zero_cst (type);
1333 : 1 : if (TREE_SIDE_EFFECTS (captures[0]))
1334 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1335 : 1 : if (TREE_SIDE_EFFECTS (captures[1]))
1336 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1337 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 214, __FILE__, __LINE__, true);
1338 : 1 : return _r;
1339 : : }
1340 : 0 : next_after_fail352:;
1341 : : }
1342 : : else
1343 : : {
1344 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail353;
1345 : 1 : {
1346 : 1 : tree _r;
1347 : 1 : _r = build_minus_one_cst (type);
1348 : 1 : if (TREE_SIDE_EFFECTS (captures[0]))
1349 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1350 : 1 : if (TREE_SIDE_EFFECTS (captures[1]))
1351 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1352 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 215, __FILE__, __LINE__, true);
1353 : 1 : return _r;
1354 : : }
1355 : 0 : next_after_fail353:;
1356 : : }
1357 : : return NULL_TREE;
1358 : : }
1359 : :
1360 : : tree
1361 : 0 : generic_simplify_119 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1362 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1363 : : const enum tree_code ARG_UNUSED (cmp),
1364 : : const enum tree_code ARG_UNUSED (icmp))
1365 : : {
1366 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1367 : 0 : if (INTEGRAL_TYPE_P (type)
1368 : 0 : && invert_tree_comparison (cmp, HONOR_NANS (captures[1])) == icmp
1369 : 0 : && canonicalize_math_after_vectorization_p ()
1370 : : )
1371 : : {
1372 : : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail363;
1373 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail363;
1374 : : {
1375 : : tree res_op0;
1376 : : {
1377 : : tree _o1[3], _r1;
1378 : : _o1[0] = captures[0];
1379 : : _o1[1] = captures[3];
1380 : : _o1[2] = captures[5];
1381 : : _r1 = fold_build3_loc (loc, COND_EXPR, TREE_TYPE (_o1[1]), _o1[0], _o1[1], _o1[2]);
1382 : : res_op0 = _r1;
1383 : : }
1384 : : tree res_op1;
1385 : : res_op1 = build_one_cst (type);
1386 : : tree _r;
1387 : : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
1388 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 223, __FILE__, __LINE__, true);
1389 : : return _r;
1390 : : }
1391 : 0 : next_after_fail363:;
1392 : : }
1393 : 0 : return NULL_TREE;
1394 : : }
1395 : :
1396 : : tree
1397 : 7 : generic_simplify_128 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1398 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1399 : : const enum tree_code ARG_UNUSED (code2),
1400 : : const enum tree_code ARG_UNUSED (code1))
1401 : : {
1402 : 7 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1403 : 7 : if ((TREE_CODE (captures[2]) == INTEGER_CST
1404 : 7 : && TREE_CODE (captures[4]) == INTEGER_CST)
1405 : 7 : || ((INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
1406 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[2])))
1407 : 0 : && operand_equal_p (captures[2], captures[4]))
1408 : : )
1409 : : {
1410 : 7 : {
1411 : 7 : int cmp = 0;
1412 : 7 : if (TREE_CODE (captures[2]) == INTEGER_CST
1413 : 7 : && TREE_CODE (captures[4]) == INTEGER_CST)
1414 : 7 : cmp = tree_int_cst_compare (captures[2], captures[4]);
1415 : 7 : if ((code1 == LT_EXPR || code1 == LE_EXPR)
1416 : 7 : && (code2 == LT_EXPR || code2 == LE_EXPR)
1417 : : )
1418 : : {
1419 : 7 : if ((cmp < 0) || (cmp == 0 && code1 == LT_EXPR)
1420 : : )
1421 : : {
1422 : 7 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail388;
1423 : 7 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail388;
1424 : 7 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail388;
1425 : 7 : {
1426 : 7 : tree _r;
1427 : 7 : _r = captures[3];
1428 : 7 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 241, __FILE__, __LINE__, true);
1429 : 7 : return _r;
1430 : : }
1431 : : next_after_fail388:;
1432 : : }
1433 : : else
1434 : : {
1435 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail389;
1436 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail389;
1437 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail389;
1438 : 0 : {
1439 : 0 : tree _r;
1440 : 0 : _r = captures[0];
1441 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 242, __FILE__, __LINE__, true);
1442 : 0 : return _r;
1443 : : }
1444 : : next_after_fail389:;
1445 : : }
1446 : : }
1447 : : else
1448 : : {
1449 : 0 : if ((code1 == GT_EXPR || code1 == GE_EXPR)
1450 : 0 : && (code2 == GT_EXPR || code2 == GE_EXPR)
1451 : : )
1452 : : {
1453 : 0 : if ((cmp > 0) || (cmp == 0 && code1 == GT_EXPR)
1454 : : )
1455 : : {
1456 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail390;
1457 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail390;
1458 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail390;
1459 : 0 : {
1460 : 0 : tree _r;
1461 : 0 : _r = captures[3];
1462 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 243, __FILE__, __LINE__, true);
1463 : 0 : return _r;
1464 : : }
1465 : : next_after_fail390:;
1466 : : }
1467 : : else
1468 : : {
1469 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail391;
1470 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail391;
1471 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail391;
1472 : 0 : {
1473 : 0 : tree _r;
1474 : 0 : _r = captures[0];
1475 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 244, __FILE__, __LINE__, true);
1476 : 0 : return _r;
1477 : : }
1478 : : next_after_fail391:;
1479 : : }
1480 : : }
1481 : : else
1482 : : {
1483 : 0 : if (cmp == 0
1484 : 0 : && ((code1 == LT_EXPR && code2 == GT_EXPR)
1485 : 0 : || (code1 == GT_EXPR && code2 == LT_EXPR))
1486 : : )
1487 : : {
1488 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail392;
1489 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail392;
1490 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail392;
1491 : 0 : {
1492 : 0 : tree res_op0;
1493 : 0 : res_op0 = captures[1];
1494 : 0 : tree res_op1;
1495 : 0 : res_op1 = captures[4];
1496 : 0 : tree _r;
1497 : 0 : _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
1498 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 245, __FILE__, __LINE__, true);
1499 : 0 : return _r;
1500 : : }
1501 : : next_after_fail392:;
1502 : : }
1503 : : else
1504 : : {
1505 : 0 : if (cmp >= 0
1506 : 0 : && (code1 == LT_EXPR || code1 == LE_EXPR)
1507 : 0 : && (code2 == GT_EXPR || code2 == GE_EXPR)
1508 : : )
1509 : : {
1510 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail393;
1511 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail393;
1512 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail393;
1513 : 0 : {
1514 : 0 : tree _r;
1515 : 0 : _r = constant_boolean_node (true, type);
1516 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
1517 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1518 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 246, __FILE__, __LINE__, true);
1519 : 0 : return _r;
1520 : : }
1521 : : next_after_fail393:;
1522 : : }
1523 : : else
1524 : : {
1525 : 0 : if (cmp <= 0
1526 : 0 : && (code1 == GT_EXPR || code1 == GE_EXPR)
1527 : 0 : && (code2 == LT_EXPR || code2 == LE_EXPR)
1528 : : )
1529 : : {
1530 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail394;
1531 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail394;
1532 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail394;
1533 : 0 : {
1534 : 0 : tree _r;
1535 : 0 : _r = constant_boolean_node (true, type);
1536 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
1537 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1538 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 247, __FILE__, __LINE__, true);
1539 : 0 : return _r;
1540 : : }
1541 : : next_after_fail394:;
1542 : : }
1543 : : }
1544 : : }
1545 : : }
1546 : : }
1547 : : }
1548 : : }
1549 : : return NULL_TREE;
1550 : : }
1551 : :
1552 : : tree
1553 : 0 : generic_simplify_150 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1554 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1555 : : {
1556 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1557 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail430;
1558 : 0 : {
1559 : 0 : tree res_op0;
1560 : 0 : res_op0 = captures[1];
1561 : 0 : tree res_op1;
1562 : 0 : res_op1 = captures[2];
1563 : 0 : tree _r;
1564 : 0 : _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
1565 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 259, __FILE__, __LINE__, true);
1566 : : return _r;
1567 : : }
1568 : 0 : next_after_fail430:;
1569 : 0 : return NULL_TREE;
1570 : : }
1571 : :
1572 : : tree
1573 : 1 : generic_simplify_153 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1574 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1575 : : {
1576 : 1 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1577 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail433;
1578 : 1 : {
1579 : 1 : tree res_op0;
1580 : 1 : res_op0 = captures[0];
1581 : 1 : tree _r;
1582 : 1 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
1583 : 1 : if (TREE_SIDE_EFFECTS (captures[1]))
1584 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1585 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 262, __FILE__, __LINE__, true);
1586 : : return _r;
1587 : : }
1588 : 0 : next_after_fail433:;
1589 : 0 : return NULL_TREE;
1590 : : }
1591 : :
1592 : : tree
1593 : 8 : generic_simplify_159 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1594 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1595 : : {
1596 : 8 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1597 : 8 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
1598 : : )
1599 : : {
1600 : 8 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail439;
1601 : 8 : {
1602 : 8 : tree res_op0;
1603 : 8 : {
1604 : 8 : tree _o1[2], _r1;
1605 : 8 : _o1[0] = captures[1];
1606 : 8 : {
1607 : 8 : tree _o2[1], _r2;
1608 : 8 : _o2[0] = captures[0];
1609 : 8 : _r2 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
1610 : 8 : _o1[1] = _r2;
1611 : : }
1612 : 8 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1613 : 8 : res_op0 = _r1;
1614 : : }
1615 : 8 : tree _r;
1616 : 8 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1617 : 8 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 268, __FILE__, __LINE__, true);
1618 : 8 : return _r;
1619 : : }
1620 : 0 : next_after_fail439:;
1621 : : }
1622 : : return NULL_TREE;
1623 : : }
1624 : :
1625 : : tree
1626 : 2 : generic_simplify_167 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1627 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1628 : : {
1629 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1630 : 2 : if (INTEGRAL_TYPE_P (type)
1631 : 2 : && (
1632 : :
1633 : 2 : || !TREE_SIDE_EFFECTS (captures[1]))
1634 : : )
1635 : : {
1636 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail447;
1637 : 2 : {
1638 : 2 : tree res_op0;
1639 : 2 : {
1640 : 2 : tree _o1[1], _r1;
1641 : 2 : _o1[0] = captures[2];
1642 : 2 : if (TREE_TYPE (_o1[0]) != boolean_type_node)
1643 : : {
1644 : 2 : _r1 = fold_build1_loc (loc, NOP_EXPR, boolean_type_node, _o1[0]);
1645 : : }
1646 : : else
1647 : : _r1 = _o1[0];
1648 : 2 : res_op0 = _r1;
1649 : : }
1650 : 2 : tree res_op1;
1651 : 2 : res_op1 = captures[1];
1652 : 2 : tree res_op2;
1653 : 2 : res_op2 = captures[0];
1654 : 2 : tree _r;
1655 : 2 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
1656 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 275, __FILE__, __LINE__, true);
1657 : 2 : return _r;
1658 : : }
1659 : 0 : next_after_fail447:;
1660 : : }
1661 : : return NULL_TREE;
1662 : : }
1663 : :
1664 : : tree
1665 : 0 : generic_simplify_175 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1666 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1667 : : const combined_fn ARG_UNUSED (COPYSIGN_ALL))
1668 : : {
1669 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1670 : 0 : if (!tree_expr_maybe_nan_p (captures[0]) && !HONOR_SIGNED_ZEROS (type)
1671 : : )
1672 : : {
1673 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail457;
1674 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail457;
1675 : 0 : {
1676 : 0 : tree res_op0;
1677 : 0 : {
1678 : 0 : tree _o1[1], _r1;
1679 : 0 : _o1[0] = captures[0];
1680 : 0 : _r1 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
1681 : 0 : res_op0 = _r1;
1682 : : }
1683 : 0 : tree _r;
1684 : 0 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
1685 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 283, __FILE__, __LINE__, true);
1686 : 0 : return _r;
1687 : : }
1688 : : next_after_fail457:;
1689 : : }
1690 : : return NULL_TREE;
1691 : : }
1692 : :
1693 : : tree
1694 : 1206 : generic_simplify_184 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1695 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1696 : : const enum tree_code ARG_UNUSED (cmp))
1697 : : {
1698 : 1206 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1699 : 1206 : if (!canonicalize_math_p ()
1700 : : )
1701 : : {
1702 : 0 : if (INTEGRAL_TYPE_P (type)
1703 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
1704 : : )
1705 : : {
1706 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail468;
1707 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail468;
1708 : 0 : {
1709 : 0 : tree res_op0;
1710 : 0 : res_op0 = captures[0];
1711 : 0 : tree res_op1;
1712 : 0 : res_op1 = captures[3];
1713 : 0 : tree res_op2;
1714 : 0 : res_op2 = build_zero_cst (type);
1715 : 0 : tree _r;
1716 : 0 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
1717 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 291, __FILE__, __LINE__, true);
1718 : 0 : return _r;
1719 : : }
1720 : : next_after_fail468:;
1721 : : }
1722 : : }
1723 : : return NULL_TREE;
1724 : : }
1725 : :
1726 : : tree
1727 : 111554 : generic_simplify_190 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1728 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1729 : : {
1730 : 111554 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1731 : 111554 : if (TREE_CODE (captures[3]) != INTEGER_CST
1732 : : && single_use (captures[0])
1733 : 111554 : && !integer_zerop (captures[2]) && !integer_minus_onep (captures[2])
1734 : : )
1735 : : {
1736 : 111524 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail475;
1737 : 111524 : {
1738 : 111524 : tree res_op0;
1739 : 111524 : {
1740 : 111524 : tree _o1[2], _r1;
1741 : 111524 : _o1[0] = captures[1];
1742 : 111524 : _o1[1] = captures[3];
1743 : 111524 : _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1744 : 111524 : res_op0 = _r1;
1745 : : }
1746 : 111524 : tree res_op1;
1747 : 111524 : res_op1 = captures[2];
1748 : 111524 : tree _r;
1749 : 111524 : _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
1750 : 111524 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 297, __FILE__, __LINE__, true);
1751 : 111524 : return _r;
1752 : : }
1753 : 0 : next_after_fail475:;
1754 : : }
1755 : : return NULL_TREE;
1756 : : }
1757 : :
1758 : : tree
1759 : 171 : generic_simplify_198 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1760 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1761 : : const enum tree_code ARG_UNUSED (cmp))
1762 : : {
1763 : 171 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1764 : 342 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
1765 : 338 : && !TYPE_OVERFLOW_WRAPS (TREE_TYPE(captures[0]))
1766 : : )
1767 : : {
1768 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail483;
1769 : 3 : {
1770 : 3 : tree res_op0;
1771 : 3 : res_op0 = captures[0];
1772 : 3 : tree res_op1;
1773 : 3 : res_op1 = build_zero_cst (TREE_TYPE(captures[0]));
1774 : 3 : tree _r;
1775 : 3 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
1776 : 3 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 305, __FILE__, __LINE__, true);
1777 : 3 : return _r;
1778 : : }
1779 : 0 : next_after_fail483:;
1780 : : }
1781 : : return NULL_TREE;
1782 : : }
1783 : :
1784 : : tree
1785 : 1713657 : generic_simplify_207 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1786 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1787 : : const enum tree_code ARG_UNUSED (cmp))
1788 : : {
1789 : 1713657 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1790 : 3427314 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
1791 : 1713657 : && integer_nonzerop (captures[2])
1792 : 1711887 : && !TREE_OVERFLOW (captures[2])
1793 : 3425544 : && !TREE_OVERFLOW (captures[3])
1794 : : )
1795 : : {
1796 : 1711887 : {
1797 : 1711887 : tree lo, hi; bool neg_overflow;
1798 : 1711887 : enum tree_code code = fold_div_compare (cmp, captures[2], captures[3], &lo, &hi,
1799 : : &neg_overflow);
1800 : 1711887 : if (code == LT_EXPR || code == GE_EXPR
1801 : : )
1802 : : {
1803 : 41477 : if (TREE_OVERFLOW (lo)
1804 : : )
1805 : : {
1806 : 7571 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail495;
1807 : 7571 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail495;
1808 : 7571 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail495;
1809 : 7571 : {
1810 : 7571 : tree _r;
1811 : 7571 : _r = build_int_cst (type, (code == LT_EXPR) ^ neg_overflow);
1812 : 7571 : if (TREE_SIDE_EFFECTS (captures[1]))
1813 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1814 : 7571 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 316, __FILE__, __LINE__, true);
1815 : 1711885 : return _r;
1816 : : }
1817 : 2 : next_after_fail495:;
1818 : : }
1819 : : else
1820 : : {
1821 : 33906 : if (code == LT_EXPR
1822 : : )
1823 : : {
1824 : 719 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail496;
1825 : 719 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail496;
1826 : 719 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail496;
1827 : 719 : {
1828 : 719 : tree res_op0;
1829 : 719 : res_op0 = captures[1];
1830 : 719 : tree res_op1;
1831 : 719 : res_op1 = lo;
1832 : 719 : tree _r;
1833 : 719 : _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
1834 : 719 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 317, __FILE__, __LINE__, true);
1835 : 719 : return _r;
1836 : : }
1837 : 2 : next_after_fail496:;
1838 : : }
1839 : : else
1840 : : {
1841 : 33187 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail497;
1842 : 33187 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail497;
1843 : 33187 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail497;
1844 : 33187 : {
1845 : 33187 : tree res_op0;
1846 : 33187 : res_op0 = captures[1];
1847 : 33187 : tree res_op1;
1848 : 33187 : res_op1 = lo;
1849 : 33187 : tree _r;
1850 : 33187 : _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
1851 : 33187 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 318, __FILE__, __LINE__, true);
1852 : 33187 : return _r;
1853 : : }
1854 : 2 : next_after_fail497:;
1855 : : }
1856 : : }
1857 : : }
1858 : : else
1859 : : {
1860 : 1670410 : if (code == LE_EXPR || code == GT_EXPR
1861 : : )
1862 : : {
1863 : 1667049 : if (TREE_OVERFLOW (hi)
1864 : : )
1865 : : {
1866 : 525714 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail498;
1867 : 525714 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail498;
1868 : 525714 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail498;
1869 : 525714 : {
1870 : 525714 : tree _r;
1871 : 525714 : _r = build_int_cst (type, (code == LE_EXPR) ^ neg_overflow);
1872 : 525714 : if (TREE_SIDE_EFFECTS (captures[1]))
1873 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1874 : 525714 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 319, __FILE__, __LINE__, true);
1875 : 525714 : return _r;
1876 : : }
1877 : 2 : next_after_fail498:;
1878 : : }
1879 : : else
1880 : : {
1881 : 1141335 : if (code == LE_EXPR
1882 : : )
1883 : : {
1884 : 696 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail499;
1885 : 696 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail499;
1886 : 696 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail499;
1887 : 696 : {
1888 : 696 : tree res_op0;
1889 : 696 : res_op0 = captures[1];
1890 : 696 : tree res_op1;
1891 : 696 : res_op1 = hi;
1892 : 696 : tree _r;
1893 : 696 : _r = fold_build2_loc (loc, LE_EXPR, type, res_op0, res_op1);
1894 : 696 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 320, __FILE__, __LINE__, true);
1895 : 696 : return _r;
1896 : : }
1897 : 2 : next_after_fail499:;
1898 : : }
1899 : : else
1900 : : {
1901 : 1140639 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail500;
1902 : 1140639 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail500;
1903 : 1140639 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail500;
1904 : 1140639 : {
1905 : 1140639 : tree res_op0;
1906 : 1140639 : res_op0 = captures[1];
1907 : 1140639 : tree res_op1;
1908 : 1140639 : res_op1 = hi;
1909 : 1140639 : tree _r;
1910 : 1140639 : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
1911 : 1140639 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 321, __FILE__, __LINE__, true);
1912 : 1140639 : return _r;
1913 : : }
1914 : 2 : next_after_fail500:;
1915 : : }
1916 : : }
1917 : : }
1918 : : else
1919 : : {
1920 : 3361 : if (!lo && !hi
1921 : : )
1922 : : {
1923 : 40 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail501;
1924 : 40 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail501;
1925 : 40 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail501;
1926 : 40 : {
1927 : 40 : tree _r;
1928 : 40 : _r = build_int_cst (type, code == NE_EXPR);
1929 : 40 : if (TREE_SIDE_EFFECTS (captures[1]))
1930 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1931 : 40 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 322, __FILE__, __LINE__, true);
1932 : 40 : return _r;
1933 : : }
1934 : 2 : next_after_fail501:;
1935 : : }
1936 : : else
1937 : : {
1938 : 3321 : if (code == EQ_EXPR && !hi
1939 : : )
1940 : : {
1941 : 12 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail502;
1942 : 12 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail502;
1943 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail502;
1944 : 12 : {
1945 : 12 : tree res_op0;
1946 : 12 : res_op0 = captures[1];
1947 : 12 : tree res_op1;
1948 : 12 : res_op1 = lo;
1949 : 12 : tree _r;
1950 : 12 : _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
1951 : 12 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 323, __FILE__, __LINE__, true);
1952 : 12 : return _r;
1953 : : }
1954 : 2 : next_after_fail502:;
1955 : : }
1956 : : else
1957 : : {
1958 : 1188 : if (code == EQ_EXPR && !lo
1959 : : )
1960 : : {
1961 : 11 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail503;
1962 : 11 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail503;
1963 : 11 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail503;
1964 : 11 : {
1965 : 11 : tree res_op0;
1966 : 11 : res_op0 = captures[1];
1967 : 11 : tree res_op1;
1968 : 11 : res_op1 = hi;
1969 : 11 : tree _r;
1970 : 11 : _r = fold_build2_loc (loc, LE_EXPR, type, res_op0, res_op1);
1971 : 11 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 324, __FILE__, __LINE__, true);
1972 : 11 : return _r;
1973 : : }
1974 : 2 : next_after_fail503:;
1975 : : }
1976 : : else
1977 : : {
1978 : 3298 : if (code == NE_EXPR && !hi
1979 : : )
1980 : : {
1981 : 4 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail504;
1982 : 4 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail504;
1983 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail504;
1984 : 4 : {
1985 : 4 : tree res_op0;
1986 : 4 : res_op0 = captures[1];
1987 : 4 : tree res_op1;
1988 : 4 : res_op1 = lo;
1989 : 4 : tree _r;
1990 : 4 : _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
1991 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 325, __FILE__, __LINE__, true);
1992 : 4 : return _r;
1993 : : }
1994 : 2 : next_after_fail504:;
1995 : : }
1996 : : else
1997 : : {
1998 : 2117 : if (code == NE_EXPR && !lo
1999 : : )
2000 : : {
2001 : 18 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail505;
2002 : 18 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail505;
2003 : 18 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail505;
2004 : 18 : {
2005 : 18 : tree res_op0;
2006 : 18 : res_op0 = captures[1];
2007 : 18 : tree res_op1;
2008 : 18 : res_op1 = hi;
2009 : 18 : tree _r;
2010 : 18 : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
2011 : 18 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 326, __FILE__, __LINE__, true);
2012 : 18 : return _r;
2013 : : }
2014 : 2 : next_after_fail505:;
2015 : : }
2016 : : else
2017 : : {
2018 : 3276 : if (1
2019 : : )
2020 : : {
2021 : 3276 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail506;
2022 : 3274 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail506;
2023 : 3274 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail506;
2024 : 3274 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail506;
2025 : 3274 : {
2026 : 3274 : tree _r;
2027 : 3274 : _r = build_range_check (UNKNOWN_LOCATION, type, captures[1], code == EQ_EXPR,
2028 : : lo, hi);
2029 : 3274 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 327, __FILE__, __LINE__, true);
2030 : 3274 : return _r;
2031 : : }
2032 : 2 : next_after_fail506:;
2033 : : }
2034 : : else
2035 : : {
2036 : : {
2037 : : tree etype = range_check_type (TREE_TYPE (captures[1]));
2038 : : if (etype)
2039 : : {
2040 : : hi = fold_convert (etype, hi);
2041 : : lo = fold_convert (etype, lo);
2042 : : hi = const_binop (MINUS_EXPR, etype, hi, lo);
2043 : : }
2044 : : if (etype && hi && !TREE_OVERFLOW (hi)
2045 : : )
2046 : : {
2047 : : if (code == EQ_EXPR
2048 : : )
2049 : : {
2050 : : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail507;
2051 : : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail507;
2052 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail507;
2053 : : {
2054 : : tree res_op0;
2055 : : {
2056 : : tree _o1[2], _r1;
2057 : : {
2058 : : tree _o2[1], _r2;
2059 : : _o2[0] = captures[1];
2060 : : if (TREE_TYPE (_o2[0]) != etype)
2061 : : {
2062 : : _r2 = fold_build1_loc (loc, NOP_EXPR, etype, _o2[0]);
2063 : : }
2064 : : else
2065 : : _r2 = _o2[0];
2066 : : _o1[0] = _r2;
2067 : : }
2068 : : _o1[1] = lo;
2069 : : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2070 : : res_op0 = _r1;
2071 : : }
2072 : : tree res_op1;
2073 : : res_op1 = hi;
2074 : : tree _r;
2075 : : _r = fold_build2_loc (loc, LE_EXPR, type, res_op0, res_op1);
2076 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 328, __FILE__, __LINE__, true);
2077 : : return _r;
2078 : : }
2079 : : next_after_fail507:;
2080 : : }
2081 : : else
2082 : : {
2083 : : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail508;
2084 : : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail508;
2085 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail508;
2086 : : {
2087 : : tree res_op0;
2088 : : {
2089 : : tree _o1[2], _r1;
2090 : : {
2091 : : tree _o2[1], _r2;
2092 : : _o2[0] = captures[1];
2093 : : if (TREE_TYPE (_o2[0]) != etype)
2094 : : {
2095 : : _r2 = fold_build1_loc (loc, NOP_EXPR, etype, _o2[0]);
2096 : : }
2097 : : else
2098 : : _r2 = _o2[0];
2099 : : _o1[0] = _r2;
2100 : : }
2101 : : _o1[1] = lo;
2102 : : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2103 : : res_op0 = _r1;
2104 : : }
2105 : : tree res_op1;
2106 : : res_op1 = hi;
2107 : : tree _r;
2108 : : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
2109 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 329, __FILE__, __LINE__, true);
2110 : : return _r;
2111 : : }
2112 : : next_after_fail508:;
2113 : : }
2114 : : }
2115 : : }
2116 : : }
2117 : : }
2118 : : }
2119 : : }
2120 : : }
2121 : : }
2122 : : }
2123 : : }
2124 : : }
2125 : : }
2126 : : return NULL_TREE;
2127 : : }
2128 : :
2129 : : tree
2130 : 989387 : generic_simplify_260 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2131 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2132 : : const enum tree_code ARG_UNUSED (cmp))
2133 : : {
2134 : 989387 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2135 : 989387 : {
2136 : 989387 : poly_int64 off; tree base;
2137 : 989387 : tree addr = (TREE_CODE (captures[1]) == SSA_NAME
2138 : 989387 : ? gimple_assign_rhs1 (SSA_NAME_DEF_STMT (captures[1])) : captures[1]);
2139 : 989387 : if (SSA_NAME_IS_DEFAULT_DEF (captures[0])
2140 : 46045 : && TREE_CODE (SSA_NAME_VAR (captures[0])) == PARM_DECL
2141 : 45854 : && (base = get_base_address (TREE_OPERAND (addr, 0)))
2142 : 45854 : && TREE_CODE (base) == VAR_DECL
2143 : 992567 : && auto_var_in_fn_p (base, current_function_decl)
2144 : : )
2145 : : {
2146 : 0 : if (cmp == NE_EXPR
2147 : : )
2148 : : {
2149 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail632;
2150 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail632;
2151 : 0 : {
2152 : 0 : tree _r;
2153 : 0 : _r = constant_boolean_node (true, type);
2154 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
2155 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2156 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 443, __FILE__, __LINE__, true);
2157 : 2 : return _r;
2158 : : }
2159 : 989385 : next_after_fail632:;
2160 : : }
2161 : : else
2162 : : {
2163 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail633;
2164 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail633;
2165 : 0 : {
2166 : 0 : tree _r;
2167 : 0 : _r = constant_boolean_node (false, type);
2168 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
2169 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2170 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 444, __FILE__, __LINE__, true);
2171 : 0 : return _r;
2172 : : }
2173 : 989385 : next_after_fail633:;
2174 : : }
2175 : : }
2176 : : else
2177 : : {
2178 : 989387 : if ((base = get_addr_base_and_unit_offset (TREE_OPERAND (addr, 0), &off))
2179 : 987272 : && TREE_CODE (base) == MEM_REF
2180 : 1111369 : && TREE_OPERAND (base, 0) == captures[0]
2181 : : )
2182 : : {
2183 : 2 : {
2184 : 2 : off += mem_ref_offset (base).force_shwi ();
2185 : 2 : if (known_ne (off, 0)
2186 : : )
2187 : : {
2188 : 2 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail634;
2189 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail634;
2190 : 2 : {
2191 : 2 : tree _r;
2192 : 2 : _r = constant_boolean_node (cmp == NE_EXPR, type);
2193 : 2 : if (TREE_SIDE_EFFECTS (captures[0]))
2194 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2195 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 445, __FILE__, __LINE__, true);
2196 : 2 : return _r;
2197 : : }
2198 : 989385 : next_after_fail634:;
2199 : : }
2200 : : else
2201 : : {
2202 : 0 : if (known_eq (off, 0)
2203 : : )
2204 : : {
2205 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail635;
2206 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail635;
2207 : 0 : {
2208 : 0 : tree _r;
2209 : 0 : _r = constant_boolean_node (cmp == EQ_EXPR, type);
2210 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
2211 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2212 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 446, __FILE__, __LINE__, true);
2213 : 0 : return _r;
2214 : : }
2215 : 989385 : next_after_fail635:;
2216 : : }
2217 : : }
2218 : : }
2219 : : }
2220 : : }
2221 : : }
2222 : 989385 : return NULL_TREE;
2223 : : }
2224 : :
2225 : : tree
2226 : 99290 : generic_simplify_270 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2227 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2228 : : const enum tree_code ARG_UNUSED (cmp),
2229 : : const enum tree_code ARG_UNUSED (ncmp))
2230 : : {
2231 : 99290 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2232 : 196858 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
2233 : 50282 : && type_has_mode_precision_p (TREE_TYPE (captures[1]))
2234 : 50224 : && element_precision (captures[0]) >= element_precision (captures[1])
2235 : 198580 : && wi::only_sign_bit_p (wi::to_wide (captures[2]), element_precision (captures[1]))
2236 : : )
2237 : : {
2238 : 9177 : {
2239 : 9177 : tree stype = signed_type_for (TREE_TYPE (captures[1]));
2240 : 9177 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail645;
2241 : 9177 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail645;
2242 : 9177 : {
2243 : 9177 : tree res_op0;
2244 : 9177 : {
2245 : 9177 : tree _o1[1], _r1;
2246 : 9177 : _o1[0] = captures[1];
2247 : 9177 : if (TREE_TYPE (_o1[0]) != stype)
2248 : : {
2249 : 8513 : _r1 = fold_build1_loc (loc, NOP_EXPR, stype, _o1[0]);
2250 : : }
2251 : : else
2252 : : _r1 = _o1[0];
2253 : 9177 : res_op0 = _r1;
2254 : : }
2255 : 9177 : tree res_op1;
2256 : 9177 : res_op1 = build_zero_cst (stype);
2257 : 9177 : tree _r;
2258 : 9177 : _r = fold_build2_loc (loc, ncmp, type, res_op0, res_op1);
2259 : 9177 : if (TREE_SIDE_EFFECTS (captures[2]))
2260 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2261 : 9177 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 456, __FILE__, __LINE__, true);
2262 : 9177 : return _r;
2263 : : }
2264 : : next_after_fail645:;
2265 : : }
2266 : : }
2267 : : return NULL_TREE;
2268 : : }
2269 : :
2270 : : tree
2271 : 112612 : generic_simplify_276 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2272 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2273 : : const enum tree_code ARG_UNUSED (cmp))
2274 : : {
2275 : 112612 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2276 : 112612 : {
2277 : 112612 : poly_int64 off0, off1;
2278 : 112612 : tree base0, base1;
2279 : 112612 : int equal = address_compare (cmp, TREE_TYPE (captures[0]), captures[1], captures[2], base0, base1,
2280 : : off0, off1,
2281 : : 1
2282 : : );
2283 : 112612 : if (equal == 1
2284 : : )
2285 : : {
2286 : 103205 : if (cmp == EQ_EXPR && (known_eq (off0, off1) || known_ne (off0, off1))
2287 : : )
2288 : : {
2289 : 5600 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail658;
2290 : 5600 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail658;
2291 : 5600 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail658;
2292 : 5600 : {
2293 : 5600 : tree _r;
2294 : 5600 : _r = constant_boolean_node (known_eq (off0, off1), type);
2295 : 5600 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 459, __FILE__, __LINE__, true);
2296 : 104094 : return _r;
2297 : : }
2298 : 8518 : next_after_fail658:;
2299 : : }
2300 : : else
2301 : : {
2302 : 58197 : if (cmp == NE_EXPR && (known_eq (off0, off1) || known_ne (off0, off1))
2303 : : )
2304 : : {
2305 : 58197 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail659;
2306 : 58197 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail659;
2307 : 58197 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail659;
2308 : 58197 : {
2309 : 58197 : tree _r;
2310 : 58197 : _r = constant_boolean_node (known_ne (off0, off1), type);
2311 : 58197 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 460, __FILE__, __LINE__, true);
2312 : 58197 : return _r;
2313 : : }
2314 : 8518 : next_after_fail659:;
2315 : : }
2316 : : else
2317 : : {
2318 : 24892 : if (cmp == LT_EXPR && (known_lt (off0, off1) || known_ge (off0, off1))
2319 : : )
2320 : : {
2321 : 24892 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail660;
2322 : 24892 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail660;
2323 : 24892 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail660;
2324 : 24892 : {
2325 : 24892 : tree _r;
2326 : 24892 : _r = constant_boolean_node (known_lt (off0, off1), type);
2327 : 24892 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 461, __FILE__, __LINE__, true);
2328 : 24892 : return _r;
2329 : : }
2330 : 8518 : next_after_fail660:;
2331 : : }
2332 : : else
2333 : : {
2334 : 299 : if (cmp == LE_EXPR && (known_le (off0, off1) || known_gt (off0, off1))
2335 : : )
2336 : : {
2337 : 299 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail661;
2338 : 299 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail661;
2339 : 299 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail661;
2340 : 299 : {
2341 : 299 : tree _r;
2342 : 299 : _r = constant_boolean_node (known_le (off0, off1), type);
2343 : 299 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 462, __FILE__, __LINE__, true);
2344 : 299 : return _r;
2345 : : }
2346 : 8518 : next_after_fail661:;
2347 : : }
2348 : : else
2349 : : {
2350 : 10709 : if (cmp == GE_EXPR && (known_ge (off0, off1) || known_lt (off0, off1))
2351 : : )
2352 : : {
2353 : 10709 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail662;
2354 : 10709 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail662;
2355 : 10709 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail662;
2356 : 10709 : {
2357 : 10709 : tree _r;
2358 : 10709 : _r = constant_boolean_node (known_ge (off0, off1), type);
2359 : 10709 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 463, __FILE__, __LINE__, true);
2360 : 10709 : return _r;
2361 : : }
2362 : 8518 : next_after_fail662:;
2363 : : }
2364 : : else
2365 : : {
2366 : 3508 : if (cmp == GT_EXPR && (known_gt (off0, off1) || known_le (off0, off1))
2367 : : )
2368 : : {
2369 : 3508 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail663;
2370 : 3508 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail663;
2371 : 3508 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail663;
2372 : 3508 : {
2373 : 3508 : tree _r;
2374 : 3508 : _r = constant_boolean_node (known_gt (off0, off1), type);
2375 : 3508 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 464, __FILE__, __LINE__, true);
2376 : 3508 : return _r;
2377 : : }
2378 : 8518 : next_after_fail663:;
2379 : : }
2380 : : }
2381 : : }
2382 : : }
2383 : : }
2384 : : }
2385 : : }
2386 : : else
2387 : : {
2388 : 9407 : if (equal == 0
2389 : : )
2390 : : {
2391 : 889 : if (cmp == EQ_EXPR
2392 : : )
2393 : : {
2394 : 658 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail664;
2395 : 658 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail664;
2396 : 658 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail664;
2397 : 658 : {
2398 : 658 : tree _r;
2399 : 658 : _r = constant_boolean_node (false, type);
2400 : 658 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 465, __FILE__, __LINE__, true);
2401 : 658 : return _r;
2402 : : }
2403 : 8518 : next_after_fail664:;
2404 : : }
2405 : : else
2406 : : {
2407 : 231 : if (cmp == NE_EXPR
2408 : : )
2409 : : {
2410 : 231 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail665;
2411 : 231 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail665;
2412 : 231 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail665;
2413 : 231 : {
2414 : 231 : tree _r;
2415 : 231 : _r = constant_boolean_node (true, type);
2416 : 231 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 466, __FILE__, __LINE__, true);
2417 : 231 : return _r;
2418 : : }
2419 : 8518 : next_after_fail665:;
2420 : : }
2421 : : }
2422 : : }
2423 : : }
2424 : : }
2425 : 8518 : return NULL_TREE;
2426 : : }
2427 : :
2428 : : tree
2429 : 0 : generic_simplify_289 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2430 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2431 : : const enum tree_code ARG_UNUSED (cmp))
2432 : : {
2433 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2434 : 0 : if (VECTOR_MODE_P (TYPE_MODE (TREE_TYPE (captures[0])))
2435 : 0 : && can_compare_p (cmp == EQ_EXPR ? EQ : NE, TYPE_MODE (TREE_TYPE (captures[0])),
2436 : : ccp_jump)
2437 : : )
2438 : : {
2439 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail697;
2440 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail697;
2441 : 0 : {
2442 : 0 : tree res_op0;
2443 : 0 : res_op0 = captures[0];
2444 : 0 : tree res_op1;
2445 : 0 : res_op1 = build_zero_cst (TREE_TYPE (captures[0]));
2446 : 0 : tree _r;
2447 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2448 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 498, __FILE__, __LINE__, true);
2449 : 0 : return _r;
2450 : : }
2451 : : next_after_fail697:;
2452 : : }
2453 : : return NULL_TREE;
2454 : : }
2455 : :
2456 : : tree
2457 : 0 : generic_simplify_293 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2458 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2459 : : const combined_fn ARG_UNUSED (COPYSIGN_ALL))
2460 : : {
2461 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2462 : 0 : if (REAL_VALUE_NEGATIVE (TREE_REAL_CST (captures[0]))
2463 : : )
2464 : : {
2465 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail702;
2466 : 0 : {
2467 : 0 : tree res_op0;
2468 : 0 : {
2469 : 0 : tree _o1[1], _r1;
2470 : 0 : _o1[0] = captures[0];
2471 : 0 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
2472 : 0 : res_op0 = _r1;
2473 : : }
2474 : 0 : tree res_op1;
2475 : 0 : res_op1 = captures[1];
2476 : 0 : tree _r;
2477 : 0 : _r = maybe_build_call_expr_loc (loc, COPYSIGN_ALL, type, 2, res_op0, res_op1);
2478 : 0 : if (!_r)
2479 : 0 : goto next_after_fail702;
2480 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 503, __FILE__, __LINE__, true);
2481 : 0 : return _r;
2482 : : }
2483 : : next_after_fail702:;
2484 : : }
2485 : : return NULL_TREE;
2486 : : }
2487 : :
2488 : : tree
2489 : 7 : generic_simplify_299 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2490 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2491 : : const enum tree_code ARG_UNUSED (div))
2492 : : {
2493 : 7 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2494 : 14 : if ((TYPE_UNSIGNED (type) || tree_expr_nonnegative_p (captures[0]))
2495 : 0 : && (!VECTOR_TYPE_P (type)
2496 : 0 : || target_supports_op_p (type, RSHIFT_EXPR, optab_vector)
2497 : 0 : || target_supports_op_p (type, RSHIFT_EXPR, optab_scalar))
2498 : 7 : && (useless_type_conversion_p (type, TREE_TYPE (captures[2]))
2499 : 0 : || (element_precision (type) >= element_precision (TREE_TYPE (captures[2]))
2500 : 0 : && (TYPE_UNSIGNED (TREE_TYPE (captures[2]))
2501 : 0 : || (element_precision (type)
2502 : 0 : == element_precision (TREE_TYPE (captures[2])))
2503 : 0 : || (INTEGRAL_TYPE_P (type)
2504 : 0 : && (tree_nonzero_bits (captures[0])
2505 : 7 : & wi::mask (element_precision (TREE_TYPE (captures[2])) - 1,
2506 : : true,
2507 : 7 : element_precision (type))) == 0))))
2508 : : )
2509 : : {
2510 : 0 : if (!VECTOR_TYPE_P (type)
2511 : 0 : && useless_type_conversion_p (TREE_TYPE (captures[1]), TREE_TYPE (captures[2]))
2512 : 0 : && element_precision (TREE_TYPE (captures[1])) < element_precision (type)
2513 : : )
2514 : : {
2515 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail708;
2516 : 0 : {
2517 : 0 : tree res_op0;
2518 : 0 : {
2519 : 0 : tree _o1[2], _r1;
2520 : 0 : _o1[0] = captures[1];
2521 : 0 : _o1[1] = captures[3];
2522 : 0 : _r1 = fold_build2_loc (loc, RSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2523 : 0 : res_op0 = _r1;
2524 : : }
2525 : 0 : tree _r;
2526 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
2527 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
2528 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2529 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 509, __FILE__, __LINE__, true);
2530 : 0 : return _r;
2531 : : }
2532 : 0 : next_after_fail708:;
2533 : : }
2534 : : else
2535 : : {
2536 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail709;
2537 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail709;
2538 : 0 : {
2539 : 0 : tree res_op0;
2540 : 0 : res_op0 = captures[0];
2541 : 0 : tree res_op1;
2542 : 0 : res_op1 = captures[3];
2543 : 0 : tree _r;
2544 : 0 : _r = fold_build2_loc (loc, RSHIFT_EXPR, type, res_op0, res_op1);
2545 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
2546 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2547 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 510, __FILE__, __LINE__, true);
2548 : 0 : return _r;
2549 : : }
2550 : : next_after_fail709:;
2551 : : }
2552 : : }
2553 : : return NULL_TREE;
2554 : : }
2555 : :
2556 : : tree
2557 : 224871 : generic_simplify_314 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2558 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2559 : : const enum tree_code ARG_UNUSED (mod))
2560 : : {
2561 : 224871 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2562 : 224871 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail726;
2563 : 224871 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail726;
2564 : 224871 : {
2565 : 224871 : tree _r;
2566 : 224871 : _r = build_zero_cst (type);
2567 : 224871 : if (TREE_SIDE_EFFECTS (captures[0]))
2568 : 47 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2569 : 224871 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 525, __FILE__, __LINE__, true);
2570 : : return _r;
2571 : : }
2572 : : next_after_fail726:;
2573 : : return NULL_TREE;
2574 : : }
2575 : :
2576 : : tree
2577 : 0 : generic_simplify_322 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2578 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2579 : : const combined_fn ARG_UNUSED (SQRT))
2580 : : {
2581 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2582 : 0 : if (flag_unsafe_math_optimizations
2583 : : )
2584 : : {
2585 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail736;
2586 : 0 : {
2587 : 0 : tree res_op0;
2588 : 0 : res_op0 = captures[0];
2589 : 0 : tree _r;
2590 : 0 : _r = maybe_build_call_expr_loc (loc, SQRT, type, 1, res_op0);
2591 : 0 : if (!_r)
2592 : 0 : goto next_after_fail736;
2593 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 535, __FILE__, __LINE__, true);
2594 : 0 : return _r;
2595 : : }
2596 : : next_after_fail736:;
2597 : : }
2598 : : return NULL_TREE;
2599 : : }
2600 : :
2601 : : tree
2602 : 4 : generic_simplify_329 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2603 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2604 : : const combined_fn ARG_UNUSED (POW))
2605 : : {
2606 : 4 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2607 : 4 : if (flag_unsafe_math_optimizations && canonicalize_math_p ()
2608 : : )
2609 : : {
2610 : 4 : if (!TREE_OVERFLOW (captures[2])
2611 : : )
2612 : : {
2613 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail743;
2614 : 4 : {
2615 : 4 : tree res_op0;
2616 : 4 : res_op0 = captures[1];
2617 : 4 : tree res_op1;
2618 : 4 : {
2619 : 4 : tree _o1[2], _r1;
2620 : 4 : _o1[0] = captures[2];
2621 : 4 : _o1[1] = build_one_cst (type);
2622 : 4 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2623 : 4 : res_op1 = _r1;
2624 : : }
2625 : 4 : tree _r;
2626 : 4 : _r = maybe_build_call_expr_loc (loc, POW, type, 2, res_op0, res_op1);
2627 : 4 : if (!_r)
2628 : 0 : goto next_after_fail743;
2629 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 542, __FILE__, __LINE__, true);
2630 : 4 : return _r;
2631 : : }
2632 : : next_after_fail743:;
2633 : : }
2634 : : }
2635 : : return NULL_TREE;
2636 : : }
2637 : :
2638 : : tree
2639 : 458079 : generic_simplify_336 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2640 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2641 : : const enum tree_code ARG_UNUSED (op))
2642 : : {
2643 : 458079 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2644 : 916157 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
2645 : 916054 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[1]))
2646 : 276195 : && !TYPE_OVERFLOW_SANITIZED (TREE_TYPE (captures[1]))
2647 : 916106 : && (CONSTANT_CLASS_P (captures[1]) || single_use (captures[0]))
2648 : : )
2649 : : {
2650 : 276124 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail752;
2651 : 276124 : {
2652 : 276124 : tree res_op0;
2653 : 276124 : res_op0 = captures[1];
2654 : 276124 : tree res_op1;
2655 : 276124 : res_op1 = build_zero_cst (TREE_TYPE (captures[1]));
2656 : 276124 : tree _r;
2657 : 276124 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
2658 : 276124 : if (TREE_SIDE_EFFECTS (captures[2]))
2659 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2660 : 276124 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 551, __FILE__, __LINE__, true);
2661 : 276124 : return _r;
2662 : : }
2663 : 0 : next_after_fail752:;
2664 : : }
2665 : : return NULL_TREE;
2666 : : }
2667 : :
2668 : : tree
2669 : 0 : generic_simplify_345 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2670 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2671 : : const enum tree_code ARG_UNUSED (cmp),
2672 : : const enum tree_code ARG_UNUSED (cmp2))
2673 : : {
2674 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2675 : 0 : if (tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[2]))
2676 : 0 : && TYPE_UNSIGNED (TREE_TYPE (captures[2])) && !TYPE_UNSIGNED (TREE_TYPE (captures[0]))
2677 : 0 : && wi::gt_p (wi::to_wide (captures[1]), 0, TYPE_SIGN (TREE_TYPE (captures[1])))
2678 : : )
2679 : : {
2680 : 0 : {
2681 : 0 : tree utype = TREE_TYPE (captures[2]);
2682 : 0 : wide_int denom = wi::to_wide (captures[1]);
2683 : 0 : wide_int right = wi::to_wide (captures[2]);
2684 : 0 : wide_int smax = wi::sdiv_trunc (wi::max_value (TREE_TYPE (captures[0])), denom);
2685 : 0 : wide_int smin = wi::sdiv_trunc (wi::min_value (TREE_TYPE (captures[0])), denom);
2686 : 0 : bool small = wi::leu_p (right, smax);
2687 : 0 : bool large = wi::geu_p (right, smin);
2688 : 0 : if (small || large
2689 : : )
2690 : : {
2691 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail763;
2692 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail763;
2693 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail763;
2694 : 0 : {
2695 : 0 : tree res_op0;
2696 : 0 : {
2697 : 0 : tree _o1[1], _r1;
2698 : 0 : _o1[0] = captures[0];
2699 : 0 : if (TREE_TYPE (_o1[0]) != utype)
2700 : : {
2701 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, utype, _o1[0]);
2702 : : }
2703 : : else
2704 : : _r1 = _o1[0];
2705 : 0 : res_op0 = _r1;
2706 : : }
2707 : 0 : tree res_op1;
2708 : 0 : {
2709 : 0 : tree _o1[2], _r1;
2710 : 0 : _o1[0] = captures[2];
2711 : 0 : {
2712 : 0 : tree _o2[1], _r2;
2713 : 0 : _o2[0] = captures[1];
2714 : 0 : if (TREE_TYPE (_o2[0]) != TREE_TYPE (res_op0))
2715 : : {
2716 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o2[0]);
2717 : : }
2718 : : else
2719 : : _r2 = _o2[0];
2720 : 0 : _o1[1] = _r2;
2721 : : }
2722 : 0 : _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2723 : 0 : res_op1 = _r1;
2724 : : }
2725 : 0 : tree _r;
2726 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2727 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 562, __FILE__, __LINE__, true);
2728 : 0 : return _r;
2729 : : }
2730 : 0 : next_after_fail763:;
2731 : : }
2732 : : else
2733 : : {
2734 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail764;
2735 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail764;
2736 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail764;
2737 : 0 : {
2738 : 0 : tree res_op0;
2739 : 0 : res_op0 = captures[0];
2740 : 0 : tree res_op1;
2741 : 0 : res_op1 = build_zero_cst (TREE_TYPE (captures[0]));
2742 : 0 : tree _r;
2743 : 0 : _r = fold_build2_loc (loc, cmp2, type, res_op0, res_op1);
2744 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 563, __FILE__, __LINE__, true);
2745 : 0 : return _r;
2746 : : }
2747 : 0 : next_after_fail764:;
2748 : : }
2749 : 0 : }
2750 : : }
2751 : : return NULL_TREE;
2752 : : }
2753 : :
2754 : : tree
2755 : 18066844 : generic_simplify_359 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2756 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2757 : : const enum tree_code ARG_UNUSED (cmp),
2758 : : const enum tree_code ARG_UNUSED (acmp))
2759 : : {
2760 : 18066844 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2761 : 18066844 : {
2762 : 18066844 : tree cst = uniform_integer_cst_p (captures[1]);
2763 : 18066844 : if (tree_int_cst_sgn (cst) == -1
2764 : : )
2765 : : {
2766 : 166142 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail815;
2767 : 166142 : {
2768 : 166142 : tree res_op0;
2769 : 166142 : res_op0 = captures[0];
2770 : 166142 : tree res_op1;
2771 : 166142 : res_op1 = build_uniform_cst (TREE_TYPE (captures[1]),
2772 : 166142 : wide_int_to_tree (TREE_TYPE (cst),
2773 : 166142 : wi::to_wide (cst)
2774 : 332284 : + 1));
2775 : 166142 : tree _r;
2776 : 166142 : _r = fold_build2_loc (loc, acmp, type, res_op0, res_op1);
2777 : 166142 : if (TREE_SIDE_EFFECTS (captures[1]))
2778 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2779 : 166142 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 597, __FILE__, __LINE__, true);
2780 : 166142 : return _r;
2781 : : }
2782 : 0 : next_after_fail815:;
2783 : : }
2784 : : }
2785 : : return NULL_TREE;
2786 : : }
2787 : :
2788 : : tree
2789 : 0 : generic_simplify_362 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2790 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2791 : : const enum tree_code ARG_UNUSED (cmp),
2792 : : const enum tree_code ARG_UNUSED (out))
2793 : : {
2794 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2795 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[1]))
2796 : 0 : && types_match (TREE_TYPE (captures[1]), TREE_TYPE (captures[2]))
2797 : : )
2798 : : {
2799 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail818;
2800 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail818;
2801 : 0 : {
2802 : 0 : tree res_op0;
2803 : 0 : {
2804 : 0 : tree _o1[1], _r1;
2805 : 0 : _o1[0] = captures[0];
2806 : 0 : _r1 = fold_build1_loc (loc, IMAGPART_EXPR, TREE_TYPE (TREE_TYPE (_o1[0])), _o1[0]);
2807 : 0 : res_op0 = _r1;
2808 : : }
2809 : 0 : tree res_op1;
2810 : 0 : res_op1 = build_zero_cst (TREE_TYPE (captures[1]));
2811 : 0 : tree _r;
2812 : 0 : _r = fold_build2_loc (loc, out, type, res_op0, res_op1);
2813 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 582, __FILE__, __LINE__, true);
2814 : 0 : return _r;
2815 : : }
2816 : : next_after_fail818:;
2817 : : }
2818 : : return NULL_TREE;
2819 : : }
2820 : :
2821 : : tree
2822 : 43 : generic_simplify_367 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2823 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2824 : : const enum tree_code ARG_UNUSED (cmp),
2825 : : const enum tree_code ARG_UNUSED (cmp2),
2826 : : const enum tree_code ARG_UNUSED (cmp3),
2827 : : const enum tree_code ARG_UNUSED (bit_op),
2828 : : const combined_fn ARG_UNUSED (ffs))
2829 : : {
2830 : 43 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2831 : 43 : {
2832 : 43 : int prec = TYPE_PRECISION (TREE_TYPE (captures[1]));
2833 : 43 : if (integer_zerop (captures[2])
2834 : : )
2835 : : {
2836 : 11 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail823;
2837 : 11 : {
2838 : 11 : tree res_op0;
2839 : 11 : res_op0 = captures[1];
2840 : 11 : tree res_op1;
2841 : 11 : res_op1 = build_zero_cst (TREE_TYPE (captures[1]));
2842 : 11 : tree _r;
2843 : 11 : _r = fold_build2_loc (loc, cmp2, type, res_op0, res_op1);
2844 : 11 : if (TREE_SIDE_EFFECTS (captures[2]))
2845 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2846 : 11 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 601, __FILE__, __LINE__, true);
2847 : 27 : return _r;
2848 : : }
2849 : 0 : next_after_fail823:;
2850 : : }
2851 : : else
2852 : : {
2853 : 32 : if (tree_int_cst_sgn (captures[2]) < 0
2854 : : )
2855 : : {
2856 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail824;
2857 : 0 : {
2858 : 0 : tree _r;
2859 : 0 : _r = constant_boolean_node (cmp == GT_EXPR ? true : false, type);
2860 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2861 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2862 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
2863 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2864 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 602, __FILE__, __LINE__, true);
2865 : 0 : return _r;
2866 : : }
2867 : 0 : next_after_fail824:;
2868 : : }
2869 : : else
2870 : : {
2871 : 32 : if (wi::to_widest (captures[2]) >= prec
2872 : : )
2873 : : {
2874 : 14 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail825;
2875 : 14 : {
2876 : 14 : tree _r;
2877 : 14 : _r = constant_boolean_node (cmp == GT_EXPR ? false : true, type);
2878 : 14 : if (TREE_SIDE_EFFECTS (captures[1]))
2879 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2880 : 14 : if (TREE_SIDE_EFFECTS (captures[2]))
2881 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2882 : 14 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 603, __FILE__, __LINE__, true);
2883 : 14 : return _r;
2884 : : }
2885 : 0 : next_after_fail825:;
2886 : : }
2887 : : else
2888 : : {
2889 : 18 : if (wi::to_widest (captures[2]) == prec - 1
2890 : : )
2891 : : {
2892 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail826;
2893 : 2 : {
2894 : 2 : tree res_op0;
2895 : 2 : res_op0 = captures[1];
2896 : 2 : tree res_op1;
2897 : 2 : res_op1 = wide_int_to_tree (TREE_TYPE (captures[1]),
2898 : 2 : wi::shifted_mask (prec - 1, 1,
2899 : : false, prec));
2900 : 2 : tree _r;
2901 : 2 : _r = fold_build2_loc (loc, cmp3, type, res_op0, res_op1);
2902 : 2 : if (TREE_SIDE_EFFECTS (captures[2]))
2903 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2904 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 604, __FILE__, __LINE__, true);
2905 : 2 : return _r;
2906 : : }
2907 : 0 : next_after_fail826:;
2908 : : }
2909 : : else
2910 : : {
2911 : 16 : if (single_use (captures[0])
2912 : : )
2913 : : {
2914 : 16 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail827;
2915 : 16 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail827;
2916 : 16 : {
2917 : 16 : if (! tree_invariant_p (captures[1])) goto next_after_fail827;
2918 : 0 : tree res_op0;
2919 : 0 : {
2920 : 0 : tree _o1[2], _r1;
2921 : 0 : _o1[0] = unshare_expr (captures[1]);
2922 : 0 : _o1[1] = build_zero_cst (TREE_TYPE (captures[1]));
2923 : 0 : _r1 = fold_build2_loc (loc, cmp2, type, _o1[0], _o1[1]);
2924 : 0 : res_op0 = _r1;
2925 : : }
2926 : 0 : tree res_op1;
2927 : 0 : {
2928 : 0 : tree _o1[2], _r1;
2929 : 0 : {
2930 : 0 : tree _o2[2], _r2;
2931 : 0 : _o2[0] = captures[1];
2932 : 0 : _o2[1] = wide_int_to_tree (TREE_TYPE (captures[1]),
2933 : 0 : wi::mask (tree_to_uhwi (captures[2]),
2934 : : false, prec));
2935 : 0 : _r2 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
2936 : 0 : _o1[0] = _r2;
2937 : : }
2938 : 0 : _o1[1] = build_zero_cst (TREE_TYPE (captures[1]));
2939 : 0 : _r1 = fold_build2_loc (loc, cmp3, type, _o1[0], _o1[1]);
2940 : 0 : res_op1 = _r1;
2941 : : }
2942 : 0 : tree _r;
2943 : 0 : _r = fold_build2_loc (loc, bit_op, type, res_op0, res_op1);
2944 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 605, __FILE__, __LINE__, true);
2945 : 0 : return _r;
2946 : : }
2947 : 16 : next_after_fail827:;
2948 : : }
2949 : : }
2950 : : }
2951 : : }
2952 : : }
2953 : : }
2954 : 16 : return NULL_TREE;
2955 : : }
2956 : :
2957 : : tree
2958 : 19636187 : generic_simplify_387 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2959 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
2960 : : const enum tree_code ARG_UNUSED (op))
2961 : : {
2962 : 19636187 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2963 : 19636187 : if (INTEGRAL_TYPE_P (type)
2964 : 18278232 : && op != MULT_EXPR
2965 : 18278232 : && op != RDIV_EXPR
2966 : 10670072 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
2967 : 10670072 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
2968 : 10670072 : && type_has_mode_precision_p (TREE_TYPE (captures[2]))
2969 : 10668892 : && type_has_mode_precision_p (TREE_TYPE (captures[4]))
2970 : 10668892 : && type_has_mode_precision_p (type)
2971 : 10637780 : && TYPE_PRECISION (TREE_TYPE (captures[1])) > TYPE_PRECISION (TREE_TYPE (captures[2]))
2972 : 0 : && types_match (captures[2], type)
2973 : 19636187 : && (types_match (captures[2], captures[4])
2974 : 0 : || poly_int_tree_p (captures[3]))
2975 : : )
2976 : : {
2977 : 0 : if (TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[2]))
2978 : : )
2979 : : {
2980 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail864;
2981 : 0 : {
2982 : 0 : tree res_op0;
2983 : 0 : res_op0 = captures[2];
2984 : 0 : tree res_op1;
2985 : 0 : {
2986 : 0 : tree _o1[1], _r1;
2987 : 0 : _o1[0] = captures[4];
2988 : 0 : if (TREE_TYPE (_o1[0]) != type)
2989 : : {
2990 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
2991 : : }
2992 : : else
2993 : : _r1 = _o1[0];
2994 : 0 : res_op1 = _r1;
2995 : : }
2996 : 0 : tree _r;
2997 : 0 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
2998 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 628, __FILE__, __LINE__, true);
2999 : 0 : return _r;
3000 : : }
3001 : 0 : next_after_fail864:;
3002 : : }
3003 : : else
3004 : : {
3005 : 0 : {
3006 : 0 : tree utype = unsigned_type_for (TREE_TYPE (captures[2]));
3007 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail865;
3008 : 0 : {
3009 : 0 : tree res_op0;
3010 : 0 : {
3011 : 0 : tree _o1[2], _r1;
3012 : 0 : {
3013 : 0 : tree _o2[1], _r2;
3014 : 0 : _o2[0] = captures[2];
3015 : 0 : if (TREE_TYPE (_o2[0]) != utype)
3016 : : {
3017 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
3018 : : }
3019 : : else
3020 : : _r2 = _o2[0];
3021 : 0 : _o1[0] = _r2;
3022 : : }
3023 : 0 : {
3024 : 0 : tree _o2[1], _r2;
3025 : 0 : _o2[0] = captures[4];
3026 : 0 : if (TREE_TYPE (_o2[0]) != utype)
3027 : : {
3028 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
3029 : : }
3030 : : else
3031 : : _r2 = _o2[0];
3032 : 0 : _o1[1] = _r2;
3033 : : }
3034 : 0 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3035 : 0 : res_op0 = _r1;
3036 : : }
3037 : 0 : tree _r;
3038 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3039 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 629, __FILE__, __LINE__, true);
3040 : 0 : return _r;
3041 : : }
3042 : 0 : next_after_fail865:;
3043 : : }
3044 : : }
3045 : : }
3046 : : else
3047 : : {
3048 : 19577523 : if (FLOAT_TYPE_P (type)
3049 : 19694851 : && DECIMAL_FLOAT_TYPE_P (TREE_TYPE (captures[0]))
3050 : 58664 : == DECIMAL_FLOAT_TYPE_P (type)
3051 : : )
3052 : : {
3053 : 58626 : {
3054 : 58626 : tree arg0 = strip_float_extensions (captures[2]);
3055 : 58626 : tree arg1 = strip_float_extensions (captures[4]);
3056 : 58626 : tree itype = TREE_TYPE (captures[0]);
3057 : 58626 : tree ty1 = TREE_TYPE (arg0);
3058 : 58626 : tree ty2 = TREE_TYPE (arg1);
3059 : 58626 : enum tree_code code = TREE_CODE (itype);
3060 : 0 : if (FLOAT_TYPE_P (ty1)
3061 : 58626 : && FLOAT_TYPE_P (ty2)
3062 : : )
3063 : : {
3064 : 58626 : {
3065 : 58626 : tree newtype = type;
3066 : 58626 : if (TYPE_MODE (ty1) == SDmode
3067 : 58358 : || TYPE_MODE (ty2) == SDmode
3068 : 116984 : || TYPE_MODE (type) == SDmode)
3069 : 283 : newtype = dfloat32_type_node;
3070 : 58626 : if (TYPE_MODE (ty1) == DDmode
3071 : 58480 : || TYPE_MODE (ty2) == DDmode
3072 : 116979 : || TYPE_MODE (type) == DDmode)
3073 : 275 : newtype = dfloat64_type_node;
3074 : 58626 : if (TYPE_MODE (ty1) == TDmode
3075 : 58625 : || TYPE_MODE (ty2) == TDmode
3076 : 116999 : || TYPE_MODE (type) == TDmode)
3077 : 268 : newtype = dfloat128_type_node;
3078 : 58626 : if ((newtype == dfloat32_type_node
3079 : 58622 : || newtype == dfloat64_type_node
3080 : 58479 : || newtype == dfloat128_type_node)
3081 : 415 : && newtype == type
3082 : 58637 : && types_match (newtype, type)
3083 : : )
3084 : : {
3085 : 11 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail866;
3086 : 5 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail866;
3087 : 5 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail866;
3088 : 5 : {
3089 : 5 : tree res_op0;
3090 : 5 : {
3091 : 5 : tree _o1[1], _r1;
3092 : 5 : _o1[0] = captures[2];
3093 : 5 : if (TREE_TYPE (_o1[0]) != newtype)
3094 : : {
3095 : 5 : _r1 = fold_build1_loc (loc, NOP_EXPR, newtype, _o1[0]);
3096 : : }
3097 : : else
3098 : : _r1 = _o1[0];
3099 : 5 : res_op0 = _r1;
3100 : : }
3101 : 5 : tree res_op1;
3102 : 5 : {
3103 : 5 : tree _o1[1], _r1;
3104 : 5 : _o1[0] = captures[4];
3105 : 5 : if (TREE_TYPE (_o1[0]) != newtype)
3106 : : {
3107 : 5 : _r1 = fold_build1_loc (loc, NOP_EXPR, newtype, _o1[0]);
3108 : : }
3109 : : else
3110 : : _r1 = _o1[0];
3111 : 5 : res_op1 = _r1;
3112 : : }
3113 : 5 : tree _r;
3114 : 5 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
3115 : 5 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 630, __FILE__, __LINE__, true);
3116 : 5 : return _r;
3117 : : }
3118 : : next_after_fail866:;
3119 : : }
3120 : : else
3121 : : {
3122 : 58615 : {
3123 : 58615 : if (element_precision (ty1) > element_precision (newtype))
3124 : 14835 : newtype = ty1;
3125 : 58615 : if (element_precision (ty2) > element_precision (newtype))
3126 : 5623 : newtype = ty2;
3127 : 58615 : if (element_precision (newtype) < element_precision (itype)
3128 : 18010 : && (!VECTOR_MODE_P (TYPE_MODE (newtype))
3129 : 0 : || target_supports_op_p (newtype, op, optab_default))
3130 : 18010 : && (flag_unsafe_math_optimizations
3131 : 18002 : || (element_precision (newtype) == element_precision (type)
3132 : 17973 : && real_can_shorten_arithmetic (element_mode (itype),
3133 : : element_mode (type))
3134 : 6238 : && !excess_precision_type (newtype)))
3135 : 58763 : && !types_match (itype, newtype)
3136 : : )
3137 : : {
3138 : 148 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail867;
3139 : 147 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail867;
3140 : 132 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail867;
3141 : 132 : {
3142 : 132 : tree res_op0;
3143 : 132 : {
3144 : 132 : tree _o1[2], _r1;
3145 : 132 : {
3146 : 132 : tree _o2[1], _r2;
3147 : 132 : _o2[0] = captures[2];
3148 : 132 : if (TREE_TYPE (_o2[0]) != newtype)
3149 : : {
3150 : 132 : _r2 = fold_build1_loc (loc, NOP_EXPR, newtype, _o2[0]);
3151 : : }
3152 : : else
3153 : : _r2 = _o2[0];
3154 : 132 : _o1[0] = _r2;
3155 : : }
3156 : 132 : {
3157 : 132 : tree _o2[1], _r2;
3158 : 132 : _o2[0] = captures[4];
3159 : 132 : if (TREE_TYPE (_o2[0]) != newtype)
3160 : : {
3161 : 132 : _r2 = fold_build1_loc (loc, NOP_EXPR, newtype, _o2[0]);
3162 : : }
3163 : : else
3164 : : _r2 = _o2[0];
3165 : 132 : _o1[1] = _r2;
3166 : : }
3167 : 132 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3168 : 132 : res_op0 = _r1;
3169 : : }
3170 : 132 : tree _r;
3171 : 132 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3172 : 132 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 631, __FILE__, __LINE__, true);
3173 : 132 : return _r;
3174 : : }
3175 : : next_after_fail867:;
3176 : : }
3177 : : }
3178 : : }
3179 : : }
3180 : : }
3181 : : }
3182 : : }
3183 : : }
3184 : : return NULL_TREE;
3185 : : }
3186 : :
3187 : : tree
3188 : 1725 : generic_simplify_417 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3189 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3190 : : {
3191 : 1725 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3192 : 1725 : {
3193 : 1725 : bool wascmp;
3194 : 1725 : if (bitwise_inverted_equal_p (captures[0], captures[2], wascmp)
3195 : 1725 : || bitwise_inverted_equal_p (captures[1], captures[2], wascmp)
3196 : : )
3197 : : {
3198 : 8 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail897;
3199 : 8 : {
3200 : 8 : tree _r;
3201 : 8 : _r = wascmp ? constant_boolean_node (false, type) : build_zero_cst (type);
3202 : 8 : if (TREE_SIDE_EFFECTS (captures[0]))
3203 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
3204 : 8 : if (TREE_SIDE_EFFECTS (captures[1]))
3205 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3206 : 8 : if (TREE_SIDE_EFFECTS (captures[2]))
3207 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3208 : 8 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 660, __FILE__, __LINE__, true);
3209 : 8 : return _r;
3210 : : }
3211 : 0 : next_after_fail897:;
3212 : : }
3213 : : }
3214 : 1717 : return NULL_TREE;
3215 : : }
3216 : :
3217 : : tree
3218 : 234 : generic_simplify_424 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3219 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3220 : : const combined_fn ARG_UNUSED (bswap))
3221 : : {
3222 : 234 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3223 : 234 : if (BITS_PER_UNIT == 8
3224 : 234 : && tree_fits_uhwi_p (captures[3])
3225 : 234 : && tree_fits_uhwi_p (captures[4])
3226 : : )
3227 : : {
3228 : 234 : {
3229 : 234 : unsigned HOST_WIDE_INT prec = TYPE_PRECISION (TREE_TYPE (captures[1]));
3230 : 234 : unsigned HOST_WIDE_INT bits = tree_to_uhwi (captures[3]);
3231 : 234 : unsigned HOST_WIDE_INT mask = tree_to_uhwi (captures[4]);
3232 : 234 : unsigned HOST_WIDE_INT lo = bits & 7;
3233 : 234 : unsigned HOST_WIDE_INT hi = bits - lo;
3234 : 234 : if (bits < prec
3235 : 234 : && mask < (256u>>lo)
3236 : 468 : && bits < TYPE_PRECISION (TREE_TYPE(captures[0]))
3237 : : )
3238 : : {
3239 : 234 : {
3240 : 234 : unsigned HOST_WIDE_INT ns = (prec - (hi + 8)) + lo;
3241 : 234 : if (ns == 0
3242 : : )
3243 : : {
3244 : 1 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail908;
3245 : 1 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail908;
3246 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail908;
3247 : 1 : {
3248 : 1 : tree res_op0;
3249 : 1 : {
3250 : 1 : tree _o1[1], _r1;
3251 : 1 : _o1[0] = captures[2];
3252 : 1 : if (TREE_TYPE (_o1[0]) != type)
3253 : : {
3254 : 1 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
3255 : : }
3256 : : else
3257 : : _r1 = _o1[0];
3258 : 1 : res_op0 = _r1;
3259 : : }
3260 : 1 : tree res_op1;
3261 : 1 : res_op1 = captures[4];
3262 : 1 : tree _r;
3263 : 1 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
3264 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 667, __FILE__, __LINE__, true);
3265 : 1 : return _r;
3266 : : }
3267 : : next_after_fail908:;
3268 : : }
3269 : : else
3270 : : {
3271 : 233 : {
3272 : 233 : tree utype = unsigned_type_for (TREE_TYPE (captures[2]));
3273 : 233 : tree nst = build_int_cst (integer_type_node, ns);
3274 : 233 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail909;
3275 : 233 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail909;
3276 : 233 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail909;
3277 : 233 : {
3278 : 233 : tree res_op0;
3279 : 233 : {
3280 : 233 : tree _o1[1], _r1;
3281 : 233 : {
3282 : 233 : tree _o2[2], _r2;
3283 : 233 : {
3284 : 233 : tree _o3[1], _r3;
3285 : 233 : _o3[0] = captures[2];
3286 : 233 : if (TREE_TYPE (_o3[0]) != utype)
3287 : : {
3288 : 0 : _r3 = fold_build1_loc (loc, NOP_EXPR, utype, _o3[0]);
3289 : : }
3290 : : else
3291 : : _r3 = _o3[0];
3292 : 233 : _o2[0] = _r3;
3293 : : }
3294 : 233 : _o2[1] = nst;
3295 : 233 : _r2 = fold_build2_loc (loc, RSHIFT_EXPR, utype, _o2[0], _o2[1]);
3296 : 233 : _o1[0] = _r2;
3297 : : }
3298 : 233 : if (TREE_TYPE (_o1[0]) != type)
3299 : : {
3300 : 101 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
3301 : : }
3302 : : else
3303 : : _r1 = _o1[0];
3304 : 233 : res_op0 = _r1;
3305 : : }
3306 : 233 : tree res_op1;
3307 : 233 : res_op1 = captures[4];
3308 : 233 : tree _r;
3309 : 233 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
3310 : 233 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 668, __FILE__, __LINE__, true);
3311 : 233 : return _r;
3312 : : }
3313 : : next_after_fail909:;
3314 : : }
3315 : : }
3316 : : }
3317 : : }
3318 : : }
3319 : : }
3320 : : return NULL_TREE;
3321 : : }
3322 : :
3323 : : tree
3324 : 0 : generic_simplify_439 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3325 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3326 : : {
3327 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3328 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail958;
3329 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail958;
3330 : 0 : {
3331 : 0 : tree _r;
3332 : 0 : _r = captures[2];
3333 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
3334 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3335 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 689, __FILE__, __LINE__, true);
3336 : : return _r;
3337 : : }
3338 : : next_after_fail958:;
3339 : : return NULL_TREE;
3340 : : }
3341 : :
3342 : : tree
3343 : 46478 : generic_simplify_441 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3344 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3345 : : const enum tree_code ARG_UNUSED (shift))
3346 : : {
3347 : 46478 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3348 : 46478 : if (tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
3349 : 46478 : && TYPE_PRECISION (type) <= HOST_BITS_PER_WIDE_INT
3350 : 46478 : && tree_fits_uhwi_p (captures[4])
3351 : 46478 : && tree_to_uhwi (captures[4]) > 0
3352 : 92955 : && tree_to_uhwi (captures[4]) < TYPE_PRECISION (type)
3353 : : )
3354 : : {
3355 : 46477 : {
3356 : 46477 : unsigned int shiftc = tree_to_uhwi (captures[4]);
3357 : 46477 : unsigned HOST_WIDE_INT mask = TREE_INT_CST_LOW (captures[5]);
3358 : 46477 : unsigned HOST_WIDE_INT newmask, zerobits = 0;
3359 : 46477 : tree shift_type = TREE_TYPE (captures[2]);
3360 : 46477 : unsigned int prec;
3361 : 46477 : if (shift == LSHIFT_EXPR)
3362 : 4300 : zerobits = ((HOST_WIDE_INT_1U << shiftc) - 1);
3363 : 42177 : else if (shift == RSHIFT_EXPR
3364 : 42177 : && type_has_mode_precision_p (shift_type))
3365 : : {
3366 : 42177 : prec = TYPE_PRECISION (TREE_TYPE (captures[2]));
3367 : 42177 : tree arg00 = captures[3];
3368 : 42177 : if (captures[2] != captures[3]
3369 : 42177 : && TYPE_UNSIGNED (TREE_TYPE (captures[3])))
3370 : : {
3371 : 41919 : tree inner_type = TREE_TYPE (captures[3]);
3372 : 41919 : if (type_has_mode_precision_p (inner_type)
3373 : 41919 : && TYPE_PRECISION (inner_type) < prec)
3374 : : {
3375 : 67 : prec = TYPE_PRECISION (inner_type);
3376 : 67 : if (shiftc < prec)
3377 : 66 : shift_type = inner_type;
3378 : : }
3379 : : }
3380 : 42177 : zerobits = HOST_WIDE_INT_M1U;
3381 : 42177 : if (shiftc < prec)
3382 : : {
3383 : 42176 : zerobits >>= HOST_BITS_PER_WIDE_INT - shiftc;
3384 : 42176 : zerobits <<= prec - shiftc;
3385 : : }
3386 : 42177 : if (!TYPE_UNSIGNED (TREE_TYPE (captures[2]))
3387 : 42177 : && prec == TYPE_PRECISION (TREE_TYPE (captures[2])))
3388 : : {
3389 : 820 : if ((mask & zerobits) == 0)
3390 : 813 : shift_type = unsigned_type_for (TREE_TYPE (captures[2]));
3391 : : else
3392 : : zerobits = 0;
3393 : : }
3394 : : }
3395 : 46470 : if ((mask & zerobits) == mask
3396 : : )
3397 : : {
3398 : 1 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail960;
3399 : 1 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail960;
3400 : 1 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail960;
3401 : 1 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail960;
3402 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail960;
3403 : 1 : {
3404 : 1 : tree _r;
3405 : 1 : _r = build_int_cst (type, 0);
3406 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 664, __FILE__, __LINE__, true);
3407 : 1 : return _r;
3408 : : }
3409 : : next_after_fail960:;
3410 : : }
3411 : : else
3412 : : {
3413 : 46476 : {
3414 : 46476 : newmask = mask | zerobits;
3415 : 46476 : if (newmask != mask && (newmask & (newmask + 1)) == 0
3416 : : )
3417 : : {
3418 : : {
3419 : 6720 : for (prec = BITS_PER_UNIT;
3420 : 10073 : prec < HOST_BITS_PER_WIDE_INT; prec <<= 1)
3421 : 8077 : if (newmask == (HOST_WIDE_INT_1U << prec) - 1)
3422 : : break;
3423 : 3353 : if (prec < HOST_BITS_PER_WIDE_INT
3424 : 1996 : || newmask == HOST_WIDE_INT_M1U
3425 : : )
3426 : : {
3427 : 1749 : {
3428 : 1749 : tree newmaskt = build_int_cst_type (TREE_TYPE (captures[5]), newmask);
3429 : 1749 : if (!tree_int_cst_equal (newmaskt, captures[5])
3430 : : )
3431 : : {
3432 : 1749 : if (shift_type != TREE_TYPE (captures[2])
3433 : : )
3434 : : {
3435 : 47 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail961;
3436 : 47 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail961;
3437 : 47 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail961;
3438 : 47 : {
3439 : 47 : tree res_op0;
3440 : 47 : {
3441 : 47 : tree _o1[1], _r1;
3442 : 47 : {
3443 : 47 : tree _o2[2], _r2;
3444 : 47 : {
3445 : 47 : tree _o3[1], _r3;
3446 : 47 : _o3[0] = captures[2];
3447 : 47 : if (TREE_TYPE (_o3[0]) != shift_type)
3448 : : {
3449 : 47 : _r3 = fold_build1_loc (loc, NOP_EXPR, shift_type, _o3[0]);
3450 : : }
3451 : : else
3452 : : _r3 = _o3[0];
3453 : 47 : _o2[0] = _r3;
3454 : : }
3455 : 47 : _o2[1] = captures[4];
3456 : 47 : _r2 = fold_build2_loc (loc, shift, shift_type, _o2[0], _o2[1]);
3457 : 47 : _o1[0] = _r2;
3458 : : }
3459 : 47 : if (TREE_TYPE (_o1[0]) != type)
3460 : : {
3461 : 47 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
3462 : : }
3463 : : else
3464 : : _r1 = _o1[0];
3465 : 47 : res_op0 = _r1;
3466 : : }
3467 : 47 : tree res_op1;
3468 : 47 : res_op1 = newmaskt;
3469 : 47 : tree _r;
3470 : 47 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
3471 : 47 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 665, __FILE__, __LINE__, true);
3472 : 47 : return _r;
3473 : : }
3474 : : next_after_fail961:;
3475 : : }
3476 : : else
3477 : : {
3478 : 1702 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail962;
3479 : 823 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail962;
3480 : 823 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail962;
3481 : 823 : {
3482 : 823 : tree res_op0;
3483 : 823 : res_op0 = captures[0];
3484 : 823 : tree res_op1;
3485 : 823 : res_op1 = newmaskt;
3486 : 823 : tree _r;
3487 : 823 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
3488 : 823 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 666, __FILE__, __LINE__, true);
3489 : 823 : return _r;
3490 : : }
3491 : : next_after_fail962:;
3492 : : }
3493 : : }
3494 : : }
3495 : : }
3496 : : }
3497 : : }
3498 : : }
3499 : : }
3500 : : }
3501 : : }
3502 : : return NULL_TREE;
3503 : : }
3504 : :
3505 : : tree
3506 : 38126 : generic_simplify_462 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3507 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
3508 : : {
3509 : 38126 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3510 : 38126 : if (!HONOR_SIGN_DEPENDENT_ROUNDING (type)
3511 : 38126 : && !HONOR_SIGNED_ZEROS (type)
3512 : : )
3513 : : {
3514 : 38126 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail987;
3515 : 38126 : {
3516 : 38126 : tree res_op0;
3517 : 38126 : {
3518 : 38126 : tree _o1[1], _r1;
3519 : 38126 : _o1[0] = captures[1];
3520 : 38126 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
3521 : 38126 : res_op0 = _r1;
3522 : : }
3523 : 38126 : tree res_op1;
3524 : 38126 : res_op1 = captures[0];
3525 : 38126 : tree _r;
3526 : 38126 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
3527 : 38126 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 709, __FILE__, __LINE__, true);
3528 : 38126 : return _r;
3529 : : }
3530 : 0 : next_after_fail987:;
3531 : : }
3532 : : return NULL_TREE;
3533 : : }
3534 : :
3535 : : tree
3536 : 1698 : generic_simplify_468 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3537 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
3538 : : {
3539 : 1698 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3540 : 1698 : if (INTEGRAL_TYPE_P (type)
3541 : : )
3542 : : {
3543 : 1698 : {
3544 : 1698 : tree itype = TREE_TYPE (captures[2]);
3545 : 1698 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail994;
3546 : 1698 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail994;
3547 : 1698 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail994;
3548 : 1698 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail994;
3549 : 1698 : {
3550 : 1698 : tree res_op0;
3551 : 1698 : {
3552 : 1698 : tree _o1[2], _r1;
3553 : 1698 : _o1[0] = captures[2];
3554 : 1698 : {
3555 : 1698 : tree _o2[1], _r2;
3556 : 1698 : _o2[0] = captures[0];
3557 : 1698 : if (TREE_TYPE (_o2[0]) != itype)
3558 : : {
3559 : 1697 : _r2 = fold_build1_loc (loc, NOP_EXPR, itype, _o2[0]);
3560 : : }
3561 : : else
3562 : : _r2 = _o2[0];
3563 : 1698 : _o1[1] = _r2;
3564 : : }
3565 : 1698 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3566 : 1698 : res_op0 = _r1;
3567 : : }
3568 : 1698 : tree _r;
3569 : 1698 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3570 : 1698 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 716, __FILE__, __LINE__, true);
3571 : 1698 : return _r;
3572 : : }
3573 : : next_after_fail994:;
3574 : : }
3575 : : }
3576 : : return NULL_TREE;
3577 : : }
3578 : :
3579 : : tree
3580 : 3 : generic_simplify_481 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3581 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
3582 : : const enum tree_code ARG_UNUSED (op))
3583 : : {
3584 : 3 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3585 : 3 : if (INTEGRAL_TYPE_P (type)
3586 : 3 : && TYPE_PRECISION (type) > 1
3587 : 6 : && (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])))
3588 : : )
3589 : : {
3590 : 3 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1012;
3591 : 3 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1012;
3592 : 3 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1012;
3593 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1012;
3594 : 3 : {
3595 : 3 : tree res_op0;
3596 : 3 : {
3597 : 3 : tree _o1[2], _r1;
3598 : 3 : {
3599 : 3 : tree _o2[1], _r2;
3600 : 3 : _o2[0] = captures[0];
3601 : 3 : if (TREE_TYPE (_o2[0]) != type)
3602 : : {
3603 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, type, _o2[0]);
3604 : : }
3605 : : else
3606 : : _r2 = _o2[0];
3607 : 3 : _o1[0] = _r2;
3608 : : }
3609 : 3 : _o1[1] = captures[2];
3610 : 3 : _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3611 : 3 : res_op0 = _r1;
3612 : : }
3613 : 3 : tree res_op1;
3614 : 3 : res_op1 = captures[1];
3615 : 3 : tree _r;
3616 : 3 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
3617 : 3 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 733, __FILE__, __LINE__, true);
3618 : 3 : return _r;
3619 : : }
3620 : : next_after_fail1012:;
3621 : : }
3622 : : return NULL_TREE;
3623 : : }
3624 : :
3625 : : tree
3626 : 0 : generic_simplify_492 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3627 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
3628 : : const combined_fn ARG_UNUSED (func))
3629 : : {
3630 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3631 : 0 : if (wi::to_widest (captures[4]) == TYPE_PRECISION (TREE_TYPE (captures[3])) - 1
3632 : : )
3633 : : {
3634 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1024;
3635 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1024;
3636 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1024;
3637 : 0 : {
3638 : 0 : tree _r;
3639 : 0 : _r = captures[2];
3640 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
3641 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3642 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 745, __FILE__, __LINE__, true);
3643 : 0 : return _r;
3644 : : }
3645 : : next_after_fail1024:;
3646 : : }
3647 : : return NULL_TREE;
3648 : : }
3649 : :
3650 : : tree
3651 : 2 : generic_simplify_500 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3652 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3653 : : {
3654 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3655 : 2 : if (TREE_CODE (type) != COMPLEX_TYPE
3656 : 2 : && (! ANY_INTEGRAL_TYPE_P (type)
3657 : 1 : || TYPE_OVERFLOW_UNDEFINED (type))
3658 : : )
3659 : : {
3660 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1034;
3661 : 2 : {
3662 : 2 : tree res_op0;
3663 : 2 : {
3664 : 2 : tree _o1[1], _r1;
3665 : 2 : _o1[0] = captures[0];
3666 : 2 : _r1 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
3667 : 2 : res_op0 = _r1;
3668 : : }
3669 : 2 : tree _r;
3670 : 2 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
3671 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 753, __FILE__, __LINE__, true);
3672 : 2 : return _r;
3673 : : }
3674 : 0 : next_after_fail1034:;
3675 : : }
3676 : : return NULL_TREE;
3677 : : }
3678 : :
3679 : : tree
3680 : 5 : generic_simplify_506 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3681 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3682 : : const enum tree_code ARG_UNUSED (op),
3683 : : const enum tree_code ARG_UNUSED (logic))
3684 : : {
3685 : 5 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3686 : 5 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1052;
3687 : 5 : {
3688 : 5 : tree res_op0;
3689 : 5 : res_op0 = captures[0];
3690 : 5 : tree res_op1;
3691 : 5 : res_op1 = captures[1];
3692 : 5 : tree _r;
3693 : 5 : _r = fold_build2_loc (loc, logic, type, res_op0, res_op1);
3694 : 5 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 759, __FILE__, __LINE__, true);
3695 : : return _r;
3696 : : }
3697 : 0 : next_after_fail1052:;
3698 : 0 : return NULL_TREE;
3699 : : }
3700 : :
3701 : : tree
3702 : 0 : generic_simplify_510 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3703 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3704 : : const combined_fn ARG_UNUSED (minmax))
3705 : : {
3706 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3707 : 0 : if (real_isnan (TREE_REAL_CST_PTR (captures[1]))
3708 : 0 : && (!HONOR_SNANS (captures[1]) || !TREE_REAL_CST (captures[1]).signalling)
3709 : 0 : && !tree_expr_maybe_signaling_nan_p (captures[0])
3710 : : )
3711 : : {
3712 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1056;
3713 : 0 : {
3714 : 0 : tree _r;
3715 : 0 : _r = captures[0];
3716 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
3717 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3718 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 763, __FILE__, __LINE__, true);
3719 : 0 : return _r;
3720 : : }
3721 : 0 : next_after_fail1056:;
3722 : : }
3723 : : return NULL_TREE;
3724 : : }
3725 : :
3726 : : tree
3727 : 0 : generic_simplify_516 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3728 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
3729 : : {
3730 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3731 : 0 : if (tree_nop_conversion_p (TREE_TYPE (captures[0]), type)
3732 : : )
3733 : : {
3734 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1065;
3735 : 0 : {
3736 : 0 : tree res_op0;
3737 : 0 : res_op0 = captures[0];
3738 : 0 : tree _r;
3739 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3740 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 772, __FILE__, __LINE__, true);
3741 : 0 : return _r;
3742 : : }
3743 : 0 : next_after_fail1065:;
3744 : : }
3745 : : return NULL_TREE;
3746 : : }
3747 : :
3748 : : tree
3749 : 0 : generic_simplify_525 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3750 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
3751 : : const combined_fn ARG_UNUSED (cond_op))
3752 : : {
3753 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3754 : 0 : {
3755 : 0 : tree op_type = TREE_TYPE (captures[3]);
3756 : 0 : if (element_precision (type) == element_precision (op_type)
3757 : : )
3758 : : {
3759 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1074;
3760 : 0 : {
3761 : 0 : tree res_op0;
3762 : 0 : {
3763 : 0 : tree _o1[4], _r1;
3764 : 0 : _o1[0] = captures[0];
3765 : 0 : _o1[1] = captures[1];
3766 : 0 : _o1[2] = captures[2];
3767 : 0 : {
3768 : 0 : tree _o2[1], _r2;
3769 : 0 : _o2[0] = captures[4];
3770 : 0 : if (TREE_TYPE (_o2[0]) != op_type)
3771 : : {
3772 : 0 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, op_type, _o2[0]);
3773 : : }
3774 : : else
3775 : : _r2 = _o2[0];
3776 : 0 : _o1[3] = _r2;
3777 : : }
3778 : 0 : _r1 = maybe_build_call_expr_loc (loc, cond_op, TREE_TYPE (_o1[1]), 4, _o1[0], _o1[1], _o1[2], _o1[3]);
3779 : 0 : if (!_r1)
3780 : 0 : goto next_after_fail1074;
3781 : 0 : res_op0 = _r1;
3782 : : }
3783 : 0 : tree _r;
3784 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
3785 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
3786 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
3787 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 776, __FILE__, __LINE__, true);
3788 : 0 : return _r;
3789 : : }
3790 : : next_after_fail1074:;
3791 : : }
3792 : : }
3793 : : return NULL_TREE;
3794 : : }
3795 : :
3796 : : tree
3797 : 0 : generic_simplify_534 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3798 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
3799 : : const combined_fn ARG_UNUSED (cond_op))
3800 : : {
3801 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3802 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1083;
3803 : 0 : {
3804 : 0 : tree res_op0;
3805 : 0 : {
3806 : 0 : tree _o1[2], _r1;
3807 : 0 : _o1[0] = captures[2];
3808 : 0 : _o1[1] = captures[0];
3809 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3810 : 0 : res_op0 = _r1;
3811 : : }
3812 : 0 : tree res_op1;
3813 : 0 : res_op1 = captures[3];
3814 : 0 : tree res_op2;
3815 : 0 : res_op2 = captures[4];
3816 : 0 : tree res_op3;
3817 : 0 : res_op3 = captures[5];
3818 : 0 : tree res_op4;
3819 : 0 : res_op4 = captures[6];
3820 : 0 : tree _r;
3821 : 0 : _r = maybe_build_call_expr_loc (loc, cond_op, type, 5, res_op0, res_op1, res_op2, res_op3, res_op4);
3822 : 0 : if (!_r)
3823 : 0 : goto next_after_fail1083;
3824 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 785, __FILE__, __LINE__, true);
3825 : : return _r;
3826 : : }
3827 : : next_after_fail1083:;
3828 : : return NULL_TREE;
3829 : : }
3830 : :
3831 : : tree
3832 : 0 : generic_simplify_545 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3833 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
3834 : : const combined_fn ARG_UNUSED (sinhs),
3835 : : const combined_fn ARG_UNUSED (atanhs),
3836 : : const combined_fn ARG_UNUSED (sqrts))
3837 : : {
3838 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3839 : 0 : if (!flag_errno_math
3840 : : )
3841 : : {
3842 : 0 : {
3843 : 0 : tree t_one = build_one_cst (type);
3844 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1094;
3845 : 0 : {
3846 : 0 : if (! tree_invariant_p (captures[1])) goto next_after_fail1094;
3847 : 0 : tree res_op0;
3848 : 0 : res_op0 = unshare_expr (captures[1]);
3849 : 0 : tree res_op1;
3850 : 0 : {
3851 : 0 : tree _o1[1], _r1;
3852 : 0 : {
3853 : 0 : tree _o2[2], _r2;
3854 : 0 : {
3855 : 0 : tree _o3[2], _r3;
3856 : 0 : _o3[0] = t_one;
3857 : 0 : _o3[1] = unshare_expr (captures[1]);
3858 : 0 : _r3 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
3859 : 0 : _o2[0] = _r3;
3860 : : }
3861 : 0 : {
3862 : 0 : tree _o3[2], _r3;
3863 : 0 : _o3[0] = t_one;
3864 : 0 : _o3[1] = captures[1];
3865 : 0 : _r3 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
3866 : 0 : _o2[1] = _r3;
3867 : : }
3868 : 0 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
3869 : 0 : _o1[0] = _r2;
3870 : : }
3871 : 0 : _r1 = maybe_build_call_expr_loc (loc, sqrts, TREE_TYPE (_o1[0]), 1, _o1[0]);
3872 : 0 : if (!_r1)
3873 : 0 : goto next_after_fail1094;
3874 : 0 : res_op1 = _r1;
3875 : : }
3876 : 0 : tree _r;
3877 : 0 : _r = fold_build2_loc (loc, RDIV_EXPR, type, res_op0, res_op1);
3878 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 796, __FILE__, __LINE__, true);
3879 : 0 : return _r;
3880 : : }
3881 : : next_after_fail1094:;
3882 : : }
3883 : : }
3884 : : return NULL_TREE;
3885 : : }
3886 : :
3887 : : tree
3888 : 0 : generic_simplify_564 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3889 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
3890 : : const combined_fn ARG_UNUSED (fmas))
3891 : : {
3892 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3893 : 0 : if (canonicalize_math_after_vectorization_p ()
3894 : : )
3895 : : {
3896 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1113;
3897 : : {
3898 : : tree res_op0;
3899 : : res_op0 = captures[0];
3900 : : tree res_op1;
3901 : : res_op1 = captures[1];
3902 : : tree res_op2;
3903 : : res_op2 = captures[2];
3904 : : tree _r;
3905 : : _r = maybe_build_call_expr_loc (loc, CFN_FMS, type, 3, res_op0, res_op1, res_op2);
3906 : : if (!_r)
3907 : : goto next_after_fail1113;
3908 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 815, __FILE__, __LINE__, true);
3909 : : return _r;
3910 : : }
3911 : 0 : next_after_fail1113:;
3912 : : }
3913 : 0 : return NULL_TREE;
3914 : : }
3915 : :
3916 : : tree
3917 : 0 : generic_simplify_574 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3918 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
3919 : : const combined_fn ARG_UNUSED (ctz))
3920 : : {
3921 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3922 : 0 : {
3923 : 0 : tree t = TREE_TYPE (captures[0]);
3924 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1123;
3925 : 0 : {
3926 : 0 : tree res_op0;
3927 : 0 : {
3928 : 0 : tree _o1[1], _r1;
3929 : 0 : _o1[0] = captures[1];
3930 : 0 : if (TREE_TYPE (_o1[0]) != t)
3931 : : {
3932 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, t, _o1[0]);
3933 : : }
3934 : : else
3935 : : _r1 = _o1[0];
3936 : 0 : res_op0 = _r1;
3937 : : }
3938 : 0 : tree _r;
3939 : 0 : _r = maybe_build_call_expr_loc (loc, ctz, type, 1, res_op0);
3940 : 0 : if (!_r)
3941 : 0 : goto next_after_fail1123;
3942 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 822, __FILE__, __LINE__, true);
3943 : : return _r;
3944 : : }
3945 : : next_after_fail1123:;
3946 : : }
3947 : : return NULL_TREE;
3948 : : }
3949 : :
3950 : : tree
3951 : 0 : generic_simplify_584 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3952 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
3953 : : const enum tree_code ARG_UNUSED (rot),
3954 : : const combined_fn ARG_UNUSED (parity))
3955 : : {
3956 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3957 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
3958 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
3959 : 0 : && (
3960 : :
3961 : 0 : || !TREE_SIDE_EFFECTS (captures[3]))
3962 : 0 : && TYPE_PRECISION (TREE_TYPE (captures[0]))
3963 : 0 : >= TYPE_PRECISION (TREE_TYPE (captures[1]))
3964 : : )
3965 : : {
3966 : 0 : {
3967 : 0 : tree type0 = TREE_TYPE (captures[0]);
3968 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1134;
3969 : 0 : {
3970 : 0 : tree res_op0;
3971 : 0 : {
3972 : 0 : tree _o1[1], _r1;
3973 : 0 : _o1[0] = captures[2];
3974 : 0 : if (TREE_TYPE (_o1[0]) != type0)
3975 : : {
3976 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type0, _o1[0]);
3977 : : }
3978 : : else
3979 : : _r1 = _o1[0];
3980 : 0 : res_op0 = _r1;
3981 : : }
3982 : 0 : tree _r;
3983 : 0 : _r = maybe_build_call_expr_loc (loc, parity, type, 1, res_op0);
3984 : 0 : if (!_r)
3985 : 0 : goto next_after_fail1134;
3986 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
3987 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
3988 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 829, __FILE__, __LINE__, true);
3989 : 0 : return _r;
3990 : : }
3991 : : next_after_fail1134:;
3992 : : }
3993 : : }
3994 : : return NULL_TREE;
3995 : : }
3996 : :
3997 : : tree
3998 : 454673617 : generic_simplify_VIEW_CONVERT_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0)
3999 : : {
4000 : 454673617 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4001 : 454673617 : {
4002 : 454673617 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4003 : 909347234 : if ((
4004 : :
4005 : : && useless_type_conversion_p (type, TREE_TYPE (captures[0])))
4006 : : || (
4007 : : 1
4008 : 454673617 : && type == TREE_TYPE (captures[0]))
4009 : : )
4010 : : {
4011 : 200380222 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1191;
4012 : 200380222 : {
4013 : 200380222 : tree _r;
4014 : 200380222 : _r = captures[0];
4015 : 200380222 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 844, __FILE__, __LINE__, true);
4016 : 200380222 : return _r;
4017 : : }
4018 : 0 : next_after_fail1191:;
4019 : : }
4020 : : }
4021 : 254293395 : switch (TREE_CODE (_p0))
4022 : : {
4023 : 28068523 : case VIEW_CONVERT_EXPR:
4024 : 28068523 : {
4025 : 28068523 : tree _q20 = TREE_OPERAND (_p0, 0);
4026 : 28068523 : {
4027 : 28068523 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
4028 : 28068523 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1192;
4029 : 28068523 : {
4030 : 28068523 : tree res_op0;
4031 : 28068523 : res_op0 = captures[0];
4032 : 28068523 : tree _r;
4033 : 28068523 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
4034 : 28068523 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 875, __FILE__, __LINE__, true);
4035 : 454673617 : return _r;
4036 : : }
4037 : 0 : next_after_fail1192:;
4038 : : }
4039 : 0 : break;
4040 : : }
4041 : 226224872 : default:;
4042 : : }
4043 : 226224872 : {
4044 : 226224872 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4045 : 224481576 : if ((INTEGRAL_TYPE_P (type) || POINTER_TYPE_P (type))
4046 : 2628855 : && (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])) || POINTER_TYPE_P (TREE_TYPE (captures[0])))
4047 : 228599351 : && TYPE_PRECISION (type) == TYPE_PRECISION (TREE_TYPE (captures[0]))
4048 : : )
4049 : : {
4050 : 2043833 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1193;
4051 : 2043833 : {
4052 : 2043833 : tree res_op0;
4053 : 2043833 : res_op0 = captures[0];
4054 : 2043833 : tree _r;
4055 : 2043833 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4056 : 2043833 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 876, __FILE__, __LINE__, true);
4057 : 2043833 : return _r;
4058 : : }
4059 : 0 : next_after_fail1193:;
4060 : : }
4061 : : }
4062 : 224181039 : switch (TREE_CODE (_p0))
4063 : : {
4064 : 3344 : CASE_CONVERT:
4065 : 3344 : {
4066 : 3344 : tree _q20 = TREE_OPERAND (_p0, 0);
4067 : 3344 : {
4068 : 3344 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
4069 : 6688 : if ((INTEGRAL_TYPE_P (TREE_TYPE (captures[0])) || POINTER_TYPE_P (TREE_TYPE (captures[0])))
4070 : 71 : && (INTEGRAL_TYPE_P (TREE_TYPE (captures[1])) || POINTER_TYPE_P (TREE_TYPE (captures[1])))
4071 : 71 : && TYPE_SIZE (TREE_TYPE (captures[0])) == TYPE_SIZE (TREE_TYPE (captures[1]))
4072 : 3344 : && (TYPE_PRECISION (TREE_TYPE (captures[0])) == TYPE_PRECISION (TREE_TYPE (captures[1]))
4073 : 0 : || (TYPE_PRECISION (TREE_TYPE (captures[0])) > TYPE_PRECISION (TREE_TYPE (captures[1]))
4074 : 0 : && TYPE_UNSIGNED (TREE_TYPE (captures[1]))))
4075 : : )
4076 : : {
4077 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1194;
4078 : 0 : {
4079 : 0 : tree res_op0;
4080 : 0 : res_op0 = captures[1];
4081 : 0 : tree _r;
4082 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
4083 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 877, __FILE__, __LINE__, true);
4084 : 0 : return _r;
4085 : : }
4086 : 0 : next_after_fail1194:;
4087 : : }
4088 : : }
4089 : 3344 : break;
4090 : : }
4091 : 82089 : case CONSTRUCTOR:
4092 : 82089 : {
4093 : 82089 : {
4094 : 82089 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4095 : 82089 : {
4096 : 82089 : tree ctor = (TREE_CODE (captures[0]) == SSA_NAME
4097 : : ? gimple_assign_rhs1 (SSA_NAME_DEF_STMT (captures[0])) : captures[0]);
4098 : 82089 : if (CONSTRUCTOR_NELTS (ctor) == 0
4099 : : )
4100 : : {
4101 : 6 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1195;
4102 : 6 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1195;
4103 : 6 : {
4104 : 6 : tree _r;
4105 : 6 : _r = build_zero_cst (type);
4106 : 6 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 878, __FILE__, __LINE__, true);
4107 : 6 : return _r;
4108 : : }
4109 : : next_after_fail1195:;
4110 : : }
4111 : : else
4112 : : {
4113 : 82083 : if (CONSTRUCTOR_NELTS (ctor) == 1
4114 : 40 : && VECTOR_TYPE_P (TREE_TYPE (ctor))
4115 : 82118 : && operand_equal_p (TYPE_SIZE (type),
4116 : 35 : TYPE_SIZE (TREE_TYPE
4117 : : (CONSTRUCTOR_ELT (ctor, 0)->value)))
4118 : : )
4119 : : {
4120 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail1196;
4121 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1196;
4122 : 0 : {
4123 : 0 : tree res_op0;
4124 : 0 : res_op0 = CONSTRUCTOR_ELT (ctor, 0)->value;
4125 : 0 : tree _r;
4126 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
4127 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 879, __FILE__, __LINE__, true);
4128 : 0 : return _r;
4129 : : }
4130 : : next_after_fail1196:;
4131 : : }
4132 : : }
4133 : : }
4134 : : }
4135 : : break;
4136 : : }
4137 : 281523 : case VEC_COND_EXPR:
4138 : 281523 : {
4139 : 281523 : tree _q20 = TREE_OPERAND (_p0, 0);
4140 : 281523 : tree _q21 = TREE_OPERAND (_p0, 1);
4141 : 281523 : tree _q22 = TREE_OPERAND (_p0, 2);
4142 : 281523 : {
4143 : 281523 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22 };
4144 : 281495 : if (VECTOR_TYPE_P (type) && VECTOR_TYPE_P (TREE_TYPE (captures[2]))
4145 : 281866 : && known_eq (TYPE_VECTOR_SUBPARTS (type),
4146 : : TYPE_VECTOR_SUBPARTS (TREE_TYPE (captures[2])))
4147 : 322138 : && tree_nop_conversion_p (TREE_TYPE (type), TREE_TYPE (TREE_TYPE (captures[2])))
4148 : : )
4149 : : {
4150 : 40272 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1197;
4151 : 40272 : {
4152 : 40272 : tree res_op0;
4153 : 40272 : res_op0 = captures[1];
4154 : 40272 : tree res_op1;
4155 : 40272 : {
4156 : 40272 : tree _o1[1], _r1;
4157 : 40272 : _o1[0] = captures[2];
4158 : 40272 : if (TREE_TYPE (_o1[0]) != type)
4159 : : {
4160 : 40272 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
4161 : 40272 : if (EXPR_P (_r1))
4162 : 6 : goto next_after_fail1197;
4163 : : }
4164 : : else
4165 : : _r1 = _o1[0];
4166 : 40266 : res_op1 = _r1;
4167 : : }
4168 : 40266 : tree res_op2;
4169 : 40266 : {
4170 : 40266 : tree _o1[1], _r1;
4171 : 40266 : _o1[0] = captures[3];
4172 : 40266 : if (TREE_TYPE (_o1[0]) != type)
4173 : : {
4174 : 40266 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
4175 : 40266 : if (EXPR_P (_r1))
4176 : 0 : goto next_after_fail1197;
4177 : : }
4178 : : else
4179 : : _r1 = _o1[0];
4180 : 40266 : res_op2 = _r1;
4181 : : }
4182 : 40266 : tree _r;
4183 : 40266 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
4184 : 40266 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 880, __FILE__, __LINE__, true);
4185 : 40266 : return _r;
4186 : : }
4187 : 241257 : next_after_fail1197:;
4188 : : }
4189 : : }
4190 : 241257 : break;
4191 : : }
4192 : : default:;
4193 : : }
4194 : : return NULL_TREE;
4195 : : }
4196 : :
4197 : : tree
4198 : 1395499862 : generic_simplify (location_t loc, enum tree_code code, const tree type ATTRIBUTE_UNUSED, tree _p0)
4199 : : {
4200 : 1395499862 : switch (code)
4201 : : {
4202 : 2643919 : case ABS_EXPR:
4203 : 2643919 : return generic_simplify_ABS_EXPR (loc, code, type, _p0);
4204 : 584481186 : CASE_CONVERT:
4205 : 584481186 : return generic_simplify_CONVERT_EXPR (loc, code, type, _p0);
4206 : 2705442 : case BIT_NOT_EXPR:
4207 : 2705442 : return generic_simplify_BIT_NOT_EXPR (loc, code, type, _p0);
4208 : 939 : case ABSU_EXPR:
4209 : 939 : return generic_simplify_ABSU_EXPR (loc, code, type, _p0);
4210 : 3695366 : case NEGATE_EXPR:
4211 : 3695366 : return generic_simplify_NEGATE_EXPR (loc, code, type, _p0);
4212 : 454673617 : case VIEW_CONVERT_EXPR:
4213 : 454673617 : return generic_simplify_VIEW_CONVERT_EXPR (loc, code, type, _p0);
4214 : 6718223 : case FLOAT_EXPR:
4215 : 6718223 : return generic_simplify_FLOAT_EXPR (loc, code, type, _p0);
4216 : 510356 : case FIX_TRUNC_EXPR:
4217 : 510356 : return generic_simplify_FIX_TRUNC_EXPR (loc, code, type, _p0);
4218 : 3323 : case PAREN_EXPR:
4219 : 3323 : return generic_simplify_PAREN_EXPR (loc, code, type, _p0);
4220 : 1786237 : case REALPART_EXPR:
4221 : 1786237 : return generic_simplify_REALPART_EXPR (loc, code, type, _p0);
4222 : 2052144 : case IMAGPART_EXPR:
4223 : 2052144 : return generic_simplify_IMAGPART_EXPR (loc, code, type, _p0);
4224 : 1328 : case CONJ_EXPR:
4225 : 1328 : return generic_simplify_CONJ_EXPR (loc, code, type, _p0);
4226 : : default:;
4227 : : }
4228 : : return NULL_TREE;
4229 : : }
4230 : :
4231 : : tree
4232 : 93293186 : generic_simplify_PLUS_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
4233 : : {
4234 : 93293186 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4235 : 93293186 : if (integer_zerop (_p1))
4236 : : {
4237 : 27008931 : {
4238 : 27008931 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4239 : 27008931 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1258;
4240 : 27008931 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1258;
4241 : 27008931 : {
4242 : 27008931 : tree res_op0;
4243 : 27008931 : res_op0 = captures[0];
4244 : 27008931 : tree _r;
4245 : 27008931 : _r = non_lvalue_loc (loc, res_op0);
4246 : 27008931 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 891, __FILE__, __LINE__, true);
4247 : 27008931 : return _r;
4248 : : }
4249 : : next_after_fail1258:;
4250 : : }
4251 : : }
4252 : 66284255 : if (real_zerop (_p1))
4253 : : {
4254 : 5257 : {
4255 : 5257 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
4256 : 5257 : tree res = generic_simplify_2 (loc, type, _p0, _p1, captures);
4257 : 5257 : if (res) return res;
4258 : : }
4259 : : }
4260 : 66284161 : switch (TREE_CODE (_p0))
4261 : : {
4262 : 6293269 : case PLUS_EXPR:
4263 : 6293269 : {
4264 : 6293269 : tree _q20 = TREE_OPERAND (_p0, 0);
4265 : 6293269 : tree _q21 = TREE_OPERAND (_p0, 1);
4266 : 6293269 : switch (TREE_CODE (_q21))
4267 : : {
4268 : 122026 : case REAL_CST:
4269 : 122026 : {
4270 : 122026 : switch (TREE_CODE (_p1))
4271 : : {
4272 : 70 : case REAL_CST:
4273 : 70 : {
4274 : 70 : {
4275 : 70 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
4276 : 70 : tree res = generic_simplify_3 (loc, type, _p0, _p1, captures, PLUS_EXPR, PLUS_EXPR);
4277 : 70 : if (res) return res;
4278 : : }
4279 : 67 : break;
4280 : : }
4281 : : default:;
4282 : : }
4283 : : break;
4284 : : }
4285 : : default:;
4286 : : }
4287 : : break;
4288 : : }
4289 : 1911757 : case MINUS_EXPR:
4290 : 1911757 : {
4291 : 1911757 : tree _q20 = TREE_OPERAND (_p0, 0);
4292 : 1911757 : tree _q21 = TREE_OPERAND (_p0, 1);
4293 : 1911757 : switch (TREE_CODE (_q21))
4294 : : {
4295 : 22957 : case REAL_CST:
4296 : 22957 : {
4297 : 22957 : switch (TREE_CODE (_p1))
4298 : : {
4299 : 195 : case REAL_CST:
4300 : 195 : {
4301 : 195 : {
4302 : 195 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
4303 : 195 : tree res = generic_simplify_3 (loc, type, _p0, _p1, captures, PLUS_EXPR, MINUS_EXPR);
4304 : 195 : if (res) return res;
4305 : : }
4306 : 193 : break;
4307 : : }
4308 : : default:;
4309 : : }
4310 : : break;
4311 : : }
4312 : : default:;
4313 : : }
4314 : : break;
4315 : : }
4316 : 11684 : case MAX_EXPR:
4317 : 11684 : {
4318 : 11684 : tree _q20 = TREE_OPERAND (_p0, 0);
4319 : 11684 : tree _q21 = TREE_OPERAND (_p0, 1);
4320 : 11684 : if (integer_zerop (_q21))
4321 : : {
4322 : 4494 : switch (TREE_CODE (_p1))
4323 : : {
4324 : 113 : case MAX_EXPR:
4325 : 113 : {
4326 : 113 : tree _q50 = TREE_OPERAND (_p1, 0);
4327 : 113 : tree _q51 = TREE_OPERAND (_p1, 1);
4328 : 113 : switch (TREE_CODE (_q50))
4329 : : {
4330 : 48 : case NEGATE_EXPR:
4331 : 48 : {
4332 : 48 : tree _q60 = TREE_OPERAND (_q50, 0);
4333 : 48 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
4334 : : {
4335 : 48 : if (integer_zerop (_q51))
4336 : : {
4337 : 48 : {
4338 : 48 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
4339 : 48 : tree res = generic_simplify_4 (loc, type, _p0, _p1, captures);
4340 : 48 : if (res) return res;
4341 : : }
4342 : : }
4343 : : }
4344 : : break;
4345 : : }
4346 : : default:;
4347 : : }
4348 : : break;
4349 : : }
4350 : : default:;
4351 : : }
4352 : : }
4353 : 11636 : switch (TREE_CODE (_q20))
4354 : : {
4355 : 18 : case NEGATE_EXPR:
4356 : 18 : {
4357 : 18 : tree _q30 = TREE_OPERAND (_q20, 0);
4358 : 18 : if (integer_zerop (_q21))
4359 : : {
4360 : 18 : switch (TREE_CODE (_p1))
4361 : : {
4362 : 18 : case MAX_EXPR:
4363 : 18 : {
4364 : 18 : tree _q60 = TREE_OPERAND (_p1, 0);
4365 : 18 : tree _q61 = TREE_OPERAND (_p1, 1);
4366 : 18 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
4367 : : {
4368 : 18 : if (integer_zerop (_q61))
4369 : : {
4370 : 18 : {
4371 : 18 : tree captures[1] ATTRIBUTE_UNUSED = { _q30 };
4372 : 18 : tree res = generic_simplify_4 (loc, type, _p0, _p1, captures);
4373 : 18 : if (res) return res;
4374 : : }
4375 : : }
4376 : : }
4377 : : break;
4378 : : }
4379 : : default:;
4380 : : }
4381 : : }
4382 : : break;
4383 : : }
4384 : : default:;
4385 : : }
4386 : : break;
4387 : : }
4388 : 12550575 : case MULT_EXPR:
4389 : 12550575 : {
4390 : 12550575 : tree _q20 = TREE_OPERAND (_p0, 0);
4391 : 12550575 : tree _q21 = TREE_OPERAND (_p0, 1);
4392 : 12550575 : switch (TREE_CODE (_q20))
4393 : : {
4394 : 1795243 : case PLUS_EXPR:
4395 : 1795243 : {
4396 : 1795243 : tree _q30 = TREE_OPERAND (_q20, 0);
4397 : 1795243 : tree _q31 = TREE_OPERAND (_q20, 1);
4398 : 1795243 : switch (TREE_CODE (_q31))
4399 : : {
4400 : 480431 : case INTEGER_CST:
4401 : 480431 : {
4402 : 480431 : switch (TREE_CODE (_q21))
4403 : : {
4404 : 162317 : case INTEGER_CST:
4405 : 162317 : {
4406 : 162317 : switch (TREE_CODE (_p1))
4407 : : {
4408 : 111781 : case INTEGER_CST:
4409 : 111781 : {
4410 : 111781 : {
4411 : 111781 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
4412 : 111781 : {
4413 : 111781 : bool overflowed = true;
4414 : 111781 : wi::overflow_type ovf1;
4415 : 111781 : wi::overflow_type ovf2;
4416 : 111781 : wide_int mul = wi::mul (wi::to_wide (captures[3]), wi::to_wide (captures[4]),
4417 : 223562 : TYPE_SIGN (type), &ovf1);
4418 : 335343 : wide_int add = wi::add (mul, wi::to_wide (captures[5]),
4419 : 111781 : TYPE_SIGN (type), &ovf2);
4420 : 111781 : if (TYPE_OVERFLOW_UNDEFINED (type))
4421 : : {
4422 : : }
4423 : : else
4424 : 51659 : overflowed = false;
4425 : 51659 : if (!overflowed
4426 : : )
4427 : : {
4428 : 51659 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1259;
4429 : 51659 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1259;
4430 : 51659 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail1259;
4431 : 51659 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1259;
4432 : 51659 : {
4433 : 51659 : tree res_op0;
4434 : 51659 : {
4435 : 51659 : tree _o1[2], _r1;
4436 : 51659 : _o1[0] = captures[2];
4437 : 51659 : _o1[1] = captures[4];
4438 : 51659 : _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4439 : 51659 : res_op0 = _r1;
4440 : : }
4441 : 51659 : tree res_op1;
4442 : 51659 : res_op1 = wide_int_to_tree (type, add);
4443 : 51659 : tree _r;
4444 : 51659 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
4445 : 51659 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 892, __FILE__, __LINE__, true);
4446 : 51659 : return _r;
4447 : : }
4448 : 60122 : next_after_fail1259:;
4449 : : }
4450 : 111781 : }
4451 : : }
4452 : 60122 : break;
4453 : : }
4454 : : default:;
4455 : : }
4456 : : break;
4457 : : }
4458 : : default:;
4459 : : }
4460 : : break;
4461 : : }
4462 : : default:;
4463 : : }
4464 : : break;
4465 : : }
4466 : : default:;
4467 : : }
4468 : : break;
4469 : : }
4470 : 18994 : case LSHIFT_EXPR:
4471 : 18994 : {
4472 : 18994 : tree _q20 = TREE_OPERAND (_p0, 0);
4473 : 18994 : tree _q21 = TREE_OPERAND (_p0, 1);
4474 : 18994 : switch (TREE_CODE (_p1))
4475 : : {
4476 : 688 : case LSHIFT_EXPR:
4477 : 688 : {
4478 : 688 : tree _q50 = TREE_OPERAND (_p1, 0);
4479 : 688 : tree _q51 = TREE_OPERAND (_p1, 1);
4480 : 688 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
4481 : : {
4482 : 7 : {
4483 : 7 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
4484 : 7 : tree res = generic_simplify_5 (loc, type, _p0, _p1, captures, PLUS_EXPR);
4485 : 7 : if (res) return res;
4486 : : }
4487 : : }
4488 : : break;
4489 : : }
4490 : : default:;
4491 : : }
4492 : : break;
4493 : : }
4494 : 187940 : case BIT_AND_EXPR:
4495 : 187940 : {
4496 : 187940 : tree _q20 = TREE_OPERAND (_p0, 0);
4497 : 187940 : tree _q21 = TREE_OPERAND (_p0, 1);
4498 : 187940 : switch (TREE_CODE (_p1))
4499 : : {
4500 : 292 : case BIT_AND_EXPR:
4501 : 292 : {
4502 : 292 : tree _q50 = TREE_OPERAND (_p1, 0);
4503 : 292 : tree _q51 = TREE_OPERAND (_p1, 1);
4504 : 292 : {
4505 : 292 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q50, _q51 };
4506 : 292 : tree res = generic_simplify_6 (loc, type, _p0, _p1, captures, PLUS_EXPR);
4507 : 292 : if (res) return res;
4508 : : }
4509 : 292 : {
4510 : 292 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q51, _q50 };
4511 : 292 : tree res = generic_simplify_6 (loc, type, _p0, _p1, captures, PLUS_EXPR);
4512 : 292 : if (res) return res;
4513 : : }
4514 : 292 : {
4515 : 292 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q50, _q51 };
4516 : 292 : tree res = generic_simplify_6 (loc, type, _p0, _p1, captures, PLUS_EXPR);
4517 : 292 : if (res) return res;
4518 : : }
4519 : 292 : {
4520 : 292 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q51, _q50 };
4521 : 292 : tree res = generic_simplify_6 (loc, type, _p0, _p1, captures, PLUS_EXPR);
4522 : 292 : if (res) return res;
4523 : : }
4524 : 292 : break;
4525 : : }
4526 : 187940 : default:;
4527 : : }
4528 : 187940 : if (integer_onep (_q21))
4529 : : {
4530 : 123119 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
4531 : : {
4532 : 29 : {
4533 : 29 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p0, _q21 };
4534 : 29 : tree res = generic_simplify_7 (loc, type, _p0, _p1, captures);
4535 : 29 : if (res) return res;
4536 : : }
4537 : : }
4538 : : }
4539 : : break;
4540 : : }
4541 : 66232395 : default:;
4542 : : }
4543 : 66232395 : if (real_zerop (_p0))
4544 : : {
4545 : 0 : {
4546 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p1, _p0 };
4547 : 0 : tree res = generic_simplify_2 (loc, type, _p0, _p1, captures);
4548 : 0 : if (res) return res;
4549 : : }
4550 : : }
4551 : 66232395 : switch (TREE_CODE (_p1))
4552 : : {
4553 : 5148 : case BIT_AND_EXPR:
4554 : 5148 : {
4555 : 5148 : tree _q30 = TREE_OPERAND (_p1, 0);
4556 : 5148 : tree _q31 = TREE_OPERAND (_p1, 1);
4557 : 5148 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
4558 : : {
4559 : 16 : if (integer_onep (_q31))
4560 : : {
4561 : 16 : {
4562 : 16 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q31 };
4563 : 16 : tree res = generic_simplify_7 (loc, type, _p0, _p1, captures);
4564 : 16 : if (res) return res;
4565 : : }
4566 : : }
4567 : : }
4568 : : break;
4569 : : }
4570 : 66232379 : default:;
4571 : : }
4572 : 66232379 : switch (TREE_CODE (_p0))
4573 : : {
4574 : 187911 : case BIT_AND_EXPR:
4575 : 187911 : {
4576 : 187911 : tree _q20 = TREE_OPERAND (_p0, 0);
4577 : 187911 : tree _q21 = TREE_OPERAND (_p0, 1);
4578 : 187911 : switch (TREE_CODE (_p1))
4579 : : {
4580 : 9 : case BIT_XOR_EXPR:
4581 : 9 : {
4582 : 9 : tree _q50 = TREE_OPERAND (_p1, 0);
4583 : 9 : tree _q51 = TREE_OPERAND (_p1, 1);
4584 : 9 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
4585 : : {
4586 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
4587 : : {
4588 : 0 : {
4589 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4590 : 0 : tree res = generic_simplify_8 (loc, type, _p0, _p1, captures, PLUS_EXPR);
4591 : 0 : if (res) return res;
4592 : : }
4593 : : }
4594 : : }
4595 : : break;
4596 : : }
4597 : 1 : case BIT_IOR_EXPR:
4598 : 1 : {
4599 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
4600 : 1 : tree _q51 = TREE_OPERAND (_p1, 1);
4601 : 1 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
4602 : : {
4603 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
4604 : : {
4605 : 0 : {
4606 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4607 : 0 : tree res = generic_simplify_9 (loc, type, _p0, _p1, captures);
4608 : 0 : if (res) return res;
4609 : : }
4610 : : }
4611 : : }
4612 : : break;
4613 : : }
4614 : 187911 : default:;
4615 : : }
4616 : 187911 : switch (TREE_CODE (_q21))
4617 : : {
4618 : 187606 : case INTEGER_CST:
4619 : 187606 : {
4620 : 187606 : switch (TREE_CODE (_p1))
4621 : : {
4622 : 14546 : CASE_CONVERT:
4623 : 14546 : {
4624 : 14546 : tree _q50 = TREE_OPERAND (_p1, 0);
4625 : 14546 : switch (TREE_CODE (_q50))
4626 : : {
4627 : 0 : case BIT_AND_EXPR:
4628 : 0 : {
4629 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
4630 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
4631 : 0 : switch (TREE_CODE (_q61))
4632 : : {
4633 : 0 : case INTEGER_CST:
4634 : 0 : {
4635 : 0 : {
4636 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50, _q60, _q61 };
4637 : 0 : tree res = generic_simplify_10 (loc, type, _p0, _p1, captures, PLUS_EXPR);
4638 : 0 : if (res) return res;
4639 : : }
4640 : 0 : break;
4641 : : }
4642 : : default:;
4643 : : }
4644 : : break;
4645 : : }
4646 : : default:;
4647 : : }
4648 : : break;
4649 : : }
4650 : 292 : case BIT_AND_EXPR:
4651 : 292 : {
4652 : 292 : tree _q50 = TREE_OPERAND (_p1, 0);
4653 : 292 : tree _q51 = TREE_OPERAND (_p1, 1);
4654 : 292 : switch (TREE_CODE (_q51))
4655 : : {
4656 : 292 : case INTEGER_CST:
4657 : 292 : {
4658 : 292 : {
4659 : 292 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
4660 : 292 : tree res = generic_simplify_10 (loc, type, _p0, _p1, captures, PLUS_EXPR);
4661 : 292 : if (res) return res;
4662 : : }
4663 : 186 : break;
4664 : : }
4665 : : default:;
4666 : : }
4667 : : break;
4668 : : }
4669 : : default:;
4670 : : }
4671 : : break;
4672 : : }
4673 : : default:;
4674 : : }
4675 : : break;
4676 : : }
4677 : 1507 : case BIT_XOR_EXPR:
4678 : 1507 : {
4679 : 1507 : tree _q20 = TREE_OPERAND (_p0, 0);
4680 : 1507 : tree _q21 = TREE_OPERAND (_p0, 1);
4681 : 1507 : switch (TREE_CODE (_p1))
4682 : : {
4683 : 0 : case BIT_AND_EXPR:
4684 : 0 : {
4685 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
4686 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
4687 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
4688 : : {
4689 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
4690 : : {
4691 : 0 : {
4692 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4693 : 0 : tree res = generic_simplify_8 (loc, type, _p0, _p1, captures, PLUS_EXPR);
4694 : 0 : if (res) return res;
4695 : : }
4696 : : }
4697 : : }
4698 : : break;
4699 : : }
4700 : : default:;
4701 : : }
4702 : : break;
4703 : : }
4704 : 552 : case BIT_IOR_EXPR:
4705 : 552 : {
4706 : 552 : tree _q20 = TREE_OPERAND (_p0, 0);
4707 : 552 : tree _q21 = TREE_OPERAND (_p0, 1);
4708 : 552 : switch (TREE_CODE (_p1))
4709 : : {
4710 : 0 : case BIT_AND_EXPR:
4711 : 0 : {
4712 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
4713 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
4714 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
4715 : : {
4716 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
4717 : : {
4718 : 0 : {
4719 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4720 : 0 : tree res = generic_simplify_9 (loc, type, _p0, _p1, captures);
4721 : 0 : if (res) return res;
4722 : : }
4723 : : }
4724 : : }
4725 : : break;
4726 : : }
4727 : : default:;
4728 : : }
4729 : : break;
4730 : : }
4731 : 1911755 : case MINUS_EXPR:
4732 : 1911755 : {
4733 : 1911755 : tree _q20 = TREE_OPERAND (_p0, 0);
4734 : 1911755 : tree _q21 = TREE_OPERAND (_p0, 1);
4735 : 1911755 : switch (TREE_CODE (_q20))
4736 : : {
4737 : 2 : case BIT_AND_EXPR:
4738 : 2 : {
4739 : 2 : tree _q30 = TREE_OPERAND (_q20, 0);
4740 : 2 : tree _q31 = TREE_OPERAND (_q20, 1);
4741 : 2 : switch (TREE_CODE (_q21))
4742 : : {
4743 : 1 : case BIT_IOR_EXPR:
4744 : 1 : {
4745 : 1 : tree _q60 = TREE_OPERAND (_q21, 0);
4746 : 1 : tree _q61 = TREE_OPERAND (_q21, 1);
4747 : 1 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
4748 : : {
4749 : 1 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
4750 : : {
4751 : 1 : if (integer_all_onesp (_p1))
4752 : : {
4753 : 1 : {
4754 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q31 };
4755 : 1 : tree res = generic_simplify_11 (loc, type, _p0, _p1, captures);
4756 : 1 : if (res) return res;
4757 : : }
4758 : : }
4759 : : }
4760 : : }
4761 : 0 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q31, 0) && types_match (_q60, _q31)))
4762 : : {
4763 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
4764 : : {
4765 : 0 : if (integer_all_onesp (_p1))
4766 : : {
4767 : 0 : {
4768 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q31, _q30 };
4769 : 0 : tree res = generic_simplify_11 (loc, type, _p0, _p1, captures);
4770 : 0 : if (res) return res;
4771 : : }
4772 : : }
4773 : : }
4774 : : }
4775 : : break;
4776 : : }
4777 : : default:;
4778 : : }
4779 : : break;
4780 : : }
4781 : 1911754 : default:;
4782 : : }
4783 : 1911754 : {
4784 : 1911754 : tree _q20_pops[1];
4785 : 1911754 : if (tree_nop_convert (_q20, _q20_pops))
4786 : : {
4787 : 809359 : tree _q30 = _q20_pops[0];
4788 : 809359 : switch (TREE_CODE (_q30))
4789 : : {
4790 : 0 : case BIT_AND_EXPR:
4791 : 0 : {
4792 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
4793 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
4794 : 0 : {
4795 : 0 : tree _q21_pops[1];
4796 : 0 : if (tree_nop_convert (_q21, _q21_pops))
4797 : : {
4798 : 0 : tree _q70 = _q21_pops[0];
4799 : 0 : switch (TREE_CODE (_q70))
4800 : : {
4801 : 0 : case BIT_IOR_EXPR:
4802 : 0 : {
4803 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
4804 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
4805 : 0 : if ((_q80 == _q40 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q40, 0) && types_match (_q80, _q40)))
4806 : : {
4807 : 0 : if ((_q81 == _q41 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q41, 0) && types_match (_q81, _q41)))
4808 : : {
4809 : 0 : if (integer_all_onesp (_p1))
4810 : : {
4811 : 0 : {
4812 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q40, _q41 };
4813 : 0 : tree res = generic_simplify_11 (loc, type, _p0, _p1, captures);
4814 : 0 : if (res) return res;
4815 : : }
4816 : : }
4817 : : }
4818 : : }
4819 : 0 : if ((_q80 == _q41 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q41, 0) && types_match (_q80, _q41)))
4820 : : {
4821 : 0 : if ((_q81 == _q40 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q40, 0) && types_match (_q81, _q40)))
4822 : : {
4823 : 0 : if (integer_all_onesp (_p1))
4824 : : {
4825 : 0 : {
4826 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q41, _q40 };
4827 : 0 : tree res = generic_simplify_11 (loc, type, _p0, _p1, captures);
4828 : 0 : if (res) return res;
4829 : : }
4830 : : }
4831 : : }
4832 : : }
4833 : : break;
4834 : : }
4835 : : default:;
4836 : : }
4837 : : }
4838 : : }
4839 : 0 : break;
4840 : : }
4841 : : default:;
4842 : : }
4843 : : }
4844 : : }
4845 : 1911754 : {
4846 : 1911754 : tree _q21_pops[1];
4847 : 1911754 : if (tree_nop_convert (_q21, _q21_pops))
4848 : : {
4849 : 1032017 : tree _q40 = _q21_pops[0];
4850 : 1032017 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
4851 : : {
4852 : 50 : {
4853 : 50 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
4854 : 50 : tree res = generic_simplify_12 (loc, type, _p0, _p1, captures);
4855 : 50 : if (res) return res;
4856 : : }
4857 : : }
4858 : : }
4859 : : }
4860 : 1911708 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
4861 : : {
4862 : 45226 : {
4863 : 45226 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4864 : 45226 : tree res = generic_simplify_12 (loc, type, _p0, _p1, captures);
4865 : 45226 : if (res) return res;
4866 : : }
4867 : : }
4868 : : break;
4869 : : }
4870 : 17579971 : CASE_CONVERT:
4871 : 17579971 : {
4872 : 17579971 : tree _q20 = TREE_OPERAND (_p0, 0);
4873 : 17579971 : switch (TREE_CODE (_q20))
4874 : : {
4875 : 72 : case BIT_AND_EXPR:
4876 : 72 : {
4877 : 72 : tree _q30 = TREE_OPERAND (_q20, 0);
4878 : 72 : tree _q31 = TREE_OPERAND (_q20, 1);
4879 : 72 : switch (TREE_CODE (_q31))
4880 : : {
4881 : 8 : case INTEGER_CST:
4882 : 8 : {
4883 : 8 : switch (TREE_CODE (_p1))
4884 : : {
4885 : 0 : CASE_CONVERT:
4886 : 0 : {
4887 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
4888 : 0 : switch (TREE_CODE (_q60))
4889 : : {
4890 : 0 : case BIT_AND_EXPR:
4891 : 0 : {
4892 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
4893 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
4894 : 0 : switch (TREE_CODE (_q71))
4895 : : {
4896 : 0 : case INTEGER_CST:
4897 : 0 : {
4898 : 0 : {
4899 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q60, _q70, _q71 };
4900 : 0 : tree res = generic_simplify_10 (loc, type, _p0, _p1, captures, PLUS_EXPR);
4901 : 0 : if (res) return res;
4902 : : }
4903 : 0 : break;
4904 : : }
4905 : : default:;
4906 : : }
4907 : : break;
4908 : : }
4909 : : default:;
4910 : : }
4911 : : break;
4912 : : }
4913 : 0 : case BIT_AND_EXPR:
4914 : 0 : {
4915 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
4916 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
4917 : 0 : switch (TREE_CODE (_q61))
4918 : : {
4919 : 0 : case INTEGER_CST:
4920 : 0 : {
4921 : 0 : {
4922 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _p1, _q60, _q61 };
4923 : 0 : tree res = generic_simplify_10 (loc, type, _p0, _p1, captures, PLUS_EXPR);
4924 : 0 : if (res) return res;
4925 : : }
4926 : 0 : break;
4927 : : }
4928 : : default:;
4929 : : }
4930 : : break;
4931 : : }
4932 : : default:;
4933 : : }
4934 : : break;
4935 : : }
4936 : : default:;
4937 : : }
4938 : : break;
4939 : : }
4940 : 4808 : case NEGATE_EXPR:
4941 : 4808 : {
4942 : 4808 : tree _q30 = TREE_OPERAND (_q20, 0);
4943 : 4808 : {
4944 : 4808 : tree captures[2] ATTRIBUTE_UNUSED = { _p1, _q30 };
4945 : 4808 : tree res = generic_simplify_13 (loc, type, _p0, _p1, captures);
4946 : 4808 : if (res) return res;
4947 : : }
4948 : 1863 : break;
4949 : : }
4950 : : default:;
4951 : : }
4952 : : break;
4953 : : }
4954 : 128087 : case COND_EXPR:
4955 : 128087 : {
4956 : 128087 : tree _q20 = TREE_OPERAND (_p0, 0);
4957 : 128087 : tree _q21 = TREE_OPERAND (_p0, 1);
4958 : 128087 : tree _q22 = TREE_OPERAND (_p0, 2);
4959 : 128087 : if (integer_zerop (_q22))
4960 : : {
4961 : 119482 : switch (TREE_CODE (_p1))
4962 : : {
4963 : 44 : case COND_EXPR:
4964 : 44 : {
4965 : 44 : tree _q60 = TREE_OPERAND (_p1, 0);
4966 : 44 : tree _q61 = TREE_OPERAND (_p1, 1);
4967 : 44 : tree _q62 = TREE_OPERAND (_p1, 2);
4968 : 44 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
4969 : : {
4970 : 6 : if (integer_zerop (_q61))
4971 : : {
4972 : 0 : {
4973 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q62 };
4974 : 0 : const enum tree_code op = PLUS_EXPR;
4975 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1260;
4976 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1260;
4977 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1260;
4978 : 0 : {
4979 : 0 : tree res_op0;
4980 : 0 : res_op0 = captures[1];
4981 : 0 : tree res_op1;
4982 : 0 : res_op1 = captures[2];
4983 : 0 : tree res_op2;
4984 : 0 : res_op2 = captures[4];
4985 : 0 : tree _r;
4986 : 0 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
4987 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 893, __FILE__, __LINE__, true);
4988 : 0 : return _r;
4989 : : }
4990 : 0 : next_after_fail1260:;
4991 : : }
4992 : : }
4993 : : }
4994 : : break;
4995 : : }
4996 : : default:;
4997 : : }
4998 : : }
4999 : 128087 : if (integer_zerop (_q21))
5000 : : {
5001 : 956 : switch (TREE_CODE (_p1))
5002 : : {
5003 : 0 : case COND_EXPR:
5004 : 0 : {
5005 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
5006 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
5007 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
5008 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
5009 : : {
5010 : 0 : if (integer_zerop (_q62))
5011 : : {
5012 : 0 : {
5013 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q20, _q61, _p0, _q22 };
5014 : 0 : const enum tree_code op = PLUS_EXPR;
5015 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1261;
5016 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1261;
5017 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1261;
5018 : 0 : {
5019 : 0 : tree res_op0;
5020 : 0 : res_op0 = captures[1];
5021 : 0 : tree res_op1;
5022 : 0 : res_op1 = captures[2];
5023 : 0 : tree res_op2;
5024 : 0 : res_op2 = captures[4];
5025 : 0 : tree _r;
5026 : 0 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
5027 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 893, __FILE__, __LINE__, true);
5028 : 0 : return _r;
5029 : : }
5030 : 0 : next_after_fail1261:;
5031 : : }
5032 : : }
5033 : : }
5034 : : break;
5035 : : }
5036 : : default:;
5037 : : }
5038 : : }
5039 : 128087 : switch (TREE_CODE (_q20))
5040 : : {
5041 : 28895 : case LT_EXPR:
5042 : 28895 : {
5043 : 28895 : tree _q30 = TREE_OPERAND (_q20, 0);
5044 : 28895 : tree _q31 = TREE_OPERAND (_q20, 1);
5045 : 28895 : if (zerop (_q22))
5046 : : {
5047 : 28832 : switch (TREE_CODE (_p1))
5048 : : {
5049 : 0 : case COND_EXPR:
5050 : 0 : {
5051 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
5052 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
5053 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
5054 : 0 : switch (TREE_CODE (_q80))
5055 : : {
5056 : 0 : case GE_EXPR:
5057 : 0 : {
5058 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5059 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5060 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5061 : : {
5062 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5063 : : {
5064 : 0 : if (zerop (_q82))
5065 : : {
5066 : 0 : {
5067 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
5068 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, PLUS_EXPR, LT_EXPR, GE_EXPR);
5069 : 0 : if (res) return res;
5070 : : }
5071 : : }
5072 : : }
5073 : : }
5074 : : break;
5075 : : }
5076 : : default:;
5077 : : }
5078 : : break;
5079 : : }
5080 : : default:;
5081 : : }
5082 : : }
5083 : : break;
5084 : : }
5085 : 32537 : case LE_EXPR:
5086 : 32537 : {
5087 : 32537 : tree _q30 = TREE_OPERAND (_q20, 0);
5088 : 32537 : tree _q31 = TREE_OPERAND (_q20, 1);
5089 : 32537 : if (zerop (_q22))
5090 : : {
5091 : 32279 : switch (TREE_CODE (_p1))
5092 : : {
5093 : 5 : case COND_EXPR:
5094 : 5 : {
5095 : 5 : tree _q80 = TREE_OPERAND (_p1, 0);
5096 : 5 : tree _q81 = TREE_OPERAND (_p1, 1);
5097 : 5 : tree _q82 = TREE_OPERAND (_p1, 2);
5098 : 5 : switch (TREE_CODE (_q80))
5099 : : {
5100 : 0 : case GT_EXPR:
5101 : 0 : {
5102 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5103 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5104 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5105 : : {
5106 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5107 : : {
5108 : 0 : if (zerop (_q82))
5109 : : {
5110 : 0 : {
5111 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
5112 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, PLUS_EXPR, LE_EXPR, GT_EXPR);
5113 : 0 : if (res) return res;
5114 : : }
5115 : : }
5116 : : }
5117 : : }
5118 : : break;
5119 : : }
5120 : : default:;
5121 : : }
5122 : : break;
5123 : : }
5124 : : default:;
5125 : : }
5126 : : }
5127 : : break;
5128 : : }
5129 : 1042 : case EQ_EXPR:
5130 : 1042 : {
5131 : 1042 : tree _q30 = TREE_OPERAND (_q20, 0);
5132 : 1042 : tree _q31 = TREE_OPERAND (_q20, 1);
5133 : 1042 : if (zerop (_q22))
5134 : : {
5135 : 567 : switch (TREE_CODE (_p1))
5136 : : {
5137 : 32 : case COND_EXPR:
5138 : 32 : {
5139 : 32 : tree _q80 = TREE_OPERAND (_p1, 0);
5140 : 32 : tree _q81 = TREE_OPERAND (_p1, 1);
5141 : 32 : tree _q82 = TREE_OPERAND (_p1, 2);
5142 : 32 : switch (TREE_CODE (_q80))
5143 : : {
5144 : 0 : case NE_EXPR:
5145 : 0 : {
5146 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5147 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5148 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5149 : : {
5150 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5151 : : {
5152 : 0 : if (zerop (_q82))
5153 : : {
5154 : 0 : {
5155 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
5156 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, PLUS_EXPR, EQ_EXPR, NE_EXPR);
5157 : 0 : if (res) return res;
5158 : : }
5159 : : }
5160 : : }
5161 : : }
5162 : : break;
5163 : : }
5164 : : default:;
5165 : : }
5166 : : break;
5167 : : }
5168 : : default:;
5169 : : }
5170 : : }
5171 : : break;
5172 : : }
5173 : 8022 : case NE_EXPR:
5174 : 8022 : {
5175 : 8022 : tree _q30 = TREE_OPERAND (_q20, 0);
5176 : 8022 : tree _q31 = TREE_OPERAND (_q20, 1);
5177 : 8022 : if (zerop (_q22))
5178 : : {
5179 : 5639 : switch (TREE_CODE (_p1))
5180 : : {
5181 : 7 : case COND_EXPR:
5182 : 7 : {
5183 : 7 : tree _q80 = TREE_OPERAND (_p1, 0);
5184 : 7 : tree _q81 = TREE_OPERAND (_p1, 1);
5185 : 7 : tree _q82 = TREE_OPERAND (_p1, 2);
5186 : 7 : switch (TREE_CODE (_q80))
5187 : : {
5188 : 0 : case EQ_EXPR:
5189 : 0 : {
5190 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5191 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5192 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5193 : : {
5194 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5195 : : {
5196 : 0 : if (zerop (_q82))
5197 : : {
5198 : 0 : {
5199 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
5200 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, PLUS_EXPR, NE_EXPR, EQ_EXPR);
5201 : 0 : if (res) return res;
5202 : : }
5203 : : }
5204 : : }
5205 : : }
5206 : : break;
5207 : : }
5208 : : default:;
5209 : : }
5210 : : break;
5211 : : }
5212 : : default:;
5213 : : }
5214 : : }
5215 : : break;
5216 : : }
5217 : 19507 : case GE_EXPR:
5218 : 19507 : {
5219 : 19507 : tree _q30 = TREE_OPERAND (_q20, 0);
5220 : 19507 : tree _q31 = TREE_OPERAND (_q20, 1);
5221 : 19507 : if (zerop (_q22))
5222 : : {
5223 : 18240 : switch (TREE_CODE (_p1))
5224 : : {
5225 : 0 : case COND_EXPR:
5226 : 0 : {
5227 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
5228 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
5229 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
5230 : 0 : switch (TREE_CODE (_q80))
5231 : : {
5232 : 0 : case LT_EXPR:
5233 : 0 : {
5234 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5235 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5236 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5237 : : {
5238 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5239 : : {
5240 : 0 : if (zerop (_q82))
5241 : : {
5242 : 0 : {
5243 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
5244 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, PLUS_EXPR, GE_EXPR, LT_EXPR);
5245 : 0 : if (res) return res;
5246 : : }
5247 : : }
5248 : : }
5249 : : }
5250 : : break;
5251 : : }
5252 : : default:;
5253 : : }
5254 : : break;
5255 : : }
5256 : : default:;
5257 : : }
5258 : : }
5259 : : break;
5260 : : }
5261 : 31447 : case GT_EXPR:
5262 : 31447 : {
5263 : 31447 : tree _q30 = TREE_OPERAND (_q20, 0);
5264 : 31447 : tree _q31 = TREE_OPERAND (_q20, 1);
5265 : 31447 : if (zerop (_q22))
5266 : : {
5267 : 31281 : switch (TREE_CODE (_p1))
5268 : : {
5269 : 0 : case COND_EXPR:
5270 : 0 : {
5271 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
5272 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
5273 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
5274 : 0 : switch (TREE_CODE (_q80))
5275 : : {
5276 : 0 : case LE_EXPR:
5277 : 0 : {
5278 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5279 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5280 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5281 : : {
5282 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5283 : : {
5284 : 0 : if (zerop (_q82))
5285 : : {
5286 : 0 : {
5287 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
5288 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, PLUS_EXPR, GT_EXPR, LE_EXPR);
5289 : 0 : if (res) return res;
5290 : : }
5291 : : }
5292 : : }
5293 : : }
5294 : : break;
5295 : : }
5296 : : default:;
5297 : : }
5298 : : break;
5299 : : }
5300 : : default:;
5301 : : }
5302 : : }
5303 : : break;
5304 : : }
5305 : 0 : case UNORDERED_EXPR:
5306 : 0 : {
5307 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
5308 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
5309 : 0 : if (zerop (_q22))
5310 : : {
5311 : 0 : switch (TREE_CODE (_p1))
5312 : : {
5313 : 0 : case COND_EXPR:
5314 : 0 : {
5315 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
5316 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
5317 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
5318 : 0 : switch (TREE_CODE (_q80))
5319 : : {
5320 : 0 : case ORDERED_EXPR:
5321 : 0 : {
5322 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5323 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5324 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5325 : : {
5326 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5327 : : {
5328 : 0 : if (zerop (_q82))
5329 : : {
5330 : 0 : {
5331 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
5332 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, PLUS_EXPR, UNORDERED_EXPR, ORDERED_EXPR);
5333 : 0 : if (res) return res;
5334 : : }
5335 : : }
5336 : : }
5337 : : }
5338 : : break;
5339 : : }
5340 : : default:;
5341 : : }
5342 : : break;
5343 : : }
5344 : : default:;
5345 : : }
5346 : : }
5347 : : break;
5348 : : }
5349 : 0 : case ORDERED_EXPR:
5350 : 0 : {
5351 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
5352 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
5353 : 0 : if (zerop (_q22))
5354 : : {
5355 : 0 : switch (TREE_CODE (_p1))
5356 : : {
5357 : 0 : case COND_EXPR:
5358 : 0 : {
5359 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
5360 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
5361 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
5362 : 0 : switch (TREE_CODE (_q80))
5363 : : {
5364 : 0 : case UNORDERED_EXPR:
5365 : 0 : {
5366 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5367 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5368 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5369 : : {
5370 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5371 : : {
5372 : 0 : if (zerop (_q82))
5373 : : {
5374 : 0 : {
5375 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
5376 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, PLUS_EXPR, ORDERED_EXPR, UNORDERED_EXPR);
5377 : 0 : if (res) return res;
5378 : : }
5379 : : }
5380 : : }
5381 : : }
5382 : : break;
5383 : : }
5384 : : default:;
5385 : : }
5386 : : break;
5387 : : }
5388 : : default:;
5389 : : }
5390 : : }
5391 : : break;
5392 : : }
5393 : 0 : case UNLT_EXPR:
5394 : 0 : {
5395 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
5396 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
5397 : 0 : if (zerop (_q22))
5398 : : {
5399 : 0 : switch (TREE_CODE (_p1))
5400 : : {
5401 : 0 : case COND_EXPR:
5402 : 0 : {
5403 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
5404 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
5405 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
5406 : 0 : switch (TREE_CODE (_q80))
5407 : : {
5408 : 0 : case GE_EXPR:
5409 : 0 : {
5410 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5411 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5412 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5413 : : {
5414 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5415 : : {
5416 : 0 : if (zerop (_q82))
5417 : : {
5418 : 0 : {
5419 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
5420 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, PLUS_EXPR, UNLT_EXPR, GE_EXPR);
5421 : 0 : if (res) return res;
5422 : : }
5423 : : }
5424 : : }
5425 : : }
5426 : : break;
5427 : : }
5428 : : default:;
5429 : : }
5430 : : break;
5431 : : }
5432 : : default:;
5433 : : }
5434 : : }
5435 : : break;
5436 : : }
5437 : 0 : case UNLE_EXPR:
5438 : 0 : {
5439 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
5440 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
5441 : 0 : if (zerop (_q22))
5442 : : {
5443 : 0 : switch (TREE_CODE (_p1))
5444 : : {
5445 : 0 : case COND_EXPR:
5446 : 0 : {
5447 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
5448 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
5449 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
5450 : 0 : switch (TREE_CODE (_q80))
5451 : : {
5452 : 0 : case GT_EXPR:
5453 : 0 : {
5454 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5455 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5456 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5457 : : {
5458 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5459 : : {
5460 : 0 : if (zerop (_q82))
5461 : : {
5462 : 0 : {
5463 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
5464 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, PLUS_EXPR, UNLE_EXPR, GT_EXPR);
5465 : 0 : if (res) return res;
5466 : : }
5467 : : }
5468 : : }
5469 : : }
5470 : : break;
5471 : : }
5472 : : default:;
5473 : : }
5474 : : break;
5475 : : }
5476 : : default:;
5477 : : }
5478 : : }
5479 : : break;
5480 : : }
5481 : 0 : case UNGT_EXPR:
5482 : 0 : {
5483 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
5484 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
5485 : 0 : if (zerop (_q22))
5486 : : {
5487 : 0 : switch (TREE_CODE (_p1))
5488 : : {
5489 : 0 : case COND_EXPR:
5490 : 0 : {
5491 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
5492 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
5493 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
5494 : 0 : switch (TREE_CODE (_q80))
5495 : : {
5496 : 0 : case LE_EXPR:
5497 : 0 : {
5498 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5499 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5500 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5501 : : {
5502 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5503 : : {
5504 : 0 : if (zerop (_q82))
5505 : : {
5506 : 0 : {
5507 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
5508 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, PLUS_EXPR, UNGT_EXPR, LE_EXPR);
5509 : 0 : if (res) return res;
5510 : : }
5511 : : }
5512 : : }
5513 : : }
5514 : : break;
5515 : : }
5516 : : default:;
5517 : : }
5518 : : break;
5519 : : }
5520 : : default:;
5521 : : }
5522 : : }
5523 : : break;
5524 : : }
5525 : 0 : case UNGE_EXPR:
5526 : 0 : {
5527 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
5528 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
5529 : 0 : if (zerop (_q22))
5530 : : {
5531 : 0 : switch (TREE_CODE (_p1))
5532 : : {
5533 : 0 : case COND_EXPR:
5534 : 0 : {
5535 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
5536 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
5537 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
5538 : 0 : switch (TREE_CODE (_q80))
5539 : : {
5540 : 0 : case LT_EXPR:
5541 : 0 : {
5542 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5543 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5544 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5545 : : {
5546 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5547 : : {
5548 : 0 : if (zerop (_q82))
5549 : : {
5550 : 0 : {
5551 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
5552 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, PLUS_EXPR, UNGE_EXPR, LT_EXPR);
5553 : 0 : if (res) return res;
5554 : : }
5555 : : }
5556 : : }
5557 : : }
5558 : : break;
5559 : : }
5560 : : default:;
5561 : : }
5562 : : break;
5563 : : }
5564 : : default:;
5565 : : }
5566 : : }
5567 : : break;
5568 : : }
5569 : 0 : case UNEQ_EXPR:
5570 : 0 : {
5571 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
5572 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
5573 : 0 : if (zerop (_q22))
5574 : : {
5575 : 0 : switch (TREE_CODE (_p1))
5576 : : {
5577 : 0 : case COND_EXPR:
5578 : 0 : {
5579 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
5580 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
5581 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
5582 : 0 : switch (TREE_CODE (_q80))
5583 : : {
5584 : 0 : case LTGT_EXPR:
5585 : 0 : {
5586 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5587 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5588 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5589 : : {
5590 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5591 : : {
5592 : 0 : if (zerop (_q82))
5593 : : {
5594 : 0 : {
5595 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
5596 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, PLUS_EXPR, UNEQ_EXPR, LTGT_EXPR);
5597 : 0 : if (res) return res;
5598 : : }
5599 : : }
5600 : : }
5601 : : }
5602 : : break;
5603 : : }
5604 : : default:;
5605 : : }
5606 : : break;
5607 : : }
5608 : : default:;
5609 : : }
5610 : : }
5611 : : break;
5612 : : }
5613 : 0 : case LTGT_EXPR:
5614 : 0 : {
5615 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
5616 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
5617 : 0 : if (zerop (_q22))
5618 : : {
5619 : 0 : switch (TREE_CODE (_p1))
5620 : : {
5621 : 0 : case COND_EXPR:
5622 : 0 : {
5623 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
5624 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
5625 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
5626 : 0 : switch (TREE_CODE (_q80))
5627 : : {
5628 : 0 : case UNEQ_EXPR:
5629 : 0 : {
5630 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5631 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5632 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5633 : : {
5634 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5635 : : {
5636 : 0 : if (zerop (_q82))
5637 : : {
5638 : 0 : {
5639 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
5640 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, PLUS_EXPR, LTGT_EXPR, UNEQ_EXPR);
5641 : 0 : if (res) return res;
5642 : : }
5643 : : }
5644 : : }
5645 : : }
5646 : : break;
5647 : : }
5648 : : default:;
5649 : : }
5650 : : break;
5651 : : }
5652 : : default:;
5653 : : }
5654 : : }
5655 : : break;
5656 : : }
5657 : : default:;
5658 : : }
5659 : : break;
5660 : : }
5661 : 168 : case VEC_COND_EXPR:
5662 : 168 : {
5663 : 168 : tree _q20 = TREE_OPERAND (_p0, 0);
5664 : 168 : tree _q21 = TREE_OPERAND (_p0, 1);
5665 : 168 : tree _q22 = TREE_OPERAND (_p0, 2);
5666 : 168 : if (integer_zerop (_q22))
5667 : : {
5668 : 106 : switch (TREE_CODE (_p1))
5669 : : {
5670 : 24 : case VEC_COND_EXPR:
5671 : 24 : {
5672 : 24 : tree _q60 = TREE_OPERAND (_p1, 0);
5673 : 24 : tree _q61 = TREE_OPERAND (_p1, 1);
5674 : 24 : tree _q62 = TREE_OPERAND (_p1, 2);
5675 : 24 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
5676 : : {
5677 : 0 : if (integer_zerop (_q61))
5678 : : {
5679 : 0 : {
5680 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q62 };
5681 : 0 : const enum tree_code op = PLUS_EXPR;
5682 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1262;
5683 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1262;
5684 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1262;
5685 : 0 : {
5686 : 0 : tree res_op0;
5687 : 0 : res_op0 = captures[1];
5688 : 0 : tree res_op1;
5689 : 0 : res_op1 = captures[2];
5690 : 0 : tree res_op2;
5691 : 0 : res_op2 = captures[4];
5692 : 0 : tree _r;
5693 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
5694 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 893, __FILE__, __LINE__, true);
5695 : 0 : return _r;
5696 : : }
5697 : 0 : next_after_fail1262:;
5698 : : }
5699 : : }
5700 : : }
5701 : : break;
5702 : : }
5703 : : default:;
5704 : : }
5705 : : }
5706 : 168 : if (integer_zerop (_q21))
5707 : : {
5708 : 0 : switch (TREE_CODE (_p1))
5709 : : {
5710 : 0 : case VEC_COND_EXPR:
5711 : 0 : {
5712 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
5713 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
5714 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
5715 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
5716 : : {
5717 : 0 : if (integer_zerop (_q62))
5718 : : {
5719 : 0 : {
5720 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q20, _q61, _p0, _q22 };
5721 : 0 : const enum tree_code op = PLUS_EXPR;
5722 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1263;
5723 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1263;
5724 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1263;
5725 : 0 : {
5726 : 0 : tree res_op0;
5727 : 0 : res_op0 = captures[1];
5728 : 0 : tree res_op1;
5729 : 0 : res_op1 = captures[2];
5730 : 0 : tree res_op2;
5731 : 0 : res_op2 = captures[4];
5732 : 0 : tree _r;
5733 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
5734 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 893, __FILE__, __LINE__, true);
5735 : 0 : return _r;
5736 : : }
5737 : 0 : next_after_fail1263:;
5738 : : }
5739 : : }
5740 : : }
5741 : : break;
5742 : : }
5743 : : default:;
5744 : : }
5745 : : }
5746 : 168 : switch (TREE_CODE (_q20))
5747 : : {
5748 : 8 : case LT_EXPR:
5749 : 8 : {
5750 : 8 : tree _q30 = TREE_OPERAND (_q20, 0);
5751 : 8 : tree _q31 = TREE_OPERAND (_q20, 1);
5752 : 8 : if (integer_zerop (_q22))
5753 : : {
5754 : 8 : switch (TREE_CODE (_p1))
5755 : : {
5756 : 0 : case VEC_COND_EXPR:
5757 : 0 : {
5758 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
5759 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
5760 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
5761 : 0 : switch (TREE_CODE (_q80))
5762 : : {
5763 : 0 : case GE_EXPR:
5764 : 0 : {
5765 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5766 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5767 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5768 : : {
5769 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5770 : : {
5771 : 0 : if (integer_zerop (_q82))
5772 : : {
5773 : 0 : {
5774 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
5775 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, PLUS_EXPR, LT_EXPR, GE_EXPR);
5776 : 0 : if (res) return res;
5777 : : }
5778 : : }
5779 : : }
5780 : : }
5781 : : break;
5782 : : }
5783 : : default:;
5784 : : }
5785 : : break;
5786 : : }
5787 : : default:;
5788 : : }
5789 : : }
5790 : : break;
5791 : : }
5792 : 8 : case LE_EXPR:
5793 : 8 : {
5794 : 8 : tree _q30 = TREE_OPERAND (_q20, 0);
5795 : 8 : tree _q31 = TREE_OPERAND (_q20, 1);
5796 : 8 : if (integer_zerop (_q22))
5797 : : {
5798 : 8 : switch (TREE_CODE (_p1))
5799 : : {
5800 : 0 : case VEC_COND_EXPR:
5801 : 0 : {
5802 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
5803 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
5804 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
5805 : 0 : switch (TREE_CODE (_q80))
5806 : : {
5807 : 0 : case GT_EXPR:
5808 : 0 : {
5809 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5810 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5811 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5812 : : {
5813 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5814 : : {
5815 : 0 : if (integer_zerop (_q82))
5816 : : {
5817 : 0 : {
5818 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
5819 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, PLUS_EXPR, LE_EXPR, GT_EXPR);
5820 : 0 : if (res) return res;
5821 : : }
5822 : : }
5823 : : }
5824 : : }
5825 : : break;
5826 : : }
5827 : : default:;
5828 : : }
5829 : : break;
5830 : : }
5831 : : default:;
5832 : : }
5833 : : }
5834 : : break;
5835 : : }
5836 : 34 : case EQ_EXPR:
5837 : 34 : {
5838 : 34 : tree _q30 = TREE_OPERAND (_q20, 0);
5839 : 34 : tree _q31 = TREE_OPERAND (_q20, 1);
5840 : 34 : if (integer_zerop (_q22))
5841 : : {
5842 : 34 : switch (TREE_CODE (_p1))
5843 : : {
5844 : 24 : case VEC_COND_EXPR:
5845 : 24 : {
5846 : 24 : tree _q80 = TREE_OPERAND (_p1, 0);
5847 : 24 : tree _q81 = TREE_OPERAND (_p1, 1);
5848 : 24 : tree _q82 = TREE_OPERAND (_p1, 2);
5849 : 24 : switch (TREE_CODE (_q80))
5850 : : {
5851 : 24 : case NE_EXPR:
5852 : 24 : {
5853 : 24 : tree _q90 = TREE_OPERAND (_q80, 0);
5854 : 24 : tree _q91 = TREE_OPERAND (_q80, 1);
5855 : 24 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5856 : : {
5857 : 24 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5858 : : {
5859 : 24 : if (integer_zerop (_q82))
5860 : : {
5861 : 24 : {
5862 : 24 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
5863 : 24 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, PLUS_EXPR, EQ_EXPR, NE_EXPR);
5864 : 24 : if (res) return res;
5865 : : }
5866 : : }
5867 : : }
5868 : : }
5869 : : break;
5870 : : }
5871 : : default:;
5872 : : }
5873 : : break;
5874 : : }
5875 : : default:;
5876 : : }
5877 : : }
5878 : : break;
5879 : : }
5880 : 22 : case NE_EXPR:
5881 : 22 : {
5882 : 22 : tree _q30 = TREE_OPERAND (_q20, 0);
5883 : 22 : tree _q31 = TREE_OPERAND (_q20, 1);
5884 : 22 : if (integer_zerop (_q22))
5885 : : {
5886 : 8 : switch (TREE_CODE (_p1))
5887 : : {
5888 : 0 : case VEC_COND_EXPR:
5889 : 0 : {
5890 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
5891 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
5892 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
5893 : 0 : switch (TREE_CODE (_q80))
5894 : : {
5895 : 0 : case EQ_EXPR:
5896 : 0 : {
5897 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5898 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5899 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5900 : : {
5901 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5902 : : {
5903 : 0 : if (integer_zerop (_q82))
5904 : : {
5905 : 0 : {
5906 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
5907 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, PLUS_EXPR, NE_EXPR, EQ_EXPR);
5908 : 0 : if (res) return res;
5909 : : }
5910 : : }
5911 : : }
5912 : : }
5913 : : break;
5914 : : }
5915 : : default:;
5916 : : }
5917 : : break;
5918 : : }
5919 : : default:;
5920 : : }
5921 : : }
5922 : : break;
5923 : : }
5924 : 15 : case GE_EXPR:
5925 : 15 : {
5926 : 15 : tree _q30 = TREE_OPERAND (_q20, 0);
5927 : 15 : tree _q31 = TREE_OPERAND (_q20, 1);
5928 : 15 : if (integer_zerop (_q22))
5929 : : {
5930 : 15 : switch (TREE_CODE (_p1))
5931 : : {
5932 : 0 : case VEC_COND_EXPR:
5933 : 0 : {
5934 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
5935 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
5936 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
5937 : 0 : switch (TREE_CODE (_q80))
5938 : : {
5939 : 0 : case LT_EXPR:
5940 : 0 : {
5941 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5942 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5943 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5944 : : {
5945 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5946 : : {
5947 : 0 : if (integer_zerop (_q82))
5948 : : {
5949 : 0 : {
5950 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
5951 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, PLUS_EXPR, GE_EXPR, LT_EXPR);
5952 : 0 : if (res) return res;
5953 : : }
5954 : : }
5955 : : }
5956 : : }
5957 : : break;
5958 : : }
5959 : : default:;
5960 : : }
5961 : : break;
5962 : : }
5963 : : default:;
5964 : : }
5965 : : }
5966 : : break;
5967 : : }
5968 : 81 : case GT_EXPR:
5969 : 81 : {
5970 : 81 : tree _q30 = TREE_OPERAND (_q20, 0);
5971 : 81 : tree _q31 = TREE_OPERAND (_q20, 1);
5972 : 81 : if (integer_zerop (_q22))
5973 : : {
5974 : 33 : switch (TREE_CODE (_p1))
5975 : : {
5976 : 0 : case VEC_COND_EXPR:
5977 : 0 : {
5978 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
5979 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
5980 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
5981 : 0 : switch (TREE_CODE (_q80))
5982 : : {
5983 : 0 : case LE_EXPR:
5984 : 0 : {
5985 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
5986 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
5987 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
5988 : : {
5989 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
5990 : : {
5991 : 0 : if (integer_zerop (_q82))
5992 : : {
5993 : 0 : {
5994 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
5995 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, PLUS_EXPR, GT_EXPR, LE_EXPR);
5996 : 0 : if (res) return res;
5997 : : }
5998 : : }
5999 : : }
6000 : : }
6001 : : break;
6002 : : }
6003 : : default:;
6004 : : }
6005 : : break;
6006 : : }
6007 : : default:;
6008 : : }
6009 : : }
6010 : : break;
6011 : : }
6012 : 0 : case UNORDERED_EXPR:
6013 : 0 : {
6014 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
6015 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
6016 : 0 : if (integer_zerop (_q22))
6017 : : {
6018 : 0 : switch (TREE_CODE (_p1))
6019 : : {
6020 : 0 : case VEC_COND_EXPR:
6021 : 0 : {
6022 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
6023 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
6024 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
6025 : 0 : switch (TREE_CODE (_q80))
6026 : : {
6027 : 0 : case ORDERED_EXPR:
6028 : 0 : {
6029 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
6030 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
6031 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
6032 : : {
6033 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
6034 : : {
6035 : 0 : if (integer_zerop (_q82))
6036 : : {
6037 : 0 : {
6038 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
6039 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, PLUS_EXPR, UNORDERED_EXPR, ORDERED_EXPR);
6040 : 0 : if (res) return res;
6041 : : }
6042 : : }
6043 : : }
6044 : : }
6045 : : break;
6046 : : }
6047 : : default:;
6048 : : }
6049 : : break;
6050 : : }
6051 : : default:;
6052 : : }
6053 : : }
6054 : : break;
6055 : : }
6056 : 0 : case ORDERED_EXPR:
6057 : 0 : {
6058 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
6059 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
6060 : 0 : if (integer_zerop (_q22))
6061 : : {
6062 : 0 : switch (TREE_CODE (_p1))
6063 : : {
6064 : 0 : case VEC_COND_EXPR:
6065 : 0 : {
6066 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
6067 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
6068 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
6069 : 0 : switch (TREE_CODE (_q80))
6070 : : {
6071 : 0 : case UNORDERED_EXPR:
6072 : 0 : {
6073 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
6074 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
6075 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
6076 : : {
6077 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
6078 : : {
6079 : 0 : if (integer_zerop (_q82))
6080 : : {
6081 : 0 : {
6082 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
6083 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, PLUS_EXPR, ORDERED_EXPR, UNORDERED_EXPR);
6084 : 0 : if (res) return res;
6085 : : }
6086 : : }
6087 : : }
6088 : : }
6089 : : break;
6090 : : }
6091 : : default:;
6092 : : }
6093 : : break;
6094 : : }
6095 : : default:;
6096 : : }
6097 : : }
6098 : : break;
6099 : : }
6100 : 0 : case UNLT_EXPR:
6101 : 0 : {
6102 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
6103 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
6104 : 0 : if (integer_zerop (_q22))
6105 : : {
6106 : 0 : switch (TREE_CODE (_p1))
6107 : : {
6108 : 0 : case VEC_COND_EXPR:
6109 : 0 : {
6110 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
6111 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
6112 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
6113 : 0 : switch (TREE_CODE (_q80))
6114 : : {
6115 : 0 : case GE_EXPR:
6116 : 0 : {
6117 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
6118 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
6119 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
6120 : : {
6121 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
6122 : : {
6123 : 0 : if (integer_zerop (_q82))
6124 : : {
6125 : 0 : {
6126 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
6127 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, PLUS_EXPR, UNLT_EXPR, GE_EXPR);
6128 : 0 : if (res) return res;
6129 : : }
6130 : : }
6131 : : }
6132 : : }
6133 : : break;
6134 : : }
6135 : : default:;
6136 : : }
6137 : : break;
6138 : : }
6139 : : default:;
6140 : : }
6141 : : }
6142 : : break;
6143 : : }
6144 : 0 : case UNLE_EXPR:
6145 : 0 : {
6146 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
6147 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
6148 : 0 : if (integer_zerop (_q22))
6149 : : {
6150 : 0 : switch (TREE_CODE (_p1))
6151 : : {
6152 : 0 : case VEC_COND_EXPR:
6153 : 0 : {
6154 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
6155 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
6156 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
6157 : 0 : switch (TREE_CODE (_q80))
6158 : : {
6159 : 0 : case GT_EXPR:
6160 : 0 : {
6161 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
6162 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
6163 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
6164 : : {
6165 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
6166 : : {
6167 : 0 : if (integer_zerop (_q82))
6168 : : {
6169 : 0 : {
6170 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
6171 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, PLUS_EXPR, UNLE_EXPR, GT_EXPR);
6172 : 0 : if (res) return res;
6173 : : }
6174 : : }
6175 : : }
6176 : : }
6177 : : break;
6178 : : }
6179 : : default:;
6180 : : }
6181 : : break;
6182 : : }
6183 : : default:;
6184 : : }
6185 : : }
6186 : : break;
6187 : : }
6188 : 0 : case UNGT_EXPR:
6189 : 0 : {
6190 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
6191 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
6192 : 0 : if (integer_zerop (_q22))
6193 : : {
6194 : 0 : switch (TREE_CODE (_p1))
6195 : : {
6196 : 0 : case VEC_COND_EXPR:
6197 : 0 : {
6198 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
6199 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
6200 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
6201 : 0 : switch (TREE_CODE (_q80))
6202 : : {
6203 : 0 : case LE_EXPR:
6204 : 0 : {
6205 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
6206 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
6207 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
6208 : : {
6209 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
6210 : : {
6211 : 0 : if (integer_zerop (_q82))
6212 : : {
6213 : 0 : {
6214 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
6215 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, PLUS_EXPR, UNGT_EXPR, LE_EXPR);
6216 : 0 : if (res) return res;
6217 : : }
6218 : : }
6219 : : }
6220 : : }
6221 : : break;
6222 : : }
6223 : : default:;
6224 : : }
6225 : : break;
6226 : : }
6227 : : default:;
6228 : : }
6229 : : }
6230 : : break;
6231 : : }
6232 : 0 : case UNGE_EXPR:
6233 : 0 : {
6234 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
6235 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
6236 : 0 : if (integer_zerop (_q22))
6237 : : {
6238 : 0 : switch (TREE_CODE (_p1))
6239 : : {
6240 : 0 : case VEC_COND_EXPR:
6241 : 0 : {
6242 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
6243 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
6244 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
6245 : 0 : switch (TREE_CODE (_q80))
6246 : : {
6247 : 0 : case LT_EXPR:
6248 : 0 : {
6249 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
6250 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
6251 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
6252 : : {
6253 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
6254 : : {
6255 : 0 : if (integer_zerop (_q82))
6256 : : {
6257 : 0 : {
6258 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
6259 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, PLUS_EXPR, UNGE_EXPR, LT_EXPR);
6260 : 0 : if (res) return res;
6261 : : }
6262 : : }
6263 : : }
6264 : : }
6265 : : break;
6266 : : }
6267 : : default:;
6268 : : }
6269 : : break;
6270 : : }
6271 : : default:;
6272 : : }
6273 : : }
6274 : : break;
6275 : : }
6276 : 0 : case UNEQ_EXPR:
6277 : 0 : {
6278 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
6279 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
6280 : 0 : if (integer_zerop (_q22))
6281 : : {
6282 : 0 : switch (TREE_CODE (_p1))
6283 : : {
6284 : 0 : case VEC_COND_EXPR:
6285 : 0 : {
6286 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
6287 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
6288 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
6289 : 0 : switch (TREE_CODE (_q80))
6290 : : {
6291 : 0 : case LTGT_EXPR:
6292 : 0 : {
6293 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
6294 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
6295 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
6296 : : {
6297 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
6298 : : {
6299 : 0 : if (integer_zerop (_q82))
6300 : : {
6301 : 0 : {
6302 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
6303 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, PLUS_EXPR, UNEQ_EXPR, LTGT_EXPR);
6304 : 0 : if (res) return res;
6305 : : }
6306 : : }
6307 : : }
6308 : : }
6309 : : break;
6310 : : }
6311 : : default:;
6312 : : }
6313 : : break;
6314 : : }
6315 : : default:;
6316 : : }
6317 : : }
6318 : : break;
6319 : : }
6320 : 0 : case LTGT_EXPR:
6321 : 0 : {
6322 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
6323 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
6324 : 0 : if (integer_zerop (_q22))
6325 : : {
6326 : 0 : switch (TREE_CODE (_p1))
6327 : : {
6328 : 0 : case VEC_COND_EXPR:
6329 : 0 : {
6330 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
6331 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
6332 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
6333 : 0 : switch (TREE_CODE (_q80))
6334 : : {
6335 : 0 : case UNEQ_EXPR:
6336 : 0 : {
6337 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
6338 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
6339 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
6340 : : {
6341 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
6342 : : {
6343 : 0 : if (integer_zerop (_q82))
6344 : : {
6345 : 0 : {
6346 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
6347 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, PLUS_EXPR, LTGT_EXPR, UNEQ_EXPR);
6348 : 0 : if (res) return res;
6349 : : }
6350 : : }
6351 : : }
6352 : : }
6353 : : break;
6354 : : }
6355 : : default:;
6356 : : }
6357 : : break;
6358 : : }
6359 : : default:;
6360 : : }
6361 : : }
6362 : : break;
6363 : : }
6364 : : default:;
6365 : : }
6366 : : break;
6367 : : }
6368 : 66184101 : default:;
6369 : : }
6370 : 66184101 : {
6371 : 66184101 : tree _p0_pops[1];
6372 : 66184101 : if (tree_nop_convert (_p0, _p0_pops))
6373 : : {
6374 : 13134470 : tree _q20 = _p0_pops[0];
6375 : 13134470 : switch (TREE_CODE (_q20))
6376 : : {
6377 : 137905 : case MINUS_EXPR:
6378 : 137905 : {
6379 : 137905 : tree _q30 = TREE_OPERAND (_q20, 0);
6380 : 137905 : tree _q31 = TREE_OPERAND (_q20, 1);
6381 : 137905 : switch (TREE_CODE (_q30))
6382 : : {
6383 : 2 : case BIT_AND_EXPR:
6384 : 2 : {
6385 : 2 : tree _q40 = TREE_OPERAND (_q30, 0);
6386 : 2 : tree _q41 = TREE_OPERAND (_q30, 1);
6387 : 2 : switch (TREE_CODE (_q31))
6388 : : {
6389 : 1 : case BIT_IOR_EXPR:
6390 : 1 : {
6391 : 1 : tree _q70 = TREE_OPERAND (_q31, 0);
6392 : 1 : tree _q71 = TREE_OPERAND (_q31, 1);
6393 : 1 : if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
6394 : : {
6395 : 1 : if ((_q71 == _q41 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q41, 0) && types_match (_q71, _q41)))
6396 : : {
6397 : 1 : if (integer_all_onesp (_p1))
6398 : : {
6399 : 1 : {
6400 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q40, _q41 };
6401 : 1 : tree res = generic_simplify_11 (loc, type, _p0, _p1, captures);
6402 : 1 : if (res) return res;
6403 : : }
6404 : : }
6405 : : }
6406 : : }
6407 : 0 : if ((_q70 == _q41 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q41, 0) && types_match (_q70, _q41)))
6408 : : {
6409 : 0 : if ((_q71 == _q40 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q40, 0) && types_match (_q71, _q40)))
6410 : : {
6411 : 0 : if (integer_all_onesp (_p1))
6412 : : {
6413 : 0 : {
6414 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q41, _q40 };
6415 : 0 : tree res = generic_simplify_11 (loc, type, _p0, _p1, captures);
6416 : 0 : if (res) return res;
6417 : : }
6418 : : }
6419 : : }
6420 : : }
6421 : : break;
6422 : : }
6423 : : default:;
6424 : : }
6425 : : break;
6426 : : }
6427 : 137904 : default:;
6428 : : }
6429 : 137904 : {
6430 : 137904 : tree _q30_pops[1];
6431 : 137904 : if (tree_nop_convert (_q30, _q30_pops))
6432 : : {
6433 : 87751 : tree _q40 = _q30_pops[0];
6434 : 87751 : switch (TREE_CODE (_q40))
6435 : : {
6436 : 0 : case BIT_AND_EXPR:
6437 : 0 : {
6438 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
6439 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
6440 : 0 : {
6441 : 0 : tree _q31_pops[1];
6442 : 0 : if (tree_nop_convert (_q31, _q31_pops))
6443 : : {
6444 : 0 : tree _q80 = _q31_pops[0];
6445 : 0 : switch (TREE_CODE (_q80))
6446 : : {
6447 : 0 : case BIT_IOR_EXPR:
6448 : 0 : {
6449 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
6450 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
6451 : 0 : if ((_q90 == _q50 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q50, 0) && types_match (_q90, _q50)))
6452 : : {
6453 : 0 : if ((_q91 == _q51 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q51, 0) && types_match (_q91, _q51)))
6454 : : {
6455 : 0 : if (integer_all_onesp (_p1))
6456 : : {
6457 : 0 : {
6458 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q50, _q51 };
6459 : 0 : tree res = generic_simplify_11 (loc, type, _p0, _p1, captures);
6460 : 0 : if (res) return res;
6461 : : }
6462 : : }
6463 : : }
6464 : : }
6465 : 0 : if ((_q90 == _q51 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q51, 0) && types_match (_q90, _q51)))
6466 : : {
6467 : 0 : if ((_q91 == _q50 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q50, 0) && types_match (_q91, _q50)))
6468 : : {
6469 : 0 : if (integer_all_onesp (_p1))
6470 : : {
6471 : 0 : {
6472 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q51, _q50 };
6473 : 0 : tree res = generic_simplify_11 (loc, type, _p0, _p1, captures);
6474 : 0 : if (res) return res;
6475 : : }
6476 : : }
6477 : : }
6478 : : }
6479 : : break;
6480 : : }
6481 : : default:;
6482 : : }
6483 : : }
6484 : : }
6485 : 0 : break;
6486 : : }
6487 : : default:;
6488 : : }
6489 : : }
6490 : : }
6491 : 137904 : break;
6492 : : }
6493 : : default:;
6494 : : }
6495 : : }
6496 : : }
6497 : 66184100 : switch (TREE_CODE (_p1))
6498 : : {
6499 : 7627096 : CASE_CONVERT:
6500 : 7627096 : {
6501 : 7627096 : tree _q30 = TREE_OPERAND (_p1, 0);
6502 : 7627096 : switch (TREE_CODE (_q30))
6503 : : {
6504 : 338 : case NEGATE_EXPR:
6505 : 338 : {
6506 : 338 : tree _q40 = TREE_OPERAND (_q30, 0);
6507 : 338 : {
6508 : 338 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q40 };
6509 : 338 : tree res = generic_simplify_13 (loc, type, _p0, _p1, captures);
6510 : 338 : if (res) return res;
6511 : : }
6512 : 289 : break;
6513 : : }
6514 : : default:;
6515 : : }
6516 : : break;
6517 : : }
6518 : 8352 : case NEGATE_EXPR:
6519 : 8352 : {
6520 : 8352 : tree _q30 = TREE_OPERAND (_p1, 0);
6521 : 8352 : {
6522 : 8352 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
6523 : 8352 : tree res = generic_simplify_13 (loc, type, _p0, _p1, captures);
6524 : 8352 : if (res) return res;
6525 : : }
6526 : 0 : break;
6527 : : }
6528 : 66175699 : default:;
6529 : : }
6530 : 66175699 : switch (TREE_CODE (_p0))
6531 : : {
6532 : 173587 : case NEGATE_EXPR:
6533 : 173587 : {
6534 : 173587 : tree _q20 = TREE_OPERAND (_p0, 0);
6535 : 173587 : {
6536 : 173587 : tree captures[2] ATTRIBUTE_UNUSED = { _p1, _q20 };
6537 : 173587 : tree res = generic_simplify_13 (loc, type, _p0, _p1, captures);
6538 : 173587 : if (res) return res;
6539 : : }
6540 : 134 : break;
6541 : : }
6542 : 66002246 : default:;
6543 : : }
6544 : 66002246 : {
6545 : 66002246 : tree _p0_pops[1];
6546 : 66002246 : if (tree_nop_convert (_p0, _p0_pops))
6547 : : {
6548 : 13129128 : tree _q20 = _p0_pops[0];
6549 : 13129128 : switch (TREE_CODE (_q20))
6550 : : {
6551 : 137490 : case MINUS_EXPR:
6552 : 137490 : {
6553 : 137490 : tree _q30 = TREE_OPERAND (_q20, 0);
6554 : 137490 : tree _q31 = TREE_OPERAND (_q20, 1);
6555 : 137490 : {
6556 : 137490 : tree _q31_pops[1];
6557 : 137490 : if (tree_nop_convert (_q31, _q31_pops))
6558 : : {
6559 : 104171 : tree _q50 = _q31_pops[0];
6560 : 104171 : if ((_p1 == _q50 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q50, 0) && types_match (_p1, _q50)))
6561 : : {
6562 : 46 : {
6563 : 46 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q50 };
6564 : 46 : tree res = generic_simplify_12 (loc, type, _p0, _p1, captures);
6565 : 46 : if (res) return res;
6566 : : }
6567 : : }
6568 : : }
6569 : : }
6570 : 137444 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
6571 : : {
6572 : 0 : {
6573 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
6574 : 0 : tree res = generic_simplify_12 (loc, type, _p0, _p1, captures);
6575 : 0 : if (res) return res;
6576 : : }
6577 : : }
6578 : 137444 : if (CONSTANT_CLASS_P (_q31))
6579 : : {
6580 : 14007 : if (CONSTANT_CLASS_P (_p1))
6581 : : {
6582 : 13893 : {
6583 : 13893 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
6584 : 13893 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, MINUS_EXPR, PLUS_EXPR, PLUS_EXPR);
6585 : 13893 : if (res) return res;
6586 : : }
6587 : : }
6588 : : }
6589 : 123551 : if (CONSTANT_CLASS_P (_q30))
6590 : : {
6591 : 20366 : if (CONSTANT_CLASS_P (_p1))
6592 : : {
6593 : 5834 : {
6594 : 5834 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
6595 : 5834 : tree res = generic_simplify_17 (loc, type, _p0, _p1, captures, PLUS_EXPR);
6596 : 5834 : if (res) return res;
6597 : : }
6598 : : }
6599 : : }
6600 : : break;
6601 : : }
6602 : 1312173 : case PLUS_EXPR:
6603 : 1312173 : {
6604 : 1312173 : tree _q30 = TREE_OPERAND (_q20, 0);
6605 : 1312173 : tree _q31 = TREE_OPERAND (_q20, 1);
6606 : 1312173 : if (CONSTANT_CLASS_P (_q31))
6607 : : {
6608 : 1123905 : if (CONSTANT_CLASS_P (_p1))
6609 : : {
6610 : 1041107 : {
6611 : 1041107 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
6612 : 1041107 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, PLUS_EXPR, MINUS_EXPR, PLUS_EXPR);
6613 : 1041107 : if (res) return res;
6614 : : }
6615 : : }
6616 : : }
6617 : : break;
6618 : : }
6619 : : default:;
6620 : : }
6621 : : }
6622 : : }
6623 : 64942266 : switch (TREE_CODE (_p1))
6624 : : {
6625 : 154350 : case MINUS_EXPR:
6626 : 154350 : {
6627 : 154350 : tree _q30 = TREE_OPERAND (_p1, 0);
6628 : 154350 : tree _q31 = TREE_OPERAND (_p1, 1);
6629 : 154350 : {
6630 : 154350 : tree _q31_pops[1];
6631 : 154350 : if (tree_nop_convert (_q31, _q31_pops))
6632 : : {
6633 : 58707 : tree _q50 = _q31_pops[0];
6634 : 58707 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
6635 : : {
6636 : 0 : {
6637 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p0 };
6638 : 0 : tree res = generic_simplify_12 (loc, type, _p0, _p1, captures);
6639 : 0 : if (res) return res;
6640 : : }
6641 : : }
6642 : : }
6643 : : }
6644 : 154350 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
6645 : : {
6646 : 290 : {
6647 : 290 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p0 };
6648 : 290 : tree res = generic_simplify_12 (loc, type, _p0, _p1, captures);
6649 : 290 : if (res) return res;
6650 : : }
6651 : : }
6652 : : break;
6653 : : }
6654 : 64941976 : default:;
6655 : : }
6656 : 64941976 : {
6657 : 64941976 : tree _p1_pops[1];
6658 : 64941976 : if (tree_nop_convert (_p1, _p1_pops))
6659 : : {
6660 : 7398642 : tree _q30 = _p1_pops[0];
6661 : 7398642 : switch (TREE_CODE (_q30))
6662 : : {
6663 : 2812 : case MINUS_EXPR:
6664 : 2812 : {
6665 : 2812 : tree _q40 = TREE_OPERAND (_q30, 0);
6666 : 2812 : tree _q41 = TREE_OPERAND (_q30, 1);
6667 : 2812 : {
6668 : 2812 : tree _q41_pops[1];
6669 : 2812 : if (tree_nop_convert (_q41, _q41_pops))
6670 : : {
6671 : 459 : tree _q60 = _q41_pops[0];
6672 : 459 : if ((_q60 == _p0 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _p0, 0) && types_match (_q60, _p0)))
6673 : : {
6674 : 0 : {
6675 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _p0 };
6676 : 0 : tree res = generic_simplify_12 (loc, type, _p0, _p1, captures);
6677 : 0 : if (res) return res;
6678 : : }
6679 : : }
6680 : : }
6681 : : }
6682 : 2812 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
6683 : : {
6684 : 0 : {
6685 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _p0 };
6686 : 0 : tree res = generic_simplify_12 (loc, type, _p0, _p1, captures);
6687 : 0 : if (res) return res;
6688 : : }
6689 : : }
6690 : : break;
6691 : : }
6692 : : default:;
6693 : : }
6694 : : }
6695 : : }
6696 : 64941976 : switch (TREE_CODE (_p0))
6697 : : {
6698 : 6292835 : case PLUS_EXPR:
6699 : 6292835 : {
6700 : 6292835 : tree _q20 = TREE_OPERAND (_p0, 0);
6701 : 6292835 : tree _q21 = TREE_OPERAND (_p0, 1);
6702 : 6292835 : switch (TREE_CODE (_p1))
6703 : : {
6704 : 44105 : case MINUS_EXPR:
6705 : 44105 : {
6706 : 44105 : tree _q50 = TREE_OPERAND (_p1, 0);
6707 : 44105 : tree _q51 = TREE_OPERAND (_p1, 1);
6708 : 44105 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
6709 : : {
6710 : 102 : {
6711 : 102 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
6712 : 102 : tree res = generic_simplify_18 (loc, type, _p0, _p1, captures);
6713 : 102 : if (res) return res;
6714 : : }
6715 : : }
6716 : 44003 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
6717 : : {
6718 : 90 : {
6719 : 90 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
6720 : 90 : tree res = generic_simplify_18 (loc, type, _p0, _p1, captures);
6721 : 90 : if (res) return res;
6722 : : }
6723 : : }
6724 : : break;
6725 : : }
6726 : 6292643 : default:;
6727 : : }
6728 : 6292643 : if (CONSTANT_CLASS_P (_q21))
6729 : : {
6730 : 2445875 : if (CONSTANT_CLASS_P (_p1))
6731 : : {
6732 : 1783138 : {
6733 : 1783138 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
6734 : 1783138 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, PLUS_EXPR, MINUS_EXPR, PLUS_EXPR);
6735 : 1783138 : if (res) return res;
6736 : : }
6737 : : }
6738 : : }
6739 : : break;
6740 : : }
6741 : 1865467 : case MINUS_EXPR:
6742 : 1865467 : {
6743 : 1865467 : tree _q20 = TREE_OPERAND (_p0, 0);
6744 : 1865467 : tree _q21 = TREE_OPERAND (_p0, 1);
6745 : 1865467 : switch (TREE_CODE (_p1))
6746 : : {
6747 : 1785 : case PLUS_EXPR:
6748 : 1785 : {
6749 : 1785 : tree _q50 = TREE_OPERAND (_p1, 0);
6750 : 1785 : tree _q51 = TREE_OPERAND (_p1, 1);
6751 : 1785 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
6752 : : {
6753 : 284 : {
6754 : 284 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q51, _q20 };
6755 : 284 : tree res = generic_simplify_18 (loc, type, _p0, _p1, captures);
6756 : 284 : if (res) return res;
6757 : : }
6758 : : }
6759 : 1501 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
6760 : : {
6761 : 1 : {
6762 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q50, _q20 };
6763 : 1 : tree res = generic_simplify_18 (loc, type, _p0, _p1, captures);
6764 : 1 : if (res) return res;
6765 : : }
6766 : : }
6767 : : break;
6768 : : }
6769 : 404 : case MINUS_EXPR:
6770 : 404 : {
6771 : 404 : tree _q50 = TREE_OPERAND (_p1, 0);
6772 : 404 : tree _q51 = TREE_OPERAND (_p1, 1);
6773 : 404 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
6774 : : {
6775 : 1 : {
6776 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
6777 : 1 : tree res = generic_simplify_19 (loc, type, _p0, _p1, captures);
6778 : 1 : if (res) return res;
6779 : : }
6780 : : }
6781 : 403 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
6782 : : {
6783 : 9 : {
6784 : 9 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q51, _q20 };
6785 : 9 : tree res = generic_simplify_19 (loc, type, _p0, _p1, captures);
6786 : 9 : if (res) return res;
6787 : : }
6788 : : }
6789 : : break;
6790 : : }
6791 : 1865172 : default:;
6792 : : }
6793 : 1865172 : if (CONSTANT_CLASS_P (_q21))
6794 : : {
6795 : 113103 : if (CONSTANT_CLASS_P (_p1))
6796 : : {
6797 : 75569 : {
6798 : 75569 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
6799 : 75569 : tree res = generic_simplify_16 (loc, type, _p0, _p1, captures, MINUS_EXPR, PLUS_EXPR, PLUS_EXPR);
6800 : 75569 : if (res) return res;
6801 : : }
6802 : : }
6803 : : }
6804 : 1789800 : if (CONSTANT_CLASS_P (_q20))
6805 : : {
6806 : 398990 : if (CONSTANT_CLASS_P (_p1))
6807 : : {
6808 : 228791 : {
6809 : 228791 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
6810 : 228791 : tree res = generic_simplify_17 (loc, type, _p0, _p1, captures, PLUS_EXPR);
6811 : 228791 : if (res) return res;
6812 : : }
6813 : : }
6814 : : }
6815 : : break;
6816 : : }
6817 : 474 : case POINTER_DIFF_EXPR:
6818 : 474 : {
6819 : 474 : tree _q20 = TREE_OPERAND (_p0, 0);
6820 : 474 : tree _q21 = TREE_OPERAND (_p0, 1);
6821 : 474 : switch (TREE_CODE (_p1))
6822 : : {
6823 : 7 : case POINTER_DIFF_EXPR:
6824 : 7 : {
6825 : 7 : tree _q50 = TREE_OPERAND (_p1, 0);
6826 : 7 : tree _q51 = TREE_OPERAND (_p1, 1);
6827 : 7 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
6828 : : {
6829 : 7 : {
6830 : 7 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
6831 : 7 : tree res = generic_simplify_20 (loc, type, _p0, _p1, captures);
6832 : 7 : if (res) return res;
6833 : : }
6834 : : }
6835 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
6836 : : {
6837 : 0 : {
6838 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q51, _q20 };
6839 : 0 : tree res = generic_simplify_20 (loc, type, _p0, _p1, captures);
6840 : 0 : if (res) return res;
6841 : : }
6842 : : }
6843 : : break;
6844 : : }
6845 : : default:;
6846 : : }
6847 : : break;
6848 : : }
6849 : 16511213 : CASE_CONVERT:
6850 : 16511213 : {
6851 : 16511213 : tree _q20 = TREE_OPERAND (_p0, 0);
6852 : 16511213 : switch (TREE_CODE (_p1))
6853 : : {
6854 : 2561685 : CASE_CONVERT:
6855 : 2561685 : {
6856 : 2561685 : tree _q40 = TREE_OPERAND (_p1, 0);
6857 : 2561685 : {
6858 : 2561685 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
6859 : 2561685 : tree res = generic_simplify_21 (loc, type, _p0, _p1, captures, PLUS_EXPR);
6860 : 2561685 : if (res) return res;
6861 : : }
6862 : 2561550 : break;
6863 : : }
6864 : 16511078 : default:;
6865 : : }
6866 : 16511078 : switch (TREE_CODE (_q20))
6867 : : {
6868 : 121533 : case BIT_NOT_EXPR:
6869 : 121533 : {
6870 : 121533 : tree _q30 = TREE_OPERAND (_q20, 0);
6871 : 121533 : switch (TREE_CODE (_p1))
6872 : : {
6873 : 175 : CASE_CONVERT:
6874 : 175 : {
6875 : 175 : tree _q50 = TREE_OPERAND (_p1, 0);
6876 : 175 : if ((_q50 == _q30 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q30, 0) && types_match (_q50, _q30)))
6877 : : {
6878 : 0 : {
6879 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q30 };
6880 : 0 : tree res = generic_simplify_22 (loc, type, _p0, _p1, captures);
6881 : 0 : if (res) return res;
6882 : : }
6883 : : }
6884 : : break;
6885 : : }
6886 : : default:;
6887 : : }
6888 : : break;
6889 : : }
6890 : 16511078 : default:;
6891 : : }
6892 : 16511078 : switch (TREE_CODE (_p1))
6893 : : {
6894 : 2561550 : CASE_CONVERT:
6895 : 2561550 : {
6896 : 2561550 : tree _q40 = TREE_OPERAND (_p1, 0);
6897 : 2561550 : switch (TREE_CODE (_q40))
6898 : : {
6899 : 293 : case BIT_NOT_EXPR:
6900 : 293 : {
6901 : 293 : tree _q50 = TREE_OPERAND (_q40, 0);
6902 : 293 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
6903 : : {
6904 : 0 : {
6905 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
6906 : 0 : tree res = generic_simplify_22 (loc, type, _p0, _p1, captures);
6907 : 0 : if (res) return res;
6908 : : }
6909 : : }
6910 : : break;
6911 : : }
6912 : : default:;
6913 : : }
6914 : : break;
6915 : : }
6916 : : default:;
6917 : : }
6918 : : break;
6919 : : }
6920 : 318098 : case BIT_NOT_EXPR:
6921 : 318098 : {
6922 : 318098 : tree _q20 = TREE_OPERAND (_p0, 0);
6923 : 318098 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
6924 : : {
6925 : 534 : {
6926 : 534 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
6927 : 534 : tree res = generic_simplify_22 (loc, type, _p0, _p1, captures);
6928 : 534 : if (res) return res;
6929 : : }
6930 : : }
6931 : 317564 : if (integer_each_onep (_p1))
6932 : : {
6933 : 2726 : {
6934 : 2726 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
6935 : 2726 : tree res = generic_simplify_23 (loc, type, _p0, _p1, captures);
6936 : 2726 : if (res) return res;
6937 : : }
6938 : : }
6939 : : break;
6940 : : }
6941 : 62851174 : default:;
6942 : : }
6943 : 62851174 : switch (TREE_CODE (_p1))
6944 : : {
6945 : 37868 : case BIT_NOT_EXPR:
6946 : 37868 : {
6947 : 37868 : tree _q30 = TREE_OPERAND (_p1, 0);
6948 : 37868 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
6949 : : {
6950 : 0 : {
6951 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
6952 : 0 : tree res = generic_simplify_22 (loc, type, _p0, _p1, captures);
6953 : 0 : if (res) return res;
6954 : : }
6955 : : }
6956 : : break;
6957 : : }
6958 : 62851174 : default:;
6959 : : }
6960 : 62851174 : switch (TREE_CODE (_p0))
6961 : : {
6962 : 16511078 : CASE_CONVERT:
6963 : 16511078 : {
6964 : 16511078 : tree _q20 = TREE_OPERAND (_p0, 0);
6965 : 16511078 : switch (TREE_CODE (_q20))
6966 : : {
6967 : 121533 : case BIT_NOT_EXPR:
6968 : 121533 : {
6969 : 121533 : tree _q30 = TREE_OPERAND (_q20, 0);
6970 : 121533 : if (integer_each_onep (_p1))
6971 : : {
6972 : 118338 : {
6973 : 118338 : tree captures[1] ATTRIBUTE_UNUSED = { _q30 };
6974 : 118338 : tree res = generic_simplify_23 (loc, type, _p0, _p1, captures);
6975 : 118338 : if (res) return res;
6976 : : }
6977 : : }
6978 : : break;
6979 : : }
6980 : : default:;
6981 : : }
6982 : : break;
6983 : : }
6984 : 12498532 : case MULT_EXPR:
6985 : 12498532 : {
6986 : 12498532 : tree _q20 = TREE_OPERAND (_p0, 0);
6987 : 12498532 : tree _q21 = TREE_OPERAND (_p0, 1);
6988 : 12498532 : switch (TREE_CODE (_p1))
6989 : : {
6990 : 3267548 : case MULT_EXPR:
6991 : 3267548 : {
6992 : 3267548 : tree _q50 = TREE_OPERAND (_p1, 0);
6993 : 3267548 : tree _q51 = TREE_OPERAND (_p1, 1);
6994 : 3267548 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
6995 : : {
6996 : 791830 : {
6997 : 791830 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
6998 : 791830 : tree res = generic_simplify_24 (loc, type, _p0, _p1, captures, PLUS_EXPR);
6999 : 791830 : if (res) return res;
7000 : : }
7001 : : }
7002 : 3263055 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
7003 : : {
7004 : 59 : {
7005 : 59 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
7006 : 59 : tree res = generic_simplify_24 (loc, type, _p0, _p1, captures, PLUS_EXPR);
7007 : 59 : if (res) return res;
7008 : : }
7009 : : }
7010 : 3263050 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7011 : : {
7012 : 237 : {
7013 : 237 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
7014 : 237 : tree res = generic_simplify_24 (loc, type, _p0, _p1, captures, PLUS_EXPR);
7015 : 237 : if (res) return res;
7016 : : }
7017 : : }
7018 : 3262883 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7019 : : {
7020 : 1232693 : {
7021 : 1232693 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
7022 : 1232693 : tree res = generic_simplify_24 (loc, type, _p0, _p1, captures, PLUS_EXPR);
7023 : 1232693 : if (res) return res;
7024 : : }
7025 : : }
7026 : : break;
7027 : : }
7028 : : default:;
7029 : : }
7030 : : break;
7031 : : }
7032 : 61496439 : default:;
7033 : : }
7034 : 61496439 : switch (TREE_CODE (_p1))
7035 : : {
7036 : 3428800 : case MULT_EXPR:
7037 : 3428800 : {
7038 : 3428800 : tree _q30 = TREE_OPERAND (_p1, 0);
7039 : 3428800 : tree _q31 = TREE_OPERAND (_p1, 1);
7040 : 3428800 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
7041 : : {
7042 : 3841 : {
7043 : 3841 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q31 };
7044 : 3841 : tree res = generic_simplify_25 (loc, type, _p0, _p1, captures, PLUS_EXPR);
7045 : 3841 : if (res) return res;
7046 : : }
7047 : : }
7048 : 3425006 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
7049 : : {
7050 : 2 : {
7051 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q30 };
7052 : 2 : tree res = generic_simplify_25 (loc, type, _p0, _p1, captures, PLUS_EXPR);
7053 : 2 : if (res) return res;
7054 : : }
7055 : : }
7056 : : break;
7057 : : }
7058 : 61492643 : default:;
7059 : : }
7060 : 61492643 : switch (TREE_CODE (_p0))
7061 : : {
7062 : 11261320 : case MULT_EXPR:
7063 : 11261320 : {
7064 : 11261320 : tree _q20 = TREE_OPERAND (_p0, 0);
7065 : 11261320 : tree _q21 = TREE_OPERAND (_p0, 1);
7066 : 11261320 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
7067 : : {
7068 : 32751 : {
7069 : 32751 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
7070 : 32751 : tree res = generic_simplify_26 (loc, type, _p0, _p1, captures, PLUS_EXPR);
7071 : 32751 : if (res) return res;
7072 : : }
7073 : : }
7074 : 11229184 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
7075 : : {
7076 : 291031 : {
7077 : 291031 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
7078 : 291031 : tree res = generic_simplify_26 (loc, type, _p0, _p1, captures, PLUS_EXPR);
7079 : 291031 : if (res) return res;
7080 : : }
7081 : : }
7082 : 10938752 : if (integer_nonzerop (_q20))
7083 : : {
7084 : 99 : switch (TREE_CODE (_p1))
7085 : : {
7086 : 47 : case INTEGER_CST:
7087 : 47 : {
7088 : 47 : {
7089 : 47 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
7090 : 47 : tree res = generic_simplify_27 (loc, type, _p0, _p1, captures);
7091 : 47 : if (res) return res;
7092 : : }
7093 : 47 : break;
7094 : : }
7095 : : default:;
7096 : : }
7097 : : }
7098 : 10938752 : if (integer_nonzerop (_q21))
7099 : : {
7100 : 7077155 : switch (TREE_CODE (_p1))
7101 : : {
7102 : 3452726 : case INTEGER_CST:
7103 : 3452726 : {
7104 : 3452726 : {
7105 : 3452726 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1 };
7106 : 3452726 : tree res = generic_simplify_27 (loc, type, _p0, _p1, captures);
7107 : 3452726 : if (res) return res;
7108 : : }
7109 : 3063954 : break;
7110 : : }
7111 : : default:;
7112 : : }
7113 : : }
7114 : 10549980 : switch (TREE_CODE (_q20))
7115 : : {
7116 : 183334 : case MINUS_EXPR:
7117 : 183334 : {
7118 : 183334 : tree _q30 = TREE_OPERAND (_q20, 0);
7119 : 183334 : tree _q31 = TREE_OPERAND (_q20, 1);
7120 : 183334 : if (tree_zero_one_valued_p (_q21))
7121 : : {
7122 : 0 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
7123 : : {
7124 : 0 : {
7125 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q21 };
7126 : 0 : tree res = generic_simplify_28 (loc, type, _p0, _p1, captures);
7127 : 0 : if (res) return res;
7128 : : }
7129 : : }
7130 : : }
7131 : : break;
7132 : : }
7133 : 10549980 : default:;
7134 : : }
7135 : 10549980 : if (tree_zero_one_valued_p (_q20))
7136 : : {
7137 : 39432 : switch (TREE_CODE (_q21))
7138 : : {
7139 : 9 : case MINUS_EXPR:
7140 : 9 : {
7141 : 9 : tree _q40 = TREE_OPERAND (_q21, 0);
7142 : 9 : tree _q41 = TREE_OPERAND (_q21, 1);
7143 : 9 : if ((_p1 == _q41 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q41, 0) && types_match (_p1, _q41)))
7144 : : {
7145 : 9 : {
7146 : 9 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _q20 };
7147 : 9 : tree res = generic_simplify_28 (loc, type, _p0, _p1, captures);
7148 : 9 : if (res) return res;
7149 : : }
7150 : : }
7151 : : break;
7152 : : }
7153 : : default:;
7154 : : }
7155 : : }
7156 : : break;
7157 : : }
7158 : 3087 : case MIN_EXPR:
7159 : 3087 : {
7160 : 3087 : tree _q20 = TREE_OPERAND (_p0, 0);
7161 : 3087 : tree _q21 = TREE_OPERAND (_p0, 1);
7162 : 3087 : switch (TREE_CODE (_p1))
7163 : : {
7164 : 0 : case MAX_EXPR:
7165 : 0 : {
7166 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
7167 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
7168 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
7169 : : {
7170 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7171 : : {
7172 : 0 : {
7173 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7174 : 0 : if (!HONOR_NANS (captures[0])
7175 : : )
7176 : : {
7177 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1264;
7178 : 0 : {
7179 : 0 : tree res_op0;
7180 : 0 : res_op0 = captures[0];
7181 : 0 : tree res_op1;
7182 : 0 : res_op1 = captures[1];
7183 : 0 : tree _r;
7184 : 0 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
7185 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 894, __FILE__, __LINE__, true);
7186 : 0 : return _r;
7187 : : }
7188 : 0 : next_after_fail1264:;
7189 : : }
7190 : : }
7191 : : }
7192 : : }
7193 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7194 : : {
7195 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
7196 : : {
7197 : 0 : {
7198 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
7199 : 0 : if (!HONOR_NANS (captures[0])
7200 : : )
7201 : : {
7202 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1265;
7203 : 0 : {
7204 : 0 : tree res_op0;
7205 : 0 : res_op0 = captures[0];
7206 : 0 : tree res_op1;
7207 : 0 : res_op1 = captures[1];
7208 : 0 : tree _r;
7209 : 0 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
7210 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 894, __FILE__, __LINE__, true);
7211 : 0 : return _r;
7212 : : }
7213 : 0 : next_after_fail1265:;
7214 : : }
7215 : : }
7216 : : }
7217 : : }
7218 : : break;
7219 : : }
7220 : : default:;
7221 : : }
7222 : : break;
7223 : : }
7224 : 11618 : case MAX_EXPR:
7225 : 11618 : {
7226 : 11618 : tree _q20 = TREE_OPERAND (_p0, 0);
7227 : 11618 : tree _q21 = TREE_OPERAND (_p0, 1);
7228 : 11618 : switch (TREE_CODE (_p1))
7229 : : {
7230 : 0 : case MIN_EXPR:
7231 : 0 : {
7232 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
7233 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
7234 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
7235 : : {
7236 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7237 : : {
7238 : 0 : {
7239 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7240 : 0 : if (!HONOR_NANS (captures[0])
7241 : : )
7242 : : {
7243 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1266;
7244 : 0 : {
7245 : 0 : tree res_op0;
7246 : 0 : res_op0 = captures[0];
7247 : 0 : tree res_op1;
7248 : 0 : res_op1 = captures[1];
7249 : 0 : tree _r;
7250 : 0 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
7251 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 894, __FILE__, __LINE__, true);
7252 : 0 : return _r;
7253 : : }
7254 : 0 : next_after_fail1266:;
7255 : : }
7256 : : }
7257 : : }
7258 : : }
7259 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7260 : : {
7261 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
7262 : : {
7263 : 0 : {
7264 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7265 : 0 : if (!HONOR_NANS (captures[0])
7266 : : )
7267 : : {
7268 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1267;
7269 : 0 : {
7270 : 0 : tree res_op0;
7271 : 0 : res_op0 = captures[0];
7272 : 0 : tree res_op1;
7273 : 0 : res_op1 = captures[1];
7274 : 0 : tree _r;
7275 : 0 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
7276 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 894, __FILE__, __LINE__, true);
7277 : 0 : return _r;
7278 : : }
7279 : 0 : next_after_fail1267:;
7280 : : }
7281 : : }
7282 : : }
7283 : : }
7284 : : break;
7285 : : }
7286 : : default:;
7287 : : }
7288 : : break;
7289 : : }
7290 : 60781301 : default:;
7291 : : }
7292 : 60781301 : switch (TREE_CODE (_p1))
7293 : : {
7294 : 3424940 : case MULT_EXPR:
7295 : 3424940 : {
7296 : 3424940 : tree _q30 = TREE_OPERAND (_p1, 0);
7297 : 3424940 : tree _q31 = TREE_OPERAND (_p1, 1);
7298 : 3424940 : switch (TREE_CODE (_q30))
7299 : : {
7300 : 109562 : case MINUS_EXPR:
7301 : 109562 : {
7302 : 109562 : tree _q40 = TREE_OPERAND (_q30, 0);
7303 : 109562 : tree _q41 = TREE_OPERAND (_q30, 1);
7304 : 109562 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
7305 : : {
7306 : 16 : if (tree_zero_one_valued_p (_q31))
7307 : : {
7308 : 0 : {
7309 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q40, _q31 };
7310 : 0 : tree res = generic_simplify_28 (loc, type, _p0, _p1, captures);
7311 : 0 : if (res) return res;
7312 : : }
7313 : : }
7314 : : }
7315 : : break;
7316 : : }
7317 : 3424940 : default:;
7318 : : }
7319 : 3424940 : if (tree_zero_one_valued_p (_q30))
7320 : : {
7321 : 13264 : switch (TREE_CODE (_q31))
7322 : : {
7323 : 0 : case MINUS_EXPR:
7324 : 0 : {
7325 : 0 : tree _q50 = TREE_OPERAND (_q31, 0);
7326 : 0 : tree _q51 = TREE_OPERAND (_q31, 1);
7327 : 0 : if ((_q51 == _p0 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _p0, 0) && types_match (_q51, _p0)))
7328 : : {
7329 : 0 : {
7330 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q50, _q30 };
7331 : 0 : tree res = generic_simplify_28 (loc, type, _p0, _p1, captures);
7332 : 0 : if (res) return res;
7333 : : }
7334 : : }
7335 : : break;
7336 : : }
7337 : : default:;
7338 : : }
7339 : : }
7340 : : break;
7341 : : }
7342 : 60781301 : default:;
7343 : : }
7344 : 60781301 : switch (TREE_CODE (_p0))
7345 : : {
7346 : 10549978 : case MULT_EXPR:
7347 : 10549978 : {
7348 : 10549978 : tree _q20 = TREE_OPERAND (_p0, 0);
7349 : 10549978 : tree _q21 = TREE_OPERAND (_p0, 1);
7350 : 10549978 : switch (TREE_CODE (_q20))
7351 : : {
7352 : 18527 : case TRUNC_DIV_EXPR:
7353 : 18527 : {
7354 : 18527 : tree _q30 = TREE_OPERAND (_q20, 0);
7355 : 18527 : tree _q31 = TREE_OPERAND (_q20, 1);
7356 : 18527 : if ((_q21 == _q31 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q31, 0) && types_match (_q21, _q31)))
7357 : : {
7358 : 2308 : switch (TREE_CODE (_p1))
7359 : : {
7360 : 2 : case TRUNC_MOD_EXPR:
7361 : 2 : {
7362 : 2 : tree _q70 = TREE_OPERAND (_p1, 0);
7363 : 2 : tree _q71 = TREE_OPERAND (_p1, 1);
7364 : 2 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
7365 : : {
7366 : 2 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
7367 : : {
7368 : 2 : {
7369 : 2 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
7370 : 2 : tree res = generic_simplify_29 (loc, type, _p0, _p1, captures, TRUNC_DIV_EXPR, TRUNC_MOD_EXPR);
7371 : 2 : if (res) return res;
7372 : : }
7373 : : }
7374 : : }
7375 : : break;
7376 : : }
7377 : : default:;
7378 : : }
7379 : : }
7380 : : break;
7381 : : }
7382 : 0 : case CEIL_DIV_EXPR:
7383 : 0 : {
7384 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7385 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7386 : 0 : if ((_q21 == _q31 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q31, 0) && types_match (_q21, _q31)))
7387 : : {
7388 : 0 : switch (TREE_CODE (_p1))
7389 : : {
7390 : 0 : case CEIL_MOD_EXPR:
7391 : 0 : {
7392 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
7393 : 0 : tree _q71 = TREE_OPERAND (_p1, 1);
7394 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
7395 : : {
7396 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
7397 : : {
7398 : 0 : {
7399 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
7400 : 0 : tree res = generic_simplify_29 (loc, type, _p0, _p1, captures, CEIL_DIV_EXPR, CEIL_MOD_EXPR);
7401 : 0 : if (res) return res;
7402 : : }
7403 : : }
7404 : : }
7405 : : break;
7406 : : }
7407 : : default:;
7408 : : }
7409 : : }
7410 : : break;
7411 : : }
7412 : 0 : case FLOOR_DIV_EXPR:
7413 : 0 : {
7414 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7415 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7416 : 0 : if ((_q21 == _q31 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q31, 0) && types_match (_q21, _q31)))
7417 : : {
7418 : 0 : switch (TREE_CODE (_p1))
7419 : : {
7420 : 0 : case FLOOR_MOD_EXPR:
7421 : 0 : {
7422 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
7423 : 0 : tree _q71 = TREE_OPERAND (_p1, 1);
7424 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
7425 : : {
7426 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
7427 : : {
7428 : 0 : {
7429 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
7430 : 0 : tree res = generic_simplify_29 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR, FLOOR_MOD_EXPR);
7431 : 0 : if (res) return res;
7432 : : }
7433 : : }
7434 : : }
7435 : : break;
7436 : : }
7437 : : default:;
7438 : : }
7439 : : }
7440 : : break;
7441 : : }
7442 : 0 : case ROUND_DIV_EXPR:
7443 : 0 : {
7444 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7445 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7446 : 0 : if ((_q21 == _q31 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q31, 0) && types_match (_q21, _q31)))
7447 : : {
7448 : 0 : switch (TREE_CODE (_p1))
7449 : : {
7450 : 0 : case ROUND_MOD_EXPR:
7451 : 0 : {
7452 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
7453 : 0 : tree _q71 = TREE_OPERAND (_p1, 1);
7454 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
7455 : : {
7456 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
7457 : : {
7458 : 0 : {
7459 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
7460 : 0 : tree res = generic_simplify_29 (loc, type, _p0, _p1, captures, ROUND_DIV_EXPR, ROUND_MOD_EXPR);
7461 : 0 : if (res) return res;
7462 : : }
7463 : : }
7464 : : }
7465 : : break;
7466 : : }
7467 : : default:;
7468 : : }
7469 : : }
7470 : : break;
7471 : : }
7472 : 10549976 : default:;
7473 : : }
7474 : 10549976 : switch (TREE_CODE (_q21))
7475 : : {
7476 : 5 : case TRUNC_DIV_EXPR:
7477 : 5 : {
7478 : 5 : tree _q40 = TREE_OPERAND (_q21, 0);
7479 : 5 : tree _q41 = TREE_OPERAND (_q21, 1);
7480 : 5 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _q20, 0) && types_match (_q41, _q20)))
7481 : : {
7482 : 0 : switch (TREE_CODE (_p1))
7483 : : {
7484 : 0 : case TRUNC_MOD_EXPR:
7485 : 0 : {
7486 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
7487 : 0 : tree _q71 = TREE_OPERAND (_p1, 1);
7488 : 0 : if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
7489 : : {
7490 : 0 : if ((_q71 == _q20 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q20, 0) && types_match (_q71, _q20)))
7491 : : {
7492 : 0 : {
7493 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q20 };
7494 : 0 : tree res = generic_simplify_29 (loc, type, _p0, _p1, captures, TRUNC_DIV_EXPR, TRUNC_MOD_EXPR);
7495 : 0 : if (res) return res;
7496 : : }
7497 : : }
7498 : : }
7499 : : break;
7500 : : }
7501 : : default:;
7502 : : }
7503 : : }
7504 : : break;
7505 : : }
7506 : 4 : case CEIL_DIV_EXPR:
7507 : 4 : {
7508 : 4 : tree _q40 = TREE_OPERAND (_q21, 0);
7509 : 4 : tree _q41 = TREE_OPERAND (_q21, 1);
7510 : 4 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _q20, 0) && types_match (_q41, _q20)))
7511 : : {
7512 : 0 : switch (TREE_CODE (_p1))
7513 : : {
7514 : 0 : case CEIL_MOD_EXPR:
7515 : 0 : {
7516 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
7517 : 0 : tree _q71 = TREE_OPERAND (_p1, 1);
7518 : 0 : if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
7519 : : {
7520 : 0 : if ((_q71 == _q20 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q20, 0) && types_match (_q71, _q20)))
7521 : : {
7522 : 0 : {
7523 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q20 };
7524 : 0 : tree res = generic_simplify_29 (loc, type, _p0, _p1, captures, CEIL_DIV_EXPR, CEIL_MOD_EXPR);
7525 : 0 : if (res) return res;
7526 : : }
7527 : : }
7528 : : }
7529 : : break;
7530 : : }
7531 : : default:;
7532 : : }
7533 : : }
7534 : : break;
7535 : : }
7536 : 0 : case FLOOR_DIV_EXPR:
7537 : 0 : {
7538 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
7539 : 0 : tree _q41 = TREE_OPERAND (_q21, 1);
7540 : 0 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _q20, 0) && types_match (_q41, _q20)))
7541 : : {
7542 : 0 : switch (TREE_CODE (_p1))
7543 : : {
7544 : 0 : case FLOOR_MOD_EXPR:
7545 : 0 : {
7546 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
7547 : 0 : tree _q71 = TREE_OPERAND (_p1, 1);
7548 : 0 : if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
7549 : : {
7550 : 0 : if ((_q71 == _q20 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q20, 0) && types_match (_q71, _q20)))
7551 : : {
7552 : 0 : {
7553 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q20 };
7554 : 0 : tree res = generic_simplify_29 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR, FLOOR_MOD_EXPR);
7555 : 0 : if (res) return res;
7556 : : }
7557 : : }
7558 : : }
7559 : : break;
7560 : : }
7561 : : default:;
7562 : : }
7563 : : }
7564 : : break;
7565 : : }
7566 : 0 : case ROUND_DIV_EXPR:
7567 : 0 : {
7568 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
7569 : 0 : tree _q41 = TREE_OPERAND (_q21, 1);
7570 : 0 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _q20, 0) && types_match (_q41, _q20)))
7571 : : {
7572 : 0 : switch (TREE_CODE (_p1))
7573 : : {
7574 : 0 : case ROUND_MOD_EXPR:
7575 : 0 : {
7576 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
7577 : 0 : tree _q71 = TREE_OPERAND (_p1, 1);
7578 : 0 : if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
7579 : : {
7580 : 0 : if ((_q71 == _q20 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q20, 0) && types_match (_q71, _q20)))
7581 : : {
7582 : 0 : {
7583 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q20 };
7584 : 0 : tree res = generic_simplify_29 (loc, type, _p0, _p1, captures, ROUND_DIV_EXPR, ROUND_MOD_EXPR);
7585 : 0 : if (res) return res;
7586 : : }
7587 : : }
7588 : : }
7589 : : break;
7590 : : }
7591 : : default:;
7592 : : }
7593 : : }
7594 : : break;
7595 : : }
7596 : : default:;
7597 : : }
7598 : : break;
7599 : : }
7600 : 9575 : case TRUNC_MOD_EXPR:
7601 : 9575 : {
7602 : 9575 : tree _q20 = TREE_OPERAND (_p0, 0);
7603 : 9575 : tree _q21 = TREE_OPERAND (_p0, 1);
7604 : 9575 : switch (TREE_CODE (_p1))
7605 : : {
7606 : 119 : case MULT_EXPR:
7607 : 119 : {
7608 : 119 : tree _q50 = TREE_OPERAND (_p1, 0);
7609 : 119 : tree _q51 = TREE_OPERAND (_p1, 1);
7610 : 119 : switch (TREE_CODE (_q50))
7611 : : {
7612 : 106 : case TRUNC_DIV_EXPR:
7613 : 106 : {
7614 : 106 : tree _q60 = TREE_OPERAND (_q50, 0);
7615 : 106 : tree _q61 = TREE_OPERAND (_q50, 1);
7616 : 106 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
7617 : : {
7618 : 106 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
7619 : : {
7620 : 94 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7621 : : {
7622 : 0 : {
7623 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7624 : 0 : tree res = generic_simplify_29 (loc, type, _p0, _p1, captures, TRUNC_DIV_EXPR, TRUNC_MOD_EXPR);
7625 : 0 : if (res) return res;
7626 : : }
7627 : : }
7628 : : }
7629 : : }
7630 : : break;
7631 : : }
7632 : 119 : default:;
7633 : : }
7634 : 119 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7635 : : {
7636 : 0 : switch (TREE_CODE (_q51))
7637 : : {
7638 : 0 : case TRUNC_DIV_EXPR:
7639 : 0 : {
7640 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
7641 : 0 : tree _q71 = TREE_OPERAND (_q51, 1);
7642 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
7643 : : {
7644 : 0 : if ((_q71 == _q21 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q21, 0) && types_match (_q71, _q21)))
7645 : : {
7646 : 0 : {
7647 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7648 : 0 : tree res = generic_simplify_29 (loc, type, _p0, _p1, captures, TRUNC_DIV_EXPR, TRUNC_MOD_EXPR);
7649 : 0 : if (res) return res;
7650 : : }
7651 : : }
7652 : : }
7653 : : break;
7654 : : }
7655 : : default:;
7656 : : }
7657 : : }
7658 : : break;
7659 : : }
7660 : : default:;
7661 : : }
7662 : : break;
7663 : : }
7664 : 0 : case CEIL_MOD_EXPR:
7665 : 0 : {
7666 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
7667 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
7668 : 0 : switch (TREE_CODE (_p1))
7669 : : {
7670 : 0 : case MULT_EXPR:
7671 : 0 : {
7672 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
7673 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
7674 : 0 : switch (TREE_CODE (_q50))
7675 : : {
7676 : 0 : case CEIL_DIV_EXPR:
7677 : 0 : {
7678 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
7679 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
7680 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
7681 : : {
7682 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
7683 : : {
7684 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7685 : : {
7686 : 0 : {
7687 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7688 : 0 : tree res = generic_simplify_29 (loc, type, _p0, _p1, captures, CEIL_DIV_EXPR, CEIL_MOD_EXPR);
7689 : 0 : if (res) return res;
7690 : : }
7691 : : }
7692 : : }
7693 : : }
7694 : : break;
7695 : : }
7696 : 0 : default:;
7697 : : }
7698 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7699 : : {
7700 : 0 : switch (TREE_CODE (_q51))
7701 : : {
7702 : 0 : case CEIL_DIV_EXPR:
7703 : 0 : {
7704 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
7705 : 0 : tree _q71 = TREE_OPERAND (_q51, 1);
7706 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
7707 : : {
7708 : 0 : if ((_q71 == _q21 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q21, 0) && types_match (_q71, _q21)))
7709 : : {
7710 : 0 : {
7711 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7712 : 0 : tree res = generic_simplify_29 (loc, type, _p0, _p1, captures, CEIL_DIV_EXPR, CEIL_MOD_EXPR);
7713 : 0 : if (res) return res;
7714 : : }
7715 : : }
7716 : : }
7717 : : break;
7718 : : }
7719 : : default:;
7720 : : }
7721 : : }
7722 : : break;
7723 : : }
7724 : : default:;
7725 : : }
7726 : : break;
7727 : : }
7728 : 118 : case FLOOR_MOD_EXPR:
7729 : 118 : {
7730 : 118 : tree _q20 = TREE_OPERAND (_p0, 0);
7731 : 118 : tree _q21 = TREE_OPERAND (_p0, 1);
7732 : 118 : switch (TREE_CODE (_p1))
7733 : : {
7734 : 0 : case MULT_EXPR:
7735 : 0 : {
7736 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
7737 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
7738 : 0 : switch (TREE_CODE (_q50))
7739 : : {
7740 : 0 : case FLOOR_DIV_EXPR:
7741 : 0 : {
7742 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
7743 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
7744 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
7745 : : {
7746 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
7747 : : {
7748 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7749 : : {
7750 : 0 : {
7751 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7752 : 0 : tree res = generic_simplify_29 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR, FLOOR_MOD_EXPR);
7753 : 0 : if (res) return res;
7754 : : }
7755 : : }
7756 : : }
7757 : : }
7758 : : break;
7759 : : }
7760 : 0 : default:;
7761 : : }
7762 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7763 : : {
7764 : 0 : switch (TREE_CODE (_q51))
7765 : : {
7766 : 0 : case FLOOR_DIV_EXPR:
7767 : 0 : {
7768 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
7769 : 0 : tree _q71 = TREE_OPERAND (_q51, 1);
7770 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
7771 : : {
7772 : 0 : if ((_q71 == _q21 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q21, 0) && types_match (_q71, _q21)))
7773 : : {
7774 : 0 : {
7775 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7776 : 0 : tree res = generic_simplify_29 (loc, type, _p0, _p1, captures, FLOOR_DIV_EXPR, FLOOR_MOD_EXPR);
7777 : 0 : if (res) return res;
7778 : : }
7779 : : }
7780 : : }
7781 : : break;
7782 : : }
7783 : : default:;
7784 : : }
7785 : : }
7786 : : break;
7787 : : }
7788 : : default:;
7789 : : }
7790 : : break;
7791 : : }
7792 : 0 : case ROUND_MOD_EXPR:
7793 : 0 : {
7794 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
7795 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
7796 : 0 : switch (TREE_CODE (_p1))
7797 : : {
7798 : 0 : case MULT_EXPR:
7799 : 0 : {
7800 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
7801 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
7802 : 0 : switch (TREE_CODE (_q50))
7803 : : {
7804 : 0 : case ROUND_DIV_EXPR:
7805 : 0 : {
7806 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
7807 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
7808 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
7809 : : {
7810 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
7811 : : {
7812 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7813 : : {
7814 : 0 : {
7815 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7816 : 0 : tree res = generic_simplify_29 (loc, type, _p0, _p1, captures, ROUND_DIV_EXPR, ROUND_MOD_EXPR);
7817 : 0 : if (res) return res;
7818 : : }
7819 : : }
7820 : : }
7821 : : }
7822 : : break;
7823 : : }
7824 : 0 : default:;
7825 : : }
7826 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7827 : : {
7828 : 0 : switch (TREE_CODE (_q51))
7829 : : {
7830 : 0 : case ROUND_DIV_EXPR:
7831 : 0 : {
7832 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
7833 : 0 : tree _q71 = TREE_OPERAND (_q51, 1);
7834 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
7835 : : {
7836 : 0 : if ((_q71 == _q21 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q21, 0) && types_match (_q71, _q21)))
7837 : : {
7838 : 0 : {
7839 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7840 : 0 : tree res = generic_simplify_29 (loc, type, _p0, _p1, captures, ROUND_DIV_EXPR, ROUND_MOD_EXPR);
7841 : 0 : if (res) return res;
7842 : : }
7843 : : }
7844 : : }
7845 : : break;
7846 : : }
7847 : : default:;
7848 : : }
7849 : : }
7850 : : break;
7851 : : }
7852 : : default:;
7853 : : }
7854 : : break;
7855 : : }
7856 : 60781299 : default:;
7857 : : }
7858 : 60781299 : switch (TREE_CODE (_p1))
7859 : : {
7860 : 3243187 : case REAL_CST:
7861 : 3243187 : {
7862 : 3243187 : {
7863 : 3243187 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
7864 : 3243187 : if (REAL_VALUE_NEGATIVE (TREE_REAL_CST (captures[1]))
7865 : : )
7866 : : {
7867 : 120260 : {
7868 : 120260 : tree tem = const_unop (NEGATE_EXPR, type, captures[1]);
7869 : 120260 : if (!TREE_OVERFLOW (tem) || !flag_trapping_math
7870 : : )
7871 : : {
7872 : 120260 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1268;
7873 : 120260 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1268;
7874 : 120260 : {
7875 : 120260 : tree res_op0;
7876 : 120260 : res_op0 = captures[0];
7877 : 120260 : tree res_op1;
7878 : 120260 : res_op1 = tem;
7879 : 120260 : tree _r;
7880 : 120260 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
7881 : 120260 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 895, __FILE__, __LINE__, true);
7882 : 120260 : return _r;
7883 : : }
7884 : 3122927 : next_after_fail1268:;
7885 : : }
7886 : : }
7887 : : }
7888 : : }
7889 : 3122927 : break;
7890 : : }
7891 : 60661039 : default:;
7892 : : }
7893 : 60661039 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
7894 : : {
7895 : 1598467 : {
7896 : 1598467 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
7897 : 1598467 : if (SCALAR_FLOAT_TYPE_P (type)
7898 : : )
7899 : : {
7900 : 691 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1269;
7901 : 691 : {
7902 : 691 : tree res_op0;
7903 : 691 : res_op0 = captures[0];
7904 : 691 : tree res_op1;
7905 : 691 : res_op1 = build_real (type, dconst2);
7906 : 691 : tree _r;
7907 : 691 : _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
7908 : 691 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 896, __FILE__, __LINE__, true);
7909 : 691 : return _r;
7910 : : }
7911 : 0 : next_after_fail1269:;
7912 : : }
7913 : : else
7914 : : {
7915 : 1597776 : if (INTEGRAL_TYPE_P (type)
7916 : : )
7917 : : {
7918 : 1597726 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1270;
7919 : 1597726 : {
7920 : 1597726 : tree res_op0;
7921 : 1597726 : res_op0 = captures[0];
7922 : 1597726 : tree res_op1;
7923 : 1597726 : res_op1 = build_int_cst (type, 2);
7924 : 1597726 : tree _r;
7925 : 1597726 : _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
7926 : 1597726 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 897, __FILE__, __LINE__, true);
7927 : 1597726 : return _r;
7928 : : }
7929 : 0 : next_after_fail1270:;
7930 : : }
7931 : : }
7932 : : }
7933 : : }
7934 : 59062622 : switch (TREE_CODE (_p0))
7935 : : {
7936 : 144 : case VEC_COND_EXPR:
7937 : 144 : {
7938 : 144 : tree _q20 = TREE_OPERAND (_p0, 0);
7939 : 144 : tree _q21 = TREE_OPERAND (_p0, 1);
7940 : 144 : tree _q22 = TREE_OPERAND (_p0, 2);
7941 : 144 : switch (TREE_CODE (_p1))
7942 : : {
7943 : 48 : case VEC_COND_EXPR:
7944 : 48 : {
7945 : 48 : tree _q60 = TREE_OPERAND (_p1, 0);
7946 : 48 : tree _q61 = TREE_OPERAND (_p1, 1);
7947 : 48 : tree _q62 = TREE_OPERAND (_p1, 2);
7948 : 48 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
7949 : : {
7950 : 24 : {
7951 : 24 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
7952 : 24 : if (VECTOR_TYPE_P (type)
7953 : 24 : && (TREE_CODE_CLASS (PLUS_EXPR) != tcc_comparison
7954 : : || types_match (type, TREE_TYPE (captures[2]))
7955 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
7956 : : || (optimize_vectors_before_lowering_p ()
7957 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
7958 : : )
7959 : : {
7960 : 24 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1271;
7961 : 24 : {
7962 : 24 : tree res_op0;
7963 : 24 : res_op0 = captures[1];
7964 : 24 : tree res_op1;
7965 : 24 : {
7966 : 24 : tree _o1[2], _r1;
7967 : 24 : _o1[0] = captures[2];
7968 : 24 : _o1[1] = captures[5];
7969 : 24 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
7970 : 24 : if (EXPR_P (_r1))
7971 : 0 : goto next_after_fail1271;
7972 : 24 : res_op1 = _r1;
7973 : : }
7974 : 24 : tree res_op2;
7975 : 24 : {
7976 : 24 : tree _o1[2], _r1;
7977 : 24 : _o1[0] = captures[3];
7978 : 24 : _o1[1] = captures[6];
7979 : 24 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
7980 : 24 : if (EXPR_P (_r1))
7981 : 0 : goto next_after_fail1271;
7982 : 24 : res_op2 = _r1;
7983 : : }
7984 : 24 : tree _r;
7985 : 24 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
7986 : 24 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 898, __FILE__, __LINE__, true);
7987 : 24 : return _r;
7988 : : }
7989 : 0 : next_after_fail1271:;
7990 : : }
7991 : : }
7992 : : }
7993 : : break;
7994 : : }
7995 : 120 : default:;
7996 : : }
7997 : 120 : {
7998 : 120 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
7999 : 120 : if (VECTOR_TYPE_P (type)
8000 : 120 : && (TREE_CODE_CLASS (PLUS_EXPR) != tcc_comparison
8001 : : || types_match (type, TREE_TYPE (captures[2]))
8002 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
8003 : : || (optimize_vectors_before_lowering_p ()
8004 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
8005 : : )
8006 : : {
8007 : 120 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1272;
8008 : 120 : {
8009 : 120 : if (! tree_invariant_p (captures[4])) goto next_after_fail1272;
8010 : 26 : tree res_op0;
8011 : 26 : res_op0 = captures[1];
8012 : 26 : tree res_op1;
8013 : 26 : {
8014 : 26 : tree _o1[2], _r1;
8015 : 26 : _o1[0] = captures[2];
8016 : 26 : _o1[1] = unshare_expr (captures[4]);
8017 : 26 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
8018 : 26 : if (EXPR_P (_r1))
8019 : 0 : goto next_after_fail1272;
8020 : 26 : res_op1 = _r1;
8021 : : }
8022 : 26 : tree res_op2;
8023 : 26 : {
8024 : 26 : tree _o1[2], _r1;
8025 : 26 : _o1[0] = captures[3];
8026 : 26 : _o1[1] = captures[4];
8027 : 26 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
8028 : 26 : if (EXPR_P (_r1))
8029 : 0 : goto next_after_fail1272;
8030 : 26 : res_op2 = _r1;
8031 : : }
8032 : 26 : tree _r;
8033 : 26 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
8034 : 26 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 899, __FILE__, __LINE__, true);
8035 : 26 : return _r;
8036 : : }
8037 : 94 : next_after_fail1272:;
8038 : : }
8039 : : }
8040 : 94 : if (integer_each_onep (_q21))
8041 : : {
8042 : 0 : if (integer_zerop (_q22))
8043 : : {
8044 : 0 : {
8045 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _p0, _q20, _q21, _q22 };
8046 : 0 : tree res = generic_simplify_30 (loc, type, _p0, _p1, captures);
8047 : 0 : if (res) return res;
8048 : : }
8049 : : }
8050 : : }
8051 : : break;
8052 : : }
8053 : 59062572 : default:;
8054 : : }
8055 : 59062572 : switch (TREE_CODE (_p1))
8056 : : {
8057 : 40 : case VEC_COND_EXPR:
8058 : 40 : {
8059 : 40 : tree _q30 = TREE_OPERAND (_p1, 0);
8060 : 40 : tree _q31 = TREE_OPERAND (_p1, 1);
8061 : 40 : tree _q32 = TREE_OPERAND (_p1, 2);
8062 : 40 : {
8063 : 40 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
8064 : 40 : if (VECTOR_TYPE_P (type)
8065 : 40 : && (TREE_CODE_CLASS (PLUS_EXPR) != tcc_comparison
8066 : : || types_match (type, TREE_TYPE (captures[3]))
8067 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
8068 : : || (optimize_vectors_before_lowering_p ()
8069 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
8070 : : )
8071 : : {
8072 : 40 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1273;
8073 : 40 : {
8074 : 40 : if (! tree_invariant_p (captures[0])) goto next_after_fail1273;
8075 : 0 : tree res_op0;
8076 : 0 : res_op0 = captures[2];
8077 : 0 : tree res_op1;
8078 : 0 : {
8079 : 0 : tree _o1[2], _r1;
8080 : 0 : _o1[0] = unshare_expr (captures[0]);
8081 : 0 : _o1[1] = captures[3];
8082 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
8083 : 0 : if (EXPR_P (_r1))
8084 : 0 : goto next_after_fail1273;
8085 : 0 : res_op1 = _r1;
8086 : : }
8087 : 0 : tree res_op2;
8088 : 0 : {
8089 : 0 : tree _o1[2], _r1;
8090 : 0 : _o1[0] = captures[0];
8091 : 0 : _o1[1] = captures[4];
8092 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
8093 : 0 : if (EXPR_P (_r1))
8094 : 0 : goto next_after_fail1273;
8095 : 0 : res_op2 = _r1;
8096 : : }
8097 : 0 : tree _r;
8098 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
8099 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 900, __FILE__, __LINE__, true);
8100 : 0 : return _r;
8101 : : }
8102 : 40 : next_after_fail1273:;
8103 : : }
8104 : : }
8105 : 40 : break;
8106 : : }
8107 : 293380 : case VIEW_CONVERT_EXPR:
8108 : 293380 : {
8109 : 293380 : tree _q30 = TREE_OPERAND (_p1, 0);
8110 : 293380 : switch (TREE_CODE (_q30))
8111 : : {
8112 : 0 : case VEC_COND_EXPR:
8113 : 0 : {
8114 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
8115 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
8116 : 0 : tree _q42 = TREE_OPERAND (_q30, 2);
8117 : 0 : if (integer_each_onep (_q41))
8118 : : {
8119 : 0 : if (integer_zerop (_q42))
8120 : : {
8121 : 0 : {
8122 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q30, _q40, _q41, _q42 };
8123 : 0 : tree res = generic_simplify_30 (loc, type, _p0, _p1, captures);
8124 : 0 : if (res) return res;
8125 : : }
8126 : : }
8127 : : }
8128 : : break;
8129 : : }
8130 : : default:;
8131 : : }
8132 : : break;
8133 : : }
8134 : 59062572 : default:;
8135 : : }
8136 : 59062572 : switch (TREE_CODE (_p0))
8137 : : {
8138 : 290326 : case VIEW_CONVERT_EXPR:
8139 : 290326 : {
8140 : 290326 : tree _q20 = TREE_OPERAND (_p0, 0);
8141 : 290326 : switch (TREE_CODE (_q20))
8142 : : {
8143 : 0 : case VEC_COND_EXPR:
8144 : 0 : {
8145 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8146 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8147 : 0 : tree _q32 = TREE_OPERAND (_q20, 2);
8148 : 0 : if (integer_each_onep (_q31))
8149 : : {
8150 : 0 : if (integer_zerop (_q32))
8151 : : {
8152 : 0 : {
8153 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q20, _q30, _q31, _q32 };
8154 : 0 : tree res = generic_simplify_30 (loc, type, _p0, _p1, captures);
8155 : 0 : if (res) return res;
8156 : : }
8157 : : }
8158 : : }
8159 : : break;
8160 : : }
8161 : : default:;
8162 : : }
8163 : : break;
8164 : : }
8165 : 59062572 : default:;
8166 : : }
8167 : 59062572 : switch (TREE_CODE (_p1))
8168 : : {
8169 : 40 : case VEC_COND_EXPR:
8170 : 40 : {
8171 : 40 : tree _q30 = TREE_OPERAND (_p1, 0);
8172 : 40 : tree _q31 = TREE_OPERAND (_p1, 1);
8173 : 40 : tree _q32 = TREE_OPERAND (_p1, 2);
8174 : 40 : if (integer_each_onep (_q31))
8175 : : {
8176 : 0 : if (integer_zerop (_q32))
8177 : : {
8178 : 0 : {
8179 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
8180 : 0 : tree res = generic_simplify_30 (loc, type, _p0, _p1, captures);
8181 : 0 : if (res) return res;
8182 : : }
8183 : : }
8184 : : }
8185 : : break;
8186 : : }
8187 : 59062572 : default:;
8188 : : }
8189 : 59062572 : switch (TREE_CODE (_p0))
8190 : : {
8191 : 552089 : case RDIV_EXPR:
8192 : 552089 : {
8193 : 552089 : tree _q20 = TREE_OPERAND (_p0, 0);
8194 : 552089 : tree _q21 = TREE_OPERAND (_p0, 1);
8195 : 552089 : switch (TREE_CODE (_p1))
8196 : : {
8197 : 117618 : case RDIV_EXPR:
8198 : 117618 : {
8199 : 117618 : tree _q50 = TREE_OPERAND (_p1, 0);
8200 : 117618 : tree _q51 = TREE_OPERAND (_p1, 1);
8201 : 117618 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8202 : : {
8203 : 1 : {
8204 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
8205 : 1 : tree res = generic_simplify_31 (loc, type, _p0, _p1, captures, PLUS_EXPR);
8206 : 1 : if (res) return res;
8207 : : }
8208 : : }
8209 : : break;
8210 : : }
8211 : : default:;
8212 : : }
8213 : : break;
8214 : : }
8215 : 1561017 : case MINUS_EXPR:
8216 : 1561017 : {
8217 : 1561017 : tree _q20 = TREE_OPERAND (_p0, 0);
8218 : 1561017 : tree _q21 = TREE_OPERAND (_p0, 1);
8219 : 1561017 : switch (TREE_CODE (_q20))
8220 : : {
8221 : 36 : case CALL_EXPR:
8222 : 36 : switch (get_call_combined_fn (_q20))
8223 : : {
8224 : 4 : case CFN_BUILT_IN_POPCOUNT:
8225 : 4 : if (call_expr_nargs (_q20) == 1)
8226 : : {
8227 : 4 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
8228 : 4 : switch (TREE_CODE (_q21))
8229 : : {
8230 : 4 : case CALL_EXPR:
8231 : 4 : switch (get_call_combined_fn (_q21))
8232 : : {
8233 : 4 : case CFN_BUILT_IN_POPCOUNT:
8234 : 4 : if (call_expr_nargs (_q21) == 1)
8235 : : {
8236 : 4 : tree _q50 = CALL_EXPR_ARG (_q21, 0);
8237 : 4 : switch (TREE_CODE (_q50))
8238 : : {
8239 : 2 : case BIT_AND_EXPR:
8240 : 2 : {
8241 : 2 : tree _q60 = TREE_OPERAND (_q50, 0);
8242 : 2 : tree _q61 = TREE_OPERAND (_q50, 1);
8243 : 2 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
8244 : : {
8245 : 1 : switch (TREE_CODE (_p1))
8246 : : {
8247 : 1 : case CALL_EXPR:
8248 : 1 : switch (get_call_combined_fn (_p1))
8249 : : {
8250 : 1 : case CFN_BUILT_IN_POPCOUNT:
8251 : 1 : if (call_expr_nargs (_p1) == 1)
8252 : : {
8253 : 1 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
8254 : 1 : if ((_q90 == _q61 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q61, 0) && types_match (_q90, _q61)))
8255 : : {
8256 : 1 : {
8257 : 1 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q61, _p1 };
8258 : 1 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNT);
8259 : 1 : if (res) return res;
8260 : : }
8261 : : }
8262 : : }
8263 : : break;
8264 : : default:;
8265 : : }
8266 : : break;
8267 : : default:;
8268 : : }
8269 : : }
8270 : 1 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
8271 : : {
8272 : 1 : switch (TREE_CODE (_p1))
8273 : : {
8274 : 1 : case CALL_EXPR:
8275 : 1 : switch (get_call_combined_fn (_p1))
8276 : : {
8277 : 1 : case CFN_BUILT_IN_POPCOUNT:
8278 : 1 : if (call_expr_nargs (_p1) == 1)
8279 : : {
8280 : 1 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
8281 : 1 : if ((_q90 == _q60 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q60, 0) && types_match (_q90, _q60)))
8282 : : {
8283 : 1 : {
8284 : 1 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q60, _p1 };
8285 : 1 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNT);
8286 : 1 : if (res) return res;
8287 : : }
8288 : : }
8289 : : }
8290 : : break;
8291 : : default:;
8292 : : }
8293 : : break;
8294 : : default:;
8295 : : }
8296 : : }
8297 : : break;
8298 : : }
8299 : 2 : case BIT_IOR_EXPR:
8300 : 2 : {
8301 : 2 : tree _q60 = TREE_OPERAND (_q50, 0);
8302 : 2 : tree _q61 = TREE_OPERAND (_q50, 1);
8303 : 2 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
8304 : : {
8305 : 1 : switch (TREE_CODE (_p1))
8306 : : {
8307 : 1 : case CALL_EXPR:
8308 : 1 : switch (get_call_combined_fn (_p1))
8309 : : {
8310 : 1 : case CFN_BUILT_IN_POPCOUNT:
8311 : 1 : if (call_expr_nargs (_p1) == 1)
8312 : : {
8313 : 1 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
8314 : 1 : if ((_q90 == _q61 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q61, 0) && types_match (_q90, _q61)))
8315 : : {
8316 : 1 : {
8317 : 1 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q61, _p1 };
8318 : 1 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNT);
8319 : 1 : if (res) return res;
8320 : : }
8321 : : }
8322 : : }
8323 : : break;
8324 : : default:;
8325 : : }
8326 : : break;
8327 : : default:;
8328 : : }
8329 : : }
8330 : 1 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
8331 : : {
8332 : 1 : switch (TREE_CODE (_p1))
8333 : : {
8334 : 1 : case CALL_EXPR:
8335 : 1 : switch (get_call_combined_fn (_p1))
8336 : : {
8337 : 1 : case CFN_BUILT_IN_POPCOUNT:
8338 : 1 : if (call_expr_nargs (_p1) == 1)
8339 : : {
8340 : 1 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
8341 : 1 : if ((_q90 == _q60 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q60, 0) && types_match (_q90, _q60)))
8342 : : {
8343 : 1 : {
8344 : 1 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q60, _p1 };
8345 : 1 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNT);
8346 : 1 : if (res) return res;
8347 : : }
8348 : : }
8349 : : }
8350 : : break;
8351 : : default:;
8352 : : }
8353 : : break;
8354 : : default:;
8355 : : }
8356 : : }
8357 : : break;
8358 : : }
8359 : : default:;
8360 : : }
8361 : : }
8362 : : break;
8363 : : default:;
8364 : : }
8365 : : break;
8366 : : default:;
8367 : : }
8368 : : }
8369 : : break;
8370 : 0 : case CFN_BUILT_IN_POPCOUNTLL:
8371 : 0 : if (call_expr_nargs (_q20) == 1)
8372 : : {
8373 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
8374 : 0 : switch (TREE_CODE (_q21))
8375 : : {
8376 : 0 : case CALL_EXPR:
8377 : 0 : switch (get_call_combined_fn (_q21))
8378 : : {
8379 : 0 : case CFN_BUILT_IN_POPCOUNTLL:
8380 : 0 : if (call_expr_nargs (_q21) == 1)
8381 : : {
8382 : 0 : tree _q50 = CALL_EXPR_ARG (_q21, 0);
8383 : 0 : switch (TREE_CODE (_q50))
8384 : : {
8385 : 0 : case BIT_AND_EXPR:
8386 : 0 : {
8387 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
8388 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
8389 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
8390 : : {
8391 : 0 : switch (TREE_CODE (_p1))
8392 : : {
8393 : 0 : case CALL_EXPR:
8394 : 0 : switch (get_call_combined_fn (_p1))
8395 : : {
8396 : 0 : case CFN_BUILT_IN_POPCOUNTLL:
8397 : 0 : if (call_expr_nargs (_p1) == 1)
8398 : : {
8399 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
8400 : 0 : if ((_q90 == _q61 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q61, 0) && types_match (_q90, _q61)))
8401 : : {
8402 : 0 : {
8403 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q61, _p1 };
8404 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTLL);
8405 : 0 : if (res) return res;
8406 : : }
8407 : : }
8408 : : }
8409 : : break;
8410 : : default:;
8411 : : }
8412 : : break;
8413 : : default:;
8414 : : }
8415 : : }
8416 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
8417 : : {
8418 : 0 : switch (TREE_CODE (_p1))
8419 : : {
8420 : 0 : case CALL_EXPR:
8421 : 0 : switch (get_call_combined_fn (_p1))
8422 : : {
8423 : 0 : case CFN_BUILT_IN_POPCOUNTLL:
8424 : 0 : if (call_expr_nargs (_p1) == 1)
8425 : : {
8426 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
8427 : 0 : if ((_q90 == _q60 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q60, 0) && types_match (_q90, _q60)))
8428 : : {
8429 : 0 : {
8430 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q60, _p1 };
8431 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTLL);
8432 : 0 : if (res) return res;
8433 : : }
8434 : : }
8435 : : }
8436 : : break;
8437 : : default:;
8438 : : }
8439 : : break;
8440 : : default:;
8441 : : }
8442 : : }
8443 : : break;
8444 : : }
8445 : 0 : case BIT_IOR_EXPR:
8446 : 0 : {
8447 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
8448 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
8449 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
8450 : : {
8451 : 0 : switch (TREE_CODE (_p1))
8452 : : {
8453 : 0 : case CALL_EXPR:
8454 : 0 : switch (get_call_combined_fn (_p1))
8455 : : {
8456 : 0 : case CFN_BUILT_IN_POPCOUNTLL:
8457 : 0 : if (call_expr_nargs (_p1) == 1)
8458 : : {
8459 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
8460 : 0 : if ((_q90 == _q61 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q61, 0) && types_match (_q90, _q61)))
8461 : : {
8462 : 0 : {
8463 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q61, _p1 };
8464 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTLL);
8465 : 0 : if (res) return res;
8466 : : }
8467 : : }
8468 : : }
8469 : : break;
8470 : : default:;
8471 : : }
8472 : : break;
8473 : : default:;
8474 : : }
8475 : : }
8476 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
8477 : : {
8478 : 0 : switch (TREE_CODE (_p1))
8479 : : {
8480 : 0 : case CALL_EXPR:
8481 : 0 : switch (get_call_combined_fn (_p1))
8482 : : {
8483 : 0 : case CFN_BUILT_IN_POPCOUNTLL:
8484 : 0 : if (call_expr_nargs (_p1) == 1)
8485 : : {
8486 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
8487 : 0 : if ((_q90 == _q60 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q60, 0) && types_match (_q90, _q60)))
8488 : : {
8489 : 0 : {
8490 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q60, _p1 };
8491 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTLL);
8492 : 0 : if (res) return res;
8493 : : }
8494 : : }
8495 : : }
8496 : : break;
8497 : : default:;
8498 : : }
8499 : : break;
8500 : : default:;
8501 : : }
8502 : : }
8503 : : break;
8504 : : }
8505 : : default:;
8506 : : }
8507 : : }
8508 : : break;
8509 : : default:;
8510 : : }
8511 : : break;
8512 : : default:;
8513 : : }
8514 : : }
8515 : : break;
8516 : 0 : case CFN_POPCOUNT:
8517 : 0 : if (call_expr_nargs (_q20) == 1)
8518 : : {
8519 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
8520 : 0 : switch (TREE_CODE (_q21))
8521 : : {
8522 : 0 : case CALL_EXPR:
8523 : 0 : switch (get_call_combined_fn (_q21))
8524 : : {
8525 : 0 : case CFN_POPCOUNT:
8526 : 0 : if (call_expr_nargs (_q21) == 1)
8527 : : {
8528 : 0 : tree _q50 = CALL_EXPR_ARG (_q21, 0);
8529 : 0 : switch (TREE_CODE (_q50))
8530 : : {
8531 : 0 : case BIT_AND_EXPR:
8532 : 0 : {
8533 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
8534 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
8535 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
8536 : : {
8537 : 0 : switch (TREE_CODE (_p1))
8538 : : {
8539 : 0 : case CALL_EXPR:
8540 : 0 : switch (get_call_combined_fn (_p1))
8541 : : {
8542 : 0 : case CFN_POPCOUNT:
8543 : 0 : if (call_expr_nargs (_p1) == 1)
8544 : : {
8545 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
8546 : 0 : if ((_q90 == _q61 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q61, 0) && types_match (_q90, _q61)))
8547 : : {
8548 : 0 : {
8549 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q61, _p1 };
8550 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_POPCOUNT);
8551 : 0 : if (res) return res;
8552 : : }
8553 : : }
8554 : : }
8555 : : break;
8556 : : default:;
8557 : : }
8558 : : break;
8559 : : default:;
8560 : : }
8561 : : }
8562 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
8563 : : {
8564 : 0 : switch (TREE_CODE (_p1))
8565 : : {
8566 : 0 : case CALL_EXPR:
8567 : 0 : switch (get_call_combined_fn (_p1))
8568 : : {
8569 : 0 : case CFN_POPCOUNT:
8570 : 0 : if (call_expr_nargs (_p1) == 1)
8571 : : {
8572 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
8573 : 0 : if ((_q90 == _q60 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q60, 0) && types_match (_q90, _q60)))
8574 : : {
8575 : 0 : {
8576 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q60, _p1 };
8577 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_POPCOUNT);
8578 : 0 : if (res) return res;
8579 : : }
8580 : : }
8581 : : }
8582 : : break;
8583 : : default:;
8584 : : }
8585 : : break;
8586 : : default:;
8587 : : }
8588 : : }
8589 : : break;
8590 : : }
8591 : 0 : case BIT_IOR_EXPR:
8592 : 0 : {
8593 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
8594 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
8595 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
8596 : : {
8597 : 0 : switch (TREE_CODE (_p1))
8598 : : {
8599 : 0 : case CALL_EXPR:
8600 : 0 : switch (get_call_combined_fn (_p1))
8601 : : {
8602 : 0 : case CFN_POPCOUNT:
8603 : 0 : if (call_expr_nargs (_p1) == 1)
8604 : : {
8605 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
8606 : 0 : if ((_q90 == _q61 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q61, 0) && types_match (_q90, _q61)))
8607 : : {
8608 : 0 : {
8609 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q61, _p1 };
8610 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_POPCOUNT);
8611 : 0 : if (res) return res;
8612 : : }
8613 : : }
8614 : : }
8615 : : break;
8616 : : default:;
8617 : : }
8618 : : break;
8619 : : default:;
8620 : : }
8621 : : }
8622 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
8623 : : {
8624 : 0 : switch (TREE_CODE (_p1))
8625 : : {
8626 : 0 : case CALL_EXPR:
8627 : 0 : switch (get_call_combined_fn (_p1))
8628 : : {
8629 : 0 : case CFN_POPCOUNT:
8630 : 0 : if (call_expr_nargs (_p1) == 1)
8631 : : {
8632 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
8633 : 0 : if ((_q90 == _q60 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q60, 0) && types_match (_q90, _q60)))
8634 : : {
8635 : 0 : {
8636 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q60, _p1 };
8637 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_POPCOUNT);
8638 : 0 : if (res) return res;
8639 : : }
8640 : : }
8641 : : }
8642 : : break;
8643 : : default:;
8644 : : }
8645 : : break;
8646 : : default:;
8647 : : }
8648 : : }
8649 : : break;
8650 : : }
8651 : : default:;
8652 : : }
8653 : : }
8654 : : break;
8655 : : default:;
8656 : : }
8657 : : break;
8658 : : default:;
8659 : : }
8660 : : }
8661 : : break;
8662 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
8663 : 0 : if (call_expr_nargs (_q20) == 1)
8664 : : {
8665 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
8666 : 0 : switch (TREE_CODE (_q21))
8667 : : {
8668 : 0 : case CALL_EXPR:
8669 : 0 : switch (get_call_combined_fn (_q21))
8670 : : {
8671 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
8672 : 0 : if (call_expr_nargs (_q21) == 1)
8673 : : {
8674 : 0 : tree _q50 = CALL_EXPR_ARG (_q21, 0);
8675 : 0 : switch (TREE_CODE (_q50))
8676 : : {
8677 : 0 : case BIT_AND_EXPR:
8678 : 0 : {
8679 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
8680 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
8681 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
8682 : : {
8683 : 0 : switch (TREE_CODE (_p1))
8684 : : {
8685 : 0 : case CALL_EXPR:
8686 : 0 : switch (get_call_combined_fn (_p1))
8687 : : {
8688 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
8689 : 0 : if (call_expr_nargs (_p1) == 1)
8690 : : {
8691 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
8692 : 0 : if ((_q90 == _q61 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q61, 0) && types_match (_q90, _q61)))
8693 : : {
8694 : 0 : {
8695 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q61, _p1 };
8696 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
8697 : 0 : if (res) return res;
8698 : : }
8699 : : }
8700 : : }
8701 : : break;
8702 : : default:;
8703 : : }
8704 : : break;
8705 : : default:;
8706 : : }
8707 : : }
8708 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
8709 : : {
8710 : 0 : switch (TREE_CODE (_p1))
8711 : : {
8712 : 0 : case CALL_EXPR:
8713 : 0 : switch (get_call_combined_fn (_p1))
8714 : : {
8715 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
8716 : 0 : if (call_expr_nargs (_p1) == 1)
8717 : : {
8718 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
8719 : 0 : if ((_q90 == _q60 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q60, 0) && types_match (_q90, _q60)))
8720 : : {
8721 : 0 : {
8722 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q60, _p1 };
8723 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
8724 : 0 : if (res) return res;
8725 : : }
8726 : : }
8727 : : }
8728 : : break;
8729 : : default:;
8730 : : }
8731 : : break;
8732 : : default:;
8733 : : }
8734 : : }
8735 : : break;
8736 : : }
8737 : 0 : case BIT_IOR_EXPR:
8738 : 0 : {
8739 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
8740 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
8741 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
8742 : : {
8743 : 0 : switch (TREE_CODE (_p1))
8744 : : {
8745 : 0 : case CALL_EXPR:
8746 : 0 : switch (get_call_combined_fn (_p1))
8747 : : {
8748 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
8749 : 0 : if (call_expr_nargs (_p1) == 1)
8750 : : {
8751 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
8752 : 0 : if ((_q90 == _q61 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q61, 0) && types_match (_q90, _q61)))
8753 : : {
8754 : 0 : {
8755 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q61, _p1 };
8756 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
8757 : 0 : if (res) return res;
8758 : : }
8759 : : }
8760 : : }
8761 : : break;
8762 : : default:;
8763 : : }
8764 : : break;
8765 : : default:;
8766 : : }
8767 : : }
8768 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
8769 : : {
8770 : 0 : switch (TREE_CODE (_p1))
8771 : : {
8772 : 0 : case CALL_EXPR:
8773 : 0 : switch (get_call_combined_fn (_p1))
8774 : : {
8775 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
8776 : 0 : if (call_expr_nargs (_p1) == 1)
8777 : : {
8778 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
8779 : 0 : if ((_q90 == _q60 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q60, 0) && types_match (_q90, _q60)))
8780 : : {
8781 : 0 : {
8782 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q60, _p1 };
8783 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
8784 : 0 : if (res) return res;
8785 : : }
8786 : : }
8787 : : }
8788 : : break;
8789 : : default:;
8790 : : }
8791 : : break;
8792 : : default:;
8793 : : }
8794 : : }
8795 : : break;
8796 : : }
8797 : : default:;
8798 : : }
8799 : : }
8800 : : break;
8801 : : default:;
8802 : : }
8803 : : break;
8804 : : default:;
8805 : : }
8806 : : }
8807 : : break;
8808 : 0 : case CFN_BUILT_IN_POPCOUNTL:
8809 : 0 : if (call_expr_nargs (_q20) == 1)
8810 : : {
8811 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
8812 : 0 : switch (TREE_CODE (_q21))
8813 : : {
8814 : 0 : case CALL_EXPR:
8815 : 0 : switch (get_call_combined_fn (_q21))
8816 : : {
8817 : 0 : case CFN_BUILT_IN_POPCOUNTL:
8818 : 0 : if (call_expr_nargs (_q21) == 1)
8819 : : {
8820 : 0 : tree _q50 = CALL_EXPR_ARG (_q21, 0);
8821 : 0 : switch (TREE_CODE (_q50))
8822 : : {
8823 : 0 : case BIT_AND_EXPR:
8824 : 0 : {
8825 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
8826 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
8827 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
8828 : : {
8829 : 0 : switch (TREE_CODE (_p1))
8830 : : {
8831 : 0 : case CALL_EXPR:
8832 : 0 : switch (get_call_combined_fn (_p1))
8833 : : {
8834 : 0 : case CFN_BUILT_IN_POPCOUNTL:
8835 : 0 : if (call_expr_nargs (_p1) == 1)
8836 : : {
8837 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
8838 : 0 : if ((_q90 == _q61 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q61, 0) && types_match (_q90, _q61)))
8839 : : {
8840 : 0 : {
8841 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q61, _p1 };
8842 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTL);
8843 : 0 : if (res) return res;
8844 : : }
8845 : : }
8846 : : }
8847 : : break;
8848 : : default:;
8849 : : }
8850 : : break;
8851 : : default:;
8852 : : }
8853 : : }
8854 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
8855 : : {
8856 : 0 : switch (TREE_CODE (_p1))
8857 : : {
8858 : 0 : case CALL_EXPR:
8859 : 0 : switch (get_call_combined_fn (_p1))
8860 : : {
8861 : 0 : case CFN_BUILT_IN_POPCOUNTL:
8862 : 0 : if (call_expr_nargs (_p1) == 1)
8863 : : {
8864 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
8865 : 0 : if ((_q90 == _q60 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q60, 0) && types_match (_q90, _q60)))
8866 : : {
8867 : 0 : {
8868 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q60, _p1 };
8869 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTL);
8870 : 0 : if (res) return res;
8871 : : }
8872 : : }
8873 : : }
8874 : : break;
8875 : : default:;
8876 : : }
8877 : : break;
8878 : : default:;
8879 : : }
8880 : : }
8881 : : break;
8882 : : }
8883 : 0 : case BIT_IOR_EXPR:
8884 : 0 : {
8885 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
8886 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
8887 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
8888 : : {
8889 : 0 : switch (TREE_CODE (_p1))
8890 : : {
8891 : 0 : case CALL_EXPR:
8892 : 0 : switch (get_call_combined_fn (_p1))
8893 : : {
8894 : 0 : case CFN_BUILT_IN_POPCOUNTL:
8895 : 0 : if (call_expr_nargs (_p1) == 1)
8896 : : {
8897 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
8898 : 0 : if ((_q90 == _q61 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q61, 0) && types_match (_q90, _q61)))
8899 : : {
8900 : 0 : {
8901 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q61, _p1 };
8902 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTL);
8903 : 0 : if (res) return res;
8904 : : }
8905 : : }
8906 : : }
8907 : : break;
8908 : : default:;
8909 : : }
8910 : : break;
8911 : : default:;
8912 : : }
8913 : : }
8914 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
8915 : : {
8916 : 0 : switch (TREE_CODE (_p1))
8917 : : {
8918 : 0 : case CALL_EXPR:
8919 : 0 : switch (get_call_combined_fn (_p1))
8920 : : {
8921 : 0 : case CFN_BUILT_IN_POPCOUNTL:
8922 : 0 : if (call_expr_nargs (_p1) == 1)
8923 : : {
8924 : 0 : tree _q90 = CALL_EXPR_ARG (_p1, 0);
8925 : 0 : if ((_q90 == _q60 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q60, 0) && types_match (_q90, _q60)))
8926 : : {
8927 : 0 : {
8928 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _q60, _p1 };
8929 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTL);
8930 : 0 : if (res) return res;
8931 : : }
8932 : : }
8933 : : }
8934 : : break;
8935 : : default:;
8936 : : }
8937 : : break;
8938 : : default:;
8939 : : }
8940 : : }
8941 : : break;
8942 : : }
8943 : : default:;
8944 : : }
8945 : : }
8946 : : break;
8947 : : default:;
8948 : : }
8949 : : break;
8950 : : default:;
8951 : : }
8952 : : }
8953 : : break;
8954 : : default:;
8955 : : }
8956 : : break;
8957 : : default:;
8958 : : }
8959 : : break;
8960 : : }
8961 : 1 : case VEC_PERM_EXPR:
8962 : 1 : {
8963 : 1 : tree _q20 = TREE_OPERAND (_p0, 0);
8964 : 1 : tree _q21 = TREE_OPERAND (_p0, 1);
8965 : 1 : tree _q22 = TREE_OPERAND (_p0, 2);
8966 : 1 : switch (TREE_CODE (_q20))
8967 : : {
8968 : 0 : case MULT_EXPR:
8969 : 0 : {
8970 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8971 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8972 : 0 : if (tree_vec_same_elem_p (_q31))
8973 : : {
8974 : 0 : if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
8975 : : {
8976 : 0 : {
8977 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q22, _p1 };
8978 : 0 : tree res = generic_simplify_36 (loc, type, _p0, _p1, captures);
8979 : 0 : if (res) return res;
8980 : : }
8981 : : }
8982 : : }
8983 : 0 : if (tree_vec_same_elem_p (_q30))
8984 : : {
8985 : 0 : if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
8986 : : {
8987 : 0 : {
8988 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q31, _q30, _q22, _p1 };
8989 : 0 : tree res = generic_simplify_36 (loc, type, _p0, _p1, captures);
8990 : 0 : if (res) return res;
8991 : : }
8992 : : }
8993 : : }
8994 : : break;
8995 : : }
8996 : 1 : default:;
8997 : : }
8998 : 1 : if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
8999 : : {
9000 : 0 : switch (TREE_CODE (_p1))
9001 : : {
9002 : 0 : case VEC_PERM_EXPR:
9003 : 0 : {
9004 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
9005 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
9006 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
9007 : 0 : if ((_q61 == _q60 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q60, 0) && types_match (_q61, _q60)))
9008 : : {
9009 : 0 : if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
9010 : : {
9011 : 0 : {
9012 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q22, _q60 };
9013 : 0 : if (VECTOR_INTEGER_TYPE_P (type)
9014 : : )
9015 : : {
9016 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1274;
9017 : 0 : {
9018 : 0 : tree res_op0;
9019 : 0 : {
9020 : 0 : tree _o1[2], _r1;
9021 : 0 : _o1[0] = captures[0];
9022 : 0 : _o1[1] = captures[2];
9023 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
9024 : 0 : captures[3] = _r1;
9025 : : }
9026 : 0 : res_op0 = unshare_expr (captures[3]);
9027 : 0 : tree res_op1;
9028 : 0 : res_op1 = captures[3];
9029 : 0 : tree res_op2;
9030 : 0 : res_op2 = captures[1];
9031 : 0 : tree _r;
9032 : 0 : _r = fold_build3_loc (loc, VEC_PERM_EXPR, type, res_op0, res_op1, res_op2);
9033 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 901, __FILE__, __LINE__, true);
9034 : 0 : return _r;
9035 : : }
9036 : 0 : next_after_fail1274:;
9037 : : }
9038 : : }
9039 : : }
9040 : : }
9041 : : break;
9042 : : }
9043 : 0 : default:;
9044 : : }
9045 : 0 : switch (TREE_CODE (_q22))
9046 : : {
9047 : 0 : case VECTOR_CST:
9048 : 0 : {
9049 : 0 : switch (TREE_CODE (_p1))
9050 : : {
9051 : 0 : case VEC_PERM_EXPR:
9052 : 0 : {
9053 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
9054 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
9055 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
9056 : 0 : if ((_q61 == _q60 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q60, 0) && types_match (_q61, _q60)))
9057 : : {
9058 : 0 : if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
9059 : : {
9060 : 0 : switch (TREE_CODE (_q62))
9061 : : {
9062 : 0 : case VECTOR_CST:
9063 : 0 : {
9064 : 0 : {
9065 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q22, _q60 };
9066 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures, PLUS_EXPR);
9067 : 0 : if (res) return res;
9068 : : }
9069 : 0 : break;
9070 : : }
9071 : : default:;
9072 : : }
9073 : : }
9074 : : }
9075 : : break;
9076 : : }
9077 : : default:;
9078 : : }
9079 : : break;
9080 : : }
9081 : : default:;
9082 : : }
9083 : : }
9084 : : break;
9085 : : }
9086 : 1133309 : case CALL_EXPR:
9087 : 1133309 : switch (get_call_combined_fn (_p0))
9088 : : {
9089 : 9 : case CFN_BUILT_IN_LOG:
9090 : 9 : if (call_expr_nargs (_p0) == 1)
9091 : : {
9092 : 9 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9093 : 9 : switch (TREE_CODE (_p1))
9094 : : {
9095 : 0 : case CALL_EXPR:
9096 : 0 : switch (get_call_combined_fn (_p1))
9097 : : {
9098 : 0 : case CFN_BUILT_IN_LOG:
9099 : 0 : if (call_expr_nargs (_p1) == 1)
9100 : : {
9101 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9102 : 0 : {
9103 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
9104 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOG);
9105 : 0 : if (res) return res;
9106 : : }
9107 : : }
9108 : : break;
9109 : : default:;
9110 : : }
9111 : : break;
9112 : : default:;
9113 : : }
9114 : : }
9115 : : break;
9116 : 430 : case CFN_BUILT_IN_POPCOUNT:
9117 : 430 : if (call_expr_nargs (_p0) == 1)
9118 : : {
9119 : 430 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9120 : 430 : switch (TREE_CODE (_p1))
9121 : : {
9122 : 22 : case CALL_EXPR:
9123 : 22 : switch (get_call_combined_fn (_p1))
9124 : : {
9125 : 22 : case CFN_BUILT_IN_POPCOUNT:
9126 : 22 : if (call_expr_nargs (_p1) == 1)
9127 : : {
9128 : 22 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9129 : 22 : {
9130 : 22 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
9131 : 22 : tree res = generic_simplify_33 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNT);
9132 : 22 : if (res) return res;
9133 : : }
9134 : : }
9135 : : break;
9136 : : default:;
9137 : : }
9138 : : break;
9139 : 429 : default:;
9140 : : }
9141 : 429 : switch (TREE_CODE (_q20))
9142 : : {
9143 : 9 : case BIT_AND_EXPR:
9144 : 9 : {
9145 : 9 : tree _q30 = TREE_OPERAND (_q20, 0);
9146 : 9 : tree _q31 = TREE_OPERAND (_q20, 1);
9147 : 9 : switch (TREE_CODE (_p1))
9148 : : {
9149 : 9 : case CALL_EXPR:
9150 : 9 : switch (get_call_combined_fn (_p1))
9151 : : {
9152 : 9 : case CFN_BUILT_IN_POPCOUNT:
9153 : 9 : if (call_expr_nargs (_p1) == 1)
9154 : : {
9155 : 9 : tree _q60 = CALL_EXPR_ARG (_p1, 0);
9156 : 9 : switch (TREE_CODE (_q60))
9157 : : {
9158 : 9 : case BIT_IOR_EXPR:
9159 : 9 : {
9160 : 9 : tree _q70 = TREE_OPERAND (_q60, 0);
9161 : 9 : tree _q71 = TREE_OPERAND (_q60, 1);
9162 : 9 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
9163 : : {
9164 : 1 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
9165 : : {
9166 : 1 : {
9167 : 1 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _q60 };
9168 : 1 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNT);
9169 : 1 : if (res) return res;
9170 : : }
9171 : : }
9172 : : }
9173 : 8 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
9174 : : {
9175 : 1 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
9176 : : {
9177 : 1 : {
9178 : 1 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _q60 };
9179 : 1 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNT);
9180 : 1 : if (res) return res;
9181 : : }
9182 : : }
9183 : : }
9184 : : break;
9185 : : }
9186 : : default:;
9187 : : }
9188 : : }
9189 : : break;
9190 : : default:;
9191 : : }
9192 : : break;
9193 : : default:;
9194 : : }
9195 : : break;
9196 : : }
9197 : 2 : case BIT_IOR_EXPR:
9198 : 2 : {
9199 : 2 : tree _q30 = TREE_OPERAND (_q20, 0);
9200 : 2 : tree _q31 = TREE_OPERAND (_q20, 1);
9201 : 2 : switch (TREE_CODE (_p1))
9202 : : {
9203 : 2 : case CALL_EXPR:
9204 : 2 : switch (get_call_combined_fn (_p1))
9205 : : {
9206 : 2 : case CFN_BUILT_IN_POPCOUNT:
9207 : 2 : if (call_expr_nargs (_p1) == 1)
9208 : : {
9209 : 2 : tree _q60 = CALL_EXPR_ARG (_p1, 0);
9210 : 2 : switch (TREE_CODE (_q60))
9211 : : {
9212 : 2 : case BIT_AND_EXPR:
9213 : 2 : {
9214 : 2 : tree _q70 = TREE_OPERAND (_q60, 0);
9215 : 2 : tree _q71 = TREE_OPERAND (_q60, 1);
9216 : 2 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
9217 : : {
9218 : 1 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
9219 : : {
9220 : 1 : {
9221 : 1 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q60, _q30, _q31, _p0, _q20 };
9222 : 1 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNT);
9223 : 1 : if (res) return res;
9224 : : }
9225 : : }
9226 : : }
9227 : 1 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
9228 : : {
9229 : 1 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
9230 : : {
9231 : 1 : {
9232 : 1 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q60, _q31, _q30, _p0, _q20 };
9233 : 1 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNT);
9234 : 1 : if (res) return res;
9235 : : }
9236 : : }
9237 : : }
9238 : : break;
9239 : : }
9240 : : default:;
9241 : : }
9242 : : }
9243 : : break;
9244 : : default:;
9245 : : }
9246 : : break;
9247 : : default:;
9248 : : }
9249 : : break;
9250 : : }
9251 : 425 : default:;
9252 : : }
9253 : 425 : switch (TREE_CODE (_p1))
9254 : : {
9255 : 0 : case MINUS_EXPR:
9256 : 0 : {
9257 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
9258 : 0 : tree _q41 = TREE_OPERAND (_p1, 1);
9259 : 0 : switch (TREE_CODE (_q40))
9260 : : {
9261 : 0 : case CALL_EXPR:
9262 : 0 : switch (get_call_combined_fn (_q40))
9263 : : {
9264 : 0 : case CFN_BUILT_IN_POPCOUNT:
9265 : 0 : if (call_expr_nargs (_q40) == 1)
9266 : : {
9267 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
9268 : 0 : switch (TREE_CODE (_q41))
9269 : : {
9270 : 0 : case CALL_EXPR:
9271 : 0 : switch (get_call_combined_fn (_q41))
9272 : : {
9273 : 0 : case CFN_BUILT_IN_POPCOUNT:
9274 : 0 : if (call_expr_nargs (_q41) == 1)
9275 : : {
9276 : 0 : tree _q70 = CALL_EXPR_ARG (_q41, 0);
9277 : 0 : switch (TREE_CODE (_q70))
9278 : : {
9279 : 0 : case BIT_AND_EXPR:
9280 : 0 : {
9281 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
9282 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
9283 : 0 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
9284 : : {
9285 : 0 : if ((_q81 == _q20 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q20, 0) && types_match (_q81, _q20)))
9286 : : {
9287 : 0 : {
9288 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
9289 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNT);
9290 : 0 : if (res) return res;
9291 : : }
9292 : : }
9293 : : }
9294 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
9295 : : {
9296 : 0 : if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
9297 : : {
9298 : 0 : {
9299 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
9300 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNT);
9301 : 0 : if (res) return res;
9302 : : }
9303 : : }
9304 : : }
9305 : : break;
9306 : : }
9307 : 0 : case BIT_IOR_EXPR:
9308 : 0 : {
9309 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
9310 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
9311 : 0 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
9312 : : {
9313 : 0 : if ((_q81 == _q20 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q20, 0) && types_match (_q81, _q20)))
9314 : : {
9315 : 0 : {
9316 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
9317 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNT);
9318 : 0 : if (res) return res;
9319 : : }
9320 : : }
9321 : : }
9322 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
9323 : : {
9324 : 0 : if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
9325 : : {
9326 : 0 : {
9327 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
9328 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNT);
9329 : 0 : if (res) return res;
9330 : : }
9331 : : }
9332 : : }
9333 : : break;
9334 : : }
9335 : : default:;
9336 : : }
9337 : : }
9338 : : break;
9339 : : default:;
9340 : : }
9341 : : break;
9342 : : default:;
9343 : : }
9344 : : }
9345 : : break;
9346 : : default:;
9347 : : }
9348 : : break;
9349 : : default:;
9350 : : }
9351 : : break;
9352 : : }
9353 : : default:;
9354 : : }
9355 : : }
9356 : : break;
9357 : 1 : case CFN_BUILT_IN_LOG2:
9358 : 1 : if (call_expr_nargs (_p0) == 1)
9359 : : {
9360 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9361 : 1 : switch (TREE_CODE (_p1))
9362 : : {
9363 : 1 : case CALL_EXPR:
9364 : 1 : switch (get_call_combined_fn (_p1))
9365 : : {
9366 : 1 : case CFN_BUILT_IN_LOG2:
9367 : 1 : if (call_expr_nargs (_p1) == 1)
9368 : : {
9369 : 1 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9370 : 1 : {
9371 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
9372 : 1 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOG2);
9373 : 1 : if (res) return res;
9374 : : }
9375 : : }
9376 : : break;
9377 : : default:;
9378 : : }
9379 : : break;
9380 : : default:;
9381 : : }
9382 : : }
9383 : : break;
9384 : 0 : case CFN_BUILT_IN_LOGF:
9385 : 0 : if (call_expr_nargs (_p0) == 1)
9386 : : {
9387 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9388 : 0 : switch (TREE_CODE (_p1))
9389 : : {
9390 : 0 : case CALL_EXPR:
9391 : 0 : switch (get_call_combined_fn (_p1))
9392 : : {
9393 : 0 : case CFN_BUILT_IN_LOGF:
9394 : 0 : if (call_expr_nargs (_p1) == 1)
9395 : : {
9396 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9397 : 0 : {
9398 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
9399 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOGF);
9400 : 0 : if (res) return res;
9401 : : }
9402 : : }
9403 : : break;
9404 : : default:;
9405 : : }
9406 : : break;
9407 : : default:;
9408 : : }
9409 : : }
9410 : : break;
9411 : 0 : case CFN_BUILT_IN_LOGL:
9412 : 0 : if (call_expr_nargs (_p0) == 1)
9413 : : {
9414 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9415 : 0 : switch (TREE_CODE (_p1))
9416 : : {
9417 : 0 : case CALL_EXPR:
9418 : 0 : switch (get_call_combined_fn (_p1))
9419 : : {
9420 : 0 : case CFN_BUILT_IN_LOGL:
9421 : 0 : if (call_expr_nargs (_p1) == 1)
9422 : : {
9423 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9424 : 0 : {
9425 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
9426 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOGL);
9427 : 0 : if (res) return res;
9428 : : }
9429 : : }
9430 : : break;
9431 : : default:;
9432 : : }
9433 : : break;
9434 : : default:;
9435 : : }
9436 : : }
9437 : : break;
9438 : 26 : case CFN_BUILT_IN_POPCOUNTLL:
9439 : 26 : if (call_expr_nargs (_p0) == 1)
9440 : : {
9441 : 26 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9442 : 26 : switch (TREE_CODE (_p1))
9443 : : {
9444 : 24 : case CALL_EXPR:
9445 : 24 : switch (get_call_combined_fn (_p1))
9446 : : {
9447 : 24 : case CFN_BUILT_IN_POPCOUNTLL:
9448 : 24 : if (call_expr_nargs (_p1) == 1)
9449 : : {
9450 : 24 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9451 : 24 : {
9452 : 24 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
9453 : 24 : tree res = generic_simplify_33 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTLL);
9454 : 24 : if (res) return res;
9455 : : }
9456 : : }
9457 : : break;
9458 : : default:;
9459 : : }
9460 : : break;
9461 : 26 : default:;
9462 : : }
9463 : 26 : switch (TREE_CODE (_q20))
9464 : : {
9465 : 0 : case BIT_AND_EXPR:
9466 : 0 : {
9467 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
9468 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
9469 : 0 : switch (TREE_CODE (_p1))
9470 : : {
9471 : 0 : case CALL_EXPR:
9472 : 0 : switch (get_call_combined_fn (_p1))
9473 : : {
9474 : 0 : case CFN_BUILT_IN_POPCOUNTLL:
9475 : 0 : if (call_expr_nargs (_p1) == 1)
9476 : : {
9477 : 0 : tree _q60 = CALL_EXPR_ARG (_p1, 0);
9478 : 0 : switch (TREE_CODE (_q60))
9479 : : {
9480 : 0 : case BIT_IOR_EXPR:
9481 : 0 : {
9482 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
9483 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
9484 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
9485 : : {
9486 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
9487 : : {
9488 : 0 : {
9489 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _q60 };
9490 : 0 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTLL);
9491 : 0 : if (res) return res;
9492 : : }
9493 : : }
9494 : : }
9495 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
9496 : : {
9497 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
9498 : : {
9499 : 0 : {
9500 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _q60 };
9501 : 0 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTLL);
9502 : 0 : if (res) return res;
9503 : : }
9504 : : }
9505 : : }
9506 : : break;
9507 : : }
9508 : : default:;
9509 : : }
9510 : : }
9511 : : break;
9512 : : default:;
9513 : : }
9514 : : break;
9515 : : default:;
9516 : : }
9517 : : break;
9518 : : }
9519 : 0 : case BIT_IOR_EXPR:
9520 : 0 : {
9521 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
9522 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
9523 : 0 : switch (TREE_CODE (_p1))
9524 : : {
9525 : 0 : case CALL_EXPR:
9526 : 0 : switch (get_call_combined_fn (_p1))
9527 : : {
9528 : 0 : case CFN_BUILT_IN_POPCOUNTLL:
9529 : 0 : if (call_expr_nargs (_p1) == 1)
9530 : : {
9531 : 0 : tree _q60 = CALL_EXPR_ARG (_p1, 0);
9532 : 0 : switch (TREE_CODE (_q60))
9533 : : {
9534 : 0 : case BIT_AND_EXPR:
9535 : 0 : {
9536 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
9537 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
9538 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
9539 : : {
9540 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
9541 : : {
9542 : 0 : {
9543 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q60, _q30, _q31, _p0, _q20 };
9544 : 0 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTLL);
9545 : 0 : if (res) return res;
9546 : : }
9547 : : }
9548 : : }
9549 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
9550 : : {
9551 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
9552 : : {
9553 : 0 : {
9554 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q60, _q31, _q30, _p0, _q20 };
9555 : 0 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTLL);
9556 : 0 : if (res) return res;
9557 : : }
9558 : : }
9559 : : }
9560 : : break;
9561 : : }
9562 : : default:;
9563 : : }
9564 : : }
9565 : : break;
9566 : : default:;
9567 : : }
9568 : : break;
9569 : : default:;
9570 : : }
9571 : : break;
9572 : : }
9573 : 26 : default:;
9574 : : }
9575 : 26 : switch (TREE_CODE (_p1))
9576 : : {
9577 : 0 : case MINUS_EXPR:
9578 : 0 : {
9579 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
9580 : 0 : tree _q41 = TREE_OPERAND (_p1, 1);
9581 : 0 : switch (TREE_CODE (_q40))
9582 : : {
9583 : 0 : case CALL_EXPR:
9584 : 0 : switch (get_call_combined_fn (_q40))
9585 : : {
9586 : 0 : case CFN_BUILT_IN_POPCOUNTLL:
9587 : 0 : if (call_expr_nargs (_q40) == 1)
9588 : : {
9589 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
9590 : 0 : switch (TREE_CODE (_q41))
9591 : : {
9592 : 0 : case CALL_EXPR:
9593 : 0 : switch (get_call_combined_fn (_q41))
9594 : : {
9595 : 0 : case CFN_BUILT_IN_POPCOUNTLL:
9596 : 0 : if (call_expr_nargs (_q41) == 1)
9597 : : {
9598 : 0 : tree _q70 = CALL_EXPR_ARG (_q41, 0);
9599 : 0 : switch (TREE_CODE (_q70))
9600 : : {
9601 : 0 : case BIT_AND_EXPR:
9602 : 0 : {
9603 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
9604 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
9605 : 0 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
9606 : : {
9607 : 0 : if ((_q81 == _q20 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q20, 0) && types_match (_q81, _q20)))
9608 : : {
9609 : 0 : {
9610 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
9611 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTLL);
9612 : 0 : if (res) return res;
9613 : : }
9614 : : }
9615 : : }
9616 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
9617 : : {
9618 : 0 : if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
9619 : : {
9620 : 0 : {
9621 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
9622 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTLL);
9623 : 0 : if (res) return res;
9624 : : }
9625 : : }
9626 : : }
9627 : : break;
9628 : : }
9629 : 0 : case BIT_IOR_EXPR:
9630 : 0 : {
9631 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
9632 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
9633 : 0 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
9634 : : {
9635 : 0 : if ((_q81 == _q20 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q20, 0) && types_match (_q81, _q20)))
9636 : : {
9637 : 0 : {
9638 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
9639 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTLL);
9640 : 0 : if (res) return res;
9641 : : }
9642 : : }
9643 : : }
9644 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
9645 : : {
9646 : 0 : if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
9647 : : {
9648 : 0 : {
9649 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
9650 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTLL);
9651 : 0 : if (res) return res;
9652 : : }
9653 : : }
9654 : : }
9655 : : break;
9656 : : }
9657 : : default:;
9658 : : }
9659 : : }
9660 : : break;
9661 : : default:;
9662 : : }
9663 : : break;
9664 : : default:;
9665 : : }
9666 : : }
9667 : : break;
9668 : : default:;
9669 : : }
9670 : : break;
9671 : : default:;
9672 : : }
9673 : : break;
9674 : : }
9675 : : default:;
9676 : : }
9677 : : }
9678 : : break;
9679 : 0 : case CFN_BUILT_IN_LOG10F:
9680 : 0 : if (call_expr_nargs (_p0) == 1)
9681 : : {
9682 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9683 : 0 : switch (TREE_CODE (_p1))
9684 : : {
9685 : 0 : case CALL_EXPR:
9686 : 0 : switch (get_call_combined_fn (_p1))
9687 : : {
9688 : 0 : case CFN_BUILT_IN_LOG10F:
9689 : 0 : if (call_expr_nargs (_p1) == 1)
9690 : : {
9691 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9692 : 0 : {
9693 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
9694 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOG10F);
9695 : 0 : if (res) return res;
9696 : : }
9697 : : }
9698 : : break;
9699 : : default:;
9700 : : }
9701 : : break;
9702 : : default:;
9703 : : }
9704 : : }
9705 : : break;
9706 : 0 : case CFN_BUILT_IN_LOG10L:
9707 : 0 : if (call_expr_nargs (_p0) == 1)
9708 : : {
9709 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9710 : 0 : switch (TREE_CODE (_p1))
9711 : : {
9712 : 0 : case CALL_EXPR:
9713 : 0 : switch (get_call_combined_fn (_p1))
9714 : : {
9715 : 0 : case CFN_BUILT_IN_LOG10L:
9716 : 0 : if (call_expr_nargs (_p1) == 1)
9717 : : {
9718 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9719 : 0 : {
9720 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
9721 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOG10L);
9722 : 0 : if (res) return res;
9723 : : }
9724 : : }
9725 : : break;
9726 : : default:;
9727 : : }
9728 : : break;
9729 : : default:;
9730 : : }
9731 : : }
9732 : : break;
9733 : 4 : case CFN_POPCOUNT:
9734 : 4 : if (call_expr_nargs (_p0) == 1)
9735 : : {
9736 : 4 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9737 : 4 : switch (TREE_CODE (_p1))
9738 : : {
9739 : 1 : case CALL_EXPR:
9740 : 1 : switch (get_call_combined_fn (_p1))
9741 : : {
9742 : 1 : case CFN_POPCOUNT:
9743 : 1 : if (call_expr_nargs (_p1) == 1)
9744 : : {
9745 : 1 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9746 : 1 : {
9747 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
9748 : 1 : tree res = generic_simplify_33 (loc, type, _p0, _p1, captures, CFN_POPCOUNT);
9749 : 1 : if (res) return res;
9750 : : }
9751 : : }
9752 : : break;
9753 : : default:;
9754 : : }
9755 : : break;
9756 : 4 : default:;
9757 : : }
9758 : 4 : switch (TREE_CODE (_q20))
9759 : : {
9760 : 0 : case BIT_AND_EXPR:
9761 : 0 : {
9762 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
9763 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
9764 : 0 : switch (TREE_CODE (_p1))
9765 : : {
9766 : 0 : case CALL_EXPR:
9767 : 0 : switch (get_call_combined_fn (_p1))
9768 : : {
9769 : 0 : case CFN_POPCOUNT:
9770 : 0 : if (call_expr_nargs (_p1) == 1)
9771 : : {
9772 : 0 : tree _q60 = CALL_EXPR_ARG (_p1, 0);
9773 : 0 : switch (TREE_CODE (_q60))
9774 : : {
9775 : 0 : case BIT_IOR_EXPR:
9776 : 0 : {
9777 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
9778 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
9779 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
9780 : : {
9781 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
9782 : : {
9783 : 0 : {
9784 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _q60 };
9785 : 0 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_POPCOUNT);
9786 : 0 : if (res) return res;
9787 : : }
9788 : : }
9789 : : }
9790 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
9791 : : {
9792 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
9793 : : {
9794 : 0 : {
9795 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _q60 };
9796 : 0 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_POPCOUNT);
9797 : 0 : if (res) return res;
9798 : : }
9799 : : }
9800 : : }
9801 : : break;
9802 : : }
9803 : : default:;
9804 : : }
9805 : : }
9806 : : break;
9807 : : default:;
9808 : : }
9809 : : break;
9810 : : default:;
9811 : : }
9812 : : break;
9813 : : }
9814 : 0 : case BIT_IOR_EXPR:
9815 : 0 : {
9816 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
9817 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
9818 : 0 : switch (TREE_CODE (_p1))
9819 : : {
9820 : 0 : case CALL_EXPR:
9821 : 0 : switch (get_call_combined_fn (_p1))
9822 : : {
9823 : 0 : case CFN_POPCOUNT:
9824 : 0 : if (call_expr_nargs (_p1) == 1)
9825 : : {
9826 : 0 : tree _q60 = CALL_EXPR_ARG (_p1, 0);
9827 : 0 : switch (TREE_CODE (_q60))
9828 : : {
9829 : 0 : case BIT_AND_EXPR:
9830 : 0 : {
9831 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
9832 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
9833 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
9834 : : {
9835 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
9836 : : {
9837 : 0 : {
9838 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q60, _q30, _q31, _p0, _q20 };
9839 : 0 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_POPCOUNT);
9840 : 0 : if (res) return res;
9841 : : }
9842 : : }
9843 : : }
9844 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
9845 : : {
9846 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
9847 : : {
9848 : 0 : {
9849 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q60, _q31, _q30, _p0, _q20 };
9850 : 0 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_POPCOUNT);
9851 : 0 : if (res) return res;
9852 : : }
9853 : : }
9854 : : }
9855 : : break;
9856 : : }
9857 : : default:;
9858 : : }
9859 : : }
9860 : : break;
9861 : : default:;
9862 : : }
9863 : : break;
9864 : : default:;
9865 : : }
9866 : : break;
9867 : : }
9868 : 4 : default:;
9869 : : }
9870 : 4 : switch (TREE_CODE (_p1))
9871 : : {
9872 : 0 : case MINUS_EXPR:
9873 : 0 : {
9874 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
9875 : 0 : tree _q41 = TREE_OPERAND (_p1, 1);
9876 : 0 : switch (TREE_CODE (_q40))
9877 : : {
9878 : 0 : case CALL_EXPR:
9879 : 0 : switch (get_call_combined_fn (_q40))
9880 : : {
9881 : 0 : case CFN_POPCOUNT:
9882 : 0 : if (call_expr_nargs (_q40) == 1)
9883 : : {
9884 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
9885 : 0 : switch (TREE_CODE (_q41))
9886 : : {
9887 : 0 : case CALL_EXPR:
9888 : 0 : switch (get_call_combined_fn (_q41))
9889 : : {
9890 : 0 : case CFN_POPCOUNT:
9891 : 0 : if (call_expr_nargs (_q41) == 1)
9892 : : {
9893 : 0 : tree _q70 = CALL_EXPR_ARG (_q41, 0);
9894 : 0 : switch (TREE_CODE (_q70))
9895 : : {
9896 : 0 : case BIT_AND_EXPR:
9897 : 0 : {
9898 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
9899 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
9900 : 0 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
9901 : : {
9902 : 0 : if ((_q81 == _q20 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q20, 0) && types_match (_q81, _q20)))
9903 : : {
9904 : 0 : {
9905 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
9906 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_POPCOUNT);
9907 : 0 : if (res) return res;
9908 : : }
9909 : : }
9910 : : }
9911 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
9912 : : {
9913 : 0 : if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
9914 : : {
9915 : 0 : {
9916 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
9917 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_POPCOUNT);
9918 : 0 : if (res) return res;
9919 : : }
9920 : : }
9921 : : }
9922 : : break;
9923 : : }
9924 : 0 : case BIT_IOR_EXPR:
9925 : 0 : {
9926 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
9927 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
9928 : 0 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
9929 : : {
9930 : 0 : if ((_q81 == _q20 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q20, 0) && types_match (_q81, _q20)))
9931 : : {
9932 : 0 : {
9933 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
9934 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_POPCOUNT);
9935 : 0 : if (res) return res;
9936 : : }
9937 : : }
9938 : : }
9939 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
9940 : : {
9941 : 0 : if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
9942 : : {
9943 : 0 : {
9944 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
9945 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_POPCOUNT);
9946 : 0 : if (res) return res;
9947 : : }
9948 : : }
9949 : : }
9950 : : break;
9951 : : }
9952 : : default:;
9953 : : }
9954 : : }
9955 : : break;
9956 : : default:;
9957 : : }
9958 : : break;
9959 : : default:;
9960 : : }
9961 : : }
9962 : : break;
9963 : : default:;
9964 : : }
9965 : : break;
9966 : : default:;
9967 : : }
9968 : : break;
9969 : : }
9970 : : default:;
9971 : : }
9972 : : }
9973 : : break;
9974 : 0 : case CFN_LOG:
9975 : 0 : if (call_expr_nargs (_p0) == 1)
9976 : : {
9977 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
9978 : 0 : switch (TREE_CODE (_p1))
9979 : : {
9980 : 0 : case CALL_EXPR:
9981 : 0 : switch (get_call_combined_fn (_p1))
9982 : : {
9983 : 0 : case CFN_LOG:
9984 : 0 : if (call_expr_nargs (_p1) == 1)
9985 : : {
9986 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
9987 : 0 : {
9988 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
9989 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, CFN_LOG);
9990 : 0 : if (res) return res;
9991 : : }
9992 : : }
9993 : : break;
9994 : : default:;
9995 : : }
9996 : : break;
9997 : : default:;
9998 : : }
9999 : : }
10000 : : break;
10001 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
10002 : 0 : if (call_expr_nargs (_p0) == 1)
10003 : : {
10004 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10005 : 0 : switch (TREE_CODE (_p1))
10006 : : {
10007 : 0 : case CALL_EXPR:
10008 : 0 : switch (get_call_combined_fn (_p1))
10009 : : {
10010 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
10011 : 0 : if (call_expr_nargs (_p1) == 1)
10012 : : {
10013 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
10014 : 0 : {
10015 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
10016 : 0 : tree res = generic_simplify_33 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTIMAX);
10017 : 0 : if (res) return res;
10018 : : }
10019 : : }
10020 : : break;
10021 : : default:;
10022 : : }
10023 : : break;
10024 : 0 : default:;
10025 : : }
10026 : 0 : switch (TREE_CODE (_q20))
10027 : : {
10028 : 0 : case BIT_AND_EXPR:
10029 : 0 : {
10030 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
10031 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
10032 : 0 : switch (TREE_CODE (_p1))
10033 : : {
10034 : 0 : case CALL_EXPR:
10035 : 0 : switch (get_call_combined_fn (_p1))
10036 : : {
10037 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
10038 : 0 : if (call_expr_nargs (_p1) == 1)
10039 : : {
10040 : 0 : tree _q60 = CALL_EXPR_ARG (_p1, 0);
10041 : 0 : switch (TREE_CODE (_q60))
10042 : : {
10043 : 0 : case BIT_IOR_EXPR:
10044 : 0 : {
10045 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
10046 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
10047 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
10048 : : {
10049 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
10050 : : {
10051 : 0 : {
10052 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _q60 };
10053 : 0 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTIMAX);
10054 : 0 : if (res) return res;
10055 : : }
10056 : : }
10057 : : }
10058 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
10059 : : {
10060 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
10061 : : {
10062 : 0 : {
10063 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _q60 };
10064 : 0 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTIMAX);
10065 : 0 : if (res) return res;
10066 : : }
10067 : : }
10068 : : }
10069 : : break;
10070 : : }
10071 : : default:;
10072 : : }
10073 : : }
10074 : : break;
10075 : : default:;
10076 : : }
10077 : : break;
10078 : : default:;
10079 : : }
10080 : : break;
10081 : : }
10082 : 0 : case BIT_IOR_EXPR:
10083 : 0 : {
10084 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
10085 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
10086 : 0 : switch (TREE_CODE (_p1))
10087 : : {
10088 : 0 : case CALL_EXPR:
10089 : 0 : switch (get_call_combined_fn (_p1))
10090 : : {
10091 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
10092 : 0 : if (call_expr_nargs (_p1) == 1)
10093 : : {
10094 : 0 : tree _q60 = CALL_EXPR_ARG (_p1, 0);
10095 : 0 : switch (TREE_CODE (_q60))
10096 : : {
10097 : 0 : case BIT_AND_EXPR:
10098 : 0 : {
10099 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
10100 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
10101 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
10102 : : {
10103 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
10104 : : {
10105 : 0 : {
10106 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q60, _q30, _q31, _p0, _q20 };
10107 : 0 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTIMAX);
10108 : 0 : if (res) return res;
10109 : : }
10110 : : }
10111 : : }
10112 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
10113 : : {
10114 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
10115 : : {
10116 : 0 : {
10117 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q60, _q31, _q30, _p0, _q20 };
10118 : 0 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTIMAX);
10119 : 0 : if (res) return res;
10120 : : }
10121 : : }
10122 : : }
10123 : : break;
10124 : : }
10125 : : default:;
10126 : : }
10127 : : }
10128 : : break;
10129 : : default:;
10130 : : }
10131 : : break;
10132 : : default:;
10133 : : }
10134 : : break;
10135 : : }
10136 : 0 : default:;
10137 : : }
10138 : 0 : switch (TREE_CODE (_p1))
10139 : : {
10140 : 0 : case MINUS_EXPR:
10141 : 0 : {
10142 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
10143 : 0 : tree _q41 = TREE_OPERAND (_p1, 1);
10144 : 0 : switch (TREE_CODE (_q40))
10145 : : {
10146 : 0 : case CALL_EXPR:
10147 : 0 : switch (get_call_combined_fn (_q40))
10148 : : {
10149 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
10150 : 0 : if (call_expr_nargs (_q40) == 1)
10151 : : {
10152 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
10153 : 0 : switch (TREE_CODE (_q41))
10154 : : {
10155 : 0 : case CALL_EXPR:
10156 : 0 : switch (get_call_combined_fn (_q41))
10157 : : {
10158 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
10159 : 0 : if (call_expr_nargs (_q41) == 1)
10160 : : {
10161 : 0 : tree _q70 = CALL_EXPR_ARG (_q41, 0);
10162 : 0 : switch (TREE_CODE (_q70))
10163 : : {
10164 : 0 : case BIT_AND_EXPR:
10165 : 0 : {
10166 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
10167 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
10168 : 0 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
10169 : : {
10170 : 0 : if ((_q81 == _q20 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q20, 0) && types_match (_q81, _q20)))
10171 : : {
10172 : 0 : {
10173 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
10174 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
10175 : 0 : if (res) return res;
10176 : : }
10177 : : }
10178 : : }
10179 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
10180 : : {
10181 : 0 : if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
10182 : : {
10183 : 0 : {
10184 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
10185 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
10186 : 0 : if (res) return res;
10187 : : }
10188 : : }
10189 : : }
10190 : : break;
10191 : : }
10192 : 0 : case BIT_IOR_EXPR:
10193 : 0 : {
10194 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
10195 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
10196 : 0 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
10197 : : {
10198 : 0 : if ((_q81 == _q20 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q20, 0) && types_match (_q81, _q20)))
10199 : : {
10200 : 0 : {
10201 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
10202 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
10203 : 0 : if (res) return res;
10204 : : }
10205 : : }
10206 : : }
10207 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
10208 : : {
10209 : 0 : if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
10210 : : {
10211 : 0 : {
10212 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
10213 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
10214 : 0 : if (res) return res;
10215 : : }
10216 : : }
10217 : : }
10218 : : break;
10219 : : }
10220 : : default:;
10221 : : }
10222 : : }
10223 : : break;
10224 : : default:;
10225 : : }
10226 : : break;
10227 : : default:;
10228 : : }
10229 : : }
10230 : : break;
10231 : : default:;
10232 : : }
10233 : : break;
10234 : : default:;
10235 : : }
10236 : : break;
10237 : : }
10238 : : default:;
10239 : : }
10240 : : }
10241 : : break;
10242 : 0 : case CFN_LOG2:
10243 : 0 : if (call_expr_nargs (_p0) == 1)
10244 : : {
10245 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10246 : 0 : switch (TREE_CODE (_p1))
10247 : : {
10248 : 0 : case CALL_EXPR:
10249 : 0 : switch (get_call_combined_fn (_p1))
10250 : : {
10251 : 0 : case CFN_LOG2:
10252 : 0 : if (call_expr_nargs (_p1) == 1)
10253 : : {
10254 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
10255 : 0 : {
10256 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
10257 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, CFN_LOG2);
10258 : 0 : if (res) return res;
10259 : : }
10260 : : }
10261 : : break;
10262 : : default:;
10263 : : }
10264 : : break;
10265 : : default:;
10266 : : }
10267 : : }
10268 : : break;
10269 : 140 : case CFN_BUILT_IN_POPCOUNTL:
10270 : 140 : if (call_expr_nargs (_p0) == 1)
10271 : : {
10272 : 140 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10273 : 140 : switch (TREE_CODE (_p1))
10274 : : {
10275 : 79 : case CALL_EXPR:
10276 : 79 : switch (get_call_combined_fn (_p1))
10277 : : {
10278 : 79 : case CFN_BUILT_IN_POPCOUNTL:
10279 : 79 : if (call_expr_nargs (_p1) == 1)
10280 : : {
10281 : 79 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
10282 : 79 : {
10283 : 79 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
10284 : 79 : tree res = generic_simplify_33 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTL);
10285 : 79 : if (res) return res;
10286 : : }
10287 : : }
10288 : : break;
10289 : : default:;
10290 : : }
10291 : : break;
10292 : 140 : default:;
10293 : : }
10294 : 140 : switch (TREE_CODE (_q20))
10295 : : {
10296 : 0 : case BIT_AND_EXPR:
10297 : 0 : {
10298 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
10299 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
10300 : 0 : switch (TREE_CODE (_p1))
10301 : : {
10302 : 0 : case CALL_EXPR:
10303 : 0 : switch (get_call_combined_fn (_p1))
10304 : : {
10305 : 0 : case CFN_BUILT_IN_POPCOUNTL:
10306 : 0 : if (call_expr_nargs (_p1) == 1)
10307 : : {
10308 : 0 : tree _q60 = CALL_EXPR_ARG (_p1, 0);
10309 : 0 : switch (TREE_CODE (_q60))
10310 : : {
10311 : 0 : case BIT_IOR_EXPR:
10312 : 0 : {
10313 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
10314 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
10315 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
10316 : : {
10317 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
10318 : : {
10319 : 0 : {
10320 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _q60 };
10321 : 0 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTL);
10322 : 0 : if (res) return res;
10323 : : }
10324 : : }
10325 : : }
10326 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
10327 : : {
10328 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
10329 : : {
10330 : 0 : {
10331 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _q60 };
10332 : 0 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTL);
10333 : 0 : if (res) return res;
10334 : : }
10335 : : }
10336 : : }
10337 : : break;
10338 : : }
10339 : : default:;
10340 : : }
10341 : : }
10342 : : break;
10343 : : default:;
10344 : : }
10345 : : break;
10346 : : default:;
10347 : : }
10348 : : break;
10349 : : }
10350 : 0 : case BIT_IOR_EXPR:
10351 : 0 : {
10352 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
10353 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
10354 : 0 : switch (TREE_CODE (_p1))
10355 : : {
10356 : 0 : case CALL_EXPR:
10357 : 0 : switch (get_call_combined_fn (_p1))
10358 : : {
10359 : 0 : case CFN_BUILT_IN_POPCOUNTL:
10360 : 0 : if (call_expr_nargs (_p1) == 1)
10361 : : {
10362 : 0 : tree _q60 = CALL_EXPR_ARG (_p1, 0);
10363 : 0 : switch (TREE_CODE (_q60))
10364 : : {
10365 : 0 : case BIT_AND_EXPR:
10366 : 0 : {
10367 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
10368 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
10369 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
10370 : : {
10371 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
10372 : : {
10373 : 0 : {
10374 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q60, _q30, _q31, _p0, _q20 };
10375 : 0 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTL);
10376 : 0 : if (res) return res;
10377 : : }
10378 : : }
10379 : : }
10380 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
10381 : : {
10382 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
10383 : : {
10384 : 0 : {
10385 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q60, _q31, _q30, _p0, _q20 };
10386 : 0 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTL);
10387 : 0 : if (res) return res;
10388 : : }
10389 : : }
10390 : : }
10391 : : break;
10392 : : }
10393 : : default:;
10394 : : }
10395 : : }
10396 : : break;
10397 : : default:;
10398 : : }
10399 : : break;
10400 : : default:;
10401 : : }
10402 : : break;
10403 : : }
10404 : 140 : default:;
10405 : : }
10406 : 140 : switch (TREE_CODE (_p1))
10407 : : {
10408 : 0 : case MINUS_EXPR:
10409 : 0 : {
10410 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
10411 : 0 : tree _q41 = TREE_OPERAND (_p1, 1);
10412 : 0 : switch (TREE_CODE (_q40))
10413 : : {
10414 : 0 : case CALL_EXPR:
10415 : 0 : switch (get_call_combined_fn (_q40))
10416 : : {
10417 : 0 : case CFN_BUILT_IN_POPCOUNTL:
10418 : 0 : if (call_expr_nargs (_q40) == 1)
10419 : : {
10420 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
10421 : 0 : switch (TREE_CODE (_q41))
10422 : : {
10423 : 0 : case CALL_EXPR:
10424 : 0 : switch (get_call_combined_fn (_q41))
10425 : : {
10426 : 0 : case CFN_BUILT_IN_POPCOUNTL:
10427 : 0 : if (call_expr_nargs (_q41) == 1)
10428 : : {
10429 : 0 : tree _q70 = CALL_EXPR_ARG (_q41, 0);
10430 : 0 : switch (TREE_CODE (_q70))
10431 : : {
10432 : 0 : case BIT_AND_EXPR:
10433 : 0 : {
10434 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
10435 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
10436 : 0 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
10437 : : {
10438 : 0 : if ((_q81 == _q20 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q20, 0) && types_match (_q81, _q20)))
10439 : : {
10440 : 0 : {
10441 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
10442 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTL);
10443 : 0 : if (res) return res;
10444 : : }
10445 : : }
10446 : : }
10447 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
10448 : : {
10449 : 0 : if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
10450 : : {
10451 : 0 : {
10452 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
10453 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTL);
10454 : 0 : if (res) return res;
10455 : : }
10456 : : }
10457 : : }
10458 : : break;
10459 : : }
10460 : 0 : case BIT_IOR_EXPR:
10461 : 0 : {
10462 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
10463 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
10464 : 0 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
10465 : : {
10466 : 0 : if ((_q81 == _q20 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q20, 0) && types_match (_q81, _q20)))
10467 : : {
10468 : 0 : {
10469 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
10470 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTL);
10471 : 0 : if (res) return res;
10472 : : }
10473 : : }
10474 : : }
10475 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
10476 : : {
10477 : 0 : if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
10478 : : {
10479 : 0 : {
10480 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p1, _q40, _q50, _q41, _q70, _q20, _p0 };
10481 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTL);
10482 : 0 : if (res) return res;
10483 : : }
10484 : : }
10485 : : }
10486 : : break;
10487 : : }
10488 : : default:;
10489 : : }
10490 : : }
10491 : : break;
10492 : : default:;
10493 : : }
10494 : : break;
10495 : : default:;
10496 : : }
10497 : : }
10498 : : break;
10499 : : default:;
10500 : : }
10501 : : break;
10502 : : default:;
10503 : : }
10504 : : break;
10505 : : }
10506 : : default:;
10507 : : }
10508 : : }
10509 : : break;
10510 : 0 : case CFN_LOG10:
10511 : 0 : if (call_expr_nargs (_p0) == 1)
10512 : : {
10513 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10514 : 0 : switch (TREE_CODE (_p1))
10515 : : {
10516 : 0 : case CALL_EXPR:
10517 : 0 : switch (get_call_combined_fn (_p1))
10518 : : {
10519 : 0 : case CFN_LOG10:
10520 : 0 : if (call_expr_nargs (_p1) == 1)
10521 : : {
10522 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
10523 : 0 : {
10524 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
10525 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, CFN_LOG10);
10526 : 0 : if (res) return res;
10527 : : }
10528 : : }
10529 : : break;
10530 : : default:;
10531 : : }
10532 : : break;
10533 : : default:;
10534 : : }
10535 : : }
10536 : : break;
10537 : 0 : case CFN_BUILT_IN_LOG10:
10538 : 0 : if (call_expr_nargs (_p0) == 1)
10539 : : {
10540 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10541 : 0 : switch (TREE_CODE (_p1))
10542 : : {
10543 : 0 : case CALL_EXPR:
10544 : 0 : switch (get_call_combined_fn (_p1))
10545 : : {
10546 : 0 : case CFN_BUILT_IN_LOG10:
10547 : 0 : if (call_expr_nargs (_p1) == 1)
10548 : : {
10549 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
10550 : 0 : {
10551 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
10552 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOG10);
10553 : 0 : if (res) return res;
10554 : : }
10555 : : }
10556 : : break;
10557 : : default:;
10558 : : }
10559 : : break;
10560 : : default:;
10561 : : }
10562 : : }
10563 : : break;
10564 : 0 : case CFN_BUILT_IN_LOG2F:
10565 : 0 : if (call_expr_nargs (_p0) == 1)
10566 : : {
10567 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10568 : 0 : switch (TREE_CODE (_p1))
10569 : : {
10570 : 0 : case CALL_EXPR:
10571 : 0 : switch (get_call_combined_fn (_p1))
10572 : : {
10573 : 0 : case CFN_BUILT_IN_LOG2F:
10574 : 0 : if (call_expr_nargs (_p1) == 1)
10575 : : {
10576 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
10577 : 0 : {
10578 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
10579 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOG2F);
10580 : 0 : if (res) return res;
10581 : : }
10582 : : }
10583 : : break;
10584 : : default:;
10585 : : }
10586 : : break;
10587 : : default:;
10588 : : }
10589 : : }
10590 : : break;
10591 : 0 : case CFN_BUILT_IN_LOG2L:
10592 : 0 : if (call_expr_nargs (_p0) == 1)
10593 : : {
10594 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
10595 : 0 : switch (TREE_CODE (_p1))
10596 : : {
10597 : 0 : case CALL_EXPR:
10598 : 0 : switch (get_call_combined_fn (_p1))
10599 : : {
10600 : 0 : case CFN_BUILT_IN_LOG2L:
10601 : 0 : if (call_expr_nargs (_p1) == 1)
10602 : : {
10603 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
10604 : 0 : {
10605 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
10606 : 0 : tree res = generic_simplify_32 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_LOG2L);
10607 : 0 : if (res) return res;
10608 : : }
10609 : : }
10610 : : break;
10611 : : default:;
10612 : : }
10613 : : break;
10614 : : default:;
10615 : : }
10616 : : }
10617 : : break;
10618 : : default:;
10619 : : }
10620 : : break;
10621 : 59062561 : default:;
10622 : : }
10623 : 59062561 : switch (TREE_CODE (_p1))
10624 : : {
10625 : 0 : case VEC_PERM_EXPR:
10626 : 0 : {
10627 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
10628 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
10629 : 0 : tree _q32 = TREE_OPERAND (_p1, 2);
10630 : 0 : switch (TREE_CODE (_q30))
10631 : : {
10632 : 0 : case MULT_EXPR:
10633 : 0 : {
10634 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
10635 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
10636 : 0 : if (tree_vec_same_elem_p (_q41))
10637 : : {
10638 : 0 : if ((_q31 == _q30 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _q30, 0) && types_match (_q31, _q30)))
10639 : : {
10640 : 0 : {
10641 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q40, _q41, _q32, _p0 };
10642 : 0 : tree res = generic_simplify_36 (loc, type, _p0, _p1, captures);
10643 : 0 : if (res) return res;
10644 : : }
10645 : : }
10646 : : }
10647 : 0 : if (tree_vec_same_elem_p (_q40))
10648 : : {
10649 : 0 : if ((_q31 == _q30 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _q30, 0) && types_match (_q31, _q30)))
10650 : : {
10651 : 0 : {
10652 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q41, _q40, _q32, _p0 };
10653 : 0 : tree res = generic_simplify_36 (loc, type, _p0, _p1, captures);
10654 : 0 : if (res) return res;
10655 : : }
10656 : : }
10657 : : }
10658 : : break;
10659 : : }
10660 : : default:;
10661 : : }
10662 : : break;
10663 : : }
10664 : : default:;
10665 : : }
10666 : : return NULL_TREE;
10667 : : }
10668 : :
10669 : : tree
10670 : 1744137 : generic_simplify_UNGT_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
10671 : : {
10672 : 1744137 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
10673 : 1744137 : switch (TREE_CODE (_p0))
10674 : : {
10675 : 0 : case VEC_COND_EXPR:
10676 : 0 : {
10677 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
10678 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
10679 : 0 : tree _q22 = TREE_OPERAND (_p0, 2);
10680 : 0 : switch (TREE_CODE (_p1))
10681 : : {
10682 : 0 : case VEC_COND_EXPR:
10683 : 0 : {
10684 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
10685 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
10686 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
10687 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
10688 : : {
10689 : 0 : {
10690 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
10691 : 0 : if (VECTOR_TYPE_P (type)
10692 : 0 : && (TREE_CODE_CLASS (UNGT_EXPR) != tcc_comparison
10693 : 0 : || types_match (type, TREE_TYPE (captures[2]))
10694 : 0 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
10695 : : || (optimize_vectors_before_lowering_p ()
10696 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
10697 : : )
10698 : : {
10699 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1766;
10700 : 0 : {
10701 : 0 : tree res_op0;
10702 : 0 : res_op0 = captures[1];
10703 : 0 : tree res_op1;
10704 : 0 : {
10705 : 0 : tree _o1[2], _r1;
10706 : 0 : _o1[0] = captures[2];
10707 : 0 : _o1[1] = captures[5];
10708 : 0 : _r1 = fold_build2_loc (loc, UNGT_EXPR, type, _o1[0], _o1[1]);
10709 : 0 : if (EXPR_P (_r1))
10710 : 0 : goto next_after_fail1766;
10711 : 0 : res_op1 = _r1;
10712 : : }
10713 : 0 : tree res_op2;
10714 : 0 : {
10715 : 0 : tree _o1[2], _r1;
10716 : 0 : _o1[0] = captures[3];
10717 : 0 : _o1[1] = captures[6];
10718 : 0 : _r1 = fold_build2_loc (loc, UNGT_EXPR, type, _o1[0], _o1[1]);
10719 : 0 : if (EXPR_P (_r1))
10720 : 0 : goto next_after_fail1766;
10721 : 0 : res_op2 = _r1;
10722 : : }
10723 : 0 : tree _r;
10724 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10725 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 898, __FILE__, __LINE__, true);
10726 : 0 : return _r;
10727 : : }
10728 : 0 : next_after_fail1766:;
10729 : : }
10730 : : }
10731 : : }
10732 : : break;
10733 : : }
10734 : 0 : default:;
10735 : : }
10736 : 0 : {
10737 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
10738 : 0 : if (VECTOR_TYPE_P (type)
10739 : 0 : && (TREE_CODE_CLASS (UNGT_EXPR) != tcc_comparison
10740 : 0 : || types_match (type, TREE_TYPE (captures[2]))
10741 : 0 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
10742 : : || (optimize_vectors_before_lowering_p ()
10743 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
10744 : : )
10745 : : {
10746 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1767;
10747 : 0 : {
10748 : 0 : if (! tree_invariant_p (captures[4])) goto next_after_fail1767;
10749 : 0 : tree res_op0;
10750 : 0 : res_op0 = captures[1];
10751 : 0 : tree res_op1;
10752 : 0 : {
10753 : 0 : tree _o1[2], _r1;
10754 : 0 : _o1[0] = captures[2];
10755 : 0 : _o1[1] = unshare_expr (captures[4]);
10756 : 0 : _r1 = fold_build2_loc (loc, UNGT_EXPR, type, _o1[0], _o1[1]);
10757 : 0 : if (EXPR_P (_r1))
10758 : 0 : goto next_after_fail1767;
10759 : 0 : res_op1 = _r1;
10760 : : }
10761 : 0 : tree res_op2;
10762 : 0 : {
10763 : 0 : tree _o1[2], _r1;
10764 : 0 : _o1[0] = captures[3];
10765 : 0 : _o1[1] = captures[4];
10766 : 0 : _r1 = fold_build2_loc (loc, UNGT_EXPR, type, _o1[0], _o1[1]);
10767 : 0 : if (EXPR_P (_r1))
10768 : 0 : goto next_after_fail1767;
10769 : 0 : res_op2 = _r1;
10770 : : }
10771 : 0 : tree _r;
10772 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10773 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 899, __FILE__, __LINE__, true);
10774 : 0 : return _r;
10775 : : }
10776 : 0 : next_after_fail1767:;
10777 : : }
10778 : : }
10779 : 0 : break;
10780 : : }
10781 : 1744137 : default:;
10782 : : }
10783 : 1744137 : switch (TREE_CODE (_p1))
10784 : : {
10785 : 0 : case VEC_COND_EXPR:
10786 : 0 : {
10787 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
10788 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
10789 : 0 : tree _q32 = TREE_OPERAND (_p1, 2);
10790 : 0 : {
10791 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
10792 : 0 : if (VECTOR_TYPE_P (type)
10793 : 0 : && (TREE_CODE_CLASS (UNGT_EXPR) != tcc_comparison
10794 : 0 : || types_match (type, TREE_TYPE (captures[3]))
10795 : 0 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
10796 : : || (optimize_vectors_before_lowering_p ()
10797 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
10798 : : )
10799 : : {
10800 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1768;
10801 : 0 : {
10802 : 0 : if (! tree_invariant_p (captures[0])) goto next_after_fail1768;
10803 : 0 : tree res_op0;
10804 : 0 : res_op0 = captures[2];
10805 : 0 : tree res_op1;
10806 : 0 : {
10807 : 0 : tree _o1[2], _r1;
10808 : 0 : _o1[0] = unshare_expr (captures[0]);
10809 : 0 : _o1[1] = captures[3];
10810 : 0 : _r1 = fold_build2_loc (loc, UNGT_EXPR, type, _o1[0], _o1[1]);
10811 : 0 : if (EXPR_P (_r1))
10812 : 0 : goto next_after_fail1768;
10813 : 0 : res_op1 = _r1;
10814 : : }
10815 : 0 : tree res_op2;
10816 : 0 : {
10817 : 0 : tree _o1[2], _r1;
10818 : 0 : _o1[0] = captures[0];
10819 : 0 : _o1[1] = captures[4];
10820 : 0 : _r1 = fold_build2_loc (loc, UNGT_EXPR, type, _o1[0], _o1[1]);
10821 : 0 : if (EXPR_P (_r1))
10822 : 0 : goto next_after_fail1768;
10823 : 0 : res_op2 = _r1;
10824 : : }
10825 : 0 : tree _r;
10826 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10827 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 900, __FILE__, __LINE__, true);
10828 : 0 : return _r;
10829 : : }
10830 : 0 : next_after_fail1768:;
10831 : : }
10832 : : }
10833 : 0 : break;
10834 : : }
10835 : 1744137 : default:;
10836 : : }
10837 : 1744137 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
10838 : : {
10839 : 0 : {
10840 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
10841 : 0 : tree res = generic_simplify_536 (loc, type, _p0, _p1, captures, UNGT_EXPR);
10842 : 0 : if (res) return res;
10843 : : }
10844 : : }
10845 : 1744137 : switch (TREE_CODE (_p0))
10846 : : {
10847 : 338 : case FLOAT_EXPR:
10848 : 338 : {
10849 : 338 : tree _q20 = TREE_OPERAND (_p0, 0);
10850 : 338 : switch (TREE_CODE (_p1))
10851 : : {
10852 : 0 : case FLOAT_EXPR:
10853 : 0 : {
10854 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
10855 : 0 : {
10856 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
10857 : 0 : tree res = generic_simplify_252 (loc, type, _p0, _p1, captures, UNGT_EXPR, GT_EXPR);
10858 : 0 : if (res) return res;
10859 : : }
10860 : 0 : break;
10861 : : }
10862 : : default:;
10863 : : }
10864 : : break;
10865 : : }
10866 : 0 : case NEGATE_EXPR:
10867 : 0 : {
10868 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
10869 : 0 : switch (TREE_CODE (_p1))
10870 : : {
10871 : 0 : case NEGATE_EXPR:
10872 : 0 : {
10873 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
10874 : 0 : {
10875 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
10876 : 0 : tree res = generic_simplify_255 (loc, type, _p0, _p1, captures, UNGT_EXPR, UNLT_EXPR);
10877 : 0 : if (res) return res;
10878 : : }
10879 : 0 : break;
10880 : : }
10881 : 0 : default:;
10882 : : }
10883 : 0 : if (CONSTANT_CLASS_P (_p1))
10884 : : {
10885 : 0 : {
10886 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
10887 : 0 : tree res = generic_simplify_256 (loc, type, _p0, _p1, captures, UNGT_EXPR, UNLT_EXPR);
10888 : 0 : if (res) return res;
10889 : : }
10890 : : }
10891 : : break;
10892 : : }
10893 : 1744137 : default:;
10894 : : }
10895 : 1744137 : switch (TREE_CODE (_p1))
10896 : : {
10897 : 1339267 : case REAL_CST:
10898 : 1339267 : {
10899 : 1339267 : {
10900 : 1339267 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
10901 : 1339267 : tree res = generic_simplify_535 (loc, type, _p0, _p1, captures, UNGT_EXPR);
10902 : 1339267 : if (res) return res;
10903 : : }
10904 : 1339265 : break;
10905 : : }
10906 : : default:;
10907 : : }
10908 : : return NULL_TREE;
10909 : : }
10910 : :
10911 : : tree
10912 : 551439101 : generic_simplify (location_t loc, enum tree_code code, const tree type ATTRIBUTE_UNUSED, tree _p0, tree _p1)
10913 : : {
10914 : 551439101 : switch (code)
10915 : : {
10916 : 93293186 : case PLUS_EXPR:
10917 : 93293186 : return generic_simplify_PLUS_EXPR (loc, code, type, _p0, _p1);
10918 : 33969739 : case POINTER_PLUS_EXPR:
10919 : 33969739 : return generic_simplify_POINTER_PLUS_EXPR (loc, code, type, _p0, _p1);
10920 : 31048118 : case MINUS_EXPR:
10921 : 31048118 : return generic_simplify_MINUS_EXPR (loc, code, type, _p0, _p1);
10922 : 1787768 : case BIT_IOR_EXPR:
10923 : 1787768 : return generic_simplify_BIT_IOR_EXPR (loc, code, type, _p0, _p1);
10924 : 687472 : case BIT_XOR_EXPR:
10925 : 687472 : return generic_simplify_BIT_XOR_EXPR (loc, code, type, _p0, _p1);
10926 : 2648482 : case POINTER_DIFF_EXPR:
10927 : 2648482 : return generic_simplify_POINTER_DIFF_EXPR (loc, code, type, _p0, _p1);
10928 : 68091220 : case MULT_EXPR:
10929 : 68091220 : return generic_simplify_MULT_EXPR (loc, code, type, _p0, _p1);
10930 : 24647512 : case EQ_EXPR:
10931 : 24647512 : return generic_simplify_EQ_EXPR (loc, code, type, _p0, _p1);
10932 : 32993551 : case NE_EXPR:
10933 : 32993551 : return generic_simplify_NE_EXPR (loc, code, type, _p0, _p1);
10934 : 2102834 : case TRUNC_DIV_EXPR:
10935 : 2102834 : return generic_simplify_TRUNC_DIV_EXPR (loc, code, type, _p0, _p1);
10936 : 6253 : case CEIL_DIV_EXPR:
10937 : 6253 : return generic_simplify_CEIL_DIV_EXPR (loc, code, type, _p0, _p1);
10938 : 2172810 : case FLOOR_DIV_EXPR:
10939 : 2172810 : return generic_simplify_FLOOR_DIV_EXPR (loc, code, type, _p0, _p1);
10940 : 0 : case ROUND_DIV_EXPR:
10941 : 0 : return generic_simplify_ROUND_DIV_EXPR (loc, code, type, _p0, _p1);
10942 : 3385805 : case EXACT_DIV_EXPR:
10943 : 3385805 : return generic_simplify_EXACT_DIV_EXPR (loc, code, type, _p0, _p1);
10944 : 889558 : case FLOOR_MOD_EXPR:
10945 : 889558 : return generic_simplify_FLOOR_MOD_EXPR (loc, code, type, _p0, _p1);
10946 : 6596226 : case RDIV_EXPR:
10947 : 6596226 : return generic_simplify_RDIV_EXPR (loc, code, type, _p0, _p1);
10948 : 16216478 : case LT_EXPR:
10949 : 16216478 : return generic_simplify_LT_EXPR (loc, code, type, _p0, _p1);
10950 : 8511179 : case LE_EXPR:
10951 : 8511179 : return generic_simplify_LE_EXPR (loc, code, type, _p0, _p1);
10952 : 18824776 : case GT_EXPR:
10953 : 18824776 : return generic_simplify_GT_EXPR (loc, code, type, _p0, _p1);
10954 : 5975005 : case GE_EXPR:
10955 : 5975005 : return generic_simplify_GE_EXPR (loc, code, type, _p0, _p1);
10956 : 3584 : case CEIL_MOD_EXPR:
10957 : 3584 : return generic_simplify_CEIL_MOD_EXPR (loc, code, type, _p0, _p1);
10958 : 0 : case ROUND_MOD_EXPR:
10959 : 0 : return generic_simplify_ROUND_MOD_EXPR (loc, code, type, _p0, _p1);
10960 : 1781730 : case TRUNC_MOD_EXPR:
10961 : 1781730 : return generic_simplify_TRUNC_MOD_EXPR (loc, code, type, _p0, _p1);
10962 : 1215058 : case LSHIFT_EXPR:
10963 : 1215058 : return generic_simplify_LSHIFT_EXPR (loc, code, type, _p0, _p1);
10964 : 895655 : case RSHIFT_EXPR:
10965 : 895655 : return generic_simplify_RSHIFT_EXPR (loc, code, type, _p0, _p1);
10966 : 6636948 : case BIT_AND_EXPR:
10967 : 6636948 : return generic_simplify_BIT_AND_EXPR (loc, code, type, _p0, _p1);
10968 : 82761 : case MIN_EXPR:
10969 : 82761 : return generic_simplify_MIN_EXPR (loc, code, type, _p0, _p1);
10970 : 351968 : case MAX_EXPR:
10971 : 351968 : return generic_simplify_MAX_EXPR (loc, code, type, _p0, _p1);
10972 : 1593 : case LROTATE_EXPR:
10973 : 1593 : return generic_simplify_LROTATE_EXPR (loc, code, type, _p0, _p1);
10974 : 2494 : case RROTATE_EXPR:
10975 : 2494 : return generic_simplify_RROTATE_EXPR (loc, code, type, _p0, _p1);
10976 : 806781 : case COMPLEX_EXPR:
10977 : 806781 : return generic_simplify_COMPLEX_EXPR (loc, code, type, _p0, _p1);
10978 : 846656 : case UNORDERED_EXPR:
10979 : 846656 : return generic_simplify_UNORDERED_EXPR (loc, code, type, _p0, _p1);
10980 : 217907 : case ORDERED_EXPR:
10981 : 217907 : return generic_simplify_ORDERED_EXPR (loc, code, type, _p0, _p1);
10982 : 812656 : case UNLT_EXPR:
10983 : 812656 : return generic_simplify_UNLT_EXPR (loc, code, type, _p0, _p1);
10984 : 966874 : case UNLE_EXPR:
10985 : 966874 : return generic_simplify_UNLE_EXPR (loc, code, type, _p0, _p1);
10986 : 1744137 : case UNGT_EXPR:
10987 : 1744137 : return generic_simplify_UNGT_EXPR (loc, code, type, _p0, _p1);
10988 : 462357 : case UNGE_EXPR:
10989 : 462357 : return generic_simplify_UNGE_EXPR (loc, code, type, _p0, _p1);
10990 : 404766 : case UNEQ_EXPR:
10991 : 404766 : return generic_simplify_UNEQ_EXPR (loc, code, type, _p0, _p1);
10992 : 85 : case LTGT_EXPR:
10993 : 85 : return generic_simplify_LTGT_EXPR (loc, code, type, _p0, _p1);
10994 : 3065076 : case TRUTH_ORIF_EXPR:
10995 : 3065076 : return generic_simplify_TRUTH_ORIF_EXPR (loc, code, type, _p0, _p1);
10996 : 9397394 : case TRUTH_OR_EXPR:
10997 : 9397394 : return generic_simplify_TRUTH_OR_EXPR (loc, code, type, _p0, _p1);
10998 : : default:;
10999 : : }
11000 : : return NULL_TREE;
11001 : : }
11002 : :
11003 : : tree
11004 : 310731 : generic_simplify_VEC_COND_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1, tree _p2)
11005 : : {
11006 : 310731 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
11007 : 310731 : switch (TREE_CODE (_p0))
11008 : : {
11009 : 3412 : case VECTOR_CST:
11010 : 3412 : {
11011 : 3412 : {
11012 : 3412 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _p2 };
11013 : 3412 : if (integer_all_onesp (captures[0])
11014 : : )
11015 : : {
11016 : 470 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1881;
11017 : 470 : {
11018 : 470 : tree _r;
11019 : 470 : _r = captures[1];
11020 : 470 : if (TREE_SIDE_EFFECTS (captures[0]))
11021 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
11022 : 470 : if (TREE_SIDE_EFFECTS (captures[2]))
11023 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
11024 : 470 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1077, __FILE__, __LINE__, true);
11025 : 470 : return _r;
11026 : : }
11027 : 0 : next_after_fail1881:;
11028 : : }
11029 : : else
11030 : : {
11031 : 2942 : if (integer_zerop (captures[0])
11032 : : )
11033 : : {
11034 : 1410 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1882;
11035 : 1410 : {
11036 : 1410 : tree _r;
11037 : 1410 : _r = captures[2];
11038 : 1410 : if (TREE_SIDE_EFFECTS (captures[0]))
11039 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
11040 : 1410 : if (TREE_SIDE_EFFECTS (captures[1]))
11041 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
11042 : 1410 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1078, __FILE__, __LINE__, true);
11043 : 1410 : return _r;
11044 : : }
11045 : 0 : next_after_fail1882:;
11046 : : }
11047 : : }
11048 : : }
11049 : 1532 : break;
11050 : : }
11051 : 308851 : default:;
11052 : : }
11053 : 308851 : switch (TREE_CODE (_p1))
11054 : : {
11055 : 267285 : case VECTOR_CST:
11056 : 267285 : {
11057 : 267285 : switch (TREE_CODE (_p2))
11058 : : {
11059 : 261696 : case VECTOR_CST:
11060 : 261696 : {
11061 : 261696 : {
11062 : 261696 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _p2 };
11063 : 261696 : if (VECTOR_BOOLEAN_TYPE_P (type)
11064 : 261825 : && types_match (type, TREE_TYPE (captures[0]))
11065 : : )
11066 : : {
11067 : 122 : if (integer_zerop (captures[1]) && integer_all_onesp (captures[2])
11068 : : )
11069 : : {
11070 : 28 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1883;
11071 : 28 : {
11072 : 28 : tree res_op0;
11073 : 28 : res_op0 = captures[0];
11074 : 28 : tree _r;
11075 : 28 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
11076 : 28 : if (TREE_SIDE_EFFECTS (captures[1]))
11077 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
11078 : 28 : if (TREE_SIDE_EFFECTS (captures[2]))
11079 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
11080 : 28 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1079, __FILE__, __LINE__, true);
11081 : 28 : return _r;
11082 : : }
11083 : 0 : next_after_fail1883:;
11084 : : }
11085 : : else
11086 : : {
11087 : 94 : if (integer_all_onesp (captures[1]) && integer_zerop (captures[2])
11088 : : )
11089 : : {
11090 : 64 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1884;
11091 : 64 : {
11092 : 64 : tree _r;
11093 : 64 : _r = captures[0];
11094 : 64 : if (TREE_SIDE_EFFECTS (captures[1]))
11095 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
11096 : 64 : if (TREE_SIDE_EFFECTS (captures[2]))
11097 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
11098 : 64 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1080, __FILE__, __LINE__, true);
11099 : 64 : return _r;
11100 : : }
11101 : 0 : next_after_fail1884:;
11102 : : }
11103 : : }
11104 : : }
11105 : : }
11106 : 261604 : break;
11107 : : }
11108 : : default:;
11109 : : }
11110 : : break;
11111 : : }
11112 : 308759 : default:;
11113 : : }
11114 : 308759 : switch (TREE_CODE (_p0))
11115 : : {
11116 : 1205 : case NE_EXPR:
11117 : 1205 : {
11118 : 1205 : tree _q20 = TREE_OPERAND (_p0, 0);
11119 : 1205 : tree _q21 = TREE_OPERAND (_p0, 1);
11120 : 1205 : switch (TREE_CODE (_p1))
11121 : : {
11122 : 6 : case MINUS_EXPR:
11123 : 6 : {
11124 : 6 : tree _q50 = TREE_OPERAND (_p1, 0);
11125 : 6 : tree _q51 = TREE_OPERAND (_p1, 1);
11126 : 6 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
11127 : : {
11128 : 6 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
11129 : : {
11130 : 6 : if (integer_zerop (_p2))
11131 : : {
11132 : 6 : {
11133 : 6 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
11134 : 6 : tree res = generic_simplify_520 (loc, type, _p0, _p1, _p2, captures);
11135 : 6 : if (res) return res;
11136 : : }
11137 : : }
11138 : : }
11139 : : }
11140 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
11141 : : {
11142 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
11143 : : {
11144 : 0 : if (integer_zerop (_p2))
11145 : : {
11146 : 0 : {
11147 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _p1 };
11148 : 0 : tree res = generic_simplify_520 (loc, type, _p0, _p1, _p2, captures);
11149 : 0 : if (res) return res;
11150 : : }
11151 : : }
11152 : : }
11153 : : }
11154 : : break;
11155 : : }
11156 : 6 : case BIT_XOR_EXPR:
11157 : 6 : {
11158 : 6 : tree _q50 = TREE_OPERAND (_p1, 0);
11159 : 6 : tree _q51 = TREE_OPERAND (_p1, 1);
11160 : 6 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
11161 : : {
11162 : 6 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
11163 : : {
11164 : 6 : if (integer_zerop (_p2))
11165 : : {
11166 : 6 : {
11167 : 6 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
11168 : 6 : tree res = generic_simplify_521 (loc, type, _p0, _p1, _p2, captures);
11169 : 6 : if (res) return res;
11170 : : }
11171 : : }
11172 : : }
11173 : : }
11174 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
11175 : : {
11176 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
11177 : : {
11178 : 0 : if (integer_zerop (_p2))
11179 : : {
11180 : 0 : {
11181 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _p1 };
11182 : 0 : tree res = generic_simplify_521 (loc, type, _p0, _p1, _p2, captures);
11183 : 0 : if (res) return res;
11184 : : }
11185 : : }
11186 : : }
11187 : : }
11188 : : break;
11189 : : }
11190 : 6 : case BIT_AND_EXPR:
11191 : 6 : {
11192 : 6 : tree _q50 = TREE_OPERAND (_p1, 0);
11193 : 6 : tree _q51 = TREE_OPERAND (_p1, 1);
11194 : 6 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
11195 : : {
11196 : 6 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
11197 : : {
11198 : 6 : if ((_p2 == _q20 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q20, 0) && types_match (_p2, _q20)))
11199 : : {
11200 : 6 : {
11201 : 6 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
11202 : 6 : tree res = generic_simplify_522 (loc, type, _p0, _p1, _p2, captures, BIT_AND_EXPR);
11203 : 6 : if (res) return res;
11204 : : }
11205 : : }
11206 : 0 : if ((_p2 == _q21 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q21, 0) && types_match (_p2, _q21)))
11207 : : {
11208 : 0 : {
11209 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _p1 };
11210 : 0 : tree res = generic_simplify_522 (loc, type, _p0, _p1, _p2, captures, BIT_AND_EXPR);
11211 : 0 : if (res) return res;
11212 : : }
11213 : : }
11214 : : }
11215 : : }
11216 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
11217 : : {
11218 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
11219 : : {
11220 : 0 : if ((_p2 == _q20 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q20, 0) && types_match (_p2, _q20)))
11221 : : {
11222 : 0 : {
11223 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
11224 : 0 : tree res = generic_simplify_522 (loc, type, _p0, _p1, _p2, captures, BIT_AND_EXPR);
11225 : 0 : if (res) return res;
11226 : : }
11227 : : }
11228 : 0 : if ((_p2 == _q21 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q21, 0) && types_match (_p2, _q21)))
11229 : : {
11230 : 0 : {
11231 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _p1 };
11232 : 0 : tree res = generic_simplify_522 (loc, type, _p0, _p1, _p2, captures, BIT_AND_EXPR);
11233 : 0 : if (res) return res;
11234 : : }
11235 : : }
11236 : : }
11237 : : }
11238 : : break;
11239 : : }
11240 : 6 : case BIT_IOR_EXPR:
11241 : 6 : {
11242 : 6 : tree _q50 = TREE_OPERAND (_p1, 0);
11243 : 6 : tree _q51 = TREE_OPERAND (_p1, 1);
11244 : 6 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
11245 : : {
11246 : 6 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
11247 : : {
11248 : 6 : if ((_p2 == _q20 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q20, 0) && types_match (_p2, _q20)))
11249 : : {
11250 : 6 : {
11251 : 6 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
11252 : 6 : tree res = generic_simplify_522 (loc, type, _p0, _p1, _p2, captures, BIT_IOR_EXPR);
11253 : 6 : if (res) return res;
11254 : : }
11255 : : }
11256 : 0 : if ((_p2 == _q21 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q21, 0) && types_match (_p2, _q21)))
11257 : : {
11258 : 0 : {
11259 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _p1 };
11260 : 0 : tree res = generic_simplify_522 (loc, type, _p0, _p1, _p2, captures, BIT_IOR_EXPR);
11261 : 0 : if (res) return res;
11262 : : }
11263 : : }
11264 : : }
11265 : : }
11266 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
11267 : : {
11268 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
11269 : : {
11270 : 0 : if ((_p2 == _q20 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q20, 0) && types_match (_p2, _q20)))
11271 : : {
11272 : 0 : {
11273 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
11274 : 0 : tree res = generic_simplify_522 (loc, type, _p0, _p1, _p2, captures, BIT_IOR_EXPR);
11275 : 0 : if (res) return res;
11276 : : }
11277 : : }
11278 : 0 : if ((_p2 == _q21 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q21, 0) && types_match (_p2, _q21)))
11279 : : {
11280 : 0 : {
11281 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _p1 };
11282 : 0 : tree res = generic_simplify_522 (loc, type, _p0, _p1, _p2, captures, BIT_IOR_EXPR);
11283 : 0 : if (res) return res;
11284 : : }
11285 : : }
11286 : : }
11287 : : }
11288 : : break;
11289 : : }
11290 : 0 : case MIN_EXPR:
11291 : 0 : {
11292 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
11293 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
11294 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
11295 : : {
11296 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
11297 : : {
11298 : 0 : if ((_p2 == _q20 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q20, 0) && types_match (_p2, _q20)))
11299 : : {
11300 : 0 : {
11301 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
11302 : 0 : tree res = generic_simplify_522 (loc, type, _p0, _p1, _p2, captures, MIN_EXPR);
11303 : 0 : if (res) return res;
11304 : : }
11305 : : }
11306 : 0 : if ((_p2 == _q21 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q21, 0) && types_match (_p2, _q21)))
11307 : : {
11308 : 0 : {
11309 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _p1 };
11310 : 0 : tree res = generic_simplify_522 (loc, type, _p0, _p1, _p2, captures, MIN_EXPR);
11311 : 0 : if (res) return res;
11312 : : }
11313 : : }
11314 : : }
11315 : : }
11316 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
11317 : : {
11318 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
11319 : : {
11320 : 0 : if ((_p2 == _q20 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q20, 0) && types_match (_p2, _q20)))
11321 : : {
11322 : 0 : {
11323 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
11324 : 0 : tree res = generic_simplify_522 (loc, type, _p0, _p1, _p2, captures, MIN_EXPR);
11325 : 0 : if (res) return res;
11326 : : }
11327 : : }
11328 : 0 : if ((_p2 == _q21 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q21, 0) && types_match (_p2, _q21)))
11329 : : {
11330 : 0 : {
11331 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _p1 };
11332 : 0 : tree res = generic_simplify_522 (loc, type, _p0, _p1, _p2, captures, MIN_EXPR);
11333 : 0 : if (res) return res;
11334 : : }
11335 : : }
11336 : : }
11337 : : }
11338 : : break;
11339 : : }
11340 : 0 : case MAX_EXPR:
11341 : 0 : {
11342 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
11343 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
11344 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
11345 : : {
11346 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
11347 : : {
11348 : 0 : if ((_p2 == _q20 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q20, 0) && types_match (_p2, _q20)))
11349 : : {
11350 : 0 : {
11351 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
11352 : 0 : tree res = generic_simplify_522 (loc, type, _p0, _p1, _p2, captures, MAX_EXPR);
11353 : 0 : if (res) return res;
11354 : : }
11355 : : }
11356 : 0 : if ((_p2 == _q21 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q21, 0) && types_match (_p2, _q21)))
11357 : : {
11358 : 0 : {
11359 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _p1 };
11360 : 0 : tree res = generic_simplify_522 (loc, type, _p0, _p1, _p2, captures, MAX_EXPR);
11361 : 0 : if (res) return res;
11362 : : }
11363 : : }
11364 : : }
11365 : : }
11366 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
11367 : : {
11368 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
11369 : : {
11370 : 0 : if ((_p2 == _q20 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q20, 0) && types_match (_p2, _q20)))
11371 : : {
11372 : 0 : {
11373 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
11374 : 0 : tree res = generic_simplify_522 (loc, type, _p0, _p1, _p2, captures, MAX_EXPR);
11375 : 0 : if (res) return res;
11376 : : }
11377 : : }
11378 : 0 : if ((_p2 == _q21 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q21, 0) && types_match (_p2, _q21)))
11379 : : {
11380 : 0 : {
11381 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _p1 };
11382 : 0 : tree res = generic_simplify_522 (loc, type, _p0, _p1, _p2, captures, MAX_EXPR);
11383 : 0 : if (res) return res;
11384 : : }
11385 : : }
11386 : : }
11387 : : }
11388 : : break;
11389 : : }
11390 : 6 : case MULT_EXPR:
11391 : 6 : {
11392 : 6 : tree _q50 = TREE_OPERAND (_p1, 0);
11393 : 6 : tree _q51 = TREE_OPERAND (_p1, 1);
11394 : 6 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
11395 : : {
11396 : 6 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
11397 : : {
11398 : 6 : switch (TREE_CODE (_p2))
11399 : : {
11400 : 6 : case MULT_EXPR:
11401 : 6 : {
11402 : 6 : tree _q80 = TREE_OPERAND (_p2, 0);
11403 : 6 : tree _q81 = TREE_OPERAND (_p2, 1);
11404 : 6 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
11405 : : {
11406 : 6 : if ((_q81 == _q20 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q20, 0) && types_match (_q81, _q20)))
11407 : : {
11408 : 6 : {
11409 : 6 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
11410 : 6 : const enum tree_code op = MULT_EXPR;
11411 : 6 : if (ANY_INTEGRAL_TYPE_P (type)
11412 : : )
11413 : : {
11414 : 6 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1885;
11415 : 6 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1885;
11416 : 6 : {
11417 : 6 : tree _r;
11418 : 6 : _r = captures[2];
11419 : 6 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1042, __FILE__, __LINE__, true);
11420 : 6 : return _r;
11421 : : }
11422 : 0 : next_after_fail1885:;
11423 : : }
11424 : : }
11425 : : }
11426 : : }
11427 : : break;
11428 : : }
11429 : : default:;
11430 : : }
11431 : : }
11432 : : }
11433 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
11434 : : {
11435 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
11436 : : {
11437 : 0 : switch (TREE_CODE (_p2))
11438 : : {
11439 : 0 : case MULT_EXPR:
11440 : 0 : {
11441 : 0 : tree _q80 = TREE_OPERAND (_p2, 0);
11442 : 0 : tree _q81 = TREE_OPERAND (_p2, 1);
11443 : 0 : if ((_q80 == _q21 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q21, 0) && types_match (_q80, _q21)))
11444 : : {
11445 : 0 : if ((_q81 == _q21 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q21, 0) && types_match (_q81, _q21)))
11446 : : {
11447 : 0 : {
11448 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _p1 };
11449 : 0 : const enum tree_code op = MULT_EXPR;
11450 : 0 : if (ANY_INTEGRAL_TYPE_P (type)
11451 : : )
11452 : : {
11453 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1886;
11454 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1886;
11455 : 0 : {
11456 : 0 : tree _r;
11457 : 0 : _r = captures[2];
11458 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1042, __FILE__, __LINE__, true);
11459 : 0 : return _r;
11460 : : }
11461 : 0 : next_after_fail1886:;
11462 : : }
11463 : : }
11464 : : }
11465 : : }
11466 : : break;
11467 : : }
11468 : : default:;
11469 : : }
11470 : : }
11471 : : }
11472 : : break;
11473 : : }
11474 : 23 : case PLUS_EXPR:
11475 : 23 : {
11476 : 23 : tree _q50 = TREE_OPERAND (_p1, 0);
11477 : 23 : tree _q51 = TREE_OPERAND (_p1, 1);
11478 : 23 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
11479 : : {
11480 : 12 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
11481 : : {
11482 : 12 : switch (TREE_CODE (_p2))
11483 : : {
11484 : 6 : case PLUS_EXPR:
11485 : 6 : {
11486 : 6 : tree _q80 = TREE_OPERAND (_p2, 0);
11487 : 6 : tree _q81 = TREE_OPERAND (_p2, 1);
11488 : 6 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
11489 : : {
11490 : 6 : if ((_q81 == _q20 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q20, 0) && types_match (_q81, _q20)))
11491 : : {
11492 : 6 : {
11493 : 6 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
11494 : 6 : const enum tree_code op = PLUS_EXPR;
11495 : 6 : if (ANY_INTEGRAL_TYPE_P (type)
11496 : : )
11497 : : {
11498 : 6 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1887;
11499 : 6 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1887;
11500 : 6 : {
11501 : 6 : tree _r;
11502 : 6 : _r = captures[2];
11503 : 6 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1042, __FILE__, __LINE__, true);
11504 : 6 : return _r;
11505 : : }
11506 : 0 : next_after_fail1887:;
11507 : : }
11508 : : }
11509 : : }
11510 : : }
11511 : : break;
11512 : : }
11513 : 6 : case MULT_EXPR:
11514 : 6 : {
11515 : 6 : tree _q80 = TREE_OPERAND (_p2, 0);
11516 : 6 : tree _q81 = TREE_OPERAND (_p2, 1);
11517 : 6 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
11518 : : {
11519 : 6 : if (uniform_integer_cst_p (_q81))
11520 : : {
11521 : 6 : {
11522 : 6 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _p1, _q81 };
11523 : 6 : if (wi::to_wide (uniform_integer_cst_p (captures[3])) == 2
11524 : : )
11525 : : {
11526 : 6 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1888;
11527 : 6 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1888;
11528 : 6 : {
11529 : 6 : tree _r;
11530 : 6 : _r = captures[2];
11531 : 6 : if (TREE_SIDE_EFFECTS (captures[3]))
11532 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
11533 : 6 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1043, __FILE__, __LINE__, true);
11534 : 6 : return _r;
11535 : : }
11536 : 0 : next_after_fail1888:;
11537 : : }
11538 : : }
11539 : : }
11540 : : }
11541 : 0 : if ((_q80 == _q21 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q21, 0) && types_match (_q80, _q21)))
11542 : : {
11543 : 0 : if (uniform_integer_cst_p (_q81))
11544 : : {
11545 : 0 : {
11546 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _p1, _q81 };
11547 : 0 : if (wi::to_wide (uniform_integer_cst_p (captures[3])) == 2
11548 : : )
11549 : : {
11550 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1889;
11551 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1889;
11552 : 0 : {
11553 : 0 : tree _r;
11554 : 0 : _r = captures[2];
11555 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
11556 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
11557 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1043, __FILE__, __LINE__, true);
11558 : 0 : return _r;
11559 : : }
11560 : 0 : next_after_fail1889:;
11561 : : }
11562 : : }
11563 : : }
11564 : : }
11565 : : break;
11566 : : }
11567 : : default:;
11568 : : }
11569 : : }
11570 : : }
11571 : 11 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
11572 : : {
11573 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
11574 : : {
11575 : 0 : switch (TREE_CODE (_p2))
11576 : : {
11577 : 0 : case PLUS_EXPR:
11578 : 0 : {
11579 : 0 : tree _q80 = TREE_OPERAND (_p2, 0);
11580 : 0 : tree _q81 = TREE_OPERAND (_p2, 1);
11581 : 0 : if ((_q80 == _q21 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q21, 0) && types_match (_q80, _q21)))
11582 : : {
11583 : 0 : if ((_q81 == _q21 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q21, 0) && types_match (_q81, _q21)))
11584 : : {
11585 : 0 : {
11586 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _p1 };
11587 : 0 : const enum tree_code op = PLUS_EXPR;
11588 : 0 : if (ANY_INTEGRAL_TYPE_P (type)
11589 : : )
11590 : : {
11591 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1890;
11592 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1890;
11593 : 0 : {
11594 : 0 : tree _r;
11595 : 0 : _r = captures[2];
11596 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1042, __FILE__, __LINE__, true);
11597 : 0 : return _r;
11598 : : }
11599 : 0 : next_after_fail1890:;
11600 : : }
11601 : : }
11602 : : }
11603 : : }
11604 : : break;
11605 : : }
11606 : 0 : case MULT_EXPR:
11607 : 0 : {
11608 : 0 : tree _q80 = TREE_OPERAND (_p2, 0);
11609 : 0 : tree _q81 = TREE_OPERAND (_p2, 1);
11610 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
11611 : : {
11612 : 0 : if (uniform_integer_cst_p (_q81))
11613 : : {
11614 : 0 : {
11615 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _p1, _q81 };
11616 : 0 : if (wi::to_wide (uniform_integer_cst_p (captures[3])) == 2
11617 : : )
11618 : : {
11619 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1891;
11620 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1891;
11621 : 0 : {
11622 : 0 : tree _r;
11623 : 0 : _r = captures[2];
11624 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
11625 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
11626 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1043, __FILE__, __LINE__, true);
11627 : 0 : return _r;
11628 : : }
11629 : 0 : next_after_fail1891:;
11630 : : }
11631 : : }
11632 : : }
11633 : : }
11634 : 0 : if ((_q80 == _q21 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q21, 0) && types_match (_q80, _q21)))
11635 : : {
11636 : 0 : if (uniform_integer_cst_p (_q81))
11637 : : {
11638 : 0 : {
11639 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _p1, _q81 };
11640 : 0 : if (wi::to_wide (uniform_integer_cst_p (captures[3])) == 2
11641 : : )
11642 : : {
11643 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1892;
11644 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1892;
11645 : 0 : {
11646 : 0 : tree _r;
11647 : 0 : _r = captures[2];
11648 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
11649 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
11650 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1043, __FILE__, __LINE__, true);
11651 : 0 : return _r;
11652 : : }
11653 : 0 : next_after_fail1892:;
11654 : : }
11655 : : }
11656 : : }
11657 : : }
11658 : : break;
11659 : : }
11660 : : default:;
11661 : : }
11662 : : }
11663 : : }
11664 : : break;
11665 : : }
11666 : : default:;
11667 : : }
11668 : : break;
11669 : : }
11670 : 308717 : default:;
11671 : : }
11672 : 308717 : switch (TREE_CODE (_p1))
11673 : : {
11674 : 6 : case VEC_COND_EXPR:
11675 : 6 : {
11676 : 6 : tree _q30 = TREE_OPERAND (_p1, 0);
11677 : 6 : tree _q31 = TREE_OPERAND (_p1, 1);
11678 : 6 : tree _q32 = TREE_OPERAND (_p1, 2);
11679 : 6 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
11680 : : {
11681 : 0 : {
11682 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _p2 };
11683 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1893;
11684 : 0 : {
11685 : 0 : tree res_op0;
11686 : 0 : res_op0 = captures[0];
11687 : 0 : tree res_op1;
11688 : 0 : res_op1 = captures[1];
11689 : 0 : tree res_op2;
11690 : 0 : res_op2 = captures[3];
11691 : 0 : tree _r;
11692 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11693 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
11694 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
11695 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1052, __FILE__, __LINE__, true);
11696 : 0 : return _r;
11697 : : }
11698 : 0 : next_after_fail1893:;
11699 : : }
11700 : : }
11701 : : break;
11702 : : }
11703 : 308717 : default:;
11704 : : }
11705 : 308717 : switch (TREE_CODE (_p2))
11706 : : {
11707 : 3 : case VEC_COND_EXPR:
11708 : 3 : {
11709 : 3 : tree _q40 = TREE_OPERAND (_p2, 0);
11710 : 3 : tree _q41 = TREE_OPERAND (_p2, 1);
11711 : 3 : tree _q42 = TREE_OPERAND (_p2, 2);
11712 : 3 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
11713 : : {
11714 : 0 : {
11715 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p1, _q41, _q42 };
11716 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1894;
11717 : 0 : {
11718 : 0 : tree res_op0;
11719 : 0 : res_op0 = captures[0];
11720 : 0 : tree res_op1;
11721 : 0 : res_op1 = captures[1];
11722 : 0 : tree res_op2;
11723 : 0 : res_op2 = captures[3];
11724 : 0 : tree _r;
11725 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11726 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
11727 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
11728 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1053, __FILE__, __LINE__, true);
11729 : 0 : return _r;
11730 : : }
11731 : 0 : next_after_fail1894:;
11732 : : }
11733 : : }
11734 : 3 : {
11735 : 3 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42 };
11736 : 3 : if (inverse_conditions_p (captures[0], captures[2])
11737 : : )
11738 : : {
11739 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1895;
11740 : 0 : {
11741 : 0 : tree res_op0;
11742 : 0 : res_op0 = captures[0];
11743 : 0 : tree res_op1;
11744 : 0 : res_op1 = captures[1];
11745 : 0 : tree res_op2;
11746 : 0 : res_op2 = captures[3];
11747 : 0 : tree _r;
11748 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11749 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
11750 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
11751 : 0 : if (TREE_SIDE_EFFECTS (captures[4]))
11752 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[4]), _r);
11753 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1054, __FILE__, __LINE__, true);
11754 : 0 : return _r;
11755 : : }
11756 : 0 : next_after_fail1895:;
11757 : : }
11758 : : }
11759 : 3 : break;
11760 : : }
11761 : 308717 : default:;
11762 : : }
11763 : 308717 : switch (TREE_CODE (_p1))
11764 : : {
11765 : 6 : case VEC_COND_EXPR:
11766 : 6 : {
11767 : 6 : tree _q30 = TREE_OPERAND (_p1, 0);
11768 : 6 : tree _q31 = TREE_OPERAND (_p1, 1);
11769 : 6 : tree _q32 = TREE_OPERAND (_p1, 2);
11770 : 6 : {
11771 : 6 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q30, _q31, _q32, _p2 };
11772 : 6 : if (inverse_conditions_p (captures[0], captures[1])
11773 : : )
11774 : : {
11775 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1896;
11776 : 0 : {
11777 : 0 : tree res_op0;
11778 : 0 : res_op0 = captures[0];
11779 : 0 : tree res_op1;
11780 : 0 : res_op1 = captures[3];
11781 : 0 : tree res_op2;
11782 : 0 : res_op2 = captures[4];
11783 : 0 : tree _r;
11784 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11785 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
11786 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
11787 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
11788 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
11789 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1055, __FILE__, __LINE__, true);
11790 : 0 : return _r;
11791 : : }
11792 : 0 : next_after_fail1896:;
11793 : : }
11794 : : }
11795 : 6 : break;
11796 : : }
11797 : 308717 : default:;
11798 : : }
11799 : 308717 : if ((_p2 == _p1 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _p1, 0) && types_match (_p2, _p1)))
11800 : : {
11801 : 33 : {
11802 : 33 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
11803 : 33 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1897;
11804 : 33 : {
11805 : 33 : tree _r;
11806 : 33 : _r = captures[1];
11807 : 33 : if (TREE_SIDE_EFFECTS (captures[0]))
11808 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
11809 : 33 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1056, __FILE__, __LINE__, true);
11810 : 33 : return _r;
11811 : : }
11812 : 0 : next_after_fail1897:;
11813 : : }
11814 : : }
11815 : 308684 : switch (TREE_CODE (_p0))
11816 : : {
11817 : 64336 : case EQ_EXPR:
11818 : 64336 : {
11819 : 64336 : tree _q20 = TREE_OPERAND (_p0, 0);
11820 : 64336 : tree _q21 = TREE_OPERAND (_p0, 1);
11821 : 64336 : if (zerop (_q21))
11822 : : {
11823 : 569 : switch (TREE_CODE (_p2))
11824 : : {
11825 : 0 : case NEGATE_EXPR:
11826 : 0 : {
11827 : 0 : tree _q60 = TREE_OPERAND (_p2, 0);
11828 : 0 : if ((_q60 == _p1 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _p1, 0) && types_match (_q60, _p1)))
11829 : : {
11830 : 0 : {
11831 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p1, _p2 };
11832 : 0 : const enum tree_code cmp = EQ_EXPR;
11833 : 0 : if (!HONOR_SIGNED_ZEROS (type)
11834 : 0 : && bitwise_equal_p (captures[0], captures[1])
11835 : : )
11836 : : {
11837 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1898;
11838 : 0 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1898;
11839 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1898;
11840 : 0 : {
11841 : 0 : tree _r;
11842 : 0 : _r = captures[2];
11843 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1057, __FILE__, __LINE__, true);
11844 : 0 : return _r;
11845 : : }
11846 : 0 : next_after_fail1898:;
11847 : : }
11848 : : }
11849 : : }
11850 : : break;
11851 : : }
11852 : 569 : default:;
11853 : : }
11854 : 569 : if (zerop (_p1))
11855 : : {
11856 : 18 : switch (TREE_CODE (_p2))
11857 : : {
11858 : 0 : case NEGATE_EXPR:
11859 : 0 : {
11860 : 0 : tree _q60 = TREE_OPERAND (_p2, 0);
11861 : 0 : {
11862 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p2, _q60 };
11863 : 0 : const enum tree_code cmp = EQ_EXPR;
11864 : 0 : if (!HONOR_SIGNED_ZEROS (type)
11865 : 0 : && bitwise_equal_p (captures[0], captures[2])
11866 : : )
11867 : : {
11868 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1899;
11869 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1899;
11870 : 0 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1899;
11871 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1899;
11872 : 0 : {
11873 : 0 : tree _r;
11874 : 0 : _r = captures[1];
11875 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1058, __FILE__, __LINE__, true);
11876 : 0 : return _r;
11877 : : }
11878 : 0 : next_after_fail1899:;
11879 : : }
11880 : : }
11881 : 0 : break;
11882 : : }
11883 : : default:;
11884 : : }
11885 : : }
11886 : : }
11887 : 64336 : switch (TREE_CODE (_q20))
11888 : : {
11889 : 0 : case MINUS_EXPR:
11890 : 0 : {
11891 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
11892 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
11893 : 0 : if (zerop (_q21))
11894 : : {
11895 : 0 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
11896 : : {
11897 : 0 : switch (TREE_CODE (_p2))
11898 : : {
11899 : 0 : case MINUS_EXPR:
11900 : 0 : {
11901 : 0 : tree _q80 = TREE_OPERAND (_p2, 0);
11902 : 0 : tree _q81 = TREE_OPERAND (_p2, 1);
11903 : 0 : if ((_q80 == _q31 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q31, 0) && types_match (_q80, _q31)))
11904 : : {
11905 : 0 : if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
11906 : : {
11907 : 0 : {
11908 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _p2 };
11909 : 0 : const enum tree_code cmp = EQ_EXPR;
11910 : 0 : if (!HONOR_SIGNED_ZEROS (type)
11911 : : )
11912 : : {
11913 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1900;
11914 : 0 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1900;
11915 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1900;
11916 : 0 : {
11917 : 0 : tree _r;
11918 : 0 : _r = captures[3];
11919 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1059, __FILE__, __LINE__, true);
11920 : 0 : return _r;
11921 : : }
11922 : 0 : next_after_fail1900:;
11923 : : }
11924 : : }
11925 : : }
11926 : : }
11927 : : break;
11928 : : }
11929 : : default:;
11930 : : }
11931 : : }
11932 : : }
11933 : 0 : if (integer_zerop (_q21))
11934 : : {
11935 : 0 : if (integer_zerop (_p1))
11936 : : {
11937 : 0 : switch (TREE_CODE (_p2))
11938 : : {
11939 : 0 : case MINUS_EXPR:
11940 : 0 : {
11941 : 0 : tree _q80 = TREE_OPERAND (_p2, 0);
11942 : 0 : tree _q81 = TREE_OPERAND (_p2, 1);
11943 : 0 : if ((_q80 == _q31 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q31, 0) && types_match (_q80, _q31)))
11944 : : {
11945 : 0 : if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
11946 : : {
11947 : 0 : {
11948 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _p2 };
11949 : 0 : tree res = generic_simplify_523 (loc, type, _p0, _p1, _p2, captures, EQ_EXPR);
11950 : 0 : if (res) return res;
11951 : : }
11952 : : }
11953 : : }
11954 : : break;
11955 : : }
11956 : : default:;
11957 : : }
11958 : : }
11959 : : }
11960 : : break;
11961 : : }
11962 : : default:;
11963 : : }
11964 : : break;
11965 : : }
11966 : 0 : case UNEQ_EXPR:
11967 : 0 : {
11968 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11969 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11970 : 0 : if (zerop (_q21))
11971 : : {
11972 : 0 : switch (TREE_CODE (_p2))
11973 : : {
11974 : 0 : case NEGATE_EXPR:
11975 : 0 : {
11976 : 0 : tree _q60 = TREE_OPERAND (_p2, 0);
11977 : 0 : if ((_q60 == _p1 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _p1, 0) && types_match (_q60, _p1)))
11978 : : {
11979 : 0 : {
11980 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p1, _p2 };
11981 : 0 : const enum tree_code cmp = UNEQ_EXPR;
11982 : 0 : if (!HONOR_SIGNED_ZEROS (type)
11983 : 0 : && bitwise_equal_p (captures[0], captures[1])
11984 : : )
11985 : : {
11986 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1901;
11987 : 0 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1901;
11988 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1901;
11989 : 0 : {
11990 : 0 : tree _r;
11991 : 0 : _r = captures[2];
11992 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1057, __FILE__, __LINE__, true);
11993 : 0 : return _r;
11994 : : }
11995 : 0 : next_after_fail1901:;
11996 : : }
11997 : : }
11998 : : }
11999 : : break;
12000 : : }
12001 : 0 : default:;
12002 : : }
12003 : 0 : if (zerop (_p1))
12004 : : {
12005 : 0 : switch (TREE_CODE (_p2))
12006 : : {
12007 : 0 : case NEGATE_EXPR:
12008 : 0 : {
12009 : 0 : tree _q60 = TREE_OPERAND (_p2, 0);
12010 : 0 : {
12011 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p2, _q60 };
12012 : 0 : const enum tree_code cmp = UNEQ_EXPR;
12013 : 0 : if (!HONOR_SIGNED_ZEROS (type)
12014 : 0 : && bitwise_equal_p (captures[0], captures[2])
12015 : : )
12016 : : {
12017 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1902;
12018 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1902;
12019 : 0 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1902;
12020 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1902;
12021 : 0 : {
12022 : 0 : tree _r;
12023 : 0 : _r = captures[1];
12024 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1058, __FILE__, __LINE__, true);
12025 : 0 : return _r;
12026 : : }
12027 : 0 : next_after_fail1902:;
12028 : : }
12029 : : }
12030 : 0 : break;
12031 : : }
12032 : : default:;
12033 : : }
12034 : : }
12035 : : }
12036 : 0 : switch (TREE_CODE (_q20))
12037 : : {
12038 : 0 : case MINUS_EXPR:
12039 : 0 : {
12040 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
12041 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
12042 : 0 : if (zerop (_q21))
12043 : : {
12044 : 0 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
12045 : : {
12046 : 0 : switch (TREE_CODE (_p2))
12047 : : {
12048 : 0 : case MINUS_EXPR:
12049 : 0 : {
12050 : 0 : tree _q80 = TREE_OPERAND (_p2, 0);
12051 : 0 : tree _q81 = TREE_OPERAND (_p2, 1);
12052 : 0 : if ((_q80 == _q31 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q31, 0) && types_match (_q80, _q31)))
12053 : : {
12054 : 0 : if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
12055 : : {
12056 : 0 : {
12057 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _p2 };
12058 : 0 : const enum tree_code cmp = UNEQ_EXPR;
12059 : 0 : if (!HONOR_SIGNED_ZEROS (type)
12060 : : )
12061 : : {
12062 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1903;
12063 : 0 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1903;
12064 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1903;
12065 : 0 : {
12066 : 0 : tree _r;
12067 : 0 : _r = captures[3];
12068 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1059, __FILE__, __LINE__, true);
12069 : 0 : return _r;
12070 : : }
12071 : 0 : next_after_fail1903:;
12072 : : }
12073 : : }
12074 : : }
12075 : : }
12076 : : break;
12077 : : }
12078 : : default:;
12079 : : }
12080 : : }
12081 : : }
12082 : 0 : if (integer_zerop (_q21))
12083 : : {
12084 : 0 : if (integer_zerop (_p1))
12085 : : {
12086 : 0 : switch (TREE_CODE (_p2))
12087 : : {
12088 : 0 : case MINUS_EXPR:
12089 : 0 : {
12090 : 0 : tree _q80 = TREE_OPERAND (_p2, 0);
12091 : 0 : tree _q81 = TREE_OPERAND (_p2, 1);
12092 : 0 : if ((_q80 == _q31 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q31, 0) && types_match (_q80, _q31)))
12093 : : {
12094 : 0 : if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
12095 : : {
12096 : 0 : {
12097 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _p2 };
12098 : 0 : tree res = generic_simplify_523 (loc, type, _p0, _p1, _p2, captures, UNEQ_EXPR);
12099 : 0 : if (res) return res;
12100 : : }
12101 : : }
12102 : : }
12103 : : break;
12104 : : }
12105 : : default:;
12106 : : }
12107 : : }
12108 : : }
12109 : : break;
12110 : : }
12111 : : default:;
12112 : : }
12113 : : break;
12114 : : }
12115 : 1163 : case NE_EXPR:
12116 : 1163 : {
12117 : 1163 : tree _q20 = TREE_OPERAND (_p0, 0);
12118 : 1163 : tree _q21 = TREE_OPERAND (_p0, 1);
12119 : 1163 : if (zerop (_q21))
12120 : : {
12121 : 266 : switch (TREE_CODE (_p2))
12122 : : {
12123 : 0 : case NEGATE_EXPR:
12124 : 0 : {
12125 : 0 : tree _q60 = TREE_OPERAND (_p2, 0);
12126 : 0 : if ((_q60 == _p1 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _p1, 0) && types_match (_q60, _p1)))
12127 : : {
12128 : 0 : {
12129 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
12130 : 0 : const enum tree_code cmp = NE_EXPR;
12131 : 0 : if (!HONOR_SIGNED_ZEROS (type)
12132 : 0 : && bitwise_equal_p (captures[0], captures[1])
12133 : : )
12134 : : {
12135 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1904;
12136 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1904;
12137 : 0 : {
12138 : 0 : tree _r;
12139 : 0 : _r = captures[1];
12140 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1060, __FILE__, __LINE__, true);
12141 : 0 : return _r;
12142 : : }
12143 : 0 : next_after_fail1904:;
12144 : : }
12145 : : }
12146 : : }
12147 : : break;
12148 : : }
12149 : 266 : default:;
12150 : : }
12151 : 266 : if (integer_zerop (_p2))
12152 : : {
12153 : 166 : {
12154 : 166 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
12155 : 166 : const enum tree_code cmp = NE_EXPR;
12156 : 166 : if (!HONOR_SIGNED_ZEROS (type)
12157 : 166 : && bitwise_equal_p (captures[0], captures[1])
12158 : : )
12159 : : {
12160 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1905;
12161 : 0 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1905;
12162 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1905;
12163 : 0 : {
12164 : 0 : tree _r;
12165 : 0 : _r = captures[1];
12166 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1061, __FILE__, __LINE__, true);
12167 : 0 : return _r;
12168 : : }
12169 : 166 : next_after_fail1905:;
12170 : : }
12171 : : }
12172 : : }
12173 : : }
12174 : 1163 : switch (TREE_CODE (_q20))
12175 : : {
12176 : 40 : case MINUS_EXPR:
12177 : 40 : {
12178 : 40 : tree _q30 = TREE_OPERAND (_q20, 0);
12179 : 40 : tree _q31 = TREE_OPERAND (_q20, 1);
12180 : 40 : if (zerop (_q21))
12181 : : {
12182 : 0 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
12183 : : {
12184 : 0 : switch (TREE_CODE (_p2))
12185 : : {
12186 : 0 : case MINUS_EXPR:
12187 : 0 : {
12188 : 0 : tree _q80 = TREE_OPERAND (_p2, 0);
12189 : 0 : tree _q81 = TREE_OPERAND (_p2, 1);
12190 : 0 : if ((_q80 == _q31 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q31, 0) && types_match (_q80, _q31)))
12191 : : {
12192 : 0 : if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
12193 : : {
12194 : 0 : {
12195 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
12196 : 0 : const enum tree_code cmp = NE_EXPR;
12197 : 0 : if (!HONOR_SIGNED_ZEROS (type)
12198 : : )
12199 : : {
12200 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1906;
12201 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1906;
12202 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1906;
12203 : 0 : {
12204 : 0 : tree _r;
12205 : 0 : _r = captures[0];
12206 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1062, __FILE__, __LINE__, true);
12207 : 0 : return _r;
12208 : : }
12209 : 0 : next_after_fail1906:;
12210 : : }
12211 : : }
12212 : : }
12213 : : }
12214 : : break;
12215 : : }
12216 : : default:;
12217 : : }
12218 : : }
12219 : : }
12220 : 40 : if (integer_zerop (_q21))
12221 : : {
12222 : 0 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
12223 : : {
12224 : 0 : if (integer_zerop (_p2))
12225 : : {
12226 : 0 : {
12227 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
12228 : 0 : tree res = generic_simplify_524 (loc, type, _p0, _p1, _p2, captures, NE_EXPR);
12229 : 0 : if (res) return res;
12230 : : }
12231 : : }
12232 : : }
12233 : : }
12234 : : break;
12235 : : }
12236 : : default:;
12237 : : }
12238 : : break;
12239 : : }
12240 : 0 : case LTGT_EXPR:
12241 : 0 : {
12242 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
12243 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
12244 : 0 : if (zerop (_q21))
12245 : : {
12246 : 0 : switch (TREE_CODE (_p2))
12247 : : {
12248 : 0 : case NEGATE_EXPR:
12249 : 0 : {
12250 : 0 : tree _q60 = TREE_OPERAND (_p2, 0);
12251 : 0 : if ((_q60 == _p1 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _p1, 0) && types_match (_q60, _p1)))
12252 : : {
12253 : 0 : {
12254 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
12255 : 0 : const enum tree_code cmp = LTGT_EXPR;
12256 : 0 : if (!HONOR_SIGNED_ZEROS (type)
12257 : 0 : && bitwise_equal_p (captures[0], captures[1])
12258 : : )
12259 : : {
12260 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1907;
12261 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1907;
12262 : 0 : {
12263 : 0 : tree _r;
12264 : 0 : _r = captures[1];
12265 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1060, __FILE__, __LINE__, true);
12266 : 0 : return _r;
12267 : : }
12268 : 0 : next_after_fail1907:;
12269 : : }
12270 : : }
12271 : : }
12272 : : break;
12273 : : }
12274 : 0 : default:;
12275 : : }
12276 : 0 : if (integer_zerop (_p2))
12277 : : {
12278 : 0 : {
12279 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
12280 : 0 : const enum tree_code cmp = LTGT_EXPR;
12281 : 0 : if (!HONOR_SIGNED_ZEROS (type)
12282 : 0 : && bitwise_equal_p (captures[0], captures[1])
12283 : : )
12284 : : {
12285 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1908;
12286 : 0 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1908;
12287 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1908;
12288 : 0 : {
12289 : 0 : tree _r;
12290 : 0 : _r = captures[1];
12291 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1061, __FILE__, __LINE__, true);
12292 : 0 : return _r;
12293 : : }
12294 : 0 : next_after_fail1908:;
12295 : : }
12296 : : }
12297 : : }
12298 : : }
12299 : 0 : switch (TREE_CODE (_q20))
12300 : : {
12301 : 0 : case MINUS_EXPR:
12302 : 0 : {
12303 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
12304 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
12305 : 0 : if (zerop (_q21))
12306 : : {
12307 : 0 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
12308 : : {
12309 : 0 : switch (TREE_CODE (_p2))
12310 : : {
12311 : 0 : case MINUS_EXPR:
12312 : 0 : {
12313 : 0 : tree _q80 = TREE_OPERAND (_p2, 0);
12314 : 0 : tree _q81 = TREE_OPERAND (_p2, 1);
12315 : 0 : if ((_q80 == _q31 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q31, 0) && types_match (_q80, _q31)))
12316 : : {
12317 : 0 : if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
12318 : : {
12319 : 0 : {
12320 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
12321 : 0 : const enum tree_code cmp = LTGT_EXPR;
12322 : 0 : if (!HONOR_SIGNED_ZEROS (type)
12323 : : )
12324 : : {
12325 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1909;
12326 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1909;
12327 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1909;
12328 : 0 : {
12329 : 0 : tree _r;
12330 : 0 : _r = captures[0];
12331 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1062, __FILE__, __LINE__, true);
12332 : 0 : return _r;
12333 : : }
12334 : 0 : next_after_fail1909:;
12335 : : }
12336 : : }
12337 : : }
12338 : : }
12339 : : break;
12340 : : }
12341 : : default:;
12342 : : }
12343 : : }
12344 : : }
12345 : 0 : if (integer_zerop (_q21))
12346 : : {
12347 : 0 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
12348 : : {
12349 : 0 : if (integer_zerop (_p2))
12350 : : {
12351 : 0 : {
12352 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
12353 : 0 : tree res = generic_simplify_524 (loc, type, _p0, _p1, _p2, captures, LTGT_EXPR);
12354 : 0 : if (res) return res;
12355 : : }
12356 : : }
12357 : : }
12358 : : }
12359 : : break;
12360 : : }
12361 : : default:;
12362 : : }
12363 : : break;
12364 : : }
12365 : 1168 : case GE_EXPR:
12366 : 1168 : {
12367 : 1168 : tree _q20 = TREE_OPERAND (_p0, 0);
12368 : 1168 : tree _q21 = TREE_OPERAND (_p0, 1);
12369 : 1168 : switch (TREE_CODE (_q20))
12370 : : {
12371 : 0 : CASE_CONVERT:
12372 : 0 : {
12373 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
12374 : 0 : if (zerop (_q21))
12375 : : {
12376 : 0 : switch (TREE_CODE (_p2))
12377 : : {
12378 : 0 : case NEGATE_EXPR:
12379 : 0 : {
12380 : 0 : tree _q70 = TREE_OPERAND (_p2, 0);
12381 : 0 : if ((_q70 == _p1 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _p1, 0) && types_match (_q70, _p1)))
12382 : : {
12383 : 0 : {
12384 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
12385 : 0 : const enum tree_code cmp = GE_EXPR;
12386 : 0 : if (!HONOR_SIGNED_ZEROS (TREE_TYPE (captures[1]))
12387 : 0 : && !TYPE_UNSIGNED (TREE_TYPE (captures[1]))
12388 : 0 : && element_precision (captures[1])
12389 : 0 : <= element_precision (captures[0])
12390 : 0 : && bitwise_equal_p (captures[1], captures[2])
12391 : : )
12392 : : {
12393 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[2]))
12394 : : )
12395 : : {
12396 : 0 : {
12397 : 0 : tree stype = signed_type_for (TREE_TYPE (captures[2]));
12398 : 0 : if (types_match (captures[0], stype)
12399 : : )
12400 : : {
12401 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1910;
12402 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1910;
12403 : 0 : {
12404 : 0 : tree res_op0;
12405 : 0 : res_op0 = captures[0];
12406 : 0 : tree _r;
12407 : 0 : _r = fold_build1_loc (loc, ABSU_EXPR, type, res_op0);
12408 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
12409 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
12410 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1065, __FILE__, __LINE__, true);
12411 : 0 : return _r;
12412 : : }
12413 : 0 : next_after_fail1910:;
12414 : : }
12415 : : else
12416 : : {
12417 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1911;
12418 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1911;
12419 : 0 : {
12420 : 0 : tree res_op0;
12421 : 0 : {
12422 : 0 : tree _o1[1], _r1;
12423 : 0 : _o1[0] = captures[2];
12424 : 0 : if (TREE_TYPE (_o1[0]) != stype)
12425 : : {
12426 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, stype, _o1[0]);
12427 : : }
12428 : : else
12429 : : _r1 = _o1[0];
12430 : 0 : res_op0 = _r1;
12431 : : }
12432 : 0 : tree _r;
12433 : 0 : _r = fold_build1_loc (loc, ABSU_EXPR, type, res_op0);
12434 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1066, __FILE__, __LINE__, true);
12435 : 0 : return _r;
12436 : : }
12437 : 0 : next_after_fail1911:;
12438 : : }
12439 : : }
12440 : : }
12441 : : else
12442 : : {
12443 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1912;
12444 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1912;
12445 : 0 : {
12446 : 0 : tree res_op0;
12447 : 0 : res_op0 = captures[2];
12448 : 0 : tree _r;
12449 : 0 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
12450 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1067, __FILE__, __LINE__, true);
12451 : 0 : return _r;
12452 : : }
12453 : 0 : next_after_fail1912:;
12454 : : }
12455 : : }
12456 : : }
12457 : : }
12458 : : break;
12459 : : }
12460 : : default:;
12461 : : }
12462 : : }
12463 : : break;
12464 : : }
12465 : 1168 : default:;
12466 : : }
12467 : 1168 : if (zerop (_q21))
12468 : : {
12469 : 334 : switch (TREE_CODE (_p2))
12470 : : {
12471 : 3 : case NEGATE_EXPR:
12472 : 3 : {
12473 : 3 : tree _q60 = TREE_OPERAND (_p2, 0);
12474 : 3 : if ((_q60 == _p1 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _p1, 0) && types_match (_q60, _p1)))
12475 : : {
12476 : 3 : {
12477 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q20, _p1 };
12478 : 3 : const enum tree_code cmp = GE_EXPR;
12479 : 3 : if (!HONOR_SIGNED_ZEROS (TREE_TYPE (captures[1]))
12480 : 3 : && !TYPE_UNSIGNED (TREE_TYPE (captures[1]))
12481 : 6 : && element_precision (captures[1])
12482 : 3 : <= element_precision (captures[0])
12483 : 6 : && bitwise_equal_p (captures[1], captures[2])
12484 : : )
12485 : : {
12486 : 3 : if (TYPE_UNSIGNED (TREE_TYPE (captures[2]))
12487 : : )
12488 : : {
12489 : 0 : {
12490 : 0 : tree stype = signed_type_for (TREE_TYPE (captures[2]));
12491 : 0 : if (types_match (captures[0], stype)
12492 : : )
12493 : : {
12494 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1913;
12495 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1913;
12496 : 0 : {
12497 : 0 : tree res_op0;
12498 : 0 : res_op0 = captures[0];
12499 : 0 : tree _r;
12500 : 0 : _r = fold_build1_loc (loc, ABSU_EXPR, type, res_op0);
12501 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
12502 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
12503 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1065, __FILE__, __LINE__, true);
12504 : 0 : return _r;
12505 : : }
12506 : 0 : next_after_fail1913:;
12507 : : }
12508 : : else
12509 : : {
12510 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1914;
12511 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1914;
12512 : 0 : {
12513 : 0 : tree res_op0;
12514 : 0 : {
12515 : 0 : tree _o1[1], _r1;
12516 : 0 : _o1[0] = captures[2];
12517 : 0 : if (TREE_TYPE (_o1[0]) != stype)
12518 : : {
12519 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, stype, _o1[0]);
12520 : : }
12521 : : else
12522 : : _r1 = _o1[0];
12523 : 0 : res_op0 = _r1;
12524 : : }
12525 : 0 : tree _r;
12526 : 0 : _r = fold_build1_loc (loc, ABSU_EXPR, type, res_op0);
12527 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1066, __FILE__, __LINE__, true);
12528 : 0 : return _r;
12529 : : }
12530 : 0 : next_after_fail1914:;
12531 : : }
12532 : : }
12533 : : }
12534 : : else
12535 : : {
12536 : 3 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1915;
12537 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1915;
12538 : 3 : {
12539 : 3 : tree res_op0;
12540 : 3 : res_op0 = captures[2];
12541 : 3 : tree _r;
12542 : 3 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
12543 : 3 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1067, __FILE__, __LINE__, true);
12544 : 3 : return _r;
12545 : : }
12546 : 0 : next_after_fail1915:;
12547 : : }
12548 : : }
12549 : : }
12550 : : }
12551 : : break;
12552 : : }
12553 : : default:;
12554 : : }
12555 : : }
12556 : 1165 : switch (TREE_CODE (_q20))
12557 : : {
12558 : 0 : case MINUS_EXPR:
12559 : 0 : {
12560 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
12561 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
12562 : 0 : if (zerop (_q21))
12563 : : {
12564 : 0 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
12565 : : {
12566 : 0 : switch (TREE_CODE (_p2))
12567 : : {
12568 : 0 : case MINUS_EXPR:
12569 : 0 : {
12570 : 0 : tree _q80 = TREE_OPERAND (_p2, 0);
12571 : 0 : tree _q81 = TREE_OPERAND (_p2, 1);
12572 : 0 : if ((_q80 == _q31 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q31, 0) && types_match (_q80, _q31)))
12573 : : {
12574 : 0 : if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
12575 : : {
12576 : 0 : {
12577 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
12578 : 0 : const enum tree_code cmp = GE_EXPR;
12579 : 0 : if (!HONOR_SIGNED_ZEROS (type)
12580 : 0 : && !TYPE_UNSIGNED (type)
12581 : : )
12582 : : {
12583 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1916;
12584 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1916;
12585 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1916;
12586 : 0 : {
12587 : 0 : tree res_op0;
12588 : 0 : res_op0 = captures[0];
12589 : 0 : tree _r;
12590 : 0 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
12591 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1068, __FILE__, __LINE__, true);
12592 : 0 : return _r;
12593 : : }
12594 : 0 : next_after_fail1916:;
12595 : : }
12596 : : }
12597 : : }
12598 : : }
12599 : : break;
12600 : : }
12601 : : default:;
12602 : : }
12603 : : }
12604 : : }
12605 : : break;
12606 : : }
12607 : : default:;
12608 : : }
12609 : : break;
12610 : : }
12611 : 64286 : case GT_EXPR:
12612 : 64286 : {
12613 : 64286 : tree _q20 = TREE_OPERAND (_p0, 0);
12614 : 64286 : tree _q21 = TREE_OPERAND (_p0, 1);
12615 : 64286 : switch (TREE_CODE (_q20))
12616 : : {
12617 : 13 : CASE_CONVERT:
12618 : 13 : {
12619 : 13 : tree _q30 = TREE_OPERAND (_q20, 0);
12620 : 13 : if (zerop (_q21))
12621 : : {
12622 : 1 : switch (TREE_CODE (_p2))
12623 : : {
12624 : 0 : case NEGATE_EXPR:
12625 : 0 : {
12626 : 0 : tree _q70 = TREE_OPERAND (_p2, 0);
12627 : 0 : if ((_q70 == _p1 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _p1, 0) && types_match (_q70, _p1)))
12628 : : {
12629 : 0 : {
12630 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
12631 : 0 : const enum tree_code cmp = GT_EXPR;
12632 : 0 : if (!HONOR_SIGNED_ZEROS (TREE_TYPE (captures[1]))
12633 : 0 : && !TYPE_UNSIGNED (TREE_TYPE (captures[1]))
12634 : 0 : && element_precision (captures[1])
12635 : 0 : <= element_precision (captures[0])
12636 : 0 : && bitwise_equal_p (captures[1], captures[2])
12637 : : )
12638 : : {
12639 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[2]))
12640 : : )
12641 : : {
12642 : 0 : {
12643 : 0 : tree stype = signed_type_for (TREE_TYPE (captures[2]));
12644 : 0 : if (types_match (captures[0], stype)
12645 : : )
12646 : : {
12647 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1917;
12648 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1917;
12649 : 0 : {
12650 : 0 : tree res_op0;
12651 : 0 : res_op0 = captures[0];
12652 : 0 : tree _r;
12653 : 0 : _r = fold_build1_loc (loc, ABSU_EXPR, type, res_op0);
12654 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
12655 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
12656 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1065, __FILE__, __LINE__, true);
12657 : 0 : return _r;
12658 : : }
12659 : 0 : next_after_fail1917:;
12660 : : }
12661 : : else
12662 : : {
12663 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1918;
12664 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1918;
12665 : 0 : {
12666 : 0 : tree res_op0;
12667 : 0 : {
12668 : 0 : tree _o1[1], _r1;
12669 : 0 : _o1[0] = captures[2];
12670 : 0 : if (TREE_TYPE (_o1[0]) != stype)
12671 : : {
12672 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, stype, _o1[0]);
12673 : : }
12674 : : else
12675 : : _r1 = _o1[0];
12676 : 0 : res_op0 = _r1;
12677 : : }
12678 : 0 : tree _r;
12679 : 0 : _r = fold_build1_loc (loc, ABSU_EXPR, type, res_op0);
12680 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1066, __FILE__, __LINE__, true);
12681 : 0 : return _r;
12682 : : }
12683 : 0 : next_after_fail1918:;
12684 : : }
12685 : : }
12686 : : }
12687 : : else
12688 : : {
12689 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1919;
12690 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1919;
12691 : 0 : {
12692 : 0 : tree res_op0;
12693 : 0 : res_op0 = captures[2];
12694 : 0 : tree _r;
12695 : 0 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
12696 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1067, __FILE__, __LINE__, true);
12697 : 0 : return _r;
12698 : : }
12699 : 0 : next_after_fail1919:;
12700 : : }
12701 : : }
12702 : : }
12703 : : }
12704 : : break;
12705 : : }
12706 : : default:;
12707 : : }
12708 : : }
12709 : : break;
12710 : : }
12711 : 64286 : default:;
12712 : : }
12713 : 64286 : if (zerop (_q21))
12714 : : {
12715 : 78 : switch (TREE_CODE (_p2))
12716 : : {
12717 : 3 : case NEGATE_EXPR:
12718 : 3 : {
12719 : 3 : tree _q60 = TREE_OPERAND (_p2, 0);
12720 : 3 : if ((_q60 == _p1 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _p1, 0) && types_match (_q60, _p1)))
12721 : : {
12722 : 3 : {
12723 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q20, _p1 };
12724 : 3 : const enum tree_code cmp = GT_EXPR;
12725 : 3 : if (!HONOR_SIGNED_ZEROS (TREE_TYPE (captures[1]))
12726 : 3 : && !TYPE_UNSIGNED (TREE_TYPE (captures[1]))
12727 : 6 : && element_precision (captures[1])
12728 : 3 : <= element_precision (captures[0])
12729 : 6 : && bitwise_equal_p (captures[1], captures[2])
12730 : : )
12731 : : {
12732 : 3 : if (TYPE_UNSIGNED (TREE_TYPE (captures[2]))
12733 : : )
12734 : : {
12735 : 0 : {
12736 : 0 : tree stype = signed_type_for (TREE_TYPE (captures[2]));
12737 : 0 : if (types_match (captures[0], stype)
12738 : : )
12739 : : {
12740 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1920;
12741 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1920;
12742 : 0 : {
12743 : 0 : tree res_op0;
12744 : 0 : res_op0 = captures[0];
12745 : 0 : tree _r;
12746 : 0 : _r = fold_build1_loc (loc, ABSU_EXPR, type, res_op0);
12747 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
12748 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
12749 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1065, __FILE__, __LINE__, true);
12750 : 0 : return _r;
12751 : : }
12752 : 0 : next_after_fail1920:;
12753 : : }
12754 : : else
12755 : : {
12756 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1921;
12757 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1921;
12758 : 0 : {
12759 : 0 : tree res_op0;
12760 : 0 : {
12761 : 0 : tree _o1[1], _r1;
12762 : 0 : _o1[0] = captures[2];
12763 : 0 : if (TREE_TYPE (_o1[0]) != stype)
12764 : : {
12765 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, stype, _o1[0]);
12766 : : }
12767 : : else
12768 : : _r1 = _o1[0];
12769 : 0 : res_op0 = _r1;
12770 : : }
12771 : 0 : tree _r;
12772 : 0 : _r = fold_build1_loc (loc, ABSU_EXPR, type, res_op0);
12773 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1066, __FILE__, __LINE__, true);
12774 : 0 : return _r;
12775 : : }
12776 : 0 : next_after_fail1921:;
12777 : : }
12778 : : }
12779 : : }
12780 : : else
12781 : : {
12782 : 3 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1922;
12783 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1922;
12784 : 3 : {
12785 : 3 : tree res_op0;
12786 : 3 : res_op0 = captures[2];
12787 : 3 : tree _r;
12788 : 3 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
12789 : 3 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1067, __FILE__, __LINE__, true);
12790 : 3 : return _r;
12791 : : }
12792 : 0 : next_after_fail1922:;
12793 : : }
12794 : : }
12795 : : }
12796 : : }
12797 : : break;
12798 : : }
12799 : : default:;
12800 : : }
12801 : : }
12802 : 64283 : switch (TREE_CODE (_q20))
12803 : : {
12804 : 0 : case MINUS_EXPR:
12805 : 0 : {
12806 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
12807 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
12808 : 0 : if (zerop (_q21))
12809 : : {
12810 : 0 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
12811 : : {
12812 : 0 : switch (TREE_CODE (_p2))
12813 : : {
12814 : 0 : case MINUS_EXPR:
12815 : 0 : {
12816 : 0 : tree _q80 = TREE_OPERAND (_p2, 0);
12817 : 0 : tree _q81 = TREE_OPERAND (_p2, 1);
12818 : 0 : if ((_q80 == _q31 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q31, 0) && types_match (_q80, _q31)))
12819 : : {
12820 : 0 : if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
12821 : : {
12822 : 0 : {
12823 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
12824 : 0 : const enum tree_code cmp = GT_EXPR;
12825 : 0 : if (!HONOR_SIGNED_ZEROS (type)
12826 : 0 : && !TYPE_UNSIGNED (type)
12827 : : )
12828 : : {
12829 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1923;
12830 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1923;
12831 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1923;
12832 : 0 : {
12833 : 0 : tree res_op0;
12834 : 0 : res_op0 = captures[0];
12835 : 0 : tree _r;
12836 : 0 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
12837 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1068, __FILE__, __LINE__, true);
12838 : 0 : return _r;
12839 : : }
12840 : 0 : next_after_fail1923:;
12841 : : }
12842 : : }
12843 : : }
12844 : : }
12845 : : break;
12846 : : }
12847 : : default:;
12848 : : }
12849 : : }
12850 : : }
12851 : : break;
12852 : : }
12853 : : default:;
12854 : : }
12855 : : break;
12856 : : }
12857 : 885 : case LE_EXPR:
12858 : 885 : {
12859 : 885 : tree _q20 = TREE_OPERAND (_p0, 0);
12860 : 885 : tree _q21 = TREE_OPERAND (_p0, 1);
12861 : 885 : switch (TREE_CODE (_q20))
12862 : : {
12863 : 0 : CASE_CONVERT:
12864 : 0 : {
12865 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
12866 : 0 : if (zerop (_q21))
12867 : : {
12868 : 0 : switch (TREE_CODE (_p2))
12869 : : {
12870 : 0 : case NEGATE_EXPR:
12871 : 0 : {
12872 : 0 : tree _q70 = TREE_OPERAND (_p2, 0);
12873 : 0 : if ((_q70 == _p1 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _p1, 0) && types_match (_q70, _p1)))
12874 : : {
12875 : 0 : {
12876 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
12877 : 0 : const enum tree_code cmp = LE_EXPR;
12878 : 0 : if (!HONOR_SIGNED_ZEROS (TREE_TYPE (captures[1]))
12879 : 0 : && !TYPE_UNSIGNED (TREE_TYPE (captures[1]))
12880 : 0 : && element_precision (captures[1])
12881 : 0 : <= element_precision (captures[0])
12882 : 0 : && bitwise_equal_p (captures[1], captures[2])
12883 : : )
12884 : : {
12885 : 0 : if ((ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
12886 : 0 : && !TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[2])))
12887 : 0 : || TYPE_UNSIGNED (TREE_TYPE (captures[2]))
12888 : : )
12889 : : {
12890 : 0 : {
12891 : 0 : tree stype = signed_type_for (TREE_TYPE (captures[2]));
12892 : 0 : tree utype = unsigned_type_for (TREE_TYPE (captures[2]));
12893 : 0 : if (types_match (captures[0], stype)
12894 : : )
12895 : : {
12896 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1924;
12897 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1924;
12898 : 0 : {
12899 : 0 : tree res_op0;
12900 : 0 : {
12901 : 0 : tree _o1[1], _r1;
12902 : 0 : {
12903 : 0 : tree _o2[1], _r2;
12904 : 0 : _o2[0] = captures[0];
12905 : 0 : _r2 = fold_build1_loc (loc, ABSU_EXPR, utype, _o2[0]);
12906 : 0 : _o1[0] = _r2;
12907 : : }
12908 : 0 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
12909 : 0 : res_op0 = _r1;
12910 : : }
12911 : 0 : tree _r;
12912 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
12913 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
12914 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
12915 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1069, __FILE__, __LINE__, true);
12916 : 0 : return _r;
12917 : : }
12918 : 0 : next_after_fail1924:;
12919 : : }
12920 : : else
12921 : : {
12922 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1925;
12923 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1925;
12924 : 0 : {
12925 : 0 : tree res_op0;
12926 : 0 : {
12927 : 0 : tree _o1[1], _r1;
12928 : 0 : {
12929 : 0 : tree _o2[1], _r2;
12930 : 0 : {
12931 : 0 : tree _o3[1], _r3;
12932 : 0 : _o3[0] = captures[2];
12933 : 0 : if (TREE_TYPE (_o3[0]) != stype)
12934 : : {
12935 : 0 : _r3 = fold_build1_loc (loc, NOP_EXPR, stype, _o3[0]);
12936 : : }
12937 : : else
12938 : : _r3 = _o3[0];
12939 : 0 : _o2[0] = _r3;
12940 : : }
12941 : 0 : _r2 = fold_build1_loc (loc, ABSU_EXPR, utype, _o2[0]);
12942 : 0 : _o1[0] = _r2;
12943 : : }
12944 : 0 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
12945 : 0 : res_op0 = _r1;
12946 : : }
12947 : 0 : tree _r;
12948 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
12949 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1070, __FILE__, __LINE__, true);
12950 : 0 : return _r;
12951 : : }
12952 : 0 : next_after_fail1925:;
12953 : : }
12954 : : }
12955 : : }
12956 : : else
12957 : : {
12958 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1926;
12959 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1926;
12960 : 0 : {
12961 : 0 : tree res_op0;
12962 : 0 : {
12963 : 0 : tree _o1[1], _r1;
12964 : 0 : {
12965 : 0 : tree _o2[1], _r2;
12966 : 0 : _o2[0] = captures[2];
12967 : 0 : _r2 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
12968 : 0 : _o1[0] = _r2;
12969 : : }
12970 : 0 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
12971 : 0 : res_op0 = _r1;
12972 : : }
12973 : 0 : tree _r;
12974 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
12975 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1071, __FILE__, __LINE__, true);
12976 : 0 : return _r;
12977 : : }
12978 : 0 : next_after_fail1926:;
12979 : : }
12980 : : }
12981 : : }
12982 : : }
12983 : : break;
12984 : : }
12985 : : default:;
12986 : : }
12987 : : }
12988 : : break;
12989 : : }
12990 : 885 : default:;
12991 : : }
12992 : 885 : if (zerop (_q21))
12993 : : {
12994 : 18 : switch (TREE_CODE (_p2))
12995 : : {
12996 : 0 : case NEGATE_EXPR:
12997 : 0 : {
12998 : 0 : tree _q60 = TREE_OPERAND (_p2, 0);
12999 : 0 : if ((_q60 == _p1 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _p1, 0) && types_match (_q60, _p1)))
13000 : : {
13001 : 0 : {
13002 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q20, _p1 };
13003 : 0 : const enum tree_code cmp = LE_EXPR;
13004 : 0 : if (!HONOR_SIGNED_ZEROS (TREE_TYPE (captures[1]))
13005 : 0 : && !TYPE_UNSIGNED (TREE_TYPE (captures[1]))
13006 : 0 : && element_precision (captures[1])
13007 : 0 : <= element_precision (captures[0])
13008 : 0 : && bitwise_equal_p (captures[1], captures[2])
13009 : : )
13010 : : {
13011 : 0 : if ((ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
13012 : 0 : && !TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[2])))
13013 : 0 : || TYPE_UNSIGNED (TREE_TYPE (captures[2]))
13014 : : )
13015 : : {
13016 : 0 : {
13017 : 0 : tree stype = signed_type_for (TREE_TYPE (captures[2]));
13018 : 0 : tree utype = unsigned_type_for (TREE_TYPE (captures[2]));
13019 : 0 : if (types_match (captures[0], stype)
13020 : : )
13021 : : {
13022 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1927;
13023 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1927;
13024 : 0 : {
13025 : 0 : tree res_op0;
13026 : 0 : {
13027 : 0 : tree _o1[1], _r1;
13028 : 0 : {
13029 : 0 : tree _o2[1], _r2;
13030 : 0 : _o2[0] = captures[0];
13031 : 0 : _r2 = fold_build1_loc (loc, ABSU_EXPR, utype, _o2[0]);
13032 : 0 : _o1[0] = _r2;
13033 : : }
13034 : 0 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
13035 : 0 : res_op0 = _r1;
13036 : : }
13037 : 0 : tree _r;
13038 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
13039 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
13040 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
13041 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1069, __FILE__, __LINE__, true);
13042 : 0 : return _r;
13043 : : }
13044 : 0 : next_after_fail1927:;
13045 : : }
13046 : : else
13047 : : {
13048 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1928;
13049 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1928;
13050 : 0 : {
13051 : 0 : tree res_op0;
13052 : 0 : {
13053 : 0 : tree _o1[1], _r1;
13054 : 0 : {
13055 : 0 : tree _o2[1], _r2;
13056 : 0 : {
13057 : 0 : tree _o3[1], _r3;
13058 : 0 : _o3[0] = captures[2];
13059 : 0 : if (TREE_TYPE (_o3[0]) != stype)
13060 : : {
13061 : 0 : _r3 = fold_build1_loc (loc, NOP_EXPR, stype, _o3[0]);
13062 : : }
13063 : : else
13064 : : _r3 = _o3[0];
13065 : 0 : _o2[0] = _r3;
13066 : : }
13067 : 0 : _r2 = fold_build1_loc (loc, ABSU_EXPR, utype, _o2[0]);
13068 : 0 : _o1[0] = _r2;
13069 : : }
13070 : 0 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
13071 : 0 : res_op0 = _r1;
13072 : : }
13073 : 0 : tree _r;
13074 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
13075 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1070, __FILE__, __LINE__, true);
13076 : 0 : return _r;
13077 : : }
13078 : 0 : next_after_fail1928:;
13079 : : }
13080 : : }
13081 : : }
13082 : : else
13083 : : {
13084 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1929;
13085 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1929;
13086 : 0 : {
13087 : 0 : tree res_op0;
13088 : 0 : {
13089 : 0 : tree _o1[1], _r1;
13090 : 0 : {
13091 : 0 : tree _o2[1], _r2;
13092 : 0 : _o2[0] = captures[2];
13093 : 0 : _r2 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
13094 : 0 : _o1[0] = _r2;
13095 : : }
13096 : 0 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
13097 : 0 : res_op0 = _r1;
13098 : : }
13099 : 0 : tree _r;
13100 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
13101 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1071, __FILE__, __LINE__, true);
13102 : 0 : return _r;
13103 : : }
13104 : 0 : next_after_fail1929:;
13105 : : }
13106 : : }
13107 : : }
13108 : : }
13109 : : break;
13110 : : }
13111 : : default:;
13112 : : }
13113 : : }
13114 : 885 : switch (TREE_CODE (_q20))
13115 : : {
13116 : 0 : case MINUS_EXPR:
13117 : 0 : {
13118 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
13119 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
13120 : 0 : if (zerop (_q21))
13121 : : {
13122 : 0 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
13123 : : {
13124 : 0 : switch (TREE_CODE (_p2))
13125 : : {
13126 : 0 : case MINUS_EXPR:
13127 : 0 : {
13128 : 0 : tree _q80 = TREE_OPERAND (_p2, 0);
13129 : 0 : tree _q81 = TREE_OPERAND (_p2, 1);
13130 : 0 : if ((_q80 == _q31 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q31, 0) && types_match (_q80, _q31)))
13131 : : {
13132 : 0 : if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
13133 : : {
13134 : 0 : {
13135 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
13136 : 0 : const enum tree_code cmp = LE_EXPR;
13137 : 0 : if (!HONOR_SIGNED_ZEROS (type)
13138 : 0 : && !TYPE_UNSIGNED (type)
13139 : : )
13140 : : {
13141 : 0 : if (ANY_INTEGRAL_TYPE_P (type)
13142 : 0 : && !TYPE_OVERFLOW_WRAPS (type)
13143 : : )
13144 : : {
13145 : 0 : {
13146 : 0 : tree utype = unsigned_type_for (type);
13147 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1930;
13148 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1930;
13149 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1930;
13150 : 0 : {
13151 : 0 : tree res_op0;
13152 : 0 : {
13153 : 0 : tree _o1[1], _r1;
13154 : 0 : {
13155 : 0 : tree _o2[1], _r2;
13156 : 0 : _o2[0] = captures[0];
13157 : 0 : _r2 = fold_build1_loc (loc, ABSU_EXPR, utype, _o2[0]);
13158 : 0 : _o1[0] = _r2;
13159 : : }
13160 : 0 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
13161 : 0 : res_op0 = _r1;
13162 : : }
13163 : 0 : tree _r;
13164 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
13165 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1072, __FILE__, __LINE__, true);
13166 : 0 : return _r;
13167 : : }
13168 : 0 : next_after_fail1930:;
13169 : : }
13170 : : }
13171 : : else
13172 : : {
13173 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1931;
13174 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1931;
13175 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1931;
13176 : 0 : {
13177 : 0 : tree res_op0;
13178 : 0 : {
13179 : 0 : tree _o1[1], _r1;
13180 : 0 : _o1[0] = captures[0];
13181 : 0 : _r1 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
13182 : 0 : res_op0 = _r1;
13183 : : }
13184 : 0 : tree _r;
13185 : 0 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
13186 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1073, __FILE__, __LINE__, true);
13187 : 0 : return _r;
13188 : : }
13189 : 0 : next_after_fail1931:;
13190 : : }
13191 : : }
13192 : : }
13193 : : }
13194 : : }
13195 : : break;
13196 : : }
13197 : : default:;
13198 : : }
13199 : : }
13200 : : }
13201 : : break;
13202 : : }
13203 : : default:;
13204 : : }
13205 : : break;
13206 : : }
13207 : 20024 : case LT_EXPR:
13208 : 20024 : {
13209 : 20024 : tree _q20 = TREE_OPERAND (_p0, 0);
13210 : 20024 : tree _q21 = TREE_OPERAND (_p0, 1);
13211 : 20024 : switch (TREE_CODE (_q20))
13212 : : {
13213 : 0 : CASE_CONVERT:
13214 : 0 : {
13215 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
13216 : 0 : if (zerop (_q21))
13217 : : {
13218 : 0 : switch (TREE_CODE (_p2))
13219 : : {
13220 : 0 : case NEGATE_EXPR:
13221 : 0 : {
13222 : 0 : tree _q70 = TREE_OPERAND (_p2, 0);
13223 : 0 : if ((_q70 == _p1 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _p1, 0) && types_match (_q70, _p1)))
13224 : : {
13225 : 0 : {
13226 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
13227 : 0 : const enum tree_code cmp = LT_EXPR;
13228 : 0 : if (!HONOR_SIGNED_ZEROS (TREE_TYPE (captures[1]))
13229 : 0 : && !TYPE_UNSIGNED (TREE_TYPE (captures[1]))
13230 : 0 : && element_precision (captures[1])
13231 : 0 : <= element_precision (captures[0])
13232 : 0 : && bitwise_equal_p (captures[1], captures[2])
13233 : : )
13234 : : {
13235 : 0 : if ((ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
13236 : 0 : && !TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[2])))
13237 : 0 : || TYPE_UNSIGNED (TREE_TYPE (captures[2]))
13238 : : )
13239 : : {
13240 : 0 : {
13241 : 0 : tree stype = signed_type_for (TREE_TYPE (captures[2]));
13242 : 0 : tree utype = unsigned_type_for (TREE_TYPE (captures[2]));
13243 : 0 : if (types_match (captures[0], stype)
13244 : : )
13245 : : {
13246 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1932;
13247 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1932;
13248 : 0 : {
13249 : 0 : tree res_op0;
13250 : 0 : {
13251 : 0 : tree _o1[1], _r1;
13252 : 0 : {
13253 : 0 : tree _o2[1], _r2;
13254 : 0 : _o2[0] = captures[0];
13255 : 0 : _r2 = fold_build1_loc (loc, ABSU_EXPR, utype, _o2[0]);
13256 : 0 : _o1[0] = _r2;
13257 : : }
13258 : 0 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
13259 : 0 : res_op0 = _r1;
13260 : : }
13261 : 0 : tree _r;
13262 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
13263 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
13264 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
13265 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1069, __FILE__, __LINE__, true);
13266 : 0 : return _r;
13267 : : }
13268 : 0 : next_after_fail1932:;
13269 : : }
13270 : : else
13271 : : {
13272 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1933;
13273 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1933;
13274 : 0 : {
13275 : 0 : tree res_op0;
13276 : 0 : {
13277 : 0 : tree _o1[1], _r1;
13278 : 0 : {
13279 : 0 : tree _o2[1], _r2;
13280 : 0 : {
13281 : 0 : tree _o3[1], _r3;
13282 : 0 : _o3[0] = captures[2];
13283 : 0 : if (TREE_TYPE (_o3[0]) != stype)
13284 : : {
13285 : 0 : _r3 = fold_build1_loc (loc, NOP_EXPR, stype, _o3[0]);
13286 : : }
13287 : : else
13288 : : _r3 = _o3[0];
13289 : 0 : _o2[0] = _r3;
13290 : : }
13291 : 0 : _r2 = fold_build1_loc (loc, ABSU_EXPR, utype, _o2[0]);
13292 : 0 : _o1[0] = _r2;
13293 : : }
13294 : 0 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
13295 : 0 : res_op0 = _r1;
13296 : : }
13297 : 0 : tree _r;
13298 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
13299 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1070, __FILE__, __LINE__, true);
13300 : 0 : return _r;
13301 : : }
13302 : 0 : next_after_fail1933:;
13303 : : }
13304 : : }
13305 : : }
13306 : : else
13307 : : {
13308 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1934;
13309 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1934;
13310 : 0 : {
13311 : 0 : tree res_op0;
13312 : 0 : {
13313 : 0 : tree _o1[1], _r1;
13314 : 0 : {
13315 : 0 : tree _o2[1], _r2;
13316 : 0 : _o2[0] = captures[2];
13317 : 0 : _r2 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
13318 : 0 : _o1[0] = _r2;
13319 : : }
13320 : 0 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
13321 : 0 : res_op0 = _r1;
13322 : : }
13323 : 0 : tree _r;
13324 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
13325 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1071, __FILE__, __LINE__, true);
13326 : 0 : return _r;
13327 : : }
13328 : 0 : next_after_fail1934:;
13329 : : }
13330 : : }
13331 : : }
13332 : : }
13333 : : break;
13334 : : }
13335 : : default:;
13336 : : }
13337 : : }
13338 : : break;
13339 : : }
13340 : 20024 : default:;
13341 : : }
13342 : 20024 : if (zerop (_q21))
13343 : : {
13344 : 536 : switch (TREE_CODE (_p2))
13345 : : {
13346 : 16 : case NEGATE_EXPR:
13347 : 16 : {
13348 : 16 : tree _q60 = TREE_OPERAND (_p2, 0);
13349 : 16 : if ((_q60 == _p1 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _p1, 0) && types_match (_q60, _p1)))
13350 : : {
13351 : 16 : {
13352 : 16 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q20, _p1 };
13353 : 16 : const enum tree_code cmp = LT_EXPR;
13354 : 16 : if (!HONOR_SIGNED_ZEROS (TREE_TYPE (captures[1]))
13355 : 16 : && !TYPE_UNSIGNED (TREE_TYPE (captures[1]))
13356 : 32 : && element_precision (captures[1])
13357 : 16 : <= element_precision (captures[0])
13358 : 32 : && bitwise_equal_p (captures[1], captures[2])
13359 : : )
13360 : : {
13361 : 32 : if ((ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
13362 : 16 : && !TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[2])))
13363 : 16 : || TYPE_UNSIGNED (TREE_TYPE (captures[2]))
13364 : : )
13365 : : {
13366 : 16 : {
13367 : 16 : tree stype = signed_type_for (TREE_TYPE (captures[2]));
13368 : 16 : tree utype = unsigned_type_for (TREE_TYPE (captures[2]));
13369 : 16 : if (types_match (captures[0], stype)
13370 : : )
13371 : : {
13372 : 16 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1935;
13373 : 16 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1935;
13374 : 16 : {
13375 : 16 : tree res_op0;
13376 : 16 : {
13377 : 16 : tree _o1[1], _r1;
13378 : 16 : {
13379 : 16 : tree _o2[1], _r2;
13380 : 16 : _o2[0] = captures[0];
13381 : 16 : _r2 = fold_build1_loc (loc, ABSU_EXPR, utype, _o2[0]);
13382 : 16 : _o1[0] = _r2;
13383 : : }
13384 : 16 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
13385 : 16 : res_op0 = _r1;
13386 : : }
13387 : 16 : tree _r;
13388 : 16 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
13389 : 16 : if (TREE_SIDE_EFFECTS (captures[2]))
13390 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
13391 : 16 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1069, __FILE__, __LINE__, true);
13392 : 16 : return _r;
13393 : : }
13394 : 0 : next_after_fail1935:;
13395 : : }
13396 : : else
13397 : : {
13398 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1936;
13399 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1936;
13400 : 0 : {
13401 : 0 : tree res_op0;
13402 : 0 : {
13403 : 0 : tree _o1[1], _r1;
13404 : 0 : {
13405 : 0 : tree _o2[1], _r2;
13406 : 0 : {
13407 : 0 : tree _o3[1], _r3;
13408 : 0 : _o3[0] = captures[2];
13409 : 0 : if (TREE_TYPE (_o3[0]) != stype)
13410 : : {
13411 : 0 : _r3 = fold_build1_loc (loc, NOP_EXPR, stype, _o3[0]);
13412 : : }
13413 : : else
13414 : : _r3 = _o3[0];
13415 : 0 : _o2[0] = _r3;
13416 : : }
13417 : 0 : _r2 = fold_build1_loc (loc, ABSU_EXPR, utype, _o2[0]);
13418 : 0 : _o1[0] = _r2;
13419 : : }
13420 : 0 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
13421 : 0 : res_op0 = _r1;
13422 : : }
13423 : 0 : tree _r;
13424 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
13425 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1070, __FILE__, __LINE__, true);
13426 : 0 : return _r;
13427 : : }
13428 : 0 : next_after_fail1936:;
13429 : : }
13430 : : }
13431 : : }
13432 : : else
13433 : : {
13434 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1937;
13435 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1937;
13436 : 0 : {
13437 : 0 : tree res_op0;
13438 : 0 : {
13439 : 0 : tree _o1[1], _r1;
13440 : 0 : {
13441 : 0 : tree _o2[1], _r2;
13442 : 0 : _o2[0] = captures[2];
13443 : 0 : _r2 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
13444 : 0 : _o1[0] = _r2;
13445 : : }
13446 : 0 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
13447 : 0 : res_op0 = _r1;
13448 : : }
13449 : 0 : tree _r;
13450 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
13451 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1071, __FILE__, __LINE__, true);
13452 : 0 : return _r;
13453 : : }
13454 : 0 : next_after_fail1937:;
13455 : : }
13456 : : }
13457 : : }
13458 : : }
13459 : : break;
13460 : : }
13461 : : default:;
13462 : : }
13463 : : }
13464 : 20008 : switch (TREE_CODE (_q20))
13465 : : {
13466 : 0 : case MINUS_EXPR:
13467 : 0 : {
13468 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
13469 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
13470 : 0 : if (zerop (_q21))
13471 : : {
13472 : 0 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
13473 : : {
13474 : 0 : switch (TREE_CODE (_p2))
13475 : : {
13476 : 0 : case MINUS_EXPR:
13477 : 0 : {
13478 : 0 : tree _q80 = TREE_OPERAND (_p2, 0);
13479 : 0 : tree _q81 = TREE_OPERAND (_p2, 1);
13480 : 0 : if ((_q80 == _q31 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q31, 0) && types_match (_q80, _q31)))
13481 : : {
13482 : 0 : if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
13483 : : {
13484 : 0 : {
13485 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _q31 };
13486 : 0 : const enum tree_code cmp = LT_EXPR;
13487 : 0 : if (!HONOR_SIGNED_ZEROS (type)
13488 : 0 : && !TYPE_UNSIGNED (type)
13489 : : )
13490 : : {
13491 : 0 : if (ANY_INTEGRAL_TYPE_P (type)
13492 : 0 : && !TYPE_OVERFLOW_WRAPS (type)
13493 : : )
13494 : : {
13495 : 0 : {
13496 : 0 : tree utype = unsigned_type_for (type);
13497 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1938;
13498 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1938;
13499 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1938;
13500 : 0 : {
13501 : 0 : tree res_op0;
13502 : 0 : {
13503 : 0 : tree _o1[1], _r1;
13504 : 0 : {
13505 : 0 : tree _o2[1], _r2;
13506 : 0 : _o2[0] = captures[0];
13507 : 0 : _r2 = fold_build1_loc (loc, ABSU_EXPR, utype, _o2[0]);
13508 : 0 : _o1[0] = _r2;
13509 : : }
13510 : 0 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
13511 : 0 : res_op0 = _r1;
13512 : : }
13513 : 0 : tree _r;
13514 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
13515 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1072, __FILE__, __LINE__, true);
13516 : 0 : return _r;
13517 : : }
13518 : 0 : next_after_fail1938:;
13519 : : }
13520 : : }
13521 : : else
13522 : : {
13523 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1939;
13524 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1939;
13525 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1939;
13526 : 0 : {
13527 : 0 : tree res_op0;
13528 : 0 : {
13529 : 0 : tree _o1[1], _r1;
13530 : 0 : _o1[0] = captures[0];
13531 : 0 : _r1 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
13532 : 0 : res_op0 = _r1;
13533 : : }
13534 : 0 : tree _r;
13535 : 0 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
13536 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1073, __FILE__, __LINE__, true);
13537 : 0 : return _r;
13538 : : }
13539 : 0 : next_after_fail1939:;
13540 : : }
13541 : : }
13542 : : }
13543 : : }
13544 : : }
13545 : : break;
13546 : : }
13547 : : default:;
13548 : : }
13549 : : }
13550 : : }
13551 : : break;
13552 : : }
13553 : : default:;
13554 : : }
13555 : : break;
13556 : : }
13557 : 308662 : default:;
13558 : : }
13559 : 308662 : {
13560 : 308662 : tree _p0_pops[1];
13561 : 308662 : if (tree_logical_inverted_value (_p0, _p0_pops))
13562 : : {
13563 : 506 : tree _q20 = _p0_pops[0];
13564 : 506 : if (tree_truth_valued_p (_q20))
13565 : : {
13566 : 0 : {
13567 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p1, _p2 };
13568 : 0 : if (VEC_COND_EXPR == VEC_COND_EXPR
13569 : : || TYPE_UNSIGNED (TREE_TYPE (captures[0]))
13570 : : )
13571 : : {
13572 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1940;
13573 : 0 : {
13574 : 0 : tree res_op0;
13575 : 0 : res_op0 = captures[0];
13576 : 0 : tree res_op1;
13577 : 0 : res_op1 = captures[2];
13578 : 0 : tree res_op2;
13579 : 0 : res_op2 = captures[1];
13580 : 0 : tree _r;
13581 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
13582 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 1076, __FILE__, __LINE__, true);
13583 : 0 : return _r;
13584 : : }
13585 : 0 : next_after_fail1940:;
13586 : : }
13587 : : }
13588 : : }
13589 : : }
13590 : : }
13591 : 308662 : switch (TREE_CODE (_p1))
13592 : : {
13593 : 0 : case VIEW_CONVERT_EXPR:
13594 : 0 : {
13595 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
13596 : 0 : switch (TREE_CODE (_q30))
13597 : : {
13598 : 0 : case CALL_EXPR:
13599 : 0 : switch (get_call_combined_fn (_q30))
13600 : : {
13601 : 0 : case CFN_COND_ADD:
13602 : 0 : if (call_expr_nargs (_q30) == 4)
13603 : : {
13604 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
13605 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
13606 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
13607 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
13608 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
13609 : : {
13610 : 0 : {
13611 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _p2 };
13612 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_ADD);
13613 : 0 : if (res) return res;
13614 : : }
13615 : : }
13616 : : }
13617 : : break;
13618 : 0 : case CFN_COND_AND:
13619 : 0 : if (call_expr_nargs (_q30) == 4)
13620 : : {
13621 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
13622 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
13623 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
13624 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
13625 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
13626 : : {
13627 : 0 : {
13628 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _p2 };
13629 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_AND);
13630 : 0 : if (res) return res;
13631 : : }
13632 : : }
13633 : : }
13634 : : break;
13635 : 0 : case CFN_COND_DIV:
13636 : 0 : if (call_expr_nargs (_q30) == 4)
13637 : : {
13638 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
13639 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
13640 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
13641 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
13642 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
13643 : : {
13644 : 0 : {
13645 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _p2 };
13646 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_DIV);
13647 : 0 : if (res) return res;
13648 : : }
13649 : : }
13650 : : }
13651 : : break;
13652 : 0 : case CFN_COND_IOR:
13653 : 0 : if (call_expr_nargs (_q30) == 4)
13654 : : {
13655 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
13656 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
13657 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
13658 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
13659 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
13660 : : {
13661 : 0 : {
13662 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _p2 };
13663 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_IOR);
13664 : 0 : if (res) return res;
13665 : : }
13666 : : }
13667 : : }
13668 : : break;
13669 : 0 : case CFN_COND_MAX:
13670 : 0 : if (call_expr_nargs (_q30) == 4)
13671 : : {
13672 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
13673 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
13674 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
13675 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
13676 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
13677 : : {
13678 : 0 : {
13679 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _p2 };
13680 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_MAX);
13681 : 0 : if (res) return res;
13682 : : }
13683 : : }
13684 : : }
13685 : : break;
13686 : 0 : case CFN_COND_MIN:
13687 : 0 : if (call_expr_nargs (_q30) == 4)
13688 : : {
13689 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
13690 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
13691 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
13692 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
13693 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
13694 : : {
13695 : 0 : {
13696 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _p2 };
13697 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_MIN);
13698 : 0 : if (res) return res;
13699 : : }
13700 : : }
13701 : : }
13702 : : break;
13703 : 0 : case CFN_COND_MOD:
13704 : 0 : if (call_expr_nargs (_q30) == 4)
13705 : : {
13706 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
13707 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
13708 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
13709 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
13710 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
13711 : : {
13712 : 0 : {
13713 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _p2 };
13714 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_MOD);
13715 : 0 : if (res) return res;
13716 : : }
13717 : : }
13718 : : }
13719 : : break;
13720 : 0 : case CFN_COND_MUL:
13721 : 0 : if (call_expr_nargs (_q30) == 4)
13722 : : {
13723 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
13724 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
13725 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
13726 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
13727 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
13728 : : {
13729 : 0 : {
13730 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _p2 };
13731 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_MUL);
13732 : 0 : if (res) return res;
13733 : : }
13734 : : }
13735 : : }
13736 : : break;
13737 : 0 : case CFN_COND_SHL:
13738 : 0 : if (call_expr_nargs (_q30) == 4)
13739 : : {
13740 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
13741 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
13742 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
13743 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
13744 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
13745 : : {
13746 : 0 : {
13747 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _p2 };
13748 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_SHL);
13749 : 0 : if (res) return res;
13750 : : }
13751 : : }
13752 : : }
13753 : : break;
13754 : 0 : case CFN_COND_SHR:
13755 : 0 : if (call_expr_nargs (_q30) == 4)
13756 : : {
13757 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
13758 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
13759 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
13760 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
13761 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
13762 : : {
13763 : 0 : {
13764 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _p2 };
13765 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_SHR);
13766 : 0 : if (res) return res;
13767 : : }
13768 : : }
13769 : : }
13770 : : break;
13771 : 0 : case CFN_COND_SUB:
13772 : 0 : if (call_expr_nargs (_q30) == 4)
13773 : : {
13774 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
13775 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
13776 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
13777 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
13778 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
13779 : : {
13780 : 0 : {
13781 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _p2 };
13782 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_SUB);
13783 : 0 : if (res) return res;
13784 : : }
13785 : : }
13786 : : }
13787 : : break;
13788 : 0 : case CFN_COND_XOR:
13789 : 0 : if (call_expr_nargs (_q30) == 4)
13790 : : {
13791 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
13792 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
13793 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
13794 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
13795 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
13796 : : {
13797 : 0 : {
13798 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _p2 };
13799 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_XOR);
13800 : 0 : if (res) return res;
13801 : : }
13802 : : }
13803 : : }
13804 : : break;
13805 : 0 : case CFN_COND_COPYSIGN:
13806 : 0 : if (call_expr_nargs (_q30) == 4)
13807 : : {
13808 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
13809 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
13810 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
13811 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
13812 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
13813 : : {
13814 : 0 : {
13815 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _p2 };
13816 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_COPYSIGN);
13817 : 0 : if (res) return res;
13818 : : }
13819 : : }
13820 : : }
13821 : : break;
13822 : 0 : case CFN_COND_FMAX:
13823 : 0 : if (call_expr_nargs (_q30) == 4)
13824 : : {
13825 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
13826 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
13827 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
13828 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
13829 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
13830 : : {
13831 : 0 : {
13832 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _p2 };
13833 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_FMAX);
13834 : 0 : if (res) return res;
13835 : : }
13836 : : }
13837 : : }
13838 : : break;
13839 : 0 : case CFN_COND_FMIN:
13840 : 0 : if (call_expr_nargs (_q30) == 4)
13841 : : {
13842 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
13843 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
13844 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
13845 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
13846 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
13847 : : {
13848 : 0 : {
13849 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _p2 };
13850 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_FMIN);
13851 : 0 : if (res) return res;
13852 : : }
13853 : : }
13854 : : }
13855 : : break;
13856 : 0 : case CFN_COND_RDIV:
13857 : 0 : if (call_expr_nargs (_q30) == 4)
13858 : : {
13859 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
13860 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
13861 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
13862 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
13863 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
13864 : : {
13865 : 0 : {
13866 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _p2 };
13867 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_RDIV);
13868 : 0 : if (res) return res;
13869 : : }
13870 : : }
13871 : : }
13872 : : break;
13873 : : default:;
13874 : : }
13875 : : break;
13876 : : default:;
13877 : : }
13878 : : break;
13879 : : }
13880 : 12 : case CALL_EXPR:
13881 : 12 : switch (get_call_combined_fn (_p1))
13882 : : {
13883 : 0 : case CFN_COND_ADD:
13884 : 0 : if (call_expr_nargs (_p1) == 4)
13885 : : {
13886 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
13887 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
13888 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
13889 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
13890 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
13891 : : {
13892 : 0 : {
13893 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _p2 };
13894 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_ADD);
13895 : 0 : if (res) return res;
13896 : : }
13897 : : }
13898 : : }
13899 : : break;
13900 : 0 : case CFN_COND_AND:
13901 : 0 : if (call_expr_nargs (_p1) == 4)
13902 : : {
13903 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
13904 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
13905 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
13906 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
13907 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
13908 : : {
13909 : 0 : {
13910 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _p2 };
13911 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_AND);
13912 : 0 : if (res) return res;
13913 : : }
13914 : : }
13915 : : }
13916 : : break;
13917 : 0 : case CFN_COND_DIV:
13918 : 0 : if (call_expr_nargs (_p1) == 4)
13919 : : {
13920 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
13921 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
13922 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
13923 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
13924 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
13925 : : {
13926 : 0 : {
13927 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _p2 };
13928 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_DIV);
13929 : 0 : if (res) return res;
13930 : : }
13931 : : }
13932 : : }
13933 : : break;
13934 : 0 : case CFN_COND_IOR:
13935 : 0 : if (call_expr_nargs (_p1) == 4)
13936 : : {
13937 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
13938 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
13939 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
13940 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
13941 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
13942 : : {
13943 : 0 : {
13944 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _p2 };
13945 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_IOR);
13946 : 0 : if (res) return res;
13947 : : }
13948 : : }
13949 : : }
13950 : : break;
13951 : 0 : case CFN_COND_MAX:
13952 : 0 : if (call_expr_nargs (_p1) == 4)
13953 : : {
13954 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
13955 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
13956 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
13957 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
13958 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
13959 : : {
13960 : 0 : {
13961 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _p2 };
13962 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_MAX);
13963 : 0 : if (res) return res;
13964 : : }
13965 : : }
13966 : : }
13967 : : break;
13968 : 0 : case CFN_COND_MIN:
13969 : 0 : if (call_expr_nargs (_p1) == 4)
13970 : : {
13971 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
13972 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
13973 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
13974 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
13975 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
13976 : : {
13977 : 0 : {
13978 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _p2 };
13979 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_MIN);
13980 : 0 : if (res) return res;
13981 : : }
13982 : : }
13983 : : }
13984 : : break;
13985 : 0 : case CFN_COND_MOD:
13986 : 0 : if (call_expr_nargs (_p1) == 4)
13987 : : {
13988 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
13989 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
13990 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
13991 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
13992 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
13993 : : {
13994 : 0 : {
13995 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _p2 };
13996 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_MOD);
13997 : 0 : if (res) return res;
13998 : : }
13999 : : }
14000 : : }
14001 : : break;
14002 : 0 : case CFN_COND_MUL:
14003 : 0 : if (call_expr_nargs (_p1) == 4)
14004 : : {
14005 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
14006 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
14007 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
14008 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
14009 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
14010 : : {
14011 : 0 : {
14012 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _p2 };
14013 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_MUL);
14014 : 0 : if (res) return res;
14015 : : }
14016 : : }
14017 : : }
14018 : : break;
14019 : 0 : case CFN_COND_SHL:
14020 : 0 : if (call_expr_nargs (_p1) == 4)
14021 : : {
14022 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
14023 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
14024 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
14025 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
14026 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
14027 : : {
14028 : 0 : {
14029 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _p2 };
14030 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_SHL);
14031 : 0 : if (res) return res;
14032 : : }
14033 : : }
14034 : : }
14035 : : break;
14036 : 0 : case CFN_COND_SHR:
14037 : 0 : if (call_expr_nargs (_p1) == 4)
14038 : : {
14039 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
14040 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
14041 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
14042 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
14043 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
14044 : : {
14045 : 0 : {
14046 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _p2 };
14047 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_SHR);
14048 : 0 : if (res) return res;
14049 : : }
14050 : : }
14051 : : }
14052 : : break;
14053 : 0 : case CFN_COND_SUB:
14054 : 0 : if (call_expr_nargs (_p1) == 4)
14055 : : {
14056 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
14057 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
14058 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
14059 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
14060 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
14061 : : {
14062 : 0 : {
14063 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _p2 };
14064 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_SUB);
14065 : 0 : if (res) return res;
14066 : : }
14067 : : }
14068 : : }
14069 : : break;
14070 : 0 : case CFN_COND_XOR:
14071 : 0 : if (call_expr_nargs (_p1) == 4)
14072 : : {
14073 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
14074 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
14075 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
14076 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
14077 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
14078 : : {
14079 : 0 : {
14080 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _p2 };
14081 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_XOR);
14082 : 0 : if (res) return res;
14083 : : }
14084 : : }
14085 : : }
14086 : : break;
14087 : 0 : case CFN_COND_COPYSIGN:
14088 : 0 : if (call_expr_nargs (_p1) == 4)
14089 : : {
14090 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
14091 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
14092 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
14093 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
14094 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
14095 : : {
14096 : 0 : {
14097 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _p2 };
14098 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_COPYSIGN);
14099 : 0 : if (res) return res;
14100 : : }
14101 : : }
14102 : : }
14103 : : break;
14104 : 0 : case CFN_COND_FMAX:
14105 : 0 : if (call_expr_nargs (_p1) == 4)
14106 : : {
14107 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
14108 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
14109 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
14110 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
14111 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
14112 : : {
14113 : 0 : {
14114 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _p2 };
14115 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_FMAX);
14116 : 0 : if (res) return res;
14117 : : }
14118 : : }
14119 : : }
14120 : : break;
14121 : 0 : case CFN_COND_FMIN:
14122 : 0 : if (call_expr_nargs (_p1) == 4)
14123 : : {
14124 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
14125 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
14126 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
14127 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
14128 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
14129 : : {
14130 : 0 : {
14131 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _p2 };
14132 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_FMIN);
14133 : 0 : if (res) return res;
14134 : : }
14135 : : }
14136 : : }
14137 : : break;
14138 : 0 : case CFN_COND_RDIV:
14139 : 0 : if (call_expr_nargs (_p1) == 4)
14140 : : {
14141 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
14142 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
14143 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
14144 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
14145 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
14146 : : {
14147 : 0 : {
14148 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _p2 };
14149 : 0 : tree res = generic_simplify_525 (loc, type, _p0, _p1, _p2, captures, CFN_COND_RDIV);
14150 : 0 : if (res) return res;
14151 : : }
14152 : : }
14153 : : }
14154 : : break;
14155 : : default:;
14156 : : }
14157 : : break;
14158 : 308662 : default:;
14159 : : }
14160 : 308662 : switch (TREE_CODE (_p2))
14161 : : {
14162 : 0 : case VIEW_CONVERT_EXPR:
14163 : 0 : {
14164 : 0 : tree _q40 = TREE_OPERAND (_p2, 0);
14165 : 0 : switch (TREE_CODE (_q40))
14166 : : {
14167 : 0 : case CALL_EXPR:
14168 : 0 : switch (get_call_combined_fn (_q40))
14169 : : {
14170 : 0 : case CFN_COND_ADD:
14171 : 0 : if (call_expr_nargs (_q40) == 4)
14172 : : {
14173 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
14174 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
14175 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
14176 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
14177 : 0 : {
14178 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53 };
14179 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_ADD);
14180 : 0 : if (res) return res;
14181 : : }
14182 : : }
14183 : : break;
14184 : 0 : case CFN_COND_AND:
14185 : 0 : if (call_expr_nargs (_q40) == 4)
14186 : : {
14187 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
14188 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
14189 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
14190 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
14191 : 0 : {
14192 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53 };
14193 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_AND);
14194 : 0 : if (res) return res;
14195 : : }
14196 : : }
14197 : : break;
14198 : 0 : case CFN_COND_DIV:
14199 : 0 : if (call_expr_nargs (_q40) == 4)
14200 : : {
14201 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
14202 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
14203 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
14204 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
14205 : 0 : {
14206 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53 };
14207 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_DIV);
14208 : 0 : if (res) return res;
14209 : : }
14210 : : }
14211 : : break;
14212 : 0 : case CFN_COND_IOR:
14213 : 0 : if (call_expr_nargs (_q40) == 4)
14214 : : {
14215 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
14216 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
14217 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
14218 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
14219 : 0 : {
14220 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53 };
14221 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_IOR);
14222 : 0 : if (res) return res;
14223 : : }
14224 : : }
14225 : : break;
14226 : 0 : case CFN_COND_MAX:
14227 : 0 : if (call_expr_nargs (_q40) == 4)
14228 : : {
14229 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
14230 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
14231 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
14232 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
14233 : 0 : {
14234 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53 };
14235 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_MAX);
14236 : 0 : if (res) return res;
14237 : : }
14238 : : }
14239 : : break;
14240 : 0 : case CFN_COND_MIN:
14241 : 0 : if (call_expr_nargs (_q40) == 4)
14242 : : {
14243 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
14244 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
14245 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
14246 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
14247 : 0 : {
14248 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53 };
14249 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_MIN);
14250 : 0 : if (res) return res;
14251 : : }
14252 : : }
14253 : : break;
14254 : 0 : case CFN_COND_MOD:
14255 : 0 : if (call_expr_nargs (_q40) == 4)
14256 : : {
14257 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
14258 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
14259 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
14260 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
14261 : 0 : {
14262 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53 };
14263 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_MOD);
14264 : 0 : if (res) return res;
14265 : : }
14266 : : }
14267 : : break;
14268 : 0 : case CFN_COND_MUL:
14269 : 0 : if (call_expr_nargs (_q40) == 4)
14270 : : {
14271 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
14272 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
14273 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
14274 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
14275 : 0 : {
14276 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53 };
14277 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_MUL);
14278 : 0 : if (res) return res;
14279 : : }
14280 : : }
14281 : : break;
14282 : 0 : case CFN_COND_SHL:
14283 : 0 : if (call_expr_nargs (_q40) == 4)
14284 : : {
14285 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
14286 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
14287 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
14288 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
14289 : 0 : {
14290 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53 };
14291 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_SHL);
14292 : 0 : if (res) return res;
14293 : : }
14294 : : }
14295 : : break;
14296 : 0 : case CFN_COND_SHR:
14297 : 0 : if (call_expr_nargs (_q40) == 4)
14298 : : {
14299 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
14300 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
14301 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
14302 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
14303 : 0 : {
14304 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53 };
14305 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_SHR);
14306 : 0 : if (res) return res;
14307 : : }
14308 : : }
14309 : : break;
14310 : 0 : case CFN_COND_SUB:
14311 : 0 : if (call_expr_nargs (_q40) == 4)
14312 : : {
14313 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
14314 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
14315 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
14316 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
14317 : 0 : {
14318 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53 };
14319 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_SUB);
14320 : 0 : if (res) return res;
14321 : : }
14322 : : }
14323 : : break;
14324 : 0 : case CFN_COND_XOR:
14325 : 0 : if (call_expr_nargs (_q40) == 4)
14326 : : {
14327 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
14328 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
14329 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
14330 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
14331 : 0 : {
14332 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53 };
14333 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_XOR);
14334 : 0 : if (res) return res;
14335 : : }
14336 : : }
14337 : : break;
14338 : 0 : case CFN_COND_COPYSIGN:
14339 : 0 : if (call_expr_nargs (_q40) == 4)
14340 : : {
14341 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
14342 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
14343 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
14344 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
14345 : 0 : {
14346 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53 };
14347 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_COPYSIGN);
14348 : 0 : if (res) return res;
14349 : : }
14350 : : }
14351 : : break;
14352 : 0 : case CFN_COND_FMAX:
14353 : 0 : if (call_expr_nargs (_q40) == 4)
14354 : : {
14355 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
14356 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
14357 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
14358 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
14359 : 0 : {
14360 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53 };
14361 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_FMAX);
14362 : 0 : if (res) return res;
14363 : : }
14364 : : }
14365 : : break;
14366 : 0 : case CFN_COND_FMIN:
14367 : 0 : if (call_expr_nargs (_q40) == 4)
14368 : : {
14369 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
14370 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
14371 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
14372 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
14373 : 0 : {
14374 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53 };
14375 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_FMIN);
14376 : 0 : if (res) return res;
14377 : : }
14378 : : }
14379 : : break;
14380 : 0 : case CFN_COND_RDIV:
14381 : 0 : if (call_expr_nargs (_q40) == 4)
14382 : : {
14383 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
14384 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
14385 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
14386 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
14387 : 0 : {
14388 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53 };
14389 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_RDIV);
14390 : 0 : if (res) return res;
14391 : : }
14392 : : }
14393 : : break;
14394 : : default:;
14395 : : }
14396 : : break;
14397 : : default:;
14398 : : }
14399 : : break;
14400 : : }
14401 : 12 : case CALL_EXPR:
14402 : 12 : switch (get_call_combined_fn (_p2))
14403 : : {
14404 : 0 : case CFN_COND_ADD:
14405 : 0 : if (call_expr_nargs (_p2) == 4)
14406 : : {
14407 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
14408 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
14409 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
14410 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
14411 : 0 : {
14412 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43 };
14413 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_ADD);
14414 : 0 : if (res) return res;
14415 : : }
14416 : : }
14417 : : break;
14418 : 0 : case CFN_COND_AND:
14419 : 0 : if (call_expr_nargs (_p2) == 4)
14420 : : {
14421 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
14422 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
14423 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
14424 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
14425 : 0 : {
14426 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43 };
14427 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_AND);
14428 : 0 : if (res) return res;
14429 : : }
14430 : : }
14431 : : break;
14432 : 0 : case CFN_COND_DIV:
14433 : 0 : if (call_expr_nargs (_p2) == 4)
14434 : : {
14435 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
14436 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
14437 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
14438 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
14439 : 0 : {
14440 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43 };
14441 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_DIV);
14442 : 0 : if (res) return res;
14443 : : }
14444 : : }
14445 : : break;
14446 : 0 : case CFN_COND_IOR:
14447 : 0 : if (call_expr_nargs (_p2) == 4)
14448 : : {
14449 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
14450 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
14451 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
14452 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
14453 : 0 : {
14454 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43 };
14455 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_IOR);
14456 : 0 : if (res) return res;
14457 : : }
14458 : : }
14459 : : break;
14460 : 0 : case CFN_COND_MAX:
14461 : 0 : if (call_expr_nargs (_p2) == 4)
14462 : : {
14463 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
14464 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
14465 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
14466 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
14467 : 0 : {
14468 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43 };
14469 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_MAX);
14470 : 0 : if (res) return res;
14471 : : }
14472 : : }
14473 : : break;
14474 : 0 : case CFN_COND_MIN:
14475 : 0 : if (call_expr_nargs (_p2) == 4)
14476 : : {
14477 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
14478 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
14479 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
14480 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
14481 : 0 : {
14482 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43 };
14483 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_MIN);
14484 : 0 : if (res) return res;
14485 : : }
14486 : : }
14487 : : break;
14488 : 0 : case CFN_COND_MOD:
14489 : 0 : if (call_expr_nargs (_p2) == 4)
14490 : : {
14491 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
14492 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
14493 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
14494 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
14495 : 0 : {
14496 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43 };
14497 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_MOD);
14498 : 0 : if (res) return res;
14499 : : }
14500 : : }
14501 : : break;
14502 : 0 : case CFN_COND_MUL:
14503 : 0 : if (call_expr_nargs (_p2) == 4)
14504 : : {
14505 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
14506 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
14507 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
14508 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
14509 : 0 : {
14510 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43 };
14511 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_MUL);
14512 : 0 : if (res) return res;
14513 : : }
14514 : : }
14515 : : break;
14516 : 0 : case CFN_COND_SHL:
14517 : 0 : if (call_expr_nargs (_p2) == 4)
14518 : : {
14519 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
14520 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
14521 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
14522 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
14523 : 0 : {
14524 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43 };
14525 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_SHL);
14526 : 0 : if (res) return res;
14527 : : }
14528 : : }
14529 : : break;
14530 : 0 : case CFN_COND_SHR:
14531 : 0 : if (call_expr_nargs (_p2) == 4)
14532 : : {
14533 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
14534 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
14535 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
14536 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
14537 : 0 : {
14538 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43 };
14539 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_SHR);
14540 : 0 : if (res) return res;
14541 : : }
14542 : : }
14543 : : break;
14544 : 0 : case CFN_COND_SUB:
14545 : 0 : if (call_expr_nargs (_p2) == 4)
14546 : : {
14547 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
14548 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
14549 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
14550 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
14551 : 0 : {
14552 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43 };
14553 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_SUB);
14554 : 0 : if (res) return res;
14555 : : }
14556 : : }
14557 : : break;
14558 : 0 : case CFN_COND_XOR:
14559 : 0 : if (call_expr_nargs (_p2) == 4)
14560 : : {
14561 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
14562 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
14563 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
14564 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
14565 : 0 : {
14566 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43 };
14567 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_XOR);
14568 : 0 : if (res) return res;
14569 : : }
14570 : : }
14571 : : break;
14572 : 0 : case CFN_COND_COPYSIGN:
14573 : 0 : if (call_expr_nargs (_p2) == 4)
14574 : : {
14575 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
14576 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
14577 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
14578 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
14579 : 0 : {
14580 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43 };
14581 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_COPYSIGN);
14582 : 0 : if (res) return res;
14583 : : }
14584 : : }
14585 : : break;
14586 : 0 : case CFN_COND_FMAX:
14587 : 0 : if (call_expr_nargs (_p2) == 4)
14588 : : {
14589 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
14590 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
14591 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
14592 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
14593 : 0 : {
14594 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43 };
14595 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_FMAX);
14596 : 0 : if (res) return res;
14597 : : }
14598 : : }
14599 : : break;
14600 : 0 : case CFN_COND_FMIN:
14601 : 0 : if (call_expr_nargs (_p2) == 4)
14602 : : {
14603 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
14604 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
14605 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
14606 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
14607 : 0 : {
14608 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43 };
14609 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_FMIN);
14610 : 0 : if (res) return res;
14611 : : }
14612 : : }
14613 : : break;
14614 : 0 : case CFN_COND_RDIV:
14615 : 0 : if (call_expr_nargs (_p2) == 4)
14616 : : {
14617 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
14618 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
14619 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
14620 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
14621 : 0 : {
14622 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43 };
14623 : 0 : tree res = generic_simplify_526 (loc, type, _p0, _p1, _p2, captures, CFN_COND_RDIV);
14624 : 0 : if (res) return res;
14625 : : }
14626 : : }
14627 : : break;
14628 : : default:;
14629 : : }
14630 : : break;
14631 : 308662 : default:;
14632 : : }
14633 : 308662 : switch (TREE_CODE (_p1))
14634 : : {
14635 : 0 : case VIEW_CONVERT_EXPR:
14636 : 0 : {
14637 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
14638 : 0 : switch (TREE_CODE (_q30))
14639 : : {
14640 : 0 : case CALL_EXPR:
14641 : 0 : switch (get_call_combined_fn (_q30))
14642 : : {
14643 : 0 : case CFN_COND_FMA:
14644 : 0 : if (call_expr_nargs (_q30) == 5)
14645 : : {
14646 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
14647 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
14648 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
14649 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
14650 : 0 : tree _q44 = CALL_EXPR_ARG (_q30, 4);
14651 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
14652 : : {
14653 : 0 : {
14654 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _q44, _p2 };
14655 : 0 : tree res = generic_simplify_527 (loc, type, _p0, _p1, _p2, captures, CFN_COND_FMA);
14656 : 0 : if (res) return res;
14657 : : }
14658 : : }
14659 : : }
14660 : : break;
14661 : 0 : case CFN_COND_FMS:
14662 : 0 : if (call_expr_nargs (_q30) == 5)
14663 : : {
14664 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
14665 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
14666 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
14667 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
14668 : 0 : tree _q44 = CALL_EXPR_ARG (_q30, 4);
14669 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
14670 : : {
14671 : 0 : {
14672 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _q44, _p2 };
14673 : 0 : tree res = generic_simplify_527 (loc, type, _p0, _p1, _p2, captures, CFN_COND_FMS);
14674 : 0 : if (res) return res;
14675 : : }
14676 : : }
14677 : : }
14678 : : break;
14679 : 0 : case CFN_COND_FNMA:
14680 : 0 : if (call_expr_nargs (_q30) == 5)
14681 : : {
14682 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
14683 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
14684 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
14685 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
14686 : 0 : tree _q44 = CALL_EXPR_ARG (_q30, 4);
14687 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
14688 : : {
14689 : 0 : {
14690 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _q44, _p2 };
14691 : 0 : tree res = generic_simplify_527 (loc, type, _p0, _p1, _p2, captures, CFN_COND_FNMA);
14692 : 0 : if (res) return res;
14693 : : }
14694 : : }
14695 : : }
14696 : : break;
14697 : 0 : case CFN_COND_FNMS:
14698 : 0 : if (call_expr_nargs (_q30) == 5)
14699 : : {
14700 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
14701 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
14702 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
14703 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
14704 : 0 : tree _q44 = CALL_EXPR_ARG (_q30, 4);
14705 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
14706 : : {
14707 : 0 : {
14708 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _q44, _p2 };
14709 : 0 : tree res = generic_simplify_527 (loc, type, _p0, _p1, _p2, captures, CFN_COND_FNMS);
14710 : 0 : if (res) return res;
14711 : : }
14712 : : }
14713 : : }
14714 : : break;
14715 : : default:;
14716 : : }
14717 : : break;
14718 : : default:;
14719 : : }
14720 : : break;
14721 : : }
14722 : 12 : case CALL_EXPR:
14723 : 12 : switch (get_call_combined_fn (_p1))
14724 : : {
14725 : 0 : case CFN_COND_FMA:
14726 : 0 : if (call_expr_nargs (_p1) == 5)
14727 : : {
14728 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
14729 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
14730 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
14731 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
14732 : 0 : tree _q34 = CALL_EXPR_ARG (_p1, 4);
14733 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
14734 : : {
14735 : 0 : {
14736 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _q34, _p2 };
14737 : 0 : tree res = generic_simplify_527 (loc, type, _p0, _p1, _p2, captures, CFN_COND_FMA);
14738 : 0 : if (res) return res;
14739 : : }
14740 : : }
14741 : : }
14742 : : break;
14743 : 0 : case CFN_COND_FMS:
14744 : 0 : if (call_expr_nargs (_p1) == 5)
14745 : : {
14746 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
14747 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
14748 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
14749 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
14750 : 0 : tree _q34 = CALL_EXPR_ARG (_p1, 4);
14751 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
14752 : : {
14753 : 0 : {
14754 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _q34, _p2 };
14755 : 0 : tree res = generic_simplify_527 (loc, type, _p0, _p1, _p2, captures, CFN_COND_FMS);
14756 : 0 : if (res) return res;
14757 : : }
14758 : : }
14759 : : }
14760 : : break;
14761 : 0 : case CFN_COND_FNMA:
14762 : 0 : if (call_expr_nargs (_p1) == 5)
14763 : : {
14764 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
14765 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
14766 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
14767 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
14768 : 0 : tree _q34 = CALL_EXPR_ARG (_p1, 4);
14769 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
14770 : : {
14771 : 0 : {
14772 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _q34, _p2 };
14773 : 0 : tree res = generic_simplify_527 (loc, type, _p0, _p1, _p2, captures, CFN_COND_FNMA);
14774 : 0 : if (res) return res;
14775 : : }
14776 : : }
14777 : : }
14778 : : break;
14779 : 0 : case CFN_COND_FNMS:
14780 : 0 : if (call_expr_nargs (_p1) == 5)
14781 : : {
14782 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
14783 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
14784 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
14785 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
14786 : 0 : tree _q34 = CALL_EXPR_ARG (_p1, 4);
14787 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
14788 : : {
14789 : 0 : {
14790 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _q34, _p2 };
14791 : 0 : tree res = generic_simplify_527 (loc, type, _p0, _p1, _p2, captures, CFN_COND_FNMS);
14792 : 0 : if (res) return res;
14793 : : }
14794 : : }
14795 : : }
14796 : : break;
14797 : : default:;
14798 : : }
14799 : : break;
14800 : 308662 : default:;
14801 : : }
14802 : 308662 : switch (TREE_CODE (_p2))
14803 : : {
14804 : 0 : case VIEW_CONVERT_EXPR:
14805 : 0 : {
14806 : 0 : tree _q40 = TREE_OPERAND (_p2, 0);
14807 : 0 : switch (TREE_CODE (_q40))
14808 : : {
14809 : 0 : case CALL_EXPR:
14810 : 0 : switch (get_call_combined_fn (_q40))
14811 : : {
14812 : 0 : case CFN_COND_FMA:
14813 : 0 : if (call_expr_nargs (_q40) == 5)
14814 : : {
14815 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
14816 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
14817 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
14818 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
14819 : 0 : tree _q54 = CALL_EXPR_ARG (_q40, 4);
14820 : 0 : {
14821 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53, _q54 };
14822 : 0 : tree res = generic_simplify_528 (loc, type, _p0, _p1, _p2, captures, CFN_COND_FMA);
14823 : 0 : if (res) return res;
14824 : : }
14825 : : }
14826 : : break;
14827 : 0 : case CFN_COND_FMS:
14828 : 0 : if (call_expr_nargs (_q40) == 5)
14829 : : {
14830 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
14831 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
14832 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
14833 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
14834 : 0 : tree _q54 = CALL_EXPR_ARG (_q40, 4);
14835 : 0 : {
14836 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53, _q54 };
14837 : 0 : tree res = generic_simplify_528 (loc, type, _p0, _p1, _p2, captures, CFN_COND_FMS);
14838 : 0 : if (res) return res;
14839 : : }
14840 : : }
14841 : : break;
14842 : 0 : case CFN_COND_FNMA:
14843 : 0 : if (call_expr_nargs (_q40) == 5)
14844 : : {
14845 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
14846 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
14847 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
14848 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
14849 : 0 : tree _q54 = CALL_EXPR_ARG (_q40, 4);
14850 : 0 : {
14851 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53, _q54 };
14852 : 0 : tree res = generic_simplify_528 (loc, type, _p0, _p1, _p2, captures, CFN_COND_FNMA);
14853 : 0 : if (res) return res;
14854 : : }
14855 : : }
14856 : : break;
14857 : 0 : case CFN_COND_FNMS:
14858 : 0 : if (call_expr_nargs (_q40) == 5)
14859 : : {
14860 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
14861 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
14862 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
14863 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
14864 : 0 : tree _q54 = CALL_EXPR_ARG (_q40, 4);
14865 : 0 : {
14866 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53, _q54 };
14867 : 0 : tree res = generic_simplify_528 (loc, type, _p0, _p1, _p2, captures, CFN_COND_FNMS);
14868 : 0 : if (res) return res;
14869 : : }
14870 : : }
14871 : : break;
14872 : : default:;
14873 : : }
14874 : : break;
14875 : : default:;
14876 : : }
14877 : : break;
14878 : : }
14879 : 12 : case CALL_EXPR:
14880 : 12 : switch (get_call_combined_fn (_p2))
14881 : : {
14882 : 0 : case CFN_COND_FMA:
14883 : 0 : if (call_expr_nargs (_p2) == 5)
14884 : : {
14885 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
14886 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
14887 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
14888 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
14889 : 0 : tree _q44 = CALL_EXPR_ARG (_p2, 4);
14890 : 0 : {
14891 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43, _q44 };
14892 : 0 : tree res = generic_simplify_528 (loc, type, _p0, _p1, _p2, captures, CFN_COND_FMA);
14893 : 0 : if (res) return res;
14894 : : }
14895 : : }
14896 : : break;
14897 : 0 : case CFN_COND_FMS:
14898 : 0 : if (call_expr_nargs (_p2) == 5)
14899 : : {
14900 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
14901 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
14902 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
14903 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
14904 : 0 : tree _q44 = CALL_EXPR_ARG (_p2, 4);
14905 : 0 : {
14906 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43, _q44 };
14907 : 0 : tree res = generic_simplify_528 (loc, type, _p0, _p1, _p2, captures, CFN_COND_FMS);
14908 : 0 : if (res) return res;
14909 : : }
14910 : : }
14911 : : break;
14912 : 0 : case CFN_COND_FNMA:
14913 : 0 : if (call_expr_nargs (_p2) == 5)
14914 : : {
14915 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
14916 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
14917 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
14918 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
14919 : 0 : tree _q44 = CALL_EXPR_ARG (_p2, 4);
14920 : 0 : {
14921 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43, _q44 };
14922 : 0 : tree res = generic_simplify_528 (loc, type, _p0, _p1, _p2, captures, CFN_COND_FNMA);
14923 : 0 : if (res) return res;
14924 : : }
14925 : : }
14926 : : break;
14927 : 0 : case CFN_COND_FNMS:
14928 : 0 : if (call_expr_nargs (_p2) == 5)
14929 : : {
14930 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
14931 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
14932 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
14933 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
14934 : 0 : tree _q44 = CALL_EXPR_ARG (_p2, 4);
14935 : 0 : {
14936 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43, _q44 };
14937 : 0 : tree res = generic_simplify_528 (loc, type, _p0, _p1, _p2, captures, CFN_COND_FNMS);
14938 : 0 : if (res) return res;
14939 : : }
14940 : : }
14941 : : break;
14942 : : default:;
14943 : : }
14944 : : break;
14945 : 308662 : default:;
14946 : : }
14947 : 308662 : switch (TREE_CODE (_p1))
14948 : : {
14949 : 0 : case VIEW_CONVERT_EXPR:
14950 : 0 : {
14951 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
14952 : 0 : switch (TREE_CODE (_q30))
14953 : : {
14954 : 0 : case CALL_EXPR:
14955 : 0 : switch (get_call_combined_fn (_q30))
14956 : : {
14957 : 0 : case CFN_COND_LEN_ADD:
14958 : 0 : if (call_expr_nargs (_q30) == 6)
14959 : : {
14960 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
14961 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
14962 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
14963 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
14964 : 0 : tree _q44 = CALL_EXPR_ARG (_q30, 4);
14965 : 0 : tree _q45 = CALL_EXPR_ARG (_q30, 5);
14966 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
14967 : : {
14968 : 0 : {
14969 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _q44, _q45, _p2 };
14970 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_ADD);
14971 : 0 : if (res) return res;
14972 : : }
14973 : : }
14974 : : }
14975 : : break;
14976 : 0 : case CFN_COND_LEN_AND:
14977 : 0 : if (call_expr_nargs (_q30) == 6)
14978 : : {
14979 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
14980 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
14981 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
14982 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
14983 : 0 : tree _q44 = CALL_EXPR_ARG (_q30, 4);
14984 : 0 : tree _q45 = CALL_EXPR_ARG (_q30, 5);
14985 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
14986 : : {
14987 : 0 : {
14988 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _q44, _q45, _p2 };
14989 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_AND);
14990 : 0 : if (res) return res;
14991 : : }
14992 : : }
14993 : : }
14994 : : break;
14995 : 0 : case CFN_COND_LEN_DIV:
14996 : 0 : if (call_expr_nargs (_q30) == 6)
14997 : : {
14998 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
14999 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
15000 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
15001 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
15002 : 0 : tree _q44 = CALL_EXPR_ARG (_q30, 4);
15003 : 0 : tree _q45 = CALL_EXPR_ARG (_q30, 5);
15004 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
15005 : : {
15006 : 0 : {
15007 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _q44, _q45, _p2 };
15008 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_DIV);
15009 : 0 : if (res) return res;
15010 : : }
15011 : : }
15012 : : }
15013 : : break;
15014 : 0 : case CFN_COND_LEN_IOR:
15015 : 0 : if (call_expr_nargs (_q30) == 6)
15016 : : {
15017 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
15018 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
15019 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
15020 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
15021 : 0 : tree _q44 = CALL_EXPR_ARG (_q30, 4);
15022 : 0 : tree _q45 = CALL_EXPR_ARG (_q30, 5);
15023 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
15024 : : {
15025 : 0 : {
15026 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _q44, _q45, _p2 };
15027 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_IOR);
15028 : 0 : if (res) return res;
15029 : : }
15030 : : }
15031 : : }
15032 : : break;
15033 : 0 : case CFN_COND_LEN_MAX:
15034 : 0 : if (call_expr_nargs (_q30) == 6)
15035 : : {
15036 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
15037 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
15038 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
15039 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
15040 : 0 : tree _q44 = CALL_EXPR_ARG (_q30, 4);
15041 : 0 : tree _q45 = CALL_EXPR_ARG (_q30, 5);
15042 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
15043 : : {
15044 : 0 : {
15045 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _q44, _q45, _p2 };
15046 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_MAX);
15047 : 0 : if (res) return res;
15048 : : }
15049 : : }
15050 : : }
15051 : : break;
15052 : 0 : case CFN_COND_LEN_MIN:
15053 : 0 : if (call_expr_nargs (_q30) == 6)
15054 : : {
15055 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
15056 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
15057 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
15058 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
15059 : 0 : tree _q44 = CALL_EXPR_ARG (_q30, 4);
15060 : 0 : tree _q45 = CALL_EXPR_ARG (_q30, 5);
15061 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
15062 : : {
15063 : 0 : {
15064 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _q44, _q45, _p2 };
15065 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_MIN);
15066 : 0 : if (res) return res;
15067 : : }
15068 : : }
15069 : : }
15070 : : break;
15071 : 0 : case CFN_COND_LEN_MOD:
15072 : 0 : if (call_expr_nargs (_q30) == 6)
15073 : : {
15074 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
15075 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
15076 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
15077 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
15078 : 0 : tree _q44 = CALL_EXPR_ARG (_q30, 4);
15079 : 0 : tree _q45 = CALL_EXPR_ARG (_q30, 5);
15080 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
15081 : : {
15082 : 0 : {
15083 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _q44, _q45, _p2 };
15084 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_MOD);
15085 : 0 : if (res) return res;
15086 : : }
15087 : : }
15088 : : }
15089 : : break;
15090 : 0 : case CFN_COND_LEN_MUL:
15091 : 0 : if (call_expr_nargs (_q30) == 6)
15092 : : {
15093 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
15094 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
15095 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
15096 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
15097 : 0 : tree _q44 = CALL_EXPR_ARG (_q30, 4);
15098 : 0 : tree _q45 = CALL_EXPR_ARG (_q30, 5);
15099 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
15100 : : {
15101 : 0 : {
15102 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _q44, _q45, _p2 };
15103 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_MUL);
15104 : 0 : if (res) return res;
15105 : : }
15106 : : }
15107 : : }
15108 : : break;
15109 : 0 : case CFN_COND_LEN_SHL:
15110 : 0 : if (call_expr_nargs (_q30) == 6)
15111 : : {
15112 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
15113 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
15114 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
15115 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
15116 : 0 : tree _q44 = CALL_EXPR_ARG (_q30, 4);
15117 : 0 : tree _q45 = CALL_EXPR_ARG (_q30, 5);
15118 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
15119 : : {
15120 : 0 : {
15121 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _q44, _q45, _p2 };
15122 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_SHL);
15123 : 0 : if (res) return res;
15124 : : }
15125 : : }
15126 : : }
15127 : : break;
15128 : 0 : case CFN_COND_LEN_SHR:
15129 : 0 : if (call_expr_nargs (_q30) == 6)
15130 : : {
15131 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
15132 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
15133 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
15134 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
15135 : 0 : tree _q44 = CALL_EXPR_ARG (_q30, 4);
15136 : 0 : tree _q45 = CALL_EXPR_ARG (_q30, 5);
15137 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
15138 : : {
15139 : 0 : {
15140 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _q44, _q45, _p2 };
15141 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_SHR);
15142 : 0 : if (res) return res;
15143 : : }
15144 : : }
15145 : : }
15146 : : break;
15147 : 0 : case CFN_COND_LEN_SUB:
15148 : 0 : if (call_expr_nargs (_q30) == 6)
15149 : : {
15150 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
15151 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
15152 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
15153 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
15154 : 0 : tree _q44 = CALL_EXPR_ARG (_q30, 4);
15155 : 0 : tree _q45 = CALL_EXPR_ARG (_q30, 5);
15156 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
15157 : : {
15158 : 0 : {
15159 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _q44, _q45, _p2 };
15160 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_SUB);
15161 : 0 : if (res) return res;
15162 : : }
15163 : : }
15164 : : }
15165 : : break;
15166 : 0 : case CFN_COND_LEN_XOR:
15167 : 0 : if (call_expr_nargs (_q30) == 6)
15168 : : {
15169 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
15170 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
15171 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
15172 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
15173 : 0 : tree _q44 = CALL_EXPR_ARG (_q30, 4);
15174 : 0 : tree _q45 = CALL_EXPR_ARG (_q30, 5);
15175 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
15176 : : {
15177 : 0 : {
15178 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _q44, _q45, _p2 };
15179 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_XOR);
15180 : 0 : if (res) return res;
15181 : : }
15182 : : }
15183 : : }
15184 : : break;
15185 : 0 : case CFN_COND_LEN_FMAX:
15186 : 0 : if (call_expr_nargs (_q30) == 6)
15187 : : {
15188 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
15189 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
15190 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
15191 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
15192 : 0 : tree _q44 = CALL_EXPR_ARG (_q30, 4);
15193 : 0 : tree _q45 = CALL_EXPR_ARG (_q30, 5);
15194 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
15195 : : {
15196 : 0 : {
15197 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _q44, _q45, _p2 };
15198 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_FMAX);
15199 : 0 : if (res) return res;
15200 : : }
15201 : : }
15202 : : }
15203 : : break;
15204 : 0 : case CFN_COND_LEN_FMIN:
15205 : 0 : if (call_expr_nargs (_q30) == 6)
15206 : : {
15207 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
15208 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
15209 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
15210 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
15211 : 0 : tree _q44 = CALL_EXPR_ARG (_q30, 4);
15212 : 0 : tree _q45 = CALL_EXPR_ARG (_q30, 5);
15213 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
15214 : : {
15215 : 0 : {
15216 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _q44, _q45, _p2 };
15217 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_FMIN);
15218 : 0 : if (res) return res;
15219 : : }
15220 : : }
15221 : : }
15222 : : break;
15223 : 0 : case CFN_COND_LEN_RDIV:
15224 : 0 : if (call_expr_nargs (_q30) == 6)
15225 : : {
15226 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
15227 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
15228 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
15229 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
15230 : 0 : tree _q44 = CALL_EXPR_ARG (_q30, 4);
15231 : 0 : tree _q45 = CALL_EXPR_ARG (_q30, 5);
15232 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
15233 : : {
15234 : 0 : {
15235 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _q44, _q45, _p2 };
15236 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_RDIV);
15237 : 0 : if (res) return res;
15238 : : }
15239 : : }
15240 : : }
15241 : : break;
15242 : 0 : case CFN_COND_LEN_COPYSIGN:
15243 : 0 : if (call_expr_nargs (_q30) == 6)
15244 : : {
15245 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
15246 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
15247 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
15248 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
15249 : 0 : tree _q44 = CALL_EXPR_ARG (_q30, 4);
15250 : 0 : tree _q45 = CALL_EXPR_ARG (_q30, 5);
15251 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
15252 : : {
15253 : 0 : {
15254 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _q44, _q45, _p2 };
15255 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_COPYSIGN);
15256 : 0 : if (res) return res;
15257 : : }
15258 : : }
15259 : : }
15260 : : break;
15261 : : default:;
15262 : : }
15263 : : break;
15264 : : default:;
15265 : : }
15266 : : break;
15267 : : }
15268 : 12 : case CALL_EXPR:
15269 : 12 : switch (get_call_combined_fn (_p1))
15270 : : {
15271 : 0 : case CFN_COND_LEN_ADD:
15272 : 0 : if (call_expr_nargs (_p1) == 6)
15273 : : {
15274 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
15275 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
15276 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
15277 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
15278 : 0 : tree _q34 = CALL_EXPR_ARG (_p1, 4);
15279 : 0 : tree _q35 = CALL_EXPR_ARG (_p1, 5);
15280 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
15281 : : {
15282 : 0 : {
15283 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _q34, _q35, _p2 };
15284 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_ADD);
15285 : 0 : if (res) return res;
15286 : : }
15287 : : }
15288 : : }
15289 : : break;
15290 : 0 : case CFN_COND_LEN_AND:
15291 : 0 : if (call_expr_nargs (_p1) == 6)
15292 : : {
15293 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
15294 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
15295 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
15296 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
15297 : 0 : tree _q34 = CALL_EXPR_ARG (_p1, 4);
15298 : 0 : tree _q35 = CALL_EXPR_ARG (_p1, 5);
15299 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
15300 : : {
15301 : 0 : {
15302 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _q34, _q35, _p2 };
15303 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_AND);
15304 : 0 : if (res) return res;
15305 : : }
15306 : : }
15307 : : }
15308 : : break;
15309 : 0 : case CFN_COND_LEN_DIV:
15310 : 0 : if (call_expr_nargs (_p1) == 6)
15311 : : {
15312 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
15313 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
15314 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
15315 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
15316 : 0 : tree _q34 = CALL_EXPR_ARG (_p1, 4);
15317 : 0 : tree _q35 = CALL_EXPR_ARG (_p1, 5);
15318 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
15319 : : {
15320 : 0 : {
15321 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _q34, _q35, _p2 };
15322 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_DIV);
15323 : 0 : if (res) return res;
15324 : : }
15325 : : }
15326 : : }
15327 : : break;
15328 : 0 : case CFN_COND_LEN_IOR:
15329 : 0 : if (call_expr_nargs (_p1) == 6)
15330 : : {
15331 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
15332 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
15333 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
15334 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
15335 : 0 : tree _q34 = CALL_EXPR_ARG (_p1, 4);
15336 : 0 : tree _q35 = CALL_EXPR_ARG (_p1, 5);
15337 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
15338 : : {
15339 : 0 : {
15340 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _q34, _q35, _p2 };
15341 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_IOR);
15342 : 0 : if (res) return res;
15343 : : }
15344 : : }
15345 : : }
15346 : : break;
15347 : 0 : case CFN_COND_LEN_MAX:
15348 : 0 : if (call_expr_nargs (_p1) == 6)
15349 : : {
15350 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
15351 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
15352 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
15353 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
15354 : 0 : tree _q34 = CALL_EXPR_ARG (_p1, 4);
15355 : 0 : tree _q35 = CALL_EXPR_ARG (_p1, 5);
15356 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
15357 : : {
15358 : 0 : {
15359 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _q34, _q35, _p2 };
15360 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_MAX);
15361 : 0 : if (res) return res;
15362 : : }
15363 : : }
15364 : : }
15365 : : break;
15366 : 0 : case CFN_COND_LEN_MIN:
15367 : 0 : if (call_expr_nargs (_p1) == 6)
15368 : : {
15369 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
15370 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
15371 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
15372 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
15373 : 0 : tree _q34 = CALL_EXPR_ARG (_p1, 4);
15374 : 0 : tree _q35 = CALL_EXPR_ARG (_p1, 5);
15375 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
15376 : : {
15377 : 0 : {
15378 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _q34, _q35, _p2 };
15379 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_MIN);
15380 : 0 : if (res) return res;
15381 : : }
15382 : : }
15383 : : }
15384 : : break;
15385 : 0 : case CFN_COND_LEN_MOD:
15386 : 0 : if (call_expr_nargs (_p1) == 6)
15387 : : {
15388 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
15389 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
15390 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
15391 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
15392 : 0 : tree _q34 = CALL_EXPR_ARG (_p1, 4);
15393 : 0 : tree _q35 = CALL_EXPR_ARG (_p1, 5);
15394 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
15395 : : {
15396 : 0 : {
15397 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _q34, _q35, _p2 };
15398 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_MOD);
15399 : 0 : if (res) return res;
15400 : : }
15401 : : }
15402 : : }
15403 : : break;
15404 : 0 : case CFN_COND_LEN_MUL:
15405 : 0 : if (call_expr_nargs (_p1) == 6)
15406 : : {
15407 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
15408 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
15409 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
15410 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
15411 : 0 : tree _q34 = CALL_EXPR_ARG (_p1, 4);
15412 : 0 : tree _q35 = CALL_EXPR_ARG (_p1, 5);
15413 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
15414 : : {
15415 : 0 : {
15416 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _q34, _q35, _p2 };
15417 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_MUL);
15418 : 0 : if (res) return res;
15419 : : }
15420 : : }
15421 : : }
15422 : : break;
15423 : 0 : case CFN_COND_LEN_SHL:
15424 : 0 : if (call_expr_nargs (_p1) == 6)
15425 : : {
15426 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
15427 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
15428 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
15429 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
15430 : 0 : tree _q34 = CALL_EXPR_ARG (_p1, 4);
15431 : 0 : tree _q35 = CALL_EXPR_ARG (_p1, 5);
15432 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
15433 : : {
15434 : 0 : {
15435 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _q34, _q35, _p2 };
15436 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_SHL);
15437 : 0 : if (res) return res;
15438 : : }
15439 : : }
15440 : : }
15441 : : break;
15442 : 0 : case CFN_COND_LEN_SHR:
15443 : 0 : if (call_expr_nargs (_p1) == 6)
15444 : : {
15445 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
15446 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
15447 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
15448 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
15449 : 0 : tree _q34 = CALL_EXPR_ARG (_p1, 4);
15450 : 0 : tree _q35 = CALL_EXPR_ARG (_p1, 5);
15451 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
15452 : : {
15453 : 0 : {
15454 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _q34, _q35, _p2 };
15455 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_SHR);
15456 : 0 : if (res) return res;
15457 : : }
15458 : : }
15459 : : }
15460 : : break;
15461 : 0 : case CFN_COND_LEN_SUB:
15462 : 0 : if (call_expr_nargs (_p1) == 6)
15463 : : {
15464 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
15465 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
15466 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
15467 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
15468 : 0 : tree _q34 = CALL_EXPR_ARG (_p1, 4);
15469 : 0 : tree _q35 = CALL_EXPR_ARG (_p1, 5);
15470 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
15471 : : {
15472 : 0 : {
15473 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _q34, _q35, _p2 };
15474 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_SUB);
15475 : 0 : if (res) return res;
15476 : : }
15477 : : }
15478 : : }
15479 : : break;
15480 : 0 : case CFN_COND_LEN_XOR:
15481 : 0 : if (call_expr_nargs (_p1) == 6)
15482 : : {
15483 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
15484 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
15485 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
15486 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
15487 : 0 : tree _q34 = CALL_EXPR_ARG (_p1, 4);
15488 : 0 : tree _q35 = CALL_EXPR_ARG (_p1, 5);
15489 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
15490 : : {
15491 : 0 : {
15492 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _q34, _q35, _p2 };
15493 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_XOR);
15494 : 0 : if (res) return res;
15495 : : }
15496 : : }
15497 : : }
15498 : : break;
15499 : 0 : case CFN_COND_LEN_FMAX:
15500 : 0 : if (call_expr_nargs (_p1) == 6)
15501 : : {
15502 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
15503 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
15504 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
15505 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
15506 : 0 : tree _q34 = CALL_EXPR_ARG (_p1, 4);
15507 : 0 : tree _q35 = CALL_EXPR_ARG (_p1, 5);
15508 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
15509 : : {
15510 : 0 : {
15511 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _q34, _q35, _p2 };
15512 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_FMAX);
15513 : 0 : if (res) return res;
15514 : : }
15515 : : }
15516 : : }
15517 : : break;
15518 : 0 : case CFN_COND_LEN_FMIN:
15519 : 0 : if (call_expr_nargs (_p1) == 6)
15520 : : {
15521 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
15522 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
15523 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
15524 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
15525 : 0 : tree _q34 = CALL_EXPR_ARG (_p1, 4);
15526 : 0 : tree _q35 = CALL_EXPR_ARG (_p1, 5);
15527 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
15528 : : {
15529 : 0 : {
15530 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _q34, _q35, _p2 };
15531 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_FMIN);
15532 : 0 : if (res) return res;
15533 : : }
15534 : : }
15535 : : }
15536 : : break;
15537 : 0 : case CFN_COND_LEN_RDIV:
15538 : 0 : if (call_expr_nargs (_p1) == 6)
15539 : : {
15540 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
15541 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
15542 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
15543 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
15544 : 0 : tree _q34 = CALL_EXPR_ARG (_p1, 4);
15545 : 0 : tree _q35 = CALL_EXPR_ARG (_p1, 5);
15546 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
15547 : : {
15548 : 0 : {
15549 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _q34, _q35, _p2 };
15550 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_RDIV);
15551 : 0 : if (res) return res;
15552 : : }
15553 : : }
15554 : : }
15555 : : break;
15556 : 0 : case CFN_COND_LEN_COPYSIGN:
15557 : 0 : if (call_expr_nargs (_p1) == 6)
15558 : : {
15559 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
15560 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
15561 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
15562 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
15563 : 0 : tree _q34 = CALL_EXPR_ARG (_p1, 4);
15564 : 0 : tree _q35 = CALL_EXPR_ARG (_p1, 5);
15565 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
15566 : : {
15567 : 0 : {
15568 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _q34, _q35, _p2 };
15569 : 0 : tree res = generic_simplify_529 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_COPYSIGN);
15570 : 0 : if (res) return res;
15571 : : }
15572 : : }
15573 : : }
15574 : : break;
15575 : : default:;
15576 : : }
15577 : : break;
15578 : 308662 : default:;
15579 : : }
15580 : 308662 : switch (TREE_CODE (_p2))
15581 : : {
15582 : 0 : case VIEW_CONVERT_EXPR:
15583 : 0 : {
15584 : 0 : tree _q40 = TREE_OPERAND (_p2, 0);
15585 : 0 : switch (TREE_CODE (_q40))
15586 : : {
15587 : 0 : case CALL_EXPR:
15588 : 0 : switch (get_call_combined_fn (_q40))
15589 : : {
15590 : 0 : case CFN_COND_LEN_ADD:
15591 : 0 : if (call_expr_nargs (_q40) == 6)
15592 : : {
15593 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
15594 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
15595 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
15596 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
15597 : 0 : tree _q54 = CALL_EXPR_ARG (_q40, 4);
15598 : 0 : tree _q55 = CALL_EXPR_ARG (_q40, 5);
15599 : 0 : {
15600 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53, _q54, _q55 };
15601 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_ADD);
15602 : 0 : if (res) return res;
15603 : : }
15604 : : }
15605 : : break;
15606 : 0 : case CFN_COND_LEN_AND:
15607 : 0 : if (call_expr_nargs (_q40) == 6)
15608 : : {
15609 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
15610 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
15611 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
15612 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
15613 : 0 : tree _q54 = CALL_EXPR_ARG (_q40, 4);
15614 : 0 : tree _q55 = CALL_EXPR_ARG (_q40, 5);
15615 : 0 : {
15616 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53, _q54, _q55 };
15617 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_AND);
15618 : 0 : if (res) return res;
15619 : : }
15620 : : }
15621 : : break;
15622 : 0 : case CFN_COND_LEN_DIV:
15623 : 0 : if (call_expr_nargs (_q40) == 6)
15624 : : {
15625 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
15626 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
15627 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
15628 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
15629 : 0 : tree _q54 = CALL_EXPR_ARG (_q40, 4);
15630 : 0 : tree _q55 = CALL_EXPR_ARG (_q40, 5);
15631 : 0 : {
15632 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53, _q54, _q55 };
15633 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_DIV);
15634 : 0 : if (res) return res;
15635 : : }
15636 : : }
15637 : : break;
15638 : 0 : case CFN_COND_LEN_IOR:
15639 : 0 : if (call_expr_nargs (_q40) == 6)
15640 : : {
15641 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
15642 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
15643 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
15644 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
15645 : 0 : tree _q54 = CALL_EXPR_ARG (_q40, 4);
15646 : 0 : tree _q55 = CALL_EXPR_ARG (_q40, 5);
15647 : 0 : {
15648 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53, _q54, _q55 };
15649 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_IOR);
15650 : 0 : if (res) return res;
15651 : : }
15652 : : }
15653 : : break;
15654 : 0 : case CFN_COND_LEN_MAX:
15655 : 0 : if (call_expr_nargs (_q40) == 6)
15656 : : {
15657 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
15658 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
15659 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
15660 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
15661 : 0 : tree _q54 = CALL_EXPR_ARG (_q40, 4);
15662 : 0 : tree _q55 = CALL_EXPR_ARG (_q40, 5);
15663 : 0 : {
15664 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53, _q54, _q55 };
15665 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_MAX);
15666 : 0 : if (res) return res;
15667 : : }
15668 : : }
15669 : : break;
15670 : 0 : case CFN_COND_LEN_MIN:
15671 : 0 : if (call_expr_nargs (_q40) == 6)
15672 : : {
15673 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
15674 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
15675 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
15676 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
15677 : 0 : tree _q54 = CALL_EXPR_ARG (_q40, 4);
15678 : 0 : tree _q55 = CALL_EXPR_ARG (_q40, 5);
15679 : 0 : {
15680 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53, _q54, _q55 };
15681 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_MIN);
15682 : 0 : if (res) return res;
15683 : : }
15684 : : }
15685 : : break;
15686 : 0 : case CFN_COND_LEN_MOD:
15687 : 0 : if (call_expr_nargs (_q40) == 6)
15688 : : {
15689 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
15690 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
15691 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
15692 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
15693 : 0 : tree _q54 = CALL_EXPR_ARG (_q40, 4);
15694 : 0 : tree _q55 = CALL_EXPR_ARG (_q40, 5);
15695 : 0 : {
15696 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53, _q54, _q55 };
15697 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_MOD);
15698 : 0 : if (res) return res;
15699 : : }
15700 : : }
15701 : : break;
15702 : 0 : case CFN_COND_LEN_MUL:
15703 : 0 : if (call_expr_nargs (_q40) == 6)
15704 : : {
15705 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
15706 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
15707 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
15708 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
15709 : 0 : tree _q54 = CALL_EXPR_ARG (_q40, 4);
15710 : 0 : tree _q55 = CALL_EXPR_ARG (_q40, 5);
15711 : 0 : {
15712 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53, _q54, _q55 };
15713 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_MUL);
15714 : 0 : if (res) return res;
15715 : : }
15716 : : }
15717 : : break;
15718 : 0 : case CFN_COND_LEN_SHL:
15719 : 0 : if (call_expr_nargs (_q40) == 6)
15720 : : {
15721 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
15722 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
15723 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
15724 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
15725 : 0 : tree _q54 = CALL_EXPR_ARG (_q40, 4);
15726 : 0 : tree _q55 = CALL_EXPR_ARG (_q40, 5);
15727 : 0 : {
15728 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53, _q54, _q55 };
15729 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_SHL);
15730 : 0 : if (res) return res;
15731 : : }
15732 : : }
15733 : : break;
15734 : 0 : case CFN_COND_LEN_SHR:
15735 : 0 : if (call_expr_nargs (_q40) == 6)
15736 : : {
15737 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
15738 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
15739 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
15740 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
15741 : 0 : tree _q54 = CALL_EXPR_ARG (_q40, 4);
15742 : 0 : tree _q55 = CALL_EXPR_ARG (_q40, 5);
15743 : 0 : {
15744 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53, _q54, _q55 };
15745 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_SHR);
15746 : 0 : if (res) return res;
15747 : : }
15748 : : }
15749 : : break;
15750 : 0 : case CFN_COND_LEN_SUB:
15751 : 0 : if (call_expr_nargs (_q40) == 6)
15752 : : {
15753 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
15754 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
15755 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
15756 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
15757 : 0 : tree _q54 = CALL_EXPR_ARG (_q40, 4);
15758 : 0 : tree _q55 = CALL_EXPR_ARG (_q40, 5);
15759 : 0 : {
15760 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53, _q54, _q55 };
15761 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_SUB);
15762 : 0 : if (res) return res;
15763 : : }
15764 : : }
15765 : : break;
15766 : 0 : case CFN_COND_LEN_XOR:
15767 : 0 : if (call_expr_nargs (_q40) == 6)
15768 : : {
15769 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
15770 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
15771 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
15772 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
15773 : 0 : tree _q54 = CALL_EXPR_ARG (_q40, 4);
15774 : 0 : tree _q55 = CALL_EXPR_ARG (_q40, 5);
15775 : 0 : {
15776 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53, _q54, _q55 };
15777 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_XOR);
15778 : 0 : if (res) return res;
15779 : : }
15780 : : }
15781 : : break;
15782 : 0 : case CFN_COND_LEN_FMAX:
15783 : 0 : if (call_expr_nargs (_q40) == 6)
15784 : : {
15785 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
15786 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
15787 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
15788 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
15789 : 0 : tree _q54 = CALL_EXPR_ARG (_q40, 4);
15790 : 0 : tree _q55 = CALL_EXPR_ARG (_q40, 5);
15791 : 0 : {
15792 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53, _q54, _q55 };
15793 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_FMAX);
15794 : 0 : if (res) return res;
15795 : : }
15796 : : }
15797 : : break;
15798 : 0 : case CFN_COND_LEN_FMIN:
15799 : 0 : if (call_expr_nargs (_q40) == 6)
15800 : : {
15801 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
15802 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
15803 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
15804 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
15805 : 0 : tree _q54 = CALL_EXPR_ARG (_q40, 4);
15806 : 0 : tree _q55 = CALL_EXPR_ARG (_q40, 5);
15807 : 0 : {
15808 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53, _q54, _q55 };
15809 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_FMIN);
15810 : 0 : if (res) return res;
15811 : : }
15812 : : }
15813 : : break;
15814 : 0 : case CFN_COND_LEN_RDIV:
15815 : 0 : if (call_expr_nargs (_q40) == 6)
15816 : : {
15817 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
15818 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
15819 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
15820 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
15821 : 0 : tree _q54 = CALL_EXPR_ARG (_q40, 4);
15822 : 0 : tree _q55 = CALL_EXPR_ARG (_q40, 5);
15823 : 0 : {
15824 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53, _q54, _q55 };
15825 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_RDIV);
15826 : 0 : if (res) return res;
15827 : : }
15828 : : }
15829 : : break;
15830 : 0 : case CFN_COND_LEN_COPYSIGN:
15831 : 0 : if (call_expr_nargs (_q40) == 6)
15832 : : {
15833 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
15834 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
15835 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
15836 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
15837 : 0 : tree _q54 = CALL_EXPR_ARG (_q40, 4);
15838 : 0 : tree _q55 = CALL_EXPR_ARG (_q40, 5);
15839 : 0 : {
15840 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53, _q54, _q55 };
15841 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_COPYSIGN);
15842 : 0 : if (res) return res;
15843 : : }
15844 : : }
15845 : : break;
15846 : : default:;
15847 : : }
15848 : : break;
15849 : : default:;
15850 : : }
15851 : : break;
15852 : : }
15853 : 12 : case CALL_EXPR:
15854 : 12 : switch (get_call_combined_fn (_p2))
15855 : : {
15856 : 0 : case CFN_COND_LEN_ADD:
15857 : 0 : if (call_expr_nargs (_p2) == 6)
15858 : : {
15859 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
15860 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
15861 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
15862 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
15863 : 0 : tree _q44 = CALL_EXPR_ARG (_p2, 4);
15864 : 0 : tree _q45 = CALL_EXPR_ARG (_p2, 5);
15865 : 0 : {
15866 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43, _q44, _q45 };
15867 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_ADD);
15868 : 0 : if (res) return res;
15869 : : }
15870 : : }
15871 : : break;
15872 : 0 : case CFN_COND_LEN_AND:
15873 : 0 : if (call_expr_nargs (_p2) == 6)
15874 : : {
15875 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
15876 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
15877 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
15878 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
15879 : 0 : tree _q44 = CALL_EXPR_ARG (_p2, 4);
15880 : 0 : tree _q45 = CALL_EXPR_ARG (_p2, 5);
15881 : 0 : {
15882 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43, _q44, _q45 };
15883 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_AND);
15884 : 0 : if (res) return res;
15885 : : }
15886 : : }
15887 : : break;
15888 : 0 : case CFN_COND_LEN_DIV:
15889 : 0 : if (call_expr_nargs (_p2) == 6)
15890 : : {
15891 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
15892 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
15893 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
15894 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
15895 : 0 : tree _q44 = CALL_EXPR_ARG (_p2, 4);
15896 : 0 : tree _q45 = CALL_EXPR_ARG (_p2, 5);
15897 : 0 : {
15898 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43, _q44, _q45 };
15899 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_DIV);
15900 : 0 : if (res) return res;
15901 : : }
15902 : : }
15903 : : break;
15904 : 0 : case CFN_COND_LEN_IOR:
15905 : 0 : if (call_expr_nargs (_p2) == 6)
15906 : : {
15907 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
15908 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
15909 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
15910 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
15911 : 0 : tree _q44 = CALL_EXPR_ARG (_p2, 4);
15912 : 0 : tree _q45 = CALL_EXPR_ARG (_p2, 5);
15913 : 0 : {
15914 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43, _q44, _q45 };
15915 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_IOR);
15916 : 0 : if (res) return res;
15917 : : }
15918 : : }
15919 : : break;
15920 : 0 : case CFN_COND_LEN_MAX:
15921 : 0 : if (call_expr_nargs (_p2) == 6)
15922 : : {
15923 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
15924 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
15925 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
15926 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
15927 : 0 : tree _q44 = CALL_EXPR_ARG (_p2, 4);
15928 : 0 : tree _q45 = CALL_EXPR_ARG (_p2, 5);
15929 : 0 : {
15930 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43, _q44, _q45 };
15931 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_MAX);
15932 : 0 : if (res) return res;
15933 : : }
15934 : : }
15935 : : break;
15936 : 0 : case CFN_COND_LEN_MIN:
15937 : 0 : if (call_expr_nargs (_p2) == 6)
15938 : : {
15939 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
15940 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
15941 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
15942 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
15943 : 0 : tree _q44 = CALL_EXPR_ARG (_p2, 4);
15944 : 0 : tree _q45 = CALL_EXPR_ARG (_p2, 5);
15945 : 0 : {
15946 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43, _q44, _q45 };
15947 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_MIN);
15948 : 0 : if (res) return res;
15949 : : }
15950 : : }
15951 : : break;
15952 : 0 : case CFN_COND_LEN_MOD:
15953 : 0 : if (call_expr_nargs (_p2) == 6)
15954 : : {
15955 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
15956 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
15957 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
15958 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
15959 : 0 : tree _q44 = CALL_EXPR_ARG (_p2, 4);
15960 : 0 : tree _q45 = CALL_EXPR_ARG (_p2, 5);
15961 : 0 : {
15962 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43, _q44, _q45 };
15963 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_MOD);
15964 : 0 : if (res) return res;
15965 : : }
15966 : : }
15967 : : break;
15968 : 0 : case CFN_COND_LEN_MUL:
15969 : 0 : if (call_expr_nargs (_p2) == 6)
15970 : : {
15971 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
15972 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
15973 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
15974 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
15975 : 0 : tree _q44 = CALL_EXPR_ARG (_p2, 4);
15976 : 0 : tree _q45 = CALL_EXPR_ARG (_p2, 5);
15977 : 0 : {
15978 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43, _q44, _q45 };
15979 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_MUL);
15980 : 0 : if (res) return res;
15981 : : }
15982 : : }
15983 : : break;
15984 : 0 : case CFN_COND_LEN_SHL:
15985 : 0 : if (call_expr_nargs (_p2) == 6)
15986 : : {
15987 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
15988 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
15989 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
15990 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
15991 : 0 : tree _q44 = CALL_EXPR_ARG (_p2, 4);
15992 : 0 : tree _q45 = CALL_EXPR_ARG (_p2, 5);
15993 : 0 : {
15994 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43, _q44, _q45 };
15995 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_SHL);
15996 : 0 : if (res) return res;
15997 : : }
15998 : : }
15999 : : break;
16000 : 0 : case CFN_COND_LEN_SHR:
16001 : 0 : if (call_expr_nargs (_p2) == 6)
16002 : : {
16003 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
16004 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
16005 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
16006 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
16007 : 0 : tree _q44 = CALL_EXPR_ARG (_p2, 4);
16008 : 0 : tree _q45 = CALL_EXPR_ARG (_p2, 5);
16009 : 0 : {
16010 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43, _q44, _q45 };
16011 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_SHR);
16012 : 0 : if (res) return res;
16013 : : }
16014 : : }
16015 : : break;
16016 : 0 : case CFN_COND_LEN_SUB:
16017 : 0 : if (call_expr_nargs (_p2) == 6)
16018 : : {
16019 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
16020 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
16021 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
16022 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
16023 : 0 : tree _q44 = CALL_EXPR_ARG (_p2, 4);
16024 : 0 : tree _q45 = CALL_EXPR_ARG (_p2, 5);
16025 : 0 : {
16026 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43, _q44, _q45 };
16027 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_SUB);
16028 : 0 : if (res) return res;
16029 : : }
16030 : : }
16031 : : break;
16032 : 0 : case CFN_COND_LEN_XOR:
16033 : 0 : if (call_expr_nargs (_p2) == 6)
16034 : : {
16035 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
16036 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
16037 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
16038 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
16039 : 0 : tree _q44 = CALL_EXPR_ARG (_p2, 4);
16040 : 0 : tree _q45 = CALL_EXPR_ARG (_p2, 5);
16041 : 0 : {
16042 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43, _q44, _q45 };
16043 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_XOR);
16044 : 0 : if (res) return res;
16045 : : }
16046 : : }
16047 : : break;
16048 : 0 : case CFN_COND_LEN_FMAX:
16049 : 0 : if (call_expr_nargs (_p2) == 6)
16050 : : {
16051 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
16052 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
16053 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
16054 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
16055 : 0 : tree _q44 = CALL_EXPR_ARG (_p2, 4);
16056 : 0 : tree _q45 = CALL_EXPR_ARG (_p2, 5);
16057 : 0 : {
16058 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43, _q44, _q45 };
16059 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_FMAX);
16060 : 0 : if (res) return res;
16061 : : }
16062 : : }
16063 : : break;
16064 : 0 : case CFN_COND_LEN_FMIN:
16065 : 0 : if (call_expr_nargs (_p2) == 6)
16066 : : {
16067 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
16068 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
16069 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
16070 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
16071 : 0 : tree _q44 = CALL_EXPR_ARG (_p2, 4);
16072 : 0 : tree _q45 = CALL_EXPR_ARG (_p2, 5);
16073 : 0 : {
16074 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43, _q44, _q45 };
16075 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_FMIN);
16076 : 0 : if (res) return res;
16077 : : }
16078 : : }
16079 : : break;
16080 : 0 : case CFN_COND_LEN_RDIV:
16081 : 0 : if (call_expr_nargs (_p2) == 6)
16082 : : {
16083 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
16084 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
16085 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
16086 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
16087 : 0 : tree _q44 = CALL_EXPR_ARG (_p2, 4);
16088 : 0 : tree _q45 = CALL_EXPR_ARG (_p2, 5);
16089 : 0 : {
16090 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43, _q44, _q45 };
16091 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_RDIV);
16092 : 0 : if (res) return res;
16093 : : }
16094 : : }
16095 : : break;
16096 : 0 : case CFN_COND_LEN_COPYSIGN:
16097 : 0 : if (call_expr_nargs (_p2) == 6)
16098 : : {
16099 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
16100 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
16101 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
16102 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
16103 : 0 : tree _q44 = CALL_EXPR_ARG (_p2, 4);
16104 : 0 : tree _q45 = CALL_EXPR_ARG (_p2, 5);
16105 : 0 : {
16106 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43, _q44, _q45 };
16107 : 0 : tree res = generic_simplify_530 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_COPYSIGN);
16108 : 0 : if (res) return res;
16109 : : }
16110 : : }
16111 : : break;
16112 : : default:;
16113 : : }
16114 : : break;
16115 : 308662 : default:;
16116 : : }
16117 : 308662 : switch (TREE_CODE (_p1))
16118 : : {
16119 : 0 : case VIEW_CONVERT_EXPR:
16120 : 0 : {
16121 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
16122 : 0 : switch (TREE_CODE (_q30))
16123 : : {
16124 : 0 : case CALL_EXPR:
16125 : 0 : switch (get_call_combined_fn (_q30))
16126 : : {
16127 : 0 : case CFN_COND_LEN_FMA:
16128 : 0 : if (call_expr_nargs (_q30) == 7)
16129 : : {
16130 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
16131 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
16132 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
16133 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
16134 : 0 : tree _q44 = CALL_EXPR_ARG (_q30, 4);
16135 : 0 : tree _q45 = CALL_EXPR_ARG (_q30, 5);
16136 : 0 : tree _q46 = CALL_EXPR_ARG (_q30, 6);
16137 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
16138 : : {
16139 : 0 : {
16140 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _q44, _q45, _q46, _p2 };
16141 : 0 : tree res = generic_simplify_531 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_FMA);
16142 : 0 : if (res) return res;
16143 : : }
16144 : : }
16145 : : }
16146 : : break;
16147 : 0 : case CFN_COND_LEN_FMS:
16148 : 0 : if (call_expr_nargs (_q30) == 7)
16149 : : {
16150 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
16151 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
16152 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
16153 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
16154 : 0 : tree _q44 = CALL_EXPR_ARG (_q30, 4);
16155 : 0 : tree _q45 = CALL_EXPR_ARG (_q30, 5);
16156 : 0 : tree _q46 = CALL_EXPR_ARG (_q30, 6);
16157 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
16158 : : {
16159 : 0 : {
16160 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _q44, _q45, _q46, _p2 };
16161 : 0 : tree res = generic_simplify_531 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_FMS);
16162 : 0 : if (res) return res;
16163 : : }
16164 : : }
16165 : : }
16166 : : break;
16167 : 0 : case CFN_COND_LEN_FNMA:
16168 : 0 : if (call_expr_nargs (_q30) == 7)
16169 : : {
16170 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
16171 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
16172 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
16173 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
16174 : 0 : tree _q44 = CALL_EXPR_ARG (_q30, 4);
16175 : 0 : tree _q45 = CALL_EXPR_ARG (_q30, 5);
16176 : 0 : tree _q46 = CALL_EXPR_ARG (_q30, 6);
16177 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
16178 : : {
16179 : 0 : {
16180 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _q44, _q45, _q46, _p2 };
16181 : 0 : tree res = generic_simplify_531 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_FNMA);
16182 : 0 : if (res) return res;
16183 : : }
16184 : : }
16185 : : }
16186 : : break;
16187 : 0 : case CFN_COND_LEN_FNMS:
16188 : 0 : if (call_expr_nargs (_q30) == 7)
16189 : : {
16190 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
16191 : 0 : tree _q41 = CALL_EXPR_ARG (_q30, 1);
16192 : 0 : tree _q42 = CALL_EXPR_ARG (_q30, 2);
16193 : 0 : tree _q43 = CALL_EXPR_ARG (_q30, 3);
16194 : 0 : tree _q44 = CALL_EXPR_ARG (_q30, 4);
16195 : 0 : tree _q45 = CALL_EXPR_ARG (_q30, 5);
16196 : 0 : tree _q46 = CALL_EXPR_ARG (_q30, 6);
16197 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
16198 : : {
16199 : 0 : {
16200 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q41, _q42, _q43, _q44, _q45, _q46, _p2 };
16201 : 0 : tree res = generic_simplify_531 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_FNMS);
16202 : 0 : if (res) return res;
16203 : : }
16204 : : }
16205 : : }
16206 : : break;
16207 : : default:;
16208 : : }
16209 : : break;
16210 : : default:;
16211 : : }
16212 : : break;
16213 : : }
16214 : 12 : case CALL_EXPR:
16215 : 12 : switch (get_call_combined_fn (_p1))
16216 : : {
16217 : 0 : case CFN_COND_LEN_FMA:
16218 : 0 : if (call_expr_nargs (_p1) == 7)
16219 : : {
16220 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
16221 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
16222 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
16223 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
16224 : 0 : tree _q34 = CALL_EXPR_ARG (_p1, 4);
16225 : 0 : tree _q35 = CALL_EXPR_ARG (_p1, 5);
16226 : 0 : tree _q36 = CALL_EXPR_ARG (_p1, 6);
16227 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
16228 : : {
16229 : 0 : {
16230 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _q34, _q35, _q36, _p2 };
16231 : 0 : tree res = generic_simplify_531 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_FMA);
16232 : 0 : if (res) return res;
16233 : : }
16234 : : }
16235 : : }
16236 : : break;
16237 : 0 : case CFN_COND_LEN_FMS:
16238 : 0 : if (call_expr_nargs (_p1) == 7)
16239 : : {
16240 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
16241 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
16242 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
16243 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
16244 : 0 : tree _q34 = CALL_EXPR_ARG (_p1, 4);
16245 : 0 : tree _q35 = CALL_EXPR_ARG (_p1, 5);
16246 : 0 : tree _q36 = CALL_EXPR_ARG (_p1, 6);
16247 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
16248 : : {
16249 : 0 : {
16250 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _q34, _q35, _q36, _p2 };
16251 : 0 : tree res = generic_simplify_531 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_FMS);
16252 : 0 : if (res) return res;
16253 : : }
16254 : : }
16255 : : }
16256 : : break;
16257 : 0 : case CFN_COND_LEN_FNMA:
16258 : 0 : if (call_expr_nargs (_p1) == 7)
16259 : : {
16260 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
16261 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
16262 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
16263 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
16264 : 0 : tree _q34 = CALL_EXPR_ARG (_p1, 4);
16265 : 0 : tree _q35 = CALL_EXPR_ARG (_p1, 5);
16266 : 0 : tree _q36 = CALL_EXPR_ARG (_p1, 6);
16267 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
16268 : : {
16269 : 0 : {
16270 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _q34, _q35, _q36, _p2 };
16271 : 0 : tree res = generic_simplify_531 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_FNMA);
16272 : 0 : if (res) return res;
16273 : : }
16274 : : }
16275 : : }
16276 : : break;
16277 : 0 : case CFN_COND_LEN_FNMS:
16278 : 0 : if (call_expr_nargs (_p1) == 7)
16279 : : {
16280 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
16281 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
16282 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
16283 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
16284 : 0 : tree _q34 = CALL_EXPR_ARG (_p1, 4);
16285 : 0 : tree _q35 = CALL_EXPR_ARG (_p1, 5);
16286 : 0 : tree _q36 = CALL_EXPR_ARG (_p1, 6);
16287 : 0 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
16288 : : {
16289 : 0 : {
16290 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q31, _q32, _q33, _q34, _q35, _q36, _p2 };
16291 : 0 : tree res = generic_simplify_531 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_FNMS);
16292 : 0 : if (res) return res;
16293 : : }
16294 : : }
16295 : : }
16296 : : break;
16297 : : default:;
16298 : : }
16299 : : break;
16300 : 308662 : default:;
16301 : : }
16302 : 308662 : switch (TREE_CODE (_p2))
16303 : : {
16304 : 0 : case VIEW_CONVERT_EXPR:
16305 : 0 : {
16306 : 0 : tree _q40 = TREE_OPERAND (_p2, 0);
16307 : 0 : switch (TREE_CODE (_q40))
16308 : : {
16309 : 0 : case CALL_EXPR:
16310 : 0 : switch (get_call_combined_fn (_q40))
16311 : : {
16312 : 0 : case CFN_COND_LEN_FMA:
16313 : 0 : if (call_expr_nargs (_q40) == 7)
16314 : : {
16315 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
16316 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
16317 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
16318 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
16319 : 0 : tree _q54 = CALL_EXPR_ARG (_q40, 4);
16320 : 0 : tree _q55 = CALL_EXPR_ARG (_q40, 5);
16321 : 0 : tree _q56 = CALL_EXPR_ARG (_q40, 6);
16322 : 0 : {
16323 : 0 : tree captures[9] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53, _q54, _q55, _q56 };
16324 : 0 : tree res = generic_simplify_532 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_FMA);
16325 : 0 : if (res) return res;
16326 : : }
16327 : : }
16328 : : break;
16329 : 0 : case CFN_COND_LEN_FMS:
16330 : 0 : if (call_expr_nargs (_q40) == 7)
16331 : : {
16332 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
16333 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
16334 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
16335 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
16336 : 0 : tree _q54 = CALL_EXPR_ARG (_q40, 4);
16337 : 0 : tree _q55 = CALL_EXPR_ARG (_q40, 5);
16338 : 0 : tree _q56 = CALL_EXPR_ARG (_q40, 6);
16339 : 0 : {
16340 : 0 : tree captures[9] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53, _q54, _q55, _q56 };
16341 : 0 : tree res = generic_simplify_532 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_FMS);
16342 : 0 : if (res) return res;
16343 : : }
16344 : : }
16345 : : break;
16346 : 0 : case CFN_COND_LEN_FNMA:
16347 : 0 : if (call_expr_nargs (_q40) == 7)
16348 : : {
16349 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
16350 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
16351 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
16352 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
16353 : 0 : tree _q54 = CALL_EXPR_ARG (_q40, 4);
16354 : 0 : tree _q55 = CALL_EXPR_ARG (_q40, 5);
16355 : 0 : tree _q56 = CALL_EXPR_ARG (_q40, 6);
16356 : 0 : {
16357 : 0 : tree captures[9] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53, _q54, _q55, _q56 };
16358 : 0 : tree res = generic_simplify_532 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_FNMA);
16359 : 0 : if (res) return res;
16360 : : }
16361 : : }
16362 : : break;
16363 : 0 : case CFN_COND_LEN_FNMS:
16364 : 0 : if (call_expr_nargs (_q40) == 7)
16365 : : {
16366 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
16367 : 0 : tree _q51 = CALL_EXPR_ARG (_q40, 1);
16368 : 0 : tree _q52 = CALL_EXPR_ARG (_q40, 2);
16369 : 0 : tree _q53 = CALL_EXPR_ARG (_q40, 3);
16370 : 0 : tree _q54 = CALL_EXPR_ARG (_q40, 4);
16371 : 0 : tree _q55 = CALL_EXPR_ARG (_q40, 5);
16372 : 0 : tree _q56 = CALL_EXPR_ARG (_q40, 6);
16373 : 0 : {
16374 : 0 : tree captures[9] ATTRIBUTE_UNUSED = { _p0, _p1, _q50, _q51, _q52, _q53, _q54, _q55, _q56 };
16375 : 0 : tree res = generic_simplify_532 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_FNMS);
16376 : 0 : if (res) return res;
16377 : : }
16378 : : }
16379 : : break;
16380 : : default:;
16381 : : }
16382 : : break;
16383 : : default:;
16384 : : }
16385 : : break;
16386 : : }
16387 : 12 : case CALL_EXPR:
16388 : 12 : switch (get_call_combined_fn (_p2))
16389 : : {
16390 : 0 : case CFN_COND_LEN_FMA:
16391 : 0 : if (call_expr_nargs (_p2) == 7)
16392 : : {
16393 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
16394 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
16395 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
16396 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
16397 : 0 : tree _q44 = CALL_EXPR_ARG (_p2, 4);
16398 : 0 : tree _q45 = CALL_EXPR_ARG (_p2, 5);
16399 : 0 : tree _q46 = CALL_EXPR_ARG (_p2, 6);
16400 : 0 : {
16401 : 0 : tree captures[9] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43, _q44, _q45, _q46 };
16402 : 0 : tree res = generic_simplify_532 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_FMA);
16403 : 0 : if (res) return res;
16404 : : }
16405 : : }
16406 : : break;
16407 : 0 : case CFN_COND_LEN_FMS:
16408 : 0 : if (call_expr_nargs (_p2) == 7)
16409 : : {
16410 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
16411 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
16412 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
16413 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
16414 : 0 : tree _q44 = CALL_EXPR_ARG (_p2, 4);
16415 : 0 : tree _q45 = CALL_EXPR_ARG (_p2, 5);
16416 : 0 : tree _q46 = CALL_EXPR_ARG (_p2, 6);
16417 : 0 : {
16418 : 0 : tree captures[9] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43, _q44, _q45, _q46 };
16419 : 0 : tree res = generic_simplify_532 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_FMS);
16420 : 0 : if (res) return res;
16421 : : }
16422 : : }
16423 : : break;
16424 : 0 : case CFN_COND_LEN_FNMA:
16425 : 0 : if (call_expr_nargs (_p2) == 7)
16426 : : {
16427 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
16428 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
16429 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
16430 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
16431 : 0 : tree _q44 = CALL_EXPR_ARG (_p2, 4);
16432 : 0 : tree _q45 = CALL_EXPR_ARG (_p2, 5);
16433 : 0 : tree _q46 = CALL_EXPR_ARG (_p2, 6);
16434 : 0 : {
16435 : 0 : tree captures[9] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43, _q44, _q45, _q46 };
16436 : 0 : tree res = generic_simplify_532 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_FNMA);
16437 : 0 : if (res) return res;
16438 : : }
16439 : : }
16440 : : break;
16441 : 0 : case CFN_COND_LEN_FNMS:
16442 : 0 : if (call_expr_nargs (_p2) == 7)
16443 : : {
16444 : 0 : tree _q40 = CALL_EXPR_ARG (_p2, 0);
16445 : 0 : tree _q41 = CALL_EXPR_ARG (_p2, 1);
16446 : 0 : tree _q42 = CALL_EXPR_ARG (_p2, 2);
16447 : 0 : tree _q43 = CALL_EXPR_ARG (_p2, 3);
16448 : 0 : tree _q44 = CALL_EXPR_ARG (_p2, 4);
16449 : 0 : tree _q45 = CALL_EXPR_ARG (_p2, 5);
16450 : 0 : tree _q46 = CALL_EXPR_ARG (_p2, 6);
16451 : 0 : {
16452 : 0 : tree captures[9] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q41, _q42, _q43, _q44, _q45, _q46 };
16453 : 0 : tree res = generic_simplify_532 (loc, type, _p0, _p1, _p2, captures, CFN_COND_LEN_FNMS);
16454 : 0 : if (res) return res;
16455 : : }
16456 : : }
16457 : : break;
16458 : : default:;
16459 : : }
16460 : : break;
16461 : 308662 : default:;
16462 : : }
16463 : 308662 : switch (TREE_CODE (_p1))
16464 : : {
16465 : 12 : case CALL_EXPR:
16466 : 12 : switch (get_call_combined_fn (_p1))
16467 : : {
16468 : 0 : case CFN_COND_ADD:
16469 : 0 : if (call_expr_nargs (_p1) == 4)
16470 : : {
16471 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
16472 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
16473 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
16474 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
16475 : 0 : if ((_p2 == _q33 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q33, 0) && types_match (_p2, _q33)))
16476 : : {
16477 : 0 : {
16478 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32, _q33 };
16479 : 0 : tree res = generic_simplify_533 (loc, type, _p0, _p1, _p2, captures, CFN_COND_ADD);
16480 : 0 : if (res) return res;
16481 : : }
16482 : : }
16483 : : }
16484 : : break;
16485 : 0 : case CFN_COND_AND:
16486 : 0 : if (call_expr_nargs (_p1) == 4)
16487 : : {
16488 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
16489 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
16490 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
16491 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
16492 : 0 : if ((_p2 == _q33 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q33, 0) && types_match (_p2, _q33)))
16493 : : {
16494 : 0 : {
16495 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32, _q33 };
16496 : 0 : tree res = generic_simplify_533 (loc, type, _p0, _p1, _p2, captures, CFN_COND_AND);
16497 : 0 : if (res) return res;
16498 : : }
16499 : : }
16500 : : }
16501 : : break;
16502 : 0 : case CFN_COND_DIV:
16503 : 0 : if (call_expr_nargs (_p1) == 4)
16504 : : {
16505 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
16506 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
16507 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
16508 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
16509 : 0 : if ((_p2 == _q33 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q33, 0) && types_match (_p2, _q33)))
16510 : : {
16511 : 0 : {
16512 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32, _q33 };
16513 : 0 : tree res = generic_simplify_533 (loc, type, _p0, _p1, _p2, captures, CFN_COND_DIV);
16514 : 0 : if (res) return res;
16515 : : }
16516 : : }
16517 : : }
16518 : : break;
16519 : 0 : case CFN_COND_FMA:
16520 : 0 : if (call_expr_nargs (_p1) == 5)
16521 : : {
16522 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
16523 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
16524 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
16525 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
16526 : 0 : tree _q34 = CALL_EXPR_ARG (_p1, 4);
16527 : 0 : if ((_p2 == _q34 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q34, 0) && types_match (_p2, _q34)))
16528 : : {
16529 : 0 : {
16530 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32, _q33, _q34 };
16531 : 0 : tree res = generic_simplify_534 (loc, type, _p0, _p1, _p2, captures, CFN_COND_FMA);
16532 : 0 : if (res) return res;
16533 : : }
16534 : : }
16535 : : }
16536 : : break;
16537 : 0 : case CFN_COND_FMS:
16538 : 0 : if (call_expr_nargs (_p1) == 5)
16539 : : {
16540 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
16541 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
16542 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
16543 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
16544 : 0 : tree _q34 = CALL_EXPR_ARG (_p1, 4);
16545 : 0 : if ((_p2 == _q34 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q34, 0) && types_match (_p2, _q34)))
16546 : : {
16547 : 0 : {
16548 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32, _q33, _q34 };
16549 : 0 : tree res = generic_simplify_534 (loc, type, _p0, _p1, _p2, captures, CFN_COND_FMS);
16550 : 0 : if (res) return res;
16551 : : }
16552 : : }
16553 : : }
16554 : : break;
16555 : 0 : case CFN_COND_IOR:
16556 : 0 : if (call_expr_nargs (_p1) == 4)
16557 : : {
16558 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
16559 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
16560 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
16561 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
16562 : 0 : if ((_p2 == _q33 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q33, 0) && types_match (_p2, _q33)))
16563 : : {
16564 : 0 : {
16565 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32, _q33 };
16566 : 0 : tree res = generic_simplify_533 (loc, type, _p0, _p1, _p2, captures, CFN_COND_IOR);
16567 : 0 : if (res) return res;
16568 : : }
16569 : : }
16570 : : }
16571 : : break;
16572 : 0 : case CFN_COND_MAX:
16573 : 0 : if (call_expr_nargs (_p1) == 4)
16574 : : {
16575 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
16576 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
16577 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
16578 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
16579 : 0 : if ((_p2 == _q33 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q33, 0) && types_match (_p2, _q33)))
16580 : : {
16581 : 0 : {
16582 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32, _q33 };
16583 : 0 : tree res = generic_simplify_533 (loc, type, _p0, _p1, _p2, captures, CFN_COND_MAX);
16584 : 0 : if (res) return res;
16585 : : }
16586 : : }
16587 : : }
16588 : : break;
16589 : 0 : case CFN_COND_MIN:
16590 : 0 : if (call_expr_nargs (_p1) == 4)
16591 : : {
16592 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
16593 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
16594 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
16595 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
16596 : 0 : if ((_p2 == _q33 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q33, 0) && types_match (_p2, _q33)))
16597 : : {
16598 : 0 : {
16599 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32, _q33 };
16600 : 0 : tree res = generic_simplify_533 (loc, type, _p0, _p1, _p2, captures, CFN_COND_MIN);
16601 : 0 : if (res) return res;
16602 : : }
16603 : : }
16604 : : }
16605 : : break;
16606 : 0 : case CFN_COND_MOD:
16607 : 0 : if (call_expr_nargs (_p1) == 4)
16608 : : {
16609 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
16610 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
16611 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
16612 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
16613 : 0 : if ((_p2 == _q33 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q33, 0) && types_match (_p2, _q33)))
16614 : : {
16615 : 0 : {
16616 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32, _q33 };
16617 : 0 : tree res = generic_simplify_533 (loc, type, _p0, _p1, _p2, captures, CFN_COND_MOD);
16618 : 0 : if (res) return res;
16619 : : }
16620 : : }
16621 : : }
16622 : : break;
16623 : 0 : case CFN_COND_MUL:
16624 : 0 : if (call_expr_nargs (_p1) == 4)
16625 : : {
16626 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
16627 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
16628 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
16629 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
16630 : 0 : if ((_p2 == _q33 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q33, 0) && types_match (_p2, _q33)))
16631 : : {
16632 : 0 : {
16633 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32, _q33 };
16634 : 0 : tree res = generic_simplify_533 (loc, type, _p0, _p1, _p2, captures, CFN_COND_MUL);
16635 : 0 : if (res) return res;
16636 : : }
16637 : : }
16638 : : }
16639 : : break;
16640 : 0 : case CFN_COND_SHL:
16641 : 0 : if (call_expr_nargs (_p1) == 4)
16642 : : {
16643 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
16644 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
16645 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
16646 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
16647 : 0 : if ((_p2 == _q33 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q33, 0) && types_match (_p2, _q33)))
16648 : : {
16649 : 0 : {
16650 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32, _q33 };
16651 : 0 : tree res = generic_simplify_533 (loc, type, _p0, _p1, _p2, captures, CFN_COND_SHL);
16652 : 0 : if (res) return res;
16653 : : }
16654 : : }
16655 : : }
16656 : : break;
16657 : 0 : case CFN_COND_SHR:
16658 : 0 : if (call_expr_nargs (_p1) == 4)
16659 : : {
16660 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
16661 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
16662 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
16663 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
16664 : 0 : if ((_p2 == _q33 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q33, 0) && types_match (_p2, _q33)))
16665 : : {
16666 : 0 : {
16667 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32, _q33 };
16668 : 0 : tree res = generic_simplify_533 (loc, type, _p0, _p1, _p2, captures, CFN_COND_SHR);
16669 : 0 : if (res) return res;
16670 : : }
16671 : : }
16672 : : }
16673 : : break;
16674 : 0 : case CFN_COND_SUB:
16675 : 0 : if (call_expr_nargs (_p1) == 4)
16676 : : {
16677 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
16678 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
16679 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
16680 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
16681 : 0 : if ((_p2 == _q33 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q33, 0) && types_match (_p2, _q33)))
16682 : : {
16683 : 0 : {
16684 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32, _q33 };
16685 : 0 : tree res = generic_simplify_533 (loc, type, _p0, _p1, _p2, captures, CFN_COND_SUB);
16686 : 0 : if (res) return res;
16687 : : }
16688 : : }
16689 : : }
16690 : : break;
16691 : 0 : case CFN_COND_XOR:
16692 : 0 : if (call_expr_nargs (_p1) == 4)
16693 : : {
16694 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
16695 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
16696 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
16697 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
16698 : 0 : if ((_p2 == _q33 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q33, 0) && types_match (_p2, _q33)))
16699 : : {
16700 : 0 : {
16701 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32, _q33 };
16702 : 0 : tree res = generic_simplify_533 (loc, type, _p0, _p1, _p2, captures, CFN_COND_XOR);
16703 : 0 : if (res) return res;
16704 : : }
16705 : : }
16706 : : }
16707 : : break;
16708 : 0 : case CFN_COND_COPYSIGN:
16709 : 0 : if (call_expr_nargs (_p1) == 4)
16710 : : {
16711 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
16712 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
16713 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
16714 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
16715 : 0 : if ((_p2 == _q33 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q33, 0) && types_match (_p2, _q33)))
16716 : : {
16717 : 0 : {
16718 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32, _q33 };
16719 : 0 : tree res = generic_simplify_533 (loc, type, _p0, _p1, _p2, captures, CFN_COND_COPYSIGN);
16720 : 0 : if (res) return res;
16721 : : }
16722 : : }
16723 : : }
16724 : : break;
16725 : 0 : case CFN_COND_FMAX:
16726 : 0 : if (call_expr_nargs (_p1) == 4)
16727 : : {
16728 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
16729 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
16730 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
16731 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
16732 : 0 : if ((_p2 == _q33 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q33, 0) && types_match (_p2, _q33)))
16733 : : {
16734 : 0 : {
16735 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32, _q33 };
16736 : 0 : tree res = generic_simplify_533 (loc, type, _p0, _p1, _p2, captures, CFN_COND_FMAX);
16737 : 0 : if (res) return res;
16738 : : }
16739 : : }
16740 : : }
16741 : : break;
16742 : 0 : case CFN_COND_FMIN:
16743 : 0 : if (call_expr_nargs (_p1) == 4)
16744 : : {
16745 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
16746 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
16747 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
16748 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
16749 : 0 : if ((_p2 == _q33 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q33, 0) && types_match (_p2, _q33)))
16750 : : {
16751 : 0 : {
16752 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32, _q33 };
16753 : 0 : tree res = generic_simplify_533 (loc, type, _p0, _p1, _p2, captures, CFN_COND_FMIN);
16754 : 0 : if (res) return res;
16755 : : }
16756 : : }
16757 : : }
16758 : : break;
16759 : 0 : case CFN_COND_FNMA:
16760 : 0 : if (call_expr_nargs (_p1) == 5)
16761 : : {
16762 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
16763 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
16764 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
16765 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
16766 : 0 : tree _q34 = CALL_EXPR_ARG (_p1, 4);
16767 : 0 : if ((_p2 == _q34 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q34, 0) && types_match (_p2, _q34)))
16768 : : {
16769 : 0 : {
16770 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32, _q33, _q34 };
16771 : 0 : tree res = generic_simplify_534 (loc, type, _p0, _p1, _p2, captures, CFN_COND_FNMA);
16772 : 0 : if (res) return res;
16773 : : }
16774 : : }
16775 : : }
16776 : : break;
16777 : 0 : case CFN_COND_FNMS:
16778 : 0 : if (call_expr_nargs (_p1) == 5)
16779 : : {
16780 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
16781 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
16782 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
16783 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
16784 : 0 : tree _q34 = CALL_EXPR_ARG (_p1, 4);
16785 : 0 : if ((_p2 == _q34 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q34, 0) && types_match (_p2, _q34)))
16786 : : {
16787 : 0 : {
16788 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32, _q33, _q34 };
16789 : 0 : tree res = generic_simplify_534 (loc, type, _p0, _p1, _p2, captures, CFN_COND_FNMS);
16790 : 0 : if (res) return res;
16791 : : }
16792 : : }
16793 : : }
16794 : : break;
16795 : 0 : case CFN_COND_RDIV:
16796 : 0 : if (call_expr_nargs (_p1) == 4)
16797 : : {
16798 : 0 : tree _q30 = CALL_EXPR_ARG (_p1, 0);
16799 : 0 : tree _q31 = CALL_EXPR_ARG (_p1, 1);
16800 : 0 : tree _q32 = CALL_EXPR_ARG (_p1, 2);
16801 : 0 : tree _q33 = CALL_EXPR_ARG (_p1, 3);
16802 : 0 : if ((_p2 == _q33 && ! TREE_SIDE_EFFECTS (_p2)) || (operand_equal_p (_p2, _q33, 0) && types_match (_p2, _q33)))
16803 : : {
16804 : 0 : {
16805 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32, _q33 };
16806 : 0 : tree res = generic_simplify_533 (loc, type, _p0, _p1, _p2, captures, CFN_COND_RDIV);
16807 : 0 : if (res) return res;
16808 : : }
16809 : : }
16810 : : }
16811 : : break;
16812 : : default:;
16813 : : }
16814 : : break;
16815 : : default:;
16816 : : }
16817 : : return NULL_TREE;
16818 : : }
16819 : : #pragma GCC diagnostic pop
|