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 : 93482726 : tree_bit_xor_cst (tree t, tree *res_ops)
11 : : {
12 : 93482726 : const tree type = TREE_TYPE (t);
13 : 93482726 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
14 : 93482726 : if (TREE_SIDE_EFFECTS (t)) return false;
15 : 93482726 : switch (TREE_CODE (t))
16 : : {
17 : 34994 : case BIT_XOR_EXPR:
18 : 34994 : {
19 : 34994 : tree _p0 = TREE_OPERAND (t, 0);
20 : 34994 : tree _p1 = TREE_OPERAND (t, 1);
21 : 34994 : if (uniform_integer_cst_p (_p1))
22 : : {
23 : 1587 : {
24 : 1587 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
25 : 1587 : {
26 : 1587 : res_ops[0] = captures[0];
27 : 1587 : res_ops[1] = captures[1];
28 : 1587 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 4, __FILE__, __LINE__, false);
29 : 1587 : return true;
30 : : }
31 : : }
32 : : }
33 : : break;
34 : : }
35 : : default:;
36 : : }
37 : : return false;
38 : : }
39 : :
40 : : bool
41 : 71850817 : tree_with_possible_nonzero_bits_1 (tree t)
42 : : {
43 : 71850817 : const tree type = TREE_TYPE (t);
44 : 71850817 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
45 : 71850817 : if (TREE_SIDE_EFFECTS (t)) return false;
46 : 71850817 : switch (TREE_CODE (t))
47 : : {
48 : 16803646 : case INTEGER_CST:
49 : 16803646 : {
50 : 16803646 : {
51 : 16803646 : tree captures[1] ATTRIBUTE_UNUSED = { t };
52 : 16803646 : {
53 : 16803646 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 32, __FILE__, __LINE__, false);
54 : 16803646 : return true;
55 : : }
56 : : }
57 : 0 : break;
58 : : }
59 : 0 : case POLY_INT_CST:
60 : 0 : {
61 : 0 : {
62 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { t };
63 : 0 : {
64 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 33, __FILE__, __LINE__, false);
65 : 0 : return true;
66 : : }
67 : : }
68 : 26254157 : break;
69 : : }
70 : 26254157 : case SSA_NAME:
71 : 26254157 : {
72 : 26254157 : {
73 : 26254157 : tree captures[1] ATTRIBUTE_UNUSED = { t };
74 : 26254157 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])) || POINTER_TYPE_P (TREE_TYPE (captures[0]))
75 : : )
76 : : {
77 : 25750507 : {
78 : 25750507 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 34, __FILE__, __LINE__, false);
79 : 25750507 : return true;
80 : : }
81 : : }
82 : : }
83 : : break;
84 : : }
85 : : default:;
86 : : }
87 : : return false;
88 : : }
89 : :
90 : : bool
91 : 1479 : tree_max_value (tree t)
92 : : {
93 : 1479 : const tree type = TREE_TYPE (t);
94 : 1479 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
95 : 1479 : if (TREE_SIDE_EFFECTS (t)) return false;
96 : 1471 : if (uniform_integer_cst_p (t))
97 : : {
98 : 1229 : {
99 : 1229 : {
100 : 1229 : tree int_cst = uniform_integer_cst_p (t);
101 : 1229 : tree itype = TREE_TYPE (int_cst);
102 : 2458 : if ((INTEGRAL_TYPE_P (itype)
103 : 19 : || POINTER_TYPE_P (itype))
104 : 2475 : && wi::eq_p (wi::to_wide (int_cst), wi::max_value (itype))
105 : : )
106 : : {
107 : 24 : {
108 : 24 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 42, __FILE__, __LINE__, false);
109 : 24 : return true;
110 : : }
111 : : }
112 : : }
113 : : }
114 : : }
115 : : return false;
116 : : }
117 : :
118 : : bool
119 : 0 : tree_unsigned_integer_sat_mul (tree t, tree *res_ops)
120 : : {
121 : 0 : const tree type = TREE_TYPE (t);
122 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
123 : 0 : if (TREE_SIDE_EFFECTS (t)) return false;
124 : 0 : switch (TREE_CODE (t))
125 : : {
126 : 0 : CASE_CONVERT:
127 : 0 : {
128 : 0 : tree _p0 = TREE_OPERAND (t, 0);
129 : 0 : switch (TREE_CODE (_p0))
130 : : {
131 : 0 : case MIN_EXPR:
132 : 0 : {
133 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
134 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
135 : 0 : switch (TREE_CODE (_q20))
136 : : {
137 : 0 : case WIDEN_MULT_EXPR:
138 : 0 : {
139 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
140 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
141 : 0 : switch (TREE_CODE (_q30))
142 : : {
143 : 0 : CASE_CONVERT:
144 : 0 : {
145 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
146 : 0 : switch (TREE_CODE (_q40))
147 : : {
148 : 0 : CASE_CONVERT:
149 : 0 : {
150 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
151 : 0 : switch (TREE_CODE (_q31))
152 : : {
153 : 0 : CASE_CONVERT:
154 : 0 : {
155 : 0 : tree _q70 = TREE_OPERAND (_q31, 0);
156 : 0 : switch (TREE_CODE (_q70))
157 : : {
158 : 0 : CASE_CONVERT:
159 : 0 : {
160 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
161 : 0 : switch (TREE_CODE (_q21))
162 : : {
163 : 0 : case INTEGER_CST:
164 : 0 : {
165 : 0 : {
166 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _q50, _q80, t, _q20, _q30, _q31, _q21 };
167 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
168 : : )
169 : : {
170 : 0 : if (types_match (type, captures[0], captures[1]) && types_match (type, captures[2])
171 : : )
172 : : {
173 : 0 : {
174 : 0 : unsigned prec = TYPE_PRECISION (type);
175 : 0 : unsigned widen_prec = TYPE_PRECISION (TREE_TYPE (captures[3]));
176 : 0 : unsigned cvt5_prec = TYPE_PRECISION (TREE_TYPE (captures[4]));
177 : 0 : unsigned cvt6_prec = TYPE_PRECISION (TREE_TYPE (captures[5]));
178 : 0 : unsigned hw_int_prec = sizeof (HOST_WIDE_INT) * 8;
179 : 0 : wide_int c2 = wi::to_wide (captures[6]);
180 : 0 : wide_int max = wi::mask (prec, false, widen_prec);
181 : 0 : bool c2_is_max_p = wi::eq_p (c2, max);
182 : 0 : bool widen_mult_p = cvt5_prec == cvt6_prec && hw_int_prec == cvt5_prec;
183 : 0 : if (widen_prec > prec && c2_is_max_p && widen_mult_p
184 : : )
185 : : {
186 : 0 : {
187 : 0 : res_ops[0] = captures[0];
188 : 0 : res_ops[1] = captures[1];
189 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 87, __FILE__, __LINE__, false);
190 : 0 : return true;
191 : : }
192 : : }
193 : 0 : }
194 : : }
195 : : }
196 : : }
197 : 0 : {
198 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _q80, _q50, t, _q20, _q31, _q30, _q21 };
199 : 0 : if (INTEGRAL_TYPE_P (type) && TYPE_UNSIGNED (type)
200 : : )
201 : : {
202 : 0 : if (types_match (type, captures[0], captures[1]) && types_match (type, captures[2])
203 : : )
204 : : {
205 : 0 : {
206 : 0 : unsigned prec = TYPE_PRECISION (type);
207 : 0 : unsigned widen_prec = TYPE_PRECISION (TREE_TYPE (captures[3]));
208 : 0 : unsigned cvt5_prec = TYPE_PRECISION (TREE_TYPE (captures[4]));
209 : 0 : unsigned cvt6_prec = TYPE_PRECISION (TREE_TYPE (captures[5]));
210 : 0 : unsigned hw_int_prec = sizeof (HOST_WIDE_INT) * 8;
211 : 0 : wide_int c2 = wi::to_wide (captures[6]);
212 : 0 : wide_int max = wi::mask (prec, false, widen_prec);
213 : 0 : bool c2_is_max_p = wi::eq_p (c2, max);
214 : 0 : bool widen_mult_p = cvt5_prec == cvt6_prec && hw_int_prec == cvt5_prec;
215 : 0 : if (widen_prec > prec && c2_is_max_p && widen_mult_p
216 : : )
217 : : {
218 : 0 : {
219 : 0 : res_ops[0] = captures[0];
220 : 0 : res_ops[1] = captures[1];
221 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 87, __FILE__, __LINE__, false);
222 : 0 : return true;
223 : : }
224 : : }
225 : 0 : }
226 : : }
227 : : }
228 : : }
229 : 0 : break;
230 : : }
231 : : default:;
232 : : }
233 : : break;
234 : : }
235 : : default:;
236 : : }
237 : : break;
238 : : }
239 : : default:;
240 : : }
241 : : break;
242 : : }
243 : : default:;
244 : : }
245 : : break;
246 : : }
247 : : default:;
248 : : }
249 : : break;
250 : : }
251 : : default:;
252 : : }
253 : : break;
254 : : }
255 : : default:;
256 : : }
257 : : break;
258 : : }
259 : : default:;
260 : : }
261 : : return false;
262 : : }
263 : :
264 : : bool
265 : 0 : tree_double_value_p (tree t)
266 : : {
267 : 0 : const tree type = TREE_TYPE (t);
268 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
269 : 0 : if (TREE_SIDE_EFFECTS (t)) return false;
270 : 0 : {
271 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { t };
272 : 0 : if (TYPE_MAIN_VARIANT (TREE_TYPE (captures[0])) == double_type_node
273 : : )
274 : : {
275 : 0 : {
276 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 89, __FILE__, __LINE__, false);
277 : 0 : return true;
278 : : }
279 : : }
280 : : }
281 : : return false;
282 : : }
283 : :
284 : : bool
285 : 0 : tree_ctz_table_index (tree t, tree *res_ops)
286 : : {
287 : 0 : const tree type = TREE_TYPE (t);
288 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
289 : 0 : if (TREE_SIDE_EFFECTS (t)) return false;
290 : 0 : switch (TREE_CODE (t))
291 : : {
292 : 0 : case RSHIFT_EXPR:
293 : 0 : {
294 : 0 : tree _p0 = TREE_OPERAND (t, 0);
295 : 0 : tree _p1 = TREE_OPERAND (t, 1);
296 : 0 : switch (TREE_CODE (_p0))
297 : : {
298 : 0 : case MULT_EXPR:
299 : 0 : {
300 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
301 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
302 : 0 : switch (TREE_CODE (_q20))
303 : : {
304 : 0 : case BIT_AND_EXPR:
305 : 0 : {
306 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
307 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
308 : 0 : switch (TREE_CODE (_q30))
309 : : {
310 : 0 : case NEGATE_EXPR:
311 : 0 : {
312 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
313 : 0 : if ((_q31 == _q40 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _q40, 0) && types_match (_q31, _q40)))
314 : : {
315 : 0 : switch (TREE_CODE (_q21))
316 : : {
317 : 0 : case INTEGER_CST:
318 : 0 : {
319 : 0 : switch (TREE_CODE (_p1))
320 : : {
321 : 0 : case INTEGER_CST:
322 : 0 : {
323 : 0 : {
324 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q21, _p1 };
325 : 0 : {
326 : 0 : res_ops[0] = captures[0];
327 : 0 : res_ops[1] = captures[1];
328 : 0 : res_ops[2] = captures[2];
329 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 94, __FILE__, __LINE__, false);
330 : 0 : return true;
331 : : }
332 : : }
333 : : break;
334 : : }
335 : : default:;
336 : : }
337 : : break;
338 : : }
339 : : default:;
340 : : }
341 : : }
342 : : break;
343 : : }
344 : 0 : default:;
345 : : }
346 : 0 : switch (TREE_CODE (_q31))
347 : : {
348 : 0 : case NEGATE_EXPR:
349 : 0 : {
350 : 0 : tree _q50 = TREE_OPERAND (_q31, 0);
351 : 0 : if ((_q50 == _q30 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q30, 0) && types_match (_q50, _q30)))
352 : : {
353 : 0 : switch (TREE_CODE (_q21))
354 : : {
355 : 0 : case INTEGER_CST:
356 : 0 : {
357 : 0 : switch (TREE_CODE (_p1))
358 : : {
359 : 0 : case INTEGER_CST:
360 : 0 : {
361 : 0 : {
362 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q21, _p1 };
363 : 0 : {
364 : 0 : res_ops[0] = captures[0];
365 : 0 : res_ops[1] = captures[1];
366 : 0 : res_ops[2] = captures[2];
367 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 94, __FILE__, __LINE__, false);
368 : 0 : return true;
369 : : }
370 : : }
371 : : break;
372 : : }
373 : : default:;
374 : : }
375 : : break;
376 : : }
377 : : default:;
378 : : }
379 : : }
380 : : break;
381 : : }
382 : : default:;
383 : : }
384 : : break;
385 : : }
386 : : default:;
387 : : }
388 : : break;
389 : : }
390 : : default:;
391 : : }
392 : : break;
393 : : }
394 : : default:;
395 : : }
396 : : return false;
397 : : }
398 : :
399 : : tree
400 : 1 : generic_simplify_1 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
401 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
402 : : const combined_fn ARG_UNUSED (COPYSIGN_ALL))
403 : : {
404 : 1 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
405 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail228;
406 : 1 : {
407 : 1 : tree res_op0;
408 : 1 : res_op0 = captures[0];
409 : 1 : tree _r;
410 : 1 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
411 : 1 : if (TREE_SIDE_EFFECTS (captures[1]))
412 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
413 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 104, __FILE__, __LINE__, true);
414 : : return _r;
415 : : }
416 : 0 : next_after_fail228:;
417 : 0 : return NULL_TREE;
418 : : }
419 : :
420 : : tree
421 : 5257 : generic_simplify_2 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
422 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
423 : : {
424 : 5257 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
425 : 5257 : if (fold_real_zero_addition_p (type, captures[0], captures[1], 0)
426 : : )
427 : : {
428 : 94 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail229;
429 : 94 : {
430 : 94 : tree res_op0;
431 : 94 : res_op0 = captures[0];
432 : 94 : tree _r;
433 : 94 : _r = non_lvalue_loc (loc, res_op0);
434 : 94 : if (TREE_SIDE_EFFECTS (captures[1]))
435 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
436 : 94 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 105, __FILE__, __LINE__, true);
437 : 94 : return _r;
438 : : }
439 : 0 : next_after_fail229:;
440 : : }
441 : : return NULL_TREE;
442 : : }
443 : :
444 : : tree
445 : 316 : generic_simplify_3 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
446 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
447 : : const enum tree_code ARG_UNUSED (outer_op),
448 : : const enum tree_code ARG_UNUSED (inner_op))
449 : : {
450 : 316 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
451 : 316 : if (real_zerop (captures[2])
452 : 34 : && real_zerop (captures[3])
453 : 350 : && !HONOR_SIGN_DEPENDENT_ROUNDING (type)
454 : : )
455 : : {
456 : 10 : {
457 : 10 : bool inner_plus = ((inner_op == PLUS_EXPR)
458 : 10 : ^ REAL_VALUE_MINUS_ZERO (TREE_REAL_CST (captures[2])));
459 : 10 : bool outer_plus
460 : 10 : = ((outer_op == PLUS_EXPR)
461 : 10 : ^ REAL_VALUE_MINUS_ZERO (TREE_REAL_CST (captures[3])));
462 : 10 : if (outer_plus && !inner_plus
463 : : )
464 : : {
465 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail230;
466 : 2 : {
467 : 2 : tree res_op0;
468 : 2 : res_op0 = captures[1];
469 : 2 : tree res_op1;
470 : 2 : res_op1 = captures[3];
471 : 2 : tree _r;
472 : 2 : _r = fold_build2_loc (loc, outer_op, type, res_op0, res_op1);
473 : 2 : if (TREE_SIDE_EFFECTS (captures[2]))
474 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
475 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 106, __FILE__, __LINE__, true);
476 : 2 : return _r;
477 : : }
478 : 0 : next_after_fail230:;
479 : : }
480 : : else
481 : : {
482 : 8 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail231;
483 : 8 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail231;
484 : 8 : {
485 : 8 : tree _r;
486 : 8 : _r = captures[0];
487 : 8 : if (TREE_SIDE_EFFECTS (captures[3]))
488 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
489 : 8 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 107, __FILE__, __LINE__, true);
490 : 8 : return _r;
491 : : }
492 : : next_after_fail231:;
493 : : }
494 : : }
495 : : }
496 : : return NULL_TREE;
497 : : }
498 : :
499 : : tree
500 : 66 : generic_simplify_4 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
501 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
502 : : {
503 : 66 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
504 : 66 : if (ANY_INTEGRAL_TYPE_P (type) && TYPE_OVERFLOW_UNDEFINED (type)
505 : : )
506 : : {
507 : 66 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail232;
508 : 66 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail232;
509 : 66 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail232;
510 : 66 : {
511 : 66 : tree res_op0;
512 : 66 : res_op0 = captures[0];
513 : 66 : tree _r;
514 : 66 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
515 : 66 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 108, __FILE__, __LINE__, true);
516 : 66 : return _r;
517 : : }
518 : : next_after_fail232:;
519 : : }
520 : : return NULL_TREE;
521 : : }
522 : :
523 : : tree
524 : 69012 : generic_simplify_6 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
525 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
526 : : const enum tree_code ARG_UNUSED (op))
527 : : {
528 : 69012 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
529 : 69012 : {
530 : 69012 : bool wascmp0, wascmp1;
531 : 69012 : if (bitwise_inverted_equal_p (captures[1], captures[3], wascmp0)
532 : 1177 : && bitwise_inverted_equal_p (captures[0], captures[2], wascmp1)
533 : 69016 : && ((!wascmp0 && !wascmp1)
534 : 0 : || element_precision (type) == 1)
535 : : )
536 : : {
537 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail234;
538 : 4 : {
539 : 4 : tree res_op0;
540 : 4 : res_op0 = captures[0];
541 : 4 : tree res_op1;
542 : 4 : res_op1 = captures[3];
543 : 4 : tree _r;
544 : 4 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
545 : 4 : if (TREE_SIDE_EFFECTS (captures[1]))
546 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
547 : 4 : if (TREE_SIDE_EFFECTS (captures[2]))
548 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
549 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 110, __FILE__, __LINE__, true);
550 : 4 : return _r;
551 : : }
552 : 0 : next_after_fail234:;
553 : : }
554 : : }
555 : 69008 : return NULL_TREE;
556 : : }
557 : :
558 : : tree
559 : 0 : generic_simplify_8 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
560 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
561 : : const enum tree_code ARG_UNUSED (op))
562 : : {
563 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
564 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail236;
565 : 0 : {
566 : 0 : tree res_op0;
567 : 0 : res_op0 = captures[0];
568 : 0 : tree res_op1;
569 : 0 : res_op1 = captures[1];
570 : 0 : tree _r;
571 : 0 : _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
572 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 112, __FILE__, __LINE__, true);
573 : : return _r;
574 : : }
575 : 0 : next_after_fail236:;
576 : 0 : return NULL_TREE;
577 : : }
578 : :
579 : : tree
580 : 2 : generic_simplify_11 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
581 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
582 : : {
583 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
584 : 2 : if (!TYPE_OVERFLOW_SANITIZED (type) && !TYPE_OVERFLOW_TRAPS (type)
585 : 2 : && !TYPE_SATURATING (type) && !TYPE_OVERFLOW_SANITIZED (TREE_TYPE (captures[0]))
586 : 2 : && !TYPE_OVERFLOW_TRAPS (TREE_TYPE (captures[0]))
587 : 4 : && !TYPE_SATURATING (TREE_TYPE (captures[0]))
588 : : )
589 : : {
590 : 2 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail239;
591 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail239;
592 : 2 : {
593 : 2 : tree res_op0;
594 : 2 : {
595 : 2 : tree _o1[1], _r1;
596 : 2 : {
597 : 2 : tree _o2[2], _r2;
598 : 2 : _o2[0] = captures[1];
599 : 2 : _o2[1] = captures[2];
600 : 2 : _r2 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
601 : 2 : _o1[0] = _r2;
602 : : }
603 : 2 : if (TREE_TYPE (_o1[0]) != type)
604 : : {
605 : 1 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
606 : : }
607 : : else
608 : : _r1 = _o1[0];
609 : 2 : res_op0 = _r1;
610 : : }
611 : 2 : tree _r;
612 : 2 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
613 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 115, __FILE__, __LINE__, true);
614 : 2 : return _r;
615 : : }
616 : : next_after_fail239:;
617 : : }
618 : : return NULL_TREE;
619 : : }
620 : :
621 : : tree
622 : 0 : generic_simplify_14 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
623 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
624 : : const enum tree_code ARG_UNUSED (op),
625 : : const enum tree_code ARG_UNUSED (cmp),
626 : : const enum tree_code ARG_UNUSED (icmp))
627 : : {
628 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
629 : 0 : if (INTEGRAL_TYPE_P (type)
630 : 0 : && invert_tree_comparison (cmp, HONOR_NANS (captures[1])) == icmp
631 : 0 : && canonicalize_math_after_vectorization_p ()
632 : : )
633 : : {
634 : : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail242;
635 : : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail242;
636 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail242;
637 : : {
638 : : tree res_op0;
639 : : res_op0 = captures[0];
640 : : tree res_op1;
641 : : res_op1 = captures[3];
642 : : tree res_op2;
643 : : res_op2 = captures[5];
644 : : tree _r;
645 : : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
646 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 118, __FILE__, __LINE__, true);
647 : : return _r;
648 : : }
649 : 0 : next_after_fail242:;
650 : : }
651 : 0 : return NULL_TREE;
652 : : }
653 : :
654 : : tree
655 : 236106 : generic_simplify_17 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
656 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
657 : : const enum tree_code ARG_UNUSED (outer_op))
658 : : {
659 : 236106 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
660 : 236106 : if (!TYPE_SATURATING (type)
661 : : )
662 : : {
663 : 236106 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
664 : 472205 : && !FIXED_POINT_TYPE_P (type)
665 : : )
666 : : {
667 : 236099 : if (!ANY_INTEGRAL_TYPE_P (type) || TYPE_OVERFLOW_WRAPS (type)
668 : : )
669 : : {
670 : 222809 : if (!CONSTANT_CLASS_P (captures[1])
671 : : )
672 : : {
673 : 222809 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail251;
674 : 222809 : {
675 : 222809 : tree res_op0;
676 : 222809 : {
677 : 222809 : tree _o1[2], _r1;
678 : 222809 : {
679 : 222809 : tree _o2[1], _r2;
680 : 222809 : _o2[0] = captures[0];
681 : 222809 : if (TREE_TYPE (_o2[0]) != type)
682 : : {
683 : 3502 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o2[0]);
684 : : }
685 : : else
686 : : _r2 = _o2[0];
687 : 222809 : _o1[0] = _r2;
688 : : }
689 : 222809 : _o1[1] = captures[2];
690 : 222809 : _r1 = fold_build2_loc (loc, outer_op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
691 : 222809 : if (EXPR_P (_r1))
692 : 0 : goto next_after_fail251;
693 : 222809 : res_op0 = _r1;
694 : : }
695 : 222809 : tree res_op1;
696 : 222809 : {
697 : 222809 : tree _o1[1], _r1;
698 : 222809 : _o1[0] = captures[1];
699 : 222809 : if (TREE_TYPE (_o1[0]) != type)
700 : : {
701 : 3546 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
702 : : }
703 : : else
704 : : _r1 = _o1[0];
705 : 222809 : res_op1 = _r1;
706 : : }
707 : 222809 : tree _r;
708 : 222809 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
709 : 222809 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 127, __FILE__, __LINE__, true);
710 : 222809 : return _r;
711 : : }
712 : : next_after_fail251:;
713 : : }
714 : : }
715 : : else
716 : : {
717 : 26580 : if (!ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
718 : 26580 : || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[1]))
719 : : )
720 : : {
721 : 2506 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail252;
722 : 2506 : {
723 : 2506 : tree res_op0;
724 : 2506 : {
725 : 2506 : tree _o1[2], _r1;
726 : 2506 : {
727 : 2506 : tree _o2[2], _r2;
728 : 2506 : _o2[0] = captures[0];
729 : 2506 : {
730 : 2506 : tree _o3[1], _r3;
731 : 2506 : _o3[0] = captures[2];
732 : 2506 : if (TREE_TYPE (_o3[0]) != TREE_TYPE (_o2[0]))
733 : : {
734 : 2506 : _r3 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, TREE_TYPE (_o2[0]), _o3[0]);
735 : : }
736 : : else
737 : : _r3 = _o3[0];
738 : 2506 : _o2[1] = _r3;
739 : : }
740 : 2506 : _r2 = fold_build2_loc (loc, outer_op, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
741 : 2506 : if (EXPR_P (_r2))
742 : 0 : goto next_after_fail252;
743 : 2506 : _o1[0] = _r2;
744 : : }
745 : 2506 : _o1[1] = captures[1];
746 : 2506 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
747 : 2506 : res_op0 = _r1;
748 : : }
749 : 2506 : tree _r;
750 : 2506 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
751 : 2506 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 128, __FILE__, __LINE__, true);
752 : 2506 : return _r;
753 : : }
754 : : next_after_fail252:;
755 : : }
756 : : else
757 : : {
758 : 10784 : if (types_match (type, captures[1]) && !TYPE_OVERFLOW_SANITIZED (type)
759 : : )
760 : : {
761 : 10756 : {
762 : 10756 : tree cst = const_binop (outer_op, type, captures[0], captures[2]);
763 : 10756 : if (cst && !TREE_OVERFLOW (cst)
764 : : )
765 : : {
766 : 10749 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail253;
767 : 10749 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail253;
768 : 10749 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail253;
769 : 10749 : {
770 : 10749 : tree res_op0;
771 : 10749 : res_op0 = cst;
772 : 10749 : tree res_op1;
773 : 10749 : res_op1 = captures[1];
774 : 10749 : tree _r;
775 : 10749 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
776 : 10749 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 129, __FILE__, __LINE__, true);
777 : 10749 : return _r;
778 : : }
779 : : next_after_fail253:;
780 : : }
781 : : }
782 : : }
783 : : }
784 : : }
785 : : }
786 : : }
787 : : return NULL_TREE;
788 : : }
789 : :
790 : : tree
791 : 368262 : generic_simplify_26 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
792 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
793 : : const enum tree_code ARG_UNUSED (plusminus))
794 : : {
795 : 368262 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
796 : 368262 : if (!TYPE_SATURATING (type)
797 : 368262 : && (!FLOAT_TYPE_P (type) || flag_associative_math)
798 : : )
799 : : {
800 : 367722 : if (!ALL_FRACT_MODE_P (TYPE_MODE (type))
801 : : )
802 : : {
803 : 55 : if ((!ANY_INTEGRAL_TYPE_P (type)
804 : 367681 : || TYPE_OVERFLOW_WRAPS (type)
805 : 85646 : || (INTEGRAL_TYPE_P (type)
806 : 85632 : && ((tree_expr_nonzero_p (captures[1])
807 : 58348 : && (plusminus == MINUS_EXPR
808 : 58208 : || expr_not_equal_to (captures[1],
809 : 425930 : wi::minus_one (TYPE_PRECISION (type)))))
810 : 27284 : || expr_not_equal_to (captures[2],
811 : : (plusminus == PLUS_EXPR
812 : 395006 : ? wi::max_value (TYPE_PRECISION (type), SIGNED)
813 : 1586 : : wi::min_value (TYPE_PRECISION (type), SIGNED))))))
814 : 367722 : && single_use (captures[0])
815 : : )
816 : : {
817 : 366378 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail263;
818 : 366378 : {
819 : 366378 : tree res_op0;
820 : 366378 : {
821 : 366378 : tree _o1[2], _r1;
822 : 366378 : _o1[0] = captures[2];
823 : 366378 : _o1[1] = build_one_cst (type);
824 : 366378 : _r1 = fold_build2_loc (loc, plusminus, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
825 : 366378 : res_op0 = _r1;
826 : : }
827 : 366378 : tree res_op1;
828 : 366378 : res_op1 = captures[1];
829 : 366378 : tree _r;
830 : 366378 : _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
831 : 366378 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 139, __FILE__, __LINE__, true);
832 : 366378 : return _r;
833 : : }
834 : 0 : next_after_fail263:;
835 : : }
836 : : }
837 : : }
838 : : return NULL_TREE;
839 : : }
840 : :
841 : : tree
842 : 0 : generic_simplify_30 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
843 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
844 : : {
845 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
846 : 0 : if (VECTOR_TYPE_P (type)
847 : 0 : && known_eq (TYPE_VECTOR_SUBPARTS (type),
848 : : TYPE_VECTOR_SUBPARTS (TREE_TYPE (captures[3])))
849 : 0 : && (TYPE_MODE (TREE_TYPE (type))
850 : 0 : == TYPE_MODE (TREE_TYPE (TREE_TYPE (captures[3]))))
851 : : )
852 : : {
853 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail267;
854 : 0 : {
855 : 0 : tree res_op0;
856 : 0 : res_op0 = captures[0];
857 : 0 : tree res_op1;
858 : 0 : {
859 : 0 : tree _o1[1], _r1;
860 : 0 : {
861 : 0 : tree _o2[3], _r2;
862 : 0 : _o2[0] = captures[2];
863 : 0 : {
864 : 0 : tree _o3[1], _r3;
865 : 0 : _o3[0] = captures[3];
866 : 0 : _r3 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o3[0]), _o3[0]);
867 : 0 : _o2[1] = _r3;
868 : : }
869 : 0 : _o2[2] = captures[4];
870 : 0 : _r2 = fold_build3_loc (loc, VEC_COND_EXPR, TREE_TYPE (_o2[1]), _o2[0], _o2[1], _o2[2]);
871 : 0 : _o1[0] = _r2;
872 : : }
873 : 0 : if (TREE_TYPE (_o1[0]) != type)
874 : : {
875 : 0 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
876 : : }
877 : : else
878 : : _r1 = _o1[0];
879 : 0 : res_op1 = _r1;
880 : : }
881 : 0 : tree _r;
882 : 0 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
883 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 143, __FILE__, __LINE__, true);
884 : 0 : return _r;
885 : : }
886 : 0 : next_after_fail267:;
887 : : }
888 : : return NULL_TREE;
889 : : }
890 : :
891 : : tree
892 : 4 : generic_simplify_34 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
893 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
894 : : const combined_fn ARG_UNUSED (POPCOUNT))
895 : : {
896 : 4 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
897 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail271;
898 : 4 : {
899 : 4 : tree res_op0;
900 : 4 : {
901 : 4 : tree _o1[1], _r1;
902 : 4 : _o1[0] = captures[2];
903 : 4 : _r1 = maybe_build_call_expr_loc (loc, POPCOUNT, type, 1, _o1[0]);
904 : 4 : if (!_r1)
905 : 0 : goto next_after_fail271;
906 : 4 : res_op0 = _r1;
907 : : }
908 : 4 : tree res_op1;
909 : 4 : {
910 : 4 : tree _o1[1], _r1;
911 : 4 : _o1[0] = captures[3];
912 : 4 : _r1 = maybe_build_call_expr_loc (loc, POPCOUNT, type, 1, _o1[0]);
913 : 4 : if (!_r1)
914 : 0 : goto next_after_fail271;
915 : 4 : res_op1 = _r1;
916 : : }
917 : 4 : tree _r;
918 : 4 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
919 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 147, __FILE__, __LINE__, true);
920 : : return _r;
921 : : }
922 : : next_after_fail271:;
923 : : return NULL_TREE;
924 : : }
925 : :
926 : : tree
927 : 78 : generic_simplify_38 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
928 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
929 : : {
930 : 78 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
931 : 78 : if (INTEGRAL_TYPE_P (type)
932 : 78 : || (VECTOR_INTEGER_TYPE_P (type)
933 : : && ((optimize_vectors_before_lowering_p ()
934 : 1 : && TREE_CODE (TYPE_SIZE (type)) == INTEGER_CST)
935 : 0 : || target_supports_op_p (type, TRUNC_MOD_EXPR,
936 : : optab_vector)))
937 : : )
938 : : {
939 : 78 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail275;
940 : 78 : {
941 : 78 : tree res_op0;
942 : 78 : {
943 : 78 : tree _o1[2], _r1;
944 : 78 : _o1[0] = captures[0];
945 : 78 : _o1[1] = captures[1];
946 : 78 : _r1 = fold_build2_loc (loc, TRUNC_MOD_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
947 : 78 : res_op0 = _r1;
948 : : }
949 : 78 : tree _r;
950 : 78 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
951 : 78 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 151, __FILE__, __LINE__, true);
952 : 78 : return _r;
953 : : }
954 : 0 : next_after_fail275:;
955 : : }
956 : : return NULL_TREE;
957 : : }
958 : :
959 : : tree
960 : 2 : generic_simplify_42 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
961 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
962 : : {
963 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
964 : 2 : if (!TYPE_OVERFLOW_SANITIZED (type) && !TYPE_OVERFLOW_TRAPS (type)
965 : 2 : && !TYPE_SATURATING (type) && !TYPE_OVERFLOW_SANITIZED (TREE_TYPE (captures[2]))
966 : 2 : && !TYPE_OVERFLOW_TRAPS (TREE_TYPE (captures[2]))
967 : 4 : && !TYPE_SATURATING (TREE_TYPE (captures[2]))
968 : : )
969 : : {
970 : 2 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail279;
971 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail279;
972 : 2 : {
973 : 2 : tree res_op0;
974 : 2 : {
975 : 2 : tree _o1[1], _r1;
976 : 2 : {
977 : 2 : tree _o2[2], _r2;
978 : 2 : _o2[0] = captures[0];
979 : 2 : _o2[1] = captures[1];
980 : 2 : _r2 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
981 : 2 : _o1[0] = _r2;
982 : : }
983 : 2 : if (TREE_TYPE (_o1[0]) != type)
984 : : {
985 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
986 : : }
987 : : else
988 : : _r1 = _o1[0];
989 : 2 : res_op0 = _r1;
990 : : }
991 : 2 : tree _r;
992 : 2 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
993 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 155, __FILE__, __LINE__, true);
994 : 2 : return _r;
995 : : }
996 : : next_after_fail279:;
997 : : }
998 : : return NULL_TREE;
999 : : }
1000 : :
1001 : : tree
1002 : 56442 : generic_simplify_48 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1003 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1004 : : {
1005 : 56442 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1006 : 56442 : if (!TYPE_SATURATING (type)
1007 : : )
1008 : : {
1009 : 56442 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
1010 : 112873 : && !FIXED_POINT_TYPE_P (type)
1011 : : )
1012 : : {
1013 : 56431 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail285;
1014 : 56431 : {
1015 : 56431 : tree res_op0;
1016 : 56431 : res_op0 = captures[1];
1017 : 56431 : tree _r;
1018 : 56431 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
1019 : 56431 : if (TREE_SIDE_EFFECTS (captures[0]))
1020 : 15 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1021 : 56431 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 160, __FILE__, __LINE__, true);
1022 : 56431 : return _r;
1023 : : }
1024 : 0 : next_after_fail285:;
1025 : : }
1026 : : }
1027 : : return NULL_TREE;
1028 : : }
1029 : :
1030 : : tree
1031 : 0 : generic_simplify_52 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1032 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1033 : : {
1034 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1035 : 0 : if (!TYPE_SATURATING (type)
1036 : : )
1037 : : {
1038 : 0 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
1039 : 0 : && !FIXED_POINT_TYPE_P (type)
1040 : : )
1041 : : {
1042 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail291;
1043 : 0 : {
1044 : 0 : tree res_op0;
1045 : 0 : res_op0 = captures[1];
1046 : 0 : tree res_op1;
1047 : 0 : res_op1 = captures[2];
1048 : 0 : tree _r;
1049 : 0 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
1050 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
1051 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1052 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 166, __FILE__, __LINE__, true);
1053 : 0 : return _r;
1054 : : }
1055 : 0 : next_after_fail291:;
1056 : : }
1057 : : }
1058 : : return NULL_TREE;
1059 : : }
1060 : :
1061 : : tree
1062 : 142551 : generic_simplify_57 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1063 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1064 : : {
1065 : 142551 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1066 : 142551 : if (!TYPE_SATURATING (type)
1067 : : )
1068 : : {
1069 : 142551 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
1070 : 285102 : && !FIXED_POINT_TYPE_P (type)
1071 : : )
1072 : : {
1073 : 142551 : if (INTEGRAL_TYPE_P (type)
1074 : 142551 : && TYPE_OVERFLOW_UNDEFINED (type)
1075 : 47 : && element_precision (type) <= element_precision (TREE_TYPE (captures[1]))
1076 : 142598 : && element_precision (type) <= element_precision (TREE_TYPE (captures[2]))
1077 : : )
1078 : : {
1079 : 47 : {
1080 : 47 : tree utype = unsigned_type_for (type);
1081 : 47 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail299;
1082 : 47 : {
1083 : 47 : tree res_op0;
1084 : 47 : {
1085 : 47 : tree _o1[2], _r1;
1086 : 47 : {
1087 : 47 : tree _o2[1], _r2;
1088 : 47 : _o2[0] = captures[1];
1089 : 47 : if (TREE_TYPE (_o2[0]) != utype)
1090 : : {
1091 : 39 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
1092 : : }
1093 : : else
1094 : : _r2 = _o2[0];
1095 : 47 : _o1[0] = _r2;
1096 : : }
1097 : 47 : {
1098 : 47 : tree _o2[1], _r2;
1099 : 47 : _o2[0] = captures[2];
1100 : 47 : if (TREE_TYPE (_o2[0]) != utype)
1101 : : {
1102 : 38 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
1103 : : }
1104 : : else
1105 : : _r2 = _o2[0];
1106 : 47 : _o1[1] = _r2;
1107 : : }
1108 : 47 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1109 : 47 : res_op0 = _r1;
1110 : : }
1111 : 47 : tree _r;
1112 : 47 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1113 : 47 : if (TREE_SIDE_EFFECTS (captures[3]))
1114 : 2 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
1115 : 47 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 174, __FILE__, __LINE__, true);
1116 : 47 : return _r;
1117 : : }
1118 : 0 : next_after_fail299:;
1119 : : }
1120 : : }
1121 : : else
1122 : : {
1123 : 142504 : if (((element_precision (type) <= element_precision (TREE_TYPE (captures[1])))
1124 : 142504 : == (element_precision (type) <= element_precision (TREE_TYPE (captures[2]))))
1125 : 142504 : && (element_precision (type) <= element_precision (TREE_TYPE (captures[1]))
1126 : 48 : || (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
1127 : 48 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
1128 : 48 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[1]))
1129 : 48 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[2]))))
1130 : : )
1131 : : {
1132 : 125912 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail300;
1133 : 125912 : {
1134 : 125912 : tree res_op0;
1135 : 125912 : {
1136 : 125912 : tree _o1[1], _r1;
1137 : 125912 : _o1[0] = captures[1];
1138 : 125912 : if (TREE_TYPE (_o1[0]) != type)
1139 : : {
1140 : 125912 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1141 : : }
1142 : : else
1143 : : _r1 = _o1[0];
1144 : 125912 : res_op0 = _r1;
1145 : : }
1146 : 125912 : tree res_op1;
1147 : 125912 : {
1148 : 125912 : tree _o1[1], _r1;
1149 : 125912 : _o1[0] = captures[2];
1150 : 125912 : if (TREE_TYPE (_o1[0]) != type)
1151 : : {
1152 : 125912 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1153 : : }
1154 : : else
1155 : : _r1 = _o1[0];
1156 : 125912 : res_op1 = _r1;
1157 : : }
1158 : 125912 : tree _r;
1159 : 125912 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
1160 : 125912 : if (TREE_SIDE_EFFECTS (captures[3]))
1161 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
1162 : 125912 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 175, __FILE__, __LINE__, true);
1163 : 125912 : return _r;
1164 : : }
1165 : 0 : next_after_fail300:;
1166 : : }
1167 : : }
1168 : : }
1169 : : }
1170 : : return NULL_TREE;
1171 : : }
1172 : :
1173 : : tree
1174 : 0 : generic_simplify_77 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1175 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1176 : : const enum tree_code ARG_UNUSED (op))
1177 : : {
1178 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1179 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail324;
1180 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail324;
1181 : 0 : {
1182 : 0 : tree _r;
1183 : 0 : _r = captures[0];
1184 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 194, __FILE__, __LINE__, true);
1185 : : return _r;
1186 : : }
1187 : : next_after_fail324:;
1188 : : return NULL_TREE;
1189 : : }
1190 : :
1191 : : tree
1192 : 8 : generic_simplify_81 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1193 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1194 : : {
1195 : 8 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1196 : 16 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
1197 : 16 : && TYPE_PRECISION (TREE_TYPE (captures[0])) == 1
1198 : : )
1199 : : {
1200 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail328;
1201 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail328;
1202 : 0 : {
1203 : 0 : tree _r;
1204 : 0 : _r = captures[2];
1205 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 197, __FILE__, __LINE__, true);
1206 : 0 : return _r;
1207 : : }
1208 : : next_after_fail328:;
1209 : : }
1210 : : return NULL_TREE;
1211 : : }
1212 : :
1213 : : tree
1214 : 1 : generic_simplify_90 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1215 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1216 : : {
1217 : 1 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1218 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail337;
1219 : 1 : {
1220 : 1 : tree res_op0;
1221 : 1 : {
1222 : 1 : tree _o1[2], _r1;
1223 : 1 : _o1[0] = captures[1];
1224 : 1 : _o1[1] = captures[2];
1225 : 1 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1226 : 1 : res_op0 = _r1;
1227 : : }
1228 : 1 : tree _r;
1229 : 1 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
1230 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 203, __FILE__, __LINE__, true);
1231 : : return _r;
1232 : : }
1233 : 0 : next_after_fail337:;
1234 : 0 : return NULL_TREE;
1235 : : }
1236 : :
1237 : : tree
1238 : 0 : generic_simplify_100 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1239 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1240 : : const enum tree_code ARG_UNUSED (op))
1241 : : {
1242 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1243 : 0 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[3]))
1244 : 0 : && tree_nop_conversion_p (type, TREE_TYPE (captures[6]))
1245 : : )
1246 : : {
1247 : 0 : if (single_use (captures[4]) && single_use (captures[5])
1248 : : )
1249 : : {
1250 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail350;
1251 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail350;
1252 : 0 : {
1253 : 0 : tree res_op0;
1254 : 0 : res_op0 = captures[0];
1255 : 0 : tree res_op1;
1256 : 0 : {
1257 : 0 : tree _o1[1], _r1;
1258 : 0 : _o1[0] = captures[6];
1259 : 0 : if (TREE_TYPE (_o1[0]) != type)
1260 : : {
1261 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1262 : : }
1263 : : else
1264 : : _r1 = _o1[0];
1265 : 0 : res_op1 = _r1;
1266 : : }
1267 : 0 : tree _r;
1268 : 0 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
1269 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 208, __FILE__, __LINE__, true);
1270 : 0 : return _r;
1271 : : }
1272 : : next_after_fail350:;
1273 : : }
1274 : : else
1275 : : {
1276 : : if (single_use (captures[0]) && single_use (captures[1])
1277 : : )
1278 : : {
1279 : : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail351;
1280 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail351;
1281 : : {
1282 : : tree res_op0;
1283 : : {
1284 : : tree _o1[1], _r1;
1285 : : _o1[0] = captures[3];
1286 : : if (TREE_TYPE (_o1[0]) != type)
1287 : : {
1288 : : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1289 : : }
1290 : : else
1291 : : _r1 = _o1[0];
1292 : : res_op0 = _r1;
1293 : : }
1294 : : tree res_op1;
1295 : : res_op1 = captures[4];
1296 : : tree _r;
1297 : : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
1298 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 209, __FILE__, __LINE__, true);
1299 : : return _r;
1300 : : }
1301 : : next_after_fail351:;
1302 : : }
1303 : : }
1304 : : }
1305 : : return NULL_TREE;
1306 : : }
1307 : :
1308 : : tree
1309 : 0 : generic_simplify_112 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1310 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1311 : : const enum tree_code ARG_UNUSED (op))
1312 : : {
1313 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1314 : 0 : if (bitwise_equal_p (captures[4], captures[7])
1315 : : )
1316 : : {
1317 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail364;
1318 : 0 : {
1319 : 0 : tree res_op0;
1320 : 0 : {
1321 : 0 : tree _o1[2], _r1;
1322 : 0 : {
1323 : 0 : tree _o2[2], _r2;
1324 : 0 : _o2[0] = captures[5];
1325 : 0 : {
1326 : 0 : tree _o3[1], _r3;
1327 : 0 : _o3[0] = captures[6];
1328 : 0 : if (TREE_TYPE (_o3[0]) != TREE_TYPE (_o2[0]))
1329 : : {
1330 : 0 : _r3 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (_o2[0]), _o3[0]);
1331 : : }
1332 : : else
1333 : : _r3 = _o3[0];
1334 : 0 : _o2[1] = _r3;
1335 : : }
1336 : 0 : _r2 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
1337 : 0 : _o1[0] = _r2;
1338 : : }
1339 : 0 : {
1340 : 0 : tree _o2[1], _r2;
1341 : 0 : _o2[0] = captures[4];
1342 : 0 : if (TREE_TYPE (_o2[0]) != TREE_TYPE (_o1[0]))
1343 : : {
1344 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (_o1[0]), _o2[0]);
1345 : : }
1346 : : else
1347 : : _r2 = _o2[0];
1348 : 0 : _o1[1] = _r2;
1349 : : }
1350 : 0 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1351 : 0 : res_op0 = _r1;
1352 : : }
1353 : 0 : tree _r;
1354 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1355 : 0 : if (TREE_SIDE_EFFECTS (captures[7]))
1356 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[7]), _r);
1357 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 215, __FILE__, __LINE__, true);
1358 : 0 : return _r;
1359 : : }
1360 : 0 : next_after_fail364:;
1361 : : }
1362 : : return NULL_TREE;
1363 : : }
1364 : :
1365 : : tree
1366 : 299 : generic_simplify_121 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1367 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1368 : : {
1369 : 299 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1370 : 299 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail378;
1371 : 299 : {
1372 : 299 : if (! tree_invariant_p (captures[1])) goto next_after_fail378;
1373 : 0 : tree res_op0;
1374 : 0 : {
1375 : 0 : tree _o1[2], _r1;
1376 : 0 : {
1377 : 0 : tree _o2[2], _r2;
1378 : 0 : _o2[0] = unshare_expr (captures[1]);
1379 : 0 : _o2[1] = captures[4];
1380 : 0 : _r2 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
1381 : 0 : _o1[0] = _r2;
1382 : : }
1383 : 0 : _o1[1] = captures[2];
1384 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1385 : 0 : res_op0 = _r1;
1386 : : }
1387 : 0 : tree res_op1;
1388 : 0 : res_op1 = captures[1];
1389 : 0 : tree _r;
1390 : 0 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
1391 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 230, __FILE__, __LINE__, true);
1392 : : return _r;
1393 : : }
1394 : : next_after_fail378:;
1395 : : return NULL_TREE;
1396 : : }
1397 : :
1398 : : tree
1399 : 0 : generic_simplify_130 (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 : : {
1403 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1404 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail406;
1405 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail406;
1406 : 0 : {
1407 : 0 : tree res_op0;
1408 : 0 : {
1409 : 0 : tree _o1[2], _r1;
1410 : 0 : _o1[0] = build_zero_cst (TREE_TYPE (captures[0]));
1411 : 0 : _o1[1] = captures[2];
1412 : 0 : _r1 = fold_build2_loc (loc, cmp, type, _o1[0], _o1[1]);
1413 : 0 : res_op0 = _r1;
1414 : : }
1415 : 0 : tree res_op1;
1416 : 0 : res_op1 = captures[3];
1417 : 0 : tree _r;
1418 : 0 : _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
1419 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 251, __FILE__, __LINE__, true);
1420 : : return _r;
1421 : : }
1422 : : next_after_fail406:;
1423 : : return NULL_TREE;
1424 : : }
1425 : :
1426 : : tree
1427 : 0 : generic_simplify_133 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1428 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1429 : : {
1430 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1431 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail409;
1432 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail409;
1433 : 0 : {
1434 : 0 : tree _r;
1435 : 0 : _r = captures[2];
1436 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
1437 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1438 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 234, __FILE__, __LINE__, true);
1439 : : return _r;
1440 : : }
1441 : : next_after_fail409:;
1442 : : return NULL_TREE;
1443 : : }
1444 : :
1445 : : tree
1446 : 8 : generic_simplify_138 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1447 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1448 : : const enum tree_code ARG_UNUSED (eqne))
1449 : : {
1450 : 8 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1451 : 8 : if (eqne == EQ_EXPR
1452 : : )
1453 : : {
1454 : 4 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail427;
1455 : 4 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail427;
1456 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail427;
1457 : 4 : {
1458 : 4 : tree _r;
1459 : 4 : _r = captures[0];
1460 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 253, __FILE__, __LINE__, true);
1461 : 4 : return _r;
1462 : : }
1463 : : next_after_fail427:;
1464 : : }
1465 : : else
1466 : : {
1467 : 4 : if (eqne == NE_EXPR
1468 : : )
1469 : : {
1470 : 4 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail428;
1471 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail428;
1472 : 4 : {
1473 : 4 : tree _r;
1474 : 4 : _r = constant_boolean_node (true, type);
1475 : 4 : if (TREE_SIDE_EFFECTS (captures[2]))
1476 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1477 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 254, __FILE__, __LINE__, true);
1478 : 4 : return _r;
1479 : : }
1480 : : next_after_fail428:;
1481 : : }
1482 : : }
1483 : : return NULL_TREE;
1484 : : }
1485 : :
1486 : : tree
1487 : 18 : generic_simplify_143 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1488 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1489 : : const enum tree_code ARG_UNUSED (op))
1490 : : {
1491 : 18 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1492 : 36 : if (INTEGRAL_TYPE_P (type)
1493 : 54 : && (tree_nonzero_bits (captures[0]) & tree_nonzero_bits (captures[2])) == 0
1494 : : )
1495 : : {
1496 : 0 : {
1497 : 0 : tree t = type;
1498 : 0 : if (!TYPE_OVERFLOW_WRAPS (t))
1499 : 0 : t = unsigned_type_for (t);
1500 : 0 : wide_int c = wi::add (wi::to_wide (captures[3]), 1);
1501 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail433;
1502 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail433;
1503 : 0 : {
1504 : 0 : tree res_op0;
1505 : 0 : {
1506 : 0 : tree _o1[2], _r1;
1507 : 0 : {
1508 : 0 : tree _o2[1], _r2;
1509 : 0 : _o2[0] = captures[2];
1510 : 0 : if (TREE_TYPE (_o2[0]) != t)
1511 : : {
1512 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, t, _o2[0]);
1513 : : }
1514 : : else
1515 : : _r2 = _o2[0];
1516 : 0 : _o1[0] = _r2;
1517 : : }
1518 : 0 : _o1[1] = wide_int_to_tree (t, c);
1519 : 0 : _r1 = fold_build2_loc (loc, MULT_EXPR, t, _o1[0], _o1[1]);
1520 : 0 : res_op0 = _r1;
1521 : : }
1522 : 0 : tree _r;
1523 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1524 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 220, __FILE__, __LINE__, true);
1525 : 0 : return _r;
1526 : : }
1527 : 0 : next_after_fail433:;
1528 : 0 : }
1529 : : }
1530 : : return NULL_TREE;
1531 : : }
1532 : :
1533 : : tree
1534 : 0 : generic_simplify_147 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1535 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1536 : : {
1537 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1538 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail437;
1539 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail437;
1540 : 0 : {
1541 : 0 : tree _r;
1542 : 0 : _r = captures[1];
1543 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 258, __FILE__, __LINE__, true);
1544 : : return _r;
1545 : : }
1546 : : next_after_fail437:;
1547 : : return NULL_TREE;
1548 : : }
1549 : :
1550 : : tree
1551 : 589 : generic_simplify_151 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1552 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1553 : : {
1554 : 589 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1555 : 589 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail441;
1556 : 589 : {
1557 : 589 : if (! tree_invariant_p (captures[3])) goto next_after_fail441;
1558 : 1 : tree res_op0;
1559 : 1 : {
1560 : 1 : tree _o1[2], _r1;
1561 : 1 : _o1[0] = captures[2];
1562 : 1 : _o1[1] = unshare_expr (captures[3]);
1563 : 1 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1564 : 1 : res_op0 = _r1;
1565 : : }
1566 : 1 : tree res_op1;
1567 : 1 : {
1568 : 1 : tree _o1[2], _r1;
1569 : 1 : {
1570 : 1 : tree _o2[1], _r2;
1571 : 1 : _o2[0] = captures[4];
1572 : 1 : _r2 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
1573 : 1 : if (EXPR_P (_r2))
1574 : 0 : goto next_after_fail441;
1575 : 1 : _o1[0] = _r2;
1576 : : }
1577 : 1 : _o1[1] = captures[3];
1578 : 1 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1579 : 1 : if (EXPR_P (_r1))
1580 : 0 : goto next_after_fail441;
1581 : 1 : res_op1 = _r1;
1582 : : }
1583 : 1 : tree _r;
1584 : 1 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
1585 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 262, __FILE__, __LINE__, true);
1586 : : return _r;
1587 : : }
1588 : : next_after_fail441:;
1589 : : return NULL_TREE;
1590 : : }
1591 : :
1592 : : tree
1593 : 0 : generic_simplify_158 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1594 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1595 : : {
1596 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1597 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail448;
1598 : 0 : {
1599 : 0 : tree res_op0;
1600 : 0 : res_op0 = captures[0];
1601 : 0 : tree res_op1;
1602 : 0 : res_op1 = captures[1];
1603 : 0 : tree _r;
1604 : 0 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
1605 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 269, __FILE__, __LINE__, true);
1606 : : return _r;
1607 : : }
1608 : 0 : next_after_fail448:;
1609 : 0 : return NULL_TREE;
1610 : : }
1611 : :
1612 : : tree
1613 : 731 : generic_simplify_163 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1614 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1615 : : {
1616 : 731 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1617 : 731 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[2]))
1618 : : )
1619 : : {
1620 : 731 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail453;
1621 : 731 : {
1622 : 731 : tree res_op0;
1623 : 731 : {
1624 : 731 : tree _o1[2], _r1;
1625 : 731 : {
1626 : 731 : tree _o2[1], _r2;
1627 : 731 : _o2[0] = captures[2];
1628 : 731 : if (TREE_TYPE (_o2[0]) != type)
1629 : : {
1630 : 0 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o2[0]);
1631 : : }
1632 : : else
1633 : : _r2 = _o2[0];
1634 : 731 : _o1[0] = _r2;
1635 : : }
1636 : 731 : _o1[1] = captures[3];
1637 : 731 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1638 : 731 : res_op0 = _r1;
1639 : : }
1640 : 731 : tree _r;
1641 : 731 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
1642 : 731 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 274, __FILE__, __LINE__, true);
1643 : 731 : return _r;
1644 : : }
1645 : 0 : next_after_fail453:;
1646 : : }
1647 : : return NULL_TREE;
1648 : : }
1649 : :
1650 : : tree
1651 : 11 : generic_simplify_171 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1652 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1653 : : const combined_fn ARG_UNUSED (PARITY))
1654 : : {
1655 : 11 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1656 : 11 : if (types_match (TREE_TYPE (captures[1]), TREE_TYPE (captures[3]))
1657 : : )
1658 : : {
1659 : 10 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail462;
1660 : 10 : {
1661 : 10 : tree res_op0;
1662 : 10 : {
1663 : 10 : tree _o1[2], _r1;
1664 : 10 : _o1[0] = captures[1];
1665 : 10 : _o1[1] = captures[3];
1666 : 10 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1667 : 10 : res_op0 = _r1;
1668 : : }
1669 : 10 : tree _r;
1670 : 10 : _r = maybe_build_call_expr_loc (loc, PARITY, type, 1, res_op0);
1671 : 10 : if (!_r)
1672 : 0 : goto next_after_fail462;
1673 : 10 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 282, __FILE__, __LINE__, true);
1674 : 10 : return _r;
1675 : : }
1676 : : next_after_fail462:;
1677 : : }
1678 : : else
1679 : : {
1680 : 2 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
1681 : 2 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[3]))
1682 : : )
1683 : : {
1684 : 1 : {
1685 : 1 : tree utype = TREE_TYPE (captures[1]);
1686 : 1 : if (TYPE_PRECISION (utype) < TYPE_PRECISION (TREE_TYPE (captures[3])))
1687 : 1 : utype = TREE_TYPE (captures[3]);
1688 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail463;
1689 : 1 : {
1690 : 1 : tree res_op0;
1691 : 1 : {
1692 : 1 : tree _o1[2], _r1;
1693 : 1 : {
1694 : 1 : tree _o2[1], _r2;
1695 : 1 : _o2[0] = captures[1];
1696 : 1 : if (TREE_TYPE (_o2[0]) != utype)
1697 : : {
1698 : 1 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
1699 : : }
1700 : : else
1701 : : _r2 = _o2[0];
1702 : 1 : _o1[0] = _r2;
1703 : : }
1704 : 1 : {
1705 : 1 : tree _o2[1], _r2;
1706 : 1 : _o2[0] = captures[3];
1707 : 1 : if (TREE_TYPE (_o2[0]) != utype)
1708 : : {
1709 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
1710 : : }
1711 : : else
1712 : : _r2 = _o2[0];
1713 : 1 : _o1[1] = _r2;
1714 : : }
1715 : 1 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1716 : 1 : res_op0 = _r1;
1717 : : }
1718 : 1 : tree _r;
1719 : 1 : _r = maybe_build_call_expr_loc (loc, PARITY, type, 1, res_op0);
1720 : 1 : if (!_r)
1721 : 1 : goto next_after_fail463;
1722 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 283, __FILE__, __LINE__, true);
1723 : 0 : return _r;
1724 : : }
1725 : : next_after_fail463:;
1726 : : }
1727 : : }
1728 : : }
1729 : : return NULL_TREE;
1730 : : }
1731 : :
1732 : : tree
1733 : 4056 : generic_simplify_189 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1734 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1735 : : const enum tree_code ARG_UNUSED (op))
1736 : : {
1737 : 4056 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1738 : 4056 : {
1739 : 4056 : poly_widest_int factor;
1740 : 4056 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[2]))
1741 : 4025 : && tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[2]))
1742 : 8081 : && multiple_p (wi::to_poly_widest (captures[3]), wi::to_widest (captures[1]), &factor)
1743 : : )
1744 : : {
1745 : 3976 : {
1746 : 3976 : wi::overflow_type overflow;
1747 : 3976 : wide_int mul;
1748 : 3976 : if (types_match (type, TREE_TYPE (captures[2]))
1749 : 3930 : && types_match (TREE_TYPE (captures[0]), TREE_TYPE (captures[2]))
1750 : 0 : && TREE_CODE (captures[2]) == INTEGER_CST
1751 : 0 : && TREE_CODE (captures[3]) == INTEGER_CST
1752 : 3976 : && (mul = wi::mul (wi::to_wide (captures[2]), wi::to_wide (captures[3]),
1753 : 0 : TYPE_SIGN (type), &overflow),
1754 : 0 : !overflow)
1755 : 3976 : && (TYPE_UNSIGNED (type)
1756 : 3976 : || known_eq (factor, 1)
1757 : 0 : || (get_range_pos_neg (captures[0])
1758 : 0 : | (((op == PLUS_EXPR) ^ (tree_int_cst_sgn (captures[2]) < 0))
1759 : 0 : ? 1 : 2)) != 3)
1760 : : )
1761 : : {
1762 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail483;
1763 : 0 : {
1764 : 0 : tree res_op0;
1765 : 0 : {
1766 : 0 : tree _o1[2], _r1;
1767 : 0 : _o1[0] = captures[0];
1768 : 0 : _o1[1] = wide_int_to_tree (type, factor);
1769 : 0 : _r1 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1770 : 0 : res_op0 = _r1;
1771 : : }
1772 : 0 : tree res_op1;
1773 : 0 : res_op1 = wide_int_to_tree (type, mul);
1774 : 0 : tree _r;
1775 : 0 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
1776 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
1777 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1778 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
1779 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1780 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
1781 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
1782 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 297, __FILE__, __LINE__, true);
1783 : 0 : return _r;
1784 : : }
1785 : 0 : next_after_fail483:;
1786 : : }
1787 : : else
1788 : : {
1789 : 3976 : {
1790 : 3976 : tree utype = unsigned_type_for (type);
1791 : 3976 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail484;
1792 : 3976 : {
1793 : 3976 : tree res_op0;
1794 : 3976 : {
1795 : 3976 : tree _o1[2], _r1;
1796 : 3976 : {
1797 : 3976 : tree _o2[2], _r2;
1798 : 3976 : {
1799 : 3976 : tree _o3[1], _r3;
1800 : 3976 : _o3[0] = captures[0];
1801 : 3976 : if (TREE_TYPE (_o3[0]) != utype)
1802 : : {
1803 : 3976 : _r3 = fold_build1_loc (loc, NOP_EXPR, utype, _o3[0]);
1804 : : }
1805 : : else
1806 : : _r3 = _o3[0];
1807 : 3976 : _o2[0] = _r3;
1808 : : }
1809 : 3976 : _o2[1] = wide_int_to_tree (utype, factor);
1810 : 3976 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
1811 : 3976 : _o1[0] = _r2;
1812 : : }
1813 : 3976 : {
1814 : 3976 : tree _o2[2], _r2;
1815 : 3976 : {
1816 : 3976 : tree _o3[1], _r3;
1817 : 3976 : _o3[0] = captures[3];
1818 : 3976 : if (TREE_TYPE (_o3[0]) != utype)
1819 : : {
1820 : 14 : _r3 = fold_build1_loc (loc, NOP_EXPR, utype, _o3[0]);
1821 : : }
1822 : : else
1823 : : _r3 = _o3[0];
1824 : 3976 : _o2[0] = _r3;
1825 : : }
1826 : 3976 : {
1827 : 3976 : tree _o3[1], _r3;
1828 : 3976 : _o3[0] = captures[2];
1829 : 3976 : if (TREE_TYPE (_o3[0]) != utype)
1830 : : {
1831 : 46 : _r3 = fold_build1_loc (loc, NOP_EXPR, utype, _o3[0]);
1832 : : }
1833 : : else
1834 : : _r3 = _o3[0];
1835 : 3976 : _o2[1] = _r3;
1836 : : }
1837 : 3976 : _r2 = fold_build2_loc (loc, MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
1838 : 3976 : _o1[1] = _r2;
1839 : : }
1840 : 3976 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1841 : 3976 : res_op0 = _r1;
1842 : : }
1843 : 3976 : tree _r;
1844 : 3976 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1845 : 3976 : if (TREE_SIDE_EFFECTS (captures[1]))
1846 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1847 : 3976 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 298, __FILE__, __LINE__, true);
1848 : 3976 : return _r;
1849 : : }
1850 : 0 : next_after_fail484:;
1851 : : }
1852 : : }
1853 : 0 : }
1854 : : }
1855 : 4056 : }
1856 : 80 : return NULL_TREE;
1857 : : }
1858 : :
1859 : : tree
1860 : 0 : generic_simplify_219 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1861 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1862 : : const enum tree_code ARG_UNUSED (cmp1),
1863 : : const enum tree_code ARG_UNUSED (cmp2),
1864 : : const enum tree_code ARG_UNUSED (rcmp))
1865 : : {
1866 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1867 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
1868 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
1869 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[0]))
1870 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
1871 : : )
1872 : : {
1873 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail530;
1874 : 0 : {
1875 : 0 : tree res_op0;
1876 : 0 : res_op0 = captures[0];
1877 : 0 : tree res_op1;
1878 : 0 : res_op1 = captures[1];
1879 : 0 : tree _r;
1880 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
1881 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 342, __FILE__, __LINE__, true);
1882 : 0 : return _r;
1883 : : }
1884 : 0 : next_after_fail530:;
1885 : : }
1886 : : return NULL_TREE;
1887 : : }
1888 : :
1889 : : tree
1890 : 0 : generic_simplify_226 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1891 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1892 : : const enum tree_code ARG_UNUSED (cmp),
1893 : : const enum tree_code ARG_UNUSED (icmp))
1894 : : {
1895 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1896 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
1897 : : )
1898 : : {
1899 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail541;
1900 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail541;
1901 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail541;
1902 : 0 : {
1903 : 0 : tree res_op0;
1904 : 0 : res_op0 = captures[0];
1905 : 0 : tree res_op1;
1906 : 0 : res_op1 = wide_int_to_tree (TREE_TYPE (captures[0]),
1907 : 0 : wi::exact_log2 (wi::to_wide (captures[1])));
1908 : 0 : tree _r;
1909 : 0 : _r = fold_build2_loc (loc, icmp, type, res_op0, res_op1);
1910 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 353, __FILE__, __LINE__, true);
1911 : 0 : return _r;
1912 : : }
1913 : : next_after_fail541:;
1914 : : }
1915 : : return NULL_TREE;
1916 : : }
1917 : :
1918 : : tree
1919 : 207 : generic_simplify_228 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1920 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1921 : : const enum tree_code ARG_UNUSED (cmp))
1922 : : {
1923 : 207 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1924 : 207 : if (tree_fits_shwi_p (captures[3])
1925 : 207 : && tree_to_shwi (captures[3]) > 0
1926 : 400 : && tree_to_shwi (captures[3]) < TYPE_PRECISION (TREE_TYPE (captures[2]))
1927 : : )
1928 : : {
1929 : 193 : {
1930 : 193 : tree t0 = TREE_TYPE (captures[2]);
1931 : 193 : unsigned int prec = TYPE_PRECISION (t0);
1932 : 193 : wide_int c1 = wi::to_wide (captures[3]);
1933 : 193 : wide_int c2 = wi::to_wide (captures[4]);
1934 : 193 : wide_int c3 = wi::to_wide (captures[5]);
1935 : 193 : wide_int sb = wi::set_bit_in_zero (prec - 1, prec);
1936 : 193 : if ((c2 & c3) != c3
1937 : : )
1938 : : {
1939 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail544;
1940 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail544;
1941 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail544;
1942 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail544;
1943 : 0 : {
1944 : 0 : tree _r;
1945 : 0 : _r = constant_boolean_node (cmp == NE_EXPR, type);
1946 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
1947 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1948 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 356, __FILE__, __LINE__, true);
1949 : 0 : return _r;
1950 : : }
1951 : 0 : next_after_fail544:;
1952 : : }
1953 : : else
1954 : : {
1955 : 193 : if (TYPE_UNSIGNED (t0)
1956 : : )
1957 : : {
1958 : 100 : if ((c3 & wi::arshift (sb, c1 - 1)) != 0
1959 : : )
1960 : : {
1961 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail545;
1962 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail545;
1963 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail545;
1964 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail545;
1965 : 0 : {
1966 : 0 : tree _r;
1967 : 0 : _r = constant_boolean_node (cmp == NE_EXPR, type);
1968 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
1969 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1970 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 357, __FILE__, __LINE__, true);
1971 : 0 : return _r;
1972 : : }
1973 : 0 : next_after_fail545:;
1974 : : }
1975 : : else
1976 : : {
1977 : 100 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail546;
1978 : 100 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail546;
1979 : 100 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail546;
1980 : 100 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail546;
1981 : 100 : {
1982 : 100 : tree res_op0;
1983 : 100 : {
1984 : 100 : tree _o1[2], _r1;
1985 : 100 : _o1[0] = captures[2];
1986 : 100 : _o1[1] = wide_int_to_tree (t0, c2 << c1);
1987 : 100 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1988 : 100 : res_op0 = _r1;
1989 : : }
1990 : 100 : tree res_op1;
1991 : 100 : res_op1 = wide_int_to_tree (t0, c3 << c1);
1992 : 100 : tree _r;
1993 : 100 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
1994 : 100 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 358, __FILE__, __LINE__, true);
1995 : 100 : return _r;
1996 : : }
1997 : 0 : next_after_fail546:;
1998 : : }
1999 : : }
2000 : : else
2001 : : {
2002 : 93 : {
2003 : 93 : wide_int smask = wi::arshift (sb, c1);
2004 : 93 : if ((c2 & smask) == 0
2005 : : )
2006 : : {
2007 : 91 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail547;
2008 : 91 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail547;
2009 : 91 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail547;
2010 : 91 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail547;
2011 : 91 : {
2012 : 91 : tree res_op0;
2013 : 91 : {
2014 : 91 : tree _o1[2], _r1;
2015 : 91 : _o1[0] = captures[2];
2016 : 91 : _o1[1] = wide_int_to_tree (t0, c2 << c1);
2017 : 91 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2018 : 91 : res_op0 = _r1;
2019 : : }
2020 : 91 : tree res_op1;
2021 : 91 : res_op1 = wide_int_to_tree (t0, c3 << c1);
2022 : 91 : tree _r;
2023 : 91 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2024 : 91 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 359, __FILE__, __LINE__, true);
2025 : 91 : return _r;
2026 : : }
2027 : 0 : next_after_fail547:;
2028 : : }
2029 : : else
2030 : : {
2031 : 2 : if ((c3 & smask) == 0
2032 : : )
2033 : : {
2034 : 2 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail548;
2035 : 2 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail548;
2036 : 2 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail548;
2037 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail548;
2038 : 2 : {
2039 : 2 : tree res_op0;
2040 : 2 : {
2041 : 2 : tree _o1[2], _r1;
2042 : 2 : _o1[0] = captures[2];
2043 : 2 : _o1[1] = wide_int_to_tree (t0, (c2 << c1) | sb);
2044 : 2 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2045 : 2 : res_op0 = _r1;
2046 : : }
2047 : 2 : tree res_op1;
2048 : 2 : res_op1 = wide_int_to_tree (t0, c3 << c1);
2049 : 2 : tree _r;
2050 : 2 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2051 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 360, __FILE__, __LINE__, true);
2052 : 2 : return _r;
2053 : : }
2054 : 0 : next_after_fail548:;
2055 : : }
2056 : : else
2057 : : {
2058 : 0 : if ((c2 & smask) != (c3 & smask)
2059 : : )
2060 : : {
2061 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail549;
2062 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail549;
2063 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail549;
2064 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail549;
2065 : 0 : {
2066 : 0 : tree _r;
2067 : 0 : _r = constant_boolean_node (cmp == NE_EXPR, type);
2068 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
2069 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2070 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 361, __FILE__, __LINE__, true);
2071 : 0 : return _r;
2072 : : }
2073 : 0 : next_after_fail549:;
2074 : : }
2075 : : else
2076 : : {
2077 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail550;
2078 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail550;
2079 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail550;
2080 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail550;
2081 : 0 : {
2082 : 0 : tree res_op0;
2083 : 0 : {
2084 : 0 : tree _o1[2], _r1;
2085 : 0 : _o1[0] = captures[2];
2086 : 0 : _o1[1] = wide_int_to_tree (t0, (c2 << c1) | sb);
2087 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2088 : 0 : res_op0 = _r1;
2089 : : }
2090 : 0 : tree res_op1;
2091 : 0 : res_op1 = wide_int_to_tree (t0, (c3 << c1) | sb);
2092 : 0 : tree _r;
2093 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2094 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 362, __FILE__, __LINE__, true);
2095 : 0 : return _r;
2096 : : }
2097 : 0 : next_after_fail550:;
2098 : : }
2099 : : }
2100 : : }
2101 : 93 : }
2102 : : }
2103 : : }
2104 : 193 : }
2105 : : }
2106 : : return NULL_TREE;
2107 : : }
2108 : :
2109 : : tree
2110 : 696 : generic_simplify_259 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2111 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2112 : : const enum tree_code ARG_UNUSED (cmp))
2113 : : {
2114 : 696 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2115 : 696 : if (tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
2116 : 1392 : && wi::bit_and_not (wi::to_wide (captures[2]), wi::to_wide (captures[3])) != 0
2117 : : )
2118 : : {
2119 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail641;
2120 : 0 : {
2121 : 0 : tree _r;
2122 : 0 : _r = constant_boolean_node (cmp == NE_EXPR, type);
2123 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2124 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2125 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
2126 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2127 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
2128 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
2129 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 444, __FILE__, __LINE__, true);
2130 : 0 : return _r;
2131 : : }
2132 : 0 : next_after_fail641:;
2133 : : }
2134 : : return NULL_TREE;
2135 : : }
2136 : :
2137 : : tree
2138 : 62 : generic_simplify_262 (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 : : {
2142 : 62 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2143 : 62 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail647;
2144 : 62 : {
2145 : 62 : tree res_op0;
2146 : 62 : res_op0 = captures[1];
2147 : 62 : tree res_op1;
2148 : 62 : res_op1 = build_zero_cst (TREE_TYPE (captures[1]));
2149 : 62 : tree _r;
2150 : 62 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2151 : 62 : if (TREE_SIDE_EFFECTS (captures[0]))
2152 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2153 : 62 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 450, __FILE__, __LINE__, true);
2154 : : return _r;
2155 : : }
2156 : 0 : next_after_fail647:;
2157 : 0 : return NULL_TREE;
2158 : : }
2159 : :
2160 : : tree
2161 : 449 : generic_simplify_265 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2162 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2163 : : const enum tree_code ARG_UNUSED (cmp))
2164 : : {
2165 : 449 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2166 : 449 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail650;
2167 : 449 : {
2168 : 449 : tree res_op0;
2169 : 449 : {
2170 : 449 : tree _o1[2], _r1;
2171 : 449 : _o1[0] = captures[0];
2172 : 449 : {
2173 : 449 : tree _o2[1], _r2;
2174 : 449 : _o2[0] = captures[1];
2175 : 449 : _r2 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
2176 : 449 : if (EXPR_P (_r2))
2177 : 441 : goto next_after_fail650;
2178 : 8 : _o1[1] = _r2;
2179 : : }
2180 : 8 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2181 : 8 : res_op0 = _r1;
2182 : : }
2183 : 8 : tree res_op1;
2184 : 8 : res_op1 = build_zero_cst (TREE_TYPE (captures[0]));
2185 : 8 : tree _r;
2186 : 8 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2187 : 8 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 453, __FILE__, __LINE__, true);
2188 : : return _r;
2189 : : }
2190 : : next_after_fail650:;
2191 : : return NULL_TREE;
2192 : : }
2193 : :
2194 : : tree
2195 : 114486 : generic_simplify_269 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2196 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2197 : : const enum tree_code ARG_UNUSED (cmp),
2198 : : const enum tree_code ARG_UNUSED (icmp))
2199 : : {
2200 : 114486 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2201 : 114486 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail654;
2202 : 114464 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail654;
2203 : 114464 : {
2204 : 114464 : tree res_op0;
2205 : 114464 : res_op0 = captures[0];
2206 : 114464 : tree res_op1;
2207 : 114464 : res_op1 = build_zero_cst (TREE_TYPE (captures[1]));
2208 : 114464 : tree _r;
2209 : 114464 : _r = fold_build2_loc (loc, icmp, type, res_op0, res_op1);
2210 : 114464 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 457, __FILE__, __LINE__, true);
2211 : : return _r;
2212 : : }
2213 : : next_after_fail654:;
2214 : : return NULL_TREE;
2215 : : }
2216 : :
2217 : : tree
2218 : 4 : generic_simplify_273 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2219 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2220 : : const enum tree_code ARG_UNUSED (cmp),
2221 : : const enum tree_code ARG_UNUSED (ncmp))
2222 : : {
2223 : 4 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2224 : 8 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
2225 : 4 : && !TYPE_UNSIGNED (TREE_TYPE (captures[0]))
2226 : 8 : && types_match (captures[0], captures[2])
2227 : : )
2228 : : {
2229 : 4 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail658;
2230 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail658;
2231 : 4 : {
2232 : 4 : tree res_op0;
2233 : 4 : {
2234 : 4 : tree _o1[2], _r1;
2235 : 4 : _o1[0] = captures[0];
2236 : 4 : _o1[1] = captures[2];
2237 : 4 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2238 : 4 : res_op0 = _r1;
2239 : : }
2240 : 4 : tree res_op1;
2241 : 4 : res_op1 = captures[1];
2242 : 4 : tree _r;
2243 : 4 : _r = fold_build2_loc (loc, ncmp, type, res_op0, res_op1);
2244 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 460, __FILE__, __LINE__, true);
2245 : 4 : return _r;
2246 : : }
2247 : : next_after_fail658:;
2248 : : }
2249 : : return NULL_TREE;
2250 : : }
2251 : :
2252 : : tree
2253 : 50406488 : generic_simplify_277 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2254 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2255 : : const enum tree_code ARG_UNUSED (neeq))
2256 : : {
2257 : 50406488 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2258 : 90252225 : if (POINTER_TYPE_P (TREE_TYPE (captures[0]))
2259 : 50424866 : && ptrs_compare_unequal (captures[0], captures[1])
2260 : : )
2261 : : {
2262 : 11045 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail676;
2263 : 11045 : {
2264 : 11045 : tree _r;
2265 : 11045 : _r = constant_boolean_node (neeq != EQ_EXPR, type);
2266 : 11045 : if (TREE_SIDE_EFFECTS (captures[0]))
2267 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2268 : 11045 : if (TREE_SIDE_EFFECTS (captures[1]))
2269 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2270 : 11045 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 469, __FILE__, __LINE__, true);
2271 : 11045 : return _r;
2272 : : }
2273 : 0 : next_after_fail676:;
2274 : : }
2275 : : return NULL_TREE;
2276 : : }
2277 : :
2278 : : tree
2279 : 2 : generic_simplify_280 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2280 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2281 : : const enum tree_code ARG_UNUSED (cmp))
2282 : : {
2283 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2284 : 4 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
2285 : 2 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
2286 : 2 : && TYPE_UNSIGNED (TREE_TYPE (captures[2]))
2287 : 2 : && (TYPE_PRECISION (TREE_TYPE (captures[1]))
2288 : 2 : >= 2 * TYPE_PRECISION (TREE_TYPE (captures[2])))
2289 : 2 : && tree_fits_uhwi_p (captures[4])
2290 : 2 : && tree_to_uhwi (captures[4]) == TYPE_PRECISION (TREE_TYPE (captures[2]))
2291 : 2 : && types_match (captures[2], captures[3])
2292 : 2 : && type_has_mode_precision_p (TREE_TYPE (captures[2]))
2293 : 6 : && (optab_handler (umulv4_optab, TYPE_MODE (TREE_TYPE (captures[2])))
2294 : : != CODE_FOR_nothing)
2295 : : )
2296 : : {
2297 : 2 : {
2298 : 2 : tree t = TREE_TYPE (captures[2]), cpx = build_complex_type (t);
2299 : 2 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail683;
2300 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail683;
2301 : 2 : {
2302 : 2 : tree res_op0;
2303 : 2 : {
2304 : 2 : tree _o1[1], _r1;
2305 : 2 : {
2306 : 2 : tree _o2[2], _r2;
2307 : 2 : _o2[0] = captures[2];
2308 : 2 : _o2[1] = captures[3];
2309 : 2 : _r2 = maybe_build_call_expr_loc (loc, CFN_MUL_OVERFLOW, cpx, 2, _o2[0], _o2[1]);
2310 : 2 : if (!_r2)
2311 : 0 : goto next_after_fail683;
2312 : 2 : _o1[0] = _r2;
2313 : : }
2314 : 2 : _r1 = fold_build1_loc (loc, IMAGPART_EXPR, TREE_TYPE (TREE_TYPE (_o1[0])), _o1[0]);
2315 : 2 : res_op0 = _r1;
2316 : : }
2317 : 2 : tree res_op1;
2318 : 2 : res_op1 = build_zero_cst (t);
2319 : 2 : tree _r;
2320 : 2 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2321 : 2 : if (TREE_SIDE_EFFECTS (captures[4]))
2322 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[4]), _r);
2323 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 476, __FILE__, __LINE__, true);
2324 : 2 : return _r;
2325 : : }
2326 : : next_after_fail683:;
2327 : : }
2328 : : }
2329 : : return NULL_TREE;
2330 : : }
2331 : :
2332 : : tree
2333 : 574729 : generic_simplify_282 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2334 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2335 : : const enum tree_code ARG_UNUSED (cmp),
2336 : : const enum tree_code ARG_UNUSED (rcmp))
2337 : : {
2338 : 574729 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2339 : 1149458 : if (!TREE_OVERFLOW (captures[0]) && !TREE_OVERFLOW (captures[2])
2340 : 1149458 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[1]))
2341 : : )
2342 : : {
2343 : 4204 : {
2344 : 4204 : tree res = int_const_binop (MINUS_EXPR, captures[0], captures[2]);
2345 : 4204 : if (TREE_OVERFLOW (res)
2346 : : )
2347 : : {
2348 : 48 : if (cmp == NE_EXPR
2349 : : )
2350 : : {
2351 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail686;
2352 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail686;
2353 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail686;
2354 : 0 : {
2355 : 0 : tree _r;
2356 : 0 : _r = constant_boolean_node (true, type);
2357 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2358 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2359 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 479, __FILE__, __LINE__, true);
2360 : 0 : return _r;
2361 : : }
2362 : : next_after_fail686:;
2363 : : }
2364 : : else
2365 : : {
2366 : 48 : if (cmp == EQ_EXPR
2367 : : )
2368 : : {
2369 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail687;
2370 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail687;
2371 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail687;
2372 : 0 : {
2373 : 0 : tree _r;
2374 : 0 : _r = constant_boolean_node (false, type);
2375 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2376 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2377 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 480, __FILE__, __LINE__, true);
2378 : 0 : return _r;
2379 : : }
2380 : : next_after_fail687:;
2381 : : }
2382 : : else
2383 : : {
2384 : 48 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail688;
2385 : 48 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail688;
2386 : 48 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail688;
2387 : 48 : {
2388 : 48 : tree _r;
2389 : 48 : bool less = cmp == LE_EXPR || cmp == LT_EXPR;
2390 : 48 : bool ovf_high = wi::lt_p (wi::to_wide (captures[0]), 0,
2391 : 48 : TYPE_SIGN (TREE_TYPE (captures[0]))); _r =
2392 : 48 : constant_boolean_node (less == ovf_high, type);
2393 : 48 : if (TREE_SIDE_EFFECTS (captures[1]))
2394 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2395 : 48 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 481, __FILE__, __LINE__, true);
2396 : 48 : return _r;
2397 : : }
2398 : : next_after_fail688:;
2399 : : }
2400 : : }
2401 : : }
2402 : : else
2403 : : {
2404 : 4156 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail689;
2405 : 4156 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail689;
2406 : 4156 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail689;
2407 : 4156 : {
2408 : 4156 : tree res_op0;
2409 : 4156 : res_op0 = captures[1];
2410 : 4156 : tree res_op1;
2411 : 4156 : res_op1 = res;
2412 : 4156 : tree _r;
2413 : 4156 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
2414 : 4156 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 482, __FILE__, __LINE__, true);
2415 : 4156 : return _r;
2416 : : }
2417 : : next_after_fail689:;
2418 : : }
2419 : : }
2420 : : }
2421 : : else
2422 : : {
2423 : 570525 : if (TYPE_UNSIGNED (TREE_TYPE (captures[1]))
2424 : : )
2425 : : {
2426 : 570419 : if (cmp == EQ_EXPR || cmp == NE_EXPR
2427 : : )
2428 : : {
2429 : 32240 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail690;
2430 : 32240 : {
2431 : 32240 : tree res_op0;
2432 : 32240 : res_op0 = captures[1];
2433 : 32240 : tree res_op1;
2434 : 32240 : {
2435 : 32240 : tree _o1[2], _r1;
2436 : 32240 : _o1[0] = captures[0];
2437 : 32240 : _o1[1] = captures[2];
2438 : 32240 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2439 : 32240 : res_op1 = _r1;
2440 : : }
2441 : 32240 : tree _r;
2442 : 32240 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2443 : 32240 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 483, __FILE__, __LINE__, true);
2444 : 32240 : return _r;
2445 : : }
2446 : 0 : next_after_fail690:;
2447 : : }
2448 : : else
2449 : : {
2450 : 538179 : if (cmp == LE_EXPR || cmp == GT_EXPR
2451 : : )
2452 : : {
2453 : 538179 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail691;
2454 : 538179 : {
2455 : 538179 : if (! tree_invariant_p (captures[2])) goto next_after_fail691;
2456 : 538179 : tree res_op0;
2457 : 538179 : {
2458 : 538179 : tree _o1[2], _r1;
2459 : 538179 : _o1[0] = captures[1];
2460 : 538179 : {
2461 : 538179 : tree _o2[2], _r2;
2462 : 538179 : _o2[0] = unshare_expr (captures[2]);
2463 : 538179 : _o2[1] = captures[0];
2464 : 538179 : _r2 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
2465 : 538179 : _o1[1] = _r2;
2466 : : }
2467 : 538179 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2468 : 538179 : res_op0 = _r1;
2469 : : }
2470 : 538179 : tree res_op1;
2471 : 538179 : res_op1 = captures[2];
2472 : 538179 : tree _r;
2473 : 538179 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2474 : 538179 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 484, __FILE__, __LINE__, true);
2475 : 538179 : return _r;
2476 : : }
2477 : : next_after_fail691:;
2478 : : }
2479 : : else
2480 : : {
2481 : 0 : if (cmp == LT_EXPR || cmp == GE_EXPR
2482 : : )
2483 : : {
2484 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail692;
2485 : 0 : {
2486 : 0 : if (! tree_invariant_p (captures[2])) goto next_after_fail692;
2487 : 0 : tree res_op0;
2488 : 0 : {
2489 : 0 : tree _o1[2], _r1;
2490 : 0 : _o1[0] = captures[1];
2491 : 0 : {
2492 : 0 : tree _o2[2], _r2;
2493 : 0 : _o2[0] = unshare_expr (captures[2]);
2494 : 0 : {
2495 : 0 : tree _o3[2], _r3;
2496 : 0 : _o3[0] = captures[0];
2497 : 0 : _o3[1] = build_one_cst (TREE_TYPE (captures[1]));
2498 : 0 : _r3 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
2499 : 0 : _o2[1] = _r3;
2500 : : }
2501 : 0 : _r2 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
2502 : 0 : _o1[1] = _r2;
2503 : : }
2504 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2505 : 0 : res_op0 = _r1;
2506 : : }
2507 : 0 : tree res_op1;
2508 : 0 : res_op1 = captures[2];
2509 : 0 : tree _r;
2510 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2511 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 485, __FILE__, __LINE__, true);
2512 : 0 : return _r;
2513 : : }
2514 : : next_after_fail692:;
2515 : : }
2516 : : }
2517 : : }
2518 : : }
2519 : : else
2520 : : {
2521 : 106 : if (!TYPE_UNSIGNED (TREE_TYPE (captures[1]))
2522 : 106 : && TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[1]))
2523 : : )
2524 : : {
2525 : 106 : if (cmp == EQ_EXPR || cmp == NE_EXPR
2526 : : )
2527 : : {
2528 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail693;
2529 : 0 : {
2530 : 0 : tree res_op0;
2531 : 0 : res_op0 = captures[1];
2532 : 0 : tree res_op1;
2533 : 0 : {
2534 : 0 : tree _o1[2], _r1;
2535 : 0 : _o1[0] = captures[0];
2536 : 0 : _o1[1] = captures[2];
2537 : 0 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2538 : 0 : res_op1 = _r1;
2539 : : }
2540 : 0 : tree _r;
2541 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
2542 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 486, __FILE__, __LINE__, true);
2543 : 0 : return _r;
2544 : : }
2545 : 0 : next_after_fail693:;
2546 : : }
2547 : : else
2548 : : {
2549 : 106 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail694;
2550 : 106 : {
2551 : 106 : tree res_op0;
2552 : 106 : {
2553 : 106 : tree _o1[2], _r1;
2554 : 106 : _o1[0] = captures[1];
2555 : 106 : {
2556 : 106 : tree _o2[2], _r2;
2557 : 106 : _o2[0] = captures[0];
2558 : 106 : _o2[1] = build_one_cst (TREE_TYPE (captures[1]));
2559 : 106 : _r2 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
2560 : 106 : _o1[1] = _r2;
2561 : : }
2562 : 106 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2563 : 106 : res_op0 = _r1;
2564 : : }
2565 : 106 : tree res_op1;
2566 : 106 : {
2567 : 106 : tree _o1[1], _r1;
2568 : 106 : _o1[0] = captures[2];
2569 : 106 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
2570 : 106 : res_op1 = _r1;
2571 : : }
2572 : 106 : tree _r;
2573 : 106 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
2574 : 106 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 487, __FILE__, __LINE__, true);
2575 : 106 : return _r;
2576 : : }
2577 : 0 : next_after_fail694:;
2578 : : }
2579 : : }
2580 : : }
2581 : : }
2582 : : return NULL_TREE;
2583 : : }
2584 : :
2585 : : tree
2586 : 6 : generic_simplify_328 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2587 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2588 : : const combined_fn ARG_UNUSED (TAN),
2589 : : const combined_fn ARG_UNUSED (SIN),
2590 : : const combined_fn ARG_UNUSED (COS))
2591 : : {
2592 : 6 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2593 : 6 : if (flag_unsafe_math_optimizations && canonicalize_math_p ()
2594 : : )
2595 : : {
2596 : 6 : if (! HONOR_NANS (captures[1])
2597 : 6 : && ! HONOR_INFINITIES (captures[1])
2598 : : )
2599 : : {
2600 : 6 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail752;
2601 : 6 : {
2602 : 6 : tree res_op0;
2603 : 6 : res_op0 = build_one_cst (type);
2604 : 6 : tree res_op1;
2605 : 6 : {
2606 : 6 : tree _o1[1], _r1;
2607 : 6 : _o1[0] = captures[1];
2608 : 6 : _r1 = maybe_build_call_expr_loc (loc, COS, TREE_TYPE (_o1[0]), 1, _o1[0]);
2609 : 6 : if (!_r1)
2610 : 0 : goto next_after_fail752;
2611 : 6 : res_op1 = _r1;
2612 : : }
2613 : 6 : tree _r;
2614 : 6 : _r = fold_build2_loc (loc, RDIV_EXPR, type, res_op0, res_op1);
2615 : 6 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 543, __FILE__, __LINE__, true);
2616 : 6 : return _r;
2617 : : }
2618 : : next_after_fail752:;
2619 : : }
2620 : : }
2621 : : return NULL_TREE;
2622 : : }
2623 : :
2624 : : tree
2625 : 1073 : generic_simplify_337 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2626 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2627 : : const enum tree_code ARG_UNUSED (op))
2628 : : {
2629 : 1073 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2630 : 2146 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
2631 : 2146 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
2632 : : )
2633 : : {
2634 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail763;
2635 : 0 : {
2636 : 0 : tree res_op0;
2637 : 0 : res_op0 = captures[0];
2638 : 0 : tree res_op1;
2639 : 0 : res_op1 = captures[2];
2640 : 0 : tree _r;
2641 : 0 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
2642 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2643 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2644 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 554, __FILE__, __LINE__, true);
2645 : 0 : return _r;
2646 : : }
2647 : 0 : next_after_fail763:;
2648 : : }
2649 : : return NULL_TREE;
2650 : : }
2651 : :
2652 : : tree
2653 : 37632 : generic_simplify_343 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2654 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2655 : : const enum tree_code ARG_UNUSED (cmp),
2656 : : const enum tree_code ARG_UNUSED (out))
2657 : : {
2658 : 37632 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2659 : 37632 : if (TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[1]))
2660 : 37616 : && types_match (TREE_TYPE (captures[3]), TREE_TYPE (captures[0]))
2661 : 37616 : && tree_nop_conversion_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[3]))
2662 : 37632 : && wi::to_wide (captures[4]) != 0
2663 : 0 : && single_use (captures[1])
2664 : : )
2665 : : {
2666 : 37616 : {
2667 : 37616 : unsigned int prec = TYPE_PRECISION (TREE_TYPE (captures[3]));
2668 : 37616 : signop sign = TYPE_SIGN (TREE_TYPE (captures[3]));
2669 : 37616 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail770;
2670 : 37616 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail770;
2671 : 37616 : {
2672 : 37616 : tree res_op0;
2673 : 37616 : res_op0 = captures[3];
2674 : 37616 : tree res_op1;
2675 : 37616 : res_op1 = wide_int_to_tree (TREE_TYPE (captures[3]),
2676 : 37616 : wi::max_value (prec, sign)
2677 : 112848 : - wi::to_wide (captures[4]));
2678 : 37616 : tree _r;
2679 : 37616 : _r = fold_build2_loc (loc, out, type, res_op0, res_op1);
2680 : 37616 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 561, __FILE__, __LINE__, true);
2681 : 37616 : return _r;
2682 : : }
2683 : : next_after_fail770:;
2684 : : }
2685 : : }
2686 : : return NULL_TREE;
2687 : : }
2688 : :
2689 : : tree
2690 : 0 : generic_simplify_352 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2691 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2692 : : const enum tree_code ARG_UNUSED (cmp),
2693 : : const enum tree_code ARG_UNUSED (out))
2694 : : {
2695 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2696 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[1]))
2697 : 0 : && types_match (TREE_TYPE (captures[1]), TREE_TYPE (captures[2]))
2698 : : )
2699 : : {
2700 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail811;
2701 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail811;
2702 : 0 : {
2703 : 0 : tree res_op0;
2704 : 0 : {
2705 : 0 : tree _o1[1], _r1;
2706 : 0 : _o1[0] = captures[0];
2707 : 0 : _r1 = fold_build1_loc (loc, IMAGPART_EXPR, TREE_TYPE (TREE_TYPE (_o1[0])), _o1[0]);
2708 : 0 : res_op0 = _r1;
2709 : : }
2710 : 0 : tree res_op1;
2711 : 0 : res_op1 = build_zero_cst (TREE_TYPE (captures[1]));
2712 : 0 : tree _r;
2713 : 0 : _r = fold_build2_loc (loc, out, type, res_op0, res_op1);
2714 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 585, __FILE__, __LINE__, true);
2715 : 0 : return _r;
2716 : : }
2717 : : next_after_fail811:;
2718 : : }
2719 : : return NULL_TREE;
2720 : : }
2721 : :
2722 : : tree
2723 : 727591 : generic_simplify_358 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2724 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2725 : : const enum tree_code ARG_UNUSED (cmp),
2726 : : const enum tree_code ARG_UNUSED (icmp))
2727 : : {
2728 : 727591 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2729 : 1453288 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
2730 : 727591 : && TYPE_UNSIGNED (TREE_TYPE (captures[0]))
2731 : 323129 : && TYPE_PRECISION (TREE_TYPE (captures[0])) > 1
2732 : 1778311 : && (wi::to_wide (captures[2])
2733 : 1696978 : == wi::max_value (TYPE_PRECISION (TREE_TYPE (captures[0])), SIGNED) - 1)
2734 : : )
2735 : : {
2736 : 4886 : {
2737 : 4886 : tree stype = signed_type_for (TREE_TYPE (captures[0]));
2738 : 4886 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail824;
2739 : 4886 : {
2740 : 4886 : tree res_op0;
2741 : 4886 : {
2742 : 4886 : tree _o1[1], _r1;
2743 : 4886 : _o1[0] = captures[0];
2744 : 4886 : if (TREE_TYPE (_o1[0]) != stype)
2745 : : {
2746 : 4886 : _r1 = fold_build1_loc (loc, NOP_EXPR, stype, _o1[0]);
2747 : : }
2748 : : else
2749 : : _r1 = _o1[0];
2750 : 4886 : res_op0 = _r1;
2751 : : }
2752 : 4886 : tree res_op1;
2753 : 4886 : res_op1 = build_int_cst (stype, 0);
2754 : 4886 : tree _r;
2755 : 4886 : _r = fold_build2_loc (loc, icmp, type, res_op0, res_op1);
2756 : 4886 : if (TREE_SIDE_EFFECTS (captures[1]))
2757 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2758 : 4886 : if (TREE_SIDE_EFFECTS (captures[2]))
2759 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2760 : 4886 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 598, __FILE__, __LINE__, true);
2761 : 4886 : return _r;
2762 : : }
2763 : 0 : next_after_fail824:;
2764 : : }
2765 : : }
2766 : : return NULL_TREE;
2767 : : }
2768 : :
2769 : : tree
2770 : 0 : generic_simplify_363 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2771 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2772 : : const enum tree_code ARG_UNUSED (cmp),
2773 : : const enum tree_code ARG_UNUSED (out))
2774 : : {
2775 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2776 : 0 : if (TYPE_UNSIGNED (TREE_TYPE (captures[1]))
2777 : 0 : && types_match (TREE_TYPE (captures[1]), TREE_TYPE (captures[2]))
2778 : : )
2779 : : {
2780 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail829;
2781 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail829;
2782 : 0 : {
2783 : 0 : tree res_op0;
2784 : 0 : {
2785 : 0 : tree _o1[1], _r1;
2786 : 0 : _o1[0] = captures[0];
2787 : 0 : _r1 = fold_build1_loc (loc, IMAGPART_EXPR, TREE_TYPE (TREE_TYPE (_o1[0])), _o1[0]);
2788 : 0 : res_op0 = _r1;
2789 : : }
2790 : 0 : tree res_op1;
2791 : 0 : res_op1 = build_zero_cst (TREE_TYPE (captures[1]));
2792 : 0 : tree _r;
2793 : 0 : _r = fold_build2_loc (loc, out, type, res_op0, res_op1);
2794 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 585, __FILE__, __LINE__, true);
2795 : 0 : return _r;
2796 : : }
2797 : : next_after_fail829:;
2798 : : }
2799 : : return NULL_TREE;
2800 : : }
2801 : :
2802 : : tree
2803 : 414 : generic_simplify_369 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2804 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2805 : : const enum tree_code ARG_UNUSED (shift),
2806 : : const enum tree_code ARG_UNUSED (mod))
2807 : : {
2808 : 414 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2809 : 414 : if (integer_pow2p (captures[3]) && tree_int_cst_sgn (captures[3]) > 0
2810 : : )
2811 : : {
2812 : 391 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail839;
2813 : 391 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail839;
2814 : 391 : {
2815 : 391 : tree res_op0;
2816 : 391 : res_op0 = captures[0];
2817 : 391 : tree res_op1;
2818 : 391 : {
2819 : 391 : tree _o1[2], _r1;
2820 : 391 : _o1[0] = captures[1];
2821 : 391 : {
2822 : 391 : tree _o2[2], _r2;
2823 : 391 : _o2[0] = captures[2];
2824 : 391 : _o2[1] = build_int_cst (TREE_TYPE (captures[2]),
2825 : : 1);
2826 : 391 : _r2 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
2827 : 391 : _o1[1] = _r2;
2828 : : }
2829 : 391 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2830 : 391 : res_op1 = _r1;
2831 : : }
2832 : 391 : tree _r;
2833 : 391 : _r = fold_build2_loc (loc, shift, type, res_op0, res_op1);
2834 : 391 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 609, __FILE__, __LINE__, true);
2835 : 391 : return _r;
2836 : : }
2837 : : next_after_fail839:;
2838 : : }
2839 : : return NULL_TREE;
2840 : : }
2841 : :
2842 : : tree
2843 : 0 : generic_simplify_375 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2844 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2845 : : const enum tree_code ARG_UNUSED (shiftrotate))
2846 : : {
2847 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2848 : 0 : {
2849 : 0 : tree tem = uniform_vector_p (captures[1]);
2850 : 0 : if (tem
2851 : : )
2852 : : {
2853 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail845;
2854 : 0 : {
2855 : 0 : tree res_op0;
2856 : 0 : res_op0 = captures[0];
2857 : 0 : tree res_op1;
2858 : 0 : res_op1 = tem;
2859 : 0 : tree _r;
2860 : 0 : _r = fold_build2_loc (loc, shiftrotate, type, res_op0, res_op1);
2861 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2862 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2863 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 614, __FILE__, __LINE__, true);
2864 : 0 : return _r;
2865 : : }
2866 : 0 : next_after_fail845:;
2867 : : }
2868 : : }
2869 : : return NULL_TREE;
2870 : : }
2871 : :
2872 : : tree
2873 : 3053932 : generic_simplify_381 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2874 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
2875 : : const enum tree_code ARG_UNUSED (bitop))
2876 : : {
2877 : 3053932 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2878 : 3053932 : if (0
2879 : : && TREE_CODE (captures[3]) != INTEGER_CST
2880 : : && tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
2881 : : && types_match (type, captures[2])
2882 : : && !POINTER_TYPE_P (TREE_TYPE (captures[2]))
2883 : : && TREE_CODE (TREE_TYPE (captures[2])) != OFFSET_TYPE
2884 : : )
2885 : : {
2886 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail858;
2887 : : {
2888 : : tree res_op0;
2889 : : res_op0 = captures[2];
2890 : : tree res_op1;
2891 : : {
2892 : : tree _o1[1], _r1;
2893 : : _o1[0] = captures[3];
2894 : : if (TREE_TYPE (_o1[0]) != type)
2895 : : {
2896 : : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
2897 : : }
2898 : : else
2899 : : _r1 = _o1[0];
2900 : : res_op1 = _r1;
2901 : : }
2902 : : tree _r;
2903 : : _r = fold_build2_loc (loc, bitop, type, res_op0, res_op1);
2904 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 626, __FILE__, __LINE__, true);
2905 : : return _r;
2906 : : }
2907 : : next_after_fail858:;
2908 : : }
2909 : 3053932 : return NULL_TREE;
2910 : : }
2911 : :
2912 : : tree
2913 : 810646 : generic_simplify_384 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2914 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
2915 : : const enum tree_code ARG_UNUSED (op))
2916 : : {
2917 : 810646 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2918 : 810646 : if (INTEGRAL_TYPE_P (type)
2919 : 711270 : && op != MULT_EXPR
2920 : 711270 : && op != RDIV_EXPR
2921 : 410254 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
2922 : 388800 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
2923 : 388800 : && type_has_mode_precision_p (TREE_TYPE (captures[2]))
2924 : 334764 : && type_has_mode_precision_p (TREE_TYPE (captures[4]))
2925 : 334486 : && type_has_mode_precision_p (type)
2926 : 334464 : && TYPE_PRECISION (TREE_TYPE (captures[1])) > TYPE_PRECISION (TREE_TYPE (captures[2]))
2927 : 24147 : && types_match (captures[2], type)
2928 : 815625 : && (types_match (captures[2], captures[4])
2929 : 4930 : || poly_int_tree_p (captures[3]))
2930 : : )
2931 : : {
2932 : 49 : if (TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[2]))
2933 : : )
2934 : : {
2935 : 9 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail862;
2936 : 9 : {
2937 : 9 : tree res_op0;
2938 : 9 : res_op0 = captures[2];
2939 : 9 : tree res_op1;
2940 : 9 : {
2941 : 9 : tree _o1[1], _r1;
2942 : 9 : _o1[0] = captures[4];
2943 : 9 : if (TREE_TYPE (_o1[0]) != type)
2944 : : {
2945 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
2946 : : }
2947 : : else
2948 : : _r1 = _o1[0];
2949 : 9 : res_op1 = _r1;
2950 : : }
2951 : 9 : tree _r;
2952 : 9 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
2953 : 9 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 630, __FILE__, __LINE__, true);
2954 : 9 : return _r;
2955 : : }
2956 : 0 : next_after_fail862:;
2957 : : }
2958 : : else
2959 : : {
2960 : 40 : {
2961 : 40 : tree utype = unsigned_type_for (TREE_TYPE (captures[2]));
2962 : 40 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail863;
2963 : 40 : {
2964 : 40 : tree res_op0;
2965 : 40 : {
2966 : 40 : tree _o1[2], _r1;
2967 : 40 : {
2968 : 40 : tree _o2[1], _r2;
2969 : 40 : _o2[0] = captures[2];
2970 : 40 : if (TREE_TYPE (_o2[0]) != utype)
2971 : : {
2972 : 40 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
2973 : : }
2974 : : else
2975 : : _r2 = _o2[0];
2976 : 40 : _o1[0] = _r2;
2977 : : }
2978 : 40 : {
2979 : 40 : tree _o2[1], _r2;
2980 : 40 : _o2[0] = captures[4];
2981 : 40 : if (TREE_TYPE (_o2[0]) != utype)
2982 : : {
2983 : 40 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
2984 : : }
2985 : : else
2986 : : _r2 = _o2[0];
2987 : 40 : _o1[1] = _r2;
2988 : : }
2989 : 40 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2990 : 40 : res_op0 = _r1;
2991 : : }
2992 : 40 : tree _r;
2993 : 40 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
2994 : 40 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 631, __FILE__, __LINE__, true);
2995 : 40 : return _r;
2996 : : }
2997 : 0 : next_after_fail863:;
2998 : : }
2999 : : }
3000 : : }
3001 : : else
3002 : : {
3003 : 794488 : if (FLOAT_TYPE_P (type)
3004 : 826706 : && DECIMAL_FLOAT_TYPE_P (TREE_TYPE (captures[0]))
3005 : 16109 : == DECIMAL_FLOAT_TYPE_P (type)
3006 : : )
3007 : : {
3008 : 16086 : {
3009 : 16086 : tree arg0 = strip_float_extensions (captures[2]);
3010 : 16086 : tree arg1 = strip_float_extensions (captures[4]);
3011 : 16086 : tree itype = TREE_TYPE (captures[0]);
3012 : 16086 : tree ty1 = TREE_TYPE (arg0);
3013 : 16086 : tree ty2 = TREE_TYPE (arg1);
3014 : 16086 : enum tree_code code = TREE_CODE (itype);
3015 : 0 : if (FLOAT_TYPE_P (ty1)
3016 : 16086 : && FLOAT_TYPE_P (ty2)
3017 : : )
3018 : : {
3019 : 16086 : {
3020 : 16086 : tree newtype = type;
3021 : 16086 : if (TYPE_MODE (ty1) == SDmode
3022 : 16077 : || TYPE_MODE (ty2) == SDmode
3023 : 32163 : || TYPE_MODE (type) == SDmode)
3024 : 9 : newtype = dfloat32_type_node;
3025 : 16086 : if (TYPE_MODE (ty1) == DDmode
3026 : 16080 : || TYPE_MODE (ty2) == DDmode
3027 : 32166 : || TYPE_MODE (type) == DDmode)
3028 : 6 : newtype = dfloat64_type_node;
3029 : 16086 : if (TYPE_MODE (ty1) == TDmode
3030 : 16086 : || TYPE_MODE (ty2) == TDmode
3031 : 32172 : || TYPE_MODE (type) == TDmode)
3032 : 15 : newtype = dfloat128_type_node;
3033 : 16086 : if ((newtype == dfloat32_type_node
3034 : 16086 : || newtype == dfloat64_type_node
3035 : 16086 : || newtype == dfloat128_type_node)
3036 : 15 : && newtype == type
3037 : 16092 : && types_match (newtype, type)
3038 : : )
3039 : : {
3040 : 6 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail864;
3041 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail864;
3042 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail864;
3043 : 0 : {
3044 : 0 : tree res_op0;
3045 : 0 : {
3046 : 0 : tree _o1[1], _r1;
3047 : 0 : _o1[0] = captures[2];
3048 : 0 : if (TREE_TYPE (_o1[0]) != newtype)
3049 : : {
3050 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, newtype, _o1[0]);
3051 : : }
3052 : : else
3053 : : _r1 = _o1[0];
3054 : 0 : res_op0 = _r1;
3055 : : }
3056 : 0 : tree res_op1;
3057 : 0 : {
3058 : 0 : tree _o1[1], _r1;
3059 : 0 : _o1[0] = captures[4];
3060 : 0 : if (TREE_TYPE (_o1[0]) != newtype)
3061 : : {
3062 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, newtype, _o1[0]);
3063 : : }
3064 : : else
3065 : : _r1 = _o1[0];
3066 : 0 : res_op1 = _r1;
3067 : : }
3068 : 0 : tree _r;
3069 : 0 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
3070 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 632, __FILE__, __LINE__, true);
3071 : 0 : return _r;
3072 : : }
3073 : : next_after_fail864:;
3074 : : }
3075 : : else
3076 : : {
3077 : 16080 : {
3078 : 16080 : if (element_precision (ty1) > element_precision (newtype))
3079 : 4 : newtype = ty1;
3080 : 16080 : if (element_precision (ty2) > element_precision (newtype))
3081 : 1 : newtype = ty2;
3082 : 16080 : if (element_precision (newtype) < element_precision (itype)
3083 : 15910 : && (!VECTOR_MODE_P (TYPE_MODE (newtype))
3084 : 0 : || target_supports_op_p (newtype, op, optab_default))
3085 : 15910 : && (flag_unsafe_math_optimizations
3086 : 15893 : || (element_precision (newtype) == element_precision (type)
3087 : 15889 : && real_can_shorten_arithmetic (element_mode (itype),
3088 : : element_mode (type))
3089 : 6262 : && !excess_precision_type (newtype)))
3090 : 16105 : && !types_match (itype, newtype)
3091 : : )
3092 : : {
3093 : 25 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail865;
3094 : 25 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail865;
3095 : 17 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail865;
3096 : 17 : {
3097 : 17 : tree res_op0;
3098 : 17 : {
3099 : 17 : tree _o1[2], _r1;
3100 : 17 : {
3101 : 17 : tree _o2[1], _r2;
3102 : 17 : _o2[0] = captures[2];
3103 : 17 : if (TREE_TYPE (_o2[0]) != newtype)
3104 : : {
3105 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, newtype, _o2[0]);
3106 : : }
3107 : : else
3108 : : _r2 = _o2[0];
3109 : 17 : _o1[0] = _r2;
3110 : : }
3111 : 17 : {
3112 : 17 : tree _o2[1], _r2;
3113 : 17 : _o2[0] = captures[4];
3114 : 17 : if (TREE_TYPE (_o2[0]) != newtype)
3115 : : {
3116 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, newtype, _o2[0]);
3117 : : }
3118 : : else
3119 : : _r2 = _o2[0];
3120 : 17 : _o1[1] = _r2;
3121 : : }
3122 : 17 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3123 : 17 : res_op0 = _r1;
3124 : : }
3125 : 17 : tree _r;
3126 : 17 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3127 : 17 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 633, __FILE__, __LINE__, true);
3128 : 17 : return _r;
3129 : : }
3130 : : next_after_fail865:;
3131 : : }
3132 : : }
3133 : : }
3134 : : }
3135 : : }
3136 : : }
3137 : : }
3138 : : }
3139 : : return NULL_TREE;
3140 : : }
3141 : :
3142 : : tree
3143 : 2 : generic_simplify_407 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3144 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3145 : : {
3146 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3147 : 2 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail897;
3148 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail897;
3149 : 2 : {
3150 : 2 : tree res_op0;
3151 : 2 : res_op0 = captures[0];
3152 : 2 : tree res_op1;
3153 : 2 : {
3154 : 2 : tree _o1[1], _r1;
3155 : 2 : _o1[0] = captures[5];
3156 : 2 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
3157 : 2 : res_op1 = _r1;
3158 : : }
3159 : 2 : tree _r;
3160 : 2 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
3161 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 653, __FILE__, __LINE__, true);
3162 : : return _r;
3163 : : }
3164 : : next_after_fail897:;
3165 : : return NULL_TREE;
3166 : : }
3167 : :
3168 : : tree
3169 : 0 : generic_simplify_414 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3170 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3171 : : {
3172 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3173 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail904;
3174 : 0 : {
3175 : 0 : tree res_op0;
3176 : 0 : res_op0 = captures[0];
3177 : 0 : tree res_op1;
3178 : 0 : res_op1 = captures[1];
3179 : 0 : tree _r;
3180 : 0 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
3181 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 659, __FILE__, __LINE__, true);
3182 : : return _r;
3183 : : }
3184 : 0 : next_after_fail904:;
3185 : 0 : return NULL_TREE;
3186 : : }
3187 : :
3188 : : tree
3189 : 13 : generic_simplify_418 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3190 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
3191 : : {
3192 : 13 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3193 : 13 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail908;
3194 : 13 : {
3195 : 13 : tree _r;
3196 : 13 : _r = build_zero_cst (type);
3197 : 13 : if (TREE_SIDE_EFFECTS (captures[0]))
3198 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
3199 : 13 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 663, __FILE__, __LINE__, true);
3200 : : return _r;
3201 : : }
3202 : 0 : next_after_fail908:;
3203 : 0 : return NULL_TREE;
3204 : : }
3205 : :
3206 : : tree
3207 : 44086 : generic_simplify_422 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3208 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3209 : : const enum tree_code ARG_UNUSED (shift))
3210 : : {
3211 : 44086 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3212 : 44086 : if (tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
3213 : 21880 : && TYPE_PRECISION (type) <= HOST_BITS_PER_WIDE_INT
3214 : 21880 : && tree_fits_uhwi_p (captures[4])
3215 : 21880 : && tree_to_uhwi (captures[4]) > 0
3216 : 65966 : && tree_to_uhwi (captures[4]) < TYPE_PRECISION (type)
3217 : : )
3218 : : {
3219 : 21880 : {
3220 : 21880 : unsigned int shiftc = tree_to_uhwi (captures[4]);
3221 : 21880 : unsigned HOST_WIDE_INT mask = TREE_INT_CST_LOW (captures[5]);
3222 : 21880 : unsigned HOST_WIDE_INT newmask, zerobits = 0;
3223 : 21880 : tree shift_type = TREE_TYPE (captures[2]);
3224 : 21880 : unsigned int prec;
3225 : 21880 : if (shift == LSHIFT_EXPR)
3226 : 0 : zerobits = ((HOST_WIDE_INT_1U << shiftc) - 1);
3227 : 21880 : else if (shift == RSHIFT_EXPR
3228 : 21880 : && type_has_mode_precision_p (shift_type))
3229 : : {
3230 : 21880 : prec = TYPE_PRECISION (TREE_TYPE (captures[2]));
3231 : 21880 : tree arg00 = captures[3];
3232 : 21880 : if (captures[2] != captures[3]
3233 : 21880 : && TYPE_UNSIGNED (TREE_TYPE (captures[3])))
3234 : : {
3235 : 21473 : tree inner_type = TREE_TYPE (captures[3]);
3236 : 21473 : if (type_has_mode_precision_p (inner_type)
3237 : 21473 : && TYPE_PRECISION (inner_type) < prec)
3238 : : {
3239 : 0 : prec = TYPE_PRECISION (inner_type);
3240 : 0 : if (shiftc < prec)
3241 : 0 : shift_type = inner_type;
3242 : : }
3243 : : }
3244 : 21880 : zerobits = HOST_WIDE_INT_M1U;
3245 : 21880 : if (shiftc < prec)
3246 : : {
3247 : 21880 : zerobits >>= HOST_BITS_PER_WIDE_INT - shiftc;
3248 : 21880 : zerobits <<= prec - shiftc;
3249 : : }
3250 : 21880 : if (!TYPE_UNSIGNED (TREE_TYPE (captures[2]))
3251 : 21880 : && prec == TYPE_PRECISION (TREE_TYPE (captures[2])))
3252 : : {
3253 : 73 : if ((mask & zerobits) == 0)
3254 : 59 : shift_type = unsigned_type_for (TREE_TYPE (captures[2]));
3255 : : else
3256 : : zerobits = 0;
3257 : : }
3258 : : }
3259 : 21866 : if ((mask & zerobits) == mask
3260 : : )
3261 : : {
3262 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail912;
3263 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail912;
3264 : 0 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail912;
3265 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail912;
3266 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail912;
3267 : 0 : {
3268 : 0 : tree _r;
3269 : 0 : _r = build_int_cst (type, 0);
3270 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 666, __FILE__, __LINE__, true);
3271 : 0 : return _r;
3272 : : }
3273 : : next_after_fail912:;
3274 : : }
3275 : : else
3276 : : {
3277 : 21880 : {
3278 : 21880 : newmask = mask | zerobits;
3279 : 21880 : if (newmask != mask && (newmask & (newmask + 1)) == 0
3280 : : )
3281 : : {
3282 : : {
3283 : 65 : for (prec = BITS_PER_UNIT;
3284 : 122 : prec < HOST_BITS_PER_WIDE_INT; prec <<= 1)
3285 : 118 : if (newmask == (HOST_WIDE_INT_1U << prec) - 1)
3286 : : break;
3287 : 57 : if (prec < HOST_BITS_PER_WIDE_INT
3288 : 4 : || newmask == HOST_WIDE_INT_M1U
3289 : : )
3290 : : {
3291 : 57 : {
3292 : 57 : tree newmaskt = build_int_cst_type (TREE_TYPE (captures[5]), newmask);
3293 : 57 : if (!tree_int_cst_equal (newmaskt, captures[5])
3294 : : )
3295 : : {
3296 : 57 : if (shift_type != TREE_TYPE (captures[2])
3297 : : )
3298 : : {
3299 : 47 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail913;
3300 : 47 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail913;
3301 : 47 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail913;
3302 : 47 : {
3303 : 47 : tree res_op0;
3304 : 47 : {
3305 : 47 : tree _o1[1], _r1;
3306 : 47 : {
3307 : 47 : tree _o2[2], _r2;
3308 : 47 : {
3309 : 47 : tree _o3[1], _r3;
3310 : 47 : _o3[0] = captures[2];
3311 : 47 : if (TREE_TYPE (_o3[0]) != shift_type)
3312 : : {
3313 : 47 : _r3 = fold_build1_loc (loc, NOP_EXPR, shift_type, _o3[0]);
3314 : : }
3315 : : else
3316 : : _r3 = _o3[0];
3317 : 47 : _o2[0] = _r3;
3318 : : }
3319 : 47 : _o2[1] = captures[4];
3320 : 47 : _r2 = fold_build2_loc (loc, shift, shift_type, _o2[0], _o2[1]);
3321 : 47 : _o1[0] = _r2;
3322 : : }
3323 : 47 : if (TREE_TYPE (_o1[0]) != type)
3324 : : {
3325 : 47 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
3326 : : }
3327 : : else
3328 : : _r1 = _o1[0];
3329 : 47 : res_op0 = _r1;
3330 : : }
3331 : 47 : tree res_op1;
3332 : 47 : res_op1 = newmaskt;
3333 : 47 : tree _r;
3334 : 47 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
3335 : 47 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 667, __FILE__, __LINE__, true);
3336 : 47 : return _r;
3337 : : }
3338 : : next_after_fail913:;
3339 : : }
3340 : : else
3341 : : {
3342 : 10 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail914;
3343 : 10 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail914;
3344 : 10 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail914;
3345 : 10 : {
3346 : 10 : tree res_op0;
3347 : 10 : res_op0 = captures[0];
3348 : 10 : tree res_op1;
3349 : 10 : res_op1 = newmaskt;
3350 : 10 : tree _r;
3351 : 10 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
3352 : 10 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 668, __FILE__, __LINE__, true);
3353 : 10 : return _r;
3354 : : }
3355 : : next_after_fail914:;
3356 : : }
3357 : : }
3358 : : }
3359 : : }
3360 : : }
3361 : : }
3362 : : }
3363 : : }
3364 : : }
3365 : : }
3366 : : return NULL_TREE;
3367 : : }
3368 : :
3369 : : tree
3370 : 79339 : generic_simplify_442 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3371 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3372 : : const enum tree_code ARG_UNUSED (shift))
3373 : : {
3374 : 79339 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3375 : 79339 : if (tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
3376 : 79339 : && TYPE_PRECISION (type) <= HOST_BITS_PER_WIDE_INT
3377 : 79335 : && tree_fits_uhwi_p (captures[4])
3378 : 79286 : && tree_to_uhwi (captures[4]) > 0
3379 : 158624 : && tree_to_uhwi (captures[4]) < TYPE_PRECISION (type)
3380 : : )
3381 : : {
3382 : 79285 : {
3383 : 79285 : unsigned int shiftc = tree_to_uhwi (captures[4]);
3384 : 79285 : unsigned HOST_WIDE_INT mask = TREE_INT_CST_LOW (captures[5]);
3385 : 79285 : unsigned HOST_WIDE_INT newmask, zerobits = 0;
3386 : 79285 : tree shift_type = TREE_TYPE (captures[2]);
3387 : 79285 : unsigned int prec;
3388 : 79285 : if (shift == LSHIFT_EXPR)
3389 : 28437 : zerobits = ((HOST_WIDE_INT_1U << shiftc) - 1);
3390 : 50848 : else if (shift == RSHIFT_EXPR
3391 : 50848 : && type_has_mode_precision_p (shift_type))
3392 : : {
3393 : 50848 : prec = TYPE_PRECISION (TREE_TYPE (captures[2]));
3394 : 50848 : tree arg00 = captures[3];
3395 : 50848 : if (captures[2] != captures[3]
3396 : 50848 : && TYPE_UNSIGNED (TREE_TYPE (captures[3])))
3397 : : {
3398 : 0 : tree inner_type = TREE_TYPE (captures[3]);
3399 : 0 : if (type_has_mode_precision_p (inner_type)
3400 : 0 : && TYPE_PRECISION (inner_type) < prec)
3401 : : {
3402 : 0 : prec = TYPE_PRECISION (inner_type);
3403 : 0 : if (shiftc < prec)
3404 : 0 : shift_type = inner_type;
3405 : : }
3406 : : }
3407 : 50848 : zerobits = HOST_WIDE_INT_M1U;
3408 : 50848 : if (shiftc < prec)
3409 : : {
3410 : 50848 : zerobits >>= HOST_BITS_PER_WIDE_INT - shiftc;
3411 : 50848 : zerobits <<= prec - shiftc;
3412 : : }
3413 : 50848 : if (!TYPE_UNSIGNED (TREE_TYPE (captures[2]))
3414 : 50848 : && prec == TYPE_PRECISION (TREE_TYPE (captures[2])))
3415 : : {
3416 : 2666 : if ((mask & zerobits) == 0)
3417 : 2655 : shift_type = unsigned_type_for (TREE_TYPE (captures[2]));
3418 : : else
3419 : : zerobits = 0;
3420 : : }
3421 : : }
3422 : 79274 : if ((mask & zerobits) == mask
3423 : : )
3424 : : {
3425 : 3 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail973;
3426 : 3 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail973;
3427 : 3 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail973;
3428 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail973;
3429 : 3 : {
3430 : 3 : tree _r;
3431 : 3 : _r = build_int_cst (type, 0);
3432 : 3 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 666, __FILE__, __LINE__, true);
3433 : 3 : return _r;
3434 : : }
3435 : : next_after_fail973:;
3436 : : }
3437 : : else
3438 : : {
3439 : 79282 : {
3440 : 79282 : newmask = mask | zerobits;
3441 : 79282 : if (newmask != mask && (newmask & (newmask + 1)) == 0
3442 : : )
3443 : : {
3444 : : {
3445 : 19420 : for (prec = BITS_PER_UNIT;
3446 : 34810 : prec < HOST_BITS_PER_WIDE_INT; prec <<= 1)
3447 : 32113 : if (newmask == (HOST_WIDE_INT_1U << prec) - 1)
3448 : : break;
3449 : 15390 : if (prec < HOST_BITS_PER_WIDE_INT
3450 : 2697 : || newmask == HOST_WIDE_INT_M1U
3451 : : )
3452 : : {
3453 : 12847 : {
3454 : 12847 : tree newmaskt = build_int_cst_type (TREE_TYPE (captures[5]), newmask);
3455 : 12847 : if (!tree_int_cst_equal (newmaskt, captures[5])
3456 : : )
3457 : : {
3458 : 12847 : if (shift_type != TREE_TYPE (captures[2])
3459 : : )
3460 : : {
3461 : 84 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail974;
3462 : 84 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail974;
3463 : 84 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail974;
3464 : 84 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail974;
3465 : 84 : {
3466 : 84 : tree res_op0;
3467 : 84 : {
3468 : 84 : tree _o1[1], _r1;
3469 : 84 : {
3470 : 84 : tree _o2[2], _r2;
3471 : 84 : {
3472 : 84 : tree _o3[1], _r3;
3473 : 84 : _o3[0] = captures[2];
3474 : 84 : if (TREE_TYPE (_o3[0]) != shift_type)
3475 : : {
3476 : 84 : _r3 = fold_build1_loc (loc, NOP_EXPR, shift_type, _o3[0]);
3477 : : }
3478 : : else
3479 : : _r3 = _o3[0];
3480 : 84 : _o2[0] = _r3;
3481 : : }
3482 : 84 : _o2[1] = captures[4];
3483 : 84 : _r2 = fold_build2_loc (loc, shift, shift_type, _o2[0], _o2[1]);
3484 : 84 : _o1[0] = _r2;
3485 : : }
3486 : 84 : if (TREE_TYPE (_o1[0]) != type)
3487 : : {
3488 : 84 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
3489 : : }
3490 : : else
3491 : : _r1 = _o1[0];
3492 : 84 : res_op0 = _r1;
3493 : : }
3494 : 84 : tree res_op1;
3495 : 84 : res_op1 = newmaskt;
3496 : 84 : tree _r;
3497 : 84 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
3498 : 84 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 667, __FILE__, __LINE__, true);
3499 : 84 : return _r;
3500 : : }
3501 : : next_after_fail974:;
3502 : : }
3503 : : else
3504 : : {
3505 : 12763 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail975;
3506 : 11835 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail975;
3507 : 11835 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail975;
3508 : 11835 : {
3509 : 11835 : tree res_op0;
3510 : 11835 : res_op0 = captures[0];
3511 : 11835 : tree res_op1;
3512 : 11835 : res_op1 = newmaskt;
3513 : 11835 : tree _r;
3514 : 11835 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
3515 : 11835 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 668, __FILE__, __LINE__, true);
3516 : 11835 : return _r;
3517 : : }
3518 : : next_after_fail975:;
3519 : : }
3520 : : }
3521 : : }
3522 : : }
3523 : : }
3524 : : }
3525 : : }
3526 : : }
3527 : : }
3528 : : }
3529 : : return NULL_TREE;
3530 : : }
3531 : :
3532 : : tree
3533 : 1790 : generic_simplify_463 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3534 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures))
3535 : : {
3536 : 1790 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3537 : 1790 : if (! TYPE_UNSIGNED (type)
3538 : 1345 : && ! HONOR_SIGN_DEPENDENT_ROUNDING (type)
3539 : 1790 : && single_use (captures[0])
3540 : : )
3541 : : {
3542 : 1345 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail998;
3543 : 1345 : {
3544 : 1345 : tree res_op0;
3545 : 1345 : res_op0 = captures[1];
3546 : 1345 : tree res_op1;
3547 : 1345 : {
3548 : 1345 : tree _o1[1], _r1;
3549 : 1345 : _o1[0] = captures[2];
3550 : 1345 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
3551 : 1345 : res_op1 = _r1;
3552 : : }
3553 : 1345 : tree _r;
3554 : 1345 : _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
3555 : 1345 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 712, __FILE__, __LINE__, true);
3556 : 1345 : return _r;
3557 : : }
3558 : 0 : next_after_fail998:;
3559 : : }
3560 : : return NULL_TREE;
3561 : : }
3562 : :
3563 : : tree
3564 : 2237 : generic_simplify_469 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3565 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
3566 : : {
3567 : 2237 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3568 : 2237 : if (INTEGRAL_TYPE_P (type)
3569 : : )
3570 : : {
3571 : 2237 : {
3572 : 2237 : tree itype = TREE_TYPE (captures[2]);
3573 : 2237 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1005;
3574 : 2237 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1005;
3575 : 2237 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail1005;
3576 : 2237 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1005;
3577 : 2237 : {
3578 : 2237 : tree res_op0;
3579 : 2237 : {
3580 : 2237 : tree _o1[2], _r1;
3581 : 2237 : _o1[0] = captures[2];
3582 : 2237 : {
3583 : 2237 : tree _o2[1], _r2;
3584 : 2237 : _o2[0] = captures[0];
3585 : 2237 : if (TREE_TYPE (_o2[0]) != itype)
3586 : : {
3587 : 2237 : _r2 = fold_build1_loc (loc, NOP_EXPR, itype, _o2[0]);
3588 : : }
3589 : : else
3590 : : _r2 = _o2[0];
3591 : 2237 : _o1[1] = _r2;
3592 : : }
3593 : 2237 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3594 : 2237 : res_op0 = _r1;
3595 : : }
3596 : 2237 : tree _r;
3597 : 2237 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3598 : 2237 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 718, __FILE__, __LINE__, true);
3599 : 2237 : return _r;
3600 : : }
3601 : : next_after_fail1005:;
3602 : : }
3603 : : }
3604 : : return NULL_TREE;
3605 : : }
3606 : :
3607 : : tree
3608 : 43 : generic_simplify_479 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3609 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
3610 : : const enum tree_code ARG_UNUSED (cmp),
3611 : : const enum tree_code ARG_UNUSED (minmax))
3612 : : {
3613 : 43 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3614 : 43 : {
3615 : 43 : tree_code code = minmax_from_comparison (cmp, captures[0], captures[1], captures[0], captures[4]);
3616 : 43 : if ((cmp == LT_EXPR || cmp == LE_EXPR)
3617 : 15 : && code == MIN_EXPR
3618 : 47 : && integer_nonzerop (fold_build2 (LE_EXPR, boolean_type_node, captures[3], captures[4]))
3619 : : )
3620 : : {
3621 : 4 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1019;
3622 : 4 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1019;
3623 : 4 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1019;
3624 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1019;
3625 : 4 : {
3626 : 4 : tree res_op0;
3627 : 4 : res_op0 = captures[2];
3628 : 4 : tree res_op1;
3629 : 4 : res_op1 = captures[4];
3630 : 4 : tree _r;
3631 : 4 : _r = fold_build2_loc (loc, MIN_EXPR, type, res_op0, res_op1);
3632 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 732, __FILE__, __LINE__, true);
3633 : 4 : return _r;
3634 : : }
3635 : : next_after_fail1019:;
3636 : : }
3637 : : else
3638 : : {
3639 : 39 : if ((cmp == GT_EXPR || cmp == GE_EXPR)
3640 : 28 : && code == MAX_EXPR
3641 : 59 : && integer_nonzerop (fold_build2 (GE_EXPR, boolean_type_node, captures[3], captures[4]))
3642 : : )
3643 : : {
3644 : 6 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1020;
3645 : 6 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1020;
3646 : 6 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail1020;
3647 : 6 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1020;
3648 : 6 : {
3649 : 6 : tree res_op0;
3650 : 6 : res_op0 = captures[2];
3651 : 6 : tree res_op1;
3652 : 6 : res_op1 = captures[4];
3653 : 6 : tree _r;
3654 : 6 : _r = fold_build2_loc (loc, MAX_EXPR, type, res_op0, res_op1);
3655 : 6 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 733, __FILE__, __LINE__, true);
3656 : 6 : return _r;
3657 : : }
3658 : : next_after_fail1020:;
3659 : : }
3660 : : }
3661 : : }
3662 : : return NULL_TREE;
3663 : : }
3664 : :
3665 : : tree
3666 : 22 : generic_simplify_494 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3667 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
3668 : : const enum tree_code ARG_UNUSED (cmp))
3669 : : {
3670 : 22 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3671 : 22 : if (INTEGRAL_TYPE_P (type)
3672 : 22 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
3673 : 22 : && !TYPE_UNSIGNED (TREE_TYPE (captures[0]))
3674 : 44 : && TYPE_PRECISION (TREE_TYPE (captures[0])) == TYPE_PRECISION (type)
3675 : : )
3676 : : {
3677 : 22 : {
3678 : 22 : tree shifter = build_int_cst (integer_type_node, TYPE_PRECISION (type) - 1);
3679 : 22 : if (cmp == LT_EXPR
3680 : : )
3681 : : {
3682 : 13 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1036;
3683 : 13 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1036;
3684 : 13 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1036;
3685 : 13 : {
3686 : 13 : tree res_op0;
3687 : 13 : {
3688 : 13 : tree _o1[1], _r1;
3689 : 13 : {
3690 : 13 : tree _o2[2], _r2;
3691 : 13 : _o2[0] = captures[0];
3692 : 13 : _o2[1] = shifter;
3693 : 13 : _r2 = fold_build2_loc (loc, RSHIFT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
3694 : 13 : _o1[0] = _r2;
3695 : : }
3696 : 13 : if (TREE_TYPE (_o1[0]) != type)
3697 : : {
3698 : 1 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
3699 : : }
3700 : : else
3701 : : _r1 = _o1[0];
3702 : 13 : res_op0 = _r1;
3703 : : }
3704 : 13 : tree res_op1;
3705 : 13 : res_op1 = captures[1];
3706 : 13 : tree _r;
3707 : 13 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
3708 : 13 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 748, __FILE__, __LINE__, true);
3709 : 13 : return _r;
3710 : : }
3711 : : next_after_fail1036:;
3712 : : }
3713 : : else
3714 : : {
3715 : 9 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1037;
3716 : 9 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail1037;
3717 : 9 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1037;
3718 : 9 : {
3719 : 9 : tree res_op0;
3720 : 9 : {
3721 : 9 : tree _o1[2], _r1;
3722 : 9 : {
3723 : 9 : tree _o2[1], _r2;
3724 : 9 : {
3725 : 9 : tree _o3[2], _r3;
3726 : 9 : _o3[0] = captures[0];
3727 : 9 : _o3[1] = shifter;
3728 : 9 : _r3 = fold_build2_loc (loc, RSHIFT_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
3729 : 9 : _o2[0] = _r3;
3730 : : }
3731 : 9 : if (TREE_TYPE (_o2[0]) != type)
3732 : : {
3733 : 1 : _r2 = fold_build1_loc (loc, NOP_EXPR, type, _o2[0]);
3734 : : }
3735 : : else
3736 : : _r2 = _o2[0];
3737 : 9 : _o1[0] = _r2;
3738 : : }
3739 : 9 : _o1[1] = captures[1];
3740 : 9 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3741 : 9 : res_op0 = _r1;
3742 : : }
3743 : 9 : tree _r;
3744 : 9 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
3745 : 9 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 749, __FILE__, __LINE__, true);
3746 : 9 : return _r;
3747 : : }
3748 : : next_after_fail1037:;
3749 : : }
3750 : : }
3751 : : }
3752 : : return NULL_TREE;
3753 : : }
3754 : :
3755 : : tree
3756 : 0 : generic_simplify_510 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3757 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3758 : : const combined_fn ARG_UNUSED (minmax))
3759 : : {
3760 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3761 : 0 : if (real_isnan (TREE_REAL_CST_PTR (captures[1]))
3762 : 0 : && (!HONOR_SNANS (captures[1]) || !TREE_REAL_CST (captures[1]).signalling)
3763 : 0 : && !tree_expr_maybe_signaling_nan_p (captures[0])
3764 : : )
3765 : : {
3766 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1066;
3767 : 0 : {
3768 : 0 : tree _r;
3769 : 0 : _r = captures[0];
3770 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
3771 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3772 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 765, __FILE__, __LINE__, true);
3773 : 0 : return _r;
3774 : : }
3775 : 0 : next_after_fail1066:;
3776 : : }
3777 : : return NULL_TREE;
3778 : : }
3779 : :
3780 : : tree
3781 : 0 : generic_simplify_519 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3782 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
3783 : : const enum tree_code ARG_UNUSED (bitop),
3784 : : const combined_fn ARG_UNUSED (bswap))
3785 : : {
3786 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3787 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1078;
3788 : 0 : {
3789 : 0 : tree res_op0;
3790 : 0 : res_op0 = captures[0];
3791 : 0 : tree res_op1;
3792 : 0 : {
3793 : 0 : tree _o1[1], _r1;
3794 : 0 : _o1[0] = captures[1];
3795 : 0 : _r1 = maybe_build_call_expr_loc (loc, bswap, TREE_TYPE (_o1[0]), 1, _o1[0]);
3796 : 0 : if (!_r1)
3797 : 0 : goto next_after_fail1078;
3798 : 0 : res_op1 = _r1;
3799 : : }
3800 : 0 : tree _r;
3801 : 0 : _r = fold_build2_loc (loc, bitop, type, res_op0, res_op1);
3802 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 777, __FILE__, __LINE__, true);
3803 : : return _r;
3804 : : }
3805 : : next_after_fail1078:;
3806 : : return NULL_TREE;
3807 : : }
3808 : :
3809 : : tree
3810 : 0 : generic_simplify_527 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3811 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
3812 : : const combined_fn ARG_UNUSED (cond_op))
3813 : : {
3814 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3815 : 0 : {
3816 : 0 : tree op_type = TREE_TYPE (captures[4]);
3817 : 0 : if (element_precision (type) == element_precision (op_type)
3818 : : )
3819 : : {
3820 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1086;
3821 : 0 : {
3822 : 0 : tree res_op0;
3823 : 0 : {
3824 : 0 : tree _o1[5], _r1;
3825 : 0 : _o1[0] = captures[0];
3826 : 0 : _o1[1] = captures[1];
3827 : 0 : _o1[2] = captures[2];
3828 : 0 : _o1[3] = captures[3];
3829 : 0 : {
3830 : 0 : tree _o2[1], _r2;
3831 : 0 : _o2[0] = captures[5];
3832 : 0 : if (TREE_TYPE (_o2[0]) != op_type)
3833 : : {
3834 : 0 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, op_type, _o2[0]);
3835 : : }
3836 : : else
3837 : : _r2 = _o2[0];
3838 : 0 : _o1[4] = _r2;
3839 : : }
3840 : 0 : _r1 = maybe_build_call_expr_loc (loc, cond_op, TREE_TYPE (_o1[1]), 5, _o1[0], _o1[1], _o1[2], _o1[3], _o1[4]);
3841 : 0 : if (!_r1)
3842 : 0 : goto next_after_fail1086;
3843 : 0 : res_op0 = _r1;
3844 : : }
3845 : 0 : tree _r;
3846 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
3847 : 0 : if (TREE_SIDE_EFFECTS (captures[4]))
3848 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[4]), _r);
3849 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 780, __FILE__, __LINE__, true);
3850 : 0 : return _r;
3851 : : }
3852 : : next_after_fail1086:;
3853 : : }
3854 : : }
3855 : : return NULL_TREE;
3856 : : }
3857 : :
3858 : : tree
3859 : 2389189 : generic_simplify_535 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3860 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
3861 : : const enum tree_code ARG_UNUSED (cmp))
3862 : : {
3863 : 2389189 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3864 : 2389189 : if (REAL_VALUE_ISNAN (TREE_REAL_CST (captures[1]))
3865 : 2389189 : && (cmp != LTGT_EXPR || ! flag_trapping_math)
3866 : : )
3867 : : {
3868 : 10 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1094;
3869 : 10 : {
3870 : 10 : tree _r;
3871 : 20 : _r = constant_boolean_node (cmp == ORDERED_EXPR || cmp == LTGT_EXPR
3872 : 10 : ? false : true, type);
3873 : 10 : if (TREE_SIDE_EFFECTS (captures[0]))
3874 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
3875 : 10 : if (TREE_SIDE_EFFECTS (captures[1]))
3876 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3877 : 10 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 788, __FILE__, __LINE__, true);
3878 : 10 : return _r;
3879 : : }
3880 : 0 : next_after_fail1094:;
3881 : : }
3882 : : return NULL_TREE;
3883 : : }
3884 : :
3885 : : tree
3886 : 0 : generic_simplify_543 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3887 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
3888 : : const combined_fn ARG_UNUSED (tans),
3889 : : const combined_fn ARG_UNUSED (atans))
3890 : : {
3891 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3892 : 0 : if (flag_unsafe_math_optimizations
3893 : : )
3894 : : {
3895 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1102;
3896 : 0 : {
3897 : 0 : tree _r;
3898 : 0 : _r = captures[0];
3899 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 796, __FILE__, __LINE__, true);
3900 : 0 : return _r;
3901 : : }
3902 : 0 : next_after_fail1102:;
3903 : : }
3904 : : return NULL_TREE;
3905 : : }
3906 : :
3907 : : tree
3908 : 0 : generic_simplify_549 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3909 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
3910 : : const combined_fn ARG_UNUSED (froms),
3911 : : const combined_fn ARG_UNUSED (tos))
3912 : : {
3913 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3914 : 0 : if (optimize && canonicalize_math_p ()
3915 : : )
3916 : : {
3917 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1108;
3918 : 0 : {
3919 : 0 : tree res_op0;
3920 : 0 : {
3921 : 0 : tree _o1[1], _r1;
3922 : 0 : _o1[0] = captures[0];
3923 : 0 : _r1 = maybe_build_call_expr_loc (loc, tos, TREE_TYPE (_o1[0]), 1, _o1[0]);
3924 : 0 : if (!_r1)
3925 : 0 : goto next_after_fail1108;
3926 : 0 : res_op0 = _r1;
3927 : : }
3928 : 0 : tree _r;
3929 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
3930 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 802, __FILE__, __LINE__, true);
3931 : 0 : return _r;
3932 : : }
3933 : : next_after_fail1108:;
3934 : : }
3935 : : return NULL_TREE;
3936 : : }
3937 : :
3938 : : tree
3939 : 0 : generic_simplify_556 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3940 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
3941 : : const combined_fn ARG_UNUSED (fns))
3942 : : {
3943 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3944 : 0 : if (canonicalize_math_p ()
3945 : : )
3946 : : {
3947 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1115;
3948 : 0 : {
3949 : 0 : tree res_op0;
3950 : 0 : res_op0 = captures[0];
3951 : 0 : tree _r;
3952 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
3953 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 809, __FILE__, __LINE__, true);
3954 : 0 : return _r;
3955 : : }
3956 : 0 : next_after_fail1115:;
3957 : : }
3958 : : return NULL_TREE;
3959 : : }
3960 : :
3961 : : tree
3962 : 0 : generic_simplify_563 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3963 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
3964 : : const combined_fn ARG_UNUSED (fmas))
3965 : : {
3966 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3967 : 0 : if (canonicalize_math_after_vectorization_p ()
3968 : : )
3969 : : {
3970 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1122;
3971 : : {
3972 : : tree res_op0;
3973 : : res_op0 = captures[0];
3974 : : tree res_op1;
3975 : : res_op1 = captures[1];
3976 : : tree res_op2;
3977 : : res_op2 = captures[2];
3978 : : tree _r;
3979 : : _r = maybe_build_call_expr_loc (loc, CFN_FNMS, type, 3, res_op0, res_op1, res_op2);
3980 : : if (!_r)
3981 : : goto next_after_fail1122;
3982 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 816, __FILE__, __LINE__, true);
3983 : : return _r;
3984 : : }
3985 : 0 : next_after_fail1122:;
3986 : : }
3987 : 0 : return NULL_TREE;
3988 : : }
3989 : :
3990 : : tree
3991 : 0 : generic_simplify_573 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
3992 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
3993 : : const combined_fn ARG_UNUSED (ctz))
3994 : : {
3995 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3996 : 0 : {
3997 : 0 : tree t = TREE_TYPE (captures[0]);
3998 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1132;
3999 : 0 : {
4000 : 0 : tree res_op0;
4001 : 0 : {
4002 : 0 : tree _o1[1], _r1;
4003 : 0 : _o1[0] = captures[1];
4004 : 0 : if (TREE_TYPE (_o1[0]) != t)
4005 : : {
4006 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, t, _o1[0]);
4007 : : }
4008 : : else
4009 : : _r1 = _o1[0];
4010 : 0 : res_op0 = _r1;
4011 : : }
4012 : 0 : tree _r;
4013 : 0 : _r = maybe_build_call_expr_loc (loc, ctz, type, 1, res_op0);
4014 : 0 : if (!_r)
4015 : 0 : goto next_after_fail1132;
4016 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 824, __FILE__, __LINE__, true);
4017 : : return _r;
4018 : : }
4019 : : next_after_fail1132:;
4020 : : }
4021 : : return NULL_TREE;
4022 : : }
4023 : :
4024 : : tree
4025 : 0 : generic_simplify_583 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
4026 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
4027 : : const combined_fn ARG_UNUSED (bswap),
4028 : : const combined_fn ARG_UNUSED (parity))
4029 : : {
4030 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4031 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
4032 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
4033 : 0 : && TYPE_PRECISION (TREE_TYPE (captures[0]))
4034 : 0 : >= TYPE_PRECISION (TREE_TYPE (captures[1]))
4035 : : )
4036 : : {
4037 : 0 : {
4038 : 0 : tree type0 = TREE_TYPE (captures[0]);
4039 : 0 : tree type1 = TREE_TYPE (captures[1]);
4040 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1143;
4041 : 0 : {
4042 : 0 : tree res_op0;
4043 : 0 : {
4044 : 0 : tree _o1[1], _r1;
4045 : 0 : {
4046 : 0 : tree _o2[1], _r2;
4047 : 0 : _o2[0] = captures[2];
4048 : 0 : if (TREE_TYPE (_o2[0]) != type1)
4049 : : {
4050 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, type1, _o2[0]);
4051 : : }
4052 : : else
4053 : : _r2 = _o2[0];
4054 : 0 : _o1[0] = _r2;
4055 : : }
4056 : 0 : if (TREE_TYPE (_o1[0]) != type0)
4057 : : {
4058 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type0, _o1[0]);
4059 : : }
4060 : : else
4061 : : _r1 = _o1[0];
4062 : 0 : res_op0 = _r1;
4063 : : }
4064 : 0 : tree _r;
4065 : 0 : _r = maybe_build_call_expr_loc (loc, parity, type, 1, res_op0);
4066 : 0 : if (!_r)
4067 : 0 : goto next_after_fail1143;
4068 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 830, __FILE__, __LINE__, true);
4069 : 0 : return _r;
4070 : : }
4071 : : next_after_fail1143:;
4072 : : }
4073 : : }
4074 : : return NULL_TREE;
4075 : : }
4076 : :
4077 : : tree
4078 : 516115 : generic_simplify_FIX_TRUNC_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0)
4079 : : {
4080 : 516115 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4081 : 516115 : {
4082 : 516115 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4083 : 1032230 : if ((
4084 : :
4085 : : && useless_type_conversion_p (type, TREE_TYPE (captures[0])))
4086 : : || (
4087 : : 1
4088 : 516115 : && type == TREE_TYPE (captures[0]))
4089 : : )
4090 : : {
4091 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1223;
4092 : 0 : {
4093 : 0 : tree _r;
4094 : 0 : _r = captures[0];
4095 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 846, __FILE__, __LINE__, true);
4096 : 0 : return _r;
4097 : : }
4098 : 0 : next_after_fail1223:;
4099 : : }
4100 : : }
4101 : 516115 : switch (TREE_CODE (_p0))
4102 : : {
4103 : 14986 : CASE_CONVERT:
4104 : 14986 : {
4105 : 14986 : tree _q20 = TREE_OPERAND (_p0, 0);
4106 : 14986 : {
4107 : 14986 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
4108 : 14986 : {
4109 : 14986 : tree inside_type = TREE_TYPE (captures[1]);
4110 : 14986 : tree inter_type = TREE_TYPE (captures[0]);
4111 : 14986 : int inside_int = INTEGRAL_TYPE_P (inside_type);
4112 : 14986 : int inside_ptr = POINTER_TYPE_P (inside_type);
4113 : 14986 : int inside_float = FLOAT_TYPE_P (inside_type);
4114 : 14986 : int inside_vec = VECTOR_TYPE_P (inside_type);
4115 : 14986 : unsigned int inside_prec = element_precision (inside_type);
4116 : 14986 : int inside_unsignedp = TYPE_UNSIGNED (inside_type);
4117 : 14986 : int inter_int = INTEGRAL_TYPE_P (inter_type);
4118 : 14986 : int inter_ptr = POINTER_TYPE_P (inter_type);
4119 : 14986 : int inter_float = FLOAT_TYPE_P (inter_type);
4120 : 14986 : int inter_vec = VECTOR_TYPE_P (inter_type);
4121 : 14986 : unsigned int inter_prec = element_precision (inter_type);
4122 : 14986 : int inter_unsignedp = TYPE_UNSIGNED (inter_type);
4123 : 14986 : int final_int = INTEGRAL_TYPE_P (type);
4124 : 14986 : int final_ptr = POINTER_TYPE_P (type);
4125 : 14986 : int final_float = FLOAT_TYPE_P (type);
4126 : 14986 : int final_vec = VECTOR_TYPE_P (type);
4127 : 14986 : unsigned int final_prec = element_precision (type);
4128 : 14986 : int final_unsignedp = TYPE_UNSIGNED (type);
4129 : 14986 : if (((
4130 : :
4131 : : && useless_type_conversion_p (type, inside_type))
4132 : : || (
4133 : : 1
4134 : 14986 : && TYPE_MAIN_VARIANT (type) == TYPE_MAIN_VARIANT (inside_type)))
4135 : 0 : && (((inter_int || inter_ptr) && final_int)
4136 : 0 : || (inter_float && final_float))
4137 : 14986 : && inter_prec >= final_prec
4138 : : )
4139 : : {
4140 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1224;
4141 : 0 : {
4142 : 0 : tree res_op0;
4143 : 0 : res_op0 = captures[1];
4144 : 0 : tree _r;
4145 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4146 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 847, __FILE__, __LINE__, true);
4147 : 0 : return _r;
4148 : : }
4149 : 0 : next_after_fail1224:;
4150 : : }
4151 : : else
4152 : : {
4153 : 14986 : if (((inter_int && inside_int) || (inter_float && inside_float))
4154 : 14986 : && (final_int || final_float)
4155 : 14986 : && inter_prec >= inside_prec
4156 : 14768 : && (inter_float || inter_unsignedp == inside_unsignedp)
4157 : : )
4158 : : {
4159 : 14768 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1225;
4160 : 14768 : {
4161 : 14768 : tree res_op0;
4162 : 14768 : res_op0 = captures[1];
4163 : 14768 : tree _r;
4164 : 14768 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4165 : 14768 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 848, __FILE__, __LINE__, true);
4166 : 14768 : return _r;
4167 : : }
4168 : 0 : next_after_fail1225:;
4169 : 0 : }
4170 : : else
4171 : : {
4172 : 218 : if (inside_int && inter_int && final_int
4173 : 0 : && ((inside_prec < inter_prec && inter_prec < final_prec
4174 : 0 : && inside_unsignedp && !inter_unsignedp)
4175 : 0 : || final_prec == inter_prec
4176 : 0 : || (inside_prec < inter_prec && inter_prec > final_prec
4177 : 0 : && !inside_unsignedp && inter_unsignedp))
4178 : : )
4179 : : {
4180 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1226;
4181 : 0 : {
4182 : 0 : tree res_op0;
4183 : 0 : res_op0 = captures[1];
4184 : 0 : tree _r;
4185 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4186 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 849, __FILE__, __LINE__, true);
4187 : 0 : return _r;
4188 : : }
4189 : 0 : next_after_fail1226:;
4190 : 0 : }
4191 : : else
4192 : : {
4193 : 218 : if (! inside_float && ! inter_float && ! final_float
4194 : : && ! inside_vec && ! inter_vec && ! final_vec
4195 : 0 : && (inter_prec >= inside_prec || inter_prec >= final_prec)
4196 : 0 : && ! (inside_int && inter_int
4197 : 0 : && inter_unsignedp != inside_unsignedp
4198 : 0 : && inter_prec < final_prec)
4199 : 0 : && ((inter_unsignedp && inter_prec > inside_prec)
4200 : 0 : == (final_unsignedp && final_prec > inter_prec))
4201 : 0 : && ! (inside_ptr && inter_prec != final_prec)
4202 : 0 : && ! (final_ptr && inside_prec != inter_prec)
4203 : : )
4204 : : {
4205 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1227;
4206 : 0 : {
4207 : 0 : tree res_op0;
4208 : 0 : res_op0 = captures[1];
4209 : 0 : tree _r;
4210 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4211 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 850, __FILE__, __LINE__, true);
4212 : 0 : return _r;
4213 : : }
4214 : 0 : next_after_fail1227:;
4215 : 0 : }
4216 : : else
4217 : : {
4218 : 218 : if (inside_int && inter_int && final_int
4219 : 0 : && final_prec <= inside_prec
4220 : 0 : && inter_prec >= inside_prec
4221 : : )
4222 : : {
4223 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1228;
4224 : 0 : {
4225 : 0 : tree res_op0;
4226 : 0 : res_op0 = captures[1];
4227 : 0 : tree _r;
4228 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4229 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 851, __FILE__, __LINE__, true);
4230 : 0 : return _r;
4231 : : }
4232 : 0 : next_after_fail1228:;
4233 : 0 : }
4234 : : else
4235 : : {
4236 : : if (0
4237 : : && final_int && inter_int && inside_int
4238 : : && final_prec >= inside_prec
4239 : : && inside_prec > inter_prec
4240 : : && inter_unsignedp
4241 : : )
4242 : : {
4243 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1229;
4244 : : {
4245 : : tree res_op0;
4246 : : {
4247 : : tree _o1[2], _r1;
4248 : : _o1[0] = captures[1];
4249 : : _o1[1] = wide_int_to_tree
4250 : : (inside_type,
4251 : : wi::mask (inter_prec, false,
4252 : : TYPE_PRECISION (inside_type)));
4253 : : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4254 : : res_op0 = _r1;
4255 : : }
4256 : : tree _r;
4257 : : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4258 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 852, __FILE__, __LINE__, true);
4259 : : return _r;
4260 : : }
4261 : : next_after_fail1229:;
4262 : : }
4263 : : else
4264 : : {
4265 : : if (0
4266 : : && inside_int && inter_float && final_int &&
4267 : : (unsigned) significand_size (TYPE_MODE (inter_type))
4268 : : >= inside_prec - !inside_unsignedp
4269 : : )
4270 : : {
4271 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1230;
4272 : : {
4273 : : tree res_op0;
4274 : : res_op0 = captures[1];
4275 : : tree _r;
4276 : : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4277 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 853, __FILE__, __LINE__, true);
4278 : : return _r;
4279 : : }
4280 : : next_after_fail1230:;
4281 : : }
4282 : : }
4283 : : }
4284 : : }
4285 : : }
4286 : : }
4287 : : }
4288 : : }
4289 : : }
4290 : 218 : break;
4291 : : }
4292 : 589 : case FLOAT_EXPR:
4293 : 589 : {
4294 : 589 : tree _q20 = TREE_OPERAND (_p0, 0);
4295 : 589 : {
4296 : 589 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
4297 : 589 : {
4298 : 589 : tree inside_type = TREE_TYPE (captures[1]);
4299 : 589 : tree inter_type = TREE_TYPE (captures[0]);
4300 : 589 : int inside_int = INTEGRAL_TYPE_P (inside_type);
4301 : 589 : int inside_ptr = POINTER_TYPE_P (inside_type);
4302 : 589 : int inside_float = FLOAT_TYPE_P (inside_type);
4303 : 589 : int inside_vec = VECTOR_TYPE_P (inside_type);
4304 : 589 : unsigned int inside_prec = element_precision (inside_type);
4305 : 589 : int inside_unsignedp = TYPE_UNSIGNED (inside_type);
4306 : 589 : int inter_int = INTEGRAL_TYPE_P (inter_type);
4307 : 589 : int inter_ptr = POINTER_TYPE_P (inter_type);
4308 : 589 : int inter_float = FLOAT_TYPE_P (inter_type);
4309 : 589 : int inter_vec = VECTOR_TYPE_P (inter_type);
4310 : 589 : unsigned int inter_prec = element_precision (inter_type);
4311 : 589 : int inter_unsignedp = TYPE_UNSIGNED (inter_type);
4312 : 589 : int final_int = INTEGRAL_TYPE_P (type);
4313 : 589 : int final_ptr = POINTER_TYPE_P (type);
4314 : 589 : int final_float = FLOAT_TYPE_P (type);
4315 : 589 : int final_vec = VECTOR_TYPE_P (type);
4316 : 589 : unsigned int final_prec = element_precision (type);
4317 : 589 : int final_unsignedp = TYPE_UNSIGNED (type);
4318 : 589 : if (((
4319 : :
4320 : : && useless_type_conversion_p (type, inside_type))
4321 : : || (
4322 : : 1
4323 : 589 : && TYPE_MAIN_VARIANT (type) == TYPE_MAIN_VARIANT (inside_type)))
4324 : 44 : && (((inter_int || inter_ptr) && final_int)
4325 : 44 : || (inter_float && final_float))
4326 : 589 : && inter_prec >= final_prec
4327 : : )
4328 : : {
4329 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1231;
4330 : 0 : {
4331 : 0 : tree res_op0;
4332 : 0 : res_op0 = captures[1];
4333 : 0 : tree _r;
4334 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4335 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 847, __FILE__, __LINE__, true);
4336 : 0 : return _r;
4337 : : }
4338 : 0 : next_after_fail1231:;
4339 : : }
4340 : : else
4341 : : {
4342 : 589 : if (((inter_int && inside_int) || (inter_float && inside_float))
4343 : 0 : && (final_int || final_float)
4344 : 0 : && inter_prec >= inside_prec
4345 : 0 : && (inter_float || inter_unsignedp == inside_unsignedp)
4346 : : )
4347 : : {
4348 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1232;
4349 : 0 : {
4350 : 0 : tree res_op0;
4351 : 0 : res_op0 = captures[1];
4352 : 0 : tree _r;
4353 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4354 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 848, __FILE__, __LINE__, true);
4355 : 0 : return _r;
4356 : : }
4357 : 0 : next_after_fail1232:;
4358 : 0 : }
4359 : : else
4360 : : {
4361 : 589 : if (inside_int && inter_int && final_int
4362 : 0 : && ((inside_prec < inter_prec && inter_prec < final_prec
4363 : 0 : && inside_unsignedp && !inter_unsignedp)
4364 : 0 : || final_prec == inter_prec
4365 : 0 : || (inside_prec < inter_prec && inter_prec > final_prec
4366 : 0 : && !inside_unsignedp && inter_unsignedp))
4367 : : )
4368 : : {
4369 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1233;
4370 : 0 : {
4371 : 0 : tree res_op0;
4372 : 0 : res_op0 = captures[1];
4373 : 0 : tree _r;
4374 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4375 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 849, __FILE__, __LINE__, true);
4376 : 0 : return _r;
4377 : : }
4378 : 0 : next_after_fail1233:;
4379 : 0 : }
4380 : : else
4381 : : {
4382 : 589 : if (! inside_float && ! inter_float && ! final_float
4383 : : && ! inside_vec && ! inter_vec && ! final_vec
4384 : 0 : && (inter_prec >= inside_prec || inter_prec >= final_prec)
4385 : 0 : && ! (inside_int && inter_int
4386 : 0 : && inter_unsignedp != inside_unsignedp
4387 : 0 : && inter_prec < final_prec)
4388 : 0 : && ((inter_unsignedp && inter_prec > inside_prec)
4389 : 0 : == (final_unsignedp && final_prec > inter_prec))
4390 : 0 : && ! (inside_ptr && inter_prec != final_prec)
4391 : 0 : && ! (final_ptr && inside_prec != inter_prec)
4392 : : )
4393 : : {
4394 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1234;
4395 : 0 : {
4396 : 0 : tree res_op0;
4397 : 0 : res_op0 = captures[1];
4398 : 0 : tree _r;
4399 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
4400 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 850, __FILE__, __LINE__, true);
4401 : 0 : return _r;
4402 : : }
4403 : 0 : next_after_fail1234:;
4404 : 0 : }
4405 : : else
4406 : : {
4407 : 589 : if (inside_int && inter_int && final_int
4408 : 0 : && final_prec <= inside_prec
4409 : 0 : && inter_prec >= inside_prec
4410 : : )
4411 : : {
4412 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1235;
4413 : 0 : {
4414 : 0 : tree res_op0;
4415 : 0 : res_op0 = captures[1];
4416 : 0 : tree _r;
4417 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4418 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 851, __FILE__, __LINE__, true);
4419 : 0 : return _r;
4420 : : }
4421 : 0 : next_after_fail1235:;
4422 : 0 : }
4423 : : else
4424 : : {
4425 : : if (0
4426 : : && final_int && inter_int && inside_int
4427 : : && final_prec >= inside_prec
4428 : : && inside_prec > inter_prec
4429 : : && inter_unsignedp
4430 : : )
4431 : : {
4432 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1236;
4433 : : {
4434 : : tree res_op0;
4435 : : {
4436 : : tree _o1[2], _r1;
4437 : : _o1[0] = captures[1];
4438 : : _o1[1] = wide_int_to_tree
4439 : : (inside_type,
4440 : : wi::mask (inter_prec, false,
4441 : : TYPE_PRECISION (inside_type)));
4442 : : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4443 : : res_op0 = _r1;
4444 : : }
4445 : : tree _r;
4446 : : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4447 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 852, __FILE__, __LINE__, true);
4448 : : return _r;
4449 : : }
4450 : : next_after_fail1236:;
4451 : : }
4452 : : else
4453 : : {
4454 : : if (0
4455 : : && inside_int && inter_float && final_int &&
4456 : : (unsigned) significand_size (TYPE_MODE (inter_type))
4457 : : >= inside_prec - !inside_unsignedp
4458 : : )
4459 : : {
4460 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1237;
4461 : : {
4462 : : tree res_op0;
4463 : : res_op0 = captures[1];
4464 : : tree _r;
4465 : : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4466 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 853, __FILE__, __LINE__, true);
4467 : : return _r;
4468 : : }
4469 : : next_after_fail1237:;
4470 : : }
4471 : : }
4472 : : }
4473 : : }
4474 : : }
4475 : : }
4476 : : }
4477 : : }
4478 : : }
4479 : 589 : break;
4480 : : }
4481 : : default:;
4482 : : }
4483 : : return NULL_TREE;
4484 : : }
4485 : :
4486 : : tree
4487 : 693781 : 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)
4488 : : {
4489 : 693781 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4490 : 693781 : if (integer_zerop (_p1))
4491 : : {
4492 : 536 : {
4493 : 536 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
4494 : 536 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1400;
4495 : 536 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1400;
4496 : 536 : {
4497 : 536 : tree res_op0;
4498 : 536 : res_op0 = captures[0];
4499 : 536 : tree _r;
4500 : 536 : _r = non_lvalue_loc (loc, res_op0);
4501 : 536 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 893, __FILE__, __LINE__, true);
4502 : 536 : return _r;
4503 : : }
4504 : : next_after_fail1400:;
4505 : : }
4506 : : }
4507 : 693245 : switch (TREE_CODE (_p0))
4508 : : {
4509 : 2714 : case LSHIFT_EXPR:
4510 : 2714 : {
4511 : 2714 : tree _q20 = TREE_OPERAND (_p0, 0);
4512 : 2714 : tree _q21 = TREE_OPERAND (_p0, 1);
4513 : 2714 : switch (TREE_CODE (_p1))
4514 : : {
4515 : 10 : case LSHIFT_EXPR:
4516 : 10 : {
4517 : 10 : tree _q50 = TREE_OPERAND (_p1, 0);
4518 : 10 : tree _q51 = TREE_OPERAND (_p1, 1);
4519 : 10 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
4520 : : {
4521 : 1 : {
4522 : 1 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
4523 : 1 : tree res = generic_simplify_63 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4524 : 1 : if (res) return res;
4525 : : }
4526 : : }
4527 : : break;
4528 : : }
4529 : : default:;
4530 : : }
4531 : : break;
4532 : : }
4533 : 8877 : case RSHIFT_EXPR:
4534 : 8877 : {
4535 : 8877 : tree _q20 = TREE_OPERAND (_p0, 0);
4536 : 8877 : tree _q21 = TREE_OPERAND (_p0, 1);
4537 : 8877 : switch (TREE_CODE (_p1))
4538 : : {
4539 : 20 : case RSHIFT_EXPR:
4540 : 20 : {
4541 : 20 : tree _q50 = TREE_OPERAND (_p1, 0);
4542 : 20 : tree _q51 = TREE_OPERAND (_p1, 1);
4543 : 20 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
4544 : : {
4545 : 10 : {
4546 : 10 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
4547 : 10 : tree res = generic_simplify_64 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4548 : 10 : if (res) return res;
4549 : : }
4550 : : }
4551 : : break;
4552 : : }
4553 : : default:;
4554 : : }
4555 : : break;
4556 : : }
4557 : 2836 : case BIT_AND_EXPR:
4558 : 2836 : {
4559 : 2836 : tree _q20 = TREE_OPERAND (_p0, 0);
4560 : 2836 : tree _q21 = TREE_OPERAND (_p0, 1);
4561 : 2836 : switch (TREE_CODE (_p1))
4562 : : {
4563 : 354 : case BIT_AND_EXPR:
4564 : 354 : {
4565 : 354 : tree _q50 = TREE_OPERAND (_p1, 0);
4566 : 354 : tree _q51 = TREE_OPERAND (_p1, 1);
4567 : 354 : {
4568 : 354 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q50, _q51 };
4569 : 354 : tree res = generic_simplify_6 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4570 : 354 : if (res) return res;
4571 : : }
4572 : 354 : {
4573 : 354 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q51, _q50 };
4574 : 354 : tree res = generic_simplify_6 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4575 : 354 : if (res) return res;
4576 : : }
4577 : 354 : {
4578 : 354 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q50, _q51 };
4579 : 354 : tree res = generic_simplify_6 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4580 : 354 : if (res) return res;
4581 : : }
4582 : 354 : {
4583 : 354 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q51, _q50 };
4584 : 354 : tree res = generic_simplify_6 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4585 : 354 : if (res) return res;
4586 : : }
4587 : 354 : break;
4588 : : }
4589 : 2836 : default:;
4590 : : }
4591 : 2836 : switch (TREE_CODE (_q21))
4592 : : {
4593 : 41 : case BIT_NOT_EXPR:
4594 : 41 : {
4595 : 41 : tree _q40 = TREE_OPERAND (_q21, 0);
4596 : 41 : switch (TREE_CODE (_p1))
4597 : : {
4598 : 0 : case BIT_NOT_EXPR:
4599 : 0 : {
4600 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
4601 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
4602 : : {
4603 : 0 : {
4604 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
4605 : 0 : tree res = generic_simplify_149 (loc, type, _p0, _p1, captures);
4606 : 0 : if (res) return res;
4607 : : }
4608 : : }
4609 : : break;
4610 : : }
4611 : : default:;
4612 : : }
4613 : : break;
4614 : : }
4615 : 2836 : default:;
4616 : : }
4617 : 2836 : switch (TREE_CODE (_q20))
4618 : : {
4619 : 90 : case BIT_NOT_EXPR:
4620 : 90 : {
4621 : 90 : tree _q30 = TREE_OPERAND (_q20, 0);
4622 : 90 : switch (TREE_CODE (_p1))
4623 : : {
4624 : 0 : case BIT_NOT_EXPR:
4625 : 0 : {
4626 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
4627 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
4628 : : {
4629 : 0 : {
4630 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q30 };
4631 : 0 : tree res = generic_simplify_149 (loc, type, _p0, _p1, captures);
4632 : 0 : if (res) return res;
4633 : : }
4634 : : }
4635 : : break;
4636 : : }
4637 : 90 : default:;
4638 : : }
4639 : 90 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
4640 : : {
4641 : 0 : {
4642 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q21 };
4643 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures);
4644 : 0 : if (res) return res;
4645 : : }
4646 : : }
4647 : : break;
4648 : : }
4649 : 2836 : default:;
4650 : : }
4651 : 2836 : switch (TREE_CODE (_q21))
4652 : : {
4653 : 41 : case BIT_NOT_EXPR:
4654 : 41 : {
4655 : 41 : tree _q40 = TREE_OPERAND (_q21, 0);
4656 : 41 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
4657 : : {
4658 : 0 : {
4659 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q40, _q20 };
4660 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures);
4661 : 0 : if (res) return res;
4662 : : }
4663 : : }
4664 : : break;
4665 : : }
4666 : : default:;
4667 : : }
4668 : : break;
4669 : : }
4670 : 498 : case BIT_NOT_EXPR:
4671 : 498 : {
4672 : 498 : tree _q20 = TREE_OPERAND (_p0, 0);
4673 : 498 : switch (TREE_CODE (_p1))
4674 : : {
4675 : 51 : case BIT_AND_EXPR:
4676 : 51 : {
4677 : 51 : tree _q40 = TREE_OPERAND (_p1, 0);
4678 : 51 : tree _q41 = TREE_OPERAND (_p1, 1);
4679 : 51 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
4680 : : {
4681 : 0 : switch (TREE_CODE (_q41))
4682 : : {
4683 : 0 : case BIT_NOT_EXPR:
4684 : 0 : {
4685 : 0 : tree _q60 = TREE_OPERAND (_q41, 0);
4686 : 0 : {
4687 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q60 };
4688 : 0 : tree res = generic_simplify_149 (loc, type, _p0, _p1, captures);
4689 : 0 : if (res) return res;
4690 : : }
4691 : 0 : break;
4692 : : }
4693 : : default:;
4694 : : }
4695 : : }
4696 : 51 : switch (TREE_CODE (_q40))
4697 : : {
4698 : 7 : case BIT_NOT_EXPR:
4699 : 7 : {
4700 : 7 : tree _q50 = TREE_OPERAND (_q40, 0);
4701 : 7 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _q20, 0) && types_match (_q41, _q20)))
4702 : : {
4703 : 0 : {
4704 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q50 };
4705 : 0 : tree res = generic_simplify_149 (loc, type, _p0, _p1, captures);
4706 : 0 : if (res) return res;
4707 : : }
4708 : : }
4709 : : break;
4710 : : }
4711 : : default:;
4712 : : }
4713 : : break;
4714 : : }
4715 : : default:;
4716 : : }
4717 : : break;
4718 : : }
4719 : 693234 : default:;
4720 : : }
4721 : 693234 : switch (TREE_CODE (_p1))
4722 : : {
4723 : 697 : case BIT_AND_EXPR:
4724 : 697 : {
4725 : 697 : tree _q30 = TREE_OPERAND (_p1, 0);
4726 : 697 : tree _q31 = TREE_OPERAND (_p1, 1);
4727 : 697 : switch (TREE_CODE (_q30))
4728 : : {
4729 : 57 : case BIT_NOT_EXPR:
4730 : 57 : {
4731 : 57 : tree _q40 = TREE_OPERAND (_q30, 0);
4732 : 57 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
4733 : : {
4734 : 0 : {
4735 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _p0, _q31 };
4736 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures);
4737 : 0 : if (res) return res;
4738 : : }
4739 : : }
4740 : : break;
4741 : : }
4742 : 697 : default:;
4743 : : }
4744 : 697 : switch (TREE_CODE (_q31))
4745 : : {
4746 : 8 : case BIT_NOT_EXPR:
4747 : 8 : {
4748 : 8 : tree _q50 = TREE_OPERAND (_q31, 0);
4749 : 8 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
4750 : : {
4751 : 0 : {
4752 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _p0, _q30 };
4753 : 0 : tree res = generic_simplify_150 (loc, type, _p0, _p1, captures);
4754 : 0 : if (res) return res;
4755 : : }
4756 : : }
4757 : : break;
4758 : : }
4759 : : default:;
4760 : : }
4761 : : break;
4762 : : }
4763 : 693234 : default:;
4764 : : }
4765 : 693234 : switch (TREE_CODE (_p0))
4766 : : {
4767 : 20688 : case PLUS_EXPR:
4768 : 20688 : {
4769 : 20688 : tree _q20 = TREE_OPERAND (_p0, 0);
4770 : 20688 : tree _q21 = TREE_OPERAND (_p0, 1);
4771 : 20688 : if (integer_minus_onep (_q21))
4772 : : {
4773 : 10082 : switch (TREE_CODE (_p1))
4774 : : {
4775 : 11 : case NEGATE_EXPR:
4776 : 11 : {
4777 : 11 : tree _q50 = TREE_OPERAND (_p1, 0);
4778 : 11 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
4779 : : {
4780 : 11 : {
4781 : 11 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
4782 : 11 : tree res = generic_simplify_73 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4783 : 11 : if (res) return res;
4784 : : }
4785 : : }
4786 : : break;
4787 : : }
4788 : : default:;
4789 : : }
4790 : : }
4791 : : break;
4792 : : }
4793 : 142 : case NEGATE_EXPR:
4794 : 142 : {
4795 : 142 : tree _q20 = TREE_OPERAND (_p0, 0);
4796 : 142 : switch (TREE_CODE (_p1))
4797 : : {
4798 : 0 : case PLUS_EXPR:
4799 : 0 : {
4800 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
4801 : 0 : tree _q41 = TREE_OPERAND (_p1, 1);
4802 : 0 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
4803 : : {
4804 : 0 : if (integer_minus_onep (_q41))
4805 : : {
4806 : 0 : {
4807 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
4808 : 0 : tree res = generic_simplify_74 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4809 : 0 : if (res) return res;
4810 : : }
4811 : : }
4812 : : }
4813 : : break;
4814 : : }
4815 : 0 : case MINUS_EXPR:
4816 : 0 : {
4817 : 0 : tree _q40 = TREE_OPERAND (_p1, 0);
4818 : 0 : tree _q41 = TREE_OPERAND (_p1, 1);
4819 : 0 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
4820 : : {
4821 : 0 : if (integer_onep (_q41))
4822 : : {
4823 : 0 : {
4824 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
4825 : 0 : tree res = generic_simplify_75 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4826 : 0 : if (res) return res;
4827 : : }
4828 : : }
4829 : : }
4830 : : break;
4831 : : }
4832 : : default:;
4833 : : }
4834 : : break;
4835 : : }
4836 : 102 : case MINUS_EXPR:
4837 : 102 : {
4838 : 102 : tree _q20 = TREE_OPERAND (_p0, 0);
4839 : 102 : tree _q21 = TREE_OPERAND (_p0, 1);
4840 : 102 : if (integer_onep (_q21))
4841 : : {
4842 : 0 : switch (TREE_CODE (_p1))
4843 : : {
4844 : 0 : case NEGATE_EXPR:
4845 : 0 : {
4846 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
4847 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
4848 : : {
4849 : 0 : {
4850 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
4851 : 0 : tree res = generic_simplify_76 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
4852 : 0 : if (res) return res;
4853 : : }
4854 : : }
4855 : : break;
4856 : : }
4857 : : default:;
4858 : : }
4859 : : }
4860 : : break;
4861 : : }
4862 : 1310 : case BIT_IOR_EXPR:
4863 : 1310 : {
4864 : 1310 : tree _q20 = TREE_OPERAND (_p0, 0);
4865 : 1310 : tree _q21 = TREE_OPERAND (_p0, 1);
4866 : 1310 : switch (TREE_CODE (_q20))
4867 : : {
4868 : 481 : case BIT_NOT_EXPR:
4869 : 481 : {
4870 : 481 : tree _q30 = TREE_OPERAND (_q20, 0);
4871 : 481 : {
4872 : 481 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _p1 };
4873 : 481 : tree res = generic_simplify_151 (loc, type, _p0, _p1, captures);
4874 : 481 : if (res) return res;
4875 : : }
4876 : 480 : break;
4877 : : }
4878 : 1309 : default:;
4879 : : }
4880 : 1309 : switch (TREE_CODE (_q21))
4881 : : {
4882 : 62 : case BIT_NOT_EXPR:
4883 : 62 : {
4884 : 62 : tree _q40 = TREE_OPERAND (_q21, 0);
4885 : 62 : {
4886 : 62 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q40, _q20, _p1 };
4887 : 62 : tree res = generic_simplify_151 (loc, type, _p0, _p1, captures);
4888 : 62 : if (res) return res;
4889 : : }
4890 : 62 : break;
4891 : : }
4892 : : default:;
4893 : : }
4894 : : break;
4895 : : }
4896 : 693222 : default:;
4897 : : }
4898 : 693222 : switch (TREE_CODE (_p1))
4899 : : {
4900 : 521 : case BIT_IOR_EXPR:
4901 : 521 : {
4902 : 521 : tree _q30 = TREE_OPERAND (_p1, 0);
4903 : 521 : tree _q31 = TREE_OPERAND (_p1, 1);
4904 : 521 : switch (TREE_CODE (_q30))
4905 : : {
4906 : 21 : case BIT_NOT_EXPR:
4907 : 21 : {
4908 : 21 : tree _q40 = TREE_OPERAND (_q30, 0);
4909 : 21 : {
4910 : 21 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q30, _q40, _q31, _p0 };
4911 : 21 : tree res = generic_simplify_151 (loc, type, _p0, _p1, captures);
4912 : 21 : if (res) return res;
4913 : : }
4914 : 21 : break;
4915 : : }
4916 : 521 : default:;
4917 : : }
4918 : 521 : switch (TREE_CODE (_q31))
4919 : : {
4920 : 25 : case BIT_NOT_EXPR:
4921 : 25 : {
4922 : 25 : tree _q50 = TREE_OPERAND (_q31, 0);
4923 : 25 : {
4924 : 25 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q31, _q50, _q30, _p0 };
4925 : 25 : tree res = generic_simplify_151 (loc, type, _p0, _p1, captures);
4926 : 25 : if (res) return res;
4927 : : }
4928 : 25 : break;
4929 : : }
4930 : : default:;
4931 : : }
4932 : : break;
4933 : : }
4934 : 693222 : default:;
4935 : : }
4936 : 693222 : switch (TREE_CODE (_p0))
4937 : : {
4938 : 2836 : case BIT_AND_EXPR:
4939 : 2836 : {
4940 : 2836 : tree _q20 = TREE_OPERAND (_p0, 0);
4941 : 2836 : tree _q21 = TREE_OPERAND (_p0, 1);
4942 : 2836 : switch (TREE_CODE (_q20))
4943 : : {
4944 : 90 : case BIT_NOT_EXPR:
4945 : 90 : {
4946 : 90 : tree _q30 = TREE_OPERAND (_q20, 0);
4947 : 90 : {
4948 : 90 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _p1 };
4949 : 90 : tree res = generic_simplify_152 (loc, type, _p0, _p1, captures);
4950 : 90 : if (res) return res;
4951 : : }
4952 : 89 : break;
4953 : : }
4954 : 2835 : default:;
4955 : : }
4956 : 2835 : switch (TREE_CODE (_q21))
4957 : : {
4958 : 41 : case BIT_NOT_EXPR:
4959 : 41 : {
4960 : 41 : tree _q40 = TREE_OPERAND (_q21, 0);
4961 : 41 : {
4962 : 41 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q40, _q20, _p1 };
4963 : 41 : tree res = generic_simplify_152 (loc, type, _p0, _p1, captures);
4964 : 41 : if (res) return res;
4965 : : }
4966 : 41 : break;
4967 : : }
4968 : : default:;
4969 : : }
4970 : : break;
4971 : : }
4972 : 693221 : default:;
4973 : : }
4974 : 693221 : switch (TREE_CODE (_p1))
4975 : : {
4976 : 697 : case BIT_AND_EXPR:
4977 : 697 : {
4978 : 697 : tree _q30 = TREE_OPERAND (_p1, 0);
4979 : 697 : tree _q31 = TREE_OPERAND (_p1, 1);
4980 : 697 : switch (TREE_CODE (_q30))
4981 : : {
4982 : 57 : case BIT_NOT_EXPR:
4983 : 57 : {
4984 : 57 : tree _q40 = TREE_OPERAND (_q30, 0);
4985 : 57 : {
4986 : 57 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q30, _q40, _q31, _p0 };
4987 : 57 : tree res = generic_simplify_152 (loc, type, _p0, _p1, captures);
4988 : 57 : if (res) return res;
4989 : : }
4990 : 57 : break;
4991 : : }
4992 : 697 : default:;
4993 : : }
4994 : 697 : switch (TREE_CODE (_q31))
4995 : : {
4996 : 8 : case BIT_NOT_EXPR:
4997 : 8 : {
4998 : 8 : tree _q50 = TREE_OPERAND (_q31, 0);
4999 : 8 : {
5000 : 8 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q31, _q50, _q30, _p0 };
5001 : 8 : tree res = generic_simplify_152 (loc, type, _p0, _p1, captures);
5002 : 8 : if (res) return res;
5003 : : }
5004 : 8 : break;
5005 : : }
5006 : : default:;
5007 : : }
5008 : : break;
5009 : : }
5010 : 693221 : default:;
5011 : : }
5012 : 693221 : switch (TREE_CODE (_p0))
5013 : : {
5014 : 504248 : CASE_CONVERT:
5015 : 504248 : {
5016 : 504248 : tree _q20 = TREE_OPERAND (_p0, 0);
5017 : 504248 : switch (TREE_CODE (_p1))
5018 : : {
5019 : 500361 : CASE_CONVERT:
5020 : 500361 : {
5021 : 500361 : tree _q40 = TREE_OPERAND (_p1, 0);
5022 : 500361 : {
5023 : 500361 : tree _q40_pops[1];
5024 : 500361 : if (tree_maybe_bit_not (_q40, _q40_pops))
5025 : : {
5026 : 0 : tree _q50 = _q40_pops[0];
5027 : 0 : {
5028 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q50 };
5029 : 0 : tree res = generic_simplify_86 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5030 : 0 : if (res) return res;
5031 : : }
5032 : : }
5033 : : }
5034 : 500361 : break;
5035 : : }
5036 : 504248 : default:;
5037 : : }
5038 : 504248 : {
5039 : 504248 : tree _q20_pops[1];
5040 : 504248 : if (tree_maybe_bit_not (_q20, _q20_pops))
5041 : : {
5042 : 14995 : tree _q30 = _q20_pops[0];
5043 : 14995 : switch (TREE_CODE (_p1))
5044 : : {
5045 : 14945 : CASE_CONVERT:
5046 : 14945 : {
5047 : 14945 : tree _q50 = TREE_OPERAND (_p1, 0);
5048 : 14945 : {
5049 : 14945 : tree captures[2] ATTRIBUTE_UNUSED = { _q50, _q30 };
5050 : 14945 : tree res = generic_simplify_86 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5051 : 14945 : if (res) return res;
5052 : : }
5053 : 14945 : break;
5054 : : }
5055 : : default:;
5056 : : }
5057 : : }
5058 : : }
5059 : 504248 : break;
5060 : : }
5061 : 693221 : default:;
5062 : : }
5063 : 693221 : {
5064 : 693221 : tree _p1_pops[1];
5065 : 693221 : if (tree_maybe_bit_not (_p1, _p1_pops))
5066 : : {
5067 : 8130 : tree _q30 = _p1_pops[0];
5068 : 8130 : {
5069 : 8130 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
5070 : 8130 : tree res = generic_simplify_86 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5071 : 8130 : if (res) return res;
5072 : : }
5073 : : }
5074 : : }
5075 : 693221 : {
5076 : 693221 : tree _p0_pops[1];
5077 : 693221 : if (tree_maybe_bit_not (_p0, _p0_pops))
5078 : : {
5079 : 1039 : tree _q20 = _p0_pops[0];
5080 : 1039 : {
5081 : 1039 : tree captures[2] ATTRIBUTE_UNUSED = { _p1, _q20 };
5082 : 1039 : tree res = generic_simplify_86 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5083 : 1039 : if (res) return res;
5084 : : }
5085 : : }
5086 : : }
5087 : 693200 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
5088 : : {
5089 : 151 : {
5090 : 151 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
5091 : 151 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1401;
5092 : 151 : {
5093 : 151 : tree _r;
5094 : 151 : _r = build_zero_cst (type);
5095 : 151 : if (TREE_SIDE_EFFECTS (captures[0]))
5096 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
5097 : 151 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 948, __FILE__, __LINE__, true);
5098 : 151 : return _r;
5099 : : }
5100 : 0 : next_after_fail1401:;
5101 : : }
5102 : : }
5103 : 693049 : if (integer_all_onesp (_p1))
5104 : : {
5105 : 742 : {
5106 : 742 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5107 : 742 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1402;
5108 : 742 : {
5109 : 742 : tree res_op0;
5110 : 742 : res_op0 = captures[0];
5111 : 742 : tree _r;
5112 : 742 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
5113 : 742 : if (TREE_SIDE_EFFECTS (captures[1]))
5114 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
5115 : 742 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 949, __FILE__, __LINE__, true);
5116 : 742 : return _r;
5117 : : }
5118 : 0 : next_after_fail1402:;
5119 : : }
5120 : : }
5121 : 692307 : switch (TREE_CODE (_p0))
5122 : : {
5123 : 1302 : case BIT_IOR_EXPR:
5124 : 1302 : {
5125 : 1302 : tree _q20 = TREE_OPERAND (_p0, 0);
5126 : 1302 : tree _q21 = TREE_OPERAND (_p0, 1);
5127 : 1302 : switch (TREE_CODE (_p1))
5128 : : {
5129 : 179 : case BIT_IOR_EXPR:
5130 : 179 : {
5131 : 179 : tree _q50 = TREE_OPERAND (_p1, 0);
5132 : 179 : tree _q51 = TREE_OPERAND (_p1, 1);
5133 : 179 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5134 : : {
5135 : 0 : switch (TREE_CODE (_q51))
5136 : : {
5137 : 0 : case BIT_NOT_EXPR:
5138 : 0 : {
5139 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
5140 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
5141 : : {
5142 : 0 : {
5143 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5144 : 0 : tree res = generic_simplify_153 (loc, type, _p0, _p1, captures);
5145 : 0 : if (res) return res;
5146 : : }
5147 : : }
5148 : : break;
5149 : : }
5150 : : default:;
5151 : : }
5152 : : }
5153 : 179 : switch (TREE_CODE (_q50))
5154 : : {
5155 : 20 : case BIT_NOT_EXPR:
5156 : 20 : {
5157 : 20 : tree _q60 = TREE_OPERAND (_q50, 0);
5158 : 20 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
5159 : : {
5160 : 2 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
5161 : : {
5162 : 1 : {
5163 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5164 : 1 : tree res = generic_simplify_153 (loc, type, _p0, _p1, captures);
5165 : 1 : if (res) return res;
5166 : : }
5167 : : }
5168 : : }
5169 : 19 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
5170 : : {
5171 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5172 : : {
5173 : 0 : {
5174 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
5175 : 0 : tree res = generic_simplify_153 (loc, type, _p0, _p1, captures);
5176 : 0 : if (res) return res;
5177 : : }
5178 : : }
5179 : : }
5180 : : break;
5181 : : }
5182 : 178 : default:;
5183 : : }
5184 : 178 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
5185 : : {
5186 : 0 : switch (TREE_CODE (_q51))
5187 : : {
5188 : 0 : case BIT_NOT_EXPR:
5189 : 0 : {
5190 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
5191 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
5192 : : {
5193 : 0 : {
5194 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
5195 : 0 : tree res = generic_simplify_153 (loc, type, _p0, _p1, captures);
5196 : 0 : if (res) return res;
5197 : : }
5198 : : }
5199 : : break;
5200 : : }
5201 : : default:;
5202 : : }
5203 : : }
5204 : : break;
5205 : : }
5206 : 1301 : default:;
5207 : : }
5208 : 1301 : switch (TREE_CODE (_q21))
5209 : : {
5210 : 62 : case BIT_NOT_EXPR:
5211 : 62 : {
5212 : 62 : tree _q40 = TREE_OPERAND (_q21, 0);
5213 : 62 : switch (TREE_CODE (_p1))
5214 : : {
5215 : 9 : case BIT_IOR_EXPR:
5216 : 9 : {
5217 : 9 : tree _q60 = TREE_OPERAND (_p1, 0);
5218 : 9 : tree _q61 = TREE_OPERAND (_p1, 1);
5219 : 9 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
5220 : : {
5221 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
5222 : : {
5223 : 0 : {
5224 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
5225 : 0 : tree res = generic_simplify_153 (loc, type, _p0, _p1, captures);
5226 : 0 : if (res) return res;
5227 : : }
5228 : : }
5229 : : }
5230 : : break;
5231 : : }
5232 : : default:;
5233 : : }
5234 : : break;
5235 : : }
5236 : 1301 : default:;
5237 : : }
5238 : 1301 : switch (TREE_CODE (_q20))
5239 : : {
5240 : 480 : case BIT_NOT_EXPR:
5241 : 480 : {
5242 : 480 : tree _q30 = TREE_OPERAND (_q20, 0);
5243 : 480 : switch (TREE_CODE (_p1))
5244 : : {
5245 : 28 : case BIT_IOR_EXPR:
5246 : 28 : {
5247 : 28 : tree _q60 = TREE_OPERAND (_p1, 0);
5248 : 28 : tree _q61 = TREE_OPERAND (_p1, 1);
5249 : 28 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
5250 : : {
5251 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
5252 : : {
5253 : 0 : {
5254 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q30 };
5255 : 0 : tree res = generic_simplify_153 (loc, type, _p0, _p1, captures);
5256 : 0 : if (res) return res;
5257 : : }
5258 : : }
5259 : : }
5260 : 28 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
5261 : : {
5262 : 9 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
5263 : : {
5264 : 0 : {
5265 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q30 };
5266 : 0 : tree res = generic_simplify_153 (loc, type, _p0, _p1, captures);
5267 : 0 : if (res) return res;
5268 : : }
5269 : : }
5270 : 9 : switch (TREE_CODE (_q61))
5271 : : {
5272 : 0 : case BIT_NOT_EXPR:
5273 : 0 : {
5274 : 0 : tree _q80 = TREE_OPERAND (_q61, 0);
5275 : 0 : if ((_q80 == _q21 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q21, 0) && types_match (_q80, _q21)))
5276 : : {
5277 : 0 : {
5278 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q21 };
5279 : 0 : tree res = generic_simplify_154 (loc, type, _p0, _p1, captures);
5280 : 0 : if (res) return res;
5281 : : }
5282 : : }
5283 : : break;
5284 : : }
5285 : : default:;
5286 : : }
5287 : : }
5288 : 28 : switch (TREE_CODE (_q60))
5289 : : {
5290 : 1 : case BIT_NOT_EXPR:
5291 : 1 : {
5292 : 1 : tree _q70 = TREE_OPERAND (_q60, 0);
5293 : 1 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
5294 : : {
5295 : 1 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
5296 : : {
5297 : 1 : {
5298 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q21 };
5299 : 1 : tree res = generic_simplify_154 (loc, type, _p0, _p1, captures);
5300 : 1 : if (res) return res;
5301 : : }
5302 : : }
5303 : : }
5304 : : break;
5305 : : }
5306 : : default:;
5307 : : }
5308 : : break;
5309 : : }
5310 : 9 : case BIT_XOR_EXPR:
5311 : 9 : {
5312 : 9 : tree _q60 = TREE_OPERAND (_p1, 0);
5313 : 9 : tree _q61 = TREE_OPERAND (_p1, 1);
5314 : 9 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
5315 : : {
5316 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
5317 : : {
5318 : 0 : {
5319 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q21, _p1 };
5320 : 0 : tree res = generic_simplify_155 (loc, type, _p0, _p1, captures);
5321 : 0 : if (res) return res;
5322 : : }
5323 : : }
5324 : : }
5325 : : break;
5326 : : }
5327 : 479 : default:;
5328 : : }
5329 : 479 : {
5330 : 479 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q21, _p1 };
5331 : 479 : tree res = generic_simplify_156 (loc, type, _p0, _p1, captures);
5332 : 479 : if (res) return res;
5333 : : }
5334 : 431 : break;
5335 : : }
5336 : 1252 : default:;
5337 : : }
5338 : 1252 : switch (TREE_CODE (_q21))
5339 : : {
5340 : 62 : case BIT_NOT_EXPR:
5341 : 62 : {
5342 : 62 : tree _q40 = TREE_OPERAND (_q21, 0);
5343 : 62 : switch (TREE_CODE (_p1))
5344 : : {
5345 : 9 : case BIT_IOR_EXPR:
5346 : 9 : {
5347 : 9 : tree _q60 = TREE_OPERAND (_p1, 0);
5348 : 9 : tree _q61 = TREE_OPERAND (_p1, 1);
5349 : 9 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
5350 : : {
5351 : 0 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
5352 : : {
5353 : 0 : {
5354 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
5355 : 0 : tree res = generic_simplify_153 (loc, type, _p0, _p1, captures);
5356 : 0 : if (res) return res;
5357 : : }
5358 : : }
5359 : : }
5360 : : break;
5361 : : }
5362 : 9 : case BIT_XOR_EXPR:
5363 : 9 : {
5364 : 9 : tree _q60 = TREE_OPERAND (_p1, 0);
5365 : 9 : tree _q61 = TREE_OPERAND (_p1, 1);
5366 : 9 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
5367 : : {
5368 : 0 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
5369 : : {
5370 : 0 : {
5371 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q40, _q20, _p1 };
5372 : 0 : tree res = generic_simplify_155 (loc, type, _p0, _p1, captures);
5373 : 0 : if (res) return res;
5374 : : }
5375 : : }
5376 : : }
5377 : : break;
5378 : : }
5379 : : default:;
5380 : : }
5381 : : break;
5382 : : }
5383 : 1252 : default:;
5384 : : }
5385 : 1252 : switch (TREE_CODE (_p1))
5386 : : {
5387 : 65 : case BIT_AND_EXPR:
5388 : 65 : {
5389 : 65 : tree _q50 = TREE_OPERAND (_p1, 0);
5390 : 65 : tree _q51 = TREE_OPERAND (_p1, 1);
5391 : 65 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5392 : : {
5393 : 6 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5394 : : {
5395 : 0 : {
5396 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5397 : 0 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
5398 : 0 : if (res) return res;
5399 : : }
5400 : : }
5401 : : }
5402 : : break;
5403 : : }
5404 : 36 : case BIT_XOR_EXPR:
5405 : 36 : {
5406 : 36 : tree _q50 = TREE_OPERAND (_p1, 0);
5407 : 36 : tree _q51 = TREE_OPERAND (_p1, 1);
5408 : 36 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5409 : : {
5410 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5411 : : {
5412 : 0 : {
5413 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5414 : 0 : tree res = generic_simplify_158 (loc, type, _p0, _p1, captures);
5415 : 0 : if (res) return res;
5416 : : }
5417 : : }
5418 : : }
5419 : : break;
5420 : : }
5421 : 1252 : default:;
5422 : : }
5423 : 1252 : switch (TREE_CODE (_q21))
5424 : : {
5425 : 62 : case BIT_NOT_EXPR:
5426 : 62 : {
5427 : 62 : tree _q40 = TREE_OPERAND (_q21, 0);
5428 : 62 : switch (TREE_CODE (_p1))
5429 : : {
5430 : 9 : case BIT_IOR_EXPR:
5431 : 9 : {
5432 : 9 : tree _q60 = TREE_OPERAND (_p1, 0);
5433 : 9 : tree _q61 = TREE_OPERAND (_p1, 1);
5434 : 9 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
5435 : : {
5436 : 0 : switch (TREE_CODE (_q61))
5437 : : {
5438 : 0 : case BIT_NOT_EXPR:
5439 : 0 : {
5440 : 0 : tree _q80 = TREE_OPERAND (_q61, 0);
5441 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
5442 : : {
5443 : 0 : {
5444 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q20 };
5445 : 0 : tree res = generic_simplify_154 (loc, type, _p0, _p1, captures);
5446 : 0 : if (res) return res;
5447 : : }
5448 : : }
5449 : : break;
5450 : : }
5451 : : default:;
5452 : : }
5453 : : }
5454 : 9 : switch (TREE_CODE (_q60))
5455 : : {
5456 : 0 : case BIT_NOT_EXPR:
5457 : 0 : {
5458 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
5459 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
5460 : : {
5461 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
5462 : : {
5463 : 0 : {
5464 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q20 };
5465 : 0 : tree res = generic_simplify_154 (loc, type, _p0, _p1, captures);
5466 : 0 : if (res) return res;
5467 : : }
5468 : : }
5469 : : }
5470 : : break;
5471 : : }
5472 : : default:;
5473 : : }
5474 : : break;
5475 : : }
5476 : : default:;
5477 : : }
5478 : : break;
5479 : : }
5480 : 1252 : default:;
5481 : : }
5482 : 1252 : switch (TREE_CODE (_p1))
5483 : : {
5484 : 24 : CASE_CONVERT:
5485 : 24 : {
5486 : 24 : tree _q50 = TREE_OPERAND (_p1, 0);
5487 : 24 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
5488 : : {
5489 : 0 : {
5490 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q20 };
5491 : 0 : tree res = generic_simplify_159 (loc, type, _p0, _p1, captures);
5492 : 0 : if (res) return res;
5493 : : }
5494 : : }
5495 : 24 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q21, 0))
5496 : : {
5497 : 0 : {
5498 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q21 };
5499 : 0 : tree res = generic_simplify_159 (loc, type, _p0, _p1, captures);
5500 : 0 : if (res) return res;
5501 : : }
5502 : : }
5503 : : break;
5504 : : }
5505 : 1252 : default:;
5506 : : }
5507 : 1252 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q20, 0))
5508 : : {
5509 : 3 : {
5510 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q20 };
5511 : 3 : tree res = generic_simplify_159 (loc, type, _p0, _p1, captures);
5512 : 3 : if (res) return res;
5513 : : }
5514 : : }
5515 : 1249 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q21, 0))
5516 : : {
5517 : 3 : {
5518 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q21 };
5519 : 3 : tree res = generic_simplify_159 (loc, type, _p0, _p1, captures);
5520 : 3 : if (res) return res;
5521 : : }
5522 : : }
5523 : 1246 : {
5524 : 1246 : tree _q20_pops[1];
5525 : 1246 : if (tree_nop_convert (_q20, _q20_pops))
5526 : : {
5527 : 8 : tree _q30 = _q20_pops[0];
5528 : 8 : switch (TREE_CODE (_q30))
5529 : : {
5530 : 8 : case BIT_NOT_EXPR:
5531 : 8 : {
5532 : 8 : tree _q40 = TREE_OPERAND (_q30, 0);
5533 : 8 : {
5534 : 8 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q21, _p1 };
5535 : 8 : tree res = generic_simplify_156 (loc, type, _p0, _p1, captures);
5536 : 8 : if (res) return res;
5537 : : }
5538 : 0 : break;
5539 : : }
5540 : : default:;
5541 : : }
5542 : : }
5543 : : }
5544 : 1238 : switch (TREE_CODE (_q21))
5545 : : {
5546 : 62 : case BIT_NOT_EXPR:
5547 : 62 : {
5548 : 62 : tree _q40 = TREE_OPERAND (_q21, 0);
5549 : 62 : {
5550 : 62 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q20, _p1 };
5551 : 62 : tree res = generic_simplify_156 (loc, type, _p0, _p1, captures);
5552 : 62 : if (res) return res;
5553 : : }
5554 : 54 : break;
5555 : : }
5556 : 1230 : default:;
5557 : : }
5558 : 1230 : {
5559 : 1230 : tree _q21_pops[1];
5560 : 1230 : if (tree_nop_convert (_q21, _q21_pops))
5561 : : {
5562 : 0 : tree _q40 = _q21_pops[0];
5563 : 0 : switch (TREE_CODE (_q40))
5564 : : {
5565 : 0 : case BIT_NOT_EXPR:
5566 : 0 : {
5567 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
5568 : 0 : {
5569 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q20, _p1 };
5570 : 0 : tree res = generic_simplify_156 (loc, type, _p0, _p1, captures);
5571 : 0 : if (res) return res;
5572 : : }
5573 : 0 : break;
5574 : : }
5575 : : default:;
5576 : : }
5577 : : }
5578 : : }
5579 : 1230 : break;
5580 : : }
5581 : 3881 : case BIT_XOR_EXPR:
5582 : 3881 : {
5583 : 3881 : tree _q20 = TREE_OPERAND (_p0, 0);
5584 : 3881 : tree _q21 = TREE_OPERAND (_p0, 1);
5585 : 3881 : switch (TREE_CODE (_p1))
5586 : : {
5587 : 203 : case BIT_IOR_EXPR:
5588 : 203 : {
5589 : 203 : tree _q50 = TREE_OPERAND (_p1, 0);
5590 : 203 : tree _q51 = TREE_OPERAND (_p1, 1);
5591 : 203 : switch (TREE_CODE (_q50))
5592 : : {
5593 : 1 : case BIT_NOT_EXPR:
5594 : 1 : {
5595 : 1 : tree _q60 = TREE_OPERAND (_q50, 0);
5596 : 1 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
5597 : : {
5598 : 1 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5599 : : {
5600 : 1 : {
5601 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q20, _q21, _p0 };
5602 : 1 : tree res = generic_simplify_155 (loc, type, _p0, _p1, captures);
5603 : 1 : if (res) return res;
5604 : : }
5605 : : }
5606 : : }
5607 : : break;
5608 : : }
5609 : 202 : default:;
5610 : : }
5611 : 202 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
5612 : : {
5613 : 0 : switch (TREE_CODE (_q51))
5614 : : {
5615 : 0 : case BIT_NOT_EXPR:
5616 : 0 : {
5617 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
5618 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
5619 : : {
5620 : 0 : {
5621 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q20, _q21, _p0 };
5622 : 0 : tree res = generic_simplify_155 (loc, type, _p0, _p1, captures);
5623 : 0 : if (res) return res;
5624 : : }
5625 : : }
5626 : : break;
5627 : : }
5628 : : default:;
5629 : : }
5630 : : }
5631 : 202 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5632 : : {
5633 : 1 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5634 : : {
5635 : 0 : {
5636 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5637 : 0 : tree res = generic_simplify_158 (loc, type, _p0, _p1, captures);
5638 : 0 : if (res) return res;
5639 : : }
5640 : : }
5641 : : }
5642 : : break;
5643 : : }
5644 : 41 : case BIT_AND_EXPR:
5645 : 41 : {
5646 : 41 : tree _q50 = TREE_OPERAND (_p1, 0);
5647 : 41 : tree _q51 = TREE_OPERAND (_p1, 1);
5648 : 41 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5649 : : {
5650 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5651 : : {
5652 : 0 : {
5653 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5654 : 0 : tree res = generic_simplify_8 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5655 : 0 : if (res) return res;
5656 : : }
5657 : : }
5658 : : }
5659 : : break;
5660 : : }
5661 : 198 : CASE_CONVERT:
5662 : 198 : {
5663 : 198 : tree _q50 = TREE_OPERAND (_p1, 0);
5664 : 198 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q21, 0))
5665 : : {
5666 : 0 : {
5667 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q21 };
5668 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
5669 : 0 : if (res) return res;
5670 : : }
5671 : : }
5672 : 198 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
5673 : : {
5674 : 0 : {
5675 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q20 };
5676 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
5677 : 0 : if (res) return res;
5678 : : }
5679 : : }
5680 : : break;
5681 : : }
5682 : 3880 : default:;
5683 : : }
5684 : 3880 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q21, 0))
5685 : : {
5686 : 0 : {
5687 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q21 };
5688 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
5689 : 0 : if (res) return res;
5690 : : }
5691 : : }
5692 : 3880 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q20, 0))
5693 : : {
5694 : 11 : {
5695 : 11 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q20 };
5696 : 11 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
5697 : 11 : if (res) return res;
5698 : : }
5699 : : }
5700 : : break;
5701 : : }
5702 : 2835 : case BIT_AND_EXPR:
5703 : 2835 : {
5704 : 2835 : tree _q20 = TREE_OPERAND (_p0, 0);
5705 : 2835 : tree _q21 = TREE_OPERAND (_p0, 1);
5706 : 2835 : switch (TREE_CODE (_p1))
5707 : : {
5708 : 74 : case BIT_IOR_EXPR:
5709 : 74 : {
5710 : 74 : tree _q50 = TREE_OPERAND (_p1, 0);
5711 : 74 : tree _q51 = TREE_OPERAND (_p1, 1);
5712 : 74 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5713 : : {
5714 : 18 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5715 : : {
5716 : 0 : {
5717 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5718 : 0 : tree res = generic_simplify_157 (loc, type, _p0, _p1, captures);
5719 : 0 : if (res) return res;
5720 : : }
5721 : : }
5722 : : }
5723 : : break;
5724 : : }
5725 : 30 : case BIT_XOR_EXPR:
5726 : 30 : {
5727 : 30 : tree _q50 = TREE_OPERAND (_p1, 0);
5728 : 30 : tree _q51 = TREE_OPERAND (_p1, 1);
5729 : 30 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5730 : : {
5731 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5732 : : {
5733 : 0 : {
5734 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5735 : 0 : tree res = generic_simplify_8 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5736 : 0 : if (res) return res;
5737 : : }
5738 : : }
5739 : : }
5740 : : break;
5741 : : }
5742 : 2835 : default:;
5743 : : }
5744 : 2835 : switch (TREE_CODE (_q21))
5745 : : {
5746 : 1010 : case INTEGER_CST:
5747 : 1010 : {
5748 : 1010 : switch (TREE_CODE (_p1))
5749 : : {
5750 : 15 : CASE_CONVERT:
5751 : 15 : {
5752 : 15 : tree _q50 = TREE_OPERAND (_p1, 0);
5753 : 15 : switch (TREE_CODE (_q50))
5754 : : {
5755 : 0 : case BIT_AND_EXPR:
5756 : 0 : {
5757 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
5758 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
5759 : 0 : switch (TREE_CODE (_q61))
5760 : : {
5761 : 0 : case INTEGER_CST:
5762 : 0 : {
5763 : 0 : {
5764 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50, _q60, _q61 };
5765 : 0 : tree res = generic_simplify_10 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5766 : 0 : if (res) return res;
5767 : : }
5768 : 0 : break;
5769 : : }
5770 : : default:;
5771 : : }
5772 : : break;
5773 : : }
5774 : : default:;
5775 : : }
5776 : : break;
5777 : : }
5778 : 210 : case BIT_AND_EXPR:
5779 : 210 : {
5780 : 210 : tree _q50 = TREE_OPERAND (_p1, 0);
5781 : 210 : tree _q51 = TREE_OPERAND (_p1, 1);
5782 : 210 : switch (TREE_CODE (_q51))
5783 : : {
5784 : 210 : case INTEGER_CST:
5785 : 210 : {
5786 : 210 : {
5787 : 210 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
5788 : 210 : tree res = generic_simplify_10 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5789 : 210 : if (res) return res;
5790 : : }
5791 : 209 : break;
5792 : : }
5793 : : default:;
5794 : : }
5795 : : break;
5796 : : }
5797 : : default:;
5798 : : }
5799 : : break;
5800 : : }
5801 : : default:;
5802 : : }
5803 : : break;
5804 : : }
5805 : 504211 : CASE_CONVERT:
5806 : 504211 : {
5807 : 504211 : tree _q20 = TREE_OPERAND (_p0, 0);
5808 : 504211 : switch (TREE_CODE (_q20))
5809 : : {
5810 : 24 : case BIT_AND_EXPR:
5811 : 24 : {
5812 : 24 : tree _q30 = TREE_OPERAND (_q20, 0);
5813 : 24 : tree _q31 = TREE_OPERAND (_q20, 1);
5814 : 24 : switch (TREE_CODE (_q31))
5815 : : {
5816 : 0 : case INTEGER_CST:
5817 : 0 : {
5818 : 0 : switch (TREE_CODE (_p1))
5819 : : {
5820 : 0 : CASE_CONVERT:
5821 : 0 : {
5822 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
5823 : 0 : switch (TREE_CODE (_q60))
5824 : : {
5825 : 0 : case BIT_AND_EXPR:
5826 : 0 : {
5827 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
5828 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
5829 : 0 : switch (TREE_CODE (_q71))
5830 : : {
5831 : 0 : case INTEGER_CST:
5832 : 0 : {
5833 : 0 : {
5834 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q60, _q70, _q71 };
5835 : 0 : tree res = generic_simplify_10 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5836 : 0 : if (res) return res;
5837 : : }
5838 : 0 : break;
5839 : : }
5840 : : default:;
5841 : : }
5842 : : break;
5843 : : }
5844 : : default:;
5845 : : }
5846 : : break;
5847 : : }
5848 : 0 : case BIT_AND_EXPR:
5849 : 0 : {
5850 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
5851 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
5852 : 0 : switch (TREE_CODE (_q61))
5853 : : {
5854 : 0 : case INTEGER_CST:
5855 : 0 : {
5856 : 0 : {
5857 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _p1, _q60, _q61 };
5858 : 0 : tree res = generic_simplify_10 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
5859 : 0 : if (res) return res;
5860 : : }
5861 : 0 : break;
5862 : : }
5863 : : default:;
5864 : : }
5865 : : break;
5866 : : }
5867 : : default:;
5868 : : }
5869 : : break;
5870 : : }
5871 : : default:;
5872 : : }
5873 : : break;
5874 : : }
5875 : 17 : case BIT_IOR_EXPR:
5876 : 17 : {
5877 : 17 : tree _q30 = TREE_OPERAND (_q20, 0);
5878 : 17 : tree _q31 = TREE_OPERAND (_q20, 1);
5879 : 17 : switch (TREE_CODE (_p1))
5880 : : {
5881 : 16 : CASE_CONVERT:
5882 : 16 : {
5883 : 16 : tree _q60 = TREE_OPERAND (_p1, 0);
5884 : 16 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q30, 0))
5885 : : {
5886 : 0 : {
5887 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q30 };
5888 : 0 : tree res = generic_simplify_159 (loc, type, _p0, _p1, captures);
5889 : 0 : if (res) return res;
5890 : : }
5891 : : }
5892 : 16 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q31, 0))
5893 : : {
5894 : 0 : {
5895 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q31 };
5896 : 0 : tree res = generic_simplify_159 (loc, type, _p0, _p1, captures);
5897 : 0 : if (res) return res;
5898 : : }
5899 : : }
5900 : : break;
5901 : : }
5902 : 17 : default:;
5903 : : }
5904 : 17 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q30, 0))
5905 : : {
5906 : 0 : {
5907 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q30 };
5908 : 0 : tree res = generic_simplify_159 (loc, type, _p0, _p1, captures);
5909 : 0 : if (res) return res;
5910 : : }
5911 : : }
5912 : 17 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q31, 0))
5913 : : {
5914 : 0 : {
5915 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q31 };
5916 : 0 : tree res = generic_simplify_159 (loc, type, _p0, _p1, captures);
5917 : 0 : if (res) return res;
5918 : : }
5919 : : }
5920 : : break;
5921 : : }
5922 : 504211 : default:;
5923 : : }
5924 : 504211 : switch (TREE_CODE (_p1))
5925 : : {
5926 : 500354 : CASE_CONVERT:
5927 : 500354 : {
5928 : 500354 : tree _q40 = TREE_OPERAND (_p1, 0);
5929 : 500354 : switch (TREE_CODE (_q40))
5930 : : {
5931 : 0 : case BIT_IOR_EXPR:
5932 : 0 : {
5933 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
5934 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
5935 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
5936 : : {
5937 : 0 : {
5938 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q51, _q20 };
5939 : 0 : tree res = generic_simplify_159 (loc, type, _p0, _p1, captures);
5940 : 0 : if (res) return res;
5941 : : }
5942 : : }
5943 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q20, 0))
5944 : : {
5945 : 0 : {
5946 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q51, _q50, _q20 };
5947 : 0 : tree res = generic_simplify_159 (loc, type, _p0, _p1, captures);
5948 : 0 : if (res) return res;
5949 : : }
5950 : : }
5951 : : break;
5952 : : }
5953 : : default:;
5954 : : }
5955 : : break;
5956 : : }
5957 : 26 : case BIT_IOR_EXPR:
5958 : 26 : {
5959 : 26 : tree _q40 = TREE_OPERAND (_p1, 0);
5960 : 26 : tree _q41 = TREE_OPERAND (_p1, 1);
5961 : 26 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _q20, 0))
5962 : : {
5963 : 0 : {
5964 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _q20 };
5965 : 0 : tree res = generic_simplify_159 (loc, type, _p0, _p1, captures);
5966 : 0 : if (res) return res;
5967 : : }
5968 : : }
5969 : 26 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _q20, 0))
5970 : : {
5971 : 0 : {
5972 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _q20 };
5973 : 0 : tree res = generic_simplify_159 (loc, type, _p0, _p1, captures);
5974 : 0 : if (res) return res;
5975 : : }
5976 : : }
5977 : : break;
5978 : : }
5979 : : default:;
5980 : : }
5981 : : break;
5982 : : }
5983 : 692222 : default:;
5984 : : }
5985 : 692222 : switch (TREE_CODE (_p1))
5986 : : {
5987 : 543744 : CASE_CONVERT:
5988 : 543744 : {
5989 : 543744 : tree _q30 = TREE_OPERAND (_p1, 0);
5990 : 543744 : switch (TREE_CODE (_q30))
5991 : : {
5992 : 6 : case BIT_IOR_EXPR:
5993 : 6 : {
5994 : 6 : tree _q40 = TREE_OPERAND (_q30, 0);
5995 : 6 : tree _q41 = TREE_OPERAND (_q30, 1);
5996 : 6 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _p0, 0))
5997 : : {
5998 : 0 : {
5999 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _p0 };
6000 : 0 : tree res = generic_simplify_159 (loc, type, _p0, _p1, captures);
6001 : 0 : if (res) return res;
6002 : : }
6003 : : }
6004 : 6 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _p0, 0))
6005 : : {
6006 : 0 : {
6007 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _p0 };
6008 : 0 : tree res = generic_simplify_159 (loc, type, _p0, _p1, captures);
6009 : 0 : if (res) return res;
6010 : : }
6011 : : }
6012 : : break;
6013 : : }
6014 : : default:;
6015 : : }
6016 : : break;
6017 : : }
6018 : 518 : case BIT_IOR_EXPR:
6019 : 518 : {
6020 : 518 : tree _q30 = TREE_OPERAND (_p1, 0);
6021 : 518 : tree _q31 = TREE_OPERAND (_p1, 1);
6022 : 518 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || operand_equal_p (_q30, _p0, 0))
6023 : : {
6024 : 1 : {
6025 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p0 };
6026 : 1 : tree res = generic_simplify_159 (loc, type, _p0, _p1, captures);
6027 : 1 : if (res) return res;
6028 : : }
6029 : : }
6030 : 517 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || operand_equal_p (_q31, _p0, 0))
6031 : : {
6032 : 1 : {
6033 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _p0 };
6034 : 1 : tree res = generic_simplify_159 (loc, type, _p0, _p1, captures);
6035 : 1 : if (res) return res;
6036 : : }
6037 : : }
6038 : : break;
6039 : : }
6040 : 692220 : default:;
6041 : : }
6042 : 692220 : {
6043 : 692220 : tree _p0_pops[1];
6044 : 692220 : if (tree_nop_convert (_p0, _p0_pops))
6045 : : {
6046 : 485456 : tree _q20 = _p0_pops[0];
6047 : 485456 : switch (TREE_CODE (_q20))
6048 : : {
6049 : 16 : case BIT_IOR_EXPR:
6050 : 16 : {
6051 : 16 : tree _q30 = TREE_OPERAND (_q20, 0);
6052 : 16 : tree _q31 = TREE_OPERAND (_q20, 1);
6053 : 16 : {
6054 : 16 : tree _q30_pops[1];
6055 : 16 : if (tree_nop_convert (_q30, _q30_pops))
6056 : : {
6057 : 0 : tree _q40 = _q30_pops[0];
6058 : 0 : switch (TREE_CODE (_q40))
6059 : : {
6060 : 0 : case BIT_NOT_EXPR:
6061 : 0 : {
6062 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
6063 : 0 : {
6064 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q31, _p1 };
6065 : 0 : tree res = generic_simplify_156 (loc, type, _p0, _p1, captures);
6066 : 0 : if (res) return res;
6067 : : }
6068 : 0 : break;
6069 : : }
6070 : : default:;
6071 : : }
6072 : : }
6073 : : }
6074 : 16 : {
6075 : 16 : tree _q31_pops[1];
6076 : 16 : if (tree_nop_convert (_q31, _q31_pops))
6077 : : {
6078 : 0 : tree _q50 = _q31_pops[0];
6079 : 0 : switch (TREE_CODE (_q50))
6080 : : {
6081 : 0 : case BIT_NOT_EXPR:
6082 : 0 : {
6083 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
6084 : 0 : {
6085 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q60, _q30, _p1 };
6086 : 0 : tree res = generic_simplify_156 (loc, type, _p0, _p1, captures);
6087 : 0 : if (res) return res;
6088 : : }
6089 : 0 : break;
6090 : : }
6091 : : default:;
6092 : : }
6093 : : }
6094 : : }
6095 : 16 : switch (TREE_CODE (_q30))
6096 : : {
6097 : 16 : case BIT_NOT_EXPR:
6098 : 16 : {
6099 : 16 : tree _q40 = TREE_OPERAND (_q30, 0);
6100 : 16 : {
6101 : 16 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q31, _p1 };
6102 : 16 : tree res = generic_simplify_156 (loc, type, _p0, _p1, captures);
6103 : 16 : if (res) return res;
6104 : : }
6105 : 0 : break;
6106 : : }
6107 : 0 : default:;
6108 : : }
6109 : 0 : switch (TREE_CODE (_q31))
6110 : : {
6111 : 0 : case BIT_NOT_EXPR:
6112 : 0 : {
6113 : 0 : tree _q50 = TREE_OPERAND (_q31, 0);
6114 : 0 : {
6115 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q30, _p1 };
6116 : 0 : tree res = generic_simplify_156 (loc, type, _p0, _p1, captures);
6117 : 0 : if (res) return res;
6118 : : }
6119 : 0 : break;
6120 : : }
6121 : : default:;
6122 : : }
6123 : : break;
6124 : : }
6125 : : default:;
6126 : : }
6127 : : }
6128 : : }
6129 : 692204 : switch (TREE_CODE (_p1))
6130 : : {
6131 : 516 : case BIT_IOR_EXPR:
6132 : 516 : {
6133 : 516 : tree _q30 = TREE_OPERAND (_p1, 0);
6134 : 516 : tree _q31 = TREE_OPERAND (_p1, 1);
6135 : 516 : {
6136 : 516 : tree _q30_pops[1];
6137 : 516 : if (tree_nop_convert (_q30, _q30_pops))
6138 : : {
6139 : 2 : tree _q40 = _q30_pops[0];
6140 : 2 : switch (TREE_CODE (_q40))
6141 : : {
6142 : 0 : case BIT_NOT_EXPR:
6143 : 0 : {
6144 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
6145 : 0 : {
6146 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q31, _p0 };
6147 : 0 : tree res = generic_simplify_156 (loc, type, _p0, _p1, captures);
6148 : 0 : if (res) return res;
6149 : : }
6150 : 0 : break;
6151 : : }
6152 : : default:;
6153 : : }
6154 : : }
6155 : : }
6156 : 516 : {
6157 : 516 : tree _q31_pops[1];
6158 : 516 : if (tree_nop_convert (_q31, _q31_pops))
6159 : : {
6160 : 2 : tree _q50 = _q31_pops[0];
6161 : 2 : switch (TREE_CODE (_q50))
6162 : : {
6163 : 0 : case BIT_NOT_EXPR:
6164 : 0 : {
6165 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
6166 : 0 : {
6167 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q60, _q30, _p0 };
6168 : 0 : tree res = generic_simplify_156 (loc, type, _p0, _p1, captures);
6169 : 0 : if (res) return res;
6170 : : }
6171 : 0 : break;
6172 : : }
6173 : : default:;
6174 : : }
6175 : : }
6176 : : }
6177 : 516 : switch (TREE_CODE (_q30))
6178 : : {
6179 : 18 : case BIT_NOT_EXPR:
6180 : 18 : {
6181 : 18 : tree _q40 = TREE_OPERAND (_q30, 0);
6182 : 18 : {
6183 : 18 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q31, _p0 };
6184 : 18 : tree res = generic_simplify_156 (loc, type, _p0, _p1, captures);
6185 : 18 : if (res) return res;
6186 : : }
6187 : 18 : break;
6188 : : }
6189 : 516 : default:;
6190 : : }
6191 : 516 : switch (TREE_CODE (_q31))
6192 : : {
6193 : 25 : case BIT_NOT_EXPR:
6194 : 25 : {
6195 : 25 : tree _q50 = TREE_OPERAND (_q31, 0);
6196 : 25 : {
6197 : 25 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q30, _p0 };
6198 : 25 : tree res = generic_simplify_156 (loc, type, _p0, _p1, captures);
6199 : 25 : if (res) return res;
6200 : : }
6201 : 17 : break;
6202 : : }
6203 : : default:;
6204 : : }
6205 : : break;
6206 : : }
6207 : 692196 : default:;
6208 : : }
6209 : 692196 : {
6210 : 692196 : tree _p1_pops[1];
6211 : 692196 : if (tree_nop_convert (_p1, _p1_pops))
6212 : : {
6213 : 527271 : tree _q30 = _p1_pops[0];
6214 : 527271 : switch (TREE_CODE (_q30))
6215 : : {
6216 : 0 : case BIT_IOR_EXPR:
6217 : 0 : {
6218 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
6219 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
6220 : 0 : {
6221 : 0 : tree _q40_pops[1];
6222 : 0 : if (tree_nop_convert (_q40, _q40_pops))
6223 : : {
6224 : 0 : tree _q50 = _q40_pops[0];
6225 : 0 : switch (TREE_CODE (_q50))
6226 : : {
6227 : 0 : case BIT_NOT_EXPR:
6228 : 0 : {
6229 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
6230 : 0 : {
6231 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q60, _q41, _p0 };
6232 : 0 : tree res = generic_simplify_156 (loc, type, _p0, _p1, captures);
6233 : 0 : if (res) return res;
6234 : : }
6235 : 0 : break;
6236 : : }
6237 : : default:;
6238 : : }
6239 : : }
6240 : : }
6241 : 0 : {
6242 : 0 : tree _q41_pops[1];
6243 : 0 : if (tree_nop_convert (_q41, _q41_pops))
6244 : : {
6245 : 0 : tree _q60 = _q41_pops[0];
6246 : 0 : switch (TREE_CODE (_q60))
6247 : : {
6248 : 0 : case BIT_NOT_EXPR:
6249 : 0 : {
6250 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
6251 : 0 : {
6252 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q70, _q40, _p0 };
6253 : 0 : tree res = generic_simplify_156 (loc, type, _p0, _p1, captures);
6254 : 0 : if (res) return res;
6255 : : }
6256 : 0 : break;
6257 : : }
6258 : : default:;
6259 : : }
6260 : : }
6261 : : }
6262 : 0 : switch (TREE_CODE (_q40))
6263 : : {
6264 : 0 : case BIT_NOT_EXPR:
6265 : 0 : {
6266 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
6267 : 0 : {
6268 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q41, _p0 };
6269 : 0 : tree res = generic_simplify_156 (loc, type, _p0, _p1, captures);
6270 : 0 : if (res) return res;
6271 : : }
6272 : 0 : break;
6273 : : }
6274 : 0 : default:;
6275 : : }
6276 : 0 : switch (TREE_CODE (_q41))
6277 : : {
6278 : 0 : case BIT_NOT_EXPR:
6279 : 0 : {
6280 : 0 : tree _q60 = TREE_OPERAND (_q41, 0);
6281 : 0 : {
6282 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q60, _q40, _p0 };
6283 : 0 : tree res = generic_simplify_156 (loc, type, _p0, _p1, captures);
6284 : 0 : if (res) return res;
6285 : : }
6286 : 0 : break;
6287 : : }
6288 : : default:;
6289 : : }
6290 : : break;
6291 : : }
6292 : : default:;
6293 : : }
6294 : : }
6295 : : }
6296 : 692196 : switch (TREE_CODE (_p0))
6297 : : {
6298 : 504187 : CASE_CONVERT:
6299 : 504187 : {
6300 : 504187 : tree _q20 = TREE_OPERAND (_p0, 0);
6301 : 504187 : switch (TREE_CODE (_q20))
6302 : : {
6303 : 50 : case BIT_NOT_EXPR:
6304 : 50 : {
6305 : 50 : tree _q30 = TREE_OPERAND (_q20, 0);
6306 : 50 : switch (TREE_CODE (_p1))
6307 : : {
6308 : 0 : CASE_CONVERT:
6309 : 0 : {
6310 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
6311 : 0 : switch (TREE_CODE (_q50))
6312 : : {
6313 : 0 : case BIT_NOT_EXPR:
6314 : 0 : {
6315 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
6316 : 0 : {
6317 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q60 };
6318 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6319 : 0 : if (res) return res;
6320 : : }
6321 : 0 : break;
6322 : : }
6323 : : default:;
6324 : : }
6325 : : break;
6326 : : }
6327 : 0 : case BIT_NOT_EXPR:
6328 : 0 : {
6329 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
6330 : 0 : {
6331 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q50 };
6332 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6333 : 0 : if (res) return res;
6334 : : }
6335 : 0 : break;
6336 : : }
6337 : 26 : case INTEGER_CST:
6338 : 26 : {
6339 : 26 : {
6340 : 26 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p1 };
6341 : 26 : tree res = generic_simplify_162 (loc, type, _p0, _p1, captures);
6342 : 26 : if (res) return res;
6343 : : }
6344 : 24 : break;
6345 : : }
6346 : : default:;
6347 : : }
6348 : : break;
6349 : : }
6350 : : default:;
6351 : : }
6352 : : break;
6353 : : }
6354 : 477 : case BIT_NOT_EXPR:
6355 : 477 : {
6356 : 477 : tree _q20 = TREE_OPERAND (_p0, 0);
6357 : 477 : switch (TREE_CODE (_p1))
6358 : : {
6359 : 18 : CASE_CONVERT:
6360 : 18 : {
6361 : 18 : tree _q40 = TREE_OPERAND (_p1, 0);
6362 : 18 : switch (TREE_CODE (_q40))
6363 : : {
6364 : 0 : case BIT_NOT_EXPR:
6365 : 0 : {
6366 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
6367 : 0 : {
6368 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q50 };
6369 : 0 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6370 : 0 : if (res) return res;
6371 : : }
6372 : 0 : break;
6373 : : }
6374 : : default:;
6375 : : }
6376 : : break;
6377 : : }
6378 : 10 : case BIT_NOT_EXPR:
6379 : 10 : {
6380 : 10 : tree _q40 = TREE_OPERAND (_p1, 0);
6381 : 10 : {
6382 : 10 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
6383 : 10 : tree res = generic_simplify_161 (loc, type, _p0, _p1, captures);
6384 : 10 : if (res) return res;
6385 : : }
6386 : 0 : break;
6387 : : }
6388 : 24 : case INTEGER_CST:
6389 : 24 : {
6390 : 24 : {
6391 : 24 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
6392 : 24 : tree res = generic_simplify_162 (loc, type, _p0, _p1, captures);
6393 : 24 : if (res) return res;
6394 : : }
6395 : 0 : break;
6396 : : }
6397 : 443 : default:;
6398 : : }
6399 : 443 : {
6400 : 443 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _p1 };
6401 : 443 : tree res = generic_simplify_163 (loc, type, _p0, _p1, captures);
6402 : 443 : if (res) return res;
6403 : : }
6404 : 0 : break;
6405 : : }
6406 : 2832 : case BIT_AND_EXPR:
6407 : 2832 : {
6408 : 2832 : tree _q20 = TREE_OPERAND (_p0, 0);
6409 : 2832 : tree _q21 = TREE_OPERAND (_p0, 1);
6410 : 2832 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6411 : : {
6412 : 67 : {
6413 : 67 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
6414 : 67 : tree res = generic_simplify_164 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6415 : 67 : if (res) return res;
6416 : : }
6417 : : }
6418 : 2765 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
6419 : : {
6420 : 3 : {
6421 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
6422 : 3 : tree res = generic_simplify_164 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6423 : 3 : if (res) return res;
6424 : : }
6425 : : }
6426 : 2762 : switch (TREE_CODE (_p1))
6427 : : {
6428 : 353 : case BIT_AND_EXPR:
6429 : 353 : {
6430 : 353 : tree _q50 = TREE_OPERAND (_p1, 0);
6431 : 353 : tree _q51 = TREE_OPERAND (_p1, 1);
6432 : 353 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
6433 : : {
6434 : 21 : {
6435 : 21 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q51, _q20 };
6436 : 21 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6437 : 21 : if (res) return res;
6438 : : }
6439 : : }
6440 : 332 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q20, 0))
6441 : : {
6442 : 0 : {
6443 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q50, _q20 };
6444 : 0 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6445 : 0 : if (res) return res;
6446 : : }
6447 : : }
6448 : 332 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q21, 0))
6449 : : {
6450 : 0 : {
6451 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q51, _q21 };
6452 : 0 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6453 : 0 : if (res) return res;
6454 : : }
6455 : : }
6456 : 332 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q21, 0))
6457 : : {
6458 : 201 : {
6459 : 201 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q50, _q21 };
6460 : 201 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6461 : 201 : if (res) return res;
6462 : : }
6463 : : }
6464 : : break;
6465 : : }
6466 : : default:;
6467 : : }
6468 : : break;
6469 : : }
6470 : 691425 : default:;
6471 : : }
6472 : 691425 : switch (TREE_CODE (_p1))
6473 : : {
6474 : 421 : case BIT_AND_EXPR:
6475 : 421 : {
6476 : 421 : tree _q30 = TREE_OPERAND (_p1, 0);
6477 : 421 : tree _q31 = TREE_OPERAND (_p1, 1);
6478 : 421 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
6479 : : {
6480 : 0 : {
6481 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q30, _p0 };
6482 : 0 : tree res = generic_simplify_164 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6483 : 0 : if (res) return res;
6484 : : }
6485 : : }
6486 : 421 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
6487 : : {
6488 : 0 : {
6489 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q31, _p0 };
6490 : 0 : tree res = generic_simplify_164 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6491 : 0 : if (res) return res;
6492 : : }
6493 : : }
6494 : : break;
6495 : : }
6496 : 691425 : default:;
6497 : : }
6498 : 691425 : switch (TREE_CODE (_p0))
6499 : : {
6500 : 504185 : CASE_CONVERT:
6501 : 504185 : {
6502 : 504185 : tree _q20 = TREE_OPERAND (_p0, 0);
6503 : 504185 : switch (TREE_CODE (_q20))
6504 : : {
6505 : 24 : case BIT_AND_EXPR:
6506 : 24 : {
6507 : 24 : tree _q30 = TREE_OPERAND (_q20, 0);
6508 : 24 : tree _q31 = TREE_OPERAND (_q20, 1);
6509 : 24 : switch (TREE_CODE (_p1))
6510 : : {
6511 : 8 : CASE_CONVERT:
6512 : 8 : {
6513 : 8 : tree _q60 = TREE_OPERAND (_p1, 0);
6514 : 8 : switch (TREE_CODE (_q60))
6515 : : {
6516 : 0 : case BIT_AND_EXPR:
6517 : 0 : {
6518 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
6519 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
6520 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q30, 0))
6521 : : {
6522 : 0 : {
6523 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q71, _q30 };
6524 : 0 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6525 : 0 : if (res) return res;
6526 : : }
6527 : : }
6528 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || operand_equal_p (_q71, _q30, 0))
6529 : : {
6530 : 0 : {
6531 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q70, _q30 };
6532 : 0 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6533 : 0 : if (res) return res;
6534 : : }
6535 : : }
6536 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q31, 0))
6537 : : {
6538 : 0 : {
6539 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q31, _q30, _q71, _q31 };
6540 : 0 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6541 : 0 : if (res) return res;
6542 : : }
6543 : : }
6544 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || operand_equal_p (_q71, _q31, 0))
6545 : : {
6546 : 0 : {
6547 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q31, _q30, _q70, _q31 };
6548 : 0 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, BIT_AND_EXPR);
6549 : 0 : if (res) return res;
6550 : : }
6551 : : }
6552 : : break;
6553 : : }
6554 : : default:;
6555 : : }
6556 : : break;
6557 : : }
6558 : : default:;
6559 : : }
6560 : : break;
6561 : : }
6562 : 15058 : case BIT_XOR_EXPR:
6563 : 15058 : {
6564 : 15058 : tree _q30 = TREE_OPERAND (_q20, 0);
6565 : 15058 : tree _q31 = TREE_OPERAND (_q20, 1);
6566 : 15058 : switch (TREE_CODE (_p1))
6567 : : {
6568 : 14993 : CASE_CONVERT:
6569 : 14993 : {
6570 : 14993 : tree _q60 = TREE_OPERAND (_p1, 0);
6571 : 14993 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q31, 0))
6572 : : {
6573 : 0 : {
6574 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q31 };
6575 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6576 : 0 : if (res) return res;
6577 : : }
6578 : : }
6579 : 14993 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q30, 0))
6580 : : {
6581 : 0 : {
6582 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q30 };
6583 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6584 : 0 : if (res) return res;
6585 : : }
6586 : : }
6587 : : break;
6588 : : }
6589 : 15058 : default:;
6590 : : }
6591 : 15058 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q31, 0))
6592 : : {
6593 : 0 : {
6594 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q31 };
6595 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6596 : 0 : if (res) return res;
6597 : : }
6598 : : }
6599 : 15058 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q30, 0))
6600 : : {
6601 : 0 : {
6602 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q30 };
6603 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6604 : 0 : if (res) return res;
6605 : : }
6606 : : }
6607 : : break;
6608 : : }
6609 : 504185 : default:;
6610 : : }
6611 : 504185 : switch (TREE_CODE (_p1))
6612 : : {
6613 : 500338 : CASE_CONVERT:
6614 : 500338 : {
6615 : 500338 : tree _q40 = TREE_OPERAND (_p1, 0);
6616 : 500338 : switch (TREE_CODE (_q40))
6617 : : {
6618 : 0 : case BIT_XOR_EXPR:
6619 : 0 : {
6620 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
6621 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
6622 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q20, 0))
6623 : : {
6624 : 0 : {
6625 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q51, _q20 };
6626 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6627 : 0 : if (res) return res;
6628 : : }
6629 : : }
6630 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
6631 : : {
6632 : 0 : {
6633 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q51, _q50, _q20 };
6634 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6635 : 0 : if (res) return res;
6636 : : }
6637 : : }
6638 : : break;
6639 : : }
6640 : : default:;
6641 : : }
6642 : : break;
6643 : : }
6644 : 2 : case BIT_XOR_EXPR:
6645 : 2 : {
6646 : 2 : tree _q40 = TREE_OPERAND (_p1, 0);
6647 : 2 : tree _q41 = TREE_OPERAND (_p1, 1);
6648 : 2 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _q20, 0))
6649 : : {
6650 : 0 : {
6651 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _q20 };
6652 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6653 : 0 : if (res) return res;
6654 : : }
6655 : : }
6656 : 2 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _q20, 0))
6657 : : {
6658 : 0 : {
6659 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _q20 };
6660 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6661 : 0 : if (res) return res;
6662 : : }
6663 : : }
6664 : : break;
6665 : : }
6666 : : default:;
6667 : : }
6668 : : break;
6669 : : }
6670 : 691425 : default:;
6671 : : }
6672 : 691425 : switch (TREE_CODE (_p1))
6673 : : {
6674 : 543710 : CASE_CONVERT:
6675 : 543710 : {
6676 : 543710 : tree _q30 = TREE_OPERAND (_p1, 0);
6677 : 543710 : switch (TREE_CODE (_q30))
6678 : : {
6679 : 8 : case BIT_XOR_EXPR:
6680 : 8 : {
6681 : 8 : tree _q40 = TREE_OPERAND (_q30, 0);
6682 : 8 : tree _q41 = TREE_OPERAND (_q30, 1);
6683 : 8 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _p0, 0))
6684 : : {
6685 : 0 : {
6686 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _p0 };
6687 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6688 : 0 : if (res) return res;
6689 : : }
6690 : : }
6691 : 8 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _p0, 0))
6692 : : {
6693 : 0 : {
6694 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _p0 };
6695 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6696 : 0 : if (res) return res;
6697 : : }
6698 : : }
6699 : : break;
6700 : : }
6701 : : default:;
6702 : : }
6703 : : break;
6704 : : }
6705 : 78 : case BIT_XOR_EXPR:
6706 : 78 : {
6707 : 78 : tree _q30 = TREE_OPERAND (_p1, 0);
6708 : 78 : tree _q31 = TREE_OPERAND (_p1, 1);
6709 : 78 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || operand_equal_p (_q31, _p0, 0))
6710 : : {
6711 : 0 : {
6712 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p0 };
6713 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6714 : 0 : if (res) return res;
6715 : : }
6716 : : }
6717 : 78 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || operand_equal_p (_q30, _p0, 0))
6718 : : {
6719 : 0 : {
6720 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _p0 };
6721 : 0 : tree res = generic_simplify_160 (loc, type, _p0, _p1, captures);
6722 : 0 : if (res) return res;
6723 : : }
6724 : : }
6725 : : break;
6726 : : }
6727 : 691425 : default:;
6728 : : }
6729 : 691425 : switch (TREE_CODE (_p0))
6730 : : {
6731 : 504185 : CASE_CONVERT:
6732 : 504185 : {
6733 : 504185 : tree _q20 = TREE_OPERAND (_p0, 0);
6734 : 504185 : switch (TREE_CODE (_q20))
6735 : : {
6736 : 15058 : case BIT_XOR_EXPR:
6737 : 15058 : {
6738 : 15058 : tree _q30 = TREE_OPERAND (_q20, 0);
6739 : 15058 : tree _q31 = TREE_OPERAND (_q20, 1);
6740 : 15058 : switch (TREE_CODE (_p1))
6741 : : {
6742 : 14993 : CASE_CONVERT:
6743 : 14993 : {
6744 : 14993 : tree _q60 = TREE_OPERAND (_p1, 0);
6745 : 14993 : switch (TREE_CODE (_q60))
6746 : : {
6747 : 0 : case BIT_XOR_EXPR:
6748 : 0 : {
6749 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
6750 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
6751 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
6752 : : {
6753 : 0 : {
6754 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q71 };
6755 : 0 : tree res = generic_simplify_165 (loc, type, _p0, _p1, captures);
6756 : 0 : if (res) return res;
6757 : : }
6758 : : }
6759 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
6760 : : {
6761 : 0 : {
6762 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q70 };
6763 : 0 : tree res = generic_simplify_165 (loc, type, _p0, _p1, captures);
6764 : 0 : if (res) return res;
6765 : : }
6766 : : }
6767 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
6768 : : {
6769 : 0 : {
6770 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q71 };
6771 : 0 : tree res = generic_simplify_165 (loc, type, _p0, _p1, captures);
6772 : 0 : if (res) return res;
6773 : : }
6774 : : }
6775 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
6776 : : {
6777 : 0 : {
6778 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q70 };
6779 : 0 : tree res = generic_simplify_165 (loc, type, _p0, _p1, captures);
6780 : 0 : if (res) return res;
6781 : : }
6782 : : }
6783 : : break;
6784 : : }
6785 : : default:;
6786 : : }
6787 : : break;
6788 : : }
6789 : 0 : case BIT_XOR_EXPR:
6790 : 0 : {
6791 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
6792 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
6793 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
6794 : : {
6795 : 0 : {
6796 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q61 };
6797 : 0 : tree res = generic_simplify_165 (loc, type, _p0, _p1, captures);
6798 : 0 : if (res) return res;
6799 : : }
6800 : : }
6801 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
6802 : : {
6803 : 0 : {
6804 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q60 };
6805 : 0 : tree res = generic_simplify_165 (loc, type, _p0, _p1, captures);
6806 : 0 : if (res) return res;
6807 : : }
6808 : : }
6809 : 0 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q31, 0) && types_match (_q60, _q31)))
6810 : : {
6811 : 0 : {
6812 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q61 };
6813 : 0 : tree res = generic_simplify_165 (loc, type, _p0, _p1, captures);
6814 : 0 : if (res) return res;
6815 : : }
6816 : : }
6817 : 0 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
6818 : : {
6819 : 0 : {
6820 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q60 };
6821 : 0 : tree res = generic_simplify_165 (loc, type, _p0, _p1, captures);
6822 : 0 : if (res) return res;
6823 : : }
6824 : : }
6825 : : break;
6826 : : }
6827 : : default:;
6828 : : }
6829 : : break;
6830 : : }
6831 : 504185 : default:;
6832 : : }
6833 : 504185 : switch (TREE_CODE (_p1))
6834 : : {
6835 : 500338 : CASE_CONVERT:
6836 : 500338 : {
6837 : 500338 : tree _q40 = TREE_OPERAND (_p1, 0);
6838 : 500338 : {
6839 : 500338 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
6840 : 500338 : tree res = generic_simplify_101 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
6841 : 500338 : if (res) return res;
6842 : : }
6843 : 476569 : break;
6844 : : }
6845 : 480416 : default:;
6846 : : }
6847 : 480416 : {
6848 : 480416 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
6849 : 480416 : tree res = generic_simplify_102 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
6850 : 480416 : if (res) return res;
6851 : : }
6852 : 480308 : break;
6853 : : }
6854 : 3869 : case BIT_XOR_EXPR:
6855 : 3869 : {
6856 : 3869 : tree _q20 = TREE_OPERAND (_p0, 0);
6857 : 3869 : tree _q21 = TREE_OPERAND (_p0, 1);
6858 : 3869 : switch (TREE_CODE (_p1))
6859 : : {
6860 : 198 : CASE_CONVERT:
6861 : 198 : {
6862 : 198 : tree _q50 = TREE_OPERAND (_p1, 0);
6863 : 198 : switch (TREE_CODE (_q50))
6864 : : {
6865 : 0 : case BIT_XOR_EXPR:
6866 : 0 : {
6867 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
6868 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
6869 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
6870 : : {
6871 : 0 : {
6872 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q61 };
6873 : 0 : tree res = generic_simplify_165 (loc, type, _p0, _p1, captures);
6874 : 0 : if (res) return res;
6875 : : }
6876 : : }
6877 : 0 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
6878 : : {
6879 : 0 : {
6880 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q60 };
6881 : 0 : tree res = generic_simplify_165 (loc, type, _p0, _p1, captures);
6882 : 0 : if (res) return res;
6883 : : }
6884 : : }
6885 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
6886 : : {
6887 : 0 : {
6888 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q61 };
6889 : 0 : tree res = generic_simplify_165 (loc, type, _p0, _p1, captures);
6890 : 0 : if (res) return res;
6891 : : }
6892 : : }
6893 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
6894 : : {
6895 : 0 : {
6896 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q60 };
6897 : 0 : tree res = generic_simplify_165 (loc, type, _p0, _p1, captures);
6898 : 0 : if (res) return res;
6899 : : }
6900 : : }
6901 : : break;
6902 : : }
6903 : : default:;
6904 : : }
6905 : : break;
6906 : : }
6907 : 10 : case BIT_XOR_EXPR:
6908 : 10 : {
6909 : 10 : tree _q50 = TREE_OPERAND (_p1, 0);
6910 : 10 : tree _q51 = TREE_OPERAND (_p1, 1);
6911 : 10 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
6912 : : {
6913 : 0 : {
6914 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
6915 : 0 : tree res = generic_simplify_165 (loc, type, _p0, _p1, captures);
6916 : 0 : if (res) return res;
6917 : : }
6918 : : }
6919 : 10 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
6920 : : {
6921 : 0 : {
6922 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
6923 : 0 : tree res = generic_simplify_165 (loc, type, _p0, _p1, captures);
6924 : 0 : if (res) return res;
6925 : : }
6926 : : }
6927 : 10 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
6928 : : {
6929 : 0 : {
6930 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
6931 : 0 : tree res = generic_simplify_165 (loc, type, _p0, _p1, captures);
6932 : 0 : if (res) return res;
6933 : : }
6934 : : }
6935 : 10 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
6936 : : {
6937 : 0 : {
6938 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
6939 : 0 : tree res = generic_simplify_165 (loc, type, _p0, _p1, captures);
6940 : 0 : if (res) return res;
6941 : : }
6942 : : }
6943 : : break;
6944 : : }
6945 : 3869 : default:;
6946 : : }
6947 : 3869 : if (CONSTANT_CLASS_P (_q21))
6948 : : {
6949 : 49 : if (CONSTANT_CLASS_P (_p1))
6950 : : {
6951 : 30 : {
6952 : 30 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
6953 : 30 : tree res = generic_simplify_117 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
6954 : 30 : if (res) return res;
6955 : : }
6956 : : }
6957 : : }
6958 : : break;
6959 : : }
6960 : 63 : case COND_EXPR:
6961 : 63 : {
6962 : 63 : tree _q20 = TREE_OPERAND (_p0, 0);
6963 : 63 : tree _q21 = TREE_OPERAND (_p0, 1);
6964 : 63 : tree _q22 = TREE_OPERAND (_p0, 2);
6965 : 63 : if (integer_zerop (_q22))
6966 : : {
6967 : 63 : switch (TREE_CODE (_p1))
6968 : : {
6969 : 4 : case COND_EXPR:
6970 : 4 : {
6971 : 4 : tree _q60 = TREE_OPERAND (_p1, 0);
6972 : 4 : tree _q61 = TREE_OPERAND (_p1, 1);
6973 : 4 : tree _q62 = TREE_OPERAND (_p1, 2);
6974 : 4 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
6975 : : {
6976 : 0 : if (integer_zerop (_q61))
6977 : : {
6978 : 0 : {
6979 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q62 };
6980 : 0 : const enum tree_code op = BIT_XOR_EXPR;
6981 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1403;
6982 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1403;
6983 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1403;
6984 : 0 : {
6985 : 0 : tree res_op0;
6986 : 0 : res_op0 = captures[1];
6987 : 0 : tree res_op1;
6988 : 0 : res_op1 = captures[2];
6989 : 0 : tree res_op2;
6990 : 0 : res_op2 = captures[4];
6991 : 0 : tree _r;
6992 : 0 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
6993 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 895, __FILE__, __LINE__, true);
6994 : 0 : return _r;
6995 : : }
6996 : 0 : next_after_fail1403:;
6997 : : }
6998 : : }
6999 : : }
7000 : : break;
7001 : : }
7002 : : default:;
7003 : : }
7004 : : }
7005 : 63 : if (integer_zerop (_q21))
7006 : : {
7007 : 0 : switch (TREE_CODE (_p1))
7008 : : {
7009 : 0 : case COND_EXPR:
7010 : 0 : {
7011 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
7012 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
7013 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
7014 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
7015 : : {
7016 : 0 : if (integer_zerop (_q62))
7017 : : {
7018 : 0 : {
7019 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q20, _q61, _p0, _q22 };
7020 : 0 : const enum tree_code op = BIT_XOR_EXPR;
7021 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1404;
7022 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1404;
7023 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1404;
7024 : 0 : {
7025 : 0 : tree res_op0;
7026 : 0 : res_op0 = captures[1];
7027 : 0 : tree res_op1;
7028 : 0 : res_op1 = captures[2];
7029 : 0 : tree res_op2;
7030 : 0 : res_op2 = captures[4];
7031 : 0 : tree _r;
7032 : 0 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
7033 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 895, __FILE__, __LINE__, true);
7034 : 0 : return _r;
7035 : : }
7036 : 0 : next_after_fail1404:;
7037 : : }
7038 : : }
7039 : : }
7040 : : break;
7041 : : }
7042 : : default:;
7043 : : }
7044 : : }
7045 : 63 : switch (TREE_CODE (_q20))
7046 : : {
7047 : 0 : case LT_EXPR:
7048 : 0 : {
7049 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7050 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7051 : 0 : if (zerop (_q22))
7052 : : {
7053 : 0 : switch (TREE_CODE (_p1))
7054 : : {
7055 : 0 : case COND_EXPR:
7056 : 0 : {
7057 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7058 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7059 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7060 : 0 : switch (TREE_CODE (_q80))
7061 : : {
7062 : 0 : case GE_EXPR:
7063 : 0 : {
7064 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7065 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7066 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7067 : : {
7068 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7069 : : {
7070 : 0 : if (zerop (_q82))
7071 : : {
7072 : 0 : {
7073 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7074 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, LT_EXPR, GE_EXPR);
7075 : 0 : if (res) return res;
7076 : : }
7077 : : }
7078 : : }
7079 : : }
7080 : : break;
7081 : : }
7082 : : default:;
7083 : : }
7084 : : break;
7085 : : }
7086 : : default:;
7087 : : }
7088 : : }
7089 : : break;
7090 : : }
7091 : 32 : case LE_EXPR:
7092 : 32 : {
7093 : 32 : tree _q30 = TREE_OPERAND (_q20, 0);
7094 : 32 : tree _q31 = TREE_OPERAND (_q20, 1);
7095 : 32 : if (zerop (_q22))
7096 : : {
7097 : 32 : switch (TREE_CODE (_p1))
7098 : : {
7099 : 0 : case COND_EXPR:
7100 : 0 : {
7101 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7102 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7103 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7104 : 0 : switch (TREE_CODE (_q80))
7105 : : {
7106 : 0 : case GT_EXPR:
7107 : 0 : {
7108 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7109 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7110 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7111 : : {
7112 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7113 : : {
7114 : 0 : if (zerop (_q82))
7115 : : {
7116 : 0 : {
7117 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7118 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, LE_EXPR, GT_EXPR);
7119 : 0 : if (res) return res;
7120 : : }
7121 : : }
7122 : : }
7123 : : }
7124 : : break;
7125 : : }
7126 : : default:;
7127 : : }
7128 : : break;
7129 : : }
7130 : : default:;
7131 : : }
7132 : : }
7133 : : break;
7134 : : }
7135 : 0 : case EQ_EXPR:
7136 : 0 : {
7137 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7138 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7139 : 0 : if (zerop (_q22))
7140 : : {
7141 : 0 : switch (TREE_CODE (_p1))
7142 : : {
7143 : 0 : case COND_EXPR:
7144 : 0 : {
7145 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7146 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7147 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7148 : 0 : switch (TREE_CODE (_q80))
7149 : : {
7150 : 0 : case NE_EXPR:
7151 : 0 : {
7152 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7153 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7154 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7155 : : {
7156 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7157 : : {
7158 : 0 : if (zerop (_q82))
7159 : : {
7160 : 0 : {
7161 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7162 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, EQ_EXPR, NE_EXPR);
7163 : 0 : if (res) return res;
7164 : : }
7165 : : }
7166 : : }
7167 : : }
7168 : : break;
7169 : : }
7170 : : default:;
7171 : : }
7172 : : break;
7173 : : }
7174 : : default:;
7175 : : }
7176 : : }
7177 : : break;
7178 : : }
7179 : 31 : case NE_EXPR:
7180 : 31 : {
7181 : 31 : tree _q30 = TREE_OPERAND (_q20, 0);
7182 : 31 : tree _q31 = TREE_OPERAND (_q20, 1);
7183 : 31 : if (zerop (_q22))
7184 : : {
7185 : 31 : switch (TREE_CODE (_p1))
7186 : : {
7187 : 4 : case COND_EXPR:
7188 : 4 : {
7189 : 4 : tree _q80 = TREE_OPERAND (_p1, 0);
7190 : 4 : tree _q81 = TREE_OPERAND (_p1, 1);
7191 : 4 : tree _q82 = TREE_OPERAND (_p1, 2);
7192 : 4 : switch (TREE_CODE (_q80))
7193 : : {
7194 : 0 : case EQ_EXPR:
7195 : 0 : {
7196 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7197 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7198 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7199 : : {
7200 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7201 : : {
7202 : 0 : if (zerop (_q82))
7203 : : {
7204 : 0 : {
7205 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7206 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, NE_EXPR, EQ_EXPR);
7207 : 0 : if (res) return res;
7208 : : }
7209 : : }
7210 : : }
7211 : : }
7212 : : break;
7213 : : }
7214 : : default:;
7215 : : }
7216 : : break;
7217 : : }
7218 : : default:;
7219 : : }
7220 : : }
7221 : : break;
7222 : : }
7223 : 0 : case GE_EXPR:
7224 : 0 : {
7225 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7226 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7227 : 0 : if (zerop (_q22))
7228 : : {
7229 : 0 : switch (TREE_CODE (_p1))
7230 : : {
7231 : 0 : case COND_EXPR:
7232 : 0 : {
7233 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7234 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7235 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7236 : 0 : switch (TREE_CODE (_q80))
7237 : : {
7238 : 0 : case LT_EXPR:
7239 : 0 : {
7240 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7241 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7242 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7243 : : {
7244 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7245 : : {
7246 : 0 : if (zerop (_q82))
7247 : : {
7248 : 0 : {
7249 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7250 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, GE_EXPR, LT_EXPR);
7251 : 0 : if (res) return res;
7252 : : }
7253 : : }
7254 : : }
7255 : : }
7256 : : break;
7257 : : }
7258 : : default:;
7259 : : }
7260 : : break;
7261 : : }
7262 : : default:;
7263 : : }
7264 : : }
7265 : : break;
7266 : : }
7267 : 0 : case GT_EXPR:
7268 : 0 : {
7269 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7270 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7271 : 0 : if (zerop (_q22))
7272 : : {
7273 : 0 : switch (TREE_CODE (_p1))
7274 : : {
7275 : 0 : case COND_EXPR:
7276 : 0 : {
7277 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7278 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7279 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7280 : 0 : switch (TREE_CODE (_q80))
7281 : : {
7282 : 0 : case LE_EXPR:
7283 : 0 : {
7284 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7285 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7286 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7287 : : {
7288 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7289 : : {
7290 : 0 : if (zerop (_q82))
7291 : : {
7292 : 0 : {
7293 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7294 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, GT_EXPR, LE_EXPR);
7295 : 0 : if (res) return res;
7296 : : }
7297 : : }
7298 : : }
7299 : : }
7300 : : break;
7301 : : }
7302 : : default:;
7303 : : }
7304 : : break;
7305 : : }
7306 : : default:;
7307 : : }
7308 : : }
7309 : : break;
7310 : : }
7311 : 0 : case UNORDERED_EXPR:
7312 : 0 : {
7313 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7314 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7315 : 0 : if (zerop (_q22))
7316 : : {
7317 : 0 : switch (TREE_CODE (_p1))
7318 : : {
7319 : 0 : case COND_EXPR:
7320 : 0 : {
7321 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7322 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7323 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7324 : 0 : switch (TREE_CODE (_q80))
7325 : : {
7326 : 0 : case ORDERED_EXPR:
7327 : 0 : {
7328 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7329 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7330 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7331 : : {
7332 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7333 : : {
7334 : 0 : if (zerop (_q82))
7335 : : {
7336 : 0 : {
7337 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7338 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNORDERED_EXPR, ORDERED_EXPR);
7339 : 0 : if (res) return res;
7340 : : }
7341 : : }
7342 : : }
7343 : : }
7344 : : break;
7345 : : }
7346 : : default:;
7347 : : }
7348 : : break;
7349 : : }
7350 : : default:;
7351 : : }
7352 : : }
7353 : : break;
7354 : : }
7355 : 0 : case ORDERED_EXPR:
7356 : 0 : {
7357 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7358 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7359 : 0 : if (zerop (_q22))
7360 : : {
7361 : 0 : switch (TREE_CODE (_p1))
7362 : : {
7363 : 0 : case COND_EXPR:
7364 : 0 : {
7365 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7366 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7367 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7368 : 0 : switch (TREE_CODE (_q80))
7369 : : {
7370 : 0 : case UNORDERED_EXPR:
7371 : 0 : {
7372 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7373 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7374 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7375 : : {
7376 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7377 : : {
7378 : 0 : if (zerop (_q82))
7379 : : {
7380 : 0 : {
7381 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7382 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, ORDERED_EXPR, UNORDERED_EXPR);
7383 : 0 : if (res) return res;
7384 : : }
7385 : : }
7386 : : }
7387 : : }
7388 : : break;
7389 : : }
7390 : : default:;
7391 : : }
7392 : : break;
7393 : : }
7394 : : default:;
7395 : : }
7396 : : }
7397 : : break;
7398 : : }
7399 : 0 : case UNLT_EXPR:
7400 : 0 : {
7401 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7402 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7403 : 0 : if (zerop (_q22))
7404 : : {
7405 : 0 : switch (TREE_CODE (_p1))
7406 : : {
7407 : 0 : case COND_EXPR:
7408 : 0 : {
7409 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7410 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7411 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7412 : 0 : switch (TREE_CODE (_q80))
7413 : : {
7414 : 0 : case GE_EXPR:
7415 : 0 : {
7416 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7417 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7418 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7419 : : {
7420 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7421 : : {
7422 : 0 : if (zerop (_q82))
7423 : : {
7424 : 0 : {
7425 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7426 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNLT_EXPR, GE_EXPR);
7427 : 0 : if (res) return res;
7428 : : }
7429 : : }
7430 : : }
7431 : : }
7432 : : break;
7433 : : }
7434 : : default:;
7435 : : }
7436 : : break;
7437 : : }
7438 : : default:;
7439 : : }
7440 : : }
7441 : : break;
7442 : : }
7443 : 0 : case UNLE_EXPR:
7444 : 0 : {
7445 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7446 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7447 : 0 : if (zerop (_q22))
7448 : : {
7449 : 0 : switch (TREE_CODE (_p1))
7450 : : {
7451 : 0 : case COND_EXPR:
7452 : 0 : {
7453 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7454 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7455 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7456 : 0 : switch (TREE_CODE (_q80))
7457 : : {
7458 : 0 : case GT_EXPR:
7459 : 0 : {
7460 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7461 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7462 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7463 : : {
7464 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7465 : : {
7466 : 0 : if (zerop (_q82))
7467 : : {
7468 : 0 : {
7469 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7470 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNLE_EXPR, GT_EXPR);
7471 : 0 : if (res) return res;
7472 : : }
7473 : : }
7474 : : }
7475 : : }
7476 : : break;
7477 : : }
7478 : : default:;
7479 : : }
7480 : : break;
7481 : : }
7482 : : default:;
7483 : : }
7484 : : }
7485 : : break;
7486 : : }
7487 : 0 : case UNGT_EXPR:
7488 : 0 : {
7489 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7490 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7491 : 0 : if (zerop (_q22))
7492 : : {
7493 : 0 : switch (TREE_CODE (_p1))
7494 : : {
7495 : 0 : case COND_EXPR:
7496 : 0 : {
7497 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7498 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7499 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7500 : 0 : switch (TREE_CODE (_q80))
7501 : : {
7502 : 0 : case LE_EXPR:
7503 : 0 : {
7504 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7505 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7506 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7507 : : {
7508 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7509 : : {
7510 : 0 : if (zerop (_q82))
7511 : : {
7512 : 0 : {
7513 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7514 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNGT_EXPR, LE_EXPR);
7515 : 0 : if (res) return res;
7516 : : }
7517 : : }
7518 : : }
7519 : : }
7520 : : break;
7521 : : }
7522 : : default:;
7523 : : }
7524 : : break;
7525 : : }
7526 : : default:;
7527 : : }
7528 : : }
7529 : : break;
7530 : : }
7531 : 0 : case UNGE_EXPR:
7532 : 0 : {
7533 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7534 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7535 : 0 : if (zerop (_q22))
7536 : : {
7537 : 0 : switch (TREE_CODE (_p1))
7538 : : {
7539 : 0 : case COND_EXPR:
7540 : 0 : {
7541 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7542 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7543 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7544 : 0 : switch (TREE_CODE (_q80))
7545 : : {
7546 : 0 : case LT_EXPR:
7547 : 0 : {
7548 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7549 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7550 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7551 : : {
7552 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7553 : : {
7554 : 0 : if (zerop (_q82))
7555 : : {
7556 : 0 : {
7557 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7558 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNGE_EXPR, LT_EXPR);
7559 : 0 : if (res) return res;
7560 : : }
7561 : : }
7562 : : }
7563 : : }
7564 : : break;
7565 : : }
7566 : : default:;
7567 : : }
7568 : : break;
7569 : : }
7570 : : default:;
7571 : : }
7572 : : }
7573 : : break;
7574 : : }
7575 : 0 : case UNEQ_EXPR:
7576 : 0 : {
7577 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7578 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7579 : 0 : if (zerop (_q22))
7580 : : {
7581 : 0 : switch (TREE_CODE (_p1))
7582 : : {
7583 : 0 : case COND_EXPR:
7584 : 0 : {
7585 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7586 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7587 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7588 : 0 : switch (TREE_CODE (_q80))
7589 : : {
7590 : 0 : case LTGT_EXPR:
7591 : 0 : {
7592 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7593 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7594 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7595 : : {
7596 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7597 : : {
7598 : 0 : if (zerop (_q82))
7599 : : {
7600 : 0 : {
7601 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7602 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNEQ_EXPR, LTGT_EXPR);
7603 : 0 : if (res) return res;
7604 : : }
7605 : : }
7606 : : }
7607 : : }
7608 : : break;
7609 : : }
7610 : : default:;
7611 : : }
7612 : : break;
7613 : : }
7614 : : default:;
7615 : : }
7616 : : }
7617 : : break;
7618 : : }
7619 : 0 : case LTGT_EXPR:
7620 : 0 : {
7621 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7622 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7623 : 0 : if (zerop (_q22))
7624 : : {
7625 : 0 : switch (TREE_CODE (_p1))
7626 : : {
7627 : 0 : case COND_EXPR:
7628 : 0 : {
7629 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7630 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7631 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7632 : 0 : switch (TREE_CODE (_q80))
7633 : : {
7634 : 0 : case UNEQ_EXPR:
7635 : 0 : {
7636 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7637 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7638 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7639 : : {
7640 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7641 : : {
7642 : 0 : if (zerop (_q82))
7643 : : {
7644 : 0 : {
7645 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
7646 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, LTGT_EXPR, UNEQ_EXPR);
7647 : 0 : if (res) return res;
7648 : : }
7649 : : }
7650 : : }
7651 : : }
7652 : : break;
7653 : : }
7654 : : default:;
7655 : : }
7656 : : break;
7657 : : }
7658 : : default:;
7659 : : }
7660 : : }
7661 : : break;
7662 : : }
7663 : : default:;
7664 : : }
7665 : : break;
7666 : : }
7667 : 1 : case VEC_COND_EXPR:
7668 : 1 : {
7669 : 1 : tree _q20 = TREE_OPERAND (_p0, 0);
7670 : 1 : tree _q21 = TREE_OPERAND (_p0, 1);
7671 : 1 : tree _q22 = TREE_OPERAND (_p0, 2);
7672 : 1 : if (integer_zerop (_q22))
7673 : : {
7674 : 1 : switch (TREE_CODE (_p1))
7675 : : {
7676 : 0 : case VEC_COND_EXPR:
7677 : 0 : {
7678 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
7679 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
7680 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
7681 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
7682 : : {
7683 : 0 : if (integer_zerop (_q61))
7684 : : {
7685 : 0 : {
7686 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q62 };
7687 : 0 : const enum tree_code op = BIT_XOR_EXPR;
7688 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1405;
7689 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1405;
7690 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1405;
7691 : 0 : {
7692 : 0 : tree res_op0;
7693 : 0 : res_op0 = captures[1];
7694 : 0 : tree res_op1;
7695 : 0 : res_op1 = captures[2];
7696 : 0 : tree res_op2;
7697 : 0 : res_op2 = captures[4];
7698 : 0 : tree _r;
7699 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
7700 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 895, __FILE__, __LINE__, true);
7701 : 0 : return _r;
7702 : : }
7703 : 0 : next_after_fail1405:;
7704 : : }
7705 : : }
7706 : : }
7707 : : break;
7708 : : }
7709 : : default:;
7710 : : }
7711 : : }
7712 : 1 : if (integer_zerop (_q21))
7713 : : {
7714 : 0 : switch (TREE_CODE (_p1))
7715 : : {
7716 : 0 : case VEC_COND_EXPR:
7717 : 0 : {
7718 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
7719 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
7720 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
7721 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
7722 : : {
7723 : 0 : if (integer_zerop (_q62))
7724 : : {
7725 : 0 : {
7726 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q20, _q61, _p0, _q22 };
7727 : 0 : const enum tree_code op = BIT_XOR_EXPR;
7728 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1406;
7729 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1406;
7730 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1406;
7731 : 0 : {
7732 : 0 : tree res_op0;
7733 : 0 : res_op0 = captures[1];
7734 : 0 : tree res_op1;
7735 : 0 : res_op1 = captures[2];
7736 : 0 : tree res_op2;
7737 : 0 : res_op2 = captures[4];
7738 : 0 : tree _r;
7739 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
7740 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 895, __FILE__, __LINE__, true);
7741 : 0 : return _r;
7742 : : }
7743 : 0 : next_after_fail1406:;
7744 : : }
7745 : : }
7746 : : }
7747 : : break;
7748 : : }
7749 : : default:;
7750 : : }
7751 : : }
7752 : 1 : switch (TREE_CODE (_q20))
7753 : : {
7754 : 0 : case LT_EXPR:
7755 : 0 : {
7756 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7757 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7758 : 0 : if (integer_zerop (_q22))
7759 : : {
7760 : 0 : switch (TREE_CODE (_p1))
7761 : : {
7762 : 0 : case VEC_COND_EXPR:
7763 : 0 : {
7764 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7765 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7766 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7767 : 0 : switch (TREE_CODE (_q80))
7768 : : {
7769 : 0 : case GE_EXPR:
7770 : 0 : {
7771 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7772 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7773 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7774 : : {
7775 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7776 : : {
7777 : 0 : if (integer_zerop (_q82))
7778 : : {
7779 : 0 : {
7780 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
7781 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, LT_EXPR, GE_EXPR);
7782 : 0 : if (res) return res;
7783 : : }
7784 : : }
7785 : : }
7786 : : }
7787 : : break;
7788 : : }
7789 : : default:;
7790 : : }
7791 : : break;
7792 : : }
7793 : : default:;
7794 : : }
7795 : : }
7796 : : break;
7797 : : }
7798 : 0 : case LE_EXPR:
7799 : 0 : {
7800 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7801 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7802 : 0 : if (integer_zerop (_q22))
7803 : : {
7804 : 0 : switch (TREE_CODE (_p1))
7805 : : {
7806 : 0 : case VEC_COND_EXPR:
7807 : 0 : {
7808 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7809 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7810 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7811 : 0 : switch (TREE_CODE (_q80))
7812 : : {
7813 : 0 : case GT_EXPR:
7814 : 0 : {
7815 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7816 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7817 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7818 : : {
7819 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7820 : : {
7821 : 0 : if (integer_zerop (_q82))
7822 : : {
7823 : 0 : {
7824 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
7825 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, LE_EXPR, GT_EXPR);
7826 : 0 : if (res) return res;
7827 : : }
7828 : : }
7829 : : }
7830 : : }
7831 : : break;
7832 : : }
7833 : : default:;
7834 : : }
7835 : : break;
7836 : : }
7837 : : default:;
7838 : : }
7839 : : }
7840 : : break;
7841 : : }
7842 : 0 : case EQ_EXPR:
7843 : 0 : {
7844 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7845 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7846 : 0 : if (integer_zerop (_q22))
7847 : : {
7848 : 0 : switch (TREE_CODE (_p1))
7849 : : {
7850 : 0 : case VEC_COND_EXPR:
7851 : 0 : {
7852 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7853 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7854 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7855 : 0 : switch (TREE_CODE (_q80))
7856 : : {
7857 : 0 : case NE_EXPR:
7858 : 0 : {
7859 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7860 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7861 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7862 : : {
7863 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7864 : : {
7865 : 0 : if (integer_zerop (_q82))
7866 : : {
7867 : 0 : {
7868 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
7869 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, EQ_EXPR, NE_EXPR);
7870 : 0 : if (res) return res;
7871 : : }
7872 : : }
7873 : : }
7874 : : }
7875 : : break;
7876 : : }
7877 : : default:;
7878 : : }
7879 : : break;
7880 : : }
7881 : : default:;
7882 : : }
7883 : : }
7884 : : break;
7885 : : }
7886 : 1 : case NE_EXPR:
7887 : 1 : {
7888 : 1 : tree _q30 = TREE_OPERAND (_q20, 0);
7889 : 1 : tree _q31 = TREE_OPERAND (_q20, 1);
7890 : 1 : if (integer_zerop (_q22))
7891 : : {
7892 : 1 : switch (TREE_CODE (_p1))
7893 : : {
7894 : 0 : case VEC_COND_EXPR:
7895 : 0 : {
7896 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7897 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7898 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7899 : 0 : switch (TREE_CODE (_q80))
7900 : : {
7901 : 0 : case EQ_EXPR:
7902 : 0 : {
7903 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7904 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7905 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7906 : : {
7907 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7908 : : {
7909 : 0 : if (integer_zerop (_q82))
7910 : : {
7911 : 0 : {
7912 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
7913 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, NE_EXPR, EQ_EXPR);
7914 : 0 : if (res) return res;
7915 : : }
7916 : : }
7917 : : }
7918 : : }
7919 : : break;
7920 : : }
7921 : : default:;
7922 : : }
7923 : : break;
7924 : : }
7925 : : default:;
7926 : : }
7927 : : }
7928 : : break;
7929 : : }
7930 : 0 : case GE_EXPR:
7931 : 0 : {
7932 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7933 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7934 : 0 : if (integer_zerop (_q22))
7935 : : {
7936 : 0 : switch (TREE_CODE (_p1))
7937 : : {
7938 : 0 : case VEC_COND_EXPR:
7939 : 0 : {
7940 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7941 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7942 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7943 : 0 : switch (TREE_CODE (_q80))
7944 : : {
7945 : 0 : case LT_EXPR:
7946 : 0 : {
7947 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7948 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7949 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7950 : : {
7951 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7952 : : {
7953 : 0 : if (integer_zerop (_q82))
7954 : : {
7955 : 0 : {
7956 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
7957 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, GE_EXPR, LT_EXPR);
7958 : 0 : if (res) return res;
7959 : : }
7960 : : }
7961 : : }
7962 : : }
7963 : : break;
7964 : : }
7965 : : default:;
7966 : : }
7967 : : break;
7968 : : }
7969 : : default:;
7970 : : }
7971 : : }
7972 : : break;
7973 : : }
7974 : 0 : case GT_EXPR:
7975 : 0 : {
7976 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7977 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7978 : 0 : if (integer_zerop (_q22))
7979 : : {
7980 : 0 : switch (TREE_CODE (_p1))
7981 : : {
7982 : 0 : case VEC_COND_EXPR:
7983 : 0 : {
7984 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
7985 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
7986 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
7987 : 0 : switch (TREE_CODE (_q80))
7988 : : {
7989 : 0 : case LE_EXPR:
7990 : 0 : {
7991 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
7992 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
7993 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
7994 : : {
7995 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
7996 : : {
7997 : 0 : if (integer_zerop (_q82))
7998 : : {
7999 : 0 : {
8000 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8001 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, GT_EXPR, LE_EXPR);
8002 : 0 : if (res) return res;
8003 : : }
8004 : : }
8005 : : }
8006 : : }
8007 : : break;
8008 : : }
8009 : : default:;
8010 : : }
8011 : : break;
8012 : : }
8013 : : default:;
8014 : : }
8015 : : }
8016 : : break;
8017 : : }
8018 : 0 : case UNORDERED_EXPR:
8019 : 0 : {
8020 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8021 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8022 : 0 : if (integer_zerop (_q22))
8023 : : {
8024 : 0 : switch (TREE_CODE (_p1))
8025 : : {
8026 : 0 : case VEC_COND_EXPR:
8027 : 0 : {
8028 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8029 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8030 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8031 : 0 : switch (TREE_CODE (_q80))
8032 : : {
8033 : 0 : case ORDERED_EXPR:
8034 : 0 : {
8035 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8036 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8037 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8038 : : {
8039 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8040 : : {
8041 : 0 : if (integer_zerop (_q82))
8042 : : {
8043 : 0 : {
8044 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8045 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNORDERED_EXPR, ORDERED_EXPR);
8046 : 0 : if (res) return res;
8047 : : }
8048 : : }
8049 : : }
8050 : : }
8051 : : break;
8052 : : }
8053 : : default:;
8054 : : }
8055 : : break;
8056 : : }
8057 : : default:;
8058 : : }
8059 : : }
8060 : : break;
8061 : : }
8062 : 0 : case ORDERED_EXPR:
8063 : 0 : {
8064 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8065 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8066 : 0 : if (integer_zerop (_q22))
8067 : : {
8068 : 0 : switch (TREE_CODE (_p1))
8069 : : {
8070 : 0 : case VEC_COND_EXPR:
8071 : 0 : {
8072 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8073 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8074 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8075 : 0 : switch (TREE_CODE (_q80))
8076 : : {
8077 : 0 : case UNORDERED_EXPR:
8078 : 0 : {
8079 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8080 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8081 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8082 : : {
8083 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8084 : : {
8085 : 0 : if (integer_zerop (_q82))
8086 : : {
8087 : 0 : {
8088 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8089 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, ORDERED_EXPR, UNORDERED_EXPR);
8090 : 0 : if (res) return res;
8091 : : }
8092 : : }
8093 : : }
8094 : : }
8095 : : break;
8096 : : }
8097 : : default:;
8098 : : }
8099 : : break;
8100 : : }
8101 : : default:;
8102 : : }
8103 : : }
8104 : : break;
8105 : : }
8106 : 0 : case UNLT_EXPR:
8107 : 0 : {
8108 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8109 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8110 : 0 : if (integer_zerop (_q22))
8111 : : {
8112 : 0 : switch (TREE_CODE (_p1))
8113 : : {
8114 : 0 : case VEC_COND_EXPR:
8115 : 0 : {
8116 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8117 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8118 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8119 : 0 : switch (TREE_CODE (_q80))
8120 : : {
8121 : 0 : case GE_EXPR:
8122 : 0 : {
8123 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8124 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8125 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8126 : : {
8127 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8128 : : {
8129 : 0 : if (integer_zerop (_q82))
8130 : : {
8131 : 0 : {
8132 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8133 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNLT_EXPR, GE_EXPR);
8134 : 0 : if (res) return res;
8135 : : }
8136 : : }
8137 : : }
8138 : : }
8139 : : break;
8140 : : }
8141 : : default:;
8142 : : }
8143 : : break;
8144 : : }
8145 : : default:;
8146 : : }
8147 : : }
8148 : : break;
8149 : : }
8150 : 0 : case UNLE_EXPR:
8151 : 0 : {
8152 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8153 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8154 : 0 : if (integer_zerop (_q22))
8155 : : {
8156 : 0 : switch (TREE_CODE (_p1))
8157 : : {
8158 : 0 : case VEC_COND_EXPR:
8159 : 0 : {
8160 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8161 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8162 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8163 : 0 : switch (TREE_CODE (_q80))
8164 : : {
8165 : 0 : case GT_EXPR:
8166 : 0 : {
8167 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8168 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8169 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8170 : : {
8171 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8172 : : {
8173 : 0 : if (integer_zerop (_q82))
8174 : : {
8175 : 0 : {
8176 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8177 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNLE_EXPR, GT_EXPR);
8178 : 0 : if (res) return res;
8179 : : }
8180 : : }
8181 : : }
8182 : : }
8183 : : break;
8184 : : }
8185 : : default:;
8186 : : }
8187 : : break;
8188 : : }
8189 : : default:;
8190 : : }
8191 : : }
8192 : : break;
8193 : : }
8194 : 0 : case UNGT_EXPR:
8195 : 0 : {
8196 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8197 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8198 : 0 : if (integer_zerop (_q22))
8199 : : {
8200 : 0 : switch (TREE_CODE (_p1))
8201 : : {
8202 : 0 : case VEC_COND_EXPR:
8203 : 0 : {
8204 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8205 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8206 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8207 : 0 : switch (TREE_CODE (_q80))
8208 : : {
8209 : 0 : case LE_EXPR:
8210 : 0 : {
8211 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8212 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8213 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8214 : : {
8215 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8216 : : {
8217 : 0 : if (integer_zerop (_q82))
8218 : : {
8219 : 0 : {
8220 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8221 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNGT_EXPR, LE_EXPR);
8222 : 0 : if (res) return res;
8223 : : }
8224 : : }
8225 : : }
8226 : : }
8227 : : break;
8228 : : }
8229 : : default:;
8230 : : }
8231 : : break;
8232 : : }
8233 : : default:;
8234 : : }
8235 : : }
8236 : : break;
8237 : : }
8238 : 0 : case UNGE_EXPR:
8239 : 0 : {
8240 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8241 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8242 : 0 : if (integer_zerop (_q22))
8243 : : {
8244 : 0 : switch (TREE_CODE (_p1))
8245 : : {
8246 : 0 : case VEC_COND_EXPR:
8247 : 0 : {
8248 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8249 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8250 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8251 : 0 : switch (TREE_CODE (_q80))
8252 : : {
8253 : 0 : case LT_EXPR:
8254 : 0 : {
8255 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8256 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8257 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8258 : : {
8259 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8260 : : {
8261 : 0 : if (integer_zerop (_q82))
8262 : : {
8263 : 0 : {
8264 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8265 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNGE_EXPR, LT_EXPR);
8266 : 0 : if (res) return res;
8267 : : }
8268 : : }
8269 : : }
8270 : : }
8271 : : break;
8272 : : }
8273 : : default:;
8274 : : }
8275 : : break;
8276 : : }
8277 : : default:;
8278 : : }
8279 : : }
8280 : : break;
8281 : : }
8282 : 0 : case UNEQ_EXPR:
8283 : 0 : {
8284 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8285 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8286 : 0 : if (integer_zerop (_q22))
8287 : : {
8288 : 0 : switch (TREE_CODE (_p1))
8289 : : {
8290 : 0 : case VEC_COND_EXPR:
8291 : 0 : {
8292 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8293 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8294 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8295 : 0 : switch (TREE_CODE (_q80))
8296 : : {
8297 : 0 : case LTGT_EXPR:
8298 : 0 : {
8299 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8300 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8301 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8302 : : {
8303 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8304 : : {
8305 : 0 : if (integer_zerop (_q82))
8306 : : {
8307 : 0 : {
8308 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8309 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, UNEQ_EXPR, LTGT_EXPR);
8310 : 0 : if (res) return res;
8311 : : }
8312 : : }
8313 : : }
8314 : : }
8315 : : break;
8316 : : }
8317 : : default:;
8318 : : }
8319 : : break;
8320 : : }
8321 : : default:;
8322 : : }
8323 : : }
8324 : : break;
8325 : : }
8326 : 0 : case LTGT_EXPR:
8327 : 0 : {
8328 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8329 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8330 : 0 : if (integer_zerop (_q22))
8331 : : {
8332 : 0 : switch (TREE_CODE (_p1))
8333 : : {
8334 : 0 : case VEC_COND_EXPR:
8335 : 0 : {
8336 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
8337 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
8338 : 0 : tree _q82 = TREE_OPERAND (_p1, 2);
8339 : 0 : switch (TREE_CODE (_q80))
8340 : : {
8341 : 0 : case UNEQ_EXPR:
8342 : 0 : {
8343 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
8344 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
8345 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
8346 : : {
8347 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
8348 : : {
8349 : 0 : if (integer_zerop (_q82))
8350 : : {
8351 : 0 : {
8352 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
8353 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, LTGT_EXPR, UNEQ_EXPR);
8354 : 0 : if (res) return res;
8355 : : }
8356 : : }
8357 : : }
8358 : : }
8359 : : break;
8360 : : }
8361 : : default:;
8362 : : }
8363 : : break;
8364 : : }
8365 : : default:;
8366 : : }
8367 : : }
8368 : : break;
8369 : : }
8370 : : default:;
8371 : : }
8372 : : break;
8373 : : }
8374 : 2540 : case BIT_AND_EXPR:
8375 : 2540 : {
8376 : 2540 : tree _q20 = TREE_OPERAND (_p0, 0);
8377 : 2540 : tree _q21 = TREE_OPERAND (_p0, 1);
8378 : 2540 : if (tree_truth_valued_p (_q20))
8379 : : {
8380 : 0 : if (tree_truth_valued_p (_q21))
8381 : : {
8382 : 0 : switch (TREE_CODE (_p1))
8383 : : {
8384 : 0 : case EQ_EXPR:
8385 : 0 : {
8386 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
8387 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
8388 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8389 : : {
8390 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8391 : : {
8392 : 0 : {
8393 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8394 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1407;
8395 : 0 : {
8396 : 0 : tree res_op0;
8397 : 0 : {
8398 : 0 : tree _o1[2], _r1;
8399 : 0 : _o1[0] = captures[0];
8400 : 0 : _o1[1] = captures[1];
8401 : 0 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
8402 : 0 : res_op0 = _r1;
8403 : : }
8404 : 0 : tree _r;
8405 : 0 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
8406 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 950, __FILE__, __LINE__, true);
8407 : 0 : return _r;
8408 : : }
8409 : 0 : next_after_fail1407:;
8410 : : }
8411 : : }
8412 : : }
8413 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
8414 : : {
8415 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
8416 : : {
8417 : 0 : {
8418 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
8419 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1408;
8420 : 0 : {
8421 : 0 : tree res_op0;
8422 : 0 : {
8423 : 0 : tree _o1[2], _r1;
8424 : 0 : _o1[0] = captures[0];
8425 : 0 : _o1[1] = captures[1];
8426 : 0 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
8427 : 0 : res_op0 = _r1;
8428 : : }
8429 : 0 : tree _r;
8430 : 0 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
8431 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 950, __FILE__, __LINE__, true);
8432 : 0 : return _r;
8433 : : }
8434 : 0 : next_after_fail1408:;
8435 : : }
8436 : : }
8437 : : }
8438 : : break;
8439 : : }
8440 : : default:;
8441 : : }
8442 : : }
8443 : : }
8444 : : break;
8445 : : }
8446 : 118 : case EQ_EXPR:
8447 : 118 : {
8448 : 118 : tree _q20 = TREE_OPERAND (_p0, 0);
8449 : 118 : tree _q21 = TREE_OPERAND (_p0, 1);
8450 : 118 : switch (TREE_CODE (_p1))
8451 : : {
8452 : 0 : case BIT_AND_EXPR:
8453 : 0 : {
8454 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
8455 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
8456 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8457 : : {
8458 : 0 : if (tree_truth_valued_p (_q50))
8459 : : {
8460 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8461 : : {
8462 : 0 : if (tree_truth_valued_p (_q51))
8463 : : {
8464 : 0 : {
8465 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8466 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1409;
8467 : 0 : {
8468 : 0 : tree res_op0;
8469 : 0 : {
8470 : 0 : tree _o1[2], _r1;
8471 : 0 : _o1[0] = captures[0];
8472 : 0 : _o1[1] = captures[1];
8473 : 0 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
8474 : 0 : res_op0 = _r1;
8475 : : }
8476 : 0 : tree _r;
8477 : 0 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
8478 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 950, __FILE__, __LINE__, true);
8479 : 0 : return _r;
8480 : : }
8481 : 0 : next_after_fail1409:;
8482 : : }
8483 : : }
8484 : : }
8485 : : }
8486 : : }
8487 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
8488 : : {
8489 : 0 : if (tree_truth_valued_p (_q50))
8490 : : {
8491 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
8492 : : {
8493 : 0 : if (tree_truth_valued_p (_q51))
8494 : : {
8495 : 0 : {
8496 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8497 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1410;
8498 : 0 : {
8499 : 0 : tree res_op0;
8500 : 0 : {
8501 : 0 : tree _o1[2], _r1;
8502 : 0 : _o1[0] = captures[0];
8503 : 0 : _o1[1] = captures[1];
8504 : 0 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
8505 : 0 : res_op0 = _r1;
8506 : : }
8507 : 0 : tree _r;
8508 : 0 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
8509 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 950, __FILE__, __LINE__, true);
8510 : 0 : return _r;
8511 : : }
8512 : 0 : next_after_fail1410:;
8513 : : }
8514 : : }
8515 : : }
8516 : : }
8517 : : }
8518 : : break;
8519 : : }
8520 : : default:;
8521 : : }
8522 : : break;
8523 : : }
8524 : 667518 : default:;
8525 : : }
8526 : 667518 : {
8527 : 667518 : tree _p0_pops[1];
8528 : 667518 : if (tree_logical_inverted_value (_p0, _p0_pops))
8529 : : {
8530 : 43 : tree _q20 = _p0_pops[0];
8531 : 43 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
8532 : : {
8533 : 4 : if (tree_truth_valued_p (_p1))
8534 : : {
8535 : 4 : {
8536 : 4 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
8537 : 4 : tree res = generic_simplify_118 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
8538 : 4 : if (res) return res;
8539 : : }
8540 : : }
8541 : : }
8542 : : }
8543 : : }
8544 : 667514 : {
8545 : 667514 : tree _p0_pops[1];
8546 : 667514 : if (tree_nop_convert (_p0, _p0_pops))
8547 : : {
8548 : 485438 : tree _q20 = _p0_pops[0];
8549 : 485438 : switch (TREE_CODE (_q20))
8550 : : {
8551 : 24 : case BIT_NOT_EXPR:
8552 : 24 : {
8553 : 24 : tree _q30 = TREE_OPERAND (_q20, 0);
8554 : 24 : {
8555 : 24 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _p1 };
8556 : 24 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
8557 : 24 : if (res) return res;
8558 : : }
8559 : 0 : break;
8560 : : }
8561 : 20 : case MULT_EXPR:
8562 : 20 : {
8563 : 20 : tree _q30 = TREE_OPERAND (_q20, 0);
8564 : 20 : tree _q31 = TREE_OPERAND (_q20, 1);
8565 : 20 : {
8566 : 20 : tree _q30_pops[1];
8567 : 20 : if (tree_nop_convert (_q30, _q30_pops))
8568 : : {
8569 : 0 : tree _q40 = _q30_pops[0];
8570 : 0 : switch (TREE_CODE (_q31))
8571 : : {
8572 : 0 : case INTEGER_CST:
8573 : 0 : {
8574 : 0 : switch (TREE_CODE (_p1))
8575 : : {
8576 : 0 : case LSHIFT_EXPR:
8577 : 0 : {
8578 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
8579 : 0 : tree _q71 = TREE_OPERAND (_p1, 1);
8580 : 0 : if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
8581 : : {
8582 : 0 : switch (TREE_CODE (_q71))
8583 : : {
8584 : 0 : case INTEGER_CST:
8585 : 0 : {
8586 : 0 : {
8587 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q40, _q31, _p1, _q71 };
8588 : 0 : tree res = generic_simplify_115 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
8589 : 0 : if (res) return res;
8590 : : }
8591 : 0 : break;
8592 : : }
8593 : : default:;
8594 : : }
8595 : : }
8596 : : break;
8597 : : }
8598 : 0 : default:;
8599 : : }
8600 : 0 : {
8601 : 0 : tree _p1_pops[1];
8602 : 0 : if (tree_nop_convert (_p1, _p1_pops))
8603 : : {
8604 : 0 : tree _q70 = _p1_pops[0];
8605 : 0 : switch (TREE_CODE (_q70))
8606 : : {
8607 : 0 : case MULT_EXPR:
8608 : 0 : {
8609 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
8610 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
8611 : 0 : {
8612 : 0 : tree _q80_pops[1];
8613 : 0 : if (tree_nop_convert (_q80, _q80_pops))
8614 : : {
8615 : 0 : tree _q90 = _q80_pops[0];
8616 : 0 : switch (TREE_CODE (_q81))
8617 : : {
8618 : 0 : case INTEGER_CST:
8619 : 0 : {
8620 : 0 : {
8621 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q40, _q31, _p1, _q70, _q90, _q81 };
8622 : 0 : tree res = generic_simplify_114 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
8623 : 0 : if (res) return res;
8624 : : }
8625 : 0 : break;
8626 : : }
8627 : : default:;
8628 : : }
8629 : : }
8630 : : }
8631 : 0 : break;
8632 : : }
8633 : : default:;
8634 : : }
8635 : : }
8636 : : }
8637 : 0 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
8638 : : {
8639 : 0 : {
8640 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q40, _q31 };
8641 : 0 : tree res = generic_simplify_116 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
8642 : 0 : if (res) return res;
8643 : : }
8644 : : }
8645 : : break;
8646 : : }
8647 : : default:;
8648 : : }
8649 : : }
8650 : : }
8651 : 20 : break;
8652 : : }
8653 : : default:;
8654 : : }
8655 : : }
8656 : : }
8657 : 667490 : if (tree_truth_valued_p (_p0))
8658 : : {
8659 : 35459 : {
8660 : 35459 : tree _p1_pops[1];
8661 : 35459 : if (tree_logical_inverted_value (_p1, _p1_pops))
8662 : : {
8663 : 7 : tree _q30 = _p1_pops[0];
8664 : 7 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
8665 : : {
8666 : 0 : {
8667 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
8668 : 0 : tree res = generic_simplify_118 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
8669 : 0 : if (res) return res;
8670 : : }
8671 : : }
8672 : : }
8673 : : }
8674 : : }
8675 : 667490 : switch (TREE_CODE (_p1))
8676 : : {
8677 : 288 : case BIT_NOT_EXPR:
8678 : 288 : {
8679 : 288 : tree _q30 = TREE_OPERAND (_p1, 0);
8680 : 288 : {
8681 : 288 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _p1, _q30, _p0 };
8682 : 288 : tree res = generic_simplify_163 (loc, type, _p0, _p1, captures);
8683 : 288 : if (res) return res;
8684 : : }
8685 : 0 : break;
8686 : : }
8687 : 667202 : default:;
8688 : : }
8689 : 667202 : {
8690 : 667202 : tree _p1_pops[1];
8691 : 667202 : if (tree_nop_convert (_p1, _p1_pops))
8692 : : {
8693 : 527262 : tree _q30 = _p1_pops[0];
8694 : 527262 : switch (TREE_CODE (_q30))
8695 : : {
8696 : 0 : case BIT_NOT_EXPR:
8697 : 0 : {
8698 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
8699 : 0 : {
8700 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q30, _q40, _p0 };
8701 : 0 : tree res = generic_simplify_166 (loc, type, _p0, _p1, captures);
8702 : 0 : if (res) return res;
8703 : : }
8704 : 0 : break;
8705 : : }
8706 : : default:;
8707 : : }
8708 : : }
8709 : : }
8710 : 667202 : switch (TREE_CODE (_p0))
8711 : : {
8712 : 1131 : case BIT_IOR_EXPR:
8713 : 1131 : {
8714 : 1131 : tree _q20 = TREE_OPERAND (_p0, 0);
8715 : 1131 : tree _q21 = TREE_OPERAND (_p0, 1);
8716 : 1131 : switch (TREE_CODE (_q21))
8717 : : {
8718 : 23 : case INTEGER_CST:
8719 : 23 : {
8720 : 23 : switch (TREE_CODE (_p1))
8721 : : {
8722 : 23 : case INTEGER_CST:
8723 : 23 : {
8724 : 23 : {
8725 : 23 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
8726 : 23 : tree res = generic_simplify_122 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_XOR_EXPR);
8727 : 23 : if (res) return res;
8728 : : }
8729 : 23 : break;
8730 : : }
8731 : : default:;
8732 : : }
8733 : : break;
8734 : : }
8735 : : default:;
8736 : : }
8737 : : break;
8738 : : }
8739 : 90 : case LT_EXPR:
8740 : 90 : {
8741 : 90 : tree _q20 = TREE_OPERAND (_p0, 0);
8742 : 90 : tree _q21 = TREE_OPERAND (_p0, 1);
8743 : 90 : switch (TREE_CODE (_p1))
8744 : : {
8745 : 0 : case GT_EXPR:
8746 : 0 : {
8747 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
8748 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
8749 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8750 : : {
8751 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8752 : : {
8753 : 0 : {
8754 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8755 : 0 : const enum tree_code cmp1 = LT_EXPR;
8756 : 0 : const enum tree_code cmp2 = GT_EXPR;
8757 : 0 : const enum tree_code rcmp = NE_EXPR;
8758 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
8759 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
8760 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
8761 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
8762 : : )
8763 : : {
8764 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1411;
8765 : 0 : {
8766 : 0 : tree res_op0;
8767 : 0 : res_op0 = captures[0];
8768 : 0 : tree res_op1;
8769 : 0 : res_op1 = captures[1];
8770 : 0 : tree _r;
8771 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
8772 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 951, __FILE__, __LINE__, true);
8773 : 0 : return _r;
8774 : : }
8775 : 0 : next_after_fail1411:;
8776 : : }
8777 : : }
8778 : : }
8779 : : }
8780 : : break;
8781 : : }
8782 : 0 : case EQ_EXPR:
8783 : 0 : {
8784 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
8785 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
8786 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8787 : : {
8788 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8789 : : {
8790 : 0 : {
8791 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8792 : 0 : const enum tree_code cmp1 = LT_EXPR;
8793 : 0 : const enum tree_code cmp2 = EQ_EXPR;
8794 : 0 : const enum tree_code rcmp = LE_EXPR;
8795 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
8796 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
8797 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
8798 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
8799 : : )
8800 : : {
8801 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1412;
8802 : 0 : {
8803 : 0 : tree res_op0;
8804 : 0 : res_op0 = captures[0];
8805 : 0 : tree res_op1;
8806 : 0 : res_op1 = captures[1];
8807 : 0 : tree _r;
8808 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
8809 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 951, __FILE__, __LINE__, true);
8810 : 0 : return _r;
8811 : : }
8812 : 0 : next_after_fail1412:;
8813 : : }
8814 : : }
8815 : : }
8816 : : }
8817 : : break;
8818 : : }
8819 : 0 : case NE_EXPR:
8820 : 0 : {
8821 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
8822 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
8823 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8824 : : {
8825 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8826 : : {
8827 : 0 : {
8828 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8829 : 0 : const enum tree_code cmp1 = LT_EXPR;
8830 : 0 : const enum tree_code cmp2 = NE_EXPR;
8831 : 0 : const enum tree_code rcmp = GT_EXPR;
8832 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
8833 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
8834 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
8835 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
8836 : : )
8837 : : {
8838 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1413;
8839 : 0 : {
8840 : 0 : tree res_op0;
8841 : 0 : res_op0 = captures[0];
8842 : 0 : tree res_op1;
8843 : 0 : res_op1 = captures[1];
8844 : 0 : tree _r;
8845 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
8846 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 951, __FILE__, __LINE__, true);
8847 : 0 : return _r;
8848 : : }
8849 : 0 : next_after_fail1413:;
8850 : : }
8851 : : }
8852 : : }
8853 : : }
8854 : : break;
8855 : : }
8856 : : default:;
8857 : : }
8858 : : break;
8859 : : }
8860 : 78 : case LE_EXPR:
8861 : 78 : {
8862 : 78 : tree _q20 = TREE_OPERAND (_p0, 0);
8863 : 78 : tree _q21 = TREE_OPERAND (_p0, 1);
8864 : 78 : switch (TREE_CODE (_p1))
8865 : : {
8866 : 0 : case GE_EXPR:
8867 : 0 : {
8868 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
8869 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
8870 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8871 : : {
8872 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8873 : : {
8874 : 0 : {
8875 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8876 : 0 : const enum tree_code cmp1 = LE_EXPR;
8877 : 0 : const enum tree_code cmp2 = GE_EXPR;
8878 : 0 : const enum tree_code rcmp = NE_EXPR;
8879 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
8880 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
8881 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
8882 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
8883 : : )
8884 : : {
8885 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1414;
8886 : 0 : {
8887 : 0 : tree res_op0;
8888 : 0 : res_op0 = captures[0];
8889 : 0 : tree res_op1;
8890 : 0 : res_op1 = captures[1];
8891 : 0 : tree _r;
8892 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
8893 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 951, __FILE__, __LINE__, true);
8894 : 0 : return _r;
8895 : : }
8896 : 0 : next_after_fail1414:;
8897 : : }
8898 : : }
8899 : : }
8900 : : }
8901 : : break;
8902 : : }
8903 : 0 : case EQ_EXPR:
8904 : 0 : {
8905 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
8906 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
8907 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8908 : : {
8909 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8910 : : {
8911 : 0 : {
8912 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8913 : 0 : const enum tree_code cmp1 = LE_EXPR;
8914 : 0 : const enum tree_code cmp2 = EQ_EXPR;
8915 : 0 : const enum tree_code rcmp = LT_EXPR;
8916 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
8917 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
8918 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
8919 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
8920 : : )
8921 : : {
8922 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1415;
8923 : 0 : {
8924 : 0 : tree res_op0;
8925 : 0 : res_op0 = captures[0];
8926 : 0 : tree res_op1;
8927 : 0 : res_op1 = captures[1];
8928 : 0 : tree _r;
8929 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
8930 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 951, __FILE__, __LINE__, true);
8931 : 0 : return _r;
8932 : : }
8933 : 0 : next_after_fail1415:;
8934 : : }
8935 : : }
8936 : : }
8937 : : }
8938 : : break;
8939 : : }
8940 : 0 : case NE_EXPR:
8941 : 0 : {
8942 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
8943 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
8944 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8945 : : {
8946 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8947 : : {
8948 : 0 : {
8949 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8950 : 0 : const enum tree_code cmp1 = LE_EXPR;
8951 : 0 : const enum tree_code cmp2 = NE_EXPR;
8952 : 0 : const enum tree_code rcmp = GE_EXPR;
8953 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
8954 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
8955 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
8956 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
8957 : : )
8958 : : {
8959 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1416;
8960 : 0 : {
8961 : 0 : tree res_op0;
8962 : 0 : res_op0 = captures[0];
8963 : 0 : tree res_op1;
8964 : 0 : res_op1 = captures[1];
8965 : 0 : tree _r;
8966 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
8967 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 951, __FILE__, __LINE__, true);
8968 : 0 : return _r;
8969 : : }
8970 : 0 : next_after_fail1416:;
8971 : : }
8972 : : }
8973 : : }
8974 : : }
8975 : : break;
8976 : : }
8977 : : default:;
8978 : : }
8979 : : break;
8980 : : }
8981 : 100 : case GT_EXPR:
8982 : 100 : {
8983 : 100 : tree _q20 = TREE_OPERAND (_p0, 0);
8984 : 100 : tree _q21 = TREE_OPERAND (_p0, 1);
8985 : 100 : switch (TREE_CODE (_p1))
8986 : : {
8987 : 0 : case GT_EXPR:
8988 : 0 : {
8989 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
8990 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
8991 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
8992 : : {
8993 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
8994 : : {
8995 : 0 : {
8996 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
8997 : 0 : const enum tree_code cmp1 = LT_EXPR;
8998 : 0 : const enum tree_code cmp2 = GT_EXPR;
8999 : 0 : const enum tree_code rcmp = NE_EXPR;
9000 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9001 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9002 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9003 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9004 : : )
9005 : : {
9006 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1417;
9007 : 0 : {
9008 : 0 : tree res_op0;
9009 : 0 : res_op0 = captures[0];
9010 : 0 : tree res_op1;
9011 : 0 : res_op1 = captures[1];
9012 : 0 : tree _r;
9013 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9014 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 951, __FILE__, __LINE__, true);
9015 : 0 : return _r;
9016 : : }
9017 : 0 : next_after_fail1417:;
9018 : : }
9019 : : }
9020 : 0 : {
9021 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9022 : 0 : const enum tree_code cmp1 = LT_EXPR;
9023 : 0 : const enum tree_code cmp2 = GT_EXPR;
9024 : 0 : const enum tree_code rcmp = NE_EXPR;
9025 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9026 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9027 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9028 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9029 : : )
9030 : : {
9031 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1418;
9032 : 0 : {
9033 : 0 : tree res_op0;
9034 : 0 : res_op0 = captures[0];
9035 : 0 : tree res_op1;
9036 : 0 : res_op1 = captures[1];
9037 : 0 : tree _r;
9038 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9039 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 951, __FILE__, __LINE__, true);
9040 : 0 : return _r;
9041 : : }
9042 : 0 : next_after_fail1418:;
9043 : : }
9044 : : }
9045 : : }
9046 : : }
9047 : : break;
9048 : : }
9049 : 0 : case EQ_EXPR:
9050 : 0 : {
9051 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9052 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9053 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9054 : : {
9055 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9056 : : {
9057 : 0 : {
9058 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
9059 : 0 : const enum tree_code cmp1 = LT_EXPR;
9060 : 0 : const enum tree_code cmp2 = EQ_EXPR;
9061 : 0 : const enum tree_code rcmp = LE_EXPR;
9062 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9063 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9064 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9065 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9066 : : )
9067 : : {
9068 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1419;
9069 : 0 : {
9070 : 0 : tree res_op0;
9071 : 0 : res_op0 = captures[0];
9072 : 0 : tree res_op1;
9073 : 0 : res_op1 = captures[1];
9074 : 0 : tree _r;
9075 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9076 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 951, __FILE__, __LINE__, true);
9077 : 0 : return _r;
9078 : : }
9079 : 0 : next_after_fail1419:;
9080 : : }
9081 : : }
9082 : : }
9083 : : }
9084 : : break;
9085 : : }
9086 : 12 : case NE_EXPR:
9087 : 12 : {
9088 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
9089 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
9090 : 12 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9091 : : {
9092 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9093 : : {
9094 : 0 : {
9095 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
9096 : 0 : const enum tree_code cmp1 = LT_EXPR;
9097 : 0 : const enum tree_code cmp2 = NE_EXPR;
9098 : 0 : const enum tree_code rcmp = GT_EXPR;
9099 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9100 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9101 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9102 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9103 : : )
9104 : : {
9105 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1420;
9106 : 0 : {
9107 : 0 : tree res_op0;
9108 : 0 : res_op0 = captures[0];
9109 : 0 : tree res_op1;
9110 : 0 : res_op1 = captures[1];
9111 : 0 : tree _r;
9112 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9113 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 951, __FILE__, __LINE__, true);
9114 : 0 : return _r;
9115 : : }
9116 : 0 : next_after_fail1420:;
9117 : : }
9118 : : }
9119 : : }
9120 : : }
9121 : : break;
9122 : : }
9123 : 0 : case LT_EXPR:
9124 : 0 : {
9125 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9126 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9127 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9128 : : {
9129 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9130 : : {
9131 : 0 : {
9132 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9133 : 0 : const enum tree_code cmp1 = LT_EXPR;
9134 : 0 : const enum tree_code cmp2 = GT_EXPR;
9135 : 0 : const enum tree_code rcmp = NE_EXPR;
9136 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9137 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9138 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9139 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9140 : : )
9141 : : {
9142 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1421;
9143 : 0 : {
9144 : 0 : tree res_op0;
9145 : 0 : res_op0 = captures[0];
9146 : 0 : tree res_op1;
9147 : 0 : res_op1 = captures[1];
9148 : 0 : tree _r;
9149 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9150 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 951, __FILE__, __LINE__, true);
9151 : 0 : return _r;
9152 : : }
9153 : 0 : next_after_fail1421:;
9154 : : }
9155 : : }
9156 : : }
9157 : : }
9158 : : break;
9159 : : }
9160 : : default:;
9161 : : }
9162 : : break;
9163 : : }
9164 : 62 : case GE_EXPR:
9165 : 62 : {
9166 : 62 : tree _q20 = TREE_OPERAND (_p0, 0);
9167 : 62 : tree _q21 = TREE_OPERAND (_p0, 1);
9168 : 62 : switch (TREE_CODE (_p1))
9169 : : {
9170 : 1 : case GE_EXPR:
9171 : 1 : {
9172 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
9173 : 1 : tree _q51 = TREE_OPERAND (_p1, 1);
9174 : 1 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9175 : : {
9176 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9177 : : {
9178 : 0 : {
9179 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
9180 : 0 : const enum tree_code cmp1 = LE_EXPR;
9181 : 0 : const enum tree_code cmp2 = GE_EXPR;
9182 : 0 : const enum tree_code rcmp = NE_EXPR;
9183 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9184 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9185 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9186 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9187 : : )
9188 : : {
9189 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1422;
9190 : 0 : {
9191 : 0 : tree res_op0;
9192 : 0 : res_op0 = captures[0];
9193 : 0 : tree res_op1;
9194 : 0 : res_op1 = captures[1];
9195 : 0 : tree _r;
9196 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9197 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 951, __FILE__, __LINE__, true);
9198 : 0 : return _r;
9199 : : }
9200 : 0 : next_after_fail1422:;
9201 : : }
9202 : : }
9203 : 0 : {
9204 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9205 : 0 : const enum tree_code cmp1 = LE_EXPR;
9206 : 0 : const enum tree_code cmp2 = GE_EXPR;
9207 : 0 : const enum tree_code rcmp = NE_EXPR;
9208 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9209 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9210 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9211 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9212 : : )
9213 : : {
9214 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1423;
9215 : 0 : {
9216 : 0 : tree res_op0;
9217 : 0 : res_op0 = captures[0];
9218 : 0 : tree res_op1;
9219 : 0 : res_op1 = captures[1];
9220 : 0 : tree _r;
9221 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9222 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 951, __FILE__, __LINE__, true);
9223 : 0 : return _r;
9224 : : }
9225 : 0 : next_after_fail1423:;
9226 : : }
9227 : : }
9228 : : }
9229 : : }
9230 : : break;
9231 : : }
9232 : 0 : case EQ_EXPR:
9233 : 0 : {
9234 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9235 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9236 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9237 : : {
9238 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9239 : : {
9240 : 0 : {
9241 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
9242 : 0 : const enum tree_code cmp1 = LE_EXPR;
9243 : 0 : const enum tree_code cmp2 = EQ_EXPR;
9244 : 0 : const enum tree_code rcmp = LT_EXPR;
9245 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9246 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9247 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9248 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9249 : : )
9250 : : {
9251 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1424;
9252 : 0 : {
9253 : 0 : tree res_op0;
9254 : 0 : res_op0 = captures[0];
9255 : 0 : tree res_op1;
9256 : 0 : res_op1 = captures[1];
9257 : 0 : tree _r;
9258 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9259 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 951, __FILE__, __LINE__, true);
9260 : 0 : return _r;
9261 : : }
9262 : 0 : next_after_fail1424:;
9263 : : }
9264 : : }
9265 : : }
9266 : : }
9267 : : break;
9268 : : }
9269 : 8 : case NE_EXPR:
9270 : 8 : {
9271 : 8 : tree _q50 = TREE_OPERAND (_p1, 0);
9272 : 8 : tree _q51 = TREE_OPERAND (_p1, 1);
9273 : 8 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9274 : : {
9275 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9276 : : {
9277 : 0 : {
9278 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
9279 : 0 : const enum tree_code cmp1 = LE_EXPR;
9280 : 0 : const enum tree_code cmp2 = NE_EXPR;
9281 : 0 : const enum tree_code rcmp = GE_EXPR;
9282 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9283 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9284 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9285 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9286 : : )
9287 : : {
9288 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1425;
9289 : 0 : {
9290 : 0 : tree res_op0;
9291 : 0 : res_op0 = captures[0];
9292 : 0 : tree res_op1;
9293 : 0 : res_op1 = captures[1];
9294 : 0 : tree _r;
9295 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9296 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 951, __FILE__, __LINE__, true);
9297 : 0 : return _r;
9298 : : }
9299 : 0 : next_after_fail1425:;
9300 : : }
9301 : : }
9302 : : }
9303 : : }
9304 : : break;
9305 : : }
9306 : 0 : case LE_EXPR:
9307 : 0 : {
9308 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9309 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9310 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9311 : : {
9312 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9313 : : {
9314 : 0 : {
9315 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9316 : 0 : const enum tree_code cmp1 = LE_EXPR;
9317 : 0 : const enum tree_code cmp2 = GE_EXPR;
9318 : 0 : const enum tree_code rcmp = NE_EXPR;
9319 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9320 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9321 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9322 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9323 : : )
9324 : : {
9325 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1426;
9326 : 0 : {
9327 : 0 : tree res_op0;
9328 : 0 : res_op0 = captures[0];
9329 : 0 : tree res_op1;
9330 : 0 : res_op1 = captures[1];
9331 : 0 : tree _r;
9332 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9333 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 951, __FILE__, __LINE__, true);
9334 : 0 : return _r;
9335 : : }
9336 : 0 : next_after_fail1426:;
9337 : : }
9338 : : }
9339 : : }
9340 : : }
9341 : : break;
9342 : : }
9343 : : default:;
9344 : : }
9345 : : break;
9346 : : }
9347 : 118 : case EQ_EXPR:
9348 : 118 : {
9349 : 118 : tree _q20 = TREE_OPERAND (_p0, 0);
9350 : 118 : tree _q21 = TREE_OPERAND (_p0, 1);
9351 : 118 : switch (TREE_CODE (_p1))
9352 : : {
9353 : 0 : case LT_EXPR:
9354 : 0 : {
9355 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9356 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9357 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9358 : : {
9359 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9360 : : {
9361 : 0 : {
9362 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9363 : 0 : const enum tree_code cmp1 = LT_EXPR;
9364 : 0 : const enum tree_code cmp2 = EQ_EXPR;
9365 : 0 : const enum tree_code rcmp = LE_EXPR;
9366 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9367 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9368 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9369 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9370 : : )
9371 : : {
9372 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1427;
9373 : 0 : {
9374 : 0 : tree res_op0;
9375 : 0 : res_op0 = captures[0];
9376 : 0 : tree res_op1;
9377 : 0 : res_op1 = captures[1];
9378 : 0 : tree _r;
9379 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9380 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 951, __FILE__, __LINE__, true);
9381 : 0 : return _r;
9382 : : }
9383 : 0 : next_after_fail1427:;
9384 : : }
9385 : : }
9386 : : }
9387 : : }
9388 : : break;
9389 : : }
9390 : 0 : case LE_EXPR:
9391 : 0 : {
9392 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9393 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9394 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9395 : : {
9396 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9397 : : {
9398 : 0 : {
9399 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9400 : 0 : const enum tree_code cmp1 = LE_EXPR;
9401 : 0 : const enum tree_code cmp2 = EQ_EXPR;
9402 : 0 : const enum tree_code rcmp = LT_EXPR;
9403 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9404 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9405 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9406 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9407 : : )
9408 : : {
9409 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1428;
9410 : 0 : {
9411 : 0 : tree res_op0;
9412 : 0 : res_op0 = captures[0];
9413 : 0 : tree res_op1;
9414 : 0 : res_op1 = captures[1];
9415 : 0 : tree _r;
9416 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9417 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 951, __FILE__, __LINE__, true);
9418 : 0 : return _r;
9419 : : }
9420 : 0 : next_after_fail1428:;
9421 : : }
9422 : : }
9423 : : }
9424 : : }
9425 : : break;
9426 : : }
9427 : 0 : case GT_EXPR:
9428 : 0 : {
9429 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9430 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9431 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9432 : : {
9433 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9434 : : {
9435 : 0 : {
9436 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9437 : 0 : const enum tree_code cmp1 = LT_EXPR;
9438 : 0 : const enum tree_code cmp2 = EQ_EXPR;
9439 : 0 : const enum tree_code rcmp = LE_EXPR;
9440 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9441 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9442 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9443 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9444 : : )
9445 : : {
9446 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1429;
9447 : 0 : {
9448 : 0 : tree res_op0;
9449 : 0 : res_op0 = captures[0];
9450 : 0 : tree res_op1;
9451 : 0 : res_op1 = captures[1];
9452 : 0 : tree _r;
9453 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9454 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 951, __FILE__, __LINE__, true);
9455 : 0 : return _r;
9456 : : }
9457 : 0 : next_after_fail1429:;
9458 : : }
9459 : : }
9460 : : }
9461 : : }
9462 : : break;
9463 : : }
9464 : 8 : case GE_EXPR:
9465 : 8 : {
9466 : 8 : tree _q50 = TREE_OPERAND (_p1, 0);
9467 : 8 : tree _q51 = TREE_OPERAND (_p1, 1);
9468 : 8 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9469 : : {
9470 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9471 : : {
9472 : 0 : {
9473 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9474 : 0 : const enum tree_code cmp1 = LE_EXPR;
9475 : 0 : const enum tree_code cmp2 = EQ_EXPR;
9476 : 0 : const enum tree_code rcmp = LT_EXPR;
9477 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9478 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9479 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9480 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9481 : : )
9482 : : {
9483 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1430;
9484 : 0 : {
9485 : 0 : tree res_op0;
9486 : 0 : res_op0 = captures[0];
9487 : 0 : tree res_op1;
9488 : 0 : res_op1 = captures[1];
9489 : 0 : tree _r;
9490 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9491 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 951, __FILE__, __LINE__, true);
9492 : 0 : return _r;
9493 : : }
9494 : 0 : next_after_fail1430:;
9495 : : }
9496 : : }
9497 : : }
9498 : : }
9499 : : break;
9500 : : }
9501 : : default:;
9502 : : }
9503 : : break;
9504 : : }
9505 : 113 : case NE_EXPR:
9506 : 113 : {
9507 : 113 : tree _q20 = TREE_OPERAND (_p0, 0);
9508 : 113 : tree _q21 = TREE_OPERAND (_p0, 1);
9509 : 113 : switch (TREE_CODE (_p1))
9510 : : {
9511 : 0 : case LT_EXPR:
9512 : 0 : {
9513 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9514 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9515 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9516 : : {
9517 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9518 : : {
9519 : 0 : {
9520 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9521 : 0 : const enum tree_code cmp1 = LT_EXPR;
9522 : 0 : const enum tree_code cmp2 = NE_EXPR;
9523 : 0 : const enum tree_code rcmp = GT_EXPR;
9524 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9525 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9526 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9527 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9528 : : )
9529 : : {
9530 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1431;
9531 : 0 : {
9532 : 0 : tree res_op0;
9533 : 0 : res_op0 = captures[0];
9534 : 0 : tree res_op1;
9535 : 0 : res_op1 = captures[1];
9536 : 0 : tree _r;
9537 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9538 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 951, __FILE__, __LINE__, true);
9539 : 0 : return _r;
9540 : : }
9541 : 0 : next_after_fail1431:;
9542 : : }
9543 : : }
9544 : : }
9545 : : }
9546 : : break;
9547 : : }
9548 : 0 : case LE_EXPR:
9549 : 0 : {
9550 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9551 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9552 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9553 : : {
9554 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9555 : : {
9556 : 0 : {
9557 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9558 : 0 : const enum tree_code cmp1 = LE_EXPR;
9559 : 0 : const enum tree_code cmp2 = NE_EXPR;
9560 : 0 : const enum tree_code rcmp = GE_EXPR;
9561 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9562 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9563 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9564 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9565 : : )
9566 : : {
9567 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1432;
9568 : 0 : {
9569 : 0 : tree res_op0;
9570 : 0 : res_op0 = captures[0];
9571 : 0 : tree res_op1;
9572 : 0 : res_op1 = captures[1];
9573 : 0 : tree _r;
9574 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9575 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 951, __FILE__, __LINE__, true);
9576 : 0 : return _r;
9577 : : }
9578 : 0 : next_after_fail1432:;
9579 : : }
9580 : : }
9581 : : }
9582 : : }
9583 : : break;
9584 : : }
9585 : 0 : case GT_EXPR:
9586 : 0 : {
9587 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9588 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9589 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9590 : : {
9591 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9592 : : {
9593 : 0 : {
9594 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9595 : 0 : const enum tree_code cmp1 = LT_EXPR;
9596 : 0 : const enum tree_code cmp2 = NE_EXPR;
9597 : 0 : const enum tree_code rcmp = GT_EXPR;
9598 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9599 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9600 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9601 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9602 : : )
9603 : : {
9604 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1433;
9605 : 0 : {
9606 : 0 : tree res_op0;
9607 : 0 : res_op0 = captures[0];
9608 : 0 : tree res_op1;
9609 : 0 : res_op1 = captures[1];
9610 : 0 : tree _r;
9611 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9612 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 951, __FILE__, __LINE__, true);
9613 : 0 : return _r;
9614 : : }
9615 : 0 : next_after_fail1433:;
9616 : : }
9617 : : }
9618 : : }
9619 : : }
9620 : : break;
9621 : : }
9622 : 6 : case GE_EXPR:
9623 : 6 : {
9624 : 6 : tree _q50 = TREE_OPERAND (_p1, 0);
9625 : 6 : tree _q51 = TREE_OPERAND (_p1, 1);
9626 : 6 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9627 : : {
9628 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9629 : : {
9630 : 0 : {
9631 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9632 : 0 : const enum tree_code cmp1 = LE_EXPR;
9633 : 0 : const enum tree_code cmp2 = NE_EXPR;
9634 : 0 : const enum tree_code rcmp = GE_EXPR;
9635 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
9636 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[0]))
9637 : 0 : || (VECTOR_TYPE_P (TREE_TYPE (captures[1]))
9638 : 0 : && expand_vec_cmp_expr_p (TREE_TYPE (captures[0]), type, rcmp))
9639 : : )
9640 : : {
9641 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1434;
9642 : 0 : {
9643 : 0 : tree res_op0;
9644 : 0 : res_op0 = captures[0];
9645 : 0 : tree res_op1;
9646 : 0 : res_op1 = captures[1];
9647 : 0 : tree _r;
9648 : 0 : _r = fold_build2_loc (loc, rcmp, type, res_op0, res_op1);
9649 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 951, __FILE__, __LINE__, true);
9650 : 0 : return _r;
9651 : : }
9652 : 0 : next_after_fail1434:;
9653 : : }
9654 : : }
9655 : : }
9656 : : }
9657 : : break;
9658 : : }
9659 : : default:;
9660 : : }
9661 : : break;
9662 : : }
9663 : 523 : case MULT_EXPR:
9664 : 523 : {
9665 : 523 : tree _q20 = TREE_OPERAND (_p0, 0);
9666 : 523 : tree _q21 = TREE_OPERAND (_p0, 1);
9667 : 523 : switch (TREE_CODE (_q21))
9668 : : {
9669 : 498 : case INTEGER_CST:
9670 : 498 : {
9671 : 498 : switch (TREE_CODE (_p1))
9672 : : {
9673 : 12 : case MULT_EXPR:
9674 : 12 : {
9675 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
9676 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
9677 : 12 : switch (TREE_CODE (_q51))
9678 : : {
9679 : 12 : case INTEGER_CST:
9680 : 12 : {
9681 : 12 : {
9682 : 12 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1, _p1, _q50, _q51 };
9683 : 12 : tree res = generic_simplify_141 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
9684 : 12 : if (res) return res;
9685 : : }
9686 : 12 : break;
9687 : : }
9688 : : default:;
9689 : : }
9690 : : break;
9691 : : }
9692 : 0 : case LSHIFT_EXPR:
9693 : 0 : {
9694 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9695 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9696 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9697 : : {
9698 : 0 : switch (TREE_CODE (_q51))
9699 : : {
9700 : 0 : case INTEGER_CST:
9701 : 0 : {
9702 : 0 : {
9703 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1, _q51 };
9704 : 0 : tree res = generic_simplify_142 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
9705 : 0 : if (res) return res;
9706 : : }
9707 : 0 : break;
9708 : : }
9709 : : default:;
9710 : : }
9711 : : }
9712 : : break;
9713 : : }
9714 : 498 : default:;
9715 : : }
9716 : 498 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
9717 : : {
9718 : 18 : {
9719 : 18 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21 };
9720 : 18 : tree res = generic_simplify_143 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
9721 : 18 : if (res) return res;
9722 : : }
9723 : : }
9724 : : break;
9725 : : }
9726 : 523 : default:;
9727 : : }
9728 : 523 : switch (TREE_CODE (_q20))
9729 : : {
9730 : 0 : case BIT_XOR_EXPR:
9731 : 0 : {
9732 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
9733 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
9734 : 0 : if (tree_zero_one_valued_p (_q21))
9735 : : {
9736 : 0 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
9737 : : {
9738 : 0 : {
9739 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q21 };
9740 : 0 : tree res = generic_simplify_167 (loc, type, _p0, _p1, captures);
9741 : 0 : if (res) return res;
9742 : : }
9743 : : }
9744 : 0 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
9745 : : {
9746 : 0 : {
9747 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q21 };
9748 : 0 : tree res = generic_simplify_167 (loc, type, _p0, _p1, captures);
9749 : 0 : if (res) return res;
9750 : : }
9751 : : }
9752 : : }
9753 : : break;
9754 : : }
9755 : 523 : default:;
9756 : : }
9757 : 523 : if (tree_zero_one_valued_p (_q20))
9758 : : {
9759 : 8 : switch (TREE_CODE (_q21))
9760 : : {
9761 : 2 : case BIT_XOR_EXPR:
9762 : 2 : {
9763 : 2 : tree _q40 = TREE_OPERAND (_q21, 0);
9764 : 2 : tree _q41 = TREE_OPERAND (_q21, 1);
9765 : 2 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
9766 : : {
9767 : 2 : {
9768 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _q20 };
9769 : 2 : tree res = generic_simplify_167 (loc, type, _p0, _p1, captures);
9770 : 2 : if (res) return res;
9771 : : }
9772 : : }
9773 : 0 : if ((_p1 == _q41 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q41, 0) && types_match (_p1, _q41)))
9774 : : {
9775 : 0 : {
9776 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _q20 };
9777 : 0 : tree res = generic_simplify_167 (loc, type, _p0, _p1, captures);
9778 : 0 : if (res) return res;
9779 : : }
9780 : : }
9781 : : break;
9782 : : }
9783 : : default:;
9784 : : }
9785 : : }
9786 : : break;
9787 : : }
9788 : 2489 : case LSHIFT_EXPR:
9789 : 2489 : {
9790 : 2489 : tree _q20 = TREE_OPERAND (_p0, 0);
9791 : 2489 : tree _q21 = TREE_OPERAND (_p0, 1);
9792 : 2489 : switch (TREE_CODE (_q21))
9793 : : {
9794 : 1108 : case INTEGER_CST:
9795 : 1108 : {
9796 : 1108 : switch (TREE_CODE (_p1))
9797 : : {
9798 : 0 : case MULT_EXPR:
9799 : 0 : {
9800 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9801 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9802 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9803 : : {
9804 : 0 : switch (TREE_CODE (_q51))
9805 : : {
9806 : 0 : case INTEGER_CST:
9807 : 0 : {
9808 : 0 : {
9809 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _p1, _q20, _q51, _p0, _q21 };
9810 : 0 : tree res = generic_simplify_142 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
9811 : 0 : if (res) return res;
9812 : : }
9813 : 0 : break;
9814 : : }
9815 : : default:;
9816 : : }
9817 : : }
9818 : : break;
9819 : : }
9820 : 1108 : default:;
9821 : : }
9822 : 1108 : {
9823 : 1108 : tree _p1_pops[1];
9824 : 1108 : if (tree_nop_convert (_p1, _p1_pops))
9825 : : {
9826 : 23 : tree _q50 = _p1_pops[0];
9827 : 23 : switch (TREE_CODE (_q50))
9828 : : {
9829 : 0 : case MULT_EXPR:
9830 : 0 : {
9831 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
9832 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
9833 : 0 : {
9834 : 0 : tree _q60_pops[1];
9835 : 0 : if (tree_nop_convert (_q60, _q60_pops))
9836 : : {
9837 : 0 : tree _q70 = _q60_pops[0];
9838 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
9839 : : {
9840 : 0 : switch (TREE_CODE (_q61))
9841 : : {
9842 : 0 : case INTEGER_CST:
9843 : 0 : {
9844 : 0 : {
9845 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q50, _q20, _q61, _p0, _q21 };
9846 : 0 : tree res = generic_simplify_115 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
9847 : 0 : if (res) return res;
9848 : : }
9849 : 0 : break;
9850 : : }
9851 : : default:;
9852 : : }
9853 : : }
9854 : : }
9855 : : }
9856 : 0 : break;
9857 : : }
9858 : : default:;
9859 : : }
9860 : : }
9861 : : }
9862 : 1108 : break;
9863 : : }
9864 : : default:;
9865 : : }
9866 : : break;
9867 : : }
9868 : 667200 : default:;
9869 : : }
9870 : 667200 : switch (TREE_CODE (_p1))
9871 : : {
9872 : 243 : case MULT_EXPR:
9873 : 243 : {
9874 : 243 : tree _q30 = TREE_OPERAND (_p1, 0);
9875 : 243 : tree _q31 = TREE_OPERAND (_p1, 1);
9876 : 243 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
9877 : : {
9878 : 0 : switch (TREE_CODE (_q31))
9879 : : {
9880 : 0 : case INTEGER_CST:
9881 : 0 : {
9882 : 0 : {
9883 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _p1, _p0, _q31 };
9884 : 0 : tree res = generic_simplify_143 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
9885 : 0 : if (res) return res;
9886 : : }
9887 : 0 : break;
9888 : : }
9889 : : default:;
9890 : : }
9891 : : }
9892 : : break;
9893 : : }
9894 : 667200 : default:;
9895 : : }
9896 : 667200 : {
9897 : 667200 : tree _p1_pops[1];
9898 : 667200 : if (tree_nop_convert (_p1, _p1_pops))
9899 : : {
9900 : 527262 : tree _q30 = _p1_pops[0];
9901 : 527262 : switch (TREE_CODE (_q30))
9902 : : {
9903 : 17 : case MULT_EXPR:
9904 : 17 : {
9905 : 17 : tree _q40 = TREE_OPERAND (_q30, 0);
9906 : 17 : tree _q41 = TREE_OPERAND (_q30, 1);
9907 : 17 : {
9908 : 17 : tree _q40_pops[1];
9909 : 17 : if (tree_nop_convert (_q40, _q40_pops))
9910 : : {
9911 : 0 : tree _q50 = _q40_pops[0];
9912 : 0 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
9913 : : {
9914 : 0 : switch (TREE_CODE (_q41))
9915 : : {
9916 : 0 : case INTEGER_CST:
9917 : 0 : {
9918 : 0 : {
9919 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q30, _p0, _q41 };
9920 : 0 : tree res = generic_simplify_116 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
9921 : 0 : if (res) return res;
9922 : : }
9923 : 0 : break;
9924 : : }
9925 : : default:;
9926 : : }
9927 : : }
9928 : : }
9929 : : }
9930 : 17 : break;
9931 : : }
9932 : : default:;
9933 : : }
9934 : : }
9935 : : }
9936 : 667200 : switch (TREE_CODE (_p0))
9937 : : {
9938 : 2489 : case LSHIFT_EXPR:
9939 : 2489 : {
9940 : 2489 : tree _q20 = TREE_OPERAND (_p0, 0);
9941 : 2489 : tree _q21 = TREE_OPERAND (_p0, 1);
9942 : 2489 : switch (TREE_CODE (_q21))
9943 : : {
9944 : 1108 : case INTEGER_CST:
9945 : 1108 : {
9946 : 1108 : switch (TREE_CODE (_p1))
9947 : : {
9948 : 9 : case LSHIFT_EXPR:
9949 : 9 : {
9950 : 9 : tree _q50 = TREE_OPERAND (_p1, 0);
9951 : 9 : tree _q51 = TREE_OPERAND (_p1, 1);
9952 : 9 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9953 : : {
9954 : 3 : switch (TREE_CODE (_q51))
9955 : : {
9956 : 3 : case INTEGER_CST:
9957 : 3 : {
9958 : 3 : {
9959 : 3 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
9960 : 3 : tree res = generic_simplify_144 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
9961 : 3 : if (res) return res;
9962 : : }
9963 : 1 : break;
9964 : : }
9965 : : default:;
9966 : : }
9967 : : }
9968 : : break;
9969 : : }
9970 : 1106 : default:;
9971 : : }
9972 : 1106 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
9973 : : {
9974 : 57 : {
9975 : 57 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
9976 : 57 : tree res = generic_simplify_145 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
9977 : 57 : if (res) return res;
9978 : : }
9979 : : }
9980 : : break;
9981 : : }
9982 : : default:;
9983 : : }
9984 : : break;
9985 : : }
9986 : 667198 : default:;
9987 : : }
9988 : 667198 : switch (TREE_CODE (_p1))
9989 : : {
9990 : 1982 : case LSHIFT_EXPR:
9991 : 1982 : {
9992 : 1982 : tree _q30 = TREE_OPERAND (_p1, 0);
9993 : 1982 : tree _q31 = TREE_OPERAND (_p1, 1);
9994 : 1982 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
9995 : : {
9996 : 3 : switch (TREE_CODE (_q31))
9997 : : {
9998 : 3 : case INTEGER_CST:
9999 : 3 : {
10000 : 3 : {
10001 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _p0, _q31 };
10002 : 3 : tree res = generic_simplify_145 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
10003 : 3 : if (res) return res;
10004 : : }
10005 : 0 : break;
10006 : : }
10007 : : default:;
10008 : : }
10009 : : }
10010 : : break;
10011 : : }
10012 : 667195 : default:;
10013 : : }
10014 : 667195 : switch (TREE_CODE (_p0))
10015 : : {
10016 : 0 : case MIN_EXPR:
10017 : 0 : {
10018 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
10019 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
10020 : 0 : switch (TREE_CODE (_p1))
10021 : : {
10022 : 0 : case MAX_EXPR:
10023 : 0 : {
10024 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
10025 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
10026 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
10027 : : {
10028 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10029 : : {
10030 : 0 : {
10031 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10032 : 0 : if (!HONOR_NANS (captures[0])
10033 : : )
10034 : : {
10035 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1435;
10036 : 0 : {
10037 : 0 : tree res_op0;
10038 : 0 : res_op0 = captures[0];
10039 : 0 : tree res_op1;
10040 : 0 : res_op1 = captures[1];
10041 : 0 : tree _r;
10042 : 0 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
10043 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 896, __FILE__, __LINE__, true);
10044 : 0 : return _r;
10045 : : }
10046 : 0 : next_after_fail1435:;
10047 : : }
10048 : : }
10049 : : }
10050 : : }
10051 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
10052 : : {
10053 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
10054 : : {
10055 : 0 : {
10056 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
10057 : 0 : if (!HONOR_NANS (captures[0])
10058 : : )
10059 : : {
10060 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1436;
10061 : 0 : {
10062 : 0 : tree res_op0;
10063 : 0 : res_op0 = captures[0];
10064 : 0 : tree res_op1;
10065 : 0 : res_op1 = captures[1];
10066 : 0 : tree _r;
10067 : 0 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
10068 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 896, __FILE__, __LINE__, true);
10069 : 0 : return _r;
10070 : : }
10071 : 0 : next_after_fail1436:;
10072 : : }
10073 : : }
10074 : : }
10075 : : }
10076 : : break;
10077 : : }
10078 : : default:;
10079 : : }
10080 : : break;
10081 : : }
10082 : 0 : case MAX_EXPR:
10083 : 0 : {
10084 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
10085 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
10086 : 0 : switch (TREE_CODE (_p1))
10087 : : {
10088 : 0 : case MIN_EXPR:
10089 : 0 : {
10090 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
10091 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
10092 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
10093 : : {
10094 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10095 : : {
10096 : 0 : {
10097 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10098 : 0 : if (!HONOR_NANS (captures[0])
10099 : : )
10100 : : {
10101 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1437;
10102 : 0 : {
10103 : 0 : tree res_op0;
10104 : 0 : res_op0 = captures[0];
10105 : 0 : tree res_op1;
10106 : 0 : res_op1 = captures[1];
10107 : 0 : tree _r;
10108 : 0 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
10109 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 896, __FILE__, __LINE__, true);
10110 : 0 : return _r;
10111 : : }
10112 : 0 : next_after_fail1437:;
10113 : : }
10114 : : }
10115 : : }
10116 : : }
10117 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
10118 : : {
10119 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
10120 : : {
10121 : 0 : {
10122 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10123 : 0 : if (!HONOR_NANS (captures[0])
10124 : : )
10125 : : {
10126 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1438;
10127 : 0 : {
10128 : 0 : tree res_op0;
10129 : 0 : res_op0 = captures[0];
10130 : 0 : tree res_op1;
10131 : 0 : res_op1 = captures[1];
10132 : 0 : tree _r;
10133 : 0 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
10134 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 896, __FILE__, __LINE__, true);
10135 : 0 : return _r;
10136 : : }
10137 : 0 : next_after_fail1438:;
10138 : : }
10139 : : }
10140 : : }
10141 : : }
10142 : : break;
10143 : : }
10144 : : default:;
10145 : : }
10146 : : break;
10147 : : }
10148 : 667195 : default:;
10149 : : }
10150 : 667195 : switch (TREE_CODE (_p1))
10151 : : {
10152 : 243 : case MULT_EXPR:
10153 : 243 : {
10154 : 243 : tree _q30 = TREE_OPERAND (_p1, 0);
10155 : 243 : tree _q31 = TREE_OPERAND (_p1, 1);
10156 : 243 : switch (TREE_CODE (_q30))
10157 : : {
10158 : 0 : case BIT_XOR_EXPR:
10159 : 0 : {
10160 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
10161 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
10162 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
10163 : : {
10164 : 0 : if (tree_zero_one_valued_p (_q31))
10165 : : {
10166 : 0 : {
10167 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q41, _q31 };
10168 : 0 : tree res = generic_simplify_167 (loc, type, _p0, _p1, captures);
10169 : 0 : if (res) return res;
10170 : : }
10171 : : }
10172 : : }
10173 : 0 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
10174 : : {
10175 : 0 : if (tree_zero_one_valued_p (_q31))
10176 : : {
10177 : 0 : {
10178 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q40, _q31 };
10179 : 0 : tree res = generic_simplify_167 (loc, type, _p0, _p1, captures);
10180 : 0 : if (res) return res;
10181 : : }
10182 : : }
10183 : : }
10184 : : break;
10185 : : }
10186 : 243 : default:;
10187 : : }
10188 : 243 : if (tree_zero_one_valued_p (_q30))
10189 : : {
10190 : 17 : switch (TREE_CODE (_q31))
10191 : : {
10192 : 0 : case BIT_XOR_EXPR:
10193 : 0 : {
10194 : 0 : tree _q50 = TREE_OPERAND (_q31, 0);
10195 : 0 : tree _q51 = TREE_OPERAND (_q31, 1);
10196 : 0 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
10197 : : {
10198 : 0 : {
10199 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q51, _q30 };
10200 : 0 : tree res = generic_simplify_167 (loc, type, _p0, _p1, captures);
10201 : 0 : if (res) return res;
10202 : : }
10203 : : }
10204 : 0 : if ((_q51 == _p0 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _p0, 0) && types_match (_q51, _p0)))
10205 : : {
10206 : 0 : {
10207 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q50, _q30 };
10208 : 0 : tree res = generic_simplify_167 (loc, type, _p0, _p1, captures);
10209 : 0 : if (res) return res;
10210 : : }
10211 : : }
10212 : : break;
10213 : : }
10214 : : default:;
10215 : : }
10216 : : }
10217 : : break;
10218 : : }
10219 : 667195 : default:;
10220 : : }
10221 : 667195 : switch (TREE_CODE (_p0))
10222 : : {
10223 : 1 : case VEC_COND_EXPR:
10224 : 1 : {
10225 : 1 : tree _q20 = TREE_OPERAND (_p0, 0);
10226 : 1 : tree _q21 = TREE_OPERAND (_p0, 1);
10227 : 1 : tree _q22 = TREE_OPERAND (_p0, 2);
10228 : 1 : switch (TREE_CODE (_p1))
10229 : : {
10230 : 0 : case VEC_COND_EXPR:
10231 : 0 : {
10232 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
10233 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
10234 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
10235 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
10236 : : {
10237 : 0 : {
10238 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
10239 : 0 : if (VECTOR_TYPE_P (type)
10240 : 0 : && (TREE_CODE_CLASS (BIT_XOR_EXPR) != tcc_comparison
10241 : : || types_match (type, TREE_TYPE (captures[2]))
10242 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
10243 : : || (optimize_vectors_before_lowering_p ()
10244 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
10245 : : )
10246 : : {
10247 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1439;
10248 : 0 : {
10249 : 0 : tree res_op0;
10250 : 0 : res_op0 = captures[1];
10251 : 0 : tree res_op1;
10252 : 0 : {
10253 : 0 : tree _o1[2], _r1;
10254 : 0 : _o1[0] = captures[2];
10255 : 0 : _o1[1] = captures[5];
10256 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10257 : 0 : if (EXPR_P (_r1))
10258 : 0 : goto next_after_fail1439;
10259 : 0 : res_op1 = _r1;
10260 : : }
10261 : 0 : tree res_op2;
10262 : 0 : {
10263 : 0 : tree _o1[2], _r1;
10264 : 0 : _o1[0] = captures[3];
10265 : 0 : _o1[1] = captures[6];
10266 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10267 : 0 : if (EXPR_P (_r1))
10268 : 0 : goto next_after_fail1439;
10269 : 0 : res_op2 = _r1;
10270 : : }
10271 : 0 : tree _r;
10272 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10273 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 900, __FILE__, __LINE__, true);
10274 : 0 : return _r;
10275 : : }
10276 : 0 : next_after_fail1439:;
10277 : : }
10278 : : }
10279 : : }
10280 : : break;
10281 : : }
10282 : 1 : default:;
10283 : : }
10284 : 1 : if (integer_minus_onep (_q21))
10285 : : {
10286 : 1 : if (integer_zerop (_q22))
10287 : : {
10288 : 1 : switch (TREE_CODE (_p1))
10289 : : {
10290 : 0 : case VEC_COND_EXPR:
10291 : 0 : {
10292 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
10293 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
10294 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
10295 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
10296 : : {
10297 : 0 : if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
10298 : : {
10299 : 0 : {
10300 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10301 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10302 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10303 : : )
10304 : : {
10305 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1440;
10306 : 0 : {
10307 : 0 : tree res_op0;
10308 : 0 : {
10309 : 0 : tree _o1[2], _r1;
10310 : 0 : _o1[0] = captures[0];
10311 : 0 : _o1[1] = captures[3];
10312 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10313 : 0 : res_op0 = _r1;
10314 : : }
10315 : 0 : tree res_op1;
10316 : 0 : res_op1 = captures[1];
10317 : 0 : tree res_op2;
10318 : 0 : res_op2 = captures[2];
10319 : 0 : tree _r;
10320 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10321 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
10322 : 0 : return _r;
10323 : : }
10324 : 0 : next_after_fail1440:;
10325 : : }
10326 : : }
10327 : 0 : {
10328 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10329 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10330 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10331 : : )
10332 : : {
10333 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1441;
10334 : 0 : {
10335 : 0 : tree res_op0;
10336 : 0 : {
10337 : 0 : tree _o1[2], _r1;
10338 : 0 : _o1[0] = captures[0];
10339 : 0 : _o1[1] = captures[3];
10340 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10341 : 0 : res_op0 = _r1;
10342 : : }
10343 : 0 : tree res_op1;
10344 : 0 : res_op1 = captures[1];
10345 : 0 : tree res_op2;
10346 : 0 : res_op2 = captures[2];
10347 : 0 : tree _r;
10348 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10349 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
10350 : 0 : return _r;
10351 : : }
10352 : 0 : next_after_fail1441:;
10353 : : }
10354 : : }
10355 : 0 : {
10356 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10357 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10358 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10359 : : )
10360 : : {
10361 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1442;
10362 : 0 : {
10363 : 0 : tree res_op0;
10364 : 0 : {
10365 : 0 : tree _o1[2], _r1;
10366 : 0 : _o1[0] = captures[0];
10367 : 0 : _o1[1] = captures[3];
10368 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10369 : 0 : res_op0 = _r1;
10370 : : }
10371 : 0 : tree res_op1;
10372 : 0 : res_op1 = captures[1];
10373 : 0 : tree res_op2;
10374 : 0 : res_op2 = captures[2];
10375 : 0 : tree _r;
10376 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10377 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
10378 : 0 : return _r;
10379 : : }
10380 : 0 : next_after_fail1442:;
10381 : : }
10382 : : }
10383 : 0 : {
10384 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10385 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10386 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10387 : : )
10388 : : {
10389 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1443;
10390 : 0 : {
10391 : 0 : tree res_op0;
10392 : 0 : {
10393 : 0 : tree _o1[2], _r1;
10394 : 0 : _o1[0] = captures[0];
10395 : 0 : _o1[1] = captures[3];
10396 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10397 : 0 : res_op0 = _r1;
10398 : : }
10399 : 0 : tree res_op1;
10400 : 0 : res_op1 = captures[1];
10401 : 0 : tree res_op2;
10402 : 0 : res_op2 = captures[2];
10403 : 0 : tree _r;
10404 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10405 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
10406 : 0 : return _r;
10407 : : }
10408 : 0 : next_after_fail1443:;
10409 : : }
10410 : : }
10411 : 0 : {
10412 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10413 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10414 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10415 : : )
10416 : : {
10417 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1444;
10418 : 0 : {
10419 : 0 : tree res_op0;
10420 : 0 : {
10421 : 0 : tree _o1[2], _r1;
10422 : 0 : _o1[0] = captures[0];
10423 : 0 : _o1[1] = captures[3];
10424 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10425 : 0 : res_op0 = _r1;
10426 : : }
10427 : 0 : tree res_op1;
10428 : 0 : res_op1 = captures[1];
10429 : 0 : tree res_op2;
10430 : 0 : res_op2 = captures[2];
10431 : 0 : tree _r;
10432 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10433 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
10434 : 0 : return _r;
10435 : : }
10436 : 0 : next_after_fail1444:;
10437 : : }
10438 : : }
10439 : 0 : {
10440 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10441 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10442 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10443 : : )
10444 : : {
10445 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1445;
10446 : 0 : {
10447 : 0 : tree res_op0;
10448 : 0 : {
10449 : 0 : tree _o1[2], _r1;
10450 : 0 : _o1[0] = captures[0];
10451 : 0 : _o1[1] = captures[3];
10452 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10453 : 0 : res_op0 = _r1;
10454 : : }
10455 : 0 : tree res_op1;
10456 : 0 : res_op1 = captures[1];
10457 : 0 : tree res_op2;
10458 : 0 : res_op2 = captures[2];
10459 : 0 : tree _r;
10460 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10461 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
10462 : 0 : return _r;
10463 : : }
10464 : 0 : next_after_fail1445:;
10465 : : }
10466 : : }
10467 : 0 : {
10468 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10469 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10470 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10471 : : )
10472 : : {
10473 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1446;
10474 : 0 : {
10475 : 0 : tree res_op0;
10476 : 0 : {
10477 : 0 : tree _o1[2], _r1;
10478 : 0 : _o1[0] = captures[0];
10479 : 0 : _o1[1] = captures[3];
10480 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10481 : 0 : res_op0 = _r1;
10482 : : }
10483 : 0 : tree res_op1;
10484 : 0 : res_op1 = captures[1];
10485 : 0 : tree res_op2;
10486 : 0 : res_op2 = captures[2];
10487 : 0 : tree _r;
10488 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10489 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
10490 : 0 : return _r;
10491 : : }
10492 : 0 : next_after_fail1446:;
10493 : : }
10494 : : }
10495 : 0 : {
10496 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10497 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10498 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10499 : : )
10500 : : {
10501 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1447;
10502 : 0 : {
10503 : 0 : tree res_op0;
10504 : 0 : {
10505 : 0 : tree _o1[2], _r1;
10506 : 0 : _o1[0] = captures[0];
10507 : 0 : _o1[1] = captures[3];
10508 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10509 : 0 : res_op0 = _r1;
10510 : : }
10511 : 0 : tree res_op1;
10512 : 0 : res_op1 = captures[1];
10513 : 0 : tree res_op2;
10514 : 0 : res_op2 = captures[2];
10515 : 0 : tree _r;
10516 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10517 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
10518 : 0 : return _r;
10519 : : }
10520 : 0 : next_after_fail1447:;
10521 : : }
10522 : : }
10523 : 0 : {
10524 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10525 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10526 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10527 : : )
10528 : : {
10529 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1448;
10530 : 0 : {
10531 : 0 : tree res_op0;
10532 : 0 : {
10533 : 0 : tree _o1[2], _r1;
10534 : 0 : _o1[0] = captures[0];
10535 : 0 : _o1[1] = captures[3];
10536 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10537 : 0 : res_op0 = _r1;
10538 : : }
10539 : 0 : tree res_op1;
10540 : 0 : res_op1 = captures[1];
10541 : 0 : tree res_op2;
10542 : 0 : res_op2 = captures[2];
10543 : 0 : tree _r;
10544 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10545 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
10546 : 0 : return _r;
10547 : : }
10548 : 0 : next_after_fail1448:;
10549 : : }
10550 : : }
10551 : 0 : {
10552 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10553 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10554 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10555 : : )
10556 : : {
10557 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1449;
10558 : 0 : {
10559 : 0 : tree res_op0;
10560 : 0 : {
10561 : 0 : tree _o1[2], _r1;
10562 : 0 : _o1[0] = captures[0];
10563 : 0 : _o1[1] = captures[3];
10564 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10565 : 0 : res_op0 = _r1;
10566 : : }
10567 : 0 : tree res_op1;
10568 : 0 : res_op1 = captures[1];
10569 : 0 : tree res_op2;
10570 : 0 : res_op2 = captures[2];
10571 : 0 : tree _r;
10572 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10573 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
10574 : 0 : return _r;
10575 : : }
10576 : 0 : next_after_fail1449:;
10577 : : }
10578 : : }
10579 : 0 : {
10580 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10581 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10582 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10583 : : )
10584 : : {
10585 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1450;
10586 : 0 : {
10587 : 0 : tree res_op0;
10588 : 0 : {
10589 : 0 : tree _o1[2], _r1;
10590 : 0 : _o1[0] = captures[0];
10591 : 0 : _o1[1] = captures[3];
10592 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10593 : 0 : res_op0 = _r1;
10594 : : }
10595 : 0 : tree res_op1;
10596 : 0 : res_op1 = captures[1];
10597 : 0 : tree res_op2;
10598 : 0 : res_op2 = captures[2];
10599 : 0 : tree _r;
10600 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10601 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
10602 : 0 : return _r;
10603 : : }
10604 : 0 : next_after_fail1450:;
10605 : : }
10606 : : }
10607 : 0 : {
10608 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10609 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10610 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10611 : : )
10612 : : {
10613 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1451;
10614 : 0 : {
10615 : 0 : tree res_op0;
10616 : 0 : {
10617 : 0 : tree _o1[2], _r1;
10618 : 0 : _o1[0] = captures[0];
10619 : 0 : _o1[1] = captures[3];
10620 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10621 : 0 : res_op0 = _r1;
10622 : : }
10623 : 0 : tree res_op1;
10624 : 0 : res_op1 = captures[1];
10625 : 0 : tree res_op2;
10626 : 0 : res_op2 = captures[2];
10627 : 0 : tree _r;
10628 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10629 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
10630 : 0 : return _r;
10631 : : }
10632 : 0 : next_after_fail1451:;
10633 : : }
10634 : : }
10635 : 0 : {
10636 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10637 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10638 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10639 : : )
10640 : : {
10641 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1452;
10642 : 0 : {
10643 : 0 : tree res_op0;
10644 : 0 : {
10645 : 0 : tree _o1[2], _r1;
10646 : 0 : _o1[0] = captures[0];
10647 : 0 : _o1[1] = captures[3];
10648 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10649 : 0 : res_op0 = _r1;
10650 : : }
10651 : 0 : tree res_op1;
10652 : 0 : res_op1 = captures[1];
10653 : 0 : tree res_op2;
10654 : 0 : res_op2 = captures[2];
10655 : 0 : tree _r;
10656 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10657 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
10658 : 0 : return _r;
10659 : : }
10660 : 0 : next_after_fail1452:;
10661 : : }
10662 : : }
10663 : 0 : {
10664 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10665 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10666 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10667 : : )
10668 : : {
10669 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1453;
10670 : 0 : {
10671 : 0 : tree res_op0;
10672 : 0 : {
10673 : 0 : tree _o1[2], _r1;
10674 : 0 : _o1[0] = captures[0];
10675 : 0 : _o1[1] = captures[3];
10676 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10677 : 0 : res_op0 = _r1;
10678 : : }
10679 : 0 : tree res_op1;
10680 : 0 : res_op1 = captures[1];
10681 : 0 : tree res_op2;
10682 : 0 : res_op2 = captures[2];
10683 : 0 : tree _r;
10684 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10685 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
10686 : 0 : return _r;
10687 : : }
10688 : 0 : next_after_fail1453:;
10689 : : }
10690 : : }
10691 : 0 : {
10692 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10693 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10694 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10695 : : )
10696 : : {
10697 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1454;
10698 : 0 : {
10699 : 0 : tree res_op0;
10700 : 0 : {
10701 : 0 : tree _o1[2], _r1;
10702 : 0 : _o1[0] = captures[0];
10703 : 0 : _o1[1] = captures[3];
10704 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10705 : 0 : res_op0 = _r1;
10706 : : }
10707 : 0 : tree res_op1;
10708 : 0 : res_op1 = captures[1];
10709 : 0 : tree res_op2;
10710 : 0 : res_op2 = captures[2];
10711 : 0 : tree _r;
10712 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10713 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
10714 : 0 : return _r;
10715 : : }
10716 : 0 : next_after_fail1454:;
10717 : : }
10718 : : }
10719 : 0 : {
10720 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10721 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10722 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10723 : : )
10724 : : {
10725 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1455;
10726 : 0 : {
10727 : 0 : tree res_op0;
10728 : 0 : {
10729 : 0 : tree _o1[2], _r1;
10730 : 0 : _o1[0] = captures[0];
10731 : 0 : _o1[1] = captures[3];
10732 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10733 : 0 : res_op0 = _r1;
10734 : : }
10735 : 0 : tree res_op1;
10736 : 0 : res_op1 = captures[1];
10737 : 0 : tree res_op2;
10738 : 0 : res_op2 = captures[2];
10739 : 0 : tree _r;
10740 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10741 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
10742 : 0 : return _r;
10743 : : }
10744 : 0 : next_after_fail1455:;
10745 : : }
10746 : : }
10747 : 0 : {
10748 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10749 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10750 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10751 : : )
10752 : : {
10753 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1456;
10754 : 0 : {
10755 : 0 : tree res_op0;
10756 : 0 : {
10757 : 0 : tree _o1[2], _r1;
10758 : 0 : _o1[0] = captures[0];
10759 : 0 : _o1[1] = captures[3];
10760 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10761 : 0 : res_op0 = _r1;
10762 : : }
10763 : 0 : tree res_op1;
10764 : 0 : res_op1 = captures[1];
10765 : 0 : tree res_op2;
10766 : 0 : res_op2 = captures[2];
10767 : 0 : tree _r;
10768 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10769 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
10770 : 0 : return _r;
10771 : : }
10772 : 0 : next_after_fail1456:;
10773 : : }
10774 : : }
10775 : 0 : {
10776 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10777 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10778 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10779 : : )
10780 : : {
10781 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1457;
10782 : 0 : {
10783 : 0 : tree res_op0;
10784 : 0 : {
10785 : 0 : tree _o1[2], _r1;
10786 : 0 : _o1[0] = captures[0];
10787 : 0 : _o1[1] = captures[3];
10788 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10789 : 0 : res_op0 = _r1;
10790 : : }
10791 : 0 : tree res_op1;
10792 : 0 : res_op1 = captures[1];
10793 : 0 : tree res_op2;
10794 : 0 : res_op2 = captures[2];
10795 : 0 : tree _r;
10796 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10797 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
10798 : 0 : return _r;
10799 : : }
10800 : 0 : next_after_fail1457:;
10801 : : }
10802 : : }
10803 : 0 : {
10804 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10805 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10806 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10807 : : )
10808 : : {
10809 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1458;
10810 : 0 : {
10811 : 0 : tree res_op0;
10812 : 0 : {
10813 : 0 : tree _o1[2], _r1;
10814 : 0 : _o1[0] = captures[0];
10815 : 0 : _o1[1] = captures[3];
10816 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10817 : 0 : res_op0 = _r1;
10818 : : }
10819 : 0 : tree res_op1;
10820 : 0 : res_op1 = captures[1];
10821 : 0 : tree res_op2;
10822 : 0 : res_op2 = captures[2];
10823 : 0 : tree _r;
10824 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10825 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
10826 : 0 : return _r;
10827 : : }
10828 : 0 : next_after_fail1458:;
10829 : : }
10830 : : }
10831 : 0 : {
10832 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10833 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10834 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10835 : : )
10836 : : {
10837 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1459;
10838 : 0 : {
10839 : 0 : tree res_op0;
10840 : 0 : {
10841 : 0 : tree _o1[2], _r1;
10842 : 0 : _o1[0] = captures[0];
10843 : 0 : _o1[1] = captures[3];
10844 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10845 : 0 : res_op0 = _r1;
10846 : : }
10847 : 0 : tree res_op1;
10848 : 0 : res_op1 = captures[1];
10849 : 0 : tree res_op2;
10850 : 0 : res_op2 = captures[2];
10851 : 0 : tree _r;
10852 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10853 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
10854 : 0 : return _r;
10855 : : }
10856 : 0 : next_after_fail1459:;
10857 : : }
10858 : : }
10859 : 0 : {
10860 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10861 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10862 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10863 : : )
10864 : : {
10865 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1460;
10866 : 0 : {
10867 : 0 : tree res_op0;
10868 : 0 : {
10869 : 0 : tree _o1[2], _r1;
10870 : 0 : _o1[0] = captures[0];
10871 : 0 : _o1[1] = captures[3];
10872 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10873 : 0 : res_op0 = _r1;
10874 : : }
10875 : 0 : tree res_op1;
10876 : 0 : res_op1 = captures[1];
10877 : 0 : tree res_op2;
10878 : 0 : res_op2 = captures[2];
10879 : 0 : tree _r;
10880 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10881 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
10882 : 0 : return _r;
10883 : : }
10884 : 0 : next_after_fail1460:;
10885 : : }
10886 : : }
10887 : 0 : {
10888 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10889 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10890 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10891 : : )
10892 : : {
10893 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1461;
10894 : 0 : {
10895 : 0 : tree res_op0;
10896 : 0 : {
10897 : 0 : tree _o1[2], _r1;
10898 : 0 : _o1[0] = captures[0];
10899 : 0 : _o1[1] = captures[3];
10900 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10901 : 0 : res_op0 = _r1;
10902 : : }
10903 : 0 : tree res_op1;
10904 : 0 : res_op1 = captures[1];
10905 : 0 : tree res_op2;
10906 : 0 : res_op2 = captures[2];
10907 : 0 : tree _r;
10908 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10909 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
10910 : 0 : return _r;
10911 : : }
10912 : 0 : next_after_fail1461:;
10913 : : }
10914 : : }
10915 : 0 : {
10916 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10917 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10918 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10919 : : )
10920 : : {
10921 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1462;
10922 : 0 : {
10923 : 0 : tree res_op0;
10924 : 0 : {
10925 : 0 : tree _o1[2], _r1;
10926 : 0 : _o1[0] = captures[0];
10927 : 0 : _o1[1] = captures[3];
10928 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10929 : 0 : res_op0 = _r1;
10930 : : }
10931 : 0 : tree res_op1;
10932 : 0 : res_op1 = captures[1];
10933 : 0 : tree res_op2;
10934 : 0 : res_op2 = captures[2];
10935 : 0 : tree _r;
10936 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10937 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
10938 : 0 : return _r;
10939 : : }
10940 : 0 : next_after_fail1462:;
10941 : : }
10942 : : }
10943 : 0 : {
10944 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10945 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10946 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10947 : : )
10948 : : {
10949 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1463;
10950 : 0 : {
10951 : 0 : tree res_op0;
10952 : 0 : {
10953 : 0 : tree _o1[2], _r1;
10954 : 0 : _o1[0] = captures[0];
10955 : 0 : _o1[1] = captures[3];
10956 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10957 : 0 : res_op0 = _r1;
10958 : : }
10959 : 0 : tree res_op1;
10960 : 0 : res_op1 = captures[1];
10961 : 0 : tree res_op2;
10962 : 0 : res_op2 = captures[2];
10963 : 0 : tree _r;
10964 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10965 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
10966 : 0 : return _r;
10967 : : }
10968 : 0 : next_after_fail1463:;
10969 : : }
10970 : : }
10971 : 0 : {
10972 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
10973 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
10974 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
10975 : : )
10976 : : {
10977 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1464;
10978 : 0 : {
10979 : 0 : tree res_op0;
10980 : 0 : {
10981 : 0 : tree _o1[2], _r1;
10982 : 0 : _o1[0] = captures[0];
10983 : 0 : _o1[1] = captures[3];
10984 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10985 : 0 : res_op0 = _r1;
10986 : : }
10987 : 0 : tree res_op1;
10988 : 0 : res_op1 = captures[1];
10989 : 0 : tree res_op2;
10990 : 0 : res_op2 = captures[2];
10991 : 0 : tree _r;
10992 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
10993 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
10994 : 0 : return _r;
10995 : : }
10996 : 0 : next_after_fail1464:;
10997 : : }
10998 : : }
10999 : 0 : {
11000 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11001 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11002 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11003 : : )
11004 : : {
11005 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1465;
11006 : 0 : {
11007 : 0 : tree res_op0;
11008 : 0 : {
11009 : 0 : tree _o1[2], _r1;
11010 : 0 : _o1[0] = captures[0];
11011 : 0 : _o1[1] = captures[3];
11012 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11013 : 0 : res_op0 = _r1;
11014 : : }
11015 : 0 : tree res_op1;
11016 : 0 : res_op1 = captures[1];
11017 : 0 : tree res_op2;
11018 : 0 : res_op2 = captures[2];
11019 : 0 : tree _r;
11020 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11021 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
11022 : 0 : return _r;
11023 : : }
11024 : 0 : next_after_fail1465:;
11025 : : }
11026 : : }
11027 : 0 : {
11028 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11029 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11030 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11031 : : )
11032 : : {
11033 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1466;
11034 : 0 : {
11035 : 0 : tree res_op0;
11036 : 0 : {
11037 : 0 : tree _o1[2], _r1;
11038 : 0 : _o1[0] = captures[0];
11039 : 0 : _o1[1] = captures[3];
11040 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11041 : 0 : res_op0 = _r1;
11042 : : }
11043 : 0 : tree res_op1;
11044 : 0 : res_op1 = captures[1];
11045 : 0 : tree res_op2;
11046 : 0 : res_op2 = captures[2];
11047 : 0 : tree _r;
11048 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11049 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
11050 : 0 : return _r;
11051 : : }
11052 : 0 : next_after_fail1466:;
11053 : : }
11054 : : }
11055 : 0 : {
11056 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11057 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11058 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11059 : : )
11060 : : {
11061 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1467;
11062 : 0 : {
11063 : 0 : tree res_op0;
11064 : 0 : {
11065 : 0 : tree _o1[2], _r1;
11066 : 0 : _o1[0] = captures[0];
11067 : 0 : _o1[1] = captures[3];
11068 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11069 : 0 : res_op0 = _r1;
11070 : : }
11071 : 0 : tree res_op1;
11072 : 0 : res_op1 = captures[1];
11073 : 0 : tree res_op2;
11074 : 0 : res_op2 = captures[2];
11075 : 0 : tree _r;
11076 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11077 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
11078 : 0 : return _r;
11079 : : }
11080 : 0 : next_after_fail1467:;
11081 : : }
11082 : : }
11083 : 0 : {
11084 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11085 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11086 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11087 : : )
11088 : : {
11089 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1468;
11090 : 0 : {
11091 : 0 : tree res_op0;
11092 : 0 : {
11093 : 0 : tree _o1[2], _r1;
11094 : 0 : _o1[0] = captures[0];
11095 : 0 : _o1[1] = captures[3];
11096 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11097 : 0 : res_op0 = _r1;
11098 : : }
11099 : 0 : tree res_op1;
11100 : 0 : res_op1 = captures[1];
11101 : 0 : tree res_op2;
11102 : 0 : res_op2 = captures[2];
11103 : 0 : tree _r;
11104 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11105 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
11106 : 0 : return _r;
11107 : : }
11108 : 0 : next_after_fail1468:;
11109 : : }
11110 : : }
11111 : 0 : {
11112 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11113 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11114 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11115 : : )
11116 : : {
11117 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1469;
11118 : 0 : {
11119 : 0 : tree res_op0;
11120 : 0 : {
11121 : 0 : tree _o1[2], _r1;
11122 : 0 : _o1[0] = captures[0];
11123 : 0 : _o1[1] = captures[3];
11124 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11125 : 0 : res_op0 = _r1;
11126 : : }
11127 : 0 : tree res_op1;
11128 : 0 : res_op1 = captures[1];
11129 : 0 : tree res_op2;
11130 : 0 : res_op2 = captures[2];
11131 : 0 : tree _r;
11132 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11133 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
11134 : 0 : return _r;
11135 : : }
11136 : 0 : next_after_fail1469:;
11137 : : }
11138 : : }
11139 : 0 : {
11140 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11141 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11142 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11143 : : )
11144 : : {
11145 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1470;
11146 : 0 : {
11147 : 0 : tree res_op0;
11148 : 0 : {
11149 : 0 : tree _o1[2], _r1;
11150 : 0 : _o1[0] = captures[0];
11151 : 0 : _o1[1] = captures[3];
11152 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11153 : 0 : res_op0 = _r1;
11154 : : }
11155 : 0 : tree res_op1;
11156 : 0 : res_op1 = captures[1];
11157 : 0 : tree res_op2;
11158 : 0 : res_op2 = captures[2];
11159 : 0 : tree _r;
11160 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11161 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
11162 : 0 : return _r;
11163 : : }
11164 : 0 : next_after_fail1470:;
11165 : : }
11166 : : }
11167 : 0 : {
11168 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11169 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11170 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11171 : : )
11172 : : {
11173 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1471;
11174 : 0 : {
11175 : 0 : tree res_op0;
11176 : 0 : {
11177 : 0 : tree _o1[2], _r1;
11178 : 0 : _o1[0] = captures[0];
11179 : 0 : _o1[1] = captures[3];
11180 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11181 : 0 : res_op0 = _r1;
11182 : : }
11183 : 0 : tree res_op1;
11184 : 0 : res_op1 = captures[1];
11185 : 0 : tree res_op2;
11186 : 0 : res_op2 = captures[2];
11187 : 0 : tree _r;
11188 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11189 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
11190 : 0 : return _r;
11191 : : }
11192 : 0 : next_after_fail1471:;
11193 : : }
11194 : : }
11195 : 0 : {
11196 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11197 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11198 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11199 : : )
11200 : : {
11201 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1472;
11202 : 0 : {
11203 : 0 : tree res_op0;
11204 : 0 : {
11205 : 0 : tree _o1[2], _r1;
11206 : 0 : _o1[0] = captures[0];
11207 : 0 : _o1[1] = captures[3];
11208 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11209 : 0 : res_op0 = _r1;
11210 : : }
11211 : 0 : tree res_op1;
11212 : 0 : res_op1 = captures[1];
11213 : 0 : tree res_op2;
11214 : 0 : res_op2 = captures[2];
11215 : 0 : tree _r;
11216 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11217 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
11218 : 0 : return _r;
11219 : : }
11220 : 0 : next_after_fail1472:;
11221 : : }
11222 : : }
11223 : 0 : {
11224 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _q60 };
11225 : 0 : const enum tree_code lop = BIT_XOR_EXPR;
11226 : 0 : if (target_supports_op_p (TREE_TYPE (captures[0]), lop, optab_vector)
11227 : : )
11228 : : {
11229 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1473;
11230 : 0 : {
11231 : 0 : tree res_op0;
11232 : 0 : {
11233 : 0 : tree _o1[2], _r1;
11234 : 0 : _o1[0] = captures[0];
11235 : 0 : _o1[1] = captures[3];
11236 : 0 : _r1 = fold_build2_loc (loc, lop, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11237 : 0 : res_op0 = _r1;
11238 : : }
11239 : 0 : tree res_op1;
11240 : 0 : res_op1 = captures[1];
11241 : 0 : tree res_op2;
11242 : 0 : res_op2 = captures[2];
11243 : 0 : tree _r;
11244 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11245 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 944, __FILE__, __LINE__, true);
11246 : 0 : return _r;
11247 : : }
11248 : 0 : next_after_fail1473:;
11249 : : }
11250 : : }
11251 : : }
11252 : : }
11253 : : break;
11254 : : }
11255 : : default:;
11256 : : }
11257 : : }
11258 : : }
11259 : 1 : {
11260 : 1 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
11261 : 1 : if (VECTOR_TYPE_P (type)
11262 : 1 : && (TREE_CODE_CLASS (BIT_XOR_EXPR) != tcc_comparison
11263 : : || types_match (type, TREE_TYPE (captures[2]))
11264 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
11265 : : || (optimize_vectors_before_lowering_p ()
11266 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
11267 : : )
11268 : : {
11269 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1474;
11270 : 1 : {
11271 : 1 : if (! tree_invariant_p (captures[4])) goto next_after_fail1474;
11272 : 0 : tree res_op0;
11273 : 0 : res_op0 = captures[1];
11274 : 0 : tree res_op1;
11275 : 0 : {
11276 : 0 : tree _o1[2], _r1;
11277 : 0 : _o1[0] = captures[2];
11278 : 0 : _o1[1] = unshare_expr (captures[4]);
11279 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11280 : 0 : if (EXPR_P (_r1))
11281 : 0 : goto next_after_fail1474;
11282 : 0 : res_op1 = _r1;
11283 : : }
11284 : 0 : tree res_op2;
11285 : 0 : {
11286 : 0 : tree _o1[2], _r1;
11287 : 0 : _o1[0] = captures[3];
11288 : 0 : _o1[1] = captures[4];
11289 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11290 : 0 : if (EXPR_P (_r1))
11291 : 0 : goto next_after_fail1474;
11292 : 0 : res_op2 = _r1;
11293 : : }
11294 : 0 : tree _r;
11295 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11296 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 901, __FILE__, __LINE__, true);
11297 : 0 : return _r;
11298 : : }
11299 : 1 : next_after_fail1474:;
11300 : : }
11301 : : }
11302 : 1 : break;
11303 : : }
11304 : 667195 : default:;
11305 : : }
11306 : 667195 : switch (TREE_CODE (_p1))
11307 : : {
11308 : 0 : case VEC_COND_EXPR:
11309 : 0 : {
11310 : 0 : tree _q30 = TREE_OPERAND (_p1, 0);
11311 : 0 : tree _q31 = TREE_OPERAND (_p1, 1);
11312 : 0 : tree _q32 = TREE_OPERAND (_p1, 2);
11313 : 0 : {
11314 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
11315 : 0 : if (VECTOR_TYPE_P (type)
11316 : 0 : && (TREE_CODE_CLASS (BIT_XOR_EXPR) != tcc_comparison
11317 : : || types_match (type, TREE_TYPE (captures[3]))
11318 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
11319 : : || (optimize_vectors_before_lowering_p ()
11320 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
11321 : : )
11322 : : {
11323 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1475;
11324 : 0 : {
11325 : 0 : if (! tree_invariant_p (captures[0])) goto next_after_fail1475;
11326 : 0 : tree res_op0;
11327 : 0 : res_op0 = captures[2];
11328 : 0 : tree res_op1;
11329 : 0 : {
11330 : 0 : tree _o1[2], _r1;
11331 : 0 : _o1[0] = unshare_expr (captures[0]);
11332 : 0 : _o1[1] = captures[3];
11333 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11334 : 0 : if (EXPR_P (_r1))
11335 : 0 : goto next_after_fail1475;
11336 : 0 : res_op1 = _r1;
11337 : : }
11338 : 0 : tree res_op2;
11339 : 0 : {
11340 : 0 : tree _o1[2], _r1;
11341 : 0 : _o1[0] = captures[0];
11342 : 0 : _o1[1] = captures[4];
11343 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11344 : 0 : if (EXPR_P (_r1))
11345 : 0 : goto next_after_fail1475;
11346 : 0 : res_op2 = _r1;
11347 : : }
11348 : 0 : tree _r;
11349 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
11350 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 902, __FILE__, __LINE__, true);
11351 : 0 : return _r;
11352 : : }
11353 : 0 : next_after_fail1475:;
11354 : : }
11355 : : }
11356 : 0 : break;
11357 : : }
11358 : 667195 : default:;
11359 : : }
11360 : 667195 : switch (TREE_CODE (_p0))
11361 : : {
11362 : 90 : case LT_EXPR:
11363 : 90 : {
11364 : 90 : tree _q20 = TREE_OPERAND (_p0, 0);
11365 : 90 : tree _q21 = TREE_OPERAND (_p0, 1);
11366 : 90 : if (integer_truep (_p1))
11367 : : {
11368 : 14 : {
11369 : 14 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11370 : 14 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR, UNGE_EXPR);
11371 : 14 : if (res) return res;
11372 : : }
11373 : : }
11374 : 76 : if (integer_zerop (_q21))
11375 : : {
11376 : 24 : switch (TREE_CODE (_p1))
11377 : : {
11378 : 17 : case LT_EXPR:
11379 : 17 : {
11380 : 17 : tree _q50 = TREE_OPERAND (_p1, 0);
11381 : 17 : tree _q51 = TREE_OPERAND (_p1, 1);
11382 : 17 : if (integer_zerop (_q51))
11383 : : {
11384 : 17 : {
11385 : 17 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q50 };
11386 : 17 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures, LT_EXPR);
11387 : 17 : if (res) return res;
11388 : : }
11389 : : }
11390 : : break;
11391 : : }
11392 : 0 : case GE_EXPR:
11393 : 0 : {
11394 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
11395 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
11396 : 0 : if (integer_zerop (_q51))
11397 : : {
11398 : 0 : {
11399 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q50 };
11400 : 0 : tree res = generic_simplify_170 (loc, type, _p0, _p1, captures);
11401 : 0 : if (res) return res;
11402 : : }
11403 : : }
11404 : : break;
11405 : : }
11406 : : default:;
11407 : : }
11408 : : }
11409 : : break;
11410 : : }
11411 : 78 : case LE_EXPR:
11412 : 78 : {
11413 : 78 : tree _q20 = TREE_OPERAND (_p0, 0);
11414 : 78 : tree _q21 = TREE_OPERAND (_p0, 1);
11415 : 78 : if (integer_truep (_p1))
11416 : : {
11417 : 15 : {
11418 : 15 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11419 : 15 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR, UNGT_EXPR);
11420 : 15 : if (res) return res;
11421 : : }
11422 : : }
11423 : : break;
11424 : : }
11425 : 118 : case EQ_EXPR:
11426 : 118 : {
11427 : 118 : tree _q20 = TREE_OPERAND (_p0, 0);
11428 : 118 : tree _q21 = TREE_OPERAND (_p0, 1);
11429 : 118 : if (integer_truep (_p1))
11430 : : {
11431 : 14 : {
11432 : 14 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11433 : 14 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR, NE_EXPR);
11434 : 14 : if (res) return res;
11435 : : }
11436 : : }
11437 : : break;
11438 : : }
11439 : 113 : case NE_EXPR:
11440 : 113 : {
11441 : 113 : tree _q20 = TREE_OPERAND (_p0, 0);
11442 : 113 : tree _q21 = TREE_OPERAND (_p0, 1);
11443 : 113 : if (integer_truep (_p1))
11444 : : {
11445 : 7 : {
11446 : 7 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11447 : 7 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR, EQ_EXPR);
11448 : 7 : if (res) return res;
11449 : : }
11450 : : }
11451 : : break;
11452 : : }
11453 : 62 : case GE_EXPR:
11454 : 62 : {
11455 : 62 : tree _q20 = TREE_OPERAND (_p0, 0);
11456 : 62 : tree _q21 = TREE_OPERAND (_p0, 1);
11457 : 62 : if (integer_truep (_p1))
11458 : : {
11459 : 0 : {
11460 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11461 : 0 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures, GE_EXPR, LT_EXPR, UNLT_EXPR);
11462 : 0 : if (res) return res;
11463 : : }
11464 : : }
11465 : 62 : if (integer_zerop (_q21))
11466 : : {
11467 : 26 : switch (TREE_CODE (_p1))
11468 : : {
11469 : 1 : case GE_EXPR:
11470 : 1 : {
11471 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
11472 : 1 : tree _q51 = TREE_OPERAND (_p1, 1);
11473 : 1 : if (integer_zerop (_q51))
11474 : : {
11475 : 1 : {
11476 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q50 };
11477 : 1 : tree res = generic_simplify_169 (loc, type, _p0, _p1, captures, GE_EXPR);
11478 : 1 : if (res) return res;
11479 : : }
11480 : : }
11481 : : break;
11482 : : }
11483 : 5 : case LT_EXPR:
11484 : 5 : {
11485 : 5 : tree _q50 = TREE_OPERAND (_p1, 0);
11486 : 5 : tree _q51 = TREE_OPERAND (_p1, 1);
11487 : 5 : if (integer_zerop (_q51))
11488 : : {
11489 : 5 : {
11490 : 5 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q50, _p0, _q20 };
11491 : 5 : tree res = generic_simplify_170 (loc, type, _p0, _p1, captures);
11492 : 5 : if (res) return res;
11493 : : }
11494 : : }
11495 : : break;
11496 : : }
11497 : : default:;
11498 : : }
11499 : : }
11500 : : break;
11501 : : }
11502 : 100 : case GT_EXPR:
11503 : 100 : {
11504 : 100 : tree _q20 = TREE_OPERAND (_p0, 0);
11505 : 100 : tree _q21 = TREE_OPERAND (_p0, 1);
11506 : 100 : if (integer_truep (_p1))
11507 : : {
11508 : 14 : {
11509 : 14 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11510 : 14 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR, UNLE_EXPR);
11511 : 14 : if (res) return res;
11512 : : }
11513 : : }
11514 : : break;
11515 : : }
11516 : 0 : case UNORDERED_EXPR:
11517 : 0 : {
11518 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11519 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11520 : 0 : if (integer_truep (_p1))
11521 : : {
11522 : 0 : {
11523 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11524 : 0 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures, UNORDERED_EXPR, ORDERED_EXPR, ORDERED_EXPR);
11525 : 0 : if (res) return res;
11526 : : }
11527 : : }
11528 : : break;
11529 : : }
11530 : 0 : case ORDERED_EXPR:
11531 : 0 : {
11532 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11533 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11534 : 0 : if (integer_truep (_p1))
11535 : : {
11536 : 0 : {
11537 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11538 : 0 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures, ORDERED_EXPR, UNORDERED_EXPR, UNORDERED_EXPR);
11539 : 0 : if (res) return res;
11540 : : }
11541 : : }
11542 : : break;
11543 : : }
11544 : 0 : case UNLT_EXPR:
11545 : 0 : {
11546 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11547 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11548 : 0 : if (integer_truep (_p1))
11549 : : {
11550 : 0 : {
11551 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11552 : 0 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures, UNLT_EXPR, GE_EXPR, GE_EXPR);
11553 : 0 : if (res) return res;
11554 : : }
11555 : : }
11556 : : break;
11557 : : }
11558 : 0 : case UNLE_EXPR:
11559 : 0 : {
11560 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11561 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11562 : 0 : if (integer_truep (_p1))
11563 : : {
11564 : 0 : {
11565 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11566 : 0 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures, UNLE_EXPR, GT_EXPR, GT_EXPR);
11567 : 0 : if (res) return res;
11568 : : }
11569 : : }
11570 : : break;
11571 : : }
11572 : 0 : case UNGT_EXPR:
11573 : 0 : {
11574 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11575 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11576 : 0 : if (integer_truep (_p1))
11577 : : {
11578 : 0 : {
11579 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11580 : 0 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures, UNGT_EXPR, LE_EXPR, LE_EXPR);
11581 : 0 : if (res) return res;
11582 : : }
11583 : : }
11584 : : break;
11585 : : }
11586 : 0 : case UNGE_EXPR:
11587 : 0 : {
11588 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11589 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11590 : 0 : if (integer_truep (_p1))
11591 : : {
11592 : 0 : {
11593 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11594 : 0 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures, UNGE_EXPR, LT_EXPR, LT_EXPR);
11595 : 0 : if (res) return res;
11596 : : }
11597 : : }
11598 : : break;
11599 : : }
11600 : 0 : case UNEQ_EXPR:
11601 : 0 : {
11602 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11603 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11604 : 0 : if (integer_truep (_p1))
11605 : : {
11606 : 0 : {
11607 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11608 : 0 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures, UNEQ_EXPR, LTGT_EXPR, LTGT_EXPR);
11609 : 0 : if (res) return res;
11610 : : }
11611 : : }
11612 : : break;
11613 : : }
11614 : 0 : case LTGT_EXPR:
11615 : 0 : {
11616 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
11617 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
11618 : 0 : if (integer_truep (_p1))
11619 : : {
11620 : 0 : {
11621 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11622 : 0 : tree res = generic_simplify_168 (loc, type, _p0, _p1, captures, LTGT_EXPR, UNEQ_EXPR, UNEQ_EXPR);
11623 : 0 : if (res) return res;
11624 : : }
11625 : : }
11626 : : break;
11627 : : }
11628 : 7 : case VEC_PERM_EXPR:
11629 : 7 : {
11630 : 7 : tree _q20 = TREE_OPERAND (_p0, 0);
11631 : 7 : tree _q21 = TREE_OPERAND (_p0, 1);
11632 : 7 : tree _q22 = TREE_OPERAND (_p0, 2);
11633 : 7 : if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
11634 : : {
11635 : 0 : switch (TREE_CODE (_p1))
11636 : : {
11637 : 0 : case VEC_PERM_EXPR:
11638 : 0 : {
11639 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
11640 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
11641 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
11642 : 0 : if ((_q61 == _q60 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q60, 0) && types_match (_q61, _q60)))
11643 : : {
11644 : 0 : if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
11645 : : {
11646 : 0 : {
11647 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q22, _q60 };
11648 : 0 : if (VECTOR_INTEGER_TYPE_P (type)
11649 : : )
11650 : : {
11651 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1476;
11652 : 0 : {
11653 : 0 : tree res_op0;
11654 : 0 : {
11655 : 0 : tree _o1[2], _r1;
11656 : 0 : _o1[0] = captures[0];
11657 : 0 : _o1[1] = captures[2];
11658 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
11659 : 0 : captures[3] = _r1;
11660 : : }
11661 : 0 : res_op0 = unshare_expr (captures[3]);
11662 : 0 : tree res_op1;
11663 : 0 : res_op1 = captures[3];
11664 : 0 : tree res_op2;
11665 : 0 : res_op2 = captures[1];
11666 : 0 : tree _r;
11667 : 0 : _r = fold_build3_loc (loc, VEC_PERM_EXPR, type, res_op0, res_op1, res_op2);
11668 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 903, __FILE__, __LINE__, true);
11669 : 0 : return _r;
11670 : : }
11671 : 0 : next_after_fail1476:;
11672 : : }
11673 : : }
11674 : : }
11675 : : }
11676 : : break;
11677 : : }
11678 : : default:;
11679 : : }
11680 : : }
11681 : : break;
11682 : : }
11683 : 2939 : case CALL_EXPR:
11684 : 2939 : switch (get_call_combined_fn (_p0))
11685 : : {
11686 : 1 : case CFN_PARITY:
11687 : 1 : if (call_expr_nargs (_p0) == 1)
11688 : : {
11689 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11690 : 1 : switch (TREE_CODE (_p1))
11691 : : {
11692 : 1 : case CALL_EXPR:
11693 : 1 : switch (get_call_combined_fn (_p1))
11694 : : {
11695 : 1 : case CFN_PARITY:
11696 : 1 : if (call_expr_nargs (_p1) == 1)
11697 : : {
11698 : 1 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
11699 : 1 : {
11700 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
11701 : 1 : tree res = generic_simplify_171 (loc, type, _p0, _p1, captures, CFN_PARITY);
11702 : 1 : if (res) return res;
11703 : : }
11704 : : }
11705 : : break;
11706 : : default:;
11707 : : }
11708 : : break;
11709 : : default:;
11710 : : }
11711 : : }
11712 : : break;
11713 : 1 : case CFN_BUILT_IN_PARITYL:
11714 : 1 : if (call_expr_nargs (_p0) == 1)
11715 : : {
11716 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11717 : 1 : switch (TREE_CODE (_p1))
11718 : : {
11719 : 1 : case CALL_EXPR:
11720 : 1 : switch (get_call_combined_fn (_p1))
11721 : : {
11722 : 1 : case CFN_BUILT_IN_PARITYL:
11723 : 1 : if (call_expr_nargs (_p1) == 1)
11724 : : {
11725 : 1 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
11726 : 1 : {
11727 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
11728 : 1 : tree res = generic_simplify_171 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_PARITYL);
11729 : 1 : if (res) return res;
11730 : : }
11731 : : }
11732 : : break;
11733 : : default:;
11734 : : }
11735 : : break;
11736 : : default:;
11737 : : }
11738 : : }
11739 : : break;
11740 : 0 : case CFN_BUILT_IN_PARITYIMAX:
11741 : 0 : if (call_expr_nargs (_p0) == 1)
11742 : : {
11743 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11744 : 0 : switch (TREE_CODE (_p1))
11745 : : {
11746 : 0 : case CALL_EXPR:
11747 : 0 : switch (get_call_combined_fn (_p1))
11748 : : {
11749 : 0 : case CFN_BUILT_IN_PARITYIMAX:
11750 : 0 : if (call_expr_nargs (_p1) == 1)
11751 : : {
11752 : 0 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
11753 : 0 : {
11754 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
11755 : 0 : tree res = generic_simplify_171 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_PARITYIMAX);
11756 : 0 : if (res) return res;
11757 : : }
11758 : : }
11759 : : break;
11760 : : default:;
11761 : : }
11762 : : break;
11763 : : default:;
11764 : : }
11765 : : }
11766 : : break;
11767 : 1 : case CFN_BUILT_IN_PARITY:
11768 : 1 : if (call_expr_nargs (_p0) == 1)
11769 : : {
11770 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11771 : 1 : switch (TREE_CODE (_p1))
11772 : : {
11773 : 1 : case CALL_EXPR:
11774 : 1 : switch (get_call_combined_fn (_p1))
11775 : : {
11776 : 1 : case CFN_BUILT_IN_PARITY:
11777 : 1 : if (call_expr_nargs (_p1) == 1)
11778 : : {
11779 : 1 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
11780 : 1 : {
11781 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
11782 : 1 : tree res = generic_simplify_171 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_PARITY);
11783 : 1 : if (res) return res;
11784 : : }
11785 : : }
11786 : : break;
11787 : : default:;
11788 : : }
11789 : : break;
11790 : : default:;
11791 : : }
11792 : : }
11793 : : break;
11794 : 8 : case CFN_BUILT_IN_PARITYLL:
11795 : 8 : if (call_expr_nargs (_p0) == 1)
11796 : : {
11797 : 8 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
11798 : 8 : switch (TREE_CODE (_p1))
11799 : : {
11800 : 8 : case CALL_EXPR:
11801 : 8 : switch (get_call_combined_fn (_p1))
11802 : : {
11803 : 8 : case CFN_BUILT_IN_PARITYLL:
11804 : 8 : if (call_expr_nargs (_p1) == 1)
11805 : : {
11806 : 8 : tree _q40 = CALL_EXPR_ARG (_p1, 0);
11807 : 8 : {
11808 : 8 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
11809 : 8 : tree res = generic_simplify_171 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_PARITYLL);
11810 : 8 : if (res) return res;
11811 : : }
11812 : : }
11813 : : break;
11814 : : default:;
11815 : : }
11816 : : break;
11817 : : default:;
11818 : : }
11819 : : }
11820 : : break;
11821 : : default:;
11822 : : }
11823 : : break;
11824 : : default:;
11825 : : }
11826 : : return NULL_TREE;
11827 : : }
11828 : :
11829 : : tree
11830 : 27008700 : generic_simplify (location_t loc, enum tree_code code, const tree type ATTRIBUTE_UNUSED, tree _p0, tree _p1, tree _p2)
11831 : : {
11832 : 27008700 : switch (code)
11833 : : {
11834 : 11268724 : case COND_EXPR:
11835 : 11268724 : return generic_simplify_COND_EXPR (loc, code, type, _p0, _p1, _p2);
11836 : 311113 : case VEC_COND_EXPR:
11837 : 311113 : return generic_simplify_VEC_COND_EXPR (loc, code, type, _p0, _p1, _p2);
11838 : 640472 : case BIT_FIELD_REF:
11839 : 640472 : return generic_simplify_BIT_FIELD_REF (loc, code, type, _p0, _p1, _p2);
11840 : 13691 : case BIT_INSERT_EXPR:
11841 : 13691 : return generic_simplify_BIT_INSERT_EXPR (loc, code, type, _p0, _p1, _p2);
11842 : 708403 : case VEC_PERM_EXPR:
11843 : 708403 : return generic_simplify_VEC_PERM_EXPR (loc, code, type, _p0, _p1, _p2);
11844 : : default:;
11845 : : }
11846 : : return NULL_TREE;
11847 : : }
11848 : :
11849 : : tree
11850 : 0 : generic_simplify (location_t, enum tree_code,
11851 : : const tree, tree, tree, tree, tree)
11852 : : {
11853 : 0 : return NULL_TREE;
11854 : : }
11855 : :
11856 : : tree
11857 : 0 : generic_simplify (location_t, enum tree_code,
11858 : : const tree, tree, tree, tree, tree, tree)
11859 : : {
11860 : 0 : return NULL_TREE;
11861 : : }
11862 : :
11863 : : tree
11864 : 0 : generic_simplify (location_t, enum tree_code,
11865 : : const tree, tree, tree, tree, tree, tree, tree)
11866 : : {
11867 : 0 : return NULL_TREE;
11868 : : }
11869 : :
11870 : : tree
11871 : 0 : generic_simplify (location_t, enum tree_code,
11872 : : const tree, tree, tree, tree, tree, tree, tree, tree)
11873 : : {
11874 : 0 : return NULL_TREE;
11875 : : }
11876 : : void
11877 : 19367 : generic_dump_logs (const char *file1, int line1_id, const char *file2, int line2, bool simplify)
11878 : : {
11879 : 19367 : static int dbg_line_numbers[1115] = {
11880 : : /* 0 */ 161, 164, 173, 175, 178, 181, 183, 189, 197, 195,
11881 : : /* 10 */ 199, 201, 938, 940, 2079, 2085, 2087, 2090, 2095, 2098,
11882 : : /* 20 */ 2323, 2327, 2329, 2331, 2333, 2335, 2337, 2339, 2366, 2382,
11883 : : /* 30 */ 2390, 2372, 2930, 2932, 2934, 2941, 2938, 2948, 2950, 2957,
11884 : : /* 40 */ 2954, 3165, 3175, 3186, 3191, 3196, 3229, 3234, 3200, 3204,
11885 : : /* 50 */ 3208, 3258, 3212, 3240, 3246, 3252, 3216, 3275, 3279, 3304,
11886 : : /* 60 */ 3310, 3332, 3316, 3345, 3284, 3288, 3298, 3292, 3349, 3365,
11887 : : /* 70 */ 3400, 3377, 3418, 3425, 3477, 3434, 3505, 3452, 3443, 3468,
11888 : : /* 80 */ 3462, 3488, 3518, 3527, 3536, 3545, 3555, 3588, 5809, 9013,
11889 : : /* 90 */ 9034, 11210, 11213, 11218, 11433, 11440, 11459, 11484, 11552, 11509,
11890 : : /* 100 */ 11522, 11536, 11566, 11571, 8833, 254, 281, 282, 493, 1307,
11891 : : /* 110 */ 1443, 1779, 1829, 1834, 1938, 1897, 4141, 4079, 2445, 2477,
11892 : : /* 120 */ 4184, 4185, 4189, 4190, 4200, 4204, 4208, 4223, 4226, 4230,
11893 : : /* 130 */ 4156, 4159, 4164, 4311, 4317, 4323, 4505, 4506, 4532, 4551,
11894 : : /* 140 */ 4570, 4913, 5708, 6967, 8461, 8536, 10139, 10187, 10201, 11237,
11895 : : /* 150 */ 11659, 922, 928, 1423, 1432, 1915, 1906, 1853, 2594, 4092,
11896 : : /* 160 */ 4132, 4137, 4138, 4146, 4147, 4150, 4167, 4242, 4245, 4249,
11897 : : /* 170 */ 4331, 4353, 4391, 4402, 4441, 4456, 4919, 6977, 8541, 10197,
11898 : : /* 180 */ 11241, 1313, 1317, 1409, 1418, 1448, 1453, 1495, 1480, 1487,
11899 : : /* 190 */ 1510, 1511, 1515, 1516, 1537, 1992, 1542, 1549, 1569, 1672,
11900 : : /* 200 */ 1696, 1786, 1791, 1801, 1811, 1925, 1984, 2012, 2022, 2024,
11901 : : /* 210 */ 2237, 2256, 2264, 2269, 2274, 2290, 2280, 2281, 4627, 4640,
11902 : : /* 220 */ 4650, 2304, 2315, 2318, 2350, 2428, 2457, 2459, 2464, 2466,
11903 : : /* 230 */ 2587, 3007, 3009, 3665, 3680, 3698, 3898, 3899, 3900, 3908,
11904 : : /* 240 */ 3916, 3925, 3934, 3966, 3967, 3972, 3973, 3978, 3983, 3987,
11905 : : /* 250 */ 4042, 4056, 3670, 3689, 3691, 3675, 4664, 4676, 7624, 9410,
11906 : : /* 260 */ 1458, 1463, 1574, 1579, 1796, 1886, 1806, 1950, 1816, 1821,
11907 : : /* 270 */ 1944, 1996, 1957, 1963, 2568, 1970, 2030, 4925, 7036, 7038,
11908 : : /* 280 */ 7087, 7095, 10284, 10290, 461, 467, 499, 1252, 1272, 1277,
11909 : : /* 290 */ 2071, 2072, 2109, 2603, 5418, 5694, 5701, 5751, 5754, 5804,
11910 : : /* 300 */ 8454, 8868, 8698, 8705, 8862, 8907, 8912, 329, 885, 2355,
11911 : : /* 310 */ 2582, 2621, 2631, 2670, 2676, 2679, 2684, 2849, 2700, 2702,
11912 : : /* 320 */ 2703, 2706, 2708, 2709, 2711, 2713, 2715, 2717, 2719, 2721,
11913 : : /* 330 */ 2735, 2736, 2770, 2855, 2880, 2796, 2823, 2863, 2868, 2893,
11914 : : /* 340 */ 2900, 2966, 4014, 4855, 4863, 4866, 4872, 4875, 4902, 5210,
11915 : : /* 350 */ 5211, 5245, 5249, 5378, 5218, 5219, 5263, 5266, 5267, 5272,
11916 : : /* 360 */ 5275, 5278, 5279, 5231, 5234, 5451, 5455, 5460, 5719, 5871,
11917 : : /* 370 */ 5875, 7047, 7063, 7065, 7077, 7107, 7113, 7114, 7129, 7130,
11918 : : /* 380 */ 7134, 7152, 7157, 7189, 7197, 7207, 7216, 7220, 7226, 7233,
11919 : : /* 390 */ 7249, 7253, 7257, 7264, 7265, 7270, 7271, 7278, 7279, 7281,
11920 : : /* 400 */ 7282, 7298, 7309, 7321, 7325, 7327, 7332, 7335, 7338, 7346,
11921 : : /* 410 */ 7408, 7409, 7413, 7414, 7421, 7425, 7429, 7432, 7438, 7439,
11922 : : /* 420 */ 7443, 7446, 7453, 7473, 7476, 7479, 7482, 7531, 7534, 7538,
11923 : : /* 430 */ 7545, 7551, 7559, 7568, 7569, 7667, 7677, 7716, 7722, 7738,
11924 : : /* 440 */ 7751, 7753, 7755, 7781, 7823, 7802, 7803, 7810, 7812, 7828,
11925 : : /* 450 */ 7834, 7839, 7848, 7854, 7860, 7865, 7870, 7902, 7965, 7884,
11926 : : /* 460 */ 7894, 8003, 8005, 8007, 8009, 8011, 8013, 8017, 8019, 8042,
11927 : : /* 470 */ 8065, 8177, 8184, 8185, 8193, 8194, 8374, 9454, 9456, 9544,
11928 : : /* 480 */ 9546, 9547, 9553, 9569, 9571, 9573, 9591, 9592, 9924, 9927,
11929 : : /* 490 */ 9941, 9950, 10014, 10015, 10069, 10071, 10147, 10556, 10558, 10560,
11930 : : /* 500 */ 10992, 7043, 7054, 7056, 7164, 473, 1225, 1246, 8818, 8823,
11931 : : /* 510 */ 8828, 533, 534, 545, 550, 557, 566, 574, 583, 629,
11932 : : /* 520 */ 632, 820, 973, 999, 1030, 594, 850, 854, 859, 865,
11933 : : /* 530 */ 869, 877, 965, 745, 755, 757, 759, 8448, 8873, 8895,
11934 : : /* 540 */ 8878, 8883, 8888, 8902, 8936, 8941, 807, 810, 1647, 2644,
11935 : : /* 550 */ 2647, 2744, 2756, 2838, 2782, 2809, 2921, 2924, 4893, 4885,
11936 : : /* 560 */ 7001, 8304, 7581, 7584, 7610, 7611, 8090, 8092, 8094, 8096,
11937 : : /* 570 */ 8100, 8102, 8104, 8106, 8110, 8115, 8122, 8127, 8147, 8149,
11938 : : /* 580 */ 8151, 8153, 8317, 8325, 8335, 8343, 8353, 8475, 8477, 9468,
11939 : : /* 590 */ 9487, 9527, 9992, 9994, 9995, 10050, 10053, 10055, 2660, 6991,
11940 : : /* 600 */ 7654, 8549, 8554, 10577, 10579, 10581, 10583, 10587, 911, 947,
11941 : : /* 610 */ 1297, 5031, 5101, 5104, 5112, 5179, 5181, 5182, 5183, 5390,
11942 : : /* 620 */ 5082, 5091, 5925, 5928, 5929, 5937, 2248, 4025, 4030, 4797,
11943 : : /* 630 */ 9293, 9295, 9326, 9361, 11603, 1189, 8766, 8787, 1198, 8510,
11944 : : /* 640 */ 8516, 8813, 9240, 1212, 1216, 8808, 8991, 1391, 1475, 1523,
11945 : : /* 650 */ 1468, 1500, 1531, 1564, 1605, 1616, 1627, 1639, 2489, 1868,
11946 : : /* 660 */ 1876, 1881, 2004, 2345, 2609, 3161, 5349, 5367, 5368, 5896,
11947 : : /* 670 */ 5902, 5950, 3635, 3637, 3647, 3649, 3756, 3757, 3758, 3766,
11948 : : /* 680 */ 3774, 3783, 3792, 3826, 3827, 3832, 3833, 3838, 3843, 3847,
11949 : : /* 690 */ 3655, 3660, 3705, 7179, 7627, 9396, 9398, 10182, 1554, 1559,
11950 : : /* 700 */ 2547, 1727, 2552, 5429, 2527, 2558, 2562, 5443, 4840, 7028,
11951 : : /* 710 */ 7030, 2116, 2154, 2177, 2178, 2532, 4117, 9867, 3626, 4955,
11952 : : /* 720 */ 4998, 5011, 6442, 6444, 6446, 6656, 6660, 6668, 6695, 6697,
11953 : : /* 730 */ 6546, 6549, 6711, 6715, 6773, 4943, 4962, 4969, 4975, 4981,
11954 : : /* 740 */ 4987, 6779, 6911, 9427, 9428, 6921, 10344, 10352, 7918, 7919,
11955 : : /* 750 */ 7933, 7934, 4683, 4687, 4697, 4715, 4780, 4782, 4784, 4786,
11956 : : /* 760 */ 4835, 9418, 4701, 4708, 4693, 4807, 4816, 4819, 5018, 5151,
11957 : : /* 770 */ 5161, 8403, 8406, 8425, 5847, 5859, 5862, 5866, 10786, 10792,
11958 : : /* 780 */ 10800, 10806, 10815, 10821, 10829, 10835, 10881, 10889, 8209, 7172,
11959 : : /* 790 */ 7168, 8384, 8391, 8526, 8531, 8632, 8729, 8746, 8778, 8798,
11960 : : /* 800 */ 8803, 9054, 9031, 9010, 8839, 8843, 9134, 9144, 9151, 9160,
11961 : : /* 810 */ 9178, 9185, 9166, 9433, 9439, 9857, 9863, 9860, 9871, 9877,
11962 : : /* 820 */ 9885, 9891, 9899, 9905, 9959, 10162, 10177, 10443, 10446, 10251,
11963 : : /* 830 */ 10265, 10278, 10962, 10976, 11067, 11068, 219, 2036, 2046, 5982,
11964 : : /* 840 */ 2055, 1139, 2500, 3142, 5471, 5473, 5483, 5575, 5586, 5599,
11965 : : /* 850 */ 5622, 5632, 5641, 5653, 5679, 5990, 6396, 1724, 1738, 1745,
11966 : : /* 860 */ 1767, 1774, 2360, 2575, 2041, 2050, 2059, 2125, 2129, 2160,
11967 : : /* 870 */ 2166, 4104, 6954, 4112, 9881, 9895, 9909, 5488, 5497, 5509,
11968 : : /* 880 */ 5519, 5525, 5999, 5534, 5531, 5817, 5825, 5833, 5837, 5820,
11969 : : /* 890 */ 5828, 5841, 5853, 237, 727, 2413, 4762, 5766, 5772, 5774,
11970 : : /* 900 */ 6017, 6037, 6046, 11618, 3014, 3018, 242, 3035, 3039, 3070,
11971 : : /* 910 */ 3078, 3051, 3065, 260, 297, 1427, 1733, 1841, 1848, 1858,
11972 : : /* 920 */ 1863, 2135, 3086, 3098, 3092, 3104, 2146, 2765, 2790, 2817,
11973 : : /* 930 */ 2801, 2828, 4365, 4337, 4412, 4421, 4464, 4475, 5779, 5790,
11974 : : /* 940 */ 11584, 11585, 1652, 1657, 6026, 7617, 10940, 10944, 1680, 1685,
11975 : : /* 950 */ 2540, 4002, 247, 300, 2774, 3111, 3118, 3125, 3131, 4374,
11976 : : /* 960 */ 3136, 4430, 4478, 4487, 5782, 373, 304, 341, 350, 358,
11977 : : /* 970 */ 432, 447, 455, 646, 686, 982, 1177, 1182, 1280, 1283,
11978 : : /* 980 */ 1383, 2403, 5795, 8483, 8489, 8680, 8930, 2520, 6203, 6211,
11979 : : /* 990 */ 7684, 8241, 8284, 8285, 2510, 8235, 609, 612, 736, 765,
11980 : : /* 1000 */ 771, 777, 785, 790, 795, 838, 842, 8495, 8501, 8159,
11981 : : /* 1010 */ 896, 1338, 5047, 1327, 1330, 1362, 1373, 5024, 5096, 5189,
11982 : : /* 1020 */ 1397, 1586, 1662, 1690, 2295, 5195, 5196, 7621, 11591, 4722,
11983 : : /* 1030 */ 4726, 4754, 4755, 4828, 4733, 4737, 4745, 4746, 5133, 5814,
11984 : : /* 1040 */ 8217, 8219, 8226, 8228, 7176, 6675, 6680, 6748, 6754, 6763,
11985 : : /* 1050 */ 6764, 4931, 5968, 5970, 6786, 6792, 6795, 6804, 6808, 6813,
11986 : : /* 1060 */ 6842, 6847, 6908, 6855, 6860, 6918, 7948, 7950, 6877, 6878,
11987 : : /* 1070 */ 6879, 6929, 6898, 6899, 6900, 6941, 6942, 7979, 7984, 6821,
11988 : : /* 1080 */ 5974, 5976, 6222, 6224, 9599, 9605, 9610, 9619, 9621, 9641,
11989 : : /* 1090 */ 9686, 9689, 9690, 9722, 9728, 9730, 9731, 9787, 9788, 9809,
11990 : : /* 1100 */ 9814, 9819, 9849, 11091, 11093, 11128, 11202, 11205, 11290, 11225,
11991 : : /* 1110 */ 11231, 11359, 11361, 11423, 11425
11992 : : };
11993 : :
11994 : 28983 : fprintf (dump_file, "%s %s:%d, %s:%d\n",
11995 : : simplify ? "Applying pattern" : "Matching expression", file1, dbg_line_numbers[line1_id], file2, line2);
11996 : 19367 : }
11997 : :
11998 : : #pragma GCC diagnostic pop
|