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 : 1593 : tree_min_value (tree t)
11 : : {
12 : 1593 : const tree type = TREE_TYPE (t);
13 : 1593 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
14 : 1593 : if (TREE_SIDE_EFFECTS (t)) return false;
15 : 1585 : if (uniform_integer_cst_p (t))
16 : : {
17 : 1325 : {
18 : 1325 : {
19 : 1325 : tree int_cst = uniform_integer_cst_p (t);
20 : 1325 : tree inner_type = TREE_TYPE (int_cst);
21 : 2650 : if ((INTEGRAL_TYPE_P (inner_type)
22 : 19 : || POINTER_TYPE_P (inner_type))
23 : 2667 : && wi::eq_p (wi::to_wide (int_cst), wi::min_value (inner_type))
24 : : )
25 : : {
26 : 113 : {
27 : 113 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 28, __FILE__, __LINE__, false);
28 : 113 : return true;
29 : : }
30 : : }
31 : : }
32 : : }
33 : : }
34 : : return false;
35 : : }
36 : :
37 : : bool
38 : 1575 : tree_max_value (tree t)
39 : : {
40 : 1575 : const tree type = TREE_TYPE (t);
41 : 1575 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
42 : 1575 : if (TREE_SIDE_EFFECTS (t)) return false;
43 : 1567 : if (uniform_integer_cst_p (t))
44 : : {
45 : 1306 : {
46 : 1306 : {
47 : 1306 : tree int_cst = uniform_integer_cst_p (t);
48 : 1306 : tree itype = TREE_TYPE (int_cst);
49 : 2612 : if ((INTEGRAL_TYPE_P (itype)
50 : 19 : || POINTER_TYPE_P (itype))
51 : 2629 : && wi::eq_p (wi::to_wide (int_cst), wi::max_value (itype))
52 : : )
53 : : {
54 : 0 : {
55 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 29, __FILE__, __LINE__, false);
56 : 0 : return true;
57 : : }
58 : : }
59 : : }
60 : : }
61 : : }
62 : : return false;
63 : : }
64 : :
65 : : bool
66 : 0 : tree_cond_expr_convert_p (tree t, tree *res_ops)
67 : : {
68 : 0 : const tree type = TREE_TYPE (t);
69 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
70 : 0 : if (TREE_SIDE_EFFECTS (t)) return false;
71 : 0 : switch (TREE_CODE (t))
72 : : {
73 : 0 : case COND_EXPR:
74 : 0 : {
75 : 0 : tree _p0 = TREE_OPERAND (t, 0);
76 : 0 : tree _p1 = TREE_OPERAND (t, 1);
77 : 0 : tree _p2 = TREE_OPERAND (t, 2);
78 : 0 : switch (TREE_CODE (_p0))
79 : : {
80 : 0 : case LT_EXPR:
81 : 0 : case LE_EXPR:
82 : 0 : case EQ_EXPR:
83 : 0 : case NE_EXPR:
84 : 0 : case GE_EXPR:
85 : 0 : case GT_EXPR:
86 : 0 : {
87 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
88 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
89 : 0 : switch (TREE_CODE (_p1))
90 : : {
91 : 0 : CASE_CONVERT:
92 : 0 : {
93 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
94 : 0 : switch (TREE_CODE (_p2))
95 : : {
96 : 0 : CASE_CONVERT:
97 : 0 : {
98 : 0 : tree _q70 = TREE_OPERAND (_p2, 0);
99 : 0 : {
100 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _q20, _q50, _q70, _p0, _q21, _p1, _p2 };
101 : 0 : if (INTEGRAL_TYPE_P (type)
102 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
103 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
104 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
105 : 0 : && TYPE_PRECISION (type) != TYPE_PRECISION (TREE_TYPE (captures[0]))
106 : 0 : && TYPE_PRECISION (TREE_TYPE (captures[0]))
107 : 0 : == TYPE_PRECISION (TREE_TYPE (captures[1]))
108 : 0 : && TYPE_PRECISION (TREE_TYPE (captures[0]))
109 : 0 : == TYPE_PRECISION (TREE_TYPE (captures[2]))
110 : 0 : && (TYPE_PRECISION (TREE_TYPE (captures[0])) > TYPE_PRECISION (type)
111 : 0 : || (TYPE_UNSIGNED (TREE_TYPE (captures[1]))
112 : 0 : == TYPE_UNSIGNED (TREE_TYPE (captures[2]))))
113 : : && single_use (captures[5])
114 : 0 : && single_use (captures[6])
115 : : )
116 : : {
117 : 0 : {
118 : 0 : res_ops[0] = captures[0];
119 : 0 : res_ops[1] = captures[1];
120 : 0 : res_ops[2] = captures[2];
121 : 0 : res_ops[3] = captures[3];
122 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 37, __FILE__, __LINE__, false);
123 : 0 : return true;
124 : : }
125 : : }
126 : : }
127 : : break;
128 : : }
129 : : default:;
130 : : }
131 : : break;
132 : : }
133 : : default:;
134 : : }
135 : : break;
136 : : }
137 : : default:;
138 : : }
139 : : break;
140 : : }
141 : : default:;
142 : : }
143 : : return false;
144 : : }
145 : :
146 : : tree
147 : 40812 : generic_simplify_12 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
148 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
149 : : {
150 : 40812 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
151 : 40812 : if (!TYPE_SATURATING (type)
152 : : )
153 : : {
154 : 40812 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
155 : 81550 : && !FIXED_POINT_TYPE_P (type)
156 : : )
157 : : {
158 : 40738 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail93;
159 : 40738 : {
160 : 40738 : tree res_op0;
161 : 40738 : res_op0 = captures[0];
162 : 40738 : tree _r;
163 : 40738 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
164 : 40738 : if (TREE_SIDE_EFFECTS (captures[1]))
165 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
166 : 40738 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 52, __FILE__, __LINE__, true);
167 : 40738 : return _r;
168 : : }
169 : 0 : next_after_fail93:;
170 : : }
171 : : }
172 : : return NULL_TREE;
173 : : }
174 : :
175 : : tree
176 : 7 : generic_simplify_18 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
177 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
178 : : {
179 : 7 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
180 : 7 : if (!TYPE_SATURATING (type)
181 : : )
182 : : {
183 : 7 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
184 : 14 : && !FIXED_POINT_TYPE_P (type)
185 : : )
186 : : {
187 : 7 : if (TYPE_OVERFLOW_UNDEFINED (type)
188 : 14 : && !TYPE_OVERFLOW_SANITIZED (TREE_TYPE (captures[0]))
189 : : )
190 : : {
191 : 7 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail107;
192 : 7 : {
193 : 7 : tree res_op0;
194 : 7 : res_op0 = captures[2];
195 : 7 : tree res_op1;
196 : 7 : res_op1 = captures[1];
197 : 7 : tree _r;
198 : 7 : _r = fold_build2_loc (loc, POINTER_DIFF_EXPR, type, res_op0, res_op1);
199 : 7 : if (TREE_SIDE_EFFECTS (captures[0]))
200 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
201 : 7 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 66, __FILE__, __LINE__, true);
202 : 7 : return _r;
203 : : }
204 : 0 : next_after_fail107:;
205 : : }
206 : : }
207 : : }
208 : : return NULL_TREE;
209 : : }
210 : :
211 : : tree
212 : 338195 : generic_simplify_24 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
213 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
214 : : const enum tree_code ARG_UNUSED (plusminus))
215 : : {
216 : 338195 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
217 : 338195 : if (!TYPE_SATURATING (type)
218 : 338195 : && (!FLOAT_TYPE_P (type) || flag_associative_math)
219 : : )
220 : : {
221 : 337649 : if (!ALL_FRACT_MODE_P (TYPE_MODE (type))
222 : : )
223 : : {
224 : 53 : if ((!ANY_INTEGRAL_TYPE_P (type)
225 : 337610 : || TYPE_OVERFLOW_WRAPS (type)
226 : 87362 : || (INTEGRAL_TYPE_P (type)
227 : 87348 : && ((tree_expr_nonzero_p (captures[1])
228 : 52258 : && (plusminus == MINUS_EXPR
229 : 104334 : || expr_not_equal_to (captures[1],
230 : 389816 : wi::minus_one (TYPE_PRECISION (type)))))
231 : 35090 : || expr_not_equal_to (captures[2],
232 : : (plusminus == PLUS_EXPR
233 : 407829 : ? wi::max_value (TYPE_PRECISION (type), SIGNED)
234 : 1304 : : wi::min_value (TYPE_PRECISION (type), SIGNED))))))
235 : 674300 : && single_use (captures[0])
236 : : )
237 : : {
238 : 336651 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail114;
239 : 336651 : {
240 : 336651 : tree res_op0;
241 : 336651 : {
242 : 336651 : tree _o1[2], _r1;
243 : 336651 : _o1[0] = captures[2];
244 : 336651 : _o1[1] = build_one_cst (type);
245 : 336651 : _r1 = fold_build2_loc (loc, plusminus, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
246 : 336651 : res_op0 = _r1;
247 : : }
248 : 336651 : tree res_op1;
249 : 336651 : res_op1 = captures[1];
250 : 336651 : tree _r;
251 : 336651 : _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
252 : 336651 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 73, __FILE__, __LINE__, true);
253 : 336651 : return _r;
254 : : }
255 : 0 : next_after_fail114:;
256 : : }
257 : : }
258 : : }
259 : : return NULL_TREE;
260 : : }
261 : :
262 : : tree
263 : 0 : generic_simplify_33 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
264 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
265 : : const enum tree_code ARG_UNUSED (op))
266 : : {
267 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
268 : 0 : if (VECTOR_FLOAT_TYPE_P (type)
269 : 0 : && TYPE_VECTOR_SUBPARTS (type).is_constant ()
270 : : )
271 : : {
272 : 0 : {
273 : 0 : tree perm_cst = captures[1];
274 : 0 : vec_perm_builder builder;
275 : 0 : bool full_perm_p = false;
276 : 0 : if (tree_to_vec_perm_builder (&builder, perm_cst))
277 : : {
278 : 0 : unsigned HOST_WIDE_INT nelts;
279 : 0 : nelts = TYPE_VECTOR_SUBPARTS (type).to_constant ();
280 : 0 : vec_perm_indices sel (builder, 1, nelts);
281 : 0 : if (sel.encoding ().encoded_full_vector_p ())
282 : : {
283 : 0 : auto_sbitmap seen (nelts);
284 : 0 : bitmap_clear (seen);
285 : 0 : unsigned HOST_WIDE_INT count = 0, i;
286 : 0 : for (i = 0; i < nelts; i++)
287 : : {
288 : 0 : if (!bitmap_set_bit (seen, sel[i].to_constant ()))
289 : : break;
290 : 0 : count++;
291 : : }
292 : 0 : full_perm_p = count == nelts;
293 : 0 : }
294 : 0 : }
295 : 0 : if (full_perm_p
296 : : )
297 : : {
298 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail123;
299 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail123;
300 : 0 : {
301 : 0 : tree res_op0;
302 : 0 : {
303 : 0 : tree _o1[2], _r1;
304 : 0 : _o1[0] = captures[0];
305 : 0 : _o1[1] = captures[2];
306 : 0 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
307 : 0 : captures[3] = _r1;
308 : : }
309 : 0 : res_op0 = unshare_expr (captures[3]);
310 : 0 : tree res_op1;
311 : 0 : res_op1 = captures[3];
312 : 0 : tree res_op2;
313 : 0 : res_op2 = captures[1];
314 : 0 : tree _r;
315 : 0 : _r = fold_build3_loc (loc, VEC_PERM_EXPR, type, res_op0, res_op1, res_op2);
316 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 82, __FILE__, __LINE__, true);
317 : 0 : return _r;
318 : : }
319 : 0 : next_after_fail123:;
320 : : }
321 : 0 : }
322 : : }
323 : : return NULL_TREE;
324 : : }
325 : :
326 : : tree
327 : 228 : generic_simplify_45 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
328 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
329 : : {
330 : 228 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
331 : 228 : if (!TYPE_SATURATING (type)
332 : : )
333 : : {
334 : 228 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
335 : 456 : && !FIXED_POINT_TYPE_P (type)
336 : : )
337 : : {
338 : 0 : if (!ANY_INTEGRAL_TYPE_P (type)
339 : 228 : || TYPE_OVERFLOW_WRAPS (type)
340 : : )
341 : : {
342 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail135;
343 : 12 : {
344 : 12 : tree res_op0;
345 : 12 : {
346 : 12 : tree _o1[1], _r1;
347 : 12 : _o1[0] = captures[1];
348 : 12 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
349 : 12 : res_op0 = _r1;
350 : : }
351 : 12 : tree _r;
352 : 12 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
353 : 12 : if (TREE_SIDE_EFFECTS (captures[0]))
354 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
355 : 12 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 93, __FILE__, __LINE__, true);
356 : 12 : return _r;
357 : : }
358 : 0 : next_after_fail135:;
359 : : }
360 : : else
361 : : {
362 : 216 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail136;
363 : 216 : {
364 : 216 : tree res_op0;
365 : 216 : {
366 : 216 : tree _o1[1], _r1;
367 : 216 : _o1[0] = captures[1];
368 : 216 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
369 : 216 : res_op0 = _r1;
370 : : }
371 : 216 : tree _r;
372 : 216 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
373 : 216 : if (TREE_SIDE_EFFECTS (captures[0]))
374 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
375 : 216 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 94, __FILE__, __LINE__, true);
376 : 216 : return _r;
377 : : }
378 : 0 : next_after_fail136:;
379 : : }
380 : : }
381 : : }
382 : : return NULL_TREE;
383 : : }
384 : :
385 : : tree
386 : 0 : generic_simplify_55 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
387 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
388 : : {
389 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
390 : 0 : if (VECTOR_TYPE_P (type)
391 : 0 : && known_eq (TYPE_VECTOR_SUBPARTS (type),
392 : : TYPE_VECTOR_SUBPARTS (TREE_TYPE (captures[3])))
393 : 0 : && (TYPE_MODE (TREE_TYPE (type))
394 : 0 : == TYPE_MODE (TREE_TYPE (TREE_TYPE (captures[3]))))
395 : : )
396 : : {
397 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail151;
398 : 0 : {
399 : 0 : tree res_op0;
400 : 0 : res_op0 = captures[0];
401 : 0 : tree res_op1;
402 : 0 : {
403 : 0 : tree _o1[1], _r1;
404 : 0 : {
405 : 0 : tree _o2[3], _r2;
406 : 0 : _o2[0] = captures[2];
407 : 0 : {
408 : 0 : tree _o3[1], _r3;
409 : 0 : _o3[0] = captures[3];
410 : 0 : _r3 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o3[0]), _o3[0]);
411 : 0 : _o2[1] = _r3;
412 : : }
413 : 0 : _o2[2] = captures[4];
414 : 0 : _r2 = fold_build3_loc (loc, VEC_COND_EXPR, TREE_TYPE (_o2[1]), _o2[0], _o2[1], _o2[2]);
415 : 0 : _o1[0] = _r2;
416 : : }
417 : 0 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
418 : 0 : res_op1 = _r1;
419 : : }
420 : 0 : tree _r;
421 : 0 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
422 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 109, __FILE__, __LINE__, true);
423 : 0 : return _r;
424 : : }
425 : 0 : next_after_fail151:;
426 : : }
427 : : return NULL_TREE;
428 : : }
429 : :
430 : : tree
431 : 0 : generic_simplify_63 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
432 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
433 : : {
434 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
435 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail159;
436 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail159;
437 : 0 : {
438 : 0 : tree _r;
439 : 0 : _r = captures[2];
440 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 117, __FILE__, __LINE__, true);
441 : : return _r;
442 : : }
443 : : next_after_fail159:;
444 : : return NULL_TREE;
445 : : }
446 : :
447 : : tree
448 : 16 : generic_simplify_67 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
449 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
450 : : {
451 : 16 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
452 : 32 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
453 : 32 : && TYPE_PRECISION (TREE_TYPE (captures[0])) == 1
454 : : )
455 : : {
456 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail163;
457 : 0 : {
458 : 0 : tree res_op0;
459 : 0 : res_op0 = captures[0];
460 : 0 : tree res_op1;
461 : 0 : {
462 : 0 : tree _o1[2], _r1;
463 : 0 : _o1[0] = captures[1];
464 : 0 : _o1[1] = build_one_cst (type);
465 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
466 : 0 : res_op1 = _r1;
467 : : }
468 : 0 : tree _r;
469 : 0 : _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
470 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 120, __FILE__, __LINE__, true);
471 : 0 : return _r;
472 : : }
473 : 0 : next_after_fail163:;
474 : : }
475 : : return NULL_TREE;
476 : : }
477 : :
478 : : tree
479 : 191 : generic_simplify_79 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
480 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
481 : : const enum tree_code ARG_UNUSED (op),
482 : : const enum tree_code ARG_UNUSED (rop))
483 : : {
484 : 191 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
485 : 191 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[1]))
486 : 191 : && tree_nop_conversion_p (type, TREE_TYPE (captures[2]))
487 : : )
488 : : {
489 : 191 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail175;
490 : 191 : {
491 : 191 : tree res_op0;
492 : 191 : {
493 : 191 : tree _o1[1], _r1;
494 : 191 : _o1[0] = captures[0];
495 : 191 : if (TREE_TYPE (_o1[0]) != type)
496 : : {
497 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
498 : : }
499 : : else
500 : : _r1 = _o1[0];
501 : 191 : res_op0 = _r1;
502 : : }
503 : 191 : tree res_op1;
504 : 191 : {
505 : 191 : tree _o1[2], _r1;
506 : 191 : {
507 : 191 : tree _o2[1], _r2;
508 : 191 : _o2[0] = captures[1];
509 : 191 : if (TREE_TYPE (_o2[0]) != type)
510 : : {
511 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, type, _o2[0]);
512 : : }
513 : : else
514 : : _r2 = _o2[0];
515 : 191 : _o1[0] = _r2;
516 : : }
517 : 191 : {
518 : 191 : tree _o2[1], _r2;
519 : 191 : _o2[0] = captures[2];
520 : 191 : if (TREE_TYPE (_o2[0]) != type)
521 : : {
522 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, type, _o2[0]);
523 : : }
524 : : else
525 : : _r2 = _o2[0];
526 : 191 : _o1[1] = _r2;
527 : : }
528 : 191 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
529 : 191 : res_op1 = _r1;
530 : : }
531 : 191 : tree _r;
532 : 191 : _r = fold_build2_loc (loc, rop, type, res_op0, res_op1);
533 : 191 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 128, __FILE__, __LINE__, true);
534 : 191 : return _r;
535 : : }
536 : 0 : next_after_fail175:;
537 : : }
538 : : return NULL_TREE;
539 : : }
540 : :
541 : : tree
542 : 311693 : generic_simplify_95 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
543 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
544 : : const enum tree_code ARG_UNUSED (bitop),
545 : : const enum tree_code ARG_UNUSED (rbitop))
546 : : {
547 : 311693 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
548 : 311693 : {
549 : 311693 : bool wascmp;
550 : 311693 : if (bitwise_inverted_equal_p (captures[2], captures[0], wascmp)
551 : 311693 : && (!wascmp || element_precision (type) == 1)
552 : : )
553 : : {
554 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail195;
555 : 12 : {
556 : 12 : tree res_op0;
557 : 12 : res_op0 = captures[2];
558 : 12 : tree res_op1;
559 : 12 : res_op1 = captures[1];
560 : 12 : tree _r;
561 : 12 : _r = fold_build2_loc (loc, bitop, type, res_op0, res_op1);
562 : 12 : if (TREE_SIDE_EFFECTS (captures[0]))
563 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
564 : 12 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 139, __FILE__, __LINE__, true);
565 : 12 : return _r;
566 : : }
567 : 0 : next_after_fail195:;
568 : : }
569 : : }
570 : 311681 : return NULL_TREE;
571 : : }
572 : :
573 : : tree
574 : 80 : generic_simplify_98 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
575 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
576 : : const enum tree_code ARG_UNUSED (op))
577 : : {
578 : 80 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
579 : 80 : if (bitwise_equal_p (captures[4], captures[7])
580 : : )
581 : : {
582 : 16 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail198;
583 : 16 : {
584 : 16 : tree res_op0;
585 : 16 : {
586 : 16 : tree _o1[2], _r1;
587 : 16 : {
588 : 16 : tree _o2[2], _r2;
589 : 16 : _o2[0] = captures[5];
590 : 16 : {
591 : 16 : tree _o3[1], _r3;
592 : 16 : _o3[0] = captures[6];
593 : 16 : if (TREE_TYPE (_o3[0]) != TREE_TYPE (_o2[0]))
594 : : {
595 : 16 : _r3 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (_o2[0]), _o3[0]);
596 : : }
597 : : else
598 : : _r3 = _o3[0];
599 : 16 : _o2[1] = _r3;
600 : : }
601 : 16 : _r2 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
602 : 16 : _o1[0] = _r2;
603 : : }
604 : 16 : {
605 : 16 : tree _o2[1], _r2;
606 : 16 : _o2[0] = captures[4];
607 : 16 : if (TREE_TYPE (_o2[0]) != TREE_TYPE (_o1[0]))
608 : : {
609 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (_o1[0]), _o2[0]);
610 : : }
611 : : else
612 : : _r2 = _o2[0];
613 : 16 : _o1[1] = _r2;
614 : : }
615 : 16 : _r1 = fold_build2_loc (loc, BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
616 : 16 : res_op0 = _r1;
617 : : }
618 : 16 : tree _r;
619 : 16 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
620 : 16 : if (TREE_SIDE_EFFECTS (captures[7]))
621 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[7]), _r);
622 : 16 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 142, __FILE__, __LINE__, true);
623 : 16 : return _r;
624 : : }
625 : 0 : next_after_fail198:;
626 : : }
627 : : return NULL_TREE;
628 : : }
629 : :
630 : : tree
631 : 0 : generic_simplify_111 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
632 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
633 : : const enum tree_code ARG_UNUSED (cmp),
634 : : const enum tree_code ARG_UNUSED (icmp))
635 : : {
636 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
637 : 0 : if (invert_tree_comparison (cmp, HONOR_NANS (captures[2])) == icmp
638 : : )
639 : : {
640 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail217;
641 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail217;
642 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail217;
643 : 0 : {
644 : 0 : tree res_op0;
645 : 0 : res_op0 = captures[1];
646 : 0 : tree res_op1;
647 : 0 : res_op1 = captures[4];
648 : 0 : tree res_op2;
649 : 0 : res_op2 = captures[7];
650 : 0 : tree _r;
651 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
652 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 156, __FILE__, __LINE__, true);
653 : 0 : return _r;
654 : : }
655 : : next_after_fail217:;
656 : : }
657 : : return NULL_TREE;
658 : : }
659 : :
660 : : tree
661 : 0 : generic_simplify_121 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
662 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
663 : : {
664 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
665 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail246;
666 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail246;
667 : 0 : {
668 : 0 : tree _r;
669 : 0 : _r = captures[2];
670 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
671 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
672 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 160, __FILE__, __LINE__, true);
673 : : return _r;
674 : : }
675 : : next_after_fail246:;
676 : : return NULL_TREE;
677 : : }
678 : :
679 : : tree
680 : 0 : generic_simplify_126 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
681 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
682 : : const enum tree_code ARG_UNUSED (eqne))
683 : : {
684 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
685 : 0 : if (eqne == EQ_EXPR
686 : : )
687 : : {
688 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail264;
689 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail264;
690 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail264;
691 : 0 : {
692 : 0 : tree _r;
693 : 0 : _r = captures[0];
694 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 177, __FILE__, __LINE__, true);
695 : 0 : return _r;
696 : : }
697 : : next_after_fail264:;
698 : : }
699 : : else
700 : : {
701 : 0 : if (eqne == NE_EXPR
702 : : )
703 : : {
704 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail265;
705 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail265;
706 : 0 : {
707 : 0 : tree _r;
708 : 0 : _r = constant_boolean_node (true, type);
709 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
710 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
711 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 178, __FILE__, __LINE__, true);
712 : 0 : return _r;
713 : : }
714 : : next_after_fail265:;
715 : : }
716 : : }
717 : : return NULL_TREE;
718 : : }
719 : :
720 : : tree
721 : 18 : generic_simplify_131 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
722 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
723 : : const enum tree_code ARG_UNUSED (op))
724 : : {
725 : 18 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
726 : 18 : if (INTEGRAL_TYPE_P (type) && TYPE_OVERFLOW_WRAPS (type)
727 : 36 : && (tree_nonzero_bits (captures[0]) & tree_nonzero_bits (captures[1])) == 0
728 : : )
729 : : {
730 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail270;
731 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail270;
732 : 0 : {
733 : 0 : tree res_op0;
734 : 0 : res_op0 = captures[1];
735 : 0 : tree res_op1;
736 : 0 : res_op1 = wide_int_to_tree (type,
737 : 0 : wi::add (wi::to_wide (captures[2]), 1));
738 : 0 : tree _r;
739 : 0 : _r = fold_build2_loc (loc, MULT_EXPR, type, res_op0, res_op1);
740 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 182, __FILE__, __LINE__, true);
741 : 0 : return _r;
742 : : }
743 : : next_after_fail270:;
744 : : }
745 : : return NULL_TREE;
746 : : }
747 : :
748 : : tree
749 : 0 : generic_simplify_135 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
750 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
751 : : {
752 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
753 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail274;
754 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail274;
755 : 0 : {
756 : 0 : tree _r;
757 : 0 : _r = captures[1];
758 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 185, __FILE__, __LINE__, true);
759 : : return _r;
760 : : }
761 : : next_after_fail274:;
762 : : return NULL_TREE;
763 : : }
764 : :
765 : : tree
766 : 0 : generic_simplify_138 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
767 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
768 : : {
769 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
770 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail277;
771 : 0 : {
772 : 0 : tree res_op0;
773 : 0 : res_op0 = captures[1];
774 : 0 : tree res_op1;
775 : 0 : res_op1 = captures[2];
776 : 0 : tree _r;
777 : 0 : _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
778 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 188, __FILE__, __LINE__, true);
779 : : return _r;
780 : : }
781 : 0 : next_after_fail277:;
782 : 0 : return NULL_TREE;
783 : : }
784 : :
785 : : tree
786 : 1 : generic_simplify_143 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
787 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
788 : : {
789 : 1 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
790 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail282;
791 : 1 : {
792 : 1 : tree res_op0;
793 : 1 : res_op0 = captures[0];
794 : 1 : tree res_op1;
795 : 1 : res_op1 = captures[1];
796 : 1 : tree _r;
797 : 1 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
798 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 193, __FILE__, __LINE__, true);
799 : : return _r;
800 : : }
801 : 0 : next_after_fail282:;
802 : 0 : return NULL_TREE;
803 : : }
804 : :
805 : : tree
806 : 0 : generic_simplify_146 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
807 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
808 : : {
809 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
810 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail285;
811 : 0 : {
812 : 0 : tree res_op0;
813 : 0 : res_op0 = captures[0];
814 : 0 : tree res_op1;
815 : 0 : res_op1 = captures[1];
816 : 0 : tree _r;
817 : 0 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
818 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 196, __FILE__, __LINE__, true);
819 : : return _r;
820 : : }
821 : 0 : next_after_fail285:;
822 : 0 : return NULL_TREE;
823 : : }
824 : :
825 : : tree
826 : 53 : generic_simplify_150 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
827 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
828 : : {
829 : 53 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
830 : 53 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
831 : : )
832 : : {
833 : 26 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail289;
834 : 26 : {
835 : 26 : tree res_op0;
836 : 26 : {
837 : 26 : tree _o1[1], _r1;
838 : 26 : _o1[0] = captures[0];
839 : 26 : if (TREE_TYPE (_o1[0]) != type)
840 : : {
841 : 1 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
842 : : }
843 : : else
844 : : _r1 = _o1[0];
845 : 26 : res_op0 = _r1;
846 : : }
847 : 26 : tree res_op1;
848 : 26 : {
849 : 26 : tree _o1[1], _r1;
850 : 26 : _o1[0] = captures[1];
851 : 26 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
852 : 26 : res_op1 = _r1;
853 : : }
854 : 26 : tree _r;
855 : 26 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
856 : 26 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 200, __FILE__, __LINE__, true);
857 : 26 : return _r;
858 : : }
859 : 0 : next_after_fail289:;
860 : : }
861 : : return NULL_TREE;
862 : : }
863 : :
864 : : tree
865 : 0 : generic_simplify_160 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
866 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
867 : : const combined_fn ARG_UNUSED (COPYSIGN_ALL))
868 : : {
869 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
870 : 0 : if (!tree_expr_maybe_nan_p (captures[0]) && !HONOR_SIGNED_ZEROS (type)
871 : : )
872 : : {
873 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail301;
874 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail301;
875 : 0 : {
876 : 0 : tree res_op0;
877 : 0 : res_op0 = captures[0];
878 : 0 : tree _r;
879 : 0 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
880 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 211, __FILE__, __LINE__, true);
881 : 0 : return _r;
882 : : }
883 : : next_after_fail301:;
884 : : }
885 : : return NULL_TREE;
886 : : }
887 : :
888 : : tree
889 : 2820 : generic_simplify_166 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
890 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
891 : : {
892 : 2820 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
893 : 2820 : if (! FLOAT_TYPE_P (type)
894 : 5640 : && tree_nop_conversion_p (type, TREE_TYPE (captures[1]))
895 : : )
896 : : {
897 : 2819 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail307;
898 : 2819 : {
899 : 2819 : tree res_op0;
900 : 2819 : res_op0 = captures[0];
901 : 2819 : tree res_op1;
902 : 2819 : res_op1 = captures[2];
903 : 2819 : tree _r;
904 : 2819 : _r = fold_build2_loc (loc, LSHIFT_EXPR, type, res_op0, res_op1);
905 : 2819 : if (TREE_SIDE_EFFECTS (captures[1]))
906 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
907 : 2819 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 215, __FILE__, __LINE__, true);
908 : 2819 : return _r;
909 : : }
910 : 0 : next_after_fail307:;
911 : : }
912 : : return NULL_TREE;
913 : : }
914 : :
915 : : tree
916 : 2 : generic_simplify_177 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
917 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
918 : : const combined_fn ARG_UNUSED (SQRT_ALL))
919 : : {
920 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
921 : 2 : if (flag_unsafe_math_optimizations
922 : : )
923 : : {
924 : 2 : if (!tree_expr_maybe_signaling_nan_p (captures[1])
925 : : )
926 : : {
927 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail321;
928 : 2 : {
929 : 2 : tree _r;
930 : 2 : _r = captures[1];
931 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 225, __FILE__, __LINE__, true);
932 : 2 : return _r;
933 : : }
934 : 0 : next_after_fail321:;
935 : : }
936 : : }
937 : : return NULL_TREE;
938 : : }
939 : :
940 : : tree
941 : 136 : generic_simplify_182 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
942 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
943 : : const enum tree_code ARG_UNUSED (cmp))
944 : : {
945 : 136 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
946 : 272 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
947 : 272 : && !TYPE_OVERFLOW_WRAPS (TREE_TYPE(captures[0]))
948 : : )
949 : : {
950 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail326;
951 : 3 : {
952 : 3 : tree res_op0;
953 : 3 : res_op0 = captures[0];
954 : 3 : tree res_op1;
955 : 3 : res_op1 = build_zero_cst (TREE_TYPE(captures[0]));
956 : 3 : tree _r;
957 : 3 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
958 : 3 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 230, __FILE__, __LINE__, true);
959 : 3 : return _r;
960 : : }
961 : 0 : next_after_fail326:;
962 : : }
963 : : return NULL_TREE;
964 : : }
965 : :
966 : : tree
967 : 143 : generic_simplify_189 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
968 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
969 : : const enum tree_code ARG_UNUSED (op))
970 : : {
971 : 143 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
972 : 286 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
973 : 286 : && (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[2]))
974 : 143 : || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[2])))
975 : : && (CONSTANT_CLASS_P (captures[2]) || (single_use (captures[1]) && single_use (captures[0])))
976 : 143 : && tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
977 : 429 : && tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[3]))
978 : : )
979 : : {
980 : 143 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail336;
981 : 143 : {
982 : 143 : tree res_op0;
983 : 143 : res_op0 = captures[2];
984 : 143 : tree res_op1;
985 : 143 : res_op1 = build_zero_cst (TREE_TYPE (captures[2]));
986 : 143 : tree _r;
987 : 143 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
988 : 143 : if (TREE_SIDE_EFFECTS (captures[3]))
989 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
990 : 143 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 240, __FILE__, __LINE__, true);
991 : 143 : return _r;
992 : : }
993 : 0 : next_after_fail336:;
994 : : }
995 : : return NULL_TREE;
996 : : }
997 : :
998 : : tree
999 : 0 : generic_simplify_199 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1000 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1001 : : const enum tree_code ARG_UNUSED (neeq))
1002 : : {
1003 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1004 : 0 : {
1005 : 0 : poly_int64 diff; tree inner_type = TREE_TYPE (captures[1]);
1006 : 0 : if (ptr_difference_const (captures[0], captures[2], &diff)
1007 : : )
1008 : : {
1009 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail359;
1010 : 0 : {
1011 : 0 : tree res_op0;
1012 : 0 : {
1013 : 0 : tree _o1[2], _r1;
1014 : 0 : _o1[0] = build_int_cst_type (inner_type, diff);
1015 : 0 : _o1[1] = captures[1];
1016 : 0 : _r1 = fold_build2_loc (loc, PLUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1017 : 0 : res_op0 = _r1;
1018 : : }
1019 : 0 : tree res_op1;
1020 : 0 : res_op1 = captures[3];
1021 : 0 : tree _r;
1022 : 0 : _r = fold_build2_loc (loc, neeq, type, res_op0, res_op1);
1023 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
1024 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1025 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
1026 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
1027 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 261, __FILE__, __LINE__, true);
1028 : 0 : return _r;
1029 : : }
1030 : 0 : next_after_fail359:;
1031 : : }
1032 : : }
1033 : 0 : return NULL_TREE;
1034 : : }
1035 : :
1036 : : tree
1037 : 111 : generic_simplify_212 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1038 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1039 : : const enum tree_code ARG_UNUSED (cmp),
1040 : : const enum tree_code ARG_UNUSED (icmp))
1041 : : {
1042 : 111 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1043 : 111 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
1044 : : )
1045 : : {
1046 : 111 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail383;
1047 : 111 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail383;
1048 : 111 : {
1049 : 111 : tree res_op0;
1050 : 111 : res_op0 = captures[1];
1051 : 111 : tree res_op1;
1052 : 111 : res_op1 = build_zero_cst (TREE_TYPE (captures[1]));
1053 : 111 : tree _r;
1054 : 111 : _r = fold_build2_loc (loc, icmp, type, res_op0, res_op1);
1055 : 111 : if (TREE_SIDE_EFFECTS (captures[0]))
1056 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1057 : 111 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 285, __FILE__, __LINE__, true);
1058 : 111 : return _r;
1059 : : }
1060 : : next_after_fail383:;
1061 : : }
1062 : : return NULL_TREE;
1063 : : }
1064 : :
1065 : : tree
1066 : 0 : generic_simplify_214 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1067 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1068 : : const enum tree_code ARG_UNUSED (rotate),
1069 : : const enum tree_code ARG_UNUSED (invrot),
1070 : : const enum tree_code ARG_UNUSED (cmp))
1071 : : {
1072 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1073 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail386;
1074 : 0 : {
1075 : 0 : tree res_op0;
1076 : 0 : res_op0 = captures[0];
1077 : 0 : tree res_op1;
1078 : 0 : res_op1 = captures[2];
1079 : 0 : tree _r;
1080 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
1081 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
1082 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1083 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 288, __FILE__, __LINE__, true);
1084 : : return _r;
1085 : : }
1086 : 0 : next_after_fail386:;
1087 : 0 : return NULL_TREE;
1088 : : }
1089 : :
1090 : : tree
1091 : 248 : generic_simplify_220 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1092 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1093 : : const enum tree_code ARG_UNUSED (cmp),
1094 : : const enum tree_code ARG_UNUSED (icmp),
1095 : : const enum tree_code ARG_UNUSED (ncmp))
1096 : : {
1097 : 248 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1098 : 248 : if (types_match (type, TREE_TYPE (captures[0]))
1099 : : )
1100 : : {
1101 : 125 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail392;
1102 : 125 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail392;
1103 : 125 : {
1104 : 125 : tree res_op0;
1105 : 125 : res_op0 = captures[1];
1106 : 125 : tree res_op1;
1107 : 125 : res_op1 = captures[2];
1108 : 125 : tree _r;
1109 : 125 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
1110 : 125 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 294, __FILE__, __LINE__, true);
1111 : 125 : return _r;
1112 : : }
1113 : : next_after_fail392:;
1114 : : }
1115 : : return NULL_TREE;
1116 : : }
1117 : :
1118 : : tree
1119 : 4 : generic_simplify_227 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1120 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1121 : : const enum tree_code ARG_UNUSED (cmp))
1122 : : {
1123 : 4 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1124 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail405;
1125 : 4 : {
1126 : 4 : tree _r;
1127 : 4 : _r = constant_boolean_node (cmp == NE_EXPR, type);
1128 : 4 : if (TREE_SIDE_EFFECTS (captures[0]))
1129 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1130 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 306, __FILE__, __LINE__, true);
1131 : : return _r;
1132 : : }
1133 : 0 : next_after_fail405:;
1134 : 0 : return NULL_TREE;
1135 : : }
1136 : :
1137 : : tree
1138 : 6088259 : generic_simplify_231 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1139 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1140 : : const enum tree_code ARG_UNUSED (cmp))
1141 : : {
1142 : 6088259 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1143 : 6088259 : if (REAL_VALUE_MINUS_ZERO (TREE_REAL_CST (captures[1]))
1144 : : )
1145 : : {
1146 : 816 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail409;
1147 : 816 : {
1148 : 816 : tree res_op0;
1149 : 816 : res_op0 = captures[0];
1150 : 816 : tree res_op1;
1151 : 816 : res_op1 = build_real (TREE_TYPE (captures[1]), dconst0);
1152 : 816 : tree _r;
1153 : 816 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
1154 : 816 : if (TREE_SIDE_EFFECTS (captures[1]))
1155 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1156 : 816 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 309, __FILE__, __LINE__, true);
1157 : 816 : return _r;
1158 : : }
1159 : 0 : next_after_fail409:;
1160 : : }
1161 : : else
1162 : : {
1163 : 6087443 : if (TREE_CODE (captures[0]) == REAL_CST
1164 : 6087443 : && REAL_VALUE_MINUS_ZERO (TREE_REAL_CST (captures[0]))
1165 : : )
1166 : : {
1167 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail410;
1168 : 0 : {
1169 : 0 : tree res_op0;
1170 : 0 : res_op0 = build_real (TREE_TYPE (captures[0]), dconst0);
1171 : 0 : tree res_op1;
1172 : 0 : res_op1 = captures[1];
1173 : 0 : tree _r;
1174 : 0 : _r = fold_build2_loc (loc, cmp, type, res_op0, res_op1);
1175 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
1176 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1177 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 310, __FILE__, __LINE__, true);
1178 : 0 : return _r;
1179 : : }
1180 : 0 : next_after_fail410:;
1181 : : }
1182 : : else
1183 : : {
1184 : 6087443 : if (REAL_VALUE_ISNAN (TREE_REAL_CST (captures[1]))
1185 : 712 : && (cmp == EQ_EXPR || cmp == NE_EXPR || !flag_trapping_math)
1186 : 283 : && !tree_expr_signaling_nan_p (captures[1])
1187 : 6087688 : && !tree_expr_maybe_signaling_nan_p (captures[0])
1188 : : )
1189 : : {
1190 : 245 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail411;
1191 : 245 : {
1192 : 245 : tree _r;
1193 : 245 : _r = constant_boolean_node (cmp == NE_EXPR, type);
1194 : 245 : if (TREE_SIDE_EFFECTS (captures[0]))
1195 : 6 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1196 : 245 : if (TREE_SIDE_EFFECTS (captures[1]))
1197 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1198 : 245 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 311, __FILE__, __LINE__, true);
1199 : 245 : return _r;
1200 : : }
1201 : 0 : next_after_fail411:;
1202 : : }
1203 : : else
1204 : : {
1205 : 6087198 : if (TREE_CODE (captures[0]) == REAL_CST
1206 : 2179 : && REAL_VALUE_ISNAN (TREE_REAL_CST (captures[0]))
1207 : 1953 : && (cmp == EQ_EXPR || cmp == NE_EXPR || !flag_trapping_math)
1208 : 0 : && !tree_expr_signaling_nan_p (captures[0])
1209 : 6087198 : && !tree_expr_signaling_nan_p (captures[1])
1210 : : )
1211 : : {
1212 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail412;
1213 : 0 : {
1214 : 0 : tree _r;
1215 : 0 : _r = constant_boolean_node (cmp == NE_EXPR, type);
1216 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
1217 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1218 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
1219 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1220 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 312, __FILE__, __LINE__, true);
1221 : 0 : return _r;
1222 : : }
1223 : 0 : next_after_fail412:;
1224 : : }
1225 : : else
1226 : : {
1227 : 6087198 : if (REAL_VALUE_ISINF (TREE_REAL_CST (captures[1]))
1228 : 6767111 : && MODE_HAS_INFINITIES (TYPE_MODE (TREE_TYPE (captures[1])))
1229 : : )
1230 : : {
1231 : 226669 : {
1232 : 226669 : REAL_VALUE_TYPE max;
1233 : 226669 : enum tree_code code = cmp;
1234 : 226669 : bool neg = REAL_VALUE_NEGATIVE (TREE_REAL_CST (captures[1]));
1235 : 226669 : if (neg)
1236 : 24622 : code = swap_tree_comparison (code);
1237 : 226669 : if (code == GT_EXPR
1238 : 226669 : && !(HONOR_NANS (captures[0]) && flag_trapping_math)
1239 : : )
1240 : : {
1241 : 8 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail413;
1242 : 8 : {
1243 : 8 : tree _r;
1244 : 8 : _r = constant_boolean_node (false, type);
1245 : 8 : if (TREE_SIDE_EFFECTS (captures[0]))
1246 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1247 : 8 : if (TREE_SIDE_EFFECTS (captures[1]))
1248 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1249 : 8 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 313, __FILE__, __LINE__, true);
1250 : 71513 : return _r;
1251 : : }
1252 : 0 : next_after_fail413:;
1253 : : }
1254 : : else
1255 : : {
1256 : 226661 : if (code == LE_EXPR
1257 : : )
1258 : : {
1259 : 11265 : if (! HONOR_NANS (captures[0])
1260 : : )
1261 : : {
1262 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail414;
1263 : 0 : {
1264 : 0 : tree _r;
1265 : 0 : _r = constant_boolean_node (true, type);
1266 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
1267 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1268 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
1269 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1270 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 314, __FILE__, __LINE__, true);
1271 : 0 : return _r;
1272 : : }
1273 : 0 : next_after_fail414:;
1274 : : }
1275 : : else
1276 : : {
1277 : 11265 : if (!flag_trapping_math
1278 : : )
1279 : : {
1280 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail415;
1281 : 2 : {
1282 : 2 : if (! tree_invariant_p (captures[0])) goto next_after_fail415;
1283 : 0 : tree res_op0;
1284 : 0 : res_op0 = unshare_expr (captures[0]);
1285 : 0 : tree res_op1;
1286 : 0 : res_op1 = captures[0];
1287 : 0 : tree _r;
1288 : 0 : _r = fold_build2_loc (loc, EQ_EXPR, type, res_op0, res_op1);
1289 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
1290 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1291 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 315, __FILE__, __LINE__, true);
1292 : 0 : return _r;
1293 : : }
1294 : 155156 : next_after_fail415:;
1295 : : }
1296 : : }
1297 : : }
1298 : : else
1299 : : {
1300 : 143627 : if ((code == EQ_EXPR && !(HONOR_NANS (captures[0]) && flag_trapping_math))
1301 : 358999 : || code == GE_EXPR
1302 : : )
1303 : : {
1304 : 146 : {
1305 : 146 : real_maxval (&max, neg, TYPE_MODE (TREE_TYPE (captures[0])));
1306 : 146 : if (neg
1307 : : )
1308 : : {
1309 : 63 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail416;
1310 : 63 : {
1311 : 63 : tree res_op0;
1312 : 63 : res_op0 = captures[0];
1313 : 63 : tree res_op1;
1314 : 63 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
1315 : 63 : tree _r;
1316 : 63 : _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
1317 : 63 : if (TREE_SIDE_EFFECTS (captures[1]))
1318 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1319 : 63 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 316, __FILE__, __LINE__, true);
1320 : 63 : return _r;
1321 : : }
1322 : 0 : next_after_fail416:;
1323 : : }
1324 : : else
1325 : : {
1326 : 83 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail417;
1327 : 83 : {
1328 : 83 : tree res_op0;
1329 : 83 : res_op0 = captures[0];
1330 : 83 : tree res_op1;
1331 : 83 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
1332 : 83 : tree _r;
1333 : 83 : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
1334 : 83 : if (TREE_SIDE_EFFECTS (captures[1]))
1335 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1336 : 83 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 317, __FILE__, __LINE__, true);
1337 : 83 : return _r;
1338 : : }
1339 : 0 : next_after_fail417:;
1340 : : }
1341 : : }
1342 : : }
1343 : : else
1344 : : {
1345 : 215250 : if (code == LT_EXPR
1346 : : )
1347 : : {
1348 : 105 : {
1349 : 105 : real_maxval (&max, neg, TYPE_MODE (TREE_TYPE (captures[0])));
1350 : 105 : if (neg
1351 : : )
1352 : : {
1353 : 28 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail418;
1354 : 28 : {
1355 : 28 : tree res_op0;
1356 : 28 : res_op0 = captures[0];
1357 : 28 : tree res_op1;
1358 : 28 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
1359 : 28 : tree _r;
1360 : 28 : _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
1361 : 28 : if (TREE_SIDE_EFFECTS (captures[1]))
1362 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1363 : 28 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 318, __FILE__, __LINE__, true);
1364 : 28 : return _r;
1365 : : }
1366 : 0 : next_after_fail418:;
1367 : : }
1368 : : else
1369 : : {
1370 : 77 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail419;
1371 : 77 : {
1372 : 77 : tree res_op0;
1373 : 77 : res_op0 = captures[0];
1374 : 77 : tree res_op1;
1375 : 77 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
1376 : 77 : tree _r;
1377 : 77 : _r = fold_build2_loc (loc, LE_EXPR, type, res_op0, res_op1);
1378 : 77 : if (TREE_SIDE_EFFECTS (captures[1]))
1379 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1380 : 77 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 319, __FILE__, __LINE__, true);
1381 : 77 : return _r;
1382 : : }
1383 : 0 : next_after_fail419:;
1384 : : }
1385 : : }
1386 : : }
1387 : : else
1388 : : {
1389 : 215145 : if (code == NE_EXPR
1390 : : )
1391 : : {
1392 : 71254 : {
1393 : 71254 : real_maxval (&max, neg, TYPE_MODE (TREE_TYPE (captures[0])));
1394 : 71254 : if (! HONOR_NANS (captures[0])
1395 : : )
1396 : : {
1397 : 0 : if (neg
1398 : : )
1399 : : {
1400 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail420;
1401 : 0 : {
1402 : 0 : tree res_op0;
1403 : 0 : res_op0 = captures[0];
1404 : 0 : tree res_op1;
1405 : 0 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
1406 : 0 : tree _r;
1407 : 0 : _r = fold_build2_loc (loc, GE_EXPR, type, res_op0, res_op1);
1408 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
1409 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1410 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 320, __FILE__, __LINE__, true);
1411 : 0 : return _r;
1412 : : }
1413 : 0 : next_after_fail420:;
1414 : : }
1415 : : else
1416 : : {
1417 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail421;
1418 : 0 : {
1419 : 0 : tree res_op0;
1420 : 0 : res_op0 = captures[0];
1421 : 0 : tree res_op1;
1422 : 0 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
1423 : 0 : tree _r;
1424 : 0 : _r = fold_build2_loc (loc, LE_EXPR, type, res_op0, res_op1);
1425 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
1426 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1427 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 321, __FILE__, __LINE__, true);
1428 : 0 : return _r;
1429 : : }
1430 : 0 : next_after_fail421:;
1431 : : }
1432 : : }
1433 : : else
1434 : : {
1435 : 71254 : if (neg
1436 : : )
1437 : : {
1438 : 568 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail422;
1439 : 568 : {
1440 : 568 : tree res_op0;
1441 : 568 : res_op0 = captures[0];
1442 : 568 : tree res_op1;
1443 : 568 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
1444 : 568 : tree _r;
1445 : 568 : _r = fold_build2_loc (loc, UNGE_EXPR, type, res_op0, res_op1);
1446 : 568 : if (TREE_SIDE_EFFECTS (captures[1]))
1447 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1448 : 568 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 322, __FILE__, __LINE__, true);
1449 : 568 : return _r;
1450 : : }
1451 : 0 : next_after_fail422:;
1452 : : }
1453 : : else
1454 : : {
1455 : 70686 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail423;
1456 : 70686 : {
1457 : 70686 : tree res_op0;
1458 : 70686 : res_op0 = captures[0];
1459 : 70686 : tree res_op1;
1460 : 70686 : res_op1 = build_real (TREE_TYPE (captures[0]), max);
1461 : 70686 : tree _r;
1462 : 70686 : _r = fold_build2_loc (loc, UNLE_EXPR, type, res_op0, res_op1);
1463 : 70686 : if (TREE_SIDE_EFFECTS (captures[1]))
1464 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1465 : 70686 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 323, __FILE__, __LINE__, true);
1466 : 70686 : return _r;
1467 : : }
1468 : 0 : next_after_fail423:;
1469 : : }
1470 : : }
1471 : : }
1472 : : }
1473 : : }
1474 : : }
1475 : : }
1476 : : }
1477 : : }
1478 : : }
1479 : : }
1480 : : }
1481 : : }
1482 : : }
1483 : : return NULL_TREE;
1484 : : }
1485 : :
1486 : : tree
1487 : 30252 : generic_simplify_274 (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 (cmp))
1490 : : {
1491 : 30252 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1492 : 30252 : if (cmp != NE_EXPR
1493 : 25796 : || ! FLOAT_TYPE_P (TREE_TYPE (captures[0]))
1494 : 39868 : || ! tree_expr_maybe_nan_p (captures[0])
1495 : : )
1496 : : {
1497 : 26470 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail534;
1498 : 26470 : {
1499 : 26470 : tree _r;
1500 : 26470 : _r = constant_boolean_node (false, type);
1501 : 26470 : if (TREE_SIDE_EFFECTS (captures[0]))
1502 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1503 : 26470 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 417, __FILE__, __LINE__, true);
1504 : 26470 : return _r;
1505 : : }
1506 : 0 : next_after_fail534:;
1507 : : }
1508 : : return NULL_TREE;
1509 : : }
1510 : :
1511 : : tree
1512 : 0 : generic_simplify_280 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1513 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1514 : : const combined_fn ARG_UNUSED (COPYSIGN_ALL))
1515 : : {
1516 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1517 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail540;
1518 : 0 : {
1519 : 0 : tree res_op0;
1520 : 0 : res_op0 = captures[0];
1521 : 0 : tree _r;
1522 : 0 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
1523 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
1524 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1525 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 423, __FILE__, __LINE__, true);
1526 : : return _r;
1527 : : }
1528 : 0 : next_after_fail540:;
1529 : 0 : return NULL_TREE;
1530 : : }
1531 : :
1532 : : tree
1533 : 1 : generic_simplify_288 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1534 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1535 : : const enum tree_code ARG_UNUSED (div))
1536 : : {
1537 : 1 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1538 : 0 : if ((INTEGRAL_TYPE_P (type) || VECTOR_INTEGER_TYPE_P (type))
1539 : 1 : && TYPE_OVERFLOW_UNDEFINED (type)
1540 : 1 : && !integer_zerop (captures[0])
1541 : 2 : && (!flag_non_call_exceptions || tree_expr_nonzero_p (captures[0]))
1542 : : )
1543 : : {
1544 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail550;
1545 : 1 : {
1546 : 1 : tree _r;
1547 : 1 : _r = build_minus_one_cst (type);
1548 : 1 : if (TREE_SIDE_EFFECTS (captures[0]))
1549 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1550 : 1 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 431, __FILE__, __LINE__, true);
1551 : 1 : return _r;
1552 : : }
1553 : 0 : next_after_fail550:;
1554 : : }
1555 : : return NULL_TREE;
1556 : : }
1557 : :
1558 : : tree
1559 : 184234 : generic_simplify_295 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1560 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1561 : : const enum tree_code ARG_UNUSED (mod))
1562 : : {
1563 : 184234 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1564 : 184234 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail558;
1565 : 184234 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail558;
1566 : 184234 : {
1567 : 184234 : tree _r;
1568 : 184234 : _r = build_zero_cst (type);
1569 : 184234 : if (TREE_SIDE_EFFECTS (captures[0]))
1570 : 51 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1571 : 184234 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 439, __FILE__, __LINE__, true);
1572 : : return _r;
1573 : : }
1574 : : next_after_fail558:;
1575 : : return NULL_TREE;
1576 : : }
1577 : :
1578 : : tree
1579 : 2 : generic_simplify_301 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1580 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1581 : : {
1582 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1583 : 0 : if (FLOAT_TYPE_P (type)
1584 : 2 : && ! HONOR_NANS (type)
1585 : 2 : && ! HONOR_INFINITIES (type)
1586 : : )
1587 : : {
1588 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail564;
1589 : 0 : {
1590 : 0 : tree _r;
1591 : 0 : _r = build_minus_one_cst (type);
1592 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
1593 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
1594 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 445, __FILE__, __LINE__, true);
1595 : 0 : return _r;
1596 : : }
1597 : 0 : next_after_fail564:;
1598 : : }
1599 : : return NULL_TREE;
1600 : : }
1601 : :
1602 : : tree
1603 : 6 : generic_simplify_308 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1604 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1605 : : const combined_fn ARG_UNUSED (TAN),
1606 : : const combined_fn ARG_UNUSED (SIN),
1607 : : const combined_fn ARG_UNUSED (COS))
1608 : : {
1609 : 6 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1610 : 6 : if (flag_unsafe_math_optimizations && canonicalize_math_p ()
1611 : : )
1612 : : {
1613 : 6 : if (! HONOR_NANS (captures[1])
1614 : 6 : && ! HONOR_INFINITIES (captures[1])
1615 : : )
1616 : : {
1617 : 6 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail573;
1618 : 6 : {
1619 : 6 : tree res_op0;
1620 : 6 : res_op0 = build_one_cst (type);
1621 : 6 : tree res_op1;
1622 : 6 : {
1623 : 6 : tree _o1[1], _r1;
1624 : 6 : _o1[0] = captures[1];
1625 : 6 : _r1 = maybe_build_call_expr_loc (loc, COS, TREE_TYPE (_o1[0]), 1, _o1[0]);
1626 : 6 : if (!_r1)
1627 : 0 : goto next_after_fail573;
1628 : 6 : res_op1 = _r1;
1629 : : }
1630 : 6 : tree _r;
1631 : 6 : _r = fold_build2_loc (loc, RDIV_EXPR, type, res_op0, res_op1);
1632 : 6 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 454, __FILE__, __LINE__, true);
1633 : 6 : return _r;
1634 : : }
1635 : : next_after_fail573:;
1636 : : }
1637 : : }
1638 : : return NULL_TREE;
1639 : : }
1640 : :
1641 : : tree
1642 : 372 : generic_simplify_317 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1643 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1644 : : const enum tree_code ARG_UNUSED (op))
1645 : : {
1646 : 372 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1647 : 744 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
1648 : 744 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
1649 : : )
1650 : : {
1651 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail584;
1652 : 0 : {
1653 : 0 : tree res_op0;
1654 : 0 : res_op0 = captures[0];
1655 : 0 : tree res_op1;
1656 : 0 : res_op1 = captures[2];
1657 : 0 : tree _r;
1658 : 0 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
1659 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
1660 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
1661 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 465, __FILE__, __LINE__, true);
1662 : 0 : return _r;
1663 : : }
1664 : 0 : next_after_fail584:;
1665 : : }
1666 : : return NULL_TREE;
1667 : : }
1668 : :
1669 : : tree
1670 : 35931 : generic_simplify_323 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1671 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1672 : : const enum tree_code ARG_UNUSED (cmp),
1673 : : const enum tree_code ARG_UNUSED (out))
1674 : : {
1675 : 35931 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1676 : 35931 : if (TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[1]))
1677 : 35912 : && types_match (TREE_TYPE (captures[3]), TREE_TYPE (captures[0]))
1678 : 35912 : && tree_nop_conversion_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[3]))
1679 : 35931 : && wi::to_wide (captures[4]) != 0
1680 : 0 : && single_use (captures[1])
1681 : : )
1682 : : {
1683 : 35912 : {
1684 : 35912 : unsigned int prec = TYPE_PRECISION (TREE_TYPE (captures[3]));
1685 : 35912 : signop sign = TYPE_SIGN (TREE_TYPE (captures[3]));
1686 : 35912 : if (TREE_SIDE_EFFECTS (captures[4])) goto next_after_fail591;
1687 : 35912 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail591;
1688 : 35912 : {
1689 : 35912 : tree res_op0;
1690 : 35912 : res_op0 = captures[3];
1691 : 35912 : tree res_op1;
1692 : 35912 : res_op1 = wide_int_to_tree (TREE_TYPE (captures[3]),
1693 : 35912 : wi::max_value (prec, sign)
1694 : 107736 : - wi::to_wide (captures[4]));
1695 : 35912 : tree _r;
1696 : 35912 : _r = fold_build2_loc (loc, out, type, res_op0, res_op1);
1697 : 35912 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 472, __FILE__, __LINE__, true);
1698 : 35912 : return _r;
1699 : : }
1700 : : next_after_fail591:;
1701 : : }
1702 : : }
1703 : : return NULL_TREE;
1704 : : }
1705 : :
1706 : : tree
1707 : 960 : generic_simplify_333 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1708 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1709 : : const enum tree_code ARG_UNUSED (cmp),
1710 : : const enum tree_code ARG_UNUSED (out))
1711 : : {
1712 : 960 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1713 : 960 : if (TYPE_UNSIGNED (TREE_TYPE (captures[2])) && !VECTOR_TYPE_P (TREE_TYPE (captures[2]))
1714 : : )
1715 : : {
1716 : 942 : {
1717 : 942 : tree t = TREE_TYPE (captures[2]), cpx = build_complex_type (t);
1718 : 942 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail633;
1719 : 930 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail633;
1720 : 930 : {
1721 : 930 : tree res_op0;
1722 : 930 : {
1723 : 930 : tree _o1[1], _r1;
1724 : 930 : {
1725 : 930 : tree _o2[2], _r2;
1726 : 930 : _o2[0] = captures[2];
1727 : 930 : _o2[1] = captures[1];
1728 : 930 : _r2 = maybe_build_call_expr_loc (loc, CFN_MUL_OVERFLOW, cpx, 2, _o2[0], _o2[1]);
1729 : 930 : if (!_r2)
1730 : 0 : goto next_after_fail633;
1731 : 930 : _o1[0] = _r2;
1732 : : }
1733 : 930 : _r1 = fold_build1_loc (loc, IMAGPART_EXPR, TREE_TYPE (TREE_TYPE (_o1[0])), _o1[0]);
1734 : 930 : res_op0 = _r1;
1735 : : }
1736 : 930 : tree res_op1;
1737 : 930 : res_op1 = build_zero_cst (t);
1738 : 930 : tree _r;
1739 : 930 : _r = fold_build2_loc (loc, out, type, res_op0, res_op1);
1740 : 930 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 497, __FILE__, __LINE__, true);
1741 : 930 : return _r;
1742 : : }
1743 : : next_after_fail633:;
1744 : : }
1745 : : }
1746 : : return NULL_TREE;
1747 : : }
1748 : :
1749 : : tree
1750 : 11253 : generic_simplify_340 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1751 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1752 : : const enum tree_code ARG_UNUSED (cmp),
1753 : : const enum tree_code ARG_UNUSED (eqcmp))
1754 : : {
1755 : 11253 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1756 : 11253 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
1757 : : )
1758 : : {
1759 : 11253 : {
1760 : 11253 : tree ty = TREE_TYPE (captures[0]);
1761 : 11253 : unsigned prec = TYPE_PRECISION (ty);
1762 : 11253 : wide_int mask = wi::to_wide (captures[2], prec);
1763 : 11253 : wide_int rhs = wi::to_wide (captures[3], prec);
1764 : 11253 : signop sgn = TYPE_SIGN (ty);
1765 : 31827 : if ((mask & (mask + 1)) == 0 && wi::gt_p (rhs, 0, sgn)
1766 : 49698 : && (rhs & (rhs + 1)) == 0 && wi::ge_p (mask, rhs, sgn)
1767 : : )
1768 : : {
1769 : 564 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail646;
1770 : 564 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail646;
1771 : 564 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail646;
1772 : 564 : {
1773 : 564 : tree res_op0;
1774 : 564 : {
1775 : 564 : tree _o1[2], _r1;
1776 : 564 : _o1[0] = captures[1];
1777 : 564 : _o1[1] = wide_int_to_tree (ty, mask - rhs);
1778 : 564 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1779 : 564 : res_op0 = _r1;
1780 : : }
1781 : 564 : tree res_op1;
1782 : 564 : res_op1 = build_zero_cst (ty);
1783 : 564 : tree _r;
1784 : 564 : _r = fold_build2_loc (loc, eqcmp, type, res_op0, res_op1);
1785 : 564 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 510, __FILE__, __LINE__, true);
1786 : 564 : return _r;
1787 : : }
1788 : 10689 : next_after_fail646:;
1789 : : }
1790 : 11253 : }
1791 : : }
1792 : : return NULL_TREE;
1793 : : }
1794 : :
1795 : : tree
1796 : 401 : generic_simplify_347 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1797 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
1798 : : const enum tree_code ARG_UNUSED (shift),
1799 : : const enum tree_code ARG_UNUSED (mod))
1800 : : {
1801 : 401 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1802 : 401 : if (integer_pow2p (captures[3]) && tree_int_cst_sgn (captures[3]) > 0
1803 : : )
1804 : : {
1805 : 391 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail657;
1806 : 391 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail657;
1807 : 391 : {
1808 : 391 : tree res_op0;
1809 : 391 : res_op0 = captures[0];
1810 : 391 : tree res_op1;
1811 : 391 : {
1812 : 391 : tree _o1[2], _r1;
1813 : 391 : _o1[0] = captures[1];
1814 : 391 : {
1815 : 391 : tree _o2[2], _r2;
1816 : 391 : _o2[0] = captures[2];
1817 : 391 : _o2[1] = build_int_cst (TREE_TYPE (captures[2]),
1818 : 391 : 1);
1819 : 391 : _r2 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
1820 : 391 : _o1[1] = _r2;
1821 : : }
1822 : 391 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1823 : 391 : res_op1 = _r1;
1824 : : }
1825 : 391 : tree _r;
1826 : 391 : _r = fold_build2_loc (loc, shift, type, res_op0, res_op1);
1827 : 391 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 517, __FILE__, __LINE__, true);
1828 : 391 : return _r;
1829 : : }
1830 : : next_after_fail657:;
1831 : : }
1832 : : return NULL_TREE;
1833 : : }
1834 : :
1835 : : tree
1836 : 66 : generic_simplify_357 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1837 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
1838 : : {
1839 : 66 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1840 : 66 : if (wi::ltu_p (wi::to_wide (captures[1]), element_precision (type))
1841 : : )
1842 : : {
1843 : 66 : if (TYPE_UNSIGNED (type)
1844 : : )
1845 : : {
1846 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail670;
1847 : 2 : {
1848 : 2 : tree res_op0;
1849 : 2 : {
1850 : 2 : tree _o1[1], _r1;
1851 : 2 : _o1[0] = captures[0];
1852 : 2 : if (TREE_TYPE (_o1[0]) != type)
1853 : : {
1854 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1855 : : }
1856 : : else
1857 : : _r1 = _o1[0];
1858 : 2 : res_op0 = _r1;
1859 : : }
1860 : 2 : tree res_op1;
1861 : 2 : {
1862 : 2 : tree _o1[2], _r1;
1863 : 2 : _o1[0] = build_minus_one_cst (type);
1864 : 2 : _o1[1] = captures[1];
1865 : 2 : _r1 = fold_build2_loc (loc, RSHIFT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1866 : 2 : res_op1 = _r1;
1867 : : }
1868 : 2 : tree _r;
1869 : 2 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
1870 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 528, __FILE__, __LINE__, true);
1871 : 2 : return _r;
1872 : : }
1873 : 0 : next_after_fail670:;
1874 : : }
1875 : : else
1876 : : {
1877 : 64 : if (INTEGRAL_TYPE_P (type)
1878 : : )
1879 : : {
1880 : 64 : {
1881 : 64 : int width = element_precision (type) - tree_to_uhwi (captures[1]);
1882 : 64 : tree stype = NULL_TREE;
1883 : 128 : if (width <= MAX_FIXED_MODE_SIZE)
1884 : 64 : stype = build_nonstandard_integer_type (width, 0);
1885 : 64 : if (stype && (width == 1 || type_has_mode_precision_p (stype))
1886 : : )
1887 : : {
1888 : 25 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail671;
1889 : 25 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail671;
1890 : 25 : {
1891 : 25 : tree res_op0;
1892 : 25 : {
1893 : 25 : tree _o1[1], _r1;
1894 : 25 : _o1[0] = captures[0];
1895 : 25 : if (TREE_TYPE (_o1[0]) != stype)
1896 : : {
1897 : 25 : _r1 = fold_build1_loc (loc, NOP_EXPR, stype, _o1[0]);
1898 : : }
1899 : : else
1900 : : _r1 = _o1[0];
1901 : 25 : res_op0 = _r1;
1902 : : }
1903 : 25 : tree _r;
1904 : 25 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1905 : 25 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 529, __FILE__, __LINE__, true);
1906 : 25 : return _r;
1907 : : }
1908 : : next_after_fail671:;
1909 : : }
1910 : : }
1911 : : }
1912 : : }
1913 : : }
1914 : : return NULL_TREE;
1915 : : }
1916 : :
1917 : : tree
1918 : 16539634 : generic_simplify_365 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
1919 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
1920 : : const enum tree_code ARG_UNUSED (op))
1921 : : {
1922 : 16539634 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
1923 : 16539634 : if (INTEGRAL_TYPE_P (type)
1924 : 16249263 : && op != MULT_EXPR
1925 : 16249263 : && op != RDIV_EXPR
1926 : 9042928 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
1927 : 9042928 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
1928 : 9042928 : && type_has_mode_precision_p (TREE_TYPE (captures[2]))
1929 : 9041854 : && type_has_mode_precision_p (TREE_TYPE (captures[4]))
1930 : 9041854 : && type_has_mode_precision_p (type)
1931 : 9014171 : && TYPE_PRECISION (TREE_TYPE (captures[1])) > TYPE_PRECISION (TREE_TYPE (captures[2]))
1932 : 0 : && types_match (captures[2], type)
1933 : 16539634 : && (types_match (captures[2], captures[4])
1934 : 0 : || poly_int_tree_p (captures[3]))
1935 : : )
1936 : : {
1937 : 0 : if (TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[2]))
1938 : : )
1939 : : {
1940 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail692;
1941 : 0 : {
1942 : 0 : tree res_op0;
1943 : 0 : res_op0 = captures[2];
1944 : 0 : tree res_op1;
1945 : 0 : {
1946 : 0 : tree _o1[1], _r1;
1947 : 0 : _o1[0] = captures[4];
1948 : 0 : if (TREE_TYPE (_o1[0]) != type)
1949 : : {
1950 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
1951 : : }
1952 : : else
1953 : : _r1 = _o1[0];
1954 : 0 : res_op1 = _r1;
1955 : : }
1956 : 0 : tree _r;
1957 : 0 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
1958 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 538, __FILE__, __LINE__, true);
1959 : 0 : return _r;
1960 : : }
1961 : 0 : next_after_fail692:;
1962 : : }
1963 : : else
1964 : : {
1965 : 0 : {
1966 : 0 : tree utype = unsigned_type_for (TREE_TYPE (captures[2]));
1967 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail693;
1968 : 0 : {
1969 : 0 : tree res_op0;
1970 : 0 : {
1971 : 0 : tree _o1[2], _r1;
1972 : 0 : {
1973 : 0 : tree _o2[1], _r2;
1974 : 0 : _o2[0] = captures[2];
1975 : 0 : if (TREE_TYPE (_o2[0]) != utype)
1976 : : {
1977 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
1978 : : }
1979 : : else
1980 : : _r2 = _o2[0];
1981 : 0 : _o1[0] = _r2;
1982 : : }
1983 : 0 : {
1984 : 0 : tree _o2[1], _r2;
1985 : 0 : _o2[0] = captures[4];
1986 : 0 : if (TREE_TYPE (_o2[0]) != utype)
1987 : : {
1988 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
1989 : : }
1990 : : else
1991 : : _r2 = _o2[0];
1992 : 0 : _o1[1] = _r2;
1993 : : }
1994 : 0 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
1995 : 0 : res_op0 = _r1;
1996 : : }
1997 : 0 : tree _r;
1998 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
1999 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 539, __FILE__, __LINE__, true);
2000 : 0 : return _r;
2001 : : }
2002 : 0 : next_after_fail693:;
2003 : : }
2004 : : }
2005 : : }
2006 : : else
2007 : : {
2008 : 16488019 : if (FLOAT_TYPE_P (type)
2009 : 16591249 : && DECIMAL_FLOAT_TYPE_P (TREE_TYPE (captures[0]))
2010 : 51615 : == DECIMAL_FLOAT_TYPE_P (type)
2011 : : )
2012 : : {
2013 : 51568 : {
2014 : 51568 : tree arg0 = strip_float_extensions (captures[2]);
2015 : 51568 : tree arg1 = strip_float_extensions (captures[4]);
2016 : 51568 : tree itype = TREE_TYPE (captures[0]);
2017 : 51568 : tree ty1 = TREE_TYPE (arg0);
2018 : 51568 : tree ty2 = TREE_TYPE (arg1);
2019 : 51568 : enum tree_code code = TREE_CODE (itype);
2020 : 0 : if (FLOAT_TYPE_P (ty1)
2021 : 51568 : && FLOAT_TYPE_P (ty2)
2022 : : )
2023 : : {
2024 : 51568 : {
2025 : 51568 : tree newtype = type;
2026 : 51568 : if (TYPE_MODE (ty1) == SDmode
2027 : 51275 : || TYPE_MODE (ty2) == SDmode
2028 : 102843 : || TYPE_MODE (type) == SDmode)
2029 : 312 : newtype = dfloat32_type_node;
2030 : 51568 : if (TYPE_MODE (ty1) == DDmode
2031 : 51405 : || TYPE_MODE (ty2) == DDmode
2032 : 102834 : || TYPE_MODE (type) == DDmode)
2033 : 304 : newtype = dfloat64_type_node;
2034 : 51568 : if (TYPE_MODE (ty1) == TDmode
2035 : 51567 : || TYPE_MODE (ty2) == TDmode
2036 : 102859 : || TYPE_MODE (type) == TDmode)
2037 : 295 : newtype = dfloat128_type_node;
2038 : 51568 : if ((newtype == dfloat32_type_node
2039 : 51565 : || newtype == dfloat64_type_node
2040 : 51406 : || newtype == dfloat128_type_node)
2041 : 457 : && newtype == type
2042 : 51579 : && types_match (newtype, type)
2043 : : )
2044 : : {
2045 : 11 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail694;
2046 : 5 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail694;
2047 : 5 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail694;
2048 : 5 : {
2049 : 5 : tree res_op0;
2050 : 5 : {
2051 : 5 : tree _o1[1], _r1;
2052 : 5 : _o1[0] = captures[2];
2053 : 5 : if (TREE_TYPE (_o1[0]) != newtype)
2054 : : {
2055 : 5 : _r1 = fold_build1_loc (loc, NOP_EXPR, newtype, _o1[0]);
2056 : : }
2057 : : else
2058 : : _r1 = _o1[0];
2059 : 5 : res_op0 = _r1;
2060 : : }
2061 : 5 : tree res_op1;
2062 : 5 : {
2063 : 5 : tree _o1[1], _r1;
2064 : 5 : _o1[0] = captures[4];
2065 : 5 : if (TREE_TYPE (_o1[0]) != newtype)
2066 : : {
2067 : 5 : _r1 = fold_build1_loc (loc, NOP_EXPR, newtype, _o1[0]);
2068 : : }
2069 : : else
2070 : : _r1 = _o1[0];
2071 : 5 : res_op1 = _r1;
2072 : : }
2073 : 5 : tree _r;
2074 : 5 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
2075 : 5 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 540, __FILE__, __LINE__, true);
2076 : 5 : return _r;
2077 : : }
2078 : : next_after_fail694:;
2079 : : }
2080 : : else
2081 : : {
2082 : 51557 : {
2083 : 51557 : if (element_precision (ty1) > element_precision (newtype))
2084 : 12254 : newtype = ty1;
2085 : 51557 : if (element_precision (ty2) > element_precision (newtype))
2086 : 4987 : newtype = ty2;
2087 : 51557 : if (element_precision (newtype) < element_precision (itype)
2088 : 15414 : && (!VECTOR_MODE_P (TYPE_MODE (newtype))
2089 : 0 : || target_supports_op_p (newtype, op, optab_default))
2090 : 15414 : && (flag_unsafe_math_optimizations
2091 : 15414 : || (element_precision (newtype) == element_precision (type)
2092 : 15386 : && real_can_shorten_arithmetic (element_mode (itype),
2093 : : element_mode (type))
2094 : 4937 : && !excess_precision_type (newtype)))
2095 : 51697 : && !types_match (itype, newtype)
2096 : : )
2097 : : {
2098 : 140 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail695;
2099 : 139 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail695;
2100 : 132 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail695;
2101 : 132 : {
2102 : 132 : tree res_op0;
2103 : 132 : {
2104 : 132 : tree _o1[2], _r1;
2105 : 132 : {
2106 : 132 : tree _o2[1], _r2;
2107 : 132 : _o2[0] = captures[2];
2108 : 132 : if (TREE_TYPE (_o2[0]) != newtype)
2109 : : {
2110 : 132 : _r2 = fold_build1_loc (loc, NOP_EXPR, newtype, _o2[0]);
2111 : : }
2112 : : else
2113 : : _r2 = _o2[0];
2114 : 132 : _o1[0] = _r2;
2115 : : }
2116 : 132 : {
2117 : 132 : tree _o2[1], _r2;
2118 : 132 : _o2[0] = captures[4];
2119 : 132 : if (TREE_TYPE (_o2[0]) != newtype)
2120 : : {
2121 : 132 : _r2 = fold_build1_loc (loc, NOP_EXPR, newtype, _o2[0]);
2122 : : }
2123 : : else
2124 : : _r2 = _o2[0];
2125 : 132 : _o1[1] = _r2;
2126 : : }
2127 : 132 : _r1 = fold_build2_loc (loc, op, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2128 : 132 : res_op0 = _r1;
2129 : : }
2130 : 132 : tree _r;
2131 : 132 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
2132 : 132 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 541, __FILE__, __LINE__, true);
2133 : 132 : return _r;
2134 : : }
2135 : : next_after_fail695:;
2136 : : }
2137 : : }
2138 : : }
2139 : : }
2140 : : }
2141 : : }
2142 : : }
2143 : : }
2144 : : return NULL_TREE;
2145 : : }
2146 : :
2147 : : tree
2148 : 0 : generic_simplify_395 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2149 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2150 : : const enum tree_code ARG_UNUSED (cmp))
2151 : : {
2152 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2153 : 0 : if (!canonicalize_math_p ()
2154 : : )
2155 : : {
2156 : 0 : if (INTEGRAL_TYPE_P (type)
2157 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
2158 : : )
2159 : : {
2160 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail725;
2161 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail725;
2162 : 0 : {
2163 : 0 : tree res_op0;
2164 : 0 : res_op0 = captures[0];
2165 : 0 : tree res_op1;
2166 : 0 : res_op1 = captures[3];
2167 : 0 : tree res_op2;
2168 : 0 : res_op2 = build_zero_cst (type);
2169 : 0 : tree _r;
2170 : 0 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
2171 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 570, __FILE__, __LINE__, true);
2172 : 0 : return _r;
2173 : : }
2174 : : next_after_fail725:;
2175 : : }
2176 : : }
2177 : : return NULL_TREE;
2178 : : }
2179 : :
2180 : : tree
2181 : 0 : generic_simplify_402 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2182 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2183 : : const enum tree_code ARG_UNUSED (eqne))
2184 : : {
2185 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2186 : 0 : if (eqne == EQ_EXPR
2187 : : )
2188 : : {
2189 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail737;
2190 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail737;
2191 : 0 : {
2192 : 0 : tree _r;
2193 : 0 : _r = constant_boolean_node (false, type);
2194 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
2195 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2196 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 578, __FILE__, __LINE__, true);
2197 : 0 : return _r;
2198 : : }
2199 : : next_after_fail737:;
2200 : : }
2201 : : else
2202 : : {
2203 : 0 : if (eqne == NE_EXPR
2204 : : )
2205 : : {
2206 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail738;
2207 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail738;
2208 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail738;
2209 : 0 : {
2210 : 0 : tree _r;
2211 : 0 : _r = captures[0];
2212 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 579, __FILE__, __LINE__, true);
2213 : 0 : return _r;
2214 : : }
2215 : : next_after_fail738:;
2216 : : }
2217 : : }
2218 : : return NULL_TREE;
2219 : : }
2220 : :
2221 : : tree
2222 : 0 : generic_simplify_408 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2223 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
2224 : : {
2225 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2226 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail764;
2227 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail764;
2228 : 0 : {
2229 : 0 : tree _r;
2230 : 0 : _r = captures[2];
2231 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2232 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2233 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 596, __FILE__, __LINE__, true);
2234 : : return _r;
2235 : : }
2236 : : next_after_fail764:;
2237 : : return NULL_TREE;
2238 : : }
2239 : :
2240 : : tree
2241 : 56 : generic_simplify_412 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2242 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2243 : : const enum tree_code ARG_UNUSED (code2),
2244 : : const enum tree_code ARG_UNUSED (code1))
2245 : : {
2246 : 56 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2247 : 56 : if ((TREE_CODE (captures[2]) == INTEGER_CST
2248 : 6 : && TREE_CODE (captures[5]) == INTEGER_CST)
2249 : 56 : || ((INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
2250 : 0 : || POINTER_TYPE_P (TREE_TYPE (captures[2])))
2251 : 50 : && bitwise_equal_p (captures[2], captures[5]))
2252 : : )
2253 : : {
2254 : 6 : {
2255 : 6 : bool one_before = false;
2256 : 6 : bool one_after = false;
2257 : 6 : int cmp = 0;
2258 : 6 : bool allbits = true;
2259 : 6 : if (TREE_CODE (captures[2]) == INTEGER_CST
2260 : 6 : && TREE_CODE (captures[5]) == INTEGER_CST)
2261 : : {
2262 : 6 : allbits = TYPE_PRECISION (TREE_TYPE (captures[2])) <= TYPE_PRECISION (TREE_TYPE (captures[5]));
2263 : 6 : auto t1 = wi::to_wide (fold_convert (TREE_TYPE (captures[5]), captures[2]));
2264 : 6 : auto t2 = wi::to_wide (captures[5]);
2265 : 6 : cmp = wi::cmp (t1, t2, TYPE_SIGN (TREE_TYPE (captures[5])));
2266 : 6 : if (cmp < 0
2267 : 6 : && t1 == t2 - 1)
2268 : : one_before = true;
2269 : 6 : if (cmp > 0
2270 : 6 : && t1 == t2 + 1)
2271 : : one_after = true;
2272 : : }
2273 : 6 : bool val;
2274 : 6 : switch (code2)
2275 : : {
2276 : 0 : case EQ_EXPR: val = (cmp == 0); break;
2277 : 2 : case NE_EXPR: val = (cmp != 0); break;
2278 : 0 : case LT_EXPR: val = (cmp < 0); break;
2279 : 4 : case GT_EXPR: val = (cmp > 0); break;
2280 : 0 : case LE_EXPR: val = (cmp <= 0); break;
2281 : 0 : case GE_EXPR: val = (cmp >= 0); break;
2282 : 0 : default: gcc_unreachable ();
2283 : : }
2284 : 6 : if (code1 == EQ_EXPR && val
2285 : : )
2286 : : {
2287 : 0 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail775;
2288 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail775;
2289 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail775;
2290 : 0 : {
2291 : 0 : tree _r;
2292 : 0 : _r = captures[0];
2293 : 0 : if (TREE_SIDE_EFFECTS (captures[4]))
2294 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[4]), _r);
2295 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 582, __FILE__, __LINE__, true);
2296 : 0 : return _r;
2297 : : }
2298 : : next_after_fail775:;
2299 : : }
2300 : : else
2301 : : {
2302 : 6 : if (code1 == EQ_EXPR && !val
2303 : : )
2304 : : {
2305 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail776;
2306 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail776;
2307 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail776;
2308 : 0 : {
2309 : 0 : tree _r;
2310 : 0 : _r = constant_boolean_node (false, type);
2311 : 0 : if (TREE_SIDE_EFFECTS (captures[4]))
2312 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[4]), _r);
2313 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 583, __FILE__, __LINE__, true);
2314 : 0 : return _r;
2315 : : }
2316 : : next_after_fail776:;
2317 : : }
2318 : : else
2319 : : {
2320 : 6 : if (code1 == NE_EXPR && !val && allbits
2321 : : )
2322 : : {
2323 : 0 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail777;
2324 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail777;
2325 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail777;
2326 : 0 : {
2327 : 0 : tree _r;
2328 : 0 : _r = captures[3];
2329 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 584, __FILE__, __LINE__, true);
2330 : 0 : return _r;
2331 : : }
2332 : : next_after_fail777:;
2333 : : }
2334 : : else
2335 : : {
2336 : 6 : if (code1 == NE_EXPR
2337 : 6 : && code2 == GE_EXPR
2338 : 0 : && cmp == 0
2339 : 0 : && allbits
2340 : : )
2341 : : {
2342 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail778;
2343 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail778;
2344 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail778;
2345 : 0 : {
2346 : 0 : tree res_op0;
2347 : 0 : res_op0 = captures[4];
2348 : 0 : tree res_op1;
2349 : 0 : {
2350 : 0 : tree _o1[1], _r1;
2351 : 0 : _o1[0] = captures[2];
2352 : 0 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
2353 : : {
2354 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
2355 : : }
2356 : : else
2357 : : _r1 = _o1[0];
2358 : 0 : res_op1 = _r1;
2359 : : }
2360 : 0 : tree _r;
2361 : 0 : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
2362 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 585, __FILE__, __LINE__, true);
2363 : 0 : return _r;
2364 : : }
2365 : : next_after_fail778:;
2366 : : }
2367 : : else
2368 : : {
2369 : 6 : if (code1 == NE_EXPR
2370 : 6 : && code2 == LE_EXPR
2371 : 0 : && cmp == 0
2372 : 0 : && allbits
2373 : : )
2374 : : {
2375 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail779;
2376 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail779;
2377 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail779;
2378 : 0 : {
2379 : 0 : tree res_op0;
2380 : 0 : res_op0 = captures[4];
2381 : 0 : tree res_op1;
2382 : 0 : {
2383 : 0 : tree _o1[1], _r1;
2384 : 0 : _o1[0] = captures[2];
2385 : 0 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
2386 : : {
2387 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
2388 : : }
2389 : : else
2390 : : _r1 = _o1[0];
2391 : 0 : res_op1 = _r1;
2392 : : }
2393 : 0 : tree _r;
2394 : 0 : _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
2395 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 586, __FILE__, __LINE__, true);
2396 : 0 : return _r;
2397 : : }
2398 : : next_after_fail779:;
2399 : : }
2400 : : else
2401 : : {
2402 : 6 : if (code1 == NE_EXPR
2403 : 6 : && code2 == GT_EXPR
2404 : : && one_after
2405 : 4 : && allbits
2406 : : )
2407 : : {
2408 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail780;
2409 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail780;
2410 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail780;
2411 : 0 : {
2412 : 0 : tree res_op0;
2413 : 0 : res_op0 = captures[4];
2414 : 0 : tree res_op1;
2415 : 0 : {
2416 : 0 : tree _o1[1], _r1;
2417 : 0 : _o1[0] = captures[2];
2418 : 0 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
2419 : : {
2420 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
2421 : : }
2422 : : else
2423 : : _r1 = _o1[0];
2424 : 0 : res_op1 = _r1;
2425 : : }
2426 : 0 : tree _r;
2427 : 0 : _r = fold_build2_loc (loc, GT_EXPR, type, res_op0, res_op1);
2428 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 587, __FILE__, __LINE__, true);
2429 : 0 : return _r;
2430 : : }
2431 : : next_after_fail780:;
2432 : : }
2433 : : else
2434 : : {
2435 : 6 : if (code1 == NE_EXPR
2436 : 6 : && code2 == LT_EXPR
2437 : : && one_before
2438 : 0 : && allbits
2439 : : )
2440 : : {
2441 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail781;
2442 : 0 : if (TREE_SIDE_EFFECTS (captures[5])) goto next_after_fail781;
2443 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail781;
2444 : 0 : {
2445 : 0 : tree res_op0;
2446 : 0 : res_op0 = captures[4];
2447 : 0 : tree res_op1;
2448 : 0 : {
2449 : 0 : tree _o1[1], _r1;
2450 : 0 : _o1[0] = captures[2];
2451 : 0 : if (TREE_TYPE (_o1[0]) != TREE_TYPE (res_op0))
2452 : : {
2453 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, TREE_TYPE (res_op0), _o1[0]);
2454 : : }
2455 : : else
2456 : : _r1 = _o1[0];
2457 : 0 : res_op1 = _r1;
2458 : : }
2459 : 0 : tree _r;
2460 : 0 : _r = fold_build2_loc (loc, LT_EXPR, type, res_op0, res_op1);
2461 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 588, __FILE__, __LINE__, true);
2462 : 0 : return _r;
2463 : : }
2464 : : next_after_fail781:;
2465 : : }
2466 : : }
2467 : : }
2468 : : }
2469 : : }
2470 : : }
2471 : : }
2472 : : }
2473 : : }
2474 : : return NULL_TREE;
2475 : : }
2476 : :
2477 : : tree
2478 : 4 : generic_simplify_446 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2479 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
2480 : : {
2481 : 4 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2482 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail822;
2483 : 4 : {
2484 : 4 : tree _r;
2485 : 4 : _r = captures[1];
2486 : 4 : if (TREE_SIDE_EFFECTS (captures[0]))
2487 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2488 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 625, __FILE__, __LINE__, true);
2489 : : return _r;
2490 : : }
2491 : 0 : next_after_fail822:;
2492 : 0 : return NULL_TREE;
2493 : : }
2494 : :
2495 : : tree
2496 : 2 : generic_simplify_455 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2497 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures))
2498 : : {
2499 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2500 : 2 : if (TREE_CODE (type) != COMPLEX_TYPE
2501 : 2 : && (! ANY_INTEGRAL_TYPE_P (type)
2502 : 1 : || TYPE_OVERFLOW_UNDEFINED (type))
2503 : : )
2504 : : {
2505 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail843;
2506 : 2 : {
2507 : 2 : tree res_op0;
2508 : 2 : res_op0 = captures[0];
2509 : 2 : tree _r;
2510 : 2 : _r = fold_build1_loc (loc, ABS_EXPR, type, res_op0);
2511 : 2 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 634, __FILE__, __LINE__, true);
2512 : 2 : return _r;
2513 : : }
2514 : 0 : next_after_fail843:;
2515 : : }
2516 : : return NULL_TREE;
2517 : : }
2518 : :
2519 : : tree
2520 : 4923 : generic_simplify_461 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2521 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
2522 : : const enum tree_code ARG_UNUSED (cmp),
2523 : : const enum tree_code ARG_UNUSED (op))
2524 : : {
2525 : 4923 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2526 : 4923 : {
2527 : 4923 : tree from_type = TREE_TYPE (captures[0]), to_type = TREE_TYPE (captures[1]);
2528 : 4923 : if (types_match (from_type, to_type)
2529 : 4923 : || (TYPE_UNSIGNED (from_type)
2530 : 64 : && !TYPE_UNSIGNED (to_type)
2531 : 64 : && TYPE_PRECISION (from_type) == TYPE_PRECISION (to_type)
2532 : 64 : && integer_zerop (captures[1])
2533 : 54 : && (cmp == LT_EXPR || cmp == GE_EXPR))
2534 : : )
2535 : : {
2536 : 4866 : {
2537 : 4866 : wi::overflow_type overflow = wi::OVF_NONE;
2538 : 4866 : enum tree_code code, cmp_code = cmp;
2539 : 4866 : wide_int real_c1;
2540 : 4866 : wide_int c1 = wi::to_wide (captures[1]);
2541 : 4866 : wide_int c2 = wi::to_wide (captures[2]);
2542 : 4866 : wide_int c3 = wi::to_wide (captures[3]);
2543 : 4866 : signop sgn = TYPE_SIGN (from_type);
2544 : 4866 : if (!types_match (from_type, to_type))
2545 : : {
2546 : 7 : if (cmp_code == LT_EXPR)
2547 : : cmp_code = GT_EXPR;
2548 : 0 : if (cmp_code == GE_EXPR)
2549 : 0 : cmp_code = LE_EXPR;
2550 : 7 : c1 = wi::max_value (to_type);
2551 : : }
2552 : 4866 : if (op == PLUS_EXPR)
2553 : 4866 : real_c1 = wi::sub (c3, c2, sgn, &overflow);
2554 : : else
2555 : 0 : real_c1 = wi::add (c3, c2, sgn, &overflow);
2556 : 4866 : code = cmp_code;
2557 : 4866 : if (!overflow || !TYPE_OVERFLOW_UNDEFINED (from_type))
2558 : : {
2559 : 9732 : if (!wi::cmp (wi::sub (real_c1, 1, sgn, &overflow), c1, sgn)
2560 : 4866 : && !overflow)
2561 : : {
2562 : 695 : if (cmp_code == LE_EXPR)
2563 : : code = LT_EXPR;
2564 : 695 : if (cmp_code == GT_EXPR)
2565 : 4866 : code = GE_EXPR;
2566 : : }
2567 : 9732 : if (!wi::cmp (wi::add (real_c1, 1, sgn, &overflow), c1, sgn)
2568 : 4866 : && !overflow)
2569 : : {
2570 : 3738 : if (cmp_code == LT_EXPR)
2571 : : code = LE_EXPR;
2572 : 3738 : if (cmp_code == GE_EXPR)
2573 : : code = GT_EXPR;
2574 : : }
2575 : 1145 : if (code != cmp_code || !wi::cmp (real_c1, c1, sgn))
2576 : : {
2577 : 4620 : if (cmp_code == LT_EXPR || cmp_code == LE_EXPR)
2578 : 0 : code = MIN_EXPR;
2579 : 4620 : if (cmp_code == GT_EXPR || cmp_code == GE_EXPR)
2580 : : code = MAX_EXPR;
2581 : : }
2582 : : }
2583 : 246 : if (code == MAX_EXPR
2584 : : )
2585 : : {
2586 : 4620 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail851;
2587 : 4620 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail851;
2588 : 4620 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail851;
2589 : 4620 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail851;
2590 : 4620 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail851;
2591 : 4620 : {
2592 : 4620 : tree res_op0;
2593 : 4620 : {
2594 : 4620 : tree _o1[2], _r1;
2595 : 4620 : _o1[0] = captures[0];
2596 : 4620 : _o1[1] = wide_int_to_tree (from_type, real_c1);
2597 : 4620 : _r1 = fold_build2_loc (loc, MAX_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2598 : 4620 : res_op0 = _r1;
2599 : : }
2600 : 4620 : tree res_op1;
2601 : 4620 : res_op1 = wide_int_to_tree (from_type, c2);
2602 : 4620 : tree _r;
2603 : 4620 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
2604 : 4620 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 642, __FILE__, __LINE__, true);
2605 : 4620 : return _r;
2606 : : }
2607 : 246 : next_after_fail851:;
2608 : : }
2609 : : else
2610 : : {
2611 : 246 : if (code == MIN_EXPR
2612 : : )
2613 : : {
2614 : 0 : if (TREE_SIDE_EFFECTS (captures[0])) goto next_after_fail852;
2615 : 0 : if (TREE_SIDE_EFFECTS (captures[1])) goto next_after_fail852;
2616 : 0 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail852;
2617 : 0 : if (TREE_SIDE_EFFECTS (captures[3])) goto next_after_fail852;
2618 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail852;
2619 : 0 : {
2620 : 0 : tree res_op0;
2621 : 0 : {
2622 : 0 : tree _o1[2], _r1;
2623 : 0 : _o1[0] = captures[0];
2624 : 0 : _o1[1] = wide_int_to_tree (from_type, real_c1);
2625 : 0 : _r1 = fold_build2_loc (loc, MIN_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
2626 : 0 : res_op0 = _r1;
2627 : : }
2628 : 0 : tree res_op1;
2629 : 0 : res_op1 = wide_int_to_tree (from_type, c2);
2630 : 0 : tree _r;
2631 : 0 : _r = fold_build2_loc (loc, op, type, res_op0, res_op1);
2632 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 643, __FILE__, __LINE__, true);
2633 : 0 : return _r;
2634 : : }
2635 : 246 : next_after_fail852:;
2636 : : }
2637 : : }
2638 : 4866 : }
2639 : : }
2640 : : }
2641 : : return NULL_TREE;
2642 : : }
2643 : :
2644 : : tree
2645 : 8 : generic_simplify_489 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2646 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures))
2647 : : {
2648 : 8 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2649 : 8 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail887;
2650 : 8 : if (TREE_SIDE_EFFECTS (_p2)) goto next_after_fail887;
2651 : 8 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail887;
2652 : 8 : {
2653 : 8 : tree _r;
2654 : 8 : _r = captures[2];
2655 : 8 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 656, __FILE__, __LINE__, true);
2656 : : return _r;
2657 : : }
2658 : : next_after_fail887:;
2659 : : return NULL_TREE;
2660 : : }
2661 : :
2662 : : tree
2663 : 0 : generic_simplify_496 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2664 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
2665 : : const combined_fn ARG_UNUSED (cond_op))
2666 : : {
2667 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2668 : 0 : {
2669 : 0 : tree op_type = TREE_TYPE (captures[6]);
2670 : 0 : if (inverse_conditions_p (captures[0], captures[2])
2671 : 0 : && element_precision (type) == element_precision (op_type)
2672 : : )
2673 : : {
2674 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail894;
2675 : 0 : {
2676 : 0 : tree res_op0;
2677 : 0 : {
2678 : 0 : tree _o1[5], _r1;
2679 : 0 : _o1[0] = captures[2];
2680 : 0 : _o1[1] = captures[3];
2681 : 0 : _o1[2] = captures[4];
2682 : 0 : _o1[3] = captures[5];
2683 : 0 : {
2684 : 0 : tree _o2[1], _r2;
2685 : 0 : _o2[0] = captures[1];
2686 : 0 : _r2 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, op_type, _o2[0]);
2687 : 0 : _o1[4] = _r2;
2688 : : }
2689 : 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]);
2690 : 0 : if (!_r1)
2691 : 0 : goto next_after_fail894;
2692 : 0 : res_op0 = _r1;
2693 : : }
2694 : 0 : tree _r;
2695 : 0 : _r = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, res_op0);
2696 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
2697 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2698 : 0 : if (TREE_SIDE_EFFECTS (captures[6]))
2699 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[6]), _r);
2700 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 679, __FILE__, __LINE__, true);
2701 : 0 : return _r;
2702 : : }
2703 : : next_after_fail894:;
2704 : : }
2705 : : }
2706 : : return NULL_TREE;
2707 : : }
2708 : :
2709 : : tree
2710 : 60 : generic_simplify_505 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2711 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree *ARG_UNUSED (captures),
2712 : : const enum tree_code ARG_UNUSED (cmp))
2713 : : {
2714 : 60 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2715 : 60 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail903;
2716 : 60 : {
2717 : 60 : tree _r;
2718 : 60 : _r = constant_boolean_node (true, type);
2719 : 60 : if (TREE_SIDE_EFFECTS (captures[0]))
2720 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2721 : 60 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 688, __FILE__, __LINE__, true);
2722 : : return _r;
2723 : : }
2724 : 0 : next_after_fail903:;
2725 : 0 : return NULL_TREE;
2726 : : }
2727 : :
2728 : : tree
2729 : 0 : generic_simplify_512 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2730 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
2731 : : const combined_fn ARG_UNUSED (fns))
2732 : : {
2733 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2734 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail910;
2735 : 0 : {
2736 : 0 : tree res_op0;
2737 : 0 : res_op0 = captures[0];
2738 : 0 : tree _r;
2739 : 0 : _r = maybe_build_call_expr_loc (loc, fns, type, 1, res_op0);
2740 : 0 : if (!_r)
2741 : 0 : goto next_after_fail910;
2742 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 695, __FILE__, __LINE__, true);
2743 : : return _r;
2744 : : }
2745 : : next_after_fail910:;
2746 : : return NULL_TREE;
2747 : : }
2748 : :
2749 : : tree
2750 : 0 : generic_simplify_521 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2751 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
2752 : : const combined_fn ARG_UNUSED (floors))
2753 : : {
2754 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2755 : 0 : if (canonicalize_math_p ()
2756 : : )
2757 : : {
2758 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail919;
2759 : 0 : {
2760 : 0 : tree res_op0;
2761 : 0 : res_op0 = captures[0];
2762 : 0 : tree _r;
2763 : 0 : _r = fold_build1_loc (loc, FIX_TRUNC_EXPR, type, res_op0);
2764 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 704, __FILE__, __LINE__, true);
2765 : 0 : return _r;
2766 : : }
2767 : 0 : next_after_fail919:;
2768 : : }
2769 : : return NULL_TREE;
2770 : : }
2771 : :
2772 : : tree
2773 : 0 : generic_simplify_528 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2774 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
2775 : : const combined_fn ARG_UNUSED (fmas))
2776 : : {
2777 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2778 : 0 : if (canonicalize_math_after_vectorization_p ()
2779 : : )
2780 : : {
2781 : : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail926;
2782 : : {
2783 : : tree res_op0;
2784 : : res_op0 = captures[0];
2785 : : tree res_op1;
2786 : : res_op1 = captures[1];
2787 : : tree res_op2;
2788 : : res_op2 = captures[2];
2789 : : tree _r;
2790 : : _r = maybe_build_call_expr_loc (loc, CFN_FNMA, type, 3, res_op0, res_op1, res_op2);
2791 : : if (!_r)
2792 : : goto next_after_fail926;
2793 : : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 711, __FILE__, __LINE__, true);
2794 : : return _r;
2795 : : }
2796 : 0 : next_after_fail926:;
2797 : : }
2798 : 0 : return NULL_TREE;
2799 : : }
2800 : :
2801 : : tree
2802 : 0 : generic_simplify_537 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2803 : : tree ARG_UNUSED (_p0), tree *ARG_UNUSED (captures),
2804 : : const combined_fn ARG_UNUSED (bswap),
2805 : : const combined_fn ARG_UNUSED (popcount))
2806 : : {
2807 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2808 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
2809 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
2810 : : )
2811 : : {
2812 : 0 : {
2813 : 0 : tree type0 = TREE_TYPE (captures[0]);
2814 : 0 : tree type1 = TREE_TYPE (captures[1]);
2815 : 0 : unsigned int prec0 = TYPE_PRECISION (type0);
2816 : 0 : unsigned int prec1 = TYPE_PRECISION (type1);
2817 : 0 : if (prec0 == prec1 || (prec0 > prec1 && TYPE_UNSIGNED (type1))
2818 : : )
2819 : : {
2820 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail935;
2821 : 0 : {
2822 : 0 : tree res_op0;
2823 : 0 : {
2824 : 0 : tree _o1[1], _r1;
2825 : 0 : {
2826 : 0 : tree _o2[1], _r2;
2827 : 0 : _o2[0] = captures[2];
2828 : 0 : if (TREE_TYPE (_o2[0]) != type1)
2829 : : {
2830 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, type1, _o2[0]);
2831 : : }
2832 : : else
2833 : : _r2 = _o2[0];
2834 : 0 : _o1[0] = _r2;
2835 : : }
2836 : 0 : if (TREE_TYPE (_o1[0]) != type0)
2837 : : {
2838 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, type0, _o1[0]);
2839 : : }
2840 : : else
2841 : : _r1 = _o1[0];
2842 : 0 : res_op0 = _r1;
2843 : : }
2844 : 0 : tree _r;
2845 : 0 : _r = maybe_build_call_expr_loc (loc, popcount, type, 1, res_op0);
2846 : 0 : if (!_r)
2847 : 0 : goto next_after_fail935;
2848 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 720, __FILE__, __LINE__, true);
2849 : 0 : return _r;
2850 : : }
2851 : : next_after_fail935:;
2852 : : }
2853 : : }
2854 : : }
2855 : : return NULL_TREE;
2856 : : }
2857 : :
2858 : : tree
2859 : 0 : generic_simplify_549 (location_t ARG_UNUSED (loc), const tree ARG_UNUSED (type),
2860 : : tree ARG_UNUSED (_p0), tree ARG_UNUSED (_p1), tree ARG_UNUSED (_p2), tree *ARG_UNUSED (captures),
2861 : : const enum tree_code ARG_UNUSED (plusminus),
2862 : : const enum tree_code ARG_UNUSED (minusplus))
2863 : : {
2864 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
2865 : 0 : if (!VECTOR_INTEGER_TYPE_P (type)
2866 : : && !FLOAT_WORDS_BIG_ENDIAN
2867 : 0 : && (operand_equal_p (captures[0], captures[2], 0)
2868 : 0 : ? operand_equal_p (captures[1], captures[3], 0)
2869 : 0 : : operand_equal_p (captures[0], captures[3], 0) && operand_equal_p (captures[1], captures[2], 0))
2870 : : )
2871 : : {
2872 : 0 : {
2873 : 0 : vec_perm_builder builder;
2874 : 0 : if (tree_to_vec_perm_builder (&builder, captures[4])
2875 : : )
2876 : : {
2877 : 0 : {
2878 : 0 : poly_uint64 nelts = TYPE_VECTOR_SUBPARTS (type);
2879 : 0 : vec_perm_indices sel (builder, 2, nelts);
2880 : 0 : machine_mode vec_mode = TYPE_MODE (type);
2881 : 0 : machine_mode wide_mode;
2882 : 0 : scalar_mode wide_elt_mode;
2883 : 0 : poly_uint64 wide_nunits;
2884 : 0 : scalar_mode inner_mode = GET_MODE_INNER (vec_mode);
2885 : 0 : if (VECTOR_MODE_P (vec_mode)
2886 : 0 : && sel.series_p (0, 2, 0, 2)
2887 : 0 : && sel.series_p (1, 2, nelts + 1, 2)
2888 : 0 : && GET_MODE_2XWIDER_MODE (inner_mode).exists (&wide_elt_mode)
2889 : 0 : && multiple_p (GET_MODE_NUNITS (vec_mode), 2, &wide_nunits)
2890 : 0 : && related_vector_mode (vec_mode, wide_elt_mode,
2891 : 0 : wide_nunits).exists (&wide_mode)
2892 : : )
2893 : : {
2894 : 0 : {
2895 : 0 : tree stype
2896 : 0 : = lang_hooks.types.type_for_mode (GET_MODE_INNER (wide_mode),
2897 : 0 : TYPE_UNSIGNED (type));
2898 : 0 : tree ntype = build_vector_type_for_mode (stype, wide_mode);
2899 : 0 : const struct real_format *fmt_old = FLOAT_MODE_FORMAT (vec_mode);
2900 : 0 : const struct real_format *fmt_new = FLOAT_MODE_FORMAT (wide_mode);
2901 : 0 : if (TYPE_MODE (stype) != BLKmode
2902 : 0 : && VECTOR_TYPE_P (ntype)
2903 : 0 : && fmt_old != NULL
2904 : 0 : && fmt_new != NULL
2905 : : )
2906 : : {
2907 : 0 : {
2908 : 0 : if (known_eq (GET_MODE_NUNITS (wide_mode), 1)
2909 : 0 : && !target_supports_op_p (ntype, NEGATE_EXPR, optab_vector))
2910 : 0 : ntype = stype;
2911 : 0 : if (fmt_new->signbit_rw
2912 : 0 : == fmt_old->signbit_rw + GET_MODE_UNIT_BITSIZE (vec_mode)
2913 : 0 : && fmt_new->signbit_rw == fmt_new->signbit_ro
2914 : 0 : && targetm.can_change_mode_class (TYPE_MODE (ntype),
2915 : 0 : TYPE_MODE (type), ALL_REGS)
2916 : 0 : && ((optimize_vectors_before_lowering_p ()
2917 : 0 : && VECTOR_TYPE_P (ntype))
2918 : 0 : || target_supports_op_p (ntype, NEGATE_EXPR, optab_vector))
2919 : : )
2920 : : {
2921 : 0 : if (plusminus == PLUS_EXPR
2922 : : )
2923 : : {
2924 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail948;
2925 : 0 : {
2926 : 0 : tree res_op0;
2927 : 0 : {
2928 : 0 : tree _o1[1], _r1;
2929 : 0 : {
2930 : 0 : tree _o2[1], _r2;
2931 : 0 : {
2932 : 0 : tree _o3[1], _r3;
2933 : 0 : _o3[0] = captures[3];
2934 : 0 : _r3 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, ntype, _o3[0]);
2935 : 0 : _o2[0] = _r3;
2936 : : }
2937 : 0 : _r2 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
2938 : 0 : _o1[0] = _r2;
2939 : : }
2940 : 0 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
2941 : 0 : res_op0 = _r1;
2942 : : }
2943 : 0 : tree res_op1;
2944 : 0 : res_op1 = captures[2];
2945 : 0 : tree _r;
2946 : 0 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
2947 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
2948 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
2949 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
2950 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
2951 : 0 : if (TREE_SIDE_EFFECTS (captures[4]))
2952 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[4]), _r);
2953 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 729, __FILE__, __LINE__, true);
2954 : 0 : return _r;
2955 : : }
2956 : 0 : next_after_fail948:;
2957 : : }
2958 : : else
2959 : : {
2960 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail949;
2961 : 0 : {
2962 : 0 : tree res_op0;
2963 : 0 : res_op0 = captures[0];
2964 : 0 : tree res_op1;
2965 : 0 : {
2966 : 0 : tree _o1[1], _r1;
2967 : 0 : {
2968 : 0 : tree _o2[1], _r2;
2969 : 0 : {
2970 : 0 : tree _o3[1], _r3;
2971 : 0 : _o3[0] = captures[1];
2972 : 0 : _r3 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, ntype, _o3[0]);
2973 : 0 : _o2[0] = _r3;
2974 : : }
2975 : 0 : _r2 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
2976 : 0 : _o1[0] = _r2;
2977 : : }
2978 : 0 : _r1 = fold_build1_loc (loc, VIEW_CONVERT_EXPR, type, _o1[0]);
2979 : 0 : res_op1 = _r1;
2980 : : }
2981 : 0 : tree _r;
2982 : 0 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
2983 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
2984 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
2985 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
2986 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
2987 : 0 : if (TREE_SIDE_EFFECTS (captures[4]))
2988 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[4]), _r);
2989 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 730, __FILE__, __LINE__, true);
2990 : 0 : return _r;
2991 : : }
2992 : 0 : next_after_fail949:;
2993 : : }
2994 : : }
2995 : : }
2996 : : }
2997 : : }
2998 : : }
2999 : 0 : }
3000 : : }
3001 : 0 : }
3002 : : }
3003 : : return NULL_TREE;
3004 : : }
3005 : :
3006 : : tree
3007 : 1322 : generic_simplify_CONJ_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0)
3008 : : {
3009 : 1322 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3010 : 1322 : switch (TREE_CODE (_p0))
3011 : : {
3012 : 0 : CASE_CONVERT:
3013 : 0 : {
3014 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
3015 : 0 : switch (TREE_CODE (_q20))
3016 : : {
3017 : 0 : case CONJ_EXPR:
3018 : 0 : {
3019 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
3020 : 0 : {
3021 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q30 };
3022 : 0 : tree res = generic_simplify_484 (loc, type, _p0, captures);
3023 : 0 : if (res) return res;
3024 : : }
3025 : 0 : break;
3026 : : }
3027 : 0 : case COMPLEX_EXPR:
3028 : 0 : {
3029 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
3030 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
3031 : 0 : {
3032 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31 };
3033 : 0 : {
3034 : 0 : tree itype = TREE_TYPE (type);
3035 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1067;
3036 : 0 : {
3037 : 0 : tree res_op0;
3038 : 0 : {
3039 : 0 : tree _o1[1], _r1;
3040 : 0 : _o1[0] = captures[2];
3041 : 0 : if (TREE_TYPE (_o1[0]) != itype)
3042 : : {
3043 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, itype, _o1[0]);
3044 : : }
3045 : : else
3046 : : _r1 = _o1[0];
3047 : 0 : res_op0 = _r1;
3048 : : }
3049 : 0 : tree res_op1;
3050 : 0 : {
3051 : 0 : tree _o1[1], _r1;
3052 : 0 : {
3053 : 0 : tree _o2[1], _r2;
3054 : 0 : _o2[0] = captures[3];
3055 : 0 : if (TREE_TYPE (_o2[0]) != itype)
3056 : : {
3057 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, itype, _o2[0]);
3058 : : }
3059 : : else
3060 : : _r2 = _o2[0];
3061 : 0 : _o1[0] = _r2;
3062 : : }
3063 : 0 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
3064 : 0 : res_op1 = _r1;
3065 : : }
3066 : 0 : tree _r;
3067 : 0 : _r = fold_build2_loc (loc, COMPLEX_EXPR, type, res_op0, res_op1);
3068 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 787, __FILE__, __LINE__, true);
3069 : 0 : return _r;
3070 : : }
3071 : 0 : next_after_fail1067:;
3072 : : }
3073 : : }
3074 : 0 : break;
3075 : : }
3076 : : default:;
3077 : : }
3078 : : break;
3079 : : }
3080 : 0 : case CONJ_EXPR:
3081 : 0 : {
3082 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
3083 : 0 : {
3084 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
3085 : 0 : tree res = generic_simplify_484 (loc, type, _p0, captures);
3086 : 0 : if (res) return res;
3087 : : }
3088 : 0 : break;
3089 : : }
3090 : 12 : case COMPLEX_EXPR:
3091 : 12 : {
3092 : 12 : tree _q20 = TREE_OPERAND (_p0, 0);
3093 : 12 : tree _q21 = TREE_OPERAND (_p0, 1);
3094 : 12 : {
3095 : 12 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21 };
3096 : 12 : {
3097 : 12 : tree itype = TREE_TYPE (type);
3098 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1068;
3099 : 12 : {
3100 : 12 : tree res_op0;
3101 : 12 : {
3102 : 12 : tree _o1[1], _r1;
3103 : 12 : _o1[0] = captures[2];
3104 : 12 : if (TREE_TYPE (_o1[0]) != itype)
3105 : : {
3106 : 0 : _r1 = fold_build1_loc (loc, NOP_EXPR, itype, _o1[0]);
3107 : : }
3108 : : else
3109 : : _r1 = _o1[0];
3110 : 12 : res_op0 = _r1;
3111 : : }
3112 : 12 : tree res_op1;
3113 : 12 : {
3114 : 12 : tree _o1[1], _r1;
3115 : 12 : {
3116 : 12 : tree _o2[1], _r2;
3117 : 12 : _o2[0] = captures[3];
3118 : 12 : if (TREE_TYPE (_o2[0]) != itype)
3119 : : {
3120 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, itype, _o2[0]);
3121 : : }
3122 : : else
3123 : : _r2 = _o2[0];
3124 : 12 : _o1[0] = _r2;
3125 : : }
3126 : 12 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
3127 : 12 : res_op1 = _r1;
3128 : : }
3129 : 12 : tree _r;
3130 : 12 : _r = fold_build2_loc (loc, COMPLEX_EXPR, type, res_op0, res_op1);
3131 : 12 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 787, __FILE__, __LINE__, true);
3132 : 12 : return _r;
3133 : : }
3134 : 0 : next_after_fail1068:;
3135 : : }
3136 : : }
3137 : 0 : break;
3138 : : }
3139 : : default:;
3140 : : }
3141 : : return NULL_TREE;
3142 : : }
3143 : :
3144 : : tree
3145 : 27882262 : generic_simplify_MINUS_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
3146 : : {
3147 : 27882262 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
3148 : 27882262 : if (integer_zerop (_p1))
3149 : : {
3150 : 1785430 : {
3151 : 1785430 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
3152 : 1785430 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1087;
3153 : 1785430 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1087;
3154 : 1785430 : {
3155 : 1785430 : tree res_op0;
3156 : 1785430 : res_op0 = captures[0];
3157 : 1785430 : tree _r;
3158 : 1785430 : _r = non_lvalue_loc (loc, res_op0);
3159 : 1785430 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 788, __FILE__, __LINE__, true);
3160 : 1785430 : return _r;
3161 : : }
3162 : : next_after_fail1087:;
3163 : : }
3164 : : }
3165 : 26096832 : if (real_zerop (_p1))
3166 : : {
3167 : 1232 : {
3168 : 1232 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
3169 : 1232 : if (fold_real_zero_addition_p (type, captures[0], captures[1], 1)
3170 : : )
3171 : : {
3172 : 845 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1088;
3173 : 845 : {
3174 : 845 : tree res_op0;
3175 : 845 : res_op0 = captures[0];
3176 : 845 : tree _r;
3177 : 845 : _r = non_lvalue_loc (loc, res_op0);
3178 : 845 : if (TREE_SIDE_EFFECTS (captures[1]))
3179 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
3180 : 845 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 803, __FILE__, __LINE__, true);
3181 : 845 : return _r;
3182 : : }
3183 : 0 : next_after_fail1088:;
3184 : : }
3185 : : }
3186 : : }
3187 : 26095987 : switch (TREE_CODE (_p0))
3188 : : {
3189 : 1875858 : case PLUS_EXPR:
3190 : 1875858 : {
3191 : 1875858 : tree _q20 = TREE_OPERAND (_p0, 0);
3192 : 1875858 : tree _q21 = TREE_OPERAND (_p0, 1);
3193 : 1875858 : switch (TREE_CODE (_q21))
3194 : : {
3195 : 151036 : case REAL_CST:
3196 : 151036 : {
3197 : 151036 : switch (TREE_CODE (_p1))
3198 : : {
3199 : 11 : case REAL_CST:
3200 : 11 : {
3201 : 11 : {
3202 : 11 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
3203 : 11 : tree res = generic_simplify_3 (loc, type, _p0, _p1, captures, MINUS_EXPR, PLUS_EXPR);
3204 : 11 : if (res) return res;
3205 : : }
3206 : 8 : break;
3207 : : }
3208 : : default:;
3209 : : }
3210 : : break;
3211 : : }
3212 : : default:;
3213 : : }
3214 : : break;
3215 : : }
3216 : 1049891 : case MINUS_EXPR:
3217 : 1049891 : {
3218 : 1049891 : tree _q20 = TREE_OPERAND (_p0, 0);
3219 : 1049891 : tree _q21 = TREE_OPERAND (_p0, 1);
3220 : 1049891 : switch (TREE_CODE (_q21))
3221 : : {
3222 : 94894 : case REAL_CST:
3223 : 94894 : {
3224 : 94894 : switch (TREE_CODE (_p1))
3225 : : {
3226 : 40 : case REAL_CST:
3227 : 40 : {
3228 : 40 : {
3229 : 40 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
3230 : 40 : tree res = generic_simplify_3 (loc, type, _p0, _p1, captures, MINUS_EXPR, MINUS_EXPR);
3231 : 40 : if (res) return res;
3232 : : }
3233 : 38 : break;
3234 : : }
3235 : : default:;
3236 : : }
3237 : : break;
3238 : : }
3239 : : default:;
3240 : : }
3241 : : break;
3242 : : }
3243 : 26095982 : default:;
3244 : : }
3245 : 26095982 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
3246 : : {
3247 : 146011 : {
3248 : 146011 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
3249 : 145259 : if (!FLOAT_TYPE_P (type)
3250 : 146012 : || (!tree_expr_maybe_nan_p (captures[0])
3251 : 122 : && !tree_expr_maybe_infinite_p (captures[0])
3252 : 15 : && (!HONOR_SIGN_DEPENDENT_ROUNDING (type)
3253 : 1 : || !HONOR_SIGNED_ZEROS (type)))
3254 : : )
3255 : : {
3256 : 145272 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1089;
3257 : 145272 : {
3258 : 145272 : tree _r;
3259 : 145272 : _r = build_zero_cst (type);
3260 : 145272 : if (TREE_SIDE_EFFECTS (captures[0]))
3261 : 38 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
3262 : 145272 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 804, __FILE__, __LINE__, true);
3263 : 145272 : return _r;
3264 : : }
3265 : 0 : next_after_fail1089:;
3266 : : }
3267 : : }
3268 : : }
3269 : 25950710 : switch (TREE_CODE (_p0))
3270 : : {
3271 : 6995054 : CASE_CONVERT:
3272 : 6995054 : {
3273 : 6995054 : tree _q20 = TREE_OPERAND (_p0, 0);
3274 : 6995054 : switch (TREE_CODE (_p1))
3275 : : {
3276 : 3218533 : CASE_CONVERT:
3277 : 3218533 : {
3278 : 3218533 : tree _q40 = TREE_OPERAND (_p1, 0);
3279 : 3218533 : switch (TREE_CODE (_q40))
3280 : : {
3281 : 58075 : case MULT_EXPR:
3282 : 58075 : {
3283 : 58075 : tree _q50 = TREE_OPERAND (_q40, 0);
3284 : 58075 : tree _q51 = TREE_OPERAND (_q40, 1);
3285 : 58075 : switch (TREE_CODE (_q50))
3286 : : {
3287 : 21 : case TRUNC_DIV_EXPR:
3288 : 21 : {
3289 : 21 : tree _q60 = TREE_OPERAND (_q50, 0);
3290 : 21 : tree _q61 = TREE_OPERAND (_q50, 1);
3291 : 21 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q20, 0))
3292 : : {
3293 : 21 : if ((_q51 == _q61 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q61, 0))
3294 : : {
3295 : 21 : {
3296 : 21 : tree captures[4] ATTRIBUTE_UNUSED = { _q60, _q61, _q20, _q61 };
3297 : 21 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures);
3298 : 21 : if (res) return res;
3299 : : }
3300 : : }
3301 : : }
3302 : : break;
3303 : : }
3304 : 58054 : default:;
3305 : : }
3306 : 58054 : switch (TREE_CODE (_q51))
3307 : : {
3308 : 0 : case TRUNC_DIV_EXPR:
3309 : 0 : {
3310 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
3311 : 0 : tree _q71 = TREE_OPERAND (_q51, 1);
3312 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q20, 0))
3313 : : {
3314 : 0 : if ((_q71 == _q50 && ! TREE_SIDE_EFFECTS (_q71)) || operand_equal_p (_q71, _q50, 0))
3315 : : {
3316 : 0 : {
3317 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q70, _q71, _q20, _q50 };
3318 : 0 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures);
3319 : 0 : if (res) return res;
3320 : : }
3321 : : }
3322 : : }
3323 : : break;
3324 : : }
3325 : : default:;
3326 : : }
3327 : : break;
3328 : : }
3329 : : default:;
3330 : : }
3331 : : break;
3332 : : }
3333 : 137815 : case MULT_EXPR:
3334 : 137815 : {
3335 : 137815 : tree _q40 = TREE_OPERAND (_p1, 0);
3336 : 137815 : tree _q41 = TREE_OPERAND (_p1, 1);
3337 : 137815 : switch (TREE_CODE (_q40))
3338 : : {
3339 : 1738 : case TRUNC_DIV_EXPR:
3340 : 1738 : {
3341 : 1738 : tree _q50 = TREE_OPERAND (_q40, 0);
3342 : 1738 : tree _q51 = TREE_OPERAND (_q40, 1);
3343 : 1738 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
3344 : : {
3345 : 8 : if ((_q41 == _q51 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _q51, 0))
3346 : : {
3347 : 8 : {
3348 : 8 : tree captures[4] ATTRIBUTE_UNUSED = { _q50, _q51, _q20, _q51 };
3349 : 8 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures);
3350 : 8 : if (res) return res;
3351 : : }
3352 : : }
3353 : : }
3354 : : break;
3355 : : }
3356 : 137807 : default:;
3357 : : }
3358 : 137807 : switch (TREE_CODE (_q41))
3359 : : {
3360 : 0 : case TRUNC_DIV_EXPR:
3361 : 0 : {
3362 : 0 : tree _q60 = TREE_OPERAND (_q41, 0);
3363 : 0 : tree _q61 = TREE_OPERAND (_q41, 1);
3364 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q20, 0))
3365 : : {
3366 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || operand_equal_p (_q61, _q40, 0))
3367 : : {
3368 : 0 : {
3369 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q60, _q61, _q20, _q40 };
3370 : 0 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures);
3371 : 0 : if (res) return res;
3372 : : }
3373 : : }
3374 : : }
3375 : : break;
3376 : : }
3377 : : default:;
3378 : : }
3379 : : break;
3380 : : }
3381 : : default:;
3382 : : }
3383 : : break;
3384 : : }
3385 : 25950681 : default:;
3386 : : }
3387 : 25950681 : switch (TREE_CODE (_p1))
3388 : : {
3389 : 5710671 : CASE_CONVERT:
3390 : 5710671 : {
3391 : 5710671 : tree _q30 = TREE_OPERAND (_p1, 0);
3392 : 5710671 : switch (TREE_CODE (_q30))
3393 : : {
3394 : 96178 : case MULT_EXPR:
3395 : 96178 : {
3396 : 96178 : tree _q40 = TREE_OPERAND (_q30, 0);
3397 : 96178 : tree _q41 = TREE_OPERAND (_q30, 1);
3398 : 96178 : switch (TREE_CODE (_q40))
3399 : : {
3400 : 12 : case TRUNC_DIV_EXPR:
3401 : 12 : {
3402 : 12 : tree _q50 = TREE_OPERAND (_q40, 0);
3403 : 12 : tree _q51 = TREE_OPERAND (_q40, 1);
3404 : 12 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _p0, 0))
3405 : : {
3406 : 2 : if ((_q41 == _q51 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _q51, 0))
3407 : : {
3408 : 2 : {
3409 : 2 : tree captures[4] ATTRIBUTE_UNUSED = { _q50, _q51, _p0, _q51 };
3410 : 2 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures);
3411 : 2 : if (res) return res;
3412 : : }
3413 : : }
3414 : : }
3415 : : break;
3416 : : }
3417 : 96176 : default:;
3418 : : }
3419 : 96176 : switch (TREE_CODE (_q41))
3420 : : {
3421 : 0 : case TRUNC_DIV_EXPR:
3422 : 0 : {
3423 : 0 : tree _q60 = TREE_OPERAND (_q41, 0);
3424 : 0 : tree _q61 = TREE_OPERAND (_q41, 1);
3425 : 0 : if ((_q60 == _p0 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _p0, 0))
3426 : : {
3427 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || operand_equal_p (_q61, _q40, 0))
3428 : : {
3429 : 0 : {
3430 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q60, _q61, _p0, _q40 };
3431 : 0 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures);
3432 : 0 : if (res) return res;
3433 : : }
3434 : : }
3435 : : }
3436 : : break;
3437 : : }
3438 : : default:;
3439 : : }
3440 : : break;
3441 : : }
3442 : : default:;
3443 : : }
3444 : : break;
3445 : : }
3446 : 1882583 : case MULT_EXPR:
3447 : 1882583 : {
3448 : 1882583 : tree _q30 = TREE_OPERAND (_p1, 0);
3449 : 1882583 : tree _q31 = TREE_OPERAND (_p1, 1);
3450 : 1882583 : switch (TREE_CODE (_q30))
3451 : : {
3452 : 2128 : case TRUNC_DIV_EXPR:
3453 : 2128 : {
3454 : 2128 : tree _q40 = TREE_OPERAND (_q30, 0);
3455 : 2128 : tree _q41 = TREE_OPERAND (_q30, 1);
3456 : 2128 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _p0, 0))
3457 : : {
3458 : 51 : if ((_q31 == _q41 && ! TREE_SIDE_EFFECTS (_q31)) || operand_equal_p (_q31, _q41, 0))
3459 : : {
3460 : 51 : {
3461 : 51 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q41, _p0, _q41 };
3462 : 51 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures);
3463 : 51 : if (res) return res;
3464 : : }
3465 : : }
3466 : : }
3467 : : break;
3468 : : }
3469 : 1882532 : default:;
3470 : : }
3471 : 1882532 : switch (TREE_CODE (_q31))
3472 : : {
3473 : 0 : case TRUNC_DIV_EXPR:
3474 : 0 : {
3475 : 0 : tree _q50 = TREE_OPERAND (_q31, 0);
3476 : 0 : tree _q51 = TREE_OPERAND (_q31, 1);
3477 : 0 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _p0, 0))
3478 : : {
3479 : 0 : if ((_q51 == _q30 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q30, 0))
3480 : : {
3481 : 0 : {
3482 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q50, _q51, _p0, _q30 };
3483 : 0 : tree res = generic_simplify_34 (loc, type, _p0, _p1, captures);
3484 : 0 : if (res) return res;
3485 : : }
3486 : : }
3487 : : }
3488 : : break;
3489 : : }
3490 : : default:;
3491 : : }
3492 : : break;
3493 : : }
3494 : 25950628 : default:;
3495 : : }
3496 : 25950628 : switch (TREE_CODE (_p0))
3497 : : {
3498 : 1623981 : case MULT_EXPR:
3499 : 1623981 : {
3500 : 1623981 : tree _q20 = TREE_OPERAND (_p0, 0);
3501 : 1623981 : tree _q21 = TREE_OPERAND (_p0, 1);
3502 : 1623981 : switch (TREE_CODE (_q21))
3503 : : {
3504 : 580 : case PLUS_EXPR:
3505 : 580 : {
3506 : 580 : tree _q40 = TREE_OPERAND (_q21, 0);
3507 : 580 : tree _q41 = TREE_OPERAND (_q21, 1);
3508 : 580 : switch (TREE_CODE (_q40))
3509 : : {
3510 : 0 : case TRUNC_DIV_EXPR:
3511 : 0 : {
3512 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
3513 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
3514 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
3515 : : {
3516 : 0 : if (integer_onep (_q41))
3517 : : {
3518 : 0 : if ((_p1 == _q50 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q50, 0) && types_match (_p1, _q50)))
3519 : : {
3520 : 0 : {
3521 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q50 };
3522 : 0 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures);
3523 : 0 : if (res) return res;
3524 : : }
3525 : : }
3526 : : }
3527 : : }
3528 : : break;
3529 : : }
3530 : : default:;
3531 : : }
3532 : : break;
3533 : : }
3534 : 1623981 : default:;
3535 : : }
3536 : 1623981 : switch (TREE_CODE (_q20))
3537 : : {
3538 : 60794 : case PLUS_EXPR:
3539 : 60794 : {
3540 : 60794 : tree _q30 = TREE_OPERAND (_q20, 0);
3541 : 60794 : tree _q31 = TREE_OPERAND (_q20, 1);
3542 : 60794 : switch (TREE_CODE (_q30))
3543 : : {
3544 : 1 : case TRUNC_DIV_EXPR:
3545 : 1 : {
3546 : 1 : tree _q40 = TREE_OPERAND (_q30, 0);
3547 : 1 : tree _q41 = TREE_OPERAND (_q30, 1);
3548 : 1 : if (integer_onep (_q31))
3549 : : {
3550 : 1 : if ((_q21 == _q41 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q41, 0) && types_match (_q21, _q41)))
3551 : : {
3552 : 1 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
3553 : : {
3554 : 1 : {
3555 : 1 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q41, _q20, _q30, _q40 };
3556 : 1 : tree res = generic_simplify_35 (loc, type, _p0, _p1, captures);
3557 : 1 : if (res) return res;
3558 : : }
3559 : : }
3560 : : }
3561 : : }
3562 : : break;
3563 : : }
3564 : : default:;
3565 : : }
3566 : : break;
3567 : : }
3568 : : default:;
3569 : : }
3570 : : break;
3571 : : }
3572 : 1250 : case LSHIFT_EXPR:
3573 : 1250 : {
3574 : 1250 : tree _q20 = TREE_OPERAND (_p0, 0);
3575 : 1250 : tree _q21 = TREE_OPERAND (_p0, 1);
3576 : 1250 : switch (TREE_CODE (_p1))
3577 : : {
3578 : 0 : case LSHIFT_EXPR:
3579 : 0 : {
3580 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
3581 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
3582 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
3583 : : {
3584 : 0 : {
3585 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
3586 : 0 : tree res = generic_simplify_5 (loc, type, _p0, _p1, captures, MINUS_EXPR);
3587 : 0 : if (res) return res;
3588 : : }
3589 : : }
3590 : : break;
3591 : : }
3592 : : default:;
3593 : : }
3594 : : break;
3595 : : }
3596 : 1114 : case BIT_AND_EXPR:
3597 : 1114 : {
3598 : 1114 : tree _q20 = TREE_OPERAND (_p0, 0);
3599 : 1114 : tree _q21 = TREE_OPERAND (_p0, 1);
3600 : 1114 : switch (TREE_CODE (_q21))
3601 : : {
3602 : 0 : case BIT_NOT_EXPR:
3603 : 0 : {
3604 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
3605 : 0 : switch (TREE_CODE (_p1))
3606 : : {
3607 : 0 : case BIT_AND_EXPR:
3608 : 0 : {
3609 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
3610 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
3611 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
3612 : : {
3613 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
3614 : : {
3615 : 0 : {
3616 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q40, _p1 };
3617 : 0 : tree res = generic_simplify_36 (loc, type, _p0, _p1, captures);
3618 : 0 : if (res) return res;
3619 : : }
3620 : : }
3621 : : }
3622 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
3623 : : {
3624 : 0 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
3625 : : {
3626 : 0 : {
3627 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q40, _p1 };
3628 : 0 : tree res = generic_simplify_36 (loc, type, _p0, _p1, captures);
3629 : 0 : if (res) return res;
3630 : : }
3631 : : }
3632 : : }
3633 : : break;
3634 : : }
3635 : : default:;
3636 : : }
3637 : : break;
3638 : : }
3639 : 1114 : default:;
3640 : : }
3641 : 1114 : switch (TREE_CODE (_q20))
3642 : : {
3643 : 27 : case BIT_NOT_EXPR:
3644 : 27 : {
3645 : 27 : tree _q30 = TREE_OPERAND (_q20, 0);
3646 : 27 : switch (TREE_CODE (_p1))
3647 : : {
3648 : 21 : case BIT_AND_EXPR:
3649 : 21 : {
3650 : 21 : tree _q60 = TREE_OPERAND (_p1, 0);
3651 : 21 : tree _q61 = TREE_OPERAND (_p1, 1);
3652 : 21 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
3653 : : {
3654 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
3655 : : {
3656 : 0 : {
3657 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q21, _q30, _p1 };
3658 : 0 : tree res = generic_simplify_36 (loc, type, _p0, _p1, captures);
3659 : 0 : if (res) return res;
3660 : : }
3661 : : }
3662 : : }
3663 : 21 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
3664 : : {
3665 : 21 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
3666 : : {
3667 : 21 : {
3668 : 21 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q21, _q30, _p1 };
3669 : 21 : tree res = generic_simplify_36 (loc, type, _p0, _p1, captures);
3670 : 21 : if (res) return res;
3671 : : }
3672 : : }
3673 : : }
3674 : : break;
3675 : : }
3676 : : default:;
3677 : : }
3678 : : break;
3679 : : }
3680 : 1093 : default:;
3681 : : }
3682 : 1093 : switch (TREE_CODE (_q21))
3683 : : {
3684 : 1051 : case INTEGER_CST:
3685 : 1051 : {
3686 : 1051 : switch (TREE_CODE (_p1))
3687 : : {
3688 : 22 : case BIT_AND_EXPR:
3689 : 22 : {
3690 : 22 : tree _q50 = TREE_OPERAND (_p1, 0);
3691 : 22 : tree _q51 = TREE_OPERAND (_p1, 1);
3692 : 22 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
3693 : : {
3694 : 0 : switch (TREE_CODE (_q51))
3695 : : {
3696 : 0 : case INTEGER_CST:
3697 : 0 : {
3698 : 0 : {
3699 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
3700 : 0 : if (~wi::to_wide (captures[2]) == wi::to_wide (captures[4])
3701 : : )
3702 : : {
3703 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1090;
3704 : 0 : {
3705 : 0 : if (! tree_invariant_p (captures[4])) goto next_after_fail1090;
3706 : 0 : tree res_op0;
3707 : 0 : {
3708 : 0 : tree _o1[2], _r1;
3709 : 0 : _o1[0] = captures[1];
3710 : 0 : _o1[1] = unshare_expr (captures[4]);
3711 : 0 : _r1 = fold_build2_loc (loc, BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
3712 : 0 : res_op0 = _r1;
3713 : : }
3714 : 0 : tree res_op1;
3715 : 0 : res_op1 = captures[4];
3716 : 0 : tree _r;
3717 : 0 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
3718 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
3719 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
3720 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 805, __FILE__, __LINE__, true);
3721 : 0 : return _r;
3722 : : }
3723 : 0 : next_after_fail1090:;
3724 : : }
3725 : : }
3726 : 0 : break;
3727 : : }
3728 : : default:;
3729 : : }
3730 : : }
3731 : : break;
3732 : : }
3733 : : default:;
3734 : : }
3735 : : break;
3736 : : }
3737 : 1093 : default:;
3738 : : }
3739 : 1093 : switch (TREE_CODE (_p1))
3740 : : {
3741 : 25 : case BIT_AND_EXPR:
3742 : 25 : {
3743 : 25 : tree _q50 = TREE_OPERAND (_p1, 0);
3744 : 25 : tree _q51 = TREE_OPERAND (_p1, 1);
3745 : 25 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
3746 : : {
3747 : 0 : switch (TREE_CODE (_q51))
3748 : : {
3749 : 0 : case BIT_NOT_EXPR:
3750 : 0 : {
3751 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
3752 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
3753 : : {
3754 : 0 : {
3755 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
3756 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures);
3757 : 0 : if (res) return res;
3758 : : }
3759 : : }
3760 : : break;
3761 : : }
3762 : : default:;
3763 : : }
3764 : : }
3765 : 25 : switch (TREE_CODE (_q50))
3766 : : {
3767 : 0 : case BIT_NOT_EXPR:
3768 : 0 : {
3769 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
3770 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
3771 : : {
3772 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
3773 : : {
3774 : 0 : {
3775 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
3776 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures);
3777 : 0 : if (res) return res;
3778 : : }
3779 : : }
3780 : : }
3781 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
3782 : : {
3783 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
3784 : : {
3785 : 0 : {
3786 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1 };
3787 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures);
3788 : 0 : if (res) return res;
3789 : : }
3790 : : }
3791 : : }
3792 : : break;
3793 : : }
3794 : 25 : default:;
3795 : : }
3796 : 25 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
3797 : : {
3798 : 0 : switch (TREE_CODE (_q51))
3799 : : {
3800 : 0 : case BIT_NOT_EXPR:
3801 : 0 : {
3802 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
3803 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
3804 : : {
3805 : 0 : {
3806 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1 };
3807 : 0 : tree res = generic_simplify_37 (loc, type, _p0, _p1, captures);
3808 : 0 : if (res) return res;
3809 : : }
3810 : : }
3811 : : break;
3812 : : }
3813 : : default:;
3814 : : }
3815 : : }
3816 : : break;
3817 : : }
3818 : 2 : case PLUS_EXPR:
3819 : 2 : {
3820 : 2 : tree _q50 = TREE_OPERAND (_p1, 0);
3821 : 2 : tree _q51 = TREE_OPERAND (_p1, 1);
3822 : 2 : switch (TREE_CODE (_q50))
3823 : : {
3824 : 2 : case BIT_IOR_EXPR:
3825 : 2 : {
3826 : 2 : tree _q60 = TREE_OPERAND (_q50, 0);
3827 : 2 : tree _q61 = TREE_OPERAND (_q50, 1);
3828 : 2 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
3829 : : {
3830 : 2 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
3831 : : {
3832 : 2 : if (integer_onep (_q51))
3833 : : {
3834 : 2 : {
3835 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
3836 : 2 : tree res = generic_simplify_38 (loc, type, _p0, _p1, captures);
3837 : 2 : if (res) return res;
3838 : : }
3839 : : }
3840 : : }
3841 : : }
3842 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
3843 : : {
3844 : 0 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
3845 : : {
3846 : 0 : if (integer_onep (_q51))
3847 : : {
3848 : 0 : {
3849 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
3850 : 0 : tree res = generic_simplify_38 (loc, type, _p0, _p1, captures);
3851 : 0 : if (res) return res;
3852 : : }
3853 : : }
3854 : : }
3855 : : }
3856 : : break;
3857 : : }
3858 : 0 : default:;
3859 : : }
3860 : 0 : {
3861 : 0 : tree _q50_pops[1];
3862 : 0 : if (tree_nop_convert (_q50, _q50_pops))
3863 : : {
3864 : 0 : tree _q60 = _q50_pops[0];
3865 : 0 : switch (TREE_CODE (_q60))
3866 : : {
3867 : 0 : case BIT_IOR_EXPR:
3868 : 0 : {
3869 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
3870 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
3871 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
3872 : : {
3873 : 0 : if ((_q71 == _q21 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q21, 0) && types_match (_q71, _q21)))
3874 : : {
3875 : 0 : if (integer_onep (_q51))
3876 : : {
3877 : 0 : {
3878 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
3879 : 0 : tree res = generic_simplify_38 (loc, type, _p0, _p1, captures);
3880 : 0 : if (res) return res;
3881 : : }
3882 : : }
3883 : : }
3884 : : }
3885 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
3886 : : {
3887 : 0 : if ((_q71 == _q20 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q20, 0) && types_match (_q71, _q20)))
3888 : : {
3889 : 0 : if (integer_onep (_q51))
3890 : : {
3891 : 0 : {
3892 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
3893 : 0 : tree res = generic_simplify_38 (loc, type, _p0, _p1, captures);
3894 : 0 : if (res) return res;
3895 : : }
3896 : : }
3897 : : }
3898 : : }
3899 : : break;
3900 : : }
3901 : : default:;
3902 : : }
3903 : : }
3904 : : }
3905 : 0 : break;
3906 : : }
3907 : 1091 : default:;
3908 : : }
3909 : 1091 : {
3910 : 1091 : tree _p1_pops[1];
3911 : 1091 : if (tree_nop_convert (_p1, _p1_pops))
3912 : : {
3913 : 7 : tree _q50 = _p1_pops[0];
3914 : 7 : switch (TREE_CODE (_q50))
3915 : : {
3916 : 0 : case PLUS_EXPR:
3917 : 0 : {
3918 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
3919 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
3920 : 0 : switch (TREE_CODE (_q60))
3921 : : {
3922 : 0 : case BIT_IOR_EXPR:
3923 : 0 : {
3924 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
3925 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
3926 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
3927 : : {
3928 : 0 : if ((_q71 == _q21 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q21, 0) && types_match (_q71, _q21)))
3929 : : {
3930 : 0 : if (integer_onep (_q61))
3931 : : {
3932 : 0 : {
3933 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
3934 : 0 : tree res = generic_simplify_38 (loc, type, _p0, _p1, captures);
3935 : 0 : if (res) return res;
3936 : : }
3937 : : }
3938 : : }
3939 : : }
3940 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
3941 : : {
3942 : 0 : if ((_q71 == _q20 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q20, 0) && types_match (_q71, _q20)))
3943 : : {
3944 : 0 : if (integer_onep (_q61))
3945 : : {
3946 : 0 : {
3947 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
3948 : 0 : tree res = generic_simplify_38 (loc, type, _p0, _p1, captures);
3949 : 0 : if (res) return res;
3950 : : }
3951 : : }
3952 : : }
3953 : : }
3954 : : break;
3955 : : }
3956 : 0 : default:;
3957 : : }
3958 : 0 : {
3959 : 0 : tree _q60_pops[1];
3960 : 0 : if (tree_nop_convert (_q60, _q60_pops))
3961 : : {
3962 : 0 : tree _q70 = _q60_pops[0];
3963 : 0 : switch (TREE_CODE (_q70))
3964 : : {
3965 : 0 : case BIT_IOR_EXPR:
3966 : 0 : {
3967 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
3968 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
3969 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
3970 : : {
3971 : 0 : if ((_q81 == _q21 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q21, 0) && types_match (_q81, _q21)))
3972 : : {
3973 : 0 : if (integer_onep (_q61))
3974 : : {
3975 : 0 : {
3976 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
3977 : 0 : tree res = generic_simplify_38 (loc, type, _p0, _p1, captures);
3978 : 0 : if (res) return res;
3979 : : }
3980 : : }
3981 : : }
3982 : : }
3983 : 0 : if ((_q80 == _q21 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q21, 0) && types_match (_q80, _q21)))
3984 : : {
3985 : 0 : if ((_q81 == _q20 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q20, 0) && types_match (_q81, _q20)))
3986 : : {
3987 : 0 : if (integer_onep (_q61))
3988 : : {
3989 : 0 : {
3990 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
3991 : 0 : tree res = generic_simplify_38 (loc, type, _p0, _p1, captures);
3992 : 0 : if (res) return res;
3993 : : }
3994 : : }
3995 : : }
3996 : : }
3997 : : break;
3998 : : }
3999 : : default:;
4000 : : }
4001 : : }
4002 : : }
4003 : 0 : break;
4004 : : }
4005 : : default:;
4006 : : }
4007 : : }
4008 : : }
4009 : 1091 : break;
4010 : : }
4011 : 835 : case BIT_NOT_EXPR:
4012 : 835 : {
4013 : 835 : tree _q20 = TREE_OPERAND (_p0, 0);
4014 : 835 : switch (TREE_CODE (_p1))
4015 : : {
4016 : 24 : case BIT_NOT_EXPR:
4017 : 24 : {
4018 : 24 : tree _q40 = TREE_OPERAND (_p1, 0);
4019 : 24 : {
4020 : 24 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
4021 : 24 : if (!TYPE_OVERFLOW_SANITIZED (type)
4022 : : )
4023 : : {
4024 : 9 : {
4025 : 9 : tree utype = unsigned_type_for (type);
4026 : 9 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1091;
4027 : 9 : {
4028 : 9 : tree res_op0;
4029 : 9 : {
4030 : 9 : tree _o1[2], _r1;
4031 : 9 : {
4032 : 9 : tree _o2[1], _r2;
4033 : 9 : _o2[0] = captures[1];
4034 : 9 : if (TREE_TYPE (_o2[0]) != utype)
4035 : : {
4036 : 9 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
4037 : : }
4038 : : else
4039 : : _r2 = _o2[0];
4040 : 9 : _o1[0] = _r2;
4041 : : }
4042 : 9 : {
4043 : 9 : tree _o2[1], _r2;
4044 : 9 : _o2[0] = captures[0];
4045 : 9 : if (TREE_TYPE (_o2[0]) != utype)
4046 : : {
4047 : 9 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
4048 : : }
4049 : : else
4050 : : _r2 = _o2[0];
4051 : 9 : _o1[1] = _r2;
4052 : : }
4053 : 9 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4054 : 9 : res_op0 = _r1;
4055 : : }
4056 : 9 : tree _r;
4057 : 9 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
4058 : 9 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 806, __FILE__, __LINE__, true);
4059 : 9 : return _r;
4060 : : }
4061 : 0 : next_after_fail1091:;
4062 : : }
4063 : : }
4064 : : }
4065 : 15 : break;
4066 : : }
4067 : : default:;
4068 : : }
4069 : : break;
4070 : : }
4071 : 1873808 : case PLUS_EXPR:
4072 : 1873808 : {
4073 : 1873808 : tree _q20 = TREE_OPERAND (_p0, 0);
4074 : 1873808 : tree _q21 = TREE_OPERAND (_p0, 1);
4075 : 1873808 : switch (TREE_CODE (_p1))
4076 : : {
4077 : 16 : case BIT_IOR_EXPR:
4078 : 16 : {
4079 : 16 : tree _q50 = TREE_OPERAND (_p1, 0);
4080 : 16 : tree _q51 = TREE_OPERAND (_p1, 1);
4081 : 16 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
4082 : : {
4083 : 15 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
4084 : : {
4085 : 15 : {
4086 : 15 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4087 : 15 : if (!TYPE_OVERFLOW_SANITIZED (type) && !TYPE_OVERFLOW_TRAPS (type)
4088 : 15 : && !TYPE_SATURATING (type)
4089 : : )
4090 : : {
4091 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1092;
4092 : 0 : {
4093 : 0 : tree res_op0;
4094 : 0 : res_op0 = captures[0];
4095 : 0 : tree res_op1;
4096 : 0 : res_op1 = captures[1];
4097 : 0 : tree _r;
4098 : 0 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
4099 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 807, __FILE__, __LINE__, true);
4100 : 0 : return _r;
4101 : : }
4102 : 0 : next_after_fail1092:;
4103 : : }
4104 : : }
4105 : : }
4106 : : }
4107 : : break;
4108 : : }
4109 : 62 : case BIT_AND_EXPR:
4110 : 62 : {
4111 : 62 : tree _q50 = TREE_OPERAND (_p1, 0);
4112 : 62 : tree _q51 = TREE_OPERAND (_p1, 1);
4113 : 62 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
4114 : : {
4115 : 27 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
4116 : : {
4117 : 15 : {
4118 : 15 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4119 : 15 : if (!TYPE_OVERFLOW_SANITIZED (type) && !TYPE_OVERFLOW_TRAPS (type)
4120 : 15 : && !TYPE_SATURATING (type)
4121 : : )
4122 : : {
4123 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1093;
4124 : 0 : {
4125 : 0 : tree res_op0;
4126 : 0 : res_op0 = captures[0];
4127 : 0 : tree res_op1;
4128 : 0 : res_op1 = captures[1];
4129 : 0 : tree _r;
4130 : 0 : _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
4131 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 808, __FILE__, __LINE__, true);
4132 : 0 : return _r;
4133 : : }
4134 : 0 : next_after_fail1093:;
4135 : : }
4136 : : }
4137 : : }
4138 : : }
4139 : : break;
4140 : : }
4141 : 1873808 : default:;
4142 : : }
4143 : 1873808 : switch (TREE_CODE (_q20))
4144 : : {
4145 : 594 : case BIT_AND_EXPR:
4146 : 594 : {
4147 : 594 : tree _q30 = TREE_OPERAND (_q20, 0);
4148 : 594 : tree _q31 = TREE_OPERAND (_q20, 1);
4149 : 594 : if (integer_all_onesp (_q21))
4150 : : {
4151 : 1 : switch (TREE_CODE (_p1))
4152 : : {
4153 : 1 : case BIT_IOR_EXPR:
4154 : 1 : {
4155 : 1 : tree _q70 = TREE_OPERAND (_p1, 0);
4156 : 1 : tree _q71 = TREE_OPERAND (_p1, 1);
4157 : 1 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
4158 : : {
4159 : 1 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
4160 : : {
4161 : 1 : {
4162 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q31 };
4163 : 1 : tree res = generic_simplify_39 (loc, type, _p0, _p1, captures);
4164 : 1 : if (res) return res;
4165 : : }
4166 : : }
4167 : : }
4168 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
4169 : : {
4170 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
4171 : : {
4172 : 0 : {
4173 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q31, _q30 };
4174 : 0 : tree res = generic_simplify_39 (loc, type, _p0, _p1, captures);
4175 : 0 : if (res) return res;
4176 : : }
4177 : : }
4178 : : }
4179 : : break;
4180 : : }
4181 : 0 : default:;
4182 : : }
4183 : 0 : {
4184 : 0 : tree _p1_pops[1];
4185 : 0 : if (tree_nop_convert (_p1, _p1_pops))
4186 : : {
4187 : 0 : tree _q70 = _p1_pops[0];
4188 : 0 : switch (TREE_CODE (_q70))
4189 : : {
4190 : 0 : case BIT_IOR_EXPR:
4191 : 0 : {
4192 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
4193 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
4194 : 0 : if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
4195 : : {
4196 : 0 : if ((_q81 == _q31 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q31, 0) && types_match (_q81, _q31)))
4197 : : {
4198 : 0 : {
4199 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q31 };
4200 : 0 : tree res = generic_simplify_39 (loc, type, _p0, _p1, captures);
4201 : 0 : if (res) return res;
4202 : : }
4203 : : }
4204 : : }
4205 : 0 : if ((_q80 == _q31 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q31, 0) && types_match (_q80, _q31)))
4206 : : {
4207 : 0 : if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
4208 : : {
4209 : 0 : {
4210 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q31, _q30 };
4211 : 0 : tree res = generic_simplify_39 (loc, type, _p0, _p1, captures);
4212 : 0 : if (res) return res;
4213 : : }
4214 : : }
4215 : : }
4216 : : break;
4217 : : }
4218 : : default:;
4219 : : }
4220 : : }
4221 : : }
4222 : : }
4223 : : break;
4224 : : }
4225 : 1873807 : default:;
4226 : : }
4227 : 1873807 : {
4228 : 1873807 : tree _q20_pops[1];
4229 : 1873807 : if (tree_nop_convert (_q20, _q20_pops))
4230 : : {
4231 : 485422 : tree _q30 = _q20_pops[0];
4232 : 485422 : switch (TREE_CODE (_q30))
4233 : : {
4234 : 0 : case BIT_AND_EXPR:
4235 : 0 : {
4236 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
4237 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
4238 : 0 : if (integer_all_onesp (_q21))
4239 : : {
4240 : 0 : switch (TREE_CODE (_p1))
4241 : : {
4242 : 0 : case BIT_IOR_EXPR:
4243 : 0 : {
4244 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
4245 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
4246 : 0 : if ((_q80 == _q40 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q40, 0) && types_match (_q80, _q40)))
4247 : : {
4248 : 0 : if ((_q81 == _q41 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q41, 0) && types_match (_q81, _q41)))
4249 : : {
4250 : 0 : {
4251 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q40, _q41 };
4252 : 0 : tree res = generic_simplify_39 (loc, type, _p0, _p1, captures);
4253 : 0 : if (res) return res;
4254 : : }
4255 : : }
4256 : : }
4257 : 0 : if ((_q80 == _q41 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q41, 0) && types_match (_q80, _q41)))
4258 : : {
4259 : 0 : if ((_q81 == _q40 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q40, 0) && types_match (_q81, _q40)))
4260 : : {
4261 : 0 : {
4262 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q41, _q40 };
4263 : 0 : tree res = generic_simplify_39 (loc, type, _p0, _p1, captures);
4264 : 0 : if (res) return res;
4265 : : }
4266 : : }
4267 : : }
4268 : : break;
4269 : : }
4270 : 0 : default:;
4271 : : }
4272 : 0 : {
4273 : 0 : tree _p1_pops[1];
4274 : 0 : if (tree_nop_convert (_p1, _p1_pops))
4275 : : {
4276 : 0 : tree _q80 = _p1_pops[0];
4277 : 0 : switch (TREE_CODE (_q80))
4278 : : {
4279 : 0 : case BIT_IOR_EXPR:
4280 : 0 : {
4281 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
4282 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
4283 : 0 : if ((_q90 == _q40 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q40, 0) && types_match (_q90, _q40)))
4284 : : {
4285 : 0 : if ((_q91 == _q41 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q41, 0) && types_match (_q91, _q41)))
4286 : : {
4287 : 0 : {
4288 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q40, _q41 };
4289 : 0 : tree res = generic_simplify_39 (loc, type, _p0, _p1, captures);
4290 : 0 : if (res) return res;
4291 : : }
4292 : : }
4293 : : }
4294 : 0 : if ((_q90 == _q41 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q41, 0) && types_match (_q90, _q41)))
4295 : : {
4296 : 0 : if ((_q91 == _q40 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q40, 0) && types_match (_q91, _q40)))
4297 : : {
4298 : 0 : {
4299 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q41, _q40 };
4300 : 0 : tree res = generic_simplify_39 (loc, type, _p0, _p1, captures);
4301 : 0 : if (res) return res;
4302 : : }
4303 : : }
4304 : : }
4305 : : break;
4306 : : }
4307 : : default:;
4308 : : }
4309 : : }
4310 : : }
4311 : : }
4312 : : break;
4313 : : }
4314 : : default:;
4315 : : }
4316 : : }
4317 : : }
4318 : 1873807 : break;
4319 : : }
4320 : 73 : case BIT_IOR_EXPR:
4321 : 73 : {
4322 : 73 : tree _q20 = TREE_OPERAND (_p0, 0);
4323 : 73 : tree _q21 = TREE_OPERAND (_p0, 1);
4324 : 73 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
4325 : : {
4326 : 5 : {
4327 : 5 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
4328 : 5 : tree res = generic_simplify_40 (loc, type, _p0, _p1, captures);
4329 : 5 : if (res) return res;
4330 : : }
4331 : : }
4332 : 68 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
4333 : : {
4334 : 0 : {
4335 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
4336 : 0 : tree res = generic_simplify_40 (loc, type, _p0, _p1, captures);
4337 : 0 : if (res) return res;
4338 : : }
4339 : : }
4340 : 68 : switch (TREE_CODE (_p1))
4341 : : {
4342 : 0 : case BIT_XOR_EXPR:
4343 : 0 : {
4344 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
4345 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
4346 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
4347 : : {
4348 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
4349 : : {
4350 : 0 : {
4351 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4352 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1094;
4353 : 0 : {
4354 : 0 : tree res_op0;
4355 : 0 : res_op0 = captures[0];
4356 : 0 : tree res_op1;
4357 : 0 : res_op1 = captures[1];
4358 : 0 : tree _r;
4359 : 0 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
4360 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 809, __FILE__, __LINE__, true);
4361 : 0 : return _r;
4362 : : }
4363 : 0 : next_after_fail1094:;
4364 : : }
4365 : : }
4366 : : }
4367 : : break;
4368 : : }
4369 : 0 : case BIT_AND_EXPR:
4370 : 0 : {
4371 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
4372 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
4373 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
4374 : : {
4375 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
4376 : : {
4377 : 0 : {
4378 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
4379 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1095;
4380 : 0 : {
4381 : 0 : tree res_op0;
4382 : 0 : res_op0 = captures[0];
4383 : 0 : tree res_op1;
4384 : 0 : res_op1 = captures[1];
4385 : 0 : tree _r;
4386 : 0 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
4387 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 810, __FILE__, __LINE__, true);
4388 : 0 : return _r;
4389 : : }
4390 : 0 : next_after_fail1095:;
4391 : : }
4392 : : }
4393 : : }
4394 : : break;
4395 : : }
4396 : : default:;
4397 : : }
4398 : : break;
4399 : : }
4400 : 25950589 : default:;
4401 : : }
4402 : 25950589 : {
4403 : 25950589 : tree _p0_pops[1];
4404 : 25950589 : if (tree_nop_convert (_p0, _p0_pops))
4405 : : {
4406 : 6284819 : tree _q20 = _p0_pops[0];
4407 : 6284819 : switch (TREE_CODE (_q20))
4408 : : {
4409 : 841544 : case PLUS_EXPR:
4410 : 841544 : {
4411 : 841544 : tree _q30 = TREE_OPERAND (_q20, 0);
4412 : 841544 : tree _q31 = TREE_OPERAND (_q20, 1);
4413 : 841544 : switch (TREE_CODE (_q30))
4414 : : {
4415 : 344 : case BIT_AND_EXPR:
4416 : 344 : {
4417 : 344 : tree _q40 = TREE_OPERAND (_q30, 0);
4418 : 344 : tree _q41 = TREE_OPERAND (_q30, 1);
4419 : 344 : if (integer_all_onesp (_q31))
4420 : : {
4421 : 0 : switch (TREE_CODE (_p1))
4422 : : {
4423 : 0 : case BIT_IOR_EXPR:
4424 : 0 : {
4425 : 0 : tree _q80 = TREE_OPERAND (_p1, 0);
4426 : 0 : tree _q81 = TREE_OPERAND (_p1, 1);
4427 : 0 : if ((_q80 == _q40 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q40, 0) && types_match (_q80, _q40)))
4428 : : {
4429 : 0 : if ((_q81 == _q41 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q41, 0) && types_match (_q81, _q41)))
4430 : : {
4431 : 0 : {
4432 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q40, _q41 };
4433 : 0 : tree res = generic_simplify_39 (loc, type, _p0, _p1, captures);
4434 : 0 : if (res) return res;
4435 : : }
4436 : : }
4437 : : }
4438 : 0 : if ((_q80 == _q41 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q41, 0) && types_match (_q80, _q41)))
4439 : : {
4440 : 0 : if ((_q81 == _q40 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q40, 0) && types_match (_q81, _q40)))
4441 : : {
4442 : 0 : {
4443 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q41, _q40 };
4444 : 0 : tree res = generic_simplify_39 (loc, type, _p0, _p1, captures);
4445 : 0 : if (res) return res;
4446 : : }
4447 : : }
4448 : : }
4449 : : break;
4450 : : }
4451 : 0 : default:;
4452 : : }
4453 : 0 : {
4454 : 0 : tree _p1_pops[1];
4455 : 0 : if (tree_nop_convert (_p1, _p1_pops))
4456 : : {
4457 : 0 : tree _q80 = _p1_pops[0];
4458 : 0 : switch (TREE_CODE (_q80))
4459 : : {
4460 : 0 : case BIT_IOR_EXPR:
4461 : 0 : {
4462 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
4463 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
4464 : 0 : if ((_q90 == _q40 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q40, 0) && types_match (_q90, _q40)))
4465 : : {
4466 : 0 : if ((_q91 == _q41 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q41, 0) && types_match (_q91, _q41)))
4467 : : {
4468 : 0 : {
4469 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q40, _q41 };
4470 : 0 : tree res = generic_simplify_39 (loc, type, _p0, _p1, captures);
4471 : 0 : if (res) return res;
4472 : : }
4473 : : }
4474 : : }
4475 : 0 : if ((_q90 == _q41 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q41, 0) && types_match (_q90, _q41)))
4476 : : {
4477 : 0 : if ((_q91 == _q40 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q40, 0) && types_match (_q91, _q40)))
4478 : : {
4479 : 0 : {
4480 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q41, _q40 };
4481 : 0 : tree res = generic_simplify_39 (loc, type, _p0, _p1, captures);
4482 : 0 : if (res) return res;
4483 : : }
4484 : : }
4485 : : }
4486 : : break;
4487 : : }
4488 : : default:;
4489 : : }
4490 : : }
4491 : : }
4492 : : }
4493 : : break;
4494 : : }
4495 : 841544 : default:;
4496 : : }
4497 : 841544 : {
4498 : 841544 : tree _q30_pops[1];
4499 : 841544 : if (tree_nop_convert (_q30, _q30_pops))
4500 : : {
4501 : 40643 : tree _q40 = _q30_pops[0];
4502 : 40643 : switch (TREE_CODE (_q40))
4503 : : {
4504 : 0 : case BIT_AND_EXPR:
4505 : 0 : {
4506 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
4507 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
4508 : 0 : if (integer_all_onesp (_q31))
4509 : : {
4510 : 0 : switch (TREE_CODE (_p1))
4511 : : {
4512 : 0 : case BIT_IOR_EXPR:
4513 : 0 : {
4514 : 0 : tree _q90 = TREE_OPERAND (_p1, 0);
4515 : 0 : tree _q91 = TREE_OPERAND (_p1, 1);
4516 : 0 : if ((_q90 == _q50 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q50, 0) && types_match (_q90, _q50)))
4517 : : {
4518 : 0 : if ((_q91 == _q51 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q51, 0) && types_match (_q91, _q51)))
4519 : : {
4520 : 0 : {
4521 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q50, _q51 };
4522 : 0 : tree res = generic_simplify_39 (loc, type, _p0, _p1, captures);
4523 : 0 : if (res) return res;
4524 : : }
4525 : : }
4526 : : }
4527 : 0 : if ((_q90 == _q51 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q51, 0) && types_match (_q90, _q51)))
4528 : : {
4529 : 0 : if ((_q91 == _q50 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q50, 0) && types_match (_q91, _q50)))
4530 : : {
4531 : 0 : {
4532 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q51, _q50 };
4533 : 0 : tree res = generic_simplify_39 (loc, type, _p0, _p1, captures);
4534 : 0 : if (res) return res;
4535 : : }
4536 : : }
4537 : : }
4538 : : break;
4539 : : }
4540 : 0 : default:;
4541 : : }
4542 : 0 : {
4543 : 0 : tree _p1_pops[1];
4544 : 0 : if (tree_nop_convert (_p1, _p1_pops))
4545 : : {
4546 : 0 : tree _q90 = _p1_pops[0];
4547 : 0 : switch (TREE_CODE (_q90))
4548 : : {
4549 : 0 : case BIT_IOR_EXPR:
4550 : 0 : {
4551 : 0 : tree _q100 = TREE_OPERAND (_q90, 0);
4552 : 0 : tree _q101 = TREE_OPERAND (_q90, 1);
4553 : 0 : if ((_q100 == _q50 && ! TREE_SIDE_EFFECTS (_q100)) || (operand_equal_p (_q100, _q50, 0) && types_match (_q100, _q50)))
4554 : : {
4555 : 0 : if ((_q101 == _q51 && ! TREE_SIDE_EFFECTS (_q101)) || (operand_equal_p (_q101, _q51, 0) && types_match (_q101, _q51)))
4556 : : {
4557 : 0 : {
4558 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q50, _q51 };
4559 : 0 : tree res = generic_simplify_39 (loc, type, _p0, _p1, captures);
4560 : 0 : if (res) return res;
4561 : : }
4562 : : }
4563 : : }
4564 : 0 : if ((_q100 == _q51 && ! TREE_SIDE_EFFECTS (_q100)) || (operand_equal_p (_q100, _q51, 0) && types_match (_q100, _q51)))
4565 : : {
4566 : 0 : if ((_q101 == _q50 && ! TREE_SIDE_EFFECTS (_q101)) || (operand_equal_p (_q101, _q50, 0) && types_match (_q101, _q50)))
4567 : : {
4568 : 0 : {
4569 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q51, _q50 };
4570 : 0 : tree res = generic_simplify_39 (loc, type, _p0, _p1, captures);
4571 : 0 : if (res) return res;
4572 : : }
4573 : : }
4574 : : }
4575 : : break;
4576 : : }
4577 : : default:;
4578 : : }
4579 : : }
4580 : : }
4581 : : }
4582 : : break;
4583 : : }
4584 : : default:;
4585 : : }
4586 : : }
4587 : : }
4588 : 841544 : break;
4589 : : }
4590 : 14 : case BIT_AND_EXPR:
4591 : 14 : {
4592 : 14 : tree _q30 = TREE_OPERAND (_q20, 0);
4593 : 14 : tree _q31 = TREE_OPERAND (_q20, 1);
4594 : 14 : switch (TREE_CODE (_p1))
4595 : : {
4596 : 0 : case PLUS_EXPR:
4597 : 0 : {
4598 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
4599 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
4600 : 0 : switch (TREE_CODE (_q60))
4601 : : {
4602 : 0 : case BIT_IOR_EXPR:
4603 : 0 : {
4604 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
4605 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
4606 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
4607 : : {
4608 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
4609 : : {
4610 : 0 : if (integer_onep (_q61))
4611 : : {
4612 : 0 : {
4613 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
4614 : 0 : tree res = generic_simplify_38 (loc, type, _p0, _p1, captures);
4615 : 0 : if (res) return res;
4616 : : }
4617 : : }
4618 : : }
4619 : : }
4620 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
4621 : : {
4622 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
4623 : : {
4624 : 0 : if (integer_onep (_q61))
4625 : : {
4626 : 0 : {
4627 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
4628 : 0 : tree res = generic_simplify_38 (loc, type, _p0, _p1, captures);
4629 : 0 : if (res) return res;
4630 : : }
4631 : : }
4632 : : }
4633 : : }
4634 : : break;
4635 : : }
4636 : 0 : default:;
4637 : : }
4638 : 0 : {
4639 : 0 : tree _q60_pops[1];
4640 : 0 : if (tree_nop_convert (_q60, _q60_pops))
4641 : : {
4642 : 0 : tree _q70 = _q60_pops[0];
4643 : 0 : switch (TREE_CODE (_q70))
4644 : : {
4645 : 0 : case BIT_IOR_EXPR:
4646 : 0 : {
4647 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
4648 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
4649 : 0 : if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
4650 : : {
4651 : 0 : if ((_q81 == _q31 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q31, 0) && types_match (_q81, _q31)))
4652 : : {
4653 : 0 : if (integer_onep (_q61))
4654 : : {
4655 : 0 : {
4656 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
4657 : 0 : tree res = generic_simplify_38 (loc, type, _p0, _p1, captures);
4658 : 0 : if (res) return res;
4659 : : }
4660 : : }
4661 : : }
4662 : : }
4663 : 0 : if ((_q80 == _q31 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q31, 0) && types_match (_q80, _q31)))
4664 : : {
4665 : 0 : if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
4666 : : {
4667 : 0 : if (integer_onep (_q61))
4668 : : {
4669 : 0 : {
4670 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
4671 : 0 : tree res = generic_simplify_38 (loc, type, _p0, _p1, captures);
4672 : 0 : if (res) return res;
4673 : : }
4674 : : }
4675 : : }
4676 : : }
4677 : : break;
4678 : : }
4679 : : default:;
4680 : : }
4681 : : }
4682 : : }
4683 : 0 : break;
4684 : : }
4685 : 14 : default:;
4686 : : }
4687 : 14 : {
4688 : 14 : tree _p1_pops[1];
4689 : 14 : if (tree_nop_convert (_p1, _p1_pops))
4690 : : {
4691 : 14 : tree _q60 = _p1_pops[0];
4692 : 14 : switch (TREE_CODE (_q60))
4693 : : {
4694 : 0 : case PLUS_EXPR:
4695 : 0 : {
4696 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
4697 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
4698 : 0 : switch (TREE_CODE (_q70))
4699 : : {
4700 : 0 : case BIT_IOR_EXPR:
4701 : 0 : {
4702 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
4703 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
4704 : 0 : if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
4705 : : {
4706 : 0 : if ((_q81 == _q31 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q31, 0) && types_match (_q81, _q31)))
4707 : : {
4708 : 0 : if (integer_onep (_q71))
4709 : : {
4710 : 0 : {
4711 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q60 };
4712 : 0 : tree res = generic_simplify_38 (loc, type, _p0, _p1, captures);
4713 : 0 : if (res) return res;
4714 : : }
4715 : : }
4716 : : }
4717 : : }
4718 : 0 : if ((_q80 == _q31 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q31, 0) && types_match (_q80, _q31)))
4719 : : {
4720 : 0 : if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
4721 : : {
4722 : 0 : if (integer_onep (_q71))
4723 : : {
4724 : 0 : {
4725 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q60 };
4726 : 0 : tree res = generic_simplify_38 (loc, type, _p0, _p1, captures);
4727 : 0 : if (res) return res;
4728 : : }
4729 : : }
4730 : : }
4731 : : }
4732 : : break;
4733 : : }
4734 : 0 : default:;
4735 : : }
4736 : 0 : {
4737 : 0 : tree _q70_pops[1];
4738 : 0 : if (tree_nop_convert (_q70, _q70_pops))
4739 : : {
4740 : 0 : tree _q80 = _q70_pops[0];
4741 : 0 : switch (TREE_CODE (_q80))
4742 : : {
4743 : 0 : case BIT_IOR_EXPR:
4744 : 0 : {
4745 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
4746 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
4747 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
4748 : : {
4749 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
4750 : : {
4751 : 0 : if (integer_onep (_q71))
4752 : : {
4753 : 0 : {
4754 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q60 };
4755 : 0 : tree res = generic_simplify_38 (loc, type, _p0, _p1, captures);
4756 : 0 : if (res) return res;
4757 : : }
4758 : : }
4759 : : }
4760 : : }
4761 : 0 : if ((_q90 == _q31 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q31, 0) && types_match (_q90, _q31)))
4762 : : {
4763 : 0 : if ((_q91 == _q30 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q30, 0) && types_match (_q91, _q30)))
4764 : : {
4765 : 0 : if (integer_onep (_q71))
4766 : : {
4767 : 0 : {
4768 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q60 };
4769 : 0 : tree res = generic_simplify_38 (loc, type, _p0, _p1, captures);
4770 : 0 : if (res) return res;
4771 : : }
4772 : : }
4773 : : }
4774 : : }
4775 : : break;
4776 : : }
4777 : : default:;
4778 : : }
4779 : : }
4780 : : }
4781 : 0 : break;
4782 : : }
4783 : : default:;
4784 : : }
4785 : : }
4786 : : }
4787 : 14 : break;
4788 : : }
4789 : : default:;
4790 : : }
4791 : : }
4792 : : }
4793 : 25950589 : if (tree_negate_expr_p (_p1))
4794 : : {
4795 : 6584293 : {
4796 : 6584293 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
4797 : 6584293 : if (!FIXED_POINT_TYPE_P (type)
4798 : : )
4799 : : {
4800 : 6584293 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1096;
4801 : 6584293 : {
4802 : 6584293 : tree res_op0;
4803 : 6584293 : res_op0 = captures[0];
4804 : 6584293 : tree res_op1;
4805 : 6584293 : {
4806 : 6584293 : tree _o1[1], _r1;
4807 : 6584293 : _o1[0] = captures[1];
4808 : 6584293 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
4809 : 6584293 : res_op1 = _r1;
4810 : : }
4811 : 6584293 : tree _r;
4812 : 6584293 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
4813 : 6584293 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 811, __FILE__, __LINE__, true);
4814 : 6584293 : return _r;
4815 : : }
4816 : 0 : next_after_fail1096:;
4817 : : }
4818 : : }
4819 : : }
4820 : 19366296 : switch (TREE_CODE (_p0))
4821 : : {
4822 : 3896587 : CASE_CONVERT:
4823 : 3896587 : {
4824 : 3896587 : tree _q20 = TREE_OPERAND (_p0, 0);
4825 : 3896587 : switch (TREE_CODE (_p1))
4826 : : {
4827 : 3218512 : CASE_CONVERT:
4828 : 3218512 : {
4829 : 3218512 : tree _q40 = TREE_OPERAND (_p1, 0);
4830 : 3218512 : switch (TREE_CODE (_q40))
4831 : : {
4832 : 15 : case BIT_AND_EXPR:
4833 : 15 : {
4834 : 15 : tree _q50 = TREE_OPERAND (_q40, 0);
4835 : 15 : tree _q51 = TREE_OPERAND (_q40, 1);
4836 : 15 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
4837 : : {
4838 : 0 : {
4839 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q50, _p1, _q40, _q51, _q20 };
4840 : 0 : tree res = generic_simplify_41 (loc, type, _p0, _p1, captures);
4841 : 0 : if (res) return res;
4842 : : }
4843 : : }
4844 : 15 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q20, 0))
4845 : : {
4846 : 1 : {
4847 : 1 : tree captures[5] ATTRIBUTE_UNUSED = { _q51, _p1, _q40, _q50, _q20 };
4848 : 1 : tree res = generic_simplify_41 (loc, type, _p0, _p1, captures);
4849 : 1 : if (res) return res;
4850 : : }
4851 : : }
4852 : : break;
4853 : : }
4854 : : default:;
4855 : : }
4856 : : break;
4857 : : }
4858 : 4988 : case BIT_AND_EXPR:
4859 : 4988 : {
4860 : 4988 : tree _q40 = TREE_OPERAND (_p1, 0);
4861 : 4988 : tree _q41 = TREE_OPERAND (_p1, 1);
4862 : 4988 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _q20, 0))
4863 : : {
4864 : 0 : {
4865 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q40, _p1, _p1, _q41, _q20 };
4866 : 0 : tree res = generic_simplify_42 (loc, type, _p0, _p1, captures);
4867 : 0 : if (res) return res;
4868 : : }
4869 : : }
4870 : 4988 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _q20, 0))
4871 : : {
4872 : 21 : {
4873 : 21 : tree captures[5] ATTRIBUTE_UNUSED = { _q41, _p1, _p1, _q40, _q20 };
4874 : 21 : tree res = generic_simplify_42 (loc, type, _p0, _p1, captures);
4875 : 21 : if (res) return res;
4876 : : }
4877 : : }
4878 : : break;
4879 : : }
4880 : 3896565 : default:;
4881 : : }
4882 : 3896565 : switch (TREE_CODE (_q20))
4883 : : {
4884 : 86633 : case ADDR_EXPR:
4885 : 86633 : {
4886 : 86633 : switch (TREE_CODE (_p1))
4887 : : {
4888 : 81987 : CASE_CONVERT:
4889 : 81987 : {
4890 : 81987 : tree _q40 = TREE_OPERAND (_p1, 0);
4891 : 81987 : switch (TREE_CODE (_q40))
4892 : : {
4893 : 17874 : case POINTER_PLUS_EXPR:
4894 : 17874 : {
4895 : 17874 : tree _q50 = TREE_OPERAND (_q40, 0);
4896 : 17874 : tree _q51 = TREE_OPERAND (_q40, 1);
4897 : 17874 : {
4898 : 17874 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q50, _q51 };
4899 : 17874 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
4900 : : )
4901 : : {
4902 : 17874 : {
4903 : 17874 : poly_int64 diff;
4904 : 17874 : if (ptr_difference_const (captures[0], captures[1], &diff)
4905 : : )
4906 : : {
4907 : 6903 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1097;
4908 : 6903 : {
4909 : 6903 : tree res_op0;
4910 : 6903 : res_op0 = build_int_cst_type (type, diff);
4911 : 6903 : tree res_op1;
4912 : 6903 : {
4913 : 6903 : tree _o1[1], _r1;
4914 : 6903 : _o1[0] = captures[2];
4915 : 6903 : if (TREE_TYPE (_o1[0]) != type)
4916 : : {
4917 : 6903 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
4918 : : }
4919 : : else
4920 : : _r1 = _o1[0];
4921 : 6903 : res_op1 = _r1;
4922 : : }
4923 : 6903 : tree _r;
4924 : 6903 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
4925 : 6903 : if (TREE_SIDE_EFFECTS (captures[0]))
4926 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
4927 : 6903 : if (TREE_SIDE_EFFECTS (captures[1]))
4928 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
4929 : 6903 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 812, __FILE__, __LINE__, true);
4930 : 6903 : return _r;
4931 : : }
4932 : 0 : next_after_fail1097:;
4933 : : }
4934 : : }
4935 : : }
4936 : : }
4937 : 10971 : break;
4938 : : }
4939 : 75084 : default:;
4940 : : }
4941 : 75084 : {
4942 : 75084 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
4943 : 75084 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
4944 : : )
4945 : : {
4946 : 75084 : {
4947 : 75084 : poly_int64 diff;
4948 : 75084 : if (ptr_difference_const (captures[0], captures[1], &diff)
4949 : : )
4950 : : {
4951 : 50951 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1098;
4952 : 50951 : {
4953 : 50951 : tree _r;
4954 : 50951 : _r = build_int_cst_type (type, diff);
4955 : 50951 : if (TREE_SIDE_EFFECTS (captures[0]))
4956 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
4957 : 50951 : if (TREE_SIDE_EFFECTS (captures[1]))
4958 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
4959 : 50951 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 813, __FILE__, __LINE__, true);
4960 : 50951 : return _r;
4961 : : }
4962 : 0 : next_after_fail1098:;
4963 : : }
4964 : : }
4965 : : }
4966 : : }
4967 : 24133 : break;
4968 : : }
4969 : : default:;
4970 : : }
4971 : : break;
4972 : : }
4973 : 59095 : case POINTER_PLUS_EXPR:
4974 : 59095 : {
4975 : 59095 : tree _q30 = TREE_OPERAND (_q20, 0);
4976 : 59095 : tree _q31 = TREE_OPERAND (_q20, 1);
4977 : 59095 : switch (TREE_CODE (_p1))
4978 : : {
4979 : 58687 : CASE_CONVERT:
4980 : 58687 : {
4981 : 58687 : tree _q60 = TREE_OPERAND (_p1, 0);
4982 : 58687 : switch (TREE_CODE (_q60))
4983 : : {
4984 : 2735 : case ADDR_EXPR:
4985 : 2735 : {
4986 : 2735 : {
4987 : 2735 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q60 };
4988 : 2735 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
4989 : : )
4990 : : {
4991 : 2735 : {
4992 : 2735 : poly_int64 diff;
4993 : 2735 : if (ptr_difference_const (captures[0], captures[2], &diff)
4994 : : )
4995 : : {
4996 : 861 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1099;
4997 : 861 : {
4998 : 861 : tree res_op0;
4999 : 861 : {
5000 : 861 : tree _o1[1], _r1;
5001 : 861 : _o1[0] = captures[1];
5002 : 861 : if (TREE_TYPE (_o1[0]) != type)
5003 : : {
5004 : 584 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
5005 : : }
5006 : : else
5007 : : _r1 = _o1[0];
5008 : 861 : res_op0 = _r1;
5009 : : }
5010 : 861 : tree res_op1;
5011 : 861 : res_op1 = build_int_cst_type (type, diff);
5012 : 861 : tree _r;
5013 : 861 : _r = fold_build2_loc (loc, PLUS_EXPR, type, res_op0, res_op1);
5014 : 861 : if (TREE_SIDE_EFFECTS (captures[0]))
5015 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
5016 : 861 : if (TREE_SIDE_EFFECTS (captures[2]))
5017 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
5018 : 861 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 814, __FILE__, __LINE__, true);
5019 : 861 : return _r;
5020 : : }
5021 : 0 : next_after_fail1099:;
5022 : : }
5023 : : }
5024 : : }
5025 : : }
5026 : 1874 : break;
5027 : : }
5028 : : default:;
5029 : : }
5030 : : break;
5031 : : }
5032 : : default:;
5033 : : }
5034 : : break;
5035 : : }
5036 : 3837850 : default:;
5037 : : }
5038 : 3837850 : switch (TREE_CODE (_p1))
5039 : : {
5040 : 3159796 : CASE_CONVERT:
5041 : 3159796 : {
5042 : 3159796 : tree _q40 = TREE_OPERAND (_p1, 0);
5043 : 3159796 : switch (TREE_CODE (_q40))
5044 : : {
5045 : 38070 : case ADDR_EXPR:
5046 : 38070 : {
5047 : 38070 : {
5048 : 38070 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
5049 : 38070 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
5050 : : )
5051 : : {
5052 : 38042 : {
5053 : 38042 : poly_int64 diff;
5054 : 38042 : if (ptr_difference_const (captures[0], captures[1], &diff)
5055 : : )
5056 : : {
5057 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1100;
5058 : 0 : {
5059 : 0 : tree _r;
5060 : 0 : _r = build_int_cst_type (type, diff);
5061 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
5062 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
5063 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
5064 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
5065 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 815, __FILE__, __LINE__, true);
5066 : 0 : return _r;
5067 : : }
5068 : 0 : next_after_fail1100:;
5069 : : }
5070 : : }
5071 : : }
5072 : : }
5073 : 38070 : break;
5074 : : }
5075 : : default:;
5076 : : }
5077 : : break;
5078 : : }
5079 : : default:;
5080 : : }
5081 : : break;
5082 : : }
5083 : 19307559 : default:;
5084 : : }
5085 : 19307559 : if (integer_onep (_p0))
5086 : : {
5087 : 86672 : switch (TREE_CODE (_p1))
5088 : : {
5089 : 29021 : case SSA_NAME:
5090 : 29021 : {
5091 : 29021 : {
5092 : 29021 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
5093 : 29021 : if (INTEGRAL_TYPE_P (type)
5094 : 29021 : && ssa_name_has_boolean_range (captures[1])
5095 : : )
5096 : : {
5097 : 212 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1101;
5098 : 212 : {
5099 : 212 : tree res_op0;
5100 : 212 : res_op0 = captures[1];
5101 : 212 : tree res_op1;
5102 : 212 : res_op1 = captures[0];
5103 : 212 : tree _r;
5104 : 212 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
5105 : 212 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 816, __FILE__, __LINE__, true);
5106 : 212 : return _r;
5107 : : }
5108 : 0 : next_after_fail1101:;
5109 : : }
5110 : : }
5111 : 28809 : break;
5112 : : }
5113 : : default:;
5114 : : }
5115 : : }
5116 : 19307347 : switch (TREE_CODE (_p1))
5117 : : {
5118 : 5651953 : CASE_CONVERT:
5119 : 5651953 : {
5120 : 5651953 : tree _q30 = TREE_OPERAND (_p1, 0);
5121 : 5651953 : switch (TREE_CODE (_q30))
5122 : : {
5123 : 14 : case BIT_AND_EXPR:
5124 : 14 : {
5125 : 14 : tree _q40 = TREE_OPERAND (_q30, 0);
5126 : 14 : tree _q41 = TREE_OPERAND (_q30, 1);
5127 : 14 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _p0, 0))
5128 : : {
5129 : 0 : {
5130 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q40, _p1, _q30, _q41, _p0 };
5131 : 0 : tree res = generic_simplify_41 (loc, type, _p0, _p1, captures);
5132 : 0 : if (res) return res;
5133 : : }
5134 : : }
5135 : 14 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _p0, 0))
5136 : : {
5137 : 0 : {
5138 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q41, _p1, _q30, _q40, _p0 };
5139 : 0 : tree res = generic_simplify_41 (loc, type, _p0, _p1, captures);
5140 : 0 : if (res) return res;
5141 : : }
5142 : : }
5143 : : break;
5144 : : }
5145 : : default:;
5146 : : }
5147 : : break;
5148 : : }
5149 : 6769 : case BIT_AND_EXPR:
5150 : 6769 : {
5151 : 6769 : tree _q30 = TREE_OPERAND (_p1, 0);
5152 : 6769 : tree _q31 = TREE_OPERAND (_p1, 1);
5153 : 6769 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || operand_equal_p (_q30, _p0, 0))
5154 : : {
5155 : 225 : {
5156 : 225 : tree captures[5] ATTRIBUTE_UNUSED = { _q30, _p1, _p1, _q31, _p0 };
5157 : 225 : tree res = generic_simplify_42 (loc, type, _p0, _p1, captures);
5158 : 225 : if (res) return res;
5159 : : }
5160 : : }
5161 : 6544 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || operand_equal_p (_q31, _p0, 0))
5162 : : {
5163 : 38 : {
5164 : 38 : tree captures[5] ATTRIBUTE_UNUSED = { _q31, _p1, _p1, _q30, _p0 };
5165 : 38 : tree res = generic_simplify_42 (loc, type, _p0, _p1, captures);
5166 : 38 : if (res) return res;
5167 : : }
5168 : : }
5169 : : break;
5170 : : }
5171 : 19307084 : default:;
5172 : : }
5173 : 19307084 : switch (TREE_CODE (_p0))
5174 : : {
5175 : 1477867 : case PLUS_EXPR:
5176 : 1477867 : {
5177 : 1477867 : tree _q20 = TREE_OPERAND (_p0, 0);
5178 : 1477867 : tree _q21 = TREE_OPERAND (_p0, 1);
5179 : 1477867 : switch (TREE_CODE (_p1))
5180 : : {
5181 : 390546 : case PLUS_EXPR:
5182 : 390546 : {
5183 : 390546 : tree _q50 = TREE_OPERAND (_p1, 0);
5184 : 390546 : tree _q51 = TREE_OPERAND (_p1, 1);
5185 : 390546 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5186 : : {
5187 : 143042 : {
5188 : 143042 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
5189 : 286084 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
5190 : 286084 : && (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
5191 : 35553 : || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[0])))
5192 : : )
5193 : : {
5194 : 143036 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1102;
5195 : 143036 : {
5196 : 143036 : tree res_op0;
5197 : 143036 : res_op0 = captures[0];
5198 : 143036 : tree res_op1;
5199 : 143036 : res_op1 = captures[2];
5200 : 143036 : tree _r;
5201 : 143036 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
5202 : 143036 : if (TREE_SIDE_EFFECTS (captures[1]))
5203 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
5204 : 143036 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 817, __FILE__, __LINE__, true);
5205 : 143036 : return _r;
5206 : : }
5207 : 0 : next_after_fail1102:;
5208 : : }
5209 : : }
5210 : : }
5211 : 247510 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
5212 : : {
5213 : 392 : {
5214 : 392 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
5215 : 784 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
5216 : 784 : && (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
5217 : 263 : || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[0])))
5218 : : )
5219 : : {
5220 : 392 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1103;
5221 : 392 : {
5222 : 392 : tree res_op0;
5223 : 392 : res_op0 = captures[0];
5224 : 392 : tree res_op1;
5225 : 392 : res_op1 = captures[2];
5226 : 392 : tree _r;
5227 : 392 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
5228 : 392 : if (TREE_SIDE_EFFECTS (captures[1]))
5229 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
5230 : 392 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 817, __FILE__, __LINE__, true);
5231 : 392 : return _r;
5232 : : }
5233 : 0 : next_after_fail1103:;
5234 : : }
5235 : : }
5236 : : }
5237 : 247118 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
5238 : : {
5239 : 473 : {
5240 : 473 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
5241 : 946 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
5242 : 946 : && (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
5243 : 352 : || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[0])))
5244 : : )
5245 : : {
5246 : 473 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1104;
5247 : 473 : {
5248 : 473 : tree res_op0;
5249 : 473 : res_op0 = captures[0];
5250 : 473 : tree res_op1;
5251 : 473 : res_op1 = captures[2];
5252 : 473 : tree _r;
5253 : 473 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
5254 : 473 : if (TREE_SIDE_EFFECTS (captures[1]))
5255 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
5256 : 473 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 817, __FILE__, __LINE__, true);
5257 : 473 : return _r;
5258 : : }
5259 : 0 : next_after_fail1104:;
5260 : : }
5261 : : }
5262 : : }
5263 : 246645 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5264 : : {
5265 : 149186 : {
5266 : 149186 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
5267 : 298372 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
5268 : 298372 : && (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
5269 : 107425 : || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[0])))
5270 : : )
5271 : : {
5272 : 149186 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1105;
5273 : 149186 : {
5274 : 149186 : tree res_op0;
5275 : 149186 : res_op0 = captures[0];
5276 : 149186 : tree res_op1;
5277 : 149186 : res_op1 = captures[2];
5278 : 149186 : tree _r;
5279 : 149186 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
5280 : 149186 : if (TREE_SIDE_EFFECTS (captures[1]))
5281 : 2 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
5282 : 149186 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 817, __FILE__, __LINE__, true);
5283 : 149186 : return _r;
5284 : : }
5285 : 0 : next_after_fail1105:;
5286 : : }
5287 : : }
5288 : : }
5289 : : break;
5290 : : }
5291 : : default:;
5292 : : }
5293 : : break;
5294 : : }
5295 : 847271 : case MINUS_EXPR:
5296 : 847271 : {
5297 : 847271 : tree _q20 = TREE_OPERAND (_p0, 0);
5298 : 847271 : tree _q21 = TREE_OPERAND (_p0, 1);
5299 : 847271 : switch (TREE_CODE (_p1))
5300 : : {
5301 : 2906 : case MINUS_EXPR:
5302 : 2906 : {
5303 : 2906 : tree _q50 = TREE_OPERAND (_p1, 0);
5304 : 2906 : tree _q51 = TREE_OPERAND (_p1, 1);
5305 : 2906 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5306 : : {
5307 : 2852 : {
5308 : 2852 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
5309 : 5704 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
5310 : 5704 : && (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
5311 : 0 : || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[0])))
5312 : : )
5313 : : {
5314 : 2852 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1106;
5315 : 2852 : {
5316 : 2852 : tree res_op0;
5317 : 2852 : res_op0 = captures[0];
5318 : 2852 : tree res_op1;
5319 : 2852 : res_op1 = captures[2];
5320 : 2852 : tree _r;
5321 : 2852 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
5322 : 2852 : if (TREE_SIDE_EFFECTS (captures[1]))
5323 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
5324 : 2852 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 818, __FILE__, __LINE__, true);
5325 : 2852 : return _r;
5326 : : }
5327 : 0 : next_after_fail1106:;
5328 : : }
5329 : : }
5330 : : }
5331 : 54 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5332 : : {
5333 : 0 : {
5334 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
5335 : 0 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
5336 : 0 : && (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[1]))
5337 : 0 : || TYPE_OVERFLOW_WRAPS (TREE_TYPE (captures[1])))
5338 : : )
5339 : : {
5340 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1107;
5341 : 0 : {
5342 : 0 : tree res_op0;
5343 : 0 : res_op0 = captures[2];
5344 : 0 : tree res_op1;
5345 : 0 : res_op1 = captures[1];
5346 : 0 : tree _r;
5347 : 0 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
5348 : 0 : if (TREE_SIDE_EFFECTS (captures[0]))
5349 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
5350 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 819, __FILE__, __LINE__, true);
5351 : 0 : return _r;
5352 : : }
5353 : 0 : next_after_fail1107:;
5354 : : }
5355 : : }
5356 : : }
5357 : : break;
5358 : : }
5359 : : default:;
5360 : : }
5361 : : break;
5362 : : }
5363 : 59 : case POINTER_DIFF_EXPR:
5364 : 59 : {
5365 : 59 : tree _q20 = TREE_OPERAND (_p0, 0);
5366 : 59 : tree _q21 = TREE_OPERAND (_p0, 1);
5367 : 59 : switch (TREE_CODE (_p1))
5368 : : {
5369 : 0 : case POINTER_DIFF_EXPR:
5370 : 0 : {
5371 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
5372 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
5373 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
5374 : : {
5375 : 0 : {
5376 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50 };
5377 : 0 : if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
5378 : 0 : && !TYPE_OVERFLOW_SANITIZED (TREE_TYPE (captures[2]))
5379 : : )
5380 : : {
5381 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1108;
5382 : 0 : {
5383 : 0 : tree res_op0;
5384 : 0 : res_op0 = captures[1];
5385 : 0 : tree res_op1;
5386 : 0 : res_op1 = captures[3];
5387 : 0 : tree _r;
5388 : 0 : _r = fold_build2_loc (loc, POINTER_DIFF_EXPR, type, res_op0, res_op1);
5389 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
5390 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
5391 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 820, __FILE__, __LINE__, true);
5392 : 0 : return _r;
5393 : : }
5394 : 0 : next_after_fail1108:;
5395 : : }
5396 : : }
5397 : : }
5398 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5399 : : {
5400 : 0 : {
5401 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q51 };
5402 : 0 : if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
5403 : 0 : && !TYPE_OVERFLOW_SANITIZED (TREE_TYPE (captures[1]))
5404 : : )
5405 : : {
5406 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1109;
5407 : 0 : {
5408 : 0 : tree res_op0;
5409 : 0 : res_op0 = captures[3];
5410 : 0 : tree res_op1;
5411 : 0 : res_op1 = captures[2];
5412 : 0 : tree _r;
5413 : 0 : _r = fold_build2_loc (loc, POINTER_DIFF_EXPR, type, res_op0, res_op1);
5414 : 0 : if (TREE_SIDE_EFFECTS (captures[1]))
5415 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
5416 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 821, __FILE__, __LINE__, true);
5417 : 0 : return _r;
5418 : : }
5419 : 0 : next_after_fail1109:;
5420 : : }
5421 : : }
5422 : : }
5423 : : break;
5424 : : }
5425 : : default:;
5426 : : }
5427 : : break;
5428 : : }
5429 : 19011145 : default:;
5430 : : }
5431 : 19011145 : switch (TREE_CODE (_p1))
5432 : : {
5433 : 5651953 : CASE_CONVERT:
5434 : 5651953 : {
5435 : 5651953 : tree _q30 = TREE_OPERAND (_p1, 0);
5436 : 5651953 : switch (TREE_CODE (_q30))
5437 : : {
5438 : 837 : case NEGATE_EXPR:
5439 : 837 : {
5440 : 837 : tree _q40 = TREE_OPERAND (_q30, 0);
5441 : 837 : {
5442 : 837 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q40 };
5443 : 837 : tree res = generic_simplify_43 (loc, type, _p0, _p1, captures);
5444 : 837 : if (res) return res;
5445 : : }
5446 : 837 : break;
5447 : : }
5448 : : default:;
5449 : : }
5450 : : break;
5451 : : }
5452 : 44 : case NEGATE_EXPR:
5453 : 44 : {
5454 : 44 : tree _q30 = TREE_OPERAND (_p1, 0);
5455 : 44 : {
5456 : 44 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
5457 : 44 : tree res = generic_simplify_43 (loc, type, _p0, _p1, captures);
5458 : 44 : if (res) return res;
5459 : : }
5460 : 44 : break;
5461 : : }
5462 : 19011145 : default:;
5463 : : }
5464 : 19011145 : switch (TREE_CODE (_p0))
5465 : : {
5466 : 1184780 : case PLUS_EXPR:
5467 : 1184780 : {
5468 : 1184780 : tree _q20 = TREE_OPERAND (_p0, 0);
5469 : 1184780 : tree _q21 = TREE_OPERAND (_p0, 1);
5470 : 1184780 : {
5471 : 1184780 : tree _q20_pops[1];
5472 : 1184780 : if (tree_nop_convert (_q20, _q20_pops))
5473 : : {
5474 : 303554 : tree _q30 = _q20_pops[0];
5475 : 303554 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
5476 : : {
5477 : 292 : {
5478 : 292 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q21 };
5479 : 292 : tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
5480 : 292 : if (res) return res;
5481 : : }
5482 : : }
5483 : : }
5484 : : }
5485 : 1184488 : {
5486 : 1184488 : tree _q21_pops[1];
5487 : 1184488 : if (tree_nop_convert (_q21, _q21_pops))
5488 : : {
5489 : 395795 : tree _q40 = _q21_pops[0];
5490 : 395795 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
5491 : : {
5492 : 156 : {
5493 : 156 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q20 };
5494 : 156 : tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
5495 : 156 : if (res) return res;
5496 : : }
5497 : : }
5498 : : }
5499 : : }
5500 : 1184332 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
5501 : : {
5502 : 28849 : {
5503 : 28849 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5504 : 28849 : tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
5505 : 28849 : if (res) return res;
5506 : : }
5507 : : }
5508 : 1155483 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
5509 : : {
5510 : 8941 : {
5511 : 8941 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
5512 : 8941 : tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
5513 : 8941 : if (res) return res;
5514 : : }
5515 : : }
5516 : : break;
5517 : : }
5518 : 844419 : case MINUS_EXPR:
5519 : 844419 : {
5520 : 844419 : tree _q20 = TREE_OPERAND (_p0, 0);
5521 : 844419 : tree _q21 = TREE_OPERAND (_p0, 1);
5522 : 844419 : {
5523 : 844419 : tree _q20_pops[1];
5524 : 844419 : if (tree_nop_convert (_q20, _q20_pops))
5525 : : {
5526 : 64926 : tree _q30 = _q20_pops[0];
5527 : 64926 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
5528 : : {
5529 : 0 : {
5530 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q21 };
5531 : 0 : tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
5532 : 0 : if (res) return res;
5533 : : }
5534 : : }
5535 : : }
5536 : : }
5537 : 844419 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
5538 : : {
5539 : 228 : {
5540 : 228 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
5541 : 228 : tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
5542 : 228 : if (res) return res;
5543 : : }
5544 : : }
5545 : : break;
5546 : : }
5547 : 18972692 : default:;
5548 : : }
5549 : 18972692 : {
5550 : 18972692 : tree _p0_pops[1];
5551 : 18972692 : if (tree_nop_convert (_p0, _p0_pops))
5552 : : {
5553 : 3449656 : tree _q20 = _p0_pops[0];
5554 : 3449656 : switch (TREE_CODE (_q20))
5555 : : {
5556 : 285196 : case PLUS_EXPR:
5557 : 285196 : {
5558 : 285196 : tree _q30 = TREE_OPERAND (_q20, 0);
5559 : 285196 : tree _q31 = TREE_OPERAND (_q20, 1);
5560 : 285196 : {
5561 : 285196 : tree _q30_pops[1];
5562 : 285196 : if (tree_nop_convert (_q30, _q30_pops))
5563 : : {
5564 : 26910 : tree _q40 = _q30_pops[0];
5565 : 26910 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
5566 : : {
5567 : 741 : {
5568 : 741 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q31 };
5569 : 741 : tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
5570 : 741 : if (res) return res;
5571 : : }
5572 : : }
5573 : : }
5574 : : }
5575 : 284455 : {
5576 : 284455 : tree _q31_pops[1];
5577 : 284455 : if (tree_nop_convert (_q31, _q31_pops))
5578 : : {
5579 : 2278 : tree _q50 = _q31_pops[0];
5580 : 2278 : if ((_p1 == _q50 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q50, 0) && types_match (_p1, _q50)))
5581 : : {
5582 : 104 : {
5583 : 104 : tree captures[2] ATTRIBUTE_UNUSED = { _q50, _q30 };
5584 : 104 : tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
5585 : 104 : if (res) return res;
5586 : : }
5587 : : }
5588 : : }
5589 : : }
5590 : 284351 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
5591 : : {
5592 : 43 : {
5593 : 43 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
5594 : 43 : tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
5595 : 43 : if (res) return res;
5596 : : }
5597 : : }
5598 : 284308 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
5599 : : {
5600 : 0 : {
5601 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q31, _q30 };
5602 : 0 : tree res = generic_simplify_44 (loc, type, _p0, _p1, captures);
5603 : 0 : if (res) return res;
5604 : : }
5605 : : }
5606 : : break;
5607 : : }
5608 : 218 : case MINUS_EXPR:
5609 : 218 : {
5610 : 218 : tree _q30 = TREE_OPERAND (_q20, 0);
5611 : 218 : tree _q31 = TREE_OPERAND (_q20, 1);
5612 : 218 : {
5613 : 218 : tree _q30_pops[1];
5614 : 218 : if (tree_nop_convert (_q30, _q30_pops))
5615 : : {
5616 : 0 : tree _q40 = _q30_pops[0];
5617 : 0 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
5618 : : {
5619 : 0 : {
5620 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q31 };
5621 : 0 : tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
5622 : 0 : if (res) return res;
5623 : : }
5624 : : }
5625 : : }
5626 : : }
5627 : 218 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
5628 : : {
5629 : 0 : {
5630 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
5631 : 0 : tree res = generic_simplify_45 (loc, type, _p0, _p1, captures);
5632 : 0 : if (res) return res;
5633 : : }
5634 : : }
5635 : : break;
5636 : : }
5637 : : default:;
5638 : : }
5639 : : }
5640 : : }
5641 : 18971804 : switch (TREE_CODE (_p1))
5642 : : {
5643 : 1050703 : case PLUS_EXPR:
5644 : 1050703 : {
5645 : 1050703 : tree _q30 = TREE_OPERAND (_p1, 0);
5646 : 1050703 : tree _q31 = TREE_OPERAND (_p1, 1);
5647 : 1050703 : {
5648 : 1050703 : tree _q30_pops[1];
5649 : 1050703 : if (tree_nop_convert (_q30, _q30_pops))
5650 : : {
5651 : 242636 : tree _q40 = _q30_pops[0];
5652 : 242636 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
5653 : : {
5654 : 195 : {
5655 : 195 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
5656 : 195 : tree res = generic_simplify_46 (loc, type, _p0, _p1, captures);
5657 : 195 : if (res) return res;
5658 : : }
5659 : : }
5660 : : }
5661 : : }
5662 : 1050508 : {
5663 : 1050508 : tree _q31_pops[1];
5664 : 1050508 : if (tree_nop_convert (_q31, _q31_pops))
5665 : : {
5666 : 51323 : tree _q50 = _q31_pops[0];
5667 : 51323 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
5668 : : {
5669 : 0 : {
5670 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
5671 : 0 : tree res = generic_simplify_46 (loc, type, _p0, _p1, captures);
5672 : 0 : if (res) return res;
5673 : : }
5674 : : }
5675 : : }
5676 : : }
5677 : 1050508 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
5678 : : {
5679 : 25623 : {
5680 : 25623 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
5681 : 25623 : tree res = generic_simplify_46 (loc, type, _p0, _p1, captures);
5682 : 25623 : if (res) return res;
5683 : : }
5684 : : }
5685 : 1024885 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
5686 : : {
5687 : 2922 : {
5688 : 2922 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
5689 : 2922 : tree res = generic_simplify_46 (loc, type, _p0, _p1, captures);
5690 : 2922 : if (res) return res;
5691 : : }
5692 : : }
5693 : : break;
5694 : : }
5695 : 64255 : case MINUS_EXPR:
5696 : 64255 : {
5697 : 64255 : tree _q30 = TREE_OPERAND (_p1, 0);
5698 : 64255 : tree _q31 = TREE_OPERAND (_p1, 1);
5699 : 64255 : {
5700 : 64255 : tree _q30_pops[1];
5701 : 64255 : if (tree_nop_convert (_q30, _q30_pops))
5702 : : {
5703 : 61 : tree _q40 = _q30_pops[0];
5704 : 61 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
5705 : : {
5706 : 0 : {
5707 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
5708 : 0 : tree res = generic_simplify_47 (loc, type, _p0, _p1, captures);
5709 : 0 : if (res) return res;
5710 : : }
5711 : : }
5712 : : }
5713 : : }
5714 : 64255 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
5715 : : {
5716 : 131 : {
5717 : 131 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
5718 : 131 : tree res = generic_simplify_47 (loc, type, _p0, _p1, captures);
5719 : 131 : if (res) return res;
5720 : : }
5721 : : }
5722 : : break;
5723 : : }
5724 : 18942933 : default:;
5725 : : }
5726 : 18942933 : {
5727 : 18942933 : tree _p1_pops[1];
5728 : 18942933 : if (tree_nop_convert (_p1, _p1_pops))
5729 : : {
5730 : 5050382 : tree _q30 = _p1_pops[0];
5731 : 5050382 : switch (TREE_CODE (_q30))
5732 : : {
5733 : 505905 : case PLUS_EXPR:
5734 : 505905 : {
5735 : 505905 : tree _q40 = TREE_OPERAND (_q30, 0);
5736 : 505905 : tree _q41 = TREE_OPERAND (_q30, 1);
5737 : 505905 : {
5738 : 505905 : tree _q40_pops[1];
5739 : 505905 : if (tree_nop_convert (_q40, _q40_pops))
5740 : : {
5741 : 60131 : tree _q50 = _q40_pops[0];
5742 : 60131 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
5743 : : {
5744 : 129 : {
5745 : 129 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
5746 : 129 : tree res = generic_simplify_46 (loc, type, _p0, _p1, captures);
5747 : 129 : if (res) return res;
5748 : : }
5749 : : }
5750 : : }
5751 : : }
5752 : 505776 : {
5753 : 505776 : tree _q41_pops[1];
5754 : 505776 : if (tree_nop_convert (_q41, _q41_pops))
5755 : : {
5756 : 11874 : tree _q60 = _q41_pops[0];
5757 : 11874 : if ((_q60 == _p0 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _p0, 0) && types_match (_q60, _p0)))
5758 : : {
5759 : 0 : {
5760 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q40 };
5761 : 0 : tree res = generic_simplify_46 (loc, type, _p0, _p1, captures);
5762 : 0 : if (res) return res;
5763 : : }
5764 : : }
5765 : : }
5766 : : }
5767 : 505776 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
5768 : : {
5769 : 6 : {
5770 : 6 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
5771 : 6 : tree res = generic_simplify_46 (loc, type, _p0, _p1, captures);
5772 : 6 : if (res) return res;
5773 : : }
5774 : : }
5775 : 505770 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
5776 : : {
5777 : 4 : {
5778 : 4 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q40 };
5779 : 4 : tree res = generic_simplify_46 (loc, type, _p0, _p1, captures);
5780 : 4 : if (res) return res;
5781 : : }
5782 : : }
5783 : : break;
5784 : : }
5785 : 6597 : case MINUS_EXPR:
5786 : 6597 : {
5787 : 6597 : tree _q40 = TREE_OPERAND (_q30, 0);
5788 : 6597 : tree _q41 = TREE_OPERAND (_q30, 1);
5789 : 6597 : {
5790 : 6597 : tree _q40_pops[1];
5791 : 6597 : if (tree_nop_convert (_q40, _q40_pops))
5792 : : {
5793 : 5925 : tree _q50 = _q40_pops[0];
5794 : 5925 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
5795 : : {
5796 : 0 : {
5797 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
5798 : 0 : tree res = generic_simplify_47 (loc, type, _p0, _p1, captures);
5799 : 0 : if (res) return res;
5800 : : }
5801 : : }
5802 : : }
5803 : : }
5804 : 6597 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
5805 : : {
5806 : 4 : {
5807 : 4 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
5808 : 4 : tree res = generic_simplify_47 (loc, type, _p0, _p1, captures);
5809 : 4 : if (res) return res;
5810 : : }
5811 : : }
5812 : : break;
5813 : : }
5814 : : default:;
5815 : : }
5816 : : }
5817 : : }
5818 : 18942790 : switch (TREE_CODE (_p0))
5819 : : {
5820 : 1146555 : case PLUS_EXPR:
5821 : 1146555 : {
5822 : 1146555 : tree _q20 = TREE_OPERAND (_p0, 0);
5823 : 1146555 : tree _q21 = TREE_OPERAND (_p0, 1);
5824 : 1146555 : switch (TREE_CODE (_p1))
5825 : : {
5826 : 128 : case MINUS_EXPR:
5827 : 128 : {
5828 : 128 : tree _q50 = TREE_OPERAND (_p1, 0);
5829 : 128 : tree _q51 = TREE_OPERAND (_p1, 1);
5830 : 128 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
5831 : : {
5832 : 0 : {
5833 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
5834 : 0 : tree res = generic_simplify_48 (loc, type, _p0, _p1, captures);
5835 : 0 : if (res) return res;
5836 : : }
5837 : : }
5838 : 128 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
5839 : : {
5840 : 0 : {
5841 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
5842 : 0 : tree res = generic_simplify_48 (loc, type, _p0, _p1, captures);
5843 : 0 : if (res) return res;
5844 : : }
5845 : : }
5846 : : break;
5847 : : }
5848 : 1146555 : default:;
5849 : : }
5850 : 1146555 : if (CONSTANT_CLASS_P (_q21))
5851 : : {
5852 : 491302 : if (CONSTANT_CLASS_P (_p1))
5853 : : {
5854 : 14 : {
5855 : 14 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
5856 : 14 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, PLUS_EXPR, MINUS_EXPR, MINUS_EXPR);
5857 : 14 : if (res) return res;
5858 : : }
5859 : : }
5860 : : }
5861 : : break;
5862 : : }
5863 : 844190 : case MINUS_EXPR:
5864 : 844190 : {
5865 : 844190 : tree _q20 = TREE_OPERAND (_p0, 0);
5866 : 844190 : tree _q21 = TREE_OPERAND (_p0, 1);
5867 : 844190 : if (CONSTANT_CLASS_P (_q21))
5868 : : {
5869 : 94866 : if (CONSTANT_CLASS_P (_p1))
5870 : : {
5871 : 12 : {
5872 : 12 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
5873 : 12 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, MINUS_EXPR, PLUS_EXPR, MINUS_EXPR);
5874 : 12 : if (res) return res;
5875 : : }
5876 : : }
5877 : : }
5878 : 844190 : if (CONSTANT_CLASS_P (_q20))
5879 : : {
5880 : 2764 : if (CONSTANT_CLASS_P (_p1))
5881 : : {
5882 : 1 : {
5883 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
5884 : 1 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, MINUS_EXPR);
5885 : 1 : if (res) return res;
5886 : : }
5887 : : }
5888 : : }
5889 : : break;
5890 : : }
5891 : 3828253 : CASE_CONVERT:
5892 : 3828253 : {
5893 : 3828253 : tree _q20 = TREE_OPERAND (_p0, 0);
5894 : 3828253 : switch (TREE_CODE (_p1))
5895 : : {
5896 : 3159753 : CASE_CONVERT:
5897 : 3159753 : {
5898 : 3159753 : tree _q40 = TREE_OPERAND (_p1, 0);
5899 : 3159753 : {
5900 : 3159753 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
5901 : 3159753 : tree res = generic_simplify_19 (loc, type, _p0, _p1, captures, MINUS_EXPR);
5902 : 3159753 : if (res) return res;
5903 : : }
5904 : 3147653 : break;
5905 : : }
5906 : 3816153 : default:;
5907 : : }
5908 : 3816153 : switch (TREE_CODE (_q20))
5909 : : {
5910 : 200 : case NEGATE_EXPR:
5911 : 200 : {
5912 : 200 : tree _q30 = TREE_OPERAND (_q20, 0);
5913 : 200 : if (integer_each_onep (_p1))
5914 : : {
5915 : 0 : {
5916 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q30 };
5917 : 0 : tree res = generic_simplify_50 (loc, type, _p0, _p1, captures);
5918 : 0 : if (res) return res;
5919 : : }
5920 : : }
5921 : : break;
5922 : : }
5923 : 324407 : case PLUS_EXPR:
5924 : 324407 : {
5925 : 324407 : tree _q30 = TREE_OPERAND (_q20, 0);
5926 : 324407 : tree _q31 = TREE_OPERAND (_q20, 1);
5927 : 324407 : switch (TREE_CODE (_p1))
5928 : : {
5929 : 309760 : CASE_CONVERT:
5930 : 309760 : {
5931 : 309760 : tree _q60 = TREE_OPERAND (_p1, 0);
5932 : 309760 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q30, 0))
5933 : : {
5934 : 5274 : {
5935 : 5274 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q30 };
5936 : 5274 : tree res = generic_simplify_51 (loc, type, _p0, _p1, captures);
5937 : 5274 : if (res) return res;
5938 : : }
5939 : : }
5940 : 304578 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q31, 0))
5941 : : {
5942 : 36 : {
5943 : 36 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q31 };
5944 : 36 : tree res = generic_simplify_51 (loc, type, _p0, _p1, captures);
5945 : 36 : if (res) return res;
5946 : : }
5947 : : }
5948 : : break;
5949 : : }
5950 : 319189 : default:;
5951 : : }
5952 : 319189 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q30, 0))
5953 : : {
5954 : 660 : {
5955 : 660 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q30 };
5956 : 660 : tree res = generic_simplify_51 (loc, type, _p0, _p1, captures);
5957 : 660 : if (res) return res;
5958 : : }
5959 : : }
5960 : 318529 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q31, 0))
5961 : : {
5962 : 1576 : {
5963 : 1576 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q31 };
5964 : 1576 : tree res = generic_simplify_51 (loc, type, _p0, _p1, captures);
5965 : 1576 : if (res) return res;
5966 : : }
5967 : : }
5968 : : break;
5969 : : }
5970 : 58234 : case POINTER_PLUS_EXPR:
5971 : 58234 : {
5972 : 58234 : tree _q30 = TREE_OPERAND (_q20, 0);
5973 : 58234 : tree _q31 = TREE_OPERAND (_q20, 1);
5974 : 58234 : switch (TREE_CODE (_p1))
5975 : : {
5976 : 57826 : CASE_CONVERT:
5977 : 57826 : {
5978 : 57826 : tree _q60 = TREE_OPERAND (_p1, 0);
5979 : 57826 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q30, 0))
5980 : : {
5981 : 8945 : {
5982 : 8945 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q30 };
5983 : 8945 : if (!TYPE_SATURATING (type)
5984 : : )
5985 : : {
5986 : 8945 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
5987 : 17890 : && !FIXED_POINT_TYPE_P (type)
5988 : : )
5989 : : {
5990 : 8945 : if (element_precision (type) <= element_precision (TREE_TYPE (captures[1]))
5991 : 8945 : || (POINTER_TYPE_P (TREE_TYPE (captures[0]))
5992 : 0 : && TREE_CODE (captures[1]) == INTEGER_CST
5993 : 0 : && tree_int_cst_sign_bit (captures[1]) == 0)
5994 : : )
5995 : : {
5996 : 8945 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1110;
5997 : 8945 : {
5998 : 8945 : tree res_op0;
5999 : 8945 : res_op0 = captures[1];
6000 : 8945 : tree _r;
6001 : 8945 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
6002 : 8945 : if (TREE_SIDE_EFFECTS (captures[2]))
6003 : 14 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
6004 : 8945 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 822, __FILE__, __LINE__, true);
6005 : 8945 : return _r;
6006 : : }
6007 : 0 : next_after_fail1110:;
6008 : : }
6009 : : }
6010 : : }
6011 : : }
6012 : : }
6013 : : break;
6014 : : }
6015 : : default:;
6016 : : }
6017 : : break;
6018 : : }
6019 : 3799754 : default:;
6020 : : }
6021 : 3799754 : switch (TREE_CODE (_p1))
6022 : : {
6023 : 3131454 : CASE_CONVERT:
6024 : 3131454 : {
6025 : 3131454 : tree _q40 = TREE_OPERAND (_p1, 0);
6026 : 3131454 : switch (TREE_CODE (_q40))
6027 : : {
6028 : 393365 : case PLUS_EXPR:
6029 : 393365 : {
6030 : 393365 : tree _q50 = TREE_OPERAND (_q40, 0);
6031 : 393365 : tree _q51 = TREE_OPERAND (_q40, 1);
6032 : 393365 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
6033 : : {
6034 : 1790 : {
6035 : 1790 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q51, _q20 };
6036 : 1790 : tree res = generic_simplify_52 (loc, type, _p0, _p1, captures);
6037 : 1790 : if (res) return res;
6038 : : }
6039 : : }
6040 : 391647 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q20, 0))
6041 : : {
6042 : 16 : {
6043 : 16 : tree captures[3] ATTRIBUTE_UNUSED = { _q51, _q50, _q20 };
6044 : 16 : tree res = generic_simplify_52 (loc, type, _p0, _p1, captures);
6045 : 16 : if (res) return res;
6046 : : }
6047 : : }
6048 : : break;
6049 : : }
6050 : : default:;
6051 : : }
6052 : : break;
6053 : : }
6054 : : default:;
6055 : : }
6056 : : break;
6057 : : }
6058 : 125831 : case NEGATE_EXPR:
6059 : 125831 : {
6060 : 125831 : tree _q20 = TREE_OPERAND (_p0, 0);
6061 : 125831 : if (integer_each_onep (_p1))
6062 : : {
6063 : 47 : {
6064 : 47 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
6065 : 47 : tree res = generic_simplify_50 (loc, type, _p0, _p1, captures);
6066 : 47 : if (res) return res;
6067 : : }
6068 : : }
6069 : : break;
6070 : : }
6071 : 18912510 : default:;
6072 : : }
6073 : 18912510 : {
6074 : 18912510 : tree _p0_pops[1];
6075 : 18912510 : if (tree_nop_convert (_p0, _p0_pops))
6076 : : {
6077 : 3415579 : tree _q20 = _p0_pops[0];
6078 : 3415579 : switch (TREE_CODE (_q20))
6079 : : {
6080 : 270572 : case PLUS_EXPR:
6081 : 270572 : {
6082 : 270572 : tree _q30 = TREE_OPERAND (_q20, 0);
6083 : 270572 : tree _q31 = TREE_OPERAND (_q20, 1);
6084 : 270572 : if (CONSTANT_CLASS_P (_q31))
6085 : : {
6086 : 264775 : if (CONSTANT_CLASS_P (_p1))
6087 : : {
6088 : 0 : {
6089 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
6090 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, PLUS_EXPR, MINUS_EXPR, MINUS_EXPR);
6091 : 0 : if (res) return res;
6092 : : }
6093 : : }
6094 : : }
6095 : : break;
6096 : : }
6097 : 218 : case MINUS_EXPR:
6098 : 218 : {
6099 : 218 : tree _q30 = TREE_OPERAND (_q20, 0);
6100 : 218 : tree _q31 = TREE_OPERAND (_q20, 1);
6101 : 218 : if (CONSTANT_CLASS_P (_q31))
6102 : : {
6103 : 0 : if (CONSTANT_CLASS_P (_p1))
6104 : : {
6105 : 0 : {
6106 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
6107 : 0 : tree res = generic_simplify_14 (loc, type, _p0, _p1, captures, MINUS_EXPR, PLUS_EXPR, MINUS_EXPR);
6108 : 0 : if (res) return res;
6109 : : }
6110 : : }
6111 : : }
6112 : 218 : if (CONSTANT_CLASS_P (_q30))
6113 : : {
6114 : 20 : if (CONSTANT_CLASS_P (_p1))
6115 : : {
6116 : 0 : {
6117 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p1 };
6118 : 0 : tree res = generic_simplify_15 (loc, type, _p0, _p1, captures, MINUS_EXPR);
6119 : 0 : if (res) return res;
6120 : : }
6121 : : }
6122 : : }
6123 : : break;
6124 : : }
6125 : : default:;
6126 : : }
6127 : : }
6128 : : }
6129 : 18912510 : if (CONSTANT_CLASS_P (_p0))
6130 : : {
6131 : 4557016 : switch (TREE_CODE (_p1))
6132 : : {
6133 : 16562 : case MINUS_EXPR:
6134 : 16562 : {
6135 : 16562 : tree _q30 = TREE_OPERAND (_p1, 0);
6136 : 16562 : tree _q31 = TREE_OPERAND (_p1, 1);
6137 : 16562 : if (CONSTANT_CLASS_P (_q30))
6138 : : {
6139 : 784 : {
6140 : 784 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q31 };
6141 : 784 : tree res = generic_simplify_49 (loc, type, _p0, _p1, captures);
6142 : 784 : if (res) return res;
6143 : : }
6144 : : }
6145 : : break;
6146 : : }
6147 : 4556242 : default:;
6148 : : }
6149 : 4556242 : {
6150 : 4556242 : tree _p1_pops[1];
6151 : 4556242 : if (tree_nop_convert (_p1, _p1_pops))
6152 : : {
6153 : 1299185 : tree _q30 = _p1_pops[0];
6154 : 1299185 : switch (TREE_CODE (_q30))
6155 : : {
6156 : 6390 : case MINUS_EXPR:
6157 : 6390 : {
6158 : 6390 : tree _q40 = TREE_OPERAND (_q30, 0);
6159 : 6390 : tree _q41 = TREE_OPERAND (_q30, 1);
6160 : 6390 : if (CONSTANT_CLASS_P (_q40))
6161 : : {
6162 : 20 : {
6163 : 20 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q40, _q41 };
6164 : 20 : tree res = generic_simplify_49 (loc, type, _p0, _p1, captures);
6165 : 20 : if (res) return res;
6166 : : }
6167 : : }
6168 : : break;
6169 : : }
6170 : : default:;
6171 : : }
6172 : : }
6173 : : }
6174 : : }
6175 : 18911716 : if (integer_all_onesp (_p0))
6176 : : {
6177 : 1049297 : {
6178 : 1049297 : tree captures[1] ATTRIBUTE_UNUSED = { _p1 };
6179 : 1049297 : if (!TYPE_SATURATING (type)
6180 : : )
6181 : : {
6182 : 1049297 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
6183 : 2098594 : && !FIXED_POINT_TYPE_P (type)
6184 : : )
6185 : : {
6186 : 1049297 : if (TREE_CODE (type) != COMPLEX_TYPE
6187 : : )
6188 : : {
6189 : 1049295 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1111;
6190 : 1049295 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1111;
6191 : 1049295 : {
6192 : 1049295 : tree res_op0;
6193 : 1049295 : res_op0 = captures[0];
6194 : 1049295 : tree _r;
6195 : 1049295 : _r = fold_build1_loc (loc, BIT_NOT_EXPR, type, res_op0);
6196 : 1049295 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 823, __FILE__, __LINE__, true);
6197 : 1049295 : return _r;
6198 : : }
6199 : : next_after_fail1111:;
6200 : : }
6201 : : }
6202 : : }
6203 : : }
6204 : : }
6205 : 17862421 : switch (TREE_CODE (_p1))
6206 : : {
6207 : 5341658 : CASE_CONVERT:
6208 : 5341658 : {
6209 : 5341658 : tree _q30 = TREE_OPERAND (_p1, 0);
6210 : 5341658 : switch (TREE_CODE (_q30))
6211 : : {
6212 : 507039 : case PLUS_EXPR:
6213 : 507039 : {
6214 : 507039 : tree _q40 = TREE_OPERAND (_q30, 0);
6215 : 507039 : tree _q41 = TREE_OPERAND (_q30, 1);
6216 : 507039 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _p0, 0))
6217 : : {
6218 : 64 : {
6219 : 64 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _p0 };
6220 : 64 : tree res = generic_simplify_52 (loc, type, _p0, _p1, captures);
6221 : 64 : if (res) return res;
6222 : : }
6223 : : }
6224 : 506975 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _p0, 0))
6225 : : {
6226 : 7076 : {
6227 : 7076 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _p0 };
6228 : 7076 : tree res = generic_simplify_52 (loc, type, _p0, _p1, captures);
6229 : 7076 : if (res) return res;
6230 : : }
6231 : : }
6232 : : break;
6233 : : }
6234 : : default:;
6235 : : }
6236 : : break;
6237 : : }
6238 : 17855452 : default:;
6239 : : }
6240 : 17855452 : switch (TREE_CODE (_p0))
6241 : : {
6242 : 3797956 : CASE_CONVERT:
6243 : 3797956 : {
6244 : 3797956 : tree _q20 = TREE_OPERAND (_p0, 0);
6245 : 3797956 : switch (TREE_CODE (_p1))
6246 : : {
6247 : 3129656 : CASE_CONVERT:
6248 : 3129656 : {
6249 : 3129656 : tree _q40 = TREE_OPERAND (_p1, 0);
6250 : 3129656 : switch (TREE_CODE (_q40))
6251 : : {
6252 : 234707 : case POINTER_PLUS_EXPR:
6253 : 234707 : {
6254 : 234707 : tree _q50 = TREE_OPERAND (_q40, 0);
6255 : 234707 : tree _q51 = TREE_OPERAND (_q40, 1);
6256 : 234707 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
6257 : : {
6258 : 35 : {
6259 : 35 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q51, _q20 };
6260 : 35 : if (!TYPE_SATURATING (type)
6261 : : )
6262 : : {
6263 : 35 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
6264 : 70 : && !FIXED_POINT_TYPE_P (type)
6265 : : )
6266 : : {
6267 : 35 : if (INTEGRAL_TYPE_P (type)
6268 : 35 : && TYPE_OVERFLOW_UNDEFINED (type)
6269 : 0 : && TREE_CODE (captures[1]) != INTEGER_CST
6270 : 35 : && element_precision (type) <= element_precision (TREE_TYPE (captures[1]))
6271 : : )
6272 : : {
6273 : 0 : {
6274 : 0 : tree utype = unsigned_type_for (type);
6275 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1112;
6276 : 0 : {
6277 : 0 : tree res_op0;
6278 : 0 : {
6279 : 0 : tree _o1[1], _r1;
6280 : 0 : {
6281 : 0 : tree _o2[1], _r2;
6282 : 0 : _o2[0] = captures[1];
6283 : 0 : if (TREE_TYPE (_o2[0]) != utype)
6284 : : {
6285 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
6286 : : }
6287 : : else
6288 : : _r2 = _o2[0];
6289 : 0 : _o1[0] = _r2;
6290 : : }
6291 : 0 : _r1 = fold_build1_loc (loc, NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
6292 : 0 : res_op0 = _r1;
6293 : : }
6294 : 0 : tree _r;
6295 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
6296 : 0 : if (TREE_SIDE_EFFECTS (captures[2]))
6297 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
6298 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 824, __FILE__, __LINE__, true);
6299 : 0 : return _r;
6300 : : }
6301 : 0 : next_after_fail1112:;
6302 : : }
6303 : : }
6304 : : else
6305 : : {
6306 : 35 : if (element_precision (type) <= element_precision (TREE_TYPE (captures[1]))
6307 : 35 : || (POINTER_TYPE_P (TREE_TYPE (captures[0]))
6308 : 0 : && TREE_CODE (captures[1]) == INTEGER_CST
6309 : 0 : && tree_int_cst_sign_bit (captures[1]) == 0)
6310 : : )
6311 : : {
6312 : 35 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1113;
6313 : 35 : {
6314 : 35 : tree res_op0;
6315 : 35 : {
6316 : 35 : tree _o1[1], _r1;
6317 : 35 : _o1[0] = captures[1];
6318 : 35 : if (TREE_TYPE (_o1[0]) != type)
6319 : : {
6320 : 35 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
6321 : : }
6322 : : else
6323 : : _r1 = _o1[0];
6324 : 35 : res_op0 = _r1;
6325 : : }
6326 : 35 : tree _r;
6327 : 35 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
6328 : 35 : if (TREE_SIDE_EFFECTS (captures[2]))
6329 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[2]), _r);
6330 : 35 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 825, __FILE__, __LINE__, true);
6331 : 35 : return _r;
6332 : : }
6333 : 0 : next_after_fail1113:;
6334 : : }
6335 : : }
6336 : : }
6337 : : }
6338 : : }
6339 : : }
6340 : : break;
6341 : : }
6342 : : default:;
6343 : : }
6344 : : break;
6345 : : }
6346 : 3797921 : default:;
6347 : : }
6348 : 3797921 : switch (TREE_CODE (_q20))
6349 : : {
6350 : 316953 : case PLUS_EXPR:
6351 : 316953 : {
6352 : 316953 : tree _q30 = TREE_OPERAND (_q20, 0);
6353 : 316953 : tree _q31 = TREE_OPERAND (_q20, 1);
6354 : 316953 : switch (TREE_CODE (_p1))
6355 : : {
6356 : 302506 : CASE_CONVERT:
6357 : 302506 : {
6358 : 302506 : tree _q60 = TREE_OPERAND (_p1, 0);
6359 : 302506 : switch (TREE_CODE (_q60))
6360 : : {
6361 : 152769 : case PLUS_EXPR:
6362 : 152769 : {
6363 : 152769 : tree _q70 = TREE_OPERAND (_q60, 0);
6364 : 152769 : tree _q71 = TREE_OPERAND (_q60, 1);
6365 : 152769 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q30, 0))
6366 : : {
6367 : 4653 : {
6368 : 4653 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q71, _q30 };
6369 : 4653 : tree res = generic_simplify_53 (loc, type, _p0, _p1, captures);
6370 : 4653 : if (res) return res;
6371 : : }
6372 : : }
6373 : 148118 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || operand_equal_p (_q71, _q30, 0))
6374 : : {
6375 : 106 : {
6376 : 106 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q70, _q30 };
6377 : 106 : tree res = generic_simplify_53 (loc, type, _p0, _p1, captures);
6378 : 106 : if (res) return res;
6379 : : }
6380 : : }
6381 : 148012 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q31, 0))
6382 : : {
6383 : 106 : {
6384 : 106 : tree captures[4] ATTRIBUTE_UNUSED = { _q31, _q30, _q71, _q31 };
6385 : 106 : tree res = generic_simplify_53 (loc, type, _p0, _p1, captures);
6386 : 106 : if (res) return res;
6387 : : }
6388 : : }
6389 : 147906 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || operand_equal_p (_q71, _q31, 0))
6390 : : {
6391 : 119720 : {
6392 : 119720 : tree captures[4] ATTRIBUTE_UNUSED = { _q31, _q30, _q70, _q31 };
6393 : 119720 : tree res = generic_simplify_53 (loc, type, _p0, _p1, captures);
6394 : 119720 : if (res) return res;
6395 : : }
6396 : : }
6397 : : break;
6398 : : }
6399 : : default:;
6400 : : }
6401 : : break;
6402 : : }
6403 : : default:;
6404 : : }
6405 : : break;
6406 : : }
6407 : 49289 : case POINTER_PLUS_EXPR:
6408 : 49289 : {
6409 : 49289 : tree _q30 = TREE_OPERAND (_q20, 0);
6410 : 49289 : tree _q31 = TREE_OPERAND (_q20, 1);
6411 : 49289 : switch (TREE_CODE (_p1))
6412 : : {
6413 : 48881 : CASE_CONVERT:
6414 : 48881 : {
6415 : 48881 : tree _q60 = TREE_OPERAND (_p1, 0);
6416 : 48881 : switch (TREE_CODE (_q60))
6417 : : {
6418 : 22576 : case POINTER_PLUS_EXPR:
6419 : 22576 : {
6420 : 22576 : tree _q70 = TREE_OPERAND (_q60, 0);
6421 : 22576 : tree _q71 = TREE_OPERAND (_q60, 1);
6422 : 22576 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q30, 0))
6423 : : {
6424 : 4129 : {
6425 : 4129 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q71, _q30 };
6426 : 4129 : if (!TYPE_SATURATING (type)
6427 : : )
6428 : : {
6429 : 4129 : if ((!FLOAT_TYPE_P (type) || flag_associative_math)
6430 : 8258 : && !FIXED_POINT_TYPE_P (type)
6431 : : )
6432 : : {
6433 : 4129 : if (INTEGRAL_TYPE_P (type)
6434 : 4129 : && TYPE_OVERFLOW_UNDEFINED (type)
6435 : 4129 : && element_precision (type) <= element_precision (TREE_TYPE (captures[1]))
6436 : : )
6437 : : {
6438 : 0 : {
6439 : 0 : tree utype = unsigned_type_for (type);
6440 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1114;
6441 : 0 : {
6442 : 0 : tree res_op0;
6443 : 0 : {
6444 : 0 : tree _o1[2], _r1;
6445 : 0 : {
6446 : 0 : tree _o2[1], _r2;
6447 : 0 : _o2[0] = captures[1];
6448 : 0 : if (TREE_TYPE (_o2[0]) != utype)
6449 : : {
6450 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
6451 : : }
6452 : : else
6453 : : _r2 = _o2[0];
6454 : 0 : _o1[0] = _r2;
6455 : : }
6456 : 0 : {
6457 : 0 : tree _o2[1], _r2;
6458 : 0 : _o2[0] = captures[2];
6459 : 0 : if (TREE_TYPE (_o2[0]) != utype)
6460 : : {
6461 : 0 : _r2 = fold_build1_loc (loc, NOP_EXPR, utype, _o2[0]);
6462 : : }
6463 : : else
6464 : : _r2 = _o2[0];
6465 : 0 : _o1[1] = _r2;
6466 : : }
6467 : 0 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
6468 : 0 : res_op0 = _r1;
6469 : : }
6470 : 0 : tree _r;
6471 : 0 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
6472 : 0 : if (TREE_SIDE_EFFECTS (captures[3]))
6473 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
6474 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 826, __FILE__, __LINE__, true);
6475 : 0 : return _r;
6476 : : }
6477 : 0 : next_after_fail1114:;
6478 : : }
6479 : : }
6480 : : else
6481 : : {
6482 : 4129 : if (element_precision (type) <= element_precision (TREE_TYPE (captures[1]))
6483 : 4129 : || (POINTER_TYPE_P (TREE_TYPE (captures[0]))
6484 : 0 : && TREE_CODE (captures[1]) == INTEGER_CST
6485 : 0 : && tree_int_cst_sign_bit (captures[1]) == 0
6486 : 0 : && TREE_CODE (captures[2]) == INTEGER_CST
6487 : 0 : && tree_int_cst_sign_bit (captures[2]) == 0)
6488 : : )
6489 : : {
6490 : 4129 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1115;
6491 : 4129 : {
6492 : 4129 : tree res_op0;
6493 : 4129 : {
6494 : 4129 : tree _o1[1], _r1;
6495 : 4129 : _o1[0] = captures[1];
6496 : 4129 : if (TREE_TYPE (_o1[0]) != type)
6497 : : {
6498 : 4129 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
6499 : : }
6500 : : else
6501 : : _r1 = _o1[0];
6502 : 4129 : res_op0 = _r1;
6503 : : }
6504 : 4129 : tree res_op1;
6505 : 4129 : {
6506 : 4129 : tree _o1[1], _r1;
6507 : 4129 : _o1[0] = captures[2];
6508 : 4129 : if (TREE_TYPE (_o1[0]) != type)
6509 : : {
6510 : 4129 : _r1 = fold_build1_loc (loc, NOP_EXPR, type, _o1[0]);
6511 : : }
6512 : : else
6513 : : _r1 = _o1[0];
6514 : 4129 : res_op1 = _r1;
6515 : : }
6516 : 4129 : tree _r;
6517 : 4129 : _r = fold_build2_loc (loc, MINUS_EXPR, type, res_op0, res_op1);
6518 : 4129 : if (TREE_SIDE_EFFECTS (captures[3]))
6519 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[3]), _r);
6520 : 4129 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 827, __FILE__, __LINE__, true);
6521 : 4129 : return _r;
6522 : : }
6523 : 0 : next_after_fail1115:;
6524 : : }
6525 : : }
6526 : : }
6527 : : }
6528 : : }
6529 : : }
6530 : : break;
6531 : : }
6532 : : default:;
6533 : : }
6534 : : break;
6535 : : }
6536 : : default:;
6537 : : }
6538 : : break;
6539 : : }
6540 : : default:;
6541 : : }
6542 : : break;
6543 : : }
6544 : 1295030 : case MULT_EXPR:
6545 : 1295030 : {
6546 : 1295030 : tree _q20 = TREE_OPERAND (_p0, 0);
6547 : 1295030 : tree _q21 = TREE_OPERAND (_p0, 1);
6548 : 1295030 : switch (TREE_CODE (_p1))
6549 : : {
6550 : 561579 : case MULT_EXPR:
6551 : 561579 : {
6552 : 561579 : tree _q50 = TREE_OPERAND (_p1, 0);
6553 : 561579 : tree _q51 = TREE_OPERAND (_p1, 1);
6554 : 561579 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
6555 : : {
6556 : 3729 : {
6557 : 3729 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
6558 : 3729 : tree res = generic_simplify_22 (loc, type, _p0, _p1, captures, MINUS_EXPR);
6559 : 3729 : if (res) return res;
6560 : : }
6561 : : }
6562 : 560426 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
6563 : : {
6564 : 7745 : {
6565 : 7745 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
6566 : 7745 : tree res = generic_simplify_22 (loc, type, _p0, _p1, captures, MINUS_EXPR);
6567 : 7745 : if (res) return res;
6568 : : }
6569 : : }
6570 : 552681 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
6571 : : {
6572 : 16562 : {
6573 : 16562 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
6574 : 16562 : tree res = generic_simplify_22 (loc, type, _p0, _p1, captures, MINUS_EXPR);
6575 : 16562 : if (res) return res;
6576 : : }
6577 : : }
6578 : 536176 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
6579 : : {
6580 : 112914 : {
6581 : 112914 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
6582 : 112914 : tree res = generic_simplify_22 (loc, type, _p0, _p1, captures, MINUS_EXPR);
6583 : 112914 : if (res) return res;
6584 : : }
6585 : : }
6586 : : break;
6587 : : }
6588 : : default:;
6589 : : }
6590 : : break;
6591 : : }
6592 : 17605215 : default:;
6593 : : }
6594 : 17605215 : switch (TREE_CODE (_p1))
6595 : : {
6596 : 1731137 : case MULT_EXPR:
6597 : 1731137 : {
6598 : 1731137 : tree _q30 = TREE_OPERAND (_p1, 0);
6599 : 1731137 : tree _q31 = TREE_OPERAND (_p1, 1);
6600 : 1731137 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
6601 : : {
6602 : 2311 : {
6603 : 2311 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q31 };
6604 : 2311 : tree res = generic_simplify_23 (loc, type, _p0, _p1, captures, MINUS_EXPR);
6605 : 2311 : if (res) return res;
6606 : : }
6607 : : }
6608 : 1728898 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
6609 : : {
6610 : 1591 : {
6611 : 1591 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q30 };
6612 : 1591 : tree res = generic_simplify_23 (loc, type, _p0, _p1, captures, MINUS_EXPR);
6613 : 1591 : if (res) return res;
6614 : : }
6615 : : }
6616 : : break;
6617 : : }
6618 : 17601484 : default:;
6619 : : }
6620 : 17601484 : switch (TREE_CODE (_p0))
6621 : : {
6622 : 1160329 : case MULT_EXPR:
6623 : 1160329 : {
6624 : 1160329 : tree _q20 = TREE_OPERAND (_p0, 0);
6625 : 1160329 : tree _q21 = TREE_OPERAND (_p0, 1);
6626 : 1160329 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
6627 : : {
6628 : 31667 : {
6629 : 31667 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
6630 : 31667 : tree res = generic_simplify_24 (loc, type, _p0, _p1, captures, MINUS_EXPR);
6631 : 31667 : if (res) return res;
6632 : : }
6633 : : }
6634 : 1128769 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
6635 : : {
6636 : 377 : {
6637 : 377 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
6638 : 377 : tree res = generic_simplify_24 (loc, type, _p0, _p1, captures, MINUS_EXPR);
6639 : 377 : if (res) return res;
6640 : : }
6641 : : }
6642 : : break;
6643 : : }
6644 : 17569858 : default:;
6645 : : }
6646 : 17569858 : switch (TREE_CODE (_p1))
6647 : : {
6648 : 1727406 : case MULT_EXPR:
6649 : 1727406 : {
6650 : 1727406 : tree _q30 = TREE_OPERAND (_p1, 0);
6651 : 1727406 : tree _q31 = TREE_OPERAND (_p1, 1);
6652 : 1727406 : switch (TREE_CODE (_q30))
6653 : : {
6654 : 77929 : case MINUS_EXPR:
6655 : 77929 : {
6656 : 77929 : tree _q40 = TREE_OPERAND (_q30, 0);
6657 : 77929 : tree _q41 = TREE_OPERAND (_q30, 1);
6658 : 77929 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
6659 : : {
6660 : 39 : if (tree_zero_one_valued_p (_q31))
6661 : : {
6662 : 0 : {
6663 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q41, _q31 };
6664 : 0 : tree res = generic_simplify_54 (loc, type, _p0, _p1, captures);
6665 : 0 : if (res) return res;
6666 : : }
6667 : : }
6668 : : }
6669 : : break;
6670 : : }
6671 : 1727406 : default:;
6672 : : }
6673 : 1727406 : if (tree_zero_one_valued_p (_q30))
6674 : : {
6675 : 1130 : switch (TREE_CODE (_q31))
6676 : : {
6677 : 9 : case MINUS_EXPR:
6678 : 9 : {
6679 : 9 : tree _q50 = TREE_OPERAND (_q31, 0);
6680 : 9 : tree _q51 = TREE_OPERAND (_q31, 1);
6681 : 9 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
6682 : : {
6683 : 9 : {
6684 : 9 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q51, _q30 };
6685 : 9 : tree res = generic_simplify_54 (loc, type, _p0, _p1, captures);
6686 : 9 : if (res) return res;
6687 : : }
6688 : : }
6689 : : break;
6690 : : }
6691 : : default:;
6692 : : }
6693 : : }
6694 : : break;
6695 : : }
6696 : 17569856 : default:;
6697 : : }
6698 : 17569856 : switch (TREE_CODE (_p0))
6699 : : {
6700 : 0 : case VEC_COND_EXPR:
6701 : 0 : {
6702 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
6703 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
6704 : 0 : tree _q22 = TREE_OPERAND (_p0, 2);
6705 : 0 : switch (TREE_CODE (_p1))
6706 : : {
6707 : 0 : case VEC_COND_EXPR:
6708 : 0 : {
6709 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
6710 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
6711 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
6712 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
6713 : : {
6714 : 0 : {
6715 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
6716 : 0 : if (TREE_CODE_CLASS (MINUS_EXPR) != tcc_comparison
6717 : : || types_match (type, TREE_TYPE (captures[2]))
6718 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
6719 : : || (optimize_vectors_before_lowering_p ()
6720 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
6721 : : TREE_TYPE (captures[1]), ERROR_MARK))
6722 : : )
6723 : : {
6724 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1116;
6725 : 0 : {
6726 : 0 : tree res_op0;
6727 : 0 : res_op0 = captures[1];
6728 : 0 : tree res_op1;
6729 : 0 : {
6730 : 0 : tree _o1[2], _r1;
6731 : 0 : _o1[0] = captures[2];
6732 : 0 : _o1[1] = captures[5];
6733 : 0 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
6734 : 0 : if (EXPR_P (_r1))
6735 : 0 : goto next_after_fail1116;
6736 : 0 : res_op1 = _r1;
6737 : : }
6738 : 0 : tree res_op2;
6739 : 0 : {
6740 : 0 : tree _o1[2], _r1;
6741 : 0 : _o1[0] = captures[3];
6742 : 0 : _o1[1] = captures[6];
6743 : 0 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
6744 : 0 : if (EXPR_P (_r1))
6745 : 0 : goto next_after_fail1116;
6746 : 0 : res_op2 = _r1;
6747 : : }
6748 : 0 : tree _r;
6749 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
6750 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 793, __FILE__, __LINE__, true);
6751 : 0 : return _r;
6752 : : }
6753 : 0 : next_after_fail1116:;
6754 : : }
6755 : : }
6756 : : }
6757 : : break;
6758 : : }
6759 : 0 : default:;
6760 : : }
6761 : 0 : {
6762 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
6763 : 0 : if (TREE_CODE_CLASS (MINUS_EXPR) != tcc_comparison
6764 : : || types_match (type, TREE_TYPE (captures[2]))
6765 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
6766 : : || (optimize_vectors_before_lowering_p ()
6767 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
6768 : : TREE_TYPE (captures[1]), ERROR_MARK))
6769 : : )
6770 : : {
6771 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1117;
6772 : 0 : {
6773 : 0 : if (! tree_invariant_p (captures[4])) goto next_after_fail1117;
6774 : 0 : tree res_op0;
6775 : 0 : res_op0 = captures[1];
6776 : 0 : tree res_op1;
6777 : 0 : {
6778 : 0 : tree _o1[2], _r1;
6779 : 0 : _o1[0] = captures[2];
6780 : 0 : _o1[1] = unshare_expr (captures[4]);
6781 : 0 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
6782 : 0 : if (EXPR_P (_r1))
6783 : 0 : goto next_after_fail1117;
6784 : 0 : res_op1 = _r1;
6785 : : }
6786 : 0 : tree res_op2;
6787 : 0 : {
6788 : 0 : tree _o1[2], _r1;
6789 : 0 : _o1[0] = captures[3];
6790 : 0 : _o1[1] = captures[4];
6791 : 0 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
6792 : 0 : if (EXPR_P (_r1))
6793 : 0 : goto next_after_fail1117;
6794 : 0 : res_op2 = _r1;
6795 : : }
6796 : 0 : tree _r;
6797 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
6798 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 794, __FILE__, __LINE__, true);
6799 : 0 : return _r;
6800 : : }
6801 : 0 : next_after_fail1117:;
6802 : : }
6803 : : }
6804 : 0 : break;
6805 : : }
6806 : 17569856 : default:;
6807 : : }
6808 : 17569856 : if (integer_zerop (_p0))
6809 : : {
6810 : 271931 : {
6811 : 271931 : tree captures[1] ATTRIBUTE_UNUSED = { _p1 };
6812 : 271931 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1118;
6813 : 271931 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1118;
6814 : 271931 : {
6815 : 271931 : tree res_op0;
6816 : 271931 : res_op0 = captures[0];
6817 : 271931 : tree _r;
6818 : 271931 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
6819 : 271931 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 828, __FILE__, __LINE__, true);
6820 : 271931 : return _r;
6821 : : }
6822 : : next_after_fail1118:;
6823 : : }
6824 : : }
6825 : 17297925 : if (real_zerop (_p0))
6826 : : {
6827 : 129 : {
6828 : 129 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
6829 : 129 : if (fold_real_zero_addition_p (type, captures[1], captures[0], 0)
6830 : : )
6831 : : {
6832 : 56 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1119;
6833 : 56 : {
6834 : 56 : tree res_op0;
6835 : 56 : res_op0 = captures[1];
6836 : 56 : tree _r;
6837 : 56 : _r = fold_build1_loc (loc, NEGATE_EXPR, type, res_op0);
6838 : 56 : if (TREE_SIDE_EFFECTS (captures[0]))
6839 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
6840 : 56 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 829, __FILE__, __LINE__, true);
6841 : 56 : return _r;
6842 : : }
6843 : 0 : next_after_fail1119:;
6844 : : }
6845 : : }
6846 : : }
6847 : 17297869 : switch (TREE_CODE (_p1))
6848 : : {
6849 : 5 : case VEC_COND_EXPR:
6850 : 5 : {
6851 : 5 : tree _q30 = TREE_OPERAND (_p1, 0);
6852 : 5 : tree _q31 = TREE_OPERAND (_p1, 1);
6853 : 5 : tree _q32 = TREE_OPERAND (_p1, 2);
6854 : 5 : {
6855 : 5 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
6856 : 5 : if (TREE_CODE_CLASS (MINUS_EXPR) != tcc_comparison
6857 : : || types_match (type, TREE_TYPE (captures[3]))
6858 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]), ERROR_MARK)
6859 : : || (optimize_vectors_before_lowering_p ()
6860 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]),
6861 : : TREE_TYPE (captures[2]), ERROR_MARK))
6862 : : )
6863 : : {
6864 : 5 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1120;
6865 : 5 : {
6866 : 5 : if (! tree_invariant_p (captures[0])) goto next_after_fail1120;
6867 : 0 : tree res_op0;
6868 : 0 : res_op0 = captures[2];
6869 : 0 : tree res_op1;
6870 : 0 : {
6871 : 0 : tree _o1[2], _r1;
6872 : 0 : _o1[0] = unshare_expr (captures[0]);
6873 : 0 : _o1[1] = captures[3];
6874 : 0 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
6875 : 0 : if (EXPR_P (_r1))
6876 : 0 : goto next_after_fail1120;
6877 : 0 : res_op1 = _r1;
6878 : : }
6879 : 0 : tree res_op2;
6880 : 0 : {
6881 : 0 : tree _o1[2], _r1;
6882 : 0 : _o1[0] = captures[0];
6883 : 0 : _o1[1] = captures[4];
6884 : 0 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
6885 : 0 : if (EXPR_P (_r1))
6886 : 0 : goto next_after_fail1120;
6887 : 0 : res_op2 = _r1;
6888 : : }
6889 : 0 : tree _r;
6890 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
6891 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 795, __FILE__, __LINE__, true);
6892 : 0 : return _r;
6893 : : }
6894 : 5 : next_after_fail1120:;
6895 : : }
6896 : : }
6897 : 5 : if (integer_each_onep (_q31))
6898 : : {
6899 : 0 : if (integer_zerop (_q32))
6900 : : {
6901 : 0 : {
6902 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
6903 : 0 : tree res = generic_simplify_55 (loc, type, _p0, _p1, captures);
6904 : 0 : if (res) return res;
6905 : : }
6906 : : }
6907 : : }
6908 : : break;
6909 : : }
6910 : 108140 : case VIEW_CONVERT_EXPR:
6911 : 108140 : {
6912 : 108140 : tree _q30 = TREE_OPERAND (_p1, 0);
6913 : 108140 : switch (TREE_CODE (_q30))
6914 : : {
6915 : 0 : case VEC_COND_EXPR:
6916 : 0 : {
6917 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
6918 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
6919 : 0 : tree _q42 = TREE_OPERAND (_q30, 2);
6920 : 0 : if (integer_each_onep (_q41))
6921 : : {
6922 : 0 : if (integer_zerop (_q42))
6923 : : {
6924 : 0 : {
6925 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q30, _q40, _q41, _q42 };
6926 : 0 : tree res = generic_simplify_55 (loc, type, _p0, _p1, captures);
6927 : 0 : if (res) return res;
6928 : : }
6929 : : }
6930 : : }
6931 : : break;
6932 : : }
6933 : : default:;
6934 : : }
6935 : : break;
6936 : : }
6937 : 17297869 : default:;
6938 : : }
6939 : 17297869 : switch (TREE_CODE (_p0))
6940 : : {
6941 : 113952 : case RDIV_EXPR:
6942 : 113952 : {
6943 : 113952 : tree _q20 = TREE_OPERAND (_p0, 0);
6944 : 113952 : tree _q21 = TREE_OPERAND (_p0, 1);
6945 : 113952 : switch (TREE_CODE (_p1))
6946 : : {
6947 : 19067 : case RDIV_EXPR:
6948 : 19067 : {
6949 : 19067 : tree _q50 = TREE_OPERAND (_p1, 0);
6950 : 19067 : tree _q51 = TREE_OPERAND (_p1, 1);
6951 : 19067 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
6952 : : {
6953 : 19047 : {
6954 : 19047 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
6955 : 19047 : tree res = generic_simplify_28 (loc, type, _p0, _p1, captures, MINUS_EXPR);
6956 : 19047 : if (res) return res;
6957 : : }
6958 : : }
6959 : : break;
6960 : : }
6961 : : default:;
6962 : : }
6963 : : break;
6964 : : }
6965 : 1146555 : case PLUS_EXPR:
6966 : 1146555 : {
6967 : 1146555 : tree _q20 = TREE_OPERAND (_p0, 0);
6968 : 1146555 : tree _q21 = TREE_OPERAND (_p0, 1);
6969 : 1146555 : switch (TREE_CODE (_q20))
6970 : : {
6971 : 41932 : case CALL_EXPR:
6972 : 41932 : switch (get_call_combined_fn (_q20))
6973 : : {
6974 : 4 : case CFN_BUILT_IN_POPCOUNT:
6975 : 4 : if (call_expr_nargs (_q20) == 1)
6976 : : {
6977 : 4 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
6978 : 4 : switch (TREE_CODE (_q21))
6979 : : {
6980 : 4 : case CALL_EXPR:
6981 : 4 : switch (get_call_combined_fn (_q21))
6982 : : {
6983 : 4 : case CFN_BUILT_IN_POPCOUNT:
6984 : 4 : if (call_expr_nargs (_q21) == 1)
6985 : : {
6986 : 4 : tree _q50 = CALL_EXPR_ARG (_q21, 0);
6987 : 4 : switch (TREE_CODE (_p1))
6988 : : {
6989 : 4 : case CALL_EXPR:
6990 : 4 : switch (get_call_combined_fn (_p1))
6991 : : {
6992 : 4 : case CFN_BUILT_IN_POPCOUNT:
6993 : 4 : if (call_expr_nargs (_p1) == 1)
6994 : : {
6995 : 4 : tree _q70 = CALL_EXPR_ARG (_p1, 0);
6996 : 4 : switch (TREE_CODE (_q70))
6997 : : {
6998 : 2 : case BIT_AND_EXPR:
6999 : 2 : {
7000 : 2 : tree _q80 = TREE_OPERAND (_q70, 0);
7001 : 2 : tree _q81 = TREE_OPERAND (_q70, 1);
7002 : 2 : if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
7003 : : {
7004 : 1 : if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
7005 : : {
7006 : 1 : {
7007 : 1 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
7008 : 1 : tree res = generic_simplify_56 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNT);
7009 : 1 : if (res) return res;
7010 : : }
7011 : : }
7012 : : }
7013 : 1 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
7014 : : {
7015 : 1 : if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
7016 : : {
7017 : 1 : {
7018 : 1 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
7019 : 1 : tree res = generic_simplify_56 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNT);
7020 : 1 : if (res) return res;
7021 : : }
7022 : : }
7023 : : }
7024 : : break;
7025 : : }
7026 : 2 : case BIT_IOR_EXPR:
7027 : 2 : {
7028 : 2 : tree _q80 = TREE_OPERAND (_q70, 0);
7029 : 2 : tree _q81 = TREE_OPERAND (_q70, 1);
7030 : 2 : if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
7031 : : {
7032 : 1 : if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
7033 : : {
7034 : 1 : {
7035 : 1 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
7036 : 1 : tree res = generic_simplify_56 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNT);
7037 : 1 : if (res) return res;
7038 : : }
7039 : : }
7040 : : }
7041 : 1 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
7042 : : {
7043 : 1 : if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
7044 : : {
7045 : 1 : {
7046 : 1 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
7047 : 1 : tree res = generic_simplify_56 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNT);
7048 : 1 : if (res) return res;
7049 : : }
7050 : : }
7051 : : }
7052 : : break;
7053 : : }
7054 : : default:;
7055 : : }
7056 : : }
7057 : : break;
7058 : : default:;
7059 : : }
7060 : : break;
7061 : : default:;
7062 : : }
7063 : : }
7064 : : break;
7065 : : default:;
7066 : : }
7067 : : break;
7068 : : default:;
7069 : : }
7070 : : }
7071 : : break;
7072 : 0 : case CFN_BUILT_IN_POPCOUNTLL:
7073 : 0 : if (call_expr_nargs (_q20) == 1)
7074 : : {
7075 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
7076 : 0 : switch (TREE_CODE (_q21))
7077 : : {
7078 : 0 : case CALL_EXPR:
7079 : 0 : switch (get_call_combined_fn (_q21))
7080 : : {
7081 : 0 : case CFN_BUILT_IN_POPCOUNTLL:
7082 : 0 : if (call_expr_nargs (_q21) == 1)
7083 : : {
7084 : 0 : tree _q50 = CALL_EXPR_ARG (_q21, 0);
7085 : 0 : switch (TREE_CODE (_p1))
7086 : : {
7087 : 0 : case CALL_EXPR:
7088 : 0 : switch (get_call_combined_fn (_p1))
7089 : : {
7090 : 0 : case CFN_BUILT_IN_POPCOUNTLL:
7091 : 0 : if (call_expr_nargs (_p1) == 1)
7092 : : {
7093 : 0 : tree _q70 = CALL_EXPR_ARG (_p1, 0);
7094 : 0 : switch (TREE_CODE (_q70))
7095 : : {
7096 : 0 : case BIT_AND_EXPR:
7097 : 0 : {
7098 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
7099 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
7100 : 0 : if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
7101 : : {
7102 : 0 : if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
7103 : : {
7104 : 0 : {
7105 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
7106 : 0 : tree res = generic_simplify_56 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTLL);
7107 : 0 : if (res) return res;
7108 : : }
7109 : : }
7110 : : }
7111 : 0 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
7112 : : {
7113 : 0 : if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
7114 : : {
7115 : 0 : {
7116 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
7117 : 0 : tree res = generic_simplify_56 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTLL);
7118 : 0 : if (res) return res;
7119 : : }
7120 : : }
7121 : : }
7122 : : break;
7123 : : }
7124 : 0 : case BIT_IOR_EXPR:
7125 : 0 : {
7126 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
7127 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
7128 : 0 : if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
7129 : : {
7130 : 0 : if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
7131 : : {
7132 : 0 : {
7133 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
7134 : 0 : tree res = generic_simplify_56 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTLL);
7135 : 0 : if (res) return res;
7136 : : }
7137 : : }
7138 : : }
7139 : 0 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
7140 : : {
7141 : 0 : if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
7142 : : {
7143 : 0 : {
7144 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
7145 : 0 : tree res = generic_simplify_56 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTLL);
7146 : 0 : if (res) return res;
7147 : : }
7148 : : }
7149 : : }
7150 : : break;
7151 : : }
7152 : : default:;
7153 : : }
7154 : : }
7155 : : break;
7156 : : default:;
7157 : : }
7158 : : break;
7159 : : default:;
7160 : : }
7161 : : }
7162 : : break;
7163 : : default:;
7164 : : }
7165 : : break;
7166 : : default:;
7167 : : }
7168 : : }
7169 : : break;
7170 : 0 : case CFN_POPCOUNT:
7171 : 0 : if (call_expr_nargs (_q20) == 1)
7172 : : {
7173 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
7174 : 0 : switch (TREE_CODE (_q21))
7175 : : {
7176 : 0 : case CALL_EXPR:
7177 : 0 : switch (get_call_combined_fn (_q21))
7178 : : {
7179 : 0 : case CFN_POPCOUNT:
7180 : 0 : if (call_expr_nargs (_q21) == 1)
7181 : : {
7182 : 0 : tree _q50 = CALL_EXPR_ARG (_q21, 0);
7183 : 0 : switch (TREE_CODE (_p1))
7184 : : {
7185 : 0 : case CALL_EXPR:
7186 : 0 : switch (get_call_combined_fn (_p1))
7187 : : {
7188 : 0 : case CFN_POPCOUNT:
7189 : 0 : if (call_expr_nargs (_p1) == 1)
7190 : : {
7191 : 0 : tree _q70 = CALL_EXPR_ARG (_p1, 0);
7192 : 0 : switch (TREE_CODE (_q70))
7193 : : {
7194 : 0 : case BIT_AND_EXPR:
7195 : 0 : {
7196 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
7197 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
7198 : 0 : if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
7199 : : {
7200 : 0 : if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
7201 : : {
7202 : 0 : {
7203 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
7204 : 0 : tree res = generic_simplify_56 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_POPCOUNT);
7205 : 0 : if (res) return res;
7206 : : }
7207 : : }
7208 : : }
7209 : 0 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
7210 : : {
7211 : 0 : if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
7212 : : {
7213 : 0 : {
7214 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
7215 : 0 : tree res = generic_simplify_56 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_POPCOUNT);
7216 : 0 : if (res) return res;
7217 : : }
7218 : : }
7219 : : }
7220 : : break;
7221 : : }
7222 : 0 : case BIT_IOR_EXPR:
7223 : 0 : {
7224 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
7225 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
7226 : 0 : if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
7227 : : {
7228 : 0 : if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
7229 : : {
7230 : 0 : {
7231 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
7232 : 0 : tree res = generic_simplify_56 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_POPCOUNT);
7233 : 0 : if (res) return res;
7234 : : }
7235 : : }
7236 : : }
7237 : 0 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
7238 : : {
7239 : 0 : if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
7240 : : {
7241 : 0 : {
7242 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
7243 : 0 : tree res = generic_simplify_56 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_POPCOUNT);
7244 : 0 : if (res) return res;
7245 : : }
7246 : : }
7247 : : }
7248 : : break;
7249 : : }
7250 : : default:;
7251 : : }
7252 : : }
7253 : : break;
7254 : : default:;
7255 : : }
7256 : : break;
7257 : : default:;
7258 : : }
7259 : : }
7260 : : break;
7261 : : default:;
7262 : : }
7263 : : break;
7264 : : default:;
7265 : : }
7266 : : }
7267 : : break;
7268 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
7269 : 0 : if (call_expr_nargs (_q20) == 1)
7270 : : {
7271 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
7272 : 0 : switch (TREE_CODE (_q21))
7273 : : {
7274 : 0 : case CALL_EXPR:
7275 : 0 : switch (get_call_combined_fn (_q21))
7276 : : {
7277 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
7278 : 0 : if (call_expr_nargs (_q21) == 1)
7279 : : {
7280 : 0 : tree _q50 = CALL_EXPR_ARG (_q21, 0);
7281 : 0 : switch (TREE_CODE (_p1))
7282 : : {
7283 : 0 : case CALL_EXPR:
7284 : 0 : switch (get_call_combined_fn (_p1))
7285 : : {
7286 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
7287 : 0 : if (call_expr_nargs (_p1) == 1)
7288 : : {
7289 : 0 : tree _q70 = CALL_EXPR_ARG (_p1, 0);
7290 : 0 : switch (TREE_CODE (_q70))
7291 : : {
7292 : 0 : case BIT_AND_EXPR:
7293 : 0 : {
7294 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
7295 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
7296 : 0 : if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
7297 : : {
7298 : 0 : if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
7299 : : {
7300 : 0 : {
7301 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
7302 : 0 : tree res = generic_simplify_56 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
7303 : 0 : if (res) return res;
7304 : : }
7305 : : }
7306 : : }
7307 : 0 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
7308 : : {
7309 : 0 : if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
7310 : : {
7311 : 0 : {
7312 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
7313 : 0 : tree res = generic_simplify_56 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
7314 : 0 : if (res) return res;
7315 : : }
7316 : : }
7317 : : }
7318 : : break;
7319 : : }
7320 : 0 : case BIT_IOR_EXPR:
7321 : 0 : {
7322 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
7323 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
7324 : 0 : if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
7325 : : {
7326 : 0 : if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
7327 : : {
7328 : 0 : {
7329 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
7330 : 0 : tree res = generic_simplify_56 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
7331 : 0 : if (res) return res;
7332 : : }
7333 : : }
7334 : : }
7335 : 0 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
7336 : : {
7337 : 0 : if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
7338 : : {
7339 : 0 : {
7340 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
7341 : 0 : tree res = generic_simplify_56 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTIMAX);
7342 : 0 : if (res) return res;
7343 : : }
7344 : : }
7345 : : }
7346 : : break;
7347 : : }
7348 : : default:;
7349 : : }
7350 : : }
7351 : : break;
7352 : : default:;
7353 : : }
7354 : : break;
7355 : : default:;
7356 : : }
7357 : : }
7358 : : break;
7359 : : default:;
7360 : : }
7361 : : break;
7362 : : default:;
7363 : : }
7364 : : }
7365 : : break;
7366 : 0 : case CFN_BUILT_IN_POPCOUNTL:
7367 : 0 : if (call_expr_nargs (_q20) == 1)
7368 : : {
7369 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
7370 : 0 : switch (TREE_CODE (_q21))
7371 : : {
7372 : 0 : case CALL_EXPR:
7373 : 0 : switch (get_call_combined_fn (_q21))
7374 : : {
7375 : 0 : case CFN_BUILT_IN_POPCOUNTL:
7376 : 0 : if (call_expr_nargs (_q21) == 1)
7377 : : {
7378 : 0 : tree _q50 = CALL_EXPR_ARG (_q21, 0);
7379 : 0 : switch (TREE_CODE (_p1))
7380 : : {
7381 : 0 : case CALL_EXPR:
7382 : 0 : switch (get_call_combined_fn (_p1))
7383 : : {
7384 : 0 : case CFN_BUILT_IN_POPCOUNTL:
7385 : 0 : if (call_expr_nargs (_p1) == 1)
7386 : : {
7387 : 0 : tree _q70 = CALL_EXPR_ARG (_p1, 0);
7388 : 0 : switch (TREE_CODE (_q70))
7389 : : {
7390 : 0 : case BIT_AND_EXPR:
7391 : 0 : {
7392 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
7393 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
7394 : 0 : if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
7395 : : {
7396 : 0 : if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
7397 : : {
7398 : 0 : {
7399 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
7400 : 0 : tree res = generic_simplify_56 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTL);
7401 : 0 : if (res) return res;
7402 : : }
7403 : : }
7404 : : }
7405 : 0 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
7406 : : {
7407 : 0 : if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
7408 : : {
7409 : 0 : {
7410 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
7411 : 0 : tree res = generic_simplify_56 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR, CFN_BUILT_IN_POPCOUNTL);
7412 : 0 : if (res) return res;
7413 : : }
7414 : : }
7415 : : }
7416 : : break;
7417 : : }
7418 : 0 : case BIT_IOR_EXPR:
7419 : 0 : {
7420 : 0 : tree _q80 = TREE_OPERAND (_q70, 0);
7421 : 0 : tree _q81 = TREE_OPERAND (_q70, 1);
7422 : 0 : if ((_q80 == _q30 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q30, 0) && types_match (_q80, _q30)))
7423 : : {
7424 : 0 : if ((_q81 == _q50 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q50, 0) && types_match (_q81, _q50)))
7425 : : {
7426 : 0 : {
7427 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
7428 : 0 : tree res = generic_simplify_56 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTL);
7429 : 0 : if (res) return res;
7430 : : }
7431 : : }
7432 : : }
7433 : 0 : if ((_q80 == _q50 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q50, 0) && types_match (_q80, _q50)))
7434 : : {
7435 : 0 : if ((_q81 == _q30 && ! TREE_SIDE_EFFECTS (_q81)) || (operand_equal_p (_q81, _q30, 0) && types_match (_q81, _q30)))
7436 : : {
7437 : 0 : {
7438 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1, _q70 };
7439 : 0 : tree res = generic_simplify_56 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, BIT_AND_EXPR, CFN_BUILT_IN_POPCOUNTL);
7440 : 0 : if (res) return res;
7441 : : }
7442 : : }
7443 : : }
7444 : : break;
7445 : : }
7446 : : default:;
7447 : : }
7448 : : }
7449 : : break;
7450 : : default:;
7451 : : }
7452 : : break;
7453 : : default:;
7454 : : }
7455 : : }
7456 : : break;
7457 : : default:;
7458 : : }
7459 : : break;
7460 : : default:;
7461 : : }
7462 : : }
7463 : : break;
7464 : : default:;
7465 : : }
7466 : : break;
7467 : : default:;
7468 : : }
7469 : : break;
7470 : : }
7471 : 0 : case VEC_PERM_EXPR:
7472 : 0 : {
7473 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
7474 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
7475 : 0 : tree _q22 = TREE_OPERAND (_p0, 2);
7476 : 0 : switch (TREE_CODE (_q20))
7477 : : {
7478 : 0 : case MULT_EXPR:
7479 : 0 : {
7480 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
7481 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
7482 : 0 : if (tree_vec_same_elem_p (_q31))
7483 : : {
7484 : 0 : if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
7485 : : {
7486 : 0 : {
7487 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q22, _p1 };
7488 : 0 : tree res = generic_simplify_57 (loc, type, _p0, _p1, captures);
7489 : 0 : if (res) return res;
7490 : : }
7491 : : }
7492 : : }
7493 : 0 : if (tree_vec_same_elem_p (_q30))
7494 : : {
7495 : 0 : if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
7496 : : {
7497 : 0 : {
7498 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q31, _q30, _q22, _p1 };
7499 : 0 : tree res = generic_simplify_57 (loc, type, _p0, _p1, captures);
7500 : 0 : if (res) return res;
7501 : : }
7502 : : }
7503 : : }
7504 : : break;
7505 : : }
7506 : : default:;
7507 : : }
7508 : : break;
7509 : : }
7510 : 17297854 : default:;
7511 : : }
7512 : 17297854 : switch (TREE_CODE (_p1))
7513 : : {
7514 : 6495 : case BIT_AND_EXPR:
7515 : 6495 : {
7516 : 6495 : tree _q30 = TREE_OPERAND (_p1, 0);
7517 : 6495 : tree _q31 = TREE_OPERAND (_p1, 1);
7518 : 6495 : switch (TREE_CODE (_q30))
7519 : : {
7520 : 80 : case MAX_EXPR:
7521 : 80 : {
7522 : 80 : tree _q40 = TREE_OPERAND (_q30, 0);
7523 : 80 : tree _q41 = TREE_OPERAND (_q30, 1);
7524 : 80 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
7525 : : {
7526 : 80 : switch (TREE_CODE (_q41))
7527 : : {
7528 : 80 : case INTEGER_CST:
7529 : 80 : {
7530 : 80 : switch (TREE_CODE (_q31))
7531 : : {
7532 : 72 : case INTEGER_CST:
7533 : 72 : {
7534 : 72 : {
7535 : 72 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q41, _q31 };
7536 : 72 : {
7537 : 72 : auto i = wi::neg (wi::to_wide (captures[2]));
7538 : 72 : if (wi::popcount (i) == 1
7539 : 200 : && (wi::to_wide (captures[1])) == (i - 1)
7540 : : )
7541 : : {
7542 : 40 : if (TYPE_UNSIGNED (TREE_TYPE (captures[0]))
7543 : : )
7544 : : {
7545 : 8 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1121;
7546 : 8 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1121;
7547 : 8 : {
7548 : 8 : tree res_op0;
7549 : 8 : res_op0 = captures[0];
7550 : 8 : tree res_op1;
7551 : 8 : res_op1 = captures[1];
7552 : 8 : tree _r;
7553 : 8 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
7554 : 8 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 830, __FILE__, __LINE__, true);
7555 : 8 : return _r;
7556 : : }
7557 : 64 : next_after_fail1121:;
7558 : : }
7559 : : else
7560 : : {
7561 : 32 : if (TREE_SIDE_EFFECTS (captures[2])) goto next_after_fail1122;
7562 : 32 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1122;
7563 : 32 : {
7564 : 32 : if (! tree_invariant_p (captures[0])) goto next_after_fail1122;
7565 : 0 : if (! tree_invariant_p (captures[1])) goto next_after_fail1122;
7566 : 0 : tree res_op0;
7567 : 0 : {
7568 : 0 : tree _o1[2], _r1;
7569 : 0 : _o1[0] = unshare_expr (captures[0]);
7570 : 0 : _o1[1] = unshare_expr (captures[1]);
7571 : 0 : _r1 = fold_build2_loc (loc, LE_EXPR, boolean_type_node, _o1[0], _o1[1]);
7572 : 0 : res_op0 = _r1;
7573 : : }
7574 : 0 : tree res_op1;
7575 : 0 : res_op1 = unshare_expr (captures[0]);
7576 : 0 : tree res_op2;
7577 : 0 : {
7578 : 0 : tree _o1[2], _r1;
7579 : 0 : _o1[0] = captures[0];
7580 : 0 : _o1[1] = captures[1];
7581 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
7582 : 0 : res_op2 = _r1;
7583 : : }
7584 : 0 : tree _r;
7585 : 0 : _r = fold_build3_loc (loc, COND_EXPR, type, res_op0, res_op1, res_op2);
7586 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 831, __FILE__, __LINE__, true);
7587 : 0 : return _r;
7588 : : }
7589 : 64 : next_after_fail1122:;
7590 : : }
7591 : : }
7592 : 8 : }
7593 : : }
7594 : 64 : break;
7595 : : }
7596 : : default:;
7597 : : }
7598 : : break;
7599 : : }
7600 : : default:;
7601 : : }
7602 : : }
7603 : : break;
7604 : : }
7605 : : default:;
7606 : : }
7607 : : break;
7608 : : }
7609 : 17297846 : default:;
7610 : : }
7611 : 17297846 : switch (TREE_CODE (_p0))
7612 : : {
7613 : 0 : case VEC_PERM_EXPR:
7614 : 0 : {
7615 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
7616 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
7617 : 0 : tree _q22 = TREE_OPERAND (_p0, 2);
7618 : 0 : if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
7619 : : {
7620 : 0 : switch (TREE_CODE (_p1))
7621 : : {
7622 : 0 : case VEC_PERM_EXPR:
7623 : 0 : {
7624 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
7625 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
7626 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
7627 : 0 : if ((_q61 == _q60 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q60, 0) && types_match (_q61, _q60)))
7628 : : {
7629 : 0 : if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
7630 : : {
7631 : 0 : {
7632 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q22, _q60 };
7633 : 0 : if (VECTOR_INTEGER_TYPE_P (type)
7634 : : )
7635 : : {
7636 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1123;
7637 : 0 : {
7638 : 0 : tree res_op0;
7639 : 0 : {
7640 : 0 : tree _o1[2], _r1;
7641 : 0 : _o1[0] = captures[0];
7642 : 0 : _o1[1] = captures[2];
7643 : 0 : _r1 = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
7644 : 0 : captures[3] = _r1;
7645 : : }
7646 : 0 : res_op0 = unshare_expr (captures[3]);
7647 : 0 : tree res_op1;
7648 : 0 : res_op1 = captures[3];
7649 : 0 : tree res_op2;
7650 : 0 : res_op2 = captures[1];
7651 : 0 : tree _r;
7652 : 0 : _r = fold_build3_loc (loc, VEC_PERM_EXPR, type, res_op0, res_op1, res_op2);
7653 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 796, __FILE__, __LINE__, true);
7654 : 0 : return _r;
7655 : : }
7656 : 0 : next_after_fail1123:;
7657 : : }
7658 : : }
7659 : : }
7660 : : }
7661 : : break;
7662 : : }
7663 : 0 : default:;
7664 : : }
7665 : 0 : switch (TREE_CODE (_q22))
7666 : : {
7667 : 0 : case VECTOR_CST:
7668 : 0 : {
7669 : 0 : switch (TREE_CODE (_p1))
7670 : : {
7671 : 0 : case VEC_PERM_EXPR:
7672 : 0 : {
7673 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
7674 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
7675 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
7676 : 0 : if ((_q61 == _q60 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q60, 0) && types_match (_q61, _q60)))
7677 : : {
7678 : 0 : if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
7679 : : {
7680 : 0 : switch (TREE_CODE (_q62))
7681 : : {
7682 : 0 : case VECTOR_CST:
7683 : 0 : {
7684 : 0 : {
7685 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q22, _q60 };
7686 : 0 : tree res = generic_simplify_33 (loc, type, _p0, _p1, captures, MINUS_EXPR);
7687 : 0 : if (res) return res;
7688 : : }
7689 : 0 : break;
7690 : : }
7691 : : default:;
7692 : : }
7693 : : }
7694 : : }
7695 : : break;
7696 : : }
7697 : : default:;
7698 : : }
7699 : : break;
7700 : : }
7701 : : default:;
7702 : : }
7703 : : }
7704 : : break;
7705 : : }
7706 : : default:;
7707 : : }
7708 : : return NULL_TREE;
7709 : : }
7710 : :
7711 : : tree
7712 : 5678008 : generic_simplify_BIT_AND_EXPR (location_t ARG_UNUSED (loc), enum tree_code ARG_UNUSED (code), const tree ARG_UNUSED (type), tree _p0, tree _p1)
7713 : : {
7714 : 5678008 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
7715 : 5678008 : switch (TREE_CODE (_p0))
7716 : : {
7717 : 32641 : case LSHIFT_EXPR:
7718 : 32641 : {
7719 : 32641 : tree _q20 = TREE_OPERAND (_p0, 0);
7720 : 32641 : tree _q21 = TREE_OPERAND (_p0, 1);
7721 : 32641 : switch (TREE_CODE (_p1))
7722 : : {
7723 : 1 : case LSHIFT_EXPR:
7724 : 1 : {
7725 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
7726 : 1 : tree _q51 = TREE_OPERAND (_p1, 1);
7727 : 1 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7728 : : {
7729 : 1 : {
7730 : 1 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
7731 : 1 : tree res = generic_simplify_58 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
7732 : 1 : if (res) return res;
7733 : : }
7734 : : }
7735 : : break;
7736 : : }
7737 : : default:;
7738 : : }
7739 : : break;
7740 : : }
7741 : 62127 : case RSHIFT_EXPR:
7742 : 62127 : {
7743 : 62127 : tree _q20 = TREE_OPERAND (_p0, 0);
7744 : 62127 : tree _q21 = TREE_OPERAND (_p0, 1);
7745 : 62127 : switch (TREE_CODE (_p1))
7746 : : {
7747 : 2 : case RSHIFT_EXPR:
7748 : 2 : {
7749 : 2 : tree _q50 = TREE_OPERAND (_p1, 0);
7750 : 2 : tree _q51 = TREE_OPERAND (_p1, 1);
7751 : 2 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7752 : : {
7753 : 2 : {
7754 : 2 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
7755 : 2 : tree res = generic_simplify_59 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
7756 : 2 : if (res) return res;
7757 : : }
7758 : : }
7759 : : break;
7760 : : }
7761 : : default:;
7762 : : }
7763 : : break;
7764 : : }
7765 : 1733710 : CASE_CONVERT:
7766 : 1733710 : {
7767 : 1733710 : tree _q20 = TREE_OPERAND (_p0, 0);
7768 : 1733710 : switch (TREE_CODE (_p1))
7769 : : {
7770 : 716424 : CASE_CONVERT:
7771 : 716424 : {
7772 : 716424 : tree _q40 = TREE_OPERAND (_p1, 0);
7773 : 716424 : {
7774 : 716424 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
7775 : 716424 : tree res = generic_simplify_377 (loc, type, _p0, _p1, captures);
7776 : 716424 : if (res) return res;
7777 : : }
7778 : 716424 : break;
7779 : : }
7780 : : default:;
7781 : : }
7782 : : break;
7783 : : }
7784 : 5678005 : default:;
7785 : : }
7786 : 5678005 : {
7787 : 5678005 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
7788 : 5678005 : tree res = generic_simplify_377 (loc, type, _p0, _p1, captures);
7789 : 5678005 : if (res) return res;
7790 : : }
7791 : 5677892 : switch (TREE_CODE (_p1))
7792 : : {
7793 : 20406 : case PLUS_EXPR:
7794 : 20406 : {
7795 : 20406 : tree _q30 = TREE_OPERAND (_p1, 0);
7796 : 20406 : tree _q31 = TREE_OPERAND (_p1, 1);
7797 : 20406 : switch (TREE_CODE (_q30))
7798 : : {
7799 : 163 : case LSHIFT_EXPR:
7800 : 163 : {
7801 : 163 : tree _q40 = TREE_OPERAND (_q30, 0);
7802 : 163 : tree _q41 = TREE_OPERAND (_q30, 1);
7803 : 163 : if (integer_onep (_q40))
7804 : : {
7805 : 163 : if (integer_minus_onep (_q31))
7806 : : {
7807 : 163 : {
7808 : 163 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q41 };
7809 : 163 : if (TYPE_UNSIGNED (type)
7810 : : )
7811 : : {
7812 : 163 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1519;
7813 : 163 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1519;
7814 : 163 : {
7815 : 163 : tree res_op0;
7816 : 163 : res_op0 = captures[0];
7817 : 163 : tree res_op1;
7818 : 163 : {
7819 : 163 : tree _o1[1], _r1;
7820 : 163 : {
7821 : 163 : tree _o2[2], _r2;
7822 : 163 : _o2[0] = build_all_ones_cst (type);
7823 : 163 : _o2[1] = captures[3];
7824 : 163 : _r2 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
7825 : 163 : _o1[0] = _r2;
7826 : : }
7827 : 163 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
7828 : 163 : res_op1 = _r1;
7829 : : }
7830 : 163 : tree _r;
7831 : 163 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
7832 : 163 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 907, __FILE__, __LINE__, true);
7833 : 163 : return _r;
7834 : : }
7835 : 0 : next_after_fail1519:;
7836 : : }
7837 : : }
7838 : : }
7839 : : }
7840 : : break;
7841 : : }
7842 : : default:;
7843 : : }
7844 : : break;
7845 : : }
7846 : 5677729 : default:;
7847 : : }
7848 : 5677729 : switch (TREE_CODE (_p0))
7849 : : {
7850 : 250989 : case PLUS_EXPR:
7851 : 250989 : {
7852 : 250989 : tree _q20 = TREE_OPERAND (_p0, 0);
7853 : 250989 : tree _q21 = TREE_OPERAND (_p0, 1);
7854 : 250989 : switch (TREE_CODE (_q20))
7855 : : {
7856 : 145 : case LSHIFT_EXPR:
7857 : 145 : {
7858 : 145 : tree _q30 = TREE_OPERAND (_q20, 0);
7859 : 145 : tree _q31 = TREE_OPERAND (_q20, 1);
7860 : 145 : if (integer_onep (_q30))
7861 : : {
7862 : 138 : if (integer_minus_onep (_q21))
7863 : : {
7864 : 138 : {
7865 : 138 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _p0, _q20, _q31 };
7866 : 138 : if (TYPE_UNSIGNED (type)
7867 : : )
7868 : : {
7869 : 110 : if (TREE_SIDE_EFFECTS (_p0)) goto next_after_fail1520;
7870 : 110 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1520;
7871 : 110 : {
7872 : 110 : tree res_op0;
7873 : 110 : res_op0 = captures[0];
7874 : 110 : tree res_op1;
7875 : 110 : {
7876 : 110 : tree _o1[1], _r1;
7877 : 110 : {
7878 : 110 : tree _o2[2], _r2;
7879 : 110 : _o2[0] = build_all_ones_cst (type);
7880 : 110 : _o2[1] = captures[3];
7881 : 110 : _r2 = fold_build2_loc (loc, LSHIFT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
7882 : 110 : _o1[0] = _r2;
7883 : : }
7884 : 110 : _r1 = fold_build1_loc (loc, BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
7885 : 110 : res_op1 = _r1;
7886 : : }
7887 : 110 : tree _r;
7888 : 110 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
7889 : 110 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 907, __FILE__, __LINE__, true);
7890 : 110 : return _r;
7891 : : }
7892 : 28 : next_after_fail1520:;
7893 : : }
7894 : : }
7895 : : }
7896 : : }
7897 : : break;
7898 : : }
7899 : : default:;
7900 : : }
7901 : : break;
7902 : : }
7903 : 785 : case EQ_EXPR:
7904 : 785 : {
7905 : 785 : tree _q20 = TREE_OPERAND (_p0, 0);
7906 : 785 : tree _q21 = TREE_OPERAND (_p0, 1);
7907 : 785 : if (integer_zerop (_q21))
7908 : : {
7909 : 566 : switch (TREE_CODE (_p1))
7910 : : {
7911 : 34 : case EQ_EXPR:
7912 : 34 : {
7913 : 34 : tree _q50 = TREE_OPERAND (_p1, 0);
7914 : 34 : tree _q51 = TREE_OPERAND (_p1, 1);
7915 : 34 : if (integer_zerop (_q51))
7916 : : {
7917 : 10 : {
7918 : 10 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
7919 : 10 : tree res = generic_simplify_60 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, EQ_EXPR);
7920 : 10 : if (res) return res;
7921 : : }
7922 : : }
7923 : : break;
7924 : : }
7925 : : default:;
7926 : : }
7927 : : }
7928 : 775 : if (integer_all_onesp (_q21))
7929 : : {
7930 : 0 : switch (TREE_CODE (_p1))
7931 : : {
7932 : 0 : case EQ_EXPR:
7933 : 0 : {
7934 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
7935 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
7936 : 0 : if (integer_all_onesp (_q51))
7937 : : {
7938 : 0 : {
7939 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
7940 : 0 : tree res = generic_simplify_61 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, EQ_EXPR);
7941 : 0 : if (res) return res;
7942 : : }
7943 : : }
7944 : : break;
7945 : : }
7946 : : default:;
7947 : : }
7948 : : }
7949 : 775 : switch (TREE_CODE (_p1))
7950 : : {
7951 : 10 : case BIT_IOR_EXPR:
7952 : 10 : {
7953 : 10 : tree _q50 = TREE_OPERAND (_p1, 0);
7954 : 10 : tree _q51 = TREE_OPERAND (_p1, 1);
7955 : 10 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
7956 : : {
7957 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
7958 : : {
7959 : 0 : {
7960 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7961 : 0 : tree res = generic_simplify_378 (loc, type, _p0, _p1, captures);
7962 : 0 : if (res) return res;
7963 : : }
7964 : : }
7965 : : }
7966 : 10 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
7967 : : {
7968 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
7969 : : {
7970 : 0 : {
7971 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
7972 : 0 : tree res = generic_simplify_378 (loc, type, _p0, _p1, captures);
7973 : 0 : if (res) return res;
7974 : : }
7975 : : }
7976 : : }
7977 : : break;
7978 : : }
7979 : 775 : default:;
7980 : : }
7981 : 775 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
7982 : : {
7983 : 12 : {
7984 : 12 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7985 : 12 : tree res = generic_simplify_379 (loc, type, _p0, _p1, captures);
7986 : 12 : if (res) return res;
7987 : : }
7988 : : }
7989 : 775 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
7990 : : {
7991 : 10 : {
7992 : 10 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
7993 : 10 : tree res = generic_simplify_379 (loc, type, _p0, _p1, captures);
7994 : 10 : if (res) return res;
7995 : : }
7996 : : }
7997 : : break;
7998 : : }
7999 : 1188 : case BIT_IOR_EXPR:
8000 : 1188 : {
8001 : 1188 : tree _q20 = TREE_OPERAND (_p0, 0);
8002 : 1188 : tree _q21 = TREE_OPERAND (_p0, 1);
8003 : 1188 : switch (TREE_CODE (_p1))
8004 : : {
8005 : 118 : case BIT_NOT_EXPR:
8006 : 118 : {
8007 : 118 : tree _q50 = TREE_OPERAND (_p1, 0);
8008 : 118 : switch (TREE_CODE (_q50))
8009 : : {
8010 : 0 : case BIT_XOR_EXPR:
8011 : 0 : {
8012 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
8013 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
8014 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
8015 : : {
8016 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
8017 : : {
8018 : 0 : {
8019 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8020 : 0 : tree res = generic_simplify_380 (loc, type, _p0, _p1, captures);
8021 : 0 : if (res) return res;
8022 : : }
8023 : : }
8024 : : }
8025 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
8026 : : {
8027 : 0 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
8028 : : {
8029 : 0 : {
8030 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8031 : 0 : tree res = generic_simplify_380 (loc, type, _p0, _p1, captures);
8032 : 0 : if (res) return res;
8033 : : }
8034 : : }
8035 : : }
8036 : : break;
8037 : : }
8038 : : default:;
8039 : : }
8040 : : break;
8041 : : }
8042 : 26 : case EQ_EXPR:
8043 : 26 : {
8044 : 26 : tree _q50 = TREE_OPERAND (_p1, 0);
8045 : 26 : tree _q51 = TREE_OPERAND (_p1, 1);
8046 : 26 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8047 : : {
8048 : 8 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8049 : : {
8050 : 8 : {
8051 : 8 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8052 : 8 : tree res = generic_simplify_378 (loc, type, _p0, _p1, captures);
8053 : 8 : if (res) return res;
8054 : : }
8055 : : }
8056 : : }
8057 : 26 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
8058 : : {
8059 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
8060 : : {
8061 : 0 : {
8062 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8063 : 0 : tree res = generic_simplify_378 (loc, type, _p0, _p1, captures);
8064 : 0 : if (res) return res;
8065 : : }
8066 : : }
8067 : : }
8068 : : break;
8069 : : }
8070 : 1188 : default:;
8071 : : }
8072 : 1188 : {
8073 : 1188 : tree _p1_pops[1];
8074 : 1188 : if (tree_nop_convert (_p1, _p1_pops))
8075 : : {
8076 : 128 : tree _q50 = _p1_pops[0];
8077 : 128 : switch (TREE_CODE (_q50))
8078 : : {
8079 : 0 : case EQ_EXPR:
8080 : 0 : {
8081 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
8082 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
8083 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
8084 : : {
8085 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
8086 : : {
8087 : 0 : {
8088 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8089 : 0 : tree res = generic_simplify_378 (loc, type, _p0, _p1, captures);
8090 : 0 : if (res) return res;
8091 : : }
8092 : : }
8093 : : }
8094 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
8095 : : {
8096 : 0 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
8097 : : {
8098 : 0 : {
8099 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8100 : 0 : tree res = generic_simplify_378 (loc, type, _p0, _p1, captures);
8101 : 0 : if (res) return res;
8102 : : }
8103 : : }
8104 : : }
8105 : : break;
8106 : : }
8107 : : default:;
8108 : : }
8109 : : }
8110 : : }
8111 : 1188 : break;
8112 : : }
8113 : 37334 : case BIT_NOT_EXPR:
8114 : 37334 : {
8115 : 37334 : tree _q20 = TREE_OPERAND (_p0, 0);
8116 : 37334 : switch (TREE_CODE (_q20))
8117 : : {
8118 : 83 : case BIT_XOR_EXPR:
8119 : 83 : {
8120 : 83 : tree _q30 = TREE_OPERAND (_q20, 0);
8121 : 83 : tree _q31 = TREE_OPERAND (_q20, 1);
8122 : 83 : switch (TREE_CODE (_p1))
8123 : : {
8124 : 0 : case BIT_IOR_EXPR:
8125 : 0 : {
8126 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
8127 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
8128 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
8129 : : {
8130 : 0 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
8131 : : {
8132 : 0 : {
8133 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
8134 : 0 : tree res = generic_simplify_380 (loc, type, _p0, _p1, captures);
8135 : 0 : if (res) return res;
8136 : : }
8137 : : }
8138 : : }
8139 : 0 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q31, 0) && types_match (_q60, _q31)))
8140 : : {
8141 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
8142 : : {
8143 : 0 : {
8144 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q31, _q30 };
8145 : 0 : tree res = generic_simplify_380 (loc, type, _p0, _p1, captures);
8146 : 0 : if (res) return res;
8147 : : }
8148 : : }
8149 : : }
8150 : : break;
8151 : : }
8152 : 83 : default:;
8153 : : }
8154 : 83 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
8155 : : {
8156 : 1 : {
8157 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
8158 : 1 : tree res = generic_simplify_381 (loc, type, _p0, _p1, captures);
8159 : 1 : if (res) return res;
8160 : : }
8161 : : }
8162 : 82 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
8163 : : {
8164 : 0 : {
8165 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q31, _q30 };
8166 : 0 : tree res = generic_simplify_381 (loc, type, _p0, _p1, captures);
8167 : 0 : if (res) return res;
8168 : : }
8169 : : }
8170 : : break;
8171 : : }
8172 : : default:;
8173 : : }
8174 : : break;
8175 : : }
8176 : 5677608 : default:;
8177 : : }
8178 : 5677608 : {
8179 : 5677608 : tree _p0_pops[1];
8180 : 5677608 : if (tree_nop_convert (_p0, _p0_pops))
8181 : : {
8182 : 1299299 : tree _q20 = _p0_pops[0];
8183 : 1299299 : switch (TREE_CODE (_q20))
8184 : : {
8185 : 0 : case EQ_EXPR:
8186 : 0 : {
8187 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8188 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8189 : 0 : switch (TREE_CODE (_p1))
8190 : : {
8191 : 0 : case BIT_IOR_EXPR:
8192 : 0 : {
8193 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
8194 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
8195 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
8196 : : {
8197 : 0 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
8198 : : {
8199 : 0 : {
8200 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
8201 : 0 : tree res = generic_simplify_378 (loc, type, _p0, _p1, captures);
8202 : 0 : if (res) return res;
8203 : : }
8204 : : }
8205 : : }
8206 : 0 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q31, 0) && types_match (_q60, _q31)))
8207 : : {
8208 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
8209 : : {
8210 : 0 : {
8211 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q31, _q30 };
8212 : 0 : tree res = generic_simplify_378 (loc, type, _p0, _p1, captures);
8213 : 0 : if (res) return res;
8214 : : }
8215 : : }
8216 : : }
8217 : : break;
8218 : : }
8219 : : default:;
8220 : : }
8221 : : break;
8222 : : }
8223 : : default:;
8224 : : }
8225 : : }
8226 : : }
8227 : 5677608 : switch (TREE_CODE (_p1))
8228 : : {
8229 : 23049 : case BIT_NOT_EXPR:
8230 : 23049 : {
8231 : 23049 : tree _q30 = TREE_OPERAND (_p1, 0);
8232 : 23049 : switch (TREE_CODE (_q30))
8233 : : {
8234 : 0 : case BIT_XOR_EXPR:
8235 : 0 : {
8236 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
8237 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
8238 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
8239 : : {
8240 : 0 : {
8241 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
8242 : 0 : tree res = generic_simplify_381 (loc, type, _p0, _p1, captures);
8243 : 0 : if (res) return res;
8244 : : }
8245 : : }
8246 : 0 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
8247 : : {
8248 : 0 : {
8249 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q40 };
8250 : 0 : tree res = generic_simplify_381 (loc, type, _p0, _p1, captures);
8251 : 0 : if (res) return res;
8252 : : }
8253 : : }
8254 : : break;
8255 : : }
8256 : : default:;
8257 : : }
8258 : : break;
8259 : : }
8260 : 5677608 : default:;
8261 : : }
8262 : 5677608 : {
8263 : 5677608 : tree _p1_pops[1];
8264 : 5677608 : if (tree_nop_convert (_p1, _p1_pops))
8265 : : {
8266 : 822555 : tree _q30 = _p1_pops[0];
8267 : 822555 : switch (TREE_CODE (_q30))
8268 : : {
8269 : 0 : case EQ_EXPR:
8270 : 0 : {
8271 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
8272 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
8273 : 0 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
8274 : : {
8275 : 0 : {
8276 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
8277 : 0 : tree res = generic_simplify_379 (loc, type, _p0, _p1, captures);
8278 : 0 : if (res) return res;
8279 : : }
8280 : : }
8281 : 0 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
8282 : : {
8283 : 0 : {
8284 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q40 };
8285 : 0 : tree res = generic_simplify_379 (loc, type, _p0, _p1, captures);
8286 : 0 : if (res) return res;
8287 : : }
8288 : : }
8289 : : break;
8290 : : }
8291 : : default:;
8292 : : }
8293 : : }
8294 : : }
8295 : 5677608 : {
8296 : 5677608 : tree _p0_pops[1];
8297 : 5677608 : if (tree_nop_convert (_p0, _p0_pops))
8298 : : {
8299 : 1299299 : tree _q20 = _p0_pops[0];
8300 : 1299299 : switch (TREE_CODE (_q20))
8301 : : {
8302 : 0 : case EQ_EXPR:
8303 : 0 : {
8304 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
8305 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
8306 : 0 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
8307 : : {
8308 : 0 : {
8309 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
8310 : 0 : tree res = generic_simplify_379 (loc, type, _p0, _p1, captures);
8311 : 0 : if (res) return res;
8312 : : }
8313 : : }
8314 : 0 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
8315 : : {
8316 : 0 : {
8317 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q31, _q30 };
8318 : 0 : tree res = generic_simplify_379 (loc, type, _p0, _p1, captures);
8319 : 0 : if (res) return res;
8320 : : }
8321 : : }
8322 : : break;
8323 : : }
8324 : : default:;
8325 : : }
8326 : : }
8327 : : }
8328 : 5677608 : switch (TREE_CODE (_p1))
8329 : : {
8330 : 1368 : case EQ_EXPR:
8331 : 1368 : {
8332 : 1368 : tree _q30 = TREE_OPERAND (_p1, 0);
8333 : 1368 : tree _q31 = TREE_OPERAND (_p1, 1);
8334 : 1368 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
8335 : : {
8336 : 0 : {
8337 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
8338 : 0 : tree res = generic_simplify_379 (loc, type, _p0, _p1, captures);
8339 : 0 : if (res) return res;
8340 : : }
8341 : : }
8342 : 1368 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
8343 : : {
8344 : 0 : {
8345 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
8346 : 0 : tree res = generic_simplify_379 (loc, type, _p0, _p1, captures);
8347 : 0 : if (res) return res;
8348 : : }
8349 : : }
8350 : : break;
8351 : : }
8352 : 146 : case BIT_XOR_EXPR:
8353 : 146 : {
8354 : 146 : tree _q30 = TREE_OPERAND (_p1, 0);
8355 : 146 : tree _q31 = TREE_OPERAND (_p1, 1);
8356 : 146 : {
8357 : 146 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q31 };
8358 : 146 : tree res = generic_simplify_382 (loc, type, _p0, _p1, captures);
8359 : 146 : if (res) return res;
8360 : : }
8361 : 145 : {
8362 : 145 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q31, _q30 };
8363 : 145 : tree res = generic_simplify_382 (loc, type, _p0, _p1, captures);
8364 : 145 : if (res) return res;
8365 : : }
8366 : 145 : break;
8367 : : }
8368 : 5677607 : default:;
8369 : : }
8370 : 5677607 : switch (TREE_CODE (_p0))
8371 : : {
8372 : 16889 : case BIT_XOR_EXPR:
8373 : 16889 : {
8374 : 16889 : tree _q20 = TREE_OPERAND (_p0, 0);
8375 : 16889 : tree _q21 = TREE_OPERAND (_p0, 1);
8376 : 16889 : {
8377 : 16889 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q21 };
8378 : 16889 : tree res = generic_simplify_382 (loc, type, _p0, _p1, captures);
8379 : 16889 : if (res) return res;
8380 : : }
8381 : 16889 : {
8382 : 16889 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q21, _q20 };
8383 : 16889 : tree res = generic_simplify_382 (loc, type, _p0, _p1, captures);
8384 : 16889 : if (res) return res;
8385 : : }
8386 : 16889 : switch (TREE_CODE (_p1))
8387 : : {
8388 : 41 : case BIT_XOR_EXPR:
8389 : 41 : {
8390 : 41 : tree _q50 = TREE_OPERAND (_p1, 0);
8391 : 41 : tree _q51 = TREE_OPERAND (_p1, 1);
8392 : 41 : switch (TREE_CODE (_q50))
8393 : : {
8394 : 3 : case BIT_XOR_EXPR:
8395 : 3 : {
8396 : 3 : tree _q60 = TREE_OPERAND (_q50, 0);
8397 : 3 : tree _q61 = TREE_OPERAND (_q50, 1);
8398 : 3 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
8399 : : {
8400 : 2 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
8401 : : {
8402 : 1 : {
8403 : 1 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q61 };
8404 : 1 : tree res = generic_simplify_383 (loc, type, _p0, _p1, captures);
8405 : 1 : if (res) return res;
8406 : : }
8407 : : }
8408 : : }
8409 : 2 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
8410 : : {
8411 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
8412 : : {
8413 : 0 : {
8414 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q60 };
8415 : 0 : tree res = generic_simplify_383 (loc, type, _p0, _p1, captures);
8416 : 0 : if (res) return res;
8417 : : }
8418 : : }
8419 : : }
8420 : 2 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
8421 : : {
8422 : 1 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8423 : : {
8424 : 1 : {
8425 : 1 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q61 };
8426 : 1 : tree res = generic_simplify_383 (loc, type, _p0, _p1, captures);
8427 : 1 : if (res) return res;
8428 : : }
8429 : : }
8430 : : }
8431 : 1 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
8432 : : {
8433 : 1 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
8434 : : {
8435 : 0 : {
8436 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q60 };
8437 : 0 : tree res = generic_simplify_383 (loc, type, _p0, _p1, captures);
8438 : 0 : if (res) return res;
8439 : : }
8440 : : }
8441 : : }
8442 : : break;
8443 : : }
8444 : 39 : default:;
8445 : : }
8446 : 39 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
8447 : : {
8448 : 14 : switch (TREE_CODE (_q51))
8449 : : {
8450 : 0 : case BIT_XOR_EXPR:
8451 : 0 : {
8452 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
8453 : 0 : tree _q71 = TREE_OPERAND (_q51, 1);
8454 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
8455 : : {
8456 : 0 : {
8457 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q71 };
8458 : 0 : tree res = generic_simplify_383 (loc, type, _p0, _p1, captures);
8459 : 0 : if (res) return res;
8460 : : }
8461 : : }
8462 : 0 : if ((_q71 == _q21 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q21, 0) && types_match (_q71, _q21)))
8463 : : {
8464 : 0 : {
8465 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q70 };
8466 : 0 : tree res = generic_simplify_383 (loc, type, _p0, _p1, captures);
8467 : 0 : if (res) return res;
8468 : : }
8469 : : }
8470 : : break;
8471 : : }
8472 : : default:;
8473 : : }
8474 : : }
8475 : 39 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
8476 : : {
8477 : 0 : switch (TREE_CODE (_q51))
8478 : : {
8479 : 0 : case BIT_XOR_EXPR:
8480 : 0 : {
8481 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
8482 : 0 : tree _q71 = TREE_OPERAND (_q51, 1);
8483 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
8484 : : {
8485 : 0 : {
8486 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q71 };
8487 : 0 : tree res = generic_simplify_383 (loc, type, _p0, _p1, captures);
8488 : 0 : if (res) return res;
8489 : : }
8490 : : }
8491 : 0 : if ((_q71 == _q20 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q20, 0) && types_match (_q71, _q20)))
8492 : : {
8493 : 0 : {
8494 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q70 };
8495 : 0 : tree res = generic_simplify_383 (loc, type, _p0, _p1, captures);
8496 : 0 : if (res) return res;
8497 : : }
8498 : : }
8499 : : break;
8500 : : }
8501 : : default:;
8502 : : }
8503 : : }
8504 : : break;
8505 : : }
8506 : 16887 : default:;
8507 : : }
8508 : 16887 : switch (TREE_CODE (_q20))
8509 : : {
8510 : 1 : case BIT_XOR_EXPR:
8511 : 1 : {
8512 : 1 : tree _q30 = TREE_OPERAND (_q20, 0);
8513 : 1 : tree _q31 = TREE_OPERAND (_q20, 1);
8514 : 1 : switch (TREE_CODE (_p1))
8515 : : {
8516 : 0 : case BIT_XOR_EXPR:
8517 : 0 : {
8518 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
8519 : 0 : tree _q71 = TREE_OPERAND (_p1, 1);
8520 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
8521 : : {
8522 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
8523 : : {
8524 : 0 : {
8525 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q30, _p0, _q20, _q31 };
8526 : 0 : tree res = generic_simplify_384 (loc, type, _p0, _p1, captures);
8527 : 0 : if (res) return res;
8528 : : }
8529 : : }
8530 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
8531 : : {
8532 : 0 : {
8533 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q31, _p0, _q20, _q30 };
8534 : 0 : tree res = generic_simplify_384 (loc, type, _p0, _p1, captures);
8535 : 0 : if (res) return res;
8536 : : }
8537 : : }
8538 : : }
8539 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
8540 : : {
8541 : 0 : if ((_q71 == _q21 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q21, 0) && types_match (_q71, _q21)))
8542 : : {
8543 : 0 : {
8544 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q30, _p0, _q20, _q31 };
8545 : 0 : tree res = generic_simplify_384 (loc, type, _p0, _p1, captures);
8546 : 0 : if (res) return res;
8547 : : }
8548 : : }
8549 : : }
8550 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
8551 : : {
8552 : 0 : if ((_q71 == _q21 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q21, 0) && types_match (_q71, _q21)))
8553 : : {
8554 : 0 : {
8555 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q31, _p0, _q20, _q30 };
8556 : 0 : tree res = generic_simplify_384 (loc, type, _p0, _p1, captures);
8557 : 0 : if (res) return res;
8558 : : }
8559 : : }
8560 : : }
8561 : : break;
8562 : : }
8563 : : default:;
8564 : : }
8565 : : break;
8566 : : }
8567 : 16887 : default:;
8568 : : }
8569 : 16887 : switch (TREE_CODE (_q21))
8570 : : {
8571 : 0 : case BIT_XOR_EXPR:
8572 : 0 : {
8573 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
8574 : 0 : tree _q41 = TREE_OPERAND (_q21, 1);
8575 : 0 : switch (TREE_CODE (_p1))
8576 : : {
8577 : 0 : case BIT_XOR_EXPR:
8578 : 0 : {
8579 : 0 : tree _q70 = TREE_OPERAND (_p1, 0);
8580 : 0 : tree _q71 = TREE_OPERAND (_p1, 1);
8581 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
8582 : : {
8583 : 0 : if ((_q71 == _q40 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q40, 0) && types_match (_q71, _q40)))
8584 : : {
8585 : 0 : {
8586 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q40, _p0, _q21, _q41 };
8587 : 0 : tree res = generic_simplify_384 (loc, type, _p0, _p1, captures);
8588 : 0 : if (res) return res;
8589 : : }
8590 : : }
8591 : 0 : if ((_q71 == _q41 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q41, 0) && types_match (_q71, _q41)))
8592 : : {
8593 : 0 : {
8594 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q41, _p0, _q21, _q40 };
8595 : 0 : tree res = generic_simplify_384 (loc, type, _p0, _p1, captures);
8596 : 0 : if (res) return res;
8597 : : }
8598 : : }
8599 : : }
8600 : 0 : if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
8601 : : {
8602 : 0 : if ((_q71 == _q20 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q20, 0) && types_match (_q71, _q20)))
8603 : : {
8604 : 0 : {
8605 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q40, _p0, _q21, _q41 };
8606 : 0 : tree res = generic_simplify_384 (loc, type, _p0, _p1, captures);
8607 : 0 : if (res) return res;
8608 : : }
8609 : : }
8610 : : }
8611 : 0 : if ((_q70 == _q41 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q41, 0) && types_match (_q70, _q41)))
8612 : : {
8613 : 0 : if ((_q71 == _q20 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q20, 0) && types_match (_q71, _q20)))
8614 : : {
8615 : 0 : {
8616 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q41, _p0, _q21, _q40 };
8617 : 0 : tree res = generic_simplify_384 (loc, type, _p0, _p1, captures);
8618 : 0 : if (res) return res;
8619 : : }
8620 : : }
8621 : : }
8622 : : break;
8623 : : }
8624 : : default:;
8625 : : }
8626 : : break;
8627 : : }
8628 : : default:;
8629 : : }
8630 : : break;
8631 : : }
8632 : 37332 : case BIT_NOT_EXPR:
8633 : 37332 : {
8634 : 37332 : tree _q20 = TREE_OPERAND (_p0, 0);
8635 : 37332 : switch (TREE_CODE (_q20))
8636 : : {
8637 : 157 : case SSA_NAME:
8638 : 157 : {
8639 : 157 : switch (TREE_CODE (_p1))
8640 : : {
8641 : 157 : case INTEGER_CST:
8642 : 157 : {
8643 : 157 : {
8644 : 157 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
8645 : 314 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
8646 : 628 : && wi::bit_and_not (get_nonzero_bits (captures[0]), wi::to_wide (captures[1])) == 0
8647 : : )
8648 : : {
8649 : 13 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1521;
8650 : 13 : {
8651 : 13 : tree res_op0;
8652 : 13 : res_op0 = captures[0];
8653 : 13 : tree res_op1;
8654 : 13 : res_op1 = captures[1];
8655 : 13 : tree _r;
8656 : 13 : _r = fold_build2_loc (loc, BIT_XOR_EXPR, type, res_op0, res_op1);
8657 : 13 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 908, __FILE__, __LINE__, true);
8658 : 13 : return _r;
8659 : : }
8660 : 0 : next_after_fail1521:;
8661 : : }
8662 : : }
8663 : 144 : break;
8664 : : }
8665 : : default:;
8666 : : }
8667 : : break;
8668 : : }
8669 : : default:;
8670 : : }
8671 : : break;
8672 : : }
8673 : 250879 : case PLUS_EXPR:
8674 : 250879 : {
8675 : 250879 : tree _q20 = TREE_OPERAND (_p0, 0);
8676 : 250879 : tree _q21 = TREE_OPERAND (_p0, 1);
8677 : 250879 : switch (TREE_CODE (_q20))
8678 : : {
8679 : 22 : case BIT_AND_EXPR:
8680 : 22 : {
8681 : 22 : tree _q30 = TREE_OPERAND (_q20, 0);
8682 : 22 : tree _q31 = TREE_OPERAND (_q20, 1);
8683 : 22 : switch (TREE_CODE (_q31))
8684 : : {
8685 : 18 : case INTEGER_CST:
8686 : 18 : {
8687 : 18 : switch (TREE_CODE (_p1))
8688 : : {
8689 : 18 : case INTEGER_CST:
8690 : 18 : {
8691 : 18 : {
8692 : 18 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
8693 : 18 : tree res = generic_simplify_385 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, PLUS_EXPR);
8694 : 18 : if (res) return res;
8695 : : }
8696 : 12 : break;
8697 : : }
8698 : : default:;
8699 : : }
8700 : : break;
8701 : : }
8702 : : default:;
8703 : : }
8704 : : break;
8705 : : }
8706 : 64 : case BIT_IOR_EXPR:
8707 : 64 : {
8708 : 64 : tree _q30 = TREE_OPERAND (_q20, 0);
8709 : 64 : tree _q31 = TREE_OPERAND (_q20, 1);
8710 : 64 : switch (TREE_CODE (_q31))
8711 : : {
8712 : 52 : case INTEGER_CST:
8713 : 52 : {
8714 : 52 : switch (TREE_CODE (_p1))
8715 : : {
8716 : 52 : case INTEGER_CST:
8717 : 52 : {
8718 : 52 : {
8719 : 52 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
8720 : 52 : tree res = generic_simplify_385 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, PLUS_EXPR);
8721 : 52 : if (res) return res;
8722 : : }
8723 : 48 : break;
8724 : : }
8725 : : default:;
8726 : : }
8727 : : break;
8728 : : }
8729 : : default:;
8730 : : }
8731 : : break;
8732 : : }
8733 : 24 : case BIT_XOR_EXPR:
8734 : 24 : {
8735 : 24 : tree _q30 = TREE_OPERAND (_q20, 0);
8736 : 24 : tree _q31 = TREE_OPERAND (_q20, 1);
8737 : 24 : switch (TREE_CODE (_q31))
8738 : : {
8739 : 4 : case INTEGER_CST:
8740 : 4 : {
8741 : 4 : switch (TREE_CODE (_p1))
8742 : : {
8743 : 4 : case INTEGER_CST:
8744 : 4 : {
8745 : 4 : {
8746 : 4 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
8747 : 4 : tree res = generic_simplify_385 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, PLUS_EXPR);
8748 : 4 : if (res) return res;
8749 : : }
8750 : 0 : break;
8751 : : }
8752 : : default:;
8753 : : }
8754 : : break;
8755 : : }
8756 : : default:;
8757 : : }
8758 : : break;
8759 : : }
8760 : 250865 : default:;
8761 : : }
8762 : 250865 : switch (TREE_CODE (_q21))
8763 : : {
8764 : 0 : case BIT_AND_EXPR:
8765 : 0 : {
8766 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
8767 : 0 : tree _q41 = TREE_OPERAND (_q21, 1);
8768 : 0 : switch (TREE_CODE (_q41))
8769 : : {
8770 : 0 : case INTEGER_CST:
8771 : 0 : {
8772 : 0 : switch (TREE_CODE (_p1))
8773 : : {
8774 : 0 : case INTEGER_CST:
8775 : 0 : {
8776 : 0 : {
8777 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q41, _p1 };
8778 : 0 : tree res = generic_simplify_386 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, PLUS_EXPR);
8779 : 0 : if (res) return res;
8780 : : }
8781 : 0 : break;
8782 : : }
8783 : : default:;
8784 : : }
8785 : : break;
8786 : : }
8787 : : default:;
8788 : : }
8789 : : break;
8790 : : }
8791 : 0 : case BIT_IOR_EXPR:
8792 : 0 : {
8793 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
8794 : 0 : tree _q41 = TREE_OPERAND (_q21, 1);
8795 : 0 : switch (TREE_CODE (_q41))
8796 : : {
8797 : 0 : case INTEGER_CST:
8798 : 0 : {
8799 : 0 : switch (TREE_CODE (_p1))
8800 : : {
8801 : 0 : case INTEGER_CST:
8802 : 0 : {
8803 : 0 : {
8804 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q41, _p1 };
8805 : 0 : tree res = generic_simplify_386 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, PLUS_EXPR);
8806 : 0 : if (res) return res;
8807 : : }
8808 : 0 : break;
8809 : : }
8810 : : default:;
8811 : : }
8812 : : break;
8813 : : }
8814 : : default:;
8815 : : }
8816 : : break;
8817 : : }
8818 : 0 : case BIT_XOR_EXPR:
8819 : 0 : {
8820 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
8821 : 0 : tree _q41 = TREE_OPERAND (_q21, 1);
8822 : 0 : switch (TREE_CODE (_q41))
8823 : : {
8824 : 0 : case INTEGER_CST:
8825 : 0 : {
8826 : 0 : switch (TREE_CODE (_p1))
8827 : : {
8828 : 0 : case INTEGER_CST:
8829 : 0 : {
8830 : 0 : {
8831 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q41, _p1 };
8832 : 0 : tree res = generic_simplify_386 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, PLUS_EXPR);
8833 : 0 : if (res) return res;
8834 : : }
8835 : 0 : break;
8836 : : }
8837 : : default:;
8838 : : }
8839 : : break;
8840 : : }
8841 : : default:;
8842 : : }
8843 : : break;
8844 : : }
8845 : 250865 : default:;
8846 : : }
8847 : 250865 : switch (TREE_CODE (_p1))
8848 : : {
8849 : 167813 : case INTEGER_CST:
8850 : 167813 : {
8851 : 167813 : {
8852 : 167813 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
8853 : 167813 : tree res = generic_simplify_387 (loc, type, _p0, _p1, captures, PLUS_EXPR);
8854 : 167813 : if (res) return res;
8855 : : }
8856 : 61842 : break;
8857 : : }
8858 : : default:;
8859 : : }
8860 : : break;
8861 : : }
8862 : 513811 : case MINUS_EXPR:
8863 : 513811 : {
8864 : 513811 : tree _q20 = TREE_OPERAND (_p0, 0);
8865 : 513811 : tree _q21 = TREE_OPERAND (_p0, 1);
8866 : 513811 : switch (TREE_CODE (_q20))
8867 : : {
8868 : 4 : case BIT_AND_EXPR:
8869 : 4 : {
8870 : 4 : tree _q30 = TREE_OPERAND (_q20, 0);
8871 : 4 : tree _q31 = TREE_OPERAND (_q20, 1);
8872 : 4 : switch (TREE_CODE (_q31))
8873 : : {
8874 : 2 : case INTEGER_CST:
8875 : 2 : {
8876 : 2 : switch (TREE_CODE (_p1))
8877 : : {
8878 : 2 : case INTEGER_CST:
8879 : 2 : {
8880 : 2 : {
8881 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
8882 : 2 : tree res = generic_simplify_385 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, MINUS_EXPR);
8883 : 2 : if (res) return res;
8884 : : }
8885 : 0 : break;
8886 : : }
8887 : : default:;
8888 : : }
8889 : : break;
8890 : : }
8891 : : default:;
8892 : : }
8893 : : break;
8894 : : }
8895 : 4 : case BIT_IOR_EXPR:
8896 : 4 : {
8897 : 4 : tree _q30 = TREE_OPERAND (_q20, 0);
8898 : 4 : tree _q31 = TREE_OPERAND (_q20, 1);
8899 : 4 : switch (TREE_CODE (_q31))
8900 : : {
8901 : 2 : case INTEGER_CST:
8902 : 2 : {
8903 : 2 : switch (TREE_CODE (_p1))
8904 : : {
8905 : 2 : case INTEGER_CST:
8906 : 2 : {
8907 : 2 : {
8908 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
8909 : 2 : tree res = generic_simplify_385 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, MINUS_EXPR);
8910 : 2 : if (res) return res;
8911 : : }
8912 : 0 : break;
8913 : : }
8914 : : default:;
8915 : : }
8916 : : break;
8917 : : }
8918 : : default:;
8919 : : }
8920 : : break;
8921 : : }
8922 : 4 : case BIT_XOR_EXPR:
8923 : 4 : {
8924 : 4 : tree _q30 = TREE_OPERAND (_q20, 0);
8925 : 4 : tree _q31 = TREE_OPERAND (_q20, 1);
8926 : 4 : switch (TREE_CODE (_q31))
8927 : : {
8928 : 2 : case INTEGER_CST:
8929 : 2 : {
8930 : 2 : switch (TREE_CODE (_p1))
8931 : : {
8932 : 2 : case INTEGER_CST:
8933 : 2 : {
8934 : 2 : {
8935 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1 };
8936 : 2 : tree res = generic_simplify_385 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, MINUS_EXPR);
8937 : 2 : if (res) return res;
8938 : : }
8939 : 0 : break;
8940 : : }
8941 : : default:;
8942 : : }
8943 : : break;
8944 : : }
8945 : : default:;
8946 : : }
8947 : : break;
8948 : : }
8949 : 513805 : default:;
8950 : : }
8951 : 513805 : switch (TREE_CODE (_q21))
8952 : : {
8953 : 167 : case BIT_AND_EXPR:
8954 : 167 : {
8955 : 167 : tree _q40 = TREE_OPERAND (_q21, 0);
8956 : 167 : tree _q41 = TREE_OPERAND (_q21, 1);
8957 : 167 : switch (TREE_CODE (_q41))
8958 : : {
8959 : 165 : case INTEGER_CST:
8960 : 165 : {
8961 : 165 : switch (TREE_CODE (_p1))
8962 : : {
8963 : 165 : case INTEGER_CST:
8964 : 165 : {
8965 : 165 : {
8966 : 165 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q41, _p1 };
8967 : 165 : tree res = generic_simplify_386 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, MINUS_EXPR);
8968 : 165 : if (res) return res;
8969 : : }
8970 : 7 : break;
8971 : : }
8972 : : default:;
8973 : : }
8974 : : break;
8975 : : }
8976 : : default:;
8977 : : }
8978 : : break;
8979 : : }
8980 : 4 : case BIT_IOR_EXPR:
8981 : 4 : {
8982 : 4 : tree _q40 = TREE_OPERAND (_q21, 0);
8983 : 4 : tree _q41 = TREE_OPERAND (_q21, 1);
8984 : 4 : switch (TREE_CODE (_q41))
8985 : : {
8986 : 2 : case INTEGER_CST:
8987 : 2 : {
8988 : 2 : switch (TREE_CODE (_p1))
8989 : : {
8990 : 2 : case INTEGER_CST:
8991 : 2 : {
8992 : 2 : {
8993 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q41, _p1 };
8994 : 2 : tree res = generic_simplify_386 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR, MINUS_EXPR);
8995 : 2 : if (res) return res;
8996 : : }
8997 : 0 : break;
8998 : : }
8999 : : default:;
9000 : : }
9001 : : break;
9002 : : }
9003 : : default:;
9004 : : }
9005 : : break;
9006 : : }
9007 : 4 : case BIT_XOR_EXPR:
9008 : 4 : {
9009 : 4 : tree _q40 = TREE_OPERAND (_q21, 0);
9010 : 4 : tree _q41 = TREE_OPERAND (_q21, 1);
9011 : 4 : switch (TREE_CODE (_q41))
9012 : : {
9013 : 2 : case INTEGER_CST:
9014 : 2 : {
9015 : 2 : switch (TREE_CODE (_p1))
9016 : : {
9017 : 2 : case INTEGER_CST:
9018 : 2 : {
9019 : 2 : {
9020 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q40, _q41, _p1 };
9021 : 2 : tree res = generic_simplify_386 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR, MINUS_EXPR);
9022 : 2 : if (res) return res;
9023 : : }
9024 : 0 : break;
9025 : : }
9026 : : default:;
9027 : : }
9028 : : break;
9029 : : }
9030 : : default:;
9031 : : }
9032 : : break;
9033 : : }
9034 : 513643 : default:;
9035 : : }
9036 : 513643 : switch (TREE_CODE (_p1))
9037 : : {
9038 : 513437 : case INTEGER_CST:
9039 : 513437 : {
9040 : 513437 : {
9041 : 513437 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
9042 : 513437 : tree res = generic_simplify_387 (loc, type, _p0, _p1, captures, MINUS_EXPR);
9043 : 513437 : if (res) return res;
9044 : : }
9045 : 380933 : break;
9046 : : }
9047 : : default:;
9048 : : }
9049 : : break;
9050 : : }
9051 : 47147 : case NEGATE_EXPR:
9052 : 47147 : {
9053 : 47147 : tree _q20 = TREE_OPERAND (_p0, 0);
9054 : 47147 : switch (TREE_CODE (_q20))
9055 : : {
9056 : 25 : case BIT_AND_EXPR:
9057 : 25 : {
9058 : 25 : tree _q30 = TREE_OPERAND (_q20, 0);
9059 : 25 : tree _q31 = TREE_OPERAND (_q20, 1);
9060 : 25 : switch (TREE_CODE (_q31))
9061 : : {
9062 : 21 : case INTEGER_CST:
9063 : 21 : {
9064 : 21 : switch (TREE_CODE (_p1))
9065 : : {
9066 : 11 : case INTEGER_CST:
9067 : 11 : {
9068 : 11 : {
9069 : 11 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1 };
9070 : 11 : tree res = generic_simplify_388 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
9071 : 11 : if (res) return res;
9072 : : }
9073 : 8 : break;
9074 : : }
9075 : : default:;
9076 : : }
9077 : : break;
9078 : : }
9079 : : default:;
9080 : : }
9081 : : break;
9082 : : }
9083 : 44 : case BIT_IOR_EXPR:
9084 : 44 : {
9085 : 44 : tree _q30 = TREE_OPERAND (_q20, 0);
9086 : 44 : tree _q31 = TREE_OPERAND (_q20, 1);
9087 : 44 : switch (TREE_CODE (_q31))
9088 : : {
9089 : 2 : case INTEGER_CST:
9090 : 2 : {
9091 : 2 : switch (TREE_CODE (_p1))
9092 : : {
9093 : 2 : case INTEGER_CST:
9094 : 2 : {
9095 : 2 : {
9096 : 2 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1 };
9097 : 2 : tree res = generic_simplify_388 (loc, type, _p0, _p1, captures, BIT_IOR_EXPR);
9098 : 2 : if (res) return res;
9099 : : }
9100 : 0 : break;
9101 : : }
9102 : : default:;
9103 : : }
9104 : : break;
9105 : : }
9106 : : default:;
9107 : : }
9108 : : break;
9109 : : }
9110 : 4 : case BIT_XOR_EXPR:
9111 : 4 : {
9112 : 4 : tree _q30 = TREE_OPERAND (_q20, 0);
9113 : 4 : tree _q31 = TREE_OPERAND (_q20, 1);
9114 : 4 : switch (TREE_CODE (_q31))
9115 : : {
9116 : 2 : case INTEGER_CST:
9117 : 2 : {
9118 : 2 : switch (TREE_CODE (_p1))
9119 : : {
9120 : 2 : case INTEGER_CST:
9121 : 2 : {
9122 : 2 : {
9123 : 2 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1 };
9124 : 2 : tree res = generic_simplify_388 (loc, type, _p0, _p1, captures, BIT_XOR_EXPR);
9125 : 2 : if (res) return res;
9126 : : }
9127 : 0 : break;
9128 : : }
9129 : : default:;
9130 : : }
9131 : : break;
9132 : : }
9133 : : default:;
9134 : : }
9135 : : break;
9136 : : }
9137 : 47140 : default:;
9138 : : }
9139 : 47140 : if (tree_zero_one_valued_p (_q20))
9140 : : {
9141 : 18 : {
9142 : 18 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
9143 : 18 : tree res = generic_simplify_389 (loc, type, _p0, _p1, captures);
9144 : 18 : if (res) return res;
9145 : : }
9146 : : }
9147 : : break;
9148 : : }
9149 : 5438910 : default:;
9150 : : }
9151 : 5438910 : if (integer_zerop (_p1))
9152 : : {
9153 : 3769 : {
9154 : 3769 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
9155 : 3769 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1522;
9156 : 3769 : {
9157 : 3769 : tree _r;
9158 : 3769 : _r = captures[1];
9159 : 3769 : if (TREE_SIDE_EFFECTS (captures[0]))
9160 : 51 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
9161 : 3769 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 909, __FILE__, __LINE__, true);
9162 : 3769 : return _r;
9163 : : }
9164 : 0 : next_after_fail1522:;
9165 : : }
9166 : : }
9167 : 5435141 : if (integer_all_onesp (_p1))
9168 : : {
9169 : 27298 : {
9170 : 27298 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
9171 : 27298 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1523;
9172 : 27298 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1523;
9173 : 27298 : {
9174 : 27298 : tree res_op0;
9175 : 27298 : res_op0 = captures[0];
9176 : 27298 : tree _r;
9177 : 27298 : _r = non_lvalue_loc (loc, res_op0);
9178 : 27298 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 910, __FILE__, __LINE__, true);
9179 : 27298 : return _r;
9180 : : }
9181 : : next_after_fail1523:;
9182 : : }
9183 : : }
9184 : 5407843 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
9185 : : {
9186 : 140 : {
9187 : 140 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
9188 : 140 : tree res = generic_simplify_81 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
9189 : 140 : if (res) return res;
9190 : : }
9191 : : }
9192 : 5407703 : switch (TREE_CODE (_p1))
9193 : : {
9194 : 23049 : case BIT_NOT_EXPR:
9195 : 23049 : {
9196 : 23049 : tree _q30 = TREE_OPERAND (_p1, 0);
9197 : 23049 : switch (TREE_CODE (_q30))
9198 : : {
9199 : 13 : case BIT_AND_EXPR:
9200 : 13 : {
9201 : 13 : tree _q40 = TREE_OPERAND (_q30, 0);
9202 : 13 : tree _q41 = TREE_OPERAND (_q30, 1);
9203 : 13 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
9204 : : {
9205 : 0 : {
9206 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q41 };
9207 : 0 : tree res = generic_simplify_82 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
9208 : 0 : if (res) return res;
9209 : : }
9210 : : }
9211 : 13 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
9212 : : {
9213 : 0 : {
9214 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q40 };
9215 : 0 : tree res = generic_simplify_82 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
9216 : 0 : if (res) return res;
9217 : : }
9218 : : }
9219 : : break;
9220 : : }
9221 : : default:;
9222 : : }
9223 : : break;
9224 : : }
9225 : 5407703 : default:;
9226 : : }
9227 : 5407703 : switch (TREE_CODE (_p0))
9228 : : {
9229 : 37303 : case BIT_NOT_EXPR:
9230 : 37303 : {
9231 : 37303 : tree _q20 = TREE_OPERAND (_p0, 0);
9232 : 37303 : switch (TREE_CODE (_q20))
9233 : : {
9234 : 19 : case BIT_AND_EXPR:
9235 : 19 : {
9236 : 19 : tree _q30 = TREE_OPERAND (_q20, 0);
9237 : 19 : tree _q31 = TREE_OPERAND (_q20, 1);
9238 : 19 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
9239 : : {
9240 : 4 : {
9241 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q20, _q31 };
9242 : 4 : tree res = generic_simplify_82 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
9243 : 4 : if (res) return res;
9244 : : }
9245 : : }
9246 : 15 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
9247 : : {
9248 : 3 : {
9249 : 3 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q20, _q30 };
9250 : 3 : tree res = generic_simplify_82 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
9251 : 3 : if (res) return res;
9252 : : }
9253 : : }
9254 : 12 : switch (TREE_CODE (_p1))
9255 : : {
9256 : 0 : case BIT_IOR_EXPR:
9257 : 0 : {
9258 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
9259 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
9260 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
9261 : : {
9262 : 0 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
9263 : : {
9264 : 0 : {
9265 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
9266 : 0 : tree res = generic_simplify_390 (loc, type, _p0, _p1, captures);
9267 : 0 : if (res) return res;
9268 : : }
9269 : : }
9270 : : }
9271 : : break;
9272 : : }
9273 : : default:;
9274 : : }
9275 : : break;
9276 : : }
9277 : 37296 : default:;
9278 : : }
9279 : 37296 : switch (TREE_CODE (_p1))
9280 : : {
9281 : 334 : CASE_CONVERT:
9282 : 334 : {
9283 : 334 : tree _q40 = TREE_OPERAND (_p1, 0);
9284 : 334 : switch (TREE_CODE (_q40))
9285 : : {
9286 : 0 : case BIT_NOT_EXPR:
9287 : 0 : {
9288 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
9289 : 0 : {
9290 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q50 };
9291 : 0 : tree res = generic_simplify_78 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
9292 : 0 : if (res) return res;
9293 : : }
9294 : 0 : break;
9295 : : }
9296 : : default:;
9297 : : }
9298 : : break;
9299 : : }
9300 : 44 : case BIT_NOT_EXPR:
9301 : 44 : {
9302 : 44 : tree _q40 = TREE_OPERAND (_p1, 0);
9303 : 44 : {
9304 : 44 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
9305 : 44 : tree res = generic_simplify_78 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
9306 : 44 : if (res) return res;
9307 : : }
9308 : 0 : break;
9309 : : }
9310 : : default:;
9311 : : }
9312 : : break;
9313 : : }
9314 : 1156 : case BIT_IOR_EXPR:
9315 : 1156 : {
9316 : 1156 : tree _q20 = TREE_OPERAND (_p0, 0);
9317 : 1156 : tree _q21 = TREE_OPERAND (_p0, 1);
9318 : 1156 : switch (TREE_CODE (_p1))
9319 : : {
9320 : 118 : case BIT_NOT_EXPR:
9321 : 118 : {
9322 : 118 : tree _q50 = TREE_OPERAND (_p1, 0);
9323 : 118 : switch (TREE_CODE (_q50))
9324 : : {
9325 : 0 : case BIT_AND_EXPR:
9326 : 0 : {
9327 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
9328 : 0 : tree _q61 = TREE_OPERAND (_q50, 1);
9329 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
9330 : : {
9331 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
9332 : : {
9333 : 0 : {
9334 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9335 : 0 : tree res = generic_simplify_390 (loc, type, _p0, _p1, captures);
9336 : 0 : if (res) return res;
9337 : : }
9338 : : }
9339 : : }
9340 : : break;
9341 : : }
9342 : : default:;
9343 : : }
9344 : : break;
9345 : : }
9346 : 2 : case BIT_XOR_EXPR:
9347 : 2 : {
9348 : 2 : tree _q50 = TREE_OPERAND (_p1, 0);
9349 : 2 : tree _q51 = TREE_OPERAND (_p1, 1);
9350 : 2 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9351 : : {
9352 : 0 : {
9353 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
9354 : 0 : tree res = generic_simplify_391 (loc, type, _p0, _p1, captures);
9355 : 0 : if (res) return res;
9356 : : }
9357 : : }
9358 : 2 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9359 : : {
9360 : 2 : {
9361 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
9362 : 2 : tree res = generic_simplify_391 (loc, type, _p0, _p1, captures);
9363 : 2 : if (res) return res;
9364 : : }
9365 : : }
9366 : 2 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9367 : : {
9368 : 0 : {
9369 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
9370 : 0 : tree res = generic_simplify_391 (loc, type, _p0, _p1, captures);
9371 : 0 : if (res) return res;
9372 : : }
9373 : : }
9374 : 2 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9375 : : {
9376 : 0 : {
9377 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
9378 : 0 : tree res = generic_simplify_391 (loc, type, _p0, _p1, captures);
9379 : 0 : if (res) return res;
9380 : : }
9381 : : }
9382 : : break;
9383 : : }
9384 : 1156 : default:;
9385 : : }
9386 : 1156 : switch (TREE_CODE (_q20))
9387 : : {
9388 : 13 : case BIT_NOT_EXPR:
9389 : 13 : {
9390 : 13 : tree _q30 = TREE_OPERAND (_q20, 0);
9391 : 13 : switch (TREE_CODE (_p1))
9392 : : {
9393 : 2 : case BIT_IOR_EXPR:
9394 : 2 : {
9395 : 2 : tree _q60 = TREE_OPERAND (_p1, 0);
9396 : 2 : tree _q61 = TREE_OPERAND (_p1, 1);
9397 : 2 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
9398 : : {
9399 : 0 : switch (TREE_CODE (_q61))
9400 : : {
9401 : 0 : case BIT_NOT_EXPR:
9402 : 0 : {
9403 : 0 : tree _q80 = TREE_OPERAND (_q61, 0);
9404 : 0 : if ((_q80 == _q21 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q21, 0) && types_match (_q80, _q21)))
9405 : : {
9406 : 0 : {
9407 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q21, _p1 };
9408 : 0 : tree res = generic_simplify_392 (loc, type, _p0, _p1, captures);
9409 : 0 : if (res) return res;
9410 : : }
9411 : : }
9412 : : break;
9413 : : }
9414 : : default:;
9415 : : }
9416 : : }
9417 : 2 : switch (TREE_CODE (_q60))
9418 : : {
9419 : 2 : case BIT_NOT_EXPR:
9420 : 2 : {
9421 : 2 : tree _q70 = TREE_OPERAND (_q60, 0);
9422 : 2 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
9423 : : {
9424 : 2 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
9425 : : {
9426 : 2 : {
9427 : 2 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q21, _p1 };
9428 : 2 : tree res = generic_simplify_392 (loc, type, _p0, _p1, captures);
9429 : 2 : if (res) return res;
9430 : : }
9431 : : }
9432 : : }
9433 : : break;
9434 : : }
9435 : : default:;
9436 : : }
9437 : : break;
9438 : : }
9439 : : default:;
9440 : : }
9441 : : break;
9442 : : }
9443 : 1154 : default:;
9444 : : }
9445 : 1154 : switch (TREE_CODE (_q21))
9446 : : {
9447 : 0 : case BIT_NOT_EXPR:
9448 : 0 : {
9449 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
9450 : 0 : switch (TREE_CODE (_p1))
9451 : : {
9452 : 0 : case BIT_IOR_EXPR:
9453 : 0 : {
9454 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
9455 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
9456 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
9457 : : {
9458 : 0 : switch (TREE_CODE (_q61))
9459 : : {
9460 : 0 : case BIT_NOT_EXPR:
9461 : 0 : {
9462 : 0 : tree _q80 = TREE_OPERAND (_q61, 0);
9463 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
9464 : : {
9465 : 0 : {
9466 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q40, _q20, _p1 };
9467 : 0 : tree res = generic_simplify_392 (loc, type, _p0, _p1, captures);
9468 : 0 : if (res) return res;
9469 : : }
9470 : : }
9471 : : break;
9472 : : }
9473 : : default:;
9474 : : }
9475 : : }
9476 : 0 : switch (TREE_CODE (_q60))
9477 : : {
9478 : 0 : case BIT_NOT_EXPR:
9479 : 0 : {
9480 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
9481 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
9482 : : {
9483 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
9484 : : {
9485 : 0 : {
9486 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q40, _q20, _p1 };
9487 : 0 : tree res = generic_simplify_392 (loc, type, _p0, _p1, captures);
9488 : 0 : if (res) return res;
9489 : : }
9490 : : }
9491 : : }
9492 : : break;
9493 : : }
9494 : : default:;
9495 : : }
9496 : : break;
9497 : : }
9498 : : default:;
9499 : : }
9500 : : break;
9501 : : }
9502 : : default:;
9503 : : }
9504 : : break;
9505 : : }
9506 : 16837 : case BIT_XOR_EXPR:
9507 : 16837 : {
9508 : 16837 : tree _q20 = TREE_OPERAND (_p0, 0);
9509 : 16837 : tree _q21 = TREE_OPERAND (_p0, 1);
9510 : 16837 : switch (TREE_CODE (_p1))
9511 : : {
9512 : 16 : case BIT_IOR_EXPR:
9513 : 16 : {
9514 : 16 : tree _q50 = TREE_OPERAND (_p1, 0);
9515 : 16 : tree _q51 = TREE_OPERAND (_p1, 1);
9516 : 16 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
9517 : : {
9518 : 0 : {
9519 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q20, _q21 };
9520 : 0 : tree res = generic_simplify_391 (loc, type, _p0, _p1, captures);
9521 : 0 : if (res) return res;
9522 : : }
9523 : : }
9524 : 16 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
9525 : : {
9526 : 0 : {
9527 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q21, _q20 };
9528 : 0 : tree res = generic_simplify_391 (loc, type, _p0, _p1, captures);
9529 : 0 : if (res) return res;
9530 : : }
9531 : : }
9532 : 16 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
9533 : : {
9534 : 0 : {
9535 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q51, _q20, _q21 };
9536 : 0 : tree res = generic_simplify_391 (loc, type, _p0, _p1, captures);
9537 : 0 : if (res) return res;
9538 : : }
9539 : : }
9540 : 16 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
9541 : : {
9542 : 0 : {
9543 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q51, _q21, _q20 };
9544 : 0 : tree res = generic_simplify_391 (loc, type, _p0, _p1, captures);
9545 : 0 : if (res) return res;
9546 : : }
9547 : : }
9548 : : break;
9549 : : }
9550 : 16837 : default:;
9551 : : }
9552 : 16837 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
9553 : : {
9554 : 17 : {
9555 : 17 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
9556 : 17 : tree res = generic_simplify_152 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_XOR_EXPR);
9557 : 17 : if (res) return res;
9558 : : }
9559 : : }
9560 : 16820 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
9561 : : {
9562 : 2 : {
9563 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
9564 : 2 : tree res = generic_simplify_152 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_XOR_EXPR);
9565 : 2 : if (res) return res;
9566 : : }
9567 : : }
9568 : : break;
9569 : : }
9570 : 1711557 : CASE_CONVERT:
9571 : 1711557 : {
9572 : 1711557 : tree _q20 = TREE_OPERAND (_p0, 0);
9573 : 1711557 : switch (TREE_CODE (_q20))
9574 : : {
9575 : 152 : case BIT_NOT_EXPR:
9576 : 152 : {
9577 : 152 : tree _q30 = TREE_OPERAND (_q20, 0);
9578 : 152 : switch (TREE_CODE (_p1))
9579 : : {
9580 : 28 : CASE_CONVERT:
9581 : 28 : {
9582 : 28 : tree _q50 = TREE_OPERAND (_p1, 0);
9583 : 28 : switch (TREE_CODE (_q50))
9584 : : {
9585 : 0 : case BIT_NOT_EXPR:
9586 : 0 : {
9587 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
9588 : 0 : {
9589 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q60 };
9590 : 0 : tree res = generic_simplify_78 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
9591 : 0 : if (res) return res;
9592 : : }
9593 : 0 : break;
9594 : : }
9595 : : default:;
9596 : : }
9597 : : break;
9598 : : }
9599 : 1 : case BIT_NOT_EXPR:
9600 : 1 : {
9601 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
9602 : 1 : {
9603 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q50 };
9604 : 1 : tree res = generic_simplify_78 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
9605 : 1 : if (res) return res;
9606 : : }
9607 : 0 : break;
9608 : : }
9609 : : default:;
9610 : : }
9611 : : break;
9612 : : }
9613 : : default:;
9614 : : }
9615 : : break;
9616 : : }
9617 : 5407630 : default:;
9618 : : }
9619 : 5407630 : switch (TREE_CODE (_p1))
9620 : : {
9621 : 143 : case BIT_XOR_EXPR:
9622 : 143 : {
9623 : 143 : tree _q30 = TREE_OPERAND (_p1, 0);
9624 : 143 : tree _q31 = TREE_OPERAND (_p1, 1);
9625 : 143 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
9626 : : {
9627 : 0 : {
9628 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q30, _p0 };
9629 : 0 : tree res = generic_simplify_152 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_XOR_EXPR);
9630 : 0 : if (res) return res;
9631 : : }
9632 : : }
9633 : 143 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
9634 : : {
9635 : 1 : {
9636 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q31, _p0 };
9637 : 1 : tree res = generic_simplify_152 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_XOR_EXPR);
9638 : 1 : if (res) return res;
9639 : : }
9640 : : }
9641 : : break;
9642 : : }
9643 : 5407629 : default:;
9644 : : }
9645 : 5407629 : switch (TREE_CODE (_p0))
9646 : : {
9647 : 1711556 : CASE_CONVERT:
9648 : 1711556 : {
9649 : 1711556 : tree _q20 = TREE_OPERAND (_p0, 0);
9650 : 1711556 : switch (TREE_CODE (_q20))
9651 : : {
9652 : 171 : case BIT_IOR_EXPR:
9653 : 171 : {
9654 : 171 : tree _q30 = TREE_OPERAND (_q20, 0);
9655 : 171 : tree _q31 = TREE_OPERAND (_q20, 1);
9656 : 171 : switch (TREE_CODE (_p1))
9657 : : {
9658 : 12 : CASE_CONVERT:
9659 : 12 : {
9660 : 12 : tree _q60 = TREE_OPERAND (_p1, 0);
9661 : 12 : switch (TREE_CODE (_q60))
9662 : : {
9663 : 0 : case BIT_IOR_EXPR:
9664 : 0 : {
9665 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
9666 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
9667 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q30, 0))
9668 : : {
9669 : 0 : {
9670 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q71, _q30 };
9671 : 0 : tree res = generic_simplify_79 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
9672 : 0 : if (res) return res;
9673 : : }
9674 : : }
9675 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || operand_equal_p (_q71, _q30, 0))
9676 : : {
9677 : 0 : {
9678 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q70, _q30 };
9679 : 0 : tree res = generic_simplify_79 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
9680 : 0 : if (res) return res;
9681 : : }
9682 : : }
9683 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q31, 0))
9684 : : {
9685 : 0 : {
9686 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q31, _q30, _q71, _q31 };
9687 : 0 : tree res = generic_simplify_79 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
9688 : 0 : if (res) return res;
9689 : : }
9690 : : }
9691 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || operand_equal_p (_q71, _q31, 0))
9692 : : {
9693 : 0 : {
9694 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q31, _q30, _q70, _q31 };
9695 : 0 : tree res = generic_simplify_79 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
9696 : 0 : if (res) return res;
9697 : : }
9698 : : }
9699 : : break;
9700 : : }
9701 : : default:;
9702 : : }
9703 : : break;
9704 : : }
9705 : : default:;
9706 : : }
9707 : : break;
9708 : : }
9709 : 40 : case BIT_AND_EXPR:
9710 : 40 : {
9711 : 40 : tree _q30 = TREE_OPERAND (_q20, 0);
9712 : 40 : tree _q31 = TREE_OPERAND (_q20, 1);
9713 : 40 : switch (TREE_CODE (_p1))
9714 : : {
9715 : 0 : CASE_CONVERT:
9716 : 0 : {
9717 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
9718 : 0 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q31, 0))
9719 : : {
9720 : 0 : {
9721 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q31, _q31 };
9722 : 0 : tree res = generic_simplify_69 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
9723 : 0 : if (res) return res;
9724 : : }
9725 : : }
9726 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q30, 0))
9727 : : {
9728 : 0 : {
9729 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q31, _q30, _q30 };
9730 : 0 : tree res = generic_simplify_69 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
9731 : 0 : if (res) return res;
9732 : : }
9733 : : }
9734 : : break;
9735 : : }
9736 : 40 : default:;
9737 : : }
9738 : 40 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q31, 0))
9739 : : {
9740 : 0 : {
9741 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q31, _q31 };
9742 : 0 : tree res = generic_simplify_69 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
9743 : 0 : if (res) return res;
9744 : : }
9745 : : }
9746 : 40 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q30, 0))
9747 : : {
9748 : 0 : {
9749 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q31, _q30, _q30 };
9750 : 0 : tree res = generic_simplify_69 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
9751 : 0 : if (res) return res;
9752 : : }
9753 : : }
9754 : : break;
9755 : : }
9756 : 1711556 : default:;
9757 : : }
9758 : 1711556 : switch (TREE_CODE (_p1))
9759 : : {
9760 : 716424 : CASE_CONVERT:
9761 : 716424 : {
9762 : 716424 : tree _q40 = TREE_OPERAND (_p1, 0);
9763 : 716424 : switch (TREE_CODE (_q40))
9764 : : {
9765 : 0 : case BIT_AND_EXPR:
9766 : 0 : {
9767 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
9768 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
9769 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q20, 0))
9770 : : {
9771 : 0 : {
9772 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q50, _q51, _q20 };
9773 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
9774 : 0 : if (res) return res;
9775 : : }
9776 : : }
9777 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
9778 : : {
9779 : 0 : {
9780 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q51, _q50, _q20 };
9781 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
9782 : 0 : if (res) return res;
9783 : : }
9784 : : }
9785 : : break;
9786 : : }
9787 : : default:;
9788 : : }
9789 : : break;
9790 : : }
9791 : 47 : case BIT_AND_EXPR:
9792 : 47 : {
9793 : 47 : tree _q40 = TREE_OPERAND (_p1, 0);
9794 : 47 : tree _q41 = TREE_OPERAND (_p1, 1);
9795 : 47 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _q20, 0))
9796 : : {
9797 : 0 : {
9798 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q40, _q41, _q20 };
9799 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
9800 : 0 : if (res) return res;
9801 : : }
9802 : : }
9803 : 47 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _q20, 0))
9804 : : {
9805 : 0 : {
9806 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q41, _q40, _q20 };
9807 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
9808 : 0 : if (res) return res;
9809 : : }
9810 : : }
9811 : : break;
9812 : : }
9813 : : default:;
9814 : : }
9815 : : break;
9816 : : }
9817 : 1154 : case BIT_IOR_EXPR:
9818 : 1154 : {
9819 : 1154 : tree _q20 = TREE_OPERAND (_p0, 0);
9820 : 1154 : tree _q21 = TREE_OPERAND (_p0, 1);
9821 : 1154 : switch (TREE_CODE (_p1))
9822 : : {
9823 : 0 : case BIT_IOR_EXPR:
9824 : 0 : {
9825 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
9826 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
9827 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
9828 : : {
9829 : 0 : {
9830 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q51, _q20 };
9831 : 0 : tree res = generic_simplify_79 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
9832 : 0 : if (res) return res;
9833 : : }
9834 : : }
9835 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q20, 0))
9836 : : {
9837 : 0 : {
9838 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q50, _q20 };
9839 : 0 : tree res = generic_simplify_79 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
9840 : 0 : if (res) return res;
9841 : : }
9842 : : }
9843 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q21, 0))
9844 : : {
9845 : 0 : {
9846 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q51, _q21 };
9847 : 0 : tree res = generic_simplify_79 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
9848 : 0 : if (res) return res;
9849 : : }
9850 : : }
9851 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q21, 0))
9852 : : {
9853 : 0 : {
9854 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q50, _q21 };
9855 : 0 : tree res = generic_simplify_79 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
9856 : 0 : if (res) return res;
9857 : : }
9858 : : }
9859 : : break;
9860 : : }
9861 : : default:;
9862 : : }
9863 : : break;
9864 : : }
9865 : 5407629 : default:;
9866 : : }
9867 : 5407629 : switch (TREE_CODE (_p1))
9868 : : {
9869 : 805682 : CASE_CONVERT:
9870 : 805682 : {
9871 : 805682 : tree _q30 = TREE_OPERAND (_p1, 0);
9872 : 805682 : switch (TREE_CODE (_q30))
9873 : : {
9874 : 8 : case BIT_AND_EXPR:
9875 : 8 : {
9876 : 8 : tree _q40 = TREE_OPERAND (_q30, 0);
9877 : 8 : tree _q41 = TREE_OPERAND (_q30, 1);
9878 : 8 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _p0, 0))
9879 : : {
9880 : 0 : {
9881 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q40, _q41, _p0 };
9882 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
9883 : 0 : if (res) return res;
9884 : : }
9885 : : }
9886 : 8 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _p0, 0))
9887 : : {
9888 : 0 : {
9889 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q41, _q40, _p0 };
9890 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
9891 : 0 : if (res) return res;
9892 : : }
9893 : : }
9894 : : break;
9895 : : }
9896 : : default:;
9897 : : }
9898 : : break;
9899 : : }
9900 : 5407629 : default:;
9901 : : }
9902 : 5407629 : switch (TREE_CODE (_p0))
9903 : : {
9904 : 1585 : case BIT_AND_EXPR:
9905 : 1585 : {
9906 : 1585 : tree _q20 = TREE_OPERAND (_p0, 0);
9907 : 1585 : tree _q21 = TREE_OPERAND (_p0, 1);
9908 : 1585 : switch (TREE_CODE (_p1))
9909 : : {
9910 : 82 : CASE_CONVERT:
9911 : 82 : {
9912 : 82 : tree _q50 = TREE_OPERAND (_p1, 0);
9913 : 82 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q21, 0))
9914 : : {
9915 : 0 : {
9916 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q21 };
9917 : 0 : tree res = generic_simplify_69 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
9918 : 0 : if (res) return res;
9919 : : }
9920 : : }
9921 : 82 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
9922 : : {
9923 : 0 : {
9924 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _q20 };
9925 : 0 : tree res = generic_simplify_69 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
9926 : 0 : if (res) return res;
9927 : : }
9928 : : }
9929 : : break;
9930 : : }
9931 : 1585 : default:;
9932 : : }
9933 : 1585 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q21, 0))
9934 : : {
9935 : 0 : {
9936 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q21 };
9937 : 0 : tree res = generic_simplify_69 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
9938 : 0 : if (res) return res;
9939 : : }
9940 : : }
9941 : 1585 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q20, 0))
9942 : : {
9943 : 0 : {
9944 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _q20 };
9945 : 0 : tree res = generic_simplify_69 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
9946 : 0 : if (res) return res;
9947 : : }
9948 : : }
9949 : 1585 : {
9950 : 1585 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
9951 : 1585 : tree res = generic_simplify_393 (loc, type, _p0, _p1, captures);
9952 : 1585 : if (res) return res;
9953 : : }
9954 : 1577 : switch (TREE_CODE (_p1))
9955 : : {
9956 : 82 : CASE_CONVERT:
9957 : 82 : {
9958 : 82 : tree _q50 = TREE_OPERAND (_p1, 0);
9959 : 82 : switch (TREE_CODE (_q50))
9960 : : {
9961 : 8 : case BIT_AND_EXPR:
9962 : 8 : {
9963 : 8 : tree _q60 = TREE_OPERAND (_q50, 0);
9964 : 8 : tree _q61 = TREE_OPERAND (_q50, 1);
9965 : 8 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
9966 : : {
9967 : 0 : {
9968 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1, _q50, _q61 };
9969 : 0 : tree res = generic_simplify_88 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
9970 : 0 : if (res) return res;
9971 : : }
9972 : : }
9973 : 8 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
9974 : : {
9975 : 0 : {
9976 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1, _q50, _q60 };
9977 : 0 : tree res = generic_simplify_88 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
9978 : 0 : if (res) return res;
9979 : : }
9980 : : }
9981 : 8 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
9982 : : {
9983 : 0 : {
9984 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q21, _q20, _p1, _q50, _q61 };
9985 : 0 : tree res = generic_simplify_88 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
9986 : 0 : if (res) return res;
9987 : : }
9988 : : }
9989 : 8 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
9990 : : {
9991 : 0 : {
9992 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q21, _q20, _p1, _q50, _q60 };
9993 : 0 : tree res = generic_simplify_88 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
9994 : 0 : if (res) return res;
9995 : : }
9996 : : }
9997 : : break;
9998 : : }
9999 : : default:;
10000 : : }
10001 : : break;
10002 : : }
10003 : 12 : case BIT_AND_EXPR:
10004 : 12 : {
10005 : 12 : tree _q50 = TREE_OPERAND (_p1, 0);
10006 : 12 : tree _q51 = TREE_OPERAND (_p1, 1);
10007 : 12 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
10008 : : {
10009 : 0 : {
10010 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1, _p1, _q51 };
10011 : 0 : tree res = generic_simplify_89 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10012 : 0 : if (res) return res;
10013 : : }
10014 : : }
10015 : 12 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
10016 : : {
10017 : 0 : {
10018 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1, _p1, _q50 };
10019 : 0 : tree res = generic_simplify_89 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10020 : 0 : if (res) return res;
10021 : : }
10022 : : }
10023 : 12 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
10024 : : {
10025 : 0 : {
10026 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q21, _q20, _p1, _p1, _q51 };
10027 : 0 : tree res = generic_simplify_89 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10028 : 0 : if (res) return res;
10029 : : }
10030 : : }
10031 : 12 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10032 : : {
10033 : 0 : {
10034 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _p0, _q21, _q20, _p1, _p1, _q50 };
10035 : 0 : tree res = generic_simplify_89 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10036 : 0 : if (res) return res;
10037 : : }
10038 : : }
10039 : : break;
10040 : : }
10041 : : default:;
10042 : : }
10043 : : break;
10044 : : }
10045 : 5407621 : default:;
10046 : : }
10047 : 5407621 : switch (TREE_CODE (_p1))
10048 : : {
10049 : 78 : case BIT_AND_EXPR:
10050 : 78 : {
10051 : 78 : tree _q30 = TREE_OPERAND (_p1, 0);
10052 : 78 : tree _q31 = TREE_OPERAND (_p1, 1);
10053 : 78 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || operand_equal_p (_q31, _p0, 0))
10054 : : {
10055 : 0 : {
10056 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q30, _q31, _p0 };
10057 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10058 : 0 : if (res) return res;
10059 : : }
10060 : : }
10061 : 78 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || operand_equal_p (_q30, _p0, 0))
10062 : : {
10063 : 0 : {
10064 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q31, _q30, _p0 };
10065 : 0 : tree res = generic_simplify_80 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10066 : 0 : if (res) return res;
10067 : : }
10068 : : }
10069 : 78 : {
10070 : 78 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p0 };
10071 : 78 : tree res = generic_simplify_393 (loc, type, _p0, _p1, captures);
10072 : 78 : if (res) return res;
10073 : : }
10074 : 78 : break;
10075 : : }
10076 : 5407621 : default:;
10077 : : }
10078 : 5407621 : switch (TREE_CODE (_p0))
10079 : : {
10080 : 1711556 : CASE_CONVERT:
10081 : 1711556 : {
10082 : 1711556 : tree _q20 = TREE_OPERAND (_p0, 0);
10083 : 1711556 : switch (TREE_CODE (_q20))
10084 : : {
10085 : 40 : case BIT_AND_EXPR:
10086 : 40 : {
10087 : 40 : tree _q30 = TREE_OPERAND (_q20, 0);
10088 : 40 : tree _q31 = TREE_OPERAND (_q20, 1);
10089 : 40 : switch (TREE_CODE (_p1))
10090 : : {
10091 : 0 : CASE_CONVERT:
10092 : 0 : {
10093 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
10094 : 0 : switch (TREE_CODE (_q60))
10095 : : {
10096 : 0 : case BIT_AND_EXPR:
10097 : 0 : {
10098 : 0 : tree _q70 = TREE_OPERAND (_q60, 0);
10099 : 0 : tree _q71 = TREE_OPERAND (_q60, 1);
10100 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
10101 : : {
10102 : 0 : {
10103 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _q60, _q71 };
10104 : 0 : tree res = generic_simplify_90 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10105 : 0 : if (res) return res;
10106 : : }
10107 : : }
10108 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
10109 : : {
10110 : 0 : {
10111 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _q60, _q70 };
10112 : 0 : tree res = generic_simplify_90 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10113 : 0 : if (res) return res;
10114 : : }
10115 : : }
10116 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
10117 : : {
10118 : 0 : {
10119 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q31, _q30, _p1, _q60, _q71 };
10120 : 0 : tree res = generic_simplify_90 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10121 : 0 : if (res) return res;
10122 : : }
10123 : : }
10124 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
10125 : : {
10126 : 0 : {
10127 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q31, _q30, _p1, _q60, _q70 };
10128 : 0 : tree res = generic_simplify_90 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10129 : 0 : if (res) return res;
10130 : : }
10131 : : }
10132 : : break;
10133 : : }
10134 : : default:;
10135 : : }
10136 : : break;
10137 : : }
10138 : 0 : case BIT_AND_EXPR:
10139 : 0 : {
10140 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
10141 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
10142 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
10143 : : {
10144 : 0 : {
10145 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _p1, _q61 };
10146 : 0 : tree res = generic_simplify_91 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10147 : 0 : if (res) return res;
10148 : : }
10149 : : }
10150 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
10151 : : {
10152 : 0 : {
10153 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _p1, _p1, _q60 };
10154 : 0 : tree res = generic_simplify_91 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10155 : 0 : if (res) return res;
10156 : : }
10157 : : }
10158 : 0 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q31, 0) && types_match (_q60, _q31)))
10159 : : {
10160 : 0 : {
10161 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q31, _q30, _p1, _p1, _q61 };
10162 : 0 : tree res = generic_simplify_91 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10163 : 0 : if (res) return res;
10164 : : }
10165 : : }
10166 : 0 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
10167 : : {
10168 : 0 : {
10169 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q31, _q30, _p1, _p1, _q60 };
10170 : 0 : tree res = generic_simplify_91 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10171 : 0 : if (res) return res;
10172 : : }
10173 : : }
10174 : : break;
10175 : : }
10176 : : default:;
10177 : : }
10178 : : break;
10179 : : }
10180 : 1711556 : default:;
10181 : : }
10182 : 1711556 : switch (TREE_CODE (_p1))
10183 : : {
10184 : 716424 : CASE_CONVERT:
10185 : 716424 : {
10186 : 716424 : tree _q40 = TREE_OPERAND (_p1, 0);
10187 : 716424 : {
10188 : 716424 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
10189 : 716424 : tree res = generic_simplify_92 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10190 : 716424 : if (res) return res;
10191 : : }
10192 : 716424 : break;
10193 : : }
10194 : 1711556 : default:;
10195 : : }
10196 : 1711556 : {
10197 : 1711556 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
10198 : 1711556 : tree res = generic_simplify_93 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10199 : 1711556 : if (res) return res;
10200 : : }
10201 : 1711556 : break;
10202 : : }
10203 : 1154 : case BIT_IOR_EXPR:
10204 : 1154 : {
10205 : 1154 : tree _q20 = TREE_OPERAND (_p0, 0);
10206 : 1154 : tree _q21 = TREE_OPERAND (_p0, 1);
10207 : 1154 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
10208 : : {
10209 : 2 : {
10210 : 2 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10211 : 2 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
10212 : 2 : if (res) return res;
10213 : : }
10214 : : }
10215 : 1152 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
10216 : : {
10217 : 4 : {
10218 : 4 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
10219 : 4 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
10220 : 4 : if (res) return res;
10221 : : }
10222 : : }
10223 : 1148 : {
10224 : 1148 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
10225 : 1148 : tree res = generic_simplify_95 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
10226 : 1148 : if (res) return res;
10227 : : }
10228 : 1143 : {
10229 : 1143 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _p1 };
10230 : 1143 : tree res = generic_simplify_95 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
10231 : 1143 : if (res) return res;
10232 : : }
10233 : 1143 : switch (TREE_CODE (_p1))
10234 : : {
10235 : 1 : case BIT_AND_EXPR:
10236 : 1 : {
10237 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
10238 : 1 : tree _q51 = TREE_OPERAND (_p1, 1);
10239 : 1 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
10240 : : {
10241 : 1 : {
10242 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _p1, _q51 };
10243 : 1 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
10244 : 1 : if (res) return res;
10245 : : }
10246 : : }
10247 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
10248 : : {
10249 : 0 : {
10250 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _p1, _q50 };
10251 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
10252 : 0 : if (res) return res;
10253 : : }
10254 : : }
10255 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
10256 : : {
10257 : 0 : {
10258 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _p1, _q51 };
10259 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
10260 : 0 : if (res) return res;
10261 : : }
10262 : : }
10263 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10264 : : {
10265 : 0 : {
10266 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _p1, _q50 };
10267 : 0 : tree res = generic_simplify_96 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
10268 : 0 : if (res) return res;
10269 : : }
10270 : : }
10271 : : break;
10272 : : }
10273 : 117 : case BIT_NOT_EXPR:
10274 : 117 : {
10275 : 117 : tree _q50 = TREE_OPERAND (_p1, 0);
10276 : 117 : switch (TREE_CODE (_q50))
10277 : : {
10278 : 9 : case BIT_IOR_EXPR:
10279 : 9 : {
10280 : 9 : tree _q60 = TREE_OPERAND (_q50, 0);
10281 : 9 : tree _q61 = TREE_OPERAND (_q50, 1);
10282 : 9 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
10283 : : {
10284 : 0 : {
10285 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _p1, _q61 };
10286 : 0 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
10287 : 0 : if (res) return res;
10288 : : }
10289 : : }
10290 : 9 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
10291 : : {
10292 : 1 : {
10293 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _p1, _q60 };
10294 : 1 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
10295 : 1 : if (res) return res;
10296 : : }
10297 : : }
10298 : 8 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
10299 : : {
10300 : 0 : {
10301 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _p1, _q61 };
10302 : 0 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
10303 : 0 : if (res) return res;
10304 : : }
10305 : : }
10306 : 8 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
10307 : : {
10308 : 0 : {
10309 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _p1, _q60 };
10310 : 0 : tree res = generic_simplify_97 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
10311 : 0 : if (res) return res;
10312 : : }
10313 : : }
10314 : : break;
10315 : : }
10316 : : default:;
10317 : : }
10318 : : break;
10319 : : }
10320 : : default:;
10321 : : }
10322 : : break;
10323 : : }
10324 : 5407608 : default:;
10325 : : }
10326 : 5407608 : switch (TREE_CODE (_p1))
10327 : : {
10328 : 304 : case BIT_IOR_EXPR:
10329 : 304 : {
10330 : 304 : tree _q30 = TREE_OPERAND (_p1, 0);
10331 : 304 : tree _q31 = TREE_OPERAND (_p1, 1);
10332 : 304 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
10333 : : {
10334 : 0 : {
10335 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q31 };
10336 : 0 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
10337 : 0 : if (res) return res;
10338 : : }
10339 : : }
10340 : 304 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
10341 : : {
10342 : 0 : {
10343 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
10344 : 0 : tree res = generic_simplify_94 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
10345 : 0 : if (res) return res;
10346 : : }
10347 : : }
10348 : 304 : {
10349 : 304 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p0 };
10350 : 304 : tree res = generic_simplify_95 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
10351 : 304 : if (res) return res;
10352 : : }
10353 : 304 : {
10354 : 304 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _p0 };
10355 : 304 : tree res = generic_simplify_95 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
10356 : 304 : if (res) return res;
10357 : : }
10358 : 303 : break;
10359 : : }
10360 : 5407607 : default:;
10361 : : }
10362 : 5407607 : switch (TREE_CODE (_p0))
10363 : : {
10364 : 1577 : case BIT_AND_EXPR:
10365 : 1577 : {
10366 : 1577 : tree _q20 = TREE_OPERAND (_p0, 0);
10367 : 1577 : tree _q21 = TREE_OPERAND (_p0, 1);
10368 : 1577 : switch (TREE_CODE (_p1))
10369 : : {
10370 : 16 : case BIT_IOR_EXPR:
10371 : 16 : {
10372 : 16 : tree _q50 = TREE_OPERAND (_p1, 0);
10373 : 16 : tree _q51 = TREE_OPERAND (_p1, 1);
10374 : 16 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
10375 : : {
10376 : 0 : {
10377 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q51, _p0, _q21 };
10378 : 0 : tree res = generic_simplify_100 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
10379 : 0 : if (res) return res;
10380 : : }
10381 : : }
10382 : 16 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
10383 : : {
10384 : 0 : {
10385 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q51, _p0, _q20 };
10386 : 0 : tree res = generic_simplify_100 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
10387 : 0 : if (res) return res;
10388 : : }
10389 : : }
10390 : 16 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
10391 : : {
10392 : 0 : {
10393 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q50, _p0, _q21 };
10394 : 0 : tree res = generic_simplify_100 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
10395 : 0 : if (res) return res;
10396 : : }
10397 : : }
10398 : 16 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10399 : : {
10400 : 0 : {
10401 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q50, _p0, _q20 };
10402 : 0 : tree res = generic_simplify_100 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
10403 : 0 : if (res) return res;
10404 : : }
10405 : : }
10406 : : break;
10407 : : }
10408 : : default:;
10409 : : }
10410 : : break;
10411 : : }
10412 : 37251 : case BIT_NOT_EXPR:
10413 : 37251 : {
10414 : 37251 : tree _q20 = TREE_OPERAND (_p0, 0);
10415 : 37251 : switch (TREE_CODE (_q20))
10416 : : {
10417 : 2 : case BIT_IOR_EXPR:
10418 : 2 : {
10419 : 2 : tree _q30 = TREE_OPERAND (_q20, 0);
10420 : 2 : tree _q31 = TREE_OPERAND (_q20, 1);
10421 : 2 : switch (TREE_CODE (_p1))
10422 : : {
10423 : 0 : case BIT_IOR_EXPR:
10424 : 0 : {
10425 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
10426 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
10427 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
10428 : : {
10429 : 0 : {
10430 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q60, _q30, _p0, _q31 };
10431 : 0 : tree res = generic_simplify_101 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
10432 : 0 : if (res) return res;
10433 : : }
10434 : : }
10435 : 0 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
10436 : : {
10437 : 0 : {
10438 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q60, _q31, _p0, _q30 };
10439 : 0 : tree res = generic_simplify_101 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
10440 : 0 : if (res) return res;
10441 : : }
10442 : : }
10443 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
10444 : : {
10445 : 0 : {
10446 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q61, _q30, _p0, _q31 };
10447 : 0 : tree res = generic_simplify_101 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
10448 : 0 : if (res) return res;
10449 : : }
10450 : : }
10451 : 0 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q31, 0) && types_match (_q60, _q31)))
10452 : : {
10453 : 0 : {
10454 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q61, _q31, _p0, _q30 };
10455 : 0 : tree res = generic_simplify_101 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
10456 : 0 : if (res) return res;
10457 : : }
10458 : : }
10459 : : break;
10460 : : }
10461 : 2 : default:;
10462 : : }
10463 : 2 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
10464 : : {
10465 : 0 : {
10466 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
10467 : 0 : tree res = generic_simplify_102 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
10468 : 0 : if (res) return res;
10469 : : }
10470 : : }
10471 : 2 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
10472 : : {
10473 : 1 : {
10474 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q31, _q30 };
10475 : 1 : tree res = generic_simplify_102 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
10476 : 1 : if (res) return res;
10477 : : }
10478 : : }
10479 : : break;
10480 : : }
10481 : : default:;
10482 : : }
10483 : : break;
10484 : : }
10485 : 5407606 : default:;
10486 : : }
10487 : 5407606 : switch (TREE_CODE (_p1))
10488 : : {
10489 : 23002 : case BIT_NOT_EXPR:
10490 : 23002 : {
10491 : 23002 : tree _q30 = TREE_OPERAND (_p1, 0);
10492 : 23002 : switch (TREE_CODE (_q30))
10493 : : {
10494 : 8 : case BIT_IOR_EXPR:
10495 : 8 : {
10496 : 8 : tree _q40 = TREE_OPERAND (_q30, 0);
10497 : 8 : tree _q41 = TREE_OPERAND (_q30, 1);
10498 : 8 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
10499 : : {
10500 : 0 : {
10501 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q41 };
10502 : 0 : tree res = generic_simplify_102 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
10503 : 0 : if (res) return res;
10504 : : }
10505 : : }
10506 : 8 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
10507 : : {
10508 : 0 : {
10509 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q40 };
10510 : 0 : tree res = generic_simplify_102 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, BIT_IOR_EXPR);
10511 : 0 : if (res) return res;
10512 : : }
10513 : : }
10514 : : break;
10515 : : }
10516 : : default:;
10517 : : }
10518 : : break;
10519 : : }
10520 : 5407606 : default:;
10521 : : }
10522 : 5407606 : switch (TREE_CODE (_p0))
10523 : : {
10524 : 1141 : case BIT_IOR_EXPR:
10525 : 1141 : {
10526 : 1141 : tree _q20 = TREE_OPERAND (_p0, 0);
10527 : 1141 : tree _q21 = TREE_OPERAND (_p0, 1);
10528 : 1141 : if (CONSTANT_CLASS_P (_q21))
10529 : : {
10530 : 444 : if (CONSTANT_CLASS_P (_p1))
10531 : : {
10532 : 27 : {
10533 : 27 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
10534 : 27 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1524;
10535 : 27 : {
10536 : 27 : if (! tree_invariant_p (captures[2])) goto next_after_fail1524;
10537 : 27 : tree res_op0;
10538 : 27 : {
10539 : 27 : tree _o1[2], _r1;
10540 : 27 : _o1[0] = captures[0];
10541 : 27 : _o1[1] = unshare_expr (captures[2]);
10542 : 27 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10543 : 27 : res_op0 = _r1;
10544 : : }
10545 : 27 : tree res_op1;
10546 : 27 : {
10547 : 27 : tree _o1[2], _r1;
10548 : 27 : _o1[0] = captures[1];
10549 : 27 : _o1[1] = captures[2];
10550 : 27 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
10551 : 27 : if (EXPR_P (_r1))
10552 : 0 : goto next_after_fail1524;
10553 : 27 : res_op1 = _r1;
10554 : : }
10555 : 27 : tree _r;
10556 : 27 : _r = fold_build2_loc (loc, BIT_IOR_EXPR, type, res_op0, res_op1);
10557 : 27 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 911, __FILE__, __LINE__, true);
10558 : 27 : return _r;
10559 : : }
10560 : 0 : next_after_fail1524:;
10561 : : }
10562 : : }
10563 : : }
10564 : : break;
10565 : : }
10566 : 1577 : case BIT_AND_EXPR:
10567 : 1577 : {
10568 : 1577 : tree _q20 = TREE_OPERAND (_p0, 0);
10569 : 1577 : tree _q21 = TREE_OPERAND (_p0, 1);
10570 : 1577 : if (CONSTANT_CLASS_P (_q21))
10571 : : {
10572 : 541 : if (CONSTANT_CLASS_P (_p1))
10573 : : {
10574 : 475 : {
10575 : 475 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
10576 : 475 : tree res = generic_simplify_105 (loc, type, _p0, _p1, captures, BIT_AND_EXPR);
10577 : 475 : if (res) return res;
10578 : : }
10579 : : }
10580 : : }
10581 : : break;
10582 : : }
10583 : 5407104 : default:;
10584 : : }
10585 : 5407104 : {
10586 : 5407104 : tree _p1_pops[1];
10587 : 5407104 : if (tree_logical_inverted_value (_p1, _p1_pops))
10588 : : {
10589 : 719 : tree _q30 = _p1_pops[0];
10590 : 719 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
10591 : : {
10592 : 0 : {
10593 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
10594 : 0 : tree res = generic_simplify_394 (loc, type, _p0, _p1, captures);
10595 : 0 : if (res) return res;
10596 : : }
10597 : : }
10598 : : }
10599 : : }
10600 : 5407104 : switch (TREE_CODE (_p0))
10601 : : {
10602 : 1711556 : CASE_CONVERT:
10603 : 1711556 : {
10604 : 1711556 : tree _q20 = TREE_OPERAND (_p0, 0);
10605 : 1711556 : switch (TREE_CODE (_q20))
10606 : : {
10607 : 8085 : case NEGATE_EXPR:
10608 : 8085 : {
10609 : 8085 : tree _q30 = TREE_OPERAND (_q20, 0);
10610 : 8085 : if (tree_zero_one_valued_p (_q30))
10611 : : {
10612 : 0 : {
10613 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p1 };
10614 : 0 : tree res = generic_simplify_389 (loc, type, _p0, _p1, captures);
10615 : 0 : if (res) return res;
10616 : : }
10617 : : }
10618 : : break;
10619 : : }
10620 : : default:;
10621 : : }
10622 : : break;
10623 : : }
10624 : 5407104 : default:;
10625 : : }
10626 : 5407104 : {
10627 : 5407104 : tree _p0_pops[1];
10628 : 5407104 : if (tree_logical_inverted_value (_p0, _p0_pops))
10629 : : {
10630 : 552 : tree _q20 = _p0_pops[0];
10631 : 552 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
10632 : : {
10633 : 12 : {
10634 : 12 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
10635 : 12 : tree res = generic_simplify_394 (loc, type, _p0, _p1, captures);
10636 : 12 : if (res) return res;
10637 : : }
10638 : : }
10639 : : }
10640 : : }
10641 : 5407092 : switch (TREE_CODE (_p1))
10642 : : {
10643 : 805682 : CASE_CONVERT:
10644 : 805682 : {
10645 : 805682 : tree _q30 = TREE_OPERAND (_p1, 0);
10646 : 805682 : switch (TREE_CODE (_q30))
10647 : : {
10648 : 108 : case NEGATE_EXPR:
10649 : 108 : {
10650 : 108 : tree _q40 = TREE_OPERAND (_q30, 0);
10651 : 108 : if (tree_zero_one_valued_p (_q40))
10652 : : {
10653 : 18 : {
10654 : 18 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _p0 };
10655 : 18 : tree res = generic_simplify_389 (loc, type, _p0, _p1, captures);
10656 : 18 : if (res) return res;
10657 : : }
10658 : : }
10659 : : break;
10660 : : }
10661 : : default:;
10662 : : }
10663 : : break;
10664 : : }
10665 : 10596 : case NEGATE_EXPR:
10666 : 10596 : {
10667 : 10596 : tree _q30 = TREE_OPERAND (_p1, 0);
10668 : 10596 : if (tree_zero_one_valued_p (_q30))
10669 : : {
10670 : 20 : {
10671 : 20 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p0 };
10672 : 20 : tree res = generic_simplify_389 (loc, type, _p0, _p1, captures);
10673 : 20 : if (res) return res;
10674 : : }
10675 : : }
10676 : : break;
10677 : : }
10678 : 5407054 : default:;
10679 : : }
10680 : 5407054 : switch (TREE_CODE (_p0))
10681 : : {
10682 : 47107 : case NEGATE_EXPR:
10683 : 47107 : {
10684 : 47107 : tree _q20 = TREE_OPERAND (_p0, 0);
10685 : 47107 : switch (TREE_CODE (_q20))
10686 : : {
10687 : 4907 : CASE_CONVERT:
10688 : 4907 : {
10689 : 4907 : tree _q30 = TREE_OPERAND (_q20, 0);
10690 : 4907 : switch (TREE_CODE (_q30))
10691 : : {
10692 : 0 : case LT_EXPR:
10693 : 0 : {
10694 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
10695 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
10696 : 0 : {
10697 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
10698 : 0 : tree res = generic_simplify_395 (loc, type, _p0, _p1, captures, LT_EXPR);
10699 : 0 : if (res) return res;
10700 : : }
10701 : 0 : break;
10702 : : }
10703 : 0 : case LE_EXPR:
10704 : 0 : {
10705 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
10706 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
10707 : 0 : {
10708 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
10709 : 0 : tree res = generic_simplify_395 (loc, type, _p0, _p1, captures, LE_EXPR);
10710 : 0 : if (res) return res;
10711 : : }
10712 : 0 : break;
10713 : : }
10714 : 0 : case EQ_EXPR:
10715 : 0 : {
10716 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
10717 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
10718 : 0 : {
10719 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
10720 : 0 : tree res = generic_simplify_395 (loc, type, _p0, _p1, captures, EQ_EXPR);
10721 : 0 : if (res) return res;
10722 : : }
10723 : 0 : break;
10724 : : }
10725 : 0 : case NE_EXPR:
10726 : 0 : {
10727 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
10728 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
10729 : 0 : {
10730 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
10731 : 0 : tree res = generic_simplify_395 (loc, type, _p0, _p1, captures, NE_EXPR);
10732 : 0 : if (res) return res;
10733 : : }
10734 : 0 : break;
10735 : : }
10736 : 0 : case GE_EXPR:
10737 : 0 : {
10738 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
10739 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
10740 : 0 : {
10741 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
10742 : 0 : tree res = generic_simplify_395 (loc, type, _p0, _p1, captures, GE_EXPR);
10743 : 0 : if (res) return res;
10744 : : }
10745 : 0 : break;
10746 : : }
10747 : 0 : case GT_EXPR:
10748 : 0 : {
10749 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
10750 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
10751 : 0 : {
10752 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
10753 : 0 : tree res = generic_simplify_395 (loc, type, _p0, _p1, captures, GT_EXPR);
10754 : 0 : if (res) return res;
10755 : : }
10756 : 0 : break;
10757 : : }
10758 : 0 : case UNORDERED_EXPR:
10759 : 0 : {
10760 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
10761 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
10762 : 0 : {
10763 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
10764 : 0 : tree res = generic_simplify_395 (loc, type, _p0, _p1, captures, UNORDERED_EXPR);
10765 : 0 : if (res) return res;
10766 : : }
10767 : 0 : break;
10768 : : }
10769 : 0 : case ORDERED_EXPR:
10770 : 0 : {
10771 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
10772 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
10773 : 0 : {
10774 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
10775 : 0 : tree res = generic_simplify_395 (loc, type, _p0, _p1, captures, ORDERED_EXPR);
10776 : 0 : if (res) return res;
10777 : : }
10778 : 0 : break;
10779 : : }
10780 : 0 : case UNLT_EXPR:
10781 : 0 : {
10782 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
10783 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
10784 : 0 : {
10785 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
10786 : 0 : tree res = generic_simplify_395 (loc, type, _p0, _p1, captures, UNLT_EXPR);
10787 : 0 : if (res) return res;
10788 : : }
10789 : 0 : break;
10790 : : }
10791 : 0 : case UNLE_EXPR:
10792 : 0 : {
10793 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
10794 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
10795 : 0 : {
10796 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
10797 : 0 : tree res = generic_simplify_395 (loc, type, _p0, _p1, captures, UNLE_EXPR);
10798 : 0 : if (res) return res;
10799 : : }
10800 : 0 : break;
10801 : : }
10802 : 0 : case UNGT_EXPR:
10803 : 0 : {
10804 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
10805 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
10806 : 0 : {
10807 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
10808 : 0 : tree res = generic_simplify_395 (loc, type, _p0, _p1, captures, UNGT_EXPR);
10809 : 0 : if (res) return res;
10810 : : }
10811 : 0 : break;
10812 : : }
10813 : 0 : case UNGE_EXPR:
10814 : 0 : {
10815 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
10816 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
10817 : 0 : {
10818 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
10819 : 0 : tree res = generic_simplify_395 (loc, type, _p0, _p1, captures, UNGE_EXPR);
10820 : 0 : if (res) return res;
10821 : : }
10822 : 0 : break;
10823 : : }
10824 : 0 : case UNEQ_EXPR:
10825 : 0 : {
10826 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
10827 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
10828 : 0 : {
10829 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
10830 : 0 : tree res = generic_simplify_395 (loc, type, _p0, _p1, captures, UNEQ_EXPR);
10831 : 0 : if (res) return res;
10832 : : }
10833 : 0 : break;
10834 : : }
10835 : 0 : case LTGT_EXPR:
10836 : 0 : {
10837 : 0 : tree _q40 = TREE_OPERAND (_q30, 0);
10838 : 0 : tree _q41 = TREE_OPERAND (_q30, 1);
10839 : 0 : {
10840 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q40, _q41, _p1 };
10841 : 0 : tree res = generic_simplify_395 (loc, type, _p0, _p1, captures, LTGT_EXPR);
10842 : 0 : if (res) return res;
10843 : : }
10844 : 0 : break;
10845 : : }
10846 : : default:;
10847 : : }
10848 : : break;
10849 : : }
10850 : : default:;
10851 : : }
10852 : : break;
10853 : : }
10854 : 5407054 : default:;
10855 : : }
10856 : 5407054 : switch (TREE_CODE (_p1))
10857 : : {
10858 : 10576 : case NEGATE_EXPR:
10859 : 10576 : {
10860 : 10576 : tree _q30 = TREE_OPERAND (_p1, 0);
10861 : 10576 : switch (TREE_CODE (_q30))
10862 : : {
10863 : 63 : CASE_CONVERT:
10864 : 63 : {
10865 : 63 : tree _q40 = TREE_OPERAND (_q30, 0);
10866 : 63 : switch (TREE_CODE (_q40))
10867 : : {
10868 : 0 : case LT_EXPR:
10869 : 0 : {
10870 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
10871 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
10872 : 0 : {
10873 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
10874 : 0 : tree res = generic_simplify_396 (loc, type, _p0, _p1, captures, LT_EXPR);
10875 : 0 : if (res) return res;
10876 : : }
10877 : 0 : break;
10878 : : }
10879 : 0 : case LE_EXPR:
10880 : 0 : {
10881 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
10882 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
10883 : 0 : {
10884 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
10885 : 0 : tree res = generic_simplify_396 (loc, type, _p0, _p1, captures, LE_EXPR);
10886 : 0 : if (res) return res;
10887 : : }
10888 : 0 : break;
10889 : : }
10890 : 0 : case EQ_EXPR:
10891 : 0 : {
10892 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
10893 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
10894 : 0 : {
10895 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
10896 : 0 : tree res = generic_simplify_396 (loc, type, _p0, _p1, captures, EQ_EXPR);
10897 : 0 : if (res) return res;
10898 : : }
10899 : 0 : break;
10900 : : }
10901 : 0 : case NE_EXPR:
10902 : 0 : {
10903 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
10904 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
10905 : 0 : {
10906 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
10907 : 0 : tree res = generic_simplify_396 (loc, type, _p0, _p1, captures, NE_EXPR);
10908 : 0 : if (res) return res;
10909 : : }
10910 : 0 : break;
10911 : : }
10912 : 0 : case GE_EXPR:
10913 : 0 : {
10914 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
10915 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
10916 : 0 : {
10917 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
10918 : 0 : tree res = generic_simplify_396 (loc, type, _p0, _p1, captures, GE_EXPR);
10919 : 0 : if (res) return res;
10920 : : }
10921 : 0 : break;
10922 : : }
10923 : 0 : case GT_EXPR:
10924 : 0 : {
10925 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
10926 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
10927 : 0 : {
10928 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
10929 : 0 : tree res = generic_simplify_396 (loc, type, _p0, _p1, captures, GT_EXPR);
10930 : 0 : if (res) return res;
10931 : : }
10932 : 0 : break;
10933 : : }
10934 : 0 : case UNORDERED_EXPR:
10935 : 0 : {
10936 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
10937 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
10938 : 0 : {
10939 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
10940 : 0 : tree res = generic_simplify_396 (loc, type, _p0, _p1, captures, UNORDERED_EXPR);
10941 : 0 : if (res) return res;
10942 : : }
10943 : 0 : break;
10944 : : }
10945 : 0 : case ORDERED_EXPR:
10946 : 0 : {
10947 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
10948 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
10949 : 0 : {
10950 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
10951 : 0 : tree res = generic_simplify_396 (loc, type, _p0, _p1, captures, ORDERED_EXPR);
10952 : 0 : if (res) return res;
10953 : : }
10954 : 0 : break;
10955 : : }
10956 : 0 : case UNLT_EXPR:
10957 : 0 : {
10958 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
10959 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
10960 : 0 : {
10961 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
10962 : 0 : tree res = generic_simplify_396 (loc, type, _p0, _p1, captures, UNLT_EXPR);
10963 : 0 : if (res) return res;
10964 : : }
10965 : 0 : break;
10966 : : }
10967 : 0 : case UNLE_EXPR:
10968 : 0 : {
10969 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
10970 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
10971 : 0 : {
10972 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
10973 : 0 : tree res = generic_simplify_396 (loc, type, _p0, _p1, captures, UNLE_EXPR);
10974 : 0 : if (res) return res;
10975 : : }
10976 : 0 : break;
10977 : : }
10978 : 0 : case UNGT_EXPR:
10979 : 0 : {
10980 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
10981 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
10982 : 0 : {
10983 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
10984 : 0 : tree res = generic_simplify_396 (loc, type, _p0, _p1, captures, UNGT_EXPR);
10985 : 0 : if (res) return res;
10986 : : }
10987 : 0 : break;
10988 : : }
10989 : 0 : case UNGE_EXPR:
10990 : 0 : {
10991 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
10992 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
10993 : 0 : {
10994 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
10995 : 0 : tree res = generic_simplify_396 (loc, type, _p0, _p1, captures, UNGE_EXPR);
10996 : 0 : if (res) return res;
10997 : : }
10998 : 0 : break;
10999 : : }
11000 : 0 : case UNEQ_EXPR:
11001 : 0 : {
11002 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
11003 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
11004 : 0 : {
11005 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
11006 : 0 : tree res = generic_simplify_396 (loc, type, _p0, _p1, captures, UNEQ_EXPR);
11007 : 0 : if (res) return res;
11008 : : }
11009 : 0 : break;
11010 : : }
11011 : 0 : case LTGT_EXPR:
11012 : 0 : {
11013 : 0 : tree _q50 = TREE_OPERAND (_q40, 0);
11014 : 0 : tree _q51 = TREE_OPERAND (_q40, 1);
11015 : 0 : {
11016 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q40, _q50, _q51, _p0 };
11017 : 0 : tree res = generic_simplify_396 (loc, type, _p0, _p1, captures, LTGT_EXPR);
11018 : 0 : if (res) return res;
11019 : : }
11020 : 0 : break;
11021 : : }
11022 : : default:;
11023 : : }
11024 : : break;
11025 : : }
11026 : : default:;
11027 : : }
11028 : : break;
11029 : : }
11030 : 5407054 : default:;
11031 : : }
11032 : 5407054 : switch (TREE_CODE (_p0))
11033 : : {
11034 : 1711556 : CASE_CONVERT:
11035 : 1711556 : {
11036 : 1711556 : tree _q20 = TREE_OPERAND (_p0, 0);
11037 : 1711556 : switch (TREE_CODE (_p1))
11038 : : {
11039 : 810893 : case INTEGER_CST:
11040 : 810893 : {
11041 : 810893 : {
11042 : 810893 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
11043 : 810893 : tree res = generic_simplify_397 (loc, type, _p0, _p1, captures);
11044 : 810893 : if (res) return res;
11045 : : }
11046 : 807390 : break;
11047 : : }
11048 : 1708053 : default:;
11049 : : }
11050 : 1708053 : switch (TREE_CODE (_q20))
11051 : : {
11052 : 54124 : case LSHIFT_EXPR:
11053 : 54124 : {
11054 : 54124 : tree _q30 = TREE_OPERAND (_q20, 0);
11055 : 54124 : tree _q31 = TREE_OPERAND (_q20, 1);
11056 : 54124 : switch (TREE_CODE (_q30))
11057 : : {
11058 : 80 : CASE_CONVERT:
11059 : 80 : {
11060 : 80 : tree _q40 = TREE_OPERAND (_q30, 0);
11061 : 80 : switch (TREE_CODE (_q31))
11062 : : {
11063 : 80 : case INTEGER_CST:
11064 : 80 : {
11065 : 80 : switch (TREE_CODE (_p1))
11066 : : {
11067 : 80 : case INTEGER_CST:
11068 : 80 : {
11069 : 80 : {
11070 : 80 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q40, _q31, _p1 };
11071 : 80 : tree res = generic_simplify_398 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
11072 : 80 : if (res) return res;
11073 : : }
11074 : 80 : break;
11075 : : }
11076 : : default:;
11077 : : }
11078 : : break;
11079 : : }
11080 : : default:;
11081 : : }
11082 : : break;
11083 : : }
11084 : 54124 : default:;
11085 : : }
11086 : 54124 : switch (TREE_CODE (_q31))
11087 : : {
11088 : 80 : case INTEGER_CST:
11089 : 80 : {
11090 : 80 : switch (TREE_CODE (_p1))
11091 : : {
11092 : 80 : case INTEGER_CST:
11093 : 80 : {
11094 : 80 : {
11095 : 80 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q30, _q31, _p1 };
11096 : 80 : tree res = generic_simplify_399 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
11097 : 80 : if (res) return res;
11098 : : }
11099 : 80 : break;
11100 : : }
11101 : : default:;
11102 : : }
11103 : : break;
11104 : : }
11105 : : default:;
11106 : : }
11107 : : break;
11108 : : }
11109 : 61312 : case RSHIFT_EXPR:
11110 : 61312 : {
11111 : 61312 : tree _q30 = TREE_OPERAND (_q20, 0);
11112 : 61312 : tree _q31 = TREE_OPERAND (_q20, 1);
11113 : 61312 : switch (TREE_CODE (_q30))
11114 : : {
11115 : 39747 : CASE_CONVERT:
11116 : 39747 : {
11117 : 39747 : tree _q40 = TREE_OPERAND (_q30, 0);
11118 : 39747 : switch (TREE_CODE (_q31))
11119 : : {
11120 : 39646 : case INTEGER_CST:
11121 : 39646 : {
11122 : 39646 : switch (TREE_CODE (_p1))
11123 : : {
11124 : 39646 : case INTEGER_CST:
11125 : 39646 : {
11126 : 39646 : {
11127 : 39646 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q40, _q31, _p1 };
11128 : 39646 : tree res = generic_simplify_398 (loc, type, _p0, _p1, captures, RSHIFT_EXPR);
11129 : 39646 : if (res) return res;
11130 : : }
11131 : 39607 : break;
11132 : : }
11133 : : default:;
11134 : : }
11135 : : break;
11136 : : }
11137 : 39708 : default:;
11138 : : }
11139 : 39708 : switch (TREE_CODE (_q40))
11140 : : {
11141 : 2 : case CALL_EXPR:
11142 : 2 : switch (get_call_combined_fn (_q40))
11143 : : {
11144 : 0 : case CFN_BUILT_IN_BSWAP128:
11145 : 0 : if (call_expr_nargs (_q40) == 1)
11146 : : {
11147 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
11148 : 0 : switch (TREE_CODE (_q31))
11149 : : {
11150 : 0 : case INTEGER_CST:
11151 : 0 : {
11152 : 0 : switch (TREE_CODE (_p1))
11153 : : {
11154 : 0 : case INTEGER_CST:
11155 : 0 : {
11156 : 0 : {
11157 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q40, _q50, _q31, _p1 };
11158 : 0 : tree res = generic_simplify_400 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP128);
11159 : 0 : if (res) return res;
11160 : : }
11161 : 0 : break;
11162 : : }
11163 : : default:;
11164 : : }
11165 : : break;
11166 : : }
11167 : : default:;
11168 : : }
11169 : : }
11170 : : break;
11171 : 2 : case CFN_BUILT_IN_BSWAP16:
11172 : 2 : if (call_expr_nargs (_q40) == 1)
11173 : : {
11174 : 2 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
11175 : 2 : switch (TREE_CODE (_q31))
11176 : : {
11177 : 2 : case INTEGER_CST:
11178 : 2 : {
11179 : 2 : switch (TREE_CODE (_p1))
11180 : : {
11181 : 2 : case INTEGER_CST:
11182 : 2 : {
11183 : 2 : {
11184 : 2 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q40, _q50, _q31, _p1 };
11185 : 2 : tree res = generic_simplify_400 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP16);
11186 : 2 : if (res) return res;
11187 : : }
11188 : 0 : break;
11189 : : }
11190 : : default:;
11191 : : }
11192 : : break;
11193 : : }
11194 : : default:;
11195 : : }
11196 : : }
11197 : : break;
11198 : 0 : case CFN_BUILT_IN_BSWAP32:
11199 : 0 : if (call_expr_nargs (_q40) == 1)
11200 : : {
11201 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
11202 : 0 : switch (TREE_CODE (_q31))
11203 : : {
11204 : 0 : case INTEGER_CST:
11205 : 0 : {
11206 : 0 : switch (TREE_CODE (_p1))
11207 : : {
11208 : 0 : case INTEGER_CST:
11209 : 0 : {
11210 : 0 : {
11211 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q40, _q50, _q31, _p1 };
11212 : 0 : tree res = generic_simplify_400 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP32);
11213 : 0 : if (res) return res;
11214 : : }
11215 : 0 : break;
11216 : : }
11217 : : default:;
11218 : : }
11219 : : break;
11220 : : }
11221 : : default:;
11222 : : }
11223 : : }
11224 : : break;
11225 : 0 : case CFN_BUILT_IN_BSWAP64:
11226 : 0 : if (call_expr_nargs (_q40) == 1)
11227 : : {
11228 : 0 : tree _q50 = CALL_EXPR_ARG (_q40, 0);
11229 : 0 : switch (TREE_CODE (_q31))
11230 : : {
11231 : 0 : case INTEGER_CST:
11232 : 0 : {
11233 : 0 : switch (TREE_CODE (_p1))
11234 : : {
11235 : 0 : case INTEGER_CST:
11236 : 0 : {
11237 : 0 : {
11238 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q40, _q50, _q31, _p1 };
11239 : 0 : tree res = generic_simplify_400 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP64);
11240 : 0 : if (res) return res;
11241 : : }
11242 : 0 : break;
11243 : : }
11244 : : default:;
11245 : : }
11246 : : break;
11247 : : }
11248 : : default:;
11249 : : }
11250 : : }
11251 : : break;
11252 : : default:;
11253 : : }
11254 : : break;
11255 : : default:;
11256 : : }
11257 : : break;
11258 : : }
11259 : 61271 : default:;
11260 : : }
11261 : 61271 : switch (TREE_CODE (_q31))
11262 : : {
11263 : 45507 : case INTEGER_CST:
11264 : 45507 : {
11265 : 45507 : switch (TREE_CODE (_p1))
11266 : : {
11267 : 45435 : case INTEGER_CST:
11268 : 45435 : {
11269 : 45435 : {
11270 : 45435 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q30, _q31, _p1 };
11271 : 45435 : tree res = generic_simplify_399 (loc, type, _p0, _p1, captures, RSHIFT_EXPR);
11272 : 45435 : if (res) return res;
11273 : : }
11274 : 45397 : break;
11275 : : }
11276 : : default:;
11277 : : }
11278 : : break;
11279 : : }
11280 : 61233 : default:;
11281 : : }
11282 : 61233 : switch (TREE_CODE (_q30))
11283 : : {
11284 : 80 : case CALL_EXPR:
11285 : 80 : switch (get_call_combined_fn (_q30))
11286 : : {
11287 : 0 : case CFN_BUILT_IN_BSWAP128:
11288 : 0 : if (call_expr_nargs (_q30) == 1)
11289 : : {
11290 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
11291 : 0 : switch (TREE_CODE (_q31))
11292 : : {
11293 : 0 : case INTEGER_CST:
11294 : 0 : {
11295 : 0 : switch (TREE_CODE (_p1))
11296 : : {
11297 : 0 : case INTEGER_CST:
11298 : 0 : {
11299 : 0 : {
11300 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q30, _q40, _q31, _p1 };
11301 : 0 : tree res = generic_simplify_400 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP128);
11302 : 0 : if (res) return res;
11303 : : }
11304 : 0 : break;
11305 : : }
11306 : : default:;
11307 : : }
11308 : : break;
11309 : : }
11310 : : default:;
11311 : : }
11312 : : }
11313 : : break;
11314 : 9 : case CFN_BUILT_IN_BSWAP16:
11315 : 9 : if (call_expr_nargs (_q30) == 1)
11316 : : {
11317 : 9 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
11318 : 9 : switch (TREE_CODE (_q31))
11319 : : {
11320 : 9 : case INTEGER_CST:
11321 : 9 : {
11322 : 9 : switch (TREE_CODE (_p1))
11323 : : {
11324 : 9 : case INTEGER_CST:
11325 : 9 : {
11326 : 9 : {
11327 : 9 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q30, _q40, _q31, _p1 };
11328 : 9 : tree res = generic_simplify_400 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP16);
11329 : 9 : if (res) return res;
11330 : : }
11331 : 0 : break;
11332 : : }
11333 : : default:;
11334 : : }
11335 : : break;
11336 : : }
11337 : : default:;
11338 : : }
11339 : : }
11340 : : break;
11341 : 0 : case CFN_BUILT_IN_BSWAP32:
11342 : 0 : if (call_expr_nargs (_q30) == 1)
11343 : : {
11344 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
11345 : 0 : switch (TREE_CODE (_q31))
11346 : : {
11347 : 0 : case INTEGER_CST:
11348 : 0 : {
11349 : 0 : switch (TREE_CODE (_p1))
11350 : : {
11351 : 0 : case INTEGER_CST:
11352 : 0 : {
11353 : 0 : {
11354 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q30, _q40, _q31, _p1 };
11355 : 0 : tree res = generic_simplify_400 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP32);
11356 : 0 : if (res) return res;
11357 : : }
11358 : 0 : break;
11359 : : }
11360 : : default:;
11361 : : }
11362 : : break;
11363 : : }
11364 : : default:;
11365 : : }
11366 : : }
11367 : : break;
11368 : 71 : case CFN_BUILT_IN_BSWAP64:
11369 : 71 : if (call_expr_nargs (_q30) == 1)
11370 : : {
11371 : 71 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
11372 : 71 : switch (TREE_CODE (_q31))
11373 : : {
11374 : 70 : case INTEGER_CST:
11375 : 70 : {
11376 : 70 : switch (TREE_CODE (_p1))
11377 : : {
11378 : 70 : case INTEGER_CST:
11379 : 70 : {
11380 : 70 : {
11381 : 70 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q30, _q40, _q31, _p1 };
11382 : 70 : tree res = generic_simplify_400 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP64);
11383 : 70 : if (res) return res;
11384 : : }
11385 : 0 : break;
11386 : : }
11387 : : default:;
11388 : : }
11389 : : break;
11390 : : }
11391 : : default:;
11392 : : }
11393 : : }
11394 : : break;
11395 : : default:;
11396 : : }
11397 : : break;
11398 : : default:;
11399 : : }
11400 : : break;
11401 : : }
11402 : 30077 : case CALL_EXPR:
11403 : 30077 : switch (get_call_combined_fn (_q20))
11404 : : {
11405 : 0 : case CFN_BUILT_IN_BSWAP128:
11406 : 0 : if (call_expr_nargs (_q20) == 1)
11407 : : {
11408 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
11409 : 0 : switch (TREE_CODE (_p1))
11410 : : {
11411 : 0 : case INTEGER_CST:
11412 : 0 : {
11413 : 0 : {
11414 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
11415 : 0 : tree res = generic_simplify_401 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP128);
11416 : 0 : if (res) return res;
11417 : : }
11418 : 0 : break;
11419 : : }
11420 : : default:;
11421 : : }
11422 : : }
11423 : : break;
11424 : 10 : case CFN_BUILT_IN_BSWAP16:
11425 : 10 : if (call_expr_nargs (_q20) == 1)
11426 : : {
11427 : 10 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
11428 : 10 : switch (TREE_CODE (_p1))
11429 : : {
11430 : 10 : case INTEGER_CST:
11431 : 10 : {
11432 : 10 : {
11433 : 10 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
11434 : 10 : tree res = generic_simplify_401 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP16);
11435 : 10 : if (res) return res;
11436 : : }
11437 : 0 : break;
11438 : : }
11439 : : default:;
11440 : : }
11441 : : }
11442 : : break;
11443 : 4 : case CFN_BUILT_IN_BSWAP32:
11444 : 4 : if (call_expr_nargs (_q20) == 1)
11445 : : {
11446 : 4 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
11447 : 4 : switch (TREE_CODE (_p1))
11448 : : {
11449 : 4 : case INTEGER_CST:
11450 : 4 : {
11451 : 4 : {
11452 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
11453 : 4 : tree res = generic_simplify_401 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP32);
11454 : 4 : if (res) return res;
11455 : : }
11456 : 0 : break;
11457 : : }
11458 : : default:;
11459 : : }
11460 : : }
11461 : : break;
11462 : 4 : case CFN_BUILT_IN_BSWAP64:
11463 : 4 : if (call_expr_nargs (_q20) == 1)
11464 : : {
11465 : 4 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
11466 : 4 : switch (TREE_CODE (_p1))
11467 : : {
11468 : 4 : case INTEGER_CST:
11469 : 4 : {
11470 : 4 : {
11471 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q30, _p1 };
11472 : 4 : tree res = generic_simplify_401 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP64);
11473 : 4 : if (res) return res;
11474 : : }
11475 : 0 : break;
11476 : : }
11477 : : default:;
11478 : : }
11479 : : }
11480 : : break;
11481 : : default:;
11482 : : }
11483 : : break;
11484 : : default:;
11485 : : }
11486 : : break;
11487 : : }
11488 : 5403375 : default:;
11489 : : }
11490 : 5403375 : switch (TREE_CODE (_p1))
11491 : : {
11492 : 3671596 : case INTEGER_CST:
11493 : 3671596 : {
11494 : 3671596 : {
11495 : 3671596 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
11496 : 3671596 : tree res = generic_simplify_397 (loc, type, _p0, _p1, captures);
11497 : 3671596 : if (res) return res;
11498 : : }
11499 : 3671596 : break;
11500 : : }
11501 : 5403375 : default:;
11502 : : }
11503 : 5403375 : switch (TREE_CODE (_p0))
11504 : : {
11505 : 328 : case GT_EXPR:
11506 : 328 : {
11507 : 328 : tree _q20 = TREE_OPERAND (_p0, 0);
11508 : 328 : tree _q21 = TREE_OPERAND (_p0, 1);
11509 : 328 : switch (TREE_CODE (_p1))
11510 : : {
11511 : 37 : case EQ_EXPR:
11512 : 37 : {
11513 : 37 : tree _q50 = TREE_OPERAND (_p1, 0);
11514 : 37 : tree _q51 = TREE_OPERAND (_p1, 1);
11515 : 37 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
11516 : : {
11517 : 0 : if (tree_min_value (_q51))
11518 : : {
11519 : 0 : {
11520 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
11521 : 0 : tree res = generic_simplify_402 (loc, type, _p0, _p1, captures, EQ_EXPR);
11522 : 0 : if (res) return res;
11523 : : }
11524 : : }
11525 : : }
11526 : 37 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
11527 : : {
11528 : 0 : if (tree_max_value (_q51))
11529 : : {
11530 : 0 : {
11531 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
11532 : 0 : tree res = generic_simplify_403 (loc, type, _p0, _p1, captures, EQ_EXPR);
11533 : 0 : if (res) return res;
11534 : : }
11535 : : }
11536 : : }
11537 : : break;
11538 : : }
11539 : 0 : case NE_EXPR:
11540 : 0 : {
11541 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
11542 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
11543 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
11544 : : {
11545 : 0 : if (tree_min_value (_q51))
11546 : : {
11547 : 0 : {
11548 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
11549 : 0 : tree res = generic_simplify_402 (loc, type, _p0, _p1, captures, NE_EXPR);
11550 : 0 : if (res) return res;
11551 : : }
11552 : : }
11553 : : }
11554 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
11555 : : {
11556 : 0 : if (tree_max_value (_q51))
11557 : : {
11558 : 0 : {
11559 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
11560 : 0 : tree res = generic_simplify_403 (loc, type, _p0, _p1, captures, NE_EXPR);
11561 : 0 : if (res) return res;
11562 : : }
11563 : : }
11564 : : }
11565 : : break;
11566 : : }
11567 : 328 : default:;
11568 : : }
11569 : 328 : switch (TREE_CODE (_q20))
11570 : : {
11571 : 0 : CASE_CONVERT:
11572 : 0 : {
11573 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
11574 : 0 : switch (TREE_CODE (_p1))
11575 : : {
11576 : 0 : case EQ_EXPR:
11577 : 0 : {
11578 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
11579 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
11580 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
11581 : : {
11582 : 0 : {
11583 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
11584 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
11585 : 0 : if (res) return res;
11586 : : }
11587 : : }
11588 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
11589 : : {
11590 : 0 : {
11591 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
11592 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
11593 : 0 : if (res) return res;
11594 : : }
11595 : : }
11596 : : break;
11597 : : }
11598 : 0 : case NE_EXPR:
11599 : 0 : {
11600 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
11601 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
11602 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
11603 : : {
11604 : 0 : {
11605 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
11606 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
11607 : 0 : if (res) return res;
11608 : : }
11609 : : }
11610 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
11611 : : {
11612 : 0 : {
11613 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
11614 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
11615 : 0 : if (res) return res;
11616 : : }
11617 : : }
11618 : : break;
11619 : : }
11620 : : default:;
11621 : : }
11622 : : break;
11623 : : }
11624 : 328 : default:;
11625 : : }
11626 : 328 : switch (TREE_CODE (_q21))
11627 : : {
11628 : 0 : CASE_CONVERT:
11629 : 0 : {
11630 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
11631 : 0 : switch (TREE_CODE (_p1))
11632 : : {
11633 : 0 : case EQ_EXPR:
11634 : 0 : {
11635 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
11636 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
11637 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
11638 : : {
11639 : 0 : {
11640 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
11641 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
11642 : 0 : if (res) return res;
11643 : : }
11644 : : }
11645 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
11646 : : {
11647 : 0 : {
11648 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
11649 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
11650 : 0 : if (res) return res;
11651 : : }
11652 : : }
11653 : : break;
11654 : : }
11655 : 0 : case NE_EXPR:
11656 : 0 : {
11657 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
11658 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
11659 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
11660 : : {
11661 : 0 : {
11662 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
11663 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
11664 : 0 : if (res) return res;
11665 : : }
11666 : : }
11667 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
11668 : : {
11669 : 0 : {
11670 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
11671 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
11672 : 0 : if (res) return res;
11673 : : }
11674 : : }
11675 : : break;
11676 : : }
11677 : : default:;
11678 : : }
11679 : : break;
11680 : : }
11681 : 328 : default:;
11682 : : }
11683 : 328 : switch (TREE_CODE (_p1))
11684 : : {
11685 : 37 : case EQ_EXPR:
11686 : 37 : {
11687 : 37 : tree _q50 = TREE_OPERAND (_p1, 0);
11688 : 37 : tree _q51 = TREE_OPERAND (_p1, 1);
11689 : 37 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
11690 : : {
11691 : 0 : {
11692 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
11693 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
11694 : 0 : if (res) return res;
11695 : : }
11696 : : }
11697 : 37 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
11698 : : {
11699 : 0 : {
11700 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
11701 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
11702 : 0 : if (res) return res;
11703 : : }
11704 : : }
11705 : 37 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
11706 : : {
11707 : 0 : {
11708 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
11709 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
11710 : 0 : if (res) return res;
11711 : : }
11712 : : }
11713 : 37 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
11714 : : {
11715 : 0 : {
11716 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
11717 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
11718 : 0 : if (res) return res;
11719 : : }
11720 : : }
11721 : : break;
11722 : : }
11723 : 0 : case NE_EXPR:
11724 : 0 : {
11725 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
11726 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
11727 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
11728 : : {
11729 : 0 : {
11730 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
11731 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
11732 : 0 : if (res) return res;
11733 : : }
11734 : : }
11735 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
11736 : : {
11737 : 0 : {
11738 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
11739 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
11740 : 0 : if (res) return res;
11741 : : }
11742 : : }
11743 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
11744 : : {
11745 : 0 : {
11746 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
11747 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
11748 : 0 : if (res) return res;
11749 : : }
11750 : : }
11751 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
11752 : : {
11753 : 0 : {
11754 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
11755 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
11756 : 0 : if (res) return res;
11757 : : }
11758 : : }
11759 : : break;
11760 : : }
11761 : 67 : case LT_EXPR:
11762 : 67 : {
11763 : 67 : tree _q50 = TREE_OPERAND (_p1, 0);
11764 : 67 : tree _q51 = TREE_OPERAND (_p1, 1);
11765 : 67 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
11766 : : {
11767 : 4 : {
11768 : 4 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
11769 : 4 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
11770 : 4 : if (res) return res;
11771 : : }
11772 : : }
11773 : 67 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
11774 : : {
11775 : 0 : {
11776 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
11777 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GT_EXPR, GT_EXPR);
11778 : 0 : if (res) return res;
11779 : : }
11780 : : }
11781 : 67 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
11782 : : {
11783 : 0 : {
11784 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
11785 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LT_EXPR, LT_EXPR);
11786 : 0 : if (res) return res;
11787 : : }
11788 : : }
11789 : 67 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
11790 : : {
11791 : 4 : {
11792 : 4 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
11793 : 4 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
11794 : 4 : if (res) return res;
11795 : : }
11796 : : }
11797 : : break;
11798 : : }
11799 : 73 : case LE_EXPR:
11800 : 73 : {
11801 : 73 : tree _q50 = TREE_OPERAND (_p1, 0);
11802 : 73 : tree _q51 = TREE_OPERAND (_p1, 1);
11803 : 73 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
11804 : : {
11805 : 23 : {
11806 : 23 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
11807 : 23 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR);
11808 : 23 : if (res) return res;
11809 : : }
11810 : : }
11811 : 73 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
11812 : : {
11813 : 0 : {
11814 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
11815 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GE_EXPR, GT_EXPR);
11816 : 0 : if (res) return res;
11817 : : }
11818 : : }
11819 : 73 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
11820 : : {
11821 : 0 : {
11822 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
11823 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LE_EXPR, LT_EXPR);
11824 : 0 : if (res) return res;
11825 : : }
11826 : : }
11827 : 73 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
11828 : : {
11829 : 0 : {
11830 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
11831 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GE_EXPR, LT_EXPR);
11832 : 0 : if (res) return res;
11833 : : }
11834 : : }
11835 : : break;
11836 : : }
11837 : 82 : case GT_EXPR:
11838 : 82 : {
11839 : 82 : tree _q50 = TREE_OPERAND (_p1, 0);
11840 : 82 : tree _q51 = TREE_OPERAND (_p1, 1);
11841 : 82 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
11842 : : {
11843 : 0 : {
11844 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
11845 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GT_EXPR, GT_EXPR);
11846 : 0 : if (res) return res;
11847 : : }
11848 : : }
11849 : 82 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
11850 : : {
11851 : 0 : {
11852 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
11853 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
11854 : 0 : if (res) return res;
11855 : : }
11856 : : }
11857 : 82 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
11858 : : {
11859 : 0 : {
11860 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
11861 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
11862 : 0 : if (res) return res;
11863 : : }
11864 : : }
11865 : 82 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
11866 : : {
11867 : 32 : {
11868 : 32 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
11869 : 32 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LT_EXPR, LT_EXPR);
11870 : 32 : if (res) return res;
11871 : : }
11872 : : }
11873 : : break;
11874 : : }
11875 : 0 : case GE_EXPR:
11876 : 0 : {
11877 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
11878 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
11879 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
11880 : : {
11881 : 0 : {
11882 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
11883 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GE_EXPR, GT_EXPR);
11884 : 0 : if (res) return res;
11885 : : }
11886 : : }
11887 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
11888 : : {
11889 : 0 : {
11890 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
11891 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR);
11892 : 0 : if (res) return res;
11893 : : }
11894 : : }
11895 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
11896 : : {
11897 : 0 : {
11898 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
11899 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GE_EXPR, LT_EXPR);
11900 : 0 : if (res) return res;
11901 : : }
11902 : : }
11903 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
11904 : : {
11905 : 0 : {
11906 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
11907 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LE_EXPR, LT_EXPR);
11908 : 0 : if (res) return res;
11909 : : }
11910 : : }
11911 : : break;
11912 : : }
11913 : : default:;
11914 : : }
11915 : : break;
11916 : : }
11917 : 62 : case LT_EXPR:
11918 : 62 : {
11919 : 62 : tree _q20 = TREE_OPERAND (_p0, 0);
11920 : 62 : tree _q21 = TREE_OPERAND (_p0, 1);
11921 : 62 : switch (TREE_CODE (_p1))
11922 : : {
11923 : 5 : case EQ_EXPR:
11924 : 5 : {
11925 : 5 : tree _q50 = TREE_OPERAND (_p1, 0);
11926 : 5 : tree _q51 = TREE_OPERAND (_p1, 1);
11927 : 5 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
11928 : : {
11929 : 0 : if (tree_min_value (_q51))
11930 : : {
11931 : 0 : {
11932 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
11933 : 0 : tree res = generic_simplify_402 (loc, type, _p0, _p1, captures, EQ_EXPR);
11934 : 0 : if (res) return res;
11935 : : }
11936 : : }
11937 : : }
11938 : 5 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
11939 : : {
11940 : 0 : if (tree_max_value (_q51))
11941 : : {
11942 : 0 : {
11943 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
11944 : 0 : tree res = generic_simplify_403 (loc, type, _p0, _p1, captures, EQ_EXPR);
11945 : 0 : if (res) return res;
11946 : : }
11947 : : }
11948 : : }
11949 : : break;
11950 : : }
11951 : 2 : case NE_EXPR:
11952 : 2 : {
11953 : 2 : tree _q50 = TREE_OPERAND (_p1, 0);
11954 : 2 : tree _q51 = TREE_OPERAND (_p1, 1);
11955 : 2 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
11956 : : {
11957 : 0 : if (tree_min_value (_q51))
11958 : : {
11959 : 0 : {
11960 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
11961 : 0 : tree res = generic_simplify_402 (loc, type, _p0, _p1, captures, NE_EXPR);
11962 : 0 : if (res) return res;
11963 : : }
11964 : : }
11965 : : }
11966 : 2 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
11967 : : {
11968 : 0 : if (tree_max_value (_q51))
11969 : : {
11970 : 0 : {
11971 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
11972 : 0 : tree res = generic_simplify_403 (loc, type, _p0, _p1, captures, NE_EXPR);
11973 : 0 : if (res) return res;
11974 : : }
11975 : : }
11976 : : }
11977 : : break;
11978 : : }
11979 : 62 : default:;
11980 : : }
11981 : 62 : switch (TREE_CODE (_q20))
11982 : : {
11983 : 8 : CASE_CONVERT:
11984 : 8 : {
11985 : 8 : tree _q30 = TREE_OPERAND (_q20, 0);
11986 : 8 : switch (TREE_CODE (_p1))
11987 : : {
11988 : 0 : case EQ_EXPR:
11989 : 0 : {
11990 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
11991 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
11992 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
11993 : : {
11994 : 0 : {
11995 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
11996 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
11997 : 0 : if (res) return res;
11998 : : }
11999 : : }
12000 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
12001 : : {
12002 : 0 : {
12003 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
12004 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
12005 : 0 : if (res) return res;
12006 : : }
12007 : : }
12008 : : break;
12009 : : }
12010 : 0 : case NE_EXPR:
12011 : 0 : {
12012 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
12013 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
12014 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
12015 : : {
12016 : 0 : {
12017 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
12018 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
12019 : 0 : if (res) return res;
12020 : : }
12021 : : }
12022 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
12023 : : {
12024 : 0 : {
12025 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
12026 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
12027 : 0 : if (res) return res;
12028 : : }
12029 : : }
12030 : : break;
12031 : : }
12032 : : default:;
12033 : : }
12034 : : break;
12035 : : }
12036 : 62 : default:;
12037 : : }
12038 : 62 : switch (TREE_CODE (_q21))
12039 : : {
12040 : 2 : CASE_CONVERT:
12041 : 2 : {
12042 : 2 : tree _q40 = TREE_OPERAND (_q21, 0);
12043 : 2 : switch (TREE_CODE (_p1))
12044 : : {
12045 : 0 : case EQ_EXPR:
12046 : 0 : {
12047 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
12048 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
12049 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
12050 : : {
12051 : 0 : {
12052 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
12053 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
12054 : 0 : if (res) return res;
12055 : : }
12056 : : }
12057 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
12058 : : {
12059 : 0 : {
12060 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
12061 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
12062 : 0 : if (res) return res;
12063 : : }
12064 : : }
12065 : : break;
12066 : : }
12067 : 0 : case NE_EXPR:
12068 : 0 : {
12069 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
12070 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
12071 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
12072 : : {
12073 : 0 : {
12074 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
12075 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
12076 : 0 : if (res) return res;
12077 : : }
12078 : : }
12079 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
12080 : : {
12081 : 0 : {
12082 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
12083 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
12084 : 0 : if (res) return res;
12085 : : }
12086 : : }
12087 : : break;
12088 : : }
12089 : : default:;
12090 : : }
12091 : : break;
12092 : : }
12093 : 62 : default:;
12094 : : }
12095 : 62 : switch (TREE_CODE (_p1))
12096 : : {
12097 : 5 : case EQ_EXPR:
12098 : 5 : {
12099 : 5 : tree _q50 = TREE_OPERAND (_p1, 0);
12100 : 5 : tree _q51 = TREE_OPERAND (_p1, 1);
12101 : 5 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
12102 : : {
12103 : 0 : {
12104 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
12105 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
12106 : 0 : if (res) return res;
12107 : : }
12108 : : }
12109 : 5 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
12110 : : {
12111 : 0 : {
12112 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
12113 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
12114 : 0 : if (res) return res;
12115 : : }
12116 : : }
12117 : 5 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
12118 : : {
12119 : 0 : {
12120 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
12121 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
12122 : 0 : if (res) return res;
12123 : : }
12124 : : }
12125 : 5 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
12126 : : {
12127 : 0 : {
12128 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
12129 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
12130 : 0 : if (res) return res;
12131 : : }
12132 : : }
12133 : : break;
12134 : : }
12135 : 2 : case NE_EXPR:
12136 : 2 : {
12137 : 2 : tree _q50 = TREE_OPERAND (_p1, 0);
12138 : 2 : tree _q51 = TREE_OPERAND (_p1, 1);
12139 : 2 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
12140 : : {
12141 : 0 : {
12142 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
12143 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
12144 : 0 : if (res) return res;
12145 : : }
12146 : : }
12147 : 2 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
12148 : : {
12149 : 0 : {
12150 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
12151 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
12152 : 0 : if (res) return res;
12153 : : }
12154 : : }
12155 : 2 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
12156 : : {
12157 : 0 : {
12158 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
12159 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
12160 : 0 : if (res) return res;
12161 : : }
12162 : : }
12163 : 2 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
12164 : : {
12165 : 2 : {
12166 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
12167 : 2 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
12168 : 2 : if (res) return res;
12169 : : }
12170 : : }
12171 : : break;
12172 : : }
12173 : 8 : case LT_EXPR:
12174 : 8 : {
12175 : 8 : tree _q50 = TREE_OPERAND (_p1, 0);
12176 : 8 : tree _q51 = TREE_OPERAND (_p1, 1);
12177 : 8 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
12178 : : {
12179 : 0 : {
12180 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
12181 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LT_EXPR, LT_EXPR);
12182 : 0 : if (res) return res;
12183 : : }
12184 : : }
12185 : 8 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
12186 : : {
12187 : 0 : {
12188 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
12189 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
12190 : 0 : if (res) return res;
12191 : : }
12192 : : }
12193 : 8 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
12194 : : {
12195 : 0 : {
12196 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
12197 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
12198 : 0 : if (res) return res;
12199 : : }
12200 : : }
12201 : 8 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
12202 : : {
12203 : 0 : {
12204 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
12205 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GT_EXPR, GT_EXPR);
12206 : 0 : if (res) return res;
12207 : : }
12208 : : }
12209 : : break;
12210 : : }
12211 : 0 : case LE_EXPR:
12212 : 0 : {
12213 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
12214 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
12215 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
12216 : : {
12217 : 0 : {
12218 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
12219 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LE_EXPR, LT_EXPR);
12220 : 0 : if (res) return res;
12221 : : }
12222 : : }
12223 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
12224 : : {
12225 : 0 : {
12226 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
12227 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GE_EXPR, LT_EXPR);
12228 : 0 : if (res) return res;
12229 : : }
12230 : : }
12231 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
12232 : : {
12233 : 0 : {
12234 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
12235 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR);
12236 : 0 : if (res) return res;
12237 : : }
12238 : : }
12239 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
12240 : : {
12241 : 0 : {
12242 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
12243 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GE_EXPR, GT_EXPR);
12244 : 0 : if (res) return res;
12245 : : }
12246 : : }
12247 : : break;
12248 : : }
12249 : 1 : case GT_EXPR:
12250 : 1 : {
12251 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
12252 : 1 : tree _q51 = TREE_OPERAND (_p1, 1);
12253 : 1 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
12254 : : {
12255 : 0 : {
12256 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
12257 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GT_EXPR, LT_EXPR);
12258 : 0 : if (res) return res;
12259 : : }
12260 : : }
12261 : 1 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
12262 : : {
12263 : 0 : {
12264 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
12265 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LT_EXPR, LT_EXPR);
12266 : 0 : if (res) return res;
12267 : : }
12268 : : }
12269 : 1 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
12270 : : {
12271 : 0 : {
12272 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
12273 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GT_EXPR, GT_EXPR);
12274 : 0 : if (res) return res;
12275 : : }
12276 : : }
12277 : 1 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
12278 : : {
12279 : 0 : {
12280 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
12281 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LT_EXPR, GT_EXPR);
12282 : 0 : if (res) return res;
12283 : : }
12284 : : }
12285 : : break;
12286 : : }
12287 : 0 : case GE_EXPR:
12288 : 0 : {
12289 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
12290 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
12291 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
12292 : : {
12293 : 0 : {
12294 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
12295 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GE_EXPR, LT_EXPR);
12296 : 0 : if (res) return res;
12297 : : }
12298 : : }
12299 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
12300 : : {
12301 : 0 : {
12302 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
12303 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LE_EXPR, LT_EXPR);
12304 : 0 : if (res) return res;
12305 : : }
12306 : : }
12307 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
12308 : : {
12309 : 0 : {
12310 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
12311 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GE_EXPR, GT_EXPR);
12312 : 0 : if (res) return res;
12313 : : }
12314 : : }
12315 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
12316 : : {
12317 : 0 : {
12318 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
12319 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LE_EXPR, GT_EXPR);
12320 : 0 : if (res) return res;
12321 : : }
12322 : : }
12323 : : break;
12324 : : }
12325 : : default:;
12326 : : }
12327 : : break;
12328 : : }
12329 : 636 : case EQ_EXPR:
12330 : 636 : {
12331 : 636 : tree _q20 = TREE_OPERAND (_p0, 0);
12332 : 636 : tree _q21 = TREE_OPERAND (_p0, 1);
12333 : 636 : if (tree_min_value (_q21))
12334 : : {
12335 : 40 : switch (TREE_CODE (_p1))
12336 : : {
12337 : 0 : case GT_EXPR:
12338 : 0 : {
12339 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
12340 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
12341 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
12342 : : {
12343 : 0 : {
12344 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q51 };
12345 : 0 : tree res = generic_simplify_407 (loc, type, _p0, _p1, captures, EQ_EXPR);
12346 : 0 : if (res) return res;
12347 : : }
12348 : : }
12349 : : break;
12350 : : }
12351 : 14 : case LT_EXPR:
12352 : 14 : {
12353 : 14 : tree _q50 = TREE_OPERAND (_p1, 0);
12354 : 14 : tree _q51 = TREE_OPERAND (_p1, 1);
12355 : 14 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
12356 : : {
12357 : 0 : {
12358 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q50 };
12359 : 0 : tree res = generic_simplify_407 (loc, type, _p0, _p1, captures, EQ_EXPR);
12360 : 0 : if (res) return res;
12361 : : }
12362 : : }
12363 : : break;
12364 : : }
12365 : 0 : case LE_EXPR:
12366 : 0 : {
12367 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
12368 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
12369 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
12370 : : {
12371 : 0 : {
12372 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q51, _p0 };
12373 : 0 : tree res = generic_simplify_408 (loc, type, _p0, _p1, captures);
12374 : 0 : if (res) return res;
12375 : : }
12376 : : }
12377 : : break;
12378 : : }
12379 : 0 : case GE_EXPR:
12380 : 0 : {
12381 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
12382 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
12383 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
12384 : : {
12385 : 0 : {
12386 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q50, _p0 };
12387 : 0 : tree res = generic_simplify_408 (loc, type, _p0, _p1, captures);
12388 : 0 : if (res) return res;
12389 : : }
12390 : : }
12391 : : break;
12392 : : }
12393 : : default:;
12394 : : }
12395 : : }
12396 : 636 : if (tree_max_value (_q21))
12397 : : {
12398 : 0 : switch (TREE_CODE (_p1))
12399 : : {
12400 : 0 : case LT_EXPR:
12401 : 0 : {
12402 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
12403 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
12404 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
12405 : : {
12406 : 0 : {
12407 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q51 };
12408 : 0 : tree res = generic_simplify_409 (loc, type, _p0, _p1, captures, EQ_EXPR);
12409 : 0 : if (res) return res;
12410 : : }
12411 : : }
12412 : : break;
12413 : : }
12414 : 0 : case GT_EXPR:
12415 : 0 : {
12416 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
12417 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
12418 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
12419 : : {
12420 : 0 : {
12421 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q50 };
12422 : 0 : tree res = generic_simplify_409 (loc, type, _p0, _p1, captures, EQ_EXPR);
12423 : 0 : if (res) return res;
12424 : : }
12425 : : }
12426 : : break;
12427 : : }
12428 : 0 : case GE_EXPR:
12429 : 0 : {
12430 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
12431 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
12432 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
12433 : : {
12434 : 0 : {
12435 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q51, _p0 };
12436 : 0 : tree res = generic_simplify_410 (loc, type, _p0, _p1, captures);
12437 : 0 : if (res) return res;
12438 : : }
12439 : : }
12440 : : break;
12441 : : }
12442 : 0 : case LE_EXPR:
12443 : 0 : {
12444 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
12445 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
12446 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
12447 : : {
12448 : 0 : {
12449 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q50, _p0 };
12450 : 0 : tree res = generic_simplify_410 (loc, type, _p0, _p1, captures);
12451 : 0 : if (res) return res;
12452 : : }
12453 : : }
12454 : : break;
12455 : : }
12456 : : default:;
12457 : : }
12458 : : }
12459 : 636 : switch (TREE_CODE (_p1))
12460 : : {
12461 : 76 : case EQ_EXPR:
12462 : 76 : {
12463 : 76 : tree _q50 = TREE_OPERAND (_p1, 0);
12464 : 76 : tree _q51 = TREE_OPERAND (_p1, 1);
12465 : 76 : switch (TREE_CODE (_q50))
12466 : : {
12467 : 0 : CASE_CONVERT:
12468 : 0 : {
12469 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
12470 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
12471 : : {
12472 : 0 : {
12473 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
12474 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
12475 : 0 : if (res) return res;
12476 : : }
12477 : : }
12478 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
12479 : : {
12480 : 0 : {
12481 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
12482 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
12483 : 0 : if (res) return res;
12484 : : }
12485 : : }
12486 : : break;
12487 : : }
12488 : 76 : default:;
12489 : : }
12490 : 76 : switch (TREE_CODE (_q51))
12491 : : {
12492 : 0 : CASE_CONVERT:
12493 : 0 : {
12494 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
12495 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
12496 : : {
12497 : 0 : {
12498 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
12499 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
12500 : 0 : if (res) return res;
12501 : : }
12502 : : }
12503 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
12504 : : {
12505 : 0 : {
12506 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
12507 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
12508 : 0 : if (res) return res;
12509 : : }
12510 : : }
12511 : : break;
12512 : : }
12513 : : default:;
12514 : : }
12515 : : break;
12516 : : }
12517 : 36 : case NE_EXPR:
12518 : 36 : {
12519 : 36 : tree _q50 = TREE_OPERAND (_p1, 0);
12520 : 36 : tree _q51 = TREE_OPERAND (_p1, 1);
12521 : 36 : switch (TREE_CODE (_q50))
12522 : : {
12523 : 0 : CASE_CONVERT:
12524 : 0 : {
12525 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
12526 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
12527 : : {
12528 : 0 : {
12529 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
12530 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
12531 : 0 : if (res) return res;
12532 : : }
12533 : : }
12534 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
12535 : : {
12536 : 0 : {
12537 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
12538 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
12539 : 0 : if (res) return res;
12540 : : }
12541 : : }
12542 : : break;
12543 : : }
12544 : 36 : default:;
12545 : : }
12546 : 36 : switch (TREE_CODE (_q51))
12547 : : {
12548 : 0 : CASE_CONVERT:
12549 : 0 : {
12550 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
12551 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
12552 : : {
12553 : 0 : {
12554 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
12555 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
12556 : 0 : if (res) return res;
12557 : : }
12558 : : }
12559 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
12560 : : {
12561 : 0 : {
12562 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
12563 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
12564 : 0 : if (res) return res;
12565 : : }
12566 : : }
12567 : : break;
12568 : : }
12569 : : default:;
12570 : : }
12571 : : break;
12572 : : }
12573 : 20 : case LT_EXPR:
12574 : 20 : {
12575 : 20 : tree _q50 = TREE_OPERAND (_p1, 0);
12576 : 20 : tree _q51 = TREE_OPERAND (_p1, 1);
12577 : 20 : switch (TREE_CODE (_q50))
12578 : : {
12579 : 0 : CASE_CONVERT:
12580 : 0 : {
12581 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
12582 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
12583 : : {
12584 : 0 : {
12585 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
12586 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
12587 : 0 : if (res) return res;
12588 : : }
12589 : : }
12590 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
12591 : : {
12592 : 0 : {
12593 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
12594 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
12595 : 0 : if (res) return res;
12596 : : }
12597 : : }
12598 : : break;
12599 : : }
12600 : 20 : default:;
12601 : : }
12602 : 20 : switch (TREE_CODE (_q51))
12603 : : {
12604 : 0 : CASE_CONVERT:
12605 : 0 : {
12606 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
12607 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
12608 : : {
12609 : 0 : {
12610 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
12611 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
12612 : 0 : if (res) return res;
12613 : : }
12614 : : }
12615 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
12616 : : {
12617 : 0 : {
12618 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
12619 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
12620 : 0 : if (res) return res;
12621 : : }
12622 : : }
12623 : : break;
12624 : : }
12625 : : default:;
12626 : : }
12627 : : break;
12628 : : }
12629 : 15 : case GT_EXPR:
12630 : 15 : {
12631 : 15 : tree _q50 = TREE_OPERAND (_p1, 0);
12632 : 15 : tree _q51 = TREE_OPERAND (_p1, 1);
12633 : 15 : switch (TREE_CODE (_q50))
12634 : : {
12635 : 0 : CASE_CONVERT:
12636 : 0 : {
12637 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
12638 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
12639 : : {
12640 : 0 : {
12641 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
12642 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
12643 : 0 : if (res) return res;
12644 : : }
12645 : : }
12646 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
12647 : : {
12648 : 0 : {
12649 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
12650 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
12651 : 0 : if (res) return res;
12652 : : }
12653 : : }
12654 : : break;
12655 : : }
12656 : 15 : default:;
12657 : : }
12658 : 15 : switch (TREE_CODE (_q51))
12659 : : {
12660 : 0 : CASE_CONVERT:
12661 : 0 : {
12662 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
12663 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
12664 : : {
12665 : 0 : {
12666 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
12667 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
12668 : 0 : if (res) return res;
12669 : : }
12670 : : }
12671 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
12672 : : {
12673 : 0 : {
12674 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
12675 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
12676 : 0 : if (res) return res;
12677 : : }
12678 : : }
12679 : : break;
12680 : : }
12681 : : default:;
12682 : : }
12683 : : break;
12684 : : }
12685 : 15 : case LE_EXPR:
12686 : 15 : {
12687 : 15 : tree _q50 = TREE_OPERAND (_p1, 0);
12688 : 15 : tree _q51 = TREE_OPERAND (_p1, 1);
12689 : 15 : switch (TREE_CODE (_q50))
12690 : : {
12691 : 0 : CASE_CONVERT:
12692 : 0 : {
12693 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
12694 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
12695 : : {
12696 : 0 : {
12697 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
12698 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
12699 : 0 : if (res) return res;
12700 : : }
12701 : : }
12702 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
12703 : : {
12704 : 0 : {
12705 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
12706 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
12707 : 0 : if (res) return res;
12708 : : }
12709 : : }
12710 : : break;
12711 : : }
12712 : 15 : default:;
12713 : : }
12714 : 15 : switch (TREE_CODE (_q51))
12715 : : {
12716 : 0 : CASE_CONVERT:
12717 : 0 : {
12718 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
12719 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
12720 : : {
12721 : 0 : {
12722 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
12723 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
12724 : 0 : if (res) return res;
12725 : : }
12726 : : }
12727 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
12728 : : {
12729 : 0 : {
12730 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
12731 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
12732 : 0 : if (res) return res;
12733 : : }
12734 : : }
12735 : : break;
12736 : : }
12737 : : default:;
12738 : : }
12739 : : break;
12740 : : }
12741 : 5 : case GE_EXPR:
12742 : 5 : {
12743 : 5 : tree _q50 = TREE_OPERAND (_p1, 0);
12744 : 5 : tree _q51 = TREE_OPERAND (_p1, 1);
12745 : 5 : switch (TREE_CODE (_q50))
12746 : : {
12747 : 0 : CASE_CONVERT:
12748 : 0 : {
12749 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
12750 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
12751 : : {
12752 : 0 : {
12753 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
12754 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
12755 : 0 : if (res) return res;
12756 : : }
12757 : : }
12758 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
12759 : : {
12760 : 0 : {
12761 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
12762 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
12763 : 0 : if (res) return res;
12764 : : }
12765 : : }
12766 : : break;
12767 : : }
12768 : 5 : default:;
12769 : : }
12770 : 5 : switch (TREE_CODE (_q51))
12771 : : {
12772 : 0 : CASE_CONVERT:
12773 : 0 : {
12774 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
12775 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
12776 : : {
12777 : 0 : {
12778 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
12779 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
12780 : 0 : if (res) return res;
12781 : : }
12782 : : }
12783 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
12784 : : {
12785 : 0 : {
12786 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
12787 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
12788 : 0 : if (res) return res;
12789 : : }
12790 : : }
12791 : : break;
12792 : : }
12793 : : default:;
12794 : : }
12795 : : break;
12796 : : }
12797 : 636 : default:;
12798 : : }
12799 : 636 : switch (TREE_CODE (_q20))
12800 : : {
12801 : 0 : CASE_CONVERT:
12802 : 0 : {
12803 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
12804 : 0 : switch (TREE_CODE (_p1))
12805 : : {
12806 : 0 : case EQ_EXPR:
12807 : 0 : {
12808 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
12809 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
12810 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
12811 : : {
12812 : 0 : {
12813 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
12814 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
12815 : 0 : if (res) return res;
12816 : : }
12817 : : }
12818 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
12819 : : {
12820 : 0 : {
12821 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
12822 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
12823 : 0 : if (res) return res;
12824 : : }
12825 : : }
12826 : : break;
12827 : : }
12828 : 0 : case NE_EXPR:
12829 : 0 : {
12830 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
12831 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
12832 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
12833 : : {
12834 : 0 : {
12835 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
12836 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
12837 : 0 : if (res) return res;
12838 : : }
12839 : : }
12840 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
12841 : : {
12842 : 0 : {
12843 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
12844 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
12845 : 0 : if (res) return res;
12846 : : }
12847 : : }
12848 : : break;
12849 : : }
12850 : : default:;
12851 : : }
12852 : : break;
12853 : : }
12854 : 636 : default:;
12855 : : }
12856 : 636 : switch (TREE_CODE (_q21))
12857 : : {
12858 : 0 : CASE_CONVERT:
12859 : 0 : {
12860 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
12861 : 0 : switch (TREE_CODE (_p1))
12862 : : {
12863 : 0 : case EQ_EXPR:
12864 : 0 : {
12865 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
12866 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
12867 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
12868 : : {
12869 : 0 : {
12870 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
12871 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
12872 : 0 : if (res) return res;
12873 : : }
12874 : : }
12875 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
12876 : : {
12877 : 0 : {
12878 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
12879 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
12880 : 0 : if (res) return res;
12881 : : }
12882 : : }
12883 : : break;
12884 : : }
12885 : 0 : case NE_EXPR:
12886 : 0 : {
12887 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
12888 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
12889 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
12890 : : {
12891 : 0 : {
12892 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
12893 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
12894 : 0 : if (res) return res;
12895 : : }
12896 : : }
12897 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
12898 : : {
12899 : 0 : {
12900 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
12901 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
12902 : 0 : if (res) return res;
12903 : : }
12904 : : }
12905 : : break;
12906 : : }
12907 : : default:;
12908 : : }
12909 : : break;
12910 : : }
12911 : 636 : default:;
12912 : : }
12913 : 636 : switch (TREE_CODE (_p1))
12914 : : {
12915 : 76 : case EQ_EXPR:
12916 : 76 : {
12917 : 76 : tree _q50 = TREE_OPERAND (_p1, 0);
12918 : 76 : tree _q51 = TREE_OPERAND (_p1, 1);
12919 : 76 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
12920 : : {
12921 : 0 : {
12922 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
12923 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
12924 : 0 : if (res) return res;
12925 : : }
12926 : 0 : {
12927 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
12928 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
12929 : 0 : if (res) return res;
12930 : : }
12931 : : }
12932 : 76 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
12933 : : {
12934 : 0 : {
12935 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
12936 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
12937 : 0 : if (res) return res;
12938 : : }
12939 : : }
12940 : 76 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
12941 : : {
12942 : 0 : {
12943 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
12944 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
12945 : 0 : if (res) return res;
12946 : : }
12947 : 0 : {
12948 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
12949 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
12950 : 0 : if (res) return res;
12951 : : }
12952 : : }
12953 : 76 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
12954 : : {
12955 : 19 : {
12956 : 19 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
12957 : 19 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
12958 : 19 : if (res) return res;
12959 : : }
12960 : 19 : {
12961 : 19 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
12962 : 19 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
12963 : 19 : if (res) return res;
12964 : : }
12965 : : }
12966 : 76 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
12967 : : {
12968 : 0 : {
12969 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
12970 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, EQ_EXPR, EQ_EXPR);
12971 : 0 : if (res) return res;
12972 : : }
12973 : : }
12974 : : break;
12975 : : }
12976 : 36 : case NE_EXPR:
12977 : 36 : {
12978 : 36 : tree _q50 = TREE_OPERAND (_p1, 0);
12979 : 36 : tree _q51 = TREE_OPERAND (_p1, 1);
12980 : 36 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
12981 : : {
12982 : 0 : {
12983 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
12984 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
12985 : 0 : if (res) return res;
12986 : : }
12987 : 0 : {
12988 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
12989 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
12990 : 0 : if (res) return res;
12991 : : }
12992 : : }
12993 : 36 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
12994 : : {
12995 : 0 : {
12996 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
12997 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
12998 : 0 : if (res) return res;
12999 : : }
13000 : : }
13001 : 36 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
13002 : : {
13003 : 0 : {
13004 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
13005 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
13006 : 0 : if (res) return res;
13007 : : }
13008 : 0 : {
13009 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
13010 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
13011 : 0 : if (res) return res;
13012 : : }
13013 : : }
13014 : 36 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
13015 : : {
13016 : 12 : {
13017 : 12 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
13018 : 12 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
13019 : 12 : if (res) return res;
13020 : : }
13021 : 12 : {
13022 : 12 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
13023 : 12 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
13024 : 12 : if (res) return res;
13025 : : }
13026 : : }
13027 : 36 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
13028 : : {
13029 : 0 : {
13030 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
13031 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
13032 : 0 : if (res) return res;
13033 : : }
13034 : : }
13035 : : break;
13036 : : }
13037 : 20 : case LT_EXPR:
13038 : 20 : {
13039 : 20 : tree _q50 = TREE_OPERAND (_p1, 0);
13040 : 20 : tree _q51 = TREE_OPERAND (_p1, 1);
13041 : 20 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
13042 : : {
13043 : 0 : {
13044 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
13045 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
13046 : 0 : if (res) return res;
13047 : : }
13048 : : }
13049 : 20 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
13050 : : {
13051 : 0 : {
13052 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
13053 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
13054 : 0 : if (res) return res;
13055 : : }
13056 : : }
13057 : 20 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
13058 : : {
13059 : 0 : {
13060 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
13061 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
13062 : 0 : if (res) return res;
13063 : : }
13064 : : }
13065 : 20 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
13066 : : {
13067 : 0 : {
13068 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
13069 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
13070 : 0 : if (res) return res;
13071 : : }
13072 : : }
13073 : : break;
13074 : : }
13075 : 15 : case GT_EXPR:
13076 : 15 : {
13077 : 15 : tree _q50 = TREE_OPERAND (_p1, 0);
13078 : 15 : tree _q51 = TREE_OPERAND (_p1, 1);
13079 : 15 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
13080 : : {
13081 : 0 : {
13082 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
13083 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
13084 : 0 : if (res) return res;
13085 : : }
13086 : : }
13087 : 15 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
13088 : : {
13089 : 0 : {
13090 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
13091 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
13092 : 0 : if (res) return res;
13093 : : }
13094 : : }
13095 : 15 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
13096 : : {
13097 : 0 : {
13098 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
13099 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, GT_EXPR, EQ_EXPR);
13100 : 0 : if (res) return res;
13101 : : }
13102 : : }
13103 : 15 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
13104 : : {
13105 : 0 : {
13106 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
13107 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, LT_EXPR, EQ_EXPR);
13108 : 0 : if (res) return res;
13109 : : }
13110 : : }
13111 : : break;
13112 : : }
13113 : 15 : case LE_EXPR:
13114 : 15 : {
13115 : 15 : tree _q50 = TREE_OPERAND (_p1, 0);
13116 : 15 : tree _q51 = TREE_OPERAND (_p1, 1);
13117 : 15 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
13118 : : {
13119 : 0 : {
13120 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
13121 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
13122 : 0 : if (res) return res;
13123 : : }
13124 : : }
13125 : 15 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
13126 : : {
13127 : 0 : {
13128 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
13129 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
13130 : 0 : if (res) return res;
13131 : : }
13132 : : }
13133 : 15 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
13134 : : {
13135 : 0 : {
13136 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
13137 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
13138 : 0 : if (res) return res;
13139 : : }
13140 : : }
13141 : 15 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
13142 : : {
13143 : 0 : {
13144 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
13145 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
13146 : 0 : if (res) return res;
13147 : : }
13148 : : }
13149 : : break;
13150 : : }
13151 : 5 : case GE_EXPR:
13152 : 5 : {
13153 : 5 : tree _q50 = TREE_OPERAND (_p1, 0);
13154 : 5 : tree _q51 = TREE_OPERAND (_p1, 1);
13155 : 5 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
13156 : : {
13157 : 0 : {
13158 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
13159 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
13160 : 0 : if (res) return res;
13161 : : }
13162 : : }
13163 : 5 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
13164 : : {
13165 : 0 : {
13166 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
13167 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
13168 : 0 : if (res) return res;
13169 : : }
13170 : : }
13171 : 5 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
13172 : : {
13173 : 0 : {
13174 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
13175 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
13176 : 0 : if (res) return res;
13177 : : }
13178 : : }
13179 : 5 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
13180 : : {
13181 : 0 : {
13182 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
13183 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
13184 : 0 : if (res) return res;
13185 : : }
13186 : : }
13187 : : break;
13188 : : }
13189 : : default:;
13190 : : }
13191 : : break;
13192 : : }
13193 : 144 : case NE_EXPR:
13194 : 144 : {
13195 : 144 : tree _q20 = TREE_OPERAND (_p0, 0);
13196 : 144 : tree _q21 = TREE_OPERAND (_p0, 1);
13197 : 144 : if (tree_min_value (_q21))
13198 : : {
13199 : 15 : switch (TREE_CODE (_p1))
13200 : : {
13201 : 0 : case GT_EXPR:
13202 : 0 : {
13203 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
13204 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
13205 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
13206 : : {
13207 : 0 : {
13208 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q51 };
13209 : 0 : tree res = generic_simplify_407 (loc, type, _p0, _p1, captures, NE_EXPR);
13210 : 0 : if (res) return res;
13211 : : }
13212 : : }
13213 : : break;
13214 : : }
13215 : 0 : case LT_EXPR:
13216 : 0 : {
13217 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
13218 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
13219 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
13220 : : {
13221 : 0 : {
13222 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q50 };
13223 : 0 : tree res = generic_simplify_407 (loc, type, _p0, _p1, captures, NE_EXPR);
13224 : 0 : if (res) return res;
13225 : : }
13226 : : }
13227 : : break;
13228 : : }
13229 : 3 : case GE_EXPR:
13230 : 3 : {
13231 : 3 : tree _q50 = TREE_OPERAND (_p1, 0);
13232 : 3 : tree _q51 = TREE_OPERAND (_p1, 1);
13233 : 3 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
13234 : : {
13235 : 3 : {
13236 : 3 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q50 };
13237 : 3 : tree res = generic_simplify_413 (loc, type, _p0, _p1, captures);
13238 : 3 : if (res) return res;
13239 : : }
13240 : : }
13241 : : break;
13242 : : }
13243 : 0 : case LE_EXPR:
13244 : 0 : {
13245 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
13246 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
13247 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
13248 : : {
13249 : 0 : {
13250 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q51 };
13251 : 0 : tree res = generic_simplify_413 (loc, type, _p0, _p1, captures);
13252 : 0 : if (res) return res;
13253 : : }
13254 : : }
13255 : : break;
13256 : : }
13257 : : default:;
13258 : : }
13259 : : }
13260 : 141 : if (tree_max_value (_q21))
13261 : : {
13262 : 0 : switch (TREE_CODE (_p1))
13263 : : {
13264 : 0 : case LT_EXPR:
13265 : 0 : {
13266 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
13267 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
13268 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
13269 : : {
13270 : 0 : {
13271 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q51 };
13272 : 0 : tree res = generic_simplify_409 (loc, type, _p0, _p1, captures, NE_EXPR);
13273 : 0 : if (res) return res;
13274 : : }
13275 : : }
13276 : : break;
13277 : : }
13278 : 0 : case GT_EXPR:
13279 : 0 : {
13280 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
13281 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
13282 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
13283 : : {
13284 : 0 : {
13285 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q50 };
13286 : 0 : tree res = generic_simplify_409 (loc, type, _p0, _p1, captures, NE_EXPR);
13287 : 0 : if (res) return res;
13288 : : }
13289 : : }
13290 : : break;
13291 : : }
13292 : : default:;
13293 : : }
13294 : : }
13295 : 141 : switch (TREE_CODE (_p1))
13296 : : {
13297 : 15 : case EQ_EXPR:
13298 : 15 : {
13299 : 15 : tree _q50 = TREE_OPERAND (_p1, 0);
13300 : 15 : tree _q51 = TREE_OPERAND (_p1, 1);
13301 : 15 : switch (TREE_CODE (_q50))
13302 : : {
13303 : 0 : CASE_CONVERT:
13304 : 0 : {
13305 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
13306 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
13307 : : {
13308 : 0 : {
13309 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
13310 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
13311 : 0 : if (res) return res;
13312 : : }
13313 : : }
13314 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
13315 : : {
13316 : 0 : {
13317 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
13318 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
13319 : 0 : if (res) return res;
13320 : : }
13321 : : }
13322 : : break;
13323 : : }
13324 : 15 : default:;
13325 : : }
13326 : 15 : switch (TREE_CODE (_q51))
13327 : : {
13328 : 0 : CASE_CONVERT:
13329 : 0 : {
13330 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
13331 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
13332 : : {
13333 : 0 : {
13334 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
13335 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
13336 : 0 : if (res) return res;
13337 : : }
13338 : : }
13339 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
13340 : : {
13341 : 0 : {
13342 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
13343 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
13344 : 0 : if (res) return res;
13345 : : }
13346 : : }
13347 : : break;
13348 : : }
13349 : : default:;
13350 : : }
13351 : : break;
13352 : : }
13353 : 2 : case NE_EXPR:
13354 : 2 : {
13355 : 2 : tree _q50 = TREE_OPERAND (_p1, 0);
13356 : 2 : tree _q51 = TREE_OPERAND (_p1, 1);
13357 : 2 : switch (TREE_CODE (_q50))
13358 : : {
13359 : 0 : CASE_CONVERT:
13360 : 0 : {
13361 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
13362 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
13363 : : {
13364 : 0 : {
13365 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
13366 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
13367 : 0 : if (res) return res;
13368 : : }
13369 : : }
13370 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
13371 : : {
13372 : 0 : {
13373 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
13374 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
13375 : 0 : if (res) return res;
13376 : : }
13377 : : }
13378 : : break;
13379 : : }
13380 : 2 : default:;
13381 : : }
13382 : 2 : switch (TREE_CODE (_q51))
13383 : : {
13384 : 0 : CASE_CONVERT:
13385 : 0 : {
13386 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
13387 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
13388 : : {
13389 : 0 : {
13390 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
13391 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
13392 : 0 : if (res) return res;
13393 : : }
13394 : : }
13395 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
13396 : : {
13397 : 0 : {
13398 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
13399 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
13400 : 0 : if (res) return res;
13401 : : }
13402 : : }
13403 : : break;
13404 : : }
13405 : : default:;
13406 : : }
13407 : : break;
13408 : : }
13409 : 0 : case LT_EXPR:
13410 : 0 : {
13411 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
13412 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
13413 : 0 : switch (TREE_CODE (_q50))
13414 : : {
13415 : 0 : CASE_CONVERT:
13416 : 0 : {
13417 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
13418 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
13419 : : {
13420 : 0 : {
13421 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
13422 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
13423 : 0 : if (res) return res;
13424 : : }
13425 : : }
13426 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
13427 : : {
13428 : 0 : {
13429 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
13430 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
13431 : 0 : if (res) return res;
13432 : : }
13433 : : }
13434 : : break;
13435 : : }
13436 : 0 : default:;
13437 : : }
13438 : 0 : switch (TREE_CODE (_q51))
13439 : : {
13440 : 0 : CASE_CONVERT:
13441 : 0 : {
13442 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
13443 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
13444 : : {
13445 : 0 : {
13446 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
13447 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
13448 : 0 : if (res) return res;
13449 : : }
13450 : : }
13451 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
13452 : : {
13453 : 0 : {
13454 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
13455 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
13456 : 0 : if (res) return res;
13457 : : }
13458 : : }
13459 : : break;
13460 : : }
13461 : : default:;
13462 : : }
13463 : : break;
13464 : : }
13465 : 4 : case GT_EXPR:
13466 : 4 : {
13467 : 4 : tree _q50 = TREE_OPERAND (_p1, 0);
13468 : 4 : tree _q51 = TREE_OPERAND (_p1, 1);
13469 : 4 : switch (TREE_CODE (_q50))
13470 : : {
13471 : 0 : CASE_CONVERT:
13472 : 0 : {
13473 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
13474 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
13475 : : {
13476 : 0 : {
13477 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
13478 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
13479 : 0 : if (res) return res;
13480 : : }
13481 : : }
13482 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
13483 : : {
13484 : 0 : {
13485 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
13486 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
13487 : 0 : if (res) return res;
13488 : : }
13489 : : }
13490 : : break;
13491 : : }
13492 : 4 : default:;
13493 : : }
13494 : 4 : switch (TREE_CODE (_q51))
13495 : : {
13496 : 0 : CASE_CONVERT:
13497 : 0 : {
13498 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
13499 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
13500 : : {
13501 : 0 : {
13502 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
13503 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
13504 : 0 : if (res) return res;
13505 : : }
13506 : : }
13507 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
13508 : : {
13509 : 0 : {
13510 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
13511 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
13512 : 0 : if (res) return res;
13513 : : }
13514 : : }
13515 : : break;
13516 : : }
13517 : : default:;
13518 : : }
13519 : : break;
13520 : : }
13521 : 0 : case LE_EXPR:
13522 : 0 : {
13523 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
13524 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
13525 : 0 : switch (TREE_CODE (_q50))
13526 : : {
13527 : 0 : CASE_CONVERT:
13528 : 0 : {
13529 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
13530 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
13531 : : {
13532 : 0 : {
13533 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
13534 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
13535 : 0 : if (res) return res;
13536 : : }
13537 : : }
13538 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
13539 : : {
13540 : 0 : {
13541 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
13542 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
13543 : 0 : if (res) return res;
13544 : : }
13545 : : }
13546 : : break;
13547 : : }
13548 : 0 : default:;
13549 : : }
13550 : 0 : switch (TREE_CODE (_q51))
13551 : : {
13552 : 0 : CASE_CONVERT:
13553 : 0 : {
13554 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
13555 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
13556 : : {
13557 : 0 : {
13558 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
13559 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
13560 : 0 : if (res) return res;
13561 : : }
13562 : : }
13563 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
13564 : : {
13565 : 0 : {
13566 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
13567 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
13568 : 0 : if (res) return res;
13569 : : }
13570 : : }
13571 : : break;
13572 : : }
13573 : : default:;
13574 : : }
13575 : : break;
13576 : : }
13577 : 14 : case GE_EXPR:
13578 : 14 : {
13579 : 14 : tree _q50 = TREE_OPERAND (_p1, 0);
13580 : 14 : tree _q51 = TREE_OPERAND (_p1, 1);
13581 : 14 : switch (TREE_CODE (_q50))
13582 : : {
13583 : 0 : CASE_CONVERT:
13584 : 0 : {
13585 : 0 : tree _q60 = TREE_OPERAND (_q50, 0);
13586 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
13587 : : {
13588 : 0 : {
13589 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
13590 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
13591 : 0 : if (res) return res;
13592 : : }
13593 : : }
13594 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
13595 : : {
13596 : 0 : {
13597 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
13598 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
13599 : 0 : if (res) return res;
13600 : : }
13601 : : }
13602 : : break;
13603 : : }
13604 : 14 : default:;
13605 : : }
13606 : 14 : switch (TREE_CODE (_q51))
13607 : : {
13608 : 0 : CASE_CONVERT:
13609 : 0 : {
13610 : 0 : tree _q70 = TREE_OPERAND (_q51, 0);
13611 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
13612 : : {
13613 : 0 : {
13614 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
13615 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
13616 : 0 : if (res) return res;
13617 : : }
13618 : : }
13619 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
13620 : : {
13621 : 0 : {
13622 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
13623 : 0 : tree res = generic_simplify_411 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
13624 : 0 : if (res) return res;
13625 : : }
13626 : : }
13627 : : break;
13628 : : }
13629 : : default:;
13630 : : }
13631 : : break;
13632 : : }
13633 : 141 : default:;
13634 : : }
13635 : 141 : switch (TREE_CODE (_q20))
13636 : : {
13637 : 0 : CASE_CONVERT:
13638 : 0 : {
13639 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
13640 : 0 : switch (TREE_CODE (_p1))
13641 : : {
13642 : 0 : case EQ_EXPR:
13643 : 0 : {
13644 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
13645 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
13646 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
13647 : : {
13648 : 0 : {
13649 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
13650 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
13651 : 0 : if (res) return res;
13652 : : }
13653 : : }
13654 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
13655 : : {
13656 : 0 : {
13657 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
13658 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
13659 : 0 : if (res) return res;
13660 : : }
13661 : : }
13662 : : break;
13663 : : }
13664 : 0 : case NE_EXPR:
13665 : 0 : {
13666 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
13667 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
13668 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
13669 : : {
13670 : 0 : {
13671 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
13672 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
13673 : 0 : if (res) return res;
13674 : : }
13675 : : }
13676 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
13677 : : {
13678 : 0 : {
13679 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
13680 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
13681 : 0 : if (res) return res;
13682 : : }
13683 : : }
13684 : : break;
13685 : : }
13686 : : default:;
13687 : : }
13688 : : break;
13689 : : }
13690 : 141 : default:;
13691 : : }
13692 : 141 : switch (TREE_CODE (_q21))
13693 : : {
13694 : 0 : CASE_CONVERT:
13695 : 0 : {
13696 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
13697 : 0 : switch (TREE_CODE (_p1))
13698 : : {
13699 : 0 : case EQ_EXPR:
13700 : 0 : {
13701 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
13702 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
13703 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
13704 : : {
13705 : 0 : {
13706 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
13707 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
13708 : 0 : if (res) return res;
13709 : : }
13710 : : }
13711 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
13712 : : {
13713 : 0 : {
13714 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
13715 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
13716 : 0 : if (res) return res;
13717 : : }
13718 : : }
13719 : : break;
13720 : : }
13721 : 0 : case NE_EXPR:
13722 : 0 : {
13723 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
13724 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
13725 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
13726 : : {
13727 : 0 : {
13728 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
13729 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
13730 : 0 : if (res) return res;
13731 : : }
13732 : : }
13733 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
13734 : : {
13735 : 0 : {
13736 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
13737 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
13738 : 0 : if (res) return res;
13739 : : }
13740 : : }
13741 : : break;
13742 : : }
13743 : : default:;
13744 : : }
13745 : : break;
13746 : : }
13747 : 141 : default:;
13748 : : }
13749 : 141 : switch (TREE_CODE (_p1))
13750 : : {
13751 : 15 : case EQ_EXPR:
13752 : 15 : {
13753 : 15 : tree _q50 = TREE_OPERAND (_p1, 0);
13754 : 15 : tree _q51 = TREE_OPERAND (_p1, 1);
13755 : 15 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
13756 : : {
13757 : 0 : {
13758 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
13759 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
13760 : 0 : if (res) return res;
13761 : : }
13762 : 0 : {
13763 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
13764 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
13765 : 0 : if (res) return res;
13766 : : }
13767 : : }
13768 : 15 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
13769 : : {
13770 : 0 : {
13771 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
13772 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
13773 : 0 : if (res) return res;
13774 : : }
13775 : : }
13776 : 15 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
13777 : : {
13778 : 0 : {
13779 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
13780 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
13781 : 0 : if (res) return res;
13782 : : }
13783 : 0 : {
13784 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
13785 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
13786 : 0 : if (res) return res;
13787 : : }
13788 : : }
13789 : 15 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
13790 : : {
13791 : 5 : {
13792 : 5 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
13793 : 5 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, EQ_EXPR, NE_EXPR);
13794 : 5 : if (res) return res;
13795 : : }
13796 : 5 : {
13797 : 5 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
13798 : 5 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
13799 : 5 : if (res) return res;
13800 : : }
13801 : : }
13802 : 15 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
13803 : : {
13804 : 0 : {
13805 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
13806 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, NE_EXPR, EQ_EXPR);
13807 : 0 : if (res) return res;
13808 : : }
13809 : : }
13810 : : break;
13811 : : }
13812 : 2 : case NE_EXPR:
13813 : 2 : {
13814 : 2 : tree _q50 = TREE_OPERAND (_p1, 0);
13815 : 2 : tree _q51 = TREE_OPERAND (_p1, 1);
13816 : 2 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
13817 : : {
13818 : 2 : {
13819 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
13820 : 2 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
13821 : 2 : if (res) return res;
13822 : : }
13823 : 2 : {
13824 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
13825 : 2 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
13826 : 2 : if (res) return res;
13827 : : }
13828 : : }
13829 : 2 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
13830 : : {
13831 : 0 : {
13832 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
13833 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
13834 : 0 : if (res) return res;
13835 : : }
13836 : : }
13837 : 2 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
13838 : : {
13839 : 0 : {
13840 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
13841 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
13842 : 0 : if (res) return res;
13843 : : }
13844 : 0 : {
13845 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
13846 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
13847 : 0 : if (res) return res;
13848 : : }
13849 : : }
13850 : 2 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
13851 : : {
13852 : 0 : {
13853 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
13854 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
13855 : 0 : if (res) return res;
13856 : : }
13857 : 0 : {
13858 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
13859 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
13860 : 0 : if (res) return res;
13861 : : }
13862 : : }
13863 : 2 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
13864 : : {
13865 : 0 : {
13866 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
13867 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, NE_EXPR, NE_EXPR);
13868 : 0 : if (res) return res;
13869 : : }
13870 : : }
13871 : : break;
13872 : : }
13873 : 0 : case LT_EXPR:
13874 : 0 : {
13875 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
13876 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
13877 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
13878 : : {
13879 : 0 : {
13880 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
13881 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
13882 : 0 : if (res) return res;
13883 : : }
13884 : : }
13885 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
13886 : : {
13887 : 0 : {
13888 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
13889 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
13890 : 0 : if (res) return res;
13891 : : }
13892 : : }
13893 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
13894 : : {
13895 : 0 : {
13896 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
13897 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
13898 : 0 : if (res) return res;
13899 : : }
13900 : : }
13901 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
13902 : : {
13903 : 0 : {
13904 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
13905 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
13906 : 0 : if (res) return res;
13907 : : }
13908 : : }
13909 : : break;
13910 : : }
13911 : 4 : case GT_EXPR:
13912 : 4 : {
13913 : 4 : tree _q50 = TREE_OPERAND (_p1, 0);
13914 : 4 : tree _q51 = TREE_OPERAND (_p1, 1);
13915 : 4 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
13916 : : {
13917 : 4 : {
13918 : 4 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
13919 : 4 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
13920 : 4 : if (res) return res;
13921 : : }
13922 : : }
13923 : 4 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
13924 : : {
13925 : 0 : {
13926 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
13927 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
13928 : 0 : if (res) return res;
13929 : : }
13930 : : }
13931 : 4 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
13932 : : {
13933 : 0 : {
13934 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
13935 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, GT_EXPR, NE_EXPR);
13936 : 0 : if (res) return res;
13937 : : }
13938 : : }
13939 : 4 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
13940 : : {
13941 : 0 : {
13942 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
13943 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, LT_EXPR, NE_EXPR);
13944 : 0 : if (res) return res;
13945 : : }
13946 : : }
13947 : : break;
13948 : : }
13949 : 0 : case LE_EXPR:
13950 : 0 : {
13951 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
13952 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
13953 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
13954 : : {
13955 : 0 : {
13956 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
13957 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
13958 : 0 : if (res) return res;
13959 : : }
13960 : : }
13961 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
13962 : : {
13963 : 0 : {
13964 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
13965 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
13966 : 0 : if (res) return res;
13967 : : }
13968 : : }
13969 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
13970 : : {
13971 : 0 : {
13972 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
13973 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
13974 : 0 : if (res) return res;
13975 : : }
13976 : : }
13977 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
13978 : : {
13979 : 0 : {
13980 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
13981 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
13982 : 0 : if (res) return res;
13983 : : }
13984 : : }
13985 : : break;
13986 : : }
13987 : 14 : case GE_EXPR:
13988 : 14 : {
13989 : 14 : tree _q50 = TREE_OPERAND (_p1, 0);
13990 : 14 : tree _q51 = TREE_OPERAND (_p1, 1);
13991 : 14 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
13992 : : {
13993 : 0 : {
13994 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
13995 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
13996 : 0 : if (res) return res;
13997 : : }
13998 : : }
13999 : 14 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14000 : : {
14001 : 0 : {
14002 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51, _q50 };
14003 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
14004 : 0 : if (res) return res;
14005 : : }
14006 : : }
14007 : 14 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14008 : : {
14009 : 0 : {
14010 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50, _q51 };
14011 : 0 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
14012 : 0 : if (res) return res;
14013 : : }
14014 : : }
14015 : 14 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14016 : : {
14017 : 14 : {
14018 : 14 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51, _q50 };
14019 : 14 : tree res = generic_simplify_412 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
14020 : 14 : if (res) return res;
14021 : : }
14022 : : }
14023 : : break;
14024 : : }
14025 : : default:;
14026 : : }
14027 : : break;
14028 : : }
14029 : 36 : case LE_EXPR:
14030 : 36 : {
14031 : 36 : tree _q20 = TREE_OPERAND (_p0, 0);
14032 : 36 : tree _q21 = TREE_OPERAND (_p0, 1);
14033 : 36 : switch (TREE_CODE (_p1))
14034 : : {
14035 : 15 : case EQ_EXPR:
14036 : 15 : {
14037 : 15 : tree _q50 = TREE_OPERAND (_p1, 0);
14038 : 15 : tree _q51 = TREE_OPERAND (_p1, 1);
14039 : 15 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14040 : : {
14041 : 0 : if (tree_min_value (_q51))
14042 : : {
14043 : 0 : {
14044 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
14045 : 0 : tree res = generic_simplify_414 (loc, type, _p0, _p1, captures);
14046 : 0 : if (res) return res;
14047 : : }
14048 : : }
14049 : : }
14050 : 15 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14051 : : {
14052 : 0 : if (tree_max_value (_q51))
14053 : : {
14054 : 0 : {
14055 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _p1 };
14056 : 0 : tree res = generic_simplify_415 (loc, type, _p0, _p1, captures);
14057 : 0 : if (res) return res;
14058 : : }
14059 : : }
14060 : : }
14061 : : break;
14062 : : }
14063 : 0 : case NE_EXPR:
14064 : 0 : {
14065 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
14066 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
14067 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14068 : : {
14069 : 0 : if (tree_min_value (_q51))
14070 : : {
14071 : 0 : {
14072 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q20, _p0, _q21 };
14073 : 0 : tree res = generic_simplify_416 (loc, type, _p0, _p1, captures);
14074 : 0 : if (res) return res;
14075 : : }
14076 : : }
14077 : : }
14078 : : break;
14079 : : }
14080 : 36 : default:;
14081 : : }
14082 : 36 : switch (TREE_CODE (_q20))
14083 : : {
14084 : 0 : CASE_CONVERT:
14085 : 0 : {
14086 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
14087 : 0 : switch (TREE_CODE (_p1))
14088 : : {
14089 : 0 : case EQ_EXPR:
14090 : 0 : {
14091 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14092 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14093 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
14094 : : {
14095 : 0 : {
14096 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
14097 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
14098 : 0 : if (res) return res;
14099 : : }
14100 : : }
14101 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
14102 : : {
14103 : 0 : {
14104 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
14105 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
14106 : 0 : if (res) return res;
14107 : : }
14108 : : }
14109 : : break;
14110 : : }
14111 : 0 : case NE_EXPR:
14112 : 0 : {
14113 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14114 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14115 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
14116 : : {
14117 : 0 : {
14118 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
14119 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
14120 : 0 : if (res) return res;
14121 : : }
14122 : : }
14123 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
14124 : : {
14125 : 0 : {
14126 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
14127 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
14128 : 0 : if (res) return res;
14129 : : }
14130 : : }
14131 : : break;
14132 : : }
14133 : : default:;
14134 : : }
14135 : : break;
14136 : : }
14137 : 36 : default:;
14138 : : }
14139 : 36 : switch (TREE_CODE (_q21))
14140 : : {
14141 : 0 : CASE_CONVERT:
14142 : 0 : {
14143 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
14144 : 0 : switch (TREE_CODE (_p1))
14145 : : {
14146 : 0 : case EQ_EXPR:
14147 : 0 : {
14148 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14149 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14150 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
14151 : : {
14152 : 0 : {
14153 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
14154 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
14155 : 0 : if (res) return res;
14156 : : }
14157 : : }
14158 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
14159 : : {
14160 : 0 : {
14161 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
14162 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
14163 : 0 : if (res) return res;
14164 : : }
14165 : : }
14166 : : break;
14167 : : }
14168 : 0 : case NE_EXPR:
14169 : 0 : {
14170 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14171 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14172 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
14173 : : {
14174 : 0 : {
14175 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
14176 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
14177 : 0 : if (res) return res;
14178 : : }
14179 : : }
14180 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
14181 : : {
14182 : 0 : {
14183 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
14184 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
14185 : 0 : if (res) return res;
14186 : : }
14187 : : }
14188 : : break;
14189 : : }
14190 : : default:;
14191 : : }
14192 : : break;
14193 : : }
14194 : 36 : default:;
14195 : : }
14196 : 36 : switch (TREE_CODE (_p1))
14197 : : {
14198 : 15 : case EQ_EXPR:
14199 : 15 : {
14200 : 15 : tree _q50 = TREE_OPERAND (_p1, 0);
14201 : 15 : tree _q51 = TREE_OPERAND (_p1, 1);
14202 : 15 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14203 : : {
14204 : 0 : {
14205 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
14206 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
14207 : 0 : if (res) return res;
14208 : : }
14209 : : }
14210 : 15 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14211 : : {
14212 : 0 : {
14213 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
14214 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
14215 : 0 : if (res) return res;
14216 : : }
14217 : : }
14218 : 15 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14219 : : {
14220 : 0 : {
14221 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
14222 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
14223 : 0 : if (res) return res;
14224 : : }
14225 : : }
14226 : 15 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14227 : : {
14228 : 0 : {
14229 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
14230 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
14231 : 0 : if (res) return res;
14232 : : }
14233 : : }
14234 : : break;
14235 : : }
14236 : 0 : case NE_EXPR:
14237 : 0 : {
14238 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
14239 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
14240 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14241 : : {
14242 : 0 : {
14243 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
14244 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
14245 : 0 : if (res) return res;
14246 : : }
14247 : : }
14248 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14249 : : {
14250 : 0 : {
14251 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
14252 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
14253 : 0 : if (res) return res;
14254 : : }
14255 : : }
14256 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14257 : : {
14258 : 0 : {
14259 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
14260 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
14261 : 0 : if (res) return res;
14262 : : }
14263 : : }
14264 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14265 : : {
14266 : 0 : {
14267 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
14268 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
14269 : 0 : if (res) return res;
14270 : : }
14271 : : }
14272 : : break;
14273 : : }
14274 : 0 : case LT_EXPR:
14275 : 0 : {
14276 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
14277 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
14278 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14279 : : {
14280 : 0 : {
14281 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14282 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LT_EXPR, LE_EXPR);
14283 : 0 : if (res) return res;
14284 : : }
14285 : : }
14286 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14287 : : {
14288 : 0 : {
14289 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14290 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
14291 : 0 : if (res) return res;
14292 : : }
14293 : : }
14294 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14295 : : {
14296 : 0 : {
14297 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
14298 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR);
14299 : 0 : if (res) return res;
14300 : : }
14301 : : }
14302 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14303 : : {
14304 : 0 : {
14305 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
14306 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GT_EXPR, GE_EXPR);
14307 : 0 : if (res) return res;
14308 : : }
14309 : : }
14310 : : break;
14311 : : }
14312 : 5 : case LE_EXPR:
14313 : 5 : {
14314 : 5 : tree _q50 = TREE_OPERAND (_p1, 0);
14315 : 5 : tree _q51 = TREE_OPERAND (_p1, 1);
14316 : 5 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14317 : : {
14318 : 0 : {
14319 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14320 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LE_EXPR, LE_EXPR);
14321 : 0 : if (res) return res;
14322 : : }
14323 : : }
14324 : 5 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14325 : : {
14326 : 0 : {
14327 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14328 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GE_EXPR, LE_EXPR);
14329 : 0 : if (res) return res;
14330 : : }
14331 : : }
14332 : 5 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14333 : : {
14334 : 0 : {
14335 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
14336 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR);
14337 : 0 : if (res) return res;
14338 : : }
14339 : : }
14340 : 5 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14341 : : {
14342 : 5 : {
14343 : 5 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
14344 : 5 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GE_EXPR, GE_EXPR);
14345 : 5 : if (res) return res;
14346 : : }
14347 : : }
14348 : : break;
14349 : : }
14350 : 5 : case GT_EXPR:
14351 : 5 : {
14352 : 5 : tree _q50 = TREE_OPERAND (_p1, 0);
14353 : 5 : tree _q51 = TREE_OPERAND (_p1, 1);
14354 : 5 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14355 : : {
14356 : 0 : {
14357 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14358 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
14359 : 0 : if (res) return res;
14360 : : }
14361 : : }
14362 : 5 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14363 : : {
14364 : 0 : {
14365 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14366 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LT_EXPR, LE_EXPR);
14367 : 0 : if (res) return res;
14368 : : }
14369 : : }
14370 : 5 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14371 : : {
14372 : 0 : {
14373 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
14374 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GT_EXPR, GE_EXPR);
14375 : 0 : if (res) return res;
14376 : : }
14377 : : }
14378 : 5 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14379 : : {
14380 : 0 : {
14381 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
14382 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR);
14383 : 0 : if (res) return res;
14384 : : }
14385 : : }
14386 : : break;
14387 : : }
14388 : 0 : case GE_EXPR:
14389 : 0 : {
14390 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
14391 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
14392 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14393 : : {
14394 : 0 : {
14395 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14396 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GE_EXPR, LE_EXPR);
14397 : 0 : if (res) return res;
14398 : : }
14399 : : }
14400 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14401 : : {
14402 : 0 : {
14403 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14404 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LE_EXPR, LE_EXPR);
14405 : 0 : if (res) return res;
14406 : : }
14407 : : }
14408 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14409 : : {
14410 : 0 : {
14411 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
14412 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GE_EXPR, GE_EXPR);
14413 : 0 : if (res) return res;
14414 : : }
14415 : : }
14416 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14417 : : {
14418 : 0 : {
14419 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
14420 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR);
14421 : 0 : if (res) return res;
14422 : : }
14423 : : }
14424 : : break;
14425 : : }
14426 : : default:;
14427 : : }
14428 : : break;
14429 : : }
14430 : 53 : case GE_EXPR:
14431 : 53 : {
14432 : 53 : tree _q20 = TREE_OPERAND (_p0, 0);
14433 : 53 : tree _q21 = TREE_OPERAND (_p0, 1);
14434 : 53 : switch (TREE_CODE (_p1))
14435 : : {
14436 : 7 : case EQ_EXPR:
14437 : 7 : {
14438 : 7 : tree _q50 = TREE_OPERAND (_p1, 0);
14439 : 7 : tree _q51 = TREE_OPERAND (_p1, 1);
14440 : 7 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14441 : : {
14442 : 0 : if (tree_min_value (_q51))
14443 : : {
14444 : 0 : {
14445 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _p1 };
14446 : 0 : tree res = generic_simplify_414 (loc, type, _p0, _p1, captures);
14447 : 0 : if (res) return res;
14448 : : }
14449 : : }
14450 : : }
14451 : 7 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14452 : : {
14453 : 0 : if (tree_max_value (_q51))
14454 : : {
14455 : 0 : {
14456 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
14457 : 0 : tree res = generic_simplify_415 (loc, type, _p0, _p1, captures);
14458 : 0 : if (res) return res;
14459 : : }
14460 : : }
14461 : : }
14462 : : break;
14463 : : }
14464 : 0 : case NE_EXPR:
14465 : 0 : {
14466 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
14467 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
14468 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14469 : : {
14470 : 0 : if (tree_min_value (_q51))
14471 : : {
14472 : 0 : {
14473 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q21, _p0, _q20 };
14474 : 0 : tree res = generic_simplify_416 (loc, type, _p0, _p1, captures);
14475 : 0 : if (res) return res;
14476 : : }
14477 : : }
14478 : : }
14479 : : break;
14480 : : }
14481 : 53 : default:;
14482 : : }
14483 : 53 : switch (TREE_CODE (_q20))
14484 : : {
14485 : 4 : CASE_CONVERT:
14486 : 4 : {
14487 : 4 : tree _q30 = TREE_OPERAND (_q20, 0);
14488 : 4 : switch (TREE_CODE (_p1))
14489 : : {
14490 : 0 : case EQ_EXPR:
14491 : 0 : {
14492 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14493 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14494 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
14495 : : {
14496 : 0 : {
14497 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
14498 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
14499 : 0 : if (res) return res;
14500 : : }
14501 : : }
14502 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
14503 : : {
14504 : 0 : {
14505 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
14506 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
14507 : 0 : if (res) return res;
14508 : : }
14509 : : }
14510 : : break;
14511 : : }
14512 : 0 : case NE_EXPR:
14513 : 0 : {
14514 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14515 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14516 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
14517 : : {
14518 : 0 : {
14519 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q61, _p0, _q20, _q21 };
14520 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
14521 : 0 : if (res) return res;
14522 : : }
14523 : : }
14524 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
14525 : : {
14526 : 0 : {
14527 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q30, _q60, _p0, _q20, _q21 };
14528 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
14529 : 0 : if (res) return res;
14530 : : }
14531 : : }
14532 : : break;
14533 : : }
14534 : : default:;
14535 : : }
14536 : : break;
14537 : : }
14538 : 53 : default:;
14539 : : }
14540 : 53 : switch (TREE_CODE (_q21))
14541 : : {
14542 : 0 : CASE_CONVERT:
14543 : 0 : {
14544 : 0 : tree _q40 = TREE_OPERAND (_q21, 0);
14545 : 0 : switch (TREE_CODE (_p1))
14546 : : {
14547 : 0 : case EQ_EXPR:
14548 : 0 : {
14549 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14550 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14551 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
14552 : : {
14553 : 0 : {
14554 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
14555 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
14556 : 0 : if (res) return res;
14557 : : }
14558 : : }
14559 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
14560 : : {
14561 : 0 : {
14562 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
14563 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
14564 : 0 : if (res) return res;
14565 : : }
14566 : : }
14567 : : break;
14568 : : }
14569 : 0 : case NE_EXPR:
14570 : 0 : {
14571 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
14572 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
14573 : 0 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
14574 : : {
14575 : 0 : {
14576 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q61, _p0, _q21, _q20 };
14577 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
14578 : 0 : if (res) return res;
14579 : : }
14580 : : }
14581 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
14582 : : {
14583 : 0 : {
14584 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q40, _q60, _p0, _q21, _q20 };
14585 : 0 : tree res = generic_simplify_404 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
14586 : 0 : if (res) return res;
14587 : : }
14588 : : }
14589 : : break;
14590 : : }
14591 : : default:;
14592 : : }
14593 : : break;
14594 : : }
14595 : 53 : default:;
14596 : : }
14597 : 53 : switch (TREE_CODE (_p1))
14598 : : {
14599 : 7 : case EQ_EXPR:
14600 : 7 : {
14601 : 7 : tree _q50 = TREE_OPERAND (_p1, 0);
14602 : 7 : tree _q51 = TREE_OPERAND (_p1, 1);
14603 : 7 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14604 : : {
14605 : 0 : {
14606 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
14607 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
14608 : 0 : if (res) return res;
14609 : : }
14610 : : }
14611 : 7 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14612 : : {
14613 : 0 : {
14614 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
14615 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
14616 : 0 : if (res) return res;
14617 : : }
14618 : : }
14619 : 7 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14620 : : {
14621 : 0 : {
14622 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
14623 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, GE_EXPR, EQ_EXPR);
14624 : 0 : if (res) return res;
14625 : : }
14626 : : }
14627 : 7 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14628 : : {
14629 : 0 : {
14630 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
14631 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, LE_EXPR, EQ_EXPR);
14632 : 0 : if (res) return res;
14633 : : }
14634 : : }
14635 : : break;
14636 : : }
14637 : 0 : case NE_EXPR:
14638 : 0 : {
14639 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
14640 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
14641 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14642 : : {
14643 : 0 : {
14644 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q51, _p0, _q20, _q21 };
14645 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
14646 : 0 : if (res) return res;
14647 : : }
14648 : : }
14649 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14650 : : {
14651 : 0 : {
14652 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q51, _p0, _q21, _q20 };
14653 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
14654 : 0 : if (res) return res;
14655 : : }
14656 : : }
14657 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14658 : : {
14659 : 0 : {
14660 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q20, _q50, _p0, _q20, _q21 };
14661 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, GE_EXPR, NE_EXPR);
14662 : 0 : if (res) return res;
14663 : : }
14664 : : }
14665 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14666 : : {
14667 : 0 : {
14668 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q21, _q50, _p0, _q21, _q20 };
14669 : 0 : tree res = generic_simplify_405 (loc, type, _p0, _p1, captures, LE_EXPR, NE_EXPR);
14670 : 0 : if (res) return res;
14671 : : }
14672 : : }
14673 : : break;
14674 : : }
14675 : 0 : case LT_EXPR:
14676 : 0 : {
14677 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
14678 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
14679 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14680 : : {
14681 : 0 : {
14682 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14683 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR);
14684 : 0 : if (res) return res;
14685 : : }
14686 : : }
14687 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14688 : : {
14689 : 0 : {
14690 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14691 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GT_EXPR, GE_EXPR);
14692 : 0 : if (res) return res;
14693 : : }
14694 : : }
14695 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14696 : : {
14697 : 0 : {
14698 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
14699 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LT_EXPR, LE_EXPR);
14700 : 0 : if (res) return res;
14701 : : }
14702 : : }
14703 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14704 : : {
14705 : 0 : {
14706 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
14707 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
14708 : 0 : if (res) return res;
14709 : : }
14710 : : }
14711 : : break;
14712 : : }
14713 : 7 : case LE_EXPR:
14714 : 7 : {
14715 : 7 : tree _q50 = TREE_OPERAND (_p1, 0);
14716 : 7 : tree _q51 = TREE_OPERAND (_p1, 1);
14717 : 7 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14718 : : {
14719 : 7 : {
14720 : 7 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14721 : 7 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR);
14722 : 7 : if (res) return res;
14723 : : }
14724 : : }
14725 : 7 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14726 : : {
14727 : 0 : {
14728 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14729 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GE_EXPR, GE_EXPR);
14730 : 0 : if (res) return res;
14731 : : }
14732 : : }
14733 : 7 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14734 : : {
14735 : 0 : {
14736 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
14737 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LE_EXPR, LE_EXPR);
14738 : 0 : if (res) return res;
14739 : : }
14740 : : }
14741 : 7 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14742 : : {
14743 : 0 : {
14744 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
14745 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GE_EXPR, LE_EXPR);
14746 : 0 : if (res) return res;
14747 : : }
14748 : : }
14749 : : break;
14750 : : }
14751 : 0 : case GT_EXPR:
14752 : 0 : {
14753 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
14754 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
14755 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14756 : : {
14757 : 0 : {
14758 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14759 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GT_EXPR, GE_EXPR);
14760 : 0 : if (res) return res;
14761 : : }
14762 : : }
14763 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14764 : : {
14765 : 0 : {
14766 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14767 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LT_EXPR, GE_EXPR);
14768 : 0 : if (res) return res;
14769 : : }
14770 : : }
14771 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14772 : : {
14773 : 0 : {
14774 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
14775 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GT_EXPR, LE_EXPR);
14776 : 0 : if (res) return res;
14777 : : }
14778 : : }
14779 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14780 : : {
14781 : 0 : {
14782 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
14783 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LT_EXPR, LE_EXPR);
14784 : 0 : if (res) return res;
14785 : : }
14786 : : }
14787 : : break;
14788 : : }
14789 : 11 : case GE_EXPR:
14790 : 11 : {
14791 : 11 : tree _q50 = TREE_OPERAND (_p1, 0);
14792 : 11 : tree _q51 = TREE_OPERAND (_p1, 1);
14793 : 11 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14794 : : {
14795 : 7 : {
14796 : 7 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
14797 : 7 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GE_EXPR, GE_EXPR);
14798 : 7 : if (res) return res;
14799 : : }
14800 : : }
14801 : 11 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14802 : : {
14803 : 0 : {
14804 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
14805 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LE_EXPR, GE_EXPR);
14806 : 0 : if (res) return res;
14807 : : }
14808 : : }
14809 : 11 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14810 : : {
14811 : 4 : {
14812 : 4 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
14813 : 4 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, GE_EXPR, LE_EXPR);
14814 : 4 : if (res) return res;
14815 : : }
14816 : : }
14817 : 11 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14818 : : {
14819 : 0 : {
14820 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
14821 : 0 : tree res = generic_simplify_406 (loc, type, _p0, _p1, captures, LE_EXPR, LE_EXPR);
14822 : 0 : if (res) return res;
14823 : : }
14824 : : }
14825 : : break;
14826 : : }
14827 : : default:;
14828 : : }
14829 : : break;
14830 : : }
14831 : 31983 : case LSHIFT_EXPR:
14832 : 31983 : {
14833 : 31983 : tree _q20 = TREE_OPERAND (_p0, 0);
14834 : 31983 : tree _q21 = TREE_OPERAND (_p0, 1);
14835 : 31983 : switch (TREE_CODE (_q20))
14836 : : {
14837 : 5420 : case INTEGER_CST:
14838 : 5420 : {
14839 : 5420 : if (integer_onep (_p1))
14840 : : {
14841 : 44 : {
14842 : 44 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
14843 : 44 : if ((wi::to_wide (captures[0]) & 1) != 0
14844 : : )
14845 : : {
14846 : 40 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1525;
14847 : 40 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1525;
14848 : 40 : {
14849 : 40 : tree res_op0;
14850 : 40 : {
14851 : 40 : tree _o1[2], _r1;
14852 : 40 : _o1[0] = captures[1];
14853 : 40 : _o1[1] = build_zero_cst (TREE_TYPE (captures[1]));
14854 : 40 : _r1 = fold_build2_loc (loc, EQ_EXPR, boolean_type_node, _o1[0], _o1[1]);
14855 : 40 : res_op0 = _r1;
14856 : : }
14857 : 40 : tree _r;
14858 : 40 : _r = fold_build1_loc (loc, NOP_EXPR, type, res_op0);
14859 : 40 : if (TREE_SIDE_EFFECTS (captures[0]))
14860 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
14861 : 40 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 912, __FILE__, __LINE__, true);
14862 : 40 : return _r;
14863 : : }
14864 : 0 : next_after_fail1525:;
14865 : : }
14866 : : else
14867 : : {
14868 : 4 : if (TREE_SIDE_EFFECTS (_p1)) goto next_after_fail1526;
14869 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1526;
14870 : 4 : {
14871 : 4 : tree _r;
14872 : 4 : _r = build_zero_cst (type);
14873 : 4 : if (TREE_SIDE_EFFECTS (captures[0]))
14874 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[0]), _r);
14875 : 4 : if (TREE_SIDE_EFFECTS (captures[1]))
14876 : 0 : _r = build2_loc (loc, COMPOUND_EXPR, type, fold_ignored_result (captures[1]), _r);
14877 : 4 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 913, __FILE__, __LINE__, true);
14878 : 4 : return _r;
14879 : : }
14880 : 0 : next_after_fail1526:;
14881 : : }
14882 : : }
14883 : : }
14884 : : break;
14885 : : }
14886 : 4224 : CASE_CONVERT:
14887 : 4224 : {
14888 : 4224 : tree _q30 = TREE_OPERAND (_q20, 0);
14889 : 4224 : switch (TREE_CODE (_q21))
14890 : : {
14891 : 4137 : case INTEGER_CST:
14892 : 4137 : {
14893 : 4137 : switch (TREE_CODE (_p1))
14894 : : {
14895 : 4137 : case INTEGER_CST:
14896 : 4137 : {
14897 : 4137 : {
14898 : 4137 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q30, _q21, _p1 };
14899 : 4137 : tree res = generic_simplify_417 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
14900 : 4137 : if (res) return res;
14901 : : }
14902 : 3520 : break;
14903 : : }
14904 : : default:;
14905 : : }
14906 : : break;
14907 : : }
14908 : : default:;
14909 : : }
14910 : : break;
14911 : : }
14912 : 31322 : default:;
14913 : : }
14914 : 31322 : switch (TREE_CODE (_q21))
14915 : : {
14916 : 25573 : case INTEGER_CST:
14917 : 25573 : {
14918 : 25573 : switch (TREE_CODE (_p1))
14919 : : {
14920 : 25536 : case INTEGER_CST:
14921 : 25536 : {
14922 : 25536 : {
14923 : 25536 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q20, _q21, _p1 };
14924 : 25536 : tree res = generic_simplify_418 (loc, type, _p0, _p1, captures, LSHIFT_EXPR);
14925 : 25536 : if (res) return res;
14926 : : }
14927 : 15162 : break;
14928 : : }
14929 : : default:;
14930 : : }
14931 : : break;
14932 : : }
14933 : : default:;
14934 : : }
14935 : : break;
14936 : : }
14937 : 60453 : case RSHIFT_EXPR:
14938 : 60453 : {
14939 : 60453 : tree _q20 = TREE_OPERAND (_p0, 0);
14940 : 60453 : tree _q21 = TREE_OPERAND (_p0, 1);
14941 : 60453 : switch (TREE_CODE (_q20))
14942 : : {
14943 : 39153 : CASE_CONVERT:
14944 : 39153 : {
14945 : 39153 : tree _q30 = TREE_OPERAND (_q20, 0);
14946 : 39153 : switch (TREE_CODE (_q21))
14947 : : {
14948 : 38428 : case INTEGER_CST:
14949 : 38428 : {
14950 : 38428 : switch (TREE_CODE (_p1))
14951 : : {
14952 : 38428 : case INTEGER_CST:
14953 : 38428 : {
14954 : 38428 : {
14955 : 38428 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q30, _q21, _p1 };
14956 : 38428 : tree res = generic_simplify_417 (loc, type, _p0, _p1, captures, RSHIFT_EXPR);
14957 : 38428 : if (res) return res;
14958 : : }
14959 : 38183 : break;
14960 : : }
14961 : : default:;
14962 : : }
14963 : : break;
14964 : : }
14965 : 38908 : default:;
14966 : : }
14967 : 38908 : switch (TREE_CODE (_q30))
14968 : : {
14969 : 22 : case CALL_EXPR:
14970 : 22 : switch (get_call_combined_fn (_q30))
14971 : : {
14972 : 0 : case CFN_BUILT_IN_BSWAP128:
14973 : 0 : if (call_expr_nargs (_q30) == 1)
14974 : : {
14975 : 0 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
14976 : 0 : switch (TREE_CODE (_q21))
14977 : : {
14978 : 0 : case INTEGER_CST:
14979 : 0 : {
14980 : 0 : switch (TREE_CODE (_p1))
14981 : : {
14982 : 0 : case INTEGER_CST:
14983 : 0 : {
14984 : 0 : {
14985 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q30, _q40, _q21, _p1 };
14986 : 0 : tree res = generic_simplify_400 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP128);
14987 : 0 : if (res) return res;
14988 : : }
14989 : 0 : break;
14990 : : }
14991 : : default:;
14992 : : }
14993 : : break;
14994 : : }
14995 : : default:;
14996 : : }
14997 : : }
14998 : : break;
14999 : 1 : case CFN_BUILT_IN_BSWAP16:
15000 : 1 : if (call_expr_nargs (_q30) == 1)
15001 : : {
15002 : 1 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
15003 : 1 : switch (TREE_CODE (_q21))
15004 : : {
15005 : 0 : case INTEGER_CST:
15006 : 0 : {
15007 : 0 : switch (TREE_CODE (_p1))
15008 : : {
15009 : 0 : case INTEGER_CST:
15010 : 0 : {
15011 : 0 : {
15012 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q30, _q40, _q21, _p1 };
15013 : 0 : tree res = generic_simplify_400 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP16);
15014 : 0 : if (res) return res;
15015 : : }
15016 : 0 : break;
15017 : : }
15018 : : default:;
15019 : : }
15020 : : break;
15021 : : }
15022 : : default:;
15023 : : }
15024 : : }
15025 : : break;
15026 : 9 : case CFN_BUILT_IN_BSWAP32:
15027 : 9 : if (call_expr_nargs (_q30) == 1)
15028 : : {
15029 : 9 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
15030 : 9 : switch (TREE_CODE (_q21))
15031 : : {
15032 : 9 : case INTEGER_CST:
15033 : 9 : {
15034 : 9 : switch (TREE_CODE (_p1))
15035 : : {
15036 : 9 : case INTEGER_CST:
15037 : 9 : {
15038 : 9 : {
15039 : 9 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q30, _q40, _q21, _p1 };
15040 : 9 : tree res = generic_simplify_400 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP32);
15041 : 9 : if (res) return res;
15042 : : }
15043 : 0 : break;
15044 : : }
15045 : : default:;
15046 : : }
15047 : : break;
15048 : : }
15049 : : default:;
15050 : : }
15051 : : }
15052 : : break;
15053 : 12 : case CFN_BUILT_IN_BSWAP64:
15054 : 12 : if (call_expr_nargs (_q30) == 1)
15055 : : {
15056 : 12 : tree _q40 = CALL_EXPR_ARG (_q30, 0);
15057 : 12 : switch (TREE_CODE (_q21))
15058 : : {
15059 : 12 : case INTEGER_CST:
15060 : 12 : {
15061 : 12 : switch (TREE_CODE (_p1))
15062 : : {
15063 : 12 : case INTEGER_CST:
15064 : 12 : {
15065 : 12 : {
15066 : 12 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q30, _q40, _q21, _p1 };
15067 : 12 : tree res = generic_simplify_400 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP64);
15068 : 12 : if (res) return res;
15069 : : }
15070 : 0 : break;
15071 : : }
15072 : : default:;
15073 : : }
15074 : : break;
15075 : : }
15076 : : default:;
15077 : : }
15078 : : }
15079 : : break;
15080 : : default:;
15081 : : }
15082 : : break;
15083 : : default:;
15084 : : }
15085 : : break;
15086 : : }
15087 : 60187 : default:;
15088 : : }
15089 : 60187 : switch (TREE_CODE (_q21))
15090 : : {
15091 : 46606 : case INTEGER_CST:
15092 : 46606 : {
15093 : 46606 : switch (TREE_CODE (_p1))
15094 : : {
15095 : 46465 : case INTEGER_CST:
15096 : 46465 : {
15097 : 46465 : {
15098 : 46465 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q20, _q21, _p1 };
15099 : 46465 : tree res = generic_simplify_418 (loc, type, _p0, _p1, captures, RSHIFT_EXPR);
15100 : 46465 : if (res) return res;
15101 : : }
15102 : 44941 : break;
15103 : : }
15104 : : default:;
15105 : : }
15106 : : break;
15107 : : }
15108 : 58663 : default:;
15109 : : }
15110 : 58663 : switch (TREE_CODE (_q20))
15111 : : {
15112 : 140 : case CALL_EXPR:
15113 : 140 : switch (get_call_combined_fn (_q20))
15114 : : {
15115 : 0 : case CFN_BUILT_IN_BSWAP128:
15116 : 0 : if (call_expr_nargs (_q20) == 1)
15117 : : {
15118 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
15119 : 0 : switch (TREE_CODE (_q21))
15120 : : {
15121 : 0 : case INTEGER_CST:
15122 : 0 : {
15123 : 0 : switch (TREE_CODE (_p1))
15124 : : {
15125 : 0 : case INTEGER_CST:
15126 : 0 : {
15127 : 0 : {
15128 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _p1 };
15129 : 0 : tree res = generic_simplify_400 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP128);
15130 : 0 : if (res) return res;
15131 : : }
15132 : 0 : break;
15133 : : }
15134 : : default:;
15135 : : }
15136 : : break;
15137 : : }
15138 : : default:;
15139 : : }
15140 : : }
15141 : : break;
15142 : 0 : case CFN_BUILT_IN_BSWAP16:
15143 : 0 : if (call_expr_nargs (_q20) == 1)
15144 : : {
15145 : 0 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
15146 : 0 : switch (TREE_CODE (_q21))
15147 : : {
15148 : 0 : case INTEGER_CST:
15149 : 0 : {
15150 : 0 : switch (TREE_CODE (_p1))
15151 : : {
15152 : 0 : case INTEGER_CST:
15153 : 0 : {
15154 : 0 : {
15155 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _p1 };
15156 : 0 : tree res = generic_simplify_400 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP16);
15157 : 0 : if (res) return res;
15158 : : }
15159 : 0 : break;
15160 : : }
15161 : : default:;
15162 : : }
15163 : : break;
15164 : : }
15165 : : default:;
15166 : : }
15167 : : }
15168 : : break;
15169 : 60 : case CFN_BUILT_IN_BSWAP32:
15170 : 60 : if (call_expr_nargs (_q20) == 1)
15171 : : {
15172 : 60 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
15173 : 60 : switch (TREE_CODE (_q21))
15174 : : {
15175 : 59 : case INTEGER_CST:
15176 : 59 : {
15177 : 59 : switch (TREE_CODE (_p1))
15178 : : {
15179 : 59 : case INTEGER_CST:
15180 : 59 : {
15181 : 59 : {
15182 : 59 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _p1 };
15183 : 59 : tree res = generic_simplify_400 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP32);
15184 : 59 : if (res) return res;
15185 : : }
15186 : 0 : break;
15187 : : }
15188 : : default:;
15189 : : }
15190 : : break;
15191 : : }
15192 : : default:;
15193 : : }
15194 : : }
15195 : : break;
15196 : 73 : case CFN_BUILT_IN_BSWAP64:
15197 : 73 : if (call_expr_nargs (_q20) == 1)
15198 : : {
15199 : 73 : tree _q30 = CALL_EXPR_ARG (_q20, 0);
15200 : 73 : switch (TREE_CODE (_q21))
15201 : : {
15202 : 73 : case INTEGER_CST:
15203 : 73 : {
15204 : 73 : switch (TREE_CODE (_p1))
15205 : : {
15206 : 73 : case INTEGER_CST:
15207 : 73 : {
15208 : 73 : {
15209 : 73 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _p1 };
15210 : 73 : tree res = generic_simplify_400 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP64);
15211 : 73 : if (res) return res;
15212 : : }
15213 : 0 : break;
15214 : : }
15215 : : default:;
15216 : : }
15217 : : break;
15218 : : }
15219 : : default:;
15220 : : }
15221 : : }
15222 : : break;
15223 : : default:;
15224 : : }
15225 : : break;
15226 : : default:;
15227 : : }
15228 : : break;
15229 : : }
15230 : 71 : case VEC_COND_EXPR:
15231 : 71 : {
15232 : 71 : tree _q20 = TREE_OPERAND (_p0, 0);
15233 : 71 : tree _q21 = TREE_OPERAND (_p0, 1);
15234 : 71 : tree _q22 = TREE_OPERAND (_p0, 2);
15235 : 71 : switch (TREE_CODE (_p1))
15236 : : {
15237 : 54 : case VEC_COND_EXPR:
15238 : 54 : {
15239 : 54 : tree _q60 = TREE_OPERAND (_p1, 0);
15240 : 54 : tree _q61 = TREE_OPERAND (_p1, 1);
15241 : 54 : tree _q62 = TREE_OPERAND (_p1, 2);
15242 : 54 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
15243 : : {
15244 : 0 : {
15245 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
15246 : 0 : if (TREE_CODE_CLASS (BIT_AND_EXPR) != tcc_comparison
15247 : : || types_match (type, TREE_TYPE (captures[2]))
15248 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
15249 : : || (optimize_vectors_before_lowering_p ()
15250 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
15251 : : TREE_TYPE (captures[1]), ERROR_MARK))
15252 : : )
15253 : : {
15254 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1527;
15255 : 0 : {
15256 : 0 : tree res_op0;
15257 : 0 : res_op0 = captures[1];
15258 : 0 : tree res_op1;
15259 : 0 : {
15260 : 0 : tree _o1[2], _r1;
15261 : 0 : _o1[0] = captures[2];
15262 : 0 : _o1[1] = captures[5];
15263 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
15264 : 0 : if (EXPR_P (_r1))
15265 : 0 : goto next_after_fail1527;
15266 : 0 : res_op1 = _r1;
15267 : : }
15268 : 0 : tree res_op2;
15269 : 0 : {
15270 : 0 : tree _o1[2], _r1;
15271 : 0 : _o1[0] = captures[3];
15272 : 0 : _o1[1] = captures[6];
15273 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
15274 : 0 : if (EXPR_P (_r1))
15275 : 0 : goto next_after_fail1527;
15276 : 0 : res_op2 = _r1;
15277 : : }
15278 : 0 : tree _r;
15279 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
15280 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 793, __FILE__, __LINE__, true);
15281 : 0 : return _r;
15282 : : }
15283 : 0 : next_after_fail1527:;
15284 : : }
15285 : : }
15286 : : }
15287 : : break;
15288 : : }
15289 : 71 : default:;
15290 : : }
15291 : 71 : {
15292 : 71 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
15293 : 71 : if (TREE_CODE_CLASS (BIT_AND_EXPR) != tcc_comparison
15294 : : || types_match (type, TREE_TYPE (captures[2]))
15295 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]), ERROR_MARK)
15296 : : || (optimize_vectors_before_lowering_p ()
15297 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]),
15298 : : TREE_TYPE (captures[1]), ERROR_MARK))
15299 : : )
15300 : : {
15301 : 71 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1528;
15302 : 71 : {
15303 : 71 : if (! tree_invariant_p (captures[4])) goto next_after_fail1528;
15304 : 14 : tree res_op0;
15305 : 14 : res_op0 = captures[1];
15306 : 14 : tree res_op1;
15307 : 14 : {
15308 : 14 : tree _o1[2], _r1;
15309 : 14 : _o1[0] = captures[2];
15310 : 14 : _o1[1] = unshare_expr (captures[4]);
15311 : 14 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
15312 : 14 : if (EXPR_P (_r1))
15313 : 0 : goto next_after_fail1528;
15314 : 14 : res_op1 = _r1;
15315 : : }
15316 : 14 : tree res_op2;
15317 : 14 : {
15318 : 14 : tree _o1[2], _r1;
15319 : 14 : _o1[0] = captures[3];
15320 : 14 : _o1[1] = captures[4];
15321 : 14 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
15322 : 14 : if (EXPR_P (_r1))
15323 : 0 : goto next_after_fail1528;
15324 : 14 : res_op2 = _r1;
15325 : : }
15326 : 14 : tree _r;
15327 : 14 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
15328 : 14 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 794, __FILE__, __LINE__, true);
15329 : 14 : return _r;
15330 : : }
15331 : 57 : next_after_fail1528:;
15332 : : }
15333 : : }
15334 : 57 : break;
15335 : : }
15336 : 128444 : case CALL_EXPR:
15337 : 128444 : switch (get_call_combined_fn (_p0))
15338 : : {
15339 : 0 : case CFN_BUILT_IN_BSWAP128:
15340 : 0 : if (call_expr_nargs (_p0) == 1)
15341 : : {
15342 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
15343 : 0 : switch (TREE_CODE (_p1))
15344 : : {
15345 : 0 : case INTEGER_CST:
15346 : 0 : {
15347 : 0 : {
15348 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
15349 : 0 : tree res = generic_simplify_401 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP128);
15350 : 0 : if (res) return res;
15351 : : }
15352 : 0 : break;
15353 : : }
15354 : : default:;
15355 : : }
15356 : : }
15357 : : break;
15358 : 0 : case CFN_BUILT_IN_BSWAP16:
15359 : 0 : if (call_expr_nargs (_p0) == 1)
15360 : : {
15361 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
15362 : 0 : switch (TREE_CODE (_p1))
15363 : : {
15364 : 0 : case INTEGER_CST:
15365 : 0 : {
15366 : 0 : {
15367 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
15368 : 0 : tree res = generic_simplify_401 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP16);
15369 : 0 : if (res) return res;
15370 : : }
15371 : 0 : break;
15372 : : }
15373 : : default:;
15374 : : }
15375 : : }
15376 : : break;
15377 : 10 : case CFN_BUILT_IN_BSWAP32:
15378 : 10 : if (call_expr_nargs (_p0) == 1)
15379 : : {
15380 : 10 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
15381 : 10 : switch (TREE_CODE (_p1))
15382 : : {
15383 : 9 : case INTEGER_CST:
15384 : 9 : {
15385 : 9 : {
15386 : 9 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
15387 : 9 : tree res = generic_simplify_401 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP32);
15388 : 9 : if (res) return res;
15389 : : }
15390 : 1 : break;
15391 : : }
15392 : : default:;
15393 : : }
15394 : : }
15395 : : break;
15396 : 8 : case CFN_BUILT_IN_BSWAP64:
15397 : 8 : if (call_expr_nargs (_p0) == 1)
15398 : : {
15399 : 8 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
15400 : 8 : switch (TREE_CODE (_p1))
15401 : : {
15402 : 7 : case INTEGER_CST:
15403 : 7 : {
15404 : 7 : {
15405 : 7 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
15406 : 7 : tree res = generic_simplify_401 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_BSWAP64);
15407 : 7 : if (res) return res;
15408 : : }
15409 : 1 : break;
15410 : : }
15411 : : default:;
15412 : : }
15413 : : }
15414 : : break;
15415 : : default:;
15416 : : }
15417 : : break;
15418 : 5390387 : default:;
15419 : : }
15420 : 5390387 : switch (TREE_CODE (_p1))
15421 : : {
15422 : 55 : case VEC_COND_EXPR:
15423 : 55 : {
15424 : 55 : tree _q30 = TREE_OPERAND (_p1, 0);
15425 : 55 : tree _q31 = TREE_OPERAND (_p1, 1);
15426 : 55 : tree _q32 = TREE_OPERAND (_p1, 2);
15427 : 55 : {
15428 : 55 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
15429 : 55 : if (TREE_CODE_CLASS (BIT_AND_EXPR) != tcc_comparison
15430 : : || types_match (type, TREE_TYPE (captures[3]))
15431 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]), ERROR_MARK)
15432 : : || (optimize_vectors_before_lowering_p ()
15433 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]),
15434 : : TREE_TYPE (captures[2]), ERROR_MARK))
15435 : : )
15436 : : {
15437 : 55 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1529;
15438 : 55 : {
15439 : 55 : if (! tree_invariant_p (captures[0])) goto next_after_fail1529;
15440 : 0 : tree res_op0;
15441 : 0 : res_op0 = captures[2];
15442 : 0 : tree res_op1;
15443 : 0 : {
15444 : 0 : tree _o1[2], _r1;
15445 : 0 : _o1[0] = unshare_expr (captures[0]);
15446 : 0 : _o1[1] = captures[3];
15447 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
15448 : 0 : if (EXPR_P (_r1))
15449 : 0 : goto next_after_fail1529;
15450 : 0 : res_op1 = _r1;
15451 : : }
15452 : 0 : tree res_op2;
15453 : 0 : {
15454 : 0 : tree _o1[2], _r1;
15455 : 0 : _o1[0] = captures[0];
15456 : 0 : _o1[1] = captures[4];
15457 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
15458 : 0 : if (EXPR_P (_r1))
15459 : 0 : goto next_after_fail1529;
15460 : 0 : res_op2 = _r1;
15461 : : }
15462 : 0 : tree _r;
15463 : 0 : _r = fold_build3_loc (loc, VEC_COND_EXPR, type, res_op0, res_op1, res_op2);
15464 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 795, __FILE__, __LINE__, true);
15465 : 0 : return _r;
15466 : : }
15467 : 55 : next_after_fail1529:;
15468 : : }
15469 : : }
15470 : 55 : break;
15471 : : }
15472 : 5390387 : default:;
15473 : : }
15474 : 5390387 : switch (TREE_CODE (_p0))
15475 : : {
15476 : 0 : case ORDERED_EXPR:
15477 : 0 : {
15478 : 0 : tree _q20 = TREE_OPERAND (_p0, 0);
15479 : 0 : tree _q21 = TREE_OPERAND (_p0, 1);
15480 : 0 : if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
15481 : : {
15482 : 0 : switch (TREE_CODE (_p1))
15483 : : {
15484 : 0 : case ORDERED_EXPR:
15485 : 0 : {
15486 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15487 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15488 : 0 : if ((_q51 == _q50 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q50, 0) && types_match (_q51, _q50)))
15489 : : {
15490 : 0 : {
15491 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q50 };
15492 : 0 : if (types_match (captures[0], captures[1])
15493 : : )
15494 : : {
15495 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1530;
15496 : 0 : {
15497 : 0 : tree res_op0;
15498 : 0 : res_op0 = captures[0];
15499 : 0 : tree res_op1;
15500 : 0 : res_op1 = captures[1];
15501 : 0 : tree _r;
15502 : 0 : _r = fold_build2_loc (loc, ORDERED_EXPR, type, res_op0, res_op1);
15503 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 914, __FILE__, __LINE__, true);
15504 : 0 : return _r;
15505 : : }
15506 : 0 : next_after_fail1530:;
15507 : : }
15508 : : }
15509 : : }
15510 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15511 : : {
15512 : 0 : {
15513 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p1, _q51 };
15514 : 0 : tree res = generic_simplify_419 (loc, type, _p0, _p1, captures);
15515 : 0 : if (res) return res;
15516 : : }
15517 : : }
15518 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15519 : : {
15520 : 0 : {
15521 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p1, _q50 };
15522 : 0 : tree res = generic_simplify_419 (loc, type, _p0, _p1, captures);
15523 : 0 : if (res) return res;
15524 : : }
15525 : : }
15526 : : break;
15527 : : }
15528 : : default:;
15529 : : }
15530 : : }
15531 : 0 : switch (TREE_CODE (_p1))
15532 : : {
15533 : 0 : case ORDERED_EXPR:
15534 : 0 : {
15535 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15536 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15537 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15538 : : {
15539 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15540 : : {
15541 : 0 : {
15542 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p0, _q21 };
15543 : 0 : tree res = generic_simplify_420 (loc, type, _p0, _p1, captures);
15544 : 0 : if (res) return res;
15545 : : }
15546 : : }
15547 : : }
15548 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15549 : : {
15550 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15551 : : {
15552 : 0 : {
15553 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _p0, _q20 };
15554 : 0 : tree res = generic_simplify_420 (loc, type, _p0, _p1, captures);
15555 : 0 : if (res) return res;
15556 : : }
15557 : : }
15558 : : }
15559 : : break;
15560 : : }
15561 : : default:;
15562 : : }
15563 : : break;
15564 : : }
15565 : 381105 : case MINUS_EXPR:
15566 : 381105 : {
15567 : 381105 : tree _q20 = TREE_OPERAND (_p0, 0);
15568 : 381105 : tree _q21 = TREE_OPERAND (_p0, 1);
15569 : 381105 : switch (TREE_CODE (_q20))
15570 : : {
15571 : 328770 : CASE_CONVERT:
15572 : 328770 : {
15573 : 328770 : tree _q30 = TREE_OPERAND (_q20, 0);
15574 : 328770 : switch (TREE_CODE (_q21))
15575 : : {
15576 : 324910 : CASE_CONVERT:
15577 : 324910 : {
15578 : 324910 : tree _q50 = TREE_OPERAND (_q21, 0);
15579 : 324910 : switch (TREE_CODE (_p1))
15580 : : {
15581 : 324886 : case INTEGER_CST:
15582 : 324886 : {
15583 : 324886 : {
15584 : 324886 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1 };
15585 : 324886 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures, MINUS_EXPR);
15586 : 324886 : if (res) return res;
15587 : : }
15588 : 324876 : break;
15589 : : }
15590 : : default:;
15591 : : }
15592 : : break;
15593 : : }
15594 : : default:;
15595 : : }
15596 : : break;
15597 : : }
15598 : : default:;
15599 : : }
15600 : : break;
15601 : : }
15602 : 144012 : case PLUS_EXPR:
15603 : 144012 : {
15604 : 144012 : tree _q20 = TREE_OPERAND (_p0, 0);
15605 : 144012 : tree _q21 = TREE_OPERAND (_p0, 1);
15606 : 144012 : switch (TREE_CODE (_q20))
15607 : : {
15608 : 35759 : CASE_CONVERT:
15609 : 35759 : {
15610 : 35759 : tree _q30 = TREE_OPERAND (_q20, 0);
15611 : 35759 : switch (TREE_CODE (_q21))
15612 : : {
15613 : 113 : CASE_CONVERT:
15614 : 113 : {
15615 : 113 : tree _q50 = TREE_OPERAND (_q21, 0);
15616 : 113 : switch (TREE_CODE (_p1))
15617 : : {
15618 : 56 : case INTEGER_CST:
15619 : 56 : {
15620 : 56 : {
15621 : 56 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _q50, _p1 };
15622 : 56 : tree res = generic_simplify_421 (loc, type, _p0, _p1, captures, PLUS_EXPR);
15623 : 56 : if (res) return res;
15624 : : }
15625 : 41 : break;
15626 : : }
15627 : : default:;
15628 : : }
15629 : : break;
15630 : : }
15631 : : default:;
15632 : : }
15633 : : break;
15634 : : }
15635 : : default:;
15636 : : }
15637 : : break;
15638 : : }
15639 : 62 : case LT_EXPR:
15640 : 62 : {
15641 : 62 : tree _q20 = TREE_OPERAND (_p0, 0);
15642 : 62 : tree _q21 = TREE_OPERAND (_p0, 1);
15643 : 62 : switch (TREE_CODE (_p1))
15644 : : {
15645 : 8 : case LT_EXPR:
15646 : 8 : {
15647 : 8 : tree _q50 = TREE_OPERAND (_p1, 0);
15648 : 8 : tree _q51 = TREE_OPERAND (_p1, 1);
15649 : 8 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15650 : : {
15651 : 0 : {
15652 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
15653 : 0 : tree res = generic_simplify_136 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LT_EXPR, MIN_EXPR);
15654 : 0 : if (res) return res;
15655 : : }
15656 : : }
15657 : 8 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15658 : : {
15659 : 0 : {
15660 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
15661 : 0 : tree res = generic_simplify_136 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GT_EXPR, MAX_EXPR);
15662 : 0 : if (res) return res;
15663 : : }
15664 : : }
15665 : : break;
15666 : : }
15667 : 1 : case GT_EXPR:
15668 : 1 : {
15669 : 1 : tree _q50 = TREE_OPERAND (_p1, 0);
15670 : 1 : tree _q51 = TREE_OPERAND (_p1, 1);
15671 : 1 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15672 : : {
15673 : 0 : {
15674 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
15675 : 0 : tree res = generic_simplify_136 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LT_EXPR, MIN_EXPR);
15676 : 0 : if (res) return res;
15677 : : }
15678 : : }
15679 : 1 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15680 : : {
15681 : 0 : {
15682 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
15683 : 0 : tree res = generic_simplify_136 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GT_EXPR, MAX_EXPR);
15684 : 0 : if (res) return res;
15685 : : }
15686 : : }
15687 : : break;
15688 : : }
15689 : : default:;
15690 : : }
15691 : : break;
15692 : : }
15693 : 36 : case LE_EXPR:
15694 : 36 : {
15695 : 36 : tree _q20 = TREE_OPERAND (_p0, 0);
15696 : 36 : tree _q21 = TREE_OPERAND (_p0, 1);
15697 : 36 : switch (TREE_CODE (_p1))
15698 : : {
15699 : 5 : case LE_EXPR:
15700 : 5 : {
15701 : 5 : tree _q50 = TREE_OPERAND (_p1, 0);
15702 : 5 : tree _q51 = TREE_OPERAND (_p1, 1);
15703 : 5 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15704 : : {
15705 : 0 : {
15706 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
15707 : 0 : tree res = generic_simplify_136 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LE_EXPR, MIN_EXPR);
15708 : 0 : if (res) return res;
15709 : : }
15710 : : }
15711 : 5 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15712 : : {
15713 : 5 : {
15714 : 5 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
15715 : 5 : tree res = generic_simplify_136 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GE_EXPR, MAX_EXPR);
15716 : 5 : if (res) return res;
15717 : : }
15718 : : }
15719 : : break;
15720 : : }
15721 : 0 : case GE_EXPR:
15722 : 0 : {
15723 : 0 : tree _q50 = TREE_OPERAND (_p1, 0);
15724 : 0 : tree _q51 = TREE_OPERAND (_p1, 1);
15725 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15726 : : {
15727 : 0 : {
15728 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
15729 : 0 : tree res = generic_simplify_136 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LE_EXPR, MIN_EXPR);
15730 : 0 : if (res) return res;
15731 : : }
15732 : : }
15733 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15734 : : {
15735 : 0 : {
15736 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
15737 : 0 : tree res = generic_simplify_136 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GE_EXPR, MAX_EXPR);
15738 : 0 : if (res) return res;
15739 : : }
15740 : : }
15741 : : break;
15742 : : }
15743 : : default:;
15744 : : }
15745 : : break;
15746 : : }
15747 : 328 : case GT_EXPR:
15748 : 328 : {
15749 : 328 : tree _q20 = TREE_OPERAND (_p0, 0);
15750 : 328 : tree _q21 = TREE_OPERAND (_p0, 1);
15751 : 328 : switch (TREE_CODE (_p1))
15752 : : {
15753 : 82 : case GT_EXPR:
15754 : 82 : {
15755 : 82 : tree _q50 = TREE_OPERAND (_p1, 0);
15756 : 82 : tree _q51 = TREE_OPERAND (_p1, 1);
15757 : 82 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15758 : : {
15759 : 0 : {
15760 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
15761 : 0 : tree res = generic_simplify_136 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GT_EXPR, MAX_EXPR);
15762 : 0 : if (res) return res;
15763 : : }
15764 : : }
15765 : 82 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15766 : : {
15767 : 32 : {
15768 : 32 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
15769 : 32 : tree res = generic_simplify_136 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LT_EXPR, MIN_EXPR);
15770 : 32 : if (res) return res;
15771 : : }
15772 : : }
15773 : : break;
15774 : : }
15775 : 67 : case LT_EXPR:
15776 : 67 : {
15777 : 67 : tree _q50 = TREE_OPERAND (_p1, 0);
15778 : 67 : tree _q51 = TREE_OPERAND (_p1, 1);
15779 : 67 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15780 : : {
15781 : 0 : {
15782 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
15783 : 0 : tree res = generic_simplify_136 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GT_EXPR, MAX_EXPR);
15784 : 0 : if (res) return res;
15785 : : }
15786 : : }
15787 : 67 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15788 : : {
15789 : 0 : {
15790 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
15791 : 0 : tree res = generic_simplify_136 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LT_EXPR, MIN_EXPR);
15792 : 0 : if (res) return res;
15793 : : }
15794 : : }
15795 : : break;
15796 : : }
15797 : : default:;
15798 : : }
15799 : : break;
15800 : : }
15801 : 53 : case GE_EXPR:
15802 : 53 : {
15803 : 53 : tree _q20 = TREE_OPERAND (_p0, 0);
15804 : 53 : tree _q21 = TREE_OPERAND (_p0, 1);
15805 : 53 : switch (TREE_CODE (_p1))
15806 : : {
15807 : 11 : case GE_EXPR:
15808 : 11 : {
15809 : 11 : tree _q50 = TREE_OPERAND (_p1, 0);
15810 : 11 : tree _q51 = TREE_OPERAND (_p1, 1);
15811 : 11 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
15812 : : {
15813 : 7 : {
15814 : 7 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
15815 : 7 : tree res = generic_simplify_136 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GE_EXPR, MAX_EXPR);
15816 : 7 : if (res) return res;
15817 : : }
15818 : : }
15819 : 11 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
15820 : : {
15821 : 0 : {
15822 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q50 };
15823 : 0 : tree res = generic_simplify_136 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LE_EXPR, MIN_EXPR);
15824 : 0 : if (res) return res;
15825 : : }
15826 : : }
15827 : : break;
15828 : : }
15829 : 7 : case LE_EXPR:
15830 : 7 : {
15831 : 7 : tree _q50 = TREE_OPERAND (_p1, 0);
15832 : 7 : tree _q51 = TREE_OPERAND (_p1, 1);
15833 : 7 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
15834 : : {
15835 : 0 : {
15836 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
15837 : 0 : tree res = generic_simplify_136 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, GE_EXPR, MAX_EXPR);
15838 : 0 : if (res) return res;
15839 : : }
15840 : : }
15841 : 7 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
15842 : : {
15843 : 0 : {
15844 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q20, _p1, _q51 };
15845 : 0 : tree res = generic_simplify_136 (loc, type, _p0, _p1, captures, BIT_AND_EXPR, LE_EXPR, MIN_EXPR);
15846 : 0 : if (res) return res;
15847 : : }
15848 : : }
15849 : : break;
15850 : : }
15851 : : default:;
15852 : : }
15853 : : break;
15854 : : }
15855 : 47107 : case NEGATE_EXPR:
15856 : 47107 : {
15857 : 47107 : tree _q20 = TREE_OPERAND (_p0, 0);
15858 : 47107 : if (integer_onep (_p1))
15859 : : {
15860 : 1488 : {
15861 : 1488 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
15862 : 1488 : if (!TYPE_OVERFLOW_SANITIZED (type)
15863 : : )
15864 : : {
15865 : 1473 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1531;
15866 : 1473 : {
15867 : 1473 : tree res_op0;
15868 : 1473 : res_op0 = captures[0];
15869 : 1473 : tree res_op1;
15870 : 1473 : res_op1 = captures[1];
15871 : 1473 : tree _r;
15872 : 1473 : _r = fold_build2_loc (loc, BIT_AND_EXPR, type, res_op0, res_op1);
15873 : 1473 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 915, __FILE__, __LINE__, true);
15874 : 1473 : return _r;
15875 : : }
15876 : 0 : next_after_fail1531:;
15877 : : }
15878 : : }
15879 : : }
15880 : : break;
15881 : : }
15882 : 1 : case VEC_PERM_EXPR:
15883 : 1 : {
15884 : 1 : tree _q20 = TREE_OPERAND (_p0, 0);
15885 : 1 : tree _q21 = TREE_OPERAND (_p0, 1);
15886 : 1 : tree _q22 = TREE_OPERAND (_p0, 2);
15887 : 1 : if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
15888 : : {
15889 : 0 : switch (TREE_CODE (_p1))
15890 : : {
15891 : 0 : case VEC_PERM_EXPR:
15892 : 0 : {
15893 : 0 : tree _q60 = TREE_OPERAND (_p1, 0);
15894 : 0 : tree _q61 = TREE_OPERAND (_p1, 1);
15895 : 0 : tree _q62 = TREE_OPERAND (_p1, 2);
15896 : 0 : if ((_q61 == _q60 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q60, 0) && types_match (_q61, _q60)))
15897 : : {
15898 : 0 : if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
15899 : : {
15900 : 0 : {
15901 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q22, _q60 };
15902 : 0 : if (VECTOR_INTEGER_TYPE_P (type)
15903 : : )
15904 : : {
15905 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1532;
15906 : 0 : {
15907 : 0 : tree res_op0;
15908 : 0 : {
15909 : 0 : tree _o1[2], _r1;
15910 : 0 : _o1[0] = captures[0];
15911 : 0 : _o1[1] = captures[2];
15912 : 0 : _r1 = fold_build2_loc (loc, BIT_AND_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
15913 : 0 : captures[3] = _r1;
15914 : : }
15915 : 0 : res_op0 = unshare_expr (captures[3]);
15916 : 0 : tree res_op1;
15917 : 0 : res_op1 = captures[3];
15918 : 0 : tree res_op2;
15919 : 0 : res_op2 = captures[1];
15920 : 0 : tree _r;
15921 : 0 : _r = fold_build3_loc (loc, VEC_PERM_EXPR, type, res_op0, res_op1, res_op2);
15922 : 0 : if (UNLIKELY (debug_dump)) generic_dump_logs ("match.pd", 796, __FILE__, __LINE__, true);
15923 : 0 : return _r;
15924 : : }
15925 : 0 : next_after_fail1532:;
15926 : : }
15927 : : }
15928 : : }
15929 : : }
15930 : : break;
15931 : : }
15932 : : default:;
15933 : : }
15934 : : }
15935 : : break;
15936 : : }
15937 : 128430 : case CALL_EXPR:
15938 : 128430 : switch (get_call_combined_fn (_p0))
15939 : : {
15940 : 1 : case CFN_BUILT_IN_POPCOUNT:
15941 : 1 : if (call_expr_nargs (_p0) == 1)
15942 : : {
15943 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
15944 : 1 : if (integer_onep (_p1))
15945 : : {
15946 : 1 : {
15947 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
15948 : 1 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNT, CFN_BUILT_IN_PARITY);
15949 : 1 : if (res) return res;
15950 : : }
15951 : : }
15952 : : }
15953 : : break;
15954 : 1 : case CFN_BUILT_IN_POPCOUNTLL:
15955 : 1 : if (call_expr_nargs (_p0) == 1)
15956 : : {
15957 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
15958 : 1 : if (integer_onep (_p1))
15959 : : {
15960 : 1 : {
15961 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
15962 : 1 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTLL, CFN_BUILT_IN_PARITYLL);
15963 : 1 : if (res) return res;
15964 : : }
15965 : : }
15966 : : }
15967 : : break;
15968 : 0 : case CFN_POPCOUNT:
15969 : 0 : if (call_expr_nargs (_p0) == 1)
15970 : : {
15971 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
15972 : 0 : if (integer_onep (_p1))
15973 : : {
15974 : 0 : {
15975 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
15976 : 0 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, CFN_POPCOUNT, CFN_PARITY);
15977 : 0 : if (res) return res;
15978 : : }
15979 : : }
15980 : : }
15981 : : break;
15982 : 0 : case CFN_BUILT_IN_POPCOUNTIMAX:
15983 : 0 : if (call_expr_nargs (_p0) == 1)
15984 : : {
15985 : 0 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
15986 : 0 : if (integer_onep (_p1))
15987 : : {
15988 : 0 : {
15989 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
15990 : 0 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTIMAX, CFN_BUILT_IN_PARITYIMAX);
15991 : 0 : if (res) return res;
15992 : : }
15993 : : }
15994 : : }
15995 : : break;
15996 : 1 : case CFN_BUILT_IN_POPCOUNTL:
15997 : 1 : if (call_expr_nargs (_p0) == 1)
15998 : : {
15999 : 1 : tree _q20 = CALL_EXPR_ARG (_p0, 0);
16000 : 1 : if (integer_onep (_p1))
16001 : : {
16002 : 1 : {
16003 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
16004 : 1 : tree res = generic_simplify_422 (loc, type, _p0, _p1, captures, CFN_BUILT_IN_POPCOUNTL, CFN_BUILT_IN_PARITYL);
16005 : 1 : if (res) return res;
16006 : : }
16007 : : }
16008 : : }
16009 : : break;
16010 : : default:;
16011 : : }
16012 : : break;
16013 : : default:;
16014 : : }
16015 : : return NULL_TREE;
16016 : : }
16017 : : #pragma GCC diagnostic pop
|