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 "gimple-match-auto.h"
8 : :
9 : : bool
10 : 2369827 : gimple_maybe_truncate (tree t, tree *res_ops, tree (*valueize)(tree) ATTRIBUTE_UNUSED)
11 : : {
12 : 2369827 : const tree type = TREE_TYPE (t);
13 : 2369827 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
14 : 2369827 : switch (TREE_CODE (t))
15 : : {
16 : 2214791 : case SSA_NAME:
17 : 2214791 : if (gimple *_d1 = get_def (valueize, t))
18 : : {
19 : 2023866 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
20 : 1685853 : switch (gimple_assign_rhs_code (_a1))
21 : : {
22 : 37794 : CASE_CONVERT:
23 : 37794 : {
24 : 37794 : tree _p0 = gimple_assign_rhs1 (_a1);
25 : 37794 : _p0 = do_valueize (valueize, _p0);
26 : 37794 : {
27 : 37794 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
28 : 37794 : if (INTEGRAL_TYPE_P (type)
29 : 37794 : && TYPE_PRECISION (type) < TYPE_PRECISION (TREE_TYPE (captures[0]))
30 : : )
31 : : {
32 : 31534 : {
33 : 31534 : res_ops[0] = captures[0];
34 : 31534 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 12, __FILE__, __LINE__, false);
35 : 31534 : return true;
36 : : }
37 : : }
38 : : }
39 : : break;
40 : : }
41 : : default:;
42 : : }
43 : : }
44 : : break;
45 : : default:;
46 : : }
47 : : return false;
48 : : }
49 : :
50 : : bool
51 : 54094937 : gimple_zero_one_valued_p (tree t, tree (*valueize)(tree) ATTRIBUTE_UNUSED)
52 : : {
53 : 54094937 : const tree type = TREE_TYPE (t);
54 : 54094937 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
55 : 54094937 : {
56 : 54094937 : tree captures[1] ATTRIBUTE_UNUSED = { t };
57 : 108189874 : if (INTEGRAL_TYPE_P (type)
58 : 49347657 : && (TYPE_UNSIGNED (type)
59 : 19374284 : || TYPE_PRECISION (type) > 1)
60 : 152789973 : && wi::leu_p (tree_nonzero_bits (captures[0]), 1)
61 : : )
62 : : {
63 : 512359 : {
64 : 512359 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 29, __FILE__, __LINE__, false);
65 : 512359 : return true;
66 : : }
67 : : }
68 : : }
69 : 53582578 : switch (TREE_CODE (t))
70 : : {
71 : 51904862 : case SSA_NAME:
72 : 51904862 : if (gimple *_d1 = get_def (valueize, t))
73 : : {
74 : 28051152 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
75 : 27382613 : switch (gimple_assign_rhs_code (_a1))
76 : : {
77 : 450495 : case BIT_AND_EXPR:
78 : 450495 : {
79 : 450495 : tree _p0 = gimple_assign_rhs1 (_a1);
80 : 450495 : _p0 = do_valueize (valueize, _p0);
81 : 450495 : tree _p1 = gimple_assign_rhs2 (_a1);
82 : 450495 : _p1 = do_valueize (valueize, _p1);
83 : 450495 : if (tree_swap_operands_p (_p0, _p1))
84 : 2889 : std::swap (_p0, _p1);
85 : 450495 : if (integer_onep (_p1))
86 : : {
87 : 756 : {
88 : 756 : tree captures[2] ATTRIBUTE_UNUSED = { t, _p0 };
89 : 756 : if (INTEGRAL_TYPE_P (type)
90 : : )
91 : : {
92 : 287 : {
93 : 287 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 30, __FILE__, __LINE__, false);
94 : 287 : return true;
95 : : }
96 : : }
97 : : }
98 : : }
99 : 450208 : if (integer_onep (_p0))
100 : : {
101 : 0 : {
102 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { t, _p1 };
103 : 0 : if (INTEGRAL_TYPE_P (type)
104 : : )
105 : : {
106 : 0 : {
107 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 30, __FILE__, __LINE__, false);
108 : 0 : return true;
109 : : }
110 : : }
111 : : }
112 : : }
113 : 53567433 : break;
114 : : }
115 : 8179995 : CASE_CONVERT:
116 : 8179995 : {
117 : 8179995 : tree _p0 = gimple_assign_rhs1 (_a1);
118 : 8179995 : _p0 = do_valueize (valueize, _p0);
119 : 8179995 : {
120 : 8179995 : tree captures[2] ATTRIBUTE_UNUSED = { t, _p0 };
121 : 16359213 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
122 : 8054383 : && (TYPE_UNSIGNED (TREE_TYPE (captures[1]))
123 : 6739207 : || TYPE_PRECISION (TREE_TYPE (captures[1])) > 1)
124 : 8054287 : && INTEGRAL_TYPE_P (type)
125 : 8051365 : && (TYPE_UNSIGNED (type)
126 : 1061553 : || TYPE_PRECISION (type) > 1)
127 : 24411297 : && wi::leu_p (tree_nonzero_bits (captures[1]), 1)
128 : : )
129 : : {
130 : 14858 : {
131 : 14858 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 31, __FILE__, __LINE__, false);
132 : 14858 : return true;
133 : : }
134 : : }
135 : : }
136 : : break;
137 : : }
138 : : default:;
139 : : }
140 : : }
141 : : break;
142 : 53567433 : default:;
143 : : }
144 : 53567433 : if (gimple_truth_valued_p (t, valueize))
145 : : {
146 : 278 : {
147 : 278 : tree captures[1] ATTRIBUTE_UNUSED = { t };
148 : 278 : if (INTEGRAL_TYPE_P (type)
149 : 278 : && (TYPE_UNSIGNED (type)
150 : 278 : || TYPE_PRECISION (type) > 1)
151 : : )
152 : : {
153 : 0 : {
154 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 32, __FILE__, __LINE__, false);
155 : 0 : return true;
156 : : }
157 : : }
158 : : }
159 : : }
160 : : return false;
161 : : }
162 : :
163 : : bool
164 : 1476 : gimple_compositional_complex (tree t, tree (*valueize)(tree) ATTRIBUTE_UNUSED)
165 : : {
166 : 1476 : const tree type = TREE_TYPE (t);
167 : 1476 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
168 : 1476 : switch (TREE_CODE (t))
169 : : {
170 : 839 : case SSA_NAME:
171 : 839 : if (gimple *_d1 = get_def (valueize, t))
172 : : {
173 : 521 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
174 : 859 : switch (gimple_assign_rhs_code (_a1))
175 : : {
176 : 0 : CASE_CONVERT:
177 : 0 : {
178 : 0 : tree _p0 = gimple_assign_rhs1 (_a1);
179 : 0 : _p0 = do_valueize (valueize, _p0);
180 : 0 : switch (TREE_CODE (_p0))
181 : : {
182 : 0 : case SSA_NAME:
183 : 0 : if (gimple *_d2 = get_def (valueize, _p0))
184 : : {
185 : 0 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
186 : 0 : switch (gimple_assign_rhs_code (_a2))
187 : : {
188 : 0 : case COMPLEX_EXPR:
189 : 0 : {
190 : 0 : tree _q20 = gimple_assign_rhs1 (_a2);
191 : 0 : _q20 = do_valueize (valueize, _q20);
192 : 0 : tree _q21 = gimple_assign_rhs2 (_a2);
193 : 0 : _q21 = do_valueize (valueize, _q21);
194 : 0 : {
195 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
196 : 0 : {
197 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 85, __FILE__, __LINE__, false);
198 : 0 : return true;
199 : : }
200 : : }
201 : : break;
202 : : }
203 : : default:;
204 : : }
205 : : }
206 : : break;
207 : : default:;
208 : : }
209 : : break;
210 : : }
211 : 105 : case COMPLEX_EXPR:
212 : 105 : {
213 : 105 : tree _p0 = gimple_assign_rhs1 (_a1);
214 : 105 : _p0 = do_valueize (valueize, _p0);
215 : 105 : tree _p1 = gimple_assign_rhs2 (_a1);
216 : 105 : _p1 = do_valueize (valueize, _p1);
217 : 105 : {
218 : 105 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
219 : 105 : {
220 : 105 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 85, __FILE__, __LINE__, false);
221 : 105 : return true;
222 : : }
223 : : }
224 : : break;
225 : : }
226 : : default:;
227 : : }
228 : : }
229 : : break;
230 : : default:;
231 : : }
232 : : return false;
233 : : }
234 : :
235 : : bool
236 : 94 : gimple_nop_atomic_bit_test_and_p (tree t, tree *res_ops, tree (*valueize)(tree) ATTRIBUTE_UNUSED)
237 : : {
238 : 94 : const tree type = TREE_TYPE (t);
239 : 94 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
240 : 94 : switch (TREE_CODE (t))
241 : : {
242 : 94 : case SSA_NAME:
243 : 94 : if (gimple *_d1 = get_def (valueize, t))
244 : : {
245 : 94 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
246 : 94 : switch (gimple_assign_rhs_code (_a1))
247 : : {
248 : 94 : case BIT_AND_EXPR:
249 : 94 : {
250 : 94 : tree _p0 = gimple_assign_rhs1 (_a1);
251 : 94 : _p0 = do_valueize (valueize, _p0);
252 : 94 : tree _p1 = gimple_assign_rhs2 (_a1);
253 : 94 : _p1 = do_valueize (valueize, _p1);
254 : 94 : if (tree_swap_operands_p (_p0, _p1))
255 : 0 : std::swap (_p0, _p1);
256 : 94 : switch (TREE_CODE (_p0))
257 : : {
258 : 94 : case SSA_NAME:
259 : 94 : if (gimple *_d2 = get_def (valueize, _p0))
260 : : {
261 : 94 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
262 : 94 : switch (gimple_assign_rhs_code (_a2))
263 : : {
264 : 91 : CASE_CONVERT:
265 : 91 : {
266 : 91 : tree _q20 = gimple_assign_rhs1 (_a2);
267 : 91 : _q20 = do_valueize (valueize, _q20);
268 : 91 : switch (TREE_CODE (_q20))
269 : : {
270 : 91 : case SSA_NAME:
271 : 91 : if (gimple *_d3 = get_def (valueize, _q20))
272 : : {
273 : 91 : if (gcall *_c3 = dyn_cast <gcall *> (_d3))
274 : 91 : switch (gimple_call_combined_fn (_c3))
275 : : {
276 : 30 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_1:
277 : 30 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_2:
278 : 30 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_4:
279 : 30 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_8:
280 : 30 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_16:
281 : 30 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_1:
282 : 30 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_2:
283 : 30 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_4:
284 : 30 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_8:
285 : 30 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_16:
286 : 30 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_1:
287 : 30 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_2:
288 : 30 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_4:
289 : 30 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_8:
290 : 30 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_16:
291 : 30 : if (gimple_call_num_args (_c3) == 2)
292 : : {
293 : 30 : tree _q30 = gimple_call_arg (_c3, 0);
294 : 30 : _q30 = do_valueize (valueize, _q30);
295 : 30 : tree _q31 = gimple_call_arg (_c3, 1);
296 : 30 : _q31 = do_valueize (valueize, _q31);
297 : 30 : switch (TREE_CODE (_q31))
298 : : {
299 : 18 : case INTEGER_CST:
300 : 18 : {
301 : 18 : switch (TREE_CODE (_p1))
302 : : {
303 : 18 : case INTEGER_CST:
304 : 18 : {
305 : 18 : {
306 : 18 : tree captures[4] ATTRIBUTE_UNUSED = { _q31, _p1, _p0, _q30 };
307 : 18 : {
308 : 18 : int ibit = tree_log2 (captures[0]);
309 : 18 : int ibit2 = tree_log2 (captures[1]);
310 : 18 : if (ibit == ibit2
311 : 18 : && ibit >= 0
312 : 18 : && TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
313 : : )
314 : : {
315 : 18 : {
316 : 18 : res_ops[0] = captures[0];
317 : 18 : res_ops[1] = captures[1];
318 : 18 : res_ops[2] = captures[2];
319 : 18 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 86, __FILE__, __LINE__, false);
320 : 18 : return true;
321 : : }
322 : : }
323 : : }
324 : : }
325 : : break;
326 : : }
327 : : default:;
328 : : }
329 : : break;
330 : : }
331 : : default:;
332 : : }
333 : : }
334 : : break;
335 : 35 : case CFN_BUILT_IN_ATOMIC_FETCH_OR_1:
336 : 35 : case CFN_BUILT_IN_ATOMIC_FETCH_OR_2:
337 : 35 : case CFN_BUILT_IN_ATOMIC_FETCH_OR_4:
338 : 35 : case CFN_BUILT_IN_ATOMIC_FETCH_OR_8:
339 : 35 : case CFN_BUILT_IN_ATOMIC_FETCH_OR_16:
340 : 35 : case CFN_BUILT_IN_ATOMIC_FETCH_XOR_1:
341 : 35 : case CFN_BUILT_IN_ATOMIC_FETCH_XOR_2:
342 : 35 : case CFN_BUILT_IN_ATOMIC_FETCH_XOR_4:
343 : 35 : case CFN_BUILT_IN_ATOMIC_FETCH_XOR_8:
344 : 35 : case CFN_BUILT_IN_ATOMIC_FETCH_XOR_16:
345 : 35 : case CFN_BUILT_IN_ATOMIC_XOR_FETCH_1:
346 : 35 : case CFN_BUILT_IN_ATOMIC_XOR_FETCH_2:
347 : 35 : case CFN_BUILT_IN_ATOMIC_XOR_FETCH_4:
348 : 35 : case CFN_BUILT_IN_ATOMIC_XOR_FETCH_8:
349 : 35 : case CFN_BUILT_IN_ATOMIC_XOR_FETCH_16:
350 : 35 : if (gimple_call_num_args (_c3) == 3)
351 : : {
352 : 35 : tree _q30 = gimple_call_arg (_c3, 0);
353 : 35 : _q30 = do_valueize (valueize, _q30);
354 : 35 : tree _q31 = gimple_call_arg (_c3, 1);
355 : 35 : _q31 = do_valueize (valueize, _q31);
356 : 35 : tree _q32 = gimple_call_arg (_c3, 2);
357 : 35 : _q32 = do_valueize (valueize, _q32);
358 : 35 : switch (TREE_CODE (_q31))
359 : : {
360 : 17 : case SSA_NAME:
361 : 17 : if (gimple *_d4 = get_def (valueize, _q31))
362 : : {
363 : 17 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
364 : 17 : switch (gimple_assign_rhs_code (_a4))
365 : : {
366 : 0 : case LSHIFT_EXPR:
367 : 0 : {
368 : 0 : tree _q50 = gimple_assign_rhs1 (_a4);
369 : 0 : _q50 = do_valueize (valueize, _q50);
370 : 0 : tree _q51 = gimple_assign_rhs2 (_a4);
371 : 0 : _q51 = do_valueize (valueize, _q51);
372 : 0 : if (integer_onep (_q50))
373 : : {
374 : 0 : switch (TREE_CODE (_p1))
375 : : {
376 : 0 : case SSA_NAME:
377 : 0 : if (gimple *_d5 = get_def (valueize, _p1))
378 : : {
379 : 0 : if (gassign *_a5 = dyn_cast <gassign *> (_d5))
380 : 0 : switch (gimple_assign_rhs_code (_a5))
381 : : {
382 : 0 : CASE_CONVERT:
383 : 0 : {
384 : 0 : tree _q90 = gimple_assign_rhs1 (_a5);
385 : 0 : _q90 = do_valueize (valueize, _q90);
386 : 0 : if ((_q90 == _q31 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q31, 0) && types_match (_q90, _q31)))
387 : : {
388 : 0 : {
389 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q31, _p0, _q30, _q50, _q51, _q32 };
390 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
391 : : )
392 : : {
393 : 0 : {
394 : 0 : res_ops[0] = captures[0];
395 : 0 : res_ops[1] = captures[0];
396 : 0 : res_ops[2] = captures[1];
397 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 87, __FILE__, __LINE__, false);
398 : 0 : return true;
399 : : }
400 : : }
401 : : }
402 : : }
403 : : break;
404 : : }
405 : : default:;
406 : : }
407 : : }
408 : : break;
409 : 0 : default:;
410 : : }
411 : 0 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
412 : : {
413 : 0 : {
414 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q31, _p0, _q30, _q50, _q51, _q32 };
415 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
416 : : )
417 : : {
418 : 0 : {
419 : 0 : res_ops[0] = captures[0];
420 : 0 : res_ops[1] = captures[0];
421 : 0 : res_ops[2] = captures[1];
422 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 87, __FILE__, __LINE__, false);
423 : 0 : return true;
424 : : }
425 : : }
426 : : }
427 : : }
428 : : }
429 : : break;
430 : : }
431 : : default:;
432 : : }
433 : : }
434 : : break;
435 : 18 : case INTEGER_CST:
436 : 18 : {
437 : 18 : switch (TREE_CODE (_p1))
438 : : {
439 : 18 : case INTEGER_CST:
440 : 18 : {
441 : 18 : {
442 : 18 : tree captures[5] ATTRIBUTE_UNUSED = { _q31, _p1, _p0, _q30, _q32 };
443 : 18 : {
444 : 18 : int ibit = tree_log2 (captures[0]);
445 : 18 : int ibit2 = tree_log2 (captures[1]);
446 : 18 : if (ibit == ibit2
447 : 18 : && ibit >= 0
448 : 18 : && TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
449 : : )
450 : : {
451 : 18 : {
452 : 18 : res_ops[0] = captures[0];
453 : 18 : res_ops[1] = captures[1];
454 : 18 : res_ops[2] = captures[2];
455 : 18 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 88, __FILE__, __LINE__, false);
456 : 18 : return true;
457 : : }
458 : : }
459 : : }
460 : : }
461 : : break;
462 : : }
463 : : default:;
464 : : }
465 : : break;
466 : : }
467 : 17 : default:;
468 : : }
469 : 17 : {
470 : 17 : tree _q31_pops[1];
471 : 17 : if (gimple_nop_convert (_q31, _q31_pops, valueize))
472 : : {
473 : 17 : tree _q50 = _q31_pops[0];
474 : 17 : switch (TREE_CODE (_q50))
475 : : {
476 : 17 : case SSA_NAME:
477 : 17 : if (gimple *_d4 = get_def (valueize, _q50))
478 : : {
479 : 17 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
480 : 17 : switch (gimple_assign_rhs_code (_a4))
481 : : {
482 : 17 : case LSHIFT_EXPR:
483 : 17 : {
484 : 17 : tree _q60 = gimple_assign_rhs1 (_a4);
485 : 17 : _q60 = do_valueize (valueize, _q60);
486 : 17 : tree _q61 = gimple_assign_rhs2 (_a4);
487 : 17 : _q61 = do_valueize (valueize, _q61);
488 : 17 : if (integer_onep (_q60))
489 : : {
490 : 17 : switch (TREE_CODE (_p1))
491 : : {
492 : 17 : case SSA_NAME:
493 : 17 : if (gimple *_d5 = get_def (valueize, _p1))
494 : : {
495 : 17 : if (gassign *_a5 = dyn_cast <gassign *> (_d5))
496 : 17 : switch (gimple_assign_rhs_code (_a5))
497 : : {
498 : 6 : CASE_CONVERT:
499 : 6 : {
500 : 6 : tree _q100 = gimple_assign_rhs1 (_a5);
501 : 6 : _q100 = do_valueize (valueize, _q100);
502 : 6 : if ((_q100 == _q50 && ! TREE_SIDE_EFFECTS (_q100)) || (operand_equal_p (_q100, _q50, 0) && types_match (_q100, _q50)))
503 : : {
504 : 6 : {
505 : 6 : tree captures[6] ATTRIBUTE_UNUSED = { _q50, _p0, _q30, _q60, _q61, _q32 };
506 : 6 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
507 : : )
508 : : {
509 : 6 : {
510 : 6 : res_ops[0] = captures[0];
511 : 6 : res_ops[1] = captures[0];
512 : 6 : res_ops[2] = captures[1];
513 : 6 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 87, __FILE__, __LINE__, false);
514 : 6 : return true;
515 : : }
516 : : }
517 : : }
518 : : }
519 : : break;
520 : : }
521 : : default:;
522 : : }
523 : : }
524 : : break;
525 : 11 : default:;
526 : : }
527 : 11 : if ((_p1 == _q50 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q50, 0) && types_match (_p1, _q50)))
528 : : {
529 : 11 : {
530 : 11 : tree captures[6] ATTRIBUTE_UNUSED = { _q50, _p0, _q30, _q60, _q61, _q32 };
531 : 11 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
532 : : )
533 : : {
534 : 11 : {
535 : 11 : res_ops[0] = captures[0];
536 : 11 : res_ops[1] = captures[0];
537 : 11 : res_ops[2] = captures[1];
538 : 11 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 87, __FILE__, __LINE__, false);
539 : 11 : return true;
540 : : }
541 : : }
542 : : }
543 : : }
544 : : }
545 : : break;
546 : : }
547 : : default:;
548 : : }
549 : : }
550 : : break;
551 : : default:;
552 : : }
553 : : }
554 : : }
555 : : }
556 : : break;
557 : : default:;
558 : : }
559 : : }
560 : : break;
561 : 38 : default:;
562 : : }
563 : 38 : switch (TREE_CODE (_p1))
564 : : {
565 : 26 : case SSA_NAME:
566 : 26 : if (gimple *_d3 = get_def (valueize, _p1))
567 : : {
568 : 26 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
569 : 24 : switch (gimple_assign_rhs_code (_a3))
570 : : {
571 : 10 : CASE_CONVERT:
572 : 10 : {
573 : 10 : tree _q40 = gimple_assign_rhs1 (_a3);
574 : 10 : _q40 = do_valueize (valueize, _q40);
575 : 10 : switch (TREE_CODE (_q40))
576 : : {
577 : 10 : case SSA_NAME:
578 : 10 : if (gimple *_d4 = get_def (valueize, _q40))
579 : : {
580 : 10 : if (gcall *_c4 = dyn_cast <gcall *> (_d4))
581 : 0 : switch (gimple_call_combined_fn (_c4))
582 : : {
583 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_OR_1:
584 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_OR_2:
585 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_OR_4:
586 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_OR_8:
587 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_OR_16:
588 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_XOR_1:
589 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_XOR_2:
590 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_XOR_4:
591 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_XOR_8:
592 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_XOR_16:
593 : 0 : case CFN_BUILT_IN_ATOMIC_XOR_FETCH_1:
594 : 0 : case CFN_BUILT_IN_ATOMIC_XOR_FETCH_2:
595 : 0 : case CFN_BUILT_IN_ATOMIC_XOR_FETCH_4:
596 : 0 : case CFN_BUILT_IN_ATOMIC_XOR_FETCH_8:
597 : 0 : case CFN_BUILT_IN_ATOMIC_XOR_FETCH_16:
598 : 0 : if (gimple_call_num_args (_c4) == 3)
599 : : {
600 : 0 : tree _q50 = gimple_call_arg (_c4, 0);
601 : 0 : _q50 = do_valueize (valueize, _q50);
602 : 0 : tree _q51 = gimple_call_arg (_c4, 1);
603 : 0 : _q51 = do_valueize (valueize, _q51);
604 : 0 : tree _q52 = gimple_call_arg (_c4, 2);
605 : 0 : _q52 = do_valueize (valueize, _q52);
606 : 0 : {
607 : 0 : tree _q51_pops[1];
608 : 0 : if (gimple_nop_convert (_q51, _q51_pops, valueize))
609 : : {
610 : 0 : tree _q70 = _q51_pops[0];
611 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
612 : : {
613 : 0 : switch (TREE_CODE (_q70))
614 : : {
615 : 0 : case SSA_NAME:
616 : 0 : if (gimple *_d5 = get_def (valueize, _q70))
617 : : {
618 : 0 : if (gassign *_a5 = dyn_cast <gassign *> (_d5))
619 : 0 : switch (gimple_assign_rhs_code (_a5))
620 : : {
621 : 0 : case LSHIFT_EXPR:
622 : 0 : {
623 : 0 : tree _q90 = gimple_assign_rhs1 (_a5);
624 : 0 : _q90 = do_valueize (valueize, _q90);
625 : 0 : tree _q91 = gimple_assign_rhs2 (_a5);
626 : 0 : _q91 = do_valueize (valueize, _q91);
627 : 0 : if (integer_onep (_q90))
628 : : {
629 : 0 : {
630 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _p1, _q50, _q90, _q91, _q52 };
631 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
632 : : )
633 : : {
634 : 0 : {
635 : 0 : res_ops[0] = captures[0];
636 : 0 : res_ops[1] = captures[0];
637 : 0 : res_ops[2] = captures[1];
638 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 87, __FILE__, __LINE__, false);
639 : 0 : return true;
640 : : }
641 : : }
642 : : }
643 : : }
644 : : break;
645 : : }
646 : : default:;
647 : : }
648 : : }
649 : : break;
650 : : default:;
651 : : }
652 : : }
653 : : }
654 : : }
655 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
656 : : {
657 : 0 : switch (TREE_CODE (_q51))
658 : : {
659 : 0 : case SSA_NAME:
660 : 0 : if (gimple *_d5 = get_def (valueize, _q51))
661 : : {
662 : 0 : if (gassign *_a5 = dyn_cast <gassign *> (_d5))
663 : 0 : switch (gimple_assign_rhs_code (_a5))
664 : : {
665 : 0 : case LSHIFT_EXPR:
666 : 0 : {
667 : 0 : tree _q80 = gimple_assign_rhs1 (_a5);
668 : 0 : _q80 = do_valueize (valueize, _q80);
669 : 0 : tree _q81 = gimple_assign_rhs2 (_a5);
670 : 0 : _q81 = do_valueize (valueize, _q81);
671 : 0 : if (integer_onep (_q80))
672 : : {
673 : 0 : {
674 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _p1, _q50, _q80, _q81, _q52 };
675 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
676 : : )
677 : : {
678 : 0 : {
679 : 0 : res_ops[0] = captures[0];
680 : 0 : res_ops[1] = captures[0];
681 : 0 : res_ops[2] = captures[1];
682 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 87, __FILE__, __LINE__, false);
683 : 0 : return true;
684 : : }
685 : : }
686 : : }
687 : : }
688 : : break;
689 : : }
690 : : default:;
691 : : }
692 : : }
693 : : break;
694 : : default:;
695 : : }
696 : : }
697 : : }
698 : : break;
699 : : default:;
700 : : }
701 : : }
702 : : break;
703 : : default:;
704 : : }
705 : : break;
706 : : }
707 : : default:;
708 : : }
709 : 2 : else if (gcall *_c3 = dyn_cast <gcall *> (_d3))
710 : 0 : switch (gimple_call_combined_fn (_c3))
711 : : {
712 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_OR_1:
713 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_OR_2:
714 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_OR_4:
715 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_OR_8:
716 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_OR_16:
717 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_XOR_1:
718 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_XOR_2:
719 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_XOR_4:
720 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_XOR_8:
721 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_XOR_16:
722 : 0 : case CFN_BUILT_IN_ATOMIC_XOR_FETCH_1:
723 : 0 : case CFN_BUILT_IN_ATOMIC_XOR_FETCH_2:
724 : 0 : case CFN_BUILT_IN_ATOMIC_XOR_FETCH_4:
725 : 0 : case CFN_BUILT_IN_ATOMIC_XOR_FETCH_8:
726 : 0 : case CFN_BUILT_IN_ATOMIC_XOR_FETCH_16:
727 : 0 : if (gimple_call_num_args (_c3) == 3)
728 : : {
729 : 0 : tree _q40 = gimple_call_arg (_c3, 0);
730 : 0 : _q40 = do_valueize (valueize, _q40);
731 : 0 : tree _q41 = gimple_call_arg (_c3, 1);
732 : 0 : _q41 = do_valueize (valueize, _q41);
733 : 0 : tree _q42 = gimple_call_arg (_c3, 2);
734 : 0 : _q42 = do_valueize (valueize, _q42);
735 : 0 : {
736 : 0 : tree _q41_pops[1];
737 : 0 : if (gimple_nop_convert (_q41, _q41_pops, valueize))
738 : : {
739 : 0 : tree _q60 = _q41_pops[0];
740 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
741 : : {
742 : 0 : switch (TREE_CODE (_q60))
743 : : {
744 : 0 : case SSA_NAME:
745 : 0 : if (gimple *_d4 = get_def (valueize, _q60))
746 : : {
747 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
748 : 0 : switch (gimple_assign_rhs_code (_a4))
749 : : {
750 : 0 : case LSHIFT_EXPR:
751 : 0 : {
752 : 0 : tree _q80 = gimple_assign_rhs1 (_a4);
753 : 0 : _q80 = do_valueize (valueize, _q80);
754 : 0 : tree _q81 = gimple_assign_rhs2 (_a4);
755 : 0 : _q81 = do_valueize (valueize, _q81);
756 : 0 : if (integer_onep (_q80))
757 : : {
758 : 0 : {
759 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _p1, _q40, _q80, _q81, _q42 };
760 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
761 : : )
762 : : {
763 : 0 : {
764 : 0 : res_ops[0] = captures[0];
765 : 0 : res_ops[1] = captures[0];
766 : 0 : res_ops[2] = captures[1];
767 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 87, __FILE__, __LINE__, false);
768 : 0 : return true;
769 : : }
770 : : }
771 : : }
772 : : }
773 : : break;
774 : : }
775 : : default:;
776 : : }
777 : : }
778 : : break;
779 : : default:;
780 : : }
781 : : }
782 : : }
783 : : }
784 : 0 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _q20, 0) && types_match (_q41, _q20)))
785 : : {
786 : 0 : switch (TREE_CODE (_q41))
787 : : {
788 : 0 : case SSA_NAME:
789 : 0 : if (gimple *_d4 = get_def (valueize, _q41))
790 : : {
791 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
792 : 0 : switch (gimple_assign_rhs_code (_a4))
793 : : {
794 : 0 : case LSHIFT_EXPR:
795 : 0 : {
796 : 0 : tree _q70 = gimple_assign_rhs1 (_a4);
797 : 0 : _q70 = do_valueize (valueize, _q70);
798 : 0 : tree _q71 = gimple_assign_rhs2 (_a4);
799 : 0 : _q71 = do_valueize (valueize, _q71);
800 : 0 : if (integer_onep (_q70))
801 : : {
802 : 0 : {
803 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _p1, _q40, _q70, _q71, _q42 };
804 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
805 : : )
806 : : {
807 : 0 : {
808 : 0 : res_ops[0] = captures[0];
809 : 0 : res_ops[1] = captures[0];
810 : 0 : res_ops[2] = captures[1];
811 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 87, __FILE__, __LINE__, false);
812 : 0 : return true;
813 : : }
814 : : }
815 : : }
816 : : }
817 : : break;
818 : : }
819 : : default:;
820 : : }
821 : : }
822 : : break;
823 : : default:;
824 : : }
825 : : }
826 : : }
827 : : break;
828 : : default:;
829 : : }
830 : : }
831 : : break;
832 : : default:;
833 : : }
834 : : break;
835 : : }
836 : : default:;
837 : : }
838 : 0 : else if (gcall *_c2 = dyn_cast <gcall *> (_d2))
839 : 0 : switch (gimple_call_combined_fn (_c2))
840 : : {
841 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_1:
842 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_2:
843 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_4:
844 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_8:
845 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_16:
846 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_1:
847 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_2:
848 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_4:
849 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_8:
850 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_16:
851 : 0 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_1:
852 : 0 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_2:
853 : 0 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_4:
854 : 0 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_8:
855 : 0 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_16:
856 : 0 : if (gimple_call_num_args (_c2) == 2)
857 : : {
858 : 0 : tree _q20 = gimple_call_arg (_c2, 0);
859 : 0 : _q20 = do_valueize (valueize, _q20);
860 : 0 : tree _q21 = gimple_call_arg (_c2, 1);
861 : 0 : _q21 = do_valueize (valueize, _q21);
862 : 0 : switch (TREE_CODE (_q21))
863 : : {
864 : 0 : case SSA_NAME:
865 : 0 : if (gimple *_d3 = get_def (valueize, _q21))
866 : : {
867 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
868 : 0 : switch (gimple_assign_rhs_code (_a3))
869 : : {
870 : 0 : case LSHIFT_EXPR:
871 : 0 : {
872 : 0 : tree _q40 = gimple_assign_rhs1 (_a3);
873 : 0 : _q40 = do_valueize (valueize, _q40);
874 : 0 : tree _q41 = gimple_assign_rhs2 (_a3);
875 : 0 : _q41 = do_valueize (valueize, _q41);
876 : 0 : if (integer_onep (_q40))
877 : : {
878 : 0 : switch (TREE_CODE (_p1))
879 : : {
880 : 0 : case SSA_NAME:
881 : 0 : if (gimple *_d4 = get_def (valueize, _p1))
882 : : {
883 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
884 : 0 : switch (gimple_assign_rhs_code (_a4))
885 : : {
886 : 0 : CASE_CONVERT:
887 : 0 : {
888 : 0 : tree _q70 = gimple_assign_rhs1 (_a4);
889 : 0 : _q70 = do_valueize (valueize, _q70);
890 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
891 : : {
892 : 0 : {
893 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q21, _p0, _q20, _q40, _q41 };
894 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
895 : : )
896 : : {
897 : 0 : {
898 : 0 : res_ops[0] = captures[0];
899 : 0 : res_ops[1] = captures[0];
900 : 0 : res_ops[2] = captures[1];
901 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 89, __FILE__, __LINE__, false);
902 : 0 : return true;
903 : : }
904 : : }
905 : : }
906 : : }
907 : : break;
908 : : }
909 : : default:;
910 : : }
911 : : }
912 : : break;
913 : 0 : default:;
914 : : }
915 : 0 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
916 : : {
917 : 0 : {
918 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q21, _p0, _q20, _q40, _q41 };
919 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
920 : : )
921 : : {
922 : 0 : {
923 : 0 : res_ops[0] = captures[0];
924 : 0 : res_ops[1] = captures[0];
925 : 0 : res_ops[2] = captures[1];
926 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 89, __FILE__, __LINE__, false);
927 : 0 : return true;
928 : : }
929 : : }
930 : : }
931 : : }
932 : : }
933 : : break;
934 : : }
935 : : default:;
936 : : }
937 : : }
938 : : break;
939 : 0 : case INTEGER_CST:
940 : 0 : {
941 : 0 : switch (TREE_CODE (_p1))
942 : : {
943 : 0 : case INTEGER_CST:
944 : 0 : {
945 : 0 : {
946 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _p1, _p0, _q20 };
947 : 0 : {
948 : 0 : int ibit = tree_log2 (captures[0]);
949 : 0 : int ibit2 = tree_log2 (captures[1]);
950 : 0 : if (ibit == ibit2
951 : 0 : && ibit >= 0
952 : 0 : && TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
953 : : )
954 : : {
955 : 0 : {
956 : 0 : res_ops[0] = captures[0];
957 : 0 : res_ops[1] = captures[1];
958 : 0 : res_ops[2] = captures[2];
959 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 86, __FILE__, __LINE__, false);
960 : 0 : return true;
961 : : }
962 : : }
963 : : }
964 : : }
965 : : break;
966 : : }
967 : : default:;
968 : : }
969 : : break;
970 : : }
971 : 0 : default:;
972 : : }
973 : 0 : {
974 : 0 : tree _q21_pops[1];
975 : 0 : if (gimple_nop_convert (_q21, _q21_pops, valueize))
976 : : {
977 : 0 : tree _q40 = _q21_pops[0];
978 : 0 : switch (TREE_CODE (_q40))
979 : : {
980 : 0 : case SSA_NAME:
981 : 0 : if (gimple *_d3 = get_def (valueize, _q40))
982 : : {
983 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
984 : 0 : switch (gimple_assign_rhs_code (_a3))
985 : : {
986 : 0 : case LSHIFT_EXPR:
987 : 0 : {
988 : 0 : tree _q50 = gimple_assign_rhs1 (_a3);
989 : 0 : _q50 = do_valueize (valueize, _q50);
990 : 0 : tree _q51 = gimple_assign_rhs2 (_a3);
991 : 0 : _q51 = do_valueize (valueize, _q51);
992 : 0 : if (integer_onep (_q50))
993 : : {
994 : 0 : switch (TREE_CODE (_p1))
995 : : {
996 : 0 : case SSA_NAME:
997 : 0 : if (gimple *_d4 = get_def (valueize, _p1))
998 : : {
999 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
1000 : 0 : switch (gimple_assign_rhs_code (_a4))
1001 : : {
1002 : 0 : CASE_CONVERT:
1003 : 0 : {
1004 : 0 : tree _q80 = gimple_assign_rhs1 (_a4);
1005 : 0 : _q80 = do_valueize (valueize, _q80);
1006 : 0 : if ((_q80 == _q40 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q40, 0) && types_match (_q80, _q40)))
1007 : : {
1008 : 0 : {
1009 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q40, _p0, _q20, _q50, _q51 };
1010 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
1011 : : )
1012 : : {
1013 : 0 : {
1014 : 0 : res_ops[0] = captures[0];
1015 : 0 : res_ops[1] = captures[0];
1016 : 0 : res_ops[2] = captures[1];
1017 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 89, __FILE__, __LINE__, false);
1018 : 0 : return true;
1019 : : }
1020 : : }
1021 : : }
1022 : : }
1023 : : break;
1024 : : }
1025 : : default:;
1026 : : }
1027 : : }
1028 : : break;
1029 : 0 : default:;
1030 : : }
1031 : 0 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
1032 : : {
1033 : 0 : {
1034 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q40, _p0, _q20, _q50, _q51 };
1035 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
1036 : : )
1037 : : {
1038 : 0 : {
1039 : 0 : res_ops[0] = captures[0];
1040 : 0 : res_ops[1] = captures[0];
1041 : 0 : res_ops[2] = captures[1];
1042 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 89, __FILE__, __LINE__, false);
1043 : 0 : return true;
1044 : : }
1045 : : }
1046 : : }
1047 : : }
1048 : : }
1049 : : break;
1050 : : }
1051 : : default:;
1052 : : }
1053 : : }
1054 : : break;
1055 : : default:;
1056 : : }
1057 : : }
1058 : : }
1059 : : }
1060 : : break;
1061 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_OR_1:
1062 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_OR_2:
1063 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_OR_4:
1064 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_OR_8:
1065 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_OR_16:
1066 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_XOR_1:
1067 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_XOR_2:
1068 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_XOR_4:
1069 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_XOR_8:
1070 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_XOR_16:
1071 : 0 : case CFN_BUILT_IN_ATOMIC_XOR_FETCH_1:
1072 : 0 : case CFN_BUILT_IN_ATOMIC_XOR_FETCH_2:
1073 : 0 : case CFN_BUILT_IN_ATOMIC_XOR_FETCH_4:
1074 : 0 : case CFN_BUILT_IN_ATOMIC_XOR_FETCH_8:
1075 : 0 : case CFN_BUILT_IN_ATOMIC_XOR_FETCH_16:
1076 : 0 : if (gimple_call_num_args (_c2) == 3)
1077 : : {
1078 : 0 : tree _q20 = gimple_call_arg (_c2, 0);
1079 : 0 : _q20 = do_valueize (valueize, _q20);
1080 : 0 : tree _q21 = gimple_call_arg (_c2, 1);
1081 : 0 : _q21 = do_valueize (valueize, _q21);
1082 : 0 : tree _q22 = gimple_call_arg (_c2, 2);
1083 : 0 : _q22 = do_valueize (valueize, _q22);
1084 : 0 : switch (TREE_CODE (_q21))
1085 : : {
1086 : 0 : case SSA_NAME:
1087 : 0 : if (gimple *_d3 = get_def (valueize, _q21))
1088 : : {
1089 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
1090 : 0 : switch (gimple_assign_rhs_code (_a3))
1091 : : {
1092 : 0 : case LSHIFT_EXPR:
1093 : 0 : {
1094 : 0 : tree _q40 = gimple_assign_rhs1 (_a3);
1095 : 0 : _q40 = do_valueize (valueize, _q40);
1096 : 0 : tree _q41 = gimple_assign_rhs2 (_a3);
1097 : 0 : _q41 = do_valueize (valueize, _q41);
1098 : 0 : if (integer_onep (_q40))
1099 : : {
1100 : 0 : switch (TREE_CODE (_p1))
1101 : : {
1102 : 0 : case SSA_NAME:
1103 : 0 : if (gimple *_d4 = get_def (valueize, _p1))
1104 : : {
1105 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
1106 : 0 : switch (gimple_assign_rhs_code (_a4))
1107 : : {
1108 : 0 : CASE_CONVERT:
1109 : 0 : {
1110 : 0 : tree _q80 = gimple_assign_rhs1 (_a4);
1111 : 0 : _q80 = do_valueize (valueize, _q80);
1112 : 0 : if ((_q80 == _q21 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q21, 0) && types_match (_q80, _q21)))
1113 : : {
1114 : 0 : {
1115 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q21, _p0, _q20, _q40, _q41, _q22 };
1116 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
1117 : : )
1118 : : {
1119 : 0 : {
1120 : 0 : res_ops[0] = captures[0];
1121 : 0 : res_ops[1] = captures[0];
1122 : 0 : res_ops[2] = captures[1];
1123 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 87, __FILE__, __LINE__, false);
1124 : 0 : return true;
1125 : : }
1126 : : }
1127 : : }
1128 : : }
1129 : : break;
1130 : : }
1131 : : default:;
1132 : : }
1133 : : }
1134 : : break;
1135 : 0 : default:;
1136 : : }
1137 : 0 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
1138 : : {
1139 : 0 : {
1140 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q21, _p0, _q20, _q40, _q41, _q22 };
1141 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
1142 : : )
1143 : : {
1144 : 0 : {
1145 : 0 : res_ops[0] = captures[0];
1146 : 0 : res_ops[1] = captures[0];
1147 : 0 : res_ops[2] = captures[1];
1148 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 87, __FILE__, __LINE__, false);
1149 : 0 : return true;
1150 : : }
1151 : : }
1152 : : }
1153 : : }
1154 : : }
1155 : : break;
1156 : : }
1157 : : default:;
1158 : : }
1159 : : }
1160 : : break;
1161 : 0 : case INTEGER_CST:
1162 : 0 : {
1163 : 0 : switch (TREE_CODE (_p1))
1164 : : {
1165 : 0 : case INTEGER_CST:
1166 : 0 : {
1167 : 0 : {
1168 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q21, _p1, _p0, _q20, _q22 };
1169 : 0 : {
1170 : 0 : int ibit = tree_log2 (captures[0]);
1171 : 0 : int ibit2 = tree_log2 (captures[1]);
1172 : 0 : if (ibit == ibit2
1173 : 0 : && ibit >= 0
1174 : 0 : && TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
1175 : : )
1176 : : {
1177 : 0 : {
1178 : 0 : res_ops[0] = captures[0];
1179 : 0 : res_ops[1] = captures[1];
1180 : 0 : res_ops[2] = captures[2];
1181 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 88, __FILE__, __LINE__, false);
1182 : 0 : return true;
1183 : : }
1184 : : }
1185 : : }
1186 : : }
1187 : : break;
1188 : : }
1189 : : default:;
1190 : : }
1191 : : break;
1192 : : }
1193 : 0 : default:;
1194 : : }
1195 : 0 : {
1196 : 0 : tree _q21_pops[1];
1197 : 0 : if (gimple_nop_convert (_q21, _q21_pops, valueize))
1198 : : {
1199 : 0 : tree _q40 = _q21_pops[0];
1200 : 0 : switch (TREE_CODE (_q40))
1201 : : {
1202 : 0 : case SSA_NAME:
1203 : 0 : if (gimple *_d3 = get_def (valueize, _q40))
1204 : : {
1205 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
1206 : 0 : switch (gimple_assign_rhs_code (_a3))
1207 : : {
1208 : 0 : case LSHIFT_EXPR:
1209 : 0 : {
1210 : 0 : tree _q50 = gimple_assign_rhs1 (_a3);
1211 : 0 : _q50 = do_valueize (valueize, _q50);
1212 : 0 : tree _q51 = gimple_assign_rhs2 (_a3);
1213 : 0 : _q51 = do_valueize (valueize, _q51);
1214 : 0 : if (integer_onep (_q50))
1215 : : {
1216 : 0 : switch (TREE_CODE (_p1))
1217 : : {
1218 : 0 : case SSA_NAME:
1219 : 0 : if (gimple *_d4 = get_def (valueize, _p1))
1220 : : {
1221 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
1222 : 0 : switch (gimple_assign_rhs_code (_a4))
1223 : : {
1224 : 0 : CASE_CONVERT:
1225 : 0 : {
1226 : 0 : tree _q90 = gimple_assign_rhs1 (_a4);
1227 : 0 : _q90 = do_valueize (valueize, _q90);
1228 : 0 : if ((_q90 == _q40 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q40, 0) && types_match (_q90, _q40)))
1229 : : {
1230 : 0 : {
1231 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q40, _p0, _q20, _q50, _q51, _q22 };
1232 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
1233 : : )
1234 : : {
1235 : 0 : {
1236 : 0 : res_ops[0] = captures[0];
1237 : 0 : res_ops[1] = captures[0];
1238 : 0 : res_ops[2] = captures[1];
1239 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 87, __FILE__, __LINE__, false);
1240 : 0 : return true;
1241 : : }
1242 : : }
1243 : : }
1244 : : }
1245 : : break;
1246 : : }
1247 : : default:;
1248 : : }
1249 : : }
1250 : : break;
1251 : 0 : default:;
1252 : : }
1253 : 0 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
1254 : : {
1255 : 0 : {
1256 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q40, _p0, _q20, _q50, _q51, _q22 };
1257 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
1258 : : )
1259 : : {
1260 : 0 : {
1261 : 0 : res_ops[0] = captures[0];
1262 : 0 : res_ops[1] = captures[0];
1263 : 0 : res_ops[2] = captures[1];
1264 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 87, __FILE__, __LINE__, false);
1265 : 0 : return true;
1266 : : }
1267 : : }
1268 : : }
1269 : : }
1270 : : }
1271 : : break;
1272 : : }
1273 : : default:;
1274 : : }
1275 : : }
1276 : : break;
1277 : : default:;
1278 : : }
1279 : : }
1280 : : }
1281 : : }
1282 : : break;
1283 : : default:;
1284 : : }
1285 : : }
1286 : : break;
1287 : 41 : default:;
1288 : : }
1289 : 41 : switch (TREE_CODE (_p1))
1290 : : {
1291 : 29 : case SSA_NAME:
1292 : 29 : if (gimple *_d2 = get_def (valueize, _p1))
1293 : : {
1294 : 29 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
1295 : 27 : switch (gimple_assign_rhs_code (_a2))
1296 : : {
1297 : 13 : CASE_CONVERT:
1298 : 13 : {
1299 : 13 : tree _q30 = gimple_assign_rhs1 (_a2);
1300 : 13 : _q30 = do_valueize (valueize, _q30);
1301 : 13 : switch (TREE_CODE (_q30))
1302 : : {
1303 : 13 : case SSA_NAME:
1304 : 13 : if (gimple *_d3 = get_def (valueize, _q30))
1305 : : {
1306 : 13 : if (gcall *_c3 = dyn_cast <gcall *> (_d3))
1307 : 3 : switch (gimple_call_combined_fn (_c3))
1308 : : {
1309 : 3 : case CFN_BUILT_IN_ATOMIC_FETCH_OR_1:
1310 : 3 : case CFN_BUILT_IN_ATOMIC_FETCH_OR_2:
1311 : 3 : case CFN_BUILT_IN_ATOMIC_FETCH_OR_4:
1312 : 3 : case CFN_BUILT_IN_ATOMIC_FETCH_OR_8:
1313 : 3 : case CFN_BUILT_IN_ATOMIC_FETCH_OR_16:
1314 : 3 : case CFN_BUILT_IN_ATOMIC_FETCH_XOR_1:
1315 : 3 : case CFN_BUILT_IN_ATOMIC_FETCH_XOR_2:
1316 : 3 : case CFN_BUILT_IN_ATOMIC_FETCH_XOR_4:
1317 : 3 : case CFN_BUILT_IN_ATOMIC_FETCH_XOR_8:
1318 : 3 : case CFN_BUILT_IN_ATOMIC_FETCH_XOR_16:
1319 : 3 : case CFN_BUILT_IN_ATOMIC_XOR_FETCH_1:
1320 : 3 : case CFN_BUILT_IN_ATOMIC_XOR_FETCH_2:
1321 : 3 : case CFN_BUILT_IN_ATOMIC_XOR_FETCH_4:
1322 : 3 : case CFN_BUILT_IN_ATOMIC_XOR_FETCH_8:
1323 : 3 : case CFN_BUILT_IN_ATOMIC_XOR_FETCH_16:
1324 : 3 : if (gimple_call_num_args (_c3) == 3)
1325 : : {
1326 : 3 : tree _q40 = gimple_call_arg (_c3, 0);
1327 : 3 : _q40 = do_valueize (valueize, _q40);
1328 : 3 : tree _q41 = gimple_call_arg (_c3, 1);
1329 : 3 : _q41 = do_valueize (valueize, _q41);
1330 : 3 : tree _q42 = gimple_call_arg (_c3, 2);
1331 : 3 : _q42 = do_valueize (valueize, _q42);
1332 : 3 : {
1333 : 3 : tree _q41_pops[1];
1334 : 3 : if (gimple_nop_convert (_q41, _q41_pops, valueize))
1335 : : {
1336 : 3 : tree _q60 = _q41_pops[0];
1337 : 3 : if ((_q60 == _p0 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _p0, 0) && types_match (_q60, _p0)))
1338 : : {
1339 : 3 : switch (TREE_CODE (_q60))
1340 : : {
1341 : 3 : case SSA_NAME:
1342 : 3 : if (gimple *_d4 = get_def (valueize, _q60))
1343 : : {
1344 : 3 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
1345 : 3 : switch (gimple_assign_rhs_code (_a4))
1346 : : {
1347 : 3 : case LSHIFT_EXPR:
1348 : 3 : {
1349 : 3 : tree _q80 = gimple_assign_rhs1 (_a4);
1350 : 3 : _q80 = do_valueize (valueize, _q80);
1351 : 3 : tree _q81 = gimple_assign_rhs2 (_a4);
1352 : 3 : _q81 = do_valueize (valueize, _q81);
1353 : 3 : if (integer_onep (_q80))
1354 : : {
1355 : 3 : {
1356 : 3 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q80, _q81, _q42 };
1357 : 3 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
1358 : : )
1359 : : {
1360 : 3 : {
1361 : 3 : res_ops[0] = captures[0];
1362 : 3 : res_ops[1] = captures[0];
1363 : 3 : res_ops[2] = captures[1];
1364 : 3 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 87, __FILE__, __LINE__, false);
1365 : 3 : return true;
1366 : : }
1367 : : }
1368 : : }
1369 : : }
1370 : : break;
1371 : : }
1372 : : default:;
1373 : : }
1374 : : }
1375 : : break;
1376 : : default:;
1377 : : }
1378 : : }
1379 : : }
1380 : : }
1381 : 0 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
1382 : : {
1383 : 0 : switch (TREE_CODE (_q41))
1384 : : {
1385 : 0 : case SSA_NAME:
1386 : 0 : if (gimple *_d4 = get_def (valueize, _q41))
1387 : : {
1388 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
1389 : 0 : switch (gimple_assign_rhs_code (_a4))
1390 : : {
1391 : 0 : case LSHIFT_EXPR:
1392 : 0 : {
1393 : 0 : tree _q70 = gimple_assign_rhs1 (_a4);
1394 : 0 : _q70 = do_valueize (valueize, _q70);
1395 : 0 : tree _q71 = gimple_assign_rhs2 (_a4);
1396 : 0 : _q71 = do_valueize (valueize, _q71);
1397 : 0 : if (integer_onep (_q70))
1398 : : {
1399 : 0 : {
1400 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q70, _q71, _q42 };
1401 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
1402 : : )
1403 : : {
1404 : 0 : {
1405 : 0 : res_ops[0] = captures[0];
1406 : 0 : res_ops[1] = captures[0];
1407 : 0 : res_ops[2] = captures[1];
1408 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 87, __FILE__, __LINE__, false);
1409 : 0 : return true;
1410 : : }
1411 : : }
1412 : : }
1413 : : }
1414 : : break;
1415 : : }
1416 : : default:;
1417 : : }
1418 : : }
1419 : : break;
1420 : : default:;
1421 : : }
1422 : : }
1423 : : }
1424 : : break;
1425 : : default:;
1426 : : }
1427 : : }
1428 : : break;
1429 : : default:;
1430 : : }
1431 : : break;
1432 : : }
1433 : : default:;
1434 : : }
1435 : 2 : else if (gcall *_c2 = dyn_cast <gcall *> (_d2))
1436 : 0 : switch (gimple_call_combined_fn (_c2))
1437 : : {
1438 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_OR_1:
1439 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_OR_2:
1440 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_OR_4:
1441 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_OR_8:
1442 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_OR_16:
1443 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_XOR_1:
1444 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_XOR_2:
1445 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_XOR_4:
1446 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_XOR_8:
1447 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_XOR_16:
1448 : 0 : case CFN_BUILT_IN_ATOMIC_XOR_FETCH_1:
1449 : 0 : case CFN_BUILT_IN_ATOMIC_XOR_FETCH_2:
1450 : 0 : case CFN_BUILT_IN_ATOMIC_XOR_FETCH_4:
1451 : 0 : case CFN_BUILT_IN_ATOMIC_XOR_FETCH_8:
1452 : 0 : case CFN_BUILT_IN_ATOMIC_XOR_FETCH_16:
1453 : 0 : if (gimple_call_num_args (_c2) == 3)
1454 : : {
1455 : 0 : tree _q30 = gimple_call_arg (_c2, 0);
1456 : 0 : _q30 = do_valueize (valueize, _q30);
1457 : 0 : tree _q31 = gimple_call_arg (_c2, 1);
1458 : 0 : _q31 = do_valueize (valueize, _q31);
1459 : 0 : tree _q32 = gimple_call_arg (_c2, 2);
1460 : 0 : _q32 = do_valueize (valueize, _q32);
1461 : 0 : {
1462 : 0 : tree _q31_pops[1];
1463 : 0 : if (gimple_nop_convert (_q31, _q31_pops, valueize))
1464 : : {
1465 : 0 : tree _q50 = _q31_pops[0];
1466 : 0 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
1467 : : {
1468 : 0 : switch (TREE_CODE (_q50))
1469 : : {
1470 : 0 : case SSA_NAME:
1471 : 0 : if (gimple *_d3 = get_def (valueize, _q50))
1472 : : {
1473 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
1474 : 0 : switch (gimple_assign_rhs_code (_a3))
1475 : : {
1476 : 0 : case LSHIFT_EXPR:
1477 : 0 : {
1478 : 0 : tree _q70 = gimple_assign_rhs1 (_a3);
1479 : 0 : _q70 = do_valueize (valueize, _q70);
1480 : 0 : tree _q71 = gimple_assign_rhs2 (_a3);
1481 : 0 : _q71 = do_valueize (valueize, _q71);
1482 : 0 : if (integer_onep (_q70))
1483 : : {
1484 : 0 : {
1485 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q70, _q71, _q32 };
1486 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
1487 : : )
1488 : : {
1489 : 0 : {
1490 : 0 : res_ops[0] = captures[0];
1491 : 0 : res_ops[1] = captures[0];
1492 : 0 : res_ops[2] = captures[1];
1493 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 87, __FILE__, __LINE__, false);
1494 : 0 : return true;
1495 : : }
1496 : : }
1497 : : }
1498 : : }
1499 : : break;
1500 : : }
1501 : : default:;
1502 : : }
1503 : : }
1504 : : break;
1505 : : default:;
1506 : : }
1507 : : }
1508 : : }
1509 : : }
1510 : 0 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
1511 : : {
1512 : 0 : switch (TREE_CODE (_q31))
1513 : : {
1514 : 0 : case SSA_NAME:
1515 : 0 : if (gimple *_d3 = get_def (valueize, _q31))
1516 : : {
1517 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
1518 : 0 : switch (gimple_assign_rhs_code (_a3))
1519 : : {
1520 : 0 : case LSHIFT_EXPR:
1521 : 0 : {
1522 : 0 : tree _q60 = gimple_assign_rhs1 (_a3);
1523 : 0 : _q60 = do_valueize (valueize, _q60);
1524 : 0 : tree _q61 = gimple_assign_rhs2 (_a3);
1525 : 0 : _q61 = do_valueize (valueize, _q61);
1526 : 0 : if (integer_onep (_q60))
1527 : : {
1528 : 0 : {
1529 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q60, _q61, _q32 };
1530 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
1531 : : )
1532 : : {
1533 : 0 : {
1534 : 0 : res_ops[0] = captures[0];
1535 : 0 : res_ops[1] = captures[0];
1536 : 0 : res_ops[2] = captures[1];
1537 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 87, __FILE__, __LINE__, false);
1538 : 0 : return true;
1539 : : }
1540 : : }
1541 : : }
1542 : : }
1543 : : break;
1544 : : }
1545 : : default:;
1546 : : }
1547 : : }
1548 : : break;
1549 : : default:;
1550 : : }
1551 : : }
1552 : : }
1553 : : break;
1554 : : default:;
1555 : : }
1556 : : }
1557 : : break;
1558 : 38 : default:;
1559 : : }
1560 : 38 : switch (TREE_CODE (_p0))
1561 : : {
1562 : 38 : case SSA_NAME:
1563 : 38 : if (gimple *_d2 = get_def (valueize, _p0))
1564 : : {
1565 : 38 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
1566 : 38 : switch (gimple_assign_rhs_code (_a2))
1567 : : {
1568 : 38 : CASE_CONVERT:
1569 : 38 : {
1570 : 38 : tree _q20 = gimple_assign_rhs1 (_a2);
1571 : 38 : _q20 = do_valueize (valueize, _q20);
1572 : 38 : switch (TREE_CODE (_q20))
1573 : : {
1574 : 38 : case SSA_NAME:
1575 : 38 : if (gimple *_d3 = get_def (valueize, _q20))
1576 : : {
1577 : 38 : if (gcall *_c3 = dyn_cast <gcall *> (_d3))
1578 : 38 : switch (gimple_call_combined_fn (_c3))
1579 : : {
1580 : 12 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_1:
1581 : 12 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_2:
1582 : 12 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_4:
1583 : 12 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_8:
1584 : 12 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_16:
1585 : 12 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_1:
1586 : 12 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_2:
1587 : 12 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_4:
1588 : 12 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_8:
1589 : 12 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_16:
1590 : 12 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_1:
1591 : 12 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_2:
1592 : 12 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_4:
1593 : 12 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_8:
1594 : 12 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_16:
1595 : 12 : if (gimple_call_num_args (_c3) == 2)
1596 : : {
1597 : 12 : tree _q30 = gimple_call_arg (_c3, 0);
1598 : 12 : _q30 = do_valueize (valueize, _q30);
1599 : 12 : tree _q31 = gimple_call_arg (_c3, 1);
1600 : 12 : _q31 = do_valueize (valueize, _q31);
1601 : 12 : switch (TREE_CODE (_q31))
1602 : : {
1603 : 12 : case SSA_NAME:
1604 : 12 : if (gimple *_d4 = get_def (valueize, _q31))
1605 : : {
1606 : 12 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
1607 : 12 : switch (gimple_assign_rhs_code (_a4))
1608 : : {
1609 : 0 : case LSHIFT_EXPR:
1610 : 0 : {
1611 : 0 : tree _q50 = gimple_assign_rhs1 (_a4);
1612 : 0 : _q50 = do_valueize (valueize, _q50);
1613 : 0 : tree _q51 = gimple_assign_rhs2 (_a4);
1614 : 0 : _q51 = do_valueize (valueize, _q51);
1615 : 0 : if (integer_onep (_q50))
1616 : : {
1617 : 0 : switch (TREE_CODE (_p1))
1618 : : {
1619 : 0 : case SSA_NAME:
1620 : 0 : if (gimple *_d5 = get_def (valueize, _p1))
1621 : : {
1622 : 0 : if (gassign *_a5 = dyn_cast <gassign *> (_d5))
1623 : 0 : switch (gimple_assign_rhs_code (_a5))
1624 : : {
1625 : 0 : CASE_CONVERT:
1626 : 0 : {
1627 : 0 : tree _q80 = gimple_assign_rhs1 (_a5);
1628 : 0 : _q80 = do_valueize (valueize, _q80);
1629 : 0 : if ((_q80 == _q31 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q31, 0) && types_match (_q80, _q31)))
1630 : : {
1631 : 0 : {
1632 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q31, _p0, _q30, _q50, _q51 };
1633 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
1634 : : )
1635 : : {
1636 : 0 : {
1637 : 0 : res_ops[0] = captures[0];
1638 : 0 : res_ops[1] = captures[0];
1639 : 0 : res_ops[2] = captures[1];
1640 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 89, __FILE__, __LINE__, false);
1641 : 0 : return true;
1642 : : }
1643 : : }
1644 : : }
1645 : : }
1646 : : break;
1647 : : }
1648 : : default:;
1649 : : }
1650 : : }
1651 : : break;
1652 : 0 : default:;
1653 : : }
1654 : 0 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
1655 : : {
1656 : 0 : {
1657 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q31, _p0, _q30, _q50, _q51 };
1658 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
1659 : : )
1660 : : {
1661 : 0 : {
1662 : 0 : res_ops[0] = captures[0];
1663 : 0 : res_ops[1] = captures[0];
1664 : 0 : res_ops[2] = captures[1];
1665 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 89, __FILE__, __LINE__, false);
1666 : 0 : return true;
1667 : : }
1668 : : }
1669 : : }
1670 : : }
1671 : : }
1672 : : break;
1673 : : }
1674 : : default:;
1675 : : }
1676 : : }
1677 : : break;
1678 : 12 : default:;
1679 : : }
1680 : 12 : {
1681 : 12 : tree _q31_pops[1];
1682 : 12 : if (gimple_nop_convert (_q31, _q31_pops, valueize))
1683 : : {
1684 : 12 : tree _q50 = _q31_pops[0];
1685 : 12 : switch (TREE_CODE (_q50))
1686 : : {
1687 : 12 : case SSA_NAME:
1688 : 12 : if (gimple *_d4 = get_def (valueize, _q50))
1689 : : {
1690 : 12 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
1691 : 12 : switch (gimple_assign_rhs_code (_a4))
1692 : : {
1693 : 12 : case LSHIFT_EXPR:
1694 : 12 : {
1695 : 12 : tree _q60 = gimple_assign_rhs1 (_a4);
1696 : 12 : _q60 = do_valueize (valueize, _q60);
1697 : 12 : tree _q61 = gimple_assign_rhs2 (_a4);
1698 : 12 : _q61 = do_valueize (valueize, _q61);
1699 : 12 : if (integer_onep (_q60))
1700 : : {
1701 : 12 : switch (TREE_CODE (_p1))
1702 : : {
1703 : 12 : case SSA_NAME:
1704 : 12 : if (gimple *_d5 = get_def (valueize, _p1))
1705 : : {
1706 : 12 : if (gassign *_a5 = dyn_cast <gassign *> (_d5))
1707 : 12 : switch (gimple_assign_rhs_code (_a5))
1708 : : {
1709 : 6 : CASE_CONVERT:
1710 : 6 : {
1711 : 6 : tree _q90 = gimple_assign_rhs1 (_a5);
1712 : 6 : _q90 = do_valueize (valueize, _q90);
1713 : 6 : if ((_q90 == _q50 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q50, 0) && types_match (_q90, _q50)))
1714 : : {
1715 : 6 : {
1716 : 6 : tree captures[5] ATTRIBUTE_UNUSED = { _q50, _p0, _q30, _q60, _q61 };
1717 : 6 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
1718 : : )
1719 : : {
1720 : 6 : {
1721 : 6 : res_ops[0] = captures[0];
1722 : 6 : res_ops[1] = captures[0];
1723 : 6 : res_ops[2] = captures[1];
1724 : 6 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 89, __FILE__, __LINE__, false);
1725 : 6 : return true;
1726 : : }
1727 : : }
1728 : : }
1729 : : }
1730 : : break;
1731 : : }
1732 : : default:;
1733 : : }
1734 : : }
1735 : : break;
1736 : 6 : default:;
1737 : : }
1738 : 6 : if ((_p1 == _q50 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q50, 0) && types_match (_p1, _q50)))
1739 : : {
1740 : 6 : {
1741 : 6 : tree captures[5] ATTRIBUTE_UNUSED = { _q50, _p0, _q30, _q60, _q61 };
1742 : 6 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
1743 : : )
1744 : : {
1745 : 6 : {
1746 : 6 : res_ops[0] = captures[0];
1747 : 6 : res_ops[1] = captures[0];
1748 : 6 : res_ops[2] = captures[1];
1749 : 6 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 89, __FILE__, __LINE__, false);
1750 : 6 : return true;
1751 : : }
1752 : : }
1753 : : }
1754 : : }
1755 : : }
1756 : : break;
1757 : : }
1758 : : default:;
1759 : : }
1760 : : }
1761 : : break;
1762 : : default:;
1763 : : }
1764 : : }
1765 : : }
1766 : : }
1767 : : break;
1768 : : default:;
1769 : : }
1770 : : }
1771 : : break;
1772 : 26 : default:;
1773 : : }
1774 : 26 : switch (TREE_CODE (_p1))
1775 : : {
1776 : 14 : case SSA_NAME:
1777 : 14 : if (gimple *_d3 = get_def (valueize, _p1))
1778 : : {
1779 : 14 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
1780 : 12 : switch (gimple_assign_rhs_code (_a3))
1781 : : {
1782 : 4 : CASE_CONVERT:
1783 : 4 : {
1784 : 4 : tree _q40 = gimple_assign_rhs1 (_a3);
1785 : 4 : _q40 = do_valueize (valueize, _q40);
1786 : 4 : switch (TREE_CODE (_q40))
1787 : : {
1788 : 4 : case SSA_NAME:
1789 : 4 : if (gimple *_d4 = get_def (valueize, _q40))
1790 : : {
1791 : 4 : if (gcall *_c4 = dyn_cast <gcall *> (_d4))
1792 : 0 : switch (gimple_call_combined_fn (_c4))
1793 : : {
1794 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_1:
1795 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_2:
1796 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_4:
1797 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_8:
1798 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_16:
1799 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_1:
1800 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_2:
1801 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_4:
1802 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_8:
1803 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_16:
1804 : 0 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_1:
1805 : 0 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_2:
1806 : 0 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_4:
1807 : 0 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_8:
1808 : 0 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_16:
1809 : 0 : if (gimple_call_num_args (_c4) == 2)
1810 : : {
1811 : 0 : tree _q50 = gimple_call_arg (_c4, 0);
1812 : 0 : _q50 = do_valueize (valueize, _q50);
1813 : 0 : tree _q51 = gimple_call_arg (_c4, 1);
1814 : 0 : _q51 = do_valueize (valueize, _q51);
1815 : 0 : {
1816 : 0 : tree _q51_pops[1];
1817 : 0 : if (gimple_nop_convert (_q51, _q51_pops, valueize))
1818 : : {
1819 : 0 : tree _q70 = _q51_pops[0];
1820 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
1821 : : {
1822 : 0 : switch (TREE_CODE (_q70))
1823 : : {
1824 : 0 : case SSA_NAME:
1825 : 0 : if (gimple *_d5 = get_def (valueize, _q70))
1826 : : {
1827 : 0 : if (gassign *_a5 = dyn_cast <gassign *> (_d5))
1828 : 0 : switch (gimple_assign_rhs_code (_a5))
1829 : : {
1830 : 0 : case LSHIFT_EXPR:
1831 : 0 : {
1832 : 0 : tree _q90 = gimple_assign_rhs1 (_a5);
1833 : 0 : _q90 = do_valueize (valueize, _q90);
1834 : 0 : tree _q91 = gimple_assign_rhs2 (_a5);
1835 : 0 : _q91 = do_valueize (valueize, _q91);
1836 : 0 : if (integer_onep (_q90))
1837 : : {
1838 : 0 : {
1839 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _p1, _q50, _q90, _q91 };
1840 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
1841 : : )
1842 : : {
1843 : 0 : {
1844 : 0 : res_ops[0] = captures[0];
1845 : 0 : res_ops[1] = captures[0];
1846 : 0 : res_ops[2] = captures[1];
1847 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 89, __FILE__, __LINE__, false);
1848 : 0 : return true;
1849 : : }
1850 : : }
1851 : : }
1852 : : }
1853 : : break;
1854 : : }
1855 : : default:;
1856 : : }
1857 : : }
1858 : : break;
1859 : : default:;
1860 : : }
1861 : : }
1862 : : }
1863 : : }
1864 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
1865 : : {
1866 : 0 : switch (TREE_CODE (_q51))
1867 : : {
1868 : 0 : case SSA_NAME:
1869 : 0 : if (gimple *_d5 = get_def (valueize, _q51))
1870 : : {
1871 : 0 : if (gassign *_a5 = dyn_cast <gassign *> (_d5))
1872 : 0 : switch (gimple_assign_rhs_code (_a5))
1873 : : {
1874 : 0 : case LSHIFT_EXPR:
1875 : 0 : {
1876 : 0 : tree _q80 = gimple_assign_rhs1 (_a5);
1877 : 0 : _q80 = do_valueize (valueize, _q80);
1878 : 0 : tree _q81 = gimple_assign_rhs2 (_a5);
1879 : 0 : _q81 = do_valueize (valueize, _q81);
1880 : 0 : if (integer_onep (_q80))
1881 : : {
1882 : 0 : {
1883 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _p1, _q50, _q80, _q81 };
1884 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
1885 : : )
1886 : : {
1887 : 0 : {
1888 : 0 : res_ops[0] = captures[0];
1889 : 0 : res_ops[1] = captures[0];
1890 : 0 : res_ops[2] = captures[1];
1891 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 89, __FILE__, __LINE__, false);
1892 : 0 : return true;
1893 : : }
1894 : : }
1895 : : }
1896 : : }
1897 : : break;
1898 : : }
1899 : : default:;
1900 : : }
1901 : : }
1902 : : break;
1903 : : default:;
1904 : : }
1905 : : }
1906 : : }
1907 : : break;
1908 : : default:;
1909 : : }
1910 : : }
1911 : : break;
1912 : : default:;
1913 : : }
1914 : : break;
1915 : : }
1916 : : default:;
1917 : : }
1918 : 2 : else if (gcall *_c3 = dyn_cast <gcall *> (_d3))
1919 : 0 : switch (gimple_call_combined_fn (_c3))
1920 : : {
1921 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_1:
1922 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_2:
1923 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_4:
1924 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_8:
1925 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_16:
1926 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_1:
1927 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_2:
1928 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_4:
1929 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_8:
1930 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_16:
1931 : 0 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_1:
1932 : 0 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_2:
1933 : 0 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_4:
1934 : 0 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_8:
1935 : 0 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_16:
1936 : 0 : if (gimple_call_num_args (_c3) == 2)
1937 : : {
1938 : 0 : tree _q40 = gimple_call_arg (_c3, 0);
1939 : 0 : _q40 = do_valueize (valueize, _q40);
1940 : 0 : tree _q41 = gimple_call_arg (_c3, 1);
1941 : 0 : _q41 = do_valueize (valueize, _q41);
1942 : 0 : {
1943 : 0 : tree _q41_pops[1];
1944 : 0 : if (gimple_nop_convert (_q41, _q41_pops, valueize))
1945 : : {
1946 : 0 : tree _q60 = _q41_pops[0];
1947 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
1948 : : {
1949 : 0 : switch (TREE_CODE (_q60))
1950 : : {
1951 : 0 : case SSA_NAME:
1952 : 0 : if (gimple *_d4 = get_def (valueize, _q60))
1953 : : {
1954 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
1955 : 0 : switch (gimple_assign_rhs_code (_a4))
1956 : : {
1957 : 0 : case LSHIFT_EXPR:
1958 : 0 : {
1959 : 0 : tree _q80 = gimple_assign_rhs1 (_a4);
1960 : 0 : _q80 = do_valueize (valueize, _q80);
1961 : 0 : tree _q81 = gimple_assign_rhs2 (_a4);
1962 : 0 : _q81 = do_valueize (valueize, _q81);
1963 : 0 : if (integer_onep (_q80))
1964 : : {
1965 : 0 : {
1966 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _p1, _q40, _q80, _q81 };
1967 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
1968 : : )
1969 : : {
1970 : 0 : {
1971 : 0 : res_ops[0] = captures[0];
1972 : 0 : res_ops[1] = captures[0];
1973 : 0 : res_ops[2] = captures[1];
1974 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 89, __FILE__, __LINE__, false);
1975 : 0 : return true;
1976 : : }
1977 : : }
1978 : : }
1979 : : }
1980 : : break;
1981 : : }
1982 : : default:;
1983 : : }
1984 : : }
1985 : : break;
1986 : : default:;
1987 : : }
1988 : : }
1989 : : }
1990 : : }
1991 : 0 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _q20, 0) && types_match (_q41, _q20)))
1992 : : {
1993 : 0 : switch (TREE_CODE (_q41))
1994 : : {
1995 : 0 : case SSA_NAME:
1996 : 0 : if (gimple *_d4 = get_def (valueize, _q41))
1997 : : {
1998 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
1999 : 0 : switch (gimple_assign_rhs_code (_a4))
2000 : : {
2001 : 0 : case LSHIFT_EXPR:
2002 : 0 : {
2003 : 0 : tree _q70 = gimple_assign_rhs1 (_a4);
2004 : 0 : _q70 = do_valueize (valueize, _q70);
2005 : 0 : tree _q71 = gimple_assign_rhs2 (_a4);
2006 : 0 : _q71 = do_valueize (valueize, _q71);
2007 : 0 : if (integer_onep (_q70))
2008 : : {
2009 : 0 : {
2010 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _p1, _q40, _q70, _q71 };
2011 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
2012 : : )
2013 : : {
2014 : 0 : {
2015 : 0 : res_ops[0] = captures[0];
2016 : 0 : res_ops[1] = captures[0];
2017 : 0 : res_ops[2] = captures[1];
2018 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 89, __FILE__, __LINE__, false);
2019 : 0 : return true;
2020 : : }
2021 : : }
2022 : : }
2023 : : }
2024 : : break;
2025 : : }
2026 : : default:;
2027 : : }
2028 : : }
2029 : : break;
2030 : : default:;
2031 : : }
2032 : : }
2033 : : }
2034 : : break;
2035 : : default:;
2036 : : }
2037 : : }
2038 : : break;
2039 : 26 : default:;
2040 : : }
2041 : 26 : switch (TREE_CODE (_q20))
2042 : : {
2043 : 26 : case SSA_NAME:
2044 : 26 : if (gimple *_d3 = get_def (valueize, _q20))
2045 : : {
2046 : 26 : if (gcall *_c3 = dyn_cast <gcall *> (_d3))
2047 : 26 : switch (gimple_call_combined_fn (_c3))
2048 : : {
2049 : 16 : case CFN_BUILT_IN_ATOMIC_FETCH_AND_1:
2050 : 16 : case CFN_BUILT_IN_ATOMIC_FETCH_AND_2:
2051 : 16 : case CFN_BUILT_IN_ATOMIC_FETCH_AND_4:
2052 : 16 : case CFN_BUILT_IN_ATOMIC_FETCH_AND_8:
2053 : 16 : case CFN_BUILT_IN_ATOMIC_FETCH_AND_16:
2054 : 16 : if (gimple_call_num_args (_c3) == 3)
2055 : : {
2056 : 16 : tree _q30 = gimple_call_arg (_c3, 0);
2057 : 16 : _q30 = do_valueize (valueize, _q30);
2058 : 16 : tree _q31 = gimple_call_arg (_c3, 1);
2059 : 16 : _q31 = do_valueize (valueize, _q31);
2060 : 16 : tree _q32 = gimple_call_arg (_c3, 2);
2061 : 16 : _q32 = do_valueize (valueize, _q32);
2062 : 16 : switch (TREE_CODE (_q31))
2063 : : {
2064 : 10 : case SSA_NAME:
2065 : 10 : if (gimple *_d4 = get_def (valueize, _q31))
2066 : : {
2067 : 10 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
2068 : 10 : switch (gimple_assign_rhs_code (_a4))
2069 : : {
2070 : 0 : case BIT_NOT_EXPR:
2071 : 0 : {
2072 : 0 : tree _q50 = gimple_assign_rhs1 (_a4);
2073 : 0 : _q50 = do_valueize (valueize, _q50);
2074 : 0 : switch (TREE_CODE (_q50))
2075 : : {
2076 : 0 : case SSA_NAME:
2077 : 0 : if (gimple *_d5 = get_def (valueize, _q50))
2078 : : {
2079 : 0 : if (gassign *_a5 = dyn_cast <gassign *> (_d5))
2080 : 0 : switch (gimple_assign_rhs_code (_a5))
2081 : : {
2082 : 0 : case LSHIFT_EXPR:
2083 : 0 : {
2084 : 0 : tree _q60 = gimple_assign_rhs1 (_a5);
2085 : 0 : _q60 = do_valueize (valueize, _q60);
2086 : 0 : tree _q61 = gimple_assign_rhs2 (_a5);
2087 : 0 : _q61 = do_valueize (valueize, _q61);
2088 : 0 : if (integer_onep (_q60))
2089 : : {
2090 : 0 : switch (TREE_CODE (_p1))
2091 : : {
2092 : 0 : case SSA_NAME:
2093 : 0 : if (gimple *_d6 = get_def (valueize, _p1))
2094 : : {
2095 : 0 : if (gassign *_a6 = dyn_cast <gassign *> (_d6))
2096 : 0 : switch (gimple_assign_rhs_code (_a6))
2097 : : {
2098 : 0 : CASE_CONVERT:
2099 : 0 : {
2100 : 0 : tree _q100 = gimple_assign_rhs1 (_a6);
2101 : 0 : _q100 = do_valueize (valueize, _q100);
2102 : 0 : if ((_q100 == _q50 && ! TREE_SIDE_EFFECTS (_q100)) || (operand_equal_p (_q100, _q50, 0) && types_match (_q100, _q50)))
2103 : : {
2104 : 0 : {
2105 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _q31, _q50, _p0, _q30, _q60, _q61, _q32 };
2106 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
2107 : : )
2108 : : {
2109 : 0 : {
2110 : 0 : res_ops[0] = captures[0];
2111 : 0 : res_ops[1] = captures[1];
2112 : 0 : res_ops[2] = captures[2];
2113 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 90, __FILE__, __LINE__, false);
2114 : 0 : return true;
2115 : : }
2116 : : }
2117 : : }
2118 : : }
2119 : : break;
2120 : : }
2121 : : default:;
2122 : : }
2123 : : }
2124 : : break;
2125 : 0 : default:;
2126 : : }
2127 : 0 : if ((_p1 == _q50 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q50, 0) && types_match (_p1, _q50)))
2128 : : {
2129 : 0 : {
2130 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _q31, _q50, _p0, _q30, _q60, _q61, _q32 };
2131 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
2132 : : )
2133 : : {
2134 : 0 : {
2135 : 0 : res_ops[0] = captures[0];
2136 : 0 : res_ops[1] = captures[1];
2137 : 0 : res_ops[2] = captures[2];
2138 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 90, __FILE__, __LINE__, false);
2139 : 0 : return true;
2140 : : }
2141 : : }
2142 : : }
2143 : : }
2144 : : }
2145 : : break;
2146 : : }
2147 : : default:;
2148 : : }
2149 : : }
2150 : : break;
2151 : : default:;
2152 : : }
2153 : : break;
2154 : : }
2155 : : default:;
2156 : : }
2157 : : }
2158 : : break;
2159 : 6 : case INTEGER_CST:
2160 : 6 : {
2161 : 6 : switch (TREE_CODE (_p1))
2162 : : {
2163 : 6 : case INTEGER_CST:
2164 : 6 : {
2165 : 6 : {
2166 : 6 : tree captures[6] ATTRIBUTE_UNUSED = { _q31, _p1, _p0, t, _q30, _q32 };
2167 : 6 : {
2168 : 6 : int ibit = wi::exact_log2 (wi::zext (wi::bit_not (wi::to_wide (captures[0])),
2169 : 6 : TYPE_PRECISION(type)));
2170 : 6 : int ibit2 = tree_log2 (captures[1]);
2171 : 6 : if (ibit == ibit2
2172 : 6 : && ibit >= 0
2173 : 6 : && TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
2174 : : )
2175 : : {
2176 : 6 : {
2177 : 6 : res_ops[0] = captures[0];
2178 : 6 : res_ops[1] = captures[1];
2179 : 6 : res_ops[2] = captures[2];
2180 : 6 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 91, __FILE__, __LINE__, false);
2181 : 6 : return true;
2182 : : }
2183 : : }
2184 : : }
2185 : : }
2186 : : break;
2187 : : }
2188 : : default:;
2189 : : }
2190 : : break;
2191 : : }
2192 : 10 : default:;
2193 : : }
2194 : 10 : {
2195 : 10 : tree _q31_pops[1];
2196 : 10 : if (gimple_nop_convert (_q31, _q31_pops, valueize))
2197 : : {
2198 : 10 : tree _q50 = _q31_pops[0];
2199 : 10 : switch (TREE_CODE (_q50))
2200 : : {
2201 : 10 : case SSA_NAME:
2202 : 10 : if (gimple *_d4 = get_def (valueize, _q50))
2203 : : {
2204 : 10 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
2205 : 10 : switch (gimple_assign_rhs_code (_a4))
2206 : : {
2207 : 10 : case BIT_NOT_EXPR:
2208 : 10 : {
2209 : 10 : tree _q60 = gimple_assign_rhs1 (_a4);
2210 : 10 : _q60 = do_valueize (valueize, _q60);
2211 : 10 : switch (TREE_CODE (_q60))
2212 : : {
2213 : 10 : case SSA_NAME:
2214 : 10 : if (gimple *_d5 = get_def (valueize, _q60))
2215 : : {
2216 : 10 : if (gassign *_a5 = dyn_cast <gassign *> (_d5))
2217 : 8 : switch (gimple_assign_rhs_code (_a5))
2218 : : {
2219 : 8 : case LSHIFT_EXPR:
2220 : 8 : {
2221 : 8 : tree _q70 = gimple_assign_rhs1 (_a5);
2222 : 8 : _q70 = do_valueize (valueize, _q70);
2223 : 8 : tree _q71 = gimple_assign_rhs2 (_a5);
2224 : 8 : _q71 = do_valueize (valueize, _q71);
2225 : 8 : if (integer_onep (_q70))
2226 : : {
2227 : 8 : switch (TREE_CODE (_p1))
2228 : : {
2229 : 8 : case SSA_NAME:
2230 : 8 : if (gimple *_d6 = get_def (valueize, _p1))
2231 : : {
2232 : 8 : if (gassign *_a6 = dyn_cast <gassign *> (_d6))
2233 : 8 : switch (gimple_assign_rhs_code (_a6))
2234 : : {
2235 : 2 : CASE_CONVERT:
2236 : 2 : {
2237 : 2 : tree _q110 = gimple_assign_rhs1 (_a6);
2238 : 2 : _q110 = do_valueize (valueize, _q110);
2239 : 2 : if ((_q110 == _q60 && ! TREE_SIDE_EFFECTS (_q110)) || (operand_equal_p (_q110, _q60, 0) && types_match (_q110, _q60)))
2240 : : {
2241 : 2 : {
2242 : 2 : tree captures[7] ATTRIBUTE_UNUSED = { _q31, _q60, _p0, _q30, _q70, _q71, _q32 };
2243 : 2 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
2244 : : )
2245 : : {
2246 : 2 : {
2247 : 2 : res_ops[0] = captures[0];
2248 : 2 : res_ops[1] = captures[1];
2249 : 2 : res_ops[2] = captures[2];
2250 : 2 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 90, __FILE__, __LINE__, false);
2251 : 2 : return true;
2252 : : }
2253 : : }
2254 : : }
2255 : : }
2256 : : break;
2257 : : }
2258 : : default:;
2259 : : }
2260 : : }
2261 : : break;
2262 : 6 : default:;
2263 : : }
2264 : 6 : if ((_p1 == _q60 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q60, 0) && types_match (_p1, _q60)))
2265 : : {
2266 : 6 : {
2267 : 6 : tree captures[7] ATTRIBUTE_UNUSED = { _q31, _q60, _p0, _q30, _q70, _q71, _q32 };
2268 : 6 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
2269 : : )
2270 : : {
2271 : 6 : {
2272 : 6 : res_ops[0] = captures[0];
2273 : 6 : res_ops[1] = captures[1];
2274 : 6 : res_ops[2] = captures[2];
2275 : 6 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 90, __FILE__, __LINE__, false);
2276 : 6 : return true;
2277 : : }
2278 : : }
2279 : : }
2280 : : }
2281 : : }
2282 : : break;
2283 : : }
2284 : : default:;
2285 : : }
2286 : : }
2287 : : break;
2288 : : default:;
2289 : : }
2290 : : break;
2291 : : }
2292 : : default:;
2293 : : }
2294 : : }
2295 : : break;
2296 : : default:;
2297 : : }
2298 : : }
2299 : : }
2300 : : }
2301 : : break;
2302 : 10 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_1:
2303 : 10 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_2:
2304 : 10 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_4:
2305 : 10 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_8:
2306 : 10 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_16:
2307 : 10 : if (gimple_call_num_args (_c3) == 2)
2308 : : {
2309 : 10 : tree _q30 = gimple_call_arg (_c3, 0);
2310 : 10 : _q30 = do_valueize (valueize, _q30);
2311 : 10 : tree _q31 = gimple_call_arg (_c3, 1);
2312 : 10 : _q31 = do_valueize (valueize, _q31);
2313 : 10 : switch (TREE_CODE (_q31))
2314 : : {
2315 : 6 : case INTEGER_CST:
2316 : 6 : {
2317 : 6 : switch (TREE_CODE (_p1))
2318 : : {
2319 : 6 : case INTEGER_CST:
2320 : 6 : {
2321 : 6 : {
2322 : 6 : tree captures[5] ATTRIBUTE_UNUSED = { _q31, _p1, _p0, t, _q30 };
2323 : 6 : {
2324 : 6 : int ibit = wi::exact_log2 (wi::zext (wi::bit_not (wi::to_wide (captures[0])),
2325 : 6 : TYPE_PRECISION(type)));
2326 : 6 : int ibit2 = tree_log2 (captures[1]);
2327 : 6 : if (ibit == ibit2
2328 : 6 : && ibit >= 0
2329 : 6 : && TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
2330 : : )
2331 : : {
2332 : 6 : {
2333 : 6 : res_ops[0] = captures[0];
2334 : 6 : res_ops[1] = captures[1];
2335 : 6 : res_ops[2] = captures[2];
2336 : 6 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 92, __FILE__, __LINE__, false);
2337 : 6 : return true;
2338 : : }
2339 : : }
2340 : : }
2341 : : }
2342 : : break;
2343 : : }
2344 : : default:;
2345 : : }
2346 : : break;
2347 : : }
2348 : : default:;
2349 : : }
2350 : : }
2351 : : break;
2352 : : default:;
2353 : : }
2354 : : }
2355 : : break;
2356 : 6 : default:;
2357 : : }
2358 : 6 : switch (TREE_CODE (_p1))
2359 : : {
2360 : 6 : case SSA_NAME:
2361 : 6 : if (gimple *_d3 = get_def (valueize, _p1))
2362 : : {
2363 : 6 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
2364 : 4 : switch (gimple_assign_rhs_code (_a3))
2365 : : {
2366 : 2 : CASE_CONVERT:
2367 : 2 : {
2368 : 2 : tree _q40 = gimple_assign_rhs1 (_a3);
2369 : 2 : _q40 = do_valueize (valueize, _q40);
2370 : 2 : switch (TREE_CODE (_q40))
2371 : : {
2372 : 2 : case SSA_NAME:
2373 : 2 : if (gimple *_d4 = get_def (valueize, _q40))
2374 : : {
2375 : 2 : if (gcall *_c4 = dyn_cast <gcall *> (_d4))
2376 : 0 : switch (gimple_call_combined_fn (_c4))
2377 : : {
2378 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_AND_1:
2379 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_AND_2:
2380 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_AND_4:
2381 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_AND_8:
2382 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_AND_16:
2383 : 0 : if (gimple_call_num_args (_c4) == 3)
2384 : : {
2385 : 0 : tree _q50 = gimple_call_arg (_c4, 0);
2386 : 0 : _q50 = do_valueize (valueize, _q50);
2387 : 0 : tree _q51 = gimple_call_arg (_c4, 1);
2388 : 0 : _q51 = do_valueize (valueize, _q51);
2389 : 0 : tree _q52 = gimple_call_arg (_c4, 2);
2390 : 0 : _q52 = do_valueize (valueize, _q52);
2391 : 0 : switch (TREE_CODE (_q51))
2392 : : {
2393 : 0 : case SSA_NAME:
2394 : 0 : if (gimple *_d5 = get_def (valueize, _q51))
2395 : : {
2396 : 0 : if (gassign *_a5 = dyn_cast <gassign *> (_d5))
2397 : 0 : switch (gimple_assign_rhs_code (_a5))
2398 : : {
2399 : 0 : case BIT_NOT_EXPR:
2400 : 0 : {
2401 : 0 : tree _q70 = gimple_assign_rhs1 (_a5);
2402 : 0 : _q70 = do_valueize (valueize, _q70);
2403 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
2404 : : {
2405 : 0 : switch (TREE_CODE (_q70))
2406 : : {
2407 : 0 : case SSA_NAME:
2408 : 0 : if (gimple *_d6 = get_def (valueize, _q70))
2409 : : {
2410 : 0 : if (gassign *_a6 = dyn_cast <gassign *> (_d6))
2411 : 0 : switch (gimple_assign_rhs_code (_a6))
2412 : : {
2413 : 0 : case LSHIFT_EXPR:
2414 : 0 : {
2415 : 0 : tree _q90 = gimple_assign_rhs1 (_a6);
2416 : 0 : _q90 = do_valueize (valueize, _q90);
2417 : 0 : tree _q91 = gimple_assign_rhs2 (_a6);
2418 : 0 : _q91 = do_valueize (valueize, _q91);
2419 : 0 : if (integer_onep (_q90))
2420 : : {
2421 : 0 : {
2422 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _q51, _q20, _p1, _q50, _q90, _q91, _q52 };
2423 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
2424 : : )
2425 : : {
2426 : 0 : {
2427 : 0 : res_ops[0] = captures[0];
2428 : 0 : res_ops[1] = captures[1];
2429 : 0 : res_ops[2] = captures[2];
2430 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 90, __FILE__, __LINE__, false);
2431 : 0 : return true;
2432 : : }
2433 : : }
2434 : : }
2435 : : }
2436 : : break;
2437 : : }
2438 : : default:;
2439 : : }
2440 : : }
2441 : : break;
2442 : : default:;
2443 : : }
2444 : : }
2445 : : break;
2446 : : }
2447 : : default:;
2448 : : }
2449 : : }
2450 : : break;
2451 : 0 : default:;
2452 : : }
2453 : 0 : {
2454 : 0 : tree _q51_pops[1];
2455 : 0 : if (gimple_nop_convert (_q51, _q51_pops, valueize))
2456 : : {
2457 : 0 : tree _q70 = _q51_pops[0];
2458 : 0 : switch (TREE_CODE (_q70))
2459 : : {
2460 : 0 : case SSA_NAME:
2461 : 0 : if (gimple *_d5 = get_def (valueize, _q70))
2462 : : {
2463 : 0 : if (gassign *_a5 = dyn_cast <gassign *> (_d5))
2464 : 0 : switch (gimple_assign_rhs_code (_a5))
2465 : : {
2466 : 0 : case BIT_NOT_EXPR:
2467 : 0 : {
2468 : 0 : tree _q80 = gimple_assign_rhs1 (_a5);
2469 : 0 : _q80 = do_valueize (valueize, _q80);
2470 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
2471 : : {
2472 : 0 : switch (TREE_CODE (_q80))
2473 : : {
2474 : 0 : case SSA_NAME:
2475 : 0 : if (gimple *_d6 = get_def (valueize, _q80))
2476 : : {
2477 : 0 : if (gassign *_a6 = dyn_cast <gassign *> (_d6))
2478 : 0 : switch (gimple_assign_rhs_code (_a6))
2479 : : {
2480 : 0 : case LSHIFT_EXPR:
2481 : 0 : {
2482 : 0 : tree _q100 = gimple_assign_rhs1 (_a6);
2483 : 0 : _q100 = do_valueize (valueize, _q100);
2484 : 0 : tree _q101 = gimple_assign_rhs2 (_a6);
2485 : 0 : _q101 = do_valueize (valueize, _q101);
2486 : 0 : if (integer_onep (_q100))
2487 : : {
2488 : 0 : {
2489 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _q51, _q20, _p1, _q50, _q100, _q101, _q52 };
2490 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
2491 : : )
2492 : : {
2493 : 0 : {
2494 : 0 : res_ops[0] = captures[0];
2495 : 0 : res_ops[1] = captures[1];
2496 : 0 : res_ops[2] = captures[2];
2497 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 90, __FILE__, __LINE__, false);
2498 : 0 : return true;
2499 : : }
2500 : : }
2501 : : }
2502 : : }
2503 : : break;
2504 : : }
2505 : : default:;
2506 : : }
2507 : : }
2508 : : break;
2509 : : default:;
2510 : : }
2511 : : }
2512 : : break;
2513 : : }
2514 : : default:;
2515 : : }
2516 : : }
2517 : : break;
2518 : : default:;
2519 : : }
2520 : : }
2521 : : }
2522 : : }
2523 : : break;
2524 : : default:;
2525 : : }
2526 : : }
2527 : : break;
2528 : : default:;
2529 : : }
2530 : : break;
2531 : : }
2532 : : default:;
2533 : : }
2534 : 2 : else if (gcall *_c3 = dyn_cast <gcall *> (_d3))
2535 : 0 : switch (gimple_call_combined_fn (_c3))
2536 : : {
2537 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_AND_1:
2538 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_AND_2:
2539 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_AND_4:
2540 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_AND_8:
2541 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_AND_16:
2542 : 0 : if (gimple_call_num_args (_c3) == 3)
2543 : : {
2544 : 0 : tree _q40 = gimple_call_arg (_c3, 0);
2545 : 0 : _q40 = do_valueize (valueize, _q40);
2546 : 0 : tree _q41 = gimple_call_arg (_c3, 1);
2547 : 0 : _q41 = do_valueize (valueize, _q41);
2548 : 0 : tree _q42 = gimple_call_arg (_c3, 2);
2549 : 0 : _q42 = do_valueize (valueize, _q42);
2550 : 0 : switch (TREE_CODE (_q41))
2551 : : {
2552 : 0 : case SSA_NAME:
2553 : 0 : if (gimple *_d4 = get_def (valueize, _q41))
2554 : : {
2555 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
2556 : 0 : switch (gimple_assign_rhs_code (_a4))
2557 : : {
2558 : 0 : case BIT_NOT_EXPR:
2559 : 0 : {
2560 : 0 : tree _q60 = gimple_assign_rhs1 (_a4);
2561 : 0 : _q60 = do_valueize (valueize, _q60);
2562 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
2563 : : {
2564 : 0 : switch (TREE_CODE (_q60))
2565 : : {
2566 : 0 : case SSA_NAME:
2567 : 0 : if (gimple *_d5 = get_def (valueize, _q60))
2568 : : {
2569 : 0 : if (gassign *_a5 = dyn_cast <gassign *> (_d5))
2570 : 0 : switch (gimple_assign_rhs_code (_a5))
2571 : : {
2572 : 0 : case LSHIFT_EXPR:
2573 : 0 : {
2574 : 0 : tree _q80 = gimple_assign_rhs1 (_a5);
2575 : 0 : _q80 = do_valueize (valueize, _q80);
2576 : 0 : tree _q81 = gimple_assign_rhs2 (_a5);
2577 : 0 : _q81 = do_valueize (valueize, _q81);
2578 : 0 : if (integer_onep (_q80))
2579 : : {
2580 : 0 : {
2581 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _q41, _q20, _p1, _q40, _q80, _q81, _q42 };
2582 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
2583 : : )
2584 : : {
2585 : 0 : {
2586 : 0 : res_ops[0] = captures[0];
2587 : 0 : res_ops[1] = captures[1];
2588 : 0 : res_ops[2] = captures[2];
2589 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 90, __FILE__, __LINE__, false);
2590 : 0 : return true;
2591 : : }
2592 : : }
2593 : : }
2594 : : }
2595 : : break;
2596 : : }
2597 : : default:;
2598 : : }
2599 : : }
2600 : : break;
2601 : : default:;
2602 : : }
2603 : : }
2604 : : break;
2605 : : }
2606 : : default:;
2607 : : }
2608 : : }
2609 : : break;
2610 : 0 : default:;
2611 : : }
2612 : 0 : {
2613 : 0 : tree _q41_pops[1];
2614 : 0 : if (gimple_nop_convert (_q41, _q41_pops, valueize))
2615 : : {
2616 : 0 : tree _q60 = _q41_pops[0];
2617 : 0 : switch (TREE_CODE (_q60))
2618 : : {
2619 : 0 : case SSA_NAME:
2620 : 0 : if (gimple *_d4 = get_def (valueize, _q60))
2621 : : {
2622 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
2623 : 0 : switch (gimple_assign_rhs_code (_a4))
2624 : : {
2625 : 0 : case BIT_NOT_EXPR:
2626 : 0 : {
2627 : 0 : tree _q70 = gimple_assign_rhs1 (_a4);
2628 : 0 : _q70 = do_valueize (valueize, _q70);
2629 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
2630 : : {
2631 : 0 : switch (TREE_CODE (_q70))
2632 : : {
2633 : 0 : case SSA_NAME:
2634 : 0 : if (gimple *_d5 = get_def (valueize, _q70))
2635 : : {
2636 : 0 : if (gassign *_a5 = dyn_cast <gassign *> (_d5))
2637 : 0 : switch (gimple_assign_rhs_code (_a5))
2638 : : {
2639 : 0 : case LSHIFT_EXPR:
2640 : 0 : {
2641 : 0 : tree _q90 = gimple_assign_rhs1 (_a5);
2642 : 0 : _q90 = do_valueize (valueize, _q90);
2643 : 0 : tree _q91 = gimple_assign_rhs2 (_a5);
2644 : 0 : _q91 = do_valueize (valueize, _q91);
2645 : 0 : if (integer_onep (_q90))
2646 : : {
2647 : 0 : {
2648 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _q41, _q20, _p1, _q40, _q90, _q91, _q42 };
2649 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
2650 : : )
2651 : : {
2652 : 0 : {
2653 : 0 : res_ops[0] = captures[0];
2654 : 0 : res_ops[1] = captures[1];
2655 : 0 : res_ops[2] = captures[2];
2656 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 90, __FILE__, __LINE__, false);
2657 : 0 : return true;
2658 : : }
2659 : : }
2660 : : }
2661 : : }
2662 : : break;
2663 : : }
2664 : : default:;
2665 : : }
2666 : : }
2667 : : break;
2668 : : default:;
2669 : : }
2670 : : }
2671 : : break;
2672 : : }
2673 : : default:;
2674 : : }
2675 : : }
2676 : : break;
2677 : : default:;
2678 : : }
2679 : : }
2680 : : }
2681 : : }
2682 : : break;
2683 : : default:;
2684 : : }
2685 : : }
2686 : : break;
2687 : : default:;
2688 : : }
2689 : : break;
2690 : : }
2691 : : default:;
2692 : : }
2693 : : }
2694 : : break;
2695 : 6 : default:;
2696 : : }
2697 : 6 : switch (TREE_CODE (_p1))
2698 : : {
2699 : 6 : case SSA_NAME:
2700 : 6 : if (gimple *_d2 = get_def (valueize, _p1))
2701 : : {
2702 : 6 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
2703 : 4 : switch (gimple_assign_rhs_code (_a2))
2704 : : {
2705 : 2 : CASE_CONVERT:
2706 : 2 : {
2707 : 2 : tree _q30 = gimple_assign_rhs1 (_a2);
2708 : 2 : _q30 = do_valueize (valueize, _q30);
2709 : 2 : switch (TREE_CODE (_q30))
2710 : : {
2711 : 2 : case SSA_NAME:
2712 : 2 : if (gimple *_d3 = get_def (valueize, _q30))
2713 : : {
2714 : 2 : if (gcall *_c3 = dyn_cast <gcall *> (_d3))
2715 : 0 : switch (gimple_call_combined_fn (_c3))
2716 : : {
2717 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_1:
2718 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_2:
2719 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_4:
2720 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_8:
2721 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_16:
2722 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_1:
2723 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_2:
2724 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_4:
2725 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_8:
2726 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_16:
2727 : 0 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_1:
2728 : 0 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_2:
2729 : 0 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_4:
2730 : 0 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_8:
2731 : 0 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_16:
2732 : 0 : if (gimple_call_num_args (_c3) == 2)
2733 : : {
2734 : 0 : tree _q40 = gimple_call_arg (_c3, 0);
2735 : 0 : _q40 = do_valueize (valueize, _q40);
2736 : 0 : tree _q41 = gimple_call_arg (_c3, 1);
2737 : 0 : _q41 = do_valueize (valueize, _q41);
2738 : 0 : {
2739 : 0 : tree _q41_pops[1];
2740 : 0 : if (gimple_nop_convert (_q41, _q41_pops, valueize))
2741 : : {
2742 : 0 : tree _q60 = _q41_pops[0];
2743 : 0 : if ((_q60 == _p0 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _p0, 0) && types_match (_q60, _p0)))
2744 : : {
2745 : 0 : switch (TREE_CODE (_q60))
2746 : : {
2747 : 0 : case SSA_NAME:
2748 : 0 : if (gimple *_d4 = get_def (valueize, _q60))
2749 : : {
2750 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
2751 : 0 : switch (gimple_assign_rhs_code (_a4))
2752 : : {
2753 : 0 : case LSHIFT_EXPR:
2754 : 0 : {
2755 : 0 : tree _q80 = gimple_assign_rhs1 (_a4);
2756 : 0 : _q80 = do_valueize (valueize, _q80);
2757 : 0 : tree _q81 = gimple_assign_rhs2 (_a4);
2758 : 0 : _q81 = do_valueize (valueize, _q81);
2759 : 0 : if (integer_onep (_q80))
2760 : : {
2761 : 0 : {
2762 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q80, _q81 };
2763 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
2764 : : )
2765 : : {
2766 : 0 : {
2767 : 0 : res_ops[0] = captures[0];
2768 : 0 : res_ops[1] = captures[0];
2769 : 0 : res_ops[2] = captures[1];
2770 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 89, __FILE__, __LINE__, false);
2771 : 0 : return true;
2772 : : }
2773 : : }
2774 : : }
2775 : : }
2776 : : break;
2777 : : }
2778 : : default:;
2779 : : }
2780 : : }
2781 : : break;
2782 : : default:;
2783 : : }
2784 : : }
2785 : : }
2786 : : }
2787 : 0 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
2788 : : {
2789 : 0 : switch (TREE_CODE (_q41))
2790 : : {
2791 : 0 : case SSA_NAME:
2792 : 0 : if (gimple *_d4 = get_def (valueize, _q41))
2793 : : {
2794 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
2795 : 0 : switch (gimple_assign_rhs_code (_a4))
2796 : : {
2797 : 0 : case LSHIFT_EXPR:
2798 : 0 : {
2799 : 0 : tree _q70 = gimple_assign_rhs1 (_a4);
2800 : 0 : _q70 = do_valueize (valueize, _q70);
2801 : 0 : tree _q71 = gimple_assign_rhs2 (_a4);
2802 : 0 : _q71 = do_valueize (valueize, _q71);
2803 : 0 : if (integer_onep (_q70))
2804 : : {
2805 : 0 : {
2806 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q40, _q70, _q71 };
2807 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
2808 : : )
2809 : : {
2810 : 0 : {
2811 : 0 : res_ops[0] = captures[0];
2812 : 0 : res_ops[1] = captures[0];
2813 : 0 : res_ops[2] = captures[1];
2814 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 89, __FILE__, __LINE__, false);
2815 : 0 : return true;
2816 : : }
2817 : : }
2818 : : }
2819 : : }
2820 : : break;
2821 : : }
2822 : : default:;
2823 : : }
2824 : : }
2825 : : break;
2826 : : default:;
2827 : : }
2828 : : }
2829 : : }
2830 : : break;
2831 : : default:;
2832 : : }
2833 : : }
2834 : : break;
2835 : : default:;
2836 : : }
2837 : : break;
2838 : : }
2839 : : default:;
2840 : : }
2841 : 2 : else if (gcall *_c2 = dyn_cast <gcall *> (_d2))
2842 : 0 : switch (gimple_call_combined_fn (_c2))
2843 : : {
2844 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_1:
2845 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_2:
2846 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_4:
2847 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_8:
2848 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_OR_16:
2849 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_1:
2850 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_2:
2851 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_4:
2852 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_8:
2853 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_XOR_16:
2854 : 0 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_1:
2855 : 0 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_2:
2856 : 0 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_4:
2857 : 0 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_8:
2858 : 0 : case CFN_BUILT_IN_SYNC_XOR_AND_FETCH_16:
2859 : 0 : if (gimple_call_num_args (_c2) == 2)
2860 : : {
2861 : 0 : tree _q30 = gimple_call_arg (_c2, 0);
2862 : 0 : _q30 = do_valueize (valueize, _q30);
2863 : 0 : tree _q31 = gimple_call_arg (_c2, 1);
2864 : 0 : _q31 = do_valueize (valueize, _q31);
2865 : 0 : {
2866 : 0 : tree _q31_pops[1];
2867 : 0 : if (gimple_nop_convert (_q31, _q31_pops, valueize))
2868 : : {
2869 : 0 : tree _q50 = _q31_pops[0];
2870 : 0 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
2871 : : {
2872 : 0 : switch (TREE_CODE (_q50))
2873 : : {
2874 : 0 : case SSA_NAME:
2875 : 0 : if (gimple *_d3 = get_def (valueize, _q50))
2876 : : {
2877 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
2878 : 0 : switch (gimple_assign_rhs_code (_a3))
2879 : : {
2880 : 0 : case LSHIFT_EXPR:
2881 : 0 : {
2882 : 0 : tree _q70 = gimple_assign_rhs1 (_a3);
2883 : 0 : _q70 = do_valueize (valueize, _q70);
2884 : 0 : tree _q71 = gimple_assign_rhs2 (_a3);
2885 : 0 : _q71 = do_valueize (valueize, _q71);
2886 : 0 : if (integer_onep (_q70))
2887 : : {
2888 : 0 : {
2889 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q70, _q71 };
2890 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
2891 : : )
2892 : : {
2893 : 0 : {
2894 : 0 : res_ops[0] = captures[0];
2895 : 0 : res_ops[1] = captures[0];
2896 : 0 : res_ops[2] = captures[1];
2897 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 89, __FILE__, __LINE__, false);
2898 : 0 : return true;
2899 : : }
2900 : : }
2901 : : }
2902 : : }
2903 : : break;
2904 : : }
2905 : : default:;
2906 : : }
2907 : : }
2908 : : break;
2909 : : default:;
2910 : : }
2911 : : }
2912 : : }
2913 : : }
2914 : 0 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
2915 : : {
2916 : 0 : switch (TREE_CODE (_q31))
2917 : : {
2918 : 0 : case SSA_NAME:
2919 : 0 : if (gimple *_d3 = get_def (valueize, _q31))
2920 : : {
2921 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
2922 : 0 : switch (gimple_assign_rhs_code (_a3))
2923 : : {
2924 : 0 : case LSHIFT_EXPR:
2925 : 0 : {
2926 : 0 : tree _q60 = gimple_assign_rhs1 (_a3);
2927 : 0 : _q60 = do_valueize (valueize, _q60);
2928 : 0 : tree _q61 = gimple_assign_rhs2 (_a3);
2929 : 0 : _q61 = do_valueize (valueize, _q61);
2930 : 0 : if (integer_onep (_q60))
2931 : : {
2932 : 0 : {
2933 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q60, _q61 };
2934 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
2935 : : )
2936 : : {
2937 : 0 : {
2938 : 0 : res_ops[0] = captures[0];
2939 : 0 : res_ops[1] = captures[0];
2940 : 0 : res_ops[2] = captures[1];
2941 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 89, __FILE__, __LINE__, false);
2942 : 0 : return true;
2943 : : }
2944 : : }
2945 : : }
2946 : : }
2947 : : break;
2948 : : }
2949 : : default:;
2950 : : }
2951 : : }
2952 : : break;
2953 : : default:;
2954 : : }
2955 : : }
2956 : : }
2957 : : break;
2958 : : default:;
2959 : : }
2960 : : }
2961 : : break;
2962 : 6 : default:;
2963 : : }
2964 : 6 : switch (TREE_CODE (_p0))
2965 : : {
2966 : 6 : case SSA_NAME:
2967 : 6 : if (gimple *_d2 = get_def (valueize, _p0))
2968 : : {
2969 : 6 : if (gcall *_c2 = dyn_cast <gcall *> (_d2))
2970 : 0 : switch (gimple_call_combined_fn (_c2))
2971 : : {
2972 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_AND_1:
2973 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_AND_2:
2974 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_AND_4:
2975 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_AND_8:
2976 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_AND_16:
2977 : 0 : if (gimple_call_num_args (_c2) == 3)
2978 : : {
2979 : 0 : tree _q20 = gimple_call_arg (_c2, 0);
2980 : 0 : _q20 = do_valueize (valueize, _q20);
2981 : 0 : tree _q21 = gimple_call_arg (_c2, 1);
2982 : 0 : _q21 = do_valueize (valueize, _q21);
2983 : 0 : tree _q22 = gimple_call_arg (_c2, 2);
2984 : 0 : _q22 = do_valueize (valueize, _q22);
2985 : 0 : switch (TREE_CODE (_q21))
2986 : : {
2987 : 0 : case SSA_NAME:
2988 : 0 : if (gimple *_d3 = get_def (valueize, _q21))
2989 : : {
2990 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
2991 : 0 : switch (gimple_assign_rhs_code (_a3))
2992 : : {
2993 : 0 : case BIT_NOT_EXPR:
2994 : 0 : {
2995 : 0 : tree _q40 = gimple_assign_rhs1 (_a3);
2996 : 0 : _q40 = do_valueize (valueize, _q40);
2997 : 0 : switch (TREE_CODE (_q40))
2998 : : {
2999 : 0 : case SSA_NAME:
3000 : 0 : if (gimple *_d4 = get_def (valueize, _q40))
3001 : : {
3002 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
3003 : 0 : switch (gimple_assign_rhs_code (_a4))
3004 : : {
3005 : 0 : case LSHIFT_EXPR:
3006 : 0 : {
3007 : 0 : tree _q50 = gimple_assign_rhs1 (_a4);
3008 : 0 : _q50 = do_valueize (valueize, _q50);
3009 : 0 : tree _q51 = gimple_assign_rhs2 (_a4);
3010 : 0 : _q51 = do_valueize (valueize, _q51);
3011 : 0 : if (integer_onep (_q50))
3012 : : {
3013 : 0 : switch (TREE_CODE (_p1))
3014 : : {
3015 : 0 : case SSA_NAME:
3016 : 0 : if (gimple *_d5 = get_def (valueize, _p1))
3017 : : {
3018 : 0 : if (gassign *_a5 = dyn_cast <gassign *> (_d5))
3019 : 0 : switch (gimple_assign_rhs_code (_a5))
3020 : : {
3021 : 0 : CASE_CONVERT:
3022 : 0 : {
3023 : 0 : tree _q90 = gimple_assign_rhs1 (_a5);
3024 : 0 : _q90 = do_valueize (valueize, _q90);
3025 : 0 : if ((_q90 == _q40 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q40, 0) && types_match (_q90, _q40)))
3026 : : {
3027 : 0 : {
3028 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _q21, _q40, _p0, _q20, _q50, _q51, _q22 };
3029 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
3030 : : )
3031 : : {
3032 : 0 : {
3033 : 0 : res_ops[0] = captures[0];
3034 : 0 : res_ops[1] = captures[1];
3035 : 0 : res_ops[2] = captures[2];
3036 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 90, __FILE__, __LINE__, false);
3037 : 0 : return true;
3038 : : }
3039 : : }
3040 : : }
3041 : : }
3042 : : break;
3043 : : }
3044 : : default:;
3045 : : }
3046 : : }
3047 : : break;
3048 : 0 : default:;
3049 : : }
3050 : 0 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
3051 : : {
3052 : 0 : {
3053 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _q21, _q40, _p0, _q20, _q50, _q51, _q22 };
3054 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
3055 : : )
3056 : : {
3057 : 0 : {
3058 : 0 : res_ops[0] = captures[0];
3059 : 0 : res_ops[1] = captures[1];
3060 : 0 : res_ops[2] = captures[2];
3061 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 90, __FILE__, __LINE__, false);
3062 : 0 : return true;
3063 : : }
3064 : : }
3065 : : }
3066 : : }
3067 : : }
3068 : : break;
3069 : : }
3070 : : default:;
3071 : : }
3072 : : }
3073 : : break;
3074 : : default:;
3075 : : }
3076 : : break;
3077 : : }
3078 : : default:;
3079 : : }
3080 : : }
3081 : : break;
3082 : 0 : case INTEGER_CST:
3083 : 0 : {
3084 : 0 : switch (TREE_CODE (_p1))
3085 : : {
3086 : 0 : case INTEGER_CST:
3087 : 0 : {
3088 : 0 : {
3089 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q21, _p1, _p0, t, _q20, _q22 };
3090 : 0 : {
3091 : 0 : int ibit = wi::exact_log2 (wi::zext (wi::bit_not (wi::to_wide (captures[0])),
3092 : 0 : TYPE_PRECISION(type)));
3093 : 0 : int ibit2 = tree_log2 (captures[1]);
3094 : 0 : if (ibit == ibit2
3095 : 0 : && ibit >= 0
3096 : 0 : && TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
3097 : : )
3098 : : {
3099 : 0 : {
3100 : 0 : res_ops[0] = captures[0];
3101 : 0 : res_ops[1] = captures[1];
3102 : 0 : res_ops[2] = captures[2];
3103 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 91, __FILE__, __LINE__, false);
3104 : 0 : return true;
3105 : : }
3106 : : }
3107 : : }
3108 : : }
3109 : : break;
3110 : : }
3111 : : default:;
3112 : : }
3113 : : break;
3114 : : }
3115 : 0 : default:;
3116 : : }
3117 : 0 : {
3118 : 0 : tree _q21_pops[1];
3119 : 0 : if (gimple_nop_convert (_q21, _q21_pops, valueize))
3120 : : {
3121 : 0 : tree _q40 = _q21_pops[0];
3122 : 0 : switch (TREE_CODE (_q40))
3123 : : {
3124 : 0 : case SSA_NAME:
3125 : 0 : if (gimple *_d3 = get_def (valueize, _q40))
3126 : : {
3127 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
3128 : 0 : switch (gimple_assign_rhs_code (_a3))
3129 : : {
3130 : 0 : case BIT_NOT_EXPR:
3131 : 0 : {
3132 : 0 : tree _q50 = gimple_assign_rhs1 (_a3);
3133 : 0 : _q50 = do_valueize (valueize, _q50);
3134 : 0 : switch (TREE_CODE (_q50))
3135 : : {
3136 : 0 : case SSA_NAME:
3137 : 0 : if (gimple *_d4 = get_def (valueize, _q50))
3138 : : {
3139 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
3140 : 0 : switch (gimple_assign_rhs_code (_a4))
3141 : : {
3142 : 0 : case LSHIFT_EXPR:
3143 : 0 : {
3144 : 0 : tree _q60 = gimple_assign_rhs1 (_a4);
3145 : 0 : _q60 = do_valueize (valueize, _q60);
3146 : 0 : tree _q61 = gimple_assign_rhs2 (_a4);
3147 : 0 : _q61 = do_valueize (valueize, _q61);
3148 : 0 : if (integer_onep (_q60))
3149 : : {
3150 : 0 : switch (TREE_CODE (_p1))
3151 : : {
3152 : 0 : case SSA_NAME:
3153 : 0 : if (gimple *_d5 = get_def (valueize, _p1))
3154 : : {
3155 : 0 : if (gassign *_a5 = dyn_cast <gassign *> (_d5))
3156 : 0 : switch (gimple_assign_rhs_code (_a5))
3157 : : {
3158 : 0 : CASE_CONVERT:
3159 : 0 : {
3160 : 0 : tree _q100 = gimple_assign_rhs1 (_a5);
3161 : 0 : _q100 = do_valueize (valueize, _q100);
3162 : 0 : if ((_q100 == _q50 && ! TREE_SIDE_EFFECTS (_q100)) || (operand_equal_p (_q100, _q50, 0) && types_match (_q100, _q50)))
3163 : : {
3164 : 0 : {
3165 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _q21, _q50, _p0, _q20, _q60, _q61, _q22 };
3166 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
3167 : : )
3168 : : {
3169 : 0 : {
3170 : 0 : res_ops[0] = captures[0];
3171 : 0 : res_ops[1] = captures[1];
3172 : 0 : res_ops[2] = captures[2];
3173 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 90, __FILE__, __LINE__, false);
3174 : 0 : return true;
3175 : : }
3176 : : }
3177 : : }
3178 : : }
3179 : : break;
3180 : : }
3181 : : default:;
3182 : : }
3183 : : }
3184 : : break;
3185 : 0 : default:;
3186 : : }
3187 : 0 : if ((_p1 == _q50 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q50, 0) && types_match (_p1, _q50)))
3188 : : {
3189 : 0 : {
3190 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _q21, _q50, _p0, _q20, _q60, _q61, _q22 };
3191 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
3192 : : )
3193 : : {
3194 : 0 : {
3195 : 0 : res_ops[0] = captures[0];
3196 : 0 : res_ops[1] = captures[1];
3197 : 0 : res_ops[2] = captures[2];
3198 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 90, __FILE__, __LINE__, false);
3199 : 0 : return true;
3200 : : }
3201 : : }
3202 : : }
3203 : : }
3204 : : }
3205 : : break;
3206 : : }
3207 : : default:;
3208 : : }
3209 : : }
3210 : : break;
3211 : : default:;
3212 : : }
3213 : : break;
3214 : : }
3215 : : default:;
3216 : : }
3217 : : }
3218 : : break;
3219 : : default:;
3220 : : }
3221 : : }
3222 : : }
3223 : : }
3224 : : break;
3225 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_1:
3226 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_2:
3227 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_4:
3228 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_8:
3229 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_16:
3230 : 0 : if (gimple_call_num_args (_c2) == 2)
3231 : : {
3232 : 0 : tree _q20 = gimple_call_arg (_c2, 0);
3233 : 0 : _q20 = do_valueize (valueize, _q20);
3234 : 0 : tree _q21 = gimple_call_arg (_c2, 1);
3235 : 0 : _q21 = do_valueize (valueize, _q21);
3236 : 0 : switch (TREE_CODE (_q21))
3237 : : {
3238 : 0 : case SSA_NAME:
3239 : 0 : if (gimple *_d3 = get_def (valueize, _q21))
3240 : : {
3241 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
3242 : 0 : switch (gimple_assign_rhs_code (_a3))
3243 : : {
3244 : 0 : case BIT_NOT_EXPR:
3245 : 0 : {
3246 : 0 : tree _q40 = gimple_assign_rhs1 (_a3);
3247 : 0 : _q40 = do_valueize (valueize, _q40);
3248 : 0 : switch (TREE_CODE (_q40))
3249 : : {
3250 : 0 : case SSA_NAME:
3251 : 0 : if (gimple *_d4 = get_def (valueize, _q40))
3252 : : {
3253 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
3254 : 0 : switch (gimple_assign_rhs_code (_a4))
3255 : : {
3256 : 0 : case LSHIFT_EXPR:
3257 : 0 : {
3258 : 0 : tree _q50 = gimple_assign_rhs1 (_a4);
3259 : 0 : _q50 = do_valueize (valueize, _q50);
3260 : 0 : tree _q51 = gimple_assign_rhs2 (_a4);
3261 : 0 : _q51 = do_valueize (valueize, _q51);
3262 : 0 : if (integer_onep (_q50))
3263 : : {
3264 : 0 : switch (TREE_CODE (_p1))
3265 : : {
3266 : 0 : case SSA_NAME:
3267 : 0 : if (gimple *_d5 = get_def (valueize, _p1))
3268 : : {
3269 : 0 : if (gassign *_a5 = dyn_cast <gassign *> (_d5))
3270 : 0 : switch (gimple_assign_rhs_code (_a5))
3271 : : {
3272 : 0 : CASE_CONVERT:
3273 : 0 : {
3274 : 0 : tree _q80 = gimple_assign_rhs1 (_a5);
3275 : 0 : _q80 = do_valueize (valueize, _q80);
3276 : 0 : if ((_q80 == _q40 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q40, 0) && types_match (_q80, _q40)))
3277 : : {
3278 : 0 : {
3279 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q21, _q40, _p0, _q20, _q50, _q51 };
3280 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
3281 : : )
3282 : : {
3283 : 0 : {
3284 : 0 : res_ops[0] = captures[0];
3285 : 0 : res_ops[1] = captures[1];
3286 : 0 : res_ops[2] = captures[2];
3287 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 93, __FILE__, __LINE__, false);
3288 : 0 : return true;
3289 : : }
3290 : : }
3291 : : }
3292 : : }
3293 : : break;
3294 : : }
3295 : : default:;
3296 : : }
3297 : : }
3298 : : break;
3299 : 0 : default:;
3300 : : }
3301 : 0 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
3302 : : {
3303 : 0 : {
3304 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q21, _q40, _p0, _q20, _q50, _q51 };
3305 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
3306 : : )
3307 : : {
3308 : 0 : {
3309 : 0 : res_ops[0] = captures[0];
3310 : 0 : res_ops[1] = captures[1];
3311 : 0 : res_ops[2] = captures[2];
3312 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 93, __FILE__, __LINE__, false);
3313 : 0 : return true;
3314 : : }
3315 : : }
3316 : : }
3317 : : }
3318 : : }
3319 : : break;
3320 : : }
3321 : : default:;
3322 : : }
3323 : : }
3324 : : break;
3325 : : default:;
3326 : : }
3327 : : break;
3328 : : }
3329 : : default:;
3330 : : }
3331 : : }
3332 : : break;
3333 : 0 : case INTEGER_CST:
3334 : 0 : {
3335 : 0 : switch (TREE_CODE (_p1))
3336 : : {
3337 : 0 : case INTEGER_CST:
3338 : 0 : {
3339 : 0 : {
3340 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _q21, _p1, _p0, t, _q20 };
3341 : 0 : {
3342 : 0 : int ibit = wi::exact_log2 (wi::zext (wi::bit_not (wi::to_wide (captures[0])),
3343 : 0 : TYPE_PRECISION(type)));
3344 : 0 : int ibit2 = tree_log2 (captures[1]);
3345 : 0 : if (ibit == ibit2
3346 : 0 : && ibit >= 0
3347 : 0 : && TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
3348 : : )
3349 : : {
3350 : 0 : {
3351 : 0 : res_ops[0] = captures[0];
3352 : 0 : res_ops[1] = captures[1];
3353 : 0 : res_ops[2] = captures[2];
3354 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 92, __FILE__, __LINE__, false);
3355 : 0 : return true;
3356 : : }
3357 : : }
3358 : : }
3359 : : }
3360 : : break;
3361 : : }
3362 : : default:;
3363 : : }
3364 : : break;
3365 : : }
3366 : 0 : default:;
3367 : : }
3368 : 0 : {
3369 : 0 : tree _q21_pops[1];
3370 : 0 : if (gimple_nop_convert (_q21, _q21_pops, valueize))
3371 : : {
3372 : 0 : tree _q40 = _q21_pops[0];
3373 : 0 : switch (TREE_CODE (_q40))
3374 : : {
3375 : 0 : case SSA_NAME:
3376 : 0 : if (gimple *_d3 = get_def (valueize, _q40))
3377 : : {
3378 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
3379 : 0 : switch (gimple_assign_rhs_code (_a3))
3380 : : {
3381 : 0 : case BIT_NOT_EXPR:
3382 : 0 : {
3383 : 0 : tree _q50 = gimple_assign_rhs1 (_a3);
3384 : 0 : _q50 = do_valueize (valueize, _q50);
3385 : 0 : switch (TREE_CODE (_q50))
3386 : : {
3387 : 0 : case SSA_NAME:
3388 : 0 : if (gimple *_d4 = get_def (valueize, _q50))
3389 : : {
3390 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
3391 : 0 : switch (gimple_assign_rhs_code (_a4))
3392 : : {
3393 : 0 : case LSHIFT_EXPR:
3394 : 0 : {
3395 : 0 : tree _q60 = gimple_assign_rhs1 (_a4);
3396 : 0 : _q60 = do_valueize (valueize, _q60);
3397 : 0 : tree _q61 = gimple_assign_rhs2 (_a4);
3398 : 0 : _q61 = do_valueize (valueize, _q61);
3399 : 0 : if (integer_onep (_q60))
3400 : : {
3401 : 0 : switch (TREE_CODE (_p1))
3402 : : {
3403 : 0 : case SSA_NAME:
3404 : 0 : if (gimple *_d5 = get_def (valueize, _p1))
3405 : : {
3406 : 0 : if (gassign *_a5 = dyn_cast <gassign *> (_d5))
3407 : 0 : switch (gimple_assign_rhs_code (_a5))
3408 : : {
3409 : 0 : CASE_CONVERT:
3410 : 0 : {
3411 : 0 : tree _q90 = gimple_assign_rhs1 (_a5);
3412 : 0 : _q90 = do_valueize (valueize, _q90);
3413 : 0 : if ((_q90 == _q50 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q50, 0) && types_match (_q90, _q50)))
3414 : : {
3415 : 0 : {
3416 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q21, _q50, _p0, _q20, _q60, _q61 };
3417 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
3418 : : )
3419 : : {
3420 : 0 : {
3421 : 0 : res_ops[0] = captures[0];
3422 : 0 : res_ops[1] = captures[1];
3423 : 0 : res_ops[2] = captures[2];
3424 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 93, __FILE__, __LINE__, false);
3425 : 0 : return true;
3426 : : }
3427 : : }
3428 : : }
3429 : : }
3430 : : break;
3431 : : }
3432 : : default:;
3433 : : }
3434 : : }
3435 : : break;
3436 : 0 : default:;
3437 : : }
3438 : 0 : if ((_p1 == _q50 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q50, 0) && types_match (_p1, _q50)))
3439 : : {
3440 : 0 : {
3441 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q21, _q50, _p0, _q20, _q60, _q61 };
3442 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
3443 : : )
3444 : : {
3445 : 0 : {
3446 : 0 : res_ops[0] = captures[0];
3447 : 0 : res_ops[1] = captures[1];
3448 : 0 : res_ops[2] = captures[2];
3449 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 93, __FILE__, __LINE__, false);
3450 : 0 : return true;
3451 : : }
3452 : : }
3453 : : }
3454 : : }
3455 : : }
3456 : : break;
3457 : : }
3458 : : default:;
3459 : : }
3460 : : }
3461 : : break;
3462 : : default:;
3463 : : }
3464 : : break;
3465 : : }
3466 : : default:;
3467 : : }
3468 : : }
3469 : : break;
3470 : : default:;
3471 : : }
3472 : : }
3473 : : }
3474 : : }
3475 : : break;
3476 : : default:;
3477 : : }
3478 : : }
3479 : : break;
3480 : 6 : default:;
3481 : : }
3482 : 6 : switch (TREE_CODE (_p1))
3483 : : {
3484 : 6 : case SSA_NAME:
3485 : 6 : if (gimple *_d2 = get_def (valueize, _p1))
3486 : : {
3487 : 6 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
3488 : 4 : switch (gimple_assign_rhs_code (_a2))
3489 : : {
3490 : 2 : CASE_CONVERT:
3491 : 2 : {
3492 : 2 : tree _q30 = gimple_assign_rhs1 (_a2);
3493 : 2 : _q30 = do_valueize (valueize, _q30);
3494 : 2 : switch (TREE_CODE (_q30))
3495 : : {
3496 : 2 : case SSA_NAME:
3497 : 2 : if (gimple *_d3 = get_def (valueize, _q30))
3498 : : {
3499 : 2 : if (gcall *_c3 = dyn_cast <gcall *> (_d3))
3500 : 0 : switch (gimple_call_combined_fn (_c3))
3501 : : {
3502 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_AND_1:
3503 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_AND_2:
3504 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_AND_4:
3505 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_AND_8:
3506 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_AND_16:
3507 : 0 : if (gimple_call_num_args (_c3) == 3)
3508 : : {
3509 : 0 : tree _q40 = gimple_call_arg (_c3, 0);
3510 : 0 : _q40 = do_valueize (valueize, _q40);
3511 : 0 : tree _q41 = gimple_call_arg (_c3, 1);
3512 : 0 : _q41 = do_valueize (valueize, _q41);
3513 : 0 : tree _q42 = gimple_call_arg (_c3, 2);
3514 : 0 : _q42 = do_valueize (valueize, _q42);
3515 : 0 : switch (TREE_CODE (_q41))
3516 : : {
3517 : 0 : case SSA_NAME:
3518 : 0 : if (gimple *_d4 = get_def (valueize, _q41))
3519 : : {
3520 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
3521 : 0 : switch (gimple_assign_rhs_code (_a4))
3522 : : {
3523 : 0 : case BIT_NOT_EXPR:
3524 : 0 : {
3525 : 0 : tree _q60 = gimple_assign_rhs1 (_a4);
3526 : 0 : _q60 = do_valueize (valueize, _q60);
3527 : 0 : if ((_q60 == _p0 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _p0, 0) && types_match (_q60, _p0)))
3528 : : {
3529 : 0 : switch (TREE_CODE (_q60))
3530 : : {
3531 : 0 : case SSA_NAME:
3532 : 0 : if (gimple *_d5 = get_def (valueize, _q60))
3533 : : {
3534 : 0 : if (gassign *_a5 = dyn_cast <gassign *> (_d5))
3535 : 0 : switch (gimple_assign_rhs_code (_a5))
3536 : : {
3537 : 0 : case LSHIFT_EXPR:
3538 : 0 : {
3539 : 0 : tree _q80 = gimple_assign_rhs1 (_a5);
3540 : 0 : _q80 = do_valueize (valueize, _q80);
3541 : 0 : tree _q81 = gimple_assign_rhs2 (_a5);
3542 : 0 : _q81 = do_valueize (valueize, _q81);
3543 : 0 : if (integer_onep (_q80))
3544 : : {
3545 : 0 : {
3546 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _q41, _p0, _p1, _q40, _q80, _q81, _q42 };
3547 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
3548 : : )
3549 : : {
3550 : 0 : {
3551 : 0 : res_ops[0] = captures[0];
3552 : 0 : res_ops[1] = captures[1];
3553 : 0 : res_ops[2] = captures[2];
3554 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 90, __FILE__, __LINE__, false);
3555 : 0 : return true;
3556 : : }
3557 : : }
3558 : : }
3559 : : }
3560 : : break;
3561 : : }
3562 : : default:;
3563 : : }
3564 : : }
3565 : : break;
3566 : : default:;
3567 : : }
3568 : : }
3569 : : break;
3570 : : }
3571 : : default:;
3572 : : }
3573 : : }
3574 : : break;
3575 : 0 : default:;
3576 : : }
3577 : 0 : {
3578 : 0 : tree _q41_pops[1];
3579 : 0 : if (gimple_nop_convert (_q41, _q41_pops, valueize))
3580 : : {
3581 : 0 : tree _q60 = _q41_pops[0];
3582 : 0 : switch (TREE_CODE (_q60))
3583 : : {
3584 : 0 : case SSA_NAME:
3585 : 0 : if (gimple *_d4 = get_def (valueize, _q60))
3586 : : {
3587 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
3588 : 0 : switch (gimple_assign_rhs_code (_a4))
3589 : : {
3590 : 0 : case BIT_NOT_EXPR:
3591 : 0 : {
3592 : 0 : tree _q70 = gimple_assign_rhs1 (_a4);
3593 : 0 : _q70 = do_valueize (valueize, _q70);
3594 : 0 : if ((_q70 == _p0 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _p0, 0) && types_match (_q70, _p0)))
3595 : : {
3596 : 0 : switch (TREE_CODE (_q70))
3597 : : {
3598 : 0 : case SSA_NAME:
3599 : 0 : if (gimple *_d5 = get_def (valueize, _q70))
3600 : : {
3601 : 0 : if (gassign *_a5 = dyn_cast <gassign *> (_d5))
3602 : 0 : switch (gimple_assign_rhs_code (_a5))
3603 : : {
3604 : 0 : case LSHIFT_EXPR:
3605 : 0 : {
3606 : 0 : tree _q90 = gimple_assign_rhs1 (_a5);
3607 : 0 : _q90 = do_valueize (valueize, _q90);
3608 : 0 : tree _q91 = gimple_assign_rhs2 (_a5);
3609 : 0 : _q91 = do_valueize (valueize, _q91);
3610 : 0 : if (integer_onep (_q90))
3611 : : {
3612 : 0 : {
3613 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _q41, _p0, _p1, _q40, _q90, _q91, _q42 };
3614 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
3615 : : )
3616 : : {
3617 : 0 : {
3618 : 0 : res_ops[0] = captures[0];
3619 : 0 : res_ops[1] = captures[1];
3620 : 0 : res_ops[2] = captures[2];
3621 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 90, __FILE__, __LINE__, false);
3622 : 0 : return true;
3623 : : }
3624 : : }
3625 : : }
3626 : : }
3627 : : break;
3628 : : }
3629 : : default:;
3630 : : }
3631 : : }
3632 : : break;
3633 : : default:;
3634 : : }
3635 : : }
3636 : : break;
3637 : : }
3638 : : default:;
3639 : : }
3640 : : }
3641 : : break;
3642 : : default:;
3643 : : }
3644 : : }
3645 : : }
3646 : : }
3647 : : break;
3648 : : default:;
3649 : : }
3650 : : }
3651 : : break;
3652 : : default:;
3653 : : }
3654 : : break;
3655 : : }
3656 : : default:;
3657 : : }
3658 : 2 : else if (gcall *_c2 = dyn_cast <gcall *> (_d2))
3659 : 0 : switch (gimple_call_combined_fn (_c2))
3660 : : {
3661 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_AND_1:
3662 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_AND_2:
3663 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_AND_4:
3664 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_AND_8:
3665 : 0 : case CFN_BUILT_IN_ATOMIC_FETCH_AND_16:
3666 : 0 : if (gimple_call_num_args (_c2) == 3)
3667 : : {
3668 : 0 : tree _q30 = gimple_call_arg (_c2, 0);
3669 : 0 : _q30 = do_valueize (valueize, _q30);
3670 : 0 : tree _q31 = gimple_call_arg (_c2, 1);
3671 : 0 : _q31 = do_valueize (valueize, _q31);
3672 : 0 : tree _q32 = gimple_call_arg (_c2, 2);
3673 : 0 : _q32 = do_valueize (valueize, _q32);
3674 : 0 : switch (TREE_CODE (_q31))
3675 : : {
3676 : 0 : case SSA_NAME:
3677 : 0 : if (gimple *_d3 = get_def (valueize, _q31))
3678 : : {
3679 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
3680 : 0 : switch (gimple_assign_rhs_code (_a3))
3681 : : {
3682 : 0 : case BIT_NOT_EXPR:
3683 : 0 : {
3684 : 0 : tree _q50 = gimple_assign_rhs1 (_a3);
3685 : 0 : _q50 = do_valueize (valueize, _q50);
3686 : 0 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
3687 : : {
3688 : 0 : switch (TREE_CODE (_q50))
3689 : : {
3690 : 0 : case SSA_NAME:
3691 : 0 : if (gimple *_d4 = get_def (valueize, _q50))
3692 : : {
3693 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
3694 : 0 : switch (gimple_assign_rhs_code (_a4))
3695 : : {
3696 : 0 : case LSHIFT_EXPR:
3697 : 0 : {
3698 : 0 : tree _q70 = gimple_assign_rhs1 (_a4);
3699 : 0 : _q70 = do_valueize (valueize, _q70);
3700 : 0 : tree _q71 = gimple_assign_rhs2 (_a4);
3701 : 0 : _q71 = do_valueize (valueize, _q71);
3702 : 0 : if (integer_onep (_q70))
3703 : : {
3704 : 0 : {
3705 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _q31, _p0, _p1, _q30, _q70, _q71, _q32 };
3706 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
3707 : : )
3708 : : {
3709 : 0 : {
3710 : 0 : res_ops[0] = captures[0];
3711 : 0 : res_ops[1] = captures[1];
3712 : 0 : res_ops[2] = captures[2];
3713 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 90, __FILE__, __LINE__, false);
3714 : 0 : return true;
3715 : : }
3716 : : }
3717 : : }
3718 : : }
3719 : : break;
3720 : : }
3721 : : default:;
3722 : : }
3723 : : }
3724 : : break;
3725 : : default:;
3726 : : }
3727 : : }
3728 : : break;
3729 : : }
3730 : : default:;
3731 : : }
3732 : : }
3733 : : break;
3734 : 0 : default:;
3735 : : }
3736 : 0 : {
3737 : 0 : tree _q31_pops[1];
3738 : 0 : if (gimple_nop_convert (_q31, _q31_pops, valueize))
3739 : : {
3740 : 0 : tree _q50 = _q31_pops[0];
3741 : 0 : switch (TREE_CODE (_q50))
3742 : : {
3743 : 0 : case SSA_NAME:
3744 : 0 : if (gimple *_d3 = get_def (valueize, _q50))
3745 : : {
3746 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
3747 : 0 : switch (gimple_assign_rhs_code (_a3))
3748 : : {
3749 : 0 : case BIT_NOT_EXPR:
3750 : 0 : {
3751 : 0 : tree _q60 = gimple_assign_rhs1 (_a3);
3752 : 0 : _q60 = do_valueize (valueize, _q60);
3753 : 0 : if ((_q60 == _p0 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _p0, 0) && types_match (_q60, _p0)))
3754 : : {
3755 : 0 : switch (TREE_CODE (_q60))
3756 : : {
3757 : 0 : case SSA_NAME:
3758 : 0 : if (gimple *_d4 = get_def (valueize, _q60))
3759 : : {
3760 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
3761 : 0 : switch (gimple_assign_rhs_code (_a4))
3762 : : {
3763 : 0 : case LSHIFT_EXPR:
3764 : 0 : {
3765 : 0 : tree _q80 = gimple_assign_rhs1 (_a4);
3766 : 0 : _q80 = do_valueize (valueize, _q80);
3767 : 0 : tree _q81 = gimple_assign_rhs2 (_a4);
3768 : 0 : _q81 = do_valueize (valueize, _q81);
3769 : 0 : if (integer_onep (_q80))
3770 : : {
3771 : 0 : {
3772 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _q31, _p0, _p1, _q30, _q80, _q81, _q32 };
3773 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
3774 : : )
3775 : : {
3776 : 0 : {
3777 : 0 : res_ops[0] = captures[0];
3778 : 0 : res_ops[1] = captures[1];
3779 : 0 : res_ops[2] = captures[2];
3780 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 90, __FILE__, __LINE__, false);
3781 : 0 : return true;
3782 : : }
3783 : : }
3784 : : }
3785 : : }
3786 : : break;
3787 : : }
3788 : : default:;
3789 : : }
3790 : : }
3791 : : break;
3792 : : default:;
3793 : : }
3794 : : }
3795 : : break;
3796 : : }
3797 : : default:;
3798 : : }
3799 : : }
3800 : : break;
3801 : : default:;
3802 : : }
3803 : : }
3804 : : }
3805 : : }
3806 : : break;
3807 : : default:;
3808 : : }
3809 : : }
3810 : : break;
3811 : 6 : default:;
3812 : : }
3813 : 6 : switch (TREE_CODE (_p0))
3814 : : {
3815 : 6 : case SSA_NAME:
3816 : 6 : if (gimple *_d2 = get_def (valueize, _p0))
3817 : : {
3818 : 6 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
3819 : 6 : switch (gimple_assign_rhs_code (_a2))
3820 : : {
3821 : 6 : CASE_CONVERT:
3822 : 6 : {
3823 : 6 : tree _q20 = gimple_assign_rhs1 (_a2);
3824 : 6 : _q20 = do_valueize (valueize, _q20);
3825 : 6 : switch (TREE_CODE (_q20))
3826 : : {
3827 : 6 : case SSA_NAME:
3828 : 6 : if (gimple *_d3 = get_def (valueize, _q20))
3829 : : {
3830 : 6 : if (gcall *_c3 = dyn_cast <gcall *> (_d3))
3831 : 6 : switch (gimple_call_combined_fn (_c3))
3832 : : {
3833 : 4 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_1:
3834 : 4 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_2:
3835 : 4 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_4:
3836 : 4 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_8:
3837 : 4 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_16:
3838 : 4 : if (gimple_call_num_args (_c3) == 2)
3839 : : {
3840 : 4 : tree _q30 = gimple_call_arg (_c3, 0);
3841 : 4 : _q30 = do_valueize (valueize, _q30);
3842 : 4 : tree _q31 = gimple_call_arg (_c3, 1);
3843 : 4 : _q31 = do_valueize (valueize, _q31);
3844 : 4 : switch (TREE_CODE (_q31))
3845 : : {
3846 : 4 : case SSA_NAME:
3847 : 4 : if (gimple *_d4 = get_def (valueize, _q31))
3848 : : {
3849 : 4 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
3850 : 4 : switch (gimple_assign_rhs_code (_a4))
3851 : : {
3852 : 0 : case BIT_NOT_EXPR:
3853 : 0 : {
3854 : 0 : tree _q50 = gimple_assign_rhs1 (_a4);
3855 : 0 : _q50 = do_valueize (valueize, _q50);
3856 : 0 : switch (TREE_CODE (_q50))
3857 : : {
3858 : 0 : case SSA_NAME:
3859 : 0 : if (gimple *_d5 = get_def (valueize, _q50))
3860 : : {
3861 : 0 : if (gassign *_a5 = dyn_cast <gassign *> (_d5))
3862 : 0 : switch (gimple_assign_rhs_code (_a5))
3863 : : {
3864 : 0 : case LSHIFT_EXPR:
3865 : 0 : {
3866 : 0 : tree _q60 = gimple_assign_rhs1 (_a5);
3867 : 0 : _q60 = do_valueize (valueize, _q60);
3868 : 0 : tree _q61 = gimple_assign_rhs2 (_a5);
3869 : 0 : _q61 = do_valueize (valueize, _q61);
3870 : 0 : if (integer_onep (_q60))
3871 : : {
3872 : 0 : switch (TREE_CODE (_p1))
3873 : : {
3874 : 0 : case SSA_NAME:
3875 : 0 : if (gimple *_d6 = get_def (valueize, _p1))
3876 : : {
3877 : 0 : if (gassign *_a6 = dyn_cast <gassign *> (_d6))
3878 : 0 : switch (gimple_assign_rhs_code (_a6))
3879 : : {
3880 : 0 : CASE_CONVERT:
3881 : 0 : {
3882 : 0 : tree _q90 = gimple_assign_rhs1 (_a6);
3883 : 0 : _q90 = do_valueize (valueize, _q90);
3884 : 0 : if ((_q90 == _q50 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q50, 0) && types_match (_q90, _q50)))
3885 : : {
3886 : 0 : {
3887 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q31, _q50, _p0, _q30, _q60, _q61 };
3888 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
3889 : : )
3890 : : {
3891 : 0 : {
3892 : 0 : res_ops[0] = captures[0];
3893 : 0 : res_ops[1] = captures[1];
3894 : 0 : res_ops[2] = captures[2];
3895 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 93, __FILE__, __LINE__, false);
3896 : 0 : return true;
3897 : : }
3898 : : }
3899 : : }
3900 : : }
3901 : : break;
3902 : : }
3903 : : default:;
3904 : : }
3905 : : }
3906 : : break;
3907 : 0 : default:;
3908 : : }
3909 : 0 : if ((_p1 == _q50 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q50, 0) && types_match (_p1, _q50)))
3910 : : {
3911 : 0 : {
3912 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q31, _q50, _p0, _q30, _q60, _q61 };
3913 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
3914 : : )
3915 : : {
3916 : 0 : {
3917 : 0 : res_ops[0] = captures[0];
3918 : 0 : res_ops[1] = captures[1];
3919 : 0 : res_ops[2] = captures[2];
3920 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 93, __FILE__, __LINE__, false);
3921 : 0 : return true;
3922 : : }
3923 : : }
3924 : : }
3925 : : }
3926 : : }
3927 : : break;
3928 : : }
3929 : : default:;
3930 : : }
3931 : : }
3932 : : break;
3933 : : default:;
3934 : : }
3935 : : break;
3936 : : }
3937 : : default:;
3938 : : }
3939 : : }
3940 : : break;
3941 : 4 : default:;
3942 : : }
3943 : 4 : {
3944 : 4 : tree _q31_pops[1];
3945 : 4 : if (gimple_nop_convert (_q31, _q31_pops, valueize))
3946 : : {
3947 : 4 : tree _q50 = _q31_pops[0];
3948 : 4 : switch (TREE_CODE (_q50))
3949 : : {
3950 : 4 : case SSA_NAME:
3951 : 4 : if (gimple *_d4 = get_def (valueize, _q50))
3952 : : {
3953 : 4 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
3954 : 4 : switch (gimple_assign_rhs_code (_a4))
3955 : : {
3956 : 4 : case BIT_NOT_EXPR:
3957 : 4 : {
3958 : 4 : tree _q60 = gimple_assign_rhs1 (_a4);
3959 : 4 : _q60 = do_valueize (valueize, _q60);
3960 : 4 : switch (TREE_CODE (_q60))
3961 : : {
3962 : 4 : case SSA_NAME:
3963 : 4 : if (gimple *_d5 = get_def (valueize, _q60))
3964 : : {
3965 : 4 : if (gassign *_a5 = dyn_cast <gassign *> (_d5))
3966 : 4 : switch (gimple_assign_rhs_code (_a5))
3967 : : {
3968 : 4 : case LSHIFT_EXPR:
3969 : 4 : {
3970 : 4 : tree _q70 = gimple_assign_rhs1 (_a5);
3971 : 4 : _q70 = do_valueize (valueize, _q70);
3972 : 4 : tree _q71 = gimple_assign_rhs2 (_a5);
3973 : 4 : _q71 = do_valueize (valueize, _q71);
3974 : 4 : if (integer_onep (_q70))
3975 : : {
3976 : 4 : switch (TREE_CODE (_p1))
3977 : : {
3978 : 4 : case SSA_NAME:
3979 : 4 : if (gimple *_d6 = get_def (valueize, _p1))
3980 : : {
3981 : 4 : if (gassign *_a6 = dyn_cast <gassign *> (_d6))
3982 : 4 : switch (gimple_assign_rhs_code (_a6))
3983 : : {
3984 : 2 : CASE_CONVERT:
3985 : 2 : {
3986 : 2 : tree _q100 = gimple_assign_rhs1 (_a6);
3987 : 2 : _q100 = do_valueize (valueize, _q100);
3988 : 2 : if ((_q100 == _q60 && ! TREE_SIDE_EFFECTS (_q100)) || (operand_equal_p (_q100, _q60, 0) && types_match (_q100, _q60)))
3989 : : {
3990 : 2 : {
3991 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _q31, _q60, _p0, _q30, _q70, _q71 };
3992 : 2 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
3993 : : )
3994 : : {
3995 : 2 : {
3996 : 2 : res_ops[0] = captures[0];
3997 : 2 : res_ops[1] = captures[1];
3998 : 2 : res_ops[2] = captures[2];
3999 : 2 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 93, __FILE__, __LINE__, false);
4000 : 2 : return true;
4001 : : }
4002 : : }
4003 : : }
4004 : : }
4005 : : break;
4006 : : }
4007 : : default:;
4008 : : }
4009 : : }
4010 : : break;
4011 : 2 : default:;
4012 : : }
4013 : 2 : if ((_p1 == _q60 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q60, 0) && types_match (_p1, _q60)))
4014 : : {
4015 : 2 : {
4016 : 2 : tree captures[6] ATTRIBUTE_UNUSED = { _q31, _q60, _p0, _q30, _q70, _q71 };
4017 : 2 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
4018 : : )
4019 : : {
4020 : 2 : {
4021 : 2 : res_ops[0] = captures[0];
4022 : 2 : res_ops[1] = captures[1];
4023 : 2 : res_ops[2] = captures[2];
4024 : 2 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 93, __FILE__, __LINE__, false);
4025 : 2 : return true;
4026 : : }
4027 : : }
4028 : : }
4029 : : }
4030 : : }
4031 : : break;
4032 : : }
4033 : : default:;
4034 : : }
4035 : : }
4036 : : break;
4037 : : default:;
4038 : : }
4039 : : break;
4040 : : }
4041 : : default:;
4042 : : }
4043 : : }
4044 : : break;
4045 : : default:;
4046 : : }
4047 : : }
4048 : : }
4049 : : }
4050 : : break;
4051 : : default:;
4052 : : }
4053 : : }
4054 : : break;
4055 : 2 : default:;
4056 : : }
4057 : 2 : switch (TREE_CODE (_p1))
4058 : : {
4059 : 2 : case SSA_NAME:
4060 : 2 : if (gimple *_d3 = get_def (valueize, _p1))
4061 : : {
4062 : 2 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
4063 : 0 : switch (gimple_assign_rhs_code (_a3))
4064 : : {
4065 : 0 : CASE_CONVERT:
4066 : 0 : {
4067 : 0 : tree _q40 = gimple_assign_rhs1 (_a3);
4068 : 0 : _q40 = do_valueize (valueize, _q40);
4069 : 0 : switch (TREE_CODE (_q40))
4070 : : {
4071 : 0 : case SSA_NAME:
4072 : 0 : if (gimple *_d4 = get_def (valueize, _q40))
4073 : : {
4074 : 0 : if (gcall *_c4 = dyn_cast <gcall *> (_d4))
4075 : 0 : switch (gimple_call_combined_fn (_c4))
4076 : : {
4077 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_1:
4078 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_2:
4079 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_4:
4080 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_8:
4081 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_16:
4082 : 0 : if (gimple_call_num_args (_c4) == 2)
4083 : : {
4084 : 0 : tree _q50 = gimple_call_arg (_c4, 0);
4085 : 0 : _q50 = do_valueize (valueize, _q50);
4086 : 0 : tree _q51 = gimple_call_arg (_c4, 1);
4087 : 0 : _q51 = do_valueize (valueize, _q51);
4088 : 0 : switch (TREE_CODE (_q51))
4089 : : {
4090 : 0 : case SSA_NAME:
4091 : 0 : if (gimple *_d5 = get_def (valueize, _q51))
4092 : : {
4093 : 0 : if (gassign *_a5 = dyn_cast <gassign *> (_d5))
4094 : 0 : switch (gimple_assign_rhs_code (_a5))
4095 : : {
4096 : 0 : case BIT_NOT_EXPR:
4097 : 0 : {
4098 : 0 : tree _q70 = gimple_assign_rhs1 (_a5);
4099 : 0 : _q70 = do_valueize (valueize, _q70);
4100 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
4101 : : {
4102 : 0 : switch (TREE_CODE (_q70))
4103 : : {
4104 : 0 : case SSA_NAME:
4105 : 0 : if (gimple *_d6 = get_def (valueize, _q70))
4106 : : {
4107 : 0 : if (gassign *_a6 = dyn_cast <gassign *> (_d6))
4108 : 0 : switch (gimple_assign_rhs_code (_a6))
4109 : : {
4110 : 0 : case LSHIFT_EXPR:
4111 : 0 : {
4112 : 0 : tree _q90 = gimple_assign_rhs1 (_a6);
4113 : 0 : _q90 = do_valueize (valueize, _q90);
4114 : 0 : tree _q91 = gimple_assign_rhs2 (_a6);
4115 : 0 : _q91 = do_valueize (valueize, _q91);
4116 : 0 : if (integer_onep (_q90))
4117 : : {
4118 : 0 : {
4119 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q51, _q20, _p1, _q50, _q90, _q91 };
4120 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
4121 : : )
4122 : : {
4123 : 0 : {
4124 : 0 : res_ops[0] = captures[0];
4125 : 0 : res_ops[1] = captures[1];
4126 : 0 : res_ops[2] = captures[2];
4127 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 93, __FILE__, __LINE__, false);
4128 : 0 : return true;
4129 : : }
4130 : : }
4131 : : }
4132 : : }
4133 : : break;
4134 : : }
4135 : : default:;
4136 : : }
4137 : : }
4138 : : break;
4139 : : default:;
4140 : : }
4141 : : }
4142 : : break;
4143 : : }
4144 : : default:;
4145 : : }
4146 : : }
4147 : : break;
4148 : 0 : default:;
4149 : : }
4150 : 0 : {
4151 : 0 : tree _q51_pops[1];
4152 : 0 : if (gimple_nop_convert (_q51, _q51_pops, valueize))
4153 : : {
4154 : 0 : tree _q70 = _q51_pops[0];
4155 : 0 : switch (TREE_CODE (_q70))
4156 : : {
4157 : 0 : case SSA_NAME:
4158 : 0 : if (gimple *_d5 = get_def (valueize, _q70))
4159 : : {
4160 : 0 : if (gassign *_a5 = dyn_cast <gassign *> (_d5))
4161 : 0 : switch (gimple_assign_rhs_code (_a5))
4162 : : {
4163 : 0 : case BIT_NOT_EXPR:
4164 : 0 : {
4165 : 0 : tree _q80 = gimple_assign_rhs1 (_a5);
4166 : 0 : _q80 = do_valueize (valueize, _q80);
4167 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
4168 : : {
4169 : 0 : switch (TREE_CODE (_q80))
4170 : : {
4171 : 0 : case SSA_NAME:
4172 : 0 : if (gimple *_d6 = get_def (valueize, _q80))
4173 : : {
4174 : 0 : if (gassign *_a6 = dyn_cast <gassign *> (_d6))
4175 : 0 : switch (gimple_assign_rhs_code (_a6))
4176 : : {
4177 : 0 : case LSHIFT_EXPR:
4178 : 0 : {
4179 : 0 : tree _q100 = gimple_assign_rhs1 (_a6);
4180 : 0 : _q100 = do_valueize (valueize, _q100);
4181 : 0 : tree _q101 = gimple_assign_rhs2 (_a6);
4182 : 0 : _q101 = do_valueize (valueize, _q101);
4183 : 0 : if (integer_onep (_q100))
4184 : : {
4185 : 0 : {
4186 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q51, _q20, _p1, _q50, _q100, _q101 };
4187 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
4188 : : )
4189 : : {
4190 : 0 : {
4191 : 0 : res_ops[0] = captures[0];
4192 : 0 : res_ops[1] = captures[1];
4193 : 0 : res_ops[2] = captures[2];
4194 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 93, __FILE__, __LINE__, false);
4195 : 0 : return true;
4196 : : }
4197 : : }
4198 : : }
4199 : : }
4200 : : break;
4201 : : }
4202 : : default:;
4203 : : }
4204 : : }
4205 : : break;
4206 : : default:;
4207 : : }
4208 : : }
4209 : : break;
4210 : : }
4211 : : default:;
4212 : : }
4213 : : }
4214 : : break;
4215 : : default:;
4216 : : }
4217 : : }
4218 : : }
4219 : : }
4220 : : break;
4221 : : default:;
4222 : : }
4223 : : }
4224 : : break;
4225 : : default:;
4226 : : }
4227 : : break;
4228 : : }
4229 : : default:;
4230 : : }
4231 : 2 : else if (gcall *_c3 = dyn_cast <gcall *> (_d3))
4232 : 0 : switch (gimple_call_combined_fn (_c3))
4233 : : {
4234 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_1:
4235 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_2:
4236 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_4:
4237 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_8:
4238 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_16:
4239 : 0 : if (gimple_call_num_args (_c3) == 2)
4240 : : {
4241 : 0 : tree _q40 = gimple_call_arg (_c3, 0);
4242 : 0 : _q40 = do_valueize (valueize, _q40);
4243 : 0 : tree _q41 = gimple_call_arg (_c3, 1);
4244 : 0 : _q41 = do_valueize (valueize, _q41);
4245 : 0 : switch (TREE_CODE (_q41))
4246 : : {
4247 : 0 : case SSA_NAME:
4248 : 0 : if (gimple *_d4 = get_def (valueize, _q41))
4249 : : {
4250 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
4251 : 0 : switch (gimple_assign_rhs_code (_a4))
4252 : : {
4253 : 0 : case BIT_NOT_EXPR:
4254 : 0 : {
4255 : 0 : tree _q60 = gimple_assign_rhs1 (_a4);
4256 : 0 : _q60 = do_valueize (valueize, _q60);
4257 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
4258 : : {
4259 : 0 : switch (TREE_CODE (_q60))
4260 : : {
4261 : 0 : case SSA_NAME:
4262 : 0 : if (gimple *_d5 = get_def (valueize, _q60))
4263 : : {
4264 : 0 : if (gassign *_a5 = dyn_cast <gassign *> (_d5))
4265 : 0 : switch (gimple_assign_rhs_code (_a5))
4266 : : {
4267 : 0 : case LSHIFT_EXPR:
4268 : 0 : {
4269 : 0 : tree _q80 = gimple_assign_rhs1 (_a5);
4270 : 0 : _q80 = do_valueize (valueize, _q80);
4271 : 0 : tree _q81 = gimple_assign_rhs2 (_a5);
4272 : 0 : _q81 = do_valueize (valueize, _q81);
4273 : 0 : if (integer_onep (_q80))
4274 : : {
4275 : 0 : {
4276 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q41, _q20, _p1, _q40, _q80, _q81 };
4277 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
4278 : : )
4279 : : {
4280 : 0 : {
4281 : 0 : res_ops[0] = captures[0];
4282 : 0 : res_ops[1] = captures[1];
4283 : 0 : res_ops[2] = captures[2];
4284 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 93, __FILE__, __LINE__, false);
4285 : 0 : return true;
4286 : : }
4287 : : }
4288 : : }
4289 : : }
4290 : : break;
4291 : : }
4292 : : default:;
4293 : : }
4294 : : }
4295 : : break;
4296 : : default:;
4297 : : }
4298 : : }
4299 : : break;
4300 : : }
4301 : : default:;
4302 : : }
4303 : : }
4304 : : break;
4305 : 0 : default:;
4306 : : }
4307 : 0 : {
4308 : 0 : tree _q41_pops[1];
4309 : 0 : if (gimple_nop_convert (_q41, _q41_pops, valueize))
4310 : : {
4311 : 0 : tree _q60 = _q41_pops[0];
4312 : 0 : switch (TREE_CODE (_q60))
4313 : : {
4314 : 0 : case SSA_NAME:
4315 : 0 : if (gimple *_d4 = get_def (valueize, _q60))
4316 : : {
4317 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
4318 : 0 : switch (gimple_assign_rhs_code (_a4))
4319 : : {
4320 : 0 : case BIT_NOT_EXPR:
4321 : 0 : {
4322 : 0 : tree _q70 = gimple_assign_rhs1 (_a4);
4323 : 0 : _q70 = do_valueize (valueize, _q70);
4324 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
4325 : : {
4326 : 0 : switch (TREE_CODE (_q70))
4327 : : {
4328 : 0 : case SSA_NAME:
4329 : 0 : if (gimple *_d5 = get_def (valueize, _q70))
4330 : : {
4331 : 0 : if (gassign *_a5 = dyn_cast <gassign *> (_d5))
4332 : 0 : switch (gimple_assign_rhs_code (_a5))
4333 : : {
4334 : 0 : case LSHIFT_EXPR:
4335 : 0 : {
4336 : 0 : tree _q90 = gimple_assign_rhs1 (_a5);
4337 : 0 : _q90 = do_valueize (valueize, _q90);
4338 : 0 : tree _q91 = gimple_assign_rhs2 (_a5);
4339 : 0 : _q91 = do_valueize (valueize, _q91);
4340 : 0 : if (integer_onep (_q90))
4341 : : {
4342 : 0 : {
4343 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q41, _q20, _p1, _q40, _q90, _q91 };
4344 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
4345 : : )
4346 : : {
4347 : 0 : {
4348 : 0 : res_ops[0] = captures[0];
4349 : 0 : res_ops[1] = captures[1];
4350 : 0 : res_ops[2] = captures[2];
4351 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 93, __FILE__, __LINE__, false);
4352 : 0 : return true;
4353 : : }
4354 : : }
4355 : : }
4356 : : }
4357 : : break;
4358 : : }
4359 : : default:;
4360 : : }
4361 : : }
4362 : : break;
4363 : : default:;
4364 : : }
4365 : : }
4366 : : break;
4367 : : }
4368 : : default:;
4369 : : }
4370 : : }
4371 : : break;
4372 : : default:;
4373 : : }
4374 : : }
4375 : : }
4376 : : }
4377 : : break;
4378 : : default:;
4379 : : }
4380 : : }
4381 : : break;
4382 : : default:;
4383 : : }
4384 : : break;
4385 : : }
4386 : : default:;
4387 : : }
4388 : : }
4389 : : break;
4390 : 2 : default:;
4391 : : }
4392 : 2 : switch (TREE_CODE (_p1))
4393 : : {
4394 : 2 : case SSA_NAME:
4395 : 2 : if (gimple *_d2 = get_def (valueize, _p1))
4396 : : {
4397 : 2 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
4398 : 0 : switch (gimple_assign_rhs_code (_a2))
4399 : : {
4400 : 0 : CASE_CONVERT:
4401 : 0 : {
4402 : 0 : tree _q30 = gimple_assign_rhs1 (_a2);
4403 : 0 : _q30 = do_valueize (valueize, _q30);
4404 : 0 : switch (TREE_CODE (_q30))
4405 : : {
4406 : 0 : case SSA_NAME:
4407 : 0 : if (gimple *_d3 = get_def (valueize, _q30))
4408 : : {
4409 : 0 : if (gcall *_c3 = dyn_cast <gcall *> (_d3))
4410 : 0 : switch (gimple_call_combined_fn (_c3))
4411 : : {
4412 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_1:
4413 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_2:
4414 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_4:
4415 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_8:
4416 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_16:
4417 : 0 : if (gimple_call_num_args (_c3) == 2)
4418 : : {
4419 : 0 : tree _q40 = gimple_call_arg (_c3, 0);
4420 : 0 : _q40 = do_valueize (valueize, _q40);
4421 : 0 : tree _q41 = gimple_call_arg (_c3, 1);
4422 : 0 : _q41 = do_valueize (valueize, _q41);
4423 : 0 : switch (TREE_CODE (_q41))
4424 : : {
4425 : 0 : case SSA_NAME:
4426 : 0 : if (gimple *_d4 = get_def (valueize, _q41))
4427 : : {
4428 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
4429 : 0 : switch (gimple_assign_rhs_code (_a4))
4430 : : {
4431 : 0 : case BIT_NOT_EXPR:
4432 : 0 : {
4433 : 0 : tree _q60 = gimple_assign_rhs1 (_a4);
4434 : 0 : _q60 = do_valueize (valueize, _q60);
4435 : 0 : if ((_q60 == _p0 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _p0, 0) && types_match (_q60, _p0)))
4436 : : {
4437 : 0 : switch (TREE_CODE (_q60))
4438 : : {
4439 : 0 : case SSA_NAME:
4440 : 0 : if (gimple *_d5 = get_def (valueize, _q60))
4441 : : {
4442 : 0 : if (gassign *_a5 = dyn_cast <gassign *> (_d5))
4443 : 0 : switch (gimple_assign_rhs_code (_a5))
4444 : : {
4445 : 0 : case LSHIFT_EXPR:
4446 : 0 : {
4447 : 0 : tree _q80 = gimple_assign_rhs1 (_a5);
4448 : 0 : _q80 = do_valueize (valueize, _q80);
4449 : 0 : tree _q81 = gimple_assign_rhs2 (_a5);
4450 : 0 : _q81 = do_valueize (valueize, _q81);
4451 : 0 : if (integer_onep (_q80))
4452 : : {
4453 : 0 : {
4454 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q41, _p0, _p1, _q40, _q80, _q81 };
4455 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
4456 : : )
4457 : : {
4458 : 0 : {
4459 : 0 : res_ops[0] = captures[0];
4460 : 0 : res_ops[1] = captures[1];
4461 : 0 : res_ops[2] = captures[2];
4462 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 93, __FILE__, __LINE__, false);
4463 : 0 : return true;
4464 : : }
4465 : : }
4466 : : }
4467 : : }
4468 : : break;
4469 : : }
4470 : : default:;
4471 : : }
4472 : : }
4473 : : break;
4474 : : default:;
4475 : : }
4476 : : }
4477 : : break;
4478 : : }
4479 : : default:;
4480 : : }
4481 : : }
4482 : : break;
4483 : 0 : default:;
4484 : : }
4485 : 0 : {
4486 : 0 : tree _q41_pops[1];
4487 : 0 : if (gimple_nop_convert (_q41, _q41_pops, valueize))
4488 : : {
4489 : 0 : tree _q60 = _q41_pops[0];
4490 : 0 : switch (TREE_CODE (_q60))
4491 : : {
4492 : 0 : case SSA_NAME:
4493 : 0 : if (gimple *_d4 = get_def (valueize, _q60))
4494 : : {
4495 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
4496 : 0 : switch (gimple_assign_rhs_code (_a4))
4497 : : {
4498 : 0 : case BIT_NOT_EXPR:
4499 : 0 : {
4500 : 0 : tree _q70 = gimple_assign_rhs1 (_a4);
4501 : 0 : _q70 = do_valueize (valueize, _q70);
4502 : 0 : if ((_q70 == _p0 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _p0, 0) && types_match (_q70, _p0)))
4503 : : {
4504 : 0 : switch (TREE_CODE (_q70))
4505 : : {
4506 : 0 : case SSA_NAME:
4507 : 0 : if (gimple *_d5 = get_def (valueize, _q70))
4508 : : {
4509 : 0 : if (gassign *_a5 = dyn_cast <gassign *> (_d5))
4510 : 0 : switch (gimple_assign_rhs_code (_a5))
4511 : : {
4512 : 0 : case LSHIFT_EXPR:
4513 : 0 : {
4514 : 0 : tree _q90 = gimple_assign_rhs1 (_a5);
4515 : 0 : _q90 = do_valueize (valueize, _q90);
4516 : 0 : tree _q91 = gimple_assign_rhs2 (_a5);
4517 : 0 : _q91 = do_valueize (valueize, _q91);
4518 : 0 : if (integer_onep (_q90))
4519 : : {
4520 : 0 : {
4521 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q41, _p0, _p1, _q40, _q90, _q91 };
4522 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
4523 : : )
4524 : : {
4525 : 0 : {
4526 : 0 : res_ops[0] = captures[0];
4527 : 0 : res_ops[1] = captures[1];
4528 : 0 : res_ops[2] = captures[2];
4529 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 93, __FILE__, __LINE__, false);
4530 : 0 : return true;
4531 : : }
4532 : : }
4533 : : }
4534 : : }
4535 : : break;
4536 : : }
4537 : : default:;
4538 : : }
4539 : : }
4540 : : break;
4541 : : default:;
4542 : : }
4543 : : }
4544 : : break;
4545 : : }
4546 : : default:;
4547 : : }
4548 : : }
4549 : : break;
4550 : : default:;
4551 : : }
4552 : : }
4553 : : }
4554 : : }
4555 : : break;
4556 : : default:;
4557 : : }
4558 : : }
4559 : : break;
4560 : : default:;
4561 : : }
4562 : : break;
4563 : : }
4564 : : default:;
4565 : : }
4566 : 2 : else if (gcall *_c2 = dyn_cast <gcall *> (_d2))
4567 : 0 : switch (gimple_call_combined_fn (_c2))
4568 : : {
4569 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_1:
4570 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_2:
4571 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_4:
4572 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_8:
4573 : 0 : case CFN_BUILT_IN_SYNC_FETCH_AND_AND_16:
4574 : 0 : if (gimple_call_num_args (_c2) == 2)
4575 : : {
4576 : 0 : tree _q30 = gimple_call_arg (_c2, 0);
4577 : 0 : _q30 = do_valueize (valueize, _q30);
4578 : 0 : tree _q31 = gimple_call_arg (_c2, 1);
4579 : 0 : _q31 = do_valueize (valueize, _q31);
4580 : 0 : switch (TREE_CODE (_q31))
4581 : : {
4582 : 0 : case SSA_NAME:
4583 : 0 : if (gimple *_d3 = get_def (valueize, _q31))
4584 : : {
4585 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
4586 : 0 : switch (gimple_assign_rhs_code (_a3))
4587 : : {
4588 : 0 : case BIT_NOT_EXPR:
4589 : 0 : {
4590 : 0 : tree _q50 = gimple_assign_rhs1 (_a3);
4591 : 0 : _q50 = do_valueize (valueize, _q50);
4592 : 0 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
4593 : : {
4594 : 0 : switch (TREE_CODE (_q50))
4595 : : {
4596 : 0 : case SSA_NAME:
4597 : 0 : if (gimple *_d4 = get_def (valueize, _q50))
4598 : : {
4599 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
4600 : 0 : switch (gimple_assign_rhs_code (_a4))
4601 : : {
4602 : 0 : case LSHIFT_EXPR:
4603 : 0 : {
4604 : 0 : tree _q70 = gimple_assign_rhs1 (_a4);
4605 : 0 : _q70 = do_valueize (valueize, _q70);
4606 : 0 : tree _q71 = gimple_assign_rhs2 (_a4);
4607 : 0 : _q71 = do_valueize (valueize, _q71);
4608 : 0 : if (integer_onep (_q70))
4609 : : {
4610 : 0 : {
4611 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q31, _p0, _p1, _q30, _q70, _q71 };
4612 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
4613 : : )
4614 : : {
4615 : 0 : {
4616 : 0 : res_ops[0] = captures[0];
4617 : 0 : res_ops[1] = captures[1];
4618 : 0 : res_ops[2] = captures[2];
4619 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 93, __FILE__, __LINE__, false);
4620 : 0 : return true;
4621 : : }
4622 : : }
4623 : : }
4624 : : }
4625 : : break;
4626 : : }
4627 : : default:;
4628 : : }
4629 : : }
4630 : : break;
4631 : : default:;
4632 : : }
4633 : : }
4634 : : break;
4635 : : }
4636 : : default:;
4637 : : }
4638 : : }
4639 : : break;
4640 : 0 : default:;
4641 : : }
4642 : 0 : {
4643 : 0 : tree _q31_pops[1];
4644 : 0 : if (gimple_nop_convert (_q31, _q31_pops, valueize))
4645 : : {
4646 : 0 : tree _q50 = _q31_pops[0];
4647 : 0 : switch (TREE_CODE (_q50))
4648 : : {
4649 : 0 : case SSA_NAME:
4650 : 0 : if (gimple *_d3 = get_def (valueize, _q50))
4651 : : {
4652 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
4653 : 0 : switch (gimple_assign_rhs_code (_a3))
4654 : : {
4655 : 0 : case BIT_NOT_EXPR:
4656 : 0 : {
4657 : 0 : tree _q60 = gimple_assign_rhs1 (_a3);
4658 : 0 : _q60 = do_valueize (valueize, _q60);
4659 : 0 : if ((_q60 == _p0 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _p0, 0) && types_match (_q60, _p0)))
4660 : : {
4661 : 0 : switch (TREE_CODE (_q60))
4662 : : {
4663 : 0 : case SSA_NAME:
4664 : 0 : if (gimple *_d4 = get_def (valueize, _q60))
4665 : : {
4666 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
4667 : 0 : switch (gimple_assign_rhs_code (_a4))
4668 : : {
4669 : 0 : case LSHIFT_EXPR:
4670 : 0 : {
4671 : 0 : tree _q80 = gimple_assign_rhs1 (_a4);
4672 : 0 : _q80 = do_valueize (valueize, _q80);
4673 : 0 : tree _q81 = gimple_assign_rhs2 (_a4);
4674 : 0 : _q81 = do_valueize (valueize, _q81);
4675 : 0 : if (integer_onep (_q80))
4676 : : {
4677 : 0 : {
4678 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q31, _p0, _p1, _q30, _q80, _q81 };
4679 : 0 : if (TYPE_PRECISION (type) <= TYPE_PRECISION (TREE_TYPE (captures[0]))
4680 : : )
4681 : : {
4682 : 0 : {
4683 : 0 : res_ops[0] = captures[0];
4684 : 0 : res_ops[1] = captures[1];
4685 : 0 : res_ops[2] = captures[2];
4686 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 93, __FILE__, __LINE__, false);
4687 : 0 : return true;
4688 : : }
4689 : : }
4690 : : }
4691 : : }
4692 : : break;
4693 : : }
4694 : : default:;
4695 : : }
4696 : : }
4697 : : break;
4698 : : default:;
4699 : : }
4700 : : }
4701 : : break;
4702 : : }
4703 : : default:;
4704 : : }
4705 : : }
4706 : : break;
4707 : : default:;
4708 : : }
4709 : : }
4710 : : }
4711 : : }
4712 : : break;
4713 : : default:;
4714 : : }
4715 : : }
4716 : : break;
4717 : : default:;
4718 : : }
4719 : 94 : break;
4720 : : }
4721 : : default:;
4722 : : }
4723 : : }
4724 : : break;
4725 : : default:;
4726 : : }
4727 : : return false;
4728 : : }
4729 : :
4730 : : bool
4731 : 6222 : gimple_simplify_336 (gimple_match_op *res_op, gimple_seq *seq,
4732 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
4733 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
4734 : : const enum tree_code ARG_UNUSED (div))
4735 : : {
4736 : 6222 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4737 : 6222 : if (ANY_INTEGRAL_TYPE_P (type)
4738 : : )
4739 : : {
4740 : 6222 : if (TYPE_OVERFLOW_UNDEFINED (type) && !TYPE_OVERFLOW_SANITIZED (type)
4741 : : )
4742 : : {
4743 : 4450 : gimple_seq *lseq = seq;
4744 : 4450 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1079;
4745 : 4450 : {
4746 : 4450 : tree tem;
4747 : 4450 : tem = captures[0];
4748 : 4450 : res_op->set_value (tem);
4749 : 4450 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 545, __FILE__, __LINE__, true);
4750 : 4450 : return true;
4751 : : }
4752 : 0 : next_after_fail1079:;
4753 : : }
4754 : : else
4755 : : {
4756 : 1772 : {
4757 : 1772 : int_range_max vr0, vr1;
4758 : 1772 : if (INTEGRAL_TYPE_P (type)
4759 : 3512 : && get_range_query (cfun)->range_of_expr (vr0, captures[0])
4760 : 3512 : && get_range_query (cfun)->range_of_expr (vr1, captures[1])
4761 : 3528 : && range_op_handler (MULT_EXPR).overflow_free_p (vr0, vr1)
4762 : : )
4763 : : {
4764 : 40 : gimple_seq *lseq = seq;
4765 : 40 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1080;
4766 : 40 : {
4767 : 40 : tree tem;
4768 : 40 : tem = captures[0];
4769 : 40 : res_op->set_value (tem);
4770 : 40 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 546, __FILE__, __LINE__, true);
4771 : 40 : return true;
4772 : : }
4773 : 0 : next_after_fail1080:;
4774 : : }
4775 : 1772 : }
4776 : : }
4777 : : }
4778 : : return false;
4779 : : }
4780 : :
4781 : : bool
4782 : 2090 : gimple_simplify_343 (gimple_match_op *res_op, gimple_seq *seq,
4783 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
4784 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
4785 : : const enum tree_code ARG_UNUSED (mod))
4786 : : {
4787 : 2090 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4788 : 2090 : gimple_seq *lseq = seq;
4789 : 2090 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1089;
4790 : 2090 : {
4791 : 2090 : tree tem;
4792 : 2090 : tem = build_zero_cst (type);
4793 : 2090 : res_op->set_value (tem);
4794 : 2090 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 555, __FILE__, __LINE__, true);
4795 : : return true;
4796 : : }
4797 : 0 : next_after_fail1089:;
4798 : 0 : return false;
4799 : : }
4800 : :
4801 : : bool
4802 : 11382 : gimple_simplify_347 (gimple_match_op *res_op, gimple_seq *seq,
4803 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
4804 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
4805 : : const enum tree_code ARG_UNUSED (mod))
4806 : : {
4807 : 11382 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4808 : 0 : if (ANY_INTEGRAL_TYPE_P (type)
4809 : 11382 : && TYPE_OVERFLOW_UNDEFINED (type)
4810 : 22764 : && wi::multiple_of_p (wi::to_wide (captures[1]), wi::to_wide (captures[2]),
4811 : 2548 : TYPE_SIGN (type))
4812 : : )
4813 : : {
4814 : 26 : gimple_seq *lseq = seq;
4815 : 26 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1093;
4816 : 26 : {
4817 : 26 : tree tem;
4818 : 26 : tem = build_zero_cst (type);
4819 : 26 : res_op->set_value (tem);
4820 : 26 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 559, __FILE__, __LINE__, true);
4821 : 26 : return true;
4822 : : }
4823 : 0 : next_after_fail1093:;
4824 : : }
4825 : : return false;
4826 : : }
4827 : :
4828 : : bool
4829 : 0 : gimple_simplify_354 (gimple_match_op *res_op, gimple_seq *seq,
4830 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
4831 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
4832 : : const combined_fn ARG_UNUSED (SINH),
4833 : : const combined_fn ARG_UNUSED (COSH),
4834 : : const combined_fn ARG_UNUSED (TANH))
4835 : : {
4836 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4837 : 0 : if (flag_unsafe_math_optimizations && canonicalize_math_p ()
4838 : : )
4839 : : {
4840 : 0 : gimple_seq *lseq = seq;
4841 : 0 : if (lseq
4842 : 0 : && (!single_use (captures[0])
4843 : 0 : || !single_use (captures[2])))
4844 : 0 : lseq = NULL;
4845 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1102;
4846 : 0 : {
4847 : 0 : res_op->set_op (TANH, type, 1);
4848 : 0 : res_op->ops[0] = captures[1];
4849 : 0 : res_op->resimplify (lseq, valueize);
4850 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 568, __FILE__, __LINE__, true);
4851 : 0 : return true;
4852 : : }
4853 : 0 : next_after_fail1102:;
4854 : : }
4855 : : return false;
4856 : : }
4857 : :
4858 : : bool
4859 : 171 : gimple_simplify_359 (gimple_match_op *res_op, gimple_seq *seq,
4860 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
4861 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
4862 : : const combined_fn ARG_UNUSED (POW))
4863 : : {
4864 : 171 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4865 : 171 : if (flag_unsafe_math_optimizations && canonicalize_math_p ()
4866 : : )
4867 : : {
4868 : 0 : gimple_seq *lseq = seq;
4869 : 0 : if (lseq
4870 : 0 : && (!single_use (captures[1])))
4871 : 0 : lseq = NULL;
4872 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1107;
4873 : 0 : {
4874 : 0 : res_op->set_op (MULT_EXPR, type, 2);
4875 : 0 : res_op->ops[0] = captures[0];
4876 : 0 : {
4877 : 0 : tree _o1[2], _r1;
4878 : 0 : _o1[0] = captures[2];
4879 : 0 : {
4880 : 0 : tree _o2[1], _r2;
4881 : 0 : _o2[0] = captures[3];
4882 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), NEGATE_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
4883 : 0 : tem_op.resimplify (lseq, valueize);
4884 : 0 : _r2 = maybe_push_res_to_seq (&tem_op, lseq);
4885 : 0 : if (!_r2) goto next_after_fail1107;
4886 : 0 : _o1[1] = _r2;
4887 : : }
4888 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), POW, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
4889 : 0 : tem_op.resimplify (lseq, valueize);
4890 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
4891 : 0 : if (!_r1) goto next_after_fail1107;
4892 : 0 : res_op->ops[1] = _r1;
4893 : : }
4894 : 0 : res_op->resimplify (lseq, valueize);
4895 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 573, __FILE__, __LINE__, true);
4896 : 0 : return true;
4897 : : }
4898 : : next_after_fail1107:;
4899 : : }
4900 : : return false;
4901 : : }
4902 : :
4903 : : bool
4904 : 4765 : gimple_simplify_366 (gimple_match_op *res_op, gimple_seq *seq,
4905 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
4906 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
4907 : : const enum tree_code ARG_UNUSED (op))
4908 : : {
4909 : 4765 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4910 : 9530 : if (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
4911 : 9530 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[0]))
4912 : : )
4913 : : {
4914 : 397 : gimple_seq *lseq = seq;
4915 : 397 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1116;
4916 : 397 : {
4917 : 397 : res_op->set_op (op, type, 2);
4918 : 397 : res_op->ops[0] = captures[0];
4919 : 397 : res_op->ops[1] = captures[2];
4920 : 397 : res_op->resimplify (lseq, valueize);
4921 : 397 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 582, __FILE__, __LINE__, true);
4922 : 397 : return true;
4923 : : }
4924 : 0 : next_after_fail1116:;
4925 : : }
4926 : : return false;
4927 : : }
4928 : :
4929 : : bool
4930 : 1123 : gimple_simplify_370 (gimple_match_op *res_op, gimple_seq *seq,
4931 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
4932 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
4933 : : const enum tree_code ARG_UNUSED (minmax),
4934 : : const enum tree_code ARG_UNUSED (cmp))
4935 : : {
4936 : 1123 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4937 : 1123 : gimple_seq *lseq = seq;
4938 : 1123 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1121;
4939 : 1123 : {
4940 : 1123 : tree tem;
4941 : 1123 : tem = constant_boolean_node (cmp == GE_EXPR || cmp == LE_EXPR, type);
4942 : 1123 : res_op->set_value (tem);
4943 : 1123 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 587, __FILE__, __LINE__, true);
4944 : : return true;
4945 : : }
4946 : 0 : next_after_fail1121:;
4947 : 0 : return false;
4948 : : }
4949 : :
4950 : : bool
4951 : 1384124 : gimple_simplify_375 (gimple_match_op *res_op, gimple_seq *seq,
4952 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
4953 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
4954 : : const enum tree_code ARG_UNUSED (cmp))
4955 : : {
4956 : 1384124 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
4957 : 2768236 : if ((INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
4958 : 24 : || POINTER_TYPE_P (TREE_TYPE (captures[2]))
4959 : 14 : || VECTOR_INTEGER_TYPE_P (TREE_TYPE (captures[2])))
4960 : 2768236 : && tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
4961 : : )
4962 : : {
4963 : 873732 : {
4964 : 873732 : tree cst = uniform_integer_cst_p (captures[2]);
4965 : 873732 : tree arg1_type = TREE_TYPE (cst);
4966 : 873732 : unsigned int prec = TYPE_PRECISION (arg1_type);
4967 : 873732 : wide_int max = wi::max_value (arg1_type);
4968 : 873732 : wide_int signed_max = wi::max_value (prec, SIGNED);
4969 : 873732 : wide_int min = wi::min_value (arg1_type);
4970 : 873732 : if (wi::to_wide (cst) == max
4971 : : )
4972 : : {
4973 : 360 : if (cmp == GT_EXPR
4974 : : )
4975 : : {
4976 : 336 : gimple_seq *lseq = seq;
4977 : 336 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1128;
4978 : 336 : {
4979 : 336 : tree tem;
4980 : 336 : tem = constant_boolean_node (false, type);
4981 : 336 : res_op->set_value (tem);
4982 : 336 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 594, __FILE__, __LINE__, true);
4983 : 336 : return true;
4984 : : }
4985 : 0 : next_after_fail1128:;
4986 : : }
4987 : : else
4988 : : {
4989 : 24 : if (cmp == GE_EXPR
4990 : : )
4991 : : {
4992 : 0 : gimple_seq *lseq = seq;
4993 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1129;
4994 : 0 : {
4995 : 0 : res_op->set_op (EQ_EXPR, type, 2);
4996 : 0 : res_op->ops[0] = captures[0];
4997 : 0 : res_op->ops[1] = captures[2];
4998 : 0 : res_op->resimplify (lseq, valueize);
4999 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 595, __FILE__, __LINE__, true);
5000 : 0 : return true;
5001 : : }
5002 : 0 : next_after_fail1129:;
5003 : : }
5004 : : else
5005 : : {
5006 : 24 : if (cmp == LE_EXPR
5007 : : )
5008 : : {
5009 : 24 : gimple_seq *lseq = seq;
5010 : 24 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1130;
5011 : 24 : {
5012 : 24 : tree tem;
5013 : 24 : tem = constant_boolean_node (true, type);
5014 : 24 : res_op->set_value (tem);
5015 : 24 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 596, __FILE__, __LINE__, true);
5016 : 24 : return true;
5017 : : }
5018 : 0 : next_after_fail1130:;
5019 : : }
5020 : : else
5021 : : {
5022 : 0 : if (cmp == LT_EXPR
5023 : : )
5024 : : {
5025 : 0 : gimple_seq *lseq = seq;
5026 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1131;
5027 : 0 : {
5028 : 0 : res_op->set_op (NE_EXPR, type, 2);
5029 : 0 : res_op->ops[0] = captures[0];
5030 : 0 : res_op->ops[1] = captures[2];
5031 : 0 : res_op->resimplify (lseq, valueize);
5032 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 597, __FILE__, __LINE__, true);
5033 : 0 : return true;
5034 : : }
5035 : 0 : next_after_fail1131:;
5036 : : }
5037 : : }
5038 : : }
5039 : : }
5040 : : }
5041 : : else
5042 : : {
5043 : 873372 : if (wi::to_wide (cst) == min
5044 : : )
5045 : : {
5046 : 23359 : if (cmp == LT_EXPR
5047 : : )
5048 : : {
5049 : 1454 : gimple_seq *lseq = seq;
5050 : 1454 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1132;
5051 : 1454 : {
5052 : 1454 : tree tem;
5053 : 1454 : tem = constant_boolean_node (false, type);
5054 : 1454 : res_op->set_value (tem);
5055 : 1454 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 598, __FILE__, __LINE__, true);
5056 : 1454 : return true;
5057 : : }
5058 : 0 : next_after_fail1132:;
5059 : : }
5060 : : else
5061 : : {
5062 : 21905 : if (cmp == LE_EXPR
5063 : : )
5064 : : {
5065 : 5017 : gimple_seq *lseq = seq;
5066 : 5017 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1133;
5067 : 5017 : {
5068 : 5017 : res_op->set_op (EQ_EXPR, type, 2);
5069 : 5017 : res_op->ops[0] = captures[0];
5070 : 5017 : res_op->ops[1] = captures[2];
5071 : 5017 : res_op->resimplify (lseq, valueize);
5072 : 5017 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 599, __FILE__, __LINE__, true);
5073 : 5017 : return true;
5074 : : }
5075 : 0 : next_after_fail1133:;
5076 : : }
5077 : : else
5078 : : {
5079 : 16888 : if (cmp == GE_EXPR
5080 : : )
5081 : : {
5082 : 374 : gimple_seq *lseq = seq;
5083 : 374 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1134;
5084 : 374 : {
5085 : 374 : tree tem;
5086 : 374 : tem = constant_boolean_node (true, type);
5087 : 374 : res_op->set_value (tem);
5088 : 374 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 600, __FILE__, __LINE__, true);
5089 : 374 : return true;
5090 : : }
5091 : 0 : next_after_fail1134:;
5092 : : }
5093 : : else
5094 : : {
5095 : 16514 : if (cmp == GT_EXPR
5096 : : )
5097 : : {
5098 : 16514 : gimple_seq *lseq = seq;
5099 : 16514 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1135;
5100 : 16514 : {
5101 : 16514 : res_op->set_op (NE_EXPR, type, 2);
5102 : 16514 : res_op->ops[0] = captures[0];
5103 : 16514 : res_op->ops[1] = captures[2];
5104 : 16514 : res_op->resimplify (lseq, valueize);
5105 : 16514 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 601, __FILE__, __LINE__, true);
5106 : 16514 : return true;
5107 : : }
5108 : 0 : next_after_fail1135:;
5109 : : }
5110 : : }
5111 : : }
5112 : : }
5113 : : }
5114 : : else
5115 : : {
5116 : 850013 : if (wi::to_wide (cst) == max - 1
5117 : : )
5118 : : {
5119 : 167 : if (cmp == GT_EXPR
5120 : : )
5121 : : {
5122 : 112 : gimple_seq *lseq = seq;
5123 : 112 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1136;
5124 : 112 : {
5125 : 112 : res_op->set_op (EQ_EXPR, type, 2);
5126 : 112 : res_op->ops[0] = captures[0];
5127 : 112 : res_op->ops[1] = build_uniform_cst (TREE_TYPE (captures[2]),
5128 : 112 : wide_int_to_tree (TREE_TYPE (cst),
5129 : 112 : wi::to_wide (cst)
5130 : 224 : + 1));
5131 : 112 : res_op->resimplify (lseq, valueize);
5132 : 112 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 602, __FILE__, __LINE__, true);
5133 : 112 : return true;
5134 : : }
5135 : 0 : next_after_fail1136:;
5136 : : }
5137 : : else
5138 : : {
5139 : 55 : if (cmp == LE_EXPR
5140 : : )
5141 : : {
5142 : 55 : gimple_seq *lseq = seq;
5143 : 55 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1137;
5144 : 55 : {
5145 : 55 : res_op->set_op (NE_EXPR, type, 2);
5146 : 55 : res_op->ops[0] = captures[0];
5147 : 55 : res_op->ops[1] = build_uniform_cst (TREE_TYPE (captures[2]),
5148 : 55 : wide_int_to_tree (TREE_TYPE (cst),
5149 : 55 : wi::to_wide (cst)
5150 : 110 : + 1));
5151 : 55 : res_op->resimplify (lseq, valueize);
5152 : 55 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 603, __FILE__, __LINE__, true);
5153 : 55 : return true;
5154 : : }
5155 : 0 : next_after_fail1137:;
5156 : : }
5157 : : }
5158 : : }
5159 : : else
5160 : : {
5161 : 849846 : if (wi::to_wide (cst) == min + 1
5162 : : )
5163 : : {
5164 : 23702 : if (cmp == GE_EXPR
5165 : : )
5166 : : {
5167 : 0 : gimple_seq *lseq = seq;
5168 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1138;
5169 : 0 : {
5170 : 0 : res_op->set_op (NE_EXPR, type, 2);
5171 : 0 : res_op->ops[0] = captures[0];
5172 : 0 : res_op->ops[1] = build_uniform_cst (TREE_TYPE (captures[2]),
5173 : 0 : wide_int_to_tree (TREE_TYPE (cst),
5174 : 0 : wi::to_wide (cst)
5175 : 0 : - 1));
5176 : 0 : res_op->resimplify (lseq, valueize);
5177 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 604, __FILE__, __LINE__, true);
5178 : 0 : return true;
5179 : : }
5180 : 0 : next_after_fail1138:;
5181 : : }
5182 : : else
5183 : : {
5184 : 23702 : if (cmp == LT_EXPR
5185 : : )
5186 : : {
5187 : 5 : gimple_seq *lseq = seq;
5188 : 5 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1139;
5189 : 5 : {
5190 : 5 : res_op->set_op (EQ_EXPR, type, 2);
5191 : 5 : res_op->ops[0] = captures[0];
5192 : 5 : res_op->ops[1] = build_uniform_cst (TREE_TYPE (captures[2]),
5193 : 5 : wide_int_to_tree (TREE_TYPE (cst),
5194 : 5 : wi::to_wide (cst)
5195 : 10 : - 1));
5196 : 5 : res_op->resimplify (lseq, valueize);
5197 : 5 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 605, __FILE__, __LINE__, true);
5198 : 5 : return true;
5199 : : }
5200 : 0 : next_after_fail1139:;
5201 : : }
5202 : : }
5203 : : }
5204 : : else
5205 : : {
5206 : 826144 : if (wi::to_wide (cst) == signed_max
5207 : 127 : && TYPE_UNSIGNED (arg1_type)
5208 : 127 : && TYPE_MODE (arg1_type) != BLKmode
5209 : 826144 : && prec == GET_MODE_PRECISION (SCALAR_INT_TYPE_MODE (arg1_type))
5210 : 826271 : && INTEGRAL_TYPE_P (arg1_type)
5211 : : )
5212 : : {
5213 : 127 : if (cmp == LE_EXPR || cmp == GT_EXPR
5214 : : )
5215 : : {
5216 : 127 : {
5217 : 127 : tree st = signed_type_for (TREE_TYPE (captures[2]));
5218 : 127 : if (cst == captures[2] && cmp == LE_EXPR
5219 : : )
5220 : : {
5221 : 17 : gimple_seq *lseq = seq;
5222 : 17 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1140;
5223 : 17 : {
5224 : 17 : res_op->set_op (GE_EXPR, type, 2);
5225 : 17 : {
5226 : 17 : tree _o1[1], _r1;
5227 : 17 : _o1[0] = captures[1];
5228 : 17 : if (st != TREE_TYPE (_o1[0]) /* XXX */
5229 : 17 : && !useless_type_conversion_p (st, TREE_TYPE (_o1[0])))
5230 : : {
5231 : 12 : gimple_match_op tem_op (res_op->cond.any_else (), NOP_EXPR, st, _o1[0]);
5232 : 12 : tem_op.resimplify (lseq, valueize);
5233 : 12 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
5234 : 12 : if (!_r1) goto next_after_fail1140;
5235 : : }
5236 : : else
5237 : : _r1 = _o1[0];
5238 : 5 : res_op->ops[0] = _r1;
5239 : : }
5240 : 5 : res_op->ops[1] = build_zero_cst (st);
5241 : 5 : res_op->resimplify (lseq, valueize);
5242 : 5 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 606, __FILE__, __LINE__, true);
5243 : 5 : return true;
5244 : : }
5245 : 849746 : next_after_fail1140:;
5246 : : }
5247 : : else
5248 : : {
5249 : 110 : if (cst == captures[2] && cmp == GT_EXPR
5250 : : )
5251 : : {
5252 : 110 : gimple_seq *lseq = seq;
5253 : 110 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1141;
5254 : 110 : {
5255 : 110 : res_op->set_op (LT_EXPR, type, 2);
5256 : 110 : {
5257 : 110 : tree _o1[1], _r1;
5258 : 110 : _o1[0] = captures[1];
5259 : 110 : if (st != TREE_TYPE (_o1[0]) /* XXX */
5260 : 110 : && !useless_type_conversion_p (st, TREE_TYPE (_o1[0])))
5261 : : {
5262 : 20 : gimple_match_op tem_op (res_op->cond.any_else (), NOP_EXPR, st, _o1[0]);
5263 : 20 : tem_op.resimplify (lseq, valueize);
5264 : 20 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
5265 : 20 : if (!_r1) goto next_after_fail1141;
5266 : : }
5267 : : else
5268 : : _r1 = _o1[0];
5269 : 90 : res_op->ops[0] = _r1;
5270 : : }
5271 : 90 : res_op->ops[1] = build_zero_cst (st);
5272 : 90 : res_op->resimplify (lseq, valueize);
5273 : 90 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 607, __FILE__, __LINE__, true);
5274 : 90 : return true;
5275 : : }
5276 : 849746 : next_after_fail1141:;
5277 : : }
5278 : : else
5279 : : {
5280 : 0 : if (cmp == LE_EXPR
5281 : : )
5282 : : {
5283 : 0 : gimple_seq *lseq = seq;
5284 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1142;
5285 : 0 : {
5286 : 0 : res_op->set_op (GE_EXPR, type, 2);
5287 : 0 : {
5288 : 0 : tree _o1[1], _r1;
5289 : 0 : _o1[0] = captures[1];
5290 : 0 : if (st != TREE_TYPE (_o1[0]) /* XXX */
5291 : 0 : && !useless_type_conversion_p (st, TREE_TYPE (_o1[0])))
5292 : : {
5293 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), VIEW_CONVERT_EXPR, st, _o1[0]);
5294 : 0 : tem_op.resimplify (lseq, valueize);
5295 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
5296 : 0 : if (!_r1) goto next_after_fail1142;
5297 : : }
5298 : : else
5299 : : _r1 = _o1[0];
5300 : 0 : res_op->ops[0] = _r1;
5301 : : }
5302 : 0 : res_op->ops[1] = build_zero_cst (st);
5303 : 0 : res_op->resimplify (lseq, valueize);
5304 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 608, __FILE__, __LINE__, true);
5305 : 0 : return true;
5306 : : }
5307 : 849746 : next_after_fail1142:;
5308 : : }
5309 : : else
5310 : : {
5311 : 0 : if (cmp == GT_EXPR
5312 : : )
5313 : : {
5314 : 0 : gimple_seq *lseq = seq;
5315 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1143;
5316 : 0 : {
5317 : 0 : res_op->set_op (LT_EXPR, type, 2);
5318 : 0 : {
5319 : 0 : tree _o1[1], _r1;
5320 : 0 : _o1[0] = captures[1];
5321 : 0 : if (st != TREE_TYPE (_o1[0]) /* XXX */
5322 : 0 : && !useless_type_conversion_p (st, TREE_TYPE (_o1[0])))
5323 : : {
5324 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), VIEW_CONVERT_EXPR, st, _o1[0]);
5325 : 0 : tem_op.resimplify (lseq, valueize);
5326 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
5327 : 0 : if (!_r1) goto next_after_fail1143;
5328 : : }
5329 : : else
5330 : : _r1 = _o1[0];
5331 : 0 : res_op->ops[0] = _r1;
5332 : : }
5333 : 0 : res_op->ops[1] = build_zero_cst (st);
5334 : 0 : res_op->resimplify (lseq, valueize);
5335 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 609, __FILE__, __LINE__, true);
5336 : 0 : return true;
5337 : : }
5338 : 849746 : next_after_fail1143:;
5339 : : }
5340 : : }
5341 : : }
5342 : : }
5343 : : }
5344 : : }
5345 : : }
5346 : : }
5347 : : }
5348 : : }
5349 : : }
5350 : 873732 : }
5351 : : }
5352 : : return false;
5353 : : }
5354 : :
5355 : : bool
5356 : 172 : gimple_simplify_413 (gimple_match_op *res_op, gimple_seq *seq,
5357 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
5358 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures))
5359 : : {
5360 : 172 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
5361 : 172 : {
5362 : 172 : unsigned prec = TYPE_PRECISION (type);
5363 : 172 : int shift = (64 - prec) & 63;
5364 : 172 : unsigned HOST_WIDE_INT c1
5365 : : = HOST_WIDE_INT_UC (0x0101010101010101) >> shift;
5366 : 172 : unsigned HOST_WIDE_INT c2
5367 : : = HOST_WIDE_INT_UC (0x0F0F0F0F0F0F0F0F) >> shift;
5368 : 172 : unsigned HOST_WIDE_INT c3
5369 : : = HOST_WIDE_INT_UC (0x3333333333333333) >> shift;
5370 : 172 : unsigned HOST_WIDE_INT c4
5371 : : = HOST_WIDE_INT_UC (0x5555555555555555) >> shift;
5372 : 172 : if (prec >= 16
5373 : 172 : && prec <= 64
5374 : 172 : && pow2p_hwi (prec)
5375 : 172 : && TYPE_UNSIGNED (type)
5376 : 172 : && integer_onep (captures[5])
5377 : 151 : && wi::to_widest (captures[7]) == 2
5378 : 130 : && wi::to_widest (captures[1]) == 4
5379 : 172 : && wi::to_widest (captures[11]) == prec - 8
5380 : 109 : && tree_to_uhwi (captures[10]) == c1
5381 : 109 : && tree_to_uhwi (captures[9]) == c2
5382 : 109 : && tree_to_uhwi (captures[8]) == c3
5383 : 109 : && tree_to_uhwi (captures[3]) == c3
5384 : 281 : && tree_to_uhwi (captures[6]) == c4
5385 : : )
5386 : : {
5387 : 109 : if (direct_internal_fn_supported_p (IFN_POPCOUNT, type,
5388 : : OPTIMIZE_FOR_BOTH)
5389 : : )
5390 : : {
5391 : 0 : gimple_seq *lseq = seq;
5392 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1214;
5393 : 0 : {
5394 : 0 : res_op->set_op (NOP_EXPR, type, 1);
5395 : 0 : {
5396 : 0 : tree _o1[1], _r1;
5397 : 0 : _o1[0] = captures[4];
5398 : 0 : (*res_op).set_op (CFN_POPCOUNT, type, 1);
5399 : 0 : (*res_op).ops[0] = _o1[0];
5400 : 0 : (*res_op).resimplify (lseq, valueize);
5401 : : }
5402 : 0 : if (type != res_op->type
5403 : 0 : && !useless_type_conversion_p (type, res_op->type))
5404 : : {
5405 : 0 : if (!(res_op->ops[0] = maybe_push_res_to_seq (res_op, lseq))) goto next_after_fail1214;
5406 : 0 : res_op->set_op (NOP_EXPR, type, 1);
5407 : 0 : res_op->resimplify (lseq, valueize);
5408 : : }
5409 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 657, __FILE__, __LINE__, true);
5410 : 0 : return true;
5411 : : }
5412 : : next_after_fail1214:;
5413 : : }
5414 : : else
5415 : : {
5416 : 109 : {
5417 : 109 : tree half_type = NULL_TREE;
5418 : 109 : opt_machine_mode m = mode_for_size ((prec + 1) / 2, MODE_INT, 1);
5419 : 109 : int half_prec = 8;
5420 : 109 : if (m.exists ()
5421 : 109 : && m.require () != TYPE_MODE (type))
5422 : : {
5423 : 109 : half_prec = GET_MODE_PRECISION (as_a <scalar_int_mode> (m));
5424 : 109 : half_type = build_nonstandard_integer_type (half_prec, 1);
5425 : : }
5426 : 109 : gcc_assert (half_prec > 2);
5427 : 109 : if (half_type != NULL_TREE
5428 : 109 : && direct_internal_fn_supported_p (IFN_POPCOUNT, half_type,
5429 : : OPTIMIZE_FOR_BOTH)
5430 : : )
5431 : : {
5432 : 0 : gimple_seq *lseq = seq;
5433 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1215;
5434 : 0 : {
5435 : 0 : res_op->set_op (NOP_EXPR, type, 1);
5436 : 0 : {
5437 : 0 : tree _o1[2], _r1;
5438 : 0 : {
5439 : 0 : tree _o2[1], _r2;
5440 : 0 : {
5441 : 0 : tree _o3[1], _r3;
5442 : 0 : _o3[0] = captures[4];
5443 : 0 : if (half_type != TREE_TYPE (_o3[0]) /* XXX */
5444 : 0 : && !useless_type_conversion_p (half_type, TREE_TYPE (_o3[0])))
5445 : : {
5446 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), NOP_EXPR, half_type, _o3[0]);
5447 : 0 : tem_op.resimplify (lseq, valueize);
5448 : 0 : _r3 = maybe_push_res_to_seq (&tem_op, lseq);
5449 : 0 : if (!_r3) goto next_after_fail1215;
5450 : : }
5451 : : else
5452 : : _r3 = _o3[0];
5453 : 0 : _o2[0] = _r3;
5454 : : }
5455 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), CFN_POPCOUNT, half_type, _o2[0]);
5456 : 0 : tem_op.resimplify (lseq, valueize);
5457 : 0 : _r2 = maybe_push_res_to_seq (&tem_op, lseq);
5458 : 0 : if (!_r2) goto next_after_fail1215;
5459 : 0 : _o1[0] = _r2;
5460 : : }
5461 : 0 : {
5462 : 0 : tree _o2[1], _r2;
5463 : 0 : {
5464 : 0 : tree _r3;
5465 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), ERROR_MARK, error_mark_node, 1);
5466 : 0 : {
5467 : 0 : tree _o4[2], _r4;
5468 : 0 : _o4[0] = captures[4];
5469 : 0 : _o4[1] = build_int_cst (integer_type_node, half_prec);
5470 : 0 : tem_op.set_op (RSHIFT_EXPR, TREE_TYPE (_o4[0]), 2);
5471 : 0 : tem_op.ops[0] = _o4[0];
5472 : 0 : tem_op.ops[1] = _o4[1];
5473 : 0 : tem_op.resimplify (lseq, valueize);
5474 : : }
5475 : 0 : if (half_type != tem_op.type
5476 : 0 : && !useless_type_conversion_p (half_type, tem_op.type))
5477 : : {
5478 : 0 : _r3 = maybe_push_res_to_seq (&tem_op, lseq);
5479 : 0 : if (!_r3) goto next_after_fail1215;
5480 : 0 : tem_op.set_op (NOP_EXPR, half_type, 1);
5481 : 0 : tem_op.ops[0] = _r3;
5482 : 0 : tem_op.resimplify (lseq, valueize);
5483 : : }
5484 : 0 : _r3 = maybe_push_res_to_seq (&tem_op, lseq);
5485 : 0 : if (!_r3) goto next_after_fail1215;
5486 : 0 : _o2[0] = _r3;
5487 : : }
5488 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), CFN_POPCOUNT, half_type, _o2[0]);
5489 : 0 : tem_op.resimplify (lseq, valueize);
5490 : 0 : _r2 = maybe_push_res_to_seq (&tem_op, lseq);
5491 : 0 : if (!_r2) goto next_after_fail1215;
5492 : 0 : _o1[1] = _r2;
5493 : : }
5494 : 0 : (*res_op).set_op (PLUS_EXPR, TREE_TYPE (_o1[0]), 2);
5495 : 0 : (*res_op).ops[0] = _o1[0];
5496 : 0 : (*res_op).ops[1] = _o1[1];
5497 : 0 : (*res_op).resimplify (lseq, valueize);
5498 : : }
5499 : 0 : if (type != res_op->type
5500 : 0 : && !useless_type_conversion_p (type, res_op->type))
5501 : : {
5502 : 0 : if (!(res_op->ops[0] = maybe_push_res_to_seq (res_op, lseq))) goto next_after_fail1215;
5503 : 0 : res_op->set_op (NOP_EXPR, type, 1);
5504 : 0 : res_op->resimplify (lseq, valueize);
5505 : : }
5506 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 658, __FILE__, __LINE__, true);
5507 : 0 : return true;
5508 : : }
5509 : 109 : next_after_fail1215:;
5510 : : }
5511 : : }
5512 : : }
5513 : : }
5514 : : }
5515 : : return false;
5516 : : }
5517 : :
5518 : : bool
5519 : 58 : gimple_simplify_428 (gimple_match_op *res_op, gimple_seq *seq,
5520 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
5521 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
5522 : : const combined_fn ARG_UNUSED (coshs),
5523 : : const combined_fn ARG_UNUSED (atanhs),
5524 : : const combined_fn ARG_UNUSED (sqrts))
5525 : : {
5526 : 58 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
5527 : 58 : if (!flag_errno_math
5528 : : )
5529 : : {
5530 : 30 : {
5531 : 30 : tree t_one = build_one_cst (type);
5532 : 30 : gimple_seq *lseq = seq;
5533 : 30 : if (lseq
5534 : 15 : && (!single_use (captures[0])))
5535 : 27 : lseq = NULL;
5536 : 30 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1243;
5537 : 30 : {
5538 : 30 : res_op->set_op (RDIV_EXPR, type, 2);
5539 : 30 : res_op->ops[0] = t_one;
5540 : 30 : {
5541 : 30 : tree _o1[1], _r1;
5542 : 30 : {
5543 : 30 : tree _o2[2], _r2;
5544 : 30 : {
5545 : 30 : tree _o3[2], _r3;
5546 : 30 : _o3[0] = t_one;
5547 : 30 : _o3[1] = captures[1];
5548 : 30 : gimple_match_op tem_op (res_op->cond.any_else (), MINUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
5549 : 30 : tem_op.resimplify (lseq, valueize);
5550 : 30 : _r3 = maybe_push_res_to_seq (&tem_op, lseq);
5551 : 30 : if (!_r3) goto next_after_fail1243;
5552 : 3 : _o2[0] = _r3;
5553 : : }
5554 : 3 : {
5555 : 3 : tree _o3[2], _r3;
5556 : 3 : _o3[0] = t_one;
5557 : 3 : _o3[1] = captures[1];
5558 : 3 : gimple_match_op tem_op (res_op->cond.any_else (), PLUS_EXPR, TREE_TYPE (_o3[0]), _o3[0], _o3[1]);
5559 : 3 : tem_op.resimplify (lseq, valueize);
5560 : 3 : _r3 = maybe_push_res_to_seq (&tem_op, lseq);
5561 : 3 : if (!_r3) goto next_after_fail1243;
5562 : 3 : _o2[1] = _r3;
5563 : : }
5564 : 3 : gimple_match_op tem_op (res_op->cond.any_else (), MULT_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
5565 : 3 : tem_op.resimplify (lseq, valueize);
5566 : 3 : _r2 = maybe_push_res_to_seq (&tem_op, lseq);
5567 : 3 : if (!_r2) goto next_after_fail1243;
5568 : 3 : _o1[0] = _r2;
5569 : : }
5570 : 3 : gimple_match_op tem_op (res_op->cond.any_else (), sqrts, TREE_TYPE (_o1[0]), _o1[0]);
5571 : 3 : tem_op.resimplify (lseq, valueize);
5572 : 3 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
5573 : 3 : if (!_r1) goto next_after_fail1243;
5574 : 3 : res_op->ops[1] = _r1;
5575 : : }
5576 : 3 : res_op->resimplify (lseq, valueize);
5577 : 3 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 674, __FILE__, __LINE__, true);
5578 : 3 : return true;
5579 : : }
5580 : : next_after_fail1243:;
5581 : : }
5582 : : }
5583 : : return false;
5584 : : }
5585 : :
5586 : : bool
5587 : 625 : gimple_simplify_431 (gimple_match_op *res_op, gimple_seq *seq,
5588 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
5589 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
5590 : : const combined_fn ARG_UNUSED (pow))
5591 : : {
5592 : 625 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
5593 : 625 : if (flag_unsafe_math_optimizations
5594 : : )
5595 : : {
5596 : 7 : if (! HONOR_INFINITIES (type)
5597 : 7 : && ! flag_trapping_math
5598 : 14 : && ! flag_errno_math
5599 : : )
5600 : : {
5601 : 7 : if (! HONOR_NANS (type) && ! HONOR_SIGNED_ZEROS (type)
5602 : : )
5603 : : {
5604 : 7 : gimple_seq *lseq = seq;
5605 : 7 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1246;
5606 : 7 : {
5607 : 7 : tree tem;
5608 : 7 : tem = captures[0];
5609 : 7 : res_op->set_value (tem);
5610 : 7 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 677, __FILE__, __LINE__, true);
5611 : 7 : return true;
5612 : : }
5613 : 0 : next_after_fail1246:;
5614 : : }
5615 : : }
5616 : : }
5617 : : return false;
5618 : : }
5619 : :
5620 : : bool
5621 : 0 : gimple_simplify_434 (gimple_match_op *res_op, gimple_seq *seq,
5622 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
5623 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures))
5624 : : {
5625 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
5626 : 0 : gimple_seq *lseq = seq;
5627 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1250;
5628 : 0 : {
5629 : 0 : tree tem;
5630 : 0 : tem = captures[0];
5631 : 0 : res_op->set_value (tem);
5632 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 681, __FILE__, __LINE__, true);
5633 : : return true;
5634 : : }
5635 : 0 : next_after_fail1250:;
5636 : 0 : return false;
5637 : : }
5638 : :
5639 : : bool
5640 : 2 : gimple_simplify_436 (gimple_match_op *res_op, gimple_seq *seq,
5641 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
5642 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
5643 : : const combined_fn ARG_UNUSED (copysigns),
5644 : : const combined_fn ARG_UNUSED (hypots))
5645 : : {
5646 : 2 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
5647 : 2 : gimple_seq *lseq = seq;
5648 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1252;
5649 : 2 : {
5650 : 2 : res_op->set_op (hypots, type, 2);
5651 : 2 : res_op->ops[0] = captures[0];
5652 : 2 : res_op->ops[1] = captures[1];
5653 : 2 : res_op->resimplify (lseq, valueize);
5654 : 2 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 683, __FILE__, __LINE__, true);
5655 : : return true;
5656 : : }
5657 : 0 : next_after_fail1252:;
5658 : 0 : return false;
5659 : : }
5660 : :
5661 : : bool
5662 : 21 : gimple_simplify_438 (gimple_match_op *res_op, gimple_seq *seq,
5663 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
5664 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
5665 : : const combined_fn ARG_UNUSED (HYPOT))
5666 : : {
5667 : 21 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
5668 : 21 : if (flag_unsafe_math_optimizations && canonicalize_math_p ()
5669 : : )
5670 : : {
5671 : 15 : gimple_seq *lseq = seq;
5672 : 15 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1254;
5673 : 15 : {
5674 : 15 : res_op->set_op (MULT_EXPR, type, 2);
5675 : 15 : {
5676 : 15 : tree _o1[1], _r1;
5677 : 15 : _o1[0] = captures[0];
5678 : 15 : gimple_match_op tem_op (res_op->cond.any_else (), ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
5679 : 15 : tem_op.resimplify (lseq, valueize);
5680 : 15 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
5681 : 15 : if (!_r1) goto next_after_fail1254;
5682 : 9 : res_op->ops[0] = _r1;
5683 : : }
5684 : 9 : res_op->ops[1] = build_real_truncate (type, dconst_sqrt2 ());
5685 : 9 : res_op->resimplify (lseq, valueize);
5686 : 9 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 685, __FILE__, __LINE__, true);
5687 : 9 : return true;
5688 : : }
5689 : : next_after_fail1254:;
5690 : : }
5691 : : return false;
5692 : : }
5693 : :
5694 : : bool
5695 : 2411 : gimple_simplify_442 (gimple_match_op *res_op, gimple_seq *seq,
5696 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
5697 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures))
5698 : : {
5699 : 2411 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
5700 : 2411 : gimple_seq *lseq = seq;
5701 : 2411 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1259;
5702 : 2411 : {
5703 : 2411 : res_op->set_op (PLUS_EXPR, type, 2);
5704 : 2411 : {
5705 : 2411 : tree _o1[1], _r1;
5706 : 2411 : _o1[0] = captures[0];
5707 : 2411 : if (type != TREE_TYPE (_o1[0]) /* XXX */
5708 : 2411 : && !useless_type_conversion_p (type, TREE_TYPE (_o1[0])))
5709 : : {
5710 : 445 : gimple_match_op tem_op (res_op->cond.any_else (), VIEW_CONVERT_EXPR, type, _o1[0]);
5711 : 445 : tem_op.resimplify (lseq, valueize);
5712 : 445 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
5713 : 445 : if (!_r1) goto next_after_fail1259;
5714 : : }
5715 : : else
5716 : : _r1 = _o1[0];
5717 : 2125 : res_op->ops[0] = _r1;
5718 : : }
5719 : 2125 : res_op->ops[1] = build_each_one_cst (type);
5720 : 2125 : res_op->resimplify (lseq, valueize);
5721 : 2125 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 690, __FILE__, __LINE__, true);
5722 : : return true;
5723 : : }
5724 : : next_after_fail1259:;
5725 : : return false;
5726 : : }
5727 : :
5728 : : bool
5729 : 195487 : gimple_simplify_450 (gimple_match_op *res_op, gimple_seq *seq,
5730 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
5731 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures))
5732 : : {
5733 : 195487 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
5734 : 195487 : {
5735 : 195487 : bool wascmp;
5736 : 195487 : if (bitwise_inverted_equal_p (captures[0], captures[1], wascmp)
5737 : 195487 : && (!wascmp || element_precision (type) == 1)
5738 : : )
5739 : : {
5740 : 31 : gimple_seq *lseq = seq;
5741 : 31 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1267;
5742 : 31 : {
5743 : 31 : res_op->set_op (BIT_AND_EXPR, type, 2);
5744 : 31 : res_op->ops[0] = captures[0];
5745 : 31 : res_op->ops[1] = captures[2];
5746 : 31 : res_op->resimplify (lseq, valueize);
5747 : 31 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 698, __FILE__, __LINE__, true);
5748 : 31 : return true;
5749 : : }
5750 : 0 : next_after_fail1267:;
5751 : : }
5752 : : }
5753 : 195456 : return false;
5754 : : }
5755 : :
5756 : : bool
5757 : 889 : gimple_simplify_456 (gimple_match_op *res_op, gimple_seq *seq,
5758 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
5759 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
5760 : : const enum tree_code ARG_UNUSED (bitop))
5761 : : {
5762 : 889 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
5763 : 889 : {
5764 : 889 : tree pmop[2];
5765 : 889 : tree utype = fold_bit_and_mask (TREE_TYPE (captures[1]), captures[4], NEGATE_EXPR, captures[1],
5766 : : bitop, captures[2], captures[3], NULL_TREE, ERROR_MARK,
5767 : : NULL_TREE, NULL_TREE, pmop);
5768 : 889 : if (utype
5769 : : )
5770 : : {
5771 : 889 : gimple_seq *lseq = seq;
5772 : 889 : if (lseq
5773 : 308 : && (!single_use (captures[0])
5774 : 300 : || !single_use (captures[1])))
5775 : 883 : lseq = NULL;
5776 : 889 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1273;
5777 : 889 : {
5778 : 889 : res_op->set_op (NOP_EXPR, type, 1);
5779 : 889 : {
5780 : 889 : tree _o1[2], _r1;
5781 : 889 : {
5782 : 889 : tree _o2[1], _r2;
5783 : 889 : {
5784 : 889 : tree _o3[1], _r3;
5785 : 889 : _o3[0] = pmop[0];
5786 : 889 : if (utype != TREE_TYPE (_o3[0]) /* XXX */
5787 : 889 : && !useless_type_conversion_p (utype, TREE_TYPE (_o3[0])))
5788 : : {
5789 : 583 : gimple_match_op tem_op (res_op->cond.any_else (), NOP_EXPR, utype, _o3[0]);
5790 : 583 : tem_op.resimplify (lseq, valueize);
5791 : 583 : _r3 = maybe_push_res_to_seq (&tem_op, lseq);
5792 : 583 : if (!_r3) goto next_after_fail1273;
5793 : : }
5794 : : else
5795 : : _r3 = _o3[0];
5796 : 325 : _o2[0] = _r3;
5797 : : }
5798 : 325 : gimple_match_op tem_op (res_op->cond.any_else (), NEGATE_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
5799 : 325 : tem_op.resimplify (lseq, valueize);
5800 : 325 : _r2 = maybe_push_res_to_seq (&tem_op, lseq);
5801 : 325 : if (!_r2) goto next_after_fail1273;
5802 : 8 : _o1[0] = _r2;
5803 : : }
5804 : 8 : {
5805 : 8 : tree _o2[1], _r2;
5806 : 8 : _o2[0] = captures[4];
5807 : 8 : if (utype != TREE_TYPE (_o2[0]) /* XXX */
5808 : 8 : && !useless_type_conversion_p (utype, TREE_TYPE (_o2[0])))
5809 : : {
5810 : 3 : gimple_match_op tem_op (res_op->cond.any_else (), NOP_EXPR, utype, _o2[0]);
5811 : 3 : tem_op.resimplify (lseq, valueize);
5812 : 3 : _r2 = maybe_push_res_to_seq (&tem_op, lseq);
5813 : 3 : if (!_r2) goto next_after_fail1273;
5814 : : }
5815 : : else
5816 : : _r2 = _o2[0];
5817 : 8 : _o1[1] = _r2;
5818 : : }
5819 : 8 : (*res_op).set_op (BIT_AND_EXPR, TREE_TYPE (_o1[0]), 2);
5820 : 8 : (*res_op).ops[0] = _o1[0];
5821 : 8 : (*res_op).ops[1] = _o1[1];
5822 : 8 : (*res_op).resimplify (lseq, valueize);
5823 : : }
5824 : 8 : if (type != res_op->type
5825 : 8 : && !useless_type_conversion_p (type, res_op->type))
5826 : : {
5827 : 3 : if (!(res_op->ops[0] = maybe_push_res_to_seq (res_op, lseq))) goto next_after_fail1273;
5828 : 3 : res_op->set_op (NOP_EXPR, type, 1);
5829 : 3 : res_op->resimplify (lseq, valueize);
5830 : : }
5831 : 8 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 703, __FILE__, __LINE__, true);
5832 : 8 : return true;
5833 : : }
5834 : 881 : next_after_fail1273:;
5835 : : }
5836 : : }
5837 : 881 : return false;
5838 : : }
5839 : :
5840 : : bool
5841 : 0 : gimple_simplify_464 (gimple_match_op *res_op, gimple_seq *seq,
5842 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
5843 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
5844 : : const enum tree_code ARG_UNUSED (cmp))
5845 : : {
5846 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
5847 : 0 : if (!canonicalize_math_p ()
5848 : : )
5849 : : {
5850 : 0 : if (INTEGRAL_TYPE_P (type)
5851 : 0 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
5852 : : )
5853 : : {
5854 : 0 : gimple_seq *lseq = seq;
5855 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1281;
5856 : 0 : {
5857 : 0 : res_op->set_op (COND_EXPR, type, 3);
5858 : 0 : res_op->ops[0] = captures[0];
5859 : 0 : res_op->ops[1] = captures[3];
5860 : 0 : res_op->ops[2] = build_zero_cst (type);
5861 : 0 : res_op->resimplify (lseq, valueize);
5862 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 711, __FILE__, __LINE__, true);
5863 : 0 : return true;
5864 : : }
5865 : 0 : next_after_fail1281:;
5866 : : }
5867 : : }
5868 : : return false;
5869 : : }
5870 : :
5871 : : bool
5872 : 444 : gimple_simplify_471 (gimple_match_op *res_op, gimple_seq *seq,
5873 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
5874 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
5875 : : const enum tree_code ARG_UNUSED (eqne))
5876 : : {
5877 : 444 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
5878 : 444 : if (eqne == EQ_EXPR
5879 : : )
5880 : : {
5881 : 10 : gimple_seq *lseq = seq;
5882 : 10 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1293;
5883 : 10 : {
5884 : 10 : tree tem;
5885 : 10 : tem = constant_boolean_node (false, type);
5886 : 10 : res_op->set_value (tem);
5887 : 10 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 719, __FILE__, __LINE__, true);
5888 : 10 : return true;
5889 : : }
5890 : 0 : next_after_fail1293:;
5891 : : }
5892 : : else
5893 : : {
5894 : 434 : if (eqne == NE_EXPR
5895 : : )
5896 : : {
5897 : 434 : gimple_seq *lseq = seq;
5898 : 434 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1294;
5899 : 434 : {
5900 : 434 : tree tem;
5901 : 434 : tem = captures[0];
5902 : 434 : res_op->set_value (tem);
5903 : 434 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 720, __FILE__, __LINE__, true);
5904 : 434 : return true;
5905 : : }
5906 : 0 : next_after_fail1294:;
5907 : : }
5908 : : }
5909 : : return false;
5910 : : }
5911 : :
5912 : : bool
5913 : 216446 : gimple_simplify_474 (gimple_match_op *res_op, gimple_seq *seq,
5914 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
5915 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
5916 : : const enum tree_code ARG_UNUSED (code2),
5917 : : const enum tree_code ARG_UNUSED (code1))
5918 : : {
5919 : 216446 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
5920 : 216446 : if ((TREE_CODE (captures[2]) == INTEGER_CST
5921 : 50458 : && TREE_CODE (captures[5]) == INTEGER_CST)
5922 : 228675 : || ((INTEGRAL_TYPE_P (TREE_TYPE (captures[2]))
5923 : 29423 : || POINTER_TYPE_P (TREE_TYPE (captures[2])))
5924 : 172407 : && bitwise_equal_p (captures[2], captures[5]))
5925 : : )
5926 : : {
5927 : 38233 : {
5928 : 38233 : bool one_before = false;
5929 : 38233 : bool one_after = false;
5930 : 38233 : int cmp = 0;
5931 : 38233 : bool allbits = true;
5932 : 38233 : if (TREE_CODE (captures[2]) == INTEGER_CST
5933 : 38229 : && TREE_CODE (captures[5]) == INTEGER_CST)
5934 : : {
5935 : 38229 : allbits = TYPE_PRECISION (TREE_TYPE (captures[2])) <= TYPE_PRECISION (TREE_TYPE (captures[5]));
5936 : 38229 : auto t1 = wi::to_wide (fold_convert (TREE_TYPE (captures[5]), captures[2]));
5937 : 38229 : auto t2 = wi::to_wide (captures[5]);
5938 : 38229 : cmp = wi::cmp (t1, t2, TYPE_SIGN (TREE_TYPE (captures[5])));
5939 : 38229 : if (cmp < 0
5940 : 38229 : && t1 == t2 - 1)
5941 : : one_before = true;
5942 : 38229 : if (cmp > 0
5943 : 38229 : && t1 == t2 + 1)
5944 : : one_after = true;
5945 : : }
5946 : 38233 : bool val;
5947 : 38233 : switch (code2)
5948 : : {
5949 : 0 : case EQ_EXPR: val = (cmp == 0); break;
5950 : 35585 : case NE_EXPR: val = (cmp != 0); break;
5951 : 51 : case LT_EXPR: val = (cmp < 0); break;
5952 : 1634 : case GT_EXPR: val = (cmp > 0); break;
5953 : 765 : case LE_EXPR: val = (cmp <= 0); break;
5954 : 198 : case GE_EXPR: val = (cmp >= 0); break;
5955 : 0 : default: gcc_unreachable ();
5956 : : }
5957 : 38233 : if (code1 == EQ_EXPR && val
5958 : : )
5959 : : {
5960 : 19 : gimple_seq *lseq = seq;
5961 : 19 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1304;
5962 : 19 : {
5963 : 19 : tree tem;
5964 : 19 : tem = captures[0];
5965 : 19 : res_op->set_value (tem);
5966 : 19 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 723, __FILE__, __LINE__, true);
5967 : 19 : return true;
5968 : : }
5969 : 0 : next_after_fail1304:;
5970 : : }
5971 : : else
5972 : : {
5973 : 38214 : if (code1 == EQ_EXPR && !val
5974 : : )
5975 : : {
5976 : 1 : gimple_seq *lseq = seq;
5977 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1305;
5978 : 1 : {
5979 : 1 : tree tem;
5980 : 1 : tem = constant_boolean_node (false, type);
5981 : 1 : res_op->set_value (tem);
5982 : 1 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 724, __FILE__, __LINE__, true);
5983 : 1 : return true;
5984 : : }
5985 : 0 : next_after_fail1305:;
5986 : : }
5987 : : else
5988 : : {
5989 : 38213 : if (code1 == NE_EXPR && !val && allbits
5990 : : )
5991 : : {
5992 : 119 : gimple_seq *lseq = seq;
5993 : 119 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1306;
5994 : 119 : {
5995 : 119 : tree tem;
5996 : 119 : tem = captures[3];
5997 : 119 : res_op->set_value (tem);
5998 : 119 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 725, __FILE__, __LINE__, true);
5999 : 119 : return true;
6000 : : }
6001 : 0 : next_after_fail1306:;
6002 : 0 : }
6003 : : else
6004 : : {
6005 : 38094 : if (code1 == NE_EXPR
6006 : 38094 : && code2 == GE_EXPR
6007 : 195 : && cmp == 0
6008 : 195 : && allbits
6009 : : )
6010 : : {
6011 : 5 : gimple_seq *lseq = seq;
6012 : 5 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1307;
6013 : 5 : {
6014 : 5 : res_op->set_op (GT_EXPR, type, 2);
6015 : 5 : res_op->ops[0] = captures[4];
6016 : 5 : {
6017 : 5 : tree _o1[1], _r1;
6018 : 5 : _o1[0] = captures[2];
6019 : 5 : if (TREE_TYPE (res_op->ops[0]) != TREE_TYPE (_o1[0]) /* XXX */
6020 : 5 : && !useless_type_conversion_p (TREE_TYPE (res_op->ops[0]), TREE_TYPE (_o1[0])))
6021 : : {
6022 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), NOP_EXPR, TREE_TYPE (res_op->ops[0]), _o1[0]);
6023 : 0 : tem_op.resimplify (lseq, valueize);
6024 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
6025 : 0 : if (!_r1) goto next_after_fail1307;
6026 : : }
6027 : : else
6028 : : _r1 = _o1[0];
6029 : 5 : res_op->ops[1] = _r1;
6030 : : }
6031 : 5 : res_op->resimplify (lseq, valueize);
6032 : 5 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 726, __FILE__, __LINE__, true);
6033 : 5 : return true;
6034 : : }
6035 : : next_after_fail1307:;
6036 : : }
6037 : : else
6038 : : {
6039 : 38089 : if (code1 == NE_EXPR
6040 : 38089 : && code2 == LE_EXPR
6041 : 716 : && cmp == 0
6042 : 716 : && allbits
6043 : : )
6044 : : {
6045 : 4 : gimple_seq *lseq = seq;
6046 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1308;
6047 : 4 : {
6048 : 4 : res_op->set_op (LT_EXPR, type, 2);
6049 : 4 : res_op->ops[0] = captures[4];
6050 : 4 : {
6051 : 4 : tree _o1[1], _r1;
6052 : 4 : _o1[0] = captures[2];
6053 : 4 : if (TREE_TYPE (res_op->ops[0]) != TREE_TYPE (_o1[0]) /* XXX */
6054 : 4 : && !useless_type_conversion_p (TREE_TYPE (res_op->ops[0]), TREE_TYPE (_o1[0])))
6055 : : {
6056 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), NOP_EXPR, TREE_TYPE (res_op->ops[0]), _o1[0]);
6057 : 0 : tem_op.resimplify (lseq, valueize);
6058 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
6059 : 0 : if (!_r1) goto next_after_fail1308;
6060 : : }
6061 : : else
6062 : : _r1 = _o1[0];
6063 : 4 : res_op->ops[1] = _r1;
6064 : : }
6065 : 4 : res_op->resimplify (lseq, valueize);
6066 : 4 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 727, __FILE__, __LINE__, true);
6067 : 4 : return true;
6068 : : }
6069 : : next_after_fail1308:;
6070 : : }
6071 : : else
6072 : : {
6073 : 38085 : if (code1 == NE_EXPR
6074 : 38085 : && code2 == GT_EXPR
6075 : : && one_after
6076 : 1581 : && allbits
6077 : : )
6078 : : {
6079 : 45 : gimple_seq *lseq = seq;
6080 : 45 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1309;
6081 : 45 : {
6082 : 45 : res_op->set_op (GT_EXPR, type, 2);
6083 : 45 : res_op->ops[0] = captures[4];
6084 : 45 : {
6085 : 45 : tree _o1[1], _r1;
6086 : 45 : _o1[0] = captures[2];
6087 : 45 : if (TREE_TYPE (res_op->ops[0]) != TREE_TYPE (_o1[0]) /* XXX */
6088 : 45 : && !useless_type_conversion_p (TREE_TYPE (res_op->ops[0]), TREE_TYPE (_o1[0])))
6089 : : {
6090 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), NOP_EXPR, TREE_TYPE (res_op->ops[0]), _o1[0]);
6091 : 0 : tem_op.resimplify (lseq, valueize);
6092 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
6093 : 0 : if (!_r1) goto next_after_fail1309;
6094 : : }
6095 : : else
6096 : : _r1 = _o1[0];
6097 : 45 : res_op->ops[1] = _r1;
6098 : : }
6099 : 45 : res_op->resimplify (lseq, valueize);
6100 : 45 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 728, __FILE__, __LINE__, true);
6101 : 45 : return true;
6102 : : }
6103 : : next_after_fail1309:;
6104 : : }
6105 : : else
6106 : : {
6107 : 38040 : if (code1 == NE_EXPR
6108 : 38040 : && code2 == LT_EXPR
6109 : : && one_before
6110 : 17 : && allbits
6111 : : )
6112 : : {
6113 : 0 : gimple_seq *lseq = seq;
6114 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1310;
6115 : 0 : {
6116 : 0 : res_op->set_op (LT_EXPR, type, 2);
6117 : 0 : res_op->ops[0] = captures[4];
6118 : 0 : {
6119 : 0 : tree _o1[1], _r1;
6120 : 0 : _o1[0] = captures[2];
6121 : 0 : if (TREE_TYPE (res_op->ops[0]) != TREE_TYPE (_o1[0]) /* XXX */
6122 : 0 : && !useless_type_conversion_p (TREE_TYPE (res_op->ops[0]), TREE_TYPE (_o1[0])))
6123 : : {
6124 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), NOP_EXPR, TREE_TYPE (res_op->ops[0]), _o1[0]);
6125 : 0 : tem_op.resimplify (lseq, valueize);
6126 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
6127 : 0 : if (!_r1) goto next_after_fail1310;
6128 : : }
6129 : : else
6130 : : _r1 = _o1[0];
6131 : 0 : res_op->ops[1] = _r1;
6132 : : }
6133 : 0 : res_op->resimplify (lseq, valueize);
6134 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 729, __FILE__, __LINE__, true);
6135 : 0 : return true;
6136 : : }
6137 : : next_after_fail1310:;
6138 : : }
6139 : : }
6140 : : }
6141 : : }
6142 : : }
6143 : : }
6144 : : }
6145 : : }
6146 : : }
6147 : : return false;
6148 : : }
6149 : :
6150 : : bool
6151 : 0 : gimple_simplify_492 (gimple_match_op *res_op, gimple_seq *seq,
6152 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
6153 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures))
6154 : : {
6155 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
6156 : 0 : gimple_seq *lseq = seq;
6157 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1354;
6158 : 0 : {
6159 : 0 : tree tem;
6160 : 0 : tem = captures[1];
6161 : 0 : res_op->set_value (tem);
6162 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 744, __FILE__, __LINE__, true);
6163 : : return true;
6164 : : }
6165 : 0 : next_after_fail1354:;
6166 : 0 : return false;
6167 : : }
6168 : :
6169 : : bool
6170 : 0 : gimple_simplify_495 (gimple_match_op *res_op, gimple_seq *seq,
6171 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
6172 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
6173 : : const combined_fn ARG_UNUSED (POPCOUNT),
6174 : : const combined_fn ARG_UNUSED (PARITY))
6175 : : {
6176 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
6177 : 0 : gimple_seq *lseq = seq;
6178 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1358;
6179 : 0 : {
6180 : 0 : res_op->set_op (PARITY, type, 1);
6181 : 0 : res_op->ops[0] = captures[0];
6182 : 0 : res_op->resimplify (lseq, valueize);
6183 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 747, __FILE__, __LINE__, true);
6184 : : return true;
6185 : : }
6186 : 0 : next_after_fail1358:;
6187 : 0 : return false;
6188 : : }
6189 : :
6190 : : bool
6191 : 50 : gimple_simplify_497 (gimple_match_op *res_op, gimple_seq *seq,
6192 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
6193 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures))
6194 : : {
6195 : 50 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
6196 : 50 : gimple_seq *lseq = seq;
6197 : 50 : if (lseq
6198 : 18 : && (!single_use (captures[0])))
6199 : 32 : lseq = NULL;
6200 : 50 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1360;
6201 : 50 : {
6202 : 50 : res_op->set_op (BIT_AND_EXPR, type, 2);
6203 : 50 : res_op->ops[0] = captures[1];
6204 : 50 : {
6205 : 50 : tree _o1[1], _r1;
6206 : 50 : _o1[0] = captures[2];
6207 : 50 : gimple_match_op tem_op (res_op->cond.any_else (), BIT_NOT_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
6208 : 50 : tem_op.resimplify (lseq, valueize);
6209 : 50 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
6210 : 50 : if (!_r1) goto next_after_fail1360;
6211 : 18 : res_op->ops[1] = _r1;
6212 : : }
6213 : 18 : res_op->resimplify (lseq, valueize);
6214 : 18 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 749, __FILE__, __LINE__, true);
6215 : : return true;
6216 : : }
6217 : : next_after_fail1360:;
6218 : : return false;
6219 : : }
6220 : :
6221 : : bool
6222 : 143 : gimple_simplify_499 (gimple_match_op *res_op, gimple_seq *seq,
6223 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
6224 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures))
6225 : : {
6226 : 143 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
6227 : 143 : gimple_seq *lseq = seq;
6228 : 143 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1362;
6229 : 143 : {
6230 : 143 : res_op->set_op (MINUS_EXPR, type, 2);
6231 : 143 : res_op->ops[0] = captures[0];
6232 : 143 : res_op->ops[1] = captures[1];
6233 : 143 : res_op->resimplify (lseq, valueize);
6234 : 143 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 751, __FILE__, __LINE__, true);
6235 : : return true;
6236 : : }
6237 : 0 : next_after_fail1362:;
6238 : 0 : return false;
6239 : : }
6240 : :
6241 : : bool
6242 : 1076 : gimple_simplify_503 (gimple_match_op *res_op, gimple_seq *seq,
6243 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
6244 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures))
6245 : : {
6246 : 1076 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
6247 : 1076 : if (tree_nop_conversion_p (type, TREE_TYPE (captures[0]))
6248 : : )
6249 : : {
6250 : 451 : gimple_seq *lseq = seq;
6251 : 451 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1366;
6252 : 451 : {
6253 : 451 : res_op->set_op (NOP_EXPR, type, 1);
6254 : 451 : {
6255 : 451 : tree _o1[2], _r1;
6256 : 451 : _o1[0] = captures[0];
6257 : 451 : {
6258 : 451 : tree _o2[1], _r2;
6259 : 451 : _o2[0] = captures[1];
6260 : 451 : gimple_match_op tem_op (res_op->cond.any_else (), BIT_NOT_EXPR, TREE_TYPE (_o2[0]), _o2[0]);
6261 : 451 : tem_op.resimplify (lseq, valueize);
6262 : 451 : _r2 = maybe_push_res_to_seq (&tem_op, lseq);
6263 : 451 : if (!_r2) goto next_after_fail1366;
6264 : 451 : _o1[1] = _r2;
6265 : : }
6266 : 451 : (*res_op).set_op (BIT_XOR_EXPR, TREE_TYPE (_o1[0]), 2);
6267 : 451 : (*res_op).ops[0] = _o1[0];
6268 : 451 : (*res_op).ops[1] = _o1[1];
6269 : 451 : (*res_op).resimplify (lseq, valueize);
6270 : : }
6271 : 451 : if (type != res_op->type
6272 : 451 : && !useless_type_conversion_p (type, res_op->type))
6273 : : {
6274 : 0 : if (!(res_op->ops[0] = maybe_push_res_to_seq (res_op, lseq))) goto next_after_fail1366;
6275 : 0 : res_op->set_op (NOP_EXPR, type, 1);
6276 : 0 : res_op->resimplify (lseq, valueize);
6277 : : }
6278 : 451 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 755, __FILE__, __LINE__, true);
6279 : 451 : return true;
6280 : : }
6281 : : next_after_fail1366:;
6282 : : }
6283 : : return false;
6284 : : }
6285 : :
6286 : : bool
6287 : 271244 : gimple_simplify_509 (gimple_match_op *res_op, gimple_seq *seq,
6288 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
6289 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
6290 : : const enum tree_code ARG_UNUSED (cmp),
6291 : : const enum tree_code ARG_UNUSED (icmp),
6292 : : const enum tree_code ARG_UNUSED (ncmp))
6293 : : {
6294 : 271244 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
6295 : 271244 : if (VECTOR_TYPE_P (type)
6296 : 271244 : || (INTEGRAL_TYPE_P (type) && TYPE_PRECISION (type) == 1)
6297 : : )
6298 : : {
6299 : 271244 : {
6300 : 271244 : enum tree_code ic = invert_tree_comparison
6301 : 271244 : (cmp, HONOR_NANS (captures[0]));
6302 : 271244 : if (ic == icmp
6303 : : )
6304 : : {
6305 : 238327 : gimple_seq *lseq = seq;
6306 : 238327 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1372;
6307 : 238327 : {
6308 : 238327 : res_op->set_op (icmp, type, 2);
6309 : 238327 : res_op->ops[0] = captures[0];
6310 : 238327 : res_op->ops[1] = captures[1];
6311 : 238327 : res_op->resimplify (lseq, valueize);
6312 : 238327 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 759, __FILE__, __LINE__, true);
6313 : 238327 : return true;
6314 : : }
6315 : 0 : next_after_fail1372:;
6316 : : }
6317 : : else
6318 : : {
6319 : 32917 : if (ic == ncmp
6320 : : )
6321 : : {
6322 : 94 : gimple_seq *lseq = seq;
6323 : 94 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1373;
6324 : 94 : {
6325 : 94 : res_op->set_op (ncmp, type, 2);
6326 : 94 : res_op->ops[0] = captures[0];
6327 : 94 : res_op->ops[1] = captures[1];
6328 : 94 : res_op->resimplify (lseq, valueize);
6329 : 94 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 760, __FILE__, __LINE__, true);
6330 : 94 : return true;
6331 : : }
6332 : 0 : next_after_fail1373:;
6333 : : }
6334 : : }
6335 : : }
6336 : : }
6337 : : return false;
6338 : : }
6339 : :
6340 : : bool
6341 : 5236 : gimple_simplify_514 (gimple_match_op *res_op, gimple_seq *seq,
6342 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
6343 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
6344 : : const enum tree_code ARG_UNUSED (op))
6345 : : {
6346 : 5236 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
6347 : 5236 : if (bitwise_equal_p (captures[0], captures[3])
6348 : 5236 : && expr_no_side_effects_p (captures[2])
6349 : : )
6350 : : {
6351 : 25 : gimple_seq *lseq = seq;
6352 : 25 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1378;
6353 : 25 : {
6354 : 25 : tree tem;
6355 : 25 : tem = captures[1];
6356 : 25 : res_op->set_value (tem);
6357 : 25 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 764, __FILE__, __LINE__, true);
6358 : 25 : return true;
6359 : : }
6360 : 0 : next_after_fail1378:;
6361 : : }
6362 : : return false;
6363 : : }
6364 : :
6365 : : bool
6366 : 20 : gimple_simplify_518 (gimple_match_op *res_op, gimple_seq *seq,
6367 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
6368 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures))
6369 : : {
6370 : 20 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
6371 : 20 : gimple_seq *lseq = seq;
6372 : 20 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1382;
6373 : 20 : {
6374 : 20 : tree tem;
6375 : 20 : tem = captures[2];
6376 : 20 : res_op->set_value (tem);
6377 : 20 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 768, __FILE__, __LINE__, true);
6378 : : return true;
6379 : : }
6380 : 0 : next_after_fail1382:;
6381 : 0 : return false;
6382 : : }
6383 : :
6384 : : bool
6385 : 1019 : gimple_simplify_524 (gimple_match_op *res_op, gimple_seq *seq,
6386 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
6387 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
6388 : : const enum tree_code ARG_UNUSED (cmp),
6389 : : const enum tree_code ARG_UNUSED (op))
6390 : : {
6391 : 1019 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
6392 : 1019 : {
6393 : 1019 : tree from_type = TREE_TYPE (captures[0]), to_type = TREE_TYPE (captures[1]);
6394 : 1019 : if (types_match (from_type, to_type)
6395 : 1019 : || (TYPE_UNSIGNED (from_type)
6396 : 69 : && !TYPE_UNSIGNED (to_type)
6397 : 18 : && TYPE_PRECISION (from_type) == TYPE_PRECISION (to_type)
6398 : 18 : && integer_zerop (captures[1])
6399 : 10 : && (cmp == LT_EXPR || cmp == GE_EXPR))
6400 : : )
6401 : : {
6402 : 948 : {
6403 : 948 : wi::overflow_type overflow = wi::OVF_NONE;
6404 : 948 : enum tree_code code, cmp_code = cmp;
6405 : 948 : wide_int real_c1;
6406 : 948 : wide_int c1 = wi::to_wide (captures[1]);
6407 : 948 : wide_int c2 = wi::to_wide (captures[2]);
6408 : 948 : wide_int c3 = wi::to_wide (captures[3]);
6409 : 948 : signop sgn = TYPE_SIGN (from_type);
6410 : 948 : if (!types_match (from_type, to_type))
6411 : : {
6412 : 10 : if (cmp_code == LT_EXPR)
6413 : : cmp_code = GT_EXPR;
6414 : 6 : if (cmp_code == GE_EXPR)
6415 : 6 : cmp_code = LE_EXPR;
6416 : 10 : c1 = wi::max_value (to_type);
6417 : : }
6418 : 948 : if (op == PLUS_EXPR)
6419 : 948 : real_c1 = wi::sub (c3, c2, sgn, &overflow);
6420 : : else
6421 : 0 : real_c1 = wi::add (c3, c2, sgn, &overflow);
6422 : 948 : code = cmp_code;
6423 : 948 : if (!overflow || !TYPE_OVERFLOW_UNDEFINED (from_type))
6424 : : {
6425 : 1896 : if (!wi::cmp (wi::sub (real_c1, 1, sgn, &overflow), c1, sgn)
6426 : 948 : && !overflow)
6427 : : {
6428 : 111 : if (cmp_code == LE_EXPR)
6429 : : code = LT_EXPR;
6430 : 67 : if (cmp_code == GT_EXPR)
6431 : 948 : code = GE_EXPR;
6432 : : }
6433 : 1896 : if (!wi::cmp (wi::add (real_c1, 1, sgn, &overflow), c1, sgn)
6434 : 948 : && !overflow)
6435 : : {
6436 : 350 : if (cmp_code == LT_EXPR)
6437 : : code = LE_EXPR;
6438 : 350 : if (cmp_code == GE_EXPR)
6439 : : code = GT_EXPR;
6440 : : }
6441 : 640 : if (code != cmp_code || !wi::cmp (real_c1, c1, sgn))
6442 : : {
6443 : 539 : if (cmp_code == LT_EXPR || cmp_code == LE_EXPR)
6444 : : code = MIN_EXPR;
6445 : 427 : if (cmp_code == GT_EXPR || cmp_code == GE_EXPR)
6446 : : code = MAX_EXPR;
6447 : : }
6448 : : }
6449 : 521 : if (code == MAX_EXPR
6450 : : )
6451 : : {
6452 : 427 : gimple_seq *lseq = seq;
6453 : 427 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1390;
6454 : 427 : {
6455 : 427 : res_op->set_op (op, type, 2);
6456 : 427 : {
6457 : 427 : tree _o1[2], _r1;
6458 : 427 : _o1[0] = captures[0];
6459 : 427 : _o1[1] = wide_int_to_tree (from_type, real_c1);
6460 : 427 : gimple_match_op tem_op (res_op->cond.any_else (), MAX_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
6461 : 427 : tem_op.resimplify (lseq, valueize);
6462 : 427 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
6463 : 427 : if (!_r1) goto next_after_fail1390;
6464 : 393 : res_op->ops[0] = _r1;
6465 : : }
6466 : 393 : res_op->ops[1] = wide_int_to_tree (from_type, c2);
6467 : 393 : res_op->resimplify (lseq, valueize);
6468 : 393 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 776, __FILE__, __LINE__, true);
6469 : 393 : return true;
6470 : : }
6471 : 455 : next_after_fail1390:;
6472 : : }
6473 : : else
6474 : : {
6475 : 521 : if (code == MIN_EXPR
6476 : : )
6477 : : {
6478 : 112 : gimple_seq *lseq = seq;
6479 : 112 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1391;
6480 : 112 : {
6481 : 112 : res_op->set_op (op, type, 2);
6482 : 112 : {
6483 : 112 : tree _o1[2], _r1;
6484 : 112 : _o1[0] = captures[0];
6485 : 112 : _o1[1] = wide_int_to_tree (from_type, real_c1);
6486 : 112 : gimple_match_op tem_op (res_op->cond.any_else (), MIN_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
6487 : 112 : tem_op.resimplify (lseq, valueize);
6488 : 112 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
6489 : 112 : if (!_r1) goto next_after_fail1391;
6490 : 100 : res_op->ops[0] = _r1;
6491 : : }
6492 : 100 : res_op->ops[1] = wide_int_to_tree (from_type, c2);
6493 : 100 : res_op->resimplify (lseq, valueize);
6494 : 100 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 777, __FILE__, __LINE__, true);
6495 : 100 : return true;
6496 : : }
6497 : 455 : next_after_fail1391:;
6498 : : }
6499 : : }
6500 : 948 : }
6501 : : }
6502 : : }
6503 : : return false;
6504 : : }
6505 : :
6506 : : bool
6507 : 1 : gimple_simplify_533 (gimple_match_op *res_op, gimple_seq *seq,
6508 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
6509 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures))
6510 : : {
6511 : 1 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
6512 : 1 : gimple_seq *lseq = seq;
6513 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1447;
6514 : 1 : {
6515 : 1 : tree tem;
6516 : 1 : tem = captures[2];
6517 : 1 : res_op->set_value (tem);
6518 : 1 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 797, __FILE__, __LINE__, true);
6519 : : return true;
6520 : : }
6521 : 0 : next_after_fail1447:;
6522 : 0 : return false;
6523 : : }
6524 : :
6525 : : bool
6526 : 1 : gimple_simplify_535 (gimple_match_op *res_op, gimple_seq *seq,
6527 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
6528 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
6529 : : const enum tree_code ARG_UNUSED (op))
6530 : : {
6531 : 1 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
6532 : 1 : if (ANY_INTEGRAL_TYPE_P (type)
6533 : : )
6534 : : {
6535 : 1 : gimple_seq *lseq = seq;
6536 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1449;
6537 : 1 : {
6538 : 1 : tree tem;
6539 : 1 : tem = captures[2];
6540 : 1 : res_op->set_value (tem);
6541 : 1 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 799, __FILE__, __LINE__, true);
6542 : 1 : return true;
6543 : : }
6544 : 0 : next_after_fail1449:;
6545 : : }
6546 : : return false;
6547 : : }
6548 : :
6549 : : bool
6550 : 0 : gimple_simplify_537 (gimple_match_op *res_op, gimple_seq *seq,
6551 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
6552 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
6553 : : const enum tree_code ARG_UNUSED (op))
6554 : : {
6555 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
6556 : 0 : if (ANY_INTEGRAL_TYPE_P (type)
6557 : : )
6558 : : {
6559 : 0 : gimple_seq *lseq = seq;
6560 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1451;
6561 : 0 : {
6562 : 0 : tree tem;
6563 : 0 : tem = captures[2];
6564 : 0 : res_op->set_value (tem);
6565 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 799, __FILE__, __LINE__, true);
6566 : 0 : return true;
6567 : : }
6568 : 0 : next_after_fail1451:;
6569 : : }
6570 : : return false;
6571 : : }
6572 : :
6573 : : bool
6574 : 1 : gimple_simplify_539 (gimple_match_op *res_op, gimple_seq *seq,
6575 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
6576 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures))
6577 : : {
6578 : 1 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
6579 : 1 : if (wi::to_wide (uniform_integer_cst_p (captures[3])) == 2
6580 : : )
6581 : : {
6582 : 1 : gimple_seq *lseq = seq;
6583 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1453;
6584 : 1 : {
6585 : 1 : tree tem;
6586 : 1 : tem = captures[2];
6587 : 1 : res_op->set_value (tem);
6588 : 1 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 800, __FILE__, __LINE__, true);
6589 : 1 : return true;
6590 : : }
6591 : 0 : next_after_fail1453:;
6592 : : }
6593 : : return false;
6594 : : }
6595 : :
6596 : : bool
6597 : 0 : gimple_simplify_541 (gimple_match_op *res_op, gimple_seq *seq,
6598 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
6599 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures))
6600 : : {
6601 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
6602 : 0 : if (wi::to_wide (uniform_integer_cst_p (captures[3])) == 2
6603 : : )
6604 : : {
6605 : 0 : gimple_seq *lseq = seq;
6606 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1455;
6607 : 0 : {
6608 : 0 : tree tem;
6609 : 0 : tem = captures[2];
6610 : 0 : res_op->set_value (tem);
6611 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 800, __FILE__, __LINE__, true);
6612 : 0 : return true;
6613 : : }
6614 : 0 : next_after_fail1455:;
6615 : : }
6616 : : return false;
6617 : : }
6618 : :
6619 : : bool
6620 : 0 : gimple_simplify_544 (gimple_match_op *res_op, gimple_seq *seq,
6621 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
6622 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures))
6623 : : {
6624 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
6625 : 0 : if (wi::eq_p (wi::bit_not (wi::to_wide (captures[1])), wi::to_wide (captures[3]))
6626 : : )
6627 : : {
6628 : 0 : gimple_seq *lseq = seq;
6629 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1458;
6630 : 0 : {
6631 : 0 : tree tem;
6632 : 0 : tem = captures[2];
6633 : 0 : res_op->set_value (tem);
6634 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 802, __FILE__, __LINE__, true);
6635 : 0 : return true;
6636 : : }
6637 : 0 : next_after_fail1458:;
6638 : : }
6639 : : return false;
6640 : : }
6641 : :
6642 : : bool
6643 : 3 : gimple_simplify_547 (gimple_match_op *res_op, gimple_seq *seq,
6644 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
6645 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
6646 : : const enum tree_code ARG_UNUSED (cmp))
6647 : : {
6648 : 3 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
6649 : 3 : if (INTEGRAL_TYPE_P (type)
6650 : : )
6651 : : {
6652 : 3 : gimple_seq *lseq = seq;
6653 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1463;
6654 : 3 : {
6655 : 3 : tree tem;
6656 : 3 : tem = captures[2];
6657 : 3 : res_op->set_value (tem);
6658 : 3 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 805, __FILE__, __LINE__, true);
6659 : 3 : return true;
6660 : : }
6661 : 0 : next_after_fail1463:;
6662 : : }
6663 : : return false;
6664 : : }
6665 : :
6666 : : bool
6667 : 2548 : gimple_simplify_550 (gimple_match_op *res_op, gimple_seq *seq,
6668 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
6669 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
6670 : : const enum tree_code ARG_UNUSED (cmp))
6671 : : {
6672 : 2548 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
6673 : 2548 : if (!HONOR_SIGNED_ZEROS (type)
6674 : 2548 : && bitwise_equal_p (captures[0], captures[1])
6675 : : )
6676 : : {
6677 : 1 : gimple_seq *lseq = seq;
6678 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1466;
6679 : 1 : {
6680 : 1 : tree tem;
6681 : 1 : tem = captures[2];
6682 : 1 : res_op->set_value (tem);
6683 : 1 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 808, __FILE__, __LINE__, true);
6684 : 1 : return true;
6685 : : }
6686 : 0 : next_after_fail1466:;
6687 : : }
6688 : : return false;
6689 : : }
6690 : :
6691 : : bool
6692 : 0 : gimple_simplify_556 (gimple_match_op *res_op, gimple_seq *seq,
6693 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
6694 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
6695 : : const enum tree_code ARG_UNUSED (cmp))
6696 : : {
6697 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
6698 : 0 : if (!HONOR_SIGNED_ZEROS (type)
6699 : : )
6700 : : {
6701 : 0 : gimple_seq *lseq = seq;
6702 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1472;
6703 : 0 : {
6704 : 0 : tree tem;
6705 : 0 : tem = captures[3];
6706 : 0 : res_op->set_value (tem);
6707 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 810, __FILE__, __LINE__, true);
6708 : 0 : return true;
6709 : : }
6710 : 0 : next_after_fail1472:;
6711 : : }
6712 : : return false;
6713 : : }
6714 : :
6715 : : bool
6716 : 174 : gimple_simplify_565 (gimple_match_op *res_op, gimple_seq *seq,
6717 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
6718 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
6719 : : const enum tree_code ARG_UNUSED (cmp))
6720 : : {
6721 : 174 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
6722 : 174 : if (!HONOR_SIGNED_ZEROS (TREE_TYPE (captures[1]))
6723 : 174 : && !TYPE_UNSIGNED (TREE_TYPE (captures[1]))
6724 : 2 : && element_precision (captures[1])
6725 : 1 : <= element_precision (captures[0])
6726 : 175 : && bitwise_equal_p (captures[1], captures[2])
6727 : : )
6728 : : {
6729 : 1 : if (TYPE_UNSIGNED (TREE_TYPE (captures[2]))
6730 : : )
6731 : : {
6732 : 0 : {
6733 : 0 : tree stype = signed_type_for (TREE_TYPE (captures[2]));
6734 : 0 : if (types_match (captures[0], stype)
6735 : : )
6736 : : {
6737 : 0 : gimple_seq *lseq = seq;
6738 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1482;
6739 : 0 : {
6740 : 0 : res_op->set_op (ABSU_EXPR, type, 1);
6741 : 0 : res_op->ops[0] = captures[0];
6742 : 0 : res_op->resimplify (lseq, valueize);
6743 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 818, __FILE__, __LINE__, true);
6744 : 0 : return true;
6745 : : }
6746 : 0 : next_after_fail1482:;
6747 : : }
6748 : : else
6749 : : {
6750 : 0 : gimple_seq *lseq = seq;
6751 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1483;
6752 : 0 : {
6753 : 0 : res_op->set_op (ABSU_EXPR, type, 1);
6754 : 0 : {
6755 : 0 : tree _o1[1], _r1;
6756 : 0 : _o1[0] = captures[2];
6757 : 0 : if (stype != TREE_TYPE (_o1[0]) /* XXX */
6758 : 0 : && !useless_type_conversion_p (stype, TREE_TYPE (_o1[0])))
6759 : : {
6760 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), NOP_EXPR, stype, _o1[0]);
6761 : 0 : tem_op.resimplify (lseq, valueize);
6762 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
6763 : 0 : if (!_r1) goto next_after_fail1483;
6764 : : }
6765 : : else
6766 : : _r1 = _o1[0];
6767 : 0 : res_op->ops[0] = _r1;
6768 : : }
6769 : 0 : res_op->resimplify (lseq, valueize);
6770 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 819, __FILE__, __LINE__, true);
6771 : 0 : return true;
6772 : : }
6773 : : next_after_fail1483:;
6774 : : }
6775 : : }
6776 : : }
6777 : : else
6778 : : {
6779 : 1 : gimple_seq *lseq = seq;
6780 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1484;
6781 : 1 : {
6782 : 1 : res_op->set_op (ABS_EXPR, type, 1);
6783 : 1 : res_op->ops[0] = captures[2];
6784 : 1 : res_op->resimplify (lseq, valueize);
6785 : 1 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 820, __FILE__, __LINE__, true);
6786 : 1 : return true;
6787 : : }
6788 : 0 : next_after_fail1484:;
6789 : : }
6790 : : }
6791 : : return false;
6792 : : }
6793 : :
6794 : : bool
6795 : 0 : gimple_simplify_575 (gimple_match_op *res_op, gimple_seq *seq,
6796 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
6797 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
6798 : : const enum tree_code ARG_UNUSED (cmp))
6799 : : {
6800 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
6801 : 0 : if (!HONOR_SIGNED_ZEROS (type)
6802 : 0 : && !TYPE_UNSIGNED (type)
6803 : : )
6804 : : {
6805 : 0 : if (ANY_INTEGRAL_TYPE_P (type)
6806 : 0 : && !TYPE_OVERFLOW_WRAPS (type)
6807 : : )
6808 : : {
6809 : 0 : {
6810 : 0 : tree utype = unsigned_type_for (type);
6811 : 0 : gimple_seq *lseq = seq;
6812 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1506;
6813 : 0 : {
6814 : 0 : res_op->set_op (NOP_EXPR, type, 1);
6815 : 0 : {
6816 : 0 : tree _o1[1], _r1;
6817 : 0 : {
6818 : 0 : tree _o2[1], _r2;
6819 : 0 : _o2[0] = captures[0];
6820 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), ABSU_EXPR, utype, _o2[0]);
6821 : 0 : tem_op.resimplify (lseq, valueize);
6822 : 0 : _r2 = maybe_push_res_to_seq (&tem_op, lseq);
6823 : 0 : if (!_r2) goto next_after_fail1506;
6824 : 0 : _o1[0] = _r2;
6825 : : }
6826 : 0 : (*res_op).set_op (NEGATE_EXPR, TREE_TYPE (_o1[0]), 1);
6827 : 0 : (*res_op).ops[0] = _o1[0];
6828 : 0 : (*res_op).resimplify (lseq, valueize);
6829 : : }
6830 : 0 : if (type != res_op->type
6831 : 0 : && !useless_type_conversion_p (type, res_op->type))
6832 : : {
6833 : 0 : if (!(res_op->ops[0] = maybe_push_res_to_seq (res_op, lseq))) goto next_after_fail1506;
6834 : 0 : res_op->set_op (NOP_EXPR, type, 1);
6835 : 0 : res_op->resimplify (lseq, valueize);
6836 : : }
6837 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 829, __FILE__, __LINE__, true);
6838 : 0 : return true;
6839 : : }
6840 : : next_after_fail1506:;
6841 : : }
6842 : : }
6843 : : else
6844 : : {
6845 : 0 : gimple_seq *lseq = seq;
6846 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1507;
6847 : 0 : {
6848 : 0 : res_op->set_op (NEGATE_EXPR, type, 1);
6849 : 0 : {
6850 : 0 : tree _o1[1], _r1;
6851 : 0 : _o1[0] = captures[0];
6852 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), ABS_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
6853 : 0 : tem_op.resimplify (lseq, valueize);
6854 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
6855 : 0 : if (!_r1) goto next_after_fail1507;
6856 : 0 : res_op->ops[0] = _r1;
6857 : : }
6858 : 0 : res_op->resimplify (lseq, valueize);
6859 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 830, __FILE__, __LINE__, true);
6860 : 0 : return true;
6861 : : }
6862 : : next_after_fail1507:;
6863 : : }
6864 : : }
6865 : : return false;
6866 : : }
6867 : :
6868 : : bool
6869 : 3 : gimple_simplify_583 (gimple_match_op *res_op, gimple_seq *seq,
6870 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
6871 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
6872 : : const combined_fn ARG_UNUSED (func))
6873 : : {
6874 : 3 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
6875 : 3 : if (wi::to_widest (captures[4]) == TYPE_PRECISION (TREE_TYPE (captures[3])) - 1
6876 : : )
6877 : : {
6878 : 3 : gimple_seq *lseq = seq;
6879 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1522;
6880 : 3 : {
6881 : 3 : tree tem;
6882 : 3 : tem = captures[2];
6883 : 3 : res_op->set_value (tem);
6884 : 3 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 836, __FILE__, __LINE__, true);
6885 : 3 : return true;
6886 : : }
6887 : 0 : next_after_fail1522:;
6888 : : }
6889 : : return false;
6890 : : }
6891 : :
6892 : : bool
6893 : 0 : gimple_simplify_587 (gimple_match_op *res_op, gimple_seq *seq,
6894 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
6895 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures))
6896 : : {
6897 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
6898 : 0 : {
6899 : 0 : int val;
6900 : 0 : internal_fn ifn = IFN_LAST;
6901 : 0 : if (TREE_CODE (TREE_TYPE (captures[2])) == BITINT_TYPE)
6902 : : ifn = IFN_CLZ;
6903 : 0 : else if (direct_internal_fn_supported_p (IFN_CLZ, TREE_TYPE (captures[2]),
6904 : : OPTIMIZE_FOR_BOTH))
6905 : : ifn = IFN_CLZ;
6906 : : if (ifn == IFN_CLZ
6907 : : )
6908 : : {
6909 : 0 : gimple_seq *lseq = seq;
6910 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1526;
6911 : 0 : {
6912 : 0 : res_op->set_op (CFN_CLZ, type, 2);
6913 : 0 : res_op->ops[0] = captures[2];
6914 : 0 : res_op->ops[1] = captures[3];
6915 : 0 : res_op->resimplify (lseq, valueize);
6916 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 838, __FILE__, __LINE__, true);
6917 : 0 : return true;
6918 : : }
6919 : 0 : next_after_fail1526:;
6920 : : }
6921 : : }
6922 : : return false;
6923 : : }
6924 : :
6925 : : bool
6926 : 43 : gimple_simplify_594 (gimple_match_op *res_op, gimple_seq *seq,
6927 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
6928 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
6929 : : const enum tree_code ARG_UNUSED (minmax))
6930 : : {
6931 : 43 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
6932 : 43 : gimple_seq *lseq = seq;
6933 : 43 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1533;
6934 : 43 : {
6935 : 43 : tree tem;
6936 : 43 : tem = captures[0];
6937 : 43 : res_op->set_value (tem);
6938 : 43 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 842, __FILE__, __LINE__, true);
6939 : : return true;
6940 : : }
6941 : 0 : next_after_fail1533:;
6942 : 0 : return false;
6943 : : }
6944 : :
6945 : : bool
6946 : 0 : gimple_simplify_599 (gimple_match_op *res_op, gimple_seq *seq,
6947 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
6948 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
6949 : : const enum tree_code ARG_UNUSED (minmax),
6950 : : const enum tree_code ARG_UNUSED (cmp))
6951 : : {
6952 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
6953 : 0 : {
6954 : 0 : poly_int64 off0, off1;
6955 : 0 : tree base0, base1;
6956 : 0 : int equal = address_compare (cmp, TREE_TYPE (captures[0]), captures[1], captures[3], base0, base1,
6957 : : off0, off1,
6958 : :
6959 : : );
6960 : 0 : if (equal == 1
6961 : : )
6962 : : {
6963 : 0 : if (minmax == MIN_EXPR
6964 : : )
6965 : : {
6966 : 0 : if (known_le (off0, off1)
6967 : : )
6968 : : {
6969 : 0 : gimple_seq *lseq = seq;
6970 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1544;
6971 : 0 : {
6972 : 0 : tree tem;
6973 : 0 : tem = captures[0];
6974 : 0 : res_op->set_value (tem);
6975 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 845, __FILE__, __LINE__, true);
6976 : 0 : return true;
6977 : : }
6978 : 0 : next_after_fail1544:;
6979 : : }
6980 : : else
6981 : : {
6982 : 0 : if (known_gt (off0, off1)
6983 : : )
6984 : : {
6985 : 0 : gimple_seq *lseq = seq;
6986 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1545;
6987 : 0 : {
6988 : 0 : tree tem;
6989 : 0 : tem = captures[2];
6990 : 0 : res_op->set_value (tem);
6991 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 846, __FILE__, __LINE__, true);
6992 : 0 : return true;
6993 : : }
6994 : 0 : next_after_fail1545:;
6995 : : }
6996 : : }
6997 : : }
6998 : : else
6999 : : {
7000 : 0 : if (known_ge (off0, off1)
7001 : : )
7002 : : {
7003 : 0 : gimple_seq *lseq = seq;
7004 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1546;
7005 : 0 : {
7006 : 0 : tree tem;
7007 : 0 : tem = captures[0];
7008 : 0 : res_op->set_value (tem);
7009 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 847, __FILE__, __LINE__, true);
7010 : 0 : return true;
7011 : : }
7012 : 0 : next_after_fail1546:;
7013 : : }
7014 : : else
7015 : : {
7016 : 0 : if (known_lt (off0, off1)
7017 : : )
7018 : : {
7019 : 0 : gimple_seq *lseq = seq;
7020 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1547;
7021 : 0 : {
7022 : 0 : tree tem;
7023 : 0 : tem = captures[2];
7024 : 0 : res_op->set_value (tem);
7025 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 848, __FILE__, __LINE__, true);
7026 : 0 : return true;
7027 : : }
7028 : 0 : next_after_fail1547:;
7029 : : }
7030 : : }
7031 : : }
7032 : : }
7033 : : }
7034 : 0 : return false;
7035 : : }
7036 : :
7037 : : bool
7038 : 9394 : gimple_simplify_617 (gimple_match_op *res_op, gimple_seq *seq,
7039 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
7040 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
7041 : : const enum tree_code ARG_UNUSED (cmp),
7042 : : const enum tree_code ARG_UNUSED (minmax),
7043 : : const enum tree_code ARG_UNUSED (MINMAX))
7044 : : {
7045 : 9394 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
7046 : 9394 : if (VECTOR_INTEGER_TYPE_P (type)
7047 : 9453 : && target_supports_op_p (type, MINMAX, optab_vector)
7048 : : )
7049 : : {
7050 : 59 : gimple_seq *lseq = seq;
7051 : 59 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1571;
7052 : 59 : {
7053 : 59 : res_op->set_op (minmax, type, 2);
7054 : 59 : res_op->ops[0] = captures[0];
7055 : 59 : res_op->ops[1] = captures[1];
7056 : 59 : res_op->resimplify (lseq, valueize);
7057 : 59 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 868, __FILE__, __LINE__, true);
7058 : 59 : return true;
7059 : : }
7060 : 0 : next_after_fail1571:;
7061 : : }
7062 : : return false;
7063 : : }
7064 : :
7065 : : bool
7066 : 0 : gimple_simplify_623 (gimple_match_op *res_op, gimple_seq *seq,
7067 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
7068 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
7069 : : const enum tree_code ARG_UNUSED (cmp))
7070 : : {
7071 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
7072 : 0 : gimple_seq *lseq = seq;
7073 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1577;
7074 : 0 : {
7075 : 0 : tree tem;
7076 : 0 : tem = captures[0];
7077 : 0 : res_op->set_value (tem);
7078 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 815, __FILE__, __LINE__, true);
7079 : : return true;
7080 : : }
7081 : 0 : next_after_fail1577:;
7082 : 0 : return false;
7083 : : }
7084 : :
7085 : : bool
7086 : 0 : gimple_simplify_630 (gimple_match_op *res_op, gimple_seq *seq,
7087 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
7088 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
7089 : : const combined_fn ARG_UNUSED (cond_len_op))
7090 : : {
7091 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
7092 : 0 : {
7093 : 0 : tree op_type = TREE_TYPE (captures[3]);
7094 : 0 : if (element_precision (type) == element_precision (op_type)
7095 : : )
7096 : : {
7097 : 0 : gimple_seq *lseq = seq;
7098 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1584;
7099 : 0 : {
7100 : 0 : res_op->set_op (VIEW_CONVERT_EXPR, type, 1);
7101 : 0 : {
7102 : 0 : tree _o1[6], _r1;
7103 : 0 : _o1[0] = captures[0];
7104 : 0 : _o1[1] = captures[1];
7105 : 0 : _o1[2] = captures[2];
7106 : 0 : {
7107 : 0 : tree _o2[1], _r2;
7108 : 0 : _o2[0] = captures[6];
7109 : 0 : if (op_type != TREE_TYPE (_o2[0]) /* XXX */
7110 : 0 : && !useless_type_conversion_p (op_type, TREE_TYPE (_o2[0])))
7111 : : {
7112 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), VIEW_CONVERT_EXPR, op_type, _o2[0]);
7113 : 0 : tem_op.resimplify (lseq, valueize);
7114 : 0 : _r2 = maybe_push_res_to_seq (&tem_op, lseq);
7115 : 0 : if (!_r2) goto next_after_fail1584;
7116 : : }
7117 : : else
7118 : : _r2 = _o2[0];
7119 : 0 : _o1[3] = _r2;
7120 : : }
7121 : 0 : _o1[4] = captures[4];
7122 : 0 : _o1[5] = captures[5];
7123 : 0 : (*res_op).set_op (cond_len_op, TREE_TYPE (_o1[1]), 6);
7124 : 0 : (*res_op).ops[0] = _o1[0];
7125 : 0 : (*res_op).ops[1] = _o1[1];
7126 : 0 : (*res_op).ops[2] = _o1[2];
7127 : 0 : (*res_op).ops[3] = _o1[3];
7128 : 0 : (*res_op).ops[4] = _o1[4];
7129 : 0 : (*res_op).ops[5] = _o1[5];
7130 : 0 : (*res_op).resimplify (lseq, valueize);
7131 : : }
7132 : 0 : if (type != res_op->type
7133 : 0 : && !useless_type_conversion_p (type, res_op->type))
7134 : : {
7135 : 0 : if (!(res_op->ops[0] = maybe_push_res_to_seq (res_op, lseq))) goto next_after_fail1584;
7136 : 0 : res_op->set_op (VIEW_CONVERT_EXPR, type, 1);
7137 : 0 : res_op->resimplify (lseq, valueize);
7138 : : }
7139 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 876, __FILE__, __LINE__, true);
7140 : 0 : return true;
7141 : : }
7142 : : next_after_fail1584:;
7143 : : }
7144 : : }
7145 : : return false;
7146 : : }
7147 : :
7148 : : bool
7149 : 35 : gimple_simplify_638 (gimple_match_op *res_op, gimple_seq *seq,
7150 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
7151 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
7152 : : const enum tree_code ARG_UNUSED (cmp))
7153 : : {
7154 : 35 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
7155 : 35 : gimple_seq *lseq = seq;
7156 : 35 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1592;
7157 : 35 : {
7158 : 35 : tree tem;
7159 : 35 : tem = constant_boolean_node (true, type);
7160 : 35 : res_op->set_value (tem);
7161 : 35 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 884, __FILE__, __LINE__, true);
7162 : : return true;
7163 : : }
7164 : 0 : next_after_fail1592:;
7165 : 0 : return false;
7166 : : }
7167 : :
7168 : : bool
7169 : 9 : gimple_simplify_641 (gimple_match_op *res_op, gimple_seq *seq,
7170 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
7171 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
7172 : : const combined_fn ARG_UNUSED (logs))
7173 : : {
7174 : 9 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
7175 : 9 : if (flag_unsafe_math_optimizations
7176 : : )
7177 : : {
7178 : 9 : if (! HONOR_SIGN_DEPENDENT_ROUNDING (type)
7179 : 9 : && ! HONOR_NANS (type) && ! HONOR_INFINITIES (type)
7180 : 9 : && ! flag_trapping_math
7181 : 18 : && ! flag_errno_math
7182 : : )
7183 : : {
7184 : 9 : gimple_seq *lseq = seq;
7185 : 9 : if (lseq
7186 : 0 : && (!single_use (captures[0])))
7187 : 9 : lseq = NULL;
7188 : 9 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1595;
7189 : 9 : {
7190 : 9 : res_op->set_op (NEGATE_EXPR, type, 1);
7191 : 9 : {
7192 : 9 : tree _o1[1], _r1;
7193 : 9 : _o1[0] = captures[2];
7194 : 9 : gimple_match_op tem_op (res_op->cond.any_else (), logs, TREE_TYPE (_o1[0]), _o1[0]);
7195 : 9 : tem_op.resimplify (lseq, valueize);
7196 : 9 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
7197 : 9 : if (!_r1) goto next_after_fail1595;
7198 : 0 : res_op->ops[0] = _r1;
7199 : : }
7200 : 0 : res_op->resimplify (lseq, valueize);
7201 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 887, __FILE__, __LINE__, true);
7202 : 0 : return true;
7203 : : }
7204 : : next_after_fail1595:;
7205 : : }
7206 : : }
7207 : : return false;
7208 : : }
7209 : :
7210 : : bool
7211 : 95 : gimple_simplify_651 (gimple_match_op *res_op, gimple_seq *seq,
7212 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
7213 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
7214 : : const combined_fn ARG_UNUSED (floors),
7215 : : const combined_fn ARG_UNUSED (truncs))
7216 : : {
7217 : 95 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
7218 : 95 : if (canonicalize_math_p ()
7219 : : )
7220 : : {
7221 : 95 : gimple_seq *lseq = seq;
7222 : 95 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1605;
7223 : 95 : {
7224 : 95 : res_op->set_op (truncs, type, 1);
7225 : 95 : res_op->ops[0] = captures[0];
7226 : 95 : res_op->resimplify (lseq, valueize);
7227 : 95 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 897, __FILE__, __LINE__, true);
7228 : 95 : return true;
7229 : : }
7230 : 0 : next_after_fail1605:;
7231 : : }
7232 : : return false;
7233 : : }
7234 : :
7235 : : bool
7236 : 490 : gimple_simplify_657 (gimple_match_op *res_op, gimple_seq *seq,
7237 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
7238 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
7239 : : const combined_fn ARG_UNUSED (fns))
7240 : : {
7241 : 490 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
7242 : 490 : if (canonicalize_math_p ()
7243 : : )
7244 : : {
7245 : 490 : gimple_seq *lseq = seq;
7246 : 490 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1611;
7247 : 490 : {
7248 : 490 : res_op->set_op (FIX_TRUNC_EXPR, type, 1);
7249 : 490 : res_op->ops[0] = captures[0];
7250 : 490 : res_op->resimplify (lseq, valueize);
7251 : 490 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 903, __FILE__, __LINE__, true);
7252 : 490 : return true;
7253 : : }
7254 : 0 : next_after_fail1611:;
7255 : : }
7256 : : return false;
7257 : : }
7258 : :
7259 : : bool
7260 : 332 : gimple_simplify_664 (gimple_match_op *res_op, gimple_seq *seq,
7261 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
7262 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
7263 : : const combined_fn ARG_UNUSED (fmas))
7264 : : {
7265 : 332 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
7266 : 332 : if (canonicalize_math_after_vectorization_p ()
7267 : : )
7268 : : {
7269 : 0 : gimple_seq *lseq = seq;
7270 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1618;
7271 : 0 : {
7272 : 0 : res_op->set_op (CFN_FNMS, type, 3);
7273 : 0 : res_op->ops[0] = captures[0];
7274 : 0 : res_op->ops[1] = captures[1];
7275 : 0 : res_op->ops[2] = captures[2];
7276 : 0 : res_op->resimplify (lseq, valueize);
7277 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 910, __FILE__, __LINE__, true);
7278 : 0 : return true;
7279 : : }
7280 : 0 : next_after_fail1618:;
7281 : : }
7282 : : return false;
7283 : : }
7284 : :
7285 : : bool
7286 : 0 : gimple_simplify_671 (gimple_match_op *res_op, gimple_seq *seq,
7287 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
7288 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures))
7289 : : {
7290 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
7291 : 0 : if (canonicalize_math_after_vectorization_p ()
7292 : : )
7293 : : {
7294 : 0 : gimple_seq *lseq = seq;
7295 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1625;
7296 : 0 : {
7297 : 0 : res_op->set_op (CFN_FMA, type, 3);
7298 : 0 : res_op->ops[0] = captures[0];
7299 : 0 : res_op->ops[1] = captures[1];
7300 : 0 : res_op->ops[2] = captures[2];
7301 : 0 : res_op->resimplify (lseq, valueize);
7302 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 917, __FILE__, __LINE__, true);
7303 : 0 : return true;
7304 : : }
7305 : 0 : next_after_fail1625:;
7306 : : }
7307 : : return false;
7308 : : }
7309 : :
7310 : : bool
7311 : 8 : gimple_simplify_680 (gimple_match_op *res_op, gimple_seq *seq,
7312 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
7313 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
7314 : : const combined_fn ARG_UNUSED (bswap),
7315 : : const combined_fn ARG_UNUSED (popcount))
7316 : : {
7317 : 8 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
7318 : 16 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
7319 : 16 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
7320 : : )
7321 : : {
7322 : 8 : {
7323 : 8 : tree type0 = TREE_TYPE (captures[0]);
7324 : 8 : tree type1 = TREE_TYPE (captures[1]);
7325 : 8 : unsigned int prec0 = TYPE_PRECISION (type0);
7326 : 8 : unsigned int prec1 = TYPE_PRECISION (type1);
7327 : 8 : if (prec0 == prec1 || (prec0 > prec1 && TYPE_UNSIGNED (type1))
7328 : : )
7329 : : {
7330 : 8 : gimple_seq *lseq = seq;
7331 : 8 : if (lseq
7332 : 4 : && (!single_use (captures[0])
7333 : 4 : || !single_use (captures[1])))
7334 : 4 : lseq = NULL;
7335 : 8 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1638;
7336 : 8 : {
7337 : 8 : res_op->set_op (popcount, type, 1);
7338 : 8 : {
7339 : 8 : tree _r1;
7340 : 8 : gimple_match_op tem_op (res_op->cond.any_else (), ERROR_MARK, error_mark_node, 1);
7341 : 8 : {
7342 : 8 : tree _o2[1], _r2;
7343 : 8 : _o2[0] = captures[2];
7344 : 8 : tem_op.set_op (NOP_EXPR, type1, 1);
7345 : 8 : tem_op.ops[0] = _o2[0];
7346 : 8 : tem_op.resimplify (lseq, valueize);
7347 : : }
7348 : 8 : if (type0 != tem_op.type
7349 : 8 : && !useless_type_conversion_p (type0, tem_op.type))
7350 : : {
7351 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
7352 : 0 : if (!_r1) goto next_after_fail1638;
7353 : 0 : tem_op.set_op (NOP_EXPR, type0, 1);
7354 : 0 : tem_op.ops[0] = _r1;
7355 : 0 : tem_op.resimplify (lseq, valueize);
7356 : : }
7357 : 8 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
7358 : 8 : if (!_r1) goto next_after_fail1638;
7359 : 8 : res_op->ops[0] = _r1;
7360 : : }
7361 : 8 : res_op->resimplify (lseq, valueize);
7362 : 8 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 922, __FILE__, __LINE__, true);
7363 : 8 : return true;
7364 : : }
7365 : : next_after_fail1638:;
7366 : : }
7367 : : }
7368 : : }
7369 : : return false;
7370 : : }
7371 : :
7372 : : bool
7373 : 6 : gimple_simplify_688 (gimple_match_op *res_op, gimple_seq *seq,
7374 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
7375 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
7376 : : const enum tree_code ARG_UNUSED (rot),
7377 : : const combined_fn ARG_UNUSED (parity))
7378 : : {
7379 : 6 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
7380 : 12 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
7381 : 6 : && INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
7382 : : && (
7383 : : 1
7384 : : || !TREE_SIDE_EFFECTS (captures[3]))
7385 : 12 : && TYPE_PRECISION (TREE_TYPE (captures[0]))
7386 : 6 : >= TYPE_PRECISION (TREE_TYPE (captures[1]))
7387 : : )
7388 : : {
7389 : 6 : {
7390 : 6 : tree type0 = TREE_TYPE (captures[0]);
7391 : 6 : gimple_seq *lseq = seq;
7392 : 6 : if (lseq
7393 : 3 : && (!single_use (captures[0])
7394 : 3 : || !single_use (captures[1])))
7395 : 3 : lseq = NULL;
7396 : 6 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1649;
7397 : 6 : {
7398 : 6 : res_op->set_op (parity, type, 1);
7399 : 6 : {
7400 : 6 : tree _o1[1], _r1;
7401 : 6 : _o1[0] = captures[2];
7402 : 6 : if (type0 != TREE_TYPE (_o1[0]) /* XXX */
7403 : 6 : && !useless_type_conversion_p (type0, TREE_TYPE (_o1[0])))
7404 : : {
7405 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), NOP_EXPR, type0, _o1[0]);
7406 : 0 : tem_op.resimplify (lseq, valueize);
7407 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
7408 : 0 : if (!_r1) goto next_after_fail1649;
7409 : : }
7410 : : else
7411 : : _r1 = _o1[0];
7412 : 6 : res_op->ops[0] = _r1;
7413 : : }
7414 : 6 : res_op->resimplify (lseq, valueize);
7415 : 6 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 931, __FILE__, __LINE__, true);
7416 : 6 : return true;
7417 : : }
7418 : : next_after_fail1649:;
7419 : : }
7420 : : }
7421 : : return false;
7422 : : }
7423 : :
7424 : : bool
7425 : 44 : gimple_simplify_694 (gimple_match_op *res_op, gimple_seq *seq,
7426 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
7427 : : const tree ARG_UNUSED (type), tree *ARG_UNUSED (captures),
7428 : : const combined_fn ARG_UNUSED (reduc))
7429 : : {
7430 : 44 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
7431 : 44 : {
7432 : 44 : tree ctor = (TREE_CODE (captures[0]) == SSA_NAME
7433 : 44 : ? gimple_assign_rhs1 (SSA_NAME_DEF_STMT (captures[0])) : captures[0]);
7434 : 44 : tree elt = ctor_single_nonzero_element (ctor);
7435 : 44 : if (elt
7436 : 3 : && !HONOR_SNANS (type)
7437 : 47 : && !HONOR_SIGNED_ZEROS (type)
7438 : : )
7439 : : {
7440 : 3 : gimple_seq *lseq = seq;
7441 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1657;
7442 : 3 : {
7443 : 3 : tree tem;
7444 : 3 : tem = elt;
7445 : 3 : res_op->set_value (tem);
7446 : 3 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 942, __FILE__, __LINE__, true);
7447 : 3 : return true;
7448 : : }
7449 : 0 : next_after_fail1657:;
7450 : : }
7451 : : }
7452 : : return false;
7453 : : }
7454 : :
7455 : : bool
7456 : 3170 : gimple_simplify_CFN_BUILT_IN_COSF (gimple_match_op *res_op, gimple_seq *seq,
7457 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
7458 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
7459 : : {
7460 : 3170 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
7461 : 3170 : switch (TREE_CODE (_p0))
7462 : : {
7463 : 3043 : case SSA_NAME:
7464 : 3043 : if (gimple *_d1 = get_def (valueize, _p0))
7465 : : {
7466 : 1675 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
7467 : 1587 : switch (gimple_assign_rhs_code (_a1))
7468 : : {
7469 : 26 : case NEGATE_EXPR:
7470 : 26 : {
7471 : 26 : tree _q20 = gimple_assign_rhs1 (_a1);
7472 : 26 : _q20 = do_valueize (valueize, _q20);
7473 : 26 : {
7474 : 26 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
7475 : 26 : const combined_fn coss = CFN_BUILT_IN_COSF;
7476 : 26 : gimple_seq *lseq = seq;
7477 : 26 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1688;
7478 : 26 : {
7479 : 26 : res_op->set_op (coss, type, 1);
7480 : 26 : res_op->ops[0] = captures[0];
7481 : 26 : res_op->resimplify (lseq, valueize);
7482 : 26 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 966, __FILE__, __LINE__, true);
7483 : 26 : return true;
7484 : : }
7485 : 0 : next_after_fail1688:;
7486 : : }
7487 : 0 : break;
7488 : : }
7489 : 6 : case ABS_EXPR:
7490 : 6 : {
7491 : 6 : tree _q20 = gimple_assign_rhs1 (_a1);
7492 : 6 : _q20 = do_valueize (valueize, _q20);
7493 : 6 : {
7494 : 6 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
7495 : 6 : const combined_fn coss = CFN_BUILT_IN_COSF;
7496 : 6 : gimple_seq *lseq = seq;
7497 : 6 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1689;
7498 : 6 : {
7499 : 6 : res_op->set_op (coss, type, 1);
7500 : 6 : res_op->ops[0] = captures[0];
7501 : 6 : res_op->resimplify (lseq, valueize);
7502 : 6 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 966, __FILE__, __LINE__, true);
7503 : 6 : return true;
7504 : : }
7505 : 0 : next_after_fail1689:;
7506 : : }
7507 : 0 : break;
7508 : : }
7509 : : default:;
7510 : : }
7511 : 548 : else if (gcall *_c1 = dyn_cast <gcall *> (_d1))
7512 : 177 : switch (gimple_call_combined_fn (_c1))
7513 : : {
7514 : 0 : case CFN_BUILT_IN_COPYSIGN:
7515 : 0 : if (gimple_call_num_args (_c1) == 2)
7516 : : {
7517 : 0 : tree _q20 = gimple_call_arg (_c1, 0);
7518 : 0 : _q20 = do_valueize (valueize, _q20);
7519 : 0 : tree _q21 = gimple_call_arg (_c1, 1);
7520 : 0 : _q21 = do_valueize (valueize, _q21);
7521 : 0 : {
7522 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7523 : 0 : if (gimple_simplify_426 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_COPYSIGN, CFN_BUILT_IN_COSF))
7524 : 0 : return true;
7525 : : }
7526 : : }
7527 : : break;
7528 : 4 : case CFN_BUILT_IN_COPYSIGNF:
7529 : 4 : if (gimple_call_num_args (_c1) == 2)
7530 : : {
7531 : 4 : tree _q20 = gimple_call_arg (_c1, 0);
7532 : 4 : _q20 = do_valueize (valueize, _q20);
7533 : 4 : tree _q21 = gimple_call_arg (_c1, 1);
7534 : 4 : _q21 = do_valueize (valueize, _q21);
7535 : 4 : {
7536 : 4 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7537 : 4 : if (gimple_simplify_426 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_COPYSIGNF, CFN_BUILT_IN_COSF))
7538 : 4 : return true;
7539 : : }
7540 : : }
7541 : : break;
7542 : 0 : case CFN_BUILT_IN_COPYSIGNL:
7543 : 0 : if (gimple_call_num_args (_c1) == 2)
7544 : : {
7545 : 0 : tree _q20 = gimple_call_arg (_c1, 0);
7546 : 0 : _q20 = do_valueize (valueize, _q20);
7547 : 0 : tree _q21 = gimple_call_arg (_c1, 1);
7548 : 0 : _q21 = do_valueize (valueize, _q21);
7549 : 0 : {
7550 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7551 : 0 : if (gimple_simplify_426 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_COPYSIGNL, CFN_BUILT_IN_COSF))
7552 : 0 : return true;
7553 : : }
7554 : : }
7555 : : break;
7556 : 12 : case CFN_BUILT_IN_ATANF:
7557 : 12 : if (gimple_call_num_args (_c1) == 1)
7558 : : {
7559 : 12 : tree _q20 = gimple_call_arg (_c1, 0);
7560 : 12 : _q20 = do_valueize (valueize, _q20);
7561 : 12 : {
7562 : 12 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
7563 : 12 : if (gimple_simplify_427 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_COSF, CFN_BUILT_IN_ATANF, CFN_BUILT_IN_SQRTF, CFN_BUILT_IN_COPYSIGNF))
7564 : 2 : return true;
7565 : : }
7566 : : }
7567 : : break;
7568 : 4 : case CFN_COPYSIGN:
7569 : 4 : if (gimple_call_num_args (_c1) == 2)
7570 : : {
7571 : 4 : tree _q20 = gimple_call_arg (_c1, 0);
7572 : 4 : _q20 = do_valueize (valueize, _q20);
7573 : 4 : tree _q21 = gimple_call_arg (_c1, 1);
7574 : 4 : _q21 = do_valueize (valueize, _q21);
7575 : 4 : {
7576 : 4 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7577 : 4 : if (gimple_simplify_426 (res_op, seq, valueize, type, captures, CFN_COPYSIGN, CFN_BUILT_IN_COSF))
7578 : 4 : return true;
7579 : : }
7580 : : }
7581 : : break;
7582 : : default:;
7583 : : }
7584 : : }
7585 : : break;
7586 : : default:;
7587 : : }
7588 : : return false;
7589 : : }
7590 : :
7591 : : bool
7592 : 1450 : gimple_simplify_CFN_BUILT_IN_COSHL (gimple_match_op *res_op, gimple_seq *seq,
7593 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
7594 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
7595 : : {
7596 : 1450 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
7597 : 1450 : switch (TREE_CODE (_p0))
7598 : : {
7599 : 1382 : case SSA_NAME:
7600 : 1382 : if (gimple *_d1 = get_def (valueize, _p0))
7601 : : {
7602 : 645 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
7603 : 312 : switch (gimple_assign_rhs_code (_a1))
7604 : : {
7605 : 14 : case NEGATE_EXPR:
7606 : 14 : {
7607 : 14 : tree _q20 = gimple_assign_rhs1 (_a1);
7608 : 14 : _q20 = do_valueize (valueize, _q20);
7609 : 14 : {
7610 : 14 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
7611 : 14 : const combined_fn coss = CFN_BUILT_IN_COSHL;
7612 : 14 : gimple_seq *lseq = seq;
7613 : 14 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1700;
7614 : 14 : {
7615 : 14 : res_op->set_op (coss, type, 1);
7616 : 14 : res_op->ops[0] = captures[0];
7617 : 14 : res_op->resimplify (lseq, valueize);
7618 : 14 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 966, __FILE__, __LINE__, true);
7619 : 14 : return true;
7620 : : }
7621 : 0 : next_after_fail1700:;
7622 : : }
7623 : 0 : break;
7624 : : }
7625 : 0 : case ABS_EXPR:
7626 : 0 : {
7627 : 0 : tree _q20 = gimple_assign_rhs1 (_a1);
7628 : 0 : _q20 = do_valueize (valueize, _q20);
7629 : 0 : {
7630 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
7631 : 0 : const combined_fn coss = CFN_BUILT_IN_COSHL;
7632 : 0 : gimple_seq *lseq = seq;
7633 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1701;
7634 : 0 : {
7635 : 0 : res_op->set_op (coss, type, 1);
7636 : 0 : res_op->ops[0] = captures[0];
7637 : 0 : res_op->resimplify (lseq, valueize);
7638 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 966, __FILE__, __LINE__, true);
7639 : 0 : return true;
7640 : : }
7641 : 0 : next_after_fail1701:;
7642 : : }
7643 : 0 : break;
7644 : : }
7645 : : default:;
7646 : : }
7647 : 377 : else if (gcall *_c1 = dyn_cast <gcall *> (_d1))
7648 : 16 : switch (gimple_call_combined_fn (_c1))
7649 : : {
7650 : 0 : case CFN_BUILT_IN_COPYSIGN:
7651 : 0 : if (gimple_call_num_args (_c1) == 2)
7652 : : {
7653 : 0 : tree _q20 = gimple_call_arg (_c1, 0);
7654 : 0 : _q20 = do_valueize (valueize, _q20);
7655 : 0 : tree _q21 = gimple_call_arg (_c1, 1);
7656 : 0 : _q21 = do_valueize (valueize, _q21);
7657 : 0 : {
7658 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7659 : 0 : if (gimple_simplify_426 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_COPYSIGN, CFN_BUILT_IN_COSHL))
7660 : 0 : return true;
7661 : : }
7662 : : }
7663 : : break;
7664 : 0 : case CFN_BUILT_IN_COPYSIGNF:
7665 : 0 : if (gimple_call_num_args (_c1) == 2)
7666 : : {
7667 : 0 : tree _q20 = gimple_call_arg (_c1, 0);
7668 : 0 : _q20 = do_valueize (valueize, _q20);
7669 : 0 : tree _q21 = gimple_call_arg (_c1, 1);
7670 : 0 : _q21 = do_valueize (valueize, _q21);
7671 : 0 : {
7672 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7673 : 0 : if (gimple_simplify_426 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_COPYSIGNF, CFN_BUILT_IN_COSHL))
7674 : 0 : return true;
7675 : : }
7676 : : }
7677 : : break;
7678 : 0 : case CFN_BUILT_IN_COPYSIGNL:
7679 : 0 : if (gimple_call_num_args (_c1) == 2)
7680 : : {
7681 : 0 : tree _q20 = gimple_call_arg (_c1, 0);
7682 : 0 : _q20 = do_valueize (valueize, _q20);
7683 : 0 : tree _q21 = gimple_call_arg (_c1, 1);
7684 : 0 : _q21 = do_valueize (valueize, _q21);
7685 : 0 : {
7686 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7687 : 0 : if (gimple_simplify_426 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_COPYSIGNL, CFN_BUILT_IN_COSHL))
7688 : 0 : return true;
7689 : : }
7690 : : }
7691 : : break;
7692 : 16 : case CFN_BUILT_IN_ATANHL:
7693 : 16 : if (gimple_call_num_args (_c1) == 1)
7694 : : {
7695 : 16 : tree _q20 = gimple_call_arg (_c1, 0);
7696 : 16 : _q20 = do_valueize (valueize, _q20);
7697 : 16 : {
7698 : 16 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
7699 : 16 : if (gimple_simplify_428 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_COSHL, CFN_BUILT_IN_ATANHL, CFN_BUILT_IN_SQRTL))
7700 : 1 : return true;
7701 : : }
7702 : : }
7703 : : break;
7704 : 0 : case CFN_COPYSIGN:
7705 : 0 : if (gimple_call_num_args (_c1) == 2)
7706 : : {
7707 : 0 : tree _q20 = gimple_call_arg (_c1, 0);
7708 : 0 : _q20 = do_valueize (valueize, _q20);
7709 : 0 : tree _q21 = gimple_call_arg (_c1, 1);
7710 : 0 : _q21 = do_valueize (valueize, _q21);
7711 : 0 : {
7712 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
7713 : 0 : if (gimple_simplify_426 (res_op, seq, valueize, type, captures, CFN_COPYSIGN, CFN_BUILT_IN_COSHL))
7714 : 0 : return true;
7715 : : }
7716 : : }
7717 : : break;
7718 : : default:;
7719 : : }
7720 : : }
7721 : : break;
7722 : : default:;
7723 : : }
7724 : : return false;
7725 : : }
7726 : :
7727 : : bool
7728 : 39833 : gimple_simplify_ABSU_EXPR (gimple_match_op *res_op, gimple_seq *seq,
7729 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
7730 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
7731 : : {
7732 : 39833 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
7733 : 39833 : switch (TREE_CODE (_p0))
7734 : : {
7735 : 39397 : case SSA_NAME:
7736 : 39397 : if (gimple *_d1 = get_def (valueize, _p0))
7737 : : {
7738 : 26185 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
7739 : 35120 : switch (gimple_assign_rhs_code (_a1))
7740 : : {
7741 : 8471 : CASE_CONVERT:
7742 : 8471 : {
7743 : 8471 : tree _q20 = gimple_assign_rhs1 (_a1);
7744 : 8471 : _q20 = do_valueize (valueize, _q20);
7745 : 8471 : switch (TREE_CODE (_q20))
7746 : : {
7747 : 8471 : case SSA_NAME:
7748 : 8471 : if (gimple *_d2 = get_def (valueize, _q20))
7749 : : {
7750 : 8342 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
7751 : 7998 : switch (gimple_assign_rhs_code (_a2))
7752 : : {
7753 : 1 : case ABSU_EXPR:
7754 : 1 : {
7755 : 1 : tree _q30 = gimple_assign_rhs1 (_a2);
7756 : 1 : _q30 = do_valueize (valueize, _q30);
7757 : 1 : {
7758 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
7759 : 1 : if (tree_nop_conversion_p (TREE_TYPE (captures[0]), TREE_TYPE (captures[1]))
7760 : : )
7761 : : {
7762 : 1 : gimple_seq *lseq = seq;
7763 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1746;
7764 : 1 : {
7765 : 1 : tree tem;
7766 : 1 : tem = captures[1];
7767 : 1 : res_op->set_value (tem);
7768 : 1 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 989, __FILE__, __LINE__, true);
7769 : 1 : return true;
7770 : : }
7771 : 0 : next_after_fail1746:;
7772 : : }
7773 : : }
7774 : 0 : break;
7775 : : }
7776 : : default:;
7777 : : }
7778 : : }
7779 : : break;
7780 : : default:;
7781 : : }
7782 : : break;
7783 : : }
7784 : 38 : case NEGATE_EXPR:
7785 : 38 : {
7786 : 38 : tree _q20 = gimple_assign_rhs1 (_a1);
7787 : 38 : _q20 = do_valueize (valueize, _q20);
7788 : 38 : {
7789 : 38 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
7790 : 38 : gimple_seq *lseq = seq;
7791 : 38 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1747;
7792 : 38 : {
7793 : 38 : res_op->set_op (ABSU_EXPR, type, 1);
7794 : 38 : res_op->ops[0] = captures[0];
7795 : 38 : res_op->resimplify (lseq, valueize);
7796 : 38 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 990, __FILE__, __LINE__, true);
7797 : 38 : return true;
7798 : : }
7799 : 0 : next_after_fail1747:;
7800 : : }
7801 : 0 : break;
7802 : : }
7803 : 0 : case VEC_COND_EXPR:
7804 : 0 : {
7805 : 0 : tree _q20 = gimple_assign_rhs1 (_a1);
7806 : 0 : _q20 = do_valueize (valueize, _q20);
7807 : 0 : tree _q21 = gimple_assign_rhs2 (_a1);
7808 : 0 : _q21 = do_valueize (valueize, _q21);
7809 : 0 : tree _q22 = gimple_assign_rhs3 (_a1);
7810 : 0 : _q22 = do_valueize (valueize, _q22);
7811 : 0 : {
7812 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22 };
7813 : 0 : gimple_seq *lseq = seq;
7814 : 0 : if (lseq
7815 : 0 : && (!single_use (captures[0])))
7816 : 0 : lseq = NULL;
7817 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1748;
7818 : 0 : {
7819 : 0 : res_op->set_op (VEC_COND_EXPR, type, 3);
7820 : 0 : res_op->ops[0] = captures[1];
7821 : 0 : {
7822 : 0 : tree _o1[1], _r1;
7823 : 0 : _o1[0] = captures[2];
7824 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), ABSU_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
7825 : 0 : tem_op.resimplify (NULL, valueize);
7826 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, NULL);
7827 : 0 : if (!_r1) goto next_after_fail1748;
7828 : 0 : res_op->ops[1] = _r1;
7829 : : }
7830 : 0 : {
7831 : 0 : tree _o1[1], _r1;
7832 : 0 : _o1[0] = captures[3];
7833 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), ABSU_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
7834 : 0 : tem_op.resimplify (NULL, valueize);
7835 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, NULL);
7836 : 0 : if (!_r1) goto next_after_fail1748;
7837 : 0 : res_op->ops[2] = _r1;
7838 : : }
7839 : 0 : res_op->resimplify (lseq, valueize);
7840 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 948, __FILE__, __LINE__, true);
7841 : 0 : return true;
7842 : : }
7843 : 0 : next_after_fail1748:;
7844 : : }
7845 : 0 : break;
7846 : : }
7847 : : default:;
7848 : : }
7849 : : }
7850 : : break;
7851 : 39794 : default:;
7852 : : }
7853 : 39794 : if (tree_expr_nonnegative_p (_p0))
7854 : : {
7855 : 6 : {
7856 : 6 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
7857 : 6 : gimple_seq *lseq = seq;
7858 : 6 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1749;
7859 : 6 : {
7860 : 6 : res_op->set_op (NOP_EXPR, type, 1);
7861 : 6 : res_op->ops[0] = captures[0];
7862 : 6 : res_op->resimplify (lseq, valueize);
7863 : 6 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 991, __FILE__, __LINE__, true);
7864 : 6 : return true;
7865 : : }
7866 : 0 : next_after_fail1749:;
7867 : : }
7868 : : }
7869 : : return false;
7870 : : }
7871 : :
7872 : : bool
7873 : 4700 : gimple_simplify_CONJ_EXPR (gimple_match_op *res_op, gimple_seq *seq,
7874 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
7875 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
7876 : : {
7877 : 4700 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
7878 : 4700 : switch (TREE_CODE (_p0))
7879 : : {
7880 : 4604 : case SSA_NAME:
7881 : 4604 : if (gimple *_d1 = get_def (valueize, _p0))
7882 : : {
7883 : 3662 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
7884 : 6417 : switch (gimple_assign_rhs_code (_a1))
7885 : : {
7886 : 0 : CASE_CONVERT:
7887 : 0 : {
7888 : 0 : tree _q20 = gimple_assign_rhs1 (_a1);
7889 : 0 : _q20 = do_valueize (valueize, _q20);
7890 : 0 : switch (TREE_CODE (_q20))
7891 : : {
7892 : 0 : case SSA_NAME:
7893 : 0 : if (gimple *_d2 = get_def (valueize, _q20))
7894 : : {
7895 : 0 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
7896 : 0 : switch (gimple_assign_rhs_code (_a2))
7897 : : {
7898 : 0 : case CONJ_EXPR:
7899 : 0 : {
7900 : 0 : tree _q30 = gimple_assign_rhs1 (_a2);
7901 : 0 : _q30 = do_valueize (valueize, _q30);
7902 : 0 : {
7903 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q30 };
7904 : 0 : if (gimple_simplify_612 (res_op, seq, valueize, type, captures))
7905 : 0 : return true;
7906 : : }
7907 : 0 : break;
7908 : : }
7909 : 0 : case COMPLEX_EXPR:
7910 : 0 : {
7911 : 0 : tree _q30 = gimple_assign_rhs1 (_a2);
7912 : 0 : _q30 = do_valueize (valueize, _q30);
7913 : 0 : tree _q31 = gimple_assign_rhs2 (_a2);
7914 : 0 : _q31 = do_valueize (valueize, _q31);
7915 : 0 : {
7916 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31 };
7917 : 0 : {
7918 : 0 : tree itype = TREE_TYPE (type);
7919 : 0 : gimple_seq *lseq = seq;
7920 : 0 : if (lseq
7921 : 0 : && (!single_use (captures[0])
7922 : 0 : || !single_use (captures[1])))
7923 : 0 : lseq = NULL;
7924 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1816;
7925 : 0 : {
7926 : 0 : res_op->set_op (COMPLEX_EXPR, type, 2);
7927 : 0 : {
7928 : 0 : tree _o1[1], _r1;
7929 : 0 : _o1[0] = captures[2];
7930 : 0 : if (itype != TREE_TYPE (_o1[0]) /* XXX */
7931 : 0 : && !useless_type_conversion_p (itype, TREE_TYPE (_o1[0])))
7932 : : {
7933 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), NOP_EXPR, itype, _o1[0]);
7934 : 0 : tem_op.resimplify (lseq, valueize);
7935 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
7936 : 0 : if (!_r1) goto next_after_fail1816;
7937 : : }
7938 : : else
7939 : : _r1 = _o1[0];
7940 : 0 : res_op->ops[0] = _r1;
7941 : : }
7942 : 0 : {
7943 : 0 : tree _o1[1], _r1;
7944 : 0 : {
7945 : 0 : tree _o2[1], _r2;
7946 : 0 : _o2[0] = captures[3];
7947 : 0 : if (itype != TREE_TYPE (_o2[0]) /* XXX */
7948 : 0 : && !useless_type_conversion_p (itype, TREE_TYPE (_o2[0])))
7949 : : {
7950 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), NOP_EXPR, itype, _o2[0]);
7951 : 0 : tem_op.resimplify (lseq, valueize);
7952 : 0 : _r2 = maybe_push_res_to_seq (&tem_op, lseq);
7953 : 0 : if (!_r2) goto next_after_fail1816;
7954 : : }
7955 : : else
7956 : : _r2 = _o2[0];
7957 : 0 : _o1[0] = _r2;
7958 : : }
7959 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
7960 : 0 : tem_op.resimplify (lseq, valueize);
7961 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
7962 : 0 : if (!_r1) goto next_after_fail1816;
7963 : 0 : res_op->ops[1] = _r1;
7964 : : }
7965 : 0 : res_op->resimplify (lseq, valueize);
7966 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1008, __FILE__, __LINE__, true);
7967 : 0 : return true;
7968 : : }
7969 : 0 : next_after_fail1816:;
7970 : : }
7971 : : }
7972 : 0 : break;
7973 : : }
7974 : : default:;
7975 : : }
7976 : : }
7977 : : break;
7978 : : default:;
7979 : : }
7980 : : break;
7981 : : }
7982 : 0 : case CONJ_EXPR:
7983 : 0 : {
7984 : 0 : tree _q20 = gimple_assign_rhs1 (_a1);
7985 : 0 : _q20 = do_valueize (valueize, _q20);
7986 : 0 : {
7987 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
7988 : 0 : if (gimple_simplify_612 (res_op, seq, valueize, type, captures))
7989 : 0 : return true;
7990 : : }
7991 : 0 : break;
7992 : : }
7993 : 0 : case COMPLEX_EXPR:
7994 : 0 : {
7995 : 0 : tree _q20 = gimple_assign_rhs1 (_a1);
7996 : 0 : _q20 = do_valueize (valueize, _q20);
7997 : 0 : tree _q21 = gimple_assign_rhs2 (_a1);
7998 : 0 : _q21 = do_valueize (valueize, _q21);
7999 : 0 : {
8000 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21 };
8001 : 0 : {
8002 : 0 : tree itype = TREE_TYPE (type);
8003 : 0 : gimple_seq *lseq = seq;
8004 : 0 : if (lseq
8005 : 0 : && (!single_use (captures[0])
8006 : : || !single_use (captures[1])))
8007 : 0 : lseq = NULL;
8008 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1817;
8009 : 0 : {
8010 : 0 : res_op->set_op (COMPLEX_EXPR, type, 2);
8011 : 0 : {
8012 : 0 : tree _o1[1], _r1;
8013 : 0 : _o1[0] = captures[2];
8014 : 0 : if (itype != TREE_TYPE (_o1[0]) /* XXX */
8015 : 0 : && !useless_type_conversion_p (itype, TREE_TYPE (_o1[0])))
8016 : : {
8017 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), NOP_EXPR, itype, _o1[0]);
8018 : 0 : tem_op.resimplify (lseq, valueize);
8019 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
8020 : 0 : if (!_r1) goto next_after_fail1817;
8021 : : }
8022 : : else
8023 : : _r1 = _o1[0];
8024 : 0 : res_op->ops[0] = _r1;
8025 : : }
8026 : 0 : {
8027 : 0 : tree _o1[1], _r1;
8028 : 0 : {
8029 : 0 : tree _o2[1], _r2;
8030 : 0 : _o2[0] = captures[3];
8031 : 0 : if (itype != TREE_TYPE (_o2[0]) /* XXX */
8032 : 0 : && !useless_type_conversion_p (itype, TREE_TYPE (_o2[0])))
8033 : : {
8034 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), NOP_EXPR, itype, _o2[0]);
8035 : 0 : tem_op.resimplify (lseq, valueize);
8036 : 0 : _r2 = maybe_push_res_to_seq (&tem_op, lseq);
8037 : 0 : if (!_r2) goto next_after_fail1817;
8038 : : }
8039 : : else
8040 : : _r2 = _o2[0];
8041 : 0 : _o1[0] = _r2;
8042 : : }
8043 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), NEGATE_EXPR, TREE_TYPE (_o1[0]), _o1[0]);
8044 : 0 : tem_op.resimplify (lseq, valueize);
8045 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
8046 : 0 : if (!_r1) goto next_after_fail1817;
8047 : 0 : res_op->ops[1] = _r1;
8048 : : }
8049 : 0 : res_op->resimplify (lseq, valueize);
8050 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1008, __FILE__, __LINE__, true);
8051 : 0 : return true;
8052 : : }
8053 : 0 : next_after_fail1817:;
8054 : : }
8055 : : }
8056 : 0 : break;
8057 : : }
8058 : : default:;
8059 : : }
8060 : : }
8061 : : break;
8062 : : default:;
8063 : : }
8064 : : return false;
8065 : : }
8066 : :
8067 : : bool
8068 : 7519 : gimple_simplify_CFN_BUILT_IN_BSWAP32 (gimple_match_op *res_op, gimple_seq *seq,
8069 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
8070 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
8071 : : {
8072 : 7519 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
8073 : 7519 : switch (TREE_CODE (_p0))
8074 : : {
8075 : 7412 : case SSA_NAME:
8076 : 7412 : if (gimple *_d1 = get_def (valueize, _p0))
8077 : : {
8078 : 3262 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
8079 : 4281 : switch (gimple_assign_rhs_code (_a1))
8080 : : {
8081 : 2 : case BIT_NOT_EXPR:
8082 : 2 : {
8083 : 2 : tree _q20 = gimple_assign_rhs1 (_a1);
8084 : 2 : _q20 = do_valueize (valueize, _q20);
8085 : 2 : switch (TREE_CODE (_q20))
8086 : : {
8087 : 2 : case SSA_NAME:
8088 : 2 : if (gimple *_d2 = get_def (valueize, _q20))
8089 : : {
8090 : 2 : if (gcall *_c2 = dyn_cast <gcall *> (_d2))
8091 : 2 : switch (gimple_call_combined_fn (_c2))
8092 : : {
8093 : 2 : case CFN_BUILT_IN_BSWAP32:
8094 : 2 : if (gimple_call_num_args (_c2) == 1)
8095 : : {
8096 : 2 : tree _q30 = gimple_call_arg (_c2, 0);
8097 : 2 : _q30 = do_valueize (valueize, _q30);
8098 : 2 : {
8099 : 2 : tree captures[1] ATTRIBUTE_UNUSED = { _q30 };
8100 : 2 : if (gimple_simplify_614 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_BSWAP32))
8101 : 2 : return true;
8102 : : }
8103 : : }
8104 : : break;
8105 : : default:;
8106 : : }
8107 : : }
8108 : : break;
8109 : : default:;
8110 : : }
8111 : : break;
8112 : : }
8113 : 20 : case BIT_XOR_EXPR:
8114 : 20 : {
8115 : 20 : tree _q20 = gimple_assign_rhs1 (_a1);
8116 : 20 : _q20 = do_valueize (valueize, _q20);
8117 : 20 : tree _q21 = gimple_assign_rhs2 (_a1);
8118 : 20 : _q21 = do_valueize (valueize, _q21);
8119 : 20 : if (tree_swap_operands_p (_q20, _q21))
8120 : 0 : std::swap (_q20, _q21);
8121 : 20 : switch (TREE_CODE (_q20))
8122 : : {
8123 : 20 : case SSA_NAME:
8124 : 20 : if (gimple *_d2 = get_def (valueize, _q20))
8125 : : {
8126 : 20 : if (gcall *_c2 = dyn_cast <gcall *> (_d2))
8127 : 4 : switch (gimple_call_combined_fn (_c2))
8128 : : {
8129 : 4 : case CFN_BUILT_IN_BSWAP32:
8130 : 4 : if (gimple_call_num_args (_c2) == 1)
8131 : : {
8132 : 4 : tree _q30 = gimple_call_arg (_c2, 0);
8133 : 4 : _q30 = do_valueize (valueize, _q30);
8134 : 4 : {
8135 : 4 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q21 };
8136 : 4 : if (gimple_simplify_615 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, CFN_BUILT_IN_BSWAP32))
8137 : 4 : return true;
8138 : : }
8139 : : }
8140 : : break;
8141 : : default:;
8142 : : }
8143 : : }
8144 : : break;
8145 : 16 : default:;
8146 : : }
8147 : 16 : switch (TREE_CODE (_q21))
8148 : : {
8149 : 16 : case SSA_NAME:
8150 : 16 : if (gimple *_d2 = get_def (valueize, _q21))
8151 : : {
8152 : 16 : if (gcall *_c2 = dyn_cast <gcall *> (_d2))
8153 : 0 : switch (gimple_call_combined_fn (_c2))
8154 : : {
8155 : 0 : case CFN_BUILT_IN_BSWAP32:
8156 : 0 : if (gimple_call_num_args (_c2) == 1)
8157 : : {
8158 : 0 : tree _q40 = gimple_call_arg (_c2, 0);
8159 : 0 : _q40 = do_valueize (valueize, _q40);
8160 : 0 : {
8161 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q20 };
8162 : 0 : if (gimple_simplify_615 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, CFN_BUILT_IN_BSWAP32))
8163 : 0 : return true;
8164 : : }
8165 : : }
8166 : : break;
8167 : : default:;
8168 : : }
8169 : : }
8170 : : break;
8171 : : default:;
8172 : : }
8173 : 7519 : break;
8174 : : }
8175 : 146 : case BIT_IOR_EXPR:
8176 : 146 : {
8177 : 146 : tree _q20 = gimple_assign_rhs1 (_a1);
8178 : 146 : _q20 = do_valueize (valueize, _q20);
8179 : 146 : tree _q21 = gimple_assign_rhs2 (_a1);
8180 : 146 : _q21 = do_valueize (valueize, _q21);
8181 : 146 : if (tree_swap_operands_p (_q20, _q21))
8182 : 0 : std::swap (_q20, _q21);
8183 : 146 : switch (TREE_CODE (_q20))
8184 : : {
8185 : 146 : case SSA_NAME:
8186 : 146 : if (gimple *_d2 = get_def (valueize, _q20))
8187 : : {
8188 : 146 : if (gcall *_c2 = dyn_cast <gcall *> (_d2))
8189 : 4 : switch (gimple_call_combined_fn (_c2))
8190 : : {
8191 : 4 : case CFN_BUILT_IN_BSWAP32:
8192 : 4 : if (gimple_call_num_args (_c2) == 1)
8193 : : {
8194 : 4 : tree _q30 = gimple_call_arg (_c2, 0);
8195 : 4 : _q30 = do_valueize (valueize, _q30);
8196 : 4 : {
8197 : 4 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q21 };
8198 : 4 : if (gimple_simplify_615 (res_op, seq, valueize, type, captures, BIT_IOR_EXPR, CFN_BUILT_IN_BSWAP32))
8199 : 4 : return true;
8200 : : }
8201 : : }
8202 : : break;
8203 : : default:;
8204 : : }
8205 : : }
8206 : : break;
8207 : 142 : default:;
8208 : : }
8209 : 142 : switch (TREE_CODE (_q21))
8210 : : {
8211 : 131 : case SSA_NAME:
8212 : 131 : if (gimple *_d2 = get_def (valueize, _q21))
8213 : : {
8214 : 124 : if (gcall *_c2 = dyn_cast <gcall *> (_d2))
8215 : 0 : switch (gimple_call_combined_fn (_c2))
8216 : : {
8217 : 0 : case CFN_BUILT_IN_BSWAP32:
8218 : 0 : if (gimple_call_num_args (_c2) == 1)
8219 : : {
8220 : 0 : tree _q40 = gimple_call_arg (_c2, 0);
8221 : 0 : _q40 = do_valueize (valueize, _q40);
8222 : 0 : {
8223 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q20 };
8224 : 0 : if (gimple_simplify_615 (res_op, seq, valueize, type, captures, BIT_IOR_EXPR, CFN_BUILT_IN_BSWAP32))
8225 : 0 : return true;
8226 : : }
8227 : : }
8228 : : break;
8229 : : default:;
8230 : : }
8231 : : }
8232 : : break;
8233 : : default:;
8234 : : }
8235 : 7519 : break;
8236 : : }
8237 : 21 : case BIT_AND_EXPR:
8238 : 21 : {
8239 : 21 : tree _q20 = gimple_assign_rhs1 (_a1);
8240 : 21 : _q20 = do_valueize (valueize, _q20);
8241 : 21 : tree _q21 = gimple_assign_rhs2 (_a1);
8242 : 21 : _q21 = do_valueize (valueize, _q21);
8243 : 21 : if (tree_swap_operands_p (_q20, _q21))
8244 : 1 : std::swap (_q20, _q21);
8245 : 21 : switch (TREE_CODE (_q20))
8246 : : {
8247 : 21 : case SSA_NAME:
8248 : 21 : if (gimple *_d2 = get_def (valueize, _q20))
8249 : : {
8250 : 21 : if (gcall *_c2 = dyn_cast <gcall *> (_d2))
8251 : 7 : switch (gimple_call_combined_fn (_c2))
8252 : : {
8253 : 7 : case CFN_BUILT_IN_BSWAP32:
8254 : 7 : if (gimple_call_num_args (_c2) == 1)
8255 : : {
8256 : 7 : tree _q30 = gimple_call_arg (_c2, 0);
8257 : 7 : _q30 = do_valueize (valueize, _q30);
8258 : 7 : {
8259 : 7 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q21 };
8260 : 7 : if (gimple_simplify_615 (res_op, seq, valueize, type, captures, BIT_AND_EXPR, CFN_BUILT_IN_BSWAP32))
8261 : 7 : return true;
8262 : : }
8263 : : }
8264 : : break;
8265 : : default:;
8266 : : }
8267 : : }
8268 : : break;
8269 : 14 : default:;
8270 : : }
8271 : 14 : switch (TREE_CODE (_q21))
8272 : : {
8273 : 3 : case SSA_NAME:
8274 : 3 : if (gimple *_d2 = get_def (valueize, _q21))
8275 : : {
8276 : 3 : if (gcall *_c2 = dyn_cast <gcall *> (_d2))
8277 : 0 : switch (gimple_call_combined_fn (_c2))
8278 : : {
8279 : 0 : case CFN_BUILT_IN_BSWAP32:
8280 : 0 : if (gimple_call_num_args (_c2) == 1)
8281 : : {
8282 : 0 : tree _q40 = gimple_call_arg (_c2, 0);
8283 : 0 : _q40 = do_valueize (valueize, _q40);
8284 : 0 : {
8285 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q20 };
8286 : 0 : if (gimple_simplify_615 (res_op, seq, valueize, type, captures, BIT_AND_EXPR, CFN_BUILT_IN_BSWAP32))
8287 : 0 : return true;
8288 : : }
8289 : : }
8290 : : break;
8291 : : default:;
8292 : : }
8293 : : }
8294 : : break;
8295 : : default:;
8296 : : }
8297 : 7519 : break;
8298 : : }
8299 : : default:;
8300 : : }
8301 : 687 : else if (gcall *_c1 = dyn_cast <gcall *> (_d1))
8302 : 16 : switch (gimple_call_combined_fn (_c1))
8303 : : {
8304 : 16 : case CFN_BUILT_IN_BSWAP32:
8305 : 16 : if (gimple_call_num_args (_c1) == 1)
8306 : : {
8307 : 16 : tree _q20 = gimple_call_arg (_c1, 0);
8308 : 16 : _q20 = do_valueize (valueize, _q20);
8309 : 16 : {
8310 : 16 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
8311 : 16 : if (gimple_simplify_613 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_BSWAP32))
8312 : 16 : return true;
8313 : : }
8314 : : }
8315 : : break;
8316 : : default:;
8317 : : }
8318 : : }
8319 : : break;
8320 : : default:;
8321 : : }
8322 : : return false;
8323 : : }
8324 : :
8325 : : bool
8326 : 11365 : gimple_simplify_CFN_BUILT_IN_LOG (gimple_match_op *res_op, gimple_seq *seq,
8327 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
8328 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
8329 : : {
8330 : 11365 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
8331 : 11365 : switch (TREE_CODE (_p0))
8332 : : {
8333 : 10715 : case SSA_NAME:
8334 : 10715 : if (gimple *_d1 = get_def (valueize, _p0))
8335 : : {
8336 : 5493 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
8337 : 4487 : switch (gimple_assign_rhs_code (_a1))
8338 : : {
8339 : 723 : case RDIV_EXPR:
8340 : 723 : {
8341 : 723 : tree _q20 = gimple_assign_rhs1 (_a1);
8342 : 723 : _q20 = do_valueize (valueize, _q20);
8343 : 723 : tree _q21 = gimple_assign_rhs2 (_a1);
8344 : 723 : _q21 = do_valueize (valueize, _q21);
8345 : 723 : switch (TREE_CODE (_q20))
8346 : : {
8347 : 31 : case REAL_CST:
8348 : 31 : {
8349 : 31 : {
8350 : 31 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8351 : 31 : if (gimple_simplify_642 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_LOG))
8352 : 2 : return true;
8353 : : }
8354 : 29 : break;
8355 : : }
8356 : 721 : default:;
8357 : : }
8358 : 721 : if (real_onep (_q20))
8359 : : {
8360 : 1 : {
8361 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8362 : 1 : if (gimple_simplify_641 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_LOG))
8363 : 0 : return true;
8364 : : }
8365 : : }
8366 : : break;
8367 : : }
8368 : : default:;
8369 : : }
8370 : 1342 : else if (gcall *_c1 = dyn_cast <gcall *> (_d1))
8371 : 403 : switch (gimple_call_combined_fn (_c1))
8372 : : {
8373 : 7 : case CFN_BUILT_IN_EXP:
8374 : 7 : if (gimple_call_num_args (_c1) == 1)
8375 : : {
8376 : 7 : tree _q20 = gimple_call_arg (_c1, 0);
8377 : 7 : _q20 = do_valueize (valueize, _q20);
8378 : 7 : {
8379 : 7 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
8380 : 7 : if (flag_unsafe_math_optimizations
8381 : : )
8382 : : {
8383 : 7 : gimple_seq *lseq = seq;
8384 : 7 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1824;
8385 : 7 : {
8386 : 7 : tree tem;
8387 : 7 : tem = captures[0];
8388 : 7 : res_op->set_value (tem);
8389 : 7 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1011, __FILE__, __LINE__, true);
8390 : 7 : return true;
8391 : : }
8392 : 0 : next_after_fail1824:;
8393 : : }
8394 : : }
8395 : : }
8396 : : break;
8397 : 16 : case CFN_BUILT_IN_POW:
8398 : 16 : if (gimple_call_num_args (_c1) == 2)
8399 : : {
8400 : 16 : tree _q20 = gimple_call_arg (_c1, 0);
8401 : 16 : _q20 = do_valueize (valueize, _q20);
8402 : 16 : tree _q21 = gimple_call_arg (_c1, 1);
8403 : 16 : _q21 = do_valueize (valueize, _q21);
8404 : 16 : {
8405 : 16 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8406 : 16 : if (gimple_simplify_643 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_LOG, CFN_BUILT_IN_POW))
8407 : 8 : return true;
8408 : : }
8409 : : }
8410 : : break;
8411 : 12 : case CFN_BUILT_IN_CBRT:
8412 : 12 : if (gimple_call_num_args (_c1) == 1)
8413 : : {
8414 : 12 : tree _q20 = gimple_call_arg (_c1, 0);
8415 : 12 : _q20 = do_valueize (valueize, _q20);
8416 : 12 : {
8417 : 12 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
8418 : 12 : if (flag_unsafe_math_optimizations
8419 : : )
8420 : : {
8421 : 12 : if (SCALAR_FLOAT_TYPE_P (type)
8422 : : )
8423 : : {
8424 : 12 : {
8425 : 12 : tree x;
8426 : 12 : switch (CFN_BUILT_IN_CBRT)
8427 : : {
8428 : : CASE_CFN_SQRT:
8429 : : x = build_real (type, dconsthalf);
8430 : : break;
8431 : 12 : CASE_CFN_CBRT:
8432 : 12 : x = build_real_truncate (type, dconst_third ());
8433 : 12 : break;
8434 : : default:
8435 : : gcc_unreachable ();
8436 : : }
8437 : 12 : gimple_seq *lseq = seq;
8438 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1825;
8439 : 12 : {
8440 : 12 : res_op->set_op (MULT_EXPR, type, 2);
8441 : 12 : res_op->ops[0] = x;
8442 : 12 : {
8443 : 12 : tree _o1[1], _r1;
8444 : 12 : _o1[0] = captures[0];
8445 : 12 : gimple_match_op tem_op (res_op->cond.any_else (), CFN_BUILT_IN_LOG, TREE_TYPE (_o1[0]), _o1[0]);
8446 : 12 : tem_op.resimplify (lseq, valueize);
8447 : 12 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
8448 : 12 : if (!_r1) goto next_after_fail1825;
8449 : 6 : res_op->ops[1] = _r1;
8450 : : }
8451 : 6 : res_op->resimplify (lseq, valueize);
8452 : 6 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1009, __FILE__, __LINE__, true);
8453 : 6 : return true;
8454 : : }
8455 : : next_after_fail1825:;
8456 : : }
8457 : : }
8458 : : }
8459 : : }
8460 : : }
8461 : : break;
8462 : 12 : case CFN_BUILT_IN_EXP2:
8463 : 12 : if (gimple_call_num_args (_c1) == 1)
8464 : : {
8465 : 12 : tree _q20 = gimple_call_arg (_c1, 0);
8466 : 12 : _q20 = do_valueize (valueize, _q20);
8467 : 12 : {
8468 : 12 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
8469 : 12 : if (flag_unsafe_math_optimizations
8470 : : )
8471 : : {
8472 : 12 : if (SCALAR_FLOAT_TYPE_P (type)
8473 : : )
8474 : : {
8475 : 12 : {
8476 : 12 : tree x;
8477 : 12 : switch (CFN_BUILT_IN_EXP2)
8478 : : {
8479 : : CASE_CFN_EXP:
8480 : : x = build_real_truncate (type, dconst_e ());
8481 : : break;
8482 : 12 : CASE_CFN_EXP2:
8483 : 12 : x = build_real (type, dconst2);
8484 : 12 : break;
8485 : : CASE_CFN_EXP10:
8486 : : CASE_CFN_POW10:
8487 : : {
8488 : : REAL_VALUE_TYPE dconst10;
8489 : : real_from_integer (&dconst10, VOIDmode, 10, SIGNED);
8490 : : x = build_real (type, dconst10);
8491 : : }
8492 : : break;
8493 : : default:
8494 : : gcc_unreachable ();
8495 : : }
8496 : 12 : gimple_seq *lseq = seq;
8497 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1826;
8498 : 12 : {
8499 : 12 : res_op->set_op (MULT_EXPR, type, 2);
8500 : 12 : {
8501 : 12 : tree _o1[1], _r1;
8502 : 12 : _o1[0] = x;
8503 : 12 : gimple_match_op tem_op (res_op->cond.any_else (), CFN_BUILT_IN_LOG, TREE_TYPE (_o1[0]), _o1[0]);
8504 : 12 : tem_op.resimplify (lseq, valueize);
8505 : 12 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
8506 : 12 : if (!_r1) goto next_after_fail1826;
8507 : 12 : res_op->ops[0] = _r1;
8508 : : }
8509 : 12 : res_op->ops[1] = captures[0];
8510 : 12 : res_op->resimplify (lseq, valueize);
8511 : 12 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1010, __FILE__, __LINE__, true);
8512 : 12 : return true;
8513 : : }
8514 : : next_after_fail1826:;
8515 : : }
8516 : : }
8517 : : }
8518 : : }
8519 : : }
8520 : : break;
8521 : 14 : case CFN_BUILT_IN_SQRT:
8522 : 14 : if (gimple_call_num_args (_c1) == 1)
8523 : : {
8524 : 14 : tree _q20 = gimple_call_arg (_c1, 0);
8525 : 14 : _q20 = do_valueize (valueize, _q20);
8526 : 14 : {
8527 : 14 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
8528 : 14 : if (flag_unsafe_math_optimizations
8529 : : )
8530 : : {
8531 : 14 : if (SCALAR_FLOAT_TYPE_P (type)
8532 : : )
8533 : : {
8534 : 14 : {
8535 : 14 : tree x;
8536 : 14 : switch (CFN_BUILT_IN_SQRT)
8537 : : {
8538 : 14 : CASE_CFN_SQRT:
8539 : 14 : x = build_real (type, dconsthalf);
8540 : 14 : break;
8541 : : CASE_CFN_CBRT:
8542 : : x = build_real_truncate (type, dconst_third ());
8543 : : break;
8544 : : default:
8545 : : gcc_unreachable ();
8546 : : }
8547 : 14 : gimple_seq *lseq = seq;
8548 : 14 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1827;
8549 : 14 : {
8550 : 14 : res_op->set_op (MULT_EXPR, type, 2);
8551 : 14 : res_op->ops[0] = x;
8552 : 14 : {
8553 : 14 : tree _o1[1], _r1;
8554 : 14 : _o1[0] = captures[0];
8555 : 14 : gimple_match_op tem_op (res_op->cond.any_else (), CFN_BUILT_IN_LOG, TREE_TYPE (_o1[0]), _o1[0]);
8556 : 14 : tem_op.resimplify (lseq, valueize);
8557 : 14 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
8558 : 14 : if (!_r1) goto next_after_fail1827;
8559 : 7 : res_op->ops[1] = _r1;
8560 : : }
8561 : 7 : res_op->resimplify (lseq, valueize);
8562 : 7 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1009, __FILE__, __LINE__, true);
8563 : 7 : return true;
8564 : : }
8565 : : next_after_fail1827:;
8566 : : }
8567 : : }
8568 : : }
8569 : : }
8570 : : }
8571 : : break;
8572 : 12 : case CFN_BUILT_IN_EXP10:
8573 : 12 : if (gimple_call_num_args (_c1) == 1)
8574 : : {
8575 : 12 : tree _q20 = gimple_call_arg (_c1, 0);
8576 : 12 : _q20 = do_valueize (valueize, _q20);
8577 : 12 : {
8578 : 12 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
8579 : 12 : if (flag_unsafe_math_optimizations
8580 : : )
8581 : : {
8582 : 12 : if (SCALAR_FLOAT_TYPE_P (type)
8583 : : )
8584 : : {
8585 : 12 : {
8586 : 12 : tree x;
8587 : 12 : switch (CFN_BUILT_IN_EXP10)
8588 : : {
8589 : : CASE_CFN_EXP:
8590 : : x = build_real_truncate (type, dconst_e ());
8591 : : break;
8592 : : CASE_CFN_EXP2:
8593 : : x = build_real (type, dconst2);
8594 : : break;
8595 : 12 : CASE_CFN_EXP10:
8596 : 12 : CASE_CFN_POW10:
8597 : 12 : {
8598 : 12 : REAL_VALUE_TYPE dconst10;
8599 : 12 : real_from_integer (&dconst10, VOIDmode, 10, SIGNED);
8600 : 12 : x = build_real (type, dconst10);
8601 : : }
8602 : 12 : break;
8603 : : default:
8604 : : gcc_unreachable ();
8605 : : }
8606 : 12 : gimple_seq *lseq = seq;
8607 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1828;
8608 : 12 : {
8609 : 12 : res_op->set_op (MULT_EXPR, type, 2);
8610 : 12 : {
8611 : 12 : tree _o1[1], _r1;
8612 : 12 : _o1[0] = x;
8613 : 12 : gimple_match_op tem_op (res_op->cond.any_else (), CFN_BUILT_IN_LOG, TREE_TYPE (_o1[0]), _o1[0]);
8614 : 12 : tem_op.resimplify (lseq, valueize);
8615 : 12 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
8616 : 12 : if (!_r1) goto next_after_fail1828;
8617 : 12 : res_op->ops[0] = _r1;
8618 : : }
8619 : 12 : res_op->ops[1] = captures[0];
8620 : 12 : res_op->resimplify (lseq, valueize);
8621 : 12 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1010, __FILE__, __LINE__, true);
8622 : 12 : return true;
8623 : : }
8624 : : next_after_fail1828:;
8625 : : }
8626 : : }
8627 : : }
8628 : : }
8629 : : }
8630 : : break;
8631 : 12 : case CFN_BUILT_IN_POW10:
8632 : 12 : if (gimple_call_num_args (_c1) == 1)
8633 : : {
8634 : 12 : tree _q20 = gimple_call_arg (_c1, 0);
8635 : 12 : _q20 = do_valueize (valueize, _q20);
8636 : 12 : {
8637 : 12 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
8638 : 12 : if (flag_unsafe_math_optimizations
8639 : : )
8640 : : {
8641 : 12 : if (SCALAR_FLOAT_TYPE_P (type)
8642 : : )
8643 : : {
8644 : 12 : {
8645 : 12 : tree x;
8646 : 12 : switch (CFN_BUILT_IN_POW10)
8647 : : {
8648 : : CASE_CFN_EXP:
8649 : : x = build_real_truncate (type, dconst_e ());
8650 : : break;
8651 : : CASE_CFN_EXP2:
8652 : : x = build_real (type, dconst2);
8653 : : break;
8654 : 12 : CASE_CFN_EXP10:
8655 : 12 : CASE_CFN_POW10:
8656 : 12 : {
8657 : 12 : REAL_VALUE_TYPE dconst10;
8658 : 12 : real_from_integer (&dconst10, VOIDmode, 10, SIGNED);
8659 : 12 : x = build_real (type, dconst10);
8660 : : }
8661 : 12 : break;
8662 : : default:
8663 : : gcc_unreachable ();
8664 : : }
8665 : 12 : gimple_seq *lseq = seq;
8666 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1829;
8667 : 12 : {
8668 : 12 : res_op->set_op (MULT_EXPR, type, 2);
8669 : 12 : {
8670 : 12 : tree _o1[1], _r1;
8671 : 12 : _o1[0] = x;
8672 : 12 : gimple_match_op tem_op (res_op->cond.any_else (), CFN_BUILT_IN_LOG, TREE_TYPE (_o1[0]), _o1[0]);
8673 : 12 : tem_op.resimplify (lseq, valueize);
8674 : 12 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
8675 : 12 : if (!_r1) goto next_after_fail1829;
8676 : 12 : res_op->ops[0] = _r1;
8677 : : }
8678 : 12 : res_op->ops[1] = captures[0];
8679 : 12 : res_op->resimplify (lseq, valueize);
8680 : 12 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1010, __FILE__, __LINE__, true);
8681 : 12 : return true;
8682 : : }
8683 : : next_after_fail1829:;
8684 : : }
8685 : : }
8686 : : }
8687 : : }
8688 : : }
8689 : : break;
8690 : : default:;
8691 : : }
8692 : : }
8693 : : break;
8694 : : default:;
8695 : : }
8696 : : return false;
8697 : : }
8698 : :
8699 : : bool
8700 : 1222 : gimple_simplify_CFN_BUILT_IN_LOG10F (gimple_match_op *res_op, gimple_seq *seq,
8701 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
8702 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
8703 : : {
8704 : 1222 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
8705 : 1222 : switch (TREE_CODE (_p0))
8706 : : {
8707 : 800 : case SSA_NAME:
8708 : 800 : if (gimple *_d1 = get_def (valueize, _p0))
8709 : : {
8710 : 511 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
8711 : 430 : switch (gimple_assign_rhs_code (_a1))
8712 : : {
8713 : 9 : case RDIV_EXPR:
8714 : 9 : {
8715 : 9 : tree _q20 = gimple_assign_rhs1 (_a1);
8716 : 9 : _q20 = do_valueize (valueize, _q20);
8717 : 9 : tree _q21 = gimple_assign_rhs2 (_a1);
8718 : 9 : _q21 = do_valueize (valueize, _q21);
8719 : 9 : switch (TREE_CODE (_q20))
8720 : : {
8721 : 4 : case REAL_CST:
8722 : 4 : {
8723 : 4 : {
8724 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8725 : 4 : if (gimple_simplify_642 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_LOG10F))
8726 : 2 : return true;
8727 : : }
8728 : 2 : break;
8729 : : }
8730 : 7 : default:;
8731 : : }
8732 : 7 : if (real_onep (_q20))
8733 : : {
8734 : 1 : {
8735 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
8736 : 1 : if (gimple_simplify_641 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_LOG10F))
8737 : 0 : return true;
8738 : : }
8739 : : }
8740 : : break;
8741 : : }
8742 : : default:;
8743 : : }
8744 : 236 : else if (gcall *_c1 = dyn_cast <gcall *> (_d1))
8745 : 84 : switch (gimple_call_combined_fn (_c1))
8746 : : {
8747 : 12 : case CFN_BUILT_IN_SQRTF:
8748 : 12 : if (gimple_call_num_args (_c1) == 1)
8749 : : {
8750 : 12 : tree _q20 = gimple_call_arg (_c1, 0);
8751 : 12 : _q20 = do_valueize (valueize, _q20);
8752 : 12 : {
8753 : 12 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
8754 : 12 : if (flag_unsafe_math_optimizations
8755 : : )
8756 : : {
8757 : 12 : if (SCALAR_FLOAT_TYPE_P (type)
8758 : : )
8759 : : {
8760 : 12 : {
8761 : 12 : tree x;
8762 : 12 : switch (CFN_BUILT_IN_SQRTF)
8763 : : {
8764 : 12 : CASE_CFN_SQRT:
8765 : 12 : x = build_real (type, dconsthalf);
8766 : 12 : break;
8767 : : CASE_CFN_CBRT:
8768 : : x = build_real_truncate (type, dconst_third ());
8769 : : break;
8770 : : default:
8771 : : gcc_unreachable ();
8772 : : }
8773 : 12 : gimple_seq *lseq = seq;
8774 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1862;
8775 : 12 : {
8776 : 12 : res_op->set_op (MULT_EXPR, type, 2);
8777 : 12 : res_op->ops[0] = x;
8778 : 12 : {
8779 : 12 : tree _o1[1], _r1;
8780 : 12 : _o1[0] = captures[0];
8781 : 12 : gimple_match_op tem_op (res_op->cond.any_else (), CFN_BUILT_IN_LOG10F, TREE_TYPE (_o1[0]), _o1[0]);
8782 : 12 : tem_op.resimplify (lseq, valueize);
8783 : 12 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
8784 : 12 : if (!_r1) goto next_after_fail1862;
8785 : 6 : res_op->ops[1] = _r1;
8786 : : }
8787 : 6 : res_op->resimplify (lseq, valueize);
8788 : 6 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1009, __FILE__, __LINE__, true);
8789 : 6 : return true;
8790 : : }
8791 : : next_after_fail1862:;
8792 : : }
8793 : : }
8794 : : }
8795 : : }
8796 : : }
8797 : : break;
8798 : 12 : case CFN_BUILT_IN_EXP10F:
8799 : 12 : if (gimple_call_num_args (_c1) == 1)
8800 : : {
8801 : 12 : tree _q20 = gimple_call_arg (_c1, 0);
8802 : 12 : _q20 = do_valueize (valueize, _q20);
8803 : 12 : {
8804 : 12 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
8805 : 12 : if (flag_unsafe_math_optimizations
8806 : : )
8807 : : {
8808 : 12 : gimple_seq *lseq = seq;
8809 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1863;
8810 : 12 : {
8811 : 12 : tree tem;
8812 : 12 : tem = captures[0];
8813 : 12 : res_op->set_value (tem);
8814 : 12 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1011, __FILE__, __LINE__, true);
8815 : 12 : return true;
8816 : : }
8817 : 0 : next_after_fail1863:;
8818 : : }
8819 : : }
8820 : : }
8821 : : break;
8822 : 12 : case CFN_BUILT_IN_EXPF:
8823 : 12 : if (gimple_call_num_args (_c1) == 1)
8824 : : {
8825 : 12 : tree _q20 = gimple_call_arg (_c1, 0);
8826 : 12 : _q20 = do_valueize (valueize, _q20);
8827 : 12 : {
8828 : 12 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
8829 : 12 : if (flag_unsafe_math_optimizations
8830 : : )
8831 : : {
8832 : 12 : if (SCALAR_FLOAT_TYPE_P (type)
8833 : : )
8834 : : {
8835 : 12 : {
8836 : 12 : tree x;
8837 : 12 : switch (CFN_BUILT_IN_EXPF)
8838 : : {
8839 : 12 : CASE_CFN_EXP:
8840 : 12 : x = build_real_truncate (type, dconst_e ());
8841 : 12 : break;
8842 : : CASE_CFN_EXP2:
8843 : : x = build_real (type, dconst2);
8844 : : break;
8845 : : CASE_CFN_EXP10:
8846 : : CASE_CFN_POW10:
8847 : : {
8848 : : REAL_VALUE_TYPE dconst10;
8849 : : real_from_integer (&dconst10, VOIDmode, 10, SIGNED);
8850 : : x = build_real (type, dconst10);
8851 : : }
8852 : : break;
8853 : : default:
8854 : : gcc_unreachable ();
8855 : : }
8856 : 12 : gimple_seq *lseq = seq;
8857 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1864;
8858 : 12 : {
8859 : 12 : res_op->set_op (MULT_EXPR, type, 2);
8860 : 12 : {
8861 : 12 : tree _o1[1], _r1;
8862 : 12 : _o1[0] = x;
8863 : 12 : gimple_match_op tem_op (res_op->cond.any_else (), CFN_BUILT_IN_LOG10F, TREE_TYPE (_o1[0]), _o1[0]);
8864 : 12 : tem_op.resimplify (lseq, valueize);
8865 : 12 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
8866 : 12 : if (!_r1) goto next_after_fail1864;
8867 : 12 : res_op->ops[0] = _r1;
8868 : : }
8869 : 12 : res_op->ops[1] = captures[0];
8870 : 12 : res_op->resimplify (lseq, valueize);
8871 : 12 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1010, __FILE__, __LINE__, true);
8872 : 12 : return true;
8873 : : }
8874 : : next_after_fail1864:;
8875 : : }
8876 : : }
8877 : : }
8878 : : }
8879 : : }
8880 : : break;
8881 : 12 : case CFN_BUILT_IN_POWF:
8882 : 12 : if (gimple_call_num_args (_c1) == 2)
8883 : : {
8884 : 12 : tree _q20 = gimple_call_arg (_c1, 0);
8885 : 12 : _q20 = do_valueize (valueize, _q20);
8886 : 12 : tree _q21 = gimple_call_arg (_c1, 1);
8887 : 12 : _q21 = do_valueize (valueize, _q21);
8888 : 12 : {
8889 : 12 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
8890 : 12 : if (gimple_simplify_643 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_LOG10F, CFN_BUILT_IN_POWF))
8891 : 6 : return true;
8892 : : }
8893 : : }
8894 : : break;
8895 : 12 : case CFN_BUILT_IN_POW10F:
8896 : 12 : if (gimple_call_num_args (_c1) == 1)
8897 : : {
8898 : 12 : tree _q20 = gimple_call_arg (_c1, 0);
8899 : 12 : _q20 = do_valueize (valueize, _q20);
8900 : 12 : {
8901 : 12 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
8902 : 12 : if (flag_unsafe_math_optimizations
8903 : : )
8904 : : {
8905 : 12 : gimple_seq *lseq = seq;
8906 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1865;
8907 : 12 : {
8908 : 12 : tree tem;
8909 : 12 : tem = captures[0];
8910 : 12 : res_op->set_value (tem);
8911 : 12 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1011, __FILE__, __LINE__, true);
8912 : 12 : return true;
8913 : : }
8914 : 0 : next_after_fail1865:;
8915 : : }
8916 : : }
8917 : : }
8918 : : break;
8919 : 12 : case CFN_BUILT_IN_CBRTF:
8920 : 12 : if (gimple_call_num_args (_c1) == 1)
8921 : : {
8922 : 12 : tree _q20 = gimple_call_arg (_c1, 0);
8923 : 12 : _q20 = do_valueize (valueize, _q20);
8924 : 12 : {
8925 : 12 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
8926 : 12 : if (flag_unsafe_math_optimizations
8927 : : )
8928 : : {
8929 : 12 : if (SCALAR_FLOAT_TYPE_P (type)
8930 : : )
8931 : : {
8932 : 12 : {
8933 : 12 : tree x;
8934 : 12 : switch (CFN_BUILT_IN_CBRTF)
8935 : : {
8936 : : CASE_CFN_SQRT:
8937 : : x = build_real (type, dconsthalf);
8938 : : break;
8939 : 12 : CASE_CFN_CBRT:
8940 : 12 : x = build_real_truncate (type, dconst_third ());
8941 : 12 : break;
8942 : : default:
8943 : : gcc_unreachable ();
8944 : : }
8945 : 12 : gimple_seq *lseq = seq;
8946 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1866;
8947 : 12 : {
8948 : 12 : res_op->set_op (MULT_EXPR, type, 2);
8949 : 12 : res_op->ops[0] = x;
8950 : 12 : {
8951 : 12 : tree _o1[1], _r1;
8952 : 12 : _o1[0] = captures[0];
8953 : 12 : gimple_match_op tem_op (res_op->cond.any_else (), CFN_BUILT_IN_LOG10F, TREE_TYPE (_o1[0]), _o1[0]);
8954 : 12 : tem_op.resimplify (lseq, valueize);
8955 : 12 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
8956 : 12 : if (!_r1) goto next_after_fail1866;
8957 : 6 : res_op->ops[1] = _r1;
8958 : : }
8959 : 6 : res_op->resimplify (lseq, valueize);
8960 : 6 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1009, __FILE__, __LINE__, true);
8961 : 6 : return true;
8962 : : }
8963 : : next_after_fail1866:;
8964 : : }
8965 : : }
8966 : : }
8967 : : }
8968 : : }
8969 : : break;
8970 : 12 : case CFN_BUILT_IN_EXP2F:
8971 : 12 : if (gimple_call_num_args (_c1) == 1)
8972 : : {
8973 : 12 : tree _q20 = gimple_call_arg (_c1, 0);
8974 : 12 : _q20 = do_valueize (valueize, _q20);
8975 : 12 : {
8976 : 12 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
8977 : 12 : if (flag_unsafe_math_optimizations
8978 : : )
8979 : : {
8980 : 12 : if (SCALAR_FLOAT_TYPE_P (type)
8981 : : )
8982 : : {
8983 : 12 : {
8984 : 12 : tree x;
8985 : 12 : switch (CFN_BUILT_IN_EXP2F)
8986 : : {
8987 : : CASE_CFN_EXP:
8988 : : x = build_real_truncate (type, dconst_e ());
8989 : : break;
8990 : 12 : CASE_CFN_EXP2:
8991 : 12 : x = build_real (type, dconst2);
8992 : 12 : break;
8993 : : CASE_CFN_EXP10:
8994 : : CASE_CFN_POW10:
8995 : : {
8996 : : REAL_VALUE_TYPE dconst10;
8997 : : real_from_integer (&dconst10, VOIDmode, 10, SIGNED);
8998 : : x = build_real (type, dconst10);
8999 : : }
9000 : : break;
9001 : : default:
9002 : : gcc_unreachable ();
9003 : : }
9004 : 12 : gimple_seq *lseq = seq;
9005 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1867;
9006 : 12 : {
9007 : 12 : res_op->set_op (MULT_EXPR, type, 2);
9008 : 12 : {
9009 : 12 : tree _o1[1], _r1;
9010 : 12 : _o1[0] = x;
9011 : 12 : gimple_match_op tem_op (res_op->cond.any_else (), CFN_BUILT_IN_LOG10F, TREE_TYPE (_o1[0]), _o1[0]);
9012 : 12 : tem_op.resimplify (lseq, valueize);
9013 : 12 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
9014 : 12 : if (!_r1) goto next_after_fail1867;
9015 : 12 : res_op->ops[0] = _r1;
9016 : : }
9017 : 12 : res_op->ops[1] = captures[0];
9018 : 12 : res_op->resimplify (lseq, valueize);
9019 : 12 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1010, __FILE__, __LINE__, true);
9020 : 12 : return true;
9021 : : }
9022 : : next_after_fail1867:;
9023 : : }
9024 : : }
9025 : : }
9026 : : }
9027 : : }
9028 : : break;
9029 : : default:;
9030 : : }
9031 : : }
9032 : : break;
9033 : : default:;
9034 : : }
9035 : : return false;
9036 : : }
9037 : :
9038 : : bool
9039 : 455 : gimple_simplify_CFN_BUILT_IN_EXP10 (gimple_match_op *res_op, gimple_seq *seq,
9040 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
9041 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
9042 : : {
9043 : 455 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
9044 : 455 : switch (TREE_CODE (_p0))
9045 : : {
9046 : 394 : case SSA_NAME:
9047 : 394 : if (gimple *_d1 = get_def (valueize, _p0))
9048 : : {
9049 : 255 : if (gcall *_c1 = dyn_cast <gcall *> (_d1))
9050 : 27 : switch (gimple_call_combined_fn (_c1))
9051 : : {
9052 : 6 : case CFN_BUILT_IN_LOG10:
9053 : 6 : if (gimple_call_num_args (_c1) == 1)
9054 : : {
9055 : 6 : tree _q20 = gimple_call_arg (_c1, 0);
9056 : 6 : _q20 = do_valueize (valueize, _q20);
9057 : 6 : {
9058 : 6 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9059 : 6 : if (flag_unsafe_math_optimizations
9060 : : )
9061 : : {
9062 : 6 : gimple_seq *lseq = seq;
9063 : 6 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1893;
9064 : 6 : {
9065 : 6 : tree tem;
9066 : 6 : tem = captures[0];
9067 : 6 : res_op->set_value (tem);
9068 : 6 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1012, __FILE__, __LINE__, true);
9069 : 6 : return true;
9070 : : }
9071 : 0 : next_after_fail1893:;
9072 : : }
9073 : : }
9074 : : }
9075 : : break;
9076 : : default:;
9077 : : }
9078 : : }
9079 : : break;
9080 : : default:;
9081 : : }
9082 : : return false;
9083 : : }
9084 : :
9085 : : bool
9086 : 560 : gimple_simplify_CFN_BUILT_IN_POW10L (gimple_match_op *res_op, gimple_seq *seq,
9087 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
9088 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
9089 : : {
9090 : 560 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
9091 : 560 : switch (TREE_CODE (_p0))
9092 : : {
9093 : 480 : case SSA_NAME:
9094 : 480 : if (gimple *_d1 = get_def (valueize, _p0))
9095 : : {
9096 : 350 : if (gcall *_c1 = dyn_cast <gcall *> (_d1))
9097 : 6 : switch (gimple_call_combined_fn (_c1))
9098 : : {
9099 : 6 : case CFN_BUILT_IN_LOG10L:
9100 : 6 : if (gimple_call_num_args (_c1) == 1)
9101 : : {
9102 : 6 : tree _q20 = gimple_call_arg (_c1, 0);
9103 : 6 : _q20 = do_valueize (valueize, _q20);
9104 : 6 : {
9105 : 6 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9106 : 6 : if (flag_unsafe_math_optimizations
9107 : : )
9108 : : {
9109 : 6 : gimple_seq *lseq = seq;
9110 : 6 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1898;
9111 : 6 : {
9112 : 6 : tree tem;
9113 : 6 : tem = captures[0];
9114 : 6 : res_op->set_value (tem);
9115 : 6 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1012, __FILE__, __LINE__, true);
9116 : 6 : return true;
9117 : : }
9118 : 0 : next_after_fail1898:;
9119 : : }
9120 : : }
9121 : : }
9122 : : break;
9123 : : default:;
9124 : : }
9125 : : }
9126 : : break;
9127 : : default:;
9128 : : }
9129 : : return false;
9130 : : }
9131 : :
9132 : : bool
9133 : 385 : gimple_simplify_CFN_BUILT_IN_CBRT (gimple_match_op *res_op, gimple_seq *seq,
9134 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
9135 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
9136 : : {
9137 : 385 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
9138 : 385 : switch (TREE_CODE (_p0))
9139 : : {
9140 : 351 : case SSA_NAME:
9141 : 351 : if (gimple *_d1 = get_def (valueize, _p0))
9142 : : {
9143 : 241 : if (gcall *_c1 = dyn_cast <gcall *> (_d1))
9144 : 84 : switch (gimple_call_combined_fn (_c1))
9145 : : {
9146 : 12 : case CFN_BUILT_IN_EXP:
9147 : 12 : if (gimple_call_num_args (_c1) == 1)
9148 : : {
9149 : 12 : tree _q20 = gimple_call_arg (_c1, 0);
9150 : 12 : _q20 = do_valueize (valueize, _q20);
9151 : 12 : {
9152 : 12 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9153 : 12 : if (flag_unsafe_math_optimizations
9154 : : )
9155 : : {
9156 : 12 : gimple_seq *lseq = seq;
9157 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1932;
9158 : 12 : {
9159 : 12 : res_op->set_op (CFN_BUILT_IN_EXP, type, 1);
9160 : 12 : {
9161 : 12 : tree _o1[2], _r1;
9162 : 12 : _o1[0] = captures[0];
9163 : 12 : _o1[1] = build_real_truncate (type, dconst_third ());
9164 : 12 : gimple_match_op tem_op (res_op->cond.any_else (), MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
9165 : 12 : tem_op.resimplify (lseq, valueize);
9166 : 12 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
9167 : 12 : if (!_r1) goto next_after_fail1932;
9168 : 6 : res_op->ops[0] = _r1;
9169 : : }
9170 : 6 : res_op->resimplify (lseq, valueize);
9171 : 6 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1018, __FILE__, __LINE__, true);
9172 : 6 : return true;
9173 : : }
9174 : : next_after_fail1932:;
9175 : : }
9176 : : }
9177 : : }
9178 : : break;
9179 : 12 : case CFN_BUILT_IN_POW:
9180 : 12 : if (gimple_call_num_args (_c1) == 2)
9181 : : {
9182 : 12 : tree _q20 = gimple_call_arg (_c1, 0);
9183 : 12 : _q20 = do_valueize (valueize, _q20);
9184 : 12 : tree _q21 = gimple_call_arg (_c1, 1);
9185 : 12 : _q21 = do_valueize (valueize, _q21);
9186 : 12 : if (tree_expr_nonnegative_p (_q20))
9187 : : {
9188 : 12 : {
9189 : 12 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
9190 : 12 : if (flag_unsafe_math_optimizations && canonicalize_math_p ()
9191 : : )
9192 : : {
9193 : 12 : gimple_seq *lseq = seq;
9194 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1933;
9195 : 12 : {
9196 : 12 : res_op->set_op (CFN_BUILT_IN_POW, type, 2);
9197 : 12 : res_op->ops[0] = captures[0];
9198 : 12 : {
9199 : 12 : tree _o1[2], _r1;
9200 : 12 : _o1[0] = captures[1];
9201 : 12 : _o1[1] = build_real_truncate (type, dconst_third ());
9202 : 12 : gimple_match_op tem_op (res_op->cond.any_else (), MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
9203 : 12 : tem_op.resimplify (lseq, valueize);
9204 : 12 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
9205 : 12 : if (!_r1) goto next_after_fail1933;
9206 : 6 : res_op->ops[1] = _r1;
9207 : : }
9208 : 6 : res_op->resimplify (lseq, valueize);
9209 : 6 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1019, __FILE__, __LINE__, true);
9210 : 6 : return true;
9211 : : }
9212 : 6 : next_after_fail1933:;
9213 : : }
9214 : : }
9215 : : }
9216 : : }
9217 : : break;
9218 : 12 : case CFN_BUILT_IN_CBRT:
9219 : 12 : if (gimple_call_num_args (_c1) == 1)
9220 : : {
9221 : 12 : tree _q20 = gimple_call_arg (_c1, 0);
9222 : 12 : _q20 = do_valueize (valueize, _q20);
9223 : 12 : if (tree_expr_nonnegative_p (_q20))
9224 : : {
9225 : 12 : {
9226 : 12 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9227 : 12 : if (flag_unsafe_math_optimizations && canonicalize_math_p ()
9228 : : )
9229 : : {
9230 : 12 : gimple_seq *lseq = seq;
9231 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1934;
9232 : 12 : {
9233 : 12 : res_op->set_op (CFN_BUILT_IN_POW, type, 2);
9234 : 12 : res_op->ops[0] = captures[0];
9235 : 12 : res_op->ops[1] = build_real_truncate (type, dconst_ninth ());
9236 : 12 : res_op->resimplify (lseq, valueize);
9237 : 12 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1020, __FILE__, __LINE__, true);
9238 : 12 : return true;
9239 : : }
9240 : 0 : next_after_fail1934:;
9241 : : }
9242 : : }
9243 : : }
9244 : : }
9245 : : break;
9246 : 12 : case CFN_BUILT_IN_EXP2:
9247 : 12 : if (gimple_call_num_args (_c1) == 1)
9248 : : {
9249 : 12 : tree _q20 = gimple_call_arg (_c1, 0);
9250 : 12 : _q20 = do_valueize (valueize, _q20);
9251 : 12 : {
9252 : 12 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9253 : 12 : if (flag_unsafe_math_optimizations
9254 : : )
9255 : : {
9256 : 12 : gimple_seq *lseq = seq;
9257 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1935;
9258 : 12 : {
9259 : 12 : res_op->set_op (CFN_BUILT_IN_EXP2, type, 1);
9260 : 12 : {
9261 : 12 : tree _o1[2], _r1;
9262 : 12 : _o1[0] = captures[0];
9263 : 12 : _o1[1] = build_real_truncate (type, dconst_third ());
9264 : 12 : gimple_match_op tem_op (res_op->cond.any_else (), MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
9265 : 12 : tem_op.resimplify (lseq, valueize);
9266 : 12 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
9267 : 12 : if (!_r1) goto next_after_fail1935;
9268 : 6 : res_op->ops[0] = _r1;
9269 : : }
9270 : 6 : res_op->resimplify (lseq, valueize);
9271 : 6 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1018, __FILE__, __LINE__, true);
9272 : 6 : return true;
9273 : : }
9274 : : next_after_fail1935:;
9275 : : }
9276 : : }
9277 : : }
9278 : : break;
9279 : 12 : case CFN_BUILT_IN_SQRT:
9280 : 12 : if (gimple_call_num_args (_c1) == 1)
9281 : : {
9282 : 12 : tree _q20 = gimple_call_arg (_c1, 0);
9283 : 12 : _q20 = do_valueize (valueize, _q20);
9284 : 12 : {
9285 : 12 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9286 : 12 : if (flag_unsafe_math_optimizations && canonicalize_math_p ()
9287 : : )
9288 : : {
9289 : 12 : gimple_seq *lseq = seq;
9290 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1936;
9291 : 12 : {
9292 : 12 : res_op->set_op (CFN_BUILT_IN_POW, type, 2);
9293 : 12 : res_op->ops[0] = captures[0];
9294 : 12 : res_op->ops[1] = build_real_truncate (type, dconst_sixth ());
9295 : 12 : res_op->resimplify (lseq, valueize);
9296 : 12 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1017, __FILE__, __LINE__, true);
9297 : 12 : return true;
9298 : : }
9299 : 0 : next_after_fail1936:;
9300 : : }
9301 : : }
9302 : : }
9303 : : break;
9304 : 12 : case CFN_BUILT_IN_EXP10:
9305 : 12 : if (gimple_call_num_args (_c1) == 1)
9306 : : {
9307 : 12 : tree _q20 = gimple_call_arg (_c1, 0);
9308 : 12 : _q20 = do_valueize (valueize, _q20);
9309 : 12 : {
9310 : 12 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9311 : 12 : if (flag_unsafe_math_optimizations
9312 : : )
9313 : : {
9314 : 12 : gimple_seq *lseq = seq;
9315 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1937;
9316 : 12 : {
9317 : 12 : res_op->set_op (CFN_BUILT_IN_EXP10, type, 1);
9318 : 12 : {
9319 : 12 : tree _o1[2], _r1;
9320 : 12 : _o1[0] = captures[0];
9321 : 12 : _o1[1] = build_real_truncate (type, dconst_third ());
9322 : 12 : gimple_match_op tem_op (res_op->cond.any_else (), MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
9323 : 12 : tem_op.resimplify (lseq, valueize);
9324 : 12 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
9325 : 12 : if (!_r1) goto next_after_fail1937;
9326 : 6 : res_op->ops[0] = _r1;
9327 : : }
9328 : 6 : res_op->resimplify (lseq, valueize);
9329 : 6 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1018, __FILE__, __LINE__, true);
9330 : 6 : return true;
9331 : : }
9332 : : next_after_fail1937:;
9333 : : }
9334 : : }
9335 : : }
9336 : : break;
9337 : 12 : case CFN_BUILT_IN_POW10:
9338 : 12 : if (gimple_call_num_args (_c1) == 1)
9339 : : {
9340 : 12 : tree _q20 = gimple_call_arg (_c1, 0);
9341 : 12 : _q20 = do_valueize (valueize, _q20);
9342 : 12 : {
9343 : 12 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9344 : 12 : if (flag_unsafe_math_optimizations
9345 : : )
9346 : : {
9347 : 12 : gimple_seq *lseq = seq;
9348 : 12 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1938;
9349 : 12 : {
9350 : 12 : res_op->set_op (CFN_BUILT_IN_POW10, type, 1);
9351 : 12 : {
9352 : 12 : tree _o1[2], _r1;
9353 : 12 : _o1[0] = captures[0];
9354 : 12 : _o1[1] = build_real_truncate (type, dconst_third ());
9355 : 12 : gimple_match_op tem_op (res_op->cond.any_else (), MULT_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
9356 : 12 : tem_op.resimplify (lseq, valueize);
9357 : 12 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
9358 : 12 : if (!_r1) goto next_after_fail1938;
9359 : 6 : res_op->ops[0] = _r1;
9360 : : }
9361 : 6 : res_op->resimplify (lseq, valueize);
9362 : 6 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1018, __FILE__, __LINE__, true);
9363 : 6 : return true;
9364 : : }
9365 : : next_after_fail1938:;
9366 : : }
9367 : : }
9368 : : }
9369 : : break;
9370 : : default:;
9371 : : }
9372 : : }
9373 : : break;
9374 : : default:;
9375 : : }
9376 : : return false;
9377 : : }
9378 : :
9379 : : bool
9380 : 154 : gimple_simplify_CFN_BUILT_IN_TRUNCF16 (gimple_match_op *res_op, gimple_seq *seq,
9381 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
9382 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
9383 : : {
9384 : 154 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
9385 : 154 : switch (TREE_CODE (_p0))
9386 : : {
9387 : 152 : case SSA_NAME:
9388 : 152 : if (gimple *_d1 = get_def (valueize, _p0))
9389 : : {
9390 : 100 : if (gcall *_c1 = dyn_cast <gcall *> (_d1))
9391 : 0 : switch (gimple_call_combined_fn (_c1))
9392 : : {
9393 : 0 : case CFN_BUILT_IN_TRUNCF16:
9394 : 0 : if (gimple_call_num_args (_c1) == 1)
9395 : : {
9396 : 0 : tree _q20 = gimple_call_arg (_c1, 0);
9397 : 0 : _q20 = do_valueize (valueize, _q20);
9398 : 0 : {
9399 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9400 : 0 : if (gimple_simplify_647 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_TRUNCF16))
9401 : 0 : return true;
9402 : : }
9403 : : }
9404 : : break;
9405 : : default:;
9406 : : }
9407 : : }
9408 : : break;
9409 : 154 : default:;
9410 : : }
9411 : 154 : if (integer_valued_real_p (_p0))
9412 : : {
9413 : 0 : {
9414 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
9415 : 0 : if (gimple_simplify_648 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_TRUNCF16))
9416 : 0 : return true;
9417 : : }
9418 : : }
9419 : : return false;
9420 : : }
9421 : :
9422 : : bool
9423 : 0 : gimple_simplify_CFN_BUILT_IN_TRUNCF128X (gimple_match_op *res_op, gimple_seq *seq,
9424 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
9425 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
9426 : : {
9427 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
9428 : 0 : switch (TREE_CODE (_p0))
9429 : : {
9430 : 0 : case SSA_NAME:
9431 : 0 : if (gimple *_d1 = get_def (valueize, _p0))
9432 : : {
9433 : 0 : if (gcall *_c1 = dyn_cast <gcall *> (_d1))
9434 : 0 : switch (gimple_call_combined_fn (_c1))
9435 : : {
9436 : 0 : case CFN_BUILT_IN_TRUNCF128X:
9437 : 0 : if (gimple_call_num_args (_c1) == 1)
9438 : : {
9439 : 0 : tree _q20 = gimple_call_arg (_c1, 0);
9440 : 0 : _q20 = do_valueize (valueize, _q20);
9441 : 0 : {
9442 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9443 : 0 : if (gimple_simplify_647 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_TRUNCF128X))
9444 : 0 : return true;
9445 : : }
9446 : : }
9447 : : break;
9448 : : default:;
9449 : : }
9450 : : }
9451 : : break;
9452 : 0 : default:;
9453 : : }
9454 : 0 : if (integer_valued_real_p (_p0))
9455 : : {
9456 : 0 : {
9457 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
9458 : 0 : if (gimple_simplify_648 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_TRUNCF128X))
9459 : 0 : return true;
9460 : : }
9461 : : }
9462 : : return false;
9463 : : }
9464 : :
9465 : : bool
9466 : 146 : gimple_simplify_CFN_BUILT_IN_FLOORF128 (gimple_match_op *res_op, gimple_seq *seq,
9467 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
9468 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
9469 : : {
9470 : 146 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
9471 : 146 : switch (TREE_CODE (_p0))
9472 : : {
9473 : 144 : case SSA_NAME:
9474 : 144 : if (gimple *_d1 = get_def (valueize, _p0))
9475 : : {
9476 : 94 : if (gcall *_c1 = dyn_cast <gcall *> (_d1))
9477 : 0 : switch (gimple_call_combined_fn (_c1))
9478 : : {
9479 : 0 : case CFN_BUILT_IN_FLOORF128:
9480 : 0 : if (gimple_call_num_args (_c1) == 1)
9481 : : {
9482 : 0 : tree _q20 = gimple_call_arg (_c1, 0);
9483 : 0 : _q20 = do_valueize (valueize, _q20);
9484 : 0 : {
9485 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9486 : 0 : if (gimple_simplify_647 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_FLOORF128))
9487 : 0 : return true;
9488 : : }
9489 : : }
9490 : : break;
9491 : : default:;
9492 : : }
9493 : : }
9494 : : break;
9495 : 146 : default:;
9496 : : }
9497 : 146 : if (integer_valued_real_p (_p0))
9498 : : {
9499 : 0 : {
9500 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
9501 : 0 : if (gimple_simplify_648 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_FLOORF128))
9502 : 0 : return true;
9503 : : }
9504 : : }
9505 : 146 : if (tree_expr_nonnegative_p (_p0))
9506 : : {
9507 : 0 : {
9508 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
9509 : 0 : if (gimple_simplify_651 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_FLOORF128, CFN_BUILT_IN_TRUNCF128))
9510 : 0 : return true;
9511 : : }
9512 : : }
9513 : : return false;
9514 : : }
9515 : :
9516 : : bool
9517 : 887 : gimple_simplify_CFN_BUILT_IN_CEILL (gimple_match_op *res_op, gimple_seq *seq,
9518 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
9519 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
9520 : : {
9521 : 887 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
9522 : 887 : switch (TREE_CODE (_p0))
9523 : : {
9524 : 848 : case SSA_NAME:
9525 : 848 : if (gimple *_d1 = get_def (valueize, _p0))
9526 : : {
9527 : 498 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
9528 : 534 : switch (gimple_assign_rhs_code (_a1))
9529 : : {
9530 : 122 : CASE_CONVERT:
9531 : 122 : {
9532 : 122 : tree _q20 = gimple_assign_rhs1 (_a1);
9533 : 122 : _q20 = do_valueize (valueize, _q20);
9534 : 122 : if (gimple_double_value_p (_q20, valueize))
9535 : : {
9536 : 48 : {
9537 : 48 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9538 : 48 : if (gimple_simplify_650 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_CEILL, CFN_BUILT_IN_CEIL))
9539 : 24 : return true;
9540 : : }
9541 : : }
9542 : 98 : if (gimple_float_value_p (_q20, valueize))
9543 : : {
9544 : 72 : {
9545 : 72 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9546 : 72 : if (gimple_simplify_649 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_CEILL, CFN_BUILT_IN_CEILF))
9547 : 36 : return true;
9548 : : }
9549 : : }
9550 : : break;
9551 : : }
9552 : : default:;
9553 : : }
9554 : 161 : else if (gcall *_c1 = dyn_cast <gcall *> (_d1))
9555 : 0 : switch (gimple_call_combined_fn (_c1))
9556 : : {
9557 : 0 : case CFN_BUILT_IN_CEILL:
9558 : 0 : if (gimple_call_num_args (_c1) == 1)
9559 : : {
9560 : 0 : tree _q20 = gimple_call_arg (_c1, 0);
9561 : 0 : _q20 = do_valueize (valueize, _q20);
9562 : 0 : {
9563 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9564 : 0 : if (gimple_simplify_647 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_CEILL))
9565 : 0 : return true;
9566 : : }
9567 : : }
9568 : : break;
9569 : : default:;
9570 : : }
9571 : : }
9572 : : break;
9573 : 827 : default:;
9574 : : }
9575 : 827 : if (integer_valued_real_p (_p0))
9576 : : {
9577 : 70 : {
9578 : 70 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
9579 : 70 : if (gimple_simplify_648 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_CEILL))
9580 : 70 : return true;
9581 : : }
9582 : : }
9583 : : return false;
9584 : : }
9585 : :
9586 : : bool
9587 : 823 : gimple_simplify_CFN_BUILT_IN_ROUNDL (gimple_match_op *res_op, gimple_seq *seq,
9588 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
9589 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
9590 : : {
9591 : 823 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
9592 : 823 : switch (TREE_CODE (_p0))
9593 : : {
9594 : 794 : case SSA_NAME:
9595 : 794 : if (gimple *_d1 = get_def (valueize, _p0))
9596 : : {
9597 : 505 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
9598 : 586 : switch (gimple_assign_rhs_code (_a1))
9599 : : {
9600 : 108 : CASE_CONVERT:
9601 : 108 : {
9602 : 108 : tree _q20 = gimple_assign_rhs1 (_a1);
9603 : 108 : _q20 = do_valueize (valueize, _q20);
9604 : 108 : if (gimple_double_value_p (_q20, valueize))
9605 : : {
9606 : 36 : {
9607 : 36 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9608 : 36 : if (gimple_simplify_650 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_ROUNDL, CFN_BUILT_IN_ROUND))
9609 : 18 : return true;
9610 : : }
9611 : : }
9612 : 90 : if (gimple_float_value_p (_q20, valueize))
9613 : : {
9614 : 72 : {
9615 : 72 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9616 : 72 : if (gimple_simplify_649 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_ROUNDL, CFN_BUILT_IN_ROUNDF))
9617 : 36 : return true;
9618 : : }
9619 : : }
9620 : : break;
9621 : : }
9622 : : default:;
9623 : : }
9624 : 149 : else if (gcall *_c1 = dyn_cast <gcall *> (_d1))
9625 : 0 : switch (gimple_call_combined_fn (_c1))
9626 : : {
9627 : 0 : case CFN_BUILT_IN_ROUNDL:
9628 : 0 : if (gimple_call_num_args (_c1) == 1)
9629 : : {
9630 : 0 : tree _q20 = gimple_call_arg (_c1, 0);
9631 : 0 : _q20 = do_valueize (valueize, _q20);
9632 : 0 : {
9633 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9634 : 0 : if (gimple_simplify_647 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_ROUNDL))
9635 : 0 : return true;
9636 : : }
9637 : : }
9638 : : break;
9639 : : default:;
9640 : : }
9641 : : }
9642 : : break;
9643 : 769 : default:;
9644 : : }
9645 : 769 : if (integer_valued_real_p (_p0))
9646 : : {
9647 : 7 : {
9648 : 7 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
9649 : 7 : if (gimple_simplify_648 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_ROUNDL))
9650 : 7 : return true;
9651 : : }
9652 : : }
9653 : : return false;
9654 : : }
9655 : :
9656 : : bool
9657 : 0 : gimple_simplify_CFN_BUILT_IN_NEARBYINTF64 (gimple_match_op *res_op, gimple_seq *seq,
9658 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
9659 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
9660 : : {
9661 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
9662 : 0 : switch (TREE_CODE (_p0))
9663 : : {
9664 : 0 : case SSA_NAME:
9665 : 0 : if (gimple *_d1 = get_def (valueize, _p0))
9666 : : {
9667 : 0 : if (gcall *_c1 = dyn_cast <gcall *> (_d1))
9668 : 0 : switch (gimple_call_combined_fn (_c1))
9669 : : {
9670 : 0 : case CFN_BUILT_IN_NEARBYINTF64:
9671 : 0 : if (gimple_call_num_args (_c1) == 1)
9672 : : {
9673 : 0 : tree _q20 = gimple_call_arg (_c1, 0);
9674 : 0 : _q20 = do_valueize (valueize, _q20);
9675 : 0 : {
9676 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9677 : 0 : if (gimple_simplify_647 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_NEARBYINTF64))
9678 : 0 : return true;
9679 : : }
9680 : : }
9681 : : break;
9682 : : default:;
9683 : : }
9684 : : }
9685 : : break;
9686 : 0 : default:;
9687 : : }
9688 : 0 : if (integer_valued_real_p (_p0))
9689 : : {
9690 : 0 : {
9691 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
9692 : 0 : if (gimple_simplify_648 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_NEARBYINTF64))
9693 : 0 : return true;
9694 : : }
9695 : : }
9696 : : return false;
9697 : : }
9698 : :
9699 : : bool
9700 : 1590 : gimple_simplify_CFN_BUILT_IN_RINT (gimple_match_op *res_op, gimple_seq *seq,
9701 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
9702 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
9703 : : {
9704 : 1590 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
9705 : 1590 : switch (TREE_CODE (_p0))
9706 : : {
9707 : 1166 : case SSA_NAME:
9708 : 1166 : if (gimple *_d1 = get_def (valueize, _p0))
9709 : : {
9710 : 704 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
9711 : 634 : switch (gimple_assign_rhs_code (_a1))
9712 : : {
9713 : 104 : CASE_CONVERT:
9714 : 104 : {
9715 : 104 : tree _q20 = gimple_assign_rhs1 (_a1);
9716 : 104 : _q20 = do_valueize (valueize, _q20);
9717 : 104 : if (gimple_float_value_p (_q20, valueize))
9718 : : {
9719 : 60 : {
9720 : 60 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9721 : 60 : if (gimple_simplify_649 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_RINT, CFN_BUILT_IN_RINTF))
9722 : 30 : return true;
9723 : : }
9724 : : }
9725 : : break;
9726 : : }
9727 : : default:;
9728 : : }
9729 : 326 : else if (gcall *_c1 = dyn_cast <gcall *> (_d1))
9730 : 0 : switch (gimple_call_combined_fn (_c1))
9731 : : {
9732 : 0 : case CFN_BUILT_IN_RINT:
9733 : 0 : if (gimple_call_num_args (_c1) == 1)
9734 : : {
9735 : 0 : tree _q20 = gimple_call_arg (_c1, 0);
9736 : 0 : _q20 = do_valueize (valueize, _q20);
9737 : 0 : {
9738 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9739 : 0 : if (gimple_simplify_647 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_RINT))
9740 : 0 : return true;
9741 : : }
9742 : : }
9743 : : break;
9744 : : default:;
9745 : : }
9746 : : }
9747 : : break;
9748 : 1560 : default:;
9749 : : }
9750 : 1560 : if (integer_valued_real_p (_p0))
9751 : : {
9752 : 29 : {
9753 : 29 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
9754 : 29 : if (gimple_simplify_648 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_RINT))
9755 : 29 : return true;
9756 : : }
9757 : : }
9758 : : return false;
9759 : : }
9760 : :
9761 : : bool
9762 : 235 : gimple_simplify_CFN_RINT (gimple_match_op *res_op, gimple_seq *seq,
9763 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
9764 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
9765 : : {
9766 : 235 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
9767 : 235 : switch (TREE_CODE (_p0))
9768 : : {
9769 : 235 : case SSA_NAME:
9770 : 235 : if (gimple *_d1 = get_def (valueize, _p0))
9771 : : {
9772 : 135 : if (gcall *_c1 = dyn_cast <gcall *> (_d1))
9773 : 0 : switch (gimple_call_combined_fn (_c1))
9774 : : {
9775 : 0 : case CFN_RINT:
9776 : 0 : if (gimple_call_num_args (_c1) == 1)
9777 : : {
9778 : 0 : tree _q20 = gimple_call_arg (_c1, 0);
9779 : 0 : _q20 = do_valueize (valueize, _q20);
9780 : 0 : {
9781 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9782 : 0 : if (gimple_simplify_647 (res_op, seq, valueize, type, captures, CFN_RINT))
9783 : 0 : return true;
9784 : : }
9785 : : }
9786 : : break;
9787 : : default:;
9788 : : }
9789 : : }
9790 : : break;
9791 : 235 : default:;
9792 : : }
9793 : 235 : if (integer_valued_real_p (_p0))
9794 : : {
9795 : 0 : {
9796 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
9797 : 0 : if (gimple_simplify_648 (res_op, seq, valueize, type, captures, CFN_RINT))
9798 : 0 : return true;
9799 : : }
9800 : : }
9801 : : return false;
9802 : : }
9803 : :
9804 : : bool
9805 : 1 : gimple_simplify_CFN_BUILT_IN_ICEILL (gimple_match_op *res_op, gimple_seq *seq,
9806 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
9807 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
9808 : : {
9809 : 1 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
9810 : 1 : switch (TREE_CODE (_p0))
9811 : : {
9812 : 0 : case SSA_NAME:
9813 : 0 : if (gimple *_d1 = get_def (valueize, _p0))
9814 : : {
9815 : 0 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
9816 : 0 : switch (gimple_assign_rhs_code (_a1))
9817 : : {
9818 : 0 : CASE_CONVERT:
9819 : 0 : {
9820 : 0 : tree _q20 = gimple_assign_rhs1 (_a1);
9821 : 0 : _q20 = do_valueize (valueize, _q20);
9822 : 0 : if (gimple_double_value_p (_q20, valueize))
9823 : : {
9824 : 0 : {
9825 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9826 : 0 : if (gimple_simplify_654 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_ICEILL, CFN_BUILT_IN_ICEIL))
9827 : 0 : return true;
9828 : : }
9829 : : }
9830 : 0 : if (gimple_float_value_p (_q20, valueize))
9831 : : {
9832 : 0 : {
9833 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9834 : 0 : if (gimple_simplify_655 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_ICEILL, CFN_BUILT_IN_ICEILF))
9835 : 0 : return true;
9836 : : }
9837 : : }
9838 : : break;
9839 : : }
9840 : : default:;
9841 : : }
9842 : : }
9843 : : break;
9844 : 1 : default:;
9845 : : }
9846 : 1 : if (integer_valued_real_p (_p0))
9847 : : {
9848 : 0 : {
9849 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
9850 : 0 : if (gimple_simplify_657 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_ICEILL))
9851 : 0 : return true;
9852 : : }
9853 : : }
9854 : 1 : {
9855 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
9856 : 1 : if (gimple_simplify_658 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_ICEILL, CFN_BUILT_IN_LCEILL, CFN_BUILT_IN_LLCEILL))
9857 : 0 : return true;
9858 : : }
9859 : 1 : return false;
9860 : : }
9861 : :
9862 : : bool
9863 : 18 : gimple_simplify_CFN_BUILT_IN_IRINTL (gimple_match_op *res_op, gimple_seq *seq,
9864 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
9865 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
9866 : : {
9867 : 18 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
9868 : 18 : switch (TREE_CODE (_p0))
9869 : : {
9870 : 16 : case SSA_NAME:
9871 : 16 : if (gimple *_d1 = get_def (valueize, _p0))
9872 : : {
9873 : 11 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
9874 : 0 : switch (gimple_assign_rhs_code (_a1))
9875 : : {
9876 : 0 : CASE_CONVERT:
9877 : 0 : {
9878 : 0 : tree _q20 = gimple_assign_rhs1 (_a1);
9879 : 0 : _q20 = do_valueize (valueize, _q20);
9880 : 0 : if (gimple_double_value_p (_q20, valueize))
9881 : : {
9882 : 0 : {
9883 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9884 : 0 : if (gimple_simplify_654 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_IRINTL, CFN_BUILT_IN_IRINT))
9885 : 0 : return true;
9886 : : }
9887 : : }
9888 : 0 : if (gimple_float_value_p (_q20, valueize))
9889 : : {
9890 : 0 : {
9891 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9892 : 0 : if (gimple_simplify_655 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_IRINTL, CFN_BUILT_IN_IRINTF))
9893 : 0 : return true;
9894 : : }
9895 : : }
9896 : : break;
9897 : : }
9898 : : default:;
9899 : : }
9900 : : }
9901 : : break;
9902 : 18 : default:;
9903 : : }
9904 : 18 : if (integer_valued_real_p (_p0))
9905 : : {
9906 : 0 : {
9907 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
9908 : 0 : if (gimple_simplify_660 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_IRINTL))
9909 : 0 : return true;
9910 : : }
9911 : : }
9912 : 18 : {
9913 : 18 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
9914 : 18 : if (gimple_simplify_658 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_IRINTL, CFN_BUILT_IN_LRINTL, CFN_BUILT_IN_LLRINTL))
9915 : 0 : return true;
9916 : : }
9917 : 18 : return false;
9918 : : }
9919 : :
9920 : : bool
9921 : 124 : gimple_simplify_CFN_BUILT_IN_LLCEIL (gimple_match_op *res_op, gimple_seq *seq,
9922 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
9923 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
9924 : : {
9925 : 124 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
9926 : 124 : switch (TREE_CODE (_p0))
9927 : : {
9928 : 68 : case SSA_NAME:
9929 : 68 : if (gimple *_d1 = get_def (valueize, _p0))
9930 : : {
9931 : 0 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
9932 : 0 : switch (gimple_assign_rhs_code (_a1))
9933 : : {
9934 : 0 : CASE_CONVERT:
9935 : 0 : {
9936 : 0 : tree _q20 = gimple_assign_rhs1 (_a1);
9937 : 0 : _q20 = do_valueize (valueize, _q20);
9938 : 0 : if (gimple_float_value_p (_q20, valueize))
9939 : : {
9940 : 0 : {
9941 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
9942 : 0 : if (gimple_simplify_655 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_LLCEIL, CFN_BUILT_IN_LLCEILF))
9943 : 0 : return true;
9944 : : }
9945 : : }
9946 : : break;
9947 : : }
9948 : : default:;
9949 : : }
9950 : : }
9951 : : break;
9952 : 124 : default:;
9953 : : }
9954 : 124 : if (integer_valued_real_p (_p0))
9955 : : {
9956 : 20 : {
9957 : 20 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
9958 : 20 : if (gimple_simplify_657 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_LLCEIL))
9959 : 20 : return true;
9960 : : }
9961 : : }
9962 : 104 : {
9963 : 104 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
9964 : 104 : if (gimple_simplify_659 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_ICEIL, CFN_BUILT_IN_LCEIL, CFN_BUILT_IN_LLCEIL))
9965 : 104 : return true;
9966 : : }
9967 : 0 : return false;
9968 : : }
9969 : :
9970 : : bool
9971 : 40 : gimple_simplify_CFN_IFLOOR (gimple_match_op *res_op, gimple_seq *seq,
9972 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
9973 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
9974 : : {
9975 : 40 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
9976 : 40 : if (tree_expr_nonnegative_p (_p0))
9977 : : {
9978 : 0 : {
9979 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
9980 : 0 : if (gimple_simplify_656 (res_op, seq, valueize, type, captures, CFN_IFLOOR))
9981 : 0 : return true;
9982 : : }
9983 : : }
9984 : 40 : if (integer_valued_real_p (_p0))
9985 : : {
9986 : 0 : {
9987 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
9988 : 0 : if (gimple_simplify_657 (res_op, seq, valueize, type, captures, CFN_IFLOOR))
9989 : 0 : return true;
9990 : : }
9991 : : }
9992 : 40 : {
9993 : 40 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
9994 : 40 : if (gimple_simplify_658 (res_op, seq, valueize, type, captures, CFN_IFLOOR, CFN_LFLOOR, CFN_LLFLOOR))
9995 : 0 : return true;
9996 : : }
9997 : 40 : return false;
9998 : : }
9999 : :
10000 : : bool
10001 : 183 : gimple_simplify_CFN_BUILT_IN_ICEILF (gimple_match_op *res_op, gimple_seq *seq,
10002 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
10003 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
10004 : : {
10005 : 183 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
10006 : 183 : if (integer_valued_real_p (_p0))
10007 : : {
10008 : 0 : {
10009 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
10010 : 0 : if (gimple_simplify_657 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_ICEILF))
10011 : 0 : return true;
10012 : : }
10013 : : }
10014 : 183 : {
10015 : 183 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
10016 : 183 : if (gimple_simplify_658 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_ICEILF, CFN_BUILT_IN_LCEILF, CFN_BUILT_IN_LLCEILF))
10017 : 0 : return true;
10018 : : }
10019 : 183 : return false;
10020 : : }
10021 : :
10022 : : bool
10023 : 0 : gimple_simplify_CFN_LROUND (gimple_match_op *res_op, gimple_seq *seq,
10024 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
10025 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
10026 : : {
10027 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
10028 : 0 : if (integer_valued_real_p (_p0))
10029 : : {
10030 : 0 : {
10031 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
10032 : 0 : if (gimple_simplify_657 (res_op, seq, valueize, type, captures, CFN_LROUND))
10033 : 0 : return true;
10034 : : }
10035 : : }
10036 : : return false;
10037 : : }
10038 : :
10039 : : bool
10040 : 0 : gimple_simplify_CFN_LRINT (gimple_match_op *res_op, gimple_seq *seq,
10041 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
10042 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
10043 : : {
10044 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
10045 : 0 : if (integer_valued_real_p (_p0))
10046 : : {
10047 : 0 : {
10048 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
10049 : 0 : if (gimple_simplify_660 (res_op, seq, valueize, type, captures, CFN_LRINT))
10050 : 0 : return true;
10051 : : }
10052 : : }
10053 : : return false;
10054 : : }
10055 : :
10056 : : bool
10057 : 813 : gimple_simplify_CFN_BUILT_IN_CPROJL (gimple_match_op *res_op, gimple_seq *seq,
10058 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
10059 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
10060 : : {
10061 : 813 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
10062 : 813 : {
10063 : 813 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
10064 : 813 : if (!HONOR_INFINITIES (type)
10065 : : )
10066 : : {
10067 : 21 : gimple_seq *lseq = seq;
10068 : 21 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1955;
10069 : 21 : {
10070 : 21 : tree tem;
10071 : 21 : tem = captures[0];
10072 : 21 : res_op->set_value (tem);
10073 : 21 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1022, __FILE__, __LINE__, true);
10074 : 21 : return true;
10075 : : }
10076 : 0 : next_after_fail1955:;
10077 : : }
10078 : : }
10079 : 792 : switch (TREE_CODE (_p0))
10080 : : {
10081 : 735 : case SSA_NAME:
10082 : 735 : if (gimple *_d1 = get_def (valueize, _p0))
10083 : : {
10084 : 430 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
10085 : 580 : switch (gimple_assign_rhs_code (_a1))
10086 : : {
10087 : 280 : case COMPLEX_EXPR:
10088 : 280 : {
10089 : 280 : tree _q20 = gimple_assign_rhs1 (_a1);
10090 : 280 : _q20 = do_valueize (valueize, _q20);
10091 : 280 : tree _q21 = gimple_assign_rhs2 (_a1);
10092 : 280 : _q21 = do_valueize (valueize, _q21);
10093 : 280 : switch (TREE_CODE (_q20))
10094 : : {
10095 : 56 : case REAL_CST:
10096 : 56 : {
10097 : 56 : if (tree_expr_nonnegative_p (_q21))
10098 : : {
10099 : 56 : {
10100 : 56 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10101 : 56 : if (real_isinf (TREE_REAL_CST_PTR (captures[0]))
10102 : : )
10103 : : {
10104 : 56 : gimple_seq *lseq = seq;
10105 : 56 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1956;
10106 : 56 : {
10107 : 56 : tree tem;
10108 : 56 : tem = build_complex_inf (type, false);
10109 : 56 : res_op->set_value (tem);
10110 : 56 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1023, __FILE__, __LINE__, true);
10111 : 56 : return true;
10112 : : }
10113 : 0 : next_after_fail1956:;
10114 : : }
10115 : : }
10116 : : }
10117 : : break;
10118 : : }
10119 : 224 : default:;
10120 : : }
10121 : 224 : switch (TREE_CODE (_q21))
10122 : : {
10123 : 224 : case REAL_CST:
10124 : 224 : {
10125 : 224 : {
10126 : 224 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10127 : 224 : if (real_isinf (TREE_REAL_CST_PTR (captures[1]))
10128 : : )
10129 : : {
10130 : 224 : gimple_seq *lseq = seq;
10131 : 224 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1957;
10132 : 224 : {
10133 : 224 : tree tem;
10134 : 224 : tem = build_complex_inf (type, TREE_REAL_CST_PTR (captures[1])->sign);
10135 : 224 : res_op->set_value (tem);
10136 : 224 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1024, __FILE__, __LINE__, true);
10137 : 224 : return true;
10138 : : }
10139 : 0 : next_after_fail1957:;
10140 : : }
10141 : : }
10142 : 0 : break;
10143 : : }
10144 : : default:;
10145 : : }
10146 : : break;
10147 : : }
10148 : : default:;
10149 : : }
10150 : : }
10151 : : break;
10152 : : default:;
10153 : : }
10154 : : return false;
10155 : : }
10156 : :
10157 : : bool
10158 : 1909 : gimple_simplify_CFN_BUILT_IN_POPCOUNTLL (gimple_match_op *res_op, gimple_seq *seq,
10159 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
10160 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
10161 : : {
10162 : 1909 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
10163 : 1909 : switch (TREE_CODE (_p0))
10164 : : {
10165 : 1851 : case SSA_NAME:
10166 : 1851 : if (gimple *_d1 = get_def (valueize, _p0))
10167 : : {
10168 : 1010 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
10169 : 921 : switch (gimple_assign_rhs_code (_a1))
10170 : : {
10171 : 296 : CASE_CONVERT:
10172 : 296 : {
10173 : 296 : tree _q20 = gimple_assign_rhs1 (_a1);
10174 : 296 : _q20 = do_valueize (valueize, _q20);
10175 : 296 : switch (TREE_CODE (_q20))
10176 : : {
10177 : 296 : case SSA_NAME:
10178 : 296 : if (gimple *_d2 = get_def (valueize, _q20))
10179 : : {
10180 : 287 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
10181 : 406 : switch (gimple_assign_rhs_code (_a2))
10182 : : {
10183 : 0 : case LROTATE_EXPR:
10184 : 0 : {
10185 : 0 : tree _q30 = gimple_assign_rhs1 (_a2);
10186 : 0 : _q30 = do_valueize (valueize, _q30);
10187 : 0 : tree _q31 = gimple_assign_rhs2 (_a2);
10188 : 0 : _q31 = do_valueize (valueize, _q31);
10189 : 0 : {
10190 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31 };
10191 : 0 : if (gimple_simplify_678 (res_op, seq, valueize, type, captures, LROTATE_EXPR, CFN_BUILT_IN_POPCOUNTLL))
10192 : 0 : return true;
10193 : : }
10194 : 0 : break;
10195 : : }
10196 : 0 : case RROTATE_EXPR:
10197 : 0 : {
10198 : 0 : tree _q30 = gimple_assign_rhs1 (_a2);
10199 : 0 : _q30 = do_valueize (valueize, _q30);
10200 : 0 : tree _q31 = gimple_assign_rhs2 (_a2);
10201 : 0 : _q31 = do_valueize (valueize, _q31);
10202 : 0 : {
10203 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31 };
10204 : 0 : if (gimple_simplify_678 (res_op, seq, valueize, type, captures, RROTATE_EXPR, CFN_BUILT_IN_POPCOUNTLL))
10205 : 0 : return true;
10206 : : }
10207 : 0 : break;
10208 : : }
10209 : : default:;
10210 : : }
10211 : 37 : else if (gcall *_c2 = dyn_cast <gcall *> (_d2))
10212 : 2 : switch (gimple_call_combined_fn (_c2))
10213 : : {
10214 : 0 : case CFN_BUILT_IN_BSWAP128:
10215 : 0 : if (gimple_call_num_args (_c2) == 1)
10216 : : {
10217 : 0 : tree _q30 = gimple_call_arg (_c2, 0);
10218 : 0 : _q30 = do_valueize (valueize, _q30);
10219 : 0 : {
10220 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
10221 : 0 : if (gimple_simplify_677 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_BSWAP128, CFN_BUILT_IN_POPCOUNTLL))
10222 : 0 : return true;
10223 : : }
10224 : : }
10225 : : break;
10226 : 2 : case CFN_BUILT_IN_BSWAP16:
10227 : 2 : if (gimple_call_num_args (_c2) == 1)
10228 : : {
10229 : 2 : tree _q30 = gimple_call_arg (_c2, 0);
10230 : 2 : _q30 = do_valueize (valueize, _q30);
10231 : 2 : {
10232 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
10233 : 2 : if (gimple_simplify_677 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_BSWAP16, CFN_BUILT_IN_POPCOUNTLL))
10234 : 1 : return true;
10235 : : }
10236 : : }
10237 : : break;
10238 : 0 : case CFN_BUILT_IN_BSWAP32:
10239 : 0 : if (gimple_call_num_args (_c2) == 1)
10240 : : {
10241 : 0 : tree _q30 = gimple_call_arg (_c2, 0);
10242 : 0 : _q30 = do_valueize (valueize, _q30);
10243 : 0 : {
10244 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
10245 : 0 : if (gimple_simplify_677 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_BSWAP32, CFN_BUILT_IN_POPCOUNTLL))
10246 : 0 : return true;
10247 : : }
10248 : : }
10249 : : break;
10250 : 0 : case CFN_BUILT_IN_BSWAP64:
10251 : 0 : if (gimple_call_num_args (_c2) == 1)
10252 : : {
10253 : 0 : tree _q30 = gimple_call_arg (_c2, 0);
10254 : 0 : _q30 = do_valueize (valueize, _q30);
10255 : 0 : {
10256 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q30 };
10257 : 0 : if (gimple_simplify_677 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_BSWAP64, CFN_BUILT_IN_POPCOUNTLL))
10258 : 0 : return true;
10259 : : }
10260 : : }
10261 : : break;
10262 : : default:;
10263 : : }
10264 : : }
10265 : : break;
10266 : 295 : default:;
10267 : : }
10268 : 295 : {
10269 : 295 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
10270 : 295 : if (gimple_simplify_679 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_POPCOUNTLL))
10271 : 12 : return true;
10272 : : }
10273 : 283 : break;
10274 : : }
10275 : 0 : case LROTATE_EXPR:
10276 : 0 : {
10277 : 0 : tree _q20 = gimple_assign_rhs1 (_a1);
10278 : 0 : _q20 = do_valueize (valueize, _q20);
10279 : 0 : tree _q21 = gimple_assign_rhs2 (_a1);
10280 : 0 : _q21 = do_valueize (valueize, _q21);
10281 : 0 : {
10282 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21 };
10283 : 0 : if (gimple_simplify_681 (res_op, seq, valueize, type, captures, LROTATE_EXPR, CFN_BUILT_IN_POPCOUNTLL))
10284 : 0 : return true;
10285 : : }
10286 : 0 : break;
10287 : : }
10288 : 2 : case RROTATE_EXPR:
10289 : 2 : {
10290 : 2 : tree _q20 = gimple_assign_rhs1 (_a1);
10291 : 2 : _q20 = do_valueize (valueize, _q20);
10292 : 2 : tree _q21 = gimple_assign_rhs2 (_a1);
10293 : 2 : _q21 = do_valueize (valueize, _q21);
10294 : 2 : {
10295 : 2 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21 };
10296 : 2 : if (gimple_simplify_681 (res_op, seq, valueize, type, captures, RROTATE_EXPR, CFN_BUILT_IN_POPCOUNTLL))
10297 : 2 : return true;
10298 : : }
10299 : 0 : break;
10300 : : }
10301 : : default:;
10302 : : }
10303 : 385 : else if (gcall *_c1 = dyn_cast <gcall *> (_d1))
10304 : 2 : switch (gimple_call_combined_fn (_c1))
10305 : : {
10306 : 0 : case CFN_BUILT_IN_BSWAP128:
10307 : 0 : if (gimple_call_num_args (_c1) == 1)
10308 : : {
10309 : 0 : tree _q20 = gimple_call_arg (_c1, 0);
10310 : 0 : _q20 = do_valueize (valueize, _q20);
10311 : 0 : {
10312 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q20 };
10313 : 0 : if (gimple_simplify_680 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_BSWAP128, CFN_BUILT_IN_POPCOUNTLL))
10314 : 0 : return true;
10315 : : }
10316 : : }
10317 : : break;
10318 : 0 : case CFN_BUILT_IN_BSWAP16:
10319 : 0 : if (gimple_call_num_args (_c1) == 1)
10320 : : {
10321 : 0 : tree _q20 = gimple_call_arg (_c1, 0);
10322 : 0 : _q20 = do_valueize (valueize, _q20);
10323 : 0 : {
10324 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q20 };
10325 : 0 : if (gimple_simplify_680 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_BSWAP16, CFN_BUILT_IN_POPCOUNTLL))
10326 : 0 : return true;
10327 : : }
10328 : : }
10329 : : break;
10330 : 0 : case CFN_BUILT_IN_BSWAP32:
10331 : 0 : if (gimple_call_num_args (_c1) == 1)
10332 : : {
10333 : 0 : tree _q20 = gimple_call_arg (_c1, 0);
10334 : 0 : _q20 = do_valueize (valueize, _q20);
10335 : 0 : {
10336 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q20 };
10337 : 0 : if (gimple_simplify_680 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_BSWAP32, CFN_BUILT_IN_POPCOUNTLL))
10338 : 0 : return true;
10339 : : }
10340 : : }
10341 : : break;
10342 : 2 : case CFN_BUILT_IN_BSWAP64:
10343 : 2 : if (gimple_call_num_args (_c1) == 1)
10344 : : {
10345 : 2 : tree _q20 = gimple_call_arg (_c1, 0);
10346 : 2 : _q20 = do_valueize (valueize, _q20);
10347 : 2 : {
10348 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p0, _q20 };
10349 : 2 : if (gimple_simplify_680 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_BSWAP64, CFN_BUILT_IN_POPCOUNTLL))
10350 : 2 : return true;
10351 : : }
10352 : : }
10353 : : break;
10354 : : default:;
10355 : : }
10356 : : }
10357 : : break;
10358 : 1892 : default:;
10359 : : }
10360 : 1892 : {
10361 : 1892 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
10362 : 1892 : if (gimple_simplify_682 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_POPCOUNTLL))
10363 : 7 : return true;
10364 : : }
10365 : 1885 : return false;
10366 : : }
10367 : :
10368 : : bool
10369 : 1357 : gimple_simplify_CFN_BUILT_IN_FFS (gimple_match_op *res_op, gimple_seq *seq,
10370 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
10371 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
10372 : : {
10373 : 1357 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
10374 : 1357 : switch (TREE_CODE (_p0))
10375 : : {
10376 : 1337 : case SSA_NAME:
10377 : 1337 : if (gimple *_d1 = get_def (valueize, _p0))
10378 : : {
10379 : 679 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
10380 : 787 : switch (gimple_assign_rhs_code (_a1))
10381 : : {
10382 : 368 : CASE_CONVERT:
10383 : 368 : {
10384 : 368 : tree _q20 = gimple_assign_rhs1 (_a1);
10385 : 368 : _q20 = do_valueize (valueize, _q20);
10386 : 368 : {
10387 : 368 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q20 };
10388 : 368 : if (gimple_simplify_690 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_FFS))
10389 : 0 : return true;
10390 : : }
10391 : 368 : break;
10392 : : }
10393 : : default:;
10394 : : }
10395 : : }
10396 : : break;
10397 : 1357 : default:;
10398 : : }
10399 : 1357 : if (tree_expr_nonzero_p (_p0))
10400 : : {
10401 : 14 : {
10402 : 14 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
10403 : 14 : if (gimple_simplify_689 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_FFS, CFN_BUILT_IN_CTZ))
10404 : 12 : return true;
10405 : : }
10406 : : }
10407 : : return false;
10408 : : }
10409 : :
10410 : : bool
10411 : 130612 : gimple_simplify_CFN_REDUC_PLUS (gimple_match_op *res_op, gimple_seq *seq,
10412 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
10413 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0)
10414 : : {
10415 : 130612 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
10416 : 130612 : switch (TREE_CODE (_p0))
10417 : : {
10418 : 130612 : case SSA_NAME:
10419 : 130612 : if (gimple *_d1 = get_def (valueize, _p0))
10420 : : {
10421 : 53366 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
10422 : 49032 : switch (gimple_assign_rhs_code (_a1))
10423 : : {
10424 : 2259 : case VIEW_CONVERT_EXPR:
10425 : 2259 : {
10426 : 2259 : tree _q20 = TREE_OPERAND (gimple_assign_rhs1 (_a1), 0);
10427 : 2259 : if ((TREE_CODE (_q20) == SSA_NAME
10428 : 2259 : || is_gimple_min_invariant (_q20)))
10429 : : {
10430 : 2259 : _q20 = do_valueize (valueize, _q20);
10431 : 2259 : switch (TREE_CODE (_q20))
10432 : : {
10433 : 2259 : case SSA_NAME:
10434 : 2259 : if (gimple *_d2 = get_def (valueize, _q20))
10435 : : {
10436 : 1355 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
10437 : 2407 : switch (gimple_assign_rhs_code (_a2))
10438 : : {
10439 : 63 : case BIT_AND_EXPR:
10440 : 63 : {
10441 : 63 : tree _q30 = gimple_assign_rhs1 (_a2);
10442 : 63 : _q30 = do_valueize (valueize, _q30);
10443 : 63 : tree _q31 = gimple_assign_rhs2 (_a2);
10444 : 63 : _q31 = do_valueize (valueize, _q31);
10445 : 63 : if (tree_swap_operands_p (_q30, _q31))
10446 : 0 : std::swap (_q30, _q31);
10447 : 63 : switch (TREE_CODE (_q31))
10448 : : {
10449 : 63 : case VECTOR_CST:
10450 : 63 : {
10451 : 63 : {
10452 : 63 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q31 };
10453 : 63 : if (gimple_simplify_693 (res_op, seq, valueize, type, captures, CFN_REDUC_PLUS))
10454 : 15 : return true;
10455 : : }
10456 : 48 : break;
10457 : : }
10458 : : default:;
10459 : : }
10460 : 130612 : break;
10461 : : }
10462 : : default:;
10463 : : }
10464 : : }
10465 : : break;
10466 : : default:;
10467 : : }
10468 : : }
10469 : : break;
10470 : : }
10471 : 114 : case BIT_AND_EXPR:
10472 : 114 : {
10473 : 114 : tree _q20 = gimple_assign_rhs1 (_a1);
10474 : 114 : _q20 = do_valueize (valueize, _q20);
10475 : 114 : tree _q21 = gimple_assign_rhs2 (_a1);
10476 : 114 : _q21 = do_valueize (valueize, _q21);
10477 : 114 : if (tree_swap_operands_p (_q20, _q21))
10478 : 0 : std::swap (_q20, _q21);
10479 : 114 : switch (TREE_CODE (_q21))
10480 : : {
10481 : 114 : case VECTOR_CST:
10482 : 114 : {
10483 : 114 : {
10484 : 114 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10485 : 114 : if (gimple_simplify_693 (res_op, seq, valueize, type, captures, CFN_REDUC_PLUS))
10486 : 18 : return true;
10487 : : }
10488 : 96 : break;
10489 : : }
10490 : : default:;
10491 : : }
10492 : 130612 : break;
10493 : : }
10494 : 8 : case CONSTRUCTOR:
10495 : 8 : {
10496 : 8 : {
10497 : 8 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
10498 : 8 : if (gimple_simplify_694 (res_op, seq, valueize, type, captures, CFN_REDUC_PLUS))
10499 : 0 : return true;
10500 : : }
10501 : 8 : break;
10502 : : }
10503 : 30514 : case PLUS_EXPR:
10504 : 30514 : {
10505 : 30514 : tree _q20 = gimple_assign_rhs1 (_a1);
10506 : 30514 : _q20 = do_valueize (valueize, _q20);
10507 : 30514 : tree _q21 = gimple_assign_rhs2 (_a1);
10508 : 30514 : _q21 = do_valueize (valueize, _q21);
10509 : 30514 : if (tree_swap_operands_p (_q20, _q21))
10510 : 57 : std::swap (_q20, _q21);
10511 : 30514 : switch (TREE_CODE (_q21))
10512 : : {
10513 : 3 : case VECTOR_CST:
10514 : 3 : {
10515 : 3 : {
10516 : 3 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
10517 : 3 : gimple_seq *lseq = seq;
10518 : 3 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1958;
10519 : 3 : {
10520 : 3 : res_op->set_op (PLUS_EXPR, type, 2);
10521 : 3 : {
10522 : 3 : tree _o1[1], _r1;
10523 : 3 : _o1[0] = captures[0];
10524 : 3 : gimple_match_op tem_op (res_op->cond.any_else (), CFN_REDUC_PLUS, type, _o1[0]);
10525 : 3 : tem_op.resimplify (lseq, valueize);
10526 : 3 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
10527 : 3 : if (!_r1) goto next_after_fail1958;
10528 : 1 : res_op->ops[0] = _r1;
10529 : : }
10530 : 1 : {
10531 : 1 : tree _o1[1], _r1;
10532 : 1 : _o1[0] = captures[1];
10533 : 1 : gimple_match_op tem_op (res_op->cond.any_else (), CFN_REDUC_PLUS, type, _o1[0]);
10534 : 1 : tem_op.resimplify (lseq, valueize);
10535 : 1 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
10536 : 1 : if (!_r1) goto next_after_fail1958;
10537 : 1 : res_op->ops[1] = _r1;
10538 : : }
10539 : 1 : res_op->resimplify (lseq, valueize);
10540 : 1 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1025, __FILE__, __LINE__, true);
10541 : 1 : return true;
10542 : : }
10543 : 2 : next_after_fail1958:;
10544 : : }
10545 : 2 : break;
10546 : : }
10547 : : default:;
10548 : : }
10549 : 130612 : break;
10550 : : }
10551 : : default:;
10552 : : }
10553 : : }
10554 : : break;
10555 : : default:;
10556 : : }
10557 : : return false;
10558 : : }
10559 : :
10560 : : bool
10561 : 748101 : gimple_simplify_BIT_XOR_EXPR (gimple_match_op *res_op, gimple_seq *seq,
10562 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
10563 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0, tree _p1)
10564 : : {
10565 : 748101 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
10566 : 748101 : switch (TREE_CODE (_p0))
10567 : : {
10568 : 736852 : case SSA_NAME:
10569 : 736852 : if (gimple *_d1 = get_def (valueize, _p0))
10570 : : {
10571 : 592806 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
10572 : 657185 : switch (gimple_assign_rhs_code (_a1))
10573 : : {
10574 : 18720 : case PLUS_EXPR:
10575 : 18720 : {
10576 : 18720 : tree _q20 = gimple_assign_rhs1 (_a1);
10577 : 18720 : _q20 = do_valueize (valueize, _q20);
10578 : 18720 : tree _q21 = gimple_assign_rhs2 (_a1);
10579 : 18720 : _q21 = do_valueize (valueize, _q21);
10580 : 18720 : if (tree_swap_operands_p (_q20, _q21))
10581 : 1302 : std::swap (_q20, _q21);
10582 : 18720 : switch (TREE_CODE (_q21))
10583 : : {
10584 : 14642 : case SSA_NAME:
10585 : 14642 : if (gimple *_d2 = get_def (valueize, _q21))
10586 : : {
10587 : 14470 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
10588 : 14639 : switch (gimple_assign_rhs_code (_a2))
10589 : : {
10590 : 294 : case RSHIFT_EXPR:
10591 : 294 : {
10592 : 294 : tree _q40 = gimple_assign_rhs1 (_a2);
10593 : 294 : _q40 = do_valueize (valueize, _q40);
10594 : 294 : tree _q41 = gimple_assign_rhs2 (_a2);
10595 : 294 : _q41 = do_valueize (valueize, _q41);
10596 : 294 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
10597 : : {
10598 : 34 : switch (TREE_CODE (_q41))
10599 : : {
10600 : 34 : case INTEGER_CST:
10601 : 34 : {
10602 : 34 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
10603 : : {
10604 : 34 : {
10605 : 34 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q41 };
10606 : 34 : if (gimple_simplify_2 (res_op, seq, valueize, type, captures))
10607 : 34 : return true;
10608 : : }
10609 : : }
10610 : : break;
10611 : : }
10612 : : default:;
10613 : : }
10614 : : }
10615 : : break;
10616 : : }
10617 : : default:;
10618 : : }
10619 : : }
10620 : : break;
10621 : 18686 : default:;
10622 : : }
10623 : 18686 : switch (TREE_CODE (_q20))
10624 : : {
10625 : 18686 : case SSA_NAME:
10626 : 18686 : if (gimple *_d2 = get_def (valueize, _q20))
10627 : : {
10628 : 18353 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
10629 : 17675 : switch (gimple_assign_rhs_code (_a2))
10630 : : {
10631 : 1231 : case RSHIFT_EXPR:
10632 : 1231 : {
10633 : 1231 : tree _q30 = gimple_assign_rhs1 (_a2);
10634 : 1231 : _q30 = do_valueize (valueize, _q30);
10635 : 1231 : tree _q31 = gimple_assign_rhs2 (_a2);
10636 : 1231 : _q31 = do_valueize (valueize, _q31);
10637 : 1231 : switch (TREE_CODE (_q31))
10638 : : {
10639 : 1231 : case INTEGER_CST:
10640 : 1231 : {
10641 : 1231 : if ((_q21 == _q30 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q30, 0) && types_match (_q21, _q30)))
10642 : : {
10643 : 14 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
10644 : : {
10645 : 14 : {
10646 : 14 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q20, _q31 };
10647 : 14 : if (gimple_simplify_2 (res_op, seq, valueize, type, captures))
10648 : 14 : return true;
10649 : : }
10650 : : }
10651 : : }
10652 : : break;
10653 : : }
10654 : : default:;
10655 : : }
10656 : : break;
10657 : : }
10658 : : default:;
10659 : : }
10660 : : }
10661 : : break;
10662 : : default:;
10663 : : }
10664 : 748053 : break;
10665 : : }
10666 : : default:;
10667 : : }
10668 : : }
10669 : : break;
10670 : 748053 : default:;
10671 : : }
10672 : 748053 : switch (TREE_CODE (_p1))
10673 : : {
10674 : 496927 : case SSA_NAME:
10675 : 496927 : if (gimple *_d1 = get_def (valueize, _p1))
10676 : : {
10677 : 407808 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
10678 : 454641 : switch (gimple_assign_rhs_code (_a1))
10679 : : {
10680 : 21051 : case PLUS_EXPR:
10681 : 21051 : {
10682 : 21051 : tree _q30 = gimple_assign_rhs1 (_a1);
10683 : 21051 : _q30 = do_valueize (valueize, _q30);
10684 : 21051 : tree _q31 = gimple_assign_rhs2 (_a1);
10685 : 21051 : _q31 = do_valueize (valueize, _q31);
10686 : 21051 : if (tree_swap_operands_p (_q30, _q31))
10687 : 1468 : std::swap (_q30, _q31);
10688 : 21051 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
10689 : : {
10690 : 150 : switch (TREE_CODE (_q31))
10691 : : {
10692 : 150 : case SSA_NAME:
10693 : 150 : if (gimple *_d2 = get_def (valueize, _q31))
10694 : : {
10695 : 144 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
10696 : 144 : switch (gimple_assign_rhs_code (_a2))
10697 : : {
10698 : 0 : case RSHIFT_EXPR:
10699 : 0 : {
10700 : 0 : tree _q60 = gimple_assign_rhs1 (_a2);
10701 : 0 : _q60 = do_valueize (valueize, _q60);
10702 : 0 : tree _q61 = gimple_assign_rhs2 (_a2);
10703 : 0 : _q61 = do_valueize (valueize, _q61);
10704 : 0 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
10705 : : {
10706 : 0 : switch (TREE_CODE (_q61))
10707 : : {
10708 : 0 : case INTEGER_CST:
10709 : 0 : {
10710 : 0 : {
10711 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _p0, _q61 };
10712 : 0 : if (gimple_simplify_2 (res_op, seq, valueize, type, captures))
10713 : 0 : return true;
10714 : : }
10715 : 0 : break;
10716 : : }
10717 : : default:;
10718 : : }
10719 : : }
10720 : : break;
10721 : : }
10722 : : default:;
10723 : : }
10724 : : }
10725 : : break;
10726 : : default:;
10727 : : }
10728 : : }
10729 : 21051 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
10730 : : {
10731 : 6851 : switch (TREE_CODE (_q30))
10732 : : {
10733 : 6851 : case SSA_NAME:
10734 : 6851 : if (gimple *_d2 = get_def (valueize, _q30))
10735 : : {
10736 : 6748 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
10737 : 6284 : switch (gimple_assign_rhs_code (_a2))
10738 : : {
10739 : 27 : case RSHIFT_EXPR:
10740 : 27 : {
10741 : 27 : tree _q50 = gimple_assign_rhs1 (_a2);
10742 : 27 : _q50 = do_valueize (valueize, _q50);
10743 : 27 : tree _q51 = gimple_assign_rhs2 (_a2);
10744 : 27 : _q51 = do_valueize (valueize, _q51);
10745 : 27 : switch (TREE_CODE (_q51))
10746 : : {
10747 : 27 : case INTEGER_CST:
10748 : 27 : {
10749 : 27 : if ((_q31 == _q50 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _q50, 0) && types_match (_q31, _q50)))
10750 : : {
10751 : 0 : {
10752 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _p0, _q51 };
10753 : 0 : if (gimple_simplify_2 (res_op, seq, valueize, type, captures))
10754 : 0 : return true;
10755 : : }
10756 : : }
10757 : : break;
10758 : : }
10759 : : default:;
10760 : : }
10761 : : break;
10762 : : }
10763 : : default:;
10764 : : }
10765 : : }
10766 : : break;
10767 : : default:;
10768 : : }
10769 : : }
10770 : 748053 : break;
10771 : : }
10772 : : default:;
10773 : : }
10774 : : }
10775 : : break;
10776 : 748053 : default:;
10777 : : }
10778 : 748053 : if (integer_zerop (_p1))
10779 : : {
10780 : 21433 : {
10781 : 21433 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
10782 : 21433 : gimple_seq *lseq = seq;
10783 : 21433 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1966;
10784 : 21433 : {
10785 : 21433 : tree tem;
10786 : 21433 : tem = captures[0];
10787 : 21433 : res_op->set_value (tem);
10788 : 21433 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1026, __FILE__, __LINE__, true);
10789 : 21433 : return true;
10790 : : }
10791 : 0 : next_after_fail1966:;
10792 : : }
10793 : : }
10794 : 726620 : switch (TREE_CODE (_p0))
10795 : : {
10796 : 715371 : case SSA_NAME:
10797 : 715371 : if (gimple *_d1 = get_def (valueize, _p0))
10798 : : {
10799 : 585647 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
10800 : 649238 : switch (gimple_assign_rhs_code (_a1))
10801 : : {
10802 : 19062 : case LSHIFT_EXPR:
10803 : 19062 : {
10804 : 19062 : tree _q20 = gimple_assign_rhs1 (_a1);
10805 : 19062 : _q20 = do_valueize (valueize, _q20);
10806 : 19062 : tree _q21 = gimple_assign_rhs2 (_a1);
10807 : 19062 : _q21 = do_valueize (valueize, _q21);
10808 : 19062 : switch (TREE_CODE (_p1))
10809 : : {
10810 : 12253 : case SSA_NAME:
10811 : 12253 : if (gimple *_d2 = get_def (valueize, _p1))
10812 : : {
10813 : 11904 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
10814 : 11059 : switch (gimple_assign_rhs_code (_a2))
10815 : : {
10816 : 126 : case LSHIFT_EXPR:
10817 : 126 : {
10818 : 126 : tree _q50 = gimple_assign_rhs1 (_a2);
10819 : 126 : _q50 = do_valueize (valueize, _q50);
10820 : 126 : tree _q51 = gimple_assign_rhs2 (_a2);
10821 : 126 : _q51 = do_valueize (valueize, _q51);
10822 : 126 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10823 : : {
10824 : 14 : {
10825 : 14 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
10826 : 14 : if (gimple_simplify_3 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
10827 : 0 : return true;
10828 : : }
10829 : : }
10830 : : break;
10831 : : }
10832 : : default:;
10833 : : }
10834 : : }
10835 : : break;
10836 : : default:;
10837 : : }
10838 : : break;
10839 : : }
10840 : 28879 : case RSHIFT_EXPR:
10841 : 28879 : {
10842 : 28879 : tree _q20 = gimple_assign_rhs1 (_a1);
10843 : 28879 : _q20 = do_valueize (valueize, _q20);
10844 : 28879 : tree _q21 = gimple_assign_rhs2 (_a1);
10845 : 28879 : _q21 = do_valueize (valueize, _q21);
10846 : 28879 : switch (TREE_CODE (_p1))
10847 : : {
10848 : 23407 : case SSA_NAME:
10849 : 23407 : if (gimple *_d2 = get_def (valueize, _p1))
10850 : : {
10851 : 20997 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
10852 : 22763 : switch (gimple_assign_rhs_code (_a2))
10853 : : {
10854 : 2326 : case RSHIFT_EXPR:
10855 : 2326 : {
10856 : 2326 : tree _q50 = gimple_assign_rhs1 (_a2);
10857 : 2326 : _q50 = do_valueize (valueize, _q50);
10858 : 2326 : tree _q51 = gimple_assign_rhs2 (_a2);
10859 : 2326 : _q51 = do_valueize (valueize, _q51);
10860 : 2326 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
10861 : : {
10862 : 10 : {
10863 : 10 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50 };
10864 : 10 : if (gimple_simplify_4 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
10865 : 3 : return true;
10866 : : }
10867 : : }
10868 : : break;
10869 : : }
10870 : : default:;
10871 : : }
10872 : : }
10873 : : break;
10874 : : default:;
10875 : : }
10876 : : break;
10877 : : }
10878 : 32923 : case BIT_AND_EXPR:
10879 : 32923 : {
10880 : 32923 : tree _q20 = gimple_assign_rhs1 (_a1);
10881 : 32923 : _q20 = do_valueize (valueize, _q20);
10882 : 32923 : tree _q21 = gimple_assign_rhs2 (_a1);
10883 : 32923 : _q21 = do_valueize (valueize, _q21);
10884 : 32923 : if (tree_swap_operands_p (_q20, _q21))
10885 : 1270 : std::swap (_q20, _q21);
10886 : 32923 : switch (TREE_CODE (_p1))
10887 : : {
10888 : 25005 : case SSA_NAME:
10889 : 25005 : if (gimple *_d2 = get_def (valueize, _p1))
10890 : : {
10891 : 21812 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
10892 : 19461 : switch (gimple_assign_rhs_code (_a2))
10893 : : {
10894 : 2230 : case BIT_AND_EXPR:
10895 : 2230 : {
10896 : 2230 : tree _q50 = gimple_assign_rhs1 (_a2);
10897 : 2230 : _q50 = do_valueize (valueize, _q50);
10898 : 2230 : tree _q51 = gimple_assign_rhs2 (_a2);
10899 : 2230 : _q51 = do_valueize (valueize, _q51);
10900 : 2230 : if (tree_swap_operands_p (_q50, _q51))
10901 : 65 : std::swap (_q50, _q51);
10902 : 2230 : {
10903 : 2230 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q50, _q51 };
10904 : 2230 : if (gimple_simplify_5 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
10905 : 0 : return true;
10906 : : }
10907 : 2230 : {
10908 : 2230 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q51, _q50 };
10909 : 2230 : if (gimple_simplify_5 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
10910 : 0 : return true;
10911 : : }
10912 : 2230 : {
10913 : 2230 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q50, _q51 };
10914 : 2230 : if (gimple_simplify_5 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
10915 : 0 : return true;
10916 : : }
10917 : 2230 : {
10918 : 2230 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q51, _q50 };
10919 : 2230 : if (gimple_simplify_5 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
10920 : 0 : return true;
10921 : : }
10922 : 2230 : break;
10923 : : }
10924 : : default:;
10925 : : }
10926 : : }
10927 : : break;
10928 : 32923 : default:;
10929 : : }
10930 : 32923 : switch (TREE_CODE (_q21))
10931 : : {
10932 : 18124 : case SSA_NAME:
10933 : 18124 : if (gimple *_d2 = get_def (valueize, _q21))
10934 : : {
10935 : 16684 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
10936 : 11482 : switch (gimple_assign_rhs_code (_a2))
10937 : : {
10938 : 583 : case BIT_NOT_EXPR:
10939 : 583 : {
10940 : 583 : tree _q40 = gimple_assign_rhs1 (_a2);
10941 : 583 : _q40 = do_valueize (valueize, _q40);
10942 : 583 : switch (TREE_CODE (_p1))
10943 : : {
10944 : 424 : case SSA_NAME:
10945 : 424 : if (gimple *_d3 = get_def (valueize, _p1))
10946 : : {
10947 : 370 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
10948 : 136 : switch (gimple_assign_rhs_code (_a3))
10949 : : {
10950 : 0 : case BIT_NOT_EXPR:
10951 : 0 : {
10952 : 0 : tree _q60 = gimple_assign_rhs1 (_a3);
10953 : 0 : _q60 = do_valueize (valueize, _q60);
10954 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
10955 : : {
10956 : 0 : {
10957 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
10958 : 0 : if (gimple_simplify_6 (res_op, seq, valueize, type, captures))
10959 : 0 : return true;
10960 : : }
10961 : : }
10962 : : break;
10963 : : }
10964 : : default:;
10965 : : }
10966 : : }
10967 : : break;
10968 : : default:;
10969 : : }
10970 : : break;
10971 : : }
10972 : : default:;
10973 : : }
10974 : : }
10975 : : break;
10976 : 32923 : default:;
10977 : : }
10978 : 32923 : switch (TREE_CODE (_q20))
10979 : : {
10980 : 32923 : case SSA_NAME:
10981 : 32923 : if (gimple *_d2 = get_def (valueize, _q20))
10982 : : {
10983 : 32106 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
10984 : 33321 : switch (gimple_assign_rhs_code (_a2))
10985 : : {
10986 : 602 : case BIT_NOT_EXPR:
10987 : 602 : {
10988 : 602 : tree _q30 = gimple_assign_rhs1 (_a2);
10989 : 602 : _q30 = do_valueize (valueize, _q30);
10990 : 602 : switch (TREE_CODE (_p1))
10991 : : {
10992 : 536 : case SSA_NAME:
10993 : 536 : if (gimple *_d3 = get_def (valueize, _p1))
10994 : : {
10995 : 518 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
10996 : 230 : switch (gimple_assign_rhs_code (_a3))
10997 : : {
10998 : 0 : case BIT_NOT_EXPR:
10999 : 0 : {
11000 : 0 : tree _q60 = gimple_assign_rhs1 (_a3);
11001 : 0 : _q60 = do_valueize (valueize, _q60);
11002 : 0 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
11003 : : {
11004 : 0 : {
11005 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q30 };
11006 : 0 : if (gimple_simplify_6 (res_op, seq, valueize, type, captures))
11007 : 0 : return true;
11008 : : }
11009 : : }
11010 : : break;
11011 : : }
11012 : : default:;
11013 : : }
11014 : : }
11015 : : break;
11016 : 602 : default:;
11017 : : }
11018 : 602 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
11019 : : {
11020 : 0 : {
11021 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q30, _q21 };
11022 : 0 : if (gimple_simplify_7 (res_op, seq, valueize, type, captures))
11023 : 0 : return true;
11024 : : }
11025 : : }
11026 : : break;
11027 : : }
11028 : : default:;
11029 : : }
11030 : : }
11031 : : break;
11032 : 32923 : default:;
11033 : : }
11034 : 32923 : switch (TREE_CODE (_q21))
11035 : : {
11036 : 18124 : case SSA_NAME:
11037 : 18124 : if (gimple *_d2 = get_def (valueize, _q21))
11038 : : {
11039 : 16684 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
11040 : 11482 : switch (gimple_assign_rhs_code (_a2))
11041 : : {
11042 : 583 : case BIT_NOT_EXPR:
11043 : 583 : {
11044 : 583 : tree _q40 = gimple_assign_rhs1 (_a2);
11045 : 583 : _q40 = do_valueize (valueize, _q40);
11046 : 583 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
11047 : : {
11048 : 0 : {
11049 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q40, _q20 };
11050 : 0 : if (gimple_simplify_7 (res_op, seq, valueize, type, captures))
11051 : 0 : return true;
11052 : : }
11053 : : }
11054 : : break;
11055 : : }
11056 : : default:;
11057 : : }
11058 : : }
11059 : : break;
11060 : : default:;
11061 : : }
11062 : 726617 : break;
11063 : : }
11064 : 379 : case BIT_NOT_EXPR:
11065 : 379 : {
11066 : 379 : tree _q20 = gimple_assign_rhs1 (_a1);
11067 : 379 : _q20 = do_valueize (valueize, _q20);
11068 : 379 : switch (TREE_CODE (_p1))
11069 : : {
11070 : 192 : case SSA_NAME:
11071 : 192 : if (gimple *_d2 = get_def (valueize, _p1))
11072 : : {
11073 : 186 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
11074 : 166 : switch (gimple_assign_rhs_code (_a2))
11075 : : {
11076 : 0 : case BIT_AND_EXPR:
11077 : 0 : {
11078 : 0 : tree _q40 = gimple_assign_rhs1 (_a2);
11079 : 0 : _q40 = do_valueize (valueize, _q40);
11080 : 0 : tree _q41 = gimple_assign_rhs2 (_a2);
11081 : 0 : _q41 = do_valueize (valueize, _q41);
11082 : 0 : if (tree_swap_operands_p (_q40, _q41))
11083 : 0 : std::swap (_q40, _q41);
11084 : 0 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
11085 : : {
11086 : 0 : switch (TREE_CODE (_q41))
11087 : : {
11088 : 0 : case SSA_NAME:
11089 : 0 : if (gimple *_d3 = get_def (valueize, _q41))
11090 : : {
11091 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
11092 : 0 : switch (gimple_assign_rhs_code (_a3))
11093 : : {
11094 : 0 : case BIT_NOT_EXPR:
11095 : 0 : {
11096 : 0 : tree _q60 = gimple_assign_rhs1 (_a3);
11097 : 0 : _q60 = do_valueize (valueize, _q60);
11098 : 0 : {
11099 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q60 };
11100 : 0 : if (gimple_simplify_6 (res_op, seq, valueize, type, captures))
11101 : 0 : return true;
11102 : : }
11103 : 0 : break;
11104 : : }
11105 : : default:;
11106 : : }
11107 : : }
11108 : : break;
11109 : : default:;
11110 : : }
11111 : : }
11112 : 0 : switch (TREE_CODE (_q40))
11113 : : {
11114 : 0 : case SSA_NAME:
11115 : 0 : if (gimple *_d3 = get_def (valueize, _q40))
11116 : : {
11117 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
11118 : 0 : switch (gimple_assign_rhs_code (_a3))
11119 : : {
11120 : 0 : case BIT_NOT_EXPR:
11121 : 0 : {
11122 : 0 : tree _q50 = gimple_assign_rhs1 (_a3);
11123 : 0 : _q50 = do_valueize (valueize, _q50);
11124 : 0 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _q20, 0) && types_match (_q41, _q20)))
11125 : : {
11126 : 0 : {
11127 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q20, _q50 };
11128 : 0 : if (gimple_simplify_6 (res_op, seq, valueize, type, captures))
11129 : 0 : return true;
11130 : : }
11131 : : }
11132 : : break;
11133 : : }
11134 : : default:;
11135 : : }
11136 : : }
11137 : : break;
11138 : : default:;
11139 : : }
11140 : 726617 : break;
11141 : : }
11142 : : default:;
11143 : : }
11144 : : }
11145 : : break;
11146 : : default:;
11147 : : }
11148 : : break;
11149 : : }
11150 : : default:;
11151 : : }
11152 : : }
11153 : : break;
11154 : 726617 : default:;
11155 : : }
11156 : 726617 : switch (TREE_CODE (_p1))
11157 : : {
11158 : 496924 : case SSA_NAME:
11159 : 496924 : if (gimple *_d1 = get_def (valueize, _p1))
11160 : : {
11161 : 407805 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
11162 : 454638 : switch (gimple_assign_rhs_code (_a1))
11163 : : {
11164 : 14519 : case BIT_AND_EXPR:
11165 : 14519 : {
11166 : 14519 : tree _q30 = gimple_assign_rhs1 (_a1);
11167 : 14519 : _q30 = do_valueize (valueize, _q30);
11168 : 14519 : tree _q31 = gimple_assign_rhs2 (_a1);
11169 : 14519 : _q31 = do_valueize (valueize, _q31);
11170 : 14519 : if (tree_swap_operands_p (_q30, _q31))
11171 : 599 : std::swap (_q30, _q31);
11172 : 14519 : switch (TREE_CODE (_q30))
11173 : : {
11174 : 14519 : case SSA_NAME:
11175 : 14519 : if (gimple *_d2 = get_def (valueize, _q30))
11176 : : {
11177 : 13528 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
11178 : 10678 : switch (gimple_assign_rhs_code (_a2))
11179 : : {
11180 : 602 : case BIT_NOT_EXPR:
11181 : 602 : {
11182 : 602 : tree _q40 = gimple_assign_rhs1 (_a2);
11183 : 602 : _q40 = do_valueize (valueize, _q40);
11184 : 602 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
11185 : : {
11186 : 1 : {
11187 : 1 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _p0, _q31 };
11188 : 1 : if (gimple_simplify_7 (res_op, seq, valueize, type, captures))
11189 : 1 : return true;
11190 : : }
11191 : : }
11192 : : break;
11193 : : }
11194 : : default:;
11195 : : }
11196 : : }
11197 : : break;
11198 : 14518 : default:;
11199 : : }
11200 : 14518 : switch (TREE_CODE (_q31))
11201 : : {
11202 : 10600 : case SSA_NAME:
11203 : 10600 : if (gimple *_d2 = get_def (valueize, _q31))
11204 : : {
11205 : 10121 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
11206 : 7947 : switch (gimple_assign_rhs_code (_a2))
11207 : : {
11208 : 51 : case BIT_NOT_EXPR:
11209 : 51 : {
11210 : 51 : tree _q50 = gimple_assign_rhs1 (_a2);
11211 : 51 : _q50 = do_valueize (valueize, _q50);
11212 : 51 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
11213 : : {
11214 : 0 : {
11215 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _p0, _q30 };
11216 : 0 : if (gimple_simplify_7 (res_op, seq, valueize, type, captures))
11217 : 0 : return true;
11218 : : }
11219 : : }
11220 : : break;
11221 : : }
11222 : : default:;
11223 : : }
11224 : : }
11225 : : break;
11226 : : default:;
11227 : : }
11228 : 726616 : break;
11229 : : }
11230 : : default:;
11231 : : }
11232 : : }
11233 : : break;
11234 : 726616 : default:;
11235 : : }
11236 : 726616 : switch (TREE_CODE (_p0))
11237 : : {
11238 : 715367 : case SSA_NAME:
11239 : 715367 : if (gimple *_d1 = get_def (valueize, _p0))
11240 : : {
11241 : 585643 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
11242 : 649235 : switch (gimple_assign_rhs_code (_a1))
11243 : : {
11244 : 18600 : case PLUS_EXPR:
11245 : 18600 : {
11246 : 18600 : tree _q20 = gimple_assign_rhs1 (_a1);
11247 : 18600 : _q20 = do_valueize (valueize, _q20);
11248 : 18600 : tree _q21 = gimple_assign_rhs2 (_a1);
11249 : 18600 : _q21 = do_valueize (valueize, _q21);
11250 : 18600 : if (tree_swap_operands_p (_q20, _q21))
11251 : 1295 : std::swap (_q20, _q21);
11252 : 18600 : if (integer_minus_onep (_q21))
11253 : : {
11254 : 2098 : switch (TREE_CODE (_p1))
11255 : : {
11256 : 1735 : case SSA_NAME:
11257 : 1735 : if (gimple *_d2 = get_def (valueize, _p1))
11258 : : {
11259 : 1658 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
11260 : 1396 : switch (gimple_assign_rhs_code (_a2))
11261 : : {
11262 : 1 : case NEGATE_EXPR:
11263 : 1 : {
11264 : 1 : tree _q50 = gimple_assign_rhs1 (_a2);
11265 : 1 : _q50 = do_valueize (valueize, _q50);
11266 : 1 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
11267 : : {
11268 : 1 : {
11269 : 1 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
11270 : 1 : if (gimple_simplify_8 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
11271 : 1 : return true;
11272 : : }
11273 : : }
11274 : : break;
11275 : : }
11276 : : default:;
11277 : : }
11278 : : }
11279 : : break;
11280 : : default:;
11281 : : }
11282 : : }
11283 : 726595 : break;
11284 : : }
11285 : 3262 : case NEGATE_EXPR:
11286 : 3262 : {
11287 : 3262 : tree _q20 = gimple_assign_rhs1 (_a1);
11288 : 3262 : _q20 = do_valueize (valueize, _q20);
11289 : 3262 : switch (TREE_CODE (_p1))
11290 : : {
11291 : 1283 : case SSA_NAME:
11292 : 1283 : if (gimple *_d2 = get_def (valueize, _p1))
11293 : : {
11294 : 1249 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
11295 : 1466 : switch (gimple_assign_rhs_code (_a2))
11296 : : {
11297 : 0 : case PLUS_EXPR:
11298 : 0 : {
11299 : 0 : tree _q40 = gimple_assign_rhs1 (_a2);
11300 : 0 : _q40 = do_valueize (valueize, _q40);
11301 : 0 : tree _q41 = gimple_assign_rhs2 (_a2);
11302 : 0 : _q41 = do_valueize (valueize, _q41);
11303 : 0 : if (tree_swap_operands_p (_q40, _q41))
11304 : 0 : std::swap (_q40, _q41);
11305 : 0 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
11306 : : {
11307 : 0 : if (integer_minus_onep (_q41))
11308 : : {
11309 : 0 : {
11310 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
11311 : 0 : if (gimple_simplify_9 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
11312 : 0 : return true;
11313 : : }
11314 : : }
11315 : : }
11316 : 726595 : break;
11317 : : }
11318 : 0 : case MINUS_EXPR:
11319 : 0 : {
11320 : 0 : tree _q40 = gimple_assign_rhs1 (_a2);
11321 : 0 : _q40 = do_valueize (valueize, _q40);
11322 : 0 : tree _q41 = gimple_assign_rhs2 (_a2);
11323 : 0 : _q41 = do_valueize (valueize, _q41);
11324 : 0 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _q20, 0) && types_match (_q40, _q20)))
11325 : : {
11326 : 0 : if (integer_onep (_q41))
11327 : : {
11328 : 0 : {
11329 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
11330 : 0 : if (gimple_simplify_10 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
11331 : 0 : return true;
11332 : : }
11333 : : }
11334 : : }
11335 : : break;
11336 : : }
11337 : : default:;
11338 : : }
11339 : : }
11340 : : break;
11341 : : default:;
11342 : : }
11343 : : break;
11344 : : }
11345 : 3362 : case MINUS_EXPR:
11346 : 3362 : {
11347 : 3362 : tree _q20 = gimple_assign_rhs1 (_a1);
11348 : 3362 : _q20 = do_valueize (valueize, _q20);
11349 : 3362 : tree _q21 = gimple_assign_rhs2 (_a1);
11350 : 3362 : _q21 = do_valueize (valueize, _q21);
11351 : 3362 : if (integer_onep (_q21))
11352 : : {
11353 : 5 : switch (TREE_CODE (_p1))
11354 : : {
11355 : 4 : case SSA_NAME:
11356 : 4 : if (gimple *_d2 = get_def (valueize, _p1))
11357 : : {
11358 : 4 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
11359 : 6 : switch (gimple_assign_rhs_code (_a2))
11360 : : {
11361 : 2 : case NEGATE_EXPR:
11362 : 2 : {
11363 : 2 : tree _q50 = gimple_assign_rhs1 (_a2);
11364 : 2 : _q50 = do_valueize (valueize, _q50);
11365 : 2 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
11366 : : {
11367 : 2 : {
11368 : 2 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
11369 : 2 : if (gimple_simplify_11 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
11370 : 2 : return true;
11371 : : }
11372 : : }
11373 : : break;
11374 : : }
11375 : : default:;
11376 : : }
11377 : : }
11378 : : break;
11379 : : default:;
11380 : : }
11381 : : }
11382 : : break;
11383 : : }
11384 : 14791 : case BIT_IOR_EXPR:
11385 : 14791 : {
11386 : 14791 : tree _q20 = gimple_assign_rhs1 (_a1);
11387 : 14791 : _q20 = do_valueize (valueize, _q20);
11388 : 14791 : tree _q21 = gimple_assign_rhs2 (_a1);
11389 : 14791 : _q21 = do_valueize (valueize, _q21);
11390 : 14791 : if (tree_swap_operands_p (_q20, _q21))
11391 : 758 : std::swap (_q20, _q21);
11392 : 14791 : switch (TREE_CODE (_q20))
11393 : : {
11394 : 14791 : case SSA_NAME:
11395 : 14791 : if (gimple *_d2 = get_def (valueize, _q20))
11396 : : {
11397 : 14520 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
11398 : 12906 : switch (gimple_assign_rhs_code (_a2))
11399 : : {
11400 : 4011 : case BIT_NOT_EXPR:
11401 : 4011 : {
11402 : 4011 : tree _q30 = gimple_assign_rhs1 (_a2);
11403 : 4011 : _q30 = do_valueize (valueize, _q30);
11404 : 4011 : {
11405 : 4011 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _p1 };
11406 : 4011 : if (gimple_simplify_12 (res_op, seq, valueize, type, captures))
11407 : 3 : return true;
11408 : : }
11409 : 4008 : break;
11410 : : }
11411 : : default:;
11412 : : }
11413 : : }
11414 : : break;
11415 : 14788 : default:;
11416 : : }
11417 : 14788 : switch (TREE_CODE (_q21))
11418 : : {
11419 : 14353 : case SSA_NAME:
11420 : 14353 : if (gimple *_d2 = get_def (valueize, _q21))
11421 : : {
11422 : 13682 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
11423 : 6664 : switch (gimple_assign_rhs_code (_a2))
11424 : : {
11425 : 878 : case BIT_NOT_EXPR:
11426 : 878 : {
11427 : 878 : tree _q40 = gimple_assign_rhs1 (_a2);
11428 : 878 : _q40 = do_valueize (valueize, _q40);
11429 : 878 : {
11430 : 878 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q40, _q20, _p1 };
11431 : 878 : if (gimple_simplify_12 (res_op, seq, valueize, type, captures))
11432 : 15 : return true;
11433 : : }
11434 : 863 : break;
11435 : : }
11436 : : default:;
11437 : : }
11438 : : }
11439 : : break;
11440 : : default:;
11441 : : }
11442 : 726595 : break;
11443 : : }
11444 : : default:;
11445 : : }
11446 : : }
11447 : : break;
11448 : 726595 : default:;
11449 : : }
11450 : 726595 : switch (TREE_CODE (_p1))
11451 : : {
11452 : 496920 : case SSA_NAME:
11453 : 496920 : if (gimple *_d1 = get_def (valueize, _p1))
11454 : : {
11455 : 407801 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
11456 : 454634 : switch (gimple_assign_rhs_code (_a1))
11457 : : {
11458 : 6260 : case BIT_IOR_EXPR:
11459 : 6260 : {
11460 : 6260 : tree _q30 = gimple_assign_rhs1 (_a1);
11461 : 6260 : _q30 = do_valueize (valueize, _q30);
11462 : 6260 : tree _q31 = gimple_assign_rhs2 (_a1);
11463 : 6260 : _q31 = do_valueize (valueize, _q31);
11464 : 6260 : if (tree_swap_operands_p (_q30, _q31))
11465 : 387 : std::swap (_q30, _q31);
11466 : 6260 : switch (TREE_CODE (_q30))
11467 : : {
11468 : 6260 : case SSA_NAME:
11469 : 6260 : if (gimple *_d2 = get_def (valueize, _q30))
11470 : : {
11471 : 5683 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
11472 : 3089 : switch (gimple_assign_rhs_code (_a2))
11473 : : {
11474 : 408 : case BIT_NOT_EXPR:
11475 : 408 : {
11476 : 408 : tree _q40 = gimple_assign_rhs1 (_a2);
11477 : 408 : _q40 = do_valueize (valueize, _q40);
11478 : 408 : {
11479 : 408 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q30, _q40, _q31, _p0 };
11480 : 408 : if (gimple_simplify_12 (res_op, seq, valueize, type, captures))
11481 : 0 : return true;
11482 : : }
11483 : 408 : break;
11484 : : }
11485 : : default:;
11486 : : }
11487 : : }
11488 : : break;
11489 : 6260 : default:;
11490 : : }
11491 : 6260 : switch (TREE_CODE (_q31))
11492 : : {
11493 : 6130 : case SSA_NAME:
11494 : 6130 : if (gimple *_d2 = get_def (valueize, _q31))
11495 : : {
11496 : 5799 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
11497 : 3177 : switch (gimple_assign_rhs_code (_a2))
11498 : : {
11499 : 640 : case BIT_NOT_EXPR:
11500 : 640 : {
11501 : 640 : tree _q50 = gimple_assign_rhs1 (_a2);
11502 : 640 : _q50 = do_valueize (valueize, _q50);
11503 : 640 : {
11504 : 640 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q31, _q50, _q30, _p0 };
11505 : 640 : if (gimple_simplify_12 (res_op, seq, valueize, type, captures))
11506 : 0 : return true;
11507 : : }
11508 : 640 : break;
11509 : : }
11510 : : default:;
11511 : : }
11512 : : }
11513 : : break;
11514 : : default:;
11515 : : }
11516 : 726595 : break;
11517 : : }
11518 : : default:;
11519 : : }
11520 : : }
11521 : : break;
11522 : 726595 : default:;
11523 : : }
11524 : 726595 : switch (TREE_CODE (_p0))
11525 : : {
11526 : 715346 : case SSA_NAME:
11527 : 715346 : if (gimple *_d1 = get_def (valueize, _p0))
11528 : : {
11529 : 585622 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
11530 : 649214 : switch (gimple_assign_rhs_code (_a1))
11531 : : {
11532 : 32923 : case BIT_AND_EXPR:
11533 : 32923 : {
11534 : 32923 : tree _q20 = gimple_assign_rhs1 (_a1);
11535 : 32923 : _q20 = do_valueize (valueize, _q20);
11536 : 32923 : tree _q21 = gimple_assign_rhs2 (_a1);
11537 : 32923 : _q21 = do_valueize (valueize, _q21);
11538 : 32923 : if (tree_swap_operands_p (_q20, _q21))
11539 : 1270 : std::swap (_q20, _q21);
11540 : 32923 : switch (TREE_CODE (_q20))
11541 : : {
11542 : 32923 : case SSA_NAME:
11543 : 32923 : if (gimple *_d2 = get_def (valueize, _q20))
11544 : : {
11545 : 32106 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
11546 : 33321 : switch (gimple_assign_rhs_code (_a2))
11547 : : {
11548 : 602 : case BIT_NOT_EXPR:
11549 : 602 : {
11550 : 602 : tree _q30 = gimple_assign_rhs1 (_a2);
11551 : 602 : _q30 = do_valueize (valueize, _q30);
11552 : 602 : {
11553 : 602 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q21, _p1 };
11554 : 602 : if (gimple_simplify_13 (res_op, seq, valueize, type, captures))
11555 : 1 : return true;
11556 : : }
11557 : 601 : break;
11558 : : }
11559 : : default:;
11560 : : }
11561 : : }
11562 : : break;
11563 : 32922 : default:;
11564 : : }
11565 : 32922 : switch (TREE_CODE (_q21))
11566 : : {
11567 : 18124 : case SSA_NAME:
11568 : 18124 : if (gimple *_d2 = get_def (valueize, _q21))
11569 : : {
11570 : 16684 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
11571 : 11482 : switch (gimple_assign_rhs_code (_a2))
11572 : : {
11573 : 583 : case BIT_NOT_EXPR:
11574 : 583 : {
11575 : 583 : tree _q40 = gimple_assign_rhs1 (_a2);
11576 : 583 : _q40 = do_valueize (valueize, _q40);
11577 : 583 : {
11578 : 583 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q21, _q40, _q20, _p1 };
11579 : 583 : if (gimple_simplify_13 (res_op, seq, valueize, type, captures))
11580 : 0 : return true;
11581 : : }
11582 : 583 : break;
11583 : : }
11584 : : default:;
11585 : : }
11586 : : }
11587 : : break;
11588 : : default:;
11589 : : }
11590 : 726594 : break;
11591 : : }
11592 : : default:;
11593 : : }
11594 : : }
11595 : : break;
11596 : 726594 : default:;
11597 : : }
11598 : 726594 : switch (TREE_CODE (_p1))
11599 : : {
11600 : 496920 : case SSA_NAME:
11601 : 496920 : if (gimple *_d1 = get_def (valueize, _p1))
11602 : : {
11603 : 407801 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
11604 : 454634 : switch (gimple_assign_rhs_code (_a1))
11605 : : {
11606 : 14518 : case BIT_AND_EXPR:
11607 : 14518 : {
11608 : 14518 : tree _q30 = gimple_assign_rhs1 (_a1);
11609 : 14518 : _q30 = do_valueize (valueize, _q30);
11610 : 14518 : tree _q31 = gimple_assign_rhs2 (_a1);
11611 : 14518 : _q31 = do_valueize (valueize, _q31);
11612 : 14518 : if (tree_swap_operands_p (_q30, _q31))
11613 : 599 : std::swap (_q30, _q31);
11614 : 14518 : switch (TREE_CODE (_q30))
11615 : : {
11616 : 14518 : case SSA_NAME:
11617 : 14518 : if (gimple *_d2 = get_def (valueize, _q30))
11618 : : {
11619 : 13527 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
11620 : 10677 : switch (gimple_assign_rhs_code (_a2))
11621 : : {
11622 : 601 : case BIT_NOT_EXPR:
11623 : 601 : {
11624 : 601 : tree _q40 = gimple_assign_rhs1 (_a2);
11625 : 601 : _q40 = do_valueize (valueize, _q40);
11626 : 601 : {
11627 : 601 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q30, _q40, _q31, _p0 };
11628 : 601 : if (gimple_simplify_13 (res_op, seq, valueize, type, captures))
11629 : 1 : return true;
11630 : : }
11631 : 600 : break;
11632 : : }
11633 : : default:;
11634 : : }
11635 : : }
11636 : : break;
11637 : 14517 : default:;
11638 : : }
11639 : 14517 : switch (TREE_CODE (_q31))
11640 : : {
11641 : 10599 : case SSA_NAME:
11642 : 10599 : if (gimple *_d2 = get_def (valueize, _q31))
11643 : : {
11644 : 10120 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
11645 : 7947 : switch (gimple_assign_rhs_code (_a2))
11646 : : {
11647 : 51 : case BIT_NOT_EXPR:
11648 : 51 : {
11649 : 51 : tree _q50 = gimple_assign_rhs1 (_a2);
11650 : 51 : _q50 = do_valueize (valueize, _q50);
11651 : 51 : {
11652 : 51 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q31, _q50, _q30, _p0 };
11653 : 51 : if (gimple_simplify_13 (res_op, seq, valueize, type, captures))
11654 : 0 : return true;
11655 : : }
11656 : 51 : break;
11657 : : }
11658 : : default:;
11659 : : }
11660 : : }
11661 : : break;
11662 : : default:;
11663 : : }
11664 : 726593 : break;
11665 : : }
11666 : : default:;
11667 : : }
11668 : : }
11669 : : break;
11670 : 726593 : default:;
11671 : : }
11672 : 726593 : switch (TREE_CODE (_p0))
11673 : : {
11674 : 715344 : case SSA_NAME:
11675 : 715344 : if (gimple *_d1 = get_def (valueize, _p0))
11676 : : {
11677 : 585620 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
11678 : 649213 : switch (gimple_assign_rhs_code (_a1))
11679 : : {
11680 : 59143 : CASE_CONVERT:
11681 : 59143 : {
11682 : 59143 : tree _q20 = gimple_assign_rhs1 (_a1);
11683 : 59143 : _q20 = do_valueize (valueize, _q20);
11684 : 59143 : switch (TREE_CODE (_p1))
11685 : : {
11686 : 45915 : case SSA_NAME:
11687 : 45915 : if (gimple *_d2 = get_def (valueize, _p1))
11688 : : {
11689 : 44698 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
11690 : 41026 : switch (gimple_assign_rhs_code (_a2))
11691 : : {
11692 : 17543 : CASE_CONVERT:
11693 : 17543 : {
11694 : 17543 : tree _q40 = gimple_assign_rhs1 (_a2);
11695 : 17543 : _q40 = do_valueize (valueize, _q40);
11696 : 17543 : {
11697 : 17543 : tree _q40_pops[1];
11698 : 17543 : if (gimple_maybe_bit_not (_q40, _q40_pops, valueize))
11699 : : {
11700 : 494 : tree _q50 = _q40_pops[0];
11701 : 494 : {
11702 : 494 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q50 };
11703 : 494 : if (gimple_simplify_14 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
11704 : 0 : return true;
11705 : : }
11706 : : }
11707 : : }
11708 : 17543 : break;
11709 : : }
11710 : : default:;
11711 : : }
11712 : : }
11713 : : break;
11714 : 59143 : default:;
11715 : : }
11716 : 59143 : {
11717 : 59143 : tree _q20_pops[1];
11718 : 59143 : if (gimple_maybe_bit_not (_q20, _q20_pops, valueize))
11719 : : {
11720 : 12171 : tree _q30 = _q20_pops[0];
11721 : 12171 : switch (TREE_CODE (_p1))
11722 : : {
11723 : 7949 : case SSA_NAME:
11724 : 7949 : if (gimple *_d2 = get_def (valueize, _p1))
11725 : : {
11726 : 7876 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
11727 : 4107 : switch (gimple_assign_rhs_code (_a2))
11728 : : {
11729 : 759 : CASE_CONVERT:
11730 : 759 : {
11731 : 759 : tree _q50 = gimple_assign_rhs1 (_a2);
11732 : 759 : _q50 = do_valueize (valueize, _q50);
11733 : 759 : {
11734 : 759 : tree captures[2] ATTRIBUTE_UNUSED = { _q50, _q30 };
11735 : 759 : if (gimple_simplify_14 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
11736 : 0 : return true;
11737 : : }
11738 : 759 : break;
11739 : : }
11740 : : default:;
11741 : : }
11742 : : }
11743 : : break;
11744 : : default:;
11745 : : }
11746 : : }
11747 : : }
11748 : 59143 : break;
11749 : : }
11750 : : default:;
11751 : : }
11752 : : }
11753 : : break;
11754 : 726593 : default:;
11755 : : }
11756 : 726593 : {
11757 : 726593 : tree _p1_pops[1];
11758 : 726593 : if (gimple_maybe_bit_not (_p1, _p1_pops, valueize))
11759 : : {
11760 : 235141 : tree _q30 = _p1_pops[0];
11761 : 235141 : {
11762 : 235141 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _q30 };
11763 : 235141 : if (gimple_simplify_14 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
11764 : 28 : return true;
11765 : : }
11766 : : }
11767 : : }
11768 : 726565 : {
11769 : 726565 : tree _p0_pops[1];
11770 : 726565 : if (gimple_maybe_bit_not (_p0, _p0_pops, valueize))
11771 : : {
11772 : 101749 : tree _q20 = _p0_pops[0];
11773 : 101749 : {
11774 : 101749 : tree captures[2] ATTRIBUTE_UNUSED = { _p1, _q20 };
11775 : 101749 : if (gimple_simplify_14 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
11776 : 0 : return true;
11777 : : }
11778 : : }
11779 : : }
11780 : 726565 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
11781 : : {
11782 : 1116 : {
11783 : 1116 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
11784 : 1116 : gimple_seq *lseq = seq;
11785 : 1116 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1967;
11786 : 1116 : {
11787 : 1116 : tree tem;
11788 : 1116 : tem = build_zero_cst (type);
11789 : 1116 : res_op->set_value (tem);
11790 : 1116 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1027, __FILE__, __LINE__, true);
11791 : 1116 : return true;
11792 : : }
11793 : 0 : next_after_fail1967:;
11794 : : }
11795 : : }
11796 : 725449 : if (integer_all_onesp (_p1))
11797 : : {
11798 : 95344 : {
11799 : 95344 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
11800 : 95344 : gimple_seq *lseq = seq;
11801 : 95344 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1968;
11802 : 95344 : {
11803 : 95344 : res_op->set_op (BIT_NOT_EXPR, type, 1);
11804 : 95344 : res_op->ops[0] = captures[0];
11805 : 95344 : res_op->resimplify (lseq, valueize);
11806 : 95344 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1028, __FILE__, __LINE__, true);
11807 : 95344 : return true;
11808 : : }
11809 : 0 : next_after_fail1968:;
11810 : : }
11811 : : }
11812 : 630105 : switch (TREE_CODE (_p0))
11813 : : {
11814 : 618856 : case SSA_NAME:
11815 : 618856 : if (gimple *_d1 = get_def (valueize, _p0))
11816 : : {
11817 : 491684 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
11818 : 555607 : switch (gimple_assign_rhs_code (_a1))
11819 : : {
11820 : 14237 : case BIT_IOR_EXPR:
11821 : 14237 : {
11822 : 14237 : tree _q20 = gimple_assign_rhs1 (_a1);
11823 : 14237 : _q20 = do_valueize (valueize, _q20);
11824 : 14237 : tree _q21 = gimple_assign_rhs2 (_a1);
11825 : 14237 : _q21 = do_valueize (valueize, _q21);
11826 : 14237 : if (tree_swap_operands_p (_q20, _q21))
11827 : 758 : std::swap (_q20, _q21);
11828 : 14237 : switch (TREE_CODE (_p1))
11829 : : {
11830 : 13416 : case SSA_NAME:
11831 : 13416 : if (gimple *_d2 = get_def (valueize, _p1))
11832 : : {
11833 : 12086 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
11834 : 8073 : switch (gimple_assign_rhs_code (_a2))
11835 : : {
11836 : 1423 : case BIT_IOR_EXPR:
11837 : 1423 : {
11838 : 1423 : tree _q50 = gimple_assign_rhs1 (_a2);
11839 : 1423 : _q50 = do_valueize (valueize, _q50);
11840 : 1423 : tree _q51 = gimple_assign_rhs2 (_a2);
11841 : 1423 : _q51 = do_valueize (valueize, _q51);
11842 : 1423 : if (tree_swap_operands_p (_q50, _q51))
11843 : 42 : std::swap (_q50, _q51);
11844 : 1423 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
11845 : : {
11846 : 0 : switch (TREE_CODE (_q51))
11847 : : {
11848 : 0 : case SSA_NAME:
11849 : 0 : if (gimple *_d3 = get_def (valueize, _q51))
11850 : : {
11851 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
11852 : 0 : switch (gimple_assign_rhs_code (_a3))
11853 : : {
11854 : 0 : case BIT_NOT_EXPR:
11855 : 0 : {
11856 : 0 : tree _q70 = gimple_assign_rhs1 (_a3);
11857 : 0 : _q70 = do_valueize (valueize, _q70);
11858 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
11859 : : {
11860 : 0 : {
11861 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11862 : 0 : if (gimple_simplify_15 (res_op, seq, valueize, type, captures))
11863 : 0 : return true;
11864 : : }
11865 : : }
11866 : : break;
11867 : : }
11868 : : default:;
11869 : : }
11870 : : }
11871 : : break;
11872 : : default:;
11873 : : }
11874 : : }
11875 : 1423 : switch (TREE_CODE (_q50))
11876 : : {
11877 : 1423 : case SSA_NAME:
11878 : 1423 : if (gimple *_d3 = get_def (valueize, _q50))
11879 : : {
11880 : 1231 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
11881 : 583 : switch (gimple_assign_rhs_code (_a3))
11882 : : {
11883 : 279 : case BIT_NOT_EXPR:
11884 : 279 : {
11885 : 279 : tree _q60 = gimple_assign_rhs1 (_a3);
11886 : 279 : _q60 = do_valueize (valueize, _q60);
11887 : 279 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
11888 : : {
11889 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
11890 : : {
11891 : 0 : {
11892 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
11893 : 0 : if (gimple_simplify_15 (res_op, seq, valueize, type, captures))
11894 : 0 : return true;
11895 : : }
11896 : : }
11897 : : }
11898 : 279 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
11899 : : {
11900 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
11901 : : {
11902 : 0 : {
11903 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
11904 : 0 : if (gimple_simplify_15 (res_op, seq, valueize, type, captures))
11905 : 0 : return true;
11906 : : }
11907 : : }
11908 : : }
11909 : : break;
11910 : : }
11911 : : default:;
11912 : : }
11913 : : }
11914 : : break;
11915 : 1423 : default:;
11916 : : }
11917 : 1423 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
11918 : : {
11919 : 0 : switch (TREE_CODE (_q51))
11920 : : {
11921 : 0 : case SSA_NAME:
11922 : 0 : if (gimple *_d3 = get_def (valueize, _q51))
11923 : : {
11924 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
11925 : 0 : switch (gimple_assign_rhs_code (_a3))
11926 : : {
11927 : 0 : case BIT_NOT_EXPR:
11928 : 0 : {
11929 : 0 : tree _q70 = gimple_assign_rhs1 (_a3);
11930 : 0 : _q70 = do_valueize (valueize, _q70);
11931 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
11932 : : {
11933 : 0 : {
11934 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
11935 : 0 : if (gimple_simplify_15 (res_op, seq, valueize, type, captures))
11936 : 0 : return true;
11937 : : }
11938 : : }
11939 : : break;
11940 : : }
11941 : : default:;
11942 : : }
11943 : : }
11944 : : break;
11945 : : default:;
11946 : : }
11947 : : }
11948 : 14237 : break;
11949 : : }
11950 : : default:;
11951 : : }
11952 : : }
11953 : : break;
11954 : 14237 : default:;
11955 : : }
11956 : 14237 : switch (TREE_CODE (_q21))
11957 : : {
11958 : 13802 : case SSA_NAME:
11959 : 13802 : if (gimple *_d2 = get_def (valueize, _q21))
11960 : : {
11961 : 13131 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
11962 : 6112 : switch (gimple_assign_rhs_code (_a2))
11963 : : {
11964 : 855 : case BIT_NOT_EXPR:
11965 : 855 : {
11966 : 855 : tree _q40 = gimple_assign_rhs1 (_a2);
11967 : 855 : _q40 = do_valueize (valueize, _q40);
11968 : 855 : switch (TREE_CODE (_p1))
11969 : : {
11970 : 855 : case SSA_NAME:
11971 : 855 : if (gimple *_d3 = get_def (valueize, _p1))
11972 : : {
11973 : 747 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
11974 : 279 : switch (gimple_assign_rhs_code (_a3))
11975 : : {
11976 : 135 : case BIT_IOR_EXPR:
11977 : 135 : {
11978 : 135 : tree _q60 = gimple_assign_rhs1 (_a3);
11979 : 135 : _q60 = do_valueize (valueize, _q60);
11980 : 135 : tree _q61 = gimple_assign_rhs2 (_a3);
11981 : 135 : _q61 = do_valueize (valueize, _q61);
11982 : 135 : if (tree_swap_operands_p (_q60, _q61))
11983 : 0 : std::swap (_q60, _q61);
11984 : 135 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
11985 : : {
11986 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
11987 : : {
11988 : 0 : {
11989 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
11990 : 0 : if (gimple_simplify_15 (res_op, seq, valueize, type, captures))
11991 : 0 : return true;
11992 : : }
11993 : : }
11994 : : }
11995 : 14237 : break;
11996 : : }
11997 : : default:;
11998 : : }
11999 : : }
12000 : : break;
12001 : : default:;
12002 : : }
12003 : : break;
12004 : : }
12005 : : default:;
12006 : : }
12007 : : }
12008 : : break;
12009 : 14237 : default:;
12010 : : }
12011 : 14237 : switch (TREE_CODE (_q20))
12012 : : {
12013 : 14237 : case SSA_NAME:
12014 : 14237 : if (gimple *_d2 = get_def (valueize, _q20))
12015 : : {
12016 : 13966 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
12017 : 12351 : switch (gimple_assign_rhs_code (_a2))
12018 : : {
12019 : 3989 : case BIT_NOT_EXPR:
12020 : 3989 : {
12021 : 3989 : tree _q30 = gimple_assign_rhs1 (_a2);
12022 : 3989 : _q30 = do_valueize (valueize, _q30);
12023 : 3989 : switch (TREE_CODE (_p1))
12024 : : {
12025 : 3989 : case SSA_NAME:
12026 : 3989 : if (gimple *_d3 = get_def (valueize, _p1))
12027 : : {
12028 : 3566 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
12029 : 2693 : switch (gimple_assign_rhs_code (_a3))
12030 : : {
12031 : 405 : case BIT_IOR_EXPR:
12032 : 405 : {
12033 : 405 : tree _q60 = gimple_assign_rhs1 (_a3);
12034 : 405 : _q60 = do_valueize (valueize, _q60);
12035 : 405 : tree _q61 = gimple_assign_rhs2 (_a3);
12036 : 405 : _q61 = do_valueize (valueize, _q61);
12037 : 405 : if (tree_swap_operands_p (_q60, _q61))
12038 : 9 : std::swap (_q60, _q61);
12039 : 405 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
12040 : : {
12041 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
12042 : : {
12043 : 0 : {
12044 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q30 };
12045 : 0 : if (gimple_simplify_15 (res_op, seq, valueize, type, captures))
12046 : 0 : return true;
12047 : : }
12048 : : }
12049 : : }
12050 : 405 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
12051 : : {
12052 : 270 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
12053 : : {
12054 : 0 : {
12055 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q30 };
12056 : 0 : if (gimple_simplify_15 (res_op, seq, valueize, type, captures))
12057 : 0 : return true;
12058 : : }
12059 : : }
12060 : 270 : switch (TREE_CODE (_q61))
12061 : : {
12062 : 270 : case SSA_NAME:
12063 : 270 : if (gimple *_d4 = get_def (valueize, _q61))
12064 : : {
12065 : 270 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
12066 : 0 : switch (gimple_assign_rhs_code (_a4))
12067 : : {
12068 : 0 : case BIT_NOT_EXPR:
12069 : 0 : {
12070 : 0 : tree _q80 = gimple_assign_rhs1 (_a4);
12071 : 0 : _q80 = do_valueize (valueize, _q80);
12072 : 0 : if ((_q80 == _q21 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q21, 0) && types_match (_q80, _q21)))
12073 : : {
12074 : 0 : {
12075 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q21 };
12076 : 0 : if (gimple_simplify_16 (res_op, seq, valueize, type, captures))
12077 : 0 : return true;
12078 : : }
12079 : : }
12080 : : break;
12081 : : }
12082 : : default:;
12083 : : }
12084 : : }
12085 : : break;
12086 : : default:;
12087 : : }
12088 : : }
12089 : 405 : switch (TREE_CODE (_q60))
12090 : : {
12091 : 405 : case SSA_NAME:
12092 : 405 : if (gimple *_d4 = get_def (valueize, _q60))
12093 : : {
12094 : 324 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
12095 : 0 : switch (gimple_assign_rhs_code (_a4))
12096 : : {
12097 : 0 : case BIT_NOT_EXPR:
12098 : 0 : {
12099 : 0 : tree _q70 = gimple_assign_rhs1 (_a4);
12100 : 0 : _q70 = do_valueize (valueize, _q70);
12101 : 0 : if ((_q70 == _q21 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q21, 0) && types_match (_q70, _q21)))
12102 : : {
12103 : 0 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
12104 : : {
12105 : 0 : {
12106 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q21 };
12107 : 0 : if (gimple_simplify_16 (res_op, seq, valueize, type, captures))
12108 : 0 : return true;
12109 : : }
12110 : : }
12111 : : }
12112 : : break;
12113 : : }
12114 : : default:;
12115 : : }
12116 : : }
12117 : : break;
12118 : : default:;
12119 : : }
12120 : 3989 : break;
12121 : : }
12122 : 144 : case BIT_XOR_EXPR:
12123 : 144 : {
12124 : 144 : tree _q60 = gimple_assign_rhs1 (_a3);
12125 : 144 : _q60 = do_valueize (valueize, _q60);
12126 : 144 : tree _q61 = gimple_assign_rhs2 (_a3);
12127 : 144 : _q61 = do_valueize (valueize, _q61);
12128 : 144 : if (tree_swap_operands_p (_q60, _q61))
12129 : 0 : std::swap (_q60, _q61);
12130 : 144 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
12131 : : {
12132 : 0 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
12133 : : {
12134 : 0 : {
12135 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q30, _q21, _p1 };
12136 : 0 : if (gimple_simplify_17 (res_op, seq, valueize, type, captures))
12137 : 0 : return true;
12138 : : }
12139 : : }
12140 : : }
12141 : 3989 : break;
12142 : : }
12143 : : default:;
12144 : : }
12145 : : }
12146 : : break;
12147 : 3989 : default:;
12148 : : }
12149 : 3989 : {
12150 : 3989 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q21, _p1 };
12151 : 3989 : if (gimple_simplify_18 (res_op, seq, valueize, type, captures))
12152 : 0 : return true;
12153 : : }
12154 : 3989 : break;
12155 : : }
12156 : : default:;
12157 : : }
12158 : : }
12159 : : break;
12160 : 14237 : default:;
12161 : : }
12162 : 14237 : switch (TREE_CODE (_q21))
12163 : : {
12164 : 13802 : case SSA_NAME:
12165 : 13802 : if (gimple *_d2 = get_def (valueize, _q21))
12166 : : {
12167 : 13131 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
12168 : 6112 : switch (gimple_assign_rhs_code (_a2))
12169 : : {
12170 : 855 : case BIT_NOT_EXPR:
12171 : 855 : {
12172 : 855 : tree _q40 = gimple_assign_rhs1 (_a2);
12173 : 855 : _q40 = do_valueize (valueize, _q40);
12174 : 855 : switch (TREE_CODE (_p1))
12175 : : {
12176 : 855 : case SSA_NAME:
12177 : 855 : if (gimple *_d3 = get_def (valueize, _p1))
12178 : : {
12179 : 747 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
12180 : 279 : switch (gimple_assign_rhs_code (_a3))
12181 : : {
12182 : 135 : case BIT_IOR_EXPR:
12183 : 135 : {
12184 : 135 : tree _q60 = gimple_assign_rhs1 (_a3);
12185 : 135 : _q60 = do_valueize (valueize, _q60);
12186 : 135 : tree _q61 = gimple_assign_rhs2 (_a3);
12187 : 135 : _q61 = do_valueize (valueize, _q61);
12188 : 135 : if (tree_swap_operands_p (_q60, _q61))
12189 : 0 : std::swap (_q60, _q61);
12190 : 135 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
12191 : : {
12192 : 0 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
12193 : : {
12194 : 0 : {
12195 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
12196 : 0 : if (gimple_simplify_15 (res_op, seq, valueize, type, captures))
12197 : 0 : return true;
12198 : : }
12199 : : }
12200 : : }
12201 : 14237 : break;
12202 : : }
12203 : 144 : case BIT_XOR_EXPR:
12204 : 144 : {
12205 : 144 : tree _q60 = gimple_assign_rhs1 (_a3);
12206 : 144 : _q60 = do_valueize (valueize, _q60);
12207 : 144 : tree _q61 = gimple_assign_rhs2 (_a3);
12208 : 144 : _q61 = do_valueize (valueize, _q61);
12209 : 144 : if (tree_swap_operands_p (_q60, _q61))
12210 : 0 : std::swap (_q60, _q61);
12211 : 144 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
12212 : : {
12213 : 0 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
12214 : : {
12215 : 0 : {
12216 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q40, _q20, _p1 };
12217 : 0 : if (gimple_simplify_17 (res_op, seq, valueize, type, captures))
12218 : 0 : return true;
12219 : : }
12220 : : }
12221 : : }
12222 : 14237 : break;
12223 : : }
12224 : : default:;
12225 : : }
12226 : : }
12227 : : break;
12228 : : default:;
12229 : : }
12230 : : break;
12231 : : }
12232 : : default:;
12233 : : }
12234 : : }
12235 : : break;
12236 : 14237 : default:;
12237 : : }
12238 : 14237 : switch (TREE_CODE (_p1))
12239 : : {
12240 : 13416 : case SSA_NAME:
12241 : 13416 : if (gimple *_d2 = get_def (valueize, _p1))
12242 : : {
12243 : 12086 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
12244 : 8073 : switch (gimple_assign_rhs_code (_a2))
12245 : : {
12246 : 964 : case BIT_AND_EXPR:
12247 : 964 : {
12248 : 964 : tree _q50 = gimple_assign_rhs1 (_a2);
12249 : 964 : _q50 = do_valueize (valueize, _q50);
12250 : 964 : tree _q51 = gimple_assign_rhs2 (_a2);
12251 : 964 : _q51 = do_valueize (valueize, _q51);
12252 : 964 : if (tree_swap_operands_p (_q50, _q51))
12253 : 27 : std::swap (_q50, _q51);
12254 : 964 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
12255 : : {
12256 : 144 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
12257 : : {
12258 : 0 : {
12259 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
12260 : 0 : if (gimple_simplify_19 (res_op, seq, valueize, type, captures))
12261 : 0 : return true;
12262 : : }
12263 : : }
12264 : : }
12265 : 14229 : break;
12266 : : }
12267 : 1165 : case BIT_XOR_EXPR:
12268 : 1165 : {
12269 : 1165 : tree _q50 = gimple_assign_rhs1 (_a2);
12270 : 1165 : _q50 = do_valueize (valueize, _q50);
12271 : 1165 : tree _q51 = gimple_assign_rhs2 (_a2);
12272 : 1165 : _q51 = do_valueize (valueize, _q51);
12273 : 1165 : if (tree_swap_operands_p (_q50, _q51))
12274 : 10 : std::swap (_q50, _q51);
12275 : 1165 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
12276 : : {
12277 : 8 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
12278 : : {
12279 : 8 : {
12280 : 8 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
12281 : 8 : if (gimple_simplify_20 (res_op, seq, valueize, type, captures))
12282 : 8 : return true;
12283 : : }
12284 : : }
12285 : : }
12286 : 14229 : break;
12287 : : }
12288 : : default:;
12289 : : }
12290 : : }
12291 : : break;
12292 : 14229 : default:;
12293 : : }
12294 : 14229 : switch (TREE_CODE (_q21))
12295 : : {
12296 : 13794 : case SSA_NAME:
12297 : 13794 : if (gimple *_d2 = get_def (valueize, _q21))
12298 : : {
12299 : 13123 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
12300 : 6112 : switch (gimple_assign_rhs_code (_a2))
12301 : : {
12302 : 855 : case BIT_NOT_EXPR:
12303 : 855 : {
12304 : 855 : tree _q40 = gimple_assign_rhs1 (_a2);
12305 : 855 : _q40 = do_valueize (valueize, _q40);
12306 : 855 : switch (TREE_CODE (_p1))
12307 : : {
12308 : 855 : case SSA_NAME:
12309 : 855 : if (gimple *_d3 = get_def (valueize, _p1))
12310 : : {
12311 : 747 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
12312 : 279 : switch (gimple_assign_rhs_code (_a3))
12313 : : {
12314 : 135 : case BIT_IOR_EXPR:
12315 : 135 : {
12316 : 135 : tree _q60 = gimple_assign_rhs1 (_a3);
12317 : 135 : _q60 = do_valueize (valueize, _q60);
12318 : 135 : tree _q61 = gimple_assign_rhs2 (_a3);
12319 : 135 : _q61 = do_valueize (valueize, _q61);
12320 : 135 : if (tree_swap_operands_p (_q60, _q61))
12321 : 0 : std::swap (_q60, _q61);
12322 : 135 : if ((_q60 == _q40 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q40, 0) && types_match (_q60, _q40)))
12323 : : {
12324 : 0 : switch (TREE_CODE (_q61))
12325 : : {
12326 : 0 : case SSA_NAME:
12327 : 0 : if (gimple *_d4 = get_def (valueize, _q61))
12328 : : {
12329 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
12330 : 0 : switch (gimple_assign_rhs_code (_a4))
12331 : : {
12332 : 0 : case BIT_NOT_EXPR:
12333 : 0 : {
12334 : 0 : tree _q80 = gimple_assign_rhs1 (_a4);
12335 : 0 : _q80 = do_valueize (valueize, _q80);
12336 : 0 : if ((_q80 == _q20 && ! TREE_SIDE_EFFECTS (_q80)) || (operand_equal_p (_q80, _q20, 0) && types_match (_q80, _q20)))
12337 : : {
12338 : 0 : {
12339 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q20 };
12340 : 0 : if (gimple_simplify_16 (res_op, seq, valueize, type, captures))
12341 : 0 : return true;
12342 : : }
12343 : : }
12344 : : break;
12345 : : }
12346 : : default:;
12347 : : }
12348 : : }
12349 : : break;
12350 : : default:;
12351 : : }
12352 : : }
12353 : 135 : switch (TREE_CODE (_q60))
12354 : : {
12355 : 135 : case SSA_NAME:
12356 : 135 : if (gimple *_d4 = get_def (valueize, _q60))
12357 : : {
12358 : 108 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
12359 : 0 : switch (gimple_assign_rhs_code (_a4))
12360 : : {
12361 : 0 : case BIT_NOT_EXPR:
12362 : 0 : {
12363 : 0 : tree _q70 = gimple_assign_rhs1 (_a4);
12364 : 0 : _q70 = do_valueize (valueize, _q70);
12365 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
12366 : : {
12367 : 0 : if ((_q61 == _q40 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q40, 0) && types_match (_q61, _q40)))
12368 : : {
12369 : 0 : {
12370 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q40, _q20 };
12371 : 0 : if (gimple_simplify_16 (res_op, seq, valueize, type, captures))
12372 : 0 : return true;
12373 : : }
12374 : : }
12375 : : }
12376 : : break;
12377 : : }
12378 : : default:;
12379 : : }
12380 : : }
12381 : : break;
12382 : : default:;
12383 : : }
12384 : 14229 : break;
12385 : : }
12386 : : default:;
12387 : : }
12388 : : }
12389 : : break;
12390 : : default:;
12391 : : }
12392 : : break;
12393 : : }
12394 : : default:;
12395 : : }
12396 : : }
12397 : : break;
12398 : 14229 : default:;
12399 : : }
12400 : 14229 : switch (TREE_CODE (_p1))
12401 : : {
12402 : 13408 : case SSA_NAME:
12403 : 13408 : if (gimple *_d2 = get_def (valueize, _p1))
12404 : : {
12405 : 12078 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
12406 : 8065 : switch (gimple_assign_rhs_code (_a2))
12407 : : {
12408 : 234 : CASE_CONVERT:
12409 : 234 : {
12410 : 234 : tree _q50 = gimple_assign_rhs1 (_a2);
12411 : 234 : _q50 = do_valueize (valueize, _q50);
12412 : 234 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
12413 : : {
12414 : 0 : {
12415 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q20 };
12416 : 0 : if (gimple_simplify_21 (res_op, seq, valueize, type, captures))
12417 : 0 : return true;
12418 : : }
12419 : : }
12420 : 234 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q21, 0))
12421 : : {
12422 : 0 : {
12423 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q21 };
12424 : 0 : if (gimple_simplify_21 (res_op, seq, valueize, type, captures))
12425 : 0 : return true;
12426 : : }
12427 : : }
12428 : : break;
12429 : : }
12430 : : default:;
12431 : : }
12432 : : }
12433 : : break;
12434 : 14229 : default:;
12435 : : }
12436 : 14229 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q20, 0))
12437 : : {
12438 : 73 : {
12439 : 73 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q20 };
12440 : 73 : if (gimple_simplify_21 (res_op, seq, valueize, type, captures))
12441 : 1 : return true;
12442 : : }
12443 : : }
12444 : 14228 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q21, 0))
12445 : : {
12446 : 72 : {
12447 : 72 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q21 };
12448 : 72 : if (gimple_simplify_21 (res_op, seq, valueize, type, captures))
12449 : 0 : return true;
12450 : : }
12451 : : }
12452 : 14228 : {
12453 : 14228 : tree _q20_pops[1];
12454 : 14228 : if (gimple_nop_convert (_q20, _q20_pops, valueize))
12455 : : {
12456 : 26 : tree _q30 = _q20_pops[0];
12457 : 26 : switch (TREE_CODE (_q30))
12458 : : {
12459 : 26 : case SSA_NAME:
12460 : 26 : if (gimple *_d2 = get_def (valueize, _q30))
12461 : : {
12462 : 26 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
12463 : 14 : switch (gimple_assign_rhs_code (_a2))
12464 : : {
12465 : 0 : case BIT_NOT_EXPR:
12466 : 0 : {
12467 : 0 : tree _q40 = gimple_assign_rhs1 (_a2);
12468 : 0 : _q40 = do_valueize (valueize, _q40);
12469 : 0 : {
12470 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q21, _p1 };
12471 : 0 : if (gimple_simplify_18 (res_op, seq, valueize, type, captures))
12472 : 0 : return true;
12473 : : }
12474 : 0 : break;
12475 : : }
12476 : : default:;
12477 : : }
12478 : : }
12479 : : break;
12480 : : default:;
12481 : : }
12482 : : }
12483 : : }
12484 : 14228 : switch (TREE_CODE (_q21))
12485 : : {
12486 : 13793 : case SSA_NAME:
12487 : 13793 : if (gimple *_d2 = get_def (valueize, _q21))
12488 : : {
12489 : 13122 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
12490 : 6111 : switch (gimple_assign_rhs_code (_a2))
12491 : : {
12492 : 855 : case BIT_NOT_EXPR:
12493 : 855 : {
12494 : 855 : tree _q40 = gimple_assign_rhs1 (_a2);
12495 : 855 : _q40 = do_valueize (valueize, _q40);
12496 : 855 : {
12497 : 855 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q20, _p1 };
12498 : 855 : if (gimple_simplify_18 (res_op, seq, valueize, type, captures))
12499 : 0 : return true;
12500 : : }
12501 : 855 : break;
12502 : : }
12503 : : default:;
12504 : : }
12505 : : }
12506 : : break;
12507 : 14228 : default:;
12508 : : }
12509 : 14228 : {
12510 : 14228 : tree _q21_pops[1];
12511 : 14228 : if (gimple_nop_convert (_q21, _q21_pops, valueize))
12512 : : {
12513 : 15 : tree _q40 = _q21_pops[0];
12514 : 15 : switch (TREE_CODE (_q40))
12515 : : {
12516 : 3 : case SSA_NAME:
12517 : 3 : if (gimple *_d2 = get_def (valueize, _q40))
12518 : : {
12519 : 3 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
12520 : 3 : switch (gimple_assign_rhs_code (_a2))
12521 : : {
12522 : 0 : case BIT_NOT_EXPR:
12523 : 0 : {
12524 : 0 : tree _q50 = gimple_assign_rhs1 (_a2);
12525 : 0 : _q50 = do_valueize (valueize, _q50);
12526 : 0 : {
12527 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q20, _p1 };
12528 : 0 : if (gimple_simplify_18 (res_op, seq, valueize, type, captures))
12529 : 0 : return true;
12530 : : }
12531 : 0 : break;
12532 : : }
12533 : : default:;
12534 : : }
12535 : : }
12536 : : break;
12537 : : default:;
12538 : : }
12539 : : }
12540 : : }
12541 : 14228 : break;
12542 : : }
12543 : 41513 : case BIT_XOR_EXPR:
12544 : 41513 : {
12545 : 41513 : tree _q20 = gimple_assign_rhs1 (_a1);
12546 : 41513 : _q20 = do_valueize (valueize, _q20);
12547 : 41513 : tree _q21 = gimple_assign_rhs2 (_a1);
12548 : 41513 : _q21 = do_valueize (valueize, _q21);
12549 : 41513 : if (tree_swap_operands_p (_q20, _q21))
12550 : 1860 : std::swap (_q20, _q21);
12551 : 41513 : switch (TREE_CODE (_p1))
12552 : : {
12553 : 37877 : case SSA_NAME:
12554 : 37877 : if (gimple *_d2 = get_def (valueize, _p1))
12555 : : {
12556 : 36328 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
12557 : 41864 : switch (gimple_assign_rhs_code (_a2))
12558 : : {
12559 : 304 : case BIT_IOR_EXPR:
12560 : 304 : {
12561 : 304 : tree _q50 = gimple_assign_rhs1 (_a2);
12562 : 304 : _q50 = do_valueize (valueize, _q50);
12563 : 304 : tree _q51 = gimple_assign_rhs2 (_a2);
12564 : 304 : _q51 = do_valueize (valueize, _q51);
12565 : 304 : if (tree_swap_operands_p (_q50, _q51))
12566 : 107 : std::swap (_q50, _q51);
12567 : 304 : switch (TREE_CODE (_q50))
12568 : : {
12569 : 304 : case SSA_NAME:
12570 : 304 : if (gimple *_d3 = get_def (valueize, _q50))
12571 : : {
12572 : 277 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
12573 : 253 : switch (gimple_assign_rhs_code (_a3))
12574 : : {
12575 : 0 : case BIT_NOT_EXPR:
12576 : 0 : {
12577 : 0 : tree _q60 = gimple_assign_rhs1 (_a3);
12578 : 0 : _q60 = do_valueize (valueize, _q60);
12579 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
12580 : : {
12581 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
12582 : : {
12583 : 0 : {
12584 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q20, _q21, _p0 };
12585 : 0 : if (gimple_simplify_17 (res_op, seq, valueize, type, captures))
12586 : 0 : return true;
12587 : : }
12588 : : }
12589 : : }
12590 : : break;
12591 : : }
12592 : : default:;
12593 : : }
12594 : : }
12595 : : break;
12596 : 304 : default:;
12597 : : }
12598 : 304 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
12599 : : {
12600 : 0 : switch (TREE_CODE (_q51))
12601 : : {
12602 : 0 : case SSA_NAME:
12603 : 0 : if (gimple *_d3 = get_def (valueize, _q51))
12604 : : {
12605 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
12606 : 0 : switch (gimple_assign_rhs_code (_a3))
12607 : : {
12608 : 0 : case BIT_NOT_EXPR:
12609 : 0 : {
12610 : 0 : tree _q70 = gimple_assign_rhs1 (_a3);
12611 : 0 : _q70 = do_valueize (valueize, _q70);
12612 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
12613 : : {
12614 : 0 : {
12615 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q20, _q21, _p0 };
12616 : 0 : if (gimple_simplify_17 (res_op, seq, valueize, type, captures))
12617 : 0 : return true;
12618 : : }
12619 : : }
12620 : : break;
12621 : : }
12622 : : default:;
12623 : : }
12624 : : }
12625 : : break;
12626 : : default:;
12627 : : }
12628 : : }
12629 : 304 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
12630 : : {
12631 : 23 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
12632 : : {
12633 : 8 : {
12634 : 8 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
12635 : 8 : if (gimple_simplify_20 (res_op, seq, valueize, type, captures))
12636 : 8 : return true;
12637 : : }
12638 : : }
12639 : : }
12640 : 41497 : break;
12641 : : }
12642 : 1948 : case BIT_AND_EXPR:
12643 : 1948 : {
12644 : 1948 : tree _q50 = gimple_assign_rhs1 (_a2);
12645 : 1948 : _q50 = do_valueize (valueize, _q50);
12646 : 1948 : tree _q51 = gimple_assign_rhs2 (_a2);
12647 : 1948 : _q51 = do_valueize (valueize, _q51);
12648 : 1948 : if (tree_swap_operands_p (_q50, _q51))
12649 : 28 : std::swap (_q50, _q51);
12650 : 1948 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
12651 : : {
12652 : 8 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
12653 : : {
12654 : 8 : {
12655 : 8 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
12656 : 8 : if (gimple_simplify_22 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
12657 : 8 : return true;
12658 : : }
12659 : : }
12660 : : }
12661 : 41497 : break;
12662 : : }
12663 : 1653 : CASE_CONVERT:
12664 : 1653 : {
12665 : 1653 : tree _q50 = gimple_assign_rhs1 (_a2);
12666 : 1653 : _q50 = do_valueize (valueize, _q50);
12667 : 1653 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q21, 0))
12668 : : {
12669 : 0 : {
12670 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q21 };
12671 : 0 : if (gimple_simplify_23 (res_op, seq, valueize, type, captures))
12672 : 0 : return true;
12673 : : }
12674 : : }
12675 : 1653 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
12676 : : {
12677 : 0 : {
12678 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q20 };
12679 : 0 : if (gimple_simplify_23 (res_op, seq, valueize, type, captures))
12680 : 0 : return true;
12681 : : }
12682 : : }
12683 : : break;
12684 : : }
12685 : : default:;
12686 : : }
12687 : : }
12688 : : break;
12689 : 41497 : default:;
12690 : : }
12691 : 41497 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q21, 0))
12692 : : {
12693 : 152 : {
12694 : 152 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q21 };
12695 : 152 : if (gimple_simplify_23 (res_op, seq, valueize, type, captures))
12696 : 152 : return true;
12697 : : }
12698 : : }
12699 : 41345 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q20, 0))
12700 : : {
12701 : 26 : {
12702 : 26 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q20 };
12703 : 26 : if (gimple_simplify_23 (res_op, seq, valueize, type, captures))
12704 : 26 : return true;
12705 : : }
12706 : : }
12707 : 629787 : break;
12708 : : }
12709 : 32625 : case BIT_AND_EXPR:
12710 : 32625 : {
12711 : 32625 : tree _q20 = gimple_assign_rhs1 (_a1);
12712 : 32625 : _q20 = do_valueize (valueize, _q20);
12713 : 32625 : tree _q21 = gimple_assign_rhs2 (_a1);
12714 : 32625 : _q21 = do_valueize (valueize, _q21);
12715 : 32625 : if (tree_swap_operands_p (_q20, _q21))
12716 : 1258 : std::swap (_q20, _q21);
12717 : 32625 : switch (TREE_CODE (_p1))
12718 : : {
12719 : 25004 : case SSA_NAME:
12720 : 25004 : if (gimple *_d2 = get_def (valueize, _p1))
12721 : : {
12722 : 21811 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
12723 : 19460 : switch (gimple_assign_rhs_code (_a2))
12724 : : {
12725 : 1418 : case BIT_IOR_EXPR:
12726 : 1418 : {
12727 : 1418 : tree _q50 = gimple_assign_rhs1 (_a2);
12728 : 1418 : _q50 = do_valueize (valueize, _q50);
12729 : 1418 : tree _q51 = gimple_assign_rhs2 (_a2);
12730 : 1418 : _q51 = do_valueize (valueize, _q51);
12731 : 1418 : if (tree_swap_operands_p (_q50, _q51))
12732 : 27 : std::swap (_q50, _q51);
12733 : 1418 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
12734 : : {
12735 : 404 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
12736 : : {
12737 : 8 : {
12738 : 8 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
12739 : 8 : if (gimple_simplify_19 (res_op, seq, valueize, type, captures))
12740 : 8 : return true;
12741 : : }
12742 : : }
12743 : : }
12744 : 32607 : break;
12745 : : }
12746 : 3873 : case BIT_XOR_EXPR:
12747 : 3873 : {
12748 : 3873 : tree _q50 = gimple_assign_rhs1 (_a2);
12749 : 3873 : _q50 = do_valueize (valueize, _q50);
12750 : 3873 : tree _q51 = gimple_assign_rhs2 (_a2);
12751 : 3873 : _q51 = do_valueize (valueize, _q51);
12752 : 3873 : if (tree_swap_operands_p (_q50, _q51))
12753 : 285 : std::swap (_q50, _q51);
12754 : 3873 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
12755 : : {
12756 : 10 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
12757 : : {
12758 : 10 : {
12759 : 10 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
12760 : 10 : if (gimple_simplify_22 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
12761 : 10 : return true;
12762 : : }
12763 : : }
12764 : : }
12765 : 32607 : break;
12766 : : }
12767 : : default:;
12768 : : }
12769 : : }
12770 : : break;
12771 : 32607 : default:;
12772 : : }
12773 : 32607 : switch (TREE_CODE (_q21))
12774 : : {
12775 : 13787 : case INTEGER_CST:
12776 : 13787 : {
12777 : 13787 : switch (TREE_CODE (_p1))
12778 : : {
12779 : 6498 : case SSA_NAME:
12780 : 6498 : if (gimple *_d2 = get_def (valueize, _p1))
12781 : : {
12782 : 5369 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
12783 : 6698 : switch (gimple_assign_rhs_code (_a2))
12784 : : {
12785 : 272 : CASE_CONVERT:
12786 : 272 : {
12787 : 272 : tree _q50 = gimple_assign_rhs1 (_a2);
12788 : 272 : _q50 = do_valueize (valueize, _q50);
12789 : 272 : switch (TREE_CODE (_q50))
12790 : : {
12791 : 272 : case SSA_NAME:
12792 : 272 : if (gimple *_d3 = get_def (valueize, _q50))
12793 : : {
12794 : 254 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
12795 : 309 : switch (gimple_assign_rhs_code (_a3))
12796 : : {
12797 : 0 : case BIT_AND_EXPR:
12798 : 0 : {
12799 : 0 : tree _q60 = gimple_assign_rhs1 (_a3);
12800 : 0 : _q60 = do_valueize (valueize, _q60);
12801 : 0 : tree _q61 = gimple_assign_rhs2 (_a3);
12802 : 0 : _q61 = do_valueize (valueize, _q61);
12803 : 0 : if (tree_swap_operands_p (_q60, _q61))
12804 : 0 : std::swap (_q60, _q61);
12805 : 0 : switch (TREE_CODE (_q61))
12806 : : {
12807 : 0 : case INTEGER_CST:
12808 : 0 : {
12809 : 0 : {
12810 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q50, _q60, _q61 };
12811 : 0 : if (gimple_simplify_24 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
12812 : 0 : return true;
12813 : : }
12814 : 0 : break;
12815 : : }
12816 : : default:;
12817 : : }
12818 : 629787 : break;
12819 : : }
12820 : : default:;
12821 : : }
12822 : : }
12823 : : break;
12824 : : default:;
12825 : : }
12826 : : break;
12827 : : }
12828 : 495 : case BIT_AND_EXPR:
12829 : 495 : {
12830 : 495 : tree _q50 = gimple_assign_rhs1 (_a2);
12831 : 495 : _q50 = do_valueize (valueize, _q50);
12832 : 495 : tree _q51 = gimple_assign_rhs2 (_a2);
12833 : 495 : _q51 = do_valueize (valueize, _q51);
12834 : 495 : if (tree_swap_operands_p (_q50, _q51))
12835 : 0 : std::swap (_q50, _q51);
12836 : 495 : switch (TREE_CODE (_q51))
12837 : : {
12838 : 495 : case INTEGER_CST:
12839 : 495 : {
12840 : 495 : {
12841 : 495 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q50, _q51 };
12842 : 495 : if (gimple_simplify_24 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
12843 : 97 : return true;
12844 : : }
12845 : 398 : break;
12846 : : }
12847 : : default:;
12848 : : }
12849 : 629787 : break;
12850 : : }
12851 : : default:;
12852 : : }
12853 : : }
12854 : : break;
12855 : : default:;
12856 : : }
12857 : : break;
12858 : : }
12859 : : default:;
12860 : : }
12861 : 629787 : break;
12862 : : }
12863 : 58145 : CASE_CONVERT:
12864 : 58145 : {
12865 : 58145 : tree _q20 = gimple_assign_rhs1 (_a1);
12866 : 58145 : _q20 = do_valueize (valueize, _q20);
12867 : 58145 : switch (TREE_CODE (_q20))
12868 : : {
12869 : 58103 : case SSA_NAME:
12870 : 58103 : if (gimple *_d2 = get_def (valueize, _q20))
12871 : : {
12872 : 55924 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
12873 : 65446 : switch (gimple_assign_rhs_code (_a2))
12874 : : {
12875 : 2985 : case BIT_AND_EXPR:
12876 : 2985 : {
12877 : 2985 : tree _q30 = gimple_assign_rhs1 (_a2);
12878 : 2985 : _q30 = do_valueize (valueize, _q30);
12879 : 2985 : tree _q31 = gimple_assign_rhs2 (_a2);
12880 : 2985 : _q31 = do_valueize (valueize, _q31);
12881 : 2985 : if (tree_swap_operands_p (_q30, _q31))
12882 : 26 : std::swap (_q30, _q31);
12883 : 2985 : switch (TREE_CODE (_q31))
12884 : : {
12885 : 2637 : case INTEGER_CST:
12886 : 2637 : {
12887 : 2637 : switch (TREE_CODE (_p1))
12888 : : {
12889 : 2596 : case SSA_NAME:
12890 : 2596 : if (gimple *_d3 = get_def (valueize, _p1))
12891 : : {
12892 : 2587 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
12893 : 3038 : switch (gimple_assign_rhs_code (_a3))
12894 : : {
12895 : 14 : CASE_CONVERT:
12896 : 14 : {
12897 : 14 : tree _q60 = gimple_assign_rhs1 (_a3);
12898 : 14 : _q60 = do_valueize (valueize, _q60);
12899 : 14 : switch (TREE_CODE (_q60))
12900 : : {
12901 : 14 : case SSA_NAME:
12902 : 14 : if (gimple *_d4 = get_def (valueize, _q60))
12903 : : {
12904 : 14 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
12905 : 28 : switch (gimple_assign_rhs_code (_a4))
12906 : : {
12907 : 0 : case BIT_AND_EXPR:
12908 : 0 : {
12909 : 0 : tree _q70 = gimple_assign_rhs1 (_a4);
12910 : 0 : _q70 = do_valueize (valueize, _q70);
12911 : 0 : tree _q71 = gimple_assign_rhs2 (_a4);
12912 : 0 : _q71 = do_valueize (valueize, _q71);
12913 : 0 : if (tree_swap_operands_p (_q70, _q71))
12914 : 0 : std::swap (_q70, _q71);
12915 : 0 : switch (TREE_CODE (_q71))
12916 : : {
12917 : 0 : case INTEGER_CST:
12918 : 0 : {
12919 : 0 : {
12920 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q60, _q70, _q71 };
12921 : 0 : if (gimple_simplify_24 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
12922 : 0 : return true;
12923 : : }
12924 : 0 : break;
12925 : : }
12926 : : default:;
12927 : : }
12928 : 58145 : break;
12929 : : }
12930 : : default:;
12931 : : }
12932 : : }
12933 : : break;
12934 : : default:;
12935 : : }
12936 : : break;
12937 : : }
12938 : 0 : case BIT_AND_EXPR:
12939 : 0 : {
12940 : 0 : tree _q60 = gimple_assign_rhs1 (_a3);
12941 : 0 : _q60 = do_valueize (valueize, _q60);
12942 : 0 : tree _q61 = gimple_assign_rhs2 (_a3);
12943 : 0 : _q61 = do_valueize (valueize, _q61);
12944 : 0 : if (tree_swap_operands_p (_q60, _q61))
12945 : 0 : std::swap (_q60, _q61);
12946 : 0 : switch (TREE_CODE (_q61))
12947 : : {
12948 : 0 : case INTEGER_CST:
12949 : 0 : {
12950 : 0 : {
12951 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _p1, _q60, _q61 };
12952 : 0 : if (gimple_simplify_24 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
12953 : 0 : return true;
12954 : : }
12955 : 0 : break;
12956 : : }
12957 : : default:;
12958 : : }
12959 : 58145 : break;
12960 : : }
12961 : : default:;
12962 : : }
12963 : : }
12964 : : break;
12965 : : default:;
12966 : : }
12967 : : break;
12968 : : }
12969 : : default:;
12970 : : }
12971 : 58145 : break;
12972 : : }
12973 : 461 : case BIT_IOR_EXPR:
12974 : 461 : {
12975 : 461 : tree _q30 = gimple_assign_rhs1 (_a2);
12976 : 461 : _q30 = do_valueize (valueize, _q30);
12977 : 461 : tree _q31 = gimple_assign_rhs2 (_a2);
12978 : 461 : _q31 = do_valueize (valueize, _q31);
12979 : 461 : if (tree_swap_operands_p (_q30, _q31))
12980 : 25 : std::swap (_q30, _q31);
12981 : 461 : switch (TREE_CODE (_p1))
12982 : : {
12983 : 334 : case SSA_NAME:
12984 : 334 : if (gimple *_d3 = get_def (valueize, _p1))
12985 : : {
12986 : 334 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
12987 : 366 : switch (gimple_assign_rhs_code (_a3))
12988 : : {
12989 : 12 : CASE_CONVERT:
12990 : 12 : {
12991 : 12 : tree _q60 = gimple_assign_rhs1 (_a3);
12992 : 12 : _q60 = do_valueize (valueize, _q60);
12993 : 12 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q30, 0))
12994 : : {
12995 : 0 : {
12996 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q30 };
12997 : 0 : if (gimple_simplify_21 (res_op, seq, valueize, type, captures))
12998 : 0 : return true;
12999 : : }
13000 : : }
13001 : 12 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q31, 0))
13002 : : {
13003 : 0 : {
13004 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q31 };
13005 : 0 : if (gimple_simplify_21 (res_op, seq, valueize, type, captures))
13006 : 0 : return true;
13007 : : }
13008 : : }
13009 : : break;
13010 : : }
13011 : : default:;
13012 : : }
13013 : : }
13014 : : break;
13015 : 461 : default:;
13016 : : }
13017 : 461 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q30, 0))
13018 : : {
13019 : 0 : {
13020 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q30 };
13021 : 0 : if (gimple_simplify_21 (res_op, seq, valueize, type, captures))
13022 : 0 : return true;
13023 : : }
13024 : : }
13025 : 461 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q31, 0))
13026 : : {
13027 : 0 : {
13028 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q31 };
13029 : 0 : if (gimple_simplify_21 (res_op, seq, valueize, type, captures))
13030 : 0 : return true;
13031 : : }
13032 : : }
13033 : 58145 : break;
13034 : : }
13035 : : default:;
13036 : : }
13037 : : }
13038 : : break;
13039 : 58145 : default:;
13040 : : }
13041 : 58145 : switch (TREE_CODE (_p1))
13042 : : {
13043 : 45905 : case SSA_NAME:
13044 : 45905 : if (gimple *_d2 = get_def (valueize, _p1))
13045 : : {
13046 : 44688 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
13047 : 41016 : switch (gimple_assign_rhs_code (_a2))
13048 : : {
13049 : 17533 : CASE_CONVERT:
13050 : 17533 : {
13051 : 17533 : tree _q40 = gimple_assign_rhs1 (_a2);
13052 : 17533 : _q40 = do_valueize (valueize, _q40);
13053 : 17533 : switch (TREE_CODE (_q40))
13054 : : {
13055 : 17515 : case SSA_NAME:
13056 : 17515 : if (gimple *_d3 = get_def (valueize, _q40))
13057 : : {
13058 : 17228 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
13059 : 16926 : switch (gimple_assign_rhs_code (_a3))
13060 : : {
13061 : 99 : case BIT_IOR_EXPR:
13062 : 99 : {
13063 : 99 : tree _q50 = gimple_assign_rhs1 (_a3);
13064 : 99 : _q50 = do_valueize (valueize, _q50);
13065 : 99 : tree _q51 = gimple_assign_rhs2 (_a3);
13066 : 99 : _q51 = do_valueize (valueize, _q51);
13067 : 99 : if (tree_swap_operands_p (_q50, _q51))
13068 : 0 : std::swap (_q50, _q51);
13069 : 99 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
13070 : : {
13071 : 0 : {
13072 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q51, _q20 };
13073 : 0 : if (gimple_simplify_21 (res_op, seq, valueize, type, captures))
13074 : 0 : return true;
13075 : : }
13076 : : }
13077 : 99 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q20, 0))
13078 : : {
13079 : 0 : {
13080 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q51, _q50, _q20 };
13081 : 0 : if (gimple_simplify_21 (res_op, seq, valueize, type, captures))
13082 : 0 : return true;
13083 : : }
13084 : : }
13085 : 629787 : break;
13086 : : }
13087 : : default:;
13088 : : }
13089 : : }
13090 : : break;
13091 : : default:;
13092 : : }
13093 : : break;
13094 : : }
13095 : 155 : case BIT_IOR_EXPR:
13096 : 155 : {
13097 : 155 : tree _q40 = gimple_assign_rhs1 (_a2);
13098 : 155 : _q40 = do_valueize (valueize, _q40);
13099 : 155 : tree _q41 = gimple_assign_rhs2 (_a2);
13100 : 155 : _q41 = do_valueize (valueize, _q41);
13101 : 155 : if (tree_swap_operands_p (_q40, _q41))
13102 : 21 : std::swap (_q40, _q41);
13103 : 155 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _q20, 0))
13104 : : {
13105 : 0 : {
13106 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _q20 };
13107 : 0 : if (gimple_simplify_21 (res_op, seq, valueize, type, captures))
13108 : 0 : return true;
13109 : : }
13110 : : }
13111 : 155 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _q20, 0))
13112 : : {
13113 : 0 : {
13114 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _q20 };
13115 : 0 : if (gimple_simplify_21 (res_op, seq, valueize, type, captures))
13116 : 0 : return true;
13117 : : }
13118 : : }
13119 : 629787 : break;
13120 : : }
13121 : : default:;
13122 : : }
13123 : : }
13124 : : break;
13125 : : default:;
13126 : : }
13127 : : break;
13128 : : }
13129 : : default:;
13130 : : }
13131 : : }
13132 : : break;
13133 : 629787 : default:;
13134 : : }
13135 : 629787 : switch (TREE_CODE (_p1))
13136 : : {
13137 : 495586 : case SSA_NAME:
13138 : 495586 : if (gimple *_d1 = get_def (valueize, _p1))
13139 : : {
13140 : 406751 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
13141 : 452847 : switch (gimple_assign_rhs_code (_a1))
13142 : : {
13143 : 37806 : CASE_CONVERT:
13144 : 37806 : {
13145 : 37806 : tree _q30 = gimple_assign_rhs1 (_a1);
13146 : 37806 : _q30 = do_valueize (valueize, _q30);
13147 : 37806 : switch (TREE_CODE (_q30))
13148 : : {
13149 : 37788 : case SSA_NAME:
13150 : 37788 : if (gimple *_d2 = get_def (valueize, _q30))
13151 : : {
13152 : 36384 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
13153 : 35542 : switch (gimple_assign_rhs_code (_a2))
13154 : : {
13155 : 376 : case BIT_IOR_EXPR:
13156 : 376 : {
13157 : 376 : tree _q40 = gimple_assign_rhs1 (_a2);
13158 : 376 : _q40 = do_valueize (valueize, _q40);
13159 : 376 : tree _q41 = gimple_assign_rhs2 (_a2);
13160 : 376 : _q41 = do_valueize (valueize, _q41);
13161 : 376 : if (tree_swap_operands_p (_q40, _q41))
13162 : 28 : std::swap (_q40, _q41);
13163 : 376 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _p0, 0))
13164 : : {
13165 : 0 : {
13166 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _p0 };
13167 : 0 : if (gimple_simplify_21 (res_op, seq, valueize, type, captures))
13168 : 0 : return true;
13169 : : }
13170 : : }
13171 : 376 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _p0, 0))
13172 : : {
13173 : 0 : {
13174 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _p0 };
13175 : 0 : if (gimple_simplify_21 (res_op, seq, valueize, type, captures))
13176 : 0 : return true;
13177 : : }
13178 : : }
13179 : 629772 : break;
13180 : : }
13181 : : default:;
13182 : : }
13183 : : }
13184 : : break;
13185 : : default:;
13186 : : }
13187 : : break;
13188 : : }
13189 : 6244 : case BIT_IOR_EXPR:
13190 : 6244 : {
13191 : 6244 : tree _q30 = gimple_assign_rhs1 (_a1);
13192 : 6244 : _q30 = do_valueize (valueize, _q30);
13193 : 6244 : tree _q31 = gimple_assign_rhs2 (_a1);
13194 : 6244 : _q31 = do_valueize (valueize, _q31);
13195 : 6244 : if (tree_swap_operands_p (_q30, _q31))
13196 : 385 : std::swap (_q30, _q31);
13197 : 6244 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || operand_equal_p (_q30, _p0, 0))
13198 : : {
13199 : 2 : {
13200 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p0 };
13201 : 2 : if (gimple_simplify_21 (res_op, seq, valueize, type, captures))
13202 : 2 : return true;
13203 : : }
13204 : : }
13205 : 6242 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || operand_equal_p (_q31, _p0, 0))
13206 : : {
13207 : 13 : {
13208 : 13 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _p0 };
13209 : 13 : if (gimple_simplify_21 (res_op, seq, valueize, type, captures))
13210 : 13 : return true;
13211 : : }
13212 : : }
13213 : 629772 : break;
13214 : : }
13215 : : default:;
13216 : : }
13217 : : }
13218 : : break;
13219 : 629772 : default:;
13220 : : }
13221 : 629772 : {
13222 : 629772 : tree _p0_pops[1];
13223 : 629772 : if (gimple_nop_convert (_p0, _p0_pops, valueize))
13224 : : {
13225 : 10871 : tree _q20 = _p0_pops[0];
13226 : 10871 : switch (TREE_CODE (_q20))
13227 : : {
13228 : 10829 : case SSA_NAME:
13229 : 10829 : if (gimple *_d1 = get_def (valueize, _q20))
13230 : : {
13231 : 10487 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
13232 : 7963 : switch (gimple_assign_rhs_code (_a1))
13233 : : {
13234 : 115 : case BIT_IOR_EXPR:
13235 : 115 : {
13236 : 115 : tree _q30 = gimple_assign_rhs1 (_a1);
13237 : 115 : _q30 = do_valueize (valueize, _q30);
13238 : 115 : tree _q31 = gimple_assign_rhs2 (_a1);
13239 : 115 : _q31 = do_valueize (valueize, _q31);
13240 : 115 : if (tree_swap_operands_p (_q30, _q31))
13241 : 6 : std::swap (_q30, _q31);
13242 : 115 : {
13243 : 115 : tree _q30_pops[1];
13244 : 115 : if (gimple_nop_convert (_q30, _q30_pops, valueize))
13245 : : {
13246 : 13 : tree _q40 = _q30_pops[0];
13247 : 13 : switch (TREE_CODE (_q40))
13248 : : {
13249 : 13 : case SSA_NAME:
13250 : 13 : if (gimple *_d2 = get_def (valueize, _q40))
13251 : : {
13252 : 13 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
13253 : 1 : switch (gimple_assign_rhs_code (_a2))
13254 : : {
13255 : 0 : case BIT_NOT_EXPR:
13256 : 0 : {
13257 : 0 : tree _q50 = gimple_assign_rhs1 (_a2);
13258 : 0 : _q50 = do_valueize (valueize, _q50);
13259 : 0 : {
13260 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q31, _p1 };
13261 : 0 : if (gimple_simplify_18 (res_op, seq, valueize, type, captures))
13262 : 0 : return true;
13263 : : }
13264 : 0 : break;
13265 : : }
13266 : : default:;
13267 : : }
13268 : : }
13269 : : break;
13270 : : default:;
13271 : : }
13272 : : }
13273 : : }
13274 : 115 : {
13275 : 115 : tree _q31_pops[1];
13276 : 115 : if (gimple_nop_convert (_q31, _q31_pops, valueize))
13277 : : {
13278 : 12 : tree _q50 = _q31_pops[0];
13279 : 12 : switch (TREE_CODE (_q50))
13280 : : {
13281 : 0 : case SSA_NAME:
13282 : 0 : if (gimple *_d2 = get_def (valueize, _q50))
13283 : : {
13284 : 0 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
13285 : 0 : switch (gimple_assign_rhs_code (_a2))
13286 : : {
13287 : 0 : case BIT_NOT_EXPR:
13288 : 0 : {
13289 : 0 : tree _q60 = gimple_assign_rhs1 (_a2);
13290 : 0 : _q60 = do_valueize (valueize, _q60);
13291 : 0 : {
13292 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q60, _q30, _p1 };
13293 : 0 : if (gimple_simplify_18 (res_op, seq, valueize, type, captures))
13294 : 0 : return true;
13295 : : }
13296 : 0 : break;
13297 : : }
13298 : : default:;
13299 : : }
13300 : : }
13301 : : break;
13302 : : default:;
13303 : : }
13304 : : }
13305 : : }
13306 : 115 : switch (TREE_CODE (_q30))
13307 : : {
13308 : 115 : case SSA_NAME:
13309 : 115 : if (gimple *_d2 = get_def (valueize, _q30))
13310 : : {
13311 : 115 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
13312 : 115 : switch (gimple_assign_rhs_code (_a2))
13313 : : {
13314 : 0 : case BIT_NOT_EXPR:
13315 : 0 : {
13316 : 0 : tree _q40 = gimple_assign_rhs1 (_a2);
13317 : 0 : _q40 = do_valueize (valueize, _q40);
13318 : 0 : {
13319 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q31, _p1 };
13320 : 0 : if (gimple_simplify_18 (res_op, seq, valueize, type, captures))
13321 : 0 : return true;
13322 : : }
13323 : 0 : break;
13324 : : }
13325 : : default:;
13326 : : }
13327 : : }
13328 : : break;
13329 : 115 : default:;
13330 : : }
13331 : 115 : switch (TREE_CODE (_q31))
13332 : : {
13333 : 115 : case SSA_NAME:
13334 : 115 : if (gimple *_d2 = get_def (valueize, _q31))
13335 : : {
13336 : 102 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
13337 : 102 : switch (gimple_assign_rhs_code (_a2))
13338 : : {
13339 : 0 : case BIT_NOT_EXPR:
13340 : 0 : {
13341 : 0 : tree _q50 = gimple_assign_rhs1 (_a2);
13342 : 0 : _q50 = do_valueize (valueize, _q50);
13343 : 0 : {
13344 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q30, _p1 };
13345 : 0 : if (gimple_simplify_18 (res_op, seq, valueize, type, captures))
13346 : 0 : return true;
13347 : : }
13348 : 0 : break;
13349 : : }
13350 : : default:;
13351 : : }
13352 : : }
13353 : : break;
13354 : : default:;
13355 : : }
13356 : 629772 : break;
13357 : : }
13358 : : default:;
13359 : : }
13360 : : }
13361 : : break;
13362 : : default:;
13363 : : }
13364 : : }
13365 : : }
13366 : 629772 : switch (TREE_CODE (_p1))
13367 : : {
13368 : 495571 : case SSA_NAME:
13369 : 495571 : if (gimple *_d1 = get_def (valueize, _p1))
13370 : : {
13371 : 406736 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
13372 : 452832 : switch (gimple_assign_rhs_code (_a1))
13373 : : {
13374 : 6229 : case BIT_IOR_EXPR:
13375 : 6229 : {
13376 : 6229 : tree _q30 = gimple_assign_rhs1 (_a1);
13377 : 6229 : _q30 = do_valueize (valueize, _q30);
13378 : 6229 : tree _q31 = gimple_assign_rhs2 (_a1);
13379 : 6229 : _q31 = do_valueize (valueize, _q31);
13380 : 6229 : if (tree_swap_operands_p (_q30, _q31))
13381 : 385 : std::swap (_q30, _q31);
13382 : 6229 : {
13383 : 6229 : tree _q30_pops[1];
13384 : 6229 : if (gimple_nop_convert (_q30, _q30_pops, valueize))
13385 : : {
13386 : 72 : tree _q40 = _q30_pops[0];
13387 : 72 : switch (TREE_CODE (_q40))
13388 : : {
13389 : 72 : case SSA_NAME:
13390 : 72 : if (gimple *_d2 = get_def (valueize, _q40))
13391 : : {
13392 : 72 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
13393 : 72 : switch (gimple_assign_rhs_code (_a2))
13394 : : {
13395 : 42 : case BIT_NOT_EXPR:
13396 : 42 : {
13397 : 42 : tree _q50 = gimple_assign_rhs1 (_a2);
13398 : 42 : _q50 = do_valueize (valueize, _q50);
13399 : 42 : {
13400 : 42 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q31, _p0 };
13401 : 42 : if (gimple_simplify_18 (res_op, seq, valueize, type, captures))
13402 : 21 : return true;
13403 : : }
13404 : 21 : break;
13405 : : }
13406 : : default:;
13407 : : }
13408 : : }
13409 : : break;
13410 : : default:;
13411 : : }
13412 : : }
13413 : : }
13414 : 6208 : {
13415 : 6208 : tree _q31_pops[1];
13416 : 6208 : if (gimple_nop_convert (_q31, _q31_pops, valueize))
13417 : : {
13418 : 0 : tree _q50 = _q31_pops[0];
13419 : 0 : switch (TREE_CODE (_q50))
13420 : : {
13421 : 0 : case SSA_NAME:
13422 : 0 : if (gimple *_d2 = get_def (valueize, _q50))
13423 : : {
13424 : 0 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
13425 : 0 : switch (gimple_assign_rhs_code (_a2))
13426 : : {
13427 : 0 : case BIT_NOT_EXPR:
13428 : 0 : {
13429 : 0 : tree _q60 = gimple_assign_rhs1 (_a2);
13430 : 0 : _q60 = do_valueize (valueize, _q60);
13431 : 0 : {
13432 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q60, _q30, _p0 };
13433 : 0 : if (gimple_simplify_18 (res_op, seq, valueize, type, captures))
13434 : 0 : return true;
13435 : : }
13436 : 0 : break;
13437 : : }
13438 : : default:;
13439 : : }
13440 : : }
13441 : : break;
13442 : : default:;
13443 : : }
13444 : : }
13445 : : }
13446 : 6208 : switch (TREE_CODE (_q30))
13447 : : {
13448 : 6208 : case SSA_NAME:
13449 : 6208 : if (gimple *_d2 = get_def (valueize, _q30))
13450 : : {
13451 : 5631 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
13452 : 3054 : switch (gimple_assign_rhs_code (_a2))
13453 : : {
13454 : 408 : case BIT_NOT_EXPR:
13455 : 408 : {
13456 : 408 : tree _q40 = gimple_assign_rhs1 (_a2);
13457 : 408 : _q40 = do_valueize (valueize, _q40);
13458 : 408 : {
13459 : 408 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q31, _p0 };
13460 : 408 : if (gimple_simplify_18 (res_op, seq, valueize, type, captures))
13461 : 56 : return true;
13462 : : }
13463 : 352 : break;
13464 : : }
13465 : : default:;
13466 : : }
13467 : : }
13468 : : break;
13469 : 6152 : default:;
13470 : : }
13471 : 6152 : switch (TREE_CODE (_q31))
13472 : : {
13473 : 6022 : case SSA_NAME:
13474 : 6022 : if (gimple *_d2 = get_def (valueize, _q31))
13475 : : {
13476 : 5691 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
13477 : 3162 : switch (gimple_assign_rhs_code (_a2))
13478 : : {
13479 : 640 : case BIT_NOT_EXPR:
13480 : 640 : {
13481 : 640 : tree _q50 = gimple_assign_rhs1 (_a2);
13482 : 640 : _q50 = do_valueize (valueize, _q50);
13483 : 640 : {
13484 : 640 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q30, _p0 };
13485 : 640 : if (gimple_simplify_18 (res_op, seq, valueize, type, captures))
13486 : 0 : return true;
13487 : : }
13488 : 640 : break;
13489 : : }
13490 : : default:;
13491 : : }
13492 : : }
13493 : : break;
13494 : : default:;
13495 : : }
13496 : 629695 : break;
13497 : : }
13498 : : default:;
13499 : : }
13500 : : }
13501 : : break;
13502 : 629695 : default:;
13503 : : }
13504 : 629695 : {
13505 : 629695 : tree _p1_pops[1];
13506 : 629695 : if (gimple_nop_convert (_p1, _p1_pops, valueize))
13507 : : {
13508 : 6843 : tree _q30 = _p1_pops[0];
13509 : 6843 : switch (TREE_CODE (_q30))
13510 : : {
13511 : 6825 : case SSA_NAME:
13512 : 6825 : if (gimple *_d1 = get_def (valueize, _q30))
13513 : : {
13514 : 6420 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
13515 : 5281 : switch (gimple_assign_rhs_code (_a1))
13516 : : {
13517 : 40 : case BIT_IOR_EXPR:
13518 : 40 : {
13519 : 40 : tree _q40 = gimple_assign_rhs1 (_a1);
13520 : 40 : _q40 = do_valueize (valueize, _q40);
13521 : 40 : tree _q41 = gimple_assign_rhs2 (_a1);
13522 : 40 : _q41 = do_valueize (valueize, _q41);
13523 : 40 : if (tree_swap_operands_p (_q40, _q41))
13524 : 3 : std::swap (_q40, _q41);
13525 : 40 : {
13526 : 40 : tree _q40_pops[1];
13527 : 40 : if (gimple_nop_convert (_q40, _q40_pops, valueize))
13528 : : {
13529 : 0 : tree _q50 = _q40_pops[0];
13530 : 0 : switch (TREE_CODE (_q50))
13531 : : {
13532 : 0 : case SSA_NAME:
13533 : 0 : if (gimple *_d2 = get_def (valueize, _q50))
13534 : : {
13535 : 0 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
13536 : 0 : switch (gimple_assign_rhs_code (_a2))
13537 : : {
13538 : 0 : case BIT_NOT_EXPR:
13539 : 0 : {
13540 : 0 : tree _q60 = gimple_assign_rhs1 (_a2);
13541 : 0 : _q60 = do_valueize (valueize, _q60);
13542 : 0 : {
13543 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q60, _q41, _p0 };
13544 : 0 : if (gimple_simplify_18 (res_op, seq, valueize, type, captures))
13545 : 0 : return true;
13546 : : }
13547 : 0 : break;
13548 : : }
13549 : : default:;
13550 : : }
13551 : : }
13552 : : break;
13553 : : default:;
13554 : : }
13555 : : }
13556 : : }
13557 : 40 : {
13558 : 40 : tree _q41_pops[1];
13559 : 40 : if (gimple_nop_convert (_q41, _q41_pops, valueize))
13560 : : {
13561 : 0 : tree _q60 = _q41_pops[0];
13562 : 0 : switch (TREE_CODE (_q60))
13563 : : {
13564 : 0 : case SSA_NAME:
13565 : 0 : if (gimple *_d2 = get_def (valueize, _q60))
13566 : : {
13567 : 0 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
13568 : 0 : switch (gimple_assign_rhs_code (_a2))
13569 : : {
13570 : 0 : case BIT_NOT_EXPR:
13571 : 0 : {
13572 : 0 : tree _q70 = gimple_assign_rhs1 (_a2);
13573 : 0 : _q70 = do_valueize (valueize, _q70);
13574 : 0 : {
13575 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q70, _q40, _p0 };
13576 : 0 : if (gimple_simplify_18 (res_op, seq, valueize, type, captures))
13577 : 0 : return true;
13578 : : }
13579 : 0 : break;
13580 : : }
13581 : : default:;
13582 : : }
13583 : : }
13584 : : break;
13585 : : default:;
13586 : : }
13587 : : }
13588 : : }
13589 : 40 : switch (TREE_CODE (_q40))
13590 : : {
13591 : 40 : case SSA_NAME:
13592 : 40 : if (gimple *_d2 = get_def (valueize, _q40))
13593 : : {
13594 : 40 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
13595 : 40 : switch (gimple_assign_rhs_code (_a2))
13596 : : {
13597 : 0 : case BIT_NOT_EXPR:
13598 : 0 : {
13599 : 0 : tree _q50 = gimple_assign_rhs1 (_a2);
13600 : 0 : _q50 = do_valueize (valueize, _q50);
13601 : 0 : {
13602 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q41, _p0 };
13603 : 0 : if (gimple_simplify_18 (res_op, seq, valueize, type, captures))
13604 : 0 : return true;
13605 : : }
13606 : 0 : break;
13607 : : }
13608 : : default:;
13609 : : }
13610 : : }
13611 : : break;
13612 : 40 : default:;
13613 : : }
13614 : 40 : switch (TREE_CODE (_q41))
13615 : : {
13616 : 40 : case SSA_NAME:
13617 : 40 : if (gimple *_d2 = get_def (valueize, _q41))
13618 : : {
13619 : 40 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
13620 : 40 : switch (gimple_assign_rhs_code (_a2))
13621 : : {
13622 : 0 : case BIT_NOT_EXPR:
13623 : 0 : {
13624 : 0 : tree _q60 = gimple_assign_rhs1 (_a2);
13625 : 0 : _q60 = do_valueize (valueize, _q60);
13626 : 0 : {
13627 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q60, _q40, _p0 };
13628 : 0 : if (gimple_simplify_18 (res_op, seq, valueize, type, captures))
13629 : 0 : return true;
13630 : : }
13631 : 0 : break;
13632 : : }
13633 : : default:;
13634 : : }
13635 : : }
13636 : : break;
13637 : : default:;
13638 : : }
13639 : 629695 : break;
13640 : : }
13641 : : default:;
13642 : : }
13643 : : }
13644 : : break;
13645 : : default:;
13646 : : }
13647 : : }
13648 : : }
13649 : 629695 : switch (TREE_CODE (_p0))
13650 : : {
13651 : 618446 : case SSA_NAME:
13652 : 618446 : if (gimple *_d1 = get_def (valueize, _p0))
13653 : : {
13654 : 491274 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
13655 : 555246 : switch (gimple_assign_rhs_code (_a1))
13656 : : {
13657 : 58117 : CASE_CONVERT:
13658 : 58117 : {
13659 : 58117 : tree _q20 = gimple_assign_rhs1 (_a1);
13660 : 58117 : _q20 = do_valueize (valueize, _q20);
13661 : 58117 : switch (TREE_CODE (_q20))
13662 : : {
13663 : 58075 : case SSA_NAME:
13664 : 58075 : if (gimple *_d2 = get_def (valueize, _q20))
13665 : : {
13666 : 55896 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
13667 : 65446 : switch (gimple_assign_rhs_code (_a2))
13668 : : {
13669 : 2369 : case BIT_NOT_EXPR:
13670 : 2369 : {
13671 : 2369 : tree _q30 = gimple_assign_rhs1 (_a2);
13672 : 2369 : _q30 = do_valueize (valueize, _q30);
13673 : 2369 : switch (TREE_CODE (_p1))
13674 : : {
13675 : 2345 : case SSA_NAME:
13676 : 2345 : if (gimple *_d3 = get_def (valueize, _p1))
13677 : : {
13678 : 2321 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
13679 : 2752 : switch (gimple_assign_rhs_code (_a3))
13680 : : {
13681 : 264 : CASE_CONVERT:
13682 : 264 : {
13683 : 264 : tree _q50 = gimple_assign_rhs1 (_a3);
13684 : 264 : _q50 = do_valueize (valueize, _q50);
13685 : 264 : switch (TREE_CODE (_q50))
13686 : : {
13687 : 264 : case SSA_NAME:
13688 : 264 : if (gimple *_d4 = get_def (valueize, _q50))
13689 : : {
13690 : 239 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
13691 : 179 : switch (gimple_assign_rhs_code (_a4))
13692 : : {
13693 : 28 : case BIT_NOT_EXPR:
13694 : 28 : {
13695 : 28 : tree _q60 = gimple_assign_rhs1 (_a4);
13696 : 28 : _q60 = do_valueize (valueize, _q60);
13697 : 28 : {
13698 : 28 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q60 };
13699 : 28 : if (gimple_simplify_25 (res_op, seq, valueize, type, captures))
13700 : 0 : return true;
13701 : : }
13702 : 28 : break;
13703 : : }
13704 : : default:;
13705 : : }
13706 : : }
13707 : : break;
13708 : : default:;
13709 : : }
13710 : : break;
13711 : : }
13712 : 0 : case BIT_NOT_EXPR:
13713 : 0 : {
13714 : 0 : tree _q50 = gimple_assign_rhs1 (_a3);
13715 : 0 : _q50 = do_valueize (valueize, _q50);
13716 : 0 : {
13717 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _q50 };
13718 : 0 : if (gimple_simplify_25 (res_op, seq, valueize, type, captures))
13719 : 0 : return true;
13720 : : }
13721 : 0 : break;
13722 : : }
13723 : : default:;
13724 : : }
13725 : : }
13726 : : break;
13727 : 24 : case INTEGER_CST:
13728 : 24 : {
13729 : 24 : {
13730 : 24 : tree captures[2] ATTRIBUTE_UNUSED = { _q30, _p1 };
13731 : 24 : if (gimple_simplify_26 (res_op, seq, valueize, type, captures))
13732 : 0 : return true;
13733 : : }
13734 : 24 : break;
13735 : : }
13736 : : default:;
13737 : : }
13738 : : break;
13739 : : }
13740 : : default:;
13741 : : }
13742 : : }
13743 : : break;
13744 : : default:;
13745 : : }
13746 : : break;
13747 : : }
13748 : 208 : case BIT_NOT_EXPR:
13749 : 208 : {
13750 : 208 : tree _q20 = gimple_assign_rhs1 (_a1);
13751 : 208 : _q20 = do_valueize (valueize, _q20);
13752 : 208 : switch (TREE_CODE (_p1))
13753 : : {
13754 : 192 : case SSA_NAME:
13755 : 192 : if (gimple *_d2 = get_def (valueize, _p1))
13756 : : {
13757 : 186 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
13758 : 166 : switch (gimple_assign_rhs_code (_a2))
13759 : : {
13760 : 9 : CASE_CONVERT:
13761 : 9 : {
13762 : 9 : tree _q40 = gimple_assign_rhs1 (_a2);
13763 : 9 : _q40 = do_valueize (valueize, _q40);
13764 : 9 : switch (TREE_CODE (_q40))
13765 : : {
13766 : 9 : case SSA_NAME:
13767 : 9 : if (gimple *_d3 = get_def (valueize, _q40))
13768 : : {
13769 : 9 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
13770 : 9 : switch (gimple_assign_rhs_code (_a3))
13771 : : {
13772 : 9 : case BIT_NOT_EXPR:
13773 : 9 : {
13774 : 9 : tree _q50 = gimple_assign_rhs1 (_a3);
13775 : 9 : _q50 = do_valueize (valueize, _q50);
13776 : 9 : {
13777 : 9 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q50 };
13778 : 9 : if (gimple_simplify_25 (res_op, seq, valueize, type, captures))
13779 : 9 : return true;
13780 : : }
13781 : 0 : break;
13782 : : }
13783 : : default:;
13784 : : }
13785 : : }
13786 : : break;
13787 : : default:;
13788 : : }
13789 : : break;
13790 : : }
13791 : 38 : case BIT_NOT_EXPR:
13792 : 38 : {
13793 : 38 : tree _q40 = gimple_assign_rhs1 (_a2);
13794 : 38 : _q40 = do_valueize (valueize, _q40);
13795 : 38 : {
13796 : 38 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
13797 : 38 : if (gimple_simplify_25 (res_op, seq, valueize, type, captures))
13798 : 38 : return true;
13799 : : }
13800 : 0 : break;
13801 : : }
13802 : : default:;
13803 : : }
13804 : : }
13805 : : break;
13806 : 16 : case INTEGER_CST:
13807 : 16 : {
13808 : 16 : {
13809 : 16 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
13810 : 16 : if (gimple_simplify_26 (res_op, seq, valueize, type, captures))
13811 : 16 : return true;
13812 : : }
13813 : 0 : break;
13814 : : }
13815 : 145 : default:;
13816 : : }
13817 : 145 : {
13818 : 145 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _p1 };
13819 : 145 : if (gimple_simplify_27 (res_op, seq, valueize, type, captures))
13820 : 114 : return true;
13821 : : }
13822 : 31 : break;
13823 : : }
13824 : 32498 : case BIT_AND_EXPR:
13825 : 32498 : {
13826 : 32498 : tree _q20 = gimple_assign_rhs1 (_a1);
13827 : 32498 : _q20 = do_valueize (valueize, _q20);
13828 : 32498 : tree _q21 = gimple_assign_rhs2 (_a1);
13829 : 32498 : _q21 = do_valueize (valueize, _q21);
13830 : 32498 : if (tree_swap_operands_p (_q20, _q21))
13831 : 1258 : std::swap (_q20, _q21);
13832 : 32498 : if ((_p1 == _q21 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q21, 0) && types_match (_p1, _q21)))
13833 : : {
13834 : 2644 : {
13835 : 2644 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
13836 : 2644 : if (gimple_simplify_28 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, BIT_AND_EXPR))
13837 : 1376 : return true;
13838 : : }
13839 : : }
13840 : 31122 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
13841 : : {
13842 : 36 : {
13843 : 36 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q21, _q20 };
13844 : 36 : if (gimple_simplify_28 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, BIT_AND_EXPR))
13845 : 36 : return true;
13846 : : }
13847 : : }
13848 : 31086 : switch (TREE_CODE (_p1))
13849 : : {
13850 : 24841 : case SSA_NAME:
13851 : 24841 : if (gimple *_d2 = get_def (valueize, _p1))
13852 : : {
13853 : 21648 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
13854 : 19297 : switch (gimple_assign_rhs_code (_a2))
13855 : : {
13856 : 2132 : case BIT_AND_EXPR:
13857 : 2132 : {
13858 : 2132 : tree _q50 = gimple_assign_rhs1 (_a2);
13859 : 2132 : _q50 = do_valueize (valueize, _q50);
13860 : 2132 : tree _q51 = gimple_assign_rhs2 (_a2);
13861 : 2132 : _q51 = do_valueize (valueize, _q51);
13862 : 2132 : if (tree_swap_operands_p (_q50, _q51))
13863 : 65 : std::swap (_q50, _q51);
13864 : 2132 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
13865 : : {
13866 : 18 : {
13867 : 18 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q51, _q20 };
13868 : 18 : if (gimple_simplify_29 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, BIT_AND_EXPR))
13869 : 18 : return true;
13870 : : }
13871 : : }
13872 : 2114 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q20, 0))
13873 : : {
13874 : 0 : {
13875 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q50, _q20 };
13876 : 0 : if (gimple_simplify_29 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, BIT_AND_EXPR))
13877 : 0 : return true;
13878 : : }
13879 : : }
13880 : 2114 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q21, 0))
13881 : : {
13882 : 0 : {
13883 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q51, _q21 };
13884 : 0 : if (gimple_simplify_29 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, BIT_AND_EXPR))
13885 : 0 : return true;
13886 : : }
13887 : : }
13888 : 2114 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q21, 0))
13889 : : {
13890 : 124 : {
13891 : 124 : tree captures[4] ATTRIBUTE_UNUSED = { _q21, _q20, _q50, _q21 };
13892 : 124 : if (gimple_simplify_29 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, BIT_AND_EXPR))
13893 : 109 : return true;
13894 : : }
13895 : : }
13896 : 627979 : break;
13897 : : }
13898 : : default:;
13899 : : }
13900 : : }
13901 : : break;
13902 : : default:;
13903 : : }
13904 : 627979 : break;
13905 : : }
13906 : : default:;
13907 : : }
13908 : : }
13909 : : break;
13910 : 627979 : default:;
13911 : : }
13912 : 627979 : switch (TREE_CODE (_p1))
13913 : : {
13914 : 495170 : case SSA_NAME:
13915 : 495170 : if (gimple *_d1 = get_def (valueize, _p1))
13916 : : {
13917 : 406341 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
13918 : 452439 : switch (gimple_assign_rhs_code (_a1))
13919 : : {
13920 : 14283 : case BIT_AND_EXPR:
13921 : 14283 : {
13922 : 14283 : tree _q30 = gimple_assign_rhs1 (_a1);
13923 : 14283 : _q30 = do_valueize (valueize, _q30);
13924 : 14283 : tree _q31 = gimple_assign_rhs2 (_a1);
13925 : 14283 : _q31 = do_valueize (valueize, _q31);
13926 : 14283 : if (tree_swap_operands_p (_q30, _q31))
13927 : 597 : std::swap (_q30, _q31);
13928 : 14283 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || (operand_equal_p (_q31, _p0, 0) && types_match (_q31, _p0)))
13929 : : {
13930 : 13 : {
13931 : 13 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q30, _p0 };
13932 : 13 : if (gimple_simplify_28 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, BIT_AND_EXPR))
13933 : 5 : return true;
13934 : : }
13935 : : }
13936 : 14278 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
13937 : : {
13938 : 40 : {
13939 : 40 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _q31, _p0 };
13940 : 40 : if (gimple_simplify_28 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, BIT_AND_EXPR))
13941 : 39 : return true;
13942 : : }
13943 : : }
13944 : 627935 : break;
13945 : : }
13946 : : default:;
13947 : : }
13948 : : }
13949 : : break;
13950 : 627935 : default:;
13951 : : }
13952 : 627935 : switch (TREE_CODE (_p0))
13953 : : {
13954 : 616686 : case SSA_NAME:
13955 : 616686 : if (gimple *_d1 = get_def (valueize, _p0))
13956 : : {
13957 : 489518 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
13958 : 553481 : switch (gimple_assign_rhs_code (_a1))
13959 : : {
13960 : 58107 : CASE_CONVERT:
13961 : 58107 : {
13962 : 58107 : tree _q20 = gimple_assign_rhs1 (_a1);
13963 : 58107 : _q20 = do_valueize (valueize, _q20);
13964 : 58107 : switch (TREE_CODE (_q20))
13965 : : {
13966 : 58065 : case SSA_NAME:
13967 : 58065 : if (gimple *_d2 = get_def (valueize, _q20))
13968 : : {
13969 : 55886 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
13970 : 65432 : switch (gimple_assign_rhs_code (_a2))
13971 : : {
13972 : 2985 : case BIT_AND_EXPR:
13973 : 2985 : {
13974 : 2985 : tree _q30 = gimple_assign_rhs1 (_a2);
13975 : 2985 : _q30 = do_valueize (valueize, _q30);
13976 : 2985 : tree _q31 = gimple_assign_rhs2 (_a2);
13977 : 2985 : _q31 = do_valueize (valueize, _q31);
13978 : 2985 : if (tree_swap_operands_p (_q30, _q31))
13979 : 26 : std::swap (_q30, _q31);
13980 : 2985 : switch (TREE_CODE (_p1))
13981 : : {
13982 : 2844 : case SSA_NAME:
13983 : 2844 : if (gimple *_d3 = get_def (valueize, _p1))
13984 : : {
13985 : 2819 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
13986 : 3295 : switch (gimple_assign_rhs_code (_a3))
13987 : : {
13988 : 31 : CASE_CONVERT:
13989 : 31 : {
13990 : 31 : tree _q60 = gimple_assign_rhs1 (_a3);
13991 : 31 : _q60 = do_valueize (valueize, _q60);
13992 : 31 : switch (TREE_CODE (_q60))
13993 : : {
13994 : 31 : case SSA_NAME:
13995 : 31 : if (gimple *_d4 = get_def (valueize, _q60))
13996 : : {
13997 : 31 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
13998 : 59 : switch (gimple_assign_rhs_code (_a4))
13999 : : {
14000 : 0 : case BIT_AND_EXPR:
14001 : 0 : {
14002 : 0 : tree _q70 = gimple_assign_rhs1 (_a4);
14003 : 0 : _q70 = do_valueize (valueize, _q70);
14004 : 0 : tree _q71 = gimple_assign_rhs2 (_a4);
14005 : 0 : _q71 = do_valueize (valueize, _q71);
14006 : 0 : if (tree_swap_operands_p (_q70, _q71))
14007 : 0 : std::swap (_q70, _q71);
14008 : 0 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q30, 0))
14009 : : {
14010 : 0 : {
14011 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q71, _q30 };
14012 : 0 : if (gimple_simplify_29 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, BIT_AND_EXPR))
14013 : 0 : return true;
14014 : : }
14015 : : }
14016 : 0 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || operand_equal_p (_q71, _q30, 0))
14017 : : {
14018 : 0 : {
14019 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q70, _q30 };
14020 : 0 : if (gimple_simplify_29 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, BIT_AND_EXPR))
14021 : 0 : return true;
14022 : : }
14023 : : }
14024 : 0 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || operand_equal_p (_q70, _q31, 0))
14025 : : {
14026 : 0 : {
14027 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q31, _q30, _q71, _q31 };
14028 : 0 : if (gimple_simplify_29 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, BIT_AND_EXPR))
14029 : 0 : return true;
14030 : : }
14031 : : }
14032 : 0 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || operand_equal_p (_q71, _q31, 0))
14033 : : {
14034 : 0 : {
14035 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _q31, _q30, _q70, _q31 };
14036 : 0 : if (gimple_simplify_29 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, BIT_AND_EXPR))
14037 : 0 : return true;
14038 : : }
14039 : : }
14040 : 58100 : break;
14041 : : }
14042 : : default:;
14043 : : }
14044 : : }
14045 : : break;
14046 : : default:;
14047 : : }
14048 : : break;
14049 : : }
14050 : : default:;
14051 : : }
14052 : : }
14053 : : break;
14054 : : default:;
14055 : : }
14056 : 58100 : break;
14057 : : }
14058 : 883 : case BIT_XOR_EXPR:
14059 : 883 : {
14060 : 883 : tree _q30 = gimple_assign_rhs1 (_a2);
14061 : 883 : _q30 = do_valueize (valueize, _q30);
14062 : 883 : tree _q31 = gimple_assign_rhs2 (_a2);
14063 : 883 : _q31 = do_valueize (valueize, _q31);
14064 : 883 : if (tree_swap_operands_p (_q30, _q31))
14065 : 62 : std::swap (_q30, _q31);
14066 : 883 : switch (TREE_CODE (_p1))
14067 : : {
14068 : 848 : case SSA_NAME:
14069 : 848 : if (gimple *_d3 = get_def (valueize, _p1))
14070 : : {
14071 : 808 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
14072 : 784 : switch (gimple_assign_rhs_code (_a3))
14073 : : {
14074 : 349 : CASE_CONVERT:
14075 : 349 : {
14076 : 349 : tree _q60 = gimple_assign_rhs1 (_a3);
14077 : 349 : _q60 = do_valueize (valueize, _q60);
14078 : 349 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q31, 0))
14079 : : {
14080 : 0 : {
14081 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q31 };
14082 : 0 : if (gimple_simplify_23 (res_op, seq, valueize, type, captures))
14083 : 0 : return true;
14084 : : }
14085 : : }
14086 : 349 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || operand_equal_p (_q60, _q30, 0))
14087 : : {
14088 : 0 : {
14089 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q30 };
14090 : 0 : if (gimple_simplify_23 (res_op, seq, valueize, type, captures))
14091 : 0 : return true;
14092 : : }
14093 : : }
14094 : : break;
14095 : : }
14096 : : default:;
14097 : : }
14098 : : }
14099 : : break;
14100 : 883 : default:;
14101 : : }
14102 : 883 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q31, 0))
14103 : : {
14104 : 7 : {
14105 : 7 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q31 };
14106 : 7 : if (gimple_simplify_23 (res_op, seq, valueize, type, captures))
14107 : 7 : return true;
14108 : : }
14109 : : }
14110 : 876 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || operand_equal_p (_p1, _q30, 0))
14111 : : {
14112 : 0 : {
14113 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q30 };
14114 : 0 : if (gimple_simplify_23 (res_op, seq, valueize, type, captures))
14115 : 0 : return true;
14116 : : }
14117 : : }
14118 : 58100 : break;
14119 : : }
14120 : : default:;
14121 : : }
14122 : : }
14123 : : break;
14124 : 58100 : default:;
14125 : : }
14126 : 58100 : switch (TREE_CODE (_p1))
14127 : : {
14128 : 45867 : case SSA_NAME:
14129 : 45867 : if (gimple *_d2 = get_def (valueize, _p1))
14130 : : {
14131 : 44650 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
14132 : 40978 : switch (gimple_assign_rhs_code (_a2))
14133 : : {
14134 : 17533 : CASE_CONVERT:
14135 : 17533 : {
14136 : 17533 : tree _q40 = gimple_assign_rhs1 (_a2);
14137 : 17533 : _q40 = do_valueize (valueize, _q40);
14138 : 17533 : switch (TREE_CODE (_q40))
14139 : : {
14140 : 17515 : case SSA_NAME:
14141 : 17515 : if (gimple *_d3 = get_def (valueize, _q40))
14142 : : {
14143 : 17228 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
14144 : 16926 : switch (gimple_assign_rhs_code (_a3))
14145 : : {
14146 : 22 : case BIT_XOR_EXPR:
14147 : 22 : {
14148 : 22 : tree _q50 = gimple_assign_rhs1 (_a3);
14149 : 22 : _q50 = do_valueize (valueize, _q50);
14150 : 22 : tree _q51 = gimple_assign_rhs2 (_a3);
14151 : 22 : _q51 = do_valueize (valueize, _q51);
14152 : 22 : if (tree_swap_operands_p (_q50, _q51))
14153 : 0 : std::swap (_q50, _q51);
14154 : 22 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || operand_equal_p (_q51, _q20, 0))
14155 : : {
14156 : 0 : {
14157 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q50, _q51, _q20 };
14158 : 0 : if (gimple_simplify_23 (res_op, seq, valueize, type, captures))
14159 : 0 : return true;
14160 : : }
14161 : : }
14162 : 22 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || operand_equal_p (_q50, _q20, 0))
14163 : : {
14164 : 0 : {
14165 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q51, _q50, _q20 };
14166 : 0 : if (gimple_simplify_23 (res_op, seq, valueize, type, captures))
14167 : 0 : return true;
14168 : : }
14169 : : }
14170 : 627928 : break;
14171 : : }
14172 : : default:;
14173 : : }
14174 : : }
14175 : : break;
14176 : : default:;
14177 : : }
14178 : : break;
14179 : : }
14180 : 2574 : case BIT_XOR_EXPR:
14181 : 2574 : {
14182 : 2574 : tree _q40 = gimple_assign_rhs1 (_a2);
14183 : 2574 : _q40 = do_valueize (valueize, _q40);
14184 : 2574 : tree _q41 = gimple_assign_rhs2 (_a2);
14185 : 2574 : _q41 = do_valueize (valueize, _q41);
14186 : 2574 : if (tree_swap_operands_p (_q40, _q41))
14187 : 224 : std::swap (_q40, _q41);
14188 : 2574 : if ((_q41 == _q20 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _q20, 0))
14189 : : {
14190 : 0 : {
14191 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _q20 };
14192 : 0 : if (gimple_simplify_23 (res_op, seq, valueize, type, captures))
14193 : 0 : return true;
14194 : : }
14195 : : }
14196 : 2574 : if ((_q40 == _q20 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _q20, 0))
14197 : : {
14198 : 0 : {
14199 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _q20 };
14200 : 0 : if (gimple_simplify_23 (res_op, seq, valueize, type, captures))
14201 : 0 : return true;
14202 : : }
14203 : : }
14204 : 627928 : break;
14205 : : }
14206 : : default:;
14207 : : }
14208 : : }
14209 : : break;
14210 : : default:;
14211 : : }
14212 : : break;
14213 : : }
14214 : : default:;
14215 : : }
14216 : : }
14217 : : break;
14218 : 627928 : default:;
14219 : : }
14220 : 627928 : switch (TREE_CODE (_p1))
14221 : : {
14222 : 495126 : case SSA_NAME:
14223 : 495126 : if (gimple *_d1 = get_def (valueize, _p1))
14224 : : {
14225 : 406297 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
14226 : 452395 : switch (gimple_assign_rhs_code (_a1))
14227 : : {
14228 : 37797 : CASE_CONVERT:
14229 : 37797 : {
14230 : 37797 : tree _q30 = gimple_assign_rhs1 (_a1);
14231 : 37797 : _q30 = do_valueize (valueize, _q30);
14232 : 37797 : switch (TREE_CODE (_q30))
14233 : : {
14234 : 37779 : case SSA_NAME:
14235 : 37779 : if (gimple *_d2 = get_def (valueize, _q30))
14236 : : {
14237 : 36375 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
14238 : 35533 : switch (gimple_assign_rhs_code (_a2))
14239 : : {
14240 : 570 : case BIT_XOR_EXPR:
14241 : 570 : {
14242 : 570 : tree _q40 = gimple_assign_rhs1 (_a2);
14243 : 570 : _q40 = do_valueize (valueize, _q40);
14244 : 570 : tree _q41 = gimple_assign_rhs2 (_a2);
14245 : 570 : _q41 = do_valueize (valueize, _q41);
14246 : 570 : if (tree_swap_operands_p (_q40, _q41))
14247 : 18 : std::swap (_q40, _q41);
14248 : 570 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || operand_equal_p (_q41, _p0, 0))
14249 : : {
14250 : 0 : {
14251 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _p0 };
14252 : 0 : if (gimple_simplify_23 (res_op, seq, valueize, type, captures))
14253 : 0 : return true;
14254 : : }
14255 : : }
14256 : 570 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || operand_equal_p (_q40, _p0, 0))
14257 : : {
14258 : 0 : {
14259 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _p0 };
14260 : 0 : if (gimple_simplify_23 (res_op, seq, valueize, type, captures))
14261 : 0 : return true;
14262 : : }
14263 : : }
14264 : 627418 : break;
14265 : : }
14266 : : default:;
14267 : : }
14268 : : }
14269 : : break;
14270 : : default:;
14271 : : }
14272 : : break;
14273 : : }
14274 : 32090 : case BIT_XOR_EXPR:
14275 : 32090 : {
14276 : 32090 : tree _q30 = gimple_assign_rhs1 (_a1);
14277 : 32090 : _q30 = do_valueize (valueize, _q30);
14278 : 32090 : tree _q31 = gimple_assign_rhs2 (_a1);
14279 : 32090 : _q31 = do_valueize (valueize, _q31);
14280 : 32090 : if (tree_swap_operands_p (_q30, _q31))
14281 : 2494 : std::swap (_q30, _q31);
14282 : 32090 : if ((_q31 == _p0 && ! TREE_SIDE_EFFECTS (_q31)) || operand_equal_p (_q31, _p0, 0))
14283 : : {
14284 : 307 : {
14285 : 307 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _p0 };
14286 : 307 : if (gimple_simplify_23 (res_op, seq, valueize, type, captures))
14287 : 307 : return true;
14288 : : }
14289 : : }
14290 : 31783 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || operand_equal_p (_q30, _p0, 0))
14291 : : {
14292 : 203 : {
14293 : 203 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _p0 };
14294 : 203 : if (gimple_simplify_23 (res_op, seq, valueize, type, captures))
14295 : 203 : return true;
14296 : : }
14297 : : }
14298 : 627418 : break;
14299 : : }
14300 : : default:;
14301 : : }
14302 : : }
14303 : : break;
14304 : 627418 : default:;
14305 : : }
14306 : 627418 : switch (TREE_CODE (_p0))
14307 : : {
14308 : 616169 : case SSA_NAME:
14309 : 616169 : if (gimple *_d1 = get_def (valueize, _p0))
14310 : : {
14311 : 489004 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
14312 : 552652 : switch (gimple_assign_rhs_code (_a1))
14313 : : {
14314 : 57995 : CASE_CONVERT:
14315 : 57995 : {
14316 : 57995 : tree _q20 = gimple_assign_rhs1 (_a1);
14317 : 57995 : _q20 = do_valueize (valueize, _q20);
14318 : 57995 : switch (TREE_CODE (_q20))
14319 : : {
14320 : 57953 : case SSA_NAME:
14321 : 57953 : if (gimple *_d2 = get_def (valueize, _q20))
14322 : : {
14323 : 55774 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
14324 : 65317 : switch (gimple_assign_rhs_code (_a2))
14325 : : {
14326 : 860 : case BIT_XOR_EXPR:
14327 : 860 : {
14328 : 860 : tree _q30 = gimple_assign_rhs1 (_a2);
14329 : 860 : _q30 = do_valueize (valueize, _q30);
14330 : 860 : tree _q31 = gimple_assign_rhs2 (_a2);
14331 : 860 : _q31 = do_valueize (valueize, _q31);
14332 : 860 : if (tree_swap_operands_p (_q30, _q31))
14333 : 62 : std::swap (_q30, _q31);
14334 : 860 : switch (TREE_CODE (_p1))
14335 : : {
14336 : 832 : case SSA_NAME:
14337 : 832 : if (gimple *_d3 = get_def (valueize, _p1))
14338 : : {
14339 : 792 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
14340 : 768 : switch (gimple_assign_rhs_code (_a3))
14341 : : {
14342 : 349 : CASE_CONVERT:
14343 : 349 : {
14344 : 349 : tree _q60 = gimple_assign_rhs1 (_a3);
14345 : 349 : _q60 = do_valueize (valueize, _q60);
14346 : 349 : switch (TREE_CODE (_q60))
14347 : : {
14348 : 349 : case SSA_NAME:
14349 : 349 : if (gimple *_d4 = get_def (valueize, _q60))
14350 : : {
14351 : 338 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
14352 : 560 : switch (gimple_assign_rhs_code (_a4))
14353 : : {
14354 : 4 : case BIT_XOR_EXPR:
14355 : 4 : {
14356 : 4 : tree _q70 = gimple_assign_rhs1 (_a4);
14357 : 4 : _q70 = do_valueize (valueize, _q70);
14358 : 4 : tree _q71 = gimple_assign_rhs2 (_a4);
14359 : 4 : _q71 = do_valueize (valueize, _q71);
14360 : 4 : if (tree_swap_operands_p (_q70, _q71))
14361 : 0 : std::swap (_q70, _q71);
14362 : 4 : if ((_q70 == _q30 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q30, 0) && types_match (_q70, _q30)))
14363 : : {
14364 : 2 : {
14365 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q71 };
14366 : 2 : if (gimple_simplify_30 (res_op, seq, valueize, type, captures))
14367 : 0 : return true;
14368 : : }
14369 : : }
14370 : 4 : if ((_q71 == _q30 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q30, 0) && types_match (_q71, _q30)))
14371 : : {
14372 : 0 : {
14373 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q70 };
14374 : 0 : if (gimple_simplify_30 (res_op, seq, valueize, type, captures))
14375 : 0 : return true;
14376 : : }
14377 : : }
14378 : 4 : if ((_q70 == _q31 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q31, 0) && types_match (_q70, _q31)))
14379 : : {
14380 : 2 : {
14381 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q71 };
14382 : 2 : if (gimple_simplify_30 (res_op, seq, valueize, type, captures))
14383 : 0 : return true;
14384 : : }
14385 : : }
14386 : 4 : if ((_q71 == _q31 && ! TREE_SIDE_EFFECTS (_q71)) || (operand_equal_p (_q71, _q31, 0) && types_match (_q71, _q31)))
14387 : : {
14388 : 0 : {
14389 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q70 };
14390 : 0 : if (gimple_simplify_30 (res_op, seq, valueize, type, captures))
14391 : 0 : return true;
14392 : : }
14393 : : }
14394 : 57995 : break;
14395 : : }
14396 : : default:;
14397 : : }
14398 : : }
14399 : : break;
14400 : : default:;
14401 : : }
14402 : : break;
14403 : : }
14404 : 26 : case BIT_XOR_EXPR:
14405 : 26 : {
14406 : 26 : tree _q60 = gimple_assign_rhs1 (_a3);
14407 : 26 : _q60 = do_valueize (valueize, _q60);
14408 : 26 : tree _q61 = gimple_assign_rhs2 (_a3);
14409 : 26 : _q61 = do_valueize (valueize, _q61);
14410 : 26 : if (tree_swap_operands_p (_q60, _q61))
14411 : 0 : std::swap (_q60, _q61);
14412 : 26 : if ((_q60 == _q30 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q30, 0) && types_match (_q60, _q30)))
14413 : : {
14414 : 0 : {
14415 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q61 };
14416 : 0 : if (gimple_simplify_30 (res_op, seq, valueize, type, captures))
14417 : 0 : return true;
14418 : : }
14419 : : }
14420 : 26 : if ((_q61 == _q30 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q30, 0) && types_match (_q61, _q30)))
14421 : : {
14422 : 0 : {
14423 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q60 };
14424 : 0 : if (gimple_simplify_30 (res_op, seq, valueize, type, captures))
14425 : 0 : return true;
14426 : : }
14427 : : }
14428 : 26 : if ((_q60 == _q31 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q31, 0) && types_match (_q60, _q31)))
14429 : : {
14430 : 0 : {
14431 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q61 };
14432 : 0 : if (gimple_simplify_30 (res_op, seq, valueize, type, captures))
14433 : 0 : return true;
14434 : : }
14435 : : }
14436 : 26 : if ((_q61 == _q31 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q31, 0) && types_match (_q61, _q31)))
14437 : : {
14438 : 0 : {
14439 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q60 };
14440 : 0 : if (gimple_simplify_30 (res_op, seq, valueize, type, captures))
14441 : 0 : return true;
14442 : : }
14443 : : }
14444 : 57995 : break;
14445 : : }
14446 : : default:;
14447 : : }
14448 : : }
14449 : : break;
14450 : : default:;
14451 : : }
14452 : 57995 : break;
14453 : : }
14454 : : default:;
14455 : : }
14456 : : }
14457 : : break;
14458 : 57995 : default:;
14459 : : }
14460 : 57995 : switch (TREE_CODE (_p1))
14461 : : {
14462 : 45762 : case SSA_NAME:
14463 : 45762 : if (gimple *_d2 = get_def (valueize, _p1))
14464 : : {
14465 : 44545 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
14466 : 40873 : switch (gimple_assign_rhs_code (_a2))
14467 : : {
14468 : 17533 : CASE_CONVERT:
14469 : 17533 : {
14470 : 17533 : tree _q40 = gimple_assign_rhs1 (_a2);
14471 : 17533 : _q40 = do_valueize (valueize, _q40);
14472 : 17533 : {
14473 : 17533 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
14474 : 17533 : if (gimple_simplify_31 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
14475 : 372 : return true;
14476 : : }
14477 : 17161 : break;
14478 : : }
14479 : : default:;
14480 : : }
14481 : : }
14482 : : break;
14483 : 57623 : default:;
14484 : : }
14485 : 57623 : {
14486 : 57623 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _p1 };
14487 : 57623 : if (gimple_simplify_32 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
14488 : 2929 : return true;
14489 : : }
14490 : 54694 : break;
14491 : : }
14492 : 41295 : case BIT_XOR_EXPR:
14493 : 41295 : {
14494 : 41295 : tree _q20 = gimple_assign_rhs1 (_a1);
14495 : 41295 : _q20 = do_valueize (valueize, _q20);
14496 : 41295 : tree _q21 = gimple_assign_rhs2 (_a1);
14497 : 41295 : _q21 = do_valueize (valueize, _q21);
14498 : 41295 : if (tree_swap_operands_p (_q20, _q21))
14499 : 1860 : std::swap (_q20, _q21);
14500 : 41295 : switch (TREE_CODE (_p1))
14501 : : {
14502 : 37788 : case SSA_NAME:
14503 : 37788 : if (gimple *_d2 = get_def (valueize, _p1))
14504 : : {
14505 : 36248 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
14506 : 41790 : switch (gimple_assign_rhs_code (_a2))
14507 : : {
14508 : 1651 : CASE_CONVERT:
14509 : 1651 : {
14510 : 1651 : tree _q50 = gimple_assign_rhs1 (_a2);
14511 : 1651 : _q50 = do_valueize (valueize, _q50);
14512 : 1651 : switch (TREE_CODE (_q50))
14513 : : {
14514 : 1651 : case SSA_NAME:
14515 : 1651 : if (gimple *_d3 = get_def (valueize, _q50))
14516 : : {
14517 : 1628 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
14518 : 2218 : switch (gimple_assign_rhs_code (_a3))
14519 : : {
14520 : 73 : case BIT_XOR_EXPR:
14521 : 73 : {
14522 : 73 : tree _q60 = gimple_assign_rhs1 (_a3);
14523 : 73 : _q60 = do_valueize (valueize, _q60);
14524 : 73 : tree _q61 = gimple_assign_rhs2 (_a3);
14525 : 73 : _q61 = do_valueize (valueize, _q61);
14526 : 73 : if (tree_swap_operands_p (_q60, _q61))
14527 : 2 : std::swap (_q60, _q61);
14528 : 73 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
14529 : : {
14530 : 0 : {
14531 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q61 };
14532 : 0 : if (gimple_simplify_30 (res_op, seq, valueize, type, captures))
14533 : 0 : return true;
14534 : : }
14535 : : }
14536 : 73 : if ((_q61 == _q20 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q20, 0) && types_match (_q61, _q20)))
14537 : : {
14538 : 0 : {
14539 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q60 };
14540 : 0 : if (gimple_simplify_30 (res_op, seq, valueize, type, captures))
14541 : 0 : return true;
14542 : : }
14543 : : }
14544 : 73 : if ((_q60 == _q21 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q21, 0) && types_match (_q60, _q21)))
14545 : : {
14546 : 0 : {
14547 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q61 };
14548 : 0 : if (gimple_simplify_30 (res_op, seq, valueize, type, captures))
14549 : 0 : return true;
14550 : : }
14551 : : }
14552 : 73 : if ((_q61 == _q21 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q21, 0) && types_match (_q61, _q21)))
14553 : : {
14554 : 0 : {
14555 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q60 };
14556 : 0 : if (gimple_simplify_30 (res_op, seq, valueize, type, captures))
14557 : 0 : return true;
14558 : : }
14559 : : }
14560 : 41265 : break;
14561 : : }
14562 : : default:;
14563 : : }
14564 : : }
14565 : : break;
14566 : : default:;
14567 : : }
14568 : : break;
14569 : : }
14570 : 2839 : case BIT_XOR_EXPR:
14571 : 2839 : {
14572 : 2839 : tree _q50 = gimple_assign_rhs1 (_a2);
14573 : 2839 : _q50 = do_valueize (valueize, _q50);
14574 : 2839 : tree _q51 = gimple_assign_rhs2 (_a2);
14575 : 2839 : _q51 = do_valueize (valueize, _q51);
14576 : 2839 : if (tree_swap_operands_p (_q50, _q51))
14577 : 271 : std::swap (_q50, _q51);
14578 : 2839 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
14579 : : {
14580 : 2 : {
14581 : 2 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q51 };
14582 : 2 : if (gimple_simplify_30 (res_op, seq, valueize, type, captures))
14583 : 2 : return true;
14584 : : }
14585 : : }
14586 : 2837 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
14587 : : {
14588 : 0 : {
14589 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _q50 };
14590 : 0 : if (gimple_simplify_30 (res_op, seq, valueize, type, captures))
14591 : 0 : return true;
14592 : : }
14593 : : }
14594 : 2837 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
14595 : : {
14596 : 4 : {
14597 : 4 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q51 };
14598 : 4 : if (gimple_simplify_30 (res_op, seq, valueize, type, captures))
14599 : 4 : return true;
14600 : : }
14601 : : }
14602 : 2833 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
14603 : : {
14604 : 24 : {
14605 : 24 : tree captures[3] ATTRIBUTE_UNUSED = { _q21, _q20, _q50 };
14606 : 24 : if (gimple_simplify_30 (res_op, seq, valueize, type, captures))
14607 : 24 : return true;
14608 : : }
14609 : : }
14610 : 41265 : break;
14611 : : }
14612 : : default:;
14613 : : }
14614 : : }
14615 : : break;
14616 : 41265 : default:;
14617 : : }
14618 : 41265 : if (CONSTANT_CLASS_P (_q21))
14619 : : {
14620 : 1270 : if (CONSTANT_CLASS_P (_p1))
14621 : : {
14622 : 67 : {
14623 : 67 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
14624 : 67 : if (gimple_simplify_33 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
14625 : 67 : return true;
14626 : : }
14627 : : }
14628 : : }
14629 : 623972 : break;
14630 : : }
14631 : 90 : case COND_EXPR:
14632 : 90 : {
14633 : 90 : tree _q20 = gimple_assign_rhs1 (_a1);
14634 : 90 : _q20 = do_valueize (valueize, _q20);
14635 : 90 : tree _q21 = gimple_assign_rhs2 (_a1);
14636 : 90 : _q21 = do_valueize (valueize, _q21);
14637 : 90 : tree _q22 = gimple_assign_rhs3 (_a1);
14638 : 90 : _q22 = do_valueize (valueize, _q22);
14639 : 90 : if (integer_zerop (_q22))
14640 : : {
14641 : 65 : switch (TREE_CODE (_p1))
14642 : : {
14643 : 62 : case SSA_NAME:
14644 : 62 : if (gimple *_d2 = get_def (valueize, _p1))
14645 : : {
14646 : 62 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
14647 : 51 : switch (gimple_assign_rhs_code (_a2))
14648 : : {
14649 : 28 : case COND_EXPR:
14650 : 28 : {
14651 : 28 : tree _q60 = gimple_assign_rhs1 (_a2);
14652 : 28 : _q60 = do_valueize (valueize, _q60);
14653 : 28 : tree _q61 = gimple_assign_rhs2 (_a2);
14654 : 28 : _q61 = do_valueize (valueize, _q61);
14655 : 28 : tree _q62 = gimple_assign_rhs3 (_a2);
14656 : 28 : _q62 = do_valueize (valueize, _q62);
14657 : 28 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
14658 : : {
14659 : 4 : if (integer_zerop (_q61))
14660 : : {
14661 : 4 : {
14662 : 4 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q62 };
14663 : 4 : const enum tree_code op = BIT_XOR_EXPR;
14664 : 4 : gimple_seq *lseq = seq;
14665 : 4 : if (lseq
14666 : 2 : && (!single_use (captures[0])
14667 : 2 : || !single_use (captures[3])))
14668 : 2 : lseq = NULL;
14669 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1969;
14670 : 4 : {
14671 : 4 : res_op->set_op (COND_EXPR, type, 3);
14672 : 4 : res_op->ops[0] = captures[1];
14673 : 4 : res_op->ops[0] = unshare_expr (res_op->ops[0]);
14674 : 4 : res_op->ops[1] = captures[2];
14675 : 4 : res_op->ops[2] = captures[4];
14676 : 4 : res_op->resimplify (lseq, valueize);
14677 : 4 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1029, __FILE__, __LINE__, true);
14678 : 4 : return true;
14679 : : }
14680 : 0 : next_after_fail1969:;
14681 : : }
14682 : : }
14683 : : }
14684 : : break;
14685 : : }
14686 : : default:;
14687 : : }
14688 : : }
14689 : : break;
14690 : : default:;
14691 : : }
14692 : : }
14693 : 86 : if (integer_zerop (_q21))
14694 : : {
14695 : 0 : switch (TREE_CODE (_p1))
14696 : : {
14697 : 0 : case SSA_NAME:
14698 : 0 : if (gimple *_d2 = get_def (valueize, _p1))
14699 : : {
14700 : 0 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
14701 : 0 : switch (gimple_assign_rhs_code (_a2))
14702 : : {
14703 : 0 : case COND_EXPR:
14704 : 0 : {
14705 : 0 : tree _q60 = gimple_assign_rhs1 (_a2);
14706 : 0 : _q60 = do_valueize (valueize, _q60);
14707 : 0 : tree _q61 = gimple_assign_rhs2 (_a2);
14708 : 0 : _q61 = do_valueize (valueize, _q61);
14709 : 0 : tree _q62 = gimple_assign_rhs3 (_a2);
14710 : 0 : _q62 = do_valueize (valueize, _q62);
14711 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
14712 : : {
14713 : 0 : if (integer_zerop (_q62))
14714 : : {
14715 : 0 : {
14716 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q20, _q61, _p0, _q22 };
14717 : 0 : const enum tree_code op = BIT_XOR_EXPR;
14718 : 0 : gimple_seq *lseq = seq;
14719 : 0 : if (lseq
14720 : 0 : && (!single_use (captures[0])
14721 : 0 : || !single_use (captures[3])))
14722 : 0 : lseq = NULL;
14723 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1970;
14724 : 0 : {
14725 : 0 : res_op->set_op (COND_EXPR, type, 3);
14726 : 0 : res_op->ops[0] = captures[1];
14727 : 0 : res_op->ops[0] = unshare_expr (res_op->ops[0]);
14728 : 0 : res_op->ops[1] = captures[2];
14729 : 0 : res_op->ops[2] = captures[4];
14730 : 0 : res_op->resimplify (lseq, valueize);
14731 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1029, __FILE__, __LINE__, true);
14732 : 0 : return true;
14733 : : }
14734 : 0 : next_after_fail1970:;
14735 : : }
14736 : : }
14737 : : }
14738 : : break;
14739 : : }
14740 : : default:;
14741 : : }
14742 : : }
14743 : : break;
14744 : : default:;
14745 : : }
14746 : : }
14747 : 86 : switch (TREE_CODE (_q20))
14748 : : {
14749 : 86 : case SSA_NAME:
14750 : 86 : if (gimple *_d2 = get_def (valueize, _q20))
14751 : : {
14752 : 85 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
14753 : 85 : switch (gimple_assign_rhs_code (_a2))
14754 : : {
14755 : 25 : case LT_EXPR:
14756 : 25 : {
14757 : 25 : tree _q30 = gimple_assign_rhs1 (_a2);
14758 : 25 : _q30 = do_valueize (valueize, _q30);
14759 : 25 : tree _q31 = gimple_assign_rhs2 (_a2);
14760 : 25 : _q31 = do_valueize (valueize, _q31);
14761 : 25 : if (zerop (_q22))
14762 : : {
14763 : 24 : switch (TREE_CODE (_p1))
14764 : : {
14765 : 24 : case SSA_NAME:
14766 : 24 : if (gimple *_d3 = get_def (valueize, _p1))
14767 : : {
14768 : 24 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
14769 : 24 : switch (gimple_assign_rhs_code (_a3))
14770 : : {
14771 : 24 : case COND_EXPR:
14772 : 24 : {
14773 : 24 : tree _q80 = gimple_assign_rhs1 (_a3);
14774 : 24 : _q80 = do_valueize (valueize, _q80);
14775 : 24 : tree _q81 = gimple_assign_rhs2 (_a3);
14776 : 24 : _q81 = do_valueize (valueize, _q81);
14777 : 24 : tree _q82 = gimple_assign_rhs3 (_a3);
14778 : 24 : _q82 = do_valueize (valueize, _q82);
14779 : 24 : switch (TREE_CODE (_q80))
14780 : : {
14781 : 24 : case SSA_NAME:
14782 : 24 : if (gimple *_d4 = get_def (valueize, _q80))
14783 : : {
14784 : 24 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
14785 : 24 : switch (gimple_assign_rhs_code (_a4))
14786 : : {
14787 : 24 : case GE_EXPR:
14788 : 24 : {
14789 : 24 : tree _q90 = gimple_assign_rhs1 (_a4);
14790 : 24 : _q90 = do_valueize (valueize, _q90);
14791 : 24 : tree _q91 = gimple_assign_rhs2 (_a4);
14792 : 24 : _q91 = do_valueize (valueize, _q91);
14793 : 24 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
14794 : : {
14795 : 24 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
14796 : : {
14797 : 24 : if (zerop (_q82))
14798 : : {
14799 : 24 : {
14800 : 24 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
14801 : 24 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, LT_EXPR, GE_EXPR))
14802 : 6 : return true;
14803 : : }
14804 : : }
14805 : : }
14806 : : }
14807 : : break;
14808 : : }
14809 : : default:;
14810 : : }
14811 : : }
14812 : : break;
14813 : 0 : case GE_EXPR:
14814 : 0 : {
14815 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
14816 : 0 : if ((TREE_CODE (_q90) == SSA_NAME
14817 : 0 : || is_gimple_min_invariant (_q90)))
14818 : : {
14819 : 0 : _q90 = do_valueize (valueize, _q90);
14820 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
14821 : 0 : if ((TREE_CODE (_q91) == SSA_NAME
14822 : 0 : || is_gimple_min_invariant (_q91)))
14823 : : {
14824 : 0 : _q91 = do_valueize (valueize, _q91);
14825 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
14826 : : {
14827 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
14828 : : {
14829 : 0 : if (zerop (_q82))
14830 : : {
14831 : 0 : {
14832 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
14833 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, LT_EXPR, GE_EXPR))
14834 : 0 : return true;
14835 : : }
14836 : : }
14837 : : }
14838 : : }
14839 : : }
14840 : : }
14841 : : break;
14842 : : }
14843 : : default:;
14844 : : }
14845 : : break;
14846 : : }
14847 : : default:;
14848 : : }
14849 : : }
14850 : : break;
14851 : : default:;
14852 : : }
14853 : : }
14854 : : break;
14855 : : }
14856 : 0 : case LE_EXPR:
14857 : 0 : {
14858 : 0 : tree _q30 = gimple_assign_rhs1 (_a2);
14859 : 0 : _q30 = do_valueize (valueize, _q30);
14860 : 0 : tree _q31 = gimple_assign_rhs2 (_a2);
14861 : 0 : _q31 = do_valueize (valueize, _q31);
14862 : 0 : if (zerop (_q22))
14863 : : {
14864 : 0 : switch (TREE_CODE (_p1))
14865 : : {
14866 : 0 : case SSA_NAME:
14867 : 0 : if (gimple *_d3 = get_def (valueize, _p1))
14868 : : {
14869 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
14870 : 0 : switch (gimple_assign_rhs_code (_a3))
14871 : : {
14872 : 0 : case COND_EXPR:
14873 : 0 : {
14874 : 0 : tree _q80 = gimple_assign_rhs1 (_a3);
14875 : 0 : _q80 = do_valueize (valueize, _q80);
14876 : 0 : tree _q81 = gimple_assign_rhs2 (_a3);
14877 : 0 : _q81 = do_valueize (valueize, _q81);
14878 : 0 : tree _q82 = gimple_assign_rhs3 (_a3);
14879 : 0 : _q82 = do_valueize (valueize, _q82);
14880 : 0 : switch (TREE_CODE (_q80))
14881 : : {
14882 : 0 : case SSA_NAME:
14883 : 0 : if (gimple *_d4 = get_def (valueize, _q80))
14884 : : {
14885 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
14886 : 0 : switch (gimple_assign_rhs_code (_a4))
14887 : : {
14888 : 0 : case GT_EXPR:
14889 : 0 : {
14890 : 0 : tree _q90 = gimple_assign_rhs1 (_a4);
14891 : 0 : _q90 = do_valueize (valueize, _q90);
14892 : 0 : tree _q91 = gimple_assign_rhs2 (_a4);
14893 : 0 : _q91 = do_valueize (valueize, _q91);
14894 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
14895 : : {
14896 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
14897 : : {
14898 : 0 : if (zerop (_q82))
14899 : : {
14900 : 0 : {
14901 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
14902 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, LE_EXPR, GT_EXPR))
14903 : 0 : return true;
14904 : : }
14905 : : }
14906 : : }
14907 : : }
14908 : : break;
14909 : : }
14910 : : default:;
14911 : : }
14912 : : }
14913 : : break;
14914 : 0 : case GT_EXPR:
14915 : 0 : {
14916 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
14917 : 0 : if ((TREE_CODE (_q90) == SSA_NAME
14918 : 0 : || is_gimple_min_invariant (_q90)))
14919 : : {
14920 : 0 : _q90 = do_valueize (valueize, _q90);
14921 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
14922 : 0 : if ((TREE_CODE (_q91) == SSA_NAME
14923 : 0 : || is_gimple_min_invariant (_q91)))
14924 : : {
14925 : 0 : _q91 = do_valueize (valueize, _q91);
14926 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
14927 : : {
14928 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
14929 : : {
14930 : 0 : if (zerop (_q82))
14931 : : {
14932 : 0 : {
14933 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
14934 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, LE_EXPR, GT_EXPR))
14935 : 0 : return true;
14936 : : }
14937 : : }
14938 : : }
14939 : : }
14940 : : }
14941 : : }
14942 : : break;
14943 : : }
14944 : : default:;
14945 : : }
14946 : : break;
14947 : : }
14948 : : default:;
14949 : : }
14950 : : }
14951 : : break;
14952 : : default:;
14953 : : }
14954 : : }
14955 : : break;
14956 : : }
14957 : 21 : case EQ_EXPR:
14958 : 21 : {
14959 : 21 : tree _q30 = gimple_assign_rhs1 (_a2);
14960 : 21 : _q30 = do_valueize (valueize, _q30);
14961 : 21 : tree _q31 = gimple_assign_rhs2 (_a2);
14962 : 21 : _q31 = do_valueize (valueize, _q31);
14963 : 21 : if (tree_swap_operands_p (_q30, _q31))
14964 : 0 : std::swap (_q30, _q31);
14965 : 21 : if (zerop (_q22))
14966 : : {
14967 : 0 : switch (TREE_CODE (_p1))
14968 : : {
14969 : 0 : case SSA_NAME:
14970 : 0 : if (gimple *_d3 = get_def (valueize, _p1))
14971 : : {
14972 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
14973 : 0 : switch (gimple_assign_rhs_code (_a3))
14974 : : {
14975 : 0 : case COND_EXPR:
14976 : 0 : {
14977 : 0 : tree _q80 = gimple_assign_rhs1 (_a3);
14978 : 0 : _q80 = do_valueize (valueize, _q80);
14979 : 0 : tree _q81 = gimple_assign_rhs2 (_a3);
14980 : 0 : _q81 = do_valueize (valueize, _q81);
14981 : 0 : tree _q82 = gimple_assign_rhs3 (_a3);
14982 : 0 : _q82 = do_valueize (valueize, _q82);
14983 : 0 : switch (TREE_CODE (_q80))
14984 : : {
14985 : 0 : case SSA_NAME:
14986 : 0 : if (gimple *_d4 = get_def (valueize, _q80))
14987 : : {
14988 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
14989 : 0 : switch (gimple_assign_rhs_code (_a4))
14990 : : {
14991 : 0 : case NE_EXPR:
14992 : 0 : {
14993 : 0 : tree _q90 = gimple_assign_rhs1 (_a4);
14994 : 0 : _q90 = do_valueize (valueize, _q90);
14995 : 0 : tree _q91 = gimple_assign_rhs2 (_a4);
14996 : 0 : _q91 = do_valueize (valueize, _q91);
14997 : 0 : if (tree_swap_operands_p (_q90, _q91))
14998 : 0 : std::swap (_q90, _q91);
14999 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
15000 : : {
15001 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
15002 : : {
15003 : 0 : if (zerop (_q82))
15004 : : {
15005 : 0 : {
15006 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
15007 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, EQ_EXPR, NE_EXPR))
15008 : 0 : return true;
15009 : : }
15010 : : }
15011 : : }
15012 : : }
15013 : 623972 : break;
15014 : : }
15015 : : default:;
15016 : : }
15017 : : }
15018 : : break;
15019 : 0 : case NE_EXPR:
15020 : 0 : {
15021 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
15022 : 0 : if ((TREE_CODE (_q90) == SSA_NAME
15023 : 0 : || is_gimple_min_invariant (_q90)))
15024 : : {
15025 : 0 : _q90 = do_valueize (valueize, _q90);
15026 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
15027 : 0 : if ((TREE_CODE (_q91) == SSA_NAME
15028 : 0 : || is_gimple_min_invariant (_q91)))
15029 : : {
15030 : 0 : _q91 = do_valueize (valueize, _q91);
15031 : 0 : if (tree_swap_operands_p (_q90, _q91))
15032 : 0 : std::swap (_q90, _q91);
15033 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
15034 : : {
15035 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
15036 : : {
15037 : 0 : if (zerop (_q82))
15038 : : {
15039 : 0 : {
15040 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
15041 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, EQ_EXPR, NE_EXPR))
15042 : 0 : return true;
15043 : : }
15044 : : }
15045 : : }
15046 : : }
15047 : : }
15048 : : }
15049 : 623972 : break;
15050 : : }
15051 : : default:;
15052 : : }
15053 : : break;
15054 : : }
15055 : : default:;
15056 : : }
15057 : : }
15058 : : break;
15059 : : default:;
15060 : : }
15061 : : }
15062 : 623972 : break;
15063 : : }
15064 : 34 : case NE_EXPR:
15065 : 34 : {
15066 : 34 : tree _q30 = gimple_assign_rhs1 (_a2);
15067 : 34 : _q30 = do_valueize (valueize, _q30);
15068 : 34 : tree _q31 = gimple_assign_rhs2 (_a2);
15069 : 34 : _q31 = do_valueize (valueize, _q31);
15070 : 34 : if (tree_swap_operands_p (_q30, _q31))
15071 : 0 : std::swap (_q30, _q31);
15072 : 34 : if (zerop (_q22))
15073 : : {
15074 : 34 : switch (TREE_CODE (_p1))
15075 : : {
15076 : 34 : case SSA_NAME:
15077 : 34 : if (gimple *_d3 = get_def (valueize, _p1))
15078 : : {
15079 : 34 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
15080 : 23 : switch (gimple_assign_rhs_code (_a3))
15081 : : {
15082 : 0 : case COND_EXPR:
15083 : 0 : {
15084 : 0 : tree _q80 = gimple_assign_rhs1 (_a3);
15085 : 0 : _q80 = do_valueize (valueize, _q80);
15086 : 0 : tree _q81 = gimple_assign_rhs2 (_a3);
15087 : 0 : _q81 = do_valueize (valueize, _q81);
15088 : 0 : tree _q82 = gimple_assign_rhs3 (_a3);
15089 : 0 : _q82 = do_valueize (valueize, _q82);
15090 : 0 : switch (TREE_CODE (_q80))
15091 : : {
15092 : 0 : case SSA_NAME:
15093 : 0 : if (gimple *_d4 = get_def (valueize, _q80))
15094 : : {
15095 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
15096 : 0 : switch (gimple_assign_rhs_code (_a4))
15097 : : {
15098 : 0 : case EQ_EXPR:
15099 : 0 : {
15100 : 0 : tree _q90 = gimple_assign_rhs1 (_a4);
15101 : 0 : _q90 = do_valueize (valueize, _q90);
15102 : 0 : tree _q91 = gimple_assign_rhs2 (_a4);
15103 : 0 : _q91 = do_valueize (valueize, _q91);
15104 : 0 : if (tree_swap_operands_p (_q90, _q91))
15105 : 0 : std::swap (_q90, _q91);
15106 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
15107 : : {
15108 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
15109 : : {
15110 : 0 : if (zerop (_q82))
15111 : : {
15112 : 0 : {
15113 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
15114 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, NE_EXPR, EQ_EXPR))
15115 : 0 : return true;
15116 : : }
15117 : : }
15118 : : }
15119 : : }
15120 : 623972 : break;
15121 : : }
15122 : : default:;
15123 : : }
15124 : : }
15125 : : break;
15126 : 0 : case EQ_EXPR:
15127 : 0 : {
15128 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
15129 : 0 : if ((TREE_CODE (_q90) == SSA_NAME
15130 : 0 : || is_gimple_min_invariant (_q90)))
15131 : : {
15132 : 0 : _q90 = do_valueize (valueize, _q90);
15133 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
15134 : 0 : if ((TREE_CODE (_q91) == SSA_NAME
15135 : 0 : || is_gimple_min_invariant (_q91)))
15136 : : {
15137 : 0 : _q91 = do_valueize (valueize, _q91);
15138 : 0 : if (tree_swap_operands_p (_q90, _q91))
15139 : 0 : std::swap (_q90, _q91);
15140 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
15141 : : {
15142 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
15143 : : {
15144 : 0 : if (zerop (_q82))
15145 : : {
15146 : 0 : {
15147 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
15148 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, NE_EXPR, EQ_EXPR))
15149 : 0 : return true;
15150 : : }
15151 : : }
15152 : : }
15153 : : }
15154 : : }
15155 : : }
15156 : 623972 : break;
15157 : : }
15158 : : default:;
15159 : : }
15160 : : break;
15161 : : }
15162 : : default:;
15163 : : }
15164 : : }
15165 : : break;
15166 : : default:;
15167 : : }
15168 : : }
15169 : 623972 : break;
15170 : : }
15171 : 2 : case GE_EXPR:
15172 : 2 : {
15173 : 2 : tree _q30 = gimple_assign_rhs1 (_a2);
15174 : 2 : _q30 = do_valueize (valueize, _q30);
15175 : 2 : tree _q31 = gimple_assign_rhs2 (_a2);
15176 : 2 : _q31 = do_valueize (valueize, _q31);
15177 : 2 : if (zerop (_q22))
15178 : : {
15179 : 2 : switch (TREE_CODE (_p1))
15180 : : {
15181 : 0 : case SSA_NAME:
15182 : 0 : if (gimple *_d3 = get_def (valueize, _p1))
15183 : : {
15184 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
15185 : 0 : switch (gimple_assign_rhs_code (_a3))
15186 : : {
15187 : 0 : case COND_EXPR:
15188 : 0 : {
15189 : 0 : tree _q80 = gimple_assign_rhs1 (_a3);
15190 : 0 : _q80 = do_valueize (valueize, _q80);
15191 : 0 : tree _q81 = gimple_assign_rhs2 (_a3);
15192 : 0 : _q81 = do_valueize (valueize, _q81);
15193 : 0 : tree _q82 = gimple_assign_rhs3 (_a3);
15194 : 0 : _q82 = do_valueize (valueize, _q82);
15195 : 0 : switch (TREE_CODE (_q80))
15196 : : {
15197 : 0 : case SSA_NAME:
15198 : 0 : if (gimple *_d4 = get_def (valueize, _q80))
15199 : : {
15200 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
15201 : 0 : switch (gimple_assign_rhs_code (_a4))
15202 : : {
15203 : 0 : case LT_EXPR:
15204 : 0 : {
15205 : 0 : tree _q90 = gimple_assign_rhs1 (_a4);
15206 : 0 : _q90 = do_valueize (valueize, _q90);
15207 : 0 : tree _q91 = gimple_assign_rhs2 (_a4);
15208 : 0 : _q91 = do_valueize (valueize, _q91);
15209 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
15210 : : {
15211 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
15212 : : {
15213 : 0 : if (zerop (_q82))
15214 : : {
15215 : 0 : {
15216 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
15217 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, GE_EXPR, LT_EXPR))
15218 : 0 : return true;
15219 : : }
15220 : : }
15221 : : }
15222 : : }
15223 : : break;
15224 : : }
15225 : : default:;
15226 : : }
15227 : : }
15228 : : break;
15229 : 0 : case LT_EXPR:
15230 : 0 : {
15231 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
15232 : 0 : if ((TREE_CODE (_q90) == SSA_NAME
15233 : 0 : || is_gimple_min_invariant (_q90)))
15234 : : {
15235 : 0 : _q90 = do_valueize (valueize, _q90);
15236 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
15237 : 0 : if ((TREE_CODE (_q91) == SSA_NAME
15238 : 0 : || is_gimple_min_invariant (_q91)))
15239 : : {
15240 : 0 : _q91 = do_valueize (valueize, _q91);
15241 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
15242 : : {
15243 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
15244 : : {
15245 : 0 : if (zerop (_q82))
15246 : : {
15247 : 0 : {
15248 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
15249 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, GE_EXPR, LT_EXPR))
15250 : 0 : return true;
15251 : : }
15252 : : }
15253 : : }
15254 : : }
15255 : : }
15256 : : }
15257 : : break;
15258 : : }
15259 : : default:;
15260 : : }
15261 : : break;
15262 : : }
15263 : : default:;
15264 : : }
15265 : : }
15266 : : break;
15267 : : default:;
15268 : : }
15269 : : }
15270 : : break;
15271 : : }
15272 : 0 : case GT_EXPR:
15273 : 0 : {
15274 : 0 : tree _q30 = gimple_assign_rhs1 (_a2);
15275 : 0 : _q30 = do_valueize (valueize, _q30);
15276 : 0 : tree _q31 = gimple_assign_rhs2 (_a2);
15277 : 0 : _q31 = do_valueize (valueize, _q31);
15278 : 0 : if (zerop (_q22))
15279 : : {
15280 : 0 : switch (TREE_CODE (_p1))
15281 : : {
15282 : 0 : case SSA_NAME:
15283 : 0 : if (gimple *_d3 = get_def (valueize, _p1))
15284 : : {
15285 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
15286 : 0 : switch (gimple_assign_rhs_code (_a3))
15287 : : {
15288 : 0 : case COND_EXPR:
15289 : 0 : {
15290 : 0 : tree _q80 = gimple_assign_rhs1 (_a3);
15291 : 0 : _q80 = do_valueize (valueize, _q80);
15292 : 0 : tree _q81 = gimple_assign_rhs2 (_a3);
15293 : 0 : _q81 = do_valueize (valueize, _q81);
15294 : 0 : tree _q82 = gimple_assign_rhs3 (_a3);
15295 : 0 : _q82 = do_valueize (valueize, _q82);
15296 : 0 : switch (TREE_CODE (_q80))
15297 : : {
15298 : 0 : case SSA_NAME:
15299 : 0 : if (gimple *_d4 = get_def (valueize, _q80))
15300 : : {
15301 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
15302 : 0 : switch (gimple_assign_rhs_code (_a4))
15303 : : {
15304 : 0 : case LE_EXPR:
15305 : 0 : {
15306 : 0 : tree _q90 = gimple_assign_rhs1 (_a4);
15307 : 0 : _q90 = do_valueize (valueize, _q90);
15308 : 0 : tree _q91 = gimple_assign_rhs2 (_a4);
15309 : 0 : _q91 = do_valueize (valueize, _q91);
15310 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
15311 : : {
15312 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
15313 : : {
15314 : 0 : if (zerop (_q82))
15315 : : {
15316 : 0 : {
15317 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
15318 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, GT_EXPR, LE_EXPR))
15319 : 0 : return true;
15320 : : }
15321 : : }
15322 : : }
15323 : : }
15324 : : break;
15325 : : }
15326 : : default:;
15327 : : }
15328 : : }
15329 : : break;
15330 : 0 : case LE_EXPR:
15331 : 0 : {
15332 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
15333 : 0 : if ((TREE_CODE (_q90) == SSA_NAME
15334 : 0 : || is_gimple_min_invariant (_q90)))
15335 : : {
15336 : 0 : _q90 = do_valueize (valueize, _q90);
15337 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
15338 : 0 : if ((TREE_CODE (_q91) == SSA_NAME
15339 : 0 : || is_gimple_min_invariant (_q91)))
15340 : : {
15341 : 0 : _q91 = do_valueize (valueize, _q91);
15342 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
15343 : : {
15344 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
15345 : : {
15346 : 0 : if (zerop (_q82))
15347 : : {
15348 : 0 : {
15349 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
15350 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, GT_EXPR, LE_EXPR))
15351 : 0 : return true;
15352 : : }
15353 : : }
15354 : : }
15355 : : }
15356 : : }
15357 : : }
15358 : : break;
15359 : : }
15360 : : default:;
15361 : : }
15362 : : break;
15363 : : }
15364 : : default:;
15365 : : }
15366 : : }
15367 : : break;
15368 : : default:;
15369 : : }
15370 : : }
15371 : : break;
15372 : : }
15373 : 0 : case UNORDERED_EXPR:
15374 : 0 : {
15375 : 0 : tree _q30 = gimple_assign_rhs1 (_a2);
15376 : 0 : _q30 = do_valueize (valueize, _q30);
15377 : 0 : tree _q31 = gimple_assign_rhs2 (_a2);
15378 : 0 : _q31 = do_valueize (valueize, _q31);
15379 : 0 : if (tree_swap_operands_p (_q30, _q31))
15380 : 0 : std::swap (_q30, _q31);
15381 : 0 : if (zerop (_q22))
15382 : : {
15383 : 0 : switch (TREE_CODE (_p1))
15384 : : {
15385 : 0 : case SSA_NAME:
15386 : 0 : if (gimple *_d3 = get_def (valueize, _p1))
15387 : : {
15388 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
15389 : 0 : switch (gimple_assign_rhs_code (_a3))
15390 : : {
15391 : 0 : case COND_EXPR:
15392 : 0 : {
15393 : 0 : tree _q80 = gimple_assign_rhs1 (_a3);
15394 : 0 : _q80 = do_valueize (valueize, _q80);
15395 : 0 : tree _q81 = gimple_assign_rhs2 (_a3);
15396 : 0 : _q81 = do_valueize (valueize, _q81);
15397 : 0 : tree _q82 = gimple_assign_rhs3 (_a3);
15398 : 0 : _q82 = do_valueize (valueize, _q82);
15399 : 0 : switch (TREE_CODE (_q80))
15400 : : {
15401 : 0 : case SSA_NAME:
15402 : 0 : if (gimple *_d4 = get_def (valueize, _q80))
15403 : : {
15404 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
15405 : 0 : switch (gimple_assign_rhs_code (_a4))
15406 : : {
15407 : 0 : case ORDERED_EXPR:
15408 : 0 : {
15409 : 0 : tree _q90 = gimple_assign_rhs1 (_a4);
15410 : 0 : _q90 = do_valueize (valueize, _q90);
15411 : 0 : tree _q91 = gimple_assign_rhs2 (_a4);
15412 : 0 : _q91 = do_valueize (valueize, _q91);
15413 : 0 : if (tree_swap_operands_p (_q90, _q91))
15414 : 0 : std::swap (_q90, _q91);
15415 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
15416 : : {
15417 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
15418 : : {
15419 : 0 : if (zerop (_q82))
15420 : : {
15421 : 0 : {
15422 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
15423 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, UNORDERED_EXPR, ORDERED_EXPR))
15424 : 0 : return true;
15425 : : }
15426 : : }
15427 : : }
15428 : : }
15429 : 623972 : break;
15430 : : }
15431 : : default:;
15432 : : }
15433 : : }
15434 : : break;
15435 : 0 : case ORDERED_EXPR:
15436 : 0 : {
15437 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
15438 : 0 : if ((TREE_CODE (_q90) == SSA_NAME
15439 : 0 : || is_gimple_min_invariant (_q90)))
15440 : : {
15441 : 0 : _q90 = do_valueize (valueize, _q90);
15442 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
15443 : 0 : if ((TREE_CODE (_q91) == SSA_NAME
15444 : 0 : || is_gimple_min_invariant (_q91)))
15445 : : {
15446 : 0 : _q91 = do_valueize (valueize, _q91);
15447 : 0 : if (tree_swap_operands_p (_q90, _q91))
15448 : 0 : std::swap (_q90, _q91);
15449 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
15450 : : {
15451 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
15452 : : {
15453 : 0 : if (zerop (_q82))
15454 : : {
15455 : 0 : {
15456 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
15457 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, UNORDERED_EXPR, ORDERED_EXPR))
15458 : 0 : return true;
15459 : : }
15460 : : }
15461 : : }
15462 : : }
15463 : : }
15464 : : }
15465 : 623972 : break;
15466 : : }
15467 : : default:;
15468 : : }
15469 : : break;
15470 : : }
15471 : : default:;
15472 : : }
15473 : : }
15474 : : break;
15475 : : default:;
15476 : : }
15477 : : }
15478 : 623972 : break;
15479 : : }
15480 : 0 : case ORDERED_EXPR:
15481 : 0 : {
15482 : 0 : tree _q30 = gimple_assign_rhs1 (_a2);
15483 : 0 : _q30 = do_valueize (valueize, _q30);
15484 : 0 : tree _q31 = gimple_assign_rhs2 (_a2);
15485 : 0 : _q31 = do_valueize (valueize, _q31);
15486 : 0 : if (tree_swap_operands_p (_q30, _q31))
15487 : 0 : std::swap (_q30, _q31);
15488 : 0 : if (zerop (_q22))
15489 : : {
15490 : 0 : switch (TREE_CODE (_p1))
15491 : : {
15492 : 0 : case SSA_NAME:
15493 : 0 : if (gimple *_d3 = get_def (valueize, _p1))
15494 : : {
15495 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
15496 : 0 : switch (gimple_assign_rhs_code (_a3))
15497 : : {
15498 : 0 : case COND_EXPR:
15499 : 0 : {
15500 : 0 : tree _q80 = gimple_assign_rhs1 (_a3);
15501 : 0 : _q80 = do_valueize (valueize, _q80);
15502 : 0 : tree _q81 = gimple_assign_rhs2 (_a3);
15503 : 0 : _q81 = do_valueize (valueize, _q81);
15504 : 0 : tree _q82 = gimple_assign_rhs3 (_a3);
15505 : 0 : _q82 = do_valueize (valueize, _q82);
15506 : 0 : switch (TREE_CODE (_q80))
15507 : : {
15508 : 0 : case SSA_NAME:
15509 : 0 : if (gimple *_d4 = get_def (valueize, _q80))
15510 : : {
15511 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
15512 : 0 : switch (gimple_assign_rhs_code (_a4))
15513 : : {
15514 : 0 : case UNORDERED_EXPR:
15515 : 0 : {
15516 : 0 : tree _q90 = gimple_assign_rhs1 (_a4);
15517 : 0 : _q90 = do_valueize (valueize, _q90);
15518 : 0 : tree _q91 = gimple_assign_rhs2 (_a4);
15519 : 0 : _q91 = do_valueize (valueize, _q91);
15520 : 0 : if (tree_swap_operands_p (_q90, _q91))
15521 : 0 : std::swap (_q90, _q91);
15522 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
15523 : : {
15524 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
15525 : : {
15526 : 0 : if (zerop (_q82))
15527 : : {
15528 : 0 : {
15529 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
15530 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, ORDERED_EXPR, UNORDERED_EXPR))
15531 : 0 : return true;
15532 : : }
15533 : : }
15534 : : }
15535 : : }
15536 : 623972 : break;
15537 : : }
15538 : : default:;
15539 : : }
15540 : : }
15541 : : break;
15542 : 0 : case UNORDERED_EXPR:
15543 : 0 : {
15544 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
15545 : 0 : if ((TREE_CODE (_q90) == SSA_NAME
15546 : 0 : || is_gimple_min_invariant (_q90)))
15547 : : {
15548 : 0 : _q90 = do_valueize (valueize, _q90);
15549 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
15550 : 0 : if ((TREE_CODE (_q91) == SSA_NAME
15551 : 0 : || is_gimple_min_invariant (_q91)))
15552 : : {
15553 : 0 : _q91 = do_valueize (valueize, _q91);
15554 : 0 : if (tree_swap_operands_p (_q90, _q91))
15555 : 0 : std::swap (_q90, _q91);
15556 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
15557 : : {
15558 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
15559 : : {
15560 : 0 : if (zerop (_q82))
15561 : : {
15562 : 0 : {
15563 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
15564 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, ORDERED_EXPR, UNORDERED_EXPR))
15565 : 0 : return true;
15566 : : }
15567 : : }
15568 : : }
15569 : : }
15570 : : }
15571 : : }
15572 : 623972 : break;
15573 : : }
15574 : : default:;
15575 : : }
15576 : : break;
15577 : : }
15578 : : default:;
15579 : : }
15580 : : }
15581 : : break;
15582 : : default:;
15583 : : }
15584 : : }
15585 : 623972 : break;
15586 : : }
15587 : 0 : case UNLT_EXPR:
15588 : 0 : {
15589 : 0 : tree _q30 = gimple_assign_rhs1 (_a2);
15590 : 0 : _q30 = do_valueize (valueize, _q30);
15591 : 0 : tree _q31 = gimple_assign_rhs2 (_a2);
15592 : 0 : _q31 = do_valueize (valueize, _q31);
15593 : 0 : if (zerop (_q22))
15594 : : {
15595 : 0 : switch (TREE_CODE (_p1))
15596 : : {
15597 : 0 : case SSA_NAME:
15598 : 0 : if (gimple *_d3 = get_def (valueize, _p1))
15599 : : {
15600 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
15601 : 0 : switch (gimple_assign_rhs_code (_a3))
15602 : : {
15603 : 0 : case COND_EXPR:
15604 : 0 : {
15605 : 0 : tree _q80 = gimple_assign_rhs1 (_a3);
15606 : 0 : _q80 = do_valueize (valueize, _q80);
15607 : 0 : tree _q81 = gimple_assign_rhs2 (_a3);
15608 : 0 : _q81 = do_valueize (valueize, _q81);
15609 : 0 : tree _q82 = gimple_assign_rhs3 (_a3);
15610 : 0 : _q82 = do_valueize (valueize, _q82);
15611 : 0 : switch (TREE_CODE (_q80))
15612 : : {
15613 : 0 : case SSA_NAME:
15614 : 0 : if (gimple *_d4 = get_def (valueize, _q80))
15615 : : {
15616 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
15617 : 0 : switch (gimple_assign_rhs_code (_a4))
15618 : : {
15619 : 0 : case GE_EXPR:
15620 : 0 : {
15621 : 0 : tree _q90 = gimple_assign_rhs1 (_a4);
15622 : 0 : _q90 = do_valueize (valueize, _q90);
15623 : 0 : tree _q91 = gimple_assign_rhs2 (_a4);
15624 : 0 : _q91 = do_valueize (valueize, _q91);
15625 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
15626 : : {
15627 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
15628 : : {
15629 : 0 : if (zerop (_q82))
15630 : : {
15631 : 0 : {
15632 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
15633 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, UNLT_EXPR, GE_EXPR))
15634 : 0 : return true;
15635 : : }
15636 : : }
15637 : : }
15638 : : }
15639 : : break;
15640 : : }
15641 : : default:;
15642 : : }
15643 : : }
15644 : : break;
15645 : 0 : case GE_EXPR:
15646 : 0 : {
15647 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
15648 : 0 : if ((TREE_CODE (_q90) == SSA_NAME
15649 : 0 : || is_gimple_min_invariant (_q90)))
15650 : : {
15651 : 0 : _q90 = do_valueize (valueize, _q90);
15652 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
15653 : 0 : if ((TREE_CODE (_q91) == SSA_NAME
15654 : 0 : || is_gimple_min_invariant (_q91)))
15655 : : {
15656 : 0 : _q91 = do_valueize (valueize, _q91);
15657 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
15658 : : {
15659 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
15660 : : {
15661 : 0 : if (zerop (_q82))
15662 : : {
15663 : 0 : {
15664 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
15665 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, UNLT_EXPR, GE_EXPR))
15666 : 0 : return true;
15667 : : }
15668 : : }
15669 : : }
15670 : : }
15671 : : }
15672 : : }
15673 : : break;
15674 : : }
15675 : : default:;
15676 : : }
15677 : : break;
15678 : : }
15679 : : default:;
15680 : : }
15681 : : }
15682 : : break;
15683 : : default:;
15684 : : }
15685 : : }
15686 : : break;
15687 : : }
15688 : 0 : case UNLE_EXPR:
15689 : 0 : {
15690 : 0 : tree _q30 = gimple_assign_rhs1 (_a2);
15691 : 0 : _q30 = do_valueize (valueize, _q30);
15692 : 0 : tree _q31 = gimple_assign_rhs2 (_a2);
15693 : 0 : _q31 = do_valueize (valueize, _q31);
15694 : 0 : if (zerop (_q22))
15695 : : {
15696 : 0 : switch (TREE_CODE (_p1))
15697 : : {
15698 : 0 : case SSA_NAME:
15699 : 0 : if (gimple *_d3 = get_def (valueize, _p1))
15700 : : {
15701 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
15702 : 0 : switch (gimple_assign_rhs_code (_a3))
15703 : : {
15704 : 0 : case COND_EXPR:
15705 : 0 : {
15706 : 0 : tree _q80 = gimple_assign_rhs1 (_a3);
15707 : 0 : _q80 = do_valueize (valueize, _q80);
15708 : 0 : tree _q81 = gimple_assign_rhs2 (_a3);
15709 : 0 : _q81 = do_valueize (valueize, _q81);
15710 : 0 : tree _q82 = gimple_assign_rhs3 (_a3);
15711 : 0 : _q82 = do_valueize (valueize, _q82);
15712 : 0 : switch (TREE_CODE (_q80))
15713 : : {
15714 : 0 : case SSA_NAME:
15715 : 0 : if (gimple *_d4 = get_def (valueize, _q80))
15716 : : {
15717 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
15718 : 0 : switch (gimple_assign_rhs_code (_a4))
15719 : : {
15720 : 0 : case GT_EXPR:
15721 : 0 : {
15722 : 0 : tree _q90 = gimple_assign_rhs1 (_a4);
15723 : 0 : _q90 = do_valueize (valueize, _q90);
15724 : 0 : tree _q91 = gimple_assign_rhs2 (_a4);
15725 : 0 : _q91 = do_valueize (valueize, _q91);
15726 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
15727 : : {
15728 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
15729 : : {
15730 : 0 : if (zerop (_q82))
15731 : : {
15732 : 0 : {
15733 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
15734 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, UNLE_EXPR, GT_EXPR))
15735 : 0 : return true;
15736 : : }
15737 : : }
15738 : : }
15739 : : }
15740 : : break;
15741 : : }
15742 : : default:;
15743 : : }
15744 : : }
15745 : : break;
15746 : 0 : case GT_EXPR:
15747 : 0 : {
15748 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
15749 : 0 : if ((TREE_CODE (_q90) == SSA_NAME
15750 : 0 : || is_gimple_min_invariant (_q90)))
15751 : : {
15752 : 0 : _q90 = do_valueize (valueize, _q90);
15753 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
15754 : 0 : if ((TREE_CODE (_q91) == SSA_NAME
15755 : 0 : || is_gimple_min_invariant (_q91)))
15756 : : {
15757 : 0 : _q91 = do_valueize (valueize, _q91);
15758 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
15759 : : {
15760 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
15761 : : {
15762 : 0 : if (zerop (_q82))
15763 : : {
15764 : 0 : {
15765 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
15766 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, UNLE_EXPR, GT_EXPR))
15767 : 0 : return true;
15768 : : }
15769 : : }
15770 : : }
15771 : : }
15772 : : }
15773 : : }
15774 : : break;
15775 : : }
15776 : : default:;
15777 : : }
15778 : : break;
15779 : : }
15780 : : default:;
15781 : : }
15782 : : }
15783 : : break;
15784 : : default:;
15785 : : }
15786 : : }
15787 : : break;
15788 : : }
15789 : 0 : case UNGT_EXPR:
15790 : 0 : {
15791 : 0 : tree _q30 = gimple_assign_rhs1 (_a2);
15792 : 0 : _q30 = do_valueize (valueize, _q30);
15793 : 0 : tree _q31 = gimple_assign_rhs2 (_a2);
15794 : 0 : _q31 = do_valueize (valueize, _q31);
15795 : 0 : if (zerop (_q22))
15796 : : {
15797 : 0 : switch (TREE_CODE (_p1))
15798 : : {
15799 : 0 : case SSA_NAME:
15800 : 0 : if (gimple *_d3 = get_def (valueize, _p1))
15801 : : {
15802 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
15803 : 0 : switch (gimple_assign_rhs_code (_a3))
15804 : : {
15805 : 0 : case COND_EXPR:
15806 : 0 : {
15807 : 0 : tree _q80 = gimple_assign_rhs1 (_a3);
15808 : 0 : _q80 = do_valueize (valueize, _q80);
15809 : 0 : tree _q81 = gimple_assign_rhs2 (_a3);
15810 : 0 : _q81 = do_valueize (valueize, _q81);
15811 : 0 : tree _q82 = gimple_assign_rhs3 (_a3);
15812 : 0 : _q82 = do_valueize (valueize, _q82);
15813 : 0 : switch (TREE_CODE (_q80))
15814 : : {
15815 : 0 : case SSA_NAME:
15816 : 0 : if (gimple *_d4 = get_def (valueize, _q80))
15817 : : {
15818 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
15819 : 0 : switch (gimple_assign_rhs_code (_a4))
15820 : : {
15821 : 0 : case LE_EXPR:
15822 : 0 : {
15823 : 0 : tree _q90 = gimple_assign_rhs1 (_a4);
15824 : 0 : _q90 = do_valueize (valueize, _q90);
15825 : 0 : tree _q91 = gimple_assign_rhs2 (_a4);
15826 : 0 : _q91 = do_valueize (valueize, _q91);
15827 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
15828 : : {
15829 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
15830 : : {
15831 : 0 : if (zerop (_q82))
15832 : : {
15833 : 0 : {
15834 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
15835 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, UNGT_EXPR, LE_EXPR))
15836 : 0 : return true;
15837 : : }
15838 : : }
15839 : : }
15840 : : }
15841 : : break;
15842 : : }
15843 : : default:;
15844 : : }
15845 : : }
15846 : : break;
15847 : 0 : case LE_EXPR:
15848 : 0 : {
15849 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
15850 : 0 : if ((TREE_CODE (_q90) == SSA_NAME
15851 : 0 : || is_gimple_min_invariant (_q90)))
15852 : : {
15853 : 0 : _q90 = do_valueize (valueize, _q90);
15854 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
15855 : 0 : if ((TREE_CODE (_q91) == SSA_NAME
15856 : 0 : || is_gimple_min_invariant (_q91)))
15857 : : {
15858 : 0 : _q91 = do_valueize (valueize, _q91);
15859 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
15860 : : {
15861 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
15862 : : {
15863 : 0 : if (zerop (_q82))
15864 : : {
15865 : 0 : {
15866 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
15867 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, UNGT_EXPR, LE_EXPR))
15868 : 0 : return true;
15869 : : }
15870 : : }
15871 : : }
15872 : : }
15873 : : }
15874 : : }
15875 : : break;
15876 : : }
15877 : : default:;
15878 : : }
15879 : : break;
15880 : : }
15881 : : default:;
15882 : : }
15883 : : }
15884 : : break;
15885 : : default:;
15886 : : }
15887 : : }
15888 : : break;
15889 : : }
15890 : 0 : case UNGE_EXPR:
15891 : 0 : {
15892 : 0 : tree _q30 = gimple_assign_rhs1 (_a2);
15893 : 0 : _q30 = do_valueize (valueize, _q30);
15894 : 0 : tree _q31 = gimple_assign_rhs2 (_a2);
15895 : 0 : _q31 = do_valueize (valueize, _q31);
15896 : 0 : if (zerop (_q22))
15897 : : {
15898 : 0 : switch (TREE_CODE (_p1))
15899 : : {
15900 : 0 : case SSA_NAME:
15901 : 0 : if (gimple *_d3 = get_def (valueize, _p1))
15902 : : {
15903 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
15904 : 0 : switch (gimple_assign_rhs_code (_a3))
15905 : : {
15906 : 0 : case COND_EXPR:
15907 : 0 : {
15908 : 0 : tree _q80 = gimple_assign_rhs1 (_a3);
15909 : 0 : _q80 = do_valueize (valueize, _q80);
15910 : 0 : tree _q81 = gimple_assign_rhs2 (_a3);
15911 : 0 : _q81 = do_valueize (valueize, _q81);
15912 : 0 : tree _q82 = gimple_assign_rhs3 (_a3);
15913 : 0 : _q82 = do_valueize (valueize, _q82);
15914 : 0 : switch (TREE_CODE (_q80))
15915 : : {
15916 : 0 : case SSA_NAME:
15917 : 0 : if (gimple *_d4 = get_def (valueize, _q80))
15918 : : {
15919 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
15920 : 0 : switch (gimple_assign_rhs_code (_a4))
15921 : : {
15922 : 0 : case LT_EXPR:
15923 : 0 : {
15924 : 0 : tree _q90 = gimple_assign_rhs1 (_a4);
15925 : 0 : _q90 = do_valueize (valueize, _q90);
15926 : 0 : tree _q91 = gimple_assign_rhs2 (_a4);
15927 : 0 : _q91 = do_valueize (valueize, _q91);
15928 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
15929 : : {
15930 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
15931 : : {
15932 : 0 : if (zerop (_q82))
15933 : : {
15934 : 0 : {
15935 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
15936 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, UNGE_EXPR, LT_EXPR))
15937 : 0 : return true;
15938 : : }
15939 : : }
15940 : : }
15941 : : }
15942 : : break;
15943 : : }
15944 : : default:;
15945 : : }
15946 : : }
15947 : : break;
15948 : 0 : case LT_EXPR:
15949 : 0 : {
15950 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
15951 : 0 : if ((TREE_CODE (_q90) == SSA_NAME
15952 : 0 : || is_gimple_min_invariant (_q90)))
15953 : : {
15954 : 0 : _q90 = do_valueize (valueize, _q90);
15955 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
15956 : 0 : if ((TREE_CODE (_q91) == SSA_NAME
15957 : 0 : || is_gimple_min_invariant (_q91)))
15958 : : {
15959 : 0 : _q91 = do_valueize (valueize, _q91);
15960 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
15961 : : {
15962 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
15963 : : {
15964 : 0 : if (zerop (_q82))
15965 : : {
15966 : 0 : {
15967 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
15968 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, UNGE_EXPR, LT_EXPR))
15969 : 0 : return true;
15970 : : }
15971 : : }
15972 : : }
15973 : : }
15974 : : }
15975 : : }
15976 : : break;
15977 : : }
15978 : : default:;
15979 : : }
15980 : : break;
15981 : : }
15982 : : default:;
15983 : : }
15984 : : }
15985 : : break;
15986 : : default:;
15987 : : }
15988 : : }
15989 : : break;
15990 : : }
15991 : 0 : case UNEQ_EXPR:
15992 : 0 : {
15993 : 0 : tree _q30 = gimple_assign_rhs1 (_a2);
15994 : 0 : _q30 = do_valueize (valueize, _q30);
15995 : 0 : tree _q31 = gimple_assign_rhs2 (_a2);
15996 : 0 : _q31 = do_valueize (valueize, _q31);
15997 : 0 : if (tree_swap_operands_p (_q30, _q31))
15998 : 0 : std::swap (_q30, _q31);
15999 : 0 : if (zerop (_q22))
16000 : : {
16001 : 0 : switch (TREE_CODE (_p1))
16002 : : {
16003 : 0 : case SSA_NAME:
16004 : 0 : if (gimple *_d3 = get_def (valueize, _p1))
16005 : : {
16006 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
16007 : 0 : switch (gimple_assign_rhs_code (_a3))
16008 : : {
16009 : 0 : case COND_EXPR:
16010 : 0 : {
16011 : 0 : tree _q80 = gimple_assign_rhs1 (_a3);
16012 : 0 : _q80 = do_valueize (valueize, _q80);
16013 : 0 : tree _q81 = gimple_assign_rhs2 (_a3);
16014 : 0 : _q81 = do_valueize (valueize, _q81);
16015 : 0 : tree _q82 = gimple_assign_rhs3 (_a3);
16016 : 0 : _q82 = do_valueize (valueize, _q82);
16017 : 0 : switch (TREE_CODE (_q80))
16018 : : {
16019 : 0 : case SSA_NAME:
16020 : 0 : if (gimple *_d4 = get_def (valueize, _q80))
16021 : : {
16022 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
16023 : 0 : switch (gimple_assign_rhs_code (_a4))
16024 : : {
16025 : 0 : case LTGT_EXPR:
16026 : 0 : {
16027 : 0 : tree _q90 = gimple_assign_rhs1 (_a4);
16028 : 0 : _q90 = do_valueize (valueize, _q90);
16029 : 0 : tree _q91 = gimple_assign_rhs2 (_a4);
16030 : 0 : _q91 = do_valueize (valueize, _q91);
16031 : 0 : if (tree_swap_operands_p (_q90, _q91))
16032 : 0 : std::swap (_q90, _q91);
16033 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
16034 : : {
16035 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
16036 : : {
16037 : 0 : if (zerop (_q82))
16038 : : {
16039 : 0 : {
16040 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
16041 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, UNEQ_EXPR, LTGT_EXPR))
16042 : 0 : return true;
16043 : : }
16044 : : }
16045 : : }
16046 : : }
16047 : 623972 : break;
16048 : : }
16049 : : default:;
16050 : : }
16051 : : }
16052 : : break;
16053 : 0 : case LTGT_EXPR:
16054 : 0 : {
16055 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
16056 : 0 : if ((TREE_CODE (_q90) == SSA_NAME
16057 : 0 : || is_gimple_min_invariant (_q90)))
16058 : : {
16059 : 0 : _q90 = do_valueize (valueize, _q90);
16060 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
16061 : 0 : if ((TREE_CODE (_q91) == SSA_NAME
16062 : 0 : || is_gimple_min_invariant (_q91)))
16063 : : {
16064 : 0 : _q91 = do_valueize (valueize, _q91);
16065 : 0 : if (tree_swap_operands_p (_q90, _q91))
16066 : 0 : std::swap (_q90, _q91);
16067 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
16068 : : {
16069 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
16070 : : {
16071 : 0 : if (zerop (_q82))
16072 : : {
16073 : 0 : {
16074 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
16075 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, UNEQ_EXPR, LTGT_EXPR))
16076 : 0 : return true;
16077 : : }
16078 : : }
16079 : : }
16080 : : }
16081 : : }
16082 : : }
16083 : 623972 : break;
16084 : : }
16085 : : default:;
16086 : : }
16087 : : break;
16088 : : }
16089 : : default:;
16090 : : }
16091 : : }
16092 : : break;
16093 : : default:;
16094 : : }
16095 : : }
16096 : 623972 : break;
16097 : : }
16098 : 0 : case LTGT_EXPR:
16099 : 0 : {
16100 : 0 : tree _q30 = gimple_assign_rhs1 (_a2);
16101 : 0 : _q30 = do_valueize (valueize, _q30);
16102 : 0 : tree _q31 = gimple_assign_rhs2 (_a2);
16103 : 0 : _q31 = do_valueize (valueize, _q31);
16104 : 0 : if (tree_swap_operands_p (_q30, _q31))
16105 : 0 : std::swap (_q30, _q31);
16106 : 0 : if (zerop (_q22))
16107 : : {
16108 : 0 : switch (TREE_CODE (_p1))
16109 : : {
16110 : 0 : case SSA_NAME:
16111 : 0 : if (gimple *_d3 = get_def (valueize, _p1))
16112 : : {
16113 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
16114 : 0 : switch (gimple_assign_rhs_code (_a3))
16115 : : {
16116 : 0 : case COND_EXPR:
16117 : 0 : {
16118 : 0 : tree _q80 = gimple_assign_rhs1 (_a3);
16119 : 0 : _q80 = do_valueize (valueize, _q80);
16120 : 0 : tree _q81 = gimple_assign_rhs2 (_a3);
16121 : 0 : _q81 = do_valueize (valueize, _q81);
16122 : 0 : tree _q82 = gimple_assign_rhs3 (_a3);
16123 : 0 : _q82 = do_valueize (valueize, _q82);
16124 : 0 : switch (TREE_CODE (_q80))
16125 : : {
16126 : 0 : case SSA_NAME:
16127 : 0 : if (gimple *_d4 = get_def (valueize, _q80))
16128 : : {
16129 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
16130 : 0 : switch (gimple_assign_rhs_code (_a4))
16131 : : {
16132 : 0 : case UNEQ_EXPR:
16133 : 0 : {
16134 : 0 : tree _q90 = gimple_assign_rhs1 (_a4);
16135 : 0 : _q90 = do_valueize (valueize, _q90);
16136 : 0 : tree _q91 = gimple_assign_rhs2 (_a4);
16137 : 0 : _q91 = do_valueize (valueize, _q91);
16138 : 0 : if (tree_swap_operands_p (_q90, _q91))
16139 : 0 : std::swap (_q90, _q91);
16140 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
16141 : : {
16142 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
16143 : : {
16144 : 0 : if (zerop (_q82))
16145 : : {
16146 : 0 : {
16147 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
16148 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, LTGT_EXPR, UNEQ_EXPR))
16149 : 0 : return true;
16150 : : }
16151 : : }
16152 : : }
16153 : : }
16154 : 623972 : break;
16155 : : }
16156 : : default:;
16157 : : }
16158 : : }
16159 : : break;
16160 : 0 : case UNEQ_EXPR:
16161 : 0 : {
16162 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
16163 : 0 : if ((TREE_CODE (_q90) == SSA_NAME
16164 : 0 : || is_gimple_min_invariant (_q90)))
16165 : : {
16166 : 0 : _q90 = do_valueize (valueize, _q90);
16167 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
16168 : 0 : if ((TREE_CODE (_q91) == SSA_NAME
16169 : 0 : || is_gimple_min_invariant (_q91)))
16170 : : {
16171 : 0 : _q91 = do_valueize (valueize, _q91);
16172 : 0 : if (tree_swap_operands_p (_q90, _q91))
16173 : 0 : std::swap (_q90, _q91);
16174 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
16175 : : {
16176 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
16177 : : {
16178 : 0 : if (zerop (_q82))
16179 : : {
16180 : 0 : {
16181 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
16182 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, LTGT_EXPR, UNEQ_EXPR))
16183 : 0 : return true;
16184 : : }
16185 : : }
16186 : : }
16187 : : }
16188 : : }
16189 : : }
16190 : 623972 : break;
16191 : : }
16192 : : default:;
16193 : : }
16194 : : break;
16195 : : }
16196 : : default:;
16197 : : }
16198 : : }
16199 : : break;
16200 : : default:;
16201 : : }
16202 : : }
16203 : 623972 : break;
16204 : : }
16205 : : default:;
16206 : : }
16207 : : }
16208 : : break;
16209 : 0 : case LT_EXPR:
16210 : 0 : {
16211 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
16212 : 0 : if ((TREE_CODE (_q30) == SSA_NAME
16213 : 0 : || is_gimple_min_invariant (_q30)))
16214 : : {
16215 : 0 : _q30 = do_valueize (valueize, _q30);
16216 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
16217 : 0 : if ((TREE_CODE (_q31) == SSA_NAME
16218 : 0 : || is_gimple_min_invariant (_q31)))
16219 : : {
16220 : 0 : _q31 = do_valueize (valueize, _q31);
16221 : 0 : if (zerop (_q22))
16222 : : {
16223 : 0 : switch (TREE_CODE (_p1))
16224 : : {
16225 : 0 : case SSA_NAME:
16226 : 0 : if (gimple *_d2 = get_def (valueize, _p1))
16227 : : {
16228 : 0 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
16229 : 0 : switch (gimple_assign_rhs_code (_a2))
16230 : : {
16231 : 0 : case COND_EXPR:
16232 : 0 : {
16233 : 0 : tree _q80 = gimple_assign_rhs1 (_a2);
16234 : 0 : _q80 = do_valueize (valueize, _q80);
16235 : 0 : tree _q81 = gimple_assign_rhs2 (_a2);
16236 : 0 : _q81 = do_valueize (valueize, _q81);
16237 : 0 : tree _q82 = gimple_assign_rhs3 (_a2);
16238 : 0 : _q82 = do_valueize (valueize, _q82);
16239 : 0 : switch (TREE_CODE (_q80))
16240 : : {
16241 : 0 : case SSA_NAME:
16242 : 0 : if (gimple *_d3 = get_def (valueize, _q80))
16243 : : {
16244 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
16245 : 0 : switch (gimple_assign_rhs_code (_a3))
16246 : : {
16247 : 0 : case GE_EXPR:
16248 : 0 : {
16249 : 0 : tree _q90 = gimple_assign_rhs1 (_a3);
16250 : 0 : _q90 = do_valueize (valueize, _q90);
16251 : 0 : tree _q91 = gimple_assign_rhs2 (_a3);
16252 : 0 : _q91 = do_valueize (valueize, _q91);
16253 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
16254 : : {
16255 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
16256 : : {
16257 : 0 : if (zerop (_q82))
16258 : : {
16259 : 0 : {
16260 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
16261 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, LT_EXPR, GE_EXPR))
16262 : 0 : return true;
16263 : : }
16264 : : }
16265 : : }
16266 : : }
16267 : : break;
16268 : : }
16269 : : default:;
16270 : : }
16271 : : }
16272 : : break;
16273 : 0 : case GE_EXPR:
16274 : 0 : {
16275 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
16276 : 0 : if ((TREE_CODE (_q90) == SSA_NAME
16277 : 0 : || is_gimple_min_invariant (_q90)))
16278 : : {
16279 : 0 : _q90 = do_valueize (valueize, _q90);
16280 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
16281 : 0 : if ((TREE_CODE (_q91) == SSA_NAME
16282 : 0 : || is_gimple_min_invariant (_q91)))
16283 : : {
16284 : 0 : _q91 = do_valueize (valueize, _q91);
16285 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
16286 : : {
16287 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
16288 : : {
16289 : 0 : if (zerop (_q82))
16290 : : {
16291 : 0 : {
16292 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
16293 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, LT_EXPR, GE_EXPR))
16294 : 0 : return true;
16295 : : }
16296 : : }
16297 : : }
16298 : : }
16299 : : }
16300 : : }
16301 : : break;
16302 : : }
16303 : : default:;
16304 : : }
16305 : : break;
16306 : : }
16307 : : default:;
16308 : : }
16309 : : }
16310 : : break;
16311 : : default:;
16312 : : }
16313 : : }
16314 : : }
16315 : : }
16316 : : break;
16317 : : }
16318 : 0 : case LE_EXPR:
16319 : 0 : {
16320 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
16321 : 0 : if ((TREE_CODE (_q30) == SSA_NAME
16322 : 0 : || is_gimple_min_invariant (_q30)))
16323 : : {
16324 : 0 : _q30 = do_valueize (valueize, _q30);
16325 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
16326 : 0 : if ((TREE_CODE (_q31) == SSA_NAME
16327 : 0 : || is_gimple_min_invariant (_q31)))
16328 : : {
16329 : 0 : _q31 = do_valueize (valueize, _q31);
16330 : 0 : if (zerop (_q22))
16331 : : {
16332 : 0 : switch (TREE_CODE (_p1))
16333 : : {
16334 : 0 : case SSA_NAME:
16335 : 0 : if (gimple *_d2 = get_def (valueize, _p1))
16336 : : {
16337 : 0 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
16338 : 0 : switch (gimple_assign_rhs_code (_a2))
16339 : : {
16340 : 0 : case COND_EXPR:
16341 : 0 : {
16342 : 0 : tree _q80 = gimple_assign_rhs1 (_a2);
16343 : 0 : _q80 = do_valueize (valueize, _q80);
16344 : 0 : tree _q81 = gimple_assign_rhs2 (_a2);
16345 : 0 : _q81 = do_valueize (valueize, _q81);
16346 : 0 : tree _q82 = gimple_assign_rhs3 (_a2);
16347 : 0 : _q82 = do_valueize (valueize, _q82);
16348 : 0 : switch (TREE_CODE (_q80))
16349 : : {
16350 : 0 : case SSA_NAME:
16351 : 0 : if (gimple *_d3 = get_def (valueize, _q80))
16352 : : {
16353 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
16354 : 0 : switch (gimple_assign_rhs_code (_a3))
16355 : : {
16356 : 0 : case GT_EXPR:
16357 : 0 : {
16358 : 0 : tree _q90 = gimple_assign_rhs1 (_a3);
16359 : 0 : _q90 = do_valueize (valueize, _q90);
16360 : 0 : tree _q91 = gimple_assign_rhs2 (_a3);
16361 : 0 : _q91 = do_valueize (valueize, _q91);
16362 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
16363 : : {
16364 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
16365 : : {
16366 : 0 : if (zerop (_q82))
16367 : : {
16368 : 0 : {
16369 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
16370 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, LE_EXPR, GT_EXPR))
16371 : 0 : return true;
16372 : : }
16373 : : }
16374 : : }
16375 : : }
16376 : : break;
16377 : : }
16378 : : default:;
16379 : : }
16380 : : }
16381 : : break;
16382 : 0 : case GT_EXPR:
16383 : 0 : {
16384 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
16385 : 0 : if ((TREE_CODE (_q90) == SSA_NAME
16386 : 0 : || is_gimple_min_invariant (_q90)))
16387 : : {
16388 : 0 : _q90 = do_valueize (valueize, _q90);
16389 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
16390 : 0 : if ((TREE_CODE (_q91) == SSA_NAME
16391 : 0 : || is_gimple_min_invariant (_q91)))
16392 : : {
16393 : 0 : _q91 = do_valueize (valueize, _q91);
16394 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
16395 : : {
16396 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
16397 : : {
16398 : 0 : if (zerop (_q82))
16399 : : {
16400 : 0 : {
16401 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
16402 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, LE_EXPR, GT_EXPR))
16403 : 0 : return true;
16404 : : }
16405 : : }
16406 : : }
16407 : : }
16408 : : }
16409 : : }
16410 : : break;
16411 : : }
16412 : : default:;
16413 : : }
16414 : : break;
16415 : : }
16416 : : default:;
16417 : : }
16418 : : }
16419 : : break;
16420 : : default:;
16421 : : }
16422 : : }
16423 : : }
16424 : : }
16425 : : break;
16426 : : }
16427 : 0 : case EQ_EXPR:
16428 : 0 : {
16429 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
16430 : 0 : if ((TREE_CODE (_q30) == SSA_NAME
16431 : 0 : || is_gimple_min_invariant (_q30)))
16432 : : {
16433 : 0 : _q30 = do_valueize (valueize, _q30);
16434 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
16435 : 0 : if ((TREE_CODE (_q31) == SSA_NAME
16436 : 0 : || is_gimple_min_invariant (_q31)))
16437 : : {
16438 : 0 : _q31 = do_valueize (valueize, _q31);
16439 : 0 : if (tree_swap_operands_p (_q30, _q31))
16440 : 0 : std::swap (_q30, _q31);
16441 : 0 : if (zerop (_q22))
16442 : : {
16443 : 0 : switch (TREE_CODE (_p1))
16444 : : {
16445 : 0 : case SSA_NAME:
16446 : 0 : if (gimple *_d2 = get_def (valueize, _p1))
16447 : : {
16448 : 0 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
16449 : 0 : switch (gimple_assign_rhs_code (_a2))
16450 : : {
16451 : 0 : case COND_EXPR:
16452 : 0 : {
16453 : 0 : tree _q80 = gimple_assign_rhs1 (_a2);
16454 : 0 : _q80 = do_valueize (valueize, _q80);
16455 : 0 : tree _q81 = gimple_assign_rhs2 (_a2);
16456 : 0 : _q81 = do_valueize (valueize, _q81);
16457 : 0 : tree _q82 = gimple_assign_rhs3 (_a2);
16458 : 0 : _q82 = do_valueize (valueize, _q82);
16459 : 0 : switch (TREE_CODE (_q80))
16460 : : {
16461 : 0 : case SSA_NAME:
16462 : 0 : if (gimple *_d3 = get_def (valueize, _q80))
16463 : : {
16464 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
16465 : 0 : switch (gimple_assign_rhs_code (_a3))
16466 : : {
16467 : 0 : case NE_EXPR:
16468 : 0 : {
16469 : 0 : tree _q90 = gimple_assign_rhs1 (_a3);
16470 : 0 : _q90 = do_valueize (valueize, _q90);
16471 : 0 : tree _q91 = gimple_assign_rhs2 (_a3);
16472 : 0 : _q91 = do_valueize (valueize, _q91);
16473 : 0 : if (tree_swap_operands_p (_q90, _q91))
16474 : 0 : std::swap (_q90, _q91);
16475 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
16476 : : {
16477 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
16478 : : {
16479 : 0 : if (zerop (_q82))
16480 : : {
16481 : 0 : {
16482 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
16483 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, EQ_EXPR, NE_EXPR))
16484 : 0 : return true;
16485 : : }
16486 : : }
16487 : : }
16488 : : }
16489 : 623972 : break;
16490 : : }
16491 : : default:;
16492 : : }
16493 : : }
16494 : : break;
16495 : 0 : case NE_EXPR:
16496 : 0 : {
16497 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
16498 : 0 : if ((TREE_CODE (_q90) == SSA_NAME
16499 : 0 : || is_gimple_min_invariant (_q90)))
16500 : : {
16501 : 0 : _q90 = do_valueize (valueize, _q90);
16502 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
16503 : 0 : if ((TREE_CODE (_q91) == SSA_NAME
16504 : 0 : || is_gimple_min_invariant (_q91)))
16505 : : {
16506 : 0 : _q91 = do_valueize (valueize, _q91);
16507 : 0 : if (tree_swap_operands_p (_q90, _q91))
16508 : 0 : std::swap (_q90, _q91);
16509 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
16510 : : {
16511 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
16512 : : {
16513 : 0 : if (zerop (_q82))
16514 : : {
16515 : 0 : {
16516 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
16517 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, EQ_EXPR, NE_EXPR))
16518 : 0 : return true;
16519 : : }
16520 : : }
16521 : : }
16522 : : }
16523 : : }
16524 : : }
16525 : 623972 : break;
16526 : : }
16527 : : default:;
16528 : : }
16529 : : break;
16530 : : }
16531 : : default:;
16532 : : }
16533 : : }
16534 : : break;
16535 : : default:;
16536 : : }
16537 : : }
16538 : : }
16539 : : }
16540 : 623972 : break;
16541 : : }
16542 : 0 : case NE_EXPR:
16543 : 0 : {
16544 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
16545 : 0 : if ((TREE_CODE (_q30) == SSA_NAME
16546 : 0 : || is_gimple_min_invariant (_q30)))
16547 : : {
16548 : 0 : _q30 = do_valueize (valueize, _q30);
16549 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
16550 : 0 : if ((TREE_CODE (_q31) == SSA_NAME
16551 : 0 : || is_gimple_min_invariant (_q31)))
16552 : : {
16553 : 0 : _q31 = do_valueize (valueize, _q31);
16554 : 0 : if (tree_swap_operands_p (_q30, _q31))
16555 : 0 : std::swap (_q30, _q31);
16556 : 0 : if (zerop (_q22))
16557 : : {
16558 : 0 : switch (TREE_CODE (_p1))
16559 : : {
16560 : 0 : case SSA_NAME:
16561 : 0 : if (gimple *_d2 = get_def (valueize, _p1))
16562 : : {
16563 : 0 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
16564 : 0 : switch (gimple_assign_rhs_code (_a2))
16565 : : {
16566 : 0 : case COND_EXPR:
16567 : 0 : {
16568 : 0 : tree _q80 = gimple_assign_rhs1 (_a2);
16569 : 0 : _q80 = do_valueize (valueize, _q80);
16570 : 0 : tree _q81 = gimple_assign_rhs2 (_a2);
16571 : 0 : _q81 = do_valueize (valueize, _q81);
16572 : 0 : tree _q82 = gimple_assign_rhs3 (_a2);
16573 : 0 : _q82 = do_valueize (valueize, _q82);
16574 : 0 : switch (TREE_CODE (_q80))
16575 : : {
16576 : 0 : case SSA_NAME:
16577 : 0 : if (gimple *_d3 = get_def (valueize, _q80))
16578 : : {
16579 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
16580 : 0 : switch (gimple_assign_rhs_code (_a3))
16581 : : {
16582 : 0 : case EQ_EXPR:
16583 : 0 : {
16584 : 0 : tree _q90 = gimple_assign_rhs1 (_a3);
16585 : 0 : _q90 = do_valueize (valueize, _q90);
16586 : 0 : tree _q91 = gimple_assign_rhs2 (_a3);
16587 : 0 : _q91 = do_valueize (valueize, _q91);
16588 : 0 : if (tree_swap_operands_p (_q90, _q91))
16589 : 0 : std::swap (_q90, _q91);
16590 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
16591 : : {
16592 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
16593 : : {
16594 : 0 : if (zerop (_q82))
16595 : : {
16596 : 0 : {
16597 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
16598 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, NE_EXPR, EQ_EXPR))
16599 : 0 : return true;
16600 : : }
16601 : : }
16602 : : }
16603 : : }
16604 : 623972 : break;
16605 : : }
16606 : : default:;
16607 : : }
16608 : : }
16609 : : break;
16610 : 0 : case EQ_EXPR:
16611 : 0 : {
16612 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
16613 : 0 : if ((TREE_CODE (_q90) == SSA_NAME
16614 : 0 : || is_gimple_min_invariant (_q90)))
16615 : : {
16616 : 0 : _q90 = do_valueize (valueize, _q90);
16617 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
16618 : 0 : if ((TREE_CODE (_q91) == SSA_NAME
16619 : 0 : || is_gimple_min_invariant (_q91)))
16620 : : {
16621 : 0 : _q91 = do_valueize (valueize, _q91);
16622 : 0 : if (tree_swap_operands_p (_q90, _q91))
16623 : 0 : std::swap (_q90, _q91);
16624 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
16625 : : {
16626 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
16627 : : {
16628 : 0 : if (zerop (_q82))
16629 : : {
16630 : 0 : {
16631 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
16632 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, NE_EXPR, EQ_EXPR))
16633 : 0 : return true;
16634 : : }
16635 : : }
16636 : : }
16637 : : }
16638 : : }
16639 : : }
16640 : 623972 : break;
16641 : : }
16642 : : default:;
16643 : : }
16644 : : break;
16645 : : }
16646 : : default:;
16647 : : }
16648 : : }
16649 : : break;
16650 : : default:;
16651 : : }
16652 : : }
16653 : : }
16654 : : }
16655 : 623972 : break;
16656 : : }
16657 : 0 : case GE_EXPR:
16658 : 0 : {
16659 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
16660 : 0 : if ((TREE_CODE (_q30) == SSA_NAME
16661 : 0 : || is_gimple_min_invariant (_q30)))
16662 : : {
16663 : 0 : _q30 = do_valueize (valueize, _q30);
16664 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
16665 : 0 : if ((TREE_CODE (_q31) == SSA_NAME
16666 : 0 : || is_gimple_min_invariant (_q31)))
16667 : : {
16668 : 0 : _q31 = do_valueize (valueize, _q31);
16669 : 0 : if (zerop (_q22))
16670 : : {
16671 : 0 : switch (TREE_CODE (_p1))
16672 : : {
16673 : 0 : case SSA_NAME:
16674 : 0 : if (gimple *_d2 = get_def (valueize, _p1))
16675 : : {
16676 : 0 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
16677 : 0 : switch (gimple_assign_rhs_code (_a2))
16678 : : {
16679 : 0 : case COND_EXPR:
16680 : 0 : {
16681 : 0 : tree _q80 = gimple_assign_rhs1 (_a2);
16682 : 0 : _q80 = do_valueize (valueize, _q80);
16683 : 0 : tree _q81 = gimple_assign_rhs2 (_a2);
16684 : 0 : _q81 = do_valueize (valueize, _q81);
16685 : 0 : tree _q82 = gimple_assign_rhs3 (_a2);
16686 : 0 : _q82 = do_valueize (valueize, _q82);
16687 : 0 : switch (TREE_CODE (_q80))
16688 : : {
16689 : 0 : case SSA_NAME:
16690 : 0 : if (gimple *_d3 = get_def (valueize, _q80))
16691 : : {
16692 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
16693 : 0 : switch (gimple_assign_rhs_code (_a3))
16694 : : {
16695 : 0 : case LT_EXPR:
16696 : 0 : {
16697 : 0 : tree _q90 = gimple_assign_rhs1 (_a3);
16698 : 0 : _q90 = do_valueize (valueize, _q90);
16699 : 0 : tree _q91 = gimple_assign_rhs2 (_a3);
16700 : 0 : _q91 = do_valueize (valueize, _q91);
16701 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
16702 : : {
16703 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
16704 : : {
16705 : 0 : if (zerop (_q82))
16706 : : {
16707 : 0 : {
16708 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
16709 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, GE_EXPR, LT_EXPR))
16710 : 0 : return true;
16711 : : }
16712 : : }
16713 : : }
16714 : : }
16715 : : break;
16716 : : }
16717 : : default:;
16718 : : }
16719 : : }
16720 : : break;
16721 : 0 : case LT_EXPR:
16722 : 0 : {
16723 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
16724 : 0 : if ((TREE_CODE (_q90) == SSA_NAME
16725 : 0 : || is_gimple_min_invariant (_q90)))
16726 : : {
16727 : 0 : _q90 = do_valueize (valueize, _q90);
16728 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
16729 : 0 : if ((TREE_CODE (_q91) == SSA_NAME
16730 : 0 : || is_gimple_min_invariant (_q91)))
16731 : : {
16732 : 0 : _q91 = do_valueize (valueize, _q91);
16733 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
16734 : : {
16735 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
16736 : : {
16737 : 0 : if (zerop (_q82))
16738 : : {
16739 : 0 : {
16740 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
16741 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, GE_EXPR, LT_EXPR))
16742 : 0 : return true;
16743 : : }
16744 : : }
16745 : : }
16746 : : }
16747 : : }
16748 : : }
16749 : : break;
16750 : : }
16751 : : default:;
16752 : : }
16753 : : break;
16754 : : }
16755 : : default:;
16756 : : }
16757 : : }
16758 : : break;
16759 : : default:;
16760 : : }
16761 : : }
16762 : : }
16763 : : }
16764 : : break;
16765 : : }
16766 : 0 : case GT_EXPR:
16767 : 0 : {
16768 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
16769 : 0 : if ((TREE_CODE (_q30) == SSA_NAME
16770 : 0 : || is_gimple_min_invariant (_q30)))
16771 : : {
16772 : 0 : _q30 = do_valueize (valueize, _q30);
16773 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
16774 : 0 : if ((TREE_CODE (_q31) == SSA_NAME
16775 : 0 : || is_gimple_min_invariant (_q31)))
16776 : : {
16777 : 0 : _q31 = do_valueize (valueize, _q31);
16778 : 0 : if (zerop (_q22))
16779 : : {
16780 : 0 : switch (TREE_CODE (_p1))
16781 : : {
16782 : 0 : case SSA_NAME:
16783 : 0 : if (gimple *_d2 = get_def (valueize, _p1))
16784 : : {
16785 : 0 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
16786 : 0 : switch (gimple_assign_rhs_code (_a2))
16787 : : {
16788 : 0 : case COND_EXPR:
16789 : 0 : {
16790 : 0 : tree _q80 = gimple_assign_rhs1 (_a2);
16791 : 0 : _q80 = do_valueize (valueize, _q80);
16792 : 0 : tree _q81 = gimple_assign_rhs2 (_a2);
16793 : 0 : _q81 = do_valueize (valueize, _q81);
16794 : 0 : tree _q82 = gimple_assign_rhs3 (_a2);
16795 : 0 : _q82 = do_valueize (valueize, _q82);
16796 : 0 : switch (TREE_CODE (_q80))
16797 : : {
16798 : 0 : case SSA_NAME:
16799 : 0 : if (gimple *_d3 = get_def (valueize, _q80))
16800 : : {
16801 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
16802 : 0 : switch (gimple_assign_rhs_code (_a3))
16803 : : {
16804 : 0 : case LE_EXPR:
16805 : 0 : {
16806 : 0 : tree _q90 = gimple_assign_rhs1 (_a3);
16807 : 0 : _q90 = do_valueize (valueize, _q90);
16808 : 0 : tree _q91 = gimple_assign_rhs2 (_a3);
16809 : 0 : _q91 = do_valueize (valueize, _q91);
16810 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
16811 : : {
16812 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
16813 : : {
16814 : 0 : if (zerop (_q82))
16815 : : {
16816 : 0 : {
16817 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
16818 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, GT_EXPR, LE_EXPR))
16819 : 0 : return true;
16820 : : }
16821 : : }
16822 : : }
16823 : : }
16824 : : break;
16825 : : }
16826 : : default:;
16827 : : }
16828 : : }
16829 : : break;
16830 : 0 : case LE_EXPR:
16831 : 0 : {
16832 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
16833 : 0 : if ((TREE_CODE (_q90) == SSA_NAME
16834 : 0 : || is_gimple_min_invariant (_q90)))
16835 : : {
16836 : 0 : _q90 = do_valueize (valueize, _q90);
16837 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
16838 : 0 : if ((TREE_CODE (_q91) == SSA_NAME
16839 : 0 : || is_gimple_min_invariant (_q91)))
16840 : : {
16841 : 0 : _q91 = do_valueize (valueize, _q91);
16842 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
16843 : : {
16844 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
16845 : : {
16846 : 0 : if (zerop (_q82))
16847 : : {
16848 : 0 : {
16849 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
16850 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, GT_EXPR, LE_EXPR))
16851 : 0 : return true;
16852 : : }
16853 : : }
16854 : : }
16855 : : }
16856 : : }
16857 : : }
16858 : : break;
16859 : : }
16860 : : default:;
16861 : : }
16862 : : break;
16863 : : }
16864 : : default:;
16865 : : }
16866 : : }
16867 : : break;
16868 : : default:;
16869 : : }
16870 : : }
16871 : : }
16872 : : }
16873 : : break;
16874 : : }
16875 : 0 : case UNORDERED_EXPR:
16876 : 0 : {
16877 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
16878 : 0 : if ((TREE_CODE (_q30) == SSA_NAME
16879 : 0 : || is_gimple_min_invariant (_q30)))
16880 : : {
16881 : 0 : _q30 = do_valueize (valueize, _q30);
16882 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
16883 : 0 : if ((TREE_CODE (_q31) == SSA_NAME
16884 : 0 : || is_gimple_min_invariant (_q31)))
16885 : : {
16886 : 0 : _q31 = do_valueize (valueize, _q31);
16887 : 0 : if (tree_swap_operands_p (_q30, _q31))
16888 : 0 : std::swap (_q30, _q31);
16889 : 0 : if (zerop (_q22))
16890 : : {
16891 : 0 : switch (TREE_CODE (_p1))
16892 : : {
16893 : 0 : case SSA_NAME:
16894 : 0 : if (gimple *_d2 = get_def (valueize, _p1))
16895 : : {
16896 : 0 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
16897 : 0 : switch (gimple_assign_rhs_code (_a2))
16898 : : {
16899 : 0 : case COND_EXPR:
16900 : 0 : {
16901 : 0 : tree _q80 = gimple_assign_rhs1 (_a2);
16902 : 0 : _q80 = do_valueize (valueize, _q80);
16903 : 0 : tree _q81 = gimple_assign_rhs2 (_a2);
16904 : 0 : _q81 = do_valueize (valueize, _q81);
16905 : 0 : tree _q82 = gimple_assign_rhs3 (_a2);
16906 : 0 : _q82 = do_valueize (valueize, _q82);
16907 : 0 : switch (TREE_CODE (_q80))
16908 : : {
16909 : 0 : case SSA_NAME:
16910 : 0 : if (gimple *_d3 = get_def (valueize, _q80))
16911 : : {
16912 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
16913 : 0 : switch (gimple_assign_rhs_code (_a3))
16914 : : {
16915 : 0 : case ORDERED_EXPR:
16916 : 0 : {
16917 : 0 : tree _q90 = gimple_assign_rhs1 (_a3);
16918 : 0 : _q90 = do_valueize (valueize, _q90);
16919 : 0 : tree _q91 = gimple_assign_rhs2 (_a3);
16920 : 0 : _q91 = do_valueize (valueize, _q91);
16921 : 0 : if (tree_swap_operands_p (_q90, _q91))
16922 : 0 : std::swap (_q90, _q91);
16923 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
16924 : : {
16925 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
16926 : : {
16927 : 0 : if (zerop (_q82))
16928 : : {
16929 : 0 : {
16930 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
16931 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, UNORDERED_EXPR, ORDERED_EXPR))
16932 : 0 : return true;
16933 : : }
16934 : : }
16935 : : }
16936 : : }
16937 : 623972 : break;
16938 : : }
16939 : : default:;
16940 : : }
16941 : : }
16942 : : break;
16943 : 0 : case ORDERED_EXPR:
16944 : 0 : {
16945 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
16946 : 0 : if ((TREE_CODE (_q90) == SSA_NAME
16947 : 0 : || is_gimple_min_invariant (_q90)))
16948 : : {
16949 : 0 : _q90 = do_valueize (valueize, _q90);
16950 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
16951 : 0 : if ((TREE_CODE (_q91) == SSA_NAME
16952 : 0 : || is_gimple_min_invariant (_q91)))
16953 : : {
16954 : 0 : _q91 = do_valueize (valueize, _q91);
16955 : 0 : if (tree_swap_operands_p (_q90, _q91))
16956 : 0 : std::swap (_q90, _q91);
16957 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
16958 : : {
16959 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
16960 : : {
16961 : 0 : if (zerop (_q82))
16962 : : {
16963 : 0 : {
16964 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
16965 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, UNORDERED_EXPR, ORDERED_EXPR))
16966 : 0 : return true;
16967 : : }
16968 : : }
16969 : : }
16970 : : }
16971 : : }
16972 : : }
16973 : 623972 : break;
16974 : : }
16975 : : default:;
16976 : : }
16977 : : break;
16978 : : }
16979 : : default:;
16980 : : }
16981 : : }
16982 : : break;
16983 : : default:;
16984 : : }
16985 : : }
16986 : : }
16987 : : }
16988 : 623972 : break;
16989 : : }
16990 : 0 : case ORDERED_EXPR:
16991 : 0 : {
16992 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
16993 : 0 : if ((TREE_CODE (_q30) == SSA_NAME
16994 : 0 : || is_gimple_min_invariant (_q30)))
16995 : : {
16996 : 0 : _q30 = do_valueize (valueize, _q30);
16997 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
16998 : 0 : if ((TREE_CODE (_q31) == SSA_NAME
16999 : 0 : || is_gimple_min_invariant (_q31)))
17000 : : {
17001 : 0 : _q31 = do_valueize (valueize, _q31);
17002 : 0 : if (tree_swap_operands_p (_q30, _q31))
17003 : 0 : std::swap (_q30, _q31);
17004 : 0 : if (zerop (_q22))
17005 : : {
17006 : 0 : switch (TREE_CODE (_p1))
17007 : : {
17008 : 0 : case SSA_NAME:
17009 : 0 : if (gimple *_d2 = get_def (valueize, _p1))
17010 : : {
17011 : 0 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
17012 : 0 : switch (gimple_assign_rhs_code (_a2))
17013 : : {
17014 : 0 : case COND_EXPR:
17015 : 0 : {
17016 : 0 : tree _q80 = gimple_assign_rhs1 (_a2);
17017 : 0 : _q80 = do_valueize (valueize, _q80);
17018 : 0 : tree _q81 = gimple_assign_rhs2 (_a2);
17019 : 0 : _q81 = do_valueize (valueize, _q81);
17020 : 0 : tree _q82 = gimple_assign_rhs3 (_a2);
17021 : 0 : _q82 = do_valueize (valueize, _q82);
17022 : 0 : switch (TREE_CODE (_q80))
17023 : : {
17024 : 0 : case SSA_NAME:
17025 : 0 : if (gimple *_d3 = get_def (valueize, _q80))
17026 : : {
17027 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
17028 : 0 : switch (gimple_assign_rhs_code (_a3))
17029 : : {
17030 : 0 : case UNORDERED_EXPR:
17031 : 0 : {
17032 : 0 : tree _q90 = gimple_assign_rhs1 (_a3);
17033 : 0 : _q90 = do_valueize (valueize, _q90);
17034 : 0 : tree _q91 = gimple_assign_rhs2 (_a3);
17035 : 0 : _q91 = do_valueize (valueize, _q91);
17036 : 0 : if (tree_swap_operands_p (_q90, _q91))
17037 : 0 : std::swap (_q90, _q91);
17038 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
17039 : : {
17040 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
17041 : : {
17042 : 0 : if (zerop (_q82))
17043 : : {
17044 : 0 : {
17045 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
17046 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, ORDERED_EXPR, UNORDERED_EXPR))
17047 : 0 : return true;
17048 : : }
17049 : : }
17050 : : }
17051 : : }
17052 : 623972 : break;
17053 : : }
17054 : : default:;
17055 : : }
17056 : : }
17057 : : break;
17058 : 0 : case UNORDERED_EXPR:
17059 : 0 : {
17060 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
17061 : 0 : if ((TREE_CODE (_q90) == SSA_NAME
17062 : 0 : || is_gimple_min_invariant (_q90)))
17063 : : {
17064 : 0 : _q90 = do_valueize (valueize, _q90);
17065 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
17066 : 0 : if ((TREE_CODE (_q91) == SSA_NAME
17067 : 0 : || is_gimple_min_invariant (_q91)))
17068 : : {
17069 : 0 : _q91 = do_valueize (valueize, _q91);
17070 : 0 : if (tree_swap_operands_p (_q90, _q91))
17071 : 0 : std::swap (_q90, _q91);
17072 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
17073 : : {
17074 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
17075 : : {
17076 : 0 : if (zerop (_q82))
17077 : : {
17078 : 0 : {
17079 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
17080 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, ORDERED_EXPR, UNORDERED_EXPR))
17081 : 0 : return true;
17082 : : }
17083 : : }
17084 : : }
17085 : : }
17086 : : }
17087 : : }
17088 : 623972 : break;
17089 : : }
17090 : : default:;
17091 : : }
17092 : : break;
17093 : : }
17094 : : default:;
17095 : : }
17096 : : }
17097 : : break;
17098 : : default:;
17099 : : }
17100 : : }
17101 : : }
17102 : : }
17103 : 623972 : break;
17104 : : }
17105 : 0 : case UNLT_EXPR:
17106 : 0 : {
17107 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
17108 : 0 : if ((TREE_CODE (_q30) == SSA_NAME
17109 : 0 : || is_gimple_min_invariant (_q30)))
17110 : : {
17111 : 0 : _q30 = do_valueize (valueize, _q30);
17112 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
17113 : 0 : if ((TREE_CODE (_q31) == SSA_NAME
17114 : 0 : || is_gimple_min_invariant (_q31)))
17115 : : {
17116 : 0 : _q31 = do_valueize (valueize, _q31);
17117 : 0 : if (zerop (_q22))
17118 : : {
17119 : 0 : switch (TREE_CODE (_p1))
17120 : : {
17121 : 0 : case SSA_NAME:
17122 : 0 : if (gimple *_d2 = get_def (valueize, _p1))
17123 : : {
17124 : 0 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
17125 : 0 : switch (gimple_assign_rhs_code (_a2))
17126 : : {
17127 : 0 : case COND_EXPR:
17128 : 0 : {
17129 : 0 : tree _q80 = gimple_assign_rhs1 (_a2);
17130 : 0 : _q80 = do_valueize (valueize, _q80);
17131 : 0 : tree _q81 = gimple_assign_rhs2 (_a2);
17132 : 0 : _q81 = do_valueize (valueize, _q81);
17133 : 0 : tree _q82 = gimple_assign_rhs3 (_a2);
17134 : 0 : _q82 = do_valueize (valueize, _q82);
17135 : 0 : switch (TREE_CODE (_q80))
17136 : : {
17137 : 0 : case SSA_NAME:
17138 : 0 : if (gimple *_d3 = get_def (valueize, _q80))
17139 : : {
17140 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
17141 : 0 : switch (gimple_assign_rhs_code (_a3))
17142 : : {
17143 : 0 : case GE_EXPR:
17144 : 0 : {
17145 : 0 : tree _q90 = gimple_assign_rhs1 (_a3);
17146 : 0 : _q90 = do_valueize (valueize, _q90);
17147 : 0 : tree _q91 = gimple_assign_rhs2 (_a3);
17148 : 0 : _q91 = do_valueize (valueize, _q91);
17149 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
17150 : : {
17151 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
17152 : : {
17153 : 0 : if (zerop (_q82))
17154 : : {
17155 : 0 : {
17156 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
17157 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, UNLT_EXPR, GE_EXPR))
17158 : 0 : return true;
17159 : : }
17160 : : }
17161 : : }
17162 : : }
17163 : : break;
17164 : : }
17165 : : default:;
17166 : : }
17167 : : }
17168 : : break;
17169 : 0 : case GE_EXPR:
17170 : 0 : {
17171 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
17172 : 0 : if ((TREE_CODE (_q90) == SSA_NAME
17173 : 0 : || is_gimple_min_invariant (_q90)))
17174 : : {
17175 : 0 : _q90 = do_valueize (valueize, _q90);
17176 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
17177 : 0 : if ((TREE_CODE (_q91) == SSA_NAME
17178 : 0 : || is_gimple_min_invariant (_q91)))
17179 : : {
17180 : 0 : _q91 = do_valueize (valueize, _q91);
17181 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
17182 : : {
17183 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
17184 : : {
17185 : 0 : if (zerop (_q82))
17186 : : {
17187 : 0 : {
17188 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
17189 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, UNLT_EXPR, GE_EXPR))
17190 : 0 : return true;
17191 : : }
17192 : : }
17193 : : }
17194 : : }
17195 : : }
17196 : : }
17197 : : break;
17198 : : }
17199 : : default:;
17200 : : }
17201 : : break;
17202 : : }
17203 : : default:;
17204 : : }
17205 : : }
17206 : : break;
17207 : : default:;
17208 : : }
17209 : : }
17210 : : }
17211 : : }
17212 : : break;
17213 : : }
17214 : 0 : case UNLE_EXPR:
17215 : 0 : {
17216 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
17217 : 0 : if ((TREE_CODE (_q30) == SSA_NAME
17218 : 0 : || is_gimple_min_invariant (_q30)))
17219 : : {
17220 : 0 : _q30 = do_valueize (valueize, _q30);
17221 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
17222 : 0 : if ((TREE_CODE (_q31) == SSA_NAME
17223 : 0 : || is_gimple_min_invariant (_q31)))
17224 : : {
17225 : 0 : _q31 = do_valueize (valueize, _q31);
17226 : 0 : if (zerop (_q22))
17227 : : {
17228 : 0 : switch (TREE_CODE (_p1))
17229 : : {
17230 : 0 : case SSA_NAME:
17231 : 0 : if (gimple *_d2 = get_def (valueize, _p1))
17232 : : {
17233 : 0 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
17234 : 0 : switch (gimple_assign_rhs_code (_a2))
17235 : : {
17236 : 0 : case COND_EXPR:
17237 : 0 : {
17238 : 0 : tree _q80 = gimple_assign_rhs1 (_a2);
17239 : 0 : _q80 = do_valueize (valueize, _q80);
17240 : 0 : tree _q81 = gimple_assign_rhs2 (_a2);
17241 : 0 : _q81 = do_valueize (valueize, _q81);
17242 : 0 : tree _q82 = gimple_assign_rhs3 (_a2);
17243 : 0 : _q82 = do_valueize (valueize, _q82);
17244 : 0 : switch (TREE_CODE (_q80))
17245 : : {
17246 : 0 : case SSA_NAME:
17247 : 0 : if (gimple *_d3 = get_def (valueize, _q80))
17248 : : {
17249 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
17250 : 0 : switch (gimple_assign_rhs_code (_a3))
17251 : : {
17252 : 0 : case GT_EXPR:
17253 : 0 : {
17254 : 0 : tree _q90 = gimple_assign_rhs1 (_a3);
17255 : 0 : _q90 = do_valueize (valueize, _q90);
17256 : 0 : tree _q91 = gimple_assign_rhs2 (_a3);
17257 : 0 : _q91 = do_valueize (valueize, _q91);
17258 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
17259 : : {
17260 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
17261 : : {
17262 : 0 : if (zerop (_q82))
17263 : : {
17264 : 0 : {
17265 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
17266 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, UNLE_EXPR, GT_EXPR))
17267 : 0 : return true;
17268 : : }
17269 : : }
17270 : : }
17271 : : }
17272 : : break;
17273 : : }
17274 : : default:;
17275 : : }
17276 : : }
17277 : : break;
17278 : 0 : case GT_EXPR:
17279 : 0 : {
17280 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
17281 : 0 : if ((TREE_CODE (_q90) == SSA_NAME
17282 : 0 : || is_gimple_min_invariant (_q90)))
17283 : : {
17284 : 0 : _q90 = do_valueize (valueize, _q90);
17285 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
17286 : 0 : if ((TREE_CODE (_q91) == SSA_NAME
17287 : 0 : || is_gimple_min_invariant (_q91)))
17288 : : {
17289 : 0 : _q91 = do_valueize (valueize, _q91);
17290 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
17291 : : {
17292 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
17293 : : {
17294 : 0 : if (zerop (_q82))
17295 : : {
17296 : 0 : {
17297 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
17298 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, UNLE_EXPR, GT_EXPR))
17299 : 0 : return true;
17300 : : }
17301 : : }
17302 : : }
17303 : : }
17304 : : }
17305 : : }
17306 : : break;
17307 : : }
17308 : : default:;
17309 : : }
17310 : : break;
17311 : : }
17312 : : default:;
17313 : : }
17314 : : }
17315 : : break;
17316 : : default:;
17317 : : }
17318 : : }
17319 : : }
17320 : : }
17321 : : break;
17322 : : }
17323 : 0 : case UNGT_EXPR:
17324 : 0 : {
17325 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
17326 : 0 : if ((TREE_CODE (_q30) == SSA_NAME
17327 : 0 : || is_gimple_min_invariant (_q30)))
17328 : : {
17329 : 0 : _q30 = do_valueize (valueize, _q30);
17330 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
17331 : 0 : if ((TREE_CODE (_q31) == SSA_NAME
17332 : 0 : || is_gimple_min_invariant (_q31)))
17333 : : {
17334 : 0 : _q31 = do_valueize (valueize, _q31);
17335 : 0 : if (zerop (_q22))
17336 : : {
17337 : 0 : switch (TREE_CODE (_p1))
17338 : : {
17339 : 0 : case SSA_NAME:
17340 : 0 : if (gimple *_d2 = get_def (valueize, _p1))
17341 : : {
17342 : 0 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
17343 : 0 : switch (gimple_assign_rhs_code (_a2))
17344 : : {
17345 : 0 : case COND_EXPR:
17346 : 0 : {
17347 : 0 : tree _q80 = gimple_assign_rhs1 (_a2);
17348 : 0 : _q80 = do_valueize (valueize, _q80);
17349 : 0 : tree _q81 = gimple_assign_rhs2 (_a2);
17350 : 0 : _q81 = do_valueize (valueize, _q81);
17351 : 0 : tree _q82 = gimple_assign_rhs3 (_a2);
17352 : 0 : _q82 = do_valueize (valueize, _q82);
17353 : 0 : switch (TREE_CODE (_q80))
17354 : : {
17355 : 0 : case SSA_NAME:
17356 : 0 : if (gimple *_d3 = get_def (valueize, _q80))
17357 : : {
17358 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
17359 : 0 : switch (gimple_assign_rhs_code (_a3))
17360 : : {
17361 : 0 : case LE_EXPR:
17362 : 0 : {
17363 : 0 : tree _q90 = gimple_assign_rhs1 (_a3);
17364 : 0 : _q90 = do_valueize (valueize, _q90);
17365 : 0 : tree _q91 = gimple_assign_rhs2 (_a3);
17366 : 0 : _q91 = do_valueize (valueize, _q91);
17367 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
17368 : : {
17369 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
17370 : : {
17371 : 0 : if (zerop (_q82))
17372 : : {
17373 : 0 : {
17374 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
17375 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, UNGT_EXPR, LE_EXPR))
17376 : 0 : return true;
17377 : : }
17378 : : }
17379 : : }
17380 : : }
17381 : : break;
17382 : : }
17383 : : default:;
17384 : : }
17385 : : }
17386 : : break;
17387 : 0 : case LE_EXPR:
17388 : 0 : {
17389 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
17390 : 0 : if ((TREE_CODE (_q90) == SSA_NAME
17391 : 0 : || is_gimple_min_invariant (_q90)))
17392 : : {
17393 : 0 : _q90 = do_valueize (valueize, _q90);
17394 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
17395 : 0 : if ((TREE_CODE (_q91) == SSA_NAME
17396 : 0 : || is_gimple_min_invariant (_q91)))
17397 : : {
17398 : 0 : _q91 = do_valueize (valueize, _q91);
17399 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
17400 : : {
17401 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
17402 : : {
17403 : 0 : if (zerop (_q82))
17404 : : {
17405 : 0 : {
17406 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
17407 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, UNGT_EXPR, LE_EXPR))
17408 : 0 : return true;
17409 : : }
17410 : : }
17411 : : }
17412 : : }
17413 : : }
17414 : : }
17415 : : break;
17416 : : }
17417 : : default:;
17418 : : }
17419 : : break;
17420 : : }
17421 : : default:;
17422 : : }
17423 : : }
17424 : : break;
17425 : : default:;
17426 : : }
17427 : : }
17428 : : }
17429 : : }
17430 : : break;
17431 : : }
17432 : 0 : case UNGE_EXPR:
17433 : 0 : {
17434 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
17435 : 0 : if ((TREE_CODE (_q30) == SSA_NAME
17436 : 0 : || is_gimple_min_invariant (_q30)))
17437 : : {
17438 : 0 : _q30 = do_valueize (valueize, _q30);
17439 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
17440 : 0 : if ((TREE_CODE (_q31) == SSA_NAME
17441 : 0 : || is_gimple_min_invariant (_q31)))
17442 : : {
17443 : 0 : _q31 = do_valueize (valueize, _q31);
17444 : 0 : if (zerop (_q22))
17445 : : {
17446 : 0 : switch (TREE_CODE (_p1))
17447 : : {
17448 : 0 : case SSA_NAME:
17449 : 0 : if (gimple *_d2 = get_def (valueize, _p1))
17450 : : {
17451 : 0 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
17452 : 0 : switch (gimple_assign_rhs_code (_a2))
17453 : : {
17454 : 0 : case COND_EXPR:
17455 : 0 : {
17456 : 0 : tree _q80 = gimple_assign_rhs1 (_a2);
17457 : 0 : _q80 = do_valueize (valueize, _q80);
17458 : 0 : tree _q81 = gimple_assign_rhs2 (_a2);
17459 : 0 : _q81 = do_valueize (valueize, _q81);
17460 : 0 : tree _q82 = gimple_assign_rhs3 (_a2);
17461 : 0 : _q82 = do_valueize (valueize, _q82);
17462 : 0 : switch (TREE_CODE (_q80))
17463 : : {
17464 : 0 : case SSA_NAME:
17465 : 0 : if (gimple *_d3 = get_def (valueize, _q80))
17466 : : {
17467 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
17468 : 0 : switch (gimple_assign_rhs_code (_a3))
17469 : : {
17470 : 0 : case LT_EXPR:
17471 : 0 : {
17472 : 0 : tree _q90 = gimple_assign_rhs1 (_a3);
17473 : 0 : _q90 = do_valueize (valueize, _q90);
17474 : 0 : tree _q91 = gimple_assign_rhs2 (_a3);
17475 : 0 : _q91 = do_valueize (valueize, _q91);
17476 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
17477 : : {
17478 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
17479 : : {
17480 : 0 : if (zerop (_q82))
17481 : : {
17482 : 0 : {
17483 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
17484 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, UNGE_EXPR, LT_EXPR))
17485 : 0 : return true;
17486 : : }
17487 : : }
17488 : : }
17489 : : }
17490 : : break;
17491 : : }
17492 : : default:;
17493 : : }
17494 : : }
17495 : : break;
17496 : 0 : case LT_EXPR:
17497 : 0 : {
17498 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
17499 : 0 : if ((TREE_CODE (_q90) == SSA_NAME
17500 : 0 : || is_gimple_min_invariant (_q90)))
17501 : : {
17502 : 0 : _q90 = do_valueize (valueize, _q90);
17503 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
17504 : 0 : if ((TREE_CODE (_q91) == SSA_NAME
17505 : 0 : || is_gimple_min_invariant (_q91)))
17506 : : {
17507 : 0 : _q91 = do_valueize (valueize, _q91);
17508 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
17509 : : {
17510 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
17511 : : {
17512 : 0 : if (zerop (_q82))
17513 : : {
17514 : 0 : {
17515 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
17516 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, UNGE_EXPR, LT_EXPR))
17517 : 0 : return true;
17518 : : }
17519 : : }
17520 : : }
17521 : : }
17522 : : }
17523 : : }
17524 : : break;
17525 : : }
17526 : : default:;
17527 : : }
17528 : : break;
17529 : : }
17530 : : default:;
17531 : : }
17532 : : }
17533 : : break;
17534 : : default:;
17535 : : }
17536 : : }
17537 : : }
17538 : : }
17539 : : break;
17540 : : }
17541 : 0 : case UNEQ_EXPR:
17542 : 0 : {
17543 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
17544 : 0 : if ((TREE_CODE (_q30) == SSA_NAME
17545 : 0 : || is_gimple_min_invariant (_q30)))
17546 : : {
17547 : 0 : _q30 = do_valueize (valueize, _q30);
17548 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
17549 : 0 : if ((TREE_CODE (_q31) == SSA_NAME
17550 : 0 : || is_gimple_min_invariant (_q31)))
17551 : : {
17552 : 0 : _q31 = do_valueize (valueize, _q31);
17553 : 0 : if (tree_swap_operands_p (_q30, _q31))
17554 : 0 : std::swap (_q30, _q31);
17555 : 0 : if (zerop (_q22))
17556 : : {
17557 : 0 : switch (TREE_CODE (_p1))
17558 : : {
17559 : 0 : case SSA_NAME:
17560 : 0 : if (gimple *_d2 = get_def (valueize, _p1))
17561 : : {
17562 : 0 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
17563 : 0 : switch (gimple_assign_rhs_code (_a2))
17564 : : {
17565 : 0 : case COND_EXPR:
17566 : 0 : {
17567 : 0 : tree _q80 = gimple_assign_rhs1 (_a2);
17568 : 0 : _q80 = do_valueize (valueize, _q80);
17569 : 0 : tree _q81 = gimple_assign_rhs2 (_a2);
17570 : 0 : _q81 = do_valueize (valueize, _q81);
17571 : 0 : tree _q82 = gimple_assign_rhs3 (_a2);
17572 : 0 : _q82 = do_valueize (valueize, _q82);
17573 : 0 : switch (TREE_CODE (_q80))
17574 : : {
17575 : 0 : case SSA_NAME:
17576 : 0 : if (gimple *_d3 = get_def (valueize, _q80))
17577 : : {
17578 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
17579 : 0 : switch (gimple_assign_rhs_code (_a3))
17580 : : {
17581 : 0 : case LTGT_EXPR:
17582 : 0 : {
17583 : 0 : tree _q90 = gimple_assign_rhs1 (_a3);
17584 : 0 : _q90 = do_valueize (valueize, _q90);
17585 : 0 : tree _q91 = gimple_assign_rhs2 (_a3);
17586 : 0 : _q91 = do_valueize (valueize, _q91);
17587 : 0 : if (tree_swap_operands_p (_q90, _q91))
17588 : 0 : std::swap (_q90, _q91);
17589 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
17590 : : {
17591 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
17592 : : {
17593 : 0 : if (zerop (_q82))
17594 : : {
17595 : 0 : {
17596 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
17597 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, UNEQ_EXPR, LTGT_EXPR))
17598 : 0 : return true;
17599 : : }
17600 : : }
17601 : : }
17602 : : }
17603 : 623972 : break;
17604 : : }
17605 : : default:;
17606 : : }
17607 : : }
17608 : : break;
17609 : 0 : case LTGT_EXPR:
17610 : 0 : {
17611 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
17612 : 0 : if ((TREE_CODE (_q90) == SSA_NAME
17613 : 0 : || is_gimple_min_invariant (_q90)))
17614 : : {
17615 : 0 : _q90 = do_valueize (valueize, _q90);
17616 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
17617 : 0 : if ((TREE_CODE (_q91) == SSA_NAME
17618 : 0 : || is_gimple_min_invariant (_q91)))
17619 : : {
17620 : 0 : _q91 = do_valueize (valueize, _q91);
17621 : 0 : if (tree_swap_operands_p (_q90, _q91))
17622 : 0 : std::swap (_q90, _q91);
17623 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
17624 : : {
17625 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
17626 : : {
17627 : 0 : if (zerop (_q82))
17628 : : {
17629 : 0 : {
17630 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
17631 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, UNEQ_EXPR, LTGT_EXPR))
17632 : 0 : return true;
17633 : : }
17634 : : }
17635 : : }
17636 : : }
17637 : : }
17638 : : }
17639 : 623972 : break;
17640 : : }
17641 : : default:;
17642 : : }
17643 : : break;
17644 : : }
17645 : : default:;
17646 : : }
17647 : : }
17648 : : break;
17649 : : default:;
17650 : : }
17651 : : }
17652 : : }
17653 : : }
17654 : 623972 : break;
17655 : : }
17656 : 0 : case LTGT_EXPR:
17657 : 0 : {
17658 : 0 : tree _q30 = TREE_OPERAND (_q20, 0);
17659 : 0 : if ((TREE_CODE (_q30) == SSA_NAME
17660 : 0 : || is_gimple_min_invariant (_q30)))
17661 : : {
17662 : 0 : _q30 = do_valueize (valueize, _q30);
17663 : 0 : tree _q31 = TREE_OPERAND (_q20, 1);
17664 : 0 : if ((TREE_CODE (_q31) == SSA_NAME
17665 : 0 : || is_gimple_min_invariant (_q31)))
17666 : : {
17667 : 0 : _q31 = do_valueize (valueize, _q31);
17668 : 0 : if (tree_swap_operands_p (_q30, _q31))
17669 : 0 : std::swap (_q30, _q31);
17670 : 0 : if (zerop (_q22))
17671 : : {
17672 : 0 : switch (TREE_CODE (_p1))
17673 : : {
17674 : 0 : case SSA_NAME:
17675 : 0 : if (gimple *_d2 = get_def (valueize, _p1))
17676 : : {
17677 : 0 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
17678 : 0 : switch (gimple_assign_rhs_code (_a2))
17679 : : {
17680 : 0 : case COND_EXPR:
17681 : 0 : {
17682 : 0 : tree _q80 = gimple_assign_rhs1 (_a2);
17683 : 0 : _q80 = do_valueize (valueize, _q80);
17684 : 0 : tree _q81 = gimple_assign_rhs2 (_a2);
17685 : 0 : _q81 = do_valueize (valueize, _q81);
17686 : 0 : tree _q82 = gimple_assign_rhs3 (_a2);
17687 : 0 : _q82 = do_valueize (valueize, _q82);
17688 : 0 : switch (TREE_CODE (_q80))
17689 : : {
17690 : 0 : case SSA_NAME:
17691 : 0 : if (gimple *_d3 = get_def (valueize, _q80))
17692 : : {
17693 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
17694 : 0 : switch (gimple_assign_rhs_code (_a3))
17695 : : {
17696 : 0 : case UNEQ_EXPR:
17697 : 0 : {
17698 : 0 : tree _q90 = gimple_assign_rhs1 (_a3);
17699 : 0 : _q90 = do_valueize (valueize, _q90);
17700 : 0 : tree _q91 = gimple_assign_rhs2 (_a3);
17701 : 0 : _q91 = do_valueize (valueize, _q91);
17702 : 0 : if (tree_swap_operands_p (_q90, _q91))
17703 : 0 : std::swap (_q90, _q91);
17704 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
17705 : : {
17706 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
17707 : : {
17708 : 0 : if (zerop (_q82))
17709 : : {
17710 : 0 : {
17711 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
17712 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, LTGT_EXPR, UNEQ_EXPR))
17713 : 0 : return true;
17714 : : }
17715 : : }
17716 : : }
17717 : : }
17718 : 623972 : break;
17719 : : }
17720 : : default:;
17721 : : }
17722 : : }
17723 : : break;
17724 : 0 : case UNEQ_EXPR:
17725 : 0 : {
17726 : 0 : tree _q90 = TREE_OPERAND (_q80, 0);
17727 : 0 : if ((TREE_CODE (_q90) == SSA_NAME
17728 : 0 : || is_gimple_min_invariant (_q90)))
17729 : : {
17730 : 0 : _q90 = do_valueize (valueize, _q90);
17731 : 0 : tree _q91 = TREE_OPERAND (_q80, 1);
17732 : 0 : if ((TREE_CODE (_q91) == SSA_NAME
17733 : 0 : || is_gimple_min_invariant (_q91)))
17734 : : {
17735 : 0 : _q91 = do_valueize (valueize, _q91);
17736 : 0 : if (tree_swap_operands_p (_q90, _q91))
17737 : 0 : std::swap (_q90, _q91);
17738 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
17739 : : {
17740 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
17741 : : {
17742 : 0 : if (zerop (_q82))
17743 : : {
17744 : 0 : {
17745 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _q20, _q30, _q31, _q21, _q80, _q81 };
17746 : 0 : if (gimple_simplify_35 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, LTGT_EXPR, UNEQ_EXPR))
17747 : 0 : return true;
17748 : : }
17749 : : }
17750 : : }
17751 : : }
17752 : : }
17753 : : }
17754 : 623972 : break;
17755 : : }
17756 : : default:;
17757 : : }
17758 : : break;
17759 : : }
17760 : : default:;
17761 : : }
17762 : : }
17763 : : break;
17764 : : default:;
17765 : : }
17766 : : }
17767 : : }
17768 : : }
17769 : 623972 : break;
17770 : : }
17771 : : default:;
17772 : : }
17773 : : break;
17774 : : }
17775 : 109 : case VEC_COND_EXPR:
17776 : 109 : {
17777 : 109 : tree _q20 = gimple_assign_rhs1 (_a1);
17778 : 109 : _q20 = do_valueize (valueize, _q20);
17779 : 109 : tree _q21 = gimple_assign_rhs2 (_a1);
17780 : 109 : _q21 = do_valueize (valueize, _q21);
17781 : 109 : tree _q22 = gimple_assign_rhs3 (_a1);
17782 : 109 : _q22 = do_valueize (valueize, _q22);
17783 : 109 : if (integer_zerop (_q22))
17784 : : {
17785 : 103 : switch (TREE_CODE (_p1))
17786 : : {
17787 : 103 : case SSA_NAME:
17788 : 103 : if (gimple *_d2 = get_def (valueize, _p1))
17789 : : {
17790 : 98 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
17791 : 90 : switch (gimple_assign_rhs_code (_a2))
17792 : : {
17793 : 62 : case VEC_COND_EXPR:
17794 : 62 : {
17795 : 62 : tree _q60 = gimple_assign_rhs1 (_a2);
17796 : 62 : _q60 = do_valueize (valueize, _q60);
17797 : 62 : tree _q61 = gimple_assign_rhs2 (_a2);
17798 : 62 : _q61 = do_valueize (valueize, _q61);
17799 : 62 : tree _q62 = gimple_assign_rhs3 (_a2);
17800 : 62 : _q62 = do_valueize (valueize, _q62);
17801 : 62 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
17802 : : {
17803 : 18 : if (integer_zerop (_q61))
17804 : : {
17805 : 18 : {
17806 : 18 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q62 };
17807 : 18 : const enum tree_code op = BIT_XOR_EXPR;
17808 : 18 : gimple_seq *lseq = seq;
17809 : 18 : if (lseq
17810 : 6 : && (!single_use (captures[0])
17811 : 6 : || !single_use (captures[3])))
17812 : 12 : lseq = NULL;
17813 : 18 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1971;
17814 : 18 : {
17815 : 18 : res_op->set_op (VEC_COND_EXPR, type, 3);
17816 : 18 : res_op->ops[0] = captures[1];
17817 : 18 : res_op->ops[1] = captures[2];
17818 : 18 : res_op->ops[2] = captures[4];
17819 : 18 : res_op->resimplify (lseq, valueize);
17820 : 18 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1029, __FILE__, __LINE__, true);
17821 : 18 : return true;
17822 : : }
17823 : 0 : next_after_fail1971:;
17824 : : }
17825 : : }
17826 : : }
17827 : : break;
17828 : : }
17829 : : default:;
17830 : : }
17831 : : }
17832 : : break;
17833 : : default:;
17834 : : }
17835 : : }
17836 : 91 : if (integer_zerop (_q21))
17837 : : {
17838 : 0 : switch (TREE_CODE (_p1))
17839 : : {
17840 : 0 : case SSA_NAME:
17841 : 0 : if (gimple *_d2 = get_def (valueize, _p1))
17842 : : {
17843 : 0 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
17844 : 0 : switch (gimple_assign_rhs_code (_a2))
17845 : : {
17846 : 0 : case VEC_COND_EXPR:
17847 : 0 : {
17848 : 0 : tree _q60 = gimple_assign_rhs1 (_a2);
17849 : 0 : _q60 = do_valueize (valueize, _q60);
17850 : 0 : tree _q61 = gimple_assign_rhs2 (_a2);
17851 : 0 : _q61 = do_valueize (valueize, _q61);
17852 : 0 : tree _q62 = gimple_assign_rhs3 (_a2);
17853 : 0 : _q62 = do_valueize (valueize, _q62);
17854 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
17855 : : {
17856 : 0 : if (integer_zerop (_q62))
17857 : : {
17858 : 0 : {
17859 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p1, _q20, _q61, _p0, _q22 };
17860 : 0 : const enum tree_code op = BIT_XOR_EXPR;
17861 : 0 : gimple_seq *lseq = seq;
17862 : 0 : if (lseq
17863 : 0 : && (!single_use (captures[0])
17864 : 0 : || !single_use (captures[3])))
17865 : 0 : lseq = NULL;
17866 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1972;
17867 : 0 : {
17868 : 0 : res_op->set_op (VEC_COND_EXPR, type, 3);
17869 : 0 : res_op->ops[0] = captures[1];
17870 : 0 : res_op->ops[1] = captures[2];
17871 : 0 : res_op->ops[2] = captures[4];
17872 : 0 : res_op->resimplify (lseq, valueize);
17873 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1029, __FILE__, __LINE__, true);
17874 : 0 : return true;
17875 : : }
17876 : 0 : next_after_fail1972:;
17877 : : }
17878 : : }
17879 : : }
17880 : : break;
17881 : : }
17882 : : default:;
17883 : : }
17884 : : }
17885 : : break;
17886 : : default:;
17887 : : }
17888 : : }
17889 : 91 : switch (TREE_CODE (_q20))
17890 : : {
17891 : 91 : case SSA_NAME:
17892 : 91 : if (gimple *_d2 = get_def (valueize, _q20))
17893 : : {
17894 : 91 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
17895 : 91 : switch (gimple_assign_rhs_code (_a2))
17896 : : {
17897 : 36 : case LT_EXPR:
17898 : 36 : {
17899 : 36 : tree _q30 = gimple_assign_rhs1 (_a2);
17900 : 36 : _q30 = do_valueize (valueize, _q30);
17901 : 36 : tree _q31 = gimple_assign_rhs2 (_a2);
17902 : 36 : _q31 = do_valueize (valueize, _q31);
17903 : 36 : if (integer_zerop (_q22))
17904 : : {
17905 : 36 : switch (TREE_CODE (_p1))
17906 : : {
17907 : 36 : case SSA_NAME:
17908 : 36 : if (gimple *_d3 = get_def (valueize, _p1))
17909 : : {
17910 : 36 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
17911 : 30 : switch (gimple_assign_rhs_code (_a3))
17912 : : {
17913 : 30 : case VEC_COND_EXPR:
17914 : 30 : {
17915 : 30 : tree _q80 = gimple_assign_rhs1 (_a3);
17916 : 30 : _q80 = do_valueize (valueize, _q80);
17917 : 30 : tree _q81 = gimple_assign_rhs2 (_a3);
17918 : 30 : _q81 = do_valueize (valueize, _q81);
17919 : 30 : tree _q82 = gimple_assign_rhs3 (_a3);
17920 : 30 : _q82 = do_valueize (valueize, _q82);
17921 : 30 : switch (TREE_CODE (_q80))
17922 : : {
17923 : 30 : case SSA_NAME:
17924 : 30 : if (gimple *_d4 = get_def (valueize, _q80))
17925 : : {
17926 : 30 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
17927 : 30 : switch (gimple_assign_rhs_code (_a4))
17928 : : {
17929 : 18 : case GE_EXPR:
17930 : 18 : {
17931 : 18 : tree _q90 = gimple_assign_rhs1 (_a4);
17932 : 18 : _q90 = do_valueize (valueize, _q90);
17933 : 18 : tree _q91 = gimple_assign_rhs2 (_a4);
17934 : 18 : _q91 = do_valueize (valueize, _q91);
17935 : 18 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
17936 : : {
17937 : 18 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
17938 : : {
17939 : 18 : if (integer_zerop (_q82))
17940 : : {
17941 : 18 : {
17942 : 18 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
17943 : 18 : if (gimple_simplify_36 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, LT_EXPR, GE_EXPR))
17944 : 18 : return true;
17945 : : }
17946 : : }
17947 : : }
17948 : : }
17949 : : break;
17950 : : }
17951 : : default:;
17952 : : }
17953 : : }
17954 : : break;
17955 : : default:;
17956 : : }
17957 : : break;
17958 : : }
17959 : : default:;
17960 : : }
17961 : : }
17962 : : break;
17963 : : default:;
17964 : : }
17965 : : }
17966 : : break;
17967 : : }
17968 : 0 : case LE_EXPR:
17969 : 0 : {
17970 : 0 : tree _q30 = gimple_assign_rhs1 (_a2);
17971 : 0 : _q30 = do_valueize (valueize, _q30);
17972 : 0 : tree _q31 = gimple_assign_rhs2 (_a2);
17973 : 0 : _q31 = do_valueize (valueize, _q31);
17974 : 0 : if (integer_zerop (_q22))
17975 : : {
17976 : 0 : switch (TREE_CODE (_p1))
17977 : : {
17978 : 0 : case SSA_NAME:
17979 : 0 : if (gimple *_d3 = get_def (valueize, _p1))
17980 : : {
17981 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
17982 : 0 : switch (gimple_assign_rhs_code (_a3))
17983 : : {
17984 : 0 : case VEC_COND_EXPR:
17985 : 0 : {
17986 : 0 : tree _q80 = gimple_assign_rhs1 (_a3);
17987 : 0 : _q80 = do_valueize (valueize, _q80);
17988 : 0 : tree _q81 = gimple_assign_rhs2 (_a3);
17989 : 0 : _q81 = do_valueize (valueize, _q81);
17990 : 0 : tree _q82 = gimple_assign_rhs3 (_a3);
17991 : 0 : _q82 = do_valueize (valueize, _q82);
17992 : 0 : switch (TREE_CODE (_q80))
17993 : : {
17994 : 0 : case SSA_NAME:
17995 : 0 : if (gimple *_d4 = get_def (valueize, _q80))
17996 : : {
17997 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
17998 : 0 : switch (gimple_assign_rhs_code (_a4))
17999 : : {
18000 : 0 : case GT_EXPR:
18001 : 0 : {
18002 : 0 : tree _q90 = gimple_assign_rhs1 (_a4);
18003 : 0 : _q90 = do_valueize (valueize, _q90);
18004 : 0 : tree _q91 = gimple_assign_rhs2 (_a4);
18005 : 0 : _q91 = do_valueize (valueize, _q91);
18006 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
18007 : : {
18008 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
18009 : : {
18010 : 0 : if (integer_zerop (_q82))
18011 : : {
18012 : 0 : {
18013 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
18014 : 0 : if (gimple_simplify_36 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, LE_EXPR, GT_EXPR))
18015 : 0 : return true;
18016 : : }
18017 : : }
18018 : : }
18019 : : }
18020 : : break;
18021 : : }
18022 : : default:;
18023 : : }
18024 : : }
18025 : : break;
18026 : : default:;
18027 : : }
18028 : : break;
18029 : : }
18030 : : default:;
18031 : : }
18032 : : }
18033 : : break;
18034 : : default:;
18035 : : }
18036 : : }
18037 : : break;
18038 : : }
18039 : 6 : case EQ_EXPR:
18040 : 6 : {
18041 : 6 : tree _q30 = gimple_assign_rhs1 (_a2);
18042 : 6 : _q30 = do_valueize (valueize, _q30);
18043 : 6 : tree _q31 = gimple_assign_rhs2 (_a2);
18044 : 6 : _q31 = do_valueize (valueize, _q31);
18045 : 6 : if (tree_swap_operands_p (_q30, _q31))
18046 : 3 : std::swap (_q30, _q31);
18047 : 6 : if (integer_zerop (_q22))
18048 : : {
18049 : 0 : switch (TREE_CODE (_p1))
18050 : : {
18051 : 0 : case SSA_NAME:
18052 : 0 : if (gimple *_d3 = get_def (valueize, _p1))
18053 : : {
18054 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
18055 : 0 : switch (gimple_assign_rhs_code (_a3))
18056 : : {
18057 : 0 : case VEC_COND_EXPR:
18058 : 0 : {
18059 : 0 : tree _q80 = gimple_assign_rhs1 (_a3);
18060 : 0 : _q80 = do_valueize (valueize, _q80);
18061 : 0 : tree _q81 = gimple_assign_rhs2 (_a3);
18062 : 0 : _q81 = do_valueize (valueize, _q81);
18063 : 0 : tree _q82 = gimple_assign_rhs3 (_a3);
18064 : 0 : _q82 = do_valueize (valueize, _q82);
18065 : 0 : switch (TREE_CODE (_q80))
18066 : : {
18067 : 0 : case SSA_NAME:
18068 : 0 : if (gimple *_d4 = get_def (valueize, _q80))
18069 : : {
18070 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
18071 : 0 : switch (gimple_assign_rhs_code (_a4))
18072 : : {
18073 : 0 : case NE_EXPR:
18074 : 0 : {
18075 : 0 : tree _q90 = gimple_assign_rhs1 (_a4);
18076 : 0 : _q90 = do_valueize (valueize, _q90);
18077 : 0 : tree _q91 = gimple_assign_rhs2 (_a4);
18078 : 0 : _q91 = do_valueize (valueize, _q91);
18079 : 0 : if (tree_swap_operands_p (_q90, _q91))
18080 : 0 : std::swap (_q90, _q91);
18081 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
18082 : : {
18083 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
18084 : : {
18085 : 0 : if (integer_zerop (_q82))
18086 : : {
18087 : 0 : {
18088 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
18089 : 0 : if (gimple_simplify_36 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, EQ_EXPR, NE_EXPR))
18090 : 0 : return true;
18091 : : }
18092 : : }
18093 : : }
18094 : : }
18095 : 623972 : break;
18096 : : }
18097 : : default:;
18098 : : }
18099 : : }
18100 : : break;
18101 : : default:;
18102 : : }
18103 : : break;
18104 : : }
18105 : : default:;
18106 : : }
18107 : : }
18108 : : break;
18109 : : default:;
18110 : : }
18111 : : }
18112 : 623972 : break;
18113 : : }
18114 : 49 : case NE_EXPR:
18115 : 49 : {
18116 : 49 : tree _q30 = gimple_assign_rhs1 (_a2);
18117 : 49 : _q30 = do_valueize (valueize, _q30);
18118 : 49 : tree _q31 = gimple_assign_rhs2 (_a2);
18119 : 49 : _q31 = do_valueize (valueize, _q31);
18120 : 49 : if (tree_swap_operands_p (_q30, _q31))
18121 : 14 : std::swap (_q30, _q31);
18122 : 49 : if (integer_zerop (_q22))
18123 : : {
18124 : 49 : switch (TREE_CODE (_p1))
18125 : : {
18126 : 49 : case SSA_NAME:
18127 : 49 : if (gimple *_d3 = get_def (valueize, _p1))
18128 : : {
18129 : 44 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
18130 : 42 : switch (gimple_assign_rhs_code (_a3))
18131 : : {
18132 : 14 : case VEC_COND_EXPR:
18133 : 14 : {
18134 : 14 : tree _q80 = gimple_assign_rhs1 (_a3);
18135 : 14 : _q80 = do_valueize (valueize, _q80);
18136 : 14 : tree _q81 = gimple_assign_rhs2 (_a3);
18137 : 14 : _q81 = do_valueize (valueize, _q81);
18138 : 14 : tree _q82 = gimple_assign_rhs3 (_a3);
18139 : 14 : _q82 = do_valueize (valueize, _q82);
18140 : 14 : switch (TREE_CODE (_q80))
18141 : : {
18142 : 14 : case SSA_NAME:
18143 : 14 : if (gimple *_d4 = get_def (valueize, _q80))
18144 : : {
18145 : 14 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
18146 : 14 : switch (gimple_assign_rhs_code (_a4))
18147 : : {
18148 : 0 : case EQ_EXPR:
18149 : 0 : {
18150 : 0 : tree _q90 = gimple_assign_rhs1 (_a4);
18151 : 0 : _q90 = do_valueize (valueize, _q90);
18152 : 0 : tree _q91 = gimple_assign_rhs2 (_a4);
18153 : 0 : _q91 = do_valueize (valueize, _q91);
18154 : 0 : if (tree_swap_operands_p (_q90, _q91))
18155 : 0 : std::swap (_q90, _q91);
18156 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
18157 : : {
18158 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
18159 : : {
18160 : 0 : if (integer_zerop (_q82))
18161 : : {
18162 : 0 : {
18163 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
18164 : 0 : if (gimple_simplify_36 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, NE_EXPR, EQ_EXPR))
18165 : 0 : return true;
18166 : : }
18167 : : }
18168 : : }
18169 : : }
18170 : 623972 : break;
18171 : : }
18172 : : default:;
18173 : : }
18174 : : }
18175 : : break;
18176 : : default:;
18177 : : }
18178 : : break;
18179 : : }
18180 : : default:;
18181 : : }
18182 : : }
18183 : : break;
18184 : : default:;
18185 : : }
18186 : : }
18187 : 623972 : break;
18188 : : }
18189 : 0 : case GE_EXPR:
18190 : 0 : {
18191 : 0 : tree _q30 = gimple_assign_rhs1 (_a2);
18192 : 0 : _q30 = do_valueize (valueize, _q30);
18193 : 0 : tree _q31 = gimple_assign_rhs2 (_a2);
18194 : 0 : _q31 = do_valueize (valueize, _q31);
18195 : 0 : if (integer_zerop (_q22))
18196 : : {
18197 : 0 : switch (TREE_CODE (_p1))
18198 : : {
18199 : 0 : case SSA_NAME:
18200 : 0 : if (gimple *_d3 = get_def (valueize, _p1))
18201 : : {
18202 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
18203 : 0 : switch (gimple_assign_rhs_code (_a3))
18204 : : {
18205 : 0 : case VEC_COND_EXPR:
18206 : 0 : {
18207 : 0 : tree _q80 = gimple_assign_rhs1 (_a3);
18208 : 0 : _q80 = do_valueize (valueize, _q80);
18209 : 0 : tree _q81 = gimple_assign_rhs2 (_a3);
18210 : 0 : _q81 = do_valueize (valueize, _q81);
18211 : 0 : tree _q82 = gimple_assign_rhs3 (_a3);
18212 : 0 : _q82 = do_valueize (valueize, _q82);
18213 : 0 : switch (TREE_CODE (_q80))
18214 : : {
18215 : 0 : case SSA_NAME:
18216 : 0 : if (gimple *_d4 = get_def (valueize, _q80))
18217 : : {
18218 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
18219 : 0 : switch (gimple_assign_rhs_code (_a4))
18220 : : {
18221 : 0 : case LT_EXPR:
18222 : 0 : {
18223 : 0 : tree _q90 = gimple_assign_rhs1 (_a4);
18224 : 0 : _q90 = do_valueize (valueize, _q90);
18225 : 0 : tree _q91 = gimple_assign_rhs2 (_a4);
18226 : 0 : _q91 = do_valueize (valueize, _q91);
18227 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
18228 : : {
18229 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
18230 : : {
18231 : 0 : if (integer_zerop (_q82))
18232 : : {
18233 : 0 : {
18234 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
18235 : 0 : if (gimple_simplify_36 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, GE_EXPR, LT_EXPR))
18236 : 0 : return true;
18237 : : }
18238 : : }
18239 : : }
18240 : : }
18241 : : break;
18242 : : }
18243 : : default:;
18244 : : }
18245 : : }
18246 : : break;
18247 : : default:;
18248 : : }
18249 : : break;
18250 : : }
18251 : : default:;
18252 : : }
18253 : : }
18254 : : break;
18255 : : default:;
18256 : : }
18257 : : }
18258 : : break;
18259 : : }
18260 : 0 : case GT_EXPR:
18261 : 0 : {
18262 : 0 : tree _q30 = gimple_assign_rhs1 (_a2);
18263 : 0 : _q30 = do_valueize (valueize, _q30);
18264 : 0 : tree _q31 = gimple_assign_rhs2 (_a2);
18265 : 0 : _q31 = do_valueize (valueize, _q31);
18266 : 0 : if (integer_zerop (_q22))
18267 : : {
18268 : 0 : switch (TREE_CODE (_p1))
18269 : : {
18270 : 0 : case SSA_NAME:
18271 : 0 : if (gimple *_d3 = get_def (valueize, _p1))
18272 : : {
18273 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
18274 : 0 : switch (gimple_assign_rhs_code (_a3))
18275 : : {
18276 : 0 : case VEC_COND_EXPR:
18277 : 0 : {
18278 : 0 : tree _q80 = gimple_assign_rhs1 (_a3);
18279 : 0 : _q80 = do_valueize (valueize, _q80);
18280 : 0 : tree _q81 = gimple_assign_rhs2 (_a3);
18281 : 0 : _q81 = do_valueize (valueize, _q81);
18282 : 0 : tree _q82 = gimple_assign_rhs3 (_a3);
18283 : 0 : _q82 = do_valueize (valueize, _q82);
18284 : 0 : switch (TREE_CODE (_q80))
18285 : : {
18286 : 0 : case SSA_NAME:
18287 : 0 : if (gimple *_d4 = get_def (valueize, _q80))
18288 : : {
18289 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
18290 : 0 : switch (gimple_assign_rhs_code (_a4))
18291 : : {
18292 : 0 : case LE_EXPR:
18293 : 0 : {
18294 : 0 : tree _q90 = gimple_assign_rhs1 (_a4);
18295 : 0 : _q90 = do_valueize (valueize, _q90);
18296 : 0 : tree _q91 = gimple_assign_rhs2 (_a4);
18297 : 0 : _q91 = do_valueize (valueize, _q91);
18298 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
18299 : : {
18300 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
18301 : : {
18302 : 0 : if (integer_zerop (_q82))
18303 : : {
18304 : 0 : {
18305 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
18306 : 0 : if (gimple_simplify_36 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, GT_EXPR, LE_EXPR))
18307 : 0 : return true;
18308 : : }
18309 : : }
18310 : : }
18311 : : }
18312 : : break;
18313 : : }
18314 : : default:;
18315 : : }
18316 : : }
18317 : : break;
18318 : : default:;
18319 : : }
18320 : : break;
18321 : : }
18322 : : default:;
18323 : : }
18324 : : }
18325 : : break;
18326 : : default:;
18327 : : }
18328 : : }
18329 : : break;
18330 : : }
18331 : 0 : case UNORDERED_EXPR:
18332 : 0 : {
18333 : 0 : tree _q30 = gimple_assign_rhs1 (_a2);
18334 : 0 : _q30 = do_valueize (valueize, _q30);
18335 : 0 : tree _q31 = gimple_assign_rhs2 (_a2);
18336 : 0 : _q31 = do_valueize (valueize, _q31);
18337 : 0 : if (tree_swap_operands_p (_q30, _q31))
18338 : 0 : std::swap (_q30, _q31);
18339 : 0 : if (integer_zerop (_q22))
18340 : : {
18341 : 0 : switch (TREE_CODE (_p1))
18342 : : {
18343 : 0 : case SSA_NAME:
18344 : 0 : if (gimple *_d3 = get_def (valueize, _p1))
18345 : : {
18346 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
18347 : 0 : switch (gimple_assign_rhs_code (_a3))
18348 : : {
18349 : 0 : case VEC_COND_EXPR:
18350 : 0 : {
18351 : 0 : tree _q80 = gimple_assign_rhs1 (_a3);
18352 : 0 : _q80 = do_valueize (valueize, _q80);
18353 : 0 : tree _q81 = gimple_assign_rhs2 (_a3);
18354 : 0 : _q81 = do_valueize (valueize, _q81);
18355 : 0 : tree _q82 = gimple_assign_rhs3 (_a3);
18356 : 0 : _q82 = do_valueize (valueize, _q82);
18357 : 0 : switch (TREE_CODE (_q80))
18358 : : {
18359 : 0 : case SSA_NAME:
18360 : 0 : if (gimple *_d4 = get_def (valueize, _q80))
18361 : : {
18362 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
18363 : 0 : switch (gimple_assign_rhs_code (_a4))
18364 : : {
18365 : 0 : case ORDERED_EXPR:
18366 : 0 : {
18367 : 0 : tree _q90 = gimple_assign_rhs1 (_a4);
18368 : 0 : _q90 = do_valueize (valueize, _q90);
18369 : 0 : tree _q91 = gimple_assign_rhs2 (_a4);
18370 : 0 : _q91 = do_valueize (valueize, _q91);
18371 : 0 : if (tree_swap_operands_p (_q90, _q91))
18372 : 0 : std::swap (_q90, _q91);
18373 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
18374 : : {
18375 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
18376 : : {
18377 : 0 : if (integer_zerop (_q82))
18378 : : {
18379 : 0 : {
18380 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
18381 : 0 : if (gimple_simplify_36 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, UNORDERED_EXPR, ORDERED_EXPR))
18382 : 0 : return true;
18383 : : }
18384 : : }
18385 : : }
18386 : : }
18387 : 623972 : break;
18388 : : }
18389 : : default:;
18390 : : }
18391 : : }
18392 : : break;
18393 : : default:;
18394 : : }
18395 : : break;
18396 : : }
18397 : : default:;
18398 : : }
18399 : : }
18400 : : break;
18401 : : default:;
18402 : : }
18403 : : }
18404 : 623972 : break;
18405 : : }
18406 : 0 : case ORDERED_EXPR:
18407 : 0 : {
18408 : 0 : tree _q30 = gimple_assign_rhs1 (_a2);
18409 : 0 : _q30 = do_valueize (valueize, _q30);
18410 : 0 : tree _q31 = gimple_assign_rhs2 (_a2);
18411 : 0 : _q31 = do_valueize (valueize, _q31);
18412 : 0 : if (tree_swap_operands_p (_q30, _q31))
18413 : 0 : std::swap (_q30, _q31);
18414 : 0 : if (integer_zerop (_q22))
18415 : : {
18416 : 0 : switch (TREE_CODE (_p1))
18417 : : {
18418 : 0 : case SSA_NAME:
18419 : 0 : if (gimple *_d3 = get_def (valueize, _p1))
18420 : : {
18421 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
18422 : 0 : switch (gimple_assign_rhs_code (_a3))
18423 : : {
18424 : 0 : case VEC_COND_EXPR:
18425 : 0 : {
18426 : 0 : tree _q80 = gimple_assign_rhs1 (_a3);
18427 : 0 : _q80 = do_valueize (valueize, _q80);
18428 : 0 : tree _q81 = gimple_assign_rhs2 (_a3);
18429 : 0 : _q81 = do_valueize (valueize, _q81);
18430 : 0 : tree _q82 = gimple_assign_rhs3 (_a3);
18431 : 0 : _q82 = do_valueize (valueize, _q82);
18432 : 0 : switch (TREE_CODE (_q80))
18433 : : {
18434 : 0 : case SSA_NAME:
18435 : 0 : if (gimple *_d4 = get_def (valueize, _q80))
18436 : : {
18437 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
18438 : 0 : switch (gimple_assign_rhs_code (_a4))
18439 : : {
18440 : 0 : case UNORDERED_EXPR:
18441 : 0 : {
18442 : 0 : tree _q90 = gimple_assign_rhs1 (_a4);
18443 : 0 : _q90 = do_valueize (valueize, _q90);
18444 : 0 : tree _q91 = gimple_assign_rhs2 (_a4);
18445 : 0 : _q91 = do_valueize (valueize, _q91);
18446 : 0 : if (tree_swap_operands_p (_q90, _q91))
18447 : 0 : std::swap (_q90, _q91);
18448 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
18449 : : {
18450 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
18451 : : {
18452 : 0 : if (integer_zerop (_q82))
18453 : : {
18454 : 0 : {
18455 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
18456 : 0 : if (gimple_simplify_36 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, ORDERED_EXPR, UNORDERED_EXPR))
18457 : 0 : return true;
18458 : : }
18459 : : }
18460 : : }
18461 : : }
18462 : 623972 : break;
18463 : : }
18464 : : default:;
18465 : : }
18466 : : }
18467 : : break;
18468 : : default:;
18469 : : }
18470 : : break;
18471 : : }
18472 : : default:;
18473 : : }
18474 : : }
18475 : : break;
18476 : : default:;
18477 : : }
18478 : : }
18479 : 623972 : break;
18480 : : }
18481 : 0 : case UNLT_EXPR:
18482 : 0 : {
18483 : 0 : tree _q30 = gimple_assign_rhs1 (_a2);
18484 : 0 : _q30 = do_valueize (valueize, _q30);
18485 : 0 : tree _q31 = gimple_assign_rhs2 (_a2);
18486 : 0 : _q31 = do_valueize (valueize, _q31);
18487 : 0 : if (integer_zerop (_q22))
18488 : : {
18489 : 0 : switch (TREE_CODE (_p1))
18490 : : {
18491 : 0 : case SSA_NAME:
18492 : 0 : if (gimple *_d3 = get_def (valueize, _p1))
18493 : : {
18494 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
18495 : 0 : switch (gimple_assign_rhs_code (_a3))
18496 : : {
18497 : 0 : case VEC_COND_EXPR:
18498 : 0 : {
18499 : 0 : tree _q80 = gimple_assign_rhs1 (_a3);
18500 : 0 : _q80 = do_valueize (valueize, _q80);
18501 : 0 : tree _q81 = gimple_assign_rhs2 (_a3);
18502 : 0 : _q81 = do_valueize (valueize, _q81);
18503 : 0 : tree _q82 = gimple_assign_rhs3 (_a3);
18504 : 0 : _q82 = do_valueize (valueize, _q82);
18505 : 0 : switch (TREE_CODE (_q80))
18506 : : {
18507 : 0 : case SSA_NAME:
18508 : 0 : if (gimple *_d4 = get_def (valueize, _q80))
18509 : : {
18510 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
18511 : 0 : switch (gimple_assign_rhs_code (_a4))
18512 : : {
18513 : 0 : case GE_EXPR:
18514 : 0 : {
18515 : 0 : tree _q90 = gimple_assign_rhs1 (_a4);
18516 : 0 : _q90 = do_valueize (valueize, _q90);
18517 : 0 : tree _q91 = gimple_assign_rhs2 (_a4);
18518 : 0 : _q91 = do_valueize (valueize, _q91);
18519 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
18520 : : {
18521 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
18522 : : {
18523 : 0 : if (integer_zerop (_q82))
18524 : : {
18525 : 0 : {
18526 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
18527 : 0 : if (gimple_simplify_36 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, UNLT_EXPR, GE_EXPR))
18528 : 0 : return true;
18529 : : }
18530 : : }
18531 : : }
18532 : : }
18533 : : break;
18534 : : }
18535 : : default:;
18536 : : }
18537 : : }
18538 : : break;
18539 : : default:;
18540 : : }
18541 : : break;
18542 : : }
18543 : : default:;
18544 : : }
18545 : : }
18546 : : break;
18547 : : default:;
18548 : : }
18549 : : }
18550 : : break;
18551 : : }
18552 : 0 : case UNLE_EXPR:
18553 : 0 : {
18554 : 0 : tree _q30 = gimple_assign_rhs1 (_a2);
18555 : 0 : _q30 = do_valueize (valueize, _q30);
18556 : 0 : tree _q31 = gimple_assign_rhs2 (_a2);
18557 : 0 : _q31 = do_valueize (valueize, _q31);
18558 : 0 : if (integer_zerop (_q22))
18559 : : {
18560 : 0 : switch (TREE_CODE (_p1))
18561 : : {
18562 : 0 : case SSA_NAME:
18563 : 0 : if (gimple *_d3 = get_def (valueize, _p1))
18564 : : {
18565 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
18566 : 0 : switch (gimple_assign_rhs_code (_a3))
18567 : : {
18568 : 0 : case VEC_COND_EXPR:
18569 : 0 : {
18570 : 0 : tree _q80 = gimple_assign_rhs1 (_a3);
18571 : 0 : _q80 = do_valueize (valueize, _q80);
18572 : 0 : tree _q81 = gimple_assign_rhs2 (_a3);
18573 : 0 : _q81 = do_valueize (valueize, _q81);
18574 : 0 : tree _q82 = gimple_assign_rhs3 (_a3);
18575 : 0 : _q82 = do_valueize (valueize, _q82);
18576 : 0 : switch (TREE_CODE (_q80))
18577 : : {
18578 : 0 : case SSA_NAME:
18579 : 0 : if (gimple *_d4 = get_def (valueize, _q80))
18580 : : {
18581 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
18582 : 0 : switch (gimple_assign_rhs_code (_a4))
18583 : : {
18584 : 0 : case GT_EXPR:
18585 : 0 : {
18586 : 0 : tree _q90 = gimple_assign_rhs1 (_a4);
18587 : 0 : _q90 = do_valueize (valueize, _q90);
18588 : 0 : tree _q91 = gimple_assign_rhs2 (_a4);
18589 : 0 : _q91 = do_valueize (valueize, _q91);
18590 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
18591 : : {
18592 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
18593 : : {
18594 : 0 : if (integer_zerop (_q82))
18595 : : {
18596 : 0 : {
18597 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
18598 : 0 : if (gimple_simplify_36 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, UNLE_EXPR, GT_EXPR))
18599 : 0 : return true;
18600 : : }
18601 : : }
18602 : : }
18603 : : }
18604 : : break;
18605 : : }
18606 : : default:;
18607 : : }
18608 : : }
18609 : : break;
18610 : : default:;
18611 : : }
18612 : : break;
18613 : : }
18614 : : default:;
18615 : : }
18616 : : }
18617 : : break;
18618 : : default:;
18619 : : }
18620 : : }
18621 : : break;
18622 : : }
18623 : 0 : case UNGT_EXPR:
18624 : 0 : {
18625 : 0 : tree _q30 = gimple_assign_rhs1 (_a2);
18626 : 0 : _q30 = do_valueize (valueize, _q30);
18627 : 0 : tree _q31 = gimple_assign_rhs2 (_a2);
18628 : 0 : _q31 = do_valueize (valueize, _q31);
18629 : 0 : if (integer_zerop (_q22))
18630 : : {
18631 : 0 : switch (TREE_CODE (_p1))
18632 : : {
18633 : 0 : case SSA_NAME:
18634 : 0 : if (gimple *_d3 = get_def (valueize, _p1))
18635 : : {
18636 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
18637 : 0 : switch (gimple_assign_rhs_code (_a3))
18638 : : {
18639 : 0 : case VEC_COND_EXPR:
18640 : 0 : {
18641 : 0 : tree _q80 = gimple_assign_rhs1 (_a3);
18642 : 0 : _q80 = do_valueize (valueize, _q80);
18643 : 0 : tree _q81 = gimple_assign_rhs2 (_a3);
18644 : 0 : _q81 = do_valueize (valueize, _q81);
18645 : 0 : tree _q82 = gimple_assign_rhs3 (_a3);
18646 : 0 : _q82 = do_valueize (valueize, _q82);
18647 : 0 : switch (TREE_CODE (_q80))
18648 : : {
18649 : 0 : case SSA_NAME:
18650 : 0 : if (gimple *_d4 = get_def (valueize, _q80))
18651 : : {
18652 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
18653 : 0 : switch (gimple_assign_rhs_code (_a4))
18654 : : {
18655 : 0 : case LE_EXPR:
18656 : 0 : {
18657 : 0 : tree _q90 = gimple_assign_rhs1 (_a4);
18658 : 0 : _q90 = do_valueize (valueize, _q90);
18659 : 0 : tree _q91 = gimple_assign_rhs2 (_a4);
18660 : 0 : _q91 = do_valueize (valueize, _q91);
18661 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
18662 : : {
18663 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
18664 : : {
18665 : 0 : if (integer_zerop (_q82))
18666 : : {
18667 : 0 : {
18668 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
18669 : 0 : if (gimple_simplify_36 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, UNGT_EXPR, LE_EXPR))
18670 : 0 : return true;
18671 : : }
18672 : : }
18673 : : }
18674 : : }
18675 : : break;
18676 : : }
18677 : : default:;
18678 : : }
18679 : : }
18680 : : break;
18681 : : default:;
18682 : : }
18683 : : break;
18684 : : }
18685 : : default:;
18686 : : }
18687 : : }
18688 : : break;
18689 : : default:;
18690 : : }
18691 : : }
18692 : : break;
18693 : : }
18694 : 0 : case UNGE_EXPR:
18695 : 0 : {
18696 : 0 : tree _q30 = gimple_assign_rhs1 (_a2);
18697 : 0 : _q30 = do_valueize (valueize, _q30);
18698 : 0 : tree _q31 = gimple_assign_rhs2 (_a2);
18699 : 0 : _q31 = do_valueize (valueize, _q31);
18700 : 0 : if (integer_zerop (_q22))
18701 : : {
18702 : 0 : switch (TREE_CODE (_p1))
18703 : : {
18704 : 0 : case SSA_NAME:
18705 : 0 : if (gimple *_d3 = get_def (valueize, _p1))
18706 : : {
18707 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
18708 : 0 : switch (gimple_assign_rhs_code (_a3))
18709 : : {
18710 : 0 : case VEC_COND_EXPR:
18711 : 0 : {
18712 : 0 : tree _q80 = gimple_assign_rhs1 (_a3);
18713 : 0 : _q80 = do_valueize (valueize, _q80);
18714 : 0 : tree _q81 = gimple_assign_rhs2 (_a3);
18715 : 0 : _q81 = do_valueize (valueize, _q81);
18716 : 0 : tree _q82 = gimple_assign_rhs3 (_a3);
18717 : 0 : _q82 = do_valueize (valueize, _q82);
18718 : 0 : switch (TREE_CODE (_q80))
18719 : : {
18720 : 0 : case SSA_NAME:
18721 : 0 : if (gimple *_d4 = get_def (valueize, _q80))
18722 : : {
18723 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
18724 : 0 : switch (gimple_assign_rhs_code (_a4))
18725 : : {
18726 : 0 : case LT_EXPR:
18727 : 0 : {
18728 : 0 : tree _q90 = gimple_assign_rhs1 (_a4);
18729 : 0 : _q90 = do_valueize (valueize, _q90);
18730 : 0 : tree _q91 = gimple_assign_rhs2 (_a4);
18731 : 0 : _q91 = do_valueize (valueize, _q91);
18732 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
18733 : : {
18734 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
18735 : : {
18736 : 0 : if (integer_zerop (_q82))
18737 : : {
18738 : 0 : {
18739 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
18740 : 0 : if (gimple_simplify_36 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, UNGE_EXPR, LT_EXPR))
18741 : 0 : return true;
18742 : : }
18743 : : }
18744 : : }
18745 : : }
18746 : : break;
18747 : : }
18748 : : default:;
18749 : : }
18750 : : }
18751 : : break;
18752 : : default:;
18753 : : }
18754 : : break;
18755 : : }
18756 : : default:;
18757 : : }
18758 : : }
18759 : : break;
18760 : : default:;
18761 : : }
18762 : : }
18763 : : break;
18764 : : }
18765 : 0 : case UNEQ_EXPR:
18766 : 0 : {
18767 : 0 : tree _q30 = gimple_assign_rhs1 (_a2);
18768 : 0 : _q30 = do_valueize (valueize, _q30);
18769 : 0 : tree _q31 = gimple_assign_rhs2 (_a2);
18770 : 0 : _q31 = do_valueize (valueize, _q31);
18771 : 0 : if (tree_swap_operands_p (_q30, _q31))
18772 : 0 : std::swap (_q30, _q31);
18773 : 0 : if (integer_zerop (_q22))
18774 : : {
18775 : 0 : switch (TREE_CODE (_p1))
18776 : : {
18777 : 0 : case SSA_NAME:
18778 : 0 : if (gimple *_d3 = get_def (valueize, _p1))
18779 : : {
18780 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
18781 : 0 : switch (gimple_assign_rhs_code (_a3))
18782 : : {
18783 : 0 : case VEC_COND_EXPR:
18784 : 0 : {
18785 : 0 : tree _q80 = gimple_assign_rhs1 (_a3);
18786 : 0 : _q80 = do_valueize (valueize, _q80);
18787 : 0 : tree _q81 = gimple_assign_rhs2 (_a3);
18788 : 0 : _q81 = do_valueize (valueize, _q81);
18789 : 0 : tree _q82 = gimple_assign_rhs3 (_a3);
18790 : 0 : _q82 = do_valueize (valueize, _q82);
18791 : 0 : switch (TREE_CODE (_q80))
18792 : : {
18793 : 0 : case SSA_NAME:
18794 : 0 : if (gimple *_d4 = get_def (valueize, _q80))
18795 : : {
18796 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
18797 : 0 : switch (gimple_assign_rhs_code (_a4))
18798 : : {
18799 : 0 : case LTGT_EXPR:
18800 : 0 : {
18801 : 0 : tree _q90 = gimple_assign_rhs1 (_a4);
18802 : 0 : _q90 = do_valueize (valueize, _q90);
18803 : 0 : tree _q91 = gimple_assign_rhs2 (_a4);
18804 : 0 : _q91 = do_valueize (valueize, _q91);
18805 : 0 : if (tree_swap_operands_p (_q90, _q91))
18806 : 0 : std::swap (_q90, _q91);
18807 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
18808 : : {
18809 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
18810 : : {
18811 : 0 : if (integer_zerop (_q82))
18812 : : {
18813 : 0 : {
18814 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
18815 : 0 : if (gimple_simplify_36 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, UNEQ_EXPR, LTGT_EXPR))
18816 : 0 : return true;
18817 : : }
18818 : : }
18819 : : }
18820 : : }
18821 : 623972 : break;
18822 : : }
18823 : : default:;
18824 : : }
18825 : : }
18826 : : break;
18827 : : default:;
18828 : : }
18829 : : break;
18830 : : }
18831 : : default:;
18832 : : }
18833 : : }
18834 : : break;
18835 : : default:;
18836 : : }
18837 : : }
18838 : 623972 : break;
18839 : : }
18840 : 0 : case LTGT_EXPR:
18841 : 0 : {
18842 : 0 : tree _q30 = gimple_assign_rhs1 (_a2);
18843 : 0 : _q30 = do_valueize (valueize, _q30);
18844 : 0 : tree _q31 = gimple_assign_rhs2 (_a2);
18845 : 0 : _q31 = do_valueize (valueize, _q31);
18846 : 0 : if (tree_swap_operands_p (_q30, _q31))
18847 : 0 : std::swap (_q30, _q31);
18848 : 0 : if (integer_zerop (_q22))
18849 : : {
18850 : 0 : switch (TREE_CODE (_p1))
18851 : : {
18852 : 0 : case SSA_NAME:
18853 : 0 : if (gimple *_d3 = get_def (valueize, _p1))
18854 : : {
18855 : 0 : if (gassign *_a3 = dyn_cast <gassign *> (_d3))
18856 : 0 : switch (gimple_assign_rhs_code (_a3))
18857 : : {
18858 : 0 : case VEC_COND_EXPR:
18859 : 0 : {
18860 : 0 : tree _q80 = gimple_assign_rhs1 (_a3);
18861 : 0 : _q80 = do_valueize (valueize, _q80);
18862 : 0 : tree _q81 = gimple_assign_rhs2 (_a3);
18863 : 0 : _q81 = do_valueize (valueize, _q81);
18864 : 0 : tree _q82 = gimple_assign_rhs3 (_a3);
18865 : 0 : _q82 = do_valueize (valueize, _q82);
18866 : 0 : switch (TREE_CODE (_q80))
18867 : : {
18868 : 0 : case SSA_NAME:
18869 : 0 : if (gimple *_d4 = get_def (valueize, _q80))
18870 : : {
18871 : 0 : if (gassign *_a4 = dyn_cast <gassign *> (_d4))
18872 : 0 : switch (gimple_assign_rhs_code (_a4))
18873 : : {
18874 : 0 : case UNEQ_EXPR:
18875 : 0 : {
18876 : 0 : tree _q90 = gimple_assign_rhs1 (_a4);
18877 : 0 : _q90 = do_valueize (valueize, _q90);
18878 : 0 : tree _q91 = gimple_assign_rhs2 (_a4);
18879 : 0 : _q91 = do_valueize (valueize, _q91);
18880 : 0 : if (tree_swap_operands_p (_q90, _q91))
18881 : 0 : std::swap (_q90, _q91);
18882 : 0 : if ((_q90 == _q30 && ! TREE_SIDE_EFFECTS (_q90)) || (operand_equal_p (_q90, _q30, 0) && types_match (_q90, _q30)))
18883 : : {
18884 : 0 : if ((_q91 == _q31 && ! TREE_SIDE_EFFECTS (_q91)) || (operand_equal_p (_q91, _q31, 0) && types_match (_q91, _q31)))
18885 : : {
18886 : 0 : if (integer_zerop (_q82))
18887 : : {
18888 : 0 : {
18889 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _q31, _q21, _p1, _q80, _q81 };
18890 : 0 : if (gimple_simplify_36 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR, LTGT_EXPR, UNEQ_EXPR))
18891 : 0 : return true;
18892 : : }
18893 : : }
18894 : : }
18895 : : }
18896 : 623972 : break;
18897 : : }
18898 : : default:;
18899 : : }
18900 : : }
18901 : : break;
18902 : : default:;
18903 : : }
18904 : : break;
18905 : : }
18906 : : default:;
18907 : : }
18908 : : }
18909 : : break;
18910 : : default:;
18911 : : }
18912 : : }
18913 : 623972 : break;
18914 : : }
18915 : : default:;
18916 : : }
18917 : : }
18918 : : break;
18919 : : default:;
18920 : : }
18921 : : break;
18922 : : }
18923 : 30958 : case BIT_AND_EXPR:
18924 : 30958 : {
18925 : 30958 : tree _q20 = gimple_assign_rhs1 (_a1);
18926 : 30958 : _q20 = do_valueize (valueize, _q20);
18927 : 30958 : tree _q21 = gimple_assign_rhs2 (_a1);
18928 : 30958 : _q21 = do_valueize (valueize, _q21);
18929 : 30958 : if (tree_swap_operands_p (_q20, _q21))
18930 : 1258 : std::swap (_q20, _q21);
18931 : 30958 : if (gimple_truth_valued_p (_q20, valueize))
18932 : : {
18933 : 31 : if (gimple_truth_valued_p (_q21, valueize))
18934 : : {
18935 : 31 : switch (TREE_CODE (_p1))
18936 : : {
18937 : 31 : case SSA_NAME:
18938 : 31 : if (gimple *_d2 = get_def (valueize, _p1))
18939 : : {
18940 : 31 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
18941 : 3 : switch (gimple_assign_rhs_code (_a2))
18942 : : {
18943 : 2 : case EQ_EXPR:
18944 : 2 : {
18945 : 2 : tree _q50 = gimple_assign_rhs1 (_a2);
18946 : 2 : _q50 = do_valueize (valueize, _q50);
18947 : 2 : tree _q51 = gimple_assign_rhs2 (_a2);
18948 : 2 : _q51 = do_valueize (valueize, _q51);
18949 : 2 : if (tree_swap_operands_p (_q50, _q51))
18950 : 0 : std::swap (_q50, _q51);
18951 : 2 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
18952 : : {
18953 : 2 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
18954 : : {
18955 : 2 : {
18956 : 2 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
18957 : 2 : gimple_seq *lseq = seq;
18958 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1973;
18959 : 2 : {
18960 : 2 : res_op->set_op (BIT_NOT_EXPR, type, 1);
18961 : 2 : {
18962 : 2 : tree _o1[2], _r1;
18963 : 2 : _o1[0] = captures[0];
18964 : 2 : _o1[1] = captures[1];
18965 : 2 : gimple_match_op tem_op (res_op->cond.any_else (), BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18966 : 2 : tem_op.resimplify (lseq, valueize);
18967 : 2 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
18968 : 2 : if (!_r1) goto next_after_fail1973;
18969 : 1 : res_op->ops[0] = _r1;
18970 : : }
18971 : 1 : res_op->resimplify (lseq, valueize);
18972 : 1 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1030, __FILE__, __LINE__, true);
18973 : 1 : return true;
18974 : : }
18975 : 1 : next_after_fail1973:;
18976 : : }
18977 : : }
18978 : : }
18979 : 1 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
18980 : : {
18981 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
18982 : : {
18983 : 0 : {
18984 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
18985 : 0 : gimple_seq *lseq = seq;
18986 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1974;
18987 : 0 : {
18988 : 0 : res_op->set_op (BIT_NOT_EXPR, type, 1);
18989 : 0 : {
18990 : 0 : tree _o1[2], _r1;
18991 : 0 : _o1[0] = captures[0];
18992 : 0 : _o1[1] = captures[1];
18993 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
18994 : 0 : tem_op.resimplify (lseq, valueize);
18995 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
18996 : 0 : if (!_r1) goto next_after_fail1974;
18997 : 0 : res_op->ops[0] = _r1;
18998 : : }
18999 : 0 : res_op->resimplify (lseq, valueize);
19000 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1030, __FILE__, __LINE__, true);
19001 : 0 : return true;
19002 : : }
19003 : 0 : next_after_fail1974:;
19004 : : }
19005 : : }
19006 : : }
19007 : 623972 : break;
19008 : : }
19009 : : default:;
19010 : : }
19011 : : }
19012 : : break;
19013 : : default:;
19014 : : }
19015 : : }
19016 : : }
19017 : 623972 : break;
19018 : : }
19019 : 993 : case EQ_EXPR:
19020 : 993 : {
19021 : 993 : tree _q20 = gimple_assign_rhs1 (_a1);
19022 : 993 : _q20 = do_valueize (valueize, _q20);
19023 : 993 : tree _q21 = gimple_assign_rhs2 (_a1);
19024 : 993 : _q21 = do_valueize (valueize, _q21);
19025 : 993 : if (tree_swap_operands_p (_q20, _q21))
19026 : 57 : std::swap (_q20, _q21);
19027 : 993 : switch (TREE_CODE (_p1))
19028 : : {
19029 : 993 : case SSA_NAME:
19030 : 993 : if (gimple *_d2 = get_def (valueize, _p1))
19031 : : {
19032 : 988 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
19033 : 941 : switch (gimple_assign_rhs_code (_a2))
19034 : : {
19035 : 1 : case BIT_AND_EXPR:
19036 : 1 : {
19037 : 1 : tree _q50 = gimple_assign_rhs1 (_a2);
19038 : 1 : _q50 = do_valueize (valueize, _q50);
19039 : 1 : tree _q51 = gimple_assign_rhs2 (_a2);
19040 : 1 : _q51 = do_valueize (valueize, _q51);
19041 : 1 : if (tree_swap_operands_p (_q50, _q51))
19042 : 0 : std::swap (_q50, _q51);
19043 : 1 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19044 : : {
19045 : 1 : if (gimple_truth_valued_p (_q50, valueize))
19046 : : {
19047 : 1 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
19048 : : {
19049 : 1 : if (gimple_truth_valued_p (_q51, valueize))
19050 : : {
19051 : 1 : {
19052 : 1 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
19053 : 1 : gimple_seq *lseq = seq;
19054 : 1 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1975;
19055 : 1 : {
19056 : 1 : res_op->set_op (BIT_NOT_EXPR, type, 1);
19057 : 1 : {
19058 : 1 : tree _o1[2], _r1;
19059 : 1 : _o1[0] = captures[0];
19060 : 1 : _o1[1] = captures[1];
19061 : 1 : gimple_match_op tem_op (res_op->cond.any_else (), BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19062 : 1 : tem_op.resimplify (lseq, valueize);
19063 : 1 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
19064 : 1 : if (!_r1) goto next_after_fail1975;
19065 : 1 : res_op->ops[0] = _r1;
19066 : : }
19067 : 1 : res_op->resimplify (lseq, valueize);
19068 : 1 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1030, __FILE__, __LINE__, true);
19069 : 1 : return true;
19070 : : }
19071 : 0 : next_after_fail1975:;
19072 : : }
19073 : : }
19074 : : }
19075 : : }
19076 : : }
19077 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
19078 : : {
19079 : 0 : if (gimple_truth_valued_p (_q50, valueize))
19080 : : {
19081 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
19082 : : {
19083 : 0 : if (gimple_truth_valued_p (_q51, valueize))
19084 : : {
19085 : 0 : {
19086 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
19087 : 0 : gimple_seq *lseq = seq;
19088 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1976;
19089 : 0 : {
19090 : 0 : res_op->set_op (BIT_NOT_EXPR, type, 1);
19091 : 0 : {
19092 : 0 : tree _o1[2], _r1;
19093 : 0 : _o1[0] = captures[0];
19094 : 0 : _o1[1] = captures[1];
19095 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), BIT_IOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
19096 : 0 : tem_op.resimplify (lseq, valueize);
19097 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
19098 : 0 : if (!_r1) goto next_after_fail1976;
19099 : 0 : res_op->ops[0] = _r1;
19100 : : }
19101 : 0 : res_op->resimplify (lseq, valueize);
19102 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1030, __FILE__, __LINE__, true);
19103 : 0 : return true;
19104 : : }
19105 : 0 : next_after_fail1976:;
19106 : : }
19107 : : }
19108 : : }
19109 : : }
19110 : : }
19111 : 623972 : break;
19112 : : }
19113 : : default:;
19114 : : }
19115 : : }
19116 : : break;
19117 : : default:;
19118 : : }
19119 : 623972 : break;
19120 : : }
19121 : : default:;
19122 : : }
19123 : : }
19124 : : break;
19125 : 623972 : default:;
19126 : : }
19127 : 623972 : {
19128 : 623972 : tree _p0_pops[1];
19129 : 623972 : if (gimple_logical_inverted_value (_p0, _p0_pops, valueize))
19130 : : {
19131 : 411 : tree _q20 = _p0_pops[0];
19132 : 411 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
19133 : : {
19134 : 0 : if (gimple_truth_valued_p (_p1, valueize))
19135 : : {
19136 : 0 : {
19137 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _q20 };
19138 : 0 : if (gimple_simplify_34 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
19139 : 0 : return true;
19140 : : }
19141 : : }
19142 : : }
19143 : : }
19144 : : }
19145 : 623972 : {
19146 : 623972 : tree _p0_pops[1];
19147 : 623972 : if (gimple_nop_convert (_p0, _p0_pops, valueize))
19148 : : {
19149 : 10440 : tree _q20 = _p0_pops[0];
19150 : 10440 : switch (TREE_CODE (_q20))
19151 : : {
19152 : 10398 : case SSA_NAME:
19153 : 10398 : if (gimple *_d1 = get_def (valueize, _q20))
19154 : : {
19155 : 10110 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
19156 : 7653 : switch (gimple_assign_rhs_code (_a1))
19157 : : {
19158 : 165 : case BIT_NOT_EXPR:
19159 : 165 : {
19160 : 165 : tree _q30 = gimple_assign_rhs1 (_a1);
19161 : 165 : _q30 = do_valueize (valueize, _q30);
19162 : 165 : {
19163 : 165 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q30, _p1 };
19164 : 165 : if (gimple_simplify_37 (res_op, seq, valueize, type, captures))
19165 : 5 : return true;
19166 : : }
19167 : 160 : break;
19168 : : }
19169 : 178 : case MULT_EXPR:
19170 : 178 : {
19171 : 178 : tree _q30 = gimple_assign_rhs1 (_a1);
19172 : 178 : _q30 = do_valueize (valueize, _q30);
19173 : 178 : tree _q31 = gimple_assign_rhs2 (_a1);
19174 : 178 : _q31 = do_valueize (valueize, _q31);
19175 : 178 : if (tree_swap_operands_p (_q30, _q31))
19176 : 0 : std::swap (_q30, _q31);
19177 : 178 : {
19178 : 178 : tree _q30_pops[1];
19179 : 178 : if (gimple_nop_convert (_q30, _q30_pops, valueize))
19180 : : {
19181 : 54 : tree _q40 = _q30_pops[0];
19182 : 54 : switch (TREE_CODE (_q31))
19183 : : {
19184 : 54 : case INTEGER_CST:
19185 : 54 : {
19186 : 54 : switch (TREE_CODE (_p1))
19187 : : {
19188 : 54 : case SSA_NAME:
19189 : 54 : if (gimple *_d2 = get_def (valueize, _p1))
19190 : : {
19191 : 54 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
19192 : 24 : switch (gimple_assign_rhs_code (_a2))
19193 : : {
19194 : 0 : case LSHIFT_EXPR:
19195 : 0 : {
19196 : 0 : tree _q70 = gimple_assign_rhs1 (_a2);
19197 : 0 : _q70 = do_valueize (valueize, _q70);
19198 : 0 : tree _q71 = gimple_assign_rhs2 (_a2);
19199 : 0 : _q71 = do_valueize (valueize, _q71);
19200 : 0 : if ((_q70 == _q40 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q40, 0) && types_match (_q70, _q40)))
19201 : : {
19202 : 0 : switch (TREE_CODE (_q71))
19203 : : {
19204 : 0 : case INTEGER_CST:
19205 : 0 : {
19206 : 0 : {
19207 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q40, _q31, _p1, _q71 };
19208 : 0 : if (gimple_simplify_39 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
19209 : 0 : return true;
19210 : : }
19211 : 0 : break;
19212 : : }
19213 : : default:;
19214 : : }
19215 : : }
19216 : : break;
19217 : : }
19218 : : default:;
19219 : : }
19220 : : }
19221 : : break;
19222 : 54 : default:;
19223 : : }
19224 : 54 : {
19225 : 54 : tree _p1_pops[1];
19226 : 54 : if (gimple_nop_convert (_p1, _p1_pops, valueize))
19227 : : {
19228 : 0 : tree _q70 = _p1_pops[0];
19229 : 0 : switch (TREE_CODE (_q70))
19230 : : {
19231 : 0 : case SSA_NAME:
19232 : 0 : if (gimple *_d2 = get_def (valueize, _q70))
19233 : : {
19234 : 0 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
19235 : 0 : switch (gimple_assign_rhs_code (_a2))
19236 : : {
19237 : 0 : case MULT_EXPR:
19238 : 0 : {
19239 : 0 : tree _q80 = gimple_assign_rhs1 (_a2);
19240 : 0 : _q80 = do_valueize (valueize, _q80);
19241 : 0 : tree _q81 = gimple_assign_rhs2 (_a2);
19242 : 0 : _q81 = do_valueize (valueize, _q81);
19243 : 0 : if (tree_swap_operands_p (_q80, _q81))
19244 : 0 : std::swap (_q80, _q81);
19245 : 0 : {
19246 : 0 : tree _q80_pops[1];
19247 : 0 : if (gimple_nop_convert (_q80, _q80_pops, valueize))
19248 : : {
19249 : 0 : tree _q90 = _q80_pops[0];
19250 : 0 : switch (TREE_CODE (_q81))
19251 : : {
19252 : 0 : case INTEGER_CST:
19253 : 0 : {
19254 : 0 : {
19255 : 0 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _q20, _q40, _q31, _p1, _q70, _q90, _q81 };
19256 : 0 : if (gimple_simplify_38 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
19257 : 0 : return true;
19258 : : }
19259 : 0 : break;
19260 : : }
19261 : : default:;
19262 : : }
19263 : : }
19264 : : }
19265 : 0 : break;
19266 : : }
19267 : : default:;
19268 : : }
19269 : : }
19270 : : break;
19271 : : default:;
19272 : : }
19273 : : }
19274 : : }
19275 : 54 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
19276 : : {
19277 : 0 : {
19278 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q40, _q31 };
19279 : 0 : if (gimple_simplify_40 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
19280 : 0 : return true;
19281 : : }
19282 : : }
19283 : : break;
19284 : : }
19285 : : default:;
19286 : : }
19287 : : }
19288 : : }
19289 : 178 : break;
19290 : : }
19291 : : default:;
19292 : : }
19293 : : }
19294 : : break;
19295 : : default:;
19296 : : }
19297 : : }
19298 : : }
19299 : 623967 : if (gimple_truth_valued_p (_p0, valueize))
19300 : : {
19301 : 43196 : {
19302 : 43196 : tree _p1_pops[1];
19303 : 43196 : if (gimple_logical_inverted_value (_p1, _p1_pops, valueize))
19304 : : {
19305 : 691 : tree _q30 = _p1_pops[0];
19306 : 691 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
19307 : : {
19308 : 0 : {
19309 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
19310 : 0 : if (gimple_simplify_34 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
19311 : 0 : return true;
19312 : : }
19313 : : }
19314 : : }
19315 : : }
19316 : : }
19317 : 623967 : switch (TREE_CODE (_p1))
19318 : : {
19319 : 494161 : case SSA_NAME:
19320 : 494161 : if (gimple *_d1 = get_def (valueize, _p1))
19321 : : {
19322 : 405332 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
19323 : 451430 : switch (gimple_assign_rhs_code (_a1))
19324 : : {
19325 : 314 : case BIT_NOT_EXPR:
19326 : 314 : {
19327 : 314 : tree _q30 = gimple_assign_rhs1 (_a1);
19328 : 314 : _q30 = do_valueize (valueize, _q30);
19329 : 314 : {
19330 : 314 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _p1, _q30, _p0 };
19331 : 314 : if (gimple_simplify_27 (res_op, seq, valueize, type, captures))
19332 : 110 : return true;
19333 : : }
19334 : 204 : break;
19335 : : }
19336 : : default:;
19337 : : }
19338 : : }
19339 : : break;
19340 : 623857 : default:;
19341 : : }
19342 : 623857 : {
19343 : 623857 : tree _p1_pops[1];
19344 : 623857 : if (gimple_nop_convert (_p1, _p1_pops, valueize))
19345 : : {
19346 : 6639 : tree _q30 = _p1_pops[0];
19347 : 6639 : switch (TREE_CODE (_q30))
19348 : : {
19349 : 6621 : case SSA_NAME:
19350 : 6621 : if (gimple *_d1 = get_def (valueize, _q30))
19351 : : {
19352 : 6228 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
19353 : 5064 : switch (gimple_assign_rhs_code (_a1))
19354 : : {
19355 : 114 : case BIT_NOT_EXPR:
19356 : 114 : {
19357 : 114 : tree _q40 = gimple_assign_rhs1 (_a1);
19358 : 114 : _q40 = do_valueize (valueize, _q40);
19359 : 114 : {
19360 : 114 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q30, _q40, _p0 };
19361 : 114 : if (gimple_simplify_37 (res_op, seq, valueize, type, captures))
19362 : 0 : return true;
19363 : : }
19364 : 114 : break;
19365 : : }
19366 : : default:;
19367 : : }
19368 : : }
19369 : : break;
19370 : : default:;
19371 : : }
19372 : : }
19373 : : }
19374 : 623857 : switch (TREE_CODE (_p0))
19375 : : {
19376 : 612608 : case SSA_NAME:
19377 : 612608 : if (gimple *_d1 = get_def (valueize, _p0))
19378 : : {
19379 : 485443 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
19380 : 549046 : switch (gimple_assign_rhs_code (_a1))
19381 : : {
19382 : 14228 : case BIT_IOR_EXPR:
19383 : 14228 : {
19384 : 14228 : tree _q20 = gimple_assign_rhs1 (_a1);
19385 : 14228 : _q20 = do_valueize (valueize, _q20);
19386 : 14228 : tree _q21 = gimple_assign_rhs2 (_a1);
19387 : 14228 : _q21 = do_valueize (valueize, _q21);
19388 : 14228 : if (tree_swap_operands_p (_q20, _q21))
19389 : 758 : std::swap (_q20, _q21);
19390 : 14228 : switch (TREE_CODE (_q21))
19391 : : {
19392 : 435 : case INTEGER_CST:
19393 : 435 : {
19394 : 435 : switch (TREE_CODE (_p1))
19395 : : {
19396 : 253 : case INTEGER_CST:
19397 : 253 : {
19398 : 253 : {
19399 : 253 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1 };
19400 : 253 : if (gimple_simplify_41 (res_op, seq, valueize, type, captures, BIT_IOR_EXPR, BIT_XOR_EXPR))
19401 : 1 : return true;
19402 : : }
19403 : 252 : break;
19404 : : }
19405 : : default:;
19406 : : }
19407 : : break;
19408 : : }
19409 : : default:;
19410 : : }
19411 : 623595 : break;
19412 : : }
19413 : 1369 : case LT_EXPR:
19414 : 1369 : {
19415 : 1369 : tree _q20 = gimple_assign_rhs1 (_a1);
19416 : 1369 : _q20 = do_valueize (valueize, _q20);
19417 : 1369 : tree _q21 = gimple_assign_rhs2 (_a1);
19418 : 1369 : _q21 = do_valueize (valueize, _q21);
19419 : 1369 : switch (TREE_CODE (_p1))
19420 : : {
19421 : 1369 : case SSA_NAME:
19422 : 1369 : if (gimple *_d2 = get_def (valueize, _p1))
19423 : : {
19424 : 1333 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
19425 : 1335 : switch (gimple_assign_rhs_code (_a2))
19426 : : {
19427 : 24 : case GT_EXPR:
19428 : 24 : {
19429 : 24 : tree _q50 = gimple_assign_rhs1 (_a2);
19430 : 24 : _q50 = do_valueize (valueize, _q50);
19431 : 24 : tree _q51 = gimple_assign_rhs2 (_a2);
19432 : 24 : _q51 = do_valueize (valueize, _q51);
19433 : 24 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19434 : : {
19435 : 18 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
19436 : : {
19437 : 18 : {
19438 : 18 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
19439 : 18 : const enum tree_code cmp1 = LT_EXPR;
19440 : 18 : const enum tree_code cmp2 = GT_EXPR;
19441 : 18 : const enum tree_code rcmp = NE_EXPR;
19442 : 18 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])) || POINTER_TYPE_P (TREE_TYPE (captures[0]))
19443 : : )
19444 : : {
19445 : 18 : gimple_seq *lseq = seq;
19446 : 18 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1977;
19447 : 18 : {
19448 : 18 : res_op->set_op (rcmp, type, 2);
19449 : 18 : res_op->ops[0] = captures[0];
19450 : 18 : res_op->ops[1] = captures[1];
19451 : 18 : res_op->resimplify (lseq, valueize);
19452 : 18 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1031, __FILE__, __LINE__, true);
19453 : 18 : return true;
19454 : : }
19455 : 0 : next_after_fail1977:;
19456 : : }
19457 : : }
19458 : : }
19459 : : }
19460 : : break;
19461 : : }
19462 : 88 : case EQ_EXPR:
19463 : 88 : {
19464 : 88 : tree _q50 = gimple_assign_rhs1 (_a2);
19465 : 88 : _q50 = do_valueize (valueize, _q50);
19466 : 88 : tree _q51 = gimple_assign_rhs2 (_a2);
19467 : 88 : _q51 = do_valueize (valueize, _q51);
19468 : 88 : if (tree_swap_operands_p (_q50, _q51))
19469 : 28 : std::swap (_q50, _q51);
19470 : 88 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19471 : : {
19472 : 16 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
19473 : : {
19474 : 16 : {
19475 : 16 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
19476 : 16 : const enum tree_code cmp1 = LT_EXPR;
19477 : 16 : const enum tree_code cmp2 = EQ_EXPR;
19478 : 16 : const enum tree_code rcmp = LE_EXPR;
19479 : 16 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])) || POINTER_TYPE_P (TREE_TYPE (captures[0]))
19480 : : )
19481 : : {
19482 : 16 : gimple_seq *lseq = seq;
19483 : 16 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1978;
19484 : 16 : {
19485 : 16 : res_op->set_op (rcmp, type, 2);
19486 : 16 : res_op->ops[0] = captures[0];
19487 : 16 : res_op->ops[1] = captures[1];
19488 : 16 : res_op->resimplify (lseq, valueize);
19489 : 16 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1031, __FILE__, __LINE__, true);
19490 : 16 : return true;
19491 : : }
19492 : 0 : next_after_fail1978:;
19493 : : }
19494 : : }
19495 : : }
19496 : : }
19497 : 623595 : break;
19498 : : }
19499 : 18 : case NE_EXPR:
19500 : 18 : {
19501 : 18 : tree _q50 = gimple_assign_rhs1 (_a2);
19502 : 18 : _q50 = do_valueize (valueize, _q50);
19503 : 18 : tree _q51 = gimple_assign_rhs2 (_a2);
19504 : 18 : _q51 = do_valueize (valueize, _q51);
19505 : 18 : if (tree_swap_operands_p (_q50, _q51))
19506 : 0 : std::swap (_q50, _q51);
19507 : 18 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19508 : : {
19509 : 16 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
19510 : : {
19511 : 16 : {
19512 : 16 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
19513 : 16 : const enum tree_code cmp1 = LT_EXPR;
19514 : 16 : const enum tree_code cmp2 = NE_EXPR;
19515 : 16 : const enum tree_code rcmp = GT_EXPR;
19516 : 16 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])) || POINTER_TYPE_P (TREE_TYPE (captures[0]))
19517 : : )
19518 : : {
19519 : 16 : gimple_seq *lseq = seq;
19520 : 16 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1979;
19521 : 16 : {
19522 : 16 : res_op->set_op (rcmp, type, 2);
19523 : 16 : res_op->ops[0] = captures[0];
19524 : 16 : res_op->ops[1] = captures[1];
19525 : 16 : res_op->resimplify (lseq, valueize);
19526 : 16 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1031, __FILE__, __LINE__, true);
19527 : 16 : return true;
19528 : : }
19529 : 0 : next_after_fail1979:;
19530 : : }
19531 : : }
19532 : : }
19533 : : }
19534 : 623595 : break;
19535 : : }
19536 : : default:;
19537 : : }
19538 : : }
19539 : : break;
19540 : : default:;
19541 : : }
19542 : : break;
19543 : : }
19544 : 648 : case LE_EXPR:
19545 : 648 : {
19546 : 648 : tree _q20 = gimple_assign_rhs1 (_a1);
19547 : 648 : _q20 = do_valueize (valueize, _q20);
19548 : 648 : tree _q21 = gimple_assign_rhs2 (_a1);
19549 : 648 : _q21 = do_valueize (valueize, _q21);
19550 : 648 : switch (TREE_CODE (_p1))
19551 : : {
19552 : 648 : case SSA_NAME:
19553 : 648 : if (gimple *_d2 = get_def (valueize, _p1))
19554 : : {
19555 : 640 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
19556 : 651 : switch (gimple_assign_rhs_code (_a2))
19557 : : {
19558 : 16 : case GE_EXPR:
19559 : 16 : {
19560 : 16 : tree _q50 = gimple_assign_rhs1 (_a2);
19561 : 16 : _q50 = do_valueize (valueize, _q50);
19562 : 16 : tree _q51 = gimple_assign_rhs2 (_a2);
19563 : 16 : _q51 = do_valueize (valueize, _q51);
19564 : 16 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19565 : : {
19566 : 16 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
19567 : : {
19568 : 16 : {
19569 : 16 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
19570 : 16 : const enum tree_code cmp1 = LE_EXPR;
19571 : 16 : const enum tree_code cmp2 = GE_EXPR;
19572 : 16 : const enum tree_code rcmp = NE_EXPR;
19573 : 16 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])) || POINTER_TYPE_P (TREE_TYPE (captures[0]))
19574 : : )
19575 : : {
19576 : 16 : gimple_seq *lseq = seq;
19577 : 16 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1980;
19578 : 16 : {
19579 : 16 : res_op->set_op (rcmp, type, 2);
19580 : 16 : res_op->ops[0] = captures[0];
19581 : 16 : res_op->ops[1] = captures[1];
19582 : 16 : res_op->resimplify (lseq, valueize);
19583 : 16 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1031, __FILE__, __LINE__, true);
19584 : 16 : return true;
19585 : : }
19586 : 0 : next_after_fail1980:;
19587 : : }
19588 : : }
19589 : : }
19590 : : }
19591 : : break;
19592 : : }
19593 : 18 : case EQ_EXPR:
19594 : 18 : {
19595 : 18 : tree _q50 = gimple_assign_rhs1 (_a2);
19596 : 18 : _q50 = do_valueize (valueize, _q50);
19597 : 18 : tree _q51 = gimple_assign_rhs2 (_a2);
19598 : 18 : _q51 = do_valueize (valueize, _q51);
19599 : 18 : if (tree_swap_operands_p (_q50, _q51))
19600 : 0 : std::swap (_q50, _q51);
19601 : 18 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19602 : : {
19603 : 16 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
19604 : : {
19605 : 16 : {
19606 : 16 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
19607 : 16 : const enum tree_code cmp1 = LE_EXPR;
19608 : 16 : const enum tree_code cmp2 = EQ_EXPR;
19609 : 16 : const enum tree_code rcmp = LT_EXPR;
19610 : 16 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])) || POINTER_TYPE_P (TREE_TYPE (captures[0]))
19611 : : )
19612 : : {
19613 : 16 : gimple_seq *lseq = seq;
19614 : 16 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1981;
19615 : 16 : {
19616 : 16 : res_op->set_op (rcmp, type, 2);
19617 : 16 : res_op->ops[0] = captures[0];
19618 : 16 : res_op->ops[1] = captures[1];
19619 : 16 : res_op->resimplify (lseq, valueize);
19620 : 16 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1031, __FILE__, __LINE__, true);
19621 : 16 : return true;
19622 : : }
19623 : 0 : next_after_fail1981:;
19624 : : }
19625 : : }
19626 : : }
19627 : : }
19628 : 623595 : break;
19629 : : }
19630 : 78 : case NE_EXPR:
19631 : 78 : {
19632 : 78 : tree _q50 = gimple_assign_rhs1 (_a2);
19633 : 78 : _q50 = do_valueize (valueize, _q50);
19634 : 78 : tree _q51 = gimple_assign_rhs2 (_a2);
19635 : 78 : _q51 = do_valueize (valueize, _q51);
19636 : 78 : if (tree_swap_operands_p (_q50, _q51))
19637 : 0 : std::swap (_q50, _q51);
19638 : 78 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19639 : : {
19640 : 16 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
19641 : : {
19642 : 16 : {
19643 : 16 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
19644 : 16 : const enum tree_code cmp1 = LE_EXPR;
19645 : 16 : const enum tree_code cmp2 = NE_EXPR;
19646 : 16 : const enum tree_code rcmp = GE_EXPR;
19647 : 16 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])) || POINTER_TYPE_P (TREE_TYPE (captures[0]))
19648 : : )
19649 : : {
19650 : 16 : gimple_seq *lseq = seq;
19651 : 16 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1982;
19652 : 16 : {
19653 : 16 : res_op->set_op (rcmp, type, 2);
19654 : 16 : res_op->ops[0] = captures[0];
19655 : 16 : res_op->ops[1] = captures[1];
19656 : 16 : res_op->resimplify (lseq, valueize);
19657 : 16 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1031, __FILE__, __LINE__, true);
19658 : 16 : return true;
19659 : : }
19660 : 0 : next_after_fail1982:;
19661 : : }
19662 : : }
19663 : : }
19664 : : }
19665 : 623595 : break;
19666 : : }
19667 : : default:;
19668 : : }
19669 : : }
19670 : : break;
19671 : : default:;
19672 : : }
19673 : : break;
19674 : : }
19675 : 3461 : case GT_EXPR:
19676 : 3461 : {
19677 : 3461 : tree _q20 = gimple_assign_rhs1 (_a1);
19678 : 3461 : _q20 = do_valueize (valueize, _q20);
19679 : 3461 : tree _q21 = gimple_assign_rhs2 (_a1);
19680 : 3461 : _q21 = do_valueize (valueize, _q21);
19681 : 3461 : switch (TREE_CODE (_p1))
19682 : : {
19683 : 3461 : case SSA_NAME:
19684 : 3461 : if (gimple *_d2 = get_def (valueize, _p1))
19685 : : {
19686 : 3437 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
19687 : 3583 : switch (gimple_assign_rhs_code (_a2))
19688 : : {
19689 : 71 : case GT_EXPR:
19690 : 71 : {
19691 : 71 : tree _q50 = gimple_assign_rhs1 (_a2);
19692 : 71 : _q50 = do_valueize (valueize, _q50);
19693 : 71 : tree _q51 = gimple_assign_rhs2 (_a2);
19694 : 71 : _q51 = do_valueize (valueize, _q51);
19695 : 71 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
19696 : : {
19697 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
19698 : : {
19699 : 0 : {
19700 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
19701 : 0 : const enum tree_code cmp1 = LT_EXPR;
19702 : 0 : const enum tree_code cmp2 = GT_EXPR;
19703 : 0 : const enum tree_code rcmp = NE_EXPR;
19704 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])) || POINTER_TYPE_P (TREE_TYPE (captures[0]))
19705 : : )
19706 : : {
19707 : 0 : gimple_seq *lseq = seq;
19708 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1983;
19709 : 0 : {
19710 : 0 : res_op->set_op (rcmp, type, 2);
19711 : 0 : res_op->ops[0] = captures[0];
19712 : 0 : res_op->ops[1] = captures[1];
19713 : 0 : res_op->resimplify (lseq, valueize);
19714 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1031, __FILE__, __LINE__, true);
19715 : 0 : return true;
19716 : : }
19717 : 0 : next_after_fail1983:;
19718 : : }
19719 : : }
19720 : 0 : {
19721 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
19722 : 0 : const enum tree_code cmp1 = LT_EXPR;
19723 : 0 : const enum tree_code cmp2 = GT_EXPR;
19724 : 0 : const enum tree_code rcmp = NE_EXPR;
19725 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])) || POINTER_TYPE_P (TREE_TYPE (captures[0]))
19726 : : )
19727 : : {
19728 : 0 : gimple_seq *lseq = seq;
19729 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1984;
19730 : 0 : {
19731 : 0 : res_op->set_op (rcmp, type, 2);
19732 : 0 : res_op->ops[0] = captures[0];
19733 : 0 : res_op->ops[1] = captures[1];
19734 : 0 : res_op->resimplify (lseq, valueize);
19735 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1031, __FILE__, __LINE__, true);
19736 : 0 : return true;
19737 : : }
19738 : 0 : next_after_fail1984:;
19739 : : }
19740 : : }
19741 : : }
19742 : : }
19743 : : break;
19744 : : }
19745 : 224 : case EQ_EXPR:
19746 : 224 : {
19747 : 224 : tree _q50 = gimple_assign_rhs1 (_a2);
19748 : 224 : _q50 = do_valueize (valueize, _q50);
19749 : 224 : tree _q51 = gimple_assign_rhs2 (_a2);
19750 : 224 : _q51 = do_valueize (valueize, _q51);
19751 : 224 : if (tree_swap_operands_p (_q50, _q51))
19752 : 4 : std::swap (_q50, _q51);
19753 : 224 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
19754 : : {
19755 : 4 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
19756 : : {
19757 : 4 : {
19758 : 4 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
19759 : 4 : const enum tree_code cmp1 = LT_EXPR;
19760 : 4 : const enum tree_code cmp2 = EQ_EXPR;
19761 : 4 : const enum tree_code rcmp = LE_EXPR;
19762 : 4 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])) || POINTER_TYPE_P (TREE_TYPE (captures[0]))
19763 : : )
19764 : : {
19765 : 4 : gimple_seq *lseq = seq;
19766 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1985;
19767 : 4 : {
19768 : 4 : res_op->set_op (rcmp, type, 2);
19769 : 4 : res_op->ops[0] = captures[0];
19770 : 4 : res_op->ops[1] = captures[1];
19771 : 4 : res_op->resimplify (lseq, valueize);
19772 : 4 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1031, __FILE__, __LINE__, true);
19773 : 4 : return true;
19774 : : }
19775 : 0 : next_after_fail1985:;
19776 : : }
19777 : : }
19778 : : }
19779 : : }
19780 : 623595 : break;
19781 : : }
19782 : 445 : case NE_EXPR:
19783 : 445 : {
19784 : 445 : tree _q50 = gimple_assign_rhs1 (_a2);
19785 : 445 : _q50 = do_valueize (valueize, _q50);
19786 : 445 : tree _q51 = gimple_assign_rhs2 (_a2);
19787 : 445 : _q51 = do_valueize (valueize, _q51);
19788 : 445 : if (tree_swap_operands_p (_q50, _q51))
19789 : 10 : std::swap (_q50, _q51);
19790 : 445 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
19791 : : {
19792 : 4 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
19793 : : {
19794 : 4 : {
19795 : 4 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
19796 : 4 : const enum tree_code cmp1 = LT_EXPR;
19797 : 4 : const enum tree_code cmp2 = NE_EXPR;
19798 : 4 : const enum tree_code rcmp = GT_EXPR;
19799 : 4 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])) || POINTER_TYPE_P (TREE_TYPE (captures[0]))
19800 : : )
19801 : : {
19802 : 4 : gimple_seq *lseq = seq;
19803 : 4 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1986;
19804 : 4 : {
19805 : 4 : res_op->set_op (rcmp, type, 2);
19806 : 4 : res_op->ops[0] = captures[0];
19807 : 4 : res_op->ops[1] = captures[1];
19808 : 4 : res_op->resimplify (lseq, valueize);
19809 : 4 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1031, __FILE__, __LINE__, true);
19810 : 4 : return true;
19811 : : }
19812 : 0 : next_after_fail1986:;
19813 : : }
19814 : : }
19815 : : }
19816 : : }
19817 : 623595 : break;
19818 : : }
19819 : 24 : case LT_EXPR:
19820 : 24 : {
19821 : 24 : tree _q50 = gimple_assign_rhs1 (_a2);
19822 : 24 : _q50 = do_valueize (valueize, _q50);
19823 : 24 : tree _q51 = gimple_assign_rhs2 (_a2);
19824 : 24 : _q51 = do_valueize (valueize, _q51);
19825 : 24 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
19826 : : {
19827 : 22 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
19828 : : {
19829 : 22 : {
19830 : 22 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
19831 : 22 : const enum tree_code cmp1 = LT_EXPR;
19832 : 22 : const enum tree_code cmp2 = GT_EXPR;
19833 : 22 : const enum tree_code rcmp = NE_EXPR;
19834 : 22 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])) || POINTER_TYPE_P (TREE_TYPE (captures[0]))
19835 : : )
19836 : : {
19837 : 22 : gimple_seq *lseq = seq;
19838 : 22 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1987;
19839 : 22 : {
19840 : 22 : res_op->set_op (rcmp, type, 2);
19841 : 22 : res_op->ops[0] = captures[0];
19842 : 22 : res_op->ops[1] = captures[1];
19843 : 22 : res_op->resimplify (lseq, valueize);
19844 : 22 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1031, __FILE__, __LINE__, true);
19845 : 22 : return true;
19846 : : }
19847 : 0 : next_after_fail1987:;
19848 : : }
19849 : : }
19850 : : }
19851 : : }
19852 : : break;
19853 : : }
19854 : : default:;
19855 : : }
19856 : : }
19857 : : break;
19858 : : default:;
19859 : : }
19860 : : break;
19861 : : }
19862 : 1387 : case GE_EXPR:
19863 : 1387 : {
19864 : 1387 : tree _q20 = gimple_assign_rhs1 (_a1);
19865 : 1387 : _q20 = do_valueize (valueize, _q20);
19866 : 1387 : tree _q21 = gimple_assign_rhs2 (_a1);
19867 : 1387 : _q21 = do_valueize (valueize, _q21);
19868 : 1387 : switch (TREE_CODE (_p1))
19869 : : {
19870 : 1387 : case SSA_NAME:
19871 : 1387 : if (gimple *_d2 = get_def (valueize, _p1))
19872 : : {
19873 : 1371 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
19874 : 1334 : switch (gimple_assign_rhs_code (_a2))
19875 : : {
19876 : 83 : case GE_EXPR:
19877 : 83 : {
19878 : 83 : tree _q50 = gimple_assign_rhs1 (_a2);
19879 : 83 : _q50 = do_valueize (valueize, _q50);
19880 : 83 : tree _q51 = gimple_assign_rhs2 (_a2);
19881 : 83 : _q51 = do_valueize (valueize, _q51);
19882 : 83 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
19883 : : {
19884 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
19885 : : {
19886 : 0 : {
19887 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
19888 : 0 : const enum tree_code cmp1 = LE_EXPR;
19889 : 0 : const enum tree_code cmp2 = GE_EXPR;
19890 : 0 : const enum tree_code rcmp = NE_EXPR;
19891 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])) || POINTER_TYPE_P (TREE_TYPE (captures[0]))
19892 : : )
19893 : : {
19894 : 0 : gimple_seq *lseq = seq;
19895 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1988;
19896 : 0 : {
19897 : 0 : res_op->set_op (rcmp, type, 2);
19898 : 0 : res_op->ops[0] = captures[0];
19899 : 0 : res_op->ops[1] = captures[1];
19900 : 0 : res_op->resimplify (lseq, valueize);
19901 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1031, __FILE__, __LINE__, true);
19902 : 0 : return true;
19903 : : }
19904 : 0 : next_after_fail1988:;
19905 : : }
19906 : : }
19907 : 0 : {
19908 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
19909 : 0 : const enum tree_code cmp1 = LE_EXPR;
19910 : 0 : const enum tree_code cmp2 = GE_EXPR;
19911 : 0 : const enum tree_code rcmp = NE_EXPR;
19912 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])) || POINTER_TYPE_P (TREE_TYPE (captures[0]))
19913 : : )
19914 : : {
19915 : 0 : gimple_seq *lseq = seq;
19916 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1989;
19917 : 0 : {
19918 : 0 : res_op->set_op (rcmp, type, 2);
19919 : 0 : res_op->ops[0] = captures[0];
19920 : 0 : res_op->ops[1] = captures[1];
19921 : 0 : res_op->resimplify (lseq, valueize);
19922 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1031, __FILE__, __LINE__, true);
19923 : 0 : return true;
19924 : : }
19925 : 0 : next_after_fail1989:;
19926 : : }
19927 : : }
19928 : : }
19929 : : }
19930 : : break;
19931 : : }
19932 : 323 : case EQ_EXPR:
19933 : 323 : {
19934 : 323 : tree _q50 = gimple_assign_rhs1 (_a2);
19935 : 323 : _q50 = do_valueize (valueize, _q50);
19936 : 323 : tree _q51 = gimple_assign_rhs2 (_a2);
19937 : 323 : _q51 = do_valueize (valueize, _q51);
19938 : 323 : if (tree_swap_operands_p (_q50, _q51))
19939 : 26 : std::swap (_q50, _q51);
19940 : 323 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
19941 : : {
19942 : 26 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
19943 : : {
19944 : 26 : {
19945 : 26 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
19946 : 26 : const enum tree_code cmp1 = LE_EXPR;
19947 : 26 : const enum tree_code cmp2 = EQ_EXPR;
19948 : 26 : const enum tree_code rcmp = LT_EXPR;
19949 : 26 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])) || POINTER_TYPE_P (TREE_TYPE (captures[0]))
19950 : : )
19951 : : {
19952 : 26 : gimple_seq *lseq = seq;
19953 : 26 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1990;
19954 : 26 : {
19955 : 26 : res_op->set_op (rcmp, type, 2);
19956 : 26 : res_op->ops[0] = captures[0];
19957 : 26 : res_op->ops[1] = captures[1];
19958 : 26 : res_op->resimplify (lseq, valueize);
19959 : 26 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1031, __FILE__, __LINE__, true);
19960 : 26 : return true;
19961 : : }
19962 : 0 : next_after_fail1990:;
19963 : : }
19964 : : }
19965 : : }
19966 : : }
19967 : 623595 : break;
19968 : : }
19969 : 428 : case NE_EXPR:
19970 : 428 : {
19971 : 428 : tree _q50 = gimple_assign_rhs1 (_a2);
19972 : 428 : _q50 = do_valueize (valueize, _q50);
19973 : 428 : tree _q51 = gimple_assign_rhs2 (_a2);
19974 : 428 : _q51 = do_valueize (valueize, _q51);
19975 : 428 : if (tree_swap_operands_p (_q50, _q51))
19976 : 41 : std::swap (_q50, _q51);
19977 : 428 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
19978 : : {
19979 : 26 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
19980 : : {
19981 : 26 : {
19982 : 26 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
19983 : 26 : const enum tree_code cmp1 = LE_EXPR;
19984 : 26 : const enum tree_code cmp2 = NE_EXPR;
19985 : 26 : const enum tree_code rcmp = GE_EXPR;
19986 : 26 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])) || POINTER_TYPE_P (TREE_TYPE (captures[0]))
19987 : : )
19988 : : {
19989 : 26 : gimple_seq *lseq = seq;
19990 : 26 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1991;
19991 : 26 : {
19992 : 26 : res_op->set_op (rcmp, type, 2);
19993 : 26 : res_op->ops[0] = captures[0];
19994 : 26 : res_op->ops[1] = captures[1];
19995 : 26 : res_op->resimplify (lseq, valueize);
19996 : 26 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1031, __FILE__, __LINE__, true);
19997 : 26 : return true;
19998 : : }
19999 : 0 : next_after_fail1991:;
20000 : : }
20001 : : }
20002 : : }
20003 : : }
20004 : 623595 : break;
20005 : : }
20006 : 14 : case LE_EXPR:
20007 : 14 : {
20008 : 14 : tree _q50 = gimple_assign_rhs1 (_a2);
20009 : 14 : _q50 = do_valueize (valueize, _q50);
20010 : 14 : tree _q51 = gimple_assign_rhs2 (_a2);
20011 : 14 : _q51 = do_valueize (valueize, _q51);
20012 : 14 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
20013 : : {
20014 : 14 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
20015 : : {
20016 : 14 : {
20017 : 14 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
20018 : 14 : const enum tree_code cmp1 = LE_EXPR;
20019 : 14 : const enum tree_code cmp2 = GE_EXPR;
20020 : 14 : const enum tree_code rcmp = NE_EXPR;
20021 : 14 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])) || POINTER_TYPE_P (TREE_TYPE (captures[0]))
20022 : : )
20023 : : {
20024 : 14 : gimple_seq *lseq = seq;
20025 : 14 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1992;
20026 : 14 : {
20027 : 14 : res_op->set_op (rcmp, type, 2);
20028 : 14 : res_op->ops[0] = captures[0];
20029 : 14 : res_op->ops[1] = captures[1];
20030 : 14 : res_op->resimplify (lseq, valueize);
20031 : 14 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1031, __FILE__, __LINE__, true);
20032 : 14 : return true;
20033 : : }
20034 : 0 : next_after_fail1992:;
20035 : : }
20036 : : }
20037 : : }
20038 : : }
20039 : : break;
20040 : : }
20041 : : default:;
20042 : : }
20043 : : }
20044 : : break;
20045 : : default:;
20046 : : }
20047 : : break;
20048 : : }
20049 : 992 : case EQ_EXPR:
20050 : 992 : {
20051 : 992 : tree _q20 = gimple_assign_rhs1 (_a1);
20052 : 992 : _q20 = do_valueize (valueize, _q20);
20053 : 992 : tree _q21 = gimple_assign_rhs2 (_a1);
20054 : 992 : _q21 = do_valueize (valueize, _q21);
20055 : 992 : if (tree_swap_operands_p (_q20, _q21))
20056 : 57 : std::swap (_q20, _q21);
20057 : 992 : switch (TREE_CODE (_p1))
20058 : : {
20059 : 992 : case SSA_NAME:
20060 : 992 : if (gimple *_d2 = get_def (valueize, _p1))
20061 : : {
20062 : 987 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
20063 : 940 : switch (gimple_assign_rhs_code (_a2))
20064 : : {
20065 : 8 : case LT_EXPR:
20066 : 8 : {
20067 : 8 : tree _q50 = gimple_assign_rhs1 (_a2);
20068 : 8 : _q50 = do_valueize (valueize, _q50);
20069 : 8 : tree _q51 = gimple_assign_rhs2 (_a2);
20070 : 8 : _q51 = do_valueize (valueize, _q51);
20071 : 8 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
20072 : : {
20073 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
20074 : : {
20075 : 0 : {
20076 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
20077 : 0 : const enum tree_code cmp1 = LT_EXPR;
20078 : 0 : const enum tree_code cmp2 = EQ_EXPR;
20079 : 0 : const enum tree_code rcmp = LE_EXPR;
20080 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])) || POINTER_TYPE_P (TREE_TYPE (captures[0]))
20081 : : )
20082 : : {
20083 : 0 : gimple_seq *lseq = seq;
20084 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1993;
20085 : 0 : {
20086 : 0 : res_op->set_op (rcmp, type, 2);
20087 : 0 : res_op->ops[0] = captures[0];
20088 : 0 : res_op->ops[1] = captures[1];
20089 : 0 : res_op->resimplify (lseq, valueize);
20090 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1031, __FILE__, __LINE__, true);
20091 : 0 : return true;
20092 : : }
20093 : 0 : next_after_fail1993:;
20094 : : }
20095 : : }
20096 : : }
20097 : : }
20098 : : break;
20099 : : }
20100 : 0 : case LE_EXPR:
20101 : 0 : {
20102 : 0 : tree _q50 = gimple_assign_rhs1 (_a2);
20103 : 0 : _q50 = do_valueize (valueize, _q50);
20104 : 0 : tree _q51 = gimple_assign_rhs2 (_a2);
20105 : 0 : _q51 = do_valueize (valueize, _q51);
20106 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
20107 : : {
20108 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
20109 : : {
20110 : 0 : {
20111 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
20112 : 0 : const enum tree_code cmp1 = LE_EXPR;
20113 : 0 : const enum tree_code cmp2 = EQ_EXPR;
20114 : 0 : const enum tree_code rcmp = LT_EXPR;
20115 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])) || POINTER_TYPE_P (TREE_TYPE (captures[0]))
20116 : : )
20117 : : {
20118 : 0 : gimple_seq *lseq = seq;
20119 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1994;
20120 : 0 : {
20121 : 0 : res_op->set_op (rcmp, type, 2);
20122 : 0 : res_op->ops[0] = captures[0];
20123 : 0 : res_op->ops[1] = captures[1];
20124 : 0 : res_op->resimplify (lseq, valueize);
20125 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1031, __FILE__, __LINE__, true);
20126 : 0 : return true;
20127 : : }
20128 : 0 : next_after_fail1994:;
20129 : : }
20130 : : }
20131 : : }
20132 : : }
20133 : : break;
20134 : : }
20135 : 108 : case GT_EXPR:
20136 : 108 : {
20137 : 108 : tree _q50 = gimple_assign_rhs1 (_a2);
20138 : 108 : _q50 = do_valueize (valueize, _q50);
20139 : 108 : tree _q51 = gimple_assign_rhs2 (_a2);
20140 : 108 : _q51 = do_valueize (valueize, _q51);
20141 : 108 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
20142 : : {
20143 : 22 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
20144 : : {
20145 : 22 : {
20146 : 22 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
20147 : 22 : const enum tree_code cmp1 = LT_EXPR;
20148 : 22 : const enum tree_code cmp2 = EQ_EXPR;
20149 : 22 : const enum tree_code rcmp = LE_EXPR;
20150 : 22 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])) || POINTER_TYPE_P (TREE_TYPE (captures[0]))
20151 : : )
20152 : : {
20153 : 22 : gimple_seq *lseq = seq;
20154 : 22 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1995;
20155 : 22 : {
20156 : 22 : res_op->set_op (rcmp, type, 2);
20157 : 22 : res_op->ops[0] = captures[0];
20158 : 22 : res_op->ops[1] = captures[1];
20159 : 22 : res_op->resimplify (lseq, valueize);
20160 : 22 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1031, __FILE__, __LINE__, true);
20161 : 22 : return true;
20162 : : }
20163 : 0 : next_after_fail1995:;
20164 : : }
20165 : : }
20166 : : }
20167 : : }
20168 : : break;
20169 : : }
20170 : 59 : case GE_EXPR:
20171 : 59 : {
20172 : 59 : tree _q50 = gimple_assign_rhs1 (_a2);
20173 : 59 : _q50 = do_valueize (valueize, _q50);
20174 : 59 : tree _q51 = gimple_assign_rhs2 (_a2);
20175 : 59 : _q51 = do_valueize (valueize, _q51);
20176 : 59 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
20177 : : {
20178 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
20179 : : {
20180 : 0 : {
20181 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
20182 : 0 : const enum tree_code cmp1 = LE_EXPR;
20183 : 0 : const enum tree_code cmp2 = EQ_EXPR;
20184 : 0 : const enum tree_code rcmp = LT_EXPR;
20185 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])) || POINTER_TYPE_P (TREE_TYPE (captures[0]))
20186 : : )
20187 : : {
20188 : 0 : gimple_seq *lseq = seq;
20189 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1996;
20190 : 0 : {
20191 : 0 : res_op->set_op (rcmp, type, 2);
20192 : 0 : res_op->ops[0] = captures[0];
20193 : 0 : res_op->ops[1] = captures[1];
20194 : 0 : res_op->resimplify (lseq, valueize);
20195 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1031, __FILE__, __LINE__, true);
20196 : 0 : return true;
20197 : : }
20198 : 0 : next_after_fail1996:;
20199 : : }
20200 : : }
20201 : : }
20202 : : }
20203 : : break;
20204 : : }
20205 : : default:;
20206 : : }
20207 : : }
20208 : : break;
20209 : : default:;
20210 : : }
20211 : 623595 : break;
20212 : : }
20213 : 1542 : case NE_EXPR:
20214 : 1542 : {
20215 : 1542 : tree _q20 = gimple_assign_rhs1 (_a1);
20216 : 1542 : _q20 = do_valueize (valueize, _q20);
20217 : 1542 : tree _q21 = gimple_assign_rhs2 (_a1);
20218 : 1542 : _q21 = do_valueize (valueize, _q21);
20219 : 1542 : if (tree_swap_operands_p (_q20, _q21))
20220 : 65 : std::swap (_q20, _q21);
20221 : 1542 : switch (TREE_CODE (_p1))
20222 : : {
20223 : 1542 : case SSA_NAME:
20224 : 1542 : if (gimple *_d2 = get_def (valueize, _p1))
20225 : : {
20226 : 1536 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
20227 : 1514 : switch (gimple_assign_rhs_code (_a2))
20228 : : {
20229 : 0 : case LT_EXPR:
20230 : 0 : {
20231 : 0 : tree _q50 = gimple_assign_rhs1 (_a2);
20232 : 0 : _q50 = do_valueize (valueize, _q50);
20233 : 0 : tree _q51 = gimple_assign_rhs2 (_a2);
20234 : 0 : _q51 = do_valueize (valueize, _q51);
20235 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
20236 : : {
20237 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
20238 : : {
20239 : 0 : {
20240 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
20241 : 0 : const enum tree_code cmp1 = LT_EXPR;
20242 : 0 : const enum tree_code cmp2 = NE_EXPR;
20243 : 0 : const enum tree_code rcmp = GT_EXPR;
20244 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])) || POINTER_TYPE_P (TREE_TYPE (captures[0]))
20245 : : )
20246 : : {
20247 : 0 : gimple_seq *lseq = seq;
20248 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1997;
20249 : 0 : {
20250 : 0 : res_op->set_op (rcmp, type, 2);
20251 : 0 : res_op->ops[0] = captures[0];
20252 : 0 : res_op->ops[1] = captures[1];
20253 : 0 : res_op->resimplify (lseq, valueize);
20254 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1031, __FILE__, __LINE__, true);
20255 : 0 : return true;
20256 : : }
20257 : 0 : next_after_fail1997:;
20258 : : }
20259 : : }
20260 : : }
20261 : : }
20262 : : break;
20263 : : }
20264 : 107 : case LE_EXPR:
20265 : 107 : {
20266 : 107 : tree _q50 = gimple_assign_rhs1 (_a2);
20267 : 107 : _q50 = do_valueize (valueize, _q50);
20268 : 107 : tree _q51 = gimple_assign_rhs2 (_a2);
20269 : 107 : _q51 = do_valueize (valueize, _q51);
20270 : 107 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
20271 : : {
20272 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
20273 : : {
20274 : 0 : {
20275 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
20276 : 0 : const enum tree_code cmp1 = LE_EXPR;
20277 : 0 : const enum tree_code cmp2 = NE_EXPR;
20278 : 0 : const enum tree_code rcmp = GE_EXPR;
20279 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])) || POINTER_TYPE_P (TREE_TYPE (captures[0]))
20280 : : )
20281 : : {
20282 : 0 : gimple_seq *lseq = seq;
20283 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1998;
20284 : 0 : {
20285 : 0 : res_op->set_op (rcmp, type, 2);
20286 : 0 : res_op->ops[0] = captures[0];
20287 : 0 : res_op->ops[1] = captures[1];
20288 : 0 : res_op->resimplify (lseq, valueize);
20289 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1031, __FILE__, __LINE__, true);
20290 : 0 : return true;
20291 : : }
20292 : 0 : next_after_fail1998:;
20293 : : }
20294 : : }
20295 : : }
20296 : : }
20297 : : break;
20298 : : }
20299 : 195 : case GT_EXPR:
20300 : 195 : {
20301 : 195 : tree _q50 = gimple_assign_rhs1 (_a2);
20302 : 195 : _q50 = do_valueize (valueize, _q50);
20303 : 195 : tree _q51 = gimple_assign_rhs2 (_a2);
20304 : 195 : _q51 = do_valueize (valueize, _q51);
20305 : 195 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
20306 : : {
20307 : 22 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
20308 : : {
20309 : 22 : {
20310 : 22 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
20311 : 22 : const enum tree_code cmp1 = LT_EXPR;
20312 : 22 : const enum tree_code cmp2 = NE_EXPR;
20313 : 22 : const enum tree_code rcmp = GT_EXPR;
20314 : 22 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])) || POINTER_TYPE_P (TREE_TYPE (captures[0]))
20315 : : )
20316 : : {
20317 : 22 : gimple_seq *lseq = seq;
20318 : 22 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail1999;
20319 : 22 : {
20320 : 22 : res_op->set_op (rcmp, type, 2);
20321 : 22 : res_op->ops[0] = captures[0];
20322 : 22 : res_op->ops[1] = captures[1];
20323 : 22 : res_op->resimplify (lseq, valueize);
20324 : 22 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1031, __FILE__, __LINE__, true);
20325 : 22 : return true;
20326 : : }
20327 : 0 : next_after_fail1999:;
20328 : : }
20329 : : }
20330 : : }
20331 : : }
20332 : : break;
20333 : : }
20334 : 8 : case GE_EXPR:
20335 : 8 : {
20336 : 8 : tree _q50 = gimple_assign_rhs1 (_a2);
20337 : 8 : _q50 = do_valueize (valueize, _q50);
20338 : 8 : tree _q51 = gimple_assign_rhs2 (_a2);
20339 : 8 : _q51 = do_valueize (valueize, _q51);
20340 : 8 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
20341 : : {
20342 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
20343 : : {
20344 : 0 : {
20345 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
20346 : 0 : const enum tree_code cmp1 = LE_EXPR;
20347 : 0 : const enum tree_code cmp2 = NE_EXPR;
20348 : 0 : const enum tree_code rcmp = GE_EXPR;
20349 : 0 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0])) || POINTER_TYPE_P (TREE_TYPE (captures[0]))
20350 : : )
20351 : : {
20352 : 0 : gimple_seq *lseq = seq;
20353 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2000;
20354 : 0 : {
20355 : 0 : res_op->set_op (rcmp, type, 2);
20356 : 0 : res_op->ops[0] = captures[0];
20357 : 0 : res_op->ops[1] = captures[1];
20358 : 0 : res_op->resimplify (lseq, valueize);
20359 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1031, __FILE__, __LINE__, true);
20360 : 0 : return true;
20361 : : }
20362 : 0 : next_after_fail2000:;
20363 : : }
20364 : : }
20365 : : }
20366 : : }
20367 : : break;
20368 : : }
20369 : : default:;
20370 : : }
20371 : : }
20372 : : break;
20373 : : default:;
20374 : : }
20375 : 623595 : break;
20376 : : }
20377 : 6943 : case MULT_EXPR:
20378 : 6943 : {
20379 : 6943 : tree _q20 = gimple_assign_rhs1 (_a1);
20380 : 6943 : _q20 = do_valueize (valueize, _q20);
20381 : 6943 : tree _q21 = gimple_assign_rhs2 (_a1);
20382 : 6943 : _q21 = do_valueize (valueize, _q21);
20383 : 6943 : if (tree_swap_operands_p (_q20, _q21))
20384 : 58 : std::swap (_q20, _q21);
20385 : 6943 : switch (TREE_CODE (_q21))
20386 : : {
20387 : 6052 : case INTEGER_CST:
20388 : 6052 : {
20389 : 6052 : switch (TREE_CODE (_p1))
20390 : : {
20391 : 5626 : case SSA_NAME:
20392 : 5626 : if (gimple *_d2 = get_def (valueize, _p1))
20393 : : {
20394 : 5209 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
20395 : 3944 : switch (gimple_assign_rhs_code (_a2))
20396 : : {
20397 : 407 : case MULT_EXPR:
20398 : 407 : {
20399 : 407 : tree _q50 = gimple_assign_rhs1 (_a2);
20400 : 407 : _q50 = do_valueize (valueize, _q50);
20401 : 407 : tree _q51 = gimple_assign_rhs2 (_a2);
20402 : 407 : _q51 = do_valueize (valueize, _q51);
20403 : 407 : if (tree_swap_operands_p (_q50, _q51))
20404 : 0 : std::swap (_q50, _q51);
20405 : 407 : switch (TREE_CODE (_q51))
20406 : : {
20407 : 407 : case INTEGER_CST:
20408 : 407 : {
20409 : 407 : {
20410 : 407 : tree captures[8] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1, _p1, _q50, _q51 };
20411 : 407 : if (gimple_simplify_42 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
20412 : 5 : return true;
20413 : : }
20414 : 402 : break;
20415 : : }
20416 : : default:;
20417 : : }
20418 : 6047 : break;
20419 : : }
20420 : 54 : case LSHIFT_EXPR:
20421 : 54 : {
20422 : 54 : tree _q50 = gimple_assign_rhs1 (_a2);
20423 : 54 : _q50 = do_valueize (valueize, _q50);
20424 : 54 : tree _q51 = gimple_assign_rhs2 (_a2);
20425 : 54 : _q51 = do_valueize (valueize, _q51);
20426 : 54 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
20427 : : {
20428 : 0 : switch (TREE_CODE (_q51))
20429 : : {
20430 : 0 : case INTEGER_CST:
20431 : 0 : {
20432 : 0 : {
20433 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21, _p1, _q51 };
20434 : 0 : if (gimple_simplify_43 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
20435 : 0 : return true;
20436 : : }
20437 : 0 : break;
20438 : : }
20439 : : default:;
20440 : : }
20441 : : }
20442 : : break;
20443 : : }
20444 : : default:;
20445 : : }
20446 : : }
20447 : : break;
20448 : 6047 : default:;
20449 : : }
20450 : 6047 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
20451 : : {
20452 : 85 : {
20453 : 85 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p0, _q20, _q21 };
20454 : 85 : if (gimple_simplify_44 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
20455 : 12 : return true;
20456 : : }
20457 : : }
20458 : : break;
20459 : : }
20460 : 6926 : default:;
20461 : : }
20462 : 6926 : switch (TREE_CODE (_q20))
20463 : : {
20464 : 6926 : case SSA_NAME:
20465 : 6926 : if (gimple *_d2 = get_def (valueize, _q20))
20466 : : {
20467 : 6467 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
20468 : 4691 : switch (gimple_assign_rhs_code (_a2))
20469 : : {
20470 : 2116 : case BIT_XOR_EXPR:
20471 : 2116 : {
20472 : 2116 : tree _q30 = gimple_assign_rhs1 (_a2);
20473 : 2116 : _q30 = do_valueize (valueize, _q30);
20474 : 2116 : tree _q31 = gimple_assign_rhs2 (_a2);
20475 : 2116 : _q31 = do_valueize (valueize, _q31);
20476 : 2116 : if (tree_swap_operands_p (_q30, _q31))
20477 : 165 : std::swap (_q30, _q31);
20478 : 2116 : if (gimple_zero_one_valued_p (_q21, valueize))
20479 : : {
20480 : 0 : if ((_p1 == _q30 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q30, 0) && types_match (_p1, _q30)))
20481 : : {
20482 : 0 : {
20483 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q30, _q31, _q21 };
20484 : 0 : if (gimple_simplify_45 (res_op, seq, valueize, type, captures))
20485 : 0 : return true;
20486 : : }
20487 : : }
20488 : 0 : if ((_p1 == _q31 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q31, 0) && types_match (_p1, _q31)))
20489 : : {
20490 : 0 : {
20491 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q31, _q30, _q21 };
20492 : 0 : if (gimple_simplify_45 (res_op, seq, valueize, type, captures))
20493 : 0 : return true;
20494 : : }
20495 : : }
20496 : : }
20497 : 6926 : break;
20498 : : }
20499 : : default:;
20500 : : }
20501 : : }
20502 : : break;
20503 : 6926 : default:;
20504 : : }
20505 : 6926 : if (gimple_zero_one_valued_p (_q20, valueize))
20506 : : {
20507 : 877 : switch (TREE_CODE (_q21))
20508 : : {
20509 : 108 : case SSA_NAME:
20510 : 108 : if (gimple *_d2 = get_def (valueize, _q21))
20511 : : {
20512 : 102 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
20513 : 41 : switch (gimple_assign_rhs_code (_a2))
20514 : : {
20515 : 22 : case BIT_XOR_EXPR:
20516 : 22 : {
20517 : 22 : tree _q40 = gimple_assign_rhs1 (_a2);
20518 : 22 : _q40 = do_valueize (valueize, _q40);
20519 : 22 : tree _q41 = gimple_assign_rhs2 (_a2);
20520 : 22 : _q41 = do_valueize (valueize, _q41);
20521 : 22 : if (tree_swap_operands_p (_q40, _q41))
20522 : 0 : std::swap (_q40, _q41);
20523 : 22 : if ((_p1 == _q40 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q40, 0) && types_match (_p1, _q40)))
20524 : : {
20525 : 6 : {
20526 : 6 : tree captures[3] ATTRIBUTE_UNUSED = { _q40, _q41, _q20 };
20527 : 6 : if (gimple_simplify_45 (res_op, seq, valueize, type, captures))
20528 : 6 : return true;
20529 : : }
20530 : : }
20531 : 16 : if ((_p1 == _q41 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q41, 0) && types_match (_p1, _q41)))
20532 : : {
20533 : 0 : {
20534 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _q41, _q40, _q20 };
20535 : 0 : if (gimple_simplify_45 (res_op, seq, valueize, type, captures))
20536 : 0 : return true;
20537 : : }
20538 : : }
20539 : 623595 : break;
20540 : : }
20541 : : default:;
20542 : : }
20543 : : }
20544 : : break;
20545 : : default:;
20546 : : }
20547 : : }
20548 : 623595 : break;
20549 : : }
20550 : 19062 : case LSHIFT_EXPR:
20551 : 19062 : {
20552 : 19062 : tree _q20 = gimple_assign_rhs1 (_a1);
20553 : 19062 : _q20 = do_valueize (valueize, _q20);
20554 : 19062 : tree _q21 = gimple_assign_rhs2 (_a1);
20555 : 19062 : _q21 = do_valueize (valueize, _q21);
20556 : 19062 : switch (TREE_CODE (_q21))
20557 : : {
20558 : 15948 : case INTEGER_CST:
20559 : 15948 : {
20560 : 15948 : switch (TREE_CODE (_p1))
20561 : : {
20562 : 9262 : case SSA_NAME:
20563 : 9262 : if (gimple *_d2 = get_def (valueize, _p1))
20564 : : {
20565 : 8947 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
20566 : 8442 : switch (gimple_assign_rhs_code (_a2))
20567 : : {
20568 : 28 : case MULT_EXPR:
20569 : 28 : {
20570 : 28 : tree _q50 = gimple_assign_rhs1 (_a2);
20571 : 28 : _q50 = do_valueize (valueize, _q50);
20572 : 28 : tree _q51 = gimple_assign_rhs2 (_a2);
20573 : 28 : _q51 = do_valueize (valueize, _q51);
20574 : 28 : if (tree_swap_operands_p (_q50, _q51))
20575 : 0 : std::swap (_q50, _q51);
20576 : 28 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
20577 : : {
20578 : 0 : switch (TREE_CODE (_q51))
20579 : : {
20580 : 0 : case INTEGER_CST:
20581 : 0 : {
20582 : 0 : {
20583 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _p1, _q20, _q51, _p0, _q21 };
20584 : 0 : if (gimple_simplify_43 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
20585 : 0 : return true;
20586 : : }
20587 : 0 : break;
20588 : : }
20589 : : default:;
20590 : : }
20591 : : }
20592 : 15948 : break;
20593 : : }
20594 : : default:;
20595 : : }
20596 : : }
20597 : : break;
20598 : 15948 : default:;
20599 : : }
20600 : 15948 : {
20601 : 15948 : tree _p1_pops[1];
20602 : 15948 : if (gimple_nop_convert (_p1, _p1_pops, valueize))
20603 : : {
20604 : 129 : tree _q50 = _p1_pops[0];
20605 : 129 : switch (TREE_CODE (_q50))
20606 : : {
20607 : 129 : case SSA_NAME:
20608 : 129 : if (gimple *_d2 = get_def (valueize, _q50))
20609 : : {
20610 : 129 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
20611 : 117 : switch (gimple_assign_rhs_code (_a2))
20612 : : {
20613 : 0 : case MULT_EXPR:
20614 : 0 : {
20615 : 0 : tree _q60 = gimple_assign_rhs1 (_a2);
20616 : 0 : _q60 = do_valueize (valueize, _q60);
20617 : 0 : tree _q61 = gimple_assign_rhs2 (_a2);
20618 : 0 : _q61 = do_valueize (valueize, _q61);
20619 : 0 : if (tree_swap_operands_p (_q60, _q61))
20620 : 0 : std::swap (_q60, _q61);
20621 : 0 : {
20622 : 0 : tree _q60_pops[1];
20623 : 0 : if (gimple_nop_convert (_q60, _q60_pops, valueize))
20624 : : {
20625 : 0 : tree _q70 = _q60_pops[0];
20626 : 0 : if ((_q70 == _q20 && ! TREE_SIDE_EFFECTS (_q70)) || (operand_equal_p (_q70, _q20, 0) && types_match (_q70, _q20)))
20627 : : {
20628 : 0 : switch (TREE_CODE (_q61))
20629 : : {
20630 : 0 : case INTEGER_CST:
20631 : 0 : {
20632 : 0 : {
20633 : 0 : tree captures[6] ATTRIBUTE_UNUSED = { _p1, _q50, _q20, _q61, _p0, _q21 };
20634 : 0 : if (gimple_simplify_39 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
20635 : 0 : return true;
20636 : : }
20637 : 0 : break;
20638 : : }
20639 : : default:;
20640 : : }
20641 : : }
20642 : : }
20643 : : }
20644 : 0 : break;
20645 : : }
20646 : : default:;
20647 : : }
20648 : : }
20649 : : break;
20650 : : default:;
20651 : : }
20652 : : }
20653 : : }
20654 : 15948 : break;
20655 : : }
20656 : : default:;
20657 : : }
20658 : : break;
20659 : : }
20660 : : default:;
20661 : : }
20662 : : }
20663 : : break;
20664 : 623595 : default:;
20665 : : }
20666 : 623595 : switch (TREE_CODE (_p1))
20667 : : {
20668 : 493790 : case SSA_NAME:
20669 : 493790 : if (gimple *_d1 = get_def (valueize, _p1))
20670 : : {
20671 : 404961 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
20672 : 451077 : switch (gimple_assign_rhs_code (_a1))
20673 : : {
20674 : 7249 : case MULT_EXPR:
20675 : 7249 : {
20676 : 7249 : tree _q30 = gimple_assign_rhs1 (_a1);
20677 : 7249 : _q30 = do_valueize (valueize, _q30);
20678 : 7249 : tree _q31 = gimple_assign_rhs2 (_a1);
20679 : 7249 : _q31 = do_valueize (valueize, _q31);
20680 : 7249 : if (tree_swap_operands_p (_q30, _q31))
20681 : 107 : std::swap (_q30, _q31);
20682 : 7249 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
20683 : : {
20684 : 121 : switch (TREE_CODE (_q31))
20685 : : {
20686 : 121 : case INTEGER_CST:
20687 : 121 : {
20688 : 121 : {
20689 : 121 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _p1, _p0, _q31 };
20690 : 121 : if (gimple_simplify_44 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
20691 : 0 : return true;
20692 : : }
20693 : 121 : break;
20694 : : }
20695 : : default:;
20696 : : }
20697 : : }
20698 : 623595 : break;
20699 : : }
20700 : : default:;
20701 : : }
20702 : : }
20703 : : break;
20704 : 623595 : default:;
20705 : : }
20706 : 623595 : {
20707 : 623595 : tree _p1_pops[1];
20708 : 623595 : if (gimple_nop_convert (_p1, _p1_pops, valueize))
20709 : : {
20710 : 6639 : tree _q30 = _p1_pops[0];
20711 : 6639 : switch (TREE_CODE (_q30))
20712 : : {
20713 : 6621 : case SSA_NAME:
20714 : 6621 : if (gimple *_d1 = get_def (valueize, _q30))
20715 : : {
20716 : 6228 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
20717 : 5064 : switch (gimple_assign_rhs_code (_a1))
20718 : : {
20719 : 122 : case MULT_EXPR:
20720 : 122 : {
20721 : 122 : tree _q40 = gimple_assign_rhs1 (_a1);
20722 : 122 : _q40 = do_valueize (valueize, _q40);
20723 : 122 : tree _q41 = gimple_assign_rhs2 (_a1);
20724 : 122 : _q41 = do_valueize (valueize, _q41);
20725 : 122 : if (tree_swap_operands_p (_q40, _q41))
20726 : 0 : std::swap (_q40, _q41);
20727 : 122 : {
20728 : 122 : tree _q40_pops[1];
20729 : 122 : if (gimple_nop_convert (_q40, _q40_pops, valueize))
20730 : : {
20731 : 44 : tree _q50 = _q40_pops[0];
20732 : 44 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
20733 : : {
20734 : 0 : switch (TREE_CODE (_q41))
20735 : : {
20736 : 0 : case INTEGER_CST:
20737 : 0 : {
20738 : 0 : {
20739 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q30, _p0, _q41 };
20740 : 0 : if (gimple_simplify_40 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
20741 : 0 : return true;
20742 : : }
20743 : 0 : break;
20744 : : }
20745 : : default:;
20746 : : }
20747 : : }
20748 : : }
20749 : : }
20750 : 122 : break;
20751 : : }
20752 : : default:;
20753 : : }
20754 : : }
20755 : : break;
20756 : : default:;
20757 : : }
20758 : : }
20759 : : }
20760 : 623595 : switch (TREE_CODE (_p0))
20761 : : {
20762 : 612346 : case SSA_NAME:
20763 : 612346 : if (gimple *_d1 = get_def (valueize, _p0))
20764 : : {
20765 : 485181 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
20766 : 548784 : switch (gimple_assign_rhs_code (_a1))
20767 : : {
20768 : 19062 : case LSHIFT_EXPR:
20769 : 19062 : {
20770 : 19062 : tree _q20 = gimple_assign_rhs1 (_a1);
20771 : 19062 : _q20 = do_valueize (valueize, _q20);
20772 : 19062 : tree _q21 = gimple_assign_rhs2 (_a1);
20773 : 19062 : _q21 = do_valueize (valueize, _q21);
20774 : 19062 : switch (TREE_CODE (_q21))
20775 : : {
20776 : 15948 : case INTEGER_CST:
20777 : 15948 : {
20778 : 15948 : switch (TREE_CODE (_p1))
20779 : : {
20780 : 9262 : case SSA_NAME:
20781 : 9262 : if (gimple *_d2 = get_def (valueize, _p1))
20782 : : {
20783 : 8947 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
20784 : 8442 : switch (gimple_assign_rhs_code (_a2))
20785 : : {
20786 : 126 : case LSHIFT_EXPR:
20787 : 126 : {
20788 : 126 : tree _q50 = gimple_assign_rhs1 (_a2);
20789 : 126 : _q50 = do_valueize (valueize, _q50);
20790 : 126 : tree _q51 = gimple_assign_rhs2 (_a2);
20791 : 126 : _q51 = do_valueize (valueize, _q51);
20792 : 126 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
20793 : : {
20794 : 3 : switch (TREE_CODE (_q51))
20795 : : {
20796 : 3 : case INTEGER_CST:
20797 : 3 : {
20798 : 3 : {
20799 : 3 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _p1, _q51 };
20800 : 3 : if (gimple_simplify_46 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
20801 : 2 : return true;
20802 : : }
20803 : 1 : break;
20804 : : }
20805 : : default:;
20806 : : }
20807 : : }
20808 : : break;
20809 : : }
20810 : : default:;
20811 : : }
20812 : : }
20813 : : break;
20814 : 15946 : default:;
20815 : : }
20816 : 15946 : if ((_p1 == _q20 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _q20, 0) && types_match (_p1, _q20)))
20817 : : {
20818 : 103 : {
20819 : 103 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q21 };
20820 : 103 : if (gimple_simplify_47 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
20821 : 2 : return true;
20822 : : }
20823 : : }
20824 : : break;
20825 : : }
20826 : : default:;
20827 : : }
20828 : : break;
20829 : : }
20830 : : default:;
20831 : : }
20832 : : }
20833 : : break;
20834 : 623591 : default:;
20835 : : }
20836 : 623591 : switch (TREE_CODE (_p1))
20837 : : {
20838 : 493786 : case SSA_NAME:
20839 : 493786 : if (gimple *_d1 = get_def (valueize, _p1))
20840 : : {
20841 : 404958 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
20842 : 451074 : switch (gimple_assign_rhs_code (_a1))
20843 : : {
20844 : 7571 : case LSHIFT_EXPR:
20845 : 7571 : {
20846 : 7571 : tree _q30 = gimple_assign_rhs1 (_a1);
20847 : 7571 : _q30 = do_valueize (valueize, _q30);
20848 : 7571 : tree _q31 = gimple_assign_rhs2 (_a1);
20849 : 7571 : _q31 = do_valueize (valueize, _q31);
20850 : 7571 : if ((_q30 == _p0 && ! TREE_SIDE_EFFECTS (_q30)) || (operand_equal_p (_q30, _p0, 0) && types_match (_q30, _p0)))
20851 : : {
20852 : 1036 : switch (TREE_CODE (_q31))
20853 : : {
20854 : 1021 : case INTEGER_CST:
20855 : 1021 : {
20856 : 1021 : {
20857 : 1021 : tree captures[3] ATTRIBUTE_UNUSED = { _p1, _p0, _q31 };
20858 : 1021 : if (gimple_simplify_47 (res_op, seq, valueize, type, captures, BIT_XOR_EXPR))
20859 : 0 : return true;
20860 : : }
20861 : 1021 : break;
20862 : : }
20863 : : default:;
20864 : : }
20865 : : }
20866 : : break;
20867 : : }
20868 : : default:;
20869 : : }
20870 : : }
20871 : : break;
20872 : 623591 : default:;
20873 : : }
20874 : 623591 : switch (TREE_CODE (_p0))
20875 : : {
20876 : 612342 : case SSA_NAME:
20877 : 612342 : if (gimple *_d1 = get_def (valueize, _p0))
20878 : : {
20879 : 485177 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
20880 : 548780 : switch (gimple_assign_rhs_code (_a1))
20881 : : {
20882 : 42 : case MIN_EXPR:
20883 : 42 : {
20884 : 42 : tree _q20 = gimple_assign_rhs1 (_a1);
20885 : 42 : _q20 = do_valueize (valueize, _q20);
20886 : 42 : tree _q21 = gimple_assign_rhs2 (_a1);
20887 : 42 : _q21 = do_valueize (valueize, _q21);
20888 : 42 : if (tree_swap_operands_p (_q20, _q21))
20889 : 0 : std::swap (_q20, _q21);
20890 : 42 : switch (TREE_CODE (_p1))
20891 : : {
20892 : 0 : case SSA_NAME:
20893 : 0 : if (gimple *_d2 = get_def (valueize, _p1))
20894 : : {
20895 : 0 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
20896 : 0 : switch (gimple_assign_rhs_code (_a2))
20897 : : {
20898 : 0 : case MAX_EXPR:
20899 : 0 : {
20900 : 0 : tree _q50 = gimple_assign_rhs1 (_a2);
20901 : 0 : _q50 = do_valueize (valueize, _q50);
20902 : 0 : tree _q51 = gimple_assign_rhs2 (_a2);
20903 : 0 : _q51 = do_valueize (valueize, _q51);
20904 : 0 : if (tree_swap_operands_p (_q50, _q51))
20905 : 0 : std::swap (_q50, _q51);
20906 : 0 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
20907 : : {
20908 : 0 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
20909 : : {
20910 : 0 : {
20911 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
20912 : 0 : if (!HONOR_NANS (captures[0])
20913 : : )
20914 : : {
20915 : 0 : gimple_seq *lseq = seq;
20916 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2001;
20917 : 0 : {
20918 : 0 : res_op->set_op (BIT_XOR_EXPR, type, 2);
20919 : 0 : res_op->ops[0] = captures[0];
20920 : 0 : res_op->ops[1] = captures[1];
20921 : 0 : res_op->resimplify (lseq, valueize);
20922 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1032, __FILE__, __LINE__, true);
20923 : 0 : return true;
20924 : : }
20925 : 0 : next_after_fail2001:;
20926 : : }
20927 : : }
20928 : : }
20929 : : }
20930 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
20931 : : {
20932 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
20933 : : {
20934 : 0 : {
20935 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q21, _q20 };
20936 : 0 : if (!HONOR_NANS (captures[0])
20937 : : )
20938 : : {
20939 : 0 : gimple_seq *lseq = seq;
20940 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2002;
20941 : 0 : {
20942 : 0 : res_op->set_op (BIT_XOR_EXPR, type, 2);
20943 : 0 : res_op->ops[0] = captures[0];
20944 : 0 : res_op->ops[1] = captures[1];
20945 : 0 : res_op->resimplify (lseq, valueize);
20946 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1032, __FILE__, __LINE__, true);
20947 : 0 : return true;
20948 : : }
20949 : 0 : next_after_fail2002:;
20950 : : }
20951 : : }
20952 : : }
20953 : : }
20954 : 623589 : break;
20955 : : }
20956 : : default:;
20957 : : }
20958 : : }
20959 : : break;
20960 : : default:;
20961 : : }
20962 : 623589 : break;
20963 : : }
20964 : 4 : case MAX_EXPR:
20965 : 4 : {
20966 : 4 : tree _q20 = gimple_assign_rhs1 (_a1);
20967 : 4 : _q20 = do_valueize (valueize, _q20);
20968 : 4 : tree _q21 = gimple_assign_rhs2 (_a1);
20969 : 4 : _q21 = do_valueize (valueize, _q21);
20970 : 4 : if (tree_swap_operands_p (_q20, _q21))
20971 : 0 : std::swap (_q20, _q21);
20972 : 4 : switch (TREE_CODE (_p1))
20973 : : {
20974 : 4 : case SSA_NAME:
20975 : 4 : if (gimple *_d2 = get_def (valueize, _p1))
20976 : : {
20977 : 4 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
20978 : 4 : switch (gimple_assign_rhs_code (_a2))
20979 : : {
20980 : 2 : case MIN_EXPR:
20981 : 2 : {
20982 : 2 : tree _q50 = gimple_assign_rhs1 (_a2);
20983 : 2 : _q50 = do_valueize (valueize, _q50);
20984 : 2 : tree _q51 = gimple_assign_rhs2 (_a2);
20985 : 2 : _q51 = do_valueize (valueize, _q51);
20986 : 2 : if (tree_swap_operands_p (_q50, _q51))
20987 : 0 : std::swap (_q50, _q51);
20988 : 2 : if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q20, 0) && types_match (_q50, _q20)))
20989 : : {
20990 : 2 : if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q21, 0) && types_match (_q51, _q21)))
20991 : : {
20992 : 2 : {
20993 : 2 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
20994 : 2 : if (!HONOR_NANS (captures[0])
20995 : : )
20996 : : {
20997 : 2 : gimple_seq *lseq = seq;
20998 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2003;
20999 : 2 : {
21000 : 2 : res_op->set_op (BIT_XOR_EXPR, type, 2);
21001 : 2 : res_op->ops[0] = captures[0];
21002 : 2 : res_op->ops[1] = captures[1];
21003 : 2 : res_op->resimplify (lseq, valueize);
21004 : 2 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1032, __FILE__, __LINE__, true);
21005 : 2 : return true;
21006 : : }
21007 : 0 : next_after_fail2003:;
21008 : : }
21009 : : }
21010 : : }
21011 : : }
21012 : 0 : if ((_q50 == _q21 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _q21, 0) && types_match (_q50, _q21)))
21013 : : {
21014 : 0 : if ((_q51 == _q20 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _q20, 0) && types_match (_q51, _q20)))
21015 : : {
21016 : 0 : {
21017 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
21018 : 0 : if (!HONOR_NANS (captures[0])
21019 : : )
21020 : : {
21021 : 0 : gimple_seq *lseq = seq;
21022 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2004;
21023 : 0 : {
21024 : 0 : res_op->set_op (BIT_XOR_EXPR, type, 2);
21025 : 0 : res_op->ops[0] = captures[0];
21026 : 0 : res_op->ops[1] = captures[1];
21027 : 0 : res_op->resimplify (lseq, valueize);
21028 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1032, __FILE__, __LINE__, true);
21029 : 0 : return true;
21030 : : }
21031 : 0 : next_after_fail2004:;
21032 : : }
21033 : : }
21034 : : }
21035 : : }
21036 : 623589 : break;
21037 : : }
21038 : : default:;
21039 : : }
21040 : : }
21041 : : break;
21042 : : default:;
21043 : : }
21044 : 623589 : break;
21045 : : }
21046 : : default:;
21047 : : }
21048 : : }
21049 : : break;
21050 : 623589 : default:;
21051 : : }
21052 : 623589 : switch (TREE_CODE (_p1))
21053 : : {
21054 : 493784 : case SSA_NAME:
21055 : 493784 : if (gimple *_d1 = get_def (valueize, _p1))
21056 : : {
21057 : 404956 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
21058 : 451072 : switch (gimple_assign_rhs_code (_a1))
21059 : : {
21060 : 7249 : case MULT_EXPR:
21061 : 7249 : {
21062 : 7249 : tree _q30 = gimple_assign_rhs1 (_a1);
21063 : 7249 : _q30 = do_valueize (valueize, _q30);
21064 : 7249 : tree _q31 = gimple_assign_rhs2 (_a1);
21065 : 7249 : _q31 = do_valueize (valueize, _q31);
21066 : 7249 : if (tree_swap_operands_p (_q30, _q31))
21067 : 107 : std::swap (_q30, _q31);
21068 : 7249 : switch (TREE_CODE (_q30))
21069 : : {
21070 : 7249 : case SSA_NAME:
21071 : 7249 : if (gimple *_d2 = get_def (valueize, _q30))
21072 : : {
21073 : 6581 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
21074 : 3559 : switch (gimple_assign_rhs_code (_a2))
21075 : : {
21076 : 966 : case BIT_XOR_EXPR:
21077 : 966 : {
21078 : 966 : tree _q40 = gimple_assign_rhs1 (_a2);
21079 : 966 : _q40 = do_valueize (valueize, _q40);
21080 : 966 : tree _q41 = gimple_assign_rhs2 (_a2);
21081 : 966 : _q41 = do_valueize (valueize, _q41);
21082 : 966 : if (tree_swap_operands_p (_q40, _q41))
21083 : 108 : std::swap (_q40, _q41);
21084 : 966 : if ((_q40 == _p0 && ! TREE_SIDE_EFFECTS (_q40)) || (operand_equal_p (_q40, _p0, 0) && types_match (_q40, _p0)))
21085 : : {
21086 : 0 : if (gimple_zero_one_valued_p (_q31, valueize))
21087 : : {
21088 : 0 : {
21089 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q41, _q31 };
21090 : 0 : if (gimple_simplify_45 (res_op, seq, valueize, type, captures))
21091 : 0 : return true;
21092 : : }
21093 : : }
21094 : : }
21095 : 966 : if ((_q41 == _p0 && ! TREE_SIDE_EFFECTS (_q41)) || (operand_equal_p (_q41, _p0, 0) && types_match (_q41, _p0)))
21096 : : {
21097 : 0 : if (gimple_zero_one_valued_p (_q31, valueize))
21098 : : {
21099 : 0 : {
21100 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q40, _q31 };
21101 : 0 : if (gimple_simplify_45 (res_op, seq, valueize, type, captures))
21102 : 0 : return true;
21103 : : }
21104 : : }
21105 : : }
21106 : 7249 : break;
21107 : : }
21108 : : default:;
21109 : : }
21110 : : }
21111 : : break;
21112 : 7249 : default:;
21113 : : }
21114 : 7249 : if (gimple_zero_one_valued_p (_q30, valueize))
21115 : : {
21116 : 909 : switch (TREE_CODE (_q31))
21117 : : {
21118 : 176 : case SSA_NAME:
21119 : 176 : if (gimple *_d2 = get_def (valueize, _q31))
21120 : : {
21121 : 169 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
21122 : 75 : switch (gimple_assign_rhs_code (_a2))
21123 : : {
21124 : 68 : case BIT_XOR_EXPR:
21125 : 68 : {
21126 : 68 : tree _q50 = gimple_assign_rhs1 (_a2);
21127 : 68 : _q50 = do_valueize (valueize, _q50);
21128 : 68 : tree _q51 = gimple_assign_rhs2 (_a2);
21129 : 68 : _q51 = do_valueize (valueize, _q51);
21130 : 68 : if (tree_swap_operands_p (_q50, _q51))
21131 : 2 : std::swap (_q50, _q51);
21132 : 68 : if ((_q50 == _p0 && ! TREE_SIDE_EFFECTS (_q50)) || (operand_equal_p (_q50, _p0, 0) && types_match (_q50, _p0)))
21133 : : {
21134 : 18 : {
21135 : 18 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q51, _q30 };
21136 : 18 : if (gimple_simplify_45 (res_op, seq, valueize, type, captures))
21137 : 16 : return true;
21138 : : }
21139 : : }
21140 : 52 : if ((_q51 == _p0 && ! TREE_SIDE_EFFECTS (_q51)) || (operand_equal_p (_q51, _p0, 0) && types_match (_q51, _p0)))
21141 : : {
21142 : 50 : {
21143 : 50 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q50, _q30 };
21144 : 50 : if (gimple_simplify_45 (res_op, seq, valueize, type, captures))
21145 : 40 : return true;
21146 : : }
21147 : : }
21148 : 623533 : break;
21149 : : }
21150 : : default:;
21151 : : }
21152 : : }
21153 : : break;
21154 : : default:;
21155 : : }
21156 : : }
21157 : 623533 : break;
21158 : : }
21159 : : default:;
21160 : : }
21161 : : }
21162 : : break;
21163 : 623533 : default:;
21164 : : }
21165 : 623533 : switch (TREE_CODE (_p0))
21166 : : {
21167 : 612284 : case SSA_NAME:
21168 : 612284 : if (gimple *_d1 = get_def (valueize, _p0))
21169 : : {
21170 : 485119 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
21171 : 548666 : switch (gimple_assign_rhs_code (_a1))
21172 : : {
21173 : 73 : case VEC_COND_EXPR:
21174 : 73 : {
21175 : 73 : tree _q20 = gimple_assign_rhs1 (_a1);
21176 : 73 : _q20 = do_valueize (valueize, _q20);
21177 : 73 : tree _q21 = gimple_assign_rhs2 (_a1);
21178 : 73 : _q21 = do_valueize (valueize, _q21);
21179 : 73 : tree _q22 = gimple_assign_rhs3 (_a1);
21180 : 73 : _q22 = do_valueize (valueize, _q22);
21181 : 73 : switch (TREE_CODE (_p1))
21182 : : {
21183 : 73 : case SSA_NAME:
21184 : 73 : if (gimple *_d2 = get_def (valueize, _p1))
21185 : : {
21186 : 68 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
21187 : 54 : switch (gimple_assign_rhs_code (_a2))
21188 : : {
21189 : 26 : case VEC_COND_EXPR:
21190 : 26 : {
21191 : 26 : tree _q60 = gimple_assign_rhs1 (_a2);
21192 : 26 : _q60 = do_valueize (valueize, _q60);
21193 : 26 : tree _q61 = gimple_assign_rhs2 (_a2);
21194 : 26 : _q61 = do_valueize (valueize, _q61);
21195 : 26 : tree _q62 = gimple_assign_rhs3 (_a2);
21196 : 26 : _q62 = do_valueize (valueize, _q62);
21197 : 26 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
21198 : : {
21199 : 0 : {
21200 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
21201 : 0 : if (VECTOR_TYPE_P (type)
21202 : 0 : && (TREE_CODE_CLASS (BIT_XOR_EXPR) != tcc_comparison
21203 : : || types_match (type, TREE_TYPE (captures[2]))
21204 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
21205 : : || (optimize_vectors_before_lowering_p ()
21206 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
21207 : : )
21208 : : {
21209 : 0 : gimple_seq *lseq = seq;
21210 : 0 : if (lseq
21211 : 0 : && (!single_use (captures[0])
21212 : 0 : || !single_use (captures[4])))
21213 : 0 : lseq = NULL;
21214 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2005;
21215 : 0 : {
21216 : 0 : res_op->set_op (VEC_COND_EXPR, type, 3);
21217 : 0 : res_op->ops[0] = captures[1];
21218 : 0 : {
21219 : 0 : tree _o1[2], _r1;
21220 : 0 : _o1[0] = captures[2];
21221 : 0 : _o1[1] = captures[5];
21222 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
21223 : 0 : tem_op.resimplify (NULL, valueize);
21224 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, NULL);
21225 : 0 : if (!_r1) goto next_after_fail2005;
21226 : 0 : res_op->ops[1] = _r1;
21227 : : }
21228 : 0 : {
21229 : 0 : tree _o1[2], _r1;
21230 : 0 : _o1[0] = captures[3];
21231 : 0 : _o1[1] = captures[6];
21232 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
21233 : 0 : tem_op.resimplify (NULL, valueize);
21234 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, NULL);
21235 : 0 : if (!_r1) goto next_after_fail2005;
21236 : 0 : res_op->ops[2] = _r1;
21237 : : }
21238 : 0 : res_op->resimplify (lseq, valueize);
21239 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1033, __FILE__, __LINE__, true);
21240 : 0 : return true;
21241 : : }
21242 : 0 : next_after_fail2005:;
21243 : : }
21244 : : }
21245 : : }
21246 : : break;
21247 : : }
21248 : : default:;
21249 : : }
21250 : : }
21251 : : break;
21252 : 73 : default:;
21253 : : }
21254 : 73 : {
21255 : 73 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
21256 : 73 : if (VECTOR_TYPE_P (type)
21257 : 73 : && (TREE_CODE_CLASS (BIT_XOR_EXPR) != tcc_comparison
21258 : : || types_match (type, TREE_TYPE (captures[2]))
21259 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
21260 : : || (optimize_vectors_before_lowering_p ()
21261 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
21262 : : )
21263 : : {
21264 : 73 : gimple_seq *lseq = seq;
21265 : 73 : if (lseq
21266 : 25 : && (!single_use (captures[0])))
21267 : 51 : lseq = NULL;
21268 : 73 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2006;
21269 : 73 : {
21270 : 73 : res_op->set_op (VEC_COND_EXPR, type, 3);
21271 : 73 : res_op->ops[0] = captures[1];
21272 : 73 : {
21273 : 73 : tree _o1[2], _r1;
21274 : 73 : _o1[0] = captures[2];
21275 : 73 : _o1[1] = captures[4];
21276 : 73 : gimple_match_op tem_op (res_op->cond.any_else (), BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
21277 : 73 : tem_op.resimplify (NULL, valueize);
21278 : 73 : _r1 = maybe_push_res_to_seq (&tem_op, NULL);
21279 : 73 : if (!_r1) goto next_after_fail2006;
21280 : 0 : res_op->ops[1] = _r1;
21281 : : }
21282 : 0 : {
21283 : 0 : tree _o1[2], _r1;
21284 : 0 : _o1[0] = captures[3];
21285 : 0 : _o1[1] = captures[4];
21286 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
21287 : 0 : tem_op.resimplify (NULL, valueize);
21288 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, NULL);
21289 : 0 : if (!_r1) goto next_after_fail2006;
21290 : 0 : res_op->ops[2] = _r1;
21291 : : }
21292 : 0 : res_op->resimplify (lseq, valueize);
21293 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1034, __FILE__, __LINE__, true);
21294 : 0 : return true;
21295 : : }
21296 : 73 : next_after_fail2006:;
21297 : : }
21298 : : }
21299 : 73 : break;
21300 : : }
21301 : : default:;
21302 : : }
21303 : : }
21304 : : break;
21305 : 623533 : default:;
21306 : : }
21307 : 623533 : switch (TREE_CODE (_p1))
21308 : : {
21309 : 493728 : case SSA_NAME:
21310 : 493728 : if (gimple *_d1 = get_def (valueize, _p1))
21311 : : {
21312 : 404900 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
21313 : 451016 : switch (gimple_assign_rhs_code (_a1))
21314 : : {
21315 : 158 : case VEC_COND_EXPR:
21316 : 158 : {
21317 : 158 : tree _q30 = gimple_assign_rhs1 (_a1);
21318 : 158 : _q30 = do_valueize (valueize, _q30);
21319 : 158 : tree _q31 = gimple_assign_rhs2 (_a1);
21320 : 158 : _q31 = do_valueize (valueize, _q31);
21321 : 158 : tree _q32 = gimple_assign_rhs3 (_a1);
21322 : 158 : _q32 = do_valueize (valueize, _q32);
21323 : 158 : {
21324 : 158 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
21325 : 158 : if (VECTOR_TYPE_P (type)
21326 : 158 : && (TREE_CODE_CLASS (BIT_XOR_EXPR) != tcc_comparison
21327 : : || types_match (type, TREE_TYPE (captures[3]))
21328 : : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
21329 : : || (optimize_vectors_before_lowering_p ()
21330 : : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
21331 : : )
21332 : : {
21333 : 158 : gimple_seq *lseq = seq;
21334 : 158 : if (lseq
21335 : 61 : && (!single_use (captures[1])))
21336 : 101 : lseq = NULL;
21337 : 158 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2007;
21338 : 158 : {
21339 : 158 : res_op->set_op (VEC_COND_EXPR, type, 3);
21340 : 158 : res_op->ops[0] = captures[2];
21341 : 158 : {
21342 : 158 : tree _o1[2], _r1;
21343 : 158 : _o1[0] = captures[0];
21344 : 158 : _o1[1] = captures[3];
21345 : 158 : gimple_match_op tem_op (res_op->cond.any_else (), BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
21346 : 158 : tem_op.resimplify (NULL, valueize);
21347 : 158 : _r1 = maybe_push_res_to_seq (&tem_op, NULL);
21348 : 158 : if (!_r1) goto next_after_fail2007;
21349 : 24 : res_op->ops[1] = _r1;
21350 : : }
21351 : 24 : {
21352 : 24 : tree _o1[2], _r1;
21353 : 24 : _o1[0] = captures[0];
21354 : 24 : _o1[1] = captures[4];
21355 : 24 : gimple_match_op tem_op (res_op->cond.any_else (), BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
21356 : 24 : tem_op.resimplify (NULL, valueize);
21357 : 24 : _r1 = maybe_push_res_to_seq (&tem_op, NULL);
21358 : 24 : if (!_r1) goto next_after_fail2007;
21359 : 0 : res_op->ops[2] = _r1;
21360 : : }
21361 : 0 : res_op->resimplify (lseq, valueize);
21362 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1035, __FILE__, __LINE__, true);
21363 : 0 : return true;
21364 : : }
21365 : 158 : next_after_fail2007:;
21366 : : }
21367 : : }
21368 : 158 : break;
21369 : : }
21370 : : default:;
21371 : : }
21372 : : }
21373 : : break;
21374 : 623533 : default:;
21375 : : }
21376 : 623533 : switch (TREE_CODE (_p0))
21377 : : {
21378 : 612284 : case SSA_NAME:
21379 : 612284 : if (gimple *_d1 = get_def (valueize, _p0))
21380 : : {
21381 : 485119 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
21382 : 548666 : switch (gimple_assign_rhs_code (_a1))
21383 : : {
21384 : 1319 : case LT_EXPR:
21385 : 1319 : {
21386 : 1319 : tree _q20 = gimple_assign_rhs1 (_a1);
21387 : 1319 : _q20 = do_valueize (valueize, _q20);
21388 : 1319 : tree _q21 = gimple_assign_rhs2 (_a1);
21389 : 1319 : _q21 = do_valueize (valueize, _q21);
21390 : 1319 : if (integer_truep (_p1))
21391 : : {
21392 : 0 : {
21393 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
21394 : 0 : if (gimple_simplify_48 (res_op, seq, valueize, type, captures, LT_EXPR, GE_EXPR, UNGE_EXPR))
21395 : 0 : return true;
21396 : : }
21397 : : }
21398 : 1319 : if (integer_zerop (_q21))
21399 : : {
21400 : 488 : switch (TREE_CODE (_p1))
21401 : : {
21402 : 488 : case SSA_NAME:
21403 : 488 : if (gimple *_d2 = get_def (valueize, _p1))
21404 : : {
21405 : 488 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
21406 : 478 : switch (gimple_assign_rhs_code (_a2))
21407 : : {
21408 : 79 : case LT_EXPR:
21409 : 79 : {
21410 : 79 : tree _q50 = gimple_assign_rhs1 (_a2);
21411 : 79 : _q50 = do_valueize (valueize, _q50);
21412 : 79 : tree _q51 = gimple_assign_rhs2 (_a2);
21413 : 79 : _q51 = do_valueize (valueize, _q51);
21414 : 79 : if (integer_zerop (_q51))
21415 : : {
21416 : 75 : {
21417 : 75 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q50 };
21418 : 75 : if (gimple_simplify_49 (res_op, seq, valueize, type, captures, LT_EXPR))
21419 : 5 : return true;
21420 : : }
21421 : : }
21422 : : break;
21423 : : }
21424 : 0 : case GE_EXPR:
21425 : 0 : {
21426 : 0 : tree _q50 = gimple_assign_rhs1 (_a2);
21427 : 0 : _q50 = do_valueize (valueize, _q50);
21428 : 0 : tree _q51 = gimple_assign_rhs2 (_a2);
21429 : 0 : _q51 = do_valueize (valueize, _q51);
21430 : 0 : if (integer_zerop (_q51))
21431 : : {
21432 : 0 : {
21433 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q50 };
21434 : 0 : if (gimple_simplify_50 (res_op, seq, valueize, type, captures))
21435 : 0 : return true;
21436 : : }
21437 : : }
21438 : : break;
21439 : : }
21440 : : default:;
21441 : : }
21442 : : }
21443 : : break;
21444 : : default:;
21445 : : }
21446 : : }
21447 : : break;
21448 : : }
21449 : 600 : case LE_EXPR:
21450 : 600 : {
21451 : 600 : tree _q20 = gimple_assign_rhs1 (_a1);
21452 : 600 : _q20 = do_valueize (valueize, _q20);
21453 : 600 : tree _q21 = gimple_assign_rhs2 (_a1);
21454 : 600 : _q21 = do_valueize (valueize, _q21);
21455 : 600 : if (integer_truep (_p1))
21456 : : {
21457 : 0 : {
21458 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
21459 : 0 : if (gimple_simplify_48 (res_op, seq, valueize, type, captures, LE_EXPR, GT_EXPR, UNGT_EXPR))
21460 : 0 : return true;
21461 : : }
21462 : : }
21463 : : break;
21464 : : }
21465 : 970 : case EQ_EXPR:
21466 : 970 : {
21467 : 970 : tree _q20 = gimple_assign_rhs1 (_a1);
21468 : 970 : _q20 = do_valueize (valueize, _q20);
21469 : 970 : tree _q21 = gimple_assign_rhs2 (_a1);
21470 : 970 : _q21 = do_valueize (valueize, _q21);
21471 : 970 : if (tree_swap_operands_p (_q20, _q21))
21472 : 35 : std::swap (_q20, _q21);
21473 : 970 : if (integer_truep (_p1))
21474 : : {
21475 : 0 : {
21476 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
21477 : 0 : if (gimple_simplify_48 (res_op, seq, valueize, type, captures, EQ_EXPR, NE_EXPR, NE_EXPR))
21478 : 0 : return true;
21479 : : }
21480 : : }
21481 : 623526 : break;
21482 : : }
21483 : 1520 : case NE_EXPR:
21484 : 1520 : {
21485 : 1520 : tree _q20 = gimple_assign_rhs1 (_a1);
21486 : 1520 : _q20 = do_valueize (valueize, _q20);
21487 : 1520 : tree _q21 = gimple_assign_rhs2 (_a1);
21488 : 1520 : _q21 = do_valueize (valueize, _q21);
21489 : 1520 : if (tree_swap_operands_p (_q20, _q21))
21490 : 43 : std::swap (_q20, _q21);
21491 : 1520 : if (integer_truep (_p1))
21492 : : {
21493 : 0 : {
21494 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
21495 : 0 : if (gimple_simplify_48 (res_op, seq, valueize, type, captures, NE_EXPR, EQ_EXPR, EQ_EXPR))
21496 : 0 : return true;
21497 : : }
21498 : : }
21499 : 623526 : break;
21500 : : }
21501 : 1321 : case GE_EXPR:
21502 : 1321 : {
21503 : 1321 : tree _q20 = gimple_assign_rhs1 (_a1);
21504 : 1321 : _q20 = do_valueize (valueize, _q20);
21505 : 1321 : tree _q21 = gimple_assign_rhs2 (_a1);
21506 : 1321 : _q21 = do_valueize (valueize, _q21);
21507 : 1321 : if (integer_truep (_p1))
21508 : : {
21509 : 0 : {
21510 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
21511 : 0 : if (gimple_simplify_48 (res_op, seq, valueize, type, captures, GE_EXPR, LT_EXPR, UNLT_EXPR))
21512 : 0 : return true;
21513 : : }
21514 : : }
21515 : 1321 : if (integer_zerop (_q21))
21516 : : {
21517 : 2 : switch (TREE_CODE (_p1))
21518 : : {
21519 : 2 : case SSA_NAME:
21520 : 2 : if (gimple *_d2 = get_def (valueize, _p1))
21521 : : {
21522 : 2 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
21523 : 2 : switch (gimple_assign_rhs_code (_a2))
21524 : : {
21525 : 1 : case GE_EXPR:
21526 : 1 : {
21527 : 1 : tree _q50 = gimple_assign_rhs1 (_a2);
21528 : 1 : _q50 = do_valueize (valueize, _q50);
21529 : 1 : tree _q51 = gimple_assign_rhs2 (_a2);
21530 : 1 : _q51 = do_valueize (valueize, _q51);
21531 : 1 : if (integer_zerop (_q51))
21532 : : {
21533 : 1 : {
21534 : 1 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q50 };
21535 : 1 : if (gimple_simplify_49 (res_op, seq, valueize, type, captures, GE_EXPR))
21536 : 1 : return true;
21537 : : }
21538 : : }
21539 : : break;
21540 : : }
21541 : 0 : case LT_EXPR:
21542 : 0 : {
21543 : 0 : tree _q50 = gimple_assign_rhs1 (_a2);
21544 : 0 : _q50 = do_valueize (valueize, _q50);
21545 : 0 : tree _q51 = gimple_assign_rhs2 (_a2);
21546 : 0 : _q51 = do_valueize (valueize, _q51);
21547 : 0 : if (integer_zerop (_q51))
21548 : : {
21549 : 0 : {
21550 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p1, _q50, _p0, _q20 };
21551 : 0 : if (gimple_simplify_50 (res_op, seq, valueize, type, captures))
21552 : 0 : return true;
21553 : : }
21554 : : }
21555 : : break;
21556 : : }
21557 : : default:;
21558 : : }
21559 : : }
21560 : : break;
21561 : : default:;
21562 : : }
21563 : : }
21564 : : break;
21565 : : }
21566 : 3431 : case GT_EXPR:
21567 : 3431 : {
21568 : 3431 : tree _q20 = gimple_assign_rhs1 (_a1);
21569 : 3431 : _q20 = do_valueize (valueize, _q20);
21570 : 3431 : tree _q21 = gimple_assign_rhs2 (_a1);
21571 : 3431 : _q21 = do_valueize (valueize, _q21);
21572 : 3431 : if (integer_truep (_p1))
21573 : : {
21574 : 0 : {
21575 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
21576 : 0 : if (gimple_simplify_48 (res_op, seq, valueize, type, captures, GT_EXPR, LE_EXPR, UNLE_EXPR))
21577 : 0 : return true;
21578 : : }
21579 : : }
21580 : : break;
21581 : : }
21582 : 235 : case UNORDERED_EXPR:
21583 : 235 : {
21584 : 235 : tree _q20 = gimple_assign_rhs1 (_a1);
21585 : 235 : _q20 = do_valueize (valueize, _q20);
21586 : 235 : tree _q21 = gimple_assign_rhs2 (_a1);
21587 : 235 : _q21 = do_valueize (valueize, _q21);
21588 : 235 : if (tree_swap_operands_p (_q20, _q21))
21589 : 0 : std::swap (_q20, _q21);
21590 : 235 : if (integer_truep (_p1))
21591 : : {
21592 : 0 : {
21593 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
21594 : 0 : if (gimple_simplify_48 (res_op, seq, valueize, type, captures, UNORDERED_EXPR, ORDERED_EXPR, ORDERED_EXPR))
21595 : 0 : return true;
21596 : : }
21597 : : }
21598 : 623526 : break;
21599 : : }
21600 : 11 : case ORDERED_EXPR:
21601 : 11 : {
21602 : 11 : tree _q20 = gimple_assign_rhs1 (_a1);
21603 : 11 : _q20 = do_valueize (valueize, _q20);
21604 : 11 : tree _q21 = gimple_assign_rhs2 (_a1);
21605 : 11 : _q21 = do_valueize (valueize, _q21);
21606 : 11 : if (tree_swap_operands_p (_q20, _q21))
21607 : 0 : std::swap (_q20, _q21);
21608 : 11 : if (integer_truep (_p1))
21609 : : {
21610 : 0 : {
21611 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
21612 : 0 : if (gimple_simplify_48 (res_op, seq, valueize, type, captures, ORDERED_EXPR, UNORDERED_EXPR, UNORDERED_EXPR))
21613 : 0 : return true;
21614 : : }
21615 : : }
21616 : 623526 : break;
21617 : : }
21618 : 0 : case UNLT_EXPR:
21619 : 0 : {
21620 : 0 : tree _q20 = gimple_assign_rhs1 (_a1);
21621 : 0 : _q20 = do_valueize (valueize, _q20);
21622 : 0 : tree _q21 = gimple_assign_rhs2 (_a1);
21623 : 0 : _q21 = do_valueize (valueize, _q21);
21624 : 0 : if (integer_truep (_p1))
21625 : : {
21626 : 0 : {
21627 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
21628 : 0 : if (gimple_simplify_48 (res_op, seq, valueize, type, captures, UNLT_EXPR, GE_EXPR, GE_EXPR))
21629 : 0 : return true;
21630 : : }
21631 : : }
21632 : : break;
21633 : : }
21634 : 12 : case UNLE_EXPR:
21635 : 12 : {
21636 : 12 : tree _q20 = gimple_assign_rhs1 (_a1);
21637 : 12 : _q20 = do_valueize (valueize, _q20);
21638 : 12 : tree _q21 = gimple_assign_rhs2 (_a1);
21639 : 12 : _q21 = do_valueize (valueize, _q21);
21640 : 12 : if (integer_truep (_p1))
21641 : : {
21642 : 0 : {
21643 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
21644 : 0 : if (gimple_simplify_48 (res_op, seq, valueize, type, captures, UNLE_EXPR, GT_EXPR, GT_EXPR))
21645 : 0 : return true;
21646 : : }
21647 : : }
21648 : : break;
21649 : : }
21650 : 0 : case UNGT_EXPR:
21651 : 0 : {
21652 : 0 : tree _q20 = gimple_assign_rhs1 (_a1);
21653 : 0 : _q20 = do_valueize (valueize, _q20);
21654 : 0 : tree _q21 = gimple_assign_rhs2 (_a1);
21655 : 0 : _q21 = do_valueize (valueize, _q21);
21656 : 0 : if (integer_truep (_p1))
21657 : : {
21658 : 0 : {
21659 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
21660 : 0 : if (gimple_simplify_48 (res_op, seq, valueize, type, captures, UNGT_EXPR, LE_EXPR, LE_EXPR))
21661 : 0 : return true;
21662 : : }
21663 : : }
21664 : : break;
21665 : : }
21666 : 16 : case UNGE_EXPR:
21667 : 16 : {
21668 : 16 : tree _q20 = gimple_assign_rhs1 (_a1);
21669 : 16 : _q20 = do_valueize (valueize, _q20);
21670 : 16 : tree _q21 = gimple_assign_rhs2 (_a1);
21671 : 16 : _q21 = do_valueize (valueize, _q21);
21672 : 16 : if (integer_truep (_p1))
21673 : : {
21674 : 0 : {
21675 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
21676 : 0 : if (gimple_simplify_48 (res_op, seq, valueize, type, captures, UNGE_EXPR, LT_EXPR, LT_EXPR))
21677 : 0 : return true;
21678 : : }
21679 : : }
21680 : : break;
21681 : : }
21682 : 0 : case UNEQ_EXPR:
21683 : 0 : {
21684 : 0 : tree _q20 = gimple_assign_rhs1 (_a1);
21685 : 0 : _q20 = do_valueize (valueize, _q20);
21686 : 0 : tree _q21 = gimple_assign_rhs2 (_a1);
21687 : 0 : _q21 = do_valueize (valueize, _q21);
21688 : 0 : if (tree_swap_operands_p (_q20, _q21))
21689 : 0 : std::swap (_q20, _q21);
21690 : 0 : if (integer_truep (_p1))
21691 : : {
21692 : 0 : {
21693 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
21694 : 0 : if (gimple_simplify_48 (res_op, seq, valueize, type, captures, UNEQ_EXPR, LTGT_EXPR, LTGT_EXPR))
21695 : 0 : return true;
21696 : : }
21697 : : }
21698 : 623526 : break;
21699 : : }
21700 : 0 : case LTGT_EXPR:
21701 : 0 : {
21702 : 0 : tree _q20 = gimple_assign_rhs1 (_a1);
21703 : 0 : _q20 = do_valueize (valueize, _q20);
21704 : 0 : tree _q21 = gimple_assign_rhs2 (_a1);
21705 : 0 : _q21 = do_valueize (valueize, _q21);
21706 : 0 : if (tree_swap_operands_p (_q20, _q21))
21707 : 0 : std::swap (_q20, _q21);
21708 : 0 : if (integer_truep (_p1))
21709 : : {
21710 : 0 : {
21711 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q21 };
21712 : 0 : if (gimple_simplify_48 (res_op, seq, valueize, type, captures, LTGT_EXPR, UNEQ_EXPR, UNEQ_EXPR))
21713 : 0 : return true;
21714 : : }
21715 : : }
21716 : 623526 : break;
21717 : : }
21718 : 73 : case VEC_COND_EXPR:
21719 : 73 : {
21720 : 73 : tree _q20 = gimple_assign_rhs1 (_a1);
21721 : 73 : _q20 = do_valueize (valueize, _q20);
21722 : 73 : tree _q21 = gimple_assign_rhs2 (_a1);
21723 : 73 : _q21 = do_valueize (valueize, _q21);
21724 : 73 : tree _q22 = gimple_assign_rhs3 (_a1);
21725 : 73 : _q22 = do_valueize (valueize, _q22);
21726 : 73 : if (uniform_integer_cst_p (_q21))
21727 : : {
21728 : 26 : if (uniform_integer_cst_p (_q22))
21729 : : {
21730 : 26 : {
21731 : 26 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _p1 };
21732 : 26 : if (gimple_simplify_52 (res_op, seq, valueize, type, captures))
21733 : 0 : return true;
21734 : : }
21735 : : }
21736 : : }
21737 : : break;
21738 : : }
21739 : : default:;
21740 : : }
21741 : 91747 : else if (gcall *_c1 = dyn_cast <gcall *> (_d1))
21742 : 12986 : switch (gimple_call_combined_fn (_c1))
21743 : : {
21744 : 2 : case CFN_PARITY:
21745 : 2 : if (gimple_call_num_args (_c1) == 1)
21746 : : {
21747 : 2 : tree _q20 = gimple_call_arg (_c1, 0);
21748 : 2 : _q20 = do_valueize (valueize, _q20);
21749 : 2 : switch (TREE_CODE (_p1))
21750 : : {
21751 : 2 : case SSA_NAME:
21752 : 2 : if (gimple *_d2 = get_def (valueize, _p1))
21753 : : {
21754 : 2 : if (gcall *_c2 = dyn_cast <gcall *> (_d2))
21755 : 2 : switch (gimple_call_combined_fn (_c2))
21756 : : {
21757 : 2 : case CFN_PARITY:
21758 : 2 : if (gimple_call_num_args (_c2) == 1)
21759 : : {
21760 : 2 : tree _q40 = gimple_call_arg (_c2, 0);
21761 : 2 : _q40 = do_valueize (valueize, _q40);
21762 : 2 : {
21763 : 2 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
21764 : 2 : if (gimple_simplify_51 (res_op, seq, valueize, type, captures, CFN_PARITY))
21765 : 1 : return true;
21766 : : }
21767 : : }
21768 : : break;
21769 : : default:;
21770 : : }
21771 : : }
21772 : : break;
21773 : : default:;
21774 : : }
21775 : : }
21776 : : break;
21777 : 0 : case CFN_BUILT_IN_PARITYL:
21778 : 0 : if (gimple_call_num_args (_c1) == 1)
21779 : : {
21780 : 0 : tree _q20 = gimple_call_arg (_c1, 0);
21781 : 0 : _q20 = do_valueize (valueize, _q20);
21782 : 0 : switch (TREE_CODE (_p1))
21783 : : {
21784 : 0 : case SSA_NAME:
21785 : 0 : if (gimple *_d2 = get_def (valueize, _p1))
21786 : : {
21787 : 0 : if (gcall *_c2 = dyn_cast <gcall *> (_d2))
21788 : 0 : switch (gimple_call_combined_fn (_c2))
21789 : : {
21790 : 0 : case CFN_BUILT_IN_PARITYL:
21791 : 0 : if (gimple_call_num_args (_c2) == 1)
21792 : : {
21793 : 0 : tree _q40 = gimple_call_arg (_c2, 0);
21794 : 0 : _q40 = do_valueize (valueize, _q40);
21795 : 0 : {
21796 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
21797 : 0 : if (gimple_simplify_51 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_PARITYL))
21798 : 0 : return true;
21799 : : }
21800 : : }
21801 : : break;
21802 : : default:;
21803 : : }
21804 : : }
21805 : : break;
21806 : : default:;
21807 : : }
21808 : : }
21809 : : break;
21810 : 0 : case CFN_BUILT_IN_PARITYIMAX:
21811 : 0 : if (gimple_call_num_args (_c1) == 1)
21812 : : {
21813 : 0 : tree _q20 = gimple_call_arg (_c1, 0);
21814 : 0 : _q20 = do_valueize (valueize, _q20);
21815 : 0 : switch (TREE_CODE (_p1))
21816 : : {
21817 : 0 : case SSA_NAME:
21818 : 0 : if (gimple *_d2 = get_def (valueize, _p1))
21819 : : {
21820 : 0 : if (gcall *_c2 = dyn_cast <gcall *> (_d2))
21821 : 0 : switch (gimple_call_combined_fn (_c2))
21822 : : {
21823 : 0 : case CFN_BUILT_IN_PARITYIMAX:
21824 : 0 : if (gimple_call_num_args (_c2) == 1)
21825 : : {
21826 : 0 : tree _q40 = gimple_call_arg (_c2, 0);
21827 : 0 : _q40 = do_valueize (valueize, _q40);
21828 : 0 : {
21829 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
21830 : 0 : if (gimple_simplify_51 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_PARITYIMAX))
21831 : 0 : return true;
21832 : : }
21833 : : }
21834 : : break;
21835 : : default:;
21836 : : }
21837 : : }
21838 : : break;
21839 : : default:;
21840 : : }
21841 : : }
21842 : : break;
21843 : 11 : case CFN_BUILT_IN_PARITY:
21844 : 11 : if (gimple_call_num_args (_c1) == 1)
21845 : : {
21846 : 11 : tree _q20 = gimple_call_arg (_c1, 0);
21847 : 11 : _q20 = do_valueize (valueize, _q20);
21848 : 11 : switch (TREE_CODE (_p1))
21849 : : {
21850 : 0 : case SSA_NAME:
21851 : 0 : if (gimple *_d2 = get_def (valueize, _p1))
21852 : : {
21853 : 0 : if (gcall *_c2 = dyn_cast <gcall *> (_d2))
21854 : 0 : switch (gimple_call_combined_fn (_c2))
21855 : : {
21856 : 0 : case CFN_BUILT_IN_PARITY:
21857 : 0 : if (gimple_call_num_args (_c2) == 1)
21858 : : {
21859 : 0 : tree _q40 = gimple_call_arg (_c2, 0);
21860 : 0 : _q40 = do_valueize (valueize, _q40);
21861 : 0 : {
21862 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
21863 : 0 : if (gimple_simplify_51 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_PARITY))
21864 : 0 : return true;
21865 : : }
21866 : : }
21867 : : break;
21868 : : default:;
21869 : : }
21870 : : }
21871 : : break;
21872 : : default:;
21873 : : }
21874 : : }
21875 : : break;
21876 : 11 : case CFN_BUILT_IN_PARITYLL:
21877 : 11 : if (gimple_call_num_args (_c1) == 1)
21878 : : {
21879 : 11 : tree _q20 = gimple_call_arg (_c1, 0);
21880 : 11 : _q20 = do_valueize (valueize, _q20);
21881 : 11 : switch (TREE_CODE (_p1))
21882 : : {
21883 : 0 : case SSA_NAME:
21884 : 0 : if (gimple *_d2 = get_def (valueize, _p1))
21885 : : {
21886 : 0 : if (gcall *_c2 = dyn_cast <gcall *> (_d2))
21887 : 0 : switch (gimple_call_combined_fn (_c2))
21888 : : {
21889 : 0 : case CFN_BUILT_IN_PARITYLL:
21890 : 0 : if (gimple_call_num_args (_c2) == 1)
21891 : : {
21892 : 0 : tree _q40 = gimple_call_arg (_c2, 0);
21893 : 0 : _q40 = do_valueize (valueize, _q40);
21894 : 0 : {
21895 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
21896 : 0 : if (gimple_simplify_51 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_PARITYLL))
21897 : 0 : return true;
21898 : : }
21899 : : }
21900 : : break;
21901 : : default:;
21902 : : }
21903 : : }
21904 : : break;
21905 : : default:;
21906 : : }
21907 : : }
21908 : : break;
21909 : : default:;
21910 : : }
21911 : : }
21912 : : break;
21913 : 623526 : default:;
21914 : : }
21915 : 623526 : switch (TREE_CODE (_p1))
21916 : : {
21917 : 493721 : case SSA_NAME:
21918 : 493721 : if (gimple *_d1 = get_def (valueize, _p1))
21919 : : {
21920 : 404893 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
21921 : 451010 : switch (gimple_assign_rhs_code (_a1))
21922 : : {
21923 : 158 : case VEC_COND_EXPR:
21924 : 158 : {
21925 : 158 : tree _q30 = gimple_assign_rhs1 (_a1);
21926 : 158 : _q30 = do_valueize (valueize, _q30);
21927 : 158 : tree _q31 = gimple_assign_rhs2 (_a1);
21928 : 158 : _q31 = do_valueize (valueize, _q31);
21929 : 158 : tree _q32 = gimple_assign_rhs3 (_a1);
21930 : 158 : _q32 = do_valueize (valueize, _q32);
21931 : 158 : if (uniform_integer_cst_p (_q31))
21932 : : {
21933 : 56 : if (uniform_integer_cst_p (_q32))
21934 : : {
21935 : 32 : {
21936 : 32 : tree captures[4] ATTRIBUTE_UNUSED = { _q30, _q31, _q32, _p0 };
21937 : 32 : if (gimple_simplify_52 (res_op, seq, valueize, type, captures))
21938 : 0 : return true;
21939 : : }
21940 : : }
21941 : : }
21942 : : break;
21943 : : }
21944 : : default:;
21945 : : }
21946 : : }
21947 : : break;
21948 : 623526 : default:;
21949 : : }
21950 : 623526 : switch (TREE_CODE (_p0))
21951 : : {
21952 : 612277 : case SSA_NAME:
21953 : 612277 : if (gimple *_d1 = get_def (valueize, _p0))
21954 : : {
21955 : 485112 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
21956 : 548660 : switch (gimple_assign_rhs_code (_a1))
21957 : : {
21958 : 141 : case VEC_PERM_EXPR:
21959 : 141 : {
21960 : 141 : tree _q20 = gimple_assign_rhs1 (_a1);
21961 : 141 : _q20 = do_valueize (valueize, _q20);
21962 : 141 : tree _q21 = gimple_assign_rhs2 (_a1);
21963 : 141 : _q21 = do_valueize (valueize, _q21);
21964 : 141 : tree _q22 = gimple_assign_rhs3 (_a1);
21965 : 141 : _q22 = do_valueize (valueize, _q22);
21966 : 141 : if ((_q21 == _q20 && ! TREE_SIDE_EFFECTS (_q21)) || (operand_equal_p (_q21, _q20, 0) && types_match (_q21, _q20)))
21967 : : {
21968 : 30 : switch (TREE_CODE (_p1))
21969 : : {
21970 : 30 : case SSA_NAME:
21971 : 30 : if (gimple *_d2 = get_def (valueize, _p1))
21972 : : {
21973 : 30 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
21974 : 16 : switch (gimple_assign_rhs_code (_a2))
21975 : : {
21976 : 16 : case VEC_PERM_EXPR:
21977 : 16 : {
21978 : 16 : tree _q60 = gimple_assign_rhs1 (_a2);
21979 : 16 : _q60 = do_valueize (valueize, _q60);
21980 : 16 : tree _q61 = gimple_assign_rhs2 (_a2);
21981 : 16 : _q61 = do_valueize (valueize, _q61);
21982 : 16 : tree _q62 = gimple_assign_rhs3 (_a2);
21983 : 16 : _q62 = do_valueize (valueize, _q62);
21984 : 16 : if ((_q61 == _q60 && ! TREE_SIDE_EFFECTS (_q61)) || (operand_equal_p (_q61, _q60, 0) && types_match (_q61, _q60)))
21985 : : {
21986 : 16 : if ((_q62 == _q22 && ! TREE_SIDE_EFFECTS (_q62)) || (operand_equal_p (_q62, _q22, 0) && types_match (_q62, _q22)))
21987 : : {
21988 : 2 : {
21989 : 2 : tree captures[4] ATTRIBUTE_UNUSED = { _q20, _q22, _q60 };
21990 : 2 : if (VECTOR_INTEGER_TYPE_P (type)
21991 : : )
21992 : : {
21993 : 2 : gimple_seq *lseq = seq;
21994 : 2 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2008;
21995 : 2 : {
21996 : 2 : res_op->set_op (VEC_PERM_EXPR, type, 3);
21997 : 2 : {
21998 : 2 : tree _o1[2], _r1;
21999 : 2 : _o1[0] = captures[0];
22000 : 2 : _o1[1] = captures[2];
22001 : 2 : gimple_match_op tem_op (res_op->cond.any_else (), BIT_XOR_EXPR, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
22002 : 2 : tem_op.resimplify (lseq, valueize);
22003 : 2 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
22004 : 2 : if (!_r1) goto next_after_fail2008;
22005 : 1 : captures[3] = _r1;
22006 : : }
22007 : 1 : res_op->ops[0] = captures[3];
22008 : 1 : res_op->ops[1] = captures[3];
22009 : 1 : res_op->ops[2] = captures[1];
22010 : 1 : res_op->resimplify (lseq, valueize);
22011 : 1 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1036, __FILE__, __LINE__, true);
22012 : 1 : return true;
22013 : : }
22014 : : next_after_fail2008:;
22015 : : }
22016 : : }
22017 : : }
22018 : : }
22019 : : break;
22020 : : }
22021 : : default:;
22022 : : }
22023 : : }
22024 : : break;
22025 : : default:;
22026 : : }
22027 : : }
22028 : : break;
22029 : : }
22030 : : default:;
22031 : : }
22032 : : }
22033 : : break;
22034 : : default:;
22035 : : }
22036 : : return false;
22037 : : }
22038 : :
22039 : : bool
22040 : 0 : gimple_simplify_CFN_BUILT_IN_FMINF64 (gimple_match_op *res_op, gimple_seq *seq,
22041 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
22042 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0, tree _p1)
22043 : : {
22044 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
22045 : 0 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
22046 : : {
22047 : 0 : {
22048 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
22049 : 0 : if (gimple_simplify_605 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_FMINF64))
22050 : 0 : return true;
22051 : : }
22052 : : }
22053 : 0 : switch (TREE_CODE (_p1))
22054 : : {
22055 : 0 : case REAL_CST:
22056 : 0 : {
22057 : 0 : {
22058 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
22059 : 0 : if (gimple_simplify_606 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_FMINF64))
22060 : 0 : return true;
22061 : : }
22062 : 0 : break;
22063 : : }
22064 : 0 : default:;
22065 : : }
22066 : 0 : switch (TREE_CODE (_p0))
22067 : : {
22068 : 0 : case REAL_CST:
22069 : 0 : {
22070 : 0 : {
22071 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p1, _p0 };
22072 : 0 : if (gimple_simplify_606 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_FMINF64))
22073 : 0 : return true;
22074 : : }
22075 : 0 : break;
22076 : : }
22077 : 0 : default:;
22078 : : }
22079 : 0 : {
22080 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
22081 : 0 : if (gimple_simplify_607 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_FMINF64))
22082 : 0 : return true;
22083 : : }
22084 : 0 : switch (TREE_CODE (_p0))
22085 : : {
22086 : 0 : case SSA_NAME:
22087 : 0 : if (gimple *_d1 = get_def (valueize, _p0))
22088 : : {
22089 : 0 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
22090 : 0 : switch (gimple_assign_rhs_code (_a1))
22091 : : {
22092 : 0 : case NEGATE_EXPR:
22093 : 0 : {
22094 : 0 : tree _q20 = gimple_assign_rhs1 (_a1);
22095 : 0 : _q20 = do_valueize (valueize, _q20);
22096 : 0 : switch (TREE_CODE (_p1))
22097 : : {
22098 : 0 : case SSA_NAME:
22099 : 0 : if (gimple *_d2 = get_def (valueize, _p1))
22100 : : {
22101 : 0 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
22102 : 0 : switch (gimple_assign_rhs_code (_a2))
22103 : : {
22104 : 0 : case NEGATE_EXPR:
22105 : 0 : {
22106 : 0 : tree _q40 = gimple_assign_rhs1 (_a2);
22107 : 0 : _q40 = do_valueize (valueize, _q40);
22108 : 0 : {
22109 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
22110 : 0 : if (FLOAT_TYPE_P (TREE_TYPE (captures[1]))
22111 : 0 : || (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
22112 : 0 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[1])))
22113 : : )
22114 : : {
22115 : 0 : gimple_seq *lseq = seq;
22116 : 0 : if (lseq
22117 : 0 : && (!single_use (captures[0])
22118 : 0 : || !single_use (captures[2])))
22119 : 0 : lseq = NULL;
22120 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2596;
22121 : 0 : {
22122 : 0 : res_op->set_op (NEGATE_EXPR, type, 1);
22123 : 0 : {
22124 : 0 : tree _o1[2], _r1;
22125 : 0 : _o1[0] = captures[1];
22126 : 0 : _o1[1] = captures[3];
22127 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), CFN_BUILT_IN_FMAXF64, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
22128 : 0 : tem_op.resimplify (lseq, valueize);
22129 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
22130 : 0 : if (!_r1) goto next_after_fail2596;
22131 : 0 : res_op->ops[0] = _r1;
22132 : : }
22133 : 0 : res_op->resimplify (lseq, valueize);
22134 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1191, __FILE__, __LINE__, true);
22135 : 0 : return true;
22136 : : }
22137 : 0 : next_after_fail2596:;
22138 : : }
22139 : : }
22140 : 0 : break;
22141 : : }
22142 : : default:;
22143 : : }
22144 : : }
22145 : : break;
22146 : : default:;
22147 : : }
22148 : : break;
22149 : : }
22150 : : default:;
22151 : : }
22152 : : }
22153 : : break;
22154 : : default:;
22155 : : }
22156 : : return false;
22157 : : }
22158 : :
22159 : : bool
22160 : 0 : gimple_simplify_CFN_BUILT_IN_FMINF64X (gimple_match_op *res_op, gimple_seq *seq,
22161 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
22162 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0, tree _p1)
22163 : : {
22164 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
22165 : 0 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
22166 : : {
22167 : 0 : {
22168 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
22169 : 0 : if (gimple_simplify_605 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_FMINF64X))
22170 : 0 : return true;
22171 : : }
22172 : : }
22173 : 0 : switch (TREE_CODE (_p1))
22174 : : {
22175 : 0 : case REAL_CST:
22176 : 0 : {
22177 : 0 : {
22178 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
22179 : 0 : if (gimple_simplify_606 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_FMINF64X))
22180 : 0 : return true;
22181 : : }
22182 : 0 : break;
22183 : : }
22184 : 0 : default:;
22185 : : }
22186 : 0 : switch (TREE_CODE (_p0))
22187 : : {
22188 : 0 : case REAL_CST:
22189 : 0 : {
22190 : 0 : {
22191 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p1, _p0 };
22192 : 0 : if (gimple_simplify_606 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_FMINF64X))
22193 : 0 : return true;
22194 : : }
22195 : 0 : break;
22196 : : }
22197 : 0 : default:;
22198 : : }
22199 : 0 : {
22200 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
22201 : 0 : if (gimple_simplify_607 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_FMINF64X))
22202 : 0 : return true;
22203 : : }
22204 : 0 : switch (TREE_CODE (_p0))
22205 : : {
22206 : 0 : case SSA_NAME:
22207 : 0 : if (gimple *_d1 = get_def (valueize, _p0))
22208 : : {
22209 : 0 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
22210 : 0 : switch (gimple_assign_rhs_code (_a1))
22211 : : {
22212 : 0 : case NEGATE_EXPR:
22213 : 0 : {
22214 : 0 : tree _q20 = gimple_assign_rhs1 (_a1);
22215 : 0 : _q20 = do_valueize (valueize, _q20);
22216 : 0 : switch (TREE_CODE (_p1))
22217 : : {
22218 : 0 : case SSA_NAME:
22219 : 0 : if (gimple *_d2 = get_def (valueize, _p1))
22220 : : {
22221 : 0 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
22222 : 0 : switch (gimple_assign_rhs_code (_a2))
22223 : : {
22224 : 0 : case NEGATE_EXPR:
22225 : 0 : {
22226 : 0 : tree _q40 = gimple_assign_rhs1 (_a2);
22227 : 0 : _q40 = do_valueize (valueize, _q40);
22228 : 0 : {
22229 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
22230 : 0 : if (FLOAT_TYPE_P (TREE_TYPE (captures[1]))
22231 : 0 : || (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
22232 : 0 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[1])))
22233 : : )
22234 : : {
22235 : 0 : gimple_seq *lseq = seq;
22236 : 0 : if (lseq
22237 : 0 : && (!single_use (captures[0])
22238 : 0 : || !single_use (captures[2])))
22239 : 0 : lseq = NULL;
22240 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2599;
22241 : 0 : {
22242 : 0 : res_op->set_op (NEGATE_EXPR, type, 1);
22243 : 0 : {
22244 : 0 : tree _o1[2], _r1;
22245 : 0 : _o1[0] = captures[1];
22246 : 0 : _o1[1] = captures[3];
22247 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), CFN_BUILT_IN_FMAXF64X, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
22248 : 0 : tem_op.resimplify (lseq, valueize);
22249 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
22250 : 0 : if (!_r1) goto next_after_fail2599;
22251 : 0 : res_op->ops[0] = _r1;
22252 : : }
22253 : 0 : res_op->resimplify (lseq, valueize);
22254 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1191, __FILE__, __LINE__, true);
22255 : 0 : return true;
22256 : : }
22257 : 0 : next_after_fail2599:;
22258 : : }
22259 : : }
22260 : 0 : break;
22261 : : }
22262 : : default:;
22263 : : }
22264 : : }
22265 : : break;
22266 : : default:;
22267 : : }
22268 : : break;
22269 : : }
22270 : : default:;
22271 : : }
22272 : : }
22273 : : break;
22274 : : default:;
22275 : : }
22276 : : return false;
22277 : : }
22278 : :
22279 : : bool
22280 : 1832 : gimple_simplify_CFN_BUILT_IN_FMAXF (gimple_match_op *res_op, gimple_seq *seq,
22281 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
22282 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0, tree _p1)
22283 : : {
22284 : 1832 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
22285 : 1832 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
22286 : : {
22287 : 43 : {
22288 : 43 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
22289 : 43 : if (gimple_simplify_605 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_FMAXF))
22290 : 28 : return true;
22291 : : }
22292 : : }
22293 : 1804 : switch (TREE_CODE (_p1))
22294 : : {
22295 : 886 : case REAL_CST:
22296 : 886 : {
22297 : 886 : {
22298 : 886 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
22299 : 886 : if (gimple_simplify_606 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_FMAXF))
22300 : 38 : return true;
22301 : : }
22302 : 848 : break;
22303 : : }
22304 : 1766 : default:;
22305 : : }
22306 : 1766 : switch (TREE_CODE (_p0))
22307 : : {
22308 : 490 : case REAL_CST:
22309 : 490 : {
22310 : 490 : {
22311 : 490 : tree captures[2] ATTRIBUTE_UNUSED = { _p1, _p0 };
22312 : 490 : if (gimple_simplify_606 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_FMAXF))
22313 : 60 : return true;
22314 : : }
22315 : 430 : break;
22316 : : }
22317 : 1706 : default:;
22318 : : }
22319 : 1706 : {
22320 : 1706 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
22321 : 1706 : if (gimple_simplify_608 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_FMAXF))
22322 : 23 : return true;
22323 : : }
22324 : 1683 : switch (TREE_CODE (_p0))
22325 : : {
22326 : 1107 : case SSA_NAME:
22327 : 1107 : if (gimple *_d1 = get_def (valueize, _p0))
22328 : : {
22329 : 633 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
22330 : 485 : switch (gimple_assign_rhs_code (_a1))
22331 : : {
22332 : 40 : case NEGATE_EXPR:
22333 : 40 : {
22334 : 40 : tree _q20 = gimple_assign_rhs1 (_a1);
22335 : 40 : _q20 = do_valueize (valueize, _q20);
22336 : 40 : switch (TREE_CODE (_p1))
22337 : : {
22338 : 0 : case SSA_NAME:
22339 : 0 : if (gimple *_d2 = get_def (valueize, _p1))
22340 : : {
22341 : 0 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
22342 : 0 : switch (gimple_assign_rhs_code (_a2))
22343 : : {
22344 : 0 : case NEGATE_EXPR:
22345 : 0 : {
22346 : 0 : tree _q40 = gimple_assign_rhs1 (_a2);
22347 : 0 : _q40 = do_valueize (valueize, _q40);
22348 : 0 : {
22349 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
22350 : 0 : if (FLOAT_TYPE_P (TREE_TYPE (captures[1]))
22351 : 0 : || (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
22352 : 0 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[1])))
22353 : : )
22354 : : {
22355 : 0 : gimple_seq *lseq = seq;
22356 : 0 : if (lseq
22357 : 0 : && (!single_use (captures[0])
22358 : 0 : || !single_use (captures[2])))
22359 : 0 : lseq = NULL;
22360 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2602;
22361 : 0 : {
22362 : 0 : res_op->set_op (NEGATE_EXPR, type, 1);
22363 : 0 : {
22364 : 0 : tree _o1[2], _r1;
22365 : 0 : _o1[0] = captures[1];
22366 : 0 : _o1[1] = captures[3];
22367 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), CFN_BUILT_IN_FMINF, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
22368 : 0 : tem_op.resimplify (lseq, valueize);
22369 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
22370 : 0 : if (!_r1) goto next_after_fail2602;
22371 : 0 : res_op->ops[0] = _r1;
22372 : : }
22373 : 0 : res_op->resimplify (lseq, valueize);
22374 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1191, __FILE__, __LINE__, true);
22375 : 0 : return true;
22376 : : }
22377 : 0 : next_after_fail2602:;
22378 : : }
22379 : : }
22380 : 0 : break;
22381 : : }
22382 : : default:;
22383 : : }
22384 : : }
22385 : : break;
22386 : : default:;
22387 : : }
22388 : : break;
22389 : : }
22390 : : default:;
22391 : : }
22392 : : }
22393 : : break;
22394 : : default:;
22395 : : }
22396 : : return false;
22397 : : }
22398 : :
22399 : : bool
22400 : 11 : gimple_simplify_CFN_BUILT_IN_FMAXF16 (gimple_match_op *res_op, gimple_seq *seq,
22401 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
22402 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0, tree _p1)
22403 : : {
22404 : 11 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
22405 : 11 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
22406 : : {
22407 : 0 : {
22408 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
22409 : 0 : if (gimple_simplify_605 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_FMAXF16))
22410 : 0 : return true;
22411 : : }
22412 : : }
22413 : 11 : switch (TREE_CODE (_p1))
22414 : : {
22415 : 0 : case REAL_CST:
22416 : 0 : {
22417 : 0 : {
22418 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
22419 : 0 : if (gimple_simplify_606 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_FMAXF16))
22420 : 0 : return true;
22421 : : }
22422 : 0 : break;
22423 : : }
22424 : 11 : default:;
22425 : : }
22426 : 11 : switch (TREE_CODE (_p0))
22427 : : {
22428 : 0 : case REAL_CST:
22429 : 0 : {
22430 : 0 : {
22431 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p1, _p0 };
22432 : 0 : if (gimple_simplify_606 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_FMAXF16))
22433 : 0 : return true;
22434 : : }
22435 : 0 : break;
22436 : : }
22437 : 11 : default:;
22438 : : }
22439 : 11 : {
22440 : 11 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
22441 : 11 : if (gimple_simplify_608 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_FMAXF16))
22442 : 11 : return true;
22443 : : }
22444 : 0 : switch (TREE_CODE (_p0))
22445 : : {
22446 : 0 : case SSA_NAME:
22447 : 0 : if (gimple *_d1 = get_def (valueize, _p0))
22448 : : {
22449 : 0 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
22450 : 0 : switch (gimple_assign_rhs_code (_a1))
22451 : : {
22452 : 0 : case NEGATE_EXPR:
22453 : 0 : {
22454 : 0 : tree _q20 = gimple_assign_rhs1 (_a1);
22455 : 0 : _q20 = do_valueize (valueize, _q20);
22456 : 0 : switch (TREE_CODE (_p1))
22457 : : {
22458 : 0 : case SSA_NAME:
22459 : 0 : if (gimple *_d2 = get_def (valueize, _p1))
22460 : : {
22461 : 0 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
22462 : 0 : switch (gimple_assign_rhs_code (_a2))
22463 : : {
22464 : 0 : case NEGATE_EXPR:
22465 : 0 : {
22466 : 0 : tree _q40 = gimple_assign_rhs1 (_a2);
22467 : 0 : _q40 = do_valueize (valueize, _q40);
22468 : 0 : {
22469 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
22470 : 0 : if (FLOAT_TYPE_P (TREE_TYPE (captures[1]))
22471 : 0 : || (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
22472 : 0 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[1])))
22473 : : )
22474 : : {
22475 : 0 : gimple_seq *lseq = seq;
22476 : 0 : if (lseq
22477 : 0 : && (!single_use (captures[0])
22478 : 0 : || !single_use (captures[2])))
22479 : 0 : lseq = NULL;
22480 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2605;
22481 : 0 : {
22482 : 0 : res_op->set_op (NEGATE_EXPR, type, 1);
22483 : 0 : {
22484 : 0 : tree _o1[2], _r1;
22485 : 0 : _o1[0] = captures[1];
22486 : 0 : _o1[1] = captures[3];
22487 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), CFN_BUILT_IN_FMINF16, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
22488 : 0 : tem_op.resimplify (lseq, valueize);
22489 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
22490 : 0 : if (!_r1) goto next_after_fail2605;
22491 : 0 : res_op->ops[0] = _r1;
22492 : : }
22493 : 0 : res_op->resimplify (lseq, valueize);
22494 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1191, __FILE__, __LINE__, true);
22495 : 0 : return true;
22496 : : }
22497 : 0 : next_after_fail2605:;
22498 : : }
22499 : : }
22500 : 0 : break;
22501 : : }
22502 : : default:;
22503 : : }
22504 : : }
22505 : : break;
22506 : : default:;
22507 : : }
22508 : : break;
22509 : : }
22510 : : default:;
22511 : : }
22512 : : }
22513 : : break;
22514 : : default:;
22515 : : }
22516 : : return false;
22517 : : }
22518 : :
22519 : : bool
22520 : 0 : gimple_simplify_CFN_BUILT_IN_FMAXF32X (gimple_match_op *res_op, gimple_seq *seq,
22521 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
22522 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0, tree _p1)
22523 : : {
22524 : 0 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
22525 : 0 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
22526 : : {
22527 : 0 : {
22528 : 0 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
22529 : 0 : if (gimple_simplify_605 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_FMAXF32X))
22530 : 0 : return true;
22531 : : }
22532 : : }
22533 : 0 : switch (TREE_CODE (_p1))
22534 : : {
22535 : 0 : case REAL_CST:
22536 : 0 : {
22537 : 0 : {
22538 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
22539 : 0 : if (gimple_simplify_606 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_FMAXF32X))
22540 : 0 : return true;
22541 : : }
22542 : 0 : break;
22543 : : }
22544 : 0 : default:;
22545 : : }
22546 : 0 : switch (TREE_CODE (_p0))
22547 : : {
22548 : 0 : case REAL_CST:
22549 : 0 : {
22550 : 0 : {
22551 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p1, _p0 };
22552 : 0 : if (gimple_simplify_606 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_FMAXF32X))
22553 : 0 : return true;
22554 : : }
22555 : 0 : break;
22556 : : }
22557 : 0 : default:;
22558 : : }
22559 : 0 : {
22560 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
22561 : 0 : if (gimple_simplify_608 (res_op, seq, valueize, type, captures, CFN_BUILT_IN_FMAXF32X))
22562 : 0 : return true;
22563 : : }
22564 : 0 : switch (TREE_CODE (_p0))
22565 : : {
22566 : 0 : case SSA_NAME:
22567 : 0 : if (gimple *_d1 = get_def (valueize, _p0))
22568 : : {
22569 : 0 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
22570 : 0 : switch (gimple_assign_rhs_code (_a1))
22571 : : {
22572 : 0 : case NEGATE_EXPR:
22573 : 0 : {
22574 : 0 : tree _q20 = gimple_assign_rhs1 (_a1);
22575 : 0 : _q20 = do_valueize (valueize, _q20);
22576 : 0 : switch (TREE_CODE (_p1))
22577 : : {
22578 : 0 : case SSA_NAME:
22579 : 0 : if (gimple *_d2 = get_def (valueize, _p1))
22580 : : {
22581 : 0 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
22582 : 0 : switch (gimple_assign_rhs_code (_a2))
22583 : : {
22584 : 0 : case NEGATE_EXPR:
22585 : 0 : {
22586 : 0 : tree _q40 = gimple_assign_rhs1 (_a2);
22587 : 0 : _q40 = do_valueize (valueize, _q40);
22588 : 0 : {
22589 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _q20, _p1, _q40 };
22590 : 0 : if (FLOAT_TYPE_P (TREE_TYPE (captures[1]))
22591 : 0 : || (ANY_INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
22592 : 0 : && TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (captures[1])))
22593 : : )
22594 : : {
22595 : 0 : gimple_seq *lseq = seq;
22596 : 0 : if (lseq
22597 : 0 : && (!single_use (captures[0])
22598 : 0 : || !single_use (captures[2])))
22599 : 0 : lseq = NULL;
22600 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2609;
22601 : 0 : {
22602 : 0 : res_op->set_op (NEGATE_EXPR, type, 1);
22603 : 0 : {
22604 : 0 : tree _o1[2], _r1;
22605 : 0 : _o1[0] = captures[1];
22606 : 0 : _o1[1] = captures[3];
22607 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), CFN_BUILT_IN_FMINF32X, TREE_TYPE (_o1[0]), _o1[0], _o1[1]);
22608 : 0 : tem_op.resimplify (lseq, valueize);
22609 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, lseq);
22610 : 0 : if (!_r1) goto next_after_fail2609;
22611 : 0 : res_op->ops[0] = _r1;
22612 : : }
22613 : 0 : res_op->resimplify (lseq, valueize);
22614 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1191, __FILE__, __LINE__, true);
22615 : 0 : return true;
22616 : : }
22617 : 0 : next_after_fail2609:;
22618 : : }
22619 : : }
22620 : 0 : break;
22621 : : }
22622 : : default:;
22623 : : }
22624 : : }
22625 : : break;
22626 : : default:;
22627 : : }
22628 : : break;
22629 : : }
22630 : : default:;
22631 : : }
22632 : : }
22633 : : break;
22634 : : default:;
22635 : : }
22636 : : return false;
22637 : : }
22638 : :
22639 : : bool
22640 : 89813 : gimple_simplify_RROTATE_EXPR (gimple_match_op *res_op, gimple_seq *seq,
22641 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
22642 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0, tree _p1)
22643 : : {
22644 : 89813 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
22645 : 89813 : if (integer_all_onesp (_p0))
22646 : : {
22647 : 4 : {
22648 : 4 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
22649 : 4 : if (gimple_simplify_609 (res_op, seq, valueize, type, captures, RROTATE_EXPR))
22650 : 4 : return true;
22651 : : }
22652 : : }
22653 : 89809 : if (integer_zerop (_p1))
22654 : : {
22655 : 26 : {
22656 : 26 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
22657 : 26 : if (gimple_simplify_402 (res_op, seq, valueize, type, captures, RROTATE_EXPR))
22658 : 26 : return true;
22659 : : }
22660 : : }
22661 : 89783 : if (integer_zerop (_p0))
22662 : : {
22663 : 0 : {
22664 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
22665 : 0 : if (gimple_simplify_403 (res_op, seq, valueize, type, captures, RROTATE_EXPR))
22666 : 0 : return true;
22667 : : }
22668 : : }
22669 : 89783 : switch (TREE_CODE (_p1))
22670 : : {
22671 : 18066 : case SSA_NAME:
22672 : 18066 : if (gimple *_d1 = get_def (valueize, _p1))
22673 : : {
22674 : 16865 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
22675 : 13535 : switch (gimple_assign_rhs_code (_a1))
22676 : : {
22677 : 0 : case CONSTRUCTOR:
22678 : 0 : {
22679 : 0 : {
22680 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
22681 : 0 : if (gimple_simplify_405 (res_op, seq, valueize, type, captures, RROTATE_EXPR))
22682 : 0 : return true;
22683 : : }
22684 : 0 : break;
22685 : : }
22686 : 100 : case MINUS_EXPR:
22687 : 100 : {
22688 : 100 : tree _q30 = gimple_assign_rhs1 (_a1);
22689 : 100 : _q30 = do_valueize (valueize, _q30);
22690 : 100 : tree _q31 = gimple_assign_rhs2 (_a1);
22691 : 100 : _q31 = do_valueize (valueize, _q31);
22692 : 100 : switch (TREE_CODE (_q30))
22693 : : {
22694 : 100 : case INTEGER_CST:
22695 : 100 : {
22696 : 100 : {
22697 : 100 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31 };
22698 : 100 : if (gimple_simplify_610 (res_op, seq, valueize, type, captures, RROTATE_EXPR, LROTATE_EXPR))
22699 : 7 : return true;
22700 : : }
22701 : 93 : break;
22702 : : }
22703 : : default:;
22704 : : }
22705 : : break;
22706 : : }
22707 : : default:;
22708 : : }
22709 : : }
22710 : : break;
22711 : 0 : case VECTOR_CST:
22712 : 0 : {
22713 : 0 : {
22714 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
22715 : 0 : if (gimple_simplify_404 (res_op, seq, valueize, type, captures, RROTATE_EXPR))
22716 : 0 : return true;
22717 : : }
22718 : 0 : break;
22719 : : }
22720 : 89776 : default:;
22721 : : }
22722 : 89776 : switch (TREE_CODE (_p0))
22723 : : {
22724 : 87084 : case SSA_NAME:
22725 : 87084 : if (gimple *_d1 = get_def (valueize, _p0))
22726 : : {
22727 : 70224 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
22728 : 41293 : switch (gimple_assign_rhs_code (_a1))
22729 : : {
22730 : 28 : case RROTATE_EXPR:
22731 : 28 : {
22732 : 28 : tree _q20 = gimple_assign_rhs1 (_a1);
22733 : 28 : _q20 = do_valueize (valueize, _q20);
22734 : 28 : tree _q21 = gimple_assign_rhs2 (_a1);
22735 : 28 : _q21 = do_valueize (valueize, _q21);
22736 : 28 : switch (TREE_CODE (_q21))
22737 : : {
22738 : 28 : case INTEGER_CST:
22739 : 28 : {
22740 : 28 : switch (TREE_CODE (_p1))
22741 : : {
22742 : 28 : case INTEGER_CST:
22743 : 28 : {
22744 : 28 : {
22745 : 28 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _q21, _p1 };
22746 : 28 : if (gimple_simplify_407 (res_op, seq, valueize, type, captures, RROTATE_EXPR))
22747 : 28 : return true;
22748 : : }
22749 : 0 : break;
22750 : : }
22751 : : default:;
22752 : : }
22753 : : break;
22754 : : }
22755 : : default:;
22756 : : }
22757 : : break;
22758 : : }
22759 : : default:;
22760 : : }
22761 : : }
22762 : : break;
22763 : : default:;
22764 : : }
22765 : : return false;
22766 : : }
22767 : :
22768 : : bool
22769 : 220740 : gimple_simplify_UNGT_EXPR (gimple_match_op *res_op, gimple_seq *seq,
22770 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
22771 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0, tree _p1)
22772 : : {
22773 : 220740 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
22774 : 220740 : switch (TREE_CODE (_p0))
22775 : : {
22776 : 220317 : case SSA_NAME:
22777 : 220317 : if (gimple *_d1 = get_def (valueize, _p0))
22778 : : {
22779 : 80501 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
22780 : 85776 : switch (gimple_assign_rhs_code (_a1))
22781 : : {
22782 : 0 : case VEC_COND_EXPR:
22783 : 0 : {
22784 : 0 : tree _q20 = gimple_assign_rhs1 (_a1);
22785 : 0 : _q20 = do_valueize (valueize, _q20);
22786 : 0 : tree _q21 = gimple_assign_rhs2 (_a1);
22787 : 0 : _q21 = do_valueize (valueize, _q21);
22788 : 0 : tree _q22 = gimple_assign_rhs3 (_a1);
22789 : 0 : _q22 = do_valueize (valueize, _q22);
22790 : 0 : switch (TREE_CODE (_p1))
22791 : : {
22792 : 0 : case SSA_NAME:
22793 : 0 : if (gimple *_d2 = get_def (valueize, _p1))
22794 : : {
22795 : 0 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
22796 : 0 : switch (gimple_assign_rhs_code (_a2))
22797 : : {
22798 : 0 : case VEC_COND_EXPR:
22799 : 0 : {
22800 : 0 : tree _q60 = gimple_assign_rhs1 (_a2);
22801 : 0 : _q60 = do_valueize (valueize, _q60);
22802 : 0 : tree _q61 = gimple_assign_rhs2 (_a2);
22803 : 0 : _q61 = do_valueize (valueize, _q61);
22804 : 0 : tree _q62 = gimple_assign_rhs3 (_a2);
22805 : 0 : _q62 = do_valueize (valueize, _q62);
22806 : 0 : if ((_q60 == _q20 && ! TREE_SIDE_EFFECTS (_q60)) || (operand_equal_p (_q60, _q20, 0) && types_match (_q60, _q20)))
22807 : : {
22808 : 0 : {
22809 : 0 : tree captures[7] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _q61, _q62 };
22810 : 0 : if (VECTOR_TYPE_P (type)
22811 : 0 : && (TREE_CODE_CLASS (UNGT_EXPR) != tcc_comparison
22812 : 0 : || types_match (type, TREE_TYPE (captures[2]))
22813 : 0 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
22814 : : || (optimize_vectors_before_lowering_p ()
22815 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
22816 : : )
22817 : : {
22818 : 0 : gimple_seq *lseq = seq;
22819 : 0 : if (lseq
22820 : 0 : && (!single_use (captures[0])
22821 : 0 : || !single_use (captures[4])))
22822 : 0 : lseq = NULL;
22823 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2631;
22824 : 0 : {
22825 : 0 : res_op->set_op (VEC_COND_EXPR, type, 3);
22826 : 0 : res_op->ops[0] = captures[1];
22827 : 0 : {
22828 : 0 : tree _o1[2], _r1;
22829 : 0 : _o1[0] = captures[2];
22830 : 0 : _o1[1] = captures[5];
22831 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), UNGT_EXPR, type, _o1[0], _o1[1]);
22832 : 0 : tem_op.resimplify (NULL, valueize);
22833 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, NULL);
22834 : 0 : if (!_r1) goto next_after_fail2631;
22835 : 0 : res_op->ops[1] = _r1;
22836 : : }
22837 : 0 : {
22838 : 0 : tree _o1[2], _r1;
22839 : 0 : _o1[0] = captures[3];
22840 : 0 : _o1[1] = captures[6];
22841 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), UNGT_EXPR, type, _o1[0], _o1[1]);
22842 : 0 : tem_op.resimplify (NULL, valueize);
22843 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, NULL);
22844 : 0 : if (!_r1) goto next_after_fail2631;
22845 : 0 : res_op->ops[2] = _r1;
22846 : : }
22847 : 0 : res_op->resimplify (lseq, valueize);
22848 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1033, __FILE__, __LINE__, true);
22849 : 0 : return true;
22850 : : }
22851 : 0 : next_after_fail2631:;
22852 : : }
22853 : : }
22854 : : }
22855 : : break;
22856 : : }
22857 : : default:;
22858 : : }
22859 : : }
22860 : : break;
22861 : 0 : default:;
22862 : : }
22863 : 0 : {
22864 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1 };
22865 : 0 : if (VECTOR_TYPE_P (type)
22866 : 0 : && (TREE_CODE_CLASS (UNGT_EXPR) != tcc_comparison
22867 : 0 : || types_match (type, TREE_TYPE (captures[2]))
22868 : 0 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[1]))
22869 : : || (optimize_vectors_before_lowering_p ()
22870 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[2]), TREE_TYPE (captures[1]))))
22871 : : )
22872 : : {
22873 : 0 : gimple_seq *lseq = seq;
22874 : 0 : if (lseq
22875 : 0 : && (!single_use (captures[0])))
22876 : 0 : lseq = NULL;
22877 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2632;
22878 : 0 : {
22879 : 0 : res_op->set_op (VEC_COND_EXPR, type, 3);
22880 : 0 : res_op->ops[0] = captures[1];
22881 : 0 : {
22882 : 0 : tree _o1[2], _r1;
22883 : 0 : _o1[0] = captures[2];
22884 : 0 : _o1[1] = captures[4];
22885 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), UNGT_EXPR, type, _o1[0], _o1[1]);
22886 : 0 : tem_op.resimplify (NULL, valueize);
22887 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, NULL);
22888 : 0 : if (!_r1) goto next_after_fail2632;
22889 : 0 : res_op->ops[1] = _r1;
22890 : : }
22891 : 0 : {
22892 : 0 : tree _o1[2], _r1;
22893 : 0 : _o1[0] = captures[3];
22894 : 0 : _o1[1] = captures[4];
22895 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), UNGT_EXPR, type, _o1[0], _o1[1]);
22896 : 0 : tem_op.resimplify (NULL, valueize);
22897 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, NULL);
22898 : 0 : if (!_r1) goto next_after_fail2632;
22899 : 0 : res_op->ops[2] = _r1;
22900 : : }
22901 : 0 : res_op->resimplify (lseq, valueize);
22902 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1034, __FILE__, __LINE__, true);
22903 : 0 : return true;
22904 : : }
22905 : 0 : next_after_fail2632:;
22906 : : }
22907 : : }
22908 : 0 : break;
22909 : : }
22910 : : default:;
22911 : : }
22912 : : }
22913 : : break;
22914 : 220740 : default:;
22915 : : }
22916 : 220740 : switch (TREE_CODE (_p1))
22917 : : {
22918 : 13462 : case SSA_NAME:
22919 : 13462 : if (gimple *_d1 = get_def (valueize, _p1))
22920 : : {
22921 : 8182 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
22922 : 11550 : switch (gimple_assign_rhs_code (_a1))
22923 : : {
22924 : 0 : case VEC_COND_EXPR:
22925 : 0 : {
22926 : 0 : tree _q30 = gimple_assign_rhs1 (_a1);
22927 : 0 : _q30 = do_valueize (valueize, _q30);
22928 : 0 : tree _q31 = gimple_assign_rhs2 (_a1);
22929 : 0 : _q31 = do_valueize (valueize, _q31);
22930 : 0 : tree _q32 = gimple_assign_rhs3 (_a1);
22931 : 0 : _q32 = do_valueize (valueize, _q32);
22932 : 0 : {
22933 : 0 : tree captures[5] ATTRIBUTE_UNUSED = { _p0, _p1, _q30, _q31, _q32 };
22934 : 0 : if (VECTOR_TYPE_P (type)
22935 : 0 : && (TREE_CODE_CLASS (UNGT_EXPR) != tcc_comparison
22936 : 0 : || types_match (type, TREE_TYPE (captures[3]))
22937 : 0 : || expand_vec_cond_expr_p (type, TREE_TYPE (captures[2]))
22938 : : || (optimize_vectors_before_lowering_p ()
22939 : 0 : && !expand_vec_cond_expr_p (TREE_TYPE (captures[3]), TREE_TYPE (captures[2]))))
22940 : : )
22941 : : {
22942 : 0 : gimple_seq *lseq = seq;
22943 : 0 : if (lseq
22944 : 0 : && (!single_use (captures[1])))
22945 : 0 : lseq = NULL;
22946 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2633;
22947 : 0 : {
22948 : 0 : res_op->set_op (VEC_COND_EXPR, type, 3);
22949 : 0 : res_op->ops[0] = captures[2];
22950 : 0 : {
22951 : 0 : tree _o1[2], _r1;
22952 : 0 : _o1[0] = captures[0];
22953 : 0 : _o1[1] = captures[3];
22954 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), UNGT_EXPR, type, _o1[0], _o1[1]);
22955 : 0 : tem_op.resimplify (NULL, valueize);
22956 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, NULL);
22957 : 0 : if (!_r1) goto next_after_fail2633;
22958 : 0 : res_op->ops[1] = _r1;
22959 : : }
22960 : 0 : {
22961 : 0 : tree _o1[2], _r1;
22962 : 0 : _o1[0] = captures[0];
22963 : 0 : _o1[1] = captures[4];
22964 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), UNGT_EXPR, type, _o1[0], _o1[1]);
22965 : 0 : tem_op.resimplify (NULL, valueize);
22966 : 0 : _r1 = maybe_push_res_to_seq (&tem_op, NULL);
22967 : 0 : if (!_r1) goto next_after_fail2633;
22968 : 0 : res_op->ops[2] = _r1;
22969 : : }
22970 : 0 : res_op->resimplify (lseq, valueize);
22971 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1035, __FILE__, __LINE__, true);
22972 : 0 : return true;
22973 : : }
22974 : 0 : next_after_fail2633:;
22975 : : }
22976 : : }
22977 : 0 : break;
22978 : : }
22979 : : default:;
22980 : : }
22981 : : }
22982 : : break;
22983 : 220740 : default:;
22984 : : }
22985 : 220740 : if ((_p1 == _p0 && ! TREE_SIDE_EFFECTS (_p1)) || (operand_equal_p (_p1, _p0, 0) && types_match (_p1, _p0)))
22986 : : {
22987 : 7 : {
22988 : 7 : tree captures[1] ATTRIBUTE_UNUSED = { _p0 };
22989 : 7 : if (gimple_simplify_637 (res_op, seq, valueize, type, captures, UNGT_EXPR))
22990 : 7 : return true;
22991 : : }
22992 : : }
22993 : 220733 : switch (TREE_CODE (_p0))
22994 : : {
22995 : 220310 : case SSA_NAME:
22996 : 220310 : if (gimple *_d1 = get_def (valueize, _p0))
22997 : : {
22998 : 80500 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
22999 : 85776 : switch (gimple_assign_rhs_code (_a1))
23000 : : {
23001 : 836 : case FLOAT_EXPR:
23002 : 836 : {
23003 : 836 : tree _q20 = gimple_assign_rhs1 (_a1);
23004 : 836 : _q20 = do_valueize (valueize, _q20);
23005 : 836 : switch (TREE_CODE (_p1))
23006 : : {
23007 : 0 : case SSA_NAME:
23008 : 0 : if (gimple *_d2 = get_def (valueize, _p1))
23009 : : {
23010 : 0 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
23011 : 0 : switch (gimple_assign_rhs_code (_a2))
23012 : : {
23013 : 0 : case FLOAT_EXPR:
23014 : 0 : {
23015 : 0 : tree _q40 = gimple_assign_rhs1 (_a2);
23016 : 0 : _q40 = do_valueize (valueize, _q40);
23017 : 0 : {
23018 : 0 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _q40 };
23019 : 0 : if (gimple_simplify_276 (res_op, seq, valueize, type, captures, UNGT_EXPR, GT_EXPR))
23020 : 0 : return true;
23021 : : }
23022 : 0 : break;
23023 : : }
23024 : : default:;
23025 : : }
23026 : : }
23027 : : break;
23028 : : default:;
23029 : : }
23030 : : break;
23031 : : }
23032 : 30 : case NEGATE_EXPR:
23033 : 30 : {
23034 : 30 : tree _q20 = gimple_assign_rhs1 (_a1);
23035 : 30 : _q20 = do_valueize (valueize, _q20);
23036 : 30 : switch (TREE_CODE (_p1))
23037 : : {
23038 : 30 : case SSA_NAME:
23039 : 30 : if (gimple *_d2 = get_def (valueize, _p1))
23040 : : {
23041 : 30 : if (gassign *_a2 = dyn_cast <gassign *> (_d2))
23042 : 30 : switch (gimple_assign_rhs_code (_a2))
23043 : : {
23044 : 30 : case NEGATE_EXPR:
23045 : 30 : {
23046 : 30 : tree _q40 = gimple_assign_rhs1 (_a2);
23047 : 30 : _q40 = do_valueize (valueize, _q40);
23048 : 30 : {
23049 : 30 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _q40 };
23050 : 30 : if (gimple_simplify_279 (res_op, seq, valueize, type, captures, UNGT_EXPR, UNLT_EXPR))
23051 : 30 : return true;
23052 : : }
23053 : 0 : break;
23054 : : }
23055 : : default:;
23056 : : }
23057 : : }
23058 : : break;
23059 : 0 : default:;
23060 : : }
23061 : 0 : if (CONSTANT_CLASS_P (_p1))
23062 : : {
23063 : 0 : {
23064 : 0 : tree captures[2] ATTRIBUTE_UNUSED = { _q20, _p1 };
23065 : 0 : if (gimple_simplify_280 (res_op, seq, valueize, type, captures, UNGT_EXPR, UNLT_EXPR))
23066 : 0 : return true;
23067 : : }
23068 : : }
23069 : : break;
23070 : : }
23071 : : default:;
23072 : : }
23073 : : }
23074 : : break;
23075 : 220703 : default:;
23076 : : }
23077 : 220703 : switch (TREE_CODE (_p1))
23078 : : {
23079 : 206976 : case REAL_CST:
23080 : 206976 : {
23081 : 206976 : {
23082 : 206976 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
23083 : 206976 : if (gimple_simplify_636 (res_op, seq, valueize, type, captures, UNGT_EXPR))
23084 : 0 : return true;
23085 : : }
23086 : 206976 : break;
23087 : : }
23088 : : default:;
23089 : : }
23090 : : return false;
23091 : : }
23092 : :
23093 : : bool
23094 : 296984 : gimple_simplify_CFN_MUL_OVERFLOW (gimple_match_op *res_op, gimple_seq *seq,
23095 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
23096 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0, tree _p1)
23097 : : {
23098 : 296984 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
23099 : 296984 : switch (TREE_CODE (_p0))
23100 : : {
23101 : 271577 : case SSA_NAME:
23102 : 271577 : if (gimple *_d1 = get_def (valueize, _p0))
23103 : : {
23104 : 188065 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
23105 : 16643 : switch (gimple_assign_rhs_code (_a1))
23106 : : {
23107 : 9054 : CASE_CONVERT:
23108 : 9054 : {
23109 : 9054 : tree _q20 = gimple_assign_rhs1 (_a1);
23110 : 9054 : _q20 = do_valueize (valueize, _q20);
23111 : 9054 : {
23112 : 9054 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _q20, _p1 };
23113 : 9054 : if (gimple_simplify_639 (res_op, seq, valueize, type, captures, CFN_MUL_OVERFLOW))
23114 : 6383 : return true;
23115 : : }
23116 : 2671 : break;
23117 : : }
23118 : : default:;
23119 : : }
23120 : : }
23121 : : break;
23122 : 290601 : default:;
23123 : : }
23124 : 290601 : switch (TREE_CODE (_p1))
23125 : : {
23126 : 79358 : case SSA_NAME:
23127 : 79358 : if (gimple *_d1 = get_def (valueize, _p1))
23128 : : {
23129 : 51695 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
23130 : 4872 : switch (gimple_assign_rhs_code (_a1))
23131 : : {
23132 : 1340 : CASE_CONVERT:
23133 : 1340 : {
23134 : 1340 : tree _q30 = gimple_assign_rhs1 (_a1);
23135 : 1340 : _q30 = do_valueize (valueize, _q30);
23136 : 1340 : {
23137 : 1340 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _q30 };
23138 : 1340 : if (gimple_simplify_640 (res_op, seq, valueize, type, captures, CFN_MUL_OVERFLOW))
23139 : 12 : return true;
23140 : : }
23141 : 1328 : break;
23142 : : }
23143 : : default:;
23144 : : }
23145 : : }
23146 : : break;
23147 : : default:;
23148 : : }
23149 : : return false;
23150 : : }
23151 : :
23152 : : bool
23153 : 2647 : gimple_simplify_CFN_BUILT_IN_LDEXP (gimple_match_op *res_op, gimple_seq *seq,
23154 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
23155 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0, tree _p1)
23156 : : {
23157 : 2647 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
23158 : 2647 : if (real_zerop (_p0))
23159 : : {
23160 : 28 : {
23161 : 28 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
23162 : 28 : if (gimple_simplify_652 (res_op, seq, valueize, type, captures))
23163 : 28 : return true;
23164 : : }
23165 : : }
23166 : 2619 : if (integer_zerop (_p1))
23167 : : {
23168 : 9 : {
23169 : 9 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
23170 : 9 : if (gimple_simplify_653 (res_op, seq, valueize, type, captures))
23171 : 9 : return true;
23172 : : }
23173 : : }
23174 : 2610 : switch (TREE_CODE (_p0))
23175 : : {
23176 : 1106 : case REAL_CST:
23177 : 1106 : {
23178 : 1106 : {
23179 : 1106 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
23180 : 1106 : if (!real_isfinite (TREE_REAL_CST_PTR (captures[0]))
23181 : : )
23182 : : {
23183 : 56 : gimple_seq *lseq = seq;
23184 : 56 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2645;
23185 : 56 : {
23186 : 56 : tree tem;
23187 : 56 : tem = captures[0];
23188 : 56 : res_op->set_value (tem);
23189 : 56 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1203, __FILE__, __LINE__, true);
23190 : 56 : return true;
23191 : : }
23192 : 0 : next_after_fail2645:;
23193 : : }
23194 : : }
23195 : 1050 : break;
23196 : : }
23197 : : default:;
23198 : : }
23199 : : return false;
23200 : : }
23201 : :
23202 : : bool
23203 : 1020 : gimple_simplify_CFN_BUILT_IN_SCALBLN (gimple_match_op *res_op, gimple_seq *seq,
23204 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
23205 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0, tree _p1)
23206 : : {
23207 : 1020 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
23208 : 1020 : if (real_zerop (_p0))
23209 : : {
23210 : 28 : {
23211 : 28 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
23212 : 28 : if (gimple_simplify_652 (res_op, seq, valueize, type, captures))
23213 : 28 : return true;
23214 : : }
23215 : : }
23216 : 992 : if (integer_zerop (_p1))
23217 : : {
23218 : 7 : {
23219 : 7 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
23220 : 7 : if (gimple_simplify_653 (res_op, seq, valueize, type, captures))
23221 : 7 : return true;
23222 : : }
23223 : : }
23224 : 985 : switch (TREE_CODE (_p0))
23225 : : {
23226 : 880 : case REAL_CST:
23227 : 880 : {
23228 : 880 : {
23229 : 880 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
23230 : 880 : if (!real_isfinite (TREE_REAL_CST_PTR (captures[0]))
23231 : : )
23232 : : {
23233 : 56 : gimple_seq *lseq = seq;
23234 : 56 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2652;
23235 : 56 : {
23236 : 56 : tree tem;
23237 : 56 : tem = captures[0];
23238 : 56 : res_op->set_value (tem);
23239 : 56 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1203, __FILE__, __LINE__, true);
23240 : 56 : return true;
23241 : : }
23242 : 0 : next_after_fail2652:;
23243 : : }
23244 : : }
23245 : 824 : break;
23246 : : }
23247 : : default:;
23248 : : }
23249 : : return false;
23250 : : }
23251 : :
23252 : : bool
23253 : 1063424 : gimple_simplify_BIT_FIELD_REF (gimple_match_op *res_op, gimple_seq *seq,
23254 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
23255 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0, tree _p1, tree _p2)
23256 : : {
23257 : 1063424 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
23258 : 1063424 : switch (TREE_CODE (_p0))
23259 : : {
23260 : 1063190 : case SSA_NAME:
23261 : 1063190 : if (gimple *_d1 = get_def (valueize, _p0))
23262 : : {
23263 : 708646 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
23264 : 920631 : switch (gimple_assign_rhs_code (_a1))
23265 : : {
23266 : 471 : case BIT_FIELD_REF:
23267 : 471 : {
23268 : 471 : tree _q20 = TREE_OPERAND (gimple_assign_rhs1 (_a1), 0);
23269 : 471 : if ((TREE_CODE (_q20) == SSA_NAME
23270 : 471 : || is_gimple_min_invariant (_q20)))
23271 : : {
23272 : 433 : _q20 = do_valueize (valueize, _q20);
23273 : 433 : tree _q21 = TREE_OPERAND (gimple_assign_rhs1 (_a1), 1);
23274 : 433 : if ((TREE_CODE (_q21) == SSA_NAME
23275 : 433 : || is_gimple_min_invariant (_q21)))
23276 : : {
23277 : 433 : _q21 = do_valueize (valueize, _q21);
23278 : 433 : tree _q22 = TREE_OPERAND (gimple_assign_rhs1 (_a1), 2);
23279 : 433 : if ((TREE_CODE (_q22) == SSA_NAME
23280 : 433 : || is_gimple_min_invariant (_q22)))
23281 : : {
23282 : 433 : _q22 = do_valueize (valueize, _q22);
23283 : 433 : {
23284 : 433 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _p1, _p2 };
23285 : 433 : gimple_seq *lseq = seq;
23286 : 433 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2852;
23287 : 433 : {
23288 : 433 : res_op->set_op (BIT_FIELD_REF, type, 3);
23289 : 433 : res_op->ops[0] = captures[0];
23290 : 433 : res_op->ops[1] = captures[3];
23291 : 433 : res_op->ops[2] = const_binop (PLUS_EXPR, bitsizetype, captures[2], captures[4]);
23292 : 433 : res_op->resimplify (lseq, valueize);
23293 : 433 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1246, __FILE__, __LINE__, true);
23294 : 433 : return true;
23295 : : }
23296 : 0 : next_after_fail2852:;
23297 : : }
23298 : : }
23299 : : }
23300 : : }
23301 : : break;
23302 : : }
23303 : 47277 : case VIEW_CONVERT_EXPR:
23304 : 47277 : {
23305 : 47277 : tree _q20 = TREE_OPERAND (gimple_assign_rhs1 (_a1), 0);
23306 : 47277 : if ((TREE_CODE (_q20) == SSA_NAME
23307 : 47277 : || is_gimple_min_invariant (_q20)))
23308 : : {
23309 : 47261 : _q20 = do_valueize (valueize, _q20);
23310 : 47261 : {
23311 : 47261 : tree captures[3] ATTRIBUTE_UNUSED = { _q20, _p1, _p2 };
23312 : 94522 : if (! INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
23313 : 47305 : || type_has_mode_precision_p (TREE_TYPE (captures[0]))
23314 : : )
23315 : : {
23316 : 47237 : gimple_seq *lseq = seq;
23317 : 47237 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2853;
23318 : 47237 : {
23319 : 47237 : res_op->set_op (BIT_FIELD_REF, type, 3);
23320 : 47237 : res_op->ops[0] = captures[0];
23321 : 47237 : res_op->ops[1] = captures[1];
23322 : 47237 : res_op->ops[2] = captures[2];
23323 : 47237 : res_op->resimplify (lseq, valueize);
23324 : 47237 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1247, __FILE__, __LINE__, true);
23325 : 47237 : return true;
23326 : : }
23327 : 0 : next_after_fail2853:;
23328 : : }
23329 : : }
23330 : : }
23331 : : break;
23332 : : }
23333 : : default:;
23334 : : }
23335 : : }
23336 : : break;
23337 : 1015754 : default:;
23338 : : }
23339 : 1015754 : if (integer_zerop (_p2))
23340 : : {
23341 : 384893 : {
23342 : 384893 : tree captures[2] ATTRIBUTE_UNUSED = { _p0, _p1 };
23343 : 384893 : if (tree_int_cst_equal (captures[1], TYPE_SIZE (TREE_TYPE (captures[0])))
23344 : : )
23345 : : {
23346 : 1694 : gimple_seq *lseq = seq;
23347 : 1694 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2854;
23348 : 1694 : {
23349 : 1694 : res_op->set_op (VIEW_CONVERT_EXPR, type, 1);
23350 : 1694 : res_op->ops[0] = captures[0];
23351 : 1694 : res_op->resimplify (lseq, valueize);
23352 : 1694 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1248, __FILE__, __LINE__, true);
23353 : 1694 : return true;
23354 : : }
23355 : 0 : next_after_fail2854:;
23356 : : }
23357 : : }
23358 : : }
23359 : 1014060 : {
23360 : 1014060 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _p2 };
23361 : 1014060 : if (TREE_CODE (TREE_TYPE (captures[0])) == COMPLEX_TYPE
23362 : 1014060 : && tree_int_cst_equal (captures[1], TYPE_SIZE (TREE_TYPE (TREE_TYPE (captures[0]))))
23363 : : )
23364 : : {
23365 : 201 : if (integer_zerop (captures[2])
23366 : : )
23367 : : {
23368 : 102 : gimple_seq *lseq = seq;
23369 : 102 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2855;
23370 : 102 : {
23371 : 102 : res_op->set_op (VIEW_CONVERT_EXPR, type, 1);
23372 : 102 : {
23373 : 102 : tree _o1[1], _r1;
23374 : 102 : _o1[0] = captures[0];
23375 : 102 : (*res_op).set_op (REALPART_EXPR, TREE_TYPE (TREE_TYPE (_o1[0])), 1);
23376 : 102 : (*res_op).ops[0] = _o1[0];
23377 : 102 : (*res_op).resimplify (lseq, valueize);
23378 : : }
23379 : 102 : if (type != res_op->type
23380 : 102 : && !useless_type_conversion_p (type, res_op->type))
23381 : : {
23382 : 4 : if (!(res_op->ops[0] = maybe_push_res_to_seq (res_op, lseq))) goto next_after_fail2855;
23383 : 2 : res_op->set_op (VIEW_CONVERT_EXPR, type, 1);
23384 : 2 : res_op->resimplify (lseq, valueize);
23385 : : }
23386 : 100 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1249, __FILE__, __LINE__, true);
23387 : 100 : return true;
23388 : : }
23389 : 1011878 : next_after_fail2855:;
23390 : : }
23391 : : else
23392 : : {
23393 : 99 : if (tree_int_cst_equal (captures[2], TYPE_SIZE (TREE_TYPE (TREE_TYPE (captures[0]))))
23394 : : )
23395 : : {
23396 : 97 : gimple_seq *lseq = seq;
23397 : 97 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2856;
23398 : 97 : {
23399 : 97 : res_op->set_op (VIEW_CONVERT_EXPR, type, 1);
23400 : 97 : {
23401 : 97 : tree _o1[1], _r1;
23402 : 97 : _o1[0] = captures[0];
23403 : 97 : (*res_op).set_op (IMAGPART_EXPR, TREE_TYPE (TREE_TYPE (_o1[0])), 1);
23404 : 97 : (*res_op).ops[0] = _o1[0];
23405 : 97 : (*res_op).resimplify (lseq, valueize);
23406 : : }
23407 : 97 : if (type != res_op->type
23408 : 97 : && !useless_type_conversion_p (type, res_op->type))
23409 : : {
23410 : 4 : if (!(res_op->ops[0] = maybe_push_res_to_seq (res_op, lseq))) goto next_after_fail2856;
23411 : 2 : res_op->set_op (VIEW_CONVERT_EXPR, type, 1);
23412 : 2 : res_op->resimplify (lseq, valueize);
23413 : : }
23414 : 95 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1250, __FILE__, __LINE__, true);
23415 : 95 : return true;
23416 : : }
23417 : 1011878 : next_after_fail2856:;
23418 : : }
23419 : : }
23420 : : }
23421 : : else
23422 : : {
23423 : 2027610 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[0]))
23424 : 36356 : && INTEGRAL_TYPE_P (type)
23425 : 34238 : && (!
23426 : : 1
23427 : 34238 : || is_gimple_reg (captures[0]))
23428 : 1048097 : && ((compare_tree_int (captures[1], TYPE_PRECISION (TREE_TYPE (captures[0]))) == 0
23429 : 0 : && integer_zerop (captures[2]))
23430 : : || (BYTES_BIG_ENDIAN == WORDS_BIG_ENDIAN
23431 : : && canonicalize_math_after_vectorization_p ()
23432 : 6540 : && TYPE_PRECISION (TREE_TYPE (captures[0])) % BITS_PER_UNIT == 0
23433 : 6540 : && TYPE_PRECISION (type) % BITS_PER_UNIT == 0
23434 : 6226 : && compare_tree_int (captures[2], (BYTES_BIG_ENDIAN
23435 : : ? (TYPE_PRECISION (TREE_TYPE (captures[0]))
23436 : : - TYPE_PRECISION (type))
23437 : : : 0)) == 0))
23438 : : )
23439 : : {
23440 : 1987 : gimple_seq *lseq = seq;
23441 : 1987 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2857;
23442 : 1987 : {
23443 : 1987 : res_op->set_op (NOP_EXPR, type, 1);
23444 : 1987 : res_op->ops[0] = captures[0];
23445 : 1987 : res_op->resimplify (lseq, valueize);
23446 : 1987 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1251, __FILE__, __LINE__, true);
23447 : 1987 : return true;
23448 : : }
23449 : 0 : next_after_fail2857:;
23450 : : }
23451 : : }
23452 : : }
23453 : 1011878 : switch (TREE_CODE (_p0))
23454 : : {
23455 : 1011644 : case SSA_NAME:
23456 : 1011644 : if (gimple *_d1 = get_def (valueize, _p0))
23457 : : {
23458 : 658303 : if (gassign *_a1 = dyn_cast <gassign *> (_d1))
23459 : 822992 : switch (gimple_assign_rhs_code (_a1))
23460 : : {
23461 : 24824 : case CONSTRUCTOR:
23462 : 24824 : {
23463 : 24824 : {
23464 : 24824 : tree captures[3] ATTRIBUTE_UNUSED = { _p0, _p1, _p2 };
23465 : 24824 : if (VECTOR_TYPE_P (TREE_TYPE (captures[0]))
23466 : 24824 : && tree_fits_uhwi_p (TYPE_SIZE (type))
23467 : 49648 : && ((tree_to_uhwi (TYPE_SIZE (type))
23468 : 24824 : == tree_to_uhwi (TYPE_SIZE (TREE_TYPE (TREE_TYPE (captures[0])))))
23469 : 7113 : || (VECTOR_TYPE_P (type)
23470 : 4498 : && (tree_to_uhwi (TYPE_SIZE (TREE_TYPE (type)))
23471 : 4498 : == tree_to_uhwi (TYPE_SIZE (TREE_TYPE (TREE_TYPE (captures[0])))))))
23472 : : )
23473 : : {
23474 : 21014 : {
23475 : 21014 : tree ctor = (TREE_CODE (captures[0]) == SSA_NAME
23476 : 21014 : ? gimple_assign_rhs1 (SSA_NAME_DEF_STMT (captures[0])) : captures[0]);
23477 : 21014 : tree eltype = TREE_TYPE (TREE_TYPE (ctor));
23478 : 21014 : unsigned HOST_WIDE_INT width = tree_to_uhwi (TYPE_SIZE (eltype));
23479 : 21014 : unsigned HOST_WIDE_INT n = tree_to_uhwi (captures[1]);
23480 : 21014 : unsigned HOST_WIDE_INT idx = tree_to_uhwi (captures[2]);
23481 : 21014 : if (n != 0
23482 : 21014 : && (idx % width) == 0
23483 : 21014 : && (n % width) == 0
23484 : 42028 : && known_le ((idx + n) / width,
23485 : : TYPE_VECTOR_SUBPARTS (TREE_TYPE (ctor)))
23486 : : )
23487 : : {
23488 : 21014 : {
23489 : 21014 : idx = idx / width;
23490 : 21014 : n = n / width;
23491 : 21014 : poly_uint64 k = 1;
23492 : 21014 : if (CONSTRUCTOR_NELTS (ctor) != 0)
23493 : : {
23494 : 21014 : tree cons_elem = TREE_TYPE (CONSTRUCTOR_ELT (ctor, 0)->value);
23495 : 21014 : if (TREE_CODE (cons_elem) == VECTOR_TYPE)
23496 : 4293 : k = TYPE_VECTOR_SUBPARTS (cons_elem);
23497 : : }
23498 : 21014 : unsigned HOST_WIDE_INT elt, count, const_k;
23499 : 21014 : if (multiple_p (idx, k, &elt) && multiple_p (n, k, &count)
23500 : : )
23501 : : {
23502 : 17901 : if (CONSTRUCTOR_NELTS (ctor) == 0
23503 : : )
23504 : : {
23505 : 0 : gimple_seq *lseq = seq;
23506 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2858;
23507 : 0 : {
23508 : 0 : tree tem;
23509 : 0 : tem = build_zero_cst (type);
23510 : 0 : res_op->set_value (tem);
23511 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1252, __FILE__, __LINE__, true);
23512 : 18779 : return true;
23513 : : }
23514 : 0 : next_after_fail2858:;
23515 : : }
23516 : : else
23517 : : {
23518 : 17901 : if (count == 1
23519 : : )
23520 : : {
23521 : 15660 : if (elt < CONSTRUCTOR_NELTS (ctor)
23522 : : )
23523 : : {
23524 : 15466 : gimple_seq *lseq = seq;
23525 : 15466 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2859;
23526 : 15466 : {
23527 : 15466 : res_op->set_op (VIEW_CONVERT_EXPR, type, 1);
23528 : 15466 : res_op->ops[0] = CONSTRUCTOR_ELT (ctor, elt)->value;
23529 : 15466 : res_op->resimplify (lseq, valueize);
23530 : 15466 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1253, __FILE__, __LINE__, true);
23531 : 15466 : return true;
23532 : : }
23533 : 0 : next_after_fail2859:;
23534 : : }
23535 : : else
23536 : : {
23537 : 194 : gimple_seq *lseq = seq;
23538 : 194 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2860;
23539 : 194 : {
23540 : 194 : tree tem;
23541 : 194 : tem = build_zero_cst (type);
23542 : 194 : res_op->set_value (tem);
23543 : 194 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1254, __FILE__, __LINE__, true);
23544 : 194 : return true;
23545 : : }
23546 : 0 : next_after_fail2860:;
23547 : : }
23548 : : }
23549 : : else
23550 : : {
23551 : 2241 : if (single_use (captures[0])
23552 : : )
23553 : : {
23554 : 383 : {
23555 : 383 : vec<constructor_elt, va_gc> *vals;
23556 : 383 : vec_alloc (vals, count);
23557 : 383 : bool constant_p = true;
23558 : 383 : tree res;
23559 : 2160 : for (unsigned i = 0;
23560 : 2160 : i < count && elt + i < CONSTRUCTOR_NELTS (ctor); ++i)
23561 : : {
23562 : 1777 : tree e = CONSTRUCTOR_ELT (ctor, elt + i)->value;
23563 : 1777 : CONSTRUCTOR_APPEND_ELT (vals, NULL_TREE, e);
23564 : 1777 : if (!CONSTANT_CLASS_P (e))
23565 : 1301 : constant_p = false;
23566 : : }
23567 : 383 : tree evtype = (types_match (TREE_TYPE (type),
23568 : 383 : TREE_TYPE (TREE_TYPE (ctor)))
23569 : 383 : ? type
23570 : 1 : : build_vector_type (TREE_TYPE (TREE_TYPE (ctor)),
23571 : 1 : count * k));
23572 : 383 : res = (constant_p ? build_vector_from_ctor (evtype, vals)
23573 : : : (
23574 : : 1
23575 : : ? NULL_TREE : build_constructor (evtype, vals)));
23576 : 6 : if (res
23577 : : )
23578 : : {
23579 : 6 : gimple_seq *lseq = seq;
23580 : 6 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2861;
23581 : 6 : {
23582 : 6 : res_op->set_op (VIEW_CONVERT_EXPR, type, 1);
23583 : 6 : res_op->ops[0] = res;
23584 : 6 : res_op->resimplify (lseq, valueize);
23585 : 6 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1255, __FILE__, __LINE__, true);
23586 : 6 : return true;
23587 : : }
23588 : 0 : next_after_fail2861:;
23589 : : }
23590 : : }
23591 : : }
23592 : : }
23593 : : }
23594 : : }
23595 : : else
23596 : : {
23597 : 3113 : if (k.is_constant (&const_k)
23598 : 3113 : && idx + n <= (idx / const_k + 1) * const_k
23599 : : )
23600 : : {
23601 : 3113 : if (CONSTRUCTOR_NELTS (ctor) <= idx / const_k
23602 : : )
23603 : : {
23604 : 0 : gimple_seq *lseq = seq;
23605 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2862;
23606 : 0 : {
23607 : 0 : tree tem;
23608 : 0 : tem = build_zero_cst (type);
23609 : 0 : res_op->set_value (tem);
23610 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1256, __FILE__, __LINE__, true);
23611 : 0 : return true;
23612 : : }
23613 : 0 : next_after_fail2862:;
23614 : : }
23615 : : else
23616 : : {
23617 : 3113 : if (n == const_k
23618 : : )
23619 : : {
23620 : 0 : gimple_seq *lseq = seq;
23621 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2863;
23622 : 0 : {
23623 : 0 : res_op->set_op (VIEW_CONVERT_EXPR, type, 1);
23624 : 0 : res_op->ops[0] = CONSTRUCTOR_ELT (ctor, idx / const_k)->value;
23625 : 0 : res_op->resimplify (lseq, valueize);
23626 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1257, __FILE__, __LINE__, true);
23627 : 0 : return true;
23628 : : }
23629 : 0 : next_after_fail2863:;
23630 : : }
23631 : : else
23632 : : {
23633 : 3113 : gimple_seq *lseq = seq;
23634 : 3113 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2864;
23635 : 3113 : {
23636 : 3113 : res_op->set_op (BIT_FIELD_REF, type, 3);
23637 : 3113 : res_op->ops[0] = CONSTRUCTOR_ELT (ctor, idx / const_k)->value;
23638 : 3113 : res_op->ops[1] = captures[1];
23639 : 3113 : res_op->ops[2] = bitsize_int ((idx % const_k) * width);
23640 : 3113 : res_op->resimplify (lseq, valueize);
23641 : 3113 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1258, __FILE__, __LINE__, true);
23642 : 3113 : return true;
23643 : : }
23644 : 0 : next_after_fail2864:;
23645 : : }
23646 : : }
23647 : : }
23648 : : }
23649 : : }
23650 : : }
23651 : : }
23652 : : }
23653 : : }
23654 : 6045 : break;
23655 : : }
23656 : 40657 : case VEC_PERM_EXPR:
23657 : 40657 : {
23658 : 40657 : tree _q20 = gimple_assign_rhs1 (_a1);
23659 : 40657 : _q20 = do_valueize (valueize, _q20);
23660 : 40657 : tree _q21 = gimple_assign_rhs2 (_a1);
23661 : 40657 : _q21 = do_valueize (valueize, _q21);
23662 : 40657 : tree _q22 = gimple_assign_rhs3 (_a1);
23663 : 40657 : _q22 = do_valueize (valueize, _q22);
23664 : 40657 : switch (TREE_CODE (_q22))
23665 : : {
23666 : 40657 : case VECTOR_CST:
23667 : 40657 : {
23668 : 40657 : {
23669 : 40657 : tree captures[6] ATTRIBUTE_UNUSED = { _p0, _q20, _q21, _q22, _p1, _p2 };
23670 : 40657 : {
23671 : 40657 : tree elem_type = TREE_TYPE (TREE_TYPE (captures[0]));
23672 : 40657 : poly_uint64 elem_size = tree_to_poly_uint64 (TYPE_SIZE (elem_type));
23673 : 40657 : poly_uint64 size = tree_to_poly_uint64 (TYPE_SIZE (type));
23674 : 40657 : unsigned HOST_WIDE_INT nelts, idx;
23675 : 40657 : unsigned HOST_WIDE_INT nelts_op = 0;
23676 : 40657 : if (constant_multiple_p (tree_to_poly_uint64 (captures[5]), elem_size, &idx)
23677 : 40657 : && VECTOR_CST_NELTS (captures[3]).is_constant (&nelts)
23678 : 40657 : && (known_eq (size, elem_size)
23679 : 28097 : || (constant_multiple_p (size, elem_size, &nelts_op)
23680 : 28097 : && pow2p_hwi (nelts_op)))
23681 : : )
23682 : : {
23683 : 40657 : {
23684 : 40657 : bool ok = true;
23685 : 40657 : if (known_eq (size, elem_size))
23686 : 12560 : idx = TREE_INT_CST_LOW (VECTOR_CST_ELT (captures[3], idx)) % (2 * nelts);
23687 : : else
23688 : : {
23689 : 28097 : unsigned start
23690 : 28097 : = TREE_INT_CST_LOW (vector_cst_elt (captures[3], idx)) % (2 * nelts);
23691 : 28097 : unsigned end
23692 : 28097 : = (TREE_INT_CST_LOW (vector_cst_elt (captures[3], idx + nelts_op - 1))
23693 : 28097 : % (2 * nelts));
23694 : 28097 : if ((start < nelts) != (end < nelts))
23695 : : ok = false;
23696 : : else
23697 : 685 : for (unsigned HOST_WIDE_INT i = 1; i != nelts_op; i++)
23698 : : {
23699 : 505 : if ((TREE_INT_CST_LOW (vector_cst_elt (captures[3], idx + i))
23700 : 505 : % (2 * nelts) - 1)
23701 : 505 : != (TREE_INT_CST_LOW (vector_cst_elt (captures[3], idx + i - 1))
23702 : 505 : % (2 * nelts)))
23703 : : {
23704 : : ok = false;
23705 : : break;
23706 : : }
23707 : : }
23708 : 28097 : if (start % nelts_op)
23709 : : ok = false;
23710 : 14803 : idx = start;
23711 : : }
23712 : 27363 : if (ok
23713 : : )
23714 : : {
23715 : 12729 : if (idx < nelts
23716 : : )
23717 : : {
23718 : 10170 : gimple_seq *lseq = seq;
23719 : 10170 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2865;
23720 : 10170 : {
23721 : 10170 : res_op->set_op (BIT_FIELD_REF, type, 3);
23722 : 10170 : res_op->ops[0] = captures[1];
23723 : 10170 : res_op->ops[1] = captures[4];
23724 : 10170 : res_op->ops[2] = bitsize_int (idx * elem_size);
23725 : 10170 : res_op->resimplify (lseq, valueize);
23726 : 10170 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1259, __FILE__, __LINE__, true);
23727 : 12729 : return true;
23728 : : }
23729 : 0 : next_after_fail2865:;
23730 : : }
23731 : : else
23732 : : {
23733 : 2559 : gimple_seq *lseq = seq;
23734 : 2559 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2866;
23735 : 2559 : {
23736 : 2559 : res_op->set_op (BIT_FIELD_REF, type, 3);
23737 : 2559 : res_op->ops[0] = captures[2];
23738 : 2559 : res_op->ops[1] = captures[4];
23739 : 2559 : res_op->ops[2] = bitsize_int ((idx - nelts) * elem_size);
23740 : 2559 : res_op->resimplify (lseq, valueize);
23741 : 2559 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1260, __FILE__, __LINE__, true);
23742 : 2559 : return true;
23743 : : }
23744 : 0 : next_after_fail2866:;
23745 : : }
23746 : : }
23747 : : }
23748 : : }
23749 : : }
23750 : : }
23751 : 27928 : break;
23752 : : }
23753 : : default:;
23754 : : }
23755 : : break;
23756 : : }
23757 : 1406 : case BIT_INSERT_EXPR:
23758 : 1406 : {
23759 : 1406 : tree _q20 = gimple_assign_rhs1 (_a1);
23760 : 1406 : _q20 = do_valueize (valueize, _q20);
23761 : 1406 : tree _q21 = gimple_assign_rhs2 (_a1);
23762 : 1406 : _q21 = do_valueize (valueize, _q21);
23763 : 1406 : tree _q22 = gimple_assign_rhs3 (_a1);
23764 : 1406 : _q22 = do_valueize (valueize, _q22);
23765 : 1406 : {
23766 : 1406 : tree captures[5] ATTRIBUTE_UNUSED = { _q20, _q21, _q22, _p1, _p2 };
23767 : 1406 : {
23768 : 1406 : unsigned HOST_WIDE_INT isize;
23769 : 1406 : if (INTEGRAL_TYPE_P (TREE_TYPE (captures[1])))
23770 : 1316 : isize = TYPE_PRECISION (TREE_TYPE (captures[1]));
23771 : : else
23772 : 90 : isize = tree_to_uhwi (TYPE_SIZE (TREE_TYPE (captures[1])));
23773 : 2812 : if ((!INTEGRAL_TYPE_P (TREE_TYPE (captures[1]))
23774 : 1316 : || type_has_mode_precision_p (TREE_TYPE (captures[1])))
23775 : 1370 : && wi::leu_p (wi::to_wide (captures[2]), wi::to_wide (captures[4]))
23776 : 2098 : && wi::leu_p (wi::to_wide (captures[4]) + wi::to_wide (captures[3]),
23777 : 2098 : wi::to_wide (captures[2]) + isize)
23778 : : )
23779 : : {
23780 : 275 : gimple_seq *lseq = seq;
23781 : 275 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2867;
23782 : 275 : {
23783 : 275 : res_op->set_op (BIT_FIELD_REF, type, 3);
23784 : 275 : res_op->ops[0] = captures[1];
23785 : 275 : res_op->ops[1] = captures[3];
23786 : 275 : res_op->ops[2] = wide_int_to_tree (bitsizetype,
23787 : 275 : wi::to_wide (captures[4])
23788 : 550 : - wi::to_wide (captures[2]));
23789 : 275 : res_op->resimplify (lseq, valueize);
23790 : 275 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1261, __FILE__, __LINE__, true);
23791 : 1344 : return true;
23792 : : }
23793 : 0 : next_after_fail2867:;
23794 : : }
23795 : : else
23796 : : {
23797 : 1131 : if (wi::eq_p (wi::to_wide (captures[2]), wi::to_wide (captures[4]))
23798 : 1131 : && compare_tree_int (captures[3], isize) == 0
23799 : : )
23800 : : {
23801 : 5 : gimple_seq *lseq = seq;
23802 : 5 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2868;
23803 : 5 : {
23804 : 5 : res_op->set_op (NOP_EXPR, type, 1);
23805 : 5 : res_op->ops[0] = captures[1];
23806 : 5 : res_op->resimplify (lseq, valueize);
23807 : 5 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1262, __FILE__, __LINE__, true);
23808 : 5 : return true;
23809 : : }
23810 : 0 : next_after_fail2868:;
23811 : : }
23812 : : else
23813 : : {
23814 : 1126 : if (wi::geu_p (wi::to_wide (captures[2]),
23815 : 2252 : wi::to_wide (captures[4]) + wi::to_wide (captures[3]))
23816 : 1273 : || wi::geu_p (wi::to_wide (captures[4]),
23817 : 1273 : wi::to_wide (captures[2]) + isize)
23818 : : )
23819 : : {
23820 : 1064 : gimple_seq *lseq = seq;
23821 : 1064 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2869;
23822 : 1064 : {
23823 : 1064 : res_op->set_op (BIT_FIELD_REF, type, 3);
23824 : 1064 : res_op->ops[0] = captures[0];
23825 : 1064 : res_op->ops[1] = captures[3];
23826 : 1064 : res_op->ops[2] = captures[4];
23827 : 1064 : res_op->resimplify (lseq, valueize);
23828 : 1064 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1263, __FILE__, __LINE__, true);
23829 : 1064 : return true;
23830 : : }
23831 : 0 : next_after_fail2869:;
23832 : : }
23833 : : }
23834 : : }
23835 : : }
23836 : : }
23837 : 62 : break;
23838 : : }
23839 : : default:;
23840 : : }
23841 : : }
23842 : : break;
23843 : : default:;
23844 : : }
23845 : : return false;
23846 : : }
23847 : :
23848 : : bool
23849 : 903 : gimple_simplify_CFN_COND_MUL (gimple_match_op *res_op, gimple_seq *seq,
23850 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
23851 : : code_helper ARG_UNUSED (code), tree ARG_UNUSED (type), tree _p0, tree _p1, tree _p2, tree _p3)
23852 : : {
23853 : 903 : const bool debug_dump = dump_file && (dump_flags & TDF_FOLDING);
23854 : 903 : switch (TREE_CODE (_p2))
23855 : : {
23856 : 869 : case SSA_NAME:
23857 : 869 : if (gimple *_d1 = get_def (valueize, _p2))
23858 : : {
23859 : 377 : if (gcall *_c1 = dyn_cast <gcall *> (_d1))
23860 : 28 : switch (gimple_call_combined_fn (_c1))
23861 : : {
23862 : 0 : case CFN_COPYSIGN:
23863 : 0 : if (gimple_call_num_args (_c1) == 2)
23864 : : {
23865 : 0 : tree _q40 = gimple_call_arg (_c1, 0);
23866 : 0 : _q40 = do_valueize (valueize, _q40);
23867 : 0 : tree _q41 = gimple_call_arg (_c1, 1);
23868 : 0 : _q41 = do_valueize (valueize, _q41);
23869 : 0 : if (real_onep (_q40))
23870 : : {
23871 : 0 : {
23872 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p1, _q41, _p3 };
23873 : 0 : {
23874 : 0 : tree signs = sign_mask_for (type);
23875 : 0 : if (signs
23876 : : )
23877 : : {
23878 : 0 : {
23879 : 0 : tree inttype = TREE_TYPE (signs);
23880 : 0 : gimple_seq *lseq = seq;
23881 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2887;
23882 : 0 : {
23883 : 0 : res_op->set_op (VIEW_CONVERT_EXPR, type, 1);
23884 : 0 : {
23885 : 0 : tree _o1[4], _r1;
23886 : 0 : _o1[0] = captures[0];
23887 : 0 : {
23888 : 0 : tree _o2[1], _r2;
23889 : 0 : _o2[0] = captures[1];
23890 : 0 : if (inttype != TREE_TYPE (_o2[0]) /* XXX */
23891 : 0 : && !useless_type_conversion_p (inttype, TREE_TYPE (_o2[0])))
23892 : : {
23893 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), VIEW_CONVERT_EXPR, inttype, _o2[0]);
23894 : 0 : tem_op.resimplify (lseq, valueize);
23895 : 0 : _r2 = maybe_push_res_to_seq (&tem_op, lseq);
23896 : 0 : if (!_r2) goto next_after_fail2887;
23897 : : }
23898 : : else
23899 : : _r2 = _o2[0];
23900 : 0 : _o1[1] = _r2;
23901 : : }
23902 : 0 : {
23903 : 0 : tree _o2[2], _r2;
23904 : 0 : {
23905 : 0 : tree _o3[1], _r3;
23906 : 0 : _o3[0] = captures[2];
23907 : 0 : if (inttype != TREE_TYPE (_o3[0]) /* XXX */
23908 : 0 : && !useless_type_conversion_p (inttype, TREE_TYPE (_o3[0])))
23909 : : {
23910 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), VIEW_CONVERT_EXPR, inttype, _o3[0]);
23911 : 0 : tem_op.resimplify (lseq, valueize);
23912 : 0 : _r3 = maybe_push_res_to_seq (&tem_op, lseq);
23913 : 0 : if (!_r3) goto next_after_fail2887;
23914 : : }
23915 : : else
23916 : : _r3 = _o3[0];
23917 : 0 : _o2[0] = _r3;
23918 : : }
23919 : 0 : _o2[1] = signs;
23920 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), BIT_AND_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
23921 : 0 : tem_op.resimplify (lseq, valueize);
23922 : 0 : _r2 = maybe_push_res_to_seq (&tem_op, lseq);
23923 : 0 : if (!_r2) goto next_after_fail2887;
23924 : 0 : _o1[2] = _r2;
23925 : : }
23926 : 0 : {
23927 : 0 : tree _o2[1], _r2;
23928 : 0 : _o2[0] = captures[3];
23929 : 0 : if (inttype != TREE_TYPE (_o2[0]) /* XXX */
23930 : 0 : && !useless_type_conversion_p (inttype, TREE_TYPE (_o2[0])))
23931 : : {
23932 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), VIEW_CONVERT_EXPR, inttype, _o2[0]);
23933 : 0 : tem_op.resimplify (lseq, valueize);
23934 : 0 : _r2 = maybe_push_res_to_seq (&tem_op, lseq);
23935 : 0 : if (!_r2) goto next_after_fail2887;
23936 : : }
23937 : : else
23938 : : _r2 = _o2[0];
23939 : 0 : _o1[3] = _r2;
23940 : : }
23941 : 0 : (*res_op).set_op (CFN_COND_XOR, inttype, 4);
23942 : 0 : (*res_op).ops[0] = _o1[0];
23943 : 0 : (*res_op).ops[1] = _o1[1];
23944 : 0 : (*res_op).ops[2] = _o1[2];
23945 : 0 : (*res_op).ops[3] = _o1[3];
23946 : 0 : (*res_op).resimplify (lseq, valueize);
23947 : : }
23948 : 0 : if (type != res_op->type
23949 : 0 : && !useless_type_conversion_p (type, res_op->type))
23950 : : {
23951 : 0 : if (!(res_op->ops[0] = maybe_push_res_to_seq (res_op, lseq))) goto next_after_fail2887;
23952 : 0 : res_op->set_op (VIEW_CONVERT_EXPR, type, 1);
23953 : 0 : res_op->resimplify (lseq, valueize);
23954 : : }
23955 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1280, __FILE__, __LINE__, true);
23956 : 0 : return true;
23957 : : }
23958 : 0 : next_after_fail2887:;
23959 : : }
23960 : : }
23961 : : }
23962 : : }
23963 : : }
23964 : : }
23965 : : break;
23966 : : default:;
23967 : : }
23968 : : }
23969 : : break;
23970 : 903 : default:;
23971 : : }
23972 : 903 : switch (TREE_CODE (_p1))
23973 : : {
23974 : 903 : case SSA_NAME:
23975 : 903 : if (gimple *_d1 = get_def (valueize, _p1))
23976 : : {
23977 : 398 : if (gcall *_c1 = dyn_cast <gcall *> (_d1))
23978 : 31 : switch (gimple_call_combined_fn (_c1))
23979 : : {
23980 : 0 : case CFN_COPYSIGN:
23981 : 0 : if (gimple_call_num_args (_c1) == 2)
23982 : : {
23983 : 0 : tree _q30 = gimple_call_arg (_c1, 0);
23984 : 0 : _q30 = do_valueize (valueize, _q30);
23985 : 0 : tree _q31 = gimple_call_arg (_c1, 1);
23986 : 0 : _q31 = do_valueize (valueize, _q31);
23987 : 0 : if (real_onep (_q30))
23988 : : {
23989 : 0 : {
23990 : 0 : tree captures[4] ATTRIBUTE_UNUSED = { _p0, _p2, _q31, _p3 };
23991 : 0 : {
23992 : 0 : tree signs = sign_mask_for (type);
23993 : 0 : if (signs
23994 : : )
23995 : : {
23996 : 0 : {
23997 : 0 : tree inttype = TREE_TYPE (signs);
23998 : 0 : gimple_seq *lseq = seq;
23999 : 0 : if (UNLIKELY (!dbg_cnt (match))) goto next_after_fail2888;
24000 : 0 : {
24001 : 0 : res_op->set_op (VIEW_CONVERT_EXPR, type, 1);
24002 : 0 : {
24003 : 0 : tree _o1[4], _r1;
24004 : 0 : _o1[0] = captures[0];
24005 : 0 : {
24006 : 0 : tree _o2[1], _r2;
24007 : 0 : _o2[0] = captures[1];
24008 : 0 : if (inttype != TREE_TYPE (_o2[0]) /* XXX */
24009 : 0 : && !useless_type_conversion_p (inttype, TREE_TYPE (_o2[0])))
24010 : : {
24011 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), VIEW_CONVERT_EXPR, inttype, _o2[0]);
24012 : 0 : tem_op.resimplify (lseq, valueize);
24013 : 0 : _r2 = maybe_push_res_to_seq (&tem_op, lseq);
24014 : 0 : if (!_r2) goto next_after_fail2888;
24015 : : }
24016 : : else
24017 : : _r2 = _o2[0];
24018 : 0 : _o1[1] = _r2;
24019 : : }
24020 : 0 : {
24021 : 0 : tree _o2[2], _r2;
24022 : 0 : {
24023 : 0 : tree _o3[1], _r3;
24024 : 0 : _o3[0] = captures[2];
24025 : 0 : if (inttype != TREE_TYPE (_o3[0]) /* XXX */
24026 : 0 : && !useless_type_conversion_p (inttype, TREE_TYPE (_o3[0])))
24027 : : {
24028 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), VIEW_CONVERT_EXPR, inttype, _o3[0]);
24029 : 0 : tem_op.resimplify (lseq, valueize);
24030 : 0 : _r3 = maybe_push_res_to_seq (&tem_op, lseq);
24031 : 0 : if (!_r3) goto next_after_fail2888;
24032 : : }
24033 : : else
24034 : : _r3 = _o3[0];
24035 : 0 : _o2[0] = _r3;
24036 : : }
24037 : 0 : _o2[1] = signs;
24038 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), BIT_AND_EXPR, TREE_TYPE (_o2[0]), _o2[0], _o2[1]);
24039 : 0 : tem_op.resimplify (lseq, valueize);
24040 : 0 : _r2 = maybe_push_res_to_seq (&tem_op, lseq);
24041 : 0 : if (!_r2) goto next_after_fail2888;
24042 : 0 : _o1[2] = _r2;
24043 : : }
24044 : 0 : {
24045 : 0 : tree _o2[1], _r2;
24046 : 0 : _o2[0] = captures[3];
24047 : 0 : if (inttype != TREE_TYPE (_o2[0]) /* XXX */
24048 : 0 : && !useless_type_conversion_p (inttype, TREE_TYPE (_o2[0])))
24049 : : {
24050 : 0 : gimple_match_op tem_op (res_op->cond.any_else (), VIEW_CONVERT_EXPR, inttype, _o2[0]);
24051 : 0 : tem_op.resimplify (lseq, valueize);
24052 : 0 : _r2 = maybe_push_res_to_seq (&tem_op, lseq);
24053 : 0 : if (!_r2) goto next_after_fail2888;
24054 : : }
24055 : : else
24056 : : _r2 = _o2[0];
24057 : 0 : _o1[3] = _r2;
24058 : : }
24059 : 0 : (*res_op).set_op (CFN_COND_XOR, inttype, 4);
24060 : 0 : (*res_op).ops[0] = _o1[0];
24061 : 0 : (*res_op).ops[1] = _o1[1];
24062 : 0 : (*res_op).ops[2] = _o1[2];
24063 : 0 : (*res_op).ops[3] = _o1[3];
24064 : 0 : (*res_op).resimplify (lseq, valueize);
24065 : : }
24066 : 0 : if (type != res_op->type
24067 : 0 : && !useless_type_conversion_p (type, res_op->type))
24068 : : {
24069 : 0 : if (!(res_op->ops[0] = maybe_push_res_to_seq (res_op, lseq))) goto next_after_fail2888;
24070 : 0 : res_op->set_op (VIEW_CONVERT_EXPR, type, 1);
24071 : 0 : res_op->resimplify (lseq, valueize);
24072 : : }
24073 : 0 : if (UNLIKELY (debug_dump)) gimple_dump_logs ("match.pd", 1280, __FILE__, __LINE__, true);
24074 : 0 : return true;
24075 : : }
24076 : 0 : next_after_fail2888:;
24077 : : }
24078 : : }
24079 : : }
24080 : : }
24081 : : }
24082 : : }
24083 : : break;
24084 : : default:;
24085 : : }
24086 : : }
24087 : : break;
24088 : : default:;
24089 : : }
24090 : : return false;
24091 : : }
24092 : :
24093 : : bool
24094 : 611842 : gimple_simplify (gimple_match_op *res_op, gimple_seq *seq,
24095 : : tree (*valueize)(tree) ATTRIBUTE_UNUSED,
24096 : : code_helper code, const tree type, tree _p0, tree _p1, tree _p2, tree _p3, tree _p4, tree _p5)
24097 : : {
24098 : 611842 : switch (code.get_rep())
24099 : : {
24100 : 0 : case -CFN_COND_LEN_ADD:
24101 : 0 : return gimple_simplify_CFN_COND_LEN_ADD (res_op, seq, valueize, code, type, _p0, _p1, _p2, _p3, _p4, _p5);
24102 : : default:;
24103 : : }
24104 : : return false;
24105 : : }
24106 : :
24107 : : bool
24108 : 82367 : gimple_simplify (gimple_match_op*, gimple_seq*,
24109 : : tree (*)(tree), code_helper,
24110 : : const tree, tree, tree, tree, tree, tree, tree, tree)
24111 : : {
24112 : 82367 : return false;
24113 : : }
24114 : : void
24115 : 5088 : gimple_dump_logs (const char *file1, int line1_id, const char *file2, int line2, bool simplify)
24116 : : {
24117 : 5088 : static int dbg_line_numbers[1287] = {
24118 : : /* 0 */ 161, 164, 173, 175, 178, 181, 183, 189, 197, 195,
24119 : : /* 10 */ 199, 201, 205, 940, 938, 2087, 2098, 2079, 2085, 2090,
24120 : : /* 20 */ 2095, 2323, 2327, 2329, 2331, 2333, 2335, 2337, 2339, 2366,
24121 : : /* 30 */ 2382, 2390, 2372, 2930, 2932, 2934, 2938, 2948, 2950, 2954,
24122 : : /* 40 */ 3165, 3175, 3186, 3191, 3196, 3229, 3234, 3200, 3204, 3208,
24123 : : /* 50 */ 3258, 3212, 3240, 3246, 3252, 3216, 3275, 3279, 3304, 3310,
24124 : : /* 60 */ 3332, 3316, 3345, 3284, 3288, 3298, 3292, 3349, 3365, 3400,
24125 : : /* 70 */ 3377, 3418, 3425, 3477, 3434, 3452, 3443, 3468, 3462, 3488,
24126 : : /* 80 */ 3507, 3516, 3525, 3534, 3544, 5732, 5974, 5985, 5963, 5992,
24127 : : /* 90 */ 6024, 5999, 6011, 6031, 8927, 8948, 8972, 11124, 11127, 11132,
24128 : : /* 100 */ 11347, 11354, 11373, 11398, 11466, 11423, 11436, 11450, 11480, 11485,
24129 : : /* 110 */ 8747, 228, 1313, 1317, 1443, 1458, 1463, 1510, 1511, 1515,
24130 : : /* 120 */ 1516, 1574, 1579, 1672, 1796, 1886, 1806, 1950, 1816, 1821,
24131 : : /* 130 */ 1944, 1829, 1996, 1938, 1957, 1963, 2568, 1970, 1984, 2030,
24132 : : /* 140 */ 2237, 2304, 2315, 2318, 2350, 2445, 2477, 4550, 4563, 4573,
24133 : : /* 150 */ 3007, 3009, 4848, 4587, 4599, 6950, 6952, 7001, 7009, 10198,
24134 : : /* 160 */ 10204, 10600, 10602, 254, 281, 282, 493, 1307, 4514, 1755,
24135 : : /* 170 */ 1760, 1779, 1834, 1897, 4064, 4002, 4107, 4108, 4112, 4113,
24136 : : /* 180 */ 4123, 4127, 4131, 4146, 4149, 4153, 4079, 4082, 4087, 4220,
24137 : : /* 190 */ 4234, 4240, 4246, 4428, 4429, 4455, 4474, 4493, 4836, 5631,
24138 : : /* 200 */ 6881, 8375, 8450, 10053, 10101, 10115, 11151, 11573, 11586, 922,
24139 : : /* 210 */ 928, 1423, 1432, 1915, 1906, 1853, 2594, 4015, 4055, 4060,
24140 : : /* 220 */ 4061, 4069, 4070, 4073, 4090, 4165, 4168, 4172, 4254, 4276,
24141 : : /* 230 */ 4314, 4325, 4364, 4379, 4842, 6891, 8455, 10111, 11155, 1409,
24142 : : /* 240 */ 1418, 1448, 1453, 1495, 1480, 1487, 1537, 1992, 1542, 1549,
24143 : : /* 250 */ 1569, 1786, 1696, 1791, 1801, 1811, 1925, 2012, 2022, 2024,
24144 : : /* 260 */ 2256, 2264, 2269, 2274, 2290, 2280, 2281, 2428, 2457, 2459,
24145 : : /* 270 */ 2464, 2466, 2587, 3623, 3638, 3656, 3839, 3840, 3841, 3846,
24146 : : /* 280 */ 3851, 3857, 3863, 3895, 3896, 3901, 3902, 3907, 3912, 3916,
24147 : : /* 290 */ 3965, 3979, 3628, 3647, 3649, 3633, 7538, 9324, 319, 320,
24148 : : /* 300 */ 1277, 1272, 447, 455, 461, 467, 499, 1252, 2071, 2072,
24149 : : /* 310 */ 2109, 2603, 4995, 5341, 5617, 5624, 5674, 5677, 5727, 8368,
24150 : : /* 320 */ 8782, 8612, 8619, 8776, 8821, 8826, 329, 885, 2355, 2582,
24151 : : /* 330 */ 2621, 2631, 2670, 2676, 2679, 2684, 2849, 2700, 2702, 2703,
24152 : : /* 340 */ 2706, 2708, 2709, 2711, 2713, 2715, 2717, 2719, 2721, 2735,
24153 : : /* 350 */ 2736, 2770, 2855, 2880, 2796, 2823, 2863, 2868, 2893, 2900,
24154 : : /* 360 */ 2966, 3937, 4778, 4786, 4789, 4795, 4798, 4825, 5133, 5134,
24155 : : /* 370 */ 5168, 5172, 5301, 5141, 5142, 5186, 5189, 5190, 5195, 5198,
24156 : : /* 380 */ 5201, 5202, 5154, 5157, 5374, 5378, 5383, 5642, 5794, 5798,
24157 : : /* 390 */ 6961, 6977, 6979, 6991, 7021, 7027, 7028, 7043, 7044, 7048,
24158 : : /* 400 */ 7066, 7071, 7103, 7111, 7121, 7130, 7134, 7140, 7147, 7163,
24159 : : /* 410 */ 7167, 7171, 7178, 7179, 7184, 7185, 7192, 7193, 7195, 7196,
24160 : : /* 420 */ 7212, 7223, 7235, 7239, 7241, 7246, 7249, 7252, 7260, 7322,
24161 : : /* 430 */ 7323, 7327, 7328, 7335, 7339, 7343, 7346, 7352, 7353, 7357,
24162 : : /* 440 */ 7360, 7367, 7387, 7390, 7393, 7396, 7445, 7448, 7452, 7459,
24163 : : /* 450 */ 7465, 7473, 7482, 7483, 7581, 7591, 7630, 7636, 7652, 7665,
24164 : : /* 460 */ 7667, 7669, 7695, 7737, 7716, 7717, 7724, 7726, 7742, 7748,
24165 : : /* 470 */ 7753, 7762, 7768, 7774, 7779, 7784, 7816, 7879, 7798, 7808,
24166 : : /* 480 */ 7917, 7919, 7921, 7923, 7925, 7927, 7931, 7933, 7956, 7979,
24167 : : /* 490 */ 8091, 8098, 8099, 8107, 8108, 8178, 8288, 9368, 9370, 9458,
24168 : : /* 500 */ 9460, 9461, 9467, 9483, 9485, 9487, 9505, 9506, 9838, 9841,
24169 : : /* 510 */ 9855, 9864, 9928, 9929, 9983, 9985, 10061, 10470, 10472, 10474,
24170 : : /* 520 */ 10906, 6957, 6968, 6970, 7078, 473, 1225, 1229, 1246, 8732,
24171 : : /* 530 */ 8737, 8742, 533, 534, 545, 550, 557, 566, 574, 583,
24172 : : /* 540 */ 629, 632, 820, 973, 991, 999, 1006, 1016, 1021, 1030,
24173 : : /* 550 */ 1038, 1063, 1084, 594, 850, 854, 859, 865, 869, 877,
24174 : : /* 560 */ 965, 745, 755, 757, 759, 8362, 8787, 8809, 8792, 8797,
24175 : : /* 570 */ 8802, 8816, 8850, 8855, 807, 810, 1647, 2644, 2647, 2744,
24176 : : /* 580 */ 2756, 2838, 2782, 2809, 2921, 2924, 4816, 4808, 6915, 8218,
24177 : : /* 590 */ 7495, 7498, 7524, 7525, 8004, 8006, 8008, 8010, 8014, 8016,
24178 : : /* 600 */ 8018, 8020, 8024, 8029, 8036, 8041, 8061, 8063, 8065, 8067,
24179 : : /* 610 */ 8231, 8239, 8249, 8257, 8267, 8389, 8391, 9382, 9401, 9441,
24180 : : /* 620 */ 9906, 9908, 9909, 9964, 9967, 9969, 2660, 6905, 7568, 8463,
24181 : : /* 630 */ 8468, 10491, 10493, 10495, 10497, 10501, 911, 947, 1297, 4982,
24182 : : /* 640 */ 4954, 5024, 5027, 5035, 5049, 5102, 5104, 5105, 5106, 5313,
24183 : : /* 650 */ 2189, 5005, 5014, 5848, 5851, 5852, 5860, 10426, 10444, 2248,
24184 : : /* 660 */ 3948, 3953, 4720, 8998, 9012, 9028, 9039, 9207, 9209, 9240,
24185 : : /* 670 */ 9275, 11517, 1189, 8680, 8701, 1198, 8424, 8430, 8582, 8583,
24186 : : /* 680 */ 8727, 9154, 1212, 1216, 8722, 8905, 2116, 2154, 2177, 2178,
24187 : : /* 690 */ 2532, 4040, 9781, 1391, 1475, 1523, 1468, 1500, 1531, 1564,
24188 : : /* 700 */ 1605, 1616, 1627, 1639, 2489, 1711, 1868, 1876, 1881, 2004,
24189 : : /* 710 */ 2345, 2609, 3161, 5272, 5290, 5291, 5819, 5825, 5873, 3593,
24190 : : /* 720 */ 3595, 3605, 3607, 3712, 3713, 3714, 3719, 3724, 3730, 3736,
24191 : : /* 730 */ 3768, 3769, 3774, 3775, 3780, 3785, 3789, 3613, 3618, 3663,
24192 : : /* 740 */ 6213, 6222, 6223, 7093, 7541, 9310, 9312, 10096, 1554, 1559,
24193 : : /* 750 */ 2547, 1727, 2552, 5352, 2527, 2558, 2562, 5366, 4763, 6942,
24194 : : /* 760 */ 6944, 3584, 4878, 4921, 4934, 4854, 4866, 4885, 4892, 4898,
24195 : : /* 770 */ 4904, 4910, 6203, 6356, 6358, 6360, 6460, 6463, 6487, 6488,
24196 : : /* 780 */ 6491, 6492, 6496, 6497, 6501, 6502, 6506, 6507, 6511, 6512,
24197 : : /* 790 */ 6609, 6611, 6625, 6629, 6302, 6303, 6570, 6574, 6582, 6589,
24198 : : /* 800 */ 6594, 6662, 6668, 6677, 6678, 6687, 6693, 6700, 6756, 6761,
24199 : : /* 810 */ 6822, 6825, 6769, 6774, 6832, 6835, 7862, 7864, 6791, 6792,
24200 : : /* 820 */ 6793, 6843, 7832, 7833, 7847, 7848, 6812, 6813, 6814, 6855,
24201 : : /* 830 */ 6856, 7893, 7898, 9341, 9342, 10258, 10266, 10294, 10306, 10333,
24202 : : /* 840 */ 10345, 4606, 4610, 4620, 4638, 4703, 4705, 4707, 4709, 4758,
24203 : : /* 850 */ 9332, 4624, 4631, 4616, 4730, 4739, 4742, 4941, 5074, 5084,
24204 : : /* 860 */ 8317, 8320, 8339, 5770, 5782, 5785, 5789, 6083, 6524, 6533,
24205 : : /* 870 */ 10665, 10672, 10700, 10706, 10714, 10720, 10729, 10735, 10743, 10749,
24206 : : /* 880 */ 10795, 10803, 8123, 7086, 7082, 8298, 8305, 8440, 8445, 8546,
24207 : : /* 890 */ 8643, 8660, 8692, 8712, 8717, 8968, 8945, 8924, 8753, 8757,
24208 : : /* 900 */ 9048, 9058, 9065, 9074, 9092, 9099, 9080, 9347, 9353, 9771,
24209 : : /* 910 */ 9777, 9774, 9785, 9791, 9799, 9805, 9813, 9819, 9873, 10035,
24210 : : /* 920 */ 10037, 10039, 10076, 10091, 10154, 10156, 10158, 10357, 10360, 10165,
24211 : : /* 930 */ 10179, 10192, 10247, 10249, 10251, 10458, 10545, 10547, 10549, 10683,
24212 : : /* 940 */ 10690, 10876, 10890, 10981, 10982, 219, 2036, 2046, 5905, 2055,
24213 : : /* 950 */ 1139, 2500, 3142, 5394, 5396, 5406, 5498, 5509, 5522, 5545,
24214 : : /* 960 */ 5555, 5564, 5576, 5602, 5913, 6310, 1146, 1240, 2125, 2129,
24215 : : /* 970 */ 2160, 2166, 4027, 6868, 4035, 9795, 9809, 9823, 1258, 1265,
24216 : : /* 980 */ 8706, 8900, 1724, 1738, 1745, 1767, 1774, 2360, 2575, 2041,
24217 : : /* 990 */ 2050, 2059, 5411, 5420, 5432, 5442, 5448, 5922, 5589, 5457,
24218 : : /* 1000 */ 5454, 5740, 5748, 5756, 5760, 5743, 5751, 5764, 5776, 8539,
24219 : : /* 1010 */ 8514, 8475, 8479, 8863, 8628, 8879, 8867, 8871, 8632, 8883,
24220 : : /* 1020 */ 8875, 8914, 9105, 9112, 9118, 10897, 237, 1680, 1685, 2413,
24221 : : /* 1030 */ 2540, 3928, 4685, 5940, 5951, 5960, 11532, 727, 4205, 4533,
24222 : : /* 1040 */ 5689, 5695, 5697, 3014, 242, 3035, 3039, 3070, 3078, 3051,
24223 : : /* 1050 */ 3065, 260, 297, 1427, 1733, 1841, 1848, 1858, 1863, 2135,
24224 : : /* 1060 */ 3086, 3098, 3092, 3104, 2146, 2765, 2790, 2817, 2801, 2828,
24225 : : /* 1070 */ 4288, 4260, 4335, 4344, 4387, 4398, 5702, 5713, 11498, 11499,
24226 : : /* 1080 */ 11595, 1652, 1657, 1718, 7531, 10854, 10858, 247, 300, 2774,
24227 : : /* 1090 */ 3111, 3118, 3125, 3131, 4297, 3136, 4353, 4401, 4410, 5705,
24228 : : /* 1100 */ 304, 373, 341, 350, 358, 432, 646, 686, 982, 1177,
24229 : : /* 1110 */ 1182, 1280, 1283, 1383, 2403, 5718, 8397, 8403, 8594, 8844,
24230 : : /* 1120 */ 2520, 6117, 6125, 7598, 8155, 8198, 8199, 2510, 8149, 1172,
24231 : : /* 1130 */ 609, 612, 1115, 1120, 5611, 736, 765, 771, 777, 785,
24232 : : /* 1140 */ 790, 795, 838, 842, 8409, 8415, 8073, 896, 1338, 4970,
24233 : : /* 1150 */ 1327, 1330, 1362, 1373, 4947, 5019, 5112, 1153, 8887, 8636,
24234 : : /* 1160 */ 8895, 8891, 9132, 9135, 9138, 9143, 9149, 1159, 8833, 1205,
24235 : : /* 1170 */ 8602, 8839, 9161, 9164, 9167, 1164, 1167, 1397, 1586, 1662,
24236 : : /* 1180 */ 1690, 1704, 2295, 5118, 5119, 7535, 11505, 4645, 4649, 4677,
24237 : : /* 1190 */ 4678, 4751, 4656, 4660, 4668, 4669, 5056, 5737, 8131, 8133,
24238 : : /* 1200 */ 8140, 8142, 7090, 8762, 5891, 5893, 6151, 6156, 6162, 6163,
24239 : : /* 1210 */ 6169, 6174, 6179, 6185, 6187, 6194, 6641, 6644, 6647, 6650,
24240 : : /* 1220 */ 6706, 6709, 6718, 6722, 6727, 6735, 7946, 7947, 6050, 6054,
24241 : : /* 1230 */ 6058, 6062, 5897, 5899, 6090, 6094, 6098, 6102, 6136, 6138,
24242 : : /* 1240 */ 6547, 6561, 10570, 10576, 10630, 10637, 9513, 9519, 9524, 9533,
24243 : : /* 1250 */ 9535, 9555, 9600, 9603, 9604, 9636, 9642, 9644, 9645, 9701,
24244 : : /* 1260 */ 9702, 9723, 9728, 9733, 9763, 9788, 9802, 9816, 11005, 11007,
24245 : : /* 1270 */ 11042, 11116, 11119, 11204, 11139, 11145, 11273, 11275, 11337, 11339,
24246 : : /* 1280 */ 483, 10764, 10585, 10591, 10647, 10654, 10779
24247 : : };
24248 : :
24249 : 9680 : fprintf (dump_file, "%s %s:%d, %s:%d\n",
24250 : : simplify ? "Applying pattern" : "Matching expression", file1, dbg_line_numbers[line1_id], file2, line2);
24251 : 5088 : }
24252 : :
24253 : : #pragma GCC diagnostic pop
|