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 : 96060169 : tree_bit_not_with_nop (tree t, tree *res_ops)
11 : : {
12 : 96060169 : const tree type = TREE_TYPE (t);
13 : 96060169 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
14 : 96060169 : if (TREE_SIDE_EFFECTS (t)) return false;
15 : 96060169 : switch (TREE_CODE (t))
16 : : {
17 : 102607 : case BIT_NOT_EXPR:
18 : 102607 : {
19 : 102607 : tree _p0 = TREE_OPERAND (t, 0);
20 : 102607 : {
21 : 102607 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
22 : 102607 : {
23 : 102607 : res_ops[0] = captures[0];
24 : 102607 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 2, __FILE__, __LINE__, false);
25 : : return true;
26 : : }
27 : : }
28 : 16395656 : break;
29 : : }
30 : 16395656 : CASE_CONVERT:
31 : 16395656 : {
32 : 16395656 : tree _p0 = TREE_OPERAND (t, 0);
33 : 16395656 : switch (TREE_CODE (_p0))
34 : : {
35 : 1132 : case BIT_NOT_EXPR:
36 : 1132 : {
37 : 1132 : tree _q20 = TREE_OPERAND (_p0, 0);
38 : 1132 : {
39 : 1132 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
40 : 1132 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
41 : : )
42 : : {
43 : 601 : {
44 : 601 : res_ops[0] = captures[0];
45 : 601 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 3, __FILE__, __LINE__, false);
46 : 601 : return true;
47 : : }
48 : : }
49 : : }
50 : : break;
51 : : }
52 : : default:;
53 : : }
54 : : break;
55 : : }
56 : : default:;
57 : : }
58 : : return false;
59 : : }
60 : :
61 : : bool
62 : 79271328 : tree_with_known_nonzero_bits_1 (tree t)
63 : : {
64 : 79271328 : const tree type = TREE_TYPE (t);
65 : 79271328 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
66 : 79271328 : if (TREE_SIDE_EFFECTS (t)) return false;
67 : 79271328 : switch (TREE_CODE (t))
68 : : {
69 : 20681193 : case INTEGER_CST:
70 : 20681193 : {
71 : 20681193 : {
72 : 20681193 : tree captures[1] ATTRIBUTE_UNUSED = { t };
73 : 20681193 : {
74 : 20681193 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 37, __FILE__, __LINE__, false);
75 : 20681193 : return true;
76 : : }
77 : : }
78 : 27517945 : break;
79 : : }
80 : 27517945 : case SSA_NAME:
81 : 27517945 : {
82 : 27517945 : {
83 : 27517945 : tree captures[1] ATTRIBUTE_UNUSED = { t };
84 : 27517945 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
85 : : )
86 : : {
87 : 19516517 : {
88 : 19516517 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 38, __FILE__, __LINE__, false);
89 : 19516517 : return true;
90 : : }
91 : : }
92 : : }
93 : : break;
94 : : }
95 : : default:;
96 : : }
97 : : return false;
98 : : }
99 : :
100 : : bool
101 : 0 : tree_usadd_overflow_mask (tree t, tree *res_ops)
102 : : {
103 : 0 : const tree type = TREE_TYPE (t);
104 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
105 : 0 : if (TREE_SIDE_EFFECTS (t)) return false;
106 : 0 : switch (TREE_CODE (t))
107 : : {
108 : 0 : case NEGATE_EXPR:
109 : 0 : {
110 : 0 : tree _p0 = TREE_OPERAND (t, 0);
111 : 0 : switch (TREE_CODE (_p0))
112 : : {
113 : 0 : CASE_CONVERT:
114 : 0 : {
115 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
116 : 0 : switch (TREE_CODE (_q20))
117 : : {
118 : 0 : case GT_EXPR:
119 : 0 : {
120 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
121 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
122 : 0 : switch (TREE_CODE (_q31))
123 : : {
124 : 0 : case PLUS_EXPR:
125 : 0 : {
126 : 0 : tree _q50 = TREE_OPERAND (_q31, 0);
127 : 0 : tree _q51 = TREE_OPERAND (_q31, 1);
128 : 0 : if ((_q50 == _q30 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q30, 0) && types_match (_q50, _q30)))
129 : : {
130 : 0 : {
131 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q51 };
132 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
133 : : )
134 : : {
135 : 0 : if (types_match (type, captures[0], captures[1])
136 : : )
137 : : {
138 : 0 : {
139 : 0 : res_ops[0] = captures[0];
140 : 0 : res_ops[1] = captures[1];
141 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 43, __FILE__, __LINE__, false);
142 : 0 : return true;
143 : : }
144 : : }
145 : : }
146 : : }
147 : : }
148 : 0 : if ((_q51 == _q30 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q30, 0) && types_match (_q51, _q30)))
149 : : {
150 : 0 : {
151 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q50 };
152 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
153 : : )
154 : : {
155 : 0 : if (types_match (type, captures[0], captures[1])
156 : : )
157 : : {
158 : 0 : {
159 : 0 : res_ops[0] = captures[0];
160 : 0 : res_ops[1] = captures[1];
161 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 43, __FILE__, __LINE__, false);
162 : 0 : return true;
163 : : }
164 : : }
165 : : }
166 : : }
167 : : }
168 : : break;
169 : : }
170 : : default:;
171 : : }
172 : : break;
173 : : }
174 : 0 : case LT_EXPR:
175 : 0 : {
176 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
177 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
178 : 0 : switch (TREE_CODE (_q30))
179 : : {
180 : 0 : case PLUS_EXPR:
181 : 0 : {
182 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
183 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
184 : 0 : if ((_q31 == _q40 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _q40, 0) && types_match (_q31, _q40)))
185 : : {
186 : 0 : {
187 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q41 };
188 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
189 : : )
190 : : {
191 : 0 : if (types_match (type, captures[0], captures[1])
192 : : )
193 : : {
194 : 0 : {
195 : 0 : res_ops[0] = captures[0];
196 : 0 : res_ops[1] = captures[1];
197 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 44, __FILE__, __LINE__, false);
198 : 0 : return true;
199 : : }
200 : : }
201 : : }
202 : : }
203 : : }
204 : 0 : if ((_q31 == _q41 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _q41, 0) && types_match (_q31, _q41)))
205 : : {
206 : 0 : {
207 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q41, _q40 };
208 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
209 : : )
210 : : {
211 : 0 : if (types_match (type, captures[0], captures[1])
212 : : )
213 : : {
214 : 0 : {
215 : 0 : res_ops[0] = captures[0];
216 : 0 : res_ops[1] = captures[1];
217 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 44, __FILE__, __LINE__, false);
218 : 0 : return true;
219 : : }
220 : : }
221 : : }
222 : : }
223 : : }
224 : : break;
225 : : }
226 : : default:;
227 : : }
228 : : break;
229 : : }
230 : : default:;
231 : : }
232 : : break;
233 : : }
234 : : default:;
235 : : }
236 : : break;
237 : : }
238 : : default:;
239 : : }
240 : : return false;
241 : : }
242 : :
243 : : bool
244 : 0 : tree_compositional_complex (tree t)
245 : : {
246 : 0 : const tree type = TREE_TYPE (t);
247 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
248 : 0 : if (TREE_SIDE_EFFECTS (t)) return false;
249 : 0 : switch (TREE_CODE (t))
250 : : {
251 : 0 : CASE_CONVERT:
252 : 0 : {
253 : 0 : tree _p0 = TREE_OPERAND (t, 0);
254 : 0 : switch (TREE_CODE (_p0))
255 : : {
256 : 0 : case COMPLEX_EXPR:
257 : 0 : {
258 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
259 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
260 : 0 : {
261 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
262 : 0 : {
263 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 88, __FILE__, __LINE__, false);
264 : 0 : return true;
265 : : }
266 : : }
267 : : break;
268 : : }
269 : : default:;
270 : : }
271 : : break;
272 : : }
273 : 0 : case COMPLEX_EXPR:
274 : 0 : {
275 : 0 : tree _p0 = TREE_OPERAND (t, 0);
276 : 0 : tree _p1 = TREE_OPERAND (t, 1);
277 : 0 : {
278 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
279 : 0 : {
280 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 88, __FILE__, __LINE__, false);
281 : 0 : return true;
282 : : }
283 : : }
284 : : break;
285 : : }
286 : : default:;
287 : : }
288 : : return false;
289 : : }
290 : :
291 : : bool
292 : 0 : tree_float_value_p (tree t)
293 : : {
294 : 0 : const tree type = TREE_TYPE (t);
295 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
296 : 0 : if (TREE_SIDE_EFFECTS (t)) return false;
297 : 0 : {
298 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { t };
299 : 0 : if (TYPE_MAIN_VARIANT (TREE_TYPE (captures[0])) == float_type_node
300 : : )
301 : : {
302 : 0 : {
303 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 90, __FILE__, __LINE__, false);
304 : 0 : return true;
305 : : }
306 : : }
307 : : }
308 : : return false;
309 : : }
310 : :
311 : : bool
312 : 0 : tree_cond_expr_convert_p (tree t, tree *res_ops)
313 : : {
314 : 0 : const tree type = TREE_TYPE (t);
315 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
316 : 0 : if (TREE_SIDE_EFFECTS (t)) return false;
317 : 0 : switch (TREE_CODE (t))
318 : : {
319 : 0 : case COND_EXPR:
320 : 0 : {
321 : 0 : tree _p0 = TREE_OPERAND (t, 0);
322 : 0 : tree _p1 = TREE_OPERAND (t, 1);
323 : 0 : tree _p2 = TREE_OPERAND (t, 2);
324 : 0 : switch (TREE_CODE (_p0))
325 : : {
326 : 0 : case LT_EXPR:
327 : 0 : case LE_EXPR:
328 : 0 : case EQ_EXPR:
329 : 0 : case NE_EXPR:
330 : 0 : case GE_EXPR:
331 : 0 : case GT_EXPR:
332 : 0 : {
333 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
334 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
335 : 0 : switch (TREE_CODE (_p1))
336 : : {
337 : 0 : CASE_CONVERT:
338 : 0 : {
339 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
340 : 0 : switch (TREE_CODE (_p2))
341 : : {
342 : 0 : CASE_CONVERT:
343 : 0 : {
344 : 0 : tree _q70 = TREE_OPERAND (_p2, 0);
345 : 0 : {
346 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _q20, _q50, _q70, _p0, _q21, _p1, _p2 };
347 : 0 : if ((INTEGRAL_TYPE_P (type)
348 : 0 : || (!flag_trapping_math && SCALAR_FLOAT_TYPE_P (type)))
349 : 0 : && ((INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
350 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[2])))
351 : 0 : || (SCALAR_FLOAT_TYPE_P (TREE_TYPE (captures[1]))
352 : 0 : && types_match (TREE_TYPE (captures[1]), TREE_TYPE (captures[2]))))
353 : 0 : && !operand_equal_p (TYPE_SIZE (type), TYPE_SIZE (TREE_TYPE (captures[0])))
354 : 0 : && operand_equal_p (TYPE_SIZE (TREE_TYPE (captures[0])),
355 : 0 : TYPE_SIZE (TREE_TYPE (captures[1])))
356 : 0 : && operand_equal_p (TYPE_SIZE (TREE_TYPE (captures[0])),
357 : 0 : TYPE_SIZE (TREE_TYPE (captures[2])))
358 : 0 : && (known_gt (tree_to_poly_uint64 (TYPE_SIZE (TREE_TYPE (captures[0]))),
359 : : tree_to_poly_uint64 (TYPE_SIZE (type)))
360 : 0 : || (TYPE_UNSIGNED (TREE_TYPE (captures[1]))
361 : 0 : == TYPE_UNSIGNED (TREE_TYPE (captures[2]))))
362 : : && single_use (captures[5])
363 : 0 : && single_use (captures[6])
364 : : )
365 : : {
366 : 0 : {
367 : 0 : res_ops[0] = captures[0];
368 : 0 : res_ops[1] = captures[1];
369 : 0 : res_ops[2] = captures[2];
370 : 0 : res_ops[3] = captures[3];
371 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 97, __FILE__, __LINE__, false);
372 : 0 : return true;
373 : : }
374 : : }
375 : : }
376 : 0 : break;
377 : : }
378 : 0 : case REAL_CST:
379 : 0 : {
380 : 0 : {
381 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q50, _p2, _p0, _q21, _p1 };
382 : 0 : if (!flag_trapping_math
383 : 0 : && SCALAR_FLOAT_TYPE_P (type)
384 : 0 : && SCALAR_FLOAT_TYPE_P (TREE_TYPE (captures[1]))
385 : 0 : && !operand_equal_p (TYPE_SIZE (type), TYPE_SIZE (TREE_TYPE (captures[0])))
386 : 0 : && operand_equal_p (TYPE_SIZE (TREE_TYPE (captures[0])),
387 : 0 : TYPE_SIZE (TREE_TYPE (captures[1])))
388 : : && single_use (captures[5])
389 : 0 : && (flag_unsafe_math_optimizations
390 : 0 : || exact_real_truncate (TYPE_MODE (TREE_TYPE (captures[1])),
391 : 0 : &TREE_REAL_CST (captures[2])))
392 : : )
393 : : {
394 : 0 : {
395 : 0 : res_ops[0] = captures[0];
396 : 0 : res_ops[1] = captures[1];
397 : 0 : res_ops[2] = captures[2];
398 : 0 : res_ops[3] = captures[3];
399 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 98, __FILE__, __LINE__, false);
400 : 0 : return true;
401 : : }
402 : : }
403 : : }
404 : 0 : break;
405 : : }
406 : : default:;
407 : : }
408 : : break;
409 : : }
410 : 0 : case FLOAT_EXPR:
411 : 0 : {
412 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
413 : 0 : switch (TREE_CODE (_p2))
414 : : {
415 : 0 : case FLOAT_EXPR:
416 : 0 : {
417 : 0 : tree _q70 = TREE_OPERAND (_p2, 0);
418 : 0 : {
419 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _q20, _q50, _q70, _p0, _q21, _p1, _p2 };
420 : 0 : if (SCALAR_FLOAT_TYPE_P (type) && !flag_trapping_math
421 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
422 : 0 : && types_match (TREE_TYPE (captures[1]), TREE_TYPE (captures[2]))
423 : 0 : && !operand_equal_p (TYPE_SIZE (type), TYPE_SIZE (TREE_TYPE (captures[0])))
424 : 0 : && operand_equal_p (TYPE_SIZE (TREE_TYPE (captures[0])),
425 : 0 : TYPE_SIZE (TREE_TYPE (captures[1])))
426 : : && single_use (captures[5])
427 : 0 : && single_use (captures[6])
428 : : )
429 : : {
430 : 0 : {
431 : 0 : res_ops[0] = captures[0];
432 : 0 : res_ops[1] = captures[1];
433 : 0 : res_ops[2] = captures[2];
434 : 0 : res_ops[3] = captures[3];
435 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 99, __FILE__, __LINE__, false);
436 : 0 : return true;
437 : : }
438 : : }
439 : : }
440 : 0 : break;
441 : : }
442 : : default:;
443 : : }
444 : : break;
445 : : }
446 : 0 : case FIX_TRUNC_EXPR:
447 : 0 : {
448 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
449 : 0 : switch (TREE_CODE (_p2))
450 : : {
451 : 0 : case FIX_TRUNC_EXPR:
452 : 0 : {
453 : 0 : tree _q70 = TREE_OPERAND (_p2, 0);
454 : 0 : {
455 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _q20, _q50, _q70, _p0, _q21, _p1, _p2 };
456 : 0 : if (INTEGRAL_TYPE_P (type) && !flag_trapping_math
457 : 0 : && SCALAR_FLOAT_TYPE_P (TREE_TYPE (captures[1]))
458 : 0 : && types_match (TREE_TYPE (captures[1]), TREE_TYPE (captures[2]))
459 : 0 : && !operand_equal_p (TYPE_SIZE (type),
460 : 0 : TYPE_SIZE (TREE_TYPE (captures[0])))
461 : 0 : && operand_equal_p (TYPE_SIZE (TREE_TYPE (captures[0])),
462 : 0 : TYPE_SIZE (TREE_TYPE (captures[1])))
463 : : && single_use (captures[5])
464 : 0 : && single_use (captures[6])
465 : : )
466 : : {
467 : 0 : {
468 : 0 : res_ops[0] = captures[0];
469 : 0 : res_ops[1] = captures[1];
470 : 0 : res_ops[2] = captures[2];
471 : 0 : res_ops[3] = captures[3];
472 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 100, __FILE__, __LINE__, false);
473 : 0 : return true;
474 : : }
475 : : }
476 : : }
477 : 0 : break;
478 : : }
479 : : default:;
480 : : }
481 : : break;
482 : : }
483 : 0 : case REAL_CST:
484 : 0 : {
485 : 0 : switch (TREE_CODE (_p2))
486 : : {
487 : 0 : CASE_CONVERT:
488 : 0 : {
489 : 0 : tree _q60 = TREE_OPERAND (_p2, 0);
490 : 0 : {
491 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _p1, _q60, _p0, _q21, _p2 };
492 : 0 : if (!flag_trapping_math
493 : 0 : && SCALAR_FLOAT_TYPE_P (type)
494 : 0 : && SCALAR_FLOAT_TYPE_P (TREE_TYPE (captures[2]))
495 : 0 : && !operand_equal_p (TYPE_SIZE (type),
496 : 0 : TYPE_SIZE (TREE_TYPE (captures[0])))
497 : 0 : && operand_equal_p (TYPE_SIZE (TREE_TYPE (captures[0])),
498 : 0 : TYPE_SIZE (TREE_TYPE (captures[2])))
499 : : && single_use (captures[5])
500 : 0 : && (flag_unsafe_math_optimizations
501 : 0 : || exact_real_truncate (TYPE_MODE (TREE_TYPE (captures[2])),
502 : 0 : &TREE_REAL_CST (captures[1])))
503 : : )
504 : : {
505 : 0 : {
506 : 0 : res_ops[0] = captures[0];
507 : 0 : res_ops[1] = captures[1];
508 : 0 : res_ops[2] = captures[2];
509 : 0 : res_ops[3] = captures[3];
510 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 101, __FILE__, __LINE__, false);
511 : 0 : return true;
512 : : }
513 : : }
514 : : }
515 : 0 : break;
516 : : }
517 : : default:;
518 : : }
519 : : break;
520 : : }
521 : : default:;
522 : : }
523 : : break;
524 : : }
525 : : default:;
526 : : }
527 : : break;
528 : : }
529 : : default:;
530 : : }
531 : : return false;
532 : : }
533 : :
534 : : tree
535 : 7 : generic_simplify_5 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
536 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
537 : : const enum tree_code ARG_UNUSED (op))
538 : : {
539 : 7 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
540 : 7 : if (INTEGRAL_TYPE_P (type)
541 : 7 : && TYPE_OVERFLOW_WRAPS (type)
542 : 14 : && !TYPE_SATURATING (type)
543 : : )
544 : : {
545 : 7 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail233;
546 : 7 : {
547 : 7 : tree res_op0;
548 : 7 : {
549 : 7 : tree _o1[2], _r1;
550 : 7 : _o1[0] = captures[1];
551 : 7 : _o1[1] = captures[4];
552 : 7 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
553 : 7 : res_op0 = _r1;
554 : : }
555 : 7 : tree res_op1;
556 : 7 : res_op1 = captures[2];
557 : 7 : tree _r;
558 : 7 : _r = fold_build2_loc (loc, LSHIFT_EXPR, type, res_op0, res_op1);
559 : 7 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 109, __FILE__, __LINE__, true);
560 : 7 : return _r;
561 : : }
562 : 0 : next_after_fail233:;
563 : : }
564 : : return NULL_TREE;
565 : : }
566 : :
567 : : tree
568 : 45 : generic_simplify_7 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
569 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
570 : : {
571 : 45 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
572 : 45 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail235;
573 : 45 : {
574 : 45 : if (! tree_invariant_p (captures[2])) goto next_after_fail235;
575 : 45 : tree res_op0;
576 : 45 : {
577 : 45 : tree _o1[2], _r1;
578 : 45 : _o1[0] = captures[0];
579 : 45 : _o1[1] = unshare_expr (captures[2]);
580 : 45 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
581 : 45 : res_op0 = _r1;
582 : : }
583 : 45 : tree res_op1;
584 : 45 : {
585 : 45 : tree _o1[1], _r1;
586 : 45 : _o1[0] = captures[2];
587 : 45 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
588 : 45 : res_op1 = _r1;
589 : : }
590 : 45 : tree _r;
591 : 45 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
592 : 45 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 111, __FILE__, __LINE__, true);
593 : : return _r;
594 : : }
595 : : next_after_fail235:;
596 : : return NULL_TREE;
597 : : }
598 : :
599 : : tree
600 : 2 : generic_simplify_11 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
601 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
602 : : {
603 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
604 : 2 : if (!TYPE_OVERFLOW_SANITIZED (type) && !TYPE_OVERFLOW_TRAPS (type)
605 : 2 : && !TYPE_SATURATING (type) && !TYPE_OVERFLOW_SANITIZED (TREE_TYPE (captures[0]))
606 : 2 : && !TYPE_OVERFLOW_TRAPS (TREE_TYPE (captures[0]))
607 : 4 : && !TYPE_SATURATING (TREE_TYPE (captures[0]))
608 : : )
609 : : {
610 : 2 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail239;
611 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail239;
612 : 2 : {
613 : 2 : tree res_op0;
614 : 2 : {
615 : 2 : tree _o1[1], _r1;
616 : 2 : {
617 : 2 : tree _o2[2], _r2;
618 : 2 : _o2[0] = captures[1];
619 : 2 : _o2[1] = captures[2];
620 : 2 : _r2 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
621 : 2 : _o1[0] = _r2;
622 : : }
623 : 2 : if (TREE_TYPE (_o1[0]) != type)
624 : : {
625 : 1 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
626 : : }
627 : : else
628 : : _r1 = _o1[0];
629 : 2 : res_op0 = _r1;
630 : : }
631 : 2 : tree _r;
632 : 2 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
633 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 115, __FILE__, __LINE__, true);
634 : 2 : return _r;
635 : : }
636 : : next_after_fail239:;
637 : : }
638 : : return NULL_TREE;
639 : : }
640 : :
641 : : tree
642 : 0 : generic_simplify_14 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
643 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
644 : : const enum tree_code ARG_UNUSED (op),
645 : : const enum tree_code ARG_UNUSED (cmp),
646 : : const enum tree_code ARG_UNUSED (icmp))
647 : : {
648 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
649 : 0 : if (INTEGRAL_TYPE_P (type)
650 : 0 : && invert_tree_comparison (cmp, HONOR_NANS (captures[1])) == icmp
651 : 0 : && canonicalize_math_after_vectorization_p ()
652 : : )
653 : : {
654 : : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail242;
655 : : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail242;
656 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail242;
657 : : {
658 : : tree res_op0;
659 : : res_op0 = captures[0];
660 : : tree res_op1;
661 : : res_op1 = captures[3];
662 : : tree res_op2;
663 : : res_op2 = captures[5];
664 : : tree _r;
665 : : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
666 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 118, __FILE__, __LINE__, true);
667 : : return _r;
668 : : }
669 : 0 : next_after_fail242:;
670 : : }
671 : 0 : return NULL_TREE;
672 : : }
673 : :
674 : : tree
675 : 236932 : generic_simplify_17 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
676 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
677 : : const enum tree_code ARG_UNUSED (outer_op))
678 : : {
679 : 236932 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
680 : 236932 : if (!TYPE_SATURATING (type)
681 : : )
682 : : {
683 : 236932 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
684 : 473857 : && !FIXED_POINT_TYPE_P (type)
685 : : )
686 : : {
687 : 236925 : if (!ANY_INTEGRAL_TYPE_P (type) || TYPE_OVERFLOW_WRAPS (type)
688 : : )
689 : : {
690 : 223635 : if (!CONSTANT_CLASS_P (captures[1])
691 : : )
692 : : {
693 : 223635 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail251;
694 : 223635 : {
695 : 223635 : tree res_op0;
696 : 223635 : {
697 : 223635 : tree _o1[2], _r1;
698 : 223635 : {
699 : 223635 : tree _o2[1], _r2;
700 : 223635 : _o2[0] = captures[0];
701 : 223635 : if (TREE_TYPE (_o2[0]) != type)
702 : : {
703 : 3493 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o2[0]);
704 : : }
705 : : else
706 : : _r2 = _o2[0];
707 : 223635 : _o1[0] = _r2;
708 : : }
709 : 223635 : _o1[1] = captures[2];
710 : 223635 : _r1 = fold_build2_loc (loc, outer_op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
711 : 223635 : if (EXPR_P (_r1))
712 : 0 : goto next_after_fail251;
713 : 223635 : res_op0 = _r1;
714 : : }
715 : 223635 : tree res_op1;
716 : 223635 : {
717 : 223635 : tree _o1[1], _r1;
718 : 223635 : _o1[0] = captures[1];
719 : 223635 : if (TREE_TYPE (_o1[0]) != type)
720 : : {
721 : 3537 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
722 : : }
723 : : else
724 : : _r1 = _o1[0];
725 : 223635 : res_op1 = _r1;
726 : : }
727 : 223635 : tree _r;
728 : 223635 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
729 : 223635 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 127, __FILE__, __LINE__, true);
730 : 223635 : return _r;
731 : : }
732 : : next_after_fail251:;
733 : : }
734 : : }
735 : : else
736 : : {
737 : 26580 : if (!ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
738 : 26580 : || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[1]))
739 : : )
740 : : {
741 : 2506 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail252;
742 : 2506 : {
743 : 2506 : tree res_op0;
744 : 2506 : {
745 : 2506 : tree _o1[2], _r1;
746 : 2506 : {
747 : 2506 : tree _o2[2], _r2;
748 : 2506 : _o2[0] = captures[0];
749 : 2506 : {
750 : 2506 : tree _o3[1], _r3;
751 : 2506 : _o3[0] = captures[2];
752 : 2506 : if (TREE_TYPE (_o3[0]) != TREE_TYPE (_o2[0]))
753 : : {
754 : 2506 : _r3 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, TREE_TYPE (_o2[0]), _o3[0]);
755 : : }
756 : : else
757 : : _r3 = _o3[0];
758 : 2506 : _o2[1] = _r3;
759 : : }
760 : 2506 : _r2 = fold_build2_loc (loc, outer_op, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
761 : 2506 : if (EXPR_P (_r2))
762 : 0 : goto next_after_fail252;
763 : 2506 : _o1[0] = _r2;
764 : : }
765 : 2506 : _o1[1] = captures[1];
766 : 2506 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
767 : 2506 : res_op0 = _r1;
768 : : }
769 : 2506 : tree _r;
770 : 2506 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
771 : 2506 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 128, __FILE__, __LINE__, true);
772 : 2506 : return _r;
773 : : }
774 : : next_after_fail252:;
775 : : }
776 : : else
777 : : {
778 : 10784 : if (types_match (type, captures[1]) && !TYPE_OVERFLOW_SANITIZED (type)
779 : : )
780 : : {
781 : 10756 : {
782 : 10756 : tree cst = const_binop (outer_op, type, captures[0], captures[2]);
783 : 10756 : if (cst && !TREE_OVERFLOW (cst)
784 : : )
785 : : {
786 : 10749 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail253;
787 : 10749 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail253;
788 : 10749 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail253;
789 : 10749 : {
790 : 10749 : tree res_op0;
791 : 10749 : res_op0 = cst;
792 : 10749 : tree res_op1;
793 : 10749 : res_op1 = captures[1];
794 : 10749 : tree _r;
795 : 10749 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
796 : 10749 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 129, __FILE__, __LINE__, true);
797 : 10749 : return _r;
798 : : }
799 : : next_after_fail253:;
800 : : }
801 : : }
802 : : }
803 : : }
804 : : }
805 : : }
806 : : }
807 : : return NULL_TREE;
808 : : }
809 : :
810 : : tree
811 : 369323 : generic_simplify_26 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
812 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
813 : : const enum tree_code ARG_UNUSED (plusminus))
814 : : {
815 : 369323 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
816 : 369323 : if (!TYPE_SATURATING (type)
817 : 369323 : && (!FLOAT_TYPE_P (type) || flag_associative_math)
818 : : )
819 : : {
820 : 368783 : if (!ALL_FRACT_MODE_P (TYPE_MODE (type))
821 : : )
822 : : {
823 : 55 : if ((!ANY_INTEGRAL_TYPE_P (type)
824 : 368742 : || TYPE_OVERFLOW_WRAPS (type)
825 : 85641 : || (INTEGRAL_TYPE_P (type)
826 : 85627 : && ((tree_expr_nonzero_p (captures[1])
827 : 58343 : && (plusminus == MINUS_EXPR
828 : 58203 : || expr_not_equal_to (captures[1],
829 : 426986 : wi::minus_one (TYPE_PRECISION (type)))))
830 : 27284 : || expr_not_equal_to (captures[2],
831 : : (plusminus == PLUS_EXPR
832 : 396067 : ? wi::max_value (TYPE_PRECISION (type), SIGNED)
833 : 1586 : : wi::min_value (TYPE_PRECISION (type), SIGNED))))))
834 : 368783 : && single_use (captures[0])
835 : : )
836 : : {
837 : 367415 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail263;
838 : 367415 : {
839 : 367415 : tree res_op0;
840 : 367415 : {
841 : 367415 : tree _o1[2], _r1;
842 : 367415 : _o1[0] = captures[2];
843 : 367415 : _o1[1] = build_one_cst (type);
844 : 367415 : _r1 = fold_build2_loc (loc, plusminus, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
845 : 367415 : res_op0 = _r1;
846 : : }
847 : 367415 : tree res_op1;
848 : 367415 : res_op1 = captures[1];
849 : 367415 : tree _r;
850 : 367415 : _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
851 : 367415 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 139, __FILE__, __LINE__, true);
852 : 367415 : return _r;
853 : : }
854 : 0 : next_after_fail263:;
855 : : }
856 : : }
857 : : }
858 : : return NULL_TREE;
859 : : }
860 : :
861 : : tree
862 : 0 : generic_simplify_30 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
863 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
864 : : {
865 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
866 : 0 : if (VECTOR_TYPE_P (type)
867 : 0 : && known_eq (TYPE_VECTOR_SUBPARTS (type),
868 : : TYPE_VECTOR_SUBPARTS (TREE_TYPE (captures[3])))
869 : 0 : && (TYPE_MODE (TREE_TYPE (type))
870 : 0 : == TYPE_MODE (TREE_TYPE (TREE_TYPE (captures[3]))))
871 : : )
872 : : {
873 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail267;
874 : 0 : {
875 : 0 : tree res_op0;
876 : 0 : res_op0 = captures[0];
877 : 0 : tree res_op1;
878 : 0 : {
879 : 0 : tree _o1[1], _r1;
880 : 0 : {
881 : 0 : tree _o2[3], _r2;
882 : 0 : _o2[0] = captures[2];
883 : 0 : {
884 : 0 : tree _o3[1], _r3;
885 : 0 : _o3[0] = captures[3];
886 : 0 : _r3 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o3[0]), _o3[0]);
887 : 0 : _o2[1] = _r3;
888 : : }
889 : 0 : _o2[2] = captures[4];
890 : 0 : _r2 = fold_build3_loc (loc, VEC_COND_EXPR, TREE_TYPE (_o2[1]), _o2[0], _o2[1], _o2[2]);
891 : 0 : _o1[0] = _r2;
892 : : }
893 : 0 : if (TREE_TYPE (_o1[0]) != type)
894 : : {
895 : 0 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
896 : : }
897 : : else
898 : : _r1 = _o1[0];
899 : 0 : res_op1 = _r1;
900 : : }
901 : 0 : tree _r;
902 : 0 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
903 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 143, __FILE__, __LINE__, true);
904 : 0 : return _r;
905 : : }
906 : 0 : next_after_fail267:;
907 : : }
908 : : return NULL_TREE;
909 : : }
910 : :
911 : : tree
912 : 126 : generic_simplify_34 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
913 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
914 : : const combined_fn ARG_UNUSED (POPCOUNT))
915 : : {
916 : 126 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
917 : 252 : if (INTEGRAL_TYPE_P (type)
918 : 630 : && (wi::bit_and (widest_int::from (tree_nonzero_bits (captures[1]), UNSIGNED),
919 : 504 : widest_int::from (tree_nonzero_bits (captures[3]), UNSIGNED))
920 : 378 : == 0)
921 : : )
922 : : {
923 : 1 : {
924 : 1 : tree utype = TREE_TYPE (captures[1]);
925 : 1 : if (TYPE_PRECISION (utype) < TYPE_PRECISION (TREE_TYPE (captures[3])))
926 : 0 : utype = TREE_TYPE (captures[3]);
927 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail272;
928 : 1 : {
929 : 1 : tree res_op0;
930 : 1 : {
931 : 1 : tree _o1[2], _r1;
932 : 1 : {
933 : 1 : tree _o2[1], _r2;
934 : 1 : _o2[0] = captures[1];
935 : 1 : if (TREE_TYPE (_o2[0]) != utype)
936 : : {
937 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
938 : : }
939 : : else
940 : : _r2 = _o2[0];
941 : 1 : _o1[0] = _r2;
942 : : }
943 : 1 : {
944 : 1 : tree _o2[1], _r2;
945 : 1 : _o2[0] = captures[3];
946 : 1 : if (TREE_TYPE (_o2[0]) != utype)
947 : : {
948 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
949 : : }
950 : : else
951 : : _r2 = _o2[0];
952 : 1 : _o1[1] = _r2;
953 : : }
954 : 1 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
955 : 1 : res_op0 = _r1;
956 : : }
957 : 1 : tree _r;
958 : 1 : _r = maybe_build_call_expr_loc (loc, POPCOUNT, type, 1, res_op0);
959 : 1 : if (!_r)
960 : 0 : goto next_after_fail272;
961 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 148, __FILE__, __LINE__, true);
962 : 1 : return _r;
963 : : }
964 : : next_after_fail272:;
965 : : }
966 : : }
967 : : return NULL_TREE;
968 : : }
969 : :
970 : : tree
971 : 78 : generic_simplify_39 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
972 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
973 : : {
974 : 78 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
975 : 78 : if (INTEGRAL_TYPE_P (type)
976 : 78 : || (VECTOR_INTEGER_TYPE_P (type)
977 : : && ((optimize_vectors_before_lowering_p ()
978 : 1 : && TREE_CODE (TYPE_SIZE (type)) == INTEGER_CST)
979 : 0 : || target_supports_op_p (type, TRUNC_MOD_EXPR,
980 : : optab_vector)))
981 : : )
982 : : {
983 : 78 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail277;
984 : 78 : {
985 : 78 : tree res_op0;
986 : 78 : {
987 : 78 : tree _o1[2], _r1;
988 : 78 : _o1[0] = captures[0];
989 : 78 : _o1[1] = captures[1];
990 : 78 : _r1 = fold_build2_loc (loc, TRUNC_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
991 : 78 : res_op0 = _r1;
992 : : }
993 : 78 : tree _r;
994 : 78 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
995 : 78 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 153, __FILE__, __LINE__, true);
996 : 78 : return _r;
997 : : }
998 : 0 : next_after_fail277:;
999 : : }
1000 : : return NULL_TREE;
1001 : : }
1002 : :
1003 : : tree
1004 : 2 : generic_simplify_43 (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 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1008 : 2 : if (!TYPE_OVERFLOW_SANITIZED (type) && !TYPE_OVERFLOW_TRAPS (type)
1009 : 2 : && !TYPE_SATURATING (type) && !TYPE_OVERFLOW_SANITIZED (TREE_TYPE (captures[2]))
1010 : 2 : && !TYPE_OVERFLOW_TRAPS (TREE_TYPE (captures[2]))
1011 : 4 : && !TYPE_SATURATING (TREE_TYPE (captures[2]))
1012 : : )
1013 : : {
1014 : 2 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail281;
1015 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail281;
1016 : 2 : {
1017 : 2 : tree res_op0;
1018 : 2 : {
1019 : 2 : tree _o1[1], _r1;
1020 : 2 : {
1021 : 2 : tree _o2[2], _r2;
1022 : 2 : _o2[0] = captures[0];
1023 : 2 : _o2[1] = captures[1];
1024 : 2 : _r2 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
1025 : 2 : _o1[0] = _r2;
1026 : : }
1027 : 2 : if (TREE_TYPE (_o1[0]) != type)
1028 : : {
1029 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1030 : : }
1031 : : else
1032 : : _r1 = _o1[0];
1033 : 2 : res_op0 = _r1;
1034 : : }
1035 : 2 : tree _r;
1036 : 2 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
1037 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 157, __FILE__, __LINE__, true);
1038 : 2 : return _r;
1039 : : }
1040 : : next_after_fail281:;
1041 : : }
1042 : : return NULL_TREE;
1043 : : }
1044 : :
1045 : : tree
1046 : 56439 : generic_simplify_49 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1047 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1048 : : {
1049 : 56439 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1050 : 56439 : if (!TYPE_SATURATING (type)
1051 : : )
1052 : : {
1053 : 56439 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
1054 : 112867 : && !FIXED_POINT_TYPE_P (type)
1055 : : )
1056 : : {
1057 : 56428 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail287;
1058 : 56428 : {
1059 : 56428 : tree res_op0;
1060 : 56428 : res_op0 = captures[1];
1061 : 56428 : tree _r;
1062 : 56428 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
1063 : 56428 : if (TREE_SIDE_EFFECTS (captures[0]))
1064 : 15 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1065 : 56428 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 162, __FILE__, __LINE__, true);
1066 : 56428 : return _r;
1067 : : }
1068 : 0 : next_after_fail287:;
1069 : : }
1070 : : }
1071 : : return NULL_TREE;
1072 : : }
1073 : :
1074 : : tree
1075 : 664 : generic_simplify_54 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1076 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1077 : : {
1078 : 664 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1079 : 664 : if (!TYPE_SATURATING (type)
1080 : : )
1081 : : {
1082 : 664 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
1083 : 1328 : && !FIXED_POINT_TYPE_P (type)
1084 : : )
1085 : : {
1086 : 664 : if (!ANY_INTEGRAL_TYPE_P (type) || TYPE_OVERFLOW_WRAPS (type)
1087 : : )
1088 : : {
1089 : 24 : if (!CONSTANT_CLASS_P (captures[2])
1090 : : )
1091 : : {
1092 : 24 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail294;
1093 : 24 : {
1094 : 24 : tree res_op0;
1095 : 24 : {
1096 : 24 : tree _o1[1], _r1;
1097 : 24 : _o1[0] = captures[2];
1098 : 24 : if (TREE_TYPE (_o1[0]) != type)
1099 : : {
1100 : 24 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
1101 : : }
1102 : : else
1103 : : _r1 = _o1[0];
1104 : 24 : res_op0 = _r1;
1105 : : }
1106 : 24 : tree res_op1;
1107 : 24 : {
1108 : 24 : tree _o1[2], _r1;
1109 : 24 : _o1[0] = captures[0];
1110 : 24 : {
1111 : 24 : tree _o2[1], _r2;
1112 : 24 : _o2[0] = captures[1];
1113 : 24 : if (TREE_TYPE (_o2[0]) != type)
1114 : : {
1115 : 24 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o2[0]);
1116 : : }
1117 : : else
1118 : : _r2 = _o2[0];
1119 : 24 : _o1[1] = _r2;
1120 : : }
1121 : 24 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1122 : 24 : if (EXPR_P (_r1))
1123 : 0 : goto next_after_fail294;
1124 : 24 : res_op1 = _r1;
1125 : : }
1126 : 24 : tree _r;
1127 : 24 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
1128 : 24 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 169, __FILE__, __LINE__, true);
1129 : 24 : return _r;
1130 : : }
1131 : : next_after_fail294:;
1132 : : }
1133 : : }
1134 : : else
1135 : : {
1136 : 1280 : if (!ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
1137 : 1280 : || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[2]))
1138 : : )
1139 : : {
1140 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail295;
1141 : 1 : {
1142 : 1 : tree res_op0;
1143 : 1 : {
1144 : 1 : tree _o1[2], _r1;
1145 : 1 : _o1[0] = captures[2];
1146 : 1 : {
1147 : 1 : tree _o2[2], _r2;
1148 : 1 : {
1149 : 1 : tree _o3[1], _r3;
1150 : 1 : _o3[0] = captures[0];
1151 : 1 : if (TREE_TYPE (_o3[0]) != TREE_TYPE (_o1[0]))
1152 : : {
1153 : 1 : _r3 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, TREE_TYPE (_o1[0]), _o3[0]);
1154 : : }
1155 : : else
1156 : : _r3 = _o3[0];
1157 : 1 : _o2[0] = _r3;
1158 : : }
1159 : 1 : _o2[1] = captures[1];
1160 : 1 : _r2 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
1161 : 1 : if (EXPR_P (_r2))
1162 : 0 : goto next_after_fail295;
1163 : 1 : _o1[1] = _r2;
1164 : : }
1165 : 1 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1166 : 1 : res_op0 = _r1;
1167 : : }
1168 : 1 : tree _r;
1169 : 1 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
1170 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 170, __FILE__, __LINE__, true);
1171 : 1 : return _r;
1172 : : }
1173 : : next_after_fail295:;
1174 : : }
1175 : : else
1176 : : {
1177 : 639 : if (types_match (type, captures[2]) && !TYPE_OVERFLOW_SANITIZED (type)
1178 : : )
1179 : : {
1180 : 630 : {
1181 : 630 : tree cst = const_binop (MINUS_EXPR, type, captures[0], captures[1]);
1182 : 630 : if (cst && !TREE_OVERFLOW (cst)
1183 : : )
1184 : : {
1185 : 630 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail296;
1186 : 630 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail296;
1187 : 630 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail296;
1188 : 630 : {
1189 : 630 : tree res_op0;
1190 : 630 : res_op0 = cst;
1191 : 630 : tree res_op1;
1192 : 630 : res_op1 = captures[2];
1193 : 630 : tree _r;
1194 : 630 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
1195 : 630 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 171, __FILE__, __LINE__, true);
1196 : 630 : return _r;
1197 : : }
1198 : : next_after_fail296:;
1199 : : }
1200 : : }
1201 : : }
1202 : : }
1203 : : }
1204 : : }
1205 : : }
1206 : : return NULL_TREE;
1207 : : }
1208 : :
1209 : : tree
1210 : 16 : generic_simplify_73 (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 : 16 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1214 : 32 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
1215 : 32 : && TYPE_PRECISION (TREE_TYPE (captures[0])) == 1
1216 : : )
1217 : : {
1218 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail317;
1219 : 0 : {
1220 : 0 : tree res_op0;
1221 : 0 : res_op0 = captures[0];
1222 : 0 : tree res_op1;
1223 : 0 : {
1224 : 0 : tree _o1[2], _r1;
1225 : 0 : _o1[0] = captures[1];
1226 : 0 : _o1[1] = build_one_cst (type);
1227 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1228 : 0 : res_op1 = _r1;
1229 : : }
1230 : 0 : tree _r;
1231 : 0 : _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
1232 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 191, __FILE__, __LINE__, true);
1233 : 0 : return _r;
1234 : : }
1235 : 0 : next_after_fail317:;
1236 : : }
1237 : : return NULL_TREE;
1238 : : }
1239 : :
1240 : : tree
1241 : 8 : generic_simplify_82 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1242 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1243 : : {
1244 : 8 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1245 : 16 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
1246 : 16 : && TYPE_PRECISION (TREE_TYPE (captures[0])) == 1
1247 : : )
1248 : : {
1249 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail330;
1250 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail330;
1251 : 0 : {
1252 : 0 : tree _r;
1253 : 0 : _r = captures[2];
1254 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 199, __FILE__, __LINE__, true);
1255 : 0 : return _r;
1256 : : }
1257 : : next_after_fail330:;
1258 : : }
1259 : : return NULL_TREE;
1260 : : }
1261 : :
1262 : : tree
1263 : 1 : generic_simplify_91 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1264 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1265 : : {
1266 : 1 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1267 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail339;
1268 : 1 : {
1269 : 1 : tree res_op0;
1270 : 1 : {
1271 : 1 : tree _o1[2], _r1;
1272 : 1 : _o1[0] = captures[1];
1273 : 1 : _o1[1] = captures[2];
1274 : 1 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1275 : 1 : res_op0 = _r1;
1276 : : }
1277 : 1 : tree _r;
1278 : 1 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
1279 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 205, __FILE__, __LINE__, true);
1280 : : return _r;
1281 : : }
1282 : 0 : next_after_fail339:;
1283 : 0 : return NULL_TREE;
1284 : : }
1285 : :
1286 : : tree
1287 : 0 : generic_simplify_100 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1288 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1289 : : const enum tree_code ARG_UNUSED (op))
1290 : : {
1291 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1292 : 0 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[3]))
1293 : 0 : && tree_nop_conversion_p (type, TREE_TYPE (captures[6]))
1294 : : )
1295 : : {
1296 : 0 : if (single_use (captures[4]) && single_use (captures[5])
1297 : : )
1298 : : {
1299 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail350;
1300 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail350;
1301 : 0 : {
1302 : 0 : tree res_op0;
1303 : 0 : res_op0 = captures[0];
1304 : 0 : tree res_op1;
1305 : 0 : {
1306 : 0 : tree _o1[1], _r1;
1307 : 0 : _o1[0] = captures[6];
1308 : 0 : if (TREE_TYPE (_o1[0]) != type)
1309 : : {
1310 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1311 : : }
1312 : : else
1313 : : _r1 = _o1[0];
1314 : 0 : res_op1 = _r1;
1315 : : }
1316 : 0 : tree _r;
1317 : 0 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
1318 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 210, __FILE__, __LINE__, true);
1319 : 0 : return _r;
1320 : : }
1321 : : next_after_fail350:;
1322 : : }
1323 : : else
1324 : : {
1325 : : if (single_use (captures[0]) && single_use (captures[1])
1326 : : )
1327 : : {
1328 : : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail351;
1329 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail351;
1330 : : {
1331 : : tree res_op0;
1332 : : {
1333 : : tree _o1[1], _r1;
1334 : : _o1[0] = captures[3];
1335 : : if (TREE_TYPE (_o1[0]) != type)
1336 : : {
1337 : : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1338 : : }
1339 : : else
1340 : : _r1 = _o1[0];
1341 : : res_op0 = _r1;
1342 : : }
1343 : : tree res_op1;
1344 : : res_op1 = captures[4];
1345 : : tree _r;
1346 : : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
1347 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 211, __FILE__, __LINE__, true);
1348 : : return _r;
1349 : : }
1350 : : next_after_fail351:;
1351 : : }
1352 : : }
1353 : : }
1354 : : return NULL_TREE;
1355 : : }
1356 : :
1357 : : tree
1358 : 2 : generic_simplify_112 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1359 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1360 : : const enum tree_code ARG_UNUSED (bitop),
1361 : : const enum tree_code ARG_UNUSED (rbitop))
1362 : : {
1363 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1364 : 2 : if (bitop == BIT_AND_EXPR
1365 : : )
1366 : : {
1367 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail364;
1368 : 1 : {
1369 : 1 : tree _r;
1370 : 1 : _r = build_zero_cst (type);
1371 : 1 : if (TREE_SIDE_EFFECTS (captures[0]))
1372 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1373 : 1 : if (TREE_SIDE_EFFECTS (captures[1]))
1374 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1375 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 218, __FILE__, __LINE__, true);
1376 : 1 : return _r;
1377 : : }
1378 : 0 : next_after_fail364:;
1379 : : }
1380 : : else
1381 : : {
1382 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail365;
1383 : 1 : {
1384 : 1 : tree _r;
1385 : 1 : _r = build_minus_one_cst (type);
1386 : 1 : if (TREE_SIDE_EFFECTS (captures[0]))
1387 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1388 : 1 : if (TREE_SIDE_EFFECTS (captures[1]))
1389 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1390 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 219, __FILE__, __LINE__, true);
1391 : 1 : return _r;
1392 : : }
1393 : 0 : next_after_fail365:;
1394 : : }
1395 : : return NULL_TREE;
1396 : : }
1397 : :
1398 : : tree
1399 : 0 : generic_simplify_120 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1400 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1401 : : const enum tree_code ARG_UNUSED (cmp),
1402 : : const enum tree_code ARG_UNUSED (icmp))
1403 : : {
1404 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1405 : 0 : if (INTEGRAL_TYPE_P (type)
1406 : 0 : && invert_tree_comparison (cmp, HONOR_NANS (captures[1])) == icmp
1407 : 0 : && canonicalize_math_after_vectorization_p ()
1408 : : )
1409 : : {
1410 : : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail375;
1411 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail375;
1412 : : {
1413 : : tree res_op0;
1414 : : {
1415 : : tree _o1[3], _r1;
1416 : : _o1[0] = captures[0];
1417 : : _o1[1] = captures[3];
1418 : : _o1[2] = captures[5];
1419 : : _r1 = fold_build3_loc (loc, COND_EXPR, TREE_TYPE (_o1[1]), _o1[0], _o1[1], _o1[2]);
1420 : : res_op0 = _r1;
1421 : : }
1422 : : tree res_op1;
1423 : : res_op1 = build_one_cst (type);
1424 : : tree _r;
1425 : : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
1426 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 227, __FILE__, __LINE__, true);
1427 : : return _r;
1428 : : }
1429 : 0 : next_after_fail375:;
1430 : : }
1431 : 0 : return NULL_TREE;
1432 : : }
1433 : :
1434 : : tree
1435 : 0 : generic_simplify_130 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1436 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1437 : : const enum tree_code ARG_UNUSED (cmp))
1438 : : {
1439 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1440 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail407;
1441 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail407;
1442 : 0 : {
1443 : 0 : tree res_op0;
1444 : 0 : {
1445 : 0 : tree _o1[2], _r1;
1446 : 0 : _o1[0] = build_zero_cst (TREE_TYPE (captures[0]));
1447 : 0 : _o1[1] = captures[3];
1448 : 0 : _r1 = fold_build2_loc (loc, cmp, type, _o1[0], _o1[1]);
1449 : 0 : res_op0 = _r1;
1450 : : }
1451 : 0 : tree res_op1;
1452 : 0 : res_op1 = captures[4];
1453 : 0 : tree _r;
1454 : 0 : _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
1455 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
1456 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1457 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 252, __FILE__, __LINE__, true);
1458 : : return _r;
1459 : : }
1460 : : next_after_fail407:;
1461 : : return NULL_TREE;
1462 : : }
1463 : :
1464 : : tree
1465 : 0 : generic_simplify_135 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1466 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1467 : : const enum tree_code ARG_UNUSED (eqne))
1468 : : {
1469 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1470 : 0 : if (eqne == EQ_EXPR
1471 : : )
1472 : : {
1473 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail412;
1474 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail412;
1475 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail412;
1476 : 0 : {
1477 : 0 : tree _r;
1478 : 0 : _r = captures[0];
1479 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 255, __FILE__, __LINE__, true);
1480 : 0 : return _r;
1481 : : }
1482 : : next_after_fail412:;
1483 : : }
1484 : : else
1485 : : {
1486 : 0 : if (eqne == NE_EXPR
1487 : : )
1488 : : {
1489 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail413;
1490 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail413;
1491 : 0 : {
1492 : 0 : tree _r;
1493 : 0 : _r = constant_boolean_node (true, type);
1494 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
1495 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1496 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 256, __FILE__, __LINE__, true);
1497 : 0 : return _r;
1498 : : }
1499 : : next_after_fail413:;
1500 : : }
1501 : : }
1502 : : return NULL_TREE;
1503 : : }
1504 : :
1505 : : tree
1506 : 19 : generic_simplify_142 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1507 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1508 : : const enum tree_code ARG_UNUSED (op))
1509 : : {
1510 : 19 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1511 : 38 : if (INTEGRAL_TYPE_P (type)
1512 : 19 : && operand_equal_p (captures[2], captures[6], 0)
1513 : 38 : && (tree_nonzero_bits (captures[0]) & tree_nonzero_bits (captures[4])) == 0
1514 : : )
1515 : : {
1516 : 0 : {
1517 : 0 : tree t = type;
1518 : 0 : if (!TYPE_OVERFLOW_WRAPS (t))
1519 : 0 : t = unsigned_type_for (t);
1520 : 0 : wide_int c = wi::add (wi::to_wide (captures[3]), wi::to_wide (captures[7]));
1521 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail433;
1522 : 0 : if (TREE_SIDE_EFFECTS (captures[7])) goto next_after_fail433;
1523 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail433;
1524 : 0 : {
1525 : 0 : tree res_op0;
1526 : 0 : {
1527 : 0 : tree _o1[2], _r1;
1528 : 0 : {
1529 : 0 : tree _o2[1], _r2;
1530 : 0 : _o2[0] = captures[2];
1531 : 0 : if (TREE_TYPE (_o2[0]) != t)
1532 : : {
1533 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, t, _o2[0]);
1534 : : }
1535 : : else
1536 : : _r2 = _o2[0];
1537 : 0 : _o1[0] = _r2;
1538 : : }
1539 : 0 : _o1[1] = wide_int_to_tree (t, c);
1540 : 0 : _r1 = fold_build2_loc (loc, MULT_EXPR, t, _o1[0], _o1[1]);
1541 : 0 : res_op0 = _r1;
1542 : : }
1543 : 0 : tree _r;
1544 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1545 : 0 : if (TREE_SIDE_EFFECTS (captures[6]))
1546 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[6]), _r);
1547 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 220, __FILE__, __LINE__, true);
1548 : 0 : return _r;
1549 : : }
1550 : 0 : next_after_fail433:;
1551 : 0 : }
1552 : : }
1553 : : return NULL_TREE;
1554 : : }
1555 : :
1556 : : tree
1557 : 495 : generic_simplify_146 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1558 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1559 : : const enum tree_code ARG_UNUSED (op))
1560 : : {
1561 : 495 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1562 : 990 : if (INTEGRAL_TYPE_P (type)
1563 : 493 : && tree_int_cst_sgn (captures[2]) > 0
1564 : 1976 : && (tree_nonzero_bits (captures[0]) & tree_nonzero_bits (captures[1])) == 0
1565 : : )
1566 : : {
1567 : 6 : {
1568 : 6 : tree t = type;
1569 : 6 : if (!TYPE_OVERFLOW_WRAPS (t))
1570 : 6 : t = unsigned_type_for (t);
1571 : 6 : wide_int wone = wi::one (TYPE_PRECISION (t));
1572 : 6 : wide_int c = wi::add (wi::lshift (wone, wi::to_wide (captures[2])), wone);
1573 : 6 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail437;
1574 : 6 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail437;
1575 : 6 : {
1576 : 6 : tree res_op0;
1577 : 6 : {
1578 : 6 : tree _o1[2], _r1;
1579 : 6 : {
1580 : 6 : tree _o2[1], _r2;
1581 : 6 : _o2[0] = captures[1];
1582 : 6 : if (TREE_TYPE (_o2[0]) != t)
1583 : : {
1584 : 6 : _r2 = fold_build1_loc (loc, NOP_EXPR, t, _o2[0]);
1585 : : }
1586 : : else
1587 : : _r2 = _o2[0];
1588 : 6 : _o1[0] = _r2;
1589 : : }
1590 : 6 : _o1[1] = wide_int_to_tree (t, c);
1591 : 6 : _r1 = fold_build2_loc (loc, MULT_EXPR, t, _o1[0], _o1[1]);
1592 : 6 : res_op0 = _r1;
1593 : : }
1594 : 6 : tree _r;
1595 : 6 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1596 : 6 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 259, __FILE__, __LINE__, true);
1597 : 6 : return _r;
1598 : : }
1599 : 0 : next_after_fail437:;
1600 : 6 : }
1601 : : }
1602 : : return NULL_TREE;
1603 : : }
1604 : :
1605 : : tree
1606 : 196 : generic_simplify_153 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1607 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1608 : : {
1609 : 196 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1610 : 196 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail444;
1611 : 196 : {
1612 : 196 : if (! tree_invariant_p (captures[3])) goto next_after_fail444;
1613 : 15 : tree res_op0;
1614 : 15 : {
1615 : 15 : tree _o1[2], _r1;
1616 : 15 : _o1[0] = captures[2];
1617 : 15 : _o1[1] = unshare_expr (captures[3]);
1618 : 15 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1619 : 15 : res_op0 = _r1;
1620 : : }
1621 : 15 : tree res_op1;
1622 : 15 : {
1623 : 15 : tree _o1[2], _r1;
1624 : 15 : _o1[0] = captures[4];
1625 : 15 : _o1[1] = captures[3];
1626 : 15 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1627 : 15 : if (EXPR_P (_r1))
1628 : 14 : goto next_after_fail444;
1629 : 1 : res_op1 = _r1;
1630 : : }
1631 : 1 : tree _r;
1632 : 1 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
1633 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 265, __FILE__, __LINE__, true);
1634 : : return _r;
1635 : : }
1636 : : next_after_fail444:;
1637 : : return NULL_TREE;
1638 : : }
1639 : :
1640 : : tree
1641 : 10 : generic_simplify_162 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1642 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1643 : : {
1644 : 10 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1645 : 10 : if (element_precision (type) <= element_precision (TREE_TYPE (captures[0]))
1646 : 10 : && element_precision (type) <= element_precision (TREE_TYPE (captures[1]))
1647 : : )
1648 : : {
1649 : 10 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail453;
1650 : 10 : {
1651 : 10 : tree res_op0;
1652 : 10 : {
1653 : 10 : tree _o1[1], _r1;
1654 : 10 : _o1[0] = captures[0];
1655 : 10 : if (TREE_TYPE (_o1[0]) != type)
1656 : : {
1657 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1658 : : }
1659 : : else
1660 : : _r1 = _o1[0];
1661 : 10 : res_op0 = _r1;
1662 : : }
1663 : 10 : tree res_op1;
1664 : 10 : {
1665 : 10 : tree _o1[1], _r1;
1666 : 10 : _o1[0] = captures[1];
1667 : 10 : if (TREE_TYPE (_o1[0]) != type)
1668 : : {
1669 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1670 : : }
1671 : : else
1672 : : _r1 = _o1[0];
1673 : 10 : res_op1 = _r1;
1674 : : }
1675 : 10 : tree _r;
1676 : 10 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
1677 : 10 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 274, __FILE__, __LINE__, true);
1678 : 10 : return _r;
1679 : : }
1680 : 0 : next_after_fail453:;
1681 : : }
1682 : : return NULL_TREE;
1683 : : }
1684 : :
1685 : : tree
1686 : 64 : generic_simplify_169 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1687 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1688 : : const enum tree_code ARG_UNUSED (cmp),
1689 : : const enum tree_code ARG_UNUSED (icmp),
1690 : : const enum tree_code ARG_UNUSED (ncmp))
1691 : : {
1692 : 64 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1693 : 64 : {
1694 : 64 : enum tree_code ic = invert_tree_comparison
1695 : 64 : (cmp, HONOR_NANS (captures[0]));
1696 : 64 : if (ic == icmp
1697 : : )
1698 : : {
1699 : 64 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail460;
1700 : 64 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail460;
1701 : 64 : {
1702 : 64 : tree res_op0;
1703 : 64 : res_op0 = captures[0];
1704 : 64 : tree res_op1;
1705 : 64 : res_op1 = captures[1];
1706 : 64 : tree _r;
1707 : 64 : _r = fold_build2_loc (loc, icmp, type, res_op0, res_op1);
1708 : 64 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 280, __FILE__, __LINE__, true);
1709 : 64 : return _r;
1710 : : }
1711 : : next_after_fail460:;
1712 : : }
1713 : : else
1714 : : {
1715 : 0 : if (ic == ncmp
1716 : : )
1717 : : {
1718 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail461;
1719 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail461;
1720 : 0 : {
1721 : 0 : tree res_op0;
1722 : 0 : res_op0 = captures[0];
1723 : 0 : tree res_op1;
1724 : 0 : res_op1 = captures[1];
1725 : 0 : tree _r;
1726 : 0 : _r = fold_build2_loc (loc, ncmp, type, res_op0, res_op1);
1727 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 281, __FILE__, __LINE__, true);
1728 : 0 : return _r;
1729 : : }
1730 : : next_after_fail461:;
1731 : : }
1732 : : }
1733 : : }
1734 : : return NULL_TREE;
1735 : : }
1736 : :
1737 : : tree
1738 : 6 : generic_simplify_182 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1739 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1740 : : {
1741 : 6 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1742 : 6 : if (INTEGRAL_TYPE_P (type)
1743 : 6 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
1744 : 12 : && !TYPE_UNSIGNED (TREE_TYPE (captures[0]))
1745 : : )
1746 : : {
1747 : 6 : if (TYPE_UNSIGNED (type)
1748 : : )
1749 : : {
1750 : 5 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail475;
1751 : 5 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail475;
1752 : 5 : {
1753 : 5 : tree res_op0;
1754 : 5 : res_op0 = captures[0];
1755 : 5 : tree _r;
1756 : 5 : _r = fold_build1_loc (loc, ABSU_EXPR, type, res_op0);
1757 : 5 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 292, __FILE__, __LINE__, true);
1758 : 5 : return _r;
1759 : : }
1760 : : next_after_fail475:;
1761 : : }
1762 : : else
1763 : : {
1764 : 1 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail476;
1765 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail476;
1766 : 1 : {
1767 : 1 : tree res_op0;
1768 : 1 : res_op0 = captures[0];
1769 : 1 : tree _r;
1770 : 1 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
1771 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 293, __FILE__, __LINE__, true);
1772 : 1 : return _r;
1773 : : }
1774 : : next_after_fail476:;
1775 : : }
1776 : : }
1777 : : return NULL_TREE;
1778 : : }
1779 : :
1780 : : tree
1781 : 2 : generic_simplify_192 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1782 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1783 : : const combined_fn ARG_UNUSED (SQRT_ALL))
1784 : : {
1785 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1786 : 2 : if (flag_unsafe_math_optimizations
1787 : : )
1788 : : {
1789 : 2 : if (!tree_expr_maybe_signaling_nan_p (captures[1])
1790 : : )
1791 : : {
1792 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail488;
1793 : 2 : {
1794 : 2 : tree _r;
1795 : 2 : _r = captures[1];
1796 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 302, __FILE__, __LINE__, true);
1797 : 2 : return _r;
1798 : : }
1799 : 0 : next_after_fail488:;
1800 : : }
1801 : : }
1802 : : return NULL_TREE;
1803 : : }
1804 : :
1805 : : tree
1806 : 38 : generic_simplify_197 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1807 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1808 : : const combined_fn ARG_UNUSED (POW))
1809 : : {
1810 : 38 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1811 : 38 : if (flag_unsafe_math_optimizations && canonicalize_math_p ()
1812 : : )
1813 : : {
1814 : 38 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail493;
1815 : 38 : {
1816 : 38 : tree res_op0;
1817 : 38 : res_op0 = captures[1];
1818 : 38 : tree res_op1;
1819 : 38 : {
1820 : 38 : tree _o1[2], _r1;
1821 : 38 : _o1[0] = captures[2];
1822 : 38 : _o1[1] = captures[4];
1823 : 38 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1824 : 38 : res_op1 = _r1;
1825 : : }
1826 : 38 : tree _r;
1827 : 38 : _r = maybe_build_call_expr_loc (loc, POW, type, 2, res_op0, res_op1);
1828 : 38 : if (!_r)
1829 : 0 : goto next_after_fail493;
1830 : 38 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 307, __FILE__, __LINE__, true);
1831 : 38 : return _r;
1832 : : }
1833 : : next_after_fail493:;
1834 : : }
1835 : : return NULL_TREE;
1836 : : }
1837 : :
1838 : : tree
1839 : 12 : generic_simplify_205 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1840 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1841 : : const enum tree_code ARG_UNUSED (cmp))
1842 : : {
1843 : 12 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1844 : 12 : if (element_precision (captures[0]) >= element_precision (captures[1])
1845 : 12 : && types_match (captures[1], captures[3])
1846 : : )
1847 : : {
1848 : 12 : if (wi::lt_p (wi::to_wide (captures[2]), 0, TYPE_SIGN (TREE_TYPE (captures[2])))
1849 : : )
1850 : : {
1851 : 0 : if (!TYPE_UNSIGNED (TREE_TYPE (captures[0]))
1852 : : )
1853 : : {
1854 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail501;
1855 : 0 : {
1856 : 0 : tree res_op0;
1857 : 0 : res_op0 = captures[3];
1858 : 0 : tree res_op1;
1859 : 0 : res_op1 = captures[1];
1860 : 0 : tree _r;
1861 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
1862 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
1863 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1864 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 315, __FILE__, __LINE__, true);
1865 : 0 : return _r;
1866 : : }
1867 : 0 : next_after_fail501:;
1868 : : }
1869 : : else
1870 : : {
1871 : 0 : if (tree_expr_nonzero_p (captures[1]) && tree_expr_nonzero_p (captures[3])
1872 : : )
1873 : : {
1874 : 0 : {
1875 : 0 : tree utype = unsigned_type_for (TREE_TYPE (captures[1]));
1876 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail502;
1877 : 0 : {
1878 : 0 : tree res_op0;
1879 : 0 : {
1880 : 0 : tree _o1[1], _r1;
1881 : 0 : _o1[0] = captures[3];
1882 : 0 : if (TREE_TYPE (_o1[0]) != utype)
1883 : : {
1884 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, utype, _o1[0]);
1885 : : }
1886 : : else
1887 : : _r1 = _o1[0];
1888 : 0 : res_op0 = _r1;
1889 : : }
1890 : 0 : tree res_op1;
1891 : 0 : {
1892 : 0 : tree _o1[1], _r1;
1893 : 0 : _o1[0] = captures[1];
1894 : 0 : if (TREE_TYPE (_o1[0]) != utype)
1895 : : {
1896 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, utype, _o1[0]);
1897 : : }
1898 : : else
1899 : : _r1 = _o1[0];
1900 : 0 : res_op1 = _r1;
1901 : : }
1902 : 0 : tree _r;
1903 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
1904 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
1905 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1906 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 316, __FILE__, __LINE__, true);
1907 : 0 : return _r;
1908 : : }
1909 : 0 : next_after_fail502:;
1910 : : }
1911 : : }
1912 : : }
1913 : : }
1914 : : else
1915 : : {
1916 : 12 : if (wi::gt_p (wi::to_wide (captures[2]), 1, TYPE_SIGN (TREE_TYPE (captures[2])))
1917 : : )
1918 : : {
1919 : 12 : if (TYPE_UNSIGNED (TREE_TYPE (captures[1])) || !TYPE_UNSIGNED (TREE_TYPE (captures[0]))
1920 : : )
1921 : : {
1922 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail503;
1923 : 12 : {
1924 : 12 : tree res_op0;
1925 : 12 : res_op0 = captures[1];
1926 : 12 : tree res_op1;
1927 : 12 : res_op1 = captures[3];
1928 : 12 : tree _r;
1929 : 12 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
1930 : 12 : if (TREE_SIDE_EFFECTS (captures[2]))
1931 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1932 : 12 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 317, __FILE__, __LINE__, true);
1933 : 12 : return _r;
1934 : : }
1935 : 0 : next_after_fail503:;
1936 : : }
1937 : : else
1938 : : {
1939 : 0 : {
1940 : 0 : tree utype = unsigned_type_for (TREE_TYPE (captures[1]));
1941 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail504;
1942 : 0 : {
1943 : 0 : tree res_op0;
1944 : 0 : {
1945 : 0 : tree _o1[1], _r1;
1946 : 0 : _o1[0] = captures[1];
1947 : 0 : if (TREE_TYPE (_o1[0]) != utype)
1948 : : {
1949 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, utype, _o1[0]);
1950 : : }
1951 : : else
1952 : : _r1 = _o1[0];
1953 : 0 : res_op0 = _r1;
1954 : : }
1955 : 0 : tree res_op1;
1956 : 0 : {
1957 : 0 : tree _o1[1], _r1;
1958 : 0 : _o1[0] = captures[3];
1959 : 0 : if (TREE_TYPE (_o1[0]) != utype)
1960 : : {
1961 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, utype, _o1[0]);
1962 : : }
1963 : : else
1964 : : _r1 = _o1[0];
1965 : 0 : res_op1 = _r1;
1966 : : }
1967 : 0 : tree _r;
1968 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
1969 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
1970 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1971 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 318, __FILE__, __LINE__, true);
1972 : 0 : return _r;
1973 : : }
1974 : 0 : next_after_fail504:;
1975 : : }
1976 : : }
1977 : : }
1978 : : }
1979 : : }
1980 : : return NULL_TREE;
1981 : : }
1982 : :
1983 : : tree
1984 : 181 : generic_simplify_230 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1985 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1986 : : const enum tree_code ARG_UNUSED (cmp))
1987 : : {
1988 : 181 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1989 : 181 : {
1990 : 181 : int cand = wi::ctz (wi::to_wide (captures[2])) - wi::ctz (wi::to_wide (captures[0]));
1991 : 362 : if (cand < 0
1992 : 181 : || (!integer_zerop (captures[2])
1993 : 248 : && wi::lshift (wi::to_wide (captures[0]), cand) != wi::to_wide (captures[2]))
1994 : : )
1995 : : {
1996 : 35 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail553;
1997 : 35 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail553;
1998 : 35 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail553;
1999 : 35 : {
2000 : 35 : tree _r;
2001 : 35 : _r = constant_boolean_node (cmp == NE_EXPR, type);
2002 : 35 : if (TREE_SIDE_EFFECTS (captures[1]))
2003 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2004 : 35 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 365, __FILE__, __LINE__, true);
2005 : 88 : return _r;
2006 : : }
2007 : 93 : next_after_fail553:;
2008 : : }
2009 : : else
2010 : : {
2011 : 146 : if (!integer_zerop (captures[2])
2012 : 146 : && wi::lshift (wi::to_wide (captures[0]), cand) == wi::to_wide (captures[2])
2013 : : )
2014 : : {
2015 : 53 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail554;
2016 : 53 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail554;
2017 : 53 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail554;
2018 : 53 : {
2019 : 53 : tree res_op0;
2020 : 53 : res_op0 = captures[1];
2021 : 53 : tree res_op1;
2022 : 53 : res_op1 = build_int_cst (TREE_TYPE (captures[1]), cand);
2023 : 53 : tree _r;
2024 : 53 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2025 : 53 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 366, __FILE__, __LINE__, true);
2026 : 53 : return _r;
2027 : : }
2028 : 93 : next_after_fail554:;
2029 : : }
2030 : : }
2031 : : }
2032 : 93 : return NULL_TREE;
2033 : : }
2034 : :
2035 : : tree
2036 : 34181 : generic_simplify_241 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2037 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2038 : : const enum tree_code ARG_UNUSED (cmp),
2039 : : const enum tree_code ARG_UNUSED (scmp))
2040 : : {
2041 : 34181 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2042 : 34181 : if (integer_zerop (captures[2])
2043 : : )
2044 : : {
2045 : 7 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail566;
2046 : 7 : {
2047 : 7 : tree res_op0;
2048 : 7 : res_op0 = captures[2];
2049 : 7 : tree res_op1;
2050 : 7 : res_op1 = captures[3];
2051 : 7 : tree _r;
2052 : 7 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2053 : 7 : if (TREE_SIDE_EFFECTS (captures[1]))
2054 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2055 : 7 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 377, __FILE__, __LINE__, true);
2056 : 7 : return _r;
2057 : : }
2058 : 0 : next_after_fail566:;
2059 : : }
2060 : : else
2061 : : {
2062 : 68348 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
2063 : 68348 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[1]))
2064 : 68348 : && single_use (captures[0])
2065 : : )
2066 : : {
2067 : 6361 : if (tree_int_cst_sgn (captures[2]) < 0
2068 : : )
2069 : : {
2070 : 15 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail567;
2071 : 15 : {
2072 : 15 : tree res_op0;
2073 : 15 : res_op0 = captures[1];
2074 : 15 : tree res_op1;
2075 : 15 : res_op1 = captures[3];
2076 : 15 : tree _r;
2077 : 15 : _r = fold_build2_loc (loc, scmp, type, res_op0, res_op1);
2078 : 15 : if (TREE_SIDE_EFFECTS (captures[2]))
2079 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2080 : 15 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 378, __FILE__, __LINE__, true);
2081 : 15 : return _r;
2082 : : }
2083 : 0 : next_after_fail567:;
2084 : : }
2085 : : else
2086 : : {
2087 : 6346 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail568;
2088 : 6346 : {
2089 : 6346 : tree res_op0;
2090 : 6346 : res_op0 = captures[1];
2091 : 6346 : tree res_op1;
2092 : 6346 : res_op1 = captures[3];
2093 : 6346 : tree _r;
2094 : 6346 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2095 : 6346 : if (TREE_SIDE_EFFECTS (captures[2]))
2096 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2097 : 6346 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 379, __FILE__, __LINE__, true);
2098 : 6346 : return _r;
2099 : : }
2100 : 0 : next_after_fail568:;
2101 : : }
2102 : : }
2103 : : }
2104 : : return NULL_TREE;
2105 : : }
2106 : :
2107 : : tree
2108 : 6 : generic_simplify_252 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2109 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2110 : : const combined_fn ARG_UNUSED (sq),
2111 : : const enum tree_code ARG_UNUSED (cmp))
2112 : : {
2113 : 6 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2114 : 6 : if (flag_unsafe_math_optimizations && ! flag_errno_math
2115 : : )
2116 : : {
2117 : 0 : if (! HONOR_NANS (captures[0])
2118 : : )
2119 : : {
2120 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail614;
2121 : 0 : {
2122 : 0 : tree res_op0;
2123 : 0 : res_op0 = captures[0];
2124 : 0 : tree res_op1;
2125 : 0 : res_op1 = captures[1];
2126 : 0 : tree _r;
2127 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2128 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 424, __FILE__, __LINE__, true);
2129 : 0 : return _r;
2130 : : }
2131 : 0 : next_after_fail614:;
2132 : : }
2133 : : }
2134 : : return NULL_TREE;
2135 : : }
2136 : :
2137 : : tree
2138 : 59 : generic_simplify_256 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2139 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2140 : : const enum tree_code ARG_UNUSED (cmp),
2141 : : const enum tree_code ARG_UNUSED (scmp))
2142 : : {
2143 : 59 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2144 : 96 : if (FLOAT_TYPE_P (TREE_TYPE (captures[0]))
2145 : 96 : || (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
2146 : 37 : && (cmp == EQ_EXPR
2147 : 37 : || cmp == NE_EXPR
2148 : 36 : || TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))))
2149 : : )
2150 : : {
2151 : 23 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail627;
2152 : 23 : {
2153 : 23 : tree res_op0;
2154 : 23 : res_op0 = captures[0];
2155 : 23 : tree res_op1;
2156 : 23 : res_op1 = captures[1];
2157 : 23 : tree _r;
2158 : 23 : _r = fold_build2_loc (loc, scmp, type, res_op0, res_op1);
2159 : 23 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 437, __FILE__, __LINE__, true);
2160 : 23 : return _r;
2161 : : }
2162 : 0 : next_after_fail627:;
2163 : : }
2164 : : return NULL_TREE;
2165 : : }
2166 : :
2167 : : tree
2168 : 3881885 : generic_simplify_258 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2169 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2170 : : const enum tree_code ARG_UNUSED (cmp))
2171 : : {
2172 : 3881885 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2173 : 7763744 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
2174 : 2271783 : && !(targetm.have_canonicalize_funcptr_for_compare ()
2175 : 0 : && ((POINTER_TYPE_P (TREE_TYPE (captures[1]))
2176 : 0 : && FUNC_OR_METHOD_TYPE_P (TREE_TYPE (TREE_TYPE (captures[1]))))
2177 : 0 : || (POINTER_TYPE_P (TREE_TYPE (captures[3]))
2178 : 0 : && FUNC_OR_METHOD_TYPE_P (TREE_TYPE (TREE_TYPE (captures[3]))))))
2179 : 3881885 : && single_use (captures[0])
2180 : : )
2181 : : {
2182 : 2271783 : if (TYPE_PRECISION (TREE_TYPE (captures[1])) == TYPE_PRECISION (TREE_TYPE (captures[0]))
2183 : 1646786 : && (TREE_CODE (captures[3]) == INTEGER_CST
2184 : 1646786 : || captures[2] != captures[3])
2185 : 1646786 : && (TYPE_UNSIGNED (TREE_TYPE (captures[1])) == TYPE_UNSIGNED (TREE_TYPE (captures[0]))
2186 : : || cmp == NE_EXPR
2187 : 1009154 : || cmp == EQ_EXPR)
2188 : 676481 : && !POINTER_TYPE_P (TREE_TYPE (captures[1]))
2189 : 2842575 : && (TREE_CODE (TREE_TYPE (captures[1])) != BOOLEAN_TYPE
2190 : 390 : || TREE_CODE (TREE_TYPE (captures[3])) == BOOLEAN_TYPE)
2191 : : )
2192 : : {
2193 : 570792 : if (TREE_CODE (captures[2]) == INTEGER_CST
2194 : : )
2195 : : {
2196 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail629;
2197 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail629;
2198 : 0 : {
2199 : 0 : tree res_op0;
2200 : 0 : res_op0 = captures[1];
2201 : 0 : tree res_op1;
2202 : 0 : res_op1 = force_fit_type (TREE_TYPE (captures[1]),
2203 : 0 : wide_int::from (wi::to_wide (captures[2]),
2204 : 0 : MAX (TYPE_PRECISION (TREE_TYPE (captures[2])),
2205 : : TYPE_PRECISION (TREE_TYPE (captures[1]))),
2206 : 0 : TYPE_SIGN (TREE_TYPE (captures[2]))),
2207 : 0 : 0, TREE_OVERFLOW (captures[2]));
2208 : 0 : tree _r;
2209 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2210 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
2211 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
2212 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 439, __FILE__, __LINE__, true);
2213 : 0 : return _r;
2214 : : }
2215 : : next_after_fail629:;
2216 : : }
2217 : : else
2218 : : {
2219 : 570792 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail630;
2220 : 551096 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail630;
2221 : 551096 : {
2222 : 551096 : tree res_op0;
2223 : 551096 : res_op0 = captures[1];
2224 : 551096 : tree res_op1;
2225 : 551096 : {
2226 : 551096 : tree _o1[1], _r1;
2227 : 551096 : _o1[0] = captures[2];
2228 : 551096 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
2229 : : {
2230 : 550976 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
2231 : : }
2232 : : else
2233 : : _r1 = _o1[0];
2234 : 551096 : res_op1 = _r1;
2235 : : }
2236 : 551096 : tree _r;
2237 : 551096 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2238 : 551096 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 440, __FILE__, __LINE__, true);
2239 : 551096 : return _r;
2240 : : }
2241 : : next_after_fail630:;
2242 : : }
2243 : : }
2244 : : else
2245 : : {
2246 : 1700991 : if (TYPE_PRECISION (TREE_TYPE (captures[0])) > TYPE_PRECISION (TREE_TYPE (captures[1]))
2247 : : )
2248 : : {
2249 : 565329 : if ((cmp == EQ_EXPR || cmp == NE_EXPR
2250 : 174769 : || TYPE_UNSIGNED (TREE_TYPE (captures[0])) == TYPE_UNSIGNED (TREE_TYPE (captures[1]))
2251 : 88888 : || (!TYPE_UNSIGNED (TREE_TYPE (captures[0]))
2252 : 87734 : && TYPE_UNSIGNED (TREE_TYPE (captures[1]))))
2253 : 738944 : && (types_match (TREE_TYPE (captures[3]), TREE_TYPE (captures[1]))
2254 : 116562 : || ((TYPE_PRECISION (TREE_TYPE (captures[1]))
2255 : 116562 : >= TYPE_PRECISION (TREE_TYPE (captures[3])))
2256 : 50124 : && (TYPE_UNSIGNED (TREE_TYPE (captures[1]))
2257 : 50124 : == TYPE_UNSIGNED (TREE_TYPE (captures[3]))))
2258 : 78312 : || (TREE_CODE (captures[2]) == INTEGER_CST
2259 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
2260 : 0 : && int_fits_type_p (captures[2], TREE_TYPE (captures[1]))))
2261 : : )
2262 : : {
2263 : 485863 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail631;
2264 : 485863 : {
2265 : 485863 : tree res_op0;
2266 : 485863 : res_op0 = captures[1];
2267 : 485863 : tree res_op1;
2268 : 485863 : {
2269 : 485863 : tree _o1[1], _r1;
2270 : 485863 : _o1[0] = captures[3];
2271 : 485863 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
2272 : : {
2273 : 121592 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
2274 : : }
2275 : : else
2276 : : _r1 = _o1[0];
2277 : 485863 : res_op1 = _r1;
2278 : : }
2279 : 485863 : tree _r;
2280 : 485863 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2281 : 485863 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 441, __FILE__, __LINE__, true);
2282 : 485863 : return _r;
2283 : : }
2284 : 0 : next_after_fail631:;
2285 : : }
2286 : : else
2287 : : {
2288 : 79466 : if (TREE_CODE (captures[2]) == INTEGER_CST
2289 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
2290 : 79466 : && !int_fits_type_p (captures[2], TREE_TYPE (captures[1]))
2291 : : )
2292 : : {
2293 : 0 : {
2294 : 0 : tree min = lower_bound_in_type (TREE_TYPE (captures[3]), TREE_TYPE (captures[1]));
2295 : 0 : tree max = upper_bound_in_type (TREE_TYPE (captures[3]), TREE_TYPE (captures[1]));
2296 : 0 : bool above = integer_nonzerop (const_binop (LT_EXPR, type, max, captures[2]));
2297 : 0 : bool below = integer_nonzerop (const_binop (LT_EXPR, type, captures[2], min));
2298 : 0 : if (above || below
2299 : : )
2300 : : {
2301 : 0 : if (cmp == EQ_EXPR || cmp == NE_EXPR
2302 : : )
2303 : : {
2304 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail632;
2305 : 0 : {
2306 : 0 : tree _r;
2307 : 0 : _r = constant_boolean_node (cmp == EQ_EXPR ? false : true, type);
2308 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2309 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2310 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
2311 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
2312 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 442, __FILE__, __LINE__, true);
2313 : 0 : return _r;
2314 : : }
2315 : 0 : next_after_fail632:;
2316 : : }
2317 : : else
2318 : : {
2319 : 0 : if (cmp == LT_EXPR || cmp == LE_EXPR
2320 : : )
2321 : : {
2322 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail633;
2323 : 0 : {
2324 : 0 : tree _r;
2325 : 0 : _r = constant_boolean_node (above ? true : false, type);
2326 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2327 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2328 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
2329 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
2330 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 443, __FILE__, __LINE__, true);
2331 : 0 : return _r;
2332 : : }
2333 : 0 : next_after_fail633:;
2334 : : }
2335 : : else
2336 : : {
2337 : 0 : if (cmp == GT_EXPR || cmp == GE_EXPR
2338 : : )
2339 : : {
2340 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail634;
2341 : 0 : {
2342 : 0 : tree _r;
2343 : 0 : _r = constant_boolean_node (above ? false : true, type);
2344 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2345 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2346 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
2347 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
2348 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 444, __FILE__, __LINE__, true);
2349 : 0 : return _r;
2350 : : }
2351 : 0 : next_after_fail634:;
2352 : : }
2353 : : }
2354 : : }
2355 : : }
2356 : : }
2357 : : }
2358 : : }
2359 : : }
2360 : : }
2361 : : }
2362 : : else
2363 : : {
2364 : 3174761 : if (FLOAT_TYPE_P (TREE_TYPE (captures[1]))
2365 : 90908 : && (DECIMAL_FLOAT_TYPE_P (TREE_TYPE (captures[0]))
2366 : 45454 : == DECIMAL_FLOAT_TYPE_P (TREE_TYPE (captures[1])))
2367 : 1701002 : && (DECIMAL_FLOAT_TYPE_P (TREE_TYPE (captures[0]))
2368 : 45450 : == DECIMAL_FLOAT_TYPE_P (TREE_TYPE (captures[3])))
2369 : : )
2370 : : {
2371 : 45446 : {
2372 : 45446 : tree type1 = TREE_TYPE (captures[3]);
2373 : 45446 : if (TREE_CODE (captures[3]) == REAL_CST && !DECIMAL_FLOAT_TYPE_P (type1))
2374 : : {
2375 : 0 : REAL_VALUE_TYPE orig = TREE_REAL_CST (captures[3]);
2376 : 0 : if (TYPE_PRECISION (type1) > TYPE_PRECISION (float_type_node)
2377 : 0 : && exact_real_truncate (TYPE_MODE (float_type_node), &orig))
2378 : 0 : type1 = float_type_node;
2379 : 0 : if (TYPE_PRECISION (type1) > TYPE_PRECISION (double_type_node)
2380 : 0 : && exact_real_truncate (TYPE_MODE (double_type_node), &orig))
2381 : 0 : type1 = double_type_node;
2382 : : }
2383 : 45446 : tree newtype
2384 : 45446 : = (element_precision (TREE_TYPE (captures[1])) > element_precision (type1)
2385 : 45446 : ? TREE_TYPE (captures[1]) : type1);
2386 : 45446 : if (element_precision (TREE_TYPE (captures[0])) > element_precision (newtype)
2387 : 45446 : && (!VECTOR_TYPE_P (type) || is_truth_type_for (newtype, type))
2388 : : )
2389 : : {
2390 : 1527 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail635;
2391 : 1527 : {
2392 : 1527 : tree res_op0;
2393 : 1527 : {
2394 : 1527 : tree _o1[1], _r1;
2395 : 1527 : _o1[0] = captures[1];
2396 : 1527 : if (TREE_TYPE (_o1[0]) != newtype)
2397 : : {
2398 : 9 : _r1 = fold_build1_loc (loc, NOP_EXPR, newtype, _o1[0]);
2399 : : }
2400 : : else
2401 : : _r1 = _o1[0];
2402 : 1527 : res_op0 = _r1;
2403 : : }
2404 : 1527 : tree res_op1;
2405 : 1527 : {
2406 : 1527 : tree _o1[1], _r1;
2407 : 1527 : _o1[0] = captures[3];
2408 : 1527 : if (TREE_TYPE (_o1[0]) != newtype)
2409 : : {
2410 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, newtype, _o1[0]);
2411 : : }
2412 : : else
2413 : : _r1 = _o1[0];
2414 : 1527 : res_op1 = _r1;
2415 : : }
2416 : 1527 : tree _r;
2417 : 1527 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2418 : 1527 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 445, __FILE__, __LINE__, true);
2419 : 1527 : return _r;
2420 : : }
2421 : 0 : next_after_fail635:;
2422 : : }
2423 : : }
2424 : : }
2425 : : }
2426 : : return NULL_TREE;
2427 : : }
2428 : :
2429 : : tree
2430 : 366 : generic_simplify_284 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2431 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2432 : : const enum tree_code ARG_UNUSED (op),
2433 : : const enum tree_code ARG_UNUSED (cmp),
2434 : : const combined_fn ARG_UNUSED (clz))
2435 : : {
2436 : 366 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2437 : 366 : if (!sanitize_flags_p (SANITIZE_BUILTIN)
2438 : 366 : || (cfun && (cfun->curr_properties & PROP_ssa) != 0)
2439 : : )
2440 : : {
2441 : 302 : if (integer_zerop (captures[2]) && single_use (captures[0])
2442 : : )
2443 : : {
2444 : 59 : {
2445 : 59 : tree stype = signed_type_for (TREE_TYPE (captures[1]));
2446 : 59 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail697;
2447 : 59 : {
2448 : 59 : tree res_op0;
2449 : 59 : {
2450 : 59 : tree _o1[1], _r1;
2451 : 59 : _o1[0] = captures[1];
2452 : 59 : if (TREE_TYPE (_o1[0]) != stype)
2453 : : {
2454 : 59 : _r1 = fold_build1_loc (loc, NOP_EXPR, stype, _o1[0]);
2455 : : }
2456 : : else
2457 : : _r1 = _o1[0];
2458 : 59 : res_op0 = _r1;
2459 : : }
2460 : 59 : tree res_op1;
2461 : 59 : res_op1 = build_zero_cst (stype);
2462 : 59 : tree _r;
2463 : 59 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2464 : 59 : if (TREE_SIDE_EFFECTS (captures[2]))
2465 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2466 : 59 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 490, __FILE__, __LINE__, true);
2467 : 59 : return _r;
2468 : : }
2469 : 0 : next_after_fail697:;
2470 : : }
2471 : : }
2472 : : else
2473 : : {
2474 : 243 : if (wi::to_wide (captures[2]) == TYPE_PRECISION (TREE_TYPE (captures[1])) - 1
2475 : : )
2476 : : {
2477 : 79 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail698;
2478 : 79 : {
2479 : 79 : tree res_op0;
2480 : 79 : res_op0 = captures[1];
2481 : 79 : tree res_op1;
2482 : 79 : res_op1 = build_one_cst (TREE_TYPE (captures[1]));
2483 : 79 : tree _r;
2484 : 79 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
2485 : 79 : if (TREE_SIDE_EFFECTS (captures[2]))
2486 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2487 : 79 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 491, __FILE__, __LINE__, true);
2488 : 79 : return _r;
2489 : : }
2490 : 0 : next_after_fail698:;
2491 : : }
2492 : : }
2493 : : }
2494 : : return NULL_TREE;
2495 : : }
2496 : :
2497 : : tree
2498 : 302036 : generic_simplify_291 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2499 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2500 : : const enum tree_code ARG_UNUSED (cmp),
2501 : : const enum tree_code ARG_UNUSED (icmp),
2502 : : const enum tree_code ARG_UNUSED (ncmp))
2503 : : {
2504 : 302036 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2505 : 302036 : if (types_match (type, TREE_TYPE (captures[0]))
2506 : : )
2507 : : {
2508 : 45041 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail710;
2509 : 45041 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail710;
2510 : 45041 : {
2511 : 45041 : tree res_op0;
2512 : 45041 : res_op0 = captures[1];
2513 : 45041 : tree res_op1;
2514 : 45041 : res_op1 = captures[2];
2515 : 45041 : tree _r;
2516 : 45041 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2517 : 45041 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 503, __FILE__, __LINE__, true);
2518 : 45041 : return _r;
2519 : : }
2520 : : next_after_fail710:;
2521 : : }
2522 : : return NULL_TREE;
2523 : : }
2524 : :
2525 : : tree
2526 : 0 : generic_simplify_297 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2527 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2528 : : const combined_fn ARG_UNUSED (COPYSIGN_ALL))
2529 : : {
2530 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2531 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail717;
2532 : 0 : {
2533 : 0 : tree _r;
2534 : 0 : _r = captures[0];
2535 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 510, __FILE__, __LINE__, true);
2536 : : return _r;
2537 : : }
2538 : 0 : next_after_fail717:;
2539 : 0 : return NULL_TREE;
2540 : : }
2541 : :
2542 : : tree
2543 : 0 : generic_simplify_299 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2544 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2545 : : const combined_fn ARG_UNUSED (COPYSIGN_ALL))
2546 : : {
2547 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2548 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail719;
2549 : 0 : {
2550 : 0 : tree res_op0;
2551 : 0 : res_op0 = captures[0];
2552 : 0 : tree _r;
2553 : 0 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
2554 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2555 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2556 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 512, __FILE__, __LINE__, true);
2557 : : return _r;
2558 : : }
2559 : 0 : next_after_fail719:;
2560 : 0 : return NULL_TREE;
2561 : : }
2562 : :
2563 : : tree
2564 : 1 : generic_simplify_306 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2565 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2566 : : const enum tree_code ARG_UNUSED (div))
2567 : : {
2568 : 1 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2569 : 1 : if (INTEGRAL_TYPE_P (type)
2570 : 1 : && TYPE_OVERFLOW_UNDEFINED (type)
2571 : 1 : && !integer_zerop (captures[0])
2572 : 2 : && (!flag_non_call_exceptions || tree_expr_nonzero_p (captures[0]))
2573 : : )
2574 : : {
2575 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail728;
2576 : 1 : {
2577 : 1 : tree res_op0;
2578 : 1 : {
2579 : 1 : tree _o1[2], _r1;
2580 : 1 : _o1[0] = captures[0];
2581 : 1 : _o1[1] = build_zero_cst (type);
2582 : 1 : _r1 = fold_build2_loc (loc, LT_EXPR, boolean_type_node, _o1[0], _o1[1]);
2583 : 1 : res_op0 = _r1;
2584 : : }
2585 : 1 : tree res_op1;
2586 : 1 : res_op1 = build_minus_one_cst (type);
2587 : 1 : tree res_op2;
2588 : 1 : res_op2 = build_one_cst (type);
2589 : 1 : tree _r;
2590 : 1 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
2591 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 519, __FILE__, __LINE__, true);
2592 : 1 : return _r;
2593 : : }
2594 : 0 : next_after_fail728:;
2595 : : }
2596 : : return NULL_TREE;
2597 : : }
2598 : :
2599 : : tree
2600 : 2385551 : generic_simplify_313 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2601 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2602 : : const enum tree_code ARG_UNUSED (floor_divmod),
2603 : : const enum tree_code ARG_UNUSED (trunc_divmod))
2604 : : {
2605 : 2385551 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2606 : 0 : if ((INTEGRAL_TYPE_P (type) || VECTOR_INTEGER_TYPE_P (type))
2607 : 2385551 : && TYPE_UNSIGNED (type)
2608 : : )
2609 : : {
2610 : 2377456 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail736;
2611 : 2377456 : {
2612 : 2377456 : tree res_op0;
2613 : 2377456 : res_op0 = captures[0];
2614 : 2377456 : tree res_op1;
2615 : 2377456 : res_op1 = captures[1];
2616 : 2377456 : tree _r;
2617 : 2377456 : _r = fold_build2_loc (loc, trunc_divmod, type, res_op0, res_op1);
2618 : 2377456 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 527, __FILE__, __LINE__, true);
2619 : 2377456 : return _r;
2620 : : }
2621 : 0 : next_after_fail736:;
2622 : : }
2623 : : return NULL_TREE;
2624 : : }
2625 : :
2626 : : tree
2627 : 8780 : generic_simplify_319 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2628 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2629 : : const enum tree_code ARG_UNUSED (mod))
2630 : : {
2631 : 8780 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2632 : 0 : if (ANY_INTEGRAL_TYPE_P (type)
2633 : 8780 : && TYPE_OVERFLOW_UNDEFINED (type)
2634 : 17560 : && wi::multiple_of_p (wi::to_wide (captures[1]), wi::to_wide (captures[2]),
2635 : 193 : TYPE_SIGN (type))
2636 : : )
2637 : : {
2638 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail742;
2639 : 0 : {
2640 : 0 : tree _r;
2641 : 0 : _r = build_zero_cst (type);
2642 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
2643 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2644 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2645 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2646 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
2647 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2648 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 533, __FILE__, __LINE__, true);
2649 : 0 : return _r;
2650 : : }
2651 : 0 : next_after_fail742:;
2652 : : }
2653 : : return NULL_TREE;
2654 : : }
2655 : :
2656 : : tree
2657 : 6 : generic_simplify_328 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2658 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2659 : : const combined_fn ARG_UNUSED (COS),
2660 : : const combined_fn ARG_UNUSED (SIN),
2661 : : const combined_fn ARG_UNUSED (TAN))
2662 : : {
2663 : 6 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2664 : 6 : if (flag_unsafe_math_optimizations && canonicalize_math_p ()
2665 : : )
2666 : : {
2667 : 6 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail753;
2668 : 6 : {
2669 : 6 : tree res_op0;
2670 : 6 : res_op0 = build_one_cst (type);
2671 : 6 : tree res_op1;
2672 : 6 : {
2673 : 6 : tree _o1[1], _r1;
2674 : 6 : _o1[0] = captures[1];
2675 : 6 : _r1 = maybe_build_call_expr_loc (loc, TAN, TREE_TYPE (_o1[0]), 1, _o1[0]);
2676 : 6 : if (!_r1)
2677 : 0 : goto next_after_fail753;
2678 : 6 : res_op1 = _r1;
2679 : : }
2680 : 6 : tree _r;
2681 : 6 : _r = fold_build2_loc (loc, RDIV_EXPR, type, res_op0, res_op1);
2682 : 6 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 544, __FILE__, __LINE__, true);
2683 : 6 : return _r;
2684 : : }
2685 : : next_after_fail753:;
2686 : : }
2687 : : return NULL_TREE;
2688 : : }
2689 : :
2690 : : tree
2691 : 80674 : generic_simplify_336 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2692 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2693 : : const enum tree_code ARG_UNUSED (op))
2694 : : {
2695 : 80674 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2696 : 161348 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
2697 : 80674 : && TYPE_UNSIGNED (TREE_TYPE (captures[1]))
2698 : 161348 : && wi::only_sign_bit_p (wi::to_wide (captures[1]))
2699 : : )
2700 : : {
2701 : 5 : {
2702 : 5 : tree stype = signed_type_for (TREE_TYPE (captures[1]));
2703 : 5 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail763;
2704 : 5 : {
2705 : 5 : tree res_op0;
2706 : 5 : {
2707 : 5 : tree _o1[1], _r1;
2708 : 5 : _o1[0] = captures[0];
2709 : 5 : if (TREE_TYPE (_o1[0]) != stype)
2710 : : {
2711 : 5 : _r1 = fold_build1_loc (loc, NOP_EXPR, stype, _o1[0]);
2712 : : }
2713 : : else
2714 : : _r1 = _o1[0];
2715 : 5 : res_op0 = _r1;
2716 : : }
2717 : 5 : tree res_op1;
2718 : 5 : {
2719 : 5 : tree _o1[1], _r1;
2720 : 5 : _o1[0] = captures[2];
2721 : 5 : if (TREE_TYPE (_o1[0]) != stype)
2722 : : {
2723 : 5 : _r1 = fold_build1_loc (loc, NOP_EXPR, stype, _o1[0]);
2724 : : }
2725 : : else
2726 : : _r1 = _o1[0];
2727 : 5 : res_op1 = _r1;
2728 : : }
2729 : 5 : tree _r;
2730 : 5 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
2731 : 5 : if (TREE_SIDE_EFFECTS (captures[1]))
2732 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2733 : 5 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 554, __FILE__, __LINE__, true);
2734 : 5 : return _r;
2735 : : }
2736 : 0 : next_after_fail763:;
2737 : : }
2738 : : }
2739 : : return NULL_TREE;
2740 : : }
2741 : :
2742 : : tree
2743 : 20172516 : generic_simplify_348 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2744 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2745 : : const enum tree_code ARG_UNUSED (cmp))
2746 : : {
2747 : 20172516 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2748 : 40338853 : if ((INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
2749 : 11650 : || POINTER_TYPE_P (TREE_TYPE (captures[2]))
2750 : 1668 : || VECTOR_INTEGER_TYPE_P (TREE_TYPE (captures[2])))
2751 : 40338853 : && tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
2752 : : )
2753 : : {
2754 : 20172516 : {
2755 : 20172516 : tree cst = uniform_integer_cst_p (captures[2]);
2756 : 20172516 : tree arg1_type = TREE_TYPE (cst);
2757 : 20172516 : unsigned int prec = TYPE_PRECISION (arg1_type);
2758 : 20172516 : wide_int max = wi::max_value (arg1_type);
2759 : 20172516 : wide_int signed_max = wi::max_value (prec, SIGNED);
2760 : 20172516 : wide_int min = wi::min_value (arg1_type);
2761 : 20172516 : if (wi::to_wide (cst) == max
2762 : : )
2763 : : {
2764 : 157210 : if (cmp == GT_EXPR
2765 : : )
2766 : : {
2767 : 101431 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail793;
2768 : 101431 : {
2769 : 101431 : tree _r;
2770 : 101431 : _r = constant_boolean_node (false, type);
2771 : 101431 : if (TREE_SIDE_EFFECTS (captures[0]))
2772 : 19 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2773 : 101431 : if (TREE_SIDE_EFFECTS (captures[2]))
2774 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2775 : 101431 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 568, __FILE__, __LINE__, true);
2776 : 101431 : return _r;
2777 : : }
2778 : 0 : next_after_fail793:;
2779 : : }
2780 : : else
2781 : : {
2782 : 55779 : if (cmp == GE_EXPR
2783 : : )
2784 : : {
2785 : 13 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail794;
2786 : 13 : {
2787 : 13 : tree res_op0;
2788 : 13 : res_op0 = captures[0];
2789 : 13 : tree res_op1;
2790 : 13 : res_op1 = captures[2];
2791 : 13 : tree _r;
2792 : 13 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
2793 : 13 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 569, __FILE__, __LINE__, true);
2794 : 13 : return _r;
2795 : : }
2796 : 0 : next_after_fail794:;
2797 : : }
2798 : : else
2799 : : {
2800 : 55766 : if (cmp == LE_EXPR
2801 : : )
2802 : : {
2803 : 55756 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail795;
2804 : 55756 : {
2805 : 55756 : tree _r;
2806 : 55756 : _r = constant_boolean_node (true, type);
2807 : 55756 : if (TREE_SIDE_EFFECTS (captures[0]))
2808 : 23 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2809 : 55756 : if (TREE_SIDE_EFFECTS (captures[2]))
2810 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2811 : 55756 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 570, __FILE__, __LINE__, true);
2812 : 55756 : return _r;
2813 : : }
2814 : 0 : next_after_fail795:;
2815 : : }
2816 : : else
2817 : : {
2818 : 10 : if (cmp == LT_EXPR
2819 : : )
2820 : : {
2821 : 10 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail796;
2822 : 10 : {
2823 : 10 : tree res_op0;
2824 : 10 : res_op0 = captures[0];
2825 : 10 : tree res_op1;
2826 : 10 : res_op1 = captures[2];
2827 : 10 : tree _r;
2828 : 10 : _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
2829 : 10 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 571, __FILE__, __LINE__, true);
2830 : 10 : return _r;
2831 : : }
2832 : 0 : next_after_fail796:;
2833 : : }
2834 : : }
2835 : : }
2836 : : }
2837 : : }
2838 : : else
2839 : : {
2840 : 20015306 : if (wi::to_wide (cst) == min
2841 : : )
2842 : : {
2843 : 1164089 : if (cmp == LT_EXPR
2844 : : )
2845 : : {
2846 : 400410 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail797;
2847 : 400410 : {
2848 : 400410 : tree _r;
2849 : 400410 : _r = constant_boolean_node (false, type);
2850 : 400410 : if (TREE_SIDE_EFFECTS (captures[0]))
2851 : 41 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2852 : 400410 : if (TREE_SIDE_EFFECTS (captures[2]))
2853 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2854 : 400410 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 572, __FILE__, __LINE__, true);
2855 : 400410 : return _r;
2856 : : }
2857 : 0 : next_after_fail797:;
2858 : : }
2859 : : else
2860 : : {
2861 : 763679 : if (cmp == LE_EXPR
2862 : : )
2863 : : {
2864 : 90285 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail798;
2865 : 90285 : {
2866 : 90285 : tree res_op0;
2867 : 90285 : res_op0 = captures[0];
2868 : 90285 : tree res_op1;
2869 : 90285 : res_op1 = captures[2];
2870 : 90285 : tree _r;
2871 : 90285 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
2872 : 90285 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 573, __FILE__, __LINE__, true);
2873 : 90285 : return _r;
2874 : : }
2875 : 0 : next_after_fail798:;
2876 : : }
2877 : : else
2878 : : {
2879 : 673394 : if (cmp == GE_EXPR
2880 : : )
2881 : : {
2882 : 253829 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail799;
2883 : 253829 : {
2884 : 253829 : tree _r;
2885 : 253829 : _r = constant_boolean_node (true, type);
2886 : 253829 : if (TREE_SIDE_EFFECTS (captures[0]))
2887 : 9 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2888 : 253829 : if (TREE_SIDE_EFFECTS (captures[2]))
2889 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2890 : 253829 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 574, __FILE__, __LINE__, true);
2891 : 253829 : return _r;
2892 : : }
2893 : 0 : next_after_fail799:;
2894 : : }
2895 : : else
2896 : : {
2897 : 419565 : if (cmp == GT_EXPR
2898 : : )
2899 : : {
2900 : 419565 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail800;
2901 : 419565 : {
2902 : 419565 : tree res_op0;
2903 : 419565 : res_op0 = captures[0];
2904 : 419565 : tree res_op1;
2905 : 419565 : res_op1 = captures[2];
2906 : 419565 : tree _r;
2907 : 419565 : _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
2908 : 419565 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 575, __FILE__, __LINE__, true);
2909 : 419565 : return _r;
2910 : : }
2911 : 0 : next_after_fail800:;
2912 : : }
2913 : : }
2914 : : }
2915 : : }
2916 : : }
2917 : : else
2918 : : {
2919 : 18851220 : if (wi::to_wide (cst) == max - 1
2920 : : )
2921 : : {
2922 : 368599 : if (cmp == GT_EXPR
2923 : : )
2924 : : {
2925 : 127115 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail801;
2926 : 127115 : {
2927 : 127115 : tree res_op0;
2928 : 127115 : res_op0 = captures[0];
2929 : 127115 : tree res_op1;
2930 : 127115 : res_op1 = build_uniform_cst (TREE_TYPE (captures[2]),
2931 : 127115 : wide_int_to_tree (TREE_TYPE (cst),
2932 : 127115 : wi::to_wide (cst)
2933 : 254230 : + 1));
2934 : 127115 : tree _r;
2935 : 127115 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
2936 : 127115 : if (TREE_SIDE_EFFECTS (captures[2]))
2937 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2938 : 127115 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 576, __FILE__, __LINE__, true);
2939 : 127115 : return _r;
2940 : : }
2941 : 0 : next_after_fail801:;
2942 : : }
2943 : : else
2944 : : {
2945 : 241484 : if (cmp == LE_EXPR
2946 : : )
2947 : : {
2948 : 241484 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail802;
2949 : 241484 : {
2950 : 241484 : tree res_op0;
2951 : 241484 : res_op0 = captures[0];
2952 : 241484 : tree res_op1;
2953 : 241484 : res_op1 = build_uniform_cst (TREE_TYPE (captures[2]),
2954 : 241484 : wide_int_to_tree (TREE_TYPE (cst),
2955 : 241484 : wi::to_wide (cst)
2956 : 482968 : + 1));
2957 : 241484 : tree _r;
2958 : 241484 : _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
2959 : 241484 : if (TREE_SIDE_EFFECTS (captures[2]))
2960 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2961 : 241484 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 577, __FILE__, __LINE__, true);
2962 : 241484 : return _r;
2963 : : }
2964 : 0 : next_after_fail802:;
2965 : : }
2966 : : }
2967 : : }
2968 : : else
2969 : : {
2970 : 18482621 : if (wi::to_wide (cst) == min + 1
2971 : : )
2972 : : {
2973 : 680993 : if (cmp == GE_EXPR
2974 : : )
2975 : : {
2976 : 46429 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail803;
2977 : 46429 : {
2978 : 46429 : tree res_op0;
2979 : 46429 : res_op0 = captures[0];
2980 : 46429 : tree res_op1;
2981 : 46429 : res_op1 = build_uniform_cst (TREE_TYPE (captures[2]),
2982 : 46429 : wide_int_to_tree (TREE_TYPE (cst),
2983 : 46429 : wi::to_wide (cst)
2984 : 92858 : - 1));
2985 : 46429 : tree _r;
2986 : 46429 : _r = fold_build2_loc (loc, NE_EXPR, type, res_op0, res_op1);
2987 : 46429 : if (TREE_SIDE_EFFECTS (captures[2]))
2988 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2989 : 46429 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 578, __FILE__, __LINE__, true);
2990 : 46429 : return _r;
2991 : : }
2992 : 0 : next_after_fail803:;
2993 : : }
2994 : : else
2995 : : {
2996 : 634564 : if (cmp == LT_EXPR
2997 : : )
2998 : : {
2999 : 27854 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail804;
3000 : 27854 : {
3001 : 27854 : tree res_op0;
3002 : 27854 : res_op0 = captures[0];
3003 : 27854 : tree res_op1;
3004 : 27854 : res_op1 = build_uniform_cst (TREE_TYPE (captures[2]),
3005 : 27854 : wide_int_to_tree (TREE_TYPE (cst),
3006 : 27854 : wi::to_wide (cst)
3007 : 55708 : - 1));
3008 : 27854 : tree _r;
3009 : 27854 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
3010 : 27854 : if (TREE_SIDE_EFFECTS (captures[2]))
3011 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3012 : 27854 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 579, __FILE__, __LINE__, true);
3013 : 27854 : return _r;
3014 : : }
3015 : 0 : next_after_fail804:;
3016 : : }
3017 : : }
3018 : : }
3019 : : else
3020 : : {
3021 : 17801625 : if (wi::to_wide (cst) == signed_max
3022 : 89480 : && TYPE_UNSIGNED (arg1_type)
3023 : 89480 : && TYPE_MODE (arg1_type) != BLKmode
3024 : 17801632 : && prec == GET_MODE_PRECISION (SCALAR_INT_TYPE_MODE (arg1_type))
3025 : 17890817 : && INTEGRAL_TYPE_P (arg1_type)
3026 : : )
3027 : : {
3028 : 89185 : if (cmp == LE_EXPR || cmp == GT_EXPR
3029 : : )
3030 : : {
3031 : 89185 : {
3032 : 89185 : tree st = signed_type_for (TREE_TYPE (captures[2]));
3033 : 89185 : if (cst == captures[2] && cmp == LE_EXPR
3034 : : )
3035 : : {
3036 : 39861 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail805;
3037 : 39861 : {
3038 : 39861 : tree res_op0;
3039 : 39861 : {
3040 : 39861 : tree _o1[1], _r1;
3041 : 39861 : _o1[0] = captures[1];
3042 : 39861 : if (TREE_TYPE (_o1[0]) != st)
3043 : : {
3044 : 39861 : _r1 = fold_build1_loc (loc, NOP_EXPR, st, _o1[0]);
3045 : : }
3046 : : else
3047 : : _r1 = _o1[0];
3048 : 39861 : res_op0 = _r1;
3049 : : }
3050 : 39861 : tree res_op1;
3051 : 39861 : res_op1 = build_zero_cst (st);
3052 : 39861 : tree _r;
3053 : 39861 : _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
3054 : 39861 : if (TREE_SIDE_EFFECTS (captures[2]))
3055 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3056 : 39861 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 580, __FILE__, __LINE__, true);
3057 : 39861 : return _r;
3058 : : }
3059 : 0 : next_after_fail805:;
3060 : 0 : }
3061 : : else
3062 : : {
3063 : 49324 : if (cst == captures[2] && cmp == GT_EXPR
3064 : : )
3065 : : {
3066 : 49238 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail806;
3067 : 49238 : {
3068 : 49238 : tree res_op0;
3069 : 49238 : {
3070 : 49238 : tree _o1[1], _r1;
3071 : 49238 : _o1[0] = captures[1];
3072 : 49238 : if (TREE_TYPE (_o1[0]) != st)
3073 : : {
3074 : 49238 : _r1 = fold_build1_loc (loc, NOP_EXPR, st, _o1[0]);
3075 : : }
3076 : : else
3077 : : _r1 = _o1[0];
3078 : 49238 : res_op0 = _r1;
3079 : : }
3080 : 49238 : tree res_op1;
3081 : 49238 : res_op1 = build_zero_cst (st);
3082 : 49238 : tree _r;
3083 : 49238 : _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
3084 : 49238 : if (TREE_SIDE_EFFECTS (captures[2]))
3085 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3086 : 49238 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 581, __FILE__, __LINE__, true);
3087 : 49238 : return _r;
3088 : : }
3089 : 0 : next_after_fail806:;
3090 : 0 : }
3091 : : else
3092 : : {
3093 : 86 : if (cmp == LE_EXPR
3094 : : )
3095 : : {
3096 : 30 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail807;
3097 : 30 : {
3098 : 30 : tree res_op0;
3099 : 30 : {
3100 : 30 : tree _o1[1], _r1;
3101 : 30 : _o1[0] = captures[1];
3102 : 30 : if (TREE_TYPE (_o1[0]) != st)
3103 : : {
3104 : 30 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, st, _o1[0]);
3105 : : }
3106 : : else
3107 : : _r1 = _o1[0];
3108 : 30 : res_op0 = _r1;
3109 : : }
3110 : 30 : tree res_op1;
3111 : 30 : res_op1 = build_zero_cst (st);
3112 : 30 : tree _r;
3113 : 30 : _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
3114 : 30 : if (TREE_SIDE_EFFECTS (captures[2]))
3115 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3116 : 30 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 582, __FILE__, __LINE__, true);
3117 : 30 : return _r;
3118 : : }
3119 : 0 : next_after_fail807:;
3120 : : }
3121 : : else
3122 : : {
3123 : 56 : if (cmp == GT_EXPR
3124 : : )
3125 : : {
3126 : 56 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail808;
3127 : 56 : {
3128 : 56 : tree res_op0;
3129 : 56 : {
3130 : 56 : tree _o1[1], _r1;
3131 : 56 : _o1[0] = captures[1];
3132 : 56 : if (TREE_TYPE (_o1[0]) != st)
3133 : : {
3134 : 56 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, st, _o1[0]);
3135 : : }
3136 : : else
3137 : : _r1 = _o1[0];
3138 : 56 : res_op0 = _r1;
3139 : : }
3140 : 56 : tree res_op1;
3141 : 56 : res_op1 = build_zero_cst (st);
3142 : 56 : tree _r;
3143 : 56 : _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
3144 : 56 : if (TREE_SIDE_EFFECTS (captures[2]))
3145 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3146 : 56 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 583, __FILE__, __LINE__, true);
3147 : 56 : return _r;
3148 : : }
3149 : 0 : next_after_fail808:;
3150 : : }
3151 : : }
3152 : : }
3153 : : }
3154 : : }
3155 : : }
3156 : : }
3157 : : }
3158 : : }
3159 : : }
3160 : : }
3161 : 20172522 : }
3162 : : }
3163 : : return NULL_TREE;
3164 : : }
3165 : :
3166 : : tree
3167 : 0 : generic_simplify_397 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3168 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3169 : : {
3170 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3171 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail888;
3172 : 0 : {
3173 : 0 : tree _r;
3174 : 0 : _r = captures[0];
3175 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
3176 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3177 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 644, __FILE__, __LINE__, true);
3178 : : return _r;
3179 : : }
3180 : 0 : next_after_fail888:;
3181 : 0 : return NULL_TREE;
3182 : : }
3183 : :
3184 : : tree
3185 : 0 : generic_simplify_399 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3186 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3187 : : const combined_fn ARG_UNUSED (copysigns),
3188 : : const combined_fn ARG_UNUSED (hypots))
3189 : : {
3190 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3191 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail890;
3192 : 0 : {
3193 : 0 : tree res_op0;
3194 : 0 : res_op0 = captures[0];
3195 : 0 : tree res_op1;
3196 : 0 : res_op1 = captures[1];
3197 : 0 : tree _r;
3198 : 0 : _r = maybe_build_call_expr_loc (loc, hypots, type, 2, res_op0, res_op1);
3199 : 0 : if (!_r)
3200 : 0 : goto next_after_fail890;
3201 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
3202 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3203 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 646, __FILE__, __LINE__, true);
3204 : : return _r;
3205 : : }
3206 : : next_after_fail890:;
3207 : : return NULL_TREE;
3208 : : }
3209 : :
3210 : : tree
3211 : 0 : generic_simplify_405 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3212 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3213 : : {
3214 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3215 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail896;
3216 : 0 : {
3217 : 0 : tree res_op0;
3218 : 0 : res_op0 = captures[0];
3219 : 0 : tree res_op1;
3220 : 0 : res_op1 = captures[1];
3221 : 0 : tree _r;
3222 : 0 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
3223 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 652, __FILE__, __LINE__, true);
3224 : : return _r;
3225 : : }
3226 : 0 : next_after_fail896:;
3227 : 0 : return NULL_TREE;
3228 : : }
3229 : :
3230 : : tree
3231 : 319 : generic_simplify_411 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3232 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3233 : : const enum tree_code ARG_UNUSED (bitop),
3234 : : const enum tree_code ARG_UNUSED (op))
3235 : : {
3236 : 319 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3237 : 319 : {
3238 : 319 : tree pmop[2];
3239 : 319 : tree utype = fold_bit_and_mask (TREE_TYPE (captures[1]), captures[5], op, captures[1], ERROR_MARK,
3240 : : NULL_TREE, NULL_TREE, captures[2], bitop, captures[3],
3241 : : captures[4], pmop);
3242 : 319 : if (utype
3243 : : )
3244 : : {
3245 : 318 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail902;
3246 : 318 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail902;
3247 : 318 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail902;
3248 : 318 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail902;
3249 : 318 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail902;
3250 : 318 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail902;
3251 : 318 : {
3252 : 318 : tree res_op0;
3253 : 318 : {
3254 : 318 : tree _o1[2], _r1;
3255 : 318 : {
3256 : 318 : tree _o2[2], _r2;
3257 : 318 : {
3258 : 318 : tree _o3[1], _r3;
3259 : 318 : _o3[0] = pmop[0];
3260 : 318 : if (TREE_TYPE (_o3[0]) != utype)
3261 : : {
3262 : 14 : _r3 = fold_build1_loc (loc, NOP_EXPR, utype, _o3[0]);
3263 : : }
3264 : : else
3265 : : _r3 = _o3[0];
3266 : 318 : _o2[0] = _r3;
3267 : : }
3268 : 318 : {
3269 : 318 : tree _o3[1], _r3;
3270 : 318 : _o3[0] = pmop[1];
3271 : 318 : if (TREE_TYPE (_o3[0]) != utype)
3272 : : {
3273 : 74 : _r3 = fold_build1_loc (loc, NOP_EXPR, utype, _o3[0]);
3274 : : }
3275 : : else
3276 : : _r3 = _o3[0];
3277 : 318 : _o2[1] = _r3;
3278 : : }
3279 : 318 : _r2 = fold_build2_loc (loc, op, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
3280 : 318 : _o1[0] = _r2;
3281 : : }
3282 : 318 : {
3283 : 318 : tree _o2[1], _r2;
3284 : 318 : _o2[0] = captures[5];
3285 : 318 : if (TREE_TYPE (_o2[0]) != utype)
3286 : : {
3287 : 14 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
3288 : : }
3289 : : else
3290 : : _r2 = _o2[0];
3291 : 318 : _o1[1] = _r2;
3292 : : }
3293 : 318 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3294 : 318 : res_op0 = _r1;
3295 : : }
3296 : 318 : tree _r;
3297 : 318 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3298 : 318 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 657, __FILE__, __LINE__, true);
3299 : 318 : return _r;
3300 : : }
3301 : 1 : next_after_fail902:;
3302 : : }
3303 : : }
3304 : 1 : return NULL_TREE;
3305 : : }
3306 : :
3307 : : tree
3308 : 8 : generic_simplify_427 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3309 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3310 : : const enum tree_code ARG_UNUSED (eqne))
3311 : : {
3312 : 8 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3313 : 8 : if (eqne == EQ_EXPR
3314 : : )
3315 : : {
3316 : 4 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail923;
3317 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail923;
3318 : 4 : {
3319 : 4 : tree _r;
3320 : 4 : _r = constant_boolean_node (false, type);
3321 : 4 : if (TREE_SIDE_EFFECTS (captures[2]))
3322 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3323 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 674, __FILE__, __LINE__, true);
3324 : 4 : return _r;
3325 : : }
3326 : : next_after_fail923:;
3327 : : }
3328 : : else
3329 : : {
3330 : 4 : if (eqne == NE_EXPR
3331 : : )
3332 : : {
3333 : 4 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail924;
3334 : 4 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail924;
3335 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail924;
3336 : 4 : {
3337 : 4 : tree _r;
3338 : 4 : _r = captures[0];
3339 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 675, __FILE__, __LINE__, true);
3340 : 4 : return _r;
3341 : : }
3342 : : next_after_fail924:;
3343 : : }
3344 : : }
3345 : : return NULL_TREE;
3346 : : }
3347 : :
3348 : : tree
3349 : 0 : generic_simplify_432 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3350 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3351 : : const enum tree_code ARG_UNUSED (eqne))
3352 : : {
3353 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3354 : 0 : if (eqne == EQ_EXPR
3355 : : )
3356 : : {
3357 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail948;
3358 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail948;
3359 : 0 : {
3360 : 0 : tree _r;
3361 : 0 : _r = constant_boolean_node (false, type);
3362 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
3363 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3364 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 674, __FILE__, __LINE__, true);
3365 : 0 : return _r;
3366 : : }
3367 : : next_after_fail948:;
3368 : : }
3369 : : else
3370 : : {
3371 : 0 : if (eqne == NE_EXPR
3372 : : )
3373 : : {
3374 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail949;
3375 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail949;
3376 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail949;
3377 : 0 : {
3378 : 0 : tree _r;
3379 : 0 : _r = captures[0];
3380 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 675, __FILE__, __LINE__, true);
3381 : 0 : return _r;
3382 : : }
3383 : : next_after_fail949:;
3384 : : }
3385 : : }
3386 : : return NULL_TREE;
3387 : : }
3388 : :
3389 : : tree
3390 : 0 : generic_simplify_436 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3391 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3392 : : const enum tree_code ARG_UNUSED (code2),
3393 : : const enum tree_code ARG_UNUSED (code1))
3394 : : {
3395 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3396 : 0 : if ((TREE_CODE (captures[2]) == INTEGER_CST
3397 : 0 : && TREE_CODE (captures[5]) == INTEGER_CST)
3398 : 0 : || ((INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
3399 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[2]))
3400 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, code2))
3401 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[2])))
3402 : 0 : && bitwise_equal_p (captures[2], captures[5]))
3403 : : )
3404 : : {
3405 : 0 : {
3406 : 0 : bool one_before = false;
3407 : 0 : bool one_after = false;
3408 : 0 : int cmp = 0;
3409 : 0 : bool allbits = true;
3410 : 0 : if (TREE_CODE (captures[2]) == INTEGER_CST
3411 : 0 : && TREE_CODE (captures[5]) == INTEGER_CST)
3412 : : {
3413 : 0 : allbits = TYPE_PRECISION (TREE_TYPE (captures[2])) <= TYPE_PRECISION (TREE_TYPE (captures[5]));
3414 : 0 : auto t1 = wi::to_wide (fold_convert (TREE_TYPE (captures[5]), captures[2]));
3415 : 0 : auto t2 = wi::to_wide (captures[5]);
3416 : 0 : cmp = wi::cmp (t1, t2, TYPE_SIGN (TREE_TYPE (captures[5])));
3417 : 0 : if (cmp < 0
3418 : 0 : && t1 == t2 - 1)
3419 : : one_before = true;
3420 : 0 : if (cmp > 0
3421 : 0 : && t1 == t2 + 1)
3422 : : one_after = true;
3423 : : }
3424 : 0 : bool val;
3425 : 0 : switch (code2)
3426 : : {
3427 : 0 : case EQ_EXPR: val = (cmp == 0); break;
3428 : 0 : case NE_EXPR: val = (cmp != 0); break;
3429 : 0 : case LT_EXPR: val = (cmp < 0); break;
3430 : 0 : case GT_EXPR: val = (cmp > 0); break;
3431 : 0 : case LE_EXPR: val = (cmp <= 0); break;
3432 : 0 : case GE_EXPR: val = (cmp >= 0); break;
3433 : 0 : default: gcc_unreachable ();
3434 : : }
3435 : 0 : if (code1 == EQ_EXPR && val
3436 : : )
3437 : : {
3438 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail954;
3439 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail954;
3440 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail954;
3441 : 0 : {
3442 : 0 : tree _r;
3443 : 0 : _r = captures[0];
3444 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 678, __FILE__, __LINE__, true);
3445 : 0 : return _r;
3446 : : }
3447 : : next_after_fail954:;
3448 : : }
3449 : : else
3450 : : {
3451 : 0 : if (code1 == EQ_EXPR && !val
3452 : : )
3453 : : {
3454 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail955;
3455 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail955;
3456 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail955;
3457 : 0 : {
3458 : 0 : tree _r;
3459 : 0 : _r = constant_boolean_node (false, type);
3460 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
3461 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3462 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 679, __FILE__, __LINE__, true);
3463 : 0 : return _r;
3464 : : }
3465 : : next_after_fail955:;
3466 : : }
3467 : : else
3468 : : {
3469 : 0 : if (code1 == NE_EXPR && !val && allbits
3470 : : )
3471 : : {
3472 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail956;
3473 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail956;
3474 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail956;
3475 : 0 : {
3476 : 0 : tree _r;
3477 : 0 : _r = captures[3];
3478 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 680, __FILE__, __LINE__, true);
3479 : 0 : return _r;
3480 : : }
3481 : : next_after_fail956:;
3482 : : }
3483 : : else
3484 : : {
3485 : 0 : if ((code1 == NE_EXPR
3486 : 0 : && code2 == GE_EXPR
3487 : 0 : && cmp == 0
3488 : 0 : && allbits)
3489 : 0 : && ((VECTOR_BOOLEAN_TYPE_P (type)
3490 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, GT_EXPR))
3491 : 0 : || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
3492 : : )
3493 : : {
3494 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail957;
3495 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail957;
3496 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail957;
3497 : 0 : {
3498 : 0 : tree res_op0;
3499 : 0 : res_op0 = captures[4];
3500 : 0 : tree res_op1;
3501 : 0 : {
3502 : 0 : tree _o1[1], _r1;
3503 : 0 : _o1[0] = captures[2];
3504 : 0 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
3505 : : {
3506 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
3507 : : }
3508 : : else
3509 : : _r1 = _o1[0];
3510 : 0 : res_op1 = _r1;
3511 : : }
3512 : 0 : tree _r;
3513 : 0 : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
3514 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 681, __FILE__, __LINE__, true);
3515 : 0 : return _r;
3516 : : }
3517 : : next_after_fail957:;
3518 : : }
3519 : : else
3520 : : {
3521 : 0 : if ((code1 == NE_EXPR
3522 : 0 : && code2 == LE_EXPR
3523 : 0 : && cmp == 0
3524 : 0 : && allbits)
3525 : 0 : && ((VECTOR_BOOLEAN_TYPE_P (type)
3526 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, LT_EXPR))
3527 : 0 : || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
3528 : : )
3529 : : {
3530 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail958;
3531 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail958;
3532 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail958;
3533 : 0 : {
3534 : 0 : tree res_op0;
3535 : 0 : res_op0 = captures[4];
3536 : 0 : tree res_op1;
3537 : 0 : {
3538 : 0 : tree _o1[1], _r1;
3539 : 0 : _o1[0] = captures[2];
3540 : 0 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
3541 : : {
3542 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
3543 : : }
3544 : : else
3545 : : _r1 = _o1[0];
3546 : 0 : res_op1 = _r1;
3547 : : }
3548 : 0 : tree _r;
3549 : 0 : _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
3550 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 682, __FILE__, __LINE__, true);
3551 : 0 : return _r;
3552 : : }
3553 : : next_after_fail958:;
3554 : : }
3555 : : else
3556 : : {
3557 : 0 : if ((code1 == NE_EXPR
3558 : 0 : && code2 == GT_EXPR
3559 : : && one_after
3560 : 0 : && allbits)
3561 : 0 : && ((VECTOR_BOOLEAN_TYPE_P (type)
3562 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, GT_EXPR))
3563 : 0 : || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
3564 : : )
3565 : : {
3566 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail959;
3567 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail959;
3568 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail959;
3569 : 0 : {
3570 : 0 : tree res_op0;
3571 : 0 : res_op0 = captures[4];
3572 : 0 : tree res_op1;
3573 : 0 : {
3574 : 0 : tree _o1[1], _r1;
3575 : 0 : _o1[0] = captures[2];
3576 : 0 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
3577 : : {
3578 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
3579 : : }
3580 : : else
3581 : : _r1 = _o1[0];
3582 : 0 : res_op1 = _r1;
3583 : : }
3584 : 0 : tree _r;
3585 : 0 : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
3586 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 683, __FILE__, __LINE__, true);
3587 : 0 : return _r;
3588 : : }
3589 : : next_after_fail959:;
3590 : : }
3591 : : else
3592 : : {
3593 : 0 : if ((code1 == NE_EXPR
3594 : 0 : && code2 == LT_EXPR
3595 : : && one_before
3596 : 0 : && allbits)
3597 : 0 : && ((VECTOR_BOOLEAN_TYPE_P (type)
3598 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[2]), type, LT_EXPR))
3599 : 0 : || !VECTOR_TYPE_P (TREE_TYPE (captures[2])))
3600 : : )
3601 : : {
3602 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail960;
3603 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail960;
3604 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail960;
3605 : 0 : {
3606 : 0 : tree res_op0;
3607 : 0 : res_op0 = captures[4];
3608 : 0 : tree res_op1;
3609 : 0 : {
3610 : 0 : tree _o1[1], _r1;
3611 : 0 : _o1[0] = captures[2];
3612 : 0 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
3613 : : {
3614 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
3615 : : }
3616 : : else
3617 : : _r1 = _o1[0];
3618 : 0 : res_op1 = _r1;
3619 : : }
3620 : 0 : tree _r;
3621 : 0 : _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
3622 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 684, __FILE__, __LINE__, true);
3623 : 0 : return _r;
3624 : : }
3625 : : next_after_fail960:;
3626 : : }
3627 : : }
3628 : : }
3629 : : }
3630 : : }
3631 : : }
3632 : : }
3633 : : }
3634 : : }
3635 : : return NULL_TREE;
3636 : : }
3637 : :
3638 : : tree
3639 : 3806 : generic_simplify_467 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3640 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
3641 : : {
3642 : 3806 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3643 : 3806 : if (!TYPE_SATURATING (type)
3644 : : )
3645 : : {
3646 : 3771 : if (!TYPE_OVERFLOW_SANITIZED (type)
3647 : 7564 : && !TYPE_OVERFLOW_SANITIZED (TREE_TYPE (captures[0]))
3648 : : )
3649 : : {
3650 : 3793 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1004;
3651 : 3793 : {
3652 : 3793 : tree res_op0;
3653 : 3793 : {
3654 : 3793 : tree _o1[1], _r1;
3655 : 3793 : _o1[0] = captures[0];
3656 : 3793 : if (TREE_TYPE (_o1[0]) != type)
3657 : : {
3658 : 0 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
3659 : : }
3660 : : else
3661 : : _r1 = _o1[0];
3662 : 3793 : res_op0 = _r1;
3663 : : }
3664 : 3793 : tree _r;
3665 : 3793 : _r = non_lvalue_loc (loc, res_op0);
3666 : 3793 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 718, __FILE__, __LINE__, true);
3667 : 3793 : return _r;
3668 : : }
3669 : 0 : next_after_fail1004:;
3670 : : }
3671 : : }
3672 : : return NULL_TREE;
3673 : : }
3674 : :
3675 : : tree
3676 : 0 : generic_simplify_475 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3677 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
3678 : : {
3679 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3680 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1014;
3681 : 0 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1014;
3682 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1014;
3683 : 0 : {
3684 : 0 : tree _r;
3685 : 0 : _r = captures[2];
3686 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 727, __FILE__, __LINE__, true);
3687 : : return _r;
3688 : : }
3689 : : next_after_fail1014:;
3690 : : return NULL_TREE;
3691 : : }
3692 : :
3693 : : tree
3694 : 0 : generic_simplify_481 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3695 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
3696 : : const enum tree_code ARG_UNUSED (cmp))
3697 : : {
3698 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3699 : 0 : if (INTEGRAL_TYPE_P (type)
3700 : : )
3701 : : {
3702 : 0 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1023;
3703 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1023;
3704 : 0 : {
3705 : 0 : tree _r;
3706 : 0 : _r = captures[2];
3707 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
3708 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3709 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 736, __FILE__, __LINE__, true);
3710 : 0 : return _r;
3711 : : }
3712 : : next_after_fail1023:;
3713 : : }
3714 : : return NULL_TREE;
3715 : : }
3716 : :
3717 : : tree
3718 : 0 : generic_simplify_486 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3719 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
3720 : : const enum tree_code ARG_UNUSED (op))
3721 : : {
3722 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3723 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1028;
3724 : 0 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1028;
3725 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1028;
3726 : 0 : {
3727 : 0 : tree _r;
3728 : 0 : _r = captures[2];
3729 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 741, __FILE__, __LINE__, true);
3730 : : return _r;
3731 : : }
3732 : : next_after_fail1028:;
3733 : : return NULL_TREE;
3734 : : }
3735 : :
3736 : : tree
3737 : 0 : generic_simplify_491 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3738 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
3739 : : const enum tree_code ARG_UNUSED (cmp))
3740 : : {
3741 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3742 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1034;
3743 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1034;
3744 : 0 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1034;
3745 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1034;
3746 : 0 : {
3747 : 0 : tree _r;
3748 : 0 : _r = captures[0];
3749 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 747, __FILE__, __LINE__, true);
3750 : : return _r;
3751 : : }
3752 : : next_after_fail1034:;
3753 : : return NULL_TREE;
3754 : : }
3755 : :
3756 : : tree
3757 : 0 : generic_simplify_497 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3758 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3759 : : const enum tree_code ARG_UNUSED (minmax))
3760 : : {
3761 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3762 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1042;
3763 : 0 : {
3764 : 0 : tree _r;
3765 : 0 : _r = captures[0];
3766 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 754, __FILE__, __LINE__, true);
3767 : : return _r;
3768 : : }
3769 : 0 : next_after_fail1042:;
3770 : 0 : return NULL_TREE;
3771 : : }
3772 : :
3773 : : tree
3774 : 2 : generic_simplify_502 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3775 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3776 : : const enum tree_code ARG_UNUSED (minmax),
3777 : : const enum tree_code ARG_UNUSED (cmp))
3778 : : {
3779 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3780 : 2 : {
3781 : 2 : poly_int64 off0, off1;
3782 : 2 : tree base0, base1;
3783 : 2 : int equal = address_compare (cmp, TREE_TYPE (captures[0]), captures[1], captures[3], base0, base1,
3784 : : off0, off1,
3785 : : 1
3786 : : );
3787 : 2 : if (equal == 1
3788 : : )
3789 : : {
3790 : 0 : if (minmax == MIN_EXPR
3791 : : )
3792 : : {
3793 : 0 : if (known_le (off0, off1)
3794 : : )
3795 : : {
3796 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1047;
3797 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1047;
3798 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1047;
3799 : 0 : {
3800 : 0 : tree _r;
3801 : 0 : _r = captures[0];
3802 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 758, __FILE__, __LINE__, true);
3803 : 0 : return _r;
3804 : : }
3805 : 2 : next_after_fail1047:;
3806 : : }
3807 : : else
3808 : : {
3809 : 0 : if (known_gt (off0, off1)
3810 : : )
3811 : : {
3812 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1048;
3813 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1048;
3814 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1048;
3815 : 0 : {
3816 : 0 : tree _r;
3817 : 0 : _r = captures[2];
3818 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 759, __FILE__, __LINE__, true);
3819 : 0 : return _r;
3820 : : }
3821 : 2 : next_after_fail1048:;
3822 : : }
3823 : : }
3824 : : }
3825 : : else
3826 : : {
3827 : 0 : if (known_ge (off0, off1)
3828 : : )
3829 : : {
3830 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1049;
3831 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail1049;
3832 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1049;
3833 : 0 : {
3834 : 0 : tree _r;
3835 : 0 : _r = captures[0];
3836 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 760, __FILE__, __LINE__, true);
3837 : 0 : return _r;
3838 : : }
3839 : 2 : next_after_fail1049:;
3840 : : }
3841 : : else
3842 : : {
3843 : 0 : if (known_lt (off0, off1)
3844 : : )
3845 : : {
3846 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1050;
3847 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1050;
3848 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1050;
3849 : 0 : {
3850 : 0 : tree _r;
3851 : 0 : _r = captures[2];
3852 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 761, __FILE__, __LINE__, true);
3853 : 0 : return _r;
3854 : : }
3855 : 2 : next_after_fail1050:;
3856 : : }
3857 : : }
3858 : : }
3859 : : }
3860 : : }
3861 : 2 : return NULL_TREE;
3862 : : }
3863 : :
3864 : : tree
3865 : 5779 : generic_simplify_516 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3866 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
3867 : : {
3868 : 5779 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3869 : 11558 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
3870 : 5779 : && TYPE_MAX_VALUE (TREE_TYPE (captures[1]))
3871 : 5779 : && types_match (TREE_TYPE (captures[1]), TREE_TYPE (TREE_TYPE (captures[0])))
3872 : 8068 : && int_fits_type_p (captures[2], TREE_TYPE (captures[1]))
3873 : : )
3874 : : {
3875 : 1897 : if (TYPE_UNSIGNED (TREE_TYPE (captures[1]))
3876 : : )
3877 : : {
3878 : 929 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1074;
3879 : 929 : {
3880 : 929 : tree res_op0;
3881 : 929 : {
3882 : 929 : tree _o1[2], _r1;
3883 : 929 : _o1[0] = captures[1];
3884 : 929 : {
3885 : 929 : tree _o2[2], _r2;
3886 : 929 : _o2[0] = TYPE_MAX_VALUE (TREE_TYPE (captures[1]));
3887 : 929 : _o2[1] = captures[2];
3888 : 929 : _r2 = fold_build2_loc (loc, TRUNC_DIV_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
3889 : 929 : if (EXPR_P (_r2))
3890 : 0 : goto next_after_fail1074;
3891 : 929 : _o1[1] = _r2;
3892 : : }
3893 : 929 : _r1 = fold_build2_loc (loc, GT_EXPR, boolean_type_node, _o1[0], _o1[1]);
3894 : 929 : res_op0 = _r1;
3895 : : }
3896 : 929 : tree _r;
3897 : 929 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3898 : 929 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 773, __FILE__, __LINE__, true);
3899 : 929 : return _r;
3900 : : }
3901 : : next_after_fail1074:;
3902 : : }
3903 : : else
3904 : : {
3905 : 968 : if (TYPE_MIN_VALUE (TREE_TYPE (captures[1]))
3906 : : )
3907 : : {
3908 : 968 : if (integer_minus_onep (captures[2])
3909 : : )
3910 : : {
3911 : 56 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1075;
3912 : 56 : {
3913 : 56 : tree res_op0;
3914 : 56 : {
3915 : 56 : tree _o1[2], _r1;
3916 : 56 : _o1[0] = captures[1];
3917 : 56 : _o1[1] = TYPE_MIN_VALUE (TREE_TYPE (captures[1]));
3918 : 56 : _r1 = fold_build2_loc (loc, EQ_EXPR, boolean_type_node, _o1[0], _o1[1]);
3919 : 56 : res_op0 = _r1;
3920 : : }
3921 : 56 : tree _r;
3922 : 56 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3923 : 56 : if (TREE_SIDE_EFFECTS (captures[2]))
3924 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3925 : 56 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 774, __FILE__, __LINE__, true);
3926 : 56 : return _r;
3927 : : }
3928 : 0 : next_after_fail1075:;
3929 : : }
3930 : : else
3931 : : {
3932 : 912 : {
3933 : 912 : tree div = fold_convert (TREE_TYPE (captures[1]), captures[2]);
3934 : 1824 : tree lo = int_const_binop (TRUNC_DIV_EXPR,
3935 : 912 : TYPE_MIN_VALUE (TREE_TYPE (captures[1])), div);
3936 : 1824 : tree hi = int_const_binop (TRUNC_DIV_EXPR,
3937 : 912 : TYPE_MAX_VALUE (TREE_TYPE (captures[1])), div);
3938 : 912 : tree etype = range_check_type (TREE_TYPE (captures[1]));
3939 : 912 : if (etype)
3940 : : {
3941 : 912 : if (wi::neg_p (wi::to_wide (div)))
3942 : 88 : std::swap (lo, hi);
3943 : 912 : lo = fold_convert (etype, lo);
3944 : 912 : hi = fold_convert (etype, hi);
3945 : 912 : hi = int_const_binop (MINUS_EXPR, hi, lo);
3946 : : }
3947 : 912 : if (etype
3948 : : )
3949 : : {
3950 : 912 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1076;
3951 : 912 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1076;
3952 : 912 : {
3953 : 912 : tree res_op0;
3954 : 912 : {
3955 : 912 : tree _o1[2], _r1;
3956 : 912 : {
3957 : 912 : tree _o2[2], _r2;
3958 : 912 : {
3959 : 912 : tree _o3[1], _r3;
3960 : 912 : _o3[0] = captures[1];
3961 : 912 : if (TREE_TYPE (_o3[0]) != etype)
3962 : : {
3963 : 912 : _r3 = fold_build1_loc (loc, NOP_EXPR, etype, _o3[0]);
3964 : : }
3965 : : else
3966 : : _r3 = _o3[0];
3967 : 912 : _o2[0] = _r3;
3968 : : }
3969 : 912 : _o2[1] = lo;
3970 : 912 : _r2 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
3971 : 912 : _o1[0] = _r2;
3972 : : }
3973 : 912 : _o1[1] = hi;
3974 : 912 : _r1 = fold_build2_loc (loc, GT_EXPR, boolean_type_node, _o1[0], _o1[1]);
3975 : 912 : res_op0 = _r1;
3976 : : }
3977 : 912 : tree _r;
3978 : 912 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3979 : 912 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 775, __FILE__, __LINE__, true);
3980 : 912 : return _r;
3981 : : }
3982 : : next_after_fail1076:;
3983 : : }
3984 : : }
3985 : : }
3986 : : }
3987 : : }
3988 : : }
3989 : : return NULL_TREE;
3990 : : }
3991 : :
3992 : : tree
3993 : 0 : generic_simplify_545 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3994 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
3995 : : const combined_fn ARG_UNUSED (sins),
3996 : : const combined_fn ARG_UNUSED (atans),
3997 : : const combined_fn ARG_UNUSED (sqrts),
3998 : : const combined_fn ARG_UNUSED (copysigns))
3999 : : {
4000 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4001 : 0 : {
4002 : 0 : REAL_VALUE_TYPE r_cst;
4003 : 0 : build_sinatan_real (&r_cst, type);
4004 : 0 : tree t_cst = build_real (type, r_cst);
4005 : 0 : tree t_one = build_one_cst (type);
4006 : 0 : if (SCALAR_FLOAT_TYPE_P (type)
4007 : : )
4008 : : {
4009 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1105;
4010 : 0 : {
4011 : 0 : if (! tree_invariant_p (captures[1])) goto next_after_fail1105;
4012 : 0 : tree res_op0;
4013 : 0 : {
4014 : 0 : tree _o1[2], _r1;
4015 : 0 : {
4016 : 0 : tree _o2[1], _r2;
4017 : 0 : _o2[0] = unshare_expr (captures[1]);
4018 : 0 : _r2 = fold_build1_loc (loc, ABS_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
4019 : 0 : _o1[0] = _r2;
4020 : : }
4021 : 0 : _o1[1] = t_cst;
4022 : 0 : _r1 = fold_build2_loc (loc, LT_EXPR, boolean_type_node, _o1[0], _o1[1]);
4023 : 0 : res_op0 = _r1;
4024 : : }
4025 : 0 : tree res_op1;
4026 : 0 : {
4027 : 0 : tree _o1[2], _r1;
4028 : 0 : _o1[0] = unshare_expr (captures[1]);
4029 : 0 : {
4030 : 0 : tree _o2[1], _r2;
4031 : 0 : {
4032 : 0 : tree _o3[2], _r3;
4033 : 0 : {
4034 : 0 : tree _o4[2], _r4;
4035 : 0 : _o4[0] = unshare_expr (captures[1]);
4036 : 0 : _o4[1] = unshare_expr (captures[1]);
4037 : 0 : _r4 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o4[0]), _o4[0], _o4[1]);
4038 : 0 : _o3[0] = _r4;
4039 : : }
4040 : 0 : _o3[1] = t_one;
4041 : 0 : _r3 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
4042 : 0 : _o2[0] = _r3;
4043 : : }
4044 : 0 : _r2 = maybe_build_call_expr_loc (loc, sqrts, TREE_TYPE (_o2[0]), 1, _o2[0]);
4045 : 0 : if (!_r2)
4046 : 0 : goto next_after_fail1105;
4047 : 0 : _o1[1] = _r2;
4048 : : }
4049 : 0 : _r1 = fold_build2_loc (loc, RDIV_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4050 : 0 : res_op1 = _r1;
4051 : : }
4052 : 0 : tree res_op2;
4053 : 0 : {
4054 : 0 : tree _o1[2], _r1;
4055 : 0 : _o1[0] = t_one;
4056 : 0 : _o1[1] = captures[1];
4057 : 0 : _r1 = maybe_build_call_expr_loc (loc, copysigns, TREE_TYPE (_o1[0]), 2, _o1[0], _o1[1]);
4058 : 0 : if (!_r1)
4059 : 0 : goto next_after_fail1105;
4060 : 0 : res_op2 = _r1;
4061 : : }
4062 : 0 : tree _r;
4063 : 0 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
4064 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 799, __FILE__, __LINE__, true);
4065 : 0 : return _r;
4066 : : }
4067 : 0 : next_after_fail1105:;
4068 : : }
4069 : : }
4070 : 0 : return NULL_TREE;
4071 : : }
4072 : :
4073 : : tree
4074 : 0 : generic_simplify_571 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4075 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
4076 : : {
4077 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4078 : 0 : if (canonicalize_math_after_vectorization_p ()
4079 : : )
4080 : : {
4081 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1131;
4082 : : {
4083 : : tree res_op0;
4084 : : res_op0 = captures[0];
4085 : : tree res_op1;
4086 : : res_op1 = captures[1];
4087 : : tree res_op2;
4088 : : res_op2 = captures[2];
4089 : : tree _r;
4090 : : _r = maybe_build_call_expr_loc (loc, CFN_FMA, type, 3, res_op0, res_op1, res_op2);
4091 : : if (!_r)
4092 : : goto next_after_fail1131;
4093 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 825, __FILE__, __LINE__, true);
4094 : : return _r;
4095 : : }
4096 : 0 : next_after_fail1131:;
4097 : : }
4098 : 0 : return NULL_TREE;
4099 : : }
4100 : :
4101 : : tree
4102 : 0 : generic_simplify_581 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4103 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4104 : : const combined_fn ARG_UNUSED (PARITY))
4105 : : {
4106 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4107 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1142;
4108 : 0 : {
4109 : 0 : tree res_op0;
4110 : 0 : res_op0 = captures[0];
4111 : 0 : tree _r;
4112 : 0 : _r = maybe_build_call_expr_loc (loc, PARITY, type, 1, res_op0);
4113 : 0 : if (!_r)
4114 : 0 : goto next_after_fail1142;
4115 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 831, __FILE__, __LINE__, true);
4116 : : return _r;
4117 : : }
4118 : : next_after_fail1142:;
4119 : : return NULL_TREE;
4120 : : }
4121 : :
4122 : : tree
4123 : 0 : generic_simplify_586 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4124 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4125 : : const combined_fn ARG_UNUSED (reduc))
4126 : : {
4127 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4128 : 0 : {
4129 : 0 : int i = single_nonzero_element (captures[1]);
4130 : 0 : if (i >= 0
4131 : : )
4132 : : {
4133 : 0 : {
4134 : 0 : tree elt = vector_cst_elt (captures[1], i);
4135 : 0 : tree elt_type = TREE_TYPE (elt);
4136 : 0 : unsigned int elt_bits = tree_to_uhwi (TYPE_SIZE (elt_type));
4137 : 0 : tree size = bitsize_int (elt_bits);
4138 : 0 : tree pos = bitsize_int (elt_bits * i);
4139 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1147;
4140 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1147;
4141 : 0 : {
4142 : 0 : tree res_op0;
4143 : 0 : {
4144 : 0 : tree _o1[2], _r1;
4145 : 0 : {
4146 : 0 : tree _o2[3], _r2;
4147 : 0 : _o2[0] = captures[0];
4148 : 0 : _o2[1] = size;
4149 : 0 : _o2[2] = pos;
4150 : 0 : _r2 = fold_build3_loc (loc, BIT_FIELD_REF, elt_type, _o2[0], _o2[1], _o2[2]);
4151 : 0 : _o1[0] = _r2;
4152 : : }
4153 : 0 : _o1[1] = elt;
4154 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, elt_type, _o1[0], _o1[1]);
4155 : 0 : res_op0 = _r1;
4156 : : }
4157 : 0 : tree _r;
4158 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
4159 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 834, __FILE__, __LINE__, true);
4160 : 0 : return _r;
4161 : : }
4162 : : next_after_fail1147:;
4163 : : }
4164 : : }
4165 : : }
4166 : : return NULL_TREE;
4167 : : }
4168 : :
4169 : : tree
4170 : 524810 : generic_simplify_FIX_TRUNC_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0)
4171 : : {
4172 : 524810 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4173 : 524810 : {
4174 : 524810 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4175 : 1049620 : if ((
4176 : :
4177 : : && useless_type_conversion_p (type, TREE_TYPE (captures[0])))
4178 : : || (
4179 : : 1
4180 : 524810 : && type == TREE_TYPE (captures[0]))
4181 : : )
4182 : : {
4183 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1225;
4184 : 0 : {
4185 : 0 : tree _r;
4186 : 0 : _r = captures[0];
4187 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 848, __FILE__, __LINE__, true);
4188 : 0 : return _r;
4189 : : }
4190 : 0 : next_after_fail1225:;
4191 : : }
4192 : : }
4193 : 524810 : switch (TREE_CODE (_p0))
4194 : : {
4195 : 14978 : CASE_CONVERT:
4196 : 14978 : {
4197 : 14978 : tree _q20 = TREE_OPERAND (_p0, 0);
4198 : 14978 : {
4199 : 14978 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
4200 : 14978 : {
4201 : 14978 : tree inside_type = TREE_TYPE (captures[1]);
4202 : 14978 : tree inter_type = TREE_TYPE (captures[0]);
4203 : 14978 : int inside_int = INTEGRAL_TYPE_P (inside_type);
4204 : 14978 : int inside_ptr = POINTER_TYPE_P (inside_type);
4205 : 14978 : int inside_float = FLOAT_TYPE_P (inside_type);
4206 : 14978 : int inside_vec = VECTOR_TYPE_P (inside_type);
4207 : 14978 : unsigned int inside_prec = element_precision (inside_type);
4208 : 14978 : int inside_unsignedp = TYPE_UNSIGNED (inside_type);
4209 : 14978 : int inter_int = INTEGRAL_TYPE_P (inter_type);
4210 : 14978 : int inter_ptr = POINTER_TYPE_P (inter_type);
4211 : 14978 : int inter_float = FLOAT_TYPE_P (inter_type);
4212 : 14978 : int inter_vec = VECTOR_TYPE_P (inter_type);
4213 : 14978 : unsigned int inter_prec = element_precision (inter_type);
4214 : 14978 : int inter_unsignedp = TYPE_UNSIGNED (inter_type);
4215 : 14978 : int final_int = INTEGRAL_TYPE_P (type);
4216 : 14978 : int final_ptr = POINTER_TYPE_P (type);
4217 : 14978 : int final_float = FLOAT_TYPE_P (type);
4218 : 14978 : int final_vec = VECTOR_TYPE_P (type);
4219 : 14978 : unsigned int final_prec = element_precision (type);
4220 : 14978 : int final_unsignedp = TYPE_UNSIGNED (type);
4221 : 14978 : if (((
4222 : :
4223 : : && useless_type_conversion_p (type, inside_type))
4224 : : || (
4225 : : 1
4226 : 14978 : && TYPE_MAIN_VARIANT (type) == TYPE_MAIN_VARIANT (inside_type)))
4227 : 0 : && (((inter_int || inter_ptr) && final_int)
4228 : 0 : || (inter_float && final_float))
4229 : 14978 : && inter_prec >= final_prec
4230 : : )
4231 : : {
4232 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1226;
4233 : 0 : {
4234 : 0 : tree res_op0;
4235 : 0 : res_op0 = captures[1];
4236 : 0 : tree _r;
4237 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4238 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 849, __FILE__, __LINE__, true);
4239 : 0 : return _r;
4240 : : }
4241 : 0 : next_after_fail1226:;
4242 : : }
4243 : : else
4244 : : {
4245 : 14978 : if (((inter_int && inside_int) || (inter_float && inside_float))
4246 : 14978 : && (final_int || final_float)
4247 : 14978 : && inter_prec >= inside_prec
4248 : 14760 : && (inter_float || inter_unsignedp == inside_unsignedp)
4249 : : )
4250 : : {
4251 : 14760 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1227;
4252 : 14760 : {
4253 : 14760 : tree res_op0;
4254 : 14760 : res_op0 = captures[1];
4255 : 14760 : tree _r;
4256 : 14760 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4257 : 14760 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 850, __FILE__, __LINE__, true);
4258 : 14760 : return _r;
4259 : : }
4260 : 0 : next_after_fail1227:;
4261 : 0 : }
4262 : : else
4263 : : {
4264 : 218 : if (inside_int && inter_int && final_int
4265 : 0 : && ((inside_prec < inter_prec && inter_prec < final_prec
4266 : 0 : && inside_unsignedp && !inter_unsignedp)
4267 : 0 : || final_prec == inter_prec
4268 : 0 : || (inside_prec < inter_prec && inter_prec > final_prec
4269 : 0 : && !inside_unsignedp && inter_unsignedp))
4270 : : )
4271 : : {
4272 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1228;
4273 : 0 : {
4274 : 0 : tree res_op0;
4275 : 0 : res_op0 = captures[1];
4276 : 0 : tree _r;
4277 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4278 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 851, __FILE__, __LINE__, true);
4279 : 0 : return _r;
4280 : : }
4281 : 0 : next_after_fail1228:;
4282 : 0 : }
4283 : : else
4284 : : {
4285 : 218 : if (! inside_float && ! inter_float && ! final_float
4286 : : && ! inside_vec && ! inter_vec && ! final_vec
4287 : 0 : && (inter_prec >= inside_prec || inter_prec >= final_prec)
4288 : 0 : && ! (inside_int && inter_int
4289 : 0 : && inter_unsignedp != inside_unsignedp
4290 : 0 : && inter_prec < final_prec)
4291 : 0 : && ((inter_unsignedp && inter_prec > inside_prec)
4292 : 0 : == (final_unsignedp && final_prec > inter_prec))
4293 : 0 : && ! (inside_ptr && inter_prec != final_prec)
4294 : 0 : && ! (final_ptr && inside_prec != inter_prec)
4295 : : )
4296 : : {
4297 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1229;
4298 : 0 : {
4299 : 0 : tree res_op0;
4300 : 0 : res_op0 = captures[1];
4301 : 0 : tree _r;
4302 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4303 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 852, __FILE__, __LINE__, true);
4304 : 0 : return _r;
4305 : : }
4306 : 0 : next_after_fail1229:;
4307 : 0 : }
4308 : : else
4309 : : {
4310 : 218 : if (inside_int && inter_int && final_int
4311 : 0 : && final_prec <= inside_prec
4312 : 0 : && inter_prec >= inside_prec
4313 : : )
4314 : : {
4315 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1230;
4316 : 0 : {
4317 : 0 : tree res_op0;
4318 : 0 : res_op0 = captures[1];
4319 : 0 : tree _r;
4320 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4321 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 853, __FILE__, __LINE__, true);
4322 : 0 : return _r;
4323 : : }
4324 : 0 : next_after_fail1230:;
4325 : 0 : }
4326 : : else
4327 : : {
4328 : : if (0
4329 : : && final_int && inter_int && inside_int
4330 : : && final_prec >= inside_prec
4331 : : && inside_prec > inter_prec
4332 : : && inter_unsignedp
4333 : : )
4334 : : {
4335 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1231;
4336 : : {
4337 : : tree res_op0;
4338 : : {
4339 : : tree _o1[2], _r1;
4340 : : _o1[0] = captures[1];
4341 : : _o1[1] = wide_int_to_tree
4342 : : (inside_type,
4343 : : wi::mask (inter_prec, false,
4344 : : TYPE_PRECISION (inside_type)));
4345 : : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4346 : : res_op0 = _r1;
4347 : : }
4348 : : tree _r;
4349 : : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4350 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 854, __FILE__, __LINE__, true);
4351 : : return _r;
4352 : : }
4353 : : next_after_fail1231:;
4354 : : }
4355 : : else
4356 : : {
4357 : : if (0
4358 : : && inside_int && inter_float && final_int &&
4359 : : (unsigned) significand_size (TYPE_MODE (inter_type))
4360 : : >= inside_prec - !inside_unsignedp
4361 : : )
4362 : : {
4363 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1232;
4364 : : {
4365 : : tree res_op0;
4366 : : res_op0 = captures[1];
4367 : : tree _r;
4368 : : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4369 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 855, __FILE__, __LINE__, true);
4370 : : return _r;
4371 : : }
4372 : : next_after_fail1232:;
4373 : : }
4374 : : }
4375 : : }
4376 : : }
4377 : : }
4378 : : }
4379 : : }
4380 : : }
4381 : : }
4382 : 218 : break;
4383 : : }
4384 : 589 : case FLOAT_EXPR:
4385 : 589 : {
4386 : 589 : tree _q20 = TREE_OPERAND (_p0, 0);
4387 : 589 : {
4388 : 589 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
4389 : 589 : {
4390 : 589 : tree inside_type = TREE_TYPE (captures[1]);
4391 : 589 : tree inter_type = TREE_TYPE (captures[0]);
4392 : 589 : int inside_int = INTEGRAL_TYPE_P (inside_type);
4393 : 589 : int inside_ptr = POINTER_TYPE_P (inside_type);
4394 : 589 : int inside_float = FLOAT_TYPE_P (inside_type);
4395 : 589 : int inside_vec = VECTOR_TYPE_P (inside_type);
4396 : 589 : unsigned int inside_prec = element_precision (inside_type);
4397 : 589 : int inside_unsignedp = TYPE_UNSIGNED (inside_type);
4398 : 589 : int inter_int = INTEGRAL_TYPE_P (inter_type);
4399 : 589 : int inter_ptr = POINTER_TYPE_P (inter_type);
4400 : 589 : int inter_float = FLOAT_TYPE_P (inter_type);
4401 : 589 : int inter_vec = VECTOR_TYPE_P (inter_type);
4402 : 589 : unsigned int inter_prec = element_precision (inter_type);
4403 : 589 : int inter_unsignedp = TYPE_UNSIGNED (inter_type);
4404 : 589 : int final_int = INTEGRAL_TYPE_P (type);
4405 : 589 : int final_ptr = POINTER_TYPE_P (type);
4406 : 589 : int final_float = FLOAT_TYPE_P (type);
4407 : 589 : int final_vec = VECTOR_TYPE_P (type);
4408 : 589 : unsigned int final_prec = element_precision (type);
4409 : 589 : int final_unsignedp = TYPE_UNSIGNED (type);
4410 : 589 : if (((
4411 : :
4412 : : && useless_type_conversion_p (type, inside_type))
4413 : : || (
4414 : : 1
4415 : 589 : && TYPE_MAIN_VARIANT (type) == TYPE_MAIN_VARIANT (inside_type)))
4416 : 44 : && (((inter_int || inter_ptr) && final_int)
4417 : 44 : || (inter_float && final_float))
4418 : 589 : && inter_prec >= final_prec
4419 : : )
4420 : : {
4421 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1233;
4422 : 0 : {
4423 : 0 : tree res_op0;
4424 : 0 : res_op0 = captures[1];
4425 : 0 : tree _r;
4426 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4427 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 849, __FILE__, __LINE__, true);
4428 : 0 : return _r;
4429 : : }
4430 : 0 : next_after_fail1233:;
4431 : : }
4432 : : else
4433 : : {
4434 : 589 : if (((inter_int && inside_int) || (inter_float && inside_float))
4435 : 0 : && (final_int || final_float)
4436 : 0 : && inter_prec >= inside_prec
4437 : 0 : && (inter_float || inter_unsignedp == inside_unsignedp)
4438 : : )
4439 : : {
4440 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1234;
4441 : 0 : {
4442 : 0 : tree res_op0;
4443 : 0 : res_op0 = captures[1];
4444 : 0 : tree _r;
4445 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4446 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 850, __FILE__, __LINE__, true);
4447 : 0 : return _r;
4448 : : }
4449 : 0 : next_after_fail1234:;
4450 : 0 : }
4451 : : else
4452 : : {
4453 : 589 : if (inside_int && inter_int && final_int
4454 : 0 : && ((inside_prec < inter_prec && inter_prec < final_prec
4455 : 0 : && inside_unsignedp && !inter_unsignedp)
4456 : 0 : || final_prec == inter_prec
4457 : 0 : || (inside_prec < inter_prec && inter_prec > final_prec
4458 : 0 : && !inside_unsignedp && inter_unsignedp))
4459 : : )
4460 : : {
4461 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1235;
4462 : 0 : {
4463 : 0 : tree res_op0;
4464 : 0 : res_op0 = captures[1];
4465 : 0 : tree _r;
4466 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4467 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 851, __FILE__, __LINE__, true);
4468 : 0 : return _r;
4469 : : }
4470 : 0 : next_after_fail1235:;
4471 : 0 : }
4472 : : else
4473 : : {
4474 : 589 : if (! inside_float && ! inter_float && ! final_float
4475 : : && ! inside_vec && ! inter_vec && ! final_vec
4476 : 0 : && (inter_prec >= inside_prec || inter_prec >= final_prec)
4477 : 0 : && ! (inside_int && inter_int
4478 : 0 : && inter_unsignedp != inside_unsignedp
4479 : 0 : && inter_prec < final_prec)
4480 : 0 : && ((inter_unsignedp && inter_prec > inside_prec)
4481 : 0 : == (final_unsignedp && final_prec > inter_prec))
4482 : 0 : && ! (inside_ptr && inter_prec != final_prec)
4483 : 0 : && ! (final_ptr && inside_prec != inter_prec)
4484 : : )
4485 : : {
4486 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1236;
4487 : 0 : {
4488 : 0 : tree res_op0;
4489 : 0 : res_op0 = captures[1];
4490 : 0 : tree _r;
4491 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4492 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 852, __FILE__, __LINE__, true);
4493 : 0 : return _r;
4494 : : }
4495 : 0 : next_after_fail1236:;
4496 : 0 : }
4497 : : else
4498 : : {
4499 : 589 : if (inside_int && inter_int && final_int
4500 : 0 : && final_prec <= inside_prec
4501 : 0 : && inter_prec >= inside_prec
4502 : : )
4503 : : {
4504 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1237;
4505 : 0 : {
4506 : 0 : tree res_op0;
4507 : 0 : res_op0 = captures[1];
4508 : 0 : tree _r;
4509 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4510 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 853, __FILE__, __LINE__, true);
4511 : 0 : return _r;
4512 : : }
4513 : 0 : next_after_fail1237:;
4514 : 0 : }
4515 : : else
4516 : : {
4517 : : if (0
4518 : : && final_int && inter_int && inside_int
4519 : : && final_prec >= inside_prec
4520 : : && inside_prec > inter_prec
4521 : : && inter_unsignedp
4522 : : )
4523 : : {
4524 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1238;
4525 : : {
4526 : : tree res_op0;
4527 : : {
4528 : : tree _o1[2], _r1;
4529 : : _o1[0] = captures[1];
4530 : : _o1[1] = wide_int_to_tree
4531 : : (inside_type,
4532 : : wi::mask (inter_prec, false,
4533 : : TYPE_PRECISION (inside_type)));
4534 : : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4535 : : res_op0 = _r1;
4536 : : }
4537 : : tree _r;
4538 : : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4539 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 854, __FILE__, __LINE__, true);
4540 : : return _r;
4541 : : }
4542 : : next_after_fail1238:;
4543 : : }
4544 : : else
4545 : : {
4546 : : if (0
4547 : : && inside_int && inter_float && final_int &&
4548 : : (unsigned) significand_size (TYPE_MODE (inter_type))
4549 : : >= inside_prec - !inside_unsignedp
4550 : : )
4551 : : {
4552 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1239;
4553 : : {
4554 : : tree res_op0;
4555 : : res_op0 = captures[1];
4556 : : tree _r;
4557 : : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4558 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 855, __FILE__, __LINE__, true);
4559 : : return _r;
4560 : : }
4561 : : next_after_fail1239:;
4562 : : }
4563 : : }
4564 : : }
4565 : : }
4566 : : }
4567 : : }
4568 : : }
4569 : : }
4570 : : }
4571 : 589 : break;
4572 : : }
4573 : : default:;
4574 : : }
4575 : : return NULL_TREE;
4576 : : }
4577 : :
4578 : : tree
4579 : 704545 : generic_simplify_BIT_XOR_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
4580 : : {
4581 : 704545 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4582 : 704545 : if (integer_zerop (_p1))
4583 : : {
4584 : 536 : {
4585 : 536 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4586 : 536 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1402;
4587 : 536 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1402;
4588 : 536 : {
4589 : 536 : tree res_op0;
4590 : 536 : res_op0 = captures[0];
4591 : 536 : tree _r;
4592 : 536 : _r = non_lvalue_loc (loc, res_op0);
4593 : 536 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 895, __FILE__, __LINE__, true);
4594 : 536 : return _r;
4595 : : }
4596 : : next_after_fail1402:;
4597 : : }
4598 : : }
4599 : 704009 : switch (TREE_CODE (_p0))
4600 : : {
4601 : 2729 : case LSHIFT_EXPR:
4602 : 2729 : {
4603 : 2729 : tree _q20 = TREE_OPERAND (_p0, 0);
4604 : 2729 : tree _q21 = TREE_OPERAND (_p0, 1);
4605 : 2729 : switch (TREE_CODE (_p1))
4606 : : {
4607 : 10 : case LSHIFT_EXPR:
4608 : 10 : {
4609 : 10 : tree _q50 = TREE_OPERAND (_p1, 0);
4610 : 10 : tree _q51 = TREE_OPERAND (_p1, 1);
4611 : 10 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
4612 : : {
4613 : 1 : {
4614 : 1 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
4615 : 1 : tree res = generic_simplify_64 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4616 : 1 : if (res) return res;
4617 : : }
4618 : : }
4619 : : break;
4620 : : }
4621 : : default:;
4622 : : }
4623 : : break;
4624 : : }
4625 : 8911 : case RSHIFT_EXPR:
4626 : 8911 : {
4627 : 8911 : tree _q20 = TREE_OPERAND (_p0, 0);
4628 : 8911 : tree _q21 = TREE_OPERAND (_p0, 1);
4629 : 8911 : switch (TREE_CODE (_p1))
4630 : : {
4631 : 20 : case RSHIFT_EXPR:
4632 : 20 : {
4633 : 20 : tree _q50 = TREE_OPERAND (_p1, 0);
4634 : 20 : tree _q51 = TREE_OPERAND (_p1, 1);
4635 : 20 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
4636 : : {
4637 : 10 : {
4638 : 10 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
4639 : 10 : tree res = generic_simplify_65 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4640 : 10 : if (res) return res;
4641 : : }
4642 : : }
4643 : : break;
4644 : : }
4645 : : default:;
4646 : : }
4647 : : break;
4648 : : }
4649 : 2836 : case BIT_AND_EXPR:
4650 : 2836 : {
4651 : 2836 : tree _q20 = TREE_OPERAND (_p0, 0);
4652 : 2836 : tree _q21 = TREE_OPERAND (_p0, 1);
4653 : 2836 : switch (TREE_CODE (_p1))
4654 : : {
4655 : 354 : case BIT_AND_EXPR:
4656 : 354 : {
4657 : 354 : tree _q50 = TREE_OPERAND (_p1, 0);
4658 : 354 : tree _q51 = TREE_OPERAND (_p1, 1);
4659 : 354 : {
4660 : 354 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q50, _q51 };
4661 : 354 : tree res = generic_simplify_6 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4662 : 354 : if (res) return res;
4663 : : }
4664 : 354 : {
4665 : 354 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q51, _q50 };
4666 : 354 : tree res = generic_simplify_6 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4667 : 354 : if (res) return res;
4668 : : }
4669 : 354 : {
4670 : 354 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q50, _q51 };
4671 : 354 : tree res = generic_simplify_6 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4672 : 354 : if (res) return res;
4673 : : }
4674 : 354 : {
4675 : 354 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q51, _q50 };
4676 : 354 : tree res = generic_simplify_6 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4677 : 354 : if (res) return res;
4678 : : }
4679 : 354 : break;
4680 : : }
4681 : 2836 : default:;
4682 : : }
4683 : 2836 : switch (TREE_CODE (_q21))
4684 : : {
4685 : 41 : case BIT_NOT_EXPR:
4686 : 41 : {
4687 : 41 : tree _q40 = TREE_OPERAND (_q21, 0);
4688 : 41 : switch (TREE_CODE (_p1))
4689 : : {
4690 : 0 : case BIT_NOT_EXPR:
4691 : 0 : {
4692 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
4693 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
4694 : : {
4695 : 0 : {
4696 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
4697 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures);
4698 : 0 : if (res) return res;
4699 : : }
4700 : : }
4701 : : break;
4702 : : }
4703 : : default:;
4704 : : }
4705 : : break;
4706 : : }
4707 : 2836 : default:;
4708 : : }
4709 : 2836 : switch (TREE_CODE (_q20))
4710 : : {
4711 : 90 : case BIT_NOT_EXPR:
4712 : 90 : {
4713 : 90 : tree _q30 = TREE_OPERAND (_q20, 0);
4714 : 90 : switch (TREE_CODE (_p1))
4715 : : {
4716 : 0 : case BIT_NOT_EXPR:
4717 : 0 : {
4718 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
4719 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
4720 : : {
4721 : 0 : {
4722 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q30 };
4723 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures);
4724 : 0 : if (res) return res;
4725 : : }
4726 : : }
4727 : : break;
4728 : : }
4729 : 90 : default:;
4730 : : }
4731 : 90 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
4732 : : {
4733 : 0 : {
4734 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q21 };
4735 : 0 : tree res = generic_simplify_151 (loc, type, _p0, _p1, captures);
4736 : 0 : if (res) return res;
4737 : : }
4738 : : }
4739 : : break;
4740 : : }
4741 : 2836 : default:;
4742 : : }
4743 : 2836 : switch (TREE_CODE (_q21))
4744 : : {
4745 : 41 : case BIT_NOT_EXPR:
4746 : 41 : {
4747 : 41 : tree _q40 = TREE_OPERAND (_q21, 0);
4748 : 41 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
4749 : : {
4750 : 0 : {
4751 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q40, _q20 };
4752 : 0 : tree res = generic_simplify_151 (loc, type, _p0, _p1, captures);
4753 : 0 : if (res) return res;
4754 : : }
4755 : : }
4756 : : break;
4757 : : }
4758 : : default:;
4759 : : }
4760 : : break;
4761 : : }
4762 : 498 : case BIT_NOT_EXPR:
4763 : 498 : {
4764 : 498 : tree _q20 = TREE_OPERAND (_p0, 0);
4765 : 498 : switch (TREE_CODE (_p1))
4766 : : {
4767 : 51 : case BIT_AND_EXPR:
4768 : 51 : {
4769 : 51 : tree _q40 = TREE_OPERAND (_p1, 0);
4770 : 51 : tree _q41 = TREE_OPERAND (_p1, 1);
4771 : 51 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
4772 : : {
4773 : 0 : switch (TREE_CODE (_q41))
4774 : : {
4775 : 0 : case BIT_NOT_EXPR:
4776 : 0 : {
4777 : 0 : tree _q60 = TREE_OPERAND (_q41, 0);
4778 : 0 : {
4779 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q60 };
4780 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures);
4781 : 0 : if (res) return res;
4782 : : }
4783 : 0 : break;
4784 : : }
4785 : : default:;
4786 : : }
4787 : : }
4788 : 51 : switch (TREE_CODE (_q40))
4789 : : {
4790 : 7 : case BIT_NOT_EXPR:
4791 : 7 : {
4792 : 7 : tree _q50 = TREE_OPERAND (_q40, 0);
4793 : 7 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _q20, 0) && types_match (_q41, _q20)))
4794 : : {
4795 : 0 : {
4796 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q50 };
4797 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures);
4798 : 0 : if (res) return res;
4799 : : }
4800 : : }
4801 : : break;
4802 : : }
4803 : : default:;
4804 : : }
4805 : : break;
4806 : : }
4807 : : default:;
4808 : : }
4809 : : break;
4810 : : }
4811 : 703998 : default:;
4812 : : }
4813 : 703998 : switch (TREE_CODE (_p1))
4814 : : {
4815 : 697 : case BIT_AND_EXPR:
4816 : 697 : {
4817 : 697 : tree _q30 = TREE_OPERAND (_p1, 0);
4818 : 697 : tree _q31 = TREE_OPERAND (_p1, 1);
4819 : 697 : switch (TREE_CODE (_q30))
4820 : : {
4821 : 57 : case BIT_NOT_EXPR:
4822 : 57 : {
4823 : 57 : tree _q40 = TREE_OPERAND (_q30, 0);
4824 : 57 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
4825 : : {
4826 : 0 : {
4827 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _p0, _q31 };
4828 : 0 : tree res = generic_simplify_151 (loc, type, _p0, _p1, captures);
4829 : 0 : if (res) return res;
4830 : : }
4831 : : }
4832 : : break;
4833 : : }
4834 : 697 : default:;
4835 : : }
4836 : 697 : switch (TREE_CODE (_q31))
4837 : : {
4838 : 8 : case BIT_NOT_EXPR:
4839 : 8 : {
4840 : 8 : tree _q50 = TREE_OPERAND (_q31, 0);
4841 : 8 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
4842 : : {
4843 : 0 : {
4844 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _p0, _q30 };
4845 : 0 : tree res = generic_simplify_151 (loc, type, _p0, _p1, captures);
4846 : 0 : if (res) return res;
4847 : : }
4848 : : }
4849 : : break;
4850 : : }
4851 : : default:;
4852 : : }
4853 : : break;
4854 : : }
4855 : 703998 : default:;
4856 : : }
4857 : 703998 : switch (TREE_CODE (_p0))
4858 : : {
4859 : 20692 : case PLUS_EXPR:
4860 : 20692 : {
4861 : 20692 : tree _q20 = TREE_OPERAND (_p0, 0);
4862 : 20692 : tree _q21 = TREE_OPERAND (_p0, 1);
4863 : 20692 : if (integer_minus_onep (_q21))
4864 : : {
4865 : 10084 : switch (TREE_CODE (_p1))
4866 : : {
4867 : 11 : case NEGATE_EXPR:
4868 : 11 : {
4869 : 11 : tree _q50 = TREE_OPERAND (_p1, 0);
4870 : 11 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
4871 : : {
4872 : 11 : {
4873 : 11 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
4874 : 11 : tree res = generic_simplify_74 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4875 : 11 : if (res) return res;
4876 : : }
4877 : : }
4878 : : break;
4879 : : }
4880 : : default:;
4881 : : }
4882 : : }
4883 : : break;
4884 : : }
4885 : 142 : case NEGATE_EXPR:
4886 : 142 : {
4887 : 142 : tree _q20 = TREE_OPERAND (_p0, 0);
4888 : 142 : switch (TREE_CODE (_p1))
4889 : : {
4890 : 0 : case PLUS_EXPR:
4891 : 0 : {
4892 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
4893 : 0 : tree _q41 = TREE_OPERAND (_p1, 1);
4894 : 0 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
4895 : : {
4896 : 0 : if (integer_minus_onep (_q41))
4897 : : {
4898 : 0 : {
4899 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
4900 : 0 : tree res = generic_simplify_75 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4901 : 0 : if (res) return res;
4902 : : }
4903 : : }
4904 : : }
4905 : : break;
4906 : : }
4907 : 0 : case MINUS_EXPR:
4908 : 0 : {
4909 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
4910 : 0 : tree _q41 = TREE_OPERAND (_p1, 1);
4911 : 0 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
4912 : : {
4913 : 0 : if (integer_onep (_q41))
4914 : : {
4915 : 0 : {
4916 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
4917 : 0 : tree res = generic_simplify_76 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4918 : 0 : if (res) return res;
4919 : : }
4920 : : }
4921 : : }
4922 : : break;
4923 : : }
4924 : : default:;
4925 : : }
4926 : : break;
4927 : : }
4928 : 102 : case MINUS_EXPR:
4929 : 102 : {
4930 : 102 : tree _q20 = TREE_OPERAND (_p0, 0);
4931 : 102 : tree _q21 = TREE_OPERAND (_p0, 1);
4932 : 102 : if (integer_onep (_q21))
4933 : : {
4934 : 0 : switch (TREE_CODE (_p1))
4935 : : {
4936 : 0 : case NEGATE_EXPR:
4937 : 0 : {
4938 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
4939 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
4940 : : {
4941 : 0 : {
4942 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
4943 : 0 : tree res = generic_simplify_77 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4944 : 0 : if (res) return res;
4945 : : }
4946 : : }
4947 : : break;
4948 : : }
4949 : : default:;
4950 : : }
4951 : : }
4952 : : break;
4953 : : }
4954 : 1310 : case BIT_IOR_EXPR:
4955 : 1310 : {
4956 : 1310 : tree _q20 = TREE_OPERAND (_p0, 0);
4957 : 1310 : tree _q21 = TREE_OPERAND (_p0, 1);
4958 : 1310 : switch (TREE_CODE (_q20))
4959 : : {
4960 : 481 : case BIT_NOT_EXPR:
4961 : 481 : {
4962 : 481 : tree _q30 = TREE_OPERAND (_q20, 0);
4963 : 481 : {
4964 : 481 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _p1 };
4965 : 481 : tree res = generic_simplify_152 (loc, type, _p0, _p1, captures);
4966 : 481 : if (res) return res;
4967 : : }
4968 : 480 : break;
4969 : : }
4970 : 1309 : default:;
4971 : : }
4972 : 1309 : switch (TREE_CODE (_q21))
4973 : : {
4974 : 62 : case BIT_NOT_EXPR:
4975 : 62 : {
4976 : 62 : tree _q40 = TREE_OPERAND (_q21, 0);
4977 : 62 : {
4978 : 62 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q40, _q20, _p1 };
4979 : 62 : tree res = generic_simplify_152 (loc, type, _p0, _p1, captures);
4980 : 62 : if (res) return res;
4981 : : }
4982 : 62 : break;
4983 : : }
4984 : : default:;
4985 : : }
4986 : : break;
4987 : : }
4988 : 703986 : default:;
4989 : : }
4990 : 703986 : switch (TREE_CODE (_p1))
4991 : : {
4992 : 521 : case BIT_IOR_EXPR:
4993 : 521 : {
4994 : 521 : tree _q30 = TREE_OPERAND (_p1, 0);
4995 : 521 : tree _q31 = TREE_OPERAND (_p1, 1);
4996 : 521 : switch (TREE_CODE (_q30))
4997 : : {
4998 : 21 : case BIT_NOT_EXPR:
4999 : 21 : {
5000 : 21 : tree _q40 = TREE_OPERAND (_q30, 0);
5001 : 21 : {
5002 : 21 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q30, _q40, _q31, _p0 };
5003 : 21 : tree res = generic_simplify_152 (loc, type, _p0, _p1, captures);
5004 : 21 : if (res) return res;
5005 : : }
5006 : 21 : break;
5007 : : }
5008 : 521 : default:;
5009 : : }
5010 : 521 : switch (TREE_CODE (_q31))
5011 : : {
5012 : 25 : case BIT_NOT_EXPR:
5013 : 25 : {
5014 : 25 : tree _q50 = TREE_OPERAND (_q31, 0);
5015 : 25 : {
5016 : 25 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q31, _q50, _q30, _p0 };
5017 : 25 : tree res = generic_simplify_152 (loc, type, _p0, _p1, captures);
5018 : 25 : if (res) return res;
5019 : : }
5020 : 25 : break;
5021 : : }
5022 : : default:;
5023 : : }
5024 : : break;
5025 : : }
5026 : 703986 : default:;
5027 : : }
5028 : 703986 : switch (TREE_CODE (_p0))
5029 : : {
5030 : 2836 : case BIT_AND_EXPR:
5031 : 2836 : {
5032 : 2836 : tree _q20 = TREE_OPERAND (_p0, 0);
5033 : 2836 : tree _q21 = TREE_OPERAND (_p0, 1);
5034 : 2836 : switch (TREE_CODE (_q20))
5035 : : {
5036 : 90 : case BIT_NOT_EXPR:
5037 : 90 : {
5038 : 90 : tree _q30 = TREE_OPERAND (_q20, 0);
5039 : 90 : {
5040 : 90 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _p1 };
5041 : 90 : tree res = generic_simplify_153 (loc, type, _p0, _p1, captures);
5042 : 90 : if (res) return res;
5043 : : }
5044 : 89 : break;
5045 : : }
5046 : 2835 : default:;
5047 : : }
5048 : 2835 : switch (TREE_CODE (_q21))
5049 : : {
5050 : 41 : case BIT_NOT_EXPR:
5051 : 41 : {
5052 : 41 : tree _q40 = TREE_OPERAND (_q21, 0);
5053 : 41 : {
5054 : 41 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q40, _q20, _p1 };
5055 : 41 : tree res = generic_simplify_153 (loc, type, _p0, _p1, captures);
5056 : 41 : if (res) return res;
5057 : : }
5058 : 41 : break;
5059 : : }
5060 : : default:;
5061 : : }
5062 : : break;
5063 : : }
5064 : 703985 : default:;
5065 : : }
5066 : 703985 : switch (TREE_CODE (_p1))
5067 : : {
5068 : 697 : case BIT_AND_EXPR:
5069 : 697 : {
5070 : 697 : tree _q30 = TREE_OPERAND (_p1, 0);
5071 : 697 : tree _q31 = TREE_OPERAND (_p1, 1);
5072 : 697 : switch (TREE_CODE (_q30))
5073 : : {
5074 : 57 : case BIT_NOT_EXPR:
5075 : 57 : {
5076 : 57 : tree _q40 = TREE_OPERAND (_q30, 0);
5077 : 57 : {
5078 : 57 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q30, _q40, _q31, _p0 };
5079 : 57 : tree res = generic_simplify_153 (loc, type, _p0, _p1, captures);
5080 : 57 : if (res) return res;
5081 : : }
5082 : 57 : break;
5083 : : }
5084 : 697 : default:;
5085 : : }
5086 : 697 : switch (TREE_CODE (_q31))
5087 : : {
5088 : 8 : case BIT_NOT_EXPR:
5089 : 8 : {
5090 : 8 : tree _q50 = TREE_OPERAND (_q31, 0);
5091 : 8 : {
5092 : 8 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q31, _q50, _q30, _p0 };
5093 : 8 : tree res = generic_simplify_153 (loc, type, _p0, _p1, captures);
5094 : 8 : if (res) return res;
5095 : : }
5096 : 8 : break;
5097 : : }
5098 : : default:;
5099 : : }
5100 : : break;
5101 : : }
5102 : 703985 : default:;
5103 : : }
5104 : 703985 : switch (TREE_CODE (_p0))
5105 : : {
5106 : 514150 : CASE_CONVERT:
5107 : 514150 : {
5108 : 514150 : tree _q20 = TREE_OPERAND (_p0, 0);
5109 : 514150 : switch (TREE_CODE (_p1))
5110 : : {
5111 : 510070 : CASE_CONVERT:
5112 : 510070 : {
5113 : 510070 : tree _q40 = TREE_OPERAND (_p1, 0);
5114 : 510070 : {
5115 : 510070 : tree _q40_pops[1];
5116 : 510070 : if (tree_maybe_bit_not (_q40, _q40_pops))
5117 : : {
5118 : 0 : tree _q50 = _q40_pops[0];
5119 : 0 : {
5120 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q50 };
5121 : 0 : tree res = generic_simplify_87 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5122 : 0 : if (res) return res;
5123 : : }
5124 : : }
5125 : : }
5126 : 510070 : break;
5127 : : }
5128 : 514150 : default:;
5129 : : }
5130 : 514150 : {
5131 : 514150 : tree _q20_pops[1];
5132 : 514150 : if (tree_maybe_bit_not (_q20, _q20_pops))
5133 : : {
5134 : 15085 : tree _q30 = _q20_pops[0];
5135 : 15085 : switch (TREE_CODE (_p1))
5136 : : {
5137 : 15035 : CASE_CONVERT:
5138 : 15035 : {
5139 : 15035 : tree _q50 = TREE_OPERAND (_p1, 0);
5140 : 15035 : {
5141 : 15035 : tree captures[2] ATTRIBUTE_UNUSED = { _q50, _q30 };
5142 : 15035 : tree res = generic_simplify_87 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5143 : 15035 : if (res) return res;
5144 : : }
5145 : 15035 : break;
5146 : : }
5147 : : default:;
5148 : : }
5149 : : }
5150 : : }
5151 : 514150 : break;
5152 : : }
5153 : 703985 : default:;
5154 : : }
5155 : 703985 : {
5156 : 703985 : tree _p1_pops[1];
5157 : 703985 : if (tree_maybe_bit_not (_p1, _p1_pops))
5158 : : {
5159 : 8212 : tree _q30 = _p1_pops[0];
5160 : 8212 : {
5161 : 8212 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
5162 : 8212 : tree res = generic_simplify_87 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5163 : 8212 : if (res) return res;
5164 : : }
5165 : : }
5166 : : }
5167 : 703985 : {
5168 : 703985 : tree _p0_pops[1];
5169 : 703985 : if (tree_maybe_bit_not (_p0, _p0_pops))
5170 : : {
5171 : 1039 : tree _q20 = _p0_pops[0];
5172 : 1039 : {
5173 : 1039 : tree captures[2] ATTRIBUTE_UNUSED = { _p1, _q20 };
5174 : 1039 : tree res = generic_simplify_87 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5175 : 1039 : if (res) return res;
5176 : : }
5177 : : }
5178 : : }
5179 : 703964 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
5180 : : {
5181 : 151 : {
5182 : 151 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5183 : 151 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1403;
5184 : 151 : {
5185 : 151 : tree _r;
5186 : 151 : _r = build_zero_cst (type);
5187 : 151 : if (TREE_SIDE_EFFECTS (captures[0]))
5188 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
5189 : 151 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 950, __FILE__, __LINE__, true);
5190 : 151 : return _r;
5191 : : }
5192 : 0 : next_after_fail1403:;
5193 : : }
5194 : : }
5195 : 703813 : if (integer_all_onesp (_p1))
5196 : : {
5197 : 757 : {
5198 : 757 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5199 : 757 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1404;
5200 : 757 : {
5201 : 757 : tree res_op0;
5202 : 757 : res_op0 = captures[0];
5203 : 757 : tree _r;
5204 : 757 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
5205 : 757 : if (TREE_SIDE_EFFECTS (captures[1]))
5206 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
5207 : 757 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 951, __FILE__, __LINE__, true);
5208 : 757 : return _r;
5209 : : }
5210 : 0 : next_after_fail1404:;
5211 : : }
5212 : : }
5213 : 703056 : switch (TREE_CODE (_p0))
5214 : : {
5215 : 1302 : case BIT_IOR_EXPR:
5216 : 1302 : {
5217 : 1302 : tree _q20 = TREE_OPERAND (_p0, 0);
5218 : 1302 : tree _q21 = TREE_OPERAND (_p0, 1);
5219 : 1302 : switch (TREE_CODE (_p1))
5220 : : {
5221 : 179 : case BIT_IOR_EXPR:
5222 : 179 : {
5223 : 179 : tree _q50 = TREE_OPERAND (_p1, 0);
5224 : 179 : tree _q51 = TREE_OPERAND (_p1, 1);
5225 : 179 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5226 : : {
5227 : 0 : switch (TREE_CODE (_q51))
5228 : : {
5229 : 0 : case BIT_NOT_EXPR:
5230 : 0 : {
5231 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
5232 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
5233 : : {
5234 : 0 : {
5235 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5236 : 0 : tree res = generic_simplify_154 (loc, type, _p0, _p1, captures);
5237 : 0 : if (res) return res;
5238 : : }
5239 : : }
5240 : : break;
5241 : : }
5242 : : default:;
5243 : : }
5244 : : }
5245 : 179 : switch (TREE_CODE (_q50))
5246 : : {
5247 : 20 : case BIT_NOT_EXPR:
5248 : 20 : {
5249 : 20 : tree _q60 = TREE_OPERAND (_q50, 0);
5250 : 20 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
5251 : : {
5252 : 2 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
5253 : : {
5254 : 1 : {
5255 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5256 : 1 : tree res = generic_simplify_154 (loc, type, _p0, _p1, captures);
5257 : 1 : if (res) return res;
5258 : : }
5259 : : }
5260 : : }
5261 : 19 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
5262 : : {
5263 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5264 : : {
5265 : 0 : {
5266 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
5267 : 0 : tree res = generic_simplify_154 (loc, type, _p0, _p1, captures);
5268 : 0 : if (res) return res;
5269 : : }
5270 : : }
5271 : : }
5272 : : break;
5273 : : }
5274 : 178 : default:;
5275 : : }
5276 : 178 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
5277 : : {
5278 : 0 : switch (TREE_CODE (_q51))
5279 : : {
5280 : 0 : case BIT_NOT_EXPR:
5281 : 0 : {
5282 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
5283 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
5284 : : {
5285 : 0 : {
5286 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
5287 : 0 : tree res = generic_simplify_154 (loc, type, _p0, _p1, captures);
5288 : 0 : if (res) return res;
5289 : : }
5290 : : }
5291 : : break;
5292 : : }
5293 : : default:;
5294 : : }
5295 : : }
5296 : : break;
5297 : : }
5298 : 1301 : default:;
5299 : : }
5300 : 1301 : switch (TREE_CODE (_q21))
5301 : : {
5302 : 62 : case BIT_NOT_EXPR:
5303 : 62 : {
5304 : 62 : tree _q40 = TREE_OPERAND (_q21, 0);
5305 : 62 : switch (TREE_CODE (_p1))
5306 : : {
5307 : 9 : case BIT_IOR_EXPR:
5308 : 9 : {
5309 : 9 : tree _q60 = TREE_OPERAND (_p1, 0);
5310 : 9 : tree _q61 = TREE_OPERAND (_p1, 1);
5311 : 9 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
5312 : : {
5313 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
5314 : : {
5315 : 0 : {
5316 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
5317 : 0 : tree res = generic_simplify_154 (loc, type, _p0, _p1, captures);
5318 : 0 : if (res) return res;
5319 : : }
5320 : : }
5321 : : }
5322 : : break;
5323 : : }
5324 : : default:;
5325 : : }
5326 : : break;
5327 : : }
5328 : 1301 : default:;
5329 : : }
5330 : 1301 : switch (TREE_CODE (_q20))
5331 : : {
5332 : 480 : case BIT_NOT_EXPR:
5333 : 480 : {
5334 : 480 : tree _q30 = TREE_OPERAND (_q20, 0);
5335 : 480 : switch (TREE_CODE (_p1))
5336 : : {
5337 : 28 : case BIT_IOR_EXPR:
5338 : 28 : {
5339 : 28 : tree _q60 = TREE_OPERAND (_p1, 0);
5340 : 28 : tree _q61 = TREE_OPERAND (_p1, 1);
5341 : 28 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
5342 : : {
5343 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
5344 : : {
5345 : 0 : {
5346 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q30 };
5347 : 0 : tree res = generic_simplify_154 (loc, type, _p0, _p1, captures);
5348 : 0 : if (res) return res;
5349 : : }
5350 : : }
5351 : : }
5352 : 28 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
5353 : : {
5354 : 9 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
5355 : : {
5356 : 0 : {
5357 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q30 };
5358 : 0 : tree res = generic_simplify_154 (loc, type, _p0, _p1, captures);
5359 : 0 : if (res) return res;
5360 : : }
5361 : : }
5362 : 9 : switch (TREE_CODE (_q61))
5363 : : {
5364 : 0 : case BIT_NOT_EXPR:
5365 : 0 : {
5366 : 0 : tree _q80 = TREE_OPERAND (_q61, 0);
5367 : 0 : if ((_q80 == _q21 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q21, 0) && types_match (_q80, _q21)))
5368 : : {
5369 : 0 : {
5370 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q21 };
5371 : 0 : tree res = generic_simplify_155 (loc, type, _p0, _p1, captures);
5372 : 0 : if (res) return res;
5373 : : }
5374 : : }
5375 : : break;
5376 : : }
5377 : : default:;
5378 : : }
5379 : : }
5380 : 28 : switch (TREE_CODE (_q60))
5381 : : {
5382 : 1 : case BIT_NOT_EXPR:
5383 : 1 : {
5384 : 1 : tree _q70 = TREE_OPERAND (_q60, 0);
5385 : 1 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
5386 : : {
5387 : 1 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
5388 : : {
5389 : 1 : {
5390 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q21 };
5391 : 1 : tree res = generic_simplify_155 (loc, type, _p0, _p1, captures);
5392 : 1 : if (res) return res;
5393 : : }
5394 : : }
5395 : : }
5396 : : break;
5397 : : }
5398 : : default:;
5399 : : }
5400 : : break;
5401 : : }
5402 : 9 : case BIT_XOR_EXPR:
5403 : 9 : {
5404 : 9 : tree _q60 = TREE_OPERAND (_p1, 0);
5405 : 9 : tree _q61 = TREE_OPERAND (_p1, 1);
5406 : 9 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
5407 : : {
5408 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
5409 : : {
5410 : 0 : {
5411 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q21, _p1 };
5412 : 0 : tree res = generic_simplify_156 (loc, type, _p0, _p1, captures);
5413 : 0 : if (res) return res;
5414 : : }
5415 : : }
5416 : : }
5417 : : break;
5418 : : }
5419 : 479 : default:;
5420 : : }
5421 : 479 : {
5422 : 479 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q21, _p1 };
5423 : 479 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
5424 : 479 : if (res) return res;
5425 : : }
5426 : 431 : break;
5427 : : }
5428 : 1252 : default:;
5429 : : }
5430 : 1252 : switch (TREE_CODE (_q21))
5431 : : {
5432 : 62 : case BIT_NOT_EXPR:
5433 : 62 : {
5434 : 62 : tree _q40 = TREE_OPERAND (_q21, 0);
5435 : 62 : switch (TREE_CODE (_p1))
5436 : : {
5437 : 9 : case BIT_IOR_EXPR:
5438 : 9 : {
5439 : 9 : tree _q60 = TREE_OPERAND (_p1, 0);
5440 : 9 : tree _q61 = TREE_OPERAND (_p1, 1);
5441 : 9 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
5442 : : {
5443 : 0 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
5444 : : {
5445 : 0 : {
5446 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
5447 : 0 : tree res = generic_simplify_154 (loc, type, _p0, _p1, captures);
5448 : 0 : if (res) return res;
5449 : : }
5450 : : }
5451 : : }
5452 : : break;
5453 : : }
5454 : 9 : case BIT_XOR_EXPR:
5455 : 9 : {
5456 : 9 : tree _q60 = TREE_OPERAND (_p1, 0);
5457 : 9 : tree _q61 = TREE_OPERAND (_p1, 1);
5458 : 9 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
5459 : : {
5460 : 0 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
5461 : : {
5462 : 0 : {
5463 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q40, _q20, _p1 };
5464 : 0 : tree res = generic_simplify_156 (loc, type, _p0, _p1, captures);
5465 : 0 : if (res) return res;
5466 : : }
5467 : : }
5468 : : }
5469 : : break;
5470 : : }
5471 : : default:;
5472 : : }
5473 : : break;
5474 : : }
5475 : 1252 : default:;
5476 : : }
5477 : 1252 : switch (TREE_CODE (_p1))
5478 : : {
5479 : 65 : case BIT_AND_EXPR:
5480 : 65 : {
5481 : 65 : tree _q50 = TREE_OPERAND (_p1, 0);
5482 : 65 : tree _q51 = TREE_OPERAND (_p1, 1);
5483 : 65 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5484 : : {
5485 : 6 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5486 : : {
5487 : 0 : {
5488 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5489 : 0 : tree res = generic_simplify_158 (loc, type, _p0, _p1, captures);
5490 : 0 : if (res) return res;
5491 : : }
5492 : : }
5493 : : }
5494 : : break;
5495 : : }
5496 : 36 : case BIT_XOR_EXPR:
5497 : 36 : {
5498 : 36 : tree _q50 = TREE_OPERAND (_p1, 0);
5499 : 36 : tree _q51 = TREE_OPERAND (_p1, 1);
5500 : 36 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5501 : : {
5502 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5503 : : {
5504 : 0 : {
5505 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5506 : 0 : tree res = generic_simplify_159 (loc, type, _p0, _p1, captures);
5507 : 0 : if (res) return res;
5508 : : }
5509 : : }
5510 : : }
5511 : : break;
5512 : : }
5513 : 1252 : default:;
5514 : : }
5515 : 1252 : switch (TREE_CODE (_q21))
5516 : : {
5517 : 62 : case BIT_NOT_EXPR:
5518 : 62 : {
5519 : 62 : tree _q40 = TREE_OPERAND (_q21, 0);
5520 : 62 : switch (TREE_CODE (_p1))
5521 : : {
5522 : 9 : case BIT_IOR_EXPR:
5523 : 9 : {
5524 : 9 : tree _q60 = TREE_OPERAND (_p1, 0);
5525 : 9 : tree _q61 = TREE_OPERAND (_p1, 1);
5526 : 9 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
5527 : : {
5528 : 0 : switch (TREE_CODE (_q61))
5529 : : {
5530 : 0 : case BIT_NOT_EXPR:
5531 : 0 : {
5532 : 0 : tree _q80 = TREE_OPERAND (_q61, 0);
5533 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
5534 : : {
5535 : 0 : {
5536 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q20 };
5537 : 0 : tree res = generic_simplify_155 (loc, type, _p0, _p1, captures);
5538 : 0 : if (res) return res;
5539 : : }
5540 : : }
5541 : : break;
5542 : : }
5543 : : default:;
5544 : : }
5545 : : }
5546 : 9 : switch (TREE_CODE (_q60))
5547 : : {
5548 : 0 : case BIT_NOT_EXPR:
5549 : 0 : {
5550 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
5551 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
5552 : : {
5553 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
5554 : : {
5555 : 0 : {
5556 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q20 };
5557 : 0 : tree res = generic_simplify_155 (loc, type, _p0, _p1, captures);
5558 : 0 : if (res) return res;
5559 : : }
5560 : : }
5561 : : }
5562 : : break;
5563 : : }
5564 : : default:;
5565 : : }
5566 : : break;
5567 : : }
5568 : : default:;
5569 : : }
5570 : : break;
5571 : : }
5572 : 1252 : default:;
5573 : : }
5574 : 1252 : switch (TREE_CODE (_p1))
5575 : : {
5576 : 24 : CASE_CONVERT:
5577 : 24 : {
5578 : 24 : tree _q50 = TREE_OPERAND (_p1, 0);
5579 : 24 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
5580 : : {
5581 : 0 : {
5582 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q20 };
5583 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
5584 : 0 : if (res) return res;
5585 : : }
5586 : : }
5587 : 24 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q21, 0))
5588 : : {
5589 : 0 : {
5590 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q21 };
5591 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
5592 : 0 : if (res) return res;
5593 : : }
5594 : : }
5595 : : break;
5596 : : }
5597 : 1252 : default:;
5598 : : }
5599 : 1252 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q20, 0))
5600 : : {
5601 : 3 : {
5602 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q20 };
5603 : 3 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
5604 : 3 : if (res) return res;
5605 : : }
5606 : : }
5607 : 1249 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q21, 0))
5608 : : {
5609 : 3 : {
5610 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q21 };
5611 : 3 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
5612 : 3 : if (res) return res;
5613 : : }
5614 : : }
5615 : 1246 : {
5616 : 1246 : tree _q20_pops[1];
5617 : 1246 : if (tree_nop_convert (_q20, _q20_pops))
5618 : : {
5619 : 8 : tree _q30 = _q20_pops[0];
5620 : 8 : switch (TREE_CODE (_q30))
5621 : : {
5622 : 8 : case BIT_NOT_EXPR:
5623 : 8 : {
5624 : 8 : tree _q40 = TREE_OPERAND (_q30, 0);
5625 : 8 : {
5626 : 8 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q21, _p1 };
5627 : 8 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
5628 : 8 : if (res) return res;
5629 : : }
5630 : 0 : break;
5631 : : }
5632 : : default:;
5633 : : }
5634 : : }
5635 : : }
5636 : 1238 : switch (TREE_CODE (_q21))
5637 : : {
5638 : 62 : case BIT_NOT_EXPR:
5639 : 62 : {
5640 : 62 : tree _q40 = TREE_OPERAND (_q21, 0);
5641 : 62 : {
5642 : 62 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q20, _p1 };
5643 : 62 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
5644 : 62 : if (res) return res;
5645 : : }
5646 : 54 : break;
5647 : : }
5648 : 1230 : default:;
5649 : : }
5650 : 1230 : {
5651 : 1230 : tree _q21_pops[1];
5652 : 1230 : if (tree_nop_convert (_q21, _q21_pops))
5653 : : {
5654 : 0 : tree _q40 = _q21_pops[0];
5655 : 0 : switch (TREE_CODE (_q40))
5656 : : {
5657 : 0 : case BIT_NOT_EXPR:
5658 : 0 : {
5659 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
5660 : 0 : {
5661 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q20, _p1 };
5662 : 0 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
5663 : 0 : if (res) return res;
5664 : : }
5665 : 0 : break;
5666 : : }
5667 : : default:;
5668 : : }
5669 : : }
5670 : : }
5671 : 1230 : break;
5672 : : }
5673 : 3881 : case BIT_XOR_EXPR:
5674 : 3881 : {
5675 : 3881 : tree _q20 = TREE_OPERAND (_p0, 0);
5676 : 3881 : tree _q21 = TREE_OPERAND (_p0, 1);
5677 : 3881 : switch (TREE_CODE (_p1))
5678 : : {
5679 : 203 : case BIT_IOR_EXPR:
5680 : 203 : {
5681 : 203 : tree _q50 = TREE_OPERAND (_p1, 0);
5682 : 203 : tree _q51 = TREE_OPERAND (_p1, 1);
5683 : 203 : switch (TREE_CODE (_q50))
5684 : : {
5685 : 1 : case BIT_NOT_EXPR:
5686 : 1 : {
5687 : 1 : tree _q60 = TREE_OPERAND (_q50, 0);
5688 : 1 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
5689 : : {
5690 : 1 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5691 : : {
5692 : 1 : {
5693 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q20, _q21, _p0 };
5694 : 1 : tree res = generic_simplify_156 (loc, type, _p0, _p1, captures);
5695 : 1 : if (res) return res;
5696 : : }
5697 : : }
5698 : : }
5699 : : break;
5700 : : }
5701 : 202 : default:;
5702 : : }
5703 : 202 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
5704 : : {
5705 : 0 : switch (TREE_CODE (_q51))
5706 : : {
5707 : 0 : case BIT_NOT_EXPR:
5708 : 0 : {
5709 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
5710 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
5711 : : {
5712 : 0 : {
5713 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q20, _q21, _p0 };
5714 : 0 : tree res = generic_simplify_156 (loc, type, _p0, _p1, captures);
5715 : 0 : if (res) return res;
5716 : : }
5717 : : }
5718 : : break;
5719 : : }
5720 : : default:;
5721 : : }
5722 : : }
5723 : 202 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5724 : : {
5725 : 1 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5726 : : {
5727 : 0 : {
5728 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5729 : 0 : tree res = generic_simplify_159 (loc, type, _p0, _p1, captures);
5730 : 0 : if (res) return res;
5731 : : }
5732 : : }
5733 : : }
5734 : : break;
5735 : : }
5736 : 41 : case BIT_AND_EXPR:
5737 : 41 : {
5738 : 41 : tree _q50 = TREE_OPERAND (_p1, 0);
5739 : 41 : tree _q51 = TREE_OPERAND (_p1, 1);
5740 : 41 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5741 : : {
5742 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5743 : : {
5744 : 0 : {
5745 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5746 : 0 : tree res = generic_simplify_8 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5747 : 0 : if (res) return res;
5748 : : }
5749 : : }
5750 : : }
5751 : : break;
5752 : : }
5753 : 198 : CASE_CONVERT:
5754 : 198 : {
5755 : 198 : tree _q50 = TREE_OPERAND (_p1, 0);
5756 : 198 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q21, 0))
5757 : : {
5758 : 0 : {
5759 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q21 };
5760 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
5761 : 0 : if (res) return res;
5762 : : }
5763 : : }
5764 : 198 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
5765 : : {
5766 : 0 : {
5767 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q20 };
5768 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
5769 : 0 : if (res) return res;
5770 : : }
5771 : : }
5772 : : break;
5773 : : }
5774 : 3880 : default:;
5775 : : }
5776 : 3880 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q21, 0))
5777 : : {
5778 : 0 : {
5779 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q21 };
5780 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
5781 : 0 : if (res) return res;
5782 : : }
5783 : : }
5784 : 3880 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q20, 0))
5785 : : {
5786 : 11 : {
5787 : 11 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q20 };
5788 : 11 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
5789 : 11 : if (res) return res;
5790 : : }
5791 : : }
5792 : : break;
5793 : : }
5794 : 2835 : case BIT_AND_EXPR:
5795 : 2835 : {
5796 : 2835 : tree _q20 = TREE_OPERAND (_p0, 0);
5797 : 2835 : tree _q21 = TREE_OPERAND (_p0, 1);
5798 : 2835 : switch (TREE_CODE (_p1))
5799 : : {
5800 : 74 : case BIT_IOR_EXPR:
5801 : 74 : {
5802 : 74 : tree _q50 = TREE_OPERAND (_p1, 0);
5803 : 74 : tree _q51 = TREE_OPERAND (_p1, 1);
5804 : 74 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5805 : : {
5806 : 18 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5807 : : {
5808 : 0 : {
5809 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5810 : 0 : tree res = generic_simplify_158 (loc, type, _p0, _p1, captures);
5811 : 0 : if (res) return res;
5812 : : }
5813 : : }
5814 : : }
5815 : : break;
5816 : : }
5817 : 30 : case BIT_XOR_EXPR:
5818 : 30 : {
5819 : 30 : tree _q50 = TREE_OPERAND (_p1, 0);
5820 : 30 : tree _q51 = TREE_OPERAND (_p1, 1);
5821 : 30 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5822 : : {
5823 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5824 : : {
5825 : 0 : {
5826 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5827 : 0 : tree res = generic_simplify_8 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5828 : 0 : if (res) return res;
5829 : : }
5830 : : }
5831 : : }
5832 : : break;
5833 : : }
5834 : 2835 : default:;
5835 : : }
5836 : 2835 : switch (TREE_CODE (_q21))
5837 : : {
5838 : 1010 : case INTEGER_CST:
5839 : 1010 : {
5840 : 1010 : switch (TREE_CODE (_p1))
5841 : : {
5842 : 15 : CASE_CONVERT:
5843 : 15 : {
5844 : 15 : tree _q50 = TREE_OPERAND (_p1, 0);
5845 : 15 : switch (TREE_CODE (_q50))
5846 : : {
5847 : 0 : case BIT_AND_EXPR:
5848 : 0 : {
5849 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
5850 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
5851 : 0 : switch (TREE_CODE (_q61))
5852 : : {
5853 : 0 : case INTEGER_CST:
5854 : 0 : {
5855 : 0 : {
5856 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50, _q60, _q61 };
5857 : 0 : tree res = generic_simplify_10 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5858 : 0 : if (res) return res;
5859 : : }
5860 : 0 : break;
5861 : : }
5862 : : default:;
5863 : : }
5864 : : break;
5865 : : }
5866 : : default:;
5867 : : }
5868 : : break;
5869 : : }
5870 : 210 : case BIT_AND_EXPR:
5871 : 210 : {
5872 : 210 : tree _q50 = TREE_OPERAND (_p1, 0);
5873 : 210 : tree _q51 = TREE_OPERAND (_p1, 1);
5874 : 210 : switch (TREE_CODE (_q51))
5875 : : {
5876 : 210 : case INTEGER_CST:
5877 : 210 : {
5878 : 210 : {
5879 : 210 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
5880 : 210 : tree res = generic_simplify_10 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5881 : 210 : if (res) return res;
5882 : : }
5883 : 209 : break;
5884 : : }
5885 : : default:;
5886 : : }
5887 : : break;
5888 : : }
5889 : : default:;
5890 : : }
5891 : : break;
5892 : : }
5893 : : default:;
5894 : : }
5895 : : break;
5896 : : }
5897 : 514113 : CASE_CONVERT:
5898 : 514113 : {
5899 : 514113 : tree _q20 = TREE_OPERAND (_p0, 0);
5900 : 514113 : switch (TREE_CODE (_q20))
5901 : : {
5902 : 24 : case BIT_AND_EXPR:
5903 : 24 : {
5904 : 24 : tree _q30 = TREE_OPERAND (_q20, 0);
5905 : 24 : tree _q31 = TREE_OPERAND (_q20, 1);
5906 : 24 : switch (TREE_CODE (_q31))
5907 : : {
5908 : 0 : case INTEGER_CST:
5909 : 0 : {
5910 : 0 : switch (TREE_CODE (_p1))
5911 : : {
5912 : 0 : CASE_CONVERT:
5913 : 0 : {
5914 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
5915 : 0 : switch (TREE_CODE (_q60))
5916 : : {
5917 : 0 : case BIT_AND_EXPR:
5918 : 0 : {
5919 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
5920 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
5921 : 0 : switch (TREE_CODE (_q71))
5922 : : {
5923 : 0 : case INTEGER_CST:
5924 : 0 : {
5925 : 0 : {
5926 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q60, _q70, _q71 };
5927 : 0 : tree res = generic_simplify_10 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5928 : 0 : if (res) return res;
5929 : : }
5930 : 0 : break;
5931 : : }
5932 : : default:;
5933 : : }
5934 : : break;
5935 : : }
5936 : : default:;
5937 : : }
5938 : : break;
5939 : : }
5940 : 0 : case BIT_AND_EXPR:
5941 : 0 : {
5942 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
5943 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
5944 : 0 : switch (TREE_CODE (_q61))
5945 : : {
5946 : 0 : case INTEGER_CST:
5947 : 0 : {
5948 : 0 : {
5949 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _p1, _q60, _q61 };
5950 : 0 : tree res = generic_simplify_10 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5951 : 0 : if (res) return res;
5952 : : }
5953 : 0 : break;
5954 : : }
5955 : : default:;
5956 : : }
5957 : : break;
5958 : : }
5959 : : default:;
5960 : : }
5961 : : break;
5962 : : }
5963 : : default:;
5964 : : }
5965 : : break;
5966 : : }
5967 : 17 : case BIT_IOR_EXPR:
5968 : 17 : {
5969 : 17 : tree _q30 = TREE_OPERAND (_q20, 0);
5970 : 17 : tree _q31 = TREE_OPERAND (_q20, 1);
5971 : 17 : switch (TREE_CODE (_p1))
5972 : : {
5973 : 16 : CASE_CONVERT:
5974 : 16 : {
5975 : 16 : tree _q60 = TREE_OPERAND (_p1, 0);
5976 : 16 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q30, 0))
5977 : : {
5978 : 0 : {
5979 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q30 };
5980 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
5981 : 0 : if (res) return res;
5982 : : }
5983 : : }
5984 : 16 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q31, 0))
5985 : : {
5986 : 0 : {
5987 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q31 };
5988 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
5989 : 0 : if (res) return res;
5990 : : }
5991 : : }
5992 : : break;
5993 : : }
5994 : 17 : default:;
5995 : : }
5996 : 17 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q30, 0))
5997 : : {
5998 : 0 : {
5999 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q30 };
6000 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6001 : 0 : if (res) return res;
6002 : : }
6003 : : }
6004 : 17 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q31, 0))
6005 : : {
6006 : 0 : {
6007 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q31 };
6008 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6009 : 0 : if (res) return res;
6010 : : }
6011 : : }
6012 : : break;
6013 : : }
6014 : 514113 : default:;
6015 : : }
6016 : 514113 : switch (TREE_CODE (_p1))
6017 : : {
6018 : 510063 : CASE_CONVERT:
6019 : 510063 : {
6020 : 510063 : tree _q40 = TREE_OPERAND (_p1, 0);
6021 : 510063 : switch (TREE_CODE (_q40))
6022 : : {
6023 : 0 : case BIT_IOR_EXPR:
6024 : 0 : {
6025 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
6026 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
6027 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
6028 : : {
6029 : 0 : {
6030 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q51, _q20 };
6031 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6032 : 0 : if (res) return res;
6033 : : }
6034 : : }
6035 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q20, 0))
6036 : : {
6037 : 0 : {
6038 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q51, _q50, _q20 };
6039 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6040 : 0 : if (res) return res;
6041 : : }
6042 : : }
6043 : : break;
6044 : : }
6045 : : default:;
6046 : : }
6047 : : break;
6048 : : }
6049 : 26 : case BIT_IOR_EXPR:
6050 : 26 : {
6051 : 26 : tree _q40 = TREE_OPERAND (_p1, 0);
6052 : 26 : tree _q41 = TREE_OPERAND (_p1, 1);
6053 : 26 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _q20, 0))
6054 : : {
6055 : 0 : {
6056 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _q20 };
6057 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6058 : 0 : if (res) return res;
6059 : : }
6060 : : }
6061 : 26 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _q20, 0))
6062 : : {
6063 : 0 : {
6064 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _q20 };
6065 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6066 : 0 : if (res) return res;
6067 : : }
6068 : : }
6069 : : break;
6070 : : }
6071 : : default:;
6072 : : }
6073 : : break;
6074 : : }
6075 : 702971 : default:;
6076 : : }
6077 : 702971 : switch (TREE_CODE (_p1))
6078 : : {
6079 : 553842 : CASE_CONVERT:
6080 : 553842 : {
6081 : 553842 : tree _q30 = TREE_OPERAND (_p1, 0);
6082 : 553842 : switch (TREE_CODE (_q30))
6083 : : {
6084 : 6 : case BIT_IOR_EXPR:
6085 : 6 : {
6086 : 6 : tree _q40 = TREE_OPERAND (_q30, 0);
6087 : 6 : tree _q41 = TREE_OPERAND (_q30, 1);
6088 : 6 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _p0, 0))
6089 : : {
6090 : 0 : {
6091 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _p0 };
6092 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6093 : 0 : if (res) return res;
6094 : : }
6095 : : }
6096 : 6 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _p0, 0))
6097 : : {
6098 : 0 : {
6099 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _p0 };
6100 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6101 : 0 : if (res) return res;
6102 : : }
6103 : : }
6104 : : break;
6105 : : }
6106 : : default:;
6107 : : }
6108 : : break;
6109 : : }
6110 : 518 : case BIT_IOR_EXPR:
6111 : 518 : {
6112 : 518 : tree _q30 = TREE_OPERAND (_p1, 0);
6113 : 518 : tree _q31 = TREE_OPERAND (_p1, 1);
6114 : 518 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || operand_equal_p (_q30, _p0, 0))
6115 : : {
6116 : 1 : {
6117 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p0 };
6118 : 1 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6119 : 1 : if (res) return res;
6120 : : }
6121 : : }
6122 : 517 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || operand_equal_p (_q31, _p0, 0))
6123 : : {
6124 : 1 : {
6125 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _p0 };
6126 : 1 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6127 : 1 : if (res) return res;
6128 : : }
6129 : : }
6130 : : break;
6131 : : }
6132 : 702969 : default:;
6133 : : }
6134 : 702969 : {
6135 : 702969 : tree _p0_pops[1];
6136 : 702969 : if (tree_nop_convert (_p0, _p0_pops))
6137 : : {
6138 : 494859 : tree _q20 = _p0_pops[0];
6139 : 494859 : switch (TREE_CODE (_q20))
6140 : : {
6141 : 16 : case BIT_IOR_EXPR:
6142 : 16 : {
6143 : 16 : tree _q30 = TREE_OPERAND (_q20, 0);
6144 : 16 : tree _q31 = TREE_OPERAND (_q20, 1);
6145 : 16 : {
6146 : 16 : tree _q30_pops[1];
6147 : 16 : if (tree_nop_convert (_q30, _q30_pops))
6148 : : {
6149 : 0 : tree _q40 = _q30_pops[0];
6150 : 0 : switch (TREE_CODE (_q40))
6151 : : {
6152 : 0 : case BIT_NOT_EXPR:
6153 : 0 : {
6154 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
6155 : 0 : {
6156 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q31, _p1 };
6157 : 0 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
6158 : 0 : if (res) return res;
6159 : : }
6160 : 0 : break;
6161 : : }
6162 : : default:;
6163 : : }
6164 : : }
6165 : : }
6166 : 16 : {
6167 : 16 : tree _q31_pops[1];
6168 : 16 : if (tree_nop_convert (_q31, _q31_pops))
6169 : : {
6170 : 0 : tree _q50 = _q31_pops[0];
6171 : 0 : switch (TREE_CODE (_q50))
6172 : : {
6173 : 0 : case BIT_NOT_EXPR:
6174 : 0 : {
6175 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
6176 : 0 : {
6177 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q60, _q30, _p1 };
6178 : 0 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
6179 : 0 : if (res) return res;
6180 : : }
6181 : 0 : break;
6182 : : }
6183 : : default:;
6184 : : }
6185 : : }
6186 : : }
6187 : 16 : switch (TREE_CODE (_q30))
6188 : : {
6189 : 16 : case BIT_NOT_EXPR:
6190 : 16 : {
6191 : 16 : tree _q40 = TREE_OPERAND (_q30, 0);
6192 : 16 : {
6193 : 16 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q31, _p1 };
6194 : 16 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
6195 : 16 : if (res) return res;
6196 : : }
6197 : 0 : break;
6198 : : }
6199 : 0 : default:;
6200 : : }
6201 : 0 : switch (TREE_CODE (_q31))
6202 : : {
6203 : 0 : case BIT_NOT_EXPR:
6204 : 0 : {
6205 : 0 : tree _q50 = TREE_OPERAND (_q31, 0);
6206 : 0 : {
6207 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q30, _p1 };
6208 : 0 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
6209 : 0 : if (res) return res;
6210 : : }
6211 : 0 : break;
6212 : : }
6213 : : default:;
6214 : : }
6215 : : break;
6216 : : }
6217 : : default:;
6218 : : }
6219 : : }
6220 : : }
6221 : 702953 : switch (TREE_CODE (_p1))
6222 : : {
6223 : 516 : case BIT_IOR_EXPR:
6224 : 516 : {
6225 : 516 : tree _q30 = TREE_OPERAND (_p1, 0);
6226 : 516 : tree _q31 = TREE_OPERAND (_p1, 1);
6227 : 516 : {
6228 : 516 : tree _q30_pops[1];
6229 : 516 : if (tree_nop_convert (_q30, _q30_pops))
6230 : : {
6231 : 2 : tree _q40 = _q30_pops[0];
6232 : 2 : switch (TREE_CODE (_q40))
6233 : : {
6234 : 0 : case BIT_NOT_EXPR:
6235 : 0 : {
6236 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
6237 : 0 : {
6238 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q31, _p0 };
6239 : 0 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
6240 : 0 : if (res) return res;
6241 : : }
6242 : 0 : break;
6243 : : }
6244 : : default:;
6245 : : }
6246 : : }
6247 : : }
6248 : 516 : {
6249 : 516 : tree _q31_pops[1];
6250 : 516 : if (tree_nop_convert (_q31, _q31_pops))
6251 : : {
6252 : 2 : tree _q50 = _q31_pops[0];
6253 : 2 : switch (TREE_CODE (_q50))
6254 : : {
6255 : 0 : case BIT_NOT_EXPR:
6256 : 0 : {
6257 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
6258 : 0 : {
6259 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q60, _q30, _p0 };
6260 : 0 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
6261 : 0 : if (res) return res;
6262 : : }
6263 : 0 : break;
6264 : : }
6265 : : default:;
6266 : : }
6267 : : }
6268 : : }
6269 : 516 : switch (TREE_CODE (_q30))
6270 : : {
6271 : 18 : case BIT_NOT_EXPR:
6272 : 18 : {
6273 : 18 : tree _q40 = TREE_OPERAND (_q30, 0);
6274 : 18 : {
6275 : 18 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q31, _p0 };
6276 : 18 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
6277 : 18 : if (res) return res;
6278 : : }
6279 : 18 : break;
6280 : : }
6281 : 516 : default:;
6282 : : }
6283 : 516 : switch (TREE_CODE (_q31))
6284 : : {
6285 : 25 : case BIT_NOT_EXPR:
6286 : 25 : {
6287 : 25 : tree _q50 = TREE_OPERAND (_q31, 0);
6288 : 25 : {
6289 : 25 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q30, _p0 };
6290 : 25 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
6291 : 25 : if (res) return res;
6292 : : }
6293 : 17 : break;
6294 : : }
6295 : : default:;
6296 : : }
6297 : : break;
6298 : : }
6299 : 702945 : default:;
6300 : : }
6301 : 702945 : {
6302 : 702945 : tree _p1_pops[1];
6303 : 702945 : if (tree_nop_convert (_p1, _p1_pops))
6304 : : {
6305 : 537062 : tree _q30 = _p1_pops[0];
6306 : 537062 : switch (TREE_CODE (_q30))
6307 : : {
6308 : 0 : case BIT_IOR_EXPR:
6309 : 0 : {
6310 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
6311 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
6312 : 0 : {
6313 : 0 : tree _q40_pops[1];
6314 : 0 : if (tree_nop_convert (_q40, _q40_pops))
6315 : : {
6316 : 0 : tree _q50 = _q40_pops[0];
6317 : 0 : switch (TREE_CODE (_q50))
6318 : : {
6319 : 0 : case BIT_NOT_EXPR:
6320 : 0 : {
6321 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
6322 : 0 : {
6323 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q60, _q41, _p0 };
6324 : 0 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
6325 : 0 : if (res) return res;
6326 : : }
6327 : 0 : break;
6328 : : }
6329 : : default:;
6330 : : }
6331 : : }
6332 : : }
6333 : 0 : {
6334 : 0 : tree _q41_pops[1];
6335 : 0 : if (tree_nop_convert (_q41, _q41_pops))
6336 : : {
6337 : 0 : tree _q60 = _q41_pops[0];
6338 : 0 : switch (TREE_CODE (_q60))
6339 : : {
6340 : 0 : case BIT_NOT_EXPR:
6341 : 0 : {
6342 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
6343 : 0 : {
6344 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q70, _q40, _p0 };
6345 : 0 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
6346 : 0 : if (res) return res;
6347 : : }
6348 : 0 : break;
6349 : : }
6350 : : default:;
6351 : : }
6352 : : }
6353 : : }
6354 : 0 : switch (TREE_CODE (_q40))
6355 : : {
6356 : 0 : case BIT_NOT_EXPR:
6357 : 0 : {
6358 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
6359 : 0 : {
6360 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q41, _p0 };
6361 : 0 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
6362 : 0 : if (res) return res;
6363 : : }
6364 : 0 : break;
6365 : : }
6366 : 0 : default:;
6367 : : }
6368 : 0 : switch (TREE_CODE (_q41))
6369 : : {
6370 : 0 : case BIT_NOT_EXPR:
6371 : 0 : {
6372 : 0 : tree _q60 = TREE_OPERAND (_q41, 0);
6373 : 0 : {
6374 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q60, _q40, _p0 };
6375 : 0 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
6376 : 0 : if (res) return res;
6377 : : }
6378 : 0 : break;
6379 : : }
6380 : : default:;
6381 : : }
6382 : : break;
6383 : : }
6384 : : default:;
6385 : : }
6386 : : }
6387 : : }
6388 : 702945 : switch (TREE_CODE (_p0))
6389 : : {
6390 : 514089 : CASE_CONVERT:
6391 : 514089 : {
6392 : 514089 : tree _q20 = TREE_OPERAND (_p0, 0);
6393 : 514089 : switch (TREE_CODE (_q20))
6394 : : {
6395 : 50 : case BIT_NOT_EXPR:
6396 : 50 : {
6397 : 50 : tree _q30 = TREE_OPERAND (_q20, 0);
6398 : 50 : switch (TREE_CODE (_p1))
6399 : : {
6400 : 0 : CASE_CONVERT:
6401 : 0 : {
6402 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
6403 : 0 : switch (TREE_CODE (_q50))
6404 : : {
6405 : 0 : case BIT_NOT_EXPR:
6406 : 0 : {
6407 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
6408 : 0 : {
6409 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q60 };
6410 : 0 : tree res = generic_simplify_162 (loc, type, _p0, _p1, captures);
6411 : 0 : if (res) return res;
6412 : : }
6413 : 0 : break;
6414 : : }
6415 : : default:;
6416 : : }
6417 : : break;
6418 : : }
6419 : 0 : case BIT_NOT_EXPR:
6420 : 0 : {
6421 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
6422 : 0 : {
6423 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q50 };
6424 : 0 : tree res = generic_simplify_162 (loc, type, _p0, _p1, captures);
6425 : 0 : if (res) return res;
6426 : : }
6427 : 0 : break;
6428 : : }
6429 : 26 : case INTEGER_CST:
6430 : 26 : {
6431 : 26 : {
6432 : 26 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p1 };
6433 : 26 : tree res = generic_simplify_163 (loc, type, _p0, _p1, captures);
6434 : 26 : if (res) return res;
6435 : : }
6436 : 24 : break;
6437 : : }
6438 : : default:;
6439 : : }
6440 : : break;
6441 : : }
6442 : : default:;
6443 : : }
6444 : : break;
6445 : : }
6446 : 477 : case BIT_NOT_EXPR:
6447 : 477 : {
6448 : 477 : tree _q20 = TREE_OPERAND (_p0, 0);
6449 : 477 : switch (TREE_CODE (_p1))
6450 : : {
6451 : 18 : CASE_CONVERT:
6452 : 18 : {
6453 : 18 : tree _q40 = TREE_OPERAND (_p1, 0);
6454 : 18 : switch (TREE_CODE (_q40))
6455 : : {
6456 : 0 : case BIT_NOT_EXPR:
6457 : 0 : {
6458 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
6459 : 0 : {
6460 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q50 };
6461 : 0 : tree res = generic_simplify_162 (loc, type, _p0, _p1, captures);
6462 : 0 : if (res) return res;
6463 : : }
6464 : 0 : break;
6465 : : }
6466 : : default:;
6467 : : }
6468 : : break;
6469 : : }
6470 : 10 : case BIT_NOT_EXPR:
6471 : 10 : {
6472 : 10 : tree _q40 = TREE_OPERAND (_p1, 0);
6473 : 10 : {
6474 : 10 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
6475 : 10 : tree res = generic_simplify_162 (loc, type, _p0, _p1, captures);
6476 : 10 : if (res) return res;
6477 : : }
6478 : 0 : break;
6479 : : }
6480 : 24 : case INTEGER_CST:
6481 : 24 : {
6482 : 24 : {
6483 : 24 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
6484 : 24 : tree res = generic_simplify_163 (loc, type, _p0, _p1, captures);
6485 : 24 : if (res) return res;
6486 : : }
6487 : 0 : break;
6488 : : }
6489 : 443 : default:;
6490 : : }
6491 : 443 : {
6492 : 443 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _p1 };
6493 : 443 : tree res = generic_simplify_164 (loc, type, _p0, _p1, captures);
6494 : 443 : if (res) return res;
6495 : : }
6496 : 0 : break;
6497 : : }
6498 : 2832 : case BIT_AND_EXPR:
6499 : 2832 : {
6500 : 2832 : tree _q20 = TREE_OPERAND (_p0, 0);
6501 : 2832 : tree _q21 = TREE_OPERAND (_p0, 1);
6502 : 2832 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6503 : : {
6504 : 67 : {
6505 : 67 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
6506 : 67 : tree res = generic_simplify_165 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6507 : 67 : if (res) return res;
6508 : : }
6509 : : }
6510 : 2765 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
6511 : : {
6512 : 3 : {
6513 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
6514 : 3 : tree res = generic_simplify_165 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6515 : 3 : if (res) return res;
6516 : : }
6517 : : }
6518 : 2762 : switch (TREE_CODE (_p1))
6519 : : {
6520 : 353 : case BIT_AND_EXPR:
6521 : 353 : {
6522 : 353 : tree _q50 = TREE_OPERAND (_p1, 0);
6523 : 353 : tree _q51 = TREE_OPERAND (_p1, 1);
6524 : 353 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
6525 : : {
6526 : 21 : {
6527 : 21 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q51, _q20 };
6528 : 21 : tree res = generic_simplify_95 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6529 : 21 : if (res) return res;
6530 : : }
6531 : : }
6532 : 332 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q20, 0))
6533 : : {
6534 : 0 : {
6535 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q50, _q20 };
6536 : 0 : tree res = generic_simplify_95 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6537 : 0 : if (res) return res;
6538 : : }
6539 : : }
6540 : 332 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q21, 0))
6541 : : {
6542 : 0 : {
6543 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q51, _q21 };
6544 : 0 : tree res = generic_simplify_95 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6545 : 0 : if (res) return res;
6546 : : }
6547 : : }
6548 : 332 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q21, 0))
6549 : : {
6550 : 201 : {
6551 : 201 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q50, _q21 };
6552 : 201 : tree res = generic_simplify_95 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6553 : 201 : if (res) return res;
6554 : : }
6555 : : }
6556 : : break;
6557 : : }
6558 : : default:;
6559 : : }
6560 : : break;
6561 : : }
6562 : 702174 : default:;
6563 : : }
6564 : 702174 : switch (TREE_CODE (_p1))
6565 : : {
6566 : 421 : case BIT_AND_EXPR:
6567 : 421 : {
6568 : 421 : tree _q30 = TREE_OPERAND (_p1, 0);
6569 : 421 : tree _q31 = TREE_OPERAND (_p1, 1);
6570 : 421 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
6571 : : {
6572 : 0 : {
6573 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q30, _p0 };
6574 : 0 : tree res = generic_simplify_165 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6575 : 0 : if (res) return res;
6576 : : }
6577 : : }
6578 : 421 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
6579 : : {
6580 : 0 : {
6581 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q31, _p0 };
6582 : 0 : tree res = generic_simplify_165 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6583 : 0 : if (res) return res;
6584 : : }
6585 : : }
6586 : : break;
6587 : : }
6588 : 702174 : default:;
6589 : : }
6590 : 702174 : switch (TREE_CODE (_p0))
6591 : : {
6592 : 514087 : CASE_CONVERT:
6593 : 514087 : {
6594 : 514087 : tree _q20 = TREE_OPERAND (_p0, 0);
6595 : 514087 : switch (TREE_CODE (_q20))
6596 : : {
6597 : 24 : case BIT_AND_EXPR:
6598 : 24 : {
6599 : 24 : tree _q30 = TREE_OPERAND (_q20, 0);
6600 : 24 : tree _q31 = TREE_OPERAND (_q20, 1);
6601 : 24 : switch (TREE_CODE (_p1))
6602 : : {
6603 : 8 : CASE_CONVERT:
6604 : 8 : {
6605 : 8 : tree _q60 = TREE_OPERAND (_p1, 0);
6606 : 8 : switch (TREE_CODE (_q60))
6607 : : {
6608 : 0 : case BIT_AND_EXPR:
6609 : 0 : {
6610 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
6611 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
6612 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q30, 0))
6613 : : {
6614 : 0 : {
6615 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q71, _q30 };
6616 : 0 : tree res = generic_simplify_95 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6617 : 0 : if (res) return res;
6618 : : }
6619 : : }
6620 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || operand_equal_p (_q71, _q30, 0))
6621 : : {
6622 : 0 : {
6623 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q70, _q30 };
6624 : 0 : tree res = generic_simplify_95 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6625 : 0 : if (res) return res;
6626 : : }
6627 : : }
6628 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q31, 0))
6629 : : {
6630 : 0 : {
6631 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q31, _q30, _q71, _q31 };
6632 : 0 : tree res = generic_simplify_95 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6633 : 0 : if (res) return res;
6634 : : }
6635 : : }
6636 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || operand_equal_p (_q71, _q31, 0))
6637 : : {
6638 : 0 : {
6639 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q31, _q30, _q70, _q31 };
6640 : 0 : tree res = generic_simplify_95 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6641 : 0 : if (res) return res;
6642 : : }
6643 : : }
6644 : : break;
6645 : : }
6646 : : default:;
6647 : : }
6648 : : break;
6649 : : }
6650 : : default:;
6651 : : }
6652 : : break;
6653 : : }
6654 : 15148 : case BIT_XOR_EXPR:
6655 : 15148 : {
6656 : 15148 : tree _q30 = TREE_OPERAND (_q20, 0);
6657 : 15148 : tree _q31 = TREE_OPERAND (_q20, 1);
6658 : 15148 : switch (TREE_CODE (_p1))
6659 : : {
6660 : 15083 : CASE_CONVERT:
6661 : 15083 : {
6662 : 15083 : tree _q60 = TREE_OPERAND (_p1, 0);
6663 : 15083 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q31, 0))
6664 : : {
6665 : 0 : {
6666 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q31 };
6667 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6668 : 0 : if (res) return res;
6669 : : }
6670 : : }
6671 : 15083 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q30, 0))
6672 : : {
6673 : 0 : {
6674 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q30 };
6675 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6676 : 0 : if (res) return res;
6677 : : }
6678 : : }
6679 : : break;
6680 : : }
6681 : 15148 : default:;
6682 : : }
6683 : 15148 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q31, 0))
6684 : : {
6685 : 0 : {
6686 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q31 };
6687 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6688 : 0 : if (res) return res;
6689 : : }
6690 : : }
6691 : 15148 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q30, 0))
6692 : : {
6693 : 0 : {
6694 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q30 };
6695 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6696 : 0 : if (res) return res;
6697 : : }
6698 : : }
6699 : : break;
6700 : : }
6701 : 514087 : default:;
6702 : : }
6703 : 514087 : switch (TREE_CODE (_p1))
6704 : : {
6705 : 510047 : CASE_CONVERT:
6706 : 510047 : {
6707 : 510047 : tree _q40 = TREE_OPERAND (_p1, 0);
6708 : 510047 : switch (TREE_CODE (_q40))
6709 : : {
6710 : 0 : case BIT_XOR_EXPR:
6711 : 0 : {
6712 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
6713 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
6714 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q20, 0))
6715 : : {
6716 : 0 : {
6717 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q51, _q20 };
6718 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6719 : 0 : if (res) return res;
6720 : : }
6721 : : }
6722 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
6723 : : {
6724 : 0 : {
6725 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q51, _q50, _q20 };
6726 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6727 : 0 : if (res) return res;
6728 : : }
6729 : : }
6730 : : break;
6731 : : }
6732 : : default:;
6733 : : }
6734 : : break;
6735 : : }
6736 : 2 : case BIT_XOR_EXPR:
6737 : 2 : {
6738 : 2 : tree _q40 = TREE_OPERAND (_p1, 0);
6739 : 2 : tree _q41 = TREE_OPERAND (_p1, 1);
6740 : 2 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _q20, 0))
6741 : : {
6742 : 0 : {
6743 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _q20 };
6744 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6745 : 0 : if (res) return res;
6746 : : }
6747 : : }
6748 : 2 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _q20, 0))
6749 : : {
6750 : 0 : {
6751 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _q20 };
6752 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6753 : 0 : if (res) return res;
6754 : : }
6755 : : }
6756 : : break;
6757 : : }
6758 : : default:;
6759 : : }
6760 : : break;
6761 : : }
6762 : 702174 : default:;
6763 : : }
6764 : 702174 : switch (TREE_CODE (_p1))
6765 : : {
6766 : 553808 : CASE_CONVERT:
6767 : 553808 : {
6768 : 553808 : tree _q30 = TREE_OPERAND (_p1, 0);
6769 : 553808 : switch (TREE_CODE (_q30))
6770 : : {
6771 : 8 : case BIT_XOR_EXPR:
6772 : 8 : {
6773 : 8 : tree _q40 = TREE_OPERAND (_q30, 0);
6774 : 8 : tree _q41 = TREE_OPERAND (_q30, 1);
6775 : 8 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _p0, 0))
6776 : : {
6777 : 0 : {
6778 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _p0 };
6779 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6780 : 0 : if (res) return res;
6781 : : }
6782 : : }
6783 : 8 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _p0, 0))
6784 : : {
6785 : 0 : {
6786 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _p0 };
6787 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6788 : 0 : if (res) return res;
6789 : : }
6790 : : }
6791 : : break;
6792 : : }
6793 : : default:;
6794 : : }
6795 : : break;
6796 : : }
6797 : 78 : case BIT_XOR_EXPR:
6798 : 78 : {
6799 : 78 : tree _q30 = TREE_OPERAND (_p1, 0);
6800 : 78 : tree _q31 = TREE_OPERAND (_p1, 1);
6801 : 78 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || operand_equal_p (_q31, _p0, 0))
6802 : : {
6803 : 0 : {
6804 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p0 };
6805 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6806 : 0 : if (res) return res;
6807 : : }
6808 : : }
6809 : 78 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || operand_equal_p (_q30, _p0, 0))
6810 : : {
6811 : 0 : {
6812 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _p0 };
6813 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6814 : 0 : if (res) return res;
6815 : : }
6816 : : }
6817 : : break;
6818 : : }
6819 : 702174 : default:;
6820 : : }
6821 : 702174 : switch (TREE_CODE (_p0))
6822 : : {
6823 : 514087 : CASE_CONVERT:
6824 : 514087 : {
6825 : 514087 : tree _q20 = TREE_OPERAND (_p0, 0);
6826 : 514087 : switch (TREE_CODE (_q20))
6827 : : {
6828 : 15148 : case BIT_XOR_EXPR:
6829 : 15148 : {
6830 : 15148 : tree _q30 = TREE_OPERAND (_q20, 0);
6831 : 15148 : tree _q31 = TREE_OPERAND (_q20, 1);
6832 : 15148 : switch (TREE_CODE (_p1))
6833 : : {
6834 : 15083 : CASE_CONVERT:
6835 : 15083 : {
6836 : 15083 : tree _q60 = TREE_OPERAND (_p1, 0);
6837 : 15083 : switch (TREE_CODE (_q60))
6838 : : {
6839 : 0 : case BIT_XOR_EXPR:
6840 : 0 : {
6841 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
6842 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
6843 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
6844 : : {
6845 : 0 : {
6846 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q71 };
6847 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
6848 : 0 : if (res) return res;
6849 : : }
6850 : : }
6851 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
6852 : : {
6853 : 0 : {
6854 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q70 };
6855 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
6856 : 0 : if (res) return res;
6857 : : }
6858 : : }
6859 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
6860 : : {
6861 : 0 : {
6862 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q71 };
6863 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
6864 : 0 : if (res) return res;
6865 : : }
6866 : : }
6867 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
6868 : : {
6869 : 0 : {
6870 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q70 };
6871 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
6872 : 0 : if (res) return res;
6873 : : }
6874 : : }
6875 : : break;
6876 : : }
6877 : : default:;
6878 : : }
6879 : : break;
6880 : : }
6881 : 0 : case BIT_XOR_EXPR:
6882 : 0 : {
6883 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
6884 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
6885 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
6886 : : {
6887 : 0 : {
6888 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q61 };
6889 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
6890 : 0 : if (res) return res;
6891 : : }
6892 : : }
6893 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
6894 : : {
6895 : 0 : {
6896 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q60 };
6897 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
6898 : 0 : if (res) return res;
6899 : : }
6900 : : }
6901 : 0 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q31, 0) && types_match (_q60, _q31)))
6902 : : {
6903 : 0 : {
6904 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q61 };
6905 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
6906 : 0 : if (res) return res;
6907 : : }
6908 : : }
6909 : 0 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
6910 : : {
6911 : 0 : {
6912 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q60 };
6913 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
6914 : 0 : if (res) return res;
6915 : : }
6916 : : }
6917 : : break;
6918 : : }
6919 : : default:;
6920 : : }
6921 : : break;
6922 : : }
6923 : 514087 : default:;
6924 : : }
6925 : 514087 : switch (TREE_CODE (_p1))
6926 : : {
6927 : 510047 : CASE_CONVERT:
6928 : 510047 : {
6929 : 510047 : tree _q40 = TREE_OPERAND (_p1, 0);
6930 : 510047 : {
6931 : 510047 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
6932 : 510047 : tree res = generic_simplify_102 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
6933 : 510047 : if (res) return res;
6934 : : }
6935 : 486152 : break;
6936 : : }
6937 : 490192 : default:;
6938 : : }
6939 : 490192 : {
6940 : 490192 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
6941 : 490192 : tree res = generic_simplify_103 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
6942 : 490192 : if (res) return res;
6943 : : }
6944 : 490084 : break;
6945 : : }
6946 : 3869 : case BIT_XOR_EXPR:
6947 : 3869 : {
6948 : 3869 : tree _q20 = TREE_OPERAND (_p0, 0);
6949 : 3869 : tree _q21 = TREE_OPERAND (_p0, 1);
6950 : 3869 : switch (TREE_CODE (_p1))
6951 : : {
6952 : 198 : CASE_CONVERT:
6953 : 198 : {
6954 : 198 : tree _q50 = TREE_OPERAND (_p1, 0);
6955 : 198 : switch (TREE_CODE (_q50))
6956 : : {
6957 : 0 : case BIT_XOR_EXPR:
6958 : 0 : {
6959 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
6960 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
6961 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
6962 : : {
6963 : 0 : {
6964 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q61 };
6965 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
6966 : 0 : if (res) return res;
6967 : : }
6968 : : }
6969 : 0 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
6970 : : {
6971 : 0 : {
6972 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q60 };
6973 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
6974 : 0 : if (res) return res;
6975 : : }
6976 : : }
6977 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
6978 : : {
6979 : 0 : {
6980 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q61 };
6981 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
6982 : 0 : if (res) return res;
6983 : : }
6984 : : }
6985 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
6986 : : {
6987 : 0 : {
6988 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q60 };
6989 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
6990 : 0 : if (res) return res;
6991 : : }
6992 : : }
6993 : : break;
6994 : : }
6995 : : default:;
6996 : : }
6997 : : break;
6998 : : }
6999 : 10 : case BIT_XOR_EXPR:
7000 : 10 : {
7001 : 10 : tree _q50 = TREE_OPERAND (_p1, 0);
7002 : 10 : tree _q51 = TREE_OPERAND (_p1, 1);
7003 : 10 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
7004 : : {
7005 : 0 : {
7006 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
7007 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
7008 : 0 : if (res) return res;
7009 : : }
7010 : : }
7011 : 10 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
7012 : : {
7013 : 0 : {
7014 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
7015 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
7016 : 0 : if (res) return res;
7017 : : }
7018 : : }
7019 : 10 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7020 : : {
7021 : 0 : {
7022 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
7023 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
7024 : 0 : if (res) return res;
7025 : : }
7026 : : }
7027 : 10 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7028 : : {
7029 : 0 : {
7030 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
7031 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
7032 : 0 : if (res) return res;
7033 : : }
7034 : : }
7035 : : break;
7036 : : }
7037 : 3869 : default:;
7038 : : }
7039 : 3869 : if (CONSTANT_CLASS_P (_q21))
7040 : : {
7041 : 49 : if (CONSTANT_CLASS_P (_p1))
7042 : : {
7043 : 30 : {
7044 : 30 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
7045 : 30 : tree res = generic_simplify_118 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
7046 : 30 : if (res) return res;
7047 : : }
7048 : : }
7049 : : }
7050 : : break;
7051 : : }
7052 : 63 : case COND_EXPR:
7053 : 63 : {
7054 : 63 : tree _q20 = TREE_OPERAND (_p0, 0);
7055 : 63 : tree _q21 = TREE_OPERAND (_p0, 1);
7056 : 63 : tree _q22 = TREE_OPERAND (_p0, 2);
7057 : 63 : if (integer_zerop (_q22))
7058 : : {
7059 : 63 : switch (TREE_CODE (_p1))
7060 : : {
7061 : 4 : case COND_EXPR:
7062 : 4 : {
7063 : 4 : tree _q60 = TREE_OPERAND (_p1, 0);
7064 : 4 : tree _q61 = TREE_OPERAND (_p1, 1);
7065 : 4 : tree _q62 = TREE_OPERAND (_p1, 2);
7066 : 4 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
7067 : : {
7068 : 0 : if (integer_zerop (_q61))
7069 : : {
7070 : 0 : {
7071 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q62 };
7072 : 0 : const enum tree_code op = BIT_XOR_EXPR;
7073 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1405;
7074 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1405;
7075 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1405;
7076 : 0 : {
7077 : 0 : tree res_op0;
7078 : 0 : res_op0 = captures[1];
7079 : 0 : tree res_op1;
7080 : 0 : res_op1 = captures[2];
7081 : 0 : tree res_op2;
7082 : 0 : res_op2 = captures[4];
7083 : 0 : tree _r;
7084 : 0 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
7085 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 897, __FILE__, __LINE__, true);
7086 : 0 : return _r;
7087 : : }
7088 : 0 : next_after_fail1405:;
7089 : : }
7090 : : }
7091 : : }
7092 : : break;
7093 : : }
7094 : : default:;
7095 : : }
7096 : : }
7097 : 63 : if (integer_zerop (_q21))
7098 : : {
7099 : 0 : switch (TREE_CODE (_p1))
7100 : : {
7101 : 0 : case COND_EXPR:
7102 : 0 : {
7103 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
7104 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
7105 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
7106 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
7107 : : {
7108 : 0 : if (integer_zerop (_q62))
7109 : : {
7110 : 0 : {
7111 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q20, _q61, _p0, _q22 };
7112 : 0 : const enum tree_code op = BIT_XOR_EXPR;
7113 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1406;
7114 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1406;
7115 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1406;
7116 : 0 : {
7117 : 0 : tree res_op0;
7118 : 0 : res_op0 = captures[1];
7119 : 0 : tree res_op1;
7120 : 0 : res_op1 = captures[2];
7121 : 0 : tree res_op2;
7122 : 0 : res_op2 = captures[4];
7123 : 0 : tree _r;
7124 : 0 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
7125 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 897, __FILE__, __LINE__, true);
7126 : 0 : return _r;
7127 : : }
7128 : 0 : next_after_fail1406:;
7129 : : }
7130 : : }
7131 : : }
7132 : : break;
7133 : : }
7134 : : default:;
7135 : : }
7136 : : }
7137 : 63 : switch (TREE_CODE (_q20))
7138 : : {
7139 : 0 : case LT_EXPR:
7140 : 0 : {
7141 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7142 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7143 : 0 : if (zerop (_q22))
7144 : : {
7145 : 0 : switch (TREE_CODE (_p1))
7146 : : {
7147 : 0 : case COND_EXPR:
7148 : 0 : {
7149 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7150 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7151 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7152 : 0 : switch (TREE_CODE (_q80))
7153 : : {
7154 : 0 : case GE_EXPR:
7155 : 0 : {
7156 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7157 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7158 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7159 : : {
7160 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7161 : : {
7162 : 0 : if (zerop (_q82))
7163 : : {
7164 : 0 : {
7165 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7166 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, LT_EXPR, GE_EXPR);
7167 : 0 : if (res) return res;
7168 : : }
7169 : : }
7170 : : }
7171 : : }
7172 : : break;
7173 : : }
7174 : : default:;
7175 : : }
7176 : : break;
7177 : : }
7178 : : default:;
7179 : : }
7180 : : }
7181 : : break;
7182 : : }
7183 : 32 : case LE_EXPR:
7184 : 32 : {
7185 : 32 : tree _q30 = TREE_OPERAND (_q20, 0);
7186 : 32 : tree _q31 = TREE_OPERAND (_q20, 1);
7187 : 32 : if (zerop (_q22))
7188 : : {
7189 : 32 : switch (TREE_CODE (_p1))
7190 : : {
7191 : 0 : case COND_EXPR:
7192 : 0 : {
7193 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7194 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7195 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7196 : 0 : switch (TREE_CODE (_q80))
7197 : : {
7198 : 0 : case GT_EXPR:
7199 : 0 : {
7200 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7201 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7202 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7203 : : {
7204 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7205 : : {
7206 : 0 : if (zerop (_q82))
7207 : : {
7208 : 0 : {
7209 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7210 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, LE_EXPR, GT_EXPR);
7211 : 0 : if (res) return res;
7212 : : }
7213 : : }
7214 : : }
7215 : : }
7216 : : break;
7217 : : }
7218 : : default:;
7219 : : }
7220 : : break;
7221 : : }
7222 : : default:;
7223 : : }
7224 : : }
7225 : : break;
7226 : : }
7227 : 0 : case EQ_EXPR:
7228 : 0 : {
7229 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7230 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7231 : 0 : if (zerop (_q22))
7232 : : {
7233 : 0 : switch (TREE_CODE (_p1))
7234 : : {
7235 : 0 : case COND_EXPR:
7236 : 0 : {
7237 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7238 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7239 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7240 : 0 : switch (TREE_CODE (_q80))
7241 : : {
7242 : 0 : case NE_EXPR:
7243 : 0 : {
7244 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7245 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7246 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7247 : : {
7248 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7249 : : {
7250 : 0 : if (zerop (_q82))
7251 : : {
7252 : 0 : {
7253 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7254 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, EQ_EXPR, NE_EXPR);
7255 : 0 : if (res) return res;
7256 : : }
7257 : : }
7258 : : }
7259 : : }
7260 : : break;
7261 : : }
7262 : : default:;
7263 : : }
7264 : : break;
7265 : : }
7266 : : default:;
7267 : : }
7268 : : }
7269 : : break;
7270 : : }
7271 : 31 : case NE_EXPR:
7272 : 31 : {
7273 : 31 : tree _q30 = TREE_OPERAND (_q20, 0);
7274 : 31 : tree _q31 = TREE_OPERAND (_q20, 1);
7275 : 31 : if (zerop (_q22))
7276 : : {
7277 : 31 : switch (TREE_CODE (_p1))
7278 : : {
7279 : 4 : case COND_EXPR:
7280 : 4 : {
7281 : 4 : tree _q80 = TREE_OPERAND (_p1, 0);
7282 : 4 : tree _q81 = TREE_OPERAND (_p1, 1);
7283 : 4 : tree _q82 = TREE_OPERAND (_p1, 2);
7284 : 4 : switch (TREE_CODE (_q80))
7285 : : {
7286 : 0 : case EQ_EXPR:
7287 : 0 : {
7288 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7289 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7290 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7291 : : {
7292 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7293 : : {
7294 : 0 : if (zerop (_q82))
7295 : : {
7296 : 0 : {
7297 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7298 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, NE_EXPR, EQ_EXPR);
7299 : 0 : if (res) return res;
7300 : : }
7301 : : }
7302 : : }
7303 : : }
7304 : : break;
7305 : : }
7306 : : default:;
7307 : : }
7308 : : break;
7309 : : }
7310 : : default:;
7311 : : }
7312 : : }
7313 : : break;
7314 : : }
7315 : 0 : case GE_EXPR:
7316 : 0 : {
7317 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7318 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7319 : 0 : if (zerop (_q22))
7320 : : {
7321 : 0 : switch (TREE_CODE (_p1))
7322 : : {
7323 : 0 : case COND_EXPR:
7324 : 0 : {
7325 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7326 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7327 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7328 : 0 : switch (TREE_CODE (_q80))
7329 : : {
7330 : 0 : case LT_EXPR:
7331 : 0 : {
7332 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7333 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7334 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7335 : : {
7336 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7337 : : {
7338 : 0 : if (zerop (_q82))
7339 : : {
7340 : 0 : {
7341 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7342 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, GE_EXPR, LT_EXPR);
7343 : 0 : if (res) return res;
7344 : : }
7345 : : }
7346 : : }
7347 : : }
7348 : : break;
7349 : : }
7350 : : default:;
7351 : : }
7352 : : break;
7353 : : }
7354 : : default:;
7355 : : }
7356 : : }
7357 : : break;
7358 : : }
7359 : 0 : case GT_EXPR:
7360 : 0 : {
7361 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7362 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7363 : 0 : if (zerop (_q22))
7364 : : {
7365 : 0 : switch (TREE_CODE (_p1))
7366 : : {
7367 : 0 : case COND_EXPR:
7368 : 0 : {
7369 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7370 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7371 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7372 : 0 : switch (TREE_CODE (_q80))
7373 : : {
7374 : 0 : case LE_EXPR:
7375 : 0 : {
7376 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7377 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7378 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7379 : : {
7380 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7381 : : {
7382 : 0 : if (zerop (_q82))
7383 : : {
7384 : 0 : {
7385 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7386 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, GT_EXPR, LE_EXPR);
7387 : 0 : if (res) return res;
7388 : : }
7389 : : }
7390 : : }
7391 : : }
7392 : : break;
7393 : : }
7394 : : default:;
7395 : : }
7396 : : break;
7397 : : }
7398 : : default:;
7399 : : }
7400 : : }
7401 : : break;
7402 : : }
7403 : 0 : case UNORDERED_EXPR:
7404 : 0 : {
7405 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7406 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7407 : 0 : if (zerop (_q22))
7408 : : {
7409 : 0 : switch (TREE_CODE (_p1))
7410 : : {
7411 : 0 : case COND_EXPR:
7412 : 0 : {
7413 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7414 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7415 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7416 : 0 : switch (TREE_CODE (_q80))
7417 : : {
7418 : 0 : case ORDERED_EXPR:
7419 : 0 : {
7420 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7421 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7422 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7423 : : {
7424 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7425 : : {
7426 : 0 : if (zerop (_q82))
7427 : : {
7428 : 0 : {
7429 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7430 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNORDERED_EXPR, ORDERED_EXPR);
7431 : 0 : if (res) return res;
7432 : : }
7433 : : }
7434 : : }
7435 : : }
7436 : : break;
7437 : : }
7438 : : default:;
7439 : : }
7440 : : break;
7441 : : }
7442 : : default:;
7443 : : }
7444 : : }
7445 : : break;
7446 : : }
7447 : 0 : case ORDERED_EXPR:
7448 : 0 : {
7449 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7450 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7451 : 0 : if (zerop (_q22))
7452 : : {
7453 : 0 : switch (TREE_CODE (_p1))
7454 : : {
7455 : 0 : case COND_EXPR:
7456 : 0 : {
7457 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7458 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7459 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7460 : 0 : switch (TREE_CODE (_q80))
7461 : : {
7462 : 0 : case UNORDERED_EXPR:
7463 : 0 : {
7464 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7465 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7466 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7467 : : {
7468 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7469 : : {
7470 : 0 : if (zerop (_q82))
7471 : : {
7472 : 0 : {
7473 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7474 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, ORDERED_EXPR, UNORDERED_EXPR);
7475 : 0 : if (res) return res;
7476 : : }
7477 : : }
7478 : : }
7479 : : }
7480 : : break;
7481 : : }
7482 : : default:;
7483 : : }
7484 : : break;
7485 : : }
7486 : : default:;
7487 : : }
7488 : : }
7489 : : break;
7490 : : }
7491 : 0 : case UNLT_EXPR:
7492 : 0 : {
7493 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7494 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7495 : 0 : if (zerop (_q22))
7496 : : {
7497 : 0 : switch (TREE_CODE (_p1))
7498 : : {
7499 : 0 : case COND_EXPR:
7500 : 0 : {
7501 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7502 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7503 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7504 : 0 : switch (TREE_CODE (_q80))
7505 : : {
7506 : 0 : case GE_EXPR:
7507 : 0 : {
7508 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7509 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7510 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7511 : : {
7512 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7513 : : {
7514 : 0 : if (zerop (_q82))
7515 : : {
7516 : 0 : {
7517 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7518 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNLT_EXPR, GE_EXPR);
7519 : 0 : if (res) return res;
7520 : : }
7521 : : }
7522 : : }
7523 : : }
7524 : : break;
7525 : : }
7526 : : default:;
7527 : : }
7528 : : break;
7529 : : }
7530 : : default:;
7531 : : }
7532 : : }
7533 : : break;
7534 : : }
7535 : 0 : case UNLE_EXPR:
7536 : 0 : {
7537 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7538 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7539 : 0 : if (zerop (_q22))
7540 : : {
7541 : 0 : switch (TREE_CODE (_p1))
7542 : : {
7543 : 0 : case COND_EXPR:
7544 : 0 : {
7545 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7546 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7547 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7548 : 0 : switch (TREE_CODE (_q80))
7549 : : {
7550 : 0 : case GT_EXPR:
7551 : 0 : {
7552 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7553 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7554 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7555 : : {
7556 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7557 : : {
7558 : 0 : if (zerop (_q82))
7559 : : {
7560 : 0 : {
7561 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7562 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNLE_EXPR, GT_EXPR);
7563 : 0 : if (res) return res;
7564 : : }
7565 : : }
7566 : : }
7567 : : }
7568 : : break;
7569 : : }
7570 : : default:;
7571 : : }
7572 : : break;
7573 : : }
7574 : : default:;
7575 : : }
7576 : : }
7577 : : break;
7578 : : }
7579 : 0 : case UNGT_EXPR:
7580 : 0 : {
7581 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7582 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7583 : 0 : if (zerop (_q22))
7584 : : {
7585 : 0 : switch (TREE_CODE (_p1))
7586 : : {
7587 : 0 : case COND_EXPR:
7588 : 0 : {
7589 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7590 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7591 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7592 : 0 : switch (TREE_CODE (_q80))
7593 : : {
7594 : 0 : case LE_EXPR:
7595 : 0 : {
7596 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7597 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7598 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7599 : : {
7600 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7601 : : {
7602 : 0 : if (zerop (_q82))
7603 : : {
7604 : 0 : {
7605 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7606 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNGT_EXPR, LE_EXPR);
7607 : 0 : if (res) return res;
7608 : : }
7609 : : }
7610 : : }
7611 : : }
7612 : : break;
7613 : : }
7614 : : default:;
7615 : : }
7616 : : break;
7617 : : }
7618 : : default:;
7619 : : }
7620 : : }
7621 : : break;
7622 : : }
7623 : 0 : case UNGE_EXPR:
7624 : 0 : {
7625 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7626 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7627 : 0 : if (zerop (_q22))
7628 : : {
7629 : 0 : switch (TREE_CODE (_p1))
7630 : : {
7631 : 0 : case COND_EXPR:
7632 : 0 : {
7633 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7634 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7635 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7636 : 0 : switch (TREE_CODE (_q80))
7637 : : {
7638 : 0 : case LT_EXPR:
7639 : 0 : {
7640 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7641 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7642 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7643 : : {
7644 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7645 : : {
7646 : 0 : if (zerop (_q82))
7647 : : {
7648 : 0 : {
7649 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7650 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNGE_EXPR, LT_EXPR);
7651 : 0 : if (res) return res;
7652 : : }
7653 : : }
7654 : : }
7655 : : }
7656 : : break;
7657 : : }
7658 : : default:;
7659 : : }
7660 : : break;
7661 : : }
7662 : : default:;
7663 : : }
7664 : : }
7665 : : break;
7666 : : }
7667 : 0 : case UNEQ_EXPR:
7668 : 0 : {
7669 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7670 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7671 : 0 : if (zerop (_q22))
7672 : : {
7673 : 0 : switch (TREE_CODE (_p1))
7674 : : {
7675 : 0 : case COND_EXPR:
7676 : 0 : {
7677 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7678 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7679 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7680 : 0 : switch (TREE_CODE (_q80))
7681 : : {
7682 : 0 : case LTGT_EXPR:
7683 : 0 : {
7684 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7685 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7686 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7687 : : {
7688 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7689 : : {
7690 : 0 : if (zerop (_q82))
7691 : : {
7692 : 0 : {
7693 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7694 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNEQ_EXPR, LTGT_EXPR);
7695 : 0 : if (res) return res;
7696 : : }
7697 : : }
7698 : : }
7699 : : }
7700 : : break;
7701 : : }
7702 : : default:;
7703 : : }
7704 : : break;
7705 : : }
7706 : : default:;
7707 : : }
7708 : : }
7709 : : break;
7710 : : }
7711 : 0 : case LTGT_EXPR:
7712 : 0 : {
7713 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7714 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7715 : 0 : if (zerop (_q22))
7716 : : {
7717 : 0 : switch (TREE_CODE (_p1))
7718 : : {
7719 : 0 : case COND_EXPR:
7720 : 0 : {
7721 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7722 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7723 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7724 : 0 : switch (TREE_CODE (_q80))
7725 : : {
7726 : 0 : case UNEQ_EXPR:
7727 : 0 : {
7728 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7729 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7730 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7731 : : {
7732 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7733 : : {
7734 : 0 : if (zerop (_q82))
7735 : : {
7736 : 0 : {
7737 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7738 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, LTGT_EXPR, UNEQ_EXPR);
7739 : 0 : if (res) return res;
7740 : : }
7741 : : }
7742 : : }
7743 : : }
7744 : : break;
7745 : : }
7746 : : default:;
7747 : : }
7748 : : break;
7749 : : }
7750 : : default:;
7751 : : }
7752 : : }
7753 : : break;
7754 : : }
7755 : : default:;
7756 : : }
7757 : : break;
7758 : : }
7759 : 1 : case VEC_COND_EXPR:
7760 : 1 : {
7761 : 1 : tree _q20 = TREE_OPERAND (_p0, 0);
7762 : 1 : tree _q21 = TREE_OPERAND (_p0, 1);
7763 : 1 : tree _q22 = TREE_OPERAND (_p0, 2);
7764 : 1 : if (integer_zerop (_q22))
7765 : : {
7766 : 1 : switch (TREE_CODE (_p1))
7767 : : {
7768 : 0 : case VEC_COND_EXPR:
7769 : 0 : {
7770 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
7771 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
7772 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
7773 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
7774 : : {
7775 : 0 : if (integer_zerop (_q61))
7776 : : {
7777 : 0 : {
7778 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q62 };
7779 : 0 : const enum tree_code op = BIT_XOR_EXPR;
7780 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1407;
7781 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1407;
7782 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1407;
7783 : 0 : {
7784 : 0 : tree res_op0;
7785 : 0 : res_op0 = captures[1];
7786 : 0 : tree res_op1;
7787 : 0 : res_op1 = captures[2];
7788 : 0 : tree res_op2;
7789 : 0 : res_op2 = captures[4];
7790 : 0 : tree _r;
7791 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
7792 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 897, __FILE__, __LINE__, true);
7793 : 0 : return _r;
7794 : : }
7795 : 0 : next_after_fail1407:;
7796 : : }
7797 : : }
7798 : : }
7799 : : break;
7800 : : }
7801 : : default:;
7802 : : }
7803 : : }
7804 : 1 : if (integer_zerop (_q21))
7805 : : {
7806 : 0 : switch (TREE_CODE (_p1))
7807 : : {
7808 : 0 : case VEC_COND_EXPR:
7809 : 0 : {
7810 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
7811 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
7812 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
7813 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
7814 : : {
7815 : 0 : if (integer_zerop (_q62))
7816 : : {
7817 : 0 : {
7818 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q20, _q61, _p0, _q22 };
7819 : 0 : const enum tree_code op = BIT_XOR_EXPR;
7820 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1408;
7821 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1408;
7822 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1408;
7823 : 0 : {
7824 : 0 : tree res_op0;
7825 : 0 : res_op0 = captures[1];
7826 : 0 : tree res_op1;
7827 : 0 : res_op1 = captures[2];
7828 : 0 : tree res_op2;
7829 : 0 : res_op2 = captures[4];
7830 : 0 : tree _r;
7831 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
7832 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 897, __FILE__, __LINE__, true);
7833 : 0 : return _r;
7834 : : }
7835 : 0 : next_after_fail1408:;
7836 : : }
7837 : : }
7838 : : }
7839 : : break;
7840 : : }
7841 : : default:;
7842 : : }
7843 : : }
7844 : 1 : switch (TREE_CODE (_q20))
7845 : : {
7846 : 0 : case LT_EXPR:
7847 : 0 : {
7848 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7849 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7850 : 0 : if (integer_zerop (_q22))
7851 : : {
7852 : 0 : switch (TREE_CODE (_p1))
7853 : : {
7854 : 0 : case VEC_COND_EXPR:
7855 : 0 : {
7856 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7857 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7858 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7859 : 0 : switch (TREE_CODE (_q80))
7860 : : {
7861 : 0 : case GE_EXPR:
7862 : 0 : {
7863 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7864 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7865 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7866 : : {
7867 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7868 : : {
7869 : 0 : if (integer_zerop (_q82))
7870 : : {
7871 : 0 : {
7872 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
7873 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, LT_EXPR, GE_EXPR);
7874 : 0 : if (res) return res;
7875 : : }
7876 : : }
7877 : : }
7878 : : }
7879 : : break;
7880 : : }
7881 : : default:;
7882 : : }
7883 : : break;
7884 : : }
7885 : : default:;
7886 : : }
7887 : : }
7888 : : break;
7889 : : }
7890 : 0 : case LE_EXPR:
7891 : 0 : {
7892 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7893 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7894 : 0 : if (integer_zerop (_q22))
7895 : : {
7896 : 0 : switch (TREE_CODE (_p1))
7897 : : {
7898 : 0 : case VEC_COND_EXPR:
7899 : 0 : {
7900 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7901 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7902 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7903 : 0 : switch (TREE_CODE (_q80))
7904 : : {
7905 : 0 : case GT_EXPR:
7906 : 0 : {
7907 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7908 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7909 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7910 : : {
7911 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7912 : : {
7913 : 0 : if (integer_zerop (_q82))
7914 : : {
7915 : 0 : {
7916 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
7917 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, LE_EXPR, GT_EXPR);
7918 : 0 : if (res) return res;
7919 : : }
7920 : : }
7921 : : }
7922 : : }
7923 : : break;
7924 : : }
7925 : : default:;
7926 : : }
7927 : : break;
7928 : : }
7929 : : default:;
7930 : : }
7931 : : }
7932 : : break;
7933 : : }
7934 : 0 : case EQ_EXPR:
7935 : 0 : {
7936 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7937 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7938 : 0 : if (integer_zerop (_q22))
7939 : : {
7940 : 0 : switch (TREE_CODE (_p1))
7941 : : {
7942 : 0 : case VEC_COND_EXPR:
7943 : 0 : {
7944 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7945 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7946 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7947 : 0 : switch (TREE_CODE (_q80))
7948 : : {
7949 : 0 : case NE_EXPR:
7950 : 0 : {
7951 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7952 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7953 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7954 : : {
7955 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7956 : : {
7957 : 0 : if (integer_zerop (_q82))
7958 : : {
7959 : 0 : {
7960 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
7961 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, EQ_EXPR, NE_EXPR);
7962 : 0 : if (res) return res;
7963 : : }
7964 : : }
7965 : : }
7966 : : }
7967 : : break;
7968 : : }
7969 : : default:;
7970 : : }
7971 : : break;
7972 : : }
7973 : : default:;
7974 : : }
7975 : : }
7976 : : break;
7977 : : }
7978 : 1 : case NE_EXPR:
7979 : 1 : {
7980 : 1 : tree _q30 = TREE_OPERAND (_q20, 0);
7981 : 1 : tree _q31 = TREE_OPERAND (_q20, 1);
7982 : 1 : if (integer_zerop (_q22))
7983 : : {
7984 : 1 : switch (TREE_CODE (_p1))
7985 : : {
7986 : 0 : case VEC_COND_EXPR:
7987 : 0 : {
7988 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7989 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7990 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7991 : 0 : switch (TREE_CODE (_q80))
7992 : : {
7993 : 0 : case EQ_EXPR:
7994 : 0 : {
7995 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7996 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7997 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7998 : : {
7999 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8000 : : {
8001 : 0 : if (integer_zerop (_q82))
8002 : : {
8003 : 0 : {
8004 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8005 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, NE_EXPR, EQ_EXPR);
8006 : 0 : if (res) return res;
8007 : : }
8008 : : }
8009 : : }
8010 : : }
8011 : : break;
8012 : : }
8013 : : default:;
8014 : : }
8015 : : break;
8016 : : }
8017 : : default:;
8018 : : }
8019 : : }
8020 : : break;
8021 : : }
8022 : 0 : case GE_EXPR:
8023 : 0 : {
8024 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8025 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8026 : 0 : if (integer_zerop (_q22))
8027 : : {
8028 : 0 : switch (TREE_CODE (_p1))
8029 : : {
8030 : 0 : case VEC_COND_EXPR:
8031 : 0 : {
8032 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8033 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8034 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8035 : 0 : switch (TREE_CODE (_q80))
8036 : : {
8037 : 0 : case LT_EXPR:
8038 : 0 : {
8039 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8040 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8041 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8042 : : {
8043 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8044 : : {
8045 : 0 : if (integer_zerop (_q82))
8046 : : {
8047 : 0 : {
8048 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8049 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, GE_EXPR, LT_EXPR);
8050 : 0 : if (res) return res;
8051 : : }
8052 : : }
8053 : : }
8054 : : }
8055 : : break;
8056 : : }
8057 : : default:;
8058 : : }
8059 : : break;
8060 : : }
8061 : : default:;
8062 : : }
8063 : : }
8064 : : break;
8065 : : }
8066 : 0 : case GT_EXPR:
8067 : 0 : {
8068 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8069 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8070 : 0 : if (integer_zerop (_q22))
8071 : : {
8072 : 0 : switch (TREE_CODE (_p1))
8073 : : {
8074 : 0 : case VEC_COND_EXPR:
8075 : 0 : {
8076 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8077 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8078 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8079 : 0 : switch (TREE_CODE (_q80))
8080 : : {
8081 : 0 : case LE_EXPR:
8082 : 0 : {
8083 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8084 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8085 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8086 : : {
8087 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8088 : : {
8089 : 0 : if (integer_zerop (_q82))
8090 : : {
8091 : 0 : {
8092 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8093 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, GT_EXPR, LE_EXPR);
8094 : 0 : if (res) return res;
8095 : : }
8096 : : }
8097 : : }
8098 : : }
8099 : : break;
8100 : : }
8101 : : default:;
8102 : : }
8103 : : break;
8104 : : }
8105 : : default:;
8106 : : }
8107 : : }
8108 : : break;
8109 : : }
8110 : 0 : case UNORDERED_EXPR:
8111 : 0 : {
8112 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8113 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8114 : 0 : if (integer_zerop (_q22))
8115 : : {
8116 : 0 : switch (TREE_CODE (_p1))
8117 : : {
8118 : 0 : case VEC_COND_EXPR:
8119 : 0 : {
8120 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8121 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8122 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8123 : 0 : switch (TREE_CODE (_q80))
8124 : : {
8125 : 0 : case ORDERED_EXPR:
8126 : 0 : {
8127 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8128 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8129 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8130 : : {
8131 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8132 : : {
8133 : 0 : if (integer_zerop (_q82))
8134 : : {
8135 : 0 : {
8136 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8137 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNORDERED_EXPR, ORDERED_EXPR);
8138 : 0 : if (res) return res;
8139 : : }
8140 : : }
8141 : : }
8142 : : }
8143 : : break;
8144 : : }
8145 : : default:;
8146 : : }
8147 : : break;
8148 : : }
8149 : : default:;
8150 : : }
8151 : : }
8152 : : break;
8153 : : }
8154 : 0 : case ORDERED_EXPR:
8155 : 0 : {
8156 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8157 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8158 : 0 : if (integer_zerop (_q22))
8159 : : {
8160 : 0 : switch (TREE_CODE (_p1))
8161 : : {
8162 : 0 : case VEC_COND_EXPR:
8163 : 0 : {
8164 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8165 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8166 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8167 : 0 : switch (TREE_CODE (_q80))
8168 : : {
8169 : 0 : case UNORDERED_EXPR:
8170 : 0 : {
8171 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8172 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8173 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8174 : : {
8175 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8176 : : {
8177 : 0 : if (integer_zerop (_q82))
8178 : : {
8179 : 0 : {
8180 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8181 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, ORDERED_EXPR, UNORDERED_EXPR);
8182 : 0 : if (res) return res;
8183 : : }
8184 : : }
8185 : : }
8186 : : }
8187 : : break;
8188 : : }
8189 : : default:;
8190 : : }
8191 : : break;
8192 : : }
8193 : : default:;
8194 : : }
8195 : : }
8196 : : break;
8197 : : }
8198 : 0 : case UNLT_EXPR:
8199 : 0 : {
8200 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8201 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8202 : 0 : if (integer_zerop (_q22))
8203 : : {
8204 : 0 : switch (TREE_CODE (_p1))
8205 : : {
8206 : 0 : case VEC_COND_EXPR:
8207 : 0 : {
8208 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8209 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8210 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8211 : 0 : switch (TREE_CODE (_q80))
8212 : : {
8213 : 0 : case GE_EXPR:
8214 : 0 : {
8215 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8216 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8217 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8218 : : {
8219 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8220 : : {
8221 : 0 : if (integer_zerop (_q82))
8222 : : {
8223 : 0 : {
8224 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8225 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNLT_EXPR, GE_EXPR);
8226 : 0 : if (res) return res;
8227 : : }
8228 : : }
8229 : : }
8230 : : }
8231 : : break;
8232 : : }
8233 : : default:;
8234 : : }
8235 : : break;
8236 : : }
8237 : : default:;
8238 : : }
8239 : : }
8240 : : break;
8241 : : }
8242 : 0 : case UNLE_EXPR:
8243 : 0 : {
8244 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8245 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8246 : 0 : if (integer_zerop (_q22))
8247 : : {
8248 : 0 : switch (TREE_CODE (_p1))
8249 : : {
8250 : 0 : case VEC_COND_EXPR:
8251 : 0 : {
8252 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8253 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8254 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8255 : 0 : switch (TREE_CODE (_q80))
8256 : : {
8257 : 0 : case GT_EXPR:
8258 : 0 : {
8259 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8260 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8261 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8262 : : {
8263 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8264 : : {
8265 : 0 : if (integer_zerop (_q82))
8266 : : {
8267 : 0 : {
8268 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8269 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNLE_EXPR, GT_EXPR);
8270 : 0 : if (res) return res;
8271 : : }
8272 : : }
8273 : : }
8274 : : }
8275 : : break;
8276 : : }
8277 : : default:;
8278 : : }
8279 : : break;
8280 : : }
8281 : : default:;
8282 : : }
8283 : : }
8284 : : break;
8285 : : }
8286 : 0 : case UNGT_EXPR:
8287 : 0 : {
8288 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8289 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8290 : 0 : if (integer_zerop (_q22))
8291 : : {
8292 : 0 : switch (TREE_CODE (_p1))
8293 : : {
8294 : 0 : case VEC_COND_EXPR:
8295 : 0 : {
8296 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8297 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8298 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8299 : 0 : switch (TREE_CODE (_q80))
8300 : : {
8301 : 0 : case LE_EXPR:
8302 : 0 : {
8303 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8304 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8305 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8306 : : {
8307 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8308 : : {
8309 : 0 : if (integer_zerop (_q82))
8310 : : {
8311 : 0 : {
8312 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8313 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNGT_EXPR, LE_EXPR);
8314 : 0 : if (res) return res;
8315 : : }
8316 : : }
8317 : : }
8318 : : }
8319 : : break;
8320 : : }
8321 : : default:;
8322 : : }
8323 : : break;
8324 : : }
8325 : : default:;
8326 : : }
8327 : : }
8328 : : break;
8329 : : }
8330 : 0 : case UNGE_EXPR:
8331 : 0 : {
8332 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8333 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8334 : 0 : if (integer_zerop (_q22))
8335 : : {
8336 : 0 : switch (TREE_CODE (_p1))
8337 : : {
8338 : 0 : case VEC_COND_EXPR:
8339 : 0 : {
8340 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8341 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8342 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8343 : 0 : switch (TREE_CODE (_q80))
8344 : : {
8345 : 0 : case LT_EXPR:
8346 : 0 : {
8347 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8348 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8349 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8350 : : {
8351 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8352 : : {
8353 : 0 : if (integer_zerop (_q82))
8354 : : {
8355 : 0 : {
8356 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8357 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNGE_EXPR, LT_EXPR);
8358 : 0 : if (res) return res;
8359 : : }
8360 : : }
8361 : : }
8362 : : }
8363 : : break;
8364 : : }
8365 : : default:;
8366 : : }
8367 : : break;
8368 : : }
8369 : : default:;
8370 : : }
8371 : : }
8372 : : break;
8373 : : }
8374 : 0 : case UNEQ_EXPR:
8375 : 0 : {
8376 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8377 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8378 : 0 : if (integer_zerop (_q22))
8379 : : {
8380 : 0 : switch (TREE_CODE (_p1))
8381 : : {
8382 : 0 : case VEC_COND_EXPR:
8383 : 0 : {
8384 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8385 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8386 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8387 : 0 : switch (TREE_CODE (_q80))
8388 : : {
8389 : 0 : case LTGT_EXPR:
8390 : 0 : {
8391 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8392 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8393 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8394 : : {
8395 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8396 : : {
8397 : 0 : if (integer_zerop (_q82))
8398 : : {
8399 : 0 : {
8400 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8401 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNEQ_EXPR, LTGT_EXPR);
8402 : 0 : if (res) return res;
8403 : : }
8404 : : }
8405 : : }
8406 : : }
8407 : : break;
8408 : : }
8409 : : default:;
8410 : : }
8411 : : break;
8412 : : }
8413 : : default:;
8414 : : }
8415 : : }
8416 : : break;
8417 : : }
8418 : 0 : case LTGT_EXPR:
8419 : 0 : {
8420 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8421 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8422 : 0 : if (integer_zerop (_q22))
8423 : : {
8424 : 0 : switch (TREE_CODE (_p1))
8425 : : {
8426 : 0 : case VEC_COND_EXPR:
8427 : 0 : {
8428 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8429 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8430 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8431 : 0 : switch (TREE_CODE (_q80))
8432 : : {
8433 : 0 : case UNEQ_EXPR:
8434 : 0 : {
8435 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8436 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8437 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8438 : : {
8439 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8440 : : {
8441 : 0 : if (integer_zerop (_q82))
8442 : : {
8443 : 0 : {
8444 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8445 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, LTGT_EXPR, UNEQ_EXPR);
8446 : 0 : if (res) return res;
8447 : : }
8448 : : }
8449 : : }
8450 : : }
8451 : : break;
8452 : : }
8453 : : default:;
8454 : : }
8455 : : break;
8456 : : }
8457 : : default:;
8458 : : }
8459 : : }
8460 : : break;
8461 : : }
8462 : : default:;
8463 : : }
8464 : : break;
8465 : : }
8466 : 2540 : case BIT_AND_EXPR:
8467 : 2540 : {
8468 : 2540 : tree _q20 = TREE_OPERAND (_p0, 0);
8469 : 2540 : tree _q21 = TREE_OPERAND (_p0, 1);
8470 : 2540 : if (tree_truth_valued_p (_q20))
8471 : : {
8472 : 0 : if (tree_truth_valued_p (_q21))
8473 : : {
8474 : 0 : switch (TREE_CODE (_p1))
8475 : : {
8476 : 0 : case EQ_EXPR:
8477 : 0 : {
8478 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
8479 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
8480 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8481 : : {
8482 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8483 : : {
8484 : 0 : {
8485 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8486 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1409;
8487 : 0 : {
8488 : 0 : tree res_op0;
8489 : 0 : {
8490 : 0 : tree _o1[2], _r1;
8491 : 0 : _o1[0] = captures[0];
8492 : 0 : _o1[1] = captures[1];
8493 : 0 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
8494 : 0 : res_op0 = _r1;
8495 : : }
8496 : 0 : tree _r;
8497 : 0 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
8498 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
8499 : 0 : return _r;
8500 : : }
8501 : 0 : next_after_fail1409:;
8502 : : }
8503 : : }
8504 : : }
8505 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
8506 : : {
8507 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
8508 : : {
8509 : 0 : {
8510 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
8511 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1410;
8512 : 0 : {
8513 : 0 : tree res_op0;
8514 : 0 : {
8515 : 0 : tree _o1[2], _r1;
8516 : 0 : _o1[0] = captures[0];
8517 : 0 : _o1[1] = captures[1];
8518 : 0 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
8519 : 0 : res_op0 = _r1;
8520 : : }
8521 : 0 : tree _r;
8522 : 0 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
8523 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
8524 : 0 : return _r;
8525 : : }
8526 : 0 : next_after_fail1410:;
8527 : : }
8528 : : }
8529 : : }
8530 : : break;
8531 : : }
8532 : : default:;
8533 : : }
8534 : : }
8535 : : }
8536 : : break;
8537 : : }
8538 : 118 : case EQ_EXPR:
8539 : 118 : {
8540 : 118 : tree _q20 = TREE_OPERAND (_p0, 0);
8541 : 118 : tree _q21 = TREE_OPERAND (_p0, 1);
8542 : 118 : switch (TREE_CODE (_p1))
8543 : : {
8544 : 0 : case BIT_AND_EXPR:
8545 : 0 : {
8546 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
8547 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
8548 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8549 : : {
8550 : 0 : if (tree_truth_valued_p (_q50))
8551 : : {
8552 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8553 : : {
8554 : 0 : if (tree_truth_valued_p (_q51))
8555 : : {
8556 : 0 : {
8557 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8558 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1411;
8559 : 0 : {
8560 : 0 : tree res_op0;
8561 : 0 : {
8562 : 0 : tree _o1[2], _r1;
8563 : 0 : _o1[0] = captures[0];
8564 : 0 : _o1[1] = captures[1];
8565 : 0 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
8566 : 0 : res_op0 = _r1;
8567 : : }
8568 : 0 : tree _r;
8569 : 0 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
8570 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
8571 : 0 : return _r;
8572 : : }
8573 : 0 : next_after_fail1411:;
8574 : : }
8575 : : }
8576 : : }
8577 : : }
8578 : : }
8579 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
8580 : : {
8581 : 0 : if (tree_truth_valued_p (_q50))
8582 : : {
8583 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
8584 : : {
8585 : 0 : if (tree_truth_valued_p (_q51))
8586 : : {
8587 : 0 : {
8588 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8589 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1412;
8590 : 0 : {
8591 : 0 : tree res_op0;
8592 : 0 : {
8593 : 0 : tree _o1[2], _r1;
8594 : 0 : _o1[0] = captures[0];
8595 : 0 : _o1[1] = captures[1];
8596 : 0 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
8597 : 0 : res_op0 = _r1;
8598 : : }
8599 : 0 : tree _r;
8600 : 0 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
8601 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 952, __FILE__, __LINE__, true);
8602 : 0 : return _r;
8603 : : }
8604 : 0 : next_after_fail1412:;
8605 : : }
8606 : : }
8607 : : }
8608 : : }
8609 : : }
8610 : : break;
8611 : : }
8612 : : default:;
8613 : : }
8614 : : break;
8615 : : }
8616 : 678141 : default:;
8617 : : }
8618 : 678141 : {
8619 : 678141 : tree _p0_pops[1];
8620 : 678141 : if (tree_logical_inverted_value (_p0, _p0_pops))
8621 : : {
8622 : 43 : tree _q20 = _p0_pops[0];
8623 : 43 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
8624 : : {
8625 : 4 : if (tree_truth_valued_p (_p1))
8626 : : {
8627 : 4 : {
8628 : 4 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
8629 : 4 : tree res = generic_simplify_119 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
8630 : 4 : if (res) return res;
8631 : : }
8632 : : }
8633 : : }
8634 : : }
8635 : : }
8636 : 678137 : {
8637 : 678137 : tree _p0_pops[1];
8638 : 678137 : if (tree_nop_convert (_p0, _p0_pops))
8639 : : {
8640 : 494841 : tree _q20 = _p0_pops[0];
8641 : 494841 : switch (TREE_CODE (_q20))
8642 : : {
8643 : 24 : case BIT_NOT_EXPR:
8644 : 24 : {
8645 : 24 : tree _q30 = TREE_OPERAND (_q20, 0);
8646 : 24 : {
8647 : 24 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _p1 };
8648 : 24 : tree res = generic_simplify_167 (loc, type, _p0, _p1, captures);
8649 : 24 : if (res) return res;
8650 : : }
8651 : 0 : break;
8652 : : }
8653 : 20 : case MULT_EXPR:
8654 : 20 : {
8655 : 20 : tree _q30 = TREE_OPERAND (_q20, 0);
8656 : 20 : tree _q31 = TREE_OPERAND (_q20, 1);
8657 : 20 : {
8658 : 20 : tree _q30_pops[1];
8659 : 20 : if (tree_nop_convert (_q30, _q30_pops))
8660 : : {
8661 : 0 : tree _q40 = _q30_pops[0];
8662 : 0 : switch (TREE_CODE (_q31))
8663 : : {
8664 : 0 : case INTEGER_CST:
8665 : 0 : {
8666 : 0 : switch (TREE_CODE (_p1))
8667 : : {
8668 : 0 : case LSHIFT_EXPR:
8669 : 0 : {
8670 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
8671 : 0 : tree _q71 = TREE_OPERAND (_p1, 1);
8672 : 0 : if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
8673 : : {
8674 : 0 : switch (TREE_CODE (_q71))
8675 : : {
8676 : 0 : case INTEGER_CST:
8677 : 0 : {
8678 : 0 : {
8679 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q40, _q31, _p1, _q71 };
8680 : 0 : tree res = generic_simplify_116 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
8681 : 0 : if (res) return res;
8682 : : }
8683 : 0 : break;
8684 : : }
8685 : : default:;
8686 : : }
8687 : : }
8688 : : break;
8689 : : }
8690 : 0 : default:;
8691 : : }
8692 : 0 : {
8693 : 0 : tree _p1_pops[1];
8694 : 0 : if (tree_nop_convert (_p1, _p1_pops))
8695 : : {
8696 : 0 : tree _q70 = _p1_pops[0];
8697 : 0 : switch (TREE_CODE (_q70))
8698 : : {
8699 : 0 : case MULT_EXPR:
8700 : 0 : {
8701 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
8702 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
8703 : 0 : {
8704 : 0 : tree _q80_pops[1];
8705 : 0 : if (tree_nop_convert (_q80, _q80_pops))
8706 : : {
8707 : 0 : tree _q90 = _q80_pops[0];
8708 : 0 : switch (TREE_CODE (_q81))
8709 : : {
8710 : 0 : case INTEGER_CST:
8711 : 0 : {
8712 : 0 : {
8713 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q40, _q31, _p1, _q70, _q90, _q81 };
8714 : 0 : tree res = generic_simplify_115 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
8715 : 0 : if (res) return res;
8716 : : }
8717 : 0 : break;
8718 : : }
8719 : : default:;
8720 : : }
8721 : : }
8722 : : }
8723 : 0 : break;
8724 : : }
8725 : : default:;
8726 : : }
8727 : : }
8728 : : }
8729 : 0 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
8730 : : {
8731 : 0 : {
8732 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q40, _q31 };
8733 : 0 : tree res = generic_simplify_117 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
8734 : 0 : if (res) return res;
8735 : : }
8736 : : }
8737 : : break;
8738 : : }
8739 : : default:;
8740 : : }
8741 : : }
8742 : : }
8743 : 20 : break;
8744 : : }
8745 : : default:;
8746 : : }
8747 : : }
8748 : : }
8749 : 678113 : if (tree_truth_valued_p (_p0))
8750 : : {
8751 : 35657 : {
8752 : 35657 : tree _p1_pops[1];
8753 : 35657 : if (tree_logical_inverted_value (_p1, _p1_pops))
8754 : : {
8755 : 7 : tree _q30 = _p1_pops[0];
8756 : 7 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
8757 : : {
8758 : 0 : {
8759 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
8760 : 0 : tree res = generic_simplify_119 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
8761 : 0 : if (res) return res;
8762 : : }
8763 : : }
8764 : : }
8765 : : }
8766 : : }
8767 : 678113 : switch (TREE_CODE (_p1))
8768 : : {
8769 : 288 : case BIT_NOT_EXPR:
8770 : 288 : {
8771 : 288 : tree _q30 = TREE_OPERAND (_p1, 0);
8772 : 288 : {
8773 : 288 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _p1, _q30, _p0 };
8774 : 288 : tree res = generic_simplify_164 (loc, type, _p0, _p1, captures);
8775 : 288 : if (res) return res;
8776 : : }
8777 : 0 : break;
8778 : : }
8779 : 677825 : default:;
8780 : : }
8781 : 677825 : {
8782 : 677825 : tree _p1_pops[1];
8783 : 677825 : if (tree_nop_convert (_p1, _p1_pops))
8784 : : {
8785 : 537053 : tree _q30 = _p1_pops[0];
8786 : 537053 : switch (TREE_CODE (_q30))
8787 : : {
8788 : 0 : case BIT_NOT_EXPR:
8789 : 0 : {
8790 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
8791 : 0 : {
8792 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q30, _q40, _p0 };
8793 : 0 : tree res = generic_simplify_167 (loc, type, _p0, _p1, captures);
8794 : 0 : if (res) return res;
8795 : : }
8796 : 0 : break;
8797 : : }
8798 : : default:;
8799 : : }
8800 : : }
8801 : : }
8802 : 677825 : switch (TREE_CODE (_p0))
8803 : : {
8804 : 1131 : case BIT_IOR_EXPR:
8805 : 1131 : {
8806 : 1131 : tree _q20 = TREE_OPERAND (_p0, 0);
8807 : 1131 : tree _q21 = TREE_OPERAND (_p0, 1);
8808 : 1131 : switch (TREE_CODE (_q21))
8809 : : {
8810 : 23 : case INTEGER_CST:
8811 : 23 : {
8812 : 23 : switch (TREE_CODE (_p1))
8813 : : {
8814 : 23 : case INTEGER_CST:
8815 : 23 : {
8816 : 23 : {
8817 : 23 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
8818 : 23 : tree res = generic_simplify_123 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_XOR_EXPR);
8819 : 23 : if (res) return res;
8820 : : }
8821 : 23 : break;
8822 : : }
8823 : : default:;
8824 : : }
8825 : : break;
8826 : : }
8827 : : default:;
8828 : : }
8829 : : break;
8830 : : }
8831 : 90 : case LT_EXPR:
8832 : 90 : {
8833 : 90 : tree _q20 = TREE_OPERAND (_p0, 0);
8834 : 90 : tree _q21 = TREE_OPERAND (_p0, 1);
8835 : 90 : switch (TREE_CODE (_p1))
8836 : : {
8837 : 0 : case GT_EXPR:
8838 : 0 : {
8839 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
8840 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
8841 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8842 : : {
8843 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8844 : : {
8845 : 0 : {
8846 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8847 : 0 : const enum tree_code cmp1 = LT_EXPR;
8848 : 0 : const enum tree_code cmp2 = GT_EXPR;
8849 : 0 : const enum tree_code rcmp = NE_EXPR;
8850 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
8851 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
8852 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
8853 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
8854 : : )
8855 : : {
8856 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1413;
8857 : 0 : {
8858 : 0 : tree res_op0;
8859 : 0 : res_op0 = captures[0];
8860 : 0 : tree res_op1;
8861 : 0 : res_op1 = captures[1];
8862 : 0 : tree _r;
8863 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
8864 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
8865 : 0 : return _r;
8866 : : }
8867 : 0 : next_after_fail1413:;
8868 : : }
8869 : : }
8870 : : }
8871 : : }
8872 : : break;
8873 : : }
8874 : 0 : case EQ_EXPR:
8875 : 0 : {
8876 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
8877 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
8878 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8879 : : {
8880 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8881 : : {
8882 : 0 : {
8883 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8884 : 0 : const enum tree_code cmp1 = LT_EXPR;
8885 : 0 : const enum tree_code cmp2 = EQ_EXPR;
8886 : 0 : const enum tree_code rcmp = LE_EXPR;
8887 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
8888 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
8889 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
8890 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
8891 : : )
8892 : : {
8893 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1414;
8894 : 0 : {
8895 : 0 : tree res_op0;
8896 : 0 : res_op0 = captures[0];
8897 : 0 : tree res_op1;
8898 : 0 : res_op1 = captures[1];
8899 : 0 : tree _r;
8900 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
8901 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
8902 : 0 : return _r;
8903 : : }
8904 : 0 : next_after_fail1414:;
8905 : : }
8906 : : }
8907 : : }
8908 : : }
8909 : : break;
8910 : : }
8911 : 0 : case NE_EXPR:
8912 : 0 : {
8913 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
8914 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
8915 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8916 : : {
8917 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8918 : : {
8919 : 0 : {
8920 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8921 : 0 : const enum tree_code cmp1 = LT_EXPR;
8922 : 0 : const enum tree_code cmp2 = NE_EXPR;
8923 : 0 : const enum tree_code rcmp = GT_EXPR;
8924 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
8925 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
8926 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
8927 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
8928 : : )
8929 : : {
8930 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1415;
8931 : 0 : {
8932 : 0 : tree res_op0;
8933 : 0 : res_op0 = captures[0];
8934 : 0 : tree res_op1;
8935 : 0 : res_op1 = captures[1];
8936 : 0 : tree _r;
8937 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
8938 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
8939 : 0 : return _r;
8940 : : }
8941 : 0 : next_after_fail1415:;
8942 : : }
8943 : : }
8944 : : }
8945 : : }
8946 : : break;
8947 : : }
8948 : : default:;
8949 : : }
8950 : : break;
8951 : : }
8952 : 78 : case LE_EXPR:
8953 : 78 : {
8954 : 78 : tree _q20 = TREE_OPERAND (_p0, 0);
8955 : 78 : tree _q21 = TREE_OPERAND (_p0, 1);
8956 : 78 : switch (TREE_CODE (_p1))
8957 : : {
8958 : 0 : case GE_EXPR:
8959 : 0 : {
8960 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
8961 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
8962 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8963 : : {
8964 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8965 : : {
8966 : 0 : {
8967 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8968 : 0 : const enum tree_code cmp1 = LE_EXPR;
8969 : 0 : const enum tree_code cmp2 = GE_EXPR;
8970 : 0 : const enum tree_code rcmp = NE_EXPR;
8971 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
8972 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
8973 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
8974 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
8975 : : )
8976 : : {
8977 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1416;
8978 : 0 : {
8979 : 0 : tree res_op0;
8980 : 0 : res_op0 = captures[0];
8981 : 0 : tree res_op1;
8982 : 0 : res_op1 = captures[1];
8983 : 0 : tree _r;
8984 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
8985 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
8986 : 0 : return _r;
8987 : : }
8988 : 0 : next_after_fail1416:;
8989 : : }
8990 : : }
8991 : : }
8992 : : }
8993 : : break;
8994 : : }
8995 : 0 : case EQ_EXPR:
8996 : 0 : {
8997 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
8998 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
8999 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9000 : : {
9001 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9002 : : {
9003 : 0 : {
9004 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9005 : 0 : const enum tree_code cmp1 = LE_EXPR;
9006 : 0 : const enum tree_code cmp2 = EQ_EXPR;
9007 : 0 : const enum tree_code rcmp = LT_EXPR;
9008 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9009 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9010 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9011 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9012 : : )
9013 : : {
9014 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1417;
9015 : 0 : {
9016 : 0 : tree res_op0;
9017 : 0 : res_op0 = captures[0];
9018 : 0 : tree res_op1;
9019 : 0 : res_op1 = captures[1];
9020 : 0 : tree _r;
9021 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9022 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
9023 : 0 : return _r;
9024 : : }
9025 : 0 : next_after_fail1417:;
9026 : : }
9027 : : }
9028 : : }
9029 : : }
9030 : : break;
9031 : : }
9032 : 0 : case NE_EXPR:
9033 : 0 : {
9034 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9035 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9036 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9037 : : {
9038 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9039 : : {
9040 : 0 : {
9041 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9042 : 0 : const enum tree_code cmp1 = LE_EXPR;
9043 : 0 : const enum tree_code cmp2 = NE_EXPR;
9044 : 0 : const enum tree_code rcmp = GE_EXPR;
9045 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9046 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9047 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9048 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9049 : : )
9050 : : {
9051 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1418;
9052 : 0 : {
9053 : 0 : tree res_op0;
9054 : 0 : res_op0 = captures[0];
9055 : 0 : tree res_op1;
9056 : 0 : res_op1 = captures[1];
9057 : 0 : tree _r;
9058 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9059 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
9060 : 0 : return _r;
9061 : : }
9062 : 0 : next_after_fail1418:;
9063 : : }
9064 : : }
9065 : : }
9066 : : }
9067 : : break;
9068 : : }
9069 : : default:;
9070 : : }
9071 : : break;
9072 : : }
9073 : 100 : case GT_EXPR:
9074 : 100 : {
9075 : 100 : tree _q20 = TREE_OPERAND (_p0, 0);
9076 : 100 : tree _q21 = TREE_OPERAND (_p0, 1);
9077 : 100 : switch (TREE_CODE (_p1))
9078 : : {
9079 : 0 : case GT_EXPR:
9080 : 0 : {
9081 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9082 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9083 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9084 : : {
9085 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9086 : : {
9087 : 0 : {
9088 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
9089 : 0 : const enum tree_code cmp1 = LT_EXPR;
9090 : 0 : const enum tree_code cmp2 = GT_EXPR;
9091 : 0 : const enum tree_code rcmp = NE_EXPR;
9092 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9093 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9094 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9095 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9096 : : )
9097 : : {
9098 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1419;
9099 : 0 : {
9100 : 0 : tree res_op0;
9101 : 0 : res_op0 = captures[0];
9102 : 0 : tree res_op1;
9103 : 0 : res_op1 = captures[1];
9104 : 0 : tree _r;
9105 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9106 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
9107 : 0 : return _r;
9108 : : }
9109 : 0 : next_after_fail1419:;
9110 : : }
9111 : : }
9112 : 0 : {
9113 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9114 : 0 : const enum tree_code cmp1 = LT_EXPR;
9115 : 0 : const enum tree_code cmp2 = GT_EXPR;
9116 : 0 : const enum tree_code rcmp = NE_EXPR;
9117 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9118 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9119 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9120 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9121 : : )
9122 : : {
9123 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1420;
9124 : 0 : {
9125 : 0 : tree res_op0;
9126 : 0 : res_op0 = captures[0];
9127 : 0 : tree res_op1;
9128 : 0 : res_op1 = captures[1];
9129 : 0 : tree _r;
9130 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9131 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
9132 : 0 : return _r;
9133 : : }
9134 : 0 : next_after_fail1420:;
9135 : : }
9136 : : }
9137 : : }
9138 : : }
9139 : : break;
9140 : : }
9141 : 0 : case EQ_EXPR:
9142 : 0 : {
9143 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9144 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9145 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9146 : : {
9147 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9148 : : {
9149 : 0 : {
9150 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
9151 : 0 : const enum tree_code cmp1 = LT_EXPR;
9152 : 0 : const enum tree_code cmp2 = EQ_EXPR;
9153 : 0 : const enum tree_code rcmp = LE_EXPR;
9154 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9155 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9156 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9157 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9158 : : )
9159 : : {
9160 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1421;
9161 : 0 : {
9162 : 0 : tree res_op0;
9163 : 0 : res_op0 = captures[0];
9164 : 0 : tree res_op1;
9165 : 0 : res_op1 = captures[1];
9166 : 0 : tree _r;
9167 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9168 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
9169 : 0 : return _r;
9170 : : }
9171 : 0 : next_after_fail1421:;
9172 : : }
9173 : : }
9174 : : }
9175 : : }
9176 : : break;
9177 : : }
9178 : 12 : case NE_EXPR:
9179 : 12 : {
9180 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
9181 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
9182 : 12 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9183 : : {
9184 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9185 : : {
9186 : 0 : {
9187 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
9188 : 0 : const enum tree_code cmp1 = LT_EXPR;
9189 : 0 : const enum tree_code cmp2 = NE_EXPR;
9190 : 0 : const enum tree_code rcmp = GT_EXPR;
9191 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9192 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9193 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9194 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9195 : : )
9196 : : {
9197 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1422;
9198 : 0 : {
9199 : 0 : tree res_op0;
9200 : 0 : res_op0 = captures[0];
9201 : 0 : tree res_op1;
9202 : 0 : res_op1 = captures[1];
9203 : 0 : tree _r;
9204 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9205 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
9206 : 0 : return _r;
9207 : : }
9208 : 0 : next_after_fail1422:;
9209 : : }
9210 : : }
9211 : : }
9212 : : }
9213 : : break;
9214 : : }
9215 : 0 : case LT_EXPR:
9216 : 0 : {
9217 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9218 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9219 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9220 : : {
9221 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9222 : : {
9223 : 0 : {
9224 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9225 : 0 : const enum tree_code cmp1 = LT_EXPR;
9226 : 0 : const enum tree_code cmp2 = GT_EXPR;
9227 : 0 : const enum tree_code rcmp = NE_EXPR;
9228 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9229 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9230 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9231 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9232 : : )
9233 : : {
9234 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1423;
9235 : 0 : {
9236 : 0 : tree res_op0;
9237 : 0 : res_op0 = captures[0];
9238 : 0 : tree res_op1;
9239 : 0 : res_op1 = captures[1];
9240 : 0 : tree _r;
9241 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9242 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
9243 : 0 : return _r;
9244 : : }
9245 : 0 : next_after_fail1423:;
9246 : : }
9247 : : }
9248 : : }
9249 : : }
9250 : : break;
9251 : : }
9252 : : default:;
9253 : : }
9254 : : break;
9255 : : }
9256 : 62 : case GE_EXPR:
9257 : 62 : {
9258 : 62 : tree _q20 = TREE_OPERAND (_p0, 0);
9259 : 62 : tree _q21 = TREE_OPERAND (_p0, 1);
9260 : 62 : switch (TREE_CODE (_p1))
9261 : : {
9262 : 1 : case GE_EXPR:
9263 : 1 : {
9264 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
9265 : 1 : tree _q51 = TREE_OPERAND (_p1, 1);
9266 : 1 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9267 : : {
9268 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9269 : : {
9270 : 0 : {
9271 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
9272 : 0 : const enum tree_code cmp1 = LE_EXPR;
9273 : 0 : const enum tree_code cmp2 = GE_EXPR;
9274 : 0 : const enum tree_code rcmp = NE_EXPR;
9275 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9276 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9277 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9278 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9279 : : )
9280 : : {
9281 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1424;
9282 : 0 : {
9283 : 0 : tree res_op0;
9284 : 0 : res_op0 = captures[0];
9285 : 0 : tree res_op1;
9286 : 0 : res_op1 = captures[1];
9287 : 0 : tree _r;
9288 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9289 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
9290 : 0 : return _r;
9291 : : }
9292 : 0 : next_after_fail1424:;
9293 : : }
9294 : : }
9295 : 0 : {
9296 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9297 : 0 : const enum tree_code cmp1 = LE_EXPR;
9298 : 0 : const enum tree_code cmp2 = GE_EXPR;
9299 : 0 : const enum tree_code rcmp = NE_EXPR;
9300 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9301 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9302 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9303 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9304 : : )
9305 : : {
9306 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1425;
9307 : 0 : {
9308 : 0 : tree res_op0;
9309 : 0 : res_op0 = captures[0];
9310 : 0 : tree res_op1;
9311 : 0 : res_op1 = captures[1];
9312 : 0 : tree _r;
9313 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9314 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
9315 : 0 : return _r;
9316 : : }
9317 : 0 : next_after_fail1425:;
9318 : : }
9319 : : }
9320 : : }
9321 : : }
9322 : : break;
9323 : : }
9324 : 0 : case EQ_EXPR:
9325 : 0 : {
9326 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9327 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9328 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9329 : : {
9330 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9331 : : {
9332 : 0 : {
9333 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
9334 : 0 : const enum tree_code cmp1 = LE_EXPR;
9335 : 0 : const enum tree_code cmp2 = EQ_EXPR;
9336 : 0 : const enum tree_code rcmp = LT_EXPR;
9337 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9338 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9339 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9340 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9341 : : )
9342 : : {
9343 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1426;
9344 : 0 : {
9345 : 0 : tree res_op0;
9346 : 0 : res_op0 = captures[0];
9347 : 0 : tree res_op1;
9348 : 0 : res_op1 = captures[1];
9349 : 0 : tree _r;
9350 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9351 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
9352 : 0 : return _r;
9353 : : }
9354 : 0 : next_after_fail1426:;
9355 : : }
9356 : : }
9357 : : }
9358 : : }
9359 : : break;
9360 : : }
9361 : 8 : case NE_EXPR:
9362 : 8 : {
9363 : 8 : tree _q50 = TREE_OPERAND (_p1, 0);
9364 : 8 : tree _q51 = TREE_OPERAND (_p1, 1);
9365 : 8 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9366 : : {
9367 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9368 : : {
9369 : 0 : {
9370 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
9371 : 0 : const enum tree_code cmp1 = LE_EXPR;
9372 : 0 : const enum tree_code cmp2 = NE_EXPR;
9373 : 0 : const enum tree_code rcmp = GE_EXPR;
9374 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9375 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9376 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9377 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9378 : : )
9379 : : {
9380 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1427;
9381 : 0 : {
9382 : 0 : tree res_op0;
9383 : 0 : res_op0 = captures[0];
9384 : 0 : tree res_op1;
9385 : 0 : res_op1 = captures[1];
9386 : 0 : tree _r;
9387 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9388 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
9389 : 0 : return _r;
9390 : : }
9391 : 0 : next_after_fail1427:;
9392 : : }
9393 : : }
9394 : : }
9395 : : }
9396 : : break;
9397 : : }
9398 : 0 : case LE_EXPR:
9399 : 0 : {
9400 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9401 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9402 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9403 : : {
9404 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9405 : : {
9406 : 0 : {
9407 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9408 : 0 : const enum tree_code cmp1 = LE_EXPR;
9409 : 0 : const enum tree_code cmp2 = GE_EXPR;
9410 : 0 : const enum tree_code rcmp = NE_EXPR;
9411 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9412 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9413 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9414 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9415 : : )
9416 : : {
9417 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1428;
9418 : 0 : {
9419 : 0 : tree res_op0;
9420 : 0 : res_op0 = captures[0];
9421 : 0 : tree res_op1;
9422 : 0 : res_op1 = captures[1];
9423 : 0 : tree _r;
9424 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9425 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
9426 : 0 : return _r;
9427 : : }
9428 : 0 : next_after_fail1428:;
9429 : : }
9430 : : }
9431 : : }
9432 : : }
9433 : : break;
9434 : : }
9435 : : default:;
9436 : : }
9437 : : break;
9438 : : }
9439 : 118 : case EQ_EXPR:
9440 : 118 : {
9441 : 118 : tree _q20 = TREE_OPERAND (_p0, 0);
9442 : 118 : tree _q21 = TREE_OPERAND (_p0, 1);
9443 : 118 : switch (TREE_CODE (_p1))
9444 : : {
9445 : 0 : case LT_EXPR:
9446 : 0 : {
9447 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9448 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9449 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9450 : : {
9451 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9452 : : {
9453 : 0 : {
9454 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9455 : 0 : const enum tree_code cmp1 = LT_EXPR;
9456 : 0 : const enum tree_code cmp2 = EQ_EXPR;
9457 : 0 : const enum tree_code rcmp = LE_EXPR;
9458 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9459 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9460 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9461 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9462 : : )
9463 : : {
9464 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1429;
9465 : 0 : {
9466 : 0 : tree res_op0;
9467 : 0 : res_op0 = captures[0];
9468 : 0 : tree res_op1;
9469 : 0 : res_op1 = captures[1];
9470 : 0 : tree _r;
9471 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9472 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
9473 : 0 : return _r;
9474 : : }
9475 : 0 : next_after_fail1429:;
9476 : : }
9477 : : }
9478 : : }
9479 : : }
9480 : : break;
9481 : : }
9482 : 0 : case LE_EXPR:
9483 : 0 : {
9484 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9485 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9486 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9487 : : {
9488 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9489 : : {
9490 : 0 : {
9491 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9492 : 0 : const enum tree_code cmp1 = LE_EXPR;
9493 : 0 : const enum tree_code cmp2 = EQ_EXPR;
9494 : 0 : const enum tree_code rcmp = LT_EXPR;
9495 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9496 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9497 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9498 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9499 : : )
9500 : : {
9501 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1430;
9502 : 0 : {
9503 : 0 : tree res_op0;
9504 : 0 : res_op0 = captures[0];
9505 : 0 : tree res_op1;
9506 : 0 : res_op1 = captures[1];
9507 : 0 : tree _r;
9508 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9509 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
9510 : 0 : return _r;
9511 : : }
9512 : 0 : next_after_fail1430:;
9513 : : }
9514 : : }
9515 : : }
9516 : : }
9517 : : break;
9518 : : }
9519 : 0 : case GT_EXPR:
9520 : 0 : {
9521 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9522 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9523 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9524 : : {
9525 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9526 : : {
9527 : 0 : {
9528 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9529 : 0 : const enum tree_code cmp1 = LT_EXPR;
9530 : 0 : const enum tree_code cmp2 = EQ_EXPR;
9531 : 0 : const enum tree_code rcmp = LE_EXPR;
9532 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9533 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9534 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9535 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9536 : : )
9537 : : {
9538 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1431;
9539 : 0 : {
9540 : 0 : tree res_op0;
9541 : 0 : res_op0 = captures[0];
9542 : 0 : tree res_op1;
9543 : 0 : res_op1 = captures[1];
9544 : 0 : tree _r;
9545 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9546 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
9547 : 0 : return _r;
9548 : : }
9549 : 0 : next_after_fail1431:;
9550 : : }
9551 : : }
9552 : : }
9553 : : }
9554 : : break;
9555 : : }
9556 : 8 : case GE_EXPR:
9557 : 8 : {
9558 : 8 : tree _q50 = TREE_OPERAND (_p1, 0);
9559 : 8 : tree _q51 = TREE_OPERAND (_p1, 1);
9560 : 8 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9561 : : {
9562 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9563 : : {
9564 : 0 : {
9565 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9566 : 0 : const enum tree_code cmp1 = LE_EXPR;
9567 : 0 : const enum tree_code cmp2 = EQ_EXPR;
9568 : 0 : const enum tree_code rcmp = LT_EXPR;
9569 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9570 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9571 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9572 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9573 : : )
9574 : : {
9575 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1432;
9576 : 0 : {
9577 : 0 : tree res_op0;
9578 : 0 : res_op0 = captures[0];
9579 : 0 : tree res_op1;
9580 : 0 : res_op1 = captures[1];
9581 : 0 : tree _r;
9582 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9583 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
9584 : 0 : return _r;
9585 : : }
9586 : 0 : next_after_fail1432:;
9587 : : }
9588 : : }
9589 : : }
9590 : : }
9591 : : break;
9592 : : }
9593 : : default:;
9594 : : }
9595 : : break;
9596 : : }
9597 : 113 : case NE_EXPR:
9598 : 113 : {
9599 : 113 : tree _q20 = TREE_OPERAND (_p0, 0);
9600 : 113 : tree _q21 = TREE_OPERAND (_p0, 1);
9601 : 113 : switch (TREE_CODE (_p1))
9602 : : {
9603 : 0 : case LT_EXPR:
9604 : 0 : {
9605 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9606 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9607 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9608 : : {
9609 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9610 : : {
9611 : 0 : {
9612 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9613 : 0 : const enum tree_code cmp1 = LT_EXPR;
9614 : 0 : const enum tree_code cmp2 = NE_EXPR;
9615 : 0 : const enum tree_code rcmp = GT_EXPR;
9616 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9617 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9618 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9619 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9620 : : )
9621 : : {
9622 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1433;
9623 : 0 : {
9624 : 0 : tree res_op0;
9625 : 0 : res_op0 = captures[0];
9626 : 0 : tree res_op1;
9627 : 0 : res_op1 = captures[1];
9628 : 0 : tree _r;
9629 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9630 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
9631 : 0 : return _r;
9632 : : }
9633 : 0 : next_after_fail1433:;
9634 : : }
9635 : : }
9636 : : }
9637 : : }
9638 : : break;
9639 : : }
9640 : 0 : case LE_EXPR:
9641 : 0 : {
9642 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9643 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9644 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9645 : : {
9646 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9647 : : {
9648 : 0 : {
9649 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9650 : 0 : const enum tree_code cmp1 = LE_EXPR;
9651 : 0 : const enum tree_code cmp2 = NE_EXPR;
9652 : 0 : const enum tree_code rcmp = GE_EXPR;
9653 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9654 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9655 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9656 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9657 : : )
9658 : : {
9659 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1434;
9660 : 0 : {
9661 : 0 : tree res_op0;
9662 : 0 : res_op0 = captures[0];
9663 : 0 : tree res_op1;
9664 : 0 : res_op1 = captures[1];
9665 : 0 : tree _r;
9666 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9667 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
9668 : 0 : return _r;
9669 : : }
9670 : 0 : next_after_fail1434:;
9671 : : }
9672 : : }
9673 : : }
9674 : : }
9675 : : break;
9676 : : }
9677 : 0 : case GT_EXPR:
9678 : 0 : {
9679 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9680 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9681 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9682 : : {
9683 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9684 : : {
9685 : 0 : {
9686 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9687 : 0 : const enum tree_code cmp1 = LT_EXPR;
9688 : 0 : const enum tree_code cmp2 = NE_EXPR;
9689 : 0 : const enum tree_code rcmp = GT_EXPR;
9690 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9691 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9692 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9693 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9694 : : )
9695 : : {
9696 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1435;
9697 : 0 : {
9698 : 0 : tree res_op0;
9699 : 0 : res_op0 = captures[0];
9700 : 0 : tree res_op1;
9701 : 0 : res_op1 = captures[1];
9702 : 0 : tree _r;
9703 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9704 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
9705 : 0 : return _r;
9706 : : }
9707 : 0 : next_after_fail1435:;
9708 : : }
9709 : : }
9710 : : }
9711 : : }
9712 : : break;
9713 : : }
9714 : 6 : case GE_EXPR:
9715 : 6 : {
9716 : 6 : tree _q50 = TREE_OPERAND (_p1, 0);
9717 : 6 : tree _q51 = TREE_OPERAND (_p1, 1);
9718 : 6 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9719 : : {
9720 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9721 : : {
9722 : 0 : {
9723 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9724 : 0 : const enum tree_code cmp1 = LE_EXPR;
9725 : 0 : const enum tree_code cmp2 = NE_EXPR;
9726 : 0 : const enum tree_code rcmp = GE_EXPR;
9727 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9728 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9729 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9730 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9731 : : )
9732 : : {
9733 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1436;
9734 : 0 : {
9735 : 0 : tree res_op0;
9736 : 0 : res_op0 = captures[0];
9737 : 0 : tree res_op1;
9738 : 0 : res_op1 = captures[1];
9739 : 0 : tree _r;
9740 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9741 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 953, __FILE__, __LINE__, true);
9742 : 0 : return _r;
9743 : : }
9744 : 0 : next_after_fail1436:;
9745 : : }
9746 : : }
9747 : : }
9748 : : }
9749 : : break;
9750 : : }
9751 : : default:;
9752 : : }
9753 : : break;
9754 : : }
9755 : 523 : case MULT_EXPR:
9756 : 523 : {
9757 : 523 : tree _q20 = TREE_OPERAND (_p0, 0);
9758 : 523 : tree _q21 = TREE_OPERAND (_p0, 1);
9759 : 523 : switch (TREE_CODE (_q21))
9760 : : {
9761 : 498 : case INTEGER_CST:
9762 : 498 : {
9763 : 498 : switch (TREE_CODE (_p1))
9764 : : {
9765 : 12 : case MULT_EXPR:
9766 : 12 : {
9767 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
9768 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
9769 : 12 : switch (TREE_CODE (_q51))
9770 : : {
9771 : 12 : case INTEGER_CST:
9772 : 12 : {
9773 : 12 : {
9774 : 12 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1, _p1, _q50, _q51 };
9775 : 12 : tree res = generic_simplify_142 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
9776 : 12 : if (res) return res;
9777 : : }
9778 : 12 : break;
9779 : : }
9780 : : default:;
9781 : : }
9782 : : break;
9783 : : }
9784 : 0 : case LSHIFT_EXPR:
9785 : 0 : {
9786 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9787 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9788 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9789 : : {
9790 : 0 : switch (TREE_CODE (_q51))
9791 : : {
9792 : 0 : case INTEGER_CST:
9793 : 0 : {
9794 : 0 : {
9795 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1, _q51 };
9796 : 0 : tree res = generic_simplify_143 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
9797 : 0 : if (res) return res;
9798 : : }
9799 : 0 : break;
9800 : : }
9801 : : default:;
9802 : : }
9803 : : }
9804 : : break;
9805 : : }
9806 : 498 : default:;
9807 : : }
9808 : 498 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
9809 : : {
9810 : 18 : {
9811 : 18 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21 };
9812 : 18 : tree res = generic_simplify_144 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
9813 : 18 : if (res) return res;
9814 : : }
9815 : : }
9816 : : break;
9817 : : }
9818 : 523 : default:;
9819 : : }
9820 : 523 : switch (TREE_CODE (_q20))
9821 : : {
9822 : 0 : case BIT_XOR_EXPR:
9823 : 0 : {
9824 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
9825 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
9826 : 0 : if (tree_zero_one_valued_p (_q21))
9827 : : {
9828 : 0 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
9829 : : {
9830 : 0 : {
9831 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q21 };
9832 : 0 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures);
9833 : 0 : if (res) return res;
9834 : : }
9835 : : }
9836 : 0 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
9837 : : {
9838 : 0 : {
9839 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q21 };
9840 : 0 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures);
9841 : 0 : if (res) return res;
9842 : : }
9843 : : }
9844 : : }
9845 : : break;
9846 : : }
9847 : 523 : default:;
9848 : : }
9849 : 523 : if (tree_zero_one_valued_p (_q20))
9850 : : {
9851 : 8 : switch (TREE_CODE (_q21))
9852 : : {
9853 : 2 : case BIT_XOR_EXPR:
9854 : 2 : {
9855 : 2 : tree _q40 = TREE_OPERAND (_q21, 0);
9856 : 2 : tree _q41 = TREE_OPERAND (_q21, 1);
9857 : 2 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
9858 : : {
9859 : 2 : {
9860 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _q20 };
9861 : 2 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures);
9862 : 2 : if (res) return res;
9863 : : }
9864 : : }
9865 : 0 : if ((_p1 == _q41 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q41, 0) && types_match (_p1, _q41)))
9866 : : {
9867 : 0 : {
9868 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _q20 };
9869 : 0 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures);
9870 : 0 : if (res) return res;
9871 : : }
9872 : : }
9873 : : break;
9874 : : }
9875 : : default:;
9876 : : }
9877 : : }
9878 : : break;
9879 : : }
9880 : 2489 : case LSHIFT_EXPR:
9881 : 2489 : {
9882 : 2489 : tree _q20 = TREE_OPERAND (_p0, 0);
9883 : 2489 : tree _q21 = TREE_OPERAND (_p0, 1);
9884 : 2489 : switch (TREE_CODE (_q21))
9885 : : {
9886 : 1108 : case INTEGER_CST:
9887 : 1108 : {
9888 : 1108 : switch (TREE_CODE (_p1))
9889 : : {
9890 : 0 : case MULT_EXPR:
9891 : 0 : {
9892 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9893 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9894 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9895 : : {
9896 : 0 : switch (TREE_CODE (_q51))
9897 : : {
9898 : 0 : case INTEGER_CST:
9899 : 0 : {
9900 : 0 : {
9901 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _p1, _q20, _q51, _p0, _q21 };
9902 : 0 : tree res = generic_simplify_143 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
9903 : 0 : if (res) return res;
9904 : : }
9905 : 0 : break;
9906 : : }
9907 : : default:;
9908 : : }
9909 : : }
9910 : : break;
9911 : : }
9912 : 1108 : default:;
9913 : : }
9914 : 1108 : {
9915 : 1108 : tree _p1_pops[1];
9916 : 1108 : if (tree_nop_convert (_p1, _p1_pops))
9917 : : {
9918 : 23 : tree _q50 = _p1_pops[0];
9919 : 23 : switch (TREE_CODE (_q50))
9920 : : {
9921 : 0 : case MULT_EXPR:
9922 : 0 : {
9923 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
9924 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
9925 : 0 : {
9926 : 0 : tree _q60_pops[1];
9927 : 0 : if (tree_nop_convert (_q60, _q60_pops))
9928 : : {
9929 : 0 : tree _q70 = _q60_pops[0];
9930 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
9931 : : {
9932 : 0 : switch (TREE_CODE (_q61))
9933 : : {
9934 : 0 : case INTEGER_CST:
9935 : 0 : {
9936 : 0 : {
9937 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q50, _q20, _q61, _p0, _q21 };
9938 : 0 : tree res = generic_simplify_116 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
9939 : 0 : if (res) return res;
9940 : : }
9941 : 0 : break;
9942 : : }
9943 : : default:;
9944 : : }
9945 : : }
9946 : : }
9947 : : }
9948 : 0 : break;
9949 : : }
9950 : : default:;
9951 : : }
9952 : : }
9953 : : }
9954 : 1108 : break;
9955 : : }
9956 : : default:;
9957 : : }
9958 : : break;
9959 : : }
9960 : 677823 : default:;
9961 : : }
9962 : 677823 : switch (TREE_CODE (_p1))
9963 : : {
9964 : 243 : case MULT_EXPR:
9965 : 243 : {
9966 : 243 : tree _q30 = TREE_OPERAND (_p1, 0);
9967 : 243 : tree _q31 = TREE_OPERAND (_p1, 1);
9968 : 243 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
9969 : : {
9970 : 0 : switch (TREE_CODE (_q31))
9971 : : {
9972 : 0 : case INTEGER_CST:
9973 : 0 : {
9974 : 0 : {
9975 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _p1, _p0, _q31 };
9976 : 0 : tree res = generic_simplify_144 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
9977 : 0 : if (res) return res;
9978 : : }
9979 : 0 : break;
9980 : : }
9981 : : default:;
9982 : : }
9983 : : }
9984 : : break;
9985 : : }
9986 : 677823 : default:;
9987 : : }
9988 : 677823 : {
9989 : 677823 : tree _p1_pops[1];
9990 : 677823 : if (tree_nop_convert (_p1, _p1_pops))
9991 : : {
9992 : 537053 : tree _q30 = _p1_pops[0];
9993 : 537053 : switch (TREE_CODE (_q30))
9994 : : {
9995 : 17 : case MULT_EXPR:
9996 : 17 : {
9997 : 17 : tree _q40 = TREE_OPERAND (_q30, 0);
9998 : 17 : tree _q41 = TREE_OPERAND (_q30, 1);
9999 : 17 : {
10000 : 17 : tree _q40_pops[1];
10001 : 17 : if (tree_nop_convert (_q40, _q40_pops))
10002 : : {
10003 : 0 : tree _q50 = _q40_pops[0];
10004 : 0 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
10005 : : {
10006 : 0 : switch (TREE_CODE (_q41))
10007 : : {
10008 : 0 : case INTEGER_CST:
10009 : 0 : {
10010 : 0 : {
10011 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q30, _p0, _q41 };
10012 : 0 : tree res = generic_simplify_117 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
10013 : 0 : if (res) return res;
10014 : : }
10015 : 0 : break;
10016 : : }
10017 : : default:;
10018 : : }
10019 : : }
10020 : : }
10021 : : }
10022 : 17 : break;
10023 : : }
10024 : : default:;
10025 : : }
10026 : : }
10027 : : }
10028 : 677823 : switch (TREE_CODE (_p0))
10029 : : {
10030 : 2489 : case LSHIFT_EXPR:
10031 : 2489 : {
10032 : 2489 : tree _q20 = TREE_OPERAND (_p0, 0);
10033 : 2489 : tree _q21 = TREE_OPERAND (_p0, 1);
10034 : 2489 : switch (TREE_CODE (_q21))
10035 : : {
10036 : 1108 : case INTEGER_CST:
10037 : 1108 : {
10038 : 1108 : switch (TREE_CODE (_p1))
10039 : : {
10040 : 9 : case LSHIFT_EXPR:
10041 : 9 : {
10042 : 9 : tree _q50 = TREE_OPERAND (_p1, 0);
10043 : 9 : tree _q51 = TREE_OPERAND (_p1, 1);
10044 : 9 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
10045 : : {
10046 : 3 : switch (TREE_CODE (_q51))
10047 : : {
10048 : 3 : case INTEGER_CST:
10049 : 3 : {
10050 : 3 : {
10051 : 3 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
10052 : 3 : tree res = generic_simplify_145 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
10053 : 3 : if (res) return res;
10054 : : }
10055 : 1 : break;
10056 : : }
10057 : : default:;
10058 : : }
10059 : : }
10060 : : break;
10061 : : }
10062 : 1106 : default:;
10063 : : }
10064 : 1106 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
10065 : : {
10066 : 57 : {
10067 : 57 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
10068 : 57 : tree res = generic_simplify_146 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
10069 : 57 : if (res) return res;
10070 : : }
10071 : : }
10072 : : break;
10073 : : }
10074 : : default:;
10075 : : }
10076 : : break;
10077 : : }
10078 : 677821 : default:;
10079 : : }
10080 : 677821 : switch (TREE_CODE (_p1))
10081 : : {
10082 : 1982 : case LSHIFT_EXPR:
10083 : 1982 : {
10084 : 1982 : tree _q30 = TREE_OPERAND (_p1, 0);
10085 : 1982 : tree _q31 = TREE_OPERAND (_p1, 1);
10086 : 1982 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
10087 : : {
10088 : 3 : switch (TREE_CODE (_q31))
10089 : : {
10090 : 3 : case INTEGER_CST:
10091 : 3 : {
10092 : 3 : {
10093 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _p0, _q31 };
10094 : 3 : tree res = generic_simplify_146 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
10095 : 3 : if (res) return res;
10096 : : }
10097 : 0 : break;
10098 : : }
10099 : : default:;
10100 : : }
10101 : : }
10102 : : break;
10103 : : }
10104 : 677818 : default:;
10105 : : }
10106 : 677818 : switch (TREE_CODE (_p0))
10107 : : {
10108 : 0 : case MIN_EXPR:
10109 : 0 : {
10110 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
10111 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
10112 : 0 : switch (TREE_CODE (_p1))
10113 : : {
10114 : 0 : case MAX_EXPR:
10115 : 0 : {
10116 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
10117 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
10118 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
10119 : : {
10120 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10121 : : {
10122 : 0 : {
10123 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10124 : 0 : if (!HONOR_NANS (captures[0])
10125 : : )
10126 : : {
10127 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1437;
10128 : 0 : {
10129 : 0 : tree res_op0;
10130 : 0 : res_op0 = captures[0];
10131 : 0 : tree res_op1;
10132 : 0 : res_op1 = captures[1];
10133 : 0 : tree _r;
10134 : 0 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
10135 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 898, __FILE__, __LINE__, true);
10136 : 0 : return _r;
10137 : : }
10138 : 0 : next_after_fail1437:;
10139 : : }
10140 : : }
10141 : : }
10142 : : }
10143 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
10144 : : {
10145 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
10146 : : {
10147 : 0 : {
10148 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
10149 : 0 : if (!HONOR_NANS (captures[0])
10150 : : )
10151 : : {
10152 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1438;
10153 : 0 : {
10154 : 0 : tree res_op0;
10155 : 0 : res_op0 = captures[0];
10156 : 0 : tree res_op1;
10157 : 0 : res_op1 = captures[1];
10158 : 0 : tree _r;
10159 : 0 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
10160 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 898, __FILE__, __LINE__, true);
10161 : 0 : return _r;
10162 : : }
10163 : 0 : next_after_fail1438:;
10164 : : }
10165 : : }
10166 : : }
10167 : : }
10168 : : break;
10169 : : }
10170 : : default:;
10171 : : }
10172 : : break;
10173 : : }
10174 : 0 : case MAX_EXPR:
10175 : 0 : {
10176 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
10177 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
10178 : 0 : switch (TREE_CODE (_p1))
10179 : : {
10180 : 0 : case MIN_EXPR:
10181 : 0 : {
10182 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
10183 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
10184 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
10185 : : {
10186 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10187 : : {
10188 : 0 : {
10189 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10190 : 0 : if (!HONOR_NANS (captures[0])
10191 : : )
10192 : : {
10193 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1439;
10194 : 0 : {
10195 : 0 : tree res_op0;
10196 : 0 : res_op0 = captures[0];
10197 : 0 : tree res_op1;
10198 : 0 : res_op1 = captures[1];
10199 : 0 : tree _r;
10200 : 0 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
10201 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 898, __FILE__, __LINE__, true);
10202 : 0 : return _r;
10203 : : }
10204 : 0 : next_after_fail1439:;
10205 : : }
10206 : : }
10207 : : }
10208 : : }
10209 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
10210 : : {
10211 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
10212 : : {
10213 : 0 : {
10214 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10215 : 0 : if (!HONOR_NANS (captures[0])
10216 : : )
10217 : : {
10218 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1440;
10219 : 0 : {
10220 : 0 : tree res_op0;
10221 : 0 : res_op0 = captures[0];
10222 : 0 : tree res_op1;
10223 : 0 : res_op1 = captures[1];
10224 : 0 : tree _r;
10225 : 0 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
10226 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 898, __FILE__, __LINE__, true);
10227 : 0 : return _r;
10228 : : }
10229 : 0 : next_after_fail1440:;
10230 : : }
10231 : : }
10232 : : }
10233 : : }
10234 : : break;
10235 : : }
10236 : : default:;
10237 : : }
10238 : : break;
10239 : : }
10240 : 677818 : default:;
10241 : : }
10242 : 677818 : switch (TREE_CODE (_p1))
10243 : : {
10244 : 243 : case MULT_EXPR:
10245 : 243 : {
10246 : 243 : tree _q30 = TREE_OPERAND (_p1, 0);
10247 : 243 : tree _q31 = TREE_OPERAND (_p1, 1);
10248 : 243 : switch (TREE_CODE (_q30))
10249 : : {
10250 : 0 : case BIT_XOR_EXPR:
10251 : 0 : {
10252 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
10253 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
10254 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
10255 : : {
10256 : 0 : if (tree_zero_one_valued_p (_q31))
10257 : : {
10258 : 0 : {
10259 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q41, _q31 };
10260 : 0 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures);
10261 : 0 : if (res) return res;
10262 : : }
10263 : : }
10264 : : }
10265 : 0 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
10266 : : {
10267 : 0 : if (tree_zero_one_valued_p (_q31))
10268 : : {
10269 : 0 : {
10270 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q40, _q31 };
10271 : 0 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures);
10272 : 0 : if (res) return res;
10273 : : }
10274 : : }
10275 : : }
10276 : : break;
10277 : : }
10278 : 243 : default:;
10279 : : }
10280 : 243 : if (tree_zero_one_valued_p (_q30))
10281 : : {
10282 : 17 : switch (TREE_CODE (_q31))
10283 : : {
10284 : 0 : case BIT_XOR_EXPR:
10285 : 0 : {
10286 : 0 : tree _q50 = TREE_OPERAND (_q31, 0);
10287 : 0 : tree _q51 = TREE_OPERAND (_q31, 1);
10288 : 0 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
10289 : : {
10290 : 0 : {
10291 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q51, _q30 };
10292 : 0 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures);
10293 : 0 : if (res) return res;
10294 : : }
10295 : : }
10296 : 0 : if ((_q51 == _p0 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _p0, 0) && types_match (_q51, _p0)))
10297 : : {
10298 : 0 : {
10299 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q50, _q30 };
10300 : 0 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures);
10301 : 0 : if (res) return res;
10302 : : }
10303 : : }
10304 : : break;
10305 : : }
10306 : : default:;
10307 : : }
10308 : : }
10309 : : break;
10310 : : }
10311 : 677818 : default:;
10312 : : }
10313 : 677818 : switch (TREE_CODE (_p0))
10314 : : {
10315 : 1 : case VEC_COND_EXPR:
10316 : 1 : {
10317 : 1 : tree _q20 = TREE_OPERAND (_p0, 0);
10318 : 1 : tree _q21 = TREE_OPERAND (_p0, 1);
10319 : 1 : tree _q22 = TREE_OPERAND (_p0, 2);
10320 : 1 : switch (TREE_CODE (_p1))
10321 : : {
10322 : 0 : case VEC_COND_EXPR:
10323 : 0 : {
10324 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
10325 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
10326 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
10327 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
10328 : : {
10329 : 0 : {
10330 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
10331 : 0 : if (VECTOR_TYPE_P (type)
10332 : 0 : && (TREE_CODE_CLASS (BIT_XOR_EXPR) != tcc_comparison
10333 : : || types_match (type, TREE_TYPE (captures[2]))
10334 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
10335 : : || (optimize_vectors_before_lowering_p ()
10336 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
10337 : : )
10338 : : {
10339 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1441;
10340 : 0 : {
10341 : 0 : tree res_op0;
10342 : 0 : res_op0 = captures[1];
10343 : 0 : tree res_op1;
10344 : 0 : {
10345 : 0 : tree _o1[2], _r1;
10346 : 0 : _o1[0] = captures[2];
10347 : 0 : _o1[1] = captures[5];
10348 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10349 : 0 : if (EXPR_P (_r1))
10350 : 0 : goto next_after_fail1441;
10351 : 0 : res_op1 = _r1;
10352 : : }
10353 : 0 : tree res_op2;
10354 : 0 : {
10355 : 0 : tree _o1[2], _r1;
10356 : 0 : _o1[0] = captures[3];
10357 : 0 : _o1[1] = captures[6];
10358 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10359 : 0 : if (EXPR_P (_r1))
10360 : 0 : goto next_after_fail1441;
10361 : 0 : res_op2 = _r1;
10362 : : }
10363 : 0 : tree _r;
10364 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10365 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 902, __FILE__, __LINE__, true);
10366 : 0 : return _r;
10367 : : }
10368 : 0 : next_after_fail1441:;
10369 : : }
10370 : : }
10371 : : }
10372 : : break;
10373 : : }
10374 : 1 : default:;
10375 : : }
10376 : 1 : if (integer_minus_onep (_q21))
10377 : : {
10378 : 1 : if (integer_zerop (_q22))
10379 : : {
10380 : 1 : switch (TREE_CODE (_p1))
10381 : : {
10382 : 0 : case VEC_COND_EXPR:
10383 : 0 : {
10384 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
10385 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
10386 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
10387 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
10388 : : {
10389 : 0 : if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
10390 : : {
10391 : 0 : {
10392 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10393 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10394 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10395 : : )
10396 : : {
10397 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1442;
10398 : 0 : {
10399 : 0 : tree res_op0;
10400 : 0 : {
10401 : 0 : tree _o1[2], _r1;
10402 : 0 : _o1[0] = captures[0];
10403 : 0 : _o1[1] = captures[3];
10404 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10405 : 0 : res_op0 = _r1;
10406 : : }
10407 : 0 : tree res_op1;
10408 : 0 : res_op1 = captures[1];
10409 : 0 : tree res_op2;
10410 : 0 : res_op2 = captures[2];
10411 : 0 : tree _r;
10412 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10413 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
10414 : 0 : return _r;
10415 : : }
10416 : 0 : next_after_fail1442:;
10417 : : }
10418 : : }
10419 : 0 : {
10420 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10421 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10422 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10423 : : )
10424 : : {
10425 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1443;
10426 : 0 : {
10427 : 0 : tree res_op0;
10428 : 0 : {
10429 : 0 : tree _o1[2], _r1;
10430 : 0 : _o1[0] = captures[0];
10431 : 0 : _o1[1] = captures[3];
10432 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10433 : 0 : res_op0 = _r1;
10434 : : }
10435 : 0 : tree res_op1;
10436 : 0 : res_op1 = captures[1];
10437 : 0 : tree res_op2;
10438 : 0 : res_op2 = captures[2];
10439 : 0 : tree _r;
10440 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10441 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
10442 : 0 : return _r;
10443 : : }
10444 : 0 : next_after_fail1443:;
10445 : : }
10446 : : }
10447 : 0 : {
10448 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10449 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10450 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10451 : : )
10452 : : {
10453 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1444;
10454 : 0 : {
10455 : 0 : tree res_op0;
10456 : 0 : {
10457 : 0 : tree _o1[2], _r1;
10458 : 0 : _o1[0] = captures[0];
10459 : 0 : _o1[1] = captures[3];
10460 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10461 : 0 : res_op0 = _r1;
10462 : : }
10463 : 0 : tree res_op1;
10464 : 0 : res_op1 = captures[1];
10465 : 0 : tree res_op2;
10466 : 0 : res_op2 = captures[2];
10467 : 0 : tree _r;
10468 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10469 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
10470 : 0 : return _r;
10471 : : }
10472 : 0 : next_after_fail1444:;
10473 : : }
10474 : : }
10475 : 0 : {
10476 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10477 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10478 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10479 : : )
10480 : : {
10481 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1445;
10482 : 0 : {
10483 : 0 : tree res_op0;
10484 : 0 : {
10485 : 0 : tree _o1[2], _r1;
10486 : 0 : _o1[0] = captures[0];
10487 : 0 : _o1[1] = captures[3];
10488 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10489 : 0 : res_op0 = _r1;
10490 : : }
10491 : 0 : tree res_op1;
10492 : 0 : res_op1 = captures[1];
10493 : 0 : tree res_op2;
10494 : 0 : res_op2 = captures[2];
10495 : 0 : tree _r;
10496 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10497 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
10498 : 0 : return _r;
10499 : : }
10500 : 0 : next_after_fail1445:;
10501 : : }
10502 : : }
10503 : 0 : {
10504 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10505 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10506 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10507 : : )
10508 : : {
10509 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1446;
10510 : 0 : {
10511 : 0 : tree res_op0;
10512 : 0 : {
10513 : 0 : tree _o1[2], _r1;
10514 : 0 : _o1[0] = captures[0];
10515 : 0 : _o1[1] = captures[3];
10516 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10517 : 0 : res_op0 = _r1;
10518 : : }
10519 : 0 : tree res_op1;
10520 : 0 : res_op1 = captures[1];
10521 : 0 : tree res_op2;
10522 : 0 : res_op2 = captures[2];
10523 : 0 : tree _r;
10524 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10525 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
10526 : 0 : return _r;
10527 : : }
10528 : 0 : next_after_fail1446:;
10529 : : }
10530 : : }
10531 : 0 : {
10532 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10533 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10534 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10535 : : )
10536 : : {
10537 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1447;
10538 : 0 : {
10539 : 0 : tree res_op0;
10540 : 0 : {
10541 : 0 : tree _o1[2], _r1;
10542 : 0 : _o1[0] = captures[0];
10543 : 0 : _o1[1] = captures[3];
10544 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10545 : 0 : res_op0 = _r1;
10546 : : }
10547 : 0 : tree res_op1;
10548 : 0 : res_op1 = captures[1];
10549 : 0 : tree res_op2;
10550 : 0 : res_op2 = captures[2];
10551 : 0 : tree _r;
10552 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10553 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
10554 : 0 : return _r;
10555 : : }
10556 : 0 : next_after_fail1447:;
10557 : : }
10558 : : }
10559 : 0 : {
10560 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10561 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10562 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10563 : : )
10564 : : {
10565 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1448;
10566 : 0 : {
10567 : 0 : tree res_op0;
10568 : 0 : {
10569 : 0 : tree _o1[2], _r1;
10570 : 0 : _o1[0] = captures[0];
10571 : 0 : _o1[1] = captures[3];
10572 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10573 : 0 : res_op0 = _r1;
10574 : : }
10575 : 0 : tree res_op1;
10576 : 0 : res_op1 = captures[1];
10577 : 0 : tree res_op2;
10578 : 0 : res_op2 = captures[2];
10579 : 0 : tree _r;
10580 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10581 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
10582 : 0 : return _r;
10583 : : }
10584 : 0 : next_after_fail1448:;
10585 : : }
10586 : : }
10587 : 0 : {
10588 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10589 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10590 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10591 : : )
10592 : : {
10593 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1449;
10594 : 0 : {
10595 : 0 : tree res_op0;
10596 : 0 : {
10597 : 0 : tree _o1[2], _r1;
10598 : 0 : _o1[0] = captures[0];
10599 : 0 : _o1[1] = captures[3];
10600 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10601 : 0 : res_op0 = _r1;
10602 : : }
10603 : 0 : tree res_op1;
10604 : 0 : res_op1 = captures[1];
10605 : 0 : tree res_op2;
10606 : 0 : res_op2 = captures[2];
10607 : 0 : tree _r;
10608 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10609 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
10610 : 0 : return _r;
10611 : : }
10612 : 0 : next_after_fail1449:;
10613 : : }
10614 : : }
10615 : 0 : {
10616 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10617 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10618 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10619 : : )
10620 : : {
10621 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1450;
10622 : 0 : {
10623 : 0 : tree res_op0;
10624 : 0 : {
10625 : 0 : tree _o1[2], _r1;
10626 : 0 : _o1[0] = captures[0];
10627 : 0 : _o1[1] = captures[3];
10628 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10629 : 0 : res_op0 = _r1;
10630 : : }
10631 : 0 : tree res_op1;
10632 : 0 : res_op1 = captures[1];
10633 : 0 : tree res_op2;
10634 : 0 : res_op2 = captures[2];
10635 : 0 : tree _r;
10636 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10637 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
10638 : 0 : return _r;
10639 : : }
10640 : 0 : next_after_fail1450:;
10641 : : }
10642 : : }
10643 : 0 : {
10644 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10645 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10646 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10647 : : )
10648 : : {
10649 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1451;
10650 : 0 : {
10651 : 0 : tree res_op0;
10652 : 0 : {
10653 : 0 : tree _o1[2], _r1;
10654 : 0 : _o1[0] = captures[0];
10655 : 0 : _o1[1] = captures[3];
10656 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10657 : 0 : res_op0 = _r1;
10658 : : }
10659 : 0 : tree res_op1;
10660 : 0 : res_op1 = captures[1];
10661 : 0 : tree res_op2;
10662 : 0 : res_op2 = captures[2];
10663 : 0 : tree _r;
10664 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10665 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
10666 : 0 : return _r;
10667 : : }
10668 : 0 : next_after_fail1451:;
10669 : : }
10670 : : }
10671 : 0 : {
10672 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10673 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10674 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10675 : : )
10676 : : {
10677 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1452;
10678 : 0 : {
10679 : 0 : tree res_op0;
10680 : 0 : {
10681 : 0 : tree _o1[2], _r1;
10682 : 0 : _o1[0] = captures[0];
10683 : 0 : _o1[1] = captures[3];
10684 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10685 : 0 : res_op0 = _r1;
10686 : : }
10687 : 0 : tree res_op1;
10688 : 0 : res_op1 = captures[1];
10689 : 0 : tree res_op2;
10690 : 0 : res_op2 = captures[2];
10691 : 0 : tree _r;
10692 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10693 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
10694 : 0 : return _r;
10695 : : }
10696 : 0 : next_after_fail1452:;
10697 : : }
10698 : : }
10699 : 0 : {
10700 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10701 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10702 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10703 : : )
10704 : : {
10705 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1453;
10706 : 0 : {
10707 : 0 : tree res_op0;
10708 : 0 : {
10709 : 0 : tree _o1[2], _r1;
10710 : 0 : _o1[0] = captures[0];
10711 : 0 : _o1[1] = captures[3];
10712 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10713 : 0 : res_op0 = _r1;
10714 : : }
10715 : 0 : tree res_op1;
10716 : 0 : res_op1 = captures[1];
10717 : 0 : tree res_op2;
10718 : 0 : res_op2 = captures[2];
10719 : 0 : tree _r;
10720 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10721 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
10722 : 0 : return _r;
10723 : : }
10724 : 0 : next_after_fail1453:;
10725 : : }
10726 : : }
10727 : 0 : {
10728 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10729 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10730 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10731 : : )
10732 : : {
10733 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1454;
10734 : 0 : {
10735 : 0 : tree res_op0;
10736 : 0 : {
10737 : 0 : tree _o1[2], _r1;
10738 : 0 : _o1[0] = captures[0];
10739 : 0 : _o1[1] = captures[3];
10740 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10741 : 0 : res_op0 = _r1;
10742 : : }
10743 : 0 : tree res_op1;
10744 : 0 : res_op1 = captures[1];
10745 : 0 : tree res_op2;
10746 : 0 : res_op2 = captures[2];
10747 : 0 : tree _r;
10748 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10749 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
10750 : 0 : return _r;
10751 : : }
10752 : 0 : next_after_fail1454:;
10753 : : }
10754 : : }
10755 : 0 : {
10756 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10757 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10758 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10759 : : )
10760 : : {
10761 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1455;
10762 : 0 : {
10763 : 0 : tree res_op0;
10764 : 0 : {
10765 : 0 : tree _o1[2], _r1;
10766 : 0 : _o1[0] = captures[0];
10767 : 0 : _o1[1] = captures[3];
10768 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10769 : 0 : res_op0 = _r1;
10770 : : }
10771 : 0 : tree res_op1;
10772 : 0 : res_op1 = captures[1];
10773 : 0 : tree res_op2;
10774 : 0 : res_op2 = captures[2];
10775 : 0 : tree _r;
10776 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10777 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
10778 : 0 : return _r;
10779 : : }
10780 : 0 : next_after_fail1455:;
10781 : : }
10782 : : }
10783 : 0 : {
10784 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10785 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10786 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10787 : : )
10788 : : {
10789 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1456;
10790 : 0 : {
10791 : 0 : tree res_op0;
10792 : 0 : {
10793 : 0 : tree _o1[2], _r1;
10794 : 0 : _o1[0] = captures[0];
10795 : 0 : _o1[1] = captures[3];
10796 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10797 : 0 : res_op0 = _r1;
10798 : : }
10799 : 0 : tree res_op1;
10800 : 0 : res_op1 = captures[1];
10801 : 0 : tree res_op2;
10802 : 0 : res_op2 = captures[2];
10803 : 0 : tree _r;
10804 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10805 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
10806 : 0 : return _r;
10807 : : }
10808 : 0 : next_after_fail1456:;
10809 : : }
10810 : : }
10811 : 0 : {
10812 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10813 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10814 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10815 : : )
10816 : : {
10817 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1457;
10818 : 0 : {
10819 : 0 : tree res_op0;
10820 : 0 : {
10821 : 0 : tree _o1[2], _r1;
10822 : 0 : _o1[0] = captures[0];
10823 : 0 : _o1[1] = captures[3];
10824 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10825 : 0 : res_op0 = _r1;
10826 : : }
10827 : 0 : tree res_op1;
10828 : 0 : res_op1 = captures[1];
10829 : 0 : tree res_op2;
10830 : 0 : res_op2 = captures[2];
10831 : 0 : tree _r;
10832 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10833 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
10834 : 0 : return _r;
10835 : : }
10836 : 0 : next_after_fail1457:;
10837 : : }
10838 : : }
10839 : 0 : {
10840 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10841 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10842 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10843 : : )
10844 : : {
10845 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1458;
10846 : 0 : {
10847 : 0 : tree res_op0;
10848 : 0 : {
10849 : 0 : tree _o1[2], _r1;
10850 : 0 : _o1[0] = captures[0];
10851 : 0 : _o1[1] = captures[3];
10852 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10853 : 0 : res_op0 = _r1;
10854 : : }
10855 : 0 : tree res_op1;
10856 : 0 : res_op1 = captures[1];
10857 : 0 : tree res_op2;
10858 : 0 : res_op2 = captures[2];
10859 : 0 : tree _r;
10860 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10861 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
10862 : 0 : return _r;
10863 : : }
10864 : 0 : next_after_fail1458:;
10865 : : }
10866 : : }
10867 : 0 : {
10868 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10869 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10870 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10871 : : )
10872 : : {
10873 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1459;
10874 : 0 : {
10875 : 0 : tree res_op0;
10876 : 0 : {
10877 : 0 : tree _o1[2], _r1;
10878 : 0 : _o1[0] = captures[0];
10879 : 0 : _o1[1] = captures[3];
10880 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10881 : 0 : res_op0 = _r1;
10882 : : }
10883 : 0 : tree res_op1;
10884 : 0 : res_op1 = captures[1];
10885 : 0 : tree res_op2;
10886 : 0 : res_op2 = captures[2];
10887 : 0 : tree _r;
10888 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10889 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
10890 : 0 : return _r;
10891 : : }
10892 : 0 : next_after_fail1459:;
10893 : : }
10894 : : }
10895 : 0 : {
10896 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10897 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10898 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10899 : : )
10900 : : {
10901 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1460;
10902 : 0 : {
10903 : 0 : tree res_op0;
10904 : 0 : {
10905 : 0 : tree _o1[2], _r1;
10906 : 0 : _o1[0] = captures[0];
10907 : 0 : _o1[1] = captures[3];
10908 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10909 : 0 : res_op0 = _r1;
10910 : : }
10911 : 0 : tree res_op1;
10912 : 0 : res_op1 = captures[1];
10913 : 0 : tree res_op2;
10914 : 0 : res_op2 = captures[2];
10915 : 0 : tree _r;
10916 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10917 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
10918 : 0 : return _r;
10919 : : }
10920 : 0 : next_after_fail1460:;
10921 : : }
10922 : : }
10923 : 0 : {
10924 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10925 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10926 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10927 : : )
10928 : : {
10929 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1461;
10930 : 0 : {
10931 : 0 : tree res_op0;
10932 : 0 : {
10933 : 0 : tree _o1[2], _r1;
10934 : 0 : _o1[0] = captures[0];
10935 : 0 : _o1[1] = captures[3];
10936 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10937 : 0 : res_op0 = _r1;
10938 : : }
10939 : 0 : tree res_op1;
10940 : 0 : res_op1 = captures[1];
10941 : 0 : tree res_op2;
10942 : 0 : res_op2 = captures[2];
10943 : 0 : tree _r;
10944 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10945 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
10946 : 0 : return _r;
10947 : : }
10948 : 0 : next_after_fail1461:;
10949 : : }
10950 : : }
10951 : 0 : {
10952 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10953 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10954 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10955 : : )
10956 : : {
10957 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1462;
10958 : 0 : {
10959 : 0 : tree res_op0;
10960 : 0 : {
10961 : 0 : tree _o1[2], _r1;
10962 : 0 : _o1[0] = captures[0];
10963 : 0 : _o1[1] = captures[3];
10964 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10965 : 0 : res_op0 = _r1;
10966 : : }
10967 : 0 : tree res_op1;
10968 : 0 : res_op1 = captures[1];
10969 : 0 : tree res_op2;
10970 : 0 : res_op2 = captures[2];
10971 : 0 : tree _r;
10972 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10973 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
10974 : 0 : return _r;
10975 : : }
10976 : 0 : next_after_fail1462:;
10977 : : }
10978 : : }
10979 : 0 : {
10980 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10981 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10982 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10983 : : )
10984 : : {
10985 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1463;
10986 : 0 : {
10987 : 0 : tree res_op0;
10988 : 0 : {
10989 : 0 : tree _o1[2], _r1;
10990 : 0 : _o1[0] = captures[0];
10991 : 0 : _o1[1] = captures[3];
10992 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10993 : 0 : res_op0 = _r1;
10994 : : }
10995 : 0 : tree res_op1;
10996 : 0 : res_op1 = captures[1];
10997 : 0 : tree res_op2;
10998 : 0 : res_op2 = captures[2];
10999 : 0 : tree _r;
11000 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11001 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
11002 : 0 : return _r;
11003 : : }
11004 : 0 : next_after_fail1463:;
11005 : : }
11006 : : }
11007 : 0 : {
11008 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11009 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11010 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11011 : : )
11012 : : {
11013 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1464;
11014 : 0 : {
11015 : 0 : tree res_op0;
11016 : 0 : {
11017 : 0 : tree _o1[2], _r1;
11018 : 0 : _o1[0] = captures[0];
11019 : 0 : _o1[1] = captures[3];
11020 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11021 : 0 : res_op0 = _r1;
11022 : : }
11023 : 0 : tree res_op1;
11024 : 0 : res_op1 = captures[1];
11025 : 0 : tree res_op2;
11026 : 0 : res_op2 = captures[2];
11027 : 0 : tree _r;
11028 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11029 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
11030 : 0 : return _r;
11031 : : }
11032 : 0 : next_after_fail1464:;
11033 : : }
11034 : : }
11035 : 0 : {
11036 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11037 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11038 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11039 : : )
11040 : : {
11041 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1465;
11042 : 0 : {
11043 : 0 : tree res_op0;
11044 : 0 : {
11045 : 0 : tree _o1[2], _r1;
11046 : 0 : _o1[0] = captures[0];
11047 : 0 : _o1[1] = captures[3];
11048 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11049 : 0 : res_op0 = _r1;
11050 : : }
11051 : 0 : tree res_op1;
11052 : 0 : res_op1 = captures[1];
11053 : 0 : tree res_op2;
11054 : 0 : res_op2 = captures[2];
11055 : 0 : tree _r;
11056 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11057 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
11058 : 0 : return _r;
11059 : : }
11060 : 0 : next_after_fail1465:;
11061 : : }
11062 : : }
11063 : 0 : {
11064 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11065 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11066 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11067 : : )
11068 : : {
11069 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1466;
11070 : 0 : {
11071 : 0 : tree res_op0;
11072 : 0 : {
11073 : 0 : tree _o1[2], _r1;
11074 : 0 : _o1[0] = captures[0];
11075 : 0 : _o1[1] = captures[3];
11076 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11077 : 0 : res_op0 = _r1;
11078 : : }
11079 : 0 : tree res_op1;
11080 : 0 : res_op1 = captures[1];
11081 : 0 : tree res_op2;
11082 : 0 : res_op2 = captures[2];
11083 : 0 : tree _r;
11084 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11085 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
11086 : 0 : return _r;
11087 : : }
11088 : 0 : next_after_fail1466:;
11089 : : }
11090 : : }
11091 : 0 : {
11092 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11093 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11094 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11095 : : )
11096 : : {
11097 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1467;
11098 : 0 : {
11099 : 0 : tree res_op0;
11100 : 0 : {
11101 : 0 : tree _o1[2], _r1;
11102 : 0 : _o1[0] = captures[0];
11103 : 0 : _o1[1] = captures[3];
11104 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11105 : 0 : res_op0 = _r1;
11106 : : }
11107 : 0 : tree res_op1;
11108 : 0 : res_op1 = captures[1];
11109 : 0 : tree res_op2;
11110 : 0 : res_op2 = captures[2];
11111 : 0 : tree _r;
11112 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11113 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
11114 : 0 : return _r;
11115 : : }
11116 : 0 : next_after_fail1467:;
11117 : : }
11118 : : }
11119 : 0 : {
11120 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11121 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11122 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11123 : : )
11124 : : {
11125 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1468;
11126 : 0 : {
11127 : 0 : tree res_op0;
11128 : 0 : {
11129 : 0 : tree _o1[2], _r1;
11130 : 0 : _o1[0] = captures[0];
11131 : 0 : _o1[1] = captures[3];
11132 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11133 : 0 : res_op0 = _r1;
11134 : : }
11135 : 0 : tree res_op1;
11136 : 0 : res_op1 = captures[1];
11137 : 0 : tree res_op2;
11138 : 0 : res_op2 = captures[2];
11139 : 0 : tree _r;
11140 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11141 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
11142 : 0 : return _r;
11143 : : }
11144 : 0 : next_after_fail1468:;
11145 : : }
11146 : : }
11147 : 0 : {
11148 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11149 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11150 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11151 : : )
11152 : : {
11153 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1469;
11154 : 0 : {
11155 : 0 : tree res_op0;
11156 : 0 : {
11157 : 0 : tree _o1[2], _r1;
11158 : 0 : _o1[0] = captures[0];
11159 : 0 : _o1[1] = captures[3];
11160 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11161 : 0 : res_op0 = _r1;
11162 : : }
11163 : 0 : tree res_op1;
11164 : 0 : res_op1 = captures[1];
11165 : 0 : tree res_op2;
11166 : 0 : res_op2 = captures[2];
11167 : 0 : tree _r;
11168 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11169 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
11170 : 0 : return _r;
11171 : : }
11172 : 0 : next_after_fail1469:;
11173 : : }
11174 : : }
11175 : 0 : {
11176 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11177 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11178 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11179 : : )
11180 : : {
11181 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1470;
11182 : 0 : {
11183 : 0 : tree res_op0;
11184 : 0 : {
11185 : 0 : tree _o1[2], _r1;
11186 : 0 : _o1[0] = captures[0];
11187 : 0 : _o1[1] = captures[3];
11188 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11189 : 0 : res_op0 = _r1;
11190 : : }
11191 : 0 : tree res_op1;
11192 : 0 : res_op1 = captures[1];
11193 : 0 : tree res_op2;
11194 : 0 : res_op2 = captures[2];
11195 : 0 : tree _r;
11196 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11197 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
11198 : 0 : return _r;
11199 : : }
11200 : 0 : next_after_fail1470:;
11201 : : }
11202 : : }
11203 : 0 : {
11204 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11205 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11206 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11207 : : )
11208 : : {
11209 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1471;
11210 : 0 : {
11211 : 0 : tree res_op0;
11212 : 0 : {
11213 : 0 : tree _o1[2], _r1;
11214 : 0 : _o1[0] = captures[0];
11215 : 0 : _o1[1] = captures[3];
11216 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11217 : 0 : res_op0 = _r1;
11218 : : }
11219 : 0 : tree res_op1;
11220 : 0 : res_op1 = captures[1];
11221 : 0 : tree res_op2;
11222 : 0 : res_op2 = captures[2];
11223 : 0 : tree _r;
11224 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11225 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
11226 : 0 : return _r;
11227 : : }
11228 : 0 : next_after_fail1471:;
11229 : : }
11230 : : }
11231 : 0 : {
11232 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11233 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11234 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11235 : : )
11236 : : {
11237 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1472;
11238 : 0 : {
11239 : 0 : tree res_op0;
11240 : 0 : {
11241 : 0 : tree _o1[2], _r1;
11242 : 0 : _o1[0] = captures[0];
11243 : 0 : _o1[1] = captures[3];
11244 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11245 : 0 : res_op0 = _r1;
11246 : : }
11247 : 0 : tree res_op1;
11248 : 0 : res_op1 = captures[1];
11249 : 0 : tree res_op2;
11250 : 0 : res_op2 = captures[2];
11251 : 0 : tree _r;
11252 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11253 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
11254 : 0 : return _r;
11255 : : }
11256 : 0 : next_after_fail1472:;
11257 : : }
11258 : : }
11259 : 0 : {
11260 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11261 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11262 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11263 : : )
11264 : : {
11265 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1473;
11266 : 0 : {
11267 : 0 : tree res_op0;
11268 : 0 : {
11269 : 0 : tree _o1[2], _r1;
11270 : 0 : _o1[0] = captures[0];
11271 : 0 : _o1[1] = captures[3];
11272 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11273 : 0 : res_op0 = _r1;
11274 : : }
11275 : 0 : tree res_op1;
11276 : 0 : res_op1 = captures[1];
11277 : 0 : tree res_op2;
11278 : 0 : res_op2 = captures[2];
11279 : 0 : tree _r;
11280 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11281 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
11282 : 0 : return _r;
11283 : : }
11284 : 0 : next_after_fail1473:;
11285 : : }
11286 : : }
11287 : 0 : {
11288 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11289 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11290 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11291 : : )
11292 : : {
11293 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1474;
11294 : 0 : {
11295 : 0 : tree res_op0;
11296 : 0 : {
11297 : 0 : tree _o1[2], _r1;
11298 : 0 : _o1[0] = captures[0];
11299 : 0 : _o1[1] = captures[3];
11300 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11301 : 0 : res_op0 = _r1;
11302 : : }
11303 : 0 : tree res_op1;
11304 : 0 : res_op1 = captures[1];
11305 : 0 : tree res_op2;
11306 : 0 : res_op2 = captures[2];
11307 : 0 : tree _r;
11308 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11309 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
11310 : 0 : return _r;
11311 : : }
11312 : 0 : next_after_fail1474:;
11313 : : }
11314 : : }
11315 : 0 : {
11316 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11317 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11318 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11319 : : )
11320 : : {
11321 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1475;
11322 : 0 : {
11323 : 0 : tree res_op0;
11324 : 0 : {
11325 : 0 : tree _o1[2], _r1;
11326 : 0 : _o1[0] = captures[0];
11327 : 0 : _o1[1] = captures[3];
11328 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11329 : 0 : res_op0 = _r1;
11330 : : }
11331 : 0 : tree res_op1;
11332 : 0 : res_op1 = captures[1];
11333 : 0 : tree res_op2;
11334 : 0 : res_op2 = captures[2];
11335 : 0 : tree _r;
11336 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11337 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 946, __FILE__, __LINE__, true);
11338 : 0 : return _r;
11339 : : }
11340 : 0 : next_after_fail1475:;
11341 : : }
11342 : : }
11343 : : }
11344 : : }
11345 : : break;
11346 : : }
11347 : : default:;
11348 : : }
11349 : : }
11350 : : }
11351 : 1 : {
11352 : 1 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
11353 : 1 : if (VECTOR_TYPE_P (type)
11354 : 1 : && (TREE_CODE_CLASS (BIT_XOR_EXPR) != tcc_comparison
11355 : : || types_match (type, TREE_TYPE (captures[2]))
11356 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
11357 : : || (optimize_vectors_before_lowering_p ()
11358 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
11359 : : )
11360 : : {
11361 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1476;
11362 : 1 : {
11363 : 1 : if (! tree_invariant_p (captures[4])) goto next_after_fail1476;
11364 : 0 : tree res_op0;
11365 : 0 : res_op0 = captures[1];
11366 : 0 : tree res_op1;
11367 : 0 : {
11368 : 0 : tree _o1[2], _r1;
11369 : 0 : _o1[0] = captures[2];
11370 : 0 : _o1[1] = unshare_expr (captures[4]);
11371 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11372 : 0 : if (EXPR_P (_r1))
11373 : 0 : goto next_after_fail1476;
11374 : 0 : res_op1 = _r1;
11375 : : }
11376 : 0 : tree res_op2;
11377 : 0 : {
11378 : 0 : tree _o1[2], _r1;
11379 : 0 : _o1[0] = captures[3];
11380 : 0 : _o1[1] = captures[4];
11381 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11382 : 0 : if (EXPR_P (_r1))
11383 : 0 : goto next_after_fail1476;
11384 : 0 : res_op2 = _r1;
11385 : : }
11386 : 0 : tree _r;
11387 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11388 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 903, __FILE__, __LINE__, true);
11389 : 0 : return _r;
11390 : : }
11391 : 1 : next_after_fail1476:;
11392 : : }
11393 : : }
11394 : 1 : break;
11395 : : }
11396 : 677818 : default:;
11397 : : }
11398 : 677818 : switch (TREE_CODE (_p1))
11399 : : {
11400 : 0 : case VEC_COND_EXPR:
11401 : 0 : {
11402 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
11403 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
11404 : 0 : tree _q32 = TREE_OPERAND (_p1, 2);
11405 : 0 : {
11406 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
11407 : 0 : if (VECTOR_TYPE_P (type)
11408 : 0 : && (TREE_CODE_CLASS (BIT_XOR_EXPR) != tcc_comparison
11409 : : || types_match (type, TREE_TYPE (captures[3]))
11410 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
11411 : : || (optimize_vectors_before_lowering_p ()
11412 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
11413 : : )
11414 : : {
11415 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1477;
11416 : 0 : {
11417 : 0 : if (! tree_invariant_p (captures[0])) goto next_after_fail1477;
11418 : 0 : tree res_op0;
11419 : 0 : res_op0 = captures[2];
11420 : 0 : tree res_op1;
11421 : 0 : {
11422 : 0 : tree _o1[2], _r1;
11423 : 0 : _o1[0] = unshare_expr (captures[0]);
11424 : 0 : _o1[1] = captures[3];
11425 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11426 : 0 : if (EXPR_P (_r1))
11427 : 0 : goto next_after_fail1477;
11428 : 0 : res_op1 = _r1;
11429 : : }
11430 : 0 : tree res_op2;
11431 : 0 : {
11432 : 0 : tree _o1[2], _r1;
11433 : 0 : _o1[0] = captures[0];
11434 : 0 : _o1[1] = captures[4];
11435 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11436 : 0 : if (EXPR_P (_r1))
11437 : 0 : goto next_after_fail1477;
11438 : 0 : res_op2 = _r1;
11439 : : }
11440 : 0 : tree _r;
11441 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11442 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 904, __FILE__, __LINE__, true);
11443 : 0 : return _r;
11444 : : }
11445 : 0 : next_after_fail1477:;
11446 : : }
11447 : : }
11448 : 0 : break;
11449 : : }
11450 : 677818 : default:;
11451 : : }
11452 : 677818 : switch (TREE_CODE (_p0))
11453 : : {
11454 : 90 : case LT_EXPR:
11455 : 90 : {
11456 : 90 : tree _q20 = TREE_OPERAND (_p0, 0);
11457 : 90 : tree _q21 = TREE_OPERAND (_p0, 1);
11458 : 90 : if (integer_truep (_p1))
11459 : : {
11460 : 14 : {
11461 : 14 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11462 : 14 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR, UNGE_EXPR);
11463 : 14 : if (res) return res;
11464 : : }
11465 : : }
11466 : 76 : if (integer_zerop (_q21))
11467 : : {
11468 : 24 : switch (TREE_CODE (_p1))
11469 : : {
11470 : 17 : case LT_EXPR:
11471 : 17 : {
11472 : 17 : tree _q50 = TREE_OPERAND (_p1, 0);
11473 : 17 : tree _q51 = TREE_OPERAND (_p1, 1);
11474 : 17 : if (integer_zerop (_q51))
11475 : : {
11476 : 17 : {
11477 : 17 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q50 };
11478 : 17 : tree res = generic_simplify_170 (loc, type, _p0, _p1, captures, LT_EXPR);
11479 : 17 : if (res) return res;
11480 : : }
11481 : : }
11482 : : break;
11483 : : }
11484 : 0 : case GE_EXPR:
11485 : 0 : {
11486 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
11487 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
11488 : 0 : if (integer_zerop (_q51))
11489 : : {
11490 : 0 : {
11491 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q50 };
11492 : 0 : tree res = generic_simplify_171 (loc, type, _p0, _p1, captures);
11493 : 0 : if (res) return res;
11494 : : }
11495 : : }
11496 : : break;
11497 : : }
11498 : : default:;
11499 : : }
11500 : : }
11501 : : break;
11502 : : }
11503 : 78 : case LE_EXPR:
11504 : 78 : {
11505 : 78 : tree _q20 = TREE_OPERAND (_p0, 0);
11506 : 78 : tree _q21 = TREE_OPERAND (_p0, 1);
11507 : 78 : if (integer_truep (_p1))
11508 : : {
11509 : 15 : {
11510 : 15 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11511 : 15 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR, UNGT_EXPR);
11512 : 15 : if (res) return res;
11513 : : }
11514 : : }
11515 : : break;
11516 : : }
11517 : 118 : case EQ_EXPR:
11518 : 118 : {
11519 : 118 : tree _q20 = TREE_OPERAND (_p0, 0);
11520 : 118 : tree _q21 = TREE_OPERAND (_p0, 1);
11521 : 118 : if (integer_truep (_p1))
11522 : : {
11523 : 14 : {
11524 : 14 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11525 : 14 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR, NE_EXPR);
11526 : 14 : if (res) return res;
11527 : : }
11528 : : }
11529 : : break;
11530 : : }
11531 : 113 : case NE_EXPR:
11532 : 113 : {
11533 : 113 : tree _q20 = TREE_OPERAND (_p0, 0);
11534 : 113 : tree _q21 = TREE_OPERAND (_p0, 1);
11535 : 113 : if (integer_truep (_p1))
11536 : : {
11537 : 7 : {
11538 : 7 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11539 : 7 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR, EQ_EXPR);
11540 : 7 : if (res) return res;
11541 : : }
11542 : : }
11543 : : break;
11544 : : }
11545 : 62 : case GE_EXPR:
11546 : 62 : {
11547 : 62 : tree _q20 = TREE_OPERAND (_p0, 0);
11548 : 62 : tree _q21 = TREE_OPERAND (_p0, 1);
11549 : 62 : if (integer_truep (_p1))
11550 : : {
11551 : 0 : {
11552 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11553 : 0 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures, GE_EXPR, LT_EXPR, UNLT_EXPR);
11554 : 0 : if (res) return res;
11555 : : }
11556 : : }
11557 : 62 : if (integer_zerop (_q21))
11558 : : {
11559 : 26 : switch (TREE_CODE (_p1))
11560 : : {
11561 : 1 : case GE_EXPR:
11562 : 1 : {
11563 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
11564 : 1 : tree _q51 = TREE_OPERAND (_p1, 1);
11565 : 1 : if (integer_zerop (_q51))
11566 : : {
11567 : 1 : {
11568 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q50 };
11569 : 1 : tree res = generic_simplify_170 (loc, type, _p0, _p1, captures, GE_EXPR);
11570 : 1 : if (res) return res;
11571 : : }
11572 : : }
11573 : : break;
11574 : : }
11575 : 5 : case LT_EXPR:
11576 : 5 : {
11577 : 5 : tree _q50 = TREE_OPERAND (_p1, 0);
11578 : 5 : tree _q51 = TREE_OPERAND (_p1, 1);
11579 : 5 : if (integer_zerop (_q51))
11580 : : {
11581 : 5 : {
11582 : 5 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q50, _p0, _q20 };
11583 : 5 : tree res = generic_simplify_171 (loc, type, _p0, _p1, captures);
11584 : 5 : if (res) return res;
11585 : : }
11586 : : }
11587 : : break;
11588 : : }
11589 : : default:;
11590 : : }
11591 : : }
11592 : : break;
11593 : : }
11594 : 100 : case GT_EXPR:
11595 : 100 : {
11596 : 100 : tree _q20 = TREE_OPERAND (_p0, 0);
11597 : 100 : tree _q21 = TREE_OPERAND (_p0, 1);
11598 : 100 : if (integer_truep (_p1))
11599 : : {
11600 : 14 : {
11601 : 14 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11602 : 14 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR, UNLE_EXPR);
11603 : 14 : if (res) return res;
11604 : : }
11605 : : }
11606 : : break;
11607 : : }
11608 : 0 : case UNORDERED_EXPR:
11609 : 0 : {
11610 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11611 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11612 : 0 : if (integer_truep (_p1))
11613 : : {
11614 : 0 : {
11615 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11616 : 0 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures, UNORDERED_EXPR, ORDERED_EXPR, ORDERED_EXPR);
11617 : 0 : if (res) return res;
11618 : : }
11619 : : }
11620 : : break;
11621 : : }
11622 : 0 : case ORDERED_EXPR:
11623 : 0 : {
11624 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11625 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11626 : 0 : if (integer_truep (_p1))
11627 : : {
11628 : 0 : {
11629 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11630 : 0 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures, ORDERED_EXPR, UNORDERED_EXPR, UNORDERED_EXPR);
11631 : 0 : if (res) return res;
11632 : : }
11633 : : }
11634 : : break;
11635 : : }
11636 : 0 : case UNLT_EXPR:
11637 : 0 : {
11638 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11639 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11640 : 0 : if (integer_truep (_p1))
11641 : : {
11642 : 0 : {
11643 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11644 : 0 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures, UNLT_EXPR, GE_EXPR, GE_EXPR);
11645 : 0 : if (res) return res;
11646 : : }
11647 : : }
11648 : : break;
11649 : : }
11650 : 0 : case UNLE_EXPR:
11651 : 0 : {
11652 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11653 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11654 : 0 : if (integer_truep (_p1))
11655 : : {
11656 : 0 : {
11657 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11658 : 0 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures, UNLE_EXPR, GT_EXPR, GT_EXPR);
11659 : 0 : if (res) return res;
11660 : : }
11661 : : }
11662 : : break;
11663 : : }
11664 : 0 : case UNGT_EXPR:
11665 : 0 : {
11666 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11667 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11668 : 0 : if (integer_truep (_p1))
11669 : : {
11670 : 0 : {
11671 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11672 : 0 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures, UNGT_EXPR, LE_EXPR, LE_EXPR);
11673 : 0 : if (res) return res;
11674 : : }
11675 : : }
11676 : : break;
11677 : : }
11678 : 0 : case UNGE_EXPR:
11679 : 0 : {
11680 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11681 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11682 : 0 : if (integer_truep (_p1))
11683 : : {
11684 : 0 : {
11685 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11686 : 0 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures, UNGE_EXPR, LT_EXPR, LT_EXPR);
11687 : 0 : if (res) return res;
11688 : : }
11689 : : }
11690 : : break;
11691 : : }
11692 : 0 : case UNEQ_EXPR:
11693 : 0 : {
11694 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11695 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11696 : 0 : if (integer_truep (_p1))
11697 : : {
11698 : 0 : {
11699 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11700 : 0 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures, UNEQ_EXPR, LTGT_EXPR, LTGT_EXPR);
11701 : 0 : if (res) return res;
11702 : : }
11703 : : }
11704 : : break;
11705 : : }
11706 : 0 : case LTGT_EXPR:
11707 : 0 : {
11708 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11709 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11710 : 0 : if (integer_truep (_p1))
11711 : : {
11712 : 0 : {
11713 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11714 : 0 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures, LTGT_EXPR, UNEQ_EXPR, UNEQ_EXPR);
11715 : 0 : if (res) return res;
11716 : : }
11717 : : }
11718 : : break;
11719 : : }
11720 : 7 : case VEC_PERM_EXPR:
11721 : 7 : {
11722 : 7 : tree _q20 = TREE_OPERAND (_p0, 0);
11723 : 7 : tree _q21 = TREE_OPERAND (_p0, 1);
11724 : 7 : tree _q22 = TREE_OPERAND (_p0, 2);
11725 : 7 : if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
11726 : : {
11727 : 0 : switch (TREE_CODE (_p1))
11728 : : {
11729 : 0 : case VEC_PERM_EXPR:
11730 : 0 : {
11731 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
11732 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
11733 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
11734 : 0 : if ((_q61 == _q60 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q60, 0) && types_match (_q61, _q60)))
11735 : : {
11736 : 0 : if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
11737 : : {
11738 : 0 : {
11739 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q22, _q60 };
11740 : 0 : if (VECTOR_INTEGER_TYPE_P (type)
11741 : : )
11742 : : {
11743 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1478;
11744 : 0 : {
11745 : 0 : tree res_op0;
11746 : 0 : {
11747 : 0 : tree _o1[2], _r1;
11748 : 0 : _o1[0] = captures[0];
11749 : 0 : _o1[1] = captures[2];
11750 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11751 : 0 : captures[3] = _r1;
11752 : : }
11753 : 0 : res_op0 = unshare_expr (captures[3]);
11754 : 0 : tree res_op1;
11755 : 0 : res_op1 = captures[3];
11756 : 0 : tree res_op2;
11757 : 0 : res_op2 = captures[1];
11758 : 0 : tree _r;
11759 : 0 : _r = fold_build3_loc (loc, VEC_PERM_EXPR, type, res_op0, res_op1, res_op2);
11760 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 905, __FILE__, __LINE__, true);
11761 : 0 : return _r;
11762 : : }
11763 : 0 : next_after_fail1478:;
11764 : : }
11765 : : }
11766 : : }
11767 : : }
11768 : : break;
11769 : : }
11770 : : default:;
11771 : : }
11772 : : }
11773 : : break;
11774 : : }
11775 : 2939 : case CALL_EXPR:
11776 : 2939 : switch (get_call_combined_fn (_p0))
11777 : : {
11778 : 1 : case CFN_PARITY:
11779 : 1 : if (call_expr_nargs (_p0) == 1)
11780 : : {
11781 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11782 : 1 : switch (TREE_CODE (_p1))
11783 : : {
11784 : 1 : case CALL_EXPR:
11785 : 1 : switch (get_call_combined_fn (_p1))
11786 : : {
11787 : 1 : case CFN_PARITY:
11788 : 1 : if (call_expr_nargs (_p1) == 1)
11789 : : {
11790 : 1 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
11791 : 1 : {
11792 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
11793 : 1 : tree res = generic_simplify_172 (loc, type, _p0, _p1, captures, CFN_PARITY);
11794 : 1 : if (res) return res;
11795 : : }
11796 : : }
11797 : : break;
11798 : : default:;
11799 : : }
11800 : : break;
11801 : : default:;
11802 : : }
11803 : : }
11804 : : break;
11805 : 1 : case CFN_BUILT_IN_PARITYL:
11806 : 1 : if (call_expr_nargs (_p0) == 1)
11807 : : {
11808 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11809 : 1 : switch (TREE_CODE (_p1))
11810 : : {
11811 : 1 : case CALL_EXPR:
11812 : 1 : switch (get_call_combined_fn (_p1))
11813 : : {
11814 : 1 : case CFN_BUILT_IN_PARITYL:
11815 : 1 : if (call_expr_nargs (_p1) == 1)
11816 : : {
11817 : 1 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
11818 : 1 : {
11819 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
11820 : 1 : tree res = generic_simplify_172 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_PARITYL);
11821 : 1 : if (res) return res;
11822 : : }
11823 : : }
11824 : : break;
11825 : : default:;
11826 : : }
11827 : : break;
11828 : : default:;
11829 : : }
11830 : : }
11831 : : break;
11832 : 0 : case CFN_BUILT_IN_PARITYIMAX:
11833 : 0 : if (call_expr_nargs (_p0) == 1)
11834 : : {
11835 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11836 : 0 : switch (TREE_CODE (_p1))
11837 : : {
11838 : 0 : case CALL_EXPR:
11839 : 0 : switch (get_call_combined_fn (_p1))
11840 : : {
11841 : 0 : case CFN_BUILT_IN_PARITYIMAX:
11842 : 0 : if (call_expr_nargs (_p1) == 1)
11843 : : {
11844 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
11845 : 0 : {
11846 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
11847 : 0 : tree res = generic_simplify_172 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_PARITYIMAX);
11848 : 0 : if (res) return res;
11849 : : }
11850 : : }
11851 : : break;
11852 : : default:;
11853 : : }
11854 : : break;
11855 : : default:;
11856 : : }
11857 : : }
11858 : : break;
11859 : 1 : case CFN_BUILT_IN_PARITY:
11860 : 1 : if (call_expr_nargs (_p0) == 1)
11861 : : {
11862 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11863 : 1 : switch (TREE_CODE (_p1))
11864 : : {
11865 : 1 : case CALL_EXPR:
11866 : 1 : switch (get_call_combined_fn (_p1))
11867 : : {
11868 : 1 : case CFN_BUILT_IN_PARITY:
11869 : 1 : if (call_expr_nargs (_p1) == 1)
11870 : : {
11871 : 1 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
11872 : 1 : {
11873 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
11874 : 1 : tree res = generic_simplify_172 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_PARITY);
11875 : 1 : if (res) return res;
11876 : : }
11877 : : }
11878 : : break;
11879 : : default:;
11880 : : }
11881 : : break;
11882 : : default:;
11883 : : }
11884 : : }
11885 : : break;
11886 : 8 : case CFN_BUILT_IN_PARITYLL:
11887 : 8 : if (call_expr_nargs (_p0) == 1)
11888 : : {
11889 : 8 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11890 : 8 : switch (TREE_CODE (_p1))
11891 : : {
11892 : 8 : case CALL_EXPR:
11893 : 8 : switch (get_call_combined_fn (_p1))
11894 : : {
11895 : 8 : case CFN_BUILT_IN_PARITYLL:
11896 : 8 : if (call_expr_nargs (_p1) == 1)
11897 : : {
11898 : 8 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
11899 : 8 : {
11900 : 8 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
11901 : 8 : tree res = generic_simplify_172 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_PARITYLL);
11902 : 8 : if (res) return res;
11903 : : }
11904 : : }
11905 : : break;
11906 : : default:;
11907 : : }
11908 : : break;
11909 : : default:;
11910 : : }
11911 : : }
11912 : : break;
11913 : : default:;
11914 : : }
11915 : : break;
11916 : : default:;
11917 : : }
11918 : : return NULL_TREE;
11919 : : }
11920 : :
11921 : : tree
11922 : 27833796 : generic_simplify (location_t loc, enum tree_code code, const tree type ATTRIBUTE_UNUSED, tree _p0, tree _p1, tree _p2)
11923 : : {
11924 : 27833796 : switch (code)
11925 : : {
11926 : 11396006 : case COND_EXPR:
11927 : 11396006 : return generic_simplify_COND_EXPR (loc, code, type, _p0, _p1, _p2);
11928 : 311519 : case VEC_COND_EXPR:
11929 : 311519 : return generic_simplify_VEC_COND_EXPR (loc, code, type, _p0, _p1, _p2);
11930 : 640530 : case BIT_FIELD_REF:
11931 : 640530 : return generic_simplify_BIT_FIELD_REF (loc, code, type, _p0, _p1, _p2);
11932 : 13691 : case BIT_INSERT_EXPR:
11933 : 13691 : return generic_simplify_BIT_INSERT_EXPR (loc, code, type, _p0, _p1, _p2);
11934 : 708838 : case VEC_PERM_EXPR:
11935 : 708838 : return generic_simplify_VEC_PERM_EXPR (loc, code, type, _p0, _p1, _p2);
11936 : : default:;
11937 : : }
11938 : : return NULL_TREE;
11939 : : }
11940 : :
11941 : : tree
11942 : 0 : generic_simplify (location_t, enum tree_code,
11943 : : const tree, tree, tree, tree, tree)
11944 : : {
11945 : 0 : return NULL_TREE;
11946 : : }
11947 : :
11948 : : tree
11949 : 0 : generic_simplify (location_t, enum tree_code,
11950 : : const tree, tree, tree, tree, tree, tree)
11951 : : {
11952 : 0 : return NULL_TREE;
11953 : : }
11954 : :
11955 : : tree
11956 : 0 : generic_simplify (location_t, enum tree_code,
11957 : : const tree, tree, tree, tree, tree, tree, tree)
11958 : : {
11959 : 0 : return NULL_TREE;
11960 : : }
11961 : :
11962 : : tree
11963 : 0 : generic_simplify (location_t, enum tree_code,
11964 : : const tree, tree, tree, tree, tree, tree, tree, tree)
11965 : : {
11966 : 0 : return NULL_TREE;
11967 : : }
11968 : : void
11969 : 19367 : generic_dump_logs (const char *file1, int line1_id, const char *file2, int line2, bool simplify)
11970 : : {
11971 : 19367 : static int dbg_line_numbers[1117] = {
11972 : : /* 0 */ 161, 164, 173, 175, 178, 181, 183, 189, 197, 195,
11973 : : /* 10 */ 199, 201, 938, 940, 2079, 2085, 2087, 2090, 2095, 2098,
11974 : : /* 20 */ 2323, 2327, 2329, 2331, 2333, 2335, 2337, 2339, 2366, 2382,
11975 : : /* 30 */ 2390, 2372, 2930, 2932, 2934, 2941, 2938, 2948, 2950, 2957,
11976 : : /* 40 */ 2954, 3165, 3175, 3186, 3191, 3196, 3229, 3234, 3200, 3204,
11977 : : /* 50 */ 3208, 3258, 3212, 3240, 3246, 3252, 3216, 3275, 3279, 3304,
11978 : : /* 60 */ 3310, 3332, 3316, 3345, 3284, 3288, 3298, 3292, 3349, 3365,
11979 : : /* 70 */ 3400, 3377, 3418, 3425, 3477, 3434, 3505, 3452, 3443, 3468,
11980 : : /* 80 */ 3462, 3488, 3518, 3527, 3536, 3545, 3555, 3588, 5808, 9028,
11981 : : /* 90 */ 9049, 11225, 11228, 11233, 11448, 11455, 11474, 11499, 11567, 11524,
11982 : : /* 100 */ 11537, 11551, 11581, 11586, 8848, 254, 281, 282, 493, 1307,
11983 : : /* 110 */ 1443, 1779, 1829, 1834, 1938, 1897, 4140, 4078, 2445, 2477,
11984 : : /* 120 */ 4183, 4184, 4188, 4189, 4199, 4203, 4207, 4222, 4225, 4229,
11985 : : /* 130 */ 4155, 4158, 4163, 4310, 4316, 4322, 4504, 4505, 4531, 4550,
11986 : : /* 140 */ 4569, 4912, 5707, 6966, 7051, 7053, 8476, 8551, 10154, 10202,
11987 : : /* 150 */ 10216, 11252, 11674, 922, 928, 1423, 1432, 1915, 1906, 1853,
11988 : : /* 160 */ 2594, 4091, 4131, 4136, 4137, 4145, 4146, 4149, 4166, 4241,
11989 : : /* 170 */ 4244, 4248, 4330, 4352, 4390, 4401, 4440, 4455, 4918, 6976,
11990 : : /* 180 */ 8556, 10212, 11256, 1313, 1317, 1409, 1418, 1448, 1453, 1495,
11991 : : /* 190 */ 1480, 1487, 1510, 1511, 1515, 1516, 1537, 1992, 1542, 1549,
11992 : : /* 200 */ 1569, 1672, 1696, 1786, 1791, 1801, 1811, 1925, 1984, 2012,
11993 : : /* 210 */ 2022, 2024, 2237, 2256, 2264, 2269, 2274, 2290, 2280, 2281,
11994 : : /* 220 */ 4626, 4639, 4649, 2304, 2315, 2318, 2350, 2428, 2457, 2459,
11995 : : /* 230 */ 2464, 2466, 2587, 3007, 3009, 3664, 3679, 3697, 3897, 3898,
11996 : : /* 240 */ 3899, 3907, 3915, 3924, 3933, 3965, 3966, 3971, 3972, 3977,
11997 : : /* 250 */ 3982, 3986, 4041, 4055, 3669, 3688, 3690, 3674, 4663, 4675,
11998 : : /* 260 */ 7639, 9425, 1458, 1463, 1574, 1579, 1796, 1886, 1806, 1950,
11999 : : /* 270 */ 1816, 1821, 1944, 1996, 1957, 1963, 2568, 1970, 2030, 4924,
12000 : : /* 280 */ 7035, 7037, 7102, 7110, 10299, 10305, 461, 467, 499, 1252,
12001 : : /* 290 */ 1272, 1277, 2071, 2072, 2109, 2603, 5417, 5693, 5700, 5750,
12002 : : /* 300 */ 5753, 5803, 8469, 8883, 8713, 8720, 8877, 8922, 8927, 329,
12003 : : /* 310 */ 885, 2355, 2582, 2621, 2631, 2670, 2676, 2679, 2684, 2849,
12004 : : /* 320 */ 2700, 2702, 2703, 2706, 2708, 2709, 2711, 2713, 2715, 2717,
12005 : : /* 330 */ 2719, 2721, 2735, 2736, 2770, 2855, 2880, 2796, 2823, 2863,
12006 : : /* 340 */ 2868, 2893, 2900, 2966, 4013, 4854, 4862, 4865, 4871, 4874,
12007 : : /* 350 */ 4901, 5209, 5210, 5244, 5248, 5377, 5217, 5218, 5262, 5265,
12008 : : /* 360 */ 5266, 5271, 5274, 5277, 5278, 5230, 5233, 5450, 5454, 5459,
12009 : : /* 370 */ 5718, 5870, 5874, 7062, 7078, 7080, 7092, 7122, 7128, 7129,
12010 : : /* 380 */ 7144, 7145, 7149, 7167, 7172, 7204, 7212, 7222, 7231, 7235,
12011 : : /* 390 */ 7241, 7248, 7264, 7268, 7272, 7279, 7280, 7285, 7286, 7293,
12012 : : /* 400 */ 7294, 7296, 7297, 7313, 7324, 7336, 7340, 7342, 7347, 7350,
12013 : : /* 410 */ 7353, 7361, 7423, 7424, 7428, 7429, 7436, 7440, 7444, 7447,
12014 : : /* 420 */ 7453, 7454, 7458, 7461, 7468, 7488, 7491, 7494, 7497, 7546,
12015 : : /* 430 */ 7549, 7553, 7560, 7566, 7574, 7583, 7584, 7682, 7692, 7731,
12016 : : /* 440 */ 7737, 7753, 7766, 7768, 7770, 7796, 7838, 7817, 7818, 7825,
12017 : : /* 450 */ 7827, 7843, 7849, 7854, 7863, 7869, 7875, 7880, 7885, 7917,
12018 : : /* 460 */ 7980, 7899, 7909, 8018, 8020, 8022, 8024, 8026, 8028, 8032,
12019 : : /* 470 */ 8034, 8057, 8080, 8192, 8199, 8200, 8208, 8209, 8389, 9469,
12020 : : /* 480 */ 9471, 9559, 9561, 9562, 9568, 9584, 9586, 9588, 9606, 9607,
12021 : : /* 490 */ 9939, 9942, 9956, 9965, 10029, 10030, 10084, 10086, 10162, 10571,
12022 : : /* 500 */ 10573, 10575, 11007, 7058, 7069, 7071, 7179, 473, 1225, 1246,
12023 : : /* 510 */ 8833, 8838, 8843, 533, 534, 545, 550, 557, 566, 574,
12024 : : /* 520 */ 583, 629, 632, 820, 973, 999, 1030, 594, 850, 854,
12025 : : /* 530 */ 859, 865, 869, 877, 965, 745, 755, 757, 759, 8463,
12026 : : /* 540 */ 8888, 8910, 8893, 8898, 8903, 8917, 8951, 8956, 807, 810,
12027 : : /* 550 */ 1647, 2644, 2647, 2744, 2756, 2838, 2782, 2809, 2921, 2924,
12028 : : /* 560 */ 4892, 4884, 7000, 8319, 7596, 7599, 7625, 7626, 8105, 8107,
12029 : : /* 570 */ 8109, 8111, 8115, 8117, 8119, 8121, 8125, 8130, 8137, 8142,
12030 : : /* 580 */ 8162, 8164, 8166, 8168, 8332, 8340, 8350, 8358, 8368, 8490,
12031 : : /* 590 */ 8492, 9483, 9502, 9542, 10007, 10009, 10010, 10065, 10068, 10070,
12032 : : /* 600 */ 2660, 6990, 7669, 8564, 8569, 10592, 10594, 10596, 10598, 10602,
12033 : : /* 610 */ 911, 947, 1297, 5030, 5100, 5103, 5111, 5178, 5180, 5181,
12034 : : /* 620 */ 5182, 5389, 5081, 5090, 5924, 5927, 5928, 5936, 2248, 4024,
12035 : : /* 630 */ 4029, 4796, 9308, 9310, 9341, 9376, 11618, 1189, 8781, 8802,
12036 : : /* 640 */ 1198, 8525, 8531, 8828, 9255, 1212, 1216, 8823, 9006, 1391,
12037 : : /* 650 */ 1475, 1523, 1468, 1500, 1531, 1564, 1605, 1616, 1627, 1639,
12038 : : /* 660 */ 2489, 1868, 1876, 1881, 2004, 2345, 2609, 3161, 5348, 5366,
12039 : : /* 670 */ 5367, 5895, 5901, 5949, 3634, 3636, 3646, 3648, 3755, 3756,
12040 : : /* 680 */ 3757, 3765, 3773, 3782, 3791, 3825, 3826, 3831, 3832, 3837,
12041 : : /* 690 */ 3842, 3846, 3654, 3659, 3704, 7194, 7642, 9411, 9413, 10197,
12042 : : /* 700 */ 1554, 1559, 2547, 1727, 2552, 5428, 2527, 2558, 2562, 5442,
12043 : : /* 710 */ 4839, 7027, 7029, 2116, 2154, 2177, 2178, 2532, 4116, 9882,
12044 : : /* 720 */ 3625, 4954, 4997, 5010, 6441, 6443, 6445, 6655, 6659, 6667,
12045 : : /* 730 */ 6694, 6696, 6545, 6548, 6710, 6714, 6772, 4942, 4961, 4968,
12046 : : /* 740 */ 4974, 4980, 4986, 6778, 6910, 9442, 9443, 6920, 10359, 10367,
12047 : : /* 750 */ 7933, 7934, 7948, 7949, 4682, 4686, 4696, 4714, 4779, 4781,
12048 : : /* 760 */ 4783, 4785, 4834, 9433, 4700, 4707, 4692, 4806, 4815, 4818,
12049 : : /* 770 */ 5017, 5150, 5160, 8418, 8421, 8440, 5846, 5858, 5861, 5865,
12050 : : /* 780 */ 10801, 10807, 10815, 10821, 10830, 10836, 10844, 10850, 10896, 10904,
12051 : : /* 790 */ 8224, 7187, 7183, 8399, 8406, 8541, 8546, 8647, 8744, 8761,
12052 : : /* 800 */ 8793, 8813, 8818, 9069, 9046, 9025, 8854, 8858, 9149, 9159,
12053 : : /* 810 */ 9166, 9175, 9193, 9200, 9181, 9448, 9454, 9872, 9878, 9875,
12054 : : /* 820 */ 9886, 9892, 9900, 9906, 9914, 9920, 9974, 10177, 10192, 10458,
12055 : : /* 830 */ 10461, 10266, 10280, 10293, 10977, 10991, 11082, 11083, 219, 2036,
12056 : : /* 840 */ 2046, 5981, 2055, 1139, 2500, 3142, 5470, 5472, 5482, 5574,
12057 : : /* 850 */ 5585, 5598, 5621, 5631, 5640, 5652, 5678, 5989, 6395, 1724,
12058 : : /* 860 */ 1738, 1745, 1767, 1774, 2360, 2575, 2041, 2050, 2059, 2125,
12059 : : /* 870 */ 2129, 2160, 2166, 4103, 6953, 4111, 9896, 9910, 9924, 5487,
12060 : : /* 880 */ 5496, 5508, 5518, 5524, 5998, 5533, 5530, 5816, 5824, 5832,
12061 : : /* 890 */ 5836, 5819, 5827, 5840, 5852, 237, 727, 2413, 4761, 5765,
12062 : : /* 900 */ 5771, 5773, 6016, 6036, 6045, 11633, 3014, 3018, 242, 3035,
12063 : : /* 910 */ 3039, 3070, 3078, 3051, 3065, 260, 297, 1427, 1733, 1841,
12064 : : /* 920 */ 1848, 1858, 1863, 2135, 3086, 3098, 3092, 3104, 2146, 2765,
12065 : : /* 930 */ 2790, 2817, 2801, 2828, 4364, 4336, 4411, 4420, 4463, 4474,
12066 : : /* 940 */ 5778, 5789, 11599, 11600, 1652, 1657, 6025, 7632, 10955, 10959,
12067 : : /* 950 */ 1680, 1685, 2540, 4001, 247, 300, 2774, 3111, 3118, 3125,
12068 : : /* 960 */ 3131, 4373, 3136, 4429, 4477, 4486, 5781, 373, 304, 341,
12069 : : /* 970 */ 350, 358, 432, 447, 455, 646, 686, 982, 1177, 1182,
12070 : : /* 980 */ 1280, 1283, 1383, 2403, 5794, 8498, 8504, 8695, 8945, 2520,
12071 : : /* 990 */ 6202, 6210, 7699, 8256, 8299, 8300, 2510, 8250, 609, 612,
12072 : : /* 1000 */ 736, 765, 771, 777, 785, 790, 795, 838, 842, 8510,
12073 : : /* 1010 */ 8516, 8174, 896, 1338, 5046, 1327, 1330, 1362, 1373, 5023,
12074 : : /* 1020 */ 5095, 5188, 1397, 1586, 1662, 1690, 2295, 5194, 5195, 7636,
12075 : : /* 1030 */ 11606, 4721, 4725, 4753, 4754, 4827, 4732, 4736, 4744, 4745,
12076 : : /* 1040 */ 5132, 5813, 8232, 8234, 8241, 8243, 7191, 6674, 6679, 6747,
12077 : : /* 1050 */ 6753, 6762, 6763, 4930, 5967, 5969, 6785, 6791, 6794, 6803,
12078 : : /* 1060 */ 6807, 6812, 6841, 6846, 6907, 6854, 6859, 6917, 7963, 7965,
12079 : : /* 1070 */ 6876, 6877, 6878, 6928, 6897, 6898, 6899, 6940, 6941, 7994,
12080 : : /* 1080 */ 7999, 6820, 5973, 5975, 6221, 6223, 9614, 9620, 9625, 9634,
12081 : : /* 1090 */ 9636, 9656, 9701, 9704, 9705, 9737, 9743, 9745, 9746, 9802,
12082 : : /* 1100 */ 9803, 9824, 9829, 9834, 9864, 11106, 11108, 11143, 11217, 11220,
12083 : : /* 1110 */ 11305, 11240, 11246, 11374, 11376, 11438, 11440
12084 : : };
12085 : :
12086 : 28983 : fprintf (dump_file, "%s %s:%d, %s:%d\n",
12087 : : simplify ? "Applying pattern" : "Matching expression", file1, dbg_line_numbers[line1_id], file2, line2);
12088 : 19367 : }
12089 : :
12090 : : #pragma GCC diagnostic pop
|